urfu-ui-kit-react 0.0.37 → 0.0.39
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/urfu-ui-kit-react.js +297 -292
- package/package.json +1 -1
|
@@ -70,10 +70,10 @@ function Ei() {
|
|
|
70
70
|
Pe.unshift("Warning: " + Q), Function.prototype.apply.call(console[b], console, Pe);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var L = !1, S = !1, te = !1, O = !1, W = !1, I;
|
|
74
74
|
I = Symbol.for("react.module.reference");
|
|
75
75
|
function X(b) {
|
|
76
|
-
return !!(typeof b == "string" || typeof b == "function" || b === e || b === o || W || b === r || b === u || b === d || O || b === w ||
|
|
76
|
+
return !!(typeof b == "string" || typeof b == "function" || b === e || b === o || W || b === r || b === u || b === d || O || b === w || L || S || te || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === f || b.$$typeof === i || b.$$typeof === s || b.$$typeof === l || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
@@ -196,18 +196,18 @@ function Ei() {
|
|
|
196
196
|
ne < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var U = T.ReactCurrentDispatcher,
|
|
199
|
+
var U = T.ReactCurrentDispatcher, Y;
|
|
200
200
|
function H(b, Q, oe) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (Y === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
205
|
} catch (_e) {
|
|
206
206
|
var pe = _e.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
-
|
|
207
|
+
Y = pe && pe[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + Y + b;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
var G = !1, V;
|
|
@@ -293,7 +293,7 @@ function Ei() {
|
|
|
293
293
|
var Q = b.prototype;
|
|
294
294
|
return !!(Q && Q.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function F(b, Q, oe) {
|
|
297
297
|
if (b == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof b == "function")
|
|
@@ -311,11 +311,11 @@ function Ei() {
|
|
|
311
311
|
case l:
|
|
312
312
|
return J(b.render);
|
|
313
313
|
case f:
|
|
314
|
-
return
|
|
314
|
+
return F(b.type, Q, oe);
|
|
315
315
|
case v: {
|
|
316
316
|
var pe = b, _e = pe._payload, Pe = pe._init;
|
|
317
317
|
try {
|
|
318
|
-
return
|
|
318
|
+
return F(Pe(_e), Q, oe);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
@@ -325,7 +325,7 @@ function Ei() {
|
|
|
325
325
|
var R = Object.prototype.hasOwnProperty, N = {}, $ = T.ReactDebugCurrentFrame;
|
|
326
326
|
function K(b) {
|
|
327
327
|
if (b) {
|
|
328
|
-
var Q = b._owner, oe =
|
|
328
|
+
var Q = b._owner, oe = F(b.type, b._source, Q ? Q.type : null);
|
|
329
329
|
$.setExtraStackFrame(oe);
|
|
330
330
|
} else
|
|
331
331
|
$.setExtraStackFrame(null);
|
|
@@ -474,7 +474,7 @@ function Ei() {
|
|
|
474
474
|
var nr = T.ReactCurrentOwner, aa = T.ReactDebugCurrentFrame;
|
|
475
475
|
function $t(b) {
|
|
476
476
|
if (b) {
|
|
477
|
-
var Q = b._owner, oe =
|
|
477
|
+
var Q = b._owner, oe = F(b.type, b._source, Q ? Q.type : null);
|
|
478
478
|
aa.setExtraStackFrame(oe);
|
|
479
479
|
} else
|
|
480
480
|
aa.setExtraStackFrame(null);
|
|
@@ -681,12 +681,12 @@ function Mi() {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function L(S) {
|
|
685
685
|
return E(S) === u;
|
|
686
686
|
}
|
|
687
687
|
return Ce.AsyncMode = l, Ce.ConcurrentMode = u, Ce.ContextConsumer = s, Ce.ContextProvider = i, Ce.Element = a, Ce.ForwardRef = d, Ce.Fragment = e, Ce.Lazy = _, Ce.Memo = w, Ce.Portal = t, Ce.Profiler = o, Ce.StrictMode = r, Ce.Suspense = f, Ce.isAsyncMode = function(S) {
|
|
688
|
-
return
|
|
689
|
-
}, Ce.isConcurrentMode =
|
|
688
|
+
return L(S) || E(S) === l;
|
|
689
|
+
}, Ce.isConcurrentMode = L, Ce.isContextConsumer = function(S) {
|
|
690
690
|
return E(S) === s;
|
|
691
691
|
}, Ce.isContextProvider = function(S) {
|
|
692
692
|
return E(S) === i;
|
|
@@ -729,7 +729,7 @@ function Oi() {
|
|
|
729
729
|
return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
730
730
|
A === e || A === u || A === o || A === r || A === f || A === v || typeof A == "object" && A !== null && (A.$$typeof === _ || A.$$typeof === w || A.$$typeof === i || A.$$typeof === s || A.$$typeof === d || A.$$typeof === k || A.$$typeof === T || A.$$typeof === P || A.$$typeof === x);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function L(A) {
|
|
733
733
|
if (typeof A == "object" && A !== null) {
|
|
734
734
|
var J = A.$$typeof;
|
|
735
735
|
switch (J) {
|
|
@@ -744,14 +744,14 @@ function Oi() {
|
|
|
744
744
|
case f:
|
|
745
745
|
return C;
|
|
746
746
|
default:
|
|
747
|
-
var
|
|
748
|
-
switch (
|
|
747
|
+
var F = C && C.$$typeof;
|
|
748
|
+
switch (F) {
|
|
749
749
|
case s:
|
|
750
750
|
case d:
|
|
751
751
|
case _:
|
|
752
752
|
case w:
|
|
753
753
|
case i:
|
|
754
|
-
return
|
|
754
|
+
return F;
|
|
755
755
|
default:
|
|
756
756
|
return J;
|
|
757
757
|
}
|
|
@@ -763,45 +763,45 @@ function Oi() {
|
|
|
763
763
|
}
|
|
764
764
|
var S = l, te = u, O = s, W = i, I = a, X = d, ie = e, ue = _, z = w, ee = t, ne = o, ae = r, q = f, me = !1;
|
|
765
765
|
function p(A) {
|
|
766
|
-
return me || (me = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(A) ||
|
|
766
|
+
return me || (me = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(A) || L(A) === l;
|
|
767
767
|
}
|
|
768
768
|
function m(A) {
|
|
769
|
-
return
|
|
769
|
+
return L(A) === u;
|
|
770
770
|
}
|
|
771
771
|
function y(A) {
|
|
772
|
-
return
|
|
772
|
+
return L(A) === s;
|
|
773
773
|
}
|
|
774
774
|
function g(A) {
|
|
775
|
-
return
|
|
775
|
+
return L(A) === i;
|
|
776
776
|
}
|
|
777
777
|
function c(A) {
|
|
778
778
|
return typeof A == "object" && A !== null && A.$$typeof === a;
|
|
779
779
|
}
|
|
780
780
|
function M(A) {
|
|
781
|
-
return
|
|
781
|
+
return L(A) === d;
|
|
782
782
|
}
|
|
783
783
|
function B(A) {
|
|
784
|
-
return
|
|
784
|
+
return L(A) === e;
|
|
785
785
|
}
|
|
786
786
|
function U(A) {
|
|
787
|
-
return
|
|
787
|
+
return L(A) === _;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
789
|
+
function Y(A) {
|
|
790
|
+
return L(A) === w;
|
|
791
791
|
}
|
|
792
792
|
function H(A) {
|
|
793
|
-
return
|
|
793
|
+
return L(A) === t;
|
|
794
794
|
}
|
|
795
795
|
function G(A) {
|
|
796
|
-
return
|
|
796
|
+
return L(A) === o;
|
|
797
797
|
}
|
|
798
798
|
function V(A) {
|
|
799
|
-
return
|
|
799
|
+
return L(A) === r;
|
|
800
800
|
}
|
|
801
801
|
function Z(A) {
|
|
802
|
-
return
|
|
802
|
+
return L(A) === f;
|
|
803
803
|
}
|
|
804
|
-
Se.AsyncMode = S, Se.ConcurrentMode = te, Se.ContextConsumer = O, Se.ContextProvider = W, Se.Element = I, Se.ForwardRef = X, Se.Fragment = ie, Se.Lazy = ue, Se.Memo = z, Se.Portal = ee, Se.Profiler = ne, Se.StrictMode = ae, Se.Suspense = q, Se.isAsyncMode = p, Se.isConcurrentMode = m, Se.isContextConsumer = y, Se.isContextProvider = g, Se.isElement = c, Se.isForwardRef = M, Se.isFragment = B, Se.isLazy = U, Se.isMemo =
|
|
804
|
+
Se.AsyncMode = S, Se.ConcurrentMode = te, Se.ContextConsumer = O, Se.ContextProvider = W, Se.Element = I, Se.ForwardRef = X, Se.Fragment = ie, Se.Lazy = ue, Se.Memo = z, Se.Portal = ee, Se.Profiler = ne, Se.StrictMode = ae, Se.Suspense = q, Se.isAsyncMode = p, Se.isConcurrentMode = m, Se.isContextConsumer = y, Se.isContextProvider = g, Se.isElement = c, Se.isForwardRef = M, Se.isFragment = B, Se.isLazy = U, Se.isMemo = Y, Se.isPortal = H, Se.isProfiler = G, Se.isStrictMode = V, Se.isSuspense = Z, Se.isValidElementType = E, Se.typeOf = L;
|
|
805
805
|
}()), Se;
|
|
806
806
|
}
|
|
807
807
|
var ma;
|
|
@@ -954,7 +954,7 @@ function Ni() {
|
|
|
954
954
|
symbol: T("symbol"),
|
|
955
955
|
any: P(),
|
|
956
956
|
arrayOf: E,
|
|
957
|
-
element:
|
|
957
|
+
element: L(),
|
|
958
958
|
elementType: S(),
|
|
959
959
|
instanceOf: te,
|
|
960
960
|
node: X(),
|
|
@@ -974,28 +974,28 @@ function Ni() {
|
|
|
974
974
|
function k(m) {
|
|
975
975
|
if (process.env.NODE_ENV !== "production")
|
|
976
976
|
var y = {}, g = 0;
|
|
977
|
-
function c(B, U,
|
|
978
|
-
if (H = H || v, V = V ||
|
|
977
|
+
function c(B, U, Y, H, G, V, Z) {
|
|
978
|
+
if (H = H || v, V = V || Y, Z !== t) {
|
|
979
979
|
if (l) {
|
|
980
980
|
var A = new Error(
|
|
981
981
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
982
982
|
);
|
|
983
983
|
throw A.name = "Invariant Violation", A;
|
|
984
984
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
985
|
-
var J = H + ":" +
|
|
985
|
+
var J = H + ":" + Y;
|
|
986
986
|
!y[J] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
987
987
|
g < 3 && (o(
|
|
988
988
|
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
989
989
|
), y[J] = !0, g++);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
return U[
|
|
992
|
+
return U[Y] == null ? B ? U[Y] === null ? new x("The " + G + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new x("The " + G + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : m(U, Y, H, G, V);
|
|
993
993
|
}
|
|
994
994
|
var M = c.bind(null, !1);
|
|
995
995
|
return M.isRequired = c.bind(null, !0), M;
|
|
996
996
|
}
|
|
997
997
|
function T(m) {
|
|
998
|
-
function y(g, c, M, B, U,
|
|
998
|
+
function y(g, c, M, B, U, Y) {
|
|
999
999
|
var H = g[c], G = ae(H);
|
|
1000
1000
|
if (G !== m) {
|
|
1001
1001
|
var V = q(H);
|
|
@@ -1015,13 +1015,13 @@ function Ni() {
|
|
|
1015
1015
|
function y(g, c, M, B, U) {
|
|
1016
1016
|
if (typeof m != "function")
|
|
1017
1017
|
return new x("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
1018
|
-
var
|
|
1019
|
-
if (!Array.isArray(
|
|
1020
|
-
var H = ae(
|
|
1018
|
+
var Y = g[c];
|
|
1019
|
+
if (!Array.isArray(Y)) {
|
|
1020
|
+
var H = ae(Y);
|
|
1021
1021
|
return new x("Invalid " + B + " `" + U + "` of type " + ("`" + H + "` supplied to `" + M + "`, expected an array."));
|
|
1022
1022
|
}
|
|
1023
|
-
for (var G = 0; G <
|
|
1024
|
-
var V = m(
|
|
1023
|
+
for (var G = 0; G < Y.length; G++) {
|
|
1024
|
+
var V = m(Y, G, M, B, U + "[" + G + "]", t);
|
|
1025
1025
|
if (V instanceof Error)
|
|
1026
1026
|
return V;
|
|
1027
1027
|
}
|
|
@@ -1029,12 +1029,12 @@ function Ni() {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
return k(y);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function L() {
|
|
1033
1033
|
function m(y, g, c, M, B) {
|
|
1034
1034
|
var U = y[g];
|
|
1035
1035
|
if (!s(U)) {
|
|
1036
|
-
var
|
|
1037
|
-
return new x("Invalid " + M + " `" + B + "` of type " + ("`" +
|
|
1036
|
+
var Y = ae(U);
|
|
1037
|
+
return new x("Invalid " + M + " `" + B + "` of type " + ("`" + Y + "` supplied to `" + c + "`, expected a single ReactElement."));
|
|
1038
1038
|
}
|
|
1039
1039
|
return null;
|
|
1040
1040
|
}
|
|
@@ -1044,8 +1044,8 @@ function Ni() {
|
|
|
1044
1044
|
function m(y, g, c, M, B) {
|
|
1045
1045
|
var U = y[g];
|
|
1046
1046
|
if (!n.isValidElementType(U)) {
|
|
1047
|
-
var
|
|
1048
|
-
return new x("Invalid " + M + " `" + B + "` of type " + ("`" +
|
|
1047
|
+
var Y = ae(U);
|
|
1048
|
+
return new x("Invalid " + M + " `" + B + "` of type " + ("`" + Y + "` supplied to `" + c + "`, expected a single ReactElement type."));
|
|
1049
1049
|
}
|
|
1050
1050
|
return null;
|
|
1051
1051
|
}
|
|
@@ -1054,8 +1054,8 @@ function Ni() {
|
|
|
1054
1054
|
function te(m) {
|
|
1055
1055
|
function y(g, c, M, B, U) {
|
|
1056
1056
|
if (!(g[c] instanceof m)) {
|
|
1057
|
-
var
|
|
1058
|
-
return new x("Invalid " + B + " `" + U + "` of type " + ("`" + H + "` supplied to `" + M + "`, expected ") + ("instance of `" +
|
|
1057
|
+
var Y = m.name || v, H = p(g[c]);
|
|
1058
|
+
return new x("Invalid " + B + " `" + U + "` of type " + ("`" + H + "` supplied to `" + M + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1059
1059
|
}
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
@@ -1067,14 +1067,14 @@ function Ni() {
|
|
|
1067
1067
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1068
1068
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1069
1069
|
function y(g, c, M, B, U) {
|
|
1070
|
-
for (var
|
|
1071
|
-
if (_(
|
|
1070
|
+
for (var Y = g[c], H = 0; H < m.length; H++)
|
|
1071
|
+
if (_(Y, m[H]))
|
|
1072
1072
|
return null;
|
|
1073
1073
|
var G = JSON.stringify(m, function(Z, A) {
|
|
1074
1074
|
var J = q(A);
|
|
1075
1075
|
return J === "symbol" ? String(A) : A;
|
|
1076
1076
|
});
|
|
1077
|
-
return new x("Invalid " + B + " `" + U + "` of value `" + String(
|
|
1077
|
+
return new x("Invalid " + B + " `" + U + "` of value `" + String(Y) + "` " + ("supplied to `" + M + "`, expected one of " + G + "."));
|
|
1078
1078
|
}
|
|
1079
1079
|
return k(y);
|
|
1080
1080
|
}
|
|
@@ -1082,12 +1082,12 @@ function Ni() {
|
|
|
1082
1082
|
function y(g, c, M, B, U) {
|
|
1083
1083
|
if (typeof m != "function")
|
|
1084
1084
|
return new x("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
1085
|
-
var
|
|
1085
|
+
var Y = g[c], H = ae(Y);
|
|
1086
1086
|
if (H !== "object")
|
|
1087
1087
|
return new x("Invalid " + B + " `" + U + "` of type " + ("`" + H + "` supplied to `" + M + "`, expected an object."));
|
|
1088
|
-
for (var G in
|
|
1089
|
-
if (e(
|
|
1090
|
-
var V = m(
|
|
1088
|
+
for (var G in Y)
|
|
1089
|
+
if (e(Y, G)) {
|
|
1090
|
+
var V = m(Y, G, M, B, U + "." + G, t);
|
|
1091
1091
|
if (V instanceof Error)
|
|
1092
1092
|
return V;
|
|
1093
1093
|
}
|
|
@@ -1105,15 +1105,15 @@ function Ni() {
|
|
|
1105
1105
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me(g) + " at index " + y + "."
|
|
1106
1106
|
), i;
|
|
1107
1107
|
}
|
|
1108
|
-
function c(M, B, U,
|
|
1108
|
+
function c(M, B, U, Y, H) {
|
|
1109
1109
|
for (var G = [], V = 0; V < m.length; V++) {
|
|
1110
|
-
var Z = m[V], A = Z(M, B, U,
|
|
1110
|
+
var Z = m[V], A = Z(M, B, U, Y, H, t);
|
|
1111
1111
|
if (A == null)
|
|
1112
1112
|
return null;
|
|
1113
1113
|
A.data && e(A.data, "expectedType") && G.push(A.data.expectedType);
|
|
1114
1114
|
}
|
|
1115
1115
|
var J = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
|
|
1116
|
-
return new x("Invalid " +
|
|
1116
|
+
return new x("Invalid " + Y + " `" + H + "` supplied to " + ("`" + U + "`" + J + "."));
|
|
1117
1117
|
}
|
|
1118
1118
|
return k(c);
|
|
1119
1119
|
}
|
|
@@ -1130,14 +1130,14 @@ function Ni() {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
function ue(m) {
|
|
1132
1132
|
function y(g, c, M, B, U) {
|
|
1133
|
-
var
|
|
1133
|
+
var Y = g[c], H = ae(Y);
|
|
1134
1134
|
if (H !== "object")
|
|
1135
1135
|
return new x("Invalid " + B + " `" + U + "` of type `" + H + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
1136
1136
|
for (var G in m) {
|
|
1137
1137
|
var V = m[G];
|
|
1138
1138
|
if (typeof V != "function")
|
|
1139
1139
|
return ie(M, B, U, G, q(V));
|
|
1140
|
-
var Z = V(
|
|
1140
|
+
var Z = V(Y, G, M, B, U + "." + G, t);
|
|
1141
1141
|
if (Z)
|
|
1142
1142
|
return Z;
|
|
1143
1143
|
}
|
|
@@ -1147,7 +1147,7 @@ function Ni() {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
function z(m) {
|
|
1149
1149
|
function y(g, c, M, B, U) {
|
|
1150
|
-
var
|
|
1150
|
+
var Y = g[c], H = ae(Y);
|
|
1151
1151
|
if (H !== "object")
|
|
1152
1152
|
return new x("Invalid " + B + " `" + U + "` of type `" + H + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
1153
1153
|
var G = a({}, g[c], m);
|
|
@@ -1160,7 +1160,7 @@ function Ni() {
|
|
|
1160
1160
|
"Invalid " + B + " `" + U + "` key `" + V + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(g[c], null, " ") + `
|
|
1161
1161
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
1162
1162
|
);
|
|
1163
|
-
var A = Z(
|
|
1163
|
+
var A = Z(Y, V, M, B, U + "." + V, t);
|
|
1164
1164
|
if (A)
|
|
1165
1165
|
return A;
|
|
1166
1166
|
}
|
|
@@ -2872,8 +2872,8 @@ function Ma(n, a, t) {
|
|
|
2872
2872
|
let l = a.match(Bs).map((P) => {
|
|
2873
2873
|
const E = P[0];
|
|
2874
2874
|
if (E === "p" || E === "P") {
|
|
2875
|
-
const
|
|
2876
|
-
return
|
|
2875
|
+
const L = Yn[E];
|
|
2876
|
+
return L(P, r.formatLong);
|
|
2877
2877
|
}
|
|
2878
2878
|
return P;
|
|
2879
2879
|
}).join("").match(Hs).map((P) => {
|
|
@@ -2900,8 +2900,8 @@ function Ma(n, a, t) {
|
|
|
2900
2900
|
if (!P.isToken) return P.value;
|
|
2901
2901
|
const E = P.value;
|
|
2902
2902
|
(!(t != null && t.useAdditionalWeekYearTokens) && To(E) || !(t != null && t.useAdditionalDayOfYearTokens) && Po(E)) && Tr(E, a, String(n));
|
|
2903
|
-
const
|
|
2904
|
-
return
|
|
2903
|
+
const L = _a[E[0]];
|
|
2904
|
+
return L(s, E, r.localize, u);
|
|
2905
2905
|
}).join("");
|
|
2906
2906
|
}
|
|
2907
2907
|
function Qs(n) {
|
|
@@ -4456,8 +4456,8 @@ const Hl = {
|
|
|
4456
4456
|
T: new $l()
|
|
4457
4457
|
}, Bl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ql = /^'([^]*?)'?$/, Gl = /''/g, Ql = /\S/, Ul = /[a-zA-Z]/;
|
|
4458
4458
|
function pr(n, a, t, e) {
|
|
4459
|
-
var x, k, T, P, E,
|
|
4460
|
-
const r = el(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? So, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((k = (x = e == null ? void 0 : e.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((P = (T = r.locale) == null ? void 0 : T.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((
|
|
4459
|
+
var x, k, T, P, E, L, S, te;
|
|
4460
|
+
const r = el(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? So, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((k = (x = e == null ? void 0 : e.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((P = (T = r.locale) == null ? void 0 : T.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((L = (E = e == null ? void 0 : e.locale) == null ? void 0 : E.options) == null ? void 0 : L.weekStartsOn) ?? r.weekStartsOn ?? ((te = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : te.weekStartsOn) ?? 0;
|
|
4461
4461
|
if (a === "")
|
|
4462
4462
|
return n === "" ? le(t) : Me(t, NaN);
|
|
4463
4463
|
const l = {
|
|
@@ -4974,7 +4974,7 @@ const Sc = async (n, a, t) => {
|
|
|
4974
4974
|
} = s[x], {
|
|
4975
4975
|
x: P,
|
|
4976
4976
|
y: E,
|
|
4977
|
-
data:
|
|
4977
|
+
data: L,
|
|
4978
4978
|
reset: S
|
|
4979
4979
|
} = await T({
|
|
4980
4980
|
x: d,
|
|
@@ -4994,7 +4994,7 @@ const Sc = async (n, a, t) => {
|
|
|
4994
4994
|
...w,
|
|
4995
4995
|
[k]: {
|
|
4996
4996
|
...w[k],
|
|
4997
|
-
...
|
|
4997
|
+
...L
|
|
4998
4998
|
}
|
|
4999
4999
|
}, S && _ <= 50 && (_++, typeof S == "object" && (S.placement && (v = S.placement), S.rects && (u = S.rects === !0 ? await i.getElementRects({
|
|
5000
5000
|
reference: n,
|
|
@@ -5039,7 +5039,7 @@ async function Ec(n, a) {
|
|
|
5039
5039
|
y: r,
|
|
5040
5040
|
width: i.floating.width,
|
|
5041
5041
|
height: i.floating.height
|
|
5042
|
-
} : i.reference, E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)),
|
|
5042
|
+
} : i.reference, E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), L = await (o.isElement == null ? void 0 : o.isElement(E)) ? await (o.getScale == null ? void 0 : o.getScale(E)) || {
|
|
5043
5043
|
x: 1,
|
|
5044
5044
|
y: 1
|
|
5045
5045
|
} : {
|
|
@@ -5052,10 +5052,10 @@ async function Ec(n, a) {
|
|
|
5052
5052
|
strategy: l
|
|
5053
5053
|
}) : P);
|
|
5054
5054
|
return {
|
|
5055
|
-
top: (T.top - S.top + _.top) /
|
|
5056
|
-
bottom: (S.bottom - T.bottom + _.bottom) /
|
|
5057
|
-
left: (T.left - S.left + _.left) /
|
|
5058
|
-
right: (S.right - T.right + _.right) /
|
|
5055
|
+
top: (T.top - S.top + _.top) / L.y,
|
|
5056
|
+
bottom: (S.bottom - T.bottom + _.bottom) / L.y,
|
|
5057
|
+
left: (T.left - S.left + _.left) / L.x,
|
|
5058
|
+
right: (S.right - T.right + _.right) / L.x
|
|
5059
5059
|
};
|
|
5060
5060
|
}
|
|
5061
5061
|
const Mc = (n) => ({
|
|
@@ -5079,10 +5079,10 @@ const Mc = (n) => ({
|
|
|
5079
5079
|
const f = $o(d), v = {
|
|
5080
5080
|
x: t,
|
|
5081
5081
|
y: e
|
|
5082
|
-
}, w = Kr(r), _ = zr(w), x = await i.getDimensions(u), k = w === "y", T = k ? "top" : "left", P = k ? "bottom" : "right", E = k ? "clientHeight" : "clientWidth",
|
|
5082
|
+
}, w = Kr(r), _ = zr(w), x = await i.getDimensions(u), k = w === "y", T = k ? "top" : "left", P = k ? "bottom" : "right", E = k ? "clientHeight" : "clientWidth", L = o.reference[_] + o.reference[w] - v[w] - o.floating[_], S = v[w] - o.reference[w], te = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
5083
5083
|
let O = te ? te[E] : 0;
|
|
5084
5084
|
(!O || !await (i.isElement == null ? void 0 : i.isElement(te))) && (O = s.floating[E] || o.floating[_]);
|
|
5085
|
-
const W =
|
|
5085
|
+
const W = L / 2 - S / 2, I = O / 2 - x[_] / 2 - 1, X = Zt(f[T], I), ie = Zt(f[P], I), ue = X, z = O - x[_] - ie, ee = O / 2 - x[_] / 2 + W, ne = wc(ue, ee, z), ae = !l.arrow && vn(r) != null && ee !== ne && o.reference[_] / 2 - (ee < ue ? X : ie) - x[_] / 2 < 0, q = ae ? ee < ue ? ee - ue : ee - z : 0;
|
|
5086
5086
|
return {
|
|
5087
5087
|
[w]: v[w] + q,
|
|
5088
5088
|
data: {
|
|
@@ -5119,12 +5119,12 @@ const Mc = (n) => ({
|
|
|
5119
5119
|
} = Jn(n, a);
|
|
5120
5120
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
5121
5121
|
return {};
|
|
5122
|
-
const T = Jt(r), P = pn(s), E = Jt(s) === s,
|
|
5123
|
-
!v && te && S.push(..._c(s, x, _,
|
|
5122
|
+
const T = Jt(r), P = pn(s), E = Jt(s) === s, L = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = v || (E || !x ? [Hn(s)] : Dc(s)), te = _ !== "none";
|
|
5123
|
+
!v && te && S.push(..._c(s, x, _, L));
|
|
5124
5124
|
const O = [s, ...S], W = await Ec(a, k), I = [];
|
|
5125
5125
|
let X = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
5126
5126
|
if (d && I.push(W[T]), f) {
|
|
5127
|
-
const ee = xc(r, i,
|
|
5127
|
+
const ee = xc(r, i, L);
|
|
5128
5128
|
I.push(W[ee[0]], W[ee[1]]);
|
|
5129
5129
|
}
|
|
5130
5130
|
if (X = [...X, {
|
|
@@ -5276,8 +5276,8 @@ function Yt(n, a, t, e) {
|
|
|
5276
5276
|
const v = ze(o), w = e && qe(e) ? ze(e) : e;
|
|
5277
5277
|
let _ = v, x = _.frameElement;
|
|
5278
5278
|
for (; x && e && w !== _; ) {
|
|
5279
|
-
const k = Gt(x), T = x.getBoundingClientRect(), P = tt(x), E = T.left + (x.clientLeft + parseFloat(P.paddingLeft)) * k.x,
|
|
5280
|
-
l *= k.x, u *= k.y, d *= k.x, f *= k.y, l += E, u +=
|
|
5279
|
+
const k = Gt(x), T = x.getBoundingClientRect(), P = tt(x), E = T.left + (x.clientLeft + parseFloat(P.paddingLeft)) * k.x, L = T.top + (x.clientTop + parseFloat(P.paddingTop)) * k.y;
|
|
5280
|
+
l *= k.x, u *= k.y, d *= k.x, f *= k.y, l += E, u += L, _ = ze(x), x = _.frameElement;
|
|
5281
5281
|
}
|
|
5282
5282
|
}
|
|
5283
5283
|
return Bn({
|
|
@@ -5510,7 +5510,7 @@ function Gc(n, a) {
|
|
|
5510
5510
|
threshold: It(0, Zt(1, l)) || 1
|
|
5511
5511
|
};
|
|
5512
5512
|
let E = !0;
|
|
5513
|
-
function
|
|
5513
|
+
function L(S) {
|
|
5514
5514
|
const te = S[0].intersectionRatio;
|
|
5515
5515
|
if (te !== l) {
|
|
5516
5516
|
if (!E)
|
|
@@ -5522,13 +5522,13 @@ function Gc(n, a) {
|
|
|
5522
5522
|
E = !1;
|
|
5523
5523
|
}
|
|
5524
5524
|
try {
|
|
5525
|
-
t = new IntersectionObserver(
|
|
5525
|
+
t = new IntersectionObserver(L, {
|
|
5526
5526
|
...P,
|
|
5527
5527
|
// Handle <iframe>s
|
|
5528
5528
|
root: r.ownerDocument
|
|
5529
5529
|
});
|
|
5530
5530
|
} catch {
|
|
5531
|
-
t = new IntersectionObserver(
|
|
5531
|
+
t = new IntersectionObserver(L, P);
|
|
5532
5532
|
}
|
|
5533
5533
|
t.observe(n);
|
|
5534
5534
|
}
|
|
@@ -5654,7 +5654,7 @@ function Xc(n) {
|
|
|
5654
5654
|
q !== te.current && (te.current = q, x(q));
|
|
5655
5655
|
}, []), E = de.useCallback((q) => {
|
|
5656
5656
|
q !== O.current && (O.current = q, T(q));
|
|
5657
|
-
}, []),
|
|
5657
|
+
}, []), L = o || _, S = i || k, te = de.useRef(null), O = de.useRef(null), W = de.useRef(d), I = l != null, X = Aa(l), ie = Aa(r), ue = de.useCallback(() => {
|
|
5658
5658
|
if (!te.current || !O.current)
|
|
5659
5659
|
return;
|
|
5660
5660
|
const q = {
|
|
@@ -5682,21 +5682,21 @@ function Xc(n) {
|
|
|
5682
5682
|
Tn(() => (z.current = !0, () => {
|
|
5683
5683
|
z.current = !1;
|
|
5684
5684
|
}), []), Tn(() => {
|
|
5685
|
-
if (
|
|
5685
|
+
if (L && (te.current = L), S && (O.current = S), L && S) {
|
|
5686
5686
|
if (X.current)
|
|
5687
|
-
return X.current(
|
|
5687
|
+
return X.current(L, S, ue);
|
|
5688
5688
|
ue();
|
|
5689
5689
|
}
|
|
5690
|
-
}, [
|
|
5690
|
+
}, [L, S, ue, X, I]);
|
|
5691
5691
|
const ee = de.useMemo(() => ({
|
|
5692
5692
|
reference: te,
|
|
5693
5693
|
floating: O,
|
|
5694
5694
|
setReference: P,
|
|
5695
5695
|
setFloating: E
|
|
5696
5696
|
}), [P, E]), ne = de.useMemo(() => ({
|
|
5697
|
-
reference:
|
|
5697
|
+
reference: L,
|
|
5698
5698
|
floating: S
|
|
5699
|
-
}), [
|
|
5699
|
+
}), [L, S]), ae = de.useMemo(() => {
|
|
5700
5700
|
const q = {
|
|
5701
5701
|
position: t,
|
|
5702
5702
|
left: 0,
|
|
@@ -5848,7 +5848,7 @@ const uu = /* @__PURE__ */ de.forwardRef(function(a, t) {
|
|
|
5848
5848
|
tt(r).direction === "rtl" && P(!0);
|
|
5849
5849
|
}, [r]), !r)
|
|
5850
5850
|
return null;
|
|
5851
|
-
const E = u * 2,
|
|
5851
|
+
const E = u * 2, L = E / 2, S = i / 2 * (l / -8 + 1), te = s / 2 * l / 4, [O, W] = e.split("-"), I = !!v, X = O === "top" || O === "bottom", ie = d && W === "end" ? "bottom" : "top";
|
|
5852
5852
|
let ue = d && W === "end" ? "right" : "left";
|
|
5853
5853
|
d && T && (ue = W === "end" ? "left" : "right");
|
|
5854
5854
|
const z = (o == null ? void 0 : o.x) != null ? d || o.x : "", ee = (o == null ? void 0 : o.y) != null ? d || o.y : "", ne = v || "M0,0" + (" H" + i) + (" L" + (i - S) + "," + (s - te)) + (" Q" + i / 2 + "," + s + " " + S + "," + (s - te)) + " Z", ae = {
|
|
@@ -5884,8 +5884,8 @@ const uu = /* @__PURE__ */ de.forwardRef(function(a, t) {
|
|
|
5884
5884
|
}), /* @__PURE__ */ de.createElement("clipPath", {
|
|
5885
5885
|
id: k
|
|
5886
5886
|
}, /* @__PURE__ */ de.createElement("rect", {
|
|
5887
|
-
x: -
|
|
5888
|
-
y:
|
|
5887
|
+
x: -L,
|
|
5888
|
+
y: L * (I ? -1 : 1),
|
|
5889
5889
|
width: i + E,
|
|
5890
5890
|
height: i
|
|
5891
5891
|
})));
|
|
@@ -5968,11 +5968,11 @@ function vu(n) {
|
|
|
5968
5968
|
}
|
|
5969
5969
|
}
|
|
5970
5970
|
}), _ = de.useCallback((E) => {
|
|
5971
|
-
const
|
|
5971
|
+
const L = qe(E) ? {
|
|
5972
5972
|
getBoundingClientRect: () => E.getBoundingClientRect(),
|
|
5973
5973
|
contextElement: E
|
|
5974
5974
|
} : E;
|
|
5975
|
-
l(
|
|
5975
|
+
l(L), w.refs.setReference(L);
|
|
5976
5976
|
}, [w.refs]), x = de.useCallback((E) => {
|
|
5977
5977
|
(qe(E) || E === null) && (f.current = E, i(E)), (qe(w.refs.reference.current) || w.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
5978
5978
|
// `null` to support `positionReference` + an unstable `reference`
|
|
@@ -5995,7 +5995,7 @@ function vu(n) {
|
|
|
5995
5995
|
}), [w, k, T, a, e]);
|
|
5996
5996
|
return qn(() => {
|
|
5997
5997
|
e.dataRef.current.floatingContext = P;
|
|
5998
|
-
const E = v == null ? void 0 : v.nodesRef.current.find((
|
|
5998
|
+
const E = v == null ? void 0 : v.nodesRef.current.find((L) => L.id === a);
|
|
5999
5999
|
E && (E.context = P);
|
|
6000
6000
|
}), de.useMemo(() => ({
|
|
6001
6001
|
...w,
|
|
@@ -6980,7 +6980,7 @@ var Gu = (
|
|
|
6980
6980
|
t.isMonthDisabled(o) || (t.onMonthClick(e, o), d == null || d(l));
|
|
6981
6981
|
return;
|
|
6982
6982
|
}
|
|
6983
|
-
var
|
|
6983
|
+
var L = E(r, u, o), S = L.newCalculatedDate, te = L.newCalculatedMonth;
|
|
6984
6984
|
switch (r) {
|
|
6985
6985
|
case re.ArrowRight:
|
|
6986
6986
|
case re.ArrowLeft:
|
|
@@ -8279,8 +8279,8 @@ var wr = "Date input not valid.", vd = (
|
|
|
8279
8279
|
})), e.props.inline || e.setState({
|
|
8280
8280
|
preSelection: u
|
|
8281
8281
|
}), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: s })), v) {
|
|
8282
|
-
var E = !w && !_,
|
|
8283
|
-
E ? f ? f([u, null], o) : a.defaultProps.onChange :
|
|
8282
|
+
var E = !w && !_, L = w && !_, S = w && _;
|
|
8283
|
+
E ? f ? f([u, null], o) : a.defaultProps.onChange : L && (u === null ? f ? f([null, null], o) : a.defaultProps.onChange : no(u, w) ? P ? f ? f([u, w], o) : a.defaultProps.onChange : f ? f([u, null], o) : a.defaultProps.onChange : f ? f([w, u], o) : a.defaultProps.onChange), S && (f ? f([u, null], o) : a.defaultProps.onChange);
|
|
8284
8284
|
} else if (x) {
|
|
8285
8285
|
if (u !== null)
|
|
8286
8286
|
if (!(k != null && k.length))
|
|
@@ -8368,7 +8368,7 @@ var wr = "Date input not valid.", vd = (
|
|
|
8368
8368
|
}, e.onDayKeyDown = function(r) {
|
|
8369
8369
|
var o, i, s, l, u = e.props, d = u.minDate, f = u.maxDate, v = u.disabledKeyboardNavigation, w = u.showWeekPicker, _ = u.shouldCloseOnSelect, x = u.locale, k = u.calendarStartDay, T = u.adjustDateOnChange, P = u.inline;
|
|
8370
8370
|
if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !v) {
|
|
8371
|
-
var E = r.key,
|
|
8371
|
+
var E = r.key, L = r.shiftKey, S = Oe(e.state.preSelection), te = function(z, ee) {
|
|
8372
8372
|
var ne = ee;
|
|
8373
8373
|
switch (z) {
|
|
8374
8374
|
case re.ArrowRight:
|
|
@@ -8384,10 +8384,10 @@ var wr = "Date input not valid.", vd = (
|
|
|
8384
8384
|
ne = Rn(ee, 1);
|
|
8385
8385
|
break;
|
|
8386
8386
|
case re.PageUp:
|
|
8387
|
-
ne =
|
|
8387
|
+
ne = L ? Kt(ee, 1) : zt(ee, 1);
|
|
8388
8388
|
break;
|
|
8389
8389
|
case re.PageDown:
|
|
8390
|
-
ne =
|
|
8390
|
+
ne = L ? mt(ee, 1) : nt(ee, 1);
|
|
8391
8391
|
break;
|
|
8392
8392
|
case re.Home:
|
|
8393
8393
|
ne = kt(ee, x, k);
|
|
@@ -8646,15 +8646,15 @@ function wd() {
|
|
|
8646
8646
|
}
|
|
8647
8647
|
var l = function(p, m, y, g, c, M, B, U) {
|
|
8648
8648
|
if (!p) {
|
|
8649
|
-
var
|
|
8650
|
-
if (m === void 0)
|
|
8649
|
+
var Y;
|
|
8650
|
+
if (m === void 0) Y = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
8651
8651
|
else {
|
|
8652
8652
|
var H = [y, g, c, M, B, U], G = 0;
|
|
8653
|
-
(
|
|
8653
|
+
(Y = new Error(m.replace(/%s/g, function() {
|
|
8654
8654
|
return H[G++];
|
|
8655
8655
|
}))).name = "Invariant Violation";
|
|
8656
8656
|
}
|
|
8657
|
-
throw
|
|
8657
|
+
throw Y.framesToPop = 1, Y;
|
|
8658
8658
|
}
|
|
8659
8659
|
}, u = l;
|
|
8660
8660
|
function d(p, m, y) {
|
|
@@ -8678,8 +8678,8 @@ function wd() {
|
|
|
8678
8678
|
var g = "", c = "", M = null, B = [];
|
|
8679
8679
|
if (m === void 0 && (m = w), y == null && (y = v), !p || typeof p != "string") return { maskChar: m, formatChars: y, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
|
|
8680
8680
|
var U = !1;
|
|
8681
|
-
return p.split("").forEach(function(
|
|
8682
|
-
U = !U &&
|
|
8681
|
+
return p.split("").forEach(function(Y) {
|
|
8682
|
+
U = !U && Y === "\\" || (U || !y[Y] ? (B.push(g.length), g.length === B.length - 1 && (c += Y)) : M = g.length + 1, g += Y, !1);
|
|
8683
8683
|
}), { maskChar: m, formatChars: y, prefix: c, mask: g, lastEditablePosition: M, permanents: B };
|
|
8684
8684
|
}
|
|
8685
8685
|
function x(p, m) {
|
|
@@ -8715,41 +8715,41 @@ function wd() {
|
|
|
8715
8715
|
function E(p, m) {
|
|
8716
8716
|
return P(p, m) === p.mask.length;
|
|
8717
8717
|
}
|
|
8718
|
-
function
|
|
8718
|
+
function L(p, m) {
|
|
8719
8719
|
var y = p.maskChar, g = p.mask, c = p.prefix;
|
|
8720
8720
|
if (!y) {
|
|
8721
8721
|
for ((m = te(p, "", m, 0)).length < c.length && (m = c); m.length < g.length && x(p, m.length); ) m += g[m.length];
|
|
8722
8722
|
return m;
|
|
8723
8723
|
}
|
|
8724
|
-
if (m) return te(p,
|
|
8724
|
+
if (m) return te(p, L(p, ""), m, 0);
|
|
8725
8725
|
for (var M = 0; M < g.length; M++) x(p, M) ? m += g[M] : m += y;
|
|
8726
8726
|
return m;
|
|
8727
8727
|
}
|
|
8728
8728
|
function S(p, m, y, g) {
|
|
8729
|
-
var c = y + g, M = p.maskChar, B = p.mask, U = p.prefix,
|
|
8730
|
-
if (M) return
|
|
8729
|
+
var c = y + g, M = p.maskChar, B = p.mask, U = p.prefix, Y = m.split("");
|
|
8730
|
+
if (M) return Y.map(function(G, V) {
|
|
8731
8731
|
return V < y || c <= V ? G : x(p, V) ? B[V] : M;
|
|
8732
8732
|
}).join("");
|
|
8733
|
-
for (var H = c; H <
|
|
8734
|
-
return y = Math.max(U.length, y),
|
|
8733
|
+
for (var H = c; H < Y.length; H++) x(p, H) && (Y[H] = "");
|
|
8734
|
+
return y = Math.max(U.length, y), Y.splice(y, c - y), m = Y.join(""), L(p, m);
|
|
8735
8735
|
}
|
|
8736
8736
|
function te(p, m, y, g) {
|
|
8737
|
-
var c = p.mask, M = p.maskChar, B = p.prefix, U = y.split(""),
|
|
8737
|
+
var c = p.mask, M = p.maskChar, B = p.prefix, U = y.split(""), Y = E(p, m);
|
|
8738
8738
|
return !M && g > m.length && (m += c.slice(m.length, g)), U.every(function(H) {
|
|
8739
8739
|
for (; A = H, x(p, Z = g) && A !== c[Z]; ) {
|
|
8740
8740
|
if (g >= m.length && (m += c[g]), G = H, V = g, M && x(p, V) && G === M) return !0;
|
|
8741
8741
|
if (++g >= c.length) return !1;
|
|
8742
8742
|
}
|
|
8743
8743
|
var G, V, Z, A;
|
|
8744
|
-
return !k(p, g, H) && H !== M || (g < m.length ? m = M ||
|
|
8744
|
+
return !k(p, g, H) && H !== M || (g < m.length ? m = M || Y || g < B.length ? m.slice(0, g) + H + m.slice(g + 1) : (m = m.slice(0, g) + H + m.slice(g), L(p, m)) : M || (m += H), ++g < c.length);
|
|
8745
8745
|
}), m;
|
|
8746
8746
|
}
|
|
8747
8747
|
function O(p, m, y, g) {
|
|
8748
8748
|
var c = p.mask, M = p.maskChar, B = y.split(""), U = g;
|
|
8749
|
-
return B.every(function(
|
|
8750
|
-
for (; G =
|
|
8749
|
+
return B.every(function(Y) {
|
|
8750
|
+
for (; G = Y, x(p, H = g) && G !== c[H]; ) if (++g >= c.length) return !1;
|
|
8751
8751
|
var H, G;
|
|
8752
|
-
return (k(p, g,
|
|
8752
|
+
return (k(p, g, Y) || Y === M) && g++, g < c.length;
|
|
8753
8753
|
}), g - U;
|
|
8754
8754
|
}
|
|
8755
8755
|
function W(p, m) {
|
|
@@ -8764,8 +8764,8 @@ function wd() {
|
|
|
8764
8764
|
return p || p === 0 ? p + "" : "";
|
|
8765
8765
|
}
|
|
8766
8766
|
function ie(p, m, y, g, c) {
|
|
8767
|
-
var M = p.mask, B = p.prefix, U = p.lastEditablePosition,
|
|
8768
|
-
return y.end > c.start ? V = (G = O(p, g, H =
|
|
8767
|
+
var M = p.mask, B = p.prefix, U = p.lastEditablePosition, Y = m, H = "", G = 0, V = 0, Z = Math.min(c.start, y.start);
|
|
8768
|
+
return y.end > c.start ? V = (G = O(p, g, H = Y.slice(c.start, y.end), Z)) ? c.length : 0 : Y.length < g.length && (V = g.length - Y.length), Y = g, V && (V === 1 && !c.length && (Z = c.start === y.start ? I(p, y.start) : W(p, y.start)), Y = S(p, Y, Z, V)), Y = te(p, Y, H, Z), (Z += G) >= M.length ? Z = M.length : Z < B.length && !G ? Z = B.length : Z >= B.length && Z < U && G && (Z = I(p, Z)), H || (H = null), { value: Y = L(p, Y), enteredString: H, selection: { start: Z, end: Z } };
|
|
8769
8769
|
}
|
|
8770
8770
|
function ue() {
|
|
8771
8771
|
var p = new RegExp("windows", "i"), m = new RegExp("phone", "i"), y = navigator.userAgent;
|
|
@@ -8812,10 +8812,10 @@ function wd() {
|
|
|
8812
8812
|
}, c.setCursorToEnd = function() {
|
|
8813
8813
|
var J = P(c.maskOptions, c.value), C = I(c.maskOptions, J);
|
|
8814
8814
|
C !== null && c.setCursorPosition(C);
|
|
8815
|
-
}, c.setSelection = function(J, C,
|
|
8816
|
-
|
|
8815
|
+
}, c.setSelection = function(J, C, F) {
|
|
8816
|
+
F === void 0 && (F = {});
|
|
8817
8817
|
var R = c.getInputDOMNode(), N = c.isFocused();
|
|
8818
|
-
R && N && (
|
|
8818
|
+
R && N && (F.deferred || d(R, J, C), c.selectionDeferId !== null && q(c.selectionDeferId), c.selectionDeferId = ae(function() {
|
|
8819
8819
|
c.selectionDeferId = null, d(R, J, C);
|
|
8820
8820
|
}), c.previousSelection = { start: J, end: C, length: Math.abs(C - J) });
|
|
8821
8821
|
}, c.getSelection = function() {
|
|
@@ -8827,30 +8827,30 @@ function wd() {
|
|
|
8827
8827
|
}, c.isFocused = function() {
|
|
8828
8828
|
return c.focused;
|
|
8829
8829
|
}, c.getBeforeMaskedValueChangeConfig = function() {
|
|
8830
|
-
var J = c.maskOptions, C = J.mask,
|
|
8831
|
-
return { mask: C, maskChar:
|
|
8832
|
-
}, c.isInputAutofilled = function(J, C,
|
|
8830
|
+
var J = c.maskOptions, C = J.mask, F = J.maskChar, R = J.permanents, N = J.formatChars;
|
|
8831
|
+
return { mask: C, maskChar: F, permanents: R, alwaysShowMask: !!c.props.alwaysShowMask, formatChars: N };
|
|
8832
|
+
}, c.isInputAutofilled = function(J, C, F, R) {
|
|
8833
8833
|
var N = c.getInputDOMNode();
|
|
8834
8834
|
try {
|
|
8835
8835
|
if (N.matches(":-webkit-autofill")) return !0;
|
|
8836
8836
|
} catch {
|
|
8837
8837
|
}
|
|
8838
|
-
return !c.focused || R.end <
|
|
8838
|
+
return !c.focused || R.end < F.length && C.end === J.length;
|
|
8839
8839
|
}, c.onChange = function(J) {
|
|
8840
|
-
var C = s(s(c)).beforePasteState,
|
|
8841
|
-
c.isInputAutofilled(N, K, $,
|
|
8842
|
-
var ce = ie(c.maskOptions, N, K, $,
|
|
8840
|
+
var C = s(s(c)).beforePasteState, F = s(s(c)).previousSelection, R = c.props.beforeMaskedValueChange, N = c.getInputValue(), $ = c.value, K = c.getSelection();
|
|
8841
|
+
c.isInputAutofilled(N, K, $, F) && ($ = L(c.maskOptions, ""), F = { start: 0, end: 0, length: 0 }), C && (F = C.selection, $ = C.value, K = { start: F.start + N.length, end: F.start + N.length, length: 0 }, N = $.slice(0, F.start) + N + $.slice(F.end), c.beforePasteState = null);
|
|
8842
|
+
var ce = ie(c.maskOptions, N, K, $, F), fe = ce.enteredString, ve = ce.selection, ke = ce.value;
|
|
8843
8843
|
if (z(R)) {
|
|
8844
|
-
var Ke = R({ value: ke, selection: ve }, { value: $, selection:
|
|
8844
|
+
var Ke = R({ value: ke, selection: ve }, { value: $, selection: F }, fe, c.getBeforeMaskedValueChangeConfig());
|
|
8845
8845
|
ke = Ke.value, ve = Ke.selection;
|
|
8846
8846
|
}
|
|
8847
8847
|
c.setInputValue(ke), z(c.props.onChange) && c.props.onChange(J), c.isWindowsPhoneBrowser ? c.setSelection(ve.start, ve.end, { deferred: !0 }) : c.setSelection(ve.start, ve.end);
|
|
8848
8848
|
}, c.onFocus = function(J) {
|
|
8849
|
-
var C = c.props.beforeMaskedValueChange,
|
|
8849
|
+
var C = c.props.beforeMaskedValueChange, F = c.maskOptions, R = F.mask, N = F.prefix;
|
|
8850
8850
|
if (c.focused = !0, c.mounted = !0, R) {
|
|
8851
8851
|
if (c.value) P(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
8852
8852
|
else {
|
|
8853
|
-
var $ =
|
|
8853
|
+
var $ = L(c.maskOptions, N), K = L(c.maskOptions, $), ce = P(c.maskOptions, K), fe = I(c.maskOptions, ce), ve = { start: fe, end: fe };
|
|
8854
8854
|
if (z(C)) {
|
|
8855
8855
|
var ke = C({ value: K, selection: ve }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
|
|
8856
8856
|
K = ke.value, ve = ke.selection;
|
|
@@ -8862,8 +8862,8 @@ function wd() {
|
|
|
8862
8862
|
}
|
|
8863
8863
|
z(c.props.onFocus) && c.props.onFocus(J);
|
|
8864
8864
|
}, c.onBlur = function(J) {
|
|
8865
|
-
var C = c.props.beforeMaskedValueChange,
|
|
8866
|
-
if (c.stopSaveSelectionLoop(), c.focused = !1,
|
|
8865
|
+
var C = c.props.beforeMaskedValueChange, F = c.maskOptions.mask;
|
|
8866
|
+
if (c.stopSaveSelectionLoop(), c.focused = !1, F && !c.props.alwaysShowMask && T(c.maskOptions, c.value)) {
|
|
8867
8867
|
var R = "";
|
|
8868
8868
|
z(C) && (R = C({ value: R, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
|
|
8869
8869
|
var N = R !== c.getInputValue();
|
|
@@ -8873,8 +8873,8 @@ function wd() {
|
|
|
8873
8873
|
}, c.onMouseDown = function(J) {
|
|
8874
8874
|
if (!c.focused && document.addEventListener) {
|
|
8875
8875
|
c.mouseDownX = J.clientX, c.mouseDownY = J.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
8876
|
-
var C = function
|
|
8877
|
-
if (document.removeEventListener("mouseup",
|
|
8876
|
+
var C = function F(R) {
|
|
8877
|
+
if (document.removeEventListener("mouseup", F), c.focused) {
|
|
8878
8878
|
var N = Math.abs(R.clientX - c.mouseDownX), $ = Math.abs(R.clientY - c.mouseDownY), K = Math.max(N, $), ce = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
|
|
8879
8879
|
(K <= 10 && ce <= 200 || K <= 5 && ce <= 300) && c.setCursorToEnd();
|
|
8880
8880
|
}
|
|
@@ -8887,10 +8887,10 @@ function wd() {
|
|
|
8887
8887
|
}, c.handleRef = function(J) {
|
|
8888
8888
|
c.props.children == null && z(c.props.inputRef) && c.props.inputRef(J);
|
|
8889
8889
|
};
|
|
8890
|
-
var M = g.mask, B = g.maskChar, U = g.formatChars,
|
|
8890
|
+
var M = g.mask, B = g.maskChar, U = g.formatChars, Y = g.alwaysShowMask, H = g.beforeMaskedValueChange, G = g.defaultValue, V = g.value;
|
|
8891
8891
|
c.maskOptions = _(M, B, U), G == null && (G = ""), V == null && (V = G);
|
|
8892
8892
|
var Z = X(V);
|
|
8893
|
-
if (c.maskOptions.mask && (
|
|
8893
|
+
if (c.maskOptions.mask && (Y || Z) && (Z = L(c.maskOptions, Z), z(H))) {
|
|
8894
8894
|
var A = g.value;
|
|
8895
8895
|
g.value == null && (A = G), Z = H({ value: Z, selection: null }, { value: A = X(A), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
|
|
8896
8896
|
}
|
|
@@ -8901,13 +8901,13 @@ function wd() {
|
|
|
8901
8901
|
return y.componentDidMount = function() {
|
|
8902
8902
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ue(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
8903
8903
|
}, y.componentDidUpdate = function() {
|
|
8904
|
-
var g = this.previousSelection, c = this.props, M = c.beforeMaskedValueChange, B = c.alwaysShowMask, U = c.mask,
|
|
8905
|
-
if (this.maskOptions = _(U,
|
|
8904
|
+
var g = this.previousSelection, c = this.props, M = c.beforeMaskedValueChange, B = c.alwaysShowMask, U = c.mask, Y = c.maskChar, H = c.formatChars, G = this.maskOptions, V = B || this.isFocused(), Z = this.props.value != null, A = Z ? X(this.props.value) : this.value, J = g ? g.start : null;
|
|
8905
|
+
if (this.maskOptions = _(U, Y, H), this.maskOptions.mask) {
|
|
8906
8906
|
!G.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
8907
8907
|
var C = this.maskOptions.mask && this.maskOptions.mask !== G.mask;
|
|
8908
|
-
if (G.mask || Z || (A = this.getInputValue()), (C || this.maskOptions.mask && (A || V)) && (A =
|
|
8909
|
-
var
|
|
8910
|
-
(J === null ||
|
|
8908
|
+
if (G.mask || Z || (A = this.getInputValue()), (C || this.maskOptions.mask && (A || V)) && (A = L(this.maskOptions, A)), C) {
|
|
8909
|
+
var F = P(this.maskOptions, A);
|
|
8910
|
+
(J === null || F < J) && (J = E(this.maskOptions, A) ? F : I(this.maskOptions, F));
|
|
8911
8911
|
}
|
|
8912
8912
|
!this.maskOptions.mask || !T(this.maskOptions, A) || V || Z && this.props.value || (A = "");
|
|
8913
8913
|
var R = { start: J, end: J };
|
|
@@ -8927,10 +8927,10 @@ function wd() {
|
|
|
8927
8927
|
var g, c = this.props, M = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), B = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
|
|
8928
8928
|
if (M) {
|
|
8929
8929
|
z(M) || u(!1);
|
|
8930
|
-
var U = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"],
|
|
8930
|
+
var U = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], Y = r({}, B);
|
|
8931
8931
|
U.forEach(function(G) {
|
|
8932
|
-
return delete
|
|
8933
|
-
}), g = M(
|
|
8932
|
+
return delete Y[G];
|
|
8933
|
+
}), g = M(Y), U.filter(function(G) {
|
|
8934
8934
|
return g.props[G] != null && g.props[G] !== B[G];
|
|
8935
8935
|
}).length && u(!1);
|
|
8936
8936
|
} else g = a.createElement("input", r({ ref: this.handleRef }, B));
|
|
@@ -9080,8 +9080,8 @@ function Dd() {
|
|
|
9080
9080
|
permanents: []
|
|
9081
9081
|
};
|
|
9082
9082
|
var U = !1;
|
|
9083
|
-
return p.split("").forEach(function(
|
|
9084
|
-
!U &&
|
|
9083
|
+
return p.split("").forEach(function(Y) {
|
|
9084
|
+
!U && Y === "\\" ? U = !0 : (U || !y[Y] ? (B.push(g.length), g.length === B.length - 1 && (c += Y)) : M = g.length + 1, g += Y, U = !1);
|
|
9085
9085
|
}), {
|
|
9086
9086
|
maskChar: m,
|
|
9087
9087
|
formatChars: y,
|
|
@@ -9127,7 +9127,7 @@ function Dd() {
|
|
|
9127
9127
|
function E(p, m) {
|
|
9128
9128
|
return P(p, m) === p.mask.length;
|
|
9129
9129
|
}
|
|
9130
|
-
function
|
|
9130
|
+
function L(p, m) {
|
|
9131
9131
|
var y = p.maskChar, g = p.mask, c = p.prefix;
|
|
9132
9132
|
if (!y) {
|
|
9133
9133
|
for (m = te(p, "", m, 0), m.length < c.length && (m = c); m.length < g.length && x(p, m.length); )
|
|
@@ -9135,7 +9135,7 @@ function Dd() {
|
|
|
9135
9135
|
return m;
|
|
9136
9136
|
}
|
|
9137
9137
|
if (m) {
|
|
9138
|
-
var M =
|
|
9138
|
+
var M = L(p, "");
|
|
9139
9139
|
return te(p, M, m, 0);
|
|
9140
9140
|
}
|
|
9141
9141
|
for (var B = 0; B < g.length; B++)
|
|
@@ -9143,18 +9143,18 @@ function Dd() {
|
|
|
9143
9143
|
return m;
|
|
9144
9144
|
}
|
|
9145
9145
|
function S(p, m, y, g) {
|
|
9146
|
-
var c = y + g, M = p.maskChar, B = p.mask, U = p.prefix,
|
|
9146
|
+
var c = y + g, M = p.maskChar, B = p.mask, U = p.prefix, Y = m.split("");
|
|
9147
9147
|
if (!M) {
|
|
9148
|
-
for (var H = c; H <
|
|
9149
|
-
x(p, H) && (
|
|
9150
|
-
return y = Math.max(U.length, y),
|
|
9148
|
+
for (var H = c; H < Y.length; H++)
|
|
9149
|
+
x(p, H) && (Y[H] = "");
|
|
9150
|
+
return y = Math.max(U.length, y), Y.splice(y, c - y), m = Y.join(""), L(p, m);
|
|
9151
9151
|
}
|
|
9152
|
-
return
|
|
9152
|
+
return Y.map(function(G, V) {
|
|
9153
9153
|
return V < y || V >= c ? G : x(p, V) ? B[V] : M;
|
|
9154
9154
|
}).join("");
|
|
9155
9155
|
}
|
|
9156
9156
|
function te(p, m, y, g) {
|
|
9157
|
-
var c = p.mask, M = p.maskChar, B = p.prefix, U = y.split(""),
|
|
9157
|
+
var c = p.mask, M = p.maskChar, B = p.prefix, U = y.split(""), Y = E(p, m), H = function(Z, A) {
|
|
9158
9158
|
return !x(p, Z) || A === c[Z];
|
|
9159
9159
|
}, G = function(Z, A) {
|
|
9160
9160
|
return !M || !x(p, A) || Z !== M;
|
|
@@ -9167,15 +9167,15 @@ function Dd() {
|
|
|
9167
9167
|
return !1;
|
|
9168
9168
|
}
|
|
9169
9169
|
var Z = k(p, g, V) || V === M;
|
|
9170
|
-
return Z ? (g < m.length ? M ||
|
|
9170
|
+
return Z ? (g < m.length ? M || Y || g < B.length ? m = m.slice(0, g) + V + m.slice(g + 1) : (m = m.slice(0, g) + V + m.slice(g), m = L(p, m)) : M || (m += V), g++, g < c.length) : !0;
|
|
9171
9171
|
}), m;
|
|
9172
9172
|
}
|
|
9173
9173
|
function O(p, m, y, g) {
|
|
9174
|
-
var c = p.mask, M = p.maskChar, B = y.split(""), U = g,
|
|
9174
|
+
var c = p.mask, M = p.maskChar, B = y.split(""), U = g, Y = function(G, V) {
|
|
9175
9175
|
return !x(p, G) || V === c[G];
|
|
9176
9176
|
};
|
|
9177
9177
|
return B.every(function(H) {
|
|
9178
|
-
for (; !
|
|
9178
|
+
for (; !Y(g, H); )
|
|
9179
9179
|
if (g++, g >= c.length)
|
|
9180
9180
|
return !1;
|
|
9181
9181
|
var G = k(p, g, H) || H === M;
|
|
@@ -9198,16 +9198,16 @@ function Dd() {
|
|
|
9198
9198
|
return !p && p !== 0 ? "" : p + "";
|
|
9199
9199
|
}
|
|
9200
9200
|
function ie(p, m, y, g, c) {
|
|
9201
|
-
var M = p.mask, B = p.prefix, U = p.lastEditablePosition,
|
|
9202
|
-
if (y.end > c.start ? (H =
|
|
9201
|
+
var M = p.mask, B = p.prefix, U = p.lastEditablePosition, Y = m, H = "", G = 0, V = 0, Z = Math.min(c.start, y.start);
|
|
9202
|
+
if (y.end > c.start ? (H = Y.slice(c.start, y.end), G = O(p, g, H, Z), G ? V = c.length : V = 0) : Y.length < g.length && (V = g.length - Y.length), Y = g, V) {
|
|
9203
9203
|
if (V === 1 && !c.length) {
|
|
9204
9204
|
var A = c.start === y.start;
|
|
9205
9205
|
Z = A ? I(p, y.start) : W(p, y.start);
|
|
9206
9206
|
}
|
|
9207
|
-
|
|
9207
|
+
Y = S(p, Y, Z, V);
|
|
9208
9208
|
}
|
|
9209
|
-
return
|
|
9210
|
-
value:
|
|
9209
|
+
return Y = te(p, Y, H, Z), Z = Z + G, Z >= M.length ? Z = M.length : Z < B.length && !G ? Z = B.length : Z >= B.length && Z < U && G && (Z = I(p, Z)), Y = L(p, Y), H || (H = null), {
|
|
9210
|
+
value: Y,
|
|
9211
9211
|
enteredString: H,
|
|
9212
9212
|
selection: {
|
|
9213
9213
|
start: Z,
|
|
@@ -9251,8 +9251,8 @@ function Dd() {
|
|
|
9251
9251
|
}, c.getInputDOMNode = function() {
|
|
9252
9252
|
if (!c.mounted)
|
|
9253
9253
|
return null;
|
|
9254
|
-
var C = t.findDOMNode(u(u(c))),
|
|
9255
|
-
if (C && !
|
|
9254
|
+
var C = t.findDOMNode(u(u(c))), F = typeof window < "u" && C instanceof window.Element;
|
|
9255
|
+
if (C && !F)
|
|
9256
9256
|
return null;
|
|
9257
9257
|
if (C.nodeName !== "INPUT" && (C = C.querySelector("input")), !C)
|
|
9258
9258
|
throw new Error("react-input-mask: inputComponent doesn't contain input node");
|
|
@@ -9261,22 +9261,22 @@ function Dd() {
|
|
|
9261
9261
|
var C = c.getInputDOMNode();
|
|
9262
9262
|
return C ? C.value : null;
|
|
9263
9263
|
}, c.setInputValue = function(C) {
|
|
9264
|
-
var
|
|
9265
|
-
|
|
9264
|
+
var F = c.getInputDOMNode();
|
|
9265
|
+
F && (c.value = C, F.value = C);
|
|
9266
9266
|
}, c.setCursorToEnd = function() {
|
|
9267
|
-
var C = P(c.maskOptions, c.value),
|
|
9268
|
-
|
|
9269
|
-
}, c.setSelection = function(C,
|
|
9267
|
+
var C = P(c.maskOptions, c.value), F = I(c.maskOptions, C);
|
|
9268
|
+
F !== null && c.setCursorPosition(F);
|
|
9269
|
+
}, c.setSelection = function(C, F, R) {
|
|
9270
9270
|
R === void 0 && (R = {});
|
|
9271
9271
|
var N = c.getInputDOMNode(), $ = c.isFocused();
|
|
9272
9272
|
if (!(!N || !$)) {
|
|
9273
9273
|
var K = R, ce = K.deferred;
|
|
9274
|
-
ce || d(N, C,
|
|
9275
|
-
c.selectionDeferId = null, d(N, C,
|
|
9274
|
+
ce || d(N, C, F), c.selectionDeferId !== null && q(c.selectionDeferId), c.selectionDeferId = ae(function() {
|
|
9275
|
+
c.selectionDeferId = null, d(N, C, F);
|
|
9276
9276
|
}), c.previousSelection = {
|
|
9277
9277
|
start: C,
|
|
9278
|
-
end:
|
|
9279
|
-
length: Math.abs(
|
|
9278
|
+
end: F,
|
|
9279
|
+
length: Math.abs(F - C)
|
|
9280
9280
|
};
|
|
9281
9281
|
}
|
|
9282
9282
|
}, c.getSelection = function() {
|
|
@@ -9289,25 +9289,25 @@ function Dd() {
|
|
|
9289
9289
|
}, c.isFocused = function() {
|
|
9290
9290
|
return c.focused;
|
|
9291
9291
|
}, c.getBeforeMaskedValueChangeConfig = function() {
|
|
9292
|
-
var C = c.maskOptions,
|
|
9292
|
+
var C = c.maskOptions, F = C.mask, R = C.maskChar, N = C.permanents, $ = C.formatChars, K = c.props.alwaysShowMask;
|
|
9293
9293
|
return {
|
|
9294
|
-
mask:
|
|
9294
|
+
mask: F,
|
|
9295
9295
|
maskChar: R,
|
|
9296
9296
|
permanents: N,
|
|
9297
9297
|
alwaysShowMask: !!K,
|
|
9298
9298
|
formatChars: $
|
|
9299
9299
|
};
|
|
9300
|
-
}, c.isInputAutofilled = function(C,
|
|
9300
|
+
}, c.isInputAutofilled = function(C, F, R, N) {
|
|
9301
9301
|
var $ = c.getInputDOMNode();
|
|
9302
9302
|
try {
|
|
9303
9303
|
if ($.matches(":-webkit-autofill"))
|
|
9304
9304
|
return !0;
|
|
9305
9305
|
} catch {
|
|
9306
9306
|
}
|
|
9307
|
-
return c.focused ? N.end < R.length &&
|
|
9307
|
+
return c.focused ? N.end < R.length && F.end === C.length : !0;
|
|
9308
9308
|
}, c.onChange = function(C) {
|
|
9309
|
-
var
|
|
9310
|
-
c.isInputAutofilled(ce, ve, fe, $) && (fe =
|
|
9309
|
+
var F = u(u(c)), R = F.beforePasteState, N = u(u(c)), $ = N.previousSelection, K = c.props.beforeMaskedValueChange, ce = c.getInputValue(), fe = c.value, ve = c.getSelection();
|
|
9310
|
+
c.isInputAutofilled(ce, ve, fe, $) && (fe = L(c.maskOptions, ""), $ = {
|
|
9311
9311
|
start: 0,
|
|
9312
9312
|
end: 0,
|
|
9313
9313
|
length: 0
|
|
@@ -9331,17 +9331,17 @@ function Dd() {
|
|
|
9331
9331
|
deferred: !0
|
|
9332
9332
|
}) : c.setSelection(Xe.start, Xe.end);
|
|
9333
9333
|
}, c.onFocus = function(C) {
|
|
9334
|
-
var
|
|
9334
|
+
var F = c.props.beforeMaskedValueChange, R = c.maskOptions, N = R.mask, $ = R.prefix;
|
|
9335
9335
|
if (c.focused = !0, c.mounted = !0, N) {
|
|
9336
9336
|
if (c.value)
|
|
9337
9337
|
P(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
9338
9338
|
else {
|
|
9339
|
-
var K =
|
|
9339
|
+
var K = L(c.maskOptions, $), ce = L(c.maskOptions, K), fe = P(c.maskOptions, ce), ve = I(c.maskOptions, fe), ke = {
|
|
9340
9340
|
start: ve,
|
|
9341
9341
|
end: ve
|
|
9342
9342
|
};
|
|
9343
|
-
if (z(
|
|
9344
|
-
var Ke =
|
|
9343
|
+
if (z(F)) {
|
|
9344
|
+
var Ke = F({
|
|
9345
9345
|
value: ce,
|
|
9346
9346
|
selection: ke
|
|
9347
9347
|
}, {
|
|
@@ -9357,11 +9357,11 @@ function Dd() {
|
|
|
9357
9357
|
}
|
|
9358
9358
|
z(c.props.onFocus) && c.props.onFocus(C);
|
|
9359
9359
|
}, c.onBlur = function(C) {
|
|
9360
|
-
var
|
|
9360
|
+
var F = c.props.beforeMaskedValueChange, R = c.maskOptions.mask;
|
|
9361
9361
|
if (c.stopSaveSelectionLoop(), c.focused = !1, R && !c.props.alwaysShowMask && T(c.maskOptions, c.value)) {
|
|
9362
9362
|
var N = "";
|
|
9363
|
-
if (z(
|
|
9364
|
-
var $ =
|
|
9363
|
+
if (z(F)) {
|
|
9364
|
+
var $ = F({
|
|
9365
9365
|
value: N,
|
|
9366
9366
|
selection: null
|
|
9367
9367
|
}, {
|
|
@@ -9377,13 +9377,13 @@ function Dd() {
|
|
|
9377
9377
|
}, c.onMouseDown = function(C) {
|
|
9378
9378
|
if (!c.focused && document.addEventListener) {
|
|
9379
9379
|
c.mouseDownX = C.clientX, c.mouseDownY = C.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
9380
|
-
var
|
|
9380
|
+
var F = function R(N) {
|
|
9381
9381
|
if (document.removeEventListener("mouseup", R), !!c.focused) {
|
|
9382
9382
|
var $ = Math.abs(N.clientX - c.mouseDownX), K = Math.abs(N.clientY - c.mouseDownY), ce = Math.max($, K), fe = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
|
|
9383
9383
|
(ce <= 10 && fe <= 200 || ce <= 5 && fe <= 300) && c.setCursorToEnd();
|
|
9384
9384
|
}
|
|
9385
9385
|
};
|
|
9386
|
-
document.addEventListener("mouseup",
|
|
9386
|
+
document.addEventListener("mouseup", F);
|
|
9387
9387
|
}
|
|
9388
9388
|
z(c.props.onMouseDown) && c.props.onMouseDown(C);
|
|
9389
9389
|
}, c.onPaste = function(C) {
|
|
@@ -9394,10 +9394,10 @@ function Dd() {
|
|
|
9394
9394
|
}, c.handleRef = function(C) {
|
|
9395
9395
|
c.props.children == null && z(c.props.inputRef) && c.props.inputRef(C);
|
|
9396
9396
|
};
|
|
9397
|
-
var M = g.mask, B = g.maskChar, U = g.formatChars,
|
|
9397
|
+
var M = g.mask, B = g.maskChar, U = g.formatChars, Y = g.alwaysShowMask, H = g.beforeMaskedValueChange, G = g.defaultValue, V = g.value;
|
|
9398
9398
|
c.maskOptions = _(M, B, U), G == null && (G = ""), V == null && (V = G);
|
|
9399
9399
|
var Z = X(V);
|
|
9400
|
-
if (c.maskOptions.mask && (
|
|
9400
|
+
if (c.maskOptions.mask && (Y || Z) && (Z = L(c.maskOptions, Z), z(H))) {
|
|
9401
9401
|
var A = g.value;
|
|
9402
9402
|
g.value == null && (A = G), A = X(A);
|
|
9403
9403
|
var J = H({
|
|
@@ -9415,15 +9415,15 @@ function Dd() {
|
|
|
9415
9415
|
return y.componentDidMount = function() {
|
|
9416
9416
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ue(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
9417
9417
|
}, y.componentDidUpdate = function() {
|
|
9418
|
-
var c = this.previousSelection, M = this.props, B = M.beforeMaskedValueChange, U = M.alwaysShowMask,
|
|
9419
|
-
if (this.maskOptions = _(
|
|
9418
|
+
var c = this.previousSelection, M = this.props, B = M.beforeMaskedValueChange, U = M.alwaysShowMask, Y = M.mask, H = M.maskChar, G = M.formatChars, V = this.maskOptions, Z = U || this.isFocused(), A = this.props.value != null, J = A ? X(this.props.value) : this.value, C = c ? c.start : null;
|
|
9419
|
+
if (this.maskOptions = _(Y, H, G), this.maskOptions.mask)
|
|
9420
9420
|
!V.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
9421
9421
|
else {
|
|
9422
9422
|
V.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
|
|
9423
9423
|
return;
|
|
9424
9424
|
}
|
|
9425
|
-
var
|
|
9426
|
-
if (!V.mask && !A && (J = this.getInputValue()), (
|
|
9425
|
+
var F = this.maskOptions.mask && this.maskOptions.mask !== V.mask;
|
|
9426
|
+
if (!V.mask && !A && (J = this.getInputValue()), (F || this.maskOptions.mask && (J || Z)) && (J = L(this.maskOptions, J)), F) {
|
|
9427
9427
|
var R = P(this.maskOptions, J);
|
|
9428
9428
|
(C === null || R < C) && (E(this.maskOptions, J) ? C = R : C = I(this.maskOptions, R));
|
|
9429
9429
|
}
|
|
@@ -9444,7 +9444,7 @@ function Dd() {
|
|
|
9444
9444
|
}
|
|
9445
9445
|
this.value = J;
|
|
9446
9446
|
var K = this.getInputValue() !== this.value;
|
|
9447
|
-
K ? (this.setInputValue(this.value), this.forceUpdate()) :
|
|
9447
|
+
K ? (this.setInputValue(this.value), this.forceUpdate()) : F && this.forceUpdate();
|
|
9448
9448
|
var ce = !1;
|
|
9449
9449
|
N.start != null && N.end != null && (ce = !c || c.start !== N.start || c.end !== N.end), (ce || K) && this.setSelection(N.start, N.end);
|
|
9450
9450
|
}, y.componentWillUnmount = function() {
|
|
@@ -9452,7 +9452,7 @@ function Dd() {
|
|
|
9452
9452
|
}, y.render = function() {
|
|
9453
9453
|
var c = this.props, M = c.mask;
|
|
9454
9454
|
c.alwaysShowMask;
|
|
9455
|
-
var B = c.maskChar, U = c.formatChars,
|
|
9455
|
+
var B = c.maskChar, U = c.formatChars, Y = c.inputRef;
|
|
9456
9456
|
c.beforeMaskedValueChange;
|
|
9457
9457
|
var H = c.children, G = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), V;
|
|
9458
9458
|
if (process.env.NODE_ENV !== "production" && r(
|
|
@@ -9463,13 +9463,13 @@ function Dd() {
|
|
|
9463
9463
|
), H) {
|
|
9464
9464
|
z(H) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
|
|
9465
9465
|
var Z = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], A = i({}, G);
|
|
9466
|
-
Z.forEach(function(
|
|
9467
|
-
return delete A[
|
|
9466
|
+
Z.forEach(function(F) {
|
|
9467
|
+
return delete A[F];
|
|
9468
9468
|
}), V = H(A);
|
|
9469
|
-
var J = Z.filter(function(
|
|
9470
|
-
return V.props[
|
|
9469
|
+
var J = Z.filter(function(F) {
|
|
9470
|
+
return V.props[F] != null && V.props[F] !== G[F];
|
|
9471
9471
|
});
|
|
9472
|
-
J.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + J.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!
|
|
9472
|
+
J.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + J.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!Y, "react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead");
|
|
9473
9473
|
} else
|
|
9474
9474
|
V = a.createElement("input", i({
|
|
9475
9475
|
ref: this.handleRef
|
|
@@ -10328,8 +10328,8 @@ const ho = (n) => {
|
|
|
10328
10328
|
resize: T,
|
|
10329
10329
|
onMouseDown: P
|
|
10330
10330
|
}) => {
|
|
10331
|
-
var
|
|
10332
|
-
const E = `${n}th${a}`,
|
|
10331
|
+
var F, R;
|
|
10332
|
+
const E = `${n}th${a}`, L = "auto", S = [
|
|
10333
10333
|
{ title: "По", id: "before" },
|
|
10334
10334
|
{ title: "После", id: "after" },
|
|
10335
10335
|
{ title: "Конкретный день", id: "exact" },
|
|
@@ -10340,7 +10340,9 @@ const ho = (n) => {
|
|
|
10340
10340
|
{ id: "1", title: "Равно" },
|
|
10341
10341
|
{ id: "2", title: "Начинается с" },
|
|
10342
10342
|
{ id: "3", title: "Оканчивается на" }
|
|
10343
|
-
], [O, W] = xe(), [I, X] = xe(), [ie, ue] = xe(), [z, ee] = xe(), [ne, ae] = xe(0), [q, me] = xe(""), [p, m] = xe()
|
|
10343
|
+
], [O, W] = xe(), [I, X] = xe(), [ie, ue] = xe(), [z, ee] = xe(), [ne, ae] = xe(0), [q, me] = xe(""), [p, m] = xe();
|
|
10344
|
+
console.log("🚀 ~ checkBoxes:", p);
|
|
10345
|
+
const y = et(), g = lf(() => {
|
|
10344
10346
|
u === E && d(void 0);
|
|
10345
10347
|
}), c = (N) => {
|
|
10346
10348
|
let $ = 0;
|
|
@@ -10358,7 +10360,7 @@ const ho = (n) => {
|
|
|
10358
10360
|
asc: $ === void 0 ? void 0 : (x == null ? void 0 : x.column) === N ? !(x != null && x.asc) : !0
|
|
10359
10361
|
};
|
|
10360
10362
|
k == null || k(K);
|
|
10361
|
-
},
|
|
10363
|
+
}, Y = (N, $) => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
10362
10364
|
/* @__PURE__ */ h.jsx(
|
|
10363
10365
|
"input",
|
|
10364
10366
|
{
|
|
@@ -10488,7 +10490,7 @@ const ho = (n) => {
|
|
|
10488
10490
|
display: "flex",
|
|
10489
10491
|
alignItems: "center",
|
|
10490
10492
|
justifyContent: "space-between",
|
|
10491
|
-
width: T ? "100%" : s != null && s.width ? M(s.width) :
|
|
10493
|
+
width: T ? "100%" : s != null && s.width ? M(s.width) : L,
|
|
10492
10494
|
minWidth: T && s.width ? M(s.width) : "",
|
|
10493
10495
|
position: s.sticky ? "sticky" : "",
|
|
10494
10496
|
height: ne
|
|
@@ -10668,7 +10670,7 @@ const ho = (n) => {
|
|
|
10668
10670
|
po,
|
|
10669
10671
|
{
|
|
10670
10672
|
isClearable: !0,
|
|
10671
|
-
placeholder: ((
|
|
10673
|
+
placeholder: ((F = O == null ? void 0 : O.typeFilterSearch) == null ? void 0 : F.title) === "Между" ? "C" : "Выберите дату",
|
|
10672
10674
|
isFilter: !0,
|
|
10673
10675
|
selected: ie,
|
|
10674
10676
|
onChange: ue
|
|
@@ -10833,7 +10835,7 @@ const ho = (n) => {
|
|
|
10833
10835
|
alignItems: "center"
|
|
10834
10836
|
},
|
|
10835
10837
|
children: [
|
|
10836
|
-
/* @__PURE__ */ h.jsx("label", { className: "u-checkbox", children:
|
|
10838
|
+
/* @__PURE__ */ h.jsx("label", { className: "u-checkbox", children: Y(
|
|
10837
10839
|
typeof N == "object" && N !== null ? N.title : N,
|
|
10838
10840
|
s.field
|
|
10839
10841
|
) }),
|
|
@@ -11004,8 +11006,8 @@ const ff = ({
|
|
|
11004
11006
|
}) => {
|
|
11005
11007
|
const T = (E) => typeof E == "number" ? `${E}px` : String(E), P = (E) => {
|
|
11006
11008
|
e(E);
|
|
11007
|
-
const
|
|
11008
|
-
S.selectNodeContents(
|
|
11009
|
+
const L = document.getElementById(`input-expand${t}`), S = document.createRange(), te = window.getSelection();
|
|
11010
|
+
S.selectNodeContents(L), S.collapse(!1), te.removeAllRanges(), te.addRange(S);
|
|
11009
11011
|
};
|
|
11010
11012
|
return /* @__PURE__ */ h.jsxs("div", { className: `u-react-input-expand-container ${f}`, style: { position: "relative" }, children: [
|
|
11011
11013
|
/* @__PURE__ */ h.jsxs(
|
|
@@ -11103,7 +11105,7 @@ const pf = ({
|
|
|
11103
11105
|
sizeInfo: T = "Максимальный размер файла 5 Мб",
|
|
11104
11106
|
showLoading: P = !1,
|
|
11105
11107
|
files: E,
|
|
11106
|
-
file:
|
|
11108
|
+
file: L,
|
|
11107
11109
|
multiple: S = !1
|
|
11108
11110
|
}) => {
|
|
11109
11111
|
const te = (X) => typeof X == "number" ? `${X}px` : String(X), O = S ? Array.from(E).map((X, ie) => {
|
|
@@ -11114,10 +11116,10 @@ const pf = ({
|
|
|
11114
11116
|
size: X.size > 1048576 ? (X.size / 1024 / 1024).toFixed(1) + "Мб" : X.size > 1024 ? (X.size / 1024).toFixed(1) + "Кб" : X.size.toFixed(1) + "б",
|
|
11115
11117
|
date: (ue = X == null ? void 0 : X.lastModifiedDate) == null ? void 0 : ue.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" })
|
|
11116
11118
|
};
|
|
11117
|
-
}) :
|
|
11118
|
-
name:
|
|
11119
|
-
size:
|
|
11120
|
-
date:
|
|
11119
|
+
}) : L ? {
|
|
11120
|
+
name: L.name,
|
|
11121
|
+
size: L.size > 1048576 ? (L.size / 1024 / 1024).toFixed(1) + "Мб" : L.size > 1024 ? (L.size / 1024).toFixed(1) + "Кб" : L.size.toFixed(1) + "б",
|
|
11122
|
+
date: L.lastModifiedDate.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" })
|
|
11121
11123
|
} : null, W = (X) => {
|
|
11122
11124
|
switch (X.split(".").pop().toLowerCase()) {
|
|
11123
11125
|
case "pdf":
|
|
@@ -11258,7 +11260,7 @@ const hf = ({
|
|
|
11258
11260
|
validationText: T = "Заполните поле",
|
|
11259
11261
|
validationOn: P,
|
|
11260
11262
|
validationOnWithoutText: E,
|
|
11261
|
-
absoluteValidationText:
|
|
11263
|
+
absoluteValidationText: L
|
|
11262
11264
|
}) => {
|
|
11263
11265
|
const S = (W) => typeof W == "number" ? `${W}px` : String(W), te = (W) => {
|
|
11264
11266
|
let I = document.getElementById(`num-minus-${W}`);
|
|
@@ -11322,7 +11324,7 @@ const hf = ({
|
|
|
11322
11324
|
}
|
|
11323
11325
|
)
|
|
11324
11326
|
] }),
|
|
11325
|
-
P && /* @__PURE__ */ h.jsx("h5", { className: "clr-red-main", style:
|
|
11327
|
+
P && /* @__PURE__ */ h.jsx("h5", { className: "clr-red-main", style: L ? { position: "absolute", bottom: "-20px" } : { position: "relative", marginTop: "4px" }, children: T })
|
|
11326
11328
|
]
|
|
11327
11329
|
}
|
|
11328
11330
|
);
|
|
@@ -11363,7 +11365,7 @@ const mf = ({
|
|
|
11363
11365
|
validationText: T = "Заполните поле",
|
|
11364
11366
|
validationOn: P,
|
|
11365
11367
|
validationOnWithoutText: E,
|
|
11366
|
-
absoluteValidationText:
|
|
11368
|
+
absoluteValidationText: L
|
|
11367
11369
|
}) => {
|
|
11368
11370
|
const S = (te) => typeof te == "number" ? `${te}px` : String(te);
|
|
11369
11371
|
return /* @__PURE__ */ h.jsxs("div", { className: `u-react-input-container ${x}`, style: { position: "relative" }, children: [
|
|
@@ -11420,7 +11422,7 @@ const mf = ({
|
|
|
11420
11422
|
]
|
|
11421
11423
|
}
|
|
11422
11424
|
),
|
|
11423
|
-
P && /* @__PURE__ */ h.jsx("h5", { className: "clr-red-main", style:
|
|
11425
|
+
P && /* @__PURE__ */ h.jsx("h5", { className: "clr-red-main", style: L ? { position: "absolute", bottom: "-20px" } : { position: "relative", marginTop: "4px" }, children: T })
|
|
11424
11426
|
] });
|
|
11425
11427
|
};
|
|
11426
11428
|
mf.propTypes = {
|
|
@@ -11598,7 +11600,7 @@ const er = (n, a, t) => {
|
|
|
11598
11600
|
er(E, P, () => {
|
|
11599
11601
|
w(!1), x(null);
|
|
11600
11602
|
});
|
|
11601
|
-
const
|
|
11603
|
+
const L = (O) => {
|
|
11602
11604
|
const { x: W, y: I, width: X } = O.target.getBoundingClientRect();
|
|
11603
11605
|
x({ x: W, y: I + 90 + window.scrollY }), T(X);
|
|
11604
11606
|
}, S = (O) => {
|
|
@@ -11631,7 +11633,7 @@ const er = (n, a, t) => {
|
|
|
11631
11633
|
{
|
|
11632
11634
|
className: v ? "u-multiselectbox-select u-multiselectbox-select-open" : "u-multiselectbox-select",
|
|
11633
11635
|
onClick: (O) => {
|
|
11634
|
-
!v && f ?
|
|
11636
|
+
!v && f ? L(O) : x(null), w(!v);
|
|
11635
11637
|
},
|
|
11636
11638
|
style: Object.assign(
|
|
11637
11639
|
s ? {
|
|
@@ -11929,12 +11931,12 @@ const _f = ({
|
|
|
11929
11931
|
absoluteValidationText: k,
|
|
11930
11932
|
portalOn: T
|
|
11931
11933
|
}) => {
|
|
11932
|
-
const [P, E] = xe(!1), [
|
|
11934
|
+
const [P, E] = xe(!1), [L, S] = xe(""), [te, O] = xe(!1), [W, I] = xe(null), [X, ie] = xe(null), ue = et(null), z = et(null);
|
|
11933
11935
|
er(z, ue, () => {
|
|
11934
11936
|
E(!1), I(null);
|
|
11935
11937
|
});
|
|
11936
11938
|
const ee = t.filter(
|
|
11937
|
-
(q) => q.label.toLowerCase().includes(
|
|
11939
|
+
(q) => q.label.toLowerCase().includes(L.toLowerCase())
|
|
11938
11940
|
), ne = (q) => typeof q == "number" ? `${q}px` : String(q), ae = (q) => {
|
|
11939
11941
|
const { x: me, y: p, width: m } = q.target.getBoundingClientRect();
|
|
11940
11942
|
I({ x: me, y: p + 90 + window.scrollY }), ie(m);
|
|
@@ -11997,7 +11999,7 @@ const _f = ({
|
|
|
11997
11999
|
x && { border: "1px solid #EF302B" }
|
|
11998
12000
|
),
|
|
11999
12001
|
type: "text",
|
|
12000
|
-
value: te ?
|
|
12002
|
+
value: te ? L : d == null ? void 0 : d.label,
|
|
12001
12003
|
onChange: (q) => {
|
|
12002
12004
|
S(q.target.value), O(!0);
|
|
12003
12005
|
},
|
|
@@ -12094,7 +12096,7 @@ const Cf = ({
|
|
|
12094
12096
|
disabled: P,
|
|
12095
12097
|
portalOn: E
|
|
12096
12098
|
}) => {
|
|
12097
|
-
const [
|
|
12099
|
+
const [L, S] = xe(!1), [te, O] = xe(null), [W, I] = xe(null), X = et(null), ie = et(null), ue = (ee) => typeof ee == "number" ? `${ee}px` : String(ee);
|
|
12098
12100
|
er(ie, X, () => {
|
|
12099
12101
|
S(!1), O(null);
|
|
12100
12102
|
});
|
|
@@ -12147,9 +12149,9 @@ const Cf = ({
|
|
|
12147
12149
|
/* @__PURE__ */ h.jsxs(
|
|
12148
12150
|
"div",
|
|
12149
12151
|
{
|
|
12150
|
-
className:
|
|
12152
|
+
className: L ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
|
|
12151
12153
|
onClick: (ee) => {
|
|
12152
|
-
!
|
|
12154
|
+
!L && E ? z(ee) : O(null), S(!L);
|
|
12153
12155
|
},
|
|
12154
12156
|
style: Object.assign(
|
|
12155
12157
|
_ ? {
|
|
@@ -12330,33 +12332,34 @@ const Ef = ({
|
|
|
12330
12332
|
id: T = "u-react-table",
|
|
12331
12333
|
draggable: P,
|
|
12332
12334
|
resize: E,
|
|
12333
|
-
onDrop:
|
|
12335
|
+
onDrop: L,
|
|
12334
12336
|
maxHeight: S,
|
|
12335
12337
|
minHeight: te,
|
|
12336
12338
|
whereFindChecked: O = "",
|
|
12337
12339
|
filterEmptyLabel: W = "Не указано"
|
|
12338
12340
|
}) => {
|
|
12341
|
+
console.log("🚀 ~ data:", n);
|
|
12339
12342
|
const [I, X] = xe(
|
|
12340
12343
|
a.map((C) => C.width)
|
|
12341
12344
|
), [ie, ue] = xe(), [z, ee] = xe([]), [ne, ae] = xe(
|
|
12342
12345
|
a.filter((C) => C.hidden !== !0)
|
|
12343
|
-
), [q, me] = xe([]), [p, m] = xe([]), [y, g] = xe(), c = (C,
|
|
12346
|
+
), [q, me] = xe([]), [p, m] = xe([]), [y, g] = xe(), c = (C, F) => {
|
|
12344
12347
|
const R = [...I];
|
|
12345
|
-
R[C] =
|
|
12346
|
-
}, M = (C,
|
|
12348
|
+
R[C] = F, X(R);
|
|
12349
|
+
}, M = (C, F) => {
|
|
12347
12350
|
const R = C.clientX, N = (K) => {
|
|
12348
|
-
const ce = K.clientX - R, fe = I[
|
|
12349
|
-
c(
|
|
12351
|
+
const ce = K.clientX - R, fe = I[F] + ce;
|
|
12352
|
+
c(F, fe);
|
|
12350
12353
|
}, $ = () => {
|
|
12351
12354
|
document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", $);
|
|
12352
12355
|
};
|
|
12353
12356
|
document.addEventListener("mousemove", N), document.addEventListener("mouseup", $);
|
|
12354
12357
|
}, B = (C) => `${C}px`, U = (C) => {
|
|
12355
|
-
let
|
|
12358
|
+
let F = 0;
|
|
12356
12359
|
for (let R = C; R > 0; R--)
|
|
12357
|
-
|
|
12358
|
-
return
|
|
12359
|
-
},
|
|
12360
|
+
F = a[R - 1].width ? F + a[R - 1].width : F;
|
|
12361
|
+
return F;
|
|
12362
|
+
}, Y = "auto", H = (C) => {
|
|
12360
12363
|
switch (C) {
|
|
12361
12364
|
case "horizontal":
|
|
12362
12365
|
return "";
|
|
@@ -12369,42 +12372,44 @@ const Ef = ({
|
|
|
12369
12372
|
}
|
|
12370
12373
|
}, G = (C) => {
|
|
12371
12374
|
C.preventDefault();
|
|
12372
|
-
}, V = (C,
|
|
12373
|
-
C.dataTransfer.setData("index",
|
|
12374
|
-
}, Z = (C,
|
|
12375
|
-
(C, { id:
|
|
12375
|
+
}, V = (C, F) => {
|
|
12376
|
+
C.dataTransfer.setData("index", F);
|
|
12377
|
+
}, Z = (C, F) => L(C, F), A = q == null ? void 0 : q.reduce(
|
|
12378
|
+
(C, { id: F, item: R }) => (C[F] || (C[F] = /* @__PURE__ */ new Set()), C[F].add(R), C),
|
|
12376
12379
|
{}
|
|
12377
12380
|
);
|
|
12378
12381
|
Ue(() => {
|
|
12379
12382
|
const C = p.filter(
|
|
12380
|
-
(
|
|
12383
|
+
(F) => !(F.begin === null && F.end === null)
|
|
12381
12384
|
);
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
const
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
(
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12385
|
+
if (n) {
|
|
12386
|
+
let R = [...n == null ? void 0 : n.filter((N) => {
|
|
12387
|
+
const $ = O.length > 0 ? N[O] : N, K = q.length === 0 || Object.keys(A).every((ve) => {
|
|
12388
|
+
const ke = $[ve];
|
|
12389
|
+
return typeof ke == "object" && ke !== null && "title" in ke ? !A[ve].has(ke.title) : !A[ve].has(ke == null ? W : String(ke));
|
|
12390
|
+
}), ce = C.length === 0 || Object.keys($).some(
|
|
12391
|
+
(ve) => C.some(
|
|
12392
|
+
(ke) => ke.id === ve && J(
|
|
12393
|
+
$[ve],
|
|
12394
|
+
ke.type,
|
|
12395
|
+
ke.begin,
|
|
12396
|
+
ke.end
|
|
12397
|
+
)
|
|
12393
12398
|
)
|
|
12394
|
-
)
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
}
|
|
12399
|
+
), fe = C.some(
|
|
12400
|
+
(ve) => ve.type === "except" && !Object.keys($).includes(ve.id)
|
|
12401
|
+
);
|
|
12402
|
+
return K && (ce || fe);
|
|
12403
|
+
})];
|
|
12404
|
+
(y == null ? void 0 : y.asc) === void 0 || R.sort((N, $) => {
|
|
12405
|
+
const K = O.length > 0 ? N[O][y.column] : N[y.column], ce = O.length > 0 ? $[O][y.column] : $[y.column];
|
|
12406
|
+
return K == null ? y.asc ? -1 : 1 : ce == null ? y.asc ? 1 : -1 : K.toLowerCase() < ce.toLowerCase() ? y.asc ? -1 : 1 : K.toLowerCase() > ce.toLowerCase() ? y.asc ? 1 : -1 : 0;
|
|
12407
|
+
}), ee(R);
|
|
12408
|
+
}
|
|
12404
12409
|
}, [n, q, p, y]);
|
|
12405
|
-
const J = (C,
|
|
12410
|
+
const J = (C, F, R, N) => {
|
|
12406
12411
|
const $ = new Date(C);
|
|
12407
|
-
switch (
|
|
12412
|
+
switch (F) {
|
|
12408
12413
|
case "before":
|
|
12409
12414
|
return $ <= R;
|
|
12410
12415
|
case "after":
|
|
@@ -12429,7 +12434,7 @@ const Ef = ({
|
|
|
12429
12434
|
style: { maxHeight: S, minHeight: te },
|
|
12430
12435
|
children: /* @__PURE__ */ h.jsxs("table", { className: "table", children: [
|
|
12431
12436
|
/* @__PURE__ */ h.jsx("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ h.jsx("tr", { children: ne == null ? void 0 : ne.map(
|
|
12432
|
-
(C,
|
|
12437
|
+
(C, F) => C.filterOn ? /* @__PURE__ */ h.jsx(
|
|
12433
12438
|
ri,
|
|
12434
12439
|
{
|
|
12435
12440
|
columns: ne,
|
|
@@ -12439,8 +12444,8 @@ const Ef = ({
|
|
|
12439
12444
|
thStyle: l,
|
|
12440
12445
|
cellContentStyle: v,
|
|
12441
12446
|
thContentStyle: f,
|
|
12442
|
-
index:
|
|
12443
|
-
isEnd: a.length ===
|
|
12447
|
+
index: F,
|
|
12448
|
+
isEnd: a.length === F + 1 || a.length - 1 === F + 1,
|
|
12444
12449
|
selected: ie,
|
|
12445
12450
|
setSelected: ue,
|
|
12446
12451
|
options: n.map((R) => R[C.field]),
|
|
@@ -12453,17 +12458,17 @@ const Ef = ({
|
|
|
12453
12458
|
filterEmptyLabel: W,
|
|
12454
12459
|
sort: y,
|
|
12455
12460
|
setSort: g,
|
|
12456
|
-
onMouseDown: (R) => E && M(R,
|
|
12461
|
+
onMouseDown: (R) => E && M(R, F),
|
|
12457
12462
|
resize: E
|
|
12458
12463
|
}
|
|
12459
12464
|
) : /* @__PURE__ */ h.jsxs(
|
|
12460
12465
|
"th",
|
|
12461
12466
|
{
|
|
12462
|
-
id: `${T}th${
|
|
12467
|
+
id: `${T}th${F}`,
|
|
12463
12468
|
className: `${C.sticky ? "sticky" : ""} ${E ? "resize" : ""}`,
|
|
12464
12469
|
style: Object.assign(
|
|
12465
12470
|
{
|
|
12466
|
-
left: C.sticky ? U(
|
|
12471
|
+
left: C.sticky ? U(F) : "",
|
|
12467
12472
|
padding: 0,
|
|
12468
12473
|
cursor: E ? "col-resize" : ""
|
|
12469
12474
|
},
|
|
@@ -12473,7 +12478,7 @@ const Ef = ({
|
|
|
12473
12478
|
C.cellStyle
|
|
12474
12479
|
),
|
|
12475
12480
|
onMouseDown: (R) => {
|
|
12476
|
-
E && M(R,
|
|
12481
|
+
E && M(R, F);
|
|
12477
12482
|
},
|
|
12478
12483
|
children: [
|
|
12479
12484
|
/* @__PURE__ */ h.jsx(
|
|
@@ -12482,7 +12487,7 @@ const Ef = ({
|
|
|
12482
12487
|
className: "u-table-th-content",
|
|
12483
12488
|
style: Object.assign(
|
|
12484
12489
|
{
|
|
12485
|
-
width: E && I[
|
|
12490
|
+
width: E && I[F] >= (C == null ? void 0 : C.width) ? I[F] : C != null && C.width ? B(C.width) : Y,
|
|
12486
12491
|
minWidth: E && C.width ? B(C.width) : "",
|
|
12487
12492
|
position: C.sticky ? "sticky" : ""
|
|
12488
12493
|
},
|
|
@@ -12507,27 +12512,27 @@ const Ef = ({
|
|
|
12507
12512
|
zIndex: 1
|
|
12508
12513
|
},
|
|
12509
12514
|
onMouseDown: (R) => {
|
|
12510
|
-
E && M(R,
|
|
12515
|
+
E && M(R, F);
|
|
12511
12516
|
}
|
|
12512
12517
|
}
|
|
12513
12518
|
)
|
|
12514
12519
|
]
|
|
12515
12520
|
},
|
|
12516
|
-
|
|
12521
|
+
F
|
|
12517
12522
|
)
|
|
12518
12523
|
) }) }),
|
|
12519
|
-
/* @__PURE__ */ h.jsx("tbody", { children: z == null ? void 0 : z.map((C,
|
|
12524
|
+
/* @__PURE__ */ h.jsx("tbody", { children: z == null ? void 0 : z.map((C, F) => /* @__PURE__ */ h.jsx(
|
|
12520
12525
|
"tr",
|
|
12521
12526
|
{
|
|
12522
|
-
id: `row${
|
|
12527
|
+
id: `row${F}`,
|
|
12523
12528
|
draggable: P,
|
|
12524
|
-
onDragStart: (R) => V(R, String(
|
|
12529
|
+
onDragStart: (R) => V(R, String(F)),
|
|
12525
12530
|
onDragOver: (R) => G(R),
|
|
12526
|
-
onDrop: (R) => Z(R,
|
|
12531
|
+
onDrop: (R) => Z(R, F),
|
|
12527
12532
|
children: ne == null ? void 0 : ne.map((R, N) => /* @__PURE__ */ h.jsx(
|
|
12528
12533
|
"td",
|
|
12529
12534
|
{
|
|
12530
|
-
id: `${T}td${
|
|
12535
|
+
id: `${T}td${F}${N}`,
|
|
12531
12536
|
className: `${R.sticky ? "sticky" : ""}`,
|
|
12532
12537
|
style: Object.assign(
|
|
12533
12538
|
{
|
|
@@ -12546,7 +12551,7 @@ const Ef = ({
|
|
|
12546
12551
|
{
|
|
12547
12552
|
style: Object.assign(
|
|
12548
12553
|
{
|
|
12549
|
-
width: E && I[N] >= (R == null ? void 0 : R.width) ? I[N] : R != null && R.width ? B(R.width) :
|
|
12554
|
+
width: E && I[N] >= (R == null ? void 0 : R.width) ? I[N] : R != null && R.width ? B(R.width) : Y,
|
|
12550
12555
|
minWidth: E && R.width ? B(R.width) : "",
|
|
12551
12556
|
position: R.sticky ? "sticky" : ""
|
|
12552
12557
|
},
|
|
@@ -12557,14 +12562,14 @@ const Ef = ({
|
|
|
12557
12562
|
k && k(C),
|
|
12558
12563
|
R.tdContentStyleFunction && R.tdContentStyleFunction(C)
|
|
12559
12564
|
),
|
|
12560
|
-
children: R.render ? R.render(C,
|
|
12565
|
+
children: R.render ? R.render(C, F) : C[R.field]
|
|
12561
12566
|
}
|
|
12562
12567
|
)
|
|
12563
12568
|
},
|
|
12564
12569
|
R.key ? R.key : R.field ? R.field : N
|
|
12565
12570
|
))
|
|
12566
12571
|
},
|
|
12567
|
-
|
|
12572
|
+
F
|
|
12568
12573
|
)) })
|
|
12569
12574
|
] })
|
|
12570
12575
|
}
|
|
@@ -12721,7 +12726,7 @@ const Tf = ({
|
|
|
12721
12726
|
data: T,
|
|
12722
12727
|
portalOn: P,
|
|
12723
12728
|
id: E,
|
|
12724
|
-
disabled:
|
|
12729
|
+
disabled: L
|
|
12725
12730
|
}) => {
|
|
12726
12731
|
const [S, te] = xe(null), [O, W] = xe([]), [I, X] = xe(!1), ie = et(null), ue = et(null);
|
|
12727
12732
|
er(ue, ie, () => {
|
|
@@ -12785,7 +12790,7 @@ const Tf = ({
|
|
|
12785
12790
|
/* @__PURE__ */ h.jsxs(
|
|
12786
12791
|
"div",
|
|
12787
12792
|
{
|
|
12788
|
-
className: `u-selectbox${
|
|
12793
|
+
className: `u-selectbox${L ? " u-selectbox-disabled" : ""} u-react-tree-view`,
|
|
12789
12794
|
onBlur: () => !P && X(!1),
|
|
12790
12795
|
ref: ie,
|
|
12791
12796
|
tabIndex: 0,
|