@ukpc-lib/react 0.13.1-dev.17 → 0.13.1-dev.19
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/Notification/NotificationList/components/NotitficationItem.d.ts +3 -1
- package/dist/components/index.cjs +19 -19
- package/dist/components/index.js +2463 -2494
- package/dist/{index.esm2017-Bgt11KSh.cjs → index.esm2017-Bx66LwxI.cjs} +1 -1
- package/dist/{index.esm2017-BznyJPLs.js → index.esm2017-DVyzcks1.js} +78 -74
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- 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-DalhKpCp.js → index-h2Xd3axS.js} +11162 -11102
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { jsxs as Fn, Fragment as Ac, jsx as Me } from "react/jsx-runtime";
|
|
3
3
|
import * as _n from "react";
|
|
4
|
-
import ut, { createContext as ir, useContext as Qt, useMemo as Nn, useEffect as Mt, useState as
|
|
4
|
+
import ut, { createContext as ir, useContext as Qt, useMemo as Nn, useEffect as Mt, useState as qt, useRef as ln, createElement as Qd, PureComponent as vI, isValidElement as kc, useLayoutEffect as Ga, useSyncExternalStore as yI, cloneElement as Ld, useId as nT, useCallback as Ip, useInsertionEffect as rT, forwardRef as Mp, Fragment as iT, Component as bI, memo as wI, useImperativeHandle as xI } from "react";
|
|
5
5
|
import SI from "axios";
|
|
6
6
|
import Vm from "moment";
|
|
7
7
|
import { createTheme as TI, ThemeProvider as CI, Grid as EI, CircularProgress as kI, Tooltip as Fd, styled as DI, Switch as PI } from "@mui/material";
|
|
@@ -3452,7 +3452,7 @@ function rL(t) {
|
|
|
3452
3452
|
function R() {
|
|
3453
3453
|
return a.getFixedT(e.lng || null, p.nsMode === "fallback" ? T : T[0], g);
|
|
3454
3454
|
}
|
|
3455
|
-
var I =
|
|
3455
|
+
var I = qt(R), B = tL(I, 2), _ = B[0], W = B[1], H = T.join();
|
|
3456
3456
|
e.lng && (H = "".concat(e.lng).concat(H));
|
|
3457
3457
|
var te = nL(H), q = ln(!0);
|
|
3458
3458
|
Mt(function() {
|
|
@@ -4344,7 +4344,7 @@ di.use(OT).use(JM).use(TT).init({
|
|
|
4344
4344
|
}
|
|
4345
4345
|
});
|
|
4346
4346
|
function kL() {
|
|
4347
|
-
const [t, e] =
|
|
4347
|
+
const [t, e] = qt();
|
|
4348
4348
|
return Mt(() => {
|
|
4349
4349
|
const n = localStorage.getItem("language");
|
|
4350
4350
|
e(n || FT.en);
|
|
@@ -4362,10 +4362,12 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4362
4362
|
notiPath: e,
|
|
4363
4363
|
markAllAsReadState: n,
|
|
4364
4364
|
brandColors: r,
|
|
4365
|
-
onMark: i
|
|
4365
|
+
onMark: i,
|
|
4366
|
+
showDetail: o,
|
|
4367
|
+
onToggleDetail: a
|
|
4366
4368
|
}) => {
|
|
4367
4369
|
var _, W;
|
|
4368
|
-
const [
|
|
4370
|
+
const [c, f] = qt({
|
|
4369
4371
|
id: t.id,
|
|
4370
4372
|
isRead: t.isRead
|
|
4371
4373
|
}), p = c.isRead === !1 ? "unread" : "read", w = {
|
|
@@ -4385,7 +4387,7 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4385
4387
|
});
|
|
4386
4388
|
}, [n, t.id, t.isRead]);
|
|
4387
4389
|
const T = () => {
|
|
4388
|
-
a(
|
|
4390
|
+
typeof a == "function" && a();
|
|
4389
4391
|
}, E = (H) => {
|
|
4390
4392
|
const te = Vm(), q = Vm(H), re = te.diff(q, "days"), x = te.diff(q, "minutes"), ae = te.diff(q, "months"), se = te.diff(q, "years");
|
|
4391
4393
|
if (console.log("diffInMonths", ae), x < 1)
|
|
@@ -4405,7 +4407,7 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4405
4407
|
return `${Ne} week${Ne > 1 ? "s" : ""} ago`;
|
|
4406
4408
|
}
|
|
4407
4409
|
return ae === 0 || ae === 1 ? "1 month ago" : ae < 12 ? `${ae} months ago` : se === 0 || se === 1 ? "1 year ago" : "Over 1 year ago";
|
|
4408
|
-
}, R = t != null && t.data ? (_ = t == null ? void 0 : t.data) == null ? void 0 : _.length : 0, I = (H, te) => {
|
|
4410
|
+
}, R = t != null && t.data ? (_ = t == null ? void 0 : t.data) == null ? void 0 : _.length : 0, I = t != null && t.contextUrl ? "a" : "p", B = (H, te) => {
|
|
4409
4411
|
var q, re;
|
|
4410
4412
|
if ((H == null ? void 0 : H.actionKey) != null) {
|
|
4411
4413
|
if ((q = H == null ? void 0 : H.data) != null && q.brandName)
|
|
@@ -4433,7 +4435,7 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4433
4435
|
}
|
|
4434
4436
|
}
|
|
4435
4437
|
return H.message;
|
|
4436
|
-
}
|
|
4438
|
+
};
|
|
4437
4439
|
return /* @__PURE__ */ Me(Ac, { children: /* @__PURE__ */ Fn("div", { className: "notitification-item__container", children: [
|
|
4438
4440
|
/* @__PURE__ */ Me("div", { className: "notification-item__image-container", children: /* @__PURE__ */ Me(
|
|
4439
4441
|
"img",
|
|
@@ -4445,19 +4447,21 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4445
4447
|
alt: t.actorName
|
|
4446
4448
|
}
|
|
4447
4449
|
) }),
|
|
4448
|
-
/* @__PURE__ */ Fn("div", { style: { width: "100%" }, children: [
|
|
4450
|
+
/* @__PURE__ */ Fn("div", { style: { width: "calc(100% - 56px)" }, children: [
|
|
4449
4451
|
/* @__PURE__ */ Fn("div", { className: "notification-item__content-wrapper", children: [
|
|
4450
4452
|
/* @__PURE__ */ Fn("div", { className: "notification-item__content", children: [
|
|
4451
4453
|
/* @__PURE__ */ Me("p", { className: "notification-item__user-name", children: t.actorName }),
|
|
4452
4454
|
/* @__PURE__ */ Fn(
|
|
4453
|
-
|
|
4455
|
+
I,
|
|
4454
4456
|
{
|
|
4455
4457
|
href: t.contextUrl,
|
|
4456
4458
|
style: {
|
|
4457
|
-
cursor: t != null && t.contextUrl ? "pointer" : "unset"
|
|
4459
|
+
cursor: t != null && t.contextUrl ? "pointer" : "unset",
|
|
4460
|
+
textDecoration: "none",
|
|
4461
|
+
color: "inherit"
|
|
4458
4462
|
},
|
|
4459
4463
|
children: [
|
|
4460
|
-
|
|
4464
|
+
B(t, R),
|
|
4461
4465
|
/* @__PURE__ */ Me(
|
|
4462
4466
|
"span",
|
|
4463
4467
|
{
|
|
@@ -4533,7 +4537,7 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4533
4537
|
] }) });
|
|
4534
4538
|
}
|
|
4535
4539
|
), DL = ir({}), ZY = ({ children: t }) => {
|
|
4536
|
-
const [e, n] =
|
|
4540
|
+
const [e, n] = qt(!1), [r, i] = qt({
|
|
4537
4541
|
all: { total: 0 },
|
|
4538
4542
|
unread: { total: 0 }
|
|
4539
4543
|
}), o = () => {
|
|
@@ -5385,7 +5389,7 @@ function W2(t) {
|
|
|
5385
5389
|
}, isToastActive: JT, count: i == null ? void 0 : i.length };
|
|
5386
5390
|
}
|
|
5387
5391
|
function z2(t) {
|
|
5388
|
-
const [e, n] =
|
|
5392
|
+
const [e, n] = qt(!1), [r, i] = qt(!1), o = ln(null), a = ln({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: c, pauseOnHover: f, closeToast: p, onClick: w, closeOnClick: g } = t;
|
|
5389
5393
|
var T, E;
|
|
5390
5394
|
function R() {
|
|
5391
5395
|
n(!0);
|
|
@@ -5538,7 +5542,7 @@ Bp($p("flip"));
|
|
|
5538
5542
|
const J2 = { position: "top-right", transition: Z2, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
5539
5543
|
function e7(t) {
|
|
5540
5544
|
let e = { ...J2, ...t };
|
|
5541
|
-
const n = t.stacked, [r, i] =
|
|
5545
|
+
const n = t.stacked, [r, i] = qt(!0), o = ln(null), { getToastToRender: a, isToastActive: c, count: f } = W2(e), { className: p, style: w, rtl: g, containerId: T } = e;
|
|
5542
5546
|
function E(I) {
|
|
5543
5547
|
const B = gu("Toastify__toast-container", `Toastify__toast-container--${I}`, { "Toastify__toast-container--rtl": g });
|
|
5544
5548
|
return is(p) ? p({ position: I, rtl: g, defaultClassName: B }) : gu(B, Yh(p));
|
|
@@ -11307,7 +11311,7 @@ function cV({ debounce: t, scroll: e, polyfill: n, offsetSize: r } = { debounce:
|
|
|
11307
11311
|
} : window.ResizeObserver);
|
|
11308
11312
|
if (!i)
|
|
11309
11313
|
throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");
|
|
11310
|
-
const [o, a] =
|
|
11314
|
+
const [o, a] = qt({ left: 0, top: 0, width: 0, height: 0, bottom: 0, right: 0, x: 0, y: 0 }), c = ln({ element: null, scrollContainers: null, resizeObserver: null, lastBounds: o, orientationHandler: null }), f = t ? typeof t == "number" ? t : t.scroll : null, p = t ? typeof t == "number" ? t : t.resize : null, w = ln(!1);
|
|
11311
11315
|
Mt(() => (w.current = !0, () => void (w.current = !1)));
|
|
11312
11316
|
const [g, T, E] = Nn(() => {
|
|
11313
11317
|
const _ = () => {
|
|
@@ -12501,7 +12505,7 @@ var N3 = function t(e, n) {
|
|
|
12501
12505
|
};
|
|
12502
12506
|
const B3 = /* @__PURE__ */ Bc(N3), Ic = typeof window < "u" ? Ga : Mt;
|
|
12503
12507
|
function ek(t, e, n) {
|
|
12504
|
-
const [r, i] =
|
|
12508
|
+
const [r, i] = qt(
|
|
12505
12509
|
() => e(t)
|
|
12506
12510
|
), o = Ip(() => {
|
|
12507
12511
|
const a = e(t);
|
|
@@ -13555,7 +13559,7 @@ function kH(t) {
|
|
|
13555
13559
|
var e = t.isVisible, n = t.ease, r = n === void 0 ? "easeIn" : n, i = t.duration, o = t.variants, a = o === void 0 ? {
|
|
13556
13560
|
open: { opacity: 1, height: "auto" },
|
|
13557
13561
|
close: { opacity: 0, height: 0 }
|
|
13558
|
-
} : o, c = t.children, f = cV({ polyfill: NF }), p = f[0], w = f[1].height, g =
|
|
13562
|
+
} : o, c = t.children, f = cV({ polyfill: NF }), p = f[0], w = f[1].height, g = qt(e), T = g[0], E = g[1], R = qt(e), I = R[0], B = R[1], _ = qt(!1), W = _[0], H = _[1], te = function() {
|
|
13559
13563
|
H(!1), e || E(!1);
|
|
13560
13564
|
};
|
|
13561
13565
|
Mt(function() {
|
|
@@ -13581,7 +13585,7 @@ function DH(t, e) {
|
|
|
13581
13585
|
var ck = ir({}), PH = {
|
|
13582
13586
|
isLock: !1
|
|
13583
13587
|
}, OH = function(t) {
|
|
13584
|
-
var e =
|
|
13588
|
+
var e = qt(PH.isLock), n = e[0], r = e[1];
|
|
13585
13589
|
return ut.createElement(ck.Provider, { value: {
|
|
13586
13590
|
isLock: n,
|
|
13587
13591
|
lock: function() {
|
|
@@ -13595,7 +13599,7 @@ var ck = ir({}), PH = {
|
|
|
13595
13599
|
dropTargetId: void 0,
|
|
13596
13600
|
index: void 0
|
|
13597
13601
|
}, _H = function(t) {
|
|
13598
|
-
var e =
|
|
13602
|
+
var e = qt(Fh.dropTargetId), n = e[0], r = e[1], i = qt(Fh.index), o = i[0], a = i[1], c = function(p, w) {
|
|
13599
13603
|
r(p), a(w);
|
|
13600
13604
|
}, f = function() {
|
|
13601
13605
|
r(Fh.dropTargetId), a(Fh.index);
|
|
@@ -13987,7 +13991,7 @@ var ck = ir({}), PH = {
|
|
|
13987
13991
|
}).map(function(g) {
|
|
13988
13992
|
return g.id;
|
|
13989
13993
|
}) : Array.isArray(e) ? e : [];
|
|
13990
|
-
}, [e]), r =
|
|
13994
|
+
}, [e]), r = qt(n), i = r[0], o = r[1];
|
|
13991
13995
|
Mt(function() {
|
|
13992
13996
|
return o(n);
|
|
13993
13997
|
}, [n]);
|
|
@@ -18377,7 +18381,7 @@ function d4(t) {
|
|
|
18377
18381
|
);
|
|
18378
18382
|
}
|
|
18379
18383
|
function h4(t) {
|
|
18380
|
-
const { renderChildren: e, parentRef: n, onlyChild: r } = t, [i, o] =
|
|
18384
|
+
const { renderChildren: e, parentRef: n, onlyChild: r } = t, [i, o] = qt({ top: 0, left: 0 }), a = ln(null), [c, f] = qt("auto");
|
|
18381
18385
|
return Ga(() => {
|
|
18382
18386
|
if (n.current && a.current) {
|
|
18383
18387
|
const p = n.current.getBoundingClientRect(), w = a.current.getBoundingClientRect();
|
|
@@ -19515,7 +19519,7 @@ function j4(t) {
|
|
|
19515
19519
|
);
|
|
19516
19520
|
}
|
|
19517
19521
|
function V4(t) {
|
|
19518
|
-
const { renderChildren: e, parentRef: n, onlyChild: r, dropdownLevel: i } = t, [o, a] =
|
|
19522
|
+
const { renderChildren: e, parentRef: n, onlyChild: r, dropdownLevel: i } = t, [o, a] = qt({ top: 0, left: 0 }), c = ln(null), [f, p] = qt("auto");
|
|
19519
19523
|
return Ga(() => {
|
|
19520
19524
|
if (n.current && c.current) {
|
|
19521
19525
|
const w = n.current.getBoundingClientRect(), g = c.current.getBoundingClientRect();
|
|
@@ -19615,7 +19619,7 @@ function U4({ item: t }) {
|
|
|
19615
19619
|
}
|
|
19616
19620
|
function YD({ ...t }) {
|
|
19617
19621
|
var Ne, tt, Qe;
|
|
19618
|
-
const e = t.item, n = t.level || 0, r = !!((Ne = t.item.children) != null && Ne.length), i = `level-${n}`, o = (ke, Re = i) => `${ke} ${Re} `, [a, c] =
|
|
19622
|
+
const e = t.item, n = t.level || 0, r = !!((Ne = t.item.children) != null && Ne.length), i = `level-${n}`, o = (ke, Re = i) => `${ke} ${Re} `, [a, c] = qt(!1), [f, p] = qt(e.isFavorite || !1), w = ln(), g = ln();
|
|
19619
19623
|
g != null && g.current && ((tt = g == null ? void 0 : g.current) == null ? void 0 : tt.scrollWidth) > ((Qe = g == null ? void 0 : g.current) == null ? void 0 : Qe.clientWidth);
|
|
19620
19624
|
const T = window.location.origin, E = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, R = window.location.pathname.split("/")[1], I = E.pathname.split("/")[1], B = t.item.redirectUrl || t.ssr || !T.includes("local") && T !== E.origin || I !== R, _ = r || n === 0 ? "div" : B ? "a" : sT, W = e.redirectUrl || e.path || "#", H = n + 1, te = r && a && n > 0, q = () => {
|
|
19621
19625
|
t.isDrop || c(!0);
|
|
@@ -29742,7 +29746,7 @@ function a6(t) {
|
|
|
29742
29746
|
var e = Mp(function(n, r) {
|
|
29743
29747
|
var i, o, a = n.mode, c = a === void 0 ? "open" : a, f = n.delegatesFocus, p = f !== void 0 && f, w = n.styleSheets, g = w === void 0 ? [] : w, T = n.ssr, E = T !== void 0 && T, R = n.children, I = XD(n, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), B = (o = ln((i = r) && i.current), Mt(function() {
|
|
29744
29748
|
i && (i.current = o.current);
|
|
29745
|
-
}, [i]), o), _ =
|
|
29749
|
+
}, [i]), o), _ = qt(null), W = i6(_, 2), H = W[0], te = W[1], q = "node_".concat(c).concat(p);
|
|
29746
29750
|
return Ga(function() {
|
|
29747
29751
|
if (B.current)
|
|
29748
29752
|
try {
|
|
@@ -29844,9 +29848,9 @@ function h6(t) {
|
|
|
29844
29848
|
}
|
|
29845
29849
|
const _m = "MENU_ITEM";
|
|
29846
29850
|
function p6(t) {
|
|
29847
|
-
const e = aT(), [n, r] =
|
|
29851
|
+
const e = aT(), [n, r] = qt([]), [i, o] = qt([]), [a, c] = qt(!1);
|
|
29848
29852
|
console.log("isSubmit", a);
|
|
29849
|
-
const f = ln(null), [p, w] =
|
|
29853
|
+
const f = ln(null), [p, w] = qt(window.location.href);
|
|
29850
29854
|
Mt(() => {
|
|
29851
29855
|
w(window.location.href);
|
|
29852
29856
|
}, [e]);
|
|
@@ -29871,7 +29875,7 @@ function p6(t) {
|
|
|
29871
29875
|
console.log("Favorite menus changed", q);
|
|
29872
29876
|
const re = q.detail.favoriteMenus || [];
|
|
29873
29877
|
r(re);
|
|
29874
|
-
}, [I, B] =
|
|
29878
|
+
}, [I, B] = qt(!1);
|
|
29875
29879
|
Mt(() => {
|
|
29876
29880
|
const q = (re) => {
|
|
29877
29881
|
B(re.detail.isLoading);
|
|
@@ -30017,7 +30021,7 @@ function p6(t) {
|
|
|
30017
30021
|
) }) : "" });
|
|
30018
30022
|
}
|
|
30019
30023
|
function g6(t = 32) {
|
|
30020
|
-
const [e, n] =
|
|
30024
|
+
const [e, n] = qt(!0), [r, i] = qt(0), o = () => {
|
|
30021
30025
|
const a = window.scrollY;
|
|
30022
30026
|
a > r && a > t ? n(!1) : a < r && n(!0), i(a);
|
|
30023
30027
|
};
|
|
@@ -30050,7 +30054,7 @@ function QD(t, e) {
|
|
|
30050
30054
|
}
|
|
30051
30055
|
function eP({ ...t }) {
|
|
30052
30056
|
var xe, Be, Je;
|
|
30053
|
-
const e = t.item, n = t.level || 0, r = !!((xe = t.item.children) != null && xe.length), { isActive: i, isCollapsed: o } = t, a = `level-${n}`, c = o ? "collapsed" : "expanded", f = i(e.id) ? "active" : "", p = r ? "parent" : "child", w = t.params.isOpen ? "isOpen" : "isClose", g = t.isInternalApp ? "isInternalApp" : "", T = (ze, Xe = a) => `${ze} ${Xe} ${c} ${f} ${p} ${w} ${g}`, [E, R] =
|
|
30057
|
+
const e = t.item, n = t.level || 0, r = !!((xe = t.item.children) != null && xe.length), { isActive: i, isCollapsed: o } = t, a = `level-${n}`, c = o ? "collapsed" : "expanded", f = i(e.id) ? "active" : "", p = r ? "parent" : "child", w = t.params.isOpen ? "isOpen" : "isClose", g = t.isInternalApp ? "isInternalApp" : "", T = (ze, Xe = a) => `${ze} ${Xe} ${c} ${f} ${p} ${w} ${g}`, [E, R] = qt(!1), [I, B] = qt(e.isFavorite || !1);
|
|
30054
30058
|
Mt(() => {
|
|
30055
30059
|
B(!!t.item.isFavorite);
|
|
30056
30060
|
}, [t.item.isFavorite]);
|
|
@@ -30304,7 +30308,7 @@ const x6 = ".flex-col-center{display:flex;flex-direction:column;justify-content:
|
|
|
30304
30308
|
}
|
|
30305
30309
|
);
|
|
30306
30310
|
}, T6 = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", C6 = (t) => {
|
|
30307
|
-
const [e, n] =
|
|
30311
|
+
const [e, n] = qt(() => {
|
|
30308
30312
|
const r = localStorage.getItem("openingMenuIds");
|
|
30309
30313
|
return r && r !== "[]" ? JSON.parse(r) : (t == null ? void 0 : t.initOpenIds) || [];
|
|
30310
30314
|
});
|
|
@@ -30327,9 +30331,9 @@ function E6(t) {
|
|
|
30327
30331
|
window.dispatchEvent(e);
|
|
30328
30332
|
}
|
|
30329
30333
|
function k6(t) {
|
|
30330
|
-
const e = aT(), [n, r] =
|
|
30334
|
+
const e = aT(), [n, r] = qt([]), i = n.map((ke) => ke.data), [o, a] = qt(!1), [c, f] = qt([]), [p, w] = qt(
|
|
30331
30335
|
ip === null ? !0 : ip === "true"
|
|
30332
|
-
), [g, T] =
|
|
30336
|
+
), [g, T] = qt(window.location.href), E = ln(null);
|
|
30333
30337
|
Mt(() => {
|
|
30334
30338
|
var ke;
|
|
30335
30339
|
(ke = t.handleCallback) == null || ke.call(t, i);
|
|
@@ -30346,7 +30350,7 @@ function k6(t) {
|
|
|
30346
30350
|
const ce = n.filter((ge) => ge.parent === 0).map((ge) => ge.id);
|
|
30347
30351
|
console.log("closeIds:", ce), (Re = E.current) == null || Re.close(ce);
|
|
30348
30352
|
}
|
|
30349
|
-
}, [W, H] =
|
|
30353
|
+
}, [W, H] = qt(!1), te = p ? "collapsed" : "expanded", q = (ke) => `${ke} ${te}`, re = ln(null);
|
|
30350
30354
|
Ga(() => {
|
|
30351
30355
|
(async () => {
|
|
30352
30356
|
var Re, ce;
|
|
@@ -30371,7 +30375,7 @@ function k6(t) {
|
|
|
30371
30375
|
}
|
|
30372
30376
|
})();
|
|
30373
30377
|
}, [t.baseUrl, t.menuPath, t.replacePath]);
|
|
30374
|
-
const [x, ae] =
|
|
30378
|
+
const [x, ae] = qt(!1), se = async () => {
|
|
30375
30379
|
ae(!0), window.dispatchEvent(
|
|
30376
30380
|
new CustomEvent("favoriteLoadingChange", { detail: { isLoading: !0 } })
|
|
30377
30381
|
);
|
|
@@ -31713,7 +31717,7 @@ _p.exports;
|
|
|
31713
31717
|
}
|
|
31714
31718
|
function td(s, u, b, O) {
|
|
31715
31719
|
var j = s.length;
|
|
31716
|
-
for (b =
|
|
31720
|
+
for (b = Gt(b), b < 0 && (b = -b > j ? 0 : j + b), O = O === n || O > j ? j : Gt(O), O < 0 && (O += j), O = b > O ? 0 : n0(O); b < O; )
|
|
31717
31721
|
s[b++] = u;
|
|
31718
31722
|
return s;
|
|
31719
31723
|
}
|
|
@@ -32520,7 +32524,7 @@ _p.exports;
|
|
|
32520
32524
|
function ao(s) {
|
|
32521
32525
|
var u = at[s];
|
|
32522
32526
|
return function(b, O) {
|
|
32523
|
-
if (b = Os(b), O = O == null ? 0 : Qn(
|
|
32527
|
+
if (b = Os(b), O = O == null ? 0 : Qn(Gt(O), 292), O && Ca(b)) {
|
|
32524
32528
|
var j = (bn(b) + "e").split("e"), X = u(j[0] + "e" + (+j[1] + O));
|
|
32525
32529
|
return j = (bn(X) + "e").split("e"), +(j[0] + "e" + (+j[1] - O));
|
|
32526
32530
|
}
|
|
@@ -32541,7 +32545,7 @@ _p.exports;
|
|
|
32541
32545
|
if (!ve && typeof s != "function")
|
|
32542
32546
|
throw new Ht(a);
|
|
32543
32547
|
var Ve = O ? O.length : 0;
|
|
32544
|
-
if (Ve || (u &= -97, O = j = n), ie = ie === n ? ie : Cn(
|
|
32548
|
+
if (Ve || (u &= -97, O = j = n), ie = ie === n ? ie : Cn(Gt(ie), 0), de = de === n ? de : Gt(de), Ve -= j ? j.length : 0, u & re) {
|
|
32545
32549
|
var He = O, qe = j;
|
|
32546
32550
|
O = j = n;
|
|
32547
32551
|
}
|
|
@@ -32999,7 +33003,7 @@ _p.exports;
|
|
|
32999
33003
|
return u.__actions__ = Jr(s.__actions__), u.__index__ = s.__index__, u.__values__ = s.__values__, u;
|
|
33000
33004
|
}
|
|
33001
33005
|
function oO(s, u, b) {
|
|
33002
|
-
(b ? lo(s, u, b) : u === n) ? u = 1 : u = Cn(
|
|
33006
|
+
(b ? lo(s, u, b) : u === n) ? u = 1 : u = Cn(Gt(u), 0);
|
|
33003
33007
|
var O = s == null ? 0 : s.length;
|
|
33004
33008
|
if (!O || u < 1)
|
|
33005
33009
|
return [];
|
|
@@ -33033,11 +33037,11 @@ _p.exports;
|
|
|
33033
33037
|
});
|
|
33034
33038
|
function fO(s, u, b) {
|
|
33035
33039
|
var O = s == null ? 0 : s.length;
|
|
33036
|
-
return O ? (u = b || u === n ? 1 :
|
|
33040
|
+
return O ? (u = b || u === n ? 1 : Gt(u), ci(s, u < 0 ? 0 : u, O)) : [];
|
|
33037
33041
|
}
|
|
33038
33042
|
function dO(s, u, b) {
|
|
33039
33043
|
var O = s == null ? 0 : s.length;
|
|
33040
|
-
return O ? (u = b || u === n ? 1 :
|
|
33044
|
+
return O ? (u = b || u === n ? 1 : Gt(u), u = O - u, ci(s, 0, u < 0 ? 0 : u)) : [];
|
|
33041
33045
|
}
|
|
33042
33046
|
function hO(s, u) {
|
|
33043
33047
|
return s && s.length ? ia(s, Ct(u, 3), !0, !0) : [];
|
|
@@ -33053,7 +33057,7 @@ _p.exports;
|
|
|
33053
33057
|
var O = s == null ? 0 : s.length;
|
|
33054
33058
|
if (!O)
|
|
33055
33059
|
return -1;
|
|
33056
|
-
var j = b == null ? 0 :
|
|
33060
|
+
var j = b == null ? 0 : Gt(b);
|
|
33057
33061
|
return j < 0 && (j = Cn(O + j, 0)), $t(s, Ct(u, 3), j);
|
|
33058
33062
|
}
|
|
33059
33063
|
function Fb(s, u, b) {
|
|
@@ -33061,7 +33065,7 @@ _p.exports;
|
|
|
33061
33065
|
if (!O)
|
|
33062
33066
|
return -1;
|
|
33063
33067
|
var j = O - 1;
|
|
33064
|
-
return b !== n && (j =
|
|
33068
|
+
return b !== n && (j = Gt(b), j = b < 0 ? Cn(O + j, 0) : Qn(j, O - 1)), $t(s, Ct(u, 3), j, !0);
|
|
33065
33069
|
}
|
|
33066
33070
|
function Nb(s) {
|
|
33067
33071
|
var u = s == null ? 0 : s.length;
|
|
@@ -33073,7 +33077,7 @@ _p.exports;
|
|
|
33073
33077
|
}
|
|
33074
33078
|
function vO(s, u) {
|
|
33075
33079
|
var b = s == null ? 0 : s.length;
|
|
33076
|
-
return b ? (u = u === n ? 1 :
|
|
33080
|
+
return b ? (u = u === n ? 1 : Gt(u), yr(s, u)) : [];
|
|
33077
33081
|
}
|
|
33078
33082
|
function yO(s) {
|
|
33079
33083
|
for (var u = -1, b = s == null ? 0 : s.length, O = {}; ++u < b; ) {
|
|
@@ -33089,7 +33093,7 @@ _p.exports;
|
|
|
33089
33093
|
var O = s == null ? 0 : s.length;
|
|
33090
33094
|
if (!O)
|
|
33091
33095
|
return -1;
|
|
33092
|
-
var j = b == null ? 0 :
|
|
33096
|
+
var j = b == null ? 0 : Gt(b);
|
|
33093
33097
|
return j < 0 && (j = Cn(O + j, 0)), nn(s, u, j);
|
|
33094
33098
|
}
|
|
33095
33099
|
function wO(s) {
|
|
@@ -33118,10 +33122,10 @@ _p.exports;
|
|
|
33118
33122
|
if (!O)
|
|
33119
33123
|
return -1;
|
|
33120
33124
|
var j = O;
|
|
33121
|
-
return b !== n && (j =
|
|
33125
|
+
return b !== n && (j = Gt(b), j = j < 0 ? Cn(O + j, 0) : Qn(j, O - 1)), u === u ? ya(s, u, j) : $t(s, xo, j, !0);
|
|
33122
33126
|
}
|
|
33123
33127
|
function kO(s, u) {
|
|
33124
|
-
return s && s.length ? Ma(s,
|
|
33128
|
+
return s && s.length ? Ma(s, Gt(u)) : n;
|
|
33125
33129
|
}
|
|
33126
33130
|
var DO = jt($b);
|
|
33127
33131
|
function $b(s, u) {
|
|
@@ -33155,7 +33159,7 @@ _p.exports;
|
|
|
33155
33159
|
}
|
|
33156
33160
|
function RO(s, u, b) {
|
|
33157
33161
|
var O = s == null ? 0 : s.length;
|
|
33158
|
-
return O ? (b && typeof b != "number" && lo(s, u, b) ? (u = 0, b = O) : (u = u == null ? 0 :
|
|
33162
|
+
return O ? (b && typeof b != "number" && lo(s, u, b) ? (u = 0, b = O) : (u = u == null ? 0 : Gt(u), b = b === n ? O : Gt(b)), ci(s, u, b)) : [];
|
|
33159
33163
|
}
|
|
33160
33164
|
function IO(s, u) {
|
|
33161
33165
|
return tu(s, u);
|
|
@@ -33198,11 +33202,11 @@ _p.exports;
|
|
|
33198
33202
|
return u ? ci(s, 1, u) : [];
|
|
33199
33203
|
}
|
|
33200
33204
|
function HO(s, u, b) {
|
|
33201
|
-
return s && s.length ? (u = b || u === n ? 1 :
|
|
33205
|
+
return s && s.length ? (u = b || u === n ? 1 : Gt(u), ci(s, 0, u < 0 ? 0 : u)) : [];
|
|
33202
33206
|
}
|
|
33203
33207
|
function UO(s, u, b) {
|
|
33204
33208
|
var O = s == null ? 0 : s.length;
|
|
33205
|
-
return O ? (u = b || u === n ? 1 :
|
|
33209
|
+
return O ? (u = b || u === n ? 1 : Gt(u), u = O - u, ci(s, u < 0 ? 0 : u, O)) : [];
|
|
33206
33210
|
}
|
|
33207
33211
|
function WO(s, u) {
|
|
33208
33212
|
return s && s.length ? ia(s, Ct(u, 3), !1, !0) : [];
|
|
@@ -33347,7 +33351,7 @@ _p.exports;
|
|
|
33347
33351
|
return yr(gh(s, u), De);
|
|
33348
33352
|
}
|
|
33349
33353
|
function S_(s, u, b) {
|
|
33350
|
-
return b = b === n ? 1 :
|
|
33354
|
+
return b = b === n ? 1 : Gt(b), yr(gh(s, u), b);
|
|
33351
33355
|
}
|
|
33352
33356
|
function Hb(s, u) {
|
|
33353
33357
|
var b = Ut(s) ? ee : xs;
|
|
@@ -33361,7 +33365,7 @@ _p.exports;
|
|
|
33361
33365
|
kt.call(s, b) ? s[b].push(u) : Oi(s, b, [u]);
|
|
33362
33366
|
});
|
|
33363
33367
|
function C_(s, u, b, O) {
|
|
33364
|
-
s = Io(s) ? s : gf(s), b = b && !O ?
|
|
33368
|
+
s = Io(s) ? s : gf(s), b = b && !O ? Gt(b) : 0;
|
|
33365
33369
|
var j = s.length;
|
|
33366
33370
|
return b < 0 && (b = Cn(j + b, 0)), wh(s) ? b <= j && s.indexOf(u, b) > -1 : !!j && nn(s, u, b) > -1;
|
|
33367
33371
|
}
|
|
@@ -33402,7 +33406,7 @@ _p.exports;
|
|
|
33402
33406
|
return u(s);
|
|
33403
33407
|
}
|
|
33404
33408
|
function I_(s, u, b) {
|
|
33405
|
-
(b ? lo(s, u, b) : u === n) ? u = 1 : u =
|
|
33409
|
+
(b ? lo(s, u, b) : u === n) ? u = 1 : u = Gt(u);
|
|
33406
33410
|
var O = Ut(s) ? Pi : rc;
|
|
33407
33411
|
return O(s, u);
|
|
33408
33412
|
}
|
|
@@ -33433,7 +33437,7 @@ _p.exports;
|
|
|
33433
33437
|
function B_(s, u) {
|
|
33434
33438
|
if (typeof u != "function")
|
|
33435
33439
|
throw new Ht(a);
|
|
33436
|
-
return s =
|
|
33440
|
+
return s = Gt(s), function() {
|
|
33437
33441
|
if (--s < 1)
|
|
33438
33442
|
return u.apply(this, arguments);
|
|
33439
33443
|
};
|
|
@@ -33445,7 +33449,7 @@ _p.exports;
|
|
|
33445
33449
|
var b;
|
|
33446
33450
|
if (typeof u != "function")
|
|
33447
33451
|
throw new Ht(a);
|
|
33448
|
-
return s =
|
|
33452
|
+
return s = Gt(s), function() {
|
|
33449
33453
|
return --s > 0 && (b = u.apply(this, arguments)), s <= 1 && (u = n), b;
|
|
33450
33454
|
};
|
|
33451
33455
|
}
|
|
@@ -33583,12 +33587,12 @@ _p.exports;
|
|
|
33583
33587
|
function z_(s, u) {
|
|
33584
33588
|
if (typeof s != "function")
|
|
33585
33589
|
throw new Ht(a);
|
|
33586
|
-
return u = u === n ? u :
|
|
33590
|
+
return u = u === n ? u : Gt(u), jt(s, u);
|
|
33587
33591
|
}
|
|
33588
33592
|
function Y_(s, u) {
|
|
33589
33593
|
if (typeof s != "function")
|
|
33590
33594
|
throw new Ht(a);
|
|
33591
|
-
return u = u == null ? 0 : Cn(
|
|
33595
|
+
return u = u == null ? 0 : Cn(Gt(u), 0), jt(function(b) {
|
|
33592
33596
|
var O = b[u], j = Es(b, 0, u);
|
|
33593
33597
|
return O && Tt(j, O), V(s, this, j);
|
|
33594
33598
|
});
|
|
@@ -33692,7 +33696,7 @@ _p.exports;
|
|
|
33692
33696
|
return u == Ze || u == Rt || u == it || u == Gi;
|
|
33693
33697
|
}
|
|
33694
33698
|
function Zb(s) {
|
|
33695
|
-
return typeof s == "number" && s ==
|
|
33699
|
+
return typeof s == "number" && s == Gt(s);
|
|
33696
33700
|
}
|
|
33697
33701
|
function bh(s) {
|
|
33698
33702
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= $e;
|
|
@@ -33780,12 +33784,12 @@ _p.exports;
|
|
|
33780
33784
|
}
|
|
33781
33785
|
return s === s ? s : 0;
|
|
33782
33786
|
}
|
|
33783
|
-
function
|
|
33787
|
+
function Gt(s) {
|
|
33784
33788
|
var u = xl(s), b = u % 1;
|
|
33785
33789
|
return u === u ? b ? u - b : u : 0;
|
|
33786
33790
|
}
|
|
33787
33791
|
function n0(s) {
|
|
33788
|
-
return s ? Zs(
|
|
33792
|
+
return s ? Zs(Gt(s), 0, xe) : 0;
|
|
33789
33793
|
}
|
|
33790
33794
|
function Os(s) {
|
|
33791
33795
|
if (typeof s == "number")
|
|
@@ -33806,7 +33810,7 @@ _p.exports;
|
|
|
33806
33810
|
return $i(s, Mo(s));
|
|
33807
33811
|
}
|
|
33808
33812
|
function CA(s) {
|
|
33809
|
-
return s ? Zs(
|
|
33813
|
+
return s ? Zs(Gt(s), -9007199254740991, $e) : s === 0 ? s : 0;
|
|
33810
33814
|
}
|
|
33811
33815
|
function bn(s) {
|
|
33812
33816
|
return s == null ? "" : Kr(s);
|
|
@@ -34000,7 +34004,7 @@ _p.exports;
|
|
|
34000
34004
|
function aR(s, u, b) {
|
|
34001
34005
|
s = bn(s), u = Kr(u);
|
|
34002
34006
|
var O = s.length;
|
|
34003
|
-
b = b === n ? O : Zs(
|
|
34007
|
+
b = b === n ? O : Zs(Gt(b), 0, O);
|
|
34004
34008
|
var j = b;
|
|
34005
34009
|
return b -= u.length, b >= 0 && s.slice(b, j) == u;
|
|
34006
34010
|
}
|
|
@@ -34016,7 +34020,7 @@ _p.exports;
|
|
|
34016
34020
|
return s + (b ? " " : "") + u.toLowerCase();
|
|
34017
34021
|
}), dR = m("toLowerCase");
|
|
34018
34022
|
function hR(s, u, b) {
|
|
34019
|
-
s = bn(s), u =
|
|
34023
|
+
s = bn(s), u = Gt(u);
|
|
34020
34024
|
var O = u ? Co(s) : 0;
|
|
34021
34025
|
if (!u || O >= u)
|
|
34022
34026
|
return s;
|
|
@@ -34024,12 +34028,12 @@ _p.exports;
|
|
|
34024
34028
|
return xt(Ys(j), b) + s + xt(Sa(j), b);
|
|
34025
34029
|
}
|
|
34026
34030
|
function pR(s, u, b) {
|
|
34027
|
-
s = bn(s), u =
|
|
34031
|
+
s = bn(s), u = Gt(u);
|
|
34028
34032
|
var O = u ? Co(s) : 0;
|
|
34029
34033
|
return u && O < u ? s + xt(u - O, b) : s;
|
|
34030
34034
|
}
|
|
34031
34035
|
function gR(s, u, b) {
|
|
34032
|
-
s = bn(s), u =
|
|
34036
|
+
s = bn(s), u = Gt(u);
|
|
34033
34037
|
var O = u ? Co(s) : 0;
|
|
34034
34038
|
return u && O < u ? xt(u - O, b) + s : s;
|
|
34035
34039
|
}
|
|
@@ -34037,7 +34041,7 @@ _p.exports;
|
|
|
34037
34041
|
return b || u == null ? u = 0 : u && (u = +u), $u(bn(s).replace(fn, ""), u || 0);
|
|
34038
34042
|
}
|
|
34039
34043
|
function vR(s, u, b) {
|
|
34040
|
-
return (b ? lo(s, u, b) : u === n) ? u = 1 : u =
|
|
34044
|
+
return (b ? lo(s, u, b) : u === n) ? u = 1 : u = Gt(u), Ql(bn(s), u);
|
|
34041
34045
|
}
|
|
34042
34046
|
function yR() {
|
|
34043
34047
|
var s = arguments, u = bn(s[0]);
|
|
@@ -34053,7 +34057,7 @@ _p.exports;
|
|
|
34053
34057
|
return s + (b ? " " : "") + Pg(u);
|
|
34054
34058
|
});
|
|
34055
34059
|
function SR(s, u, b) {
|
|
34056
|
-
return s = bn(s), b = b == null ? 0 : Zs(
|
|
34060
|
+
return s = bn(s), b = b == null ? 0 : Zs(Gt(b), 0, s.length), u = Kr(u), s.slice(b, b + u.length) == u;
|
|
34057
34061
|
}
|
|
34058
34062
|
function TR(s, u, b) {
|
|
34059
34063
|
var O = z.templateSettings;
|
|
@@ -34129,7 +34133,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34129
34133
|
var b = Ne, O = tt;
|
|
34130
34134
|
if (er(u)) {
|
|
34131
34135
|
var j = "separator" in u ? u.separator : j;
|
|
34132
|
-
b = "length" in u ?
|
|
34136
|
+
b = "length" in u ? Gt(u.length) : b, O = "omission" in u ? Kr(u.omission) : O;
|
|
34133
34137
|
}
|
|
34134
34138
|
s = bn(s);
|
|
34135
34139
|
var X = s.length;
|
|
@@ -34247,7 +34251,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34247
34251
|
function Rg() {
|
|
34248
34252
|
}
|
|
34249
34253
|
function UR(s) {
|
|
34250
|
-
return s =
|
|
34254
|
+
return s = Gt(s), jt(function(u) {
|
|
34251
34255
|
return Ma(u, s);
|
|
34252
34256
|
});
|
|
34253
34257
|
}
|
|
@@ -34277,7 +34281,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34277
34281
|
return !0;
|
|
34278
34282
|
}
|
|
34279
34283
|
function QR(s, u) {
|
|
34280
|
-
if (s =
|
|
34284
|
+
if (s = Gt(s), s < 1 || s > $e)
|
|
34281
34285
|
return [];
|
|
34282
34286
|
var b = xe, O = Qn(s, xe);
|
|
34283
34287
|
u = Ct(u), s -= xe;
|
|
@@ -34326,7 +34330,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34326
34330
|
function mI(s, u) {
|
|
34327
34331
|
return s && s.length ? ye(s, Ct(u, 2)) : 0;
|
|
34328
34332
|
}
|
|
34329
|
-
return z.after = B_, z.ary = Wb, z.assign = EA, z.assignIn = i0, z.assignInWith = xh, z.assignWith = kA, z.at = DA, z.before = zb, z.bind = Sg, z.bindAll = RR, z.bindKey = Yb, z.castArray = K_, z.chain = Vb, z.chunk = oO, z.compact = sO, z.concat = aO, z.cond = IR, z.conforms = MR, z.constant = Og, z.countBy = g_, z.create = PA, z.curry = Gb, z.curryRight = qb, z.debounce = Xb, z.defaults = OA, z.defaultsDeep = _A, z.defer = $_, z.delay = j_, z.difference = lO, z.differenceBy = uO, z.differenceWith = cO, z.drop = fO, z.dropRight = dO, z.dropRightWhile = hO, z.dropWhile = pO, z.fill = gO, z.filter = v_, z.flatMap = w_, z.flatMapDeep = x_, z.flatMapDepth = S_, z.flatten = Nb, z.flattenDeep = mO, z.flattenDepth = vO, z.flip = V_, z.flow = FR, z.flowRight = NR, z.fromPairs = yO, z.functions = NA, z.functionsIn = BA, z.groupBy = T_, z.initial = wO, z.intersection = xO, z.intersectionBy = SO, z.intersectionWith = TO, z.invert = jA, z.invertBy = VA, z.invokeMap = E_, z.iteratee = _g, z.keyBy = k_, z.keys = fi, z.keysIn = Mo, z.map = gh, z.mapKeys = UA, z.mapValues = WA, z.matches = BR, z.matchesProperty = $R, z.memoize = vh, z.merge = zA, z.mergeWith = o0, z.method = jR, z.methodOf = VR, z.mixin = Ag, z.negate = yh, z.nthArg = UR, z.omit = YA, z.omitBy = GA, z.once = H_, z.orderBy = D_, z.over = WR, z.overArgs = U_, z.overEvery = zR, z.overSome = YR, z.partial = Tg, z.partialRight = Kb, z.partition = P_, z.pick = qA, z.pickBy = s0, z.property = h0, z.propertyOf = GR, z.pull = DO, z.pullAll = $b, z.pullAllBy = PO, z.pullAllWith = OO, z.pullAt = _O, z.range = qR, z.rangeRight = XR, z.rearg = W_, z.reject = A_, z.remove = AO, z.rest = z_, z.reverse = wg, z.sampleSize = I_, z.set = KA, z.setWith = ZA, z.shuffle = M_, z.slice = RO, z.sortBy = N_, z.sortedUniq = $O, z.sortedUniqBy = jO, z.split = wR, z.spread = Y_, z.tail = VO, z.take = HO, z.takeRight = UO, z.takeRightWhile = WO, z.takeWhile = zO, z.tap = s_, z.throttle = G_, z.thru = ph, z.toArray = t0, z.toPairs = a0, z.toPairsIn = l0, z.toPath = eI, z.toPlainObject = r0, z.transform = JA, z.unary = q_, z.union = YO, z.unionBy = GO, z.unionWith = qO, z.uniq = XO, z.uniqBy = KO, z.uniqWith = ZO, z.unset = QA, z.unzip = xg, z.unzipWith = jb, z.update = eR, z.updateWith = tR, z.values = gf, z.valuesIn = nR, z.without = JO, z.words = f0, z.wrap = X_, z.xor = QO, z.xorBy = e_, z.xorWith = t_, z.zip = n_, z.zipObject = r_, z.zipObjectDeep = i_, z.zipWith = o_, z.entries = a0, z.entriesIn = l0, z.extend = i0, z.extendWith = xh, Ag(z, z), z.add = nI, z.attempt = d0, z.camelCase = sR, z.capitalize = u0, z.ceil = rI, z.clamp = rR, z.clone = Z_, z.cloneDeep = Q_, z.cloneDeepWith = eA, z.cloneWith = J_, z.conformsTo = tA, z.deburr = c0, z.defaultTo = LR, z.divide = iI, z.endsWith = aR, z.eq = aa, z.escape = lR, z.escapeRegExp = uR, z.every = m_, z.find = y_, z.findIndex = Lb, z.findKey = AA, z.findLast = b_, z.findLastIndex = Fb, z.findLastKey = RA, z.floor = oI, z.forEach = Hb, z.forEachRight = Ub, z.forIn = IA, z.forInRight = MA, z.forOwn = LA, z.forOwnRight = FA, z.get = kg, z.gt = nA, z.gte = rA, z.has = $A, z.hasIn = Dg, z.head = Bb, z.identity = Lo, z.includes = C_, z.indexOf = bO, z.inRange = iR, z.invoke = HA, z.isArguments = fc, z.isArray = Ut, z.isArrayBuffer = iA, z.isArrayLike = Io, z.isArrayLikeObject = wr, z.isBoolean = oA, z.isBuffer = su, z.isDate = sA, z.isElement = aA, z.isEmpty = lA, z.isEqual = uA, z.isEqualWith = cA, z.isError = Cg, z.isFinite = fA, z.isFunction = wl, z.isInteger = Zb, z.isLength = bh, z.isMap = Jb, z.isMatch = dA, z.isMatchWith = hA, z.isNaN = pA, z.isNative = gA, z.isNil = vA, z.isNull = mA, z.isNumber = Qb, z.isObject = er, z.isObjectLike = dr, z.isPlainObject = sd, z.isRegExp = Eg, z.isSafeInteger = yA, z.isSet = e0, z.isString = wh, z.isSymbol = Jo, z.isTypedArray = pf, z.isUndefined = bA, z.isWeakMap = wA, z.isWeakSet = xA, z.join = CO, z.kebabCase = cR, z.last = Ps, z.lastIndexOf = EO, z.lowerCase = fR, z.lowerFirst = dR, z.lt = SA, z.lte = TA, z.max = sI, z.maxBy = aI, z.mean = lI, z.meanBy = uI, z.min = cI, z.minBy = fI, z.stubArray = Ig, z.stubFalse = Mg, z.stubObject = KR, z.stubString = ZR, z.stubTrue = JR, z.multiply = dI, z.nth = kO, z.noConflict = HR, z.noop = Rg, z.now = mh, z.pad = hR, z.padEnd = pR, z.padStart = gR, z.parseInt = mR, z.random = oR, z.reduce = O_, z.reduceRight = __, z.repeat = vR, z.replace = yR, z.result = XA, z.round = hI, z.runInContext = K, z.sample = R_, z.size = L_, z.snakeCase = bR, z.some = F_, z.sortedIndex = IO, z.sortedIndexBy = MO, z.sortedIndexOf = LO, z.sortedLastIndex = FO, z.sortedLastIndexBy = NO, z.sortedLastIndexOf = BO, z.startCase = xR, z.startsWith = SR, z.subtract = pI, z.sum = gI, z.sumBy = mI, z.template = TR, z.times = QR, z.toFinite = xl, z.toInteger =
|
|
34333
|
+
return z.after = B_, z.ary = Wb, z.assign = EA, z.assignIn = i0, z.assignInWith = xh, z.assignWith = kA, z.at = DA, z.before = zb, z.bind = Sg, z.bindAll = RR, z.bindKey = Yb, z.castArray = K_, z.chain = Vb, z.chunk = oO, z.compact = sO, z.concat = aO, z.cond = IR, z.conforms = MR, z.constant = Og, z.countBy = g_, z.create = PA, z.curry = Gb, z.curryRight = qb, z.debounce = Xb, z.defaults = OA, z.defaultsDeep = _A, z.defer = $_, z.delay = j_, z.difference = lO, z.differenceBy = uO, z.differenceWith = cO, z.drop = fO, z.dropRight = dO, z.dropRightWhile = hO, z.dropWhile = pO, z.fill = gO, z.filter = v_, z.flatMap = w_, z.flatMapDeep = x_, z.flatMapDepth = S_, z.flatten = Nb, z.flattenDeep = mO, z.flattenDepth = vO, z.flip = V_, z.flow = FR, z.flowRight = NR, z.fromPairs = yO, z.functions = NA, z.functionsIn = BA, z.groupBy = T_, z.initial = wO, z.intersection = xO, z.intersectionBy = SO, z.intersectionWith = TO, z.invert = jA, z.invertBy = VA, z.invokeMap = E_, z.iteratee = _g, z.keyBy = k_, z.keys = fi, z.keysIn = Mo, z.map = gh, z.mapKeys = UA, z.mapValues = WA, z.matches = BR, z.matchesProperty = $R, z.memoize = vh, z.merge = zA, z.mergeWith = o0, z.method = jR, z.methodOf = VR, z.mixin = Ag, z.negate = yh, z.nthArg = UR, z.omit = YA, z.omitBy = GA, z.once = H_, z.orderBy = D_, z.over = WR, z.overArgs = U_, z.overEvery = zR, z.overSome = YR, z.partial = Tg, z.partialRight = Kb, z.partition = P_, z.pick = qA, z.pickBy = s0, z.property = h0, z.propertyOf = GR, z.pull = DO, z.pullAll = $b, z.pullAllBy = PO, z.pullAllWith = OO, z.pullAt = _O, z.range = qR, z.rangeRight = XR, z.rearg = W_, z.reject = A_, z.remove = AO, z.rest = z_, z.reverse = wg, z.sampleSize = I_, z.set = KA, z.setWith = ZA, z.shuffle = M_, z.slice = RO, z.sortBy = N_, z.sortedUniq = $O, z.sortedUniqBy = jO, z.split = wR, z.spread = Y_, z.tail = VO, z.take = HO, z.takeRight = UO, z.takeRightWhile = WO, z.takeWhile = zO, z.tap = s_, z.throttle = G_, z.thru = ph, z.toArray = t0, z.toPairs = a0, z.toPairsIn = l0, z.toPath = eI, z.toPlainObject = r0, z.transform = JA, z.unary = q_, z.union = YO, z.unionBy = GO, z.unionWith = qO, z.uniq = XO, z.uniqBy = KO, z.uniqWith = ZO, z.unset = QA, z.unzip = xg, z.unzipWith = jb, z.update = eR, z.updateWith = tR, z.values = gf, z.valuesIn = nR, z.without = JO, z.words = f0, z.wrap = X_, z.xor = QO, z.xorBy = e_, z.xorWith = t_, z.zip = n_, z.zipObject = r_, z.zipObjectDeep = i_, z.zipWith = o_, z.entries = a0, z.entriesIn = l0, z.extend = i0, z.extendWith = xh, Ag(z, z), z.add = nI, z.attempt = d0, z.camelCase = sR, z.capitalize = u0, z.ceil = rI, z.clamp = rR, z.clone = Z_, z.cloneDeep = Q_, z.cloneDeepWith = eA, z.cloneWith = J_, z.conformsTo = tA, z.deburr = c0, z.defaultTo = LR, z.divide = iI, z.endsWith = aR, z.eq = aa, z.escape = lR, z.escapeRegExp = uR, z.every = m_, z.find = y_, z.findIndex = Lb, z.findKey = AA, z.findLast = b_, z.findLastIndex = Fb, z.findLastKey = RA, z.floor = oI, z.forEach = Hb, z.forEachRight = Ub, z.forIn = IA, z.forInRight = MA, z.forOwn = LA, z.forOwnRight = FA, z.get = kg, z.gt = nA, z.gte = rA, z.has = $A, z.hasIn = Dg, z.head = Bb, z.identity = Lo, z.includes = C_, z.indexOf = bO, z.inRange = iR, z.invoke = HA, z.isArguments = fc, z.isArray = Ut, z.isArrayBuffer = iA, z.isArrayLike = Io, z.isArrayLikeObject = wr, z.isBoolean = oA, z.isBuffer = su, z.isDate = sA, z.isElement = aA, z.isEmpty = lA, z.isEqual = uA, z.isEqualWith = cA, z.isError = Cg, z.isFinite = fA, z.isFunction = wl, z.isInteger = Zb, z.isLength = bh, z.isMap = Jb, z.isMatch = dA, z.isMatchWith = hA, z.isNaN = pA, z.isNative = gA, z.isNil = vA, z.isNull = mA, z.isNumber = Qb, z.isObject = er, z.isObjectLike = dr, z.isPlainObject = sd, z.isRegExp = Eg, z.isSafeInteger = yA, z.isSet = e0, z.isString = wh, z.isSymbol = Jo, z.isTypedArray = pf, z.isUndefined = bA, z.isWeakMap = wA, z.isWeakSet = xA, z.join = CO, z.kebabCase = cR, z.last = Ps, z.lastIndexOf = EO, z.lowerCase = fR, z.lowerFirst = dR, z.lt = SA, z.lte = TA, z.max = sI, z.maxBy = aI, z.mean = lI, z.meanBy = uI, z.min = cI, z.minBy = fI, z.stubArray = Ig, z.stubFalse = Mg, z.stubObject = KR, z.stubString = ZR, z.stubTrue = JR, z.multiply = dI, z.nth = kO, z.noConflict = HR, z.noop = Rg, z.now = mh, z.pad = hR, z.padEnd = pR, z.padStart = gR, z.parseInt = mR, z.random = oR, z.reduce = O_, z.reduceRight = __, z.repeat = vR, z.replace = yR, z.result = XA, z.round = hI, z.runInContext = K, z.sample = R_, z.size = L_, z.snakeCase = bR, z.some = F_, z.sortedIndex = IO, z.sortedIndexBy = MO, z.sortedIndexOf = LO, z.sortedLastIndex = FO, z.sortedLastIndexBy = NO, z.sortedLastIndexOf = BO, z.startCase = xR, z.startsWith = SR, z.subtract = pI, z.sum = gI, z.sumBy = mI, z.template = TR, z.times = QR, z.toFinite = xl, z.toInteger = Gt, z.toLength = n0, z.toLower = CR, z.toNumber = Os, z.toSafeInteger = CA, z.toString = bn, z.toUpper = ER, z.trim = kR, z.trimEnd = DR, z.trimStart = PR, z.truncate = OR, z.unescape = _R, z.uniqueId = tI, z.upperCase = AR, z.upperFirst = Pg, z.each = Hb, z.eachRight = Ub, z.first = Bb, Ag(z, function() {
|
|
34330
34334
|
var s = {};
|
|
34331
34335
|
return _i(z, function(u, b) {
|
|
34332
34336
|
kt.call(z.prototype, b) || (s[b] = u);
|
|
@@ -34335,7 +34339,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34335
34339
|
z[s].placeholder = z;
|
|
34336
34340
|
}), ee(["drop", "take"], function(s, u) {
|
|
34337
34341
|
Vt.prototype[s] = function(b) {
|
|
34338
|
-
b = b === n ? 1 : Cn(
|
|
34342
|
+
b = b === n ? 1 : Cn(Gt(b), 0);
|
|
34339
34343
|
var O = this.__filtered__ && !u ? new Vt(this) : this.clone();
|
|
34340
34344
|
return O.__filtered__ ? O.__takeCount__ = Qn(b, O.__takeCount__) : O.__views__.push({
|
|
34341
34345
|
size: Qn(b, xe),
|
|
@@ -34376,9 +34380,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34376
34380
|
}), Vt.prototype.reject = function(s) {
|
|
34377
34381
|
return this.filter(yh(Ct(s)));
|
|
34378
34382
|
}, Vt.prototype.slice = function(s, u) {
|
|
34379
|
-
s =
|
|
34383
|
+
s = Gt(s);
|
|
34380
34384
|
var b = this;
|
|
34381
|
-
return b.__filtered__ && (s > 0 || u < 0) ? new Vt(b) : (s < 0 ? b = b.takeRight(-s) : s && (b = b.drop(s)), u !== n && (u =
|
|
34385
|
+
return b.__filtered__ && (s > 0 || u < 0) ? new Vt(b) : (s < 0 ? b = b.takeRight(-s) : s && (b = b.drop(s)), u !== n && (u = Gt(u), b = u < 0 ? b.dropRight(-u) : b.take(u - s)), b);
|
|
34382
34386
|
}, Vt.prototype.takeRightWhile = function(s) {
|
|
34383
34387
|
return this.reverse().takeWhile(s).reverse();
|
|
34384
34388
|
}, Vt.prototype.toArray = function() {
|
package/dist/share/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-Bx66LwxI.cjs"),h=require("axios"),c=require("react"),l=require("react-router-dom"),u=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("@mui/material");const m=n=>{const[s,r]=c.useState([]);return c.useEffect(()=>{h.get(`${n}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(o=>r(o.data)).catch(o=>{console.error("Getting user permission error:",o)})},[n]),s},f=n=>{const s=l.useNavigate(),r=l.useLocation();console.log(" useSyncRouter.tsx ~ location1:",r,window.location.pathname);const o=(t=r)=>(n||"")+t.pathname+t.search+t.hash;if(c.useEffect(()=>{const t={changeRoute:i=>{const a=o();if(typeof i=="string"&&a!==i){console.log(" useSyncRouter.tsx ~ location2:",a,i);const g=n&&i.startsWith(n)?i.substring(n.length):i;s(g)}}};window.MicrofeBridge=t},[s,r]),c.useEffect(()=>{var i,a;const t=o();console.log("fullPath1",window.location.pathname,t),(a=(i=window.parent)==null?void 0:i.HostBridge)==null||a.childRouteChange(t)},[r]),window.self===window.top){console.log("useSyncRouter: Navigate to /app path"),window.location.href=window.location.href.replace(window.origin,`${window.origin}/app`);return}};function w({open:n,disabled:s}){c.useMemo(()=>{var r,o,t,i;s||(n?(o=(r=window.top)==null?void 0:r.HostBridge)==null||o.openBackdrop(!0):(i=(t=window.top)==null?void 0:t.HostBridge)==null||i.openBackdrop(!1))},[n,s])}const d=n=>(s,r)=>{const o=m(n);return r?s.every(t=>o==null?void 0:o.includes(t)):s.some(t=>o==null?void 0:o.includes(t))},P=({baseUrl:n,accessWith:s,requireAll:r,children:o})=>d(n)(s,r)?u.jsx(u.Fragment,{children:o}):null,p=({accessWith:n,requireAll:s,baseUrl:r,unAuthorizedPath:o,children:t})=>d(r)(n,s)?u.jsx(u.Fragment,{children:t}):u.jsx(l.Navigate,{to:o,replace:!0});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.setShellBackdrop=e.setShellBackdrop;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation$1;exports.HasPermission=P;exports.PermissionRoute=p;exports.getUseHasPermission=d;exports.useGetPermission=m;exports.useSyncBackdrop=w;exports.useSyncRouter=f;
|
package/dist/share/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as F, R as M, T as G, a2 as N, $, a as I, c as O, a0 as j, W as z, U as L, V as U, X as V, v as W, a1 as X, s as Y, E as Z, Y as _, e as q, u as D, i as J, Z as K } from "../index.esm2017-
|
|
1
|
+
import { O as F, R as M, T as G, a2 as N, $, a as I, c as O, a0 as j, W as z, U as L, V as U, X as V, v as W, a1 as X, s as Y, E as Z, Y as _, e as q, u as D, i as J, Z as K } from "../index.esm2017-DVyzcks1.js";
|
|
2
2
|
import d from "axios";
|
|
3
3
|
import { useState as g, useEffect as i, useMemo as h } from "react";
|
|
4
4
|
import { useNavigate as f, useLocation as w, Navigate as p } from "react-router-dom";
|