fastapi-rtk 0.0.96 → 0.0.97
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 +370 -366
- package/dist/fastapi-rtk.umd.js +12 -12
- package/package.json +1 -1
package/dist/fastapi-rtk.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Zu = Object.defineProperty;
|
|
|
2
2
|
var Xu = (e, t, r) => t in e ? Zu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ha = (e, t, r) => Xu(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import * as Le from "react";
|
|
5
|
-
import Ye, { createContext as In, useContext as kn, useState as
|
|
5
|
+
import Ye, { createContext as In, useContext as kn, useState as q, useEffect as ee, useCallback as oe, useMemo as J, forwardRef as dt, createElement as gi, memo as Rn, isValidElement as dl, cloneElement as Dr, Fragment as pl, useRef as Qu } from "react";
|
|
6
6
|
import { jsx as d, jsxs as k, Fragment as He } from "react/jsx-runtime";
|
|
7
7
|
import { createSearchParams as ef, useNavigate as tf } from "react-router-dom";
|
|
8
8
|
import { create as rf } from "zustand";
|
|
@@ -101,8 +101,8 @@ const Kf = (e) => new Proxy(e, {
|
|
|
101
101
|
}
|
|
102
102
|
}), Jf = (e, t) => Object.entries(t).reduce((r, [n, i]) => typeof i == "object" && JSON.stringify(i) === JSON.stringify(e[n]) || i === e[n] ? r : { ...r, [n]: i }, {});
|
|
103
103
|
function bn(e) {
|
|
104
|
-
const [t] =
|
|
105
|
-
return
|
|
104
|
+
const [t] = q(() => rf(() => ({ ...e }))), [r] = q(() => Kf(t));
|
|
105
|
+
return ee(() => {
|
|
106
106
|
t.setState((n) => Jf(n, e));
|
|
107
107
|
}, [e, t]), r;
|
|
108
108
|
}
|
|
@@ -233,7 +233,7 @@ function ad(e) {
|
|
|
233
233
|
queryKey: ["user"],
|
|
234
234
|
queryFn: ({ signal: u }) => id(e, u),
|
|
235
235
|
retry: 0
|
|
236
|
-
}), [n, i] =
|
|
236
|
+
}), [n, i] = q(null), o = oe(
|
|
237
237
|
({ username: u, password: f }) => {
|
|
238
238
|
i(null), Qf(e, { username: u, password: f }).then(() => t.invalidateQueries({ queryKey: ["user"] })).catch((p) => i(p));
|
|
239
239
|
},
|
|
@@ -272,7 +272,7 @@ function sd(e, t) {
|
|
|
272
272
|
queryFn: ({ signal: n }) => nd(e, n),
|
|
273
273
|
enabled: !1
|
|
274
274
|
});
|
|
275
|
-
return
|
|
275
|
+
return ee(() => {
|
|
276
276
|
t.user && !r.data && r.refetch();
|
|
277
277
|
}, [t.user, r]), { baseUrl: e, info: r.data, loading: r.isFetching, error: r.error };
|
|
278
278
|
}
|
|
@@ -280,8 +280,8 @@ function ld(e) {
|
|
|
280
280
|
const t = { baseUrl: new URL(document.baseURI).pathname + "/api/v1", inheritMantineTheme: !1 }, { baseUrl: r, children: n } = { ...t, ...e }, i = ad(r), o = bn(i), a = sd(r, i), s = bn(a);
|
|
281
281
|
return /* @__PURE__ */ d(Dl.Provider, { value: o, children: /* @__PURE__ */ d(Ml.Provider, { value: s, children: n }) });
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const [t] =
|
|
283
|
+
function w2(e) {
|
|
284
|
+
const [t] = q(() => new of());
|
|
285
285
|
return /* @__PURE__ */ d(af, { client: t, children: /* @__PURE__ */ d(ld, { ...e }) });
|
|
286
286
|
}
|
|
287
287
|
const Fl = In({
|
|
@@ -294,7 +294,7 @@ const Fl = In({
|
|
|
294
294
|
*/
|
|
295
295
|
error: null
|
|
296
296
|
});
|
|
297
|
-
function
|
|
297
|
+
function S2() {
|
|
298
298
|
const e = kn(Fl);
|
|
299
299
|
if (e === void 0)
|
|
300
300
|
throw new Error("useBulkActions must be used within a ApiProvider");
|
|
@@ -796,24 +796,24 @@ function Gt(e) {
|
|
|
796
796
|
};
|
|
797
797
|
const O = (A) => {
|
|
798
798
|
Oe.isError(A) ? x(A) : A ? l(null) : x(C());
|
|
799
|
-
},
|
|
799
|
+
}, M = (A) => {
|
|
800
800
|
Oe.isError(A) ? x(A) : s(A);
|
|
801
801
|
};
|
|
802
802
|
if (g && nt(r))
|
|
803
803
|
return O(!0);
|
|
804
|
-
let
|
|
804
|
+
let Y;
|
|
805
805
|
try {
|
|
806
806
|
var m;
|
|
807
|
-
if (
|
|
807
|
+
if (Y = u.call(_, r, _), typeof ((m = Y) == null ? void 0 : m.then) == "function") {
|
|
808
808
|
if (i.sync)
|
|
809
809
|
throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
|
|
810
|
-
return Promise.resolve(
|
|
810
|
+
return Promise.resolve(Y).then(O, M);
|
|
811
811
|
}
|
|
812
812
|
} catch (A) {
|
|
813
|
-
|
|
813
|
+
M(A);
|
|
814
814
|
return;
|
|
815
815
|
}
|
|
816
|
-
O(
|
|
816
|
+
O(Y);
|
|
817
817
|
}
|
|
818
818
|
return t.OPTIONS = e, t;
|
|
819
819
|
}
|
|
@@ -2492,7 +2492,7 @@ function dp({
|
|
|
2492
2492
|
dataQueryProps: l,
|
|
2493
2493
|
streaming: c = !1
|
|
2494
2494
|
}) {
|
|
2495
|
-
const [u, f] =
|
|
2495
|
+
const [u, f] = q(
|
|
2496
2496
|
t ? tn(null, t) : null
|
|
2497
2497
|
), p = J(
|
|
2498
2498
|
() => r ? {
|
|
@@ -2504,27 +2504,27 @@ function dp({
|
|
|
2504
2504
|
} : u,
|
|
2505
2505
|
[r, u]
|
|
2506
2506
|
), g = oe(
|
|
2507
|
-
(
|
|
2508
|
-
if (typeof
|
|
2509
|
-
return tn(null,
|
|
2510
|
-
const T = tn({ ...E },
|
|
2511
|
-
if ((
|
|
2512
|
-
if (
|
|
2507
|
+
(U) => f((E) => {
|
|
2508
|
+
if (typeof U == "function" && (U = U(E)), !E)
|
|
2509
|
+
return tn(null, U);
|
|
2510
|
+
const T = tn({ ...E }, U);
|
|
2511
|
+
if ((U.filters || U.order_column || U.order_direction) && !U.page && (T.page = 0), c) {
|
|
2512
|
+
if (U.page && U.page !== E.page && !U.streaming)
|
|
2513
2513
|
throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");
|
|
2514
|
-
if (
|
|
2514
|
+
if (U.page_size && U.page_size !== E.page_size)
|
|
2515
2515
|
throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead");
|
|
2516
2516
|
}
|
|
2517
2517
|
return T;
|
|
2518
2518
|
}),
|
|
2519
2519
|
[c]
|
|
2520
|
-
), [y, h] =
|
|
2520
|
+
), [y, h] = q(null), v = J(() => y, [y]), w = oe(() => h(null), []), {
|
|
2521
2521
|
data: $,
|
|
2522
2522
|
isFetching: C,
|
|
2523
2523
|
refetch: x,
|
|
2524
2524
|
error: _
|
|
2525
2525
|
} = yn({
|
|
2526
2526
|
queryKey: [`info-${e}`],
|
|
2527
|
-
queryFn: ({ signal:
|
|
2527
|
+
queryFn: ({ signal: U }) => fd(we(e, "_info"), U).then(up),
|
|
2528
2528
|
enabled: n,
|
|
2529
2529
|
placeholderData: i ? null : ma,
|
|
2530
2530
|
refetchOnMount: !1,
|
|
@@ -2533,12 +2533,12 @@ function dp({
|
|
|
2533
2533
|
...s
|
|
2534
2534
|
}), {
|
|
2535
2535
|
data: O,
|
|
2536
|
-
isFetching:
|
|
2537
|
-
refetch:
|
|
2538
|
-
error:
|
|
2536
|
+
isFetching: M,
|
|
2537
|
+
refetch: B,
|
|
2538
|
+
error: Y
|
|
2539
2539
|
} = yn({
|
|
2540
2540
|
queryKey: [`data-${e}`, JSON.stringify(p)],
|
|
2541
|
-
queryFn: ({ signal:
|
|
2541
|
+
queryFn: ({ signal: U }) => p ? pd(we(e, "/"), p, U).then((E) => ({
|
|
2542
2542
|
...E,
|
|
2543
2543
|
result: E.result.map((T, z) => ({ ...T, id: E.ids[z] }))
|
|
2544
2544
|
})) : null,
|
|
@@ -2548,70 +2548,70 @@ function dp({
|
|
|
2548
2548
|
refetchOnWindowFocus: "always",
|
|
2549
2549
|
...l
|
|
2550
2550
|
});
|
|
2551
|
-
|
|
2552
|
-
p &&
|
|
2553
|
-
}, [
|
|
2551
|
+
ee(() => {
|
|
2552
|
+
p && B();
|
|
2553
|
+
}, [B, p]), ee(() => {
|
|
2554
2554
|
if (_) {
|
|
2555
2555
|
h({ message: "Couldn't fetch info", originalError: _ });
|
|
2556
2556
|
return;
|
|
2557
2557
|
}
|
|
2558
|
-
if (
|
|
2559
|
-
h({ message: "Couldn't fetch list", originalError:
|
|
2558
|
+
if (Y) {
|
|
2559
|
+
h({ message: "Couldn't fetch list", originalError: Y });
|
|
2560
2560
|
return;
|
|
2561
2561
|
}
|
|
2562
2562
|
w();
|
|
2563
|
-
}, [_,
|
|
2564
|
-
const m = J(() => C ||
|
|
2563
|
+
}, [_, Y, w]);
|
|
2564
|
+
const m = J(() => C || M, [C, M]);
|
|
2565
2565
|
ir(() => {
|
|
2566
2566
|
if (!a)
|
|
2567
2567
|
return;
|
|
2568
|
-
const
|
|
2569
|
-
u != null && u.page_size && (
|
|
2568
|
+
const U = tn(null, t);
|
|
2569
|
+
u != null && u.page_size && (U.page_size = u.page_size), g(U);
|
|
2570
2570
|
}, [e]);
|
|
2571
2571
|
const A = oe(
|
|
2572
|
-
async (
|
|
2572
|
+
async (U) => {
|
|
2573
2573
|
try {
|
|
2574
|
-
const E = await dd(e, Ke(
|
|
2574
|
+
const E = await dd(e, Ke(U));
|
|
2575
2575
|
return w(), E;
|
|
2576
2576
|
} catch (E) {
|
|
2577
|
-
h({ message: `Couldn't fetch item with id ${
|
|
2577
|
+
h({ message: `Couldn't fetch item with id ${U}`, originalError: E });
|
|
2578
2578
|
}
|
|
2579
2579
|
},
|
|
2580
2580
|
[e, w]
|
|
2581
2581
|
), D = oe(
|
|
2582
|
-
async (
|
|
2582
|
+
async (U, E) => {
|
|
2583
2583
|
try {
|
|
2584
|
-
const T = await cd(e,
|
|
2585
|
-
return E || (x(),
|
|
2584
|
+
const T = await cd(e, U);
|
|
2585
|
+
return E || (x(), B()), w(), T;
|
|
2586
2586
|
} catch (T) {
|
|
2587
2587
|
h({ message: "Couldn't add item", originalError: T });
|
|
2588
2588
|
}
|
|
2589
2589
|
},
|
|
2590
|
-
[
|
|
2590
|
+
[B, x, e, w]
|
|
2591
2591
|
), H = oe(
|
|
2592
|
-
async (
|
|
2592
|
+
async (U, E, T) => {
|
|
2593
2593
|
try {
|
|
2594
|
-
const z = await hd(e, Ke(
|
|
2595
|
-
return T || (x(),
|
|
2594
|
+
const z = await hd(e, Ke(U), E);
|
|
2595
|
+
return T || (x(), B()), w(), z;
|
|
2596
2596
|
} catch (z) {
|
|
2597
|
-
h({ message: `Couldn't update item with id ${
|
|
2597
|
+
h({ message: `Couldn't update item with id ${U}`, originalError: z });
|
|
2598
2598
|
}
|
|
2599
2599
|
},
|
|
2600
|
-
[
|
|
2600
|
+
[B, x, e, w]
|
|
2601
2601
|
), Z = oe(
|
|
2602
|
-
async (
|
|
2602
|
+
async (U, E) => {
|
|
2603
2603
|
try {
|
|
2604
|
-
const T = await ud(e, Ke(
|
|
2605
|
-
return E || (x(),
|
|
2604
|
+
const T = await ud(e, Ke(U));
|
|
2605
|
+
return E || (x(), B()), w(), T;
|
|
2606
2606
|
} catch (T) {
|
|
2607
|
-
h({ message: `Couldn't delete item with id ${
|
|
2607
|
+
h({ message: `Couldn't delete item with id ${U}`, originalError: T });
|
|
2608
2608
|
}
|
|
2609
2609
|
},
|
|
2610
|
-
[
|
|
2610
|
+
[B, x, e, w]
|
|
2611
2611
|
), fe = oe(
|
|
2612
|
-
async (
|
|
2612
|
+
async (U) => {
|
|
2613
2613
|
try {
|
|
2614
|
-
await fp(
|
|
2614
|
+
await fp(U, e, p);
|
|
2615
2615
|
} catch (E) {
|
|
2616
2616
|
h({ message: "Couldn't download", originalError: E });
|
|
2617
2617
|
}
|
|
@@ -2622,25 +2622,25 @@ function dp({
|
|
|
2622
2622
|
isEnd: !1,
|
|
2623
2623
|
fetch: () => null
|
|
2624
2624
|
});
|
|
2625
|
-
|
|
2625
|
+
ee(() => {
|
|
2626
2626
|
c && ge({
|
|
2627
2627
|
fetch: () => g({ page: 0, streaming: !0 })
|
|
2628
2628
|
});
|
|
2629
|
-
}, [g, ge, c]),
|
|
2630
|
-
c && O && ge((
|
|
2631
|
-
let E = Object.keys(
|
|
2629
|
+
}, [g, ge, c]), ee(() => {
|
|
2630
|
+
c && O && ge((U) => {
|
|
2631
|
+
let E = Object.keys(U.data).length;
|
|
2632
2632
|
const T = { isEnd: !1 };
|
|
2633
|
-
return p.page < E ? (E = p.page, T.data = { [p.page]: O.result }) : T.data = { ...
|
|
2633
|
+
return p.page < E ? (E = p.page, T.data = { [p.page]: O.result }) : T.data = { ...U.data, [p.page]: O.result }, O.result.length < p.page_size ? (T.isEnd = !0, T.fetch = () => null) : T.fetch = () => g({ page: E + 1, streaming: !0 }), T;
|
|
2634
2634
|
});
|
|
2635
2635
|
}, [O, g, ge, c]);
|
|
2636
2636
|
const xe = J(() => {
|
|
2637
|
-
const
|
|
2637
|
+
const U = {
|
|
2638
2638
|
all: "all",
|
|
2639
2639
|
actions: "actions"
|
|
2640
2640
|
};
|
|
2641
2641
|
return O == null || O.list_columns.forEach((E) => {
|
|
2642
|
-
|
|
2643
|
-
}),
|
|
2642
|
+
U[E] && (U[E] = `_${E}`);
|
|
2643
|
+
}), U;
|
|
2644
2644
|
}, [O == null ? void 0 : O.list_columns]);
|
|
2645
2645
|
return {
|
|
2646
2646
|
path: e,
|
|
@@ -2652,7 +2652,7 @@ function dp({
|
|
|
2652
2652
|
streaming: de,
|
|
2653
2653
|
specialKey: xe,
|
|
2654
2654
|
setQueryParams: g,
|
|
2655
|
-
refetch:
|
|
2655
|
+
refetch: B,
|
|
2656
2656
|
refetchInfo: x,
|
|
2657
2657
|
getEntry: A,
|
|
2658
2658
|
addEntry: D,
|
|
@@ -2673,7 +2673,7 @@ const pp = async (e, t, r) => {
|
|
|
2673
2673
|
throw typeof a == "object" ? new Error(typeof a.detail == "string" ? a.detail : JSON.stringify(a, null, 2)) : new Error(a);
|
|
2674
2674
|
return a;
|
|
2675
2675
|
}, hp = ({ Api: e }) => {
|
|
2676
|
-
const [t, r] =
|
|
2676
|
+
const [t, r] = q([]), [n, i] = q(null), o = oe(
|
|
2677
2677
|
async (s, l) => {
|
|
2678
2678
|
try {
|
|
2679
2679
|
i(null);
|
|
@@ -2901,8 +2901,8 @@ var Cp = Ie("outline", "users", "IconUsers", [["path", { d: "M9 7m-4 0a4 4 0 1 0
|
|
|
2901
2901
|
*/
|
|
2902
2902
|
var Ap = Ie("outline", "x", "IconX", [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l12 12", key: "svg-1" }]]);
|
|
2903
2903
|
function ec() {
|
|
2904
|
-
const { error: e } = ie(), [t, r] =
|
|
2905
|
-
return
|
|
2904
|
+
const { error: e } = ie(), [t, r] = q(!1);
|
|
2905
|
+
return ee(() => {
|
|
2906
2906
|
e && r(!0);
|
|
2907
2907
|
}, [e]), /* @__PURE__ */ d(
|
|
2908
2908
|
cr,
|
|
@@ -2943,7 +2943,7 @@ function $p({ id: e, ...t }) {
|
|
|
2943
2943
|
bg: "transparent",
|
|
2944
2944
|
size: "sm",
|
|
2945
2945
|
c: "gray"
|
|
2946
|
-
}, t), [o, a] =
|
|
2946
|
+
}, t), [o, a] = q(!1), s = () => {
|
|
2947
2947
|
a(!1);
|
|
2948
2948
|
}, l = async () => {
|
|
2949
2949
|
r(e), a(!1);
|
|
@@ -3048,11 +3048,11 @@ function Sn({ form: e, name: t, ...r }) {
|
|
|
3048
3048
|
return t === "password" ? /* @__PURE__ */ d(hl, { ...e.getInputProps(t), value: i, ...r }) : /* @__PURE__ */ d(ho, { ...e.getInputProps(t), value: i, ...r });
|
|
3049
3049
|
}
|
|
3050
3050
|
function rc({ form: e, name: t, filter: r, ...n }) {
|
|
3051
|
-
const [i, o] =
|
|
3051
|
+
const [i, o] = q(""), a = e.getInputProps(t).value, s = J(
|
|
3052
3052
|
() => a ? typeof a == "object" ? JSON.stringify(a, null, 2) : a : "",
|
|
3053
3053
|
[a]
|
|
3054
3054
|
);
|
|
3055
|
-
return
|
|
3055
|
+
return ee(() => {
|
|
3056
3056
|
o(s);
|
|
3057
3057
|
}, [s]), r ? /* @__PURE__ */ d(Sn, { form: e, name: t, ...n }) : /* @__PURE__ */ d(
|
|
3058
3058
|
pf,
|
|
@@ -3079,7 +3079,7 @@ function rc({ form: e, name: t, filter: r, ...n }) {
|
|
|
3079
3079
|
);
|
|
3080
3080
|
}
|
|
3081
3081
|
function Rp({ form: e, name: t, filter: r, ...n }) {
|
|
3082
|
-
const [i, o] =
|
|
3082
|
+
const [i, o] = q(!!r);
|
|
3083
3083
|
return /* @__PURE__ */ k(ml, { label: n.label, description: n.description, children: [
|
|
3084
3084
|
!r && /* @__PURE__ */ k(Ge, { align: "center", gap: "xs", py: "0.25rem", children: [
|
|
3085
3085
|
/* @__PURE__ */ d(or, { checked: i, onChange: (a) => o(a.currentTarget.checked) }),
|
|
@@ -3225,7 +3225,7 @@ function Np({ item: e, info: t, opened: r, onClose: n, ...i }) {
|
|
|
3225
3225
|
u.isDirty(y) && (g[y] = !0);
|
|
3226
3226
|
}), g;
|
|
3227
3227
|
};
|
|
3228
|
-
|
|
3228
|
+
ee(() => {
|
|
3229
3229
|
e && Fp(e, t).then((g) => {
|
|
3230
3230
|
u.setValues(g), u.resetDirty(g);
|
|
3231
3231
|
});
|
|
@@ -3233,7 +3233,7 @@ function Np({ item: e, info: t, opened: r, onClose: n, ...i }) {
|
|
|
3233
3233
|
const p = async (g) => {
|
|
3234
3234
|
g = tc(f(), g), await o(e.id, g), n();
|
|
3235
3235
|
};
|
|
3236
|
-
return
|
|
3236
|
+
return ee(() => {
|
|
3237
3237
|
u.setInitialValues(t.edit.defaultValues), u.reset();
|
|
3238
3238
|
}, [t.edit.defaultValues]), e ? /* @__PURE__ */ d(
|
|
3239
3239
|
cr,
|
|
@@ -3269,7 +3269,7 @@ function Lp({ id: e, ...t }) {
|
|
|
3269
3269
|
bg: "transparent",
|
|
3270
3270
|
size: "sm",
|
|
3271
3271
|
c: "gray"
|
|
3272
|
-
}, t), [a, s] =
|
|
3272
|
+
}, t), [a, s] = q(null), [l, c] = q(!1), [u, f] = q(!1);
|
|
3273
3273
|
return /* @__PURE__ */ k(He, { children: [
|
|
3274
3274
|
/* @__PURE__ */ d(Pe, { label: "Edit", children: /* @__PURE__ */ d(
|
|
3275
3275
|
Re,
|
|
@@ -3344,7 +3344,7 @@ function Up({ id: e, ...t }) {
|
|
|
3344
3344
|
bg: "transparent",
|
|
3345
3345
|
size: "sm",
|
|
3346
3346
|
c: "gray"
|
|
3347
|
-
}, t), [a, s] =
|
|
3347
|
+
}, t), [a, s] = q(null), [l, c] = q(!1), [u, f] = q(!1);
|
|
3348
3348
|
return /* @__PURE__ */ k(He, { children: [
|
|
3349
3349
|
/* @__PURE__ */ d(Pe, { label: "Details", children: /* @__PURE__ */ d(
|
|
3350
3350
|
Re,
|
|
@@ -3391,7 +3391,7 @@ function ic({ opened: e, onClose: t, ...r }) {
|
|
|
3391
3391
|
}), u = async (f) => {
|
|
3392
3392
|
await i(f), c.reset(), t();
|
|
3393
3393
|
};
|
|
3394
|
-
return
|
|
3394
|
+
return ee(() => {
|
|
3395
3395
|
c.setInitialValues(n.add.defaultValues), c.reset();
|
|
3396
3396
|
}, [n.add.defaultValues]), /* @__PURE__ */ d(
|
|
3397
3397
|
cr,
|
|
@@ -3423,7 +3423,7 @@ function ic({ opened: e, onClose: t, ...r }) {
|
|
|
3423
3423
|
);
|
|
3424
3424
|
}
|
|
3425
3425
|
function Vp(...e) {
|
|
3426
|
-
const [t, r] =
|
|
3426
|
+
const [t, r] = q(!1), i = le("ActionIcon", {
|
|
3427
3427
|
bg: "transparent",
|
|
3428
3428
|
size: "sm",
|
|
3429
3429
|
c: "gray"
|
|
@@ -3632,9 +3632,9 @@ function cc() {
|
|
|
3632
3632
|
let x, _ = "";
|
|
3633
3633
|
const {
|
|
3634
3634
|
implementation: O,
|
|
3635
|
-
createNodeIterator:
|
|
3636
|
-
createDocumentFragment:
|
|
3637
|
-
getElementsByTagName:
|
|
3635
|
+
createNodeIterator: M,
|
|
3636
|
+
createDocumentFragment: B,
|
|
3637
|
+
getElementsByTagName: Y
|
|
3638
3638
|
} = r, {
|
|
3639
3639
|
importNode: m
|
|
3640
3640
|
} = n;
|
|
@@ -3648,7 +3648,7 @@ function cc() {
|
|
|
3648
3648
|
ARIA_ATTR: de,
|
|
3649
3649
|
IS_SCRIPT_OR_DATA: ge,
|
|
3650
3650
|
ATTR_WHITESPACE: xe,
|
|
3651
|
-
CUSTOM_ELEMENT:
|
|
3651
|
+
CUSTOM_ELEMENT: U
|
|
3652
3652
|
} = Ga;
|
|
3653
3653
|
let {
|
|
3654
3654
|
IS_ALLOWED_URI: E
|
|
@@ -3656,7 +3656,7 @@ function cc() {
|
|
|
3656
3656
|
const z = K({}, [...Ua, ..._i, ...Ti, ...wi, ...Va]);
|
|
3657
3657
|
let R = null;
|
|
3658
3658
|
const V = K({}, [...Wa, ...Si, ...Ha, ...an]);
|
|
3659
|
-
let
|
|
3659
|
+
let F = Object.seal(ac(null, {
|
|
3660
3660
|
tagNameCheck: {
|
|
3661
3661
|
writable: !0,
|
|
3662
3662
|
configurable: !1,
|
|
@@ -3696,7 +3696,7 @@ function cc() {
|
|
|
3696
3696
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3697
3697
|
if (!(Vt && Vt === b)) {
|
|
3698
3698
|
if ((!b || typeof b != "object") && (b = {}), b = Ot(b), _r = // eslint-disable-next-line unicorn/prefer-includes
|
|
3699
|
-
Gu.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Yu : b.PARSER_MEDIA_TYPE, Ce = _r === "application/xhtml+xml" ? vi : hn, T = tt(b, "ALLOWED_TAGS") ? K({}, b.ALLOWED_TAGS, Ce) : z, R = tt(b, "ALLOWED_ATTR") ? K({}, b.ALLOWED_ATTR, Ce) : V, pi = tt(b, "ALLOWED_NAMESPACES") ? K({}, b.ALLOWED_NAMESPACES, vi) : Wu, fi = tt(b, "ADD_URI_SAFE_ATTR") ? K(Ot(ta), b.ADD_URI_SAFE_ATTR, Ce) : ta, Qo = tt(b, "ADD_DATA_URI_TAGS") ? K(Ot(ea), b.ADD_DATA_URI_TAGS, Ce) : ea, Bt = tt(b, "FORBID_CONTENTS") ? K({}, b.FORBID_CONTENTS, Ce) : Xo, W = tt(b, "FORBID_TAGS") ? K({}, b.FORBID_TAGS, Ce) : {}, G = tt(b, "FORBID_ATTR") ? K({}, b.FORBID_ATTR, Ce) : {}, zt = tt(b, "USE_PROFILES") ? b.USE_PROFILES : !1, L = b.ALLOW_ARIA_ATTR !== !1, X = b.ALLOW_DATA_ATTR !== !1, Q = b.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, I = b.SAFE_FOR_TEMPLATES || !1, Ue = b.SAFE_FOR_XML !== !1, Ze = b.WHOLE_DOCUMENT || !1, jt = b.RETURN_DOM || !1, Gr = b.RETURN_DOM_FRAGMENT || !1, Yr = b.RETURN_TRUSTED_TYPE || !1, ci = b.FORCE_BODY || !1, Jo = b.SANITIZE_DOM !== !1, Zo = b.SANITIZE_NAMED_PROPS || !1, ui = b.KEEP_CONTENT !== !1, vr = b.IN_PLACE || !1, E = b.ALLOWED_URI_REGEXP || sc, Ut = b.NAMESPACE || pt, Jr = b.MATHML_TEXT_INTEGRATION_POINTS || Jr, Zr = b.HTML_INTEGRATION_POINTS || Zr,
|
|
3699
|
+
Gu.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Yu : b.PARSER_MEDIA_TYPE, Ce = _r === "application/xhtml+xml" ? vi : hn, T = tt(b, "ALLOWED_TAGS") ? K({}, b.ALLOWED_TAGS, Ce) : z, R = tt(b, "ALLOWED_ATTR") ? K({}, b.ALLOWED_ATTR, Ce) : V, pi = tt(b, "ALLOWED_NAMESPACES") ? K({}, b.ALLOWED_NAMESPACES, vi) : Wu, fi = tt(b, "ADD_URI_SAFE_ATTR") ? K(Ot(ta), b.ADD_URI_SAFE_ATTR, Ce) : ta, Qo = tt(b, "ADD_DATA_URI_TAGS") ? K(Ot(ea), b.ADD_DATA_URI_TAGS, Ce) : ea, Bt = tt(b, "FORBID_CONTENTS") ? K({}, b.FORBID_CONTENTS, Ce) : Xo, W = tt(b, "FORBID_TAGS") ? K({}, b.FORBID_TAGS, Ce) : {}, G = tt(b, "FORBID_ATTR") ? K({}, b.FORBID_ATTR, Ce) : {}, zt = tt(b, "USE_PROFILES") ? b.USE_PROFILES : !1, L = b.ALLOW_ARIA_ATTR !== !1, X = b.ALLOW_DATA_ATTR !== !1, Q = b.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, I = b.SAFE_FOR_TEMPLATES || !1, Ue = b.SAFE_FOR_XML !== !1, Ze = b.WHOLE_DOCUMENT || !1, jt = b.RETURN_DOM || !1, Gr = b.RETURN_DOM_FRAGMENT || !1, Yr = b.RETURN_TRUSTED_TYPE || !1, ci = b.FORCE_BODY || !1, Jo = b.SANITIZE_DOM !== !1, Zo = b.SANITIZE_NAMED_PROPS || !1, ui = b.KEEP_CONTENT !== !1, vr = b.IN_PLACE || !1, E = b.ALLOWED_URI_REGEXP || sc, Ut = b.NAMESPACE || pt, Jr = b.MATHML_TEXT_INTEGRATION_POINTS || Jr, Zr = b.HTML_INTEGRATION_POINTS || Zr, F = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && ra(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && ra(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), I && (X = !1), Gr && (jt = !0), zt && (T = K({}, Va), R = [], zt.html === !0 && (K(T, Ua), K(R, Wa)), zt.svg === !0 && (K(T, _i), K(R, Si), K(R, an)), zt.svgFilters === !0 && (K(T, Ti), K(R, Si), K(R, an)), zt.mathMl === !0 && (K(T, wi), K(R, Ha), K(R, an))), b.ADD_TAGS && (T === z && (T = Ot(T)), K(T, b.ADD_TAGS, Ce)), b.ADD_ATTR && (R === V && (R = Ot(R)), K(R, b.ADD_ATTR, Ce)), b.ADD_URI_SAFE_ATTR && K(fi, b.ADD_URI_SAFE_ATTR, Ce), b.FORBID_CONTENTS && (Bt === Xo && (Bt = Ot(Bt)), K(Bt, b.FORBID_CONTENTS, Ce)), ui && (T["#text"] = !0), Ze && K(T, ["html", "head", "body"]), T.table && (K(T, ["tbody"]), delete W.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
3700
3700
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3701
3701
|
throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3702
3702
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3769,9 +3769,9 @@ function cc() {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
const De = P.body || P.documentElement;
|
|
3772
|
-
return b && N && De.insertBefore(r.createTextNode(N), De.childNodes[0] || null), Ut === pt ?
|
|
3772
|
+
return b && N && De.insertBefore(r.createTextNode(N), De.childNodes[0] || null), Ut === pt ? Y.call(P, Ze ? "html" : "body")[0] : Ze ? P.documentElement : De;
|
|
3773
3773
|
}, aa = function(b) {
|
|
3774
|
-
return
|
|
3774
|
+
return M.call(
|
|
3775
3775
|
b.ownerDocument || b,
|
|
3776
3776
|
b,
|
|
3777
3777
|
// eslint-disable-next-line no-bitwise
|
|
@@ -3799,7 +3799,7 @@ function cc() {
|
|
|
3799
3799
|
}), b.hasChildNodes() && !sa(b.firstElementChild) && Ne(/<[/\w]/g, b.innerHTML) && Ne(/<[/\w]/g, b.textContent) || b.nodeType === Cr.progressingInstruction || Ue && b.nodeType === Cr.comment && Ne(/<[/\w]/g, b.data))
|
|
3800
3800
|
return ot(b), !0;
|
|
3801
3801
|
if (!T[N] || W[N]) {
|
|
3802
|
-
if (!W[N] && ua(N) && (
|
|
3802
|
+
if (!W[N] && ua(N) && (F.tagNameCheck instanceof RegExp && Ne(F.tagNameCheck, N) || F.tagNameCheck instanceof Function && F.tagNameCheck(N)))
|
|
3803
3803
|
return !1;
|
|
3804
3804
|
if (ui && !Bt[N]) {
|
|
3805
3805
|
const he = C(b) || b.parentNode, De = $(b) || b.childNodes;
|
|
@@ -3828,9 +3828,9 @@ function cc() {
|
|
|
3828
3828
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
3829
3829
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3830
3830
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
3831
|
-
!(ua(b) && (
|
|
3831
|
+
!(ua(b) && (F.tagNameCheck instanceof RegExp && Ne(F.tagNameCheck, b) || F.tagNameCheck instanceof Function && F.tagNameCheck(b)) && (F.attributeNameCheck instanceof RegExp && Ne(F.attributeNameCheck, P) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(P)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
3832
3832
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3833
|
-
P === "is" &&
|
|
3833
|
+
P === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && Ne(F.tagNameCheck, N) || F.tagNameCheck instanceof Function && F.tagNameCheck(N)))
|
|
3834
3834
|
) return !1;
|
|
3835
3835
|
} else if (!fi[P]) {
|
|
3836
3836
|
if (!Ne(E, Sr(N, xe, ""))) {
|
|
@@ -3846,7 +3846,7 @@ function cc() {
|
|
|
3846
3846
|
}
|
|
3847
3847
|
return !0;
|
|
3848
3848
|
}, ua = function(b) {
|
|
3849
|
-
return b !== "annotation-xml" && Ba(b,
|
|
3849
|
+
return b !== "annotation-xml" && Ba(b, U);
|
|
3850
3850
|
}, fa = function(b) {
|
|
3851
3851
|
ht(A.beforeSanitizeAttributes, b, null);
|
|
3852
3852
|
const {
|
|
@@ -3942,7 +3942,7 @@ function cc() {
|
|
|
3942
3942
|
return j;
|
|
3943
3943
|
if (jt) {
|
|
3944
3944
|
if (Gr)
|
|
3945
|
-
for (De =
|
|
3945
|
+
for (De = B.call(P.ownerDocument); P.firstChild; )
|
|
3946
3946
|
De.appendChild(P.firstChild);
|
|
3947
3947
|
else
|
|
3948
3948
|
De = P;
|
|
@@ -4215,14 +4215,14 @@ function xh({
|
|
|
4215
4215
|
striped: !0,
|
|
4216
4216
|
horizontalSpacing: "md",
|
|
4217
4217
|
verticalSpacing: "sm"
|
|
4218
|
-
}), g = le("DatagridTable", p, u), { data: y, info: h } = ie(), [v, w] =
|
|
4219
|
-
w((
|
|
4218
|
+
}), g = le("DatagridTable", p, u), { data: y, info: h } = ie(), [v, w] = q([]), [$, C] = q(!1), x = (O) => {
|
|
4219
|
+
w((M) => M.includes(O) ? M.filter((B) => B !== O) : [...M, O]);
|
|
4220
4220
|
}, _ = () => {
|
|
4221
|
-
w((O) => O.length === y.ids.length ? [] : y.ids.map((
|
|
4221
|
+
w((O) => O.length === y.ids.length ? [] : y.ids.map((M, B) => M));
|
|
4222
4222
|
};
|
|
4223
|
-
return
|
|
4223
|
+
return ee(() => {
|
|
4224
4224
|
C(v.length === y.result.length && v.length > 0), n && n(v), e == null || e.setSelectedIds(v.map((O) => O));
|
|
4225
|
-
}, [v]),
|
|
4225
|
+
}, [v]), ee(() => {
|
|
4226
4226
|
w([]), n && n([]);
|
|
4227
4227
|
}, [y]), /* @__PURE__ */ d(
|
|
4228
4228
|
zr,
|
|
@@ -4268,8 +4268,8 @@ const fc = Rn(({ counter: e, ...t }) => {
|
|
|
4268
4268
|
{ value: "10", label: "10" },
|
|
4269
4269
|
{ value: "25", label: "25" },
|
|
4270
4270
|
{ value: "50", label: "50" }
|
|
4271
|
-
], s = String(n.page_size), [l, c] =
|
|
4272
|
-
|
|
4271
|
+
], s = String(n.page_size), [l, c] = q(n.page);
|
|
4272
|
+
ee(() => {
|
|
4273
4273
|
c(n.page);
|
|
4274
4274
|
}, [n.page]);
|
|
4275
4275
|
const u = (p) => {
|
|
@@ -4371,10 +4371,10 @@ function hc({ form: e, name: t, label: r, comboboxProps: n, ...i }) {
|
|
|
4371
4371
|
const o = yf({
|
|
4372
4372
|
onDropdownClose: () => o.resetSelectedOption(),
|
|
4373
4373
|
onDropdownOpen: () => o.updateSelectedOptionIndex("active")
|
|
4374
|
-
}), [a, s] =
|
|
4374
|
+
}), [a, s] = q([]), [l, c] = q(""), u = (g) => {
|
|
4375
4375
|
l !== "" && (a.includes(l) || s((y) => [...y, l]), c(""));
|
|
4376
4376
|
}, f = (g) => s((y) => y.filter((h) => h !== g)), p = a.map((g) => /* @__PURE__ */ d(ya, { withRemoveButton: !0, onRemove: () => f(g), children: g }, g));
|
|
4377
|
-
return
|
|
4377
|
+
return ee(() => {
|
|
4378
4378
|
const g = e.getInputProps(t).value;
|
|
4379
4379
|
if (g)
|
|
4380
4380
|
try {
|
|
@@ -4382,7 +4382,7 @@ function hc({ form: e, name: t, label: r, comboboxProps: n, ...i }) {
|
|
|
4382
4382
|
} catch (y) {
|
|
4383
4383
|
console.error("Error parsing JSON:", y);
|
|
4384
4384
|
}
|
|
4385
|
-
}, []),
|
|
4385
|
+
}, []), ee(() => {
|
|
4386
4386
|
e.getInputProps(t).onChange(a);
|
|
4387
4387
|
}, [a]), /* @__PURE__ */ d(ml, { label: r, children: /* @__PURE__ */ k(Ht, { store: o, onOptionSubmit: u, ...n, children: [
|
|
4388
4388
|
/* @__PURE__ */ d(Ht.DropdownTarget, { children: /* @__PURE__ */ d(ba, { onClick: () => o.openDropdown(), children: /* @__PURE__ */ k(ya.Group, { children: [
|
|
@@ -4445,9 +4445,9 @@ function Ph({ onClose: e, ...t }) {
|
|
|
4445
4445
|
size: "sm",
|
|
4446
4446
|
c: "gray"
|
|
4447
4447
|
}, t);
|
|
4448
|
-
|
|
4448
|
+
ee(() => {
|
|
4449
4449
|
a.setValues({ filters: [] }), a.reset();
|
|
4450
|
-
}, [o]),
|
|
4450
|
+
}, [o]), ee(() => {
|
|
4451
4451
|
if (n.filters && n.filters.length) {
|
|
4452
4452
|
const f = n.filters.filter((p) => sr(p.opr)).map((p) => ({
|
|
4453
4453
|
...p,
|
|
@@ -4535,7 +4535,7 @@ function Ih(...e) {
|
|
|
4535
4535
|
bg: "transparent",
|
|
4536
4536
|
size: "sm",
|
|
4537
4537
|
c: "gray"
|
|
4538
|
-
}, e), [i, o] =
|
|
4538
|
+
}, e), [i, o] = q(!1);
|
|
4539
4539
|
return /* @__PURE__ */ k(rr, { opened: i, position: "bottom-end", onClose: () => o(!1), closeOnClickOutside: !1, children: [
|
|
4540
4540
|
/* @__PURE__ */ d(rr.Target, { children: /* @__PURE__ */ d(Pe, { opened: i ? !1 : null, label: "Filter", children: (t == null ? void 0 : t.filters.filter((a) => sr(a.opr)).length) != 0 ? /* @__PURE__ */ d(Dn, { zIndex: 20, size: 16, label: t == null ? void 0 : t.filters.length, children: /* @__PURE__ */ d(Re, { bg: n.bg, size: n.size, c: n.c, onClick: () => o(!0), children: /* @__PURE__ */ d(Ma, {}) }) }) : /* @__PURE__ */ d(Re, { bg: n.bg, size: n.size, c: n.c, onClick: () => o(!0), children: /* @__PURE__ */ d(Ma, {}) }) }) }),
|
|
4541
4541
|
/* @__PURE__ */ k(rr.Dropdown, { px: "xs", children: [
|
|
@@ -4552,7 +4552,7 @@ function Ih(...e) {
|
|
|
4552
4552
|
] });
|
|
4553
4553
|
}
|
|
4554
4554
|
function kh(...e) {
|
|
4555
|
-
const [t, r] =
|
|
4555
|
+
const [t, r] = q(!1), { download: n } = ie(), o = le("ActionIcon", {
|
|
4556
4556
|
bg: "transparent",
|
|
4557
4557
|
size: "sm",
|
|
4558
4558
|
c: "gray"
|
|
@@ -4602,15 +4602,15 @@ const gc = dt((e, t) => {
|
|
|
4602
4602
|
headerCustomizer: x = {},
|
|
4603
4603
|
bodyCustomizer: _ = {},
|
|
4604
4604
|
toolbarCustomizer: O = {},
|
|
4605
|
-
counter:
|
|
4606
|
-
bodySeparator:
|
|
4605
|
+
counter: M = !1,
|
|
4606
|
+
bodySeparator: B
|
|
4607
4607
|
// Add more props here
|
|
4608
4608
|
} = e;
|
|
4609
|
-
if (
|
|
4609
|
+
if (ee(() => {
|
|
4610
4610
|
!n && w && a({});
|
|
4611
4611
|
}, [n]), !o)
|
|
4612
4612
|
return;
|
|
4613
|
-
const
|
|
4613
|
+
const Y = $ === null;
|
|
4614
4614
|
return /* @__PURE__ */ k(
|
|
4615
4615
|
Ui,
|
|
4616
4616
|
{
|
|
@@ -4635,21 +4635,21 @@ const gc = dt((e, t) => {
|
|
|
4635
4635
|
loading: i,
|
|
4636
4636
|
onSelectCheckbox: h,
|
|
4637
4637
|
onClickEntry: v,
|
|
4638
|
-
hideCheckbox:
|
|
4638
|
+
hideCheckbox: Y,
|
|
4639
4639
|
hideDownload: y,
|
|
4640
4640
|
headerCustomizer: x,
|
|
4641
4641
|
bodyCustomizer: _,
|
|
4642
|
-
bodySeparator:
|
|
4642
|
+
bodySeparator: B
|
|
4643
4643
|
}
|
|
4644
4644
|
) : null,
|
|
4645
|
-
!p && n ? /* @__PURE__ */ d(fc, { counter:
|
|
4645
|
+
!p && n ? /* @__PURE__ */ d(fc, { counter: M }) : null,
|
|
4646
4646
|
g ? null : /* @__PURE__ */ d(ec, {})
|
|
4647
4647
|
]
|
|
4648
4648
|
}
|
|
4649
4649
|
);
|
|
4650
4650
|
});
|
|
4651
4651
|
gc.displayName = "DataGrid";
|
|
4652
|
-
function
|
|
4652
|
+
function E2({
|
|
4653
4653
|
children: e,
|
|
4654
4654
|
fetch: t = !0,
|
|
4655
4655
|
loading: r = /* @__PURE__ */ d(un, { children: /* @__PURE__ */ d(Mn, {}) }),
|
|
@@ -4658,7 +4658,7 @@ function EO({
|
|
|
4658
4658
|
fetchWrapperProps: o
|
|
4659
4659
|
}) {
|
|
4660
4660
|
const { streaming: a, loading: s } = ie(), { ref: l, inViewport: c } = cf(), u = J(() => Object.values(a.data).flat(), [a.data]), f = J(() => typeof e == "function" ? e(u) : e, [e, u]);
|
|
4661
|
-
return
|
|
4661
|
+
return ee(() => {
|
|
4662
4662
|
c && t && a.fetch();
|
|
4663
4663
|
}, [c]), /* @__PURE__ */ k(He, { children: [
|
|
4664
4664
|
f,
|
|
@@ -4864,7 +4864,7 @@ const xc = /* @__PURE__ */ xt(A0), O0 = (e, t, r, n, i, o, a) => e.map((s, l) =>
|
|
|
4864
4864
|
)
|
|
4865
4865
|
},
|
|
4866
4866
|
`${r}-${l}`
|
|
4867
|
-
)), $0 = ({ elements: e, schema: t, path: r, enabled: n, direction: i, renderers: o, cells: a }) => xc(e) ? null : /* @__PURE__ */ d(Te, { spacing: i === "row" ? 2 : 0, children: O0(e, t, r, n, i, o, a) }), Cc = Ye.memo($0),
|
|
4867
|
+
)), $0 = ({ elements: e, schema: t, path: r, enabled: n, direction: i, renderers: o, cells: a }) => xc(e) ? null : /* @__PURE__ */ d(Te, { spacing: i === "row" ? 2 : 0, children: O0(e, t, r, n, i, o, a) }), Cc = Ye.memo($0), x2 = (e) => function(r) {
|
|
4868
4868
|
const n = $l(), i = wf({ jsonforms: { ...n } });
|
|
4869
4869
|
return /* @__PURE__ */ d(e, { ...r, ajv: i });
|
|
4870
4870
|
};
|
|
@@ -4907,19 +4907,19 @@ function ty(e, t, r) {
|
|
|
4907
4907
|
throw new TypeError(X0);
|
|
4908
4908
|
t = ds(t) || 0, Z0(r) && (u = !!r.leading, f = "maxWait" in r, o = f ? Q0(ds(r.maxWait) || 0, t) : o, p = "trailing" in r ? !!r.trailing : p);
|
|
4909
4909
|
function g(O) {
|
|
4910
|
-
var
|
|
4911
|
-
return n = i = void 0, c = O, a = e.apply(
|
|
4910
|
+
var M = n, B = i;
|
|
4911
|
+
return n = i = void 0, c = O, a = e.apply(B, M), a;
|
|
4912
4912
|
}
|
|
4913
4913
|
function y(O) {
|
|
4914
4914
|
return c = O, s = setTimeout(w, t), u ? g(O) : a;
|
|
4915
4915
|
}
|
|
4916
4916
|
function h(O) {
|
|
4917
|
-
var
|
|
4918
|
-
return f ? ey(
|
|
4917
|
+
var M = O - l, B = O - c, Y = t - M;
|
|
4918
|
+
return f ? ey(Y, o - B) : Y;
|
|
4919
4919
|
}
|
|
4920
4920
|
function v(O) {
|
|
4921
|
-
var
|
|
4922
|
-
return l === void 0 ||
|
|
4921
|
+
var M = O - l, B = O - c;
|
|
4922
|
+
return l === void 0 || M >= t || M < 0 || f && B >= o;
|
|
4923
4923
|
}
|
|
4924
4924
|
function w() {
|
|
4925
4925
|
var O = Ci();
|
|
@@ -4937,8 +4937,8 @@ function ty(e, t, r) {
|
|
|
4937
4937
|
return s === void 0 ? a : $(Ci());
|
|
4938
4938
|
}
|
|
4939
4939
|
function _() {
|
|
4940
|
-
var O = Ci(),
|
|
4941
|
-
if (n = arguments, i = this, l = O,
|
|
4940
|
+
var O = Ci(), M = v(O);
|
|
4941
|
+
if (n = arguments, i = this, l = O, M) {
|
|
4942
4942
|
if (s === void 0)
|
|
4943
4943
|
return y(l);
|
|
4944
4944
|
if (f)
|
|
@@ -4950,8 +4950,8 @@ function ty(e, t, r) {
|
|
|
4950
4950
|
}
|
|
4951
4951
|
var ry = ty;
|
|
4952
4952
|
const ny = /* @__PURE__ */ xt(ry), iy = (e, t, r, n, i, o = 300) => {
|
|
4953
|
-
const [a, s] =
|
|
4954
|
-
|
|
4953
|
+
const [a, s] = q(r ?? t);
|
|
4954
|
+
ee(() => {
|
|
4955
4955
|
s(r ?? t);
|
|
4956
4956
|
}, [r]);
|
|
4957
4957
|
const l = oe(
|
|
@@ -6310,8 +6310,8 @@ function zE() {
|
|
|
6310
6310
|
}
|
|
6311
6311
|
}
|
|
6312
6312
|
}
|
|
6313
|
-
var _ = l, O = c,
|
|
6314
|
-
function
|
|
6313
|
+
var _ = l, O = c, M = s, B = a, Y = t, m = u, A = n, D = y, H = g, Z = r, fe = o, de = i, ge = f, xe = !1;
|
|
6314
|
+
function U(I) {
|
|
6315
6315
|
return xe || (xe = !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.")), E(I) || x(I) === l;
|
|
6316
6316
|
}
|
|
6317
6317
|
function E(I) {
|
|
@@ -6329,7 +6329,7 @@ function zE() {
|
|
|
6329
6329
|
function V(I) {
|
|
6330
6330
|
return x(I) === u;
|
|
6331
6331
|
}
|
|
6332
|
-
function
|
|
6332
|
+
function F(I) {
|
|
6333
6333
|
return x(I) === n;
|
|
6334
6334
|
}
|
|
6335
6335
|
function W(I) {
|
|
@@ -6350,7 +6350,7 @@ function zE() {
|
|
|
6350
6350
|
function Se(I) {
|
|
6351
6351
|
return x(I) === f;
|
|
6352
6352
|
}
|
|
6353
|
-
ne.AsyncMode = _, ne.ConcurrentMode = O, ne.ContextConsumer =
|
|
6353
|
+
ne.AsyncMode = _, ne.ConcurrentMode = O, ne.ContextConsumer = M, ne.ContextProvider = B, ne.Element = Y, ne.ForwardRef = m, ne.Fragment = A, ne.Lazy = D, ne.Memo = H, ne.Portal = Z, ne.Profiler = fe, ne.StrictMode = de, ne.Suspense = ge, ne.isAsyncMode = U, ne.isConcurrentMode = E, ne.isContextConsumer = T, ne.isContextProvider = z, ne.isElement = R, ne.isForwardRef = V, ne.isFragment = F, ne.isLazy = W, ne.isMemo = G, ne.isPortal = L, ne.isProfiler = X, ne.isStrictMode = Q, ne.isSuspense = Se, ne.isValidElementType = C, ne.typeOf = x;
|
|
6354
6354
|
}()), ne;
|
|
6355
6355
|
}
|
|
6356
6356
|
var Ns;
|
|
@@ -6507,9 +6507,9 @@ function VE() {
|
|
|
6507
6507
|
elementType: _(),
|
|
6508
6508
|
instanceOf: O,
|
|
6509
6509
|
node: m(),
|
|
6510
|
-
objectOf:
|
|
6511
|
-
oneOf:
|
|
6512
|
-
oneOfType:
|
|
6510
|
+
objectOf: B,
|
|
6511
|
+
oneOf: M,
|
|
6512
|
+
oneOfType: Y,
|
|
6513
6513
|
shape: D,
|
|
6514
6514
|
exact: H
|
|
6515
6515
|
};
|
|
@@ -6523,7 +6523,7 @@ function VE() {
|
|
|
6523
6523
|
function v(E) {
|
|
6524
6524
|
if (process.env.NODE_ENV !== "production")
|
|
6525
6525
|
var T = {}, z = 0;
|
|
6526
|
-
function R(
|
|
6526
|
+
function R(F, W, G, L, X, Q, Se) {
|
|
6527
6527
|
if (L = L || p, Q = Q || G, Se !== r) {
|
|
6528
6528
|
if (l) {
|
|
6529
6529
|
var I = new Error(
|
|
@@ -6538,18 +6538,18 @@ function VE() {
|
|
|
6538
6538
|
), T[Ue] = !0, z++);
|
|
6539
6539
|
}
|
|
6540
6540
|
}
|
|
6541
|
-
return W[G] == null ?
|
|
6541
|
+
return W[G] == null ? F ? W[G] === null ? new h("The " + X + " `" + Q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new h("The " + X + " `" + Q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : E(W, G, L, X, Q);
|
|
6542
6542
|
}
|
|
6543
6543
|
var V = R.bind(null, !1);
|
|
6544
6544
|
return V.isRequired = R.bind(null, !0), V;
|
|
6545
6545
|
}
|
|
6546
6546
|
function w(E) {
|
|
6547
|
-
function T(z, R, V,
|
|
6547
|
+
function T(z, R, V, F, W, G) {
|
|
6548
6548
|
var L = z[R], X = de(L);
|
|
6549
6549
|
if (X !== E) {
|
|
6550
6550
|
var Q = ge(L);
|
|
6551
6551
|
return new h(
|
|
6552
|
-
"Invalid " +
|
|
6552
|
+
"Invalid " + F + " `" + W + "` of type " + ("`" + Q + "` supplied to `" + V + "`, expected ") + ("`" + E + "`."),
|
|
6553
6553
|
{ expectedType: E }
|
|
6554
6554
|
);
|
|
6555
6555
|
}
|
|
@@ -6561,16 +6561,16 @@ function VE() {
|
|
|
6561
6561
|
return v(a);
|
|
6562
6562
|
}
|
|
6563
6563
|
function C(E) {
|
|
6564
|
-
function T(z, R, V,
|
|
6564
|
+
function T(z, R, V, F, W) {
|
|
6565
6565
|
if (typeof E != "function")
|
|
6566
6566
|
return new h("Property `" + W + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
|
|
6567
6567
|
var G = z[R];
|
|
6568
6568
|
if (!Array.isArray(G)) {
|
|
6569
6569
|
var L = de(G);
|
|
6570
|
-
return new h("Invalid " +
|
|
6570
|
+
return new h("Invalid " + F + " `" + W + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected an array."));
|
|
6571
6571
|
}
|
|
6572
6572
|
for (var X = 0; X < G.length; X++) {
|
|
6573
|
-
var Q = E(G, X, V,
|
|
6573
|
+
var Q = E(G, X, V, F, W + "[" + X + "]", r);
|
|
6574
6574
|
if (Q instanceof Error)
|
|
6575
6575
|
return Q;
|
|
6576
6576
|
}
|
|
@@ -6579,43 +6579,43 @@ function VE() {
|
|
|
6579
6579
|
return v(T);
|
|
6580
6580
|
}
|
|
6581
6581
|
function x() {
|
|
6582
|
-
function E(T, z, R, V,
|
|
6582
|
+
function E(T, z, R, V, F) {
|
|
6583
6583
|
var W = T[z];
|
|
6584
6584
|
if (!s(W)) {
|
|
6585
6585
|
var G = de(W);
|
|
6586
|
-
return new h("Invalid " + V + " `" +
|
|
6586
|
+
return new h("Invalid " + V + " `" + F + "` of type " + ("`" + G + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
6587
6587
|
}
|
|
6588
6588
|
return null;
|
|
6589
6589
|
}
|
|
6590
6590
|
return v(E);
|
|
6591
6591
|
}
|
|
6592
6592
|
function _() {
|
|
6593
|
-
function E(T, z, R, V,
|
|
6593
|
+
function E(T, z, R, V, F) {
|
|
6594
6594
|
var W = T[z];
|
|
6595
6595
|
if (!e.isValidElementType(W)) {
|
|
6596
6596
|
var G = de(W);
|
|
6597
|
-
return new h("Invalid " + V + " `" +
|
|
6597
|
+
return new h("Invalid " + V + " `" + F + "` of type " + ("`" + G + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
6598
6598
|
}
|
|
6599
6599
|
return null;
|
|
6600
6600
|
}
|
|
6601
6601
|
return v(E);
|
|
6602
6602
|
}
|
|
6603
6603
|
function O(E) {
|
|
6604
|
-
function T(z, R, V,
|
|
6604
|
+
function T(z, R, V, F, W) {
|
|
6605
6605
|
if (!(z[R] instanceof E)) {
|
|
6606
|
-
var G = E.name || p, L =
|
|
6607
|
-
return new h("Invalid " +
|
|
6606
|
+
var G = E.name || p, L = U(z[R]);
|
|
6607
|
+
return new h("Invalid " + F + " `" + W + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected ") + ("instance of `" + G + "`."));
|
|
6608
6608
|
}
|
|
6609
6609
|
return null;
|
|
6610
6610
|
}
|
|
6611
6611
|
return v(T);
|
|
6612
6612
|
}
|
|
6613
|
-
function
|
|
6613
|
+
function M(E) {
|
|
6614
6614
|
if (!Array.isArray(E))
|
|
6615
6615
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
6616
6616
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
6617
6617
|
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
6618
|
-
function T(z, R, V,
|
|
6618
|
+
function T(z, R, V, F, W) {
|
|
6619
6619
|
for (var G = z[R], L = 0; L < E.length; L++)
|
|
6620
6620
|
if (y(G, E[L]))
|
|
6621
6621
|
return null;
|
|
@@ -6623,20 +6623,20 @@ function VE() {
|
|
|
6623
6623
|
var Ue = ge(I);
|
|
6624
6624
|
return Ue === "symbol" ? String(I) : I;
|
|
6625
6625
|
});
|
|
6626
|
-
return new h("Invalid " +
|
|
6626
|
+
return new h("Invalid " + F + " `" + W + "` of value `" + String(G) + "` " + ("supplied to `" + V + "`, expected one of " + X + "."));
|
|
6627
6627
|
}
|
|
6628
6628
|
return v(T);
|
|
6629
6629
|
}
|
|
6630
|
-
function
|
|
6631
|
-
function T(z, R, V,
|
|
6630
|
+
function B(E) {
|
|
6631
|
+
function T(z, R, V, F, W) {
|
|
6632
6632
|
if (typeof E != "function")
|
|
6633
6633
|
return new h("Property `" + W + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
|
|
6634
6634
|
var G = z[R], L = de(G);
|
|
6635
6635
|
if (L !== "object")
|
|
6636
|
-
return new h("Invalid " +
|
|
6636
|
+
return new h("Invalid " + F + " `" + W + "` of type " + ("`" + L + "` supplied to `" + V + "`, expected an object."));
|
|
6637
6637
|
for (var X in G)
|
|
6638
6638
|
if (n(G, X)) {
|
|
6639
|
-
var Q = E(G, X, V,
|
|
6639
|
+
var Q = E(G, X, V, F, W + "." + X, r);
|
|
6640
6640
|
if (Q instanceof Error)
|
|
6641
6641
|
return Q;
|
|
6642
6642
|
}
|
|
@@ -6644,7 +6644,7 @@ function VE() {
|
|
|
6644
6644
|
}
|
|
6645
6645
|
return v(T);
|
|
6646
6646
|
}
|
|
6647
|
-
function
|
|
6647
|
+
function Y(E) {
|
|
6648
6648
|
if (!Array.isArray(E))
|
|
6649
6649
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
6650
6650
|
for (var T = 0; T < E.length; T++) {
|
|
@@ -6654,9 +6654,9 @@ function VE() {
|
|
|
6654
6654
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(z) + " at index " + T + "."
|
|
6655
6655
|
), a;
|
|
6656
6656
|
}
|
|
6657
|
-
function R(V,
|
|
6657
|
+
function R(V, F, W, G, L) {
|
|
6658
6658
|
for (var X = [], Q = 0; Q < E.length; Q++) {
|
|
6659
|
-
var Se = E[Q], I = Se(V,
|
|
6659
|
+
var Se = E[Q], I = Se(V, F, W, G, L, r);
|
|
6660
6660
|
if (I == null)
|
|
6661
6661
|
return null;
|
|
6662
6662
|
I.data && n(I.data, "expectedType") && X.push(I.data.expectedType);
|
|
@@ -6667,8 +6667,8 @@ function VE() {
|
|
|
6667
6667
|
return v(R);
|
|
6668
6668
|
}
|
|
6669
6669
|
function m() {
|
|
6670
|
-
function E(T, z, R, V,
|
|
6671
|
-
return Z(T[z]) ? null : new h("Invalid " + V + " `" +
|
|
6670
|
+
function E(T, z, R, V, F) {
|
|
6671
|
+
return Z(T[z]) ? null : new h("Invalid " + V + " `" + F + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
6672
6672
|
}
|
|
6673
6673
|
return v(E);
|
|
6674
6674
|
}
|
|
@@ -6678,15 +6678,15 @@ function VE() {
|
|
|
6678
6678
|
);
|
|
6679
6679
|
}
|
|
6680
6680
|
function D(E) {
|
|
6681
|
-
function T(z, R, V,
|
|
6681
|
+
function T(z, R, V, F, W) {
|
|
6682
6682
|
var G = z[R], L = de(G);
|
|
6683
6683
|
if (L !== "object")
|
|
6684
|
-
return new h("Invalid " +
|
|
6684
|
+
return new h("Invalid " + F + " `" + W + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
|
|
6685
6685
|
for (var X in E) {
|
|
6686
6686
|
var Q = E[X];
|
|
6687
6687
|
if (typeof Q != "function")
|
|
6688
|
-
return A(V,
|
|
6689
|
-
var Se = Q(G, X, V,
|
|
6688
|
+
return A(V, F, W, X, ge(Q));
|
|
6689
|
+
var Se = Q(G, X, V, F, W + "." + X, r);
|
|
6690
6690
|
if (Se)
|
|
6691
6691
|
return Se;
|
|
6692
6692
|
}
|
|
@@ -6695,21 +6695,21 @@ function VE() {
|
|
|
6695
6695
|
return v(T);
|
|
6696
6696
|
}
|
|
6697
6697
|
function H(E) {
|
|
6698
|
-
function T(z, R, V,
|
|
6698
|
+
function T(z, R, V, F, W) {
|
|
6699
6699
|
var G = z[R], L = de(G);
|
|
6700
6700
|
if (L !== "object")
|
|
6701
|
-
return new h("Invalid " +
|
|
6701
|
+
return new h("Invalid " + F + " `" + W + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
|
|
6702
6702
|
var X = t({}, z[R], E);
|
|
6703
6703
|
for (var Q in X) {
|
|
6704
6704
|
var Se = E[Q];
|
|
6705
6705
|
if (n(E, Q) && typeof Se != "function")
|
|
6706
|
-
return A(V,
|
|
6706
|
+
return A(V, F, W, Q, ge(Se));
|
|
6707
6707
|
if (!Se)
|
|
6708
6708
|
return new h(
|
|
6709
|
-
"Invalid " +
|
|
6709
|
+
"Invalid " + F + " `" + W + "` key `" + Q + "` supplied to `" + V + "`.\nBad object: " + JSON.stringify(z[R], null, " ") + `
|
|
6710
6710
|
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
6711
6711
|
);
|
|
6712
|
-
var I = Se(G, Q, V,
|
|
6712
|
+
var I = Se(G, Q, V, F, W + "." + Q, r);
|
|
6713
6713
|
if (I)
|
|
6714
6714
|
return I;
|
|
6715
6715
|
}
|
|
@@ -6783,7 +6783,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
6783
6783
|
return T;
|
|
6784
6784
|
}
|
|
6785
6785
|
}
|
|
6786
|
-
function
|
|
6786
|
+
function U(E) {
|
|
6787
6787
|
return !E.constructor || !E.constructor.name ? p : E.constructor.name;
|
|
6788
6788
|
}
|
|
6789
6789
|
return g.checkPropTypes = i, g.resetWarningCache = i.resetWarningCache, g.PropTypes = g, g;
|
|
@@ -6843,7 +6843,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
6843
6843
|
} else
|
|
6844
6844
|
ao.exports = WE()();
|
|
6845
6845
|
var YE = ao.exports;
|
|
6846
|
-
const
|
|
6846
|
+
const te = /* @__PURE__ */ xt(YE);
|
|
6847
6847
|
function St(e, ...t) {
|
|
6848
6848
|
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
6849
6849
|
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
@@ -6981,7 +6981,7 @@ function kr(e, t) {
|
|
|
6981
6981
|
// No need to clone deep, it's way faster.
|
|
6982
6982
|
}) : e;
|
|
6983
6983
|
}
|
|
6984
|
-
const At = process.env.NODE_ENV !== "production" ?
|
|
6984
|
+
const At = process.env.NODE_ENV !== "production" ? te.oneOfType([te.number, te.string, te.object, te.array]) : {};
|
|
6985
6985
|
function rx(e, t) {
|
|
6986
6986
|
if (!e.containerQueries)
|
|
6987
6987
|
return t;
|
|
@@ -8004,19 +8004,19 @@ var Su = function(t, r, n) {
|
|
|
8004
8004
|
var C = c && v.as || i, x = "", _ = [], O = v;
|
|
8005
8005
|
if (v.theme == null) {
|
|
8006
8006
|
O = {};
|
|
8007
|
-
for (var
|
|
8008
|
-
O[
|
|
8007
|
+
for (var M in v)
|
|
8008
|
+
O[M] = v[M];
|
|
8009
8009
|
O.theme = Le.useContext(zf);
|
|
8010
8010
|
}
|
|
8011
8011
|
typeof v.className == "string" ? x = iC(w.registered, _, v.className) : v.className != null && (x = v.className + " ");
|
|
8012
|
-
var
|
|
8013
|
-
x += w.key + "-" +
|
|
8014
|
-
var
|
|
8012
|
+
var B = wu(f.concat(_), w.registered, O);
|
|
8013
|
+
x += w.key + "-" + B.name, a !== void 0 && (x += " " + a);
|
|
8014
|
+
var Y = c && s === void 0 ? Zs(C) : l, m = {};
|
|
8015
8015
|
for (var A in v)
|
|
8016
|
-
c && A === "as" ||
|
|
8016
|
+
c && A === "as" || Y(A) && (m[A] = v[A]);
|
|
8017
8017
|
return m.className = x, $ && (m.ref = $), /* @__PURE__ */ Le.createElement(Le.Fragment, null, /* @__PURE__ */ Le.createElement(uC, {
|
|
8018
8018
|
cache: w,
|
|
8019
|
-
serialized:
|
|
8019
|
+
serialized: B,
|
|
8020
8020
|
isStringTag: typeof C == "string"
|
|
8021
8021
|
}), /* @__PURE__ */ Le.createElement(C, m));
|
|
8022
8022
|
});
|
|
@@ -8412,19 +8412,19 @@ function wC(e = {}) {
|
|
|
8412
8412
|
...y
|
|
8413
8413
|
}), C = (_) => {
|
|
8414
8414
|
if (typeof _ == "function" && _.__emotion_real !== _)
|
|
8415
|
-
return function(
|
|
8416
|
-
return gn(
|
|
8415
|
+
return function(M) {
|
|
8416
|
+
return gn(M, _);
|
|
8417
8417
|
};
|
|
8418
8418
|
if (yt(_)) {
|
|
8419
8419
|
const O = Cu(_);
|
|
8420
|
-
return O.variants ? function(
|
|
8421
|
-
return gn(
|
|
8420
|
+
return O.variants ? function(B) {
|
|
8421
|
+
return gn(B, O);
|
|
8422
8422
|
} : O.style;
|
|
8423
8423
|
}
|
|
8424
8424
|
return _;
|
|
8425
8425
|
}, x = (..._) => {
|
|
8426
|
-
const O = [],
|
|
8427
|
-
if (O.push(o), c && g &&
|
|
8426
|
+
const O = [], M = _.map(C), B = [];
|
|
8427
|
+
if (O.push(o), c && g && B.push(function(D) {
|
|
8428
8428
|
var de, ge;
|
|
8429
8429
|
const Z = (ge = (de = D.theme.components) == null ? void 0 : de[c]) == null ? void 0 : ge.styleOverrides;
|
|
8430
8430
|
if (!Z)
|
|
@@ -8433,16 +8433,16 @@ function wC(e = {}) {
|
|
|
8433
8433
|
for (const xe in Z)
|
|
8434
8434
|
fe[xe] = gn(D, Z[xe]);
|
|
8435
8435
|
return g(D, fe);
|
|
8436
|
-
}), c && !h &&
|
|
8436
|
+
}), c && !h && B.push(function(D) {
|
|
8437
8437
|
var fe, de;
|
|
8438
8438
|
const H = D.theme, Z = (de = (fe = H == null ? void 0 : H.components) == null ? void 0 : fe[c]) == null ? void 0 : de.variants;
|
|
8439
8439
|
return Z ? Au(D, Z) : null;
|
|
8440
|
-
}), v ||
|
|
8441
|
-
const A =
|
|
8440
|
+
}), v || B.push(lr), Array.isArray(M[0])) {
|
|
8441
|
+
const A = M.shift(), D = new Array(O.length).fill(""), H = new Array(B.length).fill("");
|
|
8442
8442
|
let Z;
|
|
8443
8443
|
Z = [...D, ...A, ...H], Z.raw = [...D, ...A.raw, ...H], O.unshift(Z);
|
|
8444
8444
|
}
|
|
8445
|
-
const
|
|
8445
|
+
const Y = [...O, ...M, ...B], m = $(...Y);
|
|
8446
8446
|
return s.muiName && (m.muiName = s.muiName), process.env.NODE_ENV !== "production" && (m.displayName = SC(c, u, s)), m;
|
|
8447
8447
|
};
|
|
8448
8448
|
return $.withConfig && (x.withConfig = $.withConfig), x;
|
|
@@ -8595,7 +8595,7 @@ function cn(e, t, r) {
|
|
|
8595
8595
|
}
|
|
8596
8596
|
}
|
|
8597
8597
|
const IC = /* @__PURE__ */ Le.createContext(void 0);
|
|
8598
|
-
process.env.NODE_ENV !== "production" && (
|
|
8598
|
+
process.env.NODE_ENV !== "production" && (te.node, te.object);
|
|
8599
8599
|
function kC(e) {
|
|
8600
8600
|
const {
|
|
8601
8601
|
theme: t,
|
|
@@ -8699,9 +8699,9 @@ function LC(e, t = {}) {
|
|
|
8699
8699
|
const {
|
|
8700
8700
|
vars: _,
|
|
8701
8701
|
css: O,
|
|
8702
|
-
varsWithDefaults:
|
|
8702
|
+
varsWithDefaults: M
|
|
8703
8703
|
} = Ni(x, t);
|
|
8704
|
-
p = Je(p,
|
|
8704
|
+
p = Je(p, M), g[C] = {
|
|
8705
8705
|
css: O,
|
|
8706
8706
|
vars: _
|
|
8707
8707
|
};
|
|
@@ -8717,12 +8717,12 @@ function LC(e, t = {}) {
|
|
|
8717
8717
|
};
|
|
8718
8718
|
}
|
|
8719
8719
|
function v(C, x) {
|
|
8720
|
-
var O,
|
|
8720
|
+
var O, M;
|
|
8721
8721
|
let _ = i;
|
|
8722
8722
|
if (i === "class" && (_ = ".%s"), i === "data" && (_ = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (_ = `[${i}="%s"]`), C) {
|
|
8723
8723
|
if (_ === "media")
|
|
8724
8724
|
return e.defaultColorScheme === C ? ":root" : {
|
|
8725
|
-
[`@media (prefers-color-scheme: ${((
|
|
8725
|
+
[`@media (prefers-color-scheme: ${((M = (O = o[C]) == null ? void 0 : O.palette) == null ? void 0 : M.mode) || C})`]: {
|
|
8726
8726
|
":root": x
|
|
8727
8727
|
}
|
|
8728
8728
|
};
|
|
@@ -8744,7 +8744,7 @@ function LC(e, t = {}) {
|
|
|
8744
8744
|
}), C;
|
|
8745
8745
|
},
|
|
8746
8746
|
generateStyleSheets: () => {
|
|
8747
|
-
var
|
|
8747
|
+
var B, Y;
|
|
8748
8748
|
const C = [], x = e.defaultColorScheme || "light";
|
|
8749
8749
|
function _(m, A) {
|
|
8750
8750
|
Object.keys(A).length && C.push(typeof m == "string" ? {
|
|
@@ -8758,12 +8758,12 @@ function LC(e, t = {}) {
|
|
|
8758
8758
|
}), u);
|
|
8759
8759
|
const {
|
|
8760
8760
|
[x]: O,
|
|
8761
|
-
...
|
|
8761
|
+
...M
|
|
8762
8762
|
} = g;
|
|
8763
8763
|
if (O) {
|
|
8764
8764
|
const {
|
|
8765
8765
|
css: m
|
|
8766
|
-
} = O, A = (
|
|
8766
|
+
} = O, A = (Y = (B = o[x]) == null ? void 0 : B.palette) == null ? void 0 : Y.mode, D = !n && A ? {
|
|
8767
8767
|
colorScheme: A,
|
|
8768
8768
|
...m
|
|
8769
8769
|
} : {
|
|
@@ -8773,7 +8773,7 @@ function LC(e, t = {}) {
|
|
|
8773
8773
|
...D
|
|
8774
8774
|
}), D);
|
|
8775
8775
|
}
|
|
8776
|
-
return Object.entries(
|
|
8776
|
+
return Object.entries(M).forEach(([m, {
|
|
8777
8777
|
css: A
|
|
8778
8778
|
}]) => {
|
|
8779
8779
|
var Z, fe;
|
|
@@ -9588,8 +9588,8 @@ function yA(e = {}, ...t) {
|
|
|
9588
9588
|
},
|
|
9589
9589
|
spacing: mA(c.spacing)
|
|
9590
9590
|
};
|
|
9591
|
-
Object.keys(x.colorSchemes).forEach((
|
|
9592
|
-
const m = x.colorSchemes[
|
|
9591
|
+
Object.keys(x.colorSchemes).forEach((Y) => {
|
|
9592
|
+
const m = x.colorSchemes[Y].palette, A = (D) => {
|
|
9593
9593
|
const H = D.split("-"), Z = H[1], fe = H[2];
|
|
9594
9594
|
return p(D, m[Z][fe]);
|
|
9595
9595
|
};
|
|
@@ -9607,7 +9607,7 @@ function yA(e = {}, ...t) {
|
|
|
9607
9607
|
const H = m[D];
|
|
9608
9608
|
D !== "tonalOffset" && H && typeof H == "object" && (H.main && S(m[D], "mainChannel", Pr(Ir(H.main))), H.light && S(m[D], "lightChannel", Pr(Ir(H.light))), H.dark && S(m[D], "darkChannel", Pr(Ir(H.dark))), H.contrastText && S(m[D], "contrastTextChannel", Pr(Ir(H.contrastText))), D === "text" && (gt(m[D], "primary"), gt(m[D], "secondary")), D === "action" && (H.active && gt(m[D], "active"), H.selected && gt(m[D], "selected")));
|
|
9609
9609
|
});
|
|
9610
|
-
}), x = t.reduce((
|
|
9610
|
+
}), x = t.reduce((Y, m) => Je(Y, m), x);
|
|
9611
9611
|
const _ = {
|
|
9612
9612
|
prefix: o,
|
|
9613
9613
|
disableCssColorScheme: i,
|
|
@@ -9615,12 +9615,12 @@ function yA(e = {}, ...t) {
|
|
|
9615
9615
|
getSelector: pA(x)
|
|
9616
9616
|
}, {
|
|
9617
9617
|
vars: O,
|
|
9618
|
-
generateThemeVars:
|
|
9619
|
-
generateStyleSheets:
|
|
9618
|
+
generateThemeVars: M,
|
|
9619
|
+
generateStyleSheets: B
|
|
9620
9620
|
} = LC(x, _);
|
|
9621
|
-
return x.vars = O, Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([
|
|
9622
|
-
x[
|
|
9623
|
-
}), x.generateThemeVars =
|
|
9621
|
+
return x.vars = O, Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([Y, m]) => {
|
|
9622
|
+
x[Y] = m;
|
|
9623
|
+
}), x.generateThemeVars = M, x.generateStyleSheets = B, x.generateSpacing = function() {
|
|
9624
9624
|
return Eu(c.spacing, Uo(this));
|
|
9625
9625
|
}, x.getColorSchemeSelector = jC(s), x.spacing = x.generateSpacing(), x.shouldSkipGeneratingVar = a, x.unstable_sxConfig = {
|
|
9626
9626
|
...si,
|
|
@@ -9695,7 +9695,7 @@ const wA = (e) => TA(e) && e !== "classes", SA = wC({
|
|
|
9695
9695
|
defaultTheme: vA,
|
|
9696
9696
|
rootShouldForwardProp: wA
|
|
9697
9697
|
}), EA = DC;
|
|
9698
|
-
process.env.NODE_ENV !== "production" && (
|
|
9698
|
+
process.env.NODE_ENV !== "production" && (te.node, te.object.isRequired);
|
|
9699
9699
|
function xA(e) {
|
|
9700
9700
|
return RC(e);
|
|
9701
9701
|
}
|
|
@@ -9865,15 +9865,15 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
9865
9865
|
/**
|
|
9866
9866
|
* Node passed into the SVG element.
|
|
9867
9867
|
*/
|
|
9868
|
-
children:
|
|
9868
|
+
children: te.node,
|
|
9869
9869
|
/**
|
|
9870
9870
|
* Override or extend the styles applied to the component.
|
|
9871
9871
|
*/
|
|
9872
|
-
classes:
|
|
9872
|
+
classes: te.object,
|
|
9873
9873
|
/**
|
|
9874
9874
|
* @ignore
|
|
9875
9875
|
*/
|
|
9876
|
-
className:
|
|
9876
|
+
className: te.string,
|
|
9877
9877
|
/**
|
|
9878
9878
|
* The color of the component.
|
|
9879
9879
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
@@ -9881,21 +9881,21 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
9881
9881
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
9882
9882
|
* @default 'inherit'
|
|
9883
9883
|
*/
|
|
9884
|
-
color:
|
|
9884
|
+
color: te.oneOfType([te.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), te.string]),
|
|
9885
9885
|
/**
|
|
9886
9886
|
* The component used for the root node.
|
|
9887
9887
|
* Either a string to use a HTML element or a component.
|
|
9888
9888
|
*/
|
|
9889
|
-
component:
|
|
9889
|
+
component: te.elementType,
|
|
9890
9890
|
/**
|
|
9891
9891
|
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
9892
9892
|
* @default 'medium'
|
|
9893
9893
|
*/
|
|
9894
|
-
fontSize:
|
|
9894
|
+
fontSize: te.oneOfType([te.oneOf(["inherit", "large", "medium", "small"]), te.string]),
|
|
9895
9895
|
/**
|
|
9896
9896
|
* Applies a color attribute to the SVG element.
|
|
9897
9897
|
*/
|
|
9898
|
-
htmlColor:
|
|
9898
|
+
htmlColor: te.string,
|
|
9899
9899
|
/**
|
|
9900
9900
|
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
9901
9901
|
* prop will be ignored.
|
|
@@ -9903,22 +9903,22 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
9903
9903
|
* `component`'s viewBox to the root node.
|
|
9904
9904
|
* @default false
|
|
9905
9905
|
*/
|
|
9906
|
-
inheritViewBox:
|
|
9906
|
+
inheritViewBox: te.bool,
|
|
9907
9907
|
/**
|
|
9908
9908
|
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
9909
9909
|
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
9910
9910
|
* If you are having issues with blurry icons you should investigate this prop.
|
|
9911
9911
|
*/
|
|
9912
|
-
shapeRendering:
|
|
9912
|
+
shapeRendering: te.string,
|
|
9913
9913
|
/**
|
|
9914
9914
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
9915
9915
|
*/
|
|
9916
|
-
sx:
|
|
9916
|
+
sx: te.oneOfType([te.arrayOf(te.oneOfType([te.func, te.object, te.bool])), te.func, te.object]),
|
|
9917
9917
|
/**
|
|
9918
9918
|
* Provides a human-readable title for the element that contains it.
|
|
9919
9919
|
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
9920
9920
|
*/
|
|
9921
|
-
titleAccess:
|
|
9921
|
+
titleAccess: te.string,
|
|
9922
9922
|
/**
|
|
9923
9923
|
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
9924
9924
|
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
@@ -9927,7 +9927,7 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
9927
9927
|
* to bottom right (50,20) and each unit will be worth 10px.
|
|
9928
9928
|
* @default '0 0 24 24'
|
|
9929
9929
|
*/
|
|
9930
|
-
viewBox:
|
|
9930
|
+
viewBox: te.string
|
|
9931
9931
|
});
|
|
9932
9932
|
Pn.muiName = "SvgIcon";
|
|
9933
9933
|
function qo(e, t) {
|
|
@@ -10262,7 +10262,7 @@ const WA = Ye.memo(function({
|
|
|
10262
10262
|
] })
|
|
10263
10263
|
] });
|
|
10264
10264
|
}), HA = (e) => {
|
|
10265
|
-
const [t, r] =
|
|
10265
|
+
const [t, r] = q(!1), [n, i] = q(void 0), [o, a] = q(void 0), { removeItems: s, visible: l } = e, c = oe(
|
|
10266
10266
|
(g, y) => {
|
|
10267
10267
|
r(!0), i(g), a(y);
|
|
10268
10268
|
},
|
|
@@ -10348,7 +10348,7 @@ const WA = Ye.memo(function({
|
|
|
10348
10348
|
...c
|
|
10349
10349
|
}
|
|
10350
10350
|
);
|
|
10351
|
-
},
|
|
10351
|
+
}, eO = Ee(5, xl), tO = Dt(QA), rO = (e) => {
|
|
10352
10352
|
const { description: t, errors: r, data: n, handleChange: i, path: o, label: a, required: s, enabled: l } = e, c = le(o, {}, {});
|
|
10353
10353
|
return Object.keys(c).forEach((u) => {
|
|
10354
10354
|
typeof c[u] == "function" && (c[u] = c[u](n));
|
|
@@ -10371,7 +10371,7 @@ const WA = Ye.memo(function({
|
|
|
10371
10371
|
...c
|
|
10372
10372
|
}
|
|
10373
10373
|
);
|
|
10374
|
-
},
|
|
10374
|
+
}, nO = Ee(5, Cl), iO = Dt(rO), oO = (e) => /* @__PURE__ */ d(Gn, { ...e }), aO = Ee(3, Tl), sO = Dt(oO), lO = (e) => /* @__PURE__ */ d(Gn, { ...e }), cO = Ee(3, wl), uO = Dt(lO), fO = (e) => /* @__PURE__ */ d(Vc, { ...e }), dO = Ee(3, Sl), pO = Dt(fO), hO = (e) => /* @__PURE__ */ d(Wc, { ...e }), mO = Ee(3, El), gO = Dt(hO), yO = ({ data: e, options: t, handleChange: r, path: n, ...i }) => {
|
|
10375
10375
|
const { description: o, errors: a, label: s, required: l, enabled: c } = i, u = le(n, {}, {});
|
|
10376
10376
|
return Object.keys(u).forEach((f) => {
|
|
10377
10377
|
typeof u[f] == "function" && (u[f] = u[f](e));
|
|
@@ -10392,10 +10392,10 @@ const WA = Ye.memo(function({
|
|
|
10392
10392
|
...u
|
|
10393
10393
|
}
|
|
10394
10394
|
);
|
|
10395
|
-
},
|
|
10395
|
+
}, bO = Ee(5, Al), vO = Pl(Il(Ye.memo(yO)), !1), _O = (e) => {
|
|
10396
10396
|
const { text: t, visible: r } = e;
|
|
10397
10397
|
return r ? /* @__PURE__ */ d(bf, { fw: "bold", size: "xl", children: t }) : null;
|
|
10398
|
-
},
|
|
10398
|
+
}, TO = Ee(3, Df), wO = Lf(_O), SO = Ee(5, yo("HorizontalLayout")), EO = ({ uischema: e, renderers: t, cells: r, schema: n, path: i, enabled: o }) => {
|
|
10399
10399
|
const s = {
|
|
10400
10400
|
elements: e.elements,
|
|
10401
10401
|
schema: n,
|
|
@@ -10404,7 +10404,7 @@ const WA = Ye.memo(function({
|
|
|
10404
10404
|
direction: "row"
|
|
10405
10405
|
};
|
|
10406
10406
|
return /* @__PURE__ */ d(Cc, { ...s, renderers: t, cells: r });
|
|
10407
|
-
},
|
|
10407
|
+
}, xO = kl(EO), CO = Ee(5, yo("VerticalLayout")), AO = ({ uischema: e, schema: t, path: r, enabled: n, renderers: i, cells: o }) => {
|
|
10408
10408
|
const s = {
|
|
10409
10409
|
elements: e.elements,
|
|
10410
10410
|
schema: t,
|
|
@@ -10413,24 +10413,24 @@ const WA = Ye.memo(function({
|
|
|
10413
10413
|
direction: "column"
|
|
10414
10414
|
};
|
|
10415
10415
|
return /* @__PURE__ */ d(Cc, { ...s, renderers: i, cells: o });
|
|
10416
|
-
},
|
|
10416
|
+
}, OO = kl(AO), C2 = [
|
|
10417
10417
|
// Controls
|
|
10418
|
-
{ tester:
|
|
10419
|
-
{ tester:
|
|
10420
|
-
{ tester:
|
|
10421
|
-
{ tester:
|
|
10422
|
-
{ tester:
|
|
10423
|
-
{ tester:
|
|
10424
|
-
{ tester:
|
|
10418
|
+
{ tester: eO, renderer: tO },
|
|
10419
|
+
{ tester: nO, renderer: iO },
|
|
10420
|
+
{ tester: aO, renderer: sO },
|
|
10421
|
+
{ tester: cO, renderer: uO },
|
|
10422
|
+
{ tester: dO, renderer: pO },
|
|
10423
|
+
{ tester: mO, renderer: gO },
|
|
10424
|
+
{ tester: bO, renderer: vO },
|
|
10425
10425
|
// Complex
|
|
10426
10426
|
{ tester: GA, renderer: YA },
|
|
10427
10427
|
{ tester: ZA, renderer: XA },
|
|
10428
10428
|
// Layouts
|
|
10429
|
-
{ tester:
|
|
10430
|
-
{ tester:
|
|
10429
|
+
{ tester: SO, renderer: xO },
|
|
10430
|
+
{ tester: CO, renderer: OO },
|
|
10431
10431
|
// Labels
|
|
10432
|
-
{ tester:
|
|
10433
|
-
],
|
|
10432
|
+
{ tester: TO, renderer: wO }
|
|
10433
|
+
], A2 = [
|
|
10434
10434
|
{ tester: V_, cell: W_ },
|
|
10435
10435
|
{ tester: N_, cell: L_ },
|
|
10436
10436
|
{ tester: z_, cell: B_ },
|
|
@@ -10439,28 +10439,28 @@ const WA = Ye.memo(function({
|
|
|
10439
10439
|
{ tester: X_, cell: Q_ },
|
|
10440
10440
|
{ tester: tT, cell: rT }
|
|
10441
10441
|
];
|
|
10442
|
-
function $
|
|
10442
|
+
function $O(e, t) {
|
|
10443
10443
|
const r = oe(
|
|
10444
10444
|
({ row: n }) => /* @__PURE__ */ d(ft, { fallback: /* @__PURE__ */ d(nc, { id: n.original.id }), functionProps: [n.original.id], children: t }),
|
|
10445
10445
|
[t]
|
|
10446
10446
|
);
|
|
10447
10447
|
return { enableEditing: !e, editDisplayMode: "modal", renderRowActions: r };
|
|
10448
10448
|
}
|
|
10449
|
-
function
|
|
10449
|
+
function PO(e, t) {
|
|
10450
10450
|
return { enableRowSelection: !!e || !!t };
|
|
10451
10451
|
}
|
|
10452
|
-
function
|
|
10452
|
+
function IO(e) {
|
|
10453
10453
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
10454
10454
|
}
|
|
10455
10455
|
const Ko = (...e) => {
|
|
10456
10456
|
const t = {};
|
|
10457
10457
|
return e.forEach((r) => {
|
|
10458
10458
|
r && Object.keys(r).forEach((n) => {
|
|
10459
|
-
|
|
10459
|
+
IO(r[n]) && n !== "ref" && t[n] ? t[n] = Ko(t[n], r[n]) : t[n] = r[n];
|
|
10460
10460
|
});
|
|
10461
10461
|
}), t;
|
|
10462
|
-
}, Rr = (e = {}, ...t) => t.reduce((r, n) => Ko(r, e[n]), {}),
|
|
10463
|
-
function
|
|
10462
|
+
}, Rr = (e = {}, ...t) => t.reduce((r, n) => Ko(r, e[n]), {}), kO = (e, t) => e === void 0 ? t : e;
|
|
10463
|
+
function RO({ col: e, colFilter: t, onClick: r, ...n }) {
|
|
10464
10464
|
return /* @__PURE__ */ k(rt, { shadow: "md", width: "target", ...n, children: [
|
|
10465
10465
|
/* @__PURE__ */ d(rt.Target, { children: /* @__PURE__ */ d(bt, { children: "Add filter" }) }),
|
|
10466
10466
|
/* @__PURE__ */ d(rt.Dropdown, { children: t.filters.filter((i) => sr(i.operator)).map((i) => /* @__PURE__ */ d(
|
|
@@ -10473,7 +10473,7 @@ function R2({ col: e, colFilter: t, onClick: r, ...n }) {
|
|
|
10473
10473
|
)) })
|
|
10474
10474
|
] });
|
|
10475
10475
|
}
|
|
10476
|
-
function
|
|
10476
|
+
function DO({ col: e, colFilter: t, filterNameMap: r }) {
|
|
10477
10477
|
const { queryParams: n, setQueryParams: i } = ie(), o = Fn({
|
|
10478
10478
|
initialValues: {
|
|
10479
10479
|
filters: (n == null ? void 0 : n.filters) || []
|
|
@@ -10519,7 +10519,7 @@ function D2({ col: e, colFilter: t, filterNameMap: r }) {
|
|
|
10519
10519
|
return /* @__PURE__ */ k(Te, { w: "100%", gap: "md", gutter: "xs", children: [
|
|
10520
10520
|
l.length ? l : /* @__PURE__ */ d(Te.Col, { span: 12, children: /* @__PURE__ */ d(ve, { align: "center", c: "gray", style: { fontStyle: "italic" }, children: "No filters" }) }),
|
|
10521
10521
|
/* @__PURE__ */ d(Te.Col, { span: 12, children: /* @__PURE__ */ d(wt, { children: /* @__PURE__ */ d(
|
|
10522
|
-
|
|
10522
|
+
RO,
|
|
10523
10523
|
{
|
|
10524
10524
|
col: e,
|
|
10525
10525
|
colFilter: t || { filters: [] },
|
|
@@ -10529,16 +10529,16 @@ function D2({ col: e, colFilter: t, filterNameMap: r }) {
|
|
|
10529
10529
|
) }) })
|
|
10530
10530
|
] });
|
|
10531
10531
|
}
|
|
10532
|
-
const
|
|
10533
|
-
root:
|
|
10534
|
-
label:
|
|
10535
|
-
description:
|
|
10532
|
+
const MO = "_root_1navk_1", FO = "_label_1navk_21", NO = "_description_1navk_29", LO = {
|
|
10533
|
+
root: MO,
|
|
10534
|
+
label: FO,
|
|
10535
|
+
description: NO
|
|
10536
10536
|
};
|
|
10537
|
-
function
|
|
10537
|
+
function jO({ filterNameMap: e, col: t, opr: r, table: n }) {
|
|
10538
10538
|
return Object.entries(e).filter(([i]) => i.startsWith(fr)).map(([i, o]) => /* @__PURE__ */ d(
|
|
10539
10539
|
or.Card,
|
|
10540
10540
|
{
|
|
10541
|
-
className:
|
|
10541
|
+
className: LO.root,
|
|
10542
10542
|
radius: "sm",
|
|
10543
10543
|
checked: i === r,
|
|
10544
10544
|
onClick: () => n.setColumnFilterFns((a) => ({ ...a, [t]: i })),
|
|
@@ -10550,7 +10550,7 @@ function j2({ filterNameMap: e, col: t, opr: r, table: n }) {
|
|
|
10550
10550
|
i
|
|
10551
10551
|
));
|
|
10552
10552
|
}
|
|
10553
|
-
function
|
|
10553
|
+
function zO({ mode: e, setMode: t, close: r, col: n, colFilter: i, opr: o, table: a, filterNameMap: s }) {
|
|
10554
10554
|
return /* @__PURE__ */ k(wt, { gap: "sm", children: [
|
|
10555
10555
|
/* @__PURE__ */ k(Ge, { gap: 0, justify: "space-between", align: "center", children: [
|
|
10556
10556
|
/* @__PURE__ */ d(ve, { children: "Filter Menu" }),
|
|
@@ -10565,16 +10565,16 @@ function z2({ mode: e, setMode: t, close: r, col: n, colFilter: i, opr: o, table
|
|
|
10565
10565
|
" Filters"
|
|
10566
10566
|
] }),
|
|
10567
10567
|
/* @__PURE__ */ k(wt, { gap: "0.25rem", children: [
|
|
10568
|
-
e === "Basic" && /* @__PURE__ */ d(
|
|
10569
|
-
e === "Advanced" && /* @__PURE__ */ d(
|
|
10568
|
+
e === "Basic" && /* @__PURE__ */ d(jO, { filterNameMap: s, col: n, opr: o, table: a }),
|
|
10569
|
+
e === "Advanced" && /* @__PURE__ */ d(DO, { col: n, colFilter: i, filterNameMap: s })
|
|
10570
10570
|
] })
|
|
10571
10571
|
] });
|
|
10572
10572
|
}
|
|
10573
10573
|
const Xt = (e) => e != null && e !== "", Nu = dt(({ clearIcon: e, ...t }, r) => {
|
|
10574
|
-
const { value: n, onChange: i, leftInputProps: o, rightInputProps: a, groupProps: s, ...l } = t, [c, u] =
|
|
10575
|
-
|
|
10574
|
+
const { value: n, onChange: i, leftInputProps: o, rightInputProps: a, groupProps: s, ...l } = t, [c, u] = q([null, null]);
|
|
10575
|
+
ee(() => {
|
|
10576
10576
|
n || u([null, null]);
|
|
10577
|
-
}, [n]),
|
|
10577
|
+
}, [n]), ee(() => {
|
|
10578
10578
|
const v = JSON.stringify(c);
|
|
10579
10579
|
let w = null;
|
|
10580
10580
|
return c.every(Xt) && v !== n ? w = setTimeout(() => {
|
|
@@ -10621,10 +10621,10 @@ const Xt = (e) => e != null && e !== "", Nu = dt(({ clearIcon: e, ...t }, r) =>
|
|
|
10621
10621
|
});
|
|
10622
10622
|
Nu.displayName = "BasicHeaderBetweenInput";
|
|
10623
10623
|
const Qt = (e) => e, Lu = dt(({ clearIcon: e, ...t }, r) => {
|
|
10624
|
-
const { value: n, onChange: i, leftInputProps: o, rightInputProps: a, groupProps: s, ...l } = t, [c, u] =
|
|
10625
|
-
|
|
10624
|
+
const { value: n, onChange: i, leftInputProps: o, rightInputProps: a, groupProps: s, ...l } = t, [c, u] = q([null, null]);
|
|
10625
|
+
ee(() => {
|
|
10626
10626
|
n || u([null, null]);
|
|
10627
|
-
}, [n]),
|
|
10627
|
+
}, [n]), ee(() => {
|
|
10628
10628
|
const v = JSON.stringify(c);
|
|
10629
10629
|
let w = null;
|
|
10630
10630
|
return c.every(Qt) && v !== n ? w = setTimeout(() => {
|
|
@@ -10686,7 +10686,7 @@ const ji = {
|
|
|
10686
10686
|
Bu.displayName = "FilterIconWrapper";
|
|
10687
10687
|
const Uu = dt(({ indicator: e, children: t }, r) => e ? /* @__PURE__ */ d(Dn, { zIndex: 20, size: 16, label: e, children: Dr(t, { ref: r }) }) : Dr(t, { ref: r }));
|
|
10688
10688
|
Uu.displayName = "FilterIndicatorWrapper";
|
|
10689
|
-
const
|
|
10689
|
+
const BO = (e, t) => {
|
|
10690
10690
|
var n, i, o;
|
|
10691
10691
|
const r = (o = (i = (n = e == null ? void 0 : e.filters) == null ? void 0 : n[t]) == null ? void 0 : i.schema) == null ? void 0 : o.type;
|
|
10692
10692
|
if (!r)
|
|
@@ -10702,56 +10702,58 @@ const B2 = (e, t) => {
|
|
|
10702
10702
|
return Za;
|
|
10703
10703
|
}
|
|
10704
10704
|
};
|
|
10705
|
-
function
|
|
10706
|
-
var ge, xe,
|
|
10705
|
+
function UO({ headerConfig: e, column: t, table: r }) {
|
|
10706
|
+
var ge, xe, U, E;
|
|
10707
10707
|
const { info: n, data: i, queryParams: o, setQueryParams: a } = ie(), {
|
|
10708
10708
|
filterComponent: s,
|
|
10709
10709
|
filterProps: l,
|
|
10710
10710
|
filterModeDescription: c,
|
|
10711
10711
|
filterMenu: u,
|
|
10712
|
-
defaultOpr: f =
|
|
10712
|
+
defaultOpr: f = BO(n, t.id),
|
|
10713
10713
|
configurationMode: p = "basic",
|
|
10714
10714
|
// Deprecated props
|
|
10715
10715
|
filterAdvancedFilters: g
|
|
10716
10716
|
} = e;
|
|
10717
|
-
|
|
10718
|
-
|
|
10717
|
+
ee(() => {
|
|
10718
|
+
process.env.NODE_ENV === "development" && g !== void 0 && console.warn("filterAdvancedFilters is deprecated, please use filterMenu instead");
|
|
10719
|
+
}, []);
|
|
10720
|
+
const [y, h] = q("Basic"), [v, { close: w, toggle: $ }] = uf(), C = ((ge = r.getState().columnFilterFns) == null ? void 0 : ge[t.id]) || f, x = J(() => C, [C]), _ = Tf({ initialValue: "" }), O = J(() => (n == null ? void 0 : n.filters[t.id]) || {}, [t.id, n == null ? void 0 : n.filters]), M = J(
|
|
10719
10721
|
() => {
|
|
10720
10722
|
var T;
|
|
10721
10723
|
return ((T = O == null ? void 0 : O.filters) == null ? void 0 : T.reduce((z, R) => ({ ...z, [R.operator]: R.name }), {})) || {};
|
|
10722
10724
|
},
|
|
10723
10725
|
[O == null ? void 0 : O.filters]
|
|
10724
|
-
),
|
|
10726
|
+
), B = J(
|
|
10725
10727
|
() => (o == null ? void 0 : o.filters.filter((T) => T.col === t.id && sr(T.opr)).map((T) => ({ ...T }))) || [],
|
|
10726
10728
|
[o, t.id]
|
|
10727
|
-
),
|
|
10729
|
+
), Y = J(
|
|
10728
10730
|
() => o == null ? void 0 : o.filters.find((T) => T.col === t.id && T.opr === x),
|
|
10729
10731
|
[t.id, x, o == null ? void 0 : o.filters]
|
|
10730
10732
|
), [m] = po(_.getInputProps().value, It), A = ff(), D = oe(() => {
|
|
10731
10733
|
_.reset(), t.setFilterValue(void 0);
|
|
10732
10734
|
}, []);
|
|
10733
|
-
|
|
10735
|
+
ee(() => {
|
|
10734
10736
|
A && t.setFilterValue(m ?? void 0);
|
|
10735
|
-
}, [m]),
|
|
10737
|
+
}, [m]), ee(() => {
|
|
10736
10738
|
if (!A)
|
|
10737
10739
|
return;
|
|
10738
10740
|
const T = t.getFilterValue();
|
|
10739
10741
|
T === void 0 ? D() : _.getInputProps().onChange(T || "");
|
|
10740
|
-
}, [t.getFilterValue()]),
|
|
10741
|
-
A && (
|
|
10742
|
-
}, [
|
|
10742
|
+
}, [t.getFilterValue()]), ee(() => {
|
|
10743
|
+
A && (Y || D());
|
|
10744
|
+
}, [Y]), ir(() => {
|
|
10743
10745
|
_.reset();
|
|
10744
10746
|
}, [x]), ir(() => {
|
|
10745
10747
|
let T = !1;
|
|
10746
|
-
const z = o == null ? void 0 : o.filters.map((
|
|
10747
|
-
if (
|
|
10748
|
-
if (
|
|
10748
|
+
const z = o == null ? void 0 : o.filters.map((F) => {
|
|
10749
|
+
if (F.opr.startsWith(fr) && F.col === t.id) {
|
|
10750
|
+
if (F.opr === x)
|
|
10749
10751
|
T = !0;
|
|
10750
10752
|
else
|
|
10751
10753
|
return null;
|
|
10752
|
-
return m ? { ...
|
|
10754
|
+
return m ? { ...F, value: m } : null;
|
|
10753
10755
|
}
|
|
10754
|
-
return
|
|
10756
|
+
return F;
|
|
10755
10757
|
}).filter(Boolean);
|
|
10756
10758
|
!T && m && z.push({ col: t.id, opr: x, value: m });
|
|
10757
10759
|
const R = JSON.stringify(z), V = JSON.stringify(o.filters);
|
|
@@ -10762,7 +10764,7 @@ function U2({ headerConfig: e, column: t, table: r }) {
|
|
|
10762
10764
|
const T = { variant: "subtle" };
|
|
10763
10765
|
return !((R = O == null ? void 0 : O.filters) != null && R.length) && (T.disabled = !0, T.c = "gray"), T;
|
|
10764
10766
|
}, [O == null ? void 0 : O.filters]), Z = J(
|
|
10765
|
-
() =>
|
|
10767
|
+
() => kO(
|
|
10766
10768
|
p === "basic" ? s : s == null ? void 0 : s[x],
|
|
10767
10769
|
ji == null ? void 0 : ji[x]
|
|
10768
10770
|
),
|
|
@@ -10796,7 +10798,7 @@ function U2({ headerConfig: e, column: t, table: r }) {
|
|
|
10796
10798
|
component: Z,
|
|
10797
10799
|
field: _,
|
|
10798
10800
|
clearIcon: _.isDirty() && /* @__PURE__ */ d(Re, { ...fe, children: /* @__PURE__ */ d(Ap, {}) }),
|
|
10799
|
-
disabled: !
|
|
10801
|
+
disabled: !M[x],
|
|
10800
10802
|
placeholder: `Filter by ${((xe = i == null ? void 0 : i.label_columns) == null ? void 0 : xe[t.id]) || t.id}`,
|
|
10801
10803
|
style: { fontWeight: "normal" },
|
|
10802
10804
|
w: "100%",
|
|
@@ -10814,23 +10816,23 @@ function U2({ headerConfig: e, column: t, table: r }) {
|
|
|
10814
10816
|
Bu,
|
|
10815
10817
|
{
|
|
10816
10818
|
label: "Filter Menu",
|
|
10817
|
-
disabled: !((
|
|
10819
|
+
disabled: !((U = O == null ? void 0 : O.filters) != null && U.length),
|
|
10818
10820
|
position: "bottom-start",
|
|
10819
10821
|
withArrow: !0,
|
|
10820
10822
|
arrowPosition: "side",
|
|
10821
|
-
children: /* @__PURE__ */ d(Uu, { indicator:
|
|
10823
|
+
children: /* @__PURE__ */ d(Uu, { indicator: B.length, children: /* @__PURE__ */ d(Re, { ...H, onClick: $, children: /* @__PURE__ */ d(Tp, {}) }) })
|
|
10822
10824
|
}
|
|
10823
10825
|
),
|
|
10824
10826
|
functionProps: [
|
|
10825
10827
|
{
|
|
10826
10828
|
label: "Filter Menu",
|
|
10827
10829
|
disabled: !((E = O == null ? void 0 : O.filters) != null && E.length),
|
|
10828
|
-
indicator:
|
|
10830
|
+
indicator: B.length,
|
|
10829
10831
|
aiProps: H,
|
|
10830
10832
|
onClick: $
|
|
10831
10833
|
}
|
|
10832
10834
|
],
|
|
10833
|
-
children: u
|
|
10835
|
+
children: u === void 0 ? g : u
|
|
10834
10836
|
}
|
|
10835
10837
|
)
|
|
10836
10838
|
] }),
|
|
@@ -10839,22 +10841,22 @@ function U2({ headerConfig: e, column: t, table: r }) {
|
|
|
10839
10841
|
{
|
|
10840
10842
|
fallback: /* @__PURE__ */ k(vf.Description, { size: "xs", fw: "normal", children: [
|
|
10841
10843
|
"Filter Mode: ",
|
|
10842
|
-
|
|
10844
|
+
M == null ? void 0 : M[x]
|
|
10843
10845
|
] }),
|
|
10844
|
-
functionProps: [
|
|
10846
|
+
functionProps: [M == null ? void 0 : M[x]],
|
|
10845
10847
|
children: c
|
|
10846
10848
|
}
|
|
10847
10849
|
)
|
|
10848
10850
|
] }) }),
|
|
10849
10851
|
/* @__PURE__ */ d(rr.Dropdown, { children: /* @__PURE__ */ d(
|
|
10850
|
-
|
|
10852
|
+
zO,
|
|
10851
10853
|
{
|
|
10852
10854
|
mode: y,
|
|
10853
10855
|
setMode: h,
|
|
10854
10856
|
close: w,
|
|
10855
10857
|
col: t.id,
|
|
10856
10858
|
colFilter: O,
|
|
10857
|
-
filterNameMap:
|
|
10859
|
+
filterNameMap: M,
|
|
10858
10860
|
opr: x,
|
|
10859
10861
|
table: r
|
|
10860
10862
|
}
|
|
@@ -10863,7 +10865,7 @@ function U2({ headerConfig: e, column: t, table: r }) {
|
|
|
10863
10865
|
}
|
|
10864
10866
|
);
|
|
10865
10867
|
}
|
|
10866
|
-
function
|
|
10868
|
+
function VO({ highlight: e, truncate: t, children: r }) {
|
|
10867
10869
|
return Array.isArray(r) ? r.map(
|
|
10868
10870
|
(n, i) => {
|
|
10869
10871
|
var o;
|
|
@@ -10871,7 +10873,7 @@ function V2({ highlight: e, truncate: t, children: r }) {
|
|
|
10871
10873
|
}
|
|
10872
10874
|
) : t != null && t.truncated ? /* @__PURE__ */ d(Pe, { label: t.original, children: /* @__PURE__ */ d(en, { highlight: e, children: t.truncated }) }) : /* @__PURE__ */ d(en, { highlight: e, children: r });
|
|
10873
10875
|
}
|
|
10874
|
-
function
|
|
10876
|
+
function WO(e, t, r, n) {
|
|
10875
10877
|
const { data: i, specialKey: o } = ie();
|
|
10876
10878
|
return { columns: J(
|
|
10877
10879
|
() => (i == null ? void 0 : i.list_columns.map((s) => {
|
|
@@ -10880,7 +10882,7 @@ function W2(e, t, r, n) {
|
|
|
10880
10882
|
accessorKey: s,
|
|
10881
10883
|
header: s.split("_").map(df).join(" "),
|
|
10882
10884
|
Header: /* @__PURE__ */ d(ft, { fallback: (l = i == null ? void 0 : i.label_columns) == null ? void 0 : l[s], functionProps: [s], children: (c = Rr(t, o.all, s)) == null ? void 0 : c.component }),
|
|
10883
|
-
Filter: (u) => /* @__PURE__ */ d(
|
|
10885
|
+
Filter: (u) => /* @__PURE__ */ d(UO, { headerConfig: Rr(t, o.all, s), ...u }),
|
|
10884
10886
|
enableSorting: (i == null ? void 0 : i.order_columns.includes(s)) || (i == null ? void 0 : i.order_columns.includes(`${s}.id`)),
|
|
10885
10887
|
Cell: ({ cell: u, table: f, column: p }) => {
|
|
10886
10888
|
const g = f.getState().globalFilter, y = p.getFilterValue() || "", { component: h, separator: v, truncate: w } = Rr(r, o.all, s);
|
|
@@ -10898,7 +10900,7 @@ function W2(e, t, r, n) {
|
|
|
10898
10900
|
}), /* @__PURE__ */ d(
|
|
10899
10901
|
ft,
|
|
10900
10902
|
{
|
|
10901
|
-
fallback: /* @__PURE__ */ d(
|
|
10903
|
+
fallback: /* @__PURE__ */ d(VO, { highlight: $, truncate: x, children: C }),
|
|
10902
10904
|
functionProps: [u.row.original, $, { cell: u, table: f, column: p, value: C }],
|
|
10903
10905
|
children: h
|
|
10904
10906
|
}
|
|
@@ -10919,7 +10921,7 @@ function W2(e, t, r, n) {
|
|
|
10919
10921
|
]
|
|
10920
10922
|
), manualFiltering: !0 };
|
|
10921
10923
|
}
|
|
10922
|
-
function
|
|
10924
|
+
function HO() {
|
|
10923
10925
|
const { data: e, loading: t } = ie();
|
|
10924
10926
|
return {
|
|
10925
10927
|
data: (e == null ? void 0 : e.result) || [],
|
|
@@ -10927,7 +10929,7 @@ function H2() {
|
|
|
10927
10929
|
state: { showLoadingOverlay: t }
|
|
10928
10930
|
};
|
|
10929
10931
|
}
|
|
10930
|
-
function
|
|
10932
|
+
function GO(e) {
|
|
10931
10933
|
const { data: t } = ie();
|
|
10932
10934
|
return e ? {
|
|
10933
10935
|
mantineTableBodyRowProps: ({ row: r }) => ({
|
|
@@ -10939,8 +10941,8 @@ function G2(e) {
|
|
|
10939
10941
|
})
|
|
10940
10942
|
} : null;
|
|
10941
10943
|
}
|
|
10942
|
-
function
|
|
10943
|
-
const { queryParams: e, setQueryParams: t, info: r } = ie(), [n, i] =
|
|
10944
|
+
function YO() {
|
|
10945
|
+
const { queryParams: e, setQueryParams: t, info: r } = ie(), [n, i] = q(""), [o] = po(n, It), a = J(
|
|
10944
10946
|
() => {
|
|
10945
10947
|
var c, u;
|
|
10946
10948
|
return ((u = (c = e == null ? void 0 : e.filters) == null ? void 0 : c.find((f) => f.opr === $r)) == null ? void 0 : u.value) || "";
|
|
@@ -10975,7 +10977,7 @@ function Y2() {
|
|
|
10975
10977
|
mantineSearchTextInputProps: l
|
|
10976
10978
|
};
|
|
10977
10979
|
}
|
|
10978
|
-
function
|
|
10980
|
+
function qO(e) {
|
|
10979
10981
|
const { data: t, queryParams: r, setQueryParams: n } = ie(), i = J(
|
|
10980
10982
|
() => ({
|
|
10981
10983
|
pageIndex: (r == null ? void 0 : r.page) || Ch,
|
|
@@ -10999,7 +11001,7 @@ function q2(e) {
|
|
|
10999
11001
|
onPaginationChange: o
|
|
11000
11002
|
};
|
|
11001
11003
|
}
|
|
11002
|
-
function
|
|
11004
|
+
function KO(e) {
|
|
11003
11005
|
const { ref: t, height: r } = ga(), { ref: n, height: i } = ga(), o = J(() => {
|
|
11004
11006
|
const c = { h: "100%", withBorder: e };
|
|
11005
11007
|
return e || (c.shadow = void 0), c;
|
|
@@ -11019,7 +11021,7 @@ function K2(e) {
|
|
|
11019
11021
|
mantineTableContainerProps: l
|
|
11020
11022
|
};
|
|
11021
11023
|
}
|
|
11022
|
-
function
|
|
11024
|
+
function JO() {
|
|
11023
11025
|
const { queryParams: e, setQueryParams: t, data: r } = ie(), n = J(
|
|
11024
11026
|
() => e != null && e.order_column ? [{ id: e.order_column.split(".id")[0], desc: e.order_direction === "desc" }] : [],
|
|
11025
11027
|
[e == null ? void 0 : e.order_column, e == null ? void 0 : e.order_direction]
|
|
@@ -11047,8 +11049,8 @@ function J2() {
|
|
|
11047
11049
|
onSortingChange: i
|
|
11048
11050
|
};
|
|
11049
11051
|
}
|
|
11050
|
-
function
|
|
11051
|
-
const [t, r] =
|
|
11052
|
+
function ZO(...e) {
|
|
11053
|
+
const [t, r] = q(!1), i = le("ActionIcon", {
|
|
11052
11054
|
variant: "transparent",
|
|
11053
11055
|
size: "md",
|
|
11054
11056
|
c: "gray"
|
|
@@ -11078,8 +11080,8 @@ function Z2(...e) {
|
|
|
11078
11080
|
)
|
|
11079
11081
|
] });
|
|
11080
11082
|
}
|
|
11081
|
-
function
|
|
11082
|
-
const [t, r] =
|
|
11083
|
+
function XO(...e) {
|
|
11084
|
+
const [t, r] = q(!1), { download: n } = ie(), o = le("ActionIcon", {
|
|
11083
11085
|
variant: "transparent",
|
|
11084
11086
|
size: "md",
|
|
11085
11087
|
c: "gray"
|
|
@@ -11098,13 +11100,13 @@ function X2(...e) {
|
|
|
11098
11100
|
}
|
|
11099
11101
|
) });
|
|
11100
11102
|
}
|
|
11101
|
-
function
|
|
11102
|
-
const [t, r] =
|
|
11103
|
+
function QO(...e) {
|
|
11104
|
+
const [t, r] = q(!1), { loading: n, refetch: i } = ie(), a = le("ActionIcon", {
|
|
11103
11105
|
variant: "transparent",
|
|
11104
11106
|
size: "md",
|
|
11105
11107
|
c: "gray"
|
|
11106
11108
|
}, e);
|
|
11107
|
-
return
|
|
11109
|
+
return ee(() => {
|
|
11108
11110
|
n || r(!1);
|
|
11109
11111
|
}, [n]), t ? /* @__PURE__ */ d(vl, { variant: "transparent", size: a.size, c: a.c, children: /* @__PURE__ */ d(Mn, { size: "100%", color: a.c }) }) : /* @__PURE__ */ d(Pe, { label: "Refresh", children: /* @__PURE__ */ d(
|
|
11110
11112
|
Re,
|
|
@@ -11130,19 +11132,19 @@ const zi = {
|
|
|
11130
11132
|
toggleDensePadding: 7,
|
|
11131
11133
|
toggleFullScreen: 8
|
|
11132
11134
|
};
|
|
11133
|
-
function
|
|
11135
|
+
function e2(e, t) {
|
|
11134
11136
|
return {
|
|
11135
11137
|
1: /* @__PURE__ */ d(Bf, { table: e }, "basic-1"),
|
|
11136
11138
|
2: /* @__PURE__ */ d(Uf, { table: e }, "basic-2"),
|
|
11137
|
-
3: (t == null ? void 0 : t["3"]) && /* @__PURE__ */ d(
|
|
11138
|
-
4: (t == null ? void 0 : t["4"]) && /* @__PURE__ */ d(
|
|
11139
|
-
5: /* @__PURE__ */ d(
|
|
11139
|
+
3: (t == null ? void 0 : t["3"]) && /* @__PURE__ */ d(XO, {}, "basic-3"),
|
|
11140
|
+
4: (t == null ? void 0 : t["4"]) && /* @__PURE__ */ d(ZO, {}, "basic-4"),
|
|
11141
|
+
5: /* @__PURE__ */ d(QO, {}, "basic-5"),
|
|
11140
11142
|
6: /* @__PURE__ */ d(Vf, { table: e }, "basic-6"),
|
|
11141
11143
|
7: /* @__PURE__ */ d(Wf, { table: e }, "basic-7"),
|
|
11142
11144
|
8: /* @__PURE__ */ d(Hf, { table: e }, "basic-8")
|
|
11143
11145
|
};
|
|
11144
11146
|
}
|
|
11145
|
-
function
|
|
11147
|
+
function t2(e = {}, t, r) {
|
|
11146
11148
|
const { info: n, queryParams: i, setQueryParams: o } = ie(), { customizer: a, custom: s } = e, l = J(() => t ? [
|
|
11147
11149
|
{ label: "All", value: "[]" },
|
|
11148
11150
|
...t.map((p) => ({ label: p.name, value: JSON.stringify(p.value) }))
|
|
@@ -11158,7 +11160,7 @@ function tO(e = {}, t, r) {
|
|
|
11158
11160
|
const g = {
|
|
11159
11161
|
3: n == null ? void 0 : n.permissions.includes("can_download"),
|
|
11160
11162
|
4: n == null ? void 0 : n.permissions.includes("can_post")
|
|
11161
|
-
}, y =
|
|
11163
|
+
}, y = e2(p, g);
|
|
11162
11164
|
Object.entries(a || {}).forEach(([v, w]) => {
|
|
11163
11165
|
v in zi && (y[zi[v]] = /* @__PURE__ */ d(
|
|
11164
11166
|
ft,
|
|
@@ -11189,7 +11191,7 @@ function tO(e = {}, t, r) {
|
|
|
11189
11191
|
...f
|
|
11190
11192
|
};
|
|
11191
11193
|
}
|
|
11192
|
-
function
|
|
11194
|
+
function r2() {
|
|
11193
11195
|
const { data: e } = ie();
|
|
11194
11196
|
return J(() => (e == null ? void 0 : e.result.length) >= 1e3, [e]) ? {
|
|
11195
11197
|
enableRowVirtualization: !0,
|
|
@@ -11198,7 +11200,7 @@ function rO() {
|
|
|
11198
11200
|
}
|
|
11199
11201
|
} : {};
|
|
11200
11202
|
}
|
|
11201
|
-
const
|
|
11203
|
+
const n2 = { enableStickyHeader: !0, enableColumnPinning: !0 }, i2 = dt((e, t) => {
|
|
11202
11204
|
var G;
|
|
11203
11205
|
const { data: r, setQueryParams: n, specialKey: i } = ie(), {
|
|
11204
11206
|
// DataGrid props
|
|
@@ -11223,33 +11225,35 @@ const nO = { enableStickyHeader: !0, enableColumnPinning: !0 }, iO = dt((e, t) =
|
|
|
11223
11225
|
// Deprecated props
|
|
11224
11226
|
bodySeparator: _,
|
|
11225
11227
|
bodyTruncate: O,
|
|
11226
|
-
headerCustomizer:
|
|
11227
|
-
bodyCustomizer:
|
|
11228
|
-
toolbarCustomizer:
|
|
11228
|
+
headerCustomizer: M,
|
|
11229
|
+
bodyCustomizer: B,
|
|
11230
|
+
toolbarCustomizer: Y,
|
|
11229
11231
|
hideAdd: m,
|
|
11230
11232
|
hideDownload: A,
|
|
11231
11233
|
hideFilter: D,
|
|
11232
11234
|
...H
|
|
11233
11235
|
} = e;
|
|
11234
|
-
_ &&
|
|
11236
|
+
_ && Object.keys($).forEach((L) => {
|
|
11235
11237
|
$[L] = $[L] || {}, $[L].separator = $[L].separator || _;
|
|
11236
|
-
})
|
|
11238
|
+
}), O && Object.keys($).forEach((L) => {
|
|
11237
11239
|
$[L] = $[L] || {}, $[L].truncate = $[L].truncate || O;
|
|
11238
|
-
})
|
|
11239
|
-
w[L] = w[L] || {}, w[L].component =
|
|
11240
|
-
})
|
|
11241
|
-
$[L] = $[L] || {}, $[L].component =
|
|
11242
|
-
})
|
|
11243
|
-
|
|
11240
|
+
}), M && Object.keys(M).forEach((L) => {
|
|
11241
|
+
w[L] = w[L] || {}, w[L].component = M[L].component || M[L];
|
|
11242
|
+
}), B && Object.keys(B).forEach((L) => {
|
|
11243
|
+
$[L] = $[L] || {}, $[L].component = B[L].component || B[L];
|
|
11244
|
+
}), Y && (C.custom = C.custom || Y), m && (C.customizer = C.customizer || {}, C.customizer.add = C.customizer.add || null), A && (C.customizer = C.customizer || {}, C.customizer.download = C.customizer.download || null), D && (C.customizer = C.customizer || {}, C.customizer.filter = C.customizer.filter || null), ee(() => {
|
|
11245
|
+
process.env.NODE_ENV === "development" && (_ && console.warn("bodySeparator is deprecated, please use body.[col].separator instead"), O && console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"), M && console.warn("headerCustomizer is deprecated, please use header.[col].component instead"), B && console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"), Y && console.warn("toolbarCustomizer is deprecated, please use toolbar.custom instead"), m && console.warn("hideAdd is deprecated, please use toolbar.customizer.add instead"), A && console.warn("hideDownload is deprecated, please use toolbar.customizer.download instead"), D && console.warn("hideFilter is deprecated, please use toolbar.customizer.filter instead"));
|
|
11246
|
+
}, []);
|
|
11247
|
+
const Z = HO(), fe = JO(), de = qO(l), ge = WO(v, w, $, x), xe = KO(h), U = $O(s, (G = Rr($, i.actions)) == null ? void 0 : G.component), E = YO(), T = r2(), z = t2(C, y, a), R = GO(f), V = PO(u, p), F = J(
|
|
11244
11248
|
() => Ko(
|
|
11245
|
-
|
|
11249
|
+
n2,
|
|
11246
11250
|
{ mantinePaperProps: { ref: t } },
|
|
11247
11251
|
ge,
|
|
11248
11252
|
Z,
|
|
11249
11253
|
fe,
|
|
11250
11254
|
de,
|
|
11251
11255
|
xe,
|
|
11252
|
-
|
|
11256
|
+
U,
|
|
11253
11257
|
E,
|
|
11254
11258
|
T,
|
|
11255
11259
|
z,
|
|
@@ -11264,7 +11268,7 @@ const nO = { enableStickyHeader: !0, enableColumnPinning: !0 }, iO = dt((e, t) =
|
|
|
11264
11268
|
fe,
|
|
11265
11269
|
de,
|
|
11266
11270
|
xe,
|
|
11267
|
-
|
|
11271
|
+
U,
|
|
11268
11272
|
E,
|
|
11269
11273
|
T,
|
|
11270
11274
|
z,
|
|
@@ -11272,10 +11276,10 @@ const nO = { enableStickyHeader: !0, enableColumnPinning: !0 }, iO = dt((e, t) =
|
|
|
11272
11276
|
V,
|
|
11273
11277
|
g
|
|
11274
11278
|
]
|
|
11275
|
-
), W = Gf(
|
|
11276
|
-
return
|
|
11279
|
+
), W = Gf(F);
|
|
11280
|
+
return ee(() => {
|
|
11277
11281
|
!r && o && n({});
|
|
11278
|
-
}, [r]),
|
|
11282
|
+
}, [r]), ee(() => {
|
|
11279
11283
|
const L = Object.keys(W.getState().rowSelection), X = r == null ? void 0 : r.ids.filter((Q, Se) => L.includes(Se.toString()));
|
|
11280
11284
|
u == null || u(X), p == null || p.setSelectedIds(X);
|
|
11281
11285
|
}, [p, r == null ? void 0 : r.ids, W.getState().rowSelection, u]), /* @__PURE__ */ k(He, { children: [
|
|
@@ -11283,14 +11287,14 @@ const nO = { enableStickyHeader: !0, enableColumnPinning: !0 }, iO = dt((e, t) =
|
|
|
11283
11287
|
c ? null : /* @__PURE__ */ d(ec, {})
|
|
11284
11288
|
] });
|
|
11285
11289
|
});
|
|
11286
|
-
|
|
11287
|
-
const
|
|
11288
|
-
iconSmall:
|
|
11289
|
-
iconLarge:
|
|
11290
|
-
btn:
|
|
11290
|
+
i2.displayName = "NextGenDataGrid";
|
|
11291
|
+
const o2 = "_iconSmall_sxv3z_1", a2 = "_iconLarge_sxv3z_6", s2 = "_btn_sxv3z_17", Bi = {
|
|
11292
|
+
iconSmall: o2,
|
|
11293
|
+
iconLarge: a2,
|
|
11294
|
+
btn: s2
|
|
11291
11295
|
};
|
|
11292
|
-
function
|
|
11293
|
-
const n = tf(), { user: i, signout: o } = Zf(), [a, s] =
|
|
11296
|
+
function O2({ basePath: e = "/security", Target: t, children: r }) {
|
|
11297
|
+
const n = tf(), { user: i, signout: o } = Zf(), [a, s] = q(!1), c = [
|
|
11294
11298
|
{ resource_name: e + "/users", label: "Users", name: "UsersApi", Icon: Cp },
|
|
11295
11299
|
{ resource_name: e + "/roles", label: "Roles", name: "RolesApi", Icon: wp },
|
|
11296
11300
|
{ resource_name: e + "/permissions", label: "Base Permissions", name: "PermissionsApi", Icon: Fa },
|
|
@@ -11325,8 +11329,8 @@ function OO({ basePath: e = "/security", Target: t, children: r }) {
|
|
|
11325
11329
|
}
|
|
11326
11330
|
);
|
|
11327
11331
|
}
|
|
11328
|
-
function $
|
|
11329
|
-
const [o, a] =
|
|
11332
|
+
function $2(e, { autoInvoke: t = !0, initialLoading: r = !1, clearDataOnRefetch: n = !1, ...i } = {}) {
|
|
11333
|
+
const [o, a] = q(null), [s, l] = q(r), [c, u] = q(null), f = Qu(null), p = oe(() => {
|
|
11330
11334
|
if (e)
|
|
11331
11335
|
return n && a(null), u(null), f.current && f.current.abort(), f.current = new AbortController(), l(!0), fetch(e, { signal: f.current.signal, ...i }).then(async (y) => {
|
|
11332
11336
|
const h = await y.json();
|
|
@@ -11340,7 +11344,7 @@ function $O(e, { autoInvoke: t = !0, initialLoading: r = !1, clearDataOnRefetch:
|
|
|
11340
11344
|
var y;
|
|
11341
11345
|
f.current && ((y = f.current) == null || y.abort(""), l(!1));
|
|
11342
11346
|
}, []);
|
|
11343
|
-
return
|
|
11347
|
+
return ee(() => (t && p(), () => {
|
|
11344
11348
|
f.current && f.current.abort("");
|
|
11345
11349
|
}), [p, t]), { data: o, loading: s, error: c, refetch: p, abort: g };
|
|
11346
11350
|
}
|
|
@@ -11356,59 +11360,59 @@ export {
|
|
|
11356
11360
|
Np as EditDialog,
|
|
11357
11361
|
Ih as Filter,
|
|
11358
11362
|
Ph as FilterMenu,
|
|
11359
|
-
|
|
11363
|
+
E2 as InfiniteScroll,
|
|
11360
11364
|
YA as MantineArrayControlRenderer,
|
|
11361
11365
|
Y_ as MantineBooleanCell,
|
|
11362
|
-
|
|
11366
|
+
gO as MantineBooleanControl,
|
|
11363
11367
|
J_ as MantineDateCell,
|
|
11364
|
-
|
|
11368
|
+
tO as MantineDateControl,
|
|
11365
11369
|
Q_ as MantineDateTimeCell,
|
|
11366
|
-
|
|
11370
|
+
iO as MantineDateTimeControl,
|
|
11367
11371
|
XA as MantineEnumArrayRenderer,
|
|
11368
11372
|
rT as MantineEnumCell,
|
|
11369
|
-
|
|
11370
|
-
|
|
11373
|
+
vO as MantineEnumControl,
|
|
11374
|
+
xO as MantineHorizontalLayoutRenderer,
|
|
11371
11375
|
B_ as MantineIntegerCell,
|
|
11372
|
-
|
|
11376
|
+
uO as MantineIntegerControl,
|
|
11373
11377
|
Cc as MantineLayoutRenderer,
|
|
11374
11378
|
L_ as MantineNumberCell,
|
|
11375
|
-
|
|
11379
|
+
sO as MantineNumberControl,
|
|
11376
11380
|
VA as MantineTableControl,
|
|
11377
11381
|
W_ as MantineTextCell,
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11382
|
+
pO as MantineTextControl,
|
|
11383
|
+
OO as MantineVerticalLayoutRenderer,
|
|
11384
|
+
i2 as NextGenDataGrid,
|
|
11381
11385
|
jr as NoBorderTableCell,
|
|
11382
11386
|
BA as NonEmptyRow,
|
|
11383
|
-
|
|
11384
|
-
|
|
11387
|
+
w2 as Provider,
|
|
11388
|
+
O2 as UserMenu,
|
|
11385
11389
|
GA as mantineArrayControlTester,
|
|
11386
11390
|
G_ as mantineBooleanCellTester,
|
|
11387
|
-
|
|
11388
|
-
|
|
11391
|
+
mO as mantineBooleanControlTester,
|
|
11392
|
+
A2 as mantineCells,
|
|
11389
11393
|
K_ as mantineDateCellTester,
|
|
11390
|
-
|
|
11394
|
+
eO as mantineDateControlTester,
|
|
11391
11395
|
X_ as mantineDateTimeCellTester,
|
|
11392
|
-
|
|
11396
|
+
nO as mantineDateTimeControlTester,
|
|
11393
11397
|
ZA as mantineEnumArrayRendererTester,
|
|
11394
11398
|
tT as mantineEnumCellTester,
|
|
11395
|
-
|
|
11396
|
-
|
|
11399
|
+
bO as mantineEnumControlTester,
|
|
11400
|
+
SO as mantineHorizontalLayoutTester,
|
|
11397
11401
|
z_ as mantineIntegerCellTester,
|
|
11398
|
-
|
|
11402
|
+
cO as mantineIntegerControlTester,
|
|
11399
11403
|
N_ as mantineNumberCellTester,
|
|
11400
|
-
|
|
11401
|
-
|
|
11404
|
+
aO as mantineNumberControlTester,
|
|
11405
|
+
C2 as mantineRenderers,
|
|
11402
11406
|
V_ as mantineTextCellTester,
|
|
11403
|
-
|
|
11404
|
-
|
|
11407
|
+
dO as mantineTextControlTester,
|
|
11408
|
+
CO as mantineVerticalLayoutTester,
|
|
11405
11409
|
O0 as renderLayoutElements,
|
|
11406
11410
|
ie as useApi,
|
|
11407
11411
|
Zf as useAuth,
|
|
11408
|
-
|
|
11409
|
-
$
|
|
11412
|
+
S2 as useBulkActions,
|
|
11413
|
+
$2 as useCustomFetch,
|
|
11410
11414
|
iy as useDebouncedChange,
|
|
11411
11415
|
Xf as useInfo,
|
|
11412
11416
|
bn as useProxy,
|
|
11413
|
-
|
|
11417
|
+
x2 as withAjvProps
|
|
11414
11418
|
};
|