@its/core 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs.js +19 -19
- package/dist/core.es.js +145 -132
- package/dist/types/src/hooks/useAuth/useAuth.d.ts +1 -0
- package/dist/types/src/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/types/src/store/AuthContext/AuthProvider.d.ts +1 -0
- package/dist/types/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
- package/dist/types/src/store/AuthContext/useAuthContext.d.ts +1 -0
- package/dist/types/src/store/AuthContext/useAuthContext.d.ts.map +1 -1
- 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 Gr, jsxs as oe } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as Ct, initReactI18next as dV } from "react-i18next";
|
|
3
3
|
import * as j from "react";
|
|
4
|
-
import Ws, { createContext as yn, useState as
|
|
4
|
+
import Ws, { createContext as yn, useState as Pe, useContext as Tn, useEffect as Me, useCallback as at, useMemo as en, useRef as At, useLayoutEffect as ul, Children as Au, isValidElement as oa, cloneElement as to, forwardRef as Qr, PureComponent as yi, createElement as _8, useImperativeHandle as hV, Component as Zo, memo as pV, Fragment as V2, lazy as FO, Suspense as gV } from "react";
|
|
5
5
|
import { Navigate as vV } from "react-router-dom";
|
|
6
6
|
import { ToggleButtonGroup as mV, ToggleButton as yV, Tabs as bV, Tab as wV, ThemeProvider as _V, createTheme as xV, Stack as U2, Alert as EV, Typography as vr, Box as l0, Breadcrumbs as SV, Link as AV, Divider as ec, Tooltip as Ng, IconButton as cl, Popover as x8, Button as Wo, Collapse as E8, Paper as Aa, Avatar as S8, useTheme as f0, DialogContent as OV, DialogActions as TV, Dialog as PV, DialogTitle as CV, TextField as Dl, FormControl as rh, InputLabel as G2, Select as ih, MenuItem as Ta, Autocomplete as MV, InputAdornment as kV, FormLabel as IV, RadioGroup as RV, FormControlLabel as Lg, Radio as WO, ListItem as K2, ListItemText as d0, List as A8, Toolbar as O8, FormGroup as DV, Checkbox as Uw, Grid as $g, Fab as NV, ListItemIcon as qO, ListItemButton as LV, Pagination as $V, SvgIcon as T8, TableRow as Gw, TableCell as r1, TableContainer as jV, Table as BV, TableHead as zV, TableBody as FV, TablePagination as WV, Chip as HO } from "@mui/material";
|
|
7
7
|
import { usePaginationFragment as qV, RelayEnvironmentProvider as HV } from "react-relay";
|
|
@@ -84,7 +84,7 @@ function OTe({
|
|
|
84
84
|
adapter: e,
|
|
85
85
|
children: t
|
|
86
86
|
}) {
|
|
87
|
-
const [n] =
|
|
87
|
+
const [n] = Pe({}), r = /* @__PURE__ */ E(N8.Provider, { value: { stateFactory: n, adapter: e }, children: t });
|
|
88
88
|
return e.type === "recoilAdapter" ? /* @__PURE__ */ E(VV, { children: r }) : r;
|
|
89
89
|
}
|
|
90
90
|
function HU() {
|
|
@@ -103,7 +103,7 @@ function Ua(e, t) {
|
|
|
103
103
|
);
|
|
104
104
|
i = r.createState(t), n[e] = i;
|
|
105
105
|
}
|
|
106
|
-
const [a, o] =
|
|
106
|
+
const [a, o] = Pe(i.get());
|
|
107
107
|
return Me(() => {
|
|
108
108
|
const u = i.subscribe((c) => {
|
|
109
109
|
o(c);
|
|
@@ -152,7 +152,7 @@ function TTe({ elementsPerPage: e, fragment: t, fragmentRef: n, getList: r }) {
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
function X2(e, t) {
|
|
155
|
-
const [n, r] =
|
|
155
|
+
const [n, r] = Pe(() => {
|
|
156
156
|
if (t && e.length > t)
|
|
157
157
|
throw new Error(
|
|
158
158
|
`Max length exceeded! Array length: ${e.length}. Max length: ${t}`
|
|
@@ -193,7 +193,7 @@ function X2(e, t) {
|
|
|
193
193
|
}
|
|
194
194
|
const $8 = yn(null);
|
|
195
195
|
function PTe({ children: e }) {
|
|
196
|
-
const [t, n] =
|
|
196
|
+
const [t, n] = Pe(null), [r, i] = Pe(!0);
|
|
197
197
|
return Me(() => {
|
|
198
198
|
t || fetch("/runtime-config.json").then((a) => a.json()).then((a) => {
|
|
199
199
|
n(a), i(!1);
|
|
@@ -212,7 +212,7 @@ function JO() {
|
|
|
212
212
|
return window.innerHeight > window.innerWidth;
|
|
213
213
|
}
|
|
214
214
|
function CTe() {
|
|
215
|
-
const [e, t] =
|
|
215
|
+
const [e, t] = Pe(JO());
|
|
216
216
|
return Me(() => {
|
|
217
217
|
function n() {
|
|
218
218
|
t(JO());
|
|
@@ -221,7 +221,7 @@ function CTe() {
|
|
|
221
221
|
}, []), e;
|
|
222
222
|
}
|
|
223
223
|
function MTe() {
|
|
224
|
-
const [e, t] =
|
|
224
|
+
const [e, t] = Pe(!document.hidden), n = () => {
|
|
225
225
|
t(!document.hidden);
|
|
226
226
|
};
|
|
227
227
|
return Me(() => (document.addEventListener("visibilitychange", n), () => {
|
|
@@ -229,7 +229,7 @@ function MTe() {
|
|
|
229
229
|
})), e;
|
|
230
230
|
}
|
|
231
231
|
function j8(e, t) {
|
|
232
|
-
const [n, r] =
|
|
232
|
+
const [n, r] = Pe(e), i = At(null);
|
|
233
233
|
function a(o) {
|
|
234
234
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
235
235
|
r(o);
|
|
@@ -248,7 +248,7 @@ const VU = 1e3 * 30, UU = [
|
|
|
248
248
|
e.forEach((n) => window.removeEventListener(n, t));
|
|
249
249
|
});
|
|
250
250
|
function KU(e = VU) {
|
|
251
|
-
const t = At(null), [n, r] =
|
|
251
|
+
const t = At(null), [n, r] = Pe(!1), [i, a] = Pe(!1), [o, s] = Pe(!0), u = at(() => {
|
|
252
252
|
!o || i || (t.current && clearTimeout(t.current), r(!1), t.current = window.setTimeout(() => {
|
|
253
253
|
r(!0);
|
|
254
254
|
}, e));
|
|
@@ -270,7 +270,7 @@ function KU(e = VU) {
|
|
|
270
270
|
}, [u, o]), [n, { disableIdleMode: d, enableIdleMode: h, lockInIdleMode: c, unlockIdleMode: l }];
|
|
271
271
|
}
|
|
272
272
|
function v0(e) {
|
|
273
|
-
const [t, n] =
|
|
273
|
+
const [t, n] = Pe(() => matchMedia(e).matches);
|
|
274
274
|
return ul(() => {
|
|
275
275
|
const r = matchMedia(e);
|
|
276
276
|
function i() {
|
|
@@ -394,7 +394,7 @@ function ZU({
|
|
|
394
394
|
}
|
|
395
395
|
return P;
|
|
396
396
|
}
|
|
397
|
-
const [u, c] =
|
|
397
|
+
const [u, c] = Pe(o), [l, d] = Pe(s), [h, g] = Pe(() => Pf(u, l, t)), [m, y] = Pe(i), [v, b] = Pe(t);
|
|
398
398
|
Me(() => b(t), [t]), Me(() => c(o), [r]), Me(() => d(s), [n]), Me(
|
|
399
399
|
() => g(Pf(r, n, t)),
|
|
400
400
|
[t]
|
|
@@ -490,7 +490,7 @@ function G8() {
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
function kTe(e = 99) {
|
|
493
|
-
const [t, n] =
|
|
493
|
+
const [t, n] = Pe(!1), [r, i] = Pe(!1), [a, o] = Pe([]), [s, u] = Ua("tagDistance", 0);
|
|
494
494
|
window.stopRunningLocate = function() {
|
|
495
495
|
window.rfid.stop();
|
|
496
496
|
};
|
|
@@ -609,7 +609,7 @@ function J2(e = ".scrollable-container") {
|
|
|
609
609
|
}, [e]);
|
|
610
610
|
}
|
|
611
611
|
function JU({ bufferName: e, callback: t }) {
|
|
612
|
-
const [n, r] =
|
|
612
|
+
const [n, r] = Pe("- - - - - - - -"), [i, a] = Pe(!1), [o, s] = Pe(0), [u, c] = Pe([]), l = At("- - - - - - - -"), d = At(null), h = (A) => {
|
|
613
613
|
const O = JSON.parse(localStorage.getItem(e) || "[]");
|
|
614
614
|
!O.includes(A) && A !== "- - - - - - - -" && (O.push(A), localStorage.setItem(e, JSON.stringify(O)));
|
|
615
615
|
}, g = (A) => {
|
|
@@ -908,50 +908,63 @@ function oG({
|
|
|
908
908
|
pendingLogout: r
|
|
909
909
|
}) {
|
|
910
910
|
const i = X2([]), a = Z2(), o = [
|
|
911
|
-
(
|
|
912
|
-
const
|
|
911
|
+
(m) => {
|
|
912
|
+
const y = {
|
|
913
913
|
credentials: {
|
|
914
|
-
username:
|
|
915
|
-
password:
|
|
916
|
-
rFID:
|
|
914
|
+
username: m.get("username")?.toString() || "",
|
|
915
|
+
password: m.get("password")?.toString() || "",
|
|
916
|
+
rFID: m.get("rfid")?.toString() || "",
|
|
917
917
|
// eslint-disable-next-line camelcase
|
|
918
918
|
client_id: a.CLIENT_ID
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
921
|
e({
|
|
922
|
-
variables:
|
|
923
|
-
onCompleted: (
|
|
924
|
-
const
|
|
925
|
-
if (
|
|
922
|
+
variables: y,
|
|
923
|
+
onCompleted: (v) => {
|
|
924
|
+
const b = v.authMutation.login, { expires: _, token: x, errors: S, username: A } = b;
|
|
925
|
+
if (S && S.length > 0) {
|
|
926
926
|
i.set(
|
|
927
|
-
(
|
|
928
|
-
code:
|
|
929
|
-
description:
|
|
927
|
+
(b.errors ?? []).map(({ code: O, description: P }) => ({
|
|
928
|
+
code: O,
|
|
929
|
+
description: P
|
|
930
930
|
}))
|
|
931
931
|
);
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
|
-
a.AUTH_SCHEMA !== "Cookies" &&
|
|
934
|
+
a.AUTH_SCHEMA !== "Cookies" && x && localStorage.setItem("token", `Bearer ${x}`), _ && localStorage.setItem("authExpiration", _), A && localStorage.setItem("username", A), l(!0);
|
|
935
935
|
}
|
|
936
936
|
});
|
|
937
937
|
},
|
|
938
938
|
t
|
|
939
|
-
], s =
|
|
939
|
+
], s = () => {
|
|
940
|
+
localStorage.removeItem("token"), localStorage.removeItem("authExpiration"), l(!1);
|
|
941
|
+
}, u = [
|
|
940
942
|
() => {
|
|
941
943
|
n({
|
|
942
944
|
variables: {},
|
|
943
945
|
onCompleted: () => {
|
|
944
|
-
|
|
946
|
+
s();
|
|
945
947
|
}
|
|
946
948
|
});
|
|
947
949
|
},
|
|
948
950
|
r
|
|
949
|
-
],
|
|
951
|
+
], [c, l] = Pe(
|
|
952
|
+
localStorage.getItem("authExpiration") !== void 0 && localStorage.getItem("authExpiration") !== null && new Date(localStorage.getItem("authExpiration")).getTime() > (/* @__PURE__ */ new Date()).getTime()
|
|
953
|
+
), [d, h] = Pe(
|
|
954
|
+
!!(a.AUTH_SCHEMA !== "Cookies" ? localStorage.getItem("token") && c : c)
|
|
955
|
+
);
|
|
956
|
+
Me(() => {
|
|
957
|
+
h(
|
|
958
|
+
c ? !!(a.AUTH_SCHEMA !== "Cookies" ? localStorage.getItem("token") && c : c) : !1
|
|
959
|
+
);
|
|
960
|
+
}, [c]);
|
|
961
|
+
const g = {
|
|
950
962
|
login: o,
|
|
951
|
-
logout:
|
|
952
|
-
removeError: i.remove
|
|
963
|
+
logout: u,
|
|
964
|
+
removeError: i.remove,
|
|
965
|
+
invalidate: s
|
|
953
966
|
};
|
|
954
|
-
return [
|
|
967
|
+
return [d, i.value, g];
|
|
955
968
|
}
|
|
956
969
|
const X8 = yn(null);
|
|
957
970
|
function ITe({
|
|
@@ -961,13 +974,13 @@ function ITe({
|
|
|
961
974
|
doLogout: r,
|
|
962
975
|
pendingLogout: i
|
|
963
976
|
}) {
|
|
964
|
-
const [a, o, { login: s, logout: u, removeError: c }] = oG({
|
|
977
|
+
const [a, o, { login: s, logout: u, removeError: c, invalidate: l }] = oG({
|
|
965
978
|
doLogin: t,
|
|
966
979
|
pendingLogin: n,
|
|
967
980
|
doLogout: r,
|
|
968
981
|
pendingLogout: i
|
|
969
982
|
});
|
|
970
|
-
return /* @__PURE__ */ E(X8.Provider, { value: [a, o, { login: s, logout: u, removeError: c }], children: e });
|
|
983
|
+
return /* @__PURE__ */ E(X8.Provider, { value: [a, o, { login: s, logout: u, removeError: c, invalidate: l }], children: e });
|
|
971
984
|
}
|
|
972
985
|
function sG() {
|
|
973
986
|
const e = Tn(X8);
|
|
@@ -1120,7 +1133,7 @@ function DTe({
|
|
|
1120
1133
|
loggedCallback: y,
|
|
1121
1134
|
logo: v
|
|
1122
1135
|
}) {
|
|
1123
|
-
const { t: b } = Ct(), [_, x] =
|
|
1136
|
+
const { t: b } = Ct(), [_, x] = Pe(!1), [S, A, { login: O, removeError: P }] = sG(), M = v0("(min-height:700px)"), [$, B] = O, [R, H] = Pe(0), [D] = qs(), C = (L, N) => {
|
|
1124
1137
|
H(N);
|
|
1125
1138
|
};
|
|
1126
1139
|
return Me(() => {
|
|
@@ -1275,11 +1288,11 @@ function fG() {
|
|
|
1275
1288
|
] });
|
|
1276
1289
|
}
|
|
1277
1290
|
function LTe({ root: e }) {
|
|
1278
|
-
const [t, n] =
|
|
1291
|
+
const [t, n] = Pe([e]), r = (a) => n((o) => [...o, a]), i = (a) => n((o) => o.slice(0, a + 1));
|
|
1279
1292
|
return /* @__PURE__ */ E(K8.Provider, { value: { crumbs: t, push: r, slice: i }, children: /* @__PURE__ */ E(fG, {}) });
|
|
1280
1293
|
}
|
|
1281
1294
|
function dG({ value: e }) {
|
|
1282
|
-
const { t } = Ct(), [n, r] =
|
|
1295
|
+
const { t } = Ct(), [n, r] = Pe(!1), i = () => {
|
|
1283
1296
|
e && (r(!0), navigator.clipboard.writeText(e));
|
|
1284
1297
|
};
|
|
1285
1298
|
return Me(() => {
|
|
@@ -1339,7 +1352,7 @@ function hG({
|
|
|
1339
1352
|
);
|
|
1340
1353
|
}
|
|
1341
1354
|
function eT({ Icon: e, label: t, menuContent: n, centerPopover: r }) {
|
|
1342
|
-
const { t: i } = Ct(), [a, o] =
|
|
1355
|
+
const { t: i } = Ct(), [a, o] = Pe(null), s = (l) => {
|
|
1343
1356
|
o(l.currentTarget);
|
|
1344
1357
|
}, u = () => {
|
|
1345
1358
|
o(null);
|
|
@@ -1459,7 +1472,7 @@ function $Te({ children: e, Logo: t, theme: n, isIdle: r }) {
|
|
|
1459
1472
|
);
|
|
1460
1473
|
}
|
|
1461
1474
|
function jTe({ onClick: e, isIdle: t }) {
|
|
1462
|
-
const [n] = qs(), [r] = Q2(), [i, a] =
|
|
1475
|
+
const [n] = qs(), [r] = Q2(), [i, a] = Pe(r);
|
|
1463
1476
|
Me(() => {
|
|
1464
1477
|
t && r && (a(!1), e());
|
|
1465
1478
|
}, [t, r, e]), Me(() => {
|
|
@@ -5190,7 +5203,7 @@ function $Y() {
|
|
|
5190
5203
|
}
|
|
5191
5204
|
var Mp = 1;
|
|
5192
5205
|
function iM() {
|
|
5193
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] =
|
|
5206
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = Pe({
|
|
5194
5207
|
height: 0,
|
|
5195
5208
|
left: 0,
|
|
5196
5209
|
top: 0,
|
|
@@ -9036,7 +9049,7 @@ var n9 = (e, t, n, r, i) => {
|
|
|
9036
9049
|
animationDuration: 1500,
|
|
9037
9050
|
animationEasing: "ease"
|
|
9038
9051
|
}, UM = (e) => {
|
|
9039
|
-
var t = wi(e, eQ), n = At(null), [r, i] =
|
|
9052
|
+
var t = wi(e, eQ), n = At(null), [r, i] = Pe(-1);
|
|
9040
9053
|
Me(() => {
|
|
9041
9054
|
if (n.current && n.current.getTotalLength)
|
|
9042
9055
|
try {
|
|
@@ -14894,7 +14907,7 @@ var oc = /* @__PURE__ */ Qr((e, t) => {
|
|
|
14894
14907
|
style: m = {}
|
|
14895
14908
|
} = e, y = At(null), v = At();
|
|
14896
14909
|
v.current = g, hV(t, () => y.current);
|
|
14897
|
-
var [b, _] =
|
|
14910
|
+
var [b, _] = Pe({
|
|
14898
14911
|
containerWidth: r.width,
|
|
14899
14912
|
containerHeight: r.height
|
|
14900
14913
|
}), x = at((A, O) => {
|
|
@@ -16267,7 +16280,7 @@ var H5 = (e, t, n, r, i) => {
|
|
|
16267
16280
|
animationDuration: 1500,
|
|
16268
16281
|
animationEasing: "ease"
|
|
16269
16282
|
}, dse = (e) => {
|
|
16270
|
-
var t = wi(e, fse), n = At(), [r, i] =
|
|
16283
|
+
var t = wi(e, fse), n = At(), [r, i] = Pe(-1);
|
|
16271
16284
|
Me(() => {
|
|
16272
16285
|
if (n.current && n.current.getTotalLength)
|
|
16273
16286
|
try {
|
|
@@ -16811,7 +16824,7 @@ function jse(e) {
|
|
|
16811
16824
|
inactiveShape: c,
|
|
16812
16825
|
onAnimationStart: l,
|
|
16813
16826
|
onAnimationEnd: d
|
|
16814
|
-
} = t, h = Sh(t, "recharts-pie-"), g = n.current, [m, y] =
|
|
16827
|
+
} = t, h = Sh(t, "recharts-pie-"), g = n.current, [m, y] = Pe(!0), v = at(() => {
|
|
16815
16828
|
typeof d == "function" && d(), y(!1);
|
|
16816
16829
|
}, [d]), b = at(() => {
|
|
16817
16830
|
typeof l == "function" && l(), y(!0);
|
|
@@ -17691,7 +17704,7 @@ function Mue(e) {
|
|
|
17691
17704
|
animationEasing: u,
|
|
17692
17705
|
onAnimationEnd: c,
|
|
17693
17706
|
onAnimationStart: l
|
|
17694
|
-
} = t, d = n.current, h = Sh(t, "recharts-bar-"), [g, m] =
|
|
17707
|
+
} = t, d = n.current, h = Sh(t, "recharts-bar-"), [g, m] = Pe(!1), y = at(() => {
|
|
17695
17708
|
typeof c == "function" && c(), m(!1);
|
|
17696
17709
|
}, [c]), v = at(() => {
|
|
17697
17710
|
typeof l == "function" && l(), m(!0);
|
|
@@ -18370,7 +18383,7 @@ var gce = function(t) {
|
|
|
18370
18383
|
} = AD.actions, _ce = AD.reducer, OD = /* @__PURE__ */ yn(void 0), xce = (e) => {
|
|
18371
18384
|
var {
|
|
18372
18385
|
children: t
|
|
18373
|
-
} = e, [n] =
|
|
18386
|
+
} = e, [n] = Pe("".concat(Ho("recharts"), "-clip")), r = _m();
|
|
18374
18387
|
if (r == null)
|
|
18375
18388
|
return null;
|
|
18376
18389
|
var {
|
|
@@ -19843,7 +19856,7 @@ function Mle(e) {
|
|
|
19843
19856
|
height: m,
|
|
19844
19857
|
onAnimationEnd: y,
|
|
19845
19858
|
onAnimationStart: v
|
|
19846
|
-
} = n, b = i.current, _ = Sh(n, "recharts-line-"), [x, S] =
|
|
19859
|
+
} = n, b = i.current, _ = Sh(n, "recharts-line-"), [x, S] = Pe(!1), A = at(() => {
|
|
19847
19860
|
typeof y == "function" && y(), S(!1);
|
|
19848
19861
|
}, [y]), O = at(() => {
|
|
19849
19862
|
typeof v == "function" && v(), S(!0);
|
|
@@ -20451,7 +20464,7 @@ function efe(e) {
|
|
|
20451
20464
|
animationEasing: d,
|
|
20452
20465
|
onAnimationStart: h,
|
|
20453
20466
|
onAnimationEnd: g
|
|
20454
|
-
} = r, m = Sh(r, "recharts-area-"), [y, v] =
|
|
20467
|
+
} = r, m = Sh(r, "recharts-area-"), [y, v] = Pe(!0), b = at(() => {
|
|
20455
20468
|
typeof g == "function" && g(), v(!1);
|
|
20456
20469
|
}, [g]), _ = at(() => {
|
|
20457
20470
|
typeof h == "function" && h(), v(!0);
|
|
@@ -21169,7 +21182,7 @@ function Wfe(e) {
|
|
|
21169
21182
|
animationBegin: a,
|
|
21170
21183
|
animationDuration: o,
|
|
21171
21184
|
animationEasing: s
|
|
21172
|
-
} = n, u = t.current, c = Sh(n, "recharts-scatter-"), [l, d] =
|
|
21185
|
+
} = n, u = t.current, c = Sh(n, "recharts-scatter-"), [l, d] = Pe(!1), h = at(() => {
|
|
21173
21186
|
d(!1);
|
|
21174
21187
|
}, []), g = at(() => {
|
|
21175
21188
|
d(!0);
|
|
@@ -22328,7 +22341,7 @@ var Hde = {
|
|
|
22328
22341
|
}, r), n);
|
|
22329
22342
|
});
|
|
22330
22343
|
function Gde() {
|
|
22331
|
-
var e = an(), [t, n] =
|
|
22344
|
+
var e = an(), [t, n] = Pe(null), r = Re(_Z);
|
|
22332
22345
|
return Me(() => {
|
|
22333
22346
|
if (t != null) {
|
|
22334
22347
|
var i = t.getBoundingClientRect(), a = i.width / t.offsetWidth;
|
|
@@ -22392,7 +22405,7 @@ var Jde = /* @__PURE__ */ Qr((e, t) => {
|
|
|
22392
22405
|
onTouchStart: y,
|
|
22393
22406
|
style: v,
|
|
22394
22407
|
width: b
|
|
22395
|
-
} = e, _ = an(), [x, S] =
|
|
22408
|
+
} = e, _ = an(), [x, S] = Pe(null), [A, O] = Pe(null);
|
|
22396
22409
|
vae();
|
|
22397
22410
|
var P = Gde(), M = at((V) => {
|
|
22398
22411
|
P(V), typeof t == "function" && t(V), S(V), O(V);
|
|
@@ -30993,7 +31006,7 @@ function w_e() {
|
|
|
30993
31006
|
["partial", A],
|
|
30994
31007
|
["partialRight", O],
|
|
30995
31008
|
["rearg", M]
|
|
30996
|
-
], ne = "[object Arguments]", pe = "[object Array]", me = "[object AsyncFunction]", _e = "[object Boolean]", ue = "[object Date]", he = "[object DOMException]", Ae = "[object Error]", ie = "[object Function]", De = "[object GeneratorFunction]", Be = "[object Map]", et = "[object Number]", Je = "[object Null]", Ee = "[object Object]", st = "[object Promise]", bn = "[object Proxy]", Ot = "[object RegExp]", sn = "[object Set]", wn = "[object String]", Rr = "[object Symbol]", wr = "[object Undefined]", Dr = "[object WeakMap]", ef = "[object WeakSet]", Zs = "[object ArrayBuffer]", is = "[object DataView]", tf = "[object Float32Array]", nf = "[object Float64Array]", rf = "[object Int8Array]", af = "[object Int16Array]", of = "[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), ft = RegExp(We.source), Fe = /<%-([\s\S]+?)%>/g, lt = /<%([\s\S]+?)%>/g, _t = /<%=([\s\S]+?)%>/g, Wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, un = /^\w*$/, Qn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bn = /[\\^$.*+?()[\]{}|]/g, _n = RegExp(Bn.source), Ye = /^\s+/, Ne = /\s/, jt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, qt = /\{\n\/\* \[wrapped with (.+)\] \*/, xn = /,? & /, Jt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ge = /[()=,{}\[\]\/\s]/, cn = /\\(\\)?/g, mt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ut = /\w*$/, tt = /^[-+]0x[0-9a-f]+$/i, dt = /^0b[01]+$/i, ur = /^\[object .+?Constructor\]$/, gn = /^0o[0-7]+$/i, Mt = /^(?:0|[1-9]\d*)$/, de = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, le = /($^)/, ce = /['\n\r\u2028\u2029\\]/g, ze = "\\ud800-\\udfff", Kt = "\\u0300-\\u036f", Nr = "\\ufe20-\\ufe2f", kt = "\\u20d0-\\u20ff", ha = Kt + Nr + kt, ka = "\\u2700-\\u27bf", cr = "a-z\\xdf-\\xf6\\xf8-\\xff", as = "\\xac\\xb1\\xd7\\xf7",
|
|
31009
|
+
], ne = "[object Arguments]", pe = "[object Array]", me = "[object AsyncFunction]", _e = "[object Boolean]", ue = "[object Date]", he = "[object DOMException]", Ae = "[object Error]", ie = "[object Function]", De = "[object GeneratorFunction]", Be = "[object Map]", et = "[object Number]", Je = "[object Null]", Ee = "[object Object]", st = "[object Promise]", bn = "[object Proxy]", Ot = "[object RegExp]", sn = "[object Set]", wn = "[object String]", Rr = "[object Symbol]", wr = "[object Undefined]", Dr = "[object WeakMap]", ef = "[object WeakSet]", Zs = "[object ArrayBuffer]", is = "[object DataView]", tf = "[object Float32Array]", nf = "[object Float64Array]", rf = "[object Int8Array]", af = "[object Int16Array]", of = "[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), ft = RegExp(We.source), Fe = /<%-([\s\S]+?)%>/g, lt = /<%([\s\S]+?)%>/g, _t = /<%=([\s\S]+?)%>/g, Wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, un = /^\w*$/, Qn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bn = /[\\^$.*+?()[\]{}|]/g, _n = RegExp(Bn.source), Ye = /^\s+/, Ne = /\s/, jt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, qt = /\{\n\/\* \[wrapped with (.+)\] \*/, xn = /,? & /, Jt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ge = /[()=,{}\[\]\/\s]/, cn = /\\(\\)?/g, mt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ut = /\w*$/, tt = /^[-+]0x[0-9a-f]+$/i, dt = /^0b[01]+$/i, ur = /^\[object .+?Constructor\]$/, gn = /^0o[0-7]+$/i, Mt = /^(?:0|[1-9]\d*)$/, de = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, le = /($^)/, ce = /['\n\r\u2028\u2029\\]/g, ze = "\\ud800-\\udfff", Kt = "\\u0300-\\u036f", Nr = "\\ufe20-\\ufe2f", kt = "\\u20d0-\\u20ff", ha = Kt + Nr + kt, ka = "\\u2700-\\u27bf", cr = "a-z\\xdf-\\xf6\\xf8-\\xff", as = "\\xac\\xb1\\xd7\\xf7", Ce = "\\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", ct = as + Ce + Se + fe, Ue = "['’]", yt = "[" + ze + "]", bt = "[" + ct + "]", ht = "[" + ha + "]", Yt = "\\d+", Qt = "[" + ka + "]", pa = "[" + cr + "]", _i = "[^" + ze + ct + Yt + ka + cr + Oe + "]", Ia = "\\ud83c[\\udffb-\\udfff]", sf = "(?:" + ht + "|" + Ia + ")", uf = "[^" + ze + "]", cf = "(?:\\ud83c[\\udde6-\\uddff]){2}", Js = "[\\ud800-\\udbff][\\udc00-\\udfff]", uo = "[" + Oe + "]", co = "\\u200d", lf = "(?:" + pa + "|" + _i + ")", pc = "(?:" + uo + "|" + _i + ")", ff = "(?:" + Ue + "(?:d|ll|m|re|s|t|ve))?", df = "(?:" + Ue + "(?:D|LL|M|RE|S|T|VE))?", os = sf + "?", ti = "[" + Xe + "]?", zi = "(?:" + co + "(?:" + [uf, cf, Js].join("|") + ")" + ti + os + ")*", mj = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", yj = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", RA = ti + os + zi, bj = "(?:" + [Qt, cf, Js].join("|") + ")" + RA, wj = "(?:" + [uf + ht + "?", ht, cf, Js, yt].join("|") + ")", _j = RegExp(Ue, "g"), xj = RegExp(ht, "g"), Zm = RegExp(Ia + "(?=" + Ia + ")|" + wj + RA, "g"), Ej = RegExp([
|
|
30997
31010
|
uo + "?" + pa + "+" + ff + "(?=" + [bt, uo, "$"].join("|") + ")",
|
|
30998
31011
|
pc + "+" + df + "(?=" + [bt, uo + lf, "$"].join("|") + ")",
|
|
30999
31012
|
uo + "?" + lf + "+" + ff,
|
|
@@ -35422,7 +35435,7 @@ function O_e() {
|
|
|
35422
35435
|
var T_e = O_e();
|
|
35423
35436
|
const P_e = /* @__PURE__ */ no(T_e);
|
|
35424
35437
|
function nPe({ value: e, label: t, width: n }) {
|
|
35425
|
-
const r = f0(), [i, a] =
|
|
35438
|
+
const r = f0(), [i, a] = Pe(0);
|
|
35426
35439
|
return Me(() => {
|
|
35427
35440
|
const o = setTimeout(() => a(e), 50);
|
|
35428
35441
|
return () => clearTimeout(o);
|
|
@@ -36364,7 +36377,7 @@ function L_e({
|
|
|
36364
36377
|
notes: o,
|
|
36365
36378
|
defaultNotesValue: s
|
|
36366
36379
|
}) {
|
|
36367
|
-
const { t: u } = Ct(), [c, l] =
|
|
36380
|
+
const { t: u } = Ct(), [c, l] = Pe(s || ""), d = (g) => {
|
|
36368
36381
|
l(g.target.value);
|
|
36369
36382
|
}, h = () => {
|
|
36370
36383
|
t(), l("");
|
|
@@ -37047,7 +37060,7 @@ function sPe({
|
|
|
37047
37060
|
zIndex: u = 1,
|
|
37048
37061
|
onUpdate: c
|
|
37049
37062
|
}) {
|
|
37050
|
-
const { attributes: l, setNodeRef: d, transform: h, isDragging: g } = K_e({ id: e }), [m, y] =
|
|
37063
|
+
const { attributes: l, setNodeRef: d, transform: h, isDragging: g } = K_e({ id: e }), [m, y] = Pe(t), v = At({
|
|
37051
37064
|
x: t.x,
|
|
37052
37065
|
y: t.y,
|
|
37053
37066
|
width: n * i,
|
|
@@ -37157,7 +37170,7 @@ function bC({
|
|
|
37157
37170
|
onClick: d = () => {
|
|
37158
37171
|
}
|
|
37159
37172
|
}) {
|
|
37160
|
-
const { t: h } = Ct(), [g, m] =
|
|
37173
|
+
const { t: h } = Ct(), [g, m] = Pe(s ?? (l ? [] : "")), y = At(!1), v = (_) => {
|
|
37161
37174
|
const x = _.target.value;
|
|
37162
37175
|
y.current = !0, m(x), u(x);
|
|
37163
37176
|
}, b = () => {
|
|
@@ -37206,7 +37219,7 @@ function r2e({
|
|
|
37206
37219
|
sortKeyOptions: n,
|
|
37207
37220
|
onChange: r
|
|
37208
37221
|
}) {
|
|
37209
|
-
const [i, a] =
|
|
37222
|
+
const [i, a] = Pe(null), [o, s] = Pe(""), [u, c] = Pe(null), [l, d] = Pe("asc");
|
|
37210
37223
|
return Me(() => {
|
|
37211
37224
|
let h = [...e];
|
|
37212
37225
|
o && (h = h.filter(
|
|
@@ -37283,9 +37296,9 @@ function Jv({
|
|
|
37283
37296
|
dependencies: l,
|
|
37284
37297
|
multiple: d
|
|
37285
37298
|
}) {
|
|
37286
|
-
const { t: h } = Ct(), [g, m] =
|
|
37299
|
+
const { t: h } = Ct(), [g, m] = Pe(
|
|
37287
37300
|
d ? i2e(s) || [] : s || null
|
|
37288
|
-
), [y, v] =
|
|
37301
|
+
), [y, v] = Pe(""), [b, _] = Pe(o || []), [x, S] = Pe(!1), [A, O] = j8(y, 600), P = At(!0), M = (B, R) => {
|
|
37289
37302
|
v(R), O(R);
|
|
37290
37303
|
}, $ = (B, R) => {
|
|
37291
37304
|
m(R), u && u(R);
|
|
@@ -37344,7 +37357,7 @@ function Jv({
|
|
|
37344
37357
|
] });
|
|
37345
37358
|
}
|
|
37346
37359
|
function a2e({ id: e, name: t, extValue: n, onChange: r, disabled: i }) {
|
|
37347
|
-
const { t: a } = Ct(), [o, s] =
|
|
37360
|
+
const { t: a } = Ct(), [o, s] = Pe(n || ""), [u] = j8(o), c = (l) => {
|
|
37348
37361
|
s(l?.target.value);
|
|
37349
37362
|
};
|
|
37350
37363
|
return Me(() => {
|
|
@@ -37386,7 +37399,7 @@ function Ed({
|
|
|
37386
37399
|
disabled: h,
|
|
37387
37400
|
views: g
|
|
37388
37401
|
}) {
|
|
37389
|
-
const { t: m, i18n: y } = Ct(), v = a === "dateTime" ? `${Qv()} HH:mm` : a === "time" ? "HH:mm:ss" : Qv(), [b, _] =
|
|
37402
|
+
const { t: m, i18n: y } = Ct(), v = a === "dateTime" ? `${Qv()} HH:mm` : a === "time" ? "HH:mm:ss" : Qv(), [b, _] = Pe(
|
|
37390
37403
|
n ? typeof n == "string" ? xs(n, v, y.language) : xs(new Date(n)) : null
|
|
37391
37404
|
);
|
|
37392
37405
|
Me(() => {
|
|
@@ -37436,7 +37449,7 @@ function w$({
|
|
|
37436
37449
|
options: o,
|
|
37437
37450
|
label: s
|
|
37438
37451
|
}) {
|
|
37439
|
-
const { t: u } = Ct(), [c, l] =
|
|
37452
|
+
const { t: u } = Ct(), [c, l] = Pe(t), d = (h) => {
|
|
37440
37453
|
l(h.target.value), n && n(h.target.value);
|
|
37441
37454
|
};
|
|
37442
37455
|
return /* @__PURE__ */ oe(rh, { disabled: i, required: a, children: [
|
|
@@ -37696,7 +37709,7 @@ function hPe({
|
|
|
37696
37709
|
listToFilter: e,
|
|
37697
37710
|
onChangeListFiltered: t
|
|
37698
37711
|
}) {
|
|
37699
|
-
const { t: n } = Ct(), [r, i] =
|
|
37712
|
+
const { t: n } = Ct(), [r, i] = Pe([]), [a, o] = Pe(""), s = (u) => {
|
|
37700
37713
|
o(u.target.value);
|
|
37701
37714
|
};
|
|
37702
37715
|
return Me(() => {
|
|
@@ -37775,7 +37788,7 @@ function gPe({
|
|
|
37775
37788
|
setCheckedItems: s,
|
|
37776
37789
|
defaultChecked: u = []
|
|
37777
37790
|
}) {
|
|
37778
|
-
const { t: c } = Ct(), [l, d] =
|
|
37791
|
+
const { t: c } = Ct(), [l, d] = Pe(u);
|
|
37779
37792
|
return Me(() => {
|
|
37780
37793
|
s(l);
|
|
37781
37794
|
}, [l, s]), /* @__PURE__ */ oe(
|
|
@@ -37907,7 +37920,7 @@ function vPe({
|
|
|
37907
37920
|
disabled: a = !1,
|
|
37908
37921
|
onChange: o
|
|
37909
37922
|
}) {
|
|
37910
|
-
const [s, u] =
|
|
37923
|
+
const [s, u] = Pe(r.toString()), c = (h) => {
|
|
37911
37924
|
(s || h !== 0) && u((g) => g === "0" ? h.toString() : g + h.toString());
|
|
37912
37925
|
}, l = () => {
|
|
37913
37926
|
s !== "0" && u((h) => h.substring(0, h.length - 1)), s.length === 1 && u("0");
|
|
@@ -38346,7 +38359,7 @@ function P2e({
|
|
|
38346
38359
|
reverse: h = !1,
|
|
38347
38360
|
fallback: g = void 0
|
|
38348
38361
|
}) {
|
|
38349
|
-
const m = At(null), [y, v] =
|
|
38362
|
+
const m = At(null), [y, v] = Pe(!1);
|
|
38350
38363
|
return J2(), Me(() => {
|
|
38351
38364
|
const b = m.current;
|
|
38352
38365
|
if (!b) return;
|
|
@@ -38415,7 +38428,7 @@ function yPe({
|
|
|
38415
38428
|
renderItem: n,
|
|
38416
38429
|
onSelect: r
|
|
38417
38430
|
}) {
|
|
38418
|
-
const [i, a] =
|
|
38431
|
+
const [i, a] = Pe(e);
|
|
38419
38432
|
return /* @__PURE__ */ oe(sa, { width: "100%", padding: "8px", children: [
|
|
38420
38433
|
t && /* @__PURE__ */ E(
|
|
38421
38434
|
r2e,
|
|
@@ -38446,7 +38459,7 @@ function yPe({
|
|
|
38446
38459
|
] });
|
|
38447
38460
|
}
|
|
38448
38461
|
function bPe({ speed: e = 30, children: t }) {
|
|
38449
|
-
const n = At(null), r = At(null), [i, a] =
|
|
38462
|
+
const n = At(null), r = At(null), [i, a] = Pe(!1), [o, s] = Pe(0);
|
|
38450
38463
|
return Me(() => {
|
|
38451
38464
|
const u = r.current, c = n.current;
|
|
38452
38465
|
if (!u || !c) return;
|
|
@@ -38505,7 +38518,7 @@ function wPe({
|
|
|
38505
38518
|
pageColor: i = "primary.main",
|
|
38506
38519
|
height: a = "100%"
|
|
38507
38520
|
}) {
|
|
38508
|
-
const o = v0("(max-width: 600px)"), [s, u] =
|
|
38521
|
+
const o = v0("(max-width: 600px)"), [s, u] = Pe(1), c = (d, h) => {
|
|
38509
38522
|
u(h), r && r(h);
|
|
38510
38523
|
}, l = Math.ceil(e.length / t);
|
|
38511
38524
|
return /* @__PURE__ */ oe(sa, { gap: "1vh", alignItems: "center", paddingTop: "1vh", height: a, children: [
|
|
@@ -38666,7 +38679,7 @@ function I2e({
|
|
|
38666
38679
|
fallback: S
|
|
38667
38680
|
}) {
|
|
38668
38681
|
J2();
|
|
38669
|
-
const A = At(null), [O, P] =
|
|
38682
|
+
const A = At(null), [O, P] = Pe(0), [M, $] = Pe(!1), [B, R] = Pe(0), H = (N, q) => {
|
|
38670
38683
|
P(q);
|
|
38671
38684
|
}, D = at(() => {
|
|
38672
38685
|
if (M || !A.current || !_ || typeof x != "function") return;
|
|
@@ -38778,7 +38791,7 @@ const EC = (e, t) => {
|
|
|
38778
38791
|
}), n;
|
|
38779
38792
|
};
|
|
38780
38793
|
function R2e(e, t, { keyName: n, label: r, defaultValue: i, options: a, dependsOn: o }, s, u) {
|
|
38781
|
-
const [c, l] =
|
|
38794
|
+
const [c, l] = Pe(
|
|
38782
38795
|
() => EC(s, o)
|
|
38783
38796
|
), d = mA(), h = (v) => d(`api/v1/RAD/Options/${t}/${n}`, {
|
|
38784
38797
|
method: "POST",
|
|
@@ -38905,7 +38918,7 @@ function R2e(e, t, { keyName: n, label: r, defaultValue: i, options: a, dependsO
|
|
|
38905
38918
|
}
|
|
38906
38919
|
}
|
|
38907
38920
|
function D2e({ data: e, structure: t }) {
|
|
38908
|
-
const [n, r] =
|
|
38921
|
+
const [n, r] = Pe({}), { settings: i } = U8(), [a, o] = Pe(e), s = mA();
|
|
38909
38922
|
return Me(() => {
|
|
38910
38923
|
e && s(`api/v1/RAD/Options/${i.contextKey}`, {
|
|
38911
38924
|
method: "POST",
|
|
@@ -39098,7 +39111,7 @@ function W2e({
|
|
|
39098
39111
|
}) {
|
|
39099
39112
|
const {
|
|
39100
39113
|
i18n: { language: u }
|
|
39101
|
-
} = Ct(), c = X2([]), [l, d] =
|
|
39114
|
+
} = Ct(), c = X2([]), [l, d] = Pe(), [h, g] = Pe(null), [m, y] = Pe(null), [v, b] = Pe(null), _ = mA(), x = () => {
|
|
39102
39115
|
if (!r.columns.filter((I) => I.dependsOn.length > 0).length) return {};
|
|
39103
39116
|
const G = {};
|
|
39104
39117
|
return Object.keys(r.paging.filters).forEach((I) => {
|
|
@@ -40571,7 +40584,7 @@ function Txe(e, t) {
|
|
|
40571
40584
|
}), r;
|
|
40572
40585
|
}
|
|
40573
40586
|
function APe({ blob: e, ruleSet: t, dataSource: n, callBacksSet: r = {} }) {
|
|
40574
|
-
const [i] = qs(), [a, o] =
|
|
40587
|
+
const [i] = qs(), [a, o] = Pe(null), [s, u] = Pe();
|
|
40575
40588
|
Me(() => () => {
|
|
40576
40589
|
a && URL.revokeObjectURL(a), o(null);
|
|
40577
40590
|
}, []), Me(() => {
|
|
@@ -47414,7 +47427,7 @@ function TOe() {
|
|
|
47414
47427
|
const Xe = typeof Oe;
|
|
47415
47428
|
return Xe === "function" && fe.callback === Oe || Xe === "object" && fe.originalDelegate === Oe;
|
|
47416
47429
|
}, ka = Ne?.diff || ha, cr = Zone[_("UNPATCHED_EVENTS")], as = Q[_("PASSIVE_EVENTS")];
|
|
47417
|
-
function
|
|
47430
|
+
function Ce(fe) {
|
|
47418
47431
|
if (typeof fe == "object" && fe !== null) {
|
|
47419
47432
|
const Oe = { ...fe };
|
|
47420
47433
|
return fe.signal && (Oe.signal = fe.signal), Oe;
|
|
@@ -47439,7 +47452,7 @@ function TOe() {
|
|
|
47439
47452
|
}
|
|
47440
47453
|
if (qt && !qt(fe, Yt, bt, arguments))
|
|
47441
47454
|
return;
|
|
47442
|
-
const pa = !!as && as.indexOf(ht) !== -1, _i =
|
|
47455
|
+
const pa = !!as && as.indexOf(ht) !== -1, _i = Ce(Mt(arguments[2], pa)), Ia = _i?.signal;
|
|
47443
47456
|
if (Ia?.aborted)
|
|
47444
47457
|
return;
|
|
47445
47458
|
if (cr) {
|
|
@@ -47858,25 +47871,25 @@ function TOe() {
|
|
|
47858
47871
|
function tf(Q) {
|
|
47859
47872
|
Q.__load_patch("ZoneAwarePromise", (te, ye, J) => {
|
|
47860
47873
|
const ge = Object.getOwnPropertyDescriptor, Te = Object.defineProperty;
|
|
47861
|
-
function Ve(
|
|
47862
|
-
if (
|
|
47863
|
-
const Se =
|
|
47864
|
-
return (Se || "") + ": " + JSON.stringify(
|
|
47874
|
+
function Ve(Ce) {
|
|
47875
|
+
if (Ce && Ce.toString === Object.prototype.toString) {
|
|
47876
|
+
const Se = Ce.constructor && Ce.constructor.name;
|
|
47877
|
+
return (Se || "") + ": " + JSON.stringify(Ce);
|
|
47865
47878
|
}
|
|
47866
|
-
return
|
|
47879
|
+
return Ce ? Ce.toString() : Object.prototype.toString.call(Ce);
|
|
47867
47880
|
}
|
|
47868
47881
|
const We = J.symbol, Ke = [], ft = te[We("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")] !== !1, Fe = We("Promise"), lt = We("then"), _t = "__creationTrace__";
|
|
47869
|
-
J.onUnhandledError = (
|
|
47882
|
+
J.onUnhandledError = (Ce) => {
|
|
47870
47883
|
if (J.showUncaughtError()) {
|
|
47871
|
-
const Se =
|
|
47872
|
-
Se ? console.error("Unhandled Promise rejection:", Se instanceof Error ? Se.message : Se, "; Zone:",
|
|
47884
|
+
const Se = Ce && Ce.rejection;
|
|
47885
|
+
Se ? console.error("Unhandled Promise rejection:", Se instanceof Error ? Se.message : Se, "; Zone:", Ce.zone.name, "; Task:", Ce.task && Ce.task.source, "; Value:", Se, Se instanceof Error ? Se.stack : void 0) : console.error(Ce);
|
|
47873
47886
|
}
|
|
47874
47887
|
}, J.microtaskDrainDone = () => {
|
|
47875
47888
|
for (; Ke.length; ) {
|
|
47876
|
-
const
|
|
47889
|
+
const Ce = Ke.shift();
|
|
47877
47890
|
try {
|
|
47878
|
-
|
|
47879
|
-
throw
|
|
47891
|
+
Ce.zone.runGuarded(() => {
|
|
47892
|
+
throw Ce.throwOriginal ? Ce.rejection : Ce;
|
|
47880
47893
|
});
|
|
47881
47894
|
} catch (Se) {
|
|
47882
47895
|
un(Se);
|
|
@@ -47884,68 +47897,68 @@ function TOe() {
|
|
|
47884
47897
|
}
|
|
47885
47898
|
};
|
|
47886
47899
|
const Wt = We("unhandledPromiseRejectionHandler");
|
|
47887
|
-
function un(
|
|
47888
|
-
J.onUnhandledError(
|
|
47900
|
+
function un(Ce) {
|
|
47901
|
+
J.onUnhandledError(Ce);
|
|
47889
47902
|
try {
|
|
47890
47903
|
const Se = ye[Wt];
|
|
47891
|
-
typeof Se == "function" && Se.call(this,
|
|
47904
|
+
typeof Se == "function" && Se.call(this, Ce);
|
|
47892
47905
|
} catch {
|
|
47893
47906
|
}
|
|
47894
47907
|
}
|
|
47895
|
-
function Qn(
|
|
47896
|
-
return
|
|
47908
|
+
function Qn(Ce) {
|
|
47909
|
+
return Ce && typeof Ce.then == "function";
|
|
47897
47910
|
}
|
|
47898
|
-
function Bn(
|
|
47899
|
-
return
|
|
47911
|
+
function Bn(Ce) {
|
|
47912
|
+
return Ce;
|
|
47900
47913
|
}
|
|
47901
|
-
function _n(
|
|
47902
|
-
return kt.reject(
|
|
47914
|
+
function _n(Ce) {
|
|
47915
|
+
return kt.reject(Ce);
|
|
47903
47916
|
}
|
|
47904
47917
|
const Ye = We("state"), Ne = We("value"), jt = We("finally"), qt = We("parentPromiseValue"), xn = We("parentPromiseState"), Jt = "Promise.then", Ge = null, cn = !0, mt = !1, ut = 0;
|
|
47905
|
-
function tt(
|
|
47918
|
+
function tt(Ce, Se) {
|
|
47906
47919
|
return (fe) => {
|
|
47907
47920
|
try {
|
|
47908
|
-
Mt(
|
|
47921
|
+
Mt(Ce, Se, fe);
|
|
47909
47922
|
} catch (Oe) {
|
|
47910
|
-
Mt(
|
|
47923
|
+
Mt(Ce, !1, Oe);
|
|
47911
47924
|
}
|
|
47912
47925
|
};
|
|
47913
47926
|
}
|
|
47914
47927
|
const dt = function() {
|
|
47915
|
-
let
|
|
47928
|
+
let Ce = !1;
|
|
47916
47929
|
return function(fe) {
|
|
47917
47930
|
return function() {
|
|
47918
|
-
|
|
47931
|
+
Ce || (Ce = !0, fe.apply(null, arguments));
|
|
47919
47932
|
};
|
|
47920
47933
|
};
|
|
47921
47934
|
}, ur = "Promise resolved with itself", gn = We("currentTaskTrace");
|
|
47922
|
-
function Mt(
|
|
47935
|
+
function Mt(Ce, Se, fe) {
|
|
47923
47936
|
const Oe = dt();
|
|
47924
|
-
if (
|
|
47937
|
+
if (Ce === fe)
|
|
47925
47938
|
throw new TypeError(ur);
|
|
47926
|
-
if (
|
|
47939
|
+
if (Ce[Ye] === Ge) {
|
|
47927
47940
|
let Xe = null;
|
|
47928
47941
|
try {
|
|
47929
47942
|
(typeof fe == "object" || typeof fe == "function") && (Xe = fe && fe.then);
|
|
47930
47943
|
} catch (ct) {
|
|
47931
47944
|
return Oe(() => {
|
|
47932
|
-
Mt(
|
|
47933
|
-
})(),
|
|
47945
|
+
Mt(Ce, !1, ct);
|
|
47946
|
+
})(), Ce;
|
|
47934
47947
|
}
|
|
47935
47948
|
if (Se !== mt && fe instanceof kt && fe.hasOwnProperty(Ye) && fe.hasOwnProperty(Ne) && fe[Ye] !== Ge)
|
|
47936
|
-
le(fe), Mt(
|
|
47949
|
+
le(fe), Mt(Ce, fe[Ye], fe[Ne]);
|
|
47937
47950
|
else if (Se !== mt && typeof Xe == "function")
|
|
47938
47951
|
try {
|
|
47939
|
-
Xe.call(fe, Oe(tt(
|
|
47952
|
+
Xe.call(fe, Oe(tt(Ce, Se)), Oe(tt(Ce, !1)));
|
|
47940
47953
|
} catch (ct) {
|
|
47941
47954
|
Oe(() => {
|
|
47942
|
-
Mt(
|
|
47955
|
+
Mt(Ce, !1, ct);
|
|
47943
47956
|
})();
|
|
47944
47957
|
}
|
|
47945
47958
|
else {
|
|
47946
|
-
|
|
47947
|
-
const ct =
|
|
47948
|
-
if (
|
|
47959
|
+
Ce[Ye] = Se;
|
|
47960
|
+
const ct = Ce[Ne];
|
|
47961
|
+
if (Ce[Ne] = fe, Ce[jt] === jt && Se === cn && (Ce[Ye] = Ce[xn], Ce[Ne] = Ce[qt]), Se === mt && fe instanceof Error) {
|
|
47949
47962
|
const Ue = ye.currentTask && ye.currentTask.data && ye.currentTask.data[_t];
|
|
47950
47963
|
Ue && Te(fe, gn, {
|
|
47951
47964
|
configurable: !0,
|
|
@@ -47955,9 +47968,9 @@ function TOe() {
|
|
|
47955
47968
|
});
|
|
47956
47969
|
}
|
|
47957
47970
|
for (let Ue = 0; Ue < ct.length; )
|
|
47958
|
-
ce(
|
|
47971
|
+
ce(Ce, ct[Ue++], ct[Ue++], ct[Ue++], ct[Ue++]);
|
|
47959
47972
|
if (ct.length == 0 && Se == mt) {
|
|
47960
|
-
|
|
47973
|
+
Ce[Ye] = ut;
|
|
47961
47974
|
let Ue = fe;
|
|
47962
47975
|
try {
|
|
47963
47976
|
throw new Error("Uncaught (in promise): " + Ve(fe) + (fe && fe.stack ? `
|
|
@@ -47965,31 +47978,31 @@ function TOe() {
|
|
|
47965
47978
|
} catch (yt) {
|
|
47966
47979
|
Ue = yt;
|
|
47967
47980
|
}
|
|
47968
|
-
ft && (Ue.throwOriginal = !0), Ue.rejection = fe, Ue.promise =
|
|
47981
|
+
ft && (Ue.throwOriginal = !0), Ue.rejection = fe, Ue.promise = Ce, Ue.zone = ye.current, Ue.task = ye.currentTask, Ke.push(Ue), J.scheduleMicroTask();
|
|
47969
47982
|
}
|
|
47970
47983
|
}
|
|
47971
47984
|
}
|
|
47972
|
-
return
|
|
47985
|
+
return Ce;
|
|
47973
47986
|
}
|
|
47974
47987
|
const de = We("rejectionHandledHandler");
|
|
47975
|
-
function le(
|
|
47976
|
-
if (
|
|
47988
|
+
function le(Ce) {
|
|
47989
|
+
if (Ce[Ye] === ut) {
|
|
47977
47990
|
try {
|
|
47978
47991
|
const Se = ye[de];
|
|
47979
|
-
Se && typeof Se == "function" && Se.call(this, { rejection:
|
|
47992
|
+
Se && typeof Se == "function" && Se.call(this, { rejection: Ce[Ne], promise: Ce });
|
|
47980
47993
|
} catch {
|
|
47981
47994
|
}
|
|
47982
|
-
|
|
47995
|
+
Ce[Ye] = mt;
|
|
47983
47996
|
for (let Se = 0; Se < Ke.length; Se++)
|
|
47984
|
-
|
|
47997
|
+
Ce === Ke[Se].promise && Ke.splice(Se, 1);
|
|
47985
47998
|
}
|
|
47986
47999
|
}
|
|
47987
|
-
function ce(
|
|
47988
|
-
le(
|
|
47989
|
-
const ct =
|
|
48000
|
+
function ce(Ce, Se, fe, Oe, Xe) {
|
|
48001
|
+
le(Ce);
|
|
48002
|
+
const ct = Ce[Ye], Ue = ct ? typeof Oe == "function" ? Oe : Bn : typeof Xe == "function" ? Xe : _n;
|
|
47990
48003
|
Se.scheduleMicroTask(Jt, () => {
|
|
47991
48004
|
try {
|
|
47992
|
-
const yt =
|
|
48005
|
+
const yt = Ce[Ne], bt = !!fe && jt === fe[jt];
|
|
47993
48006
|
bt && (fe[qt] = yt, fe[xn] = ct);
|
|
47994
48007
|
const ht = Se.run(Ue, void 0, bt && Ue !== _n && Ue !== Bn ? [] : [yt]);
|
|
47995
48008
|
Mt(fe, !0, ht);
|
|
@@ -48124,28 +48137,28 @@ function TOe() {
|
|
|
48124
48137
|
const ha = te[Fe] = te.Promise;
|
|
48125
48138
|
te.Promise = kt;
|
|
48126
48139
|
const ka = We("thenPatched");
|
|
48127
|
-
function cr(
|
|
48128
|
-
const Se =
|
|
48140
|
+
function cr(Ce) {
|
|
48141
|
+
const Se = Ce.prototype, fe = ge(Se, "then");
|
|
48129
48142
|
if (fe && (fe.writable === !1 || !fe.configurable))
|
|
48130
48143
|
return;
|
|
48131
48144
|
const Oe = Se.then;
|
|
48132
|
-
Se[lt] = Oe,
|
|
48145
|
+
Se[lt] = Oe, Ce.prototype.then = function(Xe, ct) {
|
|
48133
48146
|
return new kt((yt, bt) => {
|
|
48134
48147
|
Oe.call(this, yt, bt);
|
|
48135
48148
|
}).then(Xe, ct);
|
|
48136
|
-
},
|
|
48149
|
+
}, Ce[ka] = !0;
|
|
48137
48150
|
}
|
|
48138
48151
|
J.patchThen = cr;
|
|
48139
|
-
function as(
|
|
48152
|
+
function as(Ce) {
|
|
48140
48153
|
return function(Se, fe) {
|
|
48141
|
-
let Oe =
|
|
48154
|
+
let Oe = Ce.apply(Se, fe);
|
|
48142
48155
|
if (Oe instanceof kt)
|
|
48143
48156
|
return Oe;
|
|
48144
48157
|
let Xe = Oe.constructor;
|
|
48145
48158
|
return Xe[ka] || cr(Xe), Oe;
|
|
48146
48159
|
};
|
|
48147
48160
|
}
|
|
48148
|
-
return ha && (cr(ha), F(te, "fetch", (
|
|
48161
|
+
return ha && (cr(ha), F(te, "fetch", (Ce) => as(Ce))), Promise[ye.__symbol__("uncaughtPromiseErrors")] = Ke, kt;
|
|
48149
48162
|
});
|
|
48150
48163
|
}
|
|
48151
48164
|
function nf(Q) {
|