@happeouikit/form-elements 2.3.38 → 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 +32 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +635 -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
|
}
|
|
@@ -4616,6 +4624,7 @@ const r1 = ({
|
|
|
4616
4624
|
background-color: ${({ background: e }) => e || "var(--color-stroke)"};
|
|
4617
4625
|
border: 2px solid ${({ background: e }) => e || "var(--color-stroke)"};
|
|
4618
4626
|
border-radius: var(--radius-pill);
|
|
4627
|
+
flex-shrink: 0;
|
|
4619
4628
|
|
|
4620
4629
|
:active {
|
|
4621
4630
|
transform: none;
|
|
@@ -4676,9 +4685,12 @@ const r1 = ({
|
|
|
4676
4685
|
position: relative;
|
|
4677
4686
|
|
|
4678
4687
|
input {
|
|
4688
|
+
z-index: -1;
|
|
4689
|
+
position: absolute;
|
|
4679
4690
|
opacity: 0;
|
|
4680
4691
|
width: 0;
|
|
4681
4692
|
height: 0;
|
|
4693
|
+
margin: 0;
|
|
4682
4694
|
}
|
|
4683
4695
|
|
|
4684
4696
|
input:checked + ${Kn} {
|
|
@@ -4716,60 +4728,68 @@ const r1 = ({
|
|
|
4716
4728
|
background: l,
|
|
4717
4729
|
"data-tip": c,
|
|
4718
4730
|
"data-tip-disable": d,
|
|
4731
|
+
"data-testid": h,
|
|
4719
4732
|
...p
|
|
4720
4733
|
}) => {
|
|
4721
|
-
const
|
|
4734
|
+
const f = _e(null), m = We(() => u || nn(), [u]);
|
|
4722
4735
|
Ze(() => {
|
|
4723
|
-
|
|
4736
|
+
f.current && (f.current.indeterminate = n || !1);
|
|
4724
4737
|
}, [n]);
|
|
4725
|
-
const
|
|
4726
|
-
(
|
|
4727
|
-
if (!
|
|
4738
|
+
const g = Q(
|
|
4739
|
+
(y) => {
|
|
4740
|
+
if (!f.current || o)
|
|
4728
4741
|
return;
|
|
4729
|
-
|
|
4730
|
-
const
|
|
4731
|
-
if (
|
|
4732
|
-
const
|
|
4733
|
-
...
|
|
4742
|
+
y.preventDefault();
|
|
4743
|
+
const x = !f.current.checked;
|
|
4744
|
+
if (f.current.checked = x, typeof a == "function") {
|
|
4745
|
+
const b = {
|
|
4746
|
+
...y,
|
|
4734
4747
|
target: {
|
|
4735
|
-
...
|
|
4736
|
-
checked:
|
|
4737
|
-
id:
|
|
4748
|
+
...f.current,
|
|
4749
|
+
checked: x,
|
|
4750
|
+
id: m
|
|
4738
4751
|
}
|
|
4739
4752
|
};
|
|
4740
|
-
a(
|
|
4753
|
+
a(b, x);
|
|
4741
4754
|
}
|
|
4742
4755
|
},
|
|
4743
|
-
[o,
|
|
4744
|
-
),
|
|
4745
|
-
(
|
|
4746
|
-
!
|
|
4756
|
+
[o, m, a]
|
|
4757
|
+
), v = Q(
|
|
4758
|
+
(y) => {
|
|
4759
|
+
!y.key.match(/enter|spacebar|\W{1}/i) || !f.current || (y.preventDefault(), g(y));
|
|
4747
4760
|
},
|
|
4748
4761
|
[a]
|
|
4762
|
+
), I = Q(
|
|
4763
|
+
(y) => {
|
|
4764
|
+
typeof a == "function" && !o && a(y, y.target.checked);
|
|
4765
|
+
},
|
|
4766
|
+
[o, a]
|
|
4749
4767
|
);
|
|
4750
4768
|
return /* @__PURE__ */ Me(Oh, { style: i, background: l, children: [
|
|
4751
4769
|
/* @__PURE__ */ V(
|
|
4752
4770
|
"input",
|
|
4753
4771
|
{
|
|
4754
|
-
ref:
|
|
4772
|
+
ref: f,
|
|
4773
|
+
onChange: I,
|
|
4774
|
+
onKeyDown: v,
|
|
4755
4775
|
type: "checkbox",
|
|
4756
4776
|
tabIndex: -1,
|
|
4757
4777
|
disabled: o,
|
|
4758
4778
|
checked: s,
|
|
4759
4779
|
"aria-checked": n ? "mixed" : s,
|
|
4760
4780
|
"aria-disabled": o,
|
|
4761
|
-
"aria-describedby": r ? `${
|
|
4762
|
-
|
|
4781
|
+
"aria-describedby": r ? `${m}_description` : void 0,
|
|
4782
|
+
"data-testid": h,
|
|
4783
|
+
id: m,
|
|
4763
4784
|
...p
|
|
4764
4785
|
}
|
|
4765
4786
|
),
|
|
4766
4787
|
n ? /* @__PURE__ */ V(
|
|
4767
4788
|
Nt,
|
|
4768
4789
|
{
|
|
4769
|
-
onClick:
|
|
4770
|
-
onKeyDown:
|
|
4790
|
+
onClick: g,
|
|
4791
|
+
onKeyDown: v,
|
|
4771
4792
|
tabIndex: 0,
|
|
4772
|
-
"aria-checked": "mixed",
|
|
4773
4793
|
"aria-disabled": o,
|
|
4774
4794
|
background: l,
|
|
4775
4795
|
...p,
|
|
@@ -4778,10 +4798,9 @@ const r1 = ({
|
|
|
4778
4798
|
) : /* @__PURE__ */ V(
|
|
4779
4799
|
Ct,
|
|
4780
4800
|
{
|
|
4781
|
-
onClick:
|
|
4782
|
-
onKeyDown:
|
|
4801
|
+
onClick: g,
|
|
4802
|
+
onKeyDown: v,
|
|
4783
4803
|
tabIndex: 0,
|
|
4784
|
-
"aria-checked": s,
|
|
4785
4804
|
"aria-disabled": o,
|
|
4786
4805
|
background: l,
|
|
4787
4806
|
...p,
|
|
@@ -4793,9 +4812,9 @@ const r1 = ({
|
|
|
4793
4812
|
e && /* @__PURE__ */ V(
|
|
4794
4813
|
_h,
|
|
4795
4814
|
{
|
|
4796
|
-
onClick:
|
|
4815
|
+
onClick: g,
|
|
4797
4816
|
bold: !0,
|
|
4798
|
-
htmlFor:
|
|
4817
|
+
htmlFor: m,
|
|
4799
4818
|
"data-tip": c,
|
|
4800
4819
|
"data-tip-disable": d,
|
|
4801
4820
|
children: e
|
|
@@ -4803,7 +4822,7 @@ const r1 = ({
|
|
|
4803
4822
|
),
|
|
4804
4823
|
t && /* @__PURE__ */ V(Ah, { children: t })
|
|
4805
4824
|
] }),
|
|
4806
|
-
r && /* @__PURE__ */ V(Nh, { id: `${
|
|
4825
|
+
r && /* @__PURE__ */ V(Nh, { id: `${m}_description`, children: r })
|
|
4807
4826
|
] })
|
|
4808
4827
|
] });
|
|
4809
4828
|
}, Ct = A.span`
|
|
@@ -4865,6 +4884,8 @@ const r1 = ({
|
|
|
4865
4884
|
user-select: none;
|
|
4866
4885
|
|
|
4867
4886
|
input {
|
|
4887
|
+
z-index: -1;
|
|
4888
|
+
position: absolute;
|
|
4868
4889
|
opacity: 0;
|
|
4869
4890
|
width: 0;
|
|
4870
4891
|
height: 0;
|
|
@@ -4941,10 +4962,10 @@ const r1 = ({
|
|
|
4941
4962
|
Ze(() => {
|
|
4942
4963
|
e && d(e);
|
|
4943
4964
|
}, [e]);
|
|
4944
|
-
const
|
|
4965
|
+
const h = (f) => c.includes(f), p = (f, m, g) => {
|
|
4945
4966
|
f.onChange && f.onChange(m, g);
|
|
4946
|
-
const
|
|
4947
|
-
d(
|
|
4967
|
+
const I = (g ? [...c, f.value] : c.filter((y) => y !== f.value)).sort(Th(u));
|
|
4968
|
+
d(I), o && o(I);
|
|
4948
4969
|
};
|
|
4949
4970
|
return /* @__PURE__ */ V(Bh, { className: a, children: u.map((f) => /* @__PURE__ */ V("li", { children: /* @__PURE__ */ V(
|
|
4950
4971
|
Dh,
|
|
@@ -4953,8 +4974,8 @@ const r1 = ({
|
|
|
4953
4974
|
background: f.background,
|
|
4954
4975
|
name: r,
|
|
4955
4976
|
disabled: f.disabled || t || !1,
|
|
4956
|
-
checked:
|
|
4957
|
-
onChange: (m, g) =>
|
|
4977
|
+
checked: h(f.value),
|
|
4978
|
+
onChange: (m, g) => p(f, m, g)
|
|
4958
4979
|
}
|
|
4959
4980
|
) }, f.value)) });
|
|
4960
4981
|
}, Bh = A.ul`
|
|
@@ -4973,49 +4994,57 @@ const r1 = ({
|
|
|
4973
4994
|
background: n,
|
|
4974
4995
|
id: a,
|
|
4975
4996
|
onChange: i,
|
|
4976
|
-
|
|
4997
|
+
"data-testid": o,
|
|
4998
|
+
...s
|
|
4977
4999
|
}) => {
|
|
4978
|
-
const [
|
|
4979
|
-
(
|
|
4980
|
-
if (
|
|
5000
|
+
const [u] = se(() => a || `radio_${nn()}`), l = Q(
|
|
5001
|
+
(h) => {
|
|
5002
|
+
if (s.disabled)
|
|
4981
5003
|
return;
|
|
4982
|
-
|
|
4983
|
-
const
|
|
4984
|
-
...
|
|
5004
|
+
h.preventDefault();
|
|
5005
|
+
const p = {
|
|
5006
|
+
...h,
|
|
4985
5007
|
target: {
|
|
4986
|
-
...
|
|
5008
|
+
...h.target,
|
|
4987
5009
|
checked: !0,
|
|
4988
|
-
id:
|
|
5010
|
+
id: u
|
|
4989
5011
|
}
|
|
4990
5012
|
};
|
|
4991
5013
|
typeof i == "function" && i(
|
|
4992
|
-
|
|
5014
|
+
p,
|
|
4993
5015
|
!0
|
|
4994
5016
|
);
|
|
4995
5017
|
},
|
|
4996
|
-
[
|
|
4997
|
-
),
|
|
4998
|
-
(
|
|
4999
|
-
|
|
5018
|
+
[u, i, s.disabled]
|
|
5019
|
+
), c = Q(
|
|
5020
|
+
(h) => {
|
|
5021
|
+
h.key.match(/enter|spacebar|\W{1}/i) && (h.preventDefault(), l(h));
|
|
5000
5022
|
},
|
|
5001
|
-
[
|
|
5023
|
+
[l]
|
|
5024
|
+
), d = Q(
|
|
5025
|
+
(h) => {
|
|
5026
|
+
s.disabled || typeof i == "function" && i(h, h.target.checked);
|
|
5027
|
+
},
|
|
5028
|
+
[i, s.disabled]
|
|
5002
5029
|
);
|
|
5003
5030
|
return /* @__PURE__ */ Me(Xh, { background: n, children: [
|
|
5004
5031
|
/* @__PURE__ */ V(
|
|
5005
5032
|
"input",
|
|
5006
5033
|
{
|
|
5007
5034
|
type: "radio",
|
|
5008
|
-
"aria-describedby": r ? `${
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5035
|
+
"aria-describedby": r ? `${u}_description` : void 0,
|
|
5036
|
+
onChange: d,
|
|
5037
|
+
...s,
|
|
5038
|
+
id: u,
|
|
5039
|
+
onKeyDown: c,
|
|
5040
|
+
"data-testid": o
|
|
5012
5041
|
}
|
|
5013
5042
|
),
|
|
5014
5043
|
/* @__PURE__ */ V(
|
|
5015
5044
|
gn,
|
|
5016
5045
|
{
|
|
5017
|
-
onClick:
|
|
5018
|
-
onKeyDown:
|
|
5046
|
+
onClick: l,
|
|
5047
|
+
onKeyDown: c,
|
|
5019
5048
|
background: n
|
|
5020
5049
|
}
|
|
5021
5050
|
),
|
|
@@ -5025,16 +5054,16 @@ const r1 = ({
|
|
|
5025
5054
|
Zh,
|
|
5026
5055
|
{
|
|
5027
5056
|
bold: !0,
|
|
5028
|
-
htmlFor:
|
|
5029
|
-
"data-tip":
|
|
5030
|
-
"data-tip-disable":
|
|
5031
|
-
onClick:
|
|
5057
|
+
htmlFor: u,
|
|
5058
|
+
"data-tip": s["data-tip"],
|
|
5059
|
+
"data-tip-disable": s["data-tip-disable"],
|
|
5060
|
+
onClick: l,
|
|
5032
5061
|
children: e
|
|
5033
5062
|
}
|
|
5034
5063
|
),
|
|
5035
5064
|
t && /* @__PURE__ */ V(Lh, { children: t })
|
|
5036
5065
|
] }),
|
|
5037
|
-
r && /* @__PURE__ */ V(Hh, { id: `${
|
|
5066
|
+
r && /* @__PURE__ */ V(Hh, { id: `${u}_description`, children: r })
|
|
5038
5067
|
] })
|
|
5039
5068
|
] });
|
|
5040
5069
|
};
|
|
@@ -5047,6 +5076,7 @@ Ds.defaultProps = {
|
|
|
5047
5076
|
label: null
|
|
5048
5077
|
};
|
|
5049
5078
|
const gn = A.span`
|
|
5079
|
+
box-sizing: content-box;
|
|
5050
5080
|
position: relative;
|
|
5051
5081
|
height: 16px;
|
|
5052
5082
|
width: 16px;
|
|
@@ -5093,9 +5123,11 @@ const gn = A.span`
|
|
|
5093
5123
|
user-select: none;
|
|
5094
5124
|
|
|
5095
5125
|
input {
|
|
5126
|
+
z-index: -1;
|
|
5096
5127
|
position: absolute;
|
|
5097
5128
|
opacity: 0;
|
|
5098
|
-
|
|
5129
|
+
width: 0;
|
|
5130
|
+
height: 0;
|
|
5099
5131
|
margin: 0;
|
|
5100
5132
|
}
|
|
5101
5133
|
|
|
@@ -5452,29 +5484,29 @@ var Bs = function(e) {
|
|
|
5452
5484
|
}, {
|
|
5453
5485
|
key: "render",
|
|
5454
5486
|
value: function() {
|
|
5455
|
-
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,
|
|
5456
|
-
l === "rtl" ? (c = this.handleNextClick, d = this.handlePreviousClick,
|
|
5457
|
-
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", {
|
|
5458
5490
|
tabIndex: "0",
|
|
5459
5491
|
role: "button",
|
|
5460
5492
|
"aria-label": u.previousMonth,
|
|
5461
5493
|
key: "previous",
|
|
5462
5494
|
className: g,
|
|
5463
|
-
onKeyDown: f ?
|
|
5495
|
+
onKeyDown: f ? h : void 0,
|
|
5464
5496
|
onClick: f ? c : void 0
|
|
5465
|
-
}),
|
|
5497
|
+
}), y = Lr.default.createElement("span", {
|
|
5466
5498
|
tabIndex: "0",
|
|
5467
5499
|
role: "button",
|
|
5468
5500
|
"aria-label": u.nextMonth,
|
|
5469
5501
|
key: "right",
|
|
5470
5502
|
className: v,
|
|
5471
|
-
onKeyDown: m ?
|
|
5503
|
+
onKeyDown: m ? p : void 0,
|
|
5472
5504
|
onClick: m ? d : void 0
|
|
5473
5505
|
});
|
|
5474
5506
|
return Lr.default.createElement(
|
|
5475
5507
|
"div",
|
|
5476
5508
|
{ className: i || a.navBar },
|
|
5477
|
-
l === "rtl" ? [
|
|
5509
|
+
l === "rtl" ? [y, I] : [I, y]
|
|
5478
5510
|
);
|
|
5479
5511
|
}
|
|
5480
5512
|
}]), t;
|
|
@@ -5535,9 +5567,9 @@ var bp = function(e) {
|
|
|
5535
5567
|
}, {
|
|
5536
5568
|
key: "render",
|
|
5537
5569
|
value: function() {
|
|
5538
|
-
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,
|
|
5539
|
-
var f = (
|
|
5540
|
-
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,
|
|
5541
5573
|
className: a.weekday,
|
|
5542
5574
|
weekday: f,
|
|
5543
5575
|
weekdaysLong: s,
|
|
@@ -5545,7 +5577,7 @@ var bp = function(e) {
|
|
|
5545
5577
|
localeUtils: c,
|
|
5546
5578
|
locale: l
|
|
5547
5579
|
}, g = Ht.default.isValidElement(d) ? Ht.default.cloneElement(d, m) : Ht.default.createElement(d, m);
|
|
5548
|
-
|
|
5580
|
+
h.push(g);
|
|
5549
5581
|
}
|
|
5550
5582
|
return Ht.default.createElement(
|
|
5551
5583
|
"div",
|
|
@@ -5554,7 +5586,7 @@ var bp = function(e) {
|
|
|
5554
5586
|
"div",
|
|
5555
5587
|
{ className: a.weekdaysRow, role: "row" },
|
|
5556
5588
|
o && Ht.default.createElement("div", { className: a.weekday }),
|
|
5557
|
-
|
|
5589
|
+
h
|
|
5558
5590
|
)
|
|
5559
5591
|
);
|
|
5560
5592
|
}
|
|
@@ -5696,23 +5728,23 @@ function Ep(e, t) {
|
|
|
5696
5728
|
function Ap(e) {
|
|
5697
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)
|
|
5698
5730
|
a.push(new Date(e.getFullYear(), e.getMonth(), s, 12));
|
|
5699
|
-
a.forEach(function(
|
|
5700
|
-
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);
|
|
5701
5733
|
});
|
|
5702
5734
|
for (var u = o[0], l = 7 - u.length; l > 0; l -= 1) {
|
|
5703
5735
|
var c = (0, qn.clone)(u[0]);
|
|
5704
5736
|
c.setDate(u[0].getDate() - 1), u.unshift(c);
|
|
5705
5737
|
}
|
|
5706
|
-
for (var d = o[o.length - 1],
|
|
5707
|
-
var
|
|
5708
|
-
|
|
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);
|
|
5709
5741
|
}
|
|
5710
5742
|
if (r && o.length < 6)
|
|
5711
5743
|
for (var f = void 0, m = o.length; m < 6; m += 1) {
|
|
5712
5744
|
f = o[o.length - 1];
|
|
5713
|
-
for (var g = f[f.length - 1], v = [],
|
|
5714
|
-
var
|
|
5715
|
-
|
|
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);
|
|
5716
5748
|
}
|
|
5717
5749
|
o.push(v);
|
|
5718
5750
|
}
|
|
@@ -5790,8 +5822,8 @@ var za = function(e) {
|
|
|
5790
5822
|
return i.length !== o.length ? !0 : i.some(function(s) {
|
|
5791
5823
|
if (s === "modifiers" || s === "modifiersStyles" || s === "classNames") {
|
|
5792
5824
|
var u = a.props[s], l = n[s], c = Object.keys(u), d = Object.keys(l);
|
|
5793
|
-
return c.length !== d.length ? !0 : c.some(function(
|
|
5794
|
-
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];
|
|
5795
5827
|
});
|
|
5796
5828
|
}
|
|
5797
5829
|
return s === "day" ? !(0, Gp.isSameDay)(a.props[s], n[s]) : !(0, oo.hasOwnProp)(n, s) || a.props[s] !== n[s];
|
|
@@ -5800,36 +5832,36 @@ var za = function(e) {
|
|
|
5800
5832
|
}, {
|
|
5801
5833
|
key: "render",
|
|
5802
5834
|
value: function() {
|
|
5803
|
-
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,
|
|
5804
|
-
a !== Wp.default ?
|
|
5805
|
-
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;
|
|
5806
5838
|
}).join("");
|
|
5807
5839
|
var T = void 0;
|
|
5808
5840
|
return i && Object.keys(l).filter(function(E) {
|
|
5809
5841
|
return !!i[E];
|
|
5810
5842
|
}).forEach(function(E) {
|
|
5811
5843
|
T = Tp({}, T, i[E]);
|
|
5812
|
-
}), 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(
|
|
5813
5845
|
"div",
|
|
5814
5846
|
{
|
|
5815
|
-
className:
|
|
5847
|
+
className: D,
|
|
5816
5848
|
tabIndex: s,
|
|
5817
5849
|
style: T,
|
|
5818
5850
|
role: "gridcell",
|
|
5819
|
-
"aria-label":
|
|
5820
|
-
"aria-disabled":
|
|
5851
|
+
"aria-label": y,
|
|
5852
|
+
"aria-disabled": x,
|
|
5821
5853
|
"aria-selected": b,
|
|
5822
5854
|
onClick: ct(f, o, l),
|
|
5823
5855
|
onKeyDown: ct(m, o, l),
|
|
5824
5856
|
onMouseEnter: ct(c, o, l),
|
|
5825
5857
|
onMouseLeave: ct(d, o, l),
|
|
5826
|
-
onMouseUp: ct(
|
|
5827
|
-
onMouseDown: ct(
|
|
5858
|
+
onMouseUp: ct(h, o, l),
|
|
5859
|
+
onMouseDown: ct(p, o, l),
|
|
5828
5860
|
onTouchEnd: ct(v, o, l),
|
|
5829
5861
|
onTouchStart: ct(g, o, l),
|
|
5830
|
-
onFocus: ct(
|
|
5862
|
+
onFocus: ct(I, o, l)
|
|
5831
5863
|
},
|
|
5832
|
-
|
|
5864
|
+
M
|
|
5833
5865
|
);
|
|
5834
5866
|
}
|
|
5835
5867
|
}]), t;
|
|
@@ -5916,26 +5948,26 @@ var tm = function(e) {
|
|
|
5916
5948
|
for (var o = arguments.length, s = Array(o), u = 0; u < o; u++)
|
|
5917
5949
|
s[u] = arguments[u];
|
|
5918
5950
|
return i = (n = (a = lo(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(s))), a), a.renderDay = function(l) {
|
|
5919
|
-
var c = a.props.month.getMonth(), d = so.getModifiersFromProps(a.props),
|
|
5920
|
-
uo.isSameDay(l, /* @__PURE__ */ new Date()) && !Object.prototype.hasOwnProperty.call(d, a.props.classNames.today) &&
|
|
5921
|
-
var
|
|
5922
|
-
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);
|
|
5923
5955
|
var m = "" + l.getFullYear() + l.getMonth() + l.getDate(), g = {};
|
|
5924
|
-
return
|
|
5956
|
+
return h.forEach(function(v) {
|
|
5925
5957
|
g[v] = !0;
|
|
5926
5958
|
}), dt.default.createElement(
|
|
5927
5959
|
zp.default,
|
|
5928
5960
|
{
|
|
5929
|
-
key: (
|
|
5961
|
+
key: (p ? "outside-" : "") + m,
|
|
5930
5962
|
classNames: a.props.classNames,
|
|
5931
5963
|
day: l,
|
|
5932
5964
|
modifiers: g,
|
|
5933
5965
|
modifiersStyles: a.props.modifiersStyles,
|
|
5934
|
-
empty:
|
|
5966
|
+
empty: p && !a.props.showOutsideDays && !a.props.fixedWeeks,
|
|
5935
5967
|
tabIndex: f,
|
|
5936
5968
|
ariaLabel: a.props.localeUtils.formatDay(l, a.props.locale),
|
|
5937
|
-
ariaDisabled:
|
|
5938
|
-
ariaSelected:
|
|
5969
|
+
ariaDisabled: p || h.indexOf(a.props.classNames.disabled) > -1,
|
|
5970
|
+
ariaSelected: h.indexOf(a.props.classNames.selected) > -1,
|
|
5939
5971
|
onClick: a.props.onDayClick,
|
|
5940
5972
|
onFocus: a.props.onDayFocus,
|
|
5941
5973
|
onKeyDown: a.props.onDayKeyDown,
|
|
@@ -5953,39 +5985,39 @@ var tm = function(e) {
|
|
|
5953
5985
|
return Hp(t, [{
|
|
5954
5986
|
key: "render",
|
|
5955
5987
|
value: function() {
|
|
5956
|
-
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 = {
|
|
5957
5989
|
date: o,
|
|
5958
5990
|
classNames: i,
|
|
5959
5991
|
months: s,
|
|
5960
|
-
localeUtils:
|
|
5992
|
+
localeUtils: h,
|
|
5961
5993
|
locale: d,
|
|
5962
|
-
onClick: g ? function(
|
|
5963
|
-
return g(o,
|
|
5994
|
+
onClick: g ? function(D) {
|
|
5995
|
+
return g(o, D);
|
|
5964
5996
|
} : void 0
|
|
5965
|
-
}, 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);
|
|
5966
5998
|
return dt.default.createElement(
|
|
5967
5999
|
"div",
|
|
5968
6000
|
{ className: i.month, role: "grid" },
|
|
5969
6001
|
b,
|
|
5970
|
-
|
|
6002
|
+
I && dt.default.createElement(Xp.default, {
|
|
5971
6003
|
classNames: i,
|
|
5972
6004
|
weekdaysShort: f,
|
|
5973
|
-
weekdaysLong:
|
|
6005
|
+
weekdaysLong: p,
|
|
5974
6006
|
firstDayOfWeek: m,
|
|
5975
6007
|
showWeekNumbers: v,
|
|
5976
6008
|
locale: d,
|
|
5977
|
-
localeUtils:
|
|
6009
|
+
localeUtils: h,
|
|
5978
6010
|
weekdayElement: c
|
|
5979
6011
|
}),
|
|
5980
6012
|
dt.default.createElement(
|
|
5981
6013
|
"div",
|
|
5982
6014
|
{ className: i.body, role: "rowgroup" },
|
|
5983
|
-
|
|
6015
|
+
M.map(function(D) {
|
|
5984
6016
|
var T = void 0;
|
|
5985
|
-
return v && (T = uo.getWeekNumber(
|
|
6017
|
+
return v && (T = uo.getWeekNumber(D[6])), dt.default.createElement(
|
|
5986
6018
|
"div",
|
|
5987
6019
|
{
|
|
5988
|
-
key:
|
|
6020
|
+
key: D[0].getTime(),
|
|
5989
6021
|
className: i.week,
|
|
5990
6022
|
role: "row"
|
|
5991
6023
|
},
|
|
@@ -5993,18 +6025,18 @@ var tm = function(e) {
|
|
|
5993
6025
|
"div",
|
|
5994
6026
|
{
|
|
5995
6027
|
className: i.weekNumber,
|
|
5996
|
-
tabIndex:
|
|
6028
|
+
tabIndex: y ? 0 : -1,
|
|
5997
6029
|
role: "gridcell",
|
|
5998
|
-
onClick:
|
|
5999
|
-
return
|
|
6030
|
+
onClick: y ? function(E) {
|
|
6031
|
+
return y(T, D, E);
|
|
6000
6032
|
} : void 0,
|
|
6001
|
-
onKeyUp:
|
|
6002
|
-
return E.keyCode === Up.ENTER &&
|
|
6033
|
+
onKeyUp: y ? function(E) {
|
|
6034
|
+
return E.keyCode === Up.ENTER && y(T, D, E);
|
|
6003
6035
|
} : void 0
|
|
6004
6036
|
},
|
|
6005
|
-
n.props.renderWeek(T,
|
|
6037
|
+
n.props.renderWeek(T, D, o)
|
|
6006
6038
|
),
|
|
6007
|
-
|
|
6039
|
+
D.map(n.renderDay)
|
|
6008
6040
|
);
|
|
6009
6041
|
})
|
|
6010
6042
|
)
|
|
@@ -6612,8 +6644,8 @@ var su = function(e) {
|
|
|
6612
6644
|
var c = vn({
|
|
6613
6645
|
disabled: u.disabledDays,
|
|
6614
6646
|
selected: u.selectedDays
|
|
6615
|
-
}, u.modifiers), d = (0, Nm.getModifiersForDay)(n, c).reduce(function(
|
|
6616
|
-
return vn({},
|
|
6647
|
+
}, u.modifiers), d = (0, Nm.getModifiersForDay)(n, c).reduce(function(h, p) {
|
|
6648
|
+
return vn({}, h, _m({}, p, !0));
|
|
6617
6649
|
}, {});
|
|
6618
6650
|
l(n, d, o);
|
|
6619
6651
|
}
|
|
@@ -6630,10 +6662,10 @@ var su = function(e) {
|
|
|
6630
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;
|
|
6631
6663
|
if (!c) {
|
|
6632
6664
|
var d = l ? i(l, o, s.locale) : this.getInitialMonthFromProps(this.props);
|
|
6633
|
-
this.setState(function(
|
|
6665
|
+
this.setState(function(h) {
|
|
6634
6666
|
return {
|
|
6635
6667
|
showOverlay: !0,
|
|
6636
|
-
month: d ||
|
|
6668
|
+
month: d || h.month
|
|
6637
6669
|
};
|
|
6638
6670
|
}, function() {
|
|
6639
6671
|
n.props.onDayPickerShow && n.props.onDayPickerShow();
|
|
@@ -6739,20 +6771,20 @@ var su = function(e) {
|
|
|
6739
6771
|
}, {
|
|
6740
6772
|
key: "handleDayClick",
|
|
6741
6773
|
value: function(n, a, i) {
|
|
6742
|
-
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;
|
|
6743
6775
|
if (l.onDayClick && l.onDayClick(n, a, i), !(a.disabled || l && l.classNames && a[l.classNames.disabled])) {
|
|
6744
6776
|
if (a.selected && u) {
|
|
6745
|
-
var
|
|
6746
|
-
if (Array.isArray(
|
|
6747
|
-
|
|
6748
|
-
var f =
|
|
6749
|
-
|
|
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);
|
|
6750
6782
|
} else
|
|
6751
|
-
|
|
6752
|
-
this.setState({ value: "", typedValue: "", selectedDays:
|
|
6783
|
+
p && (p = null);
|
|
6784
|
+
this.setState({ value: "", typedValue: "", selectedDays: p }, this.hideAfterDayClick), c && c(void 0, a, this);
|
|
6753
6785
|
return;
|
|
6754
6786
|
}
|
|
6755
|
-
var m = d(n,
|
|
6787
|
+
var m = d(n, h, l.locale);
|
|
6756
6788
|
this.setState({ value: m, typedValue: "", month: n }, function() {
|
|
6757
6789
|
c && c(n, a, o), o.hideAfterDayClick();
|
|
6758
6790
|
});
|
|
@@ -6761,12 +6793,12 @@ var su = function(e) {
|
|
|
6761
6793
|
}, {
|
|
6762
6794
|
key: "renderOverlay",
|
|
6763
6795
|
value: function() {
|
|
6764
|
-
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,
|
|
6765
|
-
if (!d &&
|
|
6766
|
-
var f = s(
|
|
6767
|
-
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);
|
|
6768
6800
|
} else
|
|
6769
|
-
d && (
|
|
6801
|
+
d && (p = d);
|
|
6770
6802
|
var m = void 0;
|
|
6771
6803
|
o.todayButton && (m = function() {
|
|
6772
6804
|
return n.updateState(/* @__PURE__ */ new Date(), u(/* @__PURE__ */ new Date(), l, o.locale), n.hideAfterDayClick);
|
|
@@ -6777,20 +6809,20 @@ var su = function(e) {
|
|
|
6777
6809
|
{
|
|
6778
6810
|
classNames: i,
|
|
6779
6811
|
month: this.state.month,
|
|
6780
|
-
selectedDay:
|
|
6812
|
+
selectedDay: p,
|
|
6781
6813
|
input: this.input,
|
|
6782
6814
|
tabIndex: 0,
|
|
6783
6815
|
onFocus: this.handleOverlayFocus,
|
|
6784
6816
|
onBlur: this.handleOverlayBlur
|
|
6785
6817
|
},
|
|
6786
6818
|
_t.default.createElement(Am.default, vn({
|
|
6787
|
-
ref: function(
|
|
6788
|
-
return n.daypicker =
|
|
6819
|
+
ref: function(I) {
|
|
6820
|
+
return n.daypicker = I;
|
|
6789
6821
|
},
|
|
6790
6822
|
onTodayButtonClick: m
|
|
6791
6823
|
}, o, {
|
|
6792
6824
|
month: this.state.month,
|
|
6793
|
-
selectedDays:
|
|
6825
|
+
selectedDays: p,
|
|
6794
6826
|
onDayClick: this.handleDayClick,
|
|
6795
6827
|
onMonthChange: this.handleMonthChange
|
|
6796
6828
|
}))
|
|
@@ -6852,7 +6884,7 @@ const Wm = /* @__PURE__ */ Sa(Rm);
|
|
|
6852
6884
|
//! license : MIT
|
|
6853
6885
|
//! momentjs.com
|
|
6854
6886
|
var uu;
|
|
6855
|
-
function
|
|
6887
|
+
function w() {
|
|
6856
6888
|
return uu.apply(null, arguments);
|
|
6857
6889
|
}
|
|
6858
6890
|
function Bm(e) {
|
|
@@ -6946,7 +6978,7 @@ function xr(e) {
|
|
|
6946
6978
|
var t = ot(NaN);
|
|
6947
6979
|
return e != null ? xt(W(t), e) : W(t).userInvalidated = !0, t;
|
|
6948
6980
|
}
|
|
6949
|
-
var po =
|
|
6981
|
+
var po = w.momentProperties = [], Zr = !1;
|
|
6950
6982
|
function ni(e, t) {
|
|
6951
6983
|
var r, n, a, i = po.length;
|
|
6952
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)
|
|
@@ -6955,18 +6987,18 @@ function ni(e, t) {
|
|
|
6955
6987
|
return e;
|
|
6956
6988
|
}
|
|
6957
6989
|
function Pn(e) {
|
|
6958
|
-
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);
|
|
6959
6991
|
}
|
|
6960
6992
|
function Ue(e) {
|
|
6961
6993
|
return e instanceof Pn || e != null && e._isAMomentObject != null;
|
|
6962
6994
|
}
|
|
6963
6995
|
function cu(e) {
|
|
6964
|
-
|
|
6996
|
+
w.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
6965
6997
|
}
|
|
6966
6998
|
function Be(e, t) {
|
|
6967
6999
|
var r = !0;
|
|
6968
7000
|
return xt(function() {
|
|
6969
|
-
if (
|
|
7001
|
+
if (w.deprecationHandler != null && w.deprecationHandler(null, e), r) {
|
|
6970
7002
|
var n = [], a, i, o, s = arguments.length;
|
|
6971
7003
|
for (i = 0; i < s; i++) {
|
|
6972
7004
|
if (a = "", typeof arguments[i] == "object") {
|
|
@@ -6990,10 +7022,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
6990
7022
|
}
|
|
6991
7023
|
var mo = {};
|
|
6992
7024
|
function du(e, t) {
|
|
6993
|
-
|
|
7025
|
+
w.deprecationHandler != null && w.deprecationHandler(e, t), mo[e] || (cu(t), mo[e] = !0);
|
|
6994
7026
|
}
|
|
6995
|
-
|
|
6996
|
-
|
|
7027
|
+
w.suppressDeprecationWarnings = !1;
|
|
7028
|
+
w.deprecationHandler = null;
|
|
6997
7029
|
function st(e) {
|
|
6998
7030
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
6999
7031
|
}
|
|
@@ -7168,7 +7200,7 @@ function B(e) {
|
|
|
7168
7200
|
}
|
|
7169
7201
|
function ln(e, t) {
|
|
7170
7202
|
return function(r) {
|
|
7171
|
-
return r != null ? (pu(this, e, r),
|
|
7203
|
+
return r != null ? (pu(this, e, r), w.updateOffset(this, t), this) : cr(this, e);
|
|
7172
7204
|
};
|
|
7173
7205
|
}
|
|
7174
7206
|
function cr(e, t) {
|
|
@@ -7218,7 +7250,7 @@ function Ne(e) {
|
|
|
7218
7250
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
7219
7251
|
}
|
|
7220
7252
|
var fa = {};
|
|
7221
|
-
function
|
|
7253
|
+
function K(e, t) {
|
|
7222
7254
|
var r, n = t, a;
|
|
7223
7255
|
for (typeof e == "string" && (e = [e]), bt(t) && (n = function(i, o) {
|
|
7224
7256
|
o[t] = B(i);
|
|
@@ -7226,7 +7258,7 @@ function Q(e, t) {
|
|
|
7226
7258
|
fa[e[r]] = n;
|
|
7227
7259
|
}
|
|
7228
7260
|
function Fn(e, t) {
|
|
7229
|
-
|
|
7261
|
+
K(e, function(r, n, a, i) {
|
|
7230
7262
|
a._w = a._w || {}, t(r, a._w, a, i);
|
|
7231
7263
|
});
|
|
7232
7264
|
}
|
|
@@ -7270,10 +7302,10 @@ S("MMM", function(e, t) {
|
|
|
7270
7302
|
S("MMMM", function(e, t) {
|
|
7271
7303
|
return t.monthsRegex(e);
|
|
7272
7304
|
});
|
|
7273
|
-
|
|
7305
|
+
K(["M", "MM"], function(e, t) {
|
|
7274
7306
|
t[pt] = B(e) - 1;
|
|
7275
7307
|
});
|
|
7276
|
-
|
|
7308
|
+
K(["MMM", "MMMM"], function(e, t, r, n) {
|
|
7277
7309
|
var a = r._locale.monthsParse(e, n, r._strict);
|
|
7278
7310
|
a != null ? t[pt] = a : W(r).invalidMonth = e;
|
|
7279
7311
|
});
|
|
@@ -7328,7 +7360,7 @@ function Cu(e, t) {
|
|
|
7328
7360
|
return r = Math.min(e.date(), Ar(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, r), e;
|
|
7329
7361
|
}
|
|
7330
7362
|
function xu(e) {
|
|
7331
|
-
return e != null ? (Cu(this, e),
|
|
7363
|
+
return e != null ? (Cu(this, e), w.updateOffset(this, !0), this) : cr(this, "Month");
|
|
7332
7364
|
}
|
|
7333
7365
|
function Ig() {
|
|
7334
7366
|
return Ar(this.year(), this.month());
|
|
@@ -7375,20 +7407,20 @@ S("YY", te, Pe);
|
|
|
7375
7407
|
S("YYYY", si, oi);
|
|
7376
7408
|
S("YYYYY", kr, Dr);
|
|
7377
7409
|
S("YYYYYY", kr, Dr);
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
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);
|
|
7381
7413
|
});
|
|
7382
|
-
|
|
7383
|
-
t[ye] =
|
|
7414
|
+
K("YY", function(e, t) {
|
|
7415
|
+
t[ye] = w.parseTwoDigitYear(e);
|
|
7384
7416
|
});
|
|
7385
|
-
|
|
7417
|
+
K("Y", function(e, t) {
|
|
7386
7418
|
t[ye] = parseInt(e, 10);
|
|
7387
7419
|
});
|
|
7388
7420
|
function In(e) {
|
|
7389
7421
|
return wr(e) ? 366 : 365;
|
|
7390
7422
|
}
|
|
7391
|
-
|
|
7423
|
+
w.parseTwoDigitYear = function(e) {
|
|
7392
7424
|
return B(e) + (B(e) > 68 ? 1900 : 2e3);
|
|
7393
7425
|
};
|
|
7394
7426
|
var Du = ln("FullYear", !0);
|
|
@@ -7655,30 +7687,30 @@ S("hmm", vu);
|
|
|
7655
7687
|
S("hmmss", bu);
|
|
7656
7688
|
S("Hmm", vu);
|
|
7657
7689
|
S("Hmmss", bu);
|
|
7658
|
-
|
|
7659
|
-
|
|
7690
|
+
K(["H", "HH"], fe);
|
|
7691
|
+
K(["k", "kk"], function(e, t, r) {
|
|
7660
7692
|
var n = B(e);
|
|
7661
7693
|
t[fe] = n === 24 ? 0 : n;
|
|
7662
7694
|
});
|
|
7663
|
-
|
|
7695
|
+
K(["a", "A"], function(e, t, r) {
|
|
7664
7696
|
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
7665
7697
|
});
|
|
7666
|
-
|
|
7698
|
+
K(["h", "hh"], function(e, t, r) {
|
|
7667
7699
|
t[fe] = B(e), W(r).bigHour = !0;
|
|
7668
7700
|
});
|
|
7669
|
-
|
|
7701
|
+
K("hmm", function(e, t, r) {
|
|
7670
7702
|
var n = e.length - 2;
|
|
7671
7703
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n)), W(r).bigHour = !0;
|
|
7672
7704
|
});
|
|
7673
|
-
|
|
7705
|
+
K("hmmss", function(e, t, r) {
|
|
7674
7706
|
var n = e.length - 4, a = e.length - 2;
|
|
7675
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;
|
|
7676
7708
|
});
|
|
7677
|
-
|
|
7709
|
+
K("Hmm", function(e, t, r) {
|
|
7678
7710
|
var n = e.length - 2;
|
|
7679
7711
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n));
|
|
7680
7712
|
});
|
|
7681
|
-
|
|
7713
|
+
K("Hmmss", function(e, t, r) {
|
|
7682
7714
|
var n = e.length - 4, a = e.length - 2;
|
|
7683
7715
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n, 2)), t[mt] = B(e.substr(a));
|
|
7684
7716
|
});
|
|
@@ -7937,9 +7969,9 @@ function gv(e) {
|
|
|
7937
7969
|
delete e._isValid;
|
|
7938
7970
|
else
|
|
7939
7971
|
return;
|
|
7940
|
-
e._strict ? e._isValid = !1 :
|
|
7972
|
+
e._strict ? e._isValid = !1 : w.createFromInputFallback(e);
|
|
7941
7973
|
}
|
|
7942
|
-
|
|
7974
|
+
w.createFromInputFallback = Be(
|
|
7943
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.",
|
|
7944
7976
|
function(e) {
|
|
7945
7977
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -7949,7 +7981,7 @@ function Xt(e, t, r) {
|
|
|
7949
7981
|
return e ?? t ?? r;
|
|
7950
7982
|
}
|
|
7951
7983
|
function vv(e) {
|
|
7952
|
-
var t = new Date(
|
|
7984
|
+
var t = new Date(w.now());
|
|
7953
7985
|
return e._useUTC ? [
|
|
7954
7986
|
t.getUTCFullYear(),
|
|
7955
7987
|
t.getUTCMonth(),
|
|
@@ -7977,16 +8009,16 @@ function bv(e) {
|
|
|
7977
8009
|
An(ee(), 1, 4).year
|
|
7978
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);
|
|
7979
8011
|
}
|
|
7980
|
-
|
|
8012
|
+
w.ISO_8601 = function() {
|
|
7981
8013
|
};
|
|
7982
|
-
|
|
8014
|
+
w.RFC_2822 = function() {
|
|
7983
8015
|
};
|
|
7984
8016
|
function pi(e) {
|
|
7985
|
-
if (e._f ===
|
|
8017
|
+
if (e._f === w.ISO_8601) {
|
|
7986
8018
|
Nu(e);
|
|
7987
8019
|
return;
|
|
7988
8020
|
}
|
|
7989
|
-
if (e._f ===
|
|
8021
|
+
if (e._f === w.RFC_2822) {
|
|
7990
8022
|
_u(e);
|
|
7991
8023
|
return;
|
|
7992
8024
|
}
|
|
@@ -8037,9 +8069,9 @@ function Ou(e) {
|
|
|
8037
8069
|
}
|
|
8038
8070
|
function wv(e) {
|
|
8039
8071
|
var t = e._i;
|
|
8040
|
-
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) {
|
|
8041
8073
|
return parseInt(r, 10);
|
|
8042
|
-
}), 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);
|
|
8043
8075
|
}
|
|
8044
8076
|
function Pu(e, t, r, n, a) {
|
|
8045
8077
|
var i = {};
|
|
@@ -8137,7 +8169,7 @@ Fu("Z", ":");
|
|
|
8137
8169
|
Fu("ZZ", "");
|
|
8138
8170
|
S("Z", Er);
|
|
8139
8171
|
S("ZZ", Er);
|
|
8140
|
-
|
|
8172
|
+
K(["Z", "ZZ"], function(e, t, r) {
|
|
8141
8173
|
r._useUTC = !0, r._tzm = mi(Er, e);
|
|
8142
8174
|
});
|
|
8143
8175
|
var Pv = /([\+\-]|\d\d)/gi;
|
|
@@ -8147,12 +8179,12 @@ function mi(e, t) {
|
|
|
8147
8179
|
}
|
|
8148
8180
|
function gi(e, t) {
|
|
8149
8181
|
var r, n;
|
|
8150
|
-
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();
|
|
8151
8183
|
}
|
|
8152
8184
|
function pa(e) {
|
|
8153
8185
|
return -Math.round(e._d.getTimezoneOffset());
|
|
8154
8186
|
}
|
|
8155
|
-
|
|
8187
|
+
w.updateOffset = function() {
|
|
8156
8188
|
};
|
|
8157
8189
|
function Tv(e, t, r) {
|
|
8158
8190
|
var n = this._offset || 0, a;
|
|
@@ -8169,7 +8201,7 @@ function Tv(e, t, r) {
|
|
|
8169
8201
|
Je(e - n, "m"),
|
|
8170
8202
|
1,
|
|
8171
8203
|
!1
|
|
8172
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
8204
|
+
) : this._changeInProgress || (this._changeInProgress = !0, w.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
8173
8205
|
} else
|
|
8174
8206
|
return this._isUTC ? n : pa(this);
|
|
8175
8207
|
}
|
|
@@ -8265,7 +8297,7 @@ function Ru(e, t) {
|
|
|
8265
8297
|
}
|
|
8266
8298
|
function Wu(e, t, r, n) {
|
|
8267
8299
|
var a = t._milliseconds, i = ha(t._days), o = ha(t._months);
|
|
8268
|
-
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));
|
|
8269
8301
|
}
|
|
8270
8302
|
var zv = Ru(1, "add"), Uv = Ru(-1, "subtract");
|
|
8271
8303
|
function Bu(e) {
|
|
@@ -8330,7 +8362,7 @@ function qv(e, t) {
|
|
|
8330
8362
|
}
|
|
8331
8363
|
function eb(e, t) {
|
|
8332
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));
|
|
8333
|
-
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]);
|
|
8334
8366
|
return this.format(
|
|
8335
8367
|
i || this.localeData().calendar(a, this, ee(r))
|
|
8336
8368
|
);
|
|
@@ -8402,8 +8434,8 @@ function nr(e, t) {
|
|
|
8402
8434
|
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), n = e.clone().add(r, "months"), a, i;
|
|
8403
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;
|
|
8404
8436
|
}
|
|
8405
|
-
|
|
8406
|
-
|
|
8437
|
+
w.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
8438
|
+
w.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
8407
8439
|
function lb() {
|
|
8408
8440
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
8409
8441
|
}
|
|
@@ -8426,7 +8458,7 @@ function db() {
|
|
|
8426
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);
|
|
8427
8459
|
}
|
|
8428
8460
|
function fb(e) {
|
|
8429
|
-
e || (e = this.isUtc() ?
|
|
8461
|
+
e || (e = this.isUtc() ? w.defaultFormatUtc : w.defaultFormat);
|
|
8430
8462
|
var t = er(this, e);
|
|
8431
8463
|
return this.localeData().postformat(t);
|
|
8432
8464
|
}
|
|
@@ -8514,7 +8546,7 @@ function vb(e) {
|
|
|
8514
8546
|
t = this._d.valueOf(), t -= Kt(t, hr);
|
|
8515
8547
|
break;
|
|
8516
8548
|
}
|
|
8517
|
-
return this._d.setTime(t),
|
|
8549
|
+
return this._d.setTime(t), w.updateOffset(this, !0), this;
|
|
8518
8550
|
}
|
|
8519
8551
|
function bb(e) {
|
|
8520
8552
|
var t, r;
|
|
@@ -8565,7 +8597,7 @@ function bb(e) {
|
|
|
8565
8597
|
t = this._d.valueOf(), t += hr - Kt(t, hr) - 1;
|
|
8566
8598
|
break;
|
|
8567
8599
|
}
|
|
8568
|
-
return this._d.setTime(t),
|
|
8600
|
+
return this._d.setTime(t), w.updateOffset(this, !0), this;
|
|
8569
8601
|
}
|
|
8570
8602
|
function yb() {
|
|
8571
8603
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
@@ -8635,7 +8667,7 @@ S("NN", bi);
|
|
|
8635
8667
|
S("NNN", bi);
|
|
8636
8668
|
S("NNNN", Bb);
|
|
8637
8669
|
S("NNNNN", Yb);
|
|
8638
|
-
|
|
8670
|
+
K(
|
|
8639
8671
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
8640
8672
|
function(e, t, r, n) {
|
|
8641
8673
|
var a = r._locale.erasParse(e, n, r._strict);
|
|
@@ -8647,8 +8679,8 @@ S("yy", cn);
|
|
|
8647
8679
|
S("yyy", cn);
|
|
8648
8680
|
S("yyyy", cn);
|
|
8649
8681
|
S("yo", Vb);
|
|
8650
|
-
|
|
8651
|
-
|
|
8682
|
+
K(["y", "yy", "yyy", "yyyy"], ye);
|
|
8683
|
+
K(["yo"], function(e, t, r, n) {
|
|
8652
8684
|
var a;
|
|
8653
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);
|
|
8654
8686
|
});
|
|
@@ -8657,7 +8689,7 @@ function Ab(e, t) {
|
|
|
8657
8689
|
for (r = 0, n = i.length; r < n; ++r) {
|
|
8658
8690
|
switch (typeof i[r].since) {
|
|
8659
8691
|
case "string":
|
|
8660
|
-
a =
|
|
8692
|
+
a = w(i[r].since).startOf("day"), i[r].since = a.valueOf();
|
|
8661
8693
|
break;
|
|
8662
8694
|
}
|
|
8663
8695
|
switch (typeof i[r].until) {
|
|
@@ -8665,7 +8697,7 @@ function Ab(e, t) {
|
|
|
8665
8697
|
i[r].until = 1 / 0;
|
|
8666
8698
|
break;
|
|
8667
8699
|
case "string":
|
|
8668
|
-
a =
|
|
8700
|
+
a = w(i[r].until).startOf("day").valueOf(), i[r].until = a.valueOf();
|
|
8669
8701
|
break;
|
|
8670
8702
|
}
|
|
8671
8703
|
}
|
|
@@ -8696,7 +8728,7 @@ function Nb(e, t, r) {
|
|
|
8696
8728
|
}
|
|
8697
8729
|
function _b(e, t) {
|
|
8698
8730
|
var r = e.since <= e.until ? 1 : -1;
|
|
8699
|
-
return t === void 0 ?
|
|
8731
|
+
return t === void 0 ? w(e.since).year() : w(e.since).year() + (t - e.offset) * r;
|
|
8700
8732
|
}
|
|
8701
8733
|
function Ob() {
|
|
8702
8734
|
var e, t, r, n = this.localeData().eras();
|
|
@@ -8723,7 +8755,7 @@ function Fb() {
|
|
|
8723
8755
|
var e, t, r, n, a = this.localeData().eras();
|
|
8724
8756
|
for (e = 0, t = a.length; e < t; ++e)
|
|
8725
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)
|
|
8726
|
-
return (this.year() -
|
|
8758
|
+
return (this.year() - w(a[e].since).year()) * r + a[e].offset;
|
|
8727
8759
|
return this.year();
|
|
8728
8760
|
}
|
|
8729
8761
|
function Gb(e) {
|
|
@@ -8788,7 +8820,7 @@ Fn(
|
|
|
8788
8820
|
}
|
|
8789
8821
|
);
|
|
8790
8822
|
Fn(["gg", "GG"], function(e, t, r, n) {
|
|
8791
|
-
t[n] =
|
|
8823
|
+
t[n] = w.parseTwoDigitYear(e);
|
|
8792
8824
|
});
|
|
8793
8825
|
function Lb(e) {
|
|
8794
8826
|
return ju.call(
|
|
@@ -8836,7 +8868,7 @@ _("Q", 0, "Qo", "quarter");
|
|
|
8836
8868
|
Ie("quarter", "Q");
|
|
8837
8869
|
Ce("quarter", 7);
|
|
8838
8870
|
S("Q", mu);
|
|
8839
|
-
|
|
8871
|
+
K("Q", function(e, t) {
|
|
8840
8872
|
t[pt] = (B(e) - 1) * 3;
|
|
8841
8873
|
});
|
|
8842
8874
|
function $b(e) {
|
|
@@ -8850,8 +8882,8 @@ S("DD", te, Pe);
|
|
|
8850
8882
|
S("Do", function(e, t) {
|
|
8851
8883
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
8852
8884
|
});
|
|
8853
|
-
|
|
8854
|
-
|
|
8885
|
+
K(["D", "DD"], rt);
|
|
8886
|
+
K("Do", function(e, t) {
|
|
8855
8887
|
t[rt] = B(e.match(te)[0]);
|
|
8856
8888
|
});
|
|
8857
8889
|
var zu = ln("Date", !0);
|
|
@@ -8860,7 +8892,7 @@ Ie("dayOfYear", "DDD");
|
|
|
8860
8892
|
Ce("dayOfYear", 4);
|
|
8861
8893
|
S("DDD", Mr);
|
|
8862
8894
|
S("DDDD", gu);
|
|
8863
|
-
|
|
8895
|
+
K(["DDD", "DDDD"], function(e, t, r) {
|
|
8864
8896
|
r._dayOfYear = B(e);
|
|
8865
8897
|
});
|
|
8866
8898
|
function Jb(e) {
|
|
@@ -8874,14 +8906,14 @@ Ie("minute", "m");
|
|
|
8874
8906
|
Ce("minute", 14);
|
|
8875
8907
|
S("m", te);
|
|
8876
8908
|
S("mm", te, Pe);
|
|
8877
|
-
|
|
8909
|
+
K(["m", "mm"], je);
|
|
8878
8910
|
var Qb = ln("Minutes", !1);
|
|
8879
8911
|
_("s", ["ss", 2], 0, "second");
|
|
8880
8912
|
Ie("second", "s");
|
|
8881
8913
|
Ce("second", 15);
|
|
8882
8914
|
S("s", te);
|
|
8883
8915
|
S("ss", te, Pe);
|
|
8884
|
-
|
|
8916
|
+
K(["s", "ss"], mt);
|
|
8885
8917
|
var Kb = ln("Seconds", !1);
|
|
8886
8918
|
_("S", 0, 0, function() {
|
|
8887
8919
|
return ~~(this.millisecond() / 100);
|
|
@@ -8920,7 +8952,7 @@ function qb(e, t) {
|
|
|
8920
8952
|
t[Ot] = B(("0." + e) * 1e3);
|
|
8921
8953
|
}
|
|
8922
8954
|
for (wt = "S"; wt.length <= 9; wt += "S")
|
|
8923
|
-
|
|
8955
|
+
K(wt, qb);
|
|
8924
8956
|
Uu = ln("Milliseconds", !1);
|
|
8925
8957
|
_("z", 0, 0, "zoneAbbr");
|
|
8926
8958
|
_("zz", 0, 0, "zoneName");
|
|
@@ -9133,11 +9165,11 @@ Dt("en", {
|
|
|
9133
9165
|
return e + r;
|
|
9134
9166
|
}
|
|
9135
9167
|
});
|
|
9136
|
-
|
|
9168
|
+
w.lang = Be(
|
|
9137
9169
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
9138
9170
|
Dt
|
|
9139
9171
|
);
|
|
9140
|
-
|
|
9172
|
+
w.langData = Be(
|
|
9141
9173
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
9142
9174
|
yt
|
|
9143
9175
|
);
|
|
@@ -9244,8 +9276,8 @@ function Ty(e, t, r, n, a) {
|
|
|
9244
9276
|
return a.relativeTime(t || 1, !!r, e, n);
|
|
9245
9277
|
}
|
|
9246
9278
|
function Fy(e, t, r, n) {
|
|
9247
|
-
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")),
|
|
9248
|
-
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);
|
|
9249
9281
|
}
|
|
9250
9282
|
function Gy(e) {
|
|
9251
9283
|
return e === void 0 ? ht : typeof e == "function" ? (ht = e, !0) : !1;
|
|
@@ -9311,43 +9343,43 @@ _("X", 0, 0, "unix");
|
|
|
9311
9343
|
_("x", 0, 0, "valueOf");
|
|
9312
9344
|
S("x", Sr);
|
|
9313
9345
|
S("X", og);
|
|
9314
|
-
|
|
9346
|
+
K("X", function(e, t, r) {
|
|
9315
9347
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
9316
9348
|
});
|
|
9317
|
-
|
|
9349
|
+
K("x", function(e, t, r) {
|
|
9318
9350
|
r._d = new Date(B(e));
|
|
9319
9351
|
});
|
|
9320
9352
|
//! moment.js
|
|
9321
|
-
|
|
9353
|
+
w.version = "2.29.4";
|
|
9322
9354
|
Bm(ee);
|
|
9323
|
-
|
|
9324
|
-
|
|
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
|
-
|
|
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 = {
|
|
9351
9383
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
9352
9384
|
// <input type="datetime-local" />
|
|
9353
9385
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -9369,7 +9401,7 @@ x.HTML5_FMT = {
|
|
|
9369
9401
|
};
|
|
9370
9402
|
const By = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9371
9403
|
__proto__: null,
|
|
9372
|
-
default:
|
|
9404
|
+
default: w
|
|
9373
9405
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9374
9406
|
var Qe = {};
|
|
9375
9407
|
const Yy = /* @__PURE__ */ Mc(By);
|
|
@@ -9436,7 +9468,7 @@ const Hy = /* @__PURE__ */ Sa(ga);
|
|
|
9436
9468
|
//! moment.js locale configuration
|
|
9437
9469
|
//! locale : English (United Kingdom) [en-gb]
|
|
9438
9470
|
//! author : Chris Gedrim : https://github.com/chrisgedrim
|
|
9439
|
-
|
|
9471
|
+
w.defineLocale("en-gb", {
|
|
9440
9472
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
9441
9473
|
"_"
|
|
9442
9474
|
),
|
|
@@ -9551,7 +9583,7 @@ const ce = Do({
|
|
|
9551
9583
|
id: "datePicker.button.closeYearMonthPicker",
|
|
9552
9584
|
defaultMessage: "Done"
|
|
9553
9585
|
}
|
|
9554
|
-
}), 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(
|
|
9555
9587
|
vl,
|
|
9556
9588
|
{
|
|
9557
9589
|
style: {
|
|
@@ -9577,24 +9609,24 @@ const ce = Do({
|
|
|
9577
9609
|
dayPickerProps: c = {},
|
|
9578
9610
|
...d
|
|
9579
9611
|
}) => {
|
|
9580
|
-
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();
|
|
9581
9613
|
So(
|
|
9582
9614
|
s && n[a],
|
|
9583
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."
|
|
9584
9616
|
);
|
|
9585
|
-
const b = ({ month:
|
|
9586
|
-
f(new Date(T,
|
|
9587
|
-
},
|
|
9617
|
+
const b = ({ month: D, year: T }) => {
|
|
9618
|
+
f(new Date(T, D));
|
|
9619
|
+
}, M = We(() => y ? a === "from" ? {
|
|
9588
9620
|
before: o.before,
|
|
9589
9621
|
after: g || o.after
|
|
9590
9622
|
} : {
|
|
9591
9623
|
before: m || o.before,
|
|
9592
9624
|
after: o.after
|
|
9593
|
-
} : o, [a,
|
|
9594
|
-
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(
|
|
9595
9627
|
"label",
|
|
9596
9628
|
{
|
|
9597
|
-
htmlFor:
|
|
9629
|
+
htmlFor: h,
|
|
9598
9630
|
"aria-label": e,
|
|
9599
9631
|
style: { margin: "4px 0" }
|
|
9600
9632
|
},
|
|
@@ -9603,7 +9635,7 @@ const ce = Do({
|
|
|
9603
9635
|
Wm,
|
|
9604
9636
|
{
|
|
9605
9637
|
component: Xy,
|
|
9606
|
-
value:
|
|
9638
|
+
value: I,
|
|
9607
9639
|
key: n[a],
|
|
9608
9640
|
formatDate: ga.formatDate,
|
|
9609
9641
|
parseDate: ga.parseDate,
|
|
@@ -9612,23 +9644,23 @@ const ce = Do({
|
|
|
9612
9644
|
locale: t,
|
|
9613
9645
|
localeUtils: Hy,
|
|
9614
9646
|
className: "Range",
|
|
9615
|
-
disabledDays:
|
|
9647
|
+
disabledDays: M,
|
|
9616
9648
|
modifiers: { before: m, after: g },
|
|
9617
|
-
selectedDays:
|
|
9649
|
+
selectedDays: y ? { from: m, to: g } : void 0,
|
|
9618
9650
|
navbarElement: /* @__PURE__ */ k.createElement(
|
|
9619
9651
|
jy,
|
|
9620
9652
|
{
|
|
9621
9653
|
onChangeMonthYear: b,
|
|
9622
|
-
disabledDays:
|
|
9654
|
+
disabledDays: M
|
|
9623
9655
|
}
|
|
9624
9656
|
),
|
|
9625
9657
|
showOutsideDays: !0,
|
|
9626
|
-
month:
|
|
9658
|
+
month: p,
|
|
9627
9659
|
...c
|
|
9628
9660
|
},
|
|
9629
9661
|
ref: u,
|
|
9630
9662
|
inputProps: {
|
|
9631
|
-
id:
|
|
9663
|
+
id: h,
|
|
9632
9664
|
"aria-label": e,
|
|
9633
9665
|
/**
|
|
9634
9666
|
* If your console gives you a log error like this:
|
|
@@ -9637,7 +9669,7 @@ const ce = Do({
|
|
|
9637
9669
|
* It will be fixed when we upgrade to React 18.
|
|
9638
9670
|
* See https://github.com/facebook/react/pull/22142
|
|
9639
9671
|
*/
|
|
9640
|
-
"aria-description":
|
|
9672
|
+
"aria-description": x.formatMessage(
|
|
9641
9673
|
ce.selectDateFormatDescription,
|
|
9642
9674
|
{
|
|
9643
9675
|
localeFormat: v
|
|
@@ -9701,12 +9733,12 @@ const jy = ({
|
|
|
9701
9733
|
disabledDays: o
|
|
9702
9734
|
}) => {
|
|
9703
9735
|
const s = Wt(), [u, l] = se(!1), c = We(
|
|
9704
|
-
() => !(o != null && o.before) || new Date(t.toDateString()) >=
|
|
9736
|
+
() => !(o != null && o.before) || new Date(t.toDateString()) >= w(o.before).startOf("month"),
|
|
9705
9737
|
[t, o]
|
|
9706
9738
|
), d = We(
|
|
9707
|
-
() => !(o != null && o.after) || new Date(r.toDateString()) <=
|
|
9739
|
+
() => !(o != null && o.after) || new Date(r.toDateString()) <= w(o.after).startOf("month"),
|
|
9708
9740
|
[r, o]
|
|
9709
|
-
),
|
|
9741
|
+
), h = { fill: qt, cursor: "default" };
|
|
9710
9742
|
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(e0, null, /* @__PURE__ */ k.createElement(
|
|
9711
9743
|
Qr,
|
|
9712
9744
|
{
|
|
@@ -9714,7 +9746,7 @@ const jy = ({
|
|
|
9714
9746
|
isActionIcon: !0,
|
|
9715
9747
|
onClick: () => c && n(),
|
|
9716
9748
|
"aria-label": s.formatMessage(ce.pickerPrevMonth),
|
|
9717
|
-
style: !c &&
|
|
9749
|
+
style: !c && h || {},
|
|
9718
9750
|
"data-tip": !0,
|
|
9719
9751
|
"data-for": "datepicker-prev-month",
|
|
9720
9752
|
"data-testid": "datepicker-select-prev-month"
|
|
@@ -9727,7 +9759,7 @@ const jy = ({
|
|
|
9727
9759
|
"data-tip": !0,
|
|
9728
9760
|
"data-for": "datepicker-select-year",
|
|
9729
9761
|
"data-testid": "datepicker-select-year",
|
|
9730
|
-
text:
|
|
9762
|
+
text: w(e).format("MMMM YYYY")
|
|
9731
9763
|
}
|
|
9732
9764
|
), /* @__PURE__ */ k.createElement(
|
|
9733
9765
|
Qr,
|
|
@@ -9736,7 +9768,7 @@ const jy = ({
|
|
|
9736
9768
|
isActionIcon: !0,
|
|
9737
9769
|
onClick: () => d && a(),
|
|
9738
9770
|
"aria-label": s.formatMessage(ce.pickerNextMonth),
|
|
9739
|
-
style: !d &&
|
|
9771
|
+
style: !d && h || {},
|
|
9740
9772
|
"data-tip": !0,
|
|
9741
9773
|
"data-for": "datepicker-next-month",
|
|
9742
9774
|
"data-testid": "datepicker-select-next-month"
|
|
@@ -9764,8 +9796,8 @@ const jy = ({
|
|
|
9764
9796
|
{
|
|
9765
9797
|
date: e,
|
|
9766
9798
|
disabledDays: o,
|
|
9767
|
-
onChange: (
|
|
9768
|
-
l(!1), i(
|
|
9799
|
+
onChange: (p) => {
|
|
9800
|
+
l(!1), i(p);
|
|
9769
9801
|
}
|
|
9770
9802
|
}
|
|
9771
9803
|
));
|
|
@@ -9773,14 +9805,14 @@ const jy = ({
|
|
|
9773
9805
|
const n = Wt(), [a, i] = se(new Date(e).getMonth()), [o, s] = se(
|
|
9774
9806
|
new Date(e).getFullYear()
|
|
9775
9807
|
), { after: u, before: l } = t || {}, c = () => {
|
|
9776
|
-
const f = (/* @__PURE__ */ new Date()).getFullYear(), { after: m, before: g } = t || {}, v = g ? new Date(g).getFullYear() : 1939,
|
|
9777
|
-
for (let
|
|
9778
|
-
|
|
9779
|
-
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;
|
|
9780
9812
|
}, d = (f) => {
|
|
9781
|
-
const m =
|
|
9782
|
-
return l && m <
|
|
9783
|
-
},
|
|
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(
|
|
9784
9816
|
"div",
|
|
9785
9817
|
{
|
|
9786
9818
|
onMouseDown: (g) => g.stopPropagation(),
|
|
@@ -9795,7 +9827,7 @@ const jy = ({
|
|
|
9795
9827
|
{
|
|
9796
9828
|
"aria-label": n.formatMessage(ce.selectYearDropdown),
|
|
9797
9829
|
options: c(),
|
|
9798
|
-
components: { Option:
|
|
9830
|
+
components: { Option: p },
|
|
9799
9831
|
value: {
|
|
9800
9832
|
label: o,
|
|
9801
9833
|
value: o
|
|
@@ -9804,7 +9836,7 @@ const jy = ({
|
|
|
9804
9836
|
s(f.value);
|
|
9805
9837
|
}
|
|
9806
9838
|
}
|
|
9807
|
-
)), /* @__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(
|
|
9808
9840
|
Ky,
|
|
9809
9841
|
{
|
|
9810
9842
|
"data-testid": `select-month-${f}`,
|
|
@@ -10041,51 +10073,51 @@ var t0 = "Expected a function", yo = NaN, n0 = "[object Symbol]", r0 = /^\s+|\s+
|
|
|
10041
10073
|
return c0.Date.now();
|
|
10042
10074
|
};
|
|
10043
10075
|
function m0(e, t, r) {
|
|
10044
|
-
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;
|
|
10045
10077
|
if (typeof e != "function")
|
|
10046
10078
|
throw new TypeError(t0);
|
|
10047
|
-
t = Io(t) || 0, va(r) && (c = !!r.leading, d = "maxWait" in r, i = d ? h0(Io(r.maxWait) || 0, t) : i,
|
|
10048
|
-
function
|
|
10049
|
-
var
|
|
10050
|
-
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;
|
|
10051
10083
|
}
|
|
10052
|
-
function f(
|
|
10053
|
-
return l =
|
|
10084
|
+
function f(M) {
|
|
10085
|
+
return l = M, s = setTimeout(v, t), c ? p(M) : o;
|
|
10054
10086
|
}
|
|
10055
|
-
function m(
|
|
10056
|
-
var
|
|
10087
|
+
function m(M) {
|
|
10088
|
+
var D = M - u, T = M - l, E = t - D;
|
|
10057
10089
|
return d ? p0(E, i - T) : E;
|
|
10058
10090
|
}
|
|
10059
|
-
function g(
|
|
10060
|
-
var
|
|
10061
|
-
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;
|
|
10062
10094
|
}
|
|
10063
10095
|
function v() {
|
|
10064
|
-
var
|
|
10065
|
-
if (g(
|
|
10066
|
-
return
|
|
10067
|
-
s = setTimeout(v, m(
|
|
10096
|
+
var M = Ur();
|
|
10097
|
+
if (g(M))
|
|
10098
|
+
return I(M);
|
|
10099
|
+
s = setTimeout(v, m(M));
|
|
10068
10100
|
}
|
|
10069
|
-
function
|
|
10070
|
-
return s = void 0,
|
|
10101
|
+
function I(M) {
|
|
10102
|
+
return s = void 0, h && n ? p(M) : (n = a = void 0, o);
|
|
10071
10103
|
}
|
|
10072
|
-
function
|
|
10104
|
+
function y() {
|
|
10073
10105
|
s !== void 0 && clearTimeout(s), l = 0, n = u = a = s = void 0;
|
|
10074
10106
|
}
|
|
10075
|
-
function
|
|
10076
|
-
return s === void 0 ? o :
|
|
10107
|
+
function x() {
|
|
10108
|
+
return s === void 0 ? o : I(Ur());
|
|
10077
10109
|
}
|
|
10078
10110
|
function b() {
|
|
10079
|
-
var
|
|
10080
|
-
if (n = arguments, a = this, u =
|
|
10111
|
+
var M = Ur(), D = g(M);
|
|
10112
|
+
if (n = arguments, a = this, u = M, D) {
|
|
10081
10113
|
if (s === void 0)
|
|
10082
10114
|
return f(u);
|
|
10083
10115
|
if (d)
|
|
10084
|
-
return s = setTimeout(v, t),
|
|
10116
|
+
return s = setTimeout(v, t), p(u);
|
|
10085
10117
|
}
|
|
10086
10118
|
return s === void 0 && (s = setTimeout(v, t)), o;
|
|
10087
10119
|
}
|
|
10088
|
-
return b.cancel =
|
|
10120
|
+
return b.cancel = y, b.flush = x, b;
|
|
10089
10121
|
}
|
|
10090
10122
|
function va(e) {
|
|
10091
10123
|
var t = typeof e;
|
|
@@ -10114,53 +10146,53 @@ function Io(e) {
|
|
|
10114
10146
|
}
|
|
10115
10147
|
var b0 = m0;
|
|
10116
10148
|
const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ label: e, value: t, onChange: r, inputMode: n }) => {
|
|
10117
|
-
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(
|
|
10118
10150
|
({ time: E, mode: J }) => {
|
|
10119
10151
|
const z = parseInt(E[0]), ie = parseInt(E[1]);
|
|
10120
10152
|
if (isNaN(z) || isNaN(ie))
|
|
10121
|
-
return
|
|
10153
|
+
return h("error"), f(a.formatMessage(ce.notNumber)), !1;
|
|
10122
10154
|
const oe = new RegExp(
|
|
10123
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})"
|
|
10124
10156
|
), F = z < 10 ? `0${z}:${E[1]}` : `${z}:${E[1]}`;
|
|
10125
|
-
return oe.test(F) ? (
|
|
10157
|
+
return oe.test(F) ? (h($r), !0) : (h("error"), f(a.formatMessage(ce.invalidTime)), !1);
|
|
10126
10158
|
},
|
|
10127
10159
|
[a]
|
|
10128
|
-
),
|
|
10160
|
+
), I = Q(
|
|
10129
10161
|
({ date: E, time: J, mode: z }) => {
|
|
10130
10162
|
if (!J || !z || !v({ time: J, mode: z }) || !E)
|
|
10131
10163
|
return;
|
|
10132
|
-
const ie = parseInt(J[0]), oe = parseInt(J[1]), F =
|
|
10164
|
+
const ie = parseInt(J[0]), oe = parseInt(J[1]), F = w(E);
|
|
10133
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());
|
|
10134
10166
|
},
|
|
10135
10167
|
[r, v]
|
|
10136
|
-
),
|
|
10168
|
+
), y = Q(
|
|
10137
10169
|
(E) => {
|
|
10138
|
-
o(E),
|
|
10170
|
+
o(E), I({ date: E, time: s, mode: l });
|
|
10139
10171
|
},
|
|
10140
|
-
[l, s,
|
|
10141
|
-
),
|
|
10172
|
+
[l, s, I]
|
|
10173
|
+
), x = Q((E) => {
|
|
10142
10174
|
(E.charCode < 48 || E.charCode > 58) && E.preventDefault();
|
|
10143
|
-
}, []), b =
|
|
10175
|
+
}, []), b = Q(
|
|
10144
10176
|
(E) => {
|
|
10145
10177
|
if (E.length !== 2) {
|
|
10146
|
-
|
|
10178
|
+
h("error"), f(a.formatMessage(ce.wrongFormat));
|
|
10147
10179
|
return;
|
|
10148
10180
|
}
|
|
10149
|
-
u(E),
|
|
10181
|
+
u(E), I({ date: i, time: E, mode: l });
|
|
10150
10182
|
},
|
|
10151
|
-
[a, i, l,
|
|
10152
|
-
),
|
|
10183
|
+
[a, i, l, I]
|
|
10184
|
+
), M = Q(
|
|
10153
10185
|
({ value: E }) => {
|
|
10154
|
-
c(E),
|
|
10186
|
+
c(E), I({ date: i, time: s, mode: E });
|
|
10155
10187
|
},
|
|
10156
|
-
[i, s,
|
|
10157
|
-
),
|
|
10188
|
+
[i, s, I]
|
|
10189
|
+
), D = y0(b, 500), T = Q(
|
|
10158
10190
|
(E) => {
|
|
10159
10191
|
const J = E.target.value;
|
|
10160
10192
|
let z = J;
|
|
10161
|
-
|
|
10193
|
+
h($r), J.match(I0) && (z = `${J.slice(0, 2)}:${J.slice(2)}`), g(z), D(z.split(":"));
|
|
10162
10194
|
},
|
|
10163
|
-
[
|
|
10195
|
+
[D]
|
|
10164
10196
|
);
|
|
10165
10197
|
return /* @__PURE__ */ k.createElement(C0, null, /* @__PURE__ */ k.createElement(
|
|
10166
10198
|
Ci,
|
|
@@ -10168,7 +10200,7 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10168
10200
|
width: "100%",
|
|
10169
10201
|
label: e || a.formatMessage(ce.dateTimePickerLabel),
|
|
10170
10202
|
value: i,
|
|
10171
|
-
onDayChange:
|
|
10203
|
+
onDayChange: y
|
|
10172
10204
|
}
|
|
10173
10205
|
), /* @__PURE__ */ k.createElement(
|
|
10174
10206
|
xa,
|
|
@@ -10177,9 +10209,9 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10177
10209
|
label: a.formatMessage(ce.timeInputLabel),
|
|
10178
10210
|
onChange: T,
|
|
10179
10211
|
state: d,
|
|
10180
|
-
errorMessage:
|
|
10212
|
+
errorMessage: p,
|
|
10181
10213
|
value: m,
|
|
10182
|
-
onKeyPress:
|
|
10214
|
+
onKeyPress: x
|
|
10183
10215
|
}
|
|
10184
10216
|
), /* @__PURE__ */ k.createElement("div", { style: { paddingTop: "28px" } }, /* @__PURE__ */ k.createElement(
|
|
10185
10217
|
Cs,
|
|
@@ -10193,7 +10225,7 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10193
10225
|
}
|
|
10194
10226
|
],
|
|
10195
10227
|
defaultValue: { value: "am", label: a.formatMessage(ce.am) },
|
|
10196
|
-
onChange:
|
|
10228
|
+
onChange: M
|
|
10197
10229
|
}
|
|
10198
10230
|
)));
|
|
10199
10231
|
}, C0 = A.div`
|
|
@@ -10342,49 +10374,49 @@ const x0 = {
|
|
|
10342
10374
|
queryError: u,
|
|
10343
10375
|
dropdownMaxHeight: l
|
|
10344
10376
|
}) => {
|
|
10345
|
-
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;
|
|
10346
10378
|
Ze(() => {
|
|
10347
10379
|
i || d({ q: "" });
|
|
10348
10380
|
}, [i]), Ze(() => {
|
|
10349
10381
|
if (v)
|
|
10350
10382
|
return;
|
|
10351
|
-
const { q: F } =
|
|
10383
|
+
const { q: F } = h;
|
|
10352
10384
|
F.length < 2 || e(F);
|
|
10353
|
-
}, [e,
|
|
10385
|
+
}, [e, h, v]), Ze(() => {
|
|
10354
10386
|
r.length === 0 && f(null), r.length > 0 && f(0);
|
|
10355
10387
|
}, [r]);
|
|
10356
|
-
const
|
|
10357
|
-
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);
|
|
10358
10390
|
}, J = (F) => {
|
|
10359
|
-
const { value:
|
|
10360
|
-
d({ q
|
|
10391
|
+
const { value: q } = F.target;
|
|
10392
|
+
d({ q }), g(!0), I(null), f(null), i && v && a();
|
|
10361
10393
|
};
|
|
10362
10394
|
Ze(() => {
|
|
10363
|
-
|
|
10364
|
-
}, [
|
|
10395
|
+
x.current && x.current.scrollIntoView({ block: "nearest" });
|
|
10396
|
+
}, [p]);
|
|
10365
10397
|
const z = (F) => {
|
|
10366
|
-
|
|
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())));
|
|
10367
10399
|
}, ie = (F) => {
|
|
10368
10400
|
E(F);
|
|
10369
10401
|
};
|
|
10370
10402
|
Ze(() => {
|
|
10371
|
-
const F = (
|
|
10372
|
-
|
|
10403
|
+
const F = (q) => {
|
|
10404
|
+
y.current && !y.current.contains(q.target) ? g(!1) : g(!0);
|
|
10373
10405
|
};
|
|
10374
10406
|
return document.addEventListener("pointerdown", F), function() {
|
|
10375
10407
|
document.removeEventListener("pointerdown", F);
|
|
10376
10408
|
};
|
|
10377
|
-
}, [
|
|
10409
|
+
}, [y]);
|
|
10378
10410
|
const oe = () => u ? /* @__PURE__ */ React.createElement(P0, null) : b || t ? /* @__PURE__ */ React.createElement(G0, { query: c.q }) : r.length > 0 ? /* @__PURE__ */ React.createElement(
|
|
10379
10411
|
w0,
|
|
10380
10412
|
{
|
|
10381
10413
|
results: r,
|
|
10382
|
-
focusedResultIndex:
|
|
10414
|
+
focusedResultIndex: p,
|
|
10383
10415
|
onResultClick: ie,
|
|
10384
|
-
ref:
|
|
10416
|
+
ref: x
|
|
10385
10417
|
}
|
|
10386
10418
|
) : /* @__PURE__ */ React.createElement(T0, { query: c.q });
|
|
10387
|
-
return /* @__PURE__ */ React.createElement(R0, { ref:
|
|
10419
|
+
return /* @__PURE__ */ React.createElement(R0, { ref: y }, /* @__PURE__ */ React.createElement(
|
|
10388
10420
|
xa,
|
|
10389
10421
|
{
|
|
10390
10422
|
placeholder: o,
|
|
@@ -10397,7 +10429,7 @@ const x0 = {
|
|
|
10397
10429
|
errorMessage: s,
|
|
10398
10430
|
autoComplete: "off"
|
|
10399
10431
|
}
|
|
10400
|
-
),
|
|
10432
|
+
), M && /* @__PURE__ */ React.createElement(k0, { maxHeight: l }, oe()));
|
|
10401
10433
|
}, R0 = A.div`
|
|
10402
10434
|
width: 100%;
|
|
10403
10435
|
`;
|