@espresso-lab/mantine-data-table 1.0.22 → 1.0.24
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 +458 -460
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/index.umd.js.map +1 -1
- package/package.json +11 -11
package/dist/index.es.js
CHANGED
|
@@ -107,8 +107,8 @@ function Ju(i, t) {
|
|
|
107
107
|
const s = r ? i : Object.keys(i), l = s.length, g = r ? t : Object.keys(t), f = g.length, c = r ? [] : {};
|
|
108
108
|
let b = 0;
|
|
109
109
|
for (let C = 0; C < f; C++) {
|
|
110
|
-
const
|
|
111
|
-
(!r && s.includes(
|
|
110
|
+
const O = r ? C : g[C];
|
|
111
|
+
(!r && s.includes(O) || r) && i[O] === void 0 && t[O] === void 0 ? (c[O] = void 0, b++) : (c[O] = Ju(i[O], t[O]), c[O] === i[O] && i[O] !== void 0 && b++);
|
|
112
112
|
}
|
|
113
113
|
return l === f && b === l ? i : c;
|
|
114
114
|
}
|
|
@@ -451,13 +451,13 @@ var Zt, Qe, ko, jt, ei, Li, Tr, Pn, Io, ki, Ii, ti, ni, Er, $i, rt, Oo, el, tl,
|
|
|
451
451
|
}
|
|
452
452
|
createResult(t, r) {
|
|
453
453
|
var te;
|
|
454
|
-
const s = ve(this, Qe), l = this.options, g = ve(this, jt), f = ve(this, ei), c = ve(this, Li), C = t !== s ? t.state : ve(this, ko), { state:
|
|
455
|
-
let L = { ...
|
|
454
|
+
const s = ve(this, Qe), l = this.options, g = ve(this, jt), f = ve(this, ei), c = ve(this, Li), C = t !== s ? t.state : ve(this, ko), { state: O } = t;
|
|
455
|
+
let L = { ...O }, k = !1, E;
|
|
456
456
|
if (r._optimisticResults) {
|
|
457
457
|
const oe = this.hasListeners(), de = !oe && th(t, r), ne = oe && nh(t, s, r, l);
|
|
458
458
|
(de || ne) && (L = {
|
|
459
459
|
...L,
|
|
460
|
-
...w2(
|
|
460
|
+
...w2(O.data, t.options)
|
|
461
461
|
}), r._optimisticResults === "isRestoring" && (L.fetchStatus = "idle");
|
|
462
462
|
}
|
|
463
463
|
let { error: M, errorUpdatedAt: T, status: N } = L;
|
|
@@ -689,17 +689,17 @@ var Mr, Lr, Kt, ir, or, zs, ul, nd, C2 = (nd = class extends ea {
|
|
|
689
689
|
ta.batch(() => {
|
|
690
690
|
var r, s, l, g, f, c, b, C;
|
|
691
691
|
if (ve(this, ir) && this.hasListeners()) {
|
|
692
|
-
const
|
|
693
|
-
(t == null ? void 0 : t.type) === "success" ? ((s = (r = ve(this, ir)).onSuccess) == null || s.call(r, t.data,
|
|
692
|
+
const O = ve(this, Lr).variables, L = ve(this, Lr).context;
|
|
693
|
+
(t == null ? void 0 : t.type) === "success" ? ((s = (r = ve(this, ir)).onSuccess) == null || s.call(r, t.data, O, L), (g = (l = ve(this, ir)).onSettled) == null || g.call(l, t.data, null, O, L)) : (t == null ? void 0 : t.type) === "error" && ((c = (f = ve(this, ir)).onError) == null || c.call(f, t.error, O, L), (C = (b = ve(this, ir)).onSettled) == null || C.call(
|
|
694
694
|
b,
|
|
695
695
|
void 0,
|
|
696
696
|
t.error,
|
|
697
|
-
|
|
697
|
+
O,
|
|
698
698
|
L
|
|
699
699
|
));
|
|
700
700
|
}
|
|
701
|
-
this.listeners.forEach((
|
|
702
|
-
|
|
701
|
+
this.listeners.forEach((O) => {
|
|
702
|
+
O(ve(this, Lr));
|
|
703
703
|
});
|
|
704
704
|
});
|
|
705
705
|
}, nd), $s = { exports: {} }, go = {};
|
|
@@ -802,8 +802,8 @@ function O2() {
|
|
|
802
802
|
}
|
|
803
803
|
if (m) {
|
|
804
804
|
m = console;
|
|
805
|
-
var
|
|
806
|
-
return
|
|
805
|
+
var D = m.error, q = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
806
|
+
return D.call(
|
|
807
807
|
m,
|
|
808
808
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
809
809
|
q
|
|
@@ -836,14 +836,14 @@ function O2() {
|
|
|
836
836
|
return d.key !== void 0;
|
|
837
837
|
}
|
|
838
838
|
function c(d, m) {
|
|
839
|
-
function
|
|
839
|
+
function D() {
|
|
840
840
|
I || (I = !0, console.error(
|
|
841
841
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
842
842
|
m
|
|
843
843
|
));
|
|
844
844
|
}
|
|
845
|
-
|
|
846
|
-
get:
|
|
845
|
+
D.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
846
|
+
get: D,
|
|
847
847
|
configurable: !0
|
|
848
848
|
});
|
|
849
849
|
}
|
|
@@ -853,14 +853,14 @@ function O2() {
|
|
|
853
853
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
854
854
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
855
855
|
}
|
|
856
|
-
function C(d, m,
|
|
857
|
-
return
|
|
856
|
+
function C(d, m, D, q, V, ue, he, me) {
|
|
857
|
+
return D = ue.ref, d = {
|
|
858
858
|
$$typeof: E,
|
|
859
859
|
type: d,
|
|
860
860
|
key: m,
|
|
861
861
|
props: ue,
|
|
862
862
|
_owner: V
|
|
863
|
-
}, (
|
|
863
|
+
}, (D !== void 0 ? D : null) !== null ? Object.defineProperty(d, "ref", {
|
|
864
864
|
enumerable: !1,
|
|
865
865
|
get: b
|
|
866
866
|
}) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
@@ -885,7 +885,7 @@ function O2() {
|
|
|
885
885
|
value: me
|
|
886
886
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function O(d, m, D, q, V, ue, he, me) {
|
|
889
889
|
var re = m.children;
|
|
890
890
|
if (re !== void 0)
|
|
891
891
|
if (q)
|
|
@@ -916,13 +916,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
916
916
|
re
|
|
917
917
|
), _[re + q] = !0);
|
|
918
918
|
}
|
|
919
|
-
if (re = null,
|
|
920
|
-
|
|
919
|
+
if (re = null, D !== void 0 && (r(D), re = "" + D), f(m) && (r(m.key), re = "" + m.key), "key" in m) {
|
|
920
|
+
D = {};
|
|
921
921
|
for (var xe in m)
|
|
922
|
-
xe !== "key" && (
|
|
923
|
-
} else
|
|
922
|
+
xe !== "key" && (D[xe] = m[xe]);
|
|
923
|
+
} else D = m;
|
|
924
924
|
return re && c(
|
|
925
|
-
|
|
925
|
+
D,
|
|
926
926
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
927
927
|
), C(
|
|
928
928
|
d,
|
|
@@ -930,7 +930,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
930
930
|
ue,
|
|
931
931
|
V,
|
|
932
932
|
l(),
|
|
933
|
-
|
|
933
|
+
D,
|
|
934
934
|
he,
|
|
935
935
|
me
|
|
936
936
|
);
|
|
@@ -950,24 +950,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
950
950
|
k,
|
|
951
951
|
g
|
|
952
952
|
)(), p = B(s(g)), _ = {};
|
|
953
|
-
vo.Fragment = T, vo.jsx = function(d, m,
|
|
953
|
+
vo.Fragment = T, vo.jsx = function(d, m, D, q, V) {
|
|
954
954
|
var ue = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
955
|
-
return
|
|
955
|
+
return O(
|
|
956
956
|
d,
|
|
957
957
|
m,
|
|
958
|
-
|
|
958
|
+
D,
|
|
959
959
|
!1,
|
|
960
960
|
q,
|
|
961
961
|
V,
|
|
962
962
|
ue ? Error("react-stack-top-frame") : v,
|
|
963
963
|
ue ? B(s(d)) : p
|
|
964
964
|
);
|
|
965
|
-
}, vo.jsxs = function(d, m,
|
|
965
|
+
}, vo.jsxs = function(d, m, D, q, V) {
|
|
966
966
|
var ue = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
967
|
-
return
|
|
967
|
+
return O(
|
|
968
968
|
d,
|
|
969
969
|
m,
|
|
970
|
-
|
|
970
|
+
D,
|
|
971
971
|
!0,
|
|
972
972
|
q,
|
|
973
973
|
V,
|
|
@@ -1049,14 +1049,14 @@ function j2(i, t, r) {
|
|
|
1049
1049
|
s,
|
|
1050
1050
|
f
|
|
1051
1051
|
)
|
|
1052
|
-
), C = b.getOptimisticResult(f),
|
|
1052
|
+
), C = b.getOptimisticResult(f), O = !l && i.subscribed !== !1;
|
|
1053
1053
|
if (Mt.useSyncExternalStore(
|
|
1054
1054
|
Mt.useCallback(
|
|
1055
1055
|
(N) => {
|
|
1056
|
-
const K =
|
|
1056
|
+
const K = O ? b.subscribe(ta.batchCalls(N)) : ll;
|
|
1057
1057
|
return b.updateResult(), K;
|
|
1058
1058
|
},
|
|
1059
|
-
[b,
|
|
1059
|
+
[b, O]
|
|
1060
1060
|
),
|
|
1061
1061
|
() => b.getCurrentResult(),
|
|
1062
1062
|
() => b.getCurrentResult()
|
|
@@ -1240,8 +1240,8 @@ function U2() {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
if (m) {
|
|
1242
1242
|
m = console;
|
|
1243
|
-
var
|
|
1244
|
-
return
|
|
1243
|
+
var D = m.error, q = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
1244
|
+
return D.call(
|
|
1245
1245
|
m,
|
|
1246
1246
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1247
1247
|
q
|
|
@@ -1274,14 +1274,14 @@ function U2() {
|
|
|
1274
1274
|
return d.key !== void 0;
|
|
1275
1275
|
}
|
|
1276
1276
|
function c(d, m) {
|
|
1277
|
-
function
|
|
1277
|
+
function D() {
|
|
1278
1278
|
I || (I = !0, console.error(
|
|
1279
1279
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1280
1280
|
m
|
|
1281
1281
|
));
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1284
|
-
get:
|
|
1283
|
+
D.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
1284
|
+
get: D,
|
|
1285
1285
|
configurable: !0
|
|
1286
1286
|
});
|
|
1287
1287
|
}
|
|
@@ -1291,14 +1291,14 @@ function U2() {
|
|
|
1291
1291
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1292
1292
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
1293
1293
|
}
|
|
1294
|
-
function C(d, m,
|
|
1295
|
-
return
|
|
1294
|
+
function C(d, m, D, q, V, ue, he, me) {
|
|
1295
|
+
return D = ue.ref, d = {
|
|
1296
1296
|
$$typeof: E,
|
|
1297
1297
|
type: d,
|
|
1298
1298
|
key: m,
|
|
1299
1299
|
props: ue,
|
|
1300
1300
|
_owner: V
|
|
1301
|
-
}, (
|
|
1301
|
+
}, (D !== void 0 ? D : null) !== null ? Object.defineProperty(d, "ref", {
|
|
1302
1302
|
enumerable: !1,
|
|
1303
1303
|
get: b
|
|
1304
1304
|
}) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
@@ -1323,7 +1323,7 @@ function U2() {
|
|
|
1323
1323
|
value: me
|
|
1324
1324
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function O(d, m, D, q, V, ue, he, me) {
|
|
1327
1327
|
var re = m.children;
|
|
1328
1328
|
if (re !== void 0)
|
|
1329
1329
|
if (q)
|
|
@@ -1354,13 +1354,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1354
1354
|
re
|
|
1355
1355
|
), _[re + q] = !0);
|
|
1356
1356
|
}
|
|
1357
|
-
if (re = null,
|
|
1358
|
-
|
|
1357
|
+
if (re = null, D !== void 0 && (r(D), re = "" + D), f(m) && (r(m.key), re = "" + m.key), "key" in m) {
|
|
1358
|
+
D = {};
|
|
1359
1359
|
for (var xe in m)
|
|
1360
|
-
xe !== "key" && (
|
|
1361
|
-
} else
|
|
1360
|
+
xe !== "key" && (D[xe] = m[xe]);
|
|
1361
|
+
} else D = m;
|
|
1362
1362
|
return re && c(
|
|
1363
|
-
|
|
1363
|
+
D,
|
|
1364
1364
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
1365
1365
|
), C(
|
|
1366
1366
|
d,
|
|
@@ -1368,7 +1368,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1368
1368
|
ue,
|
|
1369
1369
|
V,
|
|
1370
1370
|
l(),
|
|
1371
|
-
|
|
1371
|
+
D,
|
|
1372
1372
|
he,
|
|
1373
1373
|
me
|
|
1374
1374
|
);
|
|
@@ -1388,24 +1388,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1388
1388
|
k,
|
|
1389
1389
|
g
|
|
1390
1390
|
)(), p = B(s(g)), _ = {};
|
|
1391
|
-
Ps.Fragment = T, Ps.jsx = function(d, m,
|
|
1391
|
+
Ps.Fragment = T, Ps.jsx = function(d, m, D, q, V) {
|
|
1392
1392
|
var ue = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
1393
|
-
return
|
|
1393
|
+
return O(
|
|
1394
1394
|
d,
|
|
1395
1395
|
m,
|
|
1396
|
-
|
|
1396
|
+
D,
|
|
1397
1397
|
!1,
|
|
1398
1398
|
q,
|
|
1399
1399
|
V,
|
|
1400
1400
|
ue ? Error("react-stack-top-frame") : v,
|
|
1401
1401
|
ue ? B(s(d)) : p
|
|
1402
1402
|
);
|
|
1403
|
-
}, Ps.jsxs = function(d, m,
|
|
1403
|
+
}, Ps.jsxs = function(d, m, D, q, V) {
|
|
1404
1404
|
var ue = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
1405
|
-
return
|
|
1405
|
+
return O(
|
|
1406
1406
|
d,
|
|
1407
1407
|
m,
|
|
1408
|
-
|
|
1408
|
+
D,
|
|
1409
1409
|
!0,
|
|
1410
1410
|
q,
|
|
1411
1411
|
V,
|
|
@@ -1503,12 +1503,12 @@ function q2() {
|
|
|
1503
1503
|
M = t[E.charCodeAt(Y)] << 18 | t[E.charCodeAt(Y + 1)] << 12 | t[E.charCodeAt(Y + 2)] << 6 | t[E.charCodeAt(Y + 3)], X[Q++] = M >> 16 & 255, X[Q++] = M >> 8 & 255, X[Q++] = M & 255;
|
|
1504
1504
|
return K === 2 && (M = t[E.charCodeAt(Y)] << 2 | t[E.charCodeAt(Y + 1)] >> 4, X[Q++] = M & 255), K === 1 && (M = t[E.charCodeAt(Y)] << 10 | t[E.charCodeAt(Y + 1)] << 4 | t[E.charCodeAt(Y + 2)] >> 2, X[Q++] = M >> 8 & 255, X[Q++] = M & 255), X;
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function O(E) {
|
|
1507
1507
|
return i[E >> 18 & 63] + i[E >> 12 & 63] + i[E >> 6 & 63] + i[E & 63];
|
|
1508
1508
|
}
|
|
1509
1509
|
function L(E, M, T) {
|
|
1510
1510
|
for (var N, K = [], X = M; X < T; X += 3)
|
|
1511
|
-
N = (E[X] << 16 & 16711680) + (E[X + 1] << 8 & 65280) + (E[X + 2] & 255), K.push(
|
|
1511
|
+
N = (E[X] << 16 & 16711680) + (E[X + 1] << 8 & 65280) + (E[X + 2] & 255), K.push(O(N));
|
|
1512
1512
|
return K.join("");
|
|
1513
1513
|
}
|
|
1514
1514
|
function k(E) {
|
|
@@ -1527,10 +1527,10 @@ var Yu = {};
|
|
|
1527
1527
|
var mh;
|
|
1528
1528
|
function H2() {
|
|
1529
1529
|
return mh || (mh = 1, Yu.read = function(i, t, r, s, l) {
|
|
1530
|
-
var g, f, c = l * 8 - s - 1, b = (1 << c) - 1, C = b >> 1,
|
|
1531
|
-
for (L += k, g = E & (1 << -
|
|
1530
|
+
var g, f, c = l * 8 - s - 1, b = (1 << c) - 1, C = b >> 1, O = -7, L = r ? l - 1 : 0, k = r ? -1 : 1, E = i[t + L];
|
|
1531
|
+
for (L += k, g = E & (1 << -O) - 1, E >>= -O, O += c; O > 0; g = g * 256 + i[t + L], L += k, O -= 8)
|
|
1532
1532
|
;
|
|
1533
|
-
for (f = g & (1 << -
|
|
1533
|
+
for (f = g & (1 << -O) - 1, g >>= -O, O += s; O > 0; f = f * 256 + i[t + L], L += k, O -= 8)
|
|
1534
1534
|
;
|
|
1535
1535
|
if (g === 0)
|
|
1536
1536
|
g = 1 - C;
|
|
@@ -1541,8 +1541,8 @@ function H2() {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return (E ? -1 : 1) * f * Math.pow(2, g - s);
|
|
1543
1543
|
}, Yu.write = function(i, t, r, s, l, g) {
|
|
1544
|
-
var f, c, b, C = g * 8 - l - 1,
|
|
1545
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (c = isNaN(t) ? 1 : 0, f =
|
|
1544
|
+
var f, c, b, C = g * 8 - l - 1, O = (1 << C) - 1, L = O >> 1, k = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, E = s ? 0 : g - 1, M = s ? 1 : -1, T = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
1545
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (c = isNaN(t) ? 1 : 0, f = O) : (f = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -f)) < 1 && (f--, b *= 2), f + L >= 1 ? t += k / b : t += k * Math.pow(2, 1 - L), t * b >= 2 && (f++, b /= 2), f + L >= O ? (c = 0, f = O) : f + L >= 1 ? (c = (t * b - 1) * Math.pow(2, l), f = f + L) : (c = t * Math.pow(2, L - 1) * Math.pow(2, l), f = 0)); l >= 8; i[r + E] = c & 255, E += M, c /= 256, l -= 8)
|
|
1546
1546
|
;
|
|
1547
1547
|
for (f = f << l | c, C += l; C > 0; i[r + E] = f & 255, E += M, f /= 256, C -= 8)
|
|
1548
1548
|
;
|
|
@@ -1621,11 +1621,11 @@ function V2() {
|
|
|
1621
1621
|
if (u < 0)
|
|
1622
1622
|
throw new RangeError('"size" argument must not be negative');
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function O(u, h, w, P) {
|
|
1625
1625
|
return C(h), h <= 0 ? f(u, h) : w !== void 0 ? typeof P == "string" ? f(u, h).fill(w, P) : f(u, h).fill(w) : f(u, h);
|
|
1626
1626
|
}
|
|
1627
1627
|
c.alloc = function(u, h, w) {
|
|
1628
|
-
return
|
|
1628
|
+
return O(null, u, h, w);
|
|
1629
1629
|
};
|
|
1630
1630
|
function L(u, h) {
|
|
1631
1631
|
if (C(h), u = f(u, h < 0 ? 0 : N(h) | 0), !c.TYPED_ARRAY_SUPPORT)
|
|
@@ -2102,7 +2102,7 @@ function V2() {
|
|
|
2102
2102
|
}, c.prototype.readDoubleBE = function(u, h) {
|
|
2103
2103
|
return h || m(u, 8, this.length), r.read(this, u, !1, 52, 8);
|
|
2104
2104
|
};
|
|
2105
|
-
function
|
|
2105
|
+
function D(u, h, w, P, U, ee) {
|
|
2106
2106
|
if (!c.isBuffer(u)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2107
2107
|
if (h > U || h < ee) throw new RangeError('"value" argument is out of bounds');
|
|
2108
2108
|
if (w + P > u.length) throw new RangeError("Index out of range");
|
|
@@ -2110,7 +2110,7 @@ function V2() {
|
|
|
2110
2110
|
c.prototype.writeUIntLE = function(u, h, w, P) {
|
|
2111
2111
|
if (u = +u, h = h | 0, w = w | 0, !P) {
|
|
2112
2112
|
var U = Math.pow(2, 8 * w) - 1;
|
|
2113
|
-
|
|
2113
|
+
D(this, u, h, w, U, 0);
|
|
2114
2114
|
}
|
|
2115
2115
|
var ee = 1, _e = 0;
|
|
2116
2116
|
for (this[h] = u & 255; ++_e < w && (ee *= 256); )
|
|
@@ -2119,14 +2119,14 @@ function V2() {
|
|
|
2119
2119
|
}, c.prototype.writeUIntBE = function(u, h, w, P) {
|
|
2120
2120
|
if (u = +u, h = h | 0, w = w | 0, !P) {
|
|
2121
2121
|
var U = Math.pow(2, 8 * w) - 1;
|
|
2122
|
-
|
|
2122
|
+
D(this, u, h, w, U, 0);
|
|
2123
2123
|
}
|
|
2124
2124
|
var ee = w - 1, _e = 1;
|
|
2125
2125
|
for (this[h + ee] = u & 255; --ee >= 0 && (_e *= 256); )
|
|
2126
2126
|
this[h + ee] = u / _e & 255;
|
|
2127
2127
|
return h + w;
|
|
2128
2128
|
}, c.prototype.writeUInt8 = function(u, h, w) {
|
|
2129
|
-
return u = +u, h = h | 0, w ||
|
|
2129
|
+
return u = +u, h = h | 0, w || D(this, u, h, 1, 255, 0), c.TYPED_ARRAY_SUPPORT || (u = Math.floor(u)), this[h] = u & 255, h + 1;
|
|
2130
2130
|
};
|
|
2131
2131
|
function q(u, h, w, P) {
|
|
2132
2132
|
h < 0 && (h = 65535 + h + 1);
|
|
@@ -2134,9 +2134,9 @@ function V2() {
|
|
|
2134
2134
|
u[w + U] = (h & 255 << 8 * (P ? U : 1 - U)) >>> (P ? U : 1 - U) * 8;
|
|
2135
2135
|
}
|
|
2136
2136
|
c.prototype.writeUInt16LE = function(u, h, w) {
|
|
2137
|
-
return u = +u, h = h | 0, w ||
|
|
2137
|
+
return u = +u, h = h | 0, w || D(this, u, h, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? (this[h] = u & 255, this[h + 1] = u >>> 8) : q(this, u, h, !0), h + 2;
|
|
2138
2138
|
}, c.prototype.writeUInt16BE = function(u, h, w) {
|
|
2139
|
-
return u = +u, h = h | 0, w ||
|
|
2139
|
+
return u = +u, h = h | 0, w || D(this, u, h, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 8, this[h + 1] = u & 255) : q(this, u, h, !1), h + 2;
|
|
2140
2140
|
};
|
|
2141
2141
|
function V(u, h, w, P) {
|
|
2142
2142
|
h < 0 && (h = 4294967295 + h + 1);
|
|
@@ -2144,13 +2144,13 @@ function V2() {
|
|
|
2144
2144
|
u[w + U] = h >>> (P ? U : 3 - U) * 8 & 255;
|
|
2145
2145
|
}
|
|
2146
2146
|
c.prototype.writeUInt32LE = function(u, h, w) {
|
|
2147
|
-
return u = +u, h = h | 0, w ||
|
|
2147
|
+
return u = +u, h = h | 0, w || D(this, u, h, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? (this[h + 3] = u >>> 24, this[h + 2] = u >>> 16, this[h + 1] = u >>> 8, this[h] = u & 255) : V(this, u, h, !0), h + 4;
|
|
2148
2148
|
}, c.prototype.writeUInt32BE = function(u, h, w) {
|
|
2149
|
-
return u = +u, h = h | 0, w ||
|
|
2149
|
+
return u = +u, h = h | 0, w || D(this, u, h, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 24, this[h + 1] = u >>> 16, this[h + 2] = u >>> 8, this[h + 3] = u & 255) : V(this, u, h, !1), h + 4;
|
|
2150
2150
|
}, c.prototype.writeIntLE = function(u, h, w, P) {
|
|
2151
2151
|
if (u = +u, h = h | 0, !P) {
|
|
2152
2152
|
var U = Math.pow(2, 8 * w - 1);
|
|
2153
|
-
|
|
2153
|
+
D(this, u, h, w, U - 1, -U);
|
|
2154
2154
|
}
|
|
2155
2155
|
var ee = 0, _e = 1, De = 0;
|
|
2156
2156
|
for (this[h] = u & 255; ++ee < w && (_e *= 256); )
|
|
@@ -2159,22 +2159,22 @@ function V2() {
|
|
|
2159
2159
|
}, c.prototype.writeIntBE = function(u, h, w, P) {
|
|
2160
2160
|
if (u = +u, h = h | 0, !P) {
|
|
2161
2161
|
var U = Math.pow(2, 8 * w - 1);
|
|
2162
|
-
|
|
2162
|
+
D(this, u, h, w, U - 1, -U);
|
|
2163
2163
|
}
|
|
2164
2164
|
var ee = w - 1, _e = 1, De = 0;
|
|
2165
2165
|
for (this[h + ee] = u & 255; --ee >= 0 && (_e *= 256); )
|
|
2166
2166
|
u < 0 && De === 0 && this[h + ee + 1] !== 0 && (De = 1), this[h + ee] = (u / _e >> 0) - De & 255;
|
|
2167
2167
|
return h + w;
|
|
2168
2168
|
}, c.prototype.writeInt8 = function(u, h, w) {
|
|
2169
|
-
return u = +u, h = h | 0, w ||
|
|
2169
|
+
return u = +u, h = h | 0, w || D(this, u, h, 1, 127, -128), c.TYPED_ARRAY_SUPPORT || (u = Math.floor(u)), u < 0 && (u = 255 + u + 1), this[h] = u & 255, h + 1;
|
|
2170
2170
|
}, c.prototype.writeInt16LE = function(u, h, w) {
|
|
2171
|
-
return u = +u, h = h | 0, w ||
|
|
2171
|
+
return u = +u, h = h | 0, w || D(this, u, h, 2, 32767, -32768), c.TYPED_ARRAY_SUPPORT ? (this[h] = u & 255, this[h + 1] = u >>> 8) : q(this, u, h, !0), h + 2;
|
|
2172
2172
|
}, c.prototype.writeInt16BE = function(u, h, w) {
|
|
2173
|
-
return u = +u, h = h | 0, w ||
|
|
2173
|
+
return u = +u, h = h | 0, w || D(this, u, h, 2, 32767, -32768), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 8, this[h + 1] = u & 255) : q(this, u, h, !1), h + 2;
|
|
2174
2174
|
}, c.prototype.writeInt32LE = function(u, h, w) {
|
|
2175
|
-
return u = +u, h = h | 0, w ||
|
|
2175
|
+
return u = +u, h = h | 0, w || D(this, u, h, 4, 2147483647, -2147483648), c.TYPED_ARRAY_SUPPORT ? (this[h] = u & 255, this[h + 1] = u >>> 8, this[h + 2] = u >>> 16, this[h + 3] = u >>> 24) : V(this, u, h, !0), h + 4;
|
|
2176
2176
|
}, c.prototype.writeInt32BE = function(u, h, w) {
|
|
2177
|
-
return u = +u, h = h | 0, w ||
|
|
2177
|
+
return u = +u, h = h | 0, w || D(this, u, h, 4, 2147483647, -2147483648), u < 0 && (u = 4294967295 + u + 1), c.TYPED_ARRAY_SUPPORT ? (this[h] = u >>> 24, this[h + 1] = u >>> 16, this[h + 2] = u >>> 8, this[h + 3] = u & 255) : V(this, u, h, !1), h + 4;
|
|
2178
2178
|
};
|
|
2179
2179
|
function ue(u, h, w, P, U, ee) {
|
|
2180
2180
|
if (w + P > u.length) throw new RangeError("Index out of range");
|
|
@@ -2406,22 +2406,22 @@ function ew(i, t, r, s) {
|
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
2408
|
return new (r || (r = Promise))(function(g, f) {
|
|
2409
|
-
function c(
|
|
2409
|
+
function c(O) {
|
|
2410
2410
|
try {
|
|
2411
|
-
C(s.next(
|
|
2411
|
+
C(s.next(O));
|
|
2412
2412
|
} catch (L) {
|
|
2413
2413
|
f(L);
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
|
-
function b(
|
|
2416
|
+
function b(O) {
|
|
2417
2417
|
try {
|
|
2418
|
-
C(s.throw(
|
|
2418
|
+
C(s.throw(O));
|
|
2419
2419
|
} catch (L) {
|
|
2420
2420
|
f(L);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
|
-
function C(
|
|
2424
|
-
|
|
2423
|
+
function C(O) {
|
|
2424
|
+
O.done ? g(O.value) : l(O.value).then(c, b);
|
|
2425
2425
|
}
|
|
2426
2426
|
C((s = s.apply(i, t || [])).next());
|
|
2427
2427
|
});
|
|
@@ -2435,8 +2435,8 @@ function tw(i, t) {
|
|
|
2435
2435
|
return this;
|
|
2436
2436
|
}), f;
|
|
2437
2437
|
function c(C) {
|
|
2438
|
-
return function(
|
|
2439
|
-
return b([C,
|
|
2438
|
+
return function(O) {
|
|
2439
|
+
return b([C, O]);
|
|
2440
2440
|
};
|
|
2441
2441
|
}
|
|
2442
2442
|
function b(C) {
|
|
@@ -2477,8 +2477,8 @@ function tw(i, t) {
|
|
|
2477
2477
|
continue;
|
|
2478
2478
|
}
|
|
2479
2479
|
C = t.call(i, r);
|
|
2480
|
-
} catch (
|
|
2481
|
-
C = [6,
|
|
2480
|
+
} catch (O) {
|
|
2481
|
+
C = [6, O], l = 0;
|
|
2482
2482
|
} finally {
|
|
2483
2483
|
s = g = 0;
|
|
2484
2484
|
}
|
|
@@ -2555,12 +2555,12 @@ function sw(i, t, r) {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
function b(k) {
|
|
2558
|
-
k.value instanceof Lo ? Promise.resolve(k.value.v).then(C,
|
|
2558
|
+
k.value instanceof Lo ? Promise.resolve(k.value.v).then(C, O) : L(g[0][2], k);
|
|
2559
2559
|
}
|
|
2560
2560
|
function C(k) {
|
|
2561
2561
|
c("next", k);
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function O(k) {
|
|
2564
2564
|
c("throw", k);
|
|
2565
2565
|
}
|
|
2566
2566
|
function L(k, E) {
|
|
@@ -2761,7 +2761,7 @@ function gw() {
|
|
|
2761
2761
|
c[f * 4] = this.state[f] >>> 24 & 255, c[f * 4 + 1] = this.state[f] >>> 16 & 255, c[f * 4 + 2] = this.state[f] >>> 8 & 255, c[f * 4 + 3] = this.state[f] >>> 0 & 255;
|
|
2762
2762
|
return c;
|
|
2763
2763
|
}, r.prototype.hashBuffer = function() {
|
|
2764
|
-
for (var s = this, l = s.buffer, g = s.state, f = g[0], c = g[1], b = g[2], C = g[3],
|
|
2764
|
+
for (var s = this, l = s.buffer, g = s.state, f = g[0], c = g[1], b = g[2], C = g[3], O = g[4], L = g[5], k = g[6], E = g[7], M = 0; M < i.BLOCK_SIZE; M++) {
|
|
2765
2765
|
if (M < 16)
|
|
2766
2766
|
this.temp[M] = (l[M * 4] & 255) << 24 | (l[M * 4 + 1] & 255) << 16 | (l[M * 4 + 2] & 255) << 8 | l[M * 4 + 3] & 255;
|
|
2767
2767
|
else {
|
|
@@ -2770,10 +2770,10 @@ function gw() {
|
|
|
2770
2770
|
var K = (T >>> 7 | T << 25) ^ (T >>> 18 | T << 14) ^ T >>> 3;
|
|
2771
2771
|
this.temp[M] = (N + this.temp[M - 7] | 0) + (K + this.temp[M - 16] | 0);
|
|
2772
2772
|
}
|
|
2773
|
-
var X = (((
|
|
2774
|
-
E = k, k = L, L =
|
|
2773
|
+
var X = (((O >>> 6 | O << 26) ^ (O >>> 11 | O << 21) ^ (O >>> 25 | O << 7)) + (O & L ^ ~O & k) | 0) + (E + (i.KEY[M] + this.temp[M] | 0) | 0) | 0, Q = ((f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10)) + (f & c ^ f & b ^ c & b) | 0;
|
|
2774
|
+
E = k, k = L, L = O, O = C + X | 0, C = b, b = c, c = f, f = X + Q | 0;
|
|
2775
2775
|
}
|
|
2776
|
-
g[0] += f, g[1] += c, g[2] += b, g[3] += C, g[4] +=
|
|
2776
|
+
g[0] += f, g[1] += c, g[2] += b, g[3] += C, g[4] += O, g[5] += L, g[6] += k, g[7] += E;
|
|
2777
2777
|
}, r;
|
|
2778
2778
|
}()
|
|
2779
2779
|
);
|
|
@@ -2906,11 +2906,11 @@ function Tw() {
|
|
|
2906
2906
|
this.outer = new r.RawSha256();
|
|
2907
2907
|
var b = g(c), C = new Uint8Array(t.BLOCK_SIZE);
|
|
2908
2908
|
C.set(b);
|
|
2909
|
-
for (var
|
|
2910
|
-
b[
|
|
2909
|
+
for (var O = 0; O < t.BLOCK_SIZE; O++)
|
|
2910
|
+
b[O] ^= 54, C[O] ^= 92;
|
|
2911
2911
|
this.hash.update(b), this.outer.update(C);
|
|
2912
|
-
for (var
|
|
2913
|
-
b[
|
|
2912
|
+
for (var O = 0; O < b.byteLength; O++)
|
|
2913
|
+
b[O] = 0;
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
2916
|
return f.prototype.update = function(c) {
|
|
@@ -2970,15 +2970,15 @@ function Lw(i, t, r, s, l, g) {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
function kw(i, t, r, s, l, g) {
|
|
2972
2972
|
for (var f = t & 32767, c = t >> 15; --g >= 0; ) {
|
|
2973
|
-
var b = this[i] & 32767, C = this[i++] >> 15,
|
|
2974
|
-
b = f * b + ((
|
|
2973
|
+
var b = this[i] & 32767, C = this[i++] >> 15, O = c * b + C * f;
|
|
2974
|
+
b = f * b + ((O & 32767) << 15) + r[s] + (l & 1073741823), l = (b >>> 30) + (O >>> 15) + c * C + (l >>> 30), r[s++] = b & 1073741823;
|
|
2975
2975
|
}
|
|
2976
2976
|
return l;
|
|
2977
2977
|
}
|
|
2978
2978
|
function Iw(i, t, r, s, l, g) {
|
|
2979
2979
|
for (var f = t & 16383, c = t >> 14; --g >= 0; ) {
|
|
2980
|
-
var b = this[i] & 16383, C = this[i++] >> 14,
|
|
2981
|
-
b = f * b + ((
|
|
2980
|
+
var b = this[i] & 16383, C = this[i++] >> 14, O = c * b + C * f;
|
|
2981
|
+
b = f * b + ((O & 16383) << 14) + r[s] + l, l = (b >> 28) + (O >> 14) + c * C, r[s++] = b & 268435455;
|
|
2982
2982
|
}
|
|
2983
2983
|
return l;
|
|
2984
2984
|
}
|
|
@@ -3144,12 +3144,12 @@ function Xw(i, t, r) {
|
|
|
3144
3144
|
r == null && (r = Ut());
|
|
3145
3145
|
var g = Ut(), f = this.s, c = i.s, b = this.DB - Dl(s[s.t - 1]);
|
|
3146
3146
|
b > 0 ? (s.lShiftTo(b, g), l.lShiftTo(b, r)) : (s.copyTo(g), l.copyTo(r));
|
|
3147
|
-
var C = g.t,
|
|
3148
|
-
if (
|
|
3149
|
-
var L =
|
|
3147
|
+
var C = g.t, O = g[C - 1];
|
|
3148
|
+
if (O != 0) {
|
|
3149
|
+
var L = O * (1 << this.F1) + (C > 1 ? g[C - 2] >> this.F2 : 0), k = this.FV / L, E = (1 << this.F1) / L, M = 1 << this.F2, T = r.t, N = T - C, K = t ?? Ut();
|
|
3150
3150
|
for (g.dlShiftTo(N, K), r.compareTo(K) >= 0 && (r[r.t++] = 1, r.subTo(K, r)), je.ONE.dlShiftTo(C, K), K.subTo(g, g); g.t < C; ) g[g.t++] = 0;
|
|
3151
3151
|
for (; --N >= 0; ) {
|
|
3152
|
-
var X = r[--T] ==
|
|
3152
|
+
var X = r[--T] == O ? this.DM : Math.floor(r[T] * k + (r[T - 1] + M) * E);
|
|
3153
3153
|
if ((r[T] += g.am(0, X, r, N, 0, C)) < X)
|
|
3154
3154
|
for (g.dlShiftTo(N, K), r.subTo(K, r); r[T] < --X; ) r.subTo(K, r);
|
|
3155
3155
|
}
|
|
@@ -3237,15 +3237,15 @@ function d_(i, t, r) {
|
|
|
3237
3237
|
var s = i.bitLength(), l, g = Ol(1), f = new Ui(t);
|
|
3238
3238
|
if (s <= 0) return g;
|
|
3239
3239
|
s < 18 ? l = 1 : s < 48 ? l = 3 : s < 144 ? l = 4 : s < 768 ? l = 5 : l = 6;
|
|
3240
|
-
var c = new Array(), b = 3, C = l - 1,
|
|
3240
|
+
var c = new Array(), b = 3, C = l - 1, O = (1 << l) - 1;
|
|
3241
3241
|
if (c[1] = f.convert(this), l > 1) {
|
|
3242
3242
|
var L = Ut();
|
|
3243
|
-
for (f.sqrTo(c[1], L); b <=
|
|
3243
|
+
for (f.sqrTo(c[1], L); b <= O; )
|
|
3244
3244
|
c[b] = Ut(), f.mulTo(L, c[b - 2], c[b]), b += 2;
|
|
3245
3245
|
}
|
|
3246
3246
|
var k = i.t - 1, E, M = !0, T = Ut(), N;
|
|
3247
3247
|
for (s = Dl(i[k]) - 1; k >= 0; ) {
|
|
3248
|
-
for (s >= C ? E = i[k] >> s - C &
|
|
3248
|
+
for (s >= C ? E = i[k] >> s - C & O : (E = (i[k] & (1 << s + 1) - 1) << C - s, k > 0 && (E |= i[k - 1] >> this.DB + s - C)), b = l; (E & 1) == 0; )
|
|
3249
3249
|
E >>= 1, --b;
|
|
3250
3250
|
if ((s -= b) < 0 && (s += this.DB, --k), M)
|
|
3251
3251
|
c[E].copyTo(g), M = !1;
|
|
@@ -3301,14 +3301,14 @@ function p_(i, t) {
|
|
|
3301
3301
|
return g;
|
|
3302
3302
|
}, entries: function() {
|
|
3303
3303
|
return f;
|
|
3304
|
-
}, get: function(
|
|
3305
|
-
return c[
|
|
3306
|
-
}, has: function(
|
|
3307
|
-
return
|
|
3304
|
+
}, get: function(O) {
|
|
3305
|
+
return c[O.toLowerCase()];
|
|
3306
|
+
}, has: function(O) {
|
|
3307
|
+
return O.toLowerCase() in c;
|
|
3308
3308
|
} } };
|
|
3309
3309
|
};
|
|
3310
3310
|
for (var C in l.open(t.method || "get", i, !0), l.onload = function() {
|
|
3311
|
-
l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(
|
|
3311
|
+
l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(O, L, k) {
|
|
3312
3312
|
g.push(L = L.toLowerCase()), f.push([L, k]), c[L] = c[L] ? c[L] + "," + k : k;
|
|
3313
3313
|
}), r(b());
|
|
3314
3314
|
}, l.onerror = s, l.withCredentials = t.credentials == "include", t.headers) l.setRequestHeader(C, t.headers[C]);
|
|
@@ -3362,31 +3362,31 @@ function m_() {
|
|
|
3362
3362
|
function l(g) {
|
|
3363
3363
|
function f() {
|
|
3364
3364
|
}
|
|
3365
|
-
function c(C,
|
|
3365
|
+
function c(C, O, L) {
|
|
3366
3366
|
if (!(typeof document > "u")) {
|
|
3367
3367
|
L = r({
|
|
3368
3368
|
path: "/"
|
|
3369
3369
|
}, f.defaults, L), typeof L.expires == "number" && (L.expires = new Date(/* @__PURE__ */ new Date() * 1 + L.expires * 864e5)), L.expires = L.expires ? L.expires.toUTCString() : "";
|
|
3370
3370
|
try {
|
|
3371
|
-
var k = JSON.stringify(
|
|
3372
|
-
/^[\{\[]/.test(k) && (
|
|
3371
|
+
var k = JSON.stringify(O);
|
|
3372
|
+
/^[\{\[]/.test(k) && (O = k);
|
|
3373
3373
|
} catch {
|
|
3374
3374
|
}
|
|
3375
|
-
|
|
3375
|
+
O = g.write ? g.write(O, C) : encodeURIComponent(String(O)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), C = encodeURIComponent(String(C)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
3376
3376
|
var E = "";
|
|
3377
3377
|
for (var M in L)
|
|
3378
3378
|
L[M] && (E += "; " + M, L[M] !== !0 && (E += "=" + L[M].split(";")[0]));
|
|
3379
|
-
return document.cookie = C + "=" +
|
|
3379
|
+
return document.cookie = C + "=" + O + E;
|
|
3380
3380
|
}
|
|
3381
3381
|
}
|
|
3382
|
-
function b(C,
|
|
3382
|
+
function b(C, O) {
|
|
3383
3383
|
if (!(typeof document > "u")) {
|
|
3384
3384
|
for (var L = {}, k = document.cookie ? document.cookie.split("; ") : [], E = 0; E < k.length; E++) {
|
|
3385
3385
|
var M = k[E].split("="), T = M.slice(1).join("=");
|
|
3386
|
-
!
|
|
3386
|
+
!O && T.charAt(0) === '"' && (T = T.slice(1, -1));
|
|
3387
3387
|
try {
|
|
3388
3388
|
var N = s(M[0]);
|
|
3389
|
-
if (T = (g.read || g)(T, N) || s(T),
|
|
3389
|
+
if (T = (g.read || g)(T, N) || s(T), O)
|
|
3390
3390
|
try {
|
|
3391
3391
|
T = JSON.parse(T);
|
|
3392
3392
|
} catch {
|
|
@@ -3411,8 +3411,8 @@ function m_() {
|
|
|
3411
3411
|
!0
|
|
3412
3412
|
/* read as json */
|
|
3413
3413
|
);
|
|
3414
|
-
}, f.remove = function(C,
|
|
3415
|
-
c(C, "", r(
|
|
3414
|
+
}, f.remove = function(C, O) {
|
|
3415
|
+
c(C, "", r(O, {
|
|
3416
3416
|
expires: -1
|
|
3417
3417
|
}));
|
|
3418
3418
|
}, f.defaults = {}, f.withConverter = l, f;
|
|
@@ -3498,9 +3498,9 @@ function L_() {
|
|
|
3498
3498
|
i.exports = s();
|
|
3499
3499
|
})(M_, () => (() => {
|
|
3500
3500
|
var r = { 873: (f, c) => {
|
|
3501
|
-
var b, C,
|
|
3501
|
+
var b, C, O = function() {
|
|
3502
3502
|
var L = function(B, I) {
|
|
3503
|
-
var A = B, v = K[I], p = null, _ = 0, d = null, m = [],
|
|
3503
|
+
var A = B, v = K[I], p = null, _ = 0, d = null, m = [], D = {}, q = function(j, W) {
|
|
3504
3504
|
p = function(F) {
|
|
3505
3505
|
for (var Z = new Array(F), ae = 0; ae < F; ae += 1) {
|
|
3506
3506
|
Z[ae] = new Array(F);
|
|
@@ -3572,7 +3572,7 @@ function L_() {
|
|
|
3572
3572
|
return bt;
|
|
3573
3573
|
}(ae, Z);
|
|
3574
3574
|
};
|
|
3575
|
-
|
|
3575
|
+
D.addData = function(j, W) {
|
|
3576
3576
|
var F = null;
|
|
3577
3577
|
switch (W = W || "Byte") {
|
|
3578
3578
|
case "Numeric":
|
|
@@ -3591,12 +3591,12 @@ function L_() {
|
|
|
3591
3591
|
throw "mode:" + W;
|
|
3592
3592
|
}
|
|
3593
3593
|
m.push(F), d = null;
|
|
3594
|
-
},
|
|
3594
|
+
}, D.isDark = function(j, W) {
|
|
3595
3595
|
if (j < 0 || _ <= j || W < 0 || _ <= W) throw j + "," + W;
|
|
3596
3596
|
return p[j][W];
|
|
3597
|
-
},
|
|
3597
|
+
}, D.getModuleCount = function() {
|
|
3598
3598
|
return _;
|
|
3599
|
-
},
|
|
3599
|
+
}, D.make = function() {
|
|
3600
3600
|
if (A < 1) {
|
|
3601
3601
|
for (var j = 1; j < 40; j++) {
|
|
3602
3602
|
for (var W = Y.getRSBlocks(j, v), F = ce(), Z = 0; Z < m.length; Z++) {
|
|
@@ -3612,41 +3612,41 @@ function L_() {
|
|
|
3612
3612
|
q(!1, function() {
|
|
3613
3613
|
for (var u = 0, h = 0, w = 0; w < 8; w += 1) {
|
|
3614
3614
|
q(!0, w);
|
|
3615
|
-
var P = X.getLostPoint(
|
|
3615
|
+
var P = X.getLostPoint(D);
|
|
3616
3616
|
(w == 0 || u > P) && (u = P, h = w);
|
|
3617
3617
|
}
|
|
3618
3618
|
return h;
|
|
3619
3619
|
}());
|
|
3620
|
-
},
|
|
3620
|
+
}, D.createTableTag = function(j, W) {
|
|
3621
3621
|
j = j || 2;
|
|
3622
3622
|
var F = "";
|
|
3623
3623
|
F += '<table style="', F += " border-width: 0px; border-style: none;", F += " border-collapse: collapse;", F += " padding: 0px; margin: " + (W = W === void 0 ? 4 * j : W) + "px;", F += '">', F += "<tbody>";
|
|
3624
|
-
for (var Z = 0; Z <
|
|
3624
|
+
for (var Z = 0; Z < D.getModuleCount(); Z += 1) {
|
|
3625
3625
|
F += "<tr>";
|
|
3626
|
-
for (var ae = 0; ae <
|
|
3626
|
+
for (var ae = 0; ae < D.getModuleCount(); ae += 1) F += '<td style="', F += " border-width: 0px; border-style: none;", F += " border-collapse: collapse;", F += " padding: 0px; margin: 0px;", F += " width: " + j + "px;", F += " height: " + j + "px;", F += " background-color: ", F += D.isDark(Z, ae) ? "#000000" : "#ffffff", F += ";", F += '"/>';
|
|
3627
3627
|
F += "</tr>";
|
|
3628
3628
|
}
|
|
3629
3629
|
return (F += "</tbody>") + "</table>";
|
|
3630
|
-
},
|
|
3630
|
+
}, D.createSvgTag = function(j, W, F, Z) {
|
|
3631
3631
|
var ae = {};
|
|
3632
3632
|
typeof arguments[0] == "object" && (j = (ae = arguments[0]).cellSize, W = ae.margin, F = ae.alt, Z = ae.title), j = j || 2, W = W === void 0 ? 4 * j : W, (F = typeof F == "string" ? { text: F } : F || {}).text = F.text || null, F.id = F.text ? F.id || "qrcode-description" : null, (Z = typeof Z == "string" ? { text: Z } : Z || {}).text = Z.text || null, Z.id = Z.text ? Z.id || "qrcode-title" : null;
|
|
3633
|
-
var Ae, u, h, w, P =
|
|
3634
|
-
for (w = "l" + j + ",0 0," + j + " -" + j + ",0 0,-" + j + "z ", U += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', U += ae.scalable ? "" : ' width="' + P + 'px" height="' + P + 'px"', U += ' viewBox="0 0 ' + P + " " + P + '" ', U += ' preserveAspectRatio="xMinYMin meet"', U += Z.text || F.text ? ' role="img" aria-labelledby="' + we([Z.id, F.id].join(" ").trim()) + '"' : "", U += ">", U += Z.text ? '<title id="' + we(Z.id) + '">' + we(Z.text) + "</title>" : "", U += F.text ? '<description id="' + we(F.id) + '">' + we(F.text) + "</description>" : "", U += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', U += '<path d="', u = 0; u <
|
|
3633
|
+
var Ae, u, h, w, P = D.getModuleCount() * j + 2 * W, U = "";
|
|
3634
|
+
for (w = "l" + j + ",0 0," + j + " -" + j + ",0 0,-" + j + "z ", U += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', U += ae.scalable ? "" : ' width="' + P + 'px" height="' + P + 'px"', U += ' viewBox="0 0 ' + P + " " + P + '" ', U += ' preserveAspectRatio="xMinYMin meet"', U += Z.text || F.text ? ' role="img" aria-labelledby="' + we([Z.id, F.id].join(" ").trim()) + '"' : "", U += ">", U += Z.text ? '<title id="' + we(Z.id) + '">' + we(Z.text) + "</title>" : "", U += F.text ? '<description id="' + we(F.id) + '">' + we(F.text) + "</description>" : "", U += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', U += '<path d="', u = 0; u < D.getModuleCount(); u += 1) for (h = u * j + W, Ae = 0; Ae < D.getModuleCount(); Ae += 1) D.isDark(u, Ae) && (U += "M" + (Ae * j + W) + "," + h + w);
|
|
3635
3635
|
return (U += '" stroke="transparent" fill="black"/>') + "</svg>";
|
|
3636
|
-
},
|
|
3636
|
+
}, D.createDataURL = function(j, W) {
|
|
3637
3637
|
j = j || 2, W = W === void 0 ? 4 * j : W;
|
|
3638
|
-
var F =
|
|
3638
|
+
var F = D.getModuleCount() * j + 2 * W, Z = W, ae = F - W;
|
|
3639
3639
|
return Ce(F, F, function(Ae, u) {
|
|
3640
3640
|
if (Z <= Ae && Ae < ae && Z <= u && u < ae) {
|
|
3641
3641
|
var h = Math.floor((Ae - Z) / j), w = Math.floor((u - Z) / j);
|
|
3642
|
-
return
|
|
3642
|
+
return D.isDark(w, h) ? 0 : 1;
|
|
3643
3643
|
}
|
|
3644
3644
|
return 1;
|
|
3645
3645
|
});
|
|
3646
|
-
},
|
|
3646
|
+
}, D.createImgTag = function(j, W, F) {
|
|
3647
3647
|
j = j || 2, W = W === void 0 ? 4 * j : W;
|
|
3648
|
-
var Z =
|
|
3649
|
-
return ae += "<img", ae += ' src="', ae +=
|
|
3648
|
+
var Z = D.getModuleCount() * j + 2 * W, ae = "";
|
|
3649
|
+
return ae += "<img", ae += ' src="', ae += D.createDataURL(j, W), ae += '"', ae += ' width="', ae += Z, ae += '"', ae += ' height="', ae += Z, ae += '"', F && (ae += ' alt="', ae += we(F), ae += '"'), ae + "/>";
|
|
3650
3650
|
};
|
|
3651
3651
|
var we = function(j) {
|
|
3652
3652
|
for (var W = "", F = 0; F < j.length; F += 1) {
|
|
@@ -3670,29 +3670,29 @@ function L_() {
|
|
|
3670
3670
|
}
|
|
3671
3671
|
return W;
|
|
3672
3672
|
};
|
|
3673
|
-
return
|
|
3673
|
+
return D.createASCII = function(j, W) {
|
|
3674
3674
|
if ((j = j || 1) < 2) return function(De) {
|
|
3675
3675
|
De = De === void 0 ? 2 : De;
|
|
3676
|
-
var Te, be, Ee, Ie, Me, Ge = 1 *
|
|
3676
|
+
var Te, be, Ee, Ie, Me, Ge = 1 * D.getModuleCount() + 2 * De, Ye = De, Xe = Ge - De, ft = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, bt = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, at = "";
|
|
3677
3677
|
for (Te = 0; Te < Ge; Te += 2) {
|
|
3678
|
-
for (Ee = Math.floor((Te - Ye) / 1), Ie = Math.floor((Te + 1 - Ye) / 1), be = 0; be < Ge; be += 1) Me = "█", Ye <= be && be < Xe && Ye <= Te && Te < Xe &&
|
|
3678
|
+
for (Ee = Math.floor((Te - Ye) / 1), Ie = Math.floor((Te + 1 - Ye) / 1), be = 0; be < Ge; be += 1) Me = "█", Ye <= be && be < Xe && Ye <= Te && Te < Xe && D.isDark(Ee, Math.floor((be - Ye) / 1)) && (Me = " "), Ye <= be && be < Xe && Ye <= Te + 1 && Te + 1 < Xe && D.isDark(Ie, Math.floor((be - Ye) / 1)) ? Me += " " : Me += "█", at += De < 1 && Te + 1 >= Xe ? bt[Me] : ft[Me];
|
|
3679
3679
|
at += `
|
|
3680
3680
|
`;
|
|
3681
3681
|
}
|
|
3682
3682
|
return Ge % 2 && De > 0 ? at.substring(0, at.length - Ge - 1) + Array(Ge + 1).join("▀") : at.substring(0, at.length - 1);
|
|
3683
3683
|
}(W);
|
|
3684
3684
|
j -= 1, W = W === void 0 ? 2 * j : W;
|
|
3685
|
-
var F, Z, ae, Ae, u =
|
|
3685
|
+
var F, Z, ae, Ae, u = D.getModuleCount() * j + 2 * W, h = W, w = u - W, P = Array(j + 1).join("██"), U = Array(j + 1).join(" "), ee = "", _e = "";
|
|
3686
3686
|
for (F = 0; F < u; F += 1) {
|
|
3687
|
-
for (ae = Math.floor((F - h) / j), _e = "", Z = 0; Z < u; Z += 1) Ae = 1, h <= Z && Z < w && h <= F && F < w &&
|
|
3687
|
+
for (ae = Math.floor((F - h) / j), _e = "", Z = 0; Z < u; Z += 1) Ae = 1, h <= Z && Z < w && h <= F && F < w && D.isDark(ae, Math.floor((Z - h) / j)) && (Ae = 0), _e += Ae ? P : U;
|
|
3688
3688
|
for (ae = 0; ae < j; ae += 1) ee += _e + `
|
|
3689
3689
|
`;
|
|
3690
3690
|
}
|
|
3691
3691
|
return ee.substring(0, ee.length - 1);
|
|
3692
|
-
},
|
|
3692
|
+
}, D.renderTo2dContext = function(j, W) {
|
|
3693
3693
|
W = W || 2;
|
|
3694
|
-
for (var F =
|
|
3695
|
-
},
|
|
3694
|
+
for (var F = D.getModuleCount(), Z = 0; Z < F; Z++) for (var ae = 0; ae < F; ae++) j.fillStyle = D.isDark(Z, ae) ? "black" : "white", j.fillRect(Z * W, ae * W, W, W);
|
|
3695
|
+
}, D;
|
|
3696
3696
|
};
|
|
3697
3697
|
L.stringToBytes = (L.stringToBytesFuncs = { default: function(B) {
|
|
3698
3698
|
for (var I = [], A = 0; A < B.length; A += 1) {
|
|
@@ -3707,10 +3707,10 @@ function L_() {
|
|
|
3707
3707
|
if (ue == -1) throw "eof";
|
|
3708
3708
|
return ue;
|
|
3709
3709
|
}, d = 0, m = {}; ; ) {
|
|
3710
|
-
var
|
|
3711
|
-
if (
|
|
3710
|
+
var D = p.read();
|
|
3711
|
+
if (D == -1) break;
|
|
3712
3712
|
var q = _(), V = _() << 8 | _();
|
|
3713
|
-
m[String.fromCharCode(
|
|
3713
|
+
m[String.fromCharCode(D << 8 | q)] = V, d += 1;
|
|
3714
3714
|
}
|
|
3715
3715
|
if (d != I) throw d + " != " + I;
|
|
3716
3716
|
return m;
|
|
@@ -3720,8 +3720,8 @@ function L_() {
|
|
|
3720
3720
|
var m = p.charCodeAt(d);
|
|
3721
3721
|
if (m < 128) _.push(m);
|
|
3722
3722
|
else {
|
|
3723
|
-
var
|
|
3724
|
-
typeof
|
|
3723
|
+
var D = A[p.charAt(d)];
|
|
3724
|
+
typeof D == "number" ? (255 & D) == D ? _.push(D) : (_.push(D >>> 8), _.push(255 & D)) : _.push(v);
|
|
3725
3725
|
}
|
|
3726
3726
|
}
|
|
3727
3727
|
return _;
|
|
@@ -3819,7 +3819,7 @@ function L_() {
|
|
|
3819
3819
|
}
|
|
3820
3820
|
}, T.getLostPoint = function(B) {
|
|
3821
3821
|
for (var I = B.getModuleCount(), A = 0, v = 0; v < I; v += 1) for (var p = 0; p < I; p += 1) {
|
|
3822
|
-
for (var _ = 0, d = B.isDark(v, p), m = -1; m <= 1; m += 1) if (!(v + m < 0 || I <= v + m)) for (var
|
|
3822
|
+
for (var _ = 0, d = B.isDark(v, p), m = -1; m <= 1; m += 1) if (!(v + m < 0 || I <= v + m)) for (var D = -1; D <= 1; D += 1) p + D < 0 || I <= p + D || m == 0 && D == 0 || d == B.isDark(v + m, p + D) && (_ += 1);
|
|
3823
3823
|
_ > 5 && (A += 3 + _ - 5);
|
|
3824
3824
|
}
|
|
3825
3825
|
for (v = 0; v < I - 1; v += 1) for (p = 0; p < I - 1; p += 1) {
|
|
@@ -3885,7 +3885,7 @@ function L_() {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
}(v, p);
|
|
3887
3887
|
if (_ === void 0) throw "bad rs block @ typeNumber:" + v + "/errorCorrectionLevel:" + p;
|
|
3888
|
-
for (var d = _.length / 3, m = [],
|
|
3888
|
+
for (var d = _.length / 3, m = [], D = 0; D < d; D += 1) for (var q = _[3 * D + 0], V = _[3 * D + 1], ue = _[3 * D + 2], he = 0; he < q; he += 1) m.push(I(V, ue));
|
|
3889
3889
|
return m;
|
|
3890
3890
|
} };
|
|
3891
3891
|
return A;
|
|
@@ -4018,8 +4018,8 @@ function L_() {
|
|
|
4018
4018
|
if (A += 1, m == "=") return p = 0, -1;
|
|
4019
4019
|
m.match(/^\s$/) || (v = v << 6 | d(m.charCodeAt(0)), p += 6);
|
|
4020
4020
|
}
|
|
4021
|
-
var
|
|
4022
|
-
return p -= 8,
|
|
4021
|
+
var D = v >>> p - 8 & 255;
|
|
4022
|
+
return p -= 8, D;
|
|
4023
4023
|
} }, d = function(m) {
|
|
4024
4024
|
if (65 <= m && m <= 90) return m - 65;
|
|
4025
4025
|
if (97 <= m && m <= 122) return m - 97 + 26;
|
|
@@ -4093,12 +4093,12 @@ function L_() {
|
|
|
4093
4093
|
}, re.toString = function() {
|
|
4094
4094
|
return me;
|
|
4095
4095
|
}, re;
|
|
4096
|
-
}(),
|
|
4096
|
+
}(), D = d.toByteArray(), q = 0; q < D.length; q += 1) m.writeByte(D[q]);
|
|
4097
4097
|
return m.flush(), "data:image/gif;base64," + m;
|
|
4098
4098
|
};
|
|
4099
4099
|
return L;
|
|
4100
4100
|
}();
|
|
4101
|
-
|
|
4101
|
+
O.stringToBytesFuncs["UTF-8"] = function(L) {
|
|
4102
4102
|
return function(k) {
|
|
4103
4103
|
for (var E = [], M = 0; M < k.length; M++) {
|
|
4104
4104
|
var T = k.charCodeAt(M);
|
|
@@ -4107,7 +4107,7 @@ function L_() {
|
|
|
4107
4107
|
return E;
|
|
4108
4108
|
}(L);
|
|
4109
4109
|
}, (C = typeof (b = function() {
|
|
4110
|
-
return
|
|
4110
|
+
return O;
|
|
4111
4111
|
}) == "function" ? b.apply(c, []) : b) === void 0 || (f.exports = C);
|
|
4112
4112
|
} }, s = {};
|
|
4113
4113
|
function l(f) {
|
|
@@ -4139,7 +4139,7 @@ function L_() {
|
|
|
4139
4139
|
p.download = v, p.href = A, document.body.appendChild(p), p.click(), document.body.removeChild(p);
|
|
4140
4140
|
}
|
|
4141
4141
|
const C = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
|
|
4142
|
-
class
|
|
4142
|
+
class O {
|
|
4143
4143
|
constructor({ svg: v, type: p, window: _ }) {
|
|
4144
4144
|
this._svg = v, this._type = p, this._window = _;
|
|
4145
4145
|
}
|
|
@@ -4167,9 +4167,9 @@ function L_() {
|
|
|
4167
4167
|
m.call(this, { x: v, y: p, size: _, getNeighbor: d });
|
|
4168
4168
|
}
|
|
4169
4169
|
_rotateFigure({ x: v, y: p, size: _, rotation: d = 0, draw: m }) {
|
|
4170
|
-
var
|
|
4170
|
+
var D;
|
|
4171
4171
|
const q = v + _ / 2, V = p + _ / 2;
|
|
4172
|
-
m(), (
|
|
4172
|
+
m(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * d / Math.PI},${q},${V})`);
|
|
4173
4173
|
}
|
|
4174
4174
|
_basicDot(v) {
|
|
4175
4175
|
const { size: p, x: _, y: d } = v;
|
|
@@ -4214,42 +4214,42 @@ function L_() {
|
|
|
4214
4214
|
this._basicSquare({ x: v, y: p, size: _, rotation: 0 });
|
|
4215
4215
|
}
|
|
4216
4216
|
_drawRounded({ x: v, y: p, size: _, getNeighbor: d }) {
|
|
4217
|
-
const m = d ? +d(-1, 0) : 0,
|
|
4218
|
-
if (ue !== 0) if (ue > 2 || m &&
|
|
4217
|
+
const m = d ? +d(-1, 0) : 0, D = d ? +d(1, 0) : 0, q = d ? +d(0, -1) : 0, V = d ? +d(0, 1) : 0, ue = m + D + q + V;
|
|
4218
|
+
if (ue !== 0) if (ue > 2 || m && D || q && V) this._basicSquare({ x: v, y: p, size: _, rotation: 0 });
|
|
4219
4219
|
else {
|
|
4220
4220
|
if (ue === 2) {
|
|
4221
4221
|
let he = 0;
|
|
4222
|
-
return m && q ? he = Math.PI / 2 : q &&
|
|
4222
|
+
return m && q ? he = Math.PI / 2 : q && D ? he = Math.PI : D && V && (he = -Math.PI / 2), void this._basicCornerRounded({ x: v, y: p, size: _, rotation: he });
|
|
4223
4223
|
}
|
|
4224
4224
|
if (ue === 1) {
|
|
4225
4225
|
let he = 0;
|
|
4226
|
-
return q ? he = Math.PI / 2 :
|
|
4226
|
+
return q ? he = Math.PI / 2 : D ? he = Math.PI : V && (he = -Math.PI / 2), void this._basicSideRounded({ x: v, y: p, size: _, rotation: he });
|
|
4227
4227
|
}
|
|
4228
4228
|
}
|
|
4229
4229
|
else this._basicDot({ x: v, y: p, size: _, rotation: 0 });
|
|
4230
4230
|
}
|
|
4231
4231
|
_drawExtraRounded({ x: v, y: p, size: _, getNeighbor: d }) {
|
|
4232
|
-
const m = d ? +d(-1, 0) : 0,
|
|
4233
|
-
if (ue !== 0) if (ue > 2 || m &&
|
|
4232
|
+
const m = d ? +d(-1, 0) : 0, D = d ? +d(1, 0) : 0, q = d ? +d(0, -1) : 0, V = d ? +d(0, 1) : 0, ue = m + D + q + V;
|
|
4233
|
+
if (ue !== 0) if (ue > 2 || m && D || q && V) this._basicSquare({ x: v, y: p, size: _, rotation: 0 });
|
|
4234
4234
|
else {
|
|
4235
4235
|
if (ue === 2) {
|
|
4236
4236
|
let he = 0;
|
|
4237
|
-
return m && q ? he = Math.PI / 2 : q &&
|
|
4237
|
+
return m && q ? he = Math.PI / 2 : q && D ? he = Math.PI : D && V && (he = -Math.PI / 2), void this._basicCornerExtraRounded({ x: v, y: p, size: _, rotation: he });
|
|
4238
4238
|
}
|
|
4239
4239
|
if (ue === 1) {
|
|
4240
4240
|
let he = 0;
|
|
4241
|
-
return q ? he = Math.PI / 2 :
|
|
4241
|
+
return q ? he = Math.PI / 2 : D ? he = Math.PI : V && (he = -Math.PI / 2), void this._basicSideRounded({ x: v, y: p, size: _, rotation: he });
|
|
4242
4242
|
}
|
|
4243
4243
|
}
|
|
4244
4244
|
else this._basicDot({ x: v, y: p, size: _, rotation: 0 });
|
|
4245
4245
|
}
|
|
4246
4246
|
_drawClassy({ x: v, y: p, size: _, getNeighbor: d }) {
|
|
4247
|
-
const m = d ? +d(-1, 0) : 0,
|
|
4248
|
-
m +
|
|
4247
|
+
const m = d ? +d(-1, 0) : 0, D = d ? +d(1, 0) : 0, q = d ? +d(0, -1) : 0, V = d ? +d(0, 1) : 0;
|
|
4248
|
+
m + D + q + V !== 0 ? m || q ? D || V ? this._basicSquare({ x: v, y: p, size: _, rotation: 0 }) : this._basicCornerRounded({ x: v, y: p, size: _, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: v, y: p, size: _, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: v, y: p, size: _, rotation: Math.PI / 2 });
|
|
4249
4249
|
}
|
|
4250
4250
|
_drawClassyRounded({ x: v, y: p, size: _, getNeighbor: d }) {
|
|
4251
|
-
const m = d ? +d(-1, 0) : 0,
|
|
4252
|
-
m +
|
|
4251
|
+
const m = d ? +d(-1, 0) : 0, D = d ? +d(1, 0) : 0, q = d ? +d(0, -1) : 0, V = d ? +d(0, 1) : 0;
|
|
4252
|
+
m + D + q + V !== 0 ? m || q ? D || V ? this._basicSquare({ x: v, y: p, size: _, rotation: 0 }) : this._basicCornerExtraRounded({ x: v, y: p, size: _, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: v, y: p, size: _, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: v, y: p, size: _, rotation: Math.PI / 2 });
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
4255
|
const L = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, k = Object.values(L);
|
|
@@ -4272,9 +4272,9 @@ function L_() {
|
|
|
4272
4272
|
m.call(this, { x: v, y: p, size: _, rotation: d });
|
|
4273
4273
|
}
|
|
4274
4274
|
_rotateFigure({ x: v, y: p, size: _, rotation: d = 0, draw: m }) {
|
|
4275
|
-
var
|
|
4275
|
+
var D;
|
|
4276
4276
|
const q = v + _ / 2, V = p + _ / 2;
|
|
4277
|
-
m(), (
|
|
4277
|
+
m(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * d / Math.PI},${q},${V})`);
|
|
4278
4278
|
}
|
|
4279
4279
|
_basicDot(v) {
|
|
4280
4280
|
const { size: p, x: _, y: d } = v, m = p / 7;
|
|
@@ -4314,9 +4314,9 @@ function L_() {
|
|
|
4314
4314
|
m = this._type === M.square ? this._drawSquare : this._drawDot, m.call(this, { x: v, y: p, size: _, rotation: d });
|
|
4315
4315
|
}
|
|
4316
4316
|
_rotateFigure({ x: v, y: p, size: _, rotation: d = 0, draw: m }) {
|
|
4317
|
-
var
|
|
4317
|
+
var D;
|
|
4318
4318
|
const q = v + _ / 2, V = p + _ / 2;
|
|
4319
|
-
m(), (
|
|
4319
|
+
m(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * d / Math.PI},${q},${V})`);
|
|
4320
4320
|
}
|
|
4321
4321
|
_basicDot(v) {
|
|
4322
4322
|
const { size: p, x: _, y: d } = v;
|
|
@@ -4353,11 +4353,11 @@ function L_() {
|
|
|
4353
4353
|
}
|
|
4354
4354
|
async drawQR(v) {
|
|
4355
4355
|
const p = v.getModuleCount(), _ = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, d = this._options.shape === K ? _ / Math.sqrt(2) : _, m = this._roundSize(d / p);
|
|
4356
|
-
let
|
|
4356
|
+
let D = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
|
|
4357
4357
|
if (this._qr = v, this._options.image) {
|
|
4358
4358
|
if (await this.loadImage(), !this._image) return;
|
|
4359
4359
|
const { imageOptions: q, qrOptions: V } = this._options, ue = q.imageSize * C[V.errorCorrectionLevel], he = Math.floor(ue * p * p);
|
|
4360
|
-
|
|
4360
|
+
D = function({ originalHeight: me, originalWidth: re, maxHiddenDots: le, maxHiddenAxisDots: xe, dotSize: we }) {
|
|
4361
4361
|
const j = { x: 0, y: 0 }, W = { x: 0, y: 0 };
|
|
4362
4362
|
if (me <= 0 || re <= 0 || le <= 0 || we <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
|
|
4363
4363
|
const F = me / re;
|
|
@@ -4366,18 +4366,18 @@ function L_() {
|
|
|
4366
4366
|
}
|
|
4367
4367
|
this.drawBackground(), this.drawDots((q, V) => {
|
|
4368
4368
|
var ue, he, me, re, le, xe;
|
|
4369
|
-
return !(this._options.imageOptions.hideBackgroundDots && q >= (p -
|
|
4370
|
-
}), this.drawCorners(), this._options.image && await this.drawImage({ width:
|
|
4369
|
+
return !(this._options.imageOptions.hideBackgroundDots && q >= (p - D.hideYDots) / 2 && q < (p + D.hideYDots) / 2 && V >= (p - D.hideXDots) / 2 && V < (p + D.hideXDots) / 2 || !((ue = X[q]) === null || ue === void 0) && ue[V] || !((he = X[q - p + 7]) === null || he === void 0) && he[V] || !((me = X[q]) === null || me === void 0) && me[V - p + 7] || !((re = Q[q]) === null || re === void 0) && re[V] || !((le = Q[q - p + 7]) === null || le === void 0) && le[V] || !((xe = Q[q]) === null || xe === void 0) && xe[V - p + 7]);
|
|
4370
|
+
}), this.drawCorners(), this._options.image && await this.drawImage({ width: D.width, height: D.height, count: p, dotSize: m });
|
|
4371
4371
|
}
|
|
4372
4372
|
drawBackground() {
|
|
4373
4373
|
var v, p, _;
|
|
4374
4374
|
const d = this._element, m = this._options;
|
|
4375
4375
|
if (d) {
|
|
4376
|
-
const
|
|
4376
|
+
const D = (v = m.backgroundOptions) === null || v === void 0 ? void 0 : v.gradient, q = (p = m.backgroundOptions) === null || p === void 0 ? void 0 : p.color;
|
|
4377
4377
|
let V = m.height, ue = m.width;
|
|
4378
|
-
if (
|
|
4378
|
+
if (D || q) {
|
|
4379
4379
|
const he = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
4380
|
-
this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((_ = m.backgroundOptions) === null || _ === void 0) && _.round && (V = ue = Math.min(m.width, m.height), he.setAttribute("rx", String(V / 2 * m.backgroundOptions.round))), he.setAttribute("x", String(this._roundSize((m.width - ue) / 2))), he.setAttribute("y", String(this._roundSize((m.height - V) / 2))), he.setAttribute("width", String(ue)), he.setAttribute("height", String(V)), this._backgroundClipPath.appendChild(he), this._createColor({ options:
|
|
4380
|
+
this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((_ = m.backgroundOptions) === null || _ === void 0) && _.round && (V = ue = Math.min(m.width, m.height), he.setAttribute("rx", String(V / 2 * m.backgroundOptions.round))), he.setAttribute("x", String(this._roundSize((m.width - ue) / 2))), he.setAttribute("y", String(this._roundSize((m.height - V) / 2))), he.setAttribute("width", String(ue)), he.setAttribute("height", String(V)), this._backgroundClipPath.appendChild(he), this._createColor({ options: D, color: q, additionalRotation: 0, x: 0, y: 0, height: m.height, width: m.width, name: `background-color-${this._instanceId}` });
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
4383
4383
|
}
|
|
@@ -4386,11 +4386,11 @@ function L_() {
|
|
|
4386
4386
|
if (!this._qr) throw "QR code is not defined";
|
|
4387
4387
|
const d = this._options, m = this._qr.getModuleCount();
|
|
4388
4388
|
if (m > d.width || m > d.height) throw "The canvas is too small.";
|
|
4389
|
-
const
|
|
4389
|
+
const D = Math.min(d.width, d.height) - 2 * d.margin, q = d.shape === K ? D / Math.sqrt(2) : D, V = this._roundSize(q / m), ue = this._roundSize((d.width - m * V) / 2), he = this._roundSize((d.height - m * V) / 2), me = new O({ svg: this._element, type: d.dotsOptions.type, window: this._window });
|
|
4390
4390
|
this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (p = d.dotsOptions) === null || p === void 0 ? void 0 : p.gradient, color: d.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: d.height, width: d.width, name: `dot-color-${this._instanceId}` });
|
|
4391
4391
|
for (let re = 0; re < m; re++) for (let le = 0; le < m; le++) v && !v(re, le) || !((_ = this._qr) === null || _ === void 0) && _.isDark(re, le) && (me.draw(ue + le * V, he + re * V, V, (xe, we) => !(le + xe < 0 || re + we < 0 || le + xe >= m || re + we >= m) && !(v && !v(re + we, le + xe)) && !!this._qr && this._qr.isDark(re + we, le + xe)), me._element && this._dotsClipPath && this._dotsClipPath.appendChild(me._element));
|
|
4392
4392
|
if (d.shape === K) {
|
|
4393
|
-
const re = this._roundSize((
|
|
4393
|
+
const re = this._roundSize((D / V - m) / 2), le = m + 2 * re, xe = ue - re * V, we = he - re * V, j = [], W = this._roundSize(le / 2);
|
|
4394
4394
|
for (let F = 0; F < le; F++) {
|
|
4395
4395
|
j[F] = [];
|
|
4396
4396
|
for (let Z = 0; Z < le; Z++) F >= re - 1 && F <= le - re && Z >= re - 1 && Z <= le - re || Math.sqrt((F - W) * (F - W) + (Z - W) * (Z - W)) > W ? j[F][Z] = 0 : j[F][Z] = this._qr.isDark(Z - 2 * re < 0 ? Z : Z >= m ? Z - 2 * re : Z - re, F - 2 * re < 0 ? F : F >= m ? F - 2 * re : F - re) ? 1 : 0;
|
|
@@ -4405,27 +4405,27 @@ function L_() {
|
|
|
4405
4405
|
if (!this._qr) throw "QR code is not defined";
|
|
4406
4406
|
const v = this._element, p = this._options;
|
|
4407
4407
|
if (!v) throw "Element code is not defined";
|
|
4408
|
-
const _ = this._qr.getModuleCount(), d = Math.min(p.width, p.height) - 2 * p.margin, m = p.shape === K ? d / Math.sqrt(2) : d,
|
|
4408
|
+
const _ = this._qr.getModuleCount(), d = Math.min(p.width, p.height) - 2 * p.margin, m = p.shape === K ? d / Math.sqrt(2) : d, D = this._roundSize(m / _), q = 7 * D, V = 3 * D, ue = this._roundSize((p.width - _ * D) / 2), he = this._roundSize((p.height - _ * D) / 2);
|
|
4409
4409
|
[[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([me, re, le]) => {
|
|
4410
4410
|
var xe, we, j, W, F, Z, ae, Ae, u, h, w, P, U, ee;
|
|
4411
|
-
const _e = ue + me *
|
|
4411
|
+
const _e = ue + me * D * (_ - 7), De = he + re * D * (_ - 7);
|
|
4412
4412
|
let Te = this._dotsClipPath, be = this._dotsClipPath;
|
|
4413
4413
|
if ((!((xe = p.cornersSquareOptions) === null || xe === void 0) && xe.gradient || !((we = p.cornersSquareOptions) === null || we === void 0) && we.color) && (Te = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Te.setAttribute("id", `clip-path-corners-square-color-${me}-${re}-${this._instanceId}`), this._defs.appendChild(Te), this._cornersSquareClipPath = this._cornersDotClipPath = be = Te, this._createColor({ options: (j = p.cornersSquareOptions) === null || j === void 0 ? void 0 : j.gradient, color: (W = p.cornersSquareOptions) === null || W === void 0 ? void 0 : W.color, additionalRotation: le, x: _e, y: De, height: q, width: q, name: `corners-square-color-${me}-${re}-${this._instanceId}` })), ((F = p.cornersSquareOptions) === null || F === void 0 ? void 0 : F.type) && k.includes(p.cornersSquareOptions.type)) {
|
|
4414
4414
|
const Ee = new E({ svg: this._element, type: p.cornersSquareOptions.type, window: this._window });
|
|
4415
4415
|
Ee.draw(_e, De, q, le), Ee._element && Te && Te.appendChild(Ee._element);
|
|
4416
4416
|
} else {
|
|
4417
|
-
const Ee = new
|
|
4418
|
-
for (let Ie = 0; Ie < X.length; Ie++) for (let Me = 0; Me < X[Ie].length; Me++) !((ae = X[Ie]) === null || ae === void 0) && ae[Me] && (Ee.draw(_e + Me *
|
|
4417
|
+
const Ee = new O({ svg: this._element, type: ((Z = p.cornersSquareOptions) === null || Z === void 0 ? void 0 : Z.type) || p.dotsOptions.type, window: this._window });
|
|
4418
|
+
for (let Ie = 0; Ie < X.length; Ie++) for (let Me = 0; Me < X[Ie].length; Me++) !((ae = X[Ie]) === null || ae === void 0) && ae[Me] && (Ee.draw(_e + Me * D, De + Ie * D, D, (Ge, Ye) => {
|
|
4419
4419
|
var Xe;
|
|
4420
4420
|
return !!(!((Xe = X[Ie + Ye]) === null || Xe === void 0) && Xe[Me + Ge]);
|
|
4421
4421
|
}), Ee._element && Te && Te.appendChild(Ee._element));
|
|
4422
4422
|
}
|
|
4423
|
-
if ((!((Ae = p.cornersDotOptions) === null || Ae === void 0) && Ae.gradient || !((u = p.cornersDotOptions) === null || u === void 0) && u.color) && (be = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), be.setAttribute("id", `clip-path-corners-dot-color-${me}-${re}-${this._instanceId}`), this._defs.appendChild(be), this._cornersDotClipPath = be, this._createColor({ options: (h = p.cornersDotOptions) === null || h === void 0 ? void 0 : h.gradient, color: (w = p.cornersDotOptions) === null || w === void 0 ? void 0 : w.color, additionalRotation: le, x: _e + 2 *
|
|
4423
|
+
if ((!((Ae = p.cornersDotOptions) === null || Ae === void 0) && Ae.gradient || !((u = p.cornersDotOptions) === null || u === void 0) && u.color) && (be = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), be.setAttribute("id", `clip-path-corners-dot-color-${me}-${re}-${this._instanceId}`), this._defs.appendChild(be), this._cornersDotClipPath = be, this._createColor({ options: (h = p.cornersDotOptions) === null || h === void 0 ? void 0 : h.gradient, color: (w = p.cornersDotOptions) === null || w === void 0 ? void 0 : w.color, additionalRotation: le, x: _e + 2 * D, y: De + 2 * D, height: V, width: V, name: `corners-dot-color-${me}-${re}-${this._instanceId}` })), ((P = p.cornersDotOptions) === null || P === void 0 ? void 0 : P.type) && T.includes(p.cornersDotOptions.type)) {
|
|
4424
4424
|
const Ee = new N({ svg: this._element, type: p.cornersDotOptions.type, window: this._window });
|
|
4425
|
-
Ee.draw(_e + 2 *
|
|
4425
|
+
Ee.draw(_e + 2 * D, De + 2 * D, V, le), Ee._element && be && be.appendChild(Ee._element);
|
|
4426
4426
|
} else {
|
|
4427
|
-
const Ee = new
|
|
4428
|
-
for (let Ie = 0; Ie < Q.length; Ie++) for (let Me = 0; Me < Q[Ie].length; Me++) !((ee = Q[Ie]) === null || ee === void 0) && ee[Me] && (Ee.draw(_e + Me *
|
|
4427
|
+
const Ee = new O({ svg: this._element, type: ((U = p.cornersDotOptions) === null || U === void 0 ? void 0 : U.type) || p.dotsOptions.type, window: this._window });
|
|
4428
|
+
for (let Ie = 0; Ie < Q.length; Ie++) for (let Me = 0; Me < Q[Ie].length; Me++) !((ee = Q[Ie]) === null || ee === void 0) && ee[Me] && (Ee.draw(_e + Me * D, De + Ie * D, D, (Ge, Ye) => {
|
|
4429
4429
|
var Xe;
|
|
4430
4430
|
return !!(!((Xe = Q[Ie + Ye]) === null || Xe === void 0) && Xe[Me + Ge]);
|
|
4431
4431
|
}), Ee._element && be && be.appendChild(Ee._element));
|
|
@@ -4438,9 +4438,9 @@ function L_() {
|
|
|
4438
4438
|
const d = this._options;
|
|
4439
4439
|
if (!d.image) return p("Image is not defined");
|
|
4440
4440
|
if (!((_ = d.nodeCanvas) === null || _ === void 0) && _.loadImage) d.nodeCanvas.loadImage(d.image).then((m) => {
|
|
4441
|
-
var
|
|
4441
|
+
var D, q;
|
|
4442
4442
|
if (this._image = m, this._options.imageOptions.saveAsBlob) {
|
|
4443
|
-
const V = (
|
|
4443
|
+
const V = (D = d.nodeCanvas) === null || D === void 0 ? void 0 : D.createCanvas(this._image.width, this._image.height);
|
|
4444
4444
|
(q = V == null ? void 0 : V.getContext("2d")) === null || q === void 0 || q.drawImage(m, 0, 0), this._imageUri = V == null ? void 0 : V.toDataURL();
|
|
4445
4445
|
}
|
|
4446
4446
|
v();
|
|
@@ -4448,7 +4448,7 @@ function L_() {
|
|
|
4448
4448
|
else {
|
|
4449
4449
|
const m = new this._window.Image();
|
|
4450
4450
|
typeof d.imageOptions.crossOrigin == "string" && (m.crossOrigin = d.imageOptions.crossOrigin), this._image = m, m.onload = async () => {
|
|
4451
|
-
this._options.imageOptions.saveAsBlob && (this._imageUri = await async function(
|
|
4451
|
+
this._options.imageOptions.saveAsBlob && (this._imageUri = await async function(D, q) {
|
|
4452
4452
|
return new Promise((V) => {
|
|
4453
4453
|
const ue = new q.XMLHttpRequest();
|
|
4454
4454
|
ue.onload = function() {
|
|
@@ -4456,7 +4456,7 @@ function L_() {
|
|
|
4456
4456
|
he.onloadend = function() {
|
|
4457
4457
|
V(he.result);
|
|
4458
4458
|
}, he.readAsDataURL(ue.response);
|
|
4459
|
-
}, ue.open("GET",
|
|
4459
|
+
}, ue.open("GET", D), ue.responseType = "blob", ue.send();
|
|
4460
4460
|
});
|
|
4461
4461
|
}(d.image || "", this._window)), v();
|
|
4462
4462
|
}, m.src = d.image;
|
|
@@ -4464,18 +4464,18 @@ function L_() {
|
|
|
4464
4464
|
});
|
|
4465
4465
|
}
|
|
4466
4466
|
async drawImage({ width: v, height: p, count: _, dotSize: d }) {
|
|
4467
|
-
const m = this._options,
|
|
4467
|
+
const m = this._options, D = this._roundSize((m.width - _ * d) / 2), q = this._roundSize((m.height - _ * d) / 2), V = D + this._roundSize(m.imageOptions.margin + (_ * d - v) / 2), ue = q + this._roundSize(m.imageOptions.margin + (_ * d - p) / 2), he = v - 2 * m.imageOptions.margin, me = p - 2 * m.imageOptions.margin, re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
|
|
4468
4468
|
re.setAttribute("href", this._imageUri || ""), re.setAttribute("x", String(V)), re.setAttribute("y", String(ue)), re.setAttribute("width", `${he}px`), re.setAttribute("height", `${me}px`), this._element.appendChild(re);
|
|
4469
4469
|
}
|
|
4470
|
-
_createColor({ options: v, color: p, additionalRotation: _, x: d, y: m, height:
|
|
4471
|
-
const ue = q >
|
|
4472
|
-
if (he.setAttribute("x", String(d)), he.setAttribute("y", String(m)), he.setAttribute("height", String(
|
|
4470
|
+
_createColor({ options: v, color: p, additionalRotation: _, x: d, y: m, height: D, width: q, name: V }) {
|
|
4471
|
+
const ue = q > D ? q : D, he = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
4472
|
+
if (he.setAttribute("x", String(d)), he.setAttribute("y", String(m)), he.setAttribute("height", String(D)), he.setAttribute("width", String(q)), he.setAttribute("clip-path", `url('#clip-path-${V}')`), v) {
|
|
4473
4473
|
let me;
|
|
4474
|
-
if (v.type === "radial") me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), me.setAttribute("id", V), me.setAttribute("gradientUnits", "userSpaceOnUse"), me.setAttribute("fx", String(d + q / 2)), me.setAttribute("fy", String(m +
|
|
4474
|
+
if (v.type === "radial") me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), me.setAttribute("id", V), me.setAttribute("gradientUnits", "userSpaceOnUse"), me.setAttribute("fx", String(d + q / 2)), me.setAttribute("fy", String(m + D / 2)), me.setAttribute("cx", String(d + q / 2)), me.setAttribute("cy", String(m + D / 2)), me.setAttribute("r", String(ue / 2));
|
|
4475
4475
|
else {
|
|
4476
4476
|
const re = ((v.rotation || 0) + _) % (2 * Math.PI), le = (re + 2 * Math.PI) % (2 * Math.PI);
|
|
4477
|
-
let xe = d + q / 2, we = m +
|
|
4478
|
-
le >= 0 && le <= 0.25 * Math.PI || le > 1.75 * Math.PI && le <= 2 * Math.PI ? (xe -= q / 2, we -=
|
|
4477
|
+
let xe = d + q / 2, we = m + D / 2, j = d + q / 2, W = m + D / 2;
|
|
4478
|
+
le >= 0 && le <= 0.25 * Math.PI || le > 1.75 * Math.PI && le <= 2 * Math.PI ? (xe -= q / 2, we -= D / 2 * Math.tan(re), j += q / 2, W += D / 2 * Math.tan(re)) : le > 0.25 * Math.PI && le <= 0.75 * Math.PI ? (we -= D / 2, xe -= q / 2 / Math.tan(re), W += D / 2, j += q / 2 / Math.tan(re)) : le > 0.75 * Math.PI && le <= 1.25 * Math.PI ? (xe += q / 2, we += D / 2 * Math.tan(re), j -= q / 2, W -= D / 2 * Math.tan(re)) : le > 1.25 * Math.PI && le <= 1.75 * Math.PI && (we += D / 2, xe += q / 2 / Math.tan(re), W -= D / 2, j -= q / 2 / Math.tan(re)), me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), me.setAttribute("id", V), me.setAttribute("gradientUnits", "userSpaceOnUse"), me.setAttribute("x1", String(Math.round(xe))), me.setAttribute("y1", String(Math.round(we))), me.setAttribute("x2", String(Math.round(j))), me.setAttribute("y2", String(Math.round(W)));
|
|
4479
4479
|
}
|
|
4480
4480
|
v.colorStops.forEach(({ offset: re, color: le }) => {
|
|
4481
4481
|
const xe = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
|
|
@@ -4526,7 +4526,7 @@ function L_() {
|
|
|
4526
4526
|
this._qr && (!((v = this._options.nodeCanvas) === null || v === void 0) && v.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (p = this._svgDrawingPromise) === null || p === void 0 ? void 0 : p.then(() => {
|
|
4527
4527
|
var _;
|
|
4528
4528
|
if (!this._svg) return;
|
|
4529
|
-
const d = this._svg, m = new this._window.XMLSerializer().serializeToString(d),
|
|
4529
|
+
const d = this._svg, m = new this._window.XMLSerializer().serializeToString(d), D = btoa(m), q = `data:${Ce("svg")};base64,${D}`;
|
|
4530
4530
|
if (!((_ = this._options.nodeCanvas) === null || _ === void 0) && _.loadImage) return this._options.nodeCanvas.loadImage(q).then((V) => {
|
|
4531
4531
|
var ue, he;
|
|
4532
4532
|
V.width = this._options.width, V.height = this._options.height, (he = (ue = this._nodeCanvas) === null || ue === void 0 ? void 0 : ue.getContext("2d")) === null || he === void 0 || he.drawImage(V, 0, 0);
|
|
@@ -4836,7 +4836,7 @@ function J_() {
|
|
|
4836
4836
|
(function(r, s) {
|
|
4837
4837
|
i.exports = s();
|
|
4838
4838
|
})(Q_, function() {
|
|
4839
|
-
var r = 1e3, s = 6e4, l = 36e5, g = "millisecond", f = "second", c = "minute", b = "hour", C = "day",
|
|
4839
|
+
var r = 1e3, s = 6e4, l = 36e5, g = "millisecond", f = "second", c = "minute", b = "hour", C = "day", O = "week", L = "month", k = "quarter", E = "year", M = "date", T = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(B) {
|
|
4840
4840
|
var I = ["th", "st", "nd", "rd"], A = B % 100;
|
|
4841
4841
|
return "[" + B + (I[(A - 20) % 10] || I[A] || I[0]) + "]";
|
|
4842
4842
|
} }, Q = function(B, I, A) {
|
|
@@ -4852,7 +4852,7 @@ function J_() {
|
|
|
4852
4852
|
}, a: function(B) {
|
|
4853
4853
|
return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
|
|
4854
4854
|
}, p: function(B) {
|
|
4855
|
-
return { M: L, y: E, w:
|
|
4855
|
+
return { M: L, y: E, w: O, d: C, D: M, h: b, m: c, s: f, ms: g, Q: k }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
4856
4856
|
}, u: function(B) {
|
|
4857
4857
|
return B === void 0;
|
|
4858
4858
|
} }, Y = "en", ce = {};
|
|
@@ -4894,8 +4894,8 @@ function J_() {
|
|
|
4894
4894
|
if (typeof p == "string" && !/Z$/i.test(p)) {
|
|
4895
4895
|
var d = p.match(N);
|
|
4896
4896
|
if (d) {
|
|
4897
|
-
var m = d[2] - 1 || 0,
|
|
4898
|
-
return _ ? new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0,
|
|
4897
|
+
var m = d[2] - 1 || 0, D = (d[7] || "0").substring(0, 3);
|
|
4898
|
+
return _ ? new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, D)) : new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, D);
|
|
4899
4899
|
}
|
|
4900
4900
|
}
|
|
4901
4901
|
return new Date(p);
|
|
@@ -4924,7 +4924,7 @@ function J_() {
|
|
|
4924
4924
|
var p = this, _ = !!ne.u(v) || v, d = ne.p(A), m = function(le, xe) {
|
|
4925
4925
|
var we = ne.w(p.$u ? Date.UTC(p.$y, xe, le) : new Date(p.$y, xe, le), p);
|
|
4926
4926
|
return _ ? we : we.endOf(C);
|
|
4927
|
-
},
|
|
4927
|
+
}, D = function(le, xe) {
|
|
4928
4928
|
return ne.w(p.toDate()[le].apply(p.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(xe)), p);
|
|
4929
4929
|
}, q = this.$W, V = this.$M, ue = this.$D, he = "set" + (this.$u ? "UTC" : "");
|
|
4930
4930
|
switch (d) {
|
|
@@ -4932,29 +4932,29 @@ function J_() {
|
|
|
4932
4932
|
return _ ? m(1, 0) : m(31, 11);
|
|
4933
4933
|
case L:
|
|
4934
4934
|
return _ ? m(1, V) : m(0, V + 1);
|
|
4935
|
-
case
|
|
4935
|
+
case O:
|
|
4936
4936
|
var me = this.$locale().weekStart || 0, re = (q < me ? q + 7 : q) - me;
|
|
4937
4937
|
return m(_ ? ue - re : ue + (6 - re), V);
|
|
4938
4938
|
case C:
|
|
4939
4939
|
case M:
|
|
4940
|
-
return
|
|
4940
|
+
return D(he + "Hours", 0);
|
|
4941
4941
|
case b:
|
|
4942
|
-
return
|
|
4942
|
+
return D(he + "Minutes", 1);
|
|
4943
4943
|
case c:
|
|
4944
|
-
return
|
|
4944
|
+
return D(he + "Seconds", 2);
|
|
4945
4945
|
case f:
|
|
4946
|
-
return
|
|
4946
|
+
return D(he + "Milliseconds", 3);
|
|
4947
4947
|
default:
|
|
4948
4948
|
return this.clone();
|
|
4949
4949
|
}
|
|
4950
4950
|
}, I.endOf = function(A) {
|
|
4951
4951
|
return this.startOf(A, !1);
|
|
4952
4952
|
}, I.$set = function(A, v) {
|
|
4953
|
-
var p, _ = ne.p(A), d = "set" + (this.$u ? "UTC" : ""), m = (p = {}, p[C] = d + "Date", p[M] = d + "Date", p[L] = d + "Month", p[E] = d + "FullYear", p[b] = d + "Hours", p[c] = d + "Minutes", p[f] = d + "Seconds", p[g] = d + "Milliseconds", p)[_],
|
|
4953
|
+
var p, _ = ne.p(A), d = "set" + (this.$u ? "UTC" : ""), m = (p = {}, p[C] = d + "Date", p[M] = d + "Date", p[L] = d + "Month", p[E] = d + "FullYear", p[b] = d + "Hours", p[c] = d + "Minutes", p[f] = d + "Seconds", p[g] = d + "Milliseconds", p)[_], D = _ === C ? this.$D + (v - this.$W) : v;
|
|
4954
4954
|
if (_ === L || _ === E) {
|
|
4955
4955
|
var q = this.clone().set(M, 1);
|
|
4956
|
-
q.$d[m](
|
|
4957
|
-
} else m && this.$d[m](
|
|
4956
|
+
q.$d[m](D), q.init(), this.$d = q.set(M, Math.min(this.$D, q.daysInMonth())).$d;
|
|
4957
|
+
} else m && this.$d[m](D);
|
|
4958
4958
|
return this.init(), this;
|
|
4959
4959
|
}, I.set = function(A, v) {
|
|
4960
4960
|
return this.clone().$set(A, v);
|
|
@@ -4970,15 +4970,15 @@ function J_() {
|
|
|
4970
4970
|
if (d === L) return this.set(L, this.$M + A);
|
|
4971
4971
|
if (d === E) return this.set(E, this.$y + A);
|
|
4972
4972
|
if (d === C) return m(1);
|
|
4973
|
-
if (d ===
|
|
4974
|
-
var
|
|
4973
|
+
if (d === O) return m(7);
|
|
4974
|
+
var D = (p = {}, p[c] = s, p[b] = l, p[f] = r, p)[d] || 1, q = this.$d.getTime() + A * D;
|
|
4975
4975
|
return ne.w(q, this);
|
|
4976
4976
|
}, I.subtract = function(A, v) {
|
|
4977
4977
|
return this.add(-1 * A, v);
|
|
4978
4978
|
}, I.format = function(A) {
|
|
4979
4979
|
var v = this, p = this.$locale();
|
|
4980
4980
|
if (!this.isValid()) return p.invalidDate || T;
|
|
4981
|
-
var _ = A || "YYYY-MM-DDTHH:mm:ssZ", d = ne.z(this), m = this.$H,
|
|
4981
|
+
var _ = A || "YYYY-MM-DDTHH:mm:ssZ", d = ne.z(this), m = this.$H, D = this.$m, q = this.$M, V = p.weekdays, ue = p.months, he = p.meridiem, me = function(xe, we, j, W) {
|
|
4982
4982
|
return xe && (xe[we] || xe(v, _)) || j[we].slice(0, W);
|
|
4983
4983
|
}, re = function(xe) {
|
|
4984
4984
|
return ne.s(m % 12 || 12, xe, "0");
|
|
@@ -5022,13 +5022,13 @@ function J_() {
|
|
|
5022
5022
|
case "hh":
|
|
5023
5023
|
return re(2);
|
|
5024
5024
|
case "a":
|
|
5025
|
-
return le(m,
|
|
5025
|
+
return le(m, D, !0);
|
|
5026
5026
|
case "A":
|
|
5027
|
-
return le(m,
|
|
5027
|
+
return le(m, D, !1);
|
|
5028
5028
|
case "m":
|
|
5029
|
-
return String(
|
|
5029
|
+
return String(D);
|
|
5030
5030
|
case "mm":
|
|
5031
|
-
return ne.s(
|
|
5031
|
+
return ne.s(D, 2, "0");
|
|
5032
5032
|
case "s":
|
|
5033
5033
|
return String(v.$s);
|
|
5034
5034
|
case "ss":
|
|
@@ -5044,8 +5044,8 @@ function J_() {
|
|
|
5044
5044
|
}, I.utcOffset = function() {
|
|
5045
5045
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5046
5046
|
}, I.diff = function(A, v, p) {
|
|
5047
|
-
var _, d = this, m = ne.p(v),
|
|
5048
|
-
return ne.m(d,
|
|
5047
|
+
var _, d = this, m = ne.p(v), D = de(A), q = (D.utcOffset() - this.utcOffset()) * s, V = this - D, ue = function() {
|
|
5048
|
+
return ne.m(d, D);
|
|
5049
5049
|
};
|
|
5050
5050
|
switch (m) {
|
|
5051
5051
|
case E:
|
|
@@ -5057,7 +5057,7 @@ function J_() {
|
|
|
5057
5057
|
case k:
|
|
5058
5058
|
_ = ue() / 3;
|
|
5059
5059
|
break;
|
|
5060
|
-
case
|
|
5060
|
+
case O:
|
|
5061
5061
|
_ = (V - q) / 6048e5;
|
|
5062
5062
|
break;
|
|
5063
5063
|
case C:
|
|
@@ -5176,11 +5176,11 @@ function Od({
|
|
|
5176
5176
|
cellIndex: l,
|
|
5177
5177
|
size: g
|
|
5178
5178
|
}) {
|
|
5179
|
-
var b, C,
|
|
5179
|
+
var b, C, O;
|
|
5180
5180
|
const f = eb({ direction: t, size: g, rowIndex: s, cellIndex: l, levelIndex: r });
|
|
5181
5181
|
if (!f)
|
|
5182
5182
|
return;
|
|
5183
|
-
const c = (
|
|
5183
|
+
const c = (O = (C = (b = i.current) == null ? void 0 : b[f.levelIndex]) == null ? void 0 : C[f.rowIndex]) == null ? void 0 : O[f.cellIndex];
|
|
5184
5184
|
c && (c.disabled || c.getAttribute("data-hidden") || c.getAttribute("data-outside") ? Od({
|
|
5185
5185
|
controlsRef: i,
|
|
5186
5186
|
direction: t,
|
|
@@ -5258,8 +5258,8 @@ function ob() {
|
|
|
5258
5258
|
}
|
|
5259
5259
|
var Y = T[3], ce = Y === 24 ? 0 : Y, J = T[0] + "-" + T[1] + "-" + T[2] + " " + ce + ":" + T[4] + ":" + T[5] + ":000", te = +k;
|
|
5260
5260
|
return (f.utc(J).valueOf() - (te -= te % 1e3)) / 6e4;
|
|
5261
|
-
},
|
|
5262
|
-
|
|
5261
|
+
}, O = g.prototype;
|
|
5262
|
+
O.tz = function(k, E) {
|
|
5263
5263
|
k === void 0 && (k = c);
|
|
5264
5264
|
var M, T = this.utcOffset(), N = this.toDate(), K = N.toLocaleString("en-US", { timeZone: k }), X = Math.round((N - new Date(K)) / 1e3 / 60), Q = 15 * -Math.round(N.getTimezoneOffset() / 15) - X;
|
|
5265
5265
|
if (!Number(Q)) M = this.utcOffset(0, E);
|
|
@@ -5268,14 +5268,14 @@ function ob() {
|
|
|
5268
5268
|
M = M.add(T - se, "minute");
|
|
5269
5269
|
}
|
|
5270
5270
|
return M.$x.$timezone = k, M;
|
|
5271
|
-
},
|
|
5271
|
+
}, O.offsetName = function(k) {
|
|
5272
5272
|
var E = this.$x.$timezone || f.tz.guess(), M = b(this.valueOf(), E, { timeZoneName: k }).find(function(T) {
|
|
5273
5273
|
return T.type.toLowerCase() === "timezonename";
|
|
5274
5274
|
});
|
|
5275
5275
|
return M && M.value;
|
|
5276
5276
|
};
|
|
5277
|
-
var L =
|
|
5278
|
-
|
|
5277
|
+
var L = O.startOf;
|
|
5278
|
+
O.startOf = function(k, E) {
|
|
5279
5279
|
if (!this.$x || !this.$x.$timezone) return L.call(this, k, E);
|
|
5280
5280
|
var M = f(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
5281
5281
|
return L.call(M, k, E).tz(this.$x.$timezone, !0);
|
|
@@ -5322,12 +5322,12 @@ function lb() {
|
|
|
5322
5322
|
b.parse = function(T) {
|
|
5323
5323
|
T.utc && (this.$u = !0), this.$utils().u(T.$offset) || (this.$offset = T.$offset), C.call(this, T);
|
|
5324
5324
|
};
|
|
5325
|
-
var
|
|
5325
|
+
var O = b.init;
|
|
5326
5326
|
b.init = function() {
|
|
5327
5327
|
if (this.$u) {
|
|
5328
5328
|
var T = this.$d;
|
|
5329
5329
|
this.$y = T.getUTCFullYear(), this.$M = T.getUTCMonth(), this.$D = T.getUTCDate(), this.$W = T.getUTCDay(), this.$H = T.getUTCHours(), this.$m = T.getUTCMinutes(), this.$s = T.getUTCSeconds(), this.$ms = T.getUTCMilliseconds();
|
|
5330
|
-
} else
|
|
5330
|
+
} else O.call(this);
|
|
5331
5331
|
};
|
|
5332
5332
|
var L = b.utcOffset;
|
|
5333
5333
|
b.utcOffset = function(T, N) {
|
|
@@ -5464,7 +5464,7 @@ const vb = {}, mb = Po((i, { size: t }) => ({
|
|
|
5464
5464
|
unstyled: c,
|
|
5465
5465
|
vars: b,
|
|
5466
5466
|
date: C,
|
|
5467
|
-
disabled:
|
|
5467
|
+
disabled: O,
|
|
5468
5468
|
__staticSelector: L,
|
|
5469
5469
|
weekend: k,
|
|
5470
5470
|
outside: E,
|
|
@@ -5496,17 +5496,17 @@ const vb = {}, mb = Po((i, { size: t }) => ({
|
|
|
5496
5496
|
...J("day", { style: Q ? { display: "none" } : void 0 }),
|
|
5497
5497
|
component: se ? "div" : "button",
|
|
5498
5498
|
ref: t,
|
|
5499
|
-
disabled:
|
|
5499
|
+
disabled: O,
|
|
5500
5500
|
"data-today": Le(C).isSame(ri("add", /* @__PURE__ */ new Date(), te.getTimezone()), "day") || void 0,
|
|
5501
5501
|
"data-hidden": Q || void 0,
|
|
5502
5502
|
"data-highlight-today": Y || void 0,
|
|
5503
|
-
"data-disabled":
|
|
5504
|
-
"data-weekend": !
|
|
5505
|
-
"data-outside": !
|
|
5506
|
-
"data-selected": !
|
|
5507
|
-
"data-in-range": N && !
|
|
5508
|
-
"data-first-in-range": K && !
|
|
5509
|
-
"data-last-in-range": X && !
|
|
5503
|
+
"data-disabled": O || void 0,
|
|
5504
|
+
"data-weekend": !O && !E && k || void 0,
|
|
5505
|
+
"data-outside": !O && E || void 0,
|
|
5506
|
+
"data-selected": !O && M || void 0,
|
|
5507
|
+
"data-in-range": N && !O || void 0,
|
|
5508
|
+
"data-first-in-range": K && !O || void 0,
|
|
5509
|
+
"data-last-in-range": X && !O || void 0,
|
|
5510
5510
|
"data-static": se || void 0,
|
|
5511
5511
|
unstyled: c,
|
|
5512
5512
|
...ce,
|
|
@@ -5541,7 +5541,7 @@ const wb = {}, _b = Po((i, { size: t }) => ({
|
|
|
5541
5541
|
unstyled: c,
|
|
5542
5542
|
vars: b,
|
|
5543
5543
|
locale: C,
|
|
5544
|
-
firstDayOfWeek:
|
|
5544
|
+
firstDayOfWeek: O,
|
|
5545
5545
|
weekdayFormat: L,
|
|
5546
5546
|
cellComponent: k = "th",
|
|
5547
5547
|
__staticSelector: E,
|
|
@@ -5562,7 +5562,7 @@ const wb = {}, _b = Po((i, { size: t }) => ({
|
|
|
5562
5562
|
}), K = xn(), X = yb({
|
|
5563
5563
|
locale: K.getLocale(C),
|
|
5564
5564
|
format: L,
|
|
5565
|
-
firstDayOfWeek: K.getFirstDayOfWeek(
|
|
5565
|
+
firstDayOfWeek: K.getFirstDayOfWeek(O)
|
|
5566
5566
|
}).map((Q, se) => /* @__PURE__ */ R.jsx(k, { ...N("weekday"), children: Q }, se));
|
|
5567
5567
|
return /* @__PURE__ */ R.jsxs(zt, { component: "tr", ref: t, ...N("weekdaysRow"), ...T, children: [
|
|
5568
5568
|
M && /* @__PURE__ */ R.jsx(k, { ...N("weekday"), children: "#" }),
|
|
@@ -5591,13 +5591,13 @@ function Sb({
|
|
|
5591
5591
|
}) {
|
|
5592
5592
|
const s = Le(i).subtract(Le(i).date() - 1, "day"), l = Le(s).startOf("day"), g = l.toDate(), f = l.add(+l.daysInMonth() - 1, "day").toDate(), c = bb(f, t), b = xb(g, t), C = [];
|
|
5593
5593
|
for (; b <= c; ) {
|
|
5594
|
-
const
|
|
5594
|
+
const O = [];
|
|
5595
5595
|
for (let L = 0; L < 7; L += 1)
|
|
5596
|
-
|
|
5597
|
-
C.push(
|
|
5596
|
+
O.push(new Date(b)), b.setDate(b.getDate() + 1);
|
|
5597
|
+
C.push(O);
|
|
5598
5598
|
}
|
|
5599
5599
|
if (r && C.length < 6) {
|
|
5600
|
-
const
|
|
5600
|
+
const O = C[C.length - 1], L = O[O.length - 1], k = new Date(L);
|
|
5601
5601
|
for (k.setDate(k.getDate() + 1); C.length < 6; ) {
|
|
5602
5602
|
const E = [];
|
|
5603
5603
|
for (let M = 0; M < 7; M += 1)
|
|
@@ -5615,17 +5615,17 @@ function Ld(i, t) {
|
|
|
5615
5615
|
}
|
|
5616
5616
|
function Cb(i, t, r, s, l, g, f) {
|
|
5617
5617
|
const c = i.flat().filter(
|
|
5618
|
-
(
|
|
5618
|
+
(O) => {
|
|
5619
5619
|
var L;
|
|
5620
|
-
return Ld(
|
|
5620
|
+
return Ld(O, r) && Md(O, t) && !(l != null && l(O)) && !((L = s == null ? void 0 : s(O)) != null && L.disabled) && (!g || Le(O).isSame(Le(f), "month"));
|
|
5621
5621
|
}
|
|
5622
|
-
), b = c.find((
|
|
5622
|
+
), b = c.find((O) => {
|
|
5623
5623
|
var L;
|
|
5624
|
-
return (L = s == null ? void 0 : s(
|
|
5624
|
+
return (L = s == null ? void 0 : s(O)) == null ? void 0 : L.selected;
|
|
5625
5625
|
});
|
|
5626
5626
|
if (b)
|
|
5627
5627
|
return b;
|
|
5628
|
-
const C = c.find((
|
|
5628
|
+
const C = c.find((O) => Le().isSame(O, "date"));
|
|
5629
5629
|
return C || c[0];
|
|
5630
5630
|
}
|
|
5631
5631
|
var qs = { exports: {} }, Ab = qs.exports, Hh;
|
|
@@ -5643,15 +5643,15 @@ function Ob() {
|
|
|
5643
5643
|
return f(this).year();
|
|
5644
5644
|
}, c.isoWeek = function(C) {
|
|
5645
5645
|
if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), r);
|
|
5646
|
-
var
|
|
5646
|
+
var O, L, k, E, M = f(this), T = (O = this.isoWeekYear(), L = this.$u, k = (L ? g.utc : g)().year(O).startOf("year"), E = 4 - k.isoWeekday(), k.isoWeekday() > 4 && (E += 7), k.add(E, r));
|
|
5647
5647
|
return M.diff(T, "week") + 1;
|
|
5648
5648
|
}, c.isoWeekday = function(C) {
|
|
5649
5649
|
return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
|
|
5650
5650
|
};
|
|
5651
5651
|
var b = c.startOf;
|
|
5652
|
-
c.startOf = function(C,
|
|
5653
|
-
var L = this.$utils(), k = !!L.u(
|
|
5654
|
-
return L.p(C) === "isoweek" ? k ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : b.bind(this)(C,
|
|
5652
|
+
c.startOf = function(C, O) {
|
|
5653
|
+
var L = this.$utils(), k = !!L.u(O) || O;
|
|
5654
|
+
return L.p(C) === "isoweek" ? k ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : b.bind(this)(C, O);
|
|
5655
5655
|
};
|
|
5656
5656
|
};
|
|
5657
5657
|
});
|
|
@@ -5681,7 +5681,7 @@ const Eb = {
|
|
|
5681
5681
|
unstyled: c,
|
|
5682
5682
|
vars: b,
|
|
5683
5683
|
__staticSelector: C,
|
|
5684
|
-
locale:
|
|
5684
|
+
locale: O,
|
|
5685
5685
|
firstDayOfWeek: L,
|
|
5686
5686
|
weekdayFormat: k,
|
|
5687
5687
|
month: E,
|
|
@@ -5722,7 +5722,7 @@ const Eb = {
|
|
|
5722
5722
|
month: E,
|
|
5723
5723
|
firstDayOfWeek: d.getFirstDayOfWeek(L),
|
|
5724
5724
|
consistentWeeks: d.consistentWeeks
|
|
5725
|
-
}),
|
|
5725
|
+
}), D = Cb(
|
|
5726
5726
|
m,
|
|
5727
5727
|
K,
|
|
5728
5728
|
X,
|
|
@@ -5736,7 +5736,7 @@ const Eb = {
|
|
|
5736
5736
|
props: r
|
|
5737
5737
|
}), ue = m.map((he, me) => {
|
|
5738
5738
|
const re = he.map((le, xe) => {
|
|
5739
|
-
const we = !Le(le).isSame(Le(E), "month"), j = (ce == null ? void 0 : ce(le)) || Le(le).locale(
|
|
5739
|
+
const we = !Le(le).isSame(Le(E), "month"), j = (ce == null ? void 0 : ce(le)) || Le(le).locale(O || d.locale).format("D MMMM YYYY"), W = T == null ? void 0 : T(le), F = Le(le).isSame(D, "date");
|
|
5740
5740
|
return /* @__PURE__ */ R.jsx(
|
|
5741
5741
|
"td",
|
|
5742
5742
|
{
|
|
@@ -5795,7 +5795,7 @@ const Eb = {
|
|
|
5795
5795
|
El,
|
|
5796
5796
|
{
|
|
5797
5797
|
__staticSelector: C || "Month",
|
|
5798
|
-
locale:
|
|
5798
|
+
locale: O,
|
|
5799
5799
|
firstDayOfWeek: L,
|
|
5800
5800
|
weekdayFormat: k,
|
|
5801
5801
|
size: I,
|
|
@@ -5825,7 +5825,7 @@ const Lb = {}, kb = Po((i, { size: t }) => ({
|
|
|
5825
5825
|
unstyled: c,
|
|
5826
5826
|
vars: b,
|
|
5827
5827
|
firstInRange: C,
|
|
5828
|
-
lastInRange:
|
|
5828
|
+
lastInRange: O,
|
|
5829
5829
|
inRange: L,
|
|
5830
5830
|
__staticSelector: k,
|
|
5831
5831
|
selected: E,
|
|
@@ -5855,7 +5855,7 @@ const Lb = {}, kb = Po((i, { size: t }) => ({
|
|
|
5855
5855
|
"data-disabled": M || void 0,
|
|
5856
5856
|
"data-in-range": L && !M && !E || void 0,
|
|
5857
5857
|
"data-first-in-range": C && !M || void 0,
|
|
5858
|
-
"data-last-in-range":
|
|
5858
|
+
"data-last-in-range": O && !M || void 0,
|
|
5859
5859
|
disabled: M,
|
|
5860
5860
|
...T
|
|
5861
5861
|
}
|
|
@@ -5905,7 +5905,7 @@ const $b = {
|
|
|
5905
5905
|
unstyled: c,
|
|
5906
5906
|
vars: b,
|
|
5907
5907
|
decade: C,
|
|
5908
|
-
yearsListFormat:
|
|
5908
|
+
yearsListFormat: O,
|
|
5909
5909
|
locale: L,
|
|
5910
5910
|
minDate: k,
|
|
5911
5911
|
maxDate: E,
|
|
@@ -5950,23 +5950,23 @@ const $b = {
|
|
|
5950
5950
|
ref: (m) => N == null ? void 0 : N(I, p, m),
|
|
5951
5951
|
..._,
|
|
5952
5952
|
onKeyDown: (m) => {
|
|
5953
|
-
var
|
|
5954
|
-
(
|
|
5953
|
+
var D;
|
|
5954
|
+
(D = _ == null ? void 0 : _.onKeyDown) == null || D.call(_, m), K == null || K(m, { rowIndex: I, cellIndex: p, date: v });
|
|
5955
5955
|
},
|
|
5956
5956
|
onClick: (m) => {
|
|
5957
|
-
var
|
|
5958
|
-
(
|
|
5957
|
+
var D;
|
|
5958
|
+
(D = _ == null ? void 0 : _.onClick) == null || D.call(_, m), X == null || X(m, v);
|
|
5959
5959
|
},
|
|
5960
5960
|
onMouseEnter: (m) => {
|
|
5961
|
-
var
|
|
5962
|
-
(
|
|
5961
|
+
var D;
|
|
5962
|
+
(D = _ == null ? void 0 : _.onMouseEnter) == null || D.call(_, m), Q == null || Q(m, v);
|
|
5963
5963
|
},
|
|
5964
5964
|
onMouseDown: (m) => {
|
|
5965
|
-
var
|
|
5966
|
-
(
|
|
5965
|
+
var D;
|
|
5966
|
+
(D = _ == null ? void 0 : _.onMouseDown) == null || D.call(_, m), se && m.preventDefault();
|
|
5967
5967
|
},
|
|
5968
5968
|
tabIndex: se || !d ? -1 : 0,
|
|
5969
|
-
children: Le(v).locale(de.getLocale(L)).format(
|
|
5969
|
+
children: Le(v).locale(de.getLocale(L)).format(O)
|
|
5970
5970
|
}
|
|
5971
5971
|
)
|
|
5972
5972
|
},
|
|
@@ -6018,7 +6018,7 @@ const jb = {
|
|
|
6018
6018
|
unstyled: c,
|
|
6019
6019
|
vars: b,
|
|
6020
6020
|
__staticSelector: C,
|
|
6021
|
-
year:
|
|
6021
|
+
year: O,
|
|
6022
6022
|
monthsListFormat: L,
|
|
6023
6023
|
locale: k,
|
|
6024
6024
|
minDate: E,
|
|
@@ -6044,7 +6044,7 @@ const jb = {
|
|
|
6044
6044
|
unstyled: c,
|
|
6045
6045
|
vars: b,
|
|
6046
6046
|
rootSelector: "monthsList"
|
|
6047
|
-
}), de = xn(), ne = Nb(
|
|
6047
|
+
}), de = xn(), ne = Nb(O), Se = Pb(ne, E, M, T), Ce = ne.map((B, I) => {
|
|
6048
6048
|
const A = B.map((v, p) => {
|
|
6049
6049
|
const _ = T == null ? void 0 : T(v), d = Le(v).isSame(Se, "month");
|
|
6050
6050
|
return /* @__PURE__ */ R.jsx(
|
|
@@ -6064,20 +6064,20 @@ const jb = {
|
|
|
6064
6064
|
ref: (m) => N == null ? void 0 : N(I, p, m),
|
|
6065
6065
|
..._,
|
|
6066
6066
|
onKeyDown: (m) => {
|
|
6067
|
-
var
|
|
6068
|
-
(
|
|
6067
|
+
var D;
|
|
6068
|
+
(D = _ == null ? void 0 : _.onKeyDown) == null || D.call(_, m), K == null || K(m, { rowIndex: I, cellIndex: p, date: v });
|
|
6069
6069
|
},
|
|
6070
6070
|
onClick: (m) => {
|
|
6071
|
-
var
|
|
6072
|
-
(
|
|
6071
|
+
var D;
|
|
6072
|
+
(D = _ == null ? void 0 : _.onClick) == null || D.call(_, m), X == null || X(m, v);
|
|
6073
6073
|
},
|
|
6074
6074
|
onMouseEnter: (m) => {
|
|
6075
|
-
var
|
|
6076
|
-
(
|
|
6075
|
+
var D;
|
|
6076
|
+
(D = _ == null ? void 0 : _.onMouseEnter) == null || D.call(_, m), Q == null || Q(m, v);
|
|
6077
6077
|
},
|
|
6078
6078
|
onMouseDown: (m) => {
|
|
6079
|
-
var
|
|
6080
|
-
(
|
|
6079
|
+
var D;
|
|
6080
|
+
(D = _ == null ? void 0 : _.onMouseDown) == null || D.call(_, m), se && m.preventDefault();
|
|
6081
6081
|
},
|
|
6082
6082
|
tabIndex: se || !d ? -1 : 0,
|
|
6083
6083
|
children: Le(v).locale(de.getLocale(k)).format(L)
|
|
@@ -6114,7 +6114,7 @@ const Bb = {
|
|
|
6114
6114
|
unstyled: c,
|
|
6115
6115
|
vars: b,
|
|
6116
6116
|
nextIcon: C,
|
|
6117
|
-
previousIcon:
|
|
6117
|
+
previousIcon: O,
|
|
6118
6118
|
nextLabel: L,
|
|
6119
6119
|
previousLabel: k,
|
|
6120
6120
|
onNext: E,
|
|
@@ -6158,7 +6158,7 @@ const Bb = {
|
|
|
6158
6158
|
"data-disabled": X || void 0,
|
|
6159
6159
|
tabIndex: te || X ? -1 : 0,
|
|
6160
6160
|
"data-mantine-stop-propagation": oe || void 0,
|
|
6161
|
-
children:
|
|
6161
|
+
children: O || /* @__PURE__ */ R.jsx(
|
|
6162
6162
|
Yf,
|
|
6163
6163
|
{
|
|
6164
6164
|
...ne("calendarHeaderControlIcon"),
|
|
@@ -6227,7 +6227,7 @@ const Fb = {
|
|
|
6227
6227
|
yearsListFormat: c,
|
|
6228
6228
|
getYearControlProps: b,
|
|
6229
6229
|
__getControlRef: C,
|
|
6230
|
-
__onControlKeyDown:
|
|
6230
|
+
__onControlKeyDown: O,
|
|
6231
6231
|
__onControlClick: L,
|
|
6232
6232
|
__onControlMouseEnter: k,
|
|
6233
6233
|
withCellSpacing: E,
|
|
@@ -6259,7 +6259,7 @@ const Fb = {
|
|
|
6259
6259
|
styles: Se,
|
|
6260
6260
|
unstyled: Ce,
|
|
6261
6261
|
size: A
|
|
6262
|
-
},
|
|
6262
|
+
}, D = typeof Y == "boolean" ? Y : f ? !Le(d).endOf("year").isBefore(f) : !1, q = typeof ce == "boolean" ? ce : g ? !Le(_).startOf("year").isAfter(g) : !1, V = (ue, he) => Le(ue).locale(l || p.locale).format(he);
|
|
6263
6263
|
return /* @__PURE__ */ R.jsxs(zt, { "data-decade-level": !0, size: A, ref: t, ...v, children: [
|
|
6264
6264
|
/* @__PURE__ */ R.jsx(
|
|
6265
6265
|
$r,
|
|
@@ -6276,7 +6276,7 @@ const Fb = {
|
|
|
6276
6276
|
previousLabel: X,
|
|
6277
6277
|
onNext: Q,
|
|
6278
6278
|
onPrevious: se,
|
|
6279
|
-
nextDisabled:
|
|
6279
|
+
nextDisabled: D,
|
|
6280
6280
|
previousDisabled: q,
|
|
6281
6281
|
hasNextLevel: !1,
|
|
6282
6282
|
levelControlAriaLabel: J,
|
|
@@ -6295,7 +6295,7 @@ const Fb = {
|
|
|
6295
6295
|
yearsListFormat: c,
|
|
6296
6296
|
getYearControlProps: b,
|
|
6297
6297
|
__getControlRef: C,
|
|
6298
|
-
__onControlKeyDown:
|
|
6298
|
+
__onControlKeyDown: O,
|
|
6299
6299
|
__onControlClick: L,
|
|
6300
6300
|
__onControlMouseEnter: k,
|
|
6301
6301
|
__preventFocus: M,
|
|
@@ -6320,7 +6320,7 @@ const Wb = {
|
|
|
6320
6320
|
monthsListFormat: c,
|
|
6321
6321
|
getMonthControlProps: b,
|
|
6322
6322
|
__getControlRef: C,
|
|
6323
|
-
__onControlKeyDown:
|
|
6323
|
+
__onControlKeyDown: O,
|
|
6324
6324
|
__onControlClick: L,
|
|
6325
6325
|
__onControlMouseEnter: k,
|
|
6326
6326
|
withCellSpacing: E,
|
|
@@ -6354,7 +6354,7 @@ const Wb = {
|
|
|
6354
6354
|
styles: v,
|
|
6355
6355
|
unstyled: p,
|
|
6356
6356
|
size: I
|
|
6357
|
-
},
|
|
6357
|
+
}, D = typeof ce == "boolean" ? ce : f ? !Le(s).endOf("year").isBefore(f) : !1, q = typeof J == "boolean" ? J : g ? !Le(s).startOf("year").isAfter(g) : !1;
|
|
6358
6358
|
return /* @__PURE__ */ R.jsxs(zt, { "data-year-level": !0, size: I, ref: t, ..._, children: [
|
|
6359
6359
|
/* @__PURE__ */ R.jsx(
|
|
6360
6360
|
$r,
|
|
@@ -6369,7 +6369,7 @@ const Wb = {
|
|
|
6369
6369
|
onNext: Q,
|
|
6370
6370
|
onPrevious: se,
|
|
6371
6371
|
onLevelClick: Y,
|
|
6372
|
-
nextDisabled:
|
|
6372
|
+
nextDisabled: D,
|
|
6373
6373
|
previousDisabled: q,
|
|
6374
6374
|
hasNextLevel: te,
|
|
6375
6375
|
levelControlAriaLabel: oe,
|
|
@@ -6388,7 +6388,7 @@ const Wb = {
|
|
|
6388
6388
|
monthsListFormat: c,
|
|
6389
6389
|
getMonthControlProps: b,
|
|
6390
6390
|
__getControlRef: C,
|
|
6391
|
-
__onControlKeyDown:
|
|
6391
|
+
__onControlKeyDown: O,
|
|
6392
6392
|
__onControlClick: L,
|
|
6393
6393
|
__onControlMouseEnter: k,
|
|
6394
6394
|
__preventFocus: M,
|
|
@@ -6413,7 +6413,7 @@ const Yb = {
|
|
|
6413
6413
|
weekendDays: c,
|
|
6414
6414
|
getDayProps: b,
|
|
6415
6415
|
excludeDate: C,
|
|
6416
|
-
minDate:
|
|
6416
|
+
minDate: O,
|
|
6417
6417
|
maxDate: L,
|
|
6418
6418
|
renderDay: k,
|
|
6419
6419
|
hideOutsideDates: E,
|
|
@@ -6443,7 +6443,7 @@ const Yb = {
|
|
|
6443
6443
|
withNext: d,
|
|
6444
6444
|
withPrevious: m,
|
|
6445
6445
|
// Other props
|
|
6446
|
-
monthLabelFormat:
|
|
6446
|
+
monthLabelFormat: D,
|
|
6447
6447
|
classNames: q,
|
|
6448
6448
|
styles: V,
|
|
6449
6449
|
unstyled: ue,
|
|
@@ -6457,12 +6457,12 @@ const Yb = {
|
|
|
6457
6457
|
styles: V,
|
|
6458
6458
|
unstyled: ue,
|
|
6459
6459
|
size: me
|
|
6460
|
-
}, j = typeof A == "boolean" ? A : L ? !Le(s).endOf("month").isBefore(L) : !1, W = typeof v == "boolean" ? v :
|
|
6460
|
+
}, j = typeof A == "boolean" ? A : L ? !Le(s).endOf("month").isBefore(L) : !1, W = typeof v == "boolean" ? v : O ? !Le(s).startOf("month").isAfter(O) : !1;
|
|
6461
6461
|
return /* @__PURE__ */ R.jsxs(zt, { "data-month-level": !0, size: me, ref: t, ...le, children: [
|
|
6462
6462
|
/* @__PURE__ */ R.jsx(
|
|
6463
6463
|
$r,
|
|
6464
6464
|
{
|
|
6465
|
-
label: typeof
|
|
6465
|
+
label: typeof D == "function" ? D(s) : Le(s).locale(l || xe.locale).format(D),
|
|
6466
6466
|
__preventFocus: J,
|
|
6467
6467
|
__stopPropagation: te,
|
|
6468
6468
|
nextIcon: oe,
|
|
@@ -6491,7 +6491,7 @@ const Yb = {
|
|
|
6491
6491
|
weekendDays: c,
|
|
6492
6492
|
getDayProps: b,
|
|
6493
6493
|
excludeDate: C,
|
|
6494
|
-
minDate:
|
|
6494
|
+
minDate: O,
|
|
6495
6495
|
maxDate: L,
|
|
6496
6496
|
renderDay: k,
|
|
6497
6497
|
hideOutsideDates: E,
|
|
@@ -6516,7 +6516,7 @@ ca.classes = { ...ia.classes, ...$r.classes };
|
|
|
6516
6516
|
ca.displayName = "@mantine/dates/MonthLevel";
|
|
6517
6517
|
var zd = { levelsGroup: "m_30b26e33" };
|
|
6518
6518
|
const qb = {}, Pr = It((i, t) => {
|
|
6519
|
-
const r = Ft("LevelsGroup", qb, i), { classNames: s, className: l, style: g, styles: f, unstyled: c, vars: b, __staticSelector: C, ...
|
|
6519
|
+
const r = Ft("LevelsGroup", qb, i), { classNames: s, className: l, style: g, styles: f, unstyled: c, vars: b, __staticSelector: C, ...O } = r, L = Ir({
|
|
6520
6520
|
name: C || "LevelsGroup",
|
|
6521
6521
|
classes: zd,
|
|
6522
6522
|
props: r,
|
|
@@ -6528,7 +6528,7 @@ const qb = {}, Pr = It((i, t) => {
|
|
|
6528
6528
|
vars: b,
|
|
6529
6529
|
rootSelector: "levelsGroup"
|
|
6530
6530
|
});
|
|
6531
|
-
return /* @__PURE__ */ R.jsx(zt, { ref: t, ...L("levelsGroup"), ...
|
|
6531
|
+
return /* @__PURE__ */ R.jsx(zt, { ref: t, ...L("levelsGroup"), ...O });
|
|
6532
6532
|
});
|
|
6533
6533
|
Pr.classes = zd;
|
|
6534
6534
|
Pr.displayName = "@mantine/dates/LevelsGroup";
|
|
@@ -6544,7 +6544,7 @@ const Hb = {
|
|
|
6544
6544
|
yearsListFormat: c,
|
|
6545
6545
|
getYearControlProps: b,
|
|
6546
6546
|
__onControlClick: C,
|
|
6547
|
-
__onControlMouseEnter:
|
|
6547
|
+
__onControlMouseEnter: O,
|
|
6548
6548
|
withCellSpacing: L,
|
|
6549
6549
|
// CalendarHeader settings
|
|
6550
6550
|
__preventFocus: k,
|
|
@@ -6580,16 +6580,16 @@ const Hb = {
|
|
|
6580
6580
|
withPrevious: _ === 0,
|
|
6581
6581
|
decadeLabelFormat: Se,
|
|
6582
6582
|
__onControlClick: C,
|
|
6583
|
-
__onControlMouseEnter:
|
|
6584
|
-
__onControlKeyDown: (m,
|
|
6583
|
+
__onControlMouseEnter: O,
|
|
6584
|
+
__onControlKeyDown: (m, D) => Rl({
|
|
6585
6585
|
levelIndex: _,
|
|
6586
|
-
rowIndex:
|
|
6587
|
-
cellIndex:
|
|
6586
|
+
rowIndex: D.rowIndex,
|
|
6587
|
+
cellIndex: D.cellIndex,
|
|
6588
6588
|
event: m,
|
|
6589
6589
|
controlsRef: A
|
|
6590
6590
|
}),
|
|
6591
|
-
__getControlRef: (m,
|
|
6592
|
-
Array.isArray(A.current[_]) || (A.current[_] = []), Array.isArray(A.current[_][m]) || (A.current[_][m] = []), A.current[_][m][
|
|
6591
|
+
__getControlRef: (m, D, q) => {
|
|
6592
|
+
Array.isArray(A.current[_]) || (A.current[_] = []), Array.isArray(A.current[_][m]) || (A.current[_][m] = []), A.current[_][m][D] = q;
|
|
6593
6593
|
},
|
|
6594
6594
|
levelControlAriaLabel: typeof ne == "function" ? ne(d) : ne,
|
|
6595
6595
|
locale: l,
|
|
@@ -6643,7 +6643,7 @@ const Gb = {
|
|
|
6643
6643
|
monthsListFormat: c,
|
|
6644
6644
|
getMonthControlProps: b,
|
|
6645
6645
|
__onControlClick: C,
|
|
6646
|
-
__onControlMouseEnter:
|
|
6646
|
+
__onControlMouseEnter: O,
|
|
6647
6647
|
withCellSpacing: L,
|
|
6648
6648
|
// CalendarHeader settings
|
|
6649
6649
|
__preventFocus: k,
|
|
@@ -6670,19 +6670,19 @@ const Gb = {
|
|
|
6670
6670
|
vars: A,
|
|
6671
6671
|
...v
|
|
6672
6672
|
} = r, p = Un([]), _ = Array(Se).fill(0).map((d, m) => {
|
|
6673
|
-
const
|
|
6673
|
+
const D = Le(s).add(m, "years").toDate();
|
|
6674
6674
|
return /* @__PURE__ */ R.jsx(
|
|
6675
6675
|
la,
|
|
6676
6676
|
{
|
|
6677
6677
|
size: I,
|
|
6678
6678
|
monthsListFormat: c,
|
|
6679
|
-
year:
|
|
6679
|
+
year: D,
|
|
6680
6680
|
withNext: m === Se - 1,
|
|
6681
6681
|
withPrevious: m === 0,
|
|
6682
6682
|
yearLabelFormat: B,
|
|
6683
6683
|
__stopPropagation: ne,
|
|
6684
6684
|
__onControlClick: C,
|
|
6685
|
-
__onControlMouseEnter:
|
|
6685
|
+
__onControlMouseEnter: O,
|
|
6686
6686
|
__onControlKeyDown: (q, V) => Rl({
|
|
6687
6687
|
levelIndex: m,
|
|
6688
6688
|
rowIndex: V.rowIndex,
|
|
@@ -6693,7 +6693,7 @@ const Gb = {
|
|
|
6693
6693
|
__getControlRef: (q, V, ue) => {
|
|
6694
6694
|
Array.isArray(p.current[m]) || (p.current[m] = []), Array.isArray(p.current[m][q]) || (p.current[m][q] = []), p.current[m][q][V] = ue;
|
|
6695
6695
|
},
|
|
6696
|
-
levelControlAriaLabel: typeof Ce == "function" ? Ce(
|
|
6696
|
+
levelControlAriaLabel: typeof Ce == "function" ? Ce(D) : Ce,
|
|
6697
6697
|
locale: l,
|
|
6698
6698
|
minDate: g,
|
|
6699
6699
|
maxDate: f,
|
|
@@ -6746,7 +6746,7 @@ const Vb = {
|
|
|
6746
6746
|
weekendDays: c,
|
|
6747
6747
|
getDayProps: b,
|
|
6748
6748
|
excludeDate: C,
|
|
6749
|
-
minDate:
|
|
6749
|
+
minDate: O,
|
|
6750
6750
|
maxDate: L,
|
|
6751
6751
|
renderDay: k,
|
|
6752
6752
|
hideOutsideDates: E,
|
|
@@ -6776,7 +6776,7 @@ const Vb = {
|
|
|
6776
6776
|
numberOfColumns: _,
|
|
6777
6777
|
levelControlAriaLabel: d,
|
|
6778
6778
|
monthLabelFormat: m,
|
|
6779
|
-
__staticSelector:
|
|
6779
|
+
__staticSelector: D,
|
|
6780
6780
|
__stopPropagation: q,
|
|
6781
6781
|
size: V,
|
|
6782
6782
|
static: ue,
|
|
@@ -6811,7 +6811,7 @@ const Vb = {
|
|
|
6811
6811
|
weekendDays: c,
|
|
6812
6812
|
getDayProps: b,
|
|
6813
6813
|
excludeDate: C,
|
|
6814
|
-
minDate:
|
|
6814
|
+
minDate: O,
|
|
6815
6815
|
maxDate: L,
|
|
6816
6816
|
renderDay: k,
|
|
6817
6817
|
hideOutsideDates: E,
|
|
@@ -6831,7 +6831,7 @@ const Vb = {
|
|
|
6831
6831
|
classNames: A,
|
|
6832
6832
|
styles: v,
|
|
6833
6833
|
unstyled: p,
|
|
6834
|
-
__staticSelector:
|
|
6834
|
+
__staticSelector: D || "MonthLevelGroup",
|
|
6835
6835
|
size: V,
|
|
6836
6836
|
static: ue,
|
|
6837
6837
|
withCellSpacing: X,
|
|
@@ -6846,7 +6846,7 @@ const Vb = {
|
|
|
6846
6846
|
{
|
|
6847
6847
|
classNames: A,
|
|
6848
6848
|
styles: v,
|
|
6849
|
-
__staticSelector:
|
|
6849
|
+
__staticSelector: D || "MonthLevelGroup",
|
|
6850
6850
|
ref: t,
|
|
6851
6851
|
size: V,
|
|
6852
6852
|
...me,
|
|
@@ -6872,10 +6872,10 @@ function yl({
|
|
|
6872
6872
|
s == null || s(ri("remove", L, f.getTimezone(), !l));
|
|
6873
6873
|
}
|
|
6874
6874
|
});
|
|
6875
|
-
let
|
|
6875
|
+
let O = c;
|
|
6876
6876
|
if (g.current !== i) {
|
|
6877
6877
|
if (g.current = i, t === void 0)
|
|
6878
|
-
|
|
6878
|
+
O = r !== void 0 ? r : Gh(i), b(O);
|
|
6879
6879
|
else if (process.env.NODE_ENV === "development")
|
|
6880
6880
|
switch (i) {
|
|
6881
6881
|
case "default":
|
|
@@ -6895,7 +6895,7 @@ function yl({
|
|
|
6895
6895
|
break;
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
|
-
return [
|
|
6898
|
+
return [O, b, C];
|
|
6899
6899
|
}
|
|
6900
6900
|
function Vu(i, t) {
|
|
6901
6901
|
return i ? i === "month" ? 0 : i === "year" ? 1 : 2 : t || 0;
|
|
@@ -6927,7 +6927,7 @@ const Kb = {
|
|
|
6927
6927
|
level: c,
|
|
6928
6928
|
onLevelChange: b,
|
|
6929
6929
|
date: C,
|
|
6930
|
-
defaultDate:
|
|
6930
|
+
defaultDate: O,
|
|
6931
6931
|
onDateChange: L,
|
|
6932
6932
|
numberOfColumns: k,
|
|
6933
6933
|
columnsToScroll: E,
|
|
@@ -6956,7 +6956,7 @@ const Kb = {
|
|
|
6956
6956
|
__onDayClick: _,
|
|
6957
6957
|
__onDayMouseEnter: d,
|
|
6958
6958
|
withCellSpacing: m,
|
|
6959
|
-
highlightToday:
|
|
6959
|
+
highlightToday: D,
|
|
6960
6960
|
withWeekNumbers: q,
|
|
6961
6961
|
// YearLevelGroup props
|
|
6962
6962
|
monthsListFormat: V,
|
|
@@ -6998,7 +6998,7 @@ const Kb = {
|
|
|
6998
6998
|
}), [Xe, ft] = yl({
|
|
6999
6999
|
type: "default",
|
|
7000
7000
|
value: C,
|
|
7001
|
-
defaultValue:
|
|
7001
|
+
defaultValue: O,
|
|
7002
7002
|
onChange: L,
|
|
7003
7003
|
applyTimezone: !be
|
|
7004
7004
|
}), bt = {
|
|
@@ -7060,7 +7060,7 @@ const Kb = {
|
|
|
7060
7060
|
__stopPropagation: h,
|
|
7061
7061
|
static: Te,
|
|
7062
7062
|
withCellSpacing: m,
|
|
7063
|
-
highlightToday:
|
|
7063
|
+
highlightToday: D,
|
|
7064
7064
|
withWeekNumbers: q,
|
|
7065
7065
|
...bt
|
|
7066
7066
|
}
|
|
@@ -7141,7 +7141,7 @@ function Qb(i) {
|
|
|
7141
7141
|
previousIcon: c,
|
|
7142
7142
|
date: b,
|
|
7143
7143
|
defaultDate: C,
|
|
7144
|
-
onDateChange:
|
|
7144
|
+
onDateChange: O,
|
|
7145
7145
|
numberOfColumns: L,
|
|
7146
7146
|
columnsToScroll: k,
|
|
7147
7147
|
ariaLabels: E,
|
|
@@ -7170,7 +7170,7 @@ function Qb(i) {
|
|
|
7170
7170
|
excludeDate: _,
|
|
7171
7171
|
renderDay: d,
|
|
7172
7172
|
hideOutsideDates: m,
|
|
7173
|
-
hideWeekdays:
|
|
7173
|
+
hideWeekdays: D,
|
|
7174
7174
|
getDayAriaLabel: q,
|
|
7175
7175
|
monthLabelFormat: V,
|
|
7176
7176
|
// YearLevelGroup props
|
|
@@ -7201,7 +7201,7 @@ function Qb(i) {
|
|
|
7201
7201
|
previousIcon: c,
|
|
7202
7202
|
date: b,
|
|
7203
7203
|
defaultDate: C,
|
|
7204
|
-
onDateChange:
|
|
7204
|
+
onDateChange: O,
|
|
7205
7205
|
numberOfColumns: L,
|
|
7206
7206
|
columnsToScroll: k,
|
|
7207
7207
|
ariaLabels: E,
|
|
@@ -7230,7 +7230,7 @@ function Qb(i) {
|
|
|
7230
7230
|
excludeDate: _,
|
|
7231
7231
|
renderDay: d,
|
|
7232
7232
|
hideOutsideDates: m,
|
|
7233
|
-
hideWeekdays:
|
|
7233
|
+
hideWeekdays: D,
|
|
7234
7234
|
getDayAriaLabel: q,
|
|
7235
7235
|
monthLabelFormat: V,
|
|
7236
7236
|
// YearLevelGroup props
|
|
@@ -7274,7 +7274,7 @@ const ex = {
|
|
|
7274
7274
|
onChange: c,
|
|
7275
7275
|
clearable: b,
|
|
7276
7276
|
clearButtonProps: C,
|
|
7277
|
-
popoverProps:
|
|
7277
|
+
popoverProps: O,
|
|
7278
7278
|
getDayProps: L,
|
|
7279
7279
|
locale: k,
|
|
7280
7280
|
valueFormat: E,
|
|
@@ -7298,7 +7298,7 @@ const ex = {
|
|
|
7298
7298
|
defaultDate: I,
|
|
7299
7299
|
onDateChange: A,
|
|
7300
7300
|
...v
|
|
7301
|
-
} = r, p = Un(null), _ = Un(null), [d, m] = Je(!1), { calendarProps:
|
|
7301
|
+
} = r, p = Un(null), _ = Un(null), [d, m] = Je(!1), { calendarProps: D, others: q } = Qb(v), V = xn(), he = M || ((U) => {
|
|
7302
7302
|
const ee = Le(U, E, V.getLocale(k)).toDate();
|
|
7303
7303
|
return Number.isNaN(ee.getTime()) ? Jb(U, V.getTimezone()) : ee;
|
|
7304
7304
|
}), me = Se !== void 0 ? Se : b, re = (U) => U ? Le(U).locale(V.getLocale(k)).format(E) : "", [le, xe, we] = yl({
|
|
@@ -7371,7 +7371,7 @@ const ex = {
|
|
|
7371
7371
|
disabled: Y,
|
|
7372
7372
|
withRoles: !1,
|
|
7373
7373
|
unstyled: oe,
|
|
7374
|
-
...
|
|
7374
|
+
...O,
|
|
7375
7375
|
children: [
|
|
7376
7376
|
/* @__PURE__ */ R.jsx(To.Target, { children: /* @__PURE__ */ R.jsx(
|
|
7377
7377
|
Ku,
|
|
@@ -7403,7 +7403,7 @@ const ex = {
|
|
|
7403
7403
|
{
|
|
7404
7404
|
__staticSelector: "DateInput",
|
|
7405
7405
|
__timezoneApplied: !0,
|
|
7406
|
-
...
|
|
7406
|
+
...D,
|
|
7407
7407
|
classNames: de,
|
|
7408
7408
|
styles: ne,
|
|
7409
7409
|
unstyled: oe,
|
|
@@ -7435,7 +7435,7 @@ function tx(i) {
|
|
|
7435
7435
|
apiPath: g,
|
|
7436
7436
|
steps: f,
|
|
7437
7437
|
onCreated: c
|
|
7438
|
-
} = i, [b, C] = Je(0), [
|
|
7438
|
+
} = i, [b, C] = Je(0), [O, L] = Je(!1), [k, E] = Je(), {
|
|
7439
7439
|
mutateAsync: M,
|
|
7440
7440
|
isError: T,
|
|
7441
7441
|
error: N,
|
|
@@ -7493,10 +7493,10 @@ function tx(i) {
|
|
|
7493
7493
|
label: f[d - 1].label
|
|
7494
7494
|
} : {}, children: r.filter((m) => m.step === d).map((m) => Ce(m)) }, d)) }) : r.map((d) => Ce(d)), t[27] = b, t[28] = r, t[29] = Ce, t[30] = f, t[31] = J, t[32] = A) : A = t[32];
|
|
7495
7495
|
let v;
|
|
7496
|
-
t[33] !== b || t[34] !==
|
|
7496
|
+
t[33] !== b || t[34] !== O || t[35] !== se || t[36] !== s || t[37] !== J.length ? (v = !O && /* @__PURE__ */ R.jsxs(sr, { mt: "md", justify: "end", children: [
|
|
7497
7497
|
/* @__PURE__ */ R.jsx(ar, { onClick: () => J.length ? b === 0 ? s() : C(b - 1) : s(), variant: "outline", children: J.length ? b === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
7498
7498
|
/* @__PURE__ */ R.jsx(ar, { type: "submit", loading: se, children: J.length ? b === J.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
7499
|
-
] }), t[33] = b, t[34] =
|
|
7499
|
+
] }), t[33] = b, t[34] = O, t[35] = se, t[36] = s, t[37] = J.length, t[38] = v) : v = t[38];
|
|
7500
7500
|
let p;
|
|
7501
7501
|
t[39] !== v || t[40] !== I || t[41] !== A ? (p = /* @__PURE__ */ R.jsxs("form", { onSubmit: I, children: [
|
|
7502
7502
|
A,
|
|
@@ -7527,10 +7527,10 @@ function ax(i) {
|
|
|
7527
7527
|
return typeof i.step == "number";
|
|
7528
7528
|
}
|
|
7529
7529
|
var [ux, Ml] = Py("useDataTableColumnsContext must be used within DataTableColumnProvider"), Vh = (i) => {
|
|
7530
|
-
let { children: t, columnsOrder: r, setColumnsOrder: s, columnsToggle: l, setColumnsToggle: g, resetColumnsOrder: f, resetColumnsToggle: c, setColumnWidth: b, resetColumnsWidth: C } = i, [
|
|
7531
|
-
return R.jsx(ux, { value: { sourceColumn:
|
|
7532
|
-
if (!r || !s || !
|
|
7533
|
-
let M = r.indexOf(
|
|
7530
|
+
let { children: t, columnsOrder: r, setColumnsOrder: s, columnsToggle: l, setColumnsToggle: g, resetColumnsOrder: f, resetColumnsToggle: c, setColumnWidth: b, resetColumnsWidth: C } = i, [O, L] = Je(""), [k, E] = Je("");
|
|
7531
|
+
return R.jsx(ux, { value: { sourceColumn: O, setSourceColumn: L, targetColumn: k, setTargetColumn: E, columnsToggle: l, setColumnsToggle: g, swapColumns: () => {
|
|
7532
|
+
if (!r || !s || !O || !k) return;
|
|
7533
|
+
let M = r.indexOf(O), T = r.indexOf(k);
|
|
7534
7534
|
if (M !== -1 && T !== -1) {
|
|
7535
7535
|
let N = r.splice(M, 1)[0];
|
|
7536
7536
|
r.splice(T, 0, N), s([...r]);
|
|
@@ -7595,7 +7595,7 @@ var hx = ({ key: i, columns: t = [], getInitialValueInEffect: r = !0 }) => {
|
|
|
7595
7595
|
return JSON.stringify(te) !== oe && J(te), [l(Y, t), J];
|
|
7596
7596
|
}
|
|
7597
7597
|
function b() {
|
|
7598
|
-
let [Y, ce] = ju({ key: i ? `${i}-columns-width` : "", defaultValue: i ?
|
|
7598
|
+
let [Y, ce] = ju({ key: i ? `${i}-columns-width` : "", defaultValue: i ? O : void 0, getInitialValueInEffect: r });
|
|
7599
7599
|
function J(de) {
|
|
7600
7600
|
i && ce(de);
|
|
7601
7601
|
}
|
|
@@ -7603,9 +7603,9 @@ var hx = ({ key: i, columns: t = [], getInitialValueInEffect: r = !0 }) => {
|
|
|
7603
7603
|
let te = g(Y, t), oe = JSON.stringify(Y);
|
|
7604
7604
|
return JSON.stringify(te) !== oe && J(te), [g(Y, t), J];
|
|
7605
7605
|
}
|
|
7606
|
-
let C = t && t.map((Y) => Y.accessor) || [],
|
|
7606
|
+
let C = t && t.map((Y) => Y.accessor) || [], O = t && t.map((Y) => ({ [Y.accessor]: Y.width ?? "initial" })) || [], L = t && t.map((Y) => ({ accessor: Y.accessor, defaultToggle: Y.defaultToggle || !0, toggleable: Y.toggleable, toggled: Y.defaultToggle === void 0 ? !0 : Y.defaultToggle })), [k, E] = f(), [M, T] = c(), [N, K] = b(), X = () => E(C), Q = () => {
|
|
7607
7607
|
T(L);
|
|
7608
|
-
}, se = () => K(
|
|
7608
|
+
}, se = () => K(O);
|
|
7609
7609
|
return { effectiveColumns: Pi(() => k ? k.map((Y) => t.find((ce) => ce.accessor === Y)).map((Y) => {
|
|
7610
7610
|
var ce;
|
|
7611
7611
|
return { ...Y, hidden: (Y == null ? void 0 : Y.hidden) || !((ce = M.find((J) => J.accessor === (Y == null ? void 0 : Y.accessor))) != null && ce.toggled) };
|
|
@@ -7682,17 +7682,17 @@ function _x({ rowExpansion: i, records: t, idAccessor: r }) {
|
|
|
7682
7682
|
let s = [];
|
|
7683
7683
|
if (i && t) {
|
|
7684
7684
|
let { trigger: c, allowMultiple: b, initiallyExpanded: C } = i;
|
|
7685
|
-
t && c === "always" ? s = t.map((
|
|
7685
|
+
t && c === "always" ? s = t.map((O) => Bt(O, r)) : C && (s = t.filter((O, L) => C({ record: O, index: L })).map((O) => Bt(O, r)), b || (s = [s[0]]));
|
|
7686
7686
|
}
|
|
7687
7687
|
let l, g, f = Je(s);
|
|
7688
7688
|
if (i) {
|
|
7689
|
-
let { expandable: c, trigger: b, allowMultiple: C, collapseProps:
|
|
7689
|
+
let { expandable: c, trigger: b, allowMultiple: C, collapseProps: O, content: L } = i;
|
|
7690
7690
|
i.expanded ? { recordIds: l, onRecordIdsChange: g } = i.expanded : [l, g] = f;
|
|
7691
7691
|
let k = (E) => g == null ? void 0 : g(l.filter((M) => M !== Bt(E, r)));
|
|
7692
7692
|
return { expandOnClick: b !== "always" && b !== "never", isRowExpanded: (E) => b === "always" ? !0 : l.includes(Bt(E, r)), isExpandable: ({ record: E, index: M }) => c ? c({ record: E, index: M }) : !0, expandRow: (E) => {
|
|
7693
7693
|
let M = Bt(E, r);
|
|
7694
7694
|
g == null || g(C ? [...l, M] : [M]);
|
|
7695
|
-
}, collapseRow: k, collapseProps:
|
|
7695
|
+
}, collapseRow: k, collapseProps: O, content: ({ record: E, index: M }) => () => L({ record: E, index: M, collapse: () => k(E) }) };
|
|
7696
7696
|
}
|
|
7697
7697
|
}
|
|
7698
7698
|
function bx(i, t) {
|
|
@@ -7710,14 +7710,14 @@ function Cx({ shadowVisible: i }) {
|
|
|
7710
7710
|
}
|
|
7711
7711
|
var Ax = $o(function({ className: i, style: t, columns: r, defaultColumnProps: s, selectionVisible: l, selectorCellShadowVisible: g, scrollDiff: f }, c) {
|
|
7712
7712
|
let b = f < 0;
|
|
7713
|
-
return R.jsx(Ny, { ref: c, className: vt("mantine-datatable-footer", i), style: [{ position: b ? "relative" : "sticky", bottom: Bn(b ? f : 0) }, t], children: R.jsxs(ii, { children: [l && R.jsx(Cx, { shadowVisible: g }), r.map(({ hidden: C, ...
|
|
7713
|
+
return R.jsx(Ny, { ref: c, className: vt("mantine-datatable-footer", i), style: [{ position: b ? "relative" : "sticky", bottom: Bn(b ? f : 0) }, t], children: R.jsxs(ii, { children: [l && R.jsx(Cx, { shadowVisible: g }), r.map(({ hidden: C, ...O }) => {
|
|
7714
7714
|
if (C) return null;
|
|
7715
|
-
let { accessor: L, visibleMediaQuery: k, textAlign: E, width: M, footer: T, footerClassName: N, footerStyle: K, noWrap: X, ellipsis: Q } = { ...s, ...
|
|
7715
|
+
let { accessor: L, visibleMediaQuery: k, textAlign: E, width: M, footer: T, footerClassName: N, footerStyle: K, noWrap: X, ellipsis: Q } = { ...s, ...O };
|
|
7716
7716
|
return R.jsx(Sx, { className: N, style: K, visibleMediaQuery: k, textAlign: E, width: M, title: T, noWrap: X, ellipsis: Q }, L);
|
|
7717
7717
|
})] }) });
|
|
7718
7718
|
});
|
|
7719
7719
|
function Ox({ group: { id: i, columns: t, title: r, textAlign: s, className: l, style: g } }) {
|
|
7720
|
-
let f = Pi(() => t.map(({ visibleMediaQuery: C }) => C), [t]), c = yx(f), b = Pi(() => t.filter(({ hidden: C },
|
|
7720
|
+
let f = Pi(() => t.map(({ visibleMediaQuery: C }) => C), [t]), c = yx(f), b = Pi(() => t.filter(({ hidden: C }, O) => !C && (c == null ? void 0 : c[O])).length, [t, c]);
|
|
7721
7721
|
return b > 0 ? R.jsx(jo, { colSpan: b, className: vt("mantine-datatable-column-group-header-cell", { [ma]: s === "left", [ya]: s === "center", [wa]: s === "right" }, l), style: g, children: r ?? Ll(i) }) : null;
|
|
7722
7722
|
}
|
|
7723
7723
|
function Dx() {
|
|
@@ -7733,16 +7733,16 @@ function Tx({ children: i, isActive: t, filterPopoverProps: r }) {
|
|
|
7733
7733
|
}, onKeyDown: (b) => b.stopPropagation(), children: R.jsx(f, {}) }) }), R.jsx(ld, { ref: c, onClick: (b) => b.stopPropagation(), onKeyDown: (b) => b.stopPropagation(), children: typeof i == "function" ? i({ close: l }) : i })] });
|
|
7734
7734
|
}
|
|
7735
7735
|
var Ex = (i) => {
|
|
7736
|
-
let { accessor: t, columnRef: r } = i, s = Un(null), [l, g] = Je(0), { setColumnWidth: f } = Ml(), c = (
|
|
7737
|
-
|
|
7738
|
-
}, b = (
|
|
7736
|
+
let { accessor: t, columnRef: r } = i, s = Un(null), [l, g] = Je(0), { setColumnWidth: f } = Ml(), c = (O) => {
|
|
7737
|
+
O.preventDefault(), O.stopPropagation(), document.addEventListener("mousemove", b), document.addEventListener("mouseup", C), document.body.style.cursor = "col-resize";
|
|
7738
|
+
}, b = (O) => {
|
|
7739
7739
|
if (!r.current) return;
|
|
7740
|
-
let L =
|
|
7740
|
+
let L = O.clientX - r.current.getBoundingClientRect().right, k = `${r.current.getBoundingClientRect().width + L}px`;
|
|
7741
7741
|
r.current.style.width = k, f(t, r.current.style.width), g(-L);
|
|
7742
7742
|
}, C = () => {
|
|
7743
7743
|
r.current && (document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", C), document.body.style.cursor = "initial", f(t, r.current.style.width), g(0));
|
|
7744
7744
|
};
|
|
7745
|
-
return R.jsx("div", { ref: s, onClick: (
|
|
7745
|
+
return R.jsx("div", { ref: s, onClick: (O) => O.stopPropagation(), onMouseDown: c, onDoubleClick: () => {
|
|
7746
7746
|
r.current && (r.current.style.maxWidth = "initial", r.current.style.minWidth = "initial", r.current.style.width = "initial", f(t, "initial"));
|
|
7747
7747
|
}, className: "mantine-datatable-header-resizable-handle", style: { right: Bn(l) } });
|
|
7748
7748
|
};
|
|
@@ -7758,7 +7758,7 @@ function kx() {
|
|
|
7758
7758
|
function Ix() {
|
|
7759
7759
|
return R.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [R.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), R.jsx("path", { d: "M18 6l-12 12" }), R.jsx("path", { d: "M6 6l12 12" })] });
|
|
7760
7760
|
}
|
|
7761
|
-
function $x({ className: i, style: t, accessor: r, visibleMediaQuery: s, title: l, sortable: g, draggable: f, toggleable: c, resizable: b, sortIcons: C, textAlign:
|
|
7761
|
+
function $x({ className: i, style: t, accessor: r, visibleMediaQuery: s, title: l, sortable: g, draggable: f, toggleable: c, resizable: b, sortIcons: C, textAlign: O, width: L, sortStatus: k, onSortStatusChange: E, filter: M, filterPopoverProps: T, filtering: N, sortKey: K }) {
|
|
7762
7762
|
let { setSourceColumn: X, setTargetColumn: Q, swapColumns: se, setColumnsToggle: Y } = Ml(), [ce, J] = Je(!1), te = Un(null);
|
|
7763
7763
|
if (!va(s)) return null;
|
|
7764
7764
|
let oe = l ?? Ll(r), de = typeof oe == "string" ? oe : void 0, ne = g && E ? (p) => {
|
|
@@ -7778,18 +7778,18 @@ function $x({ className: i, style: t, accessor: r, visibleMediaQuery: s, title:
|
|
|
7778
7778
|
};
|
|
7779
7779
|
return R.jsxs(jo, { className: vt({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": c, "mantine-datatable-header-cell-resizable": b }, i), style: [{ width: L, ...b ? { minWidth: "1px" } : { minWidth: L, maxWidth: L } }, t], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: ne, onKeyDown: (p) => p.key === "Enter" && (ne == null ? void 0 : ne()), ref: te, children: [R.jsxs(sr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [R.jsxs(Uy, { align: "center", w: "100%", className: vt({ "mantine-datatable-header-cell-draggable": f, "mantine-datatable-header-cell-drag-over": ce }), draggable: f, onDragStart: f ? Se : void 0, onDragEnter: f ? I : void 0, onDragOver: f ? Ce : void 0, onDrop: f ? B : void 0, onDragLeave: f ? A : void 0, children: [f ? R.jsx(Di, { role: "img", "aria-label": "Drag column", children: R.jsx(Gs, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (p) => {
|
|
7780
7780
|
p.stopPropagation();
|
|
7781
|
-
}, children: R.jsx(kx, {}) }) }) : null, R.jsx(zt, { className: vt("mantine-datatable-header-cell-sortable-text", { [ma]:
|
|
7781
|
+
}, children: R.jsx(kx, {}) }) }) : null, R.jsx(zt, { className: vt("mantine-datatable-header-cell-sortable-text", { [ma]: O === "left", [ya]: O === "center", [wa]: O === "right" }, kl, Il), title: de, children: oe })] }), c ? R.jsx(Di, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: R.jsx(Gs, { size: "xs", variant: "light", onClick: v, children: R.jsx(Ix, {}) }) }) : null, g || (k == null ? void 0 : k.columnAccessor) === r ? R.jsx(R.Fragment, { children: (k == null ? void 0 : k.columnAccessor) === r ? R.jsx(Di, { className: vt("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": k.direction === "desc" }), role: "img", "aria-label": `Sorted ${k.direction === "desc" ? "descending" : "ascending"}`, children: (C == null ? void 0 : C.sorted) || R.jsx(Mx, {}) }) : R.jsx(Di, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: (C == null ? void 0 : C.unsorted) || R.jsx(Lx, {}) }) }) : null, M ? R.jsx(Tx, { filterPopoverProps: T, isActive: !!N, children: M }) : null] }), b ? R.jsx(Ex, { accessor: r, columnRef: te }) : null] });
|
|
7782
7782
|
}
|
|
7783
7783
|
var Px = $o(function({ className: i, style: t, trigger: r, shadowVisible: s, checked: l, indeterminate: g, checkboxProps: f, onChange: c, rowSpan: b }, C) {
|
|
7784
|
-
let
|
|
7785
|
-
return R.jsx(jo, { ref: C, className: vt("mantine-datatable-header-selector-cell", { [Ni]: r === "cell" &&
|
|
7786
|
-
}), Nx = $o(function({ selectionColumnHeaderRef: i, className: t, style: r, sortStatus: s, sortIcons: l, onSortStatusChange: g, columns: f, defaultColumnProps: c, groups: b, selectionTrigger: C, selectionVisible:
|
|
7787
|
-
let Q =
|
|
7784
|
+
let O = !f.disabled;
|
|
7785
|
+
return R.jsx(jo, { ref: C, className: vt("mantine-datatable-header-selector-cell", { [Ni]: r === "cell" && O }, i), style: t, rowSpan: b, "data-shadow-visible": s || void 0, onClick: r === "cell" && O ? c : void 0, children: R.jsx(No, { classNames: O ? { input: Ni } : void 0, checked: l, indeterminate: g, onChange: c, ...f, disabled: !(c || f.onChange) || f.disabled }) });
|
|
7786
|
+
}), Nx = $o(function({ selectionColumnHeaderRef: i, className: t, style: r, sortStatus: s, sortIcons: l, onSortStatusChange: g, columns: f, defaultColumnProps: c, groups: b, selectionTrigger: C, selectionVisible: O, selectionChecked: L, selectionIndeterminate: k, onSelectionChange: E, selectionCheckboxProps: M, selectorCellShadowVisible: T, selectionColumnClassName: N, selectionColumnStyle: K }, X) {
|
|
7787
|
+
let Q = O ? R.jsx(Px, { ref: i, className: N, style: K, trigger: C, shadowVisible: T, checked: L, indeterminate: k, checkboxProps: M, onChange: E, rowSpan: b ? 2 : void 0 }) : null, { columnsToggle: se, setColumnsToggle: Y } = Ml(), [ce, J] = Je(!1), te = f.some((ne) => ne.toggleable), oe = te ? Object.fromEntries(f.map(({ accessor: ne, title: Se }) => [ne, Se ?? Ll(String(ne))])) : void 0, de = R.jsxs(jy, { className: vt("mantine-datatable-header", t), style: r, ref: X, onContextMenu: te ? (ne) => {
|
|
7788
7788
|
ne.preventDefault(), J((Se) => !Se);
|
|
7789
7789
|
} : void 0, children: [b && R.jsxs(ii, { children: [Q, b.map((ne) => R.jsx(Ox, { group: ne }, ne.id))] }), R.jsxs(ii, { children: [!b && Q, f.map(({ hidden: ne, ...Se }, Ce) => {
|
|
7790
7790
|
if (ne) return null;
|
|
7791
|
-
let { accessor: B, visibleMediaQuery: I, textAlign: A, width: v, title: p, sortable: _, draggable: d, toggleable: m, resizable:
|
|
7792
|
-
return R.jsx($x, { accessor: B, className: q, style: V, visibleMediaQuery: I, textAlign: A, width: v, title: p, sortable: _, draggable: d, toggleable: m, resizable:
|
|
7791
|
+
let { accessor: B, visibleMediaQuery: I, textAlign: A, width: v, title: p, sortable: _, draggable: d, toggleable: m, resizable: D, titleClassName: q, titleStyle: V, filter: ue, filterPopoverProps: he, filtering: me, sortKey: re } = { ...c, ...Se };
|
|
7792
|
+
return R.jsx($x, { accessor: B, className: q, style: V, visibleMediaQuery: I, textAlign: A, width: v, title: p, sortable: _, draggable: d, toggleable: m, resizable: D && Ce < f.length - 1, sortStatus: s, sortIcons: l, sortKey: re, onSortStatusChange: g, filter: ue, filterPopoverProps: he, filtering: me }, B);
|
|
7793
7793
|
})] })] });
|
|
7794
7794
|
return te ? R.jsxs(To, { position: "bottom", withArrow: !0, shadow: "md", opened: ce, onChange: J, children: [R.jsx(ud, { children: de }), R.jsx(ld, { children: R.jsx(_l, { children: se.filter((ne) => ne.toggleable).map((ne) => R.jsx(sr, { children: R.jsx(No, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: oe[ne.accessor], checked: ne.toggled, onChange: (Se) => {
|
|
7795
7795
|
Y(se.map((Ce) => Ce.accessor === ne.accessor ? { ...Ce, toggled: Se.currentTarget.checked } : Ce));
|
|
@@ -7820,38 +7820,38 @@ function Fx({ size: i, label: t, values: r, value: s, activeTextColor: l, active
|
|
|
7820
7820
|
return R.jsx(Wy, { className: vt({ "mantine-datatable-page-size-selector-active": b }), style: [{ height: Zh[i] }, b && (l || g) ? (C) => Yd({ theme: C, paginationActiveTextColor: l, paginationActiveBackgroundColor: g }) : void 0], disabled: b, onClick: () => f(c), children: R.jsx(Eo, { component: "div", size: i, children: c }) }, c);
|
|
7821
7821
|
}) })] })] });
|
|
7822
7822
|
}
|
|
7823
|
-
var Wx = $o(function({ className: i, style: t, fetching: r, page: s, onPageChange: l, paginationWithEdges: g, paginationWithControls: f, paginationActiveTextColor: c, paginationActiveBackgroundColor: b, paginationSize: C, loadingText:
|
|
7823
|
+
var Wx = $o(function({ className: i, style: t, fetching: r, page: s, onPageChange: l, paginationWithEdges: g, paginationWithControls: f, paginationActiveTextColor: c, paginationActiveBackgroundColor: b, paginationSize: C, loadingText: O, noRecordsText: L, paginationText: k, totalRecords: E, recordsPerPage: M, onRecordsPerPageChange: T, recordsPerPageLabel: N, recordsPerPageOptions: K, recordsLength: X, horizontalSpacing: Q, paginationWrapBreakpoint: se, getPaginationControlProps: Y }, ce) {
|
|
7824
7824
|
let J;
|
|
7825
7825
|
if (E) {
|
|
7826
7826
|
let oe = (s - 1) * M + 1, de = oe + (X || 0) - 1;
|
|
7827
7827
|
J = k({ from: oe, to: de, totalRecords: E });
|
|
7828
|
-
} else J = r ?
|
|
7828
|
+
} else J = r ? O : L;
|
|
7829
7829
|
let te = va(({ breakpoints: oe }) => `(min-width: ${typeof se == "number" ? `${Bn(se)}rem` : oe[se] || se})`);
|
|
7830
7830
|
return R.jsxs(zt, { ref: ce, px: Q ?? "xs", py: "xs", className: vt("mantine-datatable-pagination", i), style: [{ flexDirection: te ? "row" : "column" }, t], children: [R.jsx(Eo, { component: "div", className: "mantine-datatable-pagination-text", size: C, children: J }), K && R.jsx(Fx, { activeTextColor: c, activeBackgroundColor: b, size: C, label: N, values: K, value: M, onChange: T }), R.jsx(By, { classNames: { root: vt("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !X }), control: "mantine-datatable-pagination-pages-control" }, style: c || b ? (oe) => Yd({ theme: oe, paginationActiveTextColor: c, paginationActiveBackgroundColor: b }) : void 0, withEdges: g, withControls: f, value: s, onChange: l, size: C, total: Math.ceil(E / M), getControlProps: Y })] });
|
|
7831
7831
|
});
|
|
7832
|
-
function Yx({ className: i, style: t, visibleMediaQuery: r, record: s, index: l, onClick: g, onDoubleClick: f, onContextMenu: c, noWrap: b, ellipsis: C, textAlign:
|
|
7833
|
-
return va(r) ? R.jsx(bl, { className: vt({ [kl]: b || C, [Il]: C, [Ni]: g || f, [Wd]: c, [ma]:
|
|
7832
|
+
function Yx({ className: i, style: t, visibleMediaQuery: r, record: s, index: l, onClick: g, onDoubleClick: f, onContextMenu: c, noWrap: b, ellipsis: C, textAlign: O, width: L, accessor: k, render: E, defaultRender: M, customCellAttributes: T }) {
|
|
7833
|
+
return va(r) ? R.jsx(bl, { className: vt({ [kl]: b || C, [Il]: C, [Ni]: g || f, [Wd]: c, [ma]: O === "left", [ya]: O === "center", [wa]: O === "right" }, i), style: [{ width: L, minWidth: L, maxWidth: L }, t], onClick: g, onDoubleClick: f, onContextMenu: c, ...T == null ? void 0 : T(s, l), children: E ? E(s, l) : M ? M(s, l, k) : Fd(s, k) }) : null;
|
|
7834
7834
|
}
|
|
7835
7835
|
function qx({ open: i, colSpan: t, content: r, collapseProps: s }) {
|
|
7836
7836
|
let { expanded: l, visible: g } = bx(i, s == null ? void 0 : s.transitionDuration);
|
|
7837
7837
|
return g ? R.jsxs(R.Fragment, { children: [R.jsx(ii, {}), R.jsx(ii, { children: R.jsx(bl, { className: "mantine-datatable-row-expansion-cell", colSpan: t, children: R.jsx(Vy, { in: l, ...s, children: R.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
|
|
7838
7838
|
}
|
|
7839
7839
|
function Hx({ className: i, style: t, record: r, index: s, trigger: l, onChange: g, withRightShadow: f, checkboxProps: c, getCheckboxProps: b, ...C }) {
|
|
7840
|
-
let
|
|
7840
|
+
let O = { ...c, ...b(r, s) }, L = !C.disabled && !O.disabled, k = (E) => {
|
|
7841
7841
|
E.stopPropagation(), l === "cell" && L && (g == null || g(E));
|
|
7842
7842
|
};
|
|
7843
|
-
return R.jsx(bl, { className: vt("mantine-datatable-row-selector-cell", { [Ni]: l === "cell" && L }, i), style: t, "data-shadow-visible": f || void 0, onClick: k, children: R.jsx(No, { classNames: L ? { input: Ni } : void 0, onChange: g, ...C, ...
|
|
7843
|
+
return R.jsx(bl, { className: vt("mantine-datatable-row-selector-cell", { [Ni]: l === "cell" && L }, i), style: t, "data-shadow-visible": f || void 0, onClick: k, children: R.jsx(No, { classNames: L ? { input: Ni } : void 0, onChange: g, ...C, ...O }) });
|
|
7844
7844
|
}
|
|
7845
|
-
function Gx({ record: i, index: t, columns: r, defaultColumnProps: s, defaultColumnRender: l, selectionTrigger: g, selectionVisible: f, selectionChecked: c, onSelectionChange: b, isRecordSelectable: C, selectionCheckboxProps:
|
|
7846
|
-
let Se = R.jsxs(R.Fragment, { children: [f && R.jsx(Hx, { className: oe, style: de, record: i, index: t, trigger: g, withRightShadow: te, checked: c, disabled: !b || (C ? !C(i, t) : !1), onChange: b, checkboxProps:
|
|
7845
|
+
function Gx({ record: i, index: t, columns: r, defaultColumnProps: s, defaultColumnRender: l, selectionTrigger: g, selectionVisible: f, selectionChecked: c, onSelectionChange: b, isRecordSelectable: C, selectionCheckboxProps: O, getSelectionCheckboxProps: L, onClick: k, onDoubleClick: E, onContextMenu: M, onCellClick: T, onCellDoubleClick: N, onCellContextMenu: K, expansion: X, customAttributes: Q, color: se, backgroundColor: Y, className: ce, style: J, selectorCellShadowVisible: te, selectionColumnClassName: oe, selectionColumnStyle: de, rowFactory: ne }) {
|
|
7846
|
+
let Se = R.jsxs(R.Fragment, { children: [f && R.jsx(Hx, { className: oe, style: de, record: i, index: t, trigger: g, withRightShadow: te, checked: c, disabled: !b || (C ? !C(i, t) : !1), onChange: b, checkboxProps: O, getCheckboxProps: L }), r.map(({ hidden: I, hiddenContent: A, ...v }, p) => {
|
|
7847
7847
|
if (I || A) return null;
|
|
7848
|
-
let { accessor: _, visibleMediaQuery: d, textAlign: m, noWrap:
|
|
7849
|
-
return R.jsx(Yx, { className: typeof he == "function" ? he(i, t) : he, style: me == null ? void 0 : me(i, t), visibleMediaQuery: d, record: i, index: t, onClick: T ? (le) => T({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onDoubleClick: N ? (le) => N({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onContextMenu: K ? (le) => K({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, accessor: _, textAlign: m, noWrap:
|
|
7848
|
+
let { accessor: _, visibleMediaQuery: d, textAlign: m, noWrap: D, ellipsis: q, width: V, render: ue, cellsClassName: he, cellsStyle: me, customCellAttributes: re } = { ...s, ...v };
|
|
7849
|
+
return R.jsx(Yx, { className: typeof he == "function" ? he(i, t) : he, style: me == null ? void 0 : me(i, t), visibleMediaQuery: d, record: i, index: t, onClick: T ? (le) => T({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onDoubleClick: N ? (le) => N({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, onContextMenu: K ? (le) => K({ event: le, record: i, index: t, column: v, columnIndex: p }) : void 0, accessor: _, textAlign: m, noWrap: D, ellipsis: q, width: V, render: ue, defaultRender: l, customCellAttributes: re }, _);
|
|
7850
7850
|
})] }), Ce = X && R.jsx(qx, { colSpan: r.filter(({ hidden: I }) => !I).length + (f ? 1 : 0), open: X.isRowExpanded(i), content: X.content({ record: i, index: t }), collapseProps: X.collapseProps }), B = Vx({ record: i, index: t, selectionChecked: c, onClick: k, onDoubleClick: E, onContextMenu: M, expansion: X, customAttributes: Q, color: se, backgroundColor: Y, className: ce, style: J });
|
|
7851
7851
|
return ne ? ne({ record: i, index: t, rowProps: B, children: Se, expandedElement: Ce }) : R.jsxs(R.Fragment, { children: [R.jsx(ii, { ...B, children: Se }), Ce] });
|
|
7852
7852
|
}
|
|
7853
|
-
function Vx({ record: i, index: t, selectionChecked: r, onClick: s, onDoubleClick: l, onContextMenu: g, expansion: f, customAttributes: c, color: b, backgroundColor: C, className:
|
|
7854
|
-
return { className: vt("mantine-datatable-row", { [Ni]: s || l || (f == null ? void 0 : f.isExpandable({ record: i, index: t })) && (f == null ? void 0 : f.expandOnClick) }, { [Wd]: g }, typeof
|
|
7853
|
+
function Vx({ record: i, index: t, selectionChecked: r, onClick: s, onDoubleClick: l, onContextMenu: g, expansion: f, customAttributes: c, color: b, backgroundColor: C, className: O, style: L }) {
|
|
7854
|
+
return { className: vt("mantine-datatable-row", { [Ni]: s || l || (f == null ? void 0 : f.isExpandable({ record: i, index: t })) && (f == null ? void 0 : f.expandOnClick) }, { [Wd]: g }, typeof O == "function" ? O(i, t) : O), "data-selected": r || void 0, onClick: (k) => {
|
|
7855
7855
|
if (f) {
|
|
7856
7856
|
let { isExpandable: E, isRowExpanded: M, expandOnClick: T, expandRow: N, collapseRow: K } = f;
|
|
7857
7857
|
E({ record: i, index: t }) && T && (M(i) ? K(i) : N(i));
|
|
@@ -7862,11 +7862,11 @@ function Vx({ record: i, index: t, selectionChecked: r, onClick: s, onDoubleClic
|
|
|
7862
7862
|
return Ux({ theme: k, color: E, backgroundColor: M });
|
|
7863
7863
|
} : void 0, L == null ? void 0 : L(i, t)], ...(c == null ? void 0 : c(i, t)) ?? {} };
|
|
7864
7864
|
}
|
|
7865
|
-
function Zx({ topShadowVisible: i, leftShadowVisible: t, leftShadowBehind: r, rightShadowVisible: s, rightShadowBehind: l, bottomShadowVisible: g, headerHeight: f, footerHeight: c, onScrollPositionChange: b, children: C, viewportRef:
|
|
7866
|
-
return R.jsxs(Hy, { ...L, viewportRef:
|
|
7865
|
+
function Zx({ topShadowVisible: i, leftShadowVisible: t, leftShadowBehind: r, rightShadowVisible: s, rightShadowBehind: l, bottomShadowVisible: g, headerHeight: f, footerHeight: c, onScrollPositionChange: b, children: C, viewportRef: O, scrollAreaProps: L }) {
|
|
7866
|
+
return R.jsxs(Hy, { ...L, viewportRef: O, 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: b, children: [C, R.jsx(zt, { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow", { "mantine-datatable-scroll-area-shadow-visible": i }), style: { top: f ? Bn(f) : 0 } }), R.jsx("div", { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-visible": t, "mantine-datatable-scroll-area-shadow-behind": r }) }), R.jsx("div", { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-visible": s, "mantine-datatable-scroll-area-shadow-behind": l }) }), R.jsx(zt, { className: vt("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow", { "mantine-datatable-scroll-area-shadow-visible": g }), style: { bottom: c ? Bn(c + 1) : 0 } })] });
|
|
7867
7867
|
}
|
|
7868
|
-
function Kx({ withTableBorder: i, borderRadius: t, textSelectionDisabled: r, height: s = "100%", minHeight: l, maxHeight: g, shadow: f, verticalAlign: c = "center", fetching: b, columns: C, storeColumnsKey:
|
|
7869
|
-
let { ref: Yt, width: Wn, height: Yn } = Oi(), Nr = Pi(() => (L == null ? void 0 : L.flatMap((He) => He.columns)) ?? C, [C, L]), Bo = hx({ key:
|
|
7868
|
+
function Kx({ withTableBorder: i, borderRadius: t, textSelectionDisabled: r, height: s = "100%", minHeight: l, maxHeight: g, shadow: f, verticalAlign: c = "center", fetching: b, columns: C, storeColumnsKey: O, groups: L, pinFirstColumn: k, pinLastColumn: E, defaultColumnProps: M, defaultColumnRender: T, idAccessor: N = "id", records: K, selectionTrigger: X = "checkbox", selectedRecords: Q, onSelectedRecordsChange: se, selectionColumnClassName: Y, selectionColumnStyle: ce, isRecordSelectable: J, selectionCheckboxProps: te, allRecordsSelectionCheckboxProps: oe = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: de = (Yt, Wn) => ({ "aria-label": `Select record ${Wn + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: Ce, horizontalSpacing: B, page: I, onPageChange: A, totalRecords: v, recordsPerPage: p, onRecordsPerPageChange: _, recordsPerPageOptions: d, recordsPerPageLabel: m = "Records per page", paginationWithEdges: D, paginationWithControls: q, paginationActiveTextColor: V, paginationActiveBackgroundColor: ue, paginationSize: he = "sm", paginationText: me = ({ from: Yt, to: Wn, totalRecords: Yn }) => `${Yt} - ${Wn} / ${Yn}`, paginationWrapBreakpoint: re = "sm", getPaginationControlProps: le = (Yt) => Yt === "previous" ? { "aria-label": "Previous page" } : Yt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: xe, customLoader: we, loaderSize: j, loaderType: W, loaderColor: F, loadingText: Z = "...", emptyState: ae, noRecordsText: Ae = "No records", noRecordsIcon: u, highlightOnHover: h, striped: w, noHeader: P, onRowClick: U, onRowDoubleClick: ee, onRowContextMenu: _e, onCellClick: De, onCellDoubleClick: Te, onCellContextMenu: be, onScroll: Ee, onScrollToTop: Ie, onScrollToBottom: Me, onScrollToLeft: Ge, onScrollToRight: Ye, c: Xe, backgroundColor: ft, borderColor: bt, rowBorderColor: at, stripedColor: xt, highlightOnHoverColor: Sn, rowColor: zn, rowBackgroundColor: wt, rowExpansion: Jt, rowClassName: Cn, rowStyle: Fn, customRowAttributes: Mn, scrollViewportRef: un, scrollAreaProps: ln, tableRef: et, bodyRef: Wt, m: ht, my: Ot, mx: ur, mt: lr, mb: cr, ml: ai, mr: ui, className: li, classNames: Dt, style: _a, styles: Rt, rowFactory: ba, tableWrapper: Fi, ...Wi }) {
|
|
7869
|
+
let { ref: Yt, width: Wn, height: Yn } = Oi(), Nr = Pi(() => (L == null ? void 0 : L.flatMap((He) => He.columns)) ?? C, [C, L]), Bo = hx({ key: O, columns: Nr }), { ref: xa, height: fr } = Oi(), { ref: Sa, width: hr, height: jr } = Oi(), { ref: Ca, height: Aa } = Oi(), { ref: Uo, height: Yi } = Oi(), { ref: zo, width: Oa } = Oi(), Da = Qu(Sa, et), Ra = Qu(Yt, un), [qi, Hi] = Je(!0), [ci, Gi] = Je(!0), [qn, Fo] = Je(!0), [Br, Ur] = Je(!0), Wo = _x({ rowExpansion: Jt, records: K, idAccessor: N }), Vi = jn(() => {
|
|
7870
7870
|
var pr, gr;
|
|
7871
7871
|
let He = ((pr = Yt.current) == null ? void 0 : pr.scrollTop) ?? 0, Xt = ((gr = Yt.current) == null ? void 0 : gr.scrollLeft) ?? 0;
|
|
7872
7872
|
if (b || jr <= Yn) Hi(!0), Gi(!0);
|
|
@@ -7898,7 +7898,7 @@ function Kx({ withTableBorder: i, borderRadius: t, textSelectionDisabled: r, hei
|
|
|
7898
7898
|
} else se(gr ? Q.filter((vr) => Bt(vr, N) !== pr) : Zu([...Q, He], (vr) => Bt(vr, N)));
|
|
7899
7899
|
Go(Xt);
|
|
7900
7900
|
}), R.jsx(Gx, { record: He, index: Xt, columns: Nr, defaultColumnProps: M, defaultColumnRender: T, selectionTrigger: X, selectionVisible: Ln, selectionChecked: gr, onSelectionChange: cn, isRecordSelectable: J, selectionCheckboxProps: te, getSelectionCheckboxProps: de, onClick: U, onDoubleClick: ee, onCellClick: De, onCellDoubleClick: Te, onContextMenu: _e, onCellContextMenu: be, expansion: Wo, color: zn, backgroundColor: wt, className: Cn, style: Fn, customAttributes: Mn, selectorCellShadowVisible: Ji, selectionColumnClassName: Y, selectionColumnStyle: ce, idAccessor: N, rowFactory: ba }, pr);
|
|
7901
|
-
}) : R.jsx(lx, {}) }), Nr.some(({ footer: He }) => He) && R.jsx(Ax, { ref: Ca, className: Dt == null ? void 0 : Dt.footer, style: Rt == null ? void 0 : Rt.footer, columns: Nr, defaultColumnProps: M, selectionVisible: Ln, selectorCellShadowVisible: Ji, scrollDiff: jr - Yn })] }) }) }), I && R.jsx(Wx, { ref: Uo, className: Dt == null ? void 0 : Dt.pagination, style: Rt == null ? void 0 : Rt.pagination, horizontalSpacing: B, fetching: b, page: I, onPageChange: Ki, totalRecords: v, recordsPerPage: p, onRecordsPerPageChange: _, recordsPerPageOptions: d, recordsPerPageLabel: m, paginationWithEdges:
|
|
7901
|
+
}) : R.jsx(lx, {}) }), Nr.some(({ footer: He }) => He) && R.jsx(Ax, { ref: Ca, className: Dt == null ? void 0 : Dt.footer, style: Rt == null ? void 0 : Rt.footer, columns: Nr, defaultColumnProps: M, selectionVisible: Ln, selectorCellShadowVisible: Ji, scrollDiff: jr - Yn })] }) }) }), I && R.jsx(Wx, { ref: Uo, className: Dt == null ? void 0 : Dt.pagination, style: Rt == null ? void 0 : Rt.pagination, horizontalSpacing: B, fetching: b, page: I, onPageChange: Ki, totalRecords: v, recordsPerPage: p, onRecordsPerPageChange: _, recordsPerPageOptions: d, recordsPerPageLabel: m, paginationWithEdges: D, paginationWithControls: q, paginationActiveTextColor: V, paginationActiveBackgroundColor: ue, paginationSize: he, paginationText: me, paginationWrapBreakpoint: re, getPaginationControlProps: le, noRecordsText: Ae, loadingText: Z, recordsLength: fi }), R.jsx(jx, { pt: fr, pb: Yi, fetching: b, backgroundBlur: xe, customContent: we, size: j, type: W, color: F }), R.jsx(fx, { pt: fr, pb: Yi, icon: u, text: Ae, active: !b && !fi, children: ae })] }) });
|
|
7902
7902
|
}
|
|
7903
7903
|
var Qx = $o(function({ children: i, isDragging: t, ...r }, s) {
|
|
7904
7904
|
let l = Un(null), g = Qu(l, s);
|
|
@@ -7925,7 +7925,7 @@ var Jx = Do.exports, Kh;
|
|
|
7925
7925
|
function Xx() {
|
|
7926
7926
|
return Kh || (Kh = 1, function(i, t) {
|
|
7927
7927
|
(function() {
|
|
7928
|
-
var r, s = "4.17.21", l = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", c = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", C = 500,
|
|
7928
|
+
var r, s = "4.17.21", l = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", c = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", C = 500, O = "__lodash_placeholder__", L = 1, k = 2, E = 4, M = 1, T = 2, N = 1, K = 2, X = 4, Q = 8, se = 16, Y = 32, ce = 64, J = 128, te = 256, oe = 512, de = 30, ne = "...", Se = 800, Ce = 16, B = 1, I = 2, A = 3, v = 1 / 0, p = 9007199254740991, _ = 17976931348623157e292, d = NaN, m = 4294967295, D = m - 1, q = m >>> 1, V = [
|
|
7929
7929
|
["ary", J],
|
|
7930
7930
|
["bind", N],
|
|
7931
7931
|
["bindKey", K],
|
|
@@ -8416,7 +8416,7 @@ function Xx() {
|
|
|
8416
8416
|
function wr(H, fe) {
|
|
8417
8417
|
for (var ie = -1, Re = H.length, Be = 0, tt = []; ++ie < Re; ) {
|
|
8418
8418
|
var St = H[ie];
|
|
8419
|
-
(St === fe || St ===
|
|
8419
|
+
(St === fe || St === O) && (H[ie] = O, tt[Be++] = ie);
|
|
8420
8420
|
}
|
|
8421
8421
|
return tt;
|
|
8422
8422
|
}
|
|
@@ -9248,7 +9248,7 @@ function Xx() {
|
|
|
9248
9248
|
else pe ? Ne = Pe && (a || Oe) : z ? Ne = Pe && Oe && (a || !ke) : G ? Ne = Pe && Oe && !ke && (a || !Fe) : ke || Fe ? Ne = !1 : Ne = a ? ye <= n : ye < n;
|
|
9249
9249
|
Ne ? y = ge + 1 : S = ge;
|
|
9250
9250
|
}
|
|
9251
|
-
return Lt(S,
|
|
9251
|
+
return Lt(S, D);
|
|
9252
9252
|
}
|
|
9253
9253
|
function Dc(e, n) {
|
|
9254
9254
|
for (var o = -1, a = e.length, y = 0, S = []; ++o < a; ) {
|
|
@@ -10055,9 +10055,9 @@ function Xx() {
|
|
|
10055
10055
|
var z = n[3];
|
|
10056
10056
|
if (z) {
|
|
10057
10057
|
var G = e[3];
|
|
10058
|
-
e[3] = G ? Pc(G, z, n[4]) : z, e[4] = G ? wr(e[3],
|
|
10058
|
+
e[3] = G ? Pc(G, z, n[4]) : z, e[4] = G ? wr(e[3], O) : n[4];
|
|
10059
10059
|
}
|
|
10060
|
-
return z = n[5], z && (G = e[5], e[5] = G ? Nc(G, z, n[6]) : z, e[6] = G ? wr(e[5],
|
|
10060
|
+
return z = n[5], z && (G = e[5], e[5] = G ? Nc(G, z, n[6]) : z, e[6] = G ? wr(e[5], O) : n[6]), z = n[7], z && (e[7] = z), a & J && (e[8] = e[8] == null ? n[8] : Lt(e[8], n[8])), e[9] == null && (e[9] = n[9]), e[0] = n[0], e[1] = y, e;
|
|
10061
10061
|
}
|
|
10062
10062
|
function g1(e) {
|
|
10063
10063
|
var n = [];
|
|
@@ -11594,7 +11594,7 @@ function e4(i) {
|
|
|
11594
11594
|
apiPath: g,
|
|
11595
11595
|
id: f,
|
|
11596
11596
|
steps: c
|
|
11597
|
-
} = i, [b, C] = Je(0), [
|
|
11597
|
+
} = i, [b, C] = Je(0), [O, L] = Je(!1), {
|
|
11598
11598
|
data: k,
|
|
11599
11599
|
isLoading: E
|
|
11600
11600
|
} = B_(g, l, f), {
|
|
@@ -11647,7 +11647,7 @@ function e4(i) {
|
|
|
11647
11647
|
let Ce;
|
|
11648
11648
|
t[19] !== T || t[20] !== (N == null ? void 0 : N.message) || t[21] !== (N == null ? void 0 : N.name) ? (Ce = T && /* @__PURE__ */ R.jsx(Js, { variant: "outline", color: "red", title: (N == null ? void 0 : N.name) ?? "Fehler aufgetreten", mb: "lg", children: (N == null ? void 0 : N.message) ?? "Fehler aufgetreten" }), t[19] = T, t[20] = N == null ? void 0 : N.message, t[21] = N == null ? void 0 : N.name, t[22] = Ce) : Ce = t[22];
|
|
11649
11649
|
let B;
|
|
11650
|
-
t[23] !== b || t[24] !== r || t[25] !== te || t[26] !==
|
|
11650
|
+
t[23] !== b || t[24] !== r || t[25] !== te || t[26] !== O || t[27] !== f || t[28] !== E || t[29] !== K || t[30] !== T || t[31] !== s || t[32] !== Se || t[33] !== c || t[34] !== se || t[35] !== M ? (B = E ? /* @__PURE__ */ R.jsxs(_l, { gap: "md", children: [
|
|
11651
11651
|
/* @__PURE__ */ R.jsx(Ri, { height: 40 }),
|
|
11652
11652
|
Array(r.length).fill(0).map(t4),
|
|
11653
11653
|
/* @__PURE__ */ R.jsxs(sr, { mt: "md", justify: "end", children: [
|
|
@@ -11663,11 +11663,11 @@ function e4(i) {
|
|
|
11663
11663
|
se.length ? /* @__PURE__ */ R.jsx(Hs, { active: b, size: "sm", children: se.map((A) => /* @__PURE__ */ R.jsx(Hs.Step, { ...c && c[A - 1] ? {
|
|
11664
11664
|
label: c[A - 1].label
|
|
11665
11665
|
} : {}, children: r.filter((v) => v.step === A).map((v) => Se(v)) }, A)) }) : r.map((A) => Se(A)),
|
|
11666
|
-
!
|
|
11666
|
+
!O && /* @__PURE__ */ R.jsxs(sr, { mt: "md", justify: "end", children: [
|
|
11667
11667
|
/* @__PURE__ */ R.jsx(ar, { onClick: () => se.length ? b === 0 ? s() : C(b - 1) : s(), variant: "outline", children: se.length ? b === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
11668
11668
|
/* @__PURE__ */ R.jsx(ar, { type: "submit", loading: K, children: se.length ? b === se.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
11669
11669
|
] })
|
|
11670
|
-
] }), t[23] = b, t[24] = r, t[25] = te, t[26] =
|
|
11670
|
+
] }), t[23] = b, t[24] = r, t[25] = te, t[26] = O, t[27] = f, t[28] = E, t[29] = K, t[30] = T, t[31] = s, t[32] = Se, t[33] = c, t[34] = se, t[35] = M, t[36] = B) : B = t[36];
|
|
11671
11671
|
let I;
|
|
11672
11672
|
return t[37] !== B || t[38] !== Ce ? (I = /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
11673
11673
|
Ce,
|
|
@@ -11706,13 +11706,13 @@ function u4(i) {
|
|
|
11706
11706
|
isError: c,
|
|
11707
11707
|
error: b,
|
|
11708
11708
|
isPending: C
|
|
11709
|
-
} = V_(s, r), [
|
|
11709
|
+
} = V_(s, r), [O, L] = Je(g);
|
|
11710
11710
|
let k;
|
|
11711
|
-
t[0] !== l || t[1] !==
|
|
11712
|
-
|
|
11713
|
-
}, t[0] = l, t[1] =
|
|
11711
|
+
t[0] !== l || t[1] !== O.length ? (k = () => {
|
|
11712
|
+
O.length || l();
|
|
11713
|
+
}, t[0] = l, t[1] = O.length, t[2] = k) : k = t[2];
|
|
11714
11714
|
let E;
|
|
11715
|
-
if (t[3] !== l || t[4] !==
|
|
11715
|
+
if (t[3] !== l || t[4] !== O ? (E = [l, O], t[3] = l, t[4] = O, t[5] = E) : E = t[5], Qt(k, E), !O.length) {
|
|
11716
11716
|
let ce;
|
|
11717
11717
|
return t[6] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ R.jsx(R.Fragment, {}), t[6] = ce) : ce = t[6], ce;
|
|
11718
11718
|
}
|
|
@@ -11729,9 +11729,9 @@ function u4(i) {
|
|
|
11729
11729
|
let K;
|
|
11730
11730
|
t[13] !== l ? (K = /* @__PURE__ */ R.jsx(ar, { onClick: l, variant: "outline", children: "Abbrechen" }), t[13] = l, t[14] = K) : K = t[14];
|
|
11731
11731
|
let X;
|
|
11732
|
-
t[15] !== f || t[16] !==
|
|
11733
|
-
await f(
|
|
11734
|
-
}, t[15] = f, t[16] =
|
|
11732
|
+
t[15] !== f || t[16] !== O[0].id ? (X = async () => {
|
|
11733
|
+
await f(O[0].id), L((ce) => ce.filter((J) => J.id !== O[0].id));
|
|
11734
|
+
}, t[15] = f, t[16] = O[0].id, t[17] = X) : X = t[17];
|
|
11735
11735
|
let Q;
|
|
11736
11736
|
t[18] !== C || t[19] !== X ? (Q = /* @__PURE__ */ R.jsx(ar, { color: "red", loading: C, onClick: X, children: "Delete" }), t[18] = C, t[19] = X, t[20] = Q) : Q = t[20];
|
|
11737
11737
|
let se;
|
|
@@ -11748,7 +11748,7 @@ function u4(i) {
|
|
|
11748
11748
|
}
|
|
11749
11749
|
const Jh = [10, 15, 20, 50, 100];
|
|
11750
11750
|
function l4(i) {
|
|
11751
|
-
const t = bn.c(
|
|
11751
|
+
const t = bn.c(128), {
|
|
11752
11752
|
title: r,
|
|
11753
11753
|
queryKey: s,
|
|
11754
11754
|
connectedQueryKeys: l,
|
|
@@ -11757,7 +11757,7 @@ function l4(i) {
|
|
|
11757
11757
|
fields: c,
|
|
11758
11758
|
selection: b,
|
|
11759
11759
|
pagination: C,
|
|
11760
|
-
filters:
|
|
11760
|
+
filters: O,
|
|
11761
11761
|
actions: L,
|
|
11762
11762
|
steps: k,
|
|
11763
11763
|
defaultSort: E,
|
|
@@ -11775,15 +11775,15 @@ function l4(i) {
|
|
|
11775
11775
|
queryClient: J
|
|
11776
11776
|
} = si();
|
|
11777
11777
|
let te;
|
|
11778
|
-
t[1] !== T || t[2] !== l || t[3] !==
|
|
11778
|
+
t[1] !== T || t[2] !== l || t[3] !== O || t[4] !== J ? (te = () => {
|
|
11779
11779
|
if (!(!T || !Array.isArray(T))) {
|
|
11780
11780
|
if (l == null || l.forEach((ht) => J.invalidateQueries({
|
|
11781
11781
|
queryKey: ht
|
|
11782
|
-
})), !
|
|
11782
|
+
})), !O || O.length === 0) {
|
|
11783
11783
|
ce(T);
|
|
11784
11784
|
return;
|
|
11785
11785
|
}
|
|
11786
|
-
ce(T.filter((ht) =>
|
|
11786
|
+
ce(T.filter((ht) => O.every((Ot) => {
|
|
11787
11787
|
const ur = Ot.id;
|
|
11788
11788
|
if (Ot.type === "query" && typeof Ot.value == "string") {
|
|
11789
11789
|
const lr = ht[ur];
|
|
@@ -11804,9 +11804,9 @@ function l4(i) {
|
|
|
11804
11804
|
return !0;
|
|
11805
11805
|
})));
|
|
11806
11806
|
}
|
|
11807
|
-
}, t[1] = T, t[2] = l, t[3] =
|
|
11807
|
+
}, t[1] = T, t[2] = l, t[3] = O, t[4] = J, t[5] = te) : te = t[5];
|
|
11808
11808
|
let oe;
|
|
11809
|
-
t[6] !== T || t[7] !==
|
|
11809
|
+
t[6] !== T || t[7] !== O ? (oe = [T, O], t[6] = T, t[7] = O, t[8] = oe) : oe = t[8], Qt(te, oe);
|
|
11810
11810
|
const de = (E == null ? void 0 : E.field) ?? c[0].id, ne = (E == null ? void 0 : E.direction) ?? "desc";
|
|
11811
11811
|
let Se;
|
|
11812
11812
|
t[9] !== de || t[10] !== ne ? (Se = {
|
|
@@ -11827,7 +11827,7 @@ function l4(i) {
|
|
|
11827
11827
|
}, t[17] = Y, t[18] = Ce.columnAccessor, t[19] = Ce.direction, t[20] = p) : p = t[20];
|
|
11828
11828
|
let _;
|
|
11829
11829
|
t[21] !== Y || t[22] !== Ce ? (_ = [Ce, Y], t[21] = Y, t[22] = Ce, t[23] = _) : _ = t[23], Qt(p, _);
|
|
11830
|
-
const [d, m] = Je(Jh[1]), [
|
|
11830
|
+
const [d, m] = Je(Jh[1]), [D, q] = Je(1);
|
|
11831
11831
|
let V;
|
|
11832
11832
|
t[24] !== d || t[25] !== C || t[26] !== A ? (V = C ? A.slice(0, d) : A, t[24] = d, t[25] = C, t[26] = A, t[27] = V) : V = t[27];
|
|
11833
11833
|
const [ue, he] = Je(V);
|
|
@@ -11837,36 +11837,34 @@ function l4(i) {
|
|
|
11837
11837
|
}, t[28] = me) : me = t[28];
|
|
11838
11838
|
let re;
|
|
11839
11839
|
t[29] !== d ? (re = [d], t[29] = d, t[30] = re) : re = t[30], Qt(me, re);
|
|
11840
|
-
let le;
|
|
11841
|
-
t[31] !==
|
|
11840
|
+
let le, xe;
|
|
11841
|
+
t[31] !== D || t[32] !== d || t[33] !== C || t[34] !== A ? (le = () => {
|
|
11842
11842
|
if (C) {
|
|
11843
|
-
const ht = (
|
|
11843
|
+
const ht = (D - 1) * d, Ot = ht + d;
|
|
11844
11844
|
he(A.slice(ht, Ot));
|
|
11845
11845
|
} else
|
|
11846
11846
|
he(A);
|
|
11847
|
-
}, t[31] =
|
|
11848
|
-
let xe;
|
|
11849
|
-
t[36] !== O || t[37] !== C || t[38] !== A ? (xe = [O, A, C], t[36] = O, t[37] = C, t[38] = A, t[39] = xe) : xe = t[39], Qt(le, xe);
|
|
11847
|
+
}, xe = [D, A, C, d], t[31] = D, t[32] = d, t[33] = C, t[34] = A, t[35] = le, t[36] = xe) : (le = t[35], xe = t[36]), Qt(le, xe);
|
|
11850
11848
|
let we;
|
|
11851
|
-
t[
|
|
11849
|
+
t[37] === Symbol.for("react.memo_cache_sentinel") ? (we = [], t[37] = we) : we = t[37];
|
|
11852
11850
|
const [j, W] = Je(we);
|
|
11853
11851
|
let F;
|
|
11854
|
-
t[
|
|
11852
|
+
t[38] !== j || t[39] !== b || t[40] !== A ? (F = () => {
|
|
11855
11853
|
b && W(A.filter((ht) => j.some((Ot) => Ot.id === ht.id)));
|
|
11856
|
-
}, t[
|
|
11854
|
+
}, t[38] = j, t[39] = b, t[40] = A, t[41] = F) : F = t[41];
|
|
11857
11855
|
let Z;
|
|
11858
|
-
t[
|
|
11856
|
+
t[42] !== A ? (Z = [A], t[42] = A, t[43] = Z) : Z = t[43], Qt(F, Z);
|
|
11859
11857
|
const [ae, Ae] = Je(!1), [u, h] = Je(!1), [w, P] = Je(!1), U = r ? "space-between" : "end";
|
|
11860
11858
|
let ee;
|
|
11861
|
-
t[
|
|
11859
|
+
t[44] !== r ? (ee = r && (typeof r == "string" ? /* @__PURE__ */ R.jsx(Zy, { order: 4, children: r }) : r), t[44] = r, t[45] = ee) : ee = t[45];
|
|
11862
11860
|
let _e;
|
|
11863
|
-
t[
|
|
11861
|
+
t[46] !== Q ? (_e = () => Q(), t[46] = Q, t[47] = _e) : _e = t[47];
|
|
11864
11862
|
let De;
|
|
11865
|
-
t[
|
|
11863
|
+
t[48] === Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ R.jsx(Xy, {}), t[48] = De) : De = t[48];
|
|
11866
11864
|
let Te;
|
|
11867
|
-
t[
|
|
11865
|
+
t[49] !== _e ? (Te = /* @__PURE__ */ R.jsx(Gs, { variant: "subtle", onClick: _e, "aria-label": "Neuladen", children: De }), t[49] = _e, t[50] = Te) : Te = t[50];
|
|
11868
11866
|
let be;
|
|
11869
|
-
t[
|
|
11867
|
+
t[51] !== L || t[52] !== c || t[53] !== j || t[54] !== b ? (be = (c.some(m4) || b) && /* @__PURE__ */ R.jsxs(Jr, { shadow: "md", children: [
|
|
11870
11868
|
/* @__PURE__ */ R.jsx(Jr.Target, { children: /* @__PURE__ */ R.jsx(ar, { variant: "outline", rightSection: /* @__PURE__ */ R.jsx(Ky, { size: 14 }), disabled: !j.length, children: "Aktionen" }) }),
|
|
11871
11869
|
/* @__PURE__ */ R.jsxs(Jr.Dropdown, { children: [
|
|
11872
11870
|
c.find(v4) && /* @__PURE__ */ R.jsx(Jr.Item, { leftSection: /* @__PURE__ */ R.jsx(Qy, { size: 14 }), onClick: () => h(!0), disabled: j.length !== 1, children: "Bearbeiten" }),
|
|
@@ -11875,80 +11873,80 @@ function l4(i) {
|
|
|
11875
11873
|
}, key: `custom_action_${Ot}`, onClick: () => ht.onClick(j) }, ht.label)),
|
|
11876
11874
|
c.find(g4) && /* @__PURE__ */ R.jsx(Jr.Item, { leftSection: /* @__PURE__ */ R.jsx(Jy, { size: 14 }), onClick: () => P(!0), color: "red", children: "Löschen" })
|
|
11877
11875
|
] })
|
|
11878
|
-
] }), t[
|
|
11876
|
+
] }), t[51] = L, t[52] = c, t[53] = j, t[54] = b, t[55] = be) : be = t[55];
|
|
11879
11877
|
let Ee;
|
|
11880
|
-
t[
|
|
11878
|
+
t[56] !== M || t[57] !== c ? (Ee = c.find(p4) && /* @__PURE__ */ R.jsx(ar, { onClick: () => Ae(!0), children: M ?? "Erstellen" }), t[56] = M, t[57] = c, t[58] = Ee) : Ee = t[58];
|
|
11881
11879
|
let Ie;
|
|
11882
|
-
t[
|
|
11880
|
+
t[59] !== f || t[60] !== Te || t[61] !== be || t[62] !== Ee ? (Ie = /* @__PURE__ */ R.jsxs(sr, { align: "center", gap: "xs", children: [
|
|
11883
11881
|
Te,
|
|
11884
11882
|
be,
|
|
11885
11883
|
Ee,
|
|
11886
11884
|
f
|
|
11887
|
-
] }), t[
|
|
11885
|
+
] }), t[59] = f, t[60] = Te, t[61] = be, t[62] = Ee, t[63] = Ie) : Ie = t[63];
|
|
11888
11886
|
let Me;
|
|
11889
|
-
t[
|
|
11887
|
+
t[64] !== U || t[65] !== ee || t[66] !== Ie ? (Me = /* @__PURE__ */ R.jsxs(sr, { gap: "xs", justify: U, align: "center", children: [
|
|
11890
11888
|
ee,
|
|
11891
11889
|
Ie
|
|
11892
|
-
] }), t[
|
|
11890
|
+
] }), t[64] = U, t[65] = ee, t[66] = Ie, t[67] = Me) : Me = t[67];
|
|
11893
11891
|
let Ge;
|
|
11894
|
-
t[
|
|
11892
|
+
t[68] !== K ? (Ge = K && /* @__PURE__ */ R.jsx(Js, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ R.jsx(e2, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), t[68] = K, t[69] = Ge) : Ge = t[69];
|
|
11895
11893
|
let Ye;
|
|
11896
|
-
t[
|
|
11894
|
+
t[70] !== N || t[71] !== X ? (Ye = (N || X) && /* @__PURE__ */ R.jsxs(_l, { my: "md", children: [
|
|
11897
11895
|
/* @__PURE__ */ R.jsx(Ri, { height: 40 }),
|
|
11898
11896
|
Array(5).fill(0).map(d4)
|
|
11899
|
-
] }), t[
|
|
11897
|
+
] }), t[70] = N, t[71] = X, t[72] = Ye) : Ye = t[72];
|
|
11900
11898
|
let Xe;
|
|
11901
|
-
t[
|
|
11899
|
+
t[73] !== c || t[74] !== K || t[75] !== N || t[76] !== X || t[77] !== D || t[78] !== d || t[79] !== C || t[80] !== ue || t[81] !== j || t[82] !== b || t[83] !== Ce || t[84] !== A ? (Xe = !N && !X && /* @__PURE__ */ R.jsx(Kx, { my: "md", striped: !0, minHeight: 150, fetching: K, records: ue, sortStatus: Ce, onSortStatusChange: B, ...b && {
|
|
11902
11900
|
selectedRecords: j,
|
|
11903
11901
|
onSelectedRecordsChange: W
|
|
11904
11902
|
}, ...C && ue.length && {
|
|
11905
11903
|
totalRecords: A.length,
|
|
11906
11904
|
recordsPerPage: d,
|
|
11907
11905
|
onPageChange: q,
|
|
11908
|
-
page:
|
|
11906
|
+
page: D,
|
|
11909
11907
|
recordsPerPageOptions: Jh,
|
|
11910
11908
|
onRecordsPerPageChange: m,
|
|
11911
11909
|
recordsPerPageLabel: "Einträge pro Seite"
|
|
11912
|
-
}, columns: c.map(h4), noRecordsText: "Keine Einträge gefunden" }), t[
|
|
11910
|
+
}, columns: c.map(h4), noRecordsText: "Keine Einträge gefunden" }), t[73] = c, t[74] = K, t[75] = N, t[76] = X, t[77] = D, t[78] = d, t[79] = C, t[80] = ue, t[81] = j, t[82] = b, t[83] = Ce, t[84] = A, t[85] = Xe) : Xe = t[85];
|
|
11913
11911
|
let ft;
|
|
11914
|
-
t[
|
|
11912
|
+
t[86] === Symbol.for("react.memo_cache_sentinel") ? (ft = () => {
|
|
11915
11913
|
h(!1), W([]);
|
|
11916
|
-
}, t[
|
|
11914
|
+
}, t[86] = ft) : ft = t[86];
|
|
11917
11915
|
const bt = r ?? "Bearbeiten";
|
|
11918
11916
|
let at;
|
|
11919
|
-
t[
|
|
11917
|
+
t[87] !== g || t[88] !== c || t[89] !== s || t[90] !== j[0] || t[91] !== j.length || t[92] !== k ? (at = j.length > 0 && /* @__PURE__ */ R.jsx(e4, { fields: c.filter(f4), queryKey: s, apiPath: g, id: j[0].id, onClose: () => {
|
|
11920
11918
|
h(!1), W([]);
|
|
11921
|
-
}, steps: k }), t[
|
|
11919
|
+
}, steps: k }), t[87] = g, t[88] = c, t[89] = s, t[90] = j[0], t[91] = j.length, t[92] = k, t[93] = at) : at = t[93];
|
|
11922
11920
|
let xt;
|
|
11923
|
-
t[
|
|
11921
|
+
t[94] !== bt || t[95] !== at || t[96] !== u ? (xt = /* @__PURE__ */ R.jsx(Nu, { opened: u, onClose: ft, title: bt, children: at }), t[94] = bt, t[95] = at, t[96] = u, t[97] = xt) : xt = t[97];
|
|
11924
11922
|
let Sn;
|
|
11925
|
-
t[
|
|
11923
|
+
t[98] === Symbol.for("react.memo_cache_sentinel") ? (Sn = () => {
|
|
11926
11924
|
P(!1), W([]);
|
|
11927
|
-
}, t[
|
|
11925
|
+
}, t[98] = Sn) : Sn = t[98];
|
|
11928
11926
|
const zn = r ?? "Löschen";
|
|
11929
11927
|
let wt;
|
|
11930
|
-
t[
|
|
11928
|
+
t[99] !== g || t[100] !== s || t[101] !== j ? (wt = j.length > 0 && /* @__PURE__ */ R.jsx(u4, { onClose: () => {
|
|
11931
11929
|
P(!1), W([]);
|
|
11932
|
-
}, queryKey: s, apiPath: g, selectedRecords: j }), t[
|
|
11930
|
+
}, queryKey: s, apiPath: g, selectedRecords: j }), t[99] = g, t[100] = s, t[101] = j, t[102] = wt) : wt = t[102];
|
|
11933
11931
|
let Jt;
|
|
11934
|
-
t[
|
|
11932
|
+
t[103] !== w || t[104] !== zn || t[105] !== wt ? (Jt = /* @__PURE__ */ R.jsx(Nu, { opened: w, onClose: Sn, title: zn, children: wt }), t[103] = w, t[104] = zn, t[105] = wt, t[106] = Jt) : Jt = t[106];
|
|
11935
11933
|
let Cn;
|
|
11936
|
-
t[
|
|
11934
|
+
t[107] === Symbol.for("react.memo_cache_sentinel") ? (Cn = () => {
|
|
11937
11935
|
Ae(!1);
|
|
11938
|
-
}, t[
|
|
11936
|
+
}, t[107] = Cn) : Cn = t[107];
|
|
11939
11937
|
const Fn = r ?? "Anlegen";
|
|
11940
11938
|
let Mn;
|
|
11941
|
-
t[
|
|
11939
|
+
t[108] === Symbol.for("react.memo_cache_sentinel") ? (Mn = () => {
|
|
11942
11940
|
Ae(!1);
|
|
11943
|
-
}, t[
|
|
11941
|
+
}, t[108] = Mn) : Mn = t[108];
|
|
11944
11942
|
let un;
|
|
11945
|
-
t[
|
|
11943
|
+
t[109] !== c ? (un = c.filter(c4), t[109] = c, t[110] = un) : un = t[110];
|
|
11946
11944
|
let ln;
|
|
11947
|
-
t[
|
|
11945
|
+
t[111] !== g || t[112] !== s || t[113] !== k || t[114] !== un ? (ln = /* @__PURE__ */ R.jsx(tx, { queryKey: s, apiPath: g, onClose: Mn, fields: un, steps: k }), t[111] = g, t[112] = s, t[113] = k, t[114] = un, t[115] = ln) : ln = t[115];
|
|
11948
11946
|
let et;
|
|
11949
|
-
t[
|
|
11947
|
+
t[116] !== ae || t[117] !== Fn || t[118] !== ln ? (et = /* @__PURE__ */ R.jsx(Nu, { opened: ae, onClose: Cn, title: Fn, children: ln }), t[116] = ae, t[117] = Fn, t[118] = ln, t[119] = et) : et = t[119];
|
|
11950
11948
|
let Wt;
|
|
11951
|
-
return t[
|
|
11949
|
+
return t[120] !== Me || t[121] !== Ge || t[122] !== Ye || t[123] !== Xe || t[124] !== xt || t[125] !== Jt || t[126] !== et ? (Wt = /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
11952
11950
|
Me,
|
|
11953
11951
|
Ge,
|
|
11954
11952
|
Ye,
|
|
@@ -11956,7 +11954,7 @@ function l4(i) {
|
|
|
11956
11954
|
xt,
|
|
11957
11955
|
Jt,
|
|
11958
11956
|
et
|
|
11959
|
-
] }), t[
|
|
11957
|
+
] }), t[120] = Me, t[121] = Ge, t[122] = Ye, t[123] = Xe, t[124] = xt, t[125] = Jt, t[126] = et, t[127] = Wt) : Wt = t[127], Wt;
|
|
11960
11958
|
}
|
|
11961
11959
|
function c4(i) {
|
|
11962
11960
|
return i.create;
|