@ukpc-lib/react 0.13.1-dev.17 → 0.13.1-dev.18
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 +2406 -2438
- package/dist/{index.esm2017-Bgt11KSh.cjs → index.esm2017-D-YZAHag.cjs} +1 -1
- package/dist/{index.esm2017-BznyJPLs.js → index.esm2017-NKtsqBrB.js} +71 -69
- 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-DPyhj6Ng.js} +10704 -10647
|
@@ -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)
|
|
@@ -4445,7 +4447,7 @@ 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 }),
|
|
@@ -4533,7 +4535,7 @@ const NT = ir({}), YY = () => Qt(NT), GY = di, Eh = yT, qY = () => rL(), XY = ({
|
|
|
4533
4535
|
] }) });
|
|
4534
4536
|
}
|
|
4535
4537
|
), DL = ir({}), ZY = ({ children: t }) => {
|
|
4536
|
-
const [e, n] =
|
|
4538
|
+
const [e, n] = qt(!1), [r, i] = qt({
|
|
4537
4539
|
all: { total: 0 },
|
|
4538
4540
|
unread: { total: 0 }
|
|
4539
4541
|
}), o = () => {
|
|
@@ -5385,7 +5387,7 @@ function W2(t) {
|
|
|
5385
5387
|
}, isToastActive: JT, count: i == null ? void 0 : i.length };
|
|
5386
5388
|
}
|
|
5387
5389
|
function z2(t) {
|
|
5388
|
-
const [e, n] =
|
|
5390
|
+
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
5391
|
var T, E;
|
|
5390
5392
|
function R() {
|
|
5391
5393
|
n(!0);
|
|
@@ -5538,7 +5540,7 @@ Bp($p("flip"));
|
|
|
5538
5540
|
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
5541
|
function e7(t) {
|
|
5540
5542
|
let e = { ...J2, ...t };
|
|
5541
|
-
const n = t.stacked, [r, i] =
|
|
5543
|
+
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
5544
|
function E(I) {
|
|
5543
5545
|
const B = gu("Toastify__toast-container", `Toastify__toast-container--${I}`, { "Toastify__toast-container--rtl": g });
|
|
5544
5546
|
return is(p) ? p({ position: I, rtl: g, defaultClassName: B }) : gu(B, Yh(p));
|
|
@@ -11307,7 +11309,7 @@ function cV({ debounce: t, scroll: e, polyfill: n, offsetSize: r } = { debounce:
|
|
|
11307
11309
|
} : window.ResizeObserver);
|
|
11308
11310
|
if (!i)
|
|
11309
11311
|
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] =
|
|
11312
|
+
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
11313
|
Mt(() => (w.current = !0, () => void (w.current = !1)));
|
|
11312
11314
|
const [g, T, E] = Nn(() => {
|
|
11313
11315
|
const _ = () => {
|
|
@@ -12501,7 +12503,7 @@ var N3 = function t(e, n) {
|
|
|
12501
12503
|
};
|
|
12502
12504
|
const B3 = /* @__PURE__ */ Bc(N3), Ic = typeof window < "u" ? Ga : Mt;
|
|
12503
12505
|
function ek(t, e, n) {
|
|
12504
|
-
const [r, i] =
|
|
12506
|
+
const [r, i] = qt(
|
|
12505
12507
|
() => e(t)
|
|
12506
12508
|
), o = Ip(() => {
|
|
12507
12509
|
const a = e(t);
|
|
@@ -13555,7 +13557,7 @@ function kH(t) {
|
|
|
13555
13557
|
var e = t.isVisible, n = t.ease, r = n === void 0 ? "easeIn" : n, i = t.duration, o = t.variants, a = o === void 0 ? {
|
|
13556
13558
|
open: { opacity: 1, height: "auto" },
|
|
13557
13559
|
close: { opacity: 0, height: 0 }
|
|
13558
|
-
} : o, c = t.children, f = cV({ polyfill: NF }), p = f[0], w = f[1].height, g =
|
|
13560
|
+
} : 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
13561
|
H(!1), e || E(!1);
|
|
13560
13562
|
};
|
|
13561
13563
|
Mt(function() {
|
|
@@ -13581,7 +13583,7 @@ function DH(t, e) {
|
|
|
13581
13583
|
var ck = ir({}), PH = {
|
|
13582
13584
|
isLock: !1
|
|
13583
13585
|
}, OH = function(t) {
|
|
13584
|
-
var e =
|
|
13586
|
+
var e = qt(PH.isLock), n = e[0], r = e[1];
|
|
13585
13587
|
return ut.createElement(ck.Provider, { value: {
|
|
13586
13588
|
isLock: n,
|
|
13587
13589
|
lock: function() {
|
|
@@ -13595,7 +13597,7 @@ var ck = ir({}), PH = {
|
|
|
13595
13597
|
dropTargetId: void 0,
|
|
13596
13598
|
index: void 0
|
|
13597
13599
|
}, _H = function(t) {
|
|
13598
|
-
var e =
|
|
13600
|
+
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
13601
|
r(p), a(w);
|
|
13600
13602
|
}, f = function() {
|
|
13601
13603
|
r(Fh.dropTargetId), a(Fh.index);
|
|
@@ -13987,7 +13989,7 @@ var ck = ir({}), PH = {
|
|
|
13987
13989
|
}).map(function(g) {
|
|
13988
13990
|
return g.id;
|
|
13989
13991
|
}) : Array.isArray(e) ? e : [];
|
|
13990
|
-
}, [e]), r =
|
|
13992
|
+
}, [e]), r = qt(n), i = r[0], o = r[1];
|
|
13991
13993
|
Mt(function() {
|
|
13992
13994
|
return o(n);
|
|
13993
13995
|
}, [n]);
|
|
@@ -18377,7 +18379,7 @@ function d4(t) {
|
|
|
18377
18379
|
);
|
|
18378
18380
|
}
|
|
18379
18381
|
function h4(t) {
|
|
18380
|
-
const { renderChildren: e, parentRef: n, onlyChild: r } = t, [i, o] =
|
|
18382
|
+
const { renderChildren: e, parentRef: n, onlyChild: r } = t, [i, o] = qt({ top: 0, left: 0 }), a = ln(null), [c, f] = qt("auto");
|
|
18381
18383
|
return Ga(() => {
|
|
18382
18384
|
if (n.current && a.current) {
|
|
18383
18385
|
const p = n.current.getBoundingClientRect(), w = a.current.getBoundingClientRect();
|
|
@@ -19515,7 +19517,7 @@ function j4(t) {
|
|
|
19515
19517
|
);
|
|
19516
19518
|
}
|
|
19517
19519
|
function V4(t) {
|
|
19518
|
-
const { renderChildren: e, parentRef: n, onlyChild: r, dropdownLevel: i } = t, [o, a] =
|
|
19520
|
+
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
19521
|
return Ga(() => {
|
|
19520
19522
|
if (n.current && c.current) {
|
|
19521
19523
|
const w = n.current.getBoundingClientRect(), g = c.current.getBoundingClientRect();
|
|
@@ -19615,7 +19617,7 @@ function U4({ item: t }) {
|
|
|
19615
19617
|
}
|
|
19616
19618
|
function YD({ ...t }) {
|
|
19617
19619
|
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] =
|
|
19620
|
+
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
19621
|
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
19622
|
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
19623
|
t.isDrop || c(!0);
|
|
@@ -29742,7 +29744,7 @@ function a6(t) {
|
|
|
29742
29744
|
var e = Mp(function(n, r) {
|
|
29743
29745
|
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
29746
|
i && (i.current = o.current);
|
|
29745
|
-
}, [i]), o), _ =
|
|
29747
|
+
}, [i]), o), _ = qt(null), W = i6(_, 2), H = W[0], te = W[1], q = "node_".concat(c).concat(p);
|
|
29746
29748
|
return Ga(function() {
|
|
29747
29749
|
if (B.current)
|
|
29748
29750
|
try {
|
|
@@ -29844,9 +29846,9 @@ function h6(t) {
|
|
|
29844
29846
|
}
|
|
29845
29847
|
const _m = "MENU_ITEM";
|
|
29846
29848
|
function p6(t) {
|
|
29847
|
-
const e = aT(), [n, r] =
|
|
29849
|
+
const e = aT(), [n, r] = qt([]), [i, o] = qt([]), [a, c] = qt(!1);
|
|
29848
29850
|
console.log("isSubmit", a);
|
|
29849
|
-
const f = ln(null), [p, w] =
|
|
29851
|
+
const f = ln(null), [p, w] = qt(window.location.href);
|
|
29850
29852
|
Mt(() => {
|
|
29851
29853
|
w(window.location.href);
|
|
29852
29854
|
}, [e]);
|
|
@@ -29871,7 +29873,7 @@ function p6(t) {
|
|
|
29871
29873
|
console.log("Favorite menus changed", q);
|
|
29872
29874
|
const re = q.detail.favoriteMenus || [];
|
|
29873
29875
|
r(re);
|
|
29874
|
-
}, [I, B] =
|
|
29876
|
+
}, [I, B] = qt(!1);
|
|
29875
29877
|
Mt(() => {
|
|
29876
29878
|
const q = (re) => {
|
|
29877
29879
|
B(re.detail.isLoading);
|
|
@@ -30017,7 +30019,7 @@ function p6(t) {
|
|
|
30017
30019
|
) }) : "" });
|
|
30018
30020
|
}
|
|
30019
30021
|
function g6(t = 32) {
|
|
30020
|
-
const [e, n] =
|
|
30022
|
+
const [e, n] = qt(!0), [r, i] = qt(0), o = () => {
|
|
30021
30023
|
const a = window.scrollY;
|
|
30022
30024
|
a > r && a > t ? n(!1) : a < r && n(!0), i(a);
|
|
30023
30025
|
};
|
|
@@ -30050,7 +30052,7 @@ function QD(t, e) {
|
|
|
30050
30052
|
}
|
|
30051
30053
|
function eP({ ...t }) {
|
|
30052
30054
|
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] =
|
|
30055
|
+
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
30056
|
Mt(() => {
|
|
30055
30057
|
B(!!t.item.isFavorite);
|
|
30056
30058
|
}, [t.item.isFavorite]);
|
|
@@ -30304,7 +30306,7 @@ const x6 = ".flex-col-center{display:flex;flex-direction:column;justify-content:
|
|
|
30304
30306
|
}
|
|
30305
30307
|
);
|
|
30306
30308
|
}, T6 = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", C6 = (t) => {
|
|
30307
|
-
const [e, n] =
|
|
30309
|
+
const [e, n] = qt(() => {
|
|
30308
30310
|
const r = localStorage.getItem("openingMenuIds");
|
|
30309
30311
|
return r && r !== "[]" ? JSON.parse(r) : (t == null ? void 0 : t.initOpenIds) || [];
|
|
30310
30312
|
});
|
|
@@ -30327,9 +30329,9 @@ function E6(t) {
|
|
|
30327
30329
|
window.dispatchEvent(e);
|
|
30328
30330
|
}
|
|
30329
30331
|
function k6(t) {
|
|
30330
|
-
const e = aT(), [n, r] =
|
|
30332
|
+
const e = aT(), [n, r] = qt([]), i = n.map((ke) => ke.data), [o, a] = qt(!1), [c, f] = qt([]), [p, w] = qt(
|
|
30331
30333
|
ip === null ? !0 : ip === "true"
|
|
30332
|
-
), [g, T] =
|
|
30334
|
+
), [g, T] = qt(window.location.href), E = ln(null);
|
|
30333
30335
|
Mt(() => {
|
|
30334
30336
|
var ke;
|
|
30335
30337
|
(ke = t.handleCallback) == null || ke.call(t, i);
|
|
@@ -30346,7 +30348,7 @@ function k6(t) {
|
|
|
30346
30348
|
const ce = n.filter((ge) => ge.parent === 0).map((ge) => ge.id);
|
|
30347
30349
|
console.log("closeIds:", ce), (Re = E.current) == null || Re.close(ce);
|
|
30348
30350
|
}
|
|
30349
|
-
}, [W, H] =
|
|
30351
|
+
}, [W, H] = qt(!1), te = p ? "collapsed" : "expanded", q = (ke) => `${ke} ${te}`, re = ln(null);
|
|
30350
30352
|
Ga(() => {
|
|
30351
30353
|
(async () => {
|
|
30352
30354
|
var Re, ce;
|
|
@@ -30371,7 +30373,7 @@ function k6(t) {
|
|
|
30371
30373
|
}
|
|
30372
30374
|
})();
|
|
30373
30375
|
}, [t.baseUrl, t.menuPath, t.replacePath]);
|
|
30374
|
-
const [x, ae] =
|
|
30376
|
+
const [x, ae] = qt(!1), se = async () => {
|
|
30375
30377
|
ae(!0), window.dispatchEvent(
|
|
30376
30378
|
new CustomEvent("favoriteLoadingChange", { detail: { isLoading: !0 } })
|
|
30377
30379
|
);
|
|
@@ -31713,7 +31715,7 @@ _p.exports;
|
|
|
31713
31715
|
}
|
|
31714
31716
|
function td(s, u, b, O) {
|
|
31715
31717
|
var j = s.length;
|
|
31716
|
-
for (b =
|
|
31718
|
+
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
31719
|
s[b++] = u;
|
|
31718
31720
|
return s;
|
|
31719
31721
|
}
|
|
@@ -32520,7 +32522,7 @@ _p.exports;
|
|
|
32520
32522
|
function ao(s) {
|
|
32521
32523
|
var u = at[s];
|
|
32522
32524
|
return function(b, O) {
|
|
32523
|
-
if (b = Os(b), O = O == null ? 0 : Qn(
|
|
32525
|
+
if (b = Os(b), O = O == null ? 0 : Qn(Gt(O), 292), O && Ca(b)) {
|
|
32524
32526
|
var j = (bn(b) + "e").split("e"), X = u(j[0] + "e" + (+j[1] + O));
|
|
32525
32527
|
return j = (bn(X) + "e").split("e"), +(j[0] + "e" + (+j[1] - O));
|
|
32526
32528
|
}
|
|
@@ -32541,7 +32543,7 @@ _p.exports;
|
|
|
32541
32543
|
if (!ve && typeof s != "function")
|
|
32542
32544
|
throw new Ht(a);
|
|
32543
32545
|
var Ve = O ? O.length : 0;
|
|
32544
|
-
if (Ve || (u &= -97, O = j = n), ie = ie === n ? ie : Cn(
|
|
32546
|
+
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
32547
|
var He = O, qe = j;
|
|
32546
32548
|
O = j = n;
|
|
32547
32549
|
}
|
|
@@ -32999,7 +33001,7 @@ _p.exports;
|
|
|
32999
33001
|
return u.__actions__ = Jr(s.__actions__), u.__index__ = s.__index__, u.__values__ = s.__values__, u;
|
|
33000
33002
|
}
|
|
33001
33003
|
function oO(s, u, b) {
|
|
33002
|
-
(b ? lo(s, u, b) : u === n) ? u = 1 : u = Cn(
|
|
33004
|
+
(b ? lo(s, u, b) : u === n) ? u = 1 : u = Cn(Gt(u), 0);
|
|
33003
33005
|
var O = s == null ? 0 : s.length;
|
|
33004
33006
|
if (!O || u < 1)
|
|
33005
33007
|
return [];
|
|
@@ -33033,11 +33035,11 @@ _p.exports;
|
|
|
33033
33035
|
});
|
|
33034
33036
|
function fO(s, u, b) {
|
|
33035
33037
|
var O = s == null ? 0 : s.length;
|
|
33036
|
-
return O ? (u = b || u === n ? 1 :
|
|
33038
|
+
return O ? (u = b || u === n ? 1 : Gt(u), ci(s, u < 0 ? 0 : u, O)) : [];
|
|
33037
33039
|
}
|
|
33038
33040
|
function dO(s, u, b) {
|
|
33039
33041
|
var O = s == null ? 0 : s.length;
|
|
33040
|
-
return O ? (u = b || u === n ? 1 :
|
|
33042
|
+
return O ? (u = b || u === n ? 1 : Gt(u), u = O - u, ci(s, 0, u < 0 ? 0 : u)) : [];
|
|
33041
33043
|
}
|
|
33042
33044
|
function hO(s, u) {
|
|
33043
33045
|
return s && s.length ? ia(s, Ct(u, 3), !0, !0) : [];
|
|
@@ -33053,7 +33055,7 @@ _p.exports;
|
|
|
33053
33055
|
var O = s == null ? 0 : s.length;
|
|
33054
33056
|
if (!O)
|
|
33055
33057
|
return -1;
|
|
33056
|
-
var j = b == null ? 0 :
|
|
33058
|
+
var j = b == null ? 0 : Gt(b);
|
|
33057
33059
|
return j < 0 && (j = Cn(O + j, 0)), $t(s, Ct(u, 3), j);
|
|
33058
33060
|
}
|
|
33059
33061
|
function Fb(s, u, b) {
|
|
@@ -33061,7 +33063,7 @@ _p.exports;
|
|
|
33061
33063
|
if (!O)
|
|
33062
33064
|
return -1;
|
|
33063
33065
|
var j = O - 1;
|
|
33064
|
-
return b !== n && (j =
|
|
33066
|
+
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
33067
|
}
|
|
33066
33068
|
function Nb(s) {
|
|
33067
33069
|
var u = s == null ? 0 : s.length;
|
|
@@ -33073,7 +33075,7 @@ _p.exports;
|
|
|
33073
33075
|
}
|
|
33074
33076
|
function vO(s, u) {
|
|
33075
33077
|
var b = s == null ? 0 : s.length;
|
|
33076
|
-
return b ? (u = u === n ? 1 :
|
|
33078
|
+
return b ? (u = u === n ? 1 : Gt(u), yr(s, u)) : [];
|
|
33077
33079
|
}
|
|
33078
33080
|
function yO(s) {
|
|
33079
33081
|
for (var u = -1, b = s == null ? 0 : s.length, O = {}; ++u < b; ) {
|
|
@@ -33089,7 +33091,7 @@ _p.exports;
|
|
|
33089
33091
|
var O = s == null ? 0 : s.length;
|
|
33090
33092
|
if (!O)
|
|
33091
33093
|
return -1;
|
|
33092
|
-
var j = b == null ? 0 :
|
|
33094
|
+
var j = b == null ? 0 : Gt(b);
|
|
33093
33095
|
return j < 0 && (j = Cn(O + j, 0)), nn(s, u, j);
|
|
33094
33096
|
}
|
|
33095
33097
|
function wO(s) {
|
|
@@ -33118,10 +33120,10 @@ _p.exports;
|
|
|
33118
33120
|
if (!O)
|
|
33119
33121
|
return -1;
|
|
33120
33122
|
var j = O;
|
|
33121
|
-
return b !== n && (j =
|
|
33123
|
+
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
33124
|
}
|
|
33123
33125
|
function kO(s, u) {
|
|
33124
|
-
return s && s.length ? Ma(s,
|
|
33126
|
+
return s && s.length ? Ma(s, Gt(u)) : n;
|
|
33125
33127
|
}
|
|
33126
33128
|
var DO = jt($b);
|
|
33127
33129
|
function $b(s, u) {
|
|
@@ -33155,7 +33157,7 @@ _p.exports;
|
|
|
33155
33157
|
}
|
|
33156
33158
|
function RO(s, u, b) {
|
|
33157
33159
|
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 :
|
|
33160
|
+
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
33161
|
}
|
|
33160
33162
|
function IO(s, u) {
|
|
33161
33163
|
return tu(s, u);
|
|
@@ -33198,11 +33200,11 @@ _p.exports;
|
|
|
33198
33200
|
return u ? ci(s, 1, u) : [];
|
|
33199
33201
|
}
|
|
33200
33202
|
function HO(s, u, b) {
|
|
33201
|
-
return s && s.length ? (u = b || u === n ? 1 :
|
|
33203
|
+
return s && s.length ? (u = b || u === n ? 1 : Gt(u), ci(s, 0, u < 0 ? 0 : u)) : [];
|
|
33202
33204
|
}
|
|
33203
33205
|
function UO(s, u, b) {
|
|
33204
33206
|
var O = s == null ? 0 : s.length;
|
|
33205
|
-
return O ? (u = b || u === n ? 1 :
|
|
33207
|
+
return O ? (u = b || u === n ? 1 : Gt(u), u = O - u, ci(s, u < 0 ? 0 : u, O)) : [];
|
|
33206
33208
|
}
|
|
33207
33209
|
function WO(s, u) {
|
|
33208
33210
|
return s && s.length ? ia(s, Ct(u, 3), !1, !0) : [];
|
|
@@ -33347,7 +33349,7 @@ _p.exports;
|
|
|
33347
33349
|
return yr(gh(s, u), De);
|
|
33348
33350
|
}
|
|
33349
33351
|
function S_(s, u, b) {
|
|
33350
|
-
return b = b === n ? 1 :
|
|
33352
|
+
return b = b === n ? 1 : Gt(b), yr(gh(s, u), b);
|
|
33351
33353
|
}
|
|
33352
33354
|
function Hb(s, u) {
|
|
33353
33355
|
var b = Ut(s) ? ee : xs;
|
|
@@ -33361,7 +33363,7 @@ _p.exports;
|
|
|
33361
33363
|
kt.call(s, b) ? s[b].push(u) : Oi(s, b, [u]);
|
|
33362
33364
|
});
|
|
33363
33365
|
function C_(s, u, b, O) {
|
|
33364
|
-
s = Io(s) ? s : gf(s), b = b && !O ?
|
|
33366
|
+
s = Io(s) ? s : gf(s), b = b && !O ? Gt(b) : 0;
|
|
33365
33367
|
var j = s.length;
|
|
33366
33368
|
return b < 0 && (b = Cn(j + b, 0)), wh(s) ? b <= j && s.indexOf(u, b) > -1 : !!j && nn(s, u, b) > -1;
|
|
33367
33369
|
}
|
|
@@ -33402,7 +33404,7 @@ _p.exports;
|
|
|
33402
33404
|
return u(s);
|
|
33403
33405
|
}
|
|
33404
33406
|
function I_(s, u, b) {
|
|
33405
|
-
(b ? lo(s, u, b) : u === n) ? u = 1 : u =
|
|
33407
|
+
(b ? lo(s, u, b) : u === n) ? u = 1 : u = Gt(u);
|
|
33406
33408
|
var O = Ut(s) ? Pi : rc;
|
|
33407
33409
|
return O(s, u);
|
|
33408
33410
|
}
|
|
@@ -33433,7 +33435,7 @@ _p.exports;
|
|
|
33433
33435
|
function B_(s, u) {
|
|
33434
33436
|
if (typeof u != "function")
|
|
33435
33437
|
throw new Ht(a);
|
|
33436
|
-
return s =
|
|
33438
|
+
return s = Gt(s), function() {
|
|
33437
33439
|
if (--s < 1)
|
|
33438
33440
|
return u.apply(this, arguments);
|
|
33439
33441
|
};
|
|
@@ -33445,7 +33447,7 @@ _p.exports;
|
|
|
33445
33447
|
var b;
|
|
33446
33448
|
if (typeof u != "function")
|
|
33447
33449
|
throw new Ht(a);
|
|
33448
|
-
return s =
|
|
33450
|
+
return s = Gt(s), function() {
|
|
33449
33451
|
return --s > 0 && (b = u.apply(this, arguments)), s <= 1 && (u = n), b;
|
|
33450
33452
|
};
|
|
33451
33453
|
}
|
|
@@ -33583,12 +33585,12 @@ _p.exports;
|
|
|
33583
33585
|
function z_(s, u) {
|
|
33584
33586
|
if (typeof s != "function")
|
|
33585
33587
|
throw new Ht(a);
|
|
33586
|
-
return u = u === n ? u :
|
|
33588
|
+
return u = u === n ? u : Gt(u), jt(s, u);
|
|
33587
33589
|
}
|
|
33588
33590
|
function Y_(s, u) {
|
|
33589
33591
|
if (typeof s != "function")
|
|
33590
33592
|
throw new Ht(a);
|
|
33591
|
-
return u = u == null ? 0 : Cn(
|
|
33593
|
+
return u = u == null ? 0 : Cn(Gt(u), 0), jt(function(b) {
|
|
33592
33594
|
var O = b[u], j = Es(b, 0, u);
|
|
33593
33595
|
return O && Tt(j, O), V(s, this, j);
|
|
33594
33596
|
});
|
|
@@ -33692,7 +33694,7 @@ _p.exports;
|
|
|
33692
33694
|
return u == Ze || u == Rt || u == it || u == Gi;
|
|
33693
33695
|
}
|
|
33694
33696
|
function Zb(s) {
|
|
33695
|
-
return typeof s == "number" && s ==
|
|
33697
|
+
return typeof s == "number" && s == Gt(s);
|
|
33696
33698
|
}
|
|
33697
33699
|
function bh(s) {
|
|
33698
33700
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= $e;
|
|
@@ -33780,12 +33782,12 @@ _p.exports;
|
|
|
33780
33782
|
}
|
|
33781
33783
|
return s === s ? s : 0;
|
|
33782
33784
|
}
|
|
33783
|
-
function
|
|
33785
|
+
function Gt(s) {
|
|
33784
33786
|
var u = xl(s), b = u % 1;
|
|
33785
33787
|
return u === u ? b ? u - b : u : 0;
|
|
33786
33788
|
}
|
|
33787
33789
|
function n0(s) {
|
|
33788
|
-
return s ? Zs(
|
|
33790
|
+
return s ? Zs(Gt(s), 0, xe) : 0;
|
|
33789
33791
|
}
|
|
33790
33792
|
function Os(s) {
|
|
33791
33793
|
if (typeof s == "number")
|
|
@@ -33806,7 +33808,7 @@ _p.exports;
|
|
|
33806
33808
|
return $i(s, Mo(s));
|
|
33807
33809
|
}
|
|
33808
33810
|
function CA(s) {
|
|
33809
|
-
return s ? Zs(
|
|
33811
|
+
return s ? Zs(Gt(s), -9007199254740991, $e) : s === 0 ? s : 0;
|
|
33810
33812
|
}
|
|
33811
33813
|
function bn(s) {
|
|
33812
33814
|
return s == null ? "" : Kr(s);
|
|
@@ -34000,7 +34002,7 @@ _p.exports;
|
|
|
34000
34002
|
function aR(s, u, b) {
|
|
34001
34003
|
s = bn(s), u = Kr(u);
|
|
34002
34004
|
var O = s.length;
|
|
34003
|
-
b = b === n ? O : Zs(
|
|
34005
|
+
b = b === n ? O : Zs(Gt(b), 0, O);
|
|
34004
34006
|
var j = b;
|
|
34005
34007
|
return b -= u.length, b >= 0 && s.slice(b, j) == u;
|
|
34006
34008
|
}
|
|
@@ -34016,7 +34018,7 @@ _p.exports;
|
|
|
34016
34018
|
return s + (b ? " " : "") + u.toLowerCase();
|
|
34017
34019
|
}), dR = m("toLowerCase");
|
|
34018
34020
|
function hR(s, u, b) {
|
|
34019
|
-
s = bn(s), u =
|
|
34021
|
+
s = bn(s), u = Gt(u);
|
|
34020
34022
|
var O = u ? Co(s) : 0;
|
|
34021
34023
|
if (!u || O >= u)
|
|
34022
34024
|
return s;
|
|
@@ -34024,12 +34026,12 @@ _p.exports;
|
|
|
34024
34026
|
return xt(Ys(j), b) + s + xt(Sa(j), b);
|
|
34025
34027
|
}
|
|
34026
34028
|
function pR(s, u, b) {
|
|
34027
|
-
s = bn(s), u =
|
|
34029
|
+
s = bn(s), u = Gt(u);
|
|
34028
34030
|
var O = u ? Co(s) : 0;
|
|
34029
34031
|
return u && O < u ? s + xt(u - O, b) : s;
|
|
34030
34032
|
}
|
|
34031
34033
|
function gR(s, u, b) {
|
|
34032
|
-
s = bn(s), u =
|
|
34034
|
+
s = bn(s), u = Gt(u);
|
|
34033
34035
|
var O = u ? Co(s) : 0;
|
|
34034
34036
|
return u && O < u ? xt(u - O, b) + s : s;
|
|
34035
34037
|
}
|
|
@@ -34037,7 +34039,7 @@ _p.exports;
|
|
|
34037
34039
|
return b || u == null ? u = 0 : u && (u = +u), $u(bn(s).replace(fn, ""), u || 0);
|
|
34038
34040
|
}
|
|
34039
34041
|
function vR(s, u, b) {
|
|
34040
|
-
return (b ? lo(s, u, b) : u === n) ? u = 1 : u =
|
|
34042
|
+
return (b ? lo(s, u, b) : u === n) ? u = 1 : u = Gt(u), Ql(bn(s), u);
|
|
34041
34043
|
}
|
|
34042
34044
|
function yR() {
|
|
34043
34045
|
var s = arguments, u = bn(s[0]);
|
|
@@ -34053,7 +34055,7 @@ _p.exports;
|
|
|
34053
34055
|
return s + (b ? " " : "") + Pg(u);
|
|
34054
34056
|
});
|
|
34055
34057
|
function SR(s, u, b) {
|
|
34056
|
-
return s = bn(s), b = b == null ? 0 : Zs(
|
|
34058
|
+
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
34059
|
}
|
|
34058
34060
|
function TR(s, u, b) {
|
|
34059
34061
|
var O = z.templateSettings;
|
|
@@ -34129,7 +34131,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34129
34131
|
var b = Ne, O = tt;
|
|
34130
34132
|
if (er(u)) {
|
|
34131
34133
|
var j = "separator" in u ? u.separator : j;
|
|
34132
|
-
b = "length" in u ?
|
|
34134
|
+
b = "length" in u ? Gt(u.length) : b, O = "omission" in u ? Kr(u.omission) : O;
|
|
34133
34135
|
}
|
|
34134
34136
|
s = bn(s);
|
|
34135
34137
|
var X = s.length;
|
|
@@ -34247,7 +34249,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34247
34249
|
function Rg() {
|
|
34248
34250
|
}
|
|
34249
34251
|
function UR(s) {
|
|
34250
|
-
return s =
|
|
34252
|
+
return s = Gt(s), jt(function(u) {
|
|
34251
34253
|
return Ma(u, s);
|
|
34252
34254
|
});
|
|
34253
34255
|
}
|
|
@@ -34277,7 +34279,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34277
34279
|
return !0;
|
|
34278
34280
|
}
|
|
34279
34281
|
function QR(s, u) {
|
|
34280
|
-
if (s =
|
|
34282
|
+
if (s = Gt(s), s < 1 || s > $e)
|
|
34281
34283
|
return [];
|
|
34282
34284
|
var b = xe, O = Qn(s, xe);
|
|
34283
34285
|
u = Ct(u), s -= xe;
|
|
@@ -34326,7 +34328,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34326
34328
|
function mI(s, u) {
|
|
34327
34329
|
return s && s.length ? ye(s, Ct(u, 2)) : 0;
|
|
34328
34330
|
}
|
|
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 =
|
|
34331
|
+
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
34332
|
var s = {};
|
|
34331
34333
|
return _i(z, function(u, b) {
|
|
34332
34334
|
kt.call(z.prototype, b) || (s[b] = u);
|
|
@@ -34335,7 +34337,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34335
34337
|
z[s].placeholder = z;
|
|
34336
34338
|
}), ee(["drop", "take"], function(s, u) {
|
|
34337
34339
|
Vt.prototype[s] = function(b) {
|
|
34338
|
-
b = b === n ? 1 : Cn(
|
|
34340
|
+
b = b === n ? 1 : Cn(Gt(b), 0);
|
|
34339
34341
|
var O = this.__filtered__ && !u ? new Vt(this) : this.clone();
|
|
34340
34342
|
return O.__filtered__ ? O.__takeCount__ = Qn(b, O.__takeCount__) : O.__views__.push({
|
|
34341
34343
|
size: Qn(b, xe),
|
|
@@ -34376,9 +34378,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34376
34378
|
}), Vt.prototype.reject = function(s) {
|
|
34377
34379
|
return this.filter(yh(Ct(s)));
|
|
34378
34380
|
}, Vt.prototype.slice = function(s, u) {
|
|
34379
|
-
s =
|
|
34381
|
+
s = Gt(s);
|
|
34380
34382
|
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 =
|
|
34383
|
+
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
34384
|
}, Vt.prototype.takeRightWhile = function(s) {
|
|
34383
34385
|
return this.reverse().takeWhile(s).reverse();
|
|
34384
34386
|
}, 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-D-YZAHag.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-NKtsqBrB.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";
|
package/package.json
CHANGED