@ukpc-lib/react 0.3.28 → 0.3.30

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,8 +1,8 @@
1
1
  import { jsxs as T, Fragment as qe, jsx as c } from "react/jsx-runtime";
2
2
  import * as L from "react";
3
3
  import Eo, { useState as G, useContext as xe, useEffect as Q, useRef as be, useCallback as bt, forwardRef as Co, createElement as er, PureComponent as Oo } from "react";
4
- import { c as rt, Q as kn, C as Te, p as At, u as hr, S as To, a as No, L as $o, b as Pr, d as ko, e as mt, f as Io, s as pt, _ as z, g as _e, P as N, h as he, i as Mo, o as Ao, j as Po, k as Ro, l as Rr, m as In, n as Dr, I as Do, q as zo, r as zr, D as Fo, t as Mn, v as An, w as Lo, x as jo, y as Oe, z as Vo, A as gt } from "../index.module-56dcdd19.js";
5
- import { G as Cc, B as Oc, E as Tc } from "../index.module-56dcdd19.js";
4
+ import { c as rt, Q as kn, C as Te, p as At, u as hr, S as To, a as No, L as $o, b as Pr, d as ko, e as mt, f as Io, s as pt, _ as z, g as _e, P as N, h as he, i as Mo, o as Ao, j as Po, k as Ro, l as Rr, m as In, n as xt, q as Dr, I as Do, r as zo, t as zr, D as Fo, v as Mn, w as An, x as Lo, y as jo, z as Oe, A as Vo, B as gt } from "../index.module-673ba16d.js";
5
+ import { G as Cc, E as Oc, F as Tc } from "../index.module-673ba16d.js";
6
6
  import Z from "moment";
7
7
  import mr from "axios";
8
8
  import { Stack as te, Dialog as Ho, DialogTitle as Bo, Typography as ge, DialogContent as Wo, DialogActions as Uo, Button as ir, ClickAwayListener as qo, TextField as Pn, IconButton as Yo, CircularProgress as Go, Fade as Ko, Paper as Zo, Checkbox as Xo } from "@mui/material";
