@ukpc-lib/react 0.11.4 → 0.12.1-dev.0
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/MenuItem.d.ts +2 -1
- package/dist/components/GlobalMenu/data.json.d.ts +1979 -1143
- package/dist/components/index.cjs +3 -3
- package/dist/components/index.js +98 -96
- package/dist/index.esm2017-5e128de3.cjs +1101 -0
- package/dist/index.esm2017-e23bb13e.js +41224 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +2 -2
- package/web-components-bundle/access-denied/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +2 -2
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-26babbd6.js → index-4908ae68.js} +19380 -18789
- package/web-components-bundle/{index-c91ec106.js → index-a07af468.js} +29 -29
- package/dist/index.esm2017-3eee8145.js +0 -40631
- package/dist/index.esm2017-f3d75692.cjs +0 -1101
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as k, Fragment as ue, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as W from "react";
|
|
3
|
-
import pe, { useState as
|
|
4
|
-
import { c as De, a as gt, C as Le, 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
|
|
5
|
-
import { H as
|
|
3
|
+
import pe, { useState as B, useContext as Ae, useEffect as q, useRef as ve, useCallback as kt, forwardRef as Vo, createElement as ir, PureComponent as Wo } from "react";
|
|
4
|
+
import { c as De, a as gt, C as Le, 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 Tr, h as Xo, s as Ct, _ as V, P as N, i as we, j as Jo, o as Qo, k as Oe, 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-e23bb13e.js";
|
|
5
|
+
import { H as H1, G as B1, K as V1, E as W1, F as U1, J as Y1 } from "../index.esm2017-e23bb13e.js";
|
|
6
6
|
import Q from "moment";
|
|
7
7
|
import { Stack as oe, 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] =
|
|
108
|
+
const [i, a] = B(!1), [l, c] = B({
|
|
109
109
|
id: e.id,
|
|
110
110
|
isRead: e.isRead
|
|
111
111
|
}), d = l.isRead === !1 ? "unread" : "read", f = {
|
|
@@ -276,7 +276,7 @@ const Si = (e) => {
|
|
|
276
276
|
brandColors: n,
|
|
277
277
|
notiUnreadNumber: o
|
|
278
278
|
}) => {
|
|
279
|
-
const [i, a] =
|
|
279
|
+
const [i, a] = B(!1);
|
|
280
280
|
console.log(i);
|
|
281
281
|
const { setNotiData: l } = Ae(Le), c = Mr({ baseUrl: t, notiPath: r, setNotiData: l }), d = async () => {
|
|
282
282
|
try {
|
|
@@ -332,7 +332,7 @@ const Si = (e) => {
|
|
|
332
332
|
clearTimeout(p), document.removeEventListener("mousedown", b);
|
|
333
333
|
};
|
|
334
334
|
}, [o]);
|
|
335
|
-
const [a, l] =
|
|
335
|
+
const [a, l] = B("all"), c = [
|
|
336
336
|
{
|
|
337
337
|
id: "all",
|
|
338
338
|
tabTitle: `All (${((d = i == null ? void 0 : i.all) == null ? void 0 : d.total) || 0})`,
|
|
@@ -643,7 +643,7 @@ const Ni = `@keyframes react-loading-skeleton{to{transform:translate(100%)}}.rea
|
|
|
643
643
|
baseUrl: e,
|
|
644
644
|
searchPath: t
|
|
645
645
|
}) => {
|
|
646
|
-
const [r, n] =
|
|
646
|
+
const [r, n] = B(!1);
|
|
647
647
|
console.log("hasPermission state", r);
|
|
648
648
|
const o = async () => {
|
|
649
649
|
const a = e + (t || "/user-management/api/v1/users/my-account/access-stella-search");
|
|
@@ -735,12 +735,12 @@ function Gn(e) {
|
|
|
735
735
|
return typeof e == "number";
|
|
736
736
|
}
|
|
737
737
|
function ji(e) {
|
|
738
|
-
return e === !0 || e === !1 ||
|
|
738
|
+
return e === !0 || e === !1 || Hi(e) && Zn(e) == "[object Boolean]";
|
|
739
739
|
}
|
|
740
740
|
function qn(e) {
|
|
741
741
|
return typeof e == "object";
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Hi(e) {
|
|
744
744
|
return qn(e) && e !== null;
|
|
745
745
|
}
|
|
746
746
|
function ie(e) {
|
|
@@ -752,7 +752,7 @@ function ar(e) {
|
|
|
752
752
|
function Zn(e) {
|
|
753
753
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
754
754
|
}
|
|
755
|
-
const
|
|
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;
|
|
756
756
|
class Ki {
|
|
757
757
|
constructor(t) {
|
|
758
758
|
this._keys = [], this._keyMap = {};
|
|
@@ -1591,7 +1591,7 @@ class rt {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
setCollection(t, r) {
|
|
1593
1593
|
if (this._docs = t, r && !(r instanceof kr))
|
|
1594
|
-
throw new Error(
|
|
1594
|
+
throw new Error(Bi);
|
|
1595
1595
|
this._myIndex = r || Jn(this.options.keys, this._docs, {
|
|
1596
1596
|
getFn: this.options.getFn,
|
|
1597
1597
|
fieldNormWeight: this.options.fieldNormWeight
|
|
@@ -1963,7 +1963,7 @@ function Oa({
|
|
|
1963
1963
|
({ ..._a, ...p });
|
|
1964
1964
|
const S = { ...tn, ...t }, T = new rt(e, S);
|
|
1965
1965
|
T.setCollection(e);
|
|
1966
|
-
const [M, A] =
|
|
1966
|
+
const [M, A] = B(y), [C, O] = B([]), [R, U] = B(-1), [re, he] = B(!1), [Re, _e] = B(!1), [at, Te] = B(!1), [je, He] = B(!1);
|
|
1967
1967
|
q(() => {
|
|
1968
1968
|
A(y);
|
|
1969
1969
|
const P = setTimeout(
|
|
@@ -1975,7 +1975,7 @@ function Oa({
|
|
|
1975
1975
|
(M == null ? void 0 : M.length) >= 3 ? e && (e == null ? void 0 : e.length) > 0 && O(e) : O([]);
|
|
1976
1976
|
}, [e]), q(() => {
|
|
1977
1977
|
const P = () => {
|
|
1978
|
-
We(),
|
|
1978
|
+
We(), He(!1);
|
|
1979
1979
|
};
|
|
1980
1980
|
return document.addEventListener("click", P), () => document.removeEventListener("click", P);
|
|
1981
1981
|
}, []), q(() => {
|
|
@@ -1991,8 +1991,8 @@ function Oa({
|
|
|
1991
1991
|
E,
|
|
1992
1992
|
je
|
|
1993
1993
|
]);
|
|
1994
|
-
const
|
|
1995
|
-
c && a(P),
|
|
1994
|
+
const Be = (P) => {
|
|
1995
|
+
c && a(P), He(!0);
|
|
1996
1996
|
}, me = (P) => {
|
|
1997
1997
|
let I = [];
|
|
1998
1998
|
(P == null ? void 0 : P.length) > 0 && (I = wt(P)), O(I), n(P, I), _e(!1);
|
|
@@ -2037,7 +2037,7 @@ function Oa({
|
|
|
2037
2037
|
setSearchString: or,
|
|
2038
2038
|
eraseResults: We,
|
|
2039
2039
|
autoFocus: b,
|
|
2040
|
-
onFocus:
|
|
2040
|
+
onFocus: Be,
|
|
2041
2041
|
onClear: l,
|
|
2042
2042
|
placeholder: m,
|
|
2043
2043
|
showIcon: !0,
|
|
@@ -2080,9 +2080,9 @@ function $a({ classNames: e = "", ...t }) {
|
|
|
2080
2080
|
...a,
|
|
2081
2081
|
color: (l == null ? void 0 : l.headerTextColor) || "white",
|
|
2082
2082
|
backgroundColor: (l == null ? void 0 : l.headerBgColor) || "black"
|
|
2083
|
-
}, [m, b] =
|
|
2083
|
+
}, [m, b] = B(!1), { Term: p } = vi();
|
|
2084
2084
|
console.log("term", p);
|
|
2085
|
-
const [s, y] =
|
|
2085
|
+
const [s, y] = B([]), [x, _] = B([]), w = Ri({ baseUrl: o });
|
|
2086
2086
|
console.log("searchPermission", w.hasPermission), q(() => {
|
|
2087
2087
|
s.length >= 3 ? E(s) : _([]);
|
|
2088
2088
|
}, [s]);
|
|
@@ -2145,7 +2145,7 @@ function $a({ classNames: e = "", ...t }) {
|
|
|
2145
2145
|
className: `navbar-wrapper ${e}`,
|
|
2146
2146
|
style: l ? h : a,
|
|
2147
2147
|
children: /* @__PURE__ */ k("div", { className: "navbar-container", children: [
|
|
2148
|
-
/* @__PURE__ */ u("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ u("img", { src: r || "#", alt: " ", style: {
|
|
2148
|
+
/* @__PURE__ */ u("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ u("img", { src: r || "#", alt: " ", style: { maxHeight: "40px" } }) }),
|
|
2149
2149
|
/* @__PURE__ */ k("div", { className: "right-side-container", children: [
|
|
2150
2150
|
d && w.hasPermission ? /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(
|
|
2151
2151
|
"label",
|
|
@@ -2255,8 +2255,8 @@ function Na() {
|
|
|
2255
2255
|
value: Ur.de,
|
|
2256
2256
|
element: /* @__PURE__ */ u(Pi, {})
|
|
2257
2257
|
}
|
|
2258
|
-
], [t, r] =
|
|
2259
|
-
|
|
2258
|
+
], [t, r] = B(!1);
|
|
2259
|
+
B(
|
|
2260
2260
|
new Array(e.length).fill(!1)
|
|
2261
2261
|
);
|
|
2262
2262
|
const { language: n, setLanguage: o } = Yo();
|
|
@@ -2294,8 +2294,8 @@ function Ra({
|
|
|
2294
2294
|
avatarUrl: e,
|
|
2295
2295
|
userName: t
|
|
2296
2296
|
}) {
|
|
2297
|
-
const [r, n] =
|
|
2298
|
-
return ve(null),
|
|
2297
|
+
const [r, n] = B(!1), o = ve(null);
|
|
2298
|
+
return ve(null), B(!1), B(!1), q(() => {
|
|
2299
2299
|
Kn({
|
|
2300
2300
|
childrenClass: "userAvatar",
|
|
2301
2301
|
action() {
|
|
@@ -2335,7 +2335,7 @@ function E1(e) {
|
|
|
2335
2335
|
);
|
|
2336
2336
|
}
|
|
2337
2337
|
const C1 = (e) => /* @__PURE__ */ u(
|
|
2338
|
-
|
|
2338
|
+
Hn,
|
|
2339
2339
|
{
|
|
2340
2340
|
autoClose: 3e3,
|
|
2341
2341
|
hideProgressBar: !0,
|
|
@@ -2347,7 +2347,7 @@ const C1 = (e) => /* @__PURE__ */ u(
|
|
|
2347
2347
|
...e
|
|
2348
2348
|
}
|
|
2349
2349
|
), I1 = (e) => /* @__PURE__ */ u(
|
|
2350
|
-
|
|
2350
|
+
Hn,
|
|
2351
2351
|
{
|
|
2352
2352
|
autoClose: 3e3,
|
|
2353
2353
|
hideProgressBar: !0,
|
|
@@ -2696,7 +2696,7 @@ function Pa() {
|
|
|
2696
2696
|
var za = typeof Et == "object" && Et && Et.Object === Object && Et, Da = typeof self == "object" && self && self.Object === Object && self;
|
|
2697
2697
|
za || Da || Function("return this")();
|
|
2698
2698
|
function La(e) {
|
|
2699
|
-
const [t, r] =
|
|
2699
|
+
const [t, r] = B(!!e), n = kt(() => {
|
|
2700
2700
|
r(!0);
|
|
2701
2701
|
}, []), o = kt(() => {
|
|
2702
2702
|
r(!1);
|
|
@@ -2945,7 +2945,7 @@ function dt(e) {
|
|
|
2945
2945
|
t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
2946
2946
|
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
2947
2947
|
}
|
|
2948
|
-
const
|
|
2948
|
+
const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2949
2949
|
__proto__: null,
|
|
2950
2950
|
default: dt
|
|
2951
2951
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2960,7 +2960,7 @@ var br = { exports: {} }, j = {};
|
|
|
2960
2960
|
* LICENSE file in the root directory of this source tree.
|
|
2961
2961
|
*/
|
|
2962
2962
|
var nn;
|
|
2963
|
-
function
|
|
2963
|
+
function Ba() {
|
|
2964
2964
|
if (nn)
|
|
2965
2965
|
return j;
|
|
2966
2966
|
nn = 1;
|
|
@@ -3023,7 +3023,7 @@ function Ha() {
|
|
|
3023
3023
|
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
3024
|
}, j.typeOf = p, j;
|
|
3025
3025
|
}
|
|
3026
|
-
var
|
|
3026
|
+
var H = {};
|
|
3027
3027
|
/**
|
|
3028
3028
|
* @license React
|
|
3029
3029
|
* react-is.development.js
|
|
@@ -3067,36 +3067,36 @@ function Va() {
|
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
3069
|
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
|
-
|
|
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) {
|
|
3071
3071
|
return e(s) === a;
|
|
3072
|
-
},
|
|
3072
|
+
}, H.isContextProvider = function(s) {
|
|
3073
3073
|
return e(s) === l;
|
|
3074
|
-
},
|
|
3074
|
+
}, H.isElement = function(s) {
|
|
3075
3075
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
3076
|
-
},
|
|
3076
|
+
}, H.isForwardRef = function(s) {
|
|
3077
3077
|
return e(s) === c;
|
|
3078
|
-
},
|
|
3078
|
+
}, H.isFragment = function(s) {
|
|
3079
3079
|
return e(s) === n;
|
|
3080
|
-
},
|
|
3080
|
+
}, H.isLazy = function(s) {
|
|
3081
3081
|
return e(s) === m;
|
|
3082
|
-
},
|
|
3082
|
+
}, H.isMemo = function(s) {
|
|
3083
3083
|
return e(s) === h;
|
|
3084
|
-
},
|
|
3084
|
+
}, H.isPortal = function(s) {
|
|
3085
3085
|
return e(s) === r;
|
|
3086
|
-
},
|
|
3086
|
+
}, H.isProfiler = function(s) {
|
|
3087
3087
|
return e(s) === i;
|
|
3088
|
-
},
|
|
3088
|
+
}, H.isStrictMode = function(s) {
|
|
3089
3089
|
return e(s) === o;
|
|
3090
|
-
},
|
|
3090
|
+
}, H.isSuspense = function(s) {
|
|
3091
3091
|
return e(s) === d;
|
|
3092
|
-
},
|
|
3092
|
+
}, H.isSuspenseList = function(s) {
|
|
3093
3093
|
return e(s) === f;
|
|
3094
|
-
},
|
|
3094
|
+
}, H.isValidElementType = function(s) {
|
|
3095
3095
|
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
|
-
},
|
|
3097
|
-
}()),
|
|
3096
|
+
}, H.typeOf = e;
|
|
3097
|
+
}()), H;
|
|
3098
3098
|
}
|
|
3099
|
-
process.env.NODE_ENV === "production" ? br.exports =
|
|
3099
|
+
process.env.NODE_ENV === "production" ? br.exports = Ba() : br.exports = Va();
|
|
3100
3100
|
var an = br.exports;
|
|
3101
3101
|
const Wa = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
3102
3102
|
function oo(e) {
|
|
@@ -3955,10 +3955,10 @@ function Ls() {
|
|
|
3955
3955
|
function je(I) {
|
|
3956
3956
|
return E(I) === l;
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function He(I) {
|
|
3959
3959
|
return E(I) === a;
|
|
3960
3960
|
}
|
|
3961
|
-
function
|
|
3961
|
+
function Be(I) {
|
|
3962
3962
|
return typeof I == "object" && I !== null && I.$$typeof === t;
|
|
3963
3963
|
}
|
|
3964
3964
|
function me(I) {
|
|
@@ -3985,7 +3985,7 @@ function Ls() {
|
|
|
3985
3985
|
function P(I) {
|
|
3986
3986
|
return E(I) === h;
|
|
3987
3987
|
}
|
|
3988
|
-
F.AsyncMode = v, F.ConcurrentMode = g, F.ContextConsumer = S, F.ContextProvider = T, F.Element = M, F.ForwardRef = A, F.Fragment = C, F.Lazy = O, F.Memo = R, F.Portal = U, F.Profiler = re, F.StrictMode = he, F.Suspense = Re, F.isAsyncMode = at, F.isConcurrentMode = Te, F.isContextConsumer = je, F.isContextProvider =
|
|
3988
|
+
F.AsyncMode = v, F.ConcurrentMode = g, F.ContextConsumer = S, F.ContextProvider = T, F.Element = M, F.ForwardRef = A, F.Fragment = C, F.Lazy = O, F.Memo = R, F.Portal = U, F.Profiler = re, F.StrictMode = he, F.Suspense = Re, F.isAsyncMode = at, F.isConcurrentMode = Te, F.isContextConsumer = je, F.isContextProvider = He, F.isElement = Be, F.isForwardRef = me, F.isFragment = Ve, F.isLazy = nr, F.isMemo = wt, F.isPortal = or, F.isProfiler = We, F.isStrictMode = _t, F.isSuspense = P, F.isValidElementType = w, F.typeOf = E;
|
|
3989
3989
|
}()), F;
|
|
3990
3990
|
}
|
|
3991
3991
|
process.env.NODE_ENV === "production" ? wr.exports = Ds() : wr.exports = Ls();
|
|
@@ -3995,7 +3995,7 @@ var Fs = wr.exports, bo = Fs, js = {
|
|
|
3995
3995
|
defaultProps: !0,
|
|
3996
3996
|
displayName: !0,
|
|
3997
3997
|
propTypes: !0
|
|
3998
|
-
},
|
|
3998
|
+
}, Hs = {
|
|
3999
3999
|
$$typeof: !0,
|
|
4000
4000
|
compare: !0,
|
|
4001
4001
|
defaultProps: !0,
|
|
@@ -4004,8 +4004,8 @@ var Fs = wr.exports, bo = Fs, js = {
|
|
|
4004
4004
|
type: !0
|
|
4005
4005
|
}, vo = {};
|
|
4006
4006
|
vo[bo.ForwardRef] = js;
|
|
4007
|
-
vo[bo.Memo] =
|
|
4008
|
-
var
|
|
4007
|
+
vo[bo.Memo] = Hs;
|
|
4008
|
+
var Bs = !0;
|
|
4009
4009
|
function xo(e, t, r) {
|
|
4010
4010
|
var n = "";
|
|
4011
4011
|
return r.split(" ").forEach(function(o) {
|
|
@@ -4023,7 +4023,7 @@ var Rr = function(t, r, n) {
|
|
|
4023
4023
|
// in node since emotion-server relies on whether a style is in
|
|
4024
4024
|
// the registered cache to know whether a style is global or not
|
|
4025
4025
|
// also, note that this check will be dead code eliminated in the browser
|
|
4026
|
-
|
|
4026
|
+
Bs === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
|
|
4027
4027
|
}, Pr = function(t, r, n) {
|
|
4028
4028
|
Rr(t, r, n);
|
|
4029
4029
|
var o = t.key + "-" + r.name;
|
|
@@ -4733,7 +4733,7 @@ function qt(e, t, r = !0) {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
4735
4735
|
}
|
|
4736
|
-
function
|
|
4736
|
+
function Ht(e, t, r, n = r) {
|
|
4737
4737
|
let o;
|
|
4738
4738
|
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
4739
|
}
|
|
@@ -4748,8 +4748,8 @@ function Z(e) {
|
|
|
4748
4748
|
return null;
|
|
4749
4749
|
const l = a[t], c = a.theme, d = qt(c, n) || {};
|
|
4750
4750
|
return Ie(a, l, (h) => {
|
|
4751
|
-
let m =
|
|
4752
|
-
return h === m && typeof h == "string" && (m =
|
|
4751
|
+
let m = Ht(d, o, h);
|
|
4752
|
+
return h === m && typeof h == "string" && (m = Ht(d, o, `${t}${h === "default" ? "" : Fe(h)}`, h)), r === !1 ? m : {
|
|
4753
4753
|
[r]: m
|
|
4754
4754
|
};
|
|
4755
4755
|
});
|
|
@@ -4855,7 +4855,7 @@ function fe(e, t) {
|
|
|
4855
4855
|
transform: t
|
|
4856
4856
|
});
|
|
4857
4857
|
}
|
|
4858
|
-
const zl = fe("border", ce), Dl = fe("borderTop", ce), Ll = fe("borderRight", ce), Fl = fe("borderBottom", ce), jl = fe("borderLeft", ce),
|
|
4858
|
+
const zl = fe("border", ce), Dl = fe("borderTop", ce), Ll = fe("borderRight", ce), Fl = fe("borderBottom", ce), jl = fe("borderLeft", ce), Hl = fe("borderColor"), Bl = fe("borderTopColor"), Vl = fe("borderRightColor"), Wl = fe("borderBottomColor"), Ul = fe("borderLeftColor"), Yl = fe("outline", ce), Kl = fe("outlineColor"), Qt = (e) => {
|
|
4859
4859
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
4860
4860
|
const t = vt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
4861
4861
|
borderRadius: xt(t, n)
|
|
@@ -4868,7 +4868,7 @@ Qt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4868
4868
|
borderRadius: Ne
|
|
4869
4869
|
} : {};
|
|
4870
4870
|
Qt.filterProps = ["borderRadius"];
|
|
4871
|
-
Jt(zl, Dl, Ll, Fl, jl,
|
|
4871
|
+
Jt(zl, Dl, Ll, Fl, jl, Hl, Bl, Vl, Wl, Ul, Qt, Yl, Kl);
|
|
4872
4872
|
const er = (e) => {
|
|
4873
4873
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
4874
4874
|
const t = vt(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
@@ -5313,8 +5313,8 @@ function Oo() {
|
|
|
5313
5313
|
};
|
|
5314
5314
|
const m = qt(o, d) || {};
|
|
5315
5315
|
return h ? h(a) : Ie(a, n, (p) => {
|
|
5316
|
-
let s =
|
|
5317
|
-
return p === s && typeof p == "string" && (s =
|
|
5316
|
+
let s = Ht(m, f, p);
|
|
5317
|
+
return p === s && typeof p == "string" && (s = Ht(m, f, `${r}${p === "default" ? "" : Fe(p)}`, p)), c === !1 ? s : {
|
|
5318
5318
|
[c]: s
|
|
5319
5319
|
};
|
|
5320
5320
|
});
|
|
@@ -5619,7 +5619,7 @@ function Lc(e, t) {
|
|
|
5619
5619
|
}, t);
|
|
5620
5620
|
}
|
|
5621
5621
|
var X = {};
|
|
5622
|
-
const Fc = /* @__PURE__ */ we(
|
|
5622
|
+
const Fc = /* @__PURE__ */ we(Ha), jc = /* @__PURE__ */ we(ts);
|
|
5623
5623
|
var zo = so;
|
|
5624
5624
|
Object.defineProperty(X, "__esModule", {
|
|
5625
5625
|
value: !0
|
|
@@ -5627,14 +5627,14 @@ Object.defineProperty(X, "__esModule", {
|
|
|
5627
5627
|
X.alpha = jo;
|
|
5628
5628
|
X.blend = Jc;
|
|
5629
5629
|
X.colorChannel = void 0;
|
|
5630
|
-
var
|
|
5630
|
+
var Hc = X.darken = Br;
|
|
5631
5631
|
X.decomposeColor = de;
|
|
5632
|
-
X.emphasize =
|
|
5632
|
+
X.emphasize = Ho;
|
|
5633
5633
|
var Cn = X.getContrastRatio = Kc;
|
|
5634
|
-
X.getLuminance =
|
|
5634
|
+
X.getLuminance = Bt;
|
|
5635
5635
|
X.hexToRgb = Do;
|
|
5636
5636
|
X.hslToRgb = Fo;
|
|
5637
|
-
var
|
|
5637
|
+
var Bc = X.lighten = Vr;
|
|
5638
5638
|
X.private_safeAlpha = Gc;
|
|
5639
5639
|
X.private_safeColorChannel = void 0;
|
|
5640
5640
|
X.private_safeDarken = qc;
|
|
@@ -5643,7 +5643,7 @@ X.private_safeLighten = Zc;
|
|
|
5643
5643
|
X.recomposeColor = it;
|
|
5644
5644
|
X.rgbToHex = Yc;
|
|
5645
5645
|
var In = zo(Fc), Vc = zo(jc);
|
|
5646
|
-
function
|
|
5646
|
+
function Hr(e, t = 0, r = 1) {
|
|
5647
5647
|
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), (0, Vc.default)(e, t, r);
|
|
5648
5648
|
}
|
|
5649
5649
|
function Do(e) {
|
|
@@ -5721,17 +5721,17 @@ function Fo(e) {
|
|
|
5721
5721
|
values: c
|
|
5722
5722
|
});
|
|
5723
5723
|
}
|
|
5724
|
-
function
|
|
5724
|
+
function Bt(e) {
|
|
5725
5725
|
e = de(e);
|
|
5726
5726
|
let t = e.type === "hsl" || e.type === "hsla" ? de(Fo(e)).values : e.values;
|
|
5727
5727
|
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
5728
|
}
|
|
5729
5729
|
function Kc(e, t) {
|
|
5730
|
-
const r =
|
|
5730
|
+
const r = Bt(e), n = Bt(t);
|
|
5731
5731
|
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
5732
5732
|
}
|
|
5733
5733
|
function jo(e, t) {
|
|
5734
|
-
return e = de(e), t =
|
|
5734
|
+
return e = de(e), t = Hr(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, it(e);
|
|
5735
5735
|
}
|
|
5736
5736
|
function Gc(e, t, r) {
|
|
5737
5737
|
try {
|
|
@@ -5740,8 +5740,8 @@ function Gc(e, t, r) {
|
|
|
5740
5740
|
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
|
-
function
|
|
5744
|
-
if (e = de(e), t =
|
|
5743
|
+
function Br(e, t) {
|
|
5744
|
+
if (e = de(e), t = Hr(t), e.type.indexOf("hsl") !== -1)
|
|
5745
5745
|
e.values[2] *= 1 - t;
|
|
5746
5746
|
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
5747
5747
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -5750,13 +5750,13 @@ function Hr(e, t) {
|
|
|
5750
5750
|
}
|
|
5751
5751
|
function qc(e, t, r) {
|
|
5752
5752
|
try {
|
|
5753
|
-
return
|
|
5753
|
+
return Br(e, t);
|
|
5754
5754
|
} catch {
|
|
5755
5755
|
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
5756
5756
|
}
|
|
5757
5757
|
}
|
|
5758
5758
|
function Vr(e, t) {
|
|
5759
|
-
if (e = de(e), t =
|
|
5759
|
+
if (e = de(e), t = Hr(t), e.type.indexOf("hsl") !== -1)
|
|
5760
5760
|
e.values[2] += (100 - e.values[2]) * t;
|
|
5761
5761
|
else if (e.type.indexOf("rgb") !== -1)
|
|
5762
5762
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -5773,12 +5773,12 @@ function Zc(e, t, r) {
|
|
|
5773
5773
|
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
5774
5774
|
}
|
|
5775
5775
|
}
|
|
5776
|
-
function
|
|
5777
|
-
return
|
|
5776
|
+
function Ho(e, t = 0.15) {
|
|
5777
|
+
return Bt(e) > 0.5 ? Br(e, t) : Vr(e, t);
|
|
5778
5778
|
}
|
|
5779
5779
|
function Xc(e, t, r) {
|
|
5780
5780
|
try {
|
|
5781
|
-
return
|
|
5781
|
+
return Ho(e, t);
|
|
5782
5782
|
} catch {
|
|
5783
5783
|
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
5784
5784
|
}
|
|
@@ -5963,7 +5963,7 @@ const Qc = {
|
|
|
5963
5963
|
};
|
|
5964
5964
|
function Mn(e, t, r, n) {
|
|
5965
5965
|
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 =
|
|
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)));
|
|
5967
5967
|
}
|
|
5968
5968
|
function c0(e = "light") {
|
|
5969
5969
|
return e === "dark" ? {
|
|
@@ -6276,7 +6276,9 @@ function $0(e = {}, ...t) {
|
|
|
6276
6276
|
transitions: o = {},
|
|
6277
6277
|
typography: i = {}
|
|
6278
6278
|
} = e, a = Oe(e, O0);
|
|
6279
|
-
if (e.vars
|
|
6279
|
+
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
6280
|
+
// `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
6281
|
+
e.generateCssVars === void 0)
|
|
6280
6282
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : dt(18));
|
|
6281
6283
|
const l = p0(n), c = Ro(e);
|
|
6282
6284
|
let d = xe(c, {
|
|
@@ -6328,11 +6330,11 @@ const D0 = (e) => z0(e) && e !== "classes", L0 = D0, F0 = _c({
|
|
|
6328
6330
|
defaultTheme: R0,
|
|
6329
6331
|
rootShouldForwardProp: L0
|
|
6330
6332
|
}), j0 = F0;
|
|
6331
|
-
function
|
|
6333
|
+
function H0(e) {
|
|
6332
6334
|
return Ar("MuiSvgIcon", e);
|
|
6333
6335
|
}
|
|
6334
6336
|
Qa("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
6335
|
-
const
|
|
6337
|
+
const B0 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], V0 = (e) => {
|
|
6336
6338
|
const {
|
|
6337
6339
|
color: t,
|
|
6338
6340
|
fontSize: r,
|
|
@@ -6340,7 +6342,7 @@ const H0 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
6340
6342
|
} = e, o = {
|
|
6341
6343
|
root: ["root", t !== "inherit" && `color${Fe(t)}`, `fontSize${Fe(r)}`]
|
|
6342
6344
|
};
|
|
6343
|
-
return Ga(o,
|
|
6345
|
+
return Ga(o, H0, n);
|
|
6344
6346
|
}, W0 = j0("svg", {
|
|
6345
6347
|
name: "MuiSvgIcon",
|
|
6346
6348
|
slot: "Root",
|
|
@@ -6394,7 +6396,7 @@ const H0 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
6394
6396
|
inheritViewBox: f = !1,
|
|
6395
6397
|
titleAccess: h,
|
|
6396
6398
|
viewBox: m = "0 0 24 24"
|
|
6397
|
-
} = n, b = Oe(n,
|
|
6399
|
+
} = n, b = Oe(n, B0), p = /* @__PURE__ */ W.isValidElement(o) && o.type === "svg", s = V({}, n, {
|
|
6398
6400
|
color: a,
|
|
6399
6401
|
component: l,
|
|
6400
6402
|
fontSize: c,
|
|
@@ -6720,10 +6722,10 @@ function Q0(e) {
|
|
|
6720
6722
|
}, b.componentWillUnmount = function() {
|
|
6721
6723
|
this._resetIsScrollingTimeoutId !== null && Pn(this._resetIsScrollingTimeoutId);
|
|
6722
6724
|
}, 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, T = s.itemData, M = s.itemKey, A = M === void 0 ? J0 : M, C = s.layout, O = s.outerElementType, R = s.outerTagName, U = s.style, re = s.useIsScrolling, he = s.width, Re = this.state.isScrolling, _e = _ === "horizontal" || C === "horizontal", at = _e ? this._onScrollHorizontal : this._onScrollVertical, Te = this._getRangeToRender(), je = Te[0],
|
|
6725
|
+
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, T = s.itemData, M = s.itemKey, A = M === void 0 ? J0 : M, C = s.layout, O = s.outerElementType, R = s.outerTagName, U = s.style, re = s.useIsScrolling, he = s.width, Re = this.state.isScrolling, _e = _ === "horizontal" || C === "horizontal", at = _e ? this._onScrollHorizontal : this._onScrollVertical, Te = this._getRangeToRender(), je = Te[0], He = Te[1], Be = [];
|
|
6724
6726
|
if (S > 0)
|
|
6725
|
-
for (var me = je; me <=
|
|
6726
|
-
|
|
6727
|
+
for (var me = je; me <= He; me++)
|
|
6728
|
+
Be.push(ir(y, {
|
|
6727
6729
|
data: T,
|
|
6728
6730
|
key: A(me, T),
|
|
6729
6731
|
index: me,
|
|
@@ -6745,7 +6747,7 @@ function Q0(e) {
|
|
|
6745
6747
|
direction: _
|
|
6746
6748
|
}, U)
|
|
6747
6749
|
}, ir(v || g || "div", {
|
|
6748
|
-
children:
|
|
6750
|
+
children: Be,
|
|
6749
6751
|
ref: E,
|
|
6750
6752
|
style: {
|
|
6751
6753
|
height: _e ? "100%" : Ve,
|
|
@@ -6830,8 +6832,8 @@ var e1 = function(t, r) {
|
|
|
6830
6832
|
return a[r];
|
|
6831
6833
|
}, r1 = function(t, r, n) {
|
|
6832
6834
|
var o = r.itemMetadataMap, i = r.lastMeasuredIndex, a = i > 0 ? o[i].offset : 0;
|
|
6833
|
-
return a >= n ?
|
|
6834
|
-
},
|
|
6835
|
+
return a >= n ? Bo(t, r, i, 0, n) : n1(t, r, Math.max(0, i), n);
|
|
6836
|
+
}, Bo = function(t, r, n, o, i) {
|
|
6835
6837
|
for (; o <= n; ) {
|
|
6836
6838
|
var a = o + Math.floor((n - o) / 2), l = Je(t, a, r).offset;
|
|
6837
6839
|
if (l === i)
|
|
@@ -6842,7 +6844,7 @@ var e1 = function(t, r) {
|
|
|
6842
6844
|
}, n1 = function(t, r, n, o) {
|
|
6843
6845
|
for (var i = t.itemCount, a = 1; n < i && Je(t, n, r).offset < o; )
|
|
6844
6846
|
n += a, a *= 2;
|
|
6845
|
-
return
|
|
6847
|
+
return Bo(t, r, Math.min(n, i - 1), Math.floor(n / 2), o);
|
|
6846
6848
|
}, Ln = function(t, r) {
|
|
6847
6849
|
var n = t.itemCount, o = r.itemMetadataMap, i = r.estimatedItemSize, a = r.lastMeasuredIndex, l = 0;
|
|
6848
6850
|
if (a >= n && (a = n - 1), a >= 0) {
|
|
@@ -6937,7 +6939,7 @@ const Vt = 37, i1 = (e, t) => {
|
|
|
6937
6939
|
return document.body.removeChild(a), l > 21 ? Vt + 21 : Vt;
|
|
6938
6940
|
};
|
|
6939
6941
|
function N1(e) {
|
|
6940
|
-
const [t, r] =
|
|
6942
|
+
const [t, r] = B(!1), [n, o] = B(""), [i, a] = B(""), [l, c] = B(!1), { isRequired: d = !1 } = e, f = kt(
|
|
6941
6943
|
Kr.debounce((g) => {
|
|
6942
6944
|
var S;
|
|
6943
6945
|
(S = e.handleChangeSearch) == null || S.call(e, g);
|
|
@@ -7172,7 +7174,7 @@ function N1(e) {
|
|
|
7172
7174
|
}
|
|
7173
7175
|
function R1(e) {
|
|
7174
7176
|
var f;
|
|
7175
|
-
const { listProps: t } = e, [r, n] =
|
|
7177
|
+
const { listProps: t } = e, [r, n] = B({
|
|
7176
7178
|
initLoading: !e.disabled,
|
|
7177
7179
|
searchLoading: !1,
|
|
7178
7180
|
hasNextPage: !1,
|
|
@@ -7343,7 +7345,7 @@ function a1(e) {
|
|
|
7343
7345
|
const s1 = "Reset date";
|
|
7344
7346
|
function P1(e) {
|
|
7345
7347
|
var l, c;
|
|
7346
|
-
const [t, r] =
|
|
7348
|
+
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");
|
|
7347
7349
|
q(() => {
|
|
7348
7350
|
r(e.value);
|
|
7349
7351
|
}, [e.value]);
|
|
@@ -7498,7 +7500,7 @@ function z1(e) {
|
|
|
7498
7500
|
const jn = (e) => {
|
|
7499
7501
|
"serviceWorker" in navigator && navigator.serviceWorker.register(e.path).then(function(t) {
|
|
7500
7502
|
console.log("Registration successful, scope is:", t.scope), console.log("initialize service worker props ", e);
|
|
7501
|
-
const r =
|
|
7503
|
+
const r = Bn(
|
|
7502
7504
|
Vn({
|
|
7503
7505
|
apiKey: e.apiKey,
|
|
7504
7506
|
authDomain: e.authDomain,
|
|
@@ -7549,7 +7551,7 @@ const jn = (e) => {
|
|
|
7549
7551
|
}));
|
|
7550
7552
|
};
|
|
7551
7553
|
}, d1 = (e) => new Promise((t) => {
|
|
7552
|
-
const r =
|
|
7554
|
+
const r = Bn(
|
|
7553
7555
|
Vn({
|
|
7554
7556
|
apiKey: e.apiKey,
|
|
7555
7557
|
authDomain: e.authDomain,
|
|
@@ -7564,7 +7566,7 @@ const jn = (e) => {
|
|
|
7564
7566
|
console.log("payload", n), t(n);
|
|
7565
7567
|
});
|
|
7566
7568
|
}), f1 = (e) => {
|
|
7567
|
-
const [t, r] =
|
|
7569
|
+
const [t, r] = B({
|
|
7568
7570
|
actorName: "",
|
|
7569
7571
|
message: "",
|
|
7570
7572
|
context: "",
|
|
@@ -7669,8 +7671,8 @@ export {
|
|
|
7669
7671
|
Fn as AutocompleteOption,
|
|
7670
7672
|
z1 as BaseCheckbox,
|
|
7671
7673
|
c1 as CheckedIcon,
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
+
H1 as FavoriteMenu,
|
|
7675
|
+
B1 as GlobalMenu,
|
|
7674
7676
|
O1 as HomePage,
|
|
7675
7677
|
V1 as IconComponent,
|
|
7676
7678
|
Na as LanguageDropdown,
|