fastapi-rtk 0.0.15 → 0.0.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/fastapi-rtk.es.js +562 -580
- package/dist/fastapi-rtk.umd.js +25 -25
- package/package.json +1 -1
package/dist/fastapi-rtk.es.js
CHANGED
|
@@ -2,8 +2,8 @@ var Dd = Object.defineProperty;
|
|
|
2
2
|
var Md = (e, t, r) => t in e ? Dd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ms = (e, t, r) => (Md(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import * as lt from "react";
|
|
5
|
-
import je, { useState as fe, useRef as Nd, useCallback as Te, useEffect as
|
|
6
|
-
import { Select as Kt, MultiSelect as Fc, PasswordInput as Lc, TextInput as zc, useProps as Be, Modal as Nr, Box as Me, Stack as $o, ScrollArea as Sn, Group as Fr, Button as Yt, Tooltip as mt, ActionIcon as gt, useCombobox as Ld, Pill as ys, Combobox as Er, PillsInput as vs, Flex as Po, Divider as Ia, Text as nt, Popover as ca, Indicator as ci, CloseButton as zd, Loader as Ud, useStyles as ui, Table as
|
|
5
|
+
import je, { useState as fe, useRef as Nd, useCallback as Te, useEffect as $e, useMemo as wt, useReducer as Dc, createContext as Mc, useContext as Co, forwardRef as Nc, createElement as gs, memo as Ao, Fragment as Fd } from "react";
|
|
6
|
+
import { Select as Kt, MultiSelect as Fc, PasswordInput as Lc, TextInput as zc, useProps as Be, Modal as Nr, Box as Me, Stack as $o, ScrollArea as Sn, Group as Fr, Button as Yt, Tooltip as mt, ActionIcon as gt, useCombobox as Ld, Pill as ys, Combobox as Er, PillsInput as vs, Flex as Po, Divider as Ia, Text as nt, Popover as ca, Indicator as ci, CloseButton as zd, Loader as Ud, useStyles as ui, Table as Re, Checkbox as fi, LoadingOverlay as Vd, Tabs as Tr, Paper as Da, Grid as rt, Skeleton as Bd, useMantineTheme as Wd, Pagination as Hd, NumberInput as Gd, Menu as ar, UnstyledButton as qd } from "@mantine/core";
|
|
7
7
|
import { useForm as di } from "@mantine/form";
|
|
8
8
|
import { DateInput as Ro, DateTimePicker as Uc } from "@mantine/dates";
|
|
9
9
|
import { randomId as Gn, useHover as Yd } from "@mantine/hooks";
|
|
@@ -11,7 +11,7 @@ import { withJsonFormsControlProps as fr, JsonFormsDispatch as Kd, useJsonForms
|
|
|
11
11
|
import { rankWith as Ie, isDateControl as Gc, isDateTimeControl as qc, getAjv as Zd, isNumberControl as Yc, isIntegerControl as Kc, isStringControl as Xc, isBooleanControl as Jc, isEnumControl as Zc, createDefaultValue as Qd, Resolve as ep, encode as xs, Paths as Qc, formatErrorMessage as tp, errorsAt as rp, or as np, isObjectArrayControl as op, isPrimitiveArrayControl as ap, and as _s, uiTypeIs as pi, schemaMatches as ip, hasType as sp, schemaSubPathMatches as lp, resolveSchema as cp } from "@jsonforms/core";
|
|
12
12
|
import { withEmotionCache as up, ThemeContext as eu, CacheProvider as fp, Global as dp, css as pp, keyframes as hp } from "@emotion/react";
|
|
13
13
|
import { useNavigate as mp } from "react-router-dom";
|
|
14
|
-
var
|
|
14
|
+
var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
15
15
|
function Ut(e) {
|
|
16
16
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
17
17
|
}
|
|
@@ -53,14 +53,14 @@ function gp() {
|
|
|
53
53
|
Es = 1;
|
|
54
54
|
var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
55
55
|
function i(s, l, c) {
|
|
56
|
-
var u, f = {}, p = null,
|
|
57
|
-
c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (
|
|
56
|
+
var u, f = {}, p = null, g = null;
|
|
57
|
+
c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (g = l.ref);
|
|
58
58
|
for (u in l)
|
|
59
59
|
n.call(l, u) && !a.hasOwnProperty(u) && (f[u] = l[u]);
|
|
60
60
|
if (s && s.defaultProps)
|
|
61
61
|
for (u in l = s.defaultProps, l)
|
|
62
62
|
f[u] === void 0 && (f[u] = l[u]);
|
|
63
|
-
return { $$typeof: t, type: s, key: p, ref:
|
|
63
|
+
return { $$typeof: t, type: s, key: p, ref: g, props: f, _owner: o.current };
|
|
64
64
|
}
|
|
65
65
|
return rn.Fragment = r, rn.jsx = i, rn.jsxs = i, rn;
|
|
66
66
|
}
|
|
@@ -77,11 +77,11 @@ var nn = {};
|
|
|
77
77
|
var Ts;
|
|
78
78
|
function yp() {
|
|
79
79
|
return Ts || (Ts = 1, process.env.NODE_ENV !== "production" && function() {
|
|
80
|
-
var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"),
|
|
80
|
+
var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, h = "@@iterator";
|
|
81
81
|
function b(m) {
|
|
82
82
|
if (m === null || typeof m != "object")
|
|
83
83
|
return null;
|
|
84
|
-
var _ =
|
|
84
|
+
var _ = y && m[y] || m[h];
|
|
85
85
|
return typeof _ == "function" ? _ : null;
|
|
86
86
|
}
|
|
87
87
|
var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -89,10 +89,10 @@ function yp() {
|
|
|
89
89
|
{
|
|
90
90
|
for (var _ = arguments.length, R = new Array(_ > 1 ? _ - 1 : 0), z = 1; z < _; z++)
|
|
91
91
|
R[z - 1] = arguments[z];
|
|
92
|
-
|
|
92
|
+
j("error", m, R);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function j(m, _, R) {
|
|
96
96
|
{
|
|
97
97
|
var z = T.ReactDebugCurrentFrame, Q = z.getStackAddendum();
|
|
98
98
|
Q !== "" && (_ += "%s", R = R.concat([Q]));
|
|
@@ -102,10 +102,10 @@ function yp() {
|
|
|
102
102
|
oe.unshift("Warning: " + _), Function.prototype.apply.call(console[m], console, oe);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
var
|
|
105
|
+
var D = !1, x = !1, O = !1, k = !1, J = !1, ee;
|
|
106
106
|
ee = Symbol.for("react.module.reference");
|
|
107
107
|
function _e(m) {
|
|
108
|
-
return !!(typeof m == "string" || typeof m == "function" || m === n || m === a || J || m === o || m === c || m === u || k || m ===
|
|
108
|
+
return !!(typeof m == "string" || typeof m == "function" || m === n || m === a || J || m === o || m === c || m === u || k || m === g || D || x || O || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === i || m.$$typeof === s || m.$$typeof === l || // This needs to include all possible module reference object
|
|
109
109
|
// types supported by any Flight configuration anywhere since
|
|
110
110
|
// we don't know which Flight build this will end up being used
|
|
111
111
|
// with.
|
|
@@ -318,10 +318,10 @@ function yp() {
|
|
|
318
318
|
var ye = m ? m.displayName || m.name : "", he = ye ? H(ye) : "";
|
|
319
319
|
return typeof m == "function" && G.set(m, he), he;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Pe(m, _, R) {
|
|
322
322
|
return P(m, !1);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function I(m) {
|
|
325
325
|
var _ = m.prototype;
|
|
326
326
|
return !!(_ && _.isReactComponent);
|
|
327
327
|
}
|
|
@@ -329,7 +329,7 @@ function yp() {
|
|
|
329
329
|
if (m == null)
|
|
330
330
|
return "";
|
|
331
331
|
if (typeof m == "function")
|
|
332
|
-
return P(m,
|
|
332
|
+
return P(m, I(m));
|
|
333
333
|
if (typeof m == "string")
|
|
334
334
|
return H(m);
|
|
335
335
|
switch (m) {
|
|
@@ -341,7 +341,7 @@ function yp() {
|
|
|
341
341
|
if (typeof m == "object")
|
|
342
342
|
switch (m.$$typeof) {
|
|
343
343
|
case l:
|
|
344
|
-
return
|
|
344
|
+
return Pe(m.render);
|
|
345
345
|
case f:
|
|
346
346
|
return Ge(m.type, _, R);
|
|
347
347
|
case p: {
|
|
@@ -717,31 +717,29 @@ function Oe(...e) {
|
|
|
717
717
|
const t = Array.from(Array.isArray(e[0]) ? e[0] : e);
|
|
718
718
|
return vp(t);
|
|
719
719
|
}
|
|
720
|
-
function hi(e, { autoInvoke: t = !0,
|
|
721
|
-
const [
|
|
720
|
+
function hi(e, { autoInvoke: t = !0, initialLoading: r = !1, ...n }) {
|
|
721
|
+
const [o, a] = fe(null), [i, s] = fe(r), [l, c] = fe(null), u = Nd(null), f = Te(() => {
|
|
722
722
|
if (e)
|
|
723
|
-
return
|
|
724
|
-
const y = await
|
|
725
|
-
if (!
|
|
723
|
+
return c(null), u.current && u.current.abort(), u.current = new AbortController(), s(!0), fetch(e, { signal: u.current.signal, ...n }).then(async (g) => {
|
|
724
|
+
const y = await g.json();
|
|
725
|
+
if (!g.ok)
|
|
726
726
|
throw new Error(y.detail);
|
|
727
|
-
return
|
|
728
|
-
}).catch((
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
var p;
|
|
733
|
-
c.current && ((p = c.current) == null || p.abort(""));
|
|
727
|
+
return a(y), s(!1), y;
|
|
728
|
+
}).catch((g) => (g && g.name !== "AbortError" && (c(g), s(!1)), g));
|
|
729
|
+
}, [e]), p = Te(() => {
|
|
730
|
+
var g;
|
|
731
|
+
u.current && ((g = u.current) == null || g.abort(""), s(!1));
|
|
734
732
|
}, []);
|
|
735
|
-
return
|
|
736
|
-
|
|
737
|
-
}), [
|
|
733
|
+
return $e(() => (t && f(), () => {
|
|
734
|
+
u.current && u.current.abort("");
|
|
735
|
+
}), [f, t]), { data: o, loading: i, error: l, refetch: f, abort: p };
|
|
738
736
|
}
|
|
739
|
-
function bp({ path: e, autoInvoke: t = !0 }) {
|
|
740
|
-
const { fetchPath:
|
|
737
|
+
function bp({ path: e, autoInvoke: t = !0, initialLoading: r = !0 }) {
|
|
738
|
+
const { fetchPath: n, options: o } = wt(
|
|
741
739
|
() => Ye({ path: Oe(e, "auth/user"), method: "GET" }),
|
|
742
740
|
[e]
|
|
743
|
-
), { data:
|
|
744
|
-
return { user:
|
|
741
|
+
), { data: a, loading: i, refetch: s, error: l } = hi(n, { autoInvoke: t, initialLoading: r, ...o });
|
|
742
|
+
return { user: a, loading: i, refetch: s, error: l };
|
|
745
743
|
}
|
|
746
744
|
function xp({ path: e, queryParams: t, autoInvoke: r = !0 }) {
|
|
747
745
|
const { fetchPath: n, options: o } = wt(
|
|
@@ -756,52 +754,36 @@ function xp({ path: e, queryParams: t, autoInvoke: r = !0 }) {
|
|
|
756
754
|
if (!a)
|
|
757
755
|
return null;
|
|
758
756
|
const u = a.result.map((f, p) => {
|
|
759
|
-
const
|
|
760
|
-
return typeof
|
|
757
|
+
const g = a.ids[p];
|
|
758
|
+
return typeof g == "object" ? { ...f, ...g } : { ...f, id: g };
|
|
761
759
|
});
|
|
762
760
|
return { ...a, result: u };
|
|
763
761
|
}, [a]), loading: i, refetch: s, error: l };
|
|
764
762
|
}
|
|
765
763
|
const _p = async (e, t) => {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
throw new Error(a.detail);
|
|
775
|
-
} catch (r) {
|
|
776
|
-
throw new Error(r);
|
|
777
|
-
}
|
|
764
|
+
const { fetchPath: r, options: n } = Ye({
|
|
765
|
+
path: Oe(e, "/"),
|
|
766
|
+
method: "POST",
|
|
767
|
+
body: t
|
|
768
|
+
}), o = await fetch(r, n), a = await o.json();
|
|
769
|
+
if (o.ok)
|
|
770
|
+
return a;
|
|
771
|
+
throw new Error(a.detail);
|
|
778
772
|
}, Ep = async (e, t) => {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
throw new Error(a.detail);
|
|
784
|
-
} catch (r) {
|
|
785
|
-
throw new Error(r);
|
|
786
|
-
}
|
|
773
|
+
const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "DELETE" }), o = await fetch(r, n), a = await o.json();
|
|
774
|
+
if (o.ok)
|
|
775
|
+
return a;
|
|
776
|
+
throw new Error(a.detail);
|
|
787
777
|
}, Tp = async (e, t) => {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
throw new Error(a.detail);
|
|
793
|
-
} catch (r) {
|
|
794
|
-
throw new Error(r);
|
|
795
|
-
}
|
|
778
|
+
const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "GET" }), o = await fetch(r, n), a = await o.json();
|
|
779
|
+
if (o.ok)
|
|
780
|
+
return a;
|
|
781
|
+
throw new Error(a.detail);
|
|
796
782
|
}, Sp = async (e, t, r) => {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
throw new Error(i.detail);
|
|
802
|
-
} catch (n) {
|
|
803
|
-
throw new Error(n);
|
|
804
|
-
}
|
|
783
|
+
const { fetchPath: n, options: o } = Ye({ path: Oe(e, t.toString()), method: "PUT", body: r }), a = await fetch(n, o), i = await a.json();
|
|
784
|
+
if (a.ok)
|
|
785
|
+
return i;
|
|
786
|
+
throw new Error(i.detail);
|
|
805
787
|
}, Ue = (e) => e && typeof e == "object" ? JSON.stringify(e) : e;
|
|
806
788
|
function Ss(e, t) {
|
|
807
789
|
const r = e || {
|
|
@@ -955,12 +937,12 @@ function nu(e, t) {
|
|
|
955
937
|
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(c));
|
|
956
938
|
if (!o[u]) {
|
|
957
939
|
o[u] = !0;
|
|
958
|
-
var
|
|
959
|
-
if (
|
|
940
|
+
var g = i.get(c) || /* @__PURE__ */ new Set();
|
|
941
|
+
if (g = Array.from(g), u = g.length) {
|
|
960
942
|
f.add(c);
|
|
961
943
|
do {
|
|
962
|
-
var
|
|
963
|
-
l(
|
|
944
|
+
var y = g[--u];
|
|
945
|
+
l(y, s.get(y), f);
|
|
964
946
|
} while (u);
|
|
965
947
|
f.delete(c);
|
|
966
948
|
}
|
|
@@ -1222,18 +1204,18 @@ function Sr(e) {
|
|
|
1222
1204
|
test: u,
|
|
1223
1205
|
params: f,
|
|
1224
1206
|
message: p,
|
|
1225
|
-
skipAbsent:
|
|
1207
|
+
skipAbsent: g
|
|
1226
1208
|
} = e;
|
|
1227
1209
|
let {
|
|
1228
|
-
parent:
|
|
1210
|
+
parent: y,
|
|
1229
1211
|
context: h,
|
|
1230
1212
|
abortEarly: b = i.spec.abortEarly,
|
|
1231
1213
|
disableStackTrace: T = i.spec.disableStackTrace
|
|
1232
1214
|
} = o;
|
|
1233
1215
|
function A(F) {
|
|
1234
|
-
return Jt.isRef(F) ? F.getValue(r,
|
|
1216
|
+
return Jt.isRef(F) ? F.getValue(r, y, h) : F;
|
|
1235
1217
|
}
|
|
1236
|
-
function
|
|
1218
|
+
function j(F = {}) {
|
|
1237
1219
|
const te = Object.assign({
|
|
1238
1220
|
value: r,
|
|
1239
1221
|
originalValue: a,
|
|
@@ -1247,24 +1229,24 @@ function Sr(e) {
|
|
|
1247
1229
|
const ce = new ze(ze.formatError(F.message || p, te), r, te.path, F.type || c, te.disableStackTrace);
|
|
1248
1230
|
return ce.params = te, ce;
|
|
1249
1231
|
}
|
|
1250
|
-
const
|
|
1232
|
+
const D = b ? s : l;
|
|
1251
1233
|
let x = {
|
|
1252
1234
|
path: n,
|
|
1253
|
-
parent:
|
|
1235
|
+
parent: y,
|
|
1254
1236
|
type: c,
|
|
1255
1237
|
from: o.from,
|
|
1256
|
-
createError:
|
|
1238
|
+
createError: j,
|
|
1257
1239
|
resolve: A,
|
|
1258
1240
|
options: o,
|
|
1259
1241
|
originalValue: a,
|
|
1260
1242
|
schema: i
|
|
1261
1243
|
};
|
|
1262
1244
|
const O = (F) => {
|
|
1263
|
-
ze.isError(F) ?
|
|
1245
|
+
ze.isError(F) ? D(F) : F ? l(null) : D(j());
|
|
1264
1246
|
}, k = (F) => {
|
|
1265
|
-
ze.isError(F) ?
|
|
1247
|
+
ze.isError(F) ? D(F) : s(F);
|
|
1266
1248
|
};
|
|
1267
|
-
if (
|
|
1249
|
+
if (g && St(r))
|
|
1268
1250
|
return O(!0);
|
|
1269
1251
|
let ee;
|
|
1270
1252
|
try {
|
|
@@ -1513,10 +1495,10 @@ attempted value: ${i}
|
|
|
1513
1495
|
o || (o = !0, r(h, i));
|
|
1514
1496
|
}, f = (h) => {
|
|
1515
1497
|
o || (o = !0, n(h, i));
|
|
1516
|
-
}, p = a.length,
|
|
1498
|
+
}, p = a.length, g = [];
|
|
1517
1499
|
if (!p)
|
|
1518
1500
|
return f([]);
|
|
1519
|
-
let
|
|
1501
|
+
let y = {
|
|
1520
1502
|
value: i,
|
|
1521
1503
|
originalValue: s,
|
|
1522
1504
|
path: l,
|
|
@@ -1525,8 +1507,8 @@ attempted value: ${i}
|
|
|
1525
1507
|
};
|
|
1526
1508
|
for (let h = 0; h < a.length; h++) {
|
|
1527
1509
|
const b = a[h];
|
|
1528
|
-
b(
|
|
1529
|
-
A && (Array.isArray(A) ?
|
|
1510
|
+
b(y, u, function(A) {
|
|
1511
|
+
A && (Array.isArray(A) ? g.push(...A) : g.push(A)), --p <= 0 && f(g);
|
|
1530
1512
|
});
|
|
1531
1513
|
}
|
|
1532
1514
|
}
|
|
@@ -1558,7 +1540,7 @@ attempted value: ${i}
|
|
|
1558
1540
|
[l ? "index" : "key"]: s,
|
|
1559
1541
|
path: l || s.includes(".") ? `${o || ""}[${l ? s : `"${s}"`}]` : (o ? `${o}.` : "") + t
|
|
1560
1542
|
});
|
|
1561
|
-
return (f, p,
|
|
1543
|
+
return (f, p, g) => this.resolve(u)._validate(c, u, p, g);
|
|
1562
1544
|
}
|
|
1563
1545
|
validate(t, r) {
|
|
1564
1546
|
var n;
|
|
@@ -2370,9 +2352,9 @@ class wi extends Ve {
|
|
|
2370
2352
|
__validating: r.__validating || !1
|
|
2371
2353
|
}), u = !1;
|
|
2372
2354
|
for (const f of s) {
|
|
2373
|
-
let p = a[f],
|
|
2355
|
+
let p = a[f], g = f in o;
|
|
2374
2356
|
if (p) {
|
|
2375
|
-
let
|
|
2357
|
+
let y, h = o[f];
|
|
2376
2358
|
c.path = (r.path ? `${r.path}.` : "") + f, p = p.resolve({
|
|
2377
2359
|
value: h,
|
|
2378
2360
|
context: r.context,
|
|
@@ -2383,13 +2365,13 @@ class wi extends Ve {
|
|
|
2383
2365
|
u = u || f in o;
|
|
2384
2366
|
continue;
|
|
2385
2367
|
}
|
|
2386
|
-
|
|
2368
|
+
y = !r.__validating || !T ? (
|
|
2387
2369
|
// TODO: use _cast, this is double resolving
|
|
2388
2370
|
p.cast(o[f], c)
|
|
2389
|
-
) : o[f],
|
|
2371
|
+
) : o[f], y !== void 0 && (l[f] = y);
|
|
2390
2372
|
} else
|
|
2391
|
-
|
|
2392
|
-
(
|
|
2373
|
+
g && !i && (l[f] = o[f]);
|
|
2374
|
+
(g !== f in l || l[f] !== o[f]) && (u = !0);
|
|
2393
2375
|
}
|
|
2394
2376
|
return u ? l : o;
|
|
2395
2377
|
}
|
|
@@ -2598,11 +2580,11 @@ class Ci extends Ve {
|
|
|
2598
2580
|
return;
|
|
2599
2581
|
}
|
|
2600
2582
|
let f = new Array(c.length);
|
|
2601
|
-
for (let
|
|
2583
|
+
for (let g = 0; g < c.length; g++) {
|
|
2602
2584
|
var p;
|
|
2603
|
-
f[
|
|
2585
|
+
f[g] = i.asNestedTest({
|
|
2604
2586
|
options: r,
|
|
2605
|
-
index:
|
|
2587
|
+
index: g,
|
|
2606
2588
|
parent: c,
|
|
2607
2589
|
parentPath: r.path,
|
|
2608
2590
|
originalParent: (p = r.originalValue) != null ? p : t
|
|
@@ -2613,7 +2595,7 @@ class Ci extends Ve {
|
|
|
2613
2595
|
tests: f,
|
|
2614
2596
|
originalValue: (u = r.originalValue) != null ? u : t,
|
|
2615
2597
|
options: r
|
|
2616
|
-
}, n, (
|
|
2598
|
+
}, n, (g) => o(g.concat(l), c));
|
|
2617
2599
|
});
|
|
2618
2600
|
}
|
|
2619
2601
|
clone(t) {
|
|
@@ -2959,7 +2941,7 @@ function _h(e, t) {
|
|
|
2959
2941
|
case "initCall":
|
|
2960
2942
|
return { ...mu };
|
|
2961
2943
|
case "setUser":
|
|
2962
|
-
return { ...e, user: t.payload,
|
|
2944
|
+
return { ...e, user: t.payload, error: null };
|
|
2963
2945
|
case "setError":
|
|
2964
2946
|
return { ...e, loading: !1, error: t.payload };
|
|
2965
2947
|
case "setLoading":
|
|
@@ -2969,98 +2951,102 @@ function _h(e, t) {
|
|
|
2969
2951
|
}
|
|
2970
2952
|
}
|
|
2971
2953
|
function Eh(e) {
|
|
2972
|
-
const [t, r] = Dc(_h, mu), { user: n, refetch: o } = bp({ path: e });
|
|
2973
|
-
|
|
2954
|
+
const [t, r] = Dc(_h, mu), { user: n, refetch: o, loading: a } = bp({ path: e });
|
|
2955
|
+
$e(() => {
|
|
2956
|
+
r({ type: "setLoading", payload: a });
|
|
2957
|
+
}, [a]), $e(() => {
|
|
2974
2958
|
r({ type: "setUser", payload: n });
|
|
2975
2959
|
}, [n]);
|
|
2976
|
-
const
|
|
2977
|
-
async ({ username:
|
|
2960
|
+
const i = Te(
|
|
2961
|
+
async ({ username: f, password: p }) => {
|
|
2978
2962
|
r({ type: "initCall" });
|
|
2979
2963
|
try {
|
|
2980
|
-
const
|
|
2981
|
-
|
|
2982
|
-
const { fetchPath: y, options:
|
|
2964
|
+
const g = new FormData();
|
|
2965
|
+
g.append("username", f), g.append("password", p);
|
|
2966
|
+
const { fetchPath: y, options: h } = Ye({
|
|
2983
2967
|
path: Oe(e, "auth/login"),
|
|
2984
2968
|
method: "POST"
|
|
2985
2969
|
});
|
|
2986
2970
|
(await fetch(y, {
|
|
2987
|
-
...
|
|
2971
|
+
...h,
|
|
2988
2972
|
headers: {
|
|
2989
2973
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
2990
2974
|
},
|
|
2991
|
-
body: new URLSearchParams(
|
|
2975
|
+
body: new URLSearchParams(g)
|
|
2992
2976
|
})).ok ? o() : r({ type: "setError", payload: "Username or password wrong." });
|
|
2993
|
-
} catch (
|
|
2994
|
-
console.error("signin error",
|
|
2977
|
+
} catch (g) {
|
|
2978
|
+
console.error("signin error", g), r({ type: "setError", payload: "Failed to fetch" });
|
|
2995
2979
|
}
|
|
2996
2980
|
},
|
|
2997
2981
|
[e, o]
|
|
2998
|
-
),
|
|
2982
|
+
), s = Te(async () => {
|
|
2999
2983
|
r({ type: "initCall" });
|
|
3000
2984
|
try {
|
|
3001
|
-
const { fetchPath:
|
|
3002
|
-
(await fetch(
|
|
3003
|
-
} catch (
|
|
3004
|
-
console.error("signout error",
|
|
2985
|
+
const { fetchPath: f, options: p } = Ye({ path: Oe(e, "auth/logout"), method: "POST" });
|
|
2986
|
+
(await fetch(f, p)).ok ? r({ type: "setUser", payload: null }) : r({ type: "setError", payload: "Couldn't sign out user" });
|
|
2987
|
+
} catch (f) {
|
|
2988
|
+
console.error("signout error", f), r({ type: "setError", payload: "Failed to fetch" });
|
|
2989
|
+
} finally {
|
|
2990
|
+
r({ type: "setLoading", payload: !1 });
|
|
3005
2991
|
}
|
|
3006
|
-
}, [e]),
|
|
3007
|
-
async (
|
|
2992
|
+
}, [e]), l = Te(
|
|
2993
|
+
async (f) => {
|
|
3008
2994
|
r({ type: "initCall" });
|
|
3009
2995
|
try {
|
|
3010
|
-
const { fetchPath:
|
|
2996
|
+
const { fetchPath: p, options: g } = Ye({
|
|
3011
2997
|
path: Oe(e, "auth/user"),
|
|
3012
2998
|
method: "PUT",
|
|
3013
|
-
body:
|
|
2999
|
+
body: f
|
|
3014
3000
|
});
|
|
3015
|
-
(await fetch(
|
|
3016
|
-
} catch (
|
|
3017
|
-
console.error("update error",
|
|
3001
|
+
(await fetch(p, g)).ok && o(), r({ type: "setError", payload: "Couldn't update user data" });
|
|
3002
|
+
} catch (p) {
|
|
3003
|
+
console.error("update error", p), r({ type: "setError", payload: "Failed to post" });
|
|
3018
3004
|
}
|
|
3019
3005
|
},
|
|
3020
3006
|
[e, o]
|
|
3021
|
-
),
|
|
3022
|
-
async (
|
|
3007
|
+
), c = Te(
|
|
3008
|
+
async (f) => {
|
|
3023
3009
|
if (!n.email)
|
|
3024
3010
|
return r({ type: "setError", payload: "No email found" });
|
|
3025
3011
|
try {
|
|
3026
|
-
const { fetchPath:
|
|
3012
|
+
const { fetchPath: p, options: g } = Ye({
|
|
3027
3013
|
path: Oe(e, "auth/forgot-password"),
|
|
3028
3014
|
method: "POST",
|
|
3029
3015
|
body: { email: n.email }
|
|
3030
|
-
}), y = await fetch(
|
|
3016
|
+
}), y = await fetch(p, g);
|
|
3031
3017
|
if (!y.ok) {
|
|
3032
3018
|
r({ type: "setError", payload: "Couldn't request token to reset password" });
|
|
3033
3019
|
return;
|
|
3034
3020
|
}
|
|
3035
|
-
const
|
|
3021
|
+
const h = await y.json(), { token: b } = h, { fetchPath: T, options: A } = Ye({
|
|
3036
3022
|
path: Oe(e, "auth/reset-password"),
|
|
3037
3023
|
method: "POST",
|
|
3038
|
-
body: { token:
|
|
3024
|
+
body: { token: b, password: f }
|
|
3039
3025
|
});
|
|
3040
|
-
if (!(await fetch(
|
|
3026
|
+
if (!(await fetch(T, A)).ok) {
|
|
3041
3027
|
r({ type: "setError", payload: "Couldn't reset password" });
|
|
3042
3028
|
return;
|
|
3043
3029
|
}
|
|
3044
3030
|
o();
|
|
3045
|
-
} catch (
|
|
3046
|
-
console.error("resetPassword error",
|
|
3031
|
+
} catch (p) {
|
|
3032
|
+
console.error("resetPassword error", p), r({ type: "setError", payload: "Failed to post" });
|
|
3047
3033
|
}
|
|
3048
3034
|
},
|
|
3049
3035
|
[e, o, n == null ? void 0 : n.email]
|
|
3050
|
-
),
|
|
3051
|
-
(
|
|
3052
|
-
const
|
|
3053
|
-
if (
|
|
3054
|
-
const
|
|
3055
|
-
|
|
3036
|
+
), u = Te(
|
|
3037
|
+
(f, p) => {
|
|
3038
|
+
const g = Oe(e, "auth/login", f);
|
|
3039
|
+
if (p) {
|
|
3040
|
+
const b = window.screenLeft + window.outerWidth / 2 - 250, T = window.screenTop + window.outerHeight / 2 - 500 / 2, A = window.open(
|
|
3041
|
+
g + "?popup=true",
|
|
3056
3042
|
"auth",
|
|
3057
|
-
`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${
|
|
3058
|
-
),
|
|
3059
|
-
|
|
3043
|
+
`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${T}, left=${b}`
|
|
3044
|
+
), j = window.setInterval(function() {
|
|
3045
|
+
A.closed !== !1 && (window.clearInterval(j), o());
|
|
3060
3046
|
}, 200);
|
|
3061
3047
|
return;
|
|
3062
3048
|
}
|
|
3063
|
-
window.location.href = Oe(e, "auth/login",
|
|
3049
|
+
window.location.href = Oe(e, "auth/login", f);
|
|
3064
3050
|
},
|
|
3065
3051
|
[e, o]
|
|
3066
3052
|
);
|
|
@@ -3068,25 +3054,25 @@ function Eh(e) {
|
|
|
3068
3054
|
user: t.user,
|
|
3069
3055
|
loading: t.loading,
|
|
3070
3056
|
error: t.error,
|
|
3071
|
-
signin:
|
|
3072
|
-
signout:
|
|
3073
|
-
update:
|
|
3074
|
-
resetPassword:
|
|
3075
|
-
oauth_signin:
|
|
3057
|
+
signin: i,
|
|
3058
|
+
signout: s,
|
|
3059
|
+
update: l,
|
|
3060
|
+
resetPassword: c,
|
|
3061
|
+
oauth_signin: u
|
|
3076
3062
|
};
|
|
3077
3063
|
}
|
|
3078
3064
|
function Th(e, t) {
|
|
3079
3065
|
const { user: r } = t, [n, o] = fe(null), [a, i] = fe(!0), [s, l] = fe({ error: "401 Not authorized", message: "User is not logged in." });
|
|
3080
|
-
|
|
3066
|
+
$e(() => {
|
|
3081
3067
|
r && c(e);
|
|
3082
3068
|
}, [r]);
|
|
3083
3069
|
const c = async (u) => {
|
|
3084
3070
|
i(!0);
|
|
3085
3071
|
try {
|
|
3086
|
-
const { fetchPath: f, options: p } = Ye({ path: Oe(u, "info/"), method: "GET" }),
|
|
3087
|
-
if (
|
|
3088
|
-
const
|
|
3089
|
-
o(
|
|
3072
|
+
const { fetchPath: f, options: p } = Ye({ path: Oe(u, "info/"), method: "GET" }), g = await fetch(f, p);
|
|
3073
|
+
if (g.ok) {
|
|
3074
|
+
const y = await g.json();
|
|
3075
|
+
o(y);
|
|
3090
3076
|
} else
|
|
3091
3077
|
l({ error: "404 Not Found", message: "Couldn't fetch info" });
|
|
3092
3078
|
} catch {
|
|
@@ -3112,15 +3098,11 @@ function GR(e) {
|
|
|
3112
3098
|
return /* @__PURE__ */ d.jsx(Pi.Provider, { value: { auth: o, info: a }, children: n });
|
|
3113
3099
|
}
|
|
3114
3100
|
const Oh = async (e, t, r) => {
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
s.href = l, s.download = e.toLowerCase() + ".csv", s.click();
|
|
3121
|
-
} catch (n) {
|
|
3122
|
-
throw new Error(n);
|
|
3123
|
-
}
|
|
3101
|
+
const { fetchPath: n, options: o } = Ye({ path: Oe(t, "/download"), method: "POST" }), a = await fetch(n, { ...o, body: JSON.stringify(r) });
|
|
3102
|
+
if (!a.ok)
|
|
3103
|
+
throw new Error(a.statusText);
|
|
3104
|
+
const i = await a.blob(), s = document.createElement("a"), l = URL.createObjectURL(i);
|
|
3105
|
+
s.href = l, s.download = e.toLowerCase() + ".csv", s.click();
|
|
3124
3106
|
}, Ds = {
|
|
3125
3107
|
queryParams: null,
|
|
3126
3108
|
loading: !1,
|
|
@@ -3158,11 +3140,11 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
|
|
|
3158
3140
|
error: f
|
|
3159
3141
|
} = xh({ path: e, autoInvoke: n }), {
|
|
3160
3142
|
data: p,
|
|
3161
|
-
loading:
|
|
3162
|
-
refetch:
|
|
3143
|
+
loading: g,
|
|
3144
|
+
refetch: y,
|
|
3163
3145
|
error: h
|
|
3164
3146
|
} = xp({ path: e, queryParams: i, autoInvoke: s });
|
|
3165
|
-
|
|
3147
|
+
$e(() => {
|
|
3166
3148
|
if (f) {
|
|
3167
3149
|
a({ type: "setError", payload: { message: "Couldn't fetch info", originalError: f } });
|
|
3168
3150
|
return;
|
|
@@ -3172,9 +3154,9 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
|
|
|
3172
3154
|
return;
|
|
3173
3155
|
}
|
|
3174
3156
|
a({ type: "setError", payload: Ds.error });
|
|
3175
|
-
}, [f, h]),
|
|
3176
|
-
a({ type: "setLoading", payload: c ||
|
|
3177
|
-
}, [
|
|
3157
|
+
}, [f, h]), $e(() => {
|
|
3158
|
+
a({ type: "setLoading", payload: c || g });
|
|
3159
|
+
}, [g, c]);
|
|
3178
3160
|
const b = Te(
|
|
3179
3161
|
(O) => {
|
|
3180
3162
|
const k = Ss(o.queryParams, O);
|
|
@@ -3194,17 +3176,17 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
|
|
|
3194
3176
|
async (O, k) => {
|
|
3195
3177
|
try {
|
|
3196
3178
|
const J = await _p(e, O);
|
|
3197
|
-
return k || (u(),
|
|
3179
|
+
return k || (u(), y()), J;
|
|
3198
3180
|
} catch (J) {
|
|
3199
3181
|
a({ type: "setError", payload: { message: "Couldnt add item.", originalError: J } });
|
|
3200
3182
|
}
|
|
3201
3183
|
},
|
|
3202
|
-
[
|
|
3203
|
-
),
|
|
3184
|
+
[y, u, e]
|
|
3185
|
+
), j = Te(
|
|
3204
3186
|
async (O, k, J) => {
|
|
3205
3187
|
try {
|
|
3206
3188
|
const ee = await Sp(e, Ue(O), k);
|
|
3207
|
-
return J || (u(),
|
|
3189
|
+
return J || (u(), y()), ee;
|
|
3208
3190
|
} catch (ee) {
|
|
3209
3191
|
a({
|
|
3210
3192
|
type: "setError",
|
|
@@ -3212,12 +3194,12 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
|
|
|
3212
3194
|
});
|
|
3213
3195
|
}
|
|
3214
3196
|
},
|
|
3215
|
-
[
|
|
3216
|
-
),
|
|
3197
|
+
[y, u, e]
|
|
3198
|
+
), D = Te(
|
|
3217
3199
|
async (O, k) => {
|
|
3218
3200
|
try {
|
|
3219
3201
|
const J = await Ep(e, Ue(O));
|
|
3220
|
-
return k || (u(),
|
|
3202
|
+
return k || (u(), y()), J;
|
|
3221
3203
|
} catch (J) {
|
|
3222
3204
|
a({
|
|
3223
3205
|
type: "setError",
|
|
@@ -3225,7 +3207,7 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
|
|
|
3225
3207
|
});
|
|
3226
3208
|
}
|
|
3227
3209
|
},
|
|
3228
|
-
[
|
|
3210
|
+
[y, u, e]
|
|
3229
3211
|
), x = Te(
|
|
3230
3212
|
async (O) => {
|
|
3231
3213
|
try {
|
|
@@ -3244,11 +3226,11 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
|
|
|
3244
3226
|
loading: o.loading,
|
|
3245
3227
|
error: o.error,
|
|
3246
3228
|
setQueryParams: b,
|
|
3247
|
-
refetch:
|
|
3229
|
+
refetch: y,
|
|
3248
3230
|
getEntry: T,
|
|
3249
3231
|
addEntry: A,
|
|
3250
|
-
updateEntry:
|
|
3251
|
-
deleteEntry:
|
|
3232
|
+
updateEntry: j,
|
|
3233
|
+
deleteEntry: D,
|
|
3252
3234
|
download: x
|
|
3253
3235
|
};
|
|
3254
3236
|
}
|
|
@@ -3492,7 +3474,7 @@ function Lh({ opened: e, onClose: t, ...r }) {
|
|
|
3492
3474
|
}), u = async (f) => {
|
|
3493
3475
|
await o(f), c.reset(), t();
|
|
3494
3476
|
};
|
|
3495
|
-
return
|
|
3477
|
+
return $e(() => {
|
|
3496
3478
|
c.setInitialValues(n.add.defaultValues), c.reset();
|
|
3497
3479
|
}, [n.add.defaultValues]), /* @__PURE__ */ d.jsx(
|
|
3498
3480
|
Nr,
|
|
@@ -3537,8 +3519,8 @@ function zh() {
|
|
|
3537
3519
|
if (Ns)
|
|
3538
3520
|
return ae;
|
|
3539
3521
|
Ns = 1;
|
|
3540
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120,
|
|
3541
|
-
function
|
|
3522
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
3523
|
+
function j(x) {
|
|
3542
3524
|
if (typeof x == "object" && x !== null) {
|
|
3543
3525
|
var O = x.$$typeof;
|
|
3544
3526
|
switch (O) {
|
|
@@ -3555,8 +3537,8 @@ function zh() {
|
|
|
3555
3537
|
switch (x = x && x.$$typeof, x) {
|
|
3556
3538
|
case s:
|
|
3557
3539
|
case u:
|
|
3558
|
-
case g:
|
|
3559
3540
|
case y:
|
|
3541
|
+
case g:
|
|
3560
3542
|
case i:
|
|
3561
3543
|
return x;
|
|
3562
3544
|
default:
|
|
@@ -3568,36 +3550,36 @@ function zh() {
|
|
|
3568
3550
|
}
|
|
3569
3551
|
}
|
|
3570
3552
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3553
|
+
function D(x) {
|
|
3554
|
+
return j(x) === c;
|
|
3573
3555
|
}
|
|
3574
|
-
return ae.AsyncMode = l, ae.ConcurrentMode = c, ae.ContextConsumer = s, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = n, ae.Lazy =
|
|
3575
|
-
return
|
|
3576
|
-
}, ae.isConcurrentMode =
|
|
3577
|
-
return
|
|
3556
|
+
return ae.AsyncMode = l, ae.ConcurrentMode = c, ae.ContextConsumer = s, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = n, ae.Lazy = y, ae.Memo = g, ae.Portal = r, ae.Profiler = a, ae.StrictMode = o, ae.Suspense = f, ae.isAsyncMode = function(x) {
|
|
3557
|
+
return D(x) || j(x) === l;
|
|
3558
|
+
}, ae.isConcurrentMode = D, ae.isContextConsumer = function(x) {
|
|
3559
|
+
return j(x) === s;
|
|
3578
3560
|
}, ae.isContextProvider = function(x) {
|
|
3579
|
-
return
|
|
3561
|
+
return j(x) === i;
|
|
3580
3562
|
}, ae.isElement = function(x) {
|
|
3581
3563
|
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
3582
3564
|
}, ae.isForwardRef = function(x) {
|
|
3583
|
-
return
|
|
3565
|
+
return j(x) === u;
|
|
3584
3566
|
}, ae.isFragment = function(x) {
|
|
3585
|
-
return
|
|
3567
|
+
return j(x) === n;
|
|
3586
3568
|
}, ae.isLazy = function(x) {
|
|
3587
|
-
return
|
|
3569
|
+
return j(x) === y;
|
|
3588
3570
|
}, ae.isMemo = function(x) {
|
|
3589
|
-
return
|
|
3571
|
+
return j(x) === g;
|
|
3590
3572
|
}, ae.isPortal = function(x) {
|
|
3591
|
-
return
|
|
3573
|
+
return j(x) === r;
|
|
3592
3574
|
}, ae.isProfiler = function(x) {
|
|
3593
|
-
return
|
|
3575
|
+
return j(x) === a;
|
|
3594
3576
|
}, ae.isStrictMode = function(x) {
|
|
3595
|
-
return
|
|
3577
|
+
return j(x) === o;
|
|
3596
3578
|
}, ae.isSuspense = function(x) {
|
|
3597
|
-
return
|
|
3579
|
+
return j(x) === f;
|
|
3598
3580
|
}, ae.isValidElementType = function(x) {
|
|
3599
|
-
return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof ===
|
|
3600
|
-
}, ae.typeOf =
|
|
3581
|
+
return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === g || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === b || x.$$typeof === T || x.$$typeof === A || x.$$typeof === h);
|
|
3582
|
+
}, ae.typeOf = j, ae;
|
|
3601
3583
|
}
|
|
3602
3584
|
var ie = {};
|
|
3603
3585
|
/** @license React v16.13.1
|
|
@@ -3611,84 +3593,84 @@ var ie = {};
|
|
|
3611
3593
|
var Fs;
|
|
3612
3594
|
function Uh() {
|
|
3613
3595
|
return Fs || (Fs = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3614
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120,
|
|
3615
|
-
function
|
|
3596
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
3597
|
+
function j(P) {
|
|
3616
3598
|
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
3617
|
-
P === n || P === c || P === a || P === o || P === f || P === p || typeof P == "object" && P !== null && (P.$$typeof ===
|
|
3599
|
+
P === n || P === c || P === a || P === o || P === f || P === p || typeof P == "object" && P !== null && (P.$$typeof === y || P.$$typeof === g || P.$$typeof === i || P.$$typeof === s || P.$$typeof === u || P.$$typeof === b || P.$$typeof === T || P.$$typeof === A || P.$$typeof === h);
|
|
3618
3600
|
}
|
|
3619
|
-
function
|
|
3601
|
+
function D(P) {
|
|
3620
3602
|
if (typeof P == "object" && P !== null) {
|
|
3621
|
-
var
|
|
3622
|
-
switch (
|
|
3603
|
+
var Pe = P.$$typeof;
|
|
3604
|
+
switch (Pe) {
|
|
3623
3605
|
case t:
|
|
3624
|
-
var
|
|
3625
|
-
switch (
|
|
3606
|
+
var I = P.type;
|
|
3607
|
+
switch (I) {
|
|
3626
3608
|
case l:
|
|
3627
3609
|
case c:
|
|
3628
3610
|
case n:
|
|
3629
3611
|
case a:
|
|
3630
3612
|
case o:
|
|
3631
3613
|
case f:
|
|
3632
|
-
return
|
|
3614
|
+
return I;
|
|
3633
3615
|
default:
|
|
3634
|
-
var Ge =
|
|
3616
|
+
var Ge = I && I.$$typeof;
|
|
3635
3617
|
switch (Ge) {
|
|
3636
3618
|
case s:
|
|
3637
3619
|
case u:
|
|
3638
|
-
case g:
|
|
3639
3620
|
case y:
|
|
3621
|
+
case g:
|
|
3640
3622
|
case i:
|
|
3641
3623
|
return Ge;
|
|
3642
3624
|
default:
|
|
3643
|
-
return
|
|
3625
|
+
return Pe;
|
|
3644
3626
|
}
|
|
3645
3627
|
}
|
|
3646
3628
|
case r:
|
|
3647
|
-
return
|
|
3629
|
+
return Pe;
|
|
3648
3630
|
}
|
|
3649
3631
|
}
|
|
3650
3632
|
}
|
|
3651
|
-
var x = l, O = c, k = s, J = i, ee = t, _e = u, F = n, te =
|
|
3633
|
+
var x = l, O = c, k = s, J = i, ee = t, _e = u, F = n, te = y, ce = g, pe = r, He = a, Ae = o, Ze = f, it = !1;
|
|
3652
3634
|
function xt(P) {
|
|
3653
|
-
return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(P) ||
|
|
3635
|
+
return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(P) || D(P) === l;
|
|
3654
3636
|
}
|
|
3655
3637
|
function S(P) {
|
|
3656
|
-
return
|
|
3638
|
+
return D(P) === c;
|
|
3657
3639
|
}
|
|
3658
3640
|
function C(P) {
|
|
3659
|
-
return
|
|
3641
|
+
return D(P) === s;
|
|
3660
3642
|
}
|
|
3661
3643
|
function W(P) {
|
|
3662
|
-
return
|
|
3644
|
+
return D(P) === i;
|
|
3663
3645
|
}
|
|
3664
3646
|
function M(P) {
|
|
3665
3647
|
return typeof P == "object" && P !== null && P.$$typeof === t;
|
|
3666
3648
|
}
|
|
3667
3649
|
function U(P) {
|
|
3668
|
-
return
|
|
3650
|
+
return D(P) === u;
|
|
3669
3651
|
}
|
|
3670
3652
|
function N(P) {
|
|
3671
|
-
return
|
|
3653
|
+
return D(P) === n;
|
|
3672
3654
|
}
|
|
3673
3655
|
function L(P) {
|
|
3674
|
-
return
|
|
3656
|
+
return D(P) === y;
|
|
3675
3657
|
}
|
|
3676
3658
|
function B(P) {
|
|
3677
|
-
return
|
|
3659
|
+
return D(P) === g;
|
|
3678
3660
|
}
|
|
3679
3661
|
function H(P) {
|
|
3680
|
-
return
|
|
3662
|
+
return D(P) === r;
|
|
3681
3663
|
}
|
|
3682
3664
|
function q(P) {
|
|
3683
|
-
return
|
|
3665
|
+
return D(P) === a;
|
|
3684
3666
|
}
|
|
3685
3667
|
function G(P) {
|
|
3686
|
-
return
|
|
3668
|
+
return D(P) === o;
|
|
3687
3669
|
}
|
|
3688
3670
|
function Ee(P) {
|
|
3689
|
-
return
|
|
3671
|
+
return D(P) === f;
|
|
3690
3672
|
}
|
|
3691
|
-
ie.AsyncMode = x, ie.ConcurrentMode = O, ie.ContextConsumer = k, ie.ContextProvider = J, ie.Element = ee, ie.ForwardRef = _e, ie.Fragment = F, ie.Lazy = te, ie.Memo = ce, ie.Portal = pe, ie.Profiler = He, ie.StrictMode = Ae, ie.Suspense = Ze, ie.isAsyncMode = xt, ie.isConcurrentMode = S, ie.isContextConsumer = C, ie.isContextProvider = W, ie.isElement = M, ie.isForwardRef = U, ie.isFragment = N, ie.isLazy = L, ie.isMemo = B, ie.isPortal = H, ie.isProfiler = q, ie.isStrictMode = G, ie.isSuspense = Ee, ie.isValidElementType =
|
|
3673
|
+
ie.AsyncMode = x, ie.ConcurrentMode = O, ie.ContextConsumer = k, ie.ContextProvider = J, ie.Element = ee, ie.ForwardRef = _e, ie.Fragment = F, ie.Lazy = te, ie.Memo = ce, ie.Portal = pe, ie.Profiler = He, ie.StrictMode = Ae, ie.Suspense = Ze, ie.isAsyncMode = xt, ie.isConcurrentMode = S, ie.isContextConsumer = C, ie.isContextProvider = W, ie.isElement = M, ie.isForwardRef = U, ie.isFragment = N, ie.isLazy = L, ie.isMemo = B, ie.isPortal = H, ie.isProfiler = q, ie.isStrictMode = G, ie.isSuspense = Ee, ie.isValidElementType = j, ie.typeOf = D;
|
|
3692
3674
|
}()), ie;
|
|
3693
3675
|
}
|
|
3694
3676
|
var Ls;
|
|
@@ -3790,16 +3772,16 @@ function Bh() {
|
|
|
3790
3772
|
throw p.name = "Invariant Violation", p;
|
|
3791
3773
|
}
|
|
3792
3774
|
f = a[u](i, u, l, s, null, t);
|
|
3793
|
-
} catch (
|
|
3794
|
-
f =
|
|
3775
|
+
} catch (y) {
|
|
3776
|
+
f = y;
|
|
3795
3777
|
}
|
|
3796
3778
|
if (f && !(f instanceof Error) && e(
|
|
3797
3779
|
(l || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
3798
3780
|
), f instanceof Error && !(f.message in r)) {
|
|
3799
3781
|
r[f.message] = !0;
|
|
3800
|
-
var
|
|
3782
|
+
var g = c ? c() : "";
|
|
3801
3783
|
e(
|
|
3802
|
-
"Failed " + s + " type: " + f.message + (
|
|
3784
|
+
"Failed " + s + " type: " + f.message + (g ?? "")
|
|
3803
3785
|
);
|
|
3804
3786
|
}
|
|
3805
3787
|
}
|
|
@@ -3834,7 +3816,7 @@ function Wh() {
|
|
|
3834
3816
|
if (typeof C == "function")
|
|
3835
3817
|
return C;
|
|
3836
3818
|
}
|
|
3837
|
-
var p = "<<anonymous>>",
|
|
3819
|
+
var p = "<<anonymous>>", g = {
|
|
3838
3820
|
array: T("array"),
|
|
3839
3821
|
bigint: T("bigint"),
|
|
3840
3822
|
bool: T("boolean"),
|
|
@@ -3844,8 +3826,8 @@ function Wh() {
|
|
|
3844
3826
|
string: T("string"),
|
|
3845
3827
|
symbol: T("symbol"),
|
|
3846
3828
|
any: A(),
|
|
3847
|
-
arrayOf:
|
|
3848
|
-
element:
|
|
3829
|
+
arrayOf: j,
|
|
3830
|
+
element: D(),
|
|
3849
3831
|
elementType: x(),
|
|
3850
3832
|
instanceOf: O,
|
|
3851
3833
|
node: _e(),
|
|
@@ -3855,7 +3837,7 @@ function Wh() {
|
|
|
3855
3837
|
shape: te,
|
|
3856
3838
|
exact: ce
|
|
3857
3839
|
};
|
|
3858
|
-
function
|
|
3840
|
+
function y(S, C) {
|
|
3859
3841
|
return S === C ? S !== 0 || 1 / S === 1 / C : S !== S && C !== C;
|
|
3860
3842
|
}
|
|
3861
3843
|
function h(S, C) {
|
|
@@ -3873,11 +3855,11 @@ function Wh() {
|
|
|
3873
3855
|
);
|
|
3874
3856
|
throw P.name = "Invariant Violation", P;
|
|
3875
3857
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3876
|
-
var
|
|
3877
|
-
!C[
|
|
3858
|
+
var Pe = H + ":" + B;
|
|
3859
|
+
!C[Pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3878
3860
|
W < 3 && (a(
|
|
3879
3861
|
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
3880
|
-
), C[
|
|
3862
|
+
), C[Pe] = !0, W++);
|
|
3881
3863
|
}
|
|
3882
3864
|
}
|
|
3883
3865
|
return L[B] == null ? N ? L[B] === null ? new h("The " + q + " `" + G + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new h("The " + q + " `" + G + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : S(L, B, H, q, G);
|
|
@@ -3902,7 +3884,7 @@ function Wh() {
|
|
|
3902
3884
|
function A() {
|
|
3903
3885
|
return b(i);
|
|
3904
3886
|
}
|
|
3905
|
-
function
|
|
3887
|
+
function j(S) {
|
|
3906
3888
|
function C(W, M, U, N, L) {
|
|
3907
3889
|
if (typeof S != "function")
|
|
3908
3890
|
return new h("Property `" + L + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -3920,7 +3902,7 @@ function Wh() {
|
|
|
3920
3902
|
}
|
|
3921
3903
|
return b(C);
|
|
3922
3904
|
}
|
|
3923
|
-
function
|
|
3905
|
+
function D() {
|
|
3924
3906
|
function S(C, W, M, U, N) {
|
|
3925
3907
|
var L = C[W];
|
|
3926
3908
|
if (!s(L)) {
|
|
@@ -3959,11 +3941,11 @@ function Wh() {
|
|
|
3959
3941
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
3960
3942
|
function C(W, M, U, N, L) {
|
|
3961
3943
|
for (var B = W[M], H = 0; H < S.length; H++)
|
|
3962
|
-
if (
|
|
3944
|
+
if (y(B, S[H]))
|
|
3963
3945
|
return null;
|
|
3964
3946
|
var q = JSON.stringify(S, function(Ee, P) {
|
|
3965
|
-
var
|
|
3966
|
-
return
|
|
3947
|
+
var Pe = Ze(P);
|
|
3948
|
+
return Pe === "symbol" ? String(P) : P;
|
|
3967
3949
|
});
|
|
3968
3950
|
return new h("Invalid " + N + " `" + L + "` of value `" + String(B) + "` " + ("supplied to `" + U + "`, expected one of " + q + "."));
|
|
3969
3951
|
}
|
|
@@ -4003,8 +3985,8 @@ function Wh() {
|
|
|
4003
3985
|
return null;
|
|
4004
3986
|
P.data && n(P.data, "expectedType") && q.push(P.data.expectedType);
|
|
4005
3987
|
}
|
|
4006
|
-
var
|
|
4007
|
-
return new h("Invalid " + B + " `" + H + "` supplied to " + ("`" + L + "`" +
|
|
3988
|
+
var Pe = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
3989
|
+
return new h("Invalid " + B + " `" + H + "` supplied to " + ("`" + L + "`" + Pe + "."));
|
|
4008
3990
|
}
|
|
4009
3991
|
return b(M);
|
|
4010
3992
|
}
|
|
@@ -4128,7 +4110,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
4128
4110
|
function xt(S) {
|
|
4129
4111
|
return !S.constructor || !S.constructor.name ? p : S.constructor.name;
|
|
4130
4112
|
}
|
|
4131
|
-
return
|
|
4113
|
+
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
4132
4114
|
}, ga;
|
|
4133
4115
|
}
|
|
4134
4116
|
var ya, Hs;
|
|
@@ -4227,7 +4209,7 @@ var Kh = {
|
|
|
4227
4209
|
strokeWidth: c,
|
|
4228
4210
|
className: `tabler-icon tabler-icon-${e}`
|
|
4229
4211
|
}), f),
|
|
4230
|
-
[...r.map(([p,
|
|
4212
|
+
[...r.map(([p, g]) => gs(p, g)), ...u || []]
|
|
4231
4213
|
);
|
|
4232
4214
|
}
|
|
4233
4215
|
);
|
|
@@ -4408,8 +4390,8 @@ function pm({ form: e, name: t, ...r }) {
|
|
|
4408
4390
|
onDropdownOpen: () => n.updateSelectedOptionIndex("active")
|
|
4409
4391
|
}), [o, a] = fe([]), [i, s] = fe(""), l = (f) => {
|
|
4410
4392
|
i !== "" && (o.includes(i) || a((p) => [...p, i]), s(""));
|
|
4411
|
-
}, c = (f) => a((p) => p.filter((
|
|
4412
|
-
return
|
|
4393
|
+
}, c = (f) => a((p) => p.filter((g) => g !== f)), u = o.map((f) => /* @__PURE__ */ d.jsx(ys, { withRemoveButton: !0, onRemove: () => c(f), children: f }, f));
|
|
4394
|
+
return $e(() => {
|
|
4413
4395
|
if (e.getInputProps(t).value)
|
|
4414
4396
|
try {
|
|
4415
4397
|
const f = JSON.parse(String(e.getInputProps(t).value));
|
|
@@ -4419,7 +4401,7 @@ function pm({ form: e, name: t, ...r }) {
|
|
|
4419
4401
|
}
|
|
4420
4402
|
else
|
|
4421
4403
|
e.getInputProps(t).onChange([]);
|
|
4422
|
-
}, []),
|
|
4404
|
+
}, []), $e(() => {
|
|
4423
4405
|
e.getInputProps(t).onChange(o);
|
|
4424
4406
|
}, [o]), /* @__PURE__ */ d.jsxs(
|
|
4425
4407
|
Er,
|
|
@@ -4477,9 +4459,9 @@ function hm({ onClose: e, ...t }) {
|
|
|
4477
4459
|
size: "sm",
|
|
4478
4460
|
c: "gray"
|
|
4479
4461
|
}, t);
|
|
4480
|
-
|
|
4462
|
+
$e(() => {
|
|
4481
4463
|
i.setValues({ filters: [] }), i.reset();
|
|
4482
|
-
}, [a]),
|
|
4464
|
+
}, [a]), $e(() => {
|
|
4483
4465
|
if (n.filters && n.filters.length) {
|
|
4484
4466
|
const f = n.filters.map((p) => ({
|
|
4485
4467
|
...p,
|
|
@@ -4489,8 +4471,8 @@ function hm({ onClose: e, ...t }) {
|
|
|
4489
4471
|
}
|
|
4490
4472
|
}, [n.filters]);
|
|
4491
4473
|
const c = (f) => {
|
|
4492
|
-
const p = f.filters.map(({ key:
|
|
4493
|
-
o({ filters:
|
|
4474
|
+
const p = f.filters.map(({ key: y, ...h }) => h), g = JSON.parse(JSON.stringify(p));
|
|
4475
|
+
o({ filters: g, page: 0 }), e();
|
|
4494
4476
|
}, u = i.values.filters.map((f, p) => /* @__PURE__ */ d.jsxs(Me, { px: "sm", children: [
|
|
4495
4477
|
/* @__PURE__ */ d.jsxs(Po, { my: "md", gap: "md", style: { whiteSpace: "nowrap" }, children: [
|
|
4496
4478
|
/* @__PURE__ */ d.jsx(Me, { style: { width: "192px" }, children: r && r.filters && /* @__PURE__ */ d.jsx(
|
|
@@ -4498,12 +4480,12 @@ function hm({ onClose: e, ...t }) {
|
|
|
4498
4480
|
{
|
|
4499
4481
|
form: i,
|
|
4500
4482
|
name: `filters.${p}.col`,
|
|
4501
|
-
items: Object.entries(r.filters).map(([
|
|
4502
|
-
label:
|
|
4503
|
-
value: String(
|
|
4483
|
+
items: Object.entries(r.filters).map(([g, y]) => ({
|
|
4484
|
+
label: y.label,
|
|
4485
|
+
value: String(g)
|
|
4504
4486
|
})),
|
|
4505
|
-
onChange: (
|
|
4506
|
-
i.setFieldValue(`filters.${p}`, { col:
|
|
4487
|
+
onChange: (g) => {
|
|
4488
|
+
i.setFieldValue(`filters.${p}`, { col: g, opr: "", value: "", key: Gn() });
|
|
4507
4489
|
}
|
|
4508
4490
|
}
|
|
4509
4491
|
) }),
|
|
@@ -4512,14 +4494,14 @@ function hm({ onClose: e, ...t }) {
|
|
|
4512
4494
|
{
|
|
4513
4495
|
form: i,
|
|
4514
4496
|
name: `filters.${p}.opr`,
|
|
4515
|
-
items: r.filters[f.col].filters.map((
|
|
4516
|
-
label:
|
|
4517
|
-
value:
|
|
4497
|
+
items: r.filters[f.col].filters.map((g) => ({
|
|
4498
|
+
label: g.name,
|
|
4499
|
+
value: g.operator
|
|
4518
4500
|
})),
|
|
4519
|
-
onChange: (
|
|
4501
|
+
onChange: (g) => {
|
|
4520
4502
|
i.setFieldValue(`filters.${p}`, {
|
|
4521
4503
|
col: i.values.filters[p].col,
|
|
4522
|
-
opr:
|
|
4504
|
+
opr: g,
|
|
4523
4505
|
value: "",
|
|
4524
4506
|
key: Gn()
|
|
4525
4507
|
});
|
|
@@ -4643,29 +4625,29 @@ function va({
|
|
|
4643
4625
|
customElement: l,
|
|
4644
4626
|
...c
|
|
4645
4627
|
}) {
|
|
4646
|
-
const { queryParams: u, setQueryParams: f, loading: p } = We(),
|
|
4628
|
+
const { queryParams: u, setQueryParams: f, loading: p } = We(), g = {
|
|
4647
4629
|
fw: 700,
|
|
4648
4630
|
size: "sm",
|
|
4649
4631
|
color: "gray.8",
|
|
4650
4632
|
hoverColor: "gray.6",
|
|
4651
4633
|
selectedColor: "blue"
|
|
4652
|
-
},
|
|
4634
|
+
}, y = ui({
|
|
4653
4635
|
name: "FieldTitle",
|
|
4654
4636
|
classes: Js,
|
|
4655
4637
|
classNames: i,
|
|
4656
4638
|
styles: s,
|
|
4657
4639
|
props: c
|
|
4658
|
-
}), h = Be("FieldTitle",
|
|
4640
|
+
}), h = Be("FieldTitle", g, c), { hovered: b, ref: T } = Yd(), A = r && u.order_column === r;
|
|
4659
4641
|
return /* @__PURE__ */ d.jsx(
|
|
4660
|
-
|
|
4642
|
+
Re.Th,
|
|
4661
4643
|
{
|
|
4662
4644
|
className: Js.fieldTitleRoot,
|
|
4663
|
-
...
|
|
4645
|
+
...y("root"),
|
|
4664
4646
|
onClick: r && !p ? () => f({
|
|
4665
4647
|
order_column: r,
|
|
4666
4648
|
order_direction: u.order_direction === "asc" ? "desc" : "asc"
|
|
4667
4649
|
}) : null,
|
|
4668
|
-
children: /* @__PURE__ */ d.jsx(Me, { ref: T, ...
|
|
4650
|
+
children: /* @__PURE__ */ d.jsx(Me, { ref: T, ...y("wrapper"), children: e === "Checkbox" ? /* @__PURE__ */ d.jsx(fi, { pb: 5, pl: 2, onChange: o, checked: a }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
4669
4651
|
/* @__PURE__ */ d.jsx(
|
|
4670
4652
|
Me,
|
|
4671
4653
|
{
|
|
@@ -4681,9 +4663,9 @@ function va({
|
|
|
4681
4663
|
{
|
|
4682
4664
|
label: "rel",
|
|
4683
4665
|
style: { indicator: { top: "-1px !important", right: "-2px !important", padding: "4px" } },
|
|
4684
|
-
children: /* @__PURE__ */ d.jsx(Me, { ...
|
|
4666
|
+
children: /* @__PURE__ */ d.jsx(Me, { ...y("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
|
|
4685
4667
|
}
|
|
4686
|
-
) }) : /* @__PURE__ */ d.jsx(Me, { ...
|
|
4668
|
+
) }) : /* @__PURE__ */ d.jsx(Me, { ...y("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
|
|
4687
4669
|
] }) })
|
|
4688
4670
|
}
|
|
4689
4671
|
);
|
|
@@ -4692,19 +4674,19 @@ const Eu = Ao(
|
|
|
4692
4674
|
({ data: e, info: t, settings: r, hideActions: n, hideCheckbox: o, allChecked: a, toggleAll: i, headerCustomizer: s }) => {
|
|
4693
4675
|
const l = e.list_columns.includes("actions") ? "_actions" : "actions";
|
|
4694
4676
|
let c = s == null ? void 0 : s[l];
|
|
4695
|
-
return typeof c == "function" && (c = c()), /* @__PURE__ */ d.jsx(
|
|
4677
|
+
return typeof c == "function" && (c = c()), /* @__PURE__ */ d.jsx(Re.Thead, { children: /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
|
|
4696
4678
|
o ? null : /* @__PURE__ */ d.jsx(va, { data: e, column: "Checkbox", allChecked: a, toggleAll: i }),
|
|
4697
4679
|
n ? null : /* @__PURE__ */ d.jsx(va, { column: "Actions", customElement: c }),
|
|
4698
4680
|
e.list_columns.map((u, f) => {
|
|
4699
|
-
var
|
|
4681
|
+
var g;
|
|
4700
4682
|
let p = s == null ? void 0 : s[u];
|
|
4701
4683
|
return typeof p == "function" && (p = p(e.label_columns[u])), p === null ? null : /* @__PURE__ */ d.jsx(
|
|
4702
4684
|
va,
|
|
4703
4685
|
{
|
|
4704
4686
|
column: u,
|
|
4705
4687
|
label: e.label_columns[u],
|
|
4706
|
-
orderColumn: e.order_columns.find((
|
|
4707
|
-
related: ((
|
|
4688
|
+
orderColumn: e.order_columns.find((y) => y === u) || e.order_columns.find((y) => y.startsWith(`${u}.`)),
|
|
4689
|
+
related: ((g = t.filters[u]) == null ? void 0 : g.schema.type) === "Nested",
|
|
4708
4690
|
customElement: p
|
|
4709
4691
|
},
|
|
4710
4692
|
u
|
|
@@ -4840,20 +4822,20 @@ function Om({ item: e, info: t, opened: r, onClose: n, ...o }) {
|
|
|
4840
4822
|
initialValues: t.edit.defaultValues,
|
|
4841
4823
|
validate: ki(t.edit.schema)
|
|
4842
4824
|
}), f = () => {
|
|
4843
|
-
const
|
|
4844
|
-
return Object.keys(u.values).forEach((
|
|
4845
|
-
u.isDirty(
|
|
4846
|
-
}),
|
|
4825
|
+
const g = {};
|
|
4826
|
+
return Object.keys(u.values).forEach((y) => {
|
|
4827
|
+
u.isDirty(y) && (g[y] = !0);
|
|
4828
|
+
}), g;
|
|
4847
4829
|
};
|
|
4848
|
-
|
|
4849
|
-
e && wm(e, t).then((
|
|
4850
|
-
u.setValues(
|
|
4830
|
+
$e(() => {
|
|
4831
|
+
e && wm(e, t).then((g) => {
|
|
4832
|
+
u.setValues(g), u.resetDirty(g);
|
|
4851
4833
|
});
|
|
4852
4834
|
}, [e, t.edit.columns]);
|
|
4853
|
-
const p = async (
|
|
4854
|
-
|
|
4835
|
+
const p = async (g) => {
|
|
4836
|
+
g = Su(f(), g), await a(e.id, g), n();
|
|
4855
4837
|
};
|
|
4856
|
-
return
|
|
4838
|
+
return $e(() => {
|
|
4857
4839
|
u.setInitialValues(t.edit.defaultValues), u.reset();
|
|
4858
4840
|
}, [t.edit.defaultValues]), e ? /* @__PURE__ */ d.jsx(
|
|
4859
4841
|
Nr,
|
|
@@ -4867,17 +4849,17 @@ function Om({ item: e, info: t, opened: r, onClose: n, ...o }) {
|
|
|
4867
4849
|
centered: !0,
|
|
4868
4850
|
...s,
|
|
4869
4851
|
children: /* @__PURE__ */ d.jsx(Me, { component: "form", onSubmit: u.onSubmit(p), children: /* @__PURE__ */ d.jsx($o, { spacing: "md", ...l, children: /* @__PURE__ */ d.jsxs(Sn.Autosize, { mah: 450, type: "auto", children: [
|
|
4870
|
-
t.edit.columns.map((
|
|
4852
|
+
t.edit.columns.map((g, y) => /* @__PURE__ */ d.jsx(
|
|
4871
4853
|
ji,
|
|
4872
4854
|
{
|
|
4873
4855
|
form: u,
|
|
4874
|
-
name:
|
|
4875
|
-
label:
|
|
4876
|
-
description:
|
|
4877
|
-
schema:
|
|
4878
|
-
withAsterisk:
|
|
4856
|
+
name: g.name,
|
|
4857
|
+
label: g.label,
|
|
4858
|
+
description: g.description,
|
|
4859
|
+
schema: g,
|
|
4860
|
+
withAsterisk: g.required
|
|
4879
4861
|
},
|
|
4880
|
-
|
|
4862
|
+
y
|
|
4881
4863
|
)),
|
|
4882
4864
|
/* @__PURE__ */ d.jsx(Fr, { position: "right", mt: "xl", children: /* @__PURE__ */ d.jsx(Yt, { type: "submit", ...c, children: "Save" }) })
|
|
4883
4865
|
] }) }) })
|
|
@@ -4983,7 +4965,7 @@ var Mi = {}, Ni = {};
|
|
|
4983
4965
|
}
|
|
4984
4966
|
e.isTag = r, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
|
|
4985
4967
|
})(Ni);
|
|
4986
|
-
var X = {}, Zt =
|
|
4968
|
+
var X = {}, Zt = ke && ke.__extends || function() {
|
|
4987
4969
|
var e = function(t, r) {
|
|
4988
4970
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
4989
4971
|
n.__proto__ = o;
|
|
@@ -5001,7 +4983,7 @@ var X = {}, Zt = Re && Re.__extends || function() {
|
|
|
5001
4983
|
}
|
|
5002
4984
|
t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
5003
4985
|
};
|
|
5004
|
-
}(), hn =
|
|
4986
|
+
}(), hn = ke && ke.__assign || function() {
|
|
5005
4987
|
return hn = Object.assign || function(e) {
|
|
5006
4988
|
for (var t, r = 1, n = arguments.length; r < n; r++) {
|
|
5007
4989
|
t = arguments[r];
|
|
@@ -5335,7 +5317,7 @@ function ba(e) {
|
|
|
5335
5317
|
return t;
|
|
5336
5318
|
}
|
|
5337
5319
|
(function(e) {
|
|
5338
|
-
var t =
|
|
5320
|
+
var t = ke && ke.__createBinding || (Object.create ? function(s, l, c, u) {
|
|
5339
5321
|
u === void 0 && (u = c);
|
|
5340
5322
|
var f = Object.getOwnPropertyDescriptor(l, c);
|
|
5341
5323
|
(!f || ("get" in f ? !l.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() {
|
|
@@ -5343,7 +5325,7 @@ function ba(e) {
|
|
|
5343
5325
|
} }), Object.defineProperty(s, u, f);
|
|
5344
5326
|
} : function(s, l, c, u) {
|
|
5345
5327
|
u === void 0 && (u = c), s[u] = l[c];
|
|
5346
|
-
}), r =
|
|
5328
|
+
}), r = ke && ke.__exportStar || function(s, l) {
|
|
5347
5329
|
for (var c in s)
|
|
5348
5330
|
c !== "default" && !Object.prototype.hasOwnProperty.call(l, c) && t(l, s, c);
|
|
5349
5331
|
};
|
|
@@ -5555,7 +5537,7 @@ function Lu(e, t, r) {
|
|
|
5555
5537
|
return r && (o = new Zn.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), o.next = n[0] || null, o.parent = t, n.unshift(o), n[1] && (n[1].prev = n[0])), n;
|
|
5556
5538
|
}
|
|
5557
5539
|
Dr.formatDOM = Lu;
|
|
5558
|
-
var Lm =
|
|
5540
|
+
var Lm = ke && ke.__importDefault || function(e) {
|
|
5559
5541
|
return e && e.__esModule ? e : { default: e };
|
|
5560
5542
|
};
|
|
5561
5543
|
Object.defineProperty(zi, "__esModule", { value: !0 });
|
|
@@ -6500,31 +6482,31 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
|
|
|
6500
6482
|
return [];
|
|
6501
6483
|
t = t || {};
|
|
6502
6484
|
var r = 1, n = 1;
|
|
6503
|
-
function o(
|
|
6504
|
-
var h =
|
|
6485
|
+
function o(y) {
|
|
6486
|
+
var h = y.match(tg);
|
|
6505
6487
|
h && (r += h.length);
|
|
6506
|
-
var b =
|
|
6507
|
-
n = ~b ?
|
|
6488
|
+
var b = y.lastIndexOf(lg);
|
|
6489
|
+
n = ~b ? y.length - b : n + y.length;
|
|
6508
6490
|
}
|
|
6509
6491
|
function a() {
|
|
6510
|
-
var
|
|
6492
|
+
var y = { line: r, column: n };
|
|
6511
6493
|
return function(h) {
|
|
6512
|
-
return h.position = new i(
|
|
6494
|
+
return h.position = new i(y), c(), h;
|
|
6513
6495
|
};
|
|
6514
6496
|
}
|
|
6515
|
-
function i(
|
|
6516
|
-
this.start =
|
|
6497
|
+
function i(y) {
|
|
6498
|
+
this.start = y, this.end = { line: r, column: n }, this.source = t.source;
|
|
6517
6499
|
}
|
|
6518
6500
|
i.prototype.content = e;
|
|
6519
|
-
function s(
|
|
6501
|
+
function s(y) {
|
|
6520
6502
|
var h = new Error(
|
|
6521
|
-
t.source + ":" + r + ":" + n + ": " +
|
|
6503
|
+
t.source + ":" + r + ":" + n + ": " + y
|
|
6522
6504
|
);
|
|
6523
|
-
if (h.reason =
|
|
6505
|
+
if (h.reason = y, h.filename = t.source, h.line = r, h.column = n, h.source = e, !t.silent)
|
|
6524
6506
|
throw h;
|
|
6525
6507
|
}
|
|
6526
|
-
function l(
|
|
6527
|
-
var h =
|
|
6508
|
+
function l(y) {
|
|
6509
|
+
var h = y.exec(e);
|
|
6528
6510
|
if (h) {
|
|
6529
6511
|
var b = h[0];
|
|
6530
6512
|
return o(b), e = e.slice(b.length), h;
|
|
@@ -6533,32 +6515,32 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
|
|
|
6533
6515
|
function c() {
|
|
6534
6516
|
l(rg);
|
|
6535
6517
|
}
|
|
6536
|
-
function u(
|
|
6518
|
+
function u(y) {
|
|
6537
6519
|
var h;
|
|
6538
|
-
for (
|
|
6539
|
-
h !== !1 &&
|
|
6540
|
-
return
|
|
6520
|
+
for (y = y || []; h = f(); )
|
|
6521
|
+
h !== !1 && y.push(h);
|
|
6522
|
+
return y;
|
|
6541
6523
|
}
|
|
6542
6524
|
function f() {
|
|
6543
|
-
var
|
|
6525
|
+
var y = a();
|
|
6544
6526
|
if (!(il != e.charAt(0) || sl != e.charAt(1))) {
|
|
6545
6527
|
for (var h = 2; lr != e.charAt(h) && (sl != e.charAt(h) || il != e.charAt(h + 1)); )
|
|
6546
6528
|
++h;
|
|
6547
6529
|
if (h += 2, lr === e.charAt(h - 1))
|
|
6548
6530
|
return s("End of comment missing");
|
|
6549
6531
|
var b = e.slice(2, h - 2);
|
|
6550
|
-
return n += 2, o(b), e = e.slice(h), n += 2,
|
|
6532
|
+
return n += 2, o(b), e = e.slice(h), n += 2, y({
|
|
6551
6533
|
type: cg,
|
|
6552
6534
|
comment: b
|
|
6553
6535
|
});
|
|
6554
6536
|
}
|
|
6555
6537
|
}
|
|
6556
6538
|
function p() {
|
|
6557
|
-
var
|
|
6539
|
+
var y = a(), h = l(ng);
|
|
6558
6540
|
if (h) {
|
|
6559
6541
|
if (f(), !l(og))
|
|
6560
6542
|
return s("property missing ':'");
|
|
6561
|
-
var b = l(ag), T =
|
|
6543
|
+
var b = l(ag), T = y({
|
|
6562
6544
|
type: ug,
|
|
6563
6545
|
property: ll(h[0].replace(al, lr)),
|
|
6564
6546
|
value: b ? ll(b[0].replace(al, lr)) : lr
|
|
@@ -6566,19 +6548,19 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
|
|
|
6566
6548
|
return l(ig), T;
|
|
6567
6549
|
}
|
|
6568
6550
|
}
|
|
6569
|
-
function
|
|
6570
|
-
var
|
|
6571
|
-
u(
|
|
6551
|
+
function g() {
|
|
6552
|
+
var y = [];
|
|
6553
|
+
u(y);
|
|
6572
6554
|
for (var h; h = p(); )
|
|
6573
|
-
h !== !1 && (
|
|
6574
|
-
return
|
|
6555
|
+
h !== !1 && (y.push(h), u(y));
|
|
6556
|
+
return y;
|
|
6575
6557
|
}
|
|
6576
|
-
return c(),
|
|
6558
|
+
return c(), g();
|
|
6577
6559
|
};
|
|
6578
6560
|
function ll(e) {
|
|
6579
6561
|
return e ? e.replace(sg, lr) : lr;
|
|
6580
6562
|
}
|
|
6581
|
-
var dg =
|
|
6563
|
+
var dg = ke && ke.__importDefault || function(e) {
|
|
6582
6564
|
return e && e.__esModule ? e : { default: e };
|
|
6583
6565
|
};
|
|
6584
6566
|
Object.defineProperty(Gi, "__esModule", { value: !0 });
|
|
@@ -6609,7 +6591,7 @@ var mg = /^--[a-zA-Z0-9-]+$/, gg = /-([a-z])/g, yg = /^[^-]+$/, vg = /^-(webkit|
|
|
|
6609
6591
|
return t === void 0 && (t = {}), xg(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(bg, cl) : e = e.replace(vg, cl), e.replace(gg, _g));
|
|
6610
6592
|
};
|
|
6611
6593
|
Lo.camelCase = Eg;
|
|
6612
|
-
var Tg =
|
|
6594
|
+
var Tg = ke && ke.__importDefault || function(e) {
|
|
6613
6595
|
return e && e.__esModule ? e : { default: e };
|
|
6614
6596
|
};
|
|
6615
6597
|
Object.defineProperty(Hi, "__esModule", { value: !0 });
|
|
@@ -6699,7 +6681,7 @@ function fl(e) {
|
|
|
6699
6681
|
var Lg = je, zg = Hu, yn = Wu, Ug = yn.setStyleProp, Vg = yn.canTextBeChildOfNode;
|
|
6700
6682
|
function Gu(e, t) {
|
|
6701
6683
|
t = t || {};
|
|
6702
|
-
for (var r = t.library || Lg, n = r.cloneElement, o = r.createElement, a = r.isValidElement, i = [], s, l, c = typeof t.replace == "function", u = t.transform || yn.returnFirstArg, f, p,
|
|
6684
|
+
for (var r = t.library || Lg, n = r.cloneElement, o = r.createElement, a = r.isValidElement, i = [], s, l, c = typeof t.replace == "function", u = t.transform || yn.returnFirstArg, f, p, g, y = t.trim, h = 0, b = e.length; h < b; h++) {
|
|
6703
6685
|
if (s = e[h], c && (f = t.replace(s), a(f))) {
|
|
6704
6686
|
b > 1 && (f = n(f, {
|
|
6705
6687
|
key: f.key || h
|
|
@@ -6707,12 +6689,12 @@ function Gu(e, t) {
|
|
|
6707
6689
|
continue;
|
|
6708
6690
|
}
|
|
6709
6691
|
if (s.type === "text") {
|
|
6710
|
-
if (l = !s.data.trim().length, l && s.parent && !Vg(s.parent) ||
|
|
6692
|
+
if (l = !s.data.trim().length, l && s.parent && !Vg(s.parent) || y && l)
|
|
6711
6693
|
continue;
|
|
6712
6694
|
i.push(u(s.data, s, h));
|
|
6713
6695
|
continue;
|
|
6714
6696
|
}
|
|
6715
|
-
switch (p = s.attribs, Bg(s) ? Ug(p.style, p) : p && (p = zg(p, s.name)),
|
|
6697
|
+
switch (p = s.attribs, Bg(s) ? Ug(p.style, p) : p && (p = zg(p, s.name)), g = null, s.type) {
|
|
6716
6698
|
case "script":
|
|
6717
6699
|
case "style":
|
|
6718
6700
|
s.children[0] && (p.dangerouslySetInnerHTML = {
|
|
@@ -6720,12 +6702,12 @@ function Gu(e, t) {
|
|
|
6720
6702
|
});
|
|
6721
6703
|
break;
|
|
6722
6704
|
case "tag":
|
|
6723
|
-
s.name === "textarea" && s.children[0] ? p.defaultValue = s.children[0].data : s.children && s.children.length && (
|
|
6705
|
+
s.name === "textarea" && s.children[0] ? p.defaultValue = s.children[0].data : s.children && s.children.length && (g = Gu(s.children, t));
|
|
6724
6706
|
break;
|
|
6725
6707
|
default:
|
|
6726
6708
|
continue;
|
|
6727
6709
|
}
|
|
6728
|
-
b > 1 && (p.key = h), i.push(u(o(s.name, p,
|
|
6710
|
+
b > 1 && (p.key = h), i.push(u(o(s.name, p, g), s, h));
|
|
6729
6711
|
}
|
|
6730
6712
|
return i.length === 1 ? i[0] : i;
|
|
6731
6713
|
}
|
|
@@ -6920,13 +6902,13 @@ function Zu() {
|
|
|
6920
6902
|
NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
6921
6903
|
HTMLFormElement: f,
|
|
6922
6904
|
DOMParser: p,
|
|
6923
|
-
trustedTypes:
|
|
6924
|
-
} = e,
|
|
6905
|
+
trustedTypes: g
|
|
6906
|
+
} = e, y = l.prototype, h = ln(y, "cloneNode"), b = ln(y, "remove"), T = ln(y, "nextSibling"), A = ln(y, "childNodes"), j = ln(y, "parentNode");
|
|
6925
6907
|
if (typeof i == "function") {
|
|
6926
6908
|
const w = r.createElement("template");
|
|
6927
6909
|
w.content && w.content.ownerDocument && (r = w.content.ownerDocument);
|
|
6928
6910
|
}
|
|
6929
|
-
let
|
|
6911
|
+
let D, x = "";
|
|
6930
6912
|
const {
|
|
6931
6913
|
implementation: O,
|
|
6932
6914
|
createNodeIterator: k,
|
|
@@ -6936,7 +6918,7 @@ function Zu() {
|
|
|
6936
6918
|
importNode: _e
|
|
6937
6919
|
} = n;
|
|
6938
6920
|
let F = {};
|
|
6939
|
-
t.isSupported = typeof Yu == "function" && typeof
|
|
6921
|
+
t.isSupported = typeof Yu == "function" && typeof j == "function" && O && O.createHTMLDocument !== void 0;
|
|
6940
6922
|
const {
|
|
6941
6923
|
MUSTACHE_EXPR: te,
|
|
6942
6924
|
ERB_EXPR: ce,
|
|
@@ -6972,7 +6954,7 @@ function Zu() {
|
|
|
6972
6954
|
enumerable: !0,
|
|
6973
6955
|
value: !1
|
|
6974
6956
|
}
|
|
6975
|
-
})), L = null, B = null, H = !0, q = !0, G = !1, Ee = !0, P = !1,
|
|
6957
|
+
})), L = null, B = null, H = !0, q = !0, G = !1, Ee = !0, P = !1, Pe = !0, I = !1, Ge = !1, Qe = !1, dt = !1, rr = !1, Dt = !1, kn = !0, jn = !1;
|
|
6976
6958
|
const Xr = "user-content-";
|
|
6977
6959
|
let Jr = !0, nr = !1, Mt = {}, Nt = null;
|
|
6978
6960
|
const Bt = K({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -7005,18 +6987,18 @@ function Zu() {
|
|
|
7005
6987
|
// eslint-disable-line indent
|
|
7006
6988
|
ve
|
|
7007
6989
|
// eslint-disable-line indent
|
|
7008
|
-
) : Zr, Nt = Et(v, "FORBID_CONTENTS") ? K({}, v.FORBID_CONTENTS, ve) : Bt, L = Et(v, "FORBID_TAGS") ? K({}, v.FORBID_TAGS, ve) : {}, B = Et(v, "FORBID_ATTR") ? K({}, v.FORBID_ATTR, ve) : {}, Mt = Et(v, "USE_PROFILES") ? v.USE_PROFILES : !1, H = v.ALLOW_ARIA_ATTR !== !1, q = v.ALLOW_DATA_ATTR !== !1, G = v.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = v.SAFE_FOR_TEMPLATES || !1,
|
|
6990
|
+
) : Zr, Nt = Et(v, "FORBID_CONTENTS") ? K({}, v.FORBID_CONTENTS, ve) : Bt, L = Et(v, "FORBID_TAGS") ? K({}, v.FORBID_TAGS, ve) : {}, B = Et(v, "FORBID_ATTR") ? K({}, v.FORBID_ATTR, ve) : {}, Mt = Et(v, "USE_PROFILES") ? v.USE_PROFILES : !1, H = v.ALLOW_ARIA_ATTR !== !1, q = v.ALLOW_DATA_ATTR !== !1, G = v.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = v.SAFE_FOR_TEMPLATES || !1, Pe = v.SAFE_FOR_XML !== !1, I = v.WHOLE_DOCUMENT || !1, dt = v.RETURN_DOM || !1, rr = v.RETURN_DOM_FRAGMENT || !1, Dt = v.RETURN_TRUSTED_TYPE || !1, Qe = v.FORCE_BODY || !1, kn = v.SANITIZE_DOM !== !1, jn = v.SANITIZE_NAMED_PROPS || !1, Jr = v.KEEP_CONTENT !== !1, nr = v.IN_PLACE || !1, S = v.ALLOWED_URI_REGEXP || Xu, Wt = v.NAMESPACE || _t, N = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (q = !1), rr && (dt = !0), Mt && (C = K({}, gl), M = [], Mt.html === !0 && (K(C, ml), K(M, yl)), Mt.svg === !0 && (K(C, _a), K(M, Sa), K(M, eo)), Mt.svgFilters === !0 && (K(C, Ea), K(M, Sa), K(M, eo)), Mt.mathMl === !0 && (K(C, Ta), K(M, vl), K(M, eo))), v.ADD_TAGS && (C === W && (C = ir(C)), K(C, v.ADD_TAGS, ve)), v.ADD_ATTR && (M === U && (M = ir(M)), K(M, v.ADD_ATTR, ve)), v.ADD_URI_SAFE_ATTR && K(gr, v.ADD_URI_SAFE_ATTR, ve), v.FORBID_CONTENTS && (Nt === Bt && (Nt = ir(Nt)), K(Nt, v.FORBID_CONTENTS, ve)), Jr && (C["#text"] = !0), I && K(C, ["html", "head", "body"]), C.table && (K(C, ["tbody"]), delete L.tbody), v.TRUSTED_TYPES_POLICY) {
|
|
7009
6991
|
if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
7010
6992
|
throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
7011
6993
|
if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
7012
6994
|
throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
7013
|
-
|
|
6995
|
+
D = v.TRUSTED_TYPES_POLICY, x = D.createHTML("");
|
|
7014
6996
|
} else
|
|
7015
|
-
|
|
6997
|
+
D === void 0 && (D = dy(g, o)), D !== null && typeof x == "string" && (x = D.createHTML(""));
|
|
7016
6998
|
Ke && Ke(v), At = v;
|
|
7017
6999
|
}
|
|
7018
7000
|
}, Fn = K({}, ["mi", "mo", "mn", "ms", "mtext"]), tn = K({}, ["foreignobject", "annotation-xml"]), Ln = K({}, ["title", "style", "font", "a", "script"]), zn = K({}, [..._a, ...Ea, ...ty]), Un = K({}, [...Ta, ...ry]), Vn = function(v) {
|
|
7019
|
-
let E =
|
|
7001
|
+
let E = j(v);
|
|
7020
7002
|
(!E || !E.tagName) && (E = {
|
|
7021
7003
|
namespaceURI: Wt,
|
|
7022
7004
|
tagName: "template"
|
|
@@ -7028,7 +7010,7 @@ function Zu() {
|
|
|
7028
7010
|
element: v
|
|
7029
7011
|
});
|
|
7030
7012
|
try {
|
|
7031
|
-
|
|
7013
|
+
j(v).removeChild(v);
|
|
7032
7014
|
} catch {
|
|
7033
7015
|
b(v);
|
|
7034
7016
|
}
|
|
@@ -7064,7 +7046,7 @@ function Zu() {
|
|
|
7064
7046
|
$ = he && he[0];
|
|
7065
7047
|
}
|
|
7066
7048
|
Ft === "application/xhtml+xml" && Wt === _t && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
|
|
7067
|
-
const Y =
|
|
7049
|
+
const Y = D ? D.createHTML(v) : v;
|
|
7068
7050
|
if (Wt === _t)
|
|
7069
7051
|
try {
|
|
7070
7052
|
E = new p().parseFromString(Y, Ft);
|
|
@@ -7078,7 +7060,7 @@ function Zu() {
|
|
|
7078
7060
|
}
|
|
7079
7061
|
}
|
|
7080
7062
|
const ye = E.body || E.documentElement;
|
|
7081
|
-
return v && $ && ye.insertBefore(r.createTextNode($), ye.childNodes[0] || null), Wt === _t ? ee.call(E,
|
|
7063
|
+
return v && $ && ye.insertBefore(r.createTextNode($), ye.childNodes[0] || null), Wt === _t ? ee.call(E, I ? "html" : "body")[0] : I ? E.documentElement : ye;
|
|
7082
7064
|
}, Wn = function(v) {
|
|
7083
7065
|
return k.call(
|
|
7084
7066
|
v.ownerDocument || v,
|
|
@@ -7103,13 +7085,13 @@ function Zu() {
|
|
|
7103
7085
|
if (_("uponSanitizeElement", v, {
|
|
7104
7086
|
tagName: $,
|
|
7105
7087
|
allowedTags: C
|
|
7106
|
-
}), v.hasChildNodes() && !m(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === cn.progressingInstruction ||
|
|
7088
|
+
}), v.hasChildNodes() && !m(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === cn.progressingInstruction || Pe && v.nodeType === cn.comment && qe(/<[/\w]/g, v.data))
|
|
7107
7089
|
return st(v), !0;
|
|
7108
7090
|
if (!C[$] || L[$]) {
|
|
7109
7091
|
if (!L[$] && Q($) && (N.tagNameCheck instanceof RegExp && qe(N.tagNameCheck, $) || N.tagNameCheck instanceof Function && N.tagNameCheck($)))
|
|
7110
7092
|
return !1;
|
|
7111
7093
|
if (Jr && !Nt[$]) {
|
|
7112
|
-
const Y =
|
|
7094
|
+
const Y = j(v) || v.parentNode, ye = A(v) || v.childNodes;
|
|
7113
7095
|
if (ye && Y) {
|
|
7114
7096
|
const he = ye.length;
|
|
7115
7097
|
for (let ue = he - 1; ue >= 0; --ue) {
|
|
@@ -7176,7 +7158,7 @@ function Zu() {
|
|
|
7176
7158
|
value: et
|
|
7177
7159
|
} = ye, or = ve(he);
|
|
7178
7160
|
let De = he === "value" ? et : Zg(et);
|
|
7179
|
-
if ($.attrName = or, $.attrValue = De, $.keepAttr = !0, $.forceKeepAttr = void 0, _("uponSanitizeAttribute", v, $), De = $.attrValue,
|
|
7161
|
+
if ($.attrName = or, $.attrValue = De, $.keepAttr = !0, $.forceKeepAttr = void 0, _("uponSanitizeAttribute", v, $), De = $.attrValue, Pe && qe(/((--!?|])>)|<\/(style|title)/i, De)) {
|
|
7180
7162
|
_r(he, v);
|
|
7181
7163
|
continue;
|
|
7182
7164
|
}
|
|
@@ -7191,14 +7173,14 @@ function Zu() {
|
|
|
7191
7173
|
});
|
|
7192
7174
|
const ps = ve(v.nodeName);
|
|
7193
7175
|
if (z(ps, or, De)) {
|
|
7194
|
-
if (jn && (or === "id" || or === "name") && (_r(he, v), De = Xr + De),
|
|
7195
|
-
switch (
|
|
7176
|
+
if (jn && (or === "id" || or === "name") && (_r(he, v), De = Xr + De), D && typeof g == "object" && typeof g.getAttributeType == "function" && !ue)
|
|
7177
|
+
switch (g.getAttributeType(ps, or)) {
|
|
7196
7178
|
case "TrustedHTML": {
|
|
7197
|
-
De =
|
|
7179
|
+
De = D.createHTML(De);
|
|
7198
7180
|
break;
|
|
7199
7181
|
}
|
|
7200
7182
|
case "TrustedScriptURL": {
|
|
7201
|
-
De =
|
|
7183
|
+
De = D.createScriptURL(De);
|
|
7202
7184
|
break;
|
|
7203
7185
|
}
|
|
7204
7186
|
}
|
|
@@ -7235,9 +7217,9 @@ function Zu() {
|
|
|
7235
7217
|
} else if (w instanceof s)
|
|
7236
7218
|
E = Bn("<!---->"), $ = E.ownerDocument.importNode(w, !0), $.nodeType === cn.element && $.nodeName === "BODY" || $.nodeName === "HTML" ? E = $ : E.appendChild($);
|
|
7237
7219
|
else {
|
|
7238
|
-
if (!dt && !P && !
|
|
7220
|
+
if (!dt && !P && !I && // eslint-disable-next-line unicorn/prefer-includes
|
|
7239
7221
|
w.indexOf("<") === -1)
|
|
7240
|
-
return
|
|
7222
|
+
return D && Dt ? D.createHTML(w) : w;
|
|
7241
7223
|
if (E = Bn(w), !E)
|
|
7242
7224
|
return dt ? null : Dt ? x : "";
|
|
7243
7225
|
}
|
|
@@ -7255,11 +7237,11 @@ function Zu() {
|
|
|
7255
7237
|
ye = E;
|
|
7256
7238
|
return (M.shadowroot || M.shadowrootmode) && (ye = _e.call(n, ye, !0)), ye;
|
|
7257
7239
|
}
|
|
7258
|
-
let ue =
|
|
7259
|
-
return
|
|
7240
|
+
let ue = I ? E.outerHTML : E.innerHTML;
|
|
7241
|
+
return I && C["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && qe(Ju, E.ownerDocument.doctype.name) && (ue = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
|
|
7260
7242
|
` + ue), P && Qn([te, ce, pe], (et) => {
|
|
7261
7243
|
ue = an(ue, et, " ");
|
|
7262
|
-
}),
|
|
7244
|
+
}), D && Dt ? D.createHTML(ue) : ue;
|
|
7263
7245
|
}, t.setConfig = function() {
|
|
7264
7246
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7265
7247
|
xr(w), Ge = !0;
|
|
@@ -7290,17 +7272,17 @@ const hy = "_field_zdaf7_1", my = "_rtl_zdaf7_7", gy = "_borderRight_zdaf7_12",
|
|
|
7290
7272
|
const c = {
|
|
7291
7273
|
text: { style: { whiteSpace: "nowrap", overflow: "ellipsis" } }
|
|
7292
7274
|
}, { text: u } = Be("Field", c, l), f = {};
|
|
7293
|
-
Object.entries(u).forEach(([
|
|
7294
|
-
typeof h == "function" && (f[
|
|
7275
|
+
Object.entries(u).forEach(([y, h]) => {
|
|
7276
|
+
typeof h == "function" && (f[y] = h(t));
|
|
7295
7277
|
});
|
|
7296
7278
|
let p;
|
|
7297
7279
|
s && (p = py.sanitize(o));
|
|
7298
|
-
const
|
|
7280
|
+
const g = ui({
|
|
7299
7281
|
name: "Field",
|
|
7300
7282
|
props: l,
|
|
7301
7283
|
classes: yy
|
|
7302
7284
|
});
|
|
7303
|
-
return /* @__PURE__ */ d.jsx(
|
|
7285
|
+
return /* @__PURE__ */ d.jsx(Re.Td, { ...g("field"), onClick: a ? () => a(e, t) : null, ...l, children: /* @__PURE__ */ d.jsx(Me, { w: "100%", children: /* @__PURE__ */ d.jsx(Bd, { visible: r, children: i || (typeof o != "object" ? /* @__PURE__ */ d.jsx(nt, { ...u, ...f, children: p || o }) : p || o) }) }) });
|
|
7304
7286
|
}
|
|
7305
7287
|
);
|
|
7306
7288
|
io.displayName = "Field";
|
|
@@ -7318,7 +7300,7 @@ function xy({ entry: e, selected: t, children: r }) {
|
|
|
7318
7300
|
});
|
|
7319
7301
|
var { className: a, style: i } = n("row");
|
|
7320
7302
|
return a = `${a} ${t ? xl.selected : ""}`, /* @__PURE__ */ d.jsx(
|
|
7321
|
-
|
|
7303
|
+
Re.Tr,
|
|
7322
7304
|
{
|
|
7323
7305
|
className: a,
|
|
7324
7306
|
style: { ...i },
|
|
@@ -7333,7 +7315,7 @@ function _y({ bodyCustomizer: e, actionColumn: t, id: r, entry: n }) {
|
|
|
7333
7315
|
}
|
|
7334
7316
|
function Ey({ data: e, loading: t, hideActions: r, hideCheckbox: n, selection: o, toggleRow: a, onClickEntry: i, bodyCustomizer: s }) {
|
|
7335
7317
|
const l = e.list_columns.includes("actions") ? "_actions" : "actions";
|
|
7336
|
-
return /* @__PURE__ */ d.jsx(
|
|
7318
|
+
return /* @__PURE__ */ d.jsx(Re.Tbody, { children: e.result.length ? e.result.map((c, u) => {
|
|
7337
7319
|
const f = e.ids[u];
|
|
7338
7320
|
return /* @__PURE__ */ d.jsxs(xy, { entry: { ...c, id: f }, children: [
|
|
7339
7321
|
n ? null : /* @__PURE__ */ d.jsx(io, { loading: t, children: /* @__PURE__ */ d.jsx(
|
|
@@ -7355,20 +7337,20 @@ function Ey({ data: e, loading: t, hideActions: r, hideCheckbox: n, selection: o
|
|
|
7355
7337
|
entry: c
|
|
7356
7338
|
}
|
|
7357
7339
|
) }),
|
|
7358
|
-
e.list_columns.map((p,
|
|
7359
|
-
let
|
|
7360
|
-
return typeof
|
|
7340
|
+
e.list_columns.map((p, g) => {
|
|
7341
|
+
let y = s == null ? void 0 : s[p];
|
|
7342
|
+
return typeof y == "function" && (y = y({ id: f, ...c })), y === null ? null : /* @__PURE__ */ d.jsx(
|
|
7361
7343
|
io,
|
|
7362
7344
|
{
|
|
7363
7345
|
id: Ue(f),
|
|
7364
7346
|
entry: c,
|
|
7365
7347
|
loading: t,
|
|
7366
7348
|
onClickEntry: i,
|
|
7367
|
-
customElement:
|
|
7349
|
+
customElement: y,
|
|
7368
7350
|
sanitize: !0,
|
|
7369
7351
|
children: Tu(c, p)
|
|
7370
7352
|
},
|
|
7371
|
-
|
|
7353
|
+
g
|
|
7372
7354
|
);
|
|
7373
7355
|
})
|
|
7374
7356
|
] }, Ue(f));
|
|
@@ -7396,50 +7378,50 @@ function wy({
|
|
|
7396
7378
|
bodyCustomizer: l,
|
|
7397
7379
|
...c
|
|
7398
7380
|
}) {
|
|
7399
|
-
const u = Wd(), f =
|
|
7381
|
+
const u = Wd(), f = Re.extend({
|
|
7400
7382
|
highlightOnHover: !0,
|
|
7401
7383
|
striped: !0,
|
|
7402
7384
|
horizontalSpacing: "md",
|
|
7403
7385
|
verticalSpacing: "sm"
|
|
7404
|
-
}), p = Be("DatagridTable", f, c), { data:
|
|
7386
|
+
}), p = Be("DatagridTable", f, c), { data: g, info: y } = We(), [h, b] = fe([]), [T, A] = fe(!1), j = (x) => {
|
|
7405
7387
|
b((O) => O.includes(x) ? O.filter((k) => k !== x) : [...O, x]);
|
|
7406
|
-
},
|
|
7407
|
-
b((x) => x.length ===
|
|
7388
|
+
}, D = () => {
|
|
7389
|
+
b((x) => x.length === g.ids.length ? [] : g.ids.map((O, k) => O));
|
|
7408
7390
|
};
|
|
7409
|
-
return
|
|
7410
|
-
A(h.length ===
|
|
7411
|
-
}, [h]),
|
|
7391
|
+
return $e(() => {
|
|
7392
|
+
A(h.length === g.result.length && h.length > 0), n && n(h), e == null || e.setSelectedIds(h.map((x) => x));
|
|
7393
|
+
}, [h]), $e(() => {
|
|
7412
7394
|
b([]), n && n([]);
|
|
7413
|
-
}, [
|
|
7395
|
+
}, [g]), /* @__PURE__ */ d.jsx(
|
|
7414
7396
|
Sn,
|
|
7415
7397
|
{
|
|
7416
7398
|
options: { className: u.colorScheme === "dark" ? "os-theme-light" : void 0 },
|
|
7417
7399
|
style: { flex: 1, flexDirection: "column" },
|
|
7418
7400
|
classNames: Sy,
|
|
7419
|
-
children: /* @__PURE__ */ d.jsxs(
|
|
7401
|
+
children: /* @__PURE__ */ d.jsxs(Re, { stickyHeader: !0, ...p, children: [
|
|
7420
7402
|
/* @__PURE__ */ d.jsx(
|
|
7421
7403
|
Eu,
|
|
7422
7404
|
{
|
|
7423
|
-
data:
|
|
7424
|
-
info:
|
|
7405
|
+
data: g,
|
|
7406
|
+
info: y,
|
|
7425
7407
|
hideActions: t,
|
|
7426
7408
|
hideCheckbox: a,
|
|
7427
7409
|
allChecked: T,
|
|
7428
7410
|
setSelection: b,
|
|
7429
|
-
toggleAll:
|
|
7411
|
+
toggleAll: D,
|
|
7430
7412
|
headerCustomizer: s
|
|
7431
7413
|
}
|
|
7432
7414
|
),
|
|
7433
7415
|
/* @__PURE__ */ d.jsx(
|
|
7434
7416
|
Ey,
|
|
7435
7417
|
{
|
|
7436
|
-
data:
|
|
7418
|
+
data: g,
|
|
7437
7419
|
loading: r,
|
|
7438
7420
|
hideActions: t,
|
|
7439
7421
|
hideCheckbox: a,
|
|
7440
7422
|
selection: h,
|
|
7441
7423
|
setSelection: b,
|
|
7442
|
-
toggleRow:
|
|
7424
|
+
toggleRow: j,
|
|
7443
7425
|
onClickEntry: o,
|
|
7444
7426
|
bodyCustomizer: l
|
|
7445
7427
|
}
|
|
@@ -7454,7 +7436,7 @@ const Qu = Ao(({ ...e }) => {
|
|
|
7454
7436
|
{ value: "25", label: "25" },
|
|
7455
7437
|
{ value: "50", label: "50" }
|
|
7456
7438
|
], a = String(r.page_size), [i, s] = fe(r.page);
|
|
7457
|
-
|
|
7439
|
+
$e(() => {
|
|
7458
7440
|
s(r.page);
|
|
7459
7441
|
}, [r.page]);
|
|
7460
7442
|
const l = (u) => {
|
|
@@ -7537,7 +7519,7 @@ const Qu = Ao(({ ...e }) => {
|
|
|
7537
7519
|
Qu.displayName = "Pagination";
|
|
7538
7520
|
function Oy() {
|
|
7539
7521
|
const { error: e } = We(), [t, r] = fe(!1);
|
|
7540
|
-
return
|
|
7522
|
+
return $e(() => {
|
|
7541
7523
|
e && r(!0);
|
|
7542
7524
|
}, [e]), /* @__PURE__ */ d.jsx(
|
|
7543
7525
|
Nr,
|
|
@@ -7561,19 +7543,19 @@ const ef = Nc((e, t) => {
|
|
|
7561
7543
|
hideSettings: u = !1,
|
|
7562
7544
|
hideActions: f = !1,
|
|
7563
7545
|
hidePagination: p = !1,
|
|
7564
|
-
hideError:
|
|
7565
|
-
hideDownload:
|
|
7546
|
+
hideError: g = !1,
|
|
7547
|
+
hideDownload: y = !0,
|
|
7566
7548
|
onSelectCheckbox: h = null,
|
|
7567
7549
|
onClickEntry: b = null,
|
|
7568
7550
|
fetchOnMount: T = !0,
|
|
7569
7551
|
bulkActions: A = null,
|
|
7570
|
-
styles:
|
|
7571
|
-
headerCustomizer:
|
|
7552
|
+
styles: j,
|
|
7553
|
+
headerCustomizer: D = {},
|
|
7572
7554
|
bodyCustomizer: x = {},
|
|
7573
7555
|
toolbarCustomizer: O = {}
|
|
7574
7556
|
// Add more props here
|
|
7575
7557
|
} = e;
|
|
7576
|
-
if (
|
|
7558
|
+
if ($e(() => {
|
|
7577
7559
|
!n && T && i({});
|
|
7578
7560
|
}, [n]), !a)
|
|
7579
7561
|
return;
|
|
@@ -7582,7 +7564,7 @@ const ef = Nc((e, t) => {
|
|
|
7582
7564
|
Da,
|
|
7583
7565
|
{
|
|
7584
7566
|
ref: t,
|
|
7585
|
-
style: { position: "relative", height: "100%", display: "flex", flexDirection: "column", ...
|
|
7567
|
+
style: { position: "relative", height: "100%", display: "flex", flexDirection: "column", ...j },
|
|
7586
7568
|
children: [
|
|
7587
7569
|
s ? null : /* @__PURE__ */ d.jsx(
|
|
7588
7570
|
_u,
|
|
@@ -7590,7 +7572,7 @@ const ef = Nc((e, t) => {
|
|
|
7590
7572
|
hideFilter: l,
|
|
7591
7573
|
hideAdd: c,
|
|
7592
7574
|
hideSettings: u,
|
|
7593
|
-
hideDownload:
|
|
7575
|
+
hideDownload: y,
|
|
7594
7576
|
toolbarCustomizer: O
|
|
7595
7577
|
}
|
|
7596
7578
|
),
|
|
@@ -7603,13 +7585,13 @@ const ef = Nc((e, t) => {
|
|
|
7603
7585
|
onSelectCheckbox: h,
|
|
7604
7586
|
onClickEntry: b,
|
|
7605
7587
|
hideCheckbox: k,
|
|
7606
|
-
hideDownload:
|
|
7607
|
-
headerCustomizer:
|
|
7588
|
+
hideDownload: y,
|
|
7589
|
+
headerCustomizer: D,
|
|
7608
7590
|
bodyCustomizer: x
|
|
7609
7591
|
}
|
|
7610
7592
|
) : null,
|
|
7611
7593
|
!p && n ? /* @__PURE__ */ d.jsx(Qu, {}) : null,
|
|
7612
|
-
|
|
7594
|
+
g ? null : /* @__PURE__ */ d.jsx(Oy, {})
|
|
7613
7595
|
]
|
|
7614
7596
|
}
|
|
7615
7597
|
);
|
|
@@ -7676,7 +7658,7 @@ function By(e) {
|
|
|
7676
7658
|
Vy.call(e, r) && r != "constructor" && t.push(r);
|
|
7677
7659
|
return t;
|
|
7678
7660
|
}
|
|
7679
|
-
var Wy = By, Hy = typeof
|
|
7661
|
+
var Wy = By, Hy = typeof ke == "object" && ke && ke.Object === Object && ke, rf = Hy, Gy = rf, qy = typeof self == "object" && self && self.Object === Object && self, Yy = Gy || qy || Function("return this")(), Ct = Yy, Ky = Ct, Xy = Ky.Symbol, Vo = Xy, _l = Vo, nf = Object.prototype, Jy = nf.hasOwnProperty, Zy = nf.toString, un = _l ? _l.toStringTag : void 0;
|
|
7680
7662
|
function Qy(e) {
|
|
7681
7663
|
var t = Jy.call(e, un), r = e[un];
|
|
7682
7664
|
try {
|
|
@@ -7887,12 +7869,12 @@ function t1(e, t, r) {
|
|
|
7887
7869
|
if (typeof e != "function")
|
|
7888
7870
|
throw new TypeError(Zb);
|
|
7889
7871
|
t = Dl(t) || 0, Jb(r) && (u = !!r.leading, f = "maxWait" in r, a = f ? Qb(Dl(r.maxWait) || 0, t) : a, p = "trailing" in r ? !!r.trailing : p);
|
|
7890
|
-
function
|
|
7872
|
+
function g(O) {
|
|
7891
7873
|
var k = n, J = o;
|
|
7892
7874
|
return n = o = void 0, c = O, i = e.apply(J, k), i;
|
|
7893
7875
|
}
|
|
7894
|
-
function
|
|
7895
|
-
return c = O, s = setTimeout(T, t), u ?
|
|
7876
|
+
function y(O) {
|
|
7877
|
+
return c = O, s = setTimeout(T, t), u ? g(O) : i;
|
|
7896
7878
|
}
|
|
7897
7879
|
function h(O) {
|
|
7898
7880
|
var k = O - l, J = O - c, ee = t - k;
|
|
@@ -7909,30 +7891,30 @@ function t1(e, t, r) {
|
|
|
7909
7891
|
s = setTimeout(T, h(O));
|
|
7910
7892
|
}
|
|
7911
7893
|
function A(O) {
|
|
7912
|
-
return s = void 0, p && n ?
|
|
7894
|
+
return s = void 0, p && n ? g(O) : (n = o = void 0, i);
|
|
7913
7895
|
}
|
|
7914
|
-
function
|
|
7896
|
+
function j() {
|
|
7915
7897
|
s !== void 0 && clearTimeout(s), c = 0, n = l = o = s = void 0;
|
|
7916
7898
|
}
|
|
7917
|
-
function
|
|
7899
|
+
function D() {
|
|
7918
7900
|
return s === void 0 ? i : A(Oa());
|
|
7919
7901
|
}
|
|
7920
7902
|
function x() {
|
|
7921
7903
|
var O = Oa(), k = b(O);
|
|
7922
7904
|
if (n = arguments, o = this, l = O, k) {
|
|
7923
7905
|
if (s === void 0)
|
|
7924
|
-
return
|
|
7906
|
+
return y(l);
|
|
7925
7907
|
if (f)
|
|
7926
|
-
return clearTimeout(s), s = setTimeout(T, t),
|
|
7908
|
+
return clearTimeout(s), s = setTimeout(T, t), g(l);
|
|
7927
7909
|
}
|
|
7928
7910
|
return s === void 0 && (s = setTimeout(T, t)), i;
|
|
7929
7911
|
}
|
|
7930
|
-
return x.cancel =
|
|
7912
|
+
return x.cancel = j, x.flush = D, x;
|
|
7931
7913
|
}
|
|
7932
7914
|
var r1 = t1;
|
|
7933
7915
|
const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
|
|
7934
7916
|
const [i, s] = fe(r ?? t);
|
|
7935
|
-
|
|
7917
|
+
$e(() => {
|
|
7936
7918
|
s(r ?? t);
|
|
7937
7919
|
}, [r]);
|
|
7938
7920
|
const l = Te(
|
|
@@ -7961,7 +7943,7 @@ const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
|
|
|
7961
7943
|
path: u,
|
|
7962
7944
|
required: f,
|
|
7963
7945
|
hideControls: p
|
|
7964
|
-
} = t, [
|
|
7946
|
+
} = t, [g, y] = o1(l, "", o, u, i1);
|
|
7965
7947
|
return /* @__PURE__ */ d.jsx(
|
|
7966
7948
|
Gd,
|
|
7967
7949
|
{
|
|
@@ -7969,8 +7951,8 @@ const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
|
|
|
7969
7951
|
description: a,
|
|
7970
7952
|
error: i,
|
|
7971
7953
|
required: f,
|
|
7972
|
-
value:
|
|
7973
|
-
onChange:
|
|
7954
|
+
value: g,
|
|
7955
|
+
onChange: y,
|
|
7974
7956
|
className: n,
|
|
7975
7957
|
disabled: !s,
|
|
7976
7958
|
allowDecimal: r,
|
|
@@ -8321,8 +8303,8 @@ function YE(e, t, r, n, o, a, i) {
|
|
|
8321
8303
|
}
|
|
8322
8304
|
var u = a ? a(s, l, r + "", e, t, i) : void 0, f = u === void 0;
|
|
8323
8305
|
if (f) {
|
|
8324
|
-
var p = Bl(l),
|
|
8325
|
-
u = l, p ||
|
|
8306
|
+
var p = Bl(l), g = !p && VE(l), y = !p && !g && GE(l);
|
|
8307
|
+
u = l, p || g || y ? Bl(s) ? u = s : UE(s) ? u = LE(s) : g ? (f = !1, u = NE(l, !0)) : y ? (f = !1, u = FE(l, !0)) : u = [] : HE(l) || Vl(l) ? (u = s, Vl(s) ? u = qE(s) : (!WE(s) || BE(s)) && (u = zE(l))) : f = !1;
|
|
8326
8308
|
}
|
|
8327
8309
|
f && (i.set(l, u), o(u, l, n, a, i), i.delete(l)), Ul(e, r, u);
|
|
8328
8310
|
}
|
|
@@ -8427,8 +8409,8 @@ const Cf = /* @__PURE__ */ Ut(UT), Af = je.memo(function(t) {
|
|
|
8427
8409
|
error: s,
|
|
8428
8410
|
required: p,
|
|
8429
8411
|
value: a || "",
|
|
8430
|
-
onChange: (
|
|
8431
|
-
u(c,
|
|
8412
|
+
onChange: (y) => {
|
|
8413
|
+
u(c, y.currentTarget.value);
|
|
8432
8414
|
},
|
|
8433
8415
|
className: r,
|
|
8434
8416
|
disabled: !l,
|
|
@@ -8442,8 +8424,8 @@ const Cf = /* @__PURE__ */ Ut(UT), Af = je.memo(function(t) {
|
|
|
8442
8424
|
error: s,
|
|
8443
8425
|
required: p,
|
|
8444
8426
|
value: a || "",
|
|
8445
|
-
onChange: (
|
|
8446
|
-
u(c,
|
|
8427
|
+
onChange: (y) => {
|
|
8428
|
+
u(c, y.currentTarget.value);
|
|
8447
8429
|
},
|
|
8448
8430
|
className: r,
|
|
8449
8431
|
disabled: !l,
|
|
@@ -8993,8 +8975,8 @@ function jC() {
|
|
|
8993
8975
|
if (nc)
|
|
8994
8976
|
return se;
|
|
8995
8977
|
nc = 1;
|
|
8996
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"),
|
|
8997
|
-
|
|
8978
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y;
|
|
8979
|
+
y = Symbol.for("react.module.reference");
|
|
8998
8980
|
function h(b) {
|
|
8999
8981
|
if (typeof b == "object" && b !== null) {
|
|
9000
8982
|
var T = b.$$typeof;
|
|
@@ -9054,7 +9036,7 @@ function jC() {
|
|
|
9054
9036
|
}, se.isSuspenseList = function(b) {
|
|
9055
9037
|
return h(b) === u;
|
|
9056
9038
|
}, se.isValidElementType = function(b) {
|
|
9057
|
-
return typeof b == "string" || typeof b == "function" || b === r || b === o || b === n || b === c || b === u || b ===
|
|
9039
|
+
return typeof b == "string" || typeof b == "function" || b === r || b === o || b === n || b === c || b === u || b === g || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === f || b.$$typeof === a || b.$$typeof === i || b.$$typeof === l || b.$$typeof === y || b.getModuleId !== void 0);
|
|
9058
9040
|
}, se.typeOf = h, se;
|
|
9059
9041
|
}
|
|
9060
9042
|
var le = {};
|
|
@@ -9070,21 +9052,21 @@ var le = {};
|
|
|
9070
9052
|
var oc;
|
|
9071
9053
|
function IC() {
|
|
9072
9054
|
return oc || (oc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
9073
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"),
|
|
9074
|
-
|
|
9075
|
-
function I
|
|
9076
|
-
return !!(typeof
|
|
9055
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = !1, h = !1, b = !1, T = !1, A = !1, j;
|
|
9056
|
+
j = Symbol.for("react.module.reference");
|
|
9057
|
+
function D(I) {
|
|
9058
|
+
return !!(typeof I == "string" || typeof I == "function" || I === r || I === o || A || I === n || I === c || I === u || T || I === g || y || h || b || typeof I == "object" && I !== null && (I.$$typeof === p || I.$$typeof === f || I.$$typeof === a || I.$$typeof === i || I.$$typeof === l || // This needs to include all possible module reference object
|
|
9077
9059
|
// types supported by any Flight configuration anywhere since
|
|
9078
9060
|
// we don't know which Flight build this will end up being used
|
|
9079
9061
|
// with.
|
|
9080
|
-
|
|
9062
|
+
I.$$typeof === j || I.getModuleId !== void 0));
|
|
9081
9063
|
}
|
|
9082
|
-
function x(
|
|
9083
|
-
if (typeof
|
|
9084
|
-
var Ge =
|
|
9064
|
+
function x(I) {
|
|
9065
|
+
if (typeof I == "object" && I !== null) {
|
|
9066
|
+
var Ge = I.$$typeof;
|
|
9085
9067
|
switch (Ge) {
|
|
9086
9068
|
case e:
|
|
9087
|
-
var Qe =
|
|
9069
|
+
var Qe = I.type;
|
|
9088
9070
|
switch (Qe) {
|
|
9089
9071
|
case r:
|
|
9090
9072
|
case o:
|
|
@@ -9112,49 +9094,49 @@ function IC() {
|
|
|
9112
9094
|
}
|
|
9113
9095
|
}
|
|
9114
9096
|
var O = i, k = a, J = e, ee = l, _e = r, F = p, te = f, ce = t, pe = o, He = n, Ae = c, Ze = u, it = !1, xt = !1;
|
|
9115
|
-
function S(
|
|
9097
|
+
function S(I) {
|
|
9116
9098
|
return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
9117
9099
|
}
|
|
9118
|
-
function C(
|
|
9100
|
+
function C(I) {
|
|
9119
9101
|
return xt || (xt = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
9120
9102
|
}
|
|
9121
|
-
function W(
|
|
9122
|
-
return x(
|
|
9103
|
+
function W(I) {
|
|
9104
|
+
return x(I) === i;
|
|
9123
9105
|
}
|
|
9124
|
-
function M(
|
|
9125
|
-
return x(
|
|
9106
|
+
function M(I) {
|
|
9107
|
+
return x(I) === a;
|
|
9126
9108
|
}
|
|
9127
|
-
function U(
|
|
9128
|
-
return typeof
|
|
9109
|
+
function U(I) {
|
|
9110
|
+
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
9129
9111
|
}
|
|
9130
|
-
function N(
|
|
9131
|
-
return x(
|
|
9112
|
+
function N(I) {
|
|
9113
|
+
return x(I) === l;
|
|
9132
9114
|
}
|
|
9133
|
-
function L(
|
|
9134
|
-
return x(
|
|
9115
|
+
function L(I) {
|
|
9116
|
+
return x(I) === r;
|
|
9135
9117
|
}
|
|
9136
|
-
function B(
|
|
9137
|
-
return x(
|
|
9118
|
+
function B(I) {
|
|
9119
|
+
return x(I) === p;
|
|
9138
9120
|
}
|
|
9139
|
-
function H(
|
|
9140
|
-
return x(
|
|
9121
|
+
function H(I) {
|
|
9122
|
+
return x(I) === f;
|
|
9141
9123
|
}
|
|
9142
|
-
function q(
|
|
9143
|
-
return x(
|
|
9124
|
+
function q(I) {
|
|
9125
|
+
return x(I) === t;
|
|
9144
9126
|
}
|
|
9145
|
-
function G(
|
|
9146
|
-
return x(
|
|
9127
|
+
function G(I) {
|
|
9128
|
+
return x(I) === o;
|
|
9147
9129
|
}
|
|
9148
|
-
function Ee(
|
|
9149
|
-
return x(
|
|
9130
|
+
function Ee(I) {
|
|
9131
|
+
return x(I) === n;
|
|
9150
9132
|
}
|
|
9151
|
-
function P(
|
|
9152
|
-
return x(
|
|
9133
|
+
function P(I) {
|
|
9134
|
+
return x(I) === c;
|
|
9153
9135
|
}
|
|
9154
|
-
function
|
|
9155
|
-
return x(
|
|
9136
|
+
function Pe(I) {
|
|
9137
|
+
return x(I) === u;
|
|
9156
9138
|
}
|
|
9157
|
-
le.ContextConsumer = O, le.ContextProvider = k, le.Element = J, le.ForwardRef = ee, le.Fragment = _e, le.Lazy = F, le.Memo = te, le.Portal = ce, le.Profiler = pe, le.StrictMode = He, le.Suspense = Ae, le.SuspenseList = Ze, le.isAsyncMode = S, le.isConcurrentMode = C, le.isContextConsumer = W, le.isContextProvider = M, le.isElement = U, le.isForwardRef = N, le.isFragment = L, le.isLazy = B, le.isMemo = H, le.isPortal = q, le.isProfiler = G, le.isStrictMode = Ee, le.isSuspense = P, le.isSuspenseList =
|
|
9139
|
+
le.ContextConsumer = O, le.ContextProvider = k, le.Element = J, le.ForwardRef = ee, le.Fragment = _e, le.Lazy = F, le.Memo = te, le.Portal = ce, le.Profiler = pe, le.StrictMode = He, le.Suspense = Ae, le.SuspenseList = Ze, le.isAsyncMode = S, le.isConcurrentMode = C, le.isContextConsumer = W, le.isContextProvider = M, le.isElement = U, le.isForwardRef = N, le.isFragment = L, le.isLazy = B, le.isMemo = H, le.isPortal = q, le.isProfiler = G, le.isStrictMode = Ee, le.isSuspense = P, le.isSuspenseList = Pe, le.isValidElementType = D, le.typeOf = x;
|
|
9158
9140
|
}()), le;
|
|
9159
9141
|
}
|
|
9160
9142
|
process.env.NODE_ENV === "production" ? ri.exports = jC() : ri.exports = IC();
|
|
@@ -9282,7 +9264,7 @@ function er(e, t) {
|
|
|
9282
9264
|
var r = {};
|
|
9283
9265
|
for (var n in e)
|
|
9284
9266
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
9285
|
-
if (t.
|
|
9267
|
+
if (t.includes(n))
|
|
9286
9268
|
continue;
|
|
9287
9269
|
r[n] = e[n];
|
|
9288
9270
|
}
|
|
@@ -9371,7 +9353,7 @@ function QC() {
|
|
|
9371
9353
|
var o = {};
|
|
9372
9354
|
for (var a in r)
|
|
9373
9355
|
if ({}.hasOwnProperty.call(r, a)) {
|
|
9374
|
-
if (n.
|
|
9356
|
+
if (n.includes(a))
|
|
9375
9357
|
continue;
|
|
9376
9358
|
o[a] = r[a];
|
|
9377
9359
|
}
|
|
@@ -9566,8 +9548,8 @@ function bn(e, t, r) {
|
|
|
9566
9548
|
case "string":
|
|
9567
9549
|
if (process.env.NODE_ENV !== "production") {
|
|
9568
9550
|
var s = [], l = r.replace(sd, function(u, f, p) {
|
|
9569
|
-
var
|
|
9570
|
-
return s.push("const " +
|
|
9551
|
+
var g = "animation" + s.length;
|
|
9552
|
+
return s.push("const " + g + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + g + "}";
|
|
9571
9553
|
});
|
|
9572
9554
|
s.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(s, ["`" + l + "`"]).join(`
|
|
9573
9555
|
`) + `
|
|
@@ -9686,39 +9668,39 @@ You may have forgotten to import it.`);
|
|
|
9686
9668
|
f.push.apply(f, u);
|
|
9687
9669
|
else {
|
|
9688
9670
|
process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(gc), f.push(u[0][0]);
|
|
9689
|
-
for (var p = u.length,
|
|
9690
|
-
process.env.NODE_ENV !== "production" && u[0][
|
|
9671
|
+
for (var p = u.length, g = 1; g < p; g++)
|
|
9672
|
+
process.env.NODE_ENV !== "production" && u[0][g] === void 0 && console.error(gc), f.push(u[g], u[0][g]);
|
|
9691
9673
|
}
|
|
9692
|
-
var
|
|
9693
|
-
var A = c && h.as || o,
|
|
9674
|
+
var y = up(function(h, b, T) {
|
|
9675
|
+
var A = c && h.as || o, j = "", D = [], x = h;
|
|
9694
9676
|
if (h.theme == null) {
|
|
9695
9677
|
x = {};
|
|
9696
9678
|
for (var O in h)
|
|
9697
9679
|
x[O] = h[O];
|
|
9698
9680
|
x.theme = lt.useContext(eu);
|
|
9699
9681
|
}
|
|
9700
|
-
typeof h.className == "string" ?
|
|
9701
|
-
var k = mA(f.concat(
|
|
9702
|
-
|
|
9682
|
+
typeof h.className == "string" ? j = nA(b.registered, D, h.className) : h.className != null && (j = h.className + " ");
|
|
9683
|
+
var k = mA(f.concat(D), b.registered, x);
|
|
9684
|
+
j += b.key + "-" + k.name, i !== void 0 && (j += " " + i);
|
|
9703
9685
|
var J = c && s === void 0 ? hc(A) : l, ee = {};
|
|
9704
9686
|
for (var _e in h)
|
|
9705
9687
|
c && _e === "as" || // $FlowFixMe
|
|
9706
9688
|
J(_e) && (ee[_e] = h[_e]);
|
|
9707
|
-
return ee.className =
|
|
9689
|
+
return ee.className = j, ee.ref = T, /* @__PURE__ */ lt.createElement(lt.Fragment, null, /* @__PURE__ */ lt.createElement(_A, {
|
|
9708
9690
|
cache: b,
|
|
9709
9691
|
serialized: k,
|
|
9710
9692
|
isStringTag: typeof A == "string"
|
|
9711
9693
|
}), /* @__PURE__ */ lt.createElement(A, ee));
|
|
9712
9694
|
});
|
|
9713
|
-
return
|
|
9695
|
+
return y.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = o, y.__emotion_styles = f, y.__emotion_forwardProp = s, Object.defineProperty(y, "toString", {
|
|
9714
9696
|
value: function() {
|
|
9715
9697
|
return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i;
|
|
9716
9698
|
}
|
|
9717
|
-
}),
|
|
9699
|
+
}), y.withComponent = function(h, b) {
|
|
9718
9700
|
return e(h, de({}, r, b, {
|
|
9719
|
-
shouldForwardProp: mc(
|
|
9701
|
+
shouldForwardProp: mc(y, b, !0)
|
|
9720
9702
|
})).apply(void 0, f);
|
|
9721
|
-
},
|
|
9703
|
+
}, y;
|
|
9722
9704
|
};
|
|
9723
9705
|
}, TA = [
|
|
9724
9706
|
"a",
|
|
@@ -10048,10 +10030,10 @@ function zA(e) {
|
|
|
10048
10030
|
return hd(co("", null, null, null, [""], e = pd(e), 0, [0], e));
|
|
10049
10031
|
}
|
|
10050
10032
|
function co(e, t, r, n, o, a, i, s, l) {
|
|
10051
|
-
for (var c = 0, u = 0, f = i, p = 0,
|
|
10052
|
-
switch (
|
|
10033
|
+
for (var c = 0, u = 0, f = i, p = 0, g = 0, y = 0, h = 1, b = 1, T = 1, A = 0, j = "", D = o, x = a, O = n, k = j; b; )
|
|
10034
|
+
switch (y = A, A = ut()) {
|
|
10053
10035
|
case 40:
|
|
10054
|
-
if (
|
|
10036
|
+
if (y != 108 && Ne(k, f - 1) == 58) {
|
|
10055
10037
|
ai(k += ne(lo(A), "&", "&\f"), "&\f") != -1 && (T = -1);
|
|
10056
10038
|
break;
|
|
10057
10039
|
}
|
|
@@ -10064,7 +10046,7 @@ function co(e, t, r, n, o, a, i, s, l) {
|
|
|
10064
10046
|
case 10:
|
|
10065
10047
|
case 13:
|
|
10066
10048
|
case 32:
|
|
10067
|
-
k += MA(
|
|
10049
|
+
k += MA(y);
|
|
10068
10050
|
break;
|
|
10069
10051
|
case 92:
|
|
10070
10052
|
k += NA(so() - 1, 7);
|
|
@@ -10089,30 +10071,30 @@ function co(e, t, r, n, o, a, i, s, l) {
|
|
|
10089
10071
|
case 125:
|
|
10090
10072
|
b = 0;
|
|
10091
10073
|
case 59 + u:
|
|
10092
|
-
T == -1 && (k = ne(k, /\f/g, "")),
|
|
10074
|
+
T == -1 && (k = ne(k, /\f/g, "")), g > 0 && Pt(k) - f && to(g > 32 ? vc(k + ";", n, r, f - 1) : vc(ne(k, " ", "") + ";", n, r, f - 2), l);
|
|
10093
10075
|
break;
|
|
10094
10076
|
case 59:
|
|
10095
10077
|
k += ";";
|
|
10096
10078
|
default:
|
|
10097
|
-
if (to(O = yc(k, t, r, c, u, o, s,
|
|
10079
|
+
if (to(O = yc(k, t, r, c, u, o, s, j, D = [], x = [], f), a), A === 123)
|
|
10098
10080
|
if (u === 0)
|
|
10099
|
-
co(k, t, O, O,
|
|
10081
|
+
co(k, t, O, O, D, a, f, s, x);
|
|
10100
10082
|
else
|
|
10101
10083
|
switch (p === 99 && Ne(k, 3) === 110 ? 100 : p) {
|
|
10102
10084
|
case 100:
|
|
10103
10085
|
case 108:
|
|
10104
10086
|
case 109:
|
|
10105
10087
|
case 115:
|
|
10106
|
-
co(e, O, O, n && to(yc(e, O, O, 0, 0, o, s,
|
|
10088
|
+
co(e, O, O, n && to(yc(e, O, O, 0, 0, o, s, j, o, D = [], f), x), o, x, f, s, n ? D : x);
|
|
10107
10089
|
break;
|
|
10108
10090
|
default:
|
|
10109
10091
|
co(k, O, O, O, [""], x, 0, s, x);
|
|
10110
10092
|
}
|
|
10111
10093
|
}
|
|
10112
|
-
c = u =
|
|
10094
|
+
c = u = g = 0, h = T = 1, j = k = "", f = i;
|
|
10113
10095
|
break;
|
|
10114
10096
|
case 58:
|
|
10115
|
-
f = 1 + Pt(k),
|
|
10097
|
+
f = 1 + Pt(k), g = y;
|
|
10116
10098
|
default:
|
|
10117
10099
|
if (h < 1) {
|
|
10118
10100
|
if (A == 123)
|
|
@@ -10128,18 +10110,18 @@ function co(e, t, r, n, o, a, i, s, l) {
|
|
|
10128
10110
|
s[c++] = (Pt(k) - 1) * T, T = 1;
|
|
10129
10111
|
break;
|
|
10130
10112
|
case 64:
|
|
10131
|
-
jt() === 45 && (k += lo(ut())), p = jt(), u = f = Pt(
|
|
10113
|
+
jt() === 45 && (k += lo(ut())), p = jt(), u = f = Pt(j = k += LA(so())), A++;
|
|
10132
10114
|
break;
|
|
10133
10115
|
case 45:
|
|
10134
|
-
|
|
10116
|
+
y === 45 && Pt(k) == 2 && (h = 0);
|
|
10135
10117
|
}
|
|
10136
10118
|
}
|
|
10137
10119
|
return a;
|
|
10138
10120
|
}
|
|
10139
10121
|
function yc(e, t, r, n, o, a, i, s, l, c, u) {
|
|
10140
|
-
for (var f = o - 1, p = o === 0 ? a : [""],
|
|
10141
|
-
for (var T = 0, A = xn(e, f + 1, f = $A(h = i[
|
|
10142
|
-
(
|
|
10122
|
+
for (var f = o - 1, p = o === 0 ? a : [""], g = os(p), y = 0, h = 0, b = 0; y < n; ++y)
|
|
10123
|
+
for (var T = 0, A = xn(e, f + 1, f = $A(h = i[y])), j = e; T < g; ++T)
|
|
10124
|
+
(j = fd(h > 0 ? p[T] + " " + A : ne(A, /&\f/g, p[T]))) && (l[b++] = j);
|
|
10143
10125
|
return Qo(e, t, r, o === 0 ? rs : s, l, c, u);
|
|
10144
10126
|
}
|
|
10145
10127
|
function UA(e, t, r) {
|
|
@@ -10442,7 +10424,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
10442
10424
|
var l, c = [YA, KA];
|
|
10443
10425
|
process.env.NODE_ENV !== "production" && c.push(ZA({
|
|
10444
10426
|
get compat() {
|
|
10445
|
-
return
|
|
10427
|
+
return y.compat;
|
|
10446
10428
|
}
|
|
10447
10429
|
}), e$);
|
|
10448
10430
|
{
|
|
@@ -10450,18 +10432,18 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
10450
10432
|
h.root || (h.return ? u.insert(h.return) : h.value && h.type !== ts && u.insert(h.value + "{}"));
|
|
10451
10433
|
} : WA(function(h) {
|
|
10452
10434
|
u.insert(h);
|
|
10453
|
-
})], p = BA(c.concat(o, f)),
|
|
10435
|
+
})], p = BA(c.concat(o, f)), g = function(b) {
|
|
10454
10436
|
return jr(zA(b), p);
|
|
10455
10437
|
};
|
|
10456
|
-
l = function(b, T, A,
|
|
10438
|
+
l = function(b, T, A, j) {
|
|
10457
10439
|
u = A, process.env.NODE_ENV !== "production" && T.map !== void 0 && (u = {
|
|
10458
10440
|
insert: function(x) {
|
|
10459
10441
|
A.insert(x + T.map);
|
|
10460
10442
|
}
|
|
10461
|
-
}),
|
|
10443
|
+
}), g(b ? b + "{" + T.styles + "}" : T.styles), j && (y.inserted[T.name] = !0);
|
|
10462
10444
|
};
|
|
10463
10445
|
}
|
|
10464
|
-
var
|
|
10446
|
+
var y = {
|
|
10465
10447
|
key: r,
|
|
10466
10448
|
sheet: new OA({
|
|
10467
10449
|
key: r,
|
|
@@ -10476,7 +10458,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
10476
10458
|
registered: {},
|
|
10477
10459
|
insert: l
|
|
10478
10460
|
};
|
|
10479
|
-
return
|
|
10461
|
+
return y.sheet.hydrate(s), y;
|
|
10480
10462
|
};
|
|
10481
10463
|
let si;
|
|
10482
10464
|
typeof document == "object" && (si = n$({
|
|
@@ -10522,7 +10504,7 @@ process.env.NODE_ENV !== "production" && (vd.propTypes = {
|
|
|
10522
10504
|
styles: V.oneOfType([V.array, V.string, V.object, V.func])
|
|
10523
10505
|
});
|
|
10524
10506
|
/**
|
|
10525
|
-
* @mui/styled-engine v5.
|
|
10507
|
+
* @mui/styled-engine v5.16.1
|
|
10526
10508
|
*
|
|
10527
10509
|
* @license MIT
|
|
10528
10510
|
* This source code is licensed under the MIT license found in the
|
|
@@ -10581,16 +10563,16 @@ function bd(e) {
|
|
|
10581
10563
|
function l(p) {
|
|
10582
10564
|
return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - n / 100}${r})`;
|
|
10583
10565
|
}
|
|
10584
|
-
function c(p,
|
|
10585
|
-
const
|
|
10586
|
-
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(
|
|
10566
|
+
function c(p, g) {
|
|
10567
|
+
const y = i.indexOf(g);
|
|
10568
|
+
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(y !== -1 && typeof t[i[y]] == "number" ? t[i[y]] : g) - n / 100}${r})`;
|
|
10587
10569
|
}
|
|
10588
10570
|
function u(p) {
|
|
10589
10571
|
return i.indexOf(p) + 1 < i.length ? c(p, i[i.indexOf(p) + 1]) : s(p);
|
|
10590
10572
|
}
|
|
10591
10573
|
function f(p) {
|
|
10592
|
-
const
|
|
10593
|
-
return
|
|
10574
|
+
const g = i.indexOf(p);
|
|
10575
|
+
return g === 0 ? s(i[1]) : g === i.length - 1 ? l(i[g]) : c(p, i[i.indexOf(p) + 1]).replace("@media", "@media not all and");
|
|
10594
10576
|
}
|
|
10595
10577
|
return de({
|
|
10596
10578
|
keys: i,
|
|
@@ -11252,9 +11234,9 @@ function Ed() {
|
|
|
11252
11234
|
[r]: n
|
|
11253
11235
|
};
|
|
11254
11236
|
const p = ea(o, c) || {};
|
|
11255
|
-
return f ? f(i) : zt(i, n, (
|
|
11256
|
-
let h = wo(p, u,
|
|
11257
|
-
return
|
|
11237
|
+
return f ? f(i) : zt(i, n, (y) => {
|
|
11238
|
+
let h = wo(p, u, y);
|
|
11239
|
+
return y === h && typeof y == "string" && (h = wo(p, u, `${r}${y === "default" ? "" : ur(y)}`, y)), l === !1 ? h : {
|
|
11258
11240
|
[l]: h
|
|
11259
11241
|
};
|
|
11260
11242
|
});
|
|
@@ -11278,25 +11260,25 @@ function Ed() {
|
|
|
11278
11260
|
return null;
|
|
11279
11261
|
const u = y$(a.breakpoints), f = Object.keys(u);
|
|
11280
11262
|
let p = u;
|
|
11281
|
-
return Object.keys(c).forEach((
|
|
11282
|
-
const
|
|
11283
|
-
if (
|
|
11284
|
-
if (typeof
|
|
11285
|
-
if (i[
|
|
11286
|
-
p = mn(p, e(
|
|
11263
|
+
return Object.keys(c).forEach((g) => {
|
|
11264
|
+
const y = a2(c[g], a);
|
|
11265
|
+
if (y != null)
|
|
11266
|
+
if (typeof y == "object")
|
|
11267
|
+
if (i[g])
|
|
11268
|
+
p = mn(p, e(g, y, a, i));
|
|
11287
11269
|
else {
|
|
11288
11270
|
const h = zt({
|
|
11289
11271
|
theme: a
|
|
11290
|
-
},
|
|
11291
|
-
[
|
|
11272
|
+
}, y, (b) => ({
|
|
11273
|
+
[g]: b
|
|
11292
11274
|
}));
|
|
11293
|
-
o2(h,
|
|
11294
|
-
sx:
|
|
11275
|
+
o2(h, y) ? p[g] = t({
|
|
11276
|
+
sx: y,
|
|
11295
11277
|
theme: a
|
|
11296
11278
|
}) : p = mn(p, h);
|
|
11297
11279
|
}
|
|
11298
11280
|
else
|
|
11299
|
-
p = mn(p, e(
|
|
11281
|
+
p = mn(p, e(g, y, a, i));
|
|
11300
11282
|
}), v$(f, p);
|
|
11301
11283
|
}
|
|
11302
11284
|
return Array.isArray(o) ? o.map(s) : s(o);
|
|
@@ -11482,7 +11464,7 @@ function A2(e = {}) {
|
|
|
11482
11464
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
11483
11465
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
11484
11466
|
overridesResolver: p = C2(Sc(c))
|
|
11485
|
-
} = s,
|
|
11467
|
+
} = s, g = (0, li.default)(s, E2), y = u !== void 0 ? u : (
|
|
11486
11468
|
// TODO v6: remove `Root` in the next major release
|
|
11487
11469
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
11488
11470
|
c && c !== "Root" && c !== "root" || !1
|
|
@@ -11494,15 +11476,15 @@ function A2(e = {}) {
|
|
|
11494
11476
|
const A = (0, Tc.default)(i, (0, pt.default)({
|
|
11495
11477
|
shouldForwardProp: T,
|
|
11496
11478
|
label: b
|
|
11497
|
-
},
|
|
11479
|
+
}, g)), j = (x) => typeof x == "function" && x.__emotion_real !== x || (0, m2.isPlainObject)(x) ? (O) => fo(x, (0, pt.default)({}, O, {
|
|
11498
11480
|
theme: ro({
|
|
11499
11481
|
theme: O.theme,
|
|
11500
11482
|
defaultTheme: r,
|
|
11501
11483
|
themeId: t
|
|
11502
11484
|
})
|
|
11503
|
-
})) : x,
|
|
11504
|
-
let k =
|
|
11505
|
-
const J = O ? O.map(
|
|
11485
|
+
})) : x, D = (x, ...O) => {
|
|
11486
|
+
let k = j(x);
|
|
11487
|
+
const J = O ? O.map(j) : [];
|
|
11506
11488
|
l && p && J.push((F) => {
|
|
11507
11489
|
const te = ro((0, pt.default)({}, F, {
|
|
11508
11490
|
defaultTheme: r,
|
|
@@ -11516,7 +11498,7 @@ function A2(e = {}) {
|
|
|
11516
11498
|
theme: te
|
|
11517
11499
|
}));
|
|
11518
11500
|
}), p(F, pe);
|
|
11519
|
-
}), l && !
|
|
11501
|
+
}), l && !y && J.push((F) => {
|
|
11520
11502
|
var te;
|
|
11521
11503
|
const ce = ro((0, pt.default)({}, F, {
|
|
11522
11504
|
defaultTheme: r,
|
|
@@ -11540,7 +11522,7 @@ function A2(e = {}) {
|
|
|
11540
11522
|
}
|
|
11541
11523
|
return i.muiName && (_e.muiName = i.muiName), _e;
|
|
11542
11524
|
};
|
|
11543
|
-
return A.withConfig && (
|
|
11525
|
+
return A.withConfig && (D.withConfig = A.withConfig), D;
|
|
11544
11526
|
};
|
|
11545
11527
|
}
|
|
11546
11528
|
function $2(e, t) {
|
|
@@ -11992,7 +11974,7 @@ function iP(e) {
|
|
|
11992
11974
|
name: b,
|
|
11993
11975
|
mainShade: T = 500,
|
|
11994
11976
|
lightShade: A = 300,
|
|
11995
|
-
darkShade:
|
|
11977
|
+
darkShade: j = 700
|
|
11996
11978
|
}) => {
|
|
11997
11979
|
if (h = de({}, h), !h.main && h[T] && (h.main = h[T]), !h.hasOwnProperty("main"))
|
|
11998
11980
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${b ? ` (${b})` : ""} provided to augmentColor(color) is invalid.
|
|
@@ -12012,12 +11994,12 @@ const theme1 = createTheme({ palette: {
|
|
|
12012
11994
|
const theme2 = createTheme({ palette: {
|
|
12013
11995
|
primary: { main: green[500] },
|
|
12014
11996
|
} });` : vn(12, b ? ` (${b})` : "", JSON.stringify(h.main)));
|
|
12015
|
-
return Ac(h, "light", A, n), Ac(h, "dark",
|
|
12016
|
-
},
|
|
11997
|
+
return Ac(h, "light", A, n), Ac(h, "dark", j, n), h.contrastText || (h.contrastText = f(h.main)), h;
|
|
11998
|
+
}, g = {
|
|
12017
11999
|
dark: ka,
|
|
12018
12000
|
light: Cc
|
|
12019
12001
|
};
|
|
12020
|
-
return process.env.NODE_ENV !== "production" && (
|
|
12002
|
+
return process.env.NODE_ENV !== "production" && (g[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), kt(de({
|
|
12021
12003
|
// A collection of common colors.
|
|
12022
12004
|
common: de({}, En),
|
|
12023
12005
|
// prevent mutable object.
|
|
@@ -12069,7 +12051,7 @@ const theme2 = createTheme({ palette: {
|
|
|
12069
12051
|
// two indexes within its tonal palette.
|
|
12070
12052
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
12071
12053
|
tonalOffset: n
|
|
12072
|
-
},
|
|
12054
|
+
}, g[t]), o);
|
|
12073
12055
|
}
|
|
12074
12056
|
const sP = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
12075
12057
|
function lP(e) {
|
|
@@ -12096,14 +12078,14 @@ function cP(e, t) {
|
|
|
12096
12078
|
pxToRem: f
|
|
12097
12079
|
} = r, p = er(r, sP);
|
|
12098
12080
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
12099
|
-
const
|
|
12081
|
+
const g = o / 14, y = f || ((T) => `${T / c * g}rem`), h = (T, A, j, D, x) => de({
|
|
12100
12082
|
fontFamily: n,
|
|
12101
12083
|
fontWeight: T,
|
|
12102
|
-
fontSize:
|
|
12084
|
+
fontSize: y(A),
|
|
12103
12085
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
12104
|
-
lineHeight:
|
|
12086
|
+
lineHeight: j
|
|
12105
12087
|
}, n === Pc ? {
|
|
12106
|
-
letterSpacing: `${lP(
|
|
12088
|
+
letterSpacing: `${lP(D / A)}em`
|
|
12107
12089
|
} : {}, x, u), b = {
|
|
12108
12090
|
h1: h(a, 96, 1.167, -1.5),
|
|
12109
12091
|
h2: h(a, 60, 1.2, -0.5),
|
|
@@ -12129,7 +12111,7 @@ function cP(e, t) {
|
|
|
12129
12111
|
};
|
|
12130
12112
|
return kt(de({
|
|
12131
12113
|
htmlFontSize: c,
|
|
12132
|
-
pxToRem:
|
|
12114
|
+
pxToRem: y,
|
|
12133
12115
|
fontFamily: n,
|
|
12134
12116
|
fontSize: o,
|
|
12135
12117
|
fontWeightLight: a,
|
|
@@ -12229,27 +12211,27 @@ function TP(e = {}, ...t) {
|
|
|
12229
12211
|
zIndex: de({}, _P)
|
|
12230
12212
|
});
|
|
12231
12213
|
if (c = kt(c, i), c = t.reduce((u, f) => kt(u, f), c), process.env.NODE_ENV !== "production") {
|
|
12232
|
-
const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (p,
|
|
12233
|
-
let
|
|
12234
|
-
for (
|
|
12235
|
-
const h = p[
|
|
12236
|
-
if (u.indexOf(
|
|
12214
|
+
const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (p, g) => {
|
|
12215
|
+
let y;
|
|
12216
|
+
for (y in p) {
|
|
12217
|
+
const h = p[y];
|
|
12218
|
+
if (u.indexOf(y) !== -1 && Object.keys(h).length > 0) {
|
|
12237
12219
|
if (process.env.NODE_ENV !== "production") {
|
|
12238
|
-
const b = Qi("",
|
|
12239
|
-
console.error([`MUI: The \`${
|
|
12220
|
+
const b = Qi("", y);
|
|
12221
|
+
console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${b}' syntax:`, JSON.stringify({
|
|
12240
12222
|
root: {
|
|
12241
12223
|
[`&.${b}`]: h
|
|
12242
12224
|
}
|
|
12243
12225
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
12244
12226
|
`));
|
|
12245
12227
|
}
|
|
12246
|
-
p[
|
|
12228
|
+
p[y] = {};
|
|
12247
12229
|
}
|
|
12248
12230
|
}
|
|
12249
12231
|
};
|
|
12250
12232
|
Object.keys(c.components).forEach((p) => {
|
|
12251
|
-
const
|
|
12252
|
-
|
|
12233
|
+
const g = c.components[p].styleOverrides;
|
|
12234
|
+
g && p.indexOf("Mui") === 0 && f(g, p);
|
|
12253
12235
|
});
|
|
12254
12236
|
}
|
|
12255
12237
|
return c.unstable_sxConfig = de({}, Rn, i == null ? void 0 : i.unstable_sxConfig), c.unstable_sx = function(f) {
|
|
@@ -12294,7 +12276,7 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
12294
12276
|
theme: e,
|
|
12295
12277
|
ownerState: t
|
|
12296
12278
|
}) => {
|
|
12297
|
-
var r, n, o, a, i, s, l, c, u, f, p,
|
|
12279
|
+
var r, n, o, a, i, s, l, c, u, f, p, g, y;
|
|
12298
12280
|
return {
|
|
12299
12281
|
userSelect: "none",
|
|
12300
12282
|
width: "1em",
|
|
@@ -12315,8 +12297,8 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
12315
12297
|
}[t.fontSize],
|
|
12316
12298
|
// TODO v5 deprecate, v6 remove for sx
|
|
12317
12299
|
color: (f = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null ? f : {
|
|
12318
|
-
action: (
|
|
12319
|
-
disabled: (
|
|
12300
|
+
action: (g = (e.vars || e).palette) == null || (g = g.action) == null ? void 0 : g.active,
|
|
12301
|
+
disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
|
|
12320
12302
|
inherit: void 0
|
|
12321
12303
|
}[t.color]
|
|
12322
12304
|
};
|
|
@@ -12334,14 +12316,14 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
12334
12316
|
inheritViewBox: u = !1,
|
|
12335
12317
|
titleAccess: f,
|
|
12336
12318
|
viewBox: p = "0 0 24 24"
|
|
12337
|
-
} = n,
|
|
12319
|
+
} = n, g = er(n, jP), y = /* @__PURE__ */ lt.isValidElement(o) && o.type === "svg", h = de({}, n, {
|
|
12338
12320
|
color: i,
|
|
12339
12321
|
component: s,
|
|
12340
12322
|
fontSize: l,
|
|
12341
12323
|
instanceFontSize: t.fontSize,
|
|
12342
12324
|
inheritViewBox: u,
|
|
12343
12325
|
viewBox: p,
|
|
12344
|
-
hasSvgAsChild:
|
|
12326
|
+
hasSvgAsChild: y
|
|
12345
12327
|
}), b = {};
|
|
12346
12328
|
u || (b.viewBox = p);
|
|
12347
12329
|
const T = IP(h);
|
|
@@ -12353,9 +12335,9 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
12353
12335
|
"aria-hidden": f ? void 0 : !0,
|
|
12354
12336
|
role: f ? "img" : void 0,
|
|
12355
12337
|
ref: r
|
|
12356
|
-
}, b,
|
|
12338
|
+
}, b, g, y && o.props, {
|
|
12357
12339
|
ownerState: h,
|
|
12358
|
-
children: [
|
|
12340
|
+
children: [y ? o.props.children : o, f ? /* @__PURE__ */ d.jsx("title", {
|
|
12359
12341
|
children: f
|
|
12360
12342
|
}) : null]
|
|
12361
12343
|
}));
|
|
@@ -12451,7 +12433,7 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12451
12433
|
d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
|
|
12452
12434
|
}), "ArrowUpward"), FP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
12453
12435
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
12454
|
-
}), "Delete"), Tn = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(
|
|
12436
|
+
}), "Delete"), Tn = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(Re.Td, { ...t, children: e }), LP = ({ errorMessages: e, id: t }) => /* @__PURE__ */ d.jsx(mt, { id: t, title: e, children: /* @__PURE__ */ d.jsx(ci, { label: e.split(`
|
|
12455
12437
|
`).length, children: /* @__PURE__ */ d.jsx(om, {}) }) }), zP = {
|
|
12456
12438
|
paddingLeft: 0,
|
|
12457
12439
|
paddingRight: 0
|
|
@@ -12472,7 +12454,7 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12472
12454
|
size: "sm",
|
|
12473
12455
|
c: "gray"
|
|
12474
12456
|
}, {});
|
|
12475
|
-
return /* @__PURE__ */ d.jsxs(
|
|
12457
|
+
return /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
|
|
12476
12458
|
/* @__PURE__ */ d.jsx(Tn, { colSpan: t, children: /* @__PURE__ */ d.jsxs($o, { children: [
|
|
12477
12459
|
/* @__PURE__ */ d.jsxs(rt, { justify: "flex-start", align: "center", gutter: "sm", children: [
|
|
12478
12460
|
/* @__PURE__ */ d.jsx(rt.Col, { span: "content", children: /* @__PURE__ */ d.jsx(nt, { children: n }) }),
|
|
@@ -12530,8 +12512,8 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12530
12512
|
};
|
|
12531
12513
|
return /* @__PURE__ */ d.jsx(e, { ...a }, r);
|
|
12532
12514
|
}
|
|
12533
|
-
}, Id = (e) => e.type === "object" && typeof e.properties == "object" ? Object.keys(e.properties).filter((t) => e.properties[t].type !== "array") : [""], VP = ({ numColumns: e, translations: t }) => /* @__PURE__ */ d.jsx(
|
|
12534
|
-
return /* @__PURE__ */ d.jsx(
|
|
12515
|
+
}, Id = (e) => e.type === "object" && typeof e.properties == "object" ? Object.keys(e.properties).filter((t) => e.properties[t].type !== "array") : [""], VP = ({ numColumns: e, translations: t }) => /* @__PURE__ */ d.jsx(Re.Tr, { children: /* @__PURE__ */ d.jsx(Tn, { colSpan: e, children: /* @__PURE__ */ d.jsx(nt, { align: "center", children: t.noDataMessage }) }) }), BP = je.memo(function({ title: t }) {
|
|
12516
|
+
return /* @__PURE__ */ d.jsx(Re.Th, { children: t });
|
|
12535
12517
|
}), WP = (e, t) => {
|
|
12536
12518
|
const r = t.rowPath + (t.schema.type === "object" ? "." + t.propName : ""), n = tp(
|
|
12537
12519
|
rw(rp(r, t.schema, (o) => o === r)(e.core.errors).map((o) => o.message))
|
|
@@ -12604,12 +12586,12 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12604
12586
|
path: f,
|
|
12605
12587
|
translations: p
|
|
12606
12588
|
}) => {
|
|
12607
|
-
const
|
|
12589
|
+
const y = Be("ActionIcon", {
|
|
12608
12590
|
bg: "transparent",
|
|
12609
12591
|
size: "sm",
|
|
12610
12592
|
c: "gray"
|
|
12611
12593
|
}, {}), h = wt(() => o(f, r), [o, f, r]), b = wt(() => a(f, r), [a, f, r]);
|
|
12612
|
-
return /* @__PURE__ */ d.jsxs(
|
|
12594
|
+
return /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
|
|
12613
12595
|
jd(GP, t, e, c, u),
|
|
12614
12596
|
c ? /* @__PURE__ */ d.jsx(Tn, { style: l ? jc.fixedCell : jc.fixedCellSmall, children: /* @__PURE__ */ d.jsxs(rt, { justify: "flex-end", align: "center", children: [
|
|
12615
12597
|
l ? /* @__PURE__ */ d.jsxs(Fd, { children: [
|
|
@@ -12623,9 +12605,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12623
12605
|
children: /* @__PURE__ */ d.jsx(
|
|
12624
12606
|
gt,
|
|
12625
12607
|
{
|
|
12626
|
-
bg:
|
|
12627
|
-
size:
|
|
12628
|
-
c:
|
|
12608
|
+
bg: y.bg,
|
|
12609
|
+
size: y.size,
|
|
12610
|
+
c: y.c,
|
|
12629
12611
|
"aria-label": p.upAriaLabel,
|
|
12630
12612
|
onClick: h,
|
|
12631
12613
|
disabled: !i,
|
|
@@ -12644,9 +12626,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12644
12626
|
children: /* @__PURE__ */ d.jsx(
|
|
12645
12627
|
gt,
|
|
12646
12628
|
{
|
|
12647
|
-
bg:
|
|
12648
|
-
size:
|
|
12649
|
-
c:
|
|
12629
|
+
bg: y.bg,
|
|
12630
|
+
size: y.size,
|
|
12631
|
+
c: y.c,
|
|
12650
12632
|
"aria-label": p.downAriaLabel,
|
|
12651
12633
|
onClick: b,
|
|
12652
12634
|
disabled: !s,
|
|
@@ -12659,9 +12641,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12659
12641
|
/* @__PURE__ */ d.jsx(rt.Col, { span: "content", children: /* @__PURE__ */ d.jsx(mt, { id: "tooltip-remove", title: p.removeTooltip, position: "bottom", children: /* @__PURE__ */ d.jsx(
|
|
12660
12642
|
gt,
|
|
12661
12643
|
{
|
|
12662
|
-
bg:
|
|
12663
|
-
size:
|
|
12664
|
-
c:
|
|
12644
|
+
bg: y.bg,
|
|
12645
|
+
size: y.size,
|
|
12646
|
+
c: y.c,
|
|
12665
12647
|
"aria-label": p.removeAriaLabel,
|
|
12666
12648
|
onClick: () => n(e, r),
|
|
12667
12649
|
children: /* @__PURE__ */ d.jsx(FP, {})
|
|
@@ -12685,26 +12667,26 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
|
|
|
12685
12667
|
if (e === 0)
|
|
12686
12668
|
return /* @__PURE__ */ d.jsx(VP, { numColumns: Id(r).length + 1, translations: u });
|
|
12687
12669
|
const p = Cf({}, s, i.options);
|
|
12688
|
-
return /* @__PURE__ */ d.jsx(je.Fragment, { children: PC(e).map((
|
|
12689
|
-
const
|
|
12670
|
+
return /* @__PURE__ */ d.jsx(je.Fragment, { children: PC(e).map((g) => {
|
|
12671
|
+
const y = Qc.compose(t, `${g}`);
|
|
12690
12672
|
return /* @__PURE__ */ d.jsx(
|
|
12691
12673
|
YP,
|
|
12692
12674
|
{
|
|
12693
|
-
childPath:
|
|
12694
|
-
rowIndex:
|
|
12675
|
+
childPath: y,
|
|
12676
|
+
rowIndex: g,
|
|
12695
12677
|
schema: r,
|
|
12696
12678
|
openDeleteDialog: n,
|
|
12697
12679
|
moveUpCreator: o,
|
|
12698
12680
|
moveDownCreator: a,
|
|
12699
|
-
enableUp:
|
|
12700
|
-
enableDown:
|
|
12681
|
+
enableUp: g !== 0,
|
|
12682
|
+
enableDown: g !== e - 1,
|
|
12701
12683
|
showSortButtons: p.showSortButtons || p.showArrayTableSortButtons,
|
|
12702
12684
|
enabled: l,
|
|
12703
12685
|
cells: c,
|
|
12704
12686
|
path: t,
|
|
12705
12687
|
translations: u
|
|
12706
12688
|
},
|
|
12707
|
-
|
|
12689
|
+
y
|
|
12708
12690
|
);
|
|
12709
12691
|
}) });
|
|
12710
12692
|
};
|
|
@@ -12726,10 +12708,10 @@ class XP extends je.Component {
|
|
|
12726
12708
|
visible: u,
|
|
12727
12709
|
enabled: f,
|
|
12728
12710
|
cells: p,
|
|
12729
|
-
translations:
|
|
12730
|
-
} = this.props,
|
|
12731
|
-
return u ? /* @__PURE__ */ d.jsxs(
|
|
12732
|
-
/* @__PURE__ */ d.jsxs(
|
|
12711
|
+
translations: g
|
|
12712
|
+
} = this.props, y = s, h = a.type === "object", b = h ? jd(BP, a, o, f, p) : void 0;
|
|
12713
|
+
return u ? /* @__PURE__ */ d.jsxs(Re, { children: [
|
|
12714
|
+
/* @__PURE__ */ d.jsxs(Re.Thead, { children: [
|
|
12733
12715
|
/* @__PURE__ */ d.jsx(
|
|
12734
12716
|
UP,
|
|
12735
12717
|
{
|
|
@@ -12739,19 +12721,19 @@ class XP extends je.Component {
|
|
|
12739
12721
|
addItem: this.addItem,
|
|
12740
12722
|
numColumns: h ? b.length : 1,
|
|
12741
12723
|
path: o,
|
|
12742
|
-
uischema:
|
|
12724
|
+
uischema: y,
|
|
12743
12725
|
schema: a,
|
|
12744
12726
|
rootSchema: i,
|
|
12745
12727
|
enabled: f,
|
|
12746
|
-
translations:
|
|
12728
|
+
translations: g
|
|
12747
12729
|
}
|
|
12748
12730
|
),
|
|
12749
|
-
h && /* @__PURE__ */ d.jsxs(
|
|
12731
|
+
h && /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
|
|
12750
12732
|
b,
|
|
12751
|
-
f ? /* @__PURE__ */ d.jsx(
|
|
12733
|
+
f ? /* @__PURE__ */ d.jsx(Re.Th, {}) : null
|
|
12752
12734
|
] })
|
|
12753
12735
|
] }),
|
|
12754
|
-
/* @__PURE__ */ d.jsx(
|
|
12736
|
+
/* @__PURE__ */ d.jsx(Re.Tbody, { children: /* @__PURE__ */ d.jsx(KP, { openDeleteDialog: c, translations: g, ...this.props }) })
|
|
12755
12737
|
] }) : null;
|
|
12756
12738
|
}
|
|
12757
12739
|
}
|
|
@@ -12774,13 +12756,13 @@ const JP = je.memo(function({
|
|
|
12774
12756
|
] });
|
|
12775
12757
|
}), ZP = (e) => {
|
|
12776
12758
|
const [t, r] = fe(!1), [n, o] = fe(void 0), [a, i] = fe(void 0), { removeItems: s, visible: l } = e, c = Te(
|
|
12777
|
-
(
|
|
12778
|
-
r(!0), o(
|
|
12759
|
+
(g, y) => {
|
|
12760
|
+
r(!0), o(g), i(y);
|
|
12779
12761
|
},
|
|
12780
12762
|
[r, o, i]
|
|
12781
12763
|
), u = Te(() => r(!1), [r]), f = Te(() => {
|
|
12782
|
-
const
|
|
12783
|
-
s(
|
|
12764
|
+
const g = n.substring(0, n.lastIndexOf("."));
|
|
12765
|
+
s(g, [a])(), r(!1);
|
|
12784
12766
|
}, [r, n, a]), p = Te(() => r(!1), [r]);
|
|
12785
12767
|
return l ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
12786
12768
|
/* @__PURE__ */ d.jsx(XP, { ...e, openDeleteDialog: c }),
|