@ukpc-lib/react 0.10.29-dev.0 → 0.10.29-dev.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.
@@ -1,8 +1,8 @@
1
1
  import { jsxs as A, Fragment as de, jsx as u } from "react/jsx-runtime";
2
2
  import * as W from "react";
3
- import pe, { useState as B, useContext as Oe, useEffect as q, useRef as ve, useCallback as kt, forwardRef as Vo, createElement as or, PureComponent as Wo } from "react";
4
- import { c as Le, a as gt, C as Fe, t as ct, p as Uo, L as Ur, u as Yo, b as Ko, S as Go, d as qo, e as Zo, Q as Hn, f as Et, g as Ir, h as Xo, s as Ct, _ as V, P as N, i as we, j as Jo, o as Qo, k as $e, l as ei, m as ti, n as Yr, q as At, r as Kr, I as ri, v as ni, w as Gr, D as oi, x as Bn, y as Vn, z as ii, A as ai, B as si } from "../index.esm2017-3eee8145.js";
5
- import { H as H1, G as B1, K as V1, E as W1, F as U1, J as Y1 } from "../index.esm2017-3eee8145.js";
3
+ import pe, { useState as H, useContext as Oe, useEffect as q, useRef as ve, useCallback as kt, forwardRef as Vo, createElement as or, PureComponent as Wo } from "react";
4
+ import { c as Le, a as gt, C as Fe, t as ct, p as Uo, L as Ur, u as Yo, b as Ko, S as Go, d as qo, e as Zo, Q as Bn, f as Et, g as Ir, h as Xo, s as Ct, _ as V, P as N, i as we, j as Jo, o as Qo, k as $e, l as ei, m as ti, n as Yr, q as At, r as Kr, I as ri, v as ni, w as Gr, D as oi, x as Hn, y as Vn, z as ii, A as ai, B as si } from "../index.esm2017-ae9435d3.js";
5
+ import { H as B1, G as H1, K as V1, E as W1, F as U1, J as Y1 } from "../index.esm2017-ae9435d3.js";
6
6
  import Q from "moment";
7
7
  import { Stack as ie, Dialog as li, DialogTitle as ci, Typography as Ee, DialogContent as ui, DialogActions as di, Button as Lt, Box as fi, ClickAwayListener as hi, TextField as Wn, IconButton as mi, CircularProgress as pi, Fade as gi, Paper as yi, Checkbox as bi } from "@mui/material";
8
8
  import "axios";
