urfu-ui-kit-react 0.0.74 → 0.0.75
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 +542 -542
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ function qi() {
|
|
|
52
52
|
var Z = D && w[D] || w[k];
|
|
53
53
|
return typeof Z == "function" ? Z : null;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
55
|
+
var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
56
|
function M(w) {
|
|
57
57
|
{
|
|
58
58
|
for (var Z = arguments.length, le = new Array(Z > 1 ? Z - 1 : 0), ge = 1; ge < Z; ge++)
|
|
@@ -62,7 +62,7 @@ function qi() {
|
|
|
62
62
|
}
|
|
63
63
|
function O(w, Z, le) {
|
|
64
64
|
{
|
|
65
|
-
var ge =
|
|
65
|
+
var ge = S.ReactDebugCurrentFrame, Ce = ge.getStackAddendum();
|
|
66
66
|
Ce !== "" && (Z += "%s", le = le.concat([Ce]));
|
|
67
67
|
var je = le.map(function(xe) {
|
|
68
68
|
return String(xe);
|
|
@@ -70,10 +70,10 @@ function qi() {
|
|
|
70
70
|
je.unshift("Warning: " + Z), Function.prototype.apply.call(console[w], console, je);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var R = !1, E = !1, U = !1, q = !1, P = !1, W;
|
|
74
74
|
W = Symbol.for("react.module.reference");
|
|
75
75
|
function z(w) {
|
|
76
|
-
return !!(typeof w == "string" || typeof w == "function" || w === e || w === o || P || w === r || w === u || w === d || q || w === y ||
|
|
76
|
+
return !!(typeof w == "string" || typeof w == "function" || w === e || w === o || P || w === r || w === u || w === d || q || w === y || R || E || U || typeof w == "object" && w !== null && (w.$$typeof === v || w.$$typeof === f || w.$$typeof === i || w.$$typeof === s || w.$$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.
|
|
@@ -138,7 +138,7 @@ function qi() {
|
|
|
138
138
|
function c() {
|
|
139
139
|
}
|
|
140
140
|
c.__reactDisabledLog = !0;
|
|
141
|
-
function
|
|
141
|
+
function C() {
|
|
142
142
|
{
|
|
143
143
|
if (oe === 0) {
|
|
144
144
|
A = console.log, T = console.info, $ = console.warn, m = console.error, h = console.group, b = console.groupCollapsed, g = console.groupEnd;
|
|
@@ -196,18 +196,18 @@ function qi() {
|
|
|
196
196
|
oe < 0 && M("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var B =
|
|
199
|
+
var B = S.ReactCurrentDispatcher, j;
|
|
200
200
|
function L(w, Z, le) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (j === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
205
|
} catch (Ce) {
|
|
206
206
|
var ge = Ce.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
-
|
|
207
|
+
j = ge && ge[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + j + w;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
var V = !1, Q;
|
|
@@ -215,7 +215,7 @@ function qi() {
|
|
|
215
215
|
var ee = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
216
|
Q = new ee();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function I(w, Z) {
|
|
219
219
|
if (!w || V)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
@@ -228,7 +228,7 @@ function qi() {
|
|
|
228
228
|
var Ce = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
230
|
var je;
|
|
231
|
-
je = B.current, B.current = null,
|
|
231
|
+
je = B.current, B.current = null, C();
|
|
232
232
|
try {
|
|
233
233
|
if (Z) {
|
|
234
234
|
var xe = function() {
|
|
@@ -287,7 +287,7 @@ function qi() {
|
|
|
287
287
|
return typeof w == "function" && Q.set(w, Vt), Vt;
|
|
288
288
|
}
|
|
289
289
|
function J(w, Z, le) {
|
|
290
|
-
return
|
|
290
|
+
return I(w, !1);
|
|
291
291
|
}
|
|
292
292
|
function G(w) {
|
|
293
293
|
var Z = w.prototype;
|
|
@@ -297,7 +297,7 @@ function qi() {
|
|
|
297
297
|
if (w == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof w == "function")
|
|
300
|
-
return
|
|
300
|
+
return I(w, G(w));
|
|
301
301
|
if (typeof w == "string")
|
|
302
302
|
return L(w);
|
|
303
303
|
switch (w) {
|
|
@@ -322,7 +322,7 @@ function qi() {
|
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var Y = Object.prototype.hasOwnProperty, H = {}, ne =
|
|
325
|
+
var Y = Object.prototype.hasOwnProperty, H = {}, ne = S.ReactDebugCurrentFrame;
|
|
326
326
|
function ce(w) {
|
|
327
327
|
if (w) {
|
|
328
328
|
var Z = w._owner, le = ae(w.type, w._source, Z ? Z.type : null);
|
|
@@ -373,7 +373,7 @@ function qi() {
|
|
|
373
373
|
if (ot(w))
|
|
374
374
|
return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(w)), it(w);
|
|
375
375
|
}
|
|
376
|
-
var yt =
|
|
376
|
+
var yt = S.ReactCurrentOwner, Ln = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
@@ -471,7 +471,7 @@ function qi() {
|
|
|
471
471
|
return Re(w, be, tt, Ce, ge, yt.current, xe);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var Ye =
|
|
474
|
+
var Ye = S.ReactCurrentOwner, lt = S.ReactDebugCurrentFrame;
|
|
475
475
|
function Ve(w) {
|
|
476
476
|
if (w) {
|
|
477
477
|
var Z = w._owner, le = ae(w.type, w._source, Z ? Z.type : null);
|
|
@@ -650,28 +650,28 @@ var Ma;
|
|
|
650
650
|
function Vi() {
|
|
651
651
|
if (Ma) return Se;
|
|
652
652
|
Ma = 1;
|
|
653
|
-
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, v = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, D = n ? Symbol.for("react.lazy") : 60116, k = n ? Symbol.for("react.block") : 60121, _ = n ? Symbol.for("react.fundamental") : 60117,
|
|
654
|
-
function O(
|
|
655
|
-
if (typeof
|
|
656
|
-
var U =
|
|
653
|
+
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, v = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, D = n ? Symbol.for("react.lazy") : 60116, k = n ? Symbol.for("react.block") : 60121, _ = n ? Symbol.for("react.fundamental") : 60117, S = n ? Symbol.for("react.responder") : 60118, M = n ? Symbol.for("react.scope") : 60119;
|
|
654
|
+
function O(E) {
|
|
655
|
+
if (typeof E == "object" && E !== null) {
|
|
656
|
+
var U = E.$$typeof;
|
|
657
657
|
switch (U) {
|
|
658
658
|
case a:
|
|
659
|
-
switch (
|
|
659
|
+
switch (E = E.type, E) {
|
|
660
660
|
case l:
|
|
661
661
|
case u:
|
|
662
662
|
case e:
|
|
663
663
|
case o:
|
|
664
664
|
case r:
|
|
665
665
|
case f:
|
|
666
|
-
return
|
|
666
|
+
return E;
|
|
667
667
|
default:
|
|
668
|
-
switch (
|
|
668
|
+
switch (E = E && E.$$typeof, E) {
|
|
669
669
|
case s:
|
|
670
670
|
case d:
|
|
671
671
|
case D:
|
|
672
672
|
case y:
|
|
673
673
|
case i:
|
|
674
|
-
return
|
|
674
|
+
return E;
|
|
675
675
|
default:
|
|
676
676
|
return U;
|
|
677
677
|
}
|
|
@@ -681,35 +681,35 @@ function Vi() {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return O(
|
|
686
|
-
}
|
|
687
|
-
return Se.AsyncMode = l, Se.ConcurrentMode = u, Se.ContextConsumer = s, Se.ContextProvider = i, Se.Element = a, Se.ForwardRef = d, Se.Fragment = e, Se.Lazy = D, Se.Memo = y, Se.Portal = t, Se.Profiler = o, Se.StrictMode = r, Se.Suspense = f, Se.isAsyncMode = function(
|
|
688
|
-
return
|
|
689
|
-
}, Se.isConcurrentMode =
|
|
690
|
-
return O(
|
|
691
|
-
}, Se.isContextProvider = function(
|
|
692
|
-
return O(
|
|
693
|
-
}, Se.isElement = function(
|
|
694
|
-
return typeof
|
|
695
|
-
}, Se.isForwardRef = function(
|
|
696
|
-
return O(
|
|
697
|
-
}, Se.isFragment = function(
|
|
698
|
-
return O(
|
|
699
|
-
}, Se.isLazy = function(
|
|
700
|
-
return O(
|
|
701
|
-
}, Se.isMemo = function(
|
|
702
|
-
return O(
|
|
703
|
-
}, Se.isPortal = function(
|
|
704
|
-
return O(
|
|
705
|
-
}, Se.isProfiler = function(
|
|
706
|
-
return O(
|
|
707
|
-
}, Se.isStrictMode = function(
|
|
708
|
-
return O(
|
|
709
|
-
}, Se.isSuspense = function(
|
|
710
|
-
return O(
|
|
711
|
-
}, Se.isValidElementType = function(
|
|
712
|
-
return typeof
|
|
684
|
+
function R(E) {
|
|
685
|
+
return O(E) === u;
|
|
686
|
+
}
|
|
687
|
+
return Se.AsyncMode = l, Se.ConcurrentMode = u, Se.ContextConsumer = s, Se.ContextProvider = i, Se.Element = a, Se.ForwardRef = d, Se.Fragment = e, Se.Lazy = D, Se.Memo = y, Se.Portal = t, Se.Profiler = o, Se.StrictMode = r, Se.Suspense = f, Se.isAsyncMode = function(E) {
|
|
688
|
+
return R(E) || O(E) === l;
|
|
689
|
+
}, Se.isConcurrentMode = R, Se.isContextConsumer = function(E) {
|
|
690
|
+
return O(E) === s;
|
|
691
|
+
}, Se.isContextProvider = function(E) {
|
|
692
|
+
return O(E) === i;
|
|
693
|
+
}, Se.isElement = function(E) {
|
|
694
|
+
return typeof E == "object" && E !== null && E.$$typeof === a;
|
|
695
|
+
}, Se.isForwardRef = function(E) {
|
|
696
|
+
return O(E) === d;
|
|
697
|
+
}, Se.isFragment = function(E) {
|
|
698
|
+
return O(E) === e;
|
|
699
|
+
}, Se.isLazy = function(E) {
|
|
700
|
+
return O(E) === D;
|
|
701
|
+
}, Se.isMemo = function(E) {
|
|
702
|
+
return O(E) === y;
|
|
703
|
+
}, Se.isPortal = function(E) {
|
|
704
|
+
return O(E) === t;
|
|
705
|
+
}, Se.isProfiler = function(E) {
|
|
706
|
+
return O(E) === o;
|
|
707
|
+
}, Se.isStrictMode = function(E) {
|
|
708
|
+
return O(E) === r;
|
|
709
|
+
}, Se.isSuspense = function(E) {
|
|
710
|
+
return O(E) === f;
|
|
711
|
+
}, Se.isValidElementType = function(E) {
|
|
712
|
+
return typeof E == "string" || typeof E == "function" || E === e || E === u || E === o || E === r || E === f || E === v || typeof E == "object" && E !== null && (E.$$typeof === D || E.$$typeof === y || E.$$typeof === i || E.$$typeof === s || E.$$typeof === d || E.$$typeof === _ || E.$$typeof === S || E.$$typeof === M || E.$$typeof === k);
|
|
713
713
|
}, Se.typeOf = O, Se;
|
|
714
714
|
}
|
|
715
715
|
var Ee = {};
|
|
@@ -724,17 +724,17 @@ var Ee = {};
|
|
|
724
724
|
var Oa;
|
|
725
725
|
function Gi() {
|
|
726
726
|
return Oa || (Oa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
727
|
-
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, v = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, D = n ? Symbol.for("react.lazy") : 60116, k = n ? Symbol.for("react.block") : 60121, _ = n ? Symbol.for("react.fundamental") : 60117,
|
|
728
|
-
function O(
|
|
729
|
-
return typeof
|
|
730
|
-
|
|
731
|
-
}
|
|
732
|
-
function I
|
|
733
|
-
if (typeof
|
|
734
|
-
var J =
|
|
727
|
+
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, v = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, D = n ? Symbol.for("react.lazy") : 60116, k = n ? Symbol.for("react.block") : 60121, _ = n ? Symbol.for("react.fundamental") : 60117, S = n ? Symbol.for("react.responder") : 60118, M = n ? Symbol.for("react.scope") : 60119;
|
|
728
|
+
function O(I) {
|
|
729
|
+
return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
730
|
+
I === e || I === u || I === o || I === r || I === f || I === v || typeof I == "object" && I !== null && (I.$$typeof === D || I.$$typeof === y || I.$$typeof === i || I.$$typeof === s || I.$$typeof === d || I.$$typeof === _ || I.$$typeof === S || I.$$typeof === M || I.$$typeof === k);
|
|
731
|
+
}
|
|
732
|
+
function R(I) {
|
|
733
|
+
if (typeof I == "object" && I !== null) {
|
|
734
|
+
var J = I.$$typeof;
|
|
735
735
|
switch (J) {
|
|
736
736
|
case a:
|
|
737
|
-
var G =
|
|
737
|
+
var G = I.type;
|
|
738
738
|
switch (G) {
|
|
739
739
|
case l:
|
|
740
740
|
case u:
|
|
@@ -761,47 +761,47 @@ function Gi() {
|
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
var
|
|
765
|
-
function m(
|
|
766
|
-
return $ || ($ = !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.")), h(
|
|
764
|
+
var E = l, U = u, q = s, P = i, W = a, z = d, re = e, ie = D, X = y, te = t, oe = o, A = r, T = f, $ = !1;
|
|
765
|
+
function m(I) {
|
|
766
|
+
return $ || ($ = !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.")), h(I) || R(I) === l;
|
|
767
767
|
}
|
|
768
|
-
function h(
|
|
769
|
-
return I
|
|
768
|
+
function h(I) {
|
|
769
|
+
return R(I) === u;
|
|
770
770
|
}
|
|
771
|
-
function b(
|
|
772
|
-
return I
|
|
771
|
+
function b(I) {
|
|
772
|
+
return R(I) === s;
|
|
773
773
|
}
|
|
774
|
-
function g(
|
|
775
|
-
return I
|
|
774
|
+
function g(I) {
|
|
775
|
+
return R(I) === i;
|
|
776
776
|
}
|
|
777
|
-
function c(
|
|
778
|
-
return typeof
|
|
777
|
+
function c(I) {
|
|
778
|
+
return typeof I == "object" && I !== null && I.$$typeof === a;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return I
|
|
780
|
+
function C(I) {
|
|
781
|
+
return R(I) === d;
|
|
782
782
|
}
|
|
783
|
-
function N(
|
|
784
|
-
return I
|
|
783
|
+
function N(I) {
|
|
784
|
+
return R(I) === e;
|
|
785
785
|
}
|
|
786
|
-
function B(
|
|
787
|
-
return I
|
|
786
|
+
function B(I) {
|
|
787
|
+
return R(I) === D;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
return I
|
|
789
|
+
function j(I) {
|
|
790
|
+
return R(I) === y;
|
|
791
791
|
}
|
|
792
|
-
function L(
|
|
793
|
-
return I
|
|
792
|
+
function L(I) {
|
|
793
|
+
return R(I) === t;
|
|
794
794
|
}
|
|
795
|
-
function V(
|
|
796
|
-
return I
|
|
795
|
+
function V(I) {
|
|
796
|
+
return R(I) === o;
|
|
797
797
|
}
|
|
798
|
-
function Q(
|
|
799
|
-
return I
|
|
798
|
+
function Q(I) {
|
|
799
|
+
return R(I) === r;
|
|
800
800
|
}
|
|
801
|
-
function ee(
|
|
802
|
-
return I
|
|
801
|
+
function ee(I) {
|
|
802
|
+
return R(I) === f;
|
|
803
803
|
}
|
|
804
|
-
Ee.AsyncMode =
|
|
804
|
+
Ee.AsyncMode = E, Ee.ConcurrentMode = U, Ee.ContextConsumer = q, Ee.ContextProvider = P, Ee.Element = W, Ee.ForwardRef = z, Ee.Fragment = re, Ee.Lazy = ie, Ee.Memo = X, Ee.Portal = te, Ee.Profiler = oe, Ee.StrictMode = A, Ee.Suspense = T, Ee.isAsyncMode = m, Ee.isConcurrentMode = h, Ee.isContextConsumer = b, Ee.isContextProvider = g, Ee.isElement = c, Ee.isForwardRef = C, Ee.isFragment = N, Ee.isLazy = B, Ee.isMemo = j, Ee.isPortal = L, Ee.isProfiler = V, Ee.isStrictMode = Q, Ee.isSuspense = ee, Ee.isValidElementType = O, Ee.typeOf = R;
|
|
805
805
|
}()), Ee;
|
|
806
806
|
}
|
|
807
807
|
var Ta;
|
|
@@ -944,18 +944,18 @@ function zi() {
|
|
|
944
944
|
return b;
|
|
945
945
|
}
|
|
946
946
|
var v = "<<anonymous>>", y = {
|
|
947
|
-
array:
|
|
948
|
-
bigint:
|
|
949
|
-
bool:
|
|
950
|
-
func:
|
|
951
|
-
number:
|
|
952
|
-
object:
|
|
953
|
-
string:
|
|
954
|
-
symbol:
|
|
947
|
+
array: S("array"),
|
|
948
|
+
bigint: S("bigint"),
|
|
949
|
+
bool: S("boolean"),
|
|
950
|
+
func: S("function"),
|
|
951
|
+
number: S("number"),
|
|
952
|
+
object: S("object"),
|
|
953
|
+
string: S("string"),
|
|
954
|
+
symbol: S("symbol"),
|
|
955
955
|
any: M(),
|
|
956
956
|
arrayOf: O,
|
|
957
|
-
element:
|
|
958
|
-
elementType:
|
|
957
|
+
element: R(),
|
|
958
|
+
elementType: E(),
|
|
959
959
|
instanceOf: U,
|
|
960
960
|
node: z(),
|
|
961
961
|
objectOf: P,
|
|
@@ -974,33 +974,33 @@ function zi() {
|
|
|
974
974
|
function _(h) {
|
|
975
975
|
if (process.env.NODE_ENV !== "production")
|
|
976
976
|
var b = {}, g = 0;
|
|
977
|
-
function c(N, B,
|
|
978
|
-
if (L = L || v, Q = Q ||
|
|
977
|
+
function c(N, B, j, L, V, Q, ee) {
|
|
978
|
+
if (L = L || v, Q = Q || j, ee !== t) {
|
|
979
979
|
if (l) {
|
|
980
|
-
var
|
|
980
|
+
var I = 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
|
-
throw
|
|
983
|
+
throw I.name = "Invariant Violation", I;
|
|
984
984
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
985
|
-
var J = L + ":" +
|
|
985
|
+
var J = L + ":" + j;
|
|
986
986
|
!b[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 `" + Q + "` prop on `" + L + "`. 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
|
), b[J] = !0, g++);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
return B[
|
|
992
|
+
return B[j] == null ? N ? B[j] === null ? new k("The " + V + " `" + Q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new k("The " + V + " `" + Q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : h(B, j, L, V, Q);
|
|
993
993
|
}
|
|
994
|
-
var
|
|
995
|
-
return
|
|
994
|
+
var C = c.bind(null, !1);
|
|
995
|
+
return C.isRequired = c.bind(null, !0), C;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
function b(g, c,
|
|
997
|
+
function S(h) {
|
|
998
|
+
function b(g, c, C, N, B, j) {
|
|
999
999
|
var L = g[c], V = A(L);
|
|
1000
1000
|
if (V !== h) {
|
|
1001
1001
|
var Q = T(L);
|
|
1002
1002
|
return new k(
|
|
1003
|
-
"Invalid " + N + " `" + B + "` of type " + ("`" + Q + "` supplied to `" +
|
|
1003
|
+
"Invalid " + N + " `" + B + "` of type " + ("`" + Q + "` supplied to `" + C + "`, expected ") + ("`" + h + "`."),
|
|
1004
1004
|
{ expectedType: h }
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
@@ -1012,16 +1012,16 @@ function zi() {
|
|
|
1012
1012
|
return _(i);
|
|
1013
1013
|
}
|
|
1014
1014
|
function O(h) {
|
|
1015
|
-
function b(g, c,
|
|
1015
|
+
function b(g, c, C, N, B) {
|
|
1016
1016
|
if (typeof h != "function")
|
|
1017
|
-
return new k("Property `" + B + "` of component `" +
|
|
1018
|
-
var
|
|
1019
|
-
if (!Array.isArray(
|
|
1020
|
-
var L = A(
|
|
1021
|
-
return new k("Invalid " + N + " `" + B + "` of type " + ("`" + L + "` supplied to `" +
|
|
1017
|
+
return new k("Property `" + B + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
1018
|
+
var j = g[c];
|
|
1019
|
+
if (!Array.isArray(j)) {
|
|
1020
|
+
var L = A(j);
|
|
1021
|
+
return new k("Invalid " + N + " `" + B + "` of type " + ("`" + L + "` supplied to `" + C + "`, expected an array."));
|
|
1022
1022
|
}
|
|
1023
|
-
for (var V = 0; V <
|
|
1024
|
-
var Q = h(
|
|
1023
|
+
for (var V = 0; V < j.length; V++) {
|
|
1024
|
+
var Q = h(j, V, C, N, B + "[" + V + "]", t);
|
|
1025
1025
|
if (Q instanceof Error)
|
|
1026
1026
|
return Q;
|
|
1027
1027
|
}
|
|
@@ -1029,33 +1029,33 @@ function zi() {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
return _(b);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
function h(b, g, c,
|
|
1032
|
+
function R() {
|
|
1033
|
+
function h(b, g, c, C, N) {
|
|
1034
1034
|
var B = b[g];
|
|
1035
1035
|
if (!s(B)) {
|
|
1036
|
-
var
|
|
1037
|
-
return new k("Invalid " +
|
|
1036
|
+
var j = A(B);
|
|
1037
|
+
return new k("Invalid " + C + " `" + N + "` of type " + ("`" + j + "` supplied to `" + c + "`, expected a single ReactElement."));
|
|
1038
1038
|
}
|
|
1039
1039
|
return null;
|
|
1040
1040
|
}
|
|
1041
1041
|
return _(h);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
function h(b, g, c,
|
|
1043
|
+
function E() {
|
|
1044
|
+
function h(b, g, c, C, N) {
|
|
1045
1045
|
var B = b[g];
|
|
1046
1046
|
if (!n.isValidElementType(B)) {
|
|
1047
|
-
var
|
|
1048
|
-
return new k("Invalid " +
|
|
1047
|
+
var j = A(B);
|
|
1048
|
+
return new k("Invalid " + C + " `" + N + "` of type " + ("`" + j + "` supplied to `" + c + "`, expected a single ReactElement type."));
|
|
1049
1049
|
}
|
|
1050
1050
|
return null;
|
|
1051
1051
|
}
|
|
1052
1052
|
return _(h);
|
|
1053
1053
|
}
|
|
1054
1054
|
function U(h) {
|
|
1055
|
-
function b(g, c,
|
|
1055
|
+
function b(g, c, C, N, B) {
|
|
1056
1056
|
if (!(g[c] instanceof h)) {
|
|
1057
|
-
var
|
|
1058
|
-
return new k("Invalid " + N + " `" + B + "` of type " + ("`" + L + "` supplied to `" +
|
|
1057
|
+
var j = h.name || v, L = m(g[c]);
|
|
1058
|
+
return new k("Invalid " + N + " `" + B + "` of type " + ("`" + L + "` supplied to `" + C + "`, expected ") + ("instance of `" + j + "`."));
|
|
1059
1059
|
}
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
@@ -1066,28 +1066,28 @@ function zi() {
|
|
|
1066
1066
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
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
|
-
function b(g, c,
|
|
1070
|
-
for (var
|
|
1071
|
-
if (D(
|
|
1069
|
+
function b(g, c, C, N, B) {
|
|
1070
|
+
for (var j = g[c], L = 0; L < h.length; L++)
|
|
1071
|
+
if (D(j, h[L]))
|
|
1072
1072
|
return null;
|
|
1073
|
-
var V = JSON.stringify(h, function(ee,
|
|
1074
|
-
var J = T(
|
|
1075
|
-
return J === "symbol" ? String(
|
|
1073
|
+
var V = JSON.stringify(h, function(ee, I) {
|
|
1074
|
+
var J = T(I);
|
|
1075
|
+
return J === "symbol" ? String(I) : I;
|
|
1076
1076
|
});
|
|
1077
|
-
return new k("Invalid " + N + " `" + B + "` of value `" + String(
|
|
1077
|
+
return new k("Invalid " + N + " `" + B + "` of value `" + String(j) + "` " + ("supplied to `" + C + "`, expected one of " + V + "."));
|
|
1078
1078
|
}
|
|
1079
1079
|
return _(b);
|
|
1080
1080
|
}
|
|
1081
1081
|
function P(h) {
|
|
1082
|
-
function b(g, c,
|
|
1082
|
+
function b(g, c, C, N, B) {
|
|
1083
1083
|
if (typeof h != "function")
|
|
1084
|
-
return new k("Property `" + B + "` of component `" +
|
|
1085
|
-
var
|
|
1084
|
+
return new k("Property `" + B + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
1085
|
+
var j = g[c], L = A(j);
|
|
1086
1086
|
if (L !== "object")
|
|
1087
|
-
return new k("Invalid " + N + " `" + B + "` of type " + ("`" + L + "` supplied to `" +
|
|
1088
|
-
for (var V in
|
|
1089
|
-
if (e(
|
|
1090
|
-
var Q = h(
|
|
1087
|
+
return new k("Invalid " + N + " `" + B + "` of type " + ("`" + L + "` supplied to `" + C + "`, expected an object."));
|
|
1088
|
+
for (var V in j)
|
|
1089
|
+
if (e(j, V)) {
|
|
1090
|
+
var Q = h(j, V, C, N, B + "." + V, t);
|
|
1091
1091
|
if (Q instanceof Error)
|
|
1092
1092
|
return Q;
|
|
1093
1093
|
}
|
|
@@ -1105,39 +1105,39 @@ function zi() {
|
|
|
1105
1105
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(g) + " at index " + b + "."
|
|
1106
1106
|
), i;
|
|
1107
1107
|
}
|
|
1108
|
-
function c(
|
|
1108
|
+
function c(C, N, B, j, L) {
|
|
1109
1109
|
for (var V = [], Q = 0; Q < h.length; Q++) {
|
|
1110
|
-
var ee = h[Q],
|
|
1111
|
-
if (
|
|
1110
|
+
var ee = h[Q], I = ee(C, N, B, j, L, t);
|
|
1111
|
+
if (I == null)
|
|
1112
1112
|
return null;
|
|
1113
|
-
|
|
1113
|
+
I.data && e(I.data, "expectedType") && V.push(I.data.expectedType);
|
|
1114
1114
|
}
|
|
1115
1115
|
var J = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
|
|
1116
|
-
return new k("Invalid " +
|
|
1116
|
+
return new k("Invalid " + j + " `" + L + "` supplied to " + ("`" + B + "`" + J + "."));
|
|
1117
1117
|
}
|
|
1118
1118
|
return _(c);
|
|
1119
1119
|
}
|
|
1120
1120
|
function z() {
|
|
1121
|
-
function h(b, g, c,
|
|
1122
|
-
return te(b[g]) ? null : new k("Invalid " +
|
|
1121
|
+
function h(b, g, c, C, N) {
|
|
1122
|
+
return te(b[g]) ? null : new k("Invalid " + C + " `" + N + "` supplied to " + ("`" + c + "`, expected a ReactNode."));
|
|
1123
1123
|
}
|
|
1124
1124
|
return _(h);
|
|
1125
1125
|
}
|
|
1126
|
-
function re(h, b, g, c,
|
|
1126
|
+
function re(h, b, g, c, C) {
|
|
1127
1127
|
return new k(
|
|
1128
|
-
(h || "React class") + ": " + b + " type `" + g + "." + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1128
|
+
(h || "React class") + ": " + b + " type `" + g + "." + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
1129
1129
|
);
|
|
1130
1130
|
}
|
|
1131
1131
|
function ie(h) {
|
|
1132
|
-
function b(g, c,
|
|
1133
|
-
var
|
|
1132
|
+
function b(g, c, C, N, B) {
|
|
1133
|
+
var j = g[c], L = A(j);
|
|
1134
1134
|
if (L !== "object")
|
|
1135
|
-
return new k("Invalid " + N + " `" + B + "` of type `" + L + "` " + ("supplied to `" +
|
|
1135
|
+
return new k("Invalid " + N + " `" + B + "` of type `" + L + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
1136
1136
|
for (var V in h) {
|
|
1137
1137
|
var Q = h[V];
|
|
1138
1138
|
if (typeof Q != "function")
|
|
1139
|
-
return re(
|
|
1140
|
-
var ee = Q(
|
|
1139
|
+
return re(C, N, B, V, T(Q));
|
|
1140
|
+
var ee = Q(j, V, C, N, B + "." + V, t);
|
|
1141
1141
|
if (ee)
|
|
1142
1142
|
return ee;
|
|
1143
1143
|
}
|
|
@@ -1146,23 +1146,23 @@ function zi() {
|
|
|
1146
1146
|
return _(b);
|
|
1147
1147
|
}
|
|
1148
1148
|
function X(h) {
|
|
1149
|
-
function b(g, c,
|
|
1150
|
-
var
|
|
1149
|
+
function b(g, c, C, N, B) {
|
|
1150
|
+
var j = g[c], L = A(j);
|
|
1151
1151
|
if (L !== "object")
|
|
1152
|
-
return new k("Invalid " + N + " `" + B + "` of type `" + L + "` " + ("supplied to `" +
|
|
1152
|
+
return new k("Invalid " + N + " `" + B + "` of type `" + L + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
1153
1153
|
var V = a({}, g[c], h);
|
|
1154
1154
|
for (var Q in V) {
|
|
1155
1155
|
var ee = h[Q];
|
|
1156
1156
|
if (e(h, Q) && typeof ee != "function")
|
|
1157
|
-
return re(
|
|
1157
|
+
return re(C, N, B, Q, T(ee));
|
|
1158
1158
|
if (!ee)
|
|
1159
1159
|
return new k(
|
|
1160
|
-
"Invalid " + N + " `" + B + "` key `" + Q + "` supplied to `" +
|
|
1160
|
+
"Invalid " + N + " `" + B + "` key `" + Q + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(g[c], null, " ") + `
|
|
1161
1161
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1162
1162
|
);
|
|
1163
|
-
var
|
|
1164
|
-
if (
|
|
1165
|
-
return
|
|
1163
|
+
var I = ee(j, Q, C, N, B + "." + Q, t);
|
|
1164
|
+
if (I)
|
|
1165
|
+
return I;
|
|
1166
1166
|
}
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
@@ -1190,8 +1190,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1190
1190
|
return !1;
|
|
1191
1191
|
} else
|
|
1192
1192
|
for (; !(c = g.next()).done; ) {
|
|
1193
|
-
var
|
|
1194
|
-
if (
|
|
1193
|
+
var C = c.value;
|
|
1194
|
+
if (C && !te(C[1]))
|
|
1195
1195
|
return !1;
|
|
1196
1196
|
}
|
|
1197
1197
|
} else
|
|
@@ -1373,7 +1373,7 @@ const ns = ({
|
|
|
1373
1373
|
default:
|
|
1374
1374
|
return "";
|
|
1375
1375
|
}
|
|
1376
|
-
}, y = (_,
|
|
1376
|
+
}, y = (_, S) => _ && ["text", "text-danger"].includes(S) ? " u-button-text-icon-left" : _ ? " u-button-icon-left" : "", D = (_) => _ ? " icon-only" : "", k = (_) => typeof _ == "number" ? `${_}px` : String(_);
|
|
1377
1377
|
return /* @__PURE__ */ p.jsxs(
|
|
1378
1378
|
"button",
|
|
1379
1379
|
{
|
|
@@ -2865,15 +2865,15 @@ function sr(n) {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
const ol = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, il = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, sl = /^'([^]*?)'?$/, ll = /''/g, cl = /[a-zA-Z]/;
|
|
2867
2867
|
function Ba(n, a, t) {
|
|
2868
|
-
var d, f, v, y, D, k, _,
|
|
2869
|
-
const e = en(), r = (t == null ? void 0 : t.locale) ?? e.locale ?? Go, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((y = (v = e.locale) == null ? void 0 : v.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((k = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? e.weekStartsOn ?? ((
|
|
2868
|
+
var d, f, v, y, D, k, _, S;
|
|
2869
|
+
const e = en(), r = (t == null ? void 0 : t.locale) ?? e.locale ?? Go, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((y = (v = e.locale) == null ? void 0 : v.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((k = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? e.weekStartsOn ?? ((S = (_ = e.locale) == null ? void 0 : _.options) == null ? void 0 : S.weekStartsOn) ?? 0, s = de(n);
|
|
2870
2870
|
if (!sr(s))
|
|
2871
2871
|
throw new RangeError("Invalid time value");
|
|
2872
2872
|
let l = a.match(il).map((M) => {
|
|
2873
2873
|
const O = M[0];
|
|
2874
2874
|
if (O === "p" || O === "P") {
|
|
2875
|
-
const
|
|
2876
|
-
return
|
|
2875
|
+
const R = ir[O];
|
|
2876
|
+
return R(M, r.formatLong);
|
|
2877
2877
|
}
|
|
2878
2878
|
return M;
|
|
2879
2879
|
}).join("").match(ol).map((M) => {
|
|
@@ -2900,8 +2900,8 @@ function Ba(n, a, t) {
|
|
|
2900
2900
|
if (!M.isToken) return M.value;
|
|
2901
2901
|
const O = M.value;
|
|
2902
2902
|
(!(t != null && t.useAdditionalWeekYearTokens) && Xo(O) || !(t != null && t.useAdditionalDayOfYearTokens) && Ko(O)) && Zr(O, a, String(n));
|
|
2903
|
-
const
|
|
2904
|
-
return
|
|
2903
|
+
const R = Aa[O[0]];
|
|
2904
|
+
return R(s, O, r.localize, u);
|
|
2905
2905
|
}).join("");
|
|
2906
2906
|
}
|
|
2907
2907
|
function ul(n) {
|
|
@@ -4456,8 +4456,8 @@ const oc = {
|
|
|
4456
4456
|
T: new ac()
|
|
4457
4457
|
}, ic = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, sc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, lc = /^'([^]*?)'?$/, cc = /''/g, uc = /\S/, dc = /[a-zA-Z]/;
|
|
4458
4458
|
function Nr(n, a, t, e) {
|
|
4459
|
-
var k, _,
|
|
4460
|
-
const r = vl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Go, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((_ = (k = e == null ? void 0 : e.locale) == null ? void 0 : k.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((M = (
|
|
4459
|
+
var k, _, S, M, O, R, E, U;
|
|
4460
|
+
const r = vl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Go, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((_ = (k = e == null ? void 0 : e.locale) == null ? void 0 : k.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((M = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((R = (O = e == null ? void 0 : e.locale) == null ? void 0 : O.options) == null ? void 0 : R.weekStartsOn) ?? r.weekStartsOn ?? ((U = (E = r.locale) == null ? void 0 : E.options) == null ? void 0 : U.weekStartsOn) ?? 0;
|
|
4461
4461
|
if (a === "")
|
|
4462
4462
|
return n === "" ? de(t) : Oe(t, NaN);
|
|
4463
4463
|
const l = {
|
|
@@ -4970,13 +4970,13 @@ const Bc = async (n, a, t) => {
|
|
|
4970
4970
|
for (let k = 0; k < s.length; k++) {
|
|
4971
4971
|
const {
|
|
4972
4972
|
name: _,
|
|
4973
|
-
fn:
|
|
4973
|
+
fn: S
|
|
4974
4974
|
} = s[k], {
|
|
4975
4975
|
x: M,
|
|
4976
4976
|
y: O,
|
|
4977
|
-
data:
|
|
4978
|
-
reset:
|
|
4979
|
-
} = await
|
|
4977
|
+
data: R,
|
|
4978
|
+
reset: E
|
|
4979
|
+
} = await S({
|
|
4980
4980
|
x: d,
|
|
4981
4981
|
y: f,
|
|
4982
4982
|
initialPlacement: e,
|
|
@@ -4994,13 +4994,13 @@ const Bc = async (n, a, t) => {
|
|
|
4994
4994
|
...y,
|
|
4995
4995
|
[_]: {
|
|
4996
4996
|
...y[_],
|
|
4997
|
-
...
|
|
4997
|
+
...R
|
|
4998
4998
|
}
|
|
4999
|
-
},
|
|
4999
|
+
}, E && D <= 50 && (D++, typeof E == "object" && (E.placement && (v = E.placement), E.rects && (u = E.rects === !0 ? await i.getElementRects({
|
|
5000
5000
|
reference: n,
|
|
5001
5001
|
floating: a,
|
|
5002
5002
|
strategy: r
|
|
5003
|
-
}) :
|
|
5003
|
+
}) : E.rects), {
|
|
5004
5004
|
x: d,
|
|
5005
5005
|
y: f
|
|
5006
5006
|
} = za(u, v, l)), k = -1);
|
|
@@ -5029,7 +5029,7 @@ async function qc(n, a) {
|
|
|
5029
5029
|
elementContext: f = "floating",
|
|
5030
5030
|
altBoundary: v = !1,
|
|
5031
5031
|
padding: y = 0
|
|
5032
|
-
} = xr(a, n), D = si(y), _ = s[v ? f === "floating" ? "reference" : "floating" : f],
|
|
5032
|
+
} = xr(a, n), D = si(y), _ = s[v ? f === "floating" ? "reference" : "floating" : f], S = dr(await o.getClippingRect({
|
|
5033
5033
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(_))) == null || t ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
5034
5034
|
boundary: u,
|
|
5035
5035
|
rootBoundary: d,
|
|
@@ -5039,23 +5039,23 @@ async function qc(n, a) {
|
|
|
5039
5039
|
y: r,
|
|
5040
5040
|
width: i.floating.width,
|
|
5041
5041
|
height: i.floating.height
|
|
5042
|
-
} : i.reference, O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)),
|
|
5042
|
+
} : i.reference, O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), R = await (o.isElement == null ? void 0 : o.isElement(O)) ? await (o.getScale == null ? void 0 : o.getScale(O)) || {
|
|
5043
5043
|
x: 1,
|
|
5044
5044
|
y: 1
|
|
5045
5045
|
} : {
|
|
5046
5046
|
x: 1,
|
|
5047
5047
|
y: 1
|
|
5048
|
-
},
|
|
5048
|
+
}, E = dr(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5049
5049
|
elements: s,
|
|
5050
5050
|
rect: M,
|
|
5051
5051
|
offsetParent: O,
|
|
5052
5052
|
strategy: l
|
|
5053
5053
|
}) : M);
|
|
5054
5054
|
return {
|
|
5055
|
-
top: (
|
|
5056
|
-
bottom: (
|
|
5057
|
-
left: (
|
|
5058
|
-
right: (
|
|
5055
|
+
top: (S.top - E.top + D.top) / R.y,
|
|
5056
|
+
bottom: (E.bottom - S.bottom + D.bottom) / R.y,
|
|
5057
|
+
left: (S.left - E.left + D.left) / R.x,
|
|
5058
|
+
right: (E.right - S.right + D.right) / R.x
|
|
5059
5059
|
};
|
|
5060
5060
|
}
|
|
5061
5061
|
const Vc = (n) => ({
|
|
@@ -5079,10 +5079,10 @@ const Vc = (n) => ({
|
|
|
5079
5079
|
const f = si(d), v = {
|
|
5080
5080
|
x: t,
|
|
5081
5081
|
y: e
|
|
5082
|
-
}, y = va(r), D = ga(y), k = await i.getDimensions(u), _ = y === "y",
|
|
5082
|
+
}, y = va(r), D = ga(y), k = await i.getDimensions(u), _ = y === "y", S = _ ? "top" : "left", M = _ ? "bottom" : "right", O = _ ? "clientHeight" : "clientWidth", R = o.reference[D] + o.reference[y] - v[y] - o.floating[D], E = v[y] - o.reference[y], U = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
5083
5083
|
let q = U ? U[O] : 0;
|
|
5084
5084
|
(!q || !await (i.isElement == null ? void 0 : i.isElement(U))) && (q = s.floating[O] || o.floating[D]);
|
|
5085
|
-
const P =
|
|
5085
|
+
const P = R / 2 - E / 2, W = q / 2 - k[D] / 2 - 1, z = pn(f[S], W), re = pn(f[M], W), ie = z, X = q - k[D] - re, te = q / 2 - k[D] / 2 + P, oe = Lc(ie, te, X), A = !l.arrow && Rn(r) != null && te !== oe && o.reference[D] / 2 - (te < ie ? z : re) - k[D] / 2 < 0, T = A ? te < ie ? te - ie : te - X : 0;
|
|
5086
5086
|
return {
|
|
5087
5087
|
[y]: v[y] + T,
|
|
5088
5088
|
data: {
|
|
@@ -5119,12 +5119,12 @@ const Vc = (n) => ({
|
|
|
5119
5119
|
} = xr(n, a);
|
|
5120
5120
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
5121
5121
|
return {};
|
|
5122
|
-
const
|
|
5123
|
-
!v && U &&
|
|
5124
|
-
const q = [s, ...
|
|
5122
|
+
const S = hn(r), M = On(s), O = hn(s) === s, R = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = v || (O || !k ? [ur(s)] : Ac(s)), U = D !== "none";
|
|
5123
|
+
!v && U && E.push(...$c(s, k, D, R));
|
|
5124
|
+
const q = [s, ...E], P = await qc(a, _), W = [];
|
|
5125
5125
|
let z = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
5126
|
-
if (d && W.push(P[
|
|
5127
|
-
const te = Yc(r, i,
|
|
5126
|
+
if (d && W.push(P[S]), f) {
|
|
5127
|
+
const te = Yc(r, i, R);
|
|
5128
5128
|
W.push(P[te[0]], P[te[1]]);
|
|
5129
5129
|
}
|
|
5130
5130
|
if (z = [...z, {
|
|
@@ -5276,8 +5276,8 @@ function Jt(n, a, t, e) {
|
|
|
5276
5276
|
const v = ut(o), y = e && at(e) ? ut(e) : e;
|
|
5277
5277
|
let D = v, k = D.frameElement;
|
|
5278
5278
|
for (; k && e && y !== D; ) {
|
|
5279
|
-
const _ = sn(k),
|
|
5280
|
-
l *= _.x, u *= _.y, d *= _.x, f *= _.y, l += O, u +=
|
|
5279
|
+
const _ = sn(k), S = k.getBoundingClientRect(), M = ht(k), O = S.left + (k.clientLeft + parseFloat(M.paddingLeft)) * _.x, R = S.top + (k.clientTop + parseFloat(M.paddingTop)) * _.y;
|
|
5280
|
+
l *= _.x, u *= _.y, d *= _.x, f *= _.y, l += O, u += R, D = ut(k), k = D.frameElement;
|
|
5281
5281
|
}
|
|
5282
5282
|
}
|
|
5283
5283
|
return dr({
|
|
@@ -5510,8 +5510,8 @@ function cu(n, a) {
|
|
|
5510
5510
|
threshold: zt(0, pn(1, l)) || 1
|
|
5511
5511
|
};
|
|
5512
5512
|
let O = !0;
|
|
5513
|
-
function
|
|
5514
|
-
const U =
|
|
5513
|
+
function R(E) {
|
|
5514
|
+
const U = E[0].intersectionRatio;
|
|
5515
5515
|
if (U !== l) {
|
|
5516
5516
|
if (!O)
|
|
5517
5517
|
return i();
|
|
@@ -5522,13 +5522,13 @@ function cu(n, a) {
|
|
|
5522
5522
|
O = !1;
|
|
5523
5523
|
}
|
|
5524
5524
|
try {
|
|
5525
|
-
t = new IntersectionObserver(
|
|
5525
|
+
t = new IntersectionObserver(R, {
|
|
5526
5526
|
...M,
|
|
5527
5527
|
// Handle <iframe>s
|
|
5528
5528
|
root: r.ownerDocument
|
|
5529
5529
|
});
|
|
5530
5530
|
} catch {
|
|
5531
|
-
t = new IntersectionObserver(
|
|
5531
|
+
t = new IntersectionObserver(R, M);
|
|
5532
5532
|
}
|
|
5533
5533
|
t.observe(n);
|
|
5534
5534
|
}
|
|
@@ -5543,15 +5543,15 @@ function uu(n, a, t, e) {
|
|
|
5543
5543
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
5544
5544
|
animationFrame: l = !1
|
|
5545
5545
|
} = e, u = ya(n), d = r || o ? [...u ? Mn(u) : [], ...Mn(a)] : [];
|
|
5546
|
-
d.forEach((
|
|
5547
|
-
r &&
|
|
5546
|
+
d.forEach((S) => {
|
|
5547
|
+
r && S.addEventListener("scroll", t, {
|
|
5548
5548
|
passive: !0
|
|
5549
|
-
}), o &&
|
|
5549
|
+
}), o && S.addEventListener("resize", t);
|
|
5550
5550
|
});
|
|
5551
5551
|
const f = u && s ? cu(u, t) : null;
|
|
5552
5552
|
let v = -1, y = null;
|
|
5553
|
-
i && (y = new ResizeObserver((
|
|
5554
|
-
let [M] =
|
|
5553
|
+
i && (y = new ResizeObserver((S) => {
|
|
5554
|
+
let [M] = S;
|
|
5555
5555
|
M && M.target === u && y && (y.unobserve(a), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
5556
5556
|
var O;
|
|
5557
5557
|
(O = y) == null || O.observe(a);
|
|
@@ -5560,14 +5560,14 @@ function uu(n, a, t, e) {
|
|
|
5560
5560
|
let D, k = l ? Jt(n) : null;
|
|
5561
5561
|
l && _();
|
|
5562
5562
|
function _() {
|
|
5563
|
-
const
|
|
5564
|
-
k && (
|
|
5563
|
+
const S = Jt(n);
|
|
5564
|
+
k && (S.x !== k.x || S.y !== k.y || S.width !== k.width || S.height !== k.height) && t(), k = S, D = requestAnimationFrame(_);
|
|
5565
5565
|
}
|
|
5566
5566
|
return t(), () => {
|
|
5567
|
-
var
|
|
5567
|
+
var S;
|
|
5568
5568
|
d.forEach((M) => {
|
|
5569
5569
|
r && M.removeEventListener("scroll", t), o && M.removeEventListener("resize", t);
|
|
5570
|
-
}), f == null || f(), (
|
|
5570
|
+
}), f == null || f(), (S = y) == null || S.disconnect(), y = null, l && cancelAnimationFrame(D);
|
|
5571
5571
|
};
|
|
5572
5572
|
}
|
|
5573
5573
|
const du = Uc, fu = Gc, Za = Vc, pu = (n, a, t) => {
|
|
@@ -5650,11 +5650,11 @@ function hu(n) {
|
|
|
5650
5650
|
isPositioned: !1
|
|
5651
5651
|
}), [v, y] = me.useState(e);
|
|
5652
5652
|
fr(v, e) || y(e);
|
|
5653
|
-
const [D, k] = me.useState(null), [_,
|
|
5653
|
+
const [D, k] = me.useState(null), [_, S] = me.useState(null), M = me.useCallback((T) => {
|
|
5654
5654
|
T !== U.current && (U.current = T, k(T));
|
|
5655
5655
|
}, []), O = me.useCallback((T) => {
|
|
5656
|
-
T !== q.current && (q.current = T,
|
|
5657
|
-
}, []),
|
|
5656
|
+
T !== q.current && (q.current = T, S(T));
|
|
5657
|
+
}, []), R = o || D, E = i || _, U = me.useRef(null), q = me.useRef(null), P = me.useRef(d), W = l != null, z = eo(l), re = eo(r), ie = me.useCallback(() => {
|
|
5658
5658
|
if (!U.current || !q.current)
|
|
5659
5659
|
return;
|
|
5660
5660
|
const T = {
|
|
@@ -5682,21 +5682,21 @@ function hu(n) {
|
|
|
5682
5682
|
Jn(() => (X.current = !0, () => {
|
|
5683
5683
|
X.current = !1;
|
|
5684
5684
|
}), []), Jn(() => {
|
|
5685
|
-
if (
|
|
5685
|
+
if (R && (U.current = R), E && (q.current = E), R && E) {
|
|
5686
5686
|
if (z.current)
|
|
5687
|
-
return z.current(
|
|
5687
|
+
return z.current(R, E, ie);
|
|
5688
5688
|
ie();
|
|
5689
5689
|
}
|
|
5690
|
-
}, [
|
|
5690
|
+
}, [R, E, ie, z, W]);
|
|
5691
5691
|
const te = me.useMemo(() => ({
|
|
5692
5692
|
reference: U,
|
|
5693
5693
|
floating: q,
|
|
5694
5694
|
setReference: M,
|
|
5695
5695
|
setFloating: O
|
|
5696
5696
|
}), [M, O]), oe = me.useMemo(() => ({
|
|
5697
|
-
reference:
|
|
5698
|
-
floating:
|
|
5699
|
-
}), [
|
|
5697
|
+
reference: R,
|
|
5698
|
+
floating: E
|
|
5699
|
+
}), [R, E]), A = me.useMemo(() => {
|
|
5700
5700
|
const T = {
|
|
5701
5701
|
position: t,
|
|
5702
5702
|
left: 0,
|
|
@@ -5842,16 +5842,16 @@ const Eu = /* @__PURE__ */ me.forwardRef(function(a, t) {
|
|
|
5842
5842
|
...k
|
|
5843
5843
|
} = a;
|
|
5844
5844
|
process.env.NODE_ENV !== "production" && (t || Cu("The `ref` prop is required for `FloatingArrow`."));
|
|
5845
|
-
const _ = mi(), [
|
|
5845
|
+
const _ = mi(), [S, M] = me.useState(!1);
|
|
5846
5846
|
if (pr(() => {
|
|
5847
5847
|
if (!r) return;
|
|
5848
5848
|
ht(r).direction === "rtl" && M(!0);
|
|
5849
5849
|
}, [r]), !r)
|
|
5850
5850
|
return null;
|
|
5851
|
-
const O = u * 2,
|
|
5851
|
+
const O = u * 2, R = O / 2, E = i / 2 * (l / -8 + 1), U = s / 2 * l / 4, [q, P] = e.split("-"), W = !!v, z = q === "top" || q === "bottom", re = d && P === "end" ? "bottom" : "top";
|
|
5852
5852
|
let ie = d && P === "end" ? "right" : "left";
|
|
5853
|
-
d &&
|
|
5854
|
-
const X = (o == null ? void 0 : o.x) != null ? d || o.x : "", te = (o == null ? void 0 : o.y) != null ? d || o.y : "", oe = v || "M0,0" + (" H" + i) + (" L" + (i -
|
|
5853
|
+
d && S && (ie = P === "end" ? "left" : "right");
|
|
5854
|
+
const X = (o == null ? void 0 : o.x) != null ? d || o.x : "", te = (o == null ? void 0 : o.y) != null ? d || o.y : "", oe = v || "M0,0" + (" H" + i) + (" L" + (i - E) + "," + (s - U)) + (" Q" + i / 2 + "," + s + " " + E + "," + (s - U)) + " Z", A = {
|
|
5855
5855
|
top: W ? "rotate(180deg)" : "",
|
|
5856
5856
|
left: W ? "rotate(90deg)" : "rotate(-90deg)",
|
|
5857
5857
|
bottom: W ? "" : "rotate(180deg)",
|
|
@@ -5884,8 +5884,8 @@ const Eu = /* @__PURE__ */ me.forwardRef(function(a, t) {
|
|
|
5884
5884
|
}), /* @__PURE__ */ me.createElement("clipPath", {
|
|
5885
5885
|
id: _
|
|
5886
5886
|
}, /* @__PURE__ */ me.createElement("rect", {
|
|
5887
|
-
x: -
|
|
5888
|
-
y:
|
|
5887
|
+
x: -R,
|
|
5888
|
+
y: R * (W ? -1 : 1),
|
|
5889
5889
|
width: i + O,
|
|
5890
5890
|
height: i
|
|
5891
5891
|
})));
|
|
@@ -5968,11 +5968,11 @@ function ju(n) {
|
|
|
5968
5968
|
}
|
|
5969
5969
|
}
|
|
5970
5970
|
}), D = me.useCallback((O) => {
|
|
5971
|
-
const
|
|
5971
|
+
const R = at(O) ? {
|
|
5972
5972
|
getBoundingClientRect: () => O.getBoundingClientRect(),
|
|
5973
5973
|
contextElement: O
|
|
5974
5974
|
} : O;
|
|
5975
|
-
l(
|
|
5975
|
+
l(R), y.refs.setReference(R);
|
|
5976
5976
|
}, [y.refs]), k = me.useCallback((O) => {
|
|
5977
5977
|
(at(O) || O === null) && (f.current = O, i(O)), (at(y.refs.reference.current) || y.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`
|
|
@@ -5983,26 +5983,26 @@ function ju(n) {
|
|
|
5983
5983
|
setReference: k,
|
|
5984
5984
|
setPositionReference: D,
|
|
5985
5985
|
domReference: f
|
|
5986
|
-
}), [y.refs, k, D]),
|
|
5986
|
+
}), [y.refs, k, D]), S = me.useMemo(() => ({
|
|
5987
5987
|
...y.elements,
|
|
5988
5988
|
domReference: d
|
|
5989
5989
|
}), [y.elements, d]), M = me.useMemo(() => ({
|
|
5990
5990
|
...y,
|
|
5991
5991
|
...e,
|
|
5992
5992
|
refs: _,
|
|
5993
|
-
elements:
|
|
5993
|
+
elements: S,
|
|
5994
5994
|
nodeId: a
|
|
5995
|
-
}), [y, _,
|
|
5995
|
+
}), [y, _, S, a, e]);
|
|
5996
5996
|
return pr(() => {
|
|
5997
5997
|
e.dataRef.current.floatingContext = M;
|
|
5998
|
-
const O = v == null ? void 0 : v.nodesRef.current.find((
|
|
5998
|
+
const O = v == null ? void 0 : v.nodesRef.current.find((R) => R.id === a);
|
|
5999
5999
|
O && (O.context = M);
|
|
6000
6000
|
}), me.useMemo(() => ({
|
|
6001
6001
|
...y,
|
|
6002
6002
|
context: M,
|
|
6003
6003
|
refs: _,
|
|
6004
|
-
elements:
|
|
6005
|
-
}), [y, _,
|
|
6004
|
+
elements: S
|
|
6005
|
+
}), [y, _, S, M]);
|
|
6006
6006
|
}
|
|
6007
6007
|
/*!
|
|
6008
6008
|
react-datepicker v7.3.0
|
|
@@ -6934,7 +6934,7 @@ var cd = (
|
|
|
6934
6934
|
}, t.handleKeyboardNavigation = function(e, r, o) {
|
|
6935
6935
|
var i, s = t.props, l = s.selected, u = s.preSelection, d = s.setPreSelection, f = s.minDate, v = s.maxDate, y = s.showFourColumnMonthYearPicker, D = s.showTwoColumnMonthYearPicker;
|
|
6936
6936
|
if (u) {
|
|
6937
|
-
var k = bo(y, D), _ = t.getVerticalOffset(k),
|
|
6937
|
+
var k = bo(y, D), _ = t.getVerticalOffset(k), S = (i = Fr[k]) === null || i === void 0 ? void 0 : i.grid, M = function(q, P, W) {
|
|
6938
6938
|
var z, re, ie = P, X = W;
|
|
6939
6939
|
switch (q) {
|
|
6940
6940
|
case se.ArrowRight:
|
|
@@ -6944,10 +6944,10 @@ var cd = (
|
|
|
6944
6944
|
ie = un(P, Un), X = W === 0 ? 11 : W - Un;
|
|
6945
6945
|
break;
|
|
6946
6946
|
case se.ArrowUp:
|
|
6947
|
-
ie = un(P, _), X = !((z =
|
|
6947
|
+
ie = un(P, _), X = !((z = S == null ? void 0 : S[0]) === null || z === void 0) && z.includes(W) ? W + 12 - _ : W - _;
|
|
6948
6948
|
break;
|
|
6949
6949
|
case se.ArrowDown:
|
|
6950
|
-
ie = gt(P, _), X = !((re =
|
|
6950
|
+
ie = gt(P, _), X = !((re = S == null ? void 0 : S[S.length - 1]) === null || re === void 0) && re.includes(W) ? W - 12 + _ : W + _;
|
|
6951
6951
|
break;
|
|
6952
6952
|
}
|
|
6953
6953
|
return { newCalculatedDate: ie, newCalculatedMonth: X };
|
|
@@ -6980,13 +6980,13 @@ var cd = (
|
|
|
6980
6980
|
t.isMonthDisabled(o) || (t.onMonthClick(e, o), d == null || d(l));
|
|
6981
6981
|
return;
|
|
6982
6982
|
}
|
|
6983
|
-
var
|
|
6983
|
+
var R = O(r, u, o), E = R.newCalculatedDate, U = R.newCalculatedMonth;
|
|
6984
6984
|
switch (r) {
|
|
6985
6985
|
case se.ArrowRight:
|
|
6986
6986
|
case se.ArrowLeft:
|
|
6987
6987
|
case se.ArrowUp:
|
|
6988
6988
|
case se.ArrowDown:
|
|
6989
|
-
t.handleMonthNavigation(U,
|
|
6989
|
+
t.handleMonthNavigation(U, E);
|
|
6990
6990
|
break;
|
|
6991
6991
|
}
|
|
6992
6992
|
}
|
|
@@ -7324,8 +7324,8 @@ var hd = (
|
|
|
7324
7324
|
var o, i;
|
|
7325
7325
|
e.key === se.Space && (e.preventDefault(), e.key = se.Enter), (e.key === se.ArrowUp || e.key === se.ArrowLeft) && e.target instanceof HTMLElement && e.target.previousSibling && (e.preventDefault(), e.target.previousSibling instanceof HTMLElement && e.target.previousSibling.focus()), (e.key === se.ArrowDown || e.key === se.ArrowRight) && e.target instanceof HTMLElement && e.target.nextSibling && (e.preventDefault(), e.target.nextSibling instanceof HTMLElement && e.target.nextSibling.focus()), e.key === se.Enter && t.handleClick(r), (i = (o = t.props).handleOnKeyDown) === null || i === void 0 || i.call(o, e);
|
|
7326
7326
|
}, t.renderTimes = function() {
|
|
7327
|
-
for (var e, r = [], o = t.props.format ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : a.defaultProps.intervals, s = t.props.selected || t.props.openToDate || Pe(), l = er(s), u = t.props.injectTimes && t.props.injectTimes.sort(function(_,
|
|
7328
|
-
return _.getTime() -
|
|
7327
|
+
for (var e, r = [], o = t.props.format ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : a.defaultProps.intervals, s = t.props.selected || t.props.openToDate || Pe(), l = er(s), u = t.props.injectTimes && t.props.injectTimes.sort(function(_, S) {
|
|
7328
|
+
return _.getTime() - S.getTime();
|
|
7329
7329
|
}), d = 60 * nd(s), f = d / i, v = 0; v < f; v++) {
|
|
7330
7330
|
var y = Xr(l, v * i);
|
|
7331
7331
|
if (r.push(y), u) {
|
|
@@ -7333,14 +7333,14 @@ var hd = (
|
|
|
7333
7333
|
r = r.concat(D);
|
|
7334
7334
|
}
|
|
7335
7335
|
}
|
|
7336
|
-
var k = r.reduce(function(_,
|
|
7337
|
-
return
|
|
7336
|
+
var k = r.reduce(function(_, S) {
|
|
7337
|
+
return S.getTime() <= s.getTime() ? S : _;
|
|
7338
7338
|
}, r[0]);
|
|
7339
7339
|
return r.map(function(_) {
|
|
7340
|
-
return F.createElement("li", { key: _.valueOf(), onClick: t.handleClick.bind(t, _), className: t.liClasses(_), ref: function(
|
|
7341
|
-
_ === k && (t.centerLi =
|
|
7342
|
-
}, onKeyDown: function(
|
|
7343
|
-
t.handleOnKeyDown(
|
|
7340
|
+
return F.createElement("li", { key: _.valueOf(), onClick: t.handleClick.bind(t, _), className: t.liClasses(_), ref: function(S) {
|
|
7341
|
+
_ === k && (t.centerLi = S);
|
|
7342
|
+
}, onKeyDown: function(S) {
|
|
7343
|
+
t.handleOnKeyDown(S, _);
|
|
7344
7344
|
}, tabIndex: _ === k ? 0 : -1, role: "option", "aria-selected": t.isSelectedTime(_) ? "true" : void 0, "aria-disabled": t.isDisabledTime(_) ? "true" : void 0 }, Fe(_, o, t.props.locale));
|
|
7345
7345
|
});
|
|
7346
7346
|
}, t;
|
|
@@ -7490,10 +7490,10 @@ var hd = (
|
|
|
7490
7490
|
case se.ArrowDown: {
|
|
7491
7491
|
if (d === void 0 || f === void 0 || e.props.preSelection == null)
|
|
7492
7492
|
break;
|
|
7493
|
-
var
|
|
7494
|
-
if (k >
|
|
7493
|
+
var S = Ft(d, f).endPeriod, D = wo, k = o + D;
|
|
7494
|
+
if (k > S) {
|
|
7495
7495
|
var _ = f % D;
|
|
7496
|
-
o <=
|
|
7496
|
+
o <= S && o > S - _ ? D = _ : D += _, k = o + D;
|
|
7497
7497
|
}
|
|
7498
7498
|
e.handleYearNavigation(k, Tt(e.props.preSelection, D));
|
|
7499
7499
|
break;
|
|
@@ -7822,10 +7822,10 @@ var wd = (
|
|
|
7822
7822
|
"react-datepicker__navigation--previous"
|
|
7823
7823
|
], l = e.decreaseMonth;
|
|
7824
7824
|
(e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (l = e.decreaseYear), o && e.props.showDisabledMonthNavigation && (s.push("react-datepicker__navigation--previous--disabled"), l = void 0);
|
|
7825
|
-
var u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, d = e.props, f = d.previousMonthButtonLabel, v = f === void 0 ? a.defaultProps.previousMonthButtonLabel : f, y = d.previousYearButtonLabel, D = y === void 0 ? a.defaultProps.previousYearButtonLabel : y, k = e.props, _ = k.previousMonthAriaLabel,
|
|
7825
|
+
var u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, d = e.props, f = d.previousMonthButtonLabel, v = f === void 0 ? a.defaultProps.previousMonthButtonLabel : f, y = d.previousYearButtonLabel, D = y === void 0 ? a.defaultProps.previousYearButtonLabel : y, k = e.props, _ = k.previousMonthAriaLabel, S = _ === void 0 ? typeof v == "string" ? v : "Previous Month" : _, M = k.previousYearAriaLabel, O = M === void 0 ? typeof D == "string" ? D : "Previous Year" : M;
|
|
7826
7826
|
return F.createElement(
|
|
7827
7827
|
"button",
|
|
7828
|
-
{ type: "button", className: s.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": u ? O :
|
|
7828
|
+
{ type: "button", className: s.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": u ? O : S },
|
|
7829
7829
|
F.createElement("span", { className: i.join(" ") }, u ? D : v)
|
|
7830
7830
|
);
|
|
7831
7831
|
}
|
|
@@ -7868,10 +7868,10 @@ var wd = (
|
|
|
7868
7868
|
e.props.showTimeSelect && i.push("react-datepicker__navigation--next--with-time"), e.props.todayButton && i.push("react-datepicker__navigation--next--with-today-button");
|
|
7869
7869
|
var l = e.increaseMonth;
|
|
7870
7870
|
(e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (l = e.increaseYear), o && e.props.showDisabledMonthNavigation && (i.push("react-datepicker__navigation--next--disabled"), l = void 0);
|
|
7871
|
-
var u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, d = e.props, f = d.nextMonthButtonLabel, v = f === void 0 ? a.defaultProps.nextMonthButtonLabel : f, y = d.nextYearButtonLabel, D = y === void 0 ? a.defaultProps.nextYearButtonLabel : y, k = e.props, _ = k.nextMonthAriaLabel,
|
|
7871
|
+
var u = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, d = e.props, f = d.nextMonthButtonLabel, v = f === void 0 ? a.defaultProps.nextMonthButtonLabel : f, y = d.nextYearButtonLabel, D = y === void 0 ? a.defaultProps.nextYearButtonLabel : y, k = e.props, _ = k.nextMonthAriaLabel, S = _ === void 0 ? typeof v == "string" ? v : "Next Month" : _, M = k.nextYearAriaLabel, O = M === void 0 ? typeof D == "string" ? D : "Next Year" : M;
|
|
7872
7872
|
return F.createElement(
|
|
7873
7873
|
"button",
|
|
7874
|
-
{ type: "button", className: i.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": u ? O :
|
|
7874
|
+
{ type: "button", className: i.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": u ? O : S },
|
|
7875
7875
|
F.createElement("span", { className: s.join(" ") }, u ? D : v)
|
|
7876
7876
|
);
|
|
7877
7877
|
}
|
|
@@ -7940,8 +7940,8 @@ var wd = (
|
|
|
7940
7940
|
var v = f - d + l, y = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? Tt(u, v) : gt(u, v), D = "month-".concat(f), k = f < s - 1, _ = f > 0;
|
|
7941
7941
|
i.push(F.createElement(
|
|
7942
7942
|
"div",
|
|
7943
|
-
{ key: D, ref: function(
|
|
7944
|
-
e.monthContainer =
|
|
7943
|
+
{ key: D, ref: function(S) {
|
|
7944
|
+
e.monthContainer = S ?? void 0;
|
|
7945
7945
|
}, className: "react-datepicker__month-container" },
|
|
7946
7946
|
e.renderHeader({ monthDate: y, i: f }),
|
|
7947
7947
|
F.createElement(cd, ke({}, a.defaultProps, e.props, { ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: y, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: f, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: k, monthShowsDuplicateDaysStart: _ }))
|
|
@@ -8135,11 +8135,11 @@ var Td = (
|
|
|
8135
8135
|
);
|
|
8136
8136
|
}
|
|
8137
8137
|
this.props.popperContainer && (k = jo(this.props.popperContainer, {}, k)), f && !i && (k = F.createElement(xi, { portalId: f, portalHost: v }, k));
|
|
8138
|
-
var
|
|
8138
|
+
var S = Ke("react-datepicker-wrapper", r);
|
|
8139
8139
|
return F.createElement(
|
|
8140
8140
|
F.Fragment,
|
|
8141
8141
|
null,
|
|
8142
|
-
F.createElement("div", { ref: y.refs.setReference, className:
|
|
8142
|
+
F.createElement("div", { ref: y.refs.setReference, className: S }, l),
|
|
8143
8143
|
k
|
|
8144
8144
|
);
|
|
8145
8145
|
}, a;
|
|
@@ -8266,21 +8266,21 @@ var Yr = "Date input not valid.", jd = (
|
|
|
8266
8266
|
return;
|
|
8267
8267
|
} else if (u !== null && Lt(u, e.props))
|
|
8268
8268
|
return;
|
|
8269
|
-
var d = e.props, f = d.onChange, v = d.selectsRange, y = d.startDate, D = d.endDate, k = d.selectsMultiple, _ = d.selectedDates,
|
|
8269
|
+
var d = e.props, f = d.onChange, v = d.selectsRange, y = d.startDate, D = d.endDate, k = d.selectsMultiple, _ = d.selectedDates, S = d.minTime, M = d.swapRange;
|
|
8270
8270
|
if (!Qt(e.props.selected, u) || e.props.allowSameDay || v || k)
|
|
8271
8271
|
if (u !== null && (e.props.selected && (!i || !e.props.showTimeSelect && !e.props.showTimeSelectOnly && !e.props.showTimeInput) && (u = Ir(u, {
|
|
8272
8272
|
hour: St(e.props.selected),
|
|
8273
8273
|
minute: Et(e.props.selected),
|
|
8274
8274
|
second: Nt(e.props.selected)
|
|
8275
|
-
})), !i && (e.props.showTimeSelect || e.props.showTimeSelectOnly) &&
|
|
8276
|
-
hour:
|
|
8277
|
-
minute:
|
|
8278
|
-
second:
|
|
8275
|
+
})), !i && (e.props.showTimeSelect || e.props.showTimeSelectOnly) && S && (u = Ir(u, {
|
|
8276
|
+
hour: S.getHours(),
|
|
8277
|
+
minute: S.getMinutes(),
|
|
8278
|
+
second: S.getSeconds()
|
|
8279
8279
|
})), e.props.inline || e.setState({
|
|
8280
8280
|
preSelection: u
|
|
8281
8281
|
}), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: s })), v) {
|
|
8282
|
-
var O = !y && !D,
|
|
8283
|
-
O ? f ? f([u, null], o) : a.defaultProps.onChange :
|
|
8282
|
+
var O = !y && !D, R = y && !D, E = y && D;
|
|
8283
|
+
O ? f ? f([u, null], o) : a.defaultProps.onChange : R && (u === null ? f ? f([null, null], o) : a.defaultProps.onChange : yo(u, y) ? M ? f ? f([u, y], o) : a.defaultProps.onChange : f ? f([u, null], o) : a.defaultProps.onChange : f ? f([y, u], o) : a.defaultProps.onChange), E && (f ? f([u, null], o) : a.defaultProps.onChange);
|
|
8284
8284
|
} else if (k) {
|
|
8285
8285
|
if (u !== null)
|
|
8286
8286
|
if (!(_ != null && _.length))
|
|
@@ -8366,9 +8366,9 @@ var Yr = "Date input not valid.", jd = (
|
|
|
8366
8366
|
});
|
|
8367
8367
|
}));
|
|
8368
8368
|
}, e.onDayKeyDown = function(r) {
|
|
8369
|
-
var o, i, s, l, u = e.props, d = u.minDate, f = u.maxDate, v = u.disabledKeyboardNavigation, y = u.showWeekPicker, D = u.shouldCloseOnSelect, k = u.locale, _ = u.calendarStartDay,
|
|
8369
|
+
var o, i, s, l, u = e.props, d = u.minDate, f = u.maxDate, v = u.disabledKeyboardNavigation, y = u.showWeekPicker, D = u.shouldCloseOnSelect, k = u.locale, _ = u.calendarStartDay, S = u.adjustDateOnChange, M = u.inline;
|
|
8370
8370
|
if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !v) {
|
|
8371
|
-
var O = r.key,
|
|
8371
|
+
var O = r.key, R = r.shiftKey, E = Pe(e.state.preSelection), U = function(X, te) {
|
|
8372
8372
|
var oe = te;
|
|
8373
8373
|
switch (X) {
|
|
8374
8374
|
case se.ArrowRight:
|
|
@@ -8384,10 +8384,10 @@ var Yr = "Date input not valid.", jd = (
|
|
|
8384
8384
|
oe = tr(te, 1);
|
|
8385
8385
|
break;
|
|
8386
8386
|
case se.PageUp:
|
|
8387
|
-
oe =
|
|
8387
|
+
oe = R ? dn(te, 1) : un(te, 1);
|
|
8388
8388
|
break;
|
|
8389
8389
|
case se.PageDown:
|
|
8390
|
-
oe =
|
|
8390
|
+
oe = R ? Tt(te, 1) : gt(te, 1);
|
|
8391
8391
|
break;
|
|
8392
8392
|
case se.Home:
|
|
8393
8393
|
oe = Yt(te, k, _);
|
|
@@ -8408,7 +8408,7 @@ var Yr = "Date input not valid.", jd = (
|
|
|
8408
8408
|
return m;
|
|
8409
8409
|
};
|
|
8410
8410
|
if (O === se.Enter) {
|
|
8411
|
-
r.preventDefault(), e.handleSelect(
|
|
8411
|
+
r.preventDefault(), e.handleSelect(E, r), !D && e.setPreSelection(E);
|
|
8412
8412
|
return;
|
|
8413
8413
|
} else if (O === se.Escape) {
|
|
8414
8414
|
r.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (s = e.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Yr });
|
|
@@ -8424,15 +8424,15 @@ var Yr = "Date input not valid.", jd = (
|
|
|
8424
8424
|
case se.PageDown:
|
|
8425
8425
|
case se.Home:
|
|
8426
8426
|
case se.End:
|
|
8427
|
-
P = q(O,
|
|
8427
|
+
P = q(O, E);
|
|
8428
8428
|
break;
|
|
8429
8429
|
}
|
|
8430
8430
|
if (!P) {
|
|
8431
8431
|
e.props.onInputError && e.props.onInputError({ code: 1, msg: Yr });
|
|
8432
8432
|
return;
|
|
8433
8433
|
}
|
|
8434
|
-
if (r.preventDefault(), e.setState({ lastPreSelectChange: Ar }),
|
|
8435
|
-
var W = Je(
|
|
8434
|
+
if (r.preventDefault(), e.setState({ lastPreSelectChange: Ar }), S && e.setSelected(P), e.setPreSelection(P), M) {
|
|
8435
|
+
var W = Je(E), z = Je(P), re = ve(E), ie = ve(P);
|
|
8436
8436
|
W !== z || re !== ie ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
|
|
8437
8437
|
}
|
|
8438
8438
|
}
|
|
@@ -8617,8 +8617,8 @@ function Ld() {
|
|
|
8617
8617
|
var a = n(F), t = ia;
|
|
8618
8618
|
function e(m, h) {
|
|
8619
8619
|
for (var b = Object.getOwnPropertyNames(h), g = 0; g < b.length; g++) {
|
|
8620
|
-
var c = b[g],
|
|
8621
|
-
|
|
8620
|
+
var c = b[g], C = Object.getOwnPropertyDescriptor(h, c);
|
|
8621
|
+
C && C.configurable && m[c] === void 0 && Object.defineProperty(m, c, C);
|
|
8622
8622
|
}
|
|
8623
8623
|
return m;
|
|
8624
8624
|
}
|
|
@@ -8636,25 +8636,25 @@ function Ld() {
|
|
|
8636
8636
|
}
|
|
8637
8637
|
function i(m, h) {
|
|
8638
8638
|
if (m == null) return {};
|
|
8639
|
-
var b, g, c = {},
|
|
8640
|
-
for (g = 0; g <
|
|
8639
|
+
var b, g, c = {}, C = Object.keys(m);
|
|
8640
|
+
for (g = 0; g < C.length; g++) b = C[g], 0 <= h.indexOf(b) || (c[b] = m[b]);
|
|
8641
8641
|
return c;
|
|
8642
8642
|
}
|
|
8643
8643
|
function s(m) {
|
|
8644
8644
|
if (m === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8645
8645
|
return m;
|
|
8646
8646
|
}
|
|
8647
|
-
var l = function(m, h, b, g, c,
|
|
8647
|
+
var l = function(m, h, b, g, c, C, N, B) {
|
|
8648
8648
|
if (!m) {
|
|
8649
|
-
var
|
|
8650
|
-
if (h === void 0)
|
|
8649
|
+
var j;
|
|
8650
|
+
if (h === void 0) j = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
8651
8651
|
else {
|
|
8652
|
-
var L = [b, g, c,
|
|
8653
|
-
(
|
|
8652
|
+
var L = [b, g, c, C, N, B], V = 0;
|
|
8653
|
+
(j = new Error(h.replace(/%s/g, function() {
|
|
8654
8654
|
return L[V++];
|
|
8655
8655
|
}))).name = "Invariant Violation";
|
|
8656
8656
|
}
|
|
8657
|
-
throw
|
|
8657
|
+
throw j.framesToPop = 1, j;
|
|
8658
8658
|
}
|
|
8659
8659
|
}, u = l;
|
|
8660
8660
|
function d(m, h, b) {
|
|
@@ -8675,12 +8675,12 @@ function Ld() {
|
|
|
8675
8675
|
}
|
|
8676
8676
|
var v = { 9: "[0-9]", a: "[A-Za-z]", "*": "[A-Za-z0-9]" }, y = "_";
|
|
8677
8677
|
function D(m, h, b) {
|
|
8678
|
-
var g = "", c = "",
|
|
8678
|
+
var g = "", c = "", C = null, N = [];
|
|
8679
8679
|
if (h === void 0 && (h = y), b == null && (b = v), !m || typeof m != "string") return { maskChar: h, formatChars: b, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
|
|
8680
8680
|
var B = !1;
|
|
8681
|
-
return m.split("").forEach(function(
|
|
8682
|
-
B = !B &&
|
|
8683
|
-
}), { maskChar: h, formatChars: b, prefix: c, mask: g, lastEditablePosition:
|
|
8681
|
+
return m.split("").forEach(function(j) {
|
|
8682
|
+
B = !B && j === "\\" || (B || !b[j] ? (N.push(g.length), g.length === N.length - 1 && (c += j)) : C = g.length + 1, g += j, !1);
|
|
8683
|
+
}), { maskChar: h, formatChars: b, prefix: c, mask: g, lastEditablePosition: C, permanents: N };
|
|
8684
8684
|
}
|
|
8685
8685
|
function k(m, h) {
|
|
8686
8686
|
return m.permanents.indexOf(h) !== -1;
|
|
@@ -8689,10 +8689,10 @@ function Ld() {
|
|
|
8689
8689
|
var g = m.mask, c = m.formatChars;
|
|
8690
8690
|
if (!b) return !1;
|
|
8691
8691
|
if (k(m, h)) return g[h] === b;
|
|
8692
|
-
var
|
|
8693
|
-
return new RegExp(
|
|
8692
|
+
var C = c[g[h]];
|
|
8693
|
+
return new RegExp(C).test(b);
|
|
8694
8694
|
}
|
|
8695
|
-
function
|
|
8695
|
+
function S(m, h) {
|
|
8696
8696
|
return h.split("").every(function(b, g) {
|
|
8697
8697
|
return k(m, g) || !_(m, g, b);
|
|
8698
8698
|
});
|
|
@@ -8703,10 +8703,10 @@ function Ld() {
|
|
|
8703
8703
|
for (; h.length > g.length && k(m, h.length - 1); ) h = h.slice(0, h.length - 1);
|
|
8704
8704
|
return h.length;
|
|
8705
8705
|
}
|
|
8706
|
-
for (var c = g.length,
|
|
8707
|
-
var N = h[
|
|
8708
|
-
if (!k(m,
|
|
8709
|
-
c =
|
|
8706
|
+
for (var c = g.length, C = h.length; C >= g.length; C--) {
|
|
8707
|
+
var N = h[C];
|
|
8708
|
+
if (!k(m, C) && _(m, C, N)) {
|
|
8709
|
+
c = C + 1;
|
|
8710
8710
|
break;
|
|
8711
8711
|
}
|
|
8712
8712
|
}
|
|
@@ -8715,41 +8715,41 @@ function Ld() {
|
|
|
8715
8715
|
function O(m, h) {
|
|
8716
8716
|
return M(m, h) === m.mask.length;
|
|
8717
8717
|
}
|
|
8718
|
-
function
|
|
8718
|
+
function R(m, h) {
|
|
8719
8719
|
var b = m.maskChar, g = m.mask, c = m.prefix;
|
|
8720
8720
|
if (!b) {
|
|
8721
8721
|
for ((h = U(m, "", h, 0)).length < c.length && (h = c); h.length < g.length && k(m, h.length); ) h += g[h.length];
|
|
8722
8722
|
return h;
|
|
8723
8723
|
}
|
|
8724
|
-
if (h) return U(m,
|
|
8725
|
-
for (var
|
|
8724
|
+
if (h) return U(m, R(m, ""), h, 0);
|
|
8725
|
+
for (var C = 0; C < g.length; C++) k(m, C) ? h += g[C] : h += b;
|
|
8726
8726
|
return h;
|
|
8727
8727
|
}
|
|
8728
|
-
function
|
|
8729
|
-
var c = b + g,
|
|
8730
|
-
if (
|
|
8731
|
-
return Q < b || c <= Q ? V : k(m, Q) ? N[Q] :
|
|
8728
|
+
function E(m, h, b, g) {
|
|
8729
|
+
var c = b + g, C = m.maskChar, N = m.mask, B = m.prefix, j = h.split("");
|
|
8730
|
+
if (C) return j.map(function(V, Q) {
|
|
8731
|
+
return Q < b || c <= Q ? V : k(m, Q) ? N[Q] : C;
|
|
8732
8732
|
}).join("");
|
|
8733
|
-
for (var L = c; L <
|
|
8734
|
-
return b = Math.max(B.length, b),
|
|
8733
|
+
for (var L = c; L < j.length; L++) k(m, L) && (j[L] = "");
|
|
8734
|
+
return b = Math.max(B.length, b), j.splice(b, c - b), h = j.join(""), R(m, h);
|
|
8735
8735
|
}
|
|
8736
8736
|
function U(m, h, b, g) {
|
|
8737
|
-
var c = m.mask,
|
|
8738
|
-
return !
|
|
8739
|
-
for (;
|
|
8740
|
-
if (g >= h.length && (h += c[g]), V = L, Q = g,
|
|
8737
|
+
var c = m.mask, C = m.maskChar, N = m.prefix, B = b.split(""), j = O(m, h);
|
|
8738
|
+
return !C && g > h.length && (h += c.slice(h.length, g)), B.every(function(L) {
|
|
8739
|
+
for (; I = L, k(m, ee = g) && I !== c[ee]; ) {
|
|
8740
|
+
if (g >= h.length && (h += c[g]), V = L, Q = g, C && k(m, Q) && V === C) return !0;
|
|
8741
8741
|
if (++g >= c.length) return !1;
|
|
8742
8742
|
}
|
|
8743
|
-
var V, Q, ee,
|
|
8744
|
-
return !_(m, g, L) && L !==
|
|
8743
|
+
var V, Q, ee, I;
|
|
8744
|
+
return !_(m, g, L) && L !== C || (g < h.length ? h = C || j || g < N.length ? h.slice(0, g) + L + h.slice(g + 1) : (h = h.slice(0, g) + L + h.slice(g), R(m, h)) : C || (h += L), ++g < c.length);
|
|
8745
8745
|
}), h;
|
|
8746
8746
|
}
|
|
8747
8747
|
function q(m, h, b, g) {
|
|
8748
|
-
var c = m.mask,
|
|
8749
|
-
return N.every(function(
|
|
8750
|
-
for (; V =
|
|
8748
|
+
var c = m.mask, C = m.maskChar, N = b.split(""), B = g;
|
|
8749
|
+
return N.every(function(j) {
|
|
8750
|
+
for (; V = j, k(m, L = g) && V !== c[L]; ) if (++g >= c.length) return !1;
|
|
8751
8751
|
var L, V;
|
|
8752
|
-
return (_(m, g,
|
|
8752
|
+
return (_(m, g, j) || j === C) && g++, g < c.length;
|
|
8753
8753
|
}), g - B;
|
|
8754
8754
|
}
|
|
8755
8755
|
function P(m, h) {
|
|
@@ -8764,8 +8764,8 @@ function Ld() {
|
|
|
8764
8764
|
return m || m === 0 ? m + "" : "";
|
|
8765
8765
|
}
|
|
8766
8766
|
function re(m, h, b, g, c) {
|
|
8767
|
-
var
|
|
8768
|
-
return b.end > c.start ? Q = (V = q(m, g, L =
|
|
8767
|
+
var C = m.mask, N = m.prefix, B = m.lastEditablePosition, j = h, L = "", V = 0, Q = 0, ee = Math.min(c.start, b.start);
|
|
8768
|
+
return b.end > c.start ? Q = (V = q(m, g, L = j.slice(c.start, b.end), ee)) ? c.length : 0 : j.length < g.length && (Q = g.length - j.length), j = g, Q && (Q === 1 && !c.length && (ee = c.start === b.start ? W(m, b.start) : P(m, b.start)), j = E(m, j, ee, Q)), j = U(m, j, L, ee), (ee += V) >= C.length ? ee = C.length : ee < N.length && !V ? ee = N.length : ee >= N.length && ee < B && V && (ee = W(m, ee)), L || (L = null), { value: j = R(m, j), enteredString: L, selection: { start: ee, end: ee } };
|
|
8769
8769
|
}
|
|
8770
8770
|
function ie() {
|
|
8771
8771
|
var m = new RegExp("windows", "i"), h = new RegExp("phone", "i"), b = navigator.userAgent;
|
|
@@ -8838,7 +8838,7 @@ function Ld() {
|
|
|
8838
8838
|
return !c.focused || Y.end < ae.length && G.end === J.length;
|
|
8839
8839
|
}, c.onChange = function(J) {
|
|
8840
8840
|
var G = s(s(c)).beforePasteState, ae = s(s(c)).previousSelection, Y = c.props.beforeMaskedValueChange, H = c.getInputValue(), ne = c.value, ce = c.getSelection();
|
|
8841
|
-
c.isInputAutofilled(H, ce, ne, ae) && (ne =
|
|
8841
|
+
c.isInputAutofilled(H, ce, ne, ae) && (ne = R(c.maskOptions, ""), ae = { start: 0, end: 0, length: 0 }), G && (ae = G.selection, ne = G.value, ce = { start: ae.start + H.length, end: ae.start + H.length, length: 0 }, H = ne.slice(0, ae.start) + H + ne.slice(ae.end), c.beforePasteState = null);
|
|
8842
8842
|
var ye = re(c.maskOptions, H, ce, ne, ae), We = ye.enteredString, Le = ye.selection, Qe = ye.value;
|
|
8843
8843
|
if (X(Y)) {
|
|
8844
8844
|
var ot = Y({ value: Qe, selection: Le }, { value: ne, selection: ae }, We, c.getBeforeMaskedValueChangeConfig());
|
|
@@ -8850,7 +8850,7 @@ function Ld() {
|
|
|
8850
8850
|
if (c.focused = !0, c.mounted = !0, Y) {
|
|
8851
8851
|
if (c.value) M(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
8852
8852
|
else {
|
|
8853
|
-
var ne =
|
|
8853
|
+
var ne = R(c.maskOptions, H), ce = R(c.maskOptions, ne), ye = M(c.maskOptions, ce), We = W(c.maskOptions, ye), Le = { start: We, end: We };
|
|
8854
8854
|
if (X(G)) {
|
|
8855
8855
|
var Qe = G({ value: ce, selection: Le }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
|
|
8856
8856
|
ce = Qe.value, Le = Qe.selection;
|
|
@@ -8863,7 +8863,7 @@ function Ld() {
|
|
|
8863
8863
|
X(c.props.onFocus) && c.props.onFocus(J);
|
|
8864
8864
|
}, c.onBlur = function(J) {
|
|
8865
8865
|
var G = c.props.beforeMaskedValueChange, ae = c.maskOptions.mask;
|
|
8866
|
-
if (c.stopSaveSelectionLoop(), c.focused = !1, ae && !c.props.alwaysShowMask &&
|
|
8866
|
+
if (c.stopSaveSelectionLoop(), c.focused = !1, ae && !c.props.alwaysShowMask && S(c.maskOptions, c.value)) {
|
|
8867
8867
|
var Y = "";
|
|
8868
8868
|
X(G) && (Y = G({ value: Y, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
|
|
8869
8869
|
var H = Y !== c.getInputValue();
|
|
@@ -8887,12 +8887,12 @@ function Ld() {
|
|
|
8887
8887
|
}, c.handleRef = function(J) {
|
|
8888
8888
|
c.props.children == null && X(c.props.inputRef) && c.props.inputRef(J);
|
|
8889
8889
|
};
|
|
8890
|
-
var
|
|
8891
|
-
c.maskOptions = D(
|
|
8890
|
+
var C = g.mask, N = g.maskChar, B = g.formatChars, j = g.alwaysShowMask, L = g.beforeMaskedValueChange, V = g.defaultValue, Q = g.value;
|
|
8891
|
+
c.maskOptions = D(C, N, B), V == null && (V = ""), Q == null && (Q = V);
|
|
8892
8892
|
var ee = z(Q);
|
|
8893
|
-
if (c.maskOptions.mask && (
|
|
8894
|
-
var
|
|
8895
|
-
g.value == null && (
|
|
8893
|
+
if (c.maskOptions.mask && (j || ee) && (ee = R(c.maskOptions, ee), X(L))) {
|
|
8894
|
+
var I = g.value;
|
|
8895
|
+
g.value == null && (I = V), ee = L({ value: ee, selection: null }, { value: I = z(I), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
|
|
8896
8896
|
}
|
|
8897
8897
|
return c.value = ee, c;
|
|
8898
8898
|
}
|
|
@@ -8901,21 +8901,21 @@ function Ld() {
|
|
|
8901
8901
|
return b.componentDidMount = function() {
|
|
8902
8902
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ie(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
8903
8903
|
}, b.componentDidUpdate = function() {
|
|
8904
|
-
var g = this.previousSelection, c = this.props,
|
|
8905
|
-
if (this.maskOptions = D(B,
|
|
8904
|
+
var g = this.previousSelection, c = this.props, C = c.beforeMaskedValueChange, N = c.alwaysShowMask, B = c.mask, j = c.maskChar, L = c.formatChars, V = this.maskOptions, Q = N || this.isFocused(), ee = this.props.value != null, I = ee ? z(this.props.value) : this.value, J = g ? g.start : null;
|
|
8905
|
+
if (this.maskOptions = D(B, j, L), this.maskOptions.mask) {
|
|
8906
8906
|
!V.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
8907
8907
|
var G = this.maskOptions.mask && this.maskOptions.mask !== V.mask;
|
|
8908
|
-
if (V.mask || ee || (
|
|
8909
|
-
var ae = M(this.maskOptions,
|
|
8910
|
-
(J === null || ae < J) && (J = O(this.maskOptions,
|
|
8908
|
+
if (V.mask || ee || (I = this.getInputValue()), (G || this.maskOptions.mask && (I || Q)) && (I = R(this.maskOptions, I)), G) {
|
|
8909
|
+
var ae = M(this.maskOptions, I);
|
|
8910
|
+
(J === null || ae < J) && (J = O(this.maskOptions, I) ? ae : W(this.maskOptions, ae));
|
|
8911
8911
|
}
|
|
8912
|
-
!this.maskOptions.mask || !
|
|
8912
|
+
!this.maskOptions.mask || !S(this.maskOptions, I) || Q || ee && this.props.value || (I = "");
|
|
8913
8913
|
var Y = { start: J, end: J };
|
|
8914
|
-
if (X(
|
|
8915
|
-
var H =
|
|
8916
|
-
|
|
8914
|
+
if (X(C)) {
|
|
8915
|
+
var H = C({ value: I, selection: Y }, { value: this.value, selection: this.previousSelection }, null, this.getBeforeMaskedValueChangeConfig());
|
|
8916
|
+
I = H.value, Y = H.selection;
|
|
8917
8917
|
}
|
|
8918
|
-
this.value =
|
|
8918
|
+
this.value = I;
|
|
8919
8919
|
var ne = this.getInputValue() !== this.value;
|
|
8920
8920
|
ne ? (this.setInputValue(this.value), this.forceUpdate()) : G && this.forceUpdate();
|
|
8921
8921
|
var ce = !1;
|
|
@@ -8924,13 +8924,13 @@ function Ld() {
|
|
|
8924
8924
|
}, b.componentWillUnmount = function() {
|
|
8925
8925
|
this.mounted = !1, this.selectionDeferId !== null && T(this.selectionDeferId), this.stopSaveSelectionLoop();
|
|
8926
8926
|
}, b.render = function() {
|
|
8927
|
-
var g, c = this.props,
|
|
8928
|
-
if (
|
|
8929
|
-
X(
|
|
8930
|
-
var B = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"],
|
|
8927
|
+
var g, c = this.props, C = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), N = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
|
|
8928
|
+
if (C) {
|
|
8929
|
+
X(C) || u(!1);
|
|
8930
|
+
var B = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], j = r({}, N);
|
|
8931
8931
|
B.forEach(function(V) {
|
|
8932
|
-
return delete
|
|
8933
|
-
}), g =
|
|
8932
|
+
return delete j[V];
|
|
8933
|
+
}), g = C(j), B.filter(function(V) {
|
|
8934
8934
|
return g.props[V] != null && g.props[V] !== N[V];
|
|
8935
8935
|
}).length && u(!1);
|
|
8936
8936
|
} else g = a.createElement("input", r({ ref: this.handleRef }, N));
|
|
@@ -9011,8 +9011,8 @@ function Ad() {
|
|
|
9011
9011
|
var a = n(F), t = ia, e = n(Fd()), r = n(Yd());
|
|
9012
9012
|
function o(m, h) {
|
|
9013
9013
|
for (var b = Object.getOwnPropertyNames(h), g = 0; g < b.length; g++) {
|
|
9014
|
-
var c = b[g],
|
|
9015
|
-
|
|
9014
|
+
var c = b[g], C = Object.getOwnPropertyDescriptor(h, c);
|
|
9015
|
+
C && C.configurable && m[c] === void 0 && Object.defineProperty(m, c, C);
|
|
9016
9016
|
}
|
|
9017
9017
|
return m;
|
|
9018
9018
|
}
|
|
@@ -9031,9 +9031,9 @@ function Ad() {
|
|
|
9031
9031
|
}
|
|
9032
9032
|
function l(m, h) {
|
|
9033
9033
|
if (m == null) return {};
|
|
9034
|
-
var b = {}, g = Object.keys(m), c,
|
|
9035
|
-
for (
|
|
9036
|
-
c = g[
|
|
9034
|
+
var b = {}, g = Object.keys(m), c, C;
|
|
9035
|
+
for (C = 0; C < g.length; C++)
|
|
9036
|
+
c = g[C], !(h.indexOf(c) >= 0) && (b[c] = m[c]);
|
|
9037
9037
|
return b;
|
|
9038
9038
|
}
|
|
9039
9039
|
function u(m) {
|
|
@@ -9069,7 +9069,7 @@ function Ad() {
|
|
|
9069
9069
|
"*": "[A-Za-z0-9]"
|
|
9070
9070
|
}, y = "_";
|
|
9071
9071
|
function D(m, h, b) {
|
|
9072
|
-
var g = "", c = "",
|
|
9072
|
+
var g = "", c = "", C = null, N = [];
|
|
9073
9073
|
if (h === void 0 && (h = y), b == null && (b = v), !m || typeof m != "string")
|
|
9074
9074
|
return {
|
|
9075
9075
|
maskChar: h,
|
|
@@ -9080,14 +9080,14 @@ function Ad() {
|
|
|
9080
9080
|
permanents: []
|
|
9081
9081
|
};
|
|
9082
9082
|
var B = !1;
|
|
9083
|
-
return m.split("").forEach(function(
|
|
9084
|
-
!B &&
|
|
9083
|
+
return m.split("").forEach(function(j) {
|
|
9084
|
+
!B && j === "\\" ? B = !0 : (B || !b[j] ? (N.push(g.length), g.length === N.length - 1 && (c += j)) : C = g.length + 1, g += j, B = !1);
|
|
9085
9085
|
}), {
|
|
9086
9086
|
maskChar: h,
|
|
9087
9087
|
formatChars: b,
|
|
9088
9088
|
prefix: c,
|
|
9089
9089
|
mask: g,
|
|
9090
|
-
lastEditablePosition:
|
|
9090
|
+
lastEditablePosition: C,
|
|
9091
9091
|
permanents: N
|
|
9092
9092
|
};
|
|
9093
9093
|
}
|
|
@@ -9100,10 +9100,10 @@ function Ad() {
|
|
|
9100
9100
|
return !1;
|
|
9101
9101
|
if (k(m, h))
|
|
9102
9102
|
return g[h] === b;
|
|
9103
|
-
var
|
|
9103
|
+
var C = g[h], N = c[C];
|
|
9104
9104
|
return new RegExp(N).test(b);
|
|
9105
9105
|
}
|
|
9106
|
-
function
|
|
9106
|
+
function S(m, h) {
|
|
9107
9107
|
return h.split("").every(function(b, g) {
|
|
9108
9108
|
return k(m, g) || !_(m, g, b);
|
|
9109
9109
|
});
|
|
@@ -9115,10 +9115,10 @@ function Ad() {
|
|
|
9115
9115
|
h = h.slice(0, h.length - 1);
|
|
9116
9116
|
return h.length;
|
|
9117
9117
|
}
|
|
9118
|
-
for (var c = g.length,
|
|
9119
|
-
var N = h[
|
|
9118
|
+
for (var c = g.length, C = h.length; C >= g.length; C--) {
|
|
9119
|
+
var N = h[C], B = !k(m, C) && _(m, C, N);
|
|
9120
9120
|
if (B) {
|
|
9121
|
-
c =
|
|
9121
|
+
c = C + 1;
|
|
9122
9122
|
break;
|
|
9123
9123
|
}
|
|
9124
9124
|
}
|
|
@@ -9127,7 +9127,7 @@ function Ad() {
|
|
|
9127
9127
|
function O(m, h) {
|
|
9128
9128
|
return M(m, h) === m.mask.length;
|
|
9129
9129
|
}
|
|
9130
|
-
function
|
|
9130
|
+
function R(m, h) {
|
|
9131
9131
|
var b = m.maskChar, g = m.mask, c = m.prefix;
|
|
9132
9132
|
if (!b) {
|
|
9133
9133
|
for (h = U(m, "", h, 0), h.length < c.length && (h = c); h.length < g.length && k(m, h.length); )
|
|
@@ -9135,50 +9135,50 @@ function Ad() {
|
|
|
9135
9135
|
return h;
|
|
9136
9136
|
}
|
|
9137
9137
|
if (h) {
|
|
9138
|
-
var
|
|
9139
|
-
return U(m,
|
|
9138
|
+
var C = R(m, "");
|
|
9139
|
+
return U(m, C, h, 0);
|
|
9140
9140
|
}
|
|
9141
9141
|
for (var N = 0; N < g.length; N++)
|
|
9142
9142
|
k(m, N) ? h += g[N] : h += b;
|
|
9143
9143
|
return h;
|
|
9144
9144
|
}
|
|
9145
|
-
function
|
|
9146
|
-
var c = b + g,
|
|
9147
|
-
if (!
|
|
9148
|
-
for (var L = c; L <
|
|
9149
|
-
k(m, L) && (
|
|
9150
|
-
return b = Math.max(B.length, b),
|
|
9145
|
+
function E(m, h, b, g) {
|
|
9146
|
+
var c = b + g, C = m.maskChar, N = m.mask, B = m.prefix, j = h.split("");
|
|
9147
|
+
if (!C) {
|
|
9148
|
+
for (var L = c; L < j.length; L++)
|
|
9149
|
+
k(m, L) && (j[L] = "");
|
|
9150
|
+
return b = Math.max(B.length, b), j.splice(b, c - b), h = j.join(""), R(m, h);
|
|
9151
9151
|
}
|
|
9152
|
-
return
|
|
9153
|
-
return Q < b || Q >= c ? V : k(m, Q) ? N[Q] :
|
|
9152
|
+
return j.map(function(V, Q) {
|
|
9153
|
+
return Q < b || Q >= c ? V : k(m, Q) ? N[Q] : C;
|
|
9154
9154
|
}).join("");
|
|
9155
9155
|
}
|
|
9156
9156
|
function U(m, h, b, g) {
|
|
9157
|
-
var c = m.mask,
|
|
9158
|
-
return !k(m, ee) ||
|
|
9159
|
-
}, V = function(ee,
|
|
9160
|
-
return !
|
|
9157
|
+
var c = m.mask, C = m.maskChar, N = m.prefix, B = b.split(""), j = O(m, h), L = function(ee, I) {
|
|
9158
|
+
return !k(m, ee) || I === c[ee];
|
|
9159
|
+
}, V = function(ee, I) {
|
|
9160
|
+
return !C || !k(m, I) || ee !== C;
|
|
9161
9161
|
};
|
|
9162
|
-
return !
|
|
9162
|
+
return !C && g > h.length && (h += c.slice(h.length, g)), B.every(function(Q) {
|
|
9163
9163
|
for (; !L(g, Q); ) {
|
|
9164
9164
|
if (g >= h.length && (h += c[g]), !V(Q, g))
|
|
9165
9165
|
return !0;
|
|
9166
9166
|
if (g++, g >= c.length)
|
|
9167
9167
|
return !1;
|
|
9168
9168
|
}
|
|
9169
|
-
var ee = _(m, g, Q) || Q ===
|
|
9170
|
-
return ee ? (g < h.length ?
|
|
9169
|
+
var ee = _(m, g, Q) || Q === C;
|
|
9170
|
+
return ee ? (g < h.length ? C || j || g < N.length ? h = h.slice(0, g) + Q + h.slice(g + 1) : (h = h.slice(0, g) + Q + h.slice(g), h = R(m, h)) : C || (h += Q), g++, g < c.length) : !0;
|
|
9171
9171
|
}), h;
|
|
9172
9172
|
}
|
|
9173
9173
|
function q(m, h, b, g) {
|
|
9174
|
-
var c = m.mask,
|
|
9174
|
+
var c = m.mask, C = m.maskChar, N = b.split(""), B = g, j = function(V, Q) {
|
|
9175
9175
|
return !k(m, V) || Q === c[V];
|
|
9176
9176
|
};
|
|
9177
9177
|
return N.every(function(L) {
|
|
9178
|
-
for (; !
|
|
9178
|
+
for (; !j(g, L); )
|
|
9179
9179
|
if (g++, g >= c.length)
|
|
9180
9180
|
return !1;
|
|
9181
|
-
var V = _(m, g, L) || L ===
|
|
9181
|
+
var V = _(m, g, L) || L === C;
|
|
9182
9182
|
return V && g++, g < c.length;
|
|
9183
9183
|
}), g - B;
|
|
9184
9184
|
}
|
|
@@ -9198,16 +9198,16 @@ function Ad() {
|
|
|
9198
9198
|
return !m && m !== 0 ? "" : m + "";
|
|
9199
9199
|
}
|
|
9200
9200
|
function re(m, h, b, g, c) {
|
|
9201
|
-
var
|
|
9202
|
-
if (b.end > c.start ? (L =
|
|
9201
|
+
var C = m.mask, N = m.prefix, B = m.lastEditablePosition, j = h, L = "", V = 0, Q = 0, ee = Math.min(c.start, b.start);
|
|
9202
|
+
if (b.end > c.start ? (L = j.slice(c.start, b.end), V = q(m, g, L, ee), V ? Q = c.length : Q = 0) : j.length < g.length && (Q = g.length - j.length), j = g, Q) {
|
|
9203
9203
|
if (Q === 1 && !c.length) {
|
|
9204
|
-
var
|
|
9205
|
-
ee =
|
|
9204
|
+
var I = c.start === b.start;
|
|
9205
|
+
ee = I ? W(m, b.start) : P(m, b.start);
|
|
9206
9206
|
}
|
|
9207
|
-
|
|
9207
|
+
j = E(m, j, ee, Q);
|
|
9208
9208
|
}
|
|
9209
|
-
return
|
|
9210
|
-
value:
|
|
9209
|
+
return j = U(m, j, L, ee), ee = ee + V, ee >= C.length ? ee = C.length : ee < N.length && !V ? ee = N.length : ee >= N.length && ee < B && V && (ee = W(m, ee)), j = R(m, j), L || (L = null), {
|
|
9210
|
+
value: j,
|
|
9211
9211
|
enteredString: L,
|
|
9212
9212
|
selection: {
|
|
9213
9213
|
start: ee,
|
|
@@ -9307,7 +9307,7 @@ function Ad() {
|
|
|
9307
9307
|
return c.focused ? H.end < Y.length && ae.end === G.length : !0;
|
|
9308
9308
|
}, c.onChange = function(G) {
|
|
9309
9309
|
var ae = u(u(c)), Y = ae.beforePasteState, H = u(u(c)), ne = H.previousSelection, ce = c.props.beforeMaskedValueChange, ye = c.getInputValue(), We = c.value, Le = c.getSelection();
|
|
9310
|
-
c.isInputAutofilled(ye, Le, We, ne) && (We =
|
|
9310
|
+
c.isInputAutofilled(ye, Le, We, ne) && (We = R(c.maskOptions, ""), ne = {
|
|
9311
9311
|
start: 0,
|
|
9312
9312
|
end: 0,
|
|
9313
9313
|
length: 0
|
|
@@ -9336,7 +9336,7 @@ function Ad() {
|
|
|
9336
9336
|
if (c.value)
|
|
9337
9337
|
M(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
9338
9338
|
else {
|
|
9339
|
-
var ce =
|
|
9339
|
+
var ce = R(c.maskOptions, ne), ye = R(c.maskOptions, ce), We = M(c.maskOptions, ye), Le = W(c.maskOptions, We), Qe = {
|
|
9340
9340
|
start: Le,
|
|
9341
9341
|
end: Le
|
|
9342
9342
|
};
|
|
@@ -9358,7 +9358,7 @@ function Ad() {
|
|
|
9358
9358
|
X(c.props.onFocus) && c.props.onFocus(G);
|
|
9359
9359
|
}, c.onBlur = function(G) {
|
|
9360
9360
|
var ae = c.props.beforeMaskedValueChange, Y = c.maskOptions.mask;
|
|
9361
|
-
if (c.stopSaveSelectionLoop(), c.focused = !1, Y && !c.props.alwaysShowMask &&
|
|
9361
|
+
if (c.stopSaveSelectionLoop(), c.focused = !1, Y && !c.props.alwaysShowMask && S(c.maskOptions, c.value)) {
|
|
9362
9362
|
var H = "";
|
|
9363
9363
|
if (X(ae)) {
|
|
9364
9364
|
var ne = ae({
|
|
@@ -9394,17 +9394,17 @@ function Ad() {
|
|
|
9394
9394
|
}, c.handleRef = function(G) {
|
|
9395
9395
|
c.props.children == null && X(c.props.inputRef) && c.props.inputRef(G);
|
|
9396
9396
|
};
|
|
9397
|
-
var
|
|
9398
|
-
c.maskOptions = D(
|
|
9397
|
+
var C = g.mask, N = g.maskChar, B = g.formatChars, j = g.alwaysShowMask, L = g.beforeMaskedValueChange, V = g.defaultValue, Q = g.value;
|
|
9398
|
+
c.maskOptions = D(C, N, B), V == null && (V = ""), Q == null && (Q = V);
|
|
9399
9399
|
var ee = z(Q);
|
|
9400
|
-
if (c.maskOptions.mask && (
|
|
9401
|
-
var
|
|
9402
|
-
g.value == null && (
|
|
9400
|
+
if (c.maskOptions.mask && (j || ee) && (ee = R(c.maskOptions, ee), X(L))) {
|
|
9401
|
+
var I = g.value;
|
|
9402
|
+
g.value == null && (I = V), I = z(I);
|
|
9403
9403
|
var J = L({
|
|
9404
9404
|
value: ee,
|
|
9405
9405
|
selection: null
|
|
9406
9406
|
}, {
|
|
9407
|
-
value:
|
|
9407
|
+
value: I,
|
|
9408
9408
|
selection: null
|
|
9409
9409
|
}, null, c.getBeforeMaskedValueChangeConfig());
|
|
9410
9410
|
ee = J.value;
|
|
@@ -9415,19 +9415,19 @@ function Ad() {
|
|
|
9415
9415
|
return b.componentDidMount = function() {
|
|
9416
9416
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ie(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
9417
9417
|
}, b.componentDidUpdate = function() {
|
|
9418
|
-
var c = this.previousSelection,
|
|
9419
|
-
if (this.maskOptions = D(
|
|
9418
|
+
var c = this.previousSelection, C = this.props, N = C.beforeMaskedValueChange, B = C.alwaysShowMask, j = C.mask, L = C.maskChar, V = C.formatChars, Q = this.maskOptions, ee = B || this.isFocused(), I = this.props.value != null, J = I ? z(this.props.value) : this.value, G = c ? c.start : null;
|
|
9419
|
+
if (this.maskOptions = D(j, L, V), this.maskOptions.mask)
|
|
9420
9420
|
!Q.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
9421
9421
|
else {
|
|
9422
9422
|
Q.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
|
|
9423
9423
|
return;
|
|
9424
9424
|
}
|
|
9425
9425
|
var ae = this.maskOptions.mask && this.maskOptions.mask !== Q.mask;
|
|
9426
|
-
if (!Q.mask && !
|
|
9426
|
+
if (!Q.mask && !I && (J = this.getInputValue()), (ae || this.maskOptions.mask && (J || ee)) && (J = R(this.maskOptions, J)), ae) {
|
|
9427
9427
|
var Y = M(this.maskOptions, J);
|
|
9428
9428
|
(G === null || Y < G) && (O(this.maskOptions, J) ? G = Y : G = W(this.maskOptions, Y));
|
|
9429
9429
|
}
|
|
9430
|
-
this.maskOptions.mask &&
|
|
9430
|
+
this.maskOptions.mask && S(this.maskOptions, J) && !ee && (!I || !this.props.value) && (J = "");
|
|
9431
9431
|
var H = {
|
|
9432
9432
|
start: G,
|
|
9433
9433
|
end: G
|
|
@@ -9450,26 +9450,26 @@ function Ad() {
|
|
|
9450
9450
|
}, b.componentWillUnmount = function() {
|
|
9451
9451
|
this.mounted = !1, this.selectionDeferId !== null && T(this.selectionDeferId), this.stopSaveSelectionLoop();
|
|
9452
9452
|
}, b.render = function() {
|
|
9453
|
-
var c = this.props,
|
|
9453
|
+
var c = this.props, C = c.mask;
|
|
9454
9454
|
c.alwaysShowMask;
|
|
9455
|
-
var N = c.maskChar, B = c.formatChars,
|
|
9455
|
+
var N = c.maskChar, B = c.formatChars, j = c.inputRef;
|
|
9456
9456
|
c.beforeMaskedValueChange;
|
|
9457
9457
|
var L = c.children, V = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), Q;
|
|
9458
9458
|
if (process.env.NODE_ENV !== "production" && r(
|
|
9459
9459
|
// parse mask to test against actual mask prop as this.maskOptions
|
|
9460
9460
|
// will be updated later in componentDidUpdate
|
|
9461
|
-
!V.maxLength || !D(
|
|
9461
|
+
!V.maxLength || !D(C, N, B).mask,
|
|
9462
9462
|
"react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length."
|
|
9463
9463
|
), L) {
|
|
9464
9464
|
X(L) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
|
|
9465
|
-
var ee = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"],
|
|
9465
|
+
var ee = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], I = i({}, V);
|
|
9466
9466
|
ee.forEach(function(ae) {
|
|
9467
|
-
return delete
|
|
9468
|
-
}), Q = L(
|
|
9467
|
+
return delete I[ae];
|
|
9468
|
+
}), Q = L(I);
|
|
9469
9469
|
var J = ee.filter(function(ae) {
|
|
9470
9470
|
return Q.props[ae] != null && Q.props[ae] !== V[ae];
|
|
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(!j, "react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead");
|
|
9473
9473
|
} else
|
|
9474
9474
|
Q = a.createElement("input", i({
|
|
9475
9475
|
ref: this.handleRef
|
|
@@ -10093,7 +10093,7 @@ const qr = [
|
|
|
10093
10093
|
decreaseMonth: D,
|
|
10094
10094
|
increaseMonth: k,
|
|
10095
10095
|
prevMonthButtonDisabled: _,
|
|
10096
|
-
nextMonthButtonDisabled:
|
|
10096
|
+
nextMonthButtonDisabled: S
|
|
10097
10097
|
}) => /* @__PURE__ */ p.jsxs(
|
|
10098
10098
|
"div",
|
|
10099
10099
|
{
|
|
@@ -10155,7 +10155,7 @@ const qr = [
|
|
|
10155
10155
|
onClick: (M) => {
|
|
10156
10156
|
M.preventDefault(), k();
|
|
10157
10157
|
},
|
|
10158
|
-
disabled:
|
|
10158
|
+
disabled: S,
|
|
10159
10159
|
children: ">"
|
|
10160
10160
|
}
|
|
10161
10161
|
)
|
|
@@ -10408,14 +10408,14 @@ const zn = (n) => {
|
|
|
10408
10408
|
sort: D,
|
|
10409
10409
|
setSort: k,
|
|
10410
10410
|
resize: _,
|
|
10411
|
-
onMouseDown:
|
|
10411
|
+
onMouseDown: S,
|
|
10412
10412
|
columnWidths: M,
|
|
10413
10413
|
setColumnWidths: O,
|
|
10414
|
-
tableRight:
|
|
10415
|
-
isParentDataField:
|
|
10414
|
+
tableRight: R,
|
|
10415
|
+
isParentDataField: E
|
|
10416
10416
|
}) => {
|
|
10417
10417
|
var G, ae;
|
|
10418
|
-
const U = `${n}th${a}`, q = "auto", [P, W] = he(), [z, re] = he(), [ie, X] = he(), [te, oe] = he(), [A, T] = he(0), [$, m] = he(""), [h, b] = he(), [g, c] = he(!1), [
|
|
10418
|
+
const U = `${n}th${a}`, q = "auto", [P, W] = he(), [z, re] = he(), [ie, X] = he(), [te, oe] = he(), [A, T] = he(0), [$, m] = he(""), [h, b] = he(), [g, c] = he(!1), [C, N] = he(), B = Xe(), j = Dr(() => {
|
|
10419
10419
|
l === U && u(void 0);
|
|
10420
10420
|
}), L = (Y) => {
|
|
10421
10421
|
let H = 0;
|
|
@@ -10439,12 +10439,12 @@ const zn = (n) => {
|
|
|
10439
10439
|
id: H,
|
|
10440
10440
|
type: "checkbox",
|
|
10441
10441
|
checked: ((ne = d[H]) == null ? void 0 : ne.find((ce) => ce === Y)) !== Y,
|
|
10442
|
-
onChange: () =>
|
|
10442
|
+
onChange: () => I(Y, H)
|
|
10443
10443
|
}
|
|
10444
10444
|
),
|
|
10445
10445
|
/* @__PURE__ */ p.jsx("div", { className: "u-checkbox-input" })
|
|
10446
10446
|
] });
|
|
10447
|
-
},
|
|
10447
|
+
}, I = (Y, H) => {
|
|
10448
10448
|
var ne;
|
|
10449
10449
|
f(
|
|
10450
10450
|
H in d ? d[H].filter((ce) => ce !== Y).length === 0 ? Object.keys(d).filter((ce) => ce !== String(H)).reduce(
|
|
@@ -10540,7 +10540,7 @@ const zn = (n) => {
|
|
|
10540
10540
|
"th",
|
|
10541
10541
|
{
|
|
10542
10542
|
ref: (Y) => {
|
|
10543
|
-
Y && (
|
|
10543
|
+
Y && (j.current = Y, B.current = Y);
|
|
10544
10544
|
},
|
|
10545
10545
|
id: U,
|
|
10546
10546
|
className: `${s.sticky ? "sticky" : ""} ${_ && !s.resizeOff ? "resize" : ""}`,
|
|
@@ -10569,7 +10569,7 @@ const zn = (n) => {
|
|
|
10569
10569
|
display: "flex",
|
|
10570
10570
|
alignItems: "center",
|
|
10571
10571
|
justifyContent: "space-between",
|
|
10572
|
-
width: _ && !s.resizeOff && (s != null && s.width) ? M[s.field] >= s.width ?
|
|
10572
|
+
width: _ && !s.resizeOff && (s != null && s.width) ? M[s.field] >= s.width ? E && a === 0 ? M[s.field] + 24 : M[s.field] : To(s.width) : _ && !s.resizeOff || s != null && s.width ? E && a === 0 ? M[s.field] + 24 : M[s.field] : q,
|
|
10573
10573
|
minWidth: _ && !s.resizeOff && s.width ? To(s.width) : "",
|
|
10574
10574
|
position: s.sticky ? "sticky" : "",
|
|
10575
10575
|
height: A - 2,
|
|
@@ -10681,16 +10681,16 @@ const zn = (n) => {
|
|
|
10681
10681
|
cursor: "col-resize",
|
|
10682
10682
|
zIndex: 10
|
|
10683
10683
|
},
|
|
10684
|
-
onMouseDown: (Y) =>
|
|
10684
|
+
onMouseDown: (Y) => S(Y)
|
|
10685
10685
|
}
|
|
10686
10686
|
),
|
|
10687
|
-
l === U &&
|
|
10687
|
+
l === U && C && s.filterType === "date" && /* @__PURE__ */ p.jsxs(
|
|
10688
10688
|
"div",
|
|
10689
10689
|
{
|
|
10690
10690
|
className: "select-params__box",
|
|
10691
10691
|
style: {
|
|
10692
|
-
left:
|
|
10693
|
-
right: 0,
|
|
10692
|
+
left: R - C < 278 ? "unset" : 0,
|
|
10693
|
+
right: R - C < 278 ? M[s.field] - (R - C) : 0,
|
|
10694
10694
|
top: A + 2,
|
|
10695
10695
|
position: "absolute",
|
|
10696
10696
|
minWidth: 278,
|
|
@@ -10791,13 +10791,13 @@ const zn = (n) => {
|
|
|
10791
10791
|
]
|
|
10792
10792
|
}
|
|
10793
10793
|
),
|
|
10794
|
-
l === U &&
|
|
10794
|
+
l === U && C && s.filterType === "string" && /* @__PURE__ */ p.jsxs(
|
|
10795
10795
|
"div",
|
|
10796
10796
|
{
|
|
10797
10797
|
className: "select-params__box",
|
|
10798
10798
|
style: {
|
|
10799
|
-
left:
|
|
10800
|
-
right: 0,
|
|
10799
|
+
left: R - C < 278 ? "unset" : 0,
|
|
10800
|
+
right: R - C < 278 ? M[s.field] - (R - C) : 0,
|
|
10801
10801
|
top: A + 2,
|
|
10802
10802
|
position: "absolute",
|
|
10803
10803
|
minWidth: 278,
|
|
@@ -10959,13 +10959,13 @@ const zn = (n) => {
|
|
|
10959
10959
|
]
|
|
10960
10960
|
}
|
|
10961
10961
|
),
|
|
10962
|
-
l === U &&
|
|
10962
|
+
l === U && C && s.filterType === "number" && /* @__PURE__ */ p.jsxs(
|
|
10963
10963
|
"div",
|
|
10964
10964
|
{
|
|
10965
10965
|
className: "select-params__box",
|
|
10966
10966
|
style: {
|
|
10967
|
-
left:
|
|
10968
|
-
right: 0,
|
|
10967
|
+
left: R - C < 278 ? "unset" : 0,
|
|
10968
|
+
right: R - C < 278 ? M[s.field] - (R - C) : 0,
|
|
10969
10969
|
top: A + 2,
|
|
10970
10970
|
position: "absolute",
|
|
10971
10971
|
minWidth: 278,
|
|
@@ -11127,13 +11127,13 @@ const zn = (n) => {
|
|
|
11127
11127
|
]
|
|
11128
11128
|
}
|
|
11129
11129
|
),
|
|
11130
|
-
l === U &&
|
|
11130
|
+
l === U && C && s.filterType === "boolean" && /* @__PURE__ */ p.jsx(
|
|
11131
11131
|
"div",
|
|
11132
11132
|
{
|
|
11133
11133
|
className: "select-params__box",
|
|
11134
11134
|
style: {
|
|
11135
|
-
left:
|
|
11136
|
-
right: 0,
|
|
11135
|
+
left: R - C < 278 ? "unset" : 0,
|
|
11136
|
+
right: R - C < 278 ? M[s.field] - (R - C) : 0,
|
|
11137
11137
|
top: A + 2,
|
|
11138
11138
|
position: "absolute",
|
|
11139
11139
|
minWidth: 278,
|
|
@@ -11341,10 +11341,10 @@ const If = ({
|
|
|
11341
11341
|
absoluteValidationText: k,
|
|
11342
11342
|
value: _
|
|
11343
11343
|
}) => {
|
|
11344
|
-
const
|
|
11344
|
+
const S = (O) => typeof O == "number" ? `${O}px` : String(O), M = (O) => {
|
|
11345
11345
|
e(O);
|
|
11346
|
-
const
|
|
11347
|
-
|
|
11346
|
+
const R = document.getElementById(`input-expand${t}`), E = document.createRange(), U = window.getSelection();
|
|
11347
|
+
E.selectNodeContents(R), E.collapse(!1), U.removeAllRanges(), U.addRange(E);
|
|
11348
11348
|
};
|
|
11349
11349
|
return /* @__PURE__ */ p.jsxs("div", { className: `u-react-input-expand-container ${f}`, style: { position: "relative" }, children: [
|
|
11350
11350
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -11354,8 +11354,8 @@ const If = ({
|
|
|
11354
11354
|
{
|
|
11355
11355
|
display: "flex",
|
|
11356
11356
|
flexDirection: o ? "row" : "column",
|
|
11357
|
-
rowGap: o ? null :
|
|
11358
|
-
columnGap: o ?
|
|
11357
|
+
rowGap: o ? null : S(i),
|
|
11358
|
+
columnGap: o ? S(s) : null
|
|
11359
11359
|
},
|
|
11360
11360
|
l
|
|
11361
11361
|
),
|
|
@@ -11439,11 +11439,11 @@ const Lf = ({
|
|
|
11439
11439
|
filesInfo: D = "Перетащите сюда файлы или нажмите, чтобы выбрать",
|
|
11440
11440
|
sizeInfo: k = "Максимальный размер файла 5 Мб",
|
|
11441
11441
|
showLoading: _ = !1,
|
|
11442
|
-
files:
|
|
11442
|
+
files: S,
|
|
11443
11443
|
setFiles: M,
|
|
11444
11444
|
multiple: O = !1
|
|
11445
11445
|
}) => {
|
|
11446
|
-
const
|
|
11446
|
+
const R = Xe(null), E = (T) => {
|
|
11447
11447
|
T.preventDefault(), T.stopPropagation();
|
|
11448
11448
|
}, U = (T) => {
|
|
11449
11449
|
T.preventDefault(), T.stopPropagation();
|
|
@@ -11491,14 +11491,14 @@ const Lf = ({
|
|
|
11491
11491
|
O ? te(T, $) : oe(T, $);
|
|
11492
11492
|
}, te = (T, $) => {
|
|
11493
11493
|
const h = ($ ? Array.from(T.dataTransfer.files) : Array.from(T.target.files)).filter(
|
|
11494
|
-
(b) => !
|
|
11494
|
+
(b) => !S.some(
|
|
11495
11495
|
(g) => g.name === b.name
|
|
11496
11496
|
)
|
|
11497
11497
|
);
|
|
11498
|
-
h.length > 0 && M((b) => [...b, ...h]),
|
|
11498
|
+
h.length > 0 && M((b) => [...b, ...h]), R.current.value = "";
|
|
11499
11499
|
}, oe = (T, $) => {
|
|
11500
11500
|
const m = $ ? Array.from([T.dataTransfer.files[0]]) : Array.from(T.target.files);
|
|
11501
|
-
M([...m]),
|
|
11501
|
+
M([...m]), R.current.value = "";
|
|
11502
11502
|
}, A = (T) => {
|
|
11503
11503
|
M(($) => $.filter((m, h) => h !== T));
|
|
11504
11504
|
};
|
|
@@ -11536,12 +11536,12 @@ const Lf = ({
|
|
|
11536
11536
|
{
|
|
11537
11537
|
id: e,
|
|
11538
11538
|
className: "u-file",
|
|
11539
|
-
onDragEnter:
|
|
11539
|
+
onDragEnter: E,
|
|
11540
11540
|
onDragLeave: U,
|
|
11541
11541
|
onDragOver: q,
|
|
11542
11542
|
onDrop: P,
|
|
11543
11543
|
children: [
|
|
11544
|
-
/* @__PURE__ */ p.jsx("input", { ref:
|
|
11544
|
+
/* @__PURE__ */ p.jsx("input", { ref: R, type: "file", id: e, name: r, value: t, defaultValue: a, disabled: i, onChange: (T) => X(T), multiple: O }),
|
|
11545
11545
|
/* @__PURE__ */ p.jsx("i", { className: "u-file-icon" }),
|
|
11546
11546
|
!_ && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
11547
11547
|
/* @__PURE__ */ p.jsx("p", { className: "u-file-title", children: D }),
|
|
@@ -11554,7 +11554,7 @@ const Lf = ({
|
|
|
11554
11554
|
]
|
|
11555
11555
|
}
|
|
11556
11556
|
),
|
|
11557
|
-
O ? (
|
|
11557
|
+
O ? (S == null ? void 0 : S.length) > 0 && /* @__PURE__ */ p.jsx("div", { style: { display: "flex", marginTop: "22px", minHeight: "122px", columnGap: "14px", rowGap: "14px", flexWrap: "wrap" }, children: S == null ? void 0 : S.map((T, $) => /* @__PURE__ */ p.jsxs("div", { className: "u-file-cell", children: [
|
|
11558
11558
|
/* @__PURE__ */ p.jsx("div", { className: `u-file-cell-icon ${ie(T.name)}` }),
|
|
11559
11559
|
/* @__PURE__ */ p.jsx("div", { className: "u-file-cell-content", children: /* @__PURE__ */ p.jsxs("div", { className: "u-file-cell-content-wrapper", children: [
|
|
11560
11560
|
/* @__PURE__ */ p.jsx("p", { children: T.name }),
|
|
@@ -11564,13 +11564,13 @@ const Lf = ({
|
|
|
11564
11564
|
] })
|
|
11565
11565
|
] }) }),
|
|
11566
11566
|
/* @__PURE__ */ p.jsx("button", { type: "button", onClick: () => A($) })
|
|
11567
|
-
] }, $)) }) :
|
|
11568
|
-
/* @__PURE__ */ p.jsx("div", { className: `u-file-cell-icon ${ie(
|
|
11567
|
+
] }, $)) }) : S && S[0] && /* @__PURE__ */ p.jsx("div", { style: { display: "flex", marginTop: "22px", minHeight: "122px", columnGap: "14px", rowGap: "14px", flexWrap: "wrap" }, children: /* @__PURE__ */ p.jsxs("div", { className: "u-file-cell", children: [
|
|
11568
|
+
/* @__PURE__ */ p.jsx("div", { className: `u-file-cell-icon ${ie(S[0].name)}` }),
|
|
11569
11569
|
/* @__PURE__ */ p.jsx("div", { className: "u-file-cell-content", children: /* @__PURE__ */ p.jsxs("div", { className: "u-file-cell-content-wrapper", children: [
|
|
11570
|
-
/* @__PURE__ */ p.jsx("p", { children:
|
|
11570
|
+
/* @__PURE__ */ p.jsx("p", { children: S[0].name }),
|
|
11571
11571
|
/* @__PURE__ */ p.jsxs("div", { className: "u-file-cell-content-props", children: [
|
|
11572
|
-
/* @__PURE__ */ p.jsx("span", { children: re(
|
|
11573
|
-
/* @__PURE__ */ p.jsx("span", { children: z(
|
|
11572
|
+
/* @__PURE__ */ p.jsx("span", { children: re(S[0].size) }),
|
|
11573
|
+
/* @__PURE__ */ p.jsx("span", { children: z(S[0].lastModifiedDate) })
|
|
11574
11574
|
] })
|
|
11575
11575
|
] }) }),
|
|
11576
11576
|
/* @__PURE__ */ p.jsx("button", { type: "button", onClick: () => A(0) })
|
|
@@ -11614,12 +11614,12 @@ const Ff = ({
|
|
|
11614
11614
|
className: D = "",
|
|
11615
11615
|
min: k,
|
|
11616
11616
|
max: _,
|
|
11617
|
-
validationText:
|
|
11617
|
+
validationText: S = "Заполните поле",
|
|
11618
11618
|
validationOn: M,
|
|
11619
11619
|
validationOnWithoutText: O,
|
|
11620
|
-
absoluteValidationText:
|
|
11620
|
+
absoluteValidationText: R
|
|
11621
11621
|
}) => {
|
|
11622
|
-
const
|
|
11622
|
+
const E = (P) => typeof P == "number" ? `${P}px` : String(P), U = (P) => {
|
|
11623
11623
|
let W = document.getElementById(`num-minus-${P}`);
|
|
11624
11624
|
const re = W == null ? void 0 : W.nextElementSibling;
|
|
11625
11625
|
re == null || re.stepDown();
|
|
@@ -11636,8 +11636,8 @@ const Ff = ({
|
|
|
11636
11636
|
{
|
|
11637
11637
|
display: "flex",
|
|
11638
11638
|
flexDirection: u ? "row" : "column",
|
|
11639
|
-
rowGap: u ? null :
|
|
11640
|
-
columnGap: u ?
|
|
11639
|
+
rowGap: u ? null : E(d),
|
|
11640
|
+
columnGap: u ? E(f) : null
|
|
11641
11641
|
},
|
|
11642
11642
|
v
|
|
11643
11643
|
),
|
|
@@ -11681,7 +11681,7 @@ const Ff = ({
|
|
|
11681
11681
|
}
|
|
11682
11682
|
)
|
|
11683
11683
|
] }),
|
|
11684
|
-
M && /* @__PURE__ */ p.jsx("h5", { className: "clr-red-main", style:
|
|
11684
|
+
M && /* @__PURE__ */ p.jsx("h5", { className: "clr-red-main", style: R ? { position: "absolute", bottom: "-20px" } : { position: "relative", marginTop: "4px" }, children: S })
|
|
11685
11685
|
]
|
|
11686
11686
|
}
|
|
11687
11687
|
);
|
|
@@ -11719,18 +11719,18 @@ const Yf = ({
|
|
|
11719
11719
|
styleInput: D,
|
|
11720
11720
|
className: k = "",
|
|
11721
11721
|
tableView: _ = !1,
|
|
11722
|
-
validationText:
|
|
11722
|
+
validationText: S = "Заполните поле",
|
|
11723
11723
|
validationOn: M,
|
|
11724
11724
|
validationOnWithoutText: O,
|
|
11725
|
-
absoluteValidationText:
|
|
11725
|
+
absoluteValidationText: R
|
|
11726
11726
|
}) => {
|
|
11727
|
-
const [
|
|
11727
|
+
const [E, U] = he(null), q = Xe(null), P = (z) => {
|
|
11728
11728
|
U(z.target.selectionStart), i && i(z);
|
|
11729
11729
|
};
|
|
11730
11730
|
Te(() => {
|
|
11731
11731
|
const z = q.current;
|
|
11732
|
-
z && z.setSelectionRange(
|
|
11733
|
-
}, [q,
|
|
11732
|
+
z && z.setSelectionRange(E, E);
|
|
11733
|
+
}, [q, E, e]);
|
|
11734
11734
|
const W = (z) => typeof z == "number" ? `${z}px` : String(z);
|
|
11735
11735
|
return /* @__PURE__ */ p.jsxs("div", { className: `u-react-input-container ${k}`, style: { position: "relative" }, children: [
|
|
11736
11736
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -11787,7 +11787,7 @@ const Yf = ({
|
|
|
11787
11787
|
]
|
|
11788
11788
|
}
|
|
11789
11789
|
),
|
|
11790
|
-
M && /* @__PURE__ */ p.jsx("h5", { className: "clr-red-main", style:
|
|
11790
|
+
M && /* @__PURE__ */ p.jsx("h5", { className: "clr-red-main", style: R ? { position: "absolute", bottom: "-20px" } : { position: "relative", marginTop: "4px" }, children: S })
|
|
11791
11791
|
] });
|
|
11792
11792
|
};
|
|
11793
11793
|
Yf.propTypes = {
|
|
@@ -11979,7 +11979,7 @@ const kr = (n, a, t) => {
|
|
|
11979
11979
|
portalOn: f,
|
|
11980
11980
|
isSearchable: v
|
|
11981
11981
|
}) => {
|
|
11982
|
-
const [y, D] = he(!1), [k, _] = he(""), [
|
|
11982
|
+
const [y, D] = he(!1), [k, _] = he(""), [S, M] = he(null), [O, R] = he(null), [E, U] = he(null), q = Xe(), P = Si(k, 300), W = Fo(() => t.filter((A) => A.label.toLowerCase().includes((P || "").toLowerCase())), [P, t]), z = Dr(() => {
|
|
11983
11983
|
D(!1), M(null), U(null);
|
|
11984
11984
|
}), re = Xe(null), ie = Xe(null);
|
|
11985
11985
|
kr(ie, re, () => {
|
|
@@ -11987,7 +11987,7 @@ const kr = (n, a, t) => {
|
|
|
11987
11987
|
});
|
|
11988
11988
|
const X = (A) => {
|
|
11989
11989
|
const { x: T, y: $, width: m, height: h } = A.getBoundingClientRect();
|
|
11990
|
-
M({ x: T, y: $ + 60 + h + window.scrollY }),
|
|
11990
|
+
M({ x: T, y: $ + 60 + h + window.scrollY }), R(m);
|
|
11991
11991
|
}, te = (A) => {
|
|
11992
11992
|
r.some((T) => T.value == A.value) ? o(r.filter((T) => T.value != A.value)) : o([...r, A]), v && (_(""), q.current.focus());
|
|
11993
11993
|
}, oe = (A) => {
|
|
@@ -11998,14 +11998,14 @@ const kr = (n, a, t) => {
|
|
|
11998
11998
|
if (!A) return;
|
|
11999
11999
|
const T = new ResizeObserver(() => {
|
|
12000
12000
|
const { x: $, y: m, width: h, height: b } = A.getBoundingClientRect();
|
|
12001
|
-
M({ x: $, y: m + 60 + b + window.scrollY }),
|
|
12001
|
+
M({ x: $, y: m + 60 + b + window.scrollY }), R(h);
|
|
12002
12002
|
});
|
|
12003
12003
|
return T.observe(A), () => {
|
|
12004
12004
|
T.disconnect();
|
|
12005
12005
|
};
|
|
12006
12006
|
}, [re]), Te(() => {
|
|
12007
12007
|
const A = setInterval(() => {
|
|
12008
|
-
|
|
12008
|
+
E && X(E);
|
|
12009
12009
|
}, 1);
|
|
12010
12010
|
return () => {
|
|
12011
12011
|
clearInterval(A);
|
|
@@ -12101,7 +12101,7 @@ const kr = (n, a, t) => {
|
|
|
12101
12101
|
]
|
|
12102
12102
|
}
|
|
12103
12103
|
),
|
|
12104
|
-
y && f ?
|
|
12104
|
+
y && f ? S && Pn(
|
|
12105
12105
|
/* @__PURE__ */ p.jsx(
|
|
12106
12106
|
"div",
|
|
12107
12107
|
{
|
|
@@ -12109,8 +12109,8 @@ const kr = (n, a, t) => {
|
|
|
12109
12109
|
ref: ie,
|
|
12110
12110
|
style: {
|
|
12111
12111
|
width: O,
|
|
12112
|
-
left:
|
|
12113
|
-
top: (
|
|
12112
|
+
left: S == null ? void 0 : S.x,
|
|
12113
|
+
top: (S == null ? void 0 : S.y) - 60,
|
|
12114
12114
|
opacity: 1,
|
|
12115
12115
|
visibility: "visible",
|
|
12116
12116
|
height: "fit-content",
|
|
@@ -12420,16 +12420,16 @@ const Qf = ({
|
|
|
12420
12420
|
validationText: D = "Заполните поле",
|
|
12421
12421
|
validationOn: k,
|
|
12422
12422
|
absoluteValidationText: _,
|
|
12423
|
-
portalOn:
|
|
12423
|
+
portalOn: S
|
|
12424
12424
|
}) => {
|
|
12425
|
-
const [M, O] = he(!1), [
|
|
12425
|
+
const [M, O] = he(!1), [R, E] = he(""), [U, q] = he(null), [P, W] = he(null), [z, re] = he(null), ie = Dr(() => {
|
|
12426
12426
|
O(!1), q(null), re(null);
|
|
12427
12427
|
}), X = Xe(null), te = Xe(null);
|
|
12428
12428
|
kr(te, X, () => {
|
|
12429
12429
|
O(!1), q(null), re(null);
|
|
12430
12430
|
});
|
|
12431
12431
|
const oe = t.filter(
|
|
12432
|
-
($) => $.label.toLowerCase().includes(
|
|
12432
|
+
($) => $.label.toLowerCase().includes(R.toLowerCase())
|
|
12433
12433
|
), A = ($) => typeof $ == "number" ? `${$}px` : String($), T = ($) => {
|
|
12434
12434
|
const { x: m, y: h, width: b } = $.getBoundingClientRect();
|
|
12435
12435
|
q({ x: m, y: h + 90 + window.scrollY }), W(b);
|
|
@@ -12442,9 +12442,9 @@ const Qf = ({
|
|
|
12442
12442
|
clearInterval($);
|
|
12443
12443
|
};
|
|
12444
12444
|
}), Te(() => {
|
|
12445
|
-
d && Object.keys(d).length == 0 &&
|
|
12445
|
+
d && Object.keys(d).length == 0 && E("");
|
|
12446
12446
|
}, [d]), Te(() => {
|
|
12447
|
-
if (
|
|
12447
|
+
if (R.length > 0) {
|
|
12448
12448
|
const $ = X.current;
|
|
12449
12449
|
if (!$) return;
|
|
12450
12450
|
const m = new ResizeObserver(() => {
|
|
@@ -12455,8 +12455,8 @@ const Qf = ({
|
|
|
12455
12455
|
m.disconnect();
|
|
12456
12456
|
};
|
|
12457
12457
|
}
|
|
12458
|
-
}, [
|
|
12459
|
-
d != null && d.label && Object.keys(d).length && !M &&
|
|
12458
|
+
}, [R]), Te(() => {
|
|
12459
|
+
d != null && d.label && Object.keys(d).length && !M && E(d.label);
|
|
12460
12460
|
}, [M, d]), /* @__PURE__ */ p.jsxs("div", { className: `u-react-select-container ${v}`, style: { position: "relative" }, children: [
|
|
12461
12461
|
/* @__PURE__ */ p.jsxs(
|
|
12462
12462
|
"div",
|
|
@@ -12489,7 +12489,7 @@ const Qf = ({
|
|
|
12489
12489
|
"div",
|
|
12490
12490
|
{
|
|
12491
12491
|
className: "u-selectbox u-react-select",
|
|
12492
|
-
ref:
|
|
12492
|
+
ref: S ? X : ie,
|
|
12493
12493
|
style: Object.assign(
|
|
12494
12494
|
{
|
|
12495
12495
|
width: "100%"
|
|
@@ -12502,7 +12502,7 @@ const Qf = ({
|
|
|
12502
12502
|
{
|
|
12503
12503
|
className: M ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
|
|
12504
12504
|
onClick: ($) => {
|
|
12505
|
-
|
|
12505
|
+
R.length > 0 && E(""), !M && S ? (T($.currentTarget), re($.currentTarget)) : (q(null), re(null)), O(!M);
|
|
12506
12506
|
},
|
|
12507
12507
|
style: Object.assign(
|
|
12508
12508
|
y ? {
|
|
@@ -12515,14 +12515,14 @@ const Qf = ({
|
|
|
12515
12515
|
k && { border: "1px solid #EF302B" }
|
|
12516
12516
|
),
|
|
12517
12517
|
type: "text",
|
|
12518
|
-
value:
|
|
12518
|
+
value: R,
|
|
12519
12519
|
onChange: ($) => {
|
|
12520
|
-
|
|
12520
|
+
E($.target.value);
|
|
12521
12521
|
},
|
|
12522
12522
|
placeholder: d != null && d.label && Object.keys(d).length ? d.label : u
|
|
12523
12523
|
}
|
|
12524
12524
|
),
|
|
12525
|
-
M &&
|
|
12525
|
+
M && S ? U && Pn(
|
|
12526
12526
|
/* @__PURE__ */ p.jsx(
|
|
12527
12527
|
"div",
|
|
12528
12528
|
{
|
|
@@ -12534,7 +12534,7 @@ const Qf = ({
|
|
|
12534
12534
|
{
|
|
12535
12535
|
className: "u-selectbox-option",
|
|
12536
12536
|
onClick: (h) => {
|
|
12537
|
-
h.stopPropagation(), f($), O(!1),
|
|
12537
|
+
h.stopPropagation(), f($), O(!1), E($.label), q(null);
|
|
12538
12538
|
},
|
|
12539
12539
|
style: y ? {
|
|
12540
12540
|
minHeight: "30px",
|
|
@@ -12554,7 +12554,7 @@ const Qf = ({
|
|
|
12554
12554
|
{
|
|
12555
12555
|
className: "u-selectbox-option",
|
|
12556
12556
|
onClick: (h) => {
|
|
12557
|
-
h.stopPropagation(), f($), O(!1),
|
|
12557
|
+
h.stopPropagation(), f($), O(!1), E($.label);
|
|
12558
12558
|
},
|
|
12559
12559
|
style: y ? {
|
|
12560
12560
|
minHeight: "30px",
|
|
@@ -12608,15 +12608,15 @@ const Uf = ({
|
|
|
12608
12608
|
tableView: D = !1,
|
|
12609
12609
|
validationText: k = "Заполните поле",
|
|
12610
12610
|
validationOn: _,
|
|
12611
|
-
absoluteValidationText:
|
|
12611
|
+
absoluteValidationText: S,
|
|
12612
12612
|
disabled: M,
|
|
12613
12613
|
portalOn: O
|
|
12614
12614
|
}) => {
|
|
12615
|
-
const [
|
|
12616
|
-
|
|
12615
|
+
const [R, E] = he(!1), [U, q] = he(null), [P, W] = he(null), [z, re] = he(null), ie = Dr(() => {
|
|
12616
|
+
E(!1), q(null), re(null);
|
|
12617
12617
|
}), X = Xe(null), te = Xe(null);
|
|
12618
12618
|
kr(te, X, () => {
|
|
12619
|
-
|
|
12619
|
+
E(!1), q(null), re(null);
|
|
12620
12620
|
});
|
|
12621
12621
|
const oe = (T) => typeof T == "number" ? `${T}px` : String(T), A = (T) => {
|
|
12622
12622
|
const { x: $, y: m, width: h } = T.getBoundingClientRect();
|
|
@@ -12672,9 +12672,9 @@ const Uf = ({
|
|
|
12672
12672
|
/* @__PURE__ */ p.jsxs(
|
|
12673
12673
|
"div",
|
|
12674
12674
|
{
|
|
12675
|
-
className:
|
|
12675
|
+
className: R ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
|
|
12676
12676
|
onClick: (T) => {
|
|
12677
|
-
!
|
|
12677
|
+
!R && O ? (A(T.currentTarget), re(T.currentTarget)) : (q(null), re(null)), M || E(!R);
|
|
12678
12678
|
},
|
|
12679
12679
|
style: Object.assign(
|
|
12680
12680
|
D ? {
|
|
@@ -12696,7 +12696,7 @@ const Uf = ({
|
|
|
12696
12696
|
right: "28px"
|
|
12697
12697
|
} : null,
|
|
12698
12698
|
onClick: (T) => {
|
|
12699
|
-
T.stopPropagation(), v({}),
|
|
12699
|
+
T.stopPropagation(), v({}), E(!1);
|
|
12700
12700
|
}
|
|
12701
12701
|
}
|
|
12702
12702
|
) : /* @__PURE__ */ p.jsx(p.Fragment, {}),
|
|
@@ -12726,7 +12726,7 @@ const Uf = ({
|
|
|
12726
12726
|
{
|
|
12727
12727
|
className: "u-selectbox-option",
|
|
12728
12728
|
onClick: (m) => {
|
|
12729
|
-
m.stopPropagation(), v(T),
|
|
12729
|
+
m.stopPropagation(), v(T), E(!1), q(null);
|
|
12730
12730
|
},
|
|
12731
12731
|
style: Object.assign(
|
|
12732
12732
|
{
|
|
@@ -12756,7 +12756,7 @@ const Uf = ({
|
|
|
12756
12756
|
{
|
|
12757
12757
|
className: "u-selectbox-option",
|
|
12758
12758
|
onClick: (m) => {
|
|
12759
|
-
m.stopPropagation(), v(T),
|
|
12759
|
+
m.stopPropagation(), v(T), E(!1);
|
|
12760
12760
|
},
|
|
12761
12761
|
style: Object.assign(
|
|
12762
12762
|
{
|
|
@@ -12782,7 +12782,7 @@ const Uf = ({
|
|
|
12782
12782
|
]
|
|
12783
12783
|
}
|
|
12784
12784
|
),
|
|
12785
|
-
_ && /* @__PURE__ */ p.jsx("h5", { className: "clr-red-main", style:
|
|
12785
|
+
_ && /* @__PURE__ */ p.jsx("h5", { className: "clr-red-main", style: S ? { position: "absolute", bottom: "-20px" } : { position: "relative", marginTop: "4px" }, children: k })
|
|
12786
12786
|
] });
|
|
12787
12787
|
};
|
|
12788
12788
|
Uf.propTypes = {
|
|
@@ -12868,11 +12868,11 @@ const Kf = (n, a, t, e) => {
|
|
|
12868
12868
|
className: D = "",
|
|
12869
12869
|
allTdStyleFunction: k,
|
|
12870
12870
|
allTdContentStyleFunction: _,
|
|
12871
|
-
id:
|
|
12871
|
+
id: S = "u-react-table",
|
|
12872
12872
|
draggable: M,
|
|
12873
12873
|
resize: O,
|
|
12874
|
-
onDrop:
|
|
12875
|
-
maxHeight:
|
|
12874
|
+
onDrop: R,
|
|
12875
|
+
maxHeight: E,
|
|
12876
12876
|
minHeight: U,
|
|
12877
12877
|
whereFindChecked: q = "",
|
|
12878
12878
|
filterEmptyLabel: P = "Не указано",
|
|
@@ -12884,7 +12884,7 @@ const Kf = (n, a, t, e) => {
|
|
|
12884
12884
|
var An;
|
|
12885
12885
|
const X = a.reduce((K, pe) => (K[pe.field] = pe.width, K), {}), [te, oe] = he({}), [A, T] = he({}), [$, m] = he(), [h, b] = he([]), [g, c] = he(
|
|
12886
12886
|
a.filter((K) => K.hidden !== !0)
|
|
12887
|
-
), [
|
|
12887
|
+
), [C, N] = he([]), [B, j] = he([]), [L, V] = he(), [Q, ee] = he(!1), I = Xe(null), [J, G] = he(0), ae = Xe({}), Y = () => re * J, H = () => re * (h.length - (J + ie + 1)), ne = (K, pe) => {
|
|
12888
12888
|
const we = { ...te };
|
|
12889
12889
|
we[K] = X[K] ? pe < X[K] ? X[K] : pe : pe > 30 ? pe : 30, T(we);
|
|
12890
12890
|
}, ce = (K, pe) => {
|
|
@@ -12916,18 +12916,18 @@ const Kf = (n, a, t, e) => {
|
|
|
12916
12916
|
K.preventDefault();
|
|
12917
12917
|
}, it = (K, pe) => {
|
|
12918
12918
|
K.dataTransfer.setData("index", pe);
|
|
12919
|
-
}, jt = (K, pe) =>
|
|
12919
|
+
}, jt = (K, pe) => R(K, pe);
|
|
12920
12920
|
Te(() => {
|
|
12921
12921
|
const K = B.filter(
|
|
12922
12922
|
(pe) => !(pe.begin === null && pe.end === null)
|
|
12923
12923
|
);
|
|
12924
12924
|
if (n) {
|
|
12925
12925
|
const pe = (Ne) => {
|
|
12926
|
-
const Ye = q.length > 0 ? Ne[q] : Ne, lt =
|
|
12926
|
+
const Ye = q.length > 0 ? Ne[q] : Ne, lt = C.length === 0 || Object.keys(C).every((Ue) => {
|
|
12927
12927
|
const Ie = Ye[Ue];
|
|
12928
12928
|
return Array.isArray(Ie) && Ie.every((mt) => typeof mt == "object" && "title" in mt) ? !Ie.every(
|
|
12929
|
-
(mt) =>
|
|
12930
|
-
) : Array.isArray(Ie) ? !Ie.every((mt) =>
|
|
12929
|
+
(mt) => C[Ue].includes(mt.title)
|
|
12930
|
+
) : Array.isArray(Ie) ? !Ie.every((mt) => C[Ue].includes(mt)) : typeof Ie == "object" && Ie !== null && "title" in Ie ? !C[Ue].includes(Ie.title) : !C[Ue].includes(
|
|
12931
12931
|
Ie == null || typeof Ie == "string" && Ie.length === 0 ? P : Ie
|
|
12932
12932
|
);
|
|
12933
12933
|
}), Ve = K.length === 0 || Object.keys(Ye).some(
|
|
@@ -12980,7 +12980,7 @@ const Kf = (n, a, t, e) => {
|
|
|
12980
12980
|
Ne[z] && Array.isArray(Ne[z]) && Ne[z].sort((Ye, lt) => we(Ye, lt));
|
|
12981
12981
|
})), b(Re);
|
|
12982
12982
|
}
|
|
12983
|
-
}, [n,
|
|
12983
|
+
}, [n, C, B, L]);
|
|
12984
12984
|
const yt = (K, pe, we, fe) => {
|
|
12985
12985
|
const Re = new Date(K);
|
|
12986
12986
|
switch (pe) {
|
|
@@ -13020,13 +13020,13 @@ const Kf = (n, a, t, e) => {
|
|
|
13020
13020
|
)) : ee(!0);
|
|
13021
13021
|
};
|
|
13022
13022
|
Te(() => {
|
|
13023
|
-
if (W &&
|
|
13024
|
-
return
|
|
13023
|
+
if (W && I.current)
|
|
13024
|
+
return I.current.addEventListener("scroll", Ln), () => {
|
|
13025
13025
|
var K;
|
|
13026
|
-
(K =
|
|
13026
|
+
(K = I.current) == null || K.removeEventListener("scroll", Ln);
|
|
13027
13027
|
};
|
|
13028
|
-
}, [
|
|
13029
|
-
W &&
|
|
13028
|
+
}, [I.current]), Te(() => {
|
|
13029
|
+
W && I.current && h.length < J && I.current.scrollTo({ top: 0 });
|
|
13030
13030
|
}, [h.length]);
|
|
13031
13031
|
const Fn = (K) => {
|
|
13032
13032
|
const pe = [...h];
|
|
@@ -13046,7 +13046,7 @@ const Kf = (n, a, t, e) => {
|
|
|
13046
13046
|
children: g == null ? void 0 : g.map((fe, Re) => /* @__PURE__ */ p.jsxs(
|
|
13047
13047
|
"td",
|
|
13048
13048
|
{
|
|
13049
|
-
id: `${
|
|
13049
|
+
id: `${S}td${pe}${Re}`,
|
|
13050
13050
|
className: `${fe.sticky ? "sticky" : ""}`,
|
|
13051
13051
|
style: Object.assign(
|
|
13052
13052
|
{
|
|
@@ -13125,10 +13125,10 @@ const Kf = (n, a, t, e) => {
|
|
|
13125
13125
|
return /* @__PURE__ */ p.jsx(p.Fragment, { children: (n == null ? void 0 : n.length) !== 0 ? /* @__PURE__ */ p.jsx(
|
|
13126
13126
|
"div",
|
|
13127
13127
|
{
|
|
13128
|
-
id:
|
|
13128
|
+
id: S,
|
|
13129
13129
|
className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? Qe(t) : ""}${e ? " striped" : ""}${r ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${D ? " " + D : ""}`,
|
|
13130
|
-
style: { maxHeight:
|
|
13131
|
-
ref:
|
|
13130
|
+
style: { maxHeight: E, minHeight: U },
|
|
13131
|
+
ref: I,
|
|
13132
13132
|
children: /* @__PURE__ */ p.jsxs("table", { className: "table", children: [
|
|
13133
13133
|
/* @__PURE__ */ p.jsx("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ p.jsx("tr", { children: g == null ? void 0 : g.map(
|
|
13134
13134
|
(K, pe) => {
|
|
@@ -13138,7 +13138,7 @@ const Kf = (n, a, t, e) => {
|
|
|
13138
13138
|
{
|
|
13139
13139
|
columns: g,
|
|
13140
13140
|
column: K,
|
|
13141
|
-
id:
|
|
13141
|
+
id: S,
|
|
13142
13142
|
cellStyle: u,
|
|
13143
13143
|
thStyle: l,
|
|
13144
13144
|
cellContentStyle: v,
|
|
@@ -13150,9 +13150,9 @@ const Kf = (n, a, t, e) => {
|
|
|
13150
13150
|
setFilteredData: b,
|
|
13151
13151
|
filteredData: h,
|
|
13152
13152
|
data: n,
|
|
13153
|
-
uncheckedValues:
|
|
13153
|
+
uncheckedValues: C,
|
|
13154
13154
|
setUncheckedValues: N,
|
|
13155
|
-
setFilterDates:
|
|
13155
|
+
setFilterDates: j,
|
|
13156
13156
|
filterEmptyLabel: P,
|
|
13157
13157
|
sort: L,
|
|
13158
13158
|
setSort: V,
|
|
@@ -13160,14 +13160,14 @@ const Kf = (n, a, t, e) => {
|
|
|
13160
13160
|
resize: O,
|
|
13161
13161
|
setColumnWidths: T,
|
|
13162
13162
|
columnWidths: A,
|
|
13163
|
-
tableRight: (we =
|
|
13163
|
+
tableRight: (we = I.current) == null ? void 0 : we.getBoundingClientRect().right,
|
|
13164
13164
|
isParentDataField: !!z
|
|
13165
13165
|
}
|
|
13166
13166
|
) : /* @__PURE__ */ p.jsx(
|
|
13167
13167
|
"th",
|
|
13168
13168
|
{
|
|
13169
13169
|
ref: (fe) => ae.current[K.field] = fe,
|
|
13170
|
-
id: `${
|
|
13170
|
+
id: `${S}th${pe}`,
|
|
13171
13171
|
className: `${K.sticky ? "sticky" : ""} ${O && !K.resizeOff ? "resize" : ""}`,
|
|
13172
13172
|
style: Object.assign(
|
|
13173
13173
|
{
|
|
@@ -13347,28 +13347,28 @@ const ep = ({
|
|
|
13347
13347
|
tooltipText: r = /* @__PURE__ */ p.jsx("div", {}),
|
|
13348
13348
|
style: o
|
|
13349
13349
|
}) => {
|
|
13350
|
-
const [i, s] = he(null), [l, u] = he(null), [d, f] = he(), [v, y] = he(""), [D, k] = he(!1), [_,
|
|
13350
|
+
const [i, s] = he(null), [l, u] = he(null), [d, f] = he(), [v, y] = he(""), [D, k] = he(!1), [_, S] = he(null);
|
|
13351
13351
|
Te(() => {
|
|
13352
|
-
const
|
|
13353
|
-
if (
|
|
13354
|
-
const
|
|
13355
|
-
u(
|
|
13352
|
+
const R = document.getElementById(v);
|
|
13353
|
+
if (R) {
|
|
13354
|
+
const E = R.clientHeight;
|
|
13355
|
+
u(E), s((U) => ({ ...U, y: (U == null ? void 0 : U.y) - E }));
|
|
13356
13356
|
}
|
|
13357
13357
|
}, [v]), Te(() => () => {
|
|
13358
13358
|
_ && clearTimeout(_);
|
|
13359
13359
|
}, [_]);
|
|
13360
|
-
const M = Ca((
|
|
13360
|
+
const M = Ca((R, E, U) => {
|
|
13361
13361
|
clearTimeout(_);
|
|
13362
|
-
const { x: q, y: P, width: W } =
|
|
13363
|
-
s({ x: q + W / 2, y: P + 12 + window.scrollY - l + 37 }), f(
|
|
13362
|
+
const { x: q, y: P, width: W } = R.target.getBoundingClientRect();
|
|
13363
|
+
s({ x: q + W / 2, y: P + 12 + window.scrollY - l + 37 }), f(E), y(`u-tooltip${U}`);
|
|
13364
13364
|
const z = setTimeout(() => {
|
|
13365
13365
|
k(!0);
|
|
13366
13366
|
}, 100);
|
|
13367
|
-
|
|
13367
|
+
S(z);
|
|
13368
13368
|
}, [_]), O = Ca(() => {
|
|
13369
13369
|
clearTimeout(_), s(null), y(""), u(null), k(!1);
|
|
13370
13370
|
}, [_]);
|
|
13371
|
-
return /* @__PURE__ */ p.jsx(p.Fragment, { children: t ? /* @__PURE__ */ p.jsxs("div", { style: o, onMouseEnter: (
|
|
13371
|
+
return /* @__PURE__ */ p.jsx(p.Fragment, { children: t ? /* @__PURE__ */ p.jsxs("div", { style: o, onMouseEnter: (R) => M(R, r, e), onMouseLeave: O, className: a, id: "u-help", children: [
|
|
13372
13372
|
v === `u-tooltip${e}` && i && Pn(
|
|
13373
13373
|
/* @__PURE__ */ p.jsx("div", { style: { left: i == null ? void 0 : i.x, top: (i == null ? void 0 : i.y) - 60, opacity: D ? 1 : 0, visibility: "visible", height: "fit-content", zIndex: 1e3 }, className: "u-help-tooltip", id: `u-tooltip${e}`, children: d }),
|
|
13374
13374
|
document.body
|
|
@@ -13402,31 +13402,31 @@ const tp = ({
|
|
|
13402
13402
|
validationText: D = "Заполните поле",
|
|
13403
13403
|
validationOn: k,
|
|
13404
13404
|
absoluteValidationText: _,
|
|
13405
|
-
data:
|
|
13405
|
+
data: S,
|
|
13406
13406
|
portalOn: M,
|
|
13407
13407
|
id: O,
|
|
13408
|
-
disabled:
|
|
13409
|
-
isSearchable:
|
|
13408
|
+
disabled: R,
|
|
13409
|
+
isSearchable: E
|
|
13410
13410
|
}) => {
|
|
13411
|
-
const [U, q] = he(""), [P, W] = he(null), [z, re] = he([]), [ie, X] = he(!1), te = Xe(null), oe = Xe(null), A = Xe(), T = Si(U, 300), $ = Fo(() =>
|
|
13411
|
+
const [U, q] = he(""), [P, W] = he(null), [z, re] = he([]), [ie, X] = he(!1), te = Xe(null), oe = Xe(null), A = Xe(), T = Si(U, 300), $ = Fo(() => S.filter((N) => N.title.toLowerCase().includes((T || "").toLowerCase())), [T, S]);
|
|
13412
13412
|
kr(oe, te, () => {
|
|
13413
13413
|
X(!1), W(null);
|
|
13414
13414
|
});
|
|
13415
13415
|
const m = (N) => typeof N == "number" ? `${N}px` : String(N), h = (N, B) => {
|
|
13416
|
-
N.stopPropagation(), re((
|
|
13416
|
+
N.stopPropagation(), re((j) => j != null && j.includes(B) ? j.filter((L) => L !== B) : [...j, B]);
|
|
13417
13417
|
}, b = (N) => {
|
|
13418
|
-
const B =
|
|
13418
|
+
const B = S.filter((L) => L.parentId === N.id);
|
|
13419
13419
|
if (B.length === 0)
|
|
13420
13420
|
return N;
|
|
13421
|
-
let
|
|
13421
|
+
let j = null;
|
|
13422
13422
|
return B.forEach((L) => {
|
|
13423
13423
|
const V = b(L);
|
|
13424
|
-
V && (
|
|
13425
|
-
}),
|
|
13424
|
+
V && (j = V);
|
|
13425
|
+
}), j;
|
|
13426
13426
|
}, g = ({ node: N, counter: B }) => {
|
|
13427
|
-
const
|
|
13428
|
-
var
|
|
13429
|
-
f(N), X(!1), W(null),
|
|
13427
|
+
const j = S.filter((I) => I.parentId === N.id), L = B + 1, V = z == null ? void 0 : z.includes(N.id), Q = b(N), ee = () => {
|
|
13428
|
+
var I;
|
|
13429
|
+
f(N), X(!1), W(null), E && (q(""), (I = A == null ? void 0 : A.current) == null || I.focus());
|
|
13430
13430
|
};
|
|
13431
13431
|
return /* @__PURE__ */ p.jsxs("ul", { className: "treeview-list", children: [
|
|
13432
13432
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -13441,17 +13441,17 @@ const tp = ({
|
|
|
13441
13441
|
} : null
|
|
13442
13442
|
),
|
|
13443
13443
|
children: [
|
|
13444
|
-
Q.id !== N.id && /* @__PURE__ */ p.jsx("div", { onClick: (
|
|
13444
|
+
Q.id !== N.id && /* @__PURE__ */ p.jsx("div", { onClick: (I) => h(I, N.id), children: V ? /* @__PURE__ */ p.jsx("i", { style: { cursor: "pointer", width: "20px", height: "20px" }, className: "u-icon icon-down clr-blue-main" }) : /* @__PURE__ */ p.jsx("i", { style: { cursor: "pointer", transform: "rotate(-90 0 0)" }, className: "u-icon icon-right clr-blue-main" }) }),
|
|
13445
13445
|
Q.id !== N.id && /* @__PURE__ */ p.jsx("i", { className: "u-icon icon-folder clr-orange" }),
|
|
13446
13446
|
/* @__PURE__ */ p.jsx("p", { onClick: ee, style: { cursor: "pointer" }, className: "tt", children: N.title })
|
|
13447
13447
|
]
|
|
13448
13448
|
}
|
|
13449
13449
|
),
|
|
13450
|
-
V &&
|
|
13450
|
+
V && j.map((I) => /* @__PURE__ */ p.jsx(g, { node: I, counter: L }, I.id))
|
|
13451
13451
|
] });
|
|
13452
|
-
}, c =
|
|
13453
|
-
const { x: B, y:
|
|
13454
|
-
W({ x: B, y:
|
|
13452
|
+
}, c = E && U ? $ : S == null ? void 0 : S.filter((N) => N.parentId === null), C = (N) => {
|
|
13453
|
+
const { x: B, y: j } = N.target.getBoundingClientRect();
|
|
13454
|
+
W({ x: B, y: j + 90 + window.scrollY });
|
|
13455
13455
|
};
|
|
13456
13456
|
return /* @__PURE__ */ p.jsxs("div", { className: `u-react-select-container ${v}`, style: { position: "relative" }, children: [
|
|
13457
13457
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -13484,7 +13484,7 @@ const tp = ({
|
|
|
13484
13484
|
/* @__PURE__ */ p.jsxs(
|
|
13485
13485
|
"div",
|
|
13486
13486
|
{
|
|
13487
|
-
className: `u-selectbox${
|
|
13487
|
+
className: `u-selectbox${R ? " u-selectbox-disabled" : ""} u-react-tree-view`,
|
|
13488
13488
|
ref: te,
|
|
13489
13489
|
children: [
|
|
13490
13490
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -13492,7 +13492,7 @@ const tp = ({
|
|
|
13492
13492
|
{
|
|
13493
13493
|
onClick: (N) => {
|
|
13494
13494
|
var B;
|
|
13495
|
-
ie ? W(null) : (
|
|
13495
|
+
ie ? W(null) : (E && ((B = A == null ? void 0 : A.current) == null || B.focus(), q("")), M && C(N)), X(!ie);
|
|
13496
13496
|
},
|
|
13497
13497
|
className: `u-selectbox-select ${ie ? "u-selectbox-select-open" : ""}`,
|
|
13498
13498
|
id: `u-selectbox-select${O}`,
|
|
@@ -13506,9 +13506,9 @@ const tp = ({
|
|
|
13506
13506
|
k && { border: "1px solid #EF302B" }
|
|
13507
13507
|
),
|
|
13508
13508
|
children: [
|
|
13509
|
-
!l && (!
|
|
13510
|
-
l && (!ie || !
|
|
13511
|
-
|
|
13509
|
+
!l && (!E || !ie) ? /* @__PURE__ */ p.jsx("span", { style: { color: "#545454" }, className: "u-selectbox-select-title", children: s }) : /* @__PURE__ */ p.jsx(p.Fragment, {}),
|
|
13510
|
+
l && (!ie || !E) ? /* @__PURE__ */ p.jsx("span", { className: "u-selectbox-select-title", children: l }) : /* @__PURE__ */ p.jsx(p.Fragment, {}),
|
|
13511
|
+
E && /* @__PURE__ */ p.jsx(
|
|
13512
13512
|
"input",
|
|
13513
13513
|
{
|
|
13514
13514
|
ref: A,
|