@@ -2488,7 +2488,7 @@ function ne() {
2488
2488
  function fe() {
2489
2489
  return X(Ye, ee);
2490
2490
  }
2491
- function xt() {
2491
+ function _t() {
2492
2492
  return ee;
2493
2493
  }
2494
2494
  function ut(e, t) {
@@ -2532,7 +2532,7 @@ function Kn(e) {
2532
2532
  function Zn(e) {
2533
2533
  return Ye = "", e;
2534
2534
  }
2535
- function _t(e) {
2535
+ function wt(e) {
2536
2536
  return Yn(ut(ee - 1, lr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2537
2537
  }
2538
2538
  function Wa(e) {
@@ -2543,7 +2543,7 @@ function Wa(e) {
2543
2543
  function Ua(e, t) {
2544
2544
  for (; --t && ne() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97); )
2545
2545
  ;
2546
- return ut(e, xt() + (t < 6 && fe() == 32 && ne() == 32));
2546
+ return ut(e, _t() + (t < 6 && fe() == 32 && ne() == 32));
2547
2547
  }
2548
2548
  function lr(e) {
2549
2549
  for (; ne(); )
@@ -2575,20 +2575,20 @@ function Ya(e) {
2575
2575
  return ut(e, ee);
2576
2576
  }
2577
2577
  function Ga(e) {
2578
- return Zn(wt("", null, null, null, [""], e = Kn(e), 0, [0], e));
2578
+ return Zn(St("", null, null, null, [""], e = Kn(e), 0, [0], e));
2579
2579
  }
2580
- function wt(e, t, r, n, o, i, a, l, u) {
2580
+ function St(e, t, r, n, o, i, a, l, u) {
2581
2581
  for (var f = 0, h = 0, m = a, g = 0, b = 0, y = 0, s = 1, d = 1, v = 1, x = 0, _ = "", E = o, p = i, w = n, S = _; d; )
2582
2582
  switch (y = x, x = ne()) {
2583
2583
  case 40:
2584
2584
  if (y != 108 && X(S, m - 1) == 58) {
2585
- sr(S += k(_t(x), "&", "&\f"), "&\f") != -1 && (v = -1);
2585
+ sr(S += k(wt(x), "&", "&\f"), "&\f") != -1 && (v = -1);
2586
2586
  break;
2587
2587
  }
2588
2588
  case 34:
2589
2589
  case 39:
2590
2590
  case 91:
2591
- S += _t(x);
2591
+ S += wt(x);
2592
2592
  break;
2593
2593
  case 9:
2594
2594
  case 10:
@@ -2597,13 +2597,13 @@ function wt(e, t, r, n, o, i, a, l, u) {
2597
2597
  S += Wa(y);
2598
2598
  break;
2599
2599
  case 92:
2600
- S += Ua(xt() - 1, 7);
2600
+ S += Ua(_t() - 1, 7);
2601
2601
  continue;
2602
2602
  case 47:
2603
2603
  switch (fe()) {
2604
2604
  case 42:
2605
2605
  case 47:
2606
- yt(Ka(qa(ne(), xt()), t, r), u);
2606
+ yt(Ka(qa(ne(), _t()), t, r), u);
2607
2607
  break;
2608
2608
  default:
2609
2609
  S += "/";
@@ -2626,17 +2626,17 @@ function wt(e, t, r, n, o, i, a, l, u) {
2626
2626
  default:
2627
2627
  if (yt(w = qr(S, t, r, f, h, o, l, _, E = [], p = [], m), i), x === 123)
2628
2628
  if (h === 0)
2629
- wt(S, t, w, w, E, i, m, l, p);
2629
+ St(S, t, w, w, E, i, m, l, p);
2630
2630
  else
2631
2631
  switch (g === 99 && X(S, 3) === 110 ? 100 : g) {
2632
2632
  case 100:
2633
2633
  case 108:
2634
2634
  case 109:
2635
2635
  case 115:
2636
- wt(e, w, w, n && yt(qr(e, w, w, 0, 0, o, l, _, o, E = [], m), p), o, p, m, l, n ? E : p);
2636
+ St(e, w, w, n && yt(qr(e, w, w, 0, 0, o, l, _, o, E = [], m), p), o, p, m, l, n ? E : p);
2637
2637
  break;
2638
2638
  default:
2639
- wt(S, w, w, w, [""], p, 0, l, p);
2639
+ St(S, w, w, w, [""], p, 0, l, p);
2640
2640
  }
2641
2641
  }
2642
2642
  f = h = b = 0, s = v = 1, _ = S = "", m = a;
@@ -2658,7 +2658,7 @@ function wt(e, t, r, n, o, i, a, l, u) {
2658
2658
  l[f++] = (de(S) - 1) * v, v = 1;
2659
2659
  break;
2660
2660
  case 64:
2661
- fe() === 45 && (S += _t(ne())), g = fe(), h = m = de(_ = S += Ya(xt())), x++;
2661
+ fe() === 45 && (S += wt(ne())), g = fe(), h = m = de(_ = S += Ya(_t())), x++;
2662
2662
  break;
2663
2663
  case 45:
2664
2664
  y === 45 && de(S) == 2 && (s = 0);
@@ -2725,7 +2725,7 @@ var Qa = function(t, r, n) {
2725
2725
  o === 38 && fe() === 12 && (r[n] = 1), t[n] += Qa(ee - 1, r, n);
2726
2726
  break;
2727
2727
  case 2:
2728
- t[n] += _t(o);
2728
+ t[n] += wt(o);
2729
2729
  break;
2730
2730
  case 4:
2731
2731
  if (o === 44) {
@@ -4822,7 +4822,7 @@ var Ke = fo;
4822
4822
  Object.defineProperty(ft, "__esModule", {
4823
4823
  value: !0
4824
4824
  });
4825
- var ll = ft.default = Sl, cl = ft.shouldForwardProp = St;
4825
+ var ll = ft.default = Sl, cl = ft.shouldForwardProp = Et;
4826
4826
  ft.systemDefaultTheme = void 0;
4827
4827
  var oe = Ke(el), fr = Ke(tl), xn = vl(rl), dl = nl, ul = Ke(ol), fl = Ke(il), hl = Ke(al), ml = Ke(sl);
4828
4828
  const pl = ["ownerState"], gl = ["variants"], yl = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
@@ -4859,7 +4859,7 @@ function xl(e) {
4859
4859
  // it's a lowercase character
4860
4860
  e.charCodeAt(0) > 96;
4861
4861
  }
4862
- function St(e) {
4862
+ function Et(e) {
4863
4863
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
4864
4864
  }
4865
4865
  const _l = ft.systemDefaultTheme = (0, hl.default)(), _n = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
@@ -4873,7 +4873,7 @@ function vt({
4873
4873
  function wl(e) {
4874
4874
  return e ? (t, r) => r[e] : null;
4875
4875
  }
4876
- function Et(e, t) {
4876
+ function Ct(e, t) {
4877
4877
  let {
4878
4878
  ownerState: r
4879
4879
  } = t, n = (0, fr.default)(t, pl);
@@ -4881,7 +4881,7 @@ function Et(e, t) {
4881
4881
  ownerState: r
4882
4882
  }, n)) : e;
4883
4883
  if (Array.isArray(o))
4884
- return o.flatMap((i) => Et(i, (0, oe.default)({
4884
+ return o.flatMap((i) => Ct(i, (0, oe.default)({
4885
4885
  ownerState: r
4886
4886
  }, n)));
4887
4887
  if (o && typeof o == "object" && Array.isArray(o.variants)) {
@@ -4906,8 +4906,8 @@ function Sl(e = {}) {
4906
4906
  const {
4907
4907
  themeId: t,
4908
4908
  defaultTheme: r = _l,
4909
- rootShouldForwardProp: n = St,
4910
- slotShouldForwardProp: o = St
4909
+ rootShouldForwardProp: n = Et,
4910
+ slotShouldForwardProp: o = Et
4911
4911
  } = e, i = (a) => (0, ml.default)((0, oe.default)({}, a, {
4912
4912
  theme: vt((0, oe.default)({}, a, {
4913
4913
  defaultTheme: r,
@@ -4931,12 +4931,12 @@ function Sl(e = {}) {
4931
4931
  ), s = m || !1;
4932
4932
  let d;
4933
4933
  process.env.NODE_ENV !== "production" && u && (d = `${u}-${_n(f || "Root")}`);
4934
- let v = St;
4934
+ let v = Et;
4935
4935
  f === "Root" || f === "root" ? v = n : f ? v = o : xl(a) && (v = void 0);
4936
4936
  const x = (0, xn.default)(a, (0, oe.default)({
4937
4937
  shouldForwardProp: v,
4938
4938
  label: d
4939
- }, b)), _ = (p) => typeof p == "function" && p.__emotion_real !== p || (0, dl.isPlainObject)(p) ? (w) => Et(p, (0, oe.default)({}, w, {
4939
+ }, b)), _ = (p) => typeof p == "function" && p.__emotion_real !== p || (0, dl.isPlainObject)(p) ? (w) => Ct(p, (0, oe.default)({}, w, {
4940
4940
  theme: vt({
4941
4941
  theme: w.theme,
4942
4942
  defaultTheme: r,
@@ -4954,7 +4954,7 @@ function Sl(e = {}) {
4954
4954
  return null;
4955
4955
  const K = W.components[u].styleOverrides, ce = {};
4956
4956
  return Object.entries(K).forEach(([Se, Ee]) => {
4957
- ce[Se] = Et(Ee, (0, oe.default)({}, F, {
4957
+ ce[Se] = Ct(Ee, (0, oe.default)({}, F, {
4958
4958
  theme: W
4959
4959
  }));
4960
4960
  }), g(F, ce);
@@ -4964,7 +4964,7 @@ function Sl(e = {}) {
4964
4964
  defaultTheme: r,
4965
4965
  themeId: t
4966
4966
  })), ce = K == null || (W = K.components) == null || (W = W[u]) == null ? void 0 : W.variants;
4967
- return Et({
4967
+ return Ct({
4968
4968
  variants: ce
4969
4969
  }, (0, oe.default)({}, F, {
4970
4970
  theme: K
@@ -5233,8 +5233,8 @@ function Tn(e) {
5233
5233
  process.env.NODE_ENV;
5234
5234
  var zl = 150, Fl = function(t, r) {
5235
5235
  return t;
5236
- }, Ct = null, Ot = null;
5237
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ct = /* @__PURE__ */ new WeakSet(), Ot = /* @__PURE__ */ new WeakSet());
5236
+ }, Ot = null, Tt = null;
5237
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ot = /* @__PURE__ */ new WeakSet(), Tt = /* @__PURE__ */ new WeakSet());
5238
5238
  function Ll(e) {
5239
5239
  var t, r = e.getItemOffset, n = e.getEstimatedTotalSize, o = e.getItemSize, i = e.getOffsetForIndexAndAlignment, a = e.getStartIndexForOffset, l = e.getStopIndexForStartIndex, u = e.initInstanceProps, f = e.shouldResetStyleCacheOnItemSizeChange, h = e.validateProps;
5240
5240
  return t = /* @__PURE__ */ function(m) {
@@ -5445,12 +5445,12 @@ function Ll(e) {
5445
5445
  var jl = function(t, r) {
5446
5446
  var n = t.children, o = t.direction, i = t.height, a = t.layout, l = t.innerTagName, u = t.outerTagName, f = t.width, h = r.instance;
5447
5447
  if (process.env.NODE_ENV !== "production") {
5448
- (l != null || u != null) && Ot && !Ot.has(h) && (Ot.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
5448
+ (l != null || u != null) && Tt && !Tt.has(h) && (Tt.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
5449
5449
  var m = o === "horizontal" || a === "horizontal";
5450
5450
  switch (o) {
5451
5451
  case "horizontal":
5452
5452
  case "vertical":
5453
- Ct && !Ct.has(h) && (Ct.add(h), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
5453
+ Ot && !Ot.has(h) && (Ot.add(h), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
5454
5454
  break;
5455
5455
  case "ltr":
5456
5456
  case "rtl":
@@ -5560,9 +5560,6 @@ var jl = function(t, r) {
5560
5560
  throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
5561
5561
  }
5562
5562
  });
5563
- function Tt(e, t) {
5564
- return t ? e : void 0;
5565
- }
5566
5563
  function $n(e) {
5567
5564
  const { colors: t } = In();
5568
5565
  return /* @__PURE__ */ c(
@@ -5583,7 +5580,7 @@ function $n(e) {
5583
5580
  transition: "0.2s",
5584
5581
  borderRadius: "5px",
5585
5582
  cursor: "pointer",
5586
- ...Tt({ backgroundColor: t.primary200 }, e.select),
5583
+ ...xt({ backgroundColor: t.primary200 }, e.select),
5587
5584
  ":hover": {
5588
5585
  backgroundColor: "#eeeeee80",
5589
5586
  borderColor: "transparent"
@@ -5712,7 +5709,7 @@ function yc(e) {
5712
5709
  te,
5713
5710
  {
5714
5711
  sx: {
5715
- ...Tt(
5712
+ ...xt(
5716
5713
  { display: "none" },
5717
5714
  !!l
5718
5715
  )
@@ -5805,7 +5802,7 @@ function yc(e) {
5805
5802
  display: "flex",
5806
5803
  justifyContent: "center",
5807
5804
  paddingLeft: "5px",
5808
- ...Tt({ display: "none" }, !l)
5805
+ ...xt({ display: "none" }, !l)
5809
5806
  },
5810
5807
  children: /* @__PURE__ */ c(ge, { color: "grayText", children: "Searching..." })
5811
5808
  }
@@ -5818,7 +5815,7 @@ function yc(e) {
5818
5815
  display: "flex",
5819
5816
  justifyContent: "center",
5820
5817
  paddingLeft: "5px",
5821
- ...Tt(
5818
+ ...xt(
5822
5819
  { display: "none" },
5823
5820
  !!(b.length || e.loading || l)
5824
5821
  )
@@ -6330,7 +6327,14 @@ const So = (e) => {
6330
6327
  alignItems: "center",
6331
6328
  justifyContent: "center"
6332
6329
  },
6333
- children: /* @__PURE__ */ c(ir, { variant: "contained", color: "primary", children: "Go to homepage" })
6330
+ children: /* @__PURE__ */ c(
6331
+ ir,
6332
+ {
6333
+ variant: "primary",
6334
+ style: { maxWidth: "200px", width: "100%" },
6335
+ children: "Go to homepage"
6336
+ }
6337
+ )
6334
6338
  }
6335
6339
  )
6336
6340
  ] })