@espresso-lab/mantine-data-table 1.9.2 → 1.9.3
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 +323 -323
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -481,7 +481,7 @@ var My = class extends ss {
|
|
|
481
481
|
...Py(D.data, i.options)
|
|
482
482
|
}), n._optimisticResults === "isRestoring" && (R.fetchStatus = "idle");
|
|
483
483
|
}
|
|
484
|
-
let { error: L, errorUpdatedAt:
|
|
484
|
+
let { error: L, errorUpdatedAt: $, status: B } = R;
|
|
485
485
|
k = R.data;
|
|
486
486
|
let V = !1;
|
|
487
487
|
if (n.placeholderData !== void 0 && k === void 0 && B === "pending") {
|
|
@@ -504,7 +504,7 @@ var My = class extends ss {
|
|
|
504
504
|
} catch (J) {
|
|
505
505
|
this.#a = J;
|
|
506
506
|
}
|
|
507
|
-
this.#a && (L = this.#a, k = this.#h,
|
|
507
|
+
this.#a && (L = this.#a, k = this.#h, $ = Date.now(), B = "error");
|
|
508
508
|
const oe = R.fetchStatus === "fetching", ae = B === "pending", ne = B === "error", fe = ae && oe, K = k !== void 0, Z = {
|
|
509
509
|
status: B,
|
|
510
510
|
fetchStatus: R.fetchStatus,
|
|
@@ -516,7 +516,7 @@ var My = class extends ss {
|
|
|
516
516
|
data: k,
|
|
517
517
|
dataUpdatedAt: R.dataUpdatedAt,
|
|
518
518
|
error: L,
|
|
519
|
-
errorUpdatedAt:
|
|
519
|
+
errorUpdatedAt: $,
|
|
520
520
|
failureCount: R.fetchFailureCount,
|
|
521
521
|
failureReason: R.fetchFailureReason,
|
|
522
522
|
errorUpdateCount: R.errorUpdateCount,
|
|
@@ -748,7 +748,7 @@ function Iy() {
|
|
|
748
748
|
switch (typeof u.tag == "number" && console.error(
|
|
749
749
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
750
750
|
), u.$$typeof) {
|
|
751
|
-
case
|
|
751
|
+
case $:
|
|
752
752
|
return "Portal";
|
|
753
753
|
case ne:
|
|
754
754
|
return (u.displayName || "Context") + ".Provider";
|
|
@@ -780,11 +780,11 @@ function Iy() {
|
|
|
780
780
|
}
|
|
781
781
|
if (m) {
|
|
782
782
|
m = console;
|
|
783
|
-
var C = m.error,
|
|
783
|
+
var C = m.error, I = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
784
784
|
return C.call(
|
|
785
785
|
m,
|
|
786
786
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
787
|
-
|
|
787
|
+
I
|
|
788
788
|
), n(u);
|
|
789
789
|
}
|
|
790
790
|
}
|
|
@@ -831,7 +831,7 @@ function Iy() {
|
|
|
831
831
|
"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."
|
|
832
832
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
833
833
|
}
|
|
834
|
-
function D(u, m, C,
|
|
834
|
+
function D(u, m, C, I, j, re, ue, ye) {
|
|
835
835
|
return C = re.ref, u = {
|
|
836
836
|
$$typeof: L,
|
|
837
837
|
type: u,
|
|
@@ -863,13 +863,13 @@ function Iy() {
|
|
|
863
863
|
value: ye
|
|
864
864
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
865
865
|
}
|
|
866
|
-
function R(u, m, C,
|
|
866
|
+
function R(u, m, C, I, j, re, ue, ye) {
|
|
867
867
|
var Q = m.children;
|
|
868
868
|
if (Q !== void 0)
|
|
869
|
-
if (
|
|
869
|
+
if (I)
|
|
870
870
|
if (De(Q)) {
|
|
871
|
-
for (
|
|
872
|
-
N(Q[
|
|
871
|
+
for (I = 0; I < Q.length; I++)
|
|
872
|
+
N(Q[I]);
|
|
873
873
|
Object.freeze && Object.freeze(Q);
|
|
874
874
|
} else
|
|
875
875
|
console.error(
|
|
@@ -881,18 +881,18 @@ function Iy() {
|
|
|
881
881
|
var _e = Object.keys(m).filter(function(ge) {
|
|
882
882
|
return ge !== "key";
|
|
883
883
|
});
|
|
884
|
-
|
|
884
|
+
I = 0 < _e.length ? "{key: someKey, " + _e.join(": ..., ") + ": ...}" : "{key: someKey}", w[Q + I] || (_e = 0 < _e.length ? "{" + _e.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
885
885
|
`A props object containing a "key" prop is being spread into JSX:
|
|
886
886
|
let props = %s;
|
|
887
887
|
<%s {...props} />
|
|
888
888
|
React keys must be passed directly to JSX without using spread:
|
|
889
889
|
let props = %s;
|
|
890
890
|
<%s key={someKey} {...props} />`,
|
|
891
|
-
|
|
891
|
+
I,
|
|
892
892
|
Q,
|
|
893
893
|
_e,
|
|
894
894
|
Q
|
|
895
|
-
), w[Q +
|
|
895
|
+
), w[Q + I] = !0);
|
|
896
896
|
}
|
|
897
897
|
if (Q = null, C !== void 0 && (r(C), Q = "" + C), g(m) && (r(m.key), Q = "" + m.key), "key" in m) {
|
|
898
898
|
C = {};
|
|
@@ -916,7 +916,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
916
916
|
function N(u) {
|
|
917
917
|
typeof u == "object" && u !== null && u.$$typeof === L && u._store && (u._store.validated = 1);
|
|
918
918
|
}
|
|
919
|
-
var k = ui, L = Symbol.for("react.transitional.element"),
|
|
919
|
+
var k = ui, L = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), oe = Symbol.for("react.profiler"), ae = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), fe = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), se = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), J = Symbol.for("react.lazy"), he = Symbol.for("react.activity"), le = Symbol.for("react.client.reference"), te = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, De = Array.isArray, E = console.createTask ? console.createTask : function() {
|
|
920
920
|
return null;
|
|
921
921
|
};
|
|
922
922
|
k = {
|
|
@@ -928,26 +928,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
928
928
|
k,
|
|
929
929
|
p
|
|
930
930
|
)(), d = E(s(p)), w = {};
|
|
931
|
-
ki.Fragment = B, ki.jsx = function(u, m, C,
|
|
931
|
+
ki.Fragment = B, ki.jsx = function(u, m, C, I, j) {
|
|
932
932
|
var re = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
933
933
|
return R(
|
|
934
934
|
u,
|
|
935
935
|
m,
|
|
936
936
|
C,
|
|
937
937
|
!1,
|
|
938
|
-
|
|
938
|
+
I,
|
|
939
939
|
j,
|
|
940
940
|
re ? Error("react-stack-top-frame") : v,
|
|
941
941
|
re ? E(s(u)) : d
|
|
942
942
|
);
|
|
943
|
-
}, ki.jsxs = function(u, m, C,
|
|
943
|
+
}, ki.jsxs = function(u, m, C, I, j) {
|
|
944
944
|
var re = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
945
945
|
return R(
|
|
946
946
|
u,
|
|
947
947
|
m,
|
|
948
948
|
C,
|
|
949
949
|
!0,
|
|
950
|
-
|
|
950
|
+
I,
|
|
951
951
|
j,
|
|
952
952
|
re ? Error("react-stack-top-frame") : v,
|
|
953
953
|
re ? E(s(u)) : d
|
|
@@ -1175,7 +1175,7 @@ function Qy() {
|
|
|
1175
1175
|
switch (typeof u.tag == "number" && console.error(
|
|
1176
1176
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1177
1177
|
), u.$$typeof) {
|
|
1178
|
-
case
|
|
1178
|
+
case $:
|
|
1179
1179
|
return "Portal";
|
|
1180
1180
|
case ne:
|
|
1181
1181
|
return (u.displayName || "Context") + ".Provider";
|
|
@@ -1207,11 +1207,11 @@ function Qy() {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
if (m) {
|
|
1209
1209
|
m = console;
|
|
1210
|
-
var C = m.error,
|
|
1210
|
+
var C = m.error, I = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
1211
1211
|
return C.call(
|
|
1212
1212
|
m,
|
|
1213
1213
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1214
|
-
|
|
1214
|
+
I
|
|
1215
1215
|
), n(u);
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
@@ -1258,7 +1258,7 @@ function Qy() {
|
|
|
1258
1258
|
"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."
|
|
1259
1259
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
1260
1260
|
}
|
|
1261
|
-
function D(u, m, C,
|
|
1261
|
+
function D(u, m, C, I, j, re, ue, ye) {
|
|
1262
1262
|
return C = re.ref, u = {
|
|
1263
1263
|
$$typeof: L,
|
|
1264
1264
|
type: u,
|
|
@@ -1290,13 +1290,13 @@ function Qy() {
|
|
|
1290
1290
|
value: ye
|
|
1291
1291
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
1292
1292
|
}
|
|
1293
|
-
function R(u, m, C,
|
|
1293
|
+
function R(u, m, C, I, j, re, ue, ye) {
|
|
1294
1294
|
var Q = m.children;
|
|
1295
1295
|
if (Q !== void 0)
|
|
1296
|
-
if (
|
|
1296
|
+
if (I)
|
|
1297
1297
|
if (De(Q)) {
|
|
1298
|
-
for (
|
|
1299
|
-
N(Q[
|
|
1298
|
+
for (I = 0; I < Q.length; I++)
|
|
1299
|
+
N(Q[I]);
|
|
1300
1300
|
Object.freeze && Object.freeze(Q);
|
|
1301
1301
|
} else
|
|
1302
1302
|
console.error(
|
|
@@ -1308,18 +1308,18 @@ function Qy() {
|
|
|
1308
1308
|
var _e = Object.keys(m).filter(function(ge) {
|
|
1309
1309
|
return ge !== "key";
|
|
1310
1310
|
});
|
|
1311
|
-
|
|
1311
|
+
I = 0 < _e.length ? "{key: someKey, " + _e.join(": ..., ") + ": ...}" : "{key: someKey}", w[Q + I] || (_e = 0 < _e.length ? "{" + _e.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1312
1312
|
`A props object containing a "key" prop is being spread into JSX:
|
|
1313
1313
|
let props = %s;
|
|
1314
1314
|
<%s {...props} />
|
|
1315
1315
|
React keys must be passed directly to JSX without using spread:
|
|
1316
1316
|
let props = %s;
|
|
1317
1317
|
<%s key={someKey} {...props} />`,
|
|
1318
|
-
|
|
1318
|
+
I,
|
|
1319
1319
|
Q,
|
|
1320
1320
|
_e,
|
|
1321
1321
|
Q
|
|
1322
|
-
), w[Q +
|
|
1322
|
+
), w[Q + I] = !0);
|
|
1323
1323
|
}
|
|
1324
1324
|
if (Q = null, C !== void 0 && (r(C), Q = "" + C), g(m) && (r(m.key), Q = "" + m.key), "key" in m) {
|
|
1325
1325
|
C = {};
|
|
@@ -1343,7 +1343,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1343
1343
|
function N(u) {
|
|
1344
1344
|
typeof u == "object" && u !== null && u.$$typeof === L && u._store && (u._store.validated = 1);
|
|
1345
1345
|
}
|
|
1346
|
-
var k = ui, L = Symbol.for("react.transitional.element"),
|
|
1346
|
+
var k = ui, L = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), oe = Symbol.for("react.profiler"), ae = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), fe = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), se = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), J = Symbol.for("react.lazy"), he = Symbol.for("react.activity"), le = Symbol.for("react.client.reference"), te = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, De = Array.isArray, E = console.createTask ? console.createTask : function() {
|
|
1347
1347
|
return null;
|
|
1348
1348
|
};
|
|
1349
1349
|
k = {
|
|
@@ -1355,26 +1355,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1355
1355
|
k,
|
|
1356
1356
|
p
|
|
1357
1357
|
)(), d = E(s(p)), w = {};
|
|
1358
|
-
qo.Fragment = B, qo.jsx = function(u, m, C,
|
|
1358
|
+
qo.Fragment = B, qo.jsx = function(u, m, C, I, j) {
|
|
1359
1359
|
var re = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
1360
1360
|
return R(
|
|
1361
1361
|
u,
|
|
1362
1362
|
m,
|
|
1363
1363
|
C,
|
|
1364
1364
|
!1,
|
|
1365
|
-
|
|
1365
|
+
I,
|
|
1366
1366
|
j,
|
|
1367
1367
|
re ? Error("react-stack-top-frame") : v,
|
|
1368
1368
|
re ? E(s(u)) : d
|
|
1369
1369
|
);
|
|
1370
|
-
}, qo.jsxs = function(u, m, C,
|
|
1370
|
+
}, qo.jsxs = function(u, m, C, I, j) {
|
|
1371
1371
|
var re = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
1372
1372
|
return R(
|
|
1373
1373
|
u,
|
|
1374
1374
|
m,
|
|
1375
1375
|
C,
|
|
1376
1376
|
!0,
|
|
1377
|
-
|
|
1377
|
+
I,
|
|
1378
1378
|
j,
|
|
1379
1379
|
re ? Error("react-stack-top-frame") : v,
|
|
1380
1380
|
re ? E(s(u)) : d
|
|
@@ -1449,42 +1449,42 @@ function n_() {
|
|
|
1449
1449
|
i[c] = s[c], n[s.charCodeAt(c)] = c;
|
|
1450
1450
|
n[45] = 62, n[95] = 63;
|
|
1451
1451
|
function g(L) {
|
|
1452
|
-
var
|
|
1453
|
-
if (
|
|
1452
|
+
var $ = L.length;
|
|
1453
|
+
if ($ % 4 > 0)
|
|
1454
1454
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
1455
1455
|
var B = L.indexOf("=");
|
|
1456
|
-
B === -1 && (B =
|
|
1457
|
-
var V = B ===
|
|
1456
|
+
B === -1 && (B = $);
|
|
1457
|
+
var V = B === $ ? 0 : 4 - B % 4;
|
|
1458
1458
|
return [B, V];
|
|
1459
1459
|
}
|
|
1460
1460
|
function h(L) {
|
|
1461
|
-
var
|
|
1461
|
+
var $ = g(L), B = $[0], V = $[1];
|
|
1462
1462
|
return (B + V) * 3 / 4 - V;
|
|
1463
1463
|
}
|
|
1464
|
-
function S(L,
|
|
1465
|
-
return (
|
|
1464
|
+
function S(L, $, B) {
|
|
1465
|
+
return ($ + B) * 3 / 4 - B;
|
|
1466
1466
|
}
|
|
1467
1467
|
function D(L) {
|
|
1468
|
-
var
|
|
1468
|
+
var $, B = g(L), V = B[0], oe = B[1], ae = new r(S(L, V, oe)), ne = 0, fe = oe > 0 ? V - 4 : V, K;
|
|
1469
1469
|
for (K = 0; K < fe; K += 4)
|
|
1470
|
-
|
|
1471
|
-
return oe === 2 && (
|
|
1470
|
+
$ = n[L.charCodeAt(K)] << 18 | n[L.charCodeAt(K + 1)] << 12 | n[L.charCodeAt(K + 2)] << 6 | n[L.charCodeAt(K + 3)], ae[ne++] = $ >> 16 & 255, ae[ne++] = $ >> 8 & 255, ae[ne++] = $ & 255;
|
|
1471
|
+
return oe === 2 && ($ = n[L.charCodeAt(K)] << 2 | n[L.charCodeAt(K + 1)] >> 4, ae[ne++] = $ & 255), oe === 1 && ($ = n[L.charCodeAt(K)] << 10 | n[L.charCodeAt(K + 1)] << 4 | n[L.charCodeAt(K + 2)] >> 2, ae[ne++] = $ >> 8 & 255, ae[ne++] = $ & 255), ae;
|
|
1472
1472
|
}
|
|
1473
1473
|
function R(L) {
|
|
1474
1474
|
return i[L >> 18 & 63] + i[L >> 12 & 63] + i[L >> 6 & 63] + i[L & 63];
|
|
1475
1475
|
}
|
|
1476
|
-
function N(L,
|
|
1477
|
-
for (var V, oe = [], ae =
|
|
1476
|
+
function N(L, $, B) {
|
|
1477
|
+
for (var V, oe = [], ae = $; ae < B; ae += 3)
|
|
1478
1478
|
V = (L[ae] << 16 & 16711680) + (L[ae + 1] << 8 & 65280) + (L[ae + 2] & 255), oe.push(R(V));
|
|
1479
1479
|
return oe.join("");
|
|
1480
1480
|
}
|
|
1481
1481
|
function k(L) {
|
|
1482
|
-
for (var
|
|
1482
|
+
for (var $, B = L.length, V = B % 3, oe = [], ae = 16383, ne = 0, fe = B - V; ne < fe; ne += ae)
|
|
1483
1483
|
oe.push(N(L, ne, ne + ae > fe ? fe : ne + ae));
|
|
1484
|
-
return V === 1 ? (
|
|
1485
|
-
i[
|
|
1486
|
-
)) : V === 2 && (
|
|
1487
|
-
i[
|
|
1484
|
+
return V === 1 ? ($ = L[B - 1], oe.push(
|
|
1485
|
+
i[$ >> 2] + i[$ << 4 & 63] + "=="
|
|
1486
|
+
)) : V === 2 && ($ = (L[B - 2] << 8) + L[B - 1], oe.push(
|
|
1487
|
+
i[$ >> 10] + i[$ >> 4 & 63] + i[$ << 2 & 63] + "="
|
|
1488
1488
|
)), oe.join("");
|
|
1489
1489
|
}
|
|
1490
1490
|
return Ni;
|
|
@@ -1508,12 +1508,12 @@ function r_() {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
return (L ? -1 : 1) * g * Math.pow(2, p - s);
|
|
1510
1510
|
}, za.write = function(i, n, r, s, c, p) {
|
|
1511
|
-
var g, h, S, D = p * 8 - c - 1, R = (1 << D) - 1, N = R >> 1, k = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, L = s ? 0 : p - 1,
|
|
1512
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, g = R) : (g = Math.floor(Math.log(n) / Math.LN2), n * (S = Math.pow(2, -g)) < 1 && (g--, S *= 2), g + N >= 1 ? n += k / S : n += k * Math.pow(2, 1 - N), n * S >= 2 && (g++, S /= 2), g + N >= R ? (h = 0, g = R) : g + N >= 1 ? (h = (n * S - 1) * Math.pow(2, c), g = g + N) : (h = n * Math.pow(2, N - 1) * Math.pow(2, c), g = 0)); c >= 8; i[r + L] = h & 255, L +=
|
|
1511
|
+
var g, h, S, D = p * 8 - c - 1, R = (1 << D) - 1, N = R >> 1, k = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, L = s ? 0 : p - 1, $ = s ? 1 : -1, B = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
1512
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, g = R) : (g = Math.floor(Math.log(n) / Math.LN2), n * (S = Math.pow(2, -g)) < 1 && (g--, S *= 2), g + N >= 1 ? n += k / S : n += k * Math.pow(2, 1 - N), n * S >= 2 && (g++, S /= 2), g + N >= R ? (h = 0, g = R) : g + N >= 1 ? (h = (n * S - 1) * Math.pow(2, c), g = g + N) : (h = n * Math.pow(2, N - 1) * Math.pow(2, c), g = 0)); c >= 8; i[r + L] = h & 255, L += $, h /= 256, c -= 8)
|
|
1513
1513
|
;
|
|
1514
|
-
for (g = g << c | h, D += c; D > 0; i[r + L] = g & 255, L +=
|
|
1514
|
+
for (g = g << c | h, D += c; D > 0; i[r + L] = g & 255, L += $, g /= 256, D -= 8)
|
|
1515
1515
|
;
|
|
1516
|
-
i[r + L -
|
|
1516
|
+
i[r + L - $] |= B * 128;
|
|
1517
1517
|
}), za;
|
|
1518
1518
|
}
|
|
1519
1519
|
var qa, wf;
|
|
@@ -1574,7 +1574,7 @@ function o_() {
|
|
|
1574
1574
|
function S(l, f, _, M) {
|
|
1575
1575
|
if (typeof f == "number")
|
|
1576
1576
|
throw new TypeError('"value" argument must not be a number');
|
|
1577
|
-
return typeof ArrayBuffer < "u" && f instanceof ArrayBuffer ?
|
|
1577
|
+
return typeof ArrayBuffer < "u" && f instanceof ArrayBuffer ? $(l, f, _, M) : typeof f == "string" ? k(l, f, _) : B(l, f);
|
|
1578
1578
|
}
|
|
1579
1579
|
h.from = function(l, f, _) {
|
|
1580
1580
|
return S(null, l, f, _);
|
|
@@ -1620,7 +1620,7 @@ function o_() {
|
|
|
1620
1620
|
l[M] = f[M] & 255;
|
|
1621
1621
|
return l;
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function $(l, f, _, M) {
|
|
1624
1624
|
if (f.byteLength, _ < 0 || f.byteLength < _)
|
|
1625
1625
|
throw new RangeError("'offset' is out of bounds");
|
|
1626
1626
|
if (f.byteLength < _ + (M || 0))
|
|
@@ -2095,15 +2095,15 @@ function o_() {
|
|
|
2095
2095
|
}, h.prototype.writeUInt8 = function(l, f, _) {
|
|
2096
2096
|
return l = +l, f = f | 0, _ || C(this, l, f, 1, 255, 0), h.TYPED_ARRAY_SUPPORT || (l = Math.floor(l)), this[f] = l & 255, f + 1;
|
|
2097
2097
|
};
|
|
2098
|
-
function
|
|
2098
|
+
function I(l, f, _, M) {
|
|
2099
2099
|
f < 0 && (f = 65535 + f + 1);
|
|
2100
2100
|
for (var U = 0, ee = Math.min(l.length - _, 2); U < ee; ++U)
|
|
2101
2101
|
l[_ + U] = (f & 255 << 8 * (M ? U : 1 - U)) >>> (M ? U : 1 - U) * 8;
|
|
2102
2102
|
}
|
|
2103
2103
|
h.prototype.writeUInt16LE = function(l, f, _) {
|
|
2104
|
-
return l = +l, f = f | 0, _ || C(this, l, f, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[f] = l & 255, this[f + 1] = l >>> 8) :
|
|
2104
|
+
return l = +l, f = f | 0, _ || C(this, l, f, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[f] = l & 255, this[f + 1] = l >>> 8) : I(this, l, f, !0), f + 2;
|
|
2105
2105
|
}, h.prototype.writeUInt16BE = function(l, f, _) {
|
|
2106
|
-
return l = +l, f = f | 0, _ || C(this, l, f, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[f] = l >>> 8, this[f + 1] = l & 255) :
|
|
2106
|
+
return l = +l, f = f | 0, _ || C(this, l, f, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[f] = l >>> 8, this[f + 1] = l & 255) : I(this, l, f, !1), f + 2;
|
|
2107
2107
|
};
|
|
2108
2108
|
function j(l, f, _, M) {
|
|
2109
2109
|
f < 0 && (f = 4294967295 + f + 1);
|
|
@@ -2135,9 +2135,9 @@ function o_() {
|
|
|
2135
2135
|
}, h.prototype.writeInt8 = function(l, f, _) {
|
|
2136
2136
|
return l = +l, f = f | 0, _ || C(this, l, f, 1, 127, -128), h.TYPED_ARRAY_SUPPORT || (l = Math.floor(l)), l < 0 && (l = 255 + l + 1), this[f] = l & 255, f + 1;
|
|
2137
2137
|
}, h.prototype.writeInt16LE = function(l, f, _) {
|
|
2138
|
-
return l = +l, f = f | 0, _ || C(this, l, f, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[f] = l & 255, this[f + 1] = l >>> 8) :
|
|
2138
|
+
return l = +l, f = f | 0, _ || C(this, l, f, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[f] = l & 255, this[f + 1] = l >>> 8) : I(this, l, f, !0), f + 2;
|
|
2139
2139
|
}, h.prototype.writeInt16BE = function(l, f, _) {
|
|
2140
|
-
return l = +l, f = f | 0, _ || C(this, l, f, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[f] = l >>> 8, this[f + 1] = l & 255) :
|
|
2140
|
+
return l = +l, f = f | 0, _ || C(this, l, f, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[f] = l >>> 8, this[f + 1] = l & 255) : I(this, l, f, !1), f + 2;
|
|
2141
2141
|
}, h.prototype.writeInt32LE = function(l, f, _) {
|
|
2142
2142
|
return l = +l, f = f | 0, _ || C(this, l, f, 4, 2147483647, -2147483648), h.TYPED_ARRAY_SUPPORT ? (this[f] = l & 255, this[f + 1] = l >>> 8, this[f + 2] = l >>> 16, this[f + 3] = l >>> 24) : j(this, l, f, !0), f + 4;
|
|
2143
2143
|
}, h.prototype.writeInt32BE = function(l, f, _) {
|
|
@@ -2509,16 +2509,16 @@ function m_(i, n, r) {
|
|
|
2509
2509
|
}, c;
|
|
2510
2510
|
function g(k) {
|
|
2511
2511
|
s[k] && (c[k] = function(L) {
|
|
2512
|
-
return new Promise(function(
|
|
2513
|
-
p.push([k, L,
|
|
2512
|
+
return new Promise(function($, B) {
|
|
2513
|
+
p.push([k, L, $, B]) > 1 || h(k, L);
|
|
2514
2514
|
});
|
|
2515
2515
|
});
|
|
2516
2516
|
}
|
|
2517
2517
|
function h(k, L) {
|
|
2518
2518
|
try {
|
|
2519
2519
|
S(s[k](L));
|
|
2520
|
-
} catch (
|
|
2521
|
-
N(p[0][3],
|
|
2520
|
+
} catch ($) {
|
|
2521
|
+
N(p[0][3], $);
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
2524
|
function S(k) {
|
|
@@ -2728,16 +2728,16 @@ function A_() {
|
|
|
2728
2728
|
h[g * 4] = this.state[g] >>> 24 & 255, h[g * 4 + 1] = this.state[g] >>> 16 & 255, h[g * 4 + 2] = this.state[g] >>> 8 & 255, h[g * 4 + 3] = this.state[g] >>> 0 & 255;
|
|
2729
2729
|
return h;
|
|
2730
2730
|
}, r.prototype.hashBuffer = function() {
|
|
2731
|
-
for (var s = this, c = s.buffer, p = s.state, g = p[0], h = p[1], S = p[2], D = p[3], R = p[4], N = p[5], k = p[6], L = p[7],
|
|
2732
|
-
if (
|
|
2733
|
-
this.temp[
|
|
2731
|
+
for (var s = this, c = s.buffer, p = s.state, g = p[0], h = p[1], S = p[2], D = p[3], R = p[4], N = p[5], k = p[6], L = p[7], $ = 0; $ < i.BLOCK_SIZE; $++) {
|
|
2732
|
+
if ($ < 16)
|
|
2733
|
+
this.temp[$] = (c[$ * 4] & 255) << 24 | (c[$ * 4 + 1] & 255) << 16 | (c[$ * 4 + 2] & 255) << 8 | c[$ * 4 + 3] & 255;
|
|
2734
2734
|
else {
|
|
2735
|
-
var B = this.temp[
|
|
2736
|
-
B = this.temp[
|
|
2735
|
+
var B = this.temp[$ - 2], V = (B >>> 17 | B << 15) ^ (B >>> 19 | B << 13) ^ B >>> 10;
|
|
2736
|
+
B = this.temp[$ - 15];
|
|
2737
2737
|
var oe = (B >>> 7 | B << 25) ^ (B >>> 18 | B << 14) ^ B >>> 3;
|
|
2738
|
-
this.temp[
|
|
2738
|
+
this.temp[$] = (V + this.temp[$ - 7] | 0) + (oe + this.temp[$ - 16] | 0);
|
|
2739
2739
|
}
|
|
2740
|
-
var ae = (((R >>> 6 | R << 26) ^ (R >>> 11 | R << 21) ^ (R >>> 25 | R << 7)) + (R & N ^ ~R & k) | 0) + (L + (i.KEY[
|
|
2740
|
+
var ae = (((R >>> 6 | R << 26) ^ (R >>> 11 | R << 21) ^ (R >>> 25 | R << 7)) + (R & N ^ ~R & k) | 0) + (L + (i.KEY[$] + this.temp[$] | 0) | 0) | 0, ne = ((g >>> 2 | g << 30) ^ (g >>> 13 | g << 19) ^ (g >>> 22 | g << 10)) + (g & h ^ g & S ^ h & S) | 0;
|
|
2741
2741
|
L = k, k = N, N = R, R = D + ae | 0, D = S, S = h, h = g, g = ae + ne | 0;
|
|
2742
2742
|
}
|
|
2743
2743
|
p[0] += g, p[1] += h, p[2] += S, p[3] += D, p[4] += R, p[5] += N, p[6] += k, p[7] += L;
|
|
@@ -3113,10 +3113,10 @@ function c2(i, n, r) {
|
|
|
3113
3113
|
S > 0 ? (s.lShiftTo(S, p), c.lShiftTo(S, r)) : (s.copyTo(p), c.copyTo(r));
|
|
3114
3114
|
var D = p.t, R = p[D - 1];
|
|
3115
3115
|
if (R != 0) {
|
|
3116
|
-
var N = R * (1 << this.F1) + (D > 1 ? p[D - 2] >> this.F2 : 0), k = this.FV / N, L = (1 << this.F1) / N,
|
|
3116
|
+
var N = R * (1 << this.F1) + (D > 1 ? p[D - 2] >> this.F2 : 0), k = this.FV / N, L = (1 << this.F1) / N, $ = 1 << this.F2, B = r.t, V = B - D, oe = n ?? jt();
|
|
3117
3117
|
for (p.dlShiftTo(V, oe), r.compareTo(oe) >= 0 && (r[r.t++] = 1, r.subTo(oe, r)), Ie.ONE.dlShiftTo(D, oe), oe.subTo(p, p); p.t < D; ) p[p.t++] = 0;
|
|
3118
3118
|
for (; --V >= 0; ) {
|
|
3119
|
-
var ae = r[--B] == R ? this.DM : Math.floor(r[B] * k + (r[B - 1] +
|
|
3119
|
+
var ae = r[--B] == R ? this.DM : Math.floor(r[B] * k + (r[B - 1] + $) * L);
|
|
3120
3120
|
if ((r[B] += p.am(0, ae, r, V, 0, D)) < ae)
|
|
3121
3121
|
for (p.dlShiftTo(V, oe), r.subTo(oe, r); r[B] < --ae; ) r.subTo(oe, r);
|
|
3122
3122
|
}
|
|
@@ -3210,12 +3210,12 @@ function S2(i, n, r) {
|
|
|
3210
3210
|
for (g.sqrTo(h[1], N); S <= R; )
|
|
3211
3211
|
h[S] = jt(), g.mulTo(N, h[S - 2], h[S]), S += 2;
|
|
3212
3212
|
}
|
|
3213
|
-
var k = i.t - 1, L,
|
|
3213
|
+
var k = i.t - 1, L, $ = !0, B = jt(), V;
|
|
3214
3214
|
for (s = wl(i[k]) - 1; k >= 0; ) {
|
|
3215
3215
|
for (s >= D ? L = i[k] >> s - D & R : (L = (i[k] & (1 << s + 1) - 1) << D - s, k > 0 && (L |= i[k - 1] >> this.DB + s - D)), S = c; (L & 1) == 0; )
|
|
3216
3216
|
L >>= 1, --S;
|
|
3217
|
-
if ((s -= S) < 0 && (s += this.DB, --k),
|
|
3218
|
-
h[L].copyTo(p),
|
|
3217
|
+
if ((s -= S) < 0 && (s += this.DB, --k), $)
|
|
3218
|
+
h[L].copyTo(p), $ = !1;
|
|
3219
3219
|
else {
|
|
3220
3220
|
for (; S > 1; )
|
|
3221
3221
|
g.sqrTo(p, B), g.sqrTo(B, p), S -= 2;
|
|
@@ -3341,18 +3341,18 @@ function R2() {
|
|
|
3341
3341
|
}
|
|
3342
3342
|
R = p.write ? p.write(R, D) : encodeURIComponent(String(R)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), D = encodeURIComponent(String(D)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
3343
3343
|
var L = "";
|
|
3344
|
-
for (var
|
|
3345
|
-
N[
|
|
3344
|
+
for (var $ in N)
|
|
3345
|
+
N[$] && (L += "; " + $, N[$] !== !0 && (L += "=" + N[$].split(";")[0]));
|
|
3346
3346
|
return document.cookie = D + "=" + R + L;
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
3349
|
function S(D, R) {
|
|
3350
3350
|
if (!(typeof document > "u")) {
|
|
3351
3351
|
for (var N = {}, k = document.cookie ? document.cookie.split("; ") : [], L = 0; L < k.length; L++) {
|
|
3352
|
-
var
|
|
3352
|
+
var $ = k[L].split("="), B = $.slice(1).join("=");
|
|
3353
3353
|
!R && B.charAt(0) === '"' && (B = B.slice(1, -1));
|
|
3354
3354
|
try {
|
|
3355
|
-
var V = s(
|
|
3355
|
+
var V = s($[0]);
|
|
3356
3356
|
if (B = (p.read || p)(B, V) || s(B), R)
|
|
3357
3357
|
try {
|
|
3358
3358
|
B = JSON.parse(B);
|
|
@@ -3467,7 +3467,7 @@ function U2() {
|
|
|
3467
3467
|
var r = { 873: (g, h) => {
|
|
3468
3468
|
var S, D, R = function() {
|
|
3469
3469
|
var N = function(E, T) {
|
|
3470
|
-
var O = E, v = oe[T], d = null, w = 0, u = null, m = [], C = {},
|
|
3470
|
+
var O = E, v = oe[T], d = null, w = 0, u = null, m = [], C = {}, I = function(Y, G) {
|
|
3471
3471
|
d = function(F) {
|
|
3472
3472
|
for (var H = new Array(F), X = 0; X < F; X += 1) {
|
|
3473
3473
|
H[X] = new Array(F);
|
|
@@ -3576,9 +3576,9 @@ function U2() {
|
|
|
3576
3576
|
}
|
|
3577
3577
|
O = Y;
|
|
3578
3578
|
}
|
|
3579
|
-
|
|
3579
|
+
I(!1, function() {
|
|
3580
3580
|
for (var l = 0, f = 0, _ = 0; _ < 8; _ += 1) {
|
|
3581
|
-
|
|
3581
|
+
I(!0, _);
|
|
3582
3582
|
var M = ae.getLostPoint(C);
|
|
3583
3583
|
(_ == 0 || l > M) && (l = M, f = _);
|
|
3584
3584
|
}
|
|
@@ -3676,8 +3676,8 @@ function U2() {
|
|
|
3676
3676
|
}, u = 0, m = {}; ; ) {
|
|
3677
3677
|
var C = d.read();
|
|
3678
3678
|
if (C == -1) break;
|
|
3679
|
-
var
|
|
3680
|
-
m[String.fromCharCode(C << 8 |
|
|
3679
|
+
var I = w(), j = w() << 8 | w();
|
|
3680
|
+
m[String.fromCharCode(C << 8 | I)] = j, u += 1;
|
|
3681
3681
|
}
|
|
3682
3682
|
if (u != T) throw u + " != " + T;
|
|
3683
3683
|
return m;
|
|
@@ -3694,14 +3694,14 @@ function U2() {
|
|
|
3694
3694
|
return w;
|
|
3695
3695
|
};
|
|
3696
3696
|
};
|
|
3697
|
-
var k, L,
|
|
3697
|
+
var k, L, $, B, V, oe = { L: 1, M: 0, Q: 3, H: 2 }, ae = (k = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], L = 1335, $ = 7973, V = function(E) {
|
|
3698
3698
|
for (var T = 0; E != 0; ) T += 1, E >>>= 1;
|
|
3699
3699
|
return T;
|
|
3700
3700
|
}, (B = {}).getBCHTypeInfo = function(E) {
|
|
3701
3701
|
for (var T = E << 10; V(T) - V(L) >= 0; ) T ^= L << V(T) - V(L);
|
|
3702
3702
|
return 21522 ^ (E << 10 | T);
|
|
3703
3703
|
}, B.getBCHTypeNumber = function(E) {
|
|
3704
|
-
for (var T = E << 12; V(T) - V(
|
|
3704
|
+
for (var T = E << 12; V(T) - V($) >= 0; ) T ^= $ << V(T) - V($);
|
|
3705
3705
|
return E << 12 | T;
|
|
3706
3706
|
}, B.getPatternPosition = function(E) {
|
|
3707
3707
|
return k[E - 1];
|
|
@@ -3790,8 +3790,8 @@ function U2() {
|
|
|
3790
3790
|
w > 5 && (O += 3 + w - 5);
|
|
3791
3791
|
}
|
|
3792
3792
|
for (v = 0; v < T - 1; v += 1) for (d = 0; d < T - 1; d += 1) {
|
|
3793
|
-
var
|
|
3794
|
-
E.isDark(v, d) && (
|
|
3793
|
+
var I = 0;
|
|
3794
|
+
E.isDark(v, d) && (I += 1), E.isDark(v + 1, d) && (I += 1), E.isDark(v, d + 1) && (I += 1), E.isDark(v + 1, d + 1) && (I += 1), I != 0 && I != 4 || (O += 3);
|
|
3795
3795
|
}
|
|
3796
3796
|
for (v = 0; v < T; v += 1) for (d = 0; d < T - 6; d += 1) E.isDark(v, d) && !E.isDark(v, d + 1) && E.isDark(v, d + 2) && E.isDark(v, d + 3) && E.isDark(v, d + 4) && !E.isDark(v, d + 5) && E.isDark(v, d + 6) && (O += 40);
|
|
3797
3797
|
for (d = 0; d < T; d += 1) for (v = 0; v < T - 6; v += 1) E.isDark(v, d) && !E.isDark(v + 1, d) && E.isDark(v + 2, d) && E.isDark(v + 3, d) && E.isDark(v + 4, d) && !E.isDark(v + 5, d) && E.isDark(v + 6, d) && (O += 40);
|
|
@@ -3852,7 +3852,7 @@ function U2() {
|
|
|
3852
3852
|
}
|
|
3853
3853
|
}(v, d);
|
|
3854
3854
|
if (w === void 0) throw "bad rs block @ typeNumber:" + v + "/errorCorrectionLevel:" + d;
|
|
3855
|
-
for (var u = w.length / 3, m = [], C = 0; C < u; C += 1) for (var
|
|
3855
|
+
for (var u = w.length / 3, m = [], C = 0; C < u; C += 1) for (var I = w[3 * C + 0], j = w[3 * C + 1], re = w[3 * C + 2], ue = 0; ue < I; ue += 1) m.push(T(j, re));
|
|
3856
3856
|
return m;
|
|
3857
3857
|
} };
|
|
3858
3858
|
return O;
|
|
@@ -4060,16 +4060,16 @@ function U2() {
|
|
|
4060
4060
|
}, Q.toString = function() {
|
|
4061
4061
|
return ye;
|
|
4062
4062
|
}, Q;
|
|
4063
|
-
}(), C = u.toByteArray(),
|
|
4063
|
+
}(), C = u.toByteArray(), I = 0; I < C.length; I += 1) m.writeByte(C[I]);
|
|
4064
4064
|
return m.flush(), "data:image/gif;base64," + m;
|
|
4065
4065
|
};
|
|
4066
4066
|
return N;
|
|
4067
4067
|
}();
|
|
4068
4068
|
R.stringToBytesFuncs["UTF-8"] = function(N) {
|
|
4069
4069
|
return function(k) {
|
|
4070
|
-
for (var L = [],
|
|
4071
|
-
var B = k.charCodeAt(
|
|
4072
|
-
B < 128 ? L.push(B) : B < 2048 ? L.push(192 | B >> 6, 128 | 63 & B) : B < 55296 || B >= 57344 ? L.push(224 | B >> 12, 128 | B >> 6 & 63, 128 | 63 & B) : (
|
|
4070
|
+
for (var L = [], $ = 0; $ < k.length; $++) {
|
|
4071
|
+
var B = k.charCodeAt($);
|
|
4072
|
+
B < 128 ? L.push(B) : B < 2048 ? L.push(192 | B >> 6, 128 | 63 & B) : B < 55296 || B >= 57344 ? L.push(224 | B >> 12, 128 | B >> 6 & 63, 128 | 63 & B) : ($++, B = 65536 + ((1023 & B) << 10 | 1023 & k.charCodeAt($)), L.push(240 | B >> 18, 128 | B >> 12 & 63, 128 | B >> 6 & 63, 128 | 63 & B));
|
|
4073
4073
|
}
|
|
4074
4074
|
return L;
|
|
4075
4075
|
}(N);
|
|
@@ -4135,8 +4135,8 @@ function U2() {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
_rotateFigure({ x: v, y: d, size: w, rotation: u = 0, draw: m }) {
|
|
4137
4137
|
var C;
|
|
4138
|
-
const
|
|
4139
|
-
m(), (C = this._element) === null || C === void 0 || C.setAttribute("transform", `rotate(${180 * u / Math.PI},${
|
|
4138
|
+
const I = v + w / 2, j = d + w / 2;
|
|
4139
|
+
m(), (C = this._element) === null || C === void 0 || C.setAttribute("transform", `rotate(${180 * u / Math.PI},${I},${j})`);
|
|
4140
4140
|
}
|
|
4141
4141
|
_basicDot(v) {
|
|
4142
4142
|
const { size: d, x: w, y: u } = v;
|
|
@@ -4181,42 +4181,42 @@ function U2() {
|
|
|
4181
4181
|
this._basicSquare({ x: v, y: d, size: w, rotation: 0 });
|
|
4182
4182
|
}
|
|
4183
4183
|
_drawRounded({ x: v, y: d, size: w, getNeighbor: u }) {
|
|
4184
|
-
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0,
|
|
4185
|
-
if (re !== 0) if (re > 2 || m && C ||
|
|
4184
|
+
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0, I = u ? +u(0, -1) : 0, j = u ? +u(0, 1) : 0, re = m + C + I + j;
|
|
4185
|
+
if (re !== 0) if (re > 2 || m && C || I && j) this._basicSquare({ x: v, y: d, size: w, rotation: 0 });
|
|
4186
4186
|
else {
|
|
4187
4187
|
if (re === 2) {
|
|
4188
4188
|
let ue = 0;
|
|
4189
|
-
return m &&
|
|
4189
|
+
return m && I ? ue = Math.PI / 2 : I && C ? ue = Math.PI : C && j && (ue = -Math.PI / 2), void this._basicCornerRounded({ x: v, y: d, size: w, rotation: ue });
|
|
4190
4190
|
}
|
|
4191
4191
|
if (re === 1) {
|
|
4192
4192
|
let ue = 0;
|
|
4193
|
-
return
|
|
4193
|
+
return I ? ue = Math.PI / 2 : C ? ue = Math.PI : j && (ue = -Math.PI / 2), void this._basicSideRounded({ x: v, y: d, size: w, rotation: ue });
|
|
4194
4194
|
}
|
|
4195
4195
|
}
|
|
4196
4196
|
else this._basicDot({ x: v, y: d, size: w, rotation: 0 });
|
|
4197
4197
|
}
|
|
4198
4198
|
_drawExtraRounded({ x: v, y: d, size: w, getNeighbor: u }) {
|
|
4199
|
-
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0,
|
|
4200
|
-
if (re !== 0) if (re > 2 || m && C ||
|
|
4199
|
+
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0, I = u ? +u(0, -1) : 0, j = u ? +u(0, 1) : 0, re = m + C + I + j;
|
|
4200
|
+
if (re !== 0) if (re > 2 || m && C || I && j) this._basicSquare({ x: v, y: d, size: w, rotation: 0 });
|
|
4201
4201
|
else {
|
|
4202
4202
|
if (re === 2) {
|
|
4203
4203
|
let ue = 0;
|
|
4204
|
-
return m &&
|
|
4204
|
+
return m && I ? ue = Math.PI / 2 : I && C ? ue = Math.PI : C && j && (ue = -Math.PI / 2), void this._basicCornerExtraRounded({ x: v, y: d, size: w, rotation: ue });
|
|
4205
4205
|
}
|
|
4206
4206
|
if (re === 1) {
|
|
4207
4207
|
let ue = 0;
|
|
4208
|
-
return
|
|
4208
|
+
return I ? ue = Math.PI / 2 : C ? ue = Math.PI : j && (ue = -Math.PI / 2), void this._basicSideRounded({ x: v, y: d, size: w, rotation: ue });
|
|
4209
4209
|
}
|
|
4210
4210
|
}
|
|
4211
4211
|
else this._basicDot({ x: v, y: d, size: w, rotation: 0 });
|
|
4212
4212
|
}
|
|
4213
4213
|
_drawClassy({ x: v, y: d, size: w, getNeighbor: u }) {
|
|
4214
|
-
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0,
|
|
4215
|
-
m + C +
|
|
4214
|
+
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0, I = u ? +u(0, -1) : 0, j = u ? +u(0, 1) : 0;
|
|
4215
|
+
m + C + I + j !== 0 ? m || I ? C || j ? this._basicSquare({ x: v, y: d, size: w, rotation: 0 }) : this._basicCornerRounded({ x: v, y: d, size: w, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: v, y: d, size: w, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: v, y: d, size: w, rotation: Math.PI / 2 });
|
|
4216
4216
|
}
|
|
4217
4217
|
_drawClassyRounded({ x: v, y: d, size: w, getNeighbor: u }) {
|
|
4218
|
-
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0,
|
|
4219
|
-
m + C +
|
|
4218
|
+
const m = u ? +u(-1, 0) : 0, C = u ? +u(1, 0) : 0, I = u ? +u(0, -1) : 0, j = u ? +u(0, 1) : 0;
|
|
4219
|
+
m + C + I + j !== 0 ? m || I ? C || j ? this._basicSquare({ x: v, y: d, size: w, rotation: 0 }) : this._basicCornerExtraRounded({ x: v, y: d, size: w, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: v, y: d, size: w, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: v, y: d, size: w, rotation: Math.PI / 2 });
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
4222
|
const N = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, k = Object.values(N);
|
|
@@ -4240,8 +4240,8 @@ function U2() {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
_rotateFigure({ x: v, y: d, size: w, rotation: u = 0, draw: m }) {
|
|
4242
4242
|
var C;
|
|
4243
|
-
const
|
|
4244
|
-
m(), (C = this._element) === null || C === void 0 || C.setAttribute("transform", `rotate(${180 * u / Math.PI},${
|
|
4243
|
+
const I = v + w / 2, j = d + w / 2;
|
|
4244
|
+
m(), (C = this._element) === null || C === void 0 || C.setAttribute("transform", `rotate(${180 * u / Math.PI},${I},${j})`);
|
|
4245
4245
|
}
|
|
4246
4246
|
_basicDot(v) {
|
|
4247
4247
|
const { size: d, x: w, y: u } = v, m = d / 7;
|
|
@@ -4271,19 +4271,19 @@ function U2() {
|
|
|
4271
4271
|
this._basicExtraRounded({ x: v, y: d, size: w, rotation: u });
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
4274
|
-
const
|
|
4274
|
+
const $ = { dot: "dot", square: "square" }, B = Object.values($);
|
|
4275
4275
|
class V {
|
|
4276
4276
|
constructor({ svg: v, type: d, window: w }) {
|
|
4277
4277
|
this._svg = v, this._type = d, this._window = w;
|
|
4278
4278
|
}
|
|
4279
4279
|
draw(v, d, w, u) {
|
|
4280
4280
|
let m;
|
|
4281
|
-
m = this._type ===
|
|
4281
|
+
m = this._type === $.square ? this._drawSquare : this._drawDot, m.call(this, { x: v, y: d, size: w, rotation: u });
|
|
4282
4282
|
}
|
|
4283
4283
|
_rotateFigure({ x: v, y: d, size: w, rotation: u = 0, draw: m }) {
|
|
4284
4284
|
var C;
|
|
4285
|
-
const
|
|
4286
|
-
m(), (C = this._element) === null || C === void 0 || C.setAttribute("transform", `rotate(${180 * u / Math.PI},${
|
|
4285
|
+
const I = v + w / 2, j = d + w / 2;
|
|
4286
|
+
m(), (C = this._element) === null || C === void 0 || C.setAttribute("transform", `rotate(${180 * u / Math.PI},${I},${j})`);
|
|
4287
4287
|
}
|
|
4288
4288
|
_basicDot(v) {
|
|
4289
4289
|
const { size: d, x: w, y: u } = v;
|
|
@@ -4323,7 +4323,7 @@ function U2() {
|
|
|
4323
4323
|
let C = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
|
|
4324
4324
|
if (this._qr = v, this._options.image) {
|
|
4325
4325
|
if (await this.loadImage(), !this._image) return;
|
|
4326
|
-
const { imageOptions:
|
|
4326
|
+
const { imageOptions: I, qrOptions: j } = this._options, re = I.imageSize * D[j.errorCorrectionLevel], ue = Math.floor(re * d * d);
|
|
4327
4327
|
C = function({ originalHeight: ye, originalWidth: Q, maxHiddenDots: _e, maxHiddenAxisDots: me, dotSize: ge }) {
|
|
4328
4328
|
const Y = { x: 0, y: 0 }, G = { x: 0, y: 0 };
|
|
4329
4329
|
if (ye <= 0 || Q <= 0 || _e <= 0 || ge <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
|
|
@@ -4331,20 +4331,20 @@ function U2() {
|
|
|
4331
4331
|
return Y.x = Math.floor(Math.sqrt(_e / F)), Y.x <= 0 && (Y.x = 1), me && me < Y.x && (Y.x = me), Y.x % 2 == 0 && Y.x--, G.x = Y.x * ge, Y.y = 1 + 2 * Math.ceil((Y.x * F - 1) / 2), G.y = Math.round(G.x * F), (Y.y * Y.x > _e || me && me < Y.y) && (me && me < Y.y ? (Y.y = me, Y.y % 2 == 0 && Y.x--) : Y.y -= 2, G.y = Y.y * ge, Y.x = 1 + 2 * Math.ceil((Y.y / F - 1) / 2), G.x = Math.round(G.y / F)), { height: G.y, width: G.x, hideYDots: Y.y, hideXDots: Y.x };
|
|
4332
4332
|
}({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: ue, maxHiddenAxisDots: d - 14, dotSize: m });
|
|
4333
4333
|
}
|
|
4334
|
-
this.drawBackground(), this.drawDots((
|
|
4334
|
+
this.drawBackground(), this.drawDots((I, j) => {
|
|
4335
4335
|
var re, ue, ye, Q, _e, me;
|
|
4336
|
-
return !(this._options.imageOptions.hideBackgroundDots &&
|
|
4336
|
+
return !(this._options.imageOptions.hideBackgroundDots && I >= (d - C.hideYDots) / 2 && I < (d + C.hideYDots) / 2 && j >= (d - C.hideXDots) / 2 && j < (d + C.hideXDots) / 2 || !((re = ae[I]) === null || re === void 0) && re[j] || !((ue = ae[I - d + 7]) === null || ue === void 0) && ue[j] || !((ye = ae[I]) === null || ye === void 0) && ye[j - d + 7] || !((Q = ne[I]) === null || Q === void 0) && Q[j] || !((_e = ne[I - d + 7]) === null || _e === void 0) && _e[j] || !((me = ne[I]) === null || me === void 0) && me[j - d + 7]);
|
|
4337
4337
|
}), this.drawCorners(), this._options.image && await this.drawImage({ width: C.width, height: C.height, count: d, dotSize: m });
|
|
4338
4338
|
}
|
|
4339
4339
|
drawBackground() {
|
|
4340
4340
|
var v, d, w;
|
|
4341
4341
|
const u = this._element, m = this._options;
|
|
4342
4342
|
if (u) {
|
|
4343
|
-
const C = (v = m.backgroundOptions) === null || v === void 0 ? void 0 : v.gradient,
|
|
4343
|
+
const C = (v = m.backgroundOptions) === null || v === void 0 ? void 0 : v.gradient, I = (d = m.backgroundOptions) === null || d === void 0 ? void 0 : d.color;
|
|
4344
4344
|
let j = m.height, re = m.width;
|
|
4345
|
-
if (C ||
|
|
4345
|
+
if (C || I) {
|
|
4346
4346
|
const ue = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
4347
|
-
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), !((w = m.backgroundOptions) === null || w === void 0) && w.round && (j = re = Math.min(m.width, m.height), ue.setAttribute("rx", String(j / 2 * m.backgroundOptions.round))), ue.setAttribute("x", String(this._roundSize((m.width - re) / 2))), ue.setAttribute("y", String(this._roundSize((m.height - j) / 2))), ue.setAttribute("width", String(re)), ue.setAttribute("height", String(j)), this._backgroundClipPath.appendChild(ue), this._createColor({ options: C, color:
|
|
4347
|
+
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), !((w = m.backgroundOptions) === null || w === void 0) && w.round && (j = re = Math.min(m.width, m.height), ue.setAttribute("rx", String(j / 2 * m.backgroundOptions.round))), ue.setAttribute("x", String(this._roundSize((m.width - re) / 2))), ue.setAttribute("y", String(this._roundSize((m.height - j) / 2))), ue.setAttribute("width", String(re)), ue.setAttribute("height", String(j)), this._backgroundClipPath.appendChild(ue), this._createColor({ options: C, color: I, additionalRotation: 0, x: 0, y: 0, height: m.height, width: m.width, name: `background-color-${this._instanceId}` });
|
|
4348
4348
|
}
|
|
4349
4349
|
}
|
|
4350
4350
|
}
|
|
@@ -4353,7 +4353,7 @@ function U2() {
|
|
|
4353
4353
|
if (!this._qr) throw "QR code is not defined";
|
|
4354
4354
|
const u = this._options, m = this._qr.getModuleCount();
|
|
4355
4355
|
if (m > u.width || m > u.height) throw "The canvas is too small.";
|
|
4356
|
-
const C = Math.min(u.width, u.height) - 2 * u.margin,
|
|
4356
|
+
const C = Math.min(u.width, u.height) - 2 * u.margin, I = u.shape === oe ? C / Math.sqrt(2) : C, j = this._roundSize(I / m), re = this._roundSize((u.width - m * j) / 2), ue = this._roundSize((u.height - m * j) / 2), ye = new R({ svg: this._element, type: u.dotsOptions.type, window: this._window });
|
|
4357
4357
|
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: (d = u.dotsOptions) === null || d === void 0 ? void 0 : d.gradient, color: u.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: u.height, width: u.width, name: `dot-color-${this._instanceId}` });
|
|
4358
4358
|
for (let Q = 0; Q < m; Q++) for (let _e = 0; _e < m; _e++) v && !v(Q, _e) || !((w = this._qr) === null || w === void 0) && w.isDark(Q, _e) && (ye.draw(re + _e * j, ue + Q * j, j, (me, ge) => !(_e + me < 0 || Q + ge < 0 || _e + me >= m || Q + ge >= m) && !(v && !v(Q + ge, _e + me)) && !!this._qr && this._qr.isDark(Q + ge, _e + me)), ye._element && this._dotsClipPath && this._dotsClipPath.appendChild(ye._element));
|
|
4359
4359
|
if (u.shape === oe) {
|
|
@@ -4372,14 +4372,14 @@ function U2() {
|
|
|
4372
4372
|
if (!this._qr) throw "QR code is not defined";
|
|
4373
4373
|
const v = this._element, d = this._options;
|
|
4374
4374
|
if (!v) throw "Element code is not defined";
|
|
4375
|
-
const w = this._qr.getModuleCount(), u = Math.min(d.width, d.height) - 2 * d.margin, m = d.shape === oe ? u / Math.sqrt(2) : u, C = this._roundSize(m / w),
|
|
4375
|
+
const w = this._qr.getModuleCount(), u = Math.min(d.width, d.height) - 2 * d.margin, m = d.shape === oe ? u / Math.sqrt(2) : u, C = this._roundSize(m / w), I = 7 * C, j = 3 * C, re = this._roundSize((d.width - w * C) / 2), ue = this._roundSize((d.height - w * C) / 2);
|
|
4376
4376
|
[[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([ye, Q, _e]) => {
|
|
4377
4377
|
var me, ge, Y, G, F, H, X, xe, l, f, _, M, U, ee;
|
|
4378
4378
|
const Se = re + ye * C * (w - 7), be = ue + Q * C * (w - 7);
|
|
4379
4379
|
let Re = this._dotsClipPath, ve = this._dotsClipPath;
|
|
4380
|
-
if ((!((me = d.cornersSquareOptions) === null || me === void 0) && me.gradient || !((ge = d.cornersSquareOptions) === null || ge === void 0) && ge.color) && (Re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Re.setAttribute("id", `clip-path-corners-square-color-${ye}-${Q}-${this._instanceId}`), this._defs.appendChild(Re), this._cornersSquareClipPath = this._cornersDotClipPath = ve = Re, this._createColor({ options: (Y = d.cornersSquareOptions) === null || Y === void 0 ? void 0 : Y.gradient, color: (G = d.cornersSquareOptions) === null || G === void 0 ? void 0 : G.color, additionalRotation: _e, x: Se, y: be, height:
|
|
4380
|
+
if ((!((me = d.cornersSquareOptions) === null || me === void 0) && me.gradient || !((ge = d.cornersSquareOptions) === null || ge === void 0) && ge.color) && (Re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Re.setAttribute("id", `clip-path-corners-square-color-${ye}-${Q}-${this._instanceId}`), this._defs.appendChild(Re), this._cornersSquareClipPath = this._cornersDotClipPath = ve = Re, this._createColor({ options: (Y = d.cornersSquareOptions) === null || Y === void 0 ? void 0 : Y.gradient, color: (G = d.cornersSquareOptions) === null || G === void 0 ? void 0 : G.color, additionalRotation: _e, x: Se, y: be, height: I, width: I, name: `corners-square-color-${ye}-${Q}-${this._instanceId}` })), ((F = d.cornersSquareOptions) === null || F === void 0 ? void 0 : F.type) && k.includes(d.cornersSquareOptions.type)) {
|
|
4381
4381
|
const Pe = new L({ svg: this._element, type: d.cornersSquareOptions.type, window: this._window });
|
|
4382
|
-
Pe.draw(Se, be,
|
|
4382
|
+
Pe.draw(Se, be, I, _e), Pe._element && Re && Re.appendChild(Pe._element);
|
|
4383
4383
|
} else {
|
|
4384
4384
|
const Pe = new R({ svg: this._element, type: ((H = d.cornersSquareOptions) === null || H === void 0 ? void 0 : H.type) || d.dotsOptions.type, window: this._window });
|
|
4385
4385
|
for (let Le = 0; Le < ae.length; Le++) for (let Te = 0; Te < ae[Le].length; Te++) !((X = ae[Le]) === null || X === void 0) && X[Te] && (Pe.draw(Se + Te * C, be + Le * C, C, (Je, Ze) => {
|
|
@@ -4405,21 +4405,21 @@ function U2() {
|
|
|
4405
4405
|
const u = this._options;
|
|
4406
4406
|
if (!u.image) return d("Image is not defined");
|
|
4407
4407
|
if (!((w = u.nodeCanvas) === null || w === void 0) && w.loadImage) u.nodeCanvas.loadImage(u.image).then((m) => {
|
|
4408
|
-
var C,
|
|
4408
|
+
var C, I;
|
|
4409
4409
|
if (this._image = m, this._options.imageOptions.saveAsBlob) {
|
|
4410
4410
|
const j = (C = u.nodeCanvas) === null || C === void 0 ? void 0 : C.createCanvas(this._image.width, this._image.height);
|
|
4411
|
-
(
|
|
4411
|
+
(I = j?.getContext("2d")) === null || I === void 0 || I.drawImage(m, 0, 0), this._imageUri = j?.toDataURL();
|
|
4412
4412
|
}
|
|
4413
4413
|
v();
|
|
4414
4414
|
}).catch(d);
|
|
4415
4415
|
else {
|
|
4416
4416
|
const m = new this._window.Image();
|
|
4417
4417
|
typeof u.imageOptions.crossOrigin == "string" && (m.crossOrigin = u.imageOptions.crossOrigin), this._image = m, m.onload = async () => {
|
|
4418
|
-
this._options.imageOptions.saveAsBlob && (this._imageUri = await async function(C,
|
|
4418
|
+
this._options.imageOptions.saveAsBlob && (this._imageUri = await async function(C, I) {
|
|
4419
4419
|
return new Promise((j) => {
|
|
4420
|
-
const re = new
|
|
4420
|
+
const re = new I.XMLHttpRequest();
|
|
4421
4421
|
re.onload = function() {
|
|
4422
|
-
const ue = new
|
|
4422
|
+
const ue = new I.FileReader();
|
|
4423
4423
|
ue.onloadend = function() {
|
|
4424
4424
|
j(ue.result);
|
|
4425
4425
|
}, ue.readAsDataURL(re.response);
|
|
@@ -4431,18 +4431,18 @@ function U2() {
|
|
|
4431
4431
|
});
|
|
4432
4432
|
}
|
|
4433
4433
|
async drawImage({ width: v, height: d, count: w, dotSize: u }) {
|
|
4434
|
-
const m = this._options, C = this._roundSize((m.width - w * u) / 2),
|
|
4434
|
+
const m = this._options, C = this._roundSize((m.width - w * u) / 2), I = this._roundSize((m.height - w * u) / 2), j = C + this._roundSize(m.imageOptions.margin + (w * u - v) / 2), re = I + this._roundSize(m.imageOptions.margin + (w * u - d) / 2), ue = v - 2 * m.imageOptions.margin, ye = d - 2 * m.imageOptions.margin, Q = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
|
|
4435
4435
|
Q.setAttribute("href", this._imageUri || ""), Q.setAttribute("xlink:href", this._imageUri || ""), Q.setAttribute("x", String(j)), Q.setAttribute("y", String(re)), Q.setAttribute("width", `${ue}px`), Q.setAttribute("height", `${ye}px`), this._element.appendChild(Q);
|
|
4436
4436
|
}
|
|
4437
|
-
_createColor({ options: v, color: d, additionalRotation: w, x: u, y: m, height: C, width:
|
|
4438
|
-
const re =
|
|
4439
|
-
if (ue.setAttribute("x", String(u)), ue.setAttribute("y", String(m)), ue.setAttribute("height", String(C)), ue.setAttribute("width", String(
|
|
4437
|
+
_createColor({ options: v, color: d, additionalRotation: w, x: u, y: m, height: C, width: I, name: j }) {
|
|
4438
|
+
const re = I > C ? I : C, ue = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
4439
|
+
if (ue.setAttribute("x", String(u)), ue.setAttribute("y", String(m)), ue.setAttribute("height", String(C)), ue.setAttribute("width", String(I)), ue.setAttribute("clip-path", `url('#clip-path-${j}')`), v) {
|
|
4440
4440
|
let ye;
|
|
4441
|
-
if (v.type === "radial") ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ye.setAttribute("id", j), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("fx", String(u +
|
|
4441
|
+
if (v.type === "radial") ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ye.setAttribute("id", j), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("fx", String(u + I / 2)), ye.setAttribute("fy", String(m + C / 2)), ye.setAttribute("cx", String(u + I / 2)), ye.setAttribute("cy", String(m + C / 2)), ye.setAttribute("r", String(re / 2));
|
|
4442
4442
|
else {
|
|
4443
4443
|
const Q = ((v.rotation || 0) + w) % (2 * Math.PI), _e = (Q + 2 * Math.PI) % (2 * Math.PI);
|
|
4444
|
-
let me = u +
|
|
4445
|
-
_e >= 0 && _e <= 0.25 * Math.PI || _e > 1.75 * Math.PI && _e <= 2 * Math.PI ? (me -=
|
|
4444
|
+
let me = u + I / 2, ge = m + C / 2, Y = u + I / 2, G = m + C / 2;
|
|
4445
|
+
_e >= 0 && _e <= 0.25 * Math.PI || _e > 1.75 * Math.PI && _e <= 2 * Math.PI ? (me -= I / 2, ge -= C / 2 * Math.tan(Q), Y += I / 2, G += C / 2 * Math.tan(Q)) : _e > 0.25 * Math.PI && _e <= 0.75 * Math.PI ? (ge -= C / 2, me -= I / 2 / Math.tan(Q), G += C / 2, Y += I / 2 / Math.tan(Q)) : _e > 0.75 * Math.PI && _e <= 1.25 * Math.PI ? (me += I / 2, ge += C / 2 * Math.tan(Q), Y -= I / 2, G -= C / 2 * Math.tan(Q)) : _e > 1.25 * Math.PI && _e <= 1.75 * Math.PI && (ge += C / 2, me += I / 2 / Math.tan(Q), G -= C / 2, Y -= I / 2 / Math.tan(Q)), ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ye.setAttribute("id", j), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("x1", String(Math.round(me))), ye.setAttribute("y1", String(Math.round(ge))), ye.setAttribute("x2", String(Math.round(Y))), ye.setAttribute("y2", String(Math.round(G)));
|
|
4446
4446
|
}
|
|
4447
4447
|
v.colorStops.forEach(({ offset: Q, color: _e }) => {
|
|
4448
4448
|
const me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
|
|
@@ -4493,8 +4493,8 @@ function U2() {
|
|
|
4493
4493
|
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 = (d = this._svgDrawingPromise) === null || d === void 0 ? void 0 : d.then(() => {
|
|
4494
4494
|
var w;
|
|
4495
4495
|
if (!this._svg) return;
|
|
4496
|
-
const u = this._svg, m = new this._window.XMLSerializer().serializeToString(u), C = btoa(m),
|
|
4497
|
-
if (!((w = this._options.nodeCanvas) === null || w === void 0) && w.loadImage) return this._options.nodeCanvas.loadImage(
|
|
4496
|
+
const u = this._svg, m = new this._window.XMLSerializer().serializeToString(u), C = btoa(m), I = `data:${De("svg")};base64,${C}`;
|
|
4497
|
+
if (!((w = this._options.nodeCanvas) === null || w === void 0) && w.loadImage) return this._options.nodeCanvas.loadImage(I).then((j) => {
|
|
4498
4498
|
var re, ue;
|
|
4499
4499
|
j.width = this._options.width, j.height = this._options.height, (ue = (re = this._nodeCanvas) === null || re === void 0 ? void 0 : re.getContext("2d")) === null || ue === void 0 || ue.drawImage(j, 0, 0);
|
|
4500
4500
|
});
|
|
@@ -4504,7 +4504,7 @@ function U2() {
|
|
|
4504
4504
|
j.onload = () => {
|
|
4505
4505
|
var ue, ye;
|
|
4506
4506
|
(ye = (ue = this._domCanvas) === null || ue === void 0 ? void 0 : ue.getContext("2d")) === null || ye === void 0 || ye.drawImage(j, 0, 0), re();
|
|
4507
|
-
}, j.src =
|
|
4507
|
+
}, j.src = I;
|
|
4508
4508
|
});
|
|
4509
4509
|
}
|
|
4510
4510
|
}));
|
|
@@ -4803,7 +4803,7 @@ function uw() {
|
|
|
4803
4803
|
(function(r, s) {
|
|
4804
4804
|
i.exports = s();
|
|
4805
4805
|
})(lw, function() {
|
|
4806
|
-
var r = 1e3, s = 6e4, c = 36e5, p = "millisecond", g = "second", h = "minute", S = "hour", D = "day", R = "week", N = "month", k = "quarter", L = "year",
|
|
4806
|
+
var r = 1e3, s = 6e4, c = 36e5, p = "millisecond", g = "second", h = "minute", S = "hour", D = "day", R = "week", N = "month", k = "quarter", L = "year", $ = "date", B = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, oe = /\[([^\]]+)]|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, ae = { 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(E) {
|
|
4807
4807
|
var T = ["th", "st", "nd", "rd"], O = E % 100;
|
|
4808
4808
|
return "[" + E + (T[(O - 20) % 10] || T[O] || T[0]) + "]";
|
|
4809
4809
|
} }, ne = function(E, T, O) {
|
|
@@ -4819,7 +4819,7 @@ function uw() {
|
|
|
4819
4819
|
}, a: function(E) {
|
|
4820
4820
|
return E < 0 ? Math.ceil(E) || 0 : Math.floor(E);
|
|
4821
4821
|
}, p: function(E) {
|
|
4822
|
-
return { M: N, y: L, w: R, d: D, D:
|
|
4822
|
+
return { M: N, y: L, w: R, d: D, D: $, h: S, m: h, s: g, ms: p, Q: k }[E] || String(E || "").toLowerCase().replace(/s$/, "");
|
|
4823
4823
|
}, u: function(E) {
|
|
4824
4824
|
return E === void 0;
|
|
4825
4825
|
} }, K = "en", se = {};
|
|
@@ -4893,17 +4893,17 @@ function uw() {
|
|
|
4893
4893
|
return w ? ge : ge.endOf(D);
|
|
4894
4894
|
}, C = function(_e, me) {
|
|
4895
4895
|
return te.w(d.toDate()[_e].apply(d.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), d);
|
|
4896
|
-
},
|
|
4896
|
+
}, I = this.$W, j = this.$M, re = this.$D, ue = "set" + (this.$u ? "UTC" : "");
|
|
4897
4897
|
switch (u) {
|
|
4898
4898
|
case L:
|
|
4899
4899
|
return w ? m(1, 0) : m(31, 11);
|
|
4900
4900
|
case N:
|
|
4901
4901
|
return w ? m(1, j) : m(0, j + 1);
|
|
4902
4902
|
case R:
|
|
4903
|
-
var ye = this.$locale().weekStart || 0, Q = (
|
|
4903
|
+
var ye = this.$locale().weekStart || 0, Q = (I < ye ? I + 7 : I) - ye;
|
|
4904
4904
|
return m(w ? re - Q : re + (6 - Q), j);
|
|
4905
4905
|
case D:
|
|
4906
|
-
case
|
|
4906
|
+
case $:
|
|
4907
4907
|
return C(ue + "Hours", 0);
|
|
4908
4908
|
case S:
|
|
4909
4909
|
return C(ue + "Minutes", 1);
|
|
@@ -4917,10 +4917,10 @@ function uw() {
|
|
|
4917
4917
|
}, T.endOf = function(O) {
|
|
4918
4918
|
return this.startOf(O, !1);
|
|
4919
4919
|
}, T.$set = function(O, v) {
|
|
4920
|
-
var d, w = te.p(O), u = "set" + (this.$u ? "UTC" : ""), m = (d = {}, d[D] = u + "Date", d[
|
|
4920
|
+
var d, w = te.p(O), u = "set" + (this.$u ? "UTC" : ""), m = (d = {}, d[D] = u + "Date", d[$] = u + "Date", d[N] = u + "Month", d[L] = u + "FullYear", d[S] = u + "Hours", d[h] = u + "Minutes", d[g] = u + "Seconds", d[p] = u + "Milliseconds", d)[w], C = w === D ? this.$D + (v - this.$W) : v;
|
|
4921
4921
|
if (w === N || w === L) {
|
|
4922
|
-
var
|
|
4923
|
-
|
|
4922
|
+
var I = this.clone().set($, 1);
|
|
4923
|
+
I.$d[m](C), I.init(), this.$d = I.set($, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4924
4924
|
} else m && this.$d[m](C);
|
|
4925
4925
|
return this.init(), this;
|
|
4926
4926
|
}, T.set = function(O, v) {
|
|
@@ -4938,14 +4938,14 @@ function uw() {
|
|
|
4938
4938
|
if (u === L) return this.set(L, this.$y + O);
|
|
4939
4939
|
if (u === D) return m(1);
|
|
4940
4940
|
if (u === R) return m(7);
|
|
4941
|
-
var C = (d = {}, d[h] = s, d[S] = c, d[g] = r, d)[u] || 1,
|
|
4942
|
-
return te.w(
|
|
4941
|
+
var C = (d = {}, d[h] = s, d[S] = c, d[g] = r, d)[u] || 1, I = this.$d.getTime() + O * C;
|
|
4942
|
+
return te.w(I, this);
|
|
4943
4943
|
}, T.subtract = function(O, v) {
|
|
4944
4944
|
return this.add(-1 * O, v);
|
|
4945
4945
|
}, T.format = function(O) {
|
|
4946
4946
|
var v = this, d = this.$locale();
|
|
4947
4947
|
if (!this.isValid()) return d.invalidDate || B;
|
|
4948
|
-
var w = O || "YYYY-MM-DDTHH:mm:ssZ", u = te.z(this), m = this.$H, C = this.$m,
|
|
4948
|
+
var w = O || "YYYY-MM-DDTHH:mm:ssZ", u = te.z(this), m = this.$H, C = this.$m, I = this.$M, j = d.weekdays, re = d.months, ue = d.meridiem, ye = function(me, ge, Y, G) {
|
|
4949
4949
|
return me && (me[ge] || me(v, w)) || Y[ge].slice(0, G);
|
|
4950
4950
|
}, Q = function(me) {
|
|
4951
4951
|
return te.s(m % 12 || 12, me, "0");
|
|
@@ -4961,13 +4961,13 @@ function uw() {
|
|
|
4961
4961
|
case "YYYY":
|
|
4962
4962
|
return te.s(v.$y, 4, "0");
|
|
4963
4963
|
case "M":
|
|
4964
|
-
return
|
|
4964
|
+
return I + 1;
|
|
4965
4965
|
case "MM":
|
|
4966
|
-
return te.s(
|
|
4966
|
+
return te.s(I + 1, 2, "0");
|
|
4967
4967
|
case "MMM":
|
|
4968
|
-
return ye(d.monthsShort,
|
|
4968
|
+
return ye(d.monthsShort, I, re, 3);
|
|
4969
4969
|
case "MMMM":
|
|
4970
|
-
return ye(re,
|
|
4970
|
+
return ye(re, I);
|
|
4971
4971
|
case "D":
|
|
4972
4972
|
return v.$D;
|
|
4973
4973
|
case "DD":
|
|
@@ -5011,7 +5011,7 @@ function uw() {
|
|
|
5011
5011
|
}, T.utcOffset = function() {
|
|
5012
5012
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5013
5013
|
}, T.diff = function(O, v, d) {
|
|
5014
|
-
var w, u = this, m = te.p(v), C = le(O),
|
|
5014
|
+
var w, u = this, m = te.p(v), C = le(O), I = (C.utcOffset() - this.utcOffset()) * s, j = this - C, re = function() {
|
|
5015
5015
|
return te.m(u, C);
|
|
5016
5016
|
};
|
|
5017
5017
|
switch (m) {
|
|
@@ -5025,10 +5025,10 @@ function uw() {
|
|
|
5025
5025
|
w = re() / 3;
|
|
5026
5026
|
break;
|
|
5027
5027
|
case R:
|
|
5028
|
-
w = (j -
|
|
5028
|
+
w = (j - I) / 6048e5;
|
|
5029
5029
|
break;
|
|
5030
5030
|
case D:
|
|
5031
|
-
w = (j -
|
|
5031
|
+
w = (j - I) / 864e5;
|
|
5032
5032
|
break;
|
|
5033
5033
|
case S:
|
|
5034
5034
|
w = j / c;
|
|
@@ -5063,7 +5063,7 @@ function uw() {
|
|
|
5063
5063
|
return this.$d.toUTCString();
|
|
5064
5064
|
}, E;
|
|
5065
5065
|
}(), De = Ce.prototype;
|
|
5066
|
-
return le.prototype = De, [["$ms", p], ["$s", g], ["$m", h], ["$H", S], ["$W", D], ["$M", N], ["$y", L], ["$D",
|
|
5066
|
+
return le.prototype = De, [["$ms", p], ["$s", g], ["$m", h], ["$H", S], ["$W", D], ["$M", N], ["$y", L], ["$D", $]].forEach(function(E) {
|
|
5067
5067
|
De[E[1]] = function(T) {
|
|
5068
5068
|
return this.$g(T, E[0], E[1]);
|
|
5069
5069
|
};
|
|
@@ -5275,7 +5275,7 @@ const mw = Zi((i, { size: n }) => ({
|
|
|
5275
5275
|
__staticSelector: N,
|
|
5276
5276
|
weekend: k,
|
|
5277
5277
|
outside: L,
|
|
5278
|
-
selected:
|
|
5278
|
+
selected: $,
|
|
5279
5279
|
renderDay: B,
|
|
5280
5280
|
inRange: V,
|
|
5281
5281
|
firstInRange: oe,
|
|
@@ -5312,7 +5312,7 @@ const mw = Zi((i, { size: n }) => ({
|
|
|
5312
5312
|
"data-disabled": R || void 0,
|
|
5313
5313
|
"data-weekend": !R && !L && k || void 0,
|
|
5314
5314
|
"data-outside": !R && L || void 0,
|
|
5315
|
-
"data-selected": !R &&
|
|
5315
|
+
"data-selected": !R && $ || void 0,
|
|
5316
5316
|
"data-in-range": V && !R || void 0,
|
|
5317
5317
|
"data-first-in-range": oe && !R || void 0,
|
|
5318
5318
|
"data-last-in-range": ae && !R || void 0,
|
|
@@ -5354,7 +5354,7 @@ const _w = Zi((i, { size: n }) => ({
|
|
|
5354
5354
|
weekdayFormat: N,
|
|
5355
5355
|
cellComponent: k = "th",
|
|
5356
5356
|
__staticSelector: L,
|
|
5357
|
-
withWeekNumbers:
|
|
5357
|
+
withWeekNumbers: $,
|
|
5358
5358
|
attributes: B,
|
|
5359
5359
|
...V
|
|
5360
5360
|
} = r, oe = mr({
|
|
@@ -5376,7 +5376,7 @@ const _w = Zi((i, { size: n }) => ({
|
|
|
5376
5376
|
firstDayOfWeek: ae.getFirstDayOfWeek(R)
|
|
5377
5377
|
}).map((fe, K) => /* @__PURE__ */ A.jsx(k, { ...oe("weekday"), children: fe }, K));
|
|
5378
5378
|
return /* @__PURE__ */ A.jsxs(Bt, { component: "tr", ref: n, ...oe("weekdaysRow"), ...V, children: [
|
|
5379
|
-
|
|
5379
|
+
$ && /* @__PURE__ */ A.jsx(k, { ...oe("weekday"), children: "#" }),
|
|
5380
5380
|
ne
|
|
5381
5381
|
] });
|
|
5382
5382
|
});
|
|
@@ -5413,7 +5413,7 @@ function xw({
|
|
|
5413
5413
|
let k = Oe(N).add(1, "day");
|
|
5414
5414
|
for (; S.length < 6; ) {
|
|
5415
5415
|
const L = [];
|
|
5416
|
-
for (let
|
|
5416
|
+
for (let $ = 0; $ < 7; $ += 1)
|
|
5417
5417
|
L.push(k.format("YYYY-MM-DD")), k = k.add(1, "day");
|
|
5418
5418
|
S.push(L);
|
|
5419
5419
|
}
|
|
@@ -5461,8 +5461,8 @@ function Dw() {
|
|
|
5461
5461
|
return g(this).year();
|
|
5462
5462
|
}, h.isoWeek = function(D) {
|
|
5463
5463
|
if (!this.$utils().u(D)) return this.add(7 * (D - this.isoWeek()), r);
|
|
5464
|
-
var R, N, k, L,
|
|
5465
|
-
return
|
|
5464
|
+
var R, N, k, L, $ = g(this), B = (R = this.isoWeekYear(), N = this.$u, k = (N ? p.utc : p)().year(R).startOf("year"), L = 4 - k.isoWeekday(), k.isoWeekday() > 4 && (L += 7), k.add(L, r));
|
|
5465
|
+
return $.diff(B, "week") + 1;
|
|
5466
5466
|
}, h.isoWeekday = function(D) {
|
|
5467
5467
|
return this.$utils().u(D) ? this.day() || 7 : this.day(this.day() % 7 ? D : D - 7);
|
|
5468
5468
|
};
|
|
@@ -5503,7 +5503,7 @@ const Ew = {
|
|
|
5503
5503
|
firstDayOfWeek: N,
|
|
5504
5504
|
weekdayFormat: k,
|
|
5505
5505
|
month: L,
|
|
5506
|
-
weekendDays:
|
|
5506
|
+
weekendDays: $,
|
|
5507
5507
|
getDayProps: B,
|
|
5508
5508
|
excludeDate: V,
|
|
5509
5509
|
minDate: oe,
|
|
@@ -5542,7 +5542,7 @@ const Ew = {
|
|
|
5542
5542
|
month: L,
|
|
5543
5543
|
firstDayOfWeek: m.getFirstDayOfWeek(N),
|
|
5544
5544
|
consistentWeeks: m.consistentWeeks
|
|
5545
|
-
}),
|
|
5545
|
+
}), I = Cw({
|
|
5546
5546
|
dates: C,
|
|
5547
5547
|
minDate: xn(oe),
|
|
5548
5548
|
maxDate: xn(ae),
|
|
@@ -5556,7 +5556,7 @@ const Ew = {
|
|
|
5556
5556
|
props: r
|
|
5557
5557
|
}), ue = C.map((ye, Q) => {
|
|
5558
5558
|
const _e = ye.map((me, ge) => {
|
|
5559
|
-
const Y = !Sl(me, L), G = se?.(me) || Oe(me).locale(R || m.locale).format("D MMMM YYYY"), F = B?.(me), H = Oe(me).isSame(
|
|
5559
|
+
const Y = !Sl(me, L), G = se?.(me) || Oe(me).locale(R || m.locale).format("D MMMM YYYY"), F = B?.(me), H = Oe(me).isSame(I, "date");
|
|
5560
5560
|
return /* @__PURE__ */ A.jsx(
|
|
5561
5561
|
"td",
|
|
5562
5562
|
{
|
|
@@ -5574,7 +5574,7 @@ const Ew = {
|
|
|
5574
5574
|
renderDay: ne,
|
|
5575
5575
|
date: me,
|
|
5576
5576
|
size: T,
|
|
5577
|
-
weekend: m.getWeekendDays(
|
|
5577
|
+
weekend: m.getWeekendDays($).includes(Oe(me).get("day")),
|
|
5578
5578
|
outside: Y,
|
|
5579
5579
|
hidden: fe ? Y : !1,
|
|
5580
5580
|
"aria-label": G,
|
|
@@ -5647,7 +5647,7 @@ const Tw = Zi((i, { size: n }) => ({
|
|
|
5647
5647
|
inRange: N,
|
|
5648
5648
|
__staticSelector: k,
|
|
5649
5649
|
selected: L,
|
|
5650
|
-
disabled:
|
|
5650
|
+
disabled: $,
|
|
5651
5651
|
attributes: B,
|
|
5652
5652
|
...V
|
|
5653
5653
|
} = r, oe = mr({
|
|
@@ -5671,12 +5671,12 @@ const Tw = Zi((i, { size: n }) => ({
|
|
|
5671
5671
|
ref: n,
|
|
5672
5672
|
unstyled: h,
|
|
5673
5673
|
"data-picker-control": !0,
|
|
5674
|
-
"data-selected": L &&
|
|
5675
|
-
"data-disabled":
|
|
5676
|
-
"data-in-range": N &&
|
|
5677
|
-
"data-first-in-range": D &&
|
|
5678
|
-
"data-last-in-range": R &&
|
|
5679
|
-
disabled:
|
|
5674
|
+
"data-selected": L && !$ || void 0,
|
|
5675
|
+
"data-disabled": $ || void 0,
|
|
5676
|
+
"data-in-range": N && !$ && !L || void 0,
|
|
5677
|
+
"data-first-in-range": D && !$ || void 0,
|
|
5678
|
+
"data-last-in-range": R && !$ || void 0,
|
|
5679
|
+
disabled: $,
|
|
5680
5680
|
...V
|
|
5681
5681
|
}
|
|
5682
5682
|
);
|
|
@@ -5728,7 +5728,7 @@ const kw = {
|
|
|
5728
5728
|
locale: N,
|
|
5729
5729
|
minDate: k,
|
|
5730
5730
|
maxDate: L,
|
|
5731
|
-
getYearControlProps:
|
|
5731
|
+
getYearControlProps: $,
|
|
5732
5732
|
__staticSelector: B,
|
|
5733
5733
|
__getControlRef: V,
|
|
5734
5734
|
__onControlKeyDown: oe,
|
|
@@ -5756,10 +5756,10 @@ const kw = {
|
|
|
5756
5756
|
years: Ce,
|
|
5757
5757
|
minDate: k,
|
|
5758
5758
|
maxDate: L,
|
|
5759
|
-
getYearControlProps:
|
|
5759
|
+
getYearControlProps: $
|
|
5760
5760
|
}), E = Ce.map((T, O) => {
|
|
5761
5761
|
const v = T.map((d, w) => {
|
|
5762
|
-
const u =
|
|
5762
|
+
const u = $?.(d), m = Oe(d).isSame(De, "year");
|
|
5763
5763
|
return /* @__PURE__ */ A.jsx(
|
|
5764
5764
|
"td",
|
|
5765
5765
|
{
|
|
@@ -5845,7 +5845,7 @@ const $w = {
|
|
|
5845
5845
|
monthsListFormat: N,
|
|
5846
5846
|
locale: k,
|
|
5847
5847
|
minDate: L,
|
|
5848
|
-
maxDate:
|
|
5848
|
+
maxDate: $,
|
|
5849
5849
|
getMonthControlProps: B,
|
|
5850
5850
|
__getControlRef: V,
|
|
5851
5851
|
__onControlKeyDown: oe,
|
|
@@ -5872,7 +5872,7 @@ const $w = {
|
|
|
5872
5872
|
}), te = yr(), Ce = Nw(R), De = Lw({
|
|
5873
5873
|
months: Ce,
|
|
5874
5874
|
minDate: xn(L),
|
|
5875
|
-
maxDate: xn(
|
|
5875
|
+
maxDate: xn($),
|
|
5876
5876
|
getMonthControlProps: B
|
|
5877
5877
|
}), E = Ce.map((T, O) => {
|
|
5878
5878
|
const v = T.map((d, w) => {
|
|
@@ -5893,7 +5893,7 @@ const $w = {
|
|
|
5893
5893
|
disabled: Fh({
|
|
5894
5894
|
month: d,
|
|
5895
5895
|
minDate: xn(L),
|
|
5896
|
-
maxDate: xn(
|
|
5896
|
+
maxDate: xn($)
|
|
5897
5897
|
}),
|
|
5898
5898
|
ref: (C) => {
|
|
5899
5899
|
C && V?.(O, w, C);
|
|
@@ -5949,7 +5949,7 @@ const Iw = {
|
|
|
5949
5949
|
nextLabel: N,
|
|
5950
5950
|
previousLabel: k,
|
|
5951
5951
|
onNext: L,
|
|
5952
|
-
onPrevious:
|
|
5952
|
+
onPrevious: $,
|
|
5953
5953
|
onLevelClick: B,
|
|
5954
5954
|
label: V,
|
|
5955
5955
|
nextDisabled: oe,
|
|
@@ -5984,7 +5984,7 @@ const Iw = {
|
|
|
5984
5984
|
key: "previous",
|
|
5985
5985
|
"data-direction": "previous",
|
|
5986
5986
|
"aria-label": k,
|
|
5987
|
-
onClick:
|
|
5987
|
+
onClick: $,
|
|
5988
5988
|
unstyled: h,
|
|
5989
5989
|
onMouseDown: E,
|
|
5990
5990
|
disabled: ae,
|
|
@@ -6065,7 +6065,7 @@ const Yw = {
|
|
|
6065
6065
|
__onControlMouseEnter: k,
|
|
6066
6066
|
withCellSpacing: L,
|
|
6067
6067
|
// CalendarHeader settings
|
|
6068
|
-
__preventFocus:
|
|
6068
|
+
__preventFocus: $,
|
|
6069
6069
|
nextIcon: B,
|
|
6070
6070
|
previousIcon: V,
|
|
6071
6071
|
nextLabel: oe,
|
|
@@ -6088,7 +6088,7 @@ const Yw = {
|
|
|
6088
6088
|
size: v,
|
|
6089
6089
|
attributes: d,
|
|
6090
6090
|
...w
|
|
6091
|
-
} = r, u = yr(), [m, C] = Bw(s),
|
|
6091
|
+
} = r, u = yr(), [m, C] = Bw(s), I = {
|
|
6092
6092
|
__staticSelector: T || "DecadeLevel",
|
|
6093
6093
|
classNames: Ce,
|
|
6094
6094
|
styles: De,
|
|
@@ -6104,7 +6104,7 @@ const Yw = {
|
|
|
6104
6104
|
C,
|
|
6105
6105
|
te
|
|
6106
6106
|
)}`,
|
|
6107
|
-
__preventFocus:
|
|
6107
|
+
__preventFocus: $,
|
|
6108
6108
|
__stopPropagation: O,
|
|
6109
6109
|
nextIcon: B,
|
|
6110
6110
|
previousIcon: V,
|
|
@@ -6119,7 +6119,7 @@ const Yw = {
|
|
|
6119
6119
|
withNext: J,
|
|
6120
6120
|
withPrevious: he,
|
|
6121
6121
|
headerControlsOrder: le,
|
|
6122
|
-
|
|
6122
|
+
...I
|
|
6123
6123
|
}
|
|
6124
6124
|
),
|
|
6125
6125
|
/* @__PURE__ */ A.jsx(
|
|
@@ -6135,10 +6135,10 @@ const Yw = {
|
|
|
6135
6135
|
__onControlKeyDown: R,
|
|
6136
6136
|
__onControlClick: N,
|
|
6137
6137
|
__onControlMouseEnter: k,
|
|
6138
|
-
__preventFocus:
|
|
6138
|
+
__preventFocus: $,
|
|
6139
6139
|
__stopPropagation: O,
|
|
6140
6140
|
withCellSpacing: L,
|
|
6141
|
-
|
|
6141
|
+
...I
|
|
6142
6142
|
}
|
|
6143
6143
|
)
|
|
6144
6144
|
] });
|
|
@@ -6162,7 +6162,7 @@ const Ww = {
|
|
|
6162
6162
|
__onControlMouseEnter: k,
|
|
6163
6163
|
withCellSpacing: L,
|
|
6164
6164
|
// CalendarHeader settings
|
|
6165
|
-
__preventFocus:
|
|
6165
|
+
__preventFocus: $,
|
|
6166
6166
|
nextIcon: B,
|
|
6167
6167
|
previousIcon: V,
|
|
6168
6168
|
nextLabel: oe,
|
|
@@ -6187,7 +6187,7 @@ const Ww = {
|
|
|
6187
6187
|
unstyled: w,
|
|
6188
6188
|
attributes: u,
|
|
6189
6189
|
...m
|
|
6190
|
-
} = r, C = yr(),
|
|
6190
|
+
} = r, C = yr(), I = {
|
|
6191
6191
|
__staticSelector: E || "YearLevel",
|
|
6192
6192
|
classNames: v,
|
|
6193
6193
|
styles: d,
|
|
@@ -6200,7 +6200,7 @@ const Ww = {
|
|
|
6200
6200
|
_r,
|
|
6201
6201
|
{
|
|
6202
6202
|
label: typeof De == "function" ? De(s) : Oe(s).locale(c || C.locale).format(De),
|
|
6203
|
-
__preventFocus:
|
|
6203
|
+
__preventFocus: $,
|
|
6204
6204
|
__stopPropagation: T,
|
|
6205
6205
|
nextIcon: B,
|
|
6206
6206
|
previousIcon: V,
|
|
@@ -6216,7 +6216,7 @@ const Ww = {
|
|
|
6216
6216
|
withNext: le,
|
|
6217
6217
|
withPrevious: te,
|
|
6218
6218
|
headerControlsOrder: Ce,
|
|
6219
|
-
|
|
6219
|
+
...I
|
|
6220
6220
|
}
|
|
6221
6221
|
),
|
|
6222
6222
|
/* @__PURE__ */ A.jsx(
|
|
@@ -6232,10 +6232,10 @@ const Ww = {
|
|
|
6232
6232
|
__onControlKeyDown: R,
|
|
6233
6233
|
__onControlClick: N,
|
|
6234
6234
|
__onControlMouseEnter: k,
|
|
6235
|
-
__preventFocus:
|
|
6235
|
+
__preventFocus: $,
|
|
6236
6236
|
__stopPropagation: T,
|
|
6237
6237
|
withCellSpacing: L,
|
|
6238
|
-
|
|
6238
|
+
...I
|
|
6239
6239
|
}
|
|
6240
6240
|
)
|
|
6241
6241
|
] });
|
|
@@ -6258,7 +6258,7 @@ const Fw = {
|
|
|
6258
6258
|
maxDate: N,
|
|
6259
6259
|
renderDay: k,
|
|
6260
6260
|
hideOutsideDates: L,
|
|
6261
|
-
hideWeekdays:
|
|
6261
|
+
hideWeekdays: $,
|
|
6262
6262
|
getDayAriaLabel: B,
|
|
6263
6263
|
__getDayRef: V,
|
|
6264
6264
|
__onDayKeyDown: oe,
|
|
@@ -6285,7 +6285,7 @@ const Fw = {
|
|
|
6285
6285
|
withPrevious: m,
|
|
6286
6286
|
headerControlsOrder: C,
|
|
6287
6287
|
// Other props
|
|
6288
|
-
monthLabelFormat:
|
|
6288
|
+
monthLabelFormat: I,
|
|
6289
6289
|
classNames: j,
|
|
6290
6290
|
styles: re,
|
|
6291
6291
|
unstyled: ue,
|
|
@@ -6306,7 +6306,7 @@ const Fw = {
|
|
|
6306
6306
|
/* @__PURE__ */ A.jsx(
|
|
6307
6307
|
_r,
|
|
6308
6308
|
{
|
|
6309
|
-
label: typeof
|
|
6309
|
+
label: typeof I == "function" ? I(s) : Oe(s).locale(c || Y.locale).format(I),
|
|
6310
6310
|
__preventFocus: Z,
|
|
6311
6311
|
__stopPropagation: J,
|
|
6312
6312
|
nextIcon: he,
|
|
@@ -6340,7 +6340,7 @@ const Fw = {
|
|
|
6340
6340
|
maxDate: N,
|
|
6341
6341
|
renderDay: k,
|
|
6342
6342
|
hideOutsideDates: L,
|
|
6343
|
-
hideWeekdays:
|
|
6343
|
+
hideWeekdays: $,
|
|
6344
6344
|
getDayAriaLabel: B,
|
|
6345
6345
|
__getDayRef: V,
|
|
6346
6346
|
__onDayKeyDown: oe,
|
|
@@ -6405,7 +6405,7 @@ const Uw = {
|
|
|
6405
6405
|
// CalendarHeader settings
|
|
6406
6406
|
__preventFocus: k,
|
|
6407
6407
|
nextIcon: L,
|
|
6408
|
-
previousIcon:
|
|
6408
|
+
previousIcon: $,
|
|
6409
6409
|
nextLabel: B,
|
|
6410
6410
|
previousLabel: V,
|
|
6411
6411
|
onNext: oe,
|
|
@@ -6439,15 +6439,15 @@ const Uw = {
|
|
|
6439
6439
|
decadeLabelFormat: De,
|
|
6440
6440
|
__onControlClick: D,
|
|
6441
6441
|
__onControlMouseEnter: R,
|
|
6442
|
-
__onControlKeyDown: (
|
|
6442
|
+
__onControlKeyDown: (I, j) => bl({
|
|
6443
6443
|
levelIndex: m,
|
|
6444
6444
|
rowIndex: j.rowIndex,
|
|
6445
6445
|
cellIndex: j.cellIndex,
|
|
6446
|
-
event:
|
|
6446
|
+
event: I,
|
|
6447
6447
|
controlsRef: d
|
|
6448
6448
|
}),
|
|
6449
|
-
__getControlRef: (
|
|
6450
|
-
Array.isArray(d.current[m]) || (d.current[m] = []), Array.isArray(d.current[m][
|
|
6449
|
+
__getControlRef: (I, j, re) => {
|
|
6450
|
+
Array.isArray(d.current[m]) || (d.current[m] = []), Array.isArray(d.current[m][I]) || (d.current[m][I] = []), d.current[m][I][j] = re;
|
|
6451
6451
|
},
|
|
6452
6452
|
levelControlAriaLabel: typeof Ce == "function" ? Ce(C) : Ce,
|
|
6453
6453
|
locale: c,
|
|
@@ -6456,7 +6456,7 @@ const Uw = {
|
|
|
6456
6456
|
__preventFocus: k,
|
|
6457
6457
|
__stopPropagation: le,
|
|
6458
6458
|
nextIcon: L,
|
|
6459
|
-
previousIcon:
|
|
6459
|
+
previousIcon: $,
|
|
6460
6460
|
nextLabel: B,
|
|
6461
6461
|
previousLabel: V,
|
|
6462
6462
|
onNext: oe,
|
|
@@ -6509,7 +6509,7 @@ const zw = {
|
|
|
6509
6509
|
// CalendarHeader settings
|
|
6510
6510
|
__preventFocus: k,
|
|
6511
6511
|
nextIcon: L,
|
|
6512
|
-
previousIcon:
|
|
6512
|
+
previousIcon: $,
|
|
6513
6513
|
nextLabel: B,
|
|
6514
6514
|
previousLabel: V,
|
|
6515
6515
|
onNext: oe,
|
|
@@ -6532,29 +6532,29 @@ const zw = {
|
|
|
6532
6532
|
vars: v,
|
|
6533
6533
|
attributes: d,
|
|
6534
6534
|
...w
|
|
6535
|
-
} = r, u = yt([]), m = Array(De).fill(0).map((C,
|
|
6536
|
-
const j = Oe(s).add(
|
|
6535
|
+
} = r, u = yt([]), m = Array(De).fill(0).map((C, I) => {
|
|
6536
|
+
const j = Oe(s).add(I, "years").format("YYYY-MM-DD");
|
|
6537
6537
|
return /* @__PURE__ */ A.jsx(
|
|
6538
6538
|
gs,
|
|
6539
6539
|
{
|
|
6540
6540
|
size: O,
|
|
6541
6541
|
monthsListFormat: h,
|
|
6542
6542
|
year: j,
|
|
6543
|
-
withNext:
|
|
6544
|
-
withPrevious:
|
|
6543
|
+
withNext: I === De - 1,
|
|
6544
|
+
withPrevious: I === 0,
|
|
6545
6545
|
yearLabelFormat: T,
|
|
6546
6546
|
__stopPropagation: Ce,
|
|
6547
6547
|
__onControlClick: D,
|
|
6548
6548
|
__onControlMouseEnter: R,
|
|
6549
6549
|
__onControlKeyDown: (re, ue) => bl({
|
|
6550
|
-
levelIndex:
|
|
6550
|
+
levelIndex: I,
|
|
6551
6551
|
rowIndex: ue.rowIndex,
|
|
6552
6552
|
cellIndex: ue.cellIndex,
|
|
6553
6553
|
event: re,
|
|
6554
6554
|
controlsRef: u
|
|
6555
6555
|
}),
|
|
6556
6556
|
__getControlRef: (re, ue, ye) => {
|
|
6557
|
-
Array.isArray(u.current[
|
|
6557
|
+
Array.isArray(u.current[I]) || (u.current[I] = []), Array.isArray(u.current[I][re]) || (u.current[I][re] = []), u.current[I][re][ue] = ye;
|
|
6558
6558
|
},
|
|
6559
6559
|
levelControlAriaLabel: typeof E == "function" ? E(j) : E,
|
|
6560
6560
|
locale: c,
|
|
@@ -6562,7 +6562,7 @@ const zw = {
|
|
|
6562
6562
|
maxDate: g,
|
|
6563
6563
|
__preventFocus: k,
|
|
6564
6564
|
nextIcon: L,
|
|
6565
|
-
previousIcon:
|
|
6565
|
+
previousIcon: $,
|
|
6566
6566
|
nextLabel: B,
|
|
6567
6567
|
previousLabel: V,
|
|
6568
6568
|
onNext: oe,
|
|
@@ -6580,7 +6580,7 @@ const zw = {
|
|
|
6580
6580
|
headerControlsOrder: Z,
|
|
6581
6581
|
attributes: d
|
|
6582
6582
|
},
|
|
6583
|
-
|
|
6583
|
+
I
|
|
6584
6584
|
);
|
|
6585
6585
|
});
|
|
6586
6586
|
return /* @__PURE__ */ A.jsx(
|
|
@@ -6616,7 +6616,7 @@ const qw = {
|
|
|
6616
6616
|
maxDate: N,
|
|
6617
6617
|
renderDay: k,
|
|
6618
6618
|
hideOutsideDates: L,
|
|
6619
|
-
hideWeekdays:
|
|
6619
|
+
hideWeekdays: $,
|
|
6620
6620
|
getDayAriaLabel: B,
|
|
6621
6621
|
__onDayClick: V,
|
|
6622
6622
|
__onDayMouseEnter: oe,
|
|
@@ -6643,7 +6643,7 @@ const qw = {
|
|
|
6643
6643
|
numberOfColumns: u,
|
|
6644
6644
|
levelControlAriaLabel: m,
|
|
6645
6645
|
monthLabelFormat: C,
|
|
6646
|
-
__staticSelector:
|
|
6646
|
+
__staticSelector: I,
|
|
6647
6647
|
__stopPropagation: j,
|
|
6648
6648
|
size: re,
|
|
6649
6649
|
static: ue,
|
|
@@ -6683,7 +6683,7 @@ const qw = {
|
|
|
6683
6683
|
maxDate: N,
|
|
6684
6684
|
renderDay: k,
|
|
6685
6685
|
hideOutsideDates: L,
|
|
6686
|
-
hideWeekdays:
|
|
6686
|
+
hideWeekdays: $,
|
|
6687
6687
|
getDayAriaLabel: B,
|
|
6688
6688
|
__preventFocus: K,
|
|
6689
6689
|
nextIcon: se,
|
|
@@ -6699,7 +6699,7 @@ const qw = {
|
|
|
6699
6699
|
classNames: v,
|
|
6700
6700
|
styles: d,
|
|
6701
6701
|
unstyled: w,
|
|
6702
|
-
__staticSelector:
|
|
6702
|
+
__staticSelector: I || "MonthLevelGroup",
|
|
6703
6703
|
size: re,
|
|
6704
6704
|
static: ue,
|
|
6705
6705
|
withCellSpacing: ae,
|
|
@@ -6716,7 +6716,7 @@ const qw = {
|
|
|
6716
6716
|
{
|
|
6717
6717
|
classNames: v,
|
|
6718
6718
|
styles: d,
|
|
6719
|
-
__staticSelector:
|
|
6719
|
+
__staticSelector: I || "MonthLevelGroup",
|
|
6720
6720
|
ref: n,
|
|
6721
6721
|
size: re,
|
|
6722
6722
|
attributes: Q,
|
|
@@ -6782,7 +6782,7 @@ const Gw = {
|
|
|
6782
6782
|
onDateChange: N,
|
|
6783
6783
|
numberOfColumns: k,
|
|
6784
6784
|
columnsToScroll: L,
|
|
6785
|
-
ariaLabels:
|
|
6785
|
+
ariaLabels: $,
|
|
6786
6786
|
nextLabel: B,
|
|
6787
6787
|
previousLabel: V,
|
|
6788
6788
|
onYearSelect: oe,
|
|
@@ -6808,7 +6808,7 @@ const Gw = {
|
|
|
6808
6808
|
nextIcon: u,
|
|
6809
6809
|
previousIcon: m,
|
|
6810
6810
|
__onDayClick: C,
|
|
6811
|
-
__onDayMouseEnter:
|
|
6811
|
+
__onDayMouseEnter: I,
|
|
6812
6812
|
withCellSpacing: j,
|
|
6813
6813
|
highlightToday: re,
|
|
6814
6814
|
withWeekNumbers: ue,
|
|
@@ -6944,14 +6944,14 @@ const Gw = {
|
|
|
6944
6944
|
onLevelClick: () => nt("year"),
|
|
6945
6945
|
numberOfColumns: k,
|
|
6946
6946
|
locale: l,
|
|
6947
|
-
levelControlAriaLabel:
|
|
6948
|
-
nextLabel:
|
|
6947
|
+
levelControlAriaLabel: $?.monthLevelControl,
|
|
6948
|
+
nextLabel: $?.nextMonth ?? B,
|
|
6949
6949
|
nextIcon: u,
|
|
6950
|
-
previousLabel:
|
|
6950
|
+
previousLabel: $?.previousMonth ?? V,
|
|
6951
6951
|
previousIcon: m,
|
|
6952
6952
|
monthLabelFormat: w,
|
|
6953
6953
|
__onDayClick: C,
|
|
6954
|
-
__onDayMouseEnter:
|
|
6954
|
+
__onDayMouseEnter: I,
|
|
6955
6955
|
__preventFocus: M,
|
|
6956
6956
|
__stopPropagation: U,
|
|
6957
6957
|
static: Le,
|
|
@@ -6976,10 +6976,10 @@ const Gw = {
|
|
|
6976
6976
|
onPrevious: Mt,
|
|
6977
6977
|
hasNextLevel: c !== "month" && c !== "year",
|
|
6978
6978
|
onLevelClick: () => nt("decade"),
|
|
6979
|
-
levelControlAriaLabel:
|
|
6980
|
-
nextLabel:
|
|
6979
|
+
levelControlAriaLabel: $?.yearLevelControl,
|
|
6980
|
+
nextLabel: $?.nextYear ?? B,
|
|
6981
6981
|
nextIcon: u,
|
|
6982
|
-
previousLabel:
|
|
6982
|
+
previousLabel: $?.previousYear ?? V,
|
|
6983
6983
|
previousIcon: m,
|
|
6984
6984
|
yearLabelFormat: _e,
|
|
6985
6985
|
__onControlMouseEnter: fe,
|
|
@@ -7005,9 +7005,9 @@ const Gw = {
|
|
|
7005
7005
|
onNext: Ut,
|
|
7006
7006
|
onPrevious: zt,
|
|
7007
7007
|
numberOfColumns: k,
|
|
7008
|
-
nextLabel:
|
|
7008
|
+
nextLabel: $?.nextDecade ?? B,
|
|
7009
7009
|
nextIcon: u,
|
|
7010
|
-
previousLabel:
|
|
7010
|
+
previousLabel: $?.previousDecade ?? V,
|
|
7011
7011
|
previousIcon: m,
|
|
7012
7012
|
decadeLabelFormat: Y,
|
|
7013
7013
|
__onControlMouseEnter: ne,
|
|
@@ -7044,7 +7044,7 @@ function Vw(i) {
|
|
|
7044
7044
|
numberOfColumns: N,
|
|
7045
7045
|
columnsToScroll: k,
|
|
7046
7046
|
ariaLabels: L,
|
|
7047
|
-
nextLabel:
|
|
7047
|
+
nextLabel: $,
|
|
7048
7048
|
previousLabel: B,
|
|
7049
7049
|
onYearSelect: V,
|
|
7050
7050
|
onMonthSelect: oe,
|
|
@@ -7070,7 +7070,7 @@ function Vw(i) {
|
|
|
7070
7070
|
weekendDays: u,
|
|
7071
7071
|
getDayProps: m,
|
|
7072
7072
|
excludeDate: C,
|
|
7073
|
-
renderDay:
|
|
7073
|
+
renderDay: I,
|
|
7074
7074
|
hideOutsideDates: j,
|
|
7075
7075
|
hideWeekdays: re,
|
|
7076
7076
|
getDayAriaLabel: ue,
|
|
@@ -7107,7 +7107,7 @@ function Vw(i) {
|
|
|
7107
7107
|
numberOfColumns: N,
|
|
7108
7108
|
columnsToScroll: k,
|
|
7109
7109
|
ariaLabels: L,
|
|
7110
|
-
nextLabel:
|
|
7110
|
+
nextLabel: $,
|
|
7111
7111
|
previousLabel: B,
|
|
7112
7112
|
onYearSelect: V,
|
|
7113
7113
|
onMonthSelect: oe,
|
|
@@ -7132,7 +7132,7 @@ function Vw(i) {
|
|
|
7132
7132
|
weekendDays: u,
|
|
7133
7133
|
getDayProps: m,
|
|
7134
7134
|
excludeDate: C,
|
|
7135
|
-
renderDay:
|
|
7135
|
+
renderDay: I,
|
|
7136
7136
|
hideOutsideDates: j,
|
|
7137
7137
|
hideWeekdays: re,
|
|
7138
7138
|
getDayAriaLabel: ue,
|
|
@@ -7181,7 +7181,7 @@ const Qw = {
|
|
|
7181
7181
|
getDayProps: N,
|
|
7182
7182
|
locale: k,
|
|
7183
7183
|
valueFormat: L,
|
|
7184
|
-
dateParser:
|
|
7184
|
+
dateParser: $,
|
|
7185
7185
|
minDate: B,
|
|
7186
7186
|
maxDate: V,
|
|
7187
7187
|
fixOnBlur: oe,
|
|
@@ -7203,7 +7203,7 @@ const Qw = {
|
|
|
7203
7203
|
getMonthControlProps: v,
|
|
7204
7204
|
getYearControlProps: d,
|
|
7205
7205
|
...w
|
|
7206
|
-
} = r, u = yt(null), m = yt(null), [C,
|
|
7206
|
+
} = r, u = yt(null), m = yt(null), [C, I] = Ke(!1), { calendarProps: j, others: re } = Vw(w), ue = yr(), Q = $ || ((be) => {
|
|
7207
7207
|
const Re = Oe(be, L, ue.getLocale(k)).toDate();
|
|
7208
7208
|
return Number.isNaN(Re.getTime()) ? Kw(be) : Oe(Re).format("YYYY-MM-DD");
|
|
7209
7209
|
}), _e = De !== void 0 ? De : S, me = (be) => be ? Oe(be).locale(ue.getLocale(k)).format(L) : "", [ge, Y, G] = cl({
|
|
@@ -7226,27 +7226,27 @@ const Qw = {
|
|
|
7226
7226
|
}, [ue.getLocale(k)]);
|
|
7227
7227
|
const l = (be) => {
|
|
7228
7228
|
const Re = be.currentTarget.value;
|
|
7229
|
-
if (xe(Re),
|
|
7229
|
+
if (xe(Re), I(!0), Re.trim() === "" && S)
|
|
7230
7230
|
Y(null);
|
|
7231
7231
|
else {
|
|
7232
7232
|
const ve = Q(Re);
|
|
7233
7233
|
ve && Zw({ date: ve, minDate: B, maxDate: V }) && (Y(ve), H(ve));
|
|
7234
7234
|
}
|
|
7235
7235
|
}, f = (be) => {
|
|
7236
|
-
ne?.(be),
|
|
7236
|
+
ne?.(be), I(!1), oe && xe(me(ge));
|
|
7237
7237
|
}, _ = (be) => {
|
|
7238
|
-
ae?.(be),
|
|
7238
|
+
ae?.(be), I(!0);
|
|
7239
7239
|
}, M = (be) => {
|
|
7240
|
-
fe?.(be),
|
|
7240
|
+
fe?.(be), I(!0);
|
|
7241
7241
|
}, U = (be) => {
|
|
7242
|
-
be.key === "Escape" &&
|
|
7242
|
+
be.key === "Escape" && I(!1), K?.(be);
|
|
7243
7243
|
}, ee = (be) => ({
|
|
7244
7244
|
...N?.(be),
|
|
7245
7245
|
selected: Oe(ge).isSame(be, "day"),
|
|
7246
7246
|
onClick: (Re) => {
|
|
7247
7247
|
N?.(be).onClick?.(Re);
|
|
7248
7248
|
const ve = S && _e && Oe(ge).isSame(be, "day") ? null : be;
|
|
7249
|
-
Y(ve), !G && ve && xe(me(ve)),
|
|
7249
|
+
Y(ve), !G && ve && xe(me(ve)), I(!1);
|
|
7250
7250
|
}
|
|
7251
7251
|
}), Se = he || (S && ge && !se ? /* @__PURE__ */ A.jsx(
|
|
7252
7252
|
Km,
|
|
@@ -7255,7 +7255,7 @@ const Qw = {
|
|
|
7255
7255
|
onMouseDown: (be) => be.preventDefault(),
|
|
7256
7256
|
tabIndex: -1,
|
|
7257
7257
|
onClick: () => {
|
|
7258
|
-
Y(null), !G && xe(""),
|
|
7258
|
+
Y(null), !G && xe(""), I(!1);
|
|
7259
7259
|
},
|
|
7260
7260
|
unstyled: le,
|
|
7261
7261
|
size: s.size || "sm",
|
|
@@ -7264,7 +7264,7 @@ const Qw = {
|
|
|
7264
7264
|
) : null);
|
|
7265
7265
|
return vy(() => {
|
|
7266
7266
|
ge !== void 0 && !C && xe(me(ge));
|
|
7267
|
-
}, [ge]), vh(() =>
|
|
7267
|
+
}, [ge]), vh(() => I(!1), void 0, [
|
|
7268
7268
|
u.current,
|
|
7269
7269
|
m.current
|
|
7270
7270
|
]), /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
@@ -7351,9 +7351,9 @@ function Jw(i) {
|
|
|
7351
7351
|
steps: g,
|
|
7352
7352
|
onCreated: h
|
|
7353
7353
|
} = i, [S, D] = Ke(0), [R, N] = Ke(!1), [k, L] = Ke();
|
|
7354
|
-
let
|
|
7355
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
7356
|
-
const [B, V] = Ke(
|
|
7354
|
+
let $;
|
|
7355
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? ($ = {}, n[0] = $) : $ = n[0];
|
|
7356
|
+
const [B, V] = Ke($), {
|
|
7357
7357
|
mutateAsync: oe,
|
|
7358
7358
|
isError: ae,
|
|
7359
7359
|
error: ne,
|
|
@@ -7409,22 +7409,22 @@ function Jw(i) {
|
|
|
7409
7409
|
let v;
|
|
7410
7410
|
n[16] !== ne?.message || n[17] !== ne?.name || n[18] !== ae ? (v = ae && /* @__PURE__ */ A.jsx(os, { variant: "outline", color: "red", title: ne?.name ?? "Fehler aufgetreten", mb: "lg", children: ne?.message ?? "Fehler aufgetreten" }), n[16] = ne?.message, n[17] = ne?.name, n[18] = ae, n[19] = v) : v = n[19];
|
|
7411
7411
|
let d;
|
|
7412
|
-
n[20] !== S || n[21] !== oe || n[22] !== E || n[23] !== ae || n[24] !== s || n[25] !== h || n[26] !== k || n[27] !== le.length || n[28] !== K ? (d = E.onSubmit(async (
|
|
7412
|
+
n[20] !== S || n[21] !== oe || n[22] !== E || n[23] !== ae || n[24] !== s || n[25] !== h || n[26] !== k || n[27] !== le.length || n[28] !== K ? (d = E.onSubmit(async (I) => {
|
|
7413
7413
|
if (k)
|
|
7414
7414
|
await K({
|
|
7415
|
-
|
|
7415
|
+
...I,
|
|
7416
7416
|
id: k
|
|
7417
7417
|
});
|
|
7418
7418
|
else {
|
|
7419
|
-
const j = await oe(
|
|
7419
|
+
const j = await oe(I);
|
|
7420
7420
|
L(j.id), h?.(j.id);
|
|
7421
7421
|
}
|
|
7422
|
-
le.length && S < le.length - 1 ? ae || D(S + 1) : ae || (E.setInitialValues(
|
|
7422
|
+
le.length && S < le.length - 1 ? ae || D(S + 1) : ae || (E.setInitialValues(I), E.reset(), s());
|
|
7423
7423
|
}), n[20] = S, n[21] = oe, n[22] = E, n[23] = ae, n[24] = s, n[25] = h, n[26] = k, n[27] = le.length, n[28] = K, n[29] = d) : d = n[29];
|
|
7424
7424
|
let w;
|
|
7425
|
-
n[30] !== S || n[31] !== r || n[32] !== O || n[33] !== g || n[34] !== le ? (w = le.length ? /* @__PURE__ */ A.jsx(Jo, { active: S, size: "sm", children: le.map((
|
|
7426
|
-
label: g[
|
|
7427
|
-
} : {}, children: r.filter((j) => j.step ===
|
|
7425
|
+
n[30] !== S || n[31] !== r || n[32] !== O || n[33] !== g || n[34] !== le ? (w = le.length ? /* @__PURE__ */ A.jsx(Jo, { active: S, size: "sm", children: le.map((I) => /* @__PURE__ */ A.jsx(Jo.Step, { ...g && g[I - 1] ? {
|
|
7426
|
+
label: g[I - 1].label
|
|
7427
|
+
} : {}, children: r.filter((j) => j.step === I).map((j) => O(j)) }, I)) }) : r.map((I) => O(I)), n[30] = S, n[31] = r, n[32] = O, n[33] = g, n[34] = le, n[35] = w) : w = n[35];
|
|
7428
7428
|
let u;
|
|
7429
7429
|
n[36] !== S || n[37] !== R || n[38] !== Z || n[39] !== s || n[40] !== le.length ? (u = !R && /* @__PURE__ */ A.jsxs(nr, { mt: "md", justify: "end", children: [
|
|
7430
7430
|
/* @__PURE__ */ A.jsx(rr, { onClick: () => le.length ? S === 0 ? s() : D(S - 1) : s(), variant: "outline", children: le.length ? S === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
@@ -7460,8 +7460,8 @@ function ib(i) {
|
|
|
7460
7460
|
return typeof i.step == "number";
|
|
7461
7461
|
}
|
|
7462
7462
|
var [ob, Dl] = Zm("useDataTableColumnsContext must be used within DataTableColumnProvider"), Vf = (i) => {
|
|
7463
|
-
let { children: n, columnsOrder: r, setColumnsOrder: s, columnsToggle: c, setColumnsToggle: p, resetColumnsOrder: g, resetColumnsToggle: h, setColumnWidth: S, setMultipleColumnWidths: D, resetColumnsWidth: R } = i, [N, k] = Ke(""), [L,
|
|
7464
|
-
return A.jsx(ob, { value: { sourceColumn: N, setSourceColumn: k, targetColumn: L, setTargetColumn:
|
|
7463
|
+
let { children: n, columnsOrder: r, setColumnsOrder: s, columnsToggle: c, setColumnsToggle: p, resetColumnsOrder: g, resetColumnsToggle: h, setColumnWidth: S, setMultipleColumnWidths: D, resetColumnsWidth: R } = i, [N, k] = Ke(""), [L, $] = Ke("");
|
|
7464
|
+
return A.jsx(ob, { value: { sourceColumn: N, setSourceColumn: k, targetColumn: L, setTargetColumn: $, columnsToggle: c, setColumnsToggle: p, swapColumns: () => {
|
|
7465
7465
|
if (!r || !s || !N || !L) return;
|
|
7466
7466
|
let B = r.indexOf(N), V = r.indexOf(L);
|
|
7467
7467
|
if (B !== -1 && V !== -1) {
|
|
@@ -7536,10 +7536,10 @@ var ub = ({ key: i, columns: n = [], getInitialValueInEffect: r = !0 }) => {
|
|
|
7536
7536
|
let J = p(K, n), he = JSON.stringify(K);
|
|
7537
7537
|
return JSON.stringify(J) !== he && Z(J), [p(K, n), Z];
|
|
7538
7538
|
}
|
|
7539
|
-
let D = n && n.map((K) => K.accessor) || [], R = n && n.map((K) => ({ [K.accessor]: K.width ?? "initial" })) || [], N = n && n.map((K) => ({ accessor: K.accessor, defaultToggle: K.defaultToggle || !0, toggleable: K.toggleable, toggled: K.defaultToggle === void 0 ? !0 : K.defaultToggle })), [k, L] = g(), [
|
|
7539
|
+
let D = n && n.map((K) => K.accessor) || [], R = n && n.map((K) => ({ [K.accessor]: K.width ?? "initial" })) || [], N = n && n.map((K) => ({ accessor: K.accessor, defaultToggle: K.defaultToggle || !0, toggleable: K.toggleable, toggled: K.defaultToggle === void 0 ? !0 : K.defaultToggle })), [k, L] = g(), [$, B] = h(), [V, oe] = S(), ae = () => L(D), ne = () => {
|
|
7540
7540
|
B(N);
|
|
7541
7541
|
}, fe = () => oe(R);
|
|
7542
|
-
return { effectiveColumns: Lr(() => k ? k.map((K) => n.find((se) => se.accessor === K)).map((K) => ({ ...K, hidden: K?.hidden ||
|
|
7542
|
+
return { effectiveColumns: Lr(() => k ? k.map((K) => n.find((se) => se.accessor === K)).map((K) => ({ ...K, hidden: K?.hidden || !$.find((se) => se.accessor === K?.accessor)?.toggled })).map((K) => ({ ...K, width: V.find((se) => se[K?.accessor])?.[K?.accessor] })) : n, [n, k, $, V]), setColumnsOrder: L, columnsOrder: k, resetColumnsOrder: ae, columnsToggle: $, setColumnsToggle: B, resetColumnsToggle: ne, columnsWidth: V, setColumnsWidth: oe, setColumnWidth: (K, se) => {
|
|
7543
7543
|
let Z = V.map((J) => J[K] ? { [K]: se } : J);
|
|
7544
7544
|
oe(Z);
|
|
7545
7545
|
}, setMultipleColumnWidths: (K) => {
|
|
@@ -7576,21 +7576,21 @@ function Ka(i, n, r) {
|
|
|
7576
7576
|
function cb({ scrollCallbacks: i, withRowBorders: n }) {
|
|
7577
7577
|
let r = { root: yt(null), table: yt(null), scrollViewport: yt(null), header: yt(null), footer: yt(null), selectionColumnHeader: yt(null) }, { root: s, table: c, scrollViewport: p, header: g, footer: h, selectionColumnHeader: S } = r, D = Zf({ withRowBorders: n }), R = Zf(i), N = yt(() => {
|
|
7578
7578
|
}), k = yt(() => {
|
|
7579
|
-
}), L = Fn((
|
|
7580
|
-
R.current.onScroll?.(
|
|
7579
|
+
}), L = Fn(($) => {
|
|
7580
|
+
R.current.onScroll?.($), N.current();
|
|
7581
7581
|
}, []);
|
|
7582
|
-
return xt(() => Ka(g.current, (
|
|
7583
|
-
Pn(s.current, Qf, `${
|
|
7584
|
-
}, () => Pn(s.current, Qf, "0")), [g.current]), xt(() => Ka(h.current, (
|
|
7585
|
-
Pn(s.current, Jf, `${
|
|
7586
|
-
}, () => Pn(s.current, Jf, "0")), [h.current]), xt(() => Ka(S.current, (
|
|
7587
|
-
Pn(s.current, Xf, `${
|
|
7582
|
+
return xt(() => Ka(g.current, ($) => {
|
|
7583
|
+
Pn(s.current, Qf, `${$.height}px`);
|
|
7584
|
+
}, () => Pn(s.current, Qf, "0")), [g.current]), xt(() => Ka(h.current, ($) => {
|
|
7585
|
+
Pn(s.current, Jf, `${$.height}px`);
|
|
7586
|
+
}, () => Pn(s.current, Jf, "0")), [h.current]), xt(() => Ka(S.current, ($) => {
|
|
7587
|
+
Pn(s.current, Xf, `${$.width}px`);
|
|
7588
7588
|
}, () => Pn(s.current, Xf, "0")), [S.current]), Kf(() => {
|
|
7589
7589
|
if (typeof window === void 0) return;
|
|
7590
|
-
let
|
|
7590
|
+
let $ = { top: !0, bottom: !0, left: !0, right: !0 }, B = { width: 0, height: 0 }, V = { width: 0, height: 0 };
|
|
7591
7591
|
function oe(se, Z) {
|
|
7592
|
-
let J =
|
|
7593
|
-
return
|
|
7592
|
+
let J = $[se];
|
|
7593
|
+
return $[se] = Z, Pn(s.current, `--mantine-datatable-${se}-shadow-opacity`, Z ? "0" : "1"), J;
|
|
7594
7594
|
}
|
|
7595
7595
|
function ae() {
|
|
7596
7596
|
let se = B.height - V.height, Z = se < 0;
|
|
@@ -7692,11 +7692,11 @@ function mb({ rowExpansion: i, records: n, idAccessor: r }) {
|
|
|
7692
7692
|
if (i) {
|
|
7693
7693
|
let { expandable: h, trigger: S, allowMultiple: D, collapseProps: R, content: N } = i;
|
|
7694
7694
|
i.expanded ? { recordIds: c, onRecordIdsChange: p } = i.expanded : [c, p] = g;
|
|
7695
|
-
let k = (L) => p?.(c.filter((
|
|
7696
|
-
return { expandOnClick: S !== "always" && S !== "never", isRowExpanded: (L) => S === "always" ? !0 : c.includes(It(L, r)), isExpandable: ({ record: L, index:
|
|
7697
|
-
let
|
|
7698
|
-
p?.(D ? [...c,
|
|
7699
|
-
}, collapseRow: k, collapseProps: R, content: ({ record: L, index:
|
|
7695
|
+
let k = (L) => p?.(c.filter(($) => $ !== It(L, r)));
|
|
7696
|
+
return { expandOnClick: S !== "always" && S !== "never", isRowExpanded: (L) => S === "always" ? !0 : c.includes(It(L, r)), isExpandable: ({ record: L, index: $ }) => h ? h({ record: L, index: $ }) : !0, expandRow: (L) => {
|
|
7697
|
+
let $ = It(L, r);
|
|
7698
|
+
p?.(D ? [...c, $] : [$]);
|
|
7699
|
+
}, collapseRow: k, collapseProps: R, content: ({ record: L, index: $ }) => () => N({ record: L, index: $, collapse: () => k(L) }) };
|
|
7700
7700
|
}
|
|
7701
7701
|
}
|
|
7702
7702
|
function yb(i, n) {
|
|
@@ -7715,8 +7715,8 @@ function bb({ shadowVisible: i }) {
|
|
|
7715
7715
|
function xb({ className: i, style: n, columns: r, defaultColumnProps: s, selectionVisible: c, selectorCellShadowVisible: p, ref: g }) {
|
|
7716
7716
|
return A.jsx(ey, { ref: g, className: ft("mantine-datatable-footer", i), style: n, children: A.jsxs(ai, { children: [c && A.jsx(bb, { shadowVisible: p }), r.map(({ hidden: h, ...S }) => {
|
|
7717
7717
|
if (h) return null;
|
|
7718
|
-
let { accessor: D, visibleMediaQuery: R, textAlign: N, width: k, footer: L, footerClassName:
|
|
7719
|
-
return A.jsx(wb, { className:
|
|
7718
|
+
let { accessor: D, visibleMediaQuery: R, textAlign: N, width: k, footer: L, footerClassName: $, footerStyle: B, noWrap: V, ellipsis: oe } = { ...s, ...S };
|
|
7719
|
+
return A.jsx(wb, { className: $, style: B, visibleMediaQuery: R, textAlign: N, width: k, title: L, noWrap: V, ellipsis: oe }, D);
|
|
7720
7720
|
})] }) });
|
|
7721
7721
|
}
|
|
7722
7722
|
function Cb({ group: { id: i, columns: n, title: r, textAlign: s, className: c, style: p } }) {
|
|
@@ -7747,7 +7747,7 @@ var Ob = (i) => {
|
|
|
7747
7747
|
if (!k) return;
|
|
7748
7748
|
let L = k.getAttribute("data-accessor");
|
|
7749
7749
|
if (!L) return;
|
|
7750
|
-
let
|
|
7750
|
+
let $ = L === "__selection__";
|
|
7751
7751
|
c(!0), p.current = R.clientX;
|
|
7752
7752
|
let B = N.offsetWidth, V = k.offsetWidth;
|
|
7753
7753
|
g.current = { current: B, next: V };
|
|
@@ -7762,7 +7762,7 @@ var Ob = (i) => {
|
|
|
7762
7762
|
let ne = r.current, fe = ne.nextElementSibling;
|
|
7763
7763
|
c(!1), document.body.style.cursor = "initial", document.body.style.userSelect = "initial";
|
|
7764
7764
|
let K = parseInt(ne.style.width) || ne.offsetWidth, se = fe ? parseInt(fe.style.width) || fe.offsetWidth : 0, Z = [{ accessor: n, width: `${K}px` }];
|
|
7765
|
-
if (fe &&
|
|
7765
|
+
if (fe && !$) {
|
|
7766
7766
|
let J = fe.getAttribute("data-accessor");
|
|
7767
7767
|
J && Z.push({ accessor: J, width: `${se}px` });
|
|
7768
7768
|
}
|
|
@@ -7799,7 +7799,7 @@ function Pb() {
|
|
|
7799
7799
|
function Tb() {
|
|
7800
7800
|
return A.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [A.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), A.jsx("path", { d: "M18 6l-12 12" }), A.jsx("path", { d: "M6 6l12 12" })] });
|
|
7801
7801
|
}
|
|
7802
|
-
function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title: c, sortable: p, draggable: g, toggleable: h, resizable: S, sortIcons: D, textAlign: R, width: N, sortStatus: k, onSortStatusChange: L, filter:
|
|
7802
|
+
function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title: c, sortable: p, draggable: g, toggleable: h, resizable: S, sortIcons: D, textAlign: R, width: N, sortStatus: k, onSortStatusChange: L, filter: $, filterPopoverProps: B, filterPopoverDisableClickOutside: V, filtering: oe, sortKey: ae }) {
|
|
7803
7803
|
let { setSourceColumn: ne, setTargetColumn: fe, swapColumns: K, setColumnsToggle: se } = Dl(), [Z, J] = Ke(!1), he = yt(null);
|
|
7804
7804
|
if (!xs(s)) return null;
|
|
7805
7805
|
let le = c ?? Al(r), te = typeof le == "string" ? le : void 0, Ce = p && L ? (w) => {
|
|
@@ -7819,19 +7819,19 @@ function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title:
|
|
|
7819
7819
|
};
|
|
7820
7820
|
return A.jsxs(Ji, { "data-accessor": r, className: ft({ "mantine-datatable-header-cell-sortable": p, "mantine-datatable-header-cell-toggleable": h, "mantine-datatable-header-cell-resizable": S }, i), style: [{ width: N, ...S ? { minWidth: "1px" } : { minWidth: N, maxWidth: N } }, n], role: p ? "button" : void 0, tabIndex: p ? 0 : void 0, onClick: Ce, onKeyDown: (w) => w.key === "Enter" && Ce?.(), ref: he, children: [A.jsxs(nr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [A.jsxs(iy, { align: "center", w: "100%", className: ft({ "mantine-datatable-header-cell-draggable": g, "mantine-datatable-header-cell-drag-over": Z }), draggable: g, onDragStart: g ? De : void 0, onDragEnter: g ? O : void 0, onDragOver: g ? E : void 0, onDrop: g ? T : void 0, onDragLeave: g ? v : void 0, children: [g ? A.jsx(oi, { role: "img", "aria-label": "Drag column", children: A.jsx(Xo, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (w) => {
|
|
7821
7821
|
w.stopPropagation();
|
|
7822
|
-
}, children: A.jsx(Pb, {}) }) }) : null, A.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: te, children: le })] }), h ? A.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: A.jsx(Xo, { size: "xs", variant: "light", onClick: d, children: A.jsx(Tb, {}) }) }) : null, p || k?.columnAccessor === r ? A.jsx(A.Fragment, { children: k?.columnAccessor === r ? A.jsx(oi, { className: ft("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: D?.sorted || A.jsx(Rb, {}) }) : A.jsx(oi, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: D?.unsorted || A.jsx(Eb, {}) }) }) : null,
|
|
7822
|
+
}, children: A.jsx(Pb, {}) }) }) : null, A.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: te, children: le })] }), h ? A.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: A.jsx(Xo, { size: "xs", variant: "light", onClick: d, children: A.jsx(Tb, {}) }) }) : null, p || k?.columnAccessor === r ? A.jsx(A.Fragment, { children: k?.columnAccessor === r ? A.jsx(oi, { className: ft("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: D?.sorted || A.jsx(Rb, {}) }) : A.jsx(oi, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: D?.unsorted || A.jsx(Eb, {}) }) }) : null, $ ? A.jsx(Ab, { filterPopoverProps: B, isActive: !!oe, filterPopoverDisableClickOutside: V, children: $ }) : null] }), S && r !== "__selection__" ? A.jsx(Ob, { accessor: r, columnRef: he }) : null] });
|
|
7823
7823
|
}
|
|
7824
7824
|
function kb({ className: i, style: n, trigger: r, shadowVisible: s, checked: c, indeterminate: p, checkboxProps: g, onChange: h, rowSpan: S, ref: D }) {
|
|
7825
7825
|
let R = !g.disabled;
|
|
7826
7826
|
return A.jsx(Ji, { ref: D, className: ft("mantine-datatable-header-selector-cell", { [li]: r === "cell" && R }, i), style: n, rowSpan: S, "data-shadow-visible": s || void 0, "data-accessor": "__selection__", onClick: r === "cell" && R ? h : void 0, children: A.jsx(Qi, { classNames: R ? { input: li } : void 0, checked: c, indeterminate: p, onChange: h, ...g, disabled: !(h || g.onChange) || g.disabled }) });
|
|
7827
7827
|
}
|
|
7828
|
-
function Lb({ selectionColumnHeaderRef: i, className: n, style: r, sortStatus: s, sortIcons: c, onSortStatusChange: p, columns: g, defaultColumnProps: h, groups: S, selectionTrigger: D, selectionVisible: R, selectionChecked: N, selectionIndeterminate: k, onSelectionChange: L, selectionCheckboxProps:
|
|
7829
|
-
let ne = R ? A.jsx(kb, { ref: i, className: V, style: oe, trigger: D, shadowVisible: B, checked: N, indeterminate: k, checkboxProps:
|
|
7828
|
+
function Lb({ selectionColumnHeaderRef: i, className: n, style: r, sortStatus: s, sortIcons: c, onSortStatusChange: p, columns: g, defaultColumnProps: h, groups: S, selectionTrigger: D, selectionVisible: R, selectionChecked: N, selectionIndeterminate: k, onSelectionChange: L, selectionCheckboxProps: $, selectorCellShadowVisible: B, selectionColumnClassName: V, selectionColumnStyle: oe, ref: ae }) {
|
|
7829
|
+
let ne = R ? A.jsx(kb, { ref: i, className: V, style: oe, trigger: D, shadowVisible: B, checked: N, indeterminate: k, checkboxProps: $, onChange: L, rowSpan: S ? 2 : void 0 }) : null, { columnsToggle: fe, setColumnsToggle: K } = Dl(), [se, Z] = Ke(!1), J = g.some((te) => te.toggleable), he = J ? Object.fromEntries(g.map(({ accessor: te, title: Ce }) => [te, Ce ?? Al(String(te))])) : void 0, le = A.jsxs(Xm, { className: ft("mantine-datatable-header", n), style: r, ref: ae, onContextMenu: J ? (te) => {
|
|
7830
7830
|
te.preventDefault(), Z((Ce) => !Ce);
|
|
7831
7831
|
} : void 0, children: [S && A.jsxs(ai, { children: [ne, S.map((te) => A.jsx(Cb, { group: te }, te.id))] }), A.jsxs(ai, { children: [!S && ne, g.map(({ hidden: te, ...Ce }, De) => {
|
|
7832
7832
|
if (te) return null;
|
|
7833
|
-
let { accessor: E, visibleMediaQuery: T, textAlign: O, width: v, title: d, sortable: w, draggable: u, toggleable: m, resizable: C, titleClassName:
|
|
7834
|
-
return A.jsx(Mb, { accessor: E, className:
|
|
7833
|
+
let { accessor: E, visibleMediaQuery: T, textAlign: O, width: v, title: d, sortable: w, draggable: u, toggleable: m, resizable: C, titleClassName: I, titleStyle: j, filter: re, filterPopoverProps: ue, filterPopoverDisableClickOutside: ye, filtering: Q, sortKey: _e } = { ...h, ...Ce };
|
|
7834
|
+
return A.jsx(Mb, { accessor: E, className: I, style: j, visibleMediaQuery: T, textAlign: O, width: v, title: d, sortable: w, draggable: u, toggleable: m, resizable: C && De < g.length - 1, sortStatus: s, sortIcons: c, sortKey: _e, onSortStatusChange: p, filter: re, filterPopoverProps: ue, filterPopoverDisableClickOutside: ye, filtering: Q }, E);
|
|
7835
7835
|
})] })] });
|
|
7836
7836
|
return J ? A.jsxs(qi, { position: "bottom", withArrow: !0, shadow: "md", opened: se, onChange: Z, children: [A.jsx(fh, { children: le }), A.jsx(hh, { children: A.jsx(dl, { children: fe.filter((te) => te.toggleable).map((te) => A.jsx(nr, { children: A.jsx(Qi, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: he[te.accessor], checked: te.toggled, onChange: (Ce) => {
|
|
7837
7837
|
K(fe.map((De) => De.accessor === te.accessor ? { ...De, toggled: Ce.currentTarget.checked } : De));
|
|
@@ -7862,17 +7862,17 @@ function Bb({ size: i, label: n, values: r, value: s, activeTextColor: c, active
|
|
|
7862
7862
|
return A.jsx(ly, { className: ft({ "mantine-datatable-page-size-selector-active": S }), style: [{ height: th[i] }, S && (c || p) ? (D) => Vh({ theme: D, paginationActiveTextColor: c, paginationActiveBackgroundColor: p }) : void 0], disabled: S, onClick: () => g(h), children: A.jsx(Gi, { component: "div", size: i, children: h }) }, h);
|
|
7863
7863
|
}) })] })] });
|
|
7864
7864
|
}
|
|
7865
|
-
function Yb({ className: i, style: n, fetching: r, page: s, onPageChange: c, paginationWithEdges: p, paginationWithControls: g, paginationActiveTextColor: h, paginationActiveBackgroundColor: S, paginationSize: D, loadingText: R, noRecordsText: N, paginationText: k, totalRecords: L, recordsPerPage:
|
|
7865
|
+
function Yb({ className: i, style: n, fetching: r, page: s, onPageChange: c, paginationWithEdges: p, paginationWithControls: g, paginationActiveTextColor: h, paginationActiveBackgroundColor: S, paginationSize: D, loadingText: R, noRecordsText: N, paginationText: k, totalRecords: L, recordsPerPage: $, onRecordsPerPageChange: B, recordsPerPageLabel: V, recordsPerPageOptions: oe, recordsLength: ae, horizontalSpacing: ne, paginationWrapBreakpoint: fe, getPaginationControlProps: K }) {
|
|
7866
7866
|
let se;
|
|
7867
7867
|
if (L) {
|
|
7868
|
-
let J = (s - 1) *
|
|
7868
|
+
let J = (s - 1) * $ + 1, he = J + (ae || 0) - 1;
|
|
7869
7869
|
se = k({ from: J, to: he, totalRecords: L });
|
|
7870
7870
|
} else se = r ? R : N;
|
|
7871
7871
|
let Z = xs(({ breakpoints: J }) => `(min-width: ${typeof fe == "number" ? `${kr(fe)}rem` : J[fe] || fe})`);
|
|
7872
|
-
return A.jsxs(Bt, { px: ne ?? "xs", py: "xs", className: ft("mantine-datatable-pagination", i), style: [{ flexDirection: Z ? "row" : "column" }, n], children: [A.jsx(Gi, { component: "div", className: "mantine-datatable-pagination-text", size: D, children: se }), oe && A.jsx(Bb, { activeTextColor: h, activeBackgroundColor: S, size: D, label: V, values: oe, value:
|
|
7872
|
+
return A.jsxs(Bt, { px: ne ?? "xs", py: "xs", className: ft("mantine-datatable-pagination", i), style: [{ flexDirection: Z ? "row" : "column" }, n], children: [A.jsx(Gi, { component: "div", className: "mantine-datatable-pagination-text", size: D, children: se }), oe && A.jsx(Bb, { activeTextColor: h, activeBackgroundColor: S, size: D, label: V, values: oe, value: $, onChange: B }), A.jsx(ty, { classNames: { root: ft("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !ae }), control: "mantine-datatable-pagination-pages-control" }, style: h || S ? (J) => Vh({ theme: J, paginationActiveTextColor: h, paginationActiveBackgroundColor: S }) : void 0, withEdges: p, withControls: g, value: s, onChange: c, size: D, total: Math.ceil(L / $), getControlProps: K })] });
|
|
7873
7873
|
}
|
|
7874
|
-
function Wb({ className: i, style: n, visibleMediaQuery: r, record: s, index: c, onClick: p, onDoubleClick: g, onContextMenu: h, noWrap: S, ellipsis: D, textAlign: R, width: N, accessor: k, render: L, defaultRender:
|
|
7875
|
-
return xs(r) ? A.jsx(pl, { className: ft({ [Ol]: S || D, [Rl]: D, [li]: p || g, [Gh]: h, [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, i), style: [{ width: N, minWidth: N, maxWidth: N }, n], onClick: p, onDoubleClick: g, onContextMenu: h, ...B?.(s, c), children: L ? L(s, c) :
|
|
7874
|
+
function Wb({ className: i, style: n, visibleMediaQuery: r, record: s, index: c, onClick: p, onDoubleClick: g, onContextMenu: h, noWrap: S, ellipsis: D, textAlign: R, width: N, accessor: k, render: L, defaultRender: $, customCellAttributes: B }) {
|
|
7875
|
+
return xs(r) ? A.jsx(pl, { className: ft({ [Ol]: S || D, [Rl]: D, [li]: p || g, [Gh]: h, [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, i), style: [{ width: N, minWidth: N, maxWidth: N }, n], onClick: p, onDoubleClick: g, onContextMenu: h, ...B?.(s, c), children: L ? L(s, c) : $ ? $(s, c, k) : Hh(s, k) }) : null;
|
|
7876
7876
|
}
|
|
7877
7877
|
function Fb({ open: i, colSpan: n, content: r, collapseProps: s }) {
|
|
7878
7878
|
let { expanded: c, visible: p } = yb(i, s?.transitionDuration);
|
|
@@ -7884,36 +7884,36 @@ function Ub({ className: i, style: n, record: r, index: s, trigger: c, onChange:
|
|
|
7884
7884
|
};
|
|
7885
7885
|
return A.jsx(pl, { className: ft("mantine-datatable-row-selector-cell", { [li]: c === "cell" && N }, i), style: n, "data-shadow-visible": g || void 0, onClick: k, children: A.jsx(Qi, { classNames: N ? { input: li } : void 0, onChange: p, ...D, ...R }) });
|
|
7886
7886
|
}
|
|
7887
|
-
function zb({ record: i, index: n, columns: r, defaultColumnProps: s, defaultColumnRender: c, selectionTrigger: p, selectionVisible: g, selectionChecked: h, onSelectionChange: S, isRecordSelectable: D, selectionCheckboxProps: R, getSelectionCheckboxProps: N, onClick: k, onDoubleClick: L, onContextMenu:
|
|
7887
|
+
function zb({ record: i, index: n, columns: r, defaultColumnProps: s, defaultColumnRender: c, selectionTrigger: p, selectionVisible: g, selectionChecked: h, onSelectionChange: S, isRecordSelectable: D, selectionCheckboxProps: R, getSelectionCheckboxProps: N, onClick: k, onDoubleClick: L, onContextMenu: $, onCellClick: B, onCellDoubleClick: V, onCellContextMenu: oe, expansion: ae, customAttributes: ne, color: fe, backgroundColor: K, className: se, style: Z, selectorCellShadowVisible: J, selectionColumnClassName: he, selectionColumnStyle: le, rowFactory: te }) {
|
|
7888
7888
|
let Ce = A.jsxs(A.Fragment, { children: [g && A.jsx(Ub, { className: he, style: le, record: i, index: n, trigger: p, withRightShadow: J, checked: h, disabled: !S || (D ? !D(i, n) : !1), onChange: S, checkboxProps: R, getCheckboxProps: N }), r.map(({ hidden: T, hiddenContent: O, ...v }, d) => {
|
|
7889
7889
|
if (T || O) return null;
|
|
7890
|
-
let { accessor: w, visibleMediaQuery: u, textAlign: m, noWrap: C, ellipsis:
|
|
7891
|
-
return A.jsx(Wb, { className: typeof ue == "function" ? ue(i, n) : ue, style: ye?.(i, n), visibleMediaQuery: u, record: i, index: n, onClick: B ? (_e) => B({ event: _e, record: i, index: n, column: v, columnIndex: d }) : void 0, onDoubleClick: V ? (_e) => V({ event: _e, record: i, index: n, column: v, columnIndex: d }) : void 0, onContextMenu: oe ? (_e) => oe({ event: _e, record: i, index: n, column: v, columnIndex: d }) : void 0, accessor: w, textAlign: m, noWrap: C, ellipsis:
|
|
7892
|
-
})] }), De = ae && A.jsx(Fb, { colSpan: r.filter(({ hidden: T }) => !T).length + (g ? 1 : 0), open: ae.isRowExpanded(i), content: ae.content({ record: i, index: n }), collapseProps: ae.collapseProps }), E = qb({ record: i, index: n, selectionChecked: h, onClick: k, onDoubleClick: L, onContextMenu:
|
|
7890
|
+
let { accessor: w, visibleMediaQuery: u, textAlign: m, noWrap: C, ellipsis: I, width: j, render: re, cellsClassName: ue, cellsStyle: ye, customCellAttributes: Q } = { ...s, ...v };
|
|
7891
|
+
return A.jsx(Wb, { className: typeof ue == "function" ? ue(i, n) : ue, style: ye?.(i, n), visibleMediaQuery: u, record: i, index: n, onClick: B ? (_e) => B({ event: _e, record: i, index: n, column: v, columnIndex: d }) : void 0, onDoubleClick: V ? (_e) => V({ event: _e, record: i, index: n, column: v, columnIndex: d }) : void 0, onContextMenu: oe ? (_e) => oe({ event: _e, record: i, index: n, column: v, columnIndex: d }) : void 0, accessor: w, textAlign: m, noWrap: C, ellipsis: I, width: j, render: re, defaultRender: c, customCellAttributes: Q }, w);
|
|
7892
|
+
})] }), De = ae && A.jsx(Fb, { colSpan: r.filter(({ hidden: T }) => !T).length + (g ? 1 : 0), open: ae.isRowExpanded(i), content: ae.content({ record: i, index: n }), collapseProps: ae.collapseProps }), E = qb({ record: i, index: n, selectionChecked: h, onClick: k, onDoubleClick: L, onContextMenu: $, expansion: ae, customAttributes: ne, color: fe, backgroundColor: K, className: se, style: Z });
|
|
7893
7893
|
return te ? te({ record: i, index: n, rowProps: E, children: Ce, expandedElement: De }) : A.jsxs(A.Fragment, { children: [A.jsx(ai, { ...E, children: Ce }), De] });
|
|
7894
7894
|
}
|
|
7895
7895
|
function qb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClick: c, onContextMenu: p, expansion: g, customAttributes: h, color: S, backgroundColor: D, className: R, style: N }) {
|
|
7896
7896
|
return { className: ft("mantine-datatable-row", { [li]: s || c || g?.isExpandable({ record: i, index: n }) && g?.expandOnClick }, { [Gh]: p }, typeof R == "function" ? R(i, n) : R), "data-selected": r || void 0, onClick: (k) => {
|
|
7897
7897
|
if (g) {
|
|
7898
|
-
let { isExpandable: L, isRowExpanded:
|
|
7899
|
-
L({ record: i, index: n }) && B && (
|
|
7898
|
+
let { isExpandable: L, isRowExpanded: $, expandOnClick: B, expandRow: V, collapseRow: oe } = g;
|
|
7899
|
+
L({ record: i, index: n }) && B && ($(i) ? oe(i) : V(i));
|
|
7900
7900
|
}
|
|
7901
7901
|
s?.({ event: k, record: i, index: n });
|
|
7902
7902
|
}, onDoubleClick: c ? (k) => c({ event: k, record: i, index: n }) : void 0, onContextMenu: p ? (k) => p({ event: k, record: i, index: n }) : void 0, style: [S || D ? (k) => {
|
|
7903
|
-
let L = S?.(i, n),
|
|
7904
|
-
return Ib({ theme: k, color: L, backgroundColor:
|
|
7903
|
+
let L = S?.(i, n), $ = D?.(i, n);
|
|
7904
|
+
return Ib({ theme: k, color: L, backgroundColor: $ });
|
|
7905
7905
|
} : void 0, N?.(i, n)], ...h?.(i, n) ?? {} };
|
|
7906
7906
|
}
|
|
7907
7907
|
function Hb({ leftShadowBehind: i, rightShadowBehind: n, onScrollPositionChange: r, children: s, viewportRef: c, scrollAreaProps: p }) {
|
|
7908
7908
|
return A.jsxs(Jm, { ...p, viewportRef: c, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [s, A.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), A.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": i }) }), A.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": n }) }), A.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
7909
7909
|
}
|
|
7910
|
-
function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: c, maxHeight: p, shadow: g, verticalAlign: h = "center", fetching: S, columns: D, storeColumnsKey: R, groups: N, pinFirstColumn: k, pinLastColumn: L, defaultColumnProps:
|
|
7910
|
+
function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: c, maxHeight: p, shadow: g, verticalAlign: h = "center", fetching: S, columns: D, storeColumnsKey: R, groups: N, pinFirstColumn: k, pinLastColumn: L, defaultColumnProps: $, defaultColumnRender: B, idAccessor: V = "id", records: oe, selectionTrigger: ae = "checkbox", selectedRecords: ne, onSelectedRecordsChange: fe, selectionColumnClassName: K, selectionColumnStyle: se, isRecordSelectable: Z, selectionCheckboxProps: J, allRecordsSelectionCheckboxProps: he = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: le = (vt, Ve) => ({ "aria-label": `Select record ${Ve + 1}` }), sortStatus: te, sortIcons: Ce, onSortStatusChange: De, horizontalSpacing: E, page: T, onPageChange: O, totalRecords: v, recordsPerPage: d, onRecordsPerPageChange: w, recordsPerPageOptions: u, recordsPerPageLabel: m = "Records per page", paginationWithEdges: C, paginationWithControls: I, paginationActiveTextColor: j, paginationActiveBackgroundColor: re, paginationSize: ue = "sm", paginationText: ye = ({ from: vt, to: Ve, totalRecords: lt }) => `${vt} - ${Ve} / ${lt}`, paginationWrapBreakpoint: Q = "sm", getPaginationControlProps: _e = (vt) => vt === "previous" ? { "aria-label": "Previous page" } : vt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: me, customLoader: ge, loaderSize: Y, loaderType: G, loaderColor: F, loadingText: H = "...", emptyState: X, noRecordsText: xe = "No records", noRecordsIcon: l, highlightOnHover: f, striped: _, noHeader: M, onRowClick: U, onRowDoubleClick: ee, onRowContextMenu: Se, onCellClick: be, onCellDoubleClick: Re, onCellContextMenu: ve, onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Je, onScrollToRight: Ze, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct, rowColor: Sn, rowBackgroundColor: St, rowExpansion: Wt, rowClassName: Dn, rowStyle: gt, customRowAttributes: sn, scrollViewportRef: an, scrollAreaProps: Ft, tableRef: Mt, bodyRef: Ut, m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt, className: Ln, classNames: ln, style: br, styles: un, rowFactory: Nn, tableWrapper: cn, ...fn }) {
|
|
7911
7911
|
let vt = Lr(() => N?.flatMap((He) => He.columns) ?? D, [D, N]), Ve = Lr(() => vt.some((He) => He.resizable), [vt]), lt = ub({ key: R, columns: vt }), { refs: Ht, onScroll: Un } = cb({ scrollCallbacks: { onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Je, onScrollToRight: Ze }, withRowBorders: fn.withRowBorders }), Ir = qc(Ht.table, Mt), zn = qc(Ht.scrollViewport, an), jr = mb({ rowExpansion: Wt, records: oe, idAccessor: V }), qn = Fn((He) => {
|
|
7912
7912
|
Ht.scrollViewport.current?.scrollTo({ top: 0, left: 0 }), O(He);
|
|
7913
7913
|
}, [O, Ht.scrollViewport]), Br = oe?.length, Xi = oe?.map((He) => It(He, V)), ir = !!ne, or = ne?.map((He) => It(He, V)), di = Xi !== void 0 && or !== void 0 && or.length > 0, Yr = Z ? oe?.filter(Z) : oe, Wr = Yr?.map((He) => It(He, V)), Fr = di && Wr.every((He) => or.includes(He)), As = di && Wr.some((He) => or.includes(He)), Os = Fn(() => {
|
|
7914
7914
|
ne && fe && fe(Fr ? ne.filter((He) => !Wr.includes(It(He, V))) : Za([...ne, ...Yr], (He) => It(He, V)));
|
|
7915
7915
|
}, [Fr, V, fe, Wr, Yr, ne]), { lastSelectionChangeIndex: xr, setLastSelectionChangeIndex: eo } = fb(Xi), Ur = ir && !k, pi = { m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt }, Rs = Fn(({ children: He }) => cn ? cn({ children: He }) : He, [cn]);
|
|
7916
|
-
return A.jsx(Vf, { ...lt, children: A.jsxs(Bt, { ref: Ht.root, ...pi, className: ft("mantine-datatable", { "mantine-datatable-with-border": i }, Ln, ln?.root), style: [(He) => ({ ...$b({ theme: He, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct }), borderRadius: He.radius[n] || n, boxShadow: He.shadows[g] || g, height: s, minHeight: c, maxHeight: p }), br, un?.root, { position: "relative" }], children: [A.jsx(Hb, { viewportRef: zn, leftShadowBehind: ir || !!k, rightShadowBehind: L, onScrollPositionChange: Un, scrollAreaProps: Ft, children: A.jsx(Rs, { children: A.jsxs(Qm, { ref: Ir, horizontalSpacing: E, className: ft("mantine-datatable-table", { [_b]: r, "mantine-datatable-vertical-align-top": h === "top", "mantine-datatable-vertical-align-bottom": h === "bottom", "mantine-datatable-pin-last-column": L, "mantine-datatable-selection-column-visible": ir, "mantine-datatable-pin-first-column": k, "mantine-datatable-resizable-columns": Ve }, ln?.table), style: { ...un?.table }, "data-striped": Br && _ || void 0, "data-highlight-on-hover": f || void 0, ...fn, children: [M ? null : A.jsx(Vf, { ...lt, children: A.jsx(Lb, { ref: Ht.header, selectionColumnHeaderRef: Ht.selectionColumnHeader, className: ln?.header, style: un?.header, columns: vt, defaultColumnProps:
|
|
7916
|
+
return A.jsx(Vf, { ...lt, children: A.jsxs(Bt, { ref: Ht.root, ...pi, className: ft("mantine-datatable", { "mantine-datatable-with-border": i }, Ln, ln?.root), style: [(He) => ({ ...$b({ theme: He, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct }), borderRadius: He.radius[n] || n, boxShadow: He.shadows[g] || g, height: s, minHeight: c, maxHeight: p }), br, un?.root, { position: "relative" }], children: [A.jsx(Hb, { viewportRef: zn, leftShadowBehind: ir || !!k, rightShadowBehind: L, onScrollPositionChange: Un, scrollAreaProps: Ft, children: A.jsx(Rs, { children: A.jsxs(Qm, { ref: Ir, horizontalSpacing: E, className: ft("mantine-datatable-table", { [_b]: r, "mantine-datatable-vertical-align-top": h === "top", "mantine-datatable-vertical-align-bottom": h === "bottom", "mantine-datatable-pin-last-column": L, "mantine-datatable-selection-column-visible": ir, "mantine-datatable-pin-first-column": k, "mantine-datatable-resizable-columns": Ve }, ln?.table), style: { ...un?.table }, "data-striped": Br && _ || void 0, "data-highlight-on-hover": f || void 0, ...fn, children: [M ? null : A.jsx(Vf, { ...lt, children: A.jsx(Lb, { ref: Ht.header, selectionColumnHeaderRef: Ht.selectionColumnHeader, className: ln?.header, style: un?.header, columns: vt, defaultColumnProps: $, groups: N, sortStatus: te, sortIcons: Ce, onSortStatusChange: De, selectionTrigger: ae, selectionVisible: ir, selectionChecked: Fr, selectionIndeterminate: As && !Fr, onSelectionChange: Os, selectionCheckboxProps: { ...J, ...he }, selectorCellShadowVisible: Ur, selectionColumnClassName: K, selectionColumnStyle: se }) }), A.jsx("tbody", { ref: Ut, children: Br ? oe.map((He, $n) => {
|
|
7917
7917
|
let zr = It(He, V), gi = or?.includes(zr) || !1, vi;
|
|
7918
7918
|
return fe && ne && (vi = (to) => {
|
|
7919
7919
|
if (to.nativeEvent.shiftKey && xr !== null) {
|
|
@@ -7921,8 +7921,8 @@ function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, hei
|
|
|
7921
7921
|
fe(gi ? vb(ne, In, (Hn) => It(Hn, V)) : Za([...ne, ...In], (Hn) => It(Hn, V)));
|
|
7922
7922
|
} else fe(gi ? ne.filter((In) => It(In, V) !== zr) : Za([...ne, He], (In) => It(In, V)));
|
|
7923
7923
|
eo($n);
|
|
7924
|
-
}), A.jsx(zb, { record: He, index: $n, columns: vt, defaultColumnProps:
|
|
7925
|
-
}) : A.jsx(sb, {}) }), vt.some(({ footer: He }) => He) && A.jsx(xb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps:
|
|
7924
|
+
}), A.jsx(zb, { record: He, index: $n, columns: vt, defaultColumnProps: $, defaultColumnRender: B, selectionTrigger: ae, selectionVisible: ir, selectionChecked: gi, onSelectionChange: vi, isRecordSelectable: Z, selectionCheckboxProps: J, getSelectionCheckboxProps: le, onClick: U, onDoubleClick: ee, onCellClick: be, onCellDoubleClick: Re, onContextMenu: Se, onCellContextMenu: ve, expansion: jr, color: Sn, backgroundColor: St, className: Dn, style: gt, customAttributes: sn, selectorCellShadowVisible: Ur, selectionColumnClassName: K, selectionColumnStyle: se, idAccessor: V, rowFactory: Nn }, zr);
|
|
7925
|
+
}) : A.jsx(sb, {}) }), vt.some(({ footer: He }) => He) && A.jsx(xb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps: $, selectionVisible: ir, selectorCellShadowVisible: Ur })] }) }) }), T && A.jsx(Yb, { className: ln?.pagination, style: un?.pagination, horizontalSpacing: E, fetching: S, page: T, onPageChange: qn, totalRecords: v, recordsPerPage: d, onRecordsPerPageChange: w, recordsPerPageOptions: u, recordsPerPageLabel: m, paginationWithEdges: C, paginationWithControls: I, paginationActiveTextColor: j, paginationActiveBackgroundColor: re, paginationSize: ue, paginationText: ye, paginationWrapBreakpoint: Q, getPaginationControlProps: _e, noRecordsText: xe, loadingText: H, recordsLength: Br }), A.jsx(Nb, { fetching: S, backgroundBlur: me, customContent: ge, size: Y, type: G, color: F }), A.jsx(lb, { icon: l, text: xe, active: !S && !Br, children: X })] }) });
|
|
7926
7926
|
}
|
|
7927
7927
|
var Ui = { exports: {} };
|
|
7928
7928
|
/**
|
|
@@ -7937,7 +7937,7 @@ var Vb = Ui.exports, nh;
|
|
|
7937
7937
|
function Kb() {
|
|
7938
7938
|
return nh || (nh = 1, function(i, n) {
|
|
7939
7939
|
(function() {
|
|
7940
|
-
var r, s = "4.17.21", c = 200, p = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", h = "Invalid `variable` option passed into `_.template`", S = "__lodash_hash_undefined__", D = 500, R = "__lodash_placeholder__", N = 1, k = 2, L = 4,
|
|
7940
|
+
var r, s = "4.17.21", c = 200, p = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", h = "Invalid `variable` option passed into `_.template`", S = "__lodash_hash_undefined__", D = 500, R = "__lodash_placeholder__", N = 1, k = 2, L = 4, $ = 1, B = 2, V = 1, oe = 2, ae = 4, ne = 8, fe = 16, K = 32, se = 64, Z = 128, J = 256, he = 512, le = 30, te = "...", Ce = 800, De = 16, E = 1, T = 2, O = 3, v = 1 / 0, d = 9007199254740991, w = 17976931348623157e292, u = NaN, m = 4294967295, C = m - 1, I = m >>> 1, j = [
|
|
7941
7941
|
["ary", Z],
|
|
7942
7942
|
["bind", V],
|
|
7943
7943
|
["bindKey", oe],
|
|
@@ -8996,7 +8996,7 @@ function Kb() {
|
|
|
8996
8996
|
}
|
|
8997
8997
|
if (Ae && !pe)
|
|
8998
8998
|
return x || (x = new On()), P || ri(e) ? Zu(e, t, o, a, y, x) : vg(e, t, q, o, a, y, x);
|
|
8999
|
-
if (!(o &
|
|
8999
|
+
if (!(o & $)) {
|
|
9000
9000
|
var Me = pe && et.call(e, "__wrapped__"), Ne = we && et.call(t, "__wrapped__");
|
|
9001
9001
|
if (Me || Ne) {
|
|
9002
9002
|
var We = Me ? e.value() : e, $e = Ne ? t.value() : t;
|
|
@@ -9027,7 +9027,7 @@ function Kb() {
|
|
|
9027
9027
|
var we = new On();
|
|
9028
9028
|
if (a)
|
|
9029
9029
|
var Ae = a(de, pe, q, e, t, we);
|
|
9030
|
-
if (!(Ae === r ? Ai(pe, de,
|
|
9030
|
+
if (!(Ae === r ? Ai(pe, de, $ | B, a, we) : Ae))
|
|
9031
9031
|
return !1;
|
|
9032
9032
|
}
|
|
9033
9033
|
}
|
|
@@ -9085,7 +9085,7 @@ function Kb() {
|
|
|
9085
9085
|
function xu(e, t) {
|
|
9086
9086
|
return ya(e) && ec(t) ? tc(Wn(e), t) : function(o) {
|
|
9087
9087
|
var a = Ra(o, e);
|
|
9088
|
-
return a === r && a === t ? Ea(o, e) : Ai(t, a,
|
|
9088
|
+
return a === r && a === t ? Ea(o, e) : Ai(t, a, $ | B);
|
|
9089
9089
|
};
|
|
9090
9090
|
}
|
|
9091
9091
|
function Co(e, t, o, a, y) {
|
|
@@ -9239,7 +9239,7 @@ function Kb() {
|
|
|
9239
9239
|
}
|
|
9240
9240
|
function So(e, t, o) {
|
|
9241
9241
|
var a = 0, y = e == null ? a : e.length;
|
|
9242
|
-
if (typeof t == "number" && t === t && y <=
|
|
9242
|
+
if (typeof t == "number" && t === t && y <= I) {
|
|
9243
9243
|
for (; a < y; ) {
|
|
9244
9244
|
var x = a + y >>> 1, P = e[x];
|
|
9245
9245
|
P !== null && !nn(P) && (o ? P <= t : P < t) ? a = x + 1 : y = x;
|
|
@@ -9745,7 +9745,7 @@ function Kb() {
|
|
|
9745
9745
|
return Ti(e) ? r : e;
|
|
9746
9746
|
}
|
|
9747
9747
|
function Zu(e, t, o, a, y, x) {
|
|
9748
|
-
var P = o &
|
|
9748
|
+
var P = o & $, W = e.length, q = t.length;
|
|
9749
9749
|
if (W != q && !(P && q > W))
|
|
9750
9750
|
return !1;
|
|
9751
9751
|
var de = x.get(e), pe = x.get(t);
|
|
@@ -9797,7 +9797,7 @@ function Kb() {
|
|
|
9797
9797
|
case F:
|
|
9798
9798
|
var W = Fs;
|
|
9799
9799
|
case M:
|
|
9800
|
-
var q = a &
|
|
9800
|
+
var q = a & $;
|
|
9801
9801
|
if (W || (W = io), e.size != t.size && !q)
|
|
9802
9802
|
return !1;
|
|
9803
9803
|
var de = P.get(e);
|
|
@@ -9813,7 +9813,7 @@ function Kb() {
|
|
|
9813
9813
|
return !1;
|
|
9814
9814
|
}
|
|
9815
9815
|
function mg(e, t, o, a, y, x) {
|
|
9816
|
-
var P = o &
|
|
9816
|
+
var P = o & $, W = da(e), q = W.length, de = da(t), pe = de.length;
|
|
9817
9817
|
if (q != pe && !P)
|
|
9818
9818
|
return !1;
|
|
9819
9819
|
for (var we = q; we--; ) {
|
|
@@ -11609,7 +11609,7 @@ function Zb(i) {
|
|
|
11609
11609
|
} = i, [S, D] = Ke(0), [R, N] = Ke(!1);
|
|
11610
11610
|
let k;
|
|
11611
11611
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (k = {}, n[0] = k) : k = n[0];
|
|
11612
|
-
const [L,
|
|
11612
|
+
const [L, $] = Ke(k), {
|
|
11613
11613
|
data: B,
|
|
11614
11614
|
isLoading: V
|
|
11615
11615
|
} = Z2(p, c, g), {
|
|
@@ -11641,7 +11641,7 @@ function Zb(i) {
|
|
|
11641
11641
|
const C = m.id;
|
|
11642
11642
|
return u[C] = Array.isArray(B[C]) ? B[C] : m.type === "boolean" ? B[C] ?? !1 : m.type === "date" ? B[C] ? new Date(B[C]) : "" : B[C] ?? "", u;
|
|
11643
11643
|
}, {});
|
|
11644
|
-
te.initialize(w), te.setValues(w);
|
|
11644
|
+
te.initialize(w), te.setValues(w), $(w);
|
|
11645
11645
|
}
|
|
11646
11646
|
}, n[12] = B, n[13] = r, n[14] = te, n[15] = Ce) : Ce = n[15];
|
|
11647
11647
|
let De;
|
|
@@ -11664,8 +11664,8 @@ function Zb(i) {
|
|
|
11664
11664
|
...te.getValues(),
|
|
11665
11665
|
id: g
|
|
11666
11666
|
}, (C) => {
|
|
11667
|
-
te.setValues(C),
|
|
11668
|
-
|
|
11667
|
+
te.setValues(C), $((I) => ({
|
|
11668
|
+
...I,
|
|
11669
11669
|
...C
|
|
11670
11670
|
}));
|
|
11671
11671
|
}, N)
|
|
@@ -11784,7 +11784,7 @@ function sx(i) {
|
|
|
11784
11784
|
actions: N,
|
|
11785
11785
|
steps: k,
|
|
11786
11786
|
defaultSort: L,
|
|
11787
|
-
createButtonText:
|
|
11787
|
+
createButtonText: $,
|
|
11788
11788
|
queryParams: B,
|
|
11789
11789
|
tabs: V,
|
|
11790
11790
|
defaultTab: oe,
|
|
@@ -11820,8 +11820,8 @@ function sx(i) {
|
|
|
11820
11820
|
const [u, m] = Ke(w), {
|
|
11821
11821
|
queryClient: C
|
|
11822
11822
|
} = $r();
|
|
11823
|
-
let
|
|
11824
|
-
n[12] !== E || n[13] !== c || n[14] !== R || n[15] !== C ? (
|
|
11823
|
+
let I;
|
|
11824
|
+
n[12] !== E || n[13] !== c || n[14] !== R || n[15] !== C ? (I = () => {
|
|
11825
11825
|
if (!(!E || !Array.isArray(E))) {
|
|
11826
11826
|
if (c?.forEach((Ve) => C.invalidateQueries({
|
|
11827
11827
|
queryKey: Ve
|
|
@@ -11851,9 +11851,9 @@ function sx(i) {
|
|
|
11851
11851
|
return !0;
|
|
11852
11852
|
})));
|
|
11853
11853
|
}
|
|
11854
|
-
}, n[12] = E, n[13] = c, n[14] = R, n[15] = C, n[16] =
|
|
11854
|
+
}, n[12] = E, n[13] = c, n[14] = R, n[15] = C, n[16] = I) : I = n[16];
|
|
11855
11855
|
let j;
|
|
11856
|
-
n[17] !== E || n[18] !== he || n[19] !== R ? (j = [E, R, he], n[17] = E, n[18] = he, n[19] = R, n[20] = j) : j = n[20], xt(
|
|
11856
|
+
n[17] !== E || n[18] !== he || n[19] !== R ? (j = [E, R, he], n[17] = E, n[18] = he, n[19] = R, n[20] = j) : j = n[20], xt(I, j);
|
|
11857
11857
|
const re = L?.field ?? h[0].id, ue = L?.direction ?? "desc";
|
|
11858
11858
|
let ye;
|
|
11859
11859
|
n[21] !== re || n[22] !== ue ? (ye = {
|
|
@@ -11928,7 +11928,7 @@ function sx(i) {
|
|
|
11928
11928
|
] })
|
|
11929
11929
|
] }), n[66] = N, n[67] = h, n[68] = ve, n[69] = S, n[70] = sn) : sn = n[70];
|
|
11930
11930
|
let an;
|
|
11931
|
-
n[71] !==
|
|
11931
|
+
n[71] !== $ || n[72] !== h || n[73] !== T ? (an = h.find(hx) && /* @__PURE__ */ A.jsx(rr, { onClick: () => Rt(!0), disabled: T, children: $ ?? "Erstellen" }), n[71] = $, n[72] = h, n[73] = T, n[74] = an) : an = n[74];
|
|
11932
11932
|
let Ft;
|
|
11933
11933
|
n[75] !== g || n[76] !== gt || n[77] !== sn || n[78] !== an ? (Ft = /* @__PURE__ */ A.jsxs(nr, { align: "center", gap: "xs", children: [
|
|
11934
11934
|
gt,
|