@ukpc-lib/react 0.6.0 → 0.7.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.
- package/dist/components/GlobalMenu/components/MenuIconComponent.d.ts +6 -0
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +2 -2
- package/dist/components/GlobalMenu/data.json.d.ts +2 -2
- package/dist/components/index.cjs +3 -3
- package/dist/components/index.js +86 -82
- package/dist/components/main.d.ts +1 -0
- package/dist/{index.module-cfbc6ea7.js → index.module-63de61bd.js} +15141 -15111
- package/dist/{index.module-e5aa92d9.cjs → index.module-f5520a90.cjs} +110 -110
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +5 -5
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-e2fdbb1b.js → index-743ae6f9.js} +8152 -8121
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as N, Fragment as
|
|
1
|
+
import { jsxs as N, Fragment as Ne, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import Se, { useState as
|
|
4
|
-
import { c as Ee, a as dt, C as Pe, p as Pn, u as $o, S as Rn, b as Po, L as Ro, d as zr, e as Do, Q as Dn, f as yt, g as zo, m as Fo, h as nt, R as Lo, I as jo, i as Vo, j as Ho, s as Bo, k as pr, l as Uo, n as vt, _ as
|
|
5
|
-
import { N as a1,
|
|
3
|
+
import Se, { useState as L, useContext as Te, useEffect as te, useRef as ce, useCallback as wt, useLayoutEffect as $n, createElement as St, forwardRef as Mo, PureComponent as Ao } from "react";
|
|
4
|
+
import { c as Ee, a as dt, C as Pe, p as Pn, u as $o, S as Rn, b as Po, L as Ro, d as zr, e as Do, Q as Dn, f as yt, g as zo, m as Fo, h as nt, R as Lo, I as jo, i as Vo, j as Ho, s as Bo, k as pr, l as Uo, n as vt, _ as F, o as Me, P as T, q as _e, r as Wo, t as Yo, v as qo, w as Go, x as Fr, y as Lr, z as Ko, A as Zo, B as jr, D as Jo, E as zn, F as Fn, G as Xo, H as Qo, J as $e, K as ei, M as bt } from "../index.module-63de61bd.js";
|
|
5
|
+
import { N as a1, T as s1, O as l1 } from "../index.module-63de61bd.js";
|
|
6
6
|
import J from "moment";
|
|
7
7
|
import { Stack as oe, Dialog as ti, DialogTitle as ri, Typography as Ce, DialogContent as ni, DialogActions as oi, Button as Mt, Box as ii, Tooltip as sr, ClickAwayListener as ai, TextField as Ln, IconButton as si, CircularProgress as li, Fade as ci, Paper as di, Checkbox as ui } from "@mui/material";
|
|
8
8
|
import "@r2wc/react-to-web-component";
|
|
@@ -15,7 +15,7 @@ const hi = (e) => {
|
|
|
15
15
|
const { tabs: t } = e, r = (i) => {
|
|
16
16
|
e.setCurrentTab(i.target.id);
|
|
17
17
|
};
|
|
18
|
-
return console.log("🚀 ~ brandColors:", e.currentTab), /* @__PURE__ */ N(
|
|
18
|
+
return console.log("🚀 ~ brandColors:", e.currentTab), /* @__PURE__ */ N(Ne, { children: [
|
|
19
19
|
/* @__PURE__ */ c("style", { children: `
|
|
20
20
|
.tab-title {
|
|
21
21
|
min-width: 90px;
|
|
@@ -105,13 +105,13 @@ const hi = (e) => {
|
|
|
105
105
|
brandColors: o
|
|
106
106
|
}) => {
|
|
107
107
|
var v;
|
|
108
|
-
const [i, a] =
|
|
108
|
+
const [i, a] = L(!1), [s, u] = L({
|
|
109
109
|
id: e.id,
|
|
110
110
|
isRead: e.isRead
|
|
111
111
|
}), d = s.isRead === !1 ? "unread" : "read", m = {
|
|
112
112
|
borderColor: s.isRead ? "#c5c5c5" : (o == null ? void 0 : o.primary500) || Ee.primary500,
|
|
113
113
|
backgroundColor: s.isRead ? "#c5c5c5" : (o == null ? void 0 : o.primary500) || Ee.primary500
|
|
114
|
-
}, { setNotiData: h } =
|
|
114
|
+
}, { setNotiData: h } = Te(Pe), g = yr({ baseUrl: t, notiPath: r, setNotiData: h }), b = async (_, x) => {
|
|
115
115
|
try {
|
|
116
116
|
const S = r || `/notification-management/api/v1/notifications/${_}`, p = t + S;
|
|
117
117
|
await dt.put(p, { isRead: x });
|
|
@@ -161,7 +161,7 @@ const hi = (e) => {
|
|
|
161
161
|
}
|
|
162
162
|
return C === 0 || C === 1 ? "1 month ago" : C < 12 ? `${C} months ago` : I === 0 || I === 1 ? "1 year ago" : "Over 1 year ago";
|
|
163
163
|
};
|
|
164
|
-
return /* @__PURE__ */ c(
|
|
164
|
+
return /* @__PURE__ */ c(Ne, { children: /* @__PURE__ */ N("div", { className: "notitification-item__container", children: [
|
|
165
165
|
/* @__PURE__ */ c("div", { className: "notification-item__image-container", children: /* @__PURE__ */ c(
|
|
166
166
|
"img",
|
|
167
167
|
{
|
|
@@ -248,9 +248,9 @@ const hi = (e) => {
|
|
|
248
248
|
brandColors: n,
|
|
249
249
|
notiUnreadNumber: o
|
|
250
250
|
}) => {
|
|
251
|
-
const [i, a] =
|
|
251
|
+
const [i, a] = L(!1);
|
|
252
252
|
console.log(i);
|
|
253
|
-
const { setNotiData: s } =
|
|
253
|
+
const { setNotiData: s } = Te(Pe), u = yr({ baseUrl: t, notiPath: r, setNotiData: s }), d = async () => {
|
|
254
254
|
try {
|
|
255
255
|
const g = t + (r || "/notification-management/api/v1/notifications");
|
|
256
256
|
await dt.put(g);
|
|
@@ -288,9 +288,9 @@ const hi = (e) => {
|
|
|
288
288
|
brandColors: r
|
|
289
289
|
}) => {
|
|
290
290
|
var u, d, m, h;
|
|
291
|
-
const { setShowModalFalse: n } =
|
|
291
|
+
const { setShowModalFalse: n } = Te(Pe), { notidata: o } = Te(Pe);
|
|
292
292
|
console.log(o);
|
|
293
|
-
const [i, a] =
|
|
293
|
+
const [i, a] = L("all"), s = [
|
|
294
294
|
{
|
|
295
295
|
id: "all",
|
|
296
296
|
tabTitle: `All (${((u = o == null ? void 0 : o.all) == null ? void 0 : u.total) || 0})`,
|
|
@@ -320,7 +320,7 @@ const hi = (e) => {
|
|
|
320
320
|
)
|
|
321
321
|
}
|
|
322
322
|
];
|
|
323
|
-
return /* @__PURE__ */ c(
|
|
323
|
+
return /* @__PURE__ */ c(Ne, { children: /* @__PURE__ */ c(
|
|
324
324
|
"div",
|
|
325
325
|
{
|
|
326
326
|
style: {
|
|
@@ -416,7 +416,7 @@ function yi({
|
|
|
416
416
|
brandColors: n
|
|
417
417
|
}) {
|
|
418
418
|
var h, g;
|
|
419
|
-
const { isOpen: o, toggleOpen: i, setShowModalFalse: a } =
|
|
419
|
+
const { isOpen: o, toggleOpen: i, setShowModalFalse: a } = Te(Pe), { notidata: s, setNotiData: u } = Te(Pe), d = yr({ baseUrl: t, notiPath: r, setNotiData: u }), m = async () => {
|
|
420
420
|
var b, y;
|
|
421
421
|
try {
|
|
422
422
|
await d();
|
|
@@ -672,7 +672,7 @@ function Ti({ classNames: e = "", ...t }) {
|
|
|
672
672
|
...a,
|
|
673
673
|
color: (s == null ? void 0 : s.headerTextColor) || "white",
|
|
674
674
|
backgroundColor: (s == null ? void 0 : s.headerBgColor) || "black"
|
|
675
|
-
}, [b, y] =
|
|
675
|
+
}, [b, y] = L(!1);
|
|
676
676
|
return /* @__PURE__ */ N(
|
|
677
677
|
Rn,
|
|
678
678
|
{
|
|
@@ -797,8 +797,8 @@ function Mi() {
|
|
|
797
797
|
value: zr.de,
|
|
798
798
|
element: /* @__PURE__ */ c(Ei, {})
|
|
799
799
|
}
|
|
800
|
-
], [t, r] =
|
|
801
|
-
|
|
800
|
+
], [t, r] = L(!1);
|
|
801
|
+
L(
|
|
802
802
|
new Array(e.length).fill(!1)
|
|
803
803
|
);
|
|
804
804
|
const { language: n, setLanguage: o } = Do();
|
|
@@ -833,15 +833,15 @@ function Ai({
|
|
|
833
833
|
avatarUrl: e,
|
|
834
834
|
userName: t
|
|
835
835
|
}) {
|
|
836
|
-
const [r, n] =
|
|
837
|
-
return ce(null),
|
|
836
|
+
const [r, n] = L(!1), o = ce(null);
|
|
837
|
+
return ce(null), L(!1), L(!1), te(() => {
|
|
838
838
|
vr({
|
|
839
839
|
childrenClass: "userAvatar",
|
|
840
840
|
action() {
|
|
841
841
|
n(!1);
|
|
842
842
|
}
|
|
843
843
|
});
|
|
844
|
-
}, []), /* @__PURE__ */ c(
|
|
844
|
+
}, []), /* @__PURE__ */ c(Ne, { children: /* @__PURE__ */ c("div", { style: { position: "relative" }, children: e ? /* @__PURE__ */ c(
|
|
845
845
|
"img",
|
|
846
846
|
{
|
|
847
847
|
onClick: () => n(!r),
|
|
@@ -1235,7 +1235,7 @@ function $i() {
|
|
|
1235
1235
|
var Pi = typeof yt == "object" && yt && yt.Object === Object && yt, Ri = typeof self == "object" && self && self.Object === Object && self;
|
|
1236
1236
|
Pi || Ri || Function("return this")();
|
|
1237
1237
|
function Di(e) {
|
|
1238
|
-
const [t, r] =
|
|
1238
|
+
const [t, r] = L(!!e), n = wt(() => {
|
|
1239
1239
|
r(!0);
|
|
1240
1240
|
}, []), o = wt(() => {
|
|
1241
1241
|
r(!1);
|
|
@@ -1290,7 +1290,7 @@ function Yc(e) {
|
|
|
1290
1290
|
pb: 3,
|
|
1291
1291
|
...(t = e.dialogActionsProps) == null ? void 0 : t.sx
|
|
1292
1292
|
},
|
|
1293
|
-
children: e.customActions ? e.customActions : /* @__PURE__ */ N(
|
|
1293
|
+
children: e.customActions ? e.customActions : /* @__PURE__ */ N(Ne, { children: [
|
|
1294
1294
|
!e.hideClose && /* @__PURE__ */ c(Mt, { color: "error", onClick: e.onClose, children: "Close" }),
|
|
1295
1295
|
!e.hideConfirm && /* @__PURE__ */ c(Mt, { color: "primary", onClick: e.onConfirm, children: "Submit" })
|
|
1296
1296
|
] })
|
|
@@ -1349,7 +1349,7 @@ function zi(e) {
|
|
|
1349
1349
|
);
|
|
1350
1350
|
}
|
|
1351
1351
|
function Fi(e) {
|
|
1352
|
-
const { renderChildren: t, parentRef: r, onlyChild: n, dropdownLevel: o } = e, [i, a] =
|
|
1352
|
+
const { renderChildren: t, parentRef: r, onlyChild: n, dropdownLevel: o } = e, [i, a] = L({ top: 0, left: 0 }), s = ce(null), [u, d] = L("auto");
|
|
1353
1353
|
return $n(() => {
|
|
1354
1354
|
if (r.current && s.current) {
|
|
1355
1355
|
const m = r.current.getBoundingClientRect(), h = s.current.getBoundingClientRect();
|
|
@@ -1385,7 +1385,7 @@ function Fi(e) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
function Vn({ ...e }) {
|
|
1387
1387
|
var V, K, ne, pe, ge;
|
|
1388
|
-
const t = e.item, r = e.level || 0, n = !!((V = e.item.children) != null && V.length), { isActive: o } = e, i = `level-${r}`, a = o(t.id) ? "active" : "", s = (Y, Q = i) => `${Y} ${Q} ${a}`, [u, d] =
|
|
1388
|
+
const t = e.item, r = e.level || 0, n = !!((V = e.item.children) != null && V.length), { isActive: o } = e, i = `level-${r}`, a = o(t.id) ? "active" : "", s = (Y, Q = i) => `${Y} ${Q} ${a}`, [u, d] = L(!1), [m, h] = L(t.isFavorite || !1);
|
|
1389
1389
|
console.log("item is Favorite", m);
|
|
1390
1390
|
const g = ce(), b = ce();
|
|
1391
1391
|
b != null && b.current && ((K = b == null ? void 0 : b.current) == null ? void 0 : K.scrollWidth) > ((ne = b == null ? void 0 : b.current) == null ? void 0 : ne.clientWidth);
|
|
@@ -1465,9 +1465,9 @@ function Vn({ ...e }) {
|
|
|
1465
1465
|
var me;
|
|
1466
1466
|
h(Y), zo("Set favorite menu item successfully"), (me = e.onSetFavoriteSuccess) == null || me.call(e, e.item.id, Y);
|
|
1467
1467
|
}).catch((ye) => {
|
|
1468
|
-
var me,
|
|
1468
|
+
var me, Oe;
|
|
1469
1469
|
Pn(
|
|
1470
|
-
((
|
|
1470
|
+
((Oe = (me = ye.response) == null ? void 0 : me.data) == null ? void 0 : Oe.errorMessage) || "Have error when set favorite menu item"
|
|
1471
1471
|
);
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
@@ -1525,7 +1525,7 @@ function Vn({ ...e }) {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
function Li({ item: e, cls: t }) {
|
|
1527
1527
|
var a, s;
|
|
1528
|
-
const [r, n] =
|
|
1528
|
+
const [r, n] = L(!e.icon), o = () => {
|
|
1529
1529
|
n(!0);
|
|
1530
1530
|
}, i = (a = e.icon) == null ? void 0 : a.endsWith(".svg");
|
|
1531
1531
|
return /* @__PURE__ */ c("div", { className: t("menu-item__icon"), children: r ? /* @__PURE__ */ c(
|
|
@@ -1570,7 +1570,7 @@ function ji(e) {
|
|
|
1570
1570
|
minWidth: 16
|
|
1571
1571
|
};
|
|
1572
1572
|
if (e.menuLevel !== 0)
|
|
1573
|
-
return /* @__PURE__ */ N(
|
|
1573
|
+
return /* @__PURE__ */ N(Ne, { children: [
|
|
1574
1574
|
e.isHovered && !e.isFavorite && /* @__PURE__ */ c(
|
|
1575
1575
|
sr,
|
|
1576
1576
|
{
|
|
@@ -1609,20 +1609,23 @@ const Vi = `.flex-col-center{display:flex;flex-direction:column;justify-content:
|
|
|
1609
1609
|
`, Hi = `.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
1610
1610
|
`;
|
|
1611
1611
|
function Bi(e) {
|
|
1612
|
-
const t = fi(), [r, n] =
|
|
1612
|
+
const t = fi(), [r, n] = L([]), [o, i] = L([]), a = r.map((f) => f.data);
|
|
1613
1613
|
console.log("🚀 ~ FavoriteMenuContent ~ menuItems:", a);
|
|
1614
|
-
const [s, u] =
|
|
1615
|
-
|
|
1614
|
+
const [s, u] = L(window.location.href);
|
|
1615
|
+
te(() => {
|
|
1616
1616
|
u(window.location.href);
|
|
1617
1617
|
}, [t]);
|
|
1618
1618
|
const d = Wi(a, s).filter(
|
|
1619
1619
|
(f) => f.parentKey !== 0
|
|
1620
1620
|
);
|
|
1621
|
-
console.log("matchPaths:", s, t, d)
|
|
1621
|
+
console.log("matchPaths:", s, t, d);
|
|
1622
1622
|
const m = (f) => `${f}`, h = ce(null);
|
|
1623
1623
|
function g(f, v) {
|
|
1624
1624
|
i(
|
|
1625
|
-
(_) => _.map((x) =>
|
|
1625
|
+
(_) => _.map((x) => ({
|
|
1626
|
+
...x,
|
|
1627
|
+
isFavorite: x.id === f ? v : x.isFavorite
|
|
1628
|
+
}))
|
|
1626
1629
|
);
|
|
1627
1630
|
}
|
|
1628
1631
|
const b = () => {
|
|
@@ -1667,7 +1670,7 @@ function Bi(e) {
|
|
|
1667
1670
|
onSetFavoriteSuccess: g
|
|
1668
1671
|
}
|
|
1669
1672
|
);
|
|
1670
|
-
return /* @__PURE__ */ c("div", { className: m("side-bar"), children: /* @__PURE__ */ c(
|
|
1673
|
+
return /* @__PURE__ */ c(Ne, { children: o.length ? /* @__PURE__ */ c("div", { className: m("side-bar"), children: /* @__PURE__ */ c(
|
|
1671
1674
|
"div",
|
|
1672
1675
|
{
|
|
1673
1676
|
className: m("wrap-section side-bar__menu"),
|
|
@@ -1685,7 +1688,7 @@ function Bi(e) {
|
|
|
1685
1688
|
(f, v) => /* @__PURE__ */ c("div", { children: l(f, y(), d) }, v)
|
|
1686
1689
|
)
|
|
1687
1690
|
}
|
|
1688
|
-
) });
|
|
1691
|
+
) }) : "" });
|
|
1689
1692
|
}
|
|
1690
1693
|
function Ui(e, t) {
|
|
1691
1694
|
const r = new URL(e).searchParams, n = new URL(t).searchParams;
|
|
@@ -1851,14 +1854,14 @@ const Jc = () => {
|
|
|
1851
1854
|
]
|
|
1852
1855
|
}
|
|
1853
1856
|
);
|
|
1854
|
-
function
|
|
1857
|
+
function Ie(e) {
|
|
1855
1858
|
if (typeof e != "object" || e === null)
|
|
1856
1859
|
return !1;
|
|
1857
1860
|
const t = Object.getPrototypeOf(e);
|
|
1858
1861
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1859
1862
|
}
|
|
1860
1863
|
function Hn(e) {
|
|
1861
|
-
if (!
|
|
1864
|
+
if (!Ie(e))
|
|
1862
1865
|
return e;
|
|
1863
1866
|
const t = {};
|
|
1864
1867
|
return Object.keys(e).forEach((r) => {
|
|
@@ -1868,15 +1871,15 @@ function Hn(e) {
|
|
|
1868
1871
|
function be(e, t, r = {
|
|
1869
1872
|
clone: !0
|
|
1870
1873
|
}) {
|
|
1871
|
-
const n = r.clone ?
|
|
1872
|
-
return
|
|
1873
|
-
o !== "__proto__" && (
|
|
1874
|
+
const n = r.clone ? F({}, e) : e;
|
|
1875
|
+
return Ie(e) && Ie(t) && Object.keys(t).forEach((o) => {
|
|
1876
|
+
o !== "__proto__" && (Ie(t[o]) && o in e && Ie(e[o]) ? n[o] = be(e[o], t[o], r) : r.clone ? n[o] = Ie(t[o]) ? Hn(t[o]) : t[o] : n[o] = t[o]);
|
|
1874
1877
|
}), n;
|
|
1875
1878
|
}
|
|
1876
1879
|
const qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1877
1880
|
__proto__: null,
|
|
1878
1881
|
default: be,
|
|
1879
|
-
isPlainObject:
|
|
1882
|
+
isPlainObject: Ie
|
|
1880
1883
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1881
1884
|
function it(e) {
|
|
1882
1885
|
let t = "https://mui.com/production-error/?code=" + e;
|
|
@@ -2028,7 +2031,7 @@ function Zi() {
|
|
|
2028
2031
|
function me(k) {
|
|
2029
2032
|
return fe || (fe = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2030
2033
|
}
|
|
2031
|
-
function
|
|
2034
|
+
function Oe(k) {
|
|
2032
2035
|
return p(k) === a;
|
|
2033
2036
|
}
|
|
2034
2037
|
function ze(k) {
|
|
@@ -2064,7 +2067,7 @@ function Zi() {
|
|
|
2064
2067
|
function et(k) {
|
|
2065
2068
|
return p(k) === m;
|
|
2066
2069
|
}
|
|
2067
|
-
P.ContextConsumer = w, P.ContextProvider = C, P.Element = I, P.ForwardRef = O, P.Fragment = B, P.Lazy = z, P.Memo = V, P.Portal = K, P.Profiler = ne, P.StrictMode = pe, P.Suspense = ge, P.SuspenseList = Y, P.isAsyncMode = ye, P.isConcurrentMode = me, P.isContextConsumer =
|
|
2070
|
+
P.ContextConsumer = w, P.ContextProvider = C, P.Element = I, P.ForwardRef = O, P.Fragment = B, P.Lazy = z, P.Memo = V, P.Portal = K, P.Profiler = ne, P.StrictMode = pe, P.Suspense = ge, P.SuspenseList = Y, P.isAsyncMode = ye, P.isConcurrentMode = me, P.isContextConsumer = Oe, P.isContextProvider = ze, P.isElement = we, P.isForwardRef = Fe, P.isFragment = Jt, P.isLazy = Xt, P.isMemo = Qt, P.isPortal = er, P.isProfiler = tr, P.isStrictMode = rr, P.isSuspense = E, P.isSuspenseList = et, P.isValidElementType = S, P.typeOf = p;
|
|
2068
2071
|
}()), P;
|
|
2069
2072
|
}
|
|
2070
2073
|
process.env.NODE_ENV === "production" ? lr.exports = Ki() : lr.exports = Zi();
|
|
@@ -2113,13 +2116,13 @@ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2113
2116
|
default: Re
|
|
2114
2117
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2115
2118
|
function Wn(e, t) {
|
|
2116
|
-
const r =
|
|
2119
|
+
const r = F({}, t);
|
|
2117
2120
|
return Object.keys(e).forEach((n) => {
|
|
2118
2121
|
if (n.toString().match(/^(components|slots)$/))
|
|
2119
|
-
r[n] =
|
|
2122
|
+
r[n] = F({}, e[n], r[n]);
|
|
2120
2123
|
else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
2121
2124
|
const o = e[n] || {}, i = t[n];
|
|
2122
|
-
r[n] = {}, !i || !Object.keys(i) ? r[n] = o : !o || !Object.keys(o) ? r[n] = i : (r[n] =
|
|
2125
|
+
r[n] = {}, !i || !Object.keys(i) ? r[n] = o : !o || !Object.keys(o) ? r[n] = i : (r[n] = F({}, i), Object.keys(o).forEach((a) => {
|
|
2123
2126
|
r[n][a] = Wn(o[a], i[a]);
|
|
2124
2127
|
}));
|
|
2125
2128
|
} else
|
|
@@ -2199,7 +2202,7 @@ const da = ["values", "unit", "step"], ua = (e) => {
|
|
|
2199
2202
|
key: r,
|
|
2200
2203
|
val: e[r]
|
|
2201
2204
|
})) || [];
|
|
2202
|
-
return t.sort((r, n) => r.val - n.val), t.reduce((r, n) =>
|
|
2205
|
+
return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => F({}, r, {
|
|
2203
2206
|
[n.key]: n.val
|
|
2204
2207
|
}), {});
|
|
2205
2208
|
};
|
|
@@ -2239,7 +2242,7 @@ function Yn(e) {
|
|
|
2239
2242
|
const b = a.indexOf(g);
|
|
2240
2243
|
return b === 0 ? s(a[1]) : b === a.length - 1 ? u(a[b]) : d(g, a[a.indexOf(g) + 1]).replace("@media", "@media not all and");
|
|
2241
2244
|
}
|
|
2242
|
-
return
|
|
2245
|
+
return F({
|
|
2243
2246
|
keys: a,
|
|
2244
2247
|
values: i,
|
|
2245
2248
|
up: s,
|
|
@@ -2972,13 +2975,13 @@ function Sr(e = {}, ...t) {
|
|
|
2972
2975
|
direction: "ltr",
|
|
2973
2976
|
components: {},
|
|
2974
2977
|
// Inject component definitions.
|
|
2975
|
-
palette:
|
|
2978
|
+
palette: F({
|
|
2976
2979
|
mode: "light"
|
|
2977
2980
|
}, n),
|
|
2978
2981
|
spacing: u,
|
|
2979
|
-
shape:
|
|
2982
|
+
shape: F({}, ma, i)
|
|
2980
2983
|
}, a);
|
|
2981
|
-
return d.applyStyles = Jn, d = t.reduce((m, h) => be(m, h), d), d.unstable_sxConfig =
|
|
2984
|
+
return d.applyStyles = Jn, d = t.reduce((m, h) => be(m, h), d), d.unstable_sxConfig = F({}, mt, a == null ? void 0 : a.unstable_sxConfig), d.unstable_sx = function(h) {
|
|
2982
2985
|
return wr({
|
|
2983
2986
|
sx: h,
|
|
2984
2987
|
theme: this
|
|
@@ -3755,7 +3758,7 @@ function Hs() {
|
|
|
3755
3758
|
function me(E) {
|
|
3756
3759
|
return S(E) === s;
|
|
3757
3760
|
}
|
|
3758
|
-
function
|
|
3761
|
+
function Oe(E) {
|
|
3759
3762
|
return S(E) === a;
|
|
3760
3763
|
}
|
|
3761
3764
|
function ze(E) {
|
|
@@ -3785,7 +3788,7 @@ function Hs() {
|
|
|
3785
3788
|
function rr(E) {
|
|
3786
3789
|
return S(E) === h;
|
|
3787
3790
|
}
|
|
3788
|
-
D.AsyncMode = p, D.ConcurrentMode = w, D.ContextConsumer = C, D.ContextProvider = I, D.Element = O, D.ForwardRef = B, D.Fragment = z, D.Lazy = V, D.Memo = K, D.Portal = ne, D.Profiler = pe, D.StrictMode = ge, D.Suspense = Y, D.isAsyncMode = fe, D.isConcurrentMode = ye, D.isContextConsumer = me, D.isContextProvider =
|
|
3791
|
+
D.AsyncMode = p, D.ConcurrentMode = w, D.ContextConsumer = C, D.ContextProvider = I, D.Element = O, D.ForwardRef = B, D.Fragment = z, D.Lazy = V, D.Memo = K, D.Portal = ne, D.Profiler = pe, D.StrictMode = ge, D.Suspense = Y, D.isAsyncMode = fe, D.isConcurrentMode = ye, D.isContextConsumer = me, D.isContextProvider = Oe, D.isElement = ze, D.isForwardRef = we, D.isFragment = Fe, D.isLazy = Jt, D.isMemo = Xt, D.isPortal = Qt, D.isProfiler = er, D.isStrictMode = tr, D.isSuspense = rr, D.isValidElementType = x, D.typeOf = S;
|
|
3789
3792
|
}()), D;
|
|
3790
3793
|
}
|
|
3791
3794
|
process.env.NODE_ENV === "production" ? ur.exports = Vs() : ur.exports = Hs();
|
|
@@ -4077,7 +4080,7 @@ var he, Ze = function(t, r, n) {
|
|
|
4077
4080
|
process.env.NODE_ENV !== "production" && (Mr.displayName = "EmotionCacheContext");
|
|
4078
4081
|
var il = Mr.Provider, Zt = function(t) {
|
|
4079
4082
|
return /* @__PURE__ */ Mo(function(r, n) {
|
|
4080
|
-
var o =
|
|
4083
|
+
var o = Te(Mr);
|
|
4081
4084
|
return t(r, o, n);
|
|
4082
4085
|
});
|
|
4083
4086
|
}, De = /* @__PURE__ */ j.createContext({});
|
|
@@ -4421,7 +4424,7 @@ You may have forgotten to import it.`);
|
|
|
4421
4424
|
return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a;
|
|
4422
4425
|
}
|
|
4423
4426
|
}), y.withComponent = function(l, f) {
|
|
4424
|
-
return e(l,
|
|
4427
|
+
return e(l, F({}, r, f, {
|
|
4425
4428
|
shouldForwardProp: hn(y, f, !0)
|
|
4426
4429
|
})).apply(void 0, h);
|
|
4427
4430
|
}, y;
|
|
@@ -4680,8 +4683,8 @@ function Ml(e) {
|
|
|
4680
4683
|
let i;
|
|
4681
4684
|
return Array.isArray(t) ? i = [n, ...t] : typeof t == "function" ? i = (...a) => {
|
|
4682
4685
|
const s = t(...a);
|
|
4683
|
-
return
|
|
4684
|
-
} : i =
|
|
4686
|
+
return Ie(s) ? F({}, n, s) : n;
|
|
4687
|
+
} : i = F({}, n, t), F({}, o, {
|
|
4685
4688
|
sx: i
|
|
4686
4689
|
});
|
|
4687
4690
|
}
|
|
@@ -4693,7 +4696,7 @@ const Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4693
4696
|
unstable_defaultSxConfig: mt
|
|
4694
4697
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4695
4698
|
function $l(e, t) {
|
|
4696
|
-
return
|
|
4699
|
+
return F({
|
|
4697
4700
|
toolbar: {
|
|
4698
4701
|
minHeight: 56,
|
|
4699
4702
|
[e.up("xs")]: {
|
|
@@ -5152,7 +5155,7 @@ function d0(e) {
|
|
|
5152
5155
|
lightShade: _ = 300,
|
|
5153
5156
|
darkShade: x = 700
|
|
5154
5157
|
}) => {
|
|
5155
|
-
if (l =
|
|
5158
|
+
if (l = F({}, l), !l.main && l[v] && (l.main = l[v]), !l.hasOwnProperty("main"))
|
|
5156
5159
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${f ? ` (${f})` : ""} provided to augmentColor(color) is invalid.
|
|
5157
5160
|
The color object needs to have a \`main\` property or a \`${v}\` property.` : it(11, f ? ` (${f})` : "", v));
|
|
5158
5161
|
if (typeof l.main != "string")
|
|
@@ -5175,9 +5178,9 @@ const theme2 = createTheme({ palette: {
|
|
|
5175
5178
|
dark: or,
|
|
5176
5179
|
light: vn
|
|
5177
5180
|
};
|
|
5178
|
-
return process.env.NODE_ENV !== "production" && (b[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), be(
|
|
5181
|
+
return process.env.NODE_ENV !== "production" && (b[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), be(F({
|
|
5179
5182
|
// A collection of common colors.
|
|
5180
|
-
common:
|
|
5183
|
+
common: F({}, ct),
|
|
5181
5184
|
// prevent mutable object.
|
|
5182
5185
|
// The palette mode, can be light or dark.
|
|
5183
5186
|
mode: t,
|
|
@@ -5254,7 +5257,7 @@ function m0(e, t) {
|
|
|
5254
5257
|
pxToRem: h
|
|
5255
5258
|
} = r, g = Me(r, u0);
|
|
5256
5259
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof d != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
5257
|
-
const b = o / 14, y = h || ((v) => `${v / d * b}rem`), l = (v, _, x, S, p) =>
|
|
5260
|
+
const b = o / 14, y = h || ((v) => `${v / d * b}rem`), l = (v, _, x, S, p) => F({
|
|
5258
5261
|
fontFamily: n,
|
|
5259
5262
|
fontWeight: v,
|
|
5260
5263
|
fontSize: y(_),
|
|
@@ -5285,7 +5288,7 @@ function m0(e, t) {
|
|
|
5285
5288
|
letterSpacing: "inherit"
|
|
5286
5289
|
}
|
|
5287
5290
|
};
|
|
5288
|
-
return be(
|
|
5291
|
+
return be(F({
|
|
5289
5292
|
htmlFontSize: d,
|
|
5290
5293
|
pxToRem: y,
|
|
5291
5294
|
fontFamily: n,
|
|
@@ -5336,8 +5339,8 @@ function w0(e) {
|
|
|
5336
5339
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
5337
5340
|
}
|
|
5338
5341
|
function S0(e) {
|
|
5339
|
-
const t =
|
|
5340
|
-
return
|
|
5342
|
+
const t = F({}, x0, e.easing), r = F({}, _0, e.duration);
|
|
5343
|
+
return F({
|
|
5341
5344
|
getAutoHeightDuration: w0,
|
|
5342
5345
|
create: (o = ["all"], i = {}) => {
|
|
5343
5346
|
const {
|
|
@@ -5384,7 +5387,7 @@ function N0(e = {}, ...t) {
|
|
|
5384
5387
|
shadows: v0.slice(),
|
|
5385
5388
|
typography: m0(s, i),
|
|
5386
5389
|
transitions: S0(o),
|
|
5387
|
-
zIndex:
|
|
5390
|
+
zIndex: F({}, E0)
|
|
5388
5391
|
});
|
|
5389
5392
|
if (d = be(d, a), d = t.reduce((m, h) => be(m, h), d), process.env.NODE_ENV !== "production") {
|
|
5390
5393
|
const m = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (g, b) => {
|
|
@@ -5410,7 +5413,7 @@ function N0(e = {}, ...t) {
|
|
|
5410
5413
|
b && g.indexOf("Mui") === 0 && h(b, g);
|
|
5411
5414
|
});
|
|
5412
5415
|
}
|
|
5413
|
-
return d.unstable_sxConfig =
|
|
5416
|
+
return d.unstable_sxConfig = F({}, mt, a == null ? void 0 : a.unstable_sxConfig), d.unstable_sx = function(h) {
|
|
5414
5417
|
return wr({
|
|
5415
5418
|
sx: h,
|
|
5416
5419
|
theme: this
|
|
@@ -5669,7 +5672,7 @@ const oc = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5669
5672
|
inheritViewBox: m = !1,
|
|
5670
5673
|
titleAccess: h,
|
|
5671
5674
|
viewBox: g = "0 0 24 24"
|
|
5672
|
-
} = n, b = Me(n, oc), y = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", l =
|
|
5675
|
+
} = n, b = Me(n, oc), y = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", l = F({}, n, {
|
|
5673
5676
|
color: a,
|
|
5674
5677
|
component: s,
|
|
5675
5678
|
fontSize: u,
|
|
@@ -5680,7 +5683,7 @@ const oc = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5680
5683
|
}), f = {};
|
|
5681
5684
|
m || (f.viewBox = g);
|
|
5682
5685
|
const v = ic(l);
|
|
5683
|
-
return /* @__PURE__ */ N(ac,
|
|
5686
|
+
return /* @__PURE__ */ N(ac, F({
|
|
5684
5687
|
as: s,
|
|
5685
5688
|
className: qo(v.root, i),
|
|
5686
5689
|
focusable: "false",
|
|
@@ -5771,7 +5774,7 @@ Rr.muiName = "SvgIcon";
|
|
|
5771
5774
|
const En = Rr;
|
|
5772
5775
|
function sc(e, t) {
|
|
5773
5776
|
function r(n, o) {
|
|
5774
|
-
return /* @__PURE__ */ c(En,
|
|
5777
|
+
return /* @__PURE__ */ c(En, F({
|
|
5775
5778
|
"data-testid": `${t}Icon`,
|
|
5776
5779
|
ref: o
|
|
5777
5780
|
}, n, {
|
|
@@ -5995,9 +5998,9 @@ function pc(e) {
|
|
|
5995
5998
|
}, b.componentWillUnmount = function() {
|
|
5996
5999
|
this._resetIsScrollingTimeoutId !== null && On(this._resetIsScrollingTimeoutId);
|
|
5997
6000
|
}, b.render = function() {
|
|
5998
|
-
var l = this.props, f = l.children, v = l.className, _ = l.direction, x = l.height, S = l.innerRef, p = l.innerElementType, w = l.innerTagName, C = l.itemCount, I = l.itemData, O = l.itemKey, B = O === void 0 ? hc : O, z = l.layout, V = l.outerElementType, K = l.outerTagName, ne = l.style, pe = l.useIsScrolling, ge = l.width, Y = this.state.isScrolling, Q = _ === "horizontal" || z === "horizontal", fe = Q ? this._onScrollHorizontal : this._onScrollVertical, ye = this._getRangeToRender(), me = ye[0],
|
|
6001
|
+
var l = this.props, f = l.children, v = l.className, _ = l.direction, x = l.height, S = l.innerRef, p = l.innerElementType, w = l.innerTagName, C = l.itemCount, I = l.itemData, O = l.itemKey, B = O === void 0 ? hc : O, z = l.layout, V = l.outerElementType, K = l.outerTagName, ne = l.style, pe = l.useIsScrolling, ge = l.width, Y = this.state.isScrolling, Q = _ === "horizontal" || z === "horizontal", fe = Q ? this._onScrollHorizontal : this._onScrollVertical, ye = this._getRangeToRender(), me = ye[0], Oe = ye[1], ze = [];
|
|
5999
6002
|
if (C > 0)
|
|
6000
|
-
for (var we = me; we <=
|
|
6003
|
+
for (var we = me; we <= Oe; we++)
|
|
6001
6004
|
ze.push(St(f, {
|
|
6002
6005
|
data: I,
|
|
6003
6006
|
key: B(we, I),
|
|
@@ -6010,7 +6013,7 @@ function pc(e) {
|
|
|
6010
6013
|
className: v,
|
|
6011
6014
|
onScroll: fe,
|
|
6012
6015
|
ref: this._outerRefSetter,
|
|
6013
|
-
style:
|
|
6016
|
+
style: F({
|
|
6014
6017
|
position: "relative",
|
|
6015
6018
|
height: x,
|
|
6016
6019
|
width: ge,
|
|
@@ -6212,7 +6215,7 @@ const Dt = 37, _c = (e, t) => {
|
|
|
6212
6215
|
return document.body.removeChild(a), s > 21 ? Dt + 21 : Dt;
|
|
6213
6216
|
};
|
|
6214
6217
|
function Xc(e) {
|
|
6215
|
-
const [t, r] =
|
|
6218
|
+
const [t, r] = L(!1), [n, o] = L(""), [i, a] = L(""), [s, u] = L(!1), { isRequired: d = !1 } = e, m = wt(
|
|
6216
6219
|
Lr.debounce((w) => {
|
|
6217
6220
|
var C;
|
|
6218
6221
|
(C = e.handleChangeSearch) == null || C.call(e, w);
|
|
@@ -6447,7 +6450,7 @@ function Xc(e) {
|
|
|
6447
6450
|
}
|
|
6448
6451
|
function Qc(e) {
|
|
6449
6452
|
var m;
|
|
6450
|
-
const { listProps: t } = e, [r, n] =
|
|
6453
|
+
const { listProps: t } = e, [r, n] = L({
|
|
6451
6454
|
initLoading: !e.disabled,
|
|
6452
6455
|
searchLoading: !1,
|
|
6453
6456
|
hasNextPage: !1,
|
|
@@ -6618,7 +6621,7 @@ function wc(e) {
|
|
|
6618
6621
|
const Sc = "Reset date";
|
|
6619
6622
|
function e1(e) {
|
|
6620
6623
|
var s, u;
|
|
6621
|
-
const [t, r] =
|
|
6624
|
+
const [t, r] = L(e.value), n = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : J(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + J(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
|
|
6622
6625
|
te(() => {
|
|
6623
6626
|
r(e.value);
|
|
6624
6627
|
}, [e.value]);
|
|
@@ -6839,14 +6842,14 @@ const To = (e) => {
|
|
|
6839
6842
|
console.log("payload", n), t(n);
|
|
6840
6843
|
});
|
|
6841
6844
|
}), Oc = ["granted", "denied"], Ic = (e) => {
|
|
6842
|
-
const [t, r] =
|
|
6845
|
+
const [t, r] = L(!1), n = () => {
|
|
6843
6846
|
Notification.requestPermission(function(i) {
|
|
6844
6847
|
i === "granted" && To(e), Oc.includes(i) && r(!0);
|
|
6845
6848
|
});
|
|
6846
6849
|
}, o = () => {
|
|
6847
6850
|
r(!0);
|
|
6848
6851
|
};
|
|
6849
|
-
return /* @__PURE__ */ c(
|
|
6852
|
+
return /* @__PURE__ */ c(Ne, { children: t ? "" : /* @__PURE__ */ c("div", { className: $e["subscription-diaglog"], children: /* @__PURE__ */ N("div", { className: $e["subscription-container"], children: [
|
|
6850
6853
|
/* @__PURE__ */ c("h4", { className: $e["subscription-title"], children: "Notification" }),
|
|
6851
6854
|
/* @__PURE__ */ c("p", { className: $e["subscription-text"], children: "Choice to receive notifications for the most recent updates. You have the flexibility to disable them whenever you prefer." }),
|
|
6852
6855
|
/* @__PURE__ */ N("div", { className: $e["subscription-btn__container"], children: [
|
|
@@ -6862,14 +6865,14 @@ const To = (e) => {
|
|
|
6862
6865
|
] })
|
|
6863
6866
|
] }) }) });
|
|
6864
6867
|
}, Tc = (e) => {
|
|
6865
|
-
const [t, r] =
|
|
6868
|
+
const [t, r] = L({
|
|
6866
6869
|
actorName: "",
|
|
6867
6870
|
message: "",
|
|
6868
6871
|
context: "",
|
|
6869
6872
|
contextUrl: ""
|
|
6870
6873
|
});
|
|
6871
6874
|
console.log(t);
|
|
6872
|
-
const { setNotiData: n } =
|
|
6875
|
+
const { setNotiData: n } = Te(Pe);
|
|
6873
6876
|
function o() {
|
|
6874
6877
|
return /* @__PURE__ */ c(
|
|
6875
6878
|
"a",
|
|
@@ -6923,7 +6926,7 @@ const To = (e) => {
|
|
|
6923
6926
|
}, Mc = (e, t) => Se.cloneElement(t, {}, e), r1 = ({
|
|
6924
6927
|
children: e,
|
|
6925
6928
|
providers: t
|
|
6926
|
-
}) => /* @__PURE__ */ c(
|
|
6929
|
+
}) => /* @__PURE__ */ c(Ne, { children: t.reduceRight(Mc, e) }), n1 = ({ rootPath: e }) => {
|
|
6927
6930
|
const { colors: t } = pr();
|
|
6928
6931
|
return /* @__PURE__ */ N(oe, { py: 2, gap: 2, style: { alignItems: "center" }, children: [
|
|
6929
6932
|
/* @__PURE__ */ c(
|
|
@@ -6972,6 +6975,7 @@ export {
|
|
|
6972
6975
|
Kc as FavoriteMenu,
|
|
6973
6976
|
a1 as GlobalMenu,
|
|
6974
6977
|
Zc as HomePage,
|
|
6978
|
+
s1 as IconComponent,
|
|
6975
6979
|
r1 as MultiProvider,
|
|
6976
6980
|
Wc as NoData,
|
|
6977
6981
|
Gc as NotFoundPage,
|
|
@@ -6988,7 +6992,7 @@ export {
|
|
|
6988
6992
|
ei as notify,
|
|
6989
6993
|
Pn as pushError,
|
|
6990
6994
|
zo as pushSuccess,
|
|
6991
|
-
|
|
6995
|
+
l1 as pushWarning,
|
|
6992
6996
|
qc as usePopUp,
|
|
6993
6997
|
Qc as useStyledAutocomplete
|
|
6994
6998
|
};
|