@@ -105,7 +105,7 @@ const Si = (e) => {
105
105
  brandColors: o
106
106
  }) => {
107
107
  var E, v;
108
- const [i, a] = B(!1), [l, c] = B({
108
+ const [i, a] = H(!1), [l, c] = H({
109
109
  id: e.id,
110
110
  isRead: e.isRead
111
111
  }), d = l.isRead === !1 ? "unread" : "read", f = {
@@ -204,10 +204,27 @@ const Si = (e) => {
204
204
  /* @__PURE__ */ A("div", { className: "notification-item__content-wrapper", children: [
205
205
  /* @__PURE__ */ A("div", { className: "notification-item__content", children: [
206
206
  /* @__PURE__ */ u("p", { className: "notification-item__user-name", children: e.actorName }),
207
- /* @__PURE__ */ A(w, { href: e.contextUrl, style: { cursor: e != null && e.contextUrl ? "pointer" : "unset" }, children: [
208
- _(e, x),
209
- /* @__PURE__ */ u("span", { className: "notification-item__context-link", children: ` ${e != null && e.context ? e.context : ""}` })
210
- ] }),
207
+ /* @__PURE__ */ A(
208
+ w,
209
+ {
210
+ href: e.contextUrl,
211
+ style: {
212
+ cursor: e != null && e.contextUrl ? "pointer" : "unset"
213
+ },
214
+ children: [
215
+ _(e, x),
216
+ /* @__PURE__ */ u(
217
+ "span",
218
+ {
219
+ style: {
220
+ color: e.contextUrl ? "#007BFF" : "#292929"
221
+ },
222
+ children: ` ${e != null && e.context ? e.context : ""}`
223
+ }
224
+ )
225
+ ]
226
+ }
227
+ ),
211
228
  (e == null ? void 0 : e.notificationType) === "deleteMultiple" && /* @__PURE__ */ A(
212
229
  "button",
213
230
  {
@@ -276,7 +293,7 @@ const Si = (e) => {
276
293
  brandColors: n,
277
294
  notiUnreadNumber: o
278
295
  }) => {
279
- const [i, a] = B(!1);
296
+ const [i, a] = H(!1);
280
297
  console.log(i);
281
298
  const { setNotiData: l } = Oe(Fe), c = Tr({ baseUrl: t, notiPath: r, setNotiData: l }), d = async () => {
282
299
  try {
@@ -332,7 +349,7 @@ const Si = (e) => {
332
349
  clearTimeout(p), document.removeEventListener("mousedown", b);
333
350
  };
334
351
  }, [o]);
335
- const [a, l] = B("all"), c = [
352
+ const [a, l] = H("all"), c = [
336
353
  {
337
354
  id: "all",
338
355
  tabTitle: `All (${((d = i == null ? void 0 : i.all) == null ? void 0 : d.total) || 0})`,
@@ -643,7 +660,7 @@ const Ni = `@keyframes react-loading-skeleton{to{transform:translate(100%)}}.rea
643
660
  baseUrl: e,
644
661
  searchPath: t
645
662
  }) => {
646
- const [r, n] = B(!1);
663
+ const [r, n] = H(!1);
647
664
  console.log("hasPermission state", r);
648
665
  const o = async () => {
649
666
  const a = e + (t || "/user-management/api/v1/users/my-account/access-stella-search");
@@ -735,12 +752,12 @@ function Gn(e) {
735
752
  return typeof e == "number";
736
753
  }
737
754
  function ji(e) {
738
- return e === !0 || e === !1 || Hi(e) && Zn(e) == "[object Boolean]";
755
+ return e === !0 || e === !1 || Bi(e) && Zn(e) == "[object Boolean]";
739
756
  }
740
757
  function qn(e) {
741
758
  return typeof e == "object";
742
759
  }
743
- function Hi(e) {
760
+ function Bi(e) {
744
761
  return qn(e) && e !== null;
745
762
  }
746
763
  function ae(e) {
@@ -752,7 +769,7 @@ function ir(e) {
752
769
  function Zn(e) {
753
770
  return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
754
771
  }
755
- const Bi = "Incorrect 'index' type", Vi = (e) => `Invalid value for key ${e}`, Wi = (e) => `Pattern length exceeds max of ${e}.`, Ui = (e) => `Missing ${e} property in key`, Yi = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Zr = Object.prototype.hasOwnProperty;
772
+ const Hi = "Incorrect 'index' type", Vi = (e) => `Invalid value for key ${e}`, Wi = (e) => `Pattern length exceeds max of ${e}.`, Ui = (e) => `Missing ${e} property in key`, Yi = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Zr = Object.prototype.hasOwnProperty;
756
773
  class Ki {
757
774
  constructor(t) {
758
775
  this._keys = [], this._keyMap = {};
@@ -1591,7 +1608,7 @@ class rt {
1591
1608
  }
1592
1609
  setCollection(t, r) {
1593
1610
  if (this._docs = t, r && !(r instanceof Mr))
1594
- throw new Error(Bi);
1611
+ throw new Error(Hi);
1595
1612
  this._myIndex = r || Jn(this.options.keys, this._docs, {
1596
1613
  getFn: this.options.getFn,
1597
1614
  fieldNormWeight: this.options.fieldNormWeight
@@ -1962,7 +1979,7 @@ function Oa({
1962
1979
  ({ ..._a, ...b });
1963
1980
  const g = { ...tn, ...t }, S = new rt(e, g);
1964
1981
  S.setCollection(e);
1965
- const [C, T] = B(s), [I, M] = B([]), [$, F] = B(-1), [U, oe] = B(!1), [me, Pe] = B(!1), [Te, He] = B(!1), [Me, Be] = B(!1);
1982
+ const [C, T] = H(s), [I, M] = H([]), [$, F] = H(-1), [U, oe] = H(!1), [me, Pe] = H(!1), [Te, Be] = H(!1), [Me, He] = H(!1);
1966
1983
  q(() => {
1967
1984
  T(s);
1968
1985
  const R = setTimeout(
@@ -1974,12 +1991,12 @@ function Oa({
1974
1991
  (C == null ? void 0 : C.length) >= 3 ? e && (e == null ? void 0 : e.length) > 0 && M(e) : M([]);
1975
1992
  }, [e]), q(() => {
1976
1993
  const R = () => {
1977
- We(), Be(!1);
1994
+ We(), He(!1);
1978
1995
  };
1979
1996
  return document.addEventListener("click", R), () => document.removeEventListener("click", R);
1980
1997
  }, []), q(() => {
1981
1998
  (() => {
1982
- x && C.length > 0 && !me && I.length === 0 && !U ? He(!0) : He(!1), w && I.length === 0 && C.length === 0 && Me && M(e.slice(0, f));
1999
+ x && C.length > 0 && !me && I.length === 0 && !U ? Be(!0) : Be(!1), w && I.length === 0 && C.length === 0 && Me && M(e.slice(0, f));
1983
2000
  })();
1984
2001
  }, [
1985
2002
  me,
@@ -1991,7 +2008,7 @@ function Oa({
1991
2008
  Me
1992
2009
  ]);
1993
2010
  const at = (R) => {
1994
- a(R), Be(!0);
2011
+ a(R), He(!0);
1995
2012
  }, ze = (R) => {
1996
2013
  let te = [];
1997
2014
  (R == null ? void 0 : R.length) > 0 && (te = wt(R)), M(te), n(R, te), Pe(!1);
@@ -2079,9 +2096,9 @@ function $a({ classNames: e = "", ...t }) {
2079
2096
  ...a,
2080
2097
  color: (l == null ? void 0 : l.headerTextColor) || "white",
2081
2098
  backgroundColor: (l == null ? void 0 : l.headerBgColor) || "black"
2082
- }, [m, b] = B(!1), { Term: p } = vi();
2099
+ }, [m, b] = H(!1), { Term: p } = vi();
2083
2100
  console.log("term", p);
2084
- const [s, y] = B([]), [x, _] = B([]), w = Ri({ baseUrl: o });
2101
+ const [s, y] = H([]), [x, _] = H([]), w = Ri({ baseUrl: o });
2085
2102
  console.log("searchPermission", w.hasPermission), q(() => {
2086
2103
  s.length >= 3 ? E(s) : _([]);
2087
2104
  }, [s]);
@@ -2255,8 +2272,8 @@ function Na() {
2255
2272
  value: Ur.de,
2256
2273
  element: /* @__PURE__ */ u(Pi, {})
2257
2274
  }
2258
- ], [t, r] = B(!1);
2259
- B(
2275
+ ], [t, r] = H(!1);
2276
+ H(
2260
2277
  new Array(e.length).fill(!1)
2261
2278
  );
2262
2279
  const { language: n, setLanguage: o } = Yo();
@@ -2294,8 +2311,8 @@ function Ra({
2294
2311
  avatarUrl: e,
2295
2312
  userName: t
2296
2313
  }) {
2297
- const [r, n] = B(!1), o = ve(null);
2298
- return ve(null), B(!1), B(!1), q(() => {
2314
+ const [r, n] = H(!1), o = ve(null);
2315
+ return ve(null), H(!1), H(!1), q(() => {
2299
2316
  Kn({
2300
2317
  childrenClass: "userAvatar",
2301
2318
  action() {
@@ -2335,7 +2352,7 @@ function E1(e) {
2335
2352
  );
2336
2353
  }
2337
2354
  const C1 = (e) => /* @__PURE__ */ u(
2338
- Hn,
2355
+ Bn,
2339
2356
  {
2340
2357
  autoClose: 3e3,
2341
2358
  hideProgressBar: !0,
@@ -2347,7 +2364,7 @@ const C1 = (e) => /* @__PURE__ */ u(
2347
2364
  ...e
2348
2365
  }
2349
2366
  ), I1 = (e) => /* @__PURE__ */ u(
2350
- Hn,
2367
+ Bn,
2351
2368
  {
2352
2369
  autoClose: 3e3,
2353
2370
  hideProgressBar: !0,
@@ -2696,7 +2713,7 @@ function Pa() {
2696
2713
  var za = typeof Et == "object" && Et && Et.Object === Object && Et, Da = typeof self == "object" && self && self.Object === Object && self;
2697
2714
  za || Da || Function("return this")();
2698
2715
  function La(e) {
2699
- const [t, r] = B(!!e), n = kt(() => {
2716
+ const [t, r] = H(!!e), n = kt(() => {
2700
2717
  r(!0);
2701
2718
  }, []), o = kt(() => {
2702
2719
  r(!1);
@@ -2945,7 +2962,7 @@ function dt(e) {
2945
2962
  t += "&args[]=" + encodeURIComponent(arguments[r]);
2946
2963
  return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
2947
2964
  }
2948
- const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2965
+ const Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2949
2966
  __proto__: null,
2950
2967
  default: dt
2951
2968
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2960,7 +2977,7 @@ var yr = { exports: {} }, j = {};
2960
2977
  * LICENSE file in the root directory of this source tree.
2961
2978
  */
2962
2979
  var nn;
2963
- function Ba() {
2980
+ function Ha() {
2964
2981
  if (nn)
2965
2982
  return j;
2966
2983
  nn = 1;
@@ -3023,7 +3040,7 @@ function Ba() {
3023
3040
  return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === c || s === d || s === m || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === f || s.$$typeof === a || s.$$typeof === i || s.$$typeof === l || s.$$typeof === b || s.getModuleId !== void 0);
3024
3041
  }, j.typeOf = p, j;
3025
3042
  }
3026
- var H = {};
3043
+ var B = {};
3027
3044
  /**
3028
3045
  * @license React
3029
3046
  * react-is.development.js
@@ -3067,36 +3084,36 @@ function Va() {
3067
3084
  }
3068
3085
  }
3069
3086
  var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), p = Symbol.for("react.client.reference");
3070
- H.ContextConsumer = a, H.ContextProvider = l, H.Element = t, H.ForwardRef = c, H.Fragment = n, H.Lazy = m, H.Memo = h, H.Portal = r, H.Profiler = i, H.StrictMode = o, H.Suspense = d, H.SuspenseList = f, H.isContextConsumer = function(s) {
3087
+ B.ContextConsumer = a, B.ContextProvider = l, B.Element = t, B.ForwardRef = c, B.Fragment = n, B.Lazy = m, B.Memo = h, B.Portal = r, B.Profiler = i, B.StrictMode = o, B.Suspense = d, B.SuspenseList = f, B.isContextConsumer = function(s) {
3071
3088
  return e(s) === a;
3072
- }, H.isContextProvider = function(s) {
3089
+ }, B.isContextProvider = function(s) {
3073
3090
  return e(s) === l;
3074
- }, H.isElement = function(s) {
3091
+ }, B.isElement = function(s) {
3075
3092
  return typeof s == "object" && s !== null && s.$$typeof === t;
3076
- }, H.isForwardRef = function(s) {
3093
+ }, B.isForwardRef = function(s) {
3077
3094
  return e(s) === c;
3078
- }, H.isFragment = function(s) {
3095
+ }, B.isFragment = function(s) {
3079
3096
  return e(s) === n;
3080
- }, H.isLazy = function(s) {
3097
+ }, B.isLazy = function(s) {
3081
3098
  return e(s) === m;
3082
- }, H.isMemo = function(s) {
3099
+ }, B.isMemo = function(s) {
3083
3100
  return e(s) === h;
3084
- }, H.isPortal = function(s) {
3101
+ }, B.isPortal = function(s) {
3085
3102
  return e(s) === r;
3086
- }, H.isProfiler = function(s) {
3103
+ }, B.isProfiler = function(s) {
3087
3104
  return e(s) === i;
3088
- }, H.isStrictMode = function(s) {
3105
+ }, B.isStrictMode = function(s) {
3089
3106
  return e(s) === o;
3090
- }, H.isSuspense = function(s) {
3107
+ }, B.isSuspense = function(s) {
3091
3108
  return e(s) === d;
3092
- }, H.isSuspenseList = function(s) {
3109
+ }, B.isSuspenseList = function(s) {
3093
3110
  return e(s) === f;
3094
- }, H.isValidElementType = function(s) {
3111
+ }, B.isValidElementType = function(s) {
3095
3112
  return typeof s == "string" || typeof s == "function" || s === n || s === i || s === o || s === d || s === f || s === b || typeof s == "object" && s !== null && (s.$$typeof === m || s.$$typeof === h || s.$$typeof === l || s.$$typeof === a || s.$$typeof === c || s.$$typeof === p || s.getModuleId !== void 0);
3096
- }, H.typeOf = e;
3097
- }()), H;
3113
+ }, B.typeOf = e;
3114
+ }()), B;
3098
3115
  }
3099
- process.env.NODE_ENV === "production" ? yr.exports = Ba() : yr.exports = Va();
3116
+ process.env.NODE_ENV === "production" ? yr.exports = Ha() : yr.exports = Va();
3100
3117
  var an = yr.exports;
3101
3118
  const Wa = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
3102
3119
  function oo(e) {
@@ -3946,13 +3963,13 @@ function Ls() {
3946
3963
  }
3947
3964
  }
3948
3965
  var v = c, g = d, S = l, C = a, T = t, I = f, M = n, $ = p, F = b, U = r, oe = i, me = o, Pe = h, Te = !1;
3949
- function He(k) {
3966
+ function Be(k) {
3950
3967
  return Te || (Te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Me(k) || E(k) === c;
3951
3968
  }
3952
3969
  function Me(k) {
3953
3970
  return E(k) === d;
3954
3971
  }
3955
- function Be(k) {
3972
+ function He(k) {
3956
3973
  return E(k) === l;
3957
3974
  }
3958
3975
  function at(k) {
@@ -3985,7 +4002,7 @@ function Ls() {
3985
4002
  function te(k) {
3986
4003
  return E(k) === h;
3987
4004
  }
3988
- L.AsyncMode = v, L.ConcurrentMode = g, L.ContextConsumer = S, L.ContextProvider = C, L.Element = T, L.ForwardRef = I, L.Fragment = M, L.Lazy = $, L.Memo = F, L.Portal = U, L.Profiler = oe, L.StrictMode = me, L.Suspense = Pe, L.isAsyncMode = He, L.isConcurrentMode = Me, L.isContextConsumer = Be, L.isContextProvider = at, L.isElement = ze, L.isForwardRef = _e, L.isFragment = Ve, L.isLazy = wt, L.isMemo = nr, L.isPortal = We, L.isProfiler = _t, L.isStrictMode = R, L.isSuspense = te, L.isValidElementType = w, L.typeOf = E;
4005
+ L.AsyncMode = v, L.ConcurrentMode = g, L.ContextConsumer = S, L.ContextProvider = C, L.Element = T, L.ForwardRef = I, L.Fragment = M, L.Lazy = $, L.Memo = F, L.Portal = U, L.Profiler = oe, L.StrictMode = me, L.Suspense = Pe, L.isAsyncMode = Be, L.isConcurrentMode = Me, L.isContextConsumer = He, L.isContextProvider = at, L.isElement = ze, L.isForwardRef = _e, L.isFragment = Ve, L.isLazy = wt, L.isMemo = nr, L.isPortal = We, L.isProfiler = _t, L.isStrictMode = R, L.isSuspense = te, L.isValidElementType = w, L.typeOf = E;
3989
4006
  }()), L;
3990
4007
  }
3991
4008
  process.env.NODE_ENV === "production" ? Sr.exports = Ds() : Sr.exports = Ls();
@@ -3995,7 +4012,7 @@ var Fs = Sr.exports, bo = Fs, js = {
3995
4012
  defaultProps: !0,
3996
4013
  displayName: !0,
3997
4014
  propTypes: !0
3998
- }, Hs = {
4015
+ }, Bs = {
3999
4016
  $$typeof: !0,
4000
4017
  compare: !0,
4001
4018
  defaultProps: !0,
@@ -4004,8 +4021,8 @@ var Fs = Sr.exports, bo = Fs, js = {
4004
4021
  type: !0
4005
4022
  }, vo = {};
4006
4023
  vo[bo.ForwardRef] = js;
4007
- vo[bo.Memo] = Hs;
4008
- var Bs = !0;
4024
+ vo[bo.Memo] = Bs;
4025
+ var Hs = !0;
4009
4026
  function xo(e, t, r) {
4010
4027
  var n = "";
4011
4028
  return r.split(" ").forEach(function(o) {
@@ -4023,7 +4040,7 @@ var Nr = function(t, r, n) {
4023
4040
  // in node since emotion-server relies on whether a style is in
4024
4041
  // the registered cache to know whether a style is global or not
4025
4042
  // also, note that this check will be dead code eliminated in the browser
4026
- Bs === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
4043
+ Hs === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
4027
4044
  }, Rr = function(t, r, n) {
4028
4045
  Nr(t, r, n);
4029
4046
  var o = t.key + "-" + r.name;
@@ -4733,7 +4750,7 @@ function qt(e, t, r = !0) {
4733
4750
  }
4734
4751
  return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
4735
4752
  }
4736
- function Ht(e, t, r, n = r) {
4753
+ function Bt(e, t, r, n = r) {
4737
4754
  let o;
4738
4755
  return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = qt(e, r) || n, t && (o = t(o, n, e)), o;
4739
4756
  }
@@ -4748,8 +4765,8 @@ function Z(e) {
4748
4765
  return null;
4749
4766
  const l = a[t], c = a.theme, d = qt(c, n) || {};
4750
4767
  return Ie(a, l, (h) => {
4751
- let m = Ht(d, o, h);
4752
- return h === m && typeof h == "string" && (m = Ht(d, o, `${t}${h === "default" ? "" : je(h)}`, h)), r === !1 ? m : {
4768
+ let m = Bt(d, o, h);
4769
+ return h === m && typeof h == "string" && (m = Bt(d, o, `${t}${h === "default" ? "" : je(h)}`, h)), r === !1 ? m : {
4753
4770
  [r]: m
4754
4771
  };
4755
4772
  });
@@ -4855,7 +4872,7 @@ function he(e, t) {
4855
4872
  transform: t
4856
4873
  });
4857
4874
  }
4858
- const zl = he("border", ue), Dl = he("borderTop", ue), Ll = he("borderRight", ue), Fl = he("borderBottom", ue), jl = he("borderLeft", ue), Hl = he("borderColor"), Bl = he("borderTopColor"), Vl = he("borderRightColor"), Wl = he("borderBottomColor"), Ul = he("borderLeftColor"), Yl = he("outline", ue), Kl = he("outlineColor"), Qt = (e) => {
4875
+ const zl = he("border", ue), Dl = he("borderTop", ue), Ll = he("borderRight", ue), Fl = he("borderBottom", ue), jl = he("borderLeft", ue), Bl = he("borderColor"), Hl = he("borderTopColor"), Vl = he("borderRightColor"), Wl = he("borderBottomColor"), Ul = he("borderLeftColor"), Yl = he("outline", ue), Kl = he("outlineColor"), Qt = (e) => {
4859
4876
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
4860
4877
  const t = vt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
4861
4878
  borderRadius: xt(t, n)
@@ -4868,7 +4885,7 @@ Qt.propTypes = process.env.NODE_ENV !== "production" ? {
4868
4885
  borderRadius: Re
4869
4886
  } : {};
4870
4887
  Qt.filterProps = ["borderRadius"];
4871
- Jt(zl, Dl, Ll, Fl, jl, Hl, Bl, Vl, Wl, Ul, Qt, Yl, Kl);
4888
+ Jt(zl, Dl, Ll, Fl, jl, Bl, Hl, Vl, Wl, Ul, Qt, Yl, Kl);
4872
4889
  const er = (e) => {
4873
4890
  if (e.gap !== void 0 && e.gap !== null) {
4874
4891
  const t = vt(e.theme, "spacing", 8, "gap"), r = (n) => ({
@@ -5313,8 +5330,8 @@ function Oo() {
5313
5330
  };
5314
5331
  const m = qt(o, d) || {};
5315
5332
  return h ? h(a) : Ie(a, n, (p) => {
5316
- let s = Ht(m, f, p);
5317
- return p === s && typeof p == "string" && (s = Ht(m, f, `${r}${p === "default" ? "" : je(p)}`, p)), c === !1 ? s : {
5333
+ let s = Bt(m, f, p);
5334
+ return p === s && typeof p == "string" && (s = Bt(m, f, `${r}${p === "default" ? "" : je(p)}`, p)), c === !1 ? s : {
5318
5335
  [c]: s
5319
5336
  };
5320
5337
  });
@@ -5619,7 +5636,7 @@ function Lc(e, t) {
5619
5636
  }, t);
5620
5637
  }
5621
5638
  var X = {};
5622
- const Fc = /* @__PURE__ */ we(Ha), jc = /* @__PURE__ */ we(ts);
5639
+ const Fc = /* @__PURE__ */ we(Ba), jc = /* @__PURE__ */ we(ts);
5623
5640
  var zo = so;
5624
5641
  Object.defineProperty(X, "__esModule", {
5625
5642
  value: !0
@@ -5627,14 +5644,14 @@ Object.defineProperty(X, "__esModule", {
5627
5644
  X.alpha = jo;
5628
5645
  X.blend = Jc;
5629
5646
  X.colorChannel = void 0;
5630
- var Hc = X.darken = Hr;
5647
+ var Bc = X.darken = Br;
5631
5648
  X.decomposeColor = fe;
5632
- X.emphasize = Ho;
5649
+ X.emphasize = Bo;
5633
5650
  var Cn = X.getContrastRatio = Kc;
5634
- X.getLuminance = Bt;
5651
+ X.getLuminance = Ht;
5635
5652
  X.hexToRgb = Do;
5636
5653
  X.hslToRgb = Fo;
5637
- var Bc = X.lighten = Br;
5654
+ var Hc = X.lighten = Hr;
5638
5655
  X.private_safeAlpha = Gc;
5639
5656
  X.private_safeColorChannel = void 0;
5640
5657
  X.private_safeDarken = qc;
@@ -5721,13 +5738,13 @@ function Fo(e) {
5721
5738
  values: c
5722
5739
  });
5723
5740
  }
5724
- function Bt(e) {
5741
+ function Ht(e) {
5725
5742
  e = fe(e);
5726
5743
  let t = e.type === "hsl" || e.type === "hsla" ? fe(Fo(e)).values : e.values;
5727
5744
  return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
5728
5745
  }
5729
5746
  function Kc(e, t) {
5730
- const r = Bt(e), n = Bt(t);
5747
+ const r = Ht(e), n = Ht(t);
5731
5748
  return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
5732
5749
  }
5733
5750
  function jo(e, t) {
@@ -5740,7 +5757,7 @@ function Gc(e, t, r) {
5740
5757
  return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
5741
5758
  }
5742
5759
  }
5743
- function Hr(e, t) {
5760
+ function Br(e, t) {
5744
5761
  if (e = fe(e), t = jr(t), e.type.indexOf("hsl") !== -1)
5745
5762
  e.values[2] *= 1 - t;
5746
5763
  else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
@@ -5750,12 +5767,12 @@ function Hr(e, t) {
5750
5767
  }
5751
5768
  function qc(e, t, r) {
5752
5769
  try {
5753
- return Hr(e, t);
5770
+ return Br(e, t);
5754
5771
  } catch {
5755
5772
  return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
5756
5773
  }
5757
5774
  }
5758
- function Br(e, t) {
5775
+ function Hr(e, t) {
5759
5776
  if (e = fe(e), t = jr(t), e.type.indexOf("hsl") !== -1)
5760
5777
  e.values[2] += (100 - e.values[2]) * t;
5761
5778
  else if (e.type.indexOf("rgb") !== -1)
@@ -5768,17 +5785,17 @@ function Br(e, t) {
5768
5785
  }
5769
5786
  function Zc(e, t, r) {
5770
5787
  try {
5771
- return Br(e, t);
5788
+ return Hr(e, t);
5772
5789
  } catch {
5773
5790
  return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
5774
5791
  }
5775
5792
  }
5776
- function Ho(e, t = 0.15) {
5777
- return Bt(e) > 0.5 ? Hr(e, t) : Br(e, t);
5793
+ function Bo(e, t = 0.15) {
5794
+ return Ht(e) > 0.5 ? Br(e, t) : Hr(e, t);
5778
5795
  }
5779
5796
  function Xc(e, t, r) {
5780
5797
  try {
5781
- return Ho(e, t);
5798
+ return Bo(e, t);
5782
5799
  } catch {
5783
5800
  return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
5784
5801
  }
@@ -5963,7 +5980,7 @@ const Qc = {
5963
5980
  };
5964
5981
  function Mn(e, t, r, n) {
5965
5982
  const o = n.light || n, i = n.dark || n * 1.5;
5966
- e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Bc(e.main, o) : t === "dark" && (e.dark = Hc(e.main, i)));
5983
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Hc(e.main, o) : t === "dark" && (e.dark = Bc(e.main, i)));
5967
5984
  }
5968
5985
  function c0(e = "light") {
5969
5986
  return e === "dark" ? {
@@ -6328,11 +6345,11 @@ const D0 = (e) => z0(e) && e !== "classes", L0 = D0, F0 = _c({
6328
6345
  defaultTheme: R0,
6329
6346
  rootShouldForwardProp: L0
6330
6347
  }), j0 = F0;
6331
- function H0(e) {
6348
+ function B0(e) {
6332
6349
  return kr("MuiSvgIcon", e);
6333
6350
  }
6334
6351
  Qa("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
6335
- const B0 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], V0 = (e) => {
6352
+ const H0 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], V0 = (e) => {
6336
6353
  const {
6337
6354
  color: t,
6338
6355
  fontSize: r,
@@ -6340,7 +6357,7 @@ const B0 = ["children", "className", "color", "component", "fontSize", "htmlColo
6340
6357
  } = e, o = {
6341
6358
  root: ["root", t !== "inherit" && `color${je(t)}`, `fontSize${je(r)}`]
6342
6359
  };
6343
- return Ga(o, H0, n);
6360
+ return Ga(o, B0, n);
6344
6361
  }, W0 = j0("svg", {
6345
6362
  name: "MuiSvgIcon",
6346
6363
  slot: "Root",
@@ -6394,7 +6411,7 @@ const B0 = ["children", "className", "color", "component", "fontSize", "htmlColo
6394
6411
  inheritViewBox: f = !1,
6395
6412
  titleAccess: h,
6396
6413
  viewBox: m = "0 0 24 24"
6397
- } = n, b = $e(n, B0), p = /* @__PURE__ */ W.isValidElement(o) && o.type === "svg", s = V({}, n, {
6414
+ } = n, b = $e(n, H0), p = /* @__PURE__ */ W.isValidElement(o) && o.type === "svg", s = V({}, n, {
6398
6415
  color: a,
6399
6416
  component: l,
6400
6417
  fontSize: c,
@@ -6720,9 +6737,9 @@ function Q0(e) {
6720
6737
  }, b.componentWillUnmount = function() {
6721
6738
  this._resetIsScrollingTimeoutId !== null && Pn(this._resetIsScrollingTimeoutId);
6722
6739
  }, b.render = function() {
6723
- var s = this.props, y = s.children, x = s.className, _ = s.direction, w = s.height, E = s.innerRef, v = s.innerElementType, g = s.innerTagName, S = s.itemCount, C = s.itemData, T = s.itemKey, I = T === void 0 ? J0 : T, M = s.layout, $ = s.outerElementType, F = s.outerTagName, U = s.style, oe = s.useIsScrolling, me = s.width, Pe = this.state.isScrolling, Te = _ === "horizontal" || M === "horizontal", He = Te ? this._onScrollHorizontal : this._onScrollVertical, Me = this._getRangeToRender(), Be = Me[0], at = Me[1], ze = [];
6740
+ var s = this.props, y = s.children, x = s.className, _ = s.direction, w = s.height, E = s.innerRef, v = s.innerElementType, g = s.innerTagName, S = s.itemCount, C = s.itemData, T = s.itemKey, I = T === void 0 ? J0 : T, M = s.layout, $ = s.outerElementType, F = s.outerTagName, U = s.style, oe = s.useIsScrolling, me = s.width, Pe = this.state.isScrolling, Te = _ === "horizontal" || M === "horizontal", Be = Te ? this._onScrollHorizontal : this._onScrollVertical, Me = this._getRangeToRender(), He = Me[0], at = Me[1], ze = [];
6724
6741
  if (S > 0)
6725
- for (var _e = Be; _e <= at; _e++)
6742
+ for (var _e = He; _e <= at; _e++)
6726
6743
  ze.push(or(y, {
6727
6744
  data: C,
6728
6745
  key: I(_e, C),
@@ -6733,7 +6750,7 @@ function Q0(e) {
6733
6750
  var Ve = n(this.props, this._instanceProps);
6734
6751
  return or($ || F || "div", {
6735
6752
  className: x,
6736
- onScroll: He,
6753
+ onScroll: Be,
6737
6754
  ref: this._outerRefSetter,
6738
6755
  style: V({
6739
6756
  position: "relative",
@@ -6830,8 +6847,8 @@ var e1 = function(t, r) {
6830
6847
  return a[r];
6831
6848
  }, r1 = function(t, r, n) {
6832
6849
  var o = r.itemMetadataMap, i = r.lastMeasuredIndex, a = i > 0 ? o[i].offset : 0;
6833
- return a >= n ? Bo(t, r, i, 0, n) : n1(t, r, Math.max(0, i), n);
6834
- }, Bo = function(t, r, n, o, i) {
6850
+ return a >= n ? Ho(t, r, i, 0, n) : n1(t, r, Math.max(0, i), n);
6851
+ }, Ho = function(t, r, n, o, i) {
6835
6852
  for (; o <= n; ) {
6836
6853
  var a = o + Math.floor((n - o) / 2), l = Je(t, a, r).offset;
6837
6854
  if (l === i)
@@ -6842,7 +6859,7 @@ var e1 = function(t, r) {
6842
6859
  }, n1 = function(t, r, n, o) {
6843
6860
  for (var i = t.itemCount, a = 1; n < i && Je(t, n, r).offset < o; )
6844
6861
  n += a, a *= 2;
6845
- return Bo(t, r, Math.min(n, i - 1), Math.floor(n / 2), o);
6862
+ return Ho(t, r, Math.min(n, i - 1), Math.floor(n / 2), o);
6846
6863
  }, Ln = function(t, r) {
6847
6864
  var n = t.itemCount, o = r.itemMetadataMap, i = r.estimatedItemSize, a = r.lastMeasuredIndex, l = 0;
6848
6865
  if (a >= n && (a = n - 1), a >= 0) {
@@ -6937,7 +6954,7 @@ const Vt = 37, i1 = (e, t) => {
6937
6954
  return document.body.removeChild(a), l > 21 ? Vt + 21 : Vt;
6938
6955
  };
6939
6956
  function N1(e) {
6940
- const [t, r] = B(!1), [n, o] = B(""), [i, a] = B(""), [l, c] = B(!1), { isRequired: d = !1 } = e, f = kt(
6957
+ const [t, r] = H(!1), [n, o] = H(""), [i, a] = H(""), [l, c] = H(!1), { isRequired: d = !1 } = e, f = kt(
6941
6958
  Kr.debounce((g) => {
6942
6959
  var S;
6943
6960
  (S = e.handleChangeSearch) == null || S.call(e, g);
@@ -7172,7 +7189,7 @@ function N1(e) {
7172
7189
  }
7173
7190
  function R1(e) {
7174
7191
  var f;
7175
- const { listProps: t } = e, [r, n] = B({
7192
+ const { listProps: t } = e, [r, n] = H({
7176
7193
  initLoading: !e.disabled,
7177
7194
  searchLoading: !1,
7178
7195
  hasNextPage: !1,
@@ -7343,7 +7360,7 @@ function a1(e) {
7343
7360
  const s1 = "Reset date";
7344
7361
  function P1(e) {
7345
7362
  var l, c;
7346
- const [t, r] = B(e.value), n = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : Q(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + Q(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
7363
+ const [t, r] = H(e.value), n = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : Q(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + Q(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
7347
7364
  q(() => {
7348
7365
  r(e.value);
7349
7366
  }, [e.value]);
@@ -7498,7 +7515,7 @@ function z1(e) {
7498
7515
  const jn = (e) => {
7499
7516
  "serviceWorker" in navigator && navigator.serviceWorker.register(e.path).then(function(t) {
7500
7517
  console.log("Registration successful, scope is:", t.scope), console.log("initialize service worker props ", e);
7501
- const r = Bn(
7518
+ const r = Hn(
7502
7519
  Vn({
7503
7520
  apiKey: e.apiKey,
7504
7521
  authDomain: e.authDomain,
@@ -7549,7 +7566,7 @@ const jn = (e) => {
7549
7566
  }));
7550
7567
  };
7551
7568
  }, d1 = (e) => new Promise((t) => {
7552
- const r = Bn(
7569
+ const r = Hn(
7553
7570
  Vn({
7554
7571
  apiKey: e.apiKey,
7555
7572
  authDomain: e.authDomain,
@@ -7564,7 +7581,7 @@ const jn = (e) => {
7564
7581
  console.log("payload", n), t(n);
7565
7582
  });
7566
7583
  }), f1 = (e) => {
7567
- const [t, r] = B({
7584
+ const [t, r] = H({
7568
7585
  actorName: "",
7569
7586
  message: "",
7570
7587
  context: "",
@@ -7669,8 +7686,8 @@ export {
7669
7686
  Fn as AutocompleteOption,
7670
7687
  z1 as BaseCheckbox,
7671
7688
  c1 as CheckedIcon,
7672
- H1 as FavoriteMenu,
7673
- B1 as GlobalMenu,
7689
+ B1 as FavoriteMenu,
7690
+ H1 as GlobalMenu,
7674
7691
  O1 as HomePage,
7675
7692
  V1 as IconComponent,
7676
7693
  Na as LanguageDropdown,