@espresso-lab/mantine-data-table 1.9.8 → 1.9.9
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 +492 -492
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -924,10 +924,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
924
924
|
return f();
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
var E, S = {},
|
|
927
|
+
var E, S = {}, d = M.react_stack_bottom_frame.bind(
|
|
928
928
|
M,
|
|
929
929
|
g
|
|
930
|
-
)(),
|
|
930
|
+
)(), p = k(s(g)), b = {};
|
|
931
931
|
ki.Fragment = $, ki.jsx = function(f, v, D, Y, H) {
|
|
932
932
|
var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
933
933
|
return R(
|
|
@@ -937,8 +937,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
937
937
|
!1,
|
|
938
938
|
Y,
|
|
939
939
|
H,
|
|
940
|
-
ie ? Error("react-stack-top-frame") :
|
|
941
|
-
ie ? k(s(f)) :
|
|
940
|
+
ie ? Error("react-stack-top-frame") : d,
|
|
941
|
+
ie ? k(s(f)) : p
|
|
942
942
|
);
|
|
943
943
|
}, ki.jsxs = function(f, v, D, Y, H) {
|
|
944
944
|
var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
@@ -949,8 +949,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
949
949
|
!0,
|
|
950
950
|
Y,
|
|
951
951
|
H,
|
|
952
|
-
ie ? Error("react-stack-top-frame") :
|
|
953
|
-
ie ? k(s(f)) :
|
|
952
|
+
ie ? Error("react-stack-top-frame") : d,
|
|
953
|
+
ie ? k(s(f)) : p
|
|
954
954
|
);
|
|
955
955
|
};
|
|
956
956
|
}()), ki;
|
|
@@ -1351,10 +1351,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1351
1351
|
return f();
|
|
1352
1352
|
}
|
|
1353
1353
|
};
|
|
1354
|
-
var E, S = {},
|
|
1354
|
+
var E, S = {}, d = M.react_stack_bottom_frame.bind(
|
|
1355
1355
|
M,
|
|
1356
1356
|
g
|
|
1357
|
-
)(),
|
|
1357
|
+
)(), p = k(s(g)), b = {};
|
|
1358
1358
|
qo.Fragment = $, qo.jsx = function(f, v, D, Y, H) {
|
|
1359
1359
|
var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
1360
1360
|
return R(
|
|
@@ -1364,8 +1364,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1364
1364
|
!1,
|
|
1365
1365
|
Y,
|
|
1366
1366
|
H,
|
|
1367
|
-
ie ? Error("react-stack-top-frame") :
|
|
1368
|
-
ie ? k(s(f)) :
|
|
1367
|
+
ie ? Error("react-stack-top-frame") : d,
|
|
1368
|
+
ie ? k(s(f)) : p
|
|
1369
1369
|
);
|
|
1370
1370
|
}, qo.jsxs = function(f, v, D, Y, H) {
|
|
1371
1371
|
var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
@@ -1376,8 +1376,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1376
1376
|
!0,
|
|
1377
1377
|
Y,
|
|
1378
1378
|
H,
|
|
1379
|
-
ie ? Error("react-stack-top-frame") :
|
|
1380
|
-
ie ? k(s(f)) :
|
|
1379
|
+
ie ? Error("react-stack-top-frame") : d,
|
|
1380
|
+
ie ? k(s(f)) : p
|
|
1381
1381
|
);
|
|
1382
1382
|
};
|
|
1383
1383
|
}()), qo;
|
|
@@ -1740,10 +1740,10 @@ function o_() {
|
|
|
1740
1740
|
case "utf-8":
|
|
1741
1741
|
return k(this, c, _);
|
|
1742
1742
|
case "ascii":
|
|
1743
|
-
return
|
|
1743
|
+
return d(this, c, _);
|
|
1744
1744
|
case "latin1":
|
|
1745
1745
|
case "binary":
|
|
1746
|
-
return
|
|
1746
|
+
return p(this, c, _);
|
|
1747
1747
|
case "base64":
|
|
1748
1748
|
return De(this, c, _);
|
|
1749
1749
|
case "ucs2":
|
|
@@ -1972,14 +1972,14 @@ function o_() {
|
|
|
1972
1972
|
);
|
|
1973
1973
|
return _;
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function d(l, c, _) {
|
|
1976
1976
|
var T = "";
|
|
1977
1977
|
_ = Math.min(l.length, _);
|
|
1978
1978
|
for (var F = c; F < _; ++F)
|
|
1979
1979
|
T += String.fromCharCode(l[F] & 127);
|
|
1980
1980
|
return T;
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function p(l, c, _) {
|
|
1983
1983
|
var T = "";
|
|
1984
1984
|
_ = Math.min(l.length, _);
|
|
1985
1985
|
for (var F = c; F < _; ++F)
|
|
@@ -3467,42 +3467,42 @@ function U2() {
|
|
|
3467
3467
|
var r = { 873: (m, h) => {
|
|
3468
3468
|
var C, A, R = function() {
|
|
3469
3469
|
var N = function(k, E) {
|
|
3470
|
-
var S = k,
|
|
3471
|
-
|
|
3470
|
+
var S = k, d = oe[E], p = null, b = 0, f = null, v = [], D = {}, Y = function(j, K) {
|
|
3471
|
+
p = function(W) {
|
|
3472
3472
|
for (var V = new Array(W), X = 0; X < W; X += 1) {
|
|
3473
3473
|
V[X] = new Array(W);
|
|
3474
3474
|
for (var xe = 0; xe < W; xe += 1) V[X][xe] = null;
|
|
3475
3475
|
}
|
|
3476
3476
|
return V;
|
|
3477
|
-
}(b = 4 * S + 17), H(0, 0), H(b - 7, 0), H(0, b - 7), le(), ie(), J(j, K), S >= 7 && ye(j), f == null && (f = me(S,
|
|
3477
|
+
}(b = 4 * S + 17), H(0, 0), H(b - 7, 0), H(0, b - 7), le(), ie(), J(j, K), S >= 7 && ye(j), f == null && (f = me(S, d, v)), _e(f, K);
|
|
3478
3478
|
}, H = function(j, K) {
|
|
3479
|
-
for (var W = -1; W <= 7; W += 1) if (!(j + W <= -1 || b <= j + W)) for (var V = -1; V <= 7; V += 1) K + V <= -1 || b <= K + V || (
|
|
3479
|
+
for (var W = -1; W <= 7; W += 1) if (!(j + W <= -1 || b <= j + W)) for (var V = -1; V <= 7; V += 1) K + V <= -1 || b <= K + V || (p[j + W][K + V] = 0 <= W && W <= 6 && (V == 0 || V == 6) || 0 <= V && V <= 6 && (W == 0 || W == 6) || 2 <= W && W <= 4 && 2 <= V && V <= 4);
|
|
3480
3480
|
}, ie = function() {
|
|
3481
|
-
for (var j = 8; j < b - 8; j += 1)
|
|
3482
|
-
for (var K = 8; K < b - 8; K += 1)
|
|
3481
|
+
for (var j = 8; j < b - 8; j += 1) p[j][6] == null && (p[j][6] = j % 2 == 0);
|
|
3482
|
+
for (var K = 8; K < b - 8; K += 1) p[6][K] == null && (p[6][K] = K % 2 == 0);
|
|
3483
3483
|
}, le = function() {
|
|
3484
3484
|
for (var j = ae.getPatternPosition(S), K = 0; K < j.length; K += 1) for (var W = 0; W < j.length; W += 1) {
|
|
3485
3485
|
var V = j[K], X = j[W];
|
|
3486
|
-
if (
|
|
3486
|
+
if (p[V][X] == null) for (var xe = -2; xe <= 2; xe += 1) for (var l = -2; l <= 2; l += 1) p[V + xe][X + l] = xe == -2 || xe == 2 || l == -2 || l == 2 || xe == 0 && l == 0;
|
|
3487
3487
|
}
|
|
3488
3488
|
}, ye = function(j) {
|
|
3489
3489
|
for (var K = ae.getBCHTypeNumber(S), W = 0; W < 18; W += 1) {
|
|
3490
3490
|
var V = !j && (K >> W & 1) == 1;
|
|
3491
|
-
|
|
3491
|
+
p[Math.floor(W / 3)][W % 3 + b - 8 - 3] = V;
|
|
3492
3492
|
}
|
|
3493
|
-
for (W = 0; W < 18; W += 1) V = !j && (K >> W & 1) == 1,
|
|
3493
|
+
for (W = 0; W < 18; W += 1) V = !j && (K >> W & 1) == 1, p[W % 3 + b - 8 - 3][Math.floor(W / 3)] = V;
|
|
3494
3494
|
}, J = function(j, K) {
|
|
3495
|
-
for (var W =
|
|
3495
|
+
for (var W = d << 3 | K, V = ae.getBCHTypeInfo(W), X = 0; X < 15; X += 1) {
|
|
3496
3496
|
var xe = !j && (V >> X & 1) == 1;
|
|
3497
|
-
X < 6 ?
|
|
3497
|
+
X < 6 ? p[X][8] = xe : X < 8 ? p[X + 1][8] = xe : p[b - 15 + X][8] = xe;
|
|
3498
3498
|
}
|
|
3499
|
-
for (X = 0; X < 15; X += 1) xe = !j && (V >> X & 1) == 1, X < 8 ?
|
|
3500
|
-
|
|
3499
|
+
for (X = 0; X < 15; X += 1) xe = !j && (V >> X & 1) == 1, X < 8 ? p[8][b - X - 1] = xe : X < 9 ? p[8][15 - X - 1 + 1] = xe : p[8][15 - X - 1] = xe;
|
|
3500
|
+
p[b - 8][8] = !j;
|
|
3501
3501
|
}, _e = function(j, K) {
|
|
3502
3502
|
for (var W = -1, V = b - 1, X = 7, xe = 0, l = ae.getMaskFunction(K), c = b - 1; c > 0; c -= 2) for (c == 6 && (c -= 1); ; ) {
|
|
3503
|
-
for (var _ = 0; _ < 2; _ += 1) if (
|
|
3503
|
+
for (var _ = 0; _ < 2; _ += 1) if (p[V][c - _] == null) {
|
|
3504
3504
|
var T = !1;
|
|
3505
|
-
xe < j.length && (T = (j[xe] >>> X & 1) == 1), l(V, c - _) && (T = !T),
|
|
3505
|
+
xe < j.length && (T = (j[xe] >>> X & 1) == 1), l(V, c - _) && (T = !T), p[V][c - _] = T, (X -= 1) == -1 && (xe += 1, X = 7);
|
|
3506
3506
|
}
|
|
3507
3507
|
if ((V += W) < 0 || b <= V) {
|
|
3508
3508
|
V -= W, W = -W;
|
|
@@ -3560,13 +3560,13 @@ function U2() {
|
|
|
3560
3560
|
v.push(W), f = null;
|
|
3561
3561
|
}, D.isDark = function(j, K) {
|
|
3562
3562
|
if (j < 0 || b <= j || K < 0 || b <= K) throw j + "," + K;
|
|
3563
|
-
return
|
|
3563
|
+
return p[j][K];
|
|
3564
3564
|
}, D.getModuleCount = function() {
|
|
3565
3565
|
return b;
|
|
3566
3566
|
}, D.make = function() {
|
|
3567
3567
|
if (S < 1) {
|
|
3568
3568
|
for (var j = 1; j < 40; j++) {
|
|
3569
|
-
for (var K = Z.getRSBlocks(j,
|
|
3569
|
+
for (var K = Z.getRSBlocks(j, d), W = te(), V = 0; V < v.length; V++) {
|
|
3570
3570
|
var X = v[V];
|
|
3571
3571
|
W.put(X.getMode(), 4), W.put(X.getLength(), ae.getLengthInBits(X.getMode(), j)), X.write(W);
|
|
3572
3572
|
}
|
|
@@ -3663,32 +3663,32 @@ function U2() {
|
|
|
3663
3663
|
};
|
|
3664
3664
|
N.stringToBytes = (N.stringToBytesFuncs = { default: function(k) {
|
|
3665
3665
|
for (var E = [], S = 0; S < k.length; S += 1) {
|
|
3666
|
-
var
|
|
3667
|
-
E.push(255 &
|
|
3666
|
+
var d = k.charCodeAt(S);
|
|
3667
|
+
E.push(255 & d);
|
|
3668
3668
|
}
|
|
3669
3669
|
return E;
|
|
3670
3670
|
} }).default, N.createStringToBytes = function(k, E) {
|
|
3671
3671
|
var S = function() {
|
|
3672
|
-
for (var
|
|
3673
|
-
var ie =
|
|
3672
|
+
for (var p = Se(k), b = function() {
|
|
3673
|
+
var ie = p.read();
|
|
3674
3674
|
if (ie == -1) throw "eof";
|
|
3675
3675
|
return ie;
|
|
3676
3676
|
}, f = 0, v = {}; ; ) {
|
|
3677
|
-
var D =
|
|
3677
|
+
var D = p.read();
|
|
3678
3678
|
if (D == -1) break;
|
|
3679
3679
|
var Y = b(), H = b() << 8 | b();
|
|
3680
3680
|
v[String.fromCharCode(D << 8 | Y)] = H, f += 1;
|
|
3681
3681
|
}
|
|
3682
3682
|
if (f != E) throw f + " != " + E;
|
|
3683
3683
|
return v;
|
|
3684
|
-
}(),
|
|
3685
|
-
return function(
|
|
3686
|
-
for (var b = [], f = 0; f <
|
|
3687
|
-
var v =
|
|
3684
|
+
}(), d = 63;
|
|
3685
|
+
return function(p) {
|
|
3686
|
+
for (var b = [], f = 0; f < p.length; f += 1) {
|
|
3687
|
+
var v = p.charCodeAt(f);
|
|
3688
3688
|
if (v < 128) b.push(v);
|
|
3689
3689
|
else {
|
|
3690
|
-
var D = S[
|
|
3691
|
-
typeof D == "number" ? (255 & D) == D ? b.push(D) : (b.push(D >>> 8), b.push(255 & D)) : b.push(
|
|
3690
|
+
var D = S[p.charAt(f)];
|
|
3691
|
+
typeof D == "number" ? (255 & D) == D ? b.push(D) : (b.push(D >>> 8), b.push(255 & D)) : b.push(d);
|
|
3692
3692
|
}
|
|
3693
3693
|
}
|
|
3694
3694
|
return b;
|
|
@@ -3785,58 +3785,58 @@ function U2() {
|
|
|
3785
3785
|
}
|
|
3786
3786
|
}
|
|
3787
3787
|
}, $.getLostPoint = function(k) {
|
|
3788
|
-
for (var E = k.getModuleCount(), S = 0,
|
|
3789
|
-
for (var b = 0, f = k.isDark(
|
|
3788
|
+
for (var E = k.getModuleCount(), S = 0, d = 0; d < E; d += 1) for (var p = 0; p < E; p += 1) {
|
|
3789
|
+
for (var b = 0, f = k.isDark(d, p), v = -1; v <= 1; v += 1) if (!(d + v < 0 || E <= d + v)) for (var D = -1; D <= 1; D += 1) p + D < 0 || E <= p + D || v == 0 && D == 0 || f == k.isDark(d + v, p + D) && (b += 1);
|
|
3790
3790
|
b > 5 && (S += 3 + b - 5);
|
|
3791
3791
|
}
|
|
3792
|
-
for (
|
|
3792
|
+
for (d = 0; d < E - 1; d += 1) for (p = 0; p < E - 1; p += 1) {
|
|
3793
3793
|
var Y = 0;
|
|
3794
|
-
k.isDark(
|
|
3794
|
+
k.isDark(d, p) && (Y += 1), k.isDark(d + 1, p) && (Y += 1), k.isDark(d, p + 1) && (Y += 1), k.isDark(d + 1, p + 1) && (Y += 1), Y != 0 && Y != 4 || (S += 3);
|
|
3795
3795
|
}
|
|
3796
|
-
for (
|
|
3797
|
-
for (
|
|
3796
|
+
for (d = 0; d < E; d += 1) for (p = 0; p < E - 6; p += 1) k.isDark(d, p) && !k.isDark(d, p + 1) && k.isDark(d, p + 2) && k.isDark(d, p + 3) && k.isDark(d, p + 4) && !k.isDark(d, p + 5) && k.isDark(d, p + 6) && (S += 40);
|
|
3797
|
+
for (p = 0; p < E; p += 1) for (d = 0; d < E - 6; d += 1) k.isDark(d, p) && !k.isDark(d + 1, p) && k.isDark(d + 2, p) && k.isDark(d + 3, p) && k.isDark(d + 4, p) && !k.isDark(d + 5, p) && k.isDark(d + 6, p) && (S += 40);
|
|
3798
3798
|
var H = 0;
|
|
3799
|
-
for (
|
|
3799
|
+
for (p = 0; p < E; p += 1) for (d = 0; d < E; d += 1) k.isDark(d, p) && (H += 1);
|
|
3800
3800
|
return S + Math.abs(100 * H / E / E - 50) / 5 * 10;
|
|
3801
3801
|
}, $), se = function() {
|
|
3802
3802
|
for (var k = new Array(256), E = new Array(256), S = 0; S < 8; S += 1) k[S] = 1 << S;
|
|
3803
3803
|
for (S = 8; S < 256; S += 1) k[S] = k[S - 4] ^ k[S - 5] ^ k[S - 6] ^ k[S - 8];
|
|
3804
3804
|
for (S = 0; S < 255; S += 1) E[k[S]] = S;
|
|
3805
|
-
return { glog: function(
|
|
3806
|
-
if (
|
|
3807
|
-
return E[
|
|
3808
|
-
}, gexp: function(
|
|
3809
|
-
for (;
|
|
3810
|
-
for (;
|
|
3811
|
-
return k[
|
|
3805
|
+
return { glog: function(d) {
|
|
3806
|
+
if (d < 1) throw "glog(" + d + ")";
|
|
3807
|
+
return E[d];
|
|
3808
|
+
}, gexp: function(d) {
|
|
3809
|
+
for (; d < 0; ) d += 255;
|
|
3810
|
+
for (; d >= 256; ) d -= 255;
|
|
3811
|
+
return k[d];
|
|
3812
3812
|
} };
|
|
3813
3813
|
}();
|
|
3814
3814
|
function ue(k, E) {
|
|
3815
3815
|
if (k.length === void 0) throw k.length + "/" + E;
|
|
3816
3816
|
var S = function() {
|
|
3817
|
-
for (var
|
|
3818
|
-
for (var b = new Array(k.length -
|
|
3817
|
+
for (var p = 0; p < k.length && k[p] == 0; ) p += 1;
|
|
3818
|
+
for (var b = new Array(k.length - p + E), f = 0; f < k.length - p; f += 1) b[f] = k[f + p];
|
|
3819
3819
|
return b;
|
|
3820
|
-
}(),
|
|
3821
|
-
return S[
|
|
3820
|
+
}(), d = { getAt: function(p) {
|
|
3821
|
+
return S[p];
|
|
3822
3822
|
}, getLength: function() {
|
|
3823
3823
|
return S.length;
|
|
3824
|
-
}, multiply: function(
|
|
3825
|
-
for (var b = new Array(
|
|
3824
|
+
}, multiply: function(p) {
|
|
3825
|
+
for (var b = new Array(d.getLength() + p.getLength() - 1), f = 0; f < d.getLength(); f += 1) for (var v = 0; v < p.getLength(); v += 1) b[f + v] ^= se.gexp(se.glog(d.getAt(f)) + se.glog(p.getAt(v)));
|
|
3826
3826
|
return ue(b, 0);
|
|
3827
|
-
}, mod: function(
|
|
3828
|
-
if (
|
|
3829
|
-
for (var b = se.glog(
|
|
3830
|
-
for (v = 0; v <
|
|
3831
|
-
return ue(f, 0).mod(
|
|
3827
|
+
}, mod: function(p) {
|
|
3828
|
+
if (d.getLength() - p.getLength() < 0) return d;
|
|
3829
|
+
for (var b = se.glog(d.getAt(0)) - se.glog(p.getAt(0)), f = new Array(d.getLength()), v = 0; v < d.getLength(); v += 1) f[v] = d.getAt(v);
|
|
3830
|
+
for (v = 0; v < p.getLength(); v += 1) f[v] ^= se.gexp(se.glog(p.getAt(v)) + b);
|
|
3831
|
+
return ue(f, 0).mod(p);
|
|
3832
3832
|
} };
|
|
3833
|
-
return
|
|
3833
|
+
return d;
|
|
3834
3834
|
}
|
|
3835
3835
|
var Z = /* @__PURE__ */ function() {
|
|
3836
|
-
var k = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], E = function(
|
|
3836
|
+
var k = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], E = function(d, p) {
|
|
3837
3837
|
var b = {};
|
|
3838
|
-
return b.totalCount =
|
|
3839
|
-
}, S = { getRSBlocks: function(
|
|
3838
|
+
return b.totalCount = d, b.dataCount = p, b;
|
|
3839
|
+
}, S = { getRSBlocks: function(d, p) {
|
|
3840
3840
|
var b = function(ye, J) {
|
|
3841
3841
|
switch (J) {
|
|
3842
3842
|
case oe.L:
|
|
@@ -3850,8 +3850,8 @@ function U2() {
|
|
|
3850
3850
|
default:
|
|
3851
3851
|
return;
|
|
3852
3852
|
}
|
|
3853
|
-
}(
|
|
3854
|
-
if (b === void 0) throw "bad rs block @ typeNumber:" +
|
|
3853
|
+
}(d, p);
|
|
3854
|
+
if (b === void 0) throw "bad rs block @ typeNumber:" + d + "/errorCorrectionLevel:" + p;
|
|
3855
3855
|
for (var f = b.length / 3, v = [], D = 0; D < f; D += 1) for (var Y = b[3 * D + 0], H = b[3 * D + 1], ie = b[3 * D + 2], le = 0; le < Y; le += 1) v.push(E(H, ie));
|
|
3856
3856
|
return v;
|
|
3857
3857
|
} };
|
|
@@ -3859,16 +3859,16 @@ function U2() {
|
|
|
3859
3859
|
}(), te = function() {
|
|
3860
3860
|
var k = [], E = 0, S = { getBuffer: function() {
|
|
3861
3861
|
return k;
|
|
3862
|
-
}, getAt: function(
|
|
3863
|
-
var
|
|
3864
|
-
return (k[
|
|
3865
|
-
}, put: function(
|
|
3866
|
-
for (var b = 0; b <
|
|
3862
|
+
}, getAt: function(d) {
|
|
3863
|
+
var p = Math.floor(d / 8);
|
|
3864
|
+
return (k[p] >>> 7 - d % 8 & 1) == 1;
|
|
3865
|
+
}, put: function(d, p) {
|
|
3866
|
+
for (var b = 0; b < p; b += 1) S.putBit((d >>> p - b - 1 & 1) == 1);
|
|
3867
3867
|
}, getLengthInBits: function() {
|
|
3868
3868
|
return E;
|
|
3869
|
-
}, putBit: function(
|
|
3870
|
-
var
|
|
3871
|
-
k.length <=
|
|
3869
|
+
}, putBit: function(d) {
|
|
3870
|
+
var p = Math.floor(E / 8);
|
|
3871
|
+
k.length <= p && k.push(0), d && (k[p] |= 128 >>> E % 8), E += 1;
|
|
3872
3872
|
} };
|
|
3873
3873
|
return S;
|
|
3874
3874
|
}, Q = function(k) {
|
|
@@ -3877,12 +3877,12 @@ function U2() {
|
|
|
3877
3877
|
}, getLength: function(b) {
|
|
3878
3878
|
return E.length;
|
|
3879
3879
|
}, write: function(b) {
|
|
3880
|
-
for (var f = E, v = 0; v + 2 < f.length; ) b.put(
|
|
3881
|
-
v < f.length && (f.length - v == 1 ? b.put(
|
|
3882
|
-
} },
|
|
3883
|
-
for (var f = 0, v = 0; v < b.length; v += 1) f = 10 * f +
|
|
3880
|
+
for (var f = E, v = 0; v + 2 < f.length; ) b.put(d(f.substring(v, v + 3)), 10), v += 3;
|
|
3881
|
+
v < f.length && (f.length - v == 1 ? b.put(d(f.substring(v, v + 1)), 4) : f.length - v == 2 && b.put(d(f.substring(v, v + 2)), 7));
|
|
3882
|
+
} }, d = function(b) {
|
|
3883
|
+
for (var f = 0, v = 0; v < b.length; v += 1) f = 10 * f + p(b.charAt(v));
|
|
3884
3884
|
return f;
|
|
3885
|
-
},
|
|
3885
|
+
}, p = function(b) {
|
|
3886
3886
|
if ("0" <= b && b <= "9") return b.charCodeAt(0) - 48;
|
|
3887
3887
|
throw "illegal char :" + b;
|
|
3888
3888
|
};
|
|
@@ -3890,15 +3890,15 @@ function U2() {
|
|
|
3890
3890
|
}, G = function(k) {
|
|
3891
3891
|
var E = k, S = { getMode: function() {
|
|
3892
3892
|
return 2;
|
|
3893
|
-
}, getLength: function(
|
|
3893
|
+
}, getLength: function(p) {
|
|
3894
3894
|
return E.length;
|
|
3895
|
-
}, write: function(
|
|
3896
|
-
for (var b = E, f = 0; f + 1 < b.length; )
|
|
3897
|
-
f < b.length &&
|
|
3898
|
-
} },
|
|
3899
|
-
if ("0" <=
|
|
3900
|
-
if ("A" <=
|
|
3901
|
-
switch (
|
|
3895
|
+
}, write: function(p) {
|
|
3896
|
+
for (var b = E, f = 0; f + 1 < b.length; ) p.put(45 * d(b.charAt(f)) + d(b.charAt(f + 1)), 11), f += 2;
|
|
3897
|
+
f < b.length && p.put(d(b.charAt(f)), 6);
|
|
3898
|
+
} }, d = function(p) {
|
|
3899
|
+
if ("0" <= p && p <= "9") return p.charCodeAt(0) - 48;
|
|
3900
|
+
if ("A" <= p && p <= "Z") return p.charCodeAt(0) - 65 + 10;
|
|
3901
|
+
switch (p) {
|
|
3902
3902
|
case " ":
|
|
3903
3903
|
return 36;
|
|
3904
3904
|
case "$":
|
|
@@ -3918,7 +3918,7 @@ function U2() {
|
|
|
3918
3918
|
case ":":
|
|
3919
3919
|
return 44;
|
|
3920
3920
|
default:
|
|
3921
|
-
throw "illegal char :" +
|
|
3921
|
+
throw "illegal char :" + p;
|
|
3922
3922
|
}
|
|
3923
3923
|
};
|
|
3924
3924
|
return S;
|
|
@@ -3929,20 +3929,20 @@ function U2() {
|
|
|
3929
3929
|
}, getLength: function(S) {
|
|
3930
3930
|
return E.length;
|
|
3931
3931
|
}, write: function(S) {
|
|
3932
|
-
for (var
|
|
3932
|
+
for (var d = 0; d < E.length; d += 1) S.put(E[d], 8);
|
|
3933
3933
|
} };
|
|
3934
3934
|
}, fe = function(k) {
|
|
3935
3935
|
var E = N.stringToBytesFuncs.SJIS;
|
|
3936
3936
|
if (!E) throw "sjis not supported.";
|
|
3937
3937
|
(function() {
|
|
3938
|
-
var
|
|
3939
|
-
if (
|
|
3938
|
+
var p = E("友");
|
|
3939
|
+
if (p.length != 2 || (p[0] << 8 | p[1]) != 38726) throw "sjis not supported.";
|
|
3940
3940
|
})();
|
|
3941
|
-
var S = E(k),
|
|
3941
|
+
var S = E(k), d = { getMode: function() {
|
|
3942
3942
|
return 8;
|
|
3943
|
-
}, getLength: function(
|
|
3943
|
+
}, getLength: function(p) {
|
|
3944
3944
|
return ~~(S.length / 2);
|
|
3945
|
-
}, write: function(
|
|
3945
|
+
}, write: function(p) {
|
|
3946
3946
|
for (var b = S, f = 0; f + 1 < b.length; ) {
|
|
3947
3947
|
var v = (255 & b[f]) << 8 | 255 & b[f + 1];
|
|
3948
3948
|
if (33088 <= v && v <= 40956) v -= 33088;
|
|
@@ -3950,43 +3950,43 @@ function U2() {
|
|
|
3950
3950
|
if (!(57408 <= v && v <= 60351)) throw "illegal char at " + (f + 1) + "/" + v;
|
|
3951
3951
|
v -= 49472;
|
|
3952
3952
|
}
|
|
3953
|
-
v = 192 * (v >>> 8 & 255) + (255 & v),
|
|
3953
|
+
v = 192 * (v >>> 8 & 255) + (255 & v), p.put(v, 13), f += 2;
|
|
3954
3954
|
}
|
|
3955
3955
|
if (f < b.length) throw "illegal char at " + (f + 1);
|
|
3956
3956
|
} };
|
|
3957
|
-
return
|
|
3957
|
+
return d;
|
|
3958
3958
|
}, ne = function() {
|
|
3959
3959
|
var k = [], E = { writeByte: function(S) {
|
|
3960
3960
|
k.push(255 & S);
|
|
3961
3961
|
}, writeShort: function(S) {
|
|
3962
3962
|
E.writeByte(S), E.writeByte(S >>> 8);
|
|
3963
|
-
}, writeBytes: function(S,
|
|
3964
|
-
|
|
3965
|
-
for (var b = 0; b <
|
|
3963
|
+
}, writeBytes: function(S, d, p) {
|
|
3964
|
+
d = d || 0, p = p || S.length;
|
|
3965
|
+
for (var b = 0; b < p; b += 1) E.writeByte(S[b + d]);
|
|
3966
3966
|
}, writeString: function(S) {
|
|
3967
|
-
for (var
|
|
3967
|
+
for (var d = 0; d < S.length; d += 1) E.writeByte(S.charCodeAt(d));
|
|
3968
3968
|
}, toByteArray: function() {
|
|
3969
3969
|
return k;
|
|
3970
3970
|
}, toString: function() {
|
|
3971
3971
|
var S = "";
|
|
3972
3972
|
S += "[";
|
|
3973
|
-
for (var
|
|
3973
|
+
for (var d = 0; d < k.length; d += 1) d > 0 && (S += ","), S += k[d];
|
|
3974
3974
|
return S + "]";
|
|
3975
3975
|
} };
|
|
3976
3976
|
return E;
|
|
3977
3977
|
}, Se = function(k) {
|
|
3978
|
-
var E = k, S = 0,
|
|
3979
|
-
for (;
|
|
3978
|
+
var E = k, S = 0, d = 0, p = 0, b = { read: function() {
|
|
3979
|
+
for (; p < 8; ) {
|
|
3980
3980
|
if (S >= E.length) {
|
|
3981
|
-
if (
|
|
3982
|
-
throw "unexpected end of file./" +
|
|
3981
|
+
if (p == 0) return -1;
|
|
3982
|
+
throw "unexpected end of file./" + p;
|
|
3983
3983
|
}
|
|
3984
3984
|
var v = E.charAt(S);
|
|
3985
|
-
if (S += 1, v == "=") return
|
|
3986
|
-
v.match(/^\s$/) || (
|
|
3985
|
+
if (S += 1, v == "=") return p = 0, -1;
|
|
3986
|
+
v.match(/^\s$/) || (d = d << 6 | f(v.charCodeAt(0)), p += 6);
|
|
3987
3987
|
}
|
|
3988
|
-
var D =
|
|
3989
|
-
return
|
|
3988
|
+
var D = d >>> p - 8 & 255;
|
|
3989
|
+
return p -= 8, D;
|
|
3990
3990
|
} }, f = function(v) {
|
|
3991
3991
|
if (65 <= v && v <= 90) return v - 65;
|
|
3992
3992
|
if (97 <= v && v <= 122) return v - 97 + 26;
|
|
@@ -3997,7 +3997,7 @@ function U2() {
|
|
|
3997
3997
|
};
|
|
3998
3998
|
return b;
|
|
3999
3999
|
}, De = function(k, E, S) {
|
|
4000
|
-
for (var
|
|
4000
|
+
for (var d = function(H, ie) {
|
|
4001
4001
|
var le = H, ye = ie, J = new Array(H * ie), _e = { setPixel: function(j, K, W) {
|
|
4002
4002
|
J[K * le + j] = W;
|
|
4003
4003
|
}, write: function(j) {
|
|
@@ -4037,9 +4037,9 @@ function U2() {
|
|
|
4037
4037
|
return W;
|
|
4038
4038
|
};
|
|
4039
4039
|
return _e;
|
|
4040
|
-
}(k, E),
|
|
4040
|
+
}(k, E), p = 0; p < E; p += 1) for (var b = 0; b < k; b += 1) d.setPixel(b, p, S(b, p));
|
|
4041
4041
|
var f = ne();
|
|
4042
|
-
|
|
4042
|
+
d.write(f);
|
|
4043
4043
|
for (var v = function() {
|
|
4044
4044
|
var H = 0, ie = 0, le = 0, ye = "", J = {}, _e = function(ge) {
|
|
4045
4045
|
ye += String.fromCharCode(me(63 & ge));
|
|
@@ -4093,24 +4093,24 @@ function U2() {
|
|
|
4093
4093
|
return (() => {
|
|
4094
4094
|
u.d(g, { default: () => E });
|
|
4095
4095
|
const m = (S) => !!S && typeof S == "object" && !Array.isArray(S);
|
|
4096
|
-
function h(S, ...
|
|
4097
|
-
if (!
|
|
4098
|
-
const
|
|
4099
|
-
return
|
|
4100
|
-
const f = S[b], v =
|
|
4096
|
+
function h(S, ...d) {
|
|
4097
|
+
if (!d.length) return S;
|
|
4098
|
+
const p = d.shift();
|
|
4099
|
+
return p !== void 0 && m(S) && m(p) ? (S = Object.assign({}, S), Object.keys(p).forEach((b) => {
|
|
4100
|
+
const f = S[b], v = p[b];
|
|
4101
4101
|
Array.isArray(f) && Array.isArray(v) ? S[b] = v : m(f) && m(v) ? S[b] = h(Object.assign({}, f), v) : S[b] = v;
|
|
4102
|
-
}), h(S, ...
|
|
4102
|
+
}), h(S, ...d)) : S;
|
|
4103
4103
|
}
|
|
4104
|
-
function C(S,
|
|
4105
|
-
const
|
|
4106
|
-
|
|
4104
|
+
function C(S, d) {
|
|
4105
|
+
const p = document.createElement("a");
|
|
4106
|
+
p.download = d, p.href = S, document.body.appendChild(p), p.click(), document.body.removeChild(p);
|
|
4107
4107
|
}
|
|
4108
4108
|
const A = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
|
|
4109
4109
|
class R {
|
|
4110
|
-
constructor({ svg:
|
|
4111
|
-
this._svg =
|
|
4110
|
+
constructor({ svg: d, type: p, window: b }) {
|
|
4111
|
+
this._svg = d, this._type = p, this._window = b;
|
|
4112
4112
|
}
|
|
4113
|
-
draw(
|
|
4113
|
+
draw(d, p, b, f) {
|
|
4114
4114
|
let v;
|
|
4115
4115
|
switch (this._type) {
|
|
4116
4116
|
case "dots":
|
|
@@ -4131,100 +4131,100 @@ function U2() {
|
|
|
4131
4131
|
default:
|
|
4132
4132
|
v = this._drawSquare;
|
|
4133
4133
|
}
|
|
4134
|
-
v.call(this, { x:
|
|
4134
|
+
v.call(this, { x: d, y: p, size: b, getNeighbor: f });
|
|
4135
4135
|
}
|
|
4136
|
-
_rotateFigure({ x:
|
|
4136
|
+
_rotateFigure({ x: d, y: p, size: b, rotation: f = 0, draw: v }) {
|
|
4137
4137
|
var D;
|
|
4138
|
-
const Y =
|
|
4138
|
+
const Y = d + b / 2, H = p + b / 2;
|
|
4139
4139
|
v(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * f / Math.PI},${Y},${H})`);
|
|
4140
4140
|
}
|
|
4141
|
-
_basicDot(
|
|
4142
|
-
const { size:
|
|
4143
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4144
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b +
|
|
4141
|
+
_basicDot(d) {
|
|
4142
|
+
const { size: p, x: b, y: f } = d;
|
|
4143
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4144
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b + p / 2)), this._element.setAttribute("cy", String(f + p / 2)), this._element.setAttribute("r", String(p / 2));
|
|
4145
4145
|
} }));
|
|
4146
4146
|
}
|
|
4147
|
-
_basicSquare(
|
|
4148
|
-
const { size:
|
|
4149
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4150
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(
|
|
4147
|
+
_basicSquare(d) {
|
|
4148
|
+
const { size: p, x: b, y: f } = d;
|
|
4149
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4150
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(p)), this._element.setAttribute("height", String(p));
|
|
4151
4151
|
} }));
|
|
4152
4152
|
}
|
|
4153
|
-
_basicSideRounded(
|
|
4154
|
-
const { size:
|
|
4155
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4156
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${
|
|
4153
|
+
_basicSideRounded(d) {
|
|
4154
|
+
const { size: p, x: b, y: f } = d;
|
|
4155
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4156
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ` + p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, 0 ${-p}`);
|
|
4157
4157
|
} }));
|
|
4158
4158
|
}
|
|
4159
|
-
_basicCornerRounded(
|
|
4160
|
-
const { size:
|
|
4161
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4162
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${
|
|
4159
|
+
_basicCornerRounded(d) {
|
|
4160
|
+
const { size: p, x: b, y: f } = d;
|
|
4161
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4162
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ${p}v ` + -p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, ${-p / 2} ${-p / 2}`);
|
|
4163
4163
|
} }));
|
|
4164
4164
|
}
|
|
4165
|
-
_basicCornerExtraRounded(
|
|
4166
|
-
const { size:
|
|
4167
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4168
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${
|
|
4165
|
+
_basicCornerExtraRounded(d) {
|
|
4166
|
+
const { size: p, x: b, y: f } = d;
|
|
4167
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4168
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ${p}a ${p} ${p}, 0, 0, 0, ${-p} ${-p}`);
|
|
4169
4169
|
} }));
|
|
4170
4170
|
}
|
|
4171
|
-
_basicCornersRounded(
|
|
4172
|
-
const { size:
|
|
4173
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4174
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ` +
|
|
4171
|
+
_basicCornersRounded(d) {
|
|
4172
|
+
const { size: p, x: b, y: f } = d;
|
|
4173
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4174
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ` + p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, ${p / 2} ${p / 2}h ` + p / 2 + "v " + -p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, ${-p / 2} ${-p / 2}`);
|
|
4175
4175
|
} }));
|
|
4176
4176
|
}
|
|
4177
|
-
_drawDot({ x:
|
|
4178
|
-
this._basicDot({ x:
|
|
4177
|
+
_drawDot({ x: d, y: p, size: b }) {
|
|
4178
|
+
this._basicDot({ x: d, y: p, size: b, rotation: 0 });
|
|
4179
4179
|
}
|
|
4180
|
-
_drawSquare({ x:
|
|
4181
|
-
this._basicSquare({ x:
|
|
4180
|
+
_drawSquare({ x: d, y: p, size: b }) {
|
|
4181
|
+
this._basicSquare({ x: d, y: p, size: b, rotation: 0 });
|
|
4182
4182
|
}
|
|
4183
|
-
_drawRounded({ x:
|
|
4183
|
+
_drawRounded({ x: d, y: p, size: b, getNeighbor: f }) {
|
|
4184
4184
|
const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0, ie = v + D + Y + H;
|
|
4185
|
-
if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x:
|
|
4185
|
+
if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x: d, y: p, size: b, rotation: 0 });
|
|
4186
4186
|
else {
|
|
4187
4187
|
if (ie === 2) {
|
|
4188
4188
|
let le = 0;
|
|
4189
|
-
return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerRounded({ x:
|
|
4189
|
+
return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerRounded({ x: d, y: p, size: b, rotation: le });
|
|
4190
4190
|
}
|
|
4191
4191
|
if (ie === 1) {
|
|
4192
4192
|
let le = 0;
|
|
4193
|
-
return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x:
|
|
4193
|
+
return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x: d, y: p, size: b, rotation: le });
|
|
4194
4194
|
}
|
|
4195
4195
|
}
|
|
4196
|
-
else this._basicDot({ x:
|
|
4196
|
+
else this._basicDot({ x: d, y: p, size: b, rotation: 0 });
|
|
4197
4197
|
}
|
|
4198
|
-
_drawExtraRounded({ x:
|
|
4198
|
+
_drawExtraRounded({ x: d, y: p, size: b, getNeighbor: f }) {
|
|
4199
4199
|
const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0, ie = v + D + Y + H;
|
|
4200
|
-
if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x:
|
|
4200
|
+
if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x: d, y: p, size: b, rotation: 0 });
|
|
4201
4201
|
else {
|
|
4202
4202
|
if (ie === 2) {
|
|
4203
4203
|
let le = 0;
|
|
4204
|
-
return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerExtraRounded({ x:
|
|
4204
|
+
return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerExtraRounded({ x: d, y: p, size: b, rotation: le });
|
|
4205
4205
|
}
|
|
4206
4206
|
if (ie === 1) {
|
|
4207
4207
|
let le = 0;
|
|
4208
|
-
return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x:
|
|
4208
|
+
return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x: d, y: p, size: b, rotation: le });
|
|
4209
4209
|
}
|
|
4210
4210
|
}
|
|
4211
|
-
else this._basicDot({ x:
|
|
4211
|
+
else this._basicDot({ x: d, y: p, size: b, rotation: 0 });
|
|
4212
4212
|
}
|
|
4213
|
-
_drawClassy({ x:
|
|
4213
|
+
_drawClassy({ x: d, y: p, size: b, getNeighbor: f }) {
|
|
4214
4214
|
const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0;
|
|
4215
|
-
v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x:
|
|
4215
|
+
v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x: d, y: p, size: b, rotation: 0 }) : this._basicCornerRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: d, y: p, size: b, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 });
|
|
4216
4216
|
}
|
|
4217
|
-
_drawClassyRounded({ x:
|
|
4217
|
+
_drawClassyRounded({ x: d, y: p, size: b, getNeighbor: f }) {
|
|
4218
4218
|
const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0;
|
|
4219
|
-
v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x:
|
|
4219
|
+
v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x: d, y: p, size: b, rotation: 0 }) : this._basicCornerExtraRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: d, y: p, size: b, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 });
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
4222
|
const N = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, M = Object.values(N);
|
|
4223
4223
|
class L {
|
|
4224
|
-
constructor({ svg:
|
|
4225
|
-
this._svg =
|
|
4224
|
+
constructor({ svg: d, type: p, window: b }) {
|
|
4225
|
+
this._svg = d, this._type = p, this._window = b;
|
|
4226
4226
|
}
|
|
4227
|
-
draw(
|
|
4227
|
+
draw(d, p, b, f) {
|
|
4228
4228
|
let v;
|
|
4229
4229
|
switch (this._type) {
|
|
4230
4230
|
case N.square:
|
|
@@ -4236,78 +4236,78 @@ function U2() {
|
|
|
4236
4236
|
default:
|
|
4237
4237
|
v = this._drawDot;
|
|
4238
4238
|
}
|
|
4239
|
-
v.call(this, { x:
|
|
4239
|
+
v.call(this, { x: d, y: p, size: b, rotation: f });
|
|
4240
4240
|
}
|
|
4241
|
-
_rotateFigure({ x:
|
|
4241
|
+
_rotateFigure({ x: d, y: p, size: b, rotation: f = 0, draw: v }) {
|
|
4242
4242
|
var D;
|
|
4243
|
-
const Y =
|
|
4243
|
+
const Y = d + b / 2, H = p + b / 2;
|
|
4244
4244
|
v(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * f / Math.PI},${Y},${H})`);
|
|
4245
4245
|
}
|
|
4246
|
-
_basicDot(
|
|
4247
|
-
const { size:
|
|
4248
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4249
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b +
|
|
4246
|
+
_basicDot(d) {
|
|
4247
|
+
const { size: p, x: b, y: f } = d, v = p / 7;
|
|
4248
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4249
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b + p / 2} ${f}a ${p / 2} ${p / 2} 0 1 0 0.1 0zm 0 ${v}a ${p / 2 - v} ${p / 2 - v} 0 1 1 -0.1 0Z`);
|
|
4250
4250
|
} }));
|
|
4251
4251
|
}
|
|
4252
|
-
_basicSquare(
|
|
4253
|
-
const { size:
|
|
4254
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4255
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b} ${f}v ${
|
|
4252
|
+
_basicSquare(d) {
|
|
4253
|
+
const { size: p, x: b, y: f } = d, v = p / 7;
|
|
4254
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4255
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ${p}v ` + -p + `zM ${b + v} ${f + v}h ` + (p - 2 * v) + "v " + (p - 2 * v) + "h " + (2 * v - p) + "z");
|
|
4256
4256
|
} }));
|
|
4257
4257
|
}
|
|
4258
|
-
_basicExtraRounded(
|
|
4259
|
-
const { size:
|
|
4260
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4258
|
+
_basicExtraRounded(d) {
|
|
4259
|
+
const { size: p, x: b, y: f } = d, v = p / 7;
|
|
4260
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4261
4261
|
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b} ${f + 2.5 * v}v ` + 2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * v} ${2.5 * v}h ` + 2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * v} ${2.5 * -v}v ` + -2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * -v} ${2.5 * -v}h ` + -2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * -v} ${2.5 * v}M ${b + 2.5 * v} ${f + v}h ` + 2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * v} ${1.5 * v}v ` + 2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * -v} ${1.5 * v}h ` + -2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * -v} ${1.5 * -v}v ` + -2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * v} ${1.5 * -v}`);
|
|
4262
4262
|
} }));
|
|
4263
4263
|
}
|
|
4264
|
-
_drawDot({ x:
|
|
4265
|
-
this._basicDot({ x:
|
|
4264
|
+
_drawDot({ x: d, y: p, size: b, rotation: f }) {
|
|
4265
|
+
this._basicDot({ x: d, y: p, size: b, rotation: f });
|
|
4266
4266
|
}
|
|
4267
|
-
_drawSquare({ x:
|
|
4268
|
-
this._basicSquare({ x:
|
|
4267
|
+
_drawSquare({ x: d, y: p, size: b, rotation: f }) {
|
|
4268
|
+
this._basicSquare({ x: d, y: p, size: b, rotation: f });
|
|
4269
4269
|
}
|
|
4270
|
-
_drawExtraRounded({ x:
|
|
4271
|
-
this._basicExtraRounded({ x:
|
|
4270
|
+
_drawExtraRounded({ x: d, y: p, size: b, rotation: f }) {
|
|
4271
|
+
this._basicExtraRounded({ x: d, y: p, size: b, rotation: f });
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
4274
4274
|
const I = { dot: "dot", square: "square" }, $ = Object.values(I);
|
|
4275
4275
|
class q {
|
|
4276
|
-
constructor({ svg:
|
|
4277
|
-
this._svg =
|
|
4276
|
+
constructor({ svg: d, type: p, window: b }) {
|
|
4277
|
+
this._svg = d, this._type = p, this._window = b;
|
|
4278
4278
|
}
|
|
4279
|
-
draw(
|
|
4279
|
+
draw(d, p, b, f) {
|
|
4280
4280
|
let v;
|
|
4281
|
-
v = this._type === I.square ? this._drawSquare : this._drawDot, v.call(this, { x:
|
|
4281
|
+
v = this._type === I.square ? this._drawSquare : this._drawDot, v.call(this, { x: d, y: p, size: b, rotation: f });
|
|
4282
4282
|
}
|
|
4283
|
-
_rotateFigure({ x:
|
|
4283
|
+
_rotateFigure({ x: d, y: p, size: b, rotation: f = 0, draw: v }) {
|
|
4284
4284
|
var D;
|
|
4285
|
-
const Y =
|
|
4285
|
+
const Y = d + b / 2, H = p + b / 2;
|
|
4286
4286
|
v(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * f / Math.PI},${Y},${H})`);
|
|
4287
4287
|
}
|
|
4288
|
-
_basicDot(
|
|
4289
|
-
const { size:
|
|
4290
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4291
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b +
|
|
4288
|
+
_basicDot(d) {
|
|
4289
|
+
const { size: p, x: b, y: f } = d;
|
|
4290
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4291
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b + p / 2)), this._element.setAttribute("cy", String(f + p / 2)), this._element.setAttribute("r", String(p / 2));
|
|
4292
4292
|
} }));
|
|
4293
4293
|
}
|
|
4294
|
-
_basicSquare(
|
|
4295
|
-
const { size:
|
|
4296
|
-
this._rotateFigure(Object.assign(Object.assign({},
|
|
4297
|
-
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(
|
|
4294
|
+
_basicSquare(d) {
|
|
4295
|
+
const { size: p, x: b, y: f } = d;
|
|
4296
|
+
this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
|
|
4297
|
+
this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(p)), this._element.setAttribute("height", String(p));
|
|
4298
4298
|
} }));
|
|
4299
4299
|
}
|
|
4300
|
-
_drawDot({ x:
|
|
4301
|
-
this._basicDot({ x:
|
|
4300
|
+
_drawDot({ x: d, y: p, size: b, rotation: f }) {
|
|
4301
|
+
this._basicDot({ x: d, y: p, size: b, rotation: f });
|
|
4302
4302
|
}
|
|
4303
|
-
_drawSquare({ x:
|
|
4304
|
-
this._basicSquare({ x:
|
|
4303
|
+
_drawSquare({ x: d, y: p, size: b, rotation: f }) {
|
|
4304
|
+
this._basicSquare({ x: d, y: p, size: b, rotation: f });
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
4307
|
const oe = "circle", ae = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], se = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
|
|
4308
4308
|
class ue {
|
|
4309
|
-
constructor(
|
|
4310
|
-
this._roundSize = (b) => this._options.dotsOptions.roundSize ? Math.floor(b) : b, this._window =
|
|
4309
|
+
constructor(d, p) {
|
|
4310
|
+
this._roundSize = (b) => this._options.dotsOptions.roundSize ? Math.floor(b) : b, this._window = p, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(d.width)), this._element.setAttribute("height", String(d.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), d.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${d.width} ${d.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = d.image, this._instanceId = ue.instanceCount++, this._options = d;
|
|
4311
4311
|
}
|
|
4312
4312
|
get width() {
|
|
4313
4313
|
return this._options.width;
|
|
@@ -4318,29 +4318,29 @@ function U2() {
|
|
|
4318
4318
|
getElement() {
|
|
4319
4319
|
return this._element;
|
|
4320
4320
|
}
|
|
4321
|
-
async drawQR(
|
|
4322
|
-
const
|
|
4321
|
+
async drawQR(d) {
|
|
4322
|
+
const p = d.getModuleCount(), b = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === oe ? b / Math.sqrt(2) : b, v = this._roundSize(f / p);
|
|
4323
4323
|
let D = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
|
|
4324
|
-
if (this._qr =
|
|
4324
|
+
if (this._qr = d, this._options.image) {
|
|
4325
4325
|
if (await this.loadImage(), !this._image) return;
|
|
4326
|
-
const { imageOptions: Y, qrOptions: H } = this._options, ie = Y.imageSize * A[H.errorCorrectionLevel], le = Math.floor(ie *
|
|
4326
|
+
const { imageOptions: Y, qrOptions: H } = this._options, ie = Y.imageSize * A[H.errorCorrectionLevel], le = Math.floor(ie * p * p);
|
|
4327
4327
|
D = function({ originalHeight: ye, originalWidth: J, maxHiddenDots: _e, maxHiddenAxisDots: me, dotSize: ge }) {
|
|
4328
4328
|
const j = { x: 0, y: 0 }, K = { x: 0, y: 0 };
|
|
4329
4329
|
if (ye <= 0 || J <= 0 || _e <= 0 || ge <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
|
|
4330
4330
|
const W = ye / J;
|
|
4331
4331
|
return j.x = Math.floor(Math.sqrt(_e / W)), j.x <= 0 && (j.x = 1), me && me < j.x && (j.x = me), j.x % 2 == 0 && j.x--, K.x = j.x * ge, j.y = 1 + 2 * Math.ceil((j.x * W - 1) / 2), K.y = Math.round(K.x * W), (j.y * j.x > _e || me && me < j.y) && (me && me < j.y ? (j.y = me, j.y % 2 == 0 && j.x--) : j.y -= 2, K.y = j.y * ge, j.x = 1 + 2 * Math.ceil((j.y / W - 1) / 2), K.x = Math.round(K.y / W)), { height: K.y, width: K.x, hideYDots: j.y, hideXDots: j.x };
|
|
4332
|
-
}({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: le, maxHiddenAxisDots:
|
|
4332
|
+
}({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: le, maxHiddenAxisDots: p - 14, dotSize: v });
|
|
4333
4333
|
}
|
|
4334
4334
|
this.drawBackground(), this.drawDots((Y, H) => {
|
|
4335
4335
|
var ie, le, ye, J, _e, me;
|
|
4336
|
-
return !(this._options.imageOptions.hideBackgroundDots && Y >= (
|
|
4337
|
-
}), this.drawCorners(), this._options.image && await this.drawImage({ width: D.width, height: D.height, count:
|
|
4336
|
+
return !(this._options.imageOptions.hideBackgroundDots && Y >= (p - D.hideYDots) / 2 && Y < (p + D.hideYDots) / 2 && H >= (p - D.hideXDots) / 2 && H < (p + D.hideXDots) / 2 || !((ie = ae[Y]) === null || ie === void 0) && ie[H] || !((le = ae[Y - p + 7]) === null || le === void 0) && le[H] || !((ye = ae[Y]) === null || ye === void 0) && ye[H - p + 7] || !((J = se[Y]) === null || J === void 0) && J[H] || !((_e = se[Y - p + 7]) === null || _e === void 0) && _e[H] || !((me = se[Y]) === null || me === void 0) && me[H - p + 7]);
|
|
4337
|
+
}), this.drawCorners(), this._options.image && await this.drawImage({ width: D.width, height: D.height, count: p, dotSize: v });
|
|
4338
4338
|
}
|
|
4339
4339
|
drawBackground() {
|
|
4340
|
-
var
|
|
4340
|
+
var d, p, b;
|
|
4341
4341
|
const f = this._element, v = this._options;
|
|
4342
4342
|
if (f) {
|
|
4343
|
-
const D = (
|
|
4343
|
+
const D = (d = v.backgroundOptions) === null || d === void 0 ? void 0 : d.gradient, Y = (p = v.backgroundOptions) === null || p === void 0 ? void 0 : p.color;
|
|
4344
4344
|
let H = v.height, ie = v.width;
|
|
4345
4345
|
if (D || Y) {
|
|
4346
4346
|
const le = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
@@ -4348,14 +4348,14 @@ function U2() {
|
|
|
4348
4348
|
}
|
|
4349
4349
|
}
|
|
4350
4350
|
}
|
|
4351
|
-
drawDots(
|
|
4352
|
-
var
|
|
4351
|
+
drawDots(d) {
|
|
4352
|
+
var p, b;
|
|
4353
4353
|
if (!this._qr) throw "QR code is not defined";
|
|
4354
4354
|
const f = this._options, v = this._qr.getModuleCount();
|
|
4355
4355
|
if (v > f.width || v > f.height) throw "The canvas is too small.";
|
|
4356
4356
|
const D = Math.min(f.width, f.height) - 2 * f.margin, Y = f.shape === oe ? D / Math.sqrt(2) : D, H = this._roundSize(Y / v), ie = this._roundSize((f.width - v * H) / 2), le = this._roundSize((f.height - v * H) / 2), ye = new R({ svg: this._element, type: f.dotsOptions.type, window: this._window });
|
|
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: (
|
|
4358
|
-
for (let J = 0; J < v; J++) for (let _e = 0; _e < v; _e++)
|
|
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: (p = f.dotsOptions) === null || p === void 0 ? void 0 : p.gradient, color: f.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: f.height, width: f.width, name: `dot-color-${this._instanceId}` });
|
|
4358
|
+
for (let J = 0; J < v; J++) for (let _e = 0; _e < v; _e++) d && !d(J, _e) || !((b = this._qr) === null || b === void 0) && b.isDark(J, _e) && (ye.draw(ie + _e * H, le + J * H, H, (me, ge) => !(_e + me < 0 || J + ge < 0 || _e + me >= v || J + ge >= v) && !(d && !d(J + ge, _e + me)) && !!this._qr && this._qr.isDark(J + ge, _e + me)), ye._element && this._dotsClipPath && this._dotsClipPath.appendChild(ye._element));
|
|
4359
4359
|
if (f.shape === oe) {
|
|
4360
4360
|
const J = this._roundSize((D / H - v) / 2), _e = v + 2 * J, me = ie - J * H, ge = le - J * H, j = [], K = this._roundSize(_e / 2);
|
|
4361
4361
|
for (let W = 0; W < _e; W++) {
|
|
@@ -4370,28 +4370,28 @@ function U2() {
|
|
|
4370
4370
|
}
|
|
4371
4371
|
drawCorners() {
|
|
4372
4372
|
if (!this._qr) throw "QR code is not defined";
|
|
4373
|
-
const
|
|
4374
|
-
if (!
|
|
4375
|
-
const b = this._qr.getModuleCount(), f = Math.min(
|
|
4373
|
+
const d = this._element, p = this._options;
|
|
4374
|
+
if (!d) throw "Element code is not defined";
|
|
4375
|
+
const b = this._qr.getModuleCount(), f = Math.min(p.width, p.height) - 2 * p.margin, v = p.shape === oe ? f / Math.sqrt(2) : f, D = this._roundSize(v / b), Y = 7 * D, H = 3 * D, ie = this._roundSize((p.width - b * D) / 2), le = this._roundSize((p.height - b * D) / 2);
|
|
4376
4376
|
[[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([ye, J, _e]) => {
|
|
4377
4377
|
var me, ge, j, K, W, V, X, xe, l, c, _, T, F, ee;
|
|
4378
4378
|
const Ce = ie + ye * D * (b - 7), be = le + J * D * (b - 7);
|
|
4379
4379
|
let Re = this._dotsClipPath, ve = this._dotsClipPath;
|
|
4380
|
-
if ((!((me =
|
|
4381
|
-
const Pe = new L({ svg: this._element, type:
|
|
4380
|
+
if ((!((me = p.cornersSquareOptions) === null || me === void 0) && me.gradient || !((ge = p.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}-${J}-${this._instanceId}`), this._defs.appendChild(Re), this._cornersSquareClipPath = this._cornersDotClipPath = ve = Re, this._createColor({ options: (j = p.cornersSquareOptions) === null || j === void 0 ? void 0 : j.gradient, color: (K = p.cornersSquareOptions) === null || K === void 0 ? void 0 : K.color, additionalRotation: _e, x: Ce, y: be, height: Y, width: Y, name: `corners-square-color-${ye}-${J}-${this._instanceId}` })), ((W = p.cornersSquareOptions) === null || W === void 0 ? void 0 : W.type) && M.includes(p.cornersSquareOptions.type)) {
|
|
4381
|
+
const Pe = new L({ svg: this._element, type: p.cornersSquareOptions.type, window: this._window });
|
|
4382
4382
|
Pe.draw(Ce, be, Y, _e), Pe._element && Re && Re.appendChild(Pe._element);
|
|
4383
4383
|
} else {
|
|
4384
|
-
const Pe = new R({ svg: this._element, type: ((V =
|
|
4384
|
+
const Pe = new R({ svg: this._element, type: ((V = p.cornersSquareOptions) === null || V === void 0 ? void 0 : V.type) || p.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(Ce + Te * D, be + Le * D, D, (Qe, Ke) => {
|
|
4386
4386
|
var tt;
|
|
4387
4387
|
return !!(!((tt = ae[Le + Ke]) === null || tt === void 0) && tt[Te + Qe]);
|
|
4388
4388
|
}), Pe._element && Re && Re.appendChild(Pe._element));
|
|
4389
4389
|
}
|
|
4390
|
-
if ((!((xe =
|
|
4391
|
-
const Pe = new q({ svg: this._element, type:
|
|
4390
|
+
if ((!((xe = p.cornersDotOptions) === null || xe === void 0) && xe.gradient || !((l = p.cornersDotOptions) === null || l === void 0) && l.color) && (ve = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), ve.setAttribute("id", `clip-path-corners-dot-color-${ye}-${J}-${this._instanceId}`), this._defs.appendChild(ve), this._cornersDotClipPath = ve, this._createColor({ options: (c = p.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (_ = p.cornersDotOptions) === null || _ === void 0 ? void 0 : _.color, additionalRotation: _e, x: Ce + 2 * D, y: be + 2 * D, height: H, width: H, name: `corners-dot-color-${ye}-${J}-${this._instanceId}` })), ((T = p.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) && $.includes(p.cornersDotOptions.type)) {
|
|
4391
|
+
const Pe = new q({ svg: this._element, type: p.cornersDotOptions.type, window: this._window });
|
|
4392
4392
|
Pe.draw(Ce + 2 * D, be + 2 * D, H, _e), Pe._element && ve && ve.appendChild(Pe._element);
|
|
4393
4393
|
} else {
|
|
4394
|
-
const Pe = new R({ svg: this._element, type: ((F =
|
|
4394
|
+
const Pe = new R({ svg: this._element, type: ((F = p.cornersDotOptions) === null || F === void 0 ? void 0 : F.type) || p.dotsOptions.type, window: this._window });
|
|
4395
4395
|
for (let Le = 0; Le < se.length; Le++) for (let Te = 0; Te < se[Le].length; Te++) !((ee = se[Le]) === null || ee === void 0) && ee[Te] && (Pe.draw(Ce + Te * D, be + Le * D, D, (Qe, Ke) => {
|
|
4396
4396
|
var tt;
|
|
4397
4397
|
return !!(!((tt = se[Le + Ke]) === null || tt === void 0) && tt[Te + Qe]);
|
|
@@ -4400,18 +4400,18 @@ function U2() {
|
|
|
4400
4400
|
});
|
|
4401
4401
|
}
|
|
4402
4402
|
loadImage() {
|
|
4403
|
-
return new Promise((
|
|
4403
|
+
return new Promise((d, p) => {
|
|
4404
4404
|
var b;
|
|
4405
4405
|
const f = this._options;
|
|
4406
|
-
if (!f.image) return
|
|
4406
|
+
if (!f.image) return p("Image is not defined");
|
|
4407
4407
|
if (!((b = f.nodeCanvas) === null || b === void 0) && b.loadImage) f.nodeCanvas.loadImage(f.image).then((v) => {
|
|
4408
4408
|
var D, Y;
|
|
4409
4409
|
if (this._image = v, this._options.imageOptions.saveAsBlob) {
|
|
4410
4410
|
const H = (D = f.nodeCanvas) === null || D === void 0 ? void 0 : D.createCanvas(this._image.width, this._image.height);
|
|
4411
4411
|
(Y = H?.getContext("2d")) === null || Y === void 0 || Y.drawImage(v, 0, 0), this._imageUri = H?.toDataURL();
|
|
4412
4412
|
}
|
|
4413
|
-
|
|
4414
|
-
}).catch(
|
|
4413
|
+
d();
|
|
4414
|
+
}).catch(p);
|
|
4415
4415
|
else {
|
|
4416
4416
|
const v = new this._window.Image();
|
|
4417
4417
|
typeof f.imageOptions.crossOrigin == "string" && (v.crossOrigin = f.imageOptions.crossOrigin), this._image = v, v.onload = async () => {
|
|
@@ -4425,30 +4425,30 @@ function U2() {
|
|
|
4425
4425
|
}, le.readAsDataURL(ie.response);
|
|
4426
4426
|
}, ie.open("GET", D), ie.responseType = "blob", ie.send();
|
|
4427
4427
|
});
|
|
4428
|
-
}(f.image || "", this._window)),
|
|
4428
|
+
}(f.image || "", this._window)), d();
|
|
4429
4429
|
}, v.src = f.image;
|
|
4430
4430
|
}
|
|
4431
4431
|
});
|
|
4432
4432
|
}
|
|
4433
|
-
async drawImage({ width:
|
|
4434
|
-
const v = this._options, D = this._roundSize((v.width - b * f) / 2), Y = this._roundSize((v.height - b * f) / 2), H = D + this._roundSize(v.imageOptions.margin + (b * f -
|
|
4433
|
+
async drawImage({ width: d, height: p, count: b, dotSize: f }) {
|
|
4434
|
+
const v = this._options, D = this._roundSize((v.width - b * f) / 2), Y = this._roundSize((v.height - b * f) / 2), H = D + this._roundSize(v.imageOptions.margin + (b * f - d) / 2), ie = Y + this._roundSize(v.imageOptions.margin + (b * f - p) / 2), le = d - 2 * v.imageOptions.margin, ye = p - 2 * v.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
|
|
4435
4435
|
J.setAttribute("href", this._imageUri || ""), J.setAttribute("xlink:href", this._imageUri || ""), J.setAttribute("x", String(H)), J.setAttribute("y", String(ie)), J.setAttribute("width", `${le}px`), J.setAttribute("height", `${ye}px`), this._element.appendChild(J);
|
|
4436
4436
|
}
|
|
4437
|
-
_createColor({ options:
|
|
4437
|
+
_createColor({ options: d, color: p, additionalRotation: b, x: f, y: v, height: D, width: Y, name: H }) {
|
|
4438
4438
|
const ie = Y > D ? Y : D, le = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
4439
|
-
if (le.setAttribute("x", String(f)), le.setAttribute("y", String(v)), le.setAttribute("height", String(D)), le.setAttribute("width", String(Y)), le.setAttribute("clip-path", `url('#clip-path-${H}')`),
|
|
4439
|
+
if (le.setAttribute("x", String(f)), le.setAttribute("y", String(v)), le.setAttribute("height", String(D)), le.setAttribute("width", String(Y)), le.setAttribute("clip-path", `url('#clip-path-${H}')`), d) {
|
|
4440
4440
|
let ye;
|
|
4441
|
-
if (
|
|
4441
|
+
if (d.type === "radial") ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ye.setAttribute("id", H), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("fx", String(f + Y / 2)), ye.setAttribute("fy", String(v + D / 2)), ye.setAttribute("cx", String(f + Y / 2)), ye.setAttribute("cy", String(v + D / 2)), ye.setAttribute("r", String(ie / 2));
|
|
4442
4442
|
else {
|
|
4443
|
-
const J = ((
|
|
4443
|
+
const J = ((d.rotation || 0) + b) % (2 * Math.PI), _e = (J + 2 * Math.PI) % (2 * Math.PI);
|
|
4444
4444
|
let me = f + Y / 2, ge = v + D / 2, j = f + Y / 2, K = v + D / 2;
|
|
4445
4445
|
_e >= 0 && _e <= 0.25 * Math.PI || _e > 1.75 * Math.PI && _e <= 2 * Math.PI ? (me -= Y / 2, ge -= D / 2 * Math.tan(J), j += Y / 2, K += D / 2 * Math.tan(J)) : _e > 0.25 * Math.PI && _e <= 0.75 * Math.PI ? (ge -= D / 2, me -= Y / 2 / Math.tan(J), K += D / 2, j += Y / 2 / Math.tan(J)) : _e > 0.75 * Math.PI && _e <= 1.25 * Math.PI ? (me += Y / 2, ge += D / 2 * Math.tan(J), j -= Y / 2, K -= D / 2 * Math.tan(J)) : _e > 1.25 * Math.PI && _e <= 1.75 * Math.PI && (ge += D / 2, me += Y / 2 / Math.tan(J), K -= D / 2, j -= Y / 2 / Math.tan(J)), ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ye.setAttribute("id", H), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("x1", String(Math.round(me))), ye.setAttribute("y1", String(Math.round(ge))), ye.setAttribute("x2", String(Math.round(j))), ye.setAttribute("y2", String(Math.round(K)));
|
|
4446
4446
|
}
|
|
4447
|
-
|
|
4447
|
+
d.colorStops.forEach(({ offset: J, color: _e }) => {
|
|
4448
4448
|
const me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
|
|
4449
4449
|
me.setAttribute("offset", 100 * J + "%"), me.setAttribute("stop-color", _e), ye.appendChild(me);
|
|
4450
4450
|
}), le.setAttribute("fill", `url('#${H}')`), this._defs.appendChild(ye);
|
|
4451
|
-
} else
|
|
4451
|
+
} else p && le.setAttribute("fill", p);
|
|
4452
4452
|
this._element.appendChild(le);
|
|
4453
4453
|
}
|
|
4454
4454
|
}
|
|
@@ -4457,40 +4457,40 @@ function U2() {
|
|
|
4457
4457
|
for (let S = 0; S <= 40; S++) Q[S] = S;
|
|
4458
4458
|
const G = { type: te, shape: "square", width: 300, height: 300, data: "", margin: 0, qrOptions: { typeNumber: Q[0], mode: void 0, errorCorrectionLevel: "Q" }, imageOptions: { saveAsBlob: !0, hideBackgroundDots: !0, imageSize: 0.4, crossOrigin: void 0, margin: 0 }, dotsOptions: { type: "square", color: "#000", roundSize: !0 }, backgroundOptions: { round: 0, color: "#fff" } };
|
|
4459
4459
|
function he(S) {
|
|
4460
|
-
const
|
|
4461
|
-
if (!
|
|
4462
|
-
return
|
|
4460
|
+
const d = Object.assign({}, S);
|
|
4461
|
+
if (!d.colorStops || !d.colorStops.length) throw "Field 'colorStops' is required in gradient";
|
|
4462
|
+
return d.rotation ? d.rotation = Number(d.rotation) : d.rotation = 0, d.colorStops = d.colorStops.map((p) => Object.assign(Object.assign({}, p), { offset: Number(p.offset) })), d;
|
|
4463
4463
|
}
|
|
4464
4464
|
function fe(S) {
|
|
4465
|
-
const
|
|
4466
|
-
return
|
|
4465
|
+
const d = Object.assign({}, S);
|
|
4466
|
+
return d.width = Number(d.width), d.height = Number(d.height), d.margin = Number(d.margin), d.imageOptions = Object.assign(Object.assign({}, d.imageOptions), { hideBackgroundDots: !!d.imageOptions.hideBackgroundDots, imageSize: Number(d.imageOptions.imageSize), margin: Number(d.imageOptions.margin) }), d.margin > Math.min(d.width, d.height) && (d.margin = Math.min(d.width, d.height)), d.dotsOptions = Object.assign({}, d.dotsOptions), d.dotsOptions.gradient && (d.dotsOptions.gradient = he(d.dotsOptions.gradient)), d.cornersSquareOptions && (d.cornersSquareOptions = Object.assign({}, d.cornersSquareOptions), d.cornersSquareOptions.gradient && (d.cornersSquareOptions.gradient = he(d.cornersSquareOptions.gradient))), d.cornersDotOptions && (d.cornersDotOptions = Object.assign({}, d.cornersDotOptions), d.cornersDotOptions.gradient && (d.cornersDotOptions.gradient = he(d.cornersDotOptions.gradient))), d.backgroundOptions && (d.backgroundOptions = Object.assign({}, d.backgroundOptions), d.backgroundOptions.gradient && (d.backgroundOptions.gradient = he(d.backgroundOptions.gradient))), d;
|
|
4467
4467
|
}
|
|
4468
4468
|
var ne = u(873), Se = u.n(ne);
|
|
4469
4469
|
function De(S) {
|
|
4470
4470
|
if (!S) throw new Error("Extension must be defined");
|
|
4471
4471
|
S[0] === "." && (S = S.substring(1));
|
|
4472
|
-
const
|
|
4473
|
-
if (!
|
|
4474
|
-
return
|
|
4472
|
+
const d = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[S.toLowerCase()];
|
|
4473
|
+
if (!d) throw new Error(`Extension "${S}" is not supported`);
|
|
4474
|
+
return d;
|
|
4475
4475
|
}
|
|
4476
4476
|
class k {
|
|
4477
|
-
constructor(
|
|
4478
|
-
|
|
4477
|
+
constructor(d) {
|
|
4478
|
+
d != null && d.jsdom ? this._window = new d.jsdom("", { resources: "usable" }).window : this._window = window, this._options = d ? fe(h(G, d)) : G, this.update();
|
|
4479
4479
|
}
|
|
4480
|
-
static _clearContainer(
|
|
4481
|
-
|
|
4480
|
+
static _clearContainer(d) {
|
|
4481
|
+
d && (d.innerHTML = "");
|
|
4482
4482
|
}
|
|
4483
4483
|
_setupSvg() {
|
|
4484
4484
|
if (!this._qr) return;
|
|
4485
|
-
const
|
|
4486
|
-
this._svg =
|
|
4487
|
-
var
|
|
4488
|
-
this._svg && ((
|
|
4485
|
+
const d = new Z(this._options, this._window);
|
|
4486
|
+
this._svg = d.getElement(), this._svgDrawingPromise = d.drawQR(this._qr).then(() => {
|
|
4487
|
+
var p;
|
|
4488
|
+
this._svg && ((p = this._extension) === null || p === void 0 || p.call(this, d.getElement(), this._options));
|
|
4489
4489
|
});
|
|
4490
4490
|
}
|
|
4491
4491
|
_setupCanvas() {
|
|
4492
|
-
var
|
|
4493
|
-
this._qr && (!((
|
|
4492
|
+
var d, p;
|
|
4493
|
+
this._qr && (!((d = this._options.nodeCanvas) === null || d === void 0) && d.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (p = this._svgDrawingPromise) === null || p === void 0 ? void 0 : p.then(() => {
|
|
4494
4494
|
var b;
|
|
4495
4495
|
if (!this._svg) return;
|
|
4496
4496
|
const f = this._svg, v = new this._window.XMLSerializer().serializeToString(f), D = btoa(v), Y = `data:${De("svg")};base64,${D}`;
|
|
@@ -4509,46 +4509,46 @@ function U2() {
|
|
|
4509
4509
|
}
|
|
4510
4510
|
}));
|
|
4511
4511
|
}
|
|
4512
|
-
async _getElement(
|
|
4512
|
+
async _getElement(d = "png") {
|
|
4513
4513
|
if (!this._qr) throw "QR code is empty";
|
|
4514
|
-
return
|
|
4514
|
+
return d.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
|
|
4515
4515
|
}
|
|
4516
|
-
update(
|
|
4517
|
-
k._clearContainer(this._container), this._options =
|
|
4516
|
+
update(d) {
|
|
4517
|
+
k._clearContainer(this._container), this._options = d ? fe(h(this._options, d)) : this._options, this._options.data && (this._qr = Se()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(p) {
|
|
4518
4518
|
switch (!0) {
|
|
4519
|
-
case /^[0-9]*$/.test(
|
|
4519
|
+
case /^[0-9]*$/.test(p):
|
|
4520
4520
|
return "Numeric";
|
|
4521
|
-
case /^[0-9A-Z $%*+\-./:]*$/.test(
|
|
4521
|
+
case /^[0-9A-Z $%*+\-./:]*$/.test(p):
|
|
4522
4522
|
return "Alphanumeric";
|
|
4523
4523
|
default:
|
|
4524
4524
|
return "Byte";
|
|
4525
4525
|
}
|
|
4526
4526
|
}(this._options.data)), this._qr.make(), this._options.type === te ? this._setupCanvas() : this._setupSvg(), this.append(this._container));
|
|
4527
4527
|
}
|
|
4528
|
-
append(
|
|
4529
|
-
if (
|
|
4530
|
-
if (typeof
|
|
4531
|
-
this._options.type === te ? this._domCanvas &&
|
|
4528
|
+
append(d) {
|
|
4529
|
+
if (d) {
|
|
4530
|
+
if (typeof d.appendChild != "function") throw "Container should be a single DOM node";
|
|
4531
|
+
this._options.type === te ? this._domCanvas && d.appendChild(this._domCanvas) : this._svg && d.appendChild(this._svg), this._container = d;
|
|
4532
4532
|
}
|
|
4533
4533
|
}
|
|
4534
|
-
applyExtension(
|
|
4535
|
-
if (!
|
|
4536
|
-
this._extension =
|
|
4534
|
+
applyExtension(d) {
|
|
4535
|
+
if (!d) throw "Extension function should be defined.";
|
|
4536
|
+
this._extension = d, this.update();
|
|
4537
4537
|
}
|
|
4538
4538
|
deleteExtension() {
|
|
4539
4539
|
this._extension = void 0, this.update();
|
|
4540
4540
|
}
|
|
4541
|
-
async getRawData(
|
|
4541
|
+
async getRawData(d = "png") {
|
|
4542
4542
|
if (!this._qr) throw "QR code is empty";
|
|
4543
|
-
const
|
|
4544
|
-
if (!
|
|
4545
|
-
if (
|
|
4543
|
+
const p = await this._getElement(d), b = De(d);
|
|
4544
|
+
if (!p) return null;
|
|
4545
|
+
if (d.toLowerCase() === "svg") {
|
|
4546
4546
|
const f = `<?xml version="1.0" standalone="no"?>\r
|
|
4547
|
-
${new this._window.XMLSerializer().serializeToString(
|
|
4547
|
+
${new this._window.XMLSerializer().serializeToString(p)}`;
|
|
4548
4548
|
return typeof Blob > "u" || this._options.jsdom ? Buffer.from(f) : new Blob([f], { type: b });
|
|
4549
4549
|
}
|
|
4550
4550
|
return new Promise((f) => {
|
|
4551
|
-
const v =
|
|
4551
|
+
const v = p;
|
|
4552
4552
|
if ("toBuffer" in v) if (b === "image/png") f(v.toBuffer(b));
|
|
4553
4553
|
else if (b === "image/jpeg") f(v.toBuffer(b));
|
|
4554
4554
|
else {
|
|
@@ -4558,17 +4558,17 @@ ${new this._window.XMLSerializer().serializeToString(d)}`;
|
|
|
4558
4558
|
else "toBlob" in v && v.toBlob(f, b, 1);
|
|
4559
4559
|
});
|
|
4560
4560
|
}
|
|
4561
|
-
async download(
|
|
4561
|
+
async download(d) {
|
|
4562
4562
|
if (!this._qr) throw "QR code is empty";
|
|
4563
4563
|
if (typeof Blob > "u") throw "Cannot download in Node.js, call getRawData instead.";
|
|
4564
|
-
let
|
|
4565
|
-
typeof
|
|
4566
|
-
const f = await this._getElement(
|
|
4567
|
-
if (f) if (
|
|
4564
|
+
let p = "png", b = "qr";
|
|
4565
|
+
typeof d == "string" ? (p = d, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof d == "object" && d !== null && (d.name && (b = d.name), d.extension && (p = d.extension));
|
|
4566
|
+
const f = await this._getElement(p);
|
|
4567
|
+
if (f) if (p.toLowerCase() === "svg") {
|
|
4568
4568
|
let v = new XMLSerializer().serializeToString(f);
|
|
4569
4569
|
v = `<?xml version="1.0" standalone="no"?>\r
|
|
4570
|
-
` + v, C(`data:${De(
|
|
4571
|
-
} else C(f.toDataURL(De(
|
|
4570
|
+
` + v, C(`data:${De(p)};charset=utf-8,${encodeURIComponent(v)}`, `${b}.svg`);
|
|
4571
|
+
} else C(f.toDataURL(De(p)), `${b}.${p}`);
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
4574
|
const E = k;
|
|
@@ -4807,15 +4807,15 @@ function uw() {
|
|
|
4807
4807
|
var E = ["th", "st", "nd", "rd"], S = k % 100;
|
|
4808
4808
|
return "[" + k + (E[(S - 20) % 10] || E[S] || E[0]) + "]";
|
|
4809
4809
|
} }, se = function(k, E, S) {
|
|
4810
|
-
var
|
|
4811
|
-
return !
|
|
4810
|
+
var d = String(k);
|
|
4811
|
+
return !d || d.length >= E ? k : "" + Array(E + 1 - d.length).join(S) + k;
|
|
4812
4812
|
}, ue = { s: se, z: function(k) {
|
|
4813
|
-
var E = -k.utcOffset(), S = Math.abs(E),
|
|
4814
|
-
return (E <= 0 ? "+" : "-") + se(
|
|
4813
|
+
var E = -k.utcOffset(), S = Math.abs(E), d = Math.floor(S / 60), p = S % 60;
|
|
4814
|
+
return (E <= 0 ? "+" : "-") + se(d, 2, "0") + ":" + se(p, 2, "0");
|
|
4815
4815
|
}, m: function k(E, S) {
|
|
4816
4816
|
if (E.date() < S.date()) return -k(S, E);
|
|
4817
|
-
var
|
|
4818
|
-
return +(-(
|
|
4817
|
+
var d = 12 * (S.year() - E.year()) + (S.month() - E.month()), p = E.clone().add(d, N), b = S - p < 0, f = E.clone().add(d + (b ? -1 : 1), N);
|
|
4818
|
+
return +(-(d + (S - p) / (b ? p - f : f - p)) || 0);
|
|
4819
4819
|
}, a: function(k) {
|
|
4820
4820
|
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
|
|
4821
4821
|
}, p: function(k) {
|
|
@@ -4826,19 +4826,19 @@ function uw() {
|
|
|
4826
4826
|
te[Z] = ae;
|
|
4827
4827
|
var Q = "$isDayjsObject", G = function(k) {
|
|
4828
4828
|
return k instanceof Se || !(!k || !k[Q]);
|
|
4829
|
-
}, he = function k(E, S,
|
|
4830
|
-
var
|
|
4829
|
+
}, he = function k(E, S, d) {
|
|
4830
|
+
var p;
|
|
4831
4831
|
if (!E) return Z;
|
|
4832
4832
|
if (typeof E == "string") {
|
|
4833
4833
|
var b = E.toLowerCase();
|
|
4834
|
-
te[b] && (
|
|
4834
|
+
te[b] && (p = b), S && (te[b] = S, p = b);
|
|
4835
4835
|
var f = E.split("-");
|
|
4836
|
-
if (!
|
|
4836
|
+
if (!p && f.length > 1) return k(f[0]);
|
|
4837
4837
|
} else {
|
|
4838
4838
|
var v = E.name;
|
|
4839
|
-
te[v] = E,
|
|
4839
|
+
te[v] = E, p = v;
|
|
4840
4840
|
}
|
|
4841
|
-
return !
|
|
4841
|
+
return !d && p && (Z = p), p || !d && Z;
|
|
4842
4842
|
}, fe = function(k, E) {
|
|
4843
4843
|
if (G(k)) return k.clone();
|
|
4844
4844
|
var S = typeof E == "object" ? E : {};
|
|
@@ -4853,19 +4853,19 @@ function uw() {
|
|
|
4853
4853
|
}
|
|
4854
4854
|
var E = k.prototype;
|
|
4855
4855
|
return E.parse = function(S) {
|
|
4856
|
-
this.$d = function(
|
|
4857
|
-
var
|
|
4858
|
-
if (
|
|
4859
|
-
if (ne.u(
|
|
4860
|
-
if (
|
|
4861
|
-
if (typeof
|
|
4862
|
-
var f =
|
|
4856
|
+
this.$d = function(d) {
|
|
4857
|
+
var p = d.date, b = d.utc;
|
|
4858
|
+
if (p === null) return /* @__PURE__ */ new Date(NaN);
|
|
4859
|
+
if (ne.u(p)) return /* @__PURE__ */ new Date();
|
|
4860
|
+
if (p instanceof Date) return new Date(p);
|
|
4861
|
+
if (typeof p == "string" && !/Z$/i.test(p)) {
|
|
4862
|
+
var f = p.match(q);
|
|
4863
4863
|
if (f) {
|
|
4864
4864
|
var v = f[2] - 1 || 0, D = (f[7] || "0").substring(0, 3);
|
|
4865
4865
|
return b ? new Date(Date.UTC(f[1], v, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, D)) : new Date(f[1], v, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, D);
|
|
4866
4866
|
}
|
|
4867
4867
|
}
|
|
4868
|
-
return new Date(
|
|
4868
|
+
return new Date(p);
|
|
4869
4869
|
}(S), this.init();
|
|
4870
4870
|
}, E.init = function() {
|
|
4871
4871
|
var S = this.$d;
|
|
@@ -4874,25 +4874,25 @@ function uw() {
|
|
|
4874
4874
|
return ne;
|
|
4875
4875
|
}, E.isValid = function() {
|
|
4876
4876
|
return this.$d.toString() !== $;
|
|
4877
|
-
}, E.isSame = function(S,
|
|
4878
|
-
var
|
|
4879
|
-
return this.startOf(
|
|
4880
|
-
}, E.isAfter = function(S,
|
|
4881
|
-
return fe(S) < this.startOf(
|
|
4882
|
-
}, E.isBefore = function(S,
|
|
4883
|
-
return this.endOf(
|
|
4884
|
-
}, E.$g = function(S,
|
|
4885
|
-
return ne.u(S) ? this[
|
|
4877
|
+
}, E.isSame = function(S, d) {
|
|
4878
|
+
var p = fe(S);
|
|
4879
|
+
return this.startOf(d) <= p && p <= this.endOf(d);
|
|
4880
|
+
}, E.isAfter = function(S, d) {
|
|
4881
|
+
return fe(S) < this.startOf(d);
|
|
4882
|
+
}, E.isBefore = function(S, d) {
|
|
4883
|
+
return this.endOf(d) < fe(S);
|
|
4884
|
+
}, E.$g = function(S, d, p) {
|
|
4885
|
+
return ne.u(S) ? this[d] : this.set(p, S);
|
|
4886
4886
|
}, E.unix = function() {
|
|
4887
4887
|
return Math.floor(this.valueOf() / 1e3);
|
|
4888
4888
|
}, E.valueOf = function() {
|
|
4889
4889
|
return this.$d.getTime();
|
|
4890
|
-
}, E.startOf = function(S,
|
|
4891
|
-
var
|
|
4892
|
-
var ge = ne.w(
|
|
4890
|
+
}, E.startOf = function(S, d) {
|
|
4891
|
+
var p = this, b = !!ne.u(d) || d, f = ne.p(S), v = function(_e, me) {
|
|
4892
|
+
var ge = ne.w(p.$u ? Date.UTC(p.$y, me, _e) : new Date(p.$y, me, _e), p);
|
|
4893
4893
|
return b ? ge : ge.endOf(A);
|
|
4894
4894
|
}, D = function(_e, me) {
|
|
4895
|
-
return ne.w(
|
|
4895
|
+
return ne.w(p.toDate()[_e].apply(p.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), p);
|
|
4896
4896
|
}, Y = this.$W, H = this.$M, ie = this.$D, le = "set" + (this.$u ? "UTC" : "");
|
|
4897
4897
|
switch (f) {
|
|
4898
4898
|
case L:
|
|
@@ -4916,21 +4916,21 @@ function uw() {
|
|
|
4916
4916
|
}
|
|
4917
4917
|
}, E.endOf = function(S) {
|
|
4918
4918
|
return this.startOf(S, !1);
|
|
4919
|
-
}, E.$set = function(S,
|
|
4920
|
-
var
|
|
4919
|
+
}, E.$set = function(S, d) {
|
|
4920
|
+
var p, b = ne.p(S), f = "set" + (this.$u ? "UTC" : ""), v = (p = {}, p[A] = f + "Date", p[I] = f + "Date", p[N] = f + "Month", p[L] = f + "FullYear", p[C] = f + "Hours", p[h] = f + "Minutes", p[m] = f + "Seconds", p[g] = f + "Milliseconds", p)[b], D = b === A ? this.$D + (d - this.$W) : d;
|
|
4921
4921
|
if (b === N || b === L) {
|
|
4922
4922
|
var Y = this.clone().set(I, 1);
|
|
4923
4923
|
Y.$d[v](D), Y.init(), this.$d = Y.set(I, Math.min(this.$D, Y.daysInMonth())).$d;
|
|
4924
4924
|
} else v && this.$d[v](D);
|
|
4925
4925
|
return this.init(), this;
|
|
4926
|
-
}, E.set = function(S,
|
|
4927
|
-
return this.clone().$set(S,
|
|
4926
|
+
}, E.set = function(S, d) {
|
|
4927
|
+
return this.clone().$set(S, d);
|
|
4928
4928
|
}, E.get = function(S) {
|
|
4929
4929
|
return this[ne.p(S)]();
|
|
4930
|
-
}, E.add = function(S,
|
|
4931
|
-
var
|
|
4930
|
+
}, E.add = function(S, d) {
|
|
4931
|
+
var p, b = this;
|
|
4932
4932
|
S = Number(S);
|
|
4933
|
-
var f = ne.p(
|
|
4933
|
+
var f = ne.p(d), v = function(H) {
|
|
4934
4934
|
var ie = fe(b);
|
|
4935
4935
|
return ne.w(ie.date(ie.date() + Math.round(H * S)), b);
|
|
4936
4936
|
};
|
|
@@ -4938,15 +4938,15 @@ function uw() {
|
|
|
4938
4938
|
if (f === L) return this.set(L, this.$y + S);
|
|
4939
4939
|
if (f === A) return v(1);
|
|
4940
4940
|
if (f === R) return v(7);
|
|
4941
|
-
var D = (
|
|
4941
|
+
var D = (p = {}, p[h] = s, p[C] = u, p[m] = r, p)[f] || 1, Y = this.$d.getTime() + S * D;
|
|
4942
4942
|
return ne.w(Y, this);
|
|
4943
|
-
}, E.subtract = function(S,
|
|
4944
|
-
return this.add(-1 * S,
|
|
4943
|
+
}, E.subtract = function(S, d) {
|
|
4944
|
+
return this.add(-1 * S, d);
|
|
4945
4945
|
}, E.format = function(S) {
|
|
4946
|
-
var
|
|
4947
|
-
if (!this.isValid()) return
|
|
4948
|
-
var b = S || "YYYY-MM-DDTHH:mm:ssZ", f = ne.z(this), v = this.$H, D = this.$m, Y = this.$M, H =
|
|
4949
|
-
return me && (me[ge] || me(
|
|
4946
|
+
var d = this, p = this.$locale();
|
|
4947
|
+
if (!this.isValid()) return p.invalidDate || $;
|
|
4948
|
+
var b = S || "YYYY-MM-DDTHH:mm:ssZ", f = ne.z(this), v = this.$H, D = this.$m, Y = this.$M, H = p.weekdays, ie = p.months, le = p.meridiem, ye = function(me, ge, j, K) {
|
|
4949
|
+
return me && (me[ge] || me(d, b)) || j[ge].slice(0, K);
|
|
4950
4950
|
}, J = function(me) {
|
|
4951
4951
|
return ne.s(v % 12 || 12, me, "0");
|
|
4952
4952
|
}, _e = le || function(me, ge, j) {
|
|
@@ -4957,29 +4957,29 @@ function uw() {
|
|
|
4957
4957
|
return ge || function(j) {
|
|
4958
4958
|
switch (j) {
|
|
4959
4959
|
case "YY":
|
|
4960
|
-
return String(
|
|
4960
|
+
return String(d.$y).slice(-2);
|
|
4961
4961
|
case "YYYY":
|
|
4962
|
-
return ne.s(
|
|
4962
|
+
return ne.s(d.$y, 4, "0");
|
|
4963
4963
|
case "M":
|
|
4964
4964
|
return Y + 1;
|
|
4965
4965
|
case "MM":
|
|
4966
4966
|
return ne.s(Y + 1, 2, "0");
|
|
4967
4967
|
case "MMM":
|
|
4968
|
-
return ye(
|
|
4968
|
+
return ye(p.monthsShort, Y, ie, 3);
|
|
4969
4969
|
case "MMMM":
|
|
4970
4970
|
return ye(ie, Y);
|
|
4971
4971
|
case "D":
|
|
4972
|
-
return
|
|
4972
|
+
return d.$D;
|
|
4973
4973
|
case "DD":
|
|
4974
|
-
return ne.s(
|
|
4974
|
+
return ne.s(d.$D, 2, "0");
|
|
4975
4975
|
case "d":
|
|
4976
|
-
return String(
|
|
4976
|
+
return String(d.$W);
|
|
4977
4977
|
case "dd":
|
|
4978
|
-
return ye(
|
|
4978
|
+
return ye(p.weekdaysMin, d.$W, H, 2);
|
|
4979
4979
|
case "ddd":
|
|
4980
|
-
return ye(
|
|
4980
|
+
return ye(p.weekdaysShort, d.$W, H, 3);
|
|
4981
4981
|
case "dddd":
|
|
4982
|
-
return H[
|
|
4982
|
+
return H[d.$W];
|
|
4983
4983
|
case "H":
|
|
4984
4984
|
return String(v);
|
|
4985
4985
|
case "HH":
|
|
@@ -4997,11 +4997,11 @@ function uw() {
|
|
|
4997
4997
|
case "mm":
|
|
4998
4998
|
return ne.s(D, 2, "0");
|
|
4999
4999
|
case "s":
|
|
5000
|
-
return String(
|
|
5000
|
+
return String(d.$s);
|
|
5001
5001
|
case "ss":
|
|
5002
|
-
return ne.s(
|
|
5002
|
+
return ne.s(d.$s, 2, "0");
|
|
5003
5003
|
case "SSS":
|
|
5004
|
-
return ne.s(
|
|
5004
|
+
return ne.s(d.$ms, 3, "0");
|
|
5005
5005
|
case "Z":
|
|
5006
5006
|
return f;
|
|
5007
5007
|
}
|
|
@@ -5010,8 +5010,8 @@ function uw() {
|
|
|
5010
5010
|
});
|
|
5011
5011
|
}, E.utcOffset = function() {
|
|
5012
5012
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5013
|
-
}, E.diff = function(S,
|
|
5014
|
-
var b, f = this, v = ne.p(
|
|
5013
|
+
}, E.diff = function(S, d, p) {
|
|
5014
|
+
var b, f = this, v = ne.p(d), D = fe(S), Y = (D.utcOffset() - this.utcOffset()) * s, H = this - D, ie = function() {
|
|
5015
5015
|
return ne.m(f, D);
|
|
5016
5016
|
};
|
|
5017
5017
|
switch (v) {
|
|
@@ -5042,15 +5042,15 @@ function uw() {
|
|
|
5042
5042
|
default:
|
|
5043
5043
|
b = H;
|
|
5044
5044
|
}
|
|
5045
|
-
return
|
|
5045
|
+
return p ? b : ne.a(b);
|
|
5046
5046
|
}, E.daysInMonth = function() {
|
|
5047
5047
|
return this.endOf(N).$D;
|
|
5048
5048
|
}, E.$locale = function() {
|
|
5049
5049
|
return te[this.$L];
|
|
5050
|
-
}, E.locale = function(S,
|
|
5050
|
+
}, E.locale = function(S, d) {
|
|
5051
5051
|
if (!S) return this.$L;
|
|
5052
|
-
var
|
|
5053
|
-
return b && (
|
|
5052
|
+
var p = this.clone(), b = he(S, d, !0);
|
|
5053
|
+
return b && (p.$L = b), p;
|
|
5054
5054
|
}, E.clone = function() {
|
|
5055
5055
|
return ne.w(this.$d, this);
|
|
5056
5056
|
}, E.toDate = function() {
|
|
@@ -5522,8 +5522,8 @@ const Ew = {
|
|
|
5522
5522
|
withCellSpacing: k,
|
|
5523
5523
|
size: E,
|
|
5524
5524
|
highlightToday: S,
|
|
5525
|
-
withWeekNumbers:
|
|
5526
|
-
attributes:
|
|
5525
|
+
withWeekNumbers: d,
|
|
5526
|
+
attributes: p,
|
|
5527
5527
|
...b
|
|
5528
5528
|
} = r, f = mr({
|
|
5529
5529
|
name: A || "Month",
|
|
@@ -5534,7 +5534,7 @@ const Ew = {
|
|
|
5534
5534
|
classNames: s,
|
|
5535
5535
|
styles: m,
|
|
5536
5536
|
unstyled: h,
|
|
5537
|
-
attributes:
|
|
5537
|
+
attributes: p,
|
|
5538
5538
|
vars: C,
|
|
5539
5539
|
varsResolver: Pw,
|
|
5540
5540
|
rootSelector: "month"
|
|
@@ -5604,7 +5604,7 @@ const Ew = {
|
|
|
5604
5604
|
);
|
|
5605
5605
|
});
|
|
5606
5606
|
return /* @__PURE__ */ O.jsxs("tr", { ...f("monthRow"), children: [
|
|
5607
|
-
|
|
5607
|
+
d && /* @__PURE__ */ O.jsx("td", { ...f("weekNumber"), children: Rw(ye) }),
|
|
5608
5608
|
_e
|
|
5609
5609
|
] }, J);
|
|
5610
5610
|
});
|
|
@@ -5620,7 +5620,7 @@ const Ew = {
|
|
|
5620
5620
|
classNames: H,
|
|
5621
5621
|
styles: ie,
|
|
5622
5622
|
unstyled: h,
|
|
5623
|
-
withWeekNumbers:
|
|
5623
|
+
withWeekNumbers: d
|
|
5624
5624
|
}
|
|
5625
5625
|
) }),
|
|
5626
5626
|
/* @__PURE__ */ O.jsx("tbody", { ...f("monthTbody"), children: le })
|
|
@@ -5758,8 +5758,8 @@ const kw = {
|
|
|
5758
5758
|
maxDate: L,
|
|
5759
5759
|
getYearControlProps: I
|
|
5760
5760
|
}), k = Se.map((E, S) => {
|
|
5761
|
-
const
|
|
5762
|
-
const f = I?.(
|
|
5761
|
+
const d = E.map((p, b) => {
|
|
5762
|
+
const f = I?.(p), v = Oe(p).isSame(De, "year");
|
|
5763
5763
|
return /* @__PURE__ */ O.jsx(
|
|
5764
5764
|
"td",
|
|
5765
5765
|
{
|
|
@@ -5772,32 +5772,32 @@ const kw = {
|
|
|
5772
5772
|
size: Q,
|
|
5773
5773
|
unstyled: h,
|
|
5774
5774
|
"data-mantine-stop-propagation": Z || void 0,
|
|
5775
|
-
disabled: Bh({ year:
|
|
5775
|
+
disabled: Bh({ year: p, minDate: M, maxDate: L }),
|
|
5776
5776
|
ref: (D) => {
|
|
5777
5777
|
D && q?.(S, b, D);
|
|
5778
5778
|
},
|
|
5779
5779
|
...f,
|
|
5780
5780
|
onKeyDown: (D) => {
|
|
5781
|
-
f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date:
|
|
5781
|
+
f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date: p });
|
|
5782
5782
|
},
|
|
5783
5783
|
onClick: (D) => {
|
|
5784
|
-
f?.onClick?.(D), ae?.(D,
|
|
5784
|
+
f?.onClick?.(D), ae?.(D, p);
|
|
5785
5785
|
},
|
|
5786
5786
|
onMouseEnter: (D) => {
|
|
5787
|
-
f?.onMouseEnter?.(D), se?.(D,
|
|
5787
|
+
f?.onMouseEnter?.(D), se?.(D, p);
|
|
5788
5788
|
},
|
|
5789
5789
|
onMouseDown: (D) => {
|
|
5790
5790
|
f?.onMouseDown?.(D), ue && D.preventDefault();
|
|
5791
5791
|
},
|
|
5792
5792
|
tabIndex: ue || !v ? -1 : 0,
|
|
5793
|
-
children: Oe(
|
|
5793
|
+
children: Oe(p).locale(ne.getLocale(N)).format(R)
|
|
5794
5794
|
}
|
|
5795
5795
|
)
|
|
5796
5796
|
},
|
|
5797
5797
|
b
|
|
5798
5798
|
);
|
|
5799
5799
|
});
|
|
5800
|
-
return /* @__PURE__ */ O.jsx("tr", { ...fe("yearsListRow"), children:
|
|
5800
|
+
return /* @__PURE__ */ O.jsx("tr", { ...fe("yearsListRow"), children: d }, S);
|
|
5801
5801
|
});
|
|
5802
5802
|
return /* @__PURE__ */ O.jsx(Bt, { component: "table", ref: n, size: Q, ...fe("yearsList"), ...he, children: /* @__PURE__ */ O.jsx("tbody", { children: k }) });
|
|
5803
5803
|
});
|
|
@@ -5875,8 +5875,8 @@ const Iw = {
|
|
|
5875
5875
|
maxDate: xn(I),
|
|
5876
5876
|
getMonthControlProps: $
|
|
5877
5877
|
}), k = Se.map((E, S) => {
|
|
5878
|
-
const
|
|
5879
|
-
const f = $?.(
|
|
5878
|
+
const d = E.map((p, b) => {
|
|
5879
|
+
const f = $?.(p), v = Oe(p).isSame(De, "month");
|
|
5880
5880
|
return /* @__PURE__ */ O.jsx(
|
|
5881
5881
|
"td",
|
|
5882
5882
|
{
|
|
@@ -5891,7 +5891,7 @@ const Iw = {
|
|
|
5891
5891
|
__staticSelector: A || "MonthsList",
|
|
5892
5892
|
"data-mantine-stop-propagation": Z || void 0,
|
|
5893
5893
|
disabled: Fh({
|
|
5894
|
-
month:
|
|
5894
|
+
month: p,
|
|
5895
5895
|
minDate: xn(L),
|
|
5896
5896
|
maxDate: xn(I)
|
|
5897
5897
|
}),
|
|
@@ -5900,26 +5900,26 @@ const Iw = {
|
|
|
5900
5900
|
},
|
|
5901
5901
|
...f,
|
|
5902
5902
|
onKeyDown: (D) => {
|
|
5903
|
-
f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date:
|
|
5903
|
+
f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date: p });
|
|
5904
5904
|
},
|
|
5905
5905
|
onClick: (D) => {
|
|
5906
|
-
f?.onClick?.(D), ae?.(D,
|
|
5906
|
+
f?.onClick?.(D), ae?.(D, p);
|
|
5907
5907
|
},
|
|
5908
5908
|
onMouseEnter: (D) => {
|
|
5909
|
-
f?.onMouseEnter?.(D), se?.(D,
|
|
5909
|
+
f?.onMouseEnter?.(D), se?.(D, p);
|
|
5910
5910
|
},
|
|
5911
5911
|
onMouseDown: (D) => {
|
|
5912
5912
|
f?.onMouseDown?.(D), ue && D.preventDefault();
|
|
5913
5913
|
},
|
|
5914
5914
|
tabIndex: ue || !v ? -1 : 0,
|
|
5915
|
-
children: Oe(
|
|
5915
|
+
children: Oe(p).locale(ne.getLocale(M)).format(N)
|
|
5916
5916
|
}
|
|
5917
5917
|
)
|
|
5918
5918
|
},
|
|
5919
5919
|
b
|
|
5920
5920
|
);
|
|
5921
5921
|
});
|
|
5922
|
-
return /* @__PURE__ */ O.jsx("tr", { ...fe("monthsListRow"), children:
|
|
5922
|
+
return /* @__PURE__ */ O.jsx("tr", { ...fe("monthsListRow"), children: d }, S);
|
|
5923
5923
|
});
|
|
5924
5924
|
return /* @__PURE__ */ O.jsx(Bt, { component: "table", ref: n, size: Q, ...fe("monthsList"), ...he, children: /* @__PURE__ */ O.jsx("tbody", { children: k }) });
|
|
5925
5925
|
});
|
|
@@ -6016,7 +6016,7 @@ const $w = {
|
|
|
6016
6016
|
"data-mantine-stop-propagation": fe || void 0
|
|
6017
6017
|
},
|
|
6018
6018
|
q
|
|
6019
|
-
),
|
|
6019
|
+
), d = Z && /* @__PURE__ */ Ko(
|
|
6020
6020
|
zi,
|
|
6021
6021
|
{
|
|
6022
6022
|
...De("calendarHeaderControl"),
|
|
@@ -6039,8 +6039,8 @@ const $w = {
|
|
|
6039
6039
|
size: "45%"
|
|
6040
6040
|
}
|
|
6041
6041
|
)
|
|
6042
|
-
),
|
|
6043
|
-
return /* @__PURE__ */ O.jsx(Bt, { ...De("calendarHeader"), ref: n, ...Se, children:
|
|
6042
|
+
), p = Q.map((b) => b === "previous" ? E : b === "level" ? S : b === "next" ? d : null);
|
|
6043
|
+
return /* @__PURE__ */ O.jsx(Bt, { ...De("calendarHeader"), ref: n, ...Se, children: p });
|
|
6044
6044
|
});
|
|
6045
6045
|
_r.classes = zh;
|
|
6046
6046
|
_r.displayName = "@mantine/dates/CalendarHeader";
|
|
@@ -6085,18 +6085,18 @@ const Yw = {
|
|
|
6085
6085
|
unstyled: k,
|
|
6086
6086
|
__staticSelector: E,
|
|
6087
6087
|
__stopPropagation: S,
|
|
6088
|
-
size:
|
|
6089
|
-
attributes:
|
|
6088
|
+
size: d,
|
|
6089
|
+
attributes: p,
|
|
6090
6090
|
...b
|
|
6091
6091
|
} = r, f = yr(), [v, D] = Bw(s), Y = {
|
|
6092
6092
|
__staticSelector: E || "DecadeLevel",
|
|
6093
6093
|
classNames: Se,
|
|
6094
6094
|
styles: De,
|
|
6095
6095
|
unstyled: k,
|
|
6096
|
-
size:
|
|
6097
|
-
attributes:
|
|
6096
|
+
size: d,
|
|
6097
|
+
attributes: p
|
|
6098
6098
|
}, H = typeof Z == "boolean" ? Z : m ? !Oe(D).endOf("year").isBefore(m) : !1, ie = typeof te == "boolean" ? te : g ? !Oe(v).startOf("year").isAfter(g) : !1, le = (ye, J) => Oe(ye).locale(u || f.locale).format(J);
|
|
6099
|
-
return /* @__PURE__ */ O.jsxs(Bt, { "data-decade-level": !0, size:
|
|
6099
|
+
return /* @__PURE__ */ O.jsxs(Bt, { "data-decade-level": !0, size: d, ref: n, ...b, children: [
|
|
6100
6100
|
/* @__PURE__ */ O.jsx(
|
|
6101
6101
|
_r,
|
|
6102
6102
|
{
|
|
@@ -6182,15 +6182,15 @@ const Ww = {
|
|
|
6182
6182
|
__staticSelector: k,
|
|
6183
6183
|
__stopPropagation: E,
|
|
6184
6184
|
size: S,
|
|
6185
|
-
classNames:
|
|
6186
|
-
styles:
|
|
6185
|
+
classNames: d,
|
|
6186
|
+
styles: p,
|
|
6187
6187
|
unstyled: b,
|
|
6188
6188
|
attributes: f,
|
|
6189
6189
|
...v
|
|
6190
6190
|
} = r, D = yr(), Y = {
|
|
6191
6191
|
__staticSelector: k || "YearLevel",
|
|
6192
|
-
classNames:
|
|
6193
|
-
styles:
|
|
6192
|
+
classNames: d,
|
|
6193
|
+
styles: p,
|
|
6194
6194
|
unstyled: b,
|
|
6195
6195
|
size: S,
|
|
6196
6196
|
attributes: f
|
|
@@ -6278,8 +6278,8 @@ const Fw = {
|
|
|
6278
6278
|
onPrevious: k,
|
|
6279
6279
|
onLevelClick: E,
|
|
6280
6280
|
nextDisabled: S,
|
|
6281
|
-
previousDisabled:
|
|
6282
|
-
hasNextLevel:
|
|
6281
|
+
previousDisabled: d,
|
|
6282
|
+
hasNextLevel: p,
|
|
6283
6283
|
levelControlAriaLabel: b,
|
|
6284
6284
|
withNext: f,
|
|
6285
6285
|
withPrevious: v,
|
|
@@ -6301,7 +6301,7 @@ const Fw = {
|
|
|
6301
6301
|
unstyled: le,
|
|
6302
6302
|
size: J,
|
|
6303
6303
|
attributes: me
|
|
6304
|
-
}, W = typeof S == "boolean" ? S : N ? !Oe(s).endOf("month").isBefore(N) : !1, V = typeof
|
|
6304
|
+
}, W = typeof S == "boolean" ? S : N ? !Oe(s).endOf("month").isBefore(N) : !1, V = typeof d == "boolean" ? d : R ? !Oe(s).startOf("month").isAfter(R) : !1;
|
|
6305
6305
|
return /* @__PURE__ */ O.jsxs(Bt, { "data-month-level": !0, size: J, ref: n, ...ge, children: [
|
|
6306
6306
|
/* @__PURE__ */ O.jsx(
|
|
6307
6307
|
_r,
|
|
@@ -6318,7 +6318,7 @@ const Fw = {
|
|
|
6318
6318
|
onLevelClick: E,
|
|
6319
6319
|
nextDisabled: W,
|
|
6320
6320
|
previousDisabled: V,
|
|
6321
|
-
hasNextLevel:
|
|
6321
|
+
hasNextLevel: p,
|
|
6322
6322
|
levelControlAriaLabel: b,
|
|
6323
6323
|
withNext: f,
|
|
6324
6324
|
withPrevious: v,
|
|
@@ -6425,8 +6425,8 @@ const Uw = {
|
|
|
6425
6425
|
size: k,
|
|
6426
6426
|
vars: E,
|
|
6427
6427
|
attributes: S,
|
|
6428
|
-
...
|
|
6429
|
-
} = r,
|
|
6428
|
+
...d
|
|
6429
|
+
} = r, p = yt([]), b = Array(ne).fill(0).map((f, v) => {
|
|
6430
6430
|
const D = Oe(s).add(v * 10, "years").format("YYYY-MM-DD");
|
|
6431
6431
|
return /* @__PURE__ */ O.jsx(
|
|
6432
6432
|
ps,
|
|
@@ -6444,10 +6444,10 @@ const Uw = {
|
|
|
6444
6444
|
rowIndex: H.rowIndex,
|
|
6445
6445
|
cellIndex: H.cellIndex,
|
|
6446
6446
|
event: Y,
|
|
6447
|
-
controlsRef:
|
|
6447
|
+
controlsRef: p
|
|
6448
6448
|
}),
|
|
6449
6449
|
__getControlRef: (Y, H, ie) => {
|
|
6450
|
-
Array.isArray(
|
|
6450
|
+
Array.isArray(p.current[v]) || (p.current[v] = []), Array.isArray(p.current[v][Y]) || (p.current[v][Y] = []), p.current[v][Y][H] = ie;
|
|
6451
6451
|
},
|
|
6452
6452
|
levelControlAriaLabel: typeof Se == "function" ? Se(D) : Se,
|
|
6453
6453
|
locale: u,
|
|
@@ -6485,7 +6485,7 @@ const Uw = {
|
|
|
6485
6485
|
size: k,
|
|
6486
6486
|
unstyled: G,
|
|
6487
6487
|
attributes: S,
|
|
6488
|
-
...
|
|
6488
|
+
...d,
|
|
6489
6489
|
children: b
|
|
6490
6490
|
}
|
|
6491
6491
|
);
|
|
@@ -6529,8 +6529,8 @@ const zw = {
|
|
|
6529
6529
|
levelControlAriaLabel: k,
|
|
6530
6530
|
yearLabelFormat: E,
|
|
6531
6531
|
size: S,
|
|
6532
|
-
vars:
|
|
6533
|
-
attributes:
|
|
6532
|
+
vars: d,
|
|
6533
|
+
attributes: p,
|
|
6534
6534
|
...b
|
|
6535
6535
|
} = r, f = yt([]), v = Array(De).fill(0).map((D, Y) => {
|
|
6536
6536
|
const H = Oe(s).add(Y, "years").format("YYYY-MM-DD");
|
|
@@ -6578,7 +6578,7 @@ const zw = {
|
|
|
6578
6578
|
__staticSelector: ne || "YearLevelGroup",
|
|
6579
6579
|
withCellSpacing: N,
|
|
6580
6580
|
headerControlsOrder: Q,
|
|
6581
|
-
attributes:
|
|
6581
|
+
attributes: p
|
|
6582
6582
|
},
|
|
6583
6583
|
Y
|
|
6584
6584
|
);
|
|
@@ -6592,7 +6592,7 @@ const zw = {
|
|
|
6592
6592
|
ref: n,
|
|
6593
6593
|
size: S,
|
|
6594
6594
|
unstyled: fe,
|
|
6595
|
-
attributes:
|
|
6595
|
+
attributes: p,
|
|
6596
6596
|
...b,
|
|
6597
6597
|
children: v
|
|
6598
6598
|
}
|
|
@@ -6637,8 +6637,8 @@ const qw = {
|
|
|
6637
6637
|
hasNextLevel: E,
|
|
6638
6638
|
headerControlsOrder: S,
|
|
6639
6639
|
// Other settings
|
|
6640
|
-
classNames:
|
|
6641
|
-
styles:
|
|
6640
|
+
classNames: d,
|
|
6641
|
+
styles: p,
|
|
6642
6642
|
unstyled: b,
|
|
6643
6643
|
numberOfColumns: f,
|
|
6644
6644
|
levelControlAriaLabel: v,
|
|
@@ -6696,8 +6696,8 @@ const qw = {
|
|
|
6696
6696
|
nextDisabled: De,
|
|
6697
6697
|
previousDisabled: k,
|
|
6698
6698
|
hasNextLevel: E,
|
|
6699
|
-
classNames:
|
|
6700
|
-
styles:
|
|
6699
|
+
classNames: d,
|
|
6700
|
+
styles: p,
|
|
6701
6701
|
unstyled: b,
|
|
6702
6702
|
__staticSelector: Y || "MonthLevelGroup",
|
|
6703
6703
|
size: ie,
|
|
@@ -6714,8 +6714,8 @@ const qw = {
|
|
|
6714
6714
|
return /* @__PURE__ */ O.jsx(
|
|
6715
6715
|
wr,
|
|
6716
6716
|
{
|
|
6717
|
-
classNames:
|
|
6718
|
-
styles:
|
|
6717
|
+
classNames: d,
|
|
6718
|
+
styles: p,
|
|
6719
6719
|
__staticSelector: Y || "MonthLevelGroup",
|
|
6720
6720
|
ref: n,
|
|
6721
6721
|
size: ie,
|
|
@@ -6802,8 +6802,8 @@ const Gw = {
|
|
|
6802
6802
|
excludeDate: k,
|
|
6803
6803
|
renderDay: E,
|
|
6804
6804
|
hideOutsideDates: S,
|
|
6805
|
-
hideWeekdays:
|
|
6806
|
-
getDayAriaLabel:
|
|
6805
|
+
hideWeekdays: d,
|
|
6806
|
+
getDayAriaLabel: p,
|
|
6807
6807
|
monthLabelFormat: b,
|
|
6808
6808
|
nextIcon: f,
|
|
6809
6809
|
previousIcon: v,
|
|
@@ -6936,8 +6936,8 @@ const Gw = {
|
|
|
6936
6936
|
excludeDate: k,
|
|
6937
6937
|
renderDay: E,
|
|
6938
6938
|
hideOutsideDates: S,
|
|
6939
|
-
hideWeekdays:
|
|
6940
|
-
getDayAriaLabel:
|
|
6939
|
+
hideWeekdays: d,
|
|
6940
|
+
getDayAriaLabel: p,
|
|
6941
6941
|
onNext: sn,
|
|
6942
6942
|
onPrevious: an,
|
|
6943
6943
|
hasNextLevel: u !== "month",
|
|
@@ -7063,9 +7063,9 @@ function Vw(i) {
|
|
|
7063
7063
|
__setDateRef: k,
|
|
7064
7064
|
__setLevelRef: E,
|
|
7065
7065
|
withWeekNumbers: S,
|
|
7066
|
-
headerControlsOrder:
|
|
7066
|
+
headerControlsOrder: d,
|
|
7067
7067
|
// MonthLevelGroup props
|
|
7068
|
-
firstDayOfWeek:
|
|
7068
|
+
firstDayOfWeek: p,
|
|
7069
7069
|
weekdayFormat: b,
|
|
7070
7070
|
weekendDays: f,
|
|
7071
7071
|
getDayProps: v,
|
|
@@ -7125,9 +7125,9 @@ function Vw(i) {
|
|
|
7125
7125
|
__updateDateOnMonthSelect: De,
|
|
7126
7126
|
__setDateRef: k,
|
|
7127
7127
|
withWeekNumbers: S,
|
|
7128
|
-
headerControlsOrder:
|
|
7128
|
+
headerControlsOrder: d,
|
|
7129
7129
|
// MonthLevelGroup props
|
|
7130
|
-
firstDayOfWeek:
|
|
7130
|
+
firstDayOfWeek: p,
|
|
7131
7131
|
weekdayFormat: b,
|
|
7132
7132
|
weekendDays: f,
|
|
7133
7133
|
getDayProps: v,
|
|
@@ -7200,8 +7200,8 @@ const Qw = {
|
|
|
7200
7200
|
date: k,
|
|
7201
7201
|
defaultDate: E,
|
|
7202
7202
|
onDateChange: S,
|
|
7203
|
-
getMonthControlProps:
|
|
7204
|
-
getYearControlProps:
|
|
7203
|
+
getMonthControlProps: d,
|
|
7204
|
+
getYearControlProps: p,
|
|
7205
7205
|
...b
|
|
7206
7206
|
} = r, f = yt(null), v = yt(null), [D, Y] = Xe(!1), { calendarProps: H, others: ie } = Vw(b), le = yr(), J = I || ((be) => {
|
|
7207
7207
|
const Re = Oe(be, L, le.getLocale(M)).toDate();
|
|
@@ -7323,11 +7323,11 @@ const Qw = {
|
|
|
7323
7323
|
onDateChange: V,
|
|
7324
7324
|
getMonthControlProps: (be) => ({
|
|
7325
7325
|
selected: typeof ge == "string" ? Sl(be, ge) : !1,
|
|
7326
|
-
...
|
|
7326
|
+
...d?.(be)
|
|
7327
7327
|
}),
|
|
7328
7328
|
getYearControlProps: (be) => ({
|
|
7329
7329
|
selected: typeof ge == "string" ? Oe(be).isSame(ge, "year") : !1,
|
|
7330
|
-
...
|
|
7330
|
+
...p?.(be)
|
|
7331
7331
|
}),
|
|
7332
7332
|
attributes: u.attributes
|
|
7333
7333
|
}
|
|
@@ -7379,13 +7379,13 @@ function Jw(i) {
|
|
|
7379
7379
|
n[11] !== ne || n[12] !== M ? (Se = function(v) {
|
|
7380
7380
|
const D = ne.getValues();
|
|
7381
7381
|
return v.conditional && !v.conditional(D) ? null : /* @__PURE__ */ O.jsxs(sh, { children: [
|
|
7382
|
-
(v.type === void 0 || v.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), type: v.id.includes("email") ? "email" : void 0 }, ne.key(v.id)),
|
|
7383
|
-
v.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id) }, ne.key(v.id)),
|
|
7384
|
-
v.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: v.column.title, placeholder: v.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...ne.getInputProps(v.id) }, ne.key(v.id)),
|
|
7382
|
+
(v.type === void 0 || v.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), type: v.id.includes("email") ? "email" : void 0, required: v.required }, ne.key(v.id)),
|
|
7383
|
+
v.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), required: v.required }, ne.key(v.id)),
|
|
7384
|
+
v.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: v.column.title, placeholder: v.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...ne.getInputProps(v.id), required: v.required }, ne.key(v.id)),
|
|
7385
7385
|
v.type === "boolean" && /* @__PURE__ */ O.jsx(Qi, { mt: "md", label: v.column.title, ...ne.getInputProps(v.id, {
|
|
7386
7386
|
type: "checkbox"
|
|
7387
|
-
}) }, ne.key(v.id)),
|
|
7388
|
-
v.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), minRows: 3, autosize: !0 }, ne.key(v.id)),
|
|
7387
|
+
}), required: v.required }, ne.key(v.id)),
|
|
7388
|
+
v.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), minRows: 3, autosize: !0, required: v.required }, ne.key(v.id)),
|
|
7389
7389
|
v.type === "custom" && v.render && v.render({
|
|
7390
7390
|
...ne.getValues(),
|
|
7391
7391
|
...M && {
|
|
@@ -7417,21 +7417,21 @@ function Jw(i) {
|
|
|
7417
7417
|
n[28] !== C || n[29] !== r || n[30] !== De || n[31] !== m || n[32] !== Q ? (S = Q.length ? /* @__PURE__ */ O.jsx(Jo, { active: C, size: "sm", children: Q.map((f) => /* @__PURE__ */ O.jsx(Jo.Step, { ...m && m[f - 1] ? {
|
|
7418
7418
|
label: m[f - 1].label
|
|
7419
7419
|
} : {}, children: r.filter((v) => v.step === f).map((v) => De(v)) }, f)) }) : r.map((f) => De(f)), n[28] = C, n[29] = r, n[30] = De, n[31] = m, n[32] = Q, n[33] = S) : S = n[33];
|
|
7420
|
-
let
|
|
7421
|
-
n[34] !== C || n[35] !== R || n[36] !== ue || n[37] !== s || n[38] !== Q.length ? (
|
|
7420
|
+
let d;
|
|
7421
|
+
n[34] !== C || n[35] !== R || n[36] !== ue || n[37] !== s || n[38] !== Q.length ? (d = !R && /* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
|
|
7422
7422
|
/* @__PURE__ */ O.jsx(rr, { onClick: () => Q.length ? C === 0 ? s() : A(C - 1) : s(), variant: "outline", children: Q.length ? C === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
7423
7423
|
/* @__PURE__ */ O.jsx(rr, { type: "submit", loading: ue, children: Q.length ? C === Q.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
7424
|
-
] }), n[34] = C, n[35] = R, n[36] = ue, n[37] = s, n[38] = Q.length, n[39] =
|
|
7425
|
-
let
|
|
7426
|
-
n[40] !==
|
|
7424
|
+
] }), n[34] = C, n[35] = R, n[36] = ue, n[37] = s, n[38] = Q.length, n[39] = d) : d = n[39];
|
|
7425
|
+
let p;
|
|
7426
|
+
n[40] !== d || n[41] !== E || n[42] !== S ? (p = /* @__PURE__ */ O.jsxs("form", { onSubmit: E, children: [
|
|
7427
7427
|
S,
|
|
7428
|
-
|
|
7429
|
-
] }), n[40] =
|
|
7428
|
+
d
|
|
7429
|
+
] }), n[40] = d, n[41] = E, n[42] = S, n[43] = p) : p = n[43];
|
|
7430
7430
|
let b;
|
|
7431
|
-
return n[44] !==
|
|
7431
|
+
return n[44] !== p || n[45] !== k ? (b = /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
7432
7432
|
k,
|
|
7433
|
-
|
|
7434
|
-
] }), n[44] =
|
|
7433
|
+
p
|
|
7434
|
+
] }), n[44] = p, n[45] = k, n[46] = b) : b = n[46], b;
|
|
7435
7435
|
}
|
|
7436
7436
|
function Xw(i, n) {
|
|
7437
7437
|
return i[n.id] = eb, i;
|
|
@@ -7804,14 +7804,14 @@ function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title:
|
|
|
7804
7804
|
ue(r), G(!1), Z();
|
|
7805
7805
|
}, S = () => {
|
|
7806
7806
|
G(!0);
|
|
7807
|
-
},
|
|
7807
|
+
}, d = () => {
|
|
7808
7808
|
G(!1);
|
|
7809
|
-
},
|
|
7809
|
+
}, p = (b) => {
|
|
7810
7810
|
b.stopPropagation(), te((f) => f.map((v) => v.accessor === r ? { ...v, toggled: !1 } : v));
|
|
7811
7811
|
};
|
|
7812
|
-
return O.jsxs(Ji, { "data-accessor": r, className: ft({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": h, "mantine-datatable-header-cell-resizable": C }, i), style: [{ width: N, ...C ? { minWidth: "1px" } : { minWidth: N, maxWidth: N } }, n], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: Se, onKeyDown: (b) => b.key === "Enter" && Se?.(), ref: he, children: [O.jsxs(nr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [O.jsxs(iy, { align: "center", w: "100%", className: ft({ "mantine-datatable-header-cell-draggable": m, "mantine-datatable-header-cell-drag-over": Q }), draggable: m, onDragStart: m ? De : void 0, onDragEnter: m ? S : void 0, onDragOver: m ? k : void 0, onDrop: m ? E : void 0, onDragLeave: m ?
|
|
7812
|
+
return O.jsxs(Ji, { "data-accessor": r, className: ft({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": h, "mantine-datatable-header-cell-resizable": C }, i), style: [{ width: N, ...C ? { minWidth: "1px" } : { minWidth: N, maxWidth: N } }, n], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: Se, onKeyDown: (b) => b.key === "Enter" && Se?.(), ref: he, children: [O.jsxs(nr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [O.jsxs(iy, { align: "center", w: "100%", className: ft({ "mantine-datatable-header-cell-draggable": m, "mantine-datatable-header-cell-drag-over": Q }), draggable: m, onDragStart: m ? De : void 0, onDragEnter: m ? S : void 0, onDragOver: m ? k : void 0, onDrop: m ? E : void 0, onDragLeave: m ? d : void 0, children: [m ? O.jsx(oi, { role: "img", "aria-label": "Drag column", children: O.jsx(Xo, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (b) => {
|
|
7813
7813
|
b.stopPropagation();
|
|
7814
|
-
}, children: O.jsx(Pb, {}) }) }) : null, O.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: ne, children: fe })] }), h ? O.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: O.jsx(Xo, { size: "xs", variant: "light", onClick:
|
|
7814
|
+
}, children: O.jsx(Pb, {}) }) }) : null, O.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: ne, children: fe })] }), h ? O.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: O.jsx(Xo, { size: "xs", variant: "light", onClick: p, children: O.jsx(Tb, {}) }) }) : null, g || M?.columnAccessor === r ? O.jsx(O.Fragment, { children: M?.columnAccessor === r ? O.jsx(oi, { className: ft("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": M.direction === "desc" }), role: "img", "aria-label": `Sorted ${M.direction === "desc" ? "descending" : "ascending"}`, children: A?.sorted || O.jsx(Rb, {}) }) : O.jsx(oi, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: A?.unsorted || O.jsx(Eb, {}) }) }) : null, I ? O.jsx(Ab, { filterPopoverProps: $, isActive: !!oe, filterPopoverDisableClickOutside: q, children: I }) : null] }), C && r !== "__selection__" ? O.jsx(Ob, { accessor: r, columnRef: he }) : null] });
|
|
7815
7815
|
}
|
|
7816
7816
|
function kb({ className: i, style: n, trigger: r, shadowVisible: s, checked: u, indeterminate: g, checkboxProps: m, onChange: h, rowSpan: C, ref: A }) {
|
|
7817
7817
|
let R = !m.disabled;
|
|
@@ -7822,8 +7822,8 @@ function Lb({ selectionColumnHeaderRef: i, className: n, style: r, sortStatus: s
|
|
|
7822
7822
|
ne.preventDefault(), Q((Se) => !Se);
|
|
7823
7823
|
} : void 0, children: [C && O.jsxs(ai, { children: [se, C.map((ne) => O.jsx(Cb, { group: ne }, ne.id))] }), O.jsxs(ai, { children: [!C && se, m.map(({ hidden: ne, ...Se }, De) => {
|
|
7824
7824
|
if (ne) return null;
|
|
7825
|
-
let { accessor: k, visibleMediaQuery: E, textAlign: S, width:
|
|
7826
|
-
return O.jsx(Mb, { accessor: k, className: Y, style: H, visibleMediaQuery: E, textAlign: S, width:
|
|
7825
|
+
let { accessor: k, visibleMediaQuery: E, textAlign: S, width: d, title: p, sortable: b, draggable: f, toggleable: v, resizable: D, titleClassName: Y, titleStyle: H, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J, sortKey: _e } = { ...h, ...Se };
|
|
7826
|
+
return O.jsx(Mb, { accessor: k, className: Y, style: H, visibleMediaQuery: E, textAlign: S, width: d, title: p, sortable: b, draggable: f, toggleable: v, resizable: D && De < m.length - 1, sortStatus: s, sortIcons: u, sortKey: _e, onSortStatusChange: g, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J }, k);
|
|
7827
7827
|
})] })] });
|
|
7828
7828
|
return G ? O.jsxs(qi, { position: "bottom", withArrow: !0, shadow: "md", opened: te, onChange: Q, children: [O.jsx(fh, { children: fe }), O.jsx(hh, { children: O.jsx(dl, { children: ue.filter((ne) => ne.toggleable).map((ne) => O.jsx(nr, { children: O.jsx(Qi, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: he[ne.accessor], checked: ne.toggled, onChange: (Se) => {
|
|
7829
7829
|
Z(ue.map((De) => De.accessor === ne.accessor ? { ...De, toggled: Se.currentTarget.checked } : De));
|
|
@@ -7877,10 +7877,10 @@ function Ub({ className: i, style: n, record: r, index: s, trigger: u, onChange:
|
|
|
7877
7877
|
return O.jsx(pl, { className: ft("mantine-datatable-row-selector-cell", { [li]: u === "cell" && N }, i), style: n, "data-shadow-visible": m || void 0, onClick: M, children: O.jsx(Qi, { classNames: N ? { input: li } : void 0, onChange: g, ...A, ...R }) });
|
|
7878
7878
|
}
|
|
7879
7879
|
function zb({ record: i, index: n, columns: r, defaultColumnProps: s, defaultColumnRender: u, selectionTrigger: g, selectionVisible: m, selectionChecked: h, onSelectionChange: C, isRecordSelectable: A, selectionCheckboxProps: R, getSelectionCheckboxProps: N, onClick: M, onDoubleClick: L, onContextMenu: I, onCellClick: $, onCellDoubleClick: q, onCellContextMenu: oe, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q, selectorCellShadowVisible: G, selectionColumnClassName: he, selectionColumnStyle: fe, rowFactory: ne }) {
|
|
7880
|
-
let Se = O.jsxs(O.Fragment, { children: [m && O.jsx(Ub, { className: he, style: fe, record: i, index: n, trigger: g, withRightShadow: G, checked: h, disabled: !C || (A ? !A(i, n) : !1), onChange: C, checkboxProps: R, getCheckboxProps: N }), r.map(({ hidden: E, hiddenContent: S, ...
|
|
7880
|
+
let Se = O.jsxs(O.Fragment, { children: [m && O.jsx(Ub, { className: he, style: fe, record: i, index: n, trigger: g, withRightShadow: G, checked: h, disabled: !C || (A ? !A(i, n) : !1), onChange: C, checkboxProps: R, getCheckboxProps: N }), r.map(({ hidden: E, hiddenContent: S, ...d }, p) => {
|
|
7881
7881
|
if (E || S) return null;
|
|
7882
|
-
let { accessor: b, visibleMediaQuery: f, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, cellsClassName: le, cellsStyle: ye, customCellAttributes: J } = { ...s, ...
|
|
7883
|
-
return O.jsx(Wb, { className: typeof le == "function" ? le(i, n) : le, style: ye?.(i, n), visibleMediaQuery: f, record: i, index: n, onClick: $ ? (_e) => $({ event: _e, record: i, index: n, column:
|
|
7882
|
+
let { accessor: b, visibleMediaQuery: f, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, cellsClassName: le, cellsStyle: ye, customCellAttributes: J } = { ...s, ...d };
|
|
7883
|
+
return O.jsx(Wb, { className: typeof le == "function" ? le(i, n) : le, style: ye?.(i, n), visibleMediaQuery: f, record: i, index: n, onClick: $ ? (_e) => $({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, onDoubleClick: q ? (_e) => q({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, onContextMenu: oe ? (_e) => oe({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, accessor: b, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, defaultRender: u, customCellAttributes: J }, b);
|
|
7884
7884
|
})] }), De = ae && O.jsx(Fb, { colSpan: r.filter(({ hidden: E }) => !E).length + (m ? 1 : 0), open: ae.isRowExpanded(i), content: ae.content({ record: i, index: n }), collapseProps: ae.collapseProps }), k = qb({ record: i, index: n, selectionChecked: h, onClick: M, onDoubleClick: L, onContextMenu: I, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q });
|
|
7885
7885
|
return ne ? ne({ record: i, index: n, rowProps: k, children: Se, expandedElement: De }) : O.jsxs(O.Fragment, { children: [O.jsx(ai, { ...k, children: Se }), De] });
|
|
7886
7886
|
}
|
|
@@ -7899,7 +7899,7 @@ function qb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClic
|
|
|
7899
7899
|
function Hb({ leftShadowBehind: i, rightShadowBehind: n, onScrollPositionChange: r, children: s, viewportRef: u, scrollAreaProps: g }) {
|
|
7900
7900
|
return O.jsxs(Jm, { ...g, viewportRef: u, 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, O.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), O.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": i }) }), O.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": n }) }), O.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
7901
7901
|
}
|
|
7902
|
-
function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: u, maxHeight: g, shadow: m, verticalAlign: h = "center", fetching: C, columns: A, storeColumnsKey: R, groups: N, pinFirstColumn: M, pinLastColumn: L, defaultColumnProps: I, defaultColumnRender: $, idAccessor: q = "id", records: oe, selectionTrigger: ae = "checkbox", selectedRecords: se, onSelectedRecordsChange: ue, selectionColumnClassName: Z, selectionColumnStyle: te, isRecordSelectable: Q, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: he = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: fe = (vt, Ve) => ({ "aria-label": `Select record ${Ve + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: De, horizontalSpacing: k, page: E, onPageChange: S, totalRecords:
|
|
7902
|
+
function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: u, maxHeight: g, shadow: m, verticalAlign: h = "center", fetching: C, columns: A, storeColumnsKey: R, groups: N, pinFirstColumn: M, pinLastColumn: L, defaultColumnProps: I, defaultColumnRender: $, idAccessor: q = "id", records: oe, selectionTrigger: ae = "checkbox", selectedRecords: se, onSelectedRecordsChange: ue, selectionColumnClassName: Z, selectionColumnStyle: te, isRecordSelectable: Q, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: he = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: fe = (vt, Ve) => ({ "aria-label": `Select record ${Ve + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: De, horizontalSpacing: k, page: E, onPageChange: S, totalRecords: d, recordsPerPage: p, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v = "Records per page", paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le = "sm", paginationText: ye = ({ from: vt, to: Ve, totalRecords: lt }) => `${vt} - ${Ve} / ${lt}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: _e = (vt) => vt === "previous" ? { "aria-label": "Previous page" } : vt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: me, customLoader: ge, loaderSize: j, loaderType: K, loaderColor: W, loadingText: V = "...", emptyState: X, noRecordsText: xe = "No records", noRecordsIcon: l, highlightOnHover: c, striped: _, noHeader: T, onRowClick: F, onRowDoubleClick: ee, onRowContextMenu: Ce, onCellClick: be, onCellDoubleClick: Re, onCellContextMenu: ve, onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke, 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 }) {
|
|
7903
7903
|
let vt = Lr(() => N?.flatMap((He) => He.columns) ?? A, [A, 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: Qe, onScrollToRight: Ke }, withRowBorders: fn.withRowBorders }), $r = qc(Ht.table, Mt), zn = qc(Ht.scrollViewport, an), jr = mb({ rowExpansion: Wt, records: oe, idAccessor: q }), qn = Fn((He) => {
|
|
7904
7904
|
Ht.scrollViewport.current?.scrollTo({ top: 0, left: 0 }), S(He);
|
|
7905
7905
|
}, [S, Ht.scrollViewport]), Br = oe?.length, Xi = oe?.map((He) => $t(He, q)), ir = !!se, or = se?.map((He) => $t(He, q)), di = Xi !== void 0 && or !== void 0 && or.length > 0, Yr = Q ? oe?.filter(Q) : oe, Wr = Yr?.map((He) => $t(He, q)), Fr = di && Wr.every((He) => or.includes(He)), As = di && Wr.some((He) => or.includes(He)), Os = Fn(() => {
|
|
@@ -7914,7 +7914,7 @@ function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, hei
|
|
|
7914
7914
|
} else ue(gi ? se.filter(($n) => $t($n, q) !== zr) : Za([...se, He], ($n) => $t($n, q)));
|
|
7915
7915
|
eo(In);
|
|
7916
7916
|
}), O.jsx(zb, { record: He, index: In, columns: vt, defaultColumnProps: I, defaultColumnRender: $, selectionTrigger: ae, selectionVisible: ir, selectionChecked: gi, onSelectionChange: vi, isRecordSelectable: Q, selectionCheckboxProps: G, getSelectionCheckboxProps: fe, onClick: F, onDoubleClick: ee, onCellClick: be, onCellDoubleClick: Re, onContextMenu: Ce, onCellContextMenu: ve, expansion: jr, color: Sn, backgroundColor: St, className: Dn, style: gt, customAttributes: sn, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te, idAccessor: q, rowFactory: Nn }, zr);
|
|
7917
|
-
}) : O.jsx(sb, {}) }), vt.some(({ footer: He }) => He) && O.jsx(xb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps: I, selectionVisible: ir, selectorCellShadowVisible: Ur })] }) }) }), E && O.jsx(Yb, { className: ln?.pagination, style: un?.pagination, horizontalSpacing: k, fetching: C, page: E, onPageChange: qn, totalRecords:
|
|
7917
|
+
}) : O.jsx(sb, {}) }), vt.some(({ footer: He }) => He) && O.jsx(xb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps: I, selectionVisible: ir, selectorCellShadowVisible: Ur })] }) }) }), E && O.jsx(Yb, { className: ln?.pagination, style: un?.pagination, horizontalSpacing: k, fetching: C, page: E, onPageChange: qn, totalRecords: d, recordsPerPage: p, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v, paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le, paginationText: ye, paginationWrapBreakpoint: J, getPaginationControlProps: _e, noRecordsText: xe, loadingText: V, recordsLength: Br }), O.jsx(Nb, { fetching: C, backgroundBlur: me, customContent: ge, size: j, type: K, color: W }), O.jsx(lb, { icon: l, text: xe, active: !C && !Br, children: X })] }) });
|
|
7918
7918
|
}
|
|
7919
7919
|
var Ui = { exports: {} };
|
|
7920
7920
|
/**
|
|
@@ -7929,7 +7929,7 @@ var Vb = Ui.exports, nh;
|
|
|
7929
7929
|
function Kb() {
|
|
7930
7930
|
return nh || (nh = 1, function(i, n) {
|
|
7931
7931
|
(function() {
|
|
7932
|
-
var r, s = "4.17.21", u = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", h = "Invalid `variable` option passed into `_.template`", C = "__lodash_hash_undefined__", A = 500, R = "__lodash_placeholder__", N = 1, M = 2, L = 4, I = 1, $ = 2, q = 1, oe = 2, ae = 4, se = 8, ue = 16, Z = 32, te = 64, Q = 128, G = 256, he = 512, fe = 30, ne = "...", Se = 800, De = 16, k = 1, E = 2, S = 3,
|
|
7932
|
+
var r, s = "4.17.21", u = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", h = "Invalid `variable` option passed into `_.template`", C = "__lodash_hash_undefined__", A = 500, R = "__lodash_placeholder__", N = 1, M = 2, L = 4, I = 1, $ = 2, q = 1, oe = 2, ae = 4, se = 8, ue = 16, Z = 32, te = 64, Q = 128, G = 256, he = 512, fe = 30, ne = "...", Se = 800, De = 16, k = 1, E = 2, S = 3, d = 1 / 0, p = 9007199254740991, b = 17976931348623157e292, f = NaN, v = 4294967295, D = v - 1, Y = v >>> 1, H = [
|
|
7933
7933
|
["ary", Q],
|
|
7934
7934
|
["bind", q],
|
|
7935
7935
|
["bindKey", oe],
|
|
@@ -9170,7 +9170,7 @@ function Kb() {
|
|
|
9170
9170
|
}
|
|
9171
9171
|
function ia(e, t) {
|
|
9172
9172
|
var o = "";
|
|
9173
|
-
if (!e || t < 1 || t >
|
|
9173
|
+
if (!e || t < 1 || t > p)
|
|
9174
9174
|
return o;
|
|
9175
9175
|
do
|
|
9176
9176
|
t % 2 && (o += e), t = vo(t / 2), t && (e += e);
|
|
@@ -9275,7 +9275,7 @@ function Kb() {
|
|
|
9275
9275
|
if (nn(e))
|
|
9276
9276
|
return au ? au.call(e) : "";
|
|
9277
9277
|
var t = e + "";
|
|
9278
|
-
return t == "0" && 1 / e == -
|
|
9278
|
+
return t == "0" && 1 / e == -d ? "-0" : t;
|
|
9279
9279
|
}
|
|
9280
9280
|
function fr(e, t, o) {
|
|
9281
9281
|
var a = -1, y = no, x = e.length, P = !0, B = [], z = B;
|
|
@@ -9691,7 +9691,7 @@ function Kb() {
|
|
|
9691
9691
|
return t(o);
|
|
9692
9692
|
};
|
|
9693
9693
|
}
|
|
9694
|
-
var pg = Qr && 1 / io(new Qr([, -0]))[1] ==
|
|
9694
|
+
var pg = Qr && 1 / io(new Qr([, -0]))[1] == d ? function(e) {
|
|
9695
9695
|
return new Qr(e);
|
|
9696
9696
|
} : La;
|
|
9697
9697
|
function Gu(e) {
|
|
@@ -10002,7 +10002,7 @@ function Kb() {
|
|
|
10002
10002
|
}
|
|
10003
10003
|
function Jn(e, t) {
|
|
10004
10004
|
var o = typeof e;
|
|
10005
|
-
return t = t ??
|
|
10005
|
+
return t = t ?? p, !!t && (o == "number" || o != "symbol" && Un.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
10006
10006
|
}
|
|
10007
10007
|
function Nt(e, t, o) {
|
|
10008
10008
|
if (!ut(o))
|
|
@@ -10134,7 +10134,7 @@ function Kb() {
|
|
|
10134
10134
|
if (typeof e == "string" || nn(e))
|
|
10135
10135
|
return e;
|
|
10136
10136
|
var t = e + "";
|
|
10137
|
-
return t == "0" && 1 / e == -
|
|
10137
|
+
return t == "0" && 1 / e == -d ? "-0" : t;
|
|
10138
10138
|
}
|
|
10139
10139
|
function Pr(e) {
|
|
10140
10140
|
if (e != null) {
|
|
@@ -10232,7 +10232,7 @@ function Kb() {
|
|
|
10232
10232
|
}
|
|
10233
10233
|
function qg(e) {
|
|
10234
10234
|
var t = e == null ? 0 : e.length;
|
|
10235
|
-
return t ? At(e,
|
|
10235
|
+
return t ? At(e, d) : [];
|
|
10236
10236
|
}
|
|
10237
10237
|
function Hg(e, t) {
|
|
10238
10238
|
var o = e == null ? 0 : e.length;
|
|
@@ -10507,7 +10507,7 @@ function Kb() {
|
|
|
10507
10507
|
return At(No(e, t), 1);
|
|
10508
10508
|
}
|
|
10509
10509
|
function Z1(e, t) {
|
|
10510
|
-
return At(No(e, t),
|
|
10510
|
+
return At(No(e, t), d);
|
|
10511
10511
|
}
|
|
10512
10512
|
function Q1(e, t, o) {
|
|
10513
10513
|
return o = o === r ? 1 : Ye(o), At(No(e, t), o);
|
|
@@ -10858,7 +10858,7 @@ function Kb() {
|
|
|
10858
10858
|
return typeof e == "number" && e == Ye(e);
|
|
10859
10859
|
}
|
|
10860
10860
|
function Bo(e) {
|
|
10861
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
10861
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= p;
|
|
10862
10862
|
}
|
|
10863
10863
|
function ut(e) {
|
|
10864
10864
|
var t = typeof e;
|
|
@@ -10902,7 +10902,7 @@ function Kb() {
|
|
|
10902
10902
|
}
|
|
10903
10903
|
var Oa = Wl ? en(Wl) : qp;
|
|
10904
10904
|
function G0(e) {
|
|
10905
|
-
return Dc(e) && e >= -
|
|
10905
|
+
return Dc(e) && e >= -p && e <= p;
|
|
10906
10906
|
}
|
|
10907
10907
|
var Rc = Fl ? en(Fl) : Hp;
|
|
10908
10908
|
function Yo(e) {
|
|
@@ -10937,7 +10937,7 @@ function Kb() {
|
|
|
10937
10937
|
function er(e) {
|
|
10938
10938
|
if (!e)
|
|
10939
10939
|
return e === 0 ? e : 0;
|
|
10940
|
-
if (e = _n(e), e ===
|
|
10940
|
+
if (e = _n(e), e === d || e === -d) {
|
|
10941
10941
|
var t = e < 0 ? -1 : 1;
|
|
10942
10942
|
return t * b;
|
|
10943
10943
|
}
|
|
@@ -10969,7 +10969,7 @@ function Kb() {
|
|
|
10969
10969
|
return Yn(e, Kt(e));
|
|
10970
10970
|
}
|
|
10971
10971
|
function X0(e) {
|
|
10972
|
-
return e ? Or(Ye(e), -
|
|
10972
|
+
return e ? Or(Ye(e), -p, p) : e === 0 ? e : 0;
|
|
10973
10973
|
}
|
|
10974
10974
|
function Je(e) {
|
|
10975
10975
|
return e == null ? "" : tn(e);
|
|
@@ -11440,7 +11440,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11440
11440
|
return !0;
|
|
11441
11441
|
}
|
|
11442
11442
|
function Rm(e, t) {
|
|
11443
|
-
if (e = Ye(e), e < 1 || e >
|
|
11443
|
+
if (e = Ye(e), e < 1 || e > p)
|
|
11444
11444
|
return [];
|
|
11445
11445
|
var o = v, a = Et(e, v);
|
|
11446
11446
|
t = ke(t), e -= v;
|
|
@@ -11629,33 +11629,33 @@ function Zb(i) {
|
|
|
11629
11629
|
const S = {
|
|
11630
11630
|
...M
|
|
11631
11631
|
};
|
|
11632
|
-
r.forEach((
|
|
11633
|
-
const
|
|
11634
|
-
|
|
11632
|
+
r.forEach((d) => {
|
|
11633
|
+
const p = d.id;
|
|
11634
|
+
d.type === "boolean" && S[p] === null ? S[p] = !1 : d.type === "date" && S[p] ? S[p] = new Date(S[p]) : S[p] === null && (S[p] = "");
|
|
11635
11635
|
}), G.initialize(S), G.setValues(S);
|
|
11636
11636
|
}
|
|
11637
11637
|
}, n[11] = M, n[12] = r, n[13] = G, n[14] = he) : he = n[14];
|
|
11638
11638
|
let fe;
|
|
11639
11639
|
n[15] !== M ? (fe = [M], n[15] = M, n[16] = fe) : fe = n[16], xt(he, fe);
|
|
11640
11640
|
let ne;
|
|
11641
|
-
n[17] !== G || n[18] !== m ? (ne = function(
|
|
11642
|
-
const
|
|
11643
|
-
return
|
|
11644
|
-
(
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11641
|
+
n[17] !== G || n[18] !== m ? (ne = function(d) {
|
|
11642
|
+
const p = G.getValues();
|
|
11643
|
+
return d.conditional && !d.conditional(p) ? null : /* @__PURE__ */ O.jsxs(sh, { children: [
|
|
11644
|
+
(d.type === void 0 || d.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: d.column.title, placeholder: d.placeholder ?? "", ...G.getInputProps(d.id), type: d.id.includes("email") ? "email" : void 0, required: d.required }, G.key(d.id)),
|
|
11645
|
+
d.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: d.column.title, placeholder: d.placeholder ?? "", ...G.getInputProps(d.id), required: d.required }, G.key(d.id)),
|
|
11646
|
+
d.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: d.column.title, placeholder: d.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...G.getInputProps(d.id), required: d.required }, G.key(d.id)),
|
|
11647
|
+
d.type === "boolean" && /* @__PURE__ */ O.jsx(Qi, { mt: "md", label: d.column.title, ...G.getInputProps(d.id, {
|
|
11648
11648
|
type: "checkbox"
|
|
11649
|
-
}) }, G.key(
|
|
11650
|
-
|
|
11651
|
-
|
|
11649
|
+
}), required: d.required }, G.key(d.id)),
|
|
11650
|
+
d.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: d.column.title, placeholder: d.placeholder ?? "", ...G.getInputProps(d.id), minRows: 3, autosize: !0, required: d.required }, G.key(d.id)),
|
|
11651
|
+
d.type === "custom" && d.render && d.render({
|
|
11652
11652
|
...G.getValues(),
|
|
11653
11653
|
id: m
|
|
11654
11654
|
}, G.setValues, N, {
|
|
11655
|
-
error: G.getInputProps(
|
|
11656
|
-
required:
|
|
11655
|
+
error: G.getInputProps(d.id).error,
|
|
11656
|
+
required: d.required
|
|
11657
11657
|
})
|
|
11658
|
-
] },
|
|
11658
|
+
] }, d.id);
|
|
11659
11659
|
}, n[17] = G, n[18] = m, n[19] = ne) : ne = n[19];
|
|
11660
11660
|
const Se = ne;
|
|
11661
11661
|
let De;
|
|
@@ -11676,7 +11676,7 @@ function Zb(i) {
|
|
|
11676
11676
|
}), children: [
|
|
11677
11677
|
ue.length ? /* @__PURE__ */ O.jsx(Jo, { active: C, size: "sm", children: ue.map((S) => /* @__PURE__ */ O.jsx(Jo.Step, { ...h && h[S - 1] ? {
|
|
11678
11678
|
label: h[S - 1].label
|
|
11679
|
-
} : {}, children: r.filter((
|
|
11679
|
+
} : {}, children: r.filter((d) => d.step === S).map((d) => Se(d)) }, S)) }) : r.map((S) => Se(S)),
|
|
11680
11680
|
!R && /* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
|
|
11681
11681
|
/* @__PURE__ */ O.jsx(rr, { onClick: () => ue.length ? C === 0 ? s() : A(C - 1) : s(), variant: "outline", children: ue.length ? C === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
11682
11682
|
/* @__PURE__ */ O.jsx(rr, { type: "submit", loading: oe, children: ue.length ? C === ue.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
@@ -11798,8 +11798,8 @@ function sx(i) {
|
|
|
11798
11798
|
data: k,
|
|
11799
11799
|
isLoading: E,
|
|
11800
11800
|
isError: S,
|
|
11801
|
-
isRefetching:
|
|
11802
|
-
refetch:
|
|
11801
|
+
isRefetching: d,
|
|
11802
|
+
refetch: p
|
|
11803
11803
|
} = J2(g + ne, De);
|
|
11804
11804
|
let b;
|
|
11805
11805
|
n[11] === Symbol.for("react.memo_cache_sentinel") ? (b = [], n[11] = b) : b = n[11];
|
|
@@ -11897,7 +11897,7 @@ function sx(i) {
|
|
|
11897
11897
|
let St;
|
|
11898
11898
|
n[59] !== r ? (St = r && (typeof r == "string" ? /* @__PURE__ */ O.jsx(uy, { order: 4, children: r }) : r), n[59] = r, n[60] = St) : St = n[60];
|
|
11899
11899
|
let Wt;
|
|
11900
|
-
n[61] !==
|
|
11900
|
+
n[61] !== p ? (Wt = () => p(), n[61] = p, n[62] = Wt) : Wt = n[62];
|
|
11901
11901
|
let Dn;
|
|
11902
11902
|
n[63] === Symbol.for("react.memo_cache_sentinel") ? (Dn = /* @__PURE__ */ O.jsx(dy, {}), n[63] = Dn) : Dn = n[63];
|
|
11903
11903
|
let gt;
|
|
@@ -11932,12 +11932,12 @@ function sx(i) {
|
|
|
11932
11932
|
let zt;
|
|
11933
11933
|
n[88] !== S ? (zt = S && /* @__PURE__ */ O.jsx(os, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ O.jsx(py, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), n[88] = S, n[89] = zt) : zt = n[89];
|
|
11934
11934
|
let Qt;
|
|
11935
|
-
n[90] !== E || n[91] !==
|
|
11935
|
+
n[90] !== E || n[91] !== d ? (Qt = (E || d) && /* @__PURE__ */ O.jsxs(dl, { my: "md", children: [
|
|
11936
11936
|
/* @__PURE__ */ O.jsx(si, { height: 40 }),
|
|
11937
11937
|
Array(5).fill(0).map(cx)
|
|
11938
|
-
] }), n[90] = E, n[91] =
|
|
11938
|
+
] }), n[90] = E, n[91] = d, n[92] = Qt) : Qt = n[92];
|
|
11939
11939
|
let qt;
|
|
11940
|
-
n[93] !== h || n[94] !== S || n[95] !== E || n[96] !==
|
|
11940
|
+
n[93] !== h || n[94] !== S || n[95] !== E || n[96] !== d || n[97] !== xe || n[98] !== V || n[99] !== A || n[100] !== _ || n[101] !== ve || n[102] !== C || n[103] !== X || n[104] !== J || n[105] !== ge ? (qt = !E && !d && /* @__PURE__ */ O.jsx(Gb, { my: "md", striped: !0, minHeight: 150, fetching: S, records: _, sortStatus: J, onSortStatusChange: _e, ...C && {
|
|
11941
11941
|
selectedRecords: ve,
|
|
11942
11942
|
onSelectedRecordsChange: Pe
|
|
11943
11943
|
}, ...A && _.length && {
|
|
@@ -11948,7 +11948,7 @@ function sx(i) {
|
|
|
11948
11948
|
recordsPerPageOptions: ih,
|
|
11949
11949
|
onRecordsPerPageChange: X,
|
|
11950
11950
|
recordsPerPageLabel: "Einträge pro Seite"
|
|
11951
|
-
}, columns: h.map(ux), noRecordsText: "Keine Einträge gefunden" }), n[93] = h, n[94] = S, n[95] = E, n[96] =
|
|
11951
|
+
}, columns: h.map(ux), noRecordsText: "Keine Einträge gefunden" }), n[93] = h, n[94] = S, n[95] = E, n[96] = d, n[97] = xe, n[98] = V, n[99] = A, n[100] = _, n[101] = ve, n[102] = C, n[103] = X, n[104] = J, n[105] = ge, n[106] = qt) : qt = n[106];
|
|
11952
11952
|
let Fe;
|
|
11953
11953
|
n[107] === Symbol.for("react.memo_cache_sentinel") ? (Fe = () => {
|
|
11954
11954
|
nt(!1), Pe([]);
|