@espresso-lab/mantine-data-table 1.10.1 → 1.10.2
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/index.es.js +944 -940
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import Ct, { createContext as
|
|
3
|
-
import { factory as Be, useProps as
|
|
4
|
-
import { useForm as
|
|
1
|
+
import * as Ie from "react";
|
|
2
|
+
import Ct, { createContext as Fn, useContext as Pi, useCallback as Le, createElement as jr, useRef as De, useImperativeHandle as ho, useEffect as $e, useState as ve, Fragment as Oi, useMemo as Xe, useLayoutEffect as ji } from "react";
|
|
3
|
+
import { factory as Be, useProps as We, useStyles as St, createVarsResolver as gr, UnstyledButton as lr, getSize as Lr, Box as je, getSpacing as Rs, getFontSize as Ir, useResolvedStylesApi as Mi, AccordionChevron as fo, useInputProps as Es, Input as Mr, Popover as cr, Alert as Br, Stepper as Er, Group as qe, Button as mt, TextInput as Ai, NumberInput as Ri, Checkbox as Ut, Textarea as Ei, createSafeContext as Ts, rem as Et, Table as $s, ScrollArea as Ns, TableThead as Ls, TableTr as Ft, PopoverTarget as Ti, PopoverDropdown as $i, Stack as dr, TableTfoot as Is, Center as Yt, Loader as Bs, Text as at, parseThemeColor as Ys, TableTh as mr, Flex as zs, ActionIcon as hr, TableTd as Wn, Collapse as Ni, useMantineTheme as Li, Pagination as Ii, useDirection as Fs, Menu as Rt, MenuTarget as Ws, MenuDropdown as Us, MenuItem as qs, Skeleton as zt, Select as po, Divider as go, Tabs as Pn, Modal as fn, Title as Vs } from "@mantine/core";
|
|
4
|
+
import { useForm as Bi } from "@mantine/form";
|
|
5
5
|
import { IconSortAscending as Hs, IconSortDescending as Gs, IconChevronDown as Qs, IconCaretDownFilled as Zs, IconPencil as Ks, IconTrash as Js, IconRefresh as Xs, IconInfoCircle as ea } from "@tabler/icons-react";
|
|
6
|
-
import { useUncontrolled as
|
|
7
|
-
function
|
|
6
|
+
import { useUncontrolled as Yi, clamp as ta, useDidUpdate as ra, useClickOutside as zi, useMergedRef as mo, useLocalStorage as Un, useMediaQuery as na, useDisclosure as oa, useTimeout as yo } from "@mantine/hooks";
|
|
7
|
+
function Fi(t) {
|
|
8
8
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var xr = { exports: {} }, pn = {};
|
|
11
|
+
var vo;
|
|
12
12
|
function ia() {
|
|
13
|
-
if (
|
|
14
|
-
|
|
13
|
+
if (vo) return pn;
|
|
14
|
+
vo = 1;
|
|
15
15
|
var t = Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
16
|
-
return
|
|
16
|
+
return pn.c = function(e) {
|
|
17
17
|
return t.H.useMemoCache(e);
|
|
18
|
-
},
|
|
18
|
+
}, pn;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
var
|
|
20
|
+
var gn = {};
|
|
21
|
+
var bo;
|
|
22
22
|
function sa() {
|
|
23
|
-
return
|
|
23
|
+
return bo || (bo = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
24
24
|
var t = Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
25
|
-
|
|
25
|
+
gn.c = function(e) {
|
|
26
26
|
var r = t.H;
|
|
27
27
|
return r === null && console.error(
|
|
28
28
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
@@ -32,13 +32,13 @@ function sa() {
|
|
|
32
32
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
33
33
|
), r.useMemoCache(e);
|
|
34
34
|
};
|
|
35
|
-
})()),
|
|
35
|
+
})()), gn;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var wo;
|
|
38
38
|
function aa() {
|
|
39
|
-
return
|
|
39
|
+
return wo || (wo = 1, process.env.NODE_ENV === "production" ? xr.exports = ia() : xr.exports = sa()), xr.exports;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var Ve = aa(), Yr = class {
|
|
42
42
|
constructor() {
|
|
43
43
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
44
44
|
}
|
|
@@ -96,37 +96,37 @@ var He = aa(), Br = class {
|
|
|
96
96
|
clearInterval(t) {
|
|
97
97
|
this.#t.clearInterval(t);
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, Cr = new ca();
|
|
100
100
|
function ua(t) {
|
|
101
101
|
setTimeout(t, 0);
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
103
|
+
var fr = typeof window > "u" || "Deno" in globalThis;
|
|
104
|
+
function Tr() {
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function _o(t) {
|
|
107
107
|
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
108
108
|
}
|
|
109
109
|
function da(t, e) {
|
|
110
110
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ur(t, e) {
|
|
113
113
|
return typeof t == "function" ? t(e) : t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function st(t, e) {
|
|
116
116
|
return typeof t == "function" ? t(e) : t;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function xo(t) {
|
|
119
119
|
return JSON.stringify(
|
|
120
120
|
t,
|
|
121
|
-
(e, r) =>
|
|
121
|
+
(e, r) => jn(r) ? Object.keys(r).sort().reduce((n, i) => (n[i] = r[i], n), {}) : r
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
124
|
var ha = Object.prototype.hasOwnProperty;
|
|
125
|
-
function
|
|
125
|
+
function On(t, e) {
|
|
126
126
|
if (t === e)
|
|
127
127
|
return t;
|
|
128
|
-
const r =
|
|
129
|
-
if (!r && !(
|
|
128
|
+
const r = Co(t) && Co(e);
|
|
129
|
+
if (!r && !(jn(t) && jn(e))) return e;
|
|
130
130
|
const i = (r ? t : Object.keys(t)).length, l = r ? e : Object.keys(e), u = l.length, a = r ? new Array(u) : {};
|
|
131
131
|
let m = 0;
|
|
132
132
|
for (let y = 0; y < u; y++) {
|
|
@@ -139,12 +139,12 @@ function Pn(t, e) {
|
|
|
139
139
|
a[_] = S;
|
|
140
140
|
continue;
|
|
141
141
|
}
|
|
142
|
-
const C =
|
|
142
|
+
const C = On(O, S);
|
|
143
143
|
a[_] = C, C === O && m++;
|
|
144
144
|
}
|
|
145
145
|
return i === u && m === i ? t : a;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function $r(t, e) {
|
|
148
148
|
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
149
149
|
return !1;
|
|
150
150
|
for (const r in t)
|
|
@@ -152,47 +152,47 @@ function Tr(t, e) {
|
|
|
152
152
|
return !1;
|
|
153
153
|
return !0;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Co(t) {
|
|
156
156
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
158
|
+
function jn(t) {
|
|
159
|
+
if (!So(t))
|
|
160
160
|
return !1;
|
|
161
161
|
const e = t.constructor;
|
|
162
162
|
if (e === void 0)
|
|
163
163
|
return !0;
|
|
164
164
|
const r = e.prototype;
|
|
165
|
-
return !(!
|
|
165
|
+
return !(!So(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function So(t) {
|
|
168
168
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Do(t, e, r) {
|
|
171
171
|
if (typeof r.structuralSharing == "function")
|
|
172
172
|
return r.structuralSharing(t, e);
|
|
173
173
|
if (r.structuralSharing !== !1) {
|
|
174
174
|
if (process.env.NODE_ENV !== "production")
|
|
175
175
|
try {
|
|
176
|
-
return
|
|
176
|
+
return On(t, e);
|
|
177
177
|
} catch (n) {
|
|
178
178
|
throw console.error(
|
|
179
179
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`
|
|
180
180
|
), n;
|
|
181
181
|
}
|
|
182
|
-
return
|
|
182
|
+
return On(t, e);
|
|
183
183
|
}
|
|
184
184
|
return e;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Wi(t, e) {
|
|
187
187
|
return typeof t == "function" ? t(...e) : !!t;
|
|
188
188
|
}
|
|
189
|
-
var fa = class extends
|
|
189
|
+
var fa = class extends Yr {
|
|
190
190
|
#t;
|
|
191
191
|
#e;
|
|
192
192
|
#r;
|
|
193
193
|
constructor() {
|
|
194
194
|
super(), this.#r = (t) => {
|
|
195
|
-
if (!
|
|
195
|
+
if (!fr && window.addEventListener) {
|
|
196
196
|
const e = () => t();
|
|
197
197
|
return window.addEventListener("visibilitychange", e, !1), () => {
|
|
198
198
|
window.removeEventListener("visibilitychange", e);
|
|
@@ -224,7 +224,7 @@ var fa = class extends Br {
|
|
|
224
224
|
return typeof this.#t == "boolean" ? this.#t : globalThis.document?.visibilityState !== "hidden";
|
|
225
225
|
}
|
|
226
226
|
}, pa = new fa();
|
|
227
|
-
function
|
|
227
|
+
function ko() {
|
|
228
228
|
let t, e;
|
|
229
229
|
const r = new Promise((i, l) => {
|
|
230
230
|
t = i, e = l;
|
|
@@ -306,13 +306,13 @@ function ma() {
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
var
|
|
309
|
+
var zr = ma(), ya = class extends Yr {
|
|
310
310
|
#t = !0;
|
|
311
311
|
#e;
|
|
312
312
|
#r;
|
|
313
313
|
constructor() {
|
|
314
314
|
super(), this.#r = (t) => {
|
|
315
|
-
if (!
|
|
315
|
+
if (!fr && window.addEventListener) {
|
|
316
316
|
const e = () => t(!0), r = () => t(!1);
|
|
317
317
|
return window.addEventListener("online", e, !1), window.addEventListener("offline", r, !1), () => {
|
|
318
318
|
window.removeEventListener("online", e), window.removeEventListener("offline", r);
|
|
@@ -352,9 +352,9 @@ function wa(t, e) {
|
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
var _a = class extends
|
|
355
|
+
var _a = class extends Yr {
|
|
356
356
|
constructor(t, e) {
|
|
357
|
-
super(), this.options = e, this.#t = t, this.#a = null, this.#s =
|
|
357
|
+
super(), this.options = e, this.#t = t, this.#a = null, this.#s = ko(), this.bindMethods(), this.setOptions(e);
|
|
358
358
|
}
|
|
359
359
|
#t;
|
|
360
360
|
#e = void 0;
|
|
@@ -377,20 +377,20 @@ var _a = class extends Br {
|
|
|
377
377
|
this.refetch = this.refetch.bind(this);
|
|
378
378
|
}
|
|
379
379
|
onSubscribe() {
|
|
380
|
-
this.listeners.size === 1 && (this.#e.addObserver(this),
|
|
380
|
+
this.listeners.size === 1 && (this.#e.addObserver(this), Po(this.#e, this.options) ? this.#d() : this.updateResult(), this.#b());
|
|
381
381
|
}
|
|
382
382
|
onUnsubscribe() {
|
|
383
383
|
this.hasListeners() || this.destroy();
|
|
384
384
|
}
|
|
385
385
|
shouldFetchOnReconnect() {
|
|
386
|
-
return
|
|
386
|
+
return Mn(
|
|
387
387
|
this.#e,
|
|
388
388
|
this.options,
|
|
389
389
|
this.options.refetchOnReconnect
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
392
|
shouldFetchOnWindowFocus() {
|
|
393
|
-
return
|
|
393
|
+
return Mn(
|
|
394
394
|
this.#e,
|
|
395
395
|
this.options,
|
|
396
396
|
this.options.refetchOnWindowFocus
|
|
@@ -401,24 +401,24 @@ var _a = class extends Br {
|
|
|
401
401
|
}
|
|
402
402
|
setOptions(t) {
|
|
403
403
|
const e = this.options, r = this.#e;
|
|
404
|
-
if (this.options = this.#t.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
404
|
+
if (this.options = this.#t.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof st(this.options.enabled, this.#e) != "boolean")
|
|
405
405
|
throw new Error(
|
|
406
406
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
407
407
|
);
|
|
408
|
-
this.#x(), this.#e.setOptions(this.options), e._defaulted &&
|
|
408
|
+
this.#x(), this.#e.setOptions(this.options), e._defaulted && !$r(this.options, e) && this.#t.getQueryCache().notify({
|
|
409
409
|
type: "observerOptionsUpdated",
|
|
410
410
|
query: this.#e,
|
|
411
411
|
observer: this
|
|
412
412
|
});
|
|
413
413
|
const n = this.hasListeners();
|
|
414
|
-
n &&
|
|
414
|
+
n && Oo(
|
|
415
415
|
this.#e,
|
|
416
416
|
r,
|
|
417
417
|
this.options,
|
|
418
418
|
e
|
|
419
|
-
) && this.#d(), this.updateResult(), n && (this.#e !== r ||
|
|
419
|
+
) && this.#d(), this.updateResult(), n && (this.#e !== r || st(this.options.enabled, this.#e) !== st(e.enabled, this.#e) || ur(this.options.staleTime, this.#e) !== ur(e.staleTime, this.#e)) && this.#m();
|
|
420
420
|
const i = this.#y();
|
|
421
|
-
n && (this.#e !== r ||
|
|
421
|
+
n && (this.#e !== r || st(this.options.enabled, this.#e) !== st(e.enabled, this.#e) || i !== this.#l) && this.#v(i);
|
|
422
422
|
}
|
|
423
423
|
getOptimisticResult(t) {
|
|
424
424
|
const e = this.#t.getQueryCache().build(this.#t, t), r = this.createResult(e, t);
|
|
@@ -463,18 +463,18 @@ var _a = class extends Br {
|
|
|
463
463
|
this.options,
|
|
464
464
|
t
|
|
465
465
|
);
|
|
466
|
-
return t?.throwOnError || (e = e.catch(
|
|
466
|
+
return t?.throwOnError || (e = e.catch(Tr)), e;
|
|
467
467
|
}
|
|
468
468
|
#m() {
|
|
469
469
|
this.#w();
|
|
470
|
-
const t =
|
|
470
|
+
const t = ur(
|
|
471
471
|
this.options.staleTime,
|
|
472
472
|
this.#e
|
|
473
473
|
);
|
|
474
|
-
if (
|
|
474
|
+
if (fr || this.#n.isStale || !_o(t))
|
|
475
475
|
return;
|
|
476
476
|
const r = da(this.#n.dataUpdatedAt, t) + 1;
|
|
477
|
-
this.#c =
|
|
477
|
+
this.#c = Cr.setTimeout(() => {
|
|
478
478
|
this.#n.isStale || this.updateResult();
|
|
479
479
|
}, r);
|
|
480
480
|
}
|
|
@@ -482,7 +482,7 @@ var _a = class extends Br {
|
|
|
482
482
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
|
|
483
483
|
}
|
|
484
484
|
#v(t) {
|
|
485
|
-
this.#_(), this.#l = t, !(
|
|
485
|
+
this.#_(), this.#l = t, !(fr || st(this.options.enabled, this.#e) === !1 || !_o(this.#l) || this.#l === 0) && (this.#u = Cr.setInterval(() => {
|
|
486
486
|
(this.options.refetchIntervalInBackground || pa.isFocused()) && this.#d();
|
|
487
487
|
}, this.#l));
|
|
488
488
|
}
|
|
@@ -490,16 +490,16 @@ var _a = class extends Br {
|
|
|
490
490
|
this.#m(), this.#v(this.#y());
|
|
491
491
|
}
|
|
492
492
|
#w() {
|
|
493
|
-
this.#c && (
|
|
493
|
+
this.#c && (Cr.clearTimeout(this.#c), this.#c = void 0);
|
|
494
494
|
}
|
|
495
495
|
#_() {
|
|
496
|
-
this.#u && (
|
|
496
|
+
this.#u && (Cr.clearInterval(this.#u), this.#u = void 0);
|
|
497
497
|
}
|
|
498
498
|
createResult(t, e) {
|
|
499
499
|
const r = this.#e, n = this.options, i = this.#n, l = this.#o, u = this.#i, m = t !== r ? t.state : this.#r, { state: y } = t;
|
|
500
500
|
let _ = { ...y }, O = !1, S;
|
|
501
501
|
if (e._optimisticResults) {
|
|
502
|
-
const Q = this.hasListeners(), q = !Q &&
|
|
502
|
+
const Q = this.hasListeners(), q = !Q && Po(t, e), W = Q && Oo(t, r, e, n);
|
|
503
503
|
(q || W) && (_ = {
|
|
504
504
|
..._,
|
|
505
505
|
...wa(y.data, t.options)
|
|
@@ -513,7 +513,7 @@ var _a = class extends Br {
|
|
|
513
513
|
i?.isPlaceholderData && e.placeholderData === u?.placeholderData ? (Q = i.data, $ = !0) : Q = typeof e.placeholderData == "function" ? e.placeholderData(
|
|
514
514
|
this.#f?.state.data,
|
|
515
515
|
this.#f
|
|
516
|
-
) : e.placeholderData, Q !== void 0 && (j = "success", S =
|
|
516
|
+
) : e.placeholderData, Q !== void 0 && (j = "success", S = Do(
|
|
517
517
|
i?.data,
|
|
518
518
|
Q,
|
|
519
519
|
e
|
|
@@ -524,7 +524,7 @@ var _a = class extends Br {
|
|
|
524
524
|
S = this.#h;
|
|
525
525
|
else
|
|
526
526
|
try {
|
|
527
|
-
this.#g = e.select, S = e.select(S), S =
|
|
527
|
+
this.#g = e.select, S = e.select(S), S = Do(i?.data, S, e), this.#h = S, this.#a = null;
|
|
528
528
|
} catch (Q) {
|
|
529
529
|
this.#a = Q;
|
|
530
530
|
}
|
|
@@ -552,16 +552,16 @@ var _a = class extends Br {
|
|
|
552
552
|
isPaused: _.fetchStatus === "paused",
|
|
553
553
|
isPlaceholderData: O,
|
|
554
554
|
isRefetchError: V && X,
|
|
555
|
-
isStale:
|
|
555
|
+
isStale: qn(t, e),
|
|
556
556
|
refetch: this.refetch,
|
|
557
557
|
promise: this.#s,
|
|
558
|
-
isEnabled:
|
|
558
|
+
isEnabled: st(e.enabled, t) !== !1
|
|
559
559
|
};
|
|
560
560
|
if (this.options.experimental_prefetchInRender) {
|
|
561
561
|
const Q = (Z) => {
|
|
562
562
|
H.status === "error" ? Z.reject(H.error) : H.data !== void 0 && Z.resolve(H.data);
|
|
563
563
|
}, q = () => {
|
|
564
|
-
const Z = this.#s = H.promise =
|
|
564
|
+
const Z = this.#s = H.promise = ko();
|
|
565
565
|
Q(Z);
|
|
566
566
|
}, W = this.#s;
|
|
567
567
|
switch (W.status) {
|
|
@@ -580,7 +580,7 @@ var _a = class extends Br {
|
|
|
580
580
|
}
|
|
581
581
|
updateResult() {
|
|
582
582
|
const t = this.#n, e = this.createResult(this.#e, this.options);
|
|
583
|
-
if (this.#o = this.#e.state, this.#i = this.options, this.#o.data !== void 0 && (this.#f = this.#e),
|
|
583
|
+
if (this.#o = this.#e.state, this.#i = this.options, this.#o.data !== void 0 && (this.#f = this.#e), $r(e, t))
|
|
584
584
|
return;
|
|
585
585
|
this.#n = e;
|
|
586
586
|
const r = () => {
|
|
@@ -610,7 +610,7 @@ var _a = class extends Br {
|
|
|
610
610
|
this.updateResult(), this.hasListeners() && this.#b();
|
|
611
611
|
}
|
|
612
612
|
#C(t) {
|
|
613
|
-
|
|
613
|
+
zr.batch(() => {
|
|
614
614
|
t.listeners && this.listeners.forEach((e) => {
|
|
615
615
|
e(this.#n);
|
|
616
616
|
}), this.#t.getQueryCache().notify({
|
|
@@ -621,26 +621,26 @@ var _a = class extends Br {
|
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
function xa(t, e) {
|
|
624
|
-
return
|
|
624
|
+
return st(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
return xa(t, e) || t.state.data !== void 0 &&
|
|
626
|
+
function Po(t, e) {
|
|
627
|
+
return xa(t, e) || t.state.data !== void 0 && Mn(t, e, e.refetchOnMount);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
if (
|
|
629
|
+
function Mn(t, e, r) {
|
|
630
|
+
if (st(e.enabled, t) !== !1 && ur(e.staleTime, t) !== "static") {
|
|
631
631
|
const n = typeof r == "function" ? r(t) : r;
|
|
632
|
-
return n === "always" || n !== !1 &&
|
|
632
|
+
return n === "always" || n !== !1 && qn(t, e);
|
|
633
633
|
}
|
|
634
634
|
return !1;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return (t !== e ||
|
|
636
|
+
function Oo(t, e, r, n) {
|
|
637
|
+
return (t !== e || st(n.enabled, t) === !1) && (!r.suspense || t.state.status !== "error") && qn(t, r);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
639
|
+
function qn(t, e) {
|
|
640
|
+
return st(e.enabled, t) !== !1 && t.isStaleByTime(ur(e.staleTime, t));
|
|
641
641
|
}
|
|
642
642
|
function Ca(t, e) {
|
|
643
|
-
return
|
|
643
|
+
return !$r(t.getCurrentResult(), e);
|
|
644
644
|
}
|
|
645
645
|
function Sa() {
|
|
646
646
|
return {
|
|
@@ -655,7 +655,7 @@ function Sa() {
|
|
|
655
655
|
submittedAt: 0
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
var Da = class extends
|
|
658
|
+
var Da = class extends Yr {
|
|
659
659
|
#t;
|
|
660
660
|
#e = void 0;
|
|
661
661
|
#r;
|
|
@@ -668,11 +668,11 @@ var Da = class extends Br {
|
|
|
668
668
|
}
|
|
669
669
|
setOptions(t) {
|
|
670
670
|
const e = this.options;
|
|
671
|
-
this.options = this.#t.defaultMutationOptions(t),
|
|
671
|
+
this.options = this.#t.defaultMutationOptions(t), $r(this.options, e) || this.#t.getMutationCache().notify({
|
|
672
672
|
type: "observerOptionsUpdated",
|
|
673
673
|
mutation: this.#r,
|
|
674
674
|
observer: this
|
|
675
|
-
}), e?.mutationKey && this.options.mutationKey &&
|
|
675
|
+
}), e?.mutationKey && this.options.mutationKey && xo(e.mutationKey) !== xo(this.options.mutationKey) ? this.reset() : this.#r?.state.status === "pending" && this.#r.setOptions(this.options);
|
|
676
676
|
}
|
|
677
677
|
onUnsubscribe() {
|
|
678
678
|
this.hasListeners() || this.#r?.removeObserver(this);
|
|
@@ -702,7 +702,7 @@ var Da = class extends Br {
|
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
#i(t) {
|
|
705
|
-
|
|
705
|
+
zr.batch(() => {
|
|
706
706
|
if (this.#n && this.hasListeners()) {
|
|
707
707
|
const e = this.#e.variables, r = this.#e.context, n = {
|
|
708
708
|
client: this.#t,
|
|
@@ -738,11 +738,11 @@ var Da = class extends Br {
|
|
|
738
738
|
});
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
},
|
|
742
|
-
var
|
|
741
|
+
}, Sr = { exports: {} }, Kt = {};
|
|
742
|
+
var jo;
|
|
743
743
|
function ka() {
|
|
744
|
-
if (
|
|
745
|
-
|
|
744
|
+
if (jo) return Kt;
|
|
745
|
+
jo = 1;
|
|
746
746
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
747
747
|
function r(n, i, l) {
|
|
748
748
|
var u = null;
|
|
@@ -759,12 +759,12 @@ function ka() {
|
|
|
759
759
|
props: l
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
return
|
|
762
|
+
return Kt.Fragment = e, Kt.jsx = r, Kt.jsxs = r, Kt;
|
|
763
763
|
}
|
|
764
|
-
var
|
|
765
|
-
var
|
|
764
|
+
var Jt = {};
|
|
765
|
+
var Mo;
|
|
766
766
|
function Pa() {
|
|
767
|
-
return
|
|
767
|
+
return Mo || (Mo = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
768
768
|
function t(d) {
|
|
769
769
|
if (d == null) return null;
|
|
770
770
|
if (typeof d == "function")
|
|
@@ -970,7 +970,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
970
970
|
C,
|
|
971
971
|
l
|
|
972
972
|
)(), p = x(n(l)), f = {};
|
|
973
|
-
|
|
973
|
+
Jt.Fragment = $, Jt.jsx = function(d, v, D) {
|
|
974
974
|
var R = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
975
975
|
return _(
|
|
976
976
|
d,
|
|
@@ -980,7 +980,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
980
980
|
R ? Error("react-stack-top-frame") : s,
|
|
981
981
|
R ? x(n(d)) : p
|
|
982
982
|
);
|
|
983
|
-
},
|
|
983
|
+
}, Jt.jsxs = function(d, v, D) {
|
|
984
984
|
var R = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
985
985
|
return _(
|
|
986
986
|
d,
|
|
@@ -991,26 +991,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
991
991
|
R ? x(n(d)) : p
|
|
992
992
|
);
|
|
993
993
|
};
|
|
994
|
-
})()),
|
|
994
|
+
})()), Jt;
|
|
995
995
|
}
|
|
996
|
-
var
|
|
996
|
+
var Ao;
|
|
997
997
|
function Oa() {
|
|
998
|
-
return
|
|
998
|
+
return Ao || (Ao = 1, process.env.NODE_ENV === "production" ? Sr.exports = ka() : Sr.exports = Pa()), Sr.exports;
|
|
999
999
|
}
|
|
1000
|
-
var b = Oa(),
|
|
1000
|
+
var b = Oa(), Ui = Ie.createContext(
|
|
1001
1001
|
void 0
|
|
1002
|
-
),
|
|
1003
|
-
const e =
|
|
1002
|
+
), qi = (t) => {
|
|
1003
|
+
const e = Ie.useContext(Ui);
|
|
1004
1004
|
if (!e)
|
|
1005
1005
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1006
1006
|
return e;
|
|
1007
|
-
},
|
|
1007
|
+
}, Vi = ({
|
|
1008
1008
|
client: t,
|
|
1009
1009
|
children: e
|
|
1010
|
-
}) => (
|
|
1010
|
+
}) => (Ie.useEffect(() => (t.mount(), () => {
|
|
1011
1011
|
t.unmount();
|
|
1012
|
-
}), [t]), /* @__PURE__ */ b.jsx(
|
|
1013
|
-
|
|
1012
|
+
}), [t]), /* @__PURE__ */ b.jsx(Ui.Provider, { value: t, children: e })), Hi = Ie.createContext(!1), ja = () => Ie.useContext(Hi);
|
|
1013
|
+
Hi.Provider;
|
|
1014
1014
|
function Ma() {
|
|
1015
1015
|
let t = !1;
|
|
1016
1016
|
return {
|
|
@@ -1023,10 +1023,10 @@ function Ma() {
|
|
|
1023
1023
|
isReset: () => t
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
|
-
var Aa =
|
|
1026
|
+
var Aa = Ie.createContext(Ma()), Ra = () => Ie.useContext(Aa), Ea = (t, e) => {
|
|
1027
1027
|
(t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
|
|
1028
1028
|
}, Ta = (t) => {
|
|
1029
|
-
|
|
1029
|
+
Ie.useEffect(() => {
|
|
1030
1030
|
t.clearReset();
|
|
1031
1031
|
}, [t]);
|
|
1032
1032
|
}, $a = ({
|
|
@@ -1035,7 +1035,7 @@ var Aa = Le.createContext(Ma()), Ra = () => Le.useContext(Aa), Ea = (t, e) => {
|
|
|
1035
1035
|
throwOnError: r,
|
|
1036
1036
|
query: n,
|
|
1037
1037
|
suspense: i
|
|
1038
|
-
}) => t.isError && !e.isReset() && !t.isFetching && n && (i && t.data === void 0 ||
|
|
1038
|
+
}) => t.isError && !e.isReset() && !t.isFetching && n && (i && t.data === void 0 || Wi(r, [t.error, n])), Na = (t) => {
|
|
1039
1039
|
if (t.suspense) {
|
|
1040
1040
|
const r = (i) => i === "static" ? i : Math.max(i ?? 1e3, 1e3), n = t.staleTime;
|
|
1041
1041
|
t.staleTime = typeof n == "function" ? (...i) => r(n(...i)) : r(n), typeof t.gcTime == "number" && (t.gcTime = Math.max(
|
|
@@ -1043,7 +1043,7 @@ var Aa = Le.createContext(Ma()), Ra = () => Le.useContext(Aa), Ea = (t, e) => {
|
|
|
1043
1043
|
1e3
|
|
1044
1044
|
));
|
|
1045
1045
|
}
|
|
1046
|
-
}, La = (t, e) => t.isLoading && t.isFetching && !e, Ia = (t, e) => t?.suspense && e.isPending,
|
|
1046
|
+
}, La = (t, e) => t.isLoading && t.isFetching && !e, Ia = (t, e) => t?.suspense && e.isPending, Ro = (t, e, r) => e.fetchOptimistic(t).catch(() => {
|
|
1047
1047
|
r.clearReset();
|
|
1048
1048
|
});
|
|
1049
1049
|
function Ba(t, e, r) {
|
|
@@ -1051,32 +1051,32 @@ function Ba(t, e, r) {
|
|
|
1051
1051
|
throw new Error(
|
|
1052
1052
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
1053
1053
|
);
|
|
1054
|
-
const n = ja(), i = Ra(), l =
|
|
1054
|
+
const n = ja(), i = Ra(), l = qi(), u = l.defaultQueryOptions(t);
|
|
1055
1055
|
l.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
|
1056
1056
|
u
|
|
1057
1057
|
), process.env.NODE_ENV !== "production" && (u.queryFn || console.error(
|
|
1058
1058
|
`[${u.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
1059
1059
|
)), u._optimisticResults = n ? "isRestoring" : "optimistic", Na(u), Ea(u, i), Ta(i);
|
|
1060
|
-
const a = !l.getQueryCache().get(u.queryHash), [m] =
|
|
1060
|
+
const a = !l.getQueryCache().get(u.queryHash), [m] = Ie.useState(
|
|
1061
1061
|
() => new e(
|
|
1062
1062
|
l,
|
|
1063
1063
|
u
|
|
1064
1064
|
)
|
|
1065
1065
|
), y = m.getOptimisticResult(u), _ = !n && t.subscribed !== !1;
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1066
|
+
if (Ie.useSyncExternalStore(
|
|
1067
|
+
Ie.useCallback(
|
|
1068
1068
|
(O) => {
|
|
1069
|
-
const S = _ ? m.subscribe(
|
|
1069
|
+
const S = _ ? m.subscribe(zr.batchCalls(O)) : Tr;
|
|
1070
1070
|
return m.updateResult(), S;
|
|
1071
1071
|
},
|
|
1072
1072
|
[m, _]
|
|
1073
1073
|
),
|
|
1074
1074
|
() => m.getCurrentResult(),
|
|
1075
1075
|
() => m.getCurrentResult()
|
|
1076
|
-
),
|
|
1076
|
+
), Ie.useEffect(() => {
|
|
1077
1077
|
m.setOptions(u);
|
|
1078
1078
|
}, [u, m]), Ia(u, y))
|
|
1079
|
-
throw
|
|
1079
|
+
throw Ro(u, m, i);
|
|
1080
1080
|
if ($a({
|
|
1081
1081
|
result: y,
|
|
1082
1082
|
errorResetBoundary: i,
|
|
@@ -1088,48 +1088,48 @@ function Ba(t, e, r) {
|
|
|
1088
1088
|
return l.getDefaultOptions().queries?._experimental_afterQuery?.(
|
|
1089
1089
|
u,
|
|
1090
1090
|
y
|
|
1091
|
-
), u.experimental_prefetchInRender && !
|
|
1091
|
+
), u.experimental_prefetchInRender && !fr && La(y, n) && (a ? (
|
|
1092
1092
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1093
|
-
|
|
1093
|
+
Ro(u, m, i)
|
|
1094
1094
|
) : (
|
|
1095
1095
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1096
1096
|
l.getQueryCache().get(u.queryHash)?.promise
|
|
1097
|
-
))?.catch(
|
|
1097
|
+
))?.catch(Tr).finally(() => {
|
|
1098
1098
|
m.updateResult();
|
|
1099
1099
|
}), u.notifyOnChangeProps ? y : m.trackResult(y);
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Gi(t, e) {
|
|
1102
1102
|
return Ba(t, _a);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const r =
|
|
1104
|
+
function Vn(t, e) {
|
|
1105
|
+
const r = qi(), [n] = Ie.useState(
|
|
1106
1106
|
() => new Da(
|
|
1107
1107
|
r,
|
|
1108
1108
|
t
|
|
1109
1109
|
)
|
|
1110
1110
|
);
|
|
1111
|
-
|
|
1111
|
+
Ie.useEffect(() => {
|
|
1112
1112
|
n.setOptions(t);
|
|
1113
1113
|
}, [n, t]);
|
|
1114
|
-
const i =
|
|
1115
|
-
|
|
1116
|
-
(u) => n.subscribe(
|
|
1114
|
+
const i = Ie.useSyncExternalStore(
|
|
1115
|
+
Ie.useCallback(
|
|
1116
|
+
(u) => n.subscribe(zr.batchCalls(u)),
|
|
1117
1117
|
[n]
|
|
1118
1118
|
),
|
|
1119
1119
|
() => n.getCurrentResult(),
|
|
1120
1120
|
() => n.getCurrentResult()
|
|
1121
|
-
), l =
|
|
1121
|
+
), l = Ie.useCallback(
|
|
1122
1122
|
(u, a) => {
|
|
1123
|
-
n.mutate(u, a).catch(
|
|
1123
|
+
n.mutate(u, a).catch(Tr);
|
|
1124
1124
|
},
|
|
1125
1125
|
[n]
|
|
1126
1126
|
);
|
|
1127
|
-
if (i.error &&
|
|
1127
|
+
if (i.error && Wi(n.options.throwOnError, [i.error]))
|
|
1128
1128
|
throw i.error;
|
|
1129
1129
|
return { ...i, mutate: l, mutateAsync: i.mutate };
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1132
|
-
function
|
|
1131
|
+
var Eo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1132
|
+
function Hn(t) {
|
|
1133
1133
|
if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
|
|
1134
1134
|
var e = t.default;
|
|
1135
1135
|
if (typeof e == "function") {
|
|
@@ -1148,11 +1148,11 @@ function Vn(t) {
|
|
|
1148
1148
|
});
|
|
1149
1149
|
}), r;
|
|
1150
1150
|
}
|
|
1151
|
-
var
|
|
1152
|
-
var
|
|
1151
|
+
var mn = { exports: {} }, Xt = {};
|
|
1152
|
+
var To;
|
|
1153
1153
|
function Ya() {
|
|
1154
|
-
if (
|
|
1155
|
-
|
|
1154
|
+
if (To) return Xt;
|
|
1155
|
+
To = 1;
|
|
1156
1156
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
1157
1157
|
function r(n, i, l) {
|
|
1158
1158
|
var u = null;
|
|
@@ -1169,12 +1169,12 @@ function Ya() {
|
|
|
1169
1169
|
props: l
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
return
|
|
1172
|
+
return Xt.Fragment = e, Xt.jsx = r, Xt.jsxs = r, Xt;
|
|
1173
1173
|
}
|
|
1174
|
-
var
|
|
1175
|
-
var
|
|
1174
|
+
var Dr = {};
|
|
1175
|
+
var $o;
|
|
1176
1176
|
function za() {
|
|
1177
|
-
return
|
|
1177
|
+
return $o || ($o = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1178
1178
|
function t(f) {
|
|
1179
1179
|
if (f == null) return null;
|
|
1180
1180
|
if (typeof f == "function")
|
|
@@ -1378,7 +1378,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1378
1378
|
S,
|
|
1379
1379
|
l
|
|
1380
1380
|
)(), s = P(n(l)), p = {};
|
|
1381
|
-
|
|
1381
|
+
Dr.Fragment = j, Dr.jsx = function(f, d, v, D, R) {
|
|
1382
1382
|
var U = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
1383
1383
|
return _(
|
|
1384
1384
|
f,
|
|
@@ -1390,7 +1390,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1390
1390
|
U ? Error("react-stack-top-frame") : h,
|
|
1391
1391
|
U ? P(n(f)) : s
|
|
1392
1392
|
);
|
|
1393
|
-
},
|
|
1393
|
+
}, Dr.jsxs = function(f, d, v, D, R) {
|
|
1394
1394
|
var U = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
1395
1395
|
return _(
|
|
1396
1396
|
f,
|
|
@@ -1403,29 +1403,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1403
1403
|
U ? P(n(f)) : s
|
|
1404
1404
|
);
|
|
1405
1405
|
};
|
|
1406
|
-
})()),
|
|
1406
|
+
})()), Dr;
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1408
|
+
var No;
|
|
1409
1409
|
function Fa() {
|
|
1410
|
-
return
|
|
1410
|
+
return No || (No = 1, process.env.NODE_ENV === "production" ? mn.exports = Ya() : mn.exports = za()), mn.exports;
|
|
1411
1411
|
}
|
|
1412
1412
|
Fa();
|
|
1413
|
-
var
|
|
1414
|
-
var
|
|
1413
|
+
var yn = { exports: {} }, vn = {};
|
|
1414
|
+
var Lo;
|
|
1415
1415
|
function Wa() {
|
|
1416
|
-
if (
|
|
1417
|
-
|
|
1416
|
+
if (Lo) return vn;
|
|
1417
|
+
Lo = 1;
|
|
1418
1418
|
var t = Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1419
|
-
return
|
|
1419
|
+
return vn.c = function(e) {
|
|
1420
1420
|
return t.H.useMemoCache(e);
|
|
1421
|
-
},
|
|
1421
|
+
}, vn;
|
|
1422
1422
|
}
|
|
1423
|
-
var
|
|
1424
|
-
var
|
|
1423
|
+
var Io = {};
|
|
1424
|
+
var Bo;
|
|
1425
1425
|
function Ua() {
|
|
1426
|
-
return
|
|
1426
|
+
return Bo || (Bo = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1427
1427
|
var t = Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1428
|
-
|
|
1428
|
+
Io.c = function(e) {
|
|
1429
1429
|
var r = t.H;
|
|
1430
1430
|
return r === null && console.error(
|
|
1431
1431
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
@@ -1435,17 +1435,17 @@ function Ua() {
|
|
|
1435
1435
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
1436
1436
|
), r.useMemoCache(e);
|
|
1437
1437
|
};
|
|
1438
|
-
})()),
|
|
1438
|
+
})()), Io;
|
|
1439
1439
|
}
|
|
1440
|
-
var
|
|
1440
|
+
var Yo;
|
|
1441
1441
|
function qa() {
|
|
1442
|
-
return
|
|
1442
|
+
return Yo || (Yo = 1, process.env.NODE_ENV === "production" ? yn.exports = Wa() : yn.exports = Ua()), yn.exports;
|
|
1443
1443
|
}
|
|
1444
1444
|
qa();
|
|
1445
|
-
var
|
|
1445
|
+
var zo = {}, er = {}, Fo;
|
|
1446
1446
|
function Va() {
|
|
1447
|
-
if (
|
|
1448
|
-
|
|
1447
|
+
if (Fo) return er;
|
|
1448
|
+
Fo = 1, er.byteLength = a, er.toByteArray = y, er.fromByteArray = S;
|
|
1449
1449
|
for (var t = [], e = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, l = n.length; i < l; ++i)
|
|
1450
1450
|
t[i] = n[i], e[n.charCodeAt(i)] = i;
|
|
1451
1451
|
e[45] = 62, e[95] = 63;
|
|
@@ -1488,12 +1488,12 @@ function Va() {
|
|
|
1488
1488
|
t[k >> 10] + t[k >> 4 & 63] + t[k << 2 & 63] + "="
|
|
1489
1489
|
)), z.join("");
|
|
1490
1490
|
}
|
|
1491
|
-
return
|
|
1491
|
+
return er;
|
|
1492
1492
|
}
|
|
1493
|
-
var
|
|
1494
|
-
var
|
|
1493
|
+
var bn = {};
|
|
1494
|
+
var Wo;
|
|
1495
1495
|
function Ha() {
|
|
1496
|
-
return
|
|
1496
|
+
return Wo || (Wo = 1, bn.read = function(t, e, r, n, i) {
|
|
1497
1497
|
var l, u, a = i * 8 - n - 1, m = (1 << a) - 1, y = m >> 1, _ = -7, O = r ? i - 1 : 0, S = r ? -1 : 1, C = t[e + O];
|
|
1498
1498
|
for (O += S, l = C & (1 << -_) - 1, C >>= -_, _ += a; _ > 0; l = l * 256 + t[e + O], O += S, _ -= 8)
|
|
1499
1499
|
;
|
|
@@ -1507,29 +1507,29 @@ function Ha() {
|
|
|
1507
1507
|
u = u + Math.pow(2, n), l = l - y;
|
|
1508
1508
|
}
|
|
1509
1509
|
return (C ? -1 : 1) * u * Math.pow(2, l - n);
|
|
1510
|
-
},
|
|
1510
|
+
}, bn.write = function(t, e, r, n, i, l) {
|
|
1511
1511
|
var u, a, m, y = l * 8 - i - 1, _ = (1 << y) - 1, O = _ >> 1, S = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = n ? 0 : l - 1, k = n ? 1 : -1, j = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
1512
1512
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, u = _) : (u = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -u)) < 1 && (u--, m *= 2), u + O >= 1 ? e += S / m : e += S * Math.pow(2, 1 - O), e * m >= 2 && (u++, m /= 2), u + O >= _ ? (a = 0, u = _) : u + O >= 1 ? (a = (e * m - 1) * Math.pow(2, i), u = u + O) : (a = e * Math.pow(2, O - 1) * Math.pow(2, i), u = 0)); i >= 8; t[r + C] = a & 255, C += k, a /= 256, i -= 8)
|
|
1513
1513
|
;
|
|
1514
1514
|
for (u = u << i | a, y += i; y > 0; t[r + C] = u & 255, C += k, u /= 256, y -= 8)
|
|
1515
1515
|
;
|
|
1516
1516
|
t[r + C - k] |= j * 128;
|
|
1517
|
-
}),
|
|
1517
|
+
}), bn;
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var wn, Uo;
|
|
1520
1520
|
function Ga() {
|
|
1521
|
-
if (
|
|
1522
|
-
|
|
1521
|
+
if (Uo) return wn;
|
|
1522
|
+
Uo = 1;
|
|
1523
1523
|
var t = {}.toString;
|
|
1524
|
-
return
|
|
1524
|
+
return wn = Array.isArray || function(e) {
|
|
1525
1525
|
return t.call(e) == "[object Array]";
|
|
1526
|
-
},
|
|
1526
|
+
}, wn;
|
|
1527
1527
|
}
|
|
1528
|
-
var
|
|
1528
|
+
var qo;
|
|
1529
1529
|
function Qa() {
|
|
1530
|
-
return
|
|
1530
|
+
return qo || (qo = 1, (function(t) {
|
|
1531
1531
|
var e = Va(), r = Ha(), n = Ga();
|
|
1532
|
-
t.Buffer = a, t.SlowBuffer = z, t.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT =
|
|
1532
|
+
t.Buffer = a, t.SlowBuffer = z, t.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = Eo.TYPED_ARRAY_SUPPORT !== void 0 ? Eo.TYPED_ARRAY_SUPPORT : i(), t.kMaxLength = l();
|
|
1533
1533
|
function i() {
|
|
1534
1534
|
try {
|
|
1535
1535
|
var o = new Uint8Array(1);
|
|
@@ -1825,8 +1825,8 @@ function Qa() {
|
|
|
1825
1825
|
return -1;
|
|
1826
1826
|
Y = 2, se /= 2, ue /= 2, g /= 2;
|
|
1827
1827
|
}
|
|
1828
|
-
function he(xe,
|
|
1829
|
-
return Y === 1 ? xe[
|
|
1828
|
+
function he(xe, we) {
|
|
1829
|
+
return Y === 1 ? xe[we] : xe.readUInt16BE(we * Y);
|
|
1830
1830
|
}
|
|
1831
1831
|
var G;
|
|
1832
1832
|
if (T) {
|
|
@@ -2288,7 +2288,7 @@ function Qa() {
|
|
|
2288
2288
|
function le(o) {
|
|
2289
2289
|
return o !== o;
|
|
2290
2290
|
}
|
|
2291
|
-
})(
|
|
2291
|
+
})(zo)), zo;
|
|
2292
2292
|
}
|
|
2293
2293
|
Qa();
|
|
2294
2294
|
var Tt;
|
|
@@ -2300,29 +2300,29 @@ if (!Tt && typeof require == "function")
|
|
|
2300
2300
|
Tt = require("crypto");
|
|
2301
2301
|
} catch {
|
|
2302
2302
|
}
|
|
2303
|
-
var
|
|
2304
|
-
var
|
|
2305
|
-
return
|
|
2303
|
+
var Vo = {};
|
|
2304
|
+
var An = function(t, e) {
|
|
2305
|
+
return An = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
2306
2306
|
r.__proto__ = n;
|
|
2307
2307
|
} || function(r, n) {
|
|
2308
2308
|
for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]);
|
|
2309
|
-
},
|
|
2309
|
+
}, An(t, e);
|
|
2310
2310
|
};
|
|
2311
2311
|
function Za(t, e) {
|
|
2312
|
-
|
|
2312
|
+
An(t, e);
|
|
2313
2313
|
function r() {
|
|
2314
2314
|
this.constructor = t;
|
|
2315
2315
|
}
|
|
2316
2316
|
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
2317
2317
|
}
|
|
2318
|
-
var
|
|
2319
|
-
return
|
|
2318
|
+
var Rn = function() {
|
|
2319
|
+
return Rn = Object.assign || function(t) {
|
|
2320
2320
|
for (var e, r = 1, n = arguments.length; r < n; r++) {
|
|
2321
2321
|
e = arguments[r];
|
|
2322
2322
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
2323
2323
|
}
|
|
2324
2324
|
return t;
|
|
2325
|
-
},
|
|
2325
|
+
}, Rn.apply(this, arguments);
|
|
2326
2326
|
};
|
|
2327
2327
|
function Ka(t, e) {
|
|
2328
2328
|
var r = {};
|
|
@@ -2439,7 +2439,7 @@ function nl(t, e, r, n) {
|
|
|
2439
2439
|
function ol(t, e) {
|
|
2440
2440
|
for (var r in t) r !== "default" && !e.hasOwnProperty(r) && (e[r] = t[r]);
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function En(t) {
|
|
2443
2443
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
2444
2444
|
if (r) return r.call(t);
|
|
2445
2445
|
if (t && typeof t.length == "number") return {
|
|
@@ -2449,7 +2449,7 @@ function Rn(t) {
|
|
|
2449
2449
|
};
|
|
2450
2450
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2452
|
+
function Qi(t, e) {
|
|
2453
2453
|
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
2454
2454
|
if (!r) return t;
|
|
2455
2455
|
var n = r.call(t), i, l = [], u;
|
|
@@ -2468,7 +2468,7 @@ function Gi(t, e) {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
function il() {
|
|
2470
2470
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
2471
|
-
t = t.concat(
|
|
2471
|
+
t = t.concat(Qi(arguments[e]));
|
|
2472
2472
|
return t;
|
|
2473
2473
|
}
|
|
2474
2474
|
function sl() {
|
|
@@ -2478,8 +2478,8 @@ function sl() {
|
|
|
2478
2478
|
n[i] = l[u];
|
|
2479
2479
|
return n;
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2482
|
-
return this instanceof
|
|
2481
|
+
function pr(t) {
|
|
2482
|
+
return this instanceof pr ? (this.v = t, this) : new pr(t);
|
|
2483
2483
|
}
|
|
2484
2484
|
function al(t, e, r) {
|
|
2485
2485
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -2502,7 +2502,7 @@ function al(t, e, r) {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
2504
|
function m(S) {
|
|
2505
|
-
S.value instanceof
|
|
2505
|
+
S.value instanceof pr ? Promise.resolve(S.value.v).then(y, _) : O(l[0][2], S);
|
|
2506
2506
|
}
|
|
2507
2507
|
function y(S) {
|
|
2508
2508
|
a("next", S);
|
|
@@ -2523,14 +2523,14 @@ function ll(t) {
|
|
|
2523
2523
|
}, e;
|
|
2524
2524
|
function n(i, l) {
|
|
2525
2525
|
e[i] = t[i] ? function(u) {
|
|
2526
|
-
return (r = !r) ? { value:
|
|
2526
|
+
return (r = !r) ? { value: pr(t[i](u)), done: i === "return" } : l ? l(u) : u;
|
|
2527
2527
|
} : l;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
2530
|
function cl(t) {
|
|
2531
2531
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2532
2532
|
var e = t[Symbol.asyncIterator], r;
|
|
2533
|
-
return e ? e.call(t) : (t = typeof
|
|
2533
|
+
return e ? e.call(t) : (t = typeof En == "function" ? En(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
|
|
2534
2534
|
return this;
|
|
2535
2535
|
}, r);
|
|
2536
2536
|
function n(l) {
|
|
@@ -2571,12 +2571,12 @@ function pl(t, e, r) {
|
|
|
2571
2571
|
const gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2572
2572
|
__proto__: null,
|
|
2573
2573
|
get __assign() {
|
|
2574
|
-
return
|
|
2574
|
+
return Rn;
|
|
2575
2575
|
},
|
|
2576
2576
|
__asyncDelegator: ll,
|
|
2577
2577
|
__asyncGenerator: al,
|
|
2578
2578
|
__asyncValues: cl,
|
|
2579
|
-
__await:
|
|
2579
|
+
__await: pr,
|
|
2580
2580
|
__awaiter: tl,
|
|
2581
2581
|
__classPrivateFieldGet: fl,
|
|
2582
2582
|
__classPrivateFieldSet: pl,
|
|
@@ -2590,15 +2590,15 @@ const gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2590
2590
|
__makeTemplateObject: ul,
|
|
2591
2591
|
__metadata: el,
|
|
2592
2592
|
__param: Xa,
|
|
2593
|
-
__read:
|
|
2593
|
+
__read: Qi,
|
|
2594
2594
|
__rest: Ka,
|
|
2595
2595
|
__spread: il,
|
|
2596
2596
|
__spreadArrays: sl,
|
|
2597
|
-
__values:
|
|
2598
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2599
|
-
var
|
|
2600
|
-
function
|
|
2601
|
-
return
|
|
2597
|
+
__values: En
|
|
2598
|
+
}, Symbol.toStringTag, { value: "Module" })), Zi = /* @__PURE__ */ Hn(gl);
|
|
2599
|
+
var tr = {}, Je = {}, Ho;
|
|
2600
|
+
function Ki() {
|
|
2601
|
+
return Ho || (Ho = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.MAX_HASHABLE_LENGTH = Je.INIT = Je.KEY = Je.DIGEST_LENGTH = Je.BLOCK_SIZE = void 0, Je.BLOCK_SIZE = 64, Je.DIGEST_LENGTH = 32, Je.KEY = new Uint32Array([
|
|
2602
2602
|
1116352408,
|
|
2603
2603
|
1899447441,
|
|
2604
2604
|
3049323471,
|
|
@@ -2663,7 +2663,7 @@ function Zi() {
|
|
|
2663
2663
|
2756734187,
|
|
2664
2664
|
3204031479,
|
|
2665
2665
|
3329325298
|
|
2666
|
-
]),
|
|
2666
|
+
]), Je.INIT = [
|
|
2667
2667
|
1779033703,
|
|
2668
2668
|
3144134277,
|
|
2669
2669
|
1013904242,
|
|
@@ -2672,13 +2672,13 @@ function Zi() {
|
|
|
2672
2672
|
2600822924,
|
|
2673
2673
|
528734635,
|
|
2674
2674
|
1541459225
|
|
2675
|
-
],
|
|
2675
|
+
], Je.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1), Je;
|
|
2676
2676
|
}
|
|
2677
|
-
var
|
|
2677
|
+
var rr = {}, Go;
|
|
2678
2678
|
function ml() {
|
|
2679
|
-
if (
|
|
2680
|
-
|
|
2681
|
-
var t =
|
|
2679
|
+
if (Go) return rr;
|
|
2680
|
+
Go = 1, Object.defineProperty(rr, "__esModule", { value: !0 }), rr.RawSha256 = void 0;
|
|
2681
|
+
var t = Ki(), e = (
|
|
2682
2682
|
/** @class */
|
|
2683
2683
|
(function() {
|
|
2684
2684
|
function r() {
|
|
@@ -2724,9 +2724,9 @@ function ml() {
|
|
|
2724
2724
|
}, r;
|
|
2725
2725
|
})()
|
|
2726
2726
|
);
|
|
2727
|
-
return
|
|
2727
|
+
return rr.RawSha256 = e, rr;
|
|
2728
2728
|
}
|
|
2729
|
-
var
|
|
2729
|
+
var Qo = {}, nr = {};
|
|
2730
2730
|
const yl = (t) => {
|
|
2731
2731
|
const e = [];
|
|
2732
2732
|
for (let r = 0, n = t.length; r < n; r++) {
|
|
@@ -2769,32 +2769,32 @@ const _l = (t) => typeof TextEncoder == "function" ? bl(t) : yl(t), xl = (t) =>
|
|
|
2769
2769
|
__proto__: null,
|
|
2770
2770
|
fromUtf8: _l,
|
|
2771
2771
|
toUtf8: xl
|
|
2772
|
-
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */
|
|
2773
|
-
var
|
|
2772
|
+
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Hn(Cl);
|
|
2773
|
+
var Zo;
|
|
2774
2774
|
function Dl() {
|
|
2775
|
-
if (
|
|
2776
|
-
|
|
2775
|
+
if (Zo) return nr;
|
|
2776
|
+
Zo = 1, Object.defineProperty(nr, "__esModule", { value: !0 }), nr.convertToBuffer = void 0;
|
|
2777
2777
|
var t = Sl, e = typeof Buffer < "u" && Buffer.from ? function(n) {
|
|
2778
2778
|
return Buffer.from(n, "utf8");
|
|
2779
2779
|
} : t.fromUtf8;
|
|
2780
2780
|
function r(n) {
|
|
2781
2781
|
return n instanceof Uint8Array ? n : typeof n == "string" ? e(n) : ArrayBuffer.isView(n) ? new Uint8Array(n.buffer, n.byteOffset, n.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(n);
|
|
2782
2782
|
}
|
|
2783
|
-
return
|
|
2783
|
+
return nr.convertToBuffer = r, nr;
|
|
2784
2784
|
}
|
|
2785
|
-
var
|
|
2785
|
+
var or = {}, Ko;
|
|
2786
2786
|
function kl() {
|
|
2787
|
-
if (
|
|
2788
|
-
|
|
2787
|
+
if (Ko) return or;
|
|
2788
|
+
Ko = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.isEmptyData = void 0;
|
|
2789
2789
|
function t(e) {
|
|
2790
2790
|
return typeof e == "string" ? e.length === 0 : e.byteLength === 0;
|
|
2791
2791
|
}
|
|
2792
|
-
return
|
|
2792
|
+
return or.isEmptyData = t, or;
|
|
2793
2793
|
}
|
|
2794
|
-
var
|
|
2794
|
+
var ir = {}, Jo;
|
|
2795
2795
|
function Pl() {
|
|
2796
|
-
if (
|
|
2797
|
-
|
|
2796
|
+
if (Jo) return ir;
|
|
2797
|
+
Jo = 1, Object.defineProperty(ir, "__esModule", { value: !0 }), ir.numToUint8 = void 0;
|
|
2798
2798
|
function t(e) {
|
|
2799
2799
|
return new Uint8Array([
|
|
2800
2800
|
(e & 4278190080) >> 24,
|
|
@@ -2803,12 +2803,12 @@ function Pl() {
|
|
|
2803
2803
|
e & 255
|
|
2804
2804
|
]);
|
|
2805
2805
|
}
|
|
2806
|
-
return
|
|
2806
|
+
return ir.numToUint8 = t, ir;
|
|
2807
2807
|
}
|
|
2808
|
-
var
|
|
2808
|
+
var sr = {}, Xo;
|
|
2809
2809
|
function Ol() {
|
|
2810
|
-
if (
|
|
2811
|
-
|
|
2810
|
+
if (Xo) return sr;
|
|
2811
|
+
Xo = 1, Object.defineProperty(sr, "__esModule", { value: !0 }), sr.uint32ArrayFrom = void 0;
|
|
2812
2812
|
function t(e) {
|
|
2813
2813
|
if (!Array.from) {
|
|
2814
2814
|
for (var r = new Uint32Array(e.length), n = 0; n < e.length; )
|
|
@@ -2817,11 +2817,11 @@ function Ol() {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
return Uint32Array.from(e);
|
|
2819
2819
|
}
|
|
2820
|
-
return
|
|
2820
|
+
return sr.uint32ArrayFrom = t, sr;
|
|
2821
2821
|
}
|
|
2822
|
-
var
|
|
2822
|
+
var ei;
|
|
2823
2823
|
function jl() {
|
|
2824
|
-
return
|
|
2824
|
+
return ei || (ei = 1, (function(t) {
|
|
2825
2825
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.uint32ArrayFrom = t.numToUint8 = t.isEmptyData = t.convertToBuffer = void 0;
|
|
2826
2826
|
var e = Dl();
|
|
2827
2827
|
Object.defineProperty(t, "convertToBuffer", { enumerable: !0, get: function() {
|
|
@@ -2839,13 +2839,13 @@ function jl() {
|
|
|
2839
2839
|
Object.defineProperty(t, "uint32ArrayFrom", { enumerable: !0, get: function() {
|
|
2840
2840
|
return i.uint32ArrayFrom;
|
|
2841
2841
|
} });
|
|
2842
|
-
})(
|
|
2842
|
+
})(Qo)), Qo;
|
|
2843
2843
|
}
|
|
2844
|
-
var
|
|
2844
|
+
var ti;
|
|
2845
2845
|
function Ml() {
|
|
2846
|
-
if (
|
|
2847
|
-
|
|
2848
|
-
var t =
|
|
2846
|
+
if (ti) return tr;
|
|
2847
|
+
ti = 1, Object.defineProperty(tr, "__esModule", { value: !0 }), tr.Sha256 = void 0;
|
|
2848
|
+
var t = Zi, e = Ki(), r = ml(), n = jl(), i = (
|
|
2849
2849
|
/** @class */
|
|
2850
2850
|
(function() {
|
|
2851
2851
|
function u(a) {
|
|
@@ -2880,7 +2880,7 @@ function Ml() {
|
|
|
2880
2880
|
}, u;
|
|
2881
2881
|
})()
|
|
2882
2882
|
);
|
|
2883
|
-
|
|
2883
|
+
tr.Sha256 = i;
|
|
2884
2884
|
function l(u) {
|
|
2885
2885
|
var a = (0, n.convertToBuffer)(u);
|
|
2886
2886
|
if (a.byteLength > e.BLOCK_SIZE) {
|
|
@@ -2890,24 +2890,24 @@ function Ml() {
|
|
|
2890
2890
|
var y = new Uint8Array(e.BLOCK_SIZE);
|
|
2891
2891
|
return y.set(a), y;
|
|
2892
2892
|
}
|
|
2893
|
-
return
|
|
2893
|
+
return tr;
|
|
2894
2894
|
}
|
|
2895
|
-
var
|
|
2895
|
+
var ri;
|
|
2896
2896
|
function Al() {
|
|
2897
|
-
return
|
|
2897
|
+
return ri || (ri = 1, (function(t) {
|
|
2898
2898
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
2899
|
-
var e =
|
|
2899
|
+
var e = Zi;
|
|
2900
2900
|
(0, e.__exportStar)(Ml(), t);
|
|
2901
|
-
})(
|
|
2901
|
+
})(Vo)), Vo;
|
|
2902
2902
|
}
|
|
2903
2903
|
Al();
|
|
2904
2904
|
function ge(t, e) {
|
|
2905
2905
|
t != null && this.fromString(t, e);
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function Fe() {
|
|
2908
2908
|
return new ge(null);
|
|
2909
2909
|
}
|
|
2910
|
-
var xt, Rl = 244837814094590,
|
|
2910
|
+
var xt, Rl = 244837814094590, ni = (Rl & 16777215) == 15715070;
|
|
2911
2911
|
function El(t, e, r, n, i, l) {
|
|
2912
2912
|
for (; --l >= 0; ) {
|
|
2913
2913
|
var u = e * this[t++] + r[n] + i;
|
|
@@ -2929,27 +2929,27 @@ function $l(t, e, r, n, i, l) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
return i;
|
|
2931
2931
|
}
|
|
2932
|
-
var
|
|
2933
|
-
|
|
2932
|
+
var oi = typeof navigator < "u";
|
|
2933
|
+
oi && ni && navigator.appName == "Microsoft Internet Explorer" ? (ge.prototype.am = Tl, xt = 30) : oi && ni && navigator.appName != "Netscape" ? (ge.prototype.am = El, xt = 26) : (ge.prototype.am = $l, xt = 28);
|
|
2934
2934
|
ge.prototype.DB = xt;
|
|
2935
2935
|
ge.prototype.DM = (1 << xt) - 1;
|
|
2936
2936
|
ge.prototype.DV = 1 << xt;
|
|
2937
|
-
var
|
|
2938
|
-
ge.prototype.FV = Math.pow(2,
|
|
2939
|
-
ge.prototype.F1 =
|
|
2940
|
-
ge.prototype.F2 = 2 * xt -
|
|
2941
|
-
var Nl = "0123456789abcdefghijklmnopqrstuvwxyz",
|
|
2937
|
+
var Gn = 52;
|
|
2938
|
+
ge.prototype.FV = Math.pow(2, Gn);
|
|
2939
|
+
ge.prototype.F1 = Gn - xt;
|
|
2940
|
+
ge.prototype.F2 = 2 * xt - Gn;
|
|
2941
|
+
var Nl = "0123456789abcdefghijklmnopqrstuvwxyz", Fr = new Array(), qt, et;
|
|
2942
2942
|
qt = 48;
|
|
2943
|
-
for (
|
|
2943
|
+
for (et = 0; et <= 9; ++et) Fr[qt++] = et;
|
|
2944
2944
|
qt = 97;
|
|
2945
|
-
for (
|
|
2945
|
+
for (et = 10; et < 36; ++et) Fr[qt++] = et;
|
|
2946
2946
|
qt = 65;
|
|
2947
|
-
for (
|
|
2948
|
-
function
|
|
2947
|
+
for (et = 10; et < 36; ++et) Fr[qt++] = et;
|
|
2948
|
+
function ii(t) {
|
|
2949
2949
|
return Nl.charAt(t);
|
|
2950
2950
|
}
|
|
2951
2951
|
function Ll(t, e) {
|
|
2952
|
-
var r =
|
|
2952
|
+
var r = Fr[t.charCodeAt(e)];
|
|
2953
2953
|
return r ?? -1;
|
|
2954
2954
|
}
|
|
2955
2955
|
function Il(t) {
|
|
@@ -2959,8 +2959,8 @@ function Il(t) {
|
|
|
2959
2959
|
function Bl(t) {
|
|
2960
2960
|
this.t = 1, this.s = t < 0 ? -1 : 0, t > 0 ? this[0] = t : t < -1 ? this[0] = t + this.DV : this.t = 0;
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2963
|
-
var e =
|
|
2962
|
+
function Qn(t) {
|
|
2963
|
+
var e = Fe();
|
|
2964
2964
|
return e.fromInt(t), e;
|
|
2965
2965
|
}
|
|
2966
2966
|
function Yl(t, e) {
|
|
@@ -2996,12 +2996,12 @@ function Fl(t) {
|
|
|
2996
2996
|
else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
|
|
2997
2997
|
var r = (1 << e) - 1, n, i = !1, l = "", u = this.t, a = this.DB - u * this.DB % e;
|
|
2998
2998
|
if (u-- > 0)
|
|
2999
|
-
for (a < this.DB && (n = this[u] >> a) > 0 && (i = !0, l =
|
|
3000
|
-
a < e ? (n = (this[u] & (1 << a) - 1) << e - a, n |= this[--u] >> (a += this.DB - e)) : (n = this[u] >> (a -= e) & r, a <= 0 && (a += this.DB, --u)), n > 0 && (i = !0), i && (l +=
|
|
2999
|
+
for (a < this.DB && (n = this[u] >> a) > 0 && (i = !0, l = ii(n)); u >= 0; )
|
|
3000
|
+
a < e ? (n = (this[u] & (1 << a) - 1) << e - a, n |= this[--u] >> (a += this.DB - e)) : (n = this[u] >> (a -= e) & r, a <= 0 && (a += this.DB, --u)), n > 0 && (i = !0), i && (l += ii(n));
|
|
3001
3001
|
return i ? l : "0";
|
|
3002
3002
|
}
|
|
3003
3003
|
function Wl() {
|
|
3004
|
-
var t =
|
|
3004
|
+
var t = Fe();
|
|
3005
3005
|
return ge.ZERO.subTo(this, t), t;
|
|
3006
3006
|
}
|
|
3007
3007
|
function Ul() {
|
|
@@ -3015,12 +3015,12 @@ function ql(t) {
|
|
|
3015
3015
|
for (; --r >= 0; ) if ((e = this[r] - t[r]) != 0) return e;
|
|
3016
3016
|
return 0;
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function Zn(t) {
|
|
3019
3019
|
var e = 1, r;
|
|
3020
3020
|
return (r = t >>> 16) != 0 && (t = r, e += 16), (r = t >> 8) != 0 && (t = r, e += 8), (r = t >> 4) != 0 && (t = r, e += 4), (r = t >> 2) != 0 && (t = r, e += 2), (r = t >> 1) != 0 && (t = r, e += 1), e;
|
|
3021
3021
|
}
|
|
3022
3022
|
function Vl() {
|
|
3023
|
-
return this.t <= 0 ? 0 : this.DB * (this.t - 1) +
|
|
3023
|
+
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Zn(this[this.t - 1] ^ this.s & this.DM);
|
|
3024
3024
|
}
|
|
3025
3025
|
function Hl(t, e) {
|
|
3026
3026
|
var r;
|
|
@@ -3088,12 +3088,12 @@ function ec(t, e, r) {
|
|
|
3088
3088
|
e?.fromInt(0), r != null && this.copyTo(r);
|
|
3089
3089
|
return;
|
|
3090
3090
|
}
|
|
3091
|
-
r == null && (r =
|
|
3092
|
-
var l =
|
|
3091
|
+
r == null && (r = Fe());
|
|
3092
|
+
var l = Fe(), u = this.s, a = t.s, m = this.DB - Zn(n[n.t - 1]);
|
|
3093
3093
|
m > 0 ? (n.lShiftTo(m, l), i.lShiftTo(m, r)) : (n.copyTo(l), i.copyTo(r));
|
|
3094
3094
|
var y = l.t, _ = l[y - 1];
|
|
3095
3095
|
if (_ != 0) {
|
|
3096
|
-
var O = _ * (1 << this.F1) + (y > 1 ? l[y - 2] >> this.F2 : 0), S = this.FV / O, C = (1 << this.F1) / O, k = 1 << this.F2, j = r.t, $ = j - y, z = e ??
|
|
3096
|
+
var O = _ * (1 << this.F1) + (y > 1 ? l[y - 2] >> this.F2 : 0), S = this.FV / O, C = (1 << this.F1) / O, k = 1 << this.F2, j = r.t, $ = j - y, z = e ?? Fe();
|
|
3097
3097
|
for (l.dlShiftTo($, z), r.compareTo(z) >= 0 && (r[r.t++] = 1, r.subTo(z, r)), ge.ONE.dlShiftTo(y, z), z.subTo(l, l); l.t < y; ) l[l.t++] = 0;
|
|
3098
3098
|
for (; --$ >= 0; ) {
|
|
3099
3099
|
var L = r[--j] == _ ? this.DM : Math.floor(r[j] * S + (r[j - 1] + k) * C);
|
|
@@ -3105,7 +3105,7 @@ function ec(t, e, r) {
|
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
3107
|
function tc(t) {
|
|
3108
|
-
var e =
|
|
3108
|
+
var e = Fe();
|
|
3109
3109
|
return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(ge.ZERO) > 0 && t.subTo(e, e), e;
|
|
3110
3110
|
}
|
|
3111
3111
|
function rc() {
|
|
@@ -3133,30 +3133,30 @@ function oc(t, e) {
|
|
|
3133
3133
|
e.s = n < 0 ? -1 : 0, n > 0 ? e[r++] = n : n < -1 && (e[r++] = this.DV + n), e.t = r, e.clamp();
|
|
3134
3134
|
}
|
|
3135
3135
|
function ic(t) {
|
|
3136
|
-
var e =
|
|
3136
|
+
var e = Fe();
|
|
3137
3137
|
return this.addTo(t, e), e;
|
|
3138
3138
|
}
|
|
3139
3139
|
function sc(t) {
|
|
3140
|
-
var e =
|
|
3140
|
+
var e = Fe();
|
|
3141
3141
|
return this.subTo(t, e), e;
|
|
3142
3142
|
}
|
|
3143
3143
|
function ac(t) {
|
|
3144
|
-
var e =
|
|
3144
|
+
var e = Fe();
|
|
3145
3145
|
return this.multiplyTo(t, e), e;
|
|
3146
3146
|
}
|
|
3147
3147
|
function lc(t) {
|
|
3148
|
-
var e =
|
|
3148
|
+
var e = Fe();
|
|
3149
3149
|
return this.divRemTo(t, e, null), e;
|
|
3150
3150
|
}
|
|
3151
3151
|
function Vt(t) {
|
|
3152
3152
|
this.m = t, this.mp = t.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t;
|
|
3153
3153
|
}
|
|
3154
3154
|
function cc(t) {
|
|
3155
|
-
var e =
|
|
3155
|
+
var e = Fe();
|
|
3156
3156
|
return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(ge.ZERO) > 0 && this.m.subTo(e, e), e;
|
|
3157
3157
|
}
|
|
3158
3158
|
function uc(t) {
|
|
3159
|
-
var e =
|
|
3159
|
+
var e = Fe();
|
|
3160
3160
|
return t.copyTo(e), this.reduce(e), e;
|
|
3161
3161
|
}
|
|
3162
3162
|
function dc(t) {
|
|
@@ -3181,17 +3181,17 @@ Vt.prototype.reduce = dc;
|
|
|
3181
3181
|
Vt.prototype.mulTo = fc;
|
|
3182
3182
|
Vt.prototype.sqrTo = hc;
|
|
3183
3183
|
function pc(t, e, r) {
|
|
3184
|
-
var n = t.bitLength(), i, l =
|
|
3184
|
+
var n = t.bitLength(), i, l = Qn(1), u = new Vt(e);
|
|
3185
3185
|
if (n <= 0) return l;
|
|
3186
3186
|
n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6;
|
|
3187
3187
|
var a = new Array(), m = 3, y = i - 1, _ = (1 << i) - 1;
|
|
3188
3188
|
if (a[1] = u.convert(this), i > 1) {
|
|
3189
|
-
var O =
|
|
3189
|
+
var O = Fe();
|
|
3190
3190
|
for (u.sqrTo(a[1], O); m <= _; )
|
|
3191
|
-
a[m] =
|
|
3191
|
+
a[m] = Fe(), u.mulTo(O, a[m - 2], a[m]), m += 2;
|
|
3192
3192
|
}
|
|
3193
|
-
var S = t.t - 1, C, k = !0, j =
|
|
3194
|
-
for (n =
|
|
3193
|
+
var S = t.t - 1, C, k = !0, j = Fe(), $;
|
|
3194
|
+
for (n = Zn(t[S]) - 1; S >= 0; ) {
|
|
3195
3195
|
for (n >= y ? C = t[S] >> n - y & _ : (C = (t[S] & (1 << n + 1) - 1) << y - n, S > 0 && (C |= t[S - 1] >> this.DB + n - y)), m = i; (C & 1) == 0; )
|
|
3196
3196
|
C >>= 1, --m;
|
|
3197
3197
|
if ((n -= m) < 0 && (n += this.DB, --S), k)
|
|
@@ -3233,8 +3233,8 @@ ge.prototype.subtract = sc;
|
|
|
3233
3233
|
ge.prototype.multiply = ac;
|
|
3234
3234
|
ge.prototype.divide = lc;
|
|
3235
3235
|
ge.prototype.modPow = pc;
|
|
3236
|
-
ge.ZERO =
|
|
3237
|
-
ge.ONE =
|
|
3236
|
+
ge.ZERO = Qn(0);
|
|
3237
|
+
ge.ONE = Qn(1);
|
|
3238
3238
|
function gc(t, e) {
|
|
3239
3239
|
return e = e || {}, new Promise(function(r, n) {
|
|
3240
3240
|
var i = new XMLHttpRequest(), l = [], u = [], a = {}, m = function() {
|
|
@@ -3265,16 +3265,16 @@ function gc(t, e) {
|
|
|
3265
3265
|
const mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3266
3266
|
__proto__: null,
|
|
3267
3267
|
default: gc
|
|
3268
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3269
|
-
var
|
|
3268
|
+
}, Symbol.toStringTag, { value: "Module" })), si = /* @__PURE__ */ Hn(mc);
|
|
3269
|
+
var ai, li;
|
|
3270
3270
|
function yc() {
|
|
3271
|
-
return
|
|
3271
|
+
return li || (li = 1, ai = self.fetch || (self.fetch = si.default || si)), ai;
|
|
3272
3272
|
}
|
|
3273
3273
|
yc();
|
|
3274
|
-
var
|
|
3275
|
-
var
|
|
3274
|
+
var ci = { exports: {} };
|
|
3275
|
+
var ui;
|
|
3276
3276
|
function vc() {
|
|
3277
|
-
return
|
|
3277
|
+
return ui || (ui = 1, (function(t, e) {
|
|
3278
3278
|
(function(r) {
|
|
3279
3279
|
var n;
|
|
3280
3280
|
if (t.exports = r(), n = !0, !n) {
|
|
@@ -3356,7 +3356,7 @@ function vc() {
|
|
|
3356
3356
|
return i(function() {
|
|
3357
3357
|
});
|
|
3358
3358
|
});
|
|
3359
|
-
})(
|
|
3359
|
+
})(ci)), ci.exports;
|
|
3360
3360
|
}
|
|
3361
3361
|
vc();
|
|
3362
3362
|
function bc() {
|
|
@@ -3386,14 +3386,14 @@ async function xc() {
|
|
|
3386
3386
|
} = await _c();
|
|
3387
3387
|
return t?.getIdToken().getJwtToken();
|
|
3388
3388
|
}
|
|
3389
|
-
|
|
3390
|
-
var Cc = "undefined", Sc = "object",
|
|
3391
|
-
|
|
3392
|
-
var
|
|
3389
|
+
Fn(void 0);
|
|
3390
|
+
var Cc = "undefined", Sc = "object", kr = "browser", di = "cpu", hi = "device", _n = "engine", Pr = "os", _t = "name", Nr = "type", Tn = "vendor", it = "version", $n = "architecture", Nn = "major", Ln = "model", Dc = "console", kc = "mobile", Pc = "tablet", Oc = "smarttv", jc = "wearable", Mc = "embedded", Ac = typeof window !== Cc, xn = Ac && window.navigator ? window.navigator : void 0;
|
|
3391
|
+
xn && xn.userAgentData && xn.userAgentData;
|
|
3392
|
+
var Wr = function(t) {
|
|
3393
3393
|
for (var e = {}, r = 0; r < t.length; r++)
|
|
3394
3394
|
e[t[r].toUpperCase()] = t[r];
|
|
3395
3395
|
return e;
|
|
3396
|
-
},
|
|
3396
|
+
}, Or = function(t) {
|
|
3397
3397
|
for (var e in t) {
|
|
3398
3398
|
var r = t[e];
|
|
3399
3399
|
typeof r == Sc && r.length == 2 ? this[r[0]] = r[1] : this[r] = void 0;
|
|
@@ -3402,34 +3402,34 @@ var Fr = function(t) {
|
|
|
3402
3402
|
};
|
|
3403
3403
|
(function() {
|
|
3404
3404
|
var t = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
|
|
3405
|
-
return
|
|
3406
|
-
[
|
|
3407
|
-
[
|
|
3408
|
-
[
|
|
3409
|
-
[
|
|
3410
|
-
[
|
|
3411
|
-
]),
|
|
3412
|
-
[
|
|
3413
|
-
[
|
|
3414
|
-
[
|
|
3415
|
-
]),
|
|
3416
|
-
[
|
|
3417
|
-
[
|
|
3418
|
-
]),
|
|
3419
|
-
[
|
|
3420
|
-
[
|
|
3421
|
-
[
|
|
3422
|
-
[
|
|
3423
|
-
[
|
|
3405
|
+
return Or.call(t.init, [
|
|
3406
|
+
[kr, [_t, it, Nn, Nr]],
|
|
3407
|
+
[di, [$n]],
|
|
3408
|
+
[hi, [Nr, Ln, Tn]],
|
|
3409
|
+
[_n, [_t, it]],
|
|
3410
|
+
[Pr, [_t, it]]
|
|
3411
|
+
]), Or.call(t.isIgnore, [
|
|
3412
|
+
[kr, [it, Nn]],
|
|
3413
|
+
[_n, [it]],
|
|
3414
|
+
[Pr, [it]]
|
|
3415
|
+
]), Or.call(t.isIgnoreRgx, [
|
|
3416
|
+
[kr, / ?browser$/i],
|
|
3417
|
+
[Pr, / ?os$/i]
|
|
3418
|
+
]), Or.call(t.toString, [
|
|
3419
|
+
[kr, [_t, it]],
|
|
3420
|
+
[di, [$n]],
|
|
3421
|
+
[hi, [Tn, Ln]],
|
|
3422
|
+
[_n, [_t, it]],
|
|
3423
|
+
[Pr, [_t, it]]
|
|
3424
3424
|
]), t;
|
|
3425
3425
|
})();
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
var
|
|
3426
|
+
Wr([_t, it, Nn, Nr]);
|
|
3427
|
+
Wr([$n]);
|
|
3428
|
+
Wr([Ln, Tn, Nr, Dc, kc, Oc, Pc, jc, Mc]);
|
|
3429
|
+
Wr([_t, it]);
|
|
3430
|
+
var In = { exports: {} }, Rc = In.exports, fi;
|
|
3431
3431
|
function Ec() {
|
|
3432
|
-
return
|
|
3432
|
+
return fi || (fi = 1, (function(t, e) {
|
|
3433
3433
|
(function(r, n) {
|
|
3434
3434
|
t.exports = n();
|
|
3435
3435
|
})(Rc, () => (() => {
|
|
@@ -3494,18 +3494,18 @@ function Ec() {
|
|
|
3494
3494
|
Y = Math.max(Y, de), se = Math.max(se, pe), ue[G] = new Array(de);
|
|
3495
3495
|
for (var fe = 0; fe < ue[G].length; fe += 1) ue[G][fe] = 255 & g.getBuffer()[fe + T];
|
|
3496
3496
|
T += de;
|
|
3497
|
-
var xe = L.getErrorCorrectPolynomial(pe),
|
|
3497
|
+
var xe = L.getErrorCorrectPolynomial(pe), we = F(ue[G], xe.getLength() - 1).mod(xe);
|
|
3498
3498
|
for (he[G] = new Array(xe.getLength() - 1), fe = 0; fe < he[G].length; fe += 1) {
|
|
3499
|
-
var
|
|
3500
|
-
he[G][fe] =
|
|
3499
|
+
var ke = fe + we.getLength() - he[G].length;
|
|
3500
|
+
he[G][fe] = ke >= 0 ? we.getAt(ke) : 0;
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
var
|
|
3504
|
-
for (fe = 0; fe < M.length; fe += 1)
|
|
3505
|
-
var
|
|
3506
|
-
for (fe = 0; fe < Y; fe += 1) for (G = 0; G < M.length; G += 1) fe < ue[G].length && (
|
|
3507
|
-
for (fe = 0; fe < se; fe += 1) for (G = 0; G < M.length; G += 1) fe < he[G].length && (
|
|
3508
|
-
return
|
|
3503
|
+
var He = 0;
|
|
3504
|
+
for (fe = 0; fe < M.length; fe += 1) He += M[fe].totalCount;
|
|
3505
|
+
var Ne = new Array(He), Pe = 0;
|
|
3506
|
+
for (fe = 0; fe < Y; fe += 1) for (G = 0; G < M.length; G += 1) fe < ue[G].length && (Ne[Pe] = ue[G][fe], Pe += 1);
|
|
3507
|
+
for (fe = 0; fe < se; fe += 1) for (G = 0; G < M.length; G += 1) fe < he[G].length && (Ne[Pe] = he[G][fe], Pe += 1);
|
|
3508
|
+
return Ne;
|
|
3509
3509
|
})(I, B);
|
|
3510
3510
|
};
|
|
3511
3511
|
v.addData = function(A, N) {
|
|
@@ -3609,13 +3609,13 @@ function Ec() {
|
|
|
3609
3609
|
return v.createASCII = function(A, N) {
|
|
3610
3610
|
if ((A = A || 1) < 2) return (function(ue) {
|
|
3611
3611
|
ue = ue === void 0 ? 2 : ue;
|
|
3612
|
-
var he, G, de, pe, fe, xe = 1 * v.getModuleCount() + 2 * ue,
|
|
3612
|
+
var he, G, de, pe, fe, xe = 1 * v.getModuleCount() + 2 * ue, we = ue, ke = xe - ue, He = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Ne = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, Pe = "";
|
|
3613
3613
|
for (he = 0; he < xe; he += 2) {
|
|
3614
|
-
for (de = Math.floor((he -
|
|
3615
|
-
|
|
3614
|
+
for (de = Math.floor((he - we) / 1), pe = Math.floor((he + 1 - we) / 1), G = 0; G < xe; G += 1) fe = "█", we <= G && G < ke && we <= he && he < ke && v.isDark(de, Math.floor((G - we) / 1)) && (fe = " "), we <= G && G < ke && we <= he + 1 && he + 1 < ke && v.isDark(pe, Math.floor((G - we) / 1)) ? fe += " " : fe += "█", Pe += ue < 1 && he + 1 >= ke ? Ne[fe] : He[fe];
|
|
3615
|
+
Pe += `
|
|
3616
3616
|
`;
|
|
3617
3617
|
}
|
|
3618
|
-
return xe % 2 && ue > 0 ?
|
|
3618
|
+
return xe % 2 && ue > 0 ? Pe.substring(0, Pe.length - xe - 1) + Array(xe + 1).join("▀") : Pe.substring(0, Pe.length - 1);
|
|
3619
3619
|
})(N);
|
|
3620
3620
|
A -= 1, N = N === void 0 ? 2 * A : N;
|
|
3621
3621
|
var E, B, I, le, o = v.getModuleCount() * A + 2 * N, c = N, g = o - N, M = Array(A + 1).join("██"), T = Array(A + 1).join(" "), Y = "", se = "";
|
|
@@ -4351,9 +4351,9 @@ function Ec() {
|
|
|
4351
4351
|
de.draw(se, ue, D, ie), de._element && he && he.appendChild(de._element);
|
|
4352
4352
|
} else {
|
|
4353
4353
|
const de = new _({ svg: this._element, type: ((B = s.cornersSquareOptions) === null || B === void 0 ? void 0 : B.type) || s.dotsOptions.type, window: this._window });
|
|
4354
|
-
for (let pe = 0; pe < L.length; pe++) for (let fe = 0; fe < L[pe].length; fe++) !((I = L[pe]) === null || I === void 0) && I[fe] && (de.draw(se + fe * v, ue + pe * v, v, (xe,
|
|
4355
|
-
var
|
|
4356
|
-
return !!(!((
|
|
4354
|
+
for (let pe = 0; pe < L.length; pe++) for (let fe = 0; fe < L[pe].length; fe++) !((I = L[pe]) === null || I === void 0) && I[fe] && (de.draw(se + fe * v, ue + pe * v, v, (xe, we) => {
|
|
4355
|
+
var ke;
|
|
4356
|
+
return !!(!((ke = L[pe + we]) === null || ke === void 0) && ke[fe + xe]);
|
|
4357
4357
|
}), de._element && he && he.appendChild(de._element));
|
|
4358
4358
|
}
|
|
4359
4359
|
if ((!((le = s.cornersDotOptions) === null || le === void 0) && le.gradient || !((o = s.cornersDotOptions) === null || o === void 0) && o.color) && (G = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), G.setAttribute("id", `clip-path-corners-dot-color-${ee}-${J}-${this._instanceId}`), this._defs.appendChild(G), this._cornersDotClipPath = G, this._createColor({ options: (c = s.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (g = s.cornersDotOptions) === null || g === void 0 ? void 0 : g.color, additionalRotation: ie, x: se + 2 * v, y: ue + 2 * v, height: R, width: R, name: `corners-dot-color-${ee}-${J}-${this._instanceId}` })), ((M = s.cornersDotOptions) === null || M === void 0 ? void 0 : M.type) && j.includes(s.cornersDotOptions.type)) {
|
|
@@ -4361,9 +4361,9 @@ function Ec() {
|
|
|
4361
4361
|
de.draw(se + 2 * v, ue + 2 * v, R, ie), de._element && G && G.appendChild(de._element);
|
|
4362
4362
|
} else {
|
|
4363
4363
|
const de = new _({ svg: this._element, type: ((T = s.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) || s.dotsOptions.type, window: this._window });
|
|
4364
|
-
for (let pe = 0; pe < V.length; pe++) for (let fe = 0; fe < V[pe].length; fe++) !((Y = V[pe]) === null || Y === void 0) && Y[fe] && (de.draw(se + fe * v, ue + pe * v, v, (xe,
|
|
4365
|
-
var
|
|
4366
|
-
return !!(!((
|
|
4364
|
+
for (let pe = 0; pe < V.length; pe++) for (let fe = 0; fe < V[pe].length; fe++) !((Y = V[pe]) === null || Y === void 0) && Y[fe] && (de.draw(se + fe * v, ue + pe * v, v, (xe, we) => {
|
|
4365
|
+
var ke;
|
|
4366
|
+
return !!(!((ke = V[pe + we]) === null || ke === void 0) && ke[fe + xe]);
|
|
4367
4367
|
}), de._element && G && G.appendChild(de._element));
|
|
4368
4368
|
}
|
|
4369
4369
|
});
|
|
@@ -4543,12 +4543,12 @@ ${new this._window.XMLSerializer().serializeToString(s)}`;
|
|
|
4543
4543
|
const x = P;
|
|
4544
4544
|
})(), l.default;
|
|
4545
4545
|
})());
|
|
4546
|
-
})(
|
|
4546
|
+
})(In)), In.exports;
|
|
4547
4547
|
}
|
|
4548
4548
|
Ec();
|
|
4549
|
-
const
|
|
4549
|
+
const Ji = Fn(void 0);
|
|
4550
4550
|
function Ch(t) {
|
|
4551
|
-
const e =
|
|
4551
|
+
const e = Ve.c(9), {
|
|
4552
4552
|
children: r,
|
|
4553
4553
|
baseUrl: n,
|
|
4554
4554
|
queryClient: i
|
|
@@ -4559,17 +4559,17 @@ function Ch(t) {
|
|
|
4559
4559
|
queryClient: i
|
|
4560
4560
|
}, e[0] = n, e[1] = i, e[2] = l) : l = e[2];
|
|
4561
4561
|
let u;
|
|
4562
|
-
e[3] !== r || e[4] !== i ? (u = /* @__PURE__ */ b.jsx(
|
|
4562
|
+
e[3] !== r || e[4] !== i ? (u = /* @__PURE__ */ b.jsx(Vi, { client: i, children: r }), e[3] = r, e[4] = i, e[5] = u) : u = e[5];
|
|
4563
4563
|
let a;
|
|
4564
|
-
return e[6] !== l || e[7] !== u ? (a = /* @__PURE__ */ b.jsx(
|
|
4564
|
+
return e[6] !== l || e[7] !== u ? (a = /* @__PURE__ */ b.jsx(Ji.Provider, { value: l, children: u }), e[6] = l, e[7] = u, e[8] = a) : a = e[8], a;
|
|
4565
4565
|
}
|
|
4566
4566
|
function $t() {
|
|
4567
|
-
const t =
|
|
4567
|
+
const t = Pi(Ji);
|
|
4568
4568
|
if (!t)
|
|
4569
4569
|
throw new Error("useDataTable must be used within a DataTableProvider");
|
|
4570
4570
|
return t;
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function Kn(t) {
|
|
4573
4573
|
if (typeof t == "string")
|
|
4574
4574
|
try {
|
|
4575
4575
|
const e = JSON.parse(t);
|
|
@@ -4658,7 +4658,7 @@ async function Bc(t, e) {
|
|
|
4658
4658
|
}).then(async (r) => (r.status >= 400 && await Ht(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
|
|
4659
4659
|
}
|
|
4660
4660
|
function Yc(t, e, r) {
|
|
4661
|
-
const n =
|
|
4661
|
+
const n = Ve.c(13), {
|
|
4662
4662
|
baseUrl: i
|
|
4663
4663
|
} = $t();
|
|
4664
4664
|
let l;
|
|
@@ -4675,13 +4675,13 @@ function Yc(t, e, r) {
|
|
|
4675
4675
|
queryKey: l,
|
|
4676
4676
|
queryFn: u,
|
|
4677
4677
|
enabled: a
|
|
4678
|
-
}, n[9] = l, n[10] = u, n[11] = a, n[12] = m) : m = n[12],
|
|
4678
|
+
}, n[9] = l, n[10] = u, n[11] = a, n[12] = m) : m = n[12], Gi(m);
|
|
4679
4679
|
}
|
|
4680
4680
|
function zc(t) {
|
|
4681
4681
|
return t.toString();
|
|
4682
4682
|
}
|
|
4683
4683
|
function Fc(t, e, r) {
|
|
4684
|
-
const n =
|
|
4684
|
+
const n = Ve.c(9), i = r === void 0 ? !0 : r, {
|
|
4685
4685
|
baseUrl: l
|
|
4686
4686
|
} = $t();
|
|
4687
4687
|
let u;
|
|
@@ -4693,13 +4693,13 @@ function Fc(t, e, r) {
|
|
|
4693
4693
|
queryKey: u,
|
|
4694
4694
|
queryFn: a,
|
|
4695
4695
|
enabled: i
|
|
4696
|
-
}, n[5] = i, n[6] = u, n[7] = a, n[8] = m) : m = n[8],
|
|
4696
|
+
}, n[5] = i, n[6] = u, n[7] = a, n[8] = m) : m = n[8], Gi(m);
|
|
4697
4697
|
}
|
|
4698
4698
|
function Wc(t) {
|
|
4699
4699
|
return t.toString();
|
|
4700
4700
|
}
|
|
4701
4701
|
function Uc(t, e) {
|
|
4702
|
-
const r =
|
|
4702
|
+
const r = Ve.c(10), {
|
|
4703
4703
|
baseUrl: n,
|
|
4704
4704
|
queryClient: i
|
|
4705
4705
|
} = $t();
|
|
@@ -4717,9 +4717,9 @@ function Uc(t, e) {
|
|
|
4717
4717
|
});
|
|
4718
4718
|
},
|
|
4719
4719
|
onError(m) {
|
|
4720
|
-
|
|
4720
|
+
Kn(m);
|
|
4721
4721
|
}
|
|
4722
|
-
}, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9],
|
|
4722
|
+
}, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], Vn(a);
|
|
4723
4723
|
}
|
|
4724
4724
|
function qc(t) {
|
|
4725
4725
|
return t.toString();
|
|
@@ -4727,8 +4727,8 @@ function qc(t) {
|
|
|
4727
4727
|
function Vc(t) {
|
|
4728
4728
|
return t.toString();
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4731
|
-
const r =
|
|
4730
|
+
function Xi(t, e) {
|
|
4731
|
+
const r = Ve.c(10), {
|
|
4732
4732
|
baseUrl: n,
|
|
4733
4733
|
queryClient: i
|
|
4734
4734
|
} = $t();
|
|
@@ -4746,9 +4746,9 @@ function Ji(t, e) {
|
|
|
4746
4746
|
});
|
|
4747
4747
|
},
|
|
4748
4748
|
onError(m) {
|
|
4749
|
-
|
|
4749
|
+
Kn(m);
|
|
4750
4750
|
}
|
|
4751
|
-
}, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9],
|
|
4751
|
+
}, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], Vn(a);
|
|
4752
4752
|
}
|
|
4753
4753
|
function Hc(t) {
|
|
4754
4754
|
return t.toString();
|
|
@@ -4757,7 +4757,7 @@ function Gc(t) {
|
|
|
4757
4757
|
return t.toString();
|
|
4758
4758
|
}
|
|
4759
4759
|
function Qc(t, e) {
|
|
4760
|
-
const r =
|
|
4760
|
+
const r = Ve.c(10), {
|
|
4761
4761
|
baseUrl: n,
|
|
4762
4762
|
queryClient: i
|
|
4763
4763
|
} = $t();
|
|
@@ -4775,9 +4775,9 @@ function Qc(t, e) {
|
|
|
4775
4775
|
});
|
|
4776
4776
|
},
|
|
4777
4777
|
onError(m) {
|
|
4778
|
-
|
|
4778
|
+
Kn(m);
|
|
4779
4779
|
}
|
|
4780
|
-
}, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9],
|
|
4780
|
+
}, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], Vn(a);
|
|
4781
4781
|
}
|
|
4782
4782
|
function Zc(t) {
|
|
4783
4783
|
return t.toString();
|
|
@@ -4785,9 +4785,9 @@ function Zc(t) {
|
|
|
4785
4785
|
function Kc(t) {
|
|
4786
4786
|
return t.toString();
|
|
4787
4787
|
}
|
|
4788
|
-
var
|
|
4788
|
+
var Ar = { exports: {} }, Jc = Ar.exports, pi;
|
|
4789
4789
|
function Xc() {
|
|
4790
|
-
return
|
|
4790
|
+
return pi || (pi = 1, (function(t, e) {
|
|
4791
4791
|
(function(r, n) {
|
|
4792
4792
|
t.exports = n();
|
|
4793
4793
|
})(Jc, (function() {
|
|
@@ -5061,10 +5061,10 @@ function Xc() {
|
|
|
5061
5061
|
return W(1e3 * P);
|
|
5062
5062
|
}, W.en = re[X], W.Ls = re, W.p = {}, W;
|
|
5063
5063
|
}));
|
|
5064
|
-
})(
|
|
5064
|
+
})(Ar)), Ar.exports;
|
|
5065
5065
|
}
|
|
5066
5066
|
var eu = Xc();
|
|
5067
|
-
const ce = /* @__PURE__ */
|
|
5067
|
+
const ce = /* @__PURE__ */ Fi(eu);
|
|
5068
5068
|
function tu({ direction: t, levelIndex: e, rowIndex: r, cellIndex: n, size: i }) {
|
|
5069
5069
|
switch (t) {
|
|
5070
5070
|
case "up":
|
|
@@ -5123,7 +5123,7 @@ function tu({ direction: t, levelIndex: e, rowIndex: r, cellIndex: n, size: i })
|
|
|
5123
5123
|
return { levelIndex: e, rowIndex: r, cellIndex: n };
|
|
5124
5124
|
}
|
|
5125
5125
|
}
|
|
5126
|
-
function
|
|
5126
|
+
function es({
|
|
5127
5127
|
controlsRef: t,
|
|
5128
5128
|
direction: e,
|
|
5129
5129
|
levelIndex: r,
|
|
@@ -5135,7 +5135,7 @@ function Xi({
|
|
|
5135
5135
|
if (!u)
|
|
5136
5136
|
return;
|
|
5137
5137
|
const a = t.current?.[u.levelIndex]?.[u.rowIndex]?.[u.cellIndex];
|
|
5138
|
-
a && (a.disabled || a.getAttribute("data-hidden") || a.getAttribute("data-outside") ?
|
|
5138
|
+
a && (a.disabled || a.getAttribute("data-hidden") || a.getAttribute("data-outside") ? es({
|
|
5139
5139
|
controlsRef: t,
|
|
5140
5140
|
direction: e,
|
|
5141
5141
|
levelIndex: u.levelIndex,
|
|
@@ -5161,7 +5161,7 @@ function ru(t) {
|
|
|
5161
5161
|
function nu(t) {
|
|
5162
5162
|
return t.current?.map((e) => e.map((r) => r.length));
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Jn({
|
|
5165
5165
|
controlsRef: t,
|
|
5166
5166
|
levelIndex: e,
|
|
5167
5167
|
rowIndex: r,
|
|
@@ -5172,7 +5172,7 @@ function Kn({
|
|
|
5172
5172
|
if (l) {
|
|
5173
5173
|
i.preventDefault();
|
|
5174
5174
|
const u = nu(t);
|
|
5175
|
-
|
|
5175
|
+
es({
|
|
5176
5176
|
controlsRef: t,
|
|
5177
5177
|
direction: l,
|
|
5178
5178
|
levelIndex: e,
|
|
@@ -5182,10 +5182,10 @@ function Kn({
|
|
|
5182
5182
|
});
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
|
-
function
|
|
5185
|
+
function tt(t) {
|
|
5186
5186
|
return t == null || t === "" ? t : ce(t).format("YYYY-MM-DD");
|
|
5187
5187
|
}
|
|
5188
|
-
function
|
|
5188
|
+
function ts(t) {
|
|
5189
5189
|
return t == null || t === "" ? t : ce(t).format("YYYY-MM-DD HH:mm:ss");
|
|
5190
5190
|
}
|
|
5191
5191
|
const ou = {
|
|
@@ -5194,15 +5194,15 @@ const ou = {
|
|
|
5194
5194
|
weekendDays: [0, 6],
|
|
5195
5195
|
labelSeparator: "–",
|
|
5196
5196
|
consistentWeeks: !1
|
|
5197
|
-
}, iu =
|
|
5197
|
+
}, iu = Fn(ou);
|
|
5198
5198
|
function Dt() {
|
|
5199
|
-
const t =
|
|
5199
|
+
const t = Pi(iu), e = Le((l) => l || t.locale, [t.locale]), r = Le(
|
|
5200
5200
|
(l) => typeof l == "number" ? l : t.firstDayOfWeek,
|
|
5201
5201
|
[t.firstDayOfWeek]
|
|
5202
|
-
), n =
|
|
5202
|
+
), n = Le(
|
|
5203
5203
|
(l) => Array.isArray(l) ? l : t.weekendDays,
|
|
5204
5204
|
[t.weekendDays]
|
|
5205
|
-
), i =
|
|
5205
|
+
), i = Le(
|
|
5206
5206
|
(l) => typeof l == "string" ? l : t.labelSeparator,
|
|
5207
5207
|
[t.labelSeparator]
|
|
5208
5208
|
);
|
|
@@ -5215,14 +5215,14 @@ function Dt() {
|
|
|
5215
5215
|
};
|
|
5216
5216
|
}
|
|
5217
5217
|
function su({ value: t, type: e, withTime: r }) {
|
|
5218
|
-
const n = r ?
|
|
5218
|
+
const n = r ? ts : tt;
|
|
5219
5219
|
if (e === "range" && Array.isArray(t)) {
|
|
5220
5220
|
const i = n(t[0]), l = n(t[1]);
|
|
5221
5221
|
return i ? l ? `${i} – ${l}` : `${i} –` : "";
|
|
5222
5222
|
}
|
|
5223
5223
|
return e === "multiple" && Array.isArray(t) ? t.filter(Boolean).join(", ") : !Array.isArray(t) && t ? n(t) : "";
|
|
5224
5224
|
}
|
|
5225
|
-
function
|
|
5225
|
+
function rs({
|
|
5226
5226
|
value: t,
|
|
5227
5227
|
type: e,
|
|
5228
5228
|
name: r,
|
|
@@ -5231,27 +5231,27 @@ function ts({
|
|
|
5231
5231
|
}) {
|
|
5232
5232
|
return /* @__PURE__ */ b.jsx("input", { type: "hidden", value: su({ value: t, type: e, withTime: i }), name: r, form: n });
|
|
5233
5233
|
}
|
|
5234
|
-
|
|
5235
|
-
function
|
|
5234
|
+
rs.displayName = "@mantine/dates/HiddenDatesInput";
|
|
5235
|
+
function ns(t) {
|
|
5236
5236
|
var e, r, n = "";
|
|
5237
5237
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
5238
5238
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
5239
5239
|
var i = t.length;
|
|
5240
|
-
for (e = 0; e < i; e++) t[e] && (r =
|
|
5240
|
+
for (e = 0; e < i; e++) t[e] && (r = ns(t[e])) && (n && (n += " "), n += r);
|
|
5241
5241
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
5242
5242
|
return n;
|
|
5243
5243
|
}
|
|
5244
|
-
function
|
|
5245
|
-
for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e =
|
|
5244
|
+
function Me() {
|
|
5245
|
+
for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = ns(t)) && (n && (n += " "), n += e);
|
|
5246
5246
|
return n;
|
|
5247
5247
|
}
|
|
5248
|
-
var
|
|
5249
|
-
const au =
|
|
5248
|
+
var os = { day: "m_396ce5cb" };
|
|
5249
|
+
const au = gr((t, { size: e }) => ({
|
|
5250
5250
|
day: {
|
|
5251
|
-
"--day-size":
|
|
5251
|
+
"--day-size": Lr(e, "day-size")
|
|
5252
5252
|
}
|
|
5253
|
-
})),
|
|
5254
|
-
const r =
|
|
5253
|
+
})), Xn = Be((t, e) => {
|
|
5254
|
+
const r = We("Day", null, t), {
|
|
5255
5255
|
classNames: n,
|
|
5256
5256
|
className: i,
|
|
5257
5257
|
style: l,
|
|
@@ -5275,7 +5275,7 @@ const au = pr((t, { size: e }) => ({
|
|
|
5275
5275
|
...H
|
|
5276
5276
|
} = r, Q = St({
|
|
5277
5277
|
name: O || "Day",
|
|
5278
|
-
classes:
|
|
5278
|
+
classes: os,
|
|
5279
5279
|
props: r,
|
|
5280
5280
|
className: i,
|
|
5281
5281
|
style: l,
|
|
@@ -5288,7 +5288,7 @@ const au = pr((t, { size: e }) => ({
|
|
|
5288
5288
|
rootSelector: "day"
|
|
5289
5289
|
});
|
|
5290
5290
|
return /* @__PURE__ */ b.jsx(
|
|
5291
|
-
|
|
5291
|
+
lr,
|
|
5292
5292
|
{
|
|
5293
5293
|
...Q("day", { style: V ? { display: "none" } : void 0 }),
|
|
5294
5294
|
component: F ? "div" : "button",
|
|
@@ -5311,8 +5311,8 @@ const au = pr((t, { size: e }) => ({
|
|
|
5311
5311
|
}
|
|
5312
5312
|
);
|
|
5313
5313
|
});
|
|
5314
|
-
|
|
5315
|
-
|
|
5314
|
+
Xn.classes = os;
|
|
5315
|
+
Xn.displayName = "@mantine/dates/Day";
|
|
5316
5316
|
function lu({
|
|
5317
5317
|
locale: t,
|
|
5318
5318
|
format: e = "dd",
|
|
@@ -5323,14 +5323,14 @@ function lu({
|
|
|
5323
5323
|
typeof e == "string" ? i.push(ce(n).add(l, "days").locale(t).format(e)) : i.push(e(ce(n).add(l, "days").format("YYYY-MM-DD")));
|
|
5324
5324
|
return i;
|
|
5325
5325
|
}
|
|
5326
|
-
var
|
|
5327
|
-
const cu =
|
|
5326
|
+
var is = { weekday: "m_18a3eca" };
|
|
5327
|
+
const cu = gr((t, { size: e }) => ({
|
|
5328
5328
|
weekdaysRow: {
|
|
5329
|
-
"--wr-fz":
|
|
5329
|
+
"--wr-fz": Ir(e),
|
|
5330
5330
|
"--wr-spacing": Rs(e)
|
|
5331
5331
|
}
|
|
5332
|
-
})),
|
|
5333
|
-
const r =
|
|
5332
|
+
})), eo = Be((t, e) => {
|
|
5333
|
+
const r = We("WeekdaysRow", null, t), {
|
|
5334
5334
|
classNames: n,
|
|
5335
5335
|
className: i,
|
|
5336
5336
|
style: l,
|
|
@@ -5347,7 +5347,7 @@ const cu = pr((t, { size: e }) => ({
|
|
|
5347
5347
|
...$
|
|
5348
5348
|
} = r, z = St({
|
|
5349
5349
|
name: C || "WeekdaysRow",
|
|
5350
|
-
classes:
|
|
5350
|
+
classes: is,
|
|
5351
5351
|
props: r,
|
|
5352
5352
|
className: i,
|
|
5353
5353
|
style: l,
|
|
@@ -5363,13 +5363,13 @@ const cu = pr((t, { size: e }) => ({
|
|
|
5363
5363
|
format: O,
|
|
5364
5364
|
firstDayOfWeek: L.getFirstDayOfWeek(_)
|
|
5365
5365
|
}).map((F, X) => /* @__PURE__ */ b.jsx(S, { ...z("weekday"), children: F }, X));
|
|
5366
|
-
return /* @__PURE__ */ b.jsxs(
|
|
5366
|
+
return /* @__PURE__ */ b.jsxs(je, { component: "tr", ref: e, ...z("weekdaysRow"), ...$, children: [
|
|
5367
5367
|
k && /* @__PURE__ */ b.jsx(S, { ...z("weekday"), children: "#" }),
|
|
5368
5368
|
V
|
|
5369
5369
|
] });
|
|
5370
5370
|
});
|
|
5371
|
-
|
|
5372
|
-
|
|
5371
|
+
eo.classes = is;
|
|
5372
|
+
eo.displayName = "@mantine/dates/WeekdaysRow";
|
|
5373
5373
|
function uu(t, e = 1) {
|
|
5374
5374
|
let r = ce(t);
|
|
5375
5375
|
if (!r.isValid())
|
|
@@ -5410,13 +5410,13 @@ function hu({
|
|
|
5410
5410
|
}
|
|
5411
5411
|
return m;
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function to(t, e) {
|
|
5414
5414
|
return ce(t).format("YYYY-MM") === ce(e).format("YYYY-MM");
|
|
5415
5415
|
}
|
|
5416
|
-
function
|
|
5416
|
+
function ss(t, e) {
|
|
5417
5417
|
return e ? ce(t).isAfter(ce(e).subtract(1, "day"), "day") : !0;
|
|
5418
5418
|
}
|
|
5419
|
-
function
|
|
5419
|
+
function as(t, e) {
|
|
5420
5420
|
return e ? ce(t).isBefore(ce(e).add(1, "day"), "day") : !0;
|
|
5421
5421
|
}
|
|
5422
5422
|
function fu({
|
|
@@ -5429,16 +5429,16 @@ function fu({
|
|
|
5429
5429
|
month: u
|
|
5430
5430
|
}) {
|
|
5431
5431
|
const a = t.flat().filter(
|
|
5432
|
-
(_) =>
|
|
5432
|
+
(_) => as(_, r) && ss(_, e) && !i?.(_) && !n?.(_)?.disabled && (!l || to(_, u))
|
|
5433
5433
|
), m = a.find((_) => n?.(_)?.selected);
|
|
5434
5434
|
if (m)
|
|
5435
5435
|
return m;
|
|
5436
5436
|
const y = a.find((_) => ce().isSame(_, "date"));
|
|
5437
5437
|
return y || a[0];
|
|
5438
5438
|
}
|
|
5439
|
-
var
|
|
5439
|
+
var Rr = { exports: {} }, pu = Rr.exports, gi;
|
|
5440
5440
|
function gu() {
|
|
5441
|
-
return
|
|
5441
|
+
return gi || (gi = 1, (function(t, e) {
|
|
5442
5442
|
(function(r, n) {
|
|
5443
5443
|
t.exports = n();
|
|
5444
5444
|
})(pu, (function() {
|
|
@@ -5463,25 +5463,25 @@ function gu() {
|
|
|
5463
5463
|
};
|
|
5464
5464
|
};
|
|
5465
5465
|
}));
|
|
5466
|
-
})(
|
|
5466
|
+
})(Rr)), Rr.exports;
|
|
5467
5467
|
}
|
|
5468
5468
|
var mu = gu();
|
|
5469
|
-
const yu = /* @__PURE__ */
|
|
5469
|
+
const yu = /* @__PURE__ */ Fi(mu);
|
|
5470
5470
|
ce.extend(yu);
|
|
5471
5471
|
function vu(t) {
|
|
5472
5472
|
const e = t.find((r) => ce(r).day() === 1);
|
|
5473
5473
|
return ce(e).isoWeek();
|
|
5474
5474
|
}
|
|
5475
|
-
var
|
|
5475
|
+
var ls = { month: "m_cc9820d3", monthCell: "m_8f457cd5", weekNumber: "m_6cff9dea" };
|
|
5476
5476
|
const bu = {
|
|
5477
5477
|
withCellSpacing: !0
|
|
5478
|
-
}, wu =
|
|
5478
|
+
}, wu = gr((t, { size: e }) => ({
|
|
5479
5479
|
weekNumber: {
|
|
5480
|
-
"--wn-fz":
|
|
5481
|
-
"--wn-size":
|
|
5480
|
+
"--wn-fz": Ir(e),
|
|
5481
|
+
"--wn-size": Lr(e, "wn-size")
|
|
5482
5482
|
}
|
|
5483
|
-
})),
|
|
5484
|
-
const r =
|
|
5483
|
+
})), Ur = Be((t, e) => {
|
|
5484
|
+
const r = We("Month", bu, t), {
|
|
5485
5485
|
classNames: n,
|
|
5486
5486
|
className: i,
|
|
5487
5487
|
style: l,
|
|
@@ -5517,7 +5517,7 @@ const bu = {
|
|
|
5517
5517
|
...p
|
|
5518
5518
|
} = r, f = St({
|
|
5519
5519
|
name: y || "Month",
|
|
5520
|
-
classes:
|
|
5520
|
+
classes: ls,
|
|
5521
5521
|
props: r,
|
|
5522
5522
|
className: i,
|
|
5523
5523
|
style: l,
|
|
@@ -5534,26 +5534,26 @@ const bu = {
|
|
|
5534
5534
|
consistentWeeks: d.consistentWeeks
|
|
5535
5535
|
}), D = fu({
|
|
5536
5536
|
dates: v,
|
|
5537
|
-
minDate:
|
|
5538
|
-
maxDate:
|
|
5537
|
+
minDate: tt(z),
|
|
5538
|
+
maxDate: tt(L),
|
|
5539
5539
|
getDayProps: j,
|
|
5540
5540
|
excludeDate: $,
|
|
5541
5541
|
hideOutsideDates: F,
|
|
5542
5542
|
month: C
|
|
5543
|
-
}), { resolvedClassNames: R, resolvedStyles: U } =
|
|
5543
|
+
}), { resolvedClassNames: R, resolvedStyles: U } = Mi({
|
|
5544
5544
|
classNames: n,
|
|
5545
5545
|
styles: u,
|
|
5546
5546
|
props: r
|
|
5547
5547
|
}), K = v.map((ee, J) => {
|
|
5548
5548
|
const ie = ee.map((oe, ae) => {
|
|
5549
|
-
const A = !
|
|
5549
|
+
const A = !to(oe, C), N = re?.(oe) || ce(oe).locale(_ || d.locale).format("D MMMM YYYY"), E = j?.(oe), B = ce(oe).isSame(D, "date");
|
|
5550
5550
|
return /* @__PURE__ */ b.jsx(
|
|
5551
5551
|
"td",
|
|
5552
5552
|
{
|
|
5553
5553
|
...f("monthCell"),
|
|
5554
5554
|
"data-with-spacing": P || void 0,
|
|
5555
5555
|
children: /* @__PURE__ */ b.jsx(
|
|
5556
|
-
|
|
5556
|
+
Xn,
|
|
5557
5557
|
{
|
|
5558
5558
|
__staticSelector: y || "Month",
|
|
5559
5559
|
classNames: R,
|
|
@@ -5569,7 +5569,7 @@ const bu = {
|
|
|
5569
5569
|
hidden: F ? A : !1,
|
|
5570
5570
|
"aria-label": N,
|
|
5571
5571
|
static: H,
|
|
5572
|
-
disabled: $?.(oe) || !
|
|
5572
|
+
disabled: $?.(oe) || !as(oe, tt(L)) || !ss(oe, tt(z)),
|
|
5573
5573
|
ref: (I) => {
|
|
5574
5574
|
I && Q?.(J, ae, I);
|
|
5575
5575
|
},
|
|
@@ -5598,9 +5598,9 @@ const bu = {
|
|
|
5598
5598
|
ie
|
|
5599
5599
|
] }, J);
|
|
5600
5600
|
});
|
|
5601
|
-
return /* @__PURE__ */ b.jsxs(
|
|
5601
|
+
return /* @__PURE__ */ b.jsxs(je, { component: "table", ...f("month"), size: x, ref: e, ...p, children: [
|
|
5602
5602
|
!X && /* @__PURE__ */ b.jsx("thead", { ...f("monthThead"), children: /* @__PURE__ */ b.jsx(
|
|
5603
|
-
|
|
5603
|
+
eo,
|
|
5604
5604
|
{
|
|
5605
5605
|
__staticSelector: y || "Month",
|
|
5606
5606
|
locale: _,
|
|
@@ -5616,16 +5616,16 @@ const bu = {
|
|
|
5616
5616
|
/* @__PURE__ */ b.jsx("tbody", { ...f("monthTbody"), children: K })
|
|
5617
5617
|
] });
|
|
5618
5618
|
});
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
var
|
|
5622
|
-
const _u =
|
|
5619
|
+
Ur.classes = ls;
|
|
5620
|
+
Ur.displayName = "@mantine/dates/Month";
|
|
5621
|
+
var cs = { pickerControl: "m_dc6a3c71" };
|
|
5622
|
+
const _u = gr((t, { size: e }) => ({
|
|
5623
5623
|
pickerControl: {
|
|
5624
|
-
"--dpc-fz":
|
|
5625
|
-
"--dpc-size":
|
|
5624
|
+
"--dpc-fz": Ir(e),
|
|
5625
|
+
"--dpc-size": Lr(e, "dpc-size")
|
|
5626
5626
|
}
|
|
5627
|
-
})),
|
|
5628
|
-
const r =
|
|
5627
|
+
})), qr = Be((t, e) => {
|
|
5628
|
+
const r = We("PickerControl", null, t), {
|
|
5629
5629
|
classNames: n,
|
|
5630
5630
|
className: i,
|
|
5631
5631
|
style: l,
|
|
@@ -5642,7 +5642,7 @@ const _u = pr((t, { size: e }) => ({
|
|
|
5642
5642
|
...$
|
|
5643
5643
|
} = r, z = St({
|
|
5644
5644
|
name: S || "PickerControl",
|
|
5645
|
-
classes:
|
|
5645
|
+
classes: cs,
|
|
5646
5646
|
props: r,
|
|
5647
5647
|
className: i,
|
|
5648
5648
|
style: l,
|
|
@@ -5655,7 +5655,7 @@ const _u = pr((t, { size: e }) => ({
|
|
|
5655
5655
|
rootSelector: "pickerControl"
|
|
5656
5656
|
});
|
|
5657
5657
|
return /* @__PURE__ */ b.jsx(
|
|
5658
|
-
|
|
5658
|
+
lr,
|
|
5659
5659
|
{
|
|
5660
5660
|
...z("pickerControl"),
|
|
5661
5661
|
ref: e,
|
|
@@ -5671,9 +5671,9 @@ const _u = pr((t, { size: e }) => ({
|
|
|
5671
5671
|
}
|
|
5672
5672
|
);
|
|
5673
5673
|
});
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
function
|
|
5674
|
+
qr.classes = cs;
|
|
5675
|
+
qr.displayName = "@mantine/dates/PickerControl";
|
|
5676
|
+
function us({ year: t, minDate: e, maxDate: r }) {
|
|
5677
5677
|
return !e && !r ? !1 : !!(e && ce(t).isBefore(e, "year") || r && ce(t).isAfter(r, "year"));
|
|
5678
5678
|
}
|
|
5679
5679
|
function xu({
|
|
@@ -5683,14 +5683,14 @@ function xu({
|
|
|
5683
5683
|
getYearControlProps: n
|
|
5684
5684
|
}) {
|
|
5685
5685
|
const i = t.flat().filter(
|
|
5686
|
-
(a) => !
|
|
5686
|
+
(a) => !us({ year: a, minDate: e, maxDate: r }) && !n?.(a)?.disabled
|
|
5687
5687
|
), l = i.find((a) => n?.(a)?.selected);
|
|
5688
5688
|
if (l)
|
|
5689
5689
|
return l;
|
|
5690
5690
|
const u = i.find((a) => ce().isSame(a, "year"));
|
|
5691
5691
|
return u || i[0];
|
|
5692
5692
|
}
|
|
5693
|
-
function
|
|
5693
|
+
function ds(t) {
|
|
5694
5694
|
const e = ce(t).year(), r = e - e % 10;
|
|
5695
5695
|
let n = 0;
|
|
5696
5696
|
const i = [[], [], [], []];
|
|
@@ -5701,12 +5701,12 @@ function us(t) {
|
|
|
5701
5701
|
}
|
|
5702
5702
|
return i;
|
|
5703
5703
|
}
|
|
5704
|
-
var
|
|
5704
|
+
var hs = { yearsList: "m_9206547b", yearsListCell: "m_c5a19c7d" };
|
|
5705
5705
|
const Cu = {
|
|
5706
5706
|
yearsListFormat: "YYYY",
|
|
5707
5707
|
withCellSpacing: !0
|
|
5708
|
-
},
|
|
5709
|
-
const r =
|
|
5708
|
+
}, Vr = Be((t, e) => {
|
|
5709
|
+
const r = We("YearsList", Cu, t), {
|
|
5710
5710
|
classNames: n,
|
|
5711
5711
|
className: i,
|
|
5712
5712
|
style: l,
|
|
@@ -5732,7 +5732,7 @@ const Cu = {
|
|
|
5732
5732
|
...q
|
|
5733
5733
|
} = r, W = St({
|
|
5734
5734
|
name: j || "YearsList",
|
|
5735
|
-
classes:
|
|
5735
|
+
classes: hs,
|
|
5736
5736
|
props: r,
|
|
5737
5737
|
className: i,
|
|
5738
5738
|
style: l,
|
|
@@ -5742,7 +5742,7 @@ const Cu = {
|
|
|
5742
5742
|
attributes: Q,
|
|
5743
5743
|
vars: m,
|
|
5744
5744
|
rootSelector: "yearsList"
|
|
5745
|
-
}), Z = Dt(), ne =
|
|
5745
|
+
}), Z = Dt(), ne = ds(y), te = xu({
|
|
5746
5746
|
years: ne,
|
|
5747
5747
|
minDate: S,
|
|
5748
5748
|
maxDate: C,
|
|
@@ -5756,13 +5756,13 @@ const Cu = {
|
|
|
5756
5756
|
...W("yearsListCell"),
|
|
5757
5757
|
"data-with-spacing": re || void 0,
|
|
5758
5758
|
children: /* @__PURE__ */ b.jsx(
|
|
5759
|
-
|
|
5759
|
+
qr,
|
|
5760
5760
|
{
|
|
5761
5761
|
...W("yearsListControl"),
|
|
5762
5762
|
size: H,
|
|
5763
5763
|
unstyled: a,
|
|
5764
5764
|
"data-mantine-stop-propagation": X || void 0,
|
|
5765
|
-
disabled:
|
|
5765
|
+
disabled: us({ year: s, minDate: S, maxDate: C }),
|
|
5766
5766
|
ref: (v) => {
|
|
5767
5767
|
v && $?.(w, p, v);
|
|
5768
5768
|
},
|
|
@@ -5789,11 +5789,11 @@ const Cu = {
|
|
|
5789
5789
|
});
|
|
5790
5790
|
return /* @__PURE__ */ b.jsx("tr", { ...W("yearsListRow"), children: h }, w);
|
|
5791
5791
|
});
|
|
5792
|
-
return /* @__PURE__ */ b.jsx(
|
|
5792
|
+
return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...W("yearsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
|
|
5793
5793
|
});
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
function
|
|
5794
|
+
Vr.classes = hs;
|
|
5795
|
+
Vr.displayName = "@mantine/dates/YearsList";
|
|
5796
|
+
function fs({ month: t, minDate: e, maxDate: r }) {
|
|
5797
5797
|
return !e && !r ? !1 : !!(e && ce(t).isBefore(e, "month") || r && ce(t).isAfter(r, "month"));
|
|
5798
5798
|
}
|
|
5799
5799
|
function Su({
|
|
@@ -5803,7 +5803,7 @@ function Su({
|
|
|
5803
5803
|
getMonthControlProps: n
|
|
5804
5804
|
}) {
|
|
5805
5805
|
const i = t.flat().filter(
|
|
5806
|
-
(a) => !
|
|
5806
|
+
(a) => !fs({ month: a, minDate: e, maxDate: r }) && !n?.(a)?.disabled
|
|
5807
5807
|
), l = i.find((a) => n?.(a)?.selected);
|
|
5808
5808
|
if (l)
|
|
5809
5809
|
return l;
|
|
@@ -5818,12 +5818,12 @@ function Du(t) {
|
|
|
5818
5818
|
r[i].push(ce(e).add(n, "months").format("YYYY-MM-DD")), n += 1;
|
|
5819
5819
|
return r;
|
|
5820
5820
|
}
|
|
5821
|
-
var
|
|
5821
|
+
var ps = { monthsList: "m_2a6c32d", monthsListCell: "m_fe27622f" };
|
|
5822
5822
|
const ku = {
|
|
5823
5823
|
monthsListFormat: "MMM",
|
|
5824
5824
|
withCellSpacing: !0
|
|
5825
|
-
},
|
|
5826
|
-
const r =
|
|
5825
|
+
}, Hr = Be((t, e) => {
|
|
5826
|
+
const r = We("MonthsList", ku, t), {
|
|
5827
5827
|
classNames: n,
|
|
5828
5828
|
className: i,
|
|
5829
5829
|
style: l,
|
|
@@ -5849,7 +5849,7 @@ const ku = {
|
|
|
5849
5849
|
...q
|
|
5850
5850
|
} = r, W = St({
|
|
5851
5851
|
name: y || "MonthsList",
|
|
5852
|
-
classes:
|
|
5852
|
+
classes: ps,
|
|
5853
5853
|
props: r,
|
|
5854
5854
|
className: i,
|
|
5855
5855
|
style: l,
|
|
@@ -5861,8 +5861,8 @@ const ku = {
|
|
|
5861
5861
|
rootSelector: "monthsList"
|
|
5862
5862
|
}), Z = Dt(), ne = Du(_), te = Su({
|
|
5863
5863
|
months: ne,
|
|
5864
|
-
minDate:
|
|
5865
|
-
maxDate:
|
|
5864
|
+
minDate: tt(C),
|
|
5865
|
+
maxDate: tt(k),
|
|
5866
5866
|
getMonthControlProps: j
|
|
5867
5867
|
}), P = ne.map((x, w) => {
|
|
5868
5868
|
const h = x.map((s, p) => {
|
|
@@ -5873,17 +5873,17 @@ const ku = {
|
|
|
5873
5873
|
...W("monthsListCell"),
|
|
5874
5874
|
"data-with-spacing": re || void 0,
|
|
5875
5875
|
children: /* @__PURE__ */ b.jsx(
|
|
5876
|
-
|
|
5876
|
+
qr,
|
|
5877
5877
|
{
|
|
5878
5878
|
...W("monthsListControl"),
|
|
5879
5879
|
size: H,
|
|
5880
5880
|
unstyled: a,
|
|
5881
5881
|
__staticSelector: y || "MonthsList",
|
|
5882
5882
|
"data-mantine-stop-propagation": X || void 0,
|
|
5883
|
-
disabled:
|
|
5883
|
+
disabled: fs({
|
|
5884
5884
|
month: s,
|
|
5885
|
-
minDate:
|
|
5886
|
-
maxDate:
|
|
5885
|
+
minDate: tt(C),
|
|
5886
|
+
maxDate: tt(k)
|
|
5887
5887
|
}),
|
|
5888
5888
|
ref: (v) => {
|
|
5889
5889
|
v && $?.(w, p, v);
|
|
@@ -5911,23 +5911,23 @@ const ku = {
|
|
|
5911
5911
|
});
|
|
5912
5912
|
return /* @__PURE__ */ b.jsx("tr", { ...W("monthsListRow"), children: h }, w);
|
|
5913
5913
|
});
|
|
5914
|
-
return /* @__PURE__ */ b.jsx(
|
|
5914
|
+
return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...W("monthsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
|
|
5915
5915
|
});
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
var
|
|
5916
|
+
Hr.classes = ps;
|
|
5917
|
+
Hr.displayName = "@mantine/dates/MonthsList";
|
|
5918
|
+
var gs = { calendarHeader: "m_730a79ed", calendarHeaderLevel: "m_f6645d97", calendarHeaderControl: "m_2351eeb0", calendarHeaderControlIcon: "m_367dc749" };
|
|
5919
5919
|
const Pu = {
|
|
5920
5920
|
hasNextLevel: !0,
|
|
5921
5921
|
withNext: !0,
|
|
5922
5922
|
withPrevious: !0,
|
|
5923
5923
|
headerControlsOrder: ["previous", "level", "next"]
|
|
5924
|
-
}, Ou =
|
|
5924
|
+
}, Ou = gr((t, { size: e }) => ({
|
|
5925
5925
|
calendarHeader: {
|
|
5926
|
-
"--dch-control-size":
|
|
5927
|
-
"--dch-fz":
|
|
5926
|
+
"--dch-control-size": Lr(e, "dch-control-size"),
|
|
5927
|
+
"--dch-fz": Ir(e)
|
|
5928
5928
|
}
|
|
5929
5929
|
})), kt = Be((t, e) => {
|
|
5930
|
-
const r =
|
|
5930
|
+
const r = We("CalendarHeader", Pu, t), {
|
|
5931
5931
|
classNames: n,
|
|
5932
5932
|
className: i,
|
|
5933
5933
|
style: l,
|
|
@@ -5956,7 +5956,7 @@ const Pu = {
|
|
|
5956
5956
|
...ne
|
|
5957
5957
|
} = r, te = St({
|
|
5958
5958
|
name: Q || "CalendarHeader",
|
|
5959
|
-
classes:
|
|
5959
|
+
classes: gs,
|
|
5960
5960
|
props: r,
|
|
5961
5961
|
className: i,
|
|
5962
5962
|
style: l,
|
|
@@ -5967,8 +5967,8 @@ const Pu = {
|
|
|
5967
5967
|
vars: m,
|
|
5968
5968
|
varsResolver: Ou,
|
|
5969
5969
|
rootSelector: "calendarHeader"
|
|
5970
|
-
}), P = q ? (p) => p.preventDefault() : void 0, x = re && /* @__PURE__ */
|
|
5971
|
-
|
|
5970
|
+
}), P = q ? (p) => p.preventDefault() : void 0, x = re && /* @__PURE__ */ jr(
|
|
5971
|
+
lr,
|
|
5972
5972
|
{
|
|
5973
5973
|
...te("calendarHeaderControl"),
|
|
5974
5974
|
key: "previous",
|
|
@@ -5983,15 +5983,15 @@ const Pu = {
|
|
|
5983
5983
|
"data-mantine-stop-propagation": W || void 0
|
|
5984
5984
|
},
|
|
5985
5985
|
_ || /* @__PURE__ */ b.jsx(
|
|
5986
|
-
|
|
5986
|
+
fo,
|
|
5987
5987
|
{
|
|
5988
5988
|
...te("calendarHeaderControlIcon"),
|
|
5989
5989
|
"data-direction": "previous",
|
|
5990
5990
|
size: "45%"
|
|
5991
5991
|
}
|
|
5992
5992
|
)
|
|
5993
|
-
), w = /* @__PURE__ */
|
|
5994
|
-
|
|
5993
|
+
), w = /* @__PURE__ */ jr(
|
|
5994
|
+
lr,
|
|
5995
5995
|
{
|
|
5996
5996
|
component: V ? "button" : "div",
|
|
5997
5997
|
...te("calendarHeaderLevel"),
|
|
@@ -6006,8 +6006,8 @@ const Pu = {
|
|
|
6006
6006
|
"data-mantine-stop-propagation": W || void 0
|
|
6007
6007
|
},
|
|
6008
6008
|
$
|
|
6009
|
-
), h = X && /* @__PURE__ */
|
|
6010
|
-
|
|
6009
|
+
), h = X && /* @__PURE__ */ jr(
|
|
6010
|
+
lr,
|
|
6011
6011
|
{
|
|
6012
6012
|
...te("calendarHeaderControl"),
|
|
6013
6013
|
key: "next",
|
|
@@ -6022,7 +6022,7 @@ const Pu = {
|
|
|
6022
6022
|
"data-mantine-stop-propagation": W || void 0
|
|
6023
6023
|
},
|
|
6024
6024
|
y || /* @__PURE__ */ b.jsx(
|
|
6025
|
-
|
|
6025
|
+
fo,
|
|
6026
6026
|
{
|
|
6027
6027
|
...te("calendarHeaderControlIcon"),
|
|
6028
6028
|
"data-direction": "next",
|
|
@@ -6030,18 +6030,18 @@ const Pu = {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
)
|
|
6032
6032
|
), s = H.map((p) => p === "previous" ? x : p === "level" ? w : p === "next" ? h : null);
|
|
6033
|
-
return /* @__PURE__ */ b.jsx(
|
|
6033
|
+
return /* @__PURE__ */ b.jsx(je, { ...te("calendarHeader"), ref: e, ...ne, children: s });
|
|
6034
6034
|
});
|
|
6035
|
-
kt.classes =
|
|
6035
|
+
kt.classes = gs;
|
|
6036
6036
|
kt.displayName = "@mantine/dates/CalendarHeader";
|
|
6037
6037
|
function ju(t) {
|
|
6038
|
-
const e =
|
|
6038
|
+
const e = ds(t);
|
|
6039
6039
|
return [e[0][0], e[3][0]];
|
|
6040
6040
|
}
|
|
6041
6041
|
const Mu = {
|
|
6042
6042
|
decadeLabelFormat: "YYYY"
|
|
6043
|
-
},
|
|
6044
|
-
const r =
|
|
6043
|
+
}, Gr = Be((t, e) => {
|
|
6044
|
+
const r = We("DecadeLevel", Mu, t), {
|
|
6045
6045
|
// YearsList settings
|
|
6046
6046
|
decade: n,
|
|
6047
6047
|
locale: i,
|
|
@@ -6086,7 +6086,7 @@ const Mu = {
|
|
|
6086
6086
|
size: h,
|
|
6087
6087
|
attributes: s
|
|
6088
6088
|
}, R = typeof X == "boolean" ? X : u ? !ce(v).endOf("year").isBefore(u) : !1, U = typeof re == "boolean" ? re : l ? !ce(d).startOf("year").isAfter(l) : !1, K = (ee, J) => ce(ee).locale(i || f.locale).format(J);
|
|
6089
|
-
return /* @__PURE__ */ b.jsxs(
|
|
6089
|
+
return /* @__PURE__ */ b.jsxs(je, { "data-decade-level": !0, size: h, ref: e, ...p, children: [
|
|
6090
6090
|
/* @__PURE__ */ b.jsx(
|
|
6091
6091
|
kt,
|
|
6092
6092
|
{
|
|
@@ -6113,7 +6113,7 @@ const Mu = {
|
|
|
6113
6113
|
}
|
|
6114
6114
|
),
|
|
6115
6115
|
/* @__PURE__ */ b.jsx(
|
|
6116
|
-
|
|
6116
|
+
Vr,
|
|
6117
6117
|
{
|
|
6118
6118
|
decade: n,
|
|
6119
6119
|
locale: i,
|
|
@@ -6133,12 +6133,12 @@ const Mu = {
|
|
|
6133
6133
|
)
|
|
6134
6134
|
] });
|
|
6135
6135
|
});
|
|
6136
|
-
|
|
6137
|
-
|
|
6136
|
+
Gr.classes = { ...Vr.classes, ...kt.classes };
|
|
6137
|
+
Gr.displayName = "@mantine/dates/DecadeLevel";
|
|
6138
6138
|
const Au = {
|
|
6139
6139
|
yearLabelFormat: "YYYY"
|
|
6140
|
-
},
|
|
6141
|
-
const r =
|
|
6140
|
+
}, Qr = Be((t, e) => {
|
|
6141
|
+
const r = We("YearLevel", Au, t), {
|
|
6142
6142
|
// MonthsList settings
|
|
6143
6143
|
year: n,
|
|
6144
6144
|
locale: i,
|
|
@@ -6185,7 +6185,7 @@ const Au = {
|
|
|
6185
6185
|
size: w,
|
|
6186
6186
|
attributes: f
|
|
6187
6187
|
}, R = typeof re == "boolean" ? re : u ? !ce(n).endOf("year").isBefore(u) : !1, U = typeof H == "boolean" ? H : l ? !ce(n).startOf("year").isAfter(l) : !1;
|
|
6188
|
-
return /* @__PURE__ */ b.jsxs(
|
|
6188
|
+
return /* @__PURE__ */ b.jsxs(je, { "data-year-level": !0, size: w, ref: e, ...d, children: [
|
|
6189
6189
|
/* @__PURE__ */ b.jsx(
|
|
6190
6190
|
kt,
|
|
6191
6191
|
{
|
|
@@ -6210,7 +6210,7 @@ const Au = {
|
|
|
6210
6210
|
}
|
|
6211
6211
|
),
|
|
6212
6212
|
/* @__PURE__ */ b.jsx(
|
|
6213
|
-
|
|
6213
|
+
Hr,
|
|
6214
6214
|
{
|
|
6215
6215
|
year: n,
|
|
6216
6216
|
locale: i,
|
|
@@ -6230,12 +6230,12 @@ const Au = {
|
|
|
6230
6230
|
)
|
|
6231
6231
|
] });
|
|
6232
6232
|
});
|
|
6233
|
-
|
|
6234
|
-
|
|
6233
|
+
Qr.classes = { ...kt.classes, ...Hr.classes };
|
|
6234
|
+
Qr.displayName = "@mantine/dates/YearLevel";
|
|
6235
6235
|
const Ru = {
|
|
6236
6236
|
monthLabelFormat: "MMMM YYYY"
|
|
6237
|
-
},
|
|
6238
|
-
const r =
|
|
6237
|
+
}, Zr = Be((t, e) => {
|
|
6238
|
+
const r = We("MonthLevel", Ru, t), {
|
|
6239
6239
|
// Month settings
|
|
6240
6240
|
month: n,
|
|
6241
6241
|
locale: i,
|
|
@@ -6292,7 +6292,7 @@ const Ru = {
|
|
|
6292
6292
|
size: J,
|
|
6293
6293
|
attributes: oe
|
|
6294
6294
|
}, E = typeof w == "boolean" ? w : O ? !ce(n).endOf("month").isBefore(O) : !1, B = typeof h == "boolean" ? h : _ ? !ce(n).startOf("month").isAfter(_) : !1;
|
|
6295
|
-
return /* @__PURE__ */ b.jsxs(
|
|
6295
|
+
return /* @__PURE__ */ b.jsxs(je, { "data-month-level": !0, size: J, ref: e, ...ae, children: [
|
|
6296
6296
|
/* @__PURE__ */ b.jsx(
|
|
6297
6297
|
kt,
|
|
6298
6298
|
{
|
|
@@ -6317,7 +6317,7 @@ const Ru = {
|
|
|
6317
6317
|
}
|
|
6318
6318
|
),
|
|
6319
6319
|
/* @__PURE__ */ b.jsx(
|
|
6320
|
-
|
|
6320
|
+
Ur,
|
|
6321
6321
|
{
|
|
6322
6322
|
month: n,
|
|
6323
6323
|
locale: i,
|
|
@@ -6347,11 +6347,11 @@ const Ru = {
|
|
|
6347
6347
|
)
|
|
6348
6348
|
] });
|
|
6349
6349
|
});
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
var
|
|
6350
|
+
Zr.classes = { ...Ur.classes, ...kt.classes };
|
|
6351
|
+
Zr.displayName = "@mantine/dates/MonthLevel";
|
|
6352
|
+
var ms = { levelsGroup: "m_30b26e33" };
|
|
6353
6353
|
const Pt = Be((t, e) => {
|
|
6354
|
-
const r =
|
|
6354
|
+
const r = We("LevelsGroup", null, t), {
|
|
6355
6355
|
classNames: n,
|
|
6356
6356
|
className: i,
|
|
6357
6357
|
style: l,
|
|
@@ -6363,7 +6363,7 @@ const Pt = Be((t, e) => {
|
|
|
6363
6363
|
...O
|
|
6364
6364
|
} = r, S = St({
|
|
6365
6365
|
name: y || "LevelsGroup",
|
|
6366
|
-
classes:
|
|
6366
|
+
classes: ms,
|
|
6367
6367
|
props: r,
|
|
6368
6368
|
className: i,
|
|
6369
6369
|
style: l,
|
|
@@ -6374,14 +6374,14 @@ const Pt = Be((t, e) => {
|
|
|
6374
6374
|
vars: m,
|
|
6375
6375
|
rootSelector: "levelsGroup"
|
|
6376
6376
|
});
|
|
6377
|
-
return /* @__PURE__ */ b.jsx(
|
|
6377
|
+
return /* @__PURE__ */ b.jsx(je, { ref: e, ...S("levelsGroup"), ...O });
|
|
6378
6378
|
});
|
|
6379
|
-
Pt.classes =
|
|
6379
|
+
Pt.classes = ms;
|
|
6380
6380
|
Pt.displayName = "@mantine/dates/LevelsGroup";
|
|
6381
6381
|
const Eu = {
|
|
6382
6382
|
numberOfColumns: 1
|
|
6383
|
-
},
|
|
6384
|
-
const r =
|
|
6383
|
+
}, Kr = Be((t, e) => {
|
|
6384
|
+
const r = We("DecadeLevelGroup", Eu, t), {
|
|
6385
6385
|
// DecadeLevel settings
|
|
6386
6386
|
decade: n,
|
|
6387
6387
|
locale: i,
|
|
@@ -6416,10 +6416,10 @@ const Eu = {
|
|
|
6416
6416
|
vars: x,
|
|
6417
6417
|
attributes: w,
|
|
6418
6418
|
...h
|
|
6419
|
-
} = r, s =
|
|
6419
|
+
} = r, s = De([]), p = Array(Z).fill(0).map((f, d) => {
|
|
6420
6420
|
const v = ce(n).add(d * 10, "years").format("YYYY-MM-DD");
|
|
6421
6421
|
return /* @__PURE__ */ b.jsx(
|
|
6422
|
-
|
|
6422
|
+
Gr,
|
|
6423
6423
|
{
|
|
6424
6424
|
size: P,
|
|
6425
6425
|
yearsListFormat: a,
|
|
@@ -6429,7 +6429,7 @@ const Eu = {
|
|
|
6429
6429
|
decadeLabelFormat: te,
|
|
6430
6430
|
__onControlClick: y,
|
|
6431
6431
|
__onControlMouseEnter: _,
|
|
6432
|
-
__onControlKeyDown: (D, R) =>
|
|
6432
|
+
__onControlKeyDown: (D, R) => Jn({
|
|
6433
6433
|
levelIndex: d,
|
|
6434
6434
|
rowIndex: R.rowIndex,
|
|
6435
6435
|
cellIndex: R.cellIndex,
|
|
@@ -6480,12 +6480,12 @@ const Eu = {
|
|
|
6480
6480
|
}
|
|
6481
6481
|
);
|
|
6482
6482
|
});
|
|
6483
|
-
|
|
6484
|
-
|
|
6483
|
+
Kr.classes = { ...Pt.classes, ...Gr.classes };
|
|
6484
|
+
Kr.displayName = "@mantine/dates/DecadeLevelGroup";
|
|
6485
6485
|
const Tu = {
|
|
6486
6486
|
numberOfColumns: 1
|
|
6487
|
-
},
|
|
6488
|
-
const r =
|
|
6487
|
+
}, Jr = Be((t, e) => {
|
|
6488
|
+
const r = We("YearLevelGroup", Tu, t), {
|
|
6489
6489
|
// YearLevel settings
|
|
6490
6490
|
year: n,
|
|
6491
6491
|
locale: i,
|
|
@@ -6522,10 +6522,10 @@ const Tu = {
|
|
|
6522
6522
|
vars: h,
|
|
6523
6523
|
attributes: s,
|
|
6524
6524
|
...p
|
|
6525
|
-
} = r, f =
|
|
6525
|
+
} = r, f = De([]), d = Array(te).fill(0).map((v, D) => {
|
|
6526
6526
|
const R = ce(n).add(D, "years").format("YYYY-MM-DD");
|
|
6527
6527
|
return /* @__PURE__ */ b.jsx(
|
|
6528
|
-
|
|
6528
|
+
Qr,
|
|
6529
6529
|
{
|
|
6530
6530
|
size: w,
|
|
6531
6531
|
monthsListFormat: a,
|
|
@@ -6536,7 +6536,7 @@ const Tu = {
|
|
|
6536
6536
|
__stopPropagation: ne,
|
|
6537
6537
|
__onControlClick: y,
|
|
6538
6538
|
__onControlMouseEnter: _,
|
|
6539
|
-
__onControlKeyDown: (U, K) =>
|
|
6539
|
+
__onControlKeyDown: (U, K) => Jn({
|
|
6540
6540
|
levelIndex: D,
|
|
6541
6541
|
rowIndex: K.rowIndex,
|
|
6542
6542
|
cellIndex: K.cellIndex,
|
|
@@ -6588,12 +6588,12 @@ const Tu = {
|
|
|
6588
6588
|
}
|
|
6589
6589
|
);
|
|
6590
6590
|
});
|
|
6591
|
-
|
|
6592
|
-
|
|
6591
|
+
Jr.classes = { ...Qr.classes, ...Pt.classes };
|
|
6592
|
+
Jr.displayName = "@mantine/dates/YearLevelGroup";
|
|
6593
6593
|
const $u = {
|
|
6594
6594
|
numberOfColumns: 1
|
|
6595
|
-
},
|
|
6596
|
-
const r =
|
|
6595
|
+
}, Xr = Be((t, e) => {
|
|
6596
|
+
const r = We("MonthLevelGroup", $u, t), {
|
|
6597
6597
|
// Month settings
|
|
6598
6598
|
month: n,
|
|
6599
6599
|
locale: i,
|
|
@@ -6640,10 +6640,10 @@ const $u = {
|
|
|
6640
6640
|
vars: ee,
|
|
6641
6641
|
attributes: J,
|
|
6642
6642
|
...ie
|
|
6643
|
-
} = r, oe =
|
|
6643
|
+
} = r, oe = De([]), ae = Array(f).fill(0).map((A, N) => {
|
|
6644
6644
|
const E = ce(n).add(N, "months").format("YYYY-MM-DD");
|
|
6645
6645
|
return /* @__PURE__ */ b.jsx(
|
|
6646
|
-
|
|
6646
|
+
Zr,
|
|
6647
6647
|
{
|
|
6648
6648
|
month: E,
|
|
6649
6649
|
withNext: N === f - 1,
|
|
@@ -6652,7 +6652,7 @@ const $u = {
|
|
|
6652
6652
|
__stopPropagation: R,
|
|
6653
6653
|
__onDayClick: $,
|
|
6654
6654
|
__onDayMouseEnter: z,
|
|
6655
|
-
__onDayKeyDown: (B, I) =>
|
|
6655
|
+
__onDayKeyDown: (B, I) => Jn({
|
|
6656
6656
|
levelIndex: N,
|
|
6657
6657
|
rowIndex: I.rowIndex,
|
|
6658
6658
|
cellIndex: I.cellIndex,
|
|
@@ -6715,40 +6715,40 @@ const $u = {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
);
|
|
6717
6717
|
});
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
const
|
|
6721
|
-
const r = e ?
|
|
6718
|
+
Xr.classes = { ...Pt.classes, ...Zr.classes };
|
|
6719
|
+
Xr.displayName = "@mantine/dates/MonthLevelGroup";
|
|
6720
|
+
const mi = (t) => t === "range" ? [null, null] : t === "multiple" ? [] : null, yi = (t, e) => {
|
|
6721
|
+
const r = e ? ts : tt;
|
|
6722
6722
|
return Array.isArray(t) ? t.map(r) : r(t);
|
|
6723
6723
|
};
|
|
6724
|
-
function
|
|
6724
|
+
function Bn({
|
|
6725
6725
|
type: t,
|
|
6726
6726
|
value: e,
|
|
6727
6727
|
defaultValue: r,
|
|
6728
6728
|
onChange: n,
|
|
6729
6729
|
withTime: i = !1
|
|
6730
6730
|
}) {
|
|
6731
|
-
const l =
|
|
6732
|
-
value:
|
|
6733
|
-
defaultValue:
|
|
6734
|
-
finalValue:
|
|
6731
|
+
const l = De(t), [u, a, m] = Yi({
|
|
6732
|
+
value: yi(e, i),
|
|
6733
|
+
defaultValue: yi(r, i),
|
|
6734
|
+
finalValue: mi(t),
|
|
6735
6735
|
onChange: n
|
|
6736
6736
|
});
|
|
6737
6737
|
let y = u;
|
|
6738
|
-
return l.current !== t && (l.current = t, e === void 0 && (y = r !== void 0 ? r :
|
|
6738
|
+
return l.current !== t && (l.current = t, e === void 0 && (y = r !== void 0 ? r : mi(t), a(y))), [y, a, m];
|
|
6739
6739
|
}
|
|
6740
|
-
function
|
|
6740
|
+
function Cn(t, e) {
|
|
6741
6741
|
return t ? t === "month" ? 0 : t === "year" ? 1 : 2 : e || 0;
|
|
6742
6742
|
}
|
|
6743
6743
|
function Nu(t) {
|
|
6744
6744
|
return t === 0 ? "month" : t === 1 ? "year" : "decade";
|
|
6745
6745
|
}
|
|
6746
|
-
function
|
|
6746
|
+
function ar(t, e, r) {
|
|
6747
6747
|
return Nu(
|
|
6748
6748
|
ta(
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6749
|
+
Cn(t, 0),
|
|
6750
|
+
Cn(e, 0),
|
|
6751
|
+
Cn(r, 2)
|
|
6752
6752
|
)
|
|
6753
6753
|
);
|
|
6754
6754
|
}
|
|
@@ -6758,8 +6758,8 @@ const Lu = {
|
|
|
6758
6758
|
__updateDateOnYearSelect: !0,
|
|
6759
6759
|
__updateDateOnMonthSelect: !0,
|
|
6760
6760
|
enableKeyboardNavigation: !0
|
|
6761
|
-
},
|
|
6762
|
-
const r =
|
|
6761
|
+
}, en = Be((t, e) => {
|
|
6762
|
+
const r = We("Calendar", Lu, t), {
|
|
6763
6763
|
// CalendarLevel props
|
|
6764
6764
|
vars: n,
|
|
6765
6765
|
maxLevel: i,
|
|
@@ -6830,70 +6830,70 @@ const Lu = {
|
|
|
6830
6830
|
static: pe,
|
|
6831
6831
|
enableKeyboardNavigation: fe,
|
|
6832
6832
|
attributes: xe,
|
|
6833
|
-
...
|
|
6834
|
-
} = r, { resolvedClassNames:
|
|
6833
|
+
...we
|
|
6834
|
+
} = r, { resolvedClassNames: ke, resolvedStyles: He } = Mi({
|
|
6835
6835
|
classNames: N,
|
|
6836
6836
|
styles: E,
|
|
6837
6837
|
props: r
|
|
6838
|
-
}), [
|
|
6839
|
-
value: a ?
|
|
6840
|
-
defaultValue: u ?
|
|
6841
|
-
finalValue:
|
|
6838
|
+
}), [Ne, Pe] = Yi({
|
|
6839
|
+
value: a ? ar(a, l, i) : void 0,
|
|
6840
|
+
defaultValue: u ? ar(u, l, i) : void 0,
|
|
6841
|
+
finalValue: ar(void 0, l, i),
|
|
6842
6842
|
onChange: m
|
|
6843
|
-
}), [Ot,
|
|
6843
|
+
}), [Ot, Ee] = Bn({
|
|
6844
6844
|
type: "default",
|
|
6845
|
-
value:
|
|
6846
|
-
defaultValue:
|
|
6845
|
+
value: tt(y),
|
|
6846
|
+
defaultValue: tt(_),
|
|
6847
6847
|
onChange: O
|
|
6848
6848
|
});
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
}),
|
|
6852
|
-
|
|
6849
|
+
ho(Q, () => (me) => {
|
|
6850
|
+
Ee(me);
|
|
6851
|
+
}), ho(q, () => (me) => {
|
|
6852
|
+
Pe(me);
|
|
6853
6853
|
});
|
|
6854
|
-
const
|
|
6854
|
+
const lt = {
|
|
6855
6855
|
__staticSelector: c || "Calendar",
|
|
6856
|
-
styles:
|
|
6857
|
-
classNames:
|
|
6856
|
+
styles: He,
|
|
6857
|
+
classNames: ke,
|
|
6858
6858
|
unstyled: B,
|
|
6859
6859
|
size: g,
|
|
6860
6860
|
attributes: xe
|
|
6861
|
-
}, Ye = C || S || 1,
|
|
6862
|
-
const me = ce(
|
|
6863
|
-
G?.(me),
|
|
6861
|
+
}, Ye = C || S || 1, rt = /* @__PURE__ */ new Date(), ct = I && ce(rt).isAfter(I) ? I : ce(rt).format("YYYY-MM-DD"), Te = Ot || ct, ut = () => {
|
|
6862
|
+
const me = ce(Te).add(Ye, "month").format("YYYY-MM-DD");
|
|
6863
|
+
G?.(me), Ee(me);
|
|
6864
6864
|
}, dt = () => {
|
|
6865
|
-
const me = ce(
|
|
6866
|
-
de?.(me),
|
|
6865
|
+
const me = ce(Te).subtract(Ye, "month").format("YYYY-MM-DD");
|
|
6866
|
+
de?.(me), Ee(me);
|
|
6867
|
+
}, Ge = () => {
|
|
6868
|
+
const me = ce(Te).add(Ye, "year").format("YYYY-MM-DD");
|
|
6869
|
+
ue?.(me), Ee(me);
|
|
6870
|
+
}, Qe = () => {
|
|
6871
|
+
const me = ce(Te).subtract(Ye, "year").format("YYYY-MM-DD");
|
|
6872
|
+
he?.(me), Ee(me);
|
|
6867
6873
|
}, Ze = () => {
|
|
6868
|
-
const me = ce(
|
|
6869
|
-
|
|
6870
|
-
}, Ke = () => {
|
|
6871
|
-
const me = ce(Re).subtract(Ye, "year").format("YYYY-MM-DD");
|
|
6872
|
-
he?.(me), Ae(me);
|
|
6874
|
+
const me = ce(Te).add(10 * Ye, "year").format("YYYY-MM-DD");
|
|
6875
|
+
Y?.(me), Ee(me);
|
|
6873
6876
|
}, ht = () => {
|
|
6874
|
-
const me = ce(
|
|
6875
|
-
|
|
6876
|
-
},
|
|
6877
|
-
|
|
6878
|
-
se?.(me), Ae(me);
|
|
6879
|
-
}, ot = Ce(null);
|
|
6880
|
-
Te(() => {
|
|
6877
|
+
const me = ce(Te).subtract(10 * Ye, "year").format("YYYY-MM-DD");
|
|
6878
|
+
se?.(me), Ee(me);
|
|
6879
|
+
}, yt = De(null);
|
|
6880
|
+
$e(() => {
|
|
6881
6881
|
if (!fe || pe)
|
|
6882
6882
|
return;
|
|
6883
|
-
const me = (
|
|
6884
|
-
if (!
|
|
6883
|
+
const me = (Oe) => {
|
|
6884
|
+
if (!yt.current?.contains(document.activeElement))
|
|
6885
6885
|
return;
|
|
6886
|
-
const
|
|
6887
|
-
switch (
|
|
6886
|
+
const nt = Oe.ctrlKey || Oe.metaKey, vt = Oe.shiftKey;
|
|
6887
|
+
switch (Oe.key) {
|
|
6888
6888
|
case "ArrowUp":
|
|
6889
|
-
|
|
6889
|
+
nt && vt ? (Oe.preventDefault(), ht()) : nt && (Oe.preventDefault(), Qe());
|
|
6890
6890
|
break;
|
|
6891
6891
|
case "ArrowDown":
|
|
6892
|
-
|
|
6892
|
+
nt && vt ? (Oe.preventDefault(), Ze()) : nt && (Oe.preventDefault(), Ge());
|
|
6893
6893
|
break;
|
|
6894
6894
|
case "y":
|
|
6895
6895
|
case "Y":
|
|
6896
|
-
|
|
6896
|
+
Ne === "month" && (Oe.preventDefault(), Pe("year"));
|
|
6897
6897
|
break;
|
|
6898
6898
|
}
|
|
6899
6899
|
};
|
|
@@ -6903,20 +6903,20 @@ const Lu = {
|
|
|
6903
6903
|
}, [
|
|
6904
6904
|
fe,
|
|
6905
6905
|
pe,
|
|
6906
|
-
|
|
6906
|
+
Ne,
|
|
6907
|
+
Ge,
|
|
6908
|
+
Qe,
|
|
6907
6909
|
Ze,
|
|
6908
|
-
|
|
6909
|
-
ht,
|
|
6910
|
-
gt
|
|
6910
|
+
ht
|
|
6911
6911
|
]);
|
|
6912
6912
|
const ft = (me) => {
|
|
6913
|
-
|
|
6913
|
+
yt.current = me, typeof e == "function" ? e(me) : e && (e.current = me);
|
|
6914
6914
|
};
|
|
6915
|
-
return /* @__PURE__ */ b.jsxs(
|
|
6916
|
-
|
|
6917
|
-
|
|
6915
|
+
return /* @__PURE__ */ b.jsxs(je, { ref: ft, size: g, "data-calendar": !0, ...we, children: [
|
|
6916
|
+
Ne === "month" && /* @__PURE__ */ b.jsx(
|
|
6917
|
+
Xr,
|
|
6918
6918
|
{
|
|
6919
|
-
month:
|
|
6919
|
+
month: Te,
|
|
6920
6920
|
minDate: I,
|
|
6921
6921
|
maxDate: le,
|
|
6922
6922
|
firstDayOfWeek: W,
|
|
@@ -6931,7 +6931,7 @@ const Lu = {
|
|
|
6931
6931
|
onNext: ut,
|
|
6932
6932
|
onPrevious: dt,
|
|
6933
6933
|
hasNextLevel: i !== "month",
|
|
6934
|
-
onLevelClick: () =>
|
|
6934
|
+
onLevelClick: () => Pe("year"),
|
|
6935
6935
|
numberOfColumns: S,
|
|
6936
6936
|
locale: o,
|
|
6937
6937
|
levelControlAriaLabel: k?.monthLevelControl,
|
|
@@ -6949,23 +6949,23 @@ const Lu = {
|
|
|
6949
6949
|
highlightToday: U,
|
|
6950
6950
|
withWeekNumbers: K,
|
|
6951
6951
|
headerControlsOrder: X,
|
|
6952
|
-
...
|
|
6952
|
+
...lt
|
|
6953
6953
|
}
|
|
6954
6954
|
),
|
|
6955
|
-
|
|
6956
|
-
|
|
6955
|
+
Ne === "year" && /* @__PURE__ */ b.jsx(
|
|
6956
|
+
Jr,
|
|
6957
6957
|
{
|
|
6958
|
-
year:
|
|
6958
|
+
year: Te,
|
|
6959
6959
|
numberOfColumns: S,
|
|
6960
6960
|
minDate: I,
|
|
6961
6961
|
maxDate: le,
|
|
6962
6962
|
monthsListFormat: ee,
|
|
6963
6963
|
getMonthControlProps: J,
|
|
6964
6964
|
locale: o,
|
|
6965
|
-
onNext:
|
|
6966
|
-
onPrevious:
|
|
6965
|
+
onNext: Ge,
|
|
6966
|
+
onPrevious: Qe,
|
|
6967
6967
|
hasNextLevel: i !== "month" && i !== "year",
|
|
6968
|
-
onLevelClick: () =>
|
|
6968
|
+
onLevelClick: () => Pe("decade"),
|
|
6969
6969
|
levelControlAriaLabel: k?.yearLevelControl,
|
|
6970
6970
|
nextLabel: k?.nextYear ?? j,
|
|
6971
6971
|
nextIcon: f,
|
|
@@ -6973,27 +6973,27 @@ const Lu = {
|
|
|
6973
6973
|
previousIcon: d,
|
|
6974
6974
|
yearLabelFormat: ie,
|
|
6975
6975
|
__onControlMouseEnter: F,
|
|
6976
|
-
__onControlClick: (me,
|
|
6977
|
-
H &&
|
|
6976
|
+
__onControlClick: (me, Oe) => {
|
|
6977
|
+
H && Ee(Oe), Pe(ar("month", l, i)), L?.(Oe);
|
|
6978
6978
|
},
|
|
6979
6979
|
__preventFocus: M,
|
|
6980
6980
|
__stopPropagation: T,
|
|
6981
6981
|
withCellSpacing: R,
|
|
6982
6982
|
headerControlsOrder: X,
|
|
6983
|
-
...
|
|
6983
|
+
...lt
|
|
6984
6984
|
}
|
|
6985
6985
|
),
|
|
6986
|
-
|
|
6987
|
-
|
|
6986
|
+
Ne === "decade" && /* @__PURE__ */ b.jsx(
|
|
6987
|
+
Kr,
|
|
6988
6988
|
{
|
|
6989
|
-
decade:
|
|
6989
|
+
decade: Te,
|
|
6990
6990
|
minDate: I,
|
|
6991
6991
|
maxDate: le,
|
|
6992
6992
|
yearsListFormat: oe,
|
|
6993
6993
|
getYearControlProps: ae,
|
|
6994
6994
|
locale: o,
|
|
6995
|
-
onNext:
|
|
6996
|
-
onPrevious:
|
|
6995
|
+
onNext: Ze,
|
|
6996
|
+
onPrevious: ht,
|
|
6997
6997
|
numberOfColumns: S,
|
|
6998
6998
|
nextLabel: k?.nextDecade ?? j,
|
|
6999
6999
|
nextIcon: f,
|
|
@@ -7001,24 +7001,24 @@ const Lu = {
|
|
|
7001
7001
|
previousIcon: d,
|
|
7002
7002
|
decadeLabelFormat: A,
|
|
7003
7003
|
__onControlMouseEnter: V,
|
|
7004
|
-
__onControlClick: (me,
|
|
7005
|
-
re &&
|
|
7004
|
+
__onControlClick: (me, Oe) => {
|
|
7005
|
+
re && Ee(Oe), Pe(ar("year", l, i)), z?.(Oe);
|
|
7006
7006
|
},
|
|
7007
7007
|
__preventFocus: M,
|
|
7008
7008
|
__stopPropagation: T,
|
|
7009
7009
|
withCellSpacing: R,
|
|
7010
7010
|
headerControlsOrder: X,
|
|
7011
|
-
...
|
|
7011
|
+
...lt
|
|
7012
7012
|
}
|
|
7013
7013
|
)
|
|
7014
7014
|
] });
|
|
7015
7015
|
});
|
|
7016
|
-
|
|
7017
|
-
...Zr.classes,
|
|
7016
|
+
en.classes = {
|
|
7018
7017
|
...Kr.classes,
|
|
7019
|
-
...Jr.classes
|
|
7018
|
+
...Jr.classes,
|
|
7019
|
+
...Xr.classes
|
|
7020
7020
|
};
|
|
7021
|
-
|
|
7021
|
+
en.displayName = "@mantine/dates/Calendar";
|
|
7022
7022
|
function Iu(t) {
|
|
7023
7023
|
const {
|
|
7024
7024
|
maxLevel: e,
|
|
@@ -7159,7 +7159,7 @@ const zu = {
|
|
|
7159
7159
|
valueFormat: "MMMM D, YYYY",
|
|
7160
7160
|
fixOnBlur: !0,
|
|
7161
7161
|
size: "sm"
|
|
7162
|
-
},
|
|
7162
|
+
}, tn = Be((t, e) => {
|
|
7163
7163
|
const r = Es("DateInput", zu, t), {
|
|
7164
7164
|
inputProps: n,
|
|
7165
7165
|
wrapperProps: i,
|
|
@@ -7195,25 +7195,25 @@ const zu = {
|
|
|
7195
7195
|
getYearControlProps: s,
|
|
7196
7196
|
disabled: p,
|
|
7197
7197
|
...f
|
|
7198
|
-
} = r, d =
|
|
7198
|
+
} = r, d = De(null), v = De(null), [D, R] = ve(!1), { calendarProps: U, others: K } = Iu(f), ee = Dt(), ie = k || ((G) => {
|
|
7199
7199
|
const de = ce(G, C, ee.getLocale(S)).toDate();
|
|
7200
7200
|
return Number.isNaN(de.getTime()) ? Bu(G) : ce(de).format("YYYY-MM-DD");
|
|
7201
|
-
}), oe = te !== void 0 ? te : m, ae = (G) => G ? ce(G).locale(ee.getLocale(S)).format(C) : "", [A, N, E] =
|
|
7201
|
+
}), oe = te !== void 0 ? te : m, ae = (G) => G ? ce(G).locale(ee.getLocale(S)).format(C) : "", [A, N, E] = Bn({
|
|
7202
7202
|
type: "default",
|
|
7203
7203
|
value: l,
|
|
7204
7204
|
defaultValue: u,
|
|
7205
7205
|
onChange: a
|
|
7206
|
-
}), [B, I] =
|
|
7206
|
+
}), [B, I] = Bn({
|
|
7207
7207
|
type: "default",
|
|
7208
7208
|
value: P,
|
|
7209
7209
|
defaultValue: u || x,
|
|
7210
7210
|
onChange: w
|
|
7211
7211
|
});
|
|
7212
|
-
|
|
7212
|
+
$e(() => {
|
|
7213
7213
|
E && l !== null && I(l);
|
|
7214
7214
|
}, [E, l]);
|
|
7215
|
-
const [le, o] =
|
|
7216
|
-
|
|
7215
|
+
const [le, o] = ve(ae(A));
|
|
7216
|
+
$e(() => {
|
|
7217
7217
|
o(ae(A));
|
|
7218
7218
|
}, [ee.getLocale(S)]);
|
|
7219
7219
|
const c = (G) => {
|
|
@@ -7241,7 +7241,7 @@ const zu = {
|
|
|
7241
7241
|
N(pe), !E && pe && o(ae(pe)), R(!1);
|
|
7242
7242
|
}
|
|
7243
7243
|
}), ue = /* @__PURE__ */ b.jsx(
|
|
7244
|
-
|
|
7244
|
+
Mr.ClearButton,
|
|
7245
7245
|
{
|
|
7246
7246
|
onClick: () => {
|
|
7247
7247
|
N(null), !E && o(""), R(!1);
|
|
@@ -7252,12 +7252,12 @@ const zu = {
|
|
|
7252
7252
|
), he = m && !!A && !re && !p;
|
|
7253
7253
|
return ra(() => {
|
|
7254
7254
|
A !== void 0 && !D && o(ae(A));
|
|
7255
|
-
}, [A]),
|
|
7255
|
+
}, [A]), zi(() => R(!1), void 0, [
|
|
7256
7256
|
d.current,
|
|
7257
7257
|
v.current
|
|
7258
7258
|
]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
7259
|
-
/* @__PURE__ */ b.jsx(
|
|
7260
|
-
|
|
7259
|
+
/* @__PURE__ */ b.jsx(Mr.Wrapper, { ...i, __staticSelector: "DateInput", ref: d, children: /* @__PURE__ */ b.jsxs(
|
|
7260
|
+
cr,
|
|
7261
7261
|
{
|
|
7262
7262
|
opened: D,
|
|
7263
7263
|
trapFocus: !1,
|
|
@@ -7267,8 +7267,8 @@ const zu = {
|
|
|
7267
7267
|
unstyled: W,
|
|
7268
7268
|
..._,
|
|
7269
7269
|
children: [
|
|
7270
|
-
/* @__PURE__ */ b.jsx(
|
|
7271
|
-
|
|
7270
|
+
/* @__PURE__ */ b.jsx(cr.Target, { children: /* @__PURE__ */ b.jsx(
|
|
7271
|
+
Mr,
|
|
7272
7272
|
{
|
|
7273
7273
|
"data-dates-input": !0,
|
|
7274
7274
|
"data-read-only": re || void 0,
|
|
@@ -7291,13 +7291,13 @@ const zu = {
|
|
|
7291
7291
|
}
|
|
7292
7292
|
) }),
|
|
7293
7293
|
/* @__PURE__ */ b.jsx(
|
|
7294
|
-
|
|
7294
|
+
cr.Dropdown,
|
|
7295
7295
|
{
|
|
7296
7296
|
onMouseDown: (G) => G.preventDefault(),
|
|
7297
7297
|
"data-dates-dropdown": !0,
|
|
7298
7298
|
ref: v,
|
|
7299
7299
|
children: /* @__PURE__ */ b.jsx(
|
|
7300
|
-
|
|
7300
|
+
en,
|
|
7301
7301
|
{
|
|
7302
7302
|
__staticSelector: "DateInput",
|
|
7303
7303
|
...U,
|
|
@@ -7313,7 +7313,7 @@ const zu = {
|
|
|
7313
7313
|
date: B,
|
|
7314
7314
|
onDateChange: I,
|
|
7315
7315
|
getMonthControlProps: (G) => ({
|
|
7316
|
-
selected: typeof A == "string" ?
|
|
7316
|
+
selected: typeof A == "string" ? to(G, A) : !1,
|
|
7317
7317
|
...h?.(G)
|
|
7318
7318
|
}),
|
|
7319
7319
|
getYearControlProps: (G) => ({
|
|
@@ -7328,20 +7328,20 @@ const zu = {
|
|
|
7328
7328
|
]
|
|
7329
7329
|
}
|
|
7330
7330
|
) }),
|
|
7331
|
-
/* @__PURE__ */ b.jsx(
|
|
7331
|
+
/* @__PURE__ */ b.jsx(rs, { name: H, form: Q, value: A, type: "default" })
|
|
7332
7332
|
] });
|
|
7333
7333
|
});
|
|
7334
|
-
|
|
7335
|
-
|
|
7334
|
+
tn.classes = { ...Mr.classes, ...en.classes };
|
|
7335
|
+
tn.displayName = "@mantine/dates/DateInput";
|
|
7336
7336
|
function Fu(t) {
|
|
7337
|
-
const e =
|
|
7337
|
+
const e = Ve.c(49), {
|
|
7338
7338
|
fields: r,
|
|
7339
7339
|
onClose: n,
|
|
7340
7340
|
queryKey: i,
|
|
7341
7341
|
apiPath: l,
|
|
7342
7342
|
steps: u,
|
|
7343
7343
|
onCreated: a
|
|
7344
|
-
} = t, [m, y] =
|
|
7344
|
+
} = t, [m, y] = ve(0), [_, O] = ve(!1), [S, C] = ve(), {
|
|
7345
7345
|
mutateAsync: k,
|
|
7346
7346
|
isError: j,
|
|
7347
7347
|
error: $,
|
|
@@ -7349,7 +7349,7 @@ function Fu(t) {
|
|
|
7349
7349
|
} = Uc(l, i), {
|
|
7350
7350
|
mutateAsync: L,
|
|
7351
7351
|
isPending: V
|
|
7352
|
-
} =
|
|
7352
|
+
} = Xi(l, i), F = z || V;
|
|
7353
7353
|
let X;
|
|
7354
7354
|
e[0] !== r ? (X = new Set(r.filter(Vu).map(qu)), e[0] = r, e[1] = X) : X = e[1];
|
|
7355
7355
|
let re;
|
|
@@ -7374,21 +7374,21 @@ function Fu(t) {
|
|
|
7374
7374
|
initialValues: W,
|
|
7375
7375
|
validate: Z
|
|
7376
7376
|
}, e[10] = W, e[11] = Z, e[12] = ne) : ne = e[12];
|
|
7377
|
-
const te =
|
|
7377
|
+
const te = Bi(ne);
|
|
7378
7378
|
let P;
|
|
7379
7379
|
e[13] !== te || e[14] !== S ? (P = function(D) {
|
|
7380
7380
|
const R = te.getValues();
|
|
7381
7381
|
if (D.conditional && !D.conditional(R))
|
|
7382
7382
|
return null;
|
|
7383
7383
|
const U = q(D, R);
|
|
7384
|
-
return /* @__PURE__ */ b.jsxs(
|
|
7385
|
-
(D.type === void 0 || D.type == "text") && /* @__PURE__ */ b.jsx(
|
|
7386
|
-
D.type === "number" && /* @__PURE__ */ b.jsx(
|
|
7387
|
-
D.type === "date" && /* @__PURE__ */ b.jsx(
|
|
7384
|
+
return /* @__PURE__ */ b.jsxs(Oi, { children: [
|
|
7385
|
+
(D.type === void 0 || D.type == "text") && /* @__PURE__ */ b.jsx(Ai, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), type: D.id.includes("email") ? "email" : void 0, required: U }, te.key(D.id)),
|
|
7386
|
+
D.type === "number" && /* @__PURE__ */ b.jsx(Ri, { decimalSeparator: ",", label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), required: U }, te.key(D.id)),
|
|
7387
|
+
D.type === "date" && /* @__PURE__ */ b.jsx(tn, { label: D.column.title, placeholder: D.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...te.getInputProps(D.id), required: U }, te.key(D.id)),
|
|
7388
7388
|
D.type === "boolean" && /* @__PURE__ */ b.jsx(Ut, { mt: "md", label: D.column.title, ...te.getInputProps(D.id, {
|
|
7389
7389
|
type: "checkbox"
|
|
7390
7390
|
}), required: U }, te.key(D.id)),
|
|
7391
|
-
D.type === "textarea" && /* @__PURE__ */ b.jsx(
|
|
7391
|
+
D.type === "textarea" && /* @__PURE__ */ b.jsx(Ei, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), minRows: 3, autosize: !0, required: U }, te.key(D.id)),
|
|
7392
7392
|
D.type === "custom" && D.render && D.render({
|
|
7393
7393
|
...te.getValues(),
|
|
7394
7394
|
...S && {
|
|
@@ -7402,7 +7402,7 @@ function Fu(t) {
|
|
|
7402
7402
|
}, e[13] = te, e[14] = S, e[15] = P) : P = e[15];
|
|
7403
7403
|
const x = P;
|
|
7404
7404
|
let w;
|
|
7405
|
-
e[16] !== $?.message || e[17] !== $?.name || e[18] !== j ? (w = j && /* @__PURE__ */ b.jsx(
|
|
7405
|
+
e[16] !== $?.message || e[17] !== $?.name || e[18] !== j ? (w = j && /* @__PURE__ */ b.jsx(Br, { variant: "outline", color: "red", title: $?.name ?? "Fehler aufgetreten", mb: "lg", children: $?.message ?? "Fehler aufgetreten" }), e[16] = $?.message, e[17] = $?.name, e[18] = j, e[19] = w) : w = e[19];
|
|
7406
7406
|
let h;
|
|
7407
7407
|
e[20] !== m || e[21] !== k || e[22] !== te || e[23] !== j || e[24] !== n || e[25] !== a || e[26] !== S || e[27] !== H.length || e[28] !== L ? (h = te.onSubmit(async (v) => {
|
|
7408
7408
|
if (S)
|
|
@@ -7417,13 +7417,13 @@ function Fu(t) {
|
|
|
7417
7417
|
H.length && m < H.length - 1 ? j || y(m + 1) : j || (te.setInitialValues(v), te.reset(), n());
|
|
7418
7418
|
}), e[20] = m, e[21] = k, e[22] = te, e[23] = j, e[24] = n, e[25] = a, e[26] = S, e[27] = H.length, e[28] = L, e[29] = h) : h = e[29];
|
|
7419
7419
|
let s;
|
|
7420
|
-
e[30] !== m || e[31] !== r || e[32] !== x || e[33] !== u || e[34] !== H ? (s = H.length ? /* @__PURE__ */ b.jsx(
|
|
7420
|
+
e[30] !== m || e[31] !== r || e[32] !== x || e[33] !== u || e[34] !== H ? (s = H.length ? /* @__PURE__ */ b.jsx(Er, { active: m, size: "sm", children: H.map((v) => /* @__PURE__ */ b.jsx(Er.Step, { ...u && u[v - 1] ? {
|
|
7421
7421
|
label: u[v - 1].label
|
|
7422
7422
|
} : {}, children: r.filter((D) => D.step === v).map((D) => x(D)) }, v)) }) : r.map((v) => x(v)), e[30] = m, e[31] = r, e[32] = x, e[33] = u, e[34] = H, e[35] = s) : s = e[35];
|
|
7423
7423
|
let p;
|
|
7424
7424
|
e[36] !== m || e[37] !== _ || e[38] !== F || e[39] !== n || e[40] !== H.length ? (p = !_ && /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
|
|
7425
|
-
/* @__PURE__ */ b.jsx(
|
|
7426
|
-
/* @__PURE__ */ b.jsx(
|
|
7425
|
+
/* @__PURE__ */ b.jsx(mt, { onClick: () => H.length ? m === 0 ? n() : y(m - 1) : n(), variant: "outline", children: H.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
7426
|
+
/* @__PURE__ */ b.jsx(mt, { type: "submit", loading: F, children: H.length ? m === H.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
7427
7427
|
] }), e[36] = m, e[37] = _, e[38] = F, e[39] = n, e[40] = H.length, e[41] = p) : p = e[41];
|
|
7428
7428
|
let f;
|
|
7429
7429
|
e[42] !== s || e[43] !== p || e[44] !== h ? (f = /* @__PURE__ */ b.jsxs("form", { onSubmit: h, children: [
|
|
@@ -7448,8 +7448,8 @@ function qu(t) {
|
|
|
7448
7448
|
function Vu(t) {
|
|
7449
7449
|
return typeof t.step == "number";
|
|
7450
7450
|
}
|
|
7451
|
-
var [Hu,
|
|
7452
|
-
let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: l, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ } = t, [O, S] =
|
|
7451
|
+
var [Hu, ro] = Ts("useDataTableColumnsContext must be used within DataTableColumnProvider"), vi = (t) => {
|
|
7452
|
+
let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: l, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ } = t, [O, S] = ve(""), [C, k] = ve("");
|
|
7453
7453
|
return b.jsx(Hu, { value: { sourceColumn: O, setSourceColumn: S, targetColumn: C, setTargetColumn: k, columnsToggle: i, setColumnsToggle: l, swapColumns: () => {
|
|
7454
7454
|
if (!r || !n || !O || !C) return;
|
|
7455
7455
|
let j = r.indexOf(O), $ = r.indexOf(C);
|
|
@@ -7466,7 +7466,7 @@ function Qu() {
|
|
|
7466
7466
|
return b.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" }), b.jsx("path", { d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" }), b.jsx("path", { d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" }), b.jsx("path", { d: "M3 3l18 18" })] });
|
|
7467
7467
|
}
|
|
7468
7468
|
function Zu({ icon: t, text: e, active: r, children: n }) {
|
|
7469
|
-
return b.jsx(Yt, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: n || b.jsxs(b.Fragment, { children: [t || b.jsx("div", { className: "mantine-datatable-empty-state-icon", children: b.jsx(Qu, {}) }), b.jsx(
|
|
7469
|
+
return b.jsx(Yt, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: n || b.jsxs(b.Fragment, { children: [t || b.jsx("div", { className: "mantine-datatable-empty-state-icon", children: b.jsx(Qu, {}) }), b.jsx(at, { component: "div", size: "sm", c: "dimmed", children: e })] }) });
|
|
7470
7470
|
}
|
|
7471
7471
|
function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
7472
7472
|
function n(O, S) {
|
|
@@ -7477,7 +7477,7 @@ function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7477
7477
|
C.includes(k.accessor) || C.push(k.accessor);
|
|
7478
7478
|
}), C;
|
|
7479
7479
|
}
|
|
7480
|
-
let i = e && e.map((O) => O.accessor) || [], [l, u] =
|
|
7480
|
+
let i = e && e.map((O) => O.accessor) || [], [l, u] = Un({ key: t ? `${t}-columns-order` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
|
|
7481
7481
|
function a(O) {
|
|
7482
7482
|
t && u(O);
|
|
7483
7483
|
}
|
|
@@ -7489,11 +7489,11 @@ function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7489
7489
|
return JSON.stringify(y) !== _ && a(y), { columnsOrder: y, setColumnsOrder: a, resetColumnsOrder: m };
|
|
7490
7490
|
}
|
|
7491
7491
|
function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, onFixedLayoutChange: i }) {
|
|
7492
|
-
let l =
|
|
7493
|
-
|
|
7492
|
+
let l = De(!1), u = De({}), [a, m] = ve(!0), y = Xe(() => e.some((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), _ = Xe(() => e.filter((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), O = Xe(() => _.some((q) => q.width === void 0 || q.width === "" || q.width === "initial"), [_]), S = Le(() => e.filter((q) => q.accessor !== "__selection__").map((q) => ({ [q.accessor]: q.width ?? "auto" })), [e]), [C, k] = Un({ key: t ? `${t}-columns-width` : "", defaultValue: t ? S() : void 0, getInitialValueInEffect: !1 }), [j, $] = ve(() => S());
|
|
7493
|
+
$e(() => {
|
|
7494
7494
|
m(!1);
|
|
7495
7495
|
}, []);
|
|
7496
|
-
let z =
|
|
7496
|
+
let z = Le(() => {
|
|
7497
7497
|
if (!n?.current || a) return {};
|
|
7498
7498
|
let q = n.current, W = Array.from(q.querySelectorAll("th[data-accessor]")), Z = {};
|
|
7499
7499
|
return W.forEach((ne) => {
|
|
@@ -7505,15 +7505,15 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
7505
7505
|
Z[te] = Math.round(x.width);
|
|
7506
7506
|
}
|
|
7507
7507
|
}), Z;
|
|
7508
|
-
}, [n, _, a]), L =
|
|
7508
|
+
}, [n, _, a]), L = Le((q) => {
|
|
7509
7509
|
let W = q.filter((ne) => ne.accessor !== "__selection__"), Z = j.map((ne) => {
|
|
7510
7510
|
let te = Object.keys(ne)[0], P = W.find((x) => x.accessor === te);
|
|
7511
7511
|
return P ? { [te]: P.width } : ne;
|
|
7512
7512
|
});
|
|
7513
7513
|
$(Z), t && k(Z);
|
|
7514
|
-
}, [j, t, k]), V =
|
|
7514
|
+
}, [j, t, k]), V = Le((q) => {
|
|
7515
7515
|
L(q);
|
|
7516
|
-
}, [L]), F =
|
|
7516
|
+
}, [L]), F = Le(() => {
|
|
7517
7517
|
if (!(!n?.current || !i || a)) if (O) i(!1), requestAnimationFrame(() => {
|
|
7518
7518
|
requestAnimationFrame(() => {
|
|
7519
7519
|
let q = z();
|
|
@@ -7534,7 +7534,7 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
7534
7534
|
$(q), i(!0), l.current = !0;
|
|
7535
7535
|
}
|
|
7536
7536
|
}, [n, i, a, O, z, e, C]), X = F;
|
|
7537
|
-
|
|
7537
|
+
$e(() => {
|
|
7538
7538
|
if (!y || !i || a) {
|
|
7539
7539
|
i?.(!1);
|
|
7540
7540
|
return;
|
|
@@ -7544,16 +7544,16 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
7544
7544
|
F();
|
|
7545
7545
|
}, 50);
|
|
7546
7546
|
return () => clearTimeout(q);
|
|
7547
|
-
}, [y, i, a, F]),
|
|
7547
|
+
}, [y, i, a, F]), $e(() => {
|
|
7548
7548
|
a || !t || !r || C && C.length > 0 && $(C);
|
|
7549
7549
|
}, [a, t, r, C]);
|
|
7550
|
-
let re =
|
|
7550
|
+
let re = Le(() => {
|
|
7551
7551
|
t && k(S()), u.current = {}, l.current = !1, i && (i(!1), setTimeout(() => {
|
|
7552
7552
|
F();
|
|
7553
7553
|
}, 10));
|
|
7554
|
-
}, [t, k, S, i, F]), H =
|
|
7554
|
+
}, [t, k, S, i, F]), H = Le((q, W) => {
|
|
7555
7555
|
L([{ accessor: q, width: W }]);
|
|
7556
|
-
}, [L]), Q =
|
|
7556
|
+
}, [L]), Q = Xe(() => y ? j.filter((q) => {
|
|
7557
7557
|
let W = Object.keys(q)[0];
|
|
7558
7558
|
return _.some((Z) => Z.accessor === W);
|
|
7559
7559
|
}).every((q) => {
|
|
@@ -7571,7 +7571,7 @@ function Xu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7571
7571
|
C.find((j) => j.accessor === k.accessor) || C.push({ accessor: k.accessor, defaultToggle: k.defaultToggle || !0, toggleable: k.toggleable, toggled: k.defaultToggle === void 0 ? !0 : k.defaultToggle });
|
|
7572
7572
|
}), C;
|
|
7573
7573
|
}
|
|
7574
|
-
let i = e && e.map((O) => ({ accessor: O.accessor, defaultToggle: O.defaultToggle || !0, toggleable: O.toggleable, toggled: O.defaultToggle === void 0 ? !0 : O.defaultToggle })), [l, u] =
|
|
7574
|
+
let i = e && e.map((O) => ({ accessor: O.accessor, defaultToggle: O.defaultToggle || !0, toggleable: O.toggleable, toggled: O.defaultToggle === void 0 ? !0 : O.defaultToggle })), [l, u] = Un({ key: t ? `${t}-columns-toggle` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
|
|
7575
7575
|
function a(O) {
|
|
7576
7576
|
t && u(O);
|
|
7577
7577
|
}
|
|
@@ -7584,25 +7584,25 @@ function Xu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
7584
7584
|
}
|
|
7585
7585
|
var ed = ({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, scrollViewportRef: i, onFixedLayoutChange: l }) => {
|
|
7586
7586
|
let { columnsOrder: u, setColumnsOrder: a, resetColumnsOrder: m } = Ku({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O } = Xu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V } = Ju({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: l });
|
|
7587
|
-
return { effectiveColumns:
|
|
7588
|
-
},
|
|
7589
|
-
function
|
|
7590
|
-
let e =
|
|
7587
|
+
return { effectiveColumns: Xe(() => u ? u.map((F) => e.find((X) => X.accessor === F)).map((F) => ({ ...F, hidden: F?.hidden || !y.find((X) => X.accessor === F?.accessor)?.toggled })).map((F) => F?.accessor === "__selection__" ? F : { ...F, width: S.find((X) => X[F?.accessor])?.[F?.accessor] }) : e, [e, u, y, S]), setColumnsOrder: a, columnsOrder: u, resetColumnsOrder: m, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O, columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V };
|
|
7588
|
+
}, bi = typeof window < "u" ? ji : $e;
|
|
7589
|
+
function wi(t) {
|
|
7590
|
+
let e = De(t);
|
|
7591
7591
|
return e.current = t, e;
|
|
7592
7592
|
}
|
|
7593
|
-
var
|
|
7594
|
-
function
|
|
7593
|
+
var _i = "--mantine-datatable-header-height", xi = "--mantine-datatable-footer-height", Ci = "--mantine-datatable-selection-column-width", Si = "--mantine-datatable-last-row-border-bottom";
|
|
7594
|
+
function ot(t, e, r) {
|
|
7595
7595
|
t?.style.setProperty(e, r);
|
|
7596
7596
|
}
|
|
7597
|
-
function
|
|
7597
|
+
function Yn(t) {
|
|
7598
7598
|
let e = t.borderBoxSize?.[0] || t.contentBoxSize?.[0];
|
|
7599
7599
|
return e ? { width: e.inlineSize, height: e.blockSize } : { width: t.contentRect.width, height: t.contentRect.height };
|
|
7600
7600
|
}
|
|
7601
|
-
function
|
|
7601
|
+
function Sn(t, e, r) {
|
|
7602
7602
|
if (t) {
|
|
7603
7603
|
let n = new ResizeObserver((i) => {
|
|
7604
7604
|
let l = i[0];
|
|
7605
|
-
l && e(
|
|
7605
|
+
l && e(Yn(l));
|
|
7606
7606
|
});
|
|
7607
7607
|
return n.observe(t), () => {
|
|
7608
7608
|
n.disconnect(), r();
|
|
@@ -7610,30 +7610,30 @@ function Cn(t, e, r) {
|
|
|
7610
7610
|
}
|
|
7611
7611
|
}
|
|
7612
7612
|
function td({ scrollCallbacks: t, withRowBorders: e }) {
|
|
7613
|
-
let r = { root:
|
|
7614
|
-
}), S =
|
|
7615
|
-
}), C =
|
|
7613
|
+
let r = { root: De(null), table: De(null), scrollViewport: De(null), header: De(null), footer: De(null), selectionColumnHeader: De(null) }, { root: n, table: i, scrollViewport: l, header: u, footer: a, selectionColumnHeader: m } = r, y = wi({ withRowBorders: e }), _ = wi(t), O = De(() => {
|
|
7614
|
+
}), S = De(() => {
|
|
7615
|
+
}), C = Le((k) => {
|
|
7616
7616
|
_.current.onScroll?.(k), O.current();
|
|
7617
7617
|
}, []);
|
|
7618
|
-
return
|
|
7619
|
-
|
|
7620
|
-
}, () =>
|
|
7621
|
-
|
|
7622
|
-
}, () =>
|
|
7623
|
-
|
|
7624
|
-
}, () =>
|
|
7618
|
+
return $e(() => Sn(u.current, (k) => {
|
|
7619
|
+
ot(n.current, _i, `${k.height}px`);
|
|
7620
|
+
}, () => ot(n.current, _i, "0")), [u.current]), $e(() => Sn(a.current, (k) => {
|
|
7621
|
+
ot(n.current, xi, `${k.height}px`);
|
|
7622
|
+
}, () => ot(n.current, xi, "0")), [a.current]), $e(() => Sn(m.current, (k) => {
|
|
7623
|
+
ot(n.current, Ci, `${k.width}px`);
|
|
7624
|
+
}, () => ot(n.current, Ci, "0")), [m.current]), bi(() => {
|
|
7625
7625
|
if (typeof window === void 0) return;
|
|
7626
7626
|
let k = { top: !0, bottom: !0, left: !0, right: !0 }, j = { width: 0, height: 0 }, $ = { width: 0, height: 0 };
|
|
7627
7627
|
function z(re, H) {
|
|
7628
7628
|
let Q = k[re];
|
|
7629
|
-
return k[re] = H,
|
|
7629
|
+
return k[re] = H, ot(n.current, `--mantine-datatable-${re}-shadow-opacity`, H ? "0" : "1"), Q;
|
|
7630
7630
|
}
|
|
7631
7631
|
function L() {
|
|
7632
7632
|
let re = j.height - $.height, H = re < 0;
|
|
7633
|
-
|
|
7633
|
+
ot(n.current, "--mantine-datatable-footer-position", H ? "relative" : "sticky"), ot(n.current, "--mantine-datatable-footer-bottom", H ? `${re}px` : "0");
|
|
7634
7634
|
}
|
|
7635
7635
|
function V() {
|
|
7636
|
-
y.current.withRowBorders && j.height < $.height ?
|
|
7636
|
+
y.current.withRowBorders && j.height < $.height ? ot(n.current, Si, `${Et("1px")} solid var(--mantine-datatable-border-color)`) : ot(n.current, Si, "unset");
|
|
7637
7637
|
}
|
|
7638
7638
|
S.current = V;
|
|
7639
7639
|
function F() {
|
|
@@ -7651,11 +7651,11 @@ function td({ scrollCallbacks: t, withRowBorders: e }) {
|
|
|
7651
7651
|
let X = new ResizeObserver((re) => {
|
|
7652
7652
|
for (let H of re) switch (H.target.tagName) {
|
|
7653
7653
|
case "TABLE": {
|
|
7654
|
-
j =
|
|
7654
|
+
j = Yn(H);
|
|
7655
7655
|
break;
|
|
7656
7656
|
}
|
|
7657
7657
|
case "DIV": {
|
|
7658
|
-
$ =
|
|
7658
|
+
$ = Yn(H);
|
|
7659
7659
|
break;
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
@@ -7664,13 +7664,13 @@ function td({ scrollCallbacks: t, withRowBorders: e }) {
|
|
|
7664
7664
|
return X.observe(i.current), X.observe(l.current), () => {
|
|
7665
7665
|
X.disconnect();
|
|
7666
7666
|
};
|
|
7667
|
-
}, []),
|
|
7667
|
+
}, []), bi(() => {
|
|
7668
7668
|
S.current();
|
|
7669
7669
|
}, [e]), { refs: r, onScroll: C };
|
|
7670
7670
|
}
|
|
7671
7671
|
function rd(t) {
|
|
7672
|
-
let [e, r] =
|
|
7673
|
-
return
|
|
7672
|
+
let [e, r] = ve(null), n = t?.join(":") || "";
|
|
7673
|
+
return $e(() => {
|
|
7674
7674
|
r(null);
|
|
7675
7675
|
}, [n]), { lastSelectionChangeIndex: e, setLastSelectionChangeIndex: r };
|
|
7676
7676
|
}
|
|
@@ -7692,52 +7692,52 @@ function od(t, e) {
|
|
|
7692
7692
|
return e || (typeof window < "u" && "matchMedia" in window ? t.map((r) => window.matchMedia(r).matches) : t.map(() => !1));
|
|
7693
7693
|
}
|
|
7694
7694
|
function id(t, e, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
|
|
7695
|
-
let [n, i] =
|
|
7696
|
-
return
|
|
7695
|
+
let [n, i] = ve(r ? e : od(t, e)), l = De(null);
|
|
7696
|
+
return $e(() => {
|
|
7697
7697
|
if ("matchMedia" in window) return l.current = t.map((u) => window.matchMedia(u)), i(l.current.map((u) => u.matches)), nd(l.current, (u) => {
|
|
7698
7698
|
i(u);
|
|
7699
7699
|
});
|
|
7700
7700
|
}, [t]), n;
|
|
7701
7701
|
}
|
|
7702
7702
|
function sd(t) {
|
|
7703
|
-
let e =
|
|
7703
|
+
let e = Li(), r = Xe(() => t.map((i) => (typeof i == "function" ? i(e) : i) ?? ""), [t, e]), n = Xe(() => t.map(() => !0), [t]);
|
|
7704
7704
|
return id(r, n);
|
|
7705
7705
|
}
|
|
7706
|
-
function
|
|
7707
|
-
let e =
|
|
7706
|
+
function rn(t) {
|
|
7707
|
+
let e = Li(), r = typeof t == "function" ? t(e) : t;
|
|
7708
7708
|
return na(r || "", !0);
|
|
7709
7709
|
}
|
|
7710
|
-
function
|
|
7710
|
+
function no(t) {
|
|
7711
7711
|
let e = t.replace(/([a-z\d])([A-Z]+)/g, "$1 $2").replace(/\W|_/g, " ").trim().toLowerCase();
|
|
7712
7712
|
return `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
7713
7713
|
}
|
|
7714
7714
|
function ad(t, e, r) {
|
|
7715
7715
|
return t.filter((n) => !e.map(r).includes(r(n)));
|
|
7716
7716
|
}
|
|
7717
|
-
function
|
|
7717
|
+
function Dn(t, e) {
|
|
7718
7718
|
return t.filter((r, n, i) => n === i.findIndex((l) => e(r) === e(l)));
|
|
7719
7719
|
}
|
|
7720
|
-
function
|
|
7720
|
+
function ys(t, e) {
|
|
7721
7721
|
return e ? e.match(/([^[.\]])+/g).reduce((r, n) => r && r[n], t) : void 0;
|
|
7722
7722
|
}
|
|
7723
|
-
function
|
|
7724
|
-
return typeof e == "string" ?
|
|
7723
|
+
function ze(t, e) {
|
|
7724
|
+
return typeof e == "string" ? ys(t, e) : e(t);
|
|
7725
7725
|
}
|
|
7726
|
-
function
|
|
7727
|
-
return !t || t.length === 0 ? 0 : Math.max(...t.map((e) => e.groups && e.groups.length > 0 ? 1 +
|
|
7726
|
+
function vs(t) {
|
|
7727
|
+
return !t || t.length === 0 ? 0 : Math.max(...t.map((e) => e.groups && e.groups.length > 0 ? 1 + vs(e.groups) : 1));
|
|
7728
7728
|
}
|
|
7729
|
-
function
|
|
7729
|
+
function oo(t) {
|
|
7730
7730
|
let e = [];
|
|
7731
|
-
for (let r of t) r.columns && r.columns.length > 0 ? e.push(...r.columns.filter((n) => n != null)) : r.groups && r.groups.length > 0 && e.push(...
|
|
7731
|
+
for (let r of t) r.columns && r.columns.length > 0 ? e.push(...r.columns.filter((n) => n != null)) : r.groups && r.groups.length > 0 && e.push(...oo(r.groups));
|
|
7732
7732
|
return e.filter((r) => r != null);
|
|
7733
7733
|
}
|
|
7734
|
-
function
|
|
7735
|
-
return t.columns && t.columns.length > 0 ? t.columns.filter((r, n) => r.hidden ? !1 : e ? e[n] !== !1 : !0).length : t.groups && t.groups.length > 0 ? t.groups.reduce((r, n) => r +
|
|
7734
|
+
function zn(t, e) {
|
|
7735
|
+
return t.columns && t.columns.length > 0 ? t.columns.filter((r, n) => r.hidden ? !1 : e ? e[n] !== !1 : !0).length : t.groups && t.groups.length > 0 ? t.groups.reduce((r, n) => r + zn(n, e), 0) : 0;
|
|
7736
7736
|
}
|
|
7737
|
-
function
|
|
7737
|
+
function bs(t, e, r = 0) {
|
|
7738
7738
|
if (r === e) return [...t];
|
|
7739
7739
|
let n = [];
|
|
7740
|
-
for (let i of t) i.groups && i.groups.length > 0 && n.push(...
|
|
7740
|
+
for (let i of t) i.groups && i.groups.length > 0 && n.push(...bs(i.groups, e, r + 1));
|
|
7741
7741
|
return n;
|
|
7742
7742
|
}
|
|
7743
7743
|
function ld(t, e, r) {
|
|
@@ -7747,42 +7747,42 @@ function cd({ rowExpansion: t, records: e, idAccessor: r }) {
|
|
|
7747
7747
|
let n = [];
|
|
7748
7748
|
if (t && e) {
|
|
7749
7749
|
let { trigger: a, allowMultiple: m, initiallyExpanded: y } = t;
|
|
7750
|
-
e && a === "always" ? n = e.map((_) =>
|
|
7750
|
+
e && a === "always" ? n = e.map((_) => ze(_, r)) : y && (n = e.filter((_, O) => y({ record: _, index: O })).map((_) => ze(_, r)), m || (n = [n[0]]));
|
|
7751
7751
|
}
|
|
7752
|
-
let i, l, u =
|
|
7752
|
+
let i, l, u = ve(n);
|
|
7753
7753
|
if (t) {
|
|
7754
7754
|
let { expandable: a, trigger: m, allowMultiple: y, collapseProps: _, content: O } = t;
|
|
7755
7755
|
t.expanded ? { recordIds: i, onRecordIdsChange: l } = t.expanded : [i, l] = u;
|
|
7756
|
-
let S = (C) => l?.(i.filter((k) => k !==
|
|
7757
|
-
return { expandOnClick: m !== "always" && m !== "never", isRowExpanded: (C) => m === "always" ? !0 : i.includes(
|
|
7758
|
-
let k =
|
|
7756
|
+
let S = (C) => l?.(i.filter((k) => k !== ze(C, r)));
|
|
7757
|
+
return { expandOnClick: m !== "always" && m !== "never", isRowExpanded: (C) => m === "always" ? !0 : i.includes(ze(C, r)), isExpandable: ({ record: C, index: k }) => a ? a({ record: C, index: k }) : !0, expandRow: (C) => {
|
|
7758
|
+
let k = ze(C, r);
|
|
7759
7759
|
l?.(y ? [...i, k] : [k]);
|
|
7760
7760
|
}, collapseRow: S, collapseProps: _, content: ({ record: C, index: k }) => () => O({ record: C, index: k, collapse: () => S(C) }) };
|
|
7761
7761
|
}
|
|
7762
7762
|
}
|
|
7763
7763
|
function ud(t, e) {
|
|
7764
|
-
let [r, n] =
|
|
7765
|
-
return
|
|
7764
|
+
let [r, n] = ve(t), [i, l] = ve(t), u = yo(() => n(!0), 0), a = yo(() => l(!1), e || 200);
|
|
7765
|
+
return $e(() => {
|
|
7766
7766
|
t ? (a.clear(), l(!0), u.start()) : (u.clear(), n(!1), a.start());
|
|
7767
7767
|
}, [u, a, t]), { expanded: r, visible: i };
|
|
7768
7768
|
}
|
|
7769
|
-
var
|
|
7769
|
+
var io = "mantine-datatable-nowrap", so = "mantine-datatable-ellipsis", Wt = "mantine-datatable-pointer-cursor", ws = "mantine-datatable-context-menu-cursor", dd = "mantine-datatable-text-selection-disabled", nn = "mantine-datatable-text-align-left", on = "mantine-datatable-text-align-center", sn = "mantine-datatable-text-align-right";
|
|
7770
7770
|
function hd({ className: t, style: e, visibleMediaQuery: r, title: n, noWrap: i, ellipsis: l, textAlign: u, width: a }) {
|
|
7771
|
-
return
|
|
7771
|
+
return rn(r) ? b.jsx(mr, { className: Me({ [io]: i || l, [so]: l, [nn]: u === "left", [on]: u === "center", [sn]: u === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
|
|
7772
7772
|
}
|
|
7773
7773
|
function fd({ shadowVisible: t }) {
|
|
7774
|
-
return b.jsx(
|
|
7774
|
+
return b.jsx(mr, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": t || void 0 });
|
|
7775
7775
|
}
|
|
7776
7776
|
function pd({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: i, selectorCellShadowVisible: l, ref: u }) {
|
|
7777
|
-
return b.jsx(Is, { ref: u, className:
|
|
7777
|
+
return b.jsx(Is, { ref: u, className: Me("mantine-datatable-footer", t), style: e, children: b.jsxs(Ft, { children: [i && b.jsx(fd, { shadowVisible: l }), r.map(({ hidden: a, ...m }) => {
|
|
7778
7778
|
if (a) return null;
|
|
7779
7779
|
let { accessor: y, visibleMediaQuery: _, textAlign: O, width: S, footer: C, footerClassName: k, footerStyle: j, noWrap: $, ellipsis: z } = { ...n, ...m };
|
|
7780
7780
|
return b.jsx(hd, { className: k, style: j, visibleMediaQuery: _, textAlign: O, width: S, title: C, noWrap: $, ellipsis: z }, y);
|
|
7781
7781
|
})] }) });
|
|
7782
7782
|
}
|
|
7783
7783
|
function gd({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: l, style: u }, maxDepth: a, currentDepth: m, previousGroups: y, isLastGroup: _, withColumnBorders: O = !1, totalTableColumns: S }) {
|
|
7784
|
-
let C =
|
|
7785
|
-
return $ > 0 ? b.jsx(
|
|
7784
|
+
let C = Xe(() => e && e.length > 0 ? e : r && r.length > 0 ? oo([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), k = Xe(() => C.map(({ visibleMediaQuery: X }) => X), [C]), j = sd(k), $ = Xe(() => zn({ columns: e, groups: r }, j), [t, e, r, j]), z = Xe(() => y.reduce((X, re) => X + zn(re, j), 0), [y, j]), L = r && r.length > 0 ? 1 : a - m, V = z + $ < S, F = ld(_, V, O);
|
|
7785
|
+
return $ > 0 ? b.jsx(mr, { colSpan: $, rowSpan: L > 1 ? L : void 0, className: Me("mantine-datatable-column-group-header-cell", { [nn]: i === "left", [on]: i === "center", [sn]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": F }, l), style: u, children: n ?? no(t) }) : null;
|
|
7786
7786
|
}
|
|
7787
7787
|
function md() {
|
|
7788
7788
|
return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
|
|
@@ -7791,13 +7791,13 @@ function yd() {
|
|
|
7791
7791
|
return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", strokeWidth: "0", fill: "currentColor" })] });
|
|
7792
7792
|
}
|
|
7793
7793
|
function vd({ children: t, isActive: e, filterPopoverProps: r, filterPopoverDisableClickOutside: n }) {
|
|
7794
|
-
let [i, { close: l, toggle: u }] = oa(!1), a = e ? yd : md, m =
|
|
7795
|
-
return n && (m = void 0), b.jsxs(
|
|
7794
|
+
let [i, { close: l, toggle: u }] = oa(!1), a = e ? yd : md, m = zi(l);
|
|
7795
|
+
return n && (m = void 0), b.jsxs(cr, { withArrow: !0, shadow: "md", opened: i, onClose: l, trapFocus: !0, ...r, children: [b.jsx(Ti, { children: b.jsx(hr, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": e || void 0, size: "sm", variant: "default", onClick: (y) => {
|
|
7796
7796
|
y.preventDefault(), u();
|
|
7797
|
-
}, onKeyDown: (y) => y.stopPropagation(), children: b.jsx(a, {}) }) }), b.jsx(
|
|
7797
|
+
}, onKeyDown: (y) => y.stopPropagation(), children: b.jsx(a, {}) }) }), b.jsx($i, { ref: m, onClick: (y) => y.stopPropagation(), onKeyDown: (y) => y.stopPropagation(), children: typeof t == "function" ? t({ close: l }) : t })] });
|
|
7798
7798
|
}
|
|
7799
7799
|
var bd = (t) => {
|
|
7800
|
-
let { accessor: e, columnRef: r } = t, [n, i] =
|
|
7800
|
+
let { accessor: e, columnRef: r } = t, [n, i] = ve(!1), l = De(0), u = De({ current: 0, next: 0 }), { dir: a } = Fs(), m = a === "rtl", { setMultipleColumnWidths: y } = ro(), _ = Le((S) => {
|
|
7801
7801
|
if (S.preventDefault(), S.stopPropagation(), !r.current) return;
|
|
7802
7802
|
let C = r.current, k = C.nextElementSibling;
|
|
7803
7803
|
for (; k; ) {
|
|
@@ -7834,7 +7834,7 @@ var bd = (t) => {
|
|
|
7834
7834
|
}, 0), document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", F);
|
|
7835
7835
|
};
|
|
7836
7836
|
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", V), document.addEventListener("mouseup", F);
|
|
7837
|
-
}, [e, r, m, y]), O =
|
|
7837
|
+
}, [e, r, m, y]), O = Le(() => {
|
|
7838
7838
|
if (!r.current) return;
|
|
7839
7839
|
let S = r.current, C = S.nextElementSibling;
|
|
7840
7840
|
S.style.width = "", S.style.minWidth = "", S.style.maxWidth = "";
|
|
@@ -7863,9 +7863,9 @@ function Cd() {
|
|
|
7863
7863
|
return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M18 6l-12 12" }), b.jsx("path", { d: "M6 6l12 12" })] });
|
|
7864
7864
|
}
|
|
7865
7865
|
function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: i, sortable: l, draggable: u, toggleable: a, resizable: m, sortIcons: y, textAlign: _, width: O, sortStatus: S, onSortStatusChange: C, filter: k, filterPopoverProps: j, filterPopoverDisableClickOutside: $, filtering: z, sortKey: L }) {
|
|
7866
|
-
let { setSourceColumn: V, setTargetColumn: F, swapColumns: X, setColumnsToggle: re } =
|
|
7867
|
-
if (!
|
|
7868
|
-
let W = i ??
|
|
7866
|
+
let { setSourceColumn: V, setTargetColumn: F, swapColumns: X, setColumnsToggle: re } = ro(), [H, Q] = ve(!1), q = De(null);
|
|
7867
|
+
if (!rn(n)) return null;
|
|
7868
|
+
let W = i ?? no(r), Z = typeof W == "string" ? W : void 0, ne = l && C ? (p) => {
|
|
7869
7869
|
p?.defaultPrevented || C({ sortKey: L, columnAccessor: r, direction: S?.columnAccessor === r ? S.direction === "asc" ? "desc" : "asc" : S?.direction ?? "asc" });
|
|
7870
7870
|
} : void 0, te = (p) => {
|
|
7871
7871
|
p.stopPropagation(), V(r), Q(!1);
|
|
@@ -7880,52 +7880,52 @@ function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title:
|
|
|
7880
7880
|
}, s = (p) => {
|
|
7881
7881
|
p.stopPropagation(), re((f) => f.map((d) => d.accessor === r ? { ...d, toggled: !1 } : d));
|
|
7882
7882
|
};
|
|
7883
|
-
return b.jsxs(
|
|
7883
|
+
return b.jsxs(mr, { "data-accessor": r, className: Me({ "mantine-datatable-header-cell-sortable": l, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": m }, t), style: [{ width: O, ...m ? {} : { minWidth: O, maxWidth: O } }, e], role: l ? "button" : void 0, tabIndex: l ? 0 : void 0, onClick: ne, onKeyDown: (p) => p.key === "Enter" && ne?.(), ref: q, children: [b.jsxs(qe, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [b.jsxs(zs, { align: "center", w: "100%", className: Me({ "mantine-datatable-header-cell-draggable": u, "mantine-datatable-header-cell-drag-over": H }), draggable: u, onDragStart: u ? te : void 0, onDragEnter: u ? w : void 0, onDragOver: u ? P : void 0, onDrop: u ? x : void 0, onDragLeave: u ? h : void 0, children: [u ? b.jsx(Yt, { role: "img", "aria-label": "Drag column", children: b.jsx(hr, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (p) => {
|
|
7884
7884
|
p.stopPropagation();
|
|
7885
|
-
}, children: b.jsx(xd, {}) }) }) : null, b.jsx(
|
|
7885
|
+
}, children: b.jsx(xd, {}) }) }) : null, b.jsx(je, { className: Me("mantine-datatable-header-cell-sortable-text", { [nn]: _ === "left", [on]: _ === "center", [sn]: _ === "right" }, io, so), title: Z, children: W })] }), a ? b.jsx(Yt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: b.jsx(hr, { size: "xs", variant: "light", onClick: s, children: b.jsx(Cd, {}) }) }) : null, l || S?.columnAccessor === r ? b.jsx(b.Fragment, { children: S?.columnAccessor === r ? b.jsx(Yt, { className: Me("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": S.direction === "desc" }), role: "img", "aria-label": `Sorted ${S.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || b.jsx(wd, {}) }) : b.jsx(Yt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || b.jsx(_d, {}) }) }) : null, k ? b.jsx(vd, { filterPopoverProps: j, isActive: !!z, filterPopoverDisableClickOutside: $, children: k }) : null] }), m && r !== "__selection__" ? b.jsx(bd, { accessor: r, columnRef: q }) : null] });
|
|
7886
7886
|
}
|
|
7887
7887
|
function Dd({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: l, checkboxProps: u, onChange: a, rowSpan: m, ref: y }) {
|
|
7888
7888
|
let _ = !u.disabled;
|
|
7889
|
-
return b.jsx(
|
|
7889
|
+
return b.jsx(mr, { ref: y, className: Me("mantine-datatable-header-selector-cell", { [Wt]: r === "cell" && _ }, t), style: e, rowSpan: m, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: b.jsx(Ut, { classNames: _ ? { input: Wt } : void 0, checked: i, indeterminate: l, onChange: a, ...u, disabled: !(a || u.onChange) || u.disabled }) });
|
|
7890
7890
|
}
|
|
7891
7891
|
function kd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: l, columns: u, defaultColumnProps: a, groups: m, selectionTrigger: y, selectionVisible: _, selectionChecked: O, selectionIndeterminate: S, onSelectionChange: C, selectionCheckboxProps: k, selectorCellShadowVisible: j, selectionColumnClassName: $, selectionColumnStyle: z, withColumnBorders: L = !1, ref: V }) {
|
|
7892
|
-
let F = m ?
|
|
7892
|
+
let F = m ? vs(m) : 0, X = F > 0 ? F + 1 : 1, re = _ ? b.jsx(Dd, { ref: t, className: $, style: z, trigger: y, shadowVisible: j, checked: O, indeterminate: S, checkboxProps: k, onChange: C, rowSpan: m ? X : void 0 }) : null, { columnsToggle: H, setColumnsToggle: Q } = ro(), [q, W] = ve(!1), Z = u.some((P) => P.toggleable), ne = Z ? Object.fromEntries(u.map(({ accessor: P, title: x }) => [P, x ?? no(String(P))])) : void 0, te = b.jsxs(Ls, { className: Me("mantine-datatable-header", e), style: r, ref: V, onContextMenu: Z ? (P) => {
|
|
7893
7893
|
P.preventDefault(), W((x) => !x);
|
|
7894
7894
|
} : void 0, children: [m && Array.from({ length: F }, (P, x) => {
|
|
7895
|
-
let w =
|
|
7895
|
+
let w = bs(m, x);
|
|
7896
7896
|
return b.jsxs(Ft, { children: [x === 0 && re, w.map((h, s) => b.jsx(gd, { group: h, maxDepth: F, currentDepth: x, previousGroups: w.slice(0, s), isLastGroup: s === w.length - 1, withColumnBorders: L, totalTableColumns: u.length }, h.id))] }, `group-depth-${x}`);
|
|
7897
7897
|
}), b.jsxs(Ft, { children: [!m && re, u.map(({ hidden: P, ...x }, w) => {
|
|
7898
7898
|
if (P) return null;
|
|
7899
7899
|
let { accessor: h, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: v, draggable: D, toggleable: R, resizable: U, titleClassName: K, titleStyle: ee, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae, sortKey: A } = { ...a, ...x };
|
|
7900
7900
|
return b.jsx(Sd, { accessor: h, className: K, style: ee, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: v, draggable: D, toggleable: R, resizable: U && w < u.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: l, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae }, h);
|
|
7901
7901
|
})] })] });
|
|
7902
|
-
return Z ? b.jsxs(
|
|
7902
|
+
return Z ? b.jsxs(cr, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: W, children: [b.jsx(Ti, { children: te }), b.jsx($i, { children: b.jsx(dr, { children: H.filter((P) => P.toggleable).map((P) => b.jsx(qe, { children: b.jsx(Ut, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ne[P.accessor], checked: P.toggled, onChange: (x) => {
|
|
7903
7903
|
Q(H.map((w) => w.accessor === P.accessor ? { ...w, toggled: x.currentTarget.checked } : w));
|
|
7904
7904
|
} }) }, P.accessor)) }) })] }) : te;
|
|
7905
7905
|
}
|
|
7906
7906
|
function Pd({ fetching: t, customContent: e, backgroundBlur: r, size: n, type: i, color: l }) {
|
|
7907
|
-
return b.jsx(Yt, { className:
|
|
7907
|
+
return b.jsx(Yt, { className: Me("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || b.jsx(Bs, { size: n, type: i, color: l })) });
|
|
7908
7908
|
}
|
|
7909
|
-
function
|
|
7909
|
+
function Re(t, e, r) {
|
|
7910
7910
|
return t ? Ys({ color: typeof t == "object" ? t[r] : t, theme: e }).value : void 0;
|
|
7911
7911
|
}
|
|
7912
7912
|
function Od({ theme: t, c: e, backgroundColor: r, borderColor: n, rowBorderColor: i, stripedColor: l, highlightOnHoverColor: u }) {
|
|
7913
|
-
return { "--mantine-datatable-color-light":
|
|
7913
|
+
return { "--mantine-datatable-color-light": Re(e, t, "light"), "--mantine-datatable-color-dark": Re(e, t, "dark"), "--mantine-datatable-background-color-light": Re(r, t, "light"), "--mantine-datatable-background-color-dark": Re(r, t, "dark"), "--mantine-datatable-border-color-light": Re(n, t, "light"), "--mantine-datatable-border-color-dark": Re(n, t, "dark"), "--mantine-datatable-row-border-color-light": Re(i, t, "light"), "--mantine-datatable-row-border-color-dark": Re(i, t, "dark"), "--mantine-datatable-striped-color-light": Re(l, t, "light"), "--mantine-datatable-striped-color-dark": Re(l, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Re(u, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": Re(u, t, "dark") };
|
|
7914
7914
|
}
|
|
7915
|
-
function
|
|
7916
|
-
return { "--mantine-datatable-pagination-active-text-color-light":
|
|
7915
|
+
function _s({ theme: t, paginationActiveTextColor: e, paginationActiveBackgroundColor: r }) {
|
|
7916
|
+
return { "--mantine-datatable-pagination-active-text-color-light": Re(e, t, "light"), "--mantine-datatable-pagination-active-text-color-dark": Re(e, t, "dark"), "--mantine-datatable-pagination-active-background-color-light": Re(r, t, "light"), "--mantine-datatable-pagination-active-background-color-dark": Re(r, t, "dark") };
|
|
7917
7917
|
}
|
|
7918
7918
|
function jd({ theme: t, color: e, backgroundColor: r }) {
|
|
7919
|
-
return { "--mantine-datatable-row-color-light":
|
|
7919
|
+
return { "--mantine-datatable-row-color-light": Re(e, t, "light"), "--mantine-datatable-row-color-dark": Re(e, t, "dark"), "--mantine-datatable-row-background-color-light": Re(r, t, "light"), "--mantine-datatable-row-background-color-dark": Re(r, t, "dark") };
|
|
7920
7920
|
}
|
|
7921
7921
|
function Md() {
|
|
7922
7922
|
return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M8 9l4 -4l4 4" }), b.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
|
|
7923
7923
|
}
|
|
7924
|
-
var
|
|
7924
|
+
var Di = { xs: Et(22), sm: Et(26), md: Et(32), lg: Et(38), xl: Et(44) };
|
|
7925
7925
|
function Ad({ size: t, label: e, values: r, value: n, activeTextColor: i, activeBackgroundColor: l, onChange: u }) {
|
|
7926
|
-
return b.jsxs(qe, { gap: "xs", children: [b.jsx(
|
|
7926
|
+
return b.jsxs(qe, { gap: "xs", children: [b.jsx(at, { component: "div", size: t, children: e }), b.jsxs(Rt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [b.jsx(Ws, { children: b.jsx(mt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: b.jsx(Md, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: Di[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), b.jsx(Us, { children: r.map((a) => {
|
|
7927
7927
|
let m = a === n;
|
|
7928
|
-
return b.jsx(qs, { className:
|
|
7928
|
+
return b.jsx(qs, { className: Me({ "mantine-datatable-page-size-selector-active": m }), style: [{ height: Di[t] }, m && (i || l) ? (y) => _s({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: l }) : void 0], disabled: m, onClick: () => u(a), children: b.jsx(at, { component: "div", size: t, children: a }) }, a);
|
|
7929
7929
|
}) })] })] });
|
|
7930
7930
|
}
|
|
7931
7931
|
function Rd({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: l, paginationWithControls: u, paginationActiveTextColor: a, paginationActiveBackgroundColor: m, paginationSize: y, loadingText: _, noRecordsText: O, paginationText: S, totalRecords: C, recordsPerPage: k, onRecordsPerPageChange: j, recordsPerPageLabel: $, recordsPerPageOptions: z, recordsLength: L, horizontalSpacing: V, paginationWrapBreakpoint: F, getPaginationControlProps: X, getPaginationItemProps: re, renderPagination: H }) {
|
|
@@ -7934,21 +7934,21 @@ function Rd({ className: t, style: e, fetching: r, page: n, onPageChange: i, pag
|
|
|
7934
7934
|
let x = (n - 1) * k + 1, w = x + (L || 0) - 1;
|
|
7935
7935
|
Q = S({ from: x, to: w, totalRecords: C });
|
|
7936
7936
|
} else Q = r ? _ : O;
|
|
7937
|
-
let q = C && k ? Math.max(1, Math.ceil(C / k)) : 1, W = C ? (n - 1) * (k ?? 0) + 1 : void 0, Z = C ? (W ?? 1) + (L ?? 0) - 1 : void 0, ne = !
|
|
7938
|
-
return b.jsx(
|
|
7937
|
+
let q = C && k ? Math.max(1, Math.ceil(C / k)) : 1, W = C ? (n - 1) * (k ?? 0) + 1 : void 0, Z = C ? (W ?? 1) + (L ?? 0) - 1 : void 0, ne = !rn(({ breakpoints: x }) => `(min-width: ${typeof F == "number" ? `${Et(F)}rem` : x[F] || F})`), te = { Text: (x) => b.jsx(at, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: Q }), PageSizeSelector: (x) => z ? b.jsx(Ad, { activeTextColor: a, activeBackgroundColor: m, size: y, label: $, values: z, value: k, onChange: j, ...x }) : b.jsx(b.Fragment, {}), Pagination: (x) => b.jsx(Ii, { classNames: { root: Me("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !L }), control: "mantine-datatable-pagination-pages-control" }, style: a || m ? (w) => _s({ theme: w, paginationActiveTextColor: a, paginationActiveBackgroundColor: m }) : void 0, withEdges: l, withControls: u, value: n, onChange: i, size: y, total: q, getControlProps: X, getItemProps: re, ...x }) }, P = { state: { paginationSize: y, page: n, totalPages: q, totalRecords: C, recordsPerPage: k, recordsLength: L, fetching: r, from: W, to: Z, isWrapped: ne }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: j ? (x) => j(x) : void 0 }, Controls: te };
|
|
7938
|
+
return b.jsx(je, { px: V ?? "xs", py: "xs", className: Me("mantine-datatable-pagination", t), style: [{ flexDirection: ne ? "column" : "row" }, e], children: typeof H == "function" ? H(P) : b.jsxs(b.Fragment, { children: [b.jsx(te.Text, {}), b.jsx(te.PageSizeSelector, {}), b.jsx(te.Pagination, {})] }) });
|
|
7939
7939
|
}
|
|
7940
7940
|
function Ed({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: l, onDoubleClick: u, onContextMenu: a, noWrap: m, ellipsis: y, textAlign: _, width: O, accessor: S, render: C, defaultRender: k, customCellAttributes: j }) {
|
|
7941
|
-
return
|
|
7941
|
+
return rn(r) ? b.jsx(Wn, { className: Me({ [io]: m || y, [so]: y, [Wt]: l || u, [ws]: a, [nn]: _ === "left", [on]: _ === "center", [sn]: _ === "right" }, t), style: [{ width: O, minWidth: O, maxWidth: O }, e], onClick: l, onDoubleClick: u, onContextMenu: a, ...j?.(n, i), children: C ? C(n, i) : k ? k(n, i, S) : ys(n, S) }) : null;
|
|
7942
7942
|
}
|
|
7943
7943
|
function Td({ open: t, colSpan: e, content: r, collapseProps: n }) {
|
|
7944
7944
|
let { expanded: i, visible: l } = ud(t, n?.transitionDuration);
|
|
7945
|
-
return l ? b.jsxs(b.Fragment, { children: [b.jsx(Ft, {}), b.jsx(Ft, { children: b.jsx(
|
|
7945
|
+
return l ? b.jsxs(b.Fragment, { children: [b.jsx(Ft, {}), b.jsx(Ft, { children: b.jsx(Wn, { className: "mantine-datatable-row-expansion-cell", colSpan: e, children: b.jsx(Ni, { in: i, ...n, children: b.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
|
|
7946
7946
|
}
|
|
7947
7947
|
function $d({ className: t, style: e, record: r, index: n, trigger: i, onChange: l, withRightShadow: u, checkboxProps: a, getCheckboxProps: m, ...y }) {
|
|
7948
7948
|
let _ = { ...a, ...m(r, n) }, O = !y.disabled && !_.disabled, S = (C) => {
|
|
7949
7949
|
C.stopPropagation(), i === "cell" && O && l?.(C);
|
|
7950
7950
|
};
|
|
7951
|
-
return b.jsx(
|
|
7951
|
+
return b.jsx(Wn, { className: Me("mantine-datatable-row-selector-cell", { [Wt]: i === "cell" && O }, t), style: e, "data-shadow-visible": u || void 0, onClick: S, children: b.jsx(Ut, { classNames: O ? { input: Wt } : void 0, onChange: l, ...y, ..._ }) });
|
|
7952
7952
|
}
|
|
7953
7953
|
function Nd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: l, selectionVisible: u, selectionChecked: a, onSelectionChange: m, isRecordSelectable: y, selectionCheckboxProps: _, getSelectionCheckboxProps: O, onClick: S, onDoubleClick: C, onContextMenu: k, onCellClick: j, onCellDoubleClick: $, onCellContextMenu: z, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H, selectorCellShadowVisible: Q, selectionColumnClassName: q, selectionColumnStyle: W, rowFactory: Z }) {
|
|
7954
7954
|
let ne = b.jsxs(b.Fragment, { children: [u && b.jsx($d, { className: q, style: W, record: t, index: e, trigger: l, withRightShadow: Q, checked: a, disabled: !m || (y ? !y(t, e) : !1), onChange: m, checkboxProps: _, getCheckboxProps: O }), r.map(({ hidden: x, hiddenContent: w, ...h }, s) => {
|
|
@@ -7959,7 +7959,7 @@ function Nd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultCol
|
|
|
7959
7959
|
return Z ? Z({ record: t, index: e, rowProps: P, children: ne, expandedElement: te }) : b.jsxs(b.Fragment, { children: [b.jsx(Ft, { ...P, children: ne }), te] });
|
|
7960
7960
|
}
|
|
7961
7961
|
function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: l, expansion: u, customAttributes: a, color: m, backgroundColor: y, className: _, style: O }) {
|
|
7962
|
-
return { className:
|
|
7962
|
+
return { className: Me("mantine-datatable-row", { [Wt]: n || i || u?.isExpandable({ record: t, index: e }) && u?.expandOnClick }, { [ws]: l }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (S) => {
|
|
7963
7963
|
if (u) {
|
|
7964
7964
|
let { isExpandable: C, isRowExpanded: k, expandOnClick: j, expandRow: $, collapseRow: z } = u;
|
|
7965
7965
|
C({ record: t, index: e }) && j && (k(t) ? z(t) : $(t));
|
|
@@ -7971,48 +7971,48 @@ function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClic
|
|
|
7971
7971
|
} : void 0, O?.(t, e)], ...a?.(t, e) ?? {} };
|
|
7972
7972
|
}
|
|
7973
7973
|
function Id({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: i, scrollAreaProps: l }) {
|
|
7974
|
-
return b.jsxs(Ns, { ...l, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, b.jsx(
|
|
7974
|
+
return b.jsxs(Ns, { ...l, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, b.jsx(je, { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), b.jsx("div", { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), b.jsx("div", { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), b.jsx(je, { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
7975
7975
|
}
|
|
7976
|
-
function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: l, shadow: u, verticalAlign: a = "center", fetching: m, columns: y, storeColumnsKey: _, groups: O, pinFirstColumn: S, pinLastColumn: C, defaultColumnProps: k, defaultColumnRender: j, idAccessor: $ = "id", records: z, selectionTrigger: L = "checkbox", selectedRecords: V, onSelectedRecordsChange: F, selectionColumnClassName: X, selectionColumnStyle: re, isRecordSelectable: H, selectionCheckboxProps: Q, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: W = (
|
|
7977
|
-
let
|
|
7978
|
-
|
|
7976
|
+
function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: l, shadow: u, verticalAlign: a = "center", fetching: m, columns: y, storeColumnsKey: _, groups: O, pinFirstColumn: S, pinLastColumn: C, defaultColumnProps: k, defaultColumnRender: j, idAccessor: $ = "id", records: z, selectionTrigger: L = "checkbox", selectedRecords: V, onSelectedRecordsChange: F, selectionColumnClassName: X, selectionColumnStyle: re, isRecordSelectable: H, selectionCheckboxProps: Q, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: W = (_e, be) => ({ "aria-label": `Select record ${be + 1}` }), sortStatus: Z, sortIcons: ne, onSortStatusChange: te, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d = "Records per page", paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K = "sm", paginationText: ee = ({ from: _e, to: be, totalRecords: Ue }) => `${_e} - ${be} / ${Ue}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: ie = (_e) => _e === "previous" ? { "aria-label": "Previous page" } : _e === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: A, customLoader: N, loaderSize: E, loaderType: B, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: M, striped: T, noHeader: Y, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: G, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: xe, onScrollToBottom: we, onScrollToLeft: ke, onScrollToRight: He, c: Ne, backgroundColor: Pe, borderColor: Ot, rowBorderColor: Ee, stripedColor: lt, highlightOnHoverColor: Ye, rowColor: rt, rowBackgroundColor: ct, rowExpansion: Te, rowClassName: ut, rowStyle: dt, customRowAttributes: Ge, scrollViewportRef: Qe, scrollAreaProps: Ze, tableRef: ht, bodyRef: yt, m: ft, my: me, mx: Oe, mt: nt, mb: vt, ml: Qt, mr: Nt, className: bt, classNames: Ke, style: wt, styles: pt, rowFactory: Ce, tableWrapper: Se, ...gt }) {
|
|
7977
|
+
let _e = Xe(() => O ? oo(O) : y, [y, O]), [be, Ue] = ve(!1), { refs: Ae, onScroll: Lt } = td({ scrollCallbacks: { onScroll: fe, onScrollToTop: xe, onScrollToBottom: we, onScrollToLeft: ke, onScrollToRight: He }, withRowBorders: gt.withRowBorders }), an = ed({ key: _, columns: _e, headerRef: Ae.header, scrollViewportRef: Ae.scrollViewport, onFixedLayoutChange: Ue }), xs = mo(Ae.table, ht), Cs = mo(Ae.scrollViewport, Qe), Ss = cd({ rowExpansion: Te, records: z, idAccessor: $ }), yr = De(!1), ao = De(x), ln = De(z), Ds = Le((ye) => {
|
|
7978
|
+
yr.current = !0, ln.current = z, w(ye);
|
|
7979
7979
|
}, [w, z]);
|
|
7980
|
-
|
|
7981
|
-
|
|
7980
|
+
$e(() => {
|
|
7981
|
+
ao.current !== x && (yr.current = !0, ln.current = z, ao.current = x);
|
|
7982
7982
|
}, [x, z]);
|
|
7983
|
-
let
|
|
7984
|
-
|
|
7985
|
-
if (!
|
|
7986
|
-
let
|
|
7987
|
-
if (!
|
|
7983
|
+
let vr = z?.length;
|
|
7984
|
+
ji(() => {
|
|
7985
|
+
if (!yr.current || m || z === ln.current) return;
|
|
7986
|
+
let ye = Ae.scrollViewport.current;
|
|
7987
|
+
if (!ye) return;
|
|
7988
7988
|
let jt = requestAnimationFrame(() => {
|
|
7989
|
-
|
|
7989
|
+
ye.scrollTo({ top: 0, left: 0 }), yr.current = !1;
|
|
7990
7990
|
});
|
|
7991
7991
|
return () => cancelAnimationFrame(jt);
|
|
7992
|
-
}, [m, z,
|
|
7993
|
-
let
|
|
7994
|
-
V && F && F(
|
|
7995
|
-
}, [
|
|
7996
|
-
return b.jsx(
|
|
7997
|
-
let
|
|
7998
|
-
return F && V && (
|
|
7999
|
-
if (As.nativeEvent.shiftKey &&
|
|
8000
|
-
let Bt = z.filter(jt >
|
|
8001
|
-
F(
|
|
8002
|
-
} else F(
|
|
7992
|
+
}, [m, z, Ae.scrollViewport]);
|
|
7993
|
+
let lo = z?.map((ye) => ze(ye, $)), It = !!V, Zt = V?.map((ye) => ze(ye, $)), co = lo !== void 0 && Zt !== void 0 && Zt.length > 0, cn = H ? z?.filter(H) : z, br = cn?.map((ye) => ze(ye, $)), wr = co && br.every((ye) => Zt.includes(ye)), ks = co && br.some((ye) => Zt.includes(ye)), Ps = Le(() => {
|
|
7994
|
+
V && F && F(wr ? V.filter((ye) => !br.includes(ze(ye, $))) : Dn([...V, ...cn], (ye) => ze(ye, $)));
|
|
7995
|
+
}, [wr, $, F, br, cn, V]), { lastSelectionChangeIndex: _r, setLastSelectionChangeIndex: Os } = rd(lo), un = It && !S, js = { m: ft, my: me, mx: Oe, mt: nt, mb: vt, ml: Qt, mr: Nt }, Ms = Le(({ children: ye }) => Se ? Se({ children: ye }) : ye, [Se]);
|
|
7996
|
+
return b.jsx(vi, { ...an, children: b.jsxs(je, { ref: Ae.root, ...js, className: Me("mantine-datatable", { "mantine-datatable-with-border": t }, bt, Ke?.root), style: [(ye) => ({ ...Od({ theme: ye, c: Ne, backgroundColor: Pe, borderColor: Ot, rowBorderColor: Ee, stripedColor: lt, highlightOnHoverColor: Ye }), borderRadius: ye.radius[e] || e, boxShadow: ye.shadows[u] || u, height: n, minHeight: i, maxHeight: l }), wt, pt?.root, { position: "relative" }], children: [b.jsx(Id, { viewportRef: Cs, leftShadowBehind: It || !!S, rightShadowBehind: C, onScrollPositionChange: Lt, scrollAreaProps: Ze, children: b.jsx(Ms, { children: b.jsxs($s, { ref: xs, horizontalSpacing: P, className: Me("mantine-datatable-table", { [dd]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": C, "mantine-datatable-selection-column-visible": It, "mantine-datatable-pin-first-column": S, "mantine-datatable-resizable-columns": an.hasResizableColumns && be }, Ke?.table), style: { ...pt?.table }, "data-striped": vr && T || void 0, "data-highlight-on-hover": M || void 0, ...gt, children: [Y ? null : b.jsx(vi, { ...an, children: b.jsx(kd, { ref: Ae.header, selectionColumnHeaderRef: Ae.selectionColumnHeader, className: Ke?.header, style: pt?.header, columns: _e, defaultColumnProps: k, groups: O, sortStatus: Z, sortIcons: ne, onSortStatusChange: te, selectionTrigger: L, selectionVisible: It, selectionChecked: wr, selectionIndeterminate: ks && !wr, onSelectionChange: Ps, selectionCheckboxProps: { ...Q, ...q }, selectorCellShadowVisible: un, selectionColumnClassName: X, selectionColumnStyle: re, withColumnBorders: gt.withColumnBorders }) }), b.jsx("tbody", { ref: yt, children: vr ? z.map((ye, jt) => {
|
|
7997
|
+
let dn = ze(ye, $), hn = Zt?.includes(dn) || !1, uo;
|
|
7998
|
+
return F && V && (uo = (As) => {
|
|
7999
|
+
if (As.nativeEvent.shiftKey && _r !== null) {
|
|
8000
|
+
let Bt = z.filter(jt > _r ? (Mt, At) => At >= _r && At <= jt && (H ? H(Mt, At) : !0) : (Mt, At) => At >= jt && At <= _r && (H ? H(Mt, At) : !0));
|
|
8001
|
+
F(hn ? ad(V, Bt, (Mt) => ze(Mt, $)) : Dn([...V, ...Bt], (Mt) => ze(Mt, $)));
|
|
8002
|
+
} else F(hn ? V.filter((Bt) => ze(Bt, $) !== dn) : Dn([...V, ye], (Bt) => ze(Bt, $)));
|
|
8003
8003
|
Os(jt);
|
|
8004
|
-
}), b.jsx(Nd, { record:
|
|
8005
|
-
}) : b.jsx(Gu, {}) }),
|
|
8004
|
+
}), b.jsx(Nd, { record: ye, index: jt, columns: _e, defaultColumnProps: k, defaultColumnRender: j, selectionTrigger: L, selectionVisible: It, selectionChecked: hn, onSelectionChange: uo, isRecordSelectable: H, selectionCheckboxProps: Q, getSelectionCheckboxProps: W, onClick: se, onDoubleClick: ue, onCellClick: G, onCellDoubleClick: de, onContextMenu: he, onCellContextMenu: pe, expansion: Ss, color: rt, backgroundColor: ct, className: ut, style: dt, customAttributes: Ge, selectorCellShadowVisible: un, selectionColumnClassName: X, selectionColumnStyle: re, idAccessor: $, rowFactory: Ce }, dn);
|
|
8005
|
+
}) : b.jsx(Gu, {}) }), _e.some(({ footer: ye }) => ye) && b.jsx(pd, { ref: Ae.footer, className: Ke?.footer, style: pt?.footer, columns: _e, defaultColumnProps: k, selectionVisible: It, selectorCellShadowVisible: un })] }) }) }), x && b.jsx(Rd, { className: Ke?.pagination, style: pt?.pagination, horizontalSpacing: P, fetching: m, page: x, onPageChange: Ds, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d, paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K, paginationText: ee, paginationWrapBreakpoint: J, getPaginationControlProps: ie, getPaginationItemProps: oe, noRecordsText: c, loadingText: le, recordsLength: vr, renderPagination: ae }), b.jsx(Pd, { fetching: m, backgroundBlur: A, customContent: N, size: E, type: B, color: I }), b.jsx(Zu, { icon: g, text: c, active: !m && !vr, children: o })] }) });
|
|
8006
8006
|
}
|
|
8007
8007
|
function Yd(t) {
|
|
8008
|
-
const e =
|
|
8008
|
+
const e = Ve.c(42), {
|
|
8009
8009
|
fields: r,
|
|
8010
8010
|
onClose: n,
|
|
8011
8011
|
queryKey: i,
|
|
8012
8012
|
apiPath: l,
|
|
8013
8013
|
id: u,
|
|
8014
8014
|
steps: a
|
|
8015
|
-
} = t, [m, y] =
|
|
8015
|
+
} = t, [m, y] = ve(0), [_, O] = ve(!1), {
|
|
8016
8016
|
data: S,
|
|
8017
8017
|
isLoading: C
|
|
8018
8018
|
} = Yc(l, i, u), {
|
|
@@ -8020,7 +8020,7 @@ function Yd(t) {
|
|
|
8020
8020
|
isError: j,
|
|
8021
8021
|
error: $,
|
|
8022
8022
|
isPending: z
|
|
8023
|
-
} =
|
|
8023
|
+
} = Xi(l, i);
|
|
8024
8024
|
let L;
|
|
8025
8025
|
e[0] !== r ? (L = new Set(r.filter(Vd).map(qd)), e[0] = r, e[1] = L) : L = e[1];
|
|
8026
8026
|
let V;
|
|
@@ -8036,7 +8036,7 @@ function Yd(t) {
|
|
|
8036
8036
|
initialValues: X,
|
|
8037
8037
|
validate: re
|
|
8038
8038
|
}, e[8] = X, e[9] = re, e[10] = H) : H = e[10];
|
|
8039
|
-
const Q =
|
|
8039
|
+
const Q = Bi(H);
|
|
8040
8040
|
let q;
|
|
8041
8041
|
e[11] !== S || e[12] !== r || e[13] !== Q ? (q = () => {
|
|
8042
8042
|
if (S) {
|
|
@@ -8050,7 +8050,7 @@ function Yd(t) {
|
|
|
8050
8050
|
}
|
|
8051
8051
|
}, e[11] = S, e[12] = r, e[13] = Q, e[14] = q) : q = e[14];
|
|
8052
8052
|
let W;
|
|
8053
|
-
e[15] !== S ? (W = [S], e[15] = S, e[16] = W) : W = e[16],
|
|
8053
|
+
e[15] !== S ? (W = [S], e[15] = S, e[16] = W) : W = e[16], $e(q, W);
|
|
8054
8054
|
let Z;
|
|
8055
8055
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (Z = function(p, f) {
|
|
8056
8056
|
return typeof p.required == "function" ? p.required(f ?? {}) : !!p.required;
|
|
@@ -8062,14 +8062,14 @@ function Yd(t) {
|
|
|
8062
8062
|
if (p.conditional && !p.conditional(f))
|
|
8063
8063
|
return null;
|
|
8064
8064
|
const d = ne(p, f);
|
|
8065
|
-
return /* @__PURE__ */ b.jsxs(
|
|
8066
|
-
(p.type === void 0 || p.type == "text") && /* @__PURE__ */ b.jsx(
|
|
8067
|
-
p.type === "number" && /* @__PURE__ */ b.jsx(
|
|
8068
|
-
p.type === "date" && /* @__PURE__ */ b.jsx(
|
|
8065
|
+
return /* @__PURE__ */ b.jsxs(Oi, { children: [
|
|
8066
|
+
(p.type === void 0 || p.type == "text") && /* @__PURE__ */ b.jsx(Ai, { label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), type: p.id.includes("email") ? "email" : void 0, required: d }, Q.key(p.id)),
|
|
8067
|
+
p.type === "number" && /* @__PURE__ */ b.jsx(Ri, { decimalSeparator: ",", label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), required: d }, Q.key(p.id)),
|
|
8068
|
+
p.type === "date" && /* @__PURE__ */ b.jsx(tn, { label: p.column.title, placeholder: p.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...Q.getInputProps(p.id), required: d }, Q.key(p.id)),
|
|
8069
8069
|
p.type === "boolean" && /* @__PURE__ */ b.jsx(Ut, { mt: "md", label: p.column.title, ...Q.getInputProps(p.id, {
|
|
8070
8070
|
type: "checkbox"
|
|
8071
8071
|
}), required: d }, Q.key(p.id)),
|
|
8072
|
-
p.type === "textarea" && /* @__PURE__ */ b.jsx(
|
|
8072
|
+
p.type === "textarea" && /* @__PURE__ */ b.jsx(Ei, { label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), minRows: 3, autosize: !0, required: d }, Q.key(p.id)),
|
|
8073
8073
|
p.type === "custom" && p.render && p.render({
|
|
8074
8074
|
...Q.getValues(),
|
|
8075
8075
|
id: u
|
|
@@ -8081,9 +8081,9 @@ function Yd(t) {
|
|
|
8081
8081
|
}, e[18] = Q, e[19] = u, e[20] = te) : te = e[20];
|
|
8082
8082
|
const P = te;
|
|
8083
8083
|
let x;
|
|
8084
|
-
e[21] !== j || e[22] !== $?.message || e[23] !== $?.name ? (x = j && /* @__PURE__ */ b.jsx(
|
|
8084
|
+
e[21] !== j || e[22] !== $?.message || e[23] !== $?.name ? (x = j && /* @__PURE__ */ b.jsx(Br, { variant: "outline", color: "red", title: $?.name ?? "Fehler aufgetreten", mb: "lg", children: $?.message ?? "Fehler aufgetreten" }), e[21] = j, e[22] = $?.message, e[23] = $?.name, e[24] = x) : x = e[24];
|
|
8085
8085
|
let w;
|
|
8086
|
-
e[25] !== m || e[26] !== r || e[27] !== Q || e[28] !== _ || e[29] !== u || e[30] !== C || e[31] !== z || e[32] !== j || e[33] !== n || e[34] !== P || e[35] !== a || e[36] !== F || e[37] !== k ? (w = C ? /* @__PURE__ */ b.jsxs(
|
|
8086
|
+
e[25] !== m || e[26] !== r || e[27] !== Q || e[28] !== _ || e[29] !== u || e[30] !== C || e[31] !== z || e[32] !== j || e[33] !== n || e[34] !== P || e[35] !== a || e[36] !== F || e[37] !== k ? (w = C ? /* @__PURE__ */ b.jsxs(dr, { gap: "md", children: [
|
|
8087
8087
|
/* @__PURE__ */ b.jsx(zt, { height: 40 }),
|
|
8088
8088
|
Array(r.length).fill(0).map(zd),
|
|
8089
8089
|
/* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
|
|
@@ -8096,12 +8096,12 @@ function Yd(t) {
|
|
|
8096
8096
|
id: u
|
|
8097
8097
|
}), F.length && m < F.length - 1 ? j || y(m + 1) : j || (Q.setInitialValues(s), Q.reset(), n());
|
|
8098
8098
|
}), children: [
|
|
8099
|
-
F.length ? /* @__PURE__ */ b.jsx(
|
|
8099
|
+
F.length ? /* @__PURE__ */ b.jsx(Er, { active: m, size: "sm", children: F.map((s) => /* @__PURE__ */ b.jsx(Er.Step, { ...a && a[s - 1] ? {
|
|
8100
8100
|
label: a[s - 1].label
|
|
8101
8101
|
} : {}, children: r.filter((p) => p.step === s).map((p) => P(p)) }, s)) }) : r.map((s) => P(s)),
|
|
8102
8102
|
!_ && /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
|
|
8103
|
-
/* @__PURE__ */ b.jsx(
|
|
8104
|
-
/* @__PURE__ */ b.jsx(
|
|
8103
|
+
/* @__PURE__ */ b.jsx(mt, { onClick: () => F.length ? m === 0 ? n() : y(m - 1) : n(), variant: "outline", children: F.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
8104
|
+
/* @__PURE__ */ b.jsx(mt, { type: "submit", loading: z, children: F.length ? m === F.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
8105
8105
|
] })
|
|
8106
8106
|
] }), e[25] = m, e[26] = r, e[27] = Q, e[28] = _, e[29] = u, e[30] = C, e[31] = z, e[32] = j, e[33] = n, e[34] = P, e[35] = a, e[36] = F, e[37] = k, e[38] = w) : w = e[38];
|
|
8107
8107
|
let h;
|
|
@@ -8139,15 +8139,15 @@ function Hd({
|
|
|
8139
8139
|
isError: l,
|
|
8140
8140
|
error: u,
|
|
8141
8141
|
isPending: a
|
|
8142
|
-
} = Qc(e, t), [m, y] =
|
|
8143
|
-
return
|
|
8142
|
+
} = Qc(e, t), [m, y] = ve(n), [_, O] = ve(!1), S = _ || a;
|
|
8143
|
+
return $e(() => {
|
|
8144
8144
|
m.length || r();
|
|
8145
8145
|
}, [r, m]), m.length ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8146
|
-
l && u.message && /* @__PURE__ */ b.jsx(
|
|
8147
|
-
/* @__PURE__ */ b.jsx(
|
|
8146
|
+
l && u.message && /* @__PURE__ */ b.jsx(Br, { variant: "outline", color: "red", title: u.name, children: u.message }),
|
|
8147
|
+
/* @__PURE__ */ b.jsx(at, { children: m.length === 1 ? `Soll ${m.length} Eintrag wirklich gelöscht werden?` : `Sollen ${m.length} Einträge wirklich gelöscht werden?` }),
|
|
8148
8148
|
/* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
|
|
8149
|
-
/* @__PURE__ */ b.jsx(
|
|
8150
|
-
/* @__PURE__ */ b.jsx(
|
|
8149
|
+
/* @__PURE__ */ b.jsx(mt, { onClick: r, variant: "outline", disabled: S, children: "Abbrechen" }),
|
|
8150
|
+
/* @__PURE__ */ b.jsx(mt, { color: "red", loading: S, onClick: async () => {
|
|
8151
8151
|
O(!0);
|
|
8152
8152
|
try {
|
|
8153
8153
|
await Promise.all(m.map((C) => i(C.id))), y([]);
|
|
@@ -8159,13 +8159,13 @@ function Hd({
|
|
|
8159
8159
|
] }) : /* @__PURE__ */ b.jsx(b.Fragment, {});
|
|
8160
8160
|
}
|
|
8161
8161
|
function Gd(t, e) {
|
|
8162
|
-
const r =
|
|
8162
|
+
const r = Ve.c(8);
|
|
8163
8163
|
let n;
|
|
8164
8164
|
r[0] !== t || r[1] !== e ? (n = () => {
|
|
8165
8165
|
const y = localStorage.getItem(`use_persistent_storage_${e}`);
|
|
8166
8166
|
return y ? JSON.parse(y) : t;
|
|
8167
8167
|
}, r[0] = t, r[1] = e, r[2] = n) : n = r[2];
|
|
8168
|
-
const [i, l] =
|
|
8168
|
+
const [i, l] = ve(n);
|
|
8169
8169
|
let u;
|
|
8170
8170
|
r[3] !== e ? (u = (y) => {
|
|
8171
8171
|
l(y), localStorage.setItem(`use_persistent_storage_${e}`, JSON.stringify(y));
|
|
@@ -8212,11 +8212,11 @@ const Qd = (t, e) => {
|
|
|
8212
8212
|
});
|
|
8213
8213
|
const a = l.string + l.number + l.date;
|
|
8214
8214
|
return l.date / a >= 0.6 ? "date" : l.number / a >= 0.6 ? "number" : l.string / a >= 0.6 ? "string" : "mixed";
|
|
8215
|
-
},
|
|
8215
|
+
}, ki = /* @__PURE__ */ new Map(), Zd = (t, e, r = "asc") => {
|
|
8216
8216
|
if (!t || t.length === 0) return [];
|
|
8217
8217
|
const n = `${String(e)}_${t.length}`;
|
|
8218
|
-
let i =
|
|
8219
|
-
return i || (i = Qd(t, e),
|
|
8218
|
+
let i = ki.get(n);
|
|
8219
|
+
return i || (i = Qd(t, e), ki.set(n, i)), [...t].sort((u, a) => {
|
|
8220
8220
|
const m = u[e], y = a[e], _ = m == null || m === "", O = y == null || y === "";
|
|
8221
8221
|
if (_ && O) return 0;
|
|
8222
8222
|
if (_) return r === "asc" ? -1 : 1;
|
|
@@ -8271,19 +8271,19 @@ function Jd(t, e) {
|
|
|
8271
8271
|
if (r.render)
|
|
8272
8272
|
return r.render(t, 0);
|
|
8273
8273
|
const n = r.accessor ?? e.id, i = Kd(t, n);
|
|
8274
|
-
return i == null ? /* @__PURE__ */ b.jsx(
|
|
8274
|
+
return i == null ? /* @__PURE__ */ b.jsx(at, { c: "dimmed", children: "–" }) : typeof i == "boolean" ? /* @__PURE__ */ b.jsx(at, { fz: "sm", children: i ? "Ja" : "Nein" }) : /* @__PURE__ */ b.jsx(at, { fz: "sm", children: String(i) });
|
|
8275
8275
|
}
|
|
8276
8276
|
function Xd(t) {
|
|
8277
|
-
const e =
|
|
8277
|
+
const e = Ve.c(10), {
|
|
8278
8278
|
field: r,
|
|
8279
8279
|
record: n
|
|
8280
8280
|
} = t, i = r.column.title ?? r.id;
|
|
8281
8281
|
let l;
|
|
8282
|
-
e[0] !== i ? (l = /* @__PURE__ */ b.jsx(
|
|
8282
|
+
e[0] !== i ? (l = /* @__PURE__ */ b.jsx(at, { fw: 700, fz: "sm", children: i }), e[0] = i, e[1] = l) : l = e[1];
|
|
8283
8283
|
let u;
|
|
8284
8284
|
e[2] !== r || e[3] !== n ? (u = Jd(n, r), e[2] = r, e[3] = n, e[4] = u) : u = e[4];
|
|
8285
8285
|
let a;
|
|
8286
|
-
e[5] !== u ? (a = /* @__PURE__ */ b.jsx(
|
|
8286
|
+
e[5] !== u ? (a = /* @__PURE__ */ b.jsx(je, { ta: "right", children: u }), e[5] = u, e[6] = a) : a = e[6];
|
|
8287
8287
|
let m;
|
|
8288
8288
|
return e[7] !== l || e[8] !== a ? (m = /* @__PURE__ */ b.jsxs(qe, { wrap: "nowrap", justify: "space-between", py: "xs", px: "sm", children: [
|
|
8289
8289
|
l,
|
|
@@ -8291,7 +8291,7 @@ function Xd(t) {
|
|
|
8291
8291
|
] }), e[7] = l, e[8] = a, e[9] = m) : m = e[9], m;
|
|
8292
8292
|
}
|
|
8293
8293
|
function eh(t) {
|
|
8294
|
-
const e =
|
|
8294
|
+
const e = Ve.c(39), {
|
|
8295
8295
|
records: r,
|
|
8296
8296
|
fields: n,
|
|
8297
8297
|
selection: i,
|
|
@@ -8307,7 +8307,7 @@ function eh(t) {
|
|
|
8307
8307
|
const S = O;
|
|
8308
8308
|
let C;
|
|
8309
8309
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ new Set(), e[2] = C) : C = e[2];
|
|
8310
|
-
const [k, j] =
|
|
8310
|
+
const [k, j] = ve(C);
|
|
8311
8311
|
let $;
|
|
8312
8312
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? ($ = (W) => {
|
|
8313
8313
|
j((Z) => {
|
|
@@ -8340,28 +8340,28 @@ function eh(t) {
|
|
|
8340
8340
|
const h = w;
|
|
8341
8341
|
if (r.length === 0) {
|
|
8342
8342
|
let s;
|
|
8343
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ b.jsx(
|
|
8343
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ b.jsx(at, { c: "dimmed", ta: "center", py: "xl", children: "Keine Einträge gefunden" }), e[29] = s) : s = e[29], H = s;
|
|
8344
8344
|
break e;
|
|
8345
8345
|
}
|
|
8346
|
-
L =
|
|
8347
|
-
/* @__PURE__ */ b.jsx(
|
|
8346
|
+
L = dr, V = "sm", F = "md", X = y && Z.length > 0 && /* @__PURE__ */ b.jsxs(qe, { gap: "xs", wrap: "nowrap", children: [
|
|
8347
|
+
/* @__PURE__ */ b.jsx(po, { data: Z, value: y.field, onChange: (s) => s && y.onSortChange(s, y.direction), allowDeselect: !1, style: {
|
|
8348
8348
|
flex: 1
|
|
8349
8349
|
} }),
|
|
8350
|
-
/* @__PURE__ */ b.jsx(
|
|
8350
|
+
/* @__PURE__ */ b.jsx(hr, { variant: "filled", size: "input-sm", onClick: () => y.onSortChange(y.field, y.direction === "asc" ? "desc" : "asc"), children: y.direction === "asc" ? /* @__PURE__ */ b.jsx(Hs, { size: 18 }) : /* @__PURE__ */ b.jsx(Gs, { size: 18 }) })
|
|
8351
8351
|
] }), re = r.map((s, p) => {
|
|
8352
8352
|
const f = te(s), d = !!a || !!i, v = k.has(s.id);
|
|
8353
|
-
return /* @__PURE__ */ b.jsx(Ct.Fragment, { children: /* @__PURE__ */ b.jsxs(
|
|
8353
|
+
return /* @__PURE__ */ b.jsx(Ct.Fragment, { children: /* @__PURE__ */ b.jsxs(je, { bg: f ? "var(--mantine-primary-color-light)" : p % 2 === 0 ? "var(--mantine-color-gray-0)" : "white", bd: f ? void 0 : "1px solid var(--mantine-color-gray-2)", style: {
|
|
8354
8354
|
borderRadius: "var(--mantine-radius-md)",
|
|
8355
8355
|
overflow: "hidden"
|
|
8356
8356
|
}, children: [
|
|
8357
|
-
/* @__PURE__ */ b.jsxs(
|
|
8357
|
+
/* @__PURE__ */ b.jsxs(je, { w: "100%", style: {
|
|
8358
8358
|
cursor: d || _ ? "pointer" : "default"
|
|
8359
8359
|
}, onClick: (D) => {
|
|
8360
8360
|
_ && !a ? z(s.id) : h(s, p, D);
|
|
8361
8361
|
}, children: [
|
|
8362
8362
|
(i || _) && /* @__PURE__ */ b.jsxs(qe, { px: "sm", pt: "sm", justify: "space-between", children: [
|
|
8363
8363
|
i ? /* @__PURE__ */ b.jsx(Ut, { checked: f, onChange: () => x(s), onClick: rh }) : /* @__PURE__ */ b.jsx("span", {}),
|
|
8364
|
-
_ && /* @__PURE__ */ b.jsx(
|
|
8364
|
+
_ && /* @__PURE__ */ b.jsx(je, { c: "dimmed", style: {
|
|
8365
8365
|
cursor: "pointer",
|
|
8366
8366
|
display: "flex",
|
|
8367
8367
|
alignItems: "center"
|
|
@@ -8373,13 +8373,13 @@ function eh(t) {
|
|
|
8373
8373
|
} }) })
|
|
8374
8374
|
] }),
|
|
8375
8375
|
W.map((D, R) => /* @__PURE__ */ b.jsxs(Ct.Fragment, { children: [
|
|
8376
|
-
R > 0 && /* @__PURE__ */ b.jsx(
|
|
8376
|
+
R > 0 && /* @__PURE__ */ b.jsx(go, {}),
|
|
8377
8377
|
/* @__PURE__ */ b.jsx(Xd, { field: D, record: s })
|
|
8378
8378
|
] }, D.id))
|
|
8379
8379
|
] }),
|
|
8380
|
-
_ && /* @__PURE__ */ b.jsxs(
|
|
8381
|
-
/* @__PURE__ */ b.jsx(
|
|
8382
|
-
/* @__PURE__ */ b.jsx(
|
|
8380
|
+
_ && /* @__PURE__ */ b.jsxs(Ni, { in: v, children: [
|
|
8381
|
+
/* @__PURE__ */ b.jsx(go, {}),
|
|
8382
|
+
/* @__PURE__ */ b.jsx(je, { px: "sm", py: "sm", children: _.content(s) })
|
|
8383
8383
|
] })
|
|
8384
8384
|
] }) }, s.id);
|
|
8385
8385
|
});
|
|
@@ -8390,11 +8390,11 @@ function eh(t) {
|
|
|
8390
8390
|
if (H !== Symbol.for("react.early_return_sentinel"))
|
|
8391
8391
|
return H;
|
|
8392
8392
|
let Q;
|
|
8393
|
-
e[30] !== m ? (Q = m && m.totalRecords > m.recordsPerPage && /* @__PURE__ */ b.jsxs(
|
|
8394
|
-
/* @__PURE__ */ b.jsx(qe, { justify: "center", children: /* @__PURE__ */ b.jsx(
|
|
8393
|
+
e[30] !== m ? (Q = m && m.totalRecords > m.recordsPerPage && /* @__PURE__ */ b.jsxs(dr, { gap: "xs", mt: "sm", children: [
|
|
8394
|
+
/* @__PURE__ */ b.jsx(qe, { justify: "center", children: /* @__PURE__ */ b.jsx(Ii, { total: Math.ceil(m.totalRecords / m.recordsPerPage), value: m.page, onChange: m.onPageChange, size: "sm" }) }),
|
|
8395
8395
|
m.recordsPerPageOptions && m.onRecordsPerPageChange && /* @__PURE__ */ b.jsxs(qe, { justify: "center", gap: "xs", children: [
|
|
8396
|
-
/* @__PURE__ */ b.jsx(
|
|
8397
|
-
/* @__PURE__ */ b.jsx(
|
|
8396
|
+
/* @__PURE__ */ b.jsx(at, { fz: "xs", c: "dimmed", children: "Einträge pro Seite:" }),
|
|
8397
|
+
/* @__PURE__ */ b.jsx(po, { data: m.recordsPerPageOptions.map(th), value: String(m.recordsPerPage), onChange: (W) => W && m.onRecordsPerPageChange(Number(W)), allowDeselect: !1, size: "xs", w: 70 })
|
|
8398
8398
|
] })
|
|
8399
8399
|
] }), e[30] = m, e[31] = Q) : Q = e[31];
|
|
8400
8400
|
let q;
|
|
@@ -8425,9 +8425,9 @@ function oh(t) {
|
|
|
8425
8425
|
function ih(t) {
|
|
8426
8426
|
return t.list && t.column;
|
|
8427
8427
|
}
|
|
8428
|
-
const
|
|
8428
|
+
const kn = [10, 15, 50, 100, 500];
|
|
8429
8429
|
function sh(t) {
|
|
8430
|
-
const e =
|
|
8430
|
+
const e = Ve.c(116), {
|
|
8431
8431
|
title: r,
|
|
8432
8432
|
queryKey: n,
|
|
8433
8433
|
connectedQueryKeys: i,
|
|
@@ -8454,12 +8454,12 @@ function sh(t) {
|
|
|
8454
8454
|
rowExpansion: q,
|
|
8455
8455
|
onRowClick: W,
|
|
8456
8456
|
mobileCards: Z
|
|
8457
|
-
} = t, ne = Q === void 0 ? !0 : Q, te = Z === void 0 ? !1 : Z, [P, x] =
|
|
8457
|
+
} = t, ne = Q === void 0 ? !0 : Q, te = Z === void 0 ? !1 : Z, [P, x] = ve(V || (L && L.length > 0 ? L[0].value : null)), w = F !== void 0 ? F : P;
|
|
8458
8458
|
let h;
|
|
8459
|
-
e[0] !== F || e[1] !== X ? (h = (
|
|
8460
|
-
F === void 0 && x(
|
|
8459
|
+
e[0] !== F || e[1] !== X ? (h = (Ce) => {
|
|
8460
|
+
F === void 0 && x(Ce), X && X(Ce);
|
|
8461
8461
|
}, e[0] = F, e[1] = X, e[2] = h) : h = e[2];
|
|
8462
|
-
const s = h, p = L?.find((
|
|
8462
|
+
const s = h, p = L?.find((Ce) => Ce.value === w)?.queryParams || {}, f = {
|
|
8463
8463
|
...z,
|
|
8464
8464
|
...p
|
|
8465
8465
|
}, d = f ? "?" + Object.entries(f).filter(yh).map(mh).join("&") : "";
|
|
@@ -8476,50 +8476,50 @@ function sh(t) {
|
|
|
8476
8476
|
} = $t();
|
|
8477
8477
|
let oe, ae;
|
|
8478
8478
|
e[6] !== R || e[7] !== i || e[8] !== ie ? (oe = () => {
|
|
8479
|
-
!R || !Array.isArray(R) || i?.forEach((
|
|
8480
|
-
queryKey:
|
|
8479
|
+
!R || !Array.isArray(R) || i?.forEach((Ce) => ie.invalidateQueries({
|
|
8480
|
+
queryKey: Ce
|
|
8481
8481
|
}));
|
|
8482
|
-
}, ae = [R, i, ie], e[6] = R, e[7] = i, e[8] = ie, e[9] = oe, e[10] = ae) : (oe = e[9], ae = e[10]),
|
|
8483
|
-
const A = !R || !Array.isArray(R) ? [] : !O || O.length === 0 ? R : R.filter((
|
|
8484
|
-
if (
|
|
8482
|
+
}, ae = [R, i, ie], e[6] = R, e[7] = i, e[8] = ie, e[9] = oe, e[10] = ae) : (oe = e[9], ae = e[10]), $e(oe, ae);
|
|
8483
|
+
const A = !R || !Array.isArray(R) ? [] : !O || O.length === 0 ? R : R.filter((Ce) => O.every((Se) => {
|
|
8484
|
+
if (Se.value === void 0)
|
|
8485
8485
|
return !0;
|
|
8486
|
-
const
|
|
8487
|
-
if (
|
|
8488
|
-
const
|
|
8489
|
-
return Array.isArray(
|
|
8490
|
-
if (typeof
|
|
8491
|
-
return
|
|
8492
|
-
if (
|
|
8493
|
-
if ("id" in
|
|
8486
|
+
const gt = Se.id;
|
|
8487
|
+
if (Se.type === "query") {
|
|
8488
|
+
const _e = Ce[gt];
|
|
8489
|
+
return Array.isArray(Se.value) ? Array.isArray(_e) ? _e.some((be) => {
|
|
8490
|
+
if (typeof be == "string" || typeof be == "number")
|
|
8491
|
+
return Se.value.includes(String(be));
|
|
8492
|
+
if (be && typeof be == "object") {
|
|
8493
|
+
if ("id" in be && Se.value.includes(be.id))
|
|
8494
8494
|
return !0;
|
|
8495
|
-
for (const
|
|
8496
|
-
const
|
|
8497
|
-
if (typeof
|
|
8495
|
+
for (const Ue in be) {
|
|
8496
|
+
const Ae = be[Ue];
|
|
8497
|
+
if (typeof Ae == "string" && Se.value.includes(Ae) || Ae && typeof Ae == "object" && "id" in Ae && Se.value.includes(Ae.id))
|
|
8498
8498
|
return !0;
|
|
8499
8499
|
}
|
|
8500
8500
|
}
|
|
8501
8501
|
return !1;
|
|
8502
|
-
}) :
|
|
8503
|
-
} else if (
|
|
8504
|
-
const
|
|
8505
|
-
if (!
|
|
8502
|
+
}) : _e && typeof _e == "object" && "id" in _e ? Se.value.includes(_e.id) : !1 : typeof _e == "string" && _e.includes(Se.value);
|
|
8503
|
+
} else if (Se.type === "date") {
|
|
8504
|
+
const _e = Se.value;
|
|
8505
|
+
if (!_e)
|
|
8506
8506
|
return !0;
|
|
8507
|
-
const [
|
|
8508
|
-
if (!
|
|
8507
|
+
const [be, Ue] = _e;
|
|
8508
|
+
if (!be && !Ue)
|
|
8509
8509
|
return !0;
|
|
8510
|
-
const
|
|
8511
|
-
if (typeof
|
|
8512
|
-
const
|
|
8513
|
-
if (
|
|
8514
|
-
return
|
|
8515
|
-
if (
|
|
8516
|
-
return
|
|
8517
|
-
if (!
|
|
8518
|
-
return
|
|
8510
|
+
const Ae = Ce[gt];
|
|
8511
|
+
if (typeof Ae == "string") {
|
|
8512
|
+
const Lt = Ae.split(" ")[0];
|
|
8513
|
+
if (be && Ue)
|
|
8514
|
+
return Lt >= be && Lt <= Ue;
|
|
8515
|
+
if (be && !Ue)
|
|
8516
|
+
return Lt >= be;
|
|
8517
|
+
if (!be && Ue)
|
|
8518
|
+
return Lt <= Ue;
|
|
8519
8519
|
}
|
|
8520
8520
|
return !0;
|
|
8521
|
-
} else if (
|
|
8522
|
-
return
|
|
8521
|
+
} else if (Se.type === "boolean")
|
|
8522
|
+
return Ce[gt] === Se.value;
|
|
8523
8523
|
return !0;
|
|
8524
8524
|
})), N = k?.field ?? m[0].id, E = k?.direction ?? "desc";
|
|
8525
8525
|
let B;
|
|
@@ -8527,66 +8527,70 @@ function sh(t) {
|
|
|
8527
8527
|
columnAccessor: N,
|
|
8528
8528
|
direction: E
|
|
8529
8529
|
}, e[11] = N, e[12] = E, e[13] = B) : B = e[13];
|
|
8530
|
-
const [I, le] =
|
|
8530
|
+
const [I, le] = ve(B);
|
|
8531
8531
|
let o;
|
|
8532
|
-
e[14] !== j ? (o = (
|
|
8533
|
-
le(
|
|
8532
|
+
e[14] !== j ? (o = (Ce) => {
|
|
8533
|
+
le(Ce), j && j(String(Ce.columnAccessor), Ce.direction);
|
|
8534
8534
|
}, e[14] = j, e[15] = o) : o = e[15];
|
|
8535
|
-
const c = o, g = Zd(A, I.columnAccessor, I.direction), [M, T] = Gd(
|
|
8535
|
+
const c = o, g = Zd(A, I.columnAccessor, I.direction), [M, T] = Gd(kn[1], "mantine-table-page-size"), [Y, se] = ve(1), ue = _ ? g.slice((Y - 1) * M, Y * M) : g;
|
|
8536
8536
|
let he;
|
|
8537
8537
|
e[16] === Symbol.for("react.memo_cache_sentinel") ? (he = [], e[16] = he) : he = e[16];
|
|
8538
|
-
const [G, de] =
|
|
8538
|
+
const [G, de] = ve(he);
|
|
8539
8539
|
let pe;
|
|
8540
8540
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (pe = () => {
|
|
8541
8541
|
de([]);
|
|
8542
8542
|
}, e[17] = pe) : pe = e[17];
|
|
8543
8543
|
let fe;
|
|
8544
|
-
e[18] !== w ? (fe = [w], e[18] = w, e[19] = fe) : fe = e[19],
|
|
8545
|
-
const [xe,
|
|
8546
|
-
let
|
|
8547
|
-
e[20] !== r ? (
|
|
8548
|
-
let
|
|
8549
|
-
e[22]
|
|
8544
|
+
e[18] !== w ? (fe = [w], e[18] = w, e[19] = fe) : fe = e[19], $e(pe, fe);
|
|
8545
|
+
const [xe, we] = ve(!1), [ke, He] = ve(!1), [Ne, Pe] = ve(!1), Ot = r ? "space-between" : "end";
|
|
8546
|
+
let Ee;
|
|
8547
|
+
e[20] !== r ? (Ee = r && (typeof r == "string" ? /* @__PURE__ */ b.jsx(Vs, { order: 4, children: r }) : r), e[20] = r, e[21] = Ee) : Ee = e[21];
|
|
8548
|
+
let lt;
|
|
8549
|
+
e[22] === Symbol.for("react.memo_cache_sentinel") ? (lt = {
|
|
8550
|
+
marginLeft: "auto"
|
|
8551
|
+
}, e[22] = lt) : lt = e[22];
|
|
8550
8552
|
let Ye;
|
|
8551
|
-
e[
|
|
8552
|
-
|
|
8553
|
+
e[23] !== J || e[24] !== ne ? (Ye = ne && /* @__PURE__ */ b.jsx(hr, { variant: "subtle", onClick: () => J(), "aria-label": "Neuladen", children: /* @__PURE__ */ b.jsx(Xs, {}) }), e[23] = J, e[24] = ne, e[25] = Ye) : Ye = e[25];
|
|
8554
|
+
let rt;
|
|
8555
|
+
e[26] !== S || e[27] !== H || e[28] !== re || e[29] !== m || e[30] !== G || e[31] !== y ? (rt = (m.some(gh) || y) && (() => {
|
|
8556
|
+
const Ce = m.find(ph) && (!re || G.length > 0 && re(G[0])), Se = m.find(fh) && (!H || G.length > 0 && H(G[0])), gt = (S ?? []).length > 0, _e = Ce || Se || gt;
|
|
8553
8557
|
return /* @__PURE__ */ b.jsxs(Rt, { shadow: "md", children: [
|
|
8554
|
-
/* @__PURE__ */ b.jsx(Rt.Target, { children: /* @__PURE__ */ b.jsx(
|
|
8558
|
+
/* @__PURE__ */ b.jsx(Rt.Target, { children: /* @__PURE__ */ b.jsx(mt, { variant: "outline", rightSection: /* @__PURE__ */ b.jsx(Zs, { size: 14 }), disabled: !G.length || !_e, children: "Aktionen" }) }),
|
|
8555
8559
|
/* @__PURE__ */ b.jsxs(Rt.Dropdown, { children: [
|
|
8556
|
-
|
|
8557
|
-
(S ?? []).map((
|
|
8558
|
-
leftSection:
|
|
8559
|
-
}, key: `custom_action_${
|
|
8560
|
-
|
|
8560
|
+
Ce && /* @__PURE__ */ b.jsx(Rt.Item, { leftSection: /* @__PURE__ */ b.jsx(Ks, { size: 14 }), onClick: () => He(!0), disabled: G.length !== 1, children: "Bearbeiten" }),
|
|
8561
|
+
(S ?? []).map((be, Ue) => /* @__PURE__ */ jr(Rt.Item, { ...be.icon && {
|
|
8562
|
+
leftSection: be.icon
|
|
8563
|
+
}, key: `custom_action_${Ue}`, onClick: () => be.onClick(G) }, be.label)),
|
|
8564
|
+
Se && /* @__PURE__ */ b.jsx(Rt.Item, { leftSection: /* @__PURE__ */ b.jsx(Js, { size: 14 }), onClick: () => Pe(!0), color: "red", children: "Löschen" })
|
|
8561
8565
|
] })
|
|
8562
8566
|
] });
|
|
8563
|
-
})(), e[
|
|
8564
|
-
let nt;
|
|
8565
|
-
e[32] !== $ || e[33] !== m || e[34] !== U ? (nt = m.find(hh) && /* @__PURE__ */ b.jsx(yt, { onClick: () => _e(!0), disabled: U, children: $ ?? "Erstellen" }), e[32] = $, e[33] = m, e[34] = U, e[35] = nt) : nt = e[35];
|
|
8567
|
+
})(), e[26] = S, e[27] = H, e[28] = re, e[29] = m, e[30] = G, e[31] = y, e[32] = rt) : rt = e[32];
|
|
8566
8568
|
let ct;
|
|
8567
|
-
e[
|
|
8568
|
-
|
|
8569
|
+
e[33] !== $ || e[34] !== m || e[35] !== U ? (ct = m.find(hh) && /* @__PURE__ */ b.jsx(mt, { onClick: () => we(!0), disabled: U, children: $ ?? "Erstellen" }), e[33] = $, e[34] = m, e[35] = U, e[36] = ct) : ct = e[36];
|
|
8570
|
+
let Te;
|
|
8571
|
+
e[37] !== a || e[38] !== Ye || e[39] !== rt || e[40] !== ct ? (Te = /* @__PURE__ */ b.jsxs(qe, { align: "center", gap: "xs", wrap: "wrap", justify: "end", style: lt, children: [
|
|
8569
8572
|
Ye,
|
|
8570
|
-
|
|
8573
|
+
rt,
|
|
8574
|
+
ct,
|
|
8571
8575
|
a
|
|
8572
|
-
] }), e[
|
|
8573
|
-
let Re;
|
|
8574
|
-
e[41] !== Ot || e[42] !== Ae || e[43] !== ct ? (Re = /* @__PURE__ */ b.jsxs(qe, { gap: "xs", justify: Ot, align: "center", children: [
|
|
8575
|
-
Ae,
|
|
8576
|
-
ct
|
|
8577
|
-
] }), e[41] = Ot, e[42] = Ae, e[43] = ct, e[44] = Re) : Re = e[44];
|
|
8576
|
+
] }), e[37] = a, e[38] = Ye, e[39] = rt, e[40] = ct, e[41] = Te) : Te = e[41];
|
|
8578
8577
|
let ut;
|
|
8579
|
-
e[
|
|
8578
|
+
e[42] !== Ot || e[43] !== Ee || e[44] !== Te ? (ut = /* @__PURE__ */ b.jsxs(qe, { gap: "xs", justify: Ot, align: "center", wrap: "wrap", children: [
|
|
8579
|
+
Ee,
|
|
8580
|
+
Te
|
|
8581
|
+
] }), e[42] = Ot, e[43] = Ee, e[44] = Te, e[45] = ut) : ut = e[45];
|
|
8580
8582
|
let dt;
|
|
8581
|
-
e[
|
|
8582
|
-
let
|
|
8583
|
-
e[
|
|
8583
|
+
e[46] !== w || e[47] !== s || e[48] !== L ? (dt = L && L.length > 0 && /* @__PURE__ */ b.jsx(Pn, { value: w, onChange: s, mt: "md", children: /* @__PURE__ */ b.jsx(Pn.List, { children: L.map(dh) }) }), e[46] = w, e[47] = s, e[48] = L, e[49] = dt) : dt = e[49];
|
|
8584
|
+
let Ge;
|
|
8585
|
+
e[50] !== K ? (Ge = K && /* @__PURE__ */ b.jsx(Br, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ b.jsx(ea, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[50] = K, e[51] = Ge) : Ge = e[51];
|
|
8586
|
+
let Qe;
|
|
8587
|
+
e[52] !== U || e[53] !== ee ? (Qe = (U || ee) && /* @__PURE__ */ b.jsxs(dr, { my: "md", children: [
|
|
8584
8588
|
/* @__PURE__ */ b.jsx(zt, { height: 40 }),
|
|
8585
8589
|
Array(5).fill(0).map(uh)
|
|
8586
|
-
] }), e[
|
|
8587
|
-
let
|
|
8588
|
-
e[
|
|
8589
|
-
/* @__PURE__ */ b.jsx(
|
|
8590
|
+
] }), e[52] = U, e[53] = ee, e[54] = Qe) : Qe = e[54];
|
|
8591
|
+
let Ze;
|
|
8592
|
+
e[55] !== m || e[56] !== c || e[57] !== K || e[58] !== U || e[59] !== ee || e[60] !== te || e[61] !== W || e[62] !== Y || e[63] !== M || e[64] !== _ || e[65] !== ue || e[66] !== q || e[67] !== G || e[68] !== y || e[69] !== se || e[70] !== T || e[71] !== I || e[72] !== g ? (Ze = !U && !ee && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8593
|
+
/* @__PURE__ */ b.jsx(je, { ...te ? {
|
|
8590
8594
|
visibleFrom: "sm"
|
|
8591
8595
|
} : {}, children: /* @__PURE__ */ b.jsx(Bd, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: K, records: ue, sortStatus: I, onSortStatusChange: c, ...y && {
|
|
8592
8596
|
selectedRecords: G,
|
|
@@ -8596,17 +8600,17 @@ function sh(t) {
|
|
|
8596
8600
|
recordsPerPage: M,
|
|
8597
8601
|
onPageChange: se,
|
|
8598
8602
|
page: Y,
|
|
8599
|
-
recordsPerPageOptions:
|
|
8603
|
+
recordsPerPageOptions: kn,
|
|
8600
8604
|
onRecordsPerPageChange: T,
|
|
8601
8605
|
recordsPerPageLabel: "Einträge pro Seite"
|
|
8602
8606
|
}, ...q && {
|
|
8603
8607
|
rowExpansion: {
|
|
8604
8608
|
allowMultiple: q.allowMultiple ?? !1,
|
|
8605
|
-
content: (
|
|
8609
|
+
content: (Ce) => {
|
|
8606
8610
|
const {
|
|
8607
|
-
record:
|
|
8608
|
-
} =
|
|
8609
|
-
return q.content(
|
|
8611
|
+
record: Se
|
|
8612
|
+
} = Ce;
|
|
8613
|
+
return q.content(Se);
|
|
8610
8614
|
},
|
|
8611
8615
|
...q.expanded && {
|
|
8612
8616
|
expanded: q.expanded
|
|
@@ -8617,13 +8621,13 @@ function sh(t) {
|
|
|
8617
8621
|
cursor: "pointer"
|
|
8618
8622
|
}
|
|
8619
8623
|
} }) }),
|
|
8620
|
-
te && /* @__PURE__ */ b.jsx(
|
|
8624
|
+
te && /* @__PURE__ */ b.jsx(je, { hiddenFrom: "sm", children: /* @__PURE__ */ b.jsx(eh, { records: ue, fields: m, selection: y, selectedRecords: G, onSelectedRecordsChange: de, onRowClick: W, sort: {
|
|
8621
8625
|
field: String(I.columnAccessor),
|
|
8622
8626
|
direction: I.direction,
|
|
8623
|
-
onSortChange: (
|
|
8627
|
+
onSortChange: (Ce, Se) => {
|
|
8624
8628
|
c({
|
|
8625
|
-
columnAccessor:
|
|
8626
|
-
direction:
|
|
8629
|
+
columnAccessor: Ce,
|
|
8630
|
+
direction: Se
|
|
8627
8631
|
});
|
|
8628
8632
|
}
|
|
8629
8633
|
}, ..._ && ue.length && {
|
|
@@ -8632,9 +8636,9 @@ function sh(t) {
|
|
|
8632
8636
|
recordsPerPage: M,
|
|
8633
8637
|
page: Y,
|
|
8634
8638
|
onPageChange: se,
|
|
8635
|
-
recordsPerPageOptions:
|
|
8636
|
-
onRecordsPerPageChange: (
|
|
8637
|
-
T(
|
|
8639
|
+
recordsPerPageOptions: kn,
|
|
8640
|
+
onRecordsPerPageChange: (Ce) => {
|
|
8641
|
+
T(Ce), se(1);
|
|
8638
8642
|
}
|
|
8639
8643
|
}
|
|
8640
8644
|
}, ...q && {
|
|
@@ -8642,50 +8646,50 @@ function sh(t) {
|
|
|
8642
8646
|
content: q.content
|
|
8643
8647
|
}
|
|
8644
8648
|
} }) })
|
|
8645
|
-
] }), e[
|
|
8649
|
+
] }), e[55] = m, e[56] = c, e[57] = K, e[58] = U, e[59] = ee, e[60] = te, e[61] = W, e[62] = Y, e[63] = M, e[64] = _, e[65] = ue, e[66] = q, e[67] = G, e[68] = y, e[69] = se, e[70] = T, e[71] = I, e[72] = g, e[73] = Ze) : Ze = e[73];
|
|
8646
8650
|
let ht;
|
|
8647
|
-
e[
|
|
8648
|
-
|
|
8649
|
-
}, e[
|
|
8650
|
-
const
|
|
8651
|
-
let ot;
|
|
8652
|
-
e[74] !== l || e[75] !== m || e[76] !== u || e[77] !== n || e[78] !== G[0] || e[79] !== G.length || e[80] !== C ? (ot = G.length > 0 && /* @__PURE__ */ b.jsx(Yd, { fields: m.filter(lh), queryKey: n, apiPath: u ?? l, id: G[0].id, onClose: () => {
|
|
8653
|
-
Ge(!1), de([]);
|
|
8654
|
-
}, steps: C }), e[74] = l, e[75] = m, e[76] = u, e[77] = n, e[78] = G[0], e[79] = G.length, e[80] = C, e[81] = ot) : ot = e[81];
|
|
8651
|
+
e[74] === Symbol.for("react.memo_cache_sentinel") ? (ht = () => {
|
|
8652
|
+
He(!1), de([]);
|
|
8653
|
+
}, e[74] = ht) : ht = e[74];
|
|
8654
|
+
const yt = r ?? "Bearbeiten";
|
|
8655
8655
|
let ft;
|
|
8656
|
-
e[
|
|
8656
|
+
e[75] !== l || e[76] !== m || e[77] !== u || e[78] !== n || e[79] !== G[0] || e[80] !== G.length || e[81] !== C ? (ft = G.length > 0 && /* @__PURE__ */ b.jsx(Yd, { fields: m.filter(lh), queryKey: n, apiPath: u ?? l, id: G[0].id, onClose: () => {
|
|
8657
|
+
He(!1), de([]);
|
|
8658
|
+
}, steps: C }), e[75] = l, e[76] = m, e[77] = u, e[78] = n, e[79] = G[0], e[80] = G.length, e[81] = C, e[82] = ft) : ft = e[82];
|
|
8657
8659
|
let me;
|
|
8658
|
-
e[
|
|
8659
|
-
|
|
8660
|
+
e[83] !== yt || e[84] !== ft || e[85] !== ke ? (me = /* @__PURE__ */ b.jsx(fn, { opened: ke, onClose: ht, title: yt, children: ft }), e[83] = yt, e[84] = ft, e[85] = ke, e[86] = me) : me = e[86];
|
|
8661
|
+
let Oe;
|
|
8662
|
+
e[87] !== l || e[88] !== Ne || e[89] !== u || e[90] !== n || e[91] !== G || e[92] !== r ? (Oe = G.length > 0 && /* @__PURE__ */ b.jsx(fn, { opened: Ne, onClose: () => {
|
|
8663
|
+
Pe(!1), de([]);
|
|
8660
8664
|
}, title: r ?? "Löschen", children: /* @__PURE__ */ b.jsx(Hd, { onClose: () => {
|
|
8661
|
-
|
|
8662
|
-
}, queryKey: n, apiPath: u ?? l, selectedRecords: G }) }), e[
|
|
8663
|
-
let
|
|
8664
|
-
e[
|
|
8665
|
-
|
|
8666
|
-
}, e[
|
|
8667
|
-
const
|
|
8665
|
+
Pe(!1), de([]);
|
|
8666
|
+
}, queryKey: n, apiPath: u ?? l, selectedRecords: G }) }), e[87] = l, e[88] = Ne, e[89] = u, e[90] = n, e[91] = G, e[92] = r, e[93] = Oe) : Oe = e[93];
|
|
8667
|
+
let nt;
|
|
8668
|
+
e[94] === Symbol.for("react.memo_cache_sentinel") ? (nt = () => {
|
|
8669
|
+
we(!1);
|
|
8670
|
+
}, e[94] = nt) : nt = e[94];
|
|
8671
|
+
const vt = r ?? "Anlegen", Qt = u ?? l;
|
|
8668
8672
|
let Nt;
|
|
8669
|
-
e[
|
|
8670
|
-
|
|
8671
|
-
}, e[
|
|
8673
|
+
e[95] === Symbol.for("react.memo_cache_sentinel") ? (Nt = () => {
|
|
8674
|
+
we(!1);
|
|
8675
|
+
}, e[95] = Nt) : Nt = e[95];
|
|
8672
8676
|
let bt;
|
|
8673
|
-
e[
|
|
8677
|
+
e[96] !== m ? (bt = m.filter(ah), e[96] = m, e[97] = bt) : bt = e[97];
|
|
8678
|
+
let Ke;
|
|
8679
|
+
e[98] !== n || e[99] !== C || e[100] !== Qt || e[101] !== bt ? (Ke = /* @__PURE__ */ b.jsx(Fu, { queryKey: n, apiPath: Qt, onClose: Nt, fields: bt, steps: C }), e[98] = n, e[99] = C, e[100] = Qt, e[101] = bt, e[102] = Ke) : Ke = e[102];
|
|
8674
8680
|
let wt;
|
|
8675
|
-
e[
|
|
8676
|
-
let
|
|
8677
|
-
e[
|
|
8678
|
-
let Lt;
|
|
8679
|
-
return e[106] !== Re || e[107] !== ut || e[108] !== dt || e[109] !== Ze || e[110] !== Ke || e[111] !== ft || e[112] !== me || e[113] !== Je ? (Lt = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8680
|
-
Re,
|
|
8681
|
+
e[103] !== xe || e[104] !== vt || e[105] !== Ke ? (wt = /* @__PURE__ */ b.jsx(fn, { opened: xe, onClose: nt, title: vt, children: Ke }), e[103] = xe, e[104] = vt, e[105] = Ke, e[106] = wt) : wt = e[106];
|
|
8682
|
+
let pt;
|
|
8683
|
+
return e[107] !== ut || e[108] !== dt || e[109] !== Ge || e[110] !== Qe || e[111] !== Ze || e[112] !== me || e[113] !== Oe || e[114] !== wt ? (pt = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8681
8684
|
ut,
|
|
8682
8685
|
dt,
|
|
8686
|
+
Ge,
|
|
8687
|
+
Qe,
|
|
8683
8688
|
Ze,
|
|
8684
|
-
Ke,
|
|
8685
|
-
ft,
|
|
8686
8689
|
me,
|
|
8687
|
-
|
|
8688
|
-
|
|
8690
|
+
Oe,
|
|
8691
|
+
wt
|
|
8692
|
+
] }), e[107] = ut, e[108] = dt, e[109] = Ge, e[110] = Qe, e[111] = Ze, e[112] = me, e[113] = Oe, e[114] = wt, e[115] = pt) : pt = e[115], pt;
|
|
8689
8693
|
}
|
|
8690
8694
|
function ah(t) {
|
|
8691
8695
|
return t.create;
|
|
@@ -8700,7 +8704,7 @@ function uh(t, e) {
|
|
|
8700
8704
|
return /* @__PURE__ */ b.jsx(zt, { height: 35 }, `skeleton-${e}`);
|
|
8701
8705
|
}
|
|
8702
8706
|
function dh(t) {
|
|
8703
|
-
return /* @__PURE__ */ b.jsx(
|
|
8707
|
+
return /* @__PURE__ */ b.jsx(Pn.Tab, { value: t.value, leftSection: t.icon, children: t.label }, t.value);
|
|
8704
8708
|
}
|
|
8705
8709
|
function hh(t) {
|
|
8706
8710
|
return t.create;
|
|
@@ -8723,13 +8727,13 @@ function yh(t) {
|
|
|
8723
8727
|
return e != null;
|
|
8724
8728
|
}
|
|
8725
8729
|
function Dh(t) {
|
|
8726
|
-
const e =
|
|
8730
|
+
const e = Ve.c(5), {
|
|
8727
8731
|
queryClient: r
|
|
8728
8732
|
} = $t();
|
|
8729
8733
|
let n;
|
|
8730
8734
|
e[0] !== t ? (n = /* @__PURE__ */ b.jsx(sh, { ...t }), e[0] = t, e[1] = n) : n = e[1];
|
|
8731
8735
|
let i;
|
|
8732
|
-
return e[2] !== r || e[3] !== n ? (i = /* @__PURE__ */ b.jsx(
|
|
8736
|
+
return e[2] !== r || e[3] !== n ? (i = /* @__PURE__ */ b.jsx(Vi, { client: r, children: n }), e[2] = r, e[3] = n, e[4] = i) : i = e[4], i;
|
|
8733
8737
|
}
|
|
8734
8738
|
export {
|
|
8735
8739
|
Fu as CreateModal,
|
|
@@ -8752,6 +8756,6 @@ export {
|
|
|
8752
8756
|
Fc as useGetAll,
|
|
8753
8757
|
Yc as useGetOne,
|
|
8754
8758
|
Gd as usePersistentState,
|
|
8755
|
-
|
|
8759
|
+
Xi as useUpdateOne
|
|
8756
8760
|
};
|
|
8757
8761
|
//# sourceMappingURL=index.es.js.map
|