@happeouikit/form-elements 2.3.39 → 2.3.41
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/Input.d.ts +1 -1
- package/dist/Input.types.d.ts +1 -0
- package/dist/RadioButton.d.ts +1 -1
- package/dist/index.cjs.js +37 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +651 -613
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
- package/messages.json +0 -1
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";
|
|
@@ -60,20 +60,21 @@ const q0 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Fl = 6
|
|
|
60
60
|
state: s,
|
|
61
61
|
errorMessage: u,
|
|
62
62
|
disabled: l,
|
|
63
|
-
|
|
63
|
+
readOnly: c,
|
|
64
|
+
...d
|
|
64
65
|
}) => {
|
|
65
|
-
const [
|
|
66
|
-
t ? `${
|
|
67
|
-
r ? `${
|
|
68
|
-
s === "error" && u ? `${
|
|
66
|
+
const [h] = se(() => a || nn()), p = [
|
|
67
|
+
t ? `${h}-description` : "",
|
|
68
|
+
r ? `${h}-hint-message` : "",
|
|
69
|
+
s === "error" && u ? `${h}-error-message` : ""
|
|
69
70
|
].join(" ");
|
|
70
71
|
return /* @__PURE__ */ Me(No, { isDisabled: l || !1, children: [
|
|
71
72
|
!!e && /* @__PURE__ */ Me(Eo, { children: [
|
|
72
|
-
/* @__PURE__ */ V(Vl, { bold: !0, for:
|
|
73
|
+
/* @__PURE__ */ V(Vl, { bold: !0, for: h, isRequired: n || !1, children: e }),
|
|
73
74
|
t && /* @__PURE__ */ V(
|
|
74
75
|
pe,
|
|
75
76
|
{
|
|
76
|
-
id: `${
|
|
77
|
+
id: `${h}-description`,
|
|
77
78
|
color: "var(--color-secondary-text-on-light, #4a5464)",
|
|
78
79
|
children: t
|
|
79
80
|
}
|
|
@@ -86,19 +87,21 @@ const q0 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Fl = 6
|
|
|
86
87
|
title: e || "Styled input",
|
|
87
88
|
hasIcon: !!(i || "").toString(),
|
|
88
89
|
state: s || "default",
|
|
89
|
-
id:
|
|
90
|
+
id: h,
|
|
90
91
|
disabled: l,
|
|
92
|
+
readOnly: c,
|
|
93
|
+
"data-1p-ignore": !0,
|
|
91
94
|
...t ? {
|
|
92
95
|
"aria-describedby": p
|
|
93
96
|
} : {},
|
|
94
|
-
...
|
|
97
|
+
...d
|
|
95
98
|
}
|
|
96
99
|
),
|
|
97
|
-
r && /* @__PURE__ */ Me(Kr, { id: `${
|
|
100
|
+
r && /* @__PURE__ */ Me(Kr, { id: `${h}-hint-message`, children: [
|
|
98
101
|
/* @__PURE__ */ V(wi, { fill: "var(--color-hint-text-on-light, #68778d)" }),
|
|
99
102
|
/* @__PURE__ */ V(Jr, { color: "var(--color-secondary-text-on-light, #4a5464)", children: r })
|
|
100
103
|
] }),
|
|
101
|
-
s === "error" && u && /* @__PURE__ */ Me(Kr, { id: `${
|
|
104
|
+
s === "error" && u && /* @__PURE__ */ Me(Kr, { id: `${h}-error-message`, children: [
|
|
102
105
|
/* @__PURE__ */ V(wi, { fill: "var(--color-alert-primary, #da3939)" }),
|
|
103
106
|
/* @__PURE__ */ V(Jr, { color: "var(--color-alert-primary, #da3939)", children: u })
|
|
104
107
|
] })
|
|
@@ -168,6 +171,12 @@ const q0 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Fl = 6
|
|
|
168
171
|
}
|
|
169
172
|
}
|
|
170
173
|
|
|
174
|
+
:read-only {
|
|
175
|
+
background-color: var(--color-surface-darken, #f3f5f7);
|
|
176
|
+
border: solid 1px var(--color-disabled-text-on-light);
|
|
177
|
+
color: var(--color-secondary-text-on-light, #4a5464);
|
|
178
|
+
}
|
|
179
|
+
|
|
171
180
|
border-color: ${({ state: e = "default" }) => Wn[e]};
|
|
172
181
|
`, Bl = A.span`
|
|
173
182
|
position: relative;
|
|
@@ -411,26 +420,26 @@ function oc(e) {
|
|
|
411
420
|
return Fo(Qn("", null, null, null, [""], e = To(e), 0, [0], e));
|
|
412
421
|
}
|
|
413
422
|
function Qn(e, t, r, n, a, i, o, s, u) {
|
|
414
|
-
for (var l = 0, c = 0, d = o,
|
|
415
|
-
switch (f =
|
|
423
|
+
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; )
|
|
424
|
+
switch (f = I, I = Oe()) {
|
|
416
425
|
case 40:
|
|
417
|
-
if (f != 108 && me(
|
|
418
|
-
qr(
|
|
426
|
+
if (f != 108 && me(D, d - 1) == 58) {
|
|
427
|
+
qr(D += j(Jn(I), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
419
428
|
break;
|
|
420
429
|
}
|
|
421
430
|
case 34:
|
|
422
431
|
case 39:
|
|
423
432
|
case 91:
|
|
424
|
-
|
|
433
|
+
D += Jn(I);
|
|
425
434
|
break;
|
|
426
435
|
case 9:
|
|
427
436
|
case 10:
|
|
428
437
|
case 13:
|
|
429
438
|
case 32:
|
|
430
|
-
|
|
439
|
+
D += nc(f);
|
|
431
440
|
break;
|
|
432
441
|
case 92:
|
|
433
|
-
|
|
442
|
+
D += rc($n() - 1, 7);
|
|
434
443
|
continue;
|
|
435
444
|
case 47:
|
|
436
445
|
switch (at()) {
|
|
@@ -439,70 +448,70 @@ function Qn(e, t, r, n, a, i, o, s, u) {
|
|
|
439
448
|
Bn(sc(ac(Oe(), $n()), t, r), u);
|
|
440
449
|
break;
|
|
441
450
|
default:
|
|
442
|
-
|
|
451
|
+
D += "/";
|
|
443
452
|
}
|
|
444
453
|
break;
|
|
445
454
|
case 123 * m:
|
|
446
|
-
s[l++] = nt(
|
|
455
|
+
s[l++] = nt(D) * v;
|
|
447
456
|
case 125 * m:
|
|
448
457
|
case 59:
|
|
449
458
|
case 0:
|
|
450
|
-
switch (
|
|
459
|
+
switch (I) {
|
|
451
460
|
case 0:
|
|
452
461
|
case 125:
|
|
453
462
|
g = 0;
|
|
454
463
|
case 59 + c:
|
|
455
|
-
v == -1 && (
|
|
464
|
+
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
465
|
break;
|
|
457
466
|
case 59:
|
|
458
|
-
|
|
467
|
+
D += ";";
|
|
459
468
|
default:
|
|
460
|
-
if (Bn(
|
|
469
|
+
if (Bn(M = Di(D, t, r, l, c, a, s, y, x = [], b = [], d), i), I === 123)
|
|
461
470
|
if (c === 0)
|
|
462
|
-
Qn(
|
|
471
|
+
Qn(D, t, M, M, x, i, d, s, b);
|
|
463
472
|
else
|
|
464
|
-
switch (
|
|
473
|
+
switch (h === 99 && me(D, 3) === 110 ? 100 : h) {
|
|
465
474
|
case 100:
|
|
466
475
|
case 108:
|
|
467
476
|
case 109:
|
|
468
477
|
case 115:
|
|
469
|
-
Qn(e,
|
|
478
|
+
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
479
|
break;
|
|
471
480
|
default:
|
|
472
|
-
Qn(
|
|
481
|
+
Qn(D, M, M, M, [""], b, 0, s, b);
|
|
473
482
|
}
|
|
474
483
|
}
|
|
475
|
-
l = c =
|
|
484
|
+
l = c = p = 0, m = v = 1, y = D = "", d = o;
|
|
476
485
|
break;
|
|
477
486
|
case 58:
|
|
478
|
-
d = 1 + nt(
|
|
487
|
+
d = 1 + nt(D), p = f;
|
|
479
488
|
default:
|
|
480
489
|
if (m < 1) {
|
|
481
|
-
if (
|
|
490
|
+
if (I == 123)
|
|
482
491
|
--m;
|
|
483
|
-
else if (
|
|
492
|
+
else if (I == 125 && m++ == 0 && tc() == 125)
|
|
484
493
|
continue;
|
|
485
494
|
}
|
|
486
|
-
switch (
|
|
495
|
+
switch (D += vr(I), I * m) {
|
|
487
496
|
case 38:
|
|
488
|
-
v = c > 0 ? 1 : (
|
|
497
|
+
v = c > 0 ? 1 : (D += "\f", -1);
|
|
489
498
|
break;
|
|
490
499
|
case 44:
|
|
491
|
-
s[l++] = (nt(
|
|
500
|
+
s[l++] = (nt(D) - 1) * v, v = 1;
|
|
492
501
|
break;
|
|
493
502
|
case 64:
|
|
494
|
-
at() === 45 && (
|
|
503
|
+
at() === 45 && (D += Jn(Oe())), h = at(), c = d = nt(y = D += ic($n())), I++;
|
|
495
504
|
break;
|
|
496
505
|
case 45:
|
|
497
|
-
f === 45 && nt(
|
|
506
|
+
f === 45 && nt(D) == 2 && (m = 0);
|
|
498
507
|
}
|
|
499
508
|
}
|
|
500
509
|
return i;
|
|
501
510
|
}
|
|
502
511
|
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
|
-
(
|
|
512
|
+
for (var d = a - 1, h = a === 0 ? i : [""], p = ka(h), f = 0, m = 0, g = 0; f < n; ++f)
|
|
513
|
+
for (var v = 0, I = wn(e, d + 1, d = $l(m = o[f])), y = e; v < p; ++v)
|
|
514
|
+
(y = Oo(m > 0 ? h[v] + " " + I : j(I, /&\f/g, h[v]))) && (u[g++] = y);
|
|
506
515
|
return yr(e, t, r, a === 0 ? Da : s, u, l, c);
|
|
507
516
|
}
|
|
508
517
|
function sc(e, t, r) {
|
|
@@ -819,15 +828,15 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
819
828
|
m.root || (m.return ? c.insert(m.return) : m.value && m.type !== wa && c.insert(m.value + "{}"));
|
|
820
829
|
} : cc(function(m) {
|
|
821
830
|
c.insert(m);
|
|
822
|
-
})],
|
|
823
|
-
return $t(oc(g),
|
|
831
|
+
})], h = lc(l.concat(a, d)), p = function(g) {
|
|
832
|
+
return $t(oc(g), h);
|
|
824
833
|
};
|
|
825
|
-
u = function(g, v,
|
|
826
|
-
c =
|
|
834
|
+
u = function(g, v, I, y) {
|
|
835
|
+
c = I, process.env.NODE_ENV !== "production" && v.map !== void 0 && (c = {
|
|
827
836
|
insert: function(b) {
|
|
828
|
-
|
|
837
|
+
I.insert(b + v.map);
|
|
829
838
|
}
|
|
830
|
-
}),
|
|
839
|
+
}), p(g ? g + "{" + v.styles + "}" : v.styles), y && (f.inserted[v.name] = !0);
|
|
831
840
|
};
|
|
832
841
|
}
|
|
833
842
|
var f = {
|
|
@@ -883,12 +892,12 @@ var ta = { exports: {} }, U = {};
|
|
|
883
892
|
var Ei;
|
|
884
893
|
function kc() {
|
|
885
894
|
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
|
|
895
|
+
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;
|
|
896
|
+
function y(N) {
|
|
888
897
|
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 ===
|
|
898
|
+
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
899
|
}
|
|
891
|
-
function
|
|
900
|
+
function x(N) {
|
|
892
901
|
if (typeof N == "object" && N !== null) {
|
|
893
902
|
var dn = N.$$typeof;
|
|
894
903
|
switch (dn) {
|
|
@@ -908,7 +917,7 @@ function kc() {
|
|
|
908
917
|
case s:
|
|
909
918
|
case c:
|
|
910
919
|
case f:
|
|
911
|
-
case
|
|
920
|
+
case p:
|
|
912
921
|
case o:
|
|
913
922
|
return Rn;
|
|
914
923
|
default:
|
|
@@ -920,47 +929,47 @@ function kc() {
|
|
|
920
929
|
}
|
|
921
930
|
}
|
|
922
931
|
}
|
|
923
|
-
var b = u,
|
|
932
|
+
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
933
|
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) ||
|
|
934
|
+
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
935
|
}
|
|
927
936
|
function Ve(N) {
|
|
928
|
-
return
|
|
937
|
+
return x(N) === l;
|
|
929
938
|
}
|
|
930
939
|
function ut(N) {
|
|
931
|
-
return
|
|
940
|
+
return x(N) === s;
|
|
932
941
|
}
|
|
933
942
|
function he(N) {
|
|
934
|
-
return
|
|
943
|
+
return x(N) === o;
|
|
935
944
|
}
|
|
936
945
|
function ve(N) {
|
|
937
946
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
938
947
|
}
|
|
939
948
|
function qe(N) {
|
|
940
|
-
return
|
|
949
|
+
return x(N) === c;
|
|
941
950
|
}
|
|
942
951
|
function et(N) {
|
|
943
|
-
return
|
|
952
|
+
return x(N) === n;
|
|
944
953
|
}
|
|
945
954
|
function Te(N) {
|
|
946
|
-
return
|
|
955
|
+
return x(N) === f;
|
|
947
956
|
}
|
|
948
957
|
function Fe(N) {
|
|
949
|
-
return
|
|
958
|
+
return x(N) === p;
|
|
950
959
|
}
|
|
951
960
|
function St(N) {
|
|
952
|
-
return
|
|
961
|
+
return x(N) === r;
|
|
953
962
|
}
|
|
954
963
|
function Vt(N) {
|
|
955
|
-
return
|
|
964
|
+
return x(N) === i;
|
|
956
965
|
}
|
|
957
966
|
function Tr(N) {
|
|
958
|
-
return
|
|
967
|
+
return x(N) === a;
|
|
959
968
|
}
|
|
960
969
|
function Gn(N) {
|
|
961
|
-
return
|
|
970
|
+
return x(N) === d;
|
|
962
971
|
}
|
|
963
|
-
U.AsyncMode = b, U.ConcurrentMode =
|
|
972
|
+
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
973
|
}()), U;
|
|
965
974
|
}
|
|
966
975
|
var $ = {};
|
|
@@ -977,11 +986,11 @@ function Sc() {
|
|
|
977
986
|
if (Ai)
|
|
978
987
|
return $;
|
|
979
988
|
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
|
|
989
|
+
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;
|
|
990
|
+
function y(b) {
|
|
982
991
|
if (typeof b == "object" && b !== null) {
|
|
983
|
-
var
|
|
984
|
-
switch (
|
|
992
|
+
var M = b.$$typeof;
|
|
993
|
+
switch (M) {
|
|
985
994
|
case t:
|
|
986
995
|
switch (b = b.type, b) {
|
|
987
996
|
case u:
|
|
@@ -996,48 +1005,48 @@ function Sc() {
|
|
|
996
1005
|
case s:
|
|
997
1006
|
case c:
|
|
998
1007
|
case f:
|
|
999
|
-
case
|
|
1008
|
+
case p:
|
|
1000
1009
|
case o:
|
|
1001
1010
|
return b;
|
|
1002
1011
|
default:
|
|
1003
|
-
return
|
|
1012
|
+
return M;
|
|
1004
1013
|
}
|
|
1005
1014
|
}
|
|
1006
1015
|
case r:
|
|
1007
|
-
return
|
|
1016
|
+
return M;
|
|
1008
1017
|
}
|
|
1009
1018
|
}
|
|
1010
1019
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
1020
|
+
function x(b) {
|
|
1021
|
+
return y(b) === l;
|
|
1013
1022
|
}
|
|
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
|
|
1023
|
+
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) {
|
|
1024
|
+
return x(b) || y(b) === u;
|
|
1025
|
+
}, $.isConcurrentMode = x, $.isContextConsumer = function(b) {
|
|
1026
|
+
return y(b) === s;
|
|
1018
1027
|
}, $.isContextProvider = function(b) {
|
|
1019
|
-
return
|
|
1028
|
+
return y(b) === o;
|
|
1020
1029
|
}, $.isElement = function(b) {
|
|
1021
1030
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
1022
1031
|
}, $.isForwardRef = function(b) {
|
|
1023
|
-
return
|
|
1032
|
+
return y(b) === c;
|
|
1024
1033
|
}, $.isFragment = function(b) {
|
|
1025
|
-
return
|
|
1034
|
+
return y(b) === n;
|
|
1026
1035
|
}, $.isLazy = function(b) {
|
|
1027
|
-
return
|
|
1036
|
+
return y(b) === f;
|
|
1028
1037
|
}, $.isMemo = function(b) {
|
|
1029
|
-
return
|
|
1038
|
+
return y(b) === p;
|
|
1030
1039
|
}, $.isPortal = function(b) {
|
|
1031
|
-
return
|
|
1040
|
+
return y(b) === r;
|
|
1032
1041
|
}, $.isProfiler = function(b) {
|
|
1033
|
-
return
|
|
1042
|
+
return y(b) === i;
|
|
1034
1043
|
}, $.isStrictMode = function(b) {
|
|
1035
|
-
return
|
|
1044
|
+
return y(b) === a;
|
|
1036
1045
|
}, $.isSuspense = function(b) {
|
|
1037
|
-
return
|
|
1046
|
+
return y(b) === d;
|
|
1038
1047
|
}, $.isValidElementType = function(b) {
|
|
1039
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === l || b === i || b === a || b === d || b ===
|
|
1040
|
-
}, $.typeOf =
|
|
1048
|
+
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);
|
|
1049
|
+
}, $.typeOf = y, $;
|
|
1041
1050
|
}
|
|
1042
1051
|
process.env.NODE_ENV === "production" ? ta.exports = Sc() : ta.exports = kc();
|
|
1043
1052
|
var Ec = ta.exports, Wo = Ec, Ac = {
|
|
@@ -1230,9 +1239,9 @@ function Mn(e, t, r) {
|
|
|
1230
1239
|
}
|
|
1231
1240
|
case "string":
|
|
1232
1241
|
if (process.env.NODE_ENV !== "production") {
|
|
1233
|
-
var s = [], u = r.replace(Vo, function(c, d,
|
|
1234
|
-
var
|
|
1235
|
-
return s.push("const " +
|
|
1242
|
+
var s = [], u = r.replace(Vo, function(c, d, h) {
|
|
1243
|
+
var p = "animation" + s.length;
|
|
1244
|
+
return s.push("const " + p + " = keyframes`" + h.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}";
|
|
1236
1245
|
});
|
|
1237
1246
|
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
1247
|
`) + `
|
|
@@ -1292,8 +1301,8 @@ var He, kn = function(t, r, n) {
|
|
|
1292
1301
|
for (var s = 1; s < t.length; s++)
|
|
1293
1302
|
i += Mn(n, r, t[s]), a && (process.env.NODE_ENV !== "production" && o[s] === void 0 && console.error(Ni), i += o[s]);
|
|
1294
1303
|
var u;
|
|
1295
|
-
process.env.NODE_ENV !== "production" && (i = i.replace(Ho, function(
|
|
1296
|
-
return u =
|
|
1304
|
+
process.env.NODE_ENV !== "production" && (i = i.replace(Ho, function(h) {
|
|
1305
|
+
return u = h, "";
|
|
1297
1306
|
})), Pi.lastIndex = 0;
|
|
1298
1307
|
for (var l = "", c; (c = Pi.exec(i)) !== null; )
|
|
1299
1308
|
l += "-" + // $FlowFixMe we know it's not null
|
|
@@ -1620,8 +1629,8 @@ var td = function(t) {
|
|
|
1620
1629
|
throw new Error("css can only be used during render");
|
|
1621
1630
|
for (var l = arguments.length, c = new Array(l), d = 0; d < l; d++)
|
|
1622
1631
|
c[d] = arguments[d];
|
|
1623
|
-
var
|
|
1624
|
-
return n.push(
|
|
1632
|
+
var h = kn(c, t.registered);
|
|
1633
|
+
return n.push(h), Ea(t, h, !1), t.key + "-" + h.name;
|
|
1625
1634
|
}, i = function() {
|
|
1626
1635
|
if (r && process.env.NODE_ENV !== "production")
|
|
1627
1636
|
throw new Error("cx can only be used during render");
|
|
@@ -1899,7 +1908,7 @@ function Cd(e) {
|
|
|
1899
1908
|
};
|
|
1900
1909
|
if (!r || !r.offsetParent)
|
|
1901
1910
|
return c;
|
|
1902
|
-
var d = l.getBoundingClientRect(),
|
|
1911
|
+
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
1912
|
switch (a) {
|
|
1904
1913
|
case "auto":
|
|
1905
1914
|
case "bottom":
|
|
@@ -1922,10 +1931,10 @@ function Cd(e) {
|
|
|
1922
1931
|
};
|
|
1923
1932
|
}
|
|
1924
1933
|
if (a === "auto" || o) {
|
|
1925
|
-
var
|
|
1926
|
-
return Ee >= n && (
|
|
1934
|
+
var q = t, Ee = o ? D : E;
|
|
1935
|
+
return Ee >= n && (q = Math.min(Ee - b - u.controlHeight, t)), {
|
|
1927
1936
|
placement: "top",
|
|
1928
|
-
maxHeight:
|
|
1937
|
+
maxHeight: q
|
|
1929
1938
|
};
|
|
1930
1939
|
}
|
|
1931
1940
|
if (a === "bottom")
|
|
@@ -1935,7 +1944,7 @@ function Cd(e) {
|
|
|
1935
1944
|
};
|
|
1936
1945
|
break;
|
|
1937
1946
|
case "top":
|
|
1938
|
-
if (
|
|
1947
|
+
if (D >= m)
|
|
1939
1948
|
return {
|
|
1940
1949
|
placement: "top",
|
|
1941
1950
|
maxHeight: t
|
|
@@ -1945,9 +1954,9 @@ function Cd(e) {
|
|
|
1945
1954
|
placement: "top",
|
|
1946
1955
|
maxHeight: t
|
|
1947
1956
|
};
|
|
1948
|
-
if (!o && E >= n || o &&
|
|
1957
|
+
if (!o && E >= n || o && D >= n) {
|
|
1949
1958
|
var xe = t;
|
|
1950
|
-
return (!o && E >= n || o &&
|
|
1959
|
+
return (!o && E >= n || o && D >= n) && (xe = o ? D - M : E - M), i && Vn(l, ie, oe), {
|
|
1951
1960
|
placement: "top",
|
|
1952
1961
|
maxHeight: xe
|
|
1953
1962
|
};
|
|
@@ -1989,9 +1998,9 @@ var oa = function(t) {
|
|
|
1989
1998
|
maxHeight: n.props.maxMenuHeight,
|
|
1990
1999
|
placement: null
|
|
1991
2000
|
}, n.context = void 0, n.getPlacement = function(s) {
|
|
1992
|
-
var u = n.props, l = u.minMenuHeight, c = u.maxMenuHeight, d = u.menuPlacement,
|
|
2001
|
+
var u = n.props, l = u.minMenuHeight, c = u.maxMenuHeight, d = u.menuPlacement, h = u.menuPosition, p = u.menuShouldScrollIntoView, f = u.theme;
|
|
1993
2002
|
if (s) {
|
|
1994
|
-
var m =
|
|
2003
|
+
var m = h === "fixed", g = p && !m, v = Cd({
|
|
1995
2004
|
maxHeight: c,
|
|
1996
2005
|
menuEl: s,
|
|
1997
2006
|
minHeight: l,
|
|
@@ -1999,8 +2008,8 @@ var oa = function(t) {
|
|
|
1999
2008
|
shouldScroll: g,
|
|
2000
2009
|
isFixedPosition: m,
|
|
2001
2010
|
theme: f
|
|
2002
|
-
}),
|
|
2003
|
-
|
|
2011
|
+
}), I = n.context.getPortalPlacement;
|
|
2012
|
+
I && I(v), n.setState(v);
|
|
2004
2013
|
}
|
|
2005
2014
|
}, n.getUpdatedProps = function() {
|
|
2006
2015
|
var s = n.props.menuPlacement, u = n.state.placement || oa(s);
|
|
@@ -2114,15 +2123,15 @@ var Ad = function(t) {
|
|
|
2114
2123
|
return Ga(r, [{
|
|
2115
2124
|
key: "render",
|
|
2116
2125
|
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,
|
|
2126
|
+
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
2127
|
if (!i && !f || !u)
|
|
2119
2128
|
return null;
|
|
2120
|
-
var m = this.state.placement || oa(d), g = md(u), v = f ? 0 : window.pageYOffset,
|
|
2121
|
-
offset:
|
|
2122
|
-
position:
|
|
2129
|
+
var m = this.state.placement || oa(d), g = md(u), v = f ? 0 : window.pageYOffset, I = g[m] + v, y = {
|
|
2130
|
+
offset: I,
|
|
2131
|
+
position: h,
|
|
2123
2132
|
rect: g
|
|
2124
|
-
},
|
|
2125
|
-
css:
|
|
2133
|
+
}, x = P("div", G({
|
|
2134
|
+
css: p("menuPortal", y),
|
|
2126
2135
|
className: l({
|
|
2127
2136
|
"menu-portal": !0
|
|
2128
2137
|
}, s)
|
|
@@ -2131,7 +2140,7 @@ var Ad = function(t) {
|
|
|
2131
2140
|
value: {
|
|
2132
2141
|
getPortalPlacement: this.getPortalPlacement
|
|
2133
2142
|
}
|
|
2134
|
-
}, i ? /* @__PURE__ */ Cl(
|
|
2143
|
+
}, i ? /* @__PURE__ */ Cl(x, i) : x);
|
|
2135
2144
|
}
|
|
2136
2145
|
}]), r;
|
|
2137
2146
|
}(ya), _d = function(t) {
|
|
@@ -2507,10 +2516,10 @@ function ff(e) {
|
|
|
2507
2516
|
}));
|
|
2508
2517
|
}
|
|
2509
2518
|
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,
|
|
2519
|
+
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
2520
|
return P(zo, null, function(m) {
|
|
2512
2521
|
var g = m.css, v = m.cx;
|
|
2513
|
-
return P(
|
|
2522
|
+
return P(h, {
|
|
2514
2523
|
data: o,
|
|
2515
2524
|
innerProps: re({
|
|
2516
2525
|
className: v(g(s("multiValue", t)), i({
|
|
@@ -2519,7 +2528,7 @@ var hf = function(t) {
|
|
|
2519
2528
|
}, n))
|
|
2520
2529
|
}, u),
|
|
2521
2530
|
selectProps: d
|
|
2522
|
-
}, P(
|
|
2531
|
+
}, P(p, {
|
|
2523
2532
|
data: o,
|
|
2524
2533
|
innerProps: {
|
|
2525
2534
|
className: v(g(s("multiValueLabel", t)), i({
|
|
@@ -2687,18 +2696,18 @@ function Rr(e, t) {
|
|
|
2687
2696
|
}
|
|
2688
2697
|
var Df = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
2689
2698
|
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,
|
|
2699
|
+
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
2700
|
typeof l == "function" && l(Ae, Ke), J(Ae);
|
|
2692
|
-
}, [l]), ie =
|
|
2701
|
+
}, [l]), ie = Q(function(Ae, Ke) {
|
|
2693
2702
|
var Ve;
|
|
2694
|
-
typeof c == "function" && (Ve = c(Ae, Ke)),
|
|
2695
|
-
}, [c]), oe =
|
|
2696
|
-
typeof
|
|
2697
|
-
}, [
|
|
2698
|
-
typeof d == "function" && d(),
|
|
2699
|
-
}, [d]),
|
|
2703
|
+
typeof c == "function" && (Ve = c(Ae, Ke)), I(Ve !== void 0 ? Ve : Ae);
|
|
2704
|
+
}, [c]), oe = Q(function() {
|
|
2705
|
+
typeof h == "function" && h(), M(!0);
|
|
2706
|
+
}, [h]), F = Q(function() {
|
|
2707
|
+
typeof d == "function" && d(), M(!1);
|
|
2708
|
+
}, [d]), q = s !== void 0 ? s : v, Ee = u !== void 0 ? u : b, xe = p !== void 0 ? p : E;
|
|
2700
2709
|
return re(re({}, f), {}, {
|
|
2701
|
-
inputValue:
|
|
2710
|
+
inputValue: q,
|
|
2702
2711
|
menuIsOpen: Ee,
|
|
2703
2712
|
onChange: z,
|
|
2704
2713
|
onInputChange: ie,
|
|
@@ -2799,8 +2808,8 @@ var Pf = process.env.NODE_ENV === "production" ? {
|
|
|
2799
2808
|
if (r === "value" && s)
|
|
2800
2809
|
return "value ".concat(o, " focused, ").concat(c(s, n), ".");
|
|
2801
2810
|
if (r === "menu") {
|
|
2802
|
-
var d = u ? " disabled" : "",
|
|
2803
|
-
return "option ".concat(o, " ").concat(
|
|
2811
|
+
var d = u ? " disabled" : "", h = "".concat(l ? "selected" : "focused").concat(d);
|
|
2812
|
+
return "option ".concat(o, " ").concat(h, ", ").concat(c(a, n), ".");
|
|
2804
2813
|
}
|
|
2805
2814
|
return "";
|
|
2806
2815
|
},
|
|
@@ -2809,67 +2818,67 @@ var Pf = process.env.NODE_ENV === "production" ? {
|
|
|
2809
2818
|
return "".concat(n).concat(r ? " for search term " + r : "", ".");
|
|
2810
2819
|
}
|
|
2811
2820
|
}, 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,
|
|
2821
|
+
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
2822
|
return re(re({}, Tf), c || {});
|
|
2814
|
-
}, [c]),
|
|
2823
|
+
}, [c]), D = We(function() {
|
|
2815
2824
|
var F = "";
|
|
2816
|
-
if (r &&
|
|
2817
|
-
var
|
|
2825
|
+
if (r && M.onChange) {
|
|
2826
|
+
var q = r.option, Ee = r.options, xe = r.removedValue, Ae = r.removedValues, Ke = r.value, Ve = function(Fe) {
|
|
2818
2827
|
return Array.isArray(Fe) ? null : Fe;
|
|
2819
|
-
}, ut = xe ||
|
|
2828
|
+
}, ut = xe || q || Ve(Ke), he = ut ? d(ut) : "", ve = Ee || Ae || void 0, qe = ve ? ve.map(d) : [], et = re({
|
|
2820
2829
|
// multiSelected items are usually items that have already been selected
|
|
2821
2830
|
// or set by the user as a default value so we assume they are not disabled
|
|
2822
2831
|
isDisabled: ut && f(ut, s),
|
|
2823
2832
|
label: he,
|
|
2824
2833
|
labels: qe
|
|
2825
2834
|
}, r);
|
|
2826
|
-
F =
|
|
2835
|
+
F = M.onChange(et);
|
|
2827
2836
|
}
|
|
2828
2837
|
return F;
|
|
2829
|
-
}, [r,
|
|
2830
|
-
var F = "",
|
|
2831
|
-
if (
|
|
2838
|
+
}, [r, M, f, s, d]), T = We(function() {
|
|
2839
|
+
var F = "", q = n || a, Ee = !!(n && s && s.includes(n));
|
|
2840
|
+
if (q && M.onFocus) {
|
|
2832
2841
|
var xe = {
|
|
2833
|
-
focused:
|
|
2834
|
-
label: d(
|
|
2835
|
-
isDisabled: f(
|
|
2842
|
+
focused: q,
|
|
2843
|
+
label: d(q),
|
|
2844
|
+
isDisabled: f(q, s),
|
|
2836
2845
|
isSelected: Ee,
|
|
2837
2846
|
options: v,
|
|
2838
|
-
context:
|
|
2847
|
+
context: q === n ? "menu" : "value",
|
|
2839
2848
|
selectValue: s
|
|
2840
2849
|
};
|
|
2841
|
-
F =
|
|
2850
|
+
F = M.onFocus(xe);
|
|
2842
2851
|
}
|
|
2843
2852
|
return F;
|
|
2844
|
-
}, [n, a, d, f,
|
|
2853
|
+
}, [n, a, d, f, M, v, s]), E = We(function() {
|
|
2845
2854
|
var F = "";
|
|
2846
|
-
if (g && v.length &&
|
|
2847
|
-
var
|
|
2855
|
+
if (g && v.length && M.onFilter) {
|
|
2856
|
+
var q = I({
|
|
2848
2857
|
count: i.length
|
|
2849
2858
|
});
|
|
2850
|
-
F =
|
|
2851
|
-
inputValue:
|
|
2852
|
-
resultsMessage:
|
|
2859
|
+
F = M.onFilter({
|
|
2860
|
+
inputValue: h,
|
|
2861
|
+
resultsMessage: q
|
|
2853
2862
|
});
|
|
2854
2863
|
}
|
|
2855
2864
|
return F;
|
|
2856
|
-
}, [i,
|
|
2865
|
+
}, [i, h, g, M, v, I]), J = We(function() {
|
|
2857
2866
|
var F = "";
|
|
2858
|
-
if (
|
|
2859
|
-
var
|
|
2860
|
-
F =
|
|
2861
|
-
"aria-label":
|
|
2862
|
-
context:
|
|
2867
|
+
if (M.guidance) {
|
|
2868
|
+
var q = a ? "value" : g ? "menu" : "input";
|
|
2869
|
+
F = M.guidance({
|
|
2870
|
+
"aria-label": x,
|
|
2871
|
+
context: q,
|
|
2863
2872
|
isDisabled: n && f(n, s),
|
|
2864
|
-
isMulti:
|
|
2873
|
+
isMulti: p,
|
|
2865
2874
|
isSearchable: m,
|
|
2866
|
-
tabSelectsValue:
|
|
2875
|
+
tabSelectsValue: y
|
|
2867
2876
|
});
|
|
2868
2877
|
}
|
|
2869
2878
|
return F;
|
|
2870
|
-
}, [
|
|
2879
|
+
}, [x, n, a, p, f, m, g, M, s, y]), z = "".concat(T, " ").concat(E, " ").concat(J), ie = P(Cn, null, P("span", {
|
|
2871
2880
|
id: "aria-selection"
|
|
2872
|
-
},
|
|
2881
|
+
}, D), P("span", {
|
|
2873
2882
|
id: "aria-context"
|
|
2874
2883
|
}, z)), oe = (r == null ? void 0 : r.action) === "initial-input-focus";
|
|
2875
2884
|
return P(Cn, null, P(ji, {
|
|
@@ -3191,28 +3200,28 @@ var Lf = function(t) {
|
|
|
3191
3200
|
t.preventDefault(), t.stopPropagation();
|
|
3192
3201
|
};
|
|
3193
3202
|
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 =
|
|
3203
|
+
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
3204
|
if (l.current !== null) {
|
|
3196
|
-
var
|
|
3197
|
-
T > v && o.current && (n && n(g), o.current = !1),
|
|
3205
|
+
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;
|
|
3206
|
+
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
3207
|
}
|
|
3199
|
-
}, [r, n, a, i]), d =
|
|
3208
|
+
}, [r, n, a, i]), d = Q(function(g) {
|
|
3200
3209
|
c(g, g.deltaY);
|
|
3201
|
-
}, [c]),
|
|
3210
|
+
}, [c]), h = Q(function(g) {
|
|
3202
3211
|
u.current = g.changedTouches[0].clientY;
|
|
3203
|
-
}, []),
|
|
3212
|
+
}, []), p = Q(function(g) {
|
|
3204
3213
|
var v = u.current - g.changedTouches[0].clientY;
|
|
3205
3214
|
c(g, v);
|
|
3206
|
-
}, [c]), f =
|
|
3215
|
+
}, [c]), f = Q(function(g) {
|
|
3207
3216
|
if (g) {
|
|
3208
3217
|
var v = bd ? {
|
|
3209
3218
|
passive: !1
|
|
3210
3219
|
} : !1;
|
|
3211
|
-
g.addEventListener("wheel", d, v), g.addEventListener("touchstart",
|
|
3220
|
+
g.addEventListener("wheel", d, v), g.addEventListener("touchstart", h, v), g.addEventListener("touchmove", p, v);
|
|
3212
3221
|
}
|
|
3213
|
-
}, [
|
|
3214
|
-
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart",
|
|
3215
|
-
}, [
|
|
3222
|
+
}, [p, h, d]), m = Q(function(g) {
|
|
3223
|
+
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", h, !1), g.removeEventListener("touchmove", p, !1));
|
|
3224
|
+
}, [p, h, d]);
|
|
3216
3225
|
return Ze(function() {
|
|
3217
3226
|
if (t) {
|
|
3218
3227
|
var g = l.current;
|
|
@@ -3249,27 +3258,27 @@ var eo = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
3249
3258
|
passive: !1
|
|
3250
3259
|
};
|
|
3251
3260
|
function Zf(e) {
|
|
3252
|
-
var t = e.isEnabled, r = e.accountForScrollbars, n = r === void 0 ? !0 : r, a = _e({}), i = _e(null), o =
|
|
3261
|
+
var t = e.isEnabled, r = e.accountForScrollbars, n = r === void 0 ? !0 : r, a = _e({}), i = _e(null), o = Q(function(u) {
|
|
3253
3262
|
if (eo) {
|
|
3254
3263
|
var l = document.body, c = l && l.style;
|
|
3255
3264
|
if (n && Ui.forEach(function(f) {
|
|
3256
3265
|
var m = c && c[f];
|
|
3257
3266
|
a.current[f] = m;
|
|
3258
3267
|
}), n && hn < 1) {
|
|
3259
|
-
var d = parseInt(a.current.paddingRight, 10) || 0,
|
|
3268
|
+
var d = parseInt(a.current.paddingRight, 10) || 0, h = document.body ? document.body.clientWidth : 0, p = window.innerWidth - h + d || 0;
|
|
3260
3269
|
Object.keys($i).forEach(function(f) {
|
|
3261
3270
|
var m = $i[f];
|
|
3262
3271
|
c && (c[f] = m);
|
|
3263
|
-
}), c && (c.paddingRight = "".concat(
|
|
3272
|
+
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
3264
3273
|
}
|
|
3265
3274
|
l && qi() && (l.addEventListener("touchmove", Ji, Lt), u && (u.addEventListener("touchstart", Ki, Lt), u.addEventListener("touchmove", Qi, Lt))), hn += 1;
|
|
3266
3275
|
}
|
|
3267
|
-
}, [n]), s =
|
|
3276
|
+
}, [n]), s = Q(function(u) {
|
|
3268
3277
|
if (eo) {
|
|
3269
3278
|
var l = document.body, c = l && l.style;
|
|
3270
3279
|
hn = Math.max(hn - 1, 0), n && hn < 1 && Ui.forEach(function(d) {
|
|
3271
|
-
var
|
|
3272
|
-
c && (c[d] =
|
|
3280
|
+
var h = a.current[d];
|
|
3281
|
+
c && (c[d] = h);
|
|
3273
3282
|
}), l && qi() && (l.removeEventListener("touchmove", Ji, Lt), u && (u.removeEventListener("touchstart", Ki, Lt), u.removeEventListener("touchmove", Qi, Lt)));
|
|
3274
3283
|
}
|
|
3275
3284
|
}, [n]);
|
|
@@ -3307,8 +3316,8 @@ function Uf(e) {
|
|
|
3307
3316
|
onTopLeave: u
|
|
3308
3317
|
}), c = Zf({
|
|
3309
3318
|
isEnabled: r
|
|
3310
|
-
}), d = function(
|
|
3311
|
-
l(
|
|
3319
|
+
}), d = function(p) {
|
|
3320
|
+
l(p), c(p);
|
|
3312
3321
|
};
|
|
3313
3322
|
return P(Cn, null, r && P("div", {
|
|
3314
3323
|
onClick: jf,
|
|
@@ -3547,13 +3556,13 @@ var ys = function(t) {
|
|
|
3547
3556
|
option: s
|
|
3548
3557
|
});
|
|
3549
3558
|
}, 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),
|
|
3559
|
+
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
3560
|
if (d) {
|
|
3552
|
-
var
|
|
3561
|
+
var p = a.getOptionValue(i);
|
|
3553
3562
|
a.setValue(c.filter(function(f) {
|
|
3554
|
-
return a.getOptionValue(f) !==
|
|
3563
|
+
return a.getOptionValue(f) !== p;
|
|
3555
3564
|
}), "deselect-option", i);
|
|
3556
|
-
} else if (!
|
|
3565
|
+
} else if (!h)
|
|
3557
3566
|
u ? a.setValue([].concat(ls(c), [i]), "select-option", i) : a.setValue(i, "select-option");
|
|
3558
3567
|
else {
|
|
3559
3568
|
a.ariaOnChange(i, {
|
|
@@ -3691,8 +3700,8 @@ var ys = function(t) {
|
|
|
3691
3700
|
}, a.shouldHideSelectedOptions = function() {
|
|
3692
3701
|
return ys(a.props);
|
|
3693
3702
|
}, 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 (!
|
|
3703
|
+
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;
|
|
3704
|
+
if (!h && !(typeof f == "function" && (f(i), i.defaultPrevented))) {
|
|
3696
3705
|
switch (a.blockOptionHover = !0, i.key) {
|
|
3697
3706
|
case "ArrowLeft":
|
|
3698
3707
|
if (!s || c)
|
|
@@ -3708,8 +3717,8 @@ var ys = function(t) {
|
|
|
3708
3717
|
case "Backspace":
|
|
3709
3718
|
if (c)
|
|
3710
3719
|
return;
|
|
3711
|
-
if (
|
|
3712
|
-
a.removeValue(
|
|
3720
|
+
if (y)
|
|
3721
|
+
a.removeValue(y);
|
|
3713
3722
|
else {
|
|
3714
3723
|
if (!u)
|
|
3715
3724
|
return;
|
|
@@ -3717,24 +3726,24 @@ var ys = function(t) {
|
|
|
3717
3726
|
}
|
|
3718
3727
|
break;
|
|
3719
3728
|
case "Tab":
|
|
3720
|
-
if (a.isComposing || i.shiftKey || !
|
|
3729
|
+
if (a.isComposing || i.shiftKey || !p || !m || !I || // don't capture the event if the menu opens on focus and the focused
|
|
3721
3730
|
// option is already selected; it breaks the flow of navigation
|
|
3722
|
-
g && a.isOptionSelected(
|
|
3731
|
+
g && a.isOptionSelected(I, x))
|
|
3723
3732
|
return;
|
|
3724
|
-
a.selectOption(
|
|
3733
|
+
a.selectOption(I);
|
|
3725
3734
|
break;
|
|
3726
3735
|
case "Enter":
|
|
3727
3736
|
if (i.keyCode === 229)
|
|
3728
3737
|
break;
|
|
3729
|
-
if (
|
|
3730
|
-
if (!
|
|
3738
|
+
if (p) {
|
|
3739
|
+
if (!I || a.isComposing)
|
|
3731
3740
|
return;
|
|
3732
|
-
a.selectOption(
|
|
3741
|
+
a.selectOption(I);
|
|
3733
3742
|
break;
|
|
3734
3743
|
}
|
|
3735
3744
|
return;
|
|
3736
3745
|
case "Escape":
|
|
3737
|
-
|
|
3746
|
+
p ? (a.setState({
|
|
3738
3747
|
inputIsHiddenAfterUpdate: !1
|
|
3739
3748
|
}), a.onInputChange("", {
|
|
3740
3749
|
action: "menu-close",
|
|
@@ -3744,37 +3753,37 @@ var ys = function(t) {
|
|
|
3744
3753
|
case " ":
|
|
3745
3754
|
if (c)
|
|
3746
3755
|
return;
|
|
3747
|
-
if (!
|
|
3756
|
+
if (!p) {
|
|
3748
3757
|
a.openMenu("first");
|
|
3749
3758
|
break;
|
|
3750
3759
|
}
|
|
3751
|
-
if (!
|
|
3760
|
+
if (!I)
|
|
3752
3761
|
return;
|
|
3753
|
-
a.selectOption(
|
|
3762
|
+
a.selectOption(I);
|
|
3754
3763
|
break;
|
|
3755
3764
|
case "ArrowUp":
|
|
3756
|
-
|
|
3765
|
+
p ? a.focusOption("up") : a.openMenu("last");
|
|
3757
3766
|
break;
|
|
3758
3767
|
case "ArrowDown":
|
|
3759
|
-
|
|
3768
|
+
p ? a.focusOption("down") : a.openMenu("first");
|
|
3760
3769
|
break;
|
|
3761
3770
|
case "PageUp":
|
|
3762
|
-
if (!
|
|
3771
|
+
if (!p)
|
|
3763
3772
|
return;
|
|
3764
3773
|
a.focusOption("pageup");
|
|
3765
3774
|
break;
|
|
3766
3775
|
case "PageDown":
|
|
3767
|
-
if (!
|
|
3776
|
+
if (!p)
|
|
3768
3777
|
return;
|
|
3769
3778
|
a.focusOption("pagedown");
|
|
3770
3779
|
break;
|
|
3771
3780
|
case "Home":
|
|
3772
|
-
if (!
|
|
3781
|
+
if (!p)
|
|
3773
3782
|
return;
|
|
3774
3783
|
a.focusOption("first");
|
|
3775
3784
|
break;
|
|
3776
3785
|
case "End":
|
|
3777
|
-
if (!
|
|
3786
|
+
if (!p)
|
|
3778
3787
|
return;
|
|
3779
3788
|
a.focusOption("last");
|
|
3780
3789
|
break;
|
|
@@ -3908,7 +3917,7 @@ var ys = function(t) {
|
|
|
3908
3917
|
}, {
|
|
3909
3918
|
key: "getCommonProps",
|
|
3910
3919
|
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,
|
|
3920
|
+
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
3921
|
return {
|
|
3913
3922
|
clearValue: a,
|
|
3914
3923
|
cx: i,
|
|
@@ -3916,8 +3925,8 @@ var ys = function(t) {
|
|
|
3916
3925
|
getValue: s,
|
|
3917
3926
|
hasValue: f,
|
|
3918
3927
|
isMulti: d,
|
|
3919
|
-
isRtl:
|
|
3920
|
-
options:
|
|
3928
|
+
isRtl: h,
|
|
3929
|
+
options: p,
|
|
3921
3930
|
selectOption: u,
|
|
3922
3931
|
selectProps: c,
|
|
3923
3932
|
setValue: l,
|
|
@@ -4014,7 +4023,7 @@ var ys = function(t) {
|
|
|
4014
4023
|
// Renderers
|
|
4015
4024
|
// ==============================
|
|
4016
4025
|
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,
|
|
4026
|
+
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
4027
|
"aria-autocomplete": "list",
|
|
4019
4028
|
"aria-expanded": d,
|
|
4020
4029
|
"aria-haspopup": !0,
|
|
@@ -4032,11 +4041,11 @@ var ys = function(t) {
|
|
|
4032
4041
|
} : {
|
|
4033
4042
|
"aria-describedby": this.getElementId("placeholder")
|
|
4034
4043
|
});
|
|
4035
|
-
return o ? /* @__PURE__ */ R.createElement(
|
|
4044
|
+
return o ? /* @__PURE__ */ R.createElement(p, G({}, v, {
|
|
4036
4045
|
autoCapitalize: "none",
|
|
4037
4046
|
autoComplete: "off",
|
|
4038
4047
|
autoCorrect: "off",
|
|
4039
|
-
id:
|
|
4048
|
+
id: I,
|
|
4040
4049
|
innerRef: this.getInputRef,
|
|
4041
4050
|
isDisabled: i,
|
|
4042
4051
|
isHidden: m,
|
|
@@ -4048,8 +4057,8 @@ var ys = function(t) {
|
|
|
4048
4057
|
form: c,
|
|
4049
4058
|
type: "text",
|
|
4050
4059
|
value: u
|
|
4051
|
-
},
|
|
4052
|
-
id:
|
|
4060
|
+
}, y)) : /* @__PURE__ */ R.createElement(Vf, G({
|
|
4061
|
+
id: I,
|
|
4053
4062
|
innerRef: this.getInputRef,
|
|
4054
4063
|
onBlur: this.onInputBlur,
|
|
4055
4064
|
onChange: or,
|
|
@@ -4059,26 +4068,26 @@ var ys = function(t) {
|
|
|
4059
4068
|
inputMode: "none",
|
|
4060
4069
|
form: c,
|
|
4061
4070
|
value: ""
|
|
4062
|
-
},
|
|
4071
|
+
}, y));
|
|
4063
4072
|
}
|
|
4064
4073
|
)
|
|
4065
4074
|
}, {
|
|
4066
4075
|
key: "renderPlaceholderOrValue",
|
|
4067
4076
|
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,
|
|
4077
|
+
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
4078
|
if (!this.hasValue() || !f)
|
|
4070
|
-
return v ? null : /* @__PURE__ */ R.createElement(d, G({},
|
|
4079
|
+
return v ? null : /* @__PURE__ */ R.createElement(d, G({}, h, {
|
|
4071
4080
|
key: "placeholder",
|
|
4072
4081
|
isDisabled: m,
|
|
4073
|
-
isFocused:
|
|
4082
|
+
isFocused: M,
|
|
4074
4083
|
innerProps: {
|
|
4075
4084
|
id: this.getElementId("placeholder")
|
|
4076
4085
|
}
|
|
4077
|
-
}),
|
|
4086
|
+
}), I);
|
|
4078
4087
|
if (g)
|
|
4079
|
-
return
|
|
4088
|
+
return x.map(function(T, E) {
|
|
4080
4089
|
var J = T === b, z = "".concat(a.getOptionLabel(T), "-").concat(a.getOptionValue(T));
|
|
4081
|
-
return /* @__PURE__ */ R.createElement(o, G({},
|
|
4090
|
+
return /* @__PURE__ */ R.createElement(o, G({}, h, {
|
|
4082
4091
|
components: {
|
|
4083
4092
|
Container: s,
|
|
4084
4093
|
Label: u,
|
|
@@ -4104,11 +4113,11 @@ var ys = function(t) {
|
|
|
4104
4113
|
});
|
|
4105
4114
|
if (v)
|
|
4106
4115
|
return null;
|
|
4107
|
-
var
|
|
4108
|
-
return /* @__PURE__ */ R.createElement(c, G({},
|
|
4109
|
-
data:
|
|
4116
|
+
var D = x[0];
|
|
4117
|
+
return /* @__PURE__ */ R.createElement(c, G({}, h, {
|
|
4118
|
+
data: D,
|
|
4110
4119
|
isDisabled: m
|
|
4111
|
-
}), this.formatOptionLabel(
|
|
4120
|
+
}), this.formatOptionLabel(D, "value"));
|
|
4112
4121
|
}
|
|
4113
4122
|
}, {
|
|
4114
4123
|
key: "renderClearIndicator",
|
|
@@ -4173,8 +4182,8 @@ var ys = function(t) {
|
|
|
4173
4182
|
}, {
|
|
4174
4183
|
key: "renderMenu",
|
|
4175
4184
|
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 (!
|
|
4185
|
+
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;
|
|
4186
|
+
if (!D)
|
|
4178
4187
|
return null;
|
|
4179
4188
|
var Ee = function(ve, qe) {
|
|
4180
4189
|
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 +4197,7 @@ var ys = function(t) {
|
|
|
4188
4197
|
onMouseOver: N,
|
|
4189
4198
|
tabIndex: -1
|
|
4190
4199
|
};
|
|
4191
|
-
return /* @__PURE__ */ R.createElement(
|
|
4200
|
+
return /* @__PURE__ */ R.createElement(p, G({}, f, {
|
|
4192
4201
|
innerProps: Rn,
|
|
4193
4202
|
data: Te,
|
|
4194
4203
|
isDisabled: Fe,
|
|
@@ -4221,24 +4230,24 @@ var ys = function(t) {
|
|
|
4221
4230
|
} else if (he.type === "option")
|
|
4222
4231
|
return Ee(he, "".concat(he.index));
|
|
4223
4232
|
});
|
|
4224
|
-
else if (
|
|
4225
|
-
var Ae =
|
|
4226
|
-
inputValue:
|
|
4233
|
+
else if (y) {
|
|
4234
|
+
var Ae = x({
|
|
4235
|
+
inputValue: I
|
|
4227
4236
|
});
|
|
4228
4237
|
if (Ae === null)
|
|
4229
4238
|
return null;
|
|
4230
4239
|
xe = /* @__PURE__ */ R.createElement(d, f, Ae);
|
|
4231
4240
|
} else {
|
|
4232
4241
|
var Ke = oe({
|
|
4233
|
-
inputValue:
|
|
4242
|
+
inputValue: I
|
|
4234
4243
|
});
|
|
4235
4244
|
if (Ke === null)
|
|
4236
4245
|
return null;
|
|
4237
|
-
xe = /* @__PURE__ */ R.createElement(
|
|
4246
|
+
xe = /* @__PURE__ */ R.createElement(h, f, Ke);
|
|
4238
4247
|
}
|
|
4239
4248
|
var Ve = {
|
|
4240
4249
|
minMenuHeight: b,
|
|
4241
|
-
maxMenuHeight:
|
|
4250
|
+
maxMenuHeight: M,
|
|
4242
4251
|
menuPlacement: T,
|
|
4243
4252
|
menuPosition: E,
|
|
4244
4253
|
menuShouldScrollIntoView: ie
|
|
@@ -4251,19 +4260,19 @@ var ys = function(t) {
|
|
|
4251
4260
|
onMouseMove: a.onMenuMouseMove,
|
|
4252
4261
|
id: a.getElementId("listbox")
|
|
4253
4262
|
},
|
|
4254
|
-
isLoading:
|
|
4263
|
+
isLoading: y,
|
|
4255
4264
|
placement: et
|
|
4256
4265
|
}), /* @__PURE__ */ R.createElement(Uf, {
|
|
4257
4266
|
captureEnabled: v,
|
|
4258
4267
|
onTopArrive: F,
|
|
4259
|
-
onBottomArrive:
|
|
4268
|
+
onBottomArrive: q,
|
|
4260
4269
|
lockEnabled: z
|
|
4261
4270
|
}, function(Fe) {
|
|
4262
4271
|
return /* @__PURE__ */ R.createElement(l, G({}, f, {
|
|
4263
4272
|
innerRef: function(Vt) {
|
|
4264
4273
|
a.getMenuListRef(Vt), Fe(Vt);
|
|
4265
4274
|
},
|
|
4266
|
-
isLoading:
|
|
4275
|
+
isLoading: y,
|
|
4267
4276
|
maxHeight: Te,
|
|
4268
4277
|
focusedOption: m
|
|
4269
4278
|
}), xe);
|
|
@@ -4292,7 +4301,7 @@ var ys = function(t) {
|
|
|
4292
4301
|
value: d
|
|
4293
4302
|
});
|
|
4294
4303
|
} else {
|
|
4295
|
-
var
|
|
4304
|
+
var h = c.length > 0 ? c.map(function(f, m) {
|
|
4296
4305
|
return /* @__PURE__ */ R.createElement("input", {
|
|
4297
4306
|
key: "i-".concat(m),
|
|
4298
4307
|
name: l,
|
|
@@ -4303,14 +4312,14 @@ var ys = function(t) {
|
|
|
4303
4312
|
name: l,
|
|
4304
4313
|
type: "hidden"
|
|
4305
4314
|
});
|
|
4306
|
-
return /* @__PURE__ */ R.createElement("div", null,
|
|
4315
|
+
return /* @__PURE__ */ R.createElement("div", null, h);
|
|
4307
4316
|
}
|
|
4308
4317
|
else {
|
|
4309
|
-
var
|
|
4318
|
+
var p = c[0] ? this.getOptionValue(c[0]) : "";
|
|
4310
4319
|
return /* @__PURE__ */ R.createElement("input", {
|
|
4311
4320
|
name: l,
|
|
4312
4321
|
type: "hidden",
|
|
4313
|
-
value:
|
|
4322
|
+
value: p
|
|
4314
4323
|
});
|
|
4315
4324
|
}
|
|
4316
4325
|
}
|
|
@@ -4331,14 +4340,14 @@ var ys = function(t) {
|
|
|
4331
4340
|
}, {
|
|
4332
4341
|
key: "render",
|
|
4333
4342
|
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,
|
|
4343
|
+
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
4344
|
return /* @__PURE__ */ R.createElement(s, G({}, m, {
|
|
4336
4345
|
className: c,
|
|
4337
4346
|
innerProps: {
|
|
4338
4347
|
id: d,
|
|
4339
4348
|
onKeyDown: this.onKeyDown
|
|
4340
4349
|
},
|
|
4341
|
-
isDisabled:
|
|
4350
|
+
isDisabled: h,
|
|
4342
4351
|
isFocused: f
|
|
4343
4352
|
}), this.renderLiveRegion(), /* @__PURE__ */ R.createElement(i, G({}, m, {
|
|
4344
4353
|
innerRef: this.getControlRef,
|
|
@@ -4346,39 +4355,39 @@ var ys = function(t) {
|
|
|
4346
4355
|
onMouseDown: this.onControlMouseDown,
|
|
4347
4356
|
onTouchEnd: this.onControlTouchEnd
|
|
4348
4357
|
},
|
|
4349
|
-
isDisabled:
|
|
4358
|
+
isDisabled: h,
|
|
4350
4359
|
isFocused: f,
|
|
4351
|
-
menuIsOpen:
|
|
4360
|
+
menuIsOpen: p
|
|
4352
4361
|
}), /* @__PURE__ */ R.createElement(u, G({}, m, {
|
|
4353
|
-
isDisabled:
|
|
4362
|
+
isDisabled: h
|
|
4354
4363
|
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ R.createElement(o, G({}, m, {
|
|
4355
|
-
isDisabled:
|
|
4364
|
+
isDisabled: h
|
|
4356
4365
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
4357
4366
|
}
|
|
4358
4367
|
}], [{
|
|
4359
4368
|
key: "getDerivedStateFromProps",
|
|
4360
4369
|
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
|
-
|
|
4370
|
+
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 = {};
|
|
4371
|
+
if (o && (p !== o.value || h !== o.options || f !== o.menuIsOpen || m !== o.inputValue)) {
|
|
4372
|
+
var y = f ? oh(a, v) : [], x = s ? sh(i, v) : null, b = uh(i, y);
|
|
4373
|
+
I = {
|
|
4365
4374
|
selectValue: v,
|
|
4366
4375
|
focusedOption: b,
|
|
4367
|
-
focusedValue:
|
|
4376
|
+
focusedValue: x,
|
|
4368
4377
|
clearFocusValueOnUpdate: !1
|
|
4369
4378
|
};
|
|
4370
4379
|
}
|
|
4371
|
-
var
|
|
4380
|
+
var M = u != null && a !== o ? {
|
|
4372
4381
|
inputIsHidden: u,
|
|
4373
4382
|
inputIsHiddenAfterUpdate: void 0
|
|
4374
|
-
} : {},
|
|
4375
|
-
return c && !T && (
|
|
4383
|
+
} : {}, D = l, T = c && d;
|
|
4384
|
+
return c && !T && (D = {
|
|
4376
4385
|
value: Hn(g, v, v[0] || null),
|
|
4377
4386
|
options: v,
|
|
4378
4387
|
action: "initial-input-focus"
|
|
4379
|
-
}, T = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (
|
|
4388
|
+
}, T = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (D = null), re(re(re({}, I), M), {}, {
|
|
4380
4389
|
prevProps: a,
|
|
4381
|
-
ariaSelection:
|
|
4390
|
+
ariaSelection: D,
|
|
4382
4391
|
prevWasFocused: T
|
|
4383
4392
|
});
|
|
4384
4393
|
}
|
|
@@ -4523,41 +4532,48 @@ const r1 = ({
|
|
|
4523
4532
|
onChange: l,
|
|
4524
4533
|
background: c,
|
|
4525
4534
|
"data-tip": d,
|
|
4526
|
-
"data-tip-disable":
|
|
4527
|
-
"data-testid":
|
|
4535
|
+
"data-tip-disable": h,
|
|
4536
|
+
"data-testid": p,
|
|
4528
4537
|
...f
|
|
4529
4538
|
}) => {
|
|
4530
|
-
const m = _e(null), g =
|
|
4531
|
-
(
|
|
4532
|
-
if (!i && (
|
|
4533
|
-
const
|
|
4534
|
-
|
|
4535
|
-
const
|
|
4536
|
-
...
|
|
4539
|
+
const m = _e(null), g = Q(
|
|
4540
|
+
(x) => {
|
|
4541
|
+
if (!i && (x.preventDefault(), m.current)) {
|
|
4542
|
+
const b = !m.current.checked;
|
|
4543
|
+
x.currentTarget.setAttribute("aria-checked", b.toString()), m.current.checked = b;
|
|
4544
|
+
const M = {
|
|
4545
|
+
...x,
|
|
4537
4546
|
target: {
|
|
4538
4547
|
...m.current,
|
|
4539
|
-
checked:
|
|
4548
|
+
checked: b,
|
|
4540
4549
|
id: y
|
|
4541
4550
|
}
|
|
4542
4551
|
};
|
|
4543
4552
|
typeof l == "function" && l(
|
|
4544
|
-
|
|
4545
|
-
|
|
4553
|
+
M,
|
|
4554
|
+
b
|
|
4546
4555
|
);
|
|
4547
4556
|
}
|
|
4548
4557
|
},
|
|
4549
4558
|
[l]
|
|
4550
|
-
), v =
|
|
4551
|
-
(
|
|
4552
|
-
|
|
4559
|
+
), v = Q(
|
|
4560
|
+
(x) => {
|
|
4561
|
+
x.key.match(/enter|spacebar|\W{1}/i) && g(x);
|
|
4553
4562
|
},
|
|
4554
4563
|
[g]
|
|
4564
|
+
), I = Q(
|
|
4565
|
+
(x) => {
|
|
4566
|
+
i || typeof l == "function" && l(x, x.target.checked);
|
|
4567
|
+
},
|
|
4568
|
+
[l, i]
|
|
4555
4569
|
), y = We(() => a || nn(), [a]);
|
|
4556
4570
|
return /* @__PURE__ */ Me(wh, { background: c, children: [
|
|
4557
4571
|
/* @__PURE__ */ V(
|
|
4558
4572
|
vh,
|
|
4559
4573
|
{
|
|
4560
4574
|
"aria-hidden": "true",
|
|
4575
|
+
onChange: I,
|
|
4576
|
+
onKeyDown: v,
|
|
4561
4577
|
ref: m,
|
|
4562
4578
|
type: "checkbox",
|
|
4563
4579
|
tabIndex: -1,
|
|
@@ -4565,7 +4581,7 @@ const r1 = ({
|
|
|
4565
4581
|
checked: o,
|
|
4566
4582
|
required: u,
|
|
4567
4583
|
id: y,
|
|
4568
|
-
"data-testid":
|
|
4584
|
+
"data-testid": p,
|
|
4569
4585
|
"aria-describedby": r ? `${y}_description` : void 0
|
|
4570
4586
|
}
|
|
4571
4587
|
),
|
|
@@ -4590,7 +4606,7 @@ const r1 = ({
|
|
|
4590
4606
|
bold: !0,
|
|
4591
4607
|
htmlFor: y,
|
|
4592
4608
|
"data-tip": d,
|
|
4593
|
-
"data-tip-disable":
|
|
4609
|
+
"data-tip-disable": h,
|
|
4594
4610
|
onClick: g,
|
|
4595
4611
|
children: e
|
|
4596
4612
|
}
|
|
@@ -4677,9 +4693,12 @@ const r1 = ({
|
|
|
4677
4693
|
position: relative;
|
|
4678
4694
|
|
|
4679
4695
|
input {
|
|
4696
|
+
z-index: -1;
|
|
4697
|
+
position: absolute;
|
|
4680
4698
|
opacity: 0;
|
|
4681
4699
|
width: 0;
|
|
4682
4700
|
height: 0;
|
|
4701
|
+
margin: 0;
|
|
4683
4702
|
}
|
|
4684
4703
|
|
|
4685
4704
|
input:checked + ${Kn} {
|
|
@@ -4717,60 +4736,68 @@ const r1 = ({
|
|
|
4717
4736
|
background: l,
|
|
4718
4737
|
"data-tip": c,
|
|
4719
4738
|
"data-tip-disable": d,
|
|
4739
|
+
"data-testid": h,
|
|
4720
4740
|
...p
|
|
4721
4741
|
}) => {
|
|
4722
|
-
const
|
|
4742
|
+
const f = _e(null), m = We(() => u || nn(), [u]);
|
|
4723
4743
|
Ze(() => {
|
|
4724
|
-
|
|
4744
|
+
f.current && (f.current.indeterminate = n || !1);
|
|
4725
4745
|
}, [n]);
|
|
4726
|
-
const
|
|
4727
|
-
(
|
|
4728
|
-
if (!
|
|
4746
|
+
const g = Q(
|
|
4747
|
+
(y) => {
|
|
4748
|
+
if (!f.current || o)
|
|
4729
4749
|
return;
|
|
4730
|
-
|
|
4731
|
-
const
|
|
4732
|
-
if (
|
|
4733
|
-
const
|
|
4734
|
-
...
|
|
4750
|
+
y.preventDefault();
|
|
4751
|
+
const x = !f.current.checked;
|
|
4752
|
+
if (f.current.checked = x, typeof a == "function") {
|
|
4753
|
+
const b = {
|
|
4754
|
+
...y,
|
|
4735
4755
|
target: {
|
|
4736
|
-
...
|
|
4737
|
-
checked:
|
|
4738
|
-
id:
|
|
4756
|
+
...f.current,
|
|
4757
|
+
checked: x,
|
|
4758
|
+
id: m
|
|
4739
4759
|
}
|
|
4740
4760
|
};
|
|
4741
|
-
a(
|
|
4761
|
+
a(b, x);
|
|
4742
4762
|
}
|
|
4743
4763
|
},
|
|
4744
|
-
[o,
|
|
4745
|
-
),
|
|
4746
|
-
(
|
|
4747
|
-
!
|
|
4764
|
+
[o, m, a]
|
|
4765
|
+
), v = Q(
|
|
4766
|
+
(y) => {
|
|
4767
|
+
!y.key.match(/enter|spacebar|\W{1}/i) || !f.current || (y.preventDefault(), g(y));
|
|
4748
4768
|
},
|
|
4749
4769
|
[a]
|
|
4770
|
+
), I = Q(
|
|
4771
|
+
(y) => {
|
|
4772
|
+
typeof a == "function" && !o && a(y, y.target.checked);
|
|
4773
|
+
},
|
|
4774
|
+
[o, a]
|
|
4750
4775
|
);
|
|
4751
4776
|
return /* @__PURE__ */ Me(Oh, { style: i, background: l, children: [
|
|
4752
4777
|
/* @__PURE__ */ V(
|
|
4753
4778
|
"input",
|
|
4754
4779
|
{
|
|
4755
|
-
ref:
|
|
4780
|
+
ref: f,
|
|
4781
|
+
onChange: I,
|
|
4782
|
+
onKeyDown: v,
|
|
4756
4783
|
type: "checkbox",
|
|
4757
4784
|
tabIndex: -1,
|
|
4758
4785
|
disabled: o,
|
|
4759
4786
|
checked: s,
|
|
4760
4787
|
"aria-checked": n ? "mixed" : s,
|
|
4761
4788
|
"aria-disabled": o,
|
|
4762
|
-
"aria-describedby": r ? `${
|
|
4763
|
-
|
|
4789
|
+
"aria-describedby": r ? `${m}_description` : void 0,
|
|
4790
|
+
"data-testid": h,
|
|
4791
|
+
id: m,
|
|
4764
4792
|
...p
|
|
4765
4793
|
}
|
|
4766
4794
|
),
|
|
4767
4795
|
n ? /* @__PURE__ */ V(
|
|
4768
4796
|
Nt,
|
|
4769
4797
|
{
|
|
4770
|
-
onClick:
|
|
4771
|
-
onKeyDown:
|
|
4798
|
+
onClick: g,
|
|
4799
|
+
onKeyDown: v,
|
|
4772
4800
|
tabIndex: 0,
|
|
4773
|
-
"aria-checked": "mixed",
|
|
4774
4801
|
"aria-disabled": o,
|
|
4775
4802
|
background: l,
|
|
4776
4803
|
...p,
|
|
@@ -4779,10 +4806,9 @@ const r1 = ({
|
|
|
4779
4806
|
) : /* @__PURE__ */ V(
|
|
4780
4807
|
Ct,
|
|
4781
4808
|
{
|
|
4782
|
-
onClick:
|
|
4783
|
-
onKeyDown:
|
|
4809
|
+
onClick: g,
|
|
4810
|
+
onKeyDown: v,
|
|
4784
4811
|
tabIndex: 0,
|
|
4785
|
-
"aria-checked": s,
|
|
4786
4812
|
"aria-disabled": o,
|
|
4787
4813
|
background: l,
|
|
4788
4814
|
...p,
|
|
@@ -4794,9 +4820,9 @@ const r1 = ({
|
|
|
4794
4820
|
e && /* @__PURE__ */ V(
|
|
4795
4821
|
_h,
|
|
4796
4822
|
{
|
|
4797
|
-
onClick:
|
|
4823
|
+
onClick: g,
|
|
4798
4824
|
bold: !0,
|
|
4799
|
-
htmlFor:
|
|
4825
|
+
htmlFor: m,
|
|
4800
4826
|
"data-tip": c,
|
|
4801
4827
|
"data-tip-disable": d,
|
|
4802
4828
|
children: e
|
|
@@ -4804,7 +4830,7 @@ const r1 = ({
|
|
|
4804
4830
|
),
|
|
4805
4831
|
t && /* @__PURE__ */ V(Ah, { children: t })
|
|
4806
4832
|
] }),
|
|
4807
|
-
r && /* @__PURE__ */ V(Nh, { id: `${
|
|
4833
|
+
r && /* @__PURE__ */ V(Nh, { id: `${m}_description`, children: r })
|
|
4808
4834
|
] })
|
|
4809
4835
|
] });
|
|
4810
4836
|
}, Ct = A.span`
|
|
@@ -4866,6 +4892,8 @@ const r1 = ({
|
|
|
4866
4892
|
user-select: none;
|
|
4867
4893
|
|
|
4868
4894
|
input {
|
|
4895
|
+
z-index: -1;
|
|
4896
|
+
position: absolute;
|
|
4869
4897
|
opacity: 0;
|
|
4870
4898
|
width: 0;
|
|
4871
4899
|
height: 0;
|
|
@@ -4942,10 +4970,10 @@ const r1 = ({
|
|
|
4942
4970
|
Ze(() => {
|
|
4943
4971
|
e && d(e);
|
|
4944
4972
|
}, [e]);
|
|
4945
|
-
const
|
|
4973
|
+
const h = (f) => c.includes(f), p = (f, m, g) => {
|
|
4946
4974
|
f.onChange && f.onChange(m, g);
|
|
4947
|
-
const
|
|
4948
|
-
d(
|
|
4975
|
+
const I = (g ? [...c, f.value] : c.filter((y) => y !== f.value)).sort(Th(u));
|
|
4976
|
+
d(I), o && o(I);
|
|
4949
4977
|
};
|
|
4950
4978
|
return /* @__PURE__ */ V(Bh, { className: a, children: u.map((f) => /* @__PURE__ */ V("li", { children: /* @__PURE__ */ V(
|
|
4951
4979
|
Dh,
|
|
@@ -4954,8 +4982,8 @@ const r1 = ({
|
|
|
4954
4982
|
background: f.background,
|
|
4955
4983
|
name: r,
|
|
4956
4984
|
disabled: f.disabled || t || !1,
|
|
4957
|
-
checked:
|
|
4958
|
-
onChange: (m, g) =>
|
|
4985
|
+
checked: h(f.value),
|
|
4986
|
+
onChange: (m, g) => p(f, m, g)
|
|
4959
4987
|
}
|
|
4960
4988
|
) }, f.value)) });
|
|
4961
4989
|
}, Bh = A.ul`
|
|
@@ -4974,49 +5002,57 @@ const r1 = ({
|
|
|
4974
5002
|
background: n,
|
|
4975
5003
|
id: a,
|
|
4976
5004
|
onChange: i,
|
|
4977
|
-
|
|
5005
|
+
"data-testid": o,
|
|
5006
|
+
...s
|
|
4978
5007
|
}) => {
|
|
4979
|
-
const [
|
|
4980
|
-
(
|
|
4981
|
-
if (
|
|
5008
|
+
const [u] = se(() => a || `radio_${nn()}`), l = Q(
|
|
5009
|
+
(h) => {
|
|
5010
|
+
if (s.disabled)
|
|
4982
5011
|
return;
|
|
4983
|
-
|
|
4984
|
-
const
|
|
4985
|
-
...
|
|
5012
|
+
h.preventDefault();
|
|
5013
|
+
const p = {
|
|
5014
|
+
...h,
|
|
4986
5015
|
target: {
|
|
4987
|
-
...
|
|
5016
|
+
...h.target,
|
|
4988
5017
|
checked: !0,
|
|
4989
|
-
id:
|
|
5018
|
+
id: u
|
|
4990
5019
|
}
|
|
4991
5020
|
};
|
|
4992
5021
|
typeof i == "function" && i(
|
|
4993
|
-
|
|
5022
|
+
p,
|
|
4994
5023
|
!0
|
|
4995
5024
|
);
|
|
4996
5025
|
},
|
|
4997
|
-
[
|
|
4998
|
-
),
|
|
4999
|
-
(
|
|
5000
|
-
|
|
5026
|
+
[u, i, s.disabled]
|
|
5027
|
+
), c = Q(
|
|
5028
|
+
(h) => {
|
|
5029
|
+
h.key.match(/enter|spacebar|\W{1}/i) && (h.preventDefault(), l(h));
|
|
5001
5030
|
},
|
|
5002
|
-
[
|
|
5031
|
+
[l]
|
|
5032
|
+
), d = Q(
|
|
5033
|
+
(h) => {
|
|
5034
|
+
s.disabled || typeof i == "function" && i(h, h.target.checked);
|
|
5035
|
+
},
|
|
5036
|
+
[i, s.disabled]
|
|
5003
5037
|
);
|
|
5004
5038
|
return /* @__PURE__ */ Me(Xh, { background: n, children: [
|
|
5005
5039
|
/* @__PURE__ */ V(
|
|
5006
5040
|
"input",
|
|
5007
5041
|
{
|
|
5008
5042
|
type: "radio",
|
|
5009
|
-
"aria-describedby": r ? `${
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5043
|
+
"aria-describedby": r ? `${u}_description` : void 0,
|
|
5044
|
+
onChange: d,
|
|
5045
|
+
...s,
|
|
5046
|
+
id: u,
|
|
5047
|
+
onKeyDown: c,
|
|
5048
|
+
"data-testid": o
|
|
5013
5049
|
}
|
|
5014
5050
|
),
|
|
5015
5051
|
/* @__PURE__ */ V(
|
|
5016
5052
|
gn,
|
|
5017
5053
|
{
|
|
5018
|
-
onClick:
|
|
5019
|
-
onKeyDown:
|
|
5054
|
+
onClick: l,
|
|
5055
|
+
onKeyDown: c,
|
|
5020
5056
|
background: n
|
|
5021
5057
|
}
|
|
5022
5058
|
),
|
|
@@ -5026,16 +5062,16 @@ const r1 = ({
|
|
|
5026
5062
|
Zh,
|
|
5027
5063
|
{
|
|
5028
5064
|
bold: !0,
|
|
5029
|
-
htmlFor:
|
|
5030
|
-
"data-tip":
|
|
5031
|
-
"data-tip-disable":
|
|
5032
|
-
onClick:
|
|
5065
|
+
htmlFor: u,
|
|
5066
|
+
"data-tip": s["data-tip"],
|
|
5067
|
+
"data-tip-disable": s["data-tip-disable"],
|
|
5068
|
+
onClick: l,
|
|
5033
5069
|
children: e
|
|
5034
5070
|
}
|
|
5035
5071
|
),
|
|
5036
5072
|
t && /* @__PURE__ */ V(Lh, { children: t })
|
|
5037
5073
|
] }),
|
|
5038
|
-
r && /* @__PURE__ */ V(Hh, { id: `${
|
|
5074
|
+
r && /* @__PURE__ */ V(Hh, { id: `${u}_description`, children: r })
|
|
5039
5075
|
] })
|
|
5040
5076
|
] });
|
|
5041
5077
|
};
|
|
@@ -5095,9 +5131,11 @@ const gn = A.span`
|
|
|
5095
5131
|
user-select: none;
|
|
5096
5132
|
|
|
5097
5133
|
input {
|
|
5134
|
+
z-index: -1;
|
|
5098
5135
|
position: absolute;
|
|
5099
5136
|
opacity: 0;
|
|
5100
|
-
|
|
5137
|
+
width: 0;
|
|
5138
|
+
height: 0;
|
|
5101
5139
|
margin: 0;
|
|
5102
5140
|
}
|
|
5103
5141
|
|
|
@@ -5134,7 +5172,7 @@ const gn = A.span`
|
|
|
5134
5172
|
|
|
5135
5173
|
input:disabled ~ div {
|
|
5136
5174
|
p,
|
|
5137
|
-
label
|
|
5175
|
+
label {
|
|
5138
5176
|
color: var(--color-disabled-text-on-light);
|
|
5139
5177
|
cursor: default;
|
|
5140
5178
|
}
|
|
@@ -5454,29 +5492,29 @@ var Bs = function(e) {
|
|
|
5454
5492
|
}, {
|
|
5455
5493
|
key: "render",
|
|
5456
5494
|
value: function() {
|
|
5457
|
-
var n = this.props, a = n.classNames, i = n.className, o = n.showPreviousButton, s = n.showNextButton, u = n.labels, l = n.dir, c = void 0, d = void 0,
|
|
5458
|
-
l === "rtl" ? (c = this.handleNextClick, d = this.handlePreviousClick,
|
|
5459
|
-
var g = f ? a.navButtonPrev : a.navButtonPrev + " " + a.navButtonInteractionDisabled, v = m ? a.navButtonNext : a.navButtonNext + " " + a.navButtonInteractionDisabled,
|
|
5495
|
+
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;
|
|
5496
|
+
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);
|
|
5497
|
+
var g = f ? a.navButtonPrev : a.navButtonPrev + " " + a.navButtonInteractionDisabled, v = m ? a.navButtonNext : a.navButtonNext + " " + a.navButtonInteractionDisabled, I = Lr.default.createElement("span", {
|
|
5460
5498
|
tabIndex: "0",
|
|
5461
5499
|
role: "button",
|
|
5462
5500
|
"aria-label": u.previousMonth,
|
|
5463
5501
|
key: "previous",
|
|
5464
5502
|
className: g,
|
|
5465
|
-
onKeyDown: f ?
|
|
5503
|
+
onKeyDown: f ? h : void 0,
|
|
5466
5504
|
onClick: f ? c : void 0
|
|
5467
|
-
}),
|
|
5505
|
+
}), y = Lr.default.createElement("span", {
|
|
5468
5506
|
tabIndex: "0",
|
|
5469
5507
|
role: "button",
|
|
5470
5508
|
"aria-label": u.nextMonth,
|
|
5471
5509
|
key: "right",
|
|
5472
5510
|
className: v,
|
|
5473
|
-
onKeyDown: m ?
|
|
5511
|
+
onKeyDown: m ? p : void 0,
|
|
5474
5512
|
onClick: m ? d : void 0
|
|
5475
5513
|
});
|
|
5476
5514
|
return Lr.default.createElement(
|
|
5477
5515
|
"div",
|
|
5478
5516
|
{ className: i || a.navBar },
|
|
5479
|
-
l === "rtl" ? [
|
|
5517
|
+
l === "rtl" ? [y, I] : [I, y]
|
|
5480
5518
|
);
|
|
5481
5519
|
}
|
|
5482
5520
|
}]), t;
|
|
@@ -5537,9 +5575,9 @@ var bp = function(e) {
|
|
|
5537
5575
|
}, {
|
|
5538
5576
|
key: "render",
|
|
5539
5577
|
value: function() {
|
|
5540
|
-
for (var n = this.props, a = n.classNames, i = n.firstDayOfWeek, o = n.showWeekNumbers, s = n.weekdaysLong, u = n.weekdaysShort, l = n.locale, c = n.localeUtils, d = n.weekdayElement,
|
|
5541
|
-
var f = (
|
|
5542
|
-
key:
|
|
5578
|
+
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) {
|
|
5579
|
+
var f = (p + i) % 7, m = {
|
|
5580
|
+
key: p,
|
|
5543
5581
|
className: a.weekday,
|
|
5544
5582
|
weekday: f,
|
|
5545
5583
|
weekdaysLong: s,
|
|
@@ -5547,7 +5585,7 @@ var bp = function(e) {
|
|
|
5547
5585
|
localeUtils: c,
|
|
5548
5586
|
locale: l
|
|
5549
5587
|
}, g = Ht.default.isValidElement(d) ? Ht.default.cloneElement(d, m) : Ht.default.createElement(d, m);
|
|
5550
|
-
|
|
5588
|
+
h.push(g);
|
|
5551
5589
|
}
|
|
5552
5590
|
return Ht.default.createElement(
|
|
5553
5591
|
"div",
|
|
@@ -5556,7 +5594,7 @@ var bp = function(e) {
|
|
|
5556
5594
|
"div",
|
|
5557
5595
|
{ className: a.weekdaysRow, role: "row" },
|
|
5558
5596
|
o && Ht.default.createElement("div", { className: a.weekday }),
|
|
5559
|
-
|
|
5597
|
+
h
|
|
5560
5598
|
)
|
|
5561
5599
|
);
|
|
5562
5600
|
}
|
|
@@ -5698,23 +5736,23 @@ function Ep(e, t) {
|
|
|
5698
5736
|
function Ap(e) {
|
|
5699
5737
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (0, Ip.getFirstDayOfWeek)(), r = arguments[2], n = Js(e), a = [], i = [], o = [], s = 1; s <= n; s += 1)
|
|
5700
5738
|
a.push(new Date(e.getFullYear(), e.getMonth(), s, 12));
|
|
5701
|
-
a.forEach(function(
|
|
5702
|
-
i.length > 0 &&
|
|
5739
|
+
a.forEach(function(x) {
|
|
5740
|
+
i.length > 0 && x.getDay() === t && (o.push(i), i = []), i.push(x), a.indexOf(x) === a.length - 1 && o.push(i);
|
|
5703
5741
|
});
|
|
5704
5742
|
for (var u = o[0], l = 7 - u.length; l > 0; l -= 1) {
|
|
5705
5743
|
var c = (0, qn.clone)(u[0]);
|
|
5706
5744
|
c.setDate(u[0].getDate() - 1), u.unshift(c);
|
|
5707
5745
|
}
|
|
5708
|
-
for (var d = o[o.length - 1],
|
|
5709
|
-
var
|
|
5710
|
-
|
|
5746
|
+
for (var d = o[o.length - 1], h = d.length; h < 7; h += 1) {
|
|
5747
|
+
var p = (0, qn.clone)(d[d.length - 1]);
|
|
5748
|
+
p.setDate(d[d.length - 1].getDate() + 1), d.push(p);
|
|
5711
5749
|
}
|
|
5712
5750
|
if (r && o.length < 6)
|
|
5713
5751
|
for (var f = void 0, m = o.length; m < 6; m += 1) {
|
|
5714
5752
|
f = o[o.length - 1];
|
|
5715
|
-
for (var g = f[f.length - 1], v = [],
|
|
5716
|
-
var
|
|
5717
|
-
|
|
5753
|
+
for (var g = f[f.length - 1], v = [], I = 0; I < 7; I += 1) {
|
|
5754
|
+
var y = (0, qn.clone)(g);
|
|
5755
|
+
y.setDate(g.getDate() + I + 1), v.push(y);
|
|
5718
5756
|
}
|
|
5719
5757
|
o.push(v);
|
|
5720
5758
|
}
|
|
@@ -5792,8 +5830,8 @@ var za = function(e) {
|
|
|
5792
5830
|
return i.length !== o.length ? !0 : i.some(function(s) {
|
|
5793
5831
|
if (s === "modifiers" || s === "modifiersStyles" || s === "classNames") {
|
|
5794
5832
|
var u = a.props[s], l = n[s], c = Object.keys(u), d = Object.keys(l);
|
|
5795
|
-
return c.length !== d.length ? !0 : c.some(function(
|
|
5796
|
-
return !(0, oo.hasOwnProp)(l,
|
|
5833
|
+
return c.length !== d.length ? !0 : c.some(function(h) {
|
|
5834
|
+
return !(0, oo.hasOwnProp)(l, h) || u[h] !== l[h];
|
|
5797
5835
|
});
|
|
5798
5836
|
}
|
|
5799
5837
|
return s === "day" ? !(0, Gp.isSameDay)(a.props[s], n[s]) : !(0, oo.hasOwnProp)(n, s) || a.props[s] !== n[s];
|
|
@@ -5802,36 +5840,36 @@ var za = function(e) {
|
|
|
5802
5840
|
}, {
|
|
5803
5841
|
key: "render",
|
|
5804
5842
|
value: function() {
|
|
5805
|
-
var n = this.props, a = n.classNames, i = n.modifiersStyles, o = n.day, s = n.tabIndex, u = n.empty, l = n.modifiers, c = n.onMouseEnter, d = n.onMouseLeave,
|
|
5806
|
-
a !== Wp.default ?
|
|
5807
|
-
return " " +
|
|
5843
|
+
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;
|
|
5844
|
+
a !== Wp.default ? D += " " + Object.keys(l).join(" ") : D += Object.keys(l).map(function(E) {
|
|
5845
|
+
return " " + D + "--" + E;
|
|
5808
5846
|
}).join("");
|
|
5809
5847
|
var T = void 0;
|
|
5810
5848
|
return i && Object.keys(l).filter(function(E) {
|
|
5811
5849
|
return !!i[E];
|
|
5812
5850
|
}).forEach(function(E) {
|
|
5813
5851
|
T = Tp({}, T, i[E]);
|
|
5814
|
-
}), u ? io.default.createElement("div", { "aria-disabled": !0, className:
|
|
5852
|
+
}), u ? io.default.createElement("div", { "aria-disabled": !0, className: D, style: T }) : io.default.createElement(
|
|
5815
5853
|
"div",
|
|
5816
5854
|
{
|
|
5817
|
-
className:
|
|
5855
|
+
className: D,
|
|
5818
5856
|
tabIndex: s,
|
|
5819
5857
|
style: T,
|
|
5820
5858
|
role: "gridcell",
|
|
5821
|
-
"aria-label":
|
|
5822
|
-
"aria-disabled":
|
|
5859
|
+
"aria-label": y,
|
|
5860
|
+
"aria-disabled": x,
|
|
5823
5861
|
"aria-selected": b,
|
|
5824
5862
|
onClick: ct(f, o, l),
|
|
5825
5863
|
onKeyDown: ct(m, o, l),
|
|
5826
5864
|
onMouseEnter: ct(c, o, l),
|
|
5827
5865
|
onMouseLeave: ct(d, o, l),
|
|
5828
|
-
onMouseUp: ct(
|
|
5829
|
-
onMouseDown: ct(
|
|
5866
|
+
onMouseUp: ct(h, o, l),
|
|
5867
|
+
onMouseDown: ct(p, o, l),
|
|
5830
5868
|
onTouchEnd: ct(v, o, l),
|
|
5831
5869
|
onTouchStart: ct(g, o, l),
|
|
5832
|
-
onFocus: ct(
|
|
5870
|
+
onFocus: ct(I, o, l)
|
|
5833
5871
|
},
|
|
5834
|
-
|
|
5872
|
+
M
|
|
5835
5873
|
);
|
|
5836
5874
|
}
|
|
5837
5875
|
}]), t;
|
|
@@ -5918,26 +5956,26 @@ var tm = function(e) {
|
|
|
5918
5956
|
for (var o = arguments.length, s = Array(o), u = 0; u < o; u++)
|
|
5919
5957
|
s[u] = arguments[u];
|
|
5920
5958
|
return i = (n = (a = lo(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(s))), a), a.renderDay = function(l) {
|
|
5921
|
-
var c = a.props.month.getMonth(), d = so.getModifiersFromProps(a.props),
|
|
5922
|
-
uo.isSameDay(l, /* @__PURE__ */ new Date()) && !Object.prototype.hasOwnProperty.call(d, a.props.classNames.today) &&
|
|
5923
|
-
var
|
|
5924
|
-
a.props.onDayClick && !
|
|
5959
|
+
var c = a.props.month.getMonth(), d = so.getModifiersFromProps(a.props), h = Jp.getModifiersForDay(l, d);
|
|
5960
|
+
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);
|
|
5961
|
+
var p = l.getMonth() !== c, f = -1;
|
|
5962
|
+
a.props.onDayClick && !p && l.getDate() === 1 && (f = a.props.tabIndex);
|
|
5925
5963
|
var m = "" + l.getFullYear() + l.getMonth() + l.getDate(), g = {};
|
|
5926
|
-
return
|
|
5964
|
+
return h.forEach(function(v) {
|
|
5927
5965
|
g[v] = !0;
|
|
5928
5966
|
}), dt.default.createElement(
|
|
5929
5967
|
zp.default,
|
|
5930
5968
|
{
|
|
5931
|
-
key: (
|
|
5969
|
+
key: (p ? "outside-" : "") + m,
|
|
5932
5970
|
classNames: a.props.classNames,
|
|
5933
5971
|
day: l,
|
|
5934
5972
|
modifiers: g,
|
|
5935
5973
|
modifiersStyles: a.props.modifiersStyles,
|
|
5936
|
-
empty:
|
|
5974
|
+
empty: p && !a.props.showOutsideDays && !a.props.fixedWeeks,
|
|
5937
5975
|
tabIndex: f,
|
|
5938
5976
|
ariaLabel: a.props.localeUtils.formatDay(l, a.props.locale),
|
|
5939
|
-
ariaDisabled:
|
|
5940
|
-
ariaSelected:
|
|
5977
|
+
ariaDisabled: p || h.indexOf(a.props.classNames.disabled) > -1,
|
|
5978
|
+
ariaSelected: h.indexOf(a.props.classNames.selected) > -1,
|
|
5941
5979
|
onClick: a.props.onDayClick,
|
|
5942
5980
|
onFocus: a.props.onDayFocus,
|
|
5943
5981
|
onKeyDown: a.props.onDayKeyDown,
|
|
@@ -5955,39 +5993,39 @@ var tm = function(e) {
|
|
|
5955
5993
|
return Hp(t, [{
|
|
5956
5994
|
key: "render",
|
|
5957
5995
|
value: function() {
|
|
5958
|
-
var n = this, a = this.props, i = a.classNames, o = a.month, s = a.months, u = a.fixedWeeks, l = a.captionElement, c = a.weekdayElement, d = a.locale,
|
|
5996
|
+
var n = this, a = this.props, i = a.classNames, o = a.month, s = a.months, u = a.fixedWeeks, l = a.captionElement, c = a.weekdayElement, d = a.locale, h = a.localeUtils, p = a.weekdaysLong, f = a.weekdaysShort, m = a.firstDayOfWeek, g = a.onCaptionClick, v = a.showWeekNumbers, I = a.showWeekDays, y = a.onWeekClick, x = {
|
|
5959
5997
|
date: o,
|
|
5960
5998
|
classNames: i,
|
|
5961
5999
|
months: s,
|
|
5962
|
-
localeUtils:
|
|
6000
|
+
localeUtils: h,
|
|
5963
6001
|
locale: d,
|
|
5964
|
-
onClick: g ? function(
|
|
5965
|
-
return g(o,
|
|
6002
|
+
onClick: g ? function(D) {
|
|
6003
|
+
return g(o, D);
|
|
5966
6004
|
} : void 0
|
|
5967
|
-
}, b = dt.default.isValidElement(l) ? dt.default.cloneElement(l,
|
|
6005
|
+
}, b = dt.default.isValidElement(l) ? dt.default.cloneElement(l, x) : dt.default.createElement(l, x), M = so.getWeekArray(o, m, u);
|
|
5968
6006
|
return dt.default.createElement(
|
|
5969
6007
|
"div",
|
|
5970
6008
|
{ className: i.month, role: "grid" },
|
|
5971
6009
|
b,
|
|
5972
|
-
|
|
6010
|
+
I && dt.default.createElement(Xp.default, {
|
|
5973
6011
|
classNames: i,
|
|
5974
6012
|
weekdaysShort: f,
|
|
5975
|
-
weekdaysLong:
|
|
6013
|
+
weekdaysLong: p,
|
|
5976
6014
|
firstDayOfWeek: m,
|
|
5977
6015
|
showWeekNumbers: v,
|
|
5978
6016
|
locale: d,
|
|
5979
|
-
localeUtils:
|
|
6017
|
+
localeUtils: h,
|
|
5980
6018
|
weekdayElement: c
|
|
5981
6019
|
}),
|
|
5982
6020
|
dt.default.createElement(
|
|
5983
6021
|
"div",
|
|
5984
6022
|
{ className: i.body, role: "rowgroup" },
|
|
5985
|
-
|
|
6023
|
+
M.map(function(D) {
|
|
5986
6024
|
var T = void 0;
|
|
5987
|
-
return v && (T = uo.getWeekNumber(
|
|
6025
|
+
return v && (T = uo.getWeekNumber(D[6])), dt.default.createElement(
|
|
5988
6026
|
"div",
|
|
5989
6027
|
{
|
|
5990
|
-
key:
|
|
6028
|
+
key: D[0].getTime(),
|
|
5991
6029
|
className: i.week,
|
|
5992
6030
|
role: "row"
|
|
5993
6031
|
},
|
|
@@ -5995,18 +6033,18 @@ var tm = function(e) {
|
|
|
5995
6033
|
"div",
|
|
5996
6034
|
{
|
|
5997
6035
|
className: i.weekNumber,
|
|
5998
|
-
tabIndex:
|
|
6036
|
+
tabIndex: y ? 0 : -1,
|
|
5999
6037
|
role: "gridcell",
|
|
6000
|
-
onClick:
|
|
6001
|
-
return
|
|
6038
|
+
onClick: y ? function(E) {
|
|
6039
|
+
return y(T, D, E);
|
|
6002
6040
|
} : void 0,
|
|
6003
|
-
onKeyUp:
|
|
6004
|
-
return E.keyCode === Up.ENTER &&
|
|
6041
|
+
onKeyUp: y ? function(E) {
|
|
6042
|
+
return E.keyCode === Up.ENTER && y(T, D, E);
|
|
6005
6043
|
} : void 0
|
|
6006
6044
|
},
|
|
6007
|
-
n.props.renderWeek(T,
|
|
6045
|
+
n.props.renderWeek(T, D, o)
|
|
6008
6046
|
),
|
|
6009
|
-
|
|
6047
|
+
D.map(n.renderDay)
|
|
6010
6048
|
);
|
|
6011
6049
|
})
|
|
6012
6050
|
)
|
|
@@ -6614,8 +6652,8 @@ var su = function(e) {
|
|
|
6614
6652
|
var c = vn({
|
|
6615
6653
|
disabled: u.disabledDays,
|
|
6616
6654
|
selected: u.selectedDays
|
|
6617
|
-
}, u.modifiers), d = (0, Nm.getModifiersForDay)(n, c).reduce(function(
|
|
6618
|
-
return vn({},
|
|
6655
|
+
}, u.modifiers), d = (0, Nm.getModifiersForDay)(n, c).reduce(function(h, p) {
|
|
6656
|
+
return vn({}, h, _m({}, p, !0));
|
|
6619
6657
|
}, {});
|
|
6620
6658
|
l(n, d, o);
|
|
6621
6659
|
}
|
|
@@ -6632,10 +6670,10 @@ var su = function(e) {
|
|
|
6632
6670
|
var n = this, a = this.props, i = a.parseDate, o = a.format, s = a.dayPickerProps, u = this.state, l = u.value, c = u.showOverlay;
|
|
6633
6671
|
if (!c) {
|
|
6634
6672
|
var d = l ? i(l, o, s.locale) : this.getInitialMonthFromProps(this.props);
|
|
6635
|
-
this.setState(function(
|
|
6673
|
+
this.setState(function(h) {
|
|
6636
6674
|
return {
|
|
6637
6675
|
showOverlay: !0,
|
|
6638
|
-
month: d ||
|
|
6676
|
+
month: d || h.month
|
|
6639
6677
|
};
|
|
6640
6678
|
}, function() {
|
|
6641
6679
|
n.props.onDayPickerShow && n.props.onDayPickerShow();
|
|
@@ -6741,20 +6779,20 @@ var su = function(e) {
|
|
|
6741
6779
|
}, {
|
|
6742
6780
|
key: "handleDayClick",
|
|
6743
6781
|
value: function(n, a, i) {
|
|
6744
|
-
var o = this, s = this.props, u = s.clickUnselectsDay, l = s.dayPickerProps, c = s.onDayChange, d = s.formatDate,
|
|
6782
|
+
var o = this, s = this.props, u = s.clickUnselectsDay, l = s.dayPickerProps, c = s.onDayChange, d = s.formatDate, h = s.format;
|
|
6745
6783
|
if (l.onDayClick && l.onDayClick(n, a, i), !(a.disabled || l && l.classNames && a[l.classNames.disabled])) {
|
|
6746
6784
|
if (a.selected && u) {
|
|
6747
|
-
var
|
|
6748
|
-
if (Array.isArray(
|
|
6749
|
-
|
|
6750
|
-
var f =
|
|
6751
|
-
|
|
6785
|
+
var p = this.state.selectedDays;
|
|
6786
|
+
if (Array.isArray(p)) {
|
|
6787
|
+
p = p.slice(0);
|
|
6788
|
+
var f = p.indexOf(n);
|
|
6789
|
+
p.splice(f, 1);
|
|
6752
6790
|
} else
|
|
6753
|
-
|
|
6754
|
-
this.setState({ value: "", typedValue: "", selectedDays:
|
|
6791
|
+
p && (p = null);
|
|
6792
|
+
this.setState({ value: "", typedValue: "", selectedDays: p }, this.hideAfterDayClick), c && c(void 0, a, this);
|
|
6755
6793
|
return;
|
|
6756
6794
|
}
|
|
6757
|
-
var m = d(n,
|
|
6795
|
+
var m = d(n, h, l.locale);
|
|
6758
6796
|
this.setState({ value: m, typedValue: "", month: n }, function() {
|
|
6759
6797
|
c && c(n, a, o), o.hideAfterDayClick();
|
|
6760
6798
|
});
|
|
@@ -6763,12 +6801,12 @@ var su = function(e) {
|
|
|
6763
6801
|
}, {
|
|
6764
6802
|
key: "renderOverlay",
|
|
6765
6803
|
value: function() {
|
|
6766
|
-
var n = this, a = this.props, i = a.classNames, o = a.dayPickerProps, s = a.parseDate, u = a.formatDate, l = a.format, c = this.state, d = c.selectedDays,
|
|
6767
|
-
if (!d &&
|
|
6768
|
-
var f = s(
|
|
6769
|
-
f && (
|
|
6804
|
+
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;
|
|
6805
|
+
if (!d && h) {
|
|
6806
|
+
var f = s(h, l, o.locale);
|
|
6807
|
+
f && (p = f);
|
|
6770
6808
|
} else
|
|
6771
|
-
d && (
|
|
6809
|
+
d && (p = d);
|
|
6772
6810
|
var m = void 0;
|
|
6773
6811
|
o.todayButton && (m = function() {
|
|
6774
6812
|
return n.updateState(/* @__PURE__ */ new Date(), u(/* @__PURE__ */ new Date(), l, o.locale), n.hideAfterDayClick);
|
|
@@ -6779,20 +6817,20 @@ var su = function(e) {
|
|
|
6779
6817
|
{
|
|
6780
6818
|
classNames: i,
|
|
6781
6819
|
month: this.state.month,
|
|
6782
|
-
selectedDay:
|
|
6820
|
+
selectedDay: p,
|
|
6783
6821
|
input: this.input,
|
|
6784
6822
|
tabIndex: 0,
|
|
6785
6823
|
onFocus: this.handleOverlayFocus,
|
|
6786
6824
|
onBlur: this.handleOverlayBlur
|
|
6787
6825
|
},
|
|
6788
6826
|
_t.default.createElement(Am.default, vn({
|
|
6789
|
-
ref: function(
|
|
6790
|
-
return n.daypicker =
|
|
6827
|
+
ref: function(I) {
|
|
6828
|
+
return n.daypicker = I;
|
|
6791
6829
|
},
|
|
6792
6830
|
onTodayButtonClick: m
|
|
6793
6831
|
}, o, {
|
|
6794
6832
|
month: this.state.month,
|
|
6795
|
-
selectedDays:
|
|
6833
|
+
selectedDays: p,
|
|
6796
6834
|
onDayClick: this.handleDayClick,
|
|
6797
6835
|
onMonthChange: this.handleMonthChange
|
|
6798
6836
|
}))
|
|
@@ -6854,7 +6892,7 @@ const Wm = /* @__PURE__ */ Sa(Rm);
|
|
|
6854
6892
|
//! license : MIT
|
|
6855
6893
|
//! momentjs.com
|
|
6856
6894
|
var uu;
|
|
6857
|
-
function
|
|
6895
|
+
function w() {
|
|
6858
6896
|
return uu.apply(null, arguments);
|
|
6859
6897
|
}
|
|
6860
6898
|
function Bm(e) {
|
|
@@ -6948,7 +6986,7 @@ function xr(e) {
|
|
|
6948
6986
|
var t = ot(NaN);
|
|
6949
6987
|
return e != null ? xt(W(t), e) : W(t).userInvalidated = !0, t;
|
|
6950
6988
|
}
|
|
6951
|
-
var po =
|
|
6989
|
+
var po = w.momentProperties = [], Zr = !1;
|
|
6952
6990
|
function ni(e, t) {
|
|
6953
6991
|
var r, n, a, i = po.length;
|
|
6954
6992
|
if (De(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), De(t._i) || (e._i = t._i), De(t._f) || (e._f = t._f), De(t._l) || (e._l = t._l), De(t._strict) || (e._strict = t._strict), De(t._tzm) || (e._tzm = t._tzm), De(t._isUTC) || (e._isUTC = t._isUTC), De(t._offset) || (e._offset = t._offset), De(t._pf) || (e._pf = W(t)), De(t._locale) || (e._locale = t._locale), i > 0)
|
|
@@ -6957,18 +6995,18 @@ function ni(e, t) {
|
|
|
6957
6995
|
return e;
|
|
6958
6996
|
}
|
|
6959
6997
|
function Pn(e) {
|
|
6960
|
-
ni(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Zr === !1 && (Zr = !0,
|
|
6998
|
+
ni(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Zr === !1 && (Zr = !0, w.updateOffset(this), Zr = !1);
|
|
6961
6999
|
}
|
|
6962
7000
|
function Ue(e) {
|
|
6963
7001
|
return e instanceof Pn || e != null && e._isAMomentObject != null;
|
|
6964
7002
|
}
|
|
6965
7003
|
function cu(e) {
|
|
6966
|
-
|
|
7004
|
+
w.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
6967
7005
|
}
|
|
6968
7006
|
function Be(e, t) {
|
|
6969
7007
|
var r = !0;
|
|
6970
7008
|
return xt(function() {
|
|
6971
|
-
if (
|
|
7009
|
+
if (w.deprecationHandler != null && w.deprecationHandler(null, e), r) {
|
|
6972
7010
|
var n = [], a, i, o, s = arguments.length;
|
|
6973
7011
|
for (i = 0; i < s; i++) {
|
|
6974
7012
|
if (a = "", typeof arguments[i] == "object") {
|
|
@@ -6992,10 +7030,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
6992
7030
|
}
|
|
6993
7031
|
var mo = {};
|
|
6994
7032
|
function du(e, t) {
|
|
6995
|
-
|
|
7033
|
+
w.deprecationHandler != null && w.deprecationHandler(e, t), mo[e] || (cu(t), mo[e] = !0);
|
|
6996
7034
|
}
|
|
6997
|
-
|
|
6998
|
-
|
|
7035
|
+
w.suppressDeprecationWarnings = !1;
|
|
7036
|
+
w.deprecationHandler = null;
|
|
6999
7037
|
function st(e) {
|
|
7000
7038
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
7001
7039
|
}
|
|
@@ -7170,7 +7208,7 @@ function B(e) {
|
|
|
7170
7208
|
}
|
|
7171
7209
|
function ln(e, t) {
|
|
7172
7210
|
return function(r) {
|
|
7173
|
-
return r != null ? (pu(this, e, r),
|
|
7211
|
+
return r != null ? (pu(this, e, r), w.updateOffset(this, t), this) : cr(this, e);
|
|
7174
7212
|
};
|
|
7175
7213
|
}
|
|
7176
7214
|
function cr(e, t) {
|
|
@@ -7220,7 +7258,7 @@ function Ne(e) {
|
|
|
7220
7258
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
7221
7259
|
}
|
|
7222
7260
|
var fa = {};
|
|
7223
|
-
function
|
|
7261
|
+
function K(e, t) {
|
|
7224
7262
|
var r, n = t, a;
|
|
7225
7263
|
for (typeof e == "string" && (e = [e]), bt(t) && (n = function(i, o) {
|
|
7226
7264
|
o[t] = B(i);
|
|
@@ -7228,7 +7266,7 @@ function Q(e, t) {
|
|
|
7228
7266
|
fa[e[r]] = n;
|
|
7229
7267
|
}
|
|
7230
7268
|
function Fn(e, t) {
|
|
7231
|
-
|
|
7269
|
+
K(e, function(r, n, a, i) {
|
|
7232
7270
|
a._w = a._w || {}, t(r, a._w, a, i);
|
|
7233
7271
|
});
|
|
7234
7272
|
}
|
|
@@ -7272,10 +7310,10 @@ S("MMM", function(e, t) {
|
|
|
7272
7310
|
S("MMMM", function(e, t) {
|
|
7273
7311
|
return t.monthsRegex(e);
|
|
7274
7312
|
});
|
|
7275
|
-
|
|
7313
|
+
K(["M", "MM"], function(e, t) {
|
|
7276
7314
|
t[pt] = B(e) - 1;
|
|
7277
7315
|
});
|
|
7278
|
-
|
|
7316
|
+
K(["MMM", "MMMM"], function(e, t, r, n) {
|
|
7279
7317
|
var a = r._locale.monthsParse(e, n, r._strict);
|
|
7280
7318
|
a != null ? t[pt] = a : W(r).invalidMonth = e;
|
|
7281
7319
|
});
|
|
@@ -7330,7 +7368,7 @@ function Cu(e, t) {
|
|
|
7330
7368
|
return r = Math.min(e.date(), Ar(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, r), e;
|
|
7331
7369
|
}
|
|
7332
7370
|
function xu(e) {
|
|
7333
|
-
return e != null ? (Cu(this, e),
|
|
7371
|
+
return e != null ? (Cu(this, e), w.updateOffset(this, !0), this) : cr(this, "Month");
|
|
7334
7372
|
}
|
|
7335
7373
|
function Ig() {
|
|
7336
7374
|
return Ar(this.year(), this.month());
|
|
@@ -7377,20 +7415,20 @@ S("YY", te, Pe);
|
|
|
7377
7415
|
S("YYYY", si, oi);
|
|
7378
7416
|
S("YYYYY", kr, Dr);
|
|
7379
7417
|
S("YYYYYY", kr, Dr);
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
t[ye] = e.length === 2 ?
|
|
7418
|
+
K(["YYYYY", "YYYYYY"], ye);
|
|
7419
|
+
K("YYYY", function(e, t) {
|
|
7420
|
+
t[ye] = e.length === 2 ? w.parseTwoDigitYear(e) : B(e);
|
|
7383
7421
|
});
|
|
7384
|
-
|
|
7385
|
-
t[ye] =
|
|
7422
|
+
K("YY", function(e, t) {
|
|
7423
|
+
t[ye] = w.parseTwoDigitYear(e);
|
|
7386
7424
|
});
|
|
7387
|
-
|
|
7425
|
+
K("Y", function(e, t) {
|
|
7388
7426
|
t[ye] = parseInt(e, 10);
|
|
7389
7427
|
});
|
|
7390
7428
|
function In(e) {
|
|
7391
7429
|
return wr(e) ? 366 : 365;
|
|
7392
7430
|
}
|
|
7393
|
-
|
|
7431
|
+
w.parseTwoDigitYear = function(e) {
|
|
7394
7432
|
return B(e) + (B(e) > 68 ? 1900 : 2e3);
|
|
7395
7433
|
};
|
|
7396
7434
|
var Du = ln("FullYear", !0);
|
|
@@ -7657,30 +7695,30 @@ S("hmm", vu);
|
|
|
7657
7695
|
S("hmmss", bu);
|
|
7658
7696
|
S("Hmm", vu);
|
|
7659
7697
|
S("Hmmss", bu);
|
|
7660
|
-
|
|
7661
|
-
|
|
7698
|
+
K(["H", "HH"], fe);
|
|
7699
|
+
K(["k", "kk"], function(e, t, r) {
|
|
7662
7700
|
var n = B(e);
|
|
7663
7701
|
t[fe] = n === 24 ? 0 : n;
|
|
7664
7702
|
});
|
|
7665
|
-
|
|
7703
|
+
K(["a", "A"], function(e, t, r) {
|
|
7666
7704
|
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
7667
7705
|
});
|
|
7668
|
-
|
|
7706
|
+
K(["h", "hh"], function(e, t, r) {
|
|
7669
7707
|
t[fe] = B(e), W(r).bigHour = !0;
|
|
7670
7708
|
});
|
|
7671
|
-
|
|
7709
|
+
K("hmm", function(e, t, r) {
|
|
7672
7710
|
var n = e.length - 2;
|
|
7673
7711
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n)), W(r).bigHour = !0;
|
|
7674
7712
|
});
|
|
7675
|
-
|
|
7713
|
+
K("hmmss", function(e, t, r) {
|
|
7676
7714
|
var n = e.length - 4, a = e.length - 2;
|
|
7677
7715
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n, 2)), t[mt] = B(e.substr(a)), W(r).bigHour = !0;
|
|
7678
7716
|
});
|
|
7679
|
-
|
|
7717
|
+
K("Hmm", function(e, t, r) {
|
|
7680
7718
|
var n = e.length - 2;
|
|
7681
7719
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n));
|
|
7682
7720
|
});
|
|
7683
|
-
|
|
7721
|
+
K("Hmmss", function(e, t, r) {
|
|
7684
7722
|
var n = e.length - 4, a = e.length - 2;
|
|
7685
7723
|
t[fe] = B(e.substr(0, n)), t[je] = B(e.substr(n, 2)), t[mt] = B(e.substr(a));
|
|
7686
7724
|
});
|
|
@@ -7939,9 +7977,9 @@ function gv(e) {
|
|
|
7939
7977
|
delete e._isValid;
|
|
7940
7978
|
else
|
|
7941
7979
|
return;
|
|
7942
|
-
e._strict ? e._isValid = !1 :
|
|
7980
|
+
e._strict ? e._isValid = !1 : w.createFromInputFallback(e);
|
|
7943
7981
|
}
|
|
7944
|
-
|
|
7982
|
+
w.createFromInputFallback = Be(
|
|
7945
7983
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
7946
7984
|
function(e) {
|
|
7947
7985
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -7951,7 +7989,7 @@ function Xt(e, t, r) {
|
|
|
7951
7989
|
return e ?? t ?? r;
|
|
7952
7990
|
}
|
|
7953
7991
|
function vv(e) {
|
|
7954
|
-
var t = new Date(
|
|
7992
|
+
var t = new Date(w.now());
|
|
7955
7993
|
return e._useUTC ? [
|
|
7956
7994
|
t.getUTCFullYear(),
|
|
7957
7995
|
t.getUTCMonth(),
|
|
@@ -7979,16 +8017,16 @@ function bv(e) {
|
|
|
7979
8017
|
An(ee(), 1, 4).year
|
|
7980
8018
|
), n = Xt(t.W, 1), a = Xt(t.E, 1), (a < 1 || a > 7) && (u = !0)) : (i = e._locale._week.dow, o = e._locale._week.doy, l = An(ee(), i, o), r = Xt(t.gg, e._a[ye], l.year), n = Xt(t.w, l.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (u = !0)) : t.e != null ? (a = t.e + i, (t.e < 0 || t.e > 6) && (u = !0)) : a = i), n < 1 || n > gt(r, i, o) ? W(e)._overflowWeeks = !0 : u != null ? W(e)._overflowWeekday = !0 : (s = Mu(r, n, a, i, o), e._a[ye] = s.year, e._dayOfYear = s.dayOfYear);
|
|
7981
8019
|
}
|
|
7982
|
-
|
|
8020
|
+
w.ISO_8601 = function() {
|
|
7983
8021
|
};
|
|
7984
|
-
|
|
8022
|
+
w.RFC_2822 = function() {
|
|
7985
8023
|
};
|
|
7986
8024
|
function pi(e) {
|
|
7987
|
-
if (e._f ===
|
|
8025
|
+
if (e._f === w.ISO_8601) {
|
|
7988
8026
|
Nu(e);
|
|
7989
8027
|
return;
|
|
7990
8028
|
}
|
|
7991
|
-
if (e._f ===
|
|
8029
|
+
if (e._f === w.RFC_2822) {
|
|
7992
8030
|
_u(e);
|
|
7993
8031
|
return;
|
|
7994
8032
|
}
|
|
@@ -8039,9 +8077,9 @@ function Ou(e) {
|
|
|
8039
8077
|
}
|
|
8040
8078
|
function wv(e) {
|
|
8041
8079
|
var t = e._i;
|
|
8042
|
-
De(t) ? e._d = new Date(
|
|
8080
|
+
De(t) ? e._d = new Date(w.now()) : On(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? gv(e) : ze(t) ? (e._a = lu(t.slice(0), function(r) {
|
|
8043
8081
|
return parseInt(r, 10);
|
|
8044
|
-
}), hi(e)) : Tt(t) ? Cv(e) : bt(t) ? e._d = new Date(t) :
|
|
8082
|
+
}), hi(e)) : Tt(t) ? Cv(e) : bt(t) ? e._d = new Date(t) : w.createFromInputFallback(e);
|
|
8045
8083
|
}
|
|
8046
8084
|
function Pu(e, t, r, n, a) {
|
|
8047
8085
|
var i = {};
|
|
@@ -8139,7 +8177,7 @@ Fu("Z", ":");
|
|
|
8139
8177
|
Fu("ZZ", "");
|
|
8140
8178
|
S("Z", Er);
|
|
8141
8179
|
S("ZZ", Er);
|
|
8142
|
-
|
|
8180
|
+
K(["Z", "ZZ"], function(e, t, r) {
|
|
8143
8181
|
r._useUTC = !0, r._tzm = mi(Er, e);
|
|
8144
8182
|
});
|
|
8145
8183
|
var Pv = /([\+\-]|\d\d)/gi;
|
|
@@ -8149,12 +8187,12 @@ function mi(e, t) {
|
|
|
8149
8187
|
}
|
|
8150
8188
|
function gi(e, t) {
|
|
8151
8189
|
var r, n;
|
|
8152
|
-
return t._isUTC ? (r = t.clone(), n = (Ue(e) || On(e) ? e.valueOf() : ee(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n),
|
|
8190
|
+
return t._isUTC ? (r = t.clone(), n = (Ue(e) || On(e) ? e.valueOf() : ee(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), w.updateOffset(r, !1), r) : ee(e).local();
|
|
8153
8191
|
}
|
|
8154
8192
|
function pa(e) {
|
|
8155
8193
|
return -Math.round(e._d.getTimezoneOffset());
|
|
8156
8194
|
}
|
|
8157
|
-
|
|
8195
|
+
w.updateOffset = function() {
|
|
8158
8196
|
};
|
|
8159
8197
|
function Tv(e, t, r) {
|
|
8160
8198
|
var n = this._offset || 0, a;
|
|
@@ -8171,7 +8209,7 @@ function Tv(e, t, r) {
|
|
|
8171
8209
|
Je(e - n, "m"),
|
|
8172
8210
|
1,
|
|
8173
8211
|
!1
|
|
8174
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
8212
|
+
) : this._changeInProgress || (this._changeInProgress = !0, w.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
8175
8213
|
} else
|
|
8176
8214
|
return this._isUTC ? n : pa(this);
|
|
8177
8215
|
}
|
|
@@ -8267,7 +8305,7 @@ function Ru(e, t) {
|
|
|
8267
8305
|
}
|
|
8268
8306
|
function Wu(e, t, r, n) {
|
|
8269
8307
|
var a = t._milliseconds, i = ha(t._days), o = ha(t._months);
|
|
8270
|
-
e.isValid() && (n = n ?? !0, o && Cu(e, cr(e, "Month") + o * r), i && pu(e, "Date", cr(e, "Date") + i * r), a && e._d.setTime(e._d.valueOf() + a * r), n &&
|
|
8308
|
+
e.isValid() && (n = n ?? !0, o && Cu(e, cr(e, "Month") + o * r), i && pu(e, "Date", cr(e, "Date") + i * r), a && e._d.setTime(e._d.valueOf() + a * r), n && w.updateOffset(e, i || o));
|
|
8271
8309
|
}
|
|
8272
8310
|
var zv = Ru(1, "add"), Uv = Ru(-1, "subtract");
|
|
8273
8311
|
function Bu(e) {
|
|
@@ -8332,7 +8370,7 @@ function qv(e, t) {
|
|
|
8332
8370
|
}
|
|
8333
8371
|
function eb(e, t) {
|
|
8334
8372
|
arguments.length === 1 && (arguments[0] ? $v(arguments[0]) ? (e = arguments[0], t = void 0) : Kv(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
8335
|
-
var r = e || ee(), n = gi(r, this).startOf("day"), a =
|
|
8373
|
+
var r = e || ee(), n = gi(r, this).startOf("day"), a = w.calendarFormat(this, n) || "sameElse", i = t && (st(t[a]) ? t[a].call(this, r) : t[a]);
|
|
8336
8374
|
return this.format(
|
|
8337
8375
|
i || this.localeData().calendar(a, this, ee(r))
|
|
8338
8376
|
);
|
|
@@ -8404,8 +8442,8 @@ function nr(e, t) {
|
|
|
8404
8442
|
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), n = e.clone().add(r, "months"), a, i;
|
|
8405
8443
|
return t - n < 0 ? (a = e.clone().add(r - 1, "months"), i = (t - n) / (n - a)) : (a = e.clone().add(r + 1, "months"), i = (t - n) / (a - n)), -(r + i) || 0;
|
|
8406
8444
|
}
|
|
8407
|
-
|
|
8408
|
-
|
|
8445
|
+
w.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
8446
|
+
w.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
8409
8447
|
function lb() {
|
|
8410
8448
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
8411
8449
|
}
|
|
@@ -8428,7 +8466,7 @@ function db() {
|
|
|
8428
8466
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', n = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS", i = t + '[")]', this.format(r + n + a + i);
|
|
8429
8467
|
}
|
|
8430
8468
|
function fb(e) {
|
|
8431
|
-
e || (e = this.isUtc() ?
|
|
8469
|
+
e || (e = this.isUtc() ? w.defaultFormatUtc : w.defaultFormat);
|
|
8432
8470
|
var t = er(this, e);
|
|
8433
8471
|
return this.localeData().postformat(t);
|
|
8434
8472
|
}
|
|
@@ -8516,7 +8554,7 @@ function vb(e) {
|
|
|
8516
8554
|
t = this._d.valueOf(), t -= Kt(t, hr);
|
|
8517
8555
|
break;
|
|
8518
8556
|
}
|
|
8519
|
-
return this._d.setTime(t),
|
|
8557
|
+
return this._d.setTime(t), w.updateOffset(this, !0), this;
|
|
8520
8558
|
}
|
|
8521
8559
|
function bb(e) {
|
|
8522
8560
|
var t, r;
|
|
@@ -8567,7 +8605,7 @@ function bb(e) {
|
|
|
8567
8605
|
t = this._d.valueOf(), t += hr - Kt(t, hr) - 1;
|
|
8568
8606
|
break;
|
|
8569
8607
|
}
|
|
8570
|
-
return this._d.setTime(t),
|
|
8608
|
+
return this._d.setTime(t), w.updateOffset(this, !0), this;
|
|
8571
8609
|
}
|
|
8572
8610
|
function yb() {
|
|
8573
8611
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
@@ -8637,7 +8675,7 @@ S("NN", bi);
|
|
|
8637
8675
|
S("NNN", bi);
|
|
8638
8676
|
S("NNNN", Bb);
|
|
8639
8677
|
S("NNNNN", Yb);
|
|
8640
|
-
|
|
8678
|
+
K(
|
|
8641
8679
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
8642
8680
|
function(e, t, r, n) {
|
|
8643
8681
|
var a = r._locale.erasParse(e, n, r._strict);
|
|
@@ -8649,8 +8687,8 @@ S("yy", cn);
|
|
|
8649
8687
|
S("yyy", cn);
|
|
8650
8688
|
S("yyyy", cn);
|
|
8651
8689
|
S("yo", Vb);
|
|
8652
|
-
|
|
8653
|
-
|
|
8690
|
+
K(["y", "yy", "yyy", "yyyy"], ye);
|
|
8691
|
+
K(["yo"], function(e, t, r, n) {
|
|
8654
8692
|
var a;
|
|
8655
8693
|
r._locale._eraYearOrdinalRegex && (a = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[ye] = r._locale.eraYearOrdinalParse(e, a) : t[ye] = parseInt(e, 10);
|
|
8656
8694
|
});
|
|
@@ -8659,7 +8697,7 @@ function Ab(e, t) {
|
|
|
8659
8697
|
for (r = 0, n = i.length; r < n; ++r) {
|
|
8660
8698
|
switch (typeof i[r].since) {
|
|
8661
8699
|
case "string":
|
|
8662
|
-
a =
|
|
8700
|
+
a = w(i[r].since).startOf("day"), i[r].since = a.valueOf();
|
|
8663
8701
|
break;
|
|
8664
8702
|
}
|
|
8665
8703
|
switch (typeof i[r].until) {
|
|
@@ -8667,7 +8705,7 @@ function Ab(e, t) {
|
|
|
8667
8705
|
i[r].until = 1 / 0;
|
|
8668
8706
|
break;
|
|
8669
8707
|
case "string":
|
|
8670
|
-
a =
|
|
8708
|
+
a = w(i[r].until).startOf("day").valueOf(), i[r].until = a.valueOf();
|
|
8671
8709
|
break;
|
|
8672
8710
|
}
|
|
8673
8711
|
}
|
|
@@ -8698,7 +8736,7 @@ function Nb(e, t, r) {
|
|
|
8698
8736
|
}
|
|
8699
8737
|
function _b(e, t) {
|
|
8700
8738
|
var r = e.since <= e.until ? 1 : -1;
|
|
8701
|
-
return t === void 0 ?
|
|
8739
|
+
return t === void 0 ? w(e.since).year() : w(e.since).year() + (t - e.offset) * r;
|
|
8702
8740
|
}
|
|
8703
8741
|
function Ob() {
|
|
8704
8742
|
var e, t, r, n = this.localeData().eras();
|
|
@@ -8725,7 +8763,7 @@ function Fb() {
|
|
|
8725
8763
|
var e, t, r, n, a = this.localeData().eras();
|
|
8726
8764
|
for (e = 0, t = a.length; e < t; ++e)
|
|
8727
8765
|
if (r = a[e].since <= a[e].until ? 1 : -1, n = this.clone().startOf("day").valueOf(), a[e].since <= n && n <= a[e].until || a[e].until <= n && n <= a[e].since)
|
|
8728
|
-
return (this.year() -
|
|
8766
|
+
return (this.year() - w(a[e].since).year()) * r + a[e].offset;
|
|
8729
8767
|
return this.year();
|
|
8730
8768
|
}
|
|
8731
8769
|
function Gb(e) {
|
|
@@ -8790,7 +8828,7 @@ Fn(
|
|
|
8790
8828
|
}
|
|
8791
8829
|
);
|
|
8792
8830
|
Fn(["gg", "GG"], function(e, t, r, n) {
|
|
8793
|
-
t[n] =
|
|
8831
|
+
t[n] = w.parseTwoDigitYear(e);
|
|
8794
8832
|
});
|
|
8795
8833
|
function Lb(e) {
|
|
8796
8834
|
return ju.call(
|
|
@@ -8838,7 +8876,7 @@ _("Q", 0, "Qo", "quarter");
|
|
|
8838
8876
|
Ie("quarter", "Q");
|
|
8839
8877
|
Ce("quarter", 7);
|
|
8840
8878
|
S("Q", mu);
|
|
8841
|
-
|
|
8879
|
+
K("Q", function(e, t) {
|
|
8842
8880
|
t[pt] = (B(e) - 1) * 3;
|
|
8843
8881
|
});
|
|
8844
8882
|
function $b(e) {
|
|
@@ -8852,8 +8890,8 @@ S("DD", te, Pe);
|
|
|
8852
8890
|
S("Do", function(e, t) {
|
|
8853
8891
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
8854
8892
|
});
|
|
8855
|
-
|
|
8856
|
-
|
|
8893
|
+
K(["D", "DD"], rt);
|
|
8894
|
+
K("Do", function(e, t) {
|
|
8857
8895
|
t[rt] = B(e.match(te)[0]);
|
|
8858
8896
|
});
|
|
8859
8897
|
var zu = ln("Date", !0);
|
|
@@ -8862,7 +8900,7 @@ Ie("dayOfYear", "DDD");
|
|
|
8862
8900
|
Ce("dayOfYear", 4);
|
|
8863
8901
|
S("DDD", Mr);
|
|
8864
8902
|
S("DDDD", gu);
|
|
8865
|
-
|
|
8903
|
+
K(["DDD", "DDDD"], function(e, t, r) {
|
|
8866
8904
|
r._dayOfYear = B(e);
|
|
8867
8905
|
});
|
|
8868
8906
|
function Jb(e) {
|
|
@@ -8876,14 +8914,14 @@ Ie("minute", "m");
|
|
|
8876
8914
|
Ce("minute", 14);
|
|
8877
8915
|
S("m", te);
|
|
8878
8916
|
S("mm", te, Pe);
|
|
8879
|
-
|
|
8917
|
+
K(["m", "mm"], je);
|
|
8880
8918
|
var Qb = ln("Minutes", !1);
|
|
8881
8919
|
_("s", ["ss", 2], 0, "second");
|
|
8882
8920
|
Ie("second", "s");
|
|
8883
8921
|
Ce("second", 15);
|
|
8884
8922
|
S("s", te);
|
|
8885
8923
|
S("ss", te, Pe);
|
|
8886
|
-
|
|
8924
|
+
K(["s", "ss"], mt);
|
|
8887
8925
|
var Kb = ln("Seconds", !1);
|
|
8888
8926
|
_("S", 0, 0, function() {
|
|
8889
8927
|
return ~~(this.millisecond() / 100);
|
|
@@ -8922,7 +8960,7 @@ function qb(e, t) {
|
|
|
8922
8960
|
t[Ot] = B(("0." + e) * 1e3);
|
|
8923
8961
|
}
|
|
8924
8962
|
for (wt = "S"; wt.length <= 9; wt += "S")
|
|
8925
|
-
|
|
8963
|
+
K(wt, qb);
|
|
8926
8964
|
Uu = ln("Milliseconds", !1);
|
|
8927
8965
|
_("z", 0, 0, "zoneAbbr");
|
|
8928
8966
|
_("zz", 0, 0, "zoneName");
|
|
@@ -9135,11 +9173,11 @@ Dt("en", {
|
|
|
9135
9173
|
return e + r;
|
|
9136
9174
|
}
|
|
9137
9175
|
});
|
|
9138
|
-
|
|
9176
|
+
w.lang = Be(
|
|
9139
9177
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
9140
9178
|
Dt
|
|
9141
9179
|
);
|
|
9142
|
-
|
|
9180
|
+
w.langData = Be(
|
|
9143
9181
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
9144
9182
|
yt
|
|
9145
9183
|
);
|
|
@@ -9246,8 +9284,8 @@ function Ty(e, t, r, n, a) {
|
|
|
9246
9284
|
return a.relativeTime(t || 1, !!r, e, n);
|
|
9247
9285
|
}
|
|
9248
9286
|
function Fy(e, t, r, n) {
|
|
9249
|
-
var a = Je(e).abs(), i = ht(a.as("s")), o = ht(a.as("m")), s = ht(a.as("h")), u = ht(a.as("d")), l = ht(a.as("M")), c = ht(a.as("w")), d = ht(a.as("y")),
|
|
9250
|
-
return r.w != null && (
|
|
9287
|
+
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];
|
|
9288
|
+
return r.w != null && (h = h || c <= 1 && ["w"] || c < r.w && ["ww", c]), h = h || l <= 1 && ["M"] || l < r.M && ["MM", l] || d <= 1 && ["y"] || ["yy", d], h[2] = t, h[3] = +e > 0, h[4] = n, Ty.apply(null, h);
|
|
9251
9289
|
}
|
|
9252
9290
|
function Gy(e) {
|
|
9253
9291
|
return e === void 0 ? ht : typeof e == "function" ? (ht = e, !0) : !1;
|
|
@@ -9313,43 +9351,43 @@ _("X", 0, 0, "unix");
|
|
|
9313
9351
|
_("x", 0, 0, "valueOf");
|
|
9314
9352
|
S("x", Sr);
|
|
9315
9353
|
S("X", og);
|
|
9316
|
-
|
|
9354
|
+
K("X", function(e, t, r) {
|
|
9317
9355
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
9318
9356
|
});
|
|
9319
|
-
|
|
9357
|
+
K("x", function(e, t, r) {
|
|
9320
9358
|
r._d = new Date(B(e));
|
|
9321
9359
|
});
|
|
9322
9360
|
//! moment.js
|
|
9323
|
-
|
|
9361
|
+
w.version = "2.29.4";
|
|
9324
9362
|
Bm(ee);
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9363
|
+
w.fn = C;
|
|
9364
|
+
w.min = kv;
|
|
9365
|
+
w.max = Sv;
|
|
9366
|
+
w.now = Ev;
|
|
9367
|
+
w.utc = ot;
|
|
9368
|
+
w.unix = ny;
|
|
9369
|
+
w.months = ay;
|
|
9370
|
+
w.isDate = On;
|
|
9371
|
+
w.locale = Dt;
|
|
9372
|
+
w.invalid = xr;
|
|
9373
|
+
w.duration = Je;
|
|
9374
|
+
w.isMoment = Ue;
|
|
9375
|
+
w.weekdays = oy;
|
|
9376
|
+
w.parseZone = ry;
|
|
9377
|
+
w.localeData = yt;
|
|
9378
|
+
w.isDuration = tr;
|
|
9379
|
+
w.monthsShort = iy;
|
|
9380
|
+
w.weekdaysMin = uy;
|
|
9381
|
+
w.defineLocale = di;
|
|
9382
|
+
w.updateLocale = rv;
|
|
9383
|
+
w.locales = av;
|
|
9384
|
+
w.weekdaysShort = sy;
|
|
9385
|
+
w.normalizeUnits = Ye;
|
|
9386
|
+
w.relativeTimeRounding = Gy;
|
|
9387
|
+
w.relativeTimeThreshold = Ry;
|
|
9388
|
+
w.calendarFormat = qv;
|
|
9389
|
+
w.prototype = C;
|
|
9390
|
+
w.HTML5_FMT = {
|
|
9353
9391
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
9354
9392
|
// <input type="datetime-local" />
|
|
9355
9393
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -9371,7 +9409,7 @@ x.HTML5_FMT = {
|
|
|
9371
9409
|
};
|
|
9372
9410
|
const By = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9373
9411
|
__proto__: null,
|
|
9374
|
-
default:
|
|
9412
|
+
default: w
|
|
9375
9413
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9376
9414
|
var Qe = {};
|
|
9377
9415
|
const Yy = /* @__PURE__ */ Mc(By);
|
|
@@ -9438,7 +9476,7 @@ const Hy = /* @__PURE__ */ Sa(ga);
|
|
|
9438
9476
|
//! moment.js locale configuration
|
|
9439
9477
|
//! locale : English (United Kingdom) [en-gb]
|
|
9440
9478
|
//! author : Chris Gedrim : https://github.com/chrisgedrim
|
|
9441
|
-
|
|
9479
|
+
w.defineLocale("en-gb", {
|
|
9442
9480
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
9443
9481
|
"_"
|
|
9444
9482
|
),
|
|
@@ -9553,7 +9591,7 @@ const ce = Do({
|
|
|
9553
9591
|
id: "datePicker.button.closeYearMonthPicker",
|
|
9554
9592
|
defaultMessage: "Done"
|
|
9555
9593
|
}
|
|
9556
|
-
}), Zy = (e, t) => e ?
|
|
9594
|
+
}), Zy = (e, t) => e ? w(e).locale(t).format("L") : null, Xy = k.forwardRef((e, t) => /* @__PURE__ */ k.createElement("div", { style: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ k.createElement(
|
|
9557
9595
|
vl,
|
|
9558
9596
|
{
|
|
9559
9597
|
style: {
|
|
@@ -9579,24 +9617,24 @@ const ce = Do({
|
|
|
9579
9617
|
dayPickerProps: c = {},
|
|
9580
9618
|
...d
|
|
9581
9619
|
}) => {
|
|
9582
|
-
const { current:
|
|
9620
|
+
const { current: h } = _e(l.id || nn()), [p, f] = se(i), { from: m, to: g } = n, v = w.localeData(t).longDateFormat("L"), I = Zy(s || n[a], t), y = !!m && !!g, x = Wt();
|
|
9583
9621
|
So(
|
|
9584
9622
|
s && n[a],
|
|
9585
9623
|
"[DatePicker] Both the `value` and `date` props have been used.\n The `date` prop will be ignored. To get rid of this warning, remove one of these props."
|
|
9586
9624
|
);
|
|
9587
|
-
const b = ({ month:
|
|
9588
|
-
f(new Date(T,
|
|
9589
|
-
},
|
|
9625
|
+
const b = ({ month: D, year: T }) => {
|
|
9626
|
+
f(new Date(T, D));
|
|
9627
|
+
}, M = We(() => y ? a === "from" ? {
|
|
9590
9628
|
before: o.before,
|
|
9591
9629
|
after: g || o.after
|
|
9592
9630
|
} : {
|
|
9593
9631
|
before: m || o.before,
|
|
9594
9632
|
after: o.after
|
|
9595
|
-
} : o, [a,
|
|
9596
|
-
return /* @__PURE__ */ k.createElement(qy, { width: r, hasRange:
|
|
9633
|
+
} : o, [a, y, o, m, g]);
|
|
9634
|
+
return /* @__PURE__ */ k.createElement(qy, { width: r, hasRange: y }, e && /* @__PURE__ */ k.createElement(
|
|
9597
9635
|
"label",
|
|
9598
9636
|
{
|
|
9599
|
-
htmlFor:
|
|
9637
|
+
htmlFor: h,
|
|
9600
9638
|
"aria-label": e,
|
|
9601
9639
|
style: { margin: "4px 0" }
|
|
9602
9640
|
},
|
|
@@ -9605,7 +9643,7 @@ const ce = Do({
|
|
|
9605
9643
|
Wm,
|
|
9606
9644
|
{
|
|
9607
9645
|
component: Xy,
|
|
9608
|
-
value:
|
|
9646
|
+
value: I,
|
|
9609
9647
|
key: n[a],
|
|
9610
9648
|
formatDate: ga.formatDate,
|
|
9611
9649
|
parseDate: ga.parseDate,
|
|
@@ -9614,23 +9652,23 @@ const ce = Do({
|
|
|
9614
9652
|
locale: t,
|
|
9615
9653
|
localeUtils: Hy,
|
|
9616
9654
|
className: "Range",
|
|
9617
|
-
disabledDays:
|
|
9655
|
+
disabledDays: M,
|
|
9618
9656
|
modifiers: { before: m, after: g },
|
|
9619
|
-
selectedDays:
|
|
9657
|
+
selectedDays: y ? { from: m, to: g } : void 0,
|
|
9620
9658
|
navbarElement: /* @__PURE__ */ k.createElement(
|
|
9621
9659
|
jy,
|
|
9622
9660
|
{
|
|
9623
9661
|
onChangeMonthYear: b,
|
|
9624
|
-
disabledDays:
|
|
9662
|
+
disabledDays: M
|
|
9625
9663
|
}
|
|
9626
9664
|
),
|
|
9627
9665
|
showOutsideDays: !0,
|
|
9628
|
-
month:
|
|
9666
|
+
month: p,
|
|
9629
9667
|
...c
|
|
9630
9668
|
},
|
|
9631
9669
|
ref: u,
|
|
9632
9670
|
inputProps: {
|
|
9633
|
-
id:
|
|
9671
|
+
id: h,
|
|
9634
9672
|
"aria-label": e,
|
|
9635
9673
|
/**
|
|
9636
9674
|
* If your console gives you a log error like this:
|
|
@@ -9639,7 +9677,7 @@ const ce = Do({
|
|
|
9639
9677
|
* It will be fixed when we upgrade to React 18.
|
|
9640
9678
|
* See https://github.com/facebook/react/pull/22142
|
|
9641
9679
|
*/
|
|
9642
|
-
"aria-description":
|
|
9680
|
+
"aria-description": x.formatMessage(
|
|
9643
9681
|
ce.selectDateFormatDescription,
|
|
9644
9682
|
{
|
|
9645
9683
|
localeFormat: v
|
|
@@ -9703,12 +9741,12 @@ const jy = ({
|
|
|
9703
9741
|
disabledDays: o
|
|
9704
9742
|
}) => {
|
|
9705
9743
|
const s = Wt(), [u, l] = se(!1), c = We(
|
|
9706
|
-
() => !(o != null && o.before) || new Date(t.toDateString()) >=
|
|
9744
|
+
() => !(o != null && o.before) || new Date(t.toDateString()) >= w(o.before).startOf("month"),
|
|
9707
9745
|
[t, o]
|
|
9708
9746
|
), d = We(
|
|
9709
|
-
() => !(o != null && o.after) || new Date(r.toDateString()) <=
|
|
9747
|
+
() => !(o != null && o.after) || new Date(r.toDateString()) <= w(o.after).startOf("month"),
|
|
9710
9748
|
[r, o]
|
|
9711
|
-
),
|
|
9749
|
+
), h = { fill: qt, cursor: "default" };
|
|
9712
9750
|
return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(e0, null, /* @__PURE__ */ k.createElement(
|
|
9713
9751
|
Qr,
|
|
9714
9752
|
{
|
|
@@ -9716,7 +9754,7 @@ const jy = ({
|
|
|
9716
9754
|
isActionIcon: !0,
|
|
9717
9755
|
onClick: () => c && n(),
|
|
9718
9756
|
"aria-label": s.formatMessage(ce.pickerPrevMonth),
|
|
9719
|
-
style: !c &&
|
|
9757
|
+
style: !c && h || {},
|
|
9720
9758
|
"data-tip": !0,
|
|
9721
9759
|
"data-for": "datepicker-prev-month",
|
|
9722
9760
|
"data-testid": "datepicker-select-prev-month"
|
|
@@ -9729,7 +9767,7 @@ const jy = ({
|
|
|
9729
9767
|
"data-tip": !0,
|
|
9730
9768
|
"data-for": "datepicker-select-year",
|
|
9731
9769
|
"data-testid": "datepicker-select-year",
|
|
9732
|
-
text:
|
|
9770
|
+
text: w(e).format("MMMM YYYY")
|
|
9733
9771
|
}
|
|
9734
9772
|
), /* @__PURE__ */ k.createElement(
|
|
9735
9773
|
Qr,
|
|
@@ -9738,7 +9776,7 @@ const jy = ({
|
|
|
9738
9776
|
isActionIcon: !0,
|
|
9739
9777
|
onClick: () => d && a(),
|
|
9740
9778
|
"aria-label": s.formatMessage(ce.pickerNextMonth),
|
|
9741
|
-
style: !d &&
|
|
9779
|
+
style: !d && h || {},
|
|
9742
9780
|
"data-tip": !0,
|
|
9743
9781
|
"data-for": "datepicker-next-month",
|
|
9744
9782
|
"data-testid": "datepicker-select-next-month"
|
|
@@ -9766,8 +9804,8 @@ const jy = ({
|
|
|
9766
9804
|
{
|
|
9767
9805
|
date: e,
|
|
9768
9806
|
disabledDays: o,
|
|
9769
|
-
onChange: (
|
|
9770
|
-
l(!1), i(
|
|
9807
|
+
onChange: (p) => {
|
|
9808
|
+
l(!1), i(p);
|
|
9771
9809
|
}
|
|
9772
9810
|
}
|
|
9773
9811
|
));
|
|
@@ -9775,14 +9813,14 @@ const jy = ({
|
|
|
9775
9813
|
const n = Wt(), [a, i] = se(new Date(e).getMonth()), [o, s] = se(
|
|
9776
9814
|
new Date(e).getFullYear()
|
|
9777
9815
|
), { after: u, before: l } = t || {}, c = () => {
|
|
9778
|
-
const f = (/* @__PURE__ */ new Date()).getFullYear(), { after: m, before: g } = t || {}, v = g ? new Date(g).getFullYear() : 1939,
|
|
9779
|
-
for (let
|
|
9780
|
-
|
|
9781
|
-
return
|
|
9816
|
+
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 = [];
|
|
9817
|
+
for (let x = I; x >= v; x--)
|
|
9818
|
+
y.push({ label: x, value: x });
|
|
9819
|
+
return y;
|
|
9782
9820
|
}, d = (f) => {
|
|
9783
|
-
const m =
|
|
9784
|
-
return l && m <
|
|
9785
|
-
},
|
|
9821
|
+
const m = w().set({ year: o, month: f }).startOf("month");
|
|
9822
|
+
return l && m < w(l).startOf("month") || u && m > w(u).startOf("month");
|
|
9823
|
+
}, h = w.monthsShort(), p = ({ children: f, ...m }) => Sn.Option && /* @__PURE__ */ k.createElement(
|
|
9786
9824
|
"div",
|
|
9787
9825
|
{
|
|
9788
9826
|
onMouseDown: (g) => g.stopPropagation(),
|
|
@@ -9797,7 +9835,7 @@ const jy = ({
|
|
|
9797
9835
|
{
|
|
9798
9836
|
"aria-label": n.formatMessage(ce.selectYearDropdown),
|
|
9799
9837
|
options: c(),
|
|
9800
|
-
components: { Option:
|
|
9838
|
+
components: { Option: p },
|
|
9801
9839
|
value: {
|
|
9802
9840
|
label: o,
|
|
9803
9841
|
value: o
|
|
@@ -9806,7 +9844,7 @@ const jy = ({
|
|
|
9806
9844
|
s(f.value);
|
|
9807
9845
|
}
|
|
9808
9846
|
}
|
|
9809
|
-
)), /* @__PURE__ */ k.createElement(Qy, null,
|
|
9847
|
+
)), /* @__PURE__ */ k.createElement(Qy, null, h.map((f, m) => /* @__PURE__ */ k.createElement("li", { key: f, value: m }, /* @__PURE__ */ k.createElement(
|
|
9810
9848
|
Ky,
|
|
9811
9849
|
{
|
|
9812
9850
|
"data-testid": `select-month-${f}`,
|
|
@@ -10043,51 +10081,51 @@ var t0 = "Expected a function", yo = NaN, n0 = "[object Symbol]", r0 = /^\s+|\s+
|
|
|
10043
10081
|
return c0.Date.now();
|
|
10044
10082
|
};
|
|
10045
10083
|
function m0(e, t, r) {
|
|
10046
|
-
var n, a, i, o, s, u, l = 0, c = !1, d = !1,
|
|
10084
|
+
var n, a, i, o, s, u, l = 0, c = !1, d = !1, h = !0;
|
|
10047
10085
|
if (typeof e != "function")
|
|
10048
10086
|
throw new TypeError(t0);
|
|
10049
|
-
t = Io(t) || 0, va(r) && (c = !!r.leading, d = "maxWait" in r, i = d ? h0(Io(r.maxWait) || 0, t) : i,
|
|
10050
|
-
function
|
|
10051
|
-
var
|
|
10052
|
-
return n = a = void 0, l =
|
|
10087
|
+
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);
|
|
10088
|
+
function p(M) {
|
|
10089
|
+
var D = n, T = a;
|
|
10090
|
+
return n = a = void 0, l = M, o = e.apply(T, D), o;
|
|
10053
10091
|
}
|
|
10054
|
-
function f(
|
|
10055
|
-
return l =
|
|
10092
|
+
function f(M) {
|
|
10093
|
+
return l = M, s = setTimeout(v, t), c ? p(M) : o;
|
|
10056
10094
|
}
|
|
10057
|
-
function m(
|
|
10058
|
-
var
|
|
10095
|
+
function m(M) {
|
|
10096
|
+
var D = M - u, T = M - l, E = t - D;
|
|
10059
10097
|
return d ? p0(E, i - T) : E;
|
|
10060
10098
|
}
|
|
10061
|
-
function g(
|
|
10062
|
-
var
|
|
10063
|
-
return u === void 0 ||
|
|
10099
|
+
function g(M) {
|
|
10100
|
+
var D = M - u, T = M - l;
|
|
10101
|
+
return u === void 0 || D >= t || D < 0 || d && T >= i;
|
|
10064
10102
|
}
|
|
10065
10103
|
function v() {
|
|
10066
|
-
var
|
|
10067
|
-
if (g(
|
|
10068
|
-
return
|
|
10069
|
-
s = setTimeout(v, m(
|
|
10104
|
+
var M = Ur();
|
|
10105
|
+
if (g(M))
|
|
10106
|
+
return I(M);
|
|
10107
|
+
s = setTimeout(v, m(M));
|
|
10070
10108
|
}
|
|
10071
|
-
function
|
|
10072
|
-
return s = void 0,
|
|
10109
|
+
function I(M) {
|
|
10110
|
+
return s = void 0, h && n ? p(M) : (n = a = void 0, o);
|
|
10073
10111
|
}
|
|
10074
|
-
function
|
|
10112
|
+
function y() {
|
|
10075
10113
|
s !== void 0 && clearTimeout(s), l = 0, n = u = a = s = void 0;
|
|
10076
10114
|
}
|
|
10077
|
-
function
|
|
10078
|
-
return s === void 0 ? o :
|
|
10115
|
+
function x() {
|
|
10116
|
+
return s === void 0 ? o : I(Ur());
|
|
10079
10117
|
}
|
|
10080
10118
|
function b() {
|
|
10081
|
-
var
|
|
10082
|
-
if (n = arguments, a = this, u =
|
|
10119
|
+
var M = Ur(), D = g(M);
|
|
10120
|
+
if (n = arguments, a = this, u = M, D) {
|
|
10083
10121
|
if (s === void 0)
|
|
10084
10122
|
return f(u);
|
|
10085
10123
|
if (d)
|
|
10086
|
-
return s = setTimeout(v, t),
|
|
10124
|
+
return s = setTimeout(v, t), p(u);
|
|
10087
10125
|
}
|
|
10088
10126
|
return s === void 0 && (s = setTimeout(v, t)), o;
|
|
10089
10127
|
}
|
|
10090
|
-
return b.cancel =
|
|
10128
|
+
return b.cancel = y, b.flush = x, b;
|
|
10091
10129
|
}
|
|
10092
10130
|
function va(e) {
|
|
10093
10131
|
var t = typeof e;
|
|
@@ -10116,53 +10154,53 @@ function Io(e) {
|
|
|
10116
10154
|
}
|
|
10117
10155
|
var b0 = m0;
|
|
10118
10156
|
const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ label: e, value: t, onChange: r, inputMode: n }) => {
|
|
10119
|
-
const a = Wt(), [i, o] = se(t), [s, u] = se(t), [l, c] = se(n), [d,
|
|
10157
|
+
const a = Wt(), [i, o] = se(t), [s, u] = se(t), [l, c] = se(n), [d, h] = se($r), [p, f] = se(), [m, g] = se(""), v = Q(
|
|
10120
10158
|
({ time: E, mode: J }) => {
|
|
10121
10159
|
const z = parseInt(E[0]), ie = parseInt(E[1]);
|
|
10122
10160
|
if (isNaN(z) || isNaN(ie))
|
|
10123
|
-
return
|
|
10161
|
+
return h("error"), f(a.formatMessage(ce.notNumber)), !1;
|
|
10124
10162
|
const oe = new RegExp(
|
|
10125
10163
|
J === "24h" ? "([0-1][0-9]{1}|[2][0-3]{1}):([0-5]{1}[0-9]{1})" : "([0][1-9]|[1][0-2]{1}):([0-5]{1}[0-9]{1})"
|
|
10126
10164
|
), F = z < 10 ? `0${z}:${E[1]}` : `${z}:${E[1]}`;
|
|
10127
|
-
return oe.test(F) ? (
|
|
10165
|
+
return oe.test(F) ? (h($r), !0) : (h("error"), f(a.formatMessage(ce.invalidTime)), !1);
|
|
10128
10166
|
},
|
|
10129
10167
|
[a]
|
|
10130
|
-
),
|
|
10168
|
+
), I = Q(
|
|
10131
10169
|
({ date: E, time: J, mode: z }) => {
|
|
10132
10170
|
if (!J || !z || !v({ time: J, mode: z }) || !E)
|
|
10133
10171
|
return;
|
|
10134
|
-
const ie = parseInt(J[0]), oe = parseInt(J[1]), F =
|
|
10172
|
+
const ie = parseInt(J[0]), oe = parseInt(J[1]), F = w(E);
|
|
10135
10173
|
z === "am" && ie === 12 ? F.hour(0) : z === "pm" && ie === 12 ? F.hour(12) : z === "pm" ? F.hour(ie + 12) : F.hour(ie), F.minute(oe), r && r(F.toDate());
|
|
10136
10174
|
},
|
|
10137
10175
|
[r, v]
|
|
10138
|
-
),
|
|
10176
|
+
), y = Q(
|
|
10139
10177
|
(E) => {
|
|
10140
|
-
o(E),
|
|
10178
|
+
o(E), I({ date: E, time: s, mode: l });
|
|
10141
10179
|
},
|
|
10142
|
-
[l, s,
|
|
10143
|
-
),
|
|
10180
|
+
[l, s, I]
|
|
10181
|
+
), x = Q((E) => {
|
|
10144
10182
|
(E.charCode < 48 || E.charCode > 58) && E.preventDefault();
|
|
10145
|
-
}, []), b =
|
|
10183
|
+
}, []), b = Q(
|
|
10146
10184
|
(E) => {
|
|
10147
10185
|
if (E.length !== 2) {
|
|
10148
|
-
|
|
10186
|
+
h("error"), f(a.formatMessage(ce.wrongFormat));
|
|
10149
10187
|
return;
|
|
10150
10188
|
}
|
|
10151
|
-
u(E),
|
|
10189
|
+
u(E), I({ date: i, time: E, mode: l });
|
|
10152
10190
|
},
|
|
10153
|
-
[a, i, l,
|
|
10154
|
-
),
|
|
10191
|
+
[a, i, l, I]
|
|
10192
|
+
), M = Q(
|
|
10155
10193
|
({ value: E }) => {
|
|
10156
|
-
c(E),
|
|
10194
|
+
c(E), I({ date: i, time: s, mode: E });
|
|
10157
10195
|
},
|
|
10158
|
-
[i, s,
|
|
10159
|
-
),
|
|
10196
|
+
[i, s, I]
|
|
10197
|
+
), D = y0(b, 500), T = Q(
|
|
10160
10198
|
(E) => {
|
|
10161
10199
|
const J = E.target.value;
|
|
10162
10200
|
let z = J;
|
|
10163
|
-
|
|
10201
|
+
h($r), J.match(I0) && (z = `${J.slice(0, 2)}:${J.slice(2)}`), g(z), D(z.split(":"));
|
|
10164
10202
|
},
|
|
10165
|
-
[
|
|
10203
|
+
[D]
|
|
10166
10204
|
);
|
|
10167
10205
|
return /* @__PURE__ */ k.createElement(C0, null, /* @__PURE__ */ k.createElement(
|
|
10168
10206
|
Ci,
|
|
@@ -10170,7 +10208,7 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10170
10208
|
width: "100%",
|
|
10171
10209
|
label: e || a.formatMessage(ce.dateTimePickerLabel),
|
|
10172
10210
|
value: i,
|
|
10173
|
-
onDayChange:
|
|
10211
|
+
onDayChange: y
|
|
10174
10212
|
}
|
|
10175
10213
|
), /* @__PURE__ */ k.createElement(
|
|
10176
10214
|
xa,
|
|
@@ -10179,9 +10217,9 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10179
10217
|
label: a.formatMessage(ce.timeInputLabel),
|
|
10180
10218
|
onChange: T,
|
|
10181
10219
|
state: d,
|
|
10182
|
-
errorMessage:
|
|
10220
|
+
errorMessage: p,
|
|
10183
10221
|
value: m,
|
|
10184
|
-
onKeyPress:
|
|
10222
|
+
onKeyPress: x
|
|
10185
10223
|
}
|
|
10186
10224
|
), /* @__PURE__ */ k.createElement("div", { style: { paddingTop: "28px" } }, /* @__PURE__ */ k.createElement(
|
|
10187
10225
|
Cs,
|
|
@@ -10195,7 +10233,7 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10195
10233
|
}
|
|
10196
10234
|
],
|
|
10197
10235
|
defaultValue: { value: "am", label: a.formatMessage(ce.am) },
|
|
10198
|
-
onChange:
|
|
10236
|
+
onChange: M
|
|
10199
10237
|
}
|
|
10200
10238
|
)));
|
|
10201
10239
|
}, C0 = A.div`
|
|
@@ -10344,49 +10382,49 @@ const x0 = {
|
|
|
10344
10382
|
queryError: u,
|
|
10345
10383
|
dropdownMaxHeight: l
|
|
10346
10384
|
}) => {
|
|
10347
|
-
const [c, d] = se({ q: "" }),
|
|
10385
|
+
const [c, d] = se({ q: "" }), h = Pl.useDebounce(c, 300), [p, f] = se(null), [m, g] = se(!0), [v, I] = se(null), y = _e(null), x = _e(null), b = c !== h, M = c.q.length > 1 && !v && m;
|
|
10348
10386
|
Ze(() => {
|
|
10349
10387
|
i || d({ q: "" });
|
|
10350
10388
|
}, [i]), Ze(() => {
|
|
10351
10389
|
if (v)
|
|
10352
10390
|
return;
|
|
10353
|
-
const { q: F } =
|
|
10391
|
+
const { q: F } = h;
|
|
10354
10392
|
F.length < 2 || e(F);
|
|
10355
|
-
}, [e,
|
|
10393
|
+
}, [e, h, v]), Ze(() => {
|
|
10356
10394
|
r.length === 0 && f(null), r.length > 0 && f(0);
|
|
10357
10395
|
}, [r]);
|
|
10358
|
-
const
|
|
10359
|
-
i && F.text ? d({ q: F.text }) : d({ q: "" }),
|
|
10396
|
+
const D = () => p < r.length - 1 ? p + 1 : p, T = () => p > 0 ? p - 1 : p, E = (F) => {
|
|
10397
|
+
i && F.text ? d({ q: F.text }) : d({ q: "" }), I(F), n(F.data), f(null);
|
|
10360
10398
|
}, J = (F) => {
|
|
10361
|
-
const { value:
|
|
10362
|
-
d({ q
|
|
10399
|
+
const { value: q } = F.target;
|
|
10400
|
+
d({ q }), g(!0), I(null), f(null), i && v && a();
|
|
10363
10401
|
};
|
|
10364
10402
|
Ze(() => {
|
|
10365
|
-
|
|
10366
|
-
}, [
|
|
10403
|
+
x.current && x.current.scrollIntoView({ block: "nearest" });
|
|
10404
|
+
}, [p]);
|
|
10367
10405
|
const z = (F) => {
|
|
10368
|
-
|
|
10406
|
+
M && (u || b || t || (F.key === "ArrowUp" ? (f(T()), F.preventDefault()) : F.key === "ArrowDown" ? (f(D()), F.preventDefault()) : F.key === "Enter" && p != null && (E(r[p]), F.preventDefault())));
|
|
10369
10407
|
}, ie = (F) => {
|
|
10370
10408
|
E(F);
|
|
10371
10409
|
};
|
|
10372
10410
|
Ze(() => {
|
|
10373
|
-
const F = (
|
|
10374
|
-
|
|
10411
|
+
const F = (q) => {
|
|
10412
|
+
y.current && !y.current.contains(q.target) ? g(!1) : g(!0);
|
|
10375
10413
|
};
|
|
10376
10414
|
return document.addEventListener("pointerdown", F), function() {
|
|
10377
10415
|
document.removeEventListener("pointerdown", F);
|
|
10378
10416
|
};
|
|
10379
|
-
}, [
|
|
10417
|
+
}, [y]);
|
|
10380
10418
|
const oe = () => u ? /* @__PURE__ */ React.createElement(P0, null) : b || t ? /* @__PURE__ */ React.createElement(G0, { query: c.q }) : r.length > 0 ? /* @__PURE__ */ React.createElement(
|
|
10381
10419
|
w0,
|
|
10382
10420
|
{
|
|
10383
10421
|
results: r,
|
|
10384
|
-
focusedResultIndex:
|
|
10422
|
+
focusedResultIndex: p,
|
|
10385
10423
|
onResultClick: ie,
|
|
10386
|
-
ref:
|
|
10424
|
+
ref: x
|
|
10387
10425
|
}
|
|
10388
10426
|
) : /* @__PURE__ */ React.createElement(T0, { query: c.q });
|
|
10389
|
-
return /* @__PURE__ */ React.createElement(R0, { ref:
|
|
10427
|
+
return /* @__PURE__ */ React.createElement(R0, { ref: y }, /* @__PURE__ */ React.createElement(
|
|
10390
10428
|
xa,
|
|
10391
10429
|
{
|
|
10392
10430
|
placeholder: o,
|
|
@@ -10399,7 +10437,7 @@ const x0 = {
|
|
|
10399
10437
|
errorMessage: s,
|
|
10400
10438
|
autoComplete: "off"
|
|
10401
10439
|
}
|
|
10402
|
-
),
|
|
10440
|
+
), M && /* @__PURE__ */ React.createElement(k0, { maxHeight: l }, oe()));
|
|
10403
10441
|
}, R0 = A.div`
|
|
10404
10442
|
width: 100%;
|
|
10405
10443
|
`;
|