@happeouikit/form-elements 2.3.39 → 2.3.40
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/Checkbox.d.ts +1 -1
- package/dist/RadioButton.d.ts +1 -1
- package/dist/index.cjs.js +30 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +633 -603
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as Me, jsx as V } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import k, { useEffect as Ze, useState as se, forwardRef as ba, useContext as ll, Component as ya, createContext as cl, useCallback as
|
|
3
|
+
import k, { useEffect as Ze, useState as se, forwardRef as ba, useContext as ll, Component as ya, createContext as cl, useCallback as Q, useMemo as We, Fragment as Cn, useRef as _e, useImperativeHandle as dl } from "react";
|
|
4
4
|
import A, { css as jt } from "styled-components";
|
|
5
5
|
import { sansFamily as Ft, BodyUI as pe, TinyText as Jr, TextEpsilon as fl } from "@happeouikit/typography";
|
|
6
6
|
import { IconAlertCircleOutline as hl, IconArrowDropDown as pl, IconCheck as Co, IconRemove as ml, IconClose as gl, IconCalendar as vl, IconChevronLeft as bl, IconChevronRight as yl, IconError as Il, IconSearch as xo } from "@happeouikit/icons";
|
|
@@ -62,7 +62,7 @@ const q0 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Fl = 6
|
|
|
62
62
|
disabled: l,
|
|
63
63
|
...c
|
|
64
64
|
}) => {
|
|
65
|
-
const [d] = se(() => a || nn()),
|
|
65
|
+
const [d] = se(() => a || nn()), h = [
|
|
66
66
|
t ? `${d}-description` : "",
|
|
67
67
|
r ? `${d}-hint-message` : "",
|
|
68
68
|
s === "error" && u ? `${d}-error-message` : ""
|
|
@@ -88,8 +88,9 @@ const q0 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Fl = 6
|
|
|
88
88
|
state: s || "default",
|
|
89
89
|
id: d,
|
|
90
90
|
disabled: l,
|
|
91
|
+
"data-1p-ignore": !0,
|
|
91
92
|
...t ? {
|
|
92
|
-
"aria-describedby":
|
|
93
|
+
"aria-describedby": h
|
|
93
94
|
} : {},
|
|
94
95
|
...c
|
|
95
96
|
}
|
|
@@ -411,26 +412,26 @@ function oc(e) {
|
|
|
411
412
|
return Fo(Qn("", null, null, null, [""], e = To(e), 0, [0], e));
|
|
412
413
|
}
|
|
413
414
|
function Qn(e, t, r, n, a, i, o, s, u) {
|
|
414
|
-
for (var l = 0, c = 0, d = o,
|
|
415
|
-
switch (f =
|
|
415
|
+
for (var l = 0, c = 0, d = o, h = 0, p = 0, f = 0, m = 1, g = 1, v = 1, I = 0, y = "", x = a, b = i, M = n, D = y; g; )
|
|
416
|
+
switch (f = I, I = Oe()) {
|
|
416
417
|
case 40:
|
|
417
|
-
if (f != 108 && me(
|
|
418
|
-
qr(
|
|
418
|
+
if (f != 108 && me(D, d - 1) == 58) {
|
|
419
|
+
qr(D += j(Jn(I), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
419
420
|
break;
|
|
420
421
|
}
|
|
421
422
|
case 34:
|
|
422
423
|
case 39:
|
|
423
424
|
case 91:
|
|
424
|
-
|
|
425
|
+
D += Jn(I);
|
|
425
426
|
break;
|
|
426
427
|
case 9:
|
|
427
428
|
case 10:
|
|
428
429
|
case 13:
|
|
429
430
|
case 32:
|
|
430
|
-
|
|
431
|
+
D += nc(f);
|
|
431
432
|
break;
|
|
432
433
|
case 92:
|
|
433
|
-
|
|
434
|
+
D += rc($n() - 1, 7);
|
|
434
435
|
continue;
|
|
435
436
|
case 47:
|
|
436
437
|
switch (at()) {
|
|
@@ -439,70 +440,70 @@ function Qn(e, t, r, n, a, i, o, s, u) {
|
|
|
439
440
|
Bn(sc(ac(Oe(), $n()), t, r), u);
|
|
440
441
|
break;
|
|
441
442
|
default:
|
|
442
|
-
|
|
443
|
+
D += "/";
|
|
443
444
|
}
|
|
444
445
|
break;
|
|
445
446
|
case 123 * m:
|
|
446
|
-
s[l++] = nt(
|
|
447
|
+
s[l++] = nt(D) * v;
|
|
447
448
|
case 125 * m:
|
|
448
449
|
case 59:
|
|
449
450
|
case 0:
|
|
450
|
-
switch (
|
|
451
|
+
switch (I) {
|
|
451
452
|
case 0:
|
|
452
453
|
case 125:
|
|
453
454
|
g = 0;
|
|
454
455
|
case 59 + c:
|
|
455
|
-
v == -1 && (
|
|
456
|
+
v == -1 && (D = j(D, /\f/g, "")), p > 0 && nt(D) - d && Bn(p > 32 ? Mi(D + ";", n, r, d - 1) : Mi(j(D, " ", "") + ";", n, r, d - 2), u);
|
|
456
457
|
break;
|
|
457
458
|
case 59:
|
|
458
|
-
|
|
459
|
+
D += ";";
|
|
459
460
|
default:
|
|
460
|
-
if (Bn(
|
|
461
|
+
if (Bn(M = Di(D, t, r, l, c, a, s, y, x = [], b = [], d), i), I === 123)
|
|
461
462
|
if (c === 0)
|
|
462
|
-
Qn(
|
|
463
|
+
Qn(D, t, M, M, x, i, d, s, b);
|
|
463
464
|
else
|
|
464
|
-
switch (
|
|
465
|
+
switch (h === 99 && me(D, 3) === 110 ? 100 : h) {
|
|
465
466
|
case 100:
|
|
466
467
|
case 108:
|
|
467
468
|
case 109:
|
|
468
469
|
case 115:
|
|
469
|
-
Qn(e,
|
|
470
|
+
Qn(e, M, M, n && Bn(Di(e, M, M, 0, 0, a, s, y, a, x = [], d), b), a, b, d, s, n ? x : b);
|
|
470
471
|
break;
|
|
471
472
|
default:
|
|
472
|
-
Qn(
|
|
473
|
+
Qn(D, M, M, M, [""], b, 0, s, b);
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
|
-
l = c =
|
|
476
|
+
l = c = p = 0, m = v = 1, y = D = "", d = o;
|
|
476
477
|
break;
|
|
477
478
|
case 58:
|
|
478
|
-
d = 1 + nt(
|
|
479
|
+
d = 1 + nt(D), p = f;
|
|
479
480
|
default:
|
|
480
481
|
if (m < 1) {
|
|
481
|
-
if (
|
|
482
|
+
if (I == 123)
|
|
482
483
|
--m;
|
|
483
|
-
else if (
|
|
484
|
+
else if (I == 125 && m++ == 0 && tc() == 125)
|
|
484
485
|
continue;
|
|
485
486
|
}
|
|
486
|
-
switch (
|
|
487
|
+
switch (D += vr(I), I * m) {
|
|
487
488
|
case 38:
|
|
488
|
-
v = c > 0 ? 1 : (
|
|
489
|
+
v = c > 0 ? 1 : (D += "\f", -1);
|
|
489
490
|
break;
|
|
490
491
|
case 44:
|
|
491
|
-
s[l++] = (nt(
|
|
492
|
+
s[l++] = (nt(D) - 1) * v, v = 1;
|
|
492
493
|
break;
|
|
493
494
|
case 64:
|
|
494
|
-
at() === 45 && (
|
|
495
|
+
at() === 45 && (D += Jn(Oe())), h = at(), c = d = nt(y = D += ic($n())), I++;
|
|
495
496
|
break;
|
|
496
497
|
case 45:
|
|
497
|
-
f === 45 && nt(
|
|
498
|
+
f === 45 && nt(D) == 2 && (m = 0);
|
|
498
499
|
}
|
|
499
500
|
}
|
|
500
501
|
return i;
|
|
501
502
|
}
|
|
502
503
|
function Di(e, t, r, n, a, i, o, s, u, l, c) {
|
|
503
|
-
for (var d = a - 1,
|
|
504
|
-
for (var v = 0,
|
|
505
|
-
(
|
|
504
|
+
for (var d = a - 1, h = a === 0 ? i : [""], p = ka(h), f = 0, m = 0, g = 0; f < n; ++f)
|
|
505
|
+
for (var v = 0, I = wn(e, d + 1, d = $l(m = o[f])), y = e; v < p; ++v)
|
|
506
|
+
(y = Oo(m > 0 ? h[v] + " " + I : j(I, /&\f/g, h[v]))) && (u[g++] = y);
|
|
506
507
|
return yr(e, t, r, a === 0 ? Da : s, u, l, c);
|
|
507
508
|
}
|
|
508
509
|
function sc(e, t, r) {
|
|
@@ -819,15 +820,15 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
819
820
|
m.root || (m.return ? c.insert(m.return) : m.value && m.type !== wa && c.insert(m.value + "{}"));
|
|
820
821
|
} : cc(function(m) {
|
|
821
822
|
c.insert(m);
|
|
822
|
-
})],
|
|
823
|
-
return $t(oc(g),
|
|
823
|
+
})], h = lc(l.concat(a, d)), p = function(g) {
|
|
824
|
+
return $t(oc(g), h);
|
|
824
825
|
};
|
|
825
|
-
u = function(g, v,
|
|
826
|
-
c =
|
|
826
|
+
u = function(g, v, I, y) {
|
|
827
|
+
c = I, process.env.NODE_ENV !== "production" && v.map !== void 0 && (c = {
|
|
827
828
|
insert: function(b) {
|
|
828
|
-
|
|
829
|
+
I.insert(b + v.map);
|
|
829
830
|
}
|
|
830
|
-
}),
|
|
831
|
+
}), p(g ? g + "{" + v.styles + "}" : v.styles), y && (f.inserted[v.name] = !0);
|
|
831
832
|
};
|
|
832
833
|
}
|
|
833
834
|
var f = {
|
|
@@ -883,12 +884,12 @@ var ta = { exports: {} }, U = {};
|
|
|
883
884
|
var Ei;
|
|
884
885
|
function kc() {
|
|
885
886
|
return Ei || (Ei = 1, process.env.NODE_ENV !== "production" && function() {
|
|
886
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113,
|
|
887
|
-
function
|
|
887
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
888
|
+
function y(N) {
|
|
888
889
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
889
|
-
N === n || N === l || N === i || N === a || N === d || N ===
|
|
890
|
+
N === n || N === l || N === i || N === a || N === d || N === h || typeof N == "object" && N !== null && (N.$$typeof === f || N.$$typeof === p || N.$$typeof === o || N.$$typeof === s || N.$$typeof === c || N.$$typeof === g || N.$$typeof === v || N.$$typeof === I || N.$$typeof === m);
|
|
890
891
|
}
|
|
891
|
-
function
|
|
892
|
+
function x(N) {
|
|
892
893
|
if (typeof N == "object" && N !== null) {
|
|
893
894
|
var dn = N.$$typeof;
|
|
894
895
|
switch (dn) {
|
|
@@ -908,7 +909,7 @@ function kc() {
|
|
|
908
909
|
case s:
|
|
909
910
|
case c:
|
|
910
911
|
case f:
|
|
911
|
-
case
|
|
912
|
+
case p:
|
|
912
913
|
case o:
|
|
913
914
|
return Rn;
|
|
914
915
|
default:
|
|
@@ -920,47 +921,47 @@ function kc() {
|
|
|
920
921
|
}
|
|
921
922
|
}
|
|
922
923
|
}
|
|
923
|
-
var b = u,
|
|
924
|
+
var b = u, M = l, D = s, T = o, E = t, J = c, z = n, ie = f, oe = p, F = r, q = i, Ee = a, xe = d, Ae = !1;
|
|
924
925
|
function Ke(N) {
|
|
925
|
-
return Ae || (Ae = !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.")), Ve(N) ||
|
|
926
|
+
return Ae || (Ae = !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.")), Ve(N) || x(N) === u;
|
|
926
927
|
}
|
|
927
928
|
function Ve(N) {
|
|
928
|
-
return
|
|
929
|
+
return x(N) === l;
|
|
929
930
|
}
|
|
930
931
|
function ut(N) {
|
|
931
|
-
return
|
|
932
|
+
return x(N) === s;
|
|
932
933
|
}
|
|
933
934
|
function he(N) {
|
|
934
|
-
return
|
|
935
|
+
return x(N) === o;
|
|
935
936
|
}
|
|
936
937
|
function ve(N) {
|
|
937
938
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
938
939
|
}
|
|
939
940
|
function qe(N) {
|
|
940
|
-
return
|
|
941
|
+
return x(N) === c;
|
|
941
942
|
}
|
|
942
943
|
function et(N) {
|
|
943
|
-
return
|
|
944
|
+
return x(N) === n;
|
|
944
945
|
}
|
|
945
946
|
function Te(N) {
|
|
946
|
-
return
|
|
947
|
+
return x(N) === f;
|
|
947
948
|
}
|
|
948
949
|
function Fe(N) {
|
|
949
|
-
return
|
|
950
|
+
return x(N) === p;
|
|
950
951
|
}
|
|
951
952
|
function St(N) {
|
|
952
|
-
return
|
|
953
|
+
return x(N) === r;
|
|
953
954
|
}
|
|
954
955
|
function Vt(N) {
|
|
955
|
-
return
|
|
956
|
+
return x(N) === i;
|
|
956
957
|
}
|
|
957
958
|
function Tr(N) {
|
|
958
|
-
return
|
|
959
|
+
return x(N) === a;
|
|
959
960
|
}
|
|
960
961
|
function Gn(N) {
|
|
961
|
-
return
|
|
962
|
+
return x(N) === d;
|
|
962
963
|
}
|
|
963
|
-
U.AsyncMode = b, U.ConcurrentMode =
|
|
964
|
+
U.AsyncMode = b, U.ConcurrentMode = M, U.ContextConsumer = D, U.ContextProvider = T, U.Element = E, U.ForwardRef = J, U.Fragment = z, U.Lazy = ie, U.Memo = oe, U.Portal = F, U.Profiler = q, U.StrictMode = Ee, U.Suspense = xe, U.isAsyncMode = Ke, U.isConcurrentMode = Ve, U.isContextConsumer = ut, U.isContextProvider = he, U.isElement = ve, U.isForwardRef = qe, U.isFragment = et, U.isLazy = Te, U.isMemo = Fe, U.isPortal = St, U.isProfiler = Vt, U.isStrictMode = Tr, U.isSuspense = Gn, U.isValidElementType = y, U.typeOf = x;
|
|
964
965
|
}()), U;
|
|
965
966
|
}
|
|
966
967
|
var $ = {};
|
|
@@ -977,11 +978,11 @@ function Sc() {
|
|
|
977
978
|
if (Ai)
|
|
978
979
|
return $;
|
|
979
980
|
Ai = 1;
|
|
980
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113,
|
|
981
|
-
function
|
|
981
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
982
|
+
function y(b) {
|
|
982
983
|
if (typeof b == "object" && b !== null) {
|
|
983
|
-
var
|
|
984
|
-
switch (
|
|
984
|
+
var M = b.$$typeof;
|
|
985
|
+
switch (M) {
|
|
985
986
|
case t:
|
|
986
987
|
switch (b = b.type, b) {
|
|
987
988
|
case u:
|
|
@@ -996,48 +997,48 @@ function Sc() {
|
|
|
996
997
|
case s:
|
|
997
998
|
case c:
|
|
998
999
|
case f:
|
|
999
|
-
case
|
|
1000
|
+
case p:
|
|
1000
1001
|
case o:
|
|
1001
1002
|
return b;
|
|
1002
1003
|
default:
|
|
1003
|
-
return
|
|
1004
|
+
return M;
|
|
1004
1005
|
}
|
|
1005
1006
|
}
|
|
1006
1007
|
case r:
|
|
1007
|
-
return
|
|
1008
|
+
return M;
|
|
1008
1009
|
}
|
|
1009
1010
|
}
|
|
1010
1011
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
1012
|
+
function x(b) {
|
|
1013
|
+
return y(b) === l;
|
|
1013
1014
|
}
|
|
1014
|
-
return $.AsyncMode = u, $.ConcurrentMode = l, $.ContextConsumer = s, $.ContextProvider = o, $.Element = t, $.ForwardRef = c, $.Fragment = n, $.Lazy = f, $.Memo =
|
|
1015
|
-
return
|
|
1016
|
-
}, $.isConcurrentMode =
|
|
1017
|
-
return
|
|
1015
|
+
return $.AsyncMode = u, $.ConcurrentMode = l, $.ContextConsumer = s, $.ContextProvider = o, $.Element = t, $.ForwardRef = c, $.Fragment = n, $.Lazy = f, $.Memo = p, $.Portal = r, $.Profiler = i, $.StrictMode = a, $.Suspense = d, $.isAsyncMode = function(b) {
|
|
1016
|
+
return x(b) || y(b) === u;
|
|
1017
|
+
}, $.isConcurrentMode = x, $.isContextConsumer = function(b) {
|
|
1018
|
+
return y(b) === s;
|
|
1018
1019
|
}, $.isContextProvider = function(b) {
|
|
1019
|
-
return
|
|
1020
|
+
return y(b) === o;
|
|
1020
1021
|
}, $.isElement = function(b) {
|
|
1021
1022
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
1022
1023
|
}, $.isForwardRef = function(b) {
|
|
1023
|
-
return
|
|
1024
|
+
return y(b) === c;
|
|
1024
1025
|
}, $.isFragment = function(b) {
|
|
1025
|
-
return
|
|
1026
|
+
return y(b) === n;
|
|
1026
1027
|
}, $.isLazy = function(b) {
|
|
1027
|
-
return
|
|
1028
|
+
return y(b) === f;
|
|
1028
1029
|
}, $.isMemo = function(b) {
|
|
1029
|
-
return
|
|
1030
|
+
return y(b) === p;
|
|
1030
1031
|
}, $.isPortal = function(b) {
|
|
1031
|
-
return
|
|
1032
|
+
return y(b) === r;
|
|
1032
1033
|
}, $.isProfiler = function(b) {
|
|
1033
|
-
return
|
|
1034
|
+
return y(b) === i;
|
|
1034
1035
|
}, $.isStrictMode = function(b) {
|
|
1035
|
-
return
|
|
1036
|
+
return y(b) === a;
|
|
1036
1037
|
}, $.isSuspense = function(b) {
|
|
1037
|
-
return
|
|
1038
|
+
return y(b) === d;
|
|
1038
1039
|
}, $.isValidElementType = function(b) {
|
|
1039
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === l || b === i || b === a || b === d || b ===
|
|
1040
|
-
}, $.typeOf =
|
|
1040
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === l || b === i || b === a || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === o || b.$$typeof === s || b.$$typeof === c || b.$$typeof === g || b.$$typeof === v || b.$$typeof === I || b.$$typeof === m);
|
|
1041
|
+
}, $.typeOf = y, $;
|
|
1041
1042
|
}
|
|
1042
1043
|
process.env.NODE_ENV === "production" ? ta.exports = Sc() : ta.exports = kc();
|
|
1043
1044
|
var Ec = ta.exports, Wo = Ec, Ac = {
|
|
@@ -1230,9 +1231,9 @@ function Mn(e, t, r) {
|
|
|
1230
1231
|
}
|
|
1231
1232
|
case "string":
|
|
1232
1233
|
if (process.env.NODE_ENV !== "production") {
|
|
1233
|
-
var s = [], u = r.replace(Vo, function(c, d,
|
|
1234
|
-
var
|
|
1235
|
-
return s.push("const " +
|
|
1234
|
+
var s = [], u = r.replace(Vo, function(c, d, h) {
|
|
1235
|
+
var p = "animation" + s.length;
|
|
1236
|
+
return s.push("const " + p + " = keyframes`" + h.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}";
|
|
1236
1237
|
});
|
|
1237
1238
|
s.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(s, ["`" + u + "`"]).join(`
|
|
1238
1239
|
`) + `
|
|
@@ -1292,8 +1293,8 @@ var He, kn = function(t, r, n) {
|
|
|
1292
1293
|
for (var s = 1; s < t.length; s++)
|
|
1293
1294
|
i += Mn(n, r, t[s]), a && (process.env.NODE_ENV !== "production" && o[s] === void 0 && console.error(Ni), i += o[s]);
|
|
1294
1295
|
var u;
|
|
1295
|
-
process.env.NODE_ENV !== "production" && (i = i.replace(Ho, function(
|
|
1296
|
-
return u =
|
|
1296
|
+
process.env.NODE_ENV !== "production" && (i = i.replace(Ho, function(h) {
|
|
1297
|
+
return u = h, "";
|
|
1297
1298
|
})), Pi.lastIndex = 0;
|
|
1298
1299
|
for (var l = "", c; (c = Pi.exec(i)) !== null; )
|
|
1299
1300
|
l += "-" + // $FlowFixMe we know it's not null
|
|
@@ -1620,8 +1621,8 @@ var td = function(t) {
|
|
|
1620
1621
|
throw new Error("css can only be used during render");
|
|
1621
1622
|
for (var l = arguments.length, c = new Array(l), d = 0; d < l; d++)
|
|
1622
1623
|
c[d] = arguments[d];
|
|
1623
|
-
var
|
|
1624
|
-
return n.push(
|
|
1624
|
+
var h = kn(c, t.registered);
|
|
1625
|
+
return n.push(h), Ea(t, h, !1), t.key + "-" + h.name;
|
|
1625
1626
|
}, i = function() {
|
|
1626
1627
|
if (r && process.env.NODE_ENV !== "production")
|
|
1627
1628
|
throw new Error("cx can only be used during render");
|
|
@@ -1899,7 +1900,7 @@ function Cd(e) {
|
|
|
1899
1900
|
};
|
|
1900
1901
|
if (!r || !r.offsetParent)
|
|
1901
1902
|
return c;
|
|
1902
|
-
var d = l.getBoundingClientRect(),
|
|
1903
|
+
var d = l.getBoundingClientRect(), h = d.height, p = r.getBoundingClientRect(), f = p.bottom, m = p.height, g = p.top, v = r.offsetParent.getBoundingClientRect(), I = v.top, y = window.innerHeight, x = $o(l), b = parseInt(getComputedStyle(r).marginBottom, 10), M = parseInt(getComputedStyle(r).marginTop, 10), D = I - M, T = y - g, E = D + x, J = h - x - g, z = f - y + x + b, ie = x + g - M, oe = 160;
|
|
1903
1904
|
switch (a) {
|
|
1904
1905
|
case "auto":
|
|
1905
1906
|
case "bottom":
|
|
@@ -1922,10 +1923,10 @@ function Cd(e) {
|
|
|
1922
1923
|
};
|
|
1923
1924
|
}
|
|
1924
1925
|
if (a === "auto" || o) {
|
|
1925
|
-
var
|
|
1926
|
-
return Ee >= n && (
|
|
1926
|
+
var q = t, Ee = o ? D : E;
|
|
1927
|
+
return Ee >= n && (q = Math.min(Ee - b - u.controlHeight, t)), {
|
|
1927
1928
|
placement: "top",
|
|
1928
|
-
maxHeight:
|
|
1929
|
+
maxHeight: q
|
|
1929
1930
|
};
|
|
1930
1931
|
}
|
|
1931
1932
|
if (a === "bottom")
|
|
@@ -1935,7 +1936,7 @@ function Cd(e) {
|
|
|
1935
1936
|
};
|
|
1936
1937
|
break;
|
|
1937
1938
|
case "top":
|
|
1938
|
-
if (
|
|
1939
|
+
if (D >= m)
|
|
1939
1940
|
return {
|
|
1940
1941
|
placement: "top",
|
|
1941
1942
|
maxHeight: t
|
|
@@ -1945,9 +1946,9 @@ function Cd(e) {
|
|
|
1945
1946
|
placement: "top",
|
|
1946
1947
|
maxHeight: t
|
|
1947
1948
|
};
|
|
1948
|
-
if (!o && E >= n || o &&
|
|
1949
|
+
if (!o && E >= n || o && D >= n) {
|
|
1949
1950
|
var xe = t;
|
|
1950
|
-
return (!o && E >= n || o &&
|
|
1951
|
+
return (!o && E >= n || o && D >= n) && (xe = o ? D - M : E - M), i && Vn(l, ie, oe), {
|
|
1951
1952
|
placement: "top",
|
|
1952
1953
|
maxHeight: xe
|
|
1953
1954
|
};
|
|
@@ -1989,9 +1990,9 @@ var oa = function(t) {
|
|
|
1989
1990
|
maxHeight: n.props.maxMenuHeight,
|
|
1990
1991
|
placement: null
|
|
1991
1992
|
}, n.context = void 0, n.getPlacement = function(s) {
|
|
1992
|
-
var u = n.props, l = u.minMenuHeight, c = u.maxMenuHeight, d = u.menuPlacement,
|
|
1993
|
+
var u = n.props, l = u.minMenuHeight, c = u.maxMenuHeight, d = u.menuPlacement, h = u.menuPosition, p = u.menuShouldScrollIntoView, f = u.theme;
|
|
1993
1994
|
if (s) {
|
|
1994
|
-
var m =
|
|
1995
|
+
var m = h === "fixed", g = p && !m, v = Cd({
|
|
1995
1996
|
maxHeight: c,
|
|
1996
1997
|
menuEl: s,
|
|
1997
1998
|
minHeight: l,
|
|
@@ -1999,8 +2000,8 @@ var oa = function(t) {
|
|
|
1999
2000
|
shouldScroll: g,
|
|
2000
2001
|
isFixedPosition: m,
|
|
2001
2002
|
theme: f
|
|
2002
|
-
}),
|
|
2003
|
-
|
|
2003
|
+
}), I = n.context.getPortalPlacement;
|
|
2004
|
+
I && I(v), n.setState(v);
|
|
2004
2005
|
}
|
|
2005
2006
|
}, n.getUpdatedProps = function() {
|
|
2006
2007
|
var s = n.props.menuPlacement, u = n.state.placement || oa(s);
|
|
@@ -2114,15 +2115,15 @@ var Ad = function(t) {
|
|
|
2114
2115
|
return Ga(r, [{
|
|
2115
2116
|
key: "render",
|
|
2116
2117
|
value: function() {
|
|
2117
|
-
var a = this.props, i = a.appendTo, o = a.children, s = a.className, u = a.controlElement, l = a.cx, c = a.innerProps, d = a.menuPlacement,
|
|
2118
|
+
var a = this.props, i = a.appendTo, o = a.children, s = a.className, u = a.controlElement, l = a.cx, c = a.innerProps, d = a.menuPlacement, h = a.menuPosition, p = a.getStyles, f = h === "fixed";
|
|
2118
2119
|
if (!i && !f || !u)
|
|
2119
2120
|
return null;
|
|
2120
|
-
var m = this.state.placement || oa(d), g = md(u), v = f ? 0 : window.pageYOffset,
|
|
2121
|
-
offset:
|
|
2122
|
-
position:
|
|
2121
|
+
var m = this.state.placement || oa(d), g = md(u), v = f ? 0 : window.pageYOffset, I = g[m] + v, y = {
|
|
2122
|
+
offset: I,
|
|
2123
|
+
position: h,
|
|
2123
2124
|
rect: g
|
|
2124
|
-
},
|
|
2125
|
-
css:
|
|
2125
|
+
}, x = P("div", G({
|
|
2126
|
+
css: p("menuPortal", y),
|
|
2126
2127
|
className: l({
|
|
2127
2128
|
"menu-portal": !0
|
|
2128
2129
|
}, s)
|
|
@@ -2131,7 +2132,7 @@ var Ad = function(t) {
|
|
|
2131
2132
|
value: {
|
|
2132
2133
|
getPortalPlacement: this.getPortalPlacement
|
|
2133
2134
|
}
|
|
2134
|
-
}, i ? /* @__PURE__ */ Cl(
|
|
2135
|
+
}, i ? /* @__PURE__ */ Cl(x, i) : x);
|
|
2135
2136
|
}
|
|
2136
2137
|
}]), r;
|
|
2137
2138
|
}(ya), _d = function(t) {
|
|
@@ -2507,10 +2508,10 @@ function ff(e) {
|
|
|
2507
2508
|
}));
|
|
2508
2509
|
}
|
|
2509
2510
|
var hf = function(t) {
|
|
2510
|
-
var r = t.children, n = t.className, a = t.components, i = t.cx, o = t.data, s = t.getStyles, u = t.innerProps, l = t.isDisabled, c = t.removeProps, d = t.selectProps,
|
|
2511
|
+
var r = t.children, n = t.className, a = t.components, i = t.cx, o = t.data, s = t.getStyles, u = t.innerProps, l = t.isDisabled, c = t.removeProps, d = t.selectProps, h = a.Container, p = a.Label, f = a.Remove;
|
|
2511
2512
|
return P(zo, null, function(m) {
|
|
2512
2513
|
var g = m.css, v = m.cx;
|
|
2513
|
-
return P(
|
|
2514
|
+
return P(h, {
|
|
2514
2515
|
data: o,
|
|
2515
2516
|
innerProps: re({
|
|
2516
2517
|
className: v(g(s("multiValue", t)), i({
|
|
@@ -2519,7 +2520,7 @@ var hf = function(t) {
|
|
|
2519
2520
|
}, n))
|
|
2520
2521
|
}, u),
|
|
2521
2522
|
selectProps: d
|
|
2522
|
-
}, P(
|
|
2523
|
+
}, P(p, {
|
|
2523
2524
|
data: o,
|
|
2524
2525
|
innerProps: {
|
|
2525
2526
|
className: v(g(s("multiValueLabel", t)), i({
|
|
@@ -2687,18 +2688,18 @@ function Rr(e, t) {
|
|
|
2687
2688
|
}
|
|
2688
2689
|
var Df = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
2689
2690
|
function Mf(e) {
|
|
2690
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, a = n === void 0 ? !1 : n, i = e.defaultValue, o = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose,
|
|
2691
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, a = n === void 0 ? !1 : n, i = e.defaultValue, o = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, h = e.onMenuOpen, p = e.value, f = an(e, Df), m = se(s !== void 0 ? s : r), g = Rr(m, 2), v = g[0], I = g[1], y = se(u !== void 0 ? u : a), x = Rr(y, 2), b = x[0], M = x[1], D = se(p !== void 0 ? p : o), T = Rr(D, 2), E = T[0], J = T[1], z = Q(function(Ae, Ke) {
|
|
2691
2692
|
typeof l == "function" && l(Ae, Ke), J(Ae);
|
|
2692
|
-
}, [l]), ie =
|
|
2693
|
+
}, [l]), ie = Q(function(Ae, Ke) {
|
|
2693
2694
|
var Ve;
|
|
2694
|
-
typeof c == "function" && (Ve = c(Ae, Ke)),
|
|
2695
|
-
}, [c]), oe =
|
|
2696
|
-
typeof
|
|
2697
|
-
}, [
|
|
2698
|
-
typeof d == "function" && d(),
|
|
2699
|
-
}, [d]),
|
|
2695
|
+
typeof c == "function" && (Ve = c(Ae, Ke)), I(Ve !== void 0 ? Ve : Ae);
|
|
2696
|
+
}, [c]), oe = Q(function() {
|
|
2697
|
+
typeof h == "function" && h(), M(!0);
|
|
2698
|
+
}, [h]), F = Q(function() {
|
|
2699
|
+
typeof d == "function" && d(), M(!1);
|
|
2700
|
+
}, [d]), q = s !== void 0 ? s : v, Ee = u !== void 0 ? u : b, xe = p !== void 0 ? p : E;
|
|
2700
2701
|
return re(re({}, f), {}, {
|
|
2701
|
-
inputValue:
|
|
2702
|
+
inputValue: q,
|
|
2702
2703
|
menuIsOpen: Ee,
|
|
2703
2704
|
onChange: z,
|
|
2704
2705
|
onInputChange: ie,
|
|
@@ -2799,8 +2800,8 @@ var Pf = process.env.NODE_ENV === "production" ? {
|
|
|
2799
2800
|
if (r === "value" && s)
|
|
2800
2801
|
return "value ".concat(o, " focused, ").concat(c(s, n), ".");
|
|
2801
2802
|
if (r === "menu") {
|
|
2802
|
-
var d = u ? " disabled" : "",
|
|
2803
|
-
return "option ".concat(o, " ").concat(
|
|
2803
|
+
var d = u ? " disabled" : "", h = "".concat(l ? "selected" : "focused").concat(d);
|
|
2804
|
+
return "option ".concat(o, " ").concat(h, ", ").concat(c(a, n), ".");
|
|
2804
2805
|
}
|
|
2805
2806
|
return "";
|
|
2806
2807
|
},
|
|
@@ -2809,67 +2810,67 @@ var Pf = process.env.NODE_ENV === "production" ? {
|
|
|
2809
2810
|
return "".concat(n).concat(r ? " for search term " + r : "", ".");
|
|
2810
2811
|
}
|
|
2811
2812
|
}, Ff = function(t) {
|
|
2812
|
-
var r = t.ariaSelection, n = t.focusedOption, a = t.focusedValue, i = t.focusableOptions, o = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = u.ariaLiveMessages, d = u.getOptionLabel,
|
|
2813
|
+
var r = t.ariaSelection, n = t.focusedOption, a = t.focusedValue, i = t.focusableOptions, o = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = u.ariaLiveMessages, d = u.getOptionLabel, h = u.inputValue, p = u.isMulti, f = u.isOptionDisabled, m = u.isSearchable, g = u.menuIsOpen, v = u.options, I = u.screenReaderStatus, y = u.tabSelectsValue, x = u["aria-label"], b = u["aria-live"], M = We(function() {
|
|
2813
2814
|
return re(re({}, Tf), c || {});
|
|
2814
|
-
}, [c]),
|
|
2815
|
+
}, [c]), D = We(function() {
|
|
2815
2816
|
var F = "";
|
|
2816
|
-
if (r &&
|
|
2817
|
-
var
|
|
2817
|
+
if (r && M.onChange) {
|
|
2818
|
+
var q = r.option, Ee = r.options, xe = r.removedValue, Ae = r.removedValues, Ke = r.value, Ve = function(Fe) {
|
|
2818
2819
|
return Array.isArray(Fe) ? null : Fe;
|
|
2819
|
-
}, ut = xe ||
|
|
2820
|
+
}, ut = xe || q || Ve(Ke), he = ut ? d(ut) : "", ve = Ee || Ae || void 0, qe = ve ? ve.map(d) : [], et = re({
|
|
2820
2821
|
// multiSelected items are usually items that have already been selected
|
|
2821
2822
|
// or set by the user as a default value so we assume they are not disabled
|
|
2822
2823
|
isDisabled: ut && f(ut, s),
|
|
2823
2824
|
label: he,
|
|
2824
2825
|
labels: qe
|
|
2825
2826
|
}, r);
|
|
2826
|
-
F =
|
|
2827
|
+
F = M.onChange(et);
|
|
2827
2828
|
}
|
|
2828
2829
|
return F;
|
|
2829
|
-
}, [r,
|
|
2830
|
-
var F = "",
|
|
2831
|
-
if (
|
|
2830
|
+
}, [r, M, f, s, d]), T = We(function() {
|
|
2831
|
+
var F = "", q = n || a, Ee = !!(n && s && s.includes(n));
|
|
2832
|
+
if (q && M.onFocus) {
|
|
2832
2833
|
var xe = {
|
|
2833
|
-
focused:
|
|
2834
|
-
label: d(
|
|
2835
|
-
isDisabled: f(
|
|
2834
|
+
focused: q,
|
|
2835
|
+
label: d(q),
|
|
2836
|
+
isDisabled: f(q, s),
|
|
2836
2837
|
isSelected: Ee,
|
|
2837
2838
|
options: v,
|
|
2838
|
-
context:
|
|
2839
|
+
context: q === n ? "menu" : "value",
|
|
2839
2840
|
selectValue: s
|
|
2840
2841
|
};
|
|
2841
|
-
F =
|
|
2842
|
+
F = M.onFocus(xe);
|
|
2842
2843
|
}
|
|
2843
2844
|
return F;
|
|
2844
|
-
}, [n, a, d, f,
|
|
2845
|
+
}, [n, a, d, f, M, v, s]), E = We(function() {
|
|
2845
2846
|
var F = "";
|
|
2846
|
-
if (g && v.length &&
|
|
2847
|
-
var
|
|
2847
|
+
if (g && v.length && M.onFilter) {
|
|
2848
|
+
var q = I({
|
|
2848
2849
|
count: i.length
|
|
2849
2850
|
});
|
|
2850
|
-
F =
|
|
2851
|
-
inputValue:
|
|
2852
|
-
resultsMessage:
|
|
2851
|
+
F = M.onFilter({
|
|
2852
|
+
inputValue: h,
|
|
2853
|
+
resultsMessage: q
|
|
2853
2854
|
});
|
|
2854
2855
|
}
|
|
2855
2856
|
return F;
|
|
2856
|
-
}, [i,
|
|
2857
|
+
}, [i, h, g, M, v, I]), J = We(function() {
|
|
2857
2858
|
var F = "";
|
|
2858
|
-
if (
|
|
2859
|
-
var
|
|
2860
|
-
F =
|
|
2861
|
-
"aria-label":
|
|
2862
|
-
context:
|
|
2859
|
+
if (M.guidance) {
|
|
2860
|
+
var q = a ? "value" : g ? "menu" : "input";
|
|
2861
|
+
F = M.guidance({
|
|
2862
|
+
"aria-label": x,
|
|
2863
|
+
context: q,
|
|
2863
2864
|
isDisabled: n && f(n, s),
|
|
2864
|
-
isMulti:
|
|
2865
|
+
isMulti: p,
|
|
2865
2866
|
isSearchable: m,
|
|
2866
|
-
tabSelectsValue:
|
|
2867
|
+
tabSelectsValue: y
|
|
2867
2868
|
});
|
|
2868
2869
|
}
|
|
2869
2870
|
return F;
|
|
2870
|
-
}, [
|
|
2871
|
+
}, [x, n, a, p, f, m, g, M, s, y]), z = "".concat(T, " ").concat(E, " ").concat(J), ie = P(Cn, null, P("span", {
|
|
2871
2872
|
id: "aria-selection"
|
|
2872
|
-
},
|
|
2873
|
+
}, D), P("span", {
|
|
2873
2874
|
id: "aria-context"
|
|
2874
2875
|
}, z)), oe = (r == null ? void 0 : r.action) === "initial-input-focus";
|
|
2875
2876
|
return P(Cn, null, P(ji, {
|
|
@@ -3191,28 +3192,28 @@ var Lf = function(t) {
|
|
|
3191
3192
|
t.preventDefault(), t.stopPropagation();
|
|
3192
3193
|
};
|
|
3193
3194
|
function Hf(e) {
|
|
3194
|
-
var t = e.isEnabled, r = e.onBottomArrive, n = e.onBottomLeave, a = e.onTopArrive, i = e.onTopLeave, o = _e(!1), s = _e(!1), u = _e(0), l = _e(null), c =
|
|
3195
|
+
var t = e.isEnabled, r = e.onBottomArrive, n = e.onBottomLeave, a = e.onTopArrive, i = e.onTopLeave, o = _e(!1), s = _e(!1), u = _e(0), l = _e(null), c = Q(function(g, v) {
|
|
3195
3196
|
if (l.current !== null) {
|
|
3196
|
-
var
|
|
3197
|
-
T > v && o.current && (n && n(g), o.current = !1),
|
|
3197
|
+
var I = l.current, y = I.scrollTop, x = I.scrollHeight, b = I.clientHeight, M = l.current, D = v > 0, T = x - b - y, E = !1;
|
|
3198
|
+
T > v && o.current && (n && n(g), o.current = !1), D && s.current && (i && i(g), s.current = !1), D && v > T ? (r && !o.current && r(g), M.scrollTop = x, E = !0, o.current = !0) : !D && -v > y && (a && !s.current && a(g), M.scrollTop = 0, E = !0, s.current = !0), E && Lf(g);
|
|
3198
3199
|
}
|
|
3199
|
-
}, [r, n, a, i]), d =
|
|
3200
|
+
}, [r, n, a, i]), d = Q(function(g) {
|
|
3200
3201
|
c(g, g.deltaY);
|
|
3201
|
-
}, [c]),
|
|
3202
|
+
}, [c]), h = Q(function(g) {
|
|
3202
3203
|
u.current = g.changedTouches[0].clientY;
|
|
3203
|
-
}, []),
|
|
3204
|
+
}, []), p = Q(function(g) {
|
|
3204
3205
|
var v = u.current - g.changedTouches[0].clientY;
|
|
3205
3206
|
c(g, v);
|
|
3206
|
-
}, [c]), f =
|
|
3207
|
+
}, [c]), f = Q(function(g) {
|
|
3207
3208
|
if (g) {
|
|
3208
3209
|
var v = bd ? {
|
|
3209
3210
|
passive: !1
|
|
3210
3211
|
} : !1;
|
|
3211
|
-
g.addEventListener("wheel", d, v), g.addEventListener("touchstart",
|
|
3212
|
+
g.addEventListener("wheel", d, v), g.addEventListener("touchstart", h, v), g.addEventListener("touchmove", p, v);
|
|
3212
3213
|
}
|
|
3213
|
-
}, [
|
|
3214
|
-
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart",
|
|
3215
|
-
}, [
|
|
3214
|
+
}, [p, h, d]), m = Q(function(g) {
|
|
3215
|
+
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", h, !1), g.removeEventListener("touchmove", p, !1));
|
|
3216
|
+
}, [p, h, d]);
|
|
3216
3217
|
return Ze(function() {
|
|
3217
3218
|
if (t) {
|
|
3218
3219
|
var g = l.current;
|
|
@@ -3249,27 +3250,27 @@ var eo = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
3249
3250
|
passive: !1
|
|
3250
3251
|
};
|
|
3251
3252
|
function Zf(e) {
|
|
3252
|
-
var t = e.isEnabled, r = e.accountForScrollbars, n = r === void 0 ? !0 : r, a = _e({}), i = _e(null), o =
|
|
3253
|
+
var t = e.isEnabled, r = e.accountForScrollbars, n = r === void 0 ? !0 : r, a = _e({}), i = _e(null), o = Q(function(u) {
|
|
3253
3254
|
if (eo) {
|
|
3254
3255
|
var l = document.body, c = l && l.style;
|
|
3255
3256
|
if (n && Ui.forEach(function(f) {
|
|
3256
3257
|
var m = c && c[f];
|
|
3257
3258
|
a.current[f] = m;
|
|
3258
3259
|
}), n && hn < 1) {
|
|
3259
|
-
var d = parseInt(a.current.paddingRight, 10) || 0,
|
|
3260
|
+
var d = parseInt(a.current.paddingRight, 10) || 0, h = document.body ? document.body.clientWidth : 0, p = window.innerWidth - h + d || 0;
|
|
3260
3261
|
Object.keys($i).forEach(function(f) {
|
|
3261
3262
|
var m = $i[f];
|
|
3262
3263
|
c && (c[f] = m);
|
|
3263
|
-
}), c && (c.paddingRight = "".concat(
|
|
3264
|
+
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
3264
3265
|
}
|
|
3265
3266
|
l && qi() && (l.addEventListener("touchmove", Ji, Lt), u && (u.addEventListener("touchstart", Ki, Lt), u.addEventListener("touchmove", Qi, Lt))), hn += 1;
|
|
3266
3267
|
}
|
|
3267
|
-
}, [n]), s =
|
|
3268
|
+
}, [n]), s = Q(function(u) {
|
|
3268
3269
|
if (eo) {
|
|
3269
3270
|
var l = document.body, c = l && l.style;
|
|
3270
3271
|
hn = Math.max(hn - 1, 0), n && hn < 1 && Ui.forEach(function(d) {
|
|
3271
|
-
var
|
|
3272
|
-
c && (c[d] =
|
|
3272
|
+
var h = a.current[d];
|
|
3273
|
+
c && (c[d] = h);
|
|
3273
3274
|
}), l && qi() && (l.removeEventListener("touchmove", Ji, Lt), u && (u.removeEventListener("touchstart", Ki, Lt), u.removeEventListener("touchmove", Qi, Lt)));
|
|
3274
3275
|
}
|
|
3275
3276
|
}, [n]);
|
|
@@ -3307,8 +3308,8 @@ function Uf(e) {
|
|
|
3307
3308
|
onTopLeave: u
|
|
3308
3309
|
}), c = Zf({
|
|
3309
3310
|
isEnabled: r
|
|
3310
|
-
}), d = function(
|
|
3311
|
-
l(
|
|
3311
|
+
}), d = function(p) {
|
|
3312
|
+
l(p), c(p);
|
|
3312
3313
|
};
|
|
3313
3314
|
return P(Cn, null, r && P("div", {
|
|
3314
3315
|
onClick: jf,
|
|
@@ -3547,13 +3548,13 @@ var ys = function(t) {
|
|
|
3547
3548
|
option: s
|
|
3548
3549
|
});
|
|
3549
3550
|
}, a.selectOption = function(i) {
|
|
3550
|
-
var o = a.props, s = o.blurInputOnSelect, u = o.isMulti, l = o.name, c = a.state.selectValue, d = u && a.isOptionSelected(i, c),
|
|
3551
|
+
var o = a.props, s = o.blurInputOnSelect, u = o.isMulti, l = o.name, c = a.state.selectValue, d = u && a.isOptionSelected(i, c), h = a.isOptionDisabled(i, c);
|
|
3551
3552
|
if (d) {
|
|
3552
|
-
var
|
|
3553
|
+
var p = a.getOptionValue(i);
|
|
3553
3554
|
a.setValue(c.filter(function(f) {
|
|
3554
|
-
return a.getOptionValue(f) !==
|
|
3555
|
+
return a.getOptionValue(f) !== p;
|
|
3555
3556
|
}), "deselect-option", i);
|
|
3556
|
-
} else if (!
|
|
3557
|
+
} else if (!h)
|
|
3557
3558
|
u ? a.setValue([].concat(ls(c), [i]), "select-option", i) : a.setValue(i, "select-option");
|
|
3558
3559
|
else {
|
|
3559
3560
|
a.ariaOnChange(i, {
|
|
@@ -3691,8 +3692,8 @@ var ys = function(t) {
|
|
|
3691
3692
|
}, a.shouldHideSelectedOptions = function() {
|
|
3692
3693
|
return ys(a.props);
|
|
3693
3694
|
}, a.onKeyDown = function(i) {
|
|
3694
|
-
var o = a.props, s = o.isMulti, u = o.backspaceRemovesValue, l = o.escapeClearsValue, c = o.inputValue, d = o.isClearable,
|
|
3695
|
-
if (!
|
|
3695
|
+
var o = a.props, s = o.isMulti, u = o.backspaceRemovesValue, l = o.escapeClearsValue, c = o.inputValue, d = o.isClearable, h = o.isDisabled, p = o.menuIsOpen, f = o.onKeyDown, m = o.tabSelectsValue, g = o.openMenuOnFocus, v = a.state, I = v.focusedOption, y = v.focusedValue, x = v.selectValue;
|
|
3696
|
+
if (!h && !(typeof f == "function" && (f(i), i.defaultPrevented))) {
|
|
3696
3697
|
switch (a.blockOptionHover = !0, i.key) {
|
|
3697
3698
|
case "ArrowLeft":
|
|
3698
3699
|
if (!s || c)
|
|
@@ -3708,8 +3709,8 @@ var ys = function(t) {
|
|
|
3708
3709
|
case "Backspace":
|
|
3709
3710
|
if (c)
|
|
3710
3711
|
return;
|
|
3711
|
-
if (
|
|
3712
|
-
a.removeValue(
|
|
3712
|
+
if (y)
|
|
3713
|
+
a.removeValue(y);
|
|
3713
3714
|
else {
|
|
3714
3715
|
if (!u)
|
|
3715
3716
|
return;
|
|
@@ -3717,24 +3718,24 @@ var ys = function(t) {
|
|
|
3717
3718
|
}
|
|
3718
3719
|
break;
|
|
3719
3720
|
case "Tab":
|
|
3720
|
-
if (a.isComposing || i.shiftKey || !
|
|
3721
|
+
if (a.isComposing || i.shiftKey || !p || !m || !I || // don't capture the event if the menu opens on focus and the focused
|
|
3721
3722
|
// option is already selected; it breaks the flow of navigation
|
|
3722
|
-
g && a.isOptionSelected(
|
|
3723
|
+
g && a.isOptionSelected(I, x))
|
|
3723
3724
|
return;
|
|
3724
|
-
a.selectOption(
|
|
3725
|
+
a.selectOption(I);
|
|
3725
3726
|
break;
|
|
3726
3727
|
case "Enter":
|
|
3727
3728
|
if (i.keyCode === 229)
|
|
3728
3729
|
break;
|
|
3729
|
-
if (
|
|
3730
|
-
if (!
|
|
3730
|
+
if (p) {
|
|
3731
|
+
if (!I || a.isComposing)
|
|
3731
3732
|
return;
|
|
3732
|
-
a.selectOption(
|
|
3733
|
+
a.selectOption(I);
|
|
3733
3734
|
break;
|
|
3734
3735
|
}
|
|
3735
3736
|
return;
|
|
3736
3737
|
case "Escape":
|
|
3737
|
-
|
|
3738
|
+
p ? (a.setState({
|
|
3738
3739
|
inputIsHiddenAfterUpdate: !1
|
|
3739
3740
|
}), a.onInputChange("", {
|
|
3740
3741
|
action: "menu-close",
|
|
@@ -3744,37 +3745,37 @@ var ys = function(t) {
|
|
|
3744
3745
|
case " ":
|
|
3745
3746
|
if (c)
|
|
3746
3747
|
return;
|
|
3747
|
-
if (!
|
|
3748
|
+
if (!p) {
|
|
3748
3749
|
a.openMenu("first");
|
|
3749
3750
|
break;
|
|
3750
3751
|
}
|
|
3751
|
-
if (!
|
|
3752
|
+
if (!I)
|
|
3752
3753
|
return;
|
|
3753
|
-
a.selectOption(
|
|
3754
|
+
a.selectOption(I);
|
|
3754
3755
|
break;
|
|
3755
3756
|
case "ArrowUp":
|
|
3756
|
-
|
|
3757
|
+
p ? a.focusOption("up") : a.openMenu("last");
|
|
3757
3758
|
break;
|
|
3758
3759
|
case "ArrowDown":
|
|
3759
|
-
|
|
3760
|
+
p ? a.focusOption("down") : a.openMenu("first");
|
|
3760
3761
|
break;
|
|
3761
3762
|
case "PageUp":
|
|
3762
|
-
if (!
|
|
3763
|
+
if (!p)
|
|
3763
3764
|
return;
|
|
3764
3765
|
a.focusOption("pageup");
|
|
3765
3766
|
break;
|
|
3766
3767
|
case "PageDown":
|
|
3767
|
-
if (!
|
|
3768
|
+
if (!p)
|
|
3768
3769
|
return;
|
|
3769
3770
|
a.focusOption("pagedown");
|
|
3770
3771
|
break;
|
|
3771
3772
|
case "Home":
|
|
3772
|
-
if (!
|
|
3773
|
+
if (!p)
|
|
3773
3774
|
return;
|
|
3774
3775
|
a.focusOption("first");
|
|
3775
3776
|
break;
|
|
3776
3777
|
case "End":
|
|
3777
|
-
if (!
|
|
3778
|
+
if (!p)
|
|
3778
3779
|
return;
|
|
3779
3780
|
a.focusOption("last");
|
|
3780
3781
|
break;
|
|
@@ -3908,7 +3909,7 @@ var ys = function(t) {
|
|
|
3908
3909
|
}, {
|
|
3909
3910
|
key: "getCommonProps",
|
|
3910
3911
|
value: function() {
|
|
3911
|
-
var a = this.clearValue, i = this.cx, o = this.getStyles, s = this.getValue, u = this.selectOption, l = this.setValue, c = this.props, d = c.isMulti,
|
|
3912
|
+
var a = this.clearValue, i = this.cx, o = this.getStyles, s = this.getValue, u = this.selectOption, l = this.setValue, c = this.props, d = c.isMulti, h = c.isRtl, p = c.options, f = this.hasValue();
|
|
3912
3913
|
return {
|
|
3913
3914
|
clearValue: a,
|
|
3914
3915
|
cx: i,
|
|
@@ -3916,8 +3917,8 @@ var ys = function(t) {
|
|
|
3916
3917
|
getValue: s,
|
|
3917
3918
|
hasValue: f,
|
|
3918
3919
|
isMulti: d,
|
|
3919
|
-
isRtl:
|
|
3920
|
-
options:
|
|
3920
|
+
isRtl: h,
|
|
3921
|
+
options: p,
|
|
3921
3922
|
selectOption: u,
|
|
3922
3923
|
selectProps: c,
|
|
3923
3924
|
setValue: l,
|
|
@@ -4014,7 +4015,7 @@ var ys = function(t) {
|
|
|
4014
4015
|
// Renderers
|
|
4015
4016
|
// ==============================
|
|
4016
4017
|
function() {
|
|
4017
|
-
var a = this.props, i = a.isDisabled, o = a.isSearchable, s = a.inputId, u = a.inputValue, l = a.tabIndex, c = a.form, d = a.menuIsOpen,
|
|
4018
|
+
var a = this.props, i = a.isDisabled, o = a.isSearchable, s = a.inputId, u = a.inputValue, l = a.tabIndex, c = a.form, d = a.menuIsOpen, h = this.getComponents(), p = h.Input, f = this.state, m = f.inputIsHidden, g = f.ariaSelection, v = this.commonProps, I = s || this.getElementId("input"), y = re(re({
|
|
4018
4019
|
"aria-autocomplete": "list",
|
|
4019
4020
|
"aria-expanded": d,
|
|
4020
4021
|
"aria-haspopup": !0,
|
|
@@ -4032,11 +4033,11 @@ var ys = function(t) {
|
|
|
4032
4033
|
} : {
|
|
4033
4034
|
"aria-describedby": this.getElementId("placeholder")
|
|
4034
4035
|
});
|
|
4035
|
-
return o ? /* @__PURE__ */ R.createElement(
|
|
4036
|
+
return o ? /* @__PURE__ */ R.createElement(p, G({}, v, {
|
|
4036
4037
|
autoCapitalize: "none",
|
|
4037
4038
|
autoComplete: "off",
|
|
4038
4039
|
autoCorrect: "off",
|
|
4039
|
-
id:
|
|
4040
|
+
id: I,
|
|
4040
4041
|
innerRef: this.getInputRef,
|
|
4041
4042
|
isDisabled: i,
|
|
4042
4043
|
isHidden: m,
|
|
@@ -4048,8 +4049,8 @@ var ys = function(t) {
|
|
|
4048
4049
|
form: c,
|
|
4049
4050
|
type: "text",
|
|
4050
4051
|
value: u
|
|
4051
|
-
},
|
|
4052
|
-
id:
|
|
4052
|
+
}, y)) : /* @__PURE__ */ R.createElement(Vf, G({
|
|
4053
|
+
id: I,
|
|
4053
4054
|
innerRef: this.getInputRef,
|
|
4054
4055
|
onBlur: this.onInputBlur,
|
|
4055
4056
|
onChange: or,
|
|
@@ -4059,26 +4060,26 @@ var ys = function(t) {
|
|
|
4059
4060
|
inputMode: "none",
|
|
4060
4061
|
form: c,
|
|
4061
4062
|
value: ""
|
|
4062
|
-
},
|
|
4063
|
+
}, y));
|
|
4063
4064
|
}
|
|
4064
4065
|
)
|
|
4065
4066
|
}, {
|
|
4066
4067
|
key: "renderPlaceholderOrValue",
|
|
4067
4068
|
value: function() {
|
|
4068
|
-
var a = this, i = this.getComponents(), o = i.MultiValue, s = i.MultiValueContainer, u = i.MultiValueLabel, l = i.MultiValueRemove, c = i.SingleValue, d = i.Placeholder,
|
|
4069
|
+
var a = this, i = this.getComponents(), o = i.MultiValue, s = i.MultiValueContainer, u = i.MultiValueLabel, l = i.MultiValueRemove, c = i.SingleValue, d = i.Placeholder, h = this.commonProps, p = this.props, f = p.controlShouldRenderValue, m = p.isDisabled, g = p.isMulti, v = p.inputValue, I = p.placeholder, y = this.state, x = y.selectValue, b = y.focusedValue, M = y.isFocused;
|
|
4069
4070
|
if (!this.hasValue() || !f)
|
|
4070
|
-
return v ? null : /* @__PURE__ */ R.createElement(d, G({},
|
|
4071
|
+
return v ? null : /* @__PURE__ */ R.createElement(d, G({}, h, {
|
|
4071
4072
|
key: "placeholder",
|
|
4072
4073
|
isDisabled: m,
|
|
4073
|
-
isFocused:
|
|
4074
|
+
isFocused: M,
|
|
4074
4075
|
innerProps: {
|
|
4075
4076
|
id: this.getElementId("placeholder")
|
|
4076
4077
|
}
|
|
4077
|
-
}),
|
|
4078
|
+
}), I);
|
|
4078
4079
|
if (g)
|
|
4079
|
-
return
|
|
4080
|
+
return x.map(function(T, E) {
|
|
4080
4081
|
var J = T === b, z = "".concat(a.getOptionLabel(T), "-").concat(a.getOptionValue(T));
|
|
4081
|
-
return /* @__PURE__ */ R.createElement(o, G({},
|
|
4082
|
+
return /* @__PURE__ */ R.createElement(o, G({}, h, {
|
|
4082
4083
|
components: {
|
|
4083
4084
|
Container: s,
|
|
4084
4085
|
Label: u,
|
|
@@ -4104,11 +4105,11 @@ var ys = function(t) {
|
|
|
4104
4105
|
});
|
|
4105
4106
|
if (v)
|
|
4106
4107
|
return null;
|
|
4107
|
-
var
|
|
4108
|
-
return /* @__PURE__ */ R.createElement(c, G({},
|
|
4109
|
-
data:
|
|
4108
|
+
var D = x[0];
|
|
4109
|
+
return /* @__PURE__ */ R.createElement(c, G({}, h, {
|
|
4110
|
+
data: D,
|
|
4110
4111
|
isDisabled: m
|
|
4111
|
-
}), this.formatOptionLabel(
|
|
4112
|
+
}), this.formatOptionLabel(D, "value"));
|
|
4112
4113
|
}
|
|
4113
4114
|
}, {
|
|
4114
4115
|
key: "renderClearIndicator",
|
|
@@ -4173,8 +4174,8 @@ var ys = function(t) {
|
|
|
4173
4174
|
}, {
|
|
4174
4175
|
key: "renderMenu",
|
|
4175
4176
|
value: function() {
|
|
4176
|
-
var a = this, i = this.getComponents(), o = i.Group, s = i.GroupHeading, u = i.Menu, l = i.MenuList, c = i.MenuPortal, d = i.LoadingMessage,
|
|
4177
|
-
if (!
|
|
4177
|
+
var a = this, i = this.getComponents(), o = i.Group, s = i.GroupHeading, u = i.Menu, l = i.MenuList, c = i.MenuPortal, d = i.LoadingMessage, h = i.NoOptionsMessage, p = i.Option, f = this.commonProps, m = this.state.focusedOption, g = this.props, v = g.captureMenuScroll, I = g.inputValue, y = g.isLoading, x = g.loadingMessage, b = g.minMenuHeight, M = g.maxMenuHeight, D = g.menuIsOpen, T = g.menuPlacement, E = g.menuPosition, J = g.menuPortalTarget, z = g.menuShouldBlockScroll, ie = g.menuShouldScrollIntoView, oe = g.noOptionsMessage, F = g.onMenuScrollToTop, q = g.onMenuScrollToBottom;
|
|
4178
|
+
if (!D)
|
|
4178
4179
|
return null;
|
|
4179
4180
|
var Ee = function(ve, qe) {
|
|
4180
4181
|
var et = ve.type, Te = ve.data, Fe = ve.isDisabled, St = ve.isSelected, Vt = ve.label, Tr = ve.value, Gn = m === Te, N = Fe ? void 0 : function() {
|
|
@@ -4188,7 +4189,7 @@ var ys = function(t) {
|
|
|
4188
4189
|
onMouseOver: N,
|
|
4189
4190
|
tabIndex: -1
|
|
4190
4191
|
};
|
|
4191
|
-
return /* @__PURE__ */ R.createElement(
|
|
4192
|
+
return /* @__PURE__ */ R.createElement(p, G({}, f, {
|
|
4192
4193
|
innerProps: Rn,
|
|
4193
4194
|
data: Te,
|
|
4194
4195
|
isDisabled: Fe,
|
|
@@ -4221,24 +4222,24 @@ var ys = function(t) {
|
|
|
4221
4222
|
} else if (he.type === "option")
|
|
4222
4223
|
return Ee(he, "".concat(he.index));
|
|
4223
4224
|
});
|
|
4224
|
-
else if (
|
|
4225
|
-
var Ae =
|
|
4226
|
-
inputValue:
|
|
4225
|
+
else if (y) {
|
|
4226
|
+
var Ae = x({
|
|
4227
|
+
inputValue: I
|
|
4227
4228
|
});
|
|
4228
4229
|
if (Ae === null)
|
|
4229
4230
|
return null;
|
|
4230
4231
|
xe = /* @__PURE__ */ R.createElement(d, f, Ae);
|
|
4231
4232
|
} else {
|
|
4232
4233
|
var Ke = oe({
|
|
4233
|
-
inputValue:
|
|
4234
|
+
inputValue: I
|
|
4234
4235
|
});
|
|
4235
4236
|
if (Ke === null)
|
|
4236
4237
|
return null;
|
|
4237
|
-
xe = /* @__PURE__ */ R.createElement(
|
|
4238
|
+
xe = /* @__PURE__ */ R.createElement(h, f, Ke);
|
|
4238
4239
|
}
|
|
4239
4240
|
var Ve = {
|
|
4240
4241
|
minMenuHeight: b,
|
|
4241
|
-
maxMenuHeight:
|
|
4242
|
+
maxMenuHeight: M,
|
|
4242
4243
|
menuPlacement: T,
|
|
4243
4244
|
menuPosition: E,
|
|
4244
4245
|
menuShouldScrollIntoView: ie
|
|
@@ -4251,19 +4252,19 @@ var ys = function(t) {
|
|
|
4251
4252
|
onMouseMove: a.onMenuMouseMove,
|
|
4252
4253
|
id: a.getElementId("listbox")
|
|
4253
4254
|
},
|
|
4254
|
-
isLoading:
|
|
4255
|
+
isLoading: y,
|
|
4255
4256
|
placement: et
|
|
4256
4257
|
}), /* @__PURE__ */ R.createElement(Uf, {
|
|
4257
4258
|
captureEnabled: v,
|
|
4258
4259
|
onTopArrive: F,
|
|
4259
|
-
onBottomArrive:
|
|
4260
|
+
onBottomArrive: q,
|
|
4260
4261
|
lockEnabled: z
|
|
4261
4262
|
}, function(Fe) {
|
|
4262
4263
|
return /* @__PURE__ */ R.createElement(l, G({}, f, {
|
|
4263
4264
|
innerRef: function(Vt) {
|
|
4264
4265
|
a.getMenuListRef(Vt), Fe(Vt);
|
|
4265
4266
|
},
|
|
4266
|
-
isLoading:
|
|
4267
|
+
isLoading: y,
|
|
4267
4268
|
maxHeight: Te,
|
|
4268
4269
|
focusedOption: m
|
|
4269
4270
|
}), xe);
|
|
@@ -4292,7 +4293,7 @@ var ys = function(t) {
|
|
|
4292
4293
|
value: d
|
|
4293
4294
|
});
|
|
4294
4295
|
} else {
|
|
4295
|
-
var
|
|
4296
|
+
var h = c.length > 0 ? c.map(function(f, m) {
|
|
4296
4297
|
return /* @__PURE__ */ R.createElement("input", {
|
|
4297
4298
|
key: "i-".concat(m),
|
|
4298
4299
|
name: l,
|
|
@@ -4303,14 +4304,14 @@ var ys = function(t) {
|
|
|
4303
4304
|
name: l,
|
|
4304
4305
|
type: "hidden"
|
|
4305
4306
|
});
|
|
4306
|
-
return /* @__PURE__ */ R.createElement("div", null,
|
|
4307
|
+
return /* @__PURE__ */ R.createElement("div", null, h);
|
|
4307
4308
|
}
|
|
4308
4309
|
else {
|
|
4309
|
-
var
|
|
4310
|
+
var p = c[0] ? this.getOptionValue(c[0]) : "";
|
|
4310
4311
|
return /* @__PURE__ */ R.createElement("input", {
|
|
4311
4312
|
name: l,
|
|
4312
4313
|
type: "hidden",
|
|
4313
|
-
value:
|
|
4314
|
+
value: p
|
|
4314
4315
|
});
|
|
4315
4316
|
}
|
|
4316
4317
|
}
|
|
@@ -4331,14 +4332,14 @@ var ys = function(t) {
|
|
|
4331
4332
|
}, {
|
|
4332
4333
|
key: "render",
|
|
4333
4334
|
value: function() {
|
|
4334
|
-
var a = this.getComponents(), i = a.Control, o = a.IndicatorsContainer, s = a.SelectContainer, u = a.ValueContainer, l = this.props, c = l.className, d = l.id,
|
|
4335
|
+
var a = this.getComponents(), i = a.Control, o = a.IndicatorsContainer, s = a.SelectContainer, u = a.ValueContainer, l = this.props, c = l.className, d = l.id, h = l.isDisabled, p = l.menuIsOpen, f = this.state.isFocused, m = this.commonProps = this.getCommonProps();
|
|
4335
4336
|
return /* @__PURE__ */ R.createElement(s, G({}, m, {
|
|
4336
4337
|
className: c,
|
|
4337
4338
|
innerProps: {
|
|
4338
4339
|
id: d,
|
|
4339
4340
|
onKeyDown: this.onKeyDown
|
|
4340
4341
|
},
|
|
4341
|
-
isDisabled:
|
|
4342
|
+
isDisabled: h,
|
|
4342
4343
|
isFocused: f
|
|
4343
4344
|
}), this.renderLiveRegion(), /* @__PURE__ */ R.createElement(i, G({}, m, {
|
|
4344
4345
|
innerRef: this.getControlRef,
|
|
@@ -4346,39 +4347,39 @@ var ys = function(t) {
|
|
|
4346
4347
|
onMouseDown: this.onControlMouseDown,
|
|
4347
4348
|
onTouchEnd: this.onControlTouchEnd
|
|
4348
4349
|
},
|
|
4349
|
-
isDisabled:
|
|
4350
|
+
isDisabled: h,
|
|
4350
4351
|
isFocused: f,
|
|
4351
|
-
menuIsOpen:
|
|
4352
|
+
menuIsOpen: p
|
|
4352
4353
|
}), /* @__PURE__ */ R.createElement(u, G({}, m, {
|
|
4353
|
-
isDisabled:
|
|
4354
|
+
isDisabled: h
|
|
4354
4355
|
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ R.createElement(o, G({}, m, {
|
|
4355
|
-
isDisabled:
|
|
4356
|
+
isDisabled: h
|
|
4356
4357
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
4357
4358
|
}
|
|
4358
4359
|
}], [{
|
|
4359
4360
|
key: "getDerivedStateFromProps",
|
|
4360
4361
|
value: function(a, i) {
|
|
4361
|
-
var o = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, l = i.ariaSelection, c = i.isFocused, d = i.prevWasFocused,
|
|
4362
|
-
if (o && (
|
|
4363
|
-
var
|
|
4364
|
-
|
|
4362
|
+
var o = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, l = i.ariaSelection, c = i.isFocused, d = i.prevWasFocused, h = a.options, p = a.value, f = a.menuIsOpen, m = a.inputValue, g = a.isMulti, v = Li(p), I = {};
|
|
4363
|
+
if (o && (p !== o.value || h !== o.options || f !== o.menuIsOpen || m !== o.inputValue)) {
|
|
4364
|
+
var y = f ? oh(a, v) : [], x = s ? sh(i, v) : null, b = uh(i, y);
|
|
4365
|
+
I = {
|
|
4365
4366
|
selectValue: v,
|
|
4366
4367
|
focusedOption: b,
|
|
4367
|
-
focusedValue:
|
|
4368
|
+
focusedValue: x,
|
|
4368
4369
|
clearFocusValueOnUpdate: !1
|
|
4369
4370
|
};
|
|
4370
4371
|
}
|
|
4371
|
-
var
|
|
4372
|
+
var M = u != null && a !== o ? {
|
|
4372
4373
|
inputIsHidden: u,
|
|
4373
4374
|
inputIsHiddenAfterUpdate: void 0
|
|
4374
|
-
} : {},
|
|
4375
|
-
return c && !T && (
|
|
4375
|
+
} : {}, D = l, T = c && d;
|
|
4376
|
+
return c && !T && (D = {
|
|
4376
4377
|
value: Hn(g, v, v[0] || null),
|
|
4377
4378
|
options: v,
|
|
4378
4379
|
action: "initial-input-focus"
|
|
4379
|
-
}, T = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (
|
|
4380
|
+
}, T = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (D = null), re(re(re({}, I), M), {}, {
|
|
4380
4381
|
prevProps: a,
|
|
4381
|
-
ariaSelection:
|
|
4382
|
+
ariaSelection: D,
|
|
4382
4383
|
prevWasFocused: T
|
|
4383
4384
|
});
|
|
4384
4385
|
}
|
|
@@ -4523,41 +4524,48 @@ const r1 = ({
|
|
|
4523
4524
|
onChange: l,
|
|
4524
4525
|
background: c,
|
|
4525
4526
|
"data-tip": d,
|
|
4526
|
-
"data-tip-disable":
|
|
4527
|
-
"data-testid":
|
|
4527
|
+
"data-tip-disable": h,
|
|
4528
|
+
"data-testid": p,
|
|
4528
4529
|
...f
|
|
4529
4530
|
}) => {
|
|
4530
|
-
const m = _e(null), g =
|
|
4531
|
-
(
|
|
4532
|
-
if (!i && (
|
|
4533
|
-
const
|
|
4534
|
-
|
|
4535
|
-
const
|
|
4536
|
-
...
|
|
4531
|
+
const m = _e(null), g = Q(
|
|
4532
|
+
(x) => {
|
|
4533
|
+
if (!i && (x.preventDefault(), m.current)) {
|
|
4534
|
+
const b = !m.current.checked;
|
|
4535
|
+
x.currentTarget.setAttribute("aria-checked", b.toString()), m.current.checked = b;
|
|
4536
|
+
const M = {
|
|
4537
|
+
...x,
|
|
4537
4538
|
target: {
|
|
4538
4539
|
...m.current,
|
|
4539
|
-
checked:
|
|
4540
|
+
checked: b,
|
|
4540
4541
|
id: y
|
|
4541
4542
|
}
|
|
4542
4543
|
};
|
|
4543
4544
|
typeof l == "function" && l(
|
|
4544
|
-
|
|
4545
|
-
|
|
4545
|
+
M,
|
|
4546
|
+
b
|
|
4546
4547
|
);
|
|
4547
4548
|
}
|
|
4548
4549
|
},
|
|
4549
4550
|
[l]
|
|
4550
|
-
), v =
|
|
4551
|
-
(
|
|
4552
|
-
|
|
4551
|
+
), v = Q(
|
|
4552
|
+
(x) => {
|
|
4553
|
+
x.key.match(/enter|spacebar|\W{1}/i) && g(x);
|
|
4553
4554
|
},
|
|
4554
4555
|
[g]
|
|
4556
|
+
), I = Q(
|
|
4557
|
+
(x) => {
|
|
4558
|
+
i || typeof l == "function" && l(x, x.target.checked);
|
|
4559
|
+
},
|
|
4560
|
+
[l, i]
|
|
4555
4561
|
), y = We(() => a || nn(), [a]);
|
|
4556
4562
|
return /* @__PURE__ */ Me(wh, { background: c, children: [
|
|
4557
4563
|
/* @__PURE__ */ V(
|
|
4558
4564
|
vh,
|
|
4559
4565
|
{
|
|
4560
4566
|
"aria-hidden": "true",
|
|
4567
|
+
onChange: I,
|
|
4568
|
+
onKeyDown: v,
|
|
4561
4569
|
ref: m,
|
|
4562
4570
|
type: "checkbox",
|
|
4563
4571
|
tabIndex: -1,
|
|
@@ -4565,7 +4573,7 @@ const r1 = ({
|
|
|
4565
4573
|
checked: o,
|
|
4566
4574
|
required: u,
|
|
4567
4575
|
id: y,
|
|
4568
|
-
"data-testid":
|
|
4576
|
+
"data-testid": p,
|
|
4569
4577
|
"aria-describedby": r ? `${y}_description` : void 0
|
|
4570
4578
|
}
|
|
4571
4579
|
),
|
|
@@ -4590,7 +4598,7 @@ const r1 = ({
|
|
|
4590
4598
|
bold: !0,
|
|
4591
4599
|
htmlFor: y,
|
|
4592
4600
|
"data-tip": d,
|
|
4593
|
-
"data-tip-disable":
|
|
4601
|
+
"data-tip-disable": h,
|
|
4594
4602
|
onClick: g,
|
|
4595
4603
|
children: e
|
|
4596
4604
|
}
|
|
@@ -4677,9 +4685,12 @@ const r1 = ({
|
|
|
4677
4685
|
position: relative;
|
|
4678
4686
|
|
|
4679
4687
|
input {
|
|
4688
|
+
z-index: -1;
|
|
4689
|
+
position: absolute;
|
|
4680
4690
|
opacity: 0;
|
|
4681
4691
|
width: 0;
|
|
4682
4692
|
height: 0;
|
|
4693
|
+
margin: 0;
|
|
4683
4694
|
}
|
|
4684
4695
|
|
|
4685
4696
|
input:checked + ${Kn} {
|
|
@@ -4717,60 +4728,68 @@ const r1 = ({
|
|
|
4717
4728
|
background: l,
|
|
4718
4729
|
"data-tip": c,
|
|
4719
4730
|
"data-tip-disable": d,
|
|
4731
|
+
"data-testid": h,
|
|
4720
4732
|
...p
|
|
4721
4733
|
}) => {
|
|
4722
|
-
const
|
|
4734
|
+
const f = _e(null), m = We(() => u || nn(), [u]);
|
|
4723
4735
|
Ze(() => {
|
|
4724
|
-
|
|
4736
|
+
f.current && (f.current.indeterminate = n || !1);
|
|
4725
4737
|
}, [n]);
|
|
4726
|
-
const
|
|
4727
|
-
(
|
|
4728
|
-
if (!
|
|
4738
|
+
const g = Q(
|
|
4739
|
+
(y) => {
|
|
4740
|
+
if (!f.current || o)
|
|
4729
4741
|
return;
|
|
4730
|
-
|
|
4731
|
-
const
|
|
4732
|
-
if (
|
|
4733
|
-
const
|
|
4734
|
-
...
|
|
4742
|
+
y.preventDefault();
|
|
4743
|
+
const x = !f.current.checked;
|
|
4744
|
+
if (f.current.checked = x, typeof a == "function") {
|
|
4745
|
+
const b = {
|
|
4746
|
+
...y,
|
|
4735
4747
|
target: {
|
|
4736
|
-
...
|
|
4737
|
-
checked:
|
|
4738
|
-
id:
|
|
4748
|
+
...f.current,
|
|
4749
|
+
checked: x,
|
|
4750
|
+
id: m
|
|
4739
4751
|
}
|
|
4740
4752
|
};
|
|
4741
|
-
a(
|
|
4753
|
+
a(b, x);
|
|
4742
4754
|
}
|
|
4743
4755
|
},
|
|
4744
|
-
[o,
|
|
4745
|
-
),
|
|
4746
|
-
(
|
|
4747
|
-
!
|
|
4756
|
+
[o, m, a]
|
|
4757
|
+
), v = Q(
|
|
4758
|
+
(y) => {
|
|
4759
|
+
!y.key.match(/enter|spacebar|\W{1}/i) || !f.current || (y.preventDefault(), g(y));
|
|
4748
4760
|
},
|
|
4749
4761
|
[a]
|
|
4762
|
+
), I = Q(
|
|
4763
|
+
(y) => {
|
|
4764
|
+
typeof a == "function" && !o && a(y, y.target.checked);
|
|
4765
|
+
},
|
|
4766
|
+
[o, a]
|
|
4750
4767
|
);
|
|
4751
4768
|
return /* @__PURE__ */ Me(Oh, { style: i, background: l, children: [
|
|
4752
4769
|
/* @__PURE__ */ V(
|
|
4753
4770
|
"input",
|
|
4754
4771
|
{
|
|
4755
|
-
ref:
|
|
4772
|
+
ref: f,
|
|
4773
|
+
onChange: I,
|
|
4774
|
+
onKeyDown: v,
|
|
4756
4775
|
type: "checkbox",
|
|
4757
4776
|
tabIndex: -1,
|
|
4758
4777
|
disabled: o,
|
|
4759
4778
|
checked: s,
|
|
4760
4779
|
"aria-checked": n ? "mixed" : s,
|
|
4761
4780
|
"aria-disabled": o,
|
|
4762
|
-
"aria-describedby": r ? `${
|
|
4763
|
-
|
|
4781
|
+
"aria-describedby": r ? `${m}_description` : void 0,
|
|
4782
|
+
"data-testid": h,
|
|
4783
|
+
id: m,
|
|
4764
4784
|
...p
|
|
4765
4785
|
}
|
|
4766
4786
|
),
|
|
4767
4787
|
n ? /* @__PURE__ */ V(
|
|
4768
4788
|
Nt,
|
|
4769
4789
|
{
|
|
4770
|
-
onClick:
|
|
4771
|
-
onKeyDown:
|
|
4790
|
+
onClick: g,
|
|
4791
|
+
onKeyDown: v,
|
|
4772
4792
|
tabIndex: 0,
|
|
4773
|
-
"aria-checked": "mixed",
|
|
4774
4793
|
"aria-disabled": o,
|
|
4775
4794
|
background: l,
|
|
4776
4795
|
...p,
|
|
@@ -4779,10 +4798,9 @@ const r1 = ({
|
|
|
4779
4798
|
) : /* @__PURE__ */ V(
|
|
4780
4799
|
Ct,
|
|
4781
4800
|
{
|
|
4782
|
-
onClick:
|
|
4783
|
-
onKeyDown:
|
|
4801
|
+
onClick: g,
|
|
4802
|
+
onKeyDown: v,
|
|
4784
4803
|
tabIndex: 0,
|
|
4785
|
-
"aria-checked": s,
|
|
4786
4804
|
"aria-disabled": o,
|
|
4787
4805
|
background: l,
|
|
4788
4806
|
...p,
|
|
@@ -4794,9 +4812,9 @@ const r1 = ({
|
|
|
4794
4812
|
e && /* @__PURE__ */ V(
|
|
4795
4813
|
_h,
|
|
4796
4814
|
{
|
|
4797
|
-
onClick:
|
|
4815
|
+
onClick: g,
|
|
4798
4816
|
bold: !0,
|
|
4799
|
-
htmlFor:
|
|
4817
|
+
htmlFor: m,
|
|
4800
4818
|
"data-tip": c,
|
|
4801
4819
|
"data-tip-disable": d,
|
|
4802
4820
|
children: e
|
|
@@ -4804,7 +4822,7 @@ const r1 = ({
|
|
|
4804
4822
|
),
|
|
4805
4823
|
t && /* @__PURE__ */ V(Ah, { children: t })
|
|
4806
4824
|
] }),
|
|
4807
|
-
r && /* @__PURE__ */ V(Nh, { id: `${
|
|
4825
|
+
r && /* @__PURE__ */ V(Nh, { id: `${m}_description`, children: r })
|
|
4808
4826
|
] })
|
|
4809
4827
|
] });
|
|
4810
4828
|
}, Ct = A.span`
|
|
@@ -4866,6 +4884,8 @@ const r1 = ({
|
|
|
4866
4884
|
user-select: none;
|
|
4867
4885
|
|
|
4868
4886
|
input {
|
|
4887
|
+
z-index: -1;
|
|
4888
|
+
position: absolute;
|
|
4869
4889
|
opacity: 0;
|
|
4870
4890
|
width: 0;
|
|
4871
4891
|
height: 0;
|
|
@@ -4942,10 +4962,10 @@ const r1 = ({
|
|
|
4942
4962
|
Ze(() => {
|
|
4943
4963
|
e && d(e);
|
|
4944
4964
|
}, [e]);
|
|
4945
|
-
const
|
|
4965
|
+
const h = (f) => c.includes(f), p = (f, m, g) => {
|
|
4946
4966
|
f.onChange && f.onChange(m, g);
|
|
4947
|
-
const
|
|
4948
|
-
d(
|
|
4967
|
+
const I = (g ? [...c, f.value] : c.filter((y) => y !== f.value)).sort(Th(u));
|
|
4968
|
+
d(I), o && o(I);
|
|
4949
4969
|
};
|
|
4950
4970
|
return /* @__PURE__ */ V(Bh, { className: a, children: u.map((f) => /* @__PURE__ */ V("li", { children: /* @__PURE__ */ V(
|
|
4951
4971
|
Dh,
|
|
@@ -4954,8 +4974,8 @@ const r1 = ({
|
|
|
4954
4974
|
background: f.background,
|
|
4955
4975
|
name: r,
|
|
4956
4976
|
disabled: f.disabled || t || !1,
|
|
4957
|
-
checked:
|
|
4958
|
-
onChange: (m, g) =>
|
|
4977
|
+
checked: h(f.value),
|
|
4978
|
+
onChange: (m, g) => p(f, m, g)
|
|
4959
4979
|
}
|
|
4960
4980
|
) }, f.value)) });
|
|
4961
4981
|
}, Bh = A.ul`
|
|
@@ -4974,49 +4994,57 @@ const r1 = ({
|
|
|
4974
4994
|
background: n,
|
|
4975
4995
|
id: a,
|
|
4976
4996
|
onChange: i,
|
|
4977
|
-
|
|
4997
|
+
"data-testid": o,
|
|
4998
|
+
...s
|
|
4978
4999
|
}) => {
|
|
4979
|
-
const [
|
|
4980
|
-
(
|
|
4981
|
-
if (
|
|
5000
|
+
const [u] = se(() => a || `radio_${nn()}`), l = Q(
|
|
5001
|
+
(h) => {
|
|
5002
|
+
if (s.disabled)
|
|
4982
5003
|
return;
|
|
4983
|
-
|
|
4984
|
-
const
|
|
4985
|
-
...
|
|
5004
|
+
h.preventDefault();
|
|
5005
|
+
const p = {
|
|
5006
|
+
...h,
|
|
4986
5007
|
target: {
|
|
4987
|
-
...
|
|
5008
|
+
...h.target,
|
|
4988
5009
|
checked: !0,
|
|
4989
|
-
id:
|
|
5010
|
+
id: u
|
|
4990
5011
|
}
|
|
4991
5012
|
};
|
|
4992
5013
|
typeof i == "function" && i(
|
|
4993
|
-
|
|
5014
|
+
p,
|
|
4994
5015
|
!0
|
|
4995
5016
|
);
|
|
4996
5017
|
},
|
|
4997
|
-
[
|
|
4998
|
-
),
|
|
4999
|
-
(
|
|
5000
|
-
|
|
5018
|
+
[u, i, s.disabled]
|
|
5019
|
+
), c = Q(
|
|
5020
|
+
(h) => {
|
|
5021
|
+
h.key.match(/enter|spacebar|\W{1}/i) && (h.preventDefault(), l(h));
|
|
5001
5022
|
},
|
|
5002
|
-
[
|
|
5023
|
+
[l]
|
|
5024
|
+
), d = Q(
|
|
5025
|
+
(h) => {
|
|
5026
|
+
s.disabled || typeof i == "function" && i(h, h.target.checked);
|
|
5027
|
+
},
|
|
5028
|
+
[i, s.disabled]
|
|
5003
5029
|
);
|
|
5004
5030
|
return /* @__PURE__ */ Me(Xh, { background: n, children: [
|
|
5005
5031
|
/* @__PURE__ */ V(
|
|
5006
5032
|
"input",
|
|
5007
5033
|
{
|
|
5008
5034
|
type: "radio",
|
|
5009
|
-
"aria-describedby": r ? `${
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5035
|
+
"aria-describedby": r ? `${u}_description` : void 0,
|
|
5036
|
+
onChange: d,
|
|
5037
|
+
...s,
|
|
5038
|
+
id: u,
|
|
5039
|
+
onKeyDown: c,
|
|
5040
|
+
"data-testid": o
|
|
5013
5041
|
}
|
|
5014
5042
|
),
|
|
5015
5043
|
/* @__PURE__ */ V(
|
|
5016
5044
|
gn,
|
|
5017
5045
|
{
|
|
5018
|
-
onClick:
|
|
5019
|
-
onKeyDown:
|
|
5046
|
+
onClick: l,
|
|
5047
|
+
onKeyDown: c,
|
|
5020
5048
|
background: n
|
|
5021
5049
|
}
|
|
5022
5050
|
),
|
|
@@ -5026,16 +5054,16 @@ const r1 = ({
|
|
|
5026
5054
|
Zh,
|
|
5027
5055
|
{
|
|
5028
5056
|
bold: !0,
|
|
5029
|
-
htmlFor:
|
|
5030
|
-
"data-tip":
|
|
5031
|
-
"data-tip-disable":
|
|
5032
|
-
onClick:
|
|
5057
|
+
htmlFor: u,
|
|
5058
|
+
"data-tip": s["data-tip"],
|
|
5059
|
+
"data-tip-disable": s["data-tip-disable"],
|
|
5060
|
+
onClick: l,
|
|
5033
5061
|
children: e
|
|
5034
5062
|
}
|
|
5035
5063
|
),
|
|
5036
5064
|
t && /* @__PURE__ */ V(Lh, { children: t })
|
|
5037
5065
|
] }),
|
|
5038
|
-
r && /* @__PURE__ */ V(Hh, { id: `${
|
|
5066
|
+
r && /* @__PURE__ */ V(Hh, { id: `${u}_description`, children: r })
|
|
5039
5067
|
] })
|
|
5040
5068
|
] });
|
|
5041
5069
|
};
|
|
@@ -5095,9 +5123,11 @@ const gn = A.span`
|
|
|
5095
5123
|
user-select: none;
|
|
5096
5124
|
|
|
5097
5125
|
input {
|
|
5126
|
+
z-index: -1;
|
|
5098
5127
|
position: absolute;
|
|
5099
5128
|
opacity: 0;
|
|
5100
|
-
|
|
5129
|
+
width: 0;
|
|
5130
|
+
height: 0;
|
|
5101
5131
|
margin: 0;
|
|
5102
5132
|
}
|
|
5103
5133
|
|
|
@@ -5454,29 +5484,29 @@ var Bs = function(e) {
|
|
|
5454
5484
|
}, {
|
|
5455
5485
|
key: "render",
|
|
5456
5486
|
value: function() {
|
|
5457
|
-
var n = this.props, a = n.classNames, i = n.className, o = n.showPreviousButton, s = n.showNextButton, u = n.labels, l = n.dir, c = void 0, d = void 0,
|
|
5458
|
-
l === "rtl" ? (c = this.handleNextClick, d = this.handlePreviousClick,
|
|
5459
|
-
var g = f ? a.navButtonPrev : a.navButtonPrev + " " + a.navButtonInteractionDisabled, v = m ? a.navButtonNext : a.navButtonNext + " " + a.navButtonInteractionDisabled,
|
|
5487
|
+
var n = this.props, a = n.classNames, i = n.className, o = n.showPreviousButton, s = n.showNextButton, u = n.labels, l = n.dir, c = void 0, d = void 0, h = void 0, p = void 0, f = void 0, m = void 0;
|
|
5488
|
+
l === "rtl" ? (c = this.handleNextClick, d = this.handlePreviousClick, h = this.handleNextKeyDown, p = this.handlePreviousKeyDown, m = o, f = s) : (c = this.handlePreviousClick, d = this.handleNextClick, h = this.handlePreviousKeyDown, p = this.handleNextKeyDown, m = s, f = o);
|
|
5489
|
+
var g = f ? a.navButtonPrev : a.navButtonPrev + " " + a.navButtonInteractionDisabled, v = m ? a.navButtonNext : a.navButtonNext + " " + a.navButtonInteractionDisabled, I = Lr.default.createElement("span", {
|
|
5460
5490
|
tabIndex: "0",
|
|
5461
5491
|
role: "button",
|
|
5462
5492
|
"aria-label": u.previousMonth,
|
|
5463
5493
|
key: "previous",
|
|
5464
5494
|
className: g,
|
|
5465
|
-
onKeyDown: f ?
|
|
5495
|
+
onKeyDown: f ? h : void 0,
|
|
5466
5496
|
onClick: f ? c : void 0
|
|
5467
|
-
}),
|
|
5497
|
+
}), y = Lr.default.createElement("span", {
|
|
5468
5498
|
tabIndex: "0",
|
|
5469
5499
|
role: "button",
|
|
5470
5500
|
"aria-label": u.nextMonth,
|
|
5471
5501
|
key: "right",
|
|
5472
5502
|
className: v,
|
|
5473
|
-
onKeyDown: m ?
|
|
5503
|
+
onKeyDown: m ? p : void 0,
|
|
5474
5504
|
onClick: m ? d : void 0
|
|
5475
5505
|
});
|
|
5476
5506
|
return Lr.default.createElement(
|
|
5477
5507
|
"div",
|
|
5478
5508
|
{ className: i || a.navBar },
|
|
5479
|
-
l === "rtl" ? [
|
|
5509
|
+
l === "rtl" ? [y, I] : [I, y]
|
|
5480
5510
|
);
|
|
5481
5511
|
}
|
|
5482
5512
|
}]), t;
|
|
@@ -5537,9 +5567,9 @@ var bp = function(e) {
|
|
|
5537
5567
|
}, {
|
|
5538
5568
|
key: "render",
|
|
5539
5569
|
value: function() {
|
|
5540
|
-
for (var n = this.props, a = n.classNames, i = n.firstDayOfWeek, o = n.showWeekNumbers, s = n.weekdaysLong, u = n.weekdaysShort, l = n.locale, c = n.localeUtils, d = n.weekdayElement,
|
|
5541
|
-
var f = (
|
|
5542
|
-
key:
|
|
5570
|
+
for (var n = this.props, a = n.classNames, i = n.firstDayOfWeek, o = n.showWeekNumbers, s = n.weekdaysLong, u = n.weekdaysShort, l = n.locale, c = n.localeUtils, d = n.weekdayElement, h = [], p = 0; p < 7; p += 1) {
|
|
5571
|
+
var f = (p + i) % 7, m = {
|
|
5572
|
+
key: p,
|
|
5543
5573
|
className: a.weekday,
|
|
5544
5574
|
weekday: f,
|
|
5545
5575
|
weekdaysLong: s,
|
|
@@ -5547,7 +5577,7 @@ var bp = function(e) {
|
|
|
5547
5577
|
localeUtils: c,
|
|
5548
5578
|
locale: l
|
|
5549
5579
|
}, g = Ht.default.isValidElement(d) ? Ht.default.cloneElement(d, m) : Ht.default.createElement(d, m);
|
|
5550
|
-
|
|
5580
|
+
h.push(g);
|
|
5551
5581
|
}
|
|
5552
5582
|
return Ht.default.createElement(
|
|
5553
5583
|
"div",
|
|
@@ -5556,7 +5586,7 @@ var bp = function(e) {
|
|
|
5556
5586
|
"div",
|
|
5557
5587
|
{ className: a.weekdaysRow, role: "row" },
|
|
5558
5588
|
o && Ht.default.createElement("div", { className: a.weekday }),
|
|
5559
|
-
|
|
5589
|
+
h
|
|
5560
5590
|
)
|
|
5561
5591
|
);
|
|
5562
5592
|
}
|
|
@@ -5698,23 +5728,23 @@ function Ep(e, t) {
|
|
|
5698
5728
|
function Ap(e) {
|
|
5699
5729
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (0, Ip.getFirstDayOfWeek)(), r = arguments[2], n = Js(e), a = [], i = [], o = [], s = 1; s <= n; s += 1)
|
|
5700
5730
|
a.push(new Date(e.getFullYear(), e.getMonth(), s, 12));
|
|
5701
|
-
a.forEach(function(
|
|
5702
|
-
i.length > 0 &&
|
|
5731
|
+
a.forEach(function(x) {
|
|
5732
|
+
i.length > 0 && x.getDay() === t && (o.push(i), i = []), i.push(x), a.indexOf(x) === a.length - 1 && o.push(i);
|
|
5703
5733
|
});
|
|
5704
5734
|
for (var u = o[0], l = 7 - u.length; l > 0; l -= 1) {
|
|
5705
5735
|
var c = (0, qn.clone)(u[0]);
|
|
5706
5736
|
c.setDate(u[0].getDate() - 1), u.unshift(c);
|
|
5707
5737
|
}
|
|
5708
|
-
for (var d = o[o.length - 1],
|
|
5709
|
-
var
|
|
5710
|
-
|
|
5738
|
+
for (var d = o[o.length - 1], h = d.length; h < 7; h += 1) {
|
|
5739
|
+
var p = (0, qn.clone)(d[d.length - 1]);
|
|
5740
|
+
p.setDate(d[d.length - 1].getDate() + 1), d.push(p);
|
|
5711
5741
|
}
|
|
5712
5742
|
if (r && o.length < 6)
|
|
5713
5743
|
for (var f = void 0, m = o.length; m < 6; m += 1) {
|
|
5714
5744
|
f = o[o.length - 1];
|
|
5715
|
-
for (var g = f[f.length - 1], v = [],
|
|
5716
|
-
var
|
|
5717
|
-
|
|
5745
|
+
for (var g = f[f.length - 1], v = [], I = 0; I < 7; I += 1) {
|
|
5746
|
+
var y = (0, qn.clone)(g);
|
|
5747
|
+
y.setDate(g.getDate() + I + 1), v.push(y);
|
|
5718
5748
|
}
|
|
5719
5749
|
o.push(v);
|
|
5720
5750
|
}
|
|
@@ -5792,8 +5822,8 @@ var za = function(e) {
|
|
|
5792
5822
|
return i.length !== o.length ? !0 : i.some(function(s) {
|
|
5793
5823
|
if (s === "modifiers" || s === "modifiersStyles" || s === "classNames") {
|
|
5794
5824
|
var u = a.props[s], l = n[s], c = Object.keys(u), d = Object.keys(l);
|
|
5795
|
-
return c.length !== d.length ? !0 : c.some(function(
|
|
5796
|
-
return !(0, oo.hasOwnProp)(l,
|
|
5825
|
+
return c.length !== d.length ? !0 : c.some(function(h) {
|
|
5826
|
+
return !(0, oo.hasOwnProp)(l, h) || u[h] !== l[h];
|
|
5797
5827
|
});
|
|
5798
5828
|
}
|
|
5799
5829
|
return s === "day" ? !(0, Gp.isSameDay)(a.props[s], n[s]) : !(0, oo.hasOwnProp)(n, s) || a.props[s] !== n[s];
|
|
@@ -5802,36 +5832,36 @@ var za = function(e) {
|
|
|
5802
5832
|
}, {
|
|
5803
5833
|
key: "render",
|
|
5804
5834
|
value: function() {
|
|
5805
|
-
var n = this.props, a = n.classNames, i = n.modifiersStyles, o = n.day, s = n.tabIndex, u = n.empty, l = n.modifiers, c = n.onMouseEnter, d = n.onMouseLeave,
|
|
5806
|
-
a !== Wp.default ?
|
|
5807
|
-
return " " +
|
|
5835
|
+
var n = this.props, a = n.classNames, i = n.modifiersStyles, o = n.day, s = n.tabIndex, u = n.empty, l = n.modifiers, c = n.onMouseEnter, d = n.onMouseLeave, h = n.onMouseUp, p = n.onMouseDown, f = n.onClick, m = n.onKeyDown, g = n.onTouchStart, v = n.onTouchEnd, I = n.onFocus, y = n.ariaLabel, x = n.ariaDisabled, b = n.ariaSelected, M = n.children, D = a.day;
|
|
5836
|
+
a !== Wp.default ? D += " " + Object.keys(l).join(" ") : D += Object.keys(l).map(function(E) {
|
|
5837
|
+
return " " + D + "--" + E;
|
|
5808
5838
|
}).join("");
|
|
5809
5839
|
var T = void 0;
|
|
5810
5840
|
return i && Object.keys(l).filter(function(E) {
|
|
5811
5841
|
return !!i[E];
|
|
5812
5842
|
}).forEach(function(E) {
|
|
5813
5843
|
T = Tp({}, T, i[E]);
|
|
5814
|
-
}), u ? io.default.createElement("div", { "aria-disabled": !0, className:
|
|
5844
|
+
}), u ? io.default.createElement("div", { "aria-disabled": !0, className: D, style: T }) : io.default.createElement(
|
|
5815
5845
|
"div",
|
|
5816
5846
|
{
|
|
5817
|
-
className:
|
|
5847
|
+
className: D,
|
|
5818
5848
|
tabIndex: s,
|
|
5819
5849
|
style: T,
|
|
5820
5850
|
role: "gridcell",
|
|
5821
|
-
"aria-label":
|
|
5822
|
-
"aria-disabled":
|
|
5851
|
+
"aria-label": y,
|
|
5852
|
+
"aria-disabled": x,
|
|
5823
5853
|
"aria-selected": b,
|
|
5824
5854
|
onClick: ct(f, o, l),
|
|
5825
5855
|
onKeyDown: ct(m, o, l),
|
|
5826
5856
|
onMouseEnter: ct(c, o, l),
|
|
5827
5857
|
onMouseLeave: ct(d, o, l),
|
|
5828
|
-
onMouseUp: ct(
|
|
5829
|
-
onMouseDown: ct(
|
|
5858
|
+
onMouseUp: ct(h, o, l),
|
|
5859
|
+
onMouseDown: ct(p, o, l),
|
|
5830
5860
|
onTouchEnd: ct(v, o, l),
|
|
5831
5861
|
onTouchStart: ct(g, o, l),
|
|
5832
|
-
onFocus: ct(
|
|
5862
|
+
onFocus: ct(I, o, l)
|
|
5833
5863
|
},
|
|
5834
|
-
|
|
5864
|
+
M
|
|
5835
5865
|
);
|
|
5836
5866
|
}
|
|
5837
5867
|
}]), t;
|
|
@@ -5918,26 +5948,26 @@ var tm = function(e) {
|
|
|
5918
5948
|
for (var o = arguments.length, s = Array(o), u = 0; u < o; u++)
|
|
5919
5949
|
s[u] = arguments[u];
|
|
5920
5950
|
return i = (n = (a = lo(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(s))), a), a.renderDay = function(l) {
|
|
5921
|
-
var c = a.props.month.getMonth(), d = so.getModifiersFromProps(a.props),
|
|
5922
|
-
uo.isSameDay(l, /* @__PURE__ */ new Date()) && !Object.prototype.hasOwnProperty.call(d, a.props.classNames.today) &&
|
|
5923
|
-
var
|
|
5924
|
-
a.props.onDayClick && !
|
|
5951
|
+
var c = a.props.month.getMonth(), d = so.getModifiersFromProps(a.props), h = Jp.getModifiersForDay(l, d);
|
|
5952
|
+
uo.isSameDay(l, /* @__PURE__ */ new Date()) && !Object.prototype.hasOwnProperty.call(d, a.props.classNames.today) && h.push(a.props.classNames.today), l.getMonth() !== c && h.push(a.props.classNames.outside);
|
|
5953
|
+
var p = l.getMonth() !== c, f = -1;
|
|
5954
|
+
a.props.onDayClick && !p && l.getDate() === 1 && (f = a.props.tabIndex);
|
|
5925
5955
|
var m = "" + l.getFullYear() + l.getMonth() + l.getDate(), g = {};
|
|
5926
|
-
return
|
|
5956
|
+
return h.forEach(function(v) {
|
|
5927
5957
|
g[v] = !0;
|
|
5928
5958
|
}), dt.default.createElement(
|
|
5929
5959
|
zp.default,
|
|
5930
5960
|
{
|
|
5931
|
-
key: (
|
|
5961
|
+
key: (p ? "outside-" : "") + m,
|
|
5932
5962
|
classNames: a.props.classNames,
|
|
5933
5963
|
day: l,
|
|
5934
5964
|
modifiers: g,
|
|
5935
5965
|
modifiersStyles: a.props.modifiersStyles,
|
|
5936
|
-
empty:
|
|
5966
|
+
empty: p && !a.props.showOutsideDays && !a.props.fixedWeeks,
|
|
5937
5967
|
tabIndex: f,
|
|
5938
5968
|
ariaLabel: a.props.localeUtils.formatDay(l, a.props.locale),
|
|
5939
|
-
ariaDisabled:
|
|
5940
|
-
ariaSelected:
|
|
5969
|
+
ariaDisabled: p || h.indexOf(a.props.classNames.disabled) > -1,
|
|
5970
|
+
ariaSelected: h.indexOf(a.props.classNames.selected) > -1,
|
|
5941
5971
|
onClick: a.props.onDayClick,
|
|
5942
5972
|
onFocus: a.props.onDayFocus,
|
|
5943
5973
|
onKeyDown: a.props.onDayKeyDown,
|
|
@@ -5955,39 +5985,39 @@ var tm = function(e) {
|
|
|
5955
5985
|
return Hp(t, [{
|
|
5956
5986
|
key: "render",
|
|
5957
5987
|
value: function() {
|
|
5958
|
-
var n = this, a = this.props, i = a.classNames, o = a.month, s = a.months, u = a.fixedWeeks, l = a.captionElement, c = a.weekdayElement, d = a.locale,
|
|
5988
|
+
var n = this, a = this.props, i = a.classNames, o = a.month, s = a.months, u = a.fixedWeeks, l = a.captionElement, c = a.weekdayElement, d = a.locale, h = a.localeUtils, p = a.weekdaysLong, f = a.weekdaysShort, m = a.firstDayOfWeek, g = a.onCaptionClick, v = a.showWeekNumbers, I = a.showWeekDays, y = a.onWeekClick, x = {
|
|
5959
5989
|
date: o,
|
|
5960
5990
|
classNames: i,
|
|
5961
5991
|
months: s,
|
|
5962
|
-
localeUtils:
|
|
5992
|
+
localeUtils: h,
|
|
5963
5993
|
locale: d,
|
|
5964
|
-
onClick: g ? function(
|
|
5965
|
-
return g(o,
|
|
5994
|
+
onClick: g ? function(D) {
|
|
5995
|
+
return g(o, D);
|
|
5966
5996
|
} : void 0
|
|
5967
|
-
}, b = dt.default.isValidElement(l) ? dt.default.cloneElement(l,
|
|
5997
|
+
}, b = dt.default.isValidElement(l) ? dt.default.cloneElement(l, x) : dt.default.createElement(l, x), M = so.getWeekArray(o, m, u);
|
|
5968
5998
|
return dt.default.createElement(
|
|
5969
5999
|
"div",
|
|
5970
6000
|
{ className: i.month, role: "grid" },
|
|
5971
6001
|
b,
|
|
5972
|
-
|
|
6002
|
+
I && dt.default.createElement(Xp.default, {
|
|
5973
6003
|
classNames: i,
|
|
5974
6004
|
weekdaysShort: f,
|
|
5975
|
-
weekdaysLong:
|
|
6005
|
+
weekdaysLong: p,
|
|
5976
6006
|
firstDayOfWeek: m,
|
|
5977
6007
|
showWeekNumbers: v,
|
|
5978
6008
|
locale: d,
|
|
5979
|
-
localeUtils:
|
|
6009
|
+
localeUtils: h,
|
|
5980
6010
|
weekdayElement: c
|
|
5981
6011
|
}),
|
|
5982
6012
|
dt.default.createElement(
|
|
5983
6013
|
"div",
|
|
5984
6014
|
{ className: i.body, role: "rowgroup" },
|
|
5985
|
-
|
|
6015
|
+
M.map(function(D) {
|
|
5986
6016
|
var T = void 0;
|
|
5987
|
-
return v && (T = uo.getWeekNumber(
|
|
6017
|
+
return v && (T = uo.getWeekNumber(D[6])), dt.default.createElement(
|
|
5988
6018
|
"div",
|
|
5989
6019
|
{
|
|
5990
|
-
key:
|
|
6020
|
+
key: D[0].getTime(),
|
|
5991
6021
|
className: i.week,
|
|
5992
6022
|
role: "row"
|
|
5993
6023
|
},
|
|
@@ -5995,18 +6025,18 @@ var tm = function(e) {
|
|
|
5995
6025
|
"div",
|
|
5996
6026
|
{
|
|
5997
6027
|
className: i.weekNumber,
|
|
5998
|
-
tabIndex:
|
|
6028
|
+
tabIndex: y ? 0 : -1,
|
|
5999
6029
|
role: "gridcell",
|
|
6000
|
-
onClick:
|
|
6001
|
-
return
|
|
6030
|
+
onClick: y ? function(E) {
|
|
6031
|
+
return y(T, D, E);
|
|
6002
6032
|
} : void 0,
|
|
6003
|
-
onKeyUp:
|
|
6004
|
-
return E.keyCode === Up.ENTER &&
|
|
6033
|
+
onKeyUp: y ? function(E) {
|
|
6034
|
+
return E.keyCode === Up.ENTER && y(T, D, E);
|
|
6005
6035
|
} : void 0
|
|
6006
6036
|
},
|
|
6007
|
-
n.props.renderWeek(T,
|
|
6037
|
+
n.props.renderWeek(T, D, o)
|
|
6008
6038
|
),
|
|
6009
|
-
|
|
6039
|
+
D.map(n.renderDay)
|
|
6010
6040
|
);
|
|
6011
6041
|
})
|
|
6012
6042
|
)
|
|
@@ -6614,8 +6644,8 @@ var su = function(e) {
|
|
|
6614
6644
|
var c = vn({
|
|
6615
6645
|
disabled: u.disabledDays,
|
|
6616
6646
|
selected: u.selectedDays
|
|
6617
|
-
}, u.modifiers), d = (0, Nm.getModifiersForDay)(n, c).reduce(function(
|
|
6618
|
-
return vn({},
|
|
6647
|
+
}, u.modifiers), d = (0, Nm.getModifiersForDay)(n, c).reduce(function(h, p) {
|
|
6648
|
+
return vn({}, h, _m({}, p, !0));
|
|
6619
6649
|
}, {});
|
|
6620
6650
|
l(n, d, o);
|
|
6621
6651
|
}
|
|
@@ -6632,10 +6662,10 @@ var su = function(e) {
|
|
|
6632
6662
|
var n = this, a = this.props, i = a.parseDate, o = a.format, s = a.dayPickerProps, u = this.state, l = u.value, c = u.showOverlay;
|
|
6633
6663
|
if (!c) {
|
|
6634
6664
|
var d = l ? i(l, o, s.locale) : this.getInitialMonthFromProps(this.props);
|
|
6635
|
-
this.setState(function(
|
|
6665
|
+
this.setState(function(h) {
|
|
6636
6666
|
return {
|
|
6637
6667
|
showOverlay: !0,
|
|
6638
|
-
month: d ||
|
|
6668
|
+
month: d || h.month
|
|
6639
6669
|
};
|
|
6640
6670
|
}, function() {
|
|
6641
6671
|
n.props.onDayPickerShow && n.props.onDayPickerShow();
|
|
@@ -6741,20 +6771,20 @@ var su = function(e) {
|
|
|
6741
6771
|
}, {
|
|
6742
6772
|
key: "handleDayClick",
|
|
6743
6773
|
value: function(n, a, i) {
|
|
6744
|
-
var o = this, s = this.props, u = s.clickUnselectsDay, l = s.dayPickerProps, c = s.onDayChange, d = s.formatDate,
|
|
6774
|
+
var o = this, s = this.props, u = s.clickUnselectsDay, l = s.dayPickerProps, c = s.onDayChange, d = s.formatDate, h = s.format;
|
|
6745
6775
|
if (l.onDayClick && l.onDayClick(n, a, i), !(a.disabled || l && l.classNames && a[l.classNames.disabled])) {
|
|
6746
6776
|
if (a.selected && u) {
|
|
6747
|
-
var
|
|
6748
|
-
if (Array.isArray(
|
|
6749
|
-
|
|
6750
|
-
var f =
|
|
6751
|
-
|
|
6777
|
+
var p = this.state.selectedDays;
|
|
6778
|
+
if (Array.isArray(p)) {
|
|
6779
|
+
p = p.slice(0);
|
|
6780
|
+
var f = p.indexOf(n);
|
|
6781
|
+
p.splice(f, 1);
|
|
6752
6782
|
} else
|
|
6753
|
-
|
|
6754
|
-
this.setState({ value: "", typedValue: "", selectedDays:
|
|
6783
|
+
p && (p = null);
|
|
6784
|
+
this.setState({ value: "", typedValue: "", selectedDays: p }, this.hideAfterDayClick), c && c(void 0, a, this);
|
|
6755
6785
|
return;
|
|
6756
6786
|
}
|
|
6757
|
-
var m = d(n,
|
|
6787
|
+
var m = d(n, h, l.locale);
|
|
6758
6788
|
this.setState({ value: m, typedValue: "", month: n }, function() {
|
|
6759
6789
|
c && c(n, a, o), o.hideAfterDayClick();
|
|
6760
6790
|
});
|
|
@@ -6763,12 +6793,12 @@ var su = function(e) {
|
|
|
6763
6793
|
}, {
|
|
6764
6794
|
key: "renderOverlay",
|
|
6765
6795
|
value: function() {
|
|
6766
|
-
var n = this, a = this.props, i = a.classNames, o = a.dayPickerProps, s = a.parseDate, u = a.formatDate, l = a.format, c = this.state, d = c.selectedDays,
|
|
6767
|
-
if (!d &&
|
|
6768
|
-
var f = s(
|
|
6769
|
-
f && (
|
|
6796
|
+
var n = this, a = this.props, i = a.classNames, o = a.dayPickerProps, s = a.parseDate, u = a.formatDate, l = a.format, c = this.state, d = c.selectedDays, h = c.value, p = void 0;
|
|
6797
|
+
if (!d && h) {
|
|
6798
|
+
var f = s(h, l, o.locale);
|
|
6799
|
+
f && (p = f);
|
|
6770
6800
|
} else
|
|
6771
|
-
d && (
|
|
6801
|
+
d && (p = d);
|
|
6772
6802
|
var m = void 0;
|
|
6773
6803
|
o.todayButton && (m = function() {
|
|
6774
6804
|
return n.updateState(/* @__PURE__ */ new Date(), u(/* @__PURE__ */ new Date(), l, o.locale), n.hideAfterDayClick);
|
|
@@ -6779,20 +6809,20 @@ var su = function(e) {
|
|
|
6779
6809
|
{
|
|
6780
6810
|
classNames: i,
|
|
6781
6811
|
month: this.state.month,
|
|
6782
|
-
selectedDay:
|
|
6812
|
+
selectedDay: p,
|
|
6783
6813
|
input: this.input,
|
|
6784
6814
|
tabIndex: 0,
|
|
6785
6815
|
onFocus: this.handleOverlayFocus,
|
|
6786
6816
|
onBlur: this.handleOverlayBlur
|
|
6787
6817
|
},
|
|
6788
6818
|
_t.default.createElement(Am.default, vn({
|
|
6789
|
-
ref: function(
|
|
6790
|
-
return n.daypicker =
|
|
6819
|
+
ref: function(I) {
|
|
6820
|
+
return n.daypicker = I;
|
|
6791
6821
|
},
|
|
6792
6822
|
onTodayButtonClick: m
|
|
6793
6823
|
}, o, {
|
|
6794
6824
|
month: this.state.month,
|
|
6795
|
-
selectedDays:
|
|
6825
|
+
selectedDays: p,
|
|
6796
6826
|
onDayClick: this.handleDayClick,
|
|
6797
6827
|
onMonthChange: this.handleMonthChange
|
|
6798
6828
|
}))
|
|
@@ -6854,7 +6884,7 @@ const Wm = /* @__PURE__ */ Sa(Rm);
|
|
|
6854
6884
|
//! license : MIT
|
|
6855
6885
|
//! momentjs.com
|
|
6856
6886
|
var uu;
|
|
6857
|
-
function
|
|
6887
|
+
function w() {
|
|
6858
6888
|
return uu.apply(null, arguments);
|
|
6859
6889
|
}
|
|
6860
6890
|
function Bm(e) {
|
|
@@ -6948,7 +6978,7 @@ function xr(e) {
|
|
|
6948
6978
|
var t = ot(NaN);
|
|
6949
6979
|
return e != null ? xt(W(t), e) : W(t).userInvalidated = !0, t;
|
|
6950
6980
|
}
|
|
6951
|
-
var po =
|
|
6981
|
+
var po = w.momentProperties = [], Zr = !1;
|
|
6952
6982
|
function ni(e, t) {
|
|
6953
6983
|
var r, n, a, i = po.length;
|
|
6954
6984
|
if (De(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), De(t._i) || (e._i = t._i), De(t._f) || (e._f = t._f), De(t._l) || (e._l = t._l), De(t._strict) || (e._strict = t._strict), De(t._tzm) || (e._tzm = t._tzm), De(t._isUTC) || (e._isUTC = t._isUTC), De(t._offset) || (e._offset = t._offset), De(t._pf) || (e._pf = W(t)), De(t._locale) || (e._locale = t._locale), i > 0)
|
|
@@ -6957,18 +6987,18 @@ function ni(e, t) {
|
|
|
6957
6987
|
return e;
|
|
6958
6988
|
}
|
|
6959
6989
|
function Pn(e) {
|
|
6960
|
-
ni(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Zr === !1 && (Zr = !0,
|
|
6990
|
+
ni(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Zr === !1 && (Zr = !0, w.updateOffset(this), Zr = !1);
|
|
6961
6991
|
}
|
|
6962
6992
|
function Ue(e) {
|
|
6963
6993
|
return e instanceof Pn || e != null && e._isAMomentObject != null;
|
|
6964
6994
|
}
|
|
6965
6995
|
function cu(e) {
|
|
6966
|
-
|
|
6996
|
+
w.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
6967
6997
|
}
|
|
6968
6998
|
function Be(e, t) {
|
|
6969
6999
|
var r = !0;
|
|
6970
7000
|
return xt(function() {
|
|
6971
|
-
if (
|
|
7001
|
+
if (w.deprecationHandler != null && w.deprecationHandler(null, e), r) {
|
|
6972
7002
|
var n = [], a, i, o, s = arguments.length;
|
|
6973
7003
|
for (i = 0; i < s; i++) {
|
|
6974
7004
|
if (a = "", typeof arguments[i] == "object") {
|
|
@@ -6992,10 +7022,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
6992
7022
|
}
|
|
6993
7023
|
var mo = {};
|
|
6994
7024
|
function du(e, t) {
|
|
6995
|
-
|
|
7025
|
+
w.deprecationHandler != null && w.deprecationHandler(e, t), mo[e] || (cu(t), mo[e] = !0);
|
|
6996
7026
|
}
|
|
6997
|
-
|
|
6998
|
-
|
|
7027
|
+
w.suppressDeprecationWarnings = !1;
|
|
7028
|
+
w.deprecationHandler = null;
|
|
6999
7029
|
function st(e) {
|
|
7000
7030
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
7001
7031
|
}
|
|
@@ -7170,7 +7200,7 @@ function B(e) {
|
|
|
7170
7200
|
}
|
|
7171
7201
|
function ln(e, t) {
|
|
7172
7202
|
return function(r) {
|
|
7173
|
-
return r != null ? (pu(this, e, r),
|
|
7203
|
+
return r != null ? (pu(this, e, r), w.updateOffset(this, t), this) : cr(this, e);
|
|
7174
7204
|
};
|
|
7175
7205
|
}
|
|
7176
7206
|
function cr(e, t) {
|
|
@@ -7220,7 +7250,7 @@ function Ne(e) {
|
|
|
7220
7250
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
7221
7251
|
}
|
|
7222
7252
|
var fa = {};
|
|
7223
|
-
function
|
|
7253
|
+
function K(e, t) {
|
|
7224
7254
|
var r, n = t, a;
|
|
7225
7255
|
for (typeof e == "string" && (e = [e]), bt(t) && (n = function(i, o) {
|
|
7226
7256
|
o[t] = B(i);
|
|
@@ -7228,7 +7258,7 @@ function Q(e, t) {
|
|
|
7228
7258
|
fa[e[r]] = n;
|
|
7229
7259
|
}
|
|
7230
7260
|
function Fn(e, t) {
|
|
7231
|
-
|
|
7261
|
+
K(e, function(r, n, a, i) {
|
|
7232
7262
|
a._w = a._w || {}, t(r, a._w, a, i);
|
|
7233
7263
|
});
|
|
7234
7264
|
}
|
|
@@ -7272,10 +7302,10 @@ S("MMM", function(e, t) {
|
|
|
7272
7302
|
S("MMMM", function(e, t) {
|
|
7273
7303
|
return t.monthsRegex(e);
|
|
7274
7304
|
});
|
|
7275
|
-
|
|
7305
|
+
K(["M", "MM"], function(e, t) {
|
|
7276
7306
|
t[pt] = B(e) - 1;
|
|
7277
7307
|
});
|
|
7278
|
-
|
|
7308
|
+
K(["MMM", "MMMM"], function(e, t, r, n) {
|
|
7279
7309
|
var a = r._locale.monthsParse(e, n, r._strict);
|
|
7280
7310
|
a != null ? t[pt] = a : W(r).invalidMonth = e;
|
|
7281
7311
|
});
|
|
@@ -7330,7 +7360,7 @@ function Cu(e, t) {
|
|
|
7330
7360
|
return r = Math.min(e.date(), Ar(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, r), e;
|
|
7331
7361
|
}
|
|
7332
7362
|
function xu(e) {
|
|
7333
|
-
return e != null ? (Cu(this, e),
|
|
7363
|
+
return e != null ? (Cu(this, e), w.updateOffset(this, !0), this) : cr(this, "Month");
|
|
7334
7364
|
}
|
|
7335
7365
|
function Ig() {
|
|
7336
7366
|
return Ar(this.year(), this.month());
|
|
@@ -7377,20 +7407,20 @@ S("YY", te, Pe);
|
|
|
7377
7407
|
S("YYYY", si, oi);
|
|
7378
7408
|
S("YYYYY", kr, Dr);
|
|
7379
7409
|
S("YYYYYY", kr, Dr);
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
t[ye] = e.length === 2 ?
|
|
7410
|
+
K(["YYYYY", "YYYYYY"], ye);
|
|
7411
|
+
K("YYYY", function(e, t) {
|
|
7412
|
+
t[ye] = e.length === 2 ? w.parseTwoDigitYear(e) : B(e);
|
|
7383
7413
|
});
|
|
7384
|
-
|
|
7385
|
-
t[ye] =
|
|
7414
|
+
K("YY", function(e, t) {
|
|
7415
|
+
t[ye] = w.parseTwoDigitYear(e);
|
|
7386
7416
|
});
|
|
7387
|
-
|
|
7417
|
+
K("Y", function(e, t) {
|
|
7388
7418
|
t[ye] = parseInt(e, 10);
|
|
7389
7419
|
});
|
|
7390
7420
|
function In(e) {
|
|
7391
7421
|
return wr(e) ? 366 : 365;
|
|
7392
7422
|
}
|
|
7393
|
-
|
|
7423
|
+
w.parseTwoDigitYear = function(e) {
|
|
7394
7424
|
return B(e) + (B(e) > 68 ? 1900 : 2e3);
|
|
7395
7425
|
};
|
|
7396
7426
|
var Du = ln("FullYear", !0);
|
|
@@ -7657,30 +7687,30 @@ S("hmm", vu);
|
|
|
7657
7687
|
S("hmmss", bu);
|
|
7658
7688
|
S("Hmm", vu);
|
|
7659
7689
|
S("Hmmss", bu);
|
|
7660
|
-
|
|
7661
|
-
|
|
7690
|
+
K(["H", "HH"], fe);
|
|
7691
|
+
K(["k", "kk"], function(e, t, r) {
|
|
7662
7692
|
var n = B(e);
|
|
7663
7693
|
t[fe] = n === 24 ? 0 : n;
|
|
7664
7694
|
});
|
|
7665
|
-
|
|
7695
|
+
K(["a", "A"], function(e, t, r) {
|
|
7666
7696
|
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
7667
7697
|
});
|
|
7668
|
-
|
|
7698
|
+
K(["h", "hh"], function(e, t, r) {
|
|
7669
7699
|
t[fe] = B(e), W(r).bigHour = !0;
|
|
7670
7700
|
});
|
|
7671
|
-
|
|
7701
|
+
K("hmm", function(e, t, r) {
|
|
7672
7702
|
var n = e.length - 2;
|
|
7673
7703
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n)), W(r).bigHour = !0;
|
|
7674
7704
|
});
|
|
7675
|
-
|
|
7705
|
+
K("hmmss", function(e, t, r) {
|
|
7676
7706
|
var n = e.length - 4, a = e.length - 2;
|
|
7677
7707
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n, 2)), t[mt] = B(e.substr(a)), W(r).bigHour = !0;
|
|
7678
7708
|
});
|
|
7679
|
-
|
|
7709
|
+
K("Hmm", function(e, t, r) {
|
|
7680
7710
|
var n = e.length - 2;
|
|
7681
7711
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n));
|
|
7682
7712
|
});
|
|
7683
|
-
|
|
7713
|
+
K("Hmmss", function(e, t, r) {
|
|
7684
7714
|
var n = e.length - 4, a = e.length - 2;
|
|
7685
7715
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n, 2)), t[mt] = B(e.substr(a));
|
|
7686
7716
|
});
|
|
@@ -7939,9 +7969,9 @@ function gv(e) {
|
|
|
7939
7969
|
delete e._isValid;
|
|
7940
7970
|
else
|
|
7941
7971
|
return;
|
|
7942
|
-
e._strict ? e._isValid = !1 :
|
|
7972
|
+
e._strict ? e._isValid = !1 : w.createFromInputFallback(e);
|
|
7943
7973
|
}
|
|
7944
|
-
|
|
7974
|
+
w.createFromInputFallback = Be(
|
|
7945
7975
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
7946
7976
|
function(e) {
|
|
7947
7977
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -7951,7 +7981,7 @@ function Xt(e, t, r) {
|
|
|
7951
7981
|
return e ?? t ?? r;
|
|
7952
7982
|
}
|
|
7953
7983
|
function vv(e) {
|
|
7954
|
-
var t = new Date(
|
|
7984
|
+
var t = new Date(w.now());
|
|
7955
7985
|
return e._useUTC ? [
|
|
7956
7986
|
t.getUTCFullYear(),
|
|
7957
7987
|
t.getUTCMonth(),
|
|
@@ -7979,16 +8009,16 @@ function bv(e) {
|
|
|
7979
8009
|
An(ee(), 1, 4).year
|
|
7980
8010
|
), n = Xt(t.W, 1), a = Xt(t.E, 1), (a < 1 || a > 7) && (u = !0)) : (i = e._locale._week.dow, o = e._locale._week.doy, l = An(ee(), i, o), r = Xt(t.gg, e._a[ye], l.year), n = Xt(t.w, l.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (u = !0)) : t.e != null ? (a = t.e + i, (t.e < 0 || t.e > 6) && (u = !0)) : a = i), n < 1 || n > gt(r, i, o) ? W(e)._overflowWeeks = !0 : u != null ? W(e)._overflowWeekday = !0 : (s = Mu(r, n, a, i, o), e._a[ye] = s.year, e._dayOfYear = s.dayOfYear);
|
|
7981
8011
|
}
|
|
7982
|
-
|
|
8012
|
+
w.ISO_8601 = function() {
|
|
7983
8013
|
};
|
|
7984
|
-
|
|
8014
|
+
w.RFC_2822 = function() {
|
|
7985
8015
|
};
|
|
7986
8016
|
function pi(e) {
|
|
7987
|
-
if (e._f ===
|
|
8017
|
+
if (e._f === w.ISO_8601) {
|
|
7988
8018
|
Nu(e);
|
|
7989
8019
|
return;
|
|
7990
8020
|
}
|
|
7991
|
-
if (e._f ===
|
|
8021
|
+
if (e._f === w.RFC_2822) {
|
|
7992
8022
|
_u(e);
|
|
7993
8023
|
return;
|
|
7994
8024
|
}
|
|
@@ -8039,9 +8069,9 @@ function Ou(e) {
|
|
|
8039
8069
|
}
|
|
8040
8070
|
function wv(e) {
|
|
8041
8071
|
var t = e._i;
|
|
8042
|
-
De(t) ? e._d = new Date(
|
|
8072
|
+
De(t) ? e._d = new Date(w.now()) : On(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? gv(e) : ze(t) ? (e._a = lu(t.slice(0), function(r) {
|
|
8043
8073
|
return parseInt(r, 10);
|
|
8044
|
-
}), hi(e)) : Tt(t) ? Cv(e) : bt(t) ? e._d = new Date(t) :
|
|
8074
|
+
}), hi(e)) : Tt(t) ? Cv(e) : bt(t) ? e._d = new Date(t) : w.createFromInputFallback(e);
|
|
8045
8075
|
}
|
|
8046
8076
|
function Pu(e, t, r, n, a) {
|
|
8047
8077
|
var i = {};
|
|
@@ -8139,7 +8169,7 @@ Fu("Z", ":");
|
|
|
8139
8169
|
Fu("ZZ", "");
|
|
8140
8170
|
S("Z", Er);
|
|
8141
8171
|
S("ZZ", Er);
|
|
8142
|
-
|
|
8172
|
+
K(["Z", "ZZ"], function(e, t, r) {
|
|
8143
8173
|
r._useUTC = !0, r._tzm = mi(Er, e);
|
|
8144
8174
|
});
|
|
8145
8175
|
var Pv = /([\+\-]|\d\d)/gi;
|
|
@@ -8149,12 +8179,12 @@ function mi(e, t) {
|
|
|
8149
8179
|
}
|
|
8150
8180
|
function gi(e, t) {
|
|
8151
8181
|
var r, n;
|
|
8152
|
-
return t._isUTC ? (r = t.clone(), n = (Ue(e) || On(e) ? e.valueOf() : ee(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n),
|
|
8182
|
+
return t._isUTC ? (r = t.clone(), n = (Ue(e) || On(e) ? e.valueOf() : ee(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), w.updateOffset(r, !1), r) : ee(e).local();
|
|
8153
8183
|
}
|
|
8154
8184
|
function pa(e) {
|
|
8155
8185
|
return -Math.round(e._d.getTimezoneOffset());
|
|
8156
8186
|
}
|
|
8157
|
-
|
|
8187
|
+
w.updateOffset = function() {
|
|
8158
8188
|
};
|
|
8159
8189
|
function Tv(e, t, r) {
|
|
8160
8190
|
var n = this._offset || 0, a;
|
|
@@ -8171,7 +8201,7 @@ function Tv(e, t, r) {
|
|
|
8171
8201
|
Je(e - n, "m"),
|
|
8172
8202
|
1,
|
|
8173
8203
|
!1
|
|
8174
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
8204
|
+
) : this._changeInProgress || (this._changeInProgress = !0, w.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
8175
8205
|
} else
|
|
8176
8206
|
return this._isUTC ? n : pa(this);
|
|
8177
8207
|
}
|
|
@@ -8267,7 +8297,7 @@ function Ru(e, t) {
|
|
|
8267
8297
|
}
|
|
8268
8298
|
function Wu(e, t, r, n) {
|
|
8269
8299
|
var a = t._milliseconds, i = ha(t._days), o = ha(t._months);
|
|
8270
|
-
e.isValid() && (n = n ?? !0, o && Cu(e, cr(e, "Month") + o * r), i && pu(e, "Date", cr(e, "Date") + i * r), a && e._d.setTime(e._d.valueOf() + a * r), n &&
|
|
8300
|
+
e.isValid() && (n = n ?? !0, o && Cu(e, cr(e, "Month") + o * r), i && pu(e, "Date", cr(e, "Date") + i * r), a && e._d.setTime(e._d.valueOf() + a * r), n && w.updateOffset(e, i || o));
|
|
8271
8301
|
}
|
|
8272
8302
|
var zv = Ru(1, "add"), Uv = Ru(-1, "subtract");
|
|
8273
8303
|
function Bu(e) {
|
|
@@ -8332,7 +8362,7 @@ function qv(e, t) {
|
|
|
8332
8362
|
}
|
|
8333
8363
|
function eb(e, t) {
|
|
8334
8364
|
arguments.length === 1 && (arguments[0] ? $v(arguments[0]) ? (e = arguments[0], t = void 0) : Kv(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
8335
|
-
var r = e || ee(), n = gi(r, this).startOf("day"), a =
|
|
8365
|
+
var r = e || ee(), n = gi(r, this).startOf("day"), a = w.calendarFormat(this, n) || "sameElse", i = t && (st(t[a]) ? t[a].call(this, r) : t[a]);
|
|
8336
8366
|
return this.format(
|
|
8337
8367
|
i || this.localeData().calendar(a, this, ee(r))
|
|
8338
8368
|
);
|
|
@@ -8404,8 +8434,8 @@ function nr(e, t) {
|
|
|
8404
8434
|
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), n = e.clone().add(r, "months"), a, i;
|
|
8405
8435
|
return t - n < 0 ? (a = e.clone().add(r - 1, "months"), i = (t - n) / (n - a)) : (a = e.clone().add(r + 1, "months"), i = (t - n) / (a - n)), -(r + i) || 0;
|
|
8406
8436
|
}
|
|
8407
|
-
|
|
8408
|
-
|
|
8437
|
+
w.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
8438
|
+
w.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
8409
8439
|
function lb() {
|
|
8410
8440
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
8411
8441
|
}
|
|
@@ -8428,7 +8458,7 @@ function db() {
|
|
|
8428
8458
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', n = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS", i = t + '[")]', this.format(r + n + a + i);
|
|
8429
8459
|
}
|
|
8430
8460
|
function fb(e) {
|
|
8431
|
-
e || (e = this.isUtc() ?
|
|
8461
|
+
e || (e = this.isUtc() ? w.defaultFormatUtc : w.defaultFormat);
|
|
8432
8462
|
var t = er(this, e);
|
|
8433
8463
|
return this.localeData().postformat(t);
|
|
8434
8464
|
}
|
|
@@ -8516,7 +8546,7 @@ function vb(e) {
|
|
|
8516
8546
|
t = this._d.valueOf(), t -= Kt(t, hr);
|
|
8517
8547
|
break;
|
|
8518
8548
|
}
|
|
8519
|
-
return this._d.setTime(t),
|
|
8549
|
+
return this._d.setTime(t), w.updateOffset(this, !0), this;
|
|
8520
8550
|
}
|
|
8521
8551
|
function bb(e) {
|
|
8522
8552
|
var t, r;
|
|
@@ -8567,7 +8597,7 @@ function bb(e) {
|
|
|
8567
8597
|
t = this._d.valueOf(), t += hr - Kt(t, hr) - 1;
|
|
8568
8598
|
break;
|
|
8569
8599
|
}
|
|
8570
|
-
return this._d.setTime(t),
|
|
8600
|
+
return this._d.setTime(t), w.updateOffset(this, !0), this;
|
|
8571
8601
|
}
|
|
8572
8602
|
function yb() {
|
|
8573
8603
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
@@ -8637,7 +8667,7 @@ S("NN", bi);
|
|
|
8637
8667
|
S("NNN", bi);
|
|
8638
8668
|
S("NNNN", Bb);
|
|
8639
8669
|
S("NNNNN", Yb);
|
|
8640
|
-
|
|
8670
|
+
K(
|
|
8641
8671
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
8642
8672
|
function(e, t, r, n) {
|
|
8643
8673
|
var a = r._locale.erasParse(e, n, r._strict);
|
|
@@ -8649,8 +8679,8 @@ S("yy", cn);
|
|
|
8649
8679
|
S("yyy", cn);
|
|
8650
8680
|
S("yyyy", cn);
|
|
8651
8681
|
S("yo", Vb);
|
|
8652
|
-
|
|
8653
|
-
|
|
8682
|
+
K(["y", "yy", "yyy", "yyyy"], ye);
|
|
8683
|
+
K(["yo"], function(e, t, r, n) {
|
|
8654
8684
|
var a;
|
|
8655
8685
|
r._locale._eraYearOrdinalRegex && (a = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[ye] = r._locale.eraYearOrdinalParse(e, a) : t[ye] = parseInt(e, 10);
|
|
8656
8686
|
});
|
|
@@ -8659,7 +8689,7 @@ function Ab(e, t) {
|
|
|
8659
8689
|
for (r = 0, n = i.length; r < n; ++r) {
|
|
8660
8690
|
switch (typeof i[r].since) {
|
|
8661
8691
|
case "string":
|
|
8662
|
-
a =
|
|
8692
|
+
a = w(i[r].since).startOf("day"), i[r].since = a.valueOf();
|
|
8663
8693
|
break;
|
|
8664
8694
|
}
|
|
8665
8695
|
switch (typeof i[r].until) {
|
|
@@ -8667,7 +8697,7 @@ function Ab(e, t) {
|
|
|
8667
8697
|
i[r].until = 1 / 0;
|
|
8668
8698
|
break;
|
|
8669
8699
|
case "string":
|
|
8670
|
-
a =
|
|
8700
|
+
a = w(i[r].until).startOf("day").valueOf(), i[r].until = a.valueOf();
|
|
8671
8701
|
break;
|
|
8672
8702
|
}
|
|
8673
8703
|
}
|
|
@@ -8698,7 +8728,7 @@ function Nb(e, t, r) {
|
|
|
8698
8728
|
}
|
|
8699
8729
|
function _b(e, t) {
|
|
8700
8730
|
var r = e.since <= e.until ? 1 : -1;
|
|
8701
|
-
return t === void 0 ?
|
|
8731
|
+
return t === void 0 ? w(e.since).year() : w(e.since).year() + (t - e.offset) * r;
|
|
8702
8732
|
}
|
|
8703
8733
|
function Ob() {
|
|
8704
8734
|
var e, t, r, n = this.localeData().eras();
|
|
@@ -8725,7 +8755,7 @@ function Fb() {
|
|
|
8725
8755
|
var e, t, r, n, a = this.localeData().eras();
|
|
8726
8756
|
for (e = 0, t = a.length; e < t; ++e)
|
|
8727
8757
|
if (r = a[e].since <= a[e].until ? 1 : -1, n = this.clone().startOf("day").valueOf(), a[e].since <= n && n <= a[e].until || a[e].until <= n && n <= a[e].since)
|
|
8728
|
-
return (this.year() -
|
|
8758
|
+
return (this.year() - w(a[e].since).year()) * r + a[e].offset;
|
|
8729
8759
|
return this.year();
|
|
8730
8760
|
}
|
|
8731
8761
|
function Gb(e) {
|
|
@@ -8790,7 +8820,7 @@ Fn(
|
|
|
8790
8820
|
}
|
|
8791
8821
|
);
|
|
8792
8822
|
Fn(["gg", "GG"], function(e, t, r, n) {
|
|
8793
|
-
t[n] =
|
|
8823
|
+
t[n] = w.parseTwoDigitYear(e);
|
|
8794
8824
|
});
|
|
8795
8825
|
function Lb(e) {
|
|
8796
8826
|
return ju.call(
|
|
@@ -8838,7 +8868,7 @@ _("Q", 0, "Qo", "quarter");
|
|
|
8838
8868
|
Ie("quarter", "Q");
|
|
8839
8869
|
Ce("quarter", 7);
|
|
8840
8870
|
S("Q", mu);
|
|
8841
|
-
|
|
8871
|
+
K("Q", function(e, t) {
|
|
8842
8872
|
t[pt] = (B(e) - 1) * 3;
|
|
8843
8873
|
});
|
|
8844
8874
|
function $b(e) {
|
|
@@ -8852,8 +8882,8 @@ S("DD", te, Pe);
|
|
|
8852
8882
|
S("Do", function(e, t) {
|
|
8853
8883
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
8854
8884
|
});
|
|
8855
|
-
|
|
8856
|
-
|
|
8885
|
+
K(["D", "DD"], rt);
|
|
8886
|
+
K("Do", function(e, t) {
|
|
8857
8887
|
t[rt] = B(e.match(te)[0]);
|
|
8858
8888
|
});
|
|
8859
8889
|
var zu = ln("Date", !0);
|
|
@@ -8862,7 +8892,7 @@ Ie("dayOfYear", "DDD");
|
|
|
8862
8892
|
Ce("dayOfYear", 4);
|
|
8863
8893
|
S("DDD", Mr);
|
|
8864
8894
|
S("DDDD", gu);
|
|
8865
|
-
|
|
8895
|
+
K(["DDD", "DDDD"], function(e, t, r) {
|
|
8866
8896
|
r._dayOfYear = B(e);
|
|
8867
8897
|
});
|
|
8868
8898
|
function Jb(e) {
|
|
@@ -8876,14 +8906,14 @@ Ie("minute", "m");
|
|
|
8876
8906
|
Ce("minute", 14);
|
|
8877
8907
|
S("m", te);
|
|
8878
8908
|
S("mm", te, Pe);
|
|
8879
|
-
|
|
8909
|
+
K(["m", "mm"], je);
|
|
8880
8910
|
var Qb = ln("Minutes", !1);
|
|
8881
8911
|
_("s", ["ss", 2], 0, "second");
|
|
8882
8912
|
Ie("second", "s");
|
|
8883
8913
|
Ce("second", 15);
|
|
8884
8914
|
S("s", te);
|
|
8885
8915
|
S("ss", te, Pe);
|
|
8886
|
-
|
|
8916
|
+
K(["s", "ss"], mt);
|
|
8887
8917
|
var Kb = ln("Seconds", !1);
|
|
8888
8918
|
_("S", 0, 0, function() {
|
|
8889
8919
|
return ~~(this.millisecond() / 100);
|
|
@@ -8922,7 +8952,7 @@ function qb(e, t) {
|
|
|
8922
8952
|
t[Ot] = B(("0." + e) * 1e3);
|
|
8923
8953
|
}
|
|
8924
8954
|
for (wt = "S"; wt.length <= 9; wt += "S")
|
|
8925
|
-
|
|
8955
|
+
K(wt, qb);
|
|
8926
8956
|
Uu = ln("Milliseconds", !1);
|
|
8927
8957
|
_("z", 0, 0, "zoneAbbr");
|
|
8928
8958
|
_("zz", 0, 0, "zoneName");
|
|
@@ -9135,11 +9165,11 @@ Dt("en", {
|
|
|
9135
9165
|
return e + r;
|
|
9136
9166
|
}
|
|
9137
9167
|
});
|
|
9138
|
-
|
|
9168
|
+
w.lang = Be(
|
|
9139
9169
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
9140
9170
|
Dt
|
|
9141
9171
|
);
|
|
9142
|
-
|
|
9172
|
+
w.langData = Be(
|
|
9143
9173
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
9144
9174
|
yt
|
|
9145
9175
|
);
|
|
@@ -9246,8 +9276,8 @@ function Ty(e, t, r, n, a) {
|
|
|
9246
9276
|
return a.relativeTime(t || 1, !!r, e, n);
|
|
9247
9277
|
}
|
|
9248
9278
|
function Fy(e, t, r, n) {
|
|
9249
|
-
var a = Je(e).abs(), i = ht(a.as("s")), o = ht(a.as("m")), s = ht(a.as("h")), u = ht(a.as("d")), l = ht(a.as("M")), c = ht(a.as("w")), d = ht(a.as("y")),
|
|
9250
|
-
return r.w != null && (
|
|
9279
|
+
var a = Je(e).abs(), i = ht(a.as("s")), o = ht(a.as("m")), s = ht(a.as("h")), u = ht(a.as("d")), l = ht(a.as("M")), c = ht(a.as("w")), d = ht(a.as("y")), h = i <= r.ss && ["s", i] || i < r.s && ["ss", i] || o <= 1 && ["m"] || o < r.m && ["mm", o] || s <= 1 && ["h"] || s < r.h && ["hh", s] || u <= 1 && ["d"] || u < r.d && ["dd", u];
|
|
9280
|
+
return r.w != null && (h = h || c <= 1 && ["w"] || c < r.w && ["ww", c]), h = h || l <= 1 && ["M"] || l < r.M && ["MM", l] || d <= 1 && ["y"] || ["yy", d], h[2] = t, h[3] = +e > 0, h[4] = n, Ty.apply(null, h);
|
|
9251
9281
|
}
|
|
9252
9282
|
function Gy(e) {
|
|
9253
9283
|
return e === void 0 ? ht : typeof e == "function" ? (ht = e, !0) : !1;
|
|
@@ -9313,43 +9343,43 @@ _("X", 0, 0, "unix");
|
|
|
9313
9343
|
_("x", 0, 0, "valueOf");
|
|
9314
9344
|
S("x", Sr);
|
|
9315
9345
|
S("X", og);
|
|
9316
|
-
|
|
9346
|
+
K("X", function(e, t, r) {
|
|
9317
9347
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
9318
9348
|
});
|
|
9319
|
-
|
|
9349
|
+
K("x", function(e, t, r) {
|
|
9320
9350
|
r._d = new Date(B(e));
|
|
9321
9351
|
});
|
|
9322
9352
|
//! moment.js
|
|
9323
|
-
|
|
9353
|
+
w.version = "2.29.4";
|
|
9324
9354
|
Bm(ee);
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9355
|
+
w.fn = C;
|
|
9356
|
+
w.min = kv;
|
|
9357
|
+
w.max = Sv;
|
|
9358
|
+
w.now = Ev;
|
|
9359
|
+
w.utc = ot;
|
|
9360
|
+
w.unix = ny;
|
|
9361
|
+
w.months = ay;
|
|
9362
|
+
w.isDate = On;
|
|
9363
|
+
w.locale = Dt;
|
|
9364
|
+
w.invalid = xr;
|
|
9365
|
+
w.duration = Je;
|
|
9366
|
+
w.isMoment = Ue;
|
|
9367
|
+
w.weekdays = oy;
|
|
9368
|
+
w.parseZone = ry;
|
|
9369
|
+
w.localeData = yt;
|
|
9370
|
+
w.isDuration = tr;
|
|
9371
|
+
w.monthsShort = iy;
|
|
9372
|
+
w.weekdaysMin = uy;
|
|
9373
|
+
w.defineLocale = di;
|
|
9374
|
+
w.updateLocale = rv;
|
|
9375
|
+
w.locales = av;
|
|
9376
|
+
w.weekdaysShort = sy;
|
|
9377
|
+
w.normalizeUnits = Ye;
|
|
9378
|
+
w.relativeTimeRounding = Gy;
|
|
9379
|
+
w.relativeTimeThreshold = Ry;
|
|
9380
|
+
w.calendarFormat = qv;
|
|
9381
|
+
w.prototype = C;
|
|
9382
|
+
w.HTML5_FMT = {
|
|
9353
9383
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
9354
9384
|
// <input type="datetime-local" />
|
|
9355
9385
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -9371,7 +9401,7 @@ x.HTML5_FMT = {
|
|
|
9371
9401
|
};
|
|
9372
9402
|
const By = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9373
9403
|
__proto__: null,
|
|
9374
|
-
default:
|
|
9404
|
+
default: w
|
|
9375
9405
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9376
9406
|
var Qe = {};
|
|
9377
9407
|
const Yy = /* @__PURE__ */ Mc(By);
|
|
@@ -9438,7 +9468,7 @@ const Hy = /* @__PURE__ */ Sa(ga);
|
|
|
9438
9468
|
//! moment.js locale configuration
|
|
9439
9469
|
//! locale : English (United Kingdom) [en-gb]
|
|
9440
9470
|
//! author : Chris Gedrim : https://github.com/chrisgedrim
|
|
9441
|
-
|
|
9471
|
+
w.defineLocale("en-gb", {
|
|
9442
9472
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
9443
9473
|
"_"
|
|
9444
9474
|
),
|
|
@@ -9553,7 +9583,7 @@ const ce = Do({
|
|
|
9553
9583
|
id: "datePicker.button.closeYearMonthPicker",
|
|
9554
9584
|
defaultMessage: "Done"
|
|
9555
9585
|
}
|
|
9556
|
-
}), Zy = (e, t) => e ?
|
|
9586
|
+
}), Zy = (e, t) => e ? w(e).locale(t).format("L") : null, Xy = k.forwardRef((e, t) => /* @__PURE__ */ k.createElement("div", { style: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ k.createElement(
|
|
9557
9587
|
vl,
|
|
9558
9588
|
{
|
|
9559
9589
|
style: {
|
|
@@ -9579,24 +9609,24 @@ const ce = Do({
|
|
|
9579
9609
|
dayPickerProps: c = {},
|
|
9580
9610
|
...d
|
|
9581
9611
|
}) => {
|
|
9582
|
-
const { current:
|
|
9612
|
+
const { current: h } = _e(l.id || nn()), [p, f] = se(i), { from: m, to: g } = n, v = w.localeData(t).longDateFormat("L"), I = Zy(s || n[a], t), y = !!m && !!g, x = Wt();
|
|
9583
9613
|
So(
|
|
9584
9614
|
s && n[a],
|
|
9585
9615
|
"[DatePicker] Both the `value` and `date` props have been used.\n The `date` prop will be ignored. To get rid of this warning, remove one of these props."
|
|
9586
9616
|
);
|
|
9587
|
-
const b = ({ month:
|
|
9588
|
-
f(new Date(T,
|
|
9589
|
-
},
|
|
9617
|
+
const b = ({ month: D, year: T }) => {
|
|
9618
|
+
f(new Date(T, D));
|
|
9619
|
+
}, M = We(() => y ? a === "from" ? {
|
|
9590
9620
|
before: o.before,
|
|
9591
9621
|
after: g || o.after
|
|
9592
9622
|
} : {
|
|
9593
9623
|
before: m || o.before,
|
|
9594
9624
|
after: o.after
|
|
9595
|
-
} : o, [a,
|
|
9596
|
-
return /* @__PURE__ */ k.createElement(qy, { width: r, hasRange:
|
|
9625
|
+
} : o, [a, y, o, m, g]);
|
|
9626
|
+
return /* @__PURE__ */ k.createElement(qy, { width: r, hasRange: y }, e && /* @__PURE__ */ k.createElement(
|
|
9597
9627
|
"label",
|
|
9598
9628
|
{
|
|
9599
|
-
htmlFor:
|
|
9629
|
+
htmlFor: h,
|
|
9600
9630
|
"aria-label": e,
|
|
9601
9631
|
style: { margin: "4px 0" }
|
|
9602
9632
|
},
|
|
@@ -9605,7 +9635,7 @@ const ce = Do({
|
|
|
9605
9635
|
Wm,
|
|
9606
9636
|
{
|
|
9607
9637
|
component: Xy,
|
|
9608
|
-
value:
|
|
9638
|
+
value: I,
|
|
9609
9639
|
key: n[a],
|
|
9610
9640
|
formatDate: ga.formatDate,
|
|
9611
9641
|
parseDate: ga.parseDate,
|
|
@@ -9614,23 +9644,23 @@ const ce = Do({
|
|
|
9614
9644
|
locale: t,
|
|
9615
9645
|
localeUtils: Hy,
|
|
9616
9646
|
className: "Range",
|
|
9617
|
-
disabledDays:
|
|
9647
|
+
disabledDays: M,
|
|
9618
9648
|
modifiers: { before: m, after: g },
|
|
9619
|
-
selectedDays:
|
|
9649
|
+
selectedDays: y ? { from: m, to: g } : void 0,
|
|
9620
9650
|
navbarElement: /* @__PURE__ */ k.createElement(
|
|
9621
9651
|
jy,
|
|
9622
9652
|
{
|
|
9623
9653
|
onChangeMonthYear: b,
|
|
9624
|
-
disabledDays:
|
|
9654
|
+
disabledDays: M
|
|
9625
9655
|
}
|
|
9626
9656
|
),
|
|
9627
9657
|
showOutsideDays: !0,
|
|
9628
|
-
month:
|
|
9658
|
+
month: p,
|
|
9629
9659
|
...c
|
|
9630
9660
|
},
|
|
9631
9661
|
ref: u,
|
|
9632
9662
|
inputProps: {
|
|
9633
|
-
id:
|
|
9663
|
+
id: h,
|
|
9634
9664
|
"aria-label": e,
|
|
9635
9665
|
/**
|
|
9636
9666
|
* If your console gives you a log error like this:
|
|
@@ -9639,7 +9669,7 @@ const ce = Do({
|
|
|
9639
9669
|
* It will be fixed when we upgrade to React 18.
|
|
9640
9670
|
* See https://github.com/facebook/react/pull/22142
|
|
9641
9671
|
*/
|
|
9642
|
-
"aria-description":
|
|
9672
|
+
"aria-description": x.formatMessage(
|
|
9643
9673
|
ce.selectDateFormatDescription,
|
|
9644
9674
|
{
|
|
9645
9675
|
localeFormat: v
|
|
@@ -9703,12 +9733,12 @@ const jy = ({
|
|
|
9703
9733
|
disabledDays: o
|
|
9704
9734
|
}) => {
|
|
9705
9735
|
const s = Wt(), [u, l] = se(!1), c = We(
|
|
9706
|
-
() => !(o != null && o.before) || new Date(t.toDateString()) >=
|
|
9736
|
+
() => !(o != null && o.before) || new Date(t.toDateString()) >= w(o.before).startOf("month"),
|
|
9707
9737
|
[t, o]
|
|
9708
9738
|
), d = We(
|
|
9709
|
-
() => !(o != null && o.after) || new Date(r.toDateString()) <=
|
|
9739
|
+
() => !(o != null && o.after) || new Date(r.toDateString()) <= w(o.after).startOf("month"),
|
|
9710
9740
|
[r, o]
|
|
9711
|
-
),
|
|
9741
|
+
), h = { fill: qt, cursor: "default" };
|
|
9712
9742
|
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(e0, null, /* @__PURE__ */ k.createElement(
|
|
9713
9743
|
Qr,
|
|
9714
9744
|
{
|
|
@@ -9716,7 +9746,7 @@ const jy = ({
|
|
|
9716
9746
|
isActionIcon: !0,
|
|
9717
9747
|
onClick: () => c && n(),
|
|
9718
9748
|
"aria-label": s.formatMessage(ce.pickerPrevMonth),
|
|
9719
|
-
style: !c &&
|
|
9749
|
+
style: !c && h || {},
|
|
9720
9750
|
"data-tip": !0,
|
|
9721
9751
|
"data-for": "datepicker-prev-month",
|
|
9722
9752
|
"data-testid": "datepicker-select-prev-month"
|
|
@@ -9729,7 +9759,7 @@ const jy = ({
|
|
|
9729
9759
|
"data-tip": !0,
|
|
9730
9760
|
"data-for": "datepicker-select-year",
|
|
9731
9761
|
"data-testid": "datepicker-select-year",
|
|
9732
|
-
text:
|
|
9762
|
+
text: w(e).format("MMMM YYYY")
|
|
9733
9763
|
}
|
|
9734
9764
|
), /* @__PURE__ */ k.createElement(
|
|
9735
9765
|
Qr,
|
|
@@ -9738,7 +9768,7 @@ const jy = ({
|
|
|
9738
9768
|
isActionIcon: !0,
|
|
9739
9769
|
onClick: () => d && a(),
|
|
9740
9770
|
"aria-label": s.formatMessage(ce.pickerNextMonth),
|
|
9741
|
-
style: !d &&
|
|
9771
|
+
style: !d && h || {},
|
|
9742
9772
|
"data-tip": !0,
|
|
9743
9773
|
"data-for": "datepicker-next-month",
|
|
9744
9774
|
"data-testid": "datepicker-select-next-month"
|
|
@@ -9766,8 +9796,8 @@ const jy = ({
|
|
|
9766
9796
|
{
|
|
9767
9797
|
date: e,
|
|
9768
9798
|
disabledDays: o,
|
|
9769
|
-
onChange: (
|
|
9770
|
-
l(!1), i(
|
|
9799
|
+
onChange: (p) => {
|
|
9800
|
+
l(!1), i(p);
|
|
9771
9801
|
}
|
|
9772
9802
|
}
|
|
9773
9803
|
));
|
|
@@ -9775,14 +9805,14 @@ const jy = ({
|
|
|
9775
9805
|
const n = Wt(), [a, i] = se(new Date(e).getMonth()), [o, s] = se(
|
|
9776
9806
|
new Date(e).getFullYear()
|
|
9777
9807
|
), { after: u, before: l } = t || {}, c = () => {
|
|
9778
|
-
const f = (/* @__PURE__ */ new Date()).getFullYear(), { after: m, before: g } = t || {}, v = g ? new Date(g).getFullYear() : 1939,
|
|
9779
|
-
for (let
|
|
9780
|
-
|
|
9781
|
-
return
|
|
9808
|
+
const f = (/* @__PURE__ */ new Date()).getFullYear(), { after: m, before: g } = t || {}, v = g ? new Date(g).getFullYear() : 1939, I = m ? new Date(m).getFullYear() : new Date(f + 10, 11).getFullYear(), y = [];
|
|
9809
|
+
for (let x = I; x >= v; x--)
|
|
9810
|
+
y.push({ label: x, value: x });
|
|
9811
|
+
return y;
|
|
9782
9812
|
}, d = (f) => {
|
|
9783
|
-
const m =
|
|
9784
|
-
return l && m <
|
|
9785
|
-
},
|
|
9813
|
+
const m = w().set({ year: o, month: f }).startOf("month");
|
|
9814
|
+
return l && m < w(l).startOf("month") || u && m > w(u).startOf("month");
|
|
9815
|
+
}, h = w.monthsShort(), p = ({ children: f, ...m }) => Sn.Option && /* @__PURE__ */ k.createElement(
|
|
9786
9816
|
"div",
|
|
9787
9817
|
{
|
|
9788
9818
|
onMouseDown: (g) => g.stopPropagation(),
|
|
@@ -9797,7 +9827,7 @@ const jy = ({
|
|
|
9797
9827
|
{
|
|
9798
9828
|
"aria-label": n.formatMessage(ce.selectYearDropdown),
|
|
9799
9829
|
options: c(),
|
|
9800
|
-
components: { Option:
|
|
9830
|
+
components: { Option: p },
|
|
9801
9831
|
value: {
|
|
9802
9832
|
label: o,
|
|
9803
9833
|
value: o
|
|
@@ -9806,7 +9836,7 @@ const jy = ({
|
|
|
9806
9836
|
s(f.value);
|
|
9807
9837
|
}
|
|
9808
9838
|
}
|
|
9809
|
-
)), /* @__PURE__ */ k.createElement(Qy, null,
|
|
9839
|
+
)), /* @__PURE__ */ k.createElement(Qy, null, h.map((f, m) => /* @__PURE__ */ k.createElement("li", { key: f, value: m }, /* @__PURE__ */ k.createElement(
|
|
9810
9840
|
Ky,
|
|
9811
9841
|
{
|
|
9812
9842
|
"data-testid": `select-month-${f}`,
|
|
@@ -10043,51 +10073,51 @@ var t0 = "Expected a function", yo = NaN, n0 = "[object Symbol]", r0 = /^\s+|\s+
|
|
|
10043
10073
|
return c0.Date.now();
|
|
10044
10074
|
};
|
|
10045
10075
|
function m0(e, t, r) {
|
|
10046
|
-
var n, a, i, o, s, u, l = 0, c = !1, d = !1,
|
|
10076
|
+
var n, a, i, o, s, u, l = 0, c = !1, d = !1, h = !0;
|
|
10047
10077
|
if (typeof e != "function")
|
|
10048
10078
|
throw new TypeError(t0);
|
|
10049
|
-
t = Io(t) || 0, va(r) && (c = !!r.leading, d = "maxWait" in r, i = d ? h0(Io(r.maxWait) || 0, t) : i,
|
|
10050
|
-
function
|
|
10051
|
-
var
|
|
10052
|
-
return n = a = void 0, l =
|
|
10079
|
+
t = Io(t) || 0, va(r) && (c = !!r.leading, d = "maxWait" in r, i = d ? h0(Io(r.maxWait) || 0, t) : i, h = "trailing" in r ? !!r.trailing : h);
|
|
10080
|
+
function p(M) {
|
|
10081
|
+
var D = n, T = a;
|
|
10082
|
+
return n = a = void 0, l = M, o = e.apply(T, D), o;
|
|
10053
10083
|
}
|
|
10054
|
-
function f(
|
|
10055
|
-
return l =
|
|
10084
|
+
function f(M) {
|
|
10085
|
+
return l = M, s = setTimeout(v, t), c ? p(M) : o;
|
|
10056
10086
|
}
|
|
10057
|
-
function m(
|
|
10058
|
-
var
|
|
10087
|
+
function m(M) {
|
|
10088
|
+
var D = M - u, T = M - l, E = t - D;
|
|
10059
10089
|
return d ? p0(E, i - T) : E;
|
|
10060
10090
|
}
|
|
10061
|
-
function g(
|
|
10062
|
-
var
|
|
10063
|
-
return u === void 0 ||
|
|
10091
|
+
function g(M) {
|
|
10092
|
+
var D = M - u, T = M - l;
|
|
10093
|
+
return u === void 0 || D >= t || D < 0 || d && T >= i;
|
|
10064
10094
|
}
|
|
10065
10095
|
function v() {
|
|
10066
|
-
var
|
|
10067
|
-
if (g(
|
|
10068
|
-
return
|
|
10069
|
-
s = setTimeout(v, m(
|
|
10096
|
+
var M = Ur();
|
|
10097
|
+
if (g(M))
|
|
10098
|
+
return I(M);
|
|
10099
|
+
s = setTimeout(v, m(M));
|
|
10070
10100
|
}
|
|
10071
|
-
function
|
|
10072
|
-
return s = void 0,
|
|
10101
|
+
function I(M) {
|
|
10102
|
+
return s = void 0, h && n ? p(M) : (n = a = void 0, o);
|
|
10073
10103
|
}
|
|
10074
|
-
function
|
|
10104
|
+
function y() {
|
|
10075
10105
|
s !== void 0 && clearTimeout(s), l = 0, n = u = a = s = void 0;
|
|
10076
10106
|
}
|
|
10077
|
-
function
|
|
10078
|
-
return s === void 0 ? o :
|
|
10107
|
+
function x() {
|
|
10108
|
+
return s === void 0 ? o : I(Ur());
|
|
10079
10109
|
}
|
|
10080
10110
|
function b() {
|
|
10081
|
-
var
|
|
10082
|
-
if (n = arguments, a = this, u =
|
|
10111
|
+
var M = Ur(), D = g(M);
|
|
10112
|
+
if (n = arguments, a = this, u = M, D) {
|
|
10083
10113
|
if (s === void 0)
|
|
10084
10114
|
return f(u);
|
|
10085
10115
|
if (d)
|
|
10086
|
-
return s = setTimeout(v, t),
|
|
10116
|
+
return s = setTimeout(v, t), p(u);
|
|
10087
10117
|
}
|
|
10088
10118
|
return s === void 0 && (s = setTimeout(v, t)), o;
|
|
10089
10119
|
}
|
|
10090
|
-
return b.cancel =
|
|
10120
|
+
return b.cancel = y, b.flush = x, b;
|
|
10091
10121
|
}
|
|
10092
10122
|
function va(e) {
|
|
10093
10123
|
var t = typeof e;
|
|
@@ -10116,53 +10146,53 @@ function Io(e) {
|
|
|
10116
10146
|
}
|
|
10117
10147
|
var b0 = m0;
|
|
10118
10148
|
const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ label: e, value: t, onChange: r, inputMode: n }) => {
|
|
10119
|
-
const a = Wt(), [i, o] = se(t), [s, u] = se(t), [l, c] = se(n), [d,
|
|
10149
|
+
const a = Wt(), [i, o] = se(t), [s, u] = se(t), [l, c] = se(n), [d, h] = se($r), [p, f] = se(), [m, g] = se(""), v = Q(
|
|
10120
10150
|
({ time: E, mode: J }) => {
|
|
10121
10151
|
const z = parseInt(E[0]), ie = parseInt(E[1]);
|
|
10122
10152
|
if (isNaN(z) || isNaN(ie))
|
|
10123
|
-
return
|
|
10153
|
+
return h("error"), f(a.formatMessage(ce.notNumber)), !1;
|
|
10124
10154
|
const oe = new RegExp(
|
|
10125
10155
|
J === "24h" ? "([0-1][0-9]{1}|[2][0-3]{1}):([0-5]{1}[0-9]{1})" : "([0][1-9]|[1][0-2]{1}):([0-5]{1}[0-9]{1})"
|
|
10126
10156
|
), F = z < 10 ? `0${z}:${E[1]}` : `${z}:${E[1]}`;
|
|
10127
|
-
return oe.test(F) ? (
|
|
10157
|
+
return oe.test(F) ? (h($r), !0) : (h("error"), f(a.formatMessage(ce.invalidTime)), !1);
|
|
10128
10158
|
},
|
|
10129
10159
|
[a]
|
|
10130
|
-
),
|
|
10160
|
+
), I = Q(
|
|
10131
10161
|
({ date: E, time: J, mode: z }) => {
|
|
10132
10162
|
if (!J || !z || !v({ time: J, mode: z }) || !E)
|
|
10133
10163
|
return;
|
|
10134
|
-
const ie = parseInt(J[0]), oe = parseInt(J[1]), F =
|
|
10164
|
+
const ie = parseInt(J[0]), oe = parseInt(J[1]), F = w(E);
|
|
10135
10165
|
z === "am" && ie === 12 ? F.hour(0) : z === "pm" && ie === 12 ? F.hour(12) : z === "pm" ? F.hour(ie + 12) : F.hour(ie), F.minute(oe), r && r(F.toDate());
|
|
10136
10166
|
},
|
|
10137
10167
|
[r, v]
|
|
10138
|
-
),
|
|
10168
|
+
), y = Q(
|
|
10139
10169
|
(E) => {
|
|
10140
|
-
o(E),
|
|
10170
|
+
o(E), I({ date: E, time: s, mode: l });
|
|
10141
10171
|
},
|
|
10142
|
-
[l, s,
|
|
10143
|
-
),
|
|
10172
|
+
[l, s, I]
|
|
10173
|
+
), x = Q((E) => {
|
|
10144
10174
|
(E.charCode < 48 || E.charCode > 58) && E.preventDefault();
|
|
10145
|
-
}, []), b =
|
|
10175
|
+
}, []), b = Q(
|
|
10146
10176
|
(E) => {
|
|
10147
10177
|
if (E.length !== 2) {
|
|
10148
|
-
|
|
10178
|
+
h("error"), f(a.formatMessage(ce.wrongFormat));
|
|
10149
10179
|
return;
|
|
10150
10180
|
}
|
|
10151
|
-
u(E),
|
|
10181
|
+
u(E), I({ date: i, time: E, mode: l });
|
|
10152
10182
|
},
|
|
10153
|
-
[a, i, l,
|
|
10154
|
-
),
|
|
10183
|
+
[a, i, l, I]
|
|
10184
|
+
), M = Q(
|
|
10155
10185
|
({ value: E }) => {
|
|
10156
|
-
c(E),
|
|
10186
|
+
c(E), I({ date: i, time: s, mode: E });
|
|
10157
10187
|
},
|
|
10158
|
-
[i, s,
|
|
10159
|
-
),
|
|
10188
|
+
[i, s, I]
|
|
10189
|
+
), D = y0(b, 500), T = Q(
|
|
10160
10190
|
(E) => {
|
|
10161
10191
|
const J = E.target.value;
|
|
10162
10192
|
let z = J;
|
|
10163
|
-
|
|
10193
|
+
h($r), J.match(I0) && (z = `${J.slice(0, 2)}:${J.slice(2)}`), g(z), D(z.split(":"));
|
|
10164
10194
|
},
|
|
10165
|
-
[
|
|
10195
|
+
[D]
|
|
10166
10196
|
);
|
|
10167
10197
|
return /* @__PURE__ */ k.createElement(C0, null, /* @__PURE__ */ k.createElement(
|
|
10168
10198
|
Ci,
|
|
@@ -10170,7 +10200,7 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10170
10200
|
width: "100%",
|
|
10171
10201
|
label: e || a.formatMessage(ce.dateTimePickerLabel),
|
|
10172
10202
|
value: i,
|
|
10173
|
-
onDayChange:
|
|
10203
|
+
onDayChange: y
|
|
10174
10204
|
}
|
|
10175
10205
|
), /* @__PURE__ */ k.createElement(
|
|
10176
10206
|
xa,
|
|
@@ -10179,9 +10209,9 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10179
10209
|
label: a.formatMessage(ce.timeInputLabel),
|
|
10180
10210
|
onChange: T,
|
|
10181
10211
|
state: d,
|
|
10182
|
-
errorMessage:
|
|
10212
|
+
errorMessage: p,
|
|
10183
10213
|
value: m,
|
|
10184
|
-
onKeyPress:
|
|
10214
|
+
onKeyPress: x
|
|
10185
10215
|
}
|
|
10186
10216
|
), /* @__PURE__ */ k.createElement("div", { style: { paddingTop: "28px" } }, /* @__PURE__ */ k.createElement(
|
|
10187
10217
|
Cs,
|
|
@@ -10195,7 +10225,7 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10195
10225
|
}
|
|
10196
10226
|
],
|
|
10197
10227
|
defaultValue: { value: "am", label: a.formatMessage(ce.am) },
|
|
10198
|
-
onChange:
|
|
10228
|
+
onChange: M
|
|
10199
10229
|
}
|
|
10200
10230
|
)));
|
|
10201
10231
|
}, C0 = A.div`
|
|
@@ -10344,49 +10374,49 @@ const x0 = {
|
|
|
10344
10374
|
queryError: u,
|
|
10345
10375
|
dropdownMaxHeight: l
|
|
10346
10376
|
}) => {
|
|
10347
|
-
const [c, d] = se({ q: "" }),
|
|
10377
|
+
const [c, d] = se({ q: "" }), h = Pl.useDebounce(c, 300), [p, f] = se(null), [m, g] = se(!0), [v, I] = se(null), y = _e(null), x = _e(null), b = c !== h, M = c.q.length > 1 && !v && m;
|
|
10348
10378
|
Ze(() => {
|
|
10349
10379
|
i || d({ q: "" });
|
|
10350
10380
|
}, [i]), Ze(() => {
|
|
10351
10381
|
if (v)
|
|
10352
10382
|
return;
|
|
10353
|
-
const { q: F } =
|
|
10383
|
+
const { q: F } = h;
|
|
10354
10384
|
F.length < 2 || e(F);
|
|
10355
|
-
}, [e,
|
|
10385
|
+
}, [e, h, v]), Ze(() => {
|
|
10356
10386
|
r.length === 0 && f(null), r.length > 0 && f(0);
|
|
10357
10387
|
}, [r]);
|
|
10358
|
-
const
|
|
10359
|
-
i && F.text ? d({ q: F.text }) : d({ q: "" }),
|
|
10388
|
+
const D = () => p < r.length - 1 ? p + 1 : p, T = () => p > 0 ? p - 1 : p, E = (F) => {
|
|
10389
|
+
i && F.text ? d({ q: F.text }) : d({ q: "" }), I(F), n(F.data), f(null);
|
|
10360
10390
|
}, J = (F) => {
|
|
10361
|
-
const { value:
|
|
10362
|
-
d({ q
|
|
10391
|
+
const { value: q } = F.target;
|
|
10392
|
+
d({ q }), g(!0), I(null), f(null), i && v && a();
|
|
10363
10393
|
};
|
|
10364
10394
|
Ze(() => {
|
|
10365
|
-
|
|
10366
|
-
}, [
|
|
10395
|
+
x.current && x.current.scrollIntoView({ block: "nearest" });
|
|
10396
|
+
}, [p]);
|
|
10367
10397
|
const z = (F) => {
|
|
10368
|
-
|
|
10398
|
+
M && (u || b || t || (F.key === "ArrowUp" ? (f(T()), F.preventDefault()) : F.key === "ArrowDown" ? (f(D()), F.preventDefault()) : F.key === "Enter" && p != null && (E(r[p]), F.preventDefault())));
|
|
10369
10399
|
}, ie = (F) => {
|
|
10370
10400
|
E(F);
|
|
10371
10401
|
};
|
|
10372
10402
|
Ze(() => {
|
|
10373
|
-
const F = (
|
|
10374
|
-
|
|
10403
|
+
const F = (q) => {
|
|
10404
|
+
y.current && !y.current.contains(q.target) ? g(!1) : g(!0);
|
|
10375
10405
|
};
|
|
10376
10406
|
return document.addEventListener("pointerdown", F), function() {
|
|
10377
10407
|
document.removeEventListener("pointerdown", F);
|
|
10378
10408
|
};
|
|
10379
|
-
}, [
|
|
10409
|
+
}, [y]);
|
|
10380
10410
|
const oe = () => u ? /* @__PURE__ */ React.createElement(P0, null) : b || t ? /* @__PURE__ */ React.createElement(G0, { query: c.q }) : r.length > 0 ? /* @__PURE__ */ React.createElement(
|
|
10381
10411
|
w0,
|
|
10382
10412
|
{
|
|
10383
10413
|
results: r,
|
|
10384
|
-
focusedResultIndex:
|
|
10414
|
+
focusedResultIndex: p,
|
|
10385
10415
|
onResultClick: ie,
|
|
10386
|
-
ref:
|
|
10416
|
+
ref: x
|
|
10387
10417
|
}
|
|
10388
10418
|
) : /* @__PURE__ */ React.createElement(T0, { query: c.q });
|
|
10389
|
-
return /* @__PURE__ */ React.createElement(R0, { ref:
|
|
10419
|
+
return /* @__PURE__ */ React.createElement(R0, { ref: y }, /* @__PURE__ */ React.createElement(
|
|
10390
10420
|
xa,
|
|
10391
10421
|
{
|
|
10392
10422
|
placeholder: o,
|
|
@@ -10399,7 +10429,7 @@ const x0 = {
|
|
|
10399
10429
|
errorMessage: s,
|
|
10400
10430
|
autoComplete: "off"
|
|
10401
10431
|
}
|
|
10402
|
-
),
|
|
10432
|
+
), M && /* @__PURE__ */ React.createElement(k0, { maxHeight: l }, oe()));
|
|
10403
10433
|
}, R0 = A.div`
|
|
10404
10434
|
width: 100%;
|
|
10405
10435
|
`;
|