@its/core 2.2.4 → 2.2.5
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/core.es.js +140 -138
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/core.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as E, Fragment as Kr, jsxs as oe } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as Pt, initReactI18next as wV } from "react-i18next";
|
|
3
3
|
import * as j from "react";
|
|
4
|
-
import Fs, { createContext as On, useState as Pe, useContext as qn, useEffect as
|
|
4
|
+
import Fs, { createContext as On, useState as Pe, useContext as qn, useEffect as Ce, useCallback as ut, useMemo as kn, useRef as St, useLayoutEffect as sl, Children as Au, isValidElement as oa, cloneElement as eo, forwardRef as ei, PureComponent as to, createElement as S8, useImperativeHandle as _V, Component as tc, memo as xV, Fragment as Y2, lazy as WO, Suspense as EV } from "react";
|
|
5
5
|
import { Navigate as SV } from "react-router-dom";
|
|
6
6
|
import { ToggleButtonGroup as AV, ToggleButton as OV, Tabs as TV, Tab as PV, ThemeProvider as CV, createTheme as MV, Stack as X2, Alert as IV, Typography as mr, Box as h0, Breadcrumbs as kV, Link as RV, Divider as nc, Tooltip as Ng, IconButton as ul, Popover as A8, Button as qo, Collapse as O8, Paper as Aa, Avatar as T8, useTheme as p0, DialogContent as DV, DialogActions as NV, Dialog as LV, DialogTitle as $V, TextField as kl, FormControl as th, InputLabel as Z2, Select as nh, MenuItem as Ta, Autocomplete as jV, InputAdornment as BV, FormLabel as zV, RadioGroup as FV, FormControlLabel as Lg, Radio as qO, ListItem as J2, ListItemText as g0, List as P8, Toolbar as C8, FormGroup as WV, Checkbox as Zw, Grid as $g, Fab as qV, ListItemIcon as HO, ListItemButton as HV, Pagination as VV, SvgIcon as M8, TableRow as Jw, TableCell as a1, TableContainer as UV, Table as GV, TableHead as KV, TableBody as YV, TablePagination as XV, Chip as VO } from "@mui/material";
|
|
7
7
|
import { usePaginationFragment as ZV, RelayEnvironmentProvider as JV } from "react-relay";
|
|
@@ -105,7 +105,7 @@ function Ua(e, t) {
|
|
|
105
105
|
i = r.createState(t), n[e] = i;
|
|
106
106
|
}
|
|
107
107
|
const [a, o] = Pe(i.get());
|
|
108
|
-
return
|
|
108
|
+
return Ce(() => {
|
|
109
109
|
const u = i.subscribe((c) => {
|
|
110
110
|
o(c);
|
|
111
111
|
});
|
|
@@ -119,7 +119,7 @@ function Ws() {
|
|
|
119
119
|
"themeModeState",
|
|
120
120
|
localStorage.getItem("theme-mode") || Yf.DARK
|
|
121
121
|
);
|
|
122
|
-
|
|
122
|
+
Ce(() => {
|
|
123
123
|
localStorage.setItem("theme-mode", e);
|
|
124
124
|
}, [e]);
|
|
125
125
|
const n = ut(() => {
|
|
@@ -195,7 +195,7 @@ function ex(e, t) {
|
|
|
195
195
|
const z8 = On(null);
|
|
196
196
|
function WTe({ children: e }) {
|
|
197
197
|
const [t, n] = Pe(null), [r, i] = Pe(!0);
|
|
198
|
-
return
|
|
198
|
+
return Ce(() => {
|
|
199
199
|
t || fetch("/runtime-config.json").then((a) => a.json()).then((a) => {
|
|
200
200
|
n(a), i(!1);
|
|
201
201
|
}).catch(() => {
|
|
@@ -214,7 +214,7 @@ function QO() {
|
|
|
214
214
|
}
|
|
215
215
|
function qTe() {
|
|
216
216
|
const [e, t] = Pe(QO());
|
|
217
|
-
return
|
|
217
|
+
return Ce(() => {
|
|
218
218
|
function n() {
|
|
219
219
|
t(QO());
|
|
220
220
|
}
|
|
@@ -225,7 +225,7 @@ function HTe() {
|
|
|
225
225
|
const [e, t] = Pe(!document.hidden), n = () => {
|
|
226
226
|
t(!document.hidden);
|
|
227
227
|
};
|
|
228
|
-
return
|
|
228
|
+
return Ce(() => (document.addEventListener("visibilitychange", n), () => {
|
|
229
229
|
document.removeEventListener("visibilitychange", n);
|
|
230
230
|
})), e;
|
|
231
231
|
}
|
|
@@ -262,7 +262,7 @@ function nG(e = QU) {
|
|
|
262
262
|
}, d = () => {
|
|
263
263
|
s(!0), u();
|
|
264
264
|
};
|
|
265
|
-
return
|
|
265
|
+
return Ce(() => {
|
|
266
266
|
if (!o) return;
|
|
267
267
|
const m = tG(eG, u);
|
|
268
268
|
return u(), () => {
|
|
@@ -396,7 +396,7 @@ function aG({
|
|
|
396
396
|
return P;
|
|
397
397
|
}
|
|
398
398
|
const [u, c] = Pe(o), [l, h] = Pe(s), [d, g] = Pe(() => Tf(u, l, t)), [m, y] = Pe(i), [v, b] = Pe(t);
|
|
399
|
-
|
|
399
|
+
Ce(() => b(t), [t]), Ce(() => c(o), [r]), Ce(() => h(s), [n]), Ce(
|
|
400
400
|
() => g(Tf(r, n, t)),
|
|
401
401
|
[t]
|
|
402
402
|
);
|
|
@@ -510,7 +510,7 @@ function VTe(e = 99) {
|
|
|
510
510
|
`Error code: ${_.errorCode} Vendor message: ${_.vendorMessage}`
|
|
511
511
|
));
|
|
512
512
|
}
|
|
513
|
-
|
|
513
|
+
Ce(() => {
|
|
514
514
|
g(0, "Beginning connect"), r && window.rfid.connect(), g(0, "Finished connect");
|
|
515
515
|
}, [r]);
|
|
516
516
|
function h() {
|
|
@@ -522,7 +522,7 @@ function VTe(e = 99) {
|
|
|
522
522
|
}, window.onEnumerate = () => {
|
|
523
523
|
}, window.rfid.tagID = "", g(0, "Stopping rfid"), window.rfid.stop(), g(0, "Rfid stopped"), g(0, "Disconnecting"), window.rfid.disconnect(), g(0, "Disconnected"), n(!1), i(!1));
|
|
524
524
|
}
|
|
525
|
-
|
|
525
|
+
Ce(() => {
|
|
526
526
|
g(0, `isConnected = ${t}`);
|
|
527
527
|
}, [t]);
|
|
528
528
|
function g(_, x) {
|
|
@@ -586,7 +586,7 @@ function VTe(e = 99) {
|
|
|
586
586
|
}
|
|
587
587
|
function nx(e = ".scrollable-container") {
|
|
588
588
|
const t = /* @__PURE__ */ new Map();
|
|
589
|
-
|
|
589
|
+
Ce(() => {
|
|
590
590
|
const n = document.querySelectorAll(e), r = (a) => {
|
|
591
591
|
a.classList.add("show-scrollbar"), setTimeout(() => {
|
|
592
592
|
a.classList.remove("show-scrollbar");
|
|
@@ -954,7 +954,7 @@ function pG({
|
|
|
954
954
|
), [h, d] = Pe(
|
|
955
955
|
!!(a.AUTH_SCHEMA !== "Cookies" ? localStorage.getItem("token") && c : c)
|
|
956
956
|
);
|
|
957
|
-
|
|
957
|
+
Ce(() => {
|
|
958
958
|
d(
|
|
959
959
|
c ? !!(a.AUTH_SCHEMA !== "Cookies" ? localStorage.getItem("token") && c : c) : !1
|
|
960
960
|
);
|
|
@@ -1137,11 +1137,11 @@ function KTe({
|
|
|
1137
1137
|
const { t: b } = Pt(), [_, x] = Pe(!1), [S, A, { login: T, removeError: P }] = gG(), I = b0("(min-height:700px)"), [$, B] = T, [k, H] = Pe(0), [N] = Ws(), C = (L, D) => {
|
|
1138
1138
|
H(D);
|
|
1139
1139
|
};
|
|
1140
|
-
return
|
|
1140
|
+
return Ce(() => {
|
|
1141
1141
|
A.length > 0 && A.find(({ code: L }) => L === "PASSWORD_EXPIRED") && x(!0);
|
|
1142
|
-
}, [A]),
|
|
1142
|
+
}, [A]), Ce(() => {
|
|
1143
1143
|
y && S && y();
|
|
1144
|
-
}, [S, y]),
|
|
1144
|
+
}, [S, y]), Ce(() => {
|
|
1145
1145
|
const L = A.map((D, q) => setTimeout(() => P(q), 2e3));
|
|
1146
1146
|
return () => {
|
|
1147
1147
|
L.forEach(clearTimeout);
|
|
@@ -1217,7 +1217,7 @@ function YTe({ callback: e, title: t, subtitle: n }) {
|
|
|
1217
1217
|
bufferName: "BadgeScanner",
|
|
1218
1218
|
callback: e
|
|
1219
1219
|
});
|
|
1220
|
-
return
|
|
1220
|
+
return Ce(() => (r.activateScanner(), () => {
|
|
1221
1221
|
r.disableScanner();
|
|
1222
1222
|
}), [r]), /* @__PURE__ */ oe(
|
|
1223
1223
|
y0,
|
|
@@ -1296,7 +1296,7 @@ function wG({ value: e }) {
|
|
|
1296
1296
|
const { t } = Pt(), [n, r] = Pe(!1), i = () => {
|
|
1297
1297
|
e && (r(!0), navigator.clipboard.writeText(e));
|
|
1298
1298
|
};
|
|
1299
|
-
return
|
|
1299
|
+
return Ce(() => {
|
|
1300
1300
|
n && setTimeout(() => {
|
|
1301
1301
|
r(!1);
|
|
1302
1302
|
}, 1e3);
|
|
@@ -1383,7 +1383,7 @@ function tT({ Icon: e, label: t, menuContent: n, centerPopover: r }) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
function xG({ styles: e = {}, languages: t, flags: n, isPopover: r }) {
|
|
1385
1385
|
const { i18n: i } = Pt(), [, a] = Ua("languageDialogPopover", r);
|
|
1386
|
-
|
|
1386
|
+
Ce(() => {
|
|
1387
1387
|
a(r ?? !1);
|
|
1388
1388
|
}, [r, a]);
|
|
1389
1389
|
const [o, s] = J8(t), u = n[i.language];
|
|
@@ -1474,9 +1474,9 @@ function ZTe({ children: e, Logo: t, theme: n, isIdle: r }) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
function JTe({ onClick: e, isIdle: t }) {
|
|
1476
1476
|
const [n] = Ws(), [r] = rx(), [i, a] = Pe(r);
|
|
1477
|
-
|
|
1477
|
+
Ce(() => {
|
|
1478
1478
|
t && r && (a(!1), e());
|
|
1479
|
-
}, [t, r, e]),
|
|
1479
|
+
}, [t, r, e]), Ce(() => {
|
|
1480
1480
|
a(r);
|
|
1481
1481
|
}, [r]);
|
|
1482
1482
|
const o = () => {
|
|
@@ -7686,13 +7686,13 @@ function XZ(e, t, n, r, i, a) {
|
|
|
7686
7686
|
}
|
|
7687
7687
|
function ZZ(e) {
|
|
7688
7688
|
var t = cn();
|
|
7689
|
-
return
|
|
7689
|
+
return Ce(() => {
|
|
7690
7690
|
t(FZ(e));
|
|
7691
7691
|
}, [t, e]), null;
|
|
7692
7692
|
}
|
|
7693
7693
|
function JZ(e) {
|
|
7694
7694
|
var t = cn();
|
|
7695
|
-
return
|
|
7695
|
+
return Ce(() => (t(L9(e)), () => {
|
|
7696
7696
|
t(L9({
|
|
7697
7697
|
width: 0,
|
|
7698
7698
|
height: 0
|
|
@@ -9082,7 +9082,7 @@ var rP = (e, t, n, r, i) => {
|
|
|
9082
9082
|
animationEasing: "ease"
|
|
9083
9083
|
}, tI = (e) => {
|
|
9084
9084
|
var t = br(e, sQ), n = St(null), [r, i] = Pe(-1);
|
|
9085
|
-
|
|
9085
|
+
Ce(() => {
|
|
9086
9086
|
if (n.current && n.current.getTotalLength)
|
|
9087
9087
|
try {
|
|
9088
9088
|
var b = n.current.getTotalLength();
|
|
@@ -14596,7 +14596,7 @@ var yae = {
|
|
|
14596
14596
|
};
|
|
14597
14597
|
function _ae() {
|
|
14598
14598
|
var e = Re(NE), t = Re(LE), n = cn(), r = Re(nR), i = Re(rs), a = ch(), o = L0(), s = Re((u) => u.rootProps.className);
|
|
14599
|
-
|
|
14599
|
+
Ce(() => {
|
|
14600
14600
|
if (e == null)
|
|
14601
14601
|
return cD;
|
|
14602
14602
|
var u = (c, l, h) => {
|
|
@@ -14655,7 +14655,7 @@ function _ae() {
|
|
|
14655
14655
|
}
|
|
14656
14656
|
function xae() {
|
|
14657
14657
|
var e = Re(NE), t = Re(LE), n = cn();
|
|
14658
|
-
|
|
14658
|
+
Ce(() => {
|
|
14659
14659
|
if (e == null)
|
|
14660
14660
|
return cD;
|
|
14661
14661
|
var r = (i, a, o) => {
|
|
@@ -14668,13 +14668,13 @@ function xae() {
|
|
|
14668
14668
|
}
|
|
14669
14669
|
function Eae() {
|
|
14670
14670
|
var e = cn();
|
|
14671
|
-
|
|
14671
|
+
Ce(() => {
|
|
14672
14672
|
e(vae());
|
|
14673
14673
|
}, [e]), _ae(), xae();
|
|
14674
14674
|
}
|
|
14675
14675
|
function Sae(e, t, n, r, i, a) {
|
|
14676
14676
|
var o = Re((d) => eae(d, e, t)), s = Re(LE), u = Re(NE), c = Re(nR), l = Re(mae), h = l?.active;
|
|
14677
|
-
|
|
14677
|
+
Ce(() => {
|
|
14678
14678
|
if (!h && u != null && s != null) {
|
|
14679
14679
|
var d = R_({
|
|
14680
14680
|
active: a,
|
|
@@ -14778,7 +14778,7 @@ function wh(e) {
|
|
|
14778
14778
|
portal: x,
|
|
14779
14779
|
axisId: S
|
|
14780
14780
|
} = t, A = cn(), T = typeof _ == "number" ? String(_) : _;
|
|
14781
|
-
|
|
14781
|
+
Ce(() => {
|
|
14782
14782
|
A(aie({
|
|
14783
14783
|
shared: v,
|
|
14784
14784
|
trigger: b,
|
|
@@ -14991,7 +14991,7 @@ var oc = /* @__PURE__ */ ei((e, t) => {
|
|
|
14991
14991
|
};
|
|
14992
14992
|
});
|
|
14993
14993
|
}, []);
|
|
14994
|
-
|
|
14994
|
+
Ce(() => {
|
|
14995
14995
|
var A = ($) => {
|
|
14996
14996
|
var B, {
|
|
14997
14997
|
width: k,
|
|
@@ -16287,7 +16287,7 @@ var G5 = (e, t, n, r, i) => {
|
|
|
16287
16287
|
animationEasing: "ease"
|
|
16288
16288
|
}, fse = (e) => {
|
|
16289
16289
|
var t = br(e, lse), n = St(), [r, i] = Pe(-1);
|
|
16290
|
-
|
|
16290
|
+
Ce(() => {
|
|
16291
16291
|
if (n.current && n.current.getTotalLength)
|
|
16292
16292
|
try {
|
|
16293
16293
|
var v = n.current.getTotalLength();
|
|
@@ -16499,7 +16499,7 @@ function _h(e) {
|
|
|
16499
16499
|
fn: t,
|
|
16500
16500
|
args: n
|
|
16501
16501
|
} = e, r = cn(), i = Hn();
|
|
16502
|
-
return
|
|
16502
|
+
return Ce(() => {
|
|
16503
16503
|
if (!i) {
|
|
16504
16504
|
var a = t(n);
|
|
16505
16505
|
return r(rie(a)), () => {
|
|
@@ -16514,7 +16514,7 @@ function Em(e) {
|
|
|
16514
16514
|
var {
|
|
16515
16515
|
legendPayload: t
|
|
16516
16516
|
} = e, n = cn(), r = Hn();
|
|
16517
|
-
return
|
|
16517
|
+
return Ce(() => r ? wD : (n(UM(t)), () => {
|
|
16518
16518
|
n(GM(t));
|
|
16519
16519
|
}), [n, r, t]), null;
|
|
16520
16520
|
}
|
|
@@ -16522,7 +16522,7 @@ function _se(e) {
|
|
|
16522
16522
|
var {
|
|
16523
16523
|
legendPayload: t
|
|
16524
16524
|
} = e, n = cn(), r = Re(kt);
|
|
16525
|
-
return
|
|
16525
|
+
return Ce(() => r !== "centric" && r !== "radial" ? wD : (n(UM(t)), () => {
|
|
16526
16526
|
n(GM(t));
|
|
16527
16527
|
}), [n, r, t]), null;
|
|
16528
16528
|
}
|
|
@@ -16585,18 +16585,18 @@ var Ase = /* @__PURE__ */ On(void 0), Eh = (e) => {
|
|
|
16585
16585
|
} = _D.actions, kse = _D.reducer;
|
|
16586
16586
|
function Sm(e) {
|
|
16587
16587
|
var t = cn(), n = St(null);
|
|
16588
|
-
return
|
|
16588
|
+
return Ce(() => {
|
|
16589
16589
|
n.current === null ? t(Tse(e)) : n.current !== e && t(Pse({
|
|
16590
16590
|
prev: n.current,
|
|
16591
16591
|
next: e
|
|
16592
16592
|
})), n.current = e;
|
|
16593
|
-
}, [t, e]),
|
|
16593
|
+
}, [t, e]), Ce(() => () => {
|
|
16594
16594
|
n.current && (t(Cse(n.current)), n.current = null);
|
|
16595
16595
|
}, [t]), null;
|
|
16596
16596
|
}
|
|
16597
16597
|
function Rse(e) {
|
|
16598
16598
|
var t = cn();
|
|
16599
|
-
return
|
|
16599
|
+
return Ce(() => (t(Mse(e)), () => {
|
|
16600
16600
|
t(Ise(e));
|
|
16601
16601
|
}), [t, e]), null;
|
|
16602
16602
|
}
|
|
@@ -16628,9 +16628,9 @@ function Sh(e) {
|
|
|
16628
16628
|
onAnimationStart: u,
|
|
16629
16629
|
children: c
|
|
16630
16630
|
} = t, l = eI("JavascriptAnimate", t.animationManager), [h, d] = Pe(n ? X5 : qb), g = St(null);
|
|
16631
|
-
return
|
|
16631
|
+
return Ce(() => {
|
|
16632
16632
|
n || d(qb);
|
|
16633
|
-
}, [n]),
|
|
16633
|
+
}, [n]), Ce(() => {
|
|
16634
16634
|
if (!n || !r)
|
|
16635
16635
|
return Dse;
|
|
16636
16636
|
var m = QM(X5, qb, ZM(a), i, d, l.getTimeoutController()), y = () => {
|
|
@@ -18000,7 +18000,7 @@ var sce = (e, t, n, r, i, a, o) => {
|
|
|
18000
18000
|
var {
|
|
18001
18001
|
chartData: t
|
|
18002
18002
|
} = e, n = cn(), r = Hn();
|
|
18003
|
-
return
|
|
18003
|
+
return Ce(() => r ? () => {
|
|
18004
18004
|
} : (n(h5(t)), () => {
|
|
18005
18005
|
n(h5(void 0));
|
|
18006
18006
|
}), [t, n, r]), null;
|
|
@@ -18346,7 +18346,7 @@ var Rce = (e, t) => {
|
|
|
18346
18346
|
};
|
|
18347
18347
|
function Nce(e) {
|
|
18348
18348
|
var t = cn();
|
|
18349
|
-
return
|
|
18349
|
+
return Ce(() => (t(Tce(e)), () => {
|
|
18350
18350
|
t(Pce(e));
|
|
18351
18351
|
})), null;
|
|
18352
18352
|
}
|
|
@@ -18481,7 +18481,7 @@ var zce = (e, t, n, r, i) => {
|
|
|
18481
18481
|
};
|
|
18482
18482
|
function Fce(e) {
|
|
18483
18483
|
var t = cn();
|
|
18484
|
-
return
|
|
18484
|
+
return Ce(() => (t(Ace(e)), () => {
|
|
18485
18485
|
t(Oce(e));
|
|
18486
18486
|
})), null;
|
|
18487
18487
|
}
|
|
@@ -20741,7 +20741,7 @@ function Mfe(e, t) {
|
|
|
20741
20741
|
}
|
|
20742
20742
|
function Ife(e) {
|
|
20743
20743
|
var t = cn();
|
|
20744
|
-
return
|
|
20744
|
+
return Ce(() => (t(Afe(e)), () => {
|
|
20745
20745
|
t(Ofe(e));
|
|
20746
20746
|
}), [e, t]), null;
|
|
20747
20747
|
}
|
|
@@ -21342,7 +21342,7 @@ function hde(e) {
|
|
|
21342
21342
|
} = e, o = rN(e, ude);
|
|
21343
21343
|
return o;
|
|
21344
21344
|
}, [e]), r = Re((a) => ao(a, n.id)), i = n === r;
|
|
21345
|
-
return
|
|
21345
|
+
return Ce(() => (t(_fe(n)), () => {
|
|
21346
21346
|
t(xfe(n));
|
|
21347
21347
|
}), [n, t]), i ? e.children : null;
|
|
21348
21348
|
}
|
|
@@ -21484,7 +21484,7 @@ function _de(e, t) {
|
|
|
21484
21484
|
}
|
|
21485
21485
|
function xde(e) {
|
|
21486
21486
|
var t = cn();
|
|
21487
|
-
return
|
|
21487
|
+
return Ce(() => (t(Efe(e)), () => {
|
|
21488
21488
|
t(Sfe(e));
|
|
21489
21489
|
}), [e, t]), null;
|
|
21490
21490
|
}
|
|
@@ -22078,7 +22078,7 @@ function vN(e) {
|
|
|
22078
22078
|
height: r,
|
|
22079
22079
|
margin: i
|
|
22080
22080
|
} = e, a = cn(), o = Hn();
|
|
22081
|
-
return
|
|
22081
|
+
return Ce(() => {
|
|
22082
22082
|
o || (a(QX(t)), a(eZ({
|
|
22083
22083
|
width: n,
|
|
22084
22084
|
height: r
|
|
@@ -22087,7 +22087,7 @@ function vN(e) {
|
|
|
22087
22087
|
}
|
|
22088
22088
|
function mN(e) {
|
|
22089
22089
|
var t = cn();
|
|
22090
|
-
return
|
|
22090
|
+
return Ce(() => {
|
|
22091
22091
|
t(Gde(e));
|
|
22092
22092
|
}, [t, e]), null;
|
|
22093
22093
|
}
|
|
@@ -22170,7 +22170,7 @@ var rhe = {
|
|
|
22170
22170
|
});
|
|
22171
22171
|
function ohe() {
|
|
22172
22172
|
var e = cn(), [t, n] = Pe(null), r = Re(MZ);
|
|
22173
|
-
return
|
|
22173
|
+
return Ce(() => {
|
|
22174
22174
|
if (t != null) {
|
|
22175
22175
|
var i = t.getBoundingClientRect(), a = i.width / t.offsetWidth;
|
|
22176
22176
|
yr(a) && a !== r && e(tZ(a));
|
|
@@ -22486,7 +22486,7 @@ var yhe = {
|
|
|
22486
22486
|
}));
|
|
22487
22487
|
function She(e) {
|
|
22488
22488
|
var t = cn();
|
|
22489
|
-
return
|
|
22489
|
+
return Ce(() => {
|
|
22490
22490
|
t(Kde(e));
|
|
22491
22491
|
}, [t, e]), null;
|
|
22492
22492
|
}
|
|
@@ -30834,7 +30834,7 @@ function R_e() {
|
|
|
30834
30834
|
["partial", A],
|
|
30835
30835
|
["partialRight", T],
|
|
30836
30836
|
["rearg", I]
|
|
30837
|
-
], ne = "[object Arguments]", pe = "[object Array]", me = "[object AsyncFunction]", _e = "[object Boolean]", ue = "[object Date]", he = "[object DOMException]", Ae = "[object Error]", re = "[object Function]", De = "[object GeneratorFunction]", Be = "[object Map]", et = "[object Number]", Je = "[object Null]", Ee = "[object Object]", at = "[object Promise]", yn = "[object Proxy]", At = "[object RegExp]", an = "[object Set]", bn = "[object String]", Dr = "[object Symbol]", _r = "[object Undefined]", Nr = "[object WeakMap]", Ql = "[object WeakSet]", Zs = "[object ArrayBuffer]", is = "[object DataView]", ef = "[object Float32Array]", tf = "[object Float64Array]", nf = "[object Int8Array]", rf = "[object Int16Array]", af = "[object Int32Array]", hc = "[object Uint8Array]", Q = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ye = "[object Uint32Array]", J = /\b__p \+= '';/g, ge = /\b(__p \+=) '' \+/g, Te = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Ve = /&(?:amp|lt|gt|quot|#39);/g, We = /[&<>"']/g, Ke = RegExp(Ve.source), lt = RegExp(We.source), Fe = /<%-([\s\S]+?)%>/g, ct = /<%([\s\S]+?)%>/g, wt = /<%=([\s\S]+?)%>/g, Wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, on = /^\w*$/, tr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bn = /[\\^$.*+?()[\]{}|]/g, wn = RegExp(Bn.source), Ye = /^\s+/, Ne = /\s/, jt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, qt = /\{\n\/\* \[wrapped with (.+)\] \*/, _n = /,? & /, Zt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ge = /[()=,{}\[\]\/\s]/, sn = /\\(\\)?/g, vt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ot = /\w*$/, tt = /^[-+]0x[0-9a-f]+$/i, ft = /^0b[01]+$/i, cr = /^\[object .+?Constructor\]$/, pn = /^0o[0-7]+$/i, Ct = /^(?:0|[1-9]\d*)$/, de = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, le = /($^)/, ce = /['\n\r\u2028\u2029\\]/g, ze = "\\ud800-\\udfff", Gt = "\\u0300-\\u036f", Lr = "\\ufe20-\\ufe2f", Mt = "\\u20d0-\\u20ff", ha = Gt + Lr + Mt, Ia = "\\u2700-\\u27bf", lr = "a-z\\xdf-\\xf6\\xf8-\\xff", as = "\\xac\\xb1\\xd7\\xf7",
|
|
30837
|
+
], ne = "[object Arguments]", pe = "[object Array]", me = "[object AsyncFunction]", _e = "[object Boolean]", ue = "[object Date]", he = "[object DOMException]", Ae = "[object Error]", re = "[object Function]", De = "[object GeneratorFunction]", Be = "[object Map]", et = "[object Number]", Je = "[object Null]", Ee = "[object Object]", at = "[object Promise]", yn = "[object Proxy]", At = "[object RegExp]", an = "[object Set]", bn = "[object String]", Dr = "[object Symbol]", _r = "[object Undefined]", Nr = "[object WeakMap]", Ql = "[object WeakSet]", Zs = "[object ArrayBuffer]", is = "[object DataView]", ef = "[object Float32Array]", tf = "[object Float64Array]", nf = "[object Int8Array]", rf = "[object Int16Array]", af = "[object Int32Array]", hc = "[object Uint8Array]", Q = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ye = "[object Uint32Array]", J = /\b__p \+= '';/g, ge = /\b(__p \+=) '' \+/g, Te = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Ve = /&(?:amp|lt|gt|quot|#39);/g, We = /[&<>"']/g, Ke = RegExp(Ve.source), lt = RegExp(We.source), Fe = /<%-([\s\S]+?)%>/g, ct = /<%([\s\S]+?)%>/g, wt = /<%=([\s\S]+?)%>/g, Wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, on = /^\w*$/, tr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bn = /[\\^$.*+?()[\]{}|]/g, wn = RegExp(Bn.source), Ye = /^\s+/, Ne = /\s/, jt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, qt = /\{\n\/\* \[wrapped with (.+)\] \*/, _n = /,? & /, Zt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ge = /[()=,{}\[\]\/\s]/, sn = /\\(\\)?/g, vt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ot = /\w*$/, tt = /^[-+]0x[0-9a-f]+$/i, ft = /^0b[01]+$/i, cr = /^\[object .+?Constructor\]$/, pn = /^0o[0-7]+$/i, Ct = /^(?:0|[1-9]\d*)$/, de = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, le = /($^)/, ce = /['\n\r\u2028\u2029\\]/g, ze = "\\ud800-\\udfff", Gt = "\\u0300-\\u036f", Lr = "\\ufe20-\\ufe2f", Mt = "\\u20d0-\\u20ff", ha = Gt + Lr + Mt, Ia = "\\u2700-\\u27bf", lr = "a-z\\xdf-\\xf6\\xf8-\\xff", as = "\\xac\\xb1\\xd7\\xf7", Me = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Se = "\\u2000-\\u206f", fe = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Oe = "A-Z\\xc0-\\xd6\\xd8-\\xde", Xe = "\\ufe0e\\ufe0f", st = as + Me + Se + fe, Ue = "['’]", mt = "[" + ze + "]", yt = "[" + st + "]", dt = "[" + ha + "]", Kt = "\\d+", Jt = "[" + Ia + "]", pa = "[" + lr + "]", bi = "[^" + ze + st + Kt + Ia + lr + Oe + "]", ka = "\\ud83c[\\udffb-\\udfff]", of = "(?:" + dt + "|" + ka + ")", sf = "[^" + ze + "]", uf = "(?:\\ud83c[\\udde6-\\uddff]){2}", Js = "[\\ud800-\\udbff][\\udc00-\\udfff]", uo = "[" + Oe + "]", co = "\\u200d", cf = "(?:" + pa + "|" + bi + ")", pc = "(?:" + uo + "|" + bi + ")", lf = "(?:" + Ue + "(?:d|ll|m|re|s|t|ve))?", ff = "(?:" + Ue + "(?:D|LL|M|RE|S|T|VE))?", os = of + "?", ni = "[" + Xe + "]?", zi = "(?:" + co + "(?:" + [sf, uf, Js].join("|") + ")" + ni + os + ")*", Aj = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Oj = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", DA = ni + os + zi, Tj = "(?:" + [Jt, uf, Js].join("|") + ")" + DA, Pj = "(?:" + [sf + dt + "?", dt, uf, Js, mt].join("|") + ")", Cj = RegExp(Ue, "g"), Mj = RegExp(dt, "g"), Qm = RegExp(ka + "(?=" + ka + ")|" + Pj + DA, "g"), Ij = RegExp([
|
|
30838
30838
|
uo + "?" + pa + "+" + lf + "(?=" + [yt, uo, "$"].join("|") + ")",
|
|
30839
30839
|
pc + "+" + ff + "(?=" + [yt, uo + cf, "$"].join("|") + ")",
|
|
30840
30840
|
uo + "?" + cf + "+" + lf,
|
|
@@ -35264,7 +35264,7 @@ var z_e = B_e();
|
|
|
35264
35264
|
const F_e = /* @__PURE__ */ no(z_e);
|
|
35265
35265
|
function y9e({ value: e, label: t, width: n }) {
|
|
35266
35266
|
const r = p0(), [i, a] = Pe(0);
|
|
35267
|
-
return
|
|
35267
|
+
return Ce(() => {
|
|
35268
35268
|
const o = setTimeout(() => a(e), 50);
|
|
35269
35269
|
return () => clearTimeout(o);
|
|
35270
35270
|
}, [e]), /* @__PURE__ */ oe(
|
|
@@ -36210,7 +36210,7 @@ function Y_e({
|
|
|
36210
36210
|
}, d = () => {
|
|
36211
36211
|
t(), l("");
|
|
36212
36212
|
};
|
|
36213
|
-
return
|
|
36213
|
+
return Ce(() => {
|
|
36214
36214
|
o && s && l(s);
|
|
36215
36215
|
}, [s]), /* @__PURE__ */ E(
|
|
36216
36216
|
Km,
|
|
@@ -36247,7 +36247,7 @@ function Y_e({
|
|
|
36247
36247
|
}
|
|
36248
36248
|
);
|
|
36249
36249
|
}
|
|
36250
|
-
const X_e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", vA = X_e ? sl :
|
|
36250
|
+
const X_e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", vA = X_e ? sl : Ce;
|
|
36251
36251
|
function Z_e(e) {
|
|
36252
36252
|
const t = St(e);
|
|
36253
36253
|
return vA(() => {
|
|
@@ -36894,7 +36894,7 @@ function E9e({
|
|
|
36894
36894
|
width: n * i,
|
|
36895
36895
|
height: r * i
|
|
36896
36896
|
});
|
|
36897
|
-
|
|
36897
|
+
Ce(() => {
|
|
36898
36898
|
g || y(t);
|
|
36899
36899
|
}, [t, g]);
|
|
36900
36900
|
const b = {
|
|
@@ -37000,13 +37000,15 @@ function xC({
|
|
|
37000
37000
|
}) {
|
|
37001
37001
|
const { t: d } = Pt(), [g, m] = Pe(s ?? (l ? [] : "")), y = St(!1), v = (_) => {
|
|
37002
37002
|
const x = _.target.value;
|
|
37003
|
-
y.current = !0, m(x)
|
|
37003
|
+
y.current = !0, m(x);
|
|
37004
37004
|
}, b = () => {
|
|
37005
37005
|
y.current || h(g), y.current = !1;
|
|
37006
37006
|
};
|
|
37007
|
-
return
|
|
37007
|
+
return Ce(() => {
|
|
37008
37008
|
g !== s && m(s ?? (l ? [] : ""));
|
|
37009
|
-
}, [s]),
|
|
37009
|
+
}, [s]), Ce(() => {
|
|
37010
|
+
u && u(g);
|
|
37011
|
+
}, [g]), /* @__PURE__ */ oe(
|
|
37010
37012
|
th,
|
|
37011
37013
|
{
|
|
37012
37014
|
id: `${e}-form-control`,
|
|
@@ -37048,7 +37050,7 @@ function v2e({
|
|
|
37048
37050
|
onChange: r
|
|
37049
37051
|
}) {
|
|
37050
37052
|
const [i, a] = Pe(null), [o, s] = Pe(""), [u, c] = Pe(null), [l, h] = Pe("asc");
|
|
37051
|
-
return
|
|
37053
|
+
return Ce(() => {
|
|
37052
37054
|
let d = [...e];
|
|
37053
37055
|
o && (d = d.filter(
|
|
37054
37056
|
(g) => i ? String(g[i]).toLowerCase().includes(o.toLowerCase()) : t.some(
|
|
@@ -37131,17 +37133,17 @@ function t0({
|
|
|
37131
37133
|
}, $ = (B, k) => {
|
|
37132
37134
|
m(k), u && u(k);
|
|
37133
37135
|
};
|
|
37134
|
-
return
|
|
37136
|
+
return Ce(() => {
|
|
37135
37137
|
o && o !== b && _(o);
|
|
37136
|
-
}, [o]),
|
|
37138
|
+
}, [o]), Ce(() => {
|
|
37137
37139
|
P.current && (P.current = !1);
|
|
37138
|
-
}, []),
|
|
37140
|
+
}, []), Ce(() => {
|
|
37139
37141
|
!P.current && r && A !== null && A !== void 0 && !c && l && (S(!0), r({ ...l, search: A }).then((B) => {
|
|
37140
37142
|
B.json().then((k) => {
|
|
37141
37143
|
_(k || []);
|
|
37142
37144
|
});
|
|
37143
37145
|
}).finally(() => S(!1)));
|
|
37144
|
-
}, [r, A, l, c]),
|
|
37146
|
+
}, [r, A, l, c]), Ce(() => {
|
|
37145
37147
|
!r && b.length > 0 && A !== null && A !== void 0 && _(
|
|
37146
37148
|
(B) => B.filter(({ displayValue: k }) => k.startsWith(A))
|
|
37147
37149
|
);
|
|
@@ -37188,7 +37190,7 @@ function y2e({ id: e, name: t, extValue: n, onChange: r, disabled: i }) {
|
|
|
37188
37190
|
const { t: a } = Pt(), [o, s] = Pe(n || ""), [u] = F8(o), c = (l) => {
|
|
37189
37191
|
s(l?.target.value);
|
|
37190
37192
|
};
|
|
37191
|
-
return
|
|
37193
|
+
return Ce(() => {
|
|
37192
37194
|
u && r && r(u);
|
|
37193
37195
|
}, [u, r]), /* @__PURE__ */ E(
|
|
37194
37196
|
kl,
|
|
@@ -37230,7 +37232,7 @@ function xd({
|
|
|
37230
37232
|
const { t: m, i18n: y } = Pt(), v = a === "dateTime" ? `${n0()} HH:mm` : a === "time" ? "HH:mm:ss" : n0(), [b, _] = Pe(
|
|
37231
37233
|
n ? typeof n == "string" ? xs(n, v, y.language) : xs(new Date(n)) : null
|
|
37232
37234
|
);
|
|
37233
|
-
|
|
37235
|
+
Ce(() => {
|
|
37234
37236
|
n && new Date(n).getTime() !== b?.toDate().getTime() && _(
|
|
37235
37237
|
typeof n == "string" ? xs(n, v, y.language) : xs(new Date(n))
|
|
37236
37238
|
);
|
|
@@ -37540,7 +37542,7 @@ function C9e({
|
|
|
37540
37542
|
const { t: n } = Pt(), [r, i] = Pe([]), [a, o] = Pe(""), s = (u) => {
|
|
37541
37543
|
o(u.target.value);
|
|
37542
37544
|
};
|
|
37543
|
-
return
|
|
37545
|
+
return Ce(() => {
|
|
37544
37546
|
i(
|
|
37545
37547
|
e.filter((u) => u.name.toLowerCase().includes(a.toLowerCase()))
|
|
37546
37548
|
), t(r);
|
|
@@ -37569,7 +37571,7 @@ function M9e({
|
|
|
37569
37571
|
const d = u.findIndex(l, h);
|
|
37570
37572
|
d >= 0 ? u.remove(d) : u.push(l);
|
|
37571
37573
|
};
|
|
37572
|
-
return
|
|
37574
|
+
return Ce(() => {
|
|
37573
37575
|
n && n(u.value);
|
|
37574
37576
|
}, [n, u]), /* @__PURE__ */ E(th, { disabled: i, required: a, children: /* @__PURE__ */ E(WV, { sx: { display: "flex", flexDirection: r, gap: ".5rem" }, children: o.map(
|
|
37575
37577
|
(l) => typeof l == "string" ? /* @__PURE__ */ E(
|
|
@@ -37617,7 +37619,7 @@ function I9e({
|
|
|
37617
37619
|
defaultChecked: u = []
|
|
37618
37620
|
}) {
|
|
37619
37621
|
const { t: c } = Pt(), [l, h] = Pe(u);
|
|
37620
|
-
return
|
|
37622
|
+
return Ce(() => {
|
|
37621
37623
|
s(l);
|
|
37622
37624
|
}, [l, s]), /* @__PURE__ */ oe(
|
|
37623
37625
|
th,
|
|
@@ -37755,9 +37757,9 @@ function k9e({
|
|
|
37755
37757
|
}, h = () => {
|
|
37756
37758
|
u("0");
|
|
37757
37759
|
};
|
|
37758
|
-
return
|
|
37760
|
+
return Ce(() => {
|
|
37759
37761
|
o(s);
|
|
37760
|
-
}, [s]),
|
|
37762
|
+
}, [s]), Ce(() => {
|
|
37761
37763
|
u(r.toString());
|
|
37762
37764
|
}, [r]), /* @__PURE__ */ E(Aa, { sx: { width: e, height: t }, children: /* @__PURE__ */ oe(Jc, { justifyContent: "flex-end", children: [
|
|
37763
37765
|
/* @__PURE__ */ oe(
|
|
@@ -37928,7 +37930,7 @@ function j2e(e) {
|
|
|
37928
37930
|
}
|
|
37929
37931
|
const EC = (e) => {
|
|
37930
37932
|
e.stopPropagation(), e.preventDefault(), e.stopImmediatePropagation();
|
|
37931
|
-
}, B2e = typeof window < "u" ? sl :
|
|
37933
|
+
}, B2e = typeof window < "u" ? sl : Ce;
|
|
37932
37934
|
function SC(e, t, n, r) {
|
|
37933
37935
|
const i = St(null), a = St(!1), o = n instanceof Array ? r instanceof Array ? void 0 : r : n, s = mA(e) ? e.join(void 0) : e, u = ut(t, []), c = St(u);
|
|
37934
37936
|
c.current = t;
|
|
@@ -38003,7 +38005,7 @@ function R9e({
|
|
|
38003
38005
|
isLogged: n = !0
|
|
38004
38006
|
}) {
|
|
38005
38007
|
const { i18n: r } = Pt(), [i, a, o] = J8(e);
|
|
38006
|
-
return SC("shift+l", a.toggle), SC("shift", a.open),
|
|
38008
|
+
return SC("shift+l", a.toggle), SC("shift", a.open), Ce(() => {
|
|
38007
38009
|
const s = (u) => {
|
|
38008
38010
|
u.key === "Shift" && a.close();
|
|
38009
38011
|
};
|
|
@@ -38188,7 +38190,7 @@ function F2e({
|
|
|
38188
38190
|
fallback: g = void 0
|
|
38189
38191
|
}) {
|
|
38190
38192
|
const m = St(null), [y, v] = Pe(!1);
|
|
38191
|
-
return nx(),
|
|
38193
|
+
return nx(), Ce(() => {
|
|
38192
38194
|
const b = m.current;
|
|
38193
38195
|
if (!b) return;
|
|
38194
38196
|
const _ = () => {
|
|
@@ -38288,7 +38290,7 @@ function D9e({
|
|
|
38288
38290
|
}
|
|
38289
38291
|
function N9e({ speed: e = 30, children: t }) {
|
|
38290
38292
|
const n = St(null), r = St(null), [i, a] = Pe(!1), [o, s] = Pe(0);
|
|
38291
|
-
return
|
|
38293
|
+
return Ce(() => {
|
|
38292
38294
|
const u = r.current, c = n.current;
|
|
38293
38295
|
if (!u || !c) return;
|
|
38294
38296
|
const l = () => {
|
|
@@ -38625,7 +38627,7 @@ function U2e(e, t, { keyName: n, label: r, defaultValue: i, options: a, dependsO
|
|
|
38625
38627
|
method: "POST",
|
|
38626
38628
|
body: JSON.stringify(v)
|
|
38627
38629
|
}).then((b) => b);
|
|
38628
|
-
|
|
38630
|
+
Ce(() => {
|
|
38629
38631
|
l(() => OC(s, o));
|
|
38630
38632
|
}, [s]);
|
|
38631
38633
|
const g = Object.keys(c).length < o.length;
|
|
@@ -38747,7 +38749,7 @@ function U2e(e, t, { keyName: n, label: r, defaultValue: i, options: a, dependsO
|
|
|
38747
38749
|
}
|
|
38748
38750
|
function G2e({ data: e, structure: t }) {
|
|
38749
38751
|
const [n, r] = Pe({}), { settings: i } = Y8(), [a, o] = Pe(e), s = yA();
|
|
38750
|
-
return
|
|
38752
|
+
return Ce(() => {
|
|
38751
38753
|
e && s(`api/v1/RAD/Options/${i.contextKey}`, {
|
|
38752
38754
|
method: "POST",
|
|
38753
38755
|
body: JSON.stringify(e)
|
|
@@ -38965,9 +38967,9 @@ function txe({
|
|
|
38965
38967
|
body: JSON.stringify(R)
|
|
38966
38968
|
});
|
|
38967
38969
|
};
|
|
38968
|
-
|
|
38970
|
+
Ce(() => {
|
|
38969
38971
|
S && (h(void 0), T(!0));
|
|
38970
|
-
}, [S]),
|
|
38972
|
+
}, [S]), Ce(() => {
|
|
38971
38973
|
A && a?.filters && a.sortings && A(a.filters, a.sortings);
|
|
38972
38974
|
}, [t]);
|
|
38973
38975
|
const B = (G) => {
|
|
@@ -40408,9 +40410,9 @@ function zxe(e, t) {
|
|
|
40408
40410
|
}
|
|
40409
40411
|
function F9e({ blob: e, ruleSet: t, dataSource: n, callBacksSet: r = {} }) {
|
|
40410
40412
|
const [i] = Ws(), [a, o] = Pe(null), [s, u] = Pe();
|
|
40411
|
-
|
|
40413
|
+
Ce(() => () => {
|
|
40412
40414
|
a && URL.revokeObjectURL(a), o(null);
|
|
40413
|
-
}, []),
|
|
40415
|
+
}, []), Ce(() => {
|
|
40414
40416
|
const l = zxe(t, n);
|
|
40415
40417
|
u(l);
|
|
40416
40418
|
}, [t, n]);
|
|
@@ -40418,7 +40420,7 @@ function F9e({ blob: e, ruleSet: t, dataSource: n, callBacksSet: r = {} }) {
|
|
|
40418
40420
|
(l) => Dxe(l, s, r, i),
|
|
40419
40421
|
[s, r, i]
|
|
40420
40422
|
);
|
|
40421
|
-
return
|
|
40423
|
+
return Ce(() => {
|
|
40422
40424
|
if (!e) {
|
|
40423
40425
|
a && URL.revokeObjectURL(a), o(null);
|
|
40424
40426
|
return;
|
|
@@ -40571,7 +40573,7 @@ function H9e({
|
|
|
40571
40573
|
autoUpdate: o,
|
|
40572
40574
|
backgroundColor: s
|
|
40573
40575
|
}) {
|
|
40574
|
-
return
|
|
40576
|
+
return Ce(() => {
|
|
40575
40577
|
if (o) {
|
|
40576
40578
|
const u = setInterval(() => {
|
|
40577
40579
|
document.getElementById(e)?.setAttribute("src", t);
|
|
@@ -47250,7 +47252,7 @@ function zOe() {
|
|
|
47250
47252
|
const Xe = typeof Oe;
|
|
47251
47253
|
return Xe === "function" && fe.callback === Oe || Xe === "object" && fe.originalDelegate === Oe;
|
|
47252
47254
|
}, Ia = Ne?.diff || ha, lr = Zone[_("UNPATCHED_EVENTS")], as = Q[_("PASSIVE_EVENTS")];
|
|
47253
|
-
function
|
|
47255
|
+
function Me(fe) {
|
|
47254
47256
|
if (typeof fe == "object" && fe !== null) {
|
|
47255
47257
|
const Oe = { ...fe };
|
|
47256
47258
|
return fe.signal && (Oe.signal = fe.signal), Oe;
|
|
@@ -47275,7 +47277,7 @@ function zOe() {
|
|
|
47275
47277
|
}
|
|
47276
47278
|
if (qt && !qt(fe, Kt, yt, arguments))
|
|
47277
47279
|
return;
|
|
47278
|
-
const pa = !!as && as.indexOf(dt) !== -1, bi =
|
|
47280
|
+
const pa = !!as && as.indexOf(dt) !== -1, bi = Me(Ct(arguments[2], pa)), ka = bi?.signal;
|
|
47279
47281
|
if (ka?.aborted)
|
|
47280
47282
|
return;
|
|
47281
47283
|
if (lr) {
|
|
@@ -47694,25 +47696,25 @@ function zOe() {
|
|
|
47694
47696
|
function ef(Q) {
|
|
47695
47697
|
Q.__load_patch("ZoneAwarePromise", (te, ye, J) => {
|
|
47696
47698
|
const ge = Object.getOwnPropertyDescriptor, Te = Object.defineProperty;
|
|
47697
|
-
function Ve(
|
|
47698
|
-
if (
|
|
47699
|
-
const Se =
|
|
47700
|
-
return (Se || "") + ": " + JSON.stringify(
|
|
47699
|
+
function Ve(Me) {
|
|
47700
|
+
if (Me && Me.toString === Object.prototype.toString) {
|
|
47701
|
+
const Se = Me.constructor && Me.constructor.name;
|
|
47702
|
+
return (Se || "") + ": " + JSON.stringify(Me);
|
|
47701
47703
|
}
|
|
47702
|
-
return
|
|
47704
|
+
return Me ? Me.toString() : Object.prototype.toString.call(Me);
|
|
47703
47705
|
}
|
|
47704
47706
|
const We = J.symbol, Ke = [], lt = te[We("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")] !== !1, Fe = We("Promise"), ct = We("then"), wt = "__creationTrace__";
|
|
47705
|
-
J.onUnhandledError = (
|
|
47707
|
+
J.onUnhandledError = (Me) => {
|
|
47706
47708
|
if (J.showUncaughtError()) {
|
|
47707
|
-
const Se =
|
|
47708
|
-
Se ? console.error("Unhandled Promise rejection:", Se instanceof Error ? Se.message : Se, "; Zone:",
|
|
47709
|
+
const Se = Me && Me.rejection;
|
|
47710
|
+
Se ? console.error("Unhandled Promise rejection:", Se instanceof Error ? Se.message : Se, "; Zone:", Me.zone.name, "; Task:", Me.task && Me.task.source, "; Value:", Se, Se instanceof Error ? Se.stack : void 0) : console.error(Me);
|
|
47709
47711
|
}
|
|
47710
47712
|
}, J.microtaskDrainDone = () => {
|
|
47711
47713
|
for (; Ke.length; ) {
|
|
47712
|
-
const
|
|
47714
|
+
const Me = Ke.shift();
|
|
47713
47715
|
try {
|
|
47714
|
-
|
|
47715
|
-
throw
|
|
47716
|
+
Me.zone.runGuarded(() => {
|
|
47717
|
+
throw Me.throwOriginal ? Me.rejection : Me;
|
|
47716
47718
|
});
|
|
47717
47719
|
} catch (Se) {
|
|
47718
47720
|
on(Se);
|
|
@@ -47720,68 +47722,68 @@ function zOe() {
|
|
|
47720
47722
|
}
|
|
47721
47723
|
};
|
|
47722
47724
|
const Wt = We("unhandledPromiseRejectionHandler");
|
|
47723
|
-
function on(
|
|
47724
|
-
J.onUnhandledError(
|
|
47725
|
+
function on(Me) {
|
|
47726
|
+
J.onUnhandledError(Me);
|
|
47725
47727
|
try {
|
|
47726
47728
|
const Se = ye[Wt];
|
|
47727
|
-
typeof Se == "function" && Se.call(this,
|
|
47729
|
+
typeof Se == "function" && Se.call(this, Me);
|
|
47728
47730
|
} catch {
|
|
47729
47731
|
}
|
|
47730
47732
|
}
|
|
47731
|
-
function tr(
|
|
47732
|
-
return
|
|
47733
|
+
function tr(Me) {
|
|
47734
|
+
return Me && typeof Me.then == "function";
|
|
47733
47735
|
}
|
|
47734
|
-
function Bn(
|
|
47735
|
-
return
|
|
47736
|
+
function Bn(Me) {
|
|
47737
|
+
return Me;
|
|
47736
47738
|
}
|
|
47737
|
-
function wn(
|
|
47738
|
-
return Mt.reject(
|
|
47739
|
+
function wn(Me) {
|
|
47740
|
+
return Mt.reject(Me);
|
|
47739
47741
|
}
|
|
47740
47742
|
const Ye = We("state"), Ne = We("value"), jt = We("finally"), qt = We("parentPromiseValue"), _n = We("parentPromiseState"), Zt = "Promise.then", Ge = null, sn = !0, vt = !1, ot = 0;
|
|
47741
|
-
function tt(
|
|
47743
|
+
function tt(Me, Se) {
|
|
47742
47744
|
return (fe) => {
|
|
47743
47745
|
try {
|
|
47744
|
-
Ct(
|
|
47746
|
+
Ct(Me, Se, fe);
|
|
47745
47747
|
} catch (Oe) {
|
|
47746
|
-
Ct(
|
|
47748
|
+
Ct(Me, !1, Oe);
|
|
47747
47749
|
}
|
|
47748
47750
|
};
|
|
47749
47751
|
}
|
|
47750
47752
|
const ft = function() {
|
|
47751
|
-
let
|
|
47753
|
+
let Me = !1;
|
|
47752
47754
|
return function(fe) {
|
|
47753
47755
|
return function() {
|
|
47754
|
-
|
|
47756
|
+
Me || (Me = !0, fe.apply(null, arguments));
|
|
47755
47757
|
};
|
|
47756
47758
|
};
|
|
47757
47759
|
}, cr = "Promise resolved with itself", pn = We("currentTaskTrace");
|
|
47758
|
-
function Ct(
|
|
47760
|
+
function Ct(Me, Se, fe) {
|
|
47759
47761
|
const Oe = ft();
|
|
47760
|
-
if (
|
|
47762
|
+
if (Me === fe)
|
|
47761
47763
|
throw new TypeError(cr);
|
|
47762
|
-
if (
|
|
47764
|
+
if (Me[Ye] === Ge) {
|
|
47763
47765
|
let Xe = null;
|
|
47764
47766
|
try {
|
|
47765
47767
|
(typeof fe == "object" || typeof fe == "function") && (Xe = fe && fe.then);
|
|
47766
47768
|
} catch (st) {
|
|
47767
47769
|
return Oe(() => {
|
|
47768
|
-
Ct(
|
|
47769
|
-
})(),
|
|
47770
|
+
Ct(Me, !1, st);
|
|
47771
|
+
})(), Me;
|
|
47770
47772
|
}
|
|
47771
47773
|
if (Se !== vt && fe instanceof Mt && fe.hasOwnProperty(Ye) && fe.hasOwnProperty(Ne) && fe[Ye] !== Ge)
|
|
47772
|
-
le(fe), Ct(
|
|
47774
|
+
le(fe), Ct(Me, fe[Ye], fe[Ne]);
|
|
47773
47775
|
else if (Se !== vt && typeof Xe == "function")
|
|
47774
47776
|
try {
|
|
47775
|
-
Xe.call(fe, Oe(tt(
|
|
47777
|
+
Xe.call(fe, Oe(tt(Me, Se)), Oe(tt(Me, !1)));
|
|
47776
47778
|
} catch (st) {
|
|
47777
47779
|
Oe(() => {
|
|
47778
|
-
Ct(
|
|
47780
|
+
Ct(Me, !1, st);
|
|
47779
47781
|
})();
|
|
47780
47782
|
}
|
|
47781
47783
|
else {
|
|
47782
|
-
|
|
47783
|
-
const st =
|
|
47784
|
-
if (
|
|
47784
|
+
Me[Ye] = Se;
|
|
47785
|
+
const st = Me[Ne];
|
|
47786
|
+
if (Me[Ne] = fe, Me[jt] === jt && Se === sn && (Me[Ye] = Me[_n], Me[Ne] = Me[qt]), Se === vt && fe instanceof Error) {
|
|
47785
47787
|
const Ue = ye.currentTask && ye.currentTask.data && ye.currentTask.data[wt];
|
|
47786
47788
|
Ue && Te(fe, pn, {
|
|
47787
47789
|
configurable: !0,
|
|
@@ -47791,9 +47793,9 @@ function zOe() {
|
|
|
47791
47793
|
});
|
|
47792
47794
|
}
|
|
47793
47795
|
for (let Ue = 0; Ue < st.length; )
|
|
47794
|
-
ce(
|
|
47796
|
+
ce(Me, st[Ue++], st[Ue++], st[Ue++], st[Ue++]);
|
|
47795
47797
|
if (st.length == 0 && Se == vt) {
|
|
47796
|
-
|
|
47798
|
+
Me[Ye] = ot;
|
|
47797
47799
|
let Ue = fe;
|
|
47798
47800
|
try {
|
|
47799
47801
|
throw new Error("Uncaught (in promise): " + Ve(fe) + (fe && fe.stack ? `
|
|
@@ -47801,31 +47803,31 @@ function zOe() {
|
|
|
47801
47803
|
} catch (mt) {
|
|
47802
47804
|
Ue = mt;
|
|
47803
47805
|
}
|
|
47804
|
-
lt && (Ue.throwOriginal = !0), Ue.rejection = fe, Ue.promise =
|
|
47806
|
+
lt && (Ue.throwOriginal = !0), Ue.rejection = fe, Ue.promise = Me, Ue.zone = ye.current, Ue.task = ye.currentTask, Ke.push(Ue), J.scheduleMicroTask();
|
|
47805
47807
|
}
|
|
47806
47808
|
}
|
|
47807
47809
|
}
|
|
47808
|
-
return
|
|
47810
|
+
return Me;
|
|
47809
47811
|
}
|
|
47810
47812
|
const de = We("rejectionHandledHandler");
|
|
47811
|
-
function le(
|
|
47812
|
-
if (
|
|
47813
|
+
function le(Me) {
|
|
47814
|
+
if (Me[Ye] === ot) {
|
|
47813
47815
|
try {
|
|
47814
47816
|
const Se = ye[de];
|
|
47815
|
-
Se && typeof Se == "function" && Se.call(this, { rejection:
|
|
47817
|
+
Se && typeof Se == "function" && Se.call(this, { rejection: Me[Ne], promise: Me });
|
|
47816
47818
|
} catch {
|
|
47817
47819
|
}
|
|
47818
|
-
|
|
47820
|
+
Me[Ye] = vt;
|
|
47819
47821
|
for (let Se = 0; Se < Ke.length; Se++)
|
|
47820
|
-
|
|
47822
|
+
Me === Ke[Se].promise && Ke.splice(Se, 1);
|
|
47821
47823
|
}
|
|
47822
47824
|
}
|
|
47823
|
-
function ce(
|
|
47824
|
-
le(
|
|
47825
|
-
const st =
|
|
47825
|
+
function ce(Me, Se, fe, Oe, Xe) {
|
|
47826
|
+
le(Me);
|
|
47827
|
+
const st = Me[Ye], Ue = st ? typeof Oe == "function" ? Oe : Bn : typeof Xe == "function" ? Xe : wn;
|
|
47826
47828
|
Se.scheduleMicroTask(Zt, () => {
|
|
47827
47829
|
try {
|
|
47828
|
-
const mt =
|
|
47830
|
+
const mt = Me[Ne], yt = !!fe && jt === fe[jt];
|
|
47829
47831
|
yt && (fe[qt] = mt, fe[_n] = st);
|
|
47830
47832
|
const dt = Se.run(Ue, void 0, yt && Ue !== wn && Ue !== Bn ? [] : [mt]);
|
|
47831
47833
|
Ct(fe, !0, dt);
|
|
@@ -47960,28 +47962,28 @@ function zOe() {
|
|
|
47960
47962
|
const ha = te[Fe] = te.Promise;
|
|
47961
47963
|
te.Promise = Mt;
|
|
47962
47964
|
const Ia = We("thenPatched");
|
|
47963
|
-
function lr(
|
|
47964
|
-
const Se =
|
|
47965
|
+
function lr(Me) {
|
|
47966
|
+
const Se = Me.prototype, fe = ge(Se, "then");
|
|
47965
47967
|
if (fe && (fe.writable === !1 || !fe.configurable))
|
|
47966
47968
|
return;
|
|
47967
47969
|
const Oe = Se.then;
|
|
47968
|
-
Se[ct] = Oe,
|
|
47970
|
+
Se[ct] = Oe, Me.prototype.then = function(Xe, st) {
|
|
47969
47971
|
return new Mt((mt, yt) => {
|
|
47970
47972
|
Oe.call(this, mt, yt);
|
|
47971
47973
|
}).then(Xe, st);
|
|
47972
|
-
},
|
|
47974
|
+
}, Me[Ia] = !0;
|
|
47973
47975
|
}
|
|
47974
47976
|
J.patchThen = lr;
|
|
47975
|
-
function as(
|
|
47977
|
+
function as(Me) {
|
|
47976
47978
|
return function(Se, fe) {
|
|
47977
|
-
let Oe =
|
|
47979
|
+
let Oe = Me.apply(Se, fe);
|
|
47978
47980
|
if (Oe instanceof Mt)
|
|
47979
47981
|
return Oe;
|
|
47980
47982
|
let Xe = Oe.constructor;
|
|
47981
47983
|
return Xe[Ia] || lr(Xe), Oe;
|
|
47982
47984
|
};
|
|
47983
47985
|
}
|
|
47984
|
-
return ha && (lr(ha), F(te, "fetch", (
|
|
47986
|
+
return ha && (lr(ha), F(te, "fetch", (Me) => as(Me))), Promise[ye.__symbol__("uncaughtPromiseErrors")] = Ke, Mt;
|
|
47985
47987
|
});
|
|
47986
47988
|
}
|
|
47987
47989
|
function tf(Q) {
|