@happeouikit/form-elements 2.4.5 → 2.4.7
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.types.d.ts +1 -1
- package/dist/Input.types.d.ts +3 -3
- package/dist/Switch.types.d.ts +1 -1
- package/dist/index.cjs.js +32 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +686 -672
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as ce, jsx as W } from "react/jsx-runtime";
|
|
2
2
|
import * as G from "react";
|
|
3
|
-
import _, { useEffect as Ze, useState as oe, forwardRef as ya, useContext as cl, Component as Ia, createContext as dl, useCallback as
|
|
3
|
+
import _, { useEffect as Ze, useState as oe, forwardRef as ya, useContext as cl, Component as Ia, createContext as dl, useCallback as J, useMemo as We, Fragment as tr, useRef as _e, useImperativeHandle as fl } from "react";
|
|
4
4
|
import S, { css as Xt } from "styled-components";
|
|
5
5
|
import { sansFamily as Mt, BodyUI as pe, TinyText as yn, BodySm as hl, TextEpsilon as pl } from "@happeouikit/typography";
|
|
6
6
|
import { IconAlertCircleOutline as xo, IconArrowDropDown as ml, IconCheck as Co, IconRemove as gl, IconClose as vl, IconCalendar as bl, IconChevronLeft as yl, IconChevronRight as Il, IconError as xl, IconSearch as wo } from "@happeouikit/icons";
|
|
@@ -63,7 +63,7 @@ const a1 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Wl = 6
|
|
|
63
63
|
readOnly: c,
|
|
64
64
|
...d
|
|
65
65
|
}) => {
|
|
66
|
-
const [p] = oe(() => a || qt()),
|
|
66
|
+
const [p] = oe(() => a || qt()), h = [
|
|
67
67
|
t ? `${p}-description` : "",
|
|
68
68
|
r ? `${p}-hint-message` : "",
|
|
69
69
|
s === "error" && u ? `${p}-error-message` : ""
|
|
@@ -80,7 +80,7 @@ const a1 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Wl = 6
|
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
] }),
|
|
83
|
-
i && Vl(i, o)(),
|
|
83
|
+
i && Vl(i, o ?? {})(),
|
|
84
84
|
/* @__PURE__ */ W(
|
|
85
85
|
_o,
|
|
86
86
|
{
|
|
@@ -92,7 +92,7 @@ const a1 = (e) => e.replace(/(_|-|,|\.)(.)/g, (t) => t[1].toUpperCase()), Wl = 6
|
|
|
92
92
|
readOnly: c,
|
|
93
93
|
"data-1p-ignore": !0,
|
|
94
94
|
...t ? {
|
|
95
|
-
"aria-describedby":
|
|
95
|
+
"aria-describedby": h
|
|
96
96
|
} : {},
|
|
97
97
|
...d
|
|
98
98
|
}
|
|
@@ -420,26 +420,26 @@ function lc(e) {
|
|
|
420
420
|
return Go(Un("", null, null, null, [""], e = Fo(e), 0, [0], e));
|
|
421
421
|
}
|
|
422
422
|
function Un(e, t, r, n, a, i, o, s, u) {
|
|
423
|
-
for (var l = 0, c = 0, d = o, p = 0,
|
|
424
|
-
switch (
|
|
423
|
+
for (var l = 0, c = 0, d = o, p = 0, h = 0, f = 0, m = 1, g = 1, v = 1, y = 0, I = "", D = a, b = i, x = n, w = I; g; )
|
|
424
|
+
switch (f = y, y = Ne()) {
|
|
425
425
|
case 40:
|
|
426
|
-
if (
|
|
427
|
-
qr(
|
|
426
|
+
if (f != 108 && me(w, d - 1) == 58) {
|
|
427
|
+
qr(w += j($n(y), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
case 34:
|
|
431
431
|
case 39:
|
|
432
432
|
case 91:
|
|
433
|
-
|
|
433
|
+
w += $n(y);
|
|
434
434
|
break;
|
|
435
435
|
case 9:
|
|
436
436
|
case 10:
|
|
437
437
|
case 13:
|
|
438
438
|
case 32:
|
|
439
|
-
|
|
439
|
+
w += ic(f);
|
|
440
440
|
break;
|
|
441
441
|
case 92:
|
|
442
|
-
|
|
442
|
+
w += oc(zn() - 1, 7);
|
|
443
443
|
continue;
|
|
444
444
|
case 47:
|
|
445
445
|
switch (at()) {
|
|
@@ -448,70 +448,70 @@ function Un(e, t, r, n, a, i, o, s, u) {
|
|
|
448
448
|
Rn(cc(sc(Ne(), zn()), t, r), u);
|
|
449
449
|
break;
|
|
450
450
|
default:
|
|
451
|
-
|
|
451
|
+
w += "/";
|
|
452
452
|
}
|
|
453
453
|
break;
|
|
454
|
-
case 123 *
|
|
455
|
-
s[l++] = nt(
|
|
456
|
-
case 125 *
|
|
454
|
+
case 123 * m:
|
|
455
|
+
s[l++] = nt(w) * v;
|
|
456
|
+
case 125 * m:
|
|
457
457
|
case 59:
|
|
458
458
|
case 0:
|
|
459
459
|
switch (y) {
|
|
460
460
|
case 0:
|
|
461
461
|
case 125:
|
|
462
|
-
|
|
462
|
+
g = 0;
|
|
463
463
|
case 59 + c:
|
|
464
|
-
v == -1 && (
|
|
464
|
+
v == -1 && (w = j(w, /\f/g, "")), h > 0 && nt(w) - d && Rn(h > 32 ? Di(w + ";", n, r, d - 1) : Di(j(w, " ", "") + ";", n, r, d - 2), u);
|
|
465
465
|
break;
|
|
466
466
|
case 59:
|
|
467
|
-
|
|
467
|
+
w += ";";
|
|
468
468
|
default:
|
|
469
|
-
if (Rn(
|
|
469
|
+
if (Rn(x = wi(w, t, r, l, c, a, s, I, D = [], b = [], d), i), y === 123)
|
|
470
470
|
if (c === 0)
|
|
471
|
-
Un(
|
|
471
|
+
Un(w, t, x, x, D, i, d, s, b);
|
|
472
472
|
else
|
|
473
|
-
switch (p === 99 && me(
|
|
473
|
+
switch (p === 99 && me(w, 3) === 110 ? 100 : p) {
|
|
474
474
|
case 100:
|
|
475
475
|
case 108:
|
|
476
476
|
case 109:
|
|
477
477
|
case 115:
|
|
478
|
-
Un(e,
|
|
478
|
+
Un(e, x, x, n && Rn(wi(e, x, x, 0, 0, a, s, I, a, D = [], d), b), a, b, d, s, n ? D : b);
|
|
479
479
|
break;
|
|
480
480
|
default:
|
|
481
|
-
Un(
|
|
481
|
+
Un(w, x, x, x, [""], b, 0, s, b);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
l = c =
|
|
484
|
+
l = c = h = 0, m = v = 1, I = w = "", d = o;
|
|
485
485
|
break;
|
|
486
486
|
case 58:
|
|
487
|
-
d = 1 + nt(
|
|
487
|
+
d = 1 + nt(w), h = f;
|
|
488
488
|
default:
|
|
489
|
-
if (
|
|
489
|
+
if (m < 1) {
|
|
490
490
|
if (y == 123)
|
|
491
|
-
--
|
|
492
|
-
else if (y == 125 &&
|
|
491
|
+
--m;
|
|
492
|
+
else if (y == 125 && m++ == 0 && ac() == 125)
|
|
493
493
|
continue;
|
|
494
494
|
}
|
|
495
|
-
switch (
|
|
495
|
+
switch (w += gr(y), y * m) {
|
|
496
496
|
case 38:
|
|
497
|
-
v = c > 0 ? 1 : (
|
|
497
|
+
v = c > 0 ? 1 : (w += "\f", -1);
|
|
498
498
|
break;
|
|
499
499
|
case 44:
|
|
500
|
-
s[l++] = (nt(
|
|
500
|
+
s[l++] = (nt(w) - 1) * v, v = 1;
|
|
501
501
|
break;
|
|
502
502
|
case 64:
|
|
503
|
-
at() === 45 && (
|
|
503
|
+
at() === 45 && (w += $n(Ne())), p = at(), c = d = nt(I = w += uc(zn())), y++;
|
|
504
504
|
break;
|
|
505
505
|
case 45:
|
|
506
|
-
|
|
506
|
+
f === 45 && nt(w) == 2 && (m = 0);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
return i;
|
|
510
510
|
}
|
|
511
511
|
function wi(e, t, r, n, a, i, o, s, u, l, c) {
|
|
512
|
-
for (var d = a - 1, p = a === 0 ? i : [""],
|
|
513
|
-
for (var v = 0, y = xn(e, d + 1, d = Kl(
|
|
514
|
-
(I = Po(
|
|
512
|
+
for (var d = a - 1, p = a === 0 ? i : [""], h = ka(p), f = 0, m = 0, g = 0; f < n; ++f)
|
|
513
|
+
for (var v = 0, y = xn(e, d + 1, d = Kl(m = o[f])), I = e; v < h; ++v)
|
|
514
|
+
(I = Po(m > 0 ? p[v] + " " + y : j(y, /&\f/g, p[v]))) && (u[g++] = I);
|
|
515
515
|
return br(e, t, r, a === 0 ? Da : s, u, l, c);
|
|
516
516
|
}
|
|
517
517
|
function cc(e, t, r) {
|
|
@@ -798,9 +798,9 @@ var Mc = function(t, r, n, a) {
|
|
|
798
798
|
If multiple caches share the same key they might "fight" for each other's style elements.`);
|
|
799
799
|
if (r === "css") {
|
|
800
800
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
801
|
-
Array.prototype.forEach.call(n, function(
|
|
802
|
-
var
|
|
803
|
-
|
|
801
|
+
Array.prototype.forEach.call(n, function(m) {
|
|
802
|
+
var g = m.getAttribute("data-emotion");
|
|
803
|
+
g.indexOf(" ") !== -1 && (document.head.appendChild(m), m.setAttribute("data-s", ""));
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
var a = t.stylisPlugins || kc;
|
|
@@ -811,35 +811,35 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
811
811
|
// this means we will ignore elements which don't have a space in them which
|
|
812
812
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
813
813
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
814
|
-
function(
|
|
815
|
-
for (var
|
|
816
|
-
i[
|
|
817
|
-
s.push(
|
|
814
|
+
function(m) {
|
|
815
|
+
for (var g = m.getAttribute("data-emotion").split(" "), v = 1; v < g.length; v++)
|
|
816
|
+
i[g[v]] = !0;
|
|
817
|
+
s.push(m);
|
|
818
818
|
}
|
|
819
819
|
);
|
|
820
820
|
var u, l = [bc, yc];
|
|
821
821
|
process.env.NODE_ENV !== "production" && l.push(Cc({
|
|
822
822
|
get compat() {
|
|
823
|
-
return
|
|
823
|
+
return f.compat;
|
|
824
824
|
}
|
|
825
825
|
}), Dc);
|
|
826
826
|
{
|
|
827
|
-
var c, d = [dc, process.env.NODE_ENV !== "production" ? function(
|
|
828
|
-
|
|
829
|
-
} : hc(function(
|
|
830
|
-
c.insert(
|
|
831
|
-
})], p = fc(l.concat(a, d)),
|
|
832
|
-
return zt(lc(
|
|
827
|
+
var c, d = [dc, process.env.NODE_ENV !== "production" ? function(m) {
|
|
828
|
+
m.root || (m.return ? c.insert(m.return) : m.value && m.type !== wa && c.insert(m.value + "{}"));
|
|
829
|
+
} : hc(function(m) {
|
|
830
|
+
c.insert(m);
|
|
831
|
+
})], p = fc(l.concat(a, d)), h = function(g) {
|
|
832
|
+
return zt(lc(g), p);
|
|
833
833
|
};
|
|
834
|
-
u = function(
|
|
834
|
+
u = function(g, v, y, I) {
|
|
835
835
|
c = y, process.env.NODE_ENV !== "production" && v.map !== void 0 && (c = {
|
|
836
836
|
insert: function(b) {
|
|
837
837
|
y.insert(b + v.map);
|
|
838
838
|
}
|
|
839
|
-
}),
|
|
839
|
+
}), h(g ? g + "{" + v.styles + "}" : v.styles), I && (f.inserted[v.name] = !0);
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
var
|
|
842
|
+
var f = {
|
|
843
843
|
key: r,
|
|
844
844
|
sheet: new Ul({
|
|
845
845
|
key: r,
|
|
@@ -854,7 +854,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
854
854
|
registered: {},
|
|
855
855
|
insert: u
|
|
856
856
|
};
|
|
857
|
-
return
|
|
857
|
+
return f.sheet.hydrate(s), f;
|
|
858
858
|
}, Wn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
859
859
|
function Sa(e) {
|
|
860
860
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -892,12 +892,12 @@ var ta = { exports: {} }, $ = {};
|
|
|
892
892
|
var Si;
|
|
893
893
|
function Ac() {
|
|
894
894
|
return Si || (Si = 1, process.env.NODE_ENV !== "production" && 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, p = e ? Symbol.for("react.suspense_list") : 60120,
|
|
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, p = e ? Symbol.for("react.suspense_list") : 60120, h = 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, y = e ? Symbol.for("react.scope") : 60119;
|
|
896
896
|
function I(A) {
|
|
897
897
|
return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
898
|
-
A === n || A === l || A === i || A === a || A === d || A === p || typeof A == "object" && A !== null && (A.$$typeof ===
|
|
898
|
+
A === n || A === l || A === i || A === a || A === d || A === p || typeof A == "object" && A !== null && (A.$$typeof === f || A.$$typeof === h || A.$$typeof === o || A.$$typeof === s || A.$$typeof === c || A.$$typeof === g || A.$$typeof === v || A.$$typeof === y || A.$$typeof === m);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function D(A) {
|
|
901
901
|
if (typeof A == "object" && A !== null) {
|
|
902
902
|
var un = A.$$typeof;
|
|
903
903
|
switch (un) {
|
|
@@ -916,8 +916,8 @@ function Ac() {
|
|
|
916
916
|
switch (Fn) {
|
|
917
917
|
case s:
|
|
918
918
|
case c:
|
|
919
|
-
case h:
|
|
920
919
|
case f:
|
|
920
|
+
case h:
|
|
921
921
|
case o:
|
|
922
922
|
return Fn;
|
|
923
923
|
default:
|
|
@@ -929,47 +929,47 @@ function Ac() {
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
var b = u,
|
|
932
|
+
var b = u, x = l, w = s, O = o, E = t, Q = c, z = n, ae = f, ie = h, T = r, q = i, Se = a, Ce = d, Ee = !1;
|
|
933
933
|
function Ke(A) {
|
|
934
|
-
return Ee || (Ee = !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(A) ||
|
|
934
|
+
return Ee || (Ee = !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(A) || D(A) === u;
|
|
935
935
|
}
|
|
936
936
|
function Ve(A) {
|
|
937
|
-
return
|
|
937
|
+
return D(A) === l;
|
|
938
938
|
}
|
|
939
939
|
function ut(A) {
|
|
940
|
-
return
|
|
940
|
+
return D(A) === s;
|
|
941
941
|
}
|
|
942
942
|
function fe(A) {
|
|
943
|
-
return
|
|
943
|
+
return D(A) === o;
|
|
944
944
|
}
|
|
945
945
|
function ve(A) {
|
|
946
946
|
return typeof A == "object" && A !== null && A.$$typeof === t;
|
|
947
947
|
}
|
|
948
948
|
function qe(A) {
|
|
949
|
-
return
|
|
949
|
+
return D(A) === c;
|
|
950
950
|
}
|
|
951
951
|
function et(A) {
|
|
952
|
-
return
|
|
952
|
+
return D(A) === n;
|
|
953
953
|
}
|
|
954
954
|
function Pe(A) {
|
|
955
|
-
return
|
|
955
|
+
return D(A) === f;
|
|
956
956
|
}
|
|
957
957
|
function Te(A) {
|
|
958
|
-
return
|
|
958
|
+
return D(A) === h;
|
|
959
959
|
}
|
|
960
960
|
function Et(A) {
|
|
961
|
-
return
|
|
961
|
+
return D(A) === r;
|
|
962
962
|
}
|
|
963
963
|
function Yt(A) {
|
|
964
|
-
return
|
|
964
|
+
return D(A) === i;
|
|
965
965
|
}
|
|
966
966
|
function Pr(A) {
|
|
967
|
-
return
|
|
967
|
+
return D(A) === a;
|
|
968
968
|
}
|
|
969
969
|
function Tn(A) {
|
|
970
|
-
return
|
|
970
|
+
return D(A) === d;
|
|
971
971
|
}
|
|
972
|
-
$.AsyncMode = b, $.ConcurrentMode =
|
|
972
|
+
$.AsyncMode = b, $.ConcurrentMode = x, $.ContextConsumer = w, $.ContextProvider = O, $.Element = E, $.ForwardRef = Q, $.Fragment = z, $.Lazy = ae, $.Memo = ie, $.Portal = T, $.Profiler = q, $.StrictMode = Se, $.Suspense = Ce, $.isAsyncMode = Ke, $.isConcurrentMode = Ve, $.isContextConsumer = ut, $.isContextProvider = fe, $.isElement = ve, $.isForwardRef = qe, $.isFragment = et, $.isLazy = Pe, $.isMemo = Te, $.isPortal = Et, $.isProfiler = Yt, $.isStrictMode = Pr, $.isSuspense = Tn, $.isValidElementType = I, $.typeOf = D;
|
|
973
973
|
}()), $;
|
|
974
974
|
}
|
|
975
975
|
var U = {};
|
|
@@ -986,11 +986,11 @@ function _c() {
|
|
|
986
986
|
if (Ei)
|
|
987
987
|
return U;
|
|
988
988
|
Ei = 1;
|
|
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, p = e ? Symbol.for("react.suspense_list") : 60120,
|
|
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, p = e ? Symbol.for("react.suspense_list") : 60120, h = 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, y = e ? Symbol.for("react.scope") : 60119;
|
|
990
990
|
function I(b) {
|
|
991
991
|
if (typeof b == "object" && b !== null) {
|
|
992
|
-
var
|
|
993
|
-
switch (
|
|
992
|
+
var x = b.$$typeof;
|
|
993
|
+
switch (x) {
|
|
994
994
|
case t:
|
|
995
995
|
switch (b = b.type, b) {
|
|
996
996
|
case u:
|
|
@@ -1004,25 +1004,25 @@ function _c() {
|
|
|
1004
1004
|
switch (b = b && b.$$typeof, b) {
|
|
1005
1005
|
case s:
|
|
1006
1006
|
case c:
|
|
1007
|
-
case h:
|
|
1008
1007
|
case f:
|
|
1008
|
+
case h:
|
|
1009
1009
|
case o:
|
|
1010
1010
|
return b;
|
|
1011
1011
|
default:
|
|
1012
|
-
return
|
|
1012
|
+
return x;
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
case r:
|
|
1016
|
-
return
|
|
1016
|
+
return x;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function D(b) {
|
|
1021
1021
|
return I(b) === l;
|
|
1022
1022
|
}
|
|
1023
|
-
return U.AsyncMode = u, U.ConcurrentMode = l, U.ContextConsumer = s, U.ContextProvider = o, U.Element = t, U.ForwardRef = c, U.Fragment = n, U.Lazy =
|
|
1024
|
-
return
|
|
1025
|
-
}, U.isConcurrentMode =
|
|
1023
|
+
return U.AsyncMode = u, U.ConcurrentMode = l, U.ContextConsumer = s, U.ContextProvider = o, U.Element = t, U.ForwardRef = c, U.Fragment = n, U.Lazy = f, U.Memo = h, U.Portal = r, U.Profiler = i, U.StrictMode = a, U.Suspense = d, U.isAsyncMode = function(b) {
|
|
1024
|
+
return D(b) || I(b) === u;
|
|
1025
|
+
}, U.isConcurrentMode = D, U.isContextConsumer = function(b) {
|
|
1026
1026
|
return I(b) === s;
|
|
1027
1027
|
}, U.isContextProvider = function(b) {
|
|
1028
1028
|
return I(b) === o;
|
|
@@ -1033,9 +1033,9 @@ function _c() {
|
|
|
1033
1033
|
}, U.isFragment = function(b) {
|
|
1034
1034
|
return I(b) === n;
|
|
1035
1035
|
}, U.isLazy = function(b) {
|
|
1036
|
-
return I(b) === h;
|
|
1037
|
-
}, U.isMemo = function(b) {
|
|
1038
1036
|
return I(b) === f;
|
|
1037
|
+
}, U.isMemo = function(b) {
|
|
1038
|
+
return I(b) === h;
|
|
1039
1039
|
}, U.isPortal = function(b) {
|
|
1040
1040
|
return I(b) === r;
|
|
1041
1041
|
}, U.isProfiler = function(b) {
|
|
@@ -1045,7 +1045,7 @@ function _c() {
|
|
|
1045
1045
|
}, U.isSuspense = function(b) {
|
|
1046
1046
|
return I(b) === d;
|
|
1047
1047
|
}, U.isValidElementType = function(b) {
|
|
1048
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === l || b === i || b === a || b === d || b === p || typeof b == "object" && b !== null && (b.$$typeof ===
|
|
1048
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === l || b === i || b === a || b === d || b === p || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === h || b.$$typeof === o || b.$$typeof === s || b.$$typeof === c || b.$$typeof === g || b.$$typeof === v || b.$$typeof === y || b.$$typeof === m);
|
|
1049
1049
|
}, U.typeOf = I, U;
|
|
1050
1050
|
}
|
|
1051
1051
|
process.env.NODE_ENV === "production" ? ta.exports = _c() : ta.exports = Ac();
|
|
@@ -1240,8 +1240,8 @@ function wn(e, t, r) {
|
|
|
1240
1240
|
case "string":
|
|
1241
1241
|
if (process.env.NODE_ENV !== "production") {
|
|
1242
1242
|
var s = [], u = r.replace(Lo, function(c, d, p) {
|
|
1243
|
-
var
|
|
1244
|
-
return s.push("const " +
|
|
1243
|
+
var h = "animation" + s.length;
|
|
1244
|
+
return s.push("const " + h + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + h + "}";
|
|
1245
1245
|
});
|
|
1246
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(`
|
|
1247
1247
|
`) + `
|
|
@@ -1532,7 +1532,7 @@ var Kc = zo, qc = {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
},
|
|
1535
|
+
}, P = function(t, r) {
|
|
1536
1536
|
var n = arguments;
|
|
1537
1537
|
if (r == null || !Na.call(r, "css"))
|
|
1538
1538
|
return G.createElement.apply(void 0, n);
|
|
@@ -1908,30 +1908,30 @@ function Dd(e) {
|
|
|
1908
1908
|
};
|
|
1909
1909
|
if (!r || !r.offsetParent)
|
|
1910
1910
|
return c;
|
|
1911
|
-
var d = l.getBoundingClientRect(), p = d.height,
|
|
1911
|
+
var d = l.getBoundingClientRect(), p = d.height, h = r.getBoundingClientRect(), f = h.bottom, m = h.height, g = h.top, v = r.offsetParent.getBoundingClientRect(), y = v.top, I = window.innerHeight, D = Jo(l), b = parseInt(getComputedStyle(r).marginBottom, 10), x = parseInt(getComputedStyle(r).marginTop, 10), w = y - x, O = I - g, E = w + D, Q = p - D - g, z = f - I + D + b, ae = D + g - x, ie = 160;
|
|
1912
1912
|
switch (a) {
|
|
1913
1913
|
case "auto":
|
|
1914
1914
|
case "bottom":
|
|
1915
|
-
if (
|
|
1915
|
+
if (O >= m)
|
|
1916
1916
|
return {
|
|
1917
1917
|
placement: "bottom",
|
|
1918
1918
|
maxHeight: t
|
|
1919
1919
|
};
|
|
1920
|
-
if (
|
|
1920
|
+
if (Q >= m && !o)
|
|
1921
1921
|
return i && Bn(l, z, ie), {
|
|
1922
1922
|
placement: "bottom",
|
|
1923
1923
|
maxHeight: t
|
|
1924
1924
|
};
|
|
1925
|
-
if (!o &&
|
|
1925
|
+
if (!o && Q >= n || o && O >= n) {
|
|
1926
1926
|
i && Bn(l, z, ie);
|
|
1927
|
-
var T = o ?
|
|
1927
|
+
var T = o ? O - b : Q - b;
|
|
1928
1928
|
return {
|
|
1929
1929
|
placement: "bottom",
|
|
1930
1930
|
maxHeight: T
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
if (a === "auto" || o) {
|
|
1934
|
-
var q = t, Se = o ?
|
|
1934
|
+
var q = t, Se = o ? w : E;
|
|
1935
1935
|
return Se >= n && (q = Math.min(Se - b - u.controlHeight, t)), {
|
|
1936
1936
|
placement: "top",
|
|
1937
1937
|
maxHeight: q
|
|
@@ -1944,19 +1944,19 @@ function Dd(e) {
|
|
|
1944
1944
|
};
|
|
1945
1945
|
break;
|
|
1946
1946
|
case "top":
|
|
1947
|
-
if (
|
|
1947
|
+
if (w >= m)
|
|
1948
1948
|
return {
|
|
1949
1949
|
placement: "top",
|
|
1950
1950
|
maxHeight: t
|
|
1951
1951
|
};
|
|
1952
|
-
if (E >=
|
|
1952
|
+
if (E >= m && !o)
|
|
1953
1953
|
return i && Bn(l, ae, ie), {
|
|
1954
1954
|
placement: "top",
|
|
1955
1955
|
maxHeight: t
|
|
1956
1956
|
};
|
|
1957
|
-
if (!o && E >= n || o &&
|
|
1957
|
+
if (!o && E >= n || o && w >= n) {
|
|
1958
1958
|
var Ce = t;
|
|
1959
|
-
return (!o && E >= n || o &&
|
|
1959
|
+
return (!o && E >= n || o && w >= n) && (Ce = o ? w - x : E - x), i && Bn(l, ae, ie), {
|
|
1960
1960
|
placement: "top",
|
|
1961
1961
|
maxHeight: Ce
|
|
1962
1962
|
};
|
|
@@ -1998,16 +1998,16 @@ var oa = function(t) {
|
|
|
1998
1998
|
maxHeight: n.props.maxMenuHeight,
|
|
1999
1999
|
placement: null
|
|
2000
2000
|
}, n.context = void 0, n.getPlacement = function(s) {
|
|
2001
|
-
var u = n.props, l = u.minMenuHeight, c = u.maxMenuHeight, d = u.menuPlacement, p = u.menuPosition,
|
|
2001
|
+
var u = n.props, l = u.minMenuHeight, c = u.maxMenuHeight, d = u.menuPlacement, p = u.menuPosition, h = u.menuShouldScrollIntoView, f = u.theme;
|
|
2002
2002
|
if (s) {
|
|
2003
|
-
var
|
|
2003
|
+
var m = p === "fixed", g = h && !m, v = Dd({
|
|
2004
2004
|
maxHeight: c,
|
|
2005
2005
|
menuEl: s,
|
|
2006
2006
|
minHeight: l,
|
|
2007
2007
|
placement: d,
|
|
2008
|
-
shouldScroll:
|
|
2009
|
-
isFixedPosition:
|
|
2010
|
-
theme:
|
|
2008
|
+
shouldScroll: g,
|
|
2009
|
+
isFixedPosition: m,
|
|
2010
|
+
theme: f
|
|
2011
2011
|
}), y = n.context.getPortalPlacement;
|
|
2012
2012
|
y && y(v), n.setState(v);
|
|
2013
2013
|
}
|
|
@@ -2033,7 +2033,7 @@ var oa = function(t) {
|
|
|
2033
2033
|
qo.contextType = Ko;
|
|
2034
2034
|
var Sd = function(t) {
|
|
2035
2035
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerRef, s = t.innerProps;
|
|
2036
|
-
return
|
|
2036
|
+
return P("div", F({
|
|
2037
2037
|
css: i("menu", t),
|
|
2038
2038
|
className: a({
|
|
2039
2039
|
menu: !0
|
|
@@ -2053,7 +2053,7 @@ var Sd = function(t) {
|
|
|
2053
2053
|
};
|
|
2054
2054
|
}, Ad = function(t) {
|
|
2055
2055
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps, s = t.innerRef, u = t.isMulti;
|
|
2056
|
-
return
|
|
2056
|
+
return P("div", F({
|
|
2057
2057
|
css: i("menuList", t),
|
|
2058
2058
|
className: a({
|
|
2059
2059
|
"menu-list": !0,
|
|
@@ -2070,7 +2070,7 @@ var Sd = function(t) {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
}, _d = es, Nd = es, ts = function(t) {
|
|
2072
2072
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps;
|
|
2073
|
-
return
|
|
2073
|
+
return P("div", F({
|
|
2074
2074
|
css: i("noOptionsMessage", t),
|
|
2075
2075
|
className: a({
|
|
2076
2076
|
"menu-notice": !0,
|
|
@@ -2083,7 +2083,7 @@ ts.defaultProps = {
|
|
|
2083
2083
|
};
|
|
2084
2084
|
var ns = function(t) {
|
|
2085
2085
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps;
|
|
2086
|
-
return
|
|
2086
|
+
return P("div", F({
|
|
2087
2087
|
css: i("loadingMessage", t),
|
|
2088
2088
|
className: a({
|
|
2089
2089
|
"menu-notice": !0,
|
|
@@ -2123,24 +2123,24 @@ var Od = function(t) {
|
|
|
2123
2123
|
return Ga(r, [{
|
|
2124
2124
|
key: "render",
|
|
2125
2125
|
value: function() {
|
|
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, p = a.menuPosition,
|
|
2127
|
-
if (!i && !
|
|
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, p = a.menuPosition, h = a.getStyles, f = p === "fixed";
|
|
2127
|
+
if (!i && !f || !u)
|
|
2128
2128
|
return null;
|
|
2129
|
-
var
|
|
2129
|
+
var m = this.state.placement || oa(d), g = bd(u), v = f ? 0 : window.pageYOffset, y = g[m] + v, I = {
|
|
2130
2130
|
offset: y,
|
|
2131
2131
|
position: p,
|
|
2132
|
-
rect:
|
|
2133
|
-
},
|
|
2134
|
-
css:
|
|
2132
|
+
rect: g
|
|
2133
|
+
}, D = P("div", F({
|
|
2134
|
+
css: h("menuPortal", I),
|
|
2135
2135
|
className: l({
|
|
2136
2136
|
"menu-portal": !0
|
|
2137
2137
|
}, s)
|
|
2138
2138
|
}, c), o);
|
|
2139
|
-
return
|
|
2139
|
+
return P(Ko.Provider, {
|
|
2140
2140
|
value: {
|
|
2141
2141
|
getPortalPlacement: this.getPortalPlacement
|
|
2142
2142
|
}
|
|
2143
|
-
}, i ? /* @__PURE__ */ Cl(
|
|
2143
|
+
}, i ? /* @__PURE__ */ Cl(D, i) : D);
|
|
2144
2144
|
}
|
|
2145
2145
|
}]), r;
|
|
2146
2146
|
}(Ia), Td = function(t) {
|
|
@@ -2154,7 +2154,7 @@ var Od = function(t) {
|
|
|
2154
2154
|
};
|
|
2155
2155
|
}, Fd = function(t) {
|
|
2156
2156
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps, s = t.isDisabled, u = t.isRtl;
|
|
2157
|
-
return
|
|
2157
|
+
return P("div", F({
|
|
2158
2158
|
css: i("container", t),
|
|
2159
2159
|
className: a({
|
|
2160
2160
|
"--is-disabled": s,
|
|
@@ -2175,7 +2175,7 @@ var Od = function(t) {
|
|
|
2175
2175
|
};
|
|
2176
2176
|
}, Rd = function(t) {
|
|
2177
2177
|
var r = t.children, n = t.className, a = t.cx, i = t.innerProps, o = t.isMulti, s = t.getStyles, u = t.hasValue;
|
|
2178
|
-
return
|
|
2178
|
+
return P("div", F({
|
|
2179
2179
|
css: s("valueContainer", t),
|
|
2180
2180
|
className: a({
|
|
2181
2181
|
"value-container": !0,
|
|
@@ -2192,7 +2192,7 @@ var Od = function(t) {
|
|
|
2192
2192
|
};
|
|
2193
2193
|
}, Bd = function(t) {
|
|
2194
2194
|
var r = t.children, n = t.className, a = t.cx, i = t.innerProps, o = t.getStyles;
|
|
2195
|
-
return
|
|
2195
|
+
return P("div", F({
|
|
2196
2196
|
css: o("indicatorsContainer", t),
|
|
2197
2197
|
className: a({
|
|
2198
2198
|
indicators: !0
|
|
@@ -2212,7 +2212,7 @@ var Ld = process.env.NODE_ENV === "production" ? {
|
|
|
2212
2212
|
toString: Vd
|
|
2213
2213
|
}, rs = function(t) {
|
|
2214
2214
|
var r = t.size, n = tn(t, Yd);
|
|
2215
|
-
return
|
|
2215
|
+
return P("svg", F({
|
|
2216
2216
|
height: r,
|
|
2217
2217
|
width: r,
|
|
2218
2218
|
viewBox: "0 0 20 20",
|
|
@@ -2221,15 +2221,15 @@ var Ld = process.env.NODE_ENV === "production" ? {
|
|
|
2221
2221
|
css: Ld
|
|
2222
2222
|
}, n));
|
|
2223
2223
|
}, Ya = function(t) {
|
|
2224
|
-
return
|
|
2224
|
+
return P(rs, F({
|
|
2225
2225
|
size: 20
|
|
2226
|
-
}, t),
|
|
2226
|
+
}, t), P("path", {
|
|
2227
2227
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
2228
2228
|
}));
|
|
2229
2229
|
}, as = function(t) {
|
|
2230
|
-
return
|
|
2230
|
+
return P(rs, F({
|
|
2231
2231
|
size: 20
|
|
2232
|
-
}, t),
|
|
2232
|
+
}, t), P("path", {
|
|
2233
2233
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
2234
2234
|
}));
|
|
2235
2235
|
}, is = function(t) {
|
|
@@ -2246,22 +2246,22 @@ var Ld = process.env.NODE_ENV === "production" ? {
|
|
|
2246
2246
|
};
|
|
2247
2247
|
}, Hd = is, Zd = function(t) {
|
|
2248
2248
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps;
|
|
2249
|
-
return
|
|
2249
|
+
return P("div", F({
|
|
2250
2250
|
css: i("dropdownIndicator", t),
|
|
2251
2251
|
className: a({
|
|
2252
2252
|
indicator: !0,
|
|
2253
2253
|
"dropdown-indicator": !0
|
|
2254
2254
|
}, n)
|
|
2255
|
-
}, o), r ||
|
|
2255
|
+
}, o), r || P(as, null));
|
|
2256
2256
|
}, Xd = is, jd = function(t) {
|
|
2257
2257
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps;
|
|
2258
|
-
return
|
|
2258
|
+
return P("div", F({
|
|
2259
2259
|
css: i("clearIndicator", t),
|
|
2260
2260
|
className: a({
|
|
2261
2261
|
indicator: !0,
|
|
2262
2262
|
"clear-indicator": !0
|
|
2263
2263
|
}, n)
|
|
2264
|
-
}, o), r ||
|
|
2264
|
+
}, o), r || P(Ya, null));
|
|
2265
2265
|
}, zd = function(t) {
|
|
2266
2266
|
var r = t.isDisabled, n = t.theme, a = n.spacing.baseUnit, i = n.colors;
|
|
2267
2267
|
return {
|
|
@@ -2274,7 +2274,7 @@ var Ld = process.env.NODE_ENV === "production" ? {
|
|
|
2274
2274
|
};
|
|
2275
2275
|
}, $d = function(t) {
|
|
2276
2276
|
var r = t.className, n = t.cx, a = t.getStyles, i = t.innerProps;
|
|
2277
|
-
return
|
|
2277
|
+
return P("span", F({}, i, {
|
|
2278
2278
|
css: a("indicatorSeparator", t),
|
|
2279
2279
|
className: n({
|
|
2280
2280
|
"indicator-separator": !0
|
|
@@ -2300,7 +2300,7 @@ var Ld = process.env.NODE_ENV === "production" ? {
|
|
|
2300
2300
|
};
|
|
2301
2301
|
}, Fr = function(t) {
|
|
2302
2302
|
var r = t.delay, n = t.offset;
|
|
2303
|
-
return
|
|
2303
|
+
return P("span", {
|
|
2304
2304
|
css: /* @__PURE__ */ Ta({
|
|
2305
2305
|
animation: "".concat(Ud, " 1s ease-in-out ").concat(r, "ms infinite;"),
|
|
2306
2306
|
backgroundColor: "currentColor",
|
|
@@ -2314,19 +2314,19 @@ var Ld = process.env.NODE_ENV === "production" ? {
|
|
|
2314
2314
|
});
|
|
2315
2315
|
}, os = function(t) {
|
|
2316
2316
|
var r = t.className, n = t.cx, a = t.getStyles, i = t.innerProps, o = t.isRtl;
|
|
2317
|
-
return
|
|
2317
|
+
return P("div", F({
|
|
2318
2318
|
css: a("loadingIndicator", t),
|
|
2319
2319
|
className: n({
|
|
2320
2320
|
indicator: !0,
|
|
2321
2321
|
"loading-indicator": !0
|
|
2322
2322
|
}, r)
|
|
2323
|
-
}, i),
|
|
2323
|
+
}, i), P(Fr, {
|
|
2324
2324
|
delay: 0,
|
|
2325
2325
|
offset: o
|
|
2326
|
-
}),
|
|
2326
|
+
}), P(Fr, {
|
|
2327
2327
|
delay: 160,
|
|
2328
2328
|
offset: !0
|
|
2329
|
-
}),
|
|
2329
|
+
}), P(Fr, {
|
|
2330
2330
|
delay: 320,
|
|
2331
2331
|
offset: !o
|
|
2332
2332
|
}));
|
|
@@ -2359,7 +2359,7 @@ var Qd = function(t) {
|
|
|
2359
2359
|
};
|
|
2360
2360
|
}, Kd = function(t) {
|
|
2361
2361
|
var r = t.children, n = t.cx, a = t.getStyles, i = t.className, o = t.isDisabled, s = t.isFocused, u = t.innerRef, l = t.innerProps, c = t.menuIsOpen;
|
|
2362
|
-
return
|
|
2362
|
+
return P("div", F({
|
|
2363
2363
|
ref: u,
|
|
2364
2364
|
css: a("control", t),
|
|
2365
2365
|
className: n({
|
|
@@ -2377,17 +2377,17 @@ var Qd = function(t) {
|
|
|
2377
2377
|
};
|
|
2378
2378
|
}, tf = function(t) {
|
|
2379
2379
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.Heading, s = t.headingProps, u = t.innerProps, l = t.label, c = t.theme, d = t.selectProps;
|
|
2380
|
-
return
|
|
2380
|
+
return P("div", F({
|
|
2381
2381
|
css: i("group", t),
|
|
2382
2382
|
className: a({
|
|
2383
2383
|
group: !0
|
|
2384
2384
|
}, n)
|
|
2385
|
-
}, u),
|
|
2385
|
+
}, u), P(o, F({}, s, {
|
|
2386
2386
|
selectProps: d,
|
|
2387
2387
|
theme: c,
|
|
2388
2388
|
getStyles: i,
|
|
2389
2389
|
cx: a
|
|
2390
|
-
}), l),
|
|
2390
|
+
}), l), P("div", null, r));
|
|
2391
2391
|
}, nf = function(t) {
|
|
2392
2392
|
var r = t.theme.spacing;
|
|
2393
2393
|
return {
|
|
@@ -2406,7 +2406,7 @@ var Qd = function(t) {
|
|
|
2406
2406
|
var r = t.getStyles, n = t.cx, a = t.className, i = Uo(t);
|
|
2407
2407
|
i.data;
|
|
2408
2408
|
var o = tn(i, qd);
|
|
2409
|
-
return
|
|
2409
|
+
return P("div", F({
|
|
2410
2410
|
css: r("groupHeading", t),
|
|
2411
2411
|
className: n({
|
|
2412
2412
|
"group-heading": !0
|
|
@@ -2452,13 +2452,13 @@ var Qd = function(t) {
|
|
|
2452
2452
|
}, ss);
|
|
2453
2453
|
}, lf = function(t) {
|
|
2454
2454
|
var r = t.className, n = t.cx, a = t.getStyles, i = t.value, o = Uo(t), s = o.innerRef, u = o.isDisabled, l = o.isHidden, c = o.inputClassName, d = tn(o, af);
|
|
2455
|
-
return
|
|
2455
|
+
return P("div", {
|
|
2456
2456
|
className: n({
|
|
2457
2457
|
"input-container": !0
|
|
2458
2458
|
}, r),
|
|
2459
2459
|
css: a("input", t),
|
|
2460
2460
|
"data-value": i || ""
|
|
2461
|
-
},
|
|
2461
|
+
}, P("input", F({
|
|
2462
2462
|
className: n({
|
|
2463
2463
|
input: !0
|
|
2464
2464
|
}, c),
|
|
@@ -2505,41 +2505,41 @@ var Qd = function(t) {
|
|
|
2505
2505
|
};
|
|
2506
2506
|
}, us = function(t) {
|
|
2507
2507
|
var r = t.children, n = t.innerProps;
|
|
2508
|
-
return
|
|
2508
|
+
return P("div", n, r);
|
|
2509
2509
|
}, hf = us, pf = us;
|
|
2510
2510
|
function mf(e) {
|
|
2511
2511
|
var t = e.children, r = e.innerProps;
|
|
2512
|
-
return
|
|
2512
|
+
return P("div", F({
|
|
2513
2513
|
role: "button"
|
|
2514
|
-
}, r), t ||
|
|
2514
|
+
}, r), t || P(Ya, {
|
|
2515
2515
|
size: 14
|
|
2516
2516
|
}));
|
|
2517
2517
|
}
|
|
2518
2518
|
var gf = function(t) {
|
|
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, p = a.Container,
|
|
2520
|
-
return
|
|
2521
|
-
var
|
|
2522
|
-
return
|
|
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, p = a.Container, h = a.Label, f = a.Remove;
|
|
2520
|
+
return P($o, null, function(m) {
|
|
2521
|
+
var g = m.css, v = m.cx;
|
|
2522
|
+
return P(p, {
|
|
2523
2523
|
data: o,
|
|
2524
2524
|
innerProps: re({
|
|
2525
|
-
className: v(
|
|
2525
|
+
className: v(g(s("multiValue", t)), i({
|
|
2526
2526
|
"multi-value": !0,
|
|
2527
2527
|
"multi-value--is-disabled": l
|
|
2528
2528
|
}, n))
|
|
2529
2529
|
}, u),
|
|
2530
2530
|
selectProps: d
|
|
2531
|
-
},
|
|
2531
|
+
}, P(h, {
|
|
2532
2532
|
data: o,
|
|
2533
2533
|
innerProps: {
|
|
2534
|
-
className: v(
|
|
2534
|
+
className: v(g(s("multiValueLabel", t)), i({
|
|
2535
2535
|
"multi-value__label": !0
|
|
2536
2536
|
}, n))
|
|
2537
2537
|
},
|
|
2538
2538
|
selectProps: d
|
|
2539
|
-
}, r),
|
|
2539
|
+
}, r), P(f, {
|
|
2540
2540
|
data: o,
|
|
2541
2541
|
innerProps: re({
|
|
2542
|
-
className: v(
|
|
2542
|
+
className: v(g(s("multiValueRemove", t)), i({
|
|
2543
2543
|
"multi-value__remove": !0
|
|
2544
2544
|
}, n)),
|
|
2545
2545
|
"aria-label": "Remove ".concat(r || "option")
|
|
@@ -2567,7 +2567,7 @@ var gf = function(t) {
|
|
|
2567
2567
|
};
|
|
2568
2568
|
}, bf = function(t) {
|
|
2569
2569
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.isDisabled, s = t.isFocused, u = t.isSelected, l = t.innerRef, c = t.innerProps;
|
|
2570
|
-
return
|
|
2570
|
+
return P("div", F({
|
|
2571
2571
|
css: i("option", t),
|
|
2572
2572
|
className: a({
|
|
2573
2573
|
option: !0,
|
|
@@ -2589,7 +2589,7 @@ var gf = function(t) {
|
|
|
2589
2589
|
};
|
|
2590
2590
|
}, If = function(t) {
|
|
2591
2591
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.innerProps;
|
|
2592
|
-
return
|
|
2592
|
+
return P("div", F({
|
|
2593
2593
|
css: i("placeholder", t),
|
|
2594
2594
|
className: a({
|
|
2595
2595
|
placeholder: !0
|
|
@@ -2610,7 +2610,7 @@ var gf = function(t) {
|
|
|
2610
2610
|
};
|
|
2611
2611
|
}, Cf = function(t) {
|
|
2612
2612
|
var r = t.children, n = t.className, a = t.cx, i = t.getStyles, o = t.isDisabled, s = t.innerProps;
|
|
2613
|
-
return
|
|
2613
|
+
return P("div", F({
|
|
2614
2614
|
css: i("singleValue", t),
|
|
2615
2615
|
className: a({
|
|
2616
2616
|
"single-value": !0,
|
|
@@ -2696,17 +2696,17 @@ function Gr(e, t) {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
var Sf = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
2698
2698
|
function Ef(e) {
|
|
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, p = e.onMenuOpen,
|
|
2700
|
-
typeof l == "function" && l(Ee, Ke),
|
|
2701
|
-
}, [l]), ae =
|
|
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, p = e.onMenuOpen, h = e.value, f = tn(e, Sf), m = oe(s !== void 0 ? s : r), g = Gr(m, 2), v = g[0], y = g[1], I = oe(u !== void 0 ? u : a), D = Gr(I, 2), b = D[0], x = D[1], w = oe(h !== void 0 ? h : o), O = Gr(w, 2), E = O[0], Q = O[1], z = J(function(Ee, Ke) {
|
|
2700
|
+
typeof l == "function" && l(Ee, Ke), Q(Ee);
|
|
2701
|
+
}, [l]), ae = J(function(Ee, Ke) {
|
|
2702
2702
|
var Ve;
|
|
2703
2703
|
typeof c == "function" && (Ve = c(Ee, Ke)), y(Ve !== void 0 ? Ve : Ee);
|
|
2704
|
-
}, [c]), ie =
|
|
2705
|
-
typeof p == "function" && p(),
|
|
2706
|
-
}, [p]), T =
|
|
2707
|
-
typeof d == "function" && d(),
|
|
2708
|
-
}, [d]), q = s !== void 0 ? s : v, Se = u !== void 0 ? u : b, Ce =
|
|
2709
|
-
return re(re({},
|
|
2704
|
+
}, [c]), ie = J(function() {
|
|
2705
|
+
typeof p == "function" && p(), x(!0);
|
|
2706
|
+
}, [p]), T = J(function() {
|
|
2707
|
+
typeof d == "function" && d(), x(!1);
|
|
2708
|
+
}, [d]), q = s !== void 0 ? s : v, Se = u !== void 0 ? u : b, Ce = h !== void 0 ? h : E;
|
|
2709
|
+
return re(re({}, f), {}, {
|
|
2710
2710
|
inputValue: q,
|
|
2711
2711
|
menuIsOpen: Se,
|
|
2712
2712
|
onChange: z,
|
|
@@ -2767,7 +2767,7 @@ var Gf = process.env.NODE_ENV === "production" ? {
|
|
|
2767
2767
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
2768
2768
|
toString: Ff
|
|
2769
2769
|
}, Xi = function(t) {
|
|
2770
|
-
return
|
|
2770
|
+
return P("span", F({
|
|
2771
2771
|
css: Gf
|
|
2772
2772
|
}, t));
|
|
2773
2773
|
}, Rf = {
|
|
@@ -2802,8 +2802,8 @@ var Gf = process.env.NODE_ENV === "production" ? {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
},
|
|
2804
2804
|
onFocus: function(t) {
|
|
2805
|
-
var r = t.context, n = t.focused, a = t.options, i = t.label, o = i === void 0 ? "" : i, s = t.selectValue, u = t.isDisabled, l = t.isSelected, c = function(
|
|
2806
|
-
return
|
|
2805
|
+
var r = t.context, n = t.focused, a = t.options, i = t.label, o = i === void 0 ? "" : i, s = t.selectValue, u = t.isDisabled, l = t.isSelected, c = function(f, m) {
|
|
2806
|
+
return f && f.length ? "".concat(f.indexOf(m) + 1, " of ").concat(f.length) : "";
|
|
2807
2807
|
};
|
|
2808
2808
|
if (r === "value" && s)
|
|
2809
2809
|
return "value ".concat(o, " focused, ").concat(c(s, n), ".");
|
|
@@ -2818,72 +2818,72 @@ var Gf = process.env.NODE_ENV === "production" ? {
|
|
|
2818
2818
|
return "".concat(n).concat(r ? " for search term " + r : "", ".");
|
|
2819
2819
|
}
|
|
2820
2820
|
}, Wf = function(t) {
|
|
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, p = u.inputValue,
|
|
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, p = u.inputValue, h = u.isMulti, f = u.isOptionDisabled, m = u.isSearchable, g = u.menuIsOpen, v = u.options, y = u.screenReaderStatus, I = u.tabSelectsValue, D = u["aria-label"], b = u["aria-live"], x = We(function() {
|
|
2822
2822
|
return re(re({}, Rf), c || {});
|
|
2823
|
-
}, [c]),
|
|
2823
|
+
}, [c]), w = We(function() {
|
|
2824
2824
|
var T = "";
|
|
2825
|
-
if (r &&
|
|
2825
|
+
if (r && x.onChange) {
|
|
2826
2826
|
var q = r.option, Se = r.options, Ce = r.removedValue, Ee = r.removedValues, Ke = r.value, Ve = function(Te) {
|
|
2827
2827
|
return Array.isArray(Te) ? null : Te;
|
|
2828
2828
|
}, ut = Ce || q || Ve(Ke), fe = ut ? d(ut) : "", ve = Se || Ee || void 0, qe = ve ? ve.map(d) : [], et = re({
|
|
2829
2829
|
// multiSelected items are usually items that have already been selected
|
|
2830
2830
|
// or set by the user as a default value so we assume they are not disabled
|
|
2831
|
-
isDisabled: ut &&
|
|
2831
|
+
isDisabled: ut && f(ut, s),
|
|
2832
2832
|
label: fe,
|
|
2833
2833
|
labels: qe
|
|
2834
2834
|
}, r);
|
|
2835
|
-
T =
|
|
2835
|
+
T = x.onChange(et);
|
|
2836
2836
|
}
|
|
2837
2837
|
return T;
|
|
2838
|
-
}, [r,
|
|
2838
|
+
}, [r, x, f, s, d]), O = We(function() {
|
|
2839
2839
|
var T = "", q = n || a, Se = !!(n && s && s.includes(n));
|
|
2840
|
-
if (q &&
|
|
2840
|
+
if (q && x.onFocus) {
|
|
2841
2841
|
var Ce = {
|
|
2842
2842
|
focused: q,
|
|
2843
2843
|
label: d(q),
|
|
2844
|
-
isDisabled:
|
|
2844
|
+
isDisabled: f(q, s),
|
|
2845
2845
|
isSelected: Se,
|
|
2846
2846
|
options: v,
|
|
2847
2847
|
context: q === n ? "menu" : "value",
|
|
2848
2848
|
selectValue: s
|
|
2849
2849
|
};
|
|
2850
|
-
T =
|
|
2850
|
+
T = x.onFocus(Ce);
|
|
2851
2851
|
}
|
|
2852
2852
|
return T;
|
|
2853
|
-
}, [n, a, d,
|
|
2853
|
+
}, [n, a, d, f, x, v, s]), E = We(function() {
|
|
2854
2854
|
var T = "";
|
|
2855
|
-
if (
|
|
2855
|
+
if (g && v.length && x.onFilter) {
|
|
2856
2856
|
var q = y({
|
|
2857
2857
|
count: i.length
|
|
2858
2858
|
});
|
|
2859
|
-
T =
|
|
2859
|
+
T = x.onFilter({
|
|
2860
2860
|
inputValue: p,
|
|
2861
2861
|
resultsMessage: q
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
2864
|
return T;
|
|
2865
|
-
}, [i, p,
|
|
2865
|
+
}, [i, p, g, x, v, y]), Q = We(function() {
|
|
2866
2866
|
var T = "";
|
|
2867
|
-
if (
|
|
2868
|
-
var q = a ? "value" :
|
|
2869
|
-
T =
|
|
2870
|
-
"aria-label":
|
|
2867
|
+
if (x.guidance) {
|
|
2868
|
+
var q = a ? "value" : g ? "menu" : "input";
|
|
2869
|
+
T = x.guidance({
|
|
2870
|
+
"aria-label": D,
|
|
2871
2871
|
context: q,
|
|
2872
|
-
isDisabled: n &&
|
|
2873
|
-
isMulti:
|
|
2874
|
-
isSearchable:
|
|
2872
|
+
isDisabled: n && f(n, s),
|
|
2873
|
+
isMulti: h,
|
|
2874
|
+
isSearchable: m,
|
|
2875
2875
|
tabSelectsValue: I
|
|
2876
2876
|
});
|
|
2877
2877
|
}
|
|
2878
2878
|
return T;
|
|
2879
|
-
}, [
|
|
2879
|
+
}, [D, n, a, h, f, m, g, x, s, I]), z = "".concat(O, " ").concat(E, " ").concat(Q), ae = P(tr, null, P("span", {
|
|
2880
2880
|
id: "aria-selection"
|
|
2881
|
-
},
|
|
2881
|
+
}, w), P("span", {
|
|
2882
2882
|
id: "aria-context"
|
|
2883
2883
|
}, z)), ie = (r == null ? void 0 : r.action) === "initial-input-focus";
|
|
2884
|
-
return
|
|
2884
|
+
return P(tr, null, P(Xi, {
|
|
2885
2885
|
id: l
|
|
2886
|
-
}, ie && ae),
|
|
2886
|
+
}, ie && ae), P(Xi, {
|
|
2887
2887
|
"aria-live": b,
|
|
2888
2888
|
"aria-atomic": "false",
|
|
2889
2889
|
"aria-relevant": "additions text"
|
|
@@ -3170,7 +3170,7 @@ var fs = function(t) {
|
|
|
3170
3170
|
}, Hf = ["innerRef"];
|
|
3171
3171
|
function Zf(e) {
|
|
3172
3172
|
var t = e.innerRef, r = tn(e, Hf);
|
|
3173
|
-
return
|
|
3173
|
+
return P("input", F({
|
|
3174
3174
|
ref: t
|
|
3175
3175
|
}, r, {
|
|
3176
3176
|
css: /* @__PURE__ */ Ta({
|
|
@@ -3200,37 +3200,37 @@ var Xf = function(t) {
|
|
|
3200
3200
|
t.preventDefault(), t.stopPropagation();
|
|
3201
3201
|
};
|
|
3202
3202
|
function jf(e) {
|
|
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 =
|
|
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 = J(function(g, v) {
|
|
3204
3204
|
if (l.current !== null) {
|
|
3205
|
-
var y = l.current, I = y.scrollTop,
|
|
3206
|
-
|
|
3207
|
-
}
|
|
3208
|
-
}, [r, n, a, i]), d =
|
|
3209
|
-
c(
|
|
3210
|
-
}, [c]), p =
|
|
3211
|
-
u.current =
|
|
3212
|
-
}, []),
|
|
3213
|
-
var v = u.current -
|
|
3214
|
-
c(
|
|
3215
|
-
}, [c]),
|
|
3216
|
-
if (
|
|
3205
|
+
var y = l.current, I = y.scrollTop, D = y.scrollHeight, b = y.clientHeight, x = l.current, w = v > 0, O = D - b - I, E = !1;
|
|
3206
|
+
O > v && o.current && (n && n(g), o.current = !1), w && s.current && (i && i(g), s.current = !1), w && v > O ? (r && !o.current && r(g), x.scrollTop = D, E = !0, o.current = !0) : !w && -v > I && (a && !s.current && a(g), x.scrollTop = 0, E = !0, s.current = !0), E && Xf(g);
|
|
3207
|
+
}
|
|
3208
|
+
}, [r, n, a, i]), d = J(function(g) {
|
|
3209
|
+
c(g, g.deltaY);
|
|
3210
|
+
}, [c]), p = J(function(g) {
|
|
3211
|
+
u.current = g.changedTouches[0].clientY;
|
|
3212
|
+
}, []), h = J(function(g) {
|
|
3213
|
+
var v = u.current - g.changedTouches[0].clientY;
|
|
3214
|
+
c(g, v);
|
|
3215
|
+
}, [c]), f = J(function(g) {
|
|
3216
|
+
if (g) {
|
|
3217
3217
|
var v = xd ? {
|
|
3218
3218
|
passive: !1
|
|
3219
3219
|
} : !1;
|
|
3220
|
-
|
|
3220
|
+
g.addEventListener("wheel", d, v), g.addEventListener("touchstart", p, v), g.addEventListener("touchmove", h, v);
|
|
3221
3221
|
}
|
|
3222
|
-
}, [
|
|
3223
|
-
|
|
3224
|
-
}, [
|
|
3222
|
+
}, [h, p, d]), m = J(function(g) {
|
|
3223
|
+
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", p, !1), g.removeEventListener("touchmove", h, !1));
|
|
3224
|
+
}, [h, p, d]);
|
|
3225
3225
|
return Ze(function() {
|
|
3226
3226
|
if (t) {
|
|
3227
|
-
var
|
|
3228
|
-
return
|
|
3229
|
-
g
|
|
3227
|
+
var g = l.current;
|
|
3228
|
+
return f(g), function() {
|
|
3229
|
+
m(g);
|
|
3230
3230
|
};
|
|
3231
3231
|
}
|
|
3232
|
-
}, [t,
|
|
3233
|
-
l.current =
|
|
3232
|
+
}, [t, f, m]), function(g) {
|
|
3233
|
+
l.current = g;
|
|
3234
3234
|
};
|
|
3235
3235
|
}
|
|
3236
3236
|
var zi = ["boxSizing", "height", "overflow", "paddingRight", "position"], $i = {
|
|
@@ -3258,22 +3258,22 @@ var qi = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
3258
3258
|
passive: !1
|
|
3259
3259
|
};
|
|
3260
3260
|
function zf(e) {
|
|
3261
|
-
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 = J(function(u) {
|
|
3262
3262
|
if (qi) {
|
|
3263
3263
|
var l = document.body, c = l && l.style;
|
|
3264
|
-
if (n && zi.forEach(function(
|
|
3265
|
-
var
|
|
3266
|
-
a.current[
|
|
3264
|
+
if (n && zi.forEach(function(f) {
|
|
3265
|
+
var m = c && c[f];
|
|
3266
|
+
a.current[f] = m;
|
|
3267
3267
|
}), n && cn < 1) {
|
|
3268
|
-
var d = parseInt(a.current.paddingRight, 10) || 0, p = document.body ? document.body.clientWidth : 0,
|
|
3269
|
-
Object.keys($i).forEach(function(
|
|
3270
|
-
var
|
|
3271
|
-
c && (c[
|
|
3272
|
-
}), c && (c.paddingRight = "".concat(
|
|
3268
|
+
var d = parseInt(a.current.paddingRight, 10) || 0, p = document.body ? document.body.clientWidth : 0, h = window.innerWidth - p + d || 0;
|
|
3269
|
+
Object.keys($i).forEach(function(f) {
|
|
3270
|
+
var m = $i[f];
|
|
3271
|
+
c && (c[f] = m);
|
|
3272
|
+
}), c && (c.paddingRight = "".concat(h, "px"));
|
|
3273
3273
|
}
|
|
3274
3274
|
l && Ki() && (l.addEventListener("touchmove", Ui, Vt), u && (u.addEventListener("touchstart", Qi, Vt), u.addEventListener("touchmove", Ji, Vt))), cn += 1;
|
|
3275
3275
|
}
|
|
3276
|
-
}, [n]), s =
|
|
3276
|
+
}, [n]), s = J(function(u) {
|
|
3277
3277
|
if (qi) {
|
|
3278
3278
|
var l = document.body, c = l && l.style;
|
|
3279
3279
|
cn = Math.max(cn - 1, 0), n && cn < 1 && zi.forEach(function(d) {
|
|
@@ -3316,10 +3316,10 @@ function Qf(e) {
|
|
|
3316
3316
|
onTopLeave: u
|
|
3317
3317
|
}), c = zf({
|
|
3318
3318
|
isEnabled: r
|
|
3319
|
-
}), d = function(
|
|
3320
|
-
l(
|
|
3319
|
+
}), d = function(h) {
|
|
3320
|
+
l(h), c(h);
|
|
3321
3321
|
};
|
|
3322
|
-
return
|
|
3322
|
+
return P(tr, null, r && P("div", {
|
|
3323
3323
|
onClick: Uf,
|
|
3324
3324
|
css: Jf
|
|
3325
3325
|
}), t(d));
|
|
@@ -3558,9 +3558,9 @@ var Is = function(t) {
|
|
|
3558
3558
|
}, a.selectOption = function(i) {
|
|
3559
3559
|
var o = a.props, s = o.blurInputOnSelect, u = o.isMulti, l = o.name, c = a.state.selectValue, d = u && a.isOptionSelected(i, c), p = a.isOptionDisabled(i, c);
|
|
3560
3560
|
if (d) {
|
|
3561
|
-
var
|
|
3562
|
-
a.setValue(c.filter(function(
|
|
3563
|
-
return a.getOptionValue(
|
|
3561
|
+
var h = a.getOptionValue(i);
|
|
3562
|
+
a.setValue(c.filter(function(f) {
|
|
3563
|
+
return a.getOptionValue(f) !== h;
|
|
3564
3564
|
}), "deselect-option", i);
|
|
3565
3565
|
} else if (!p)
|
|
3566
3566
|
u ? a.setValue([].concat(cs(c), [i]), "select-option", i) : a.setValue(i, "select-option");
|
|
@@ -3700,8 +3700,8 @@ var Is = function(t) {
|
|
|
3700
3700
|
}, a.shouldHideSelectedOptions = function() {
|
|
3701
3701
|
return Is(a.props);
|
|
3702
3702
|
}, a.onKeyDown = function(i) {
|
|
3703
|
-
var o = a.props, s = o.isMulti, u = o.backspaceRemovesValue, l = o.escapeClearsValue, c = o.inputValue, d = o.isClearable, p = o.isDisabled,
|
|
3704
|
-
if (!p && !(typeof
|
|
3703
|
+
var o = a.props, s = o.isMulti, u = o.backspaceRemovesValue, l = o.escapeClearsValue, c = o.inputValue, d = o.isClearable, p = o.isDisabled, h = o.menuIsOpen, f = o.onKeyDown, m = o.tabSelectsValue, g = o.openMenuOnFocus, v = a.state, y = v.focusedOption, I = v.focusedValue, D = v.selectValue;
|
|
3704
|
+
if (!p && !(typeof f == "function" && (f(i), i.defaultPrevented))) {
|
|
3705
3705
|
switch (a.blockOptionHover = !0, i.key) {
|
|
3706
3706
|
case "ArrowLeft":
|
|
3707
3707
|
if (!s || c)
|
|
@@ -3726,16 +3726,16 @@ var Is = function(t) {
|
|
|
3726
3726
|
}
|
|
3727
3727
|
break;
|
|
3728
3728
|
case "Tab":
|
|
3729
|
-
if (a.isComposing || i.shiftKey || !
|
|
3729
|
+
if (a.isComposing || i.shiftKey || !h || !m || !y || // don't capture the event if the menu opens on focus and the focused
|
|
3730
3730
|
// option is already selected; it breaks the flow of navigation
|
|
3731
|
-
|
|
3731
|
+
g && a.isOptionSelected(y, D))
|
|
3732
3732
|
return;
|
|
3733
3733
|
a.selectOption(y);
|
|
3734
3734
|
break;
|
|
3735
3735
|
case "Enter":
|
|
3736
3736
|
if (i.keyCode === 229)
|
|
3737
3737
|
break;
|
|
3738
|
-
if (
|
|
3738
|
+
if (h) {
|
|
3739
3739
|
if (!y || a.isComposing)
|
|
3740
3740
|
return;
|
|
3741
3741
|
a.selectOption(y);
|
|
@@ -3743,7 +3743,7 @@ var Is = function(t) {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
return;
|
|
3745
3745
|
case "Escape":
|
|
3746
|
-
|
|
3746
|
+
h ? (a.setState({
|
|
3747
3747
|
inputIsHiddenAfterUpdate: !1
|
|
3748
3748
|
}), a.onInputChange("", {
|
|
3749
3749
|
action: "menu-close",
|
|
@@ -3753,7 +3753,7 @@ var Is = function(t) {
|
|
|
3753
3753
|
case " ":
|
|
3754
3754
|
if (c)
|
|
3755
3755
|
return;
|
|
3756
|
-
if (!
|
|
3756
|
+
if (!h) {
|
|
3757
3757
|
a.openMenu("first");
|
|
3758
3758
|
break;
|
|
3759
3759
|
}
|
|
@@ -3762,28 +3762,28 @@ var Is = function(t) {
|
|
|
3762
3762
|
a.selectOption(y);
|
|
3763
3763
|
break;
|
|
3764
3764
|
case "ArrowUp":
|
|
3765
|
-
|
|
3765
|
+
h ? a.focusOption("up") : a.openMenu("last");
|
|
3766
3766
|
break;
|
|
3767
3767
|
case "ArrowDown":
|
|
3768
|
-
|
|
3768
|
+
h ? a.focusOption("down") : a.openMenu("first");
|
|
3769
3769
|
break;
|
|
3770
3770
|
case "PageUp":
|
|
3771
|
-
if (!
|
|
3771
|
+
if (!h)
|
|
3772
3772
|
return;
|
|
3773
3773
|
a.focusOption("pageup");
|
|
3774
3774
|
break;
|
|
3775
3775
|
case "PageDown":
|
|
3776
|
-
if (!
|
|
3776
|
+
if (!h)
|
|
3777
3777
|
return;
|
|
3778
3778
|
a.focusOption("pagedown");
|
|
3779
3779
|
break;
|
|
3780
3780
|
case "Home":
|
|
3781
|
-
if (!
|
|
3781
|
+
if (!h)
|
|
3782
3782
|
return;
|
|
3783
3783
|
a.focusOption("first");
|
|
3784
3784
|
break;
|
|
3785
3785
|
case "End":
|
|
3786
|
-
if (!
|
|
3786
|
+
if (!h)
|
|
3787
3787
|
return;
|
|
3788
3788
|
a.focusOption("last");
|
|
3789
3789
|
break;
|
|
@@ -3917,16 +3917,16 @@ var Is = function(t) {
|
|
|
3917
3917
|
}, {
|
|
3918
3918
|
key: "getCommonProps",
|
|
3919
3919
|
value: function() {
|
|
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, p = c.isRtl,
|
|
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, p = c.isRtl, h = c.options, f = this.hasValue();
|
|
3921
3921
|
return {
|
|
3922
3922
|
clearValue: a,
|
|
3923
3923
|
cx: i,
|
|
3924
3924
|
getStyles: o,
|
|
3925
3925
|
getValue: s,
|
|
3926
|
-
hasValue:
|
|
3926
|
+
hasValue: f,
|
|
3927
3927
|
isMulti: d,
|
|
3928
3928
|
isRtl: p,
|
|
3929
|
-
options:
|
|
3929
|
+
options: h,
|
|
3930
3930
|
selectOption: u,
|
|
3931
3931
|
selectProps: c,
|
|
3932
3932
|
setValue: l,
|
|
@@ -4023,7 +4023,7 @@ var Is = function(t) {
|
|
|
4023
4023
|
// Renderers
|
|
4024
4024
|
// ==============================
|
|
4025
4025
|
function() {
|
|
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, p = this.getComponents(),
|
|
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, p = this.getComponents(), h = p.Input, f = this.state, m = f.inputIsHidden, g = f.ariaSelection, v = this.commonProps, y = s || this.getElementId("input"), I = re(re({
|
|
4027
4027
|
"aria-autocomplete": "list",
|
|
4028
4028
|
"aria-expanded": d,
|
|
4029
4029
|
"aria-haspopup": !0,
|
|
@@ -4036,19 +4036,19 @@ var Is = function(t) {
|
|
|
4036
4036
|
role: "combobox"
|
|
4037
4037
|
}, !o && {
|
|
4038
4038
|
"aria-readonly": !0
|
|
4039
|
-
}), this.hasValue() ? (
|
|
4039
|
+
}), this.hasValue() ? (g == null ? void 0 : g.action) === "initial-input-focus" && {
|
|
4040
4040
|
"aria-describedby": this.getElementId("live-region")
|
|
4041
4041
|
} : {
|
|
4042
4042
|
"aria-describedby": this.getElementId("placeholder")
|
|
4043
4043
|
});
|
|
4044
|
-
return o ? /* @__PURE__ */ G.createElement(
|
|
4044
|
+
return o ? /* @__PURE__ */ G.createElement(h, F({}, v, {
|
|
4045
4045
|
autoCapitalize: "none",
|
|
4046
4046
|
autoComplete: "off",
|
|
4047
4047
|
autoCorrect: "off",
|
|
4048
4048
|
id: y,
|
|
4049
4049
|
innerRef: this.getInputRef,
|
|
4050
4050
|
isDisabled: i,
|
|
4051
|
-
isHidden:
|
|
4051
|
+
isHidden: m,
|
|
4052
4052
|
onBlur: this.onInputBlur,
|
|
4053
4053
|
onChange: this.handleInputChange,
|
|
4054
4054
|
onFocus: this.onInputFocus,
|
|
@@ -4074,50 +4074,50 @@ var Is = function(t) {
|
|
|
4074
4074
|
}, {
|
|
4075
4075
|
key: "renderPlaceholderOrValue",
|
|
4076
4076
|
value: function() {
|
|
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, p = this.commonProps,
|
|
4078
|
-
if (!this.hasValue() || !
|
|
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, p = this.commonProps, h = this.props, f = h.controlShouldRenderValue, m = h.isDisabled, g = h.isMulti, v = h.inputValue, y = h.placeholder, I = this.state, D = I.selectValue, b = I.focusedValue, x = I.isFocused;
|
|
4078
|
+
if (!this.hasValue() || !f)
|
|
4079
4079
|
return v ? null : /* @__PURE__ */ G.createElement(d, F({}, p, {
|
|
4080
4080
|
key: "placeholder",
|
|
4081
|
-
isDisabled:
|
|
4082
|
-
isFocused:
|
|
4081
|
+
isDisabled: m,
|
|
4082
|
+
isFocused: x,
|
|
4083
4083
|
innerProps: {
|
|
4084
4084
|
id: this.getElementId("placeholder")
|
|
4085
4085
|
}
|
|
4086
4086
|
}), y);
|
|
4087
|
-
if (
|
|
4088
|
-
return
|
|
4089
|
-
var
|
|
4087
|
+
if (g)
|
|
4088
|
+
return D.map(function(O, E) {
|
|
4089
|
+
var Q = O === b, z = "".concat(a.getOptionLabel(O), "-").concat(a.getOptionValue(O));
|
|
4090
4090
|
return /* @__PURE__ */ G.createElement(o, F({}, p, {
|
|
4091
4091
|
components: {
|
|
4092
4092
|
Container: s,
|
|
4093
4093
|
Label: u,
|
|
4094
4094
|
Remove: l
|
|
4095
4095
|
},
|
|
4096
|
-
isFocused:
|
|
4097
|
-
isDisabled:
|
|
4096
|
+
isFocused: Q,
|
|
4097
|
+
isDisabled: m,
|
|
4098
4098
|
key: z,
|
|
4099
4099
|
index: E,
|
|
4100
4100
|
removeProps: {
|
|
4101
4101
|
onClick: function() {
|
|
4102
|
-
return a.removeValue(
|
|
4102
|
+
return a.removeValue(O);
|
|
4103
4103
|
},
|
|
4104
4104
|
onTouchEnd: function() {
|
|
4105
|
-
return a.removeValue(
|
|
4105
|
+
return a.removeValue(O);
|
|
4106
4106
|
},
|
|
4107
4107
|
onMouseDown: function(ie) {
|
|
4108
4108
|
ie.preventDefault(), ie.stopPropagation();
|
|
4109
4109
|
}
|
|
4110
4110
|
},
|
|
4111
|
-
data:
|
|
4112
|
-
}), a.formatOptionLabel(
|
|
4111
|
+
data: O
|
|
4112
|
+
}), a.formatOptionLabel(O, "value"));
|
|
4113
4113
|
});
|
|
4114
4114
|
if (v)
|
|
4115
4115
|
return null;
|
|
4116
|
-
var
|
|
4116
|
+
var w = D[0];
|
|
4117
4117
|
return /* @__PURE__ */ G.createElement(c, F({}, p, {
|
|
4118
|
-
data:
|
|
4119
|
-
isDisabled:
|
|
4120
|
-
}), this.formatOptionLabel(
|
|
4118
|
+
data: w,
|
|
4119
|
+
isDisabled: m
|
|
4120
|
+
}), this.formatOptionLabel(w, "value"));
|
|
4121
4121
|
}
|
|
4122
4122
|
}, {
|
|
4123
4123
|
key: "renderClearIndicator",
|
|
@@ -4182,11 +4182,11 @@ var Is = function(t) {
|
|
|
4182
4182
|
}, {
|
|
4183
4183
|
key: "renderMenu",
|
|
4184
4184
|
value: function() {
|
|
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, p = i.NoOptionsMessage,
|
|
4186
|
-
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, p = i.NoOptionsMessage, h = i.Option, f = this.commonProps, m = this.state.focusedOption, g = this.props, v = g.captureMenuScroll, y = g.inputValue, I = g.isLoading, D = g.loadingMessage, b = g.minMenuHeight, x = g.maxMenuHeight, w = g.menuIsOpen, O = g.menuPlacement, E = g.menuPosition, Q = g.menuPortalTarget, z = g.menuShouldBlockScroll, ae = g.menuShouldScrollIntoView, ie = g.noOptionsMessage, T = g.onMenuScrollToTop, q = g.onMenuScrollToBottom;
|
|
4186
|
+
if (!w)
|
|
4187
4187
|
return null;
|
|
4188
4188
|
var Se = function(ve, qe) {
|
|
4189
|
-
var et = ve.type, Pe = ve.data, Te = ve.isDisabled, Et = ve.isSelected, Yt = ve.label, Pr = ve.value, Tn =
|
|
4189
|
+
var et = ve.type, Pe = ve.data, Te = ve.isDisabled, Et = ve.isSelected, Yt = ve.label, Pr = ve.value, Tn = m === Pe, A = Te ? void 0 : function() {
|
|
4190
4190
|
return a.onOptionHover(Pe);
|
|
4191
4191
|
}, un = Te ? void 0 : function() {
|
|
4192
4192
|
return a.selectOption(Pe);
|
|
@@ -4197,7 +4197,7 @@ var Is = function(t) {
|
|
|
4197
4197
|
onMouseOver: A,
|
|
4198
4198
|
tabIndex: -1
|
|
4199
4199
|
};
|
|
4200
|
-
return /* @__PURE__ */ G.createElement(
|
|
4200
|
+
return /* @__PURE__ */ G.createElement(h, F({}, f, {
|
|
4201
4201
|
innerProps: Fn,
|
|
4202
4202
|
data: Pe,
|
|
4203
4203
|
isDisabled: Te,
|
|
@@ -4214,7 +4214,7 @@ var Is = function(t) {
|
|
|
4214
4214
|
Ce = this.getCategorizedOptions().map(function(fe) {
|
|
4215
4215
|
if (fe.type === "group") {
|
|
4216
4216
|
var ve = fe.data, qe = fe.options, et = fe.index, Pe = "".concat(a.getElementId("group"), "-").concat(et), Te = "".concat(Pe, "-heading");
|
|
4217
|
-
return /* @__PURE__ */ G.createElement(o, F({},
|
|
4217
|
+
return /* @__PURE__ */ G.createElement(o, F({}, f, {
|
|
4218
4218
|
key: Pe,
|
|
4219
4219
|
data: ve,
|
|
4220
4220
|
options: qe,
|
|
@@ -4231,29 +4231,29 @@ var Is = function(t) {
|
|
|
4231
4231
|
return Se(fe, "".concat(fe.index));
|
|
4232
4232
|
});
|
|
4233
4233
|
else if (I) {
|
|
4234
|
-
var Ee =
|
|
4234
|
+
var Ee = D({
|
|
4235
4235
|
inputValue: y
|
|
4236
4236
|
});
|
|
4237
4237
|
if (Ee === null)
|
|
4238
4238
|
return null;
|
|
4239
|
-
Ce = /* @__PURE__ */ G.createElement(d,
|
|
4239
|
+
Ce = /* @__PURE__ */ G.createElement(d, f, Ee);
|
|
4240
4240
|
} else {
|
|
4241
4241
|
var Ke = ie({
|
|
4242
4242
|
inputValue: y
|
|
4243
4243
|
});
|
|
4244
4244
|
if (Ke === null)
|
|
4245
4245
|
return null;
|
|
4246
|
-
Ce = /* @__PURE__ */ G.createElement(p,
|
|
4246
|
+
Ce = /* @__PURE__ */ G.createElement(p, f, Ke);
|
|
4247
4247
|
}
|
|
4248
4248
|
var Ve = {
|
|
4249
4249
|
minMenuHeight: b,
|
|
4250
|
-
maxMenuHeight:
|
|
4251
|
-
menuPlacement:
|
|
4250
|
+
maxMenuHeight: x,
|
|
4251
|
+
menuPlacement: O,
|
|
4252
4252
|
menuPosition: E,
|
|
4253
4253
|
menuShouldScrollIntoView: ae
|
|
4254
|
-
}, ut = /* @__PURE__ */ G.createElement(qo, F({},
|
|
4254
|
+
}, ut = /* @__PURE__ */ G.createElement(qo, F({}, f, Ve), function(fe) {
|
|
4255
4255
|
var ve = fe.ref, qe = fe.placerProps, et = qe.placement, Pe = qe.maxHeight;
|
|
4256
|
-
return /* @__PURE__ */ G.createElement(u, F({},
|
|
4256
|
+
return /* @__PURE__ */ G.createElement(u, F({}, f, Ve, {
|
|
4257
4257
|
innerRef: ve,
|
|
4258
4258
|
innerProps: {
|
|
4259
4259
|
onMouseDown: a.onMenuMouseDown,
|
|
@@ -4268,20 +4268,20 @@ var Is = function(t) {
|
|
|
4268
4268
|
onBottomArrive: q,
|
|
4269
4269
|
lockEnabled: z
|
|
4270
4270
|
}, function(Te) {
|
|
4271
|
-
return /* @__PURE__ */ G.createElement(l, F({},
|
|
4271
|
+
return /* @__PURE__ */ G.createElement(l, F({}, f, {
|
|
4272
4272
|
innerRef: function(Yt) {
|
|
4273
4273
|
a.getMenuListRef(Yt), Te(Yt);
|
|
4274
4274
|
},
|
|
4275
4275
|
isLoading: I,
|
|
4276
4276
|
maxHeight: Pe,
|
|
4277
|
-
focusedOption:
|
|
4277
|
+
focusedOption: m
|
|
4278
4278
|
}), Ce);
|
|
4279
4279
|
}));
|
|
4280
4280
|
});
|
|
4281
|
-
return
|
|
4282
|
-
appendTo:
|
|
4281
|
+
return Q || E === "fixed" ? /* @__PURE__ */ G.createElement(c, F({}, f, {
|
|
4282
|
+
appendTo: Q,
|
|
4283
4283
|
controlElement: this.controlRef,
|
|
4284
|
-
menuPlacement:
|
|
4284
|
+
menuPlacement: O,
|
|
4285
4285
|
menuPosition: E
|
|
4286
4286
|
}), ut) : ut;
|
|
4287
4287
|
}
|
|
@@ -4292,8 +4292,8 @@ var Is = function(t) {
|
|
|
4292
4292
|
if (!(!l || s))
|
|
4293
4293
|
if (u)
|
|
4294
4294
|
if (o) {
|
|
4295
|
-
var d = c.map(function(
|
|
4296
|
-
return a.getOptionValue(
|
|
4295
|
+
var d = c.map(function(f) {
|
|
4296
|
+
return a.getOptionValue(f);
|
|
4297
4297
|
}).join(o);
|
|
4298
4298
|
return /* @__PURE__ */ G.createElement("input", {
|
|
4299
4299
|
name: l,
|
|
@@ -4301,12 +4301,12 @@ var Is = function(t) {
|
|
|
4301
4301
|
value: d
|
|
4302
4302
|
});
|
|
4303
4303
|
} else {
|
|
4304
|
-
var p = c.length > 0 ? c.map(function(
|
|
4304
|
+
var p = c.length > 0 ? c.map(function(f, m) {
|
|
4305
4305
|
return /* @__PURE__ */ G.createElement("input", {
|
|
4306
|
-
key: "i-".concat(
|
|
4306
|
+
key: "i-".concat(m),
|
|
4307
4307
|
name: l,
|
|
4308
4308
|
type: "hidden",
|
|
4309
|
-
value: a.getOptionValue(
|
|
4309
|
+
value: a.getOptionValue(f)
|
|
4310
4310
|
});
|
|
4311
4311
|
}) : /* @__PURE__ */ G.createElement("input", {
|
|
4312
4312
|
name: l,
|
|
@@ -4315,11 +4315,11 @@ var Is = function(t) {
|
|
|
4315
4315
|
return /* @__PURE__ */ G.createElement("div", null, p);
|
|
4316
4316
|
}
|
|
4317
4317
|
else {
|
|
4318
|
-
var
|
|
4318
|
+
var h = c[0] ? this.getOptionValue(c[0]) : "";
|
|
4319
4319
|
return /* @__PURE__ */ G.createElement("input", {
|
|
4320
4320
|
name: l,
|
|
4321
4321
|
type: "hidden",
|
|
4322
|
-
value:
|
|
4322
|
+
value: h
|
|
4323
4323
|
});
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
@@ -4340,55 +4340,55 @@ var Is = function(t) {
|
|
|
4340
4340
|
}, {
|
|
4341
4341
|
key: "render",
|
|
4342
4342
|
value: function() {
|
|
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, p = l.isDisabled,
|
|
4344
|
-
return /* @__PURE__ */ G.createElement(s, F({},
|
|
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, p = l.isDisabled, h = l.menuIsOpen, f = this.state.isFocused, m = this.commonProps = this.getCommonProps();
|
|
4344
|
+
return /* @__PURE__ */ G.createElement(s, F({}, m, {
|
|
4345
4345
|
className: c,
|
|
4346
4346
|
innerProps: {
|
|
4347
4347
|
id: d,
|
|
4348
4348
|
onKeyDown: this.onKeyDown
|
|
4349
4349
|
},
|
|
4350
4350
|
isDisabled: p,
|
|
4351
|
-
isFocused:
|
|
4352
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ G.createElement(i, F({},
|
|
4351
|
+
isFocused: f
|
|
4352
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ G.createElement(i, F({}, m, {
|
|
4353
4353
|
innerRef: this.getControlRef,
|
|
4354
4354
|
innerProps: {
|
|
4355
4355
|
onMouseDown: this.onControlMouseDown,
|
|
4356
4356
|
onTouchEnd: this.onControlTouchEnd
|
|
4357
4357
|
},
|
|
4358
4358
|
isDisabled: p,
|
|
4359
|
-
isFocused:
|
|
4360
|
-
menuIsOpen:
|
|
4361
|
-
}), /* @__PURE__ */ G.createElement(u, F({},
|
|
4359
|
+
isFocused: f,
|
|
4360
|
+
menuIsOpen: h
|
|
4361
|
+
}), /* @__PURE__ */ G.createElement(u, F({}, m, {
|
|
4362
4362
|
isDisabled: p
|
|
4363
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ G.createElement(o, F({},
|
|
4363
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ G.createElement(o, F({}, m, {
|
|
4364
4364
|
isDisabled: p
|
|
4365
4365
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
4366
4366
|
}
|
|
4367
4367
|
}], [{
|
|
4368
4368
|
key: "getDerivedStateFromProps",
|
|
4369
4369
|
value: function(a, i) {
|
|
4370
|
-
var o = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, l = i.ariaSelection, c = i.isFocused, d = i.prevWasFocused, p = a.options,
|
|
4371
|
-
if (o && (
|
|
4372
|
-
var I =
|
|
4370
|
+
var o = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, l = i.ariaSelection, c = i.isFocused, d = i.prevWasFocused, p = a.options, h = a.value, f = a.menuIsOpen, m = a.inputValue, g = a.isMulti, v = Vi(h), y = {};
|
|
4371
|
+
if (o && (h !== o.value || p !== o.options || f !== o.menuIsOpen || m !== o.inputValue)) {
|
|
4372
|
+
var I = f ? lh(a, v) : [], D = s ? ch(i, v) : null, b = dh(i, I);
|
|
4373
4373
|
y = {
|
|
4374
4374
|
selectValue: v,
|
|
4375
4375
|
focusedOption: b,
|
|
4376
|
-
focusedValue:
|
|
4376
|
+
focusedValue: D,
|
|
4377
4377
|
clearFocusValueOnUpdate: !1
|
|
4378
4378
|
};
|
|
4379
4379
|
}
|
|
4380
|
-
var
|
|
4380
|
+
var x = u != null && a !== o ? {
|
|
4381
4381
|
inputIsHidden: u,
|
|
4382
4382
|
inputIsHiddenAfterUpdate: void 0
|
|
4383
|
-
} : {},
|
|
4384
|
-
return c && !
|
|
4385
|
-
value: Vn(
|
|
4383
|
+
} : {}, w = l, O = c && d;
|
|
4384
|
+
return c && !O && (w = {
|
|
4385
|
+
value: Vn(g, v, v[0] || null),
|
|
4386
4386
|
options: v,
|
|
4387
4387
|
action: "initial-input-focus"
|
|
4388
|
-
},
|
|
4388
|
+
}, O = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (w = null), re(re(re({}, y), x), {}, {
|
|
4389
4389
|
prevProps: a,
|
|
4390
|
-
ariaSelection:
|
|
4391
|
-
prevWasFocused:
|
|
4390
|
+
ariaSelection: w,
|
|
4391
|
+
prevWasFocused: O
|
|
4392
4392
|
});
|
|
4393
4393
|
}
|
|
4394
4394
|
}]), r;
|
|
@@ -4600,58 +4600,63 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4600
4600
|
background: c,
|
|
4601
4601
|
"data-tip": d,
|
|
4602
4602
|
"data-tooltip-content": p,
|
|
4603
|
-
"data-tooltip-id":
|
|
4604
|
-
"data-testid":
|
|
4605
|
-
...
|
|
4603
|
+
"data-tooltip-id": h,
|
|
4604
|
+
"data-testid": f,
|
|
4605
|
+
...m
|
|
4606
4606
|
}) => {
|
|
4607
|
-
const
|
|
4608
|
-
(
|
|
4609
|
-
if (!i && (
|
|
4610
|
-
const w = !
|
|
4611
|
-
|
|
4612
|
-
const
|
|
4613
|
-
...
|
|
4607
|
+
const g = _e(null), v = J(
|
|
4608
|
+
(x) => {
|
|
4609
|
+
if (!i && (x.preventDefault(), g.current)) {
|
|
4610
|
+
const w = !g.current.checked;
|
|
4611
|
+
g.current.ariaChecked = w.toString(), g.current.checked = w;
|
|
4612
|
+
const O = {
|
|
4613
|
+
...x,
|
|
4614
4614
|
target: {
|
|
4615
|
-
...
|
|
4615
|
+
...g.current,
|
|
4616
4616
|
checked: w,
|
|
4617
|
-
id:
|
|
4617
|
+
id: b
|
|
4618
4618
|
}
|
|
4619
4619
|
};
|
|
4620
4620
|
typeof l == "function" && l(
|
|
4621
|
-
|
|
4621
|
+
O,
|
|
4622
4622
|
w
|
|
4623
4623
|
);
|
|
4624
4624
|
}
|
|
4625
4625
|
},
|
|
4626
4626
|
[l]
|
|
4627
|
-
), y =
|
|
4628
|
-
(
|
|
4629
|
-
|
|
4627
|
+
), y = J(
|
|
4628
|
+
(x) => {
|
|
4629
|
+
x.target instanceof HTMLElement && x.target.closest("a") || v(x);
|
|
4630
|
+
},
|
|
4631
|
+
[l, i]
|
|
4632
|
+
), I = J(
|
|
4633
|
+
(x) => {
|
|
4634
|
+
x.key.match(/enter|spacebar|\W{1}/i) && v(x);
|
|
4630
4635
|
},
|
|
4631
4636
|
[v]
|
|
4632
|
-
),
|
|
4633
|
-
(
|
|
4634
|
-
i || typeof l == "function" && l(
|
|
4637
|
+
), D = J(
|
|
4638
|
+
(x) => {
|
|
4639
|
+
i || typeof l == "function" && l(x, x.target.checked);
|
|
4635
4640
|
},
|
|
4636
4641
|
[l, i]
|
|
4637
|
-
),
|
|
4642
|
+
), b = We(() => a || qt(), [a]);
|
|
4638
4643
|
return /* @__PURE__ */ ce(Mh, { background: c, children: [
|
|
4639
4644
|
/* @__PURE__ */ W(
|
|
4640
4645
|
yh,
|
|
4641
4646
|
{
|
|
4642
4647
|
"aria-hidden": "true",
|
|
4643
|
-
onChange:
|
|
4644
|
-
onKeyDown:
|
|
4645
|
-
ref:
|
|
4648
|
+
onChange: D,
|
|
4649
|
+
onKeyDown: I,
|
|
4650
|
+
ref: g,
|
|
4646
4651
|
type: "checkbox",
|
|
4647
4652
|
tabIndex: -1,
|
|
4648
4653
|
disabled: i,
|
|
4649
4654
|
checked: o,
|
|
4650
4655
|
defaultChecked: s,
|
|
4651
4656
|
required: u,
|
|
4652
|
-
id:
|
|
4653
|
-
"data-testid":
|
|
4654
|
-
"aria-describedby": r ? `${
|
|
4657
|
+
id: b,
|
|
4658
|
+
"data-testid": f,
|
|
4659
|
+
"aria-describedby": r ? `${b}_description` : void 0
|
|
4655
4660
|
}
|
|
4656
4661
|
),
|
|
4657
4662
|
/* @__PURE__ */ W(
|
|
@@ -4660,11 +4665,11 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4660
4665
|
type: "button",
|
|
4661
4666
|
role: "switch",
|
|
4662
4667
|
"aria-checked": o || s || !1,
|
|
4663
|
-
onKeyDown:
|
|
4668
|
+
onKeyDown: I,
|
|
4664
4669
|
onClick: v,
|
|
4665
4670
|
disabled: i,
|
|
4666
4671
|
background: c,
|
|
4667
|
-
...
|
|
4672
|
+
...m
|
|
4668
4673
|
}
|
|
4669
4674
|
),
|
|
4670
4675
|
e && /* @__PURE__ */ ce(Ih, { children: [
|
|
@@ -4673,16 +4678,16 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4673
4678
|
Dh,
|
|
4674
4679
|
{
|
|
4675
4680
|
bold: !0,
|
|
4676
|
-
htmlFor:
|
|
4681
|
+
htmlFor: b,
|
|
4677
4682
|
"data-tooltip-content": p || d,
|
|
4678
|
-
"data-tooltip-id":
|
|
4679
|
-
onClick:
|
|
4683
|
+
"data-tooltip-id": h,
|
|
4684
|
+
onClick: y,
|
|
4680
4685
|
children: e
|
|
4681
4686
|
}
|
|
4682
4687
|
),
|
|
4683
4688
|
t && /* @__PURE__ */ W(Ch, { children: t })
|
|
4684
4689
|
] }),
|
|
4685
|
-
r && /* @__PURE__ */ W(wh, { id: `${
|
|
4690
|
+
r && /* @__PURE__ */ W(wh, { id: `${b}_description`, children: r })
|
|
4686
4691
|
] })
|
|
4687
4692
|
] });
|
|
4688
4693
|
}, yh = S.input`
|
|
@@ -4806,40 +4811,40 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4806
4811
|
"data-tip": c,
|
|
4807
4812
|
"data-tooltip-content": d,
|
|
4808
4813
|
"data-tooltip-id": p,
|
|
4809
|
-
"data-testid":
|
|
4810
|
-
...
|
|
4814
|
+
"data-testid": h,
|
|
4815
|
+
...f
|
|
4811
4816
|
}) => {
|
|
4812
|
-
const
|
|
4817
|
+
const m = _e(null), g = We(() => u || qt(), [u]);
|
|
4813
4818
|
Ze(() => {
|
|
4814
|
-
|
|
4819
|
+
m.current && (m.current.indeterminate = n || !1);
|
|
4815
4820
|
}, [n]);
|
|
4816
|
-
const v =
|
|
4817
|
-
(
|
|
4818
|
-
if (!
|
|
4821
|
+
const v = J(
|
|
4822
|
+
(D) => {
|
|
4823
|
+
if (!m.current || o || D.target instanceof HTMLElement && D.target.closest("a"))
|
|
4819
4824
|
return;
|
|
4820
|
-
|
|
4821
|
-
const b = !
|
|
4822
|
-
if (
|
|
4823
|
-
const
|
|
4824
|
-
...
|
|
4825
|
+
D.preventDefault();
|
|
4826
|
+
const b = !m.current.checked;
|
|
4827
|
+
if (m.current.checked = b, m.current.ariaChecked = b ? "true" : "false", typeof a == "function") {
|
|
4828
|
+
const x = {
|
|
4829
|
+
...D,
|
|
4825
4830
|
target: {
|
|
4826
|
-
...
|
|
4831
|
+
...m.current,
|
|
4827
4832
|
checked: b,
|
|
4828
|
-
id:
|
|
4833
|
+
id: g
|
|
4829
4834
|
}
|
|
4830
4835
|
};
|
|
4831
|
-
a(
|
|
4836
|
+
a(x, b);
|
|
4832
4837
|
}
|
|
4833
4838
|
},
|
|
4834
|
-
[o,
|
|
4835
|
-
), y =
|
|
4836
|
-
(
|
|
4837
|
-
!
|
|
4839
|
+
[o, g, a]
|
|
4840
|
+
), y = J(
|
|
4841
|
+
(D) => {
|
|
4842
|
+
!D.key.match(/enter|spacebar|\W{1}/i) || !m.current || (D.preventDefault(), v(D));
|
|
4838
4843
|
},
|
|
4839
4844
|
[a]
|
|
4840
|
-
), I =
|
|
4841
|
-
(
|
|
4842
|
-
typeof a == "function" && !o && a(
|
|
4845
|
+
), I = J(
|
|
4846
|
+
(D) => {
|
|
4847
|
+
typeof a == "function" && !o && a(D, D.target.checked);
|
|
4843
4848
|
},
|
|
4844
4849
|
[o, a]
|
|
4845
4850
|
);
|
|
@@ -4847,7 +4852,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4847
4852
|
/* @__PURE__ */ W(
|
|
4848
4853
|
"input",
|
|
4849
4854
|
{
|
|
4850
|
-
ref:
|
|
4855
|
+
ref: m,
|
|
4851
4856
|
onChange: I,
|
|
4852
4857
|
onKeyDown: y,
|
|
4853
4858
|
type: "checkbox",
|
|
@@ -4856,10 +4861,10 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4856
4861
|
checked: s,
|
|
4857
4862
|
"aria-checked": n ? "mixed" : s,
|
|
4858
4863
|
"aria-disabled": o,
|
|
4859
|
-
"aria-describedby": r ? `${
|
|
4860
|
-
"data-testid":
|
|
4861
|
-
id:
|
|
4862
|
-
...
|
|
4864
|
+
"aria-describedby": r ? `${g}_description` : void 0,
|
|
4865
|
+
"data-testid": h,
|
|
4866
|
+
id: g,
|
|
4867
|
+
...f
|
|
4863
4868
|
}
|
|
4864
4869
|
),
|
|
4865
4870
|
n ? /* @__PURE__ */ W(
|
|
@@ -4870,7 +4875,8 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4870
4875
|
tabIndex: 0,
|
|
4871
4876
|
"aria-disabled": o,
|
|
4872
4877
|
background: l,
|
|
4873
|
-
|
|
4878
|
+
"data-testid": `${h}-span-checkbox`,
|
|
4879
|
+
...f,
|
|
4874
4880
|
children: /* @__PURE__ */ W(Eh, {})
|
|
4875
4881
|
}
|
|
4876
4882
|
) : /* @__PURE__ */ W(
|
|
@@ -4881,7 +4887,8 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4881
4887
|
tabIndex: 0,
|
|
4882
4888
|
"aria-disabled": o,
|
|
4883
4889
|
background: l,
|
|
4884
|
-
|
|
4890
|
+
"data-testid": `${h}-span-checkbox`,
|
|
4891
|
+
...f,
|
|
4885
4892
|
children: /* @__PURE__ */ W(Sh, {})
|
|
4886
4893
|
}
|
|
4887
4894
|
),
|
|
@@ -4892,7 +4899,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4892
4899
|
{
|
|
4893
4900
|
onClick: v,
|
|
4894
4901
|
bold: !0,
|
|
4895
|
-
htmlFor:
|
|
4902
|
+
htmlFor: g,
|
|
4896
4903
|
"data-tooltip-content": d || c,
|
|
4897
4904
|
"data-tooltip-id": p,
|
|
4898
4905
|
children: e
|
|
@@ -4900,7 +4907,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4900
4907
|
),
|
|
4901
4908
|
t && /* @__PURE__ */ W(Nh, { children: t })
|
|
4902
4909
|
] }),
|
|
4903
|
-
r && /* @__PURE__ */ W(Oh, { id: `${
|
|
4910
|
+
r && /* @__PURE__ */ W(Oh, { id: `${g}_description`, children: r })
|
|
4904
4911
|
] })
|
|
4905
4912
|
] });
|
|
4906
4913
|
}, xt = S.span`
|
|
@@ -4916,6 +4923,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
4916
4923
|
|
|
4917
4924
|
&:focus-visible {
|
|
4918
4925
|
outline: 0;
|
|
4926
|
+
|
|
4919
4927
|
:after {
|
|
4920
4928
|
content: "";
|
|
4921
4929
|
position: absolute;
|
|
@@ -5005,6 +5013,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5005
5013
|
${xt}, ${Nt} {
|
|
5006
5014
|
border-color: ${({ background: e }) => e || "var(--color-stroke-darken)"};
|
|
5007
5015
|
}
|
|
5016
|
+
|
|
5008
5017
|
input:checked:not(:disabled)
|
|
5009
5018
|
+ ${xt},
|
|
5010
5019
|
input:not(:disabled)
|
|
@@ -5034,28 +5043,28 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5034
5043
|
() => n ? Rh(n) : Fh(i || []),
|
|
5035
5044
|
[n, i]
|
|
5036
5045
|
), l = We(() => {
|
|
5037
|
-
const
|
|
5038
|
-
return
|
|
5046
|
+
const f = Wh(u), m = !!f.length;
|
|
5047
|
+
return m && s && So(Yh), m ? f : s;
|
|
5039
5048
|
}, [u, s]), [c, d] = oe(e || l || []);
|
|
5040
5049
|
Ze(() => {
|
|
5041
5050
|
e && d(e);
|
|
5042
5051
|
}, [e]);
|
|
5043
|
-
const p = (
|
|
5044
|
-
|
|
5045
|
-
const y = (
|
|
5052
|
+
const p = (f) => c.includes(f), h = (f, m, g) => {
|
|
5053
|
+
f.onChange && f.onChange(m, g);
|
|
5054
|
+
const y = (g ? [...c, f.value] : c.filter((I) => I !== f.value)).sort(Gh(u));
|
|
5046
5055
|
d(y), o && o(y);
|
|
5047
5056
|
};
|
|
5048
|
-
return /* @__PURE__ */ W(Vh, { className: a, children: u.map((
|
|
5057
|
+
return /* @__PURE__ */ W(Vh, { className: a, children: u.map((f) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(
|
|
5049
5058
|
kh,
|
|
5050
5059
|
{
|
|
5051
|
-
label:
|
|
5052
|
-
background:
|
|
5060
|
+
label: f.label,
|
|
5061
|
+
background: f.background,
|
|
5053
5062
|
name: r,
|
|
5054
|
-
disabled:
|
|
5055
|
-
checked: p(
|
|
5056
|
-
onChange: (
|
|
5063
|
+
disabled: f.disabled || t || !1,
|
|
5064
|
+
checked: p(f.value),
|
|
5065
|
+
onChange: (m, g) => h(f, m, g)
|
|
5057
5066
|
}
|
|
5058
|
-
) },
|
|
5067
|
+
) }, f.value)) });
|
|
5059
5068
|
}, Vh = S.ul`
|
|
5060
5069
|
list-style: none;
|
|
5061
5070
|
display: flex;
|
|
@@ -5076,12 +5085,12 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5076
5085
|
"data-testid": s,
|
|
5077
5086
|
...u
|
|
5078
5087
|
}) => {
|
|
5079
|
-
const [l] = oe(() => a || `radio_${qt()}`), c =
|
|
5088
|
+
const [l] = oe(() => a || `radio_${qt()}`), c = J(
|
|
5080
5089
|
(f) => {
|
|
5081
5090
|
if (o)
|
|
5082
5091
|
return;
|
|
5083
5092
|
f.preventDefault();
|
|
5084
|
-
const
|
|
5093
|
+
const m = {
|
|
5085
5094
|
...f,
|
|
5086
5095
|
target: {
|
|
5087
5096
|
...f.target,
|
|
@@ -5090,17 +5099,22 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5090
5099
|
}
|
|
5091
5100
|
};
|
|
5092
5101
|
typeof i == "function" && i(
|
|
5093
|
-
|
|
5102
|
+
m,
|
|
5094
5103
|
!0
|
|
5095
5104
|
);
|
|
5096
5105
|
},
|
|
5097
5106
|
[l, i, o]
|
|
5098
|
-
), d =
|
|
5107
|
+
), d = J(
|
|
5108
|
+
(f) => {
|
|
5109
|
+
f.target instanceof HTMLElement && f.target.closest("a") || c(f);
|
|
5110
|
+
},
|
|
5111
|
+
[c]
|
|
5112
|
+
), p = J(
|
|
5099
5113
|
(f) => {
|
|
5100
5114
|
f.key.match(/enter|spacebar|\W{1}/i) && (f.preventDefault(), c(f));
|
|
5101
5115
|
},
|
|
5102
5116
|
[c]
|
|
5103
|
-
),
|
|
5117
|
+
), h = J(
|
|
5104
5118
|
(f) => {
|
|
5105
5119
|
o || typeof i == "function" && i(f, f.target.checked);
|
|
5106
5120
|
},
|
|
@@ -5112,11 +5126,11 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5112
5126
|
{
|
|
5113
5127
|
type: "radio",
|
|
5114
5128
|
"aria-describedby": r ? `${l}_description` : void 0,
|
|
5115
|
-
onChange:
|
|
5129
|
+
onChange: h,
|
|
5116
5130
|
...u,
|
|
5117
5131
|
disabled: o,
|
|
5118
5132
|
id: l,
|
|
5119
|
-
onKeyDown:
|
|
5133
|
+
onKeyDown: p,
|
|
5120
5134
|
"data-testid": s
|
|
5121
5135
|
}
|
|
5122
5136
|
),
|
|
@@ -5124,7 +5138,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5124
5138
|
hn,
|
|
5125
5139
|
{
|
|
5126
5140
|
onClick: c,
|
|
5127
|
-
onKeyDown:
|
|
5141
|
+
onKeyDown: p,
|
|
5128
5142
|
background: n
|
|
5129
5143
|
}
|
|
5130
5144
|
),
|
|
@@ -5137,7 +5151,7 @@ const ph = hh, mh = (e) => Mn.DropdownIndicator && /* @__PURE__ */ W(Mn.Dropdown
|
|
|
5137
5151
|
htmlFor: l,
|
|
5138
5152
|
"data-tooltip-content": u["data-tooltip-content"] || u["data-tip"],
|
|
5139
5153
|
"data-tooltip-id": u["data-tooltip-id"],
|
|
5140
|
-
onClick:
|
|
5154
|
+
onClick: d,
|
|
5141
5155
|
children: e
|
|
5142
5156
|
}
|
|
5143
5157
|
),
|
|
@@ -5262,14 +5276,14 @@ const hn = S.span`
|
|
|
5262
5276
|
maxHeight: d,
|
|
5263
5277
|
...p
|
|
5264
5278
|
}) => {
|
|
5265
|
-
const [
|
|
5266
|
-
a ? `${
|
|
5267
|
-
c ? `${
|
|
5268
|
-
u === "error" && l ? `${
|
|
5279
|
+
const [h] = oe(() => e || qt()), f = n ? { "aria-labelledby": e } : {}, m = _e(null), g = [
|
|
5280
|
+
a ? `${h}-description` : "",
|
|
5281
|
+
c ? `${h}-hint-message` : "",
|
|
5282
|
+
u === "error" && l ? `${h}-error-message` : ""
|
|
5269
5283
|
].join(" ");
|
|
5270
5284
|
Ze(() => {
|
|
5271
|
-
|
|
5272
|
-
|
|
5285
|
+
m.current && (m.current.style.height = `${Math.min(
|
|
5286
|
+
m.current.scrollHeight,
|
|
5273
5287
|
d || 9999
|
|
5274
5288
|
)}px`);
|
|
5275
5289
|
}, [d]);
|
|
@@ -5282,11 +5296,11 @@ const hn = S.span`
|
|
|
5282
5296
|
};
|
|
5283
5297
|
return /* @__PURE__ */ ce(Jh, { isDisabled: s || !1, children: [
|
|
5284
5298
|
!!n && /* @__PURE__ */ ce(ks, { children: [
|
|
5285
|
-
/* @__PURE__ */ W(Uh, { bold: !0, htmlFor:
|
|
5299
|
+
/* @__PURE__ */ W(Uh, { bold: !0, htmlFor: h, isRequired: i || !1, children: n }),
|
|
5286
5300
|
a && /* @__PURE__ */ W(
|
|
5287
5301
|
pe,
|
|
5288
5302
|
{
|
|
5289
|
-
id: `${
|
|
5303
|
+
id: `${h}-description`,
|
|
5290
5304
|
color: "var(--color-secondary-text-on-light, #4a5464)",
|
|
5291
5305
|
children: a
|
|
5292
5306
|
}
|
|
@@ -5297,16 +5311,16 @@ const hn = S.span`
|
|
|
5297
5311
|
{
|
|
5298
5312
|
title: n || "Styled input",
|
|
5299
5313
|
state: u || "default",
|
|
5300
|
-
id:
|
|
5314
|
+
id: h,
|
|
5301
5315
|
disabled: s,
|
|
5302
5316
|
readOnly: o,
|
|
5303
|
-
ref:
|
|
5317
|
+
ref: m,
|
|
5304
5318
|
cols: t,
|
|
5305
5319
|
rows: r,
|
|
5306
5320
|
...a ? {
|
|
5307
|
-
"aria-describedby":
|
|
5321
|
+
"aria-describedby": g
|
|
5308
5322
|
} : {},
|
|
5309
|
-
...
|
|
5323
|
+
...f,
|
|
5310
5324
|
...p,
|
|
5311
5325
|
style: {
|
|
5312
5326
|
...p.style,
|
|
@@ -5315,11 +5329,11 @@ const hn = S.span`
|
|
|
5315
5329
|
onChange: v
|
|
5316
5330
|
}
|
|
5317
5331
|
),
|
|
5318
|
-
c && /* @__PURE__ */ ce(la, { id: `${
|
|
5332
|
+
c && /* @__PURE__ */ ce(la, { id: `${h}-hint-message`, children: [
|
|
5319
5333
|
/* @__PURE__ */ W(no, { fill: "var(--color-hint-text-on-light, #68778d)" }),
|
|
5320
5334
|
/* @__PURE__ */ W(yn, { color: "var(--color-secondary-text-on-light, #4a5464)", children: c })
|
|
5321
5335
|
] }),
|
|
5322
|
-
u === "error" && l && /* @__PURE__ */ ce(la, { id: `${
|
|
5336
|
+
u === "error" && l && /* @__PURE__ */ ce(la, { id: `${h}-error-message`, children: [
|
|
5323
5337
|
/* @__PURE__ */ W(no, { fill: "var(--color-alert-primary, #da3939)" }),
|
|
5324
5338
|
/* @__PURE__ */ W(yn, { color: "var(--color-alert-primary, #da3939)", children: l })
|
|
5325
5339
|
] })
|
|
@@ -5666,24 +5680,24 @@ var Vs = function(e) {
|
|
|
5666
5680
|
}, {
|
|
5667
5681
|
key: "render",
|
|
5668
5682
|
value: function() {
|
|
5669
|
-
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, p = void 0,
|
|
5670
|
-
l === "rtl" ? (c = this.handleNextClick, d = this.handlePreviousClick, p = this.handleNextKeyDown,
|
|
5671
|
-
var
|
|
5683
|
+
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, p = void 0, h = void 0, f = void 0, m = void 0;
|
|
5684
|
+
l === "rtl" ? (c = this.handleNextClick, d = this.handlePreviousClick, p = this.handleNextKeyDown, h = this.handlePreviousKeyDown, m = o, f = s) : (c = this.handlePreviousClick, d = this.handleNextClick, p = this.handlePreviousKeyDown, h = this.handleNextKeyDown, m = s, f = o);
|
|
5685
|
+
var g = f ? a.navButtonPrev : a.navButtonPrev + " " + a.navButtonInteractionDisabled, v = m ? a.navButtonNext : a.navButtonNext + " " + a.navButtonInteractionDisabled, y = Vr.default.createElement("span", {
|
|
5672
5686
|
tabIndex: "0",
|
|
5673
5687
|
role: "button",
|
|
5674
5688
|
"aria-label": u.previousMonth,
|
|
5675
5689
|
key: "previous",
|
|
5676
|
-
className:
|
|
5677
|
-
onKeyDown:
|
|
5678
|
-
onClick:
|
|
5690
|
+
className: g,
|
|
5691
|
+
onKeyDown: f ? p : void 0,
|
|
5692
|
+
onClick: f ? c : void 0
|
|
5679
5693
|
}), I = Vr.default.createElement("span", {
|
|
5680
5694
|
tabIndex: "0",
|
|
5681
5695
|
role: "button",
|
|
5682
5696
|
"aria-label": u.nextMonth,
|
|
5683
5697
|
key: "right",
|
|
5684
5698
|
className: v,
|
|
5685
|
-
onKeyDown:
|
|
5686
|
-
onClick:
|
|
5699
|
+
onKeyDown: m ? h : void 0,
|
|
5700
|
+
onClick: m ? d : void 0
|
|
5687
5701
|
});
|
|
5688
5702
|
return Vr.default.createElement(
|
|
5689
5703
|
"div",
|
|
@@ -5749,17 +5763,17 @@ var xp = function(e) {
|
|
|
5749
5763
|
}, {
|
|
5750
5764
|
key: "render",
|
|
5751
5765
|
value: function() {
|
|
5752
|
-
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, p = [],
|
|
5753
|
-
var
|
|
5754
|
-
key:
|
|
5766
|
+
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, p = [], h = 0; h < 7; h += 1) {
|
|
5767
|
+
var f = (h + i) % 7, m = {
|
|
5768
|
+
key: h,
|
|
5755
5769
|
className: a.weekday,
|
|
5756
|
-
weekday:
|
|
5770
|
+
weekday: f,
|
|
5757
5771
|
weekdaysLong: s,
|
|
5758
5772
|
weekdaysShort: u,
|
|
5759
5773
|
localeUtils: c,
|
|
5760
5774
|
locale: l
|
|
5761
|
-
},
|
|
5762
|
-
p.push(
|
|
5775
|
+
}, g = Lt.default.isValidElement(d) ? Lt.default.cloneElement(d, m) : Lt.default.createElement(d, m);
|
|
5776
|
+
p.push(g);
|
|
5763
5777
|
}
|
|
5764
5778
|
return Lt.default.createElement(
|
|
5765
5779
|
"div",
|
|
@@ -5910,23 +5924,23 @@ function Np(e, t) {
|
|
|
5910
5924
|
function Op(e) {
|
|
5911
5925
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (0, wp.getFirstDayOfWeek)(), r = arguments[2], n = Ks(e), a = [], i = [], o = [], s = 1; s <= n; s += 1)
|
|
5912
5926
|
a.push(new Date(e.getFullYear(), e.getMonth(), s, 12));
|
|
5913
|
-
a.forEach(function(
|
|
5914
|
-
i.length > 0 &&
|
|
5927
|
+
a.forEach(function(D) {
|
|
5928
|
+
i.length > 0 && D.getDay() === t && (o.push(i), i = []), i.push(D), a.indexOf(D) === a.length - 1 && o.push(i);
|
|
5915
5929
|
});
|
|
5916
5930
|
for (var u = o[0], l = 7 - u.length; l > 0; l -= 1) {
|
|
5917
5931
|
var c = (0, Qn.clone)(u[0]);
|
|
5918
5932
|
c.setDate(u[0].getDate() - 1), u.unshift(c);
|
|
5919
5933
|
}
|
|
5920
5934
|
for (var d = o[o.length - 1], p = d.length; p < 7; p += 1) {
|
|
5921
|
-
var
|
|
5922
|
-
|
|
5935
|
+
var h = (0, Qn.clone)(d[d.length - 1]);
|
|
5936
|
+
h.setDate(d[d.length - 1].getDate() + 1), d.push(h);
|
|
5923
5937
|
}
|
|
5924
5938
|
if (r && o.length < 6)
|
|
5925
|
-
for (var
|
|
5926
|
-
|
|
5927
|
-
for (var
|
|
5928
|
-
var I = (0, Qn.clone)(
|
|
5929
|
-
I.setDate(
|
|
5939
|
+
for (var f = void 0, m = o.length; m < 6; m += 1) {
|
|
5940
|
+
f = o[o.length - 1];
|
|
5941
|
+
for (var g = f[f.length - 1], v = [], y = 0; y < 7; y += 1) {
|
|
5942
|
+
var I = (0, Qn.clone)(g);
|
|
5943
|
+
I.setDate(g.getDate() + y + 1), v.push(I);
|
|
5930
5944
|
}
|
|
5931
5945
|
o.push(v);
|
|
5932
5946
|
}
|
|
@@ -6014,36 +6028,36 @@ var za = function(e) {
|
|
|
6014
6028
|
}, {
|
|
6015
6029
|
key: "render",
|
|
6016
6030
|
value: function() {
|
|
6017
|
-
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, p = n.onMouseUp,
|
|
6018
|
-
a !== Vp.default ?
|
|
6019
|
-
return " " +
|
|
6031
|
+
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, p = n.onMouseUp, h = n.onMouseDown, f = n.onClick, m = n.onKeyDown, g = n.onTouchStart, v = n.onTouchEnd, y = n.onFocus, I = n.ariaLabel, D = n.ariaDisabled, b = n.ariaSelected, x = n.children, w = a.day;
|
|
6032
|
+
a !== Vp.default ? w += " " + Object.keys(l).join(" ") : w += Object.keys(l).map(function(E) {
|
|
6033
|
+
return " " + w + "--" + E;
|
|
6020
6034
|
}).join("");
|
|
6021
|
-
var
|
|
6035
|
+
var O = void 0;
|
|
6022
6036
|
return i && Object.keys(l).filter(function(E) {
|
|
6023
6037
|
return !!i[E];
|
|
6024
6038
|
}).forEach(function(E) {
|
|
6025
|
-
|
|
6026
|
-
}), u ? io.default.createElement("div", { "aria-disabled": !0, className:
|
|
6039
|
+
O = Rp({}, O, i[E]);
|
|
6040
|
+
}), u ? io.default.createElement("div", { "aria-disabled": !0, className: w, style: O }) : io.default.createElement(
|
|
6027
6041
|
"div",
|
|
6028
6042
|
{
|
|
6029
|
-
className:
|
|
6043
|
+
className: w,
|
|
6030
6044
|
tabIndex: s,
|
|
6031
|
-
style:
|
|
6045
|
+
style: O,
|
|
6032
6046
|
role: "gridcell",
|
|
6033
6047
|
"aria-label": I,
|
|
6034
|
-
"aria-disabled":
|
|
6048
|
+
"aria-disabled": D,
|
|
6035
6049
|
"aria-selected": b,
|
|
6036
|
-
onClick: ct(
|
|
6037
|
-
onKeyDown: ct(
|
|
6050
|
+
onClick: ct(f, o, l),
|
|
6051
|
+
onKeyDown: ct(m, o, l),
|
|
6038
6052
|
onMouseEnter: ct(c, o, l),
|
|
6039
6053
|
onMouseLeave: ct(d, o, l),
|
|
6040
6054
|
onMouseUp: ct(p, o, l),
|
|
6041
|
-
onMouseDown: ct(
|
|
6055
|
+
onMouseDown: ct(h, o, l),
|
|
6042
6056
|
onTouchEnd: ct(v, o, l),
|
|
6043
|
-
onTouchStart: ct(
|
|
6057
|
+
onTouchStart: ct(g, o, l),
|
|
6044
6058
|
onFocus: ct(y, o, l)
|
|
6045
6059
|
},
|
|
6046
|
-
|
|
6060
|
+
x
|
|
6047
6061
|
);
|
|
6048
6062
|
}
|
|
6049
6063
|
}]), t;
|
|
@@ -6132,23 +6146,23 @@ var am = function(e) {
|
|
|
6132
6146
|
return i = (n = (a = lo(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(s))), a), a.renderDay = function(l) {
|
|
6133
6147
|
var c = a.props.month.getMonth(), d = so.getModifiersFromProps(a.props), p = qp.getModifiersForDay(l, d);
|
|
6134
6148
|
uo.isSameDay(l, /* @__PURE__ */ new Date()) && !Object.prototype.hasOwnProperty.call(d, a.props.classNames.today) && p.push(a.props.classNames.today), l.getMonth() !== c && p.push(a.props.classNames.outside);
|
|
6135
|
-
var
|
|
6136
|
-
a.props.onDayClick && !
|
|
6137
|
-
var
|
|
6149
|
+
var h = l.getMonth() !== c, f = -1;
|
|
6150
|
+
a.props.onDayClick && !h && l.getDate() === 1 && (f = a.props.tabIndex);
|
|
6151
|
+
var m = "" + l.getFullYear() + l.getMonth() + l.getDate(), g = {};
|
|
6138
6152
|
return p.forEach(function(v) {
|
|
6139
|
-
|
|
6153
|
+
g[v] = !0;
|
|
6140
6154
|
}), dt.default.createElement(
|
|
6141
6155
|
Jp.default,
|
|
6142
6156
|
{
|
|
6143
|
-
key: (
|
|
6157
|
+
key: (h ? "outside-" : "") + m,
|
|
6144
6158
|
classNames: a.props.classNames,
|
|
6145
6159
|
day: l,
|
|
6146
|
-
modifiers:
|
|
6160
|
+
modifiers: g,
|
|
6147
6161
|
modifiersStyles: a.props.modifiersStyles,
|
|
6148
|
-
empty:
|
|
6149
|
-
tabIndex:
|
|
6162
|
+
empty: h && !a.props.showOutsideDays && !a.props.fixedWeeks,
|
|
6163
|
+
tabIndex: f,
|
|
6150
6164
|
ariaLabel: a.props.localeUtils.formatDay(l, a.props.locale),
|
|
6151
|
-
ariaDisabled:
|
|
6165
|
+
ariaDisabled: h || p.indexOf(a.props.classNames.disabled) > -1,
|
|
6152
6166
|
ariaSelected: p.indexOf(a.props.classNames.selected) > -1,
|
|
6153
6167
|
onClick: a.props.onDayClick,
|
|
6154
6168
|
onFocus: a.props.onDayFocus,
|
|
@@ -6160,32 +6174,32 @@ var am = function(e) {
|
|
|
6160
6174
|
onTouchEnd: a.props.onDayTouchEnd,
|
|
6161
6175
|
onTouchStart: a.props.onDayTouchStart
|
|
6162
6176
|
},
|
|
6163
|
-
a.props.renderDay(l,
|
|
6177
|
+
a.props.renderDay(l, g)
|
|
6164
6178
|
);
|
|
6165
6179
|
}, n), lo(a, i);
|
|
6166
6180
|
}
|
|
6167
6181
|
return jp(t, [{
|
|
6168
6182
|
key: "render",
|
|
6169
6183
|
value: function() {
|
|
6170
|
-
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, p = a.localeUtils,
|
|
6184
|
+
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, p = a.localeUtils, h = a.weekdaysLong, f = a.weekdaysShort, m = a.firstDayOfWeek, g = a.onCaptionClick, v = a.showWeekNumbers, y = a.showWeekDays, I = a.onWeekClick, D = {
|
|
6171
6185
|
date: o,
|
|
6172
6186
|
classNames: i,
|
|
6173
6187
|
months: s,
|
|
6174
6188
|
localeUtils: p,
|
|
6175
6189
|
locale: d,
|
|
6176
|
-
onClick:
|
|
6177
|
-
return
|
|
6190
|
+
onClick: g ? function(w) {
|
|
6191
|
+
return g(o, w);
|
|
6178
6192
|
} : void 0
|
|
6179
|
-
}, b = dt.default.isValidElement(l) ? dt.default.cloneElement(l,
|
|
6193
|
+
}, b = dt.default.isValidElement(l) ? dt.default.cloneElement(l, D) : dt.default.createElement(l, D), x = so.getWeekArray(o, m, u);
|
|
6180
6194
|
return dt.default.createElement(
|
|
6181
6195
|
"div",
|
|
6182
6196
|
{ className: i.month, role: "grid" },
|
|
6183
6197
|
b,
|
|
6184
6198
|
y && dt.default.createElement($p.default, {
|
|
6185
6199
|
classNames: i,
|
|
6186
|
-
weekdaysShort:
|
|
6187
|
-
weekdaysLong:
|
|
6188
|
-
firstDayOfWeek:
|
|
6200
|
+
weekdaysShort: f,
|
|
6201
|
+
weekdaysLong: h,
|
|
6202
|
+
firstDayOfWeek: m,
|
|
6189
6203
|
showWeekNumbers: v,
|
|
6190
6204
|
locale: d,
|
|
6191
6205
|
localeUtils: p,
|
|
@@ -6194,12 +6208,12 @@ var am = function(e) {
|
|
|
6194
6208
|
dt.default.createElement(
|
|
6195
6209
|
"div",
|
|
6196
6210
|
{ className: i.body, role: "rowgroup" },
|
|
6197
|
-
|
|
6198
|
-
var
|
|
6199
|
-
return v && (
|
|
6211
|
+
x.map(function(w) {
|
|
6212
|
+
var O = void 0;
|
|
6213
|
+
return v && (O = uo.getWeekNumber(w[6])), dt.default.createElement(
|
|
6200
6214
|
"div",
|
|
6201
6215
|
{
|
|
6202
|
-
key:
|
|
6216
|
+
key: w[0].getTime(),
|
|
6203
6217
|
className: i.week,
|
|
6204
6218
|
role: "row"
|
|
6205
6219
|
},
|
|
@@ -6210,15 +6224,15 @@ var am = function(e) {
|
|
|
6210
6224
|
tabIndex: I ? 0 : -1,
|
|
6211
6225
|
role: "gridcell",
|
|
6212
6226
|
onClick: I ? function(E) {
|
|
6213
|
-
return I(
|
|
6227
|
+
return I(O, w, E);
|
|
6214
6228
|
} : void 0,
|
|
6215
6229
|
onKeyUp: I ? function(E) {
|
|
6216
|
-
return E.keyCode === Qp.ENTER && I(
|
|
6230
|
+
return E.keyCode === Qp.ENTER && I(O, w, E);
|
|
6217
6231
|
} : void 0
|
|
6218
6232
|
},
|
|
6219
|
-
n.props.renderWeek(
|
|
6233
|
+
n.props.renderWeek(O, w, o)
|
|
6220
6234
|
),
|
|
6221
|
-
|
|
6235
|
+
w.map(n.renderDay)
|
|
6222
6236
|
);
|
|
6223
6237
|
})
|
|
6224
6238
|
)
|
|
@@ -6826,8 +6840,8 @@ var lu = function(e) {
|
|
|
6826
6840
|
var c = pn({
|
|
6827
6841
|
disabled: u.disabledDays,
|
|
6828
6842
|
selected: u.selectedDays
|
|
6829
|
-
}, u.modifiers), d = (0, Pm.getModifiersForDay)(n, c).reduce(function(p,
|
|
6830
|
-
return pn({}, p, Tm({},
|
|
6843
|
+
}, u.modifiers), d = (0, Pm.getModifiersForDay)(n, c).reduce(function(p, h) {
|
|
6844
|
+
return pn({}, p, Tm({}, h, !0));
|
|
6831
6845
|
}, {});
|
|
6832
6846
|
l(n, d, o);
|
|
6833
6847
|
}
|
|
@@ -6956,18 +6970,18 @@ var lu = function(e) {
|
|
|
6956
6970
|
var o = this, s = this.props, u = s.clickUnselectsDay, l = s.dayPickerProps, c = s.onDayChange, d = s.formatDate, p = s.format;
|
|
6957
6971
|
if (l.onDayClick && l.onDayClick(n, a, i), !(a.disabled || l && l.classNames && a[l.classNames.disabled])) {
|
|
6958
6972
|
if (a.selected && u) {
|
|
6959
|
-
var
|
|
6960
|
-
if (Array.isArray(
|
|
6961
|
-
|
|
6962
|
-
var
|
|
6963
|
-
|
|
6973
|
+
var h = this.state.selectedDays;
|
|
6974
|
+
if (Array.isArray(h)) {
|
|
6975
|
+
h = h.slice(0);
|
|
6976
|
+
var f = h.indexOf(n);
|
|
6977
|
+
h.splice(f, 1);
|
|
6964
6978
|
} else
|
|
6965
|
-
|
|
6966
|
-
this.setState({ value: "", typedValue: "", selectedDays:
|
|
6979
|
+
h && (h = null);
|
|
6980
|
+
this.setState({ value: "", typedValue: "", selectedDays: h }, this.hideAfterDayClick), c && c(void 0, a, this);
|
|
6967
6981
|
return;
|
|
6968
6982
|
}
|
|
6969
|
-
var
|
|
6970
|
-
this.setState({ value:
|
|
6983
|
+
var m = d(n, p, l.locale);
|
|
6984
|
+
this.setState({ value: m, typedValue: "", month: n }, function() {
|
|
6971
6985
|
c && c(n, a, o), o.hideAfterDayClick();
|
|
6972
6986
|
});
|
|
6973
6987
|
}
|
|
@@ -6975,23 +6989,23 @@ var lu = function(e) {
|
|
|
6975
6989
|
}, {
|
|
6976
6990
|
key: "renderOverlay",
|
|
6977
6991
|
value: function() {
|
|
6978
|
-
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, p = c.value,
|
|
6992
|
+
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, p = c.value, h = void 0;
|
|
6979
6993
|
if (!d && p) {
|
|
6980
|
-
var
|
|
6981
|
-
|
|
6994
|
+
var f = s(p, l, o.locale);
|
|
6995
|
+
f && (h = f);
|
|
6982
6996
|
} else
|
|
6983
|
-
d && (
|
|
6984
|
-
var
|
|
6985
|
-
o.todayButton && (
|
|
6997
|
+
d && (h = d);
|
|
6998
|
+
var m = void 0;
|
|
6999
|
+
o.todayButton && (m = function() {
|
|
6986
7000
|
return n.updateState(/* @__PURE__ */ new Date(), u(/* @__PURE__ */ new Date(), l, o.locale), n.hideAfterDayClick);
|
|
6987
7001
|
});
|
|
6988
|
-
var
|
|
7002
|
+
var g = this.props.overlayComponent;
|
|
6989
7003
|
return Ot.default.createElement(
|
|
6990
|
-
|
|
7004
|
+
g,
|
|
6991
7005
|
{
|
|
6992
7006
|
classNames: i,
|
|
6993
7007
|
month: this.state.month,
|
|
6994
|
-
selectedDay:
|
|
7008
|
+
selectedDay: h,
|
|
6995
7009
|
input: this.input,
|
|
6996
7010
|
tabIndex: 0,
|
|
6997
7011
|
onFocus: this.handleOverlayFocus,
|
|
@@ -7001,10 +7015,10 @@ var lu = function(e) {
|
|
|
7001
7015
|
ref: function(y) {
|
|
7002
7016
|
return n.daypicker = y;
|
|
7003
7017
|
},
|
|
7004
|
-
onTodayButtonClick:
|
|
7018
|
+
onTodayButtonClick: m
|
|
7005
7019
|
}, o, {
|
|
7006
7020
|
month: this.state.month,
|
|
7007
|
-
selectedDays:
|
|
7021
|
+
selectedDays: h,
|
|
7008
7022
|
onDayClick: this.handleDayClick,
|
|
7009
7023
|
onMonthChange: this.handleMonthChange
|
|
7010
7024
|
}))
|
|
@@ -9144,103 +9158,103 @@ function ry() {
|
|
|
9144
9158
|
function ay() {
|
|
9145
9159
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
9146
9160
|
}
|
|
9147
|
-
var
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
typeof Symbol < "u" && Symbol.for != null && (
|
|
9161
|
+
var C = Nn.prototype;
|
|
9162
|
+
C.add = Jv;
|
|
9163
|
+
C.calendar = rb;
|
|
9164
|
+
C.clone = ab;
|
|
9165
|
+
C.diff = db;
|
|
9166
|
+
C.endOf = xb;
|
|
9167
|
+
C.format = mb;
|
|
9168
|
+
C.from = gb;
|
|
9169
|
+
C.fromNow = vb;
|
|
9170
|
+
C.to = bb;
|
|
9171
|
+
C.toNow = yb;
|
|
9172
|
+
C.get = og;
|
|
9173
|
+
C.invalidAt = _b;
|
|
9174
|
+
C.isAfter = ib;
|
|
9175
|
+
C.isBefore = ob;
|
|
9176
|
+
C.isBetween = sb;
|
|
9177
|
+
C.isSame = ub;
|
|
9178
|
+
C.isSameOrAfter = lb;
|
|
9179
|
+
C.isSameOrBefore = cb;
|
|
9180
|
+
C.isValid = Eb;
|
|
9181
|
+
C.lang = Hu;
|
|
9182
|
+
C.locale = Lu;
|
|
9183
|
+
C.localeData = Zu;
|
|
9184
|
+
C.max = Ev;
|
|
9185
|
+
C.min = Sv;
|
|
9186
|
+
C.parsingFlags = Ab;
|
|
9187
|
+
C.set = sg;
|
|
9188
|
+
C.startOf = Ib;
|
|
9189
|
+
C.subtract = Qv;
|
|
9190
|
+
C.toArray = Mb;
|
|
9191
|
+
C.toObject = kb;
|
|
9192
|
+
C.toDate = Db;
|
|
9193
|
+
C.toISOString = hb;
|
|
9194
|
+
C.inspect = pb;
|
|
9195
|
+
typeof Symbol < "u" && Symbol.for != null && (C[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
9182
9196
|
return "Moment<" + this.format() + ">";
|
|
9183
9197
|
});
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9198
|
+
C.toJSON = Sb;
|
|
9199
|
+
C.toString = fb;
|
|
9200
|
+
C.unix = wb;
|
|
9201
|
+
C.valueOf = Cb;
|
|
9202
|
+
C.creationData = Nb;
|
|
9203
|
+
C.eraName = Fb;
|
|
9204
|
+
C.eraNarrow = Gb;
|
|
9205
|
+
C.eraAbbr = Rb;
|
|
9206
|
+
C.eraYear = Wb;
|
|
9207
|
+
C.year = ku;
|
|
9208
|
+
C.isLeapYear = kg;
|
|
9209
|
+
C.weekYear = Xb;
|
|
9210
|
+
C.isoWeekYear = jb;
|
|
9211
|
+
C.quarter = C.quarters = Kb;
|
|
9212
|
+
C.month = Du;
|
|
9213
|
+
C.daysInMonth = wg;
|
|
9214
|
+
C.week = C.weeks = Og;
|
|
9215
|
+
C.isoWeek = C.isoWeeks = Pg;
|
|
9216
|
+
C.weeksInYear = Ub;
|
|
9217
|
+
C.weeksInWeekYear = Jb;
|
|
9218
|
+
C.isoWeeksInYear = zb;
|
|
9219
|
+
C.isoWeeksInISOWeekYear = $b;
|
|
9220
|
+
C.date = Uu;
|
|
9221
|
+
C.day = C.days = jg;
|
|
9222
|
+
C.weekday = zg;
|
|
9223
|
+
C.isoWeekday = $g;
|
|
9224
|
+
C.dayOfYear = qb;
|
|
9225
|
+
C.hour = C.hours = tv;
|
|
9226
|
+
C.minute = C.minutes = ey;
|
|
9227
|
+
C.second = C.seconds = ty;
|
|
9228
|
+
C.millisecond = C.milliseconds = Ju;
|
|
9229
|
+
C.utcOffset = Rv;
|
|
9230
|
+
C.utc = Bv;
|
|
9231
|
+
C.local = Yv;
|
|
9232
|
+
C.parseZone = Vv;
|
|
9233
|
+
C.hasAlignedHourOffset = Lv;
|
|
9234
|
+
C.isDST = Hv;
|
|
9235
|
+
C.isLocal = Xv;
|
|
9236
|
+
C.isUtcOffset = jv;
|
|
9237
|
+
C.isUtc = Wu;
|
|
9238
|
+
C.isUTC = Wu;
|
|
9239
|
+
C.zoneAbbr = ry;
|
|
9240
|
+
C.zoneName = ay;
|
|
9241
|
+
C.dates = Be(
|
|
9228
9242
|
"dates accessor is deprecated. Use date instead.",
|
|
9229
9243
|
Uu
|
|
9230
9244
|
);
|
|
9231
|
-
|
|
9245
|
+
C.months = Be(
|
|
9232
9246
|
"months accessor is deprecated. Use month instead",
|
|
9233
9247
|
Du
|
|
9234
9248
|
);
|
|
9235
|
-
|
|
9249
|
+
C.years = Be(
|
|
9236
9250
|
"years accessor is deprecated. Use year instead",
|
|
9237
9251
|
ku
|
|
9238
9252
|
);
|
|
9239
|
-
|
|
9253
|
+
C.zone = Be(
|
|
9240
9254
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
9241
9255
|
Wv
|
|
9242
9256
|
);
|
|
9243
|
-
|
|
9257
|
+
C.isDSTShifted = Be(
|
|
9244
9258
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
9245
9259
|
Zv
|
|
9246
9260
|
);
|
|
@@ -9534,7 +9548,7 @@ K("x", function(e, t, r) {
|
|
|
9534
9548
|
//! moment.js
|
|
9535
9549
|
M.version = "2.29.4";
|
|
9536
9550
|
Lm(ee);
|
|
9537
|
-
M.fn =
|
|
9551
|
+
M.fn = C;
|
|
9538
9552
|
M.min = Av;
|
|
9539
9553
|
M.max = _v;
|
|
9540
9554
|
M.now = Nv;
|
|
@@ -9560,7 +9574,7 @@ M.normalizeUnits = Ye;
|
|
|
9560
9574
|
M.relativeTimeRounding = By;
|
|
9561
9575
|
M.relativeTimeThreshold = Yy;
|
|
9562
9576
|
M.calendarFormat = nb;
|
|
9563
|
-
M.prototype =
|
|
9577
|
+
M.prototype = C;
|
|
9564
9578
|
M.HTML5_FMT = {
|
|
9565
9579
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
9566
9580
|
// <input type="datetime-local" />
|
|
@@ -9791,20 +9805,20 @@ const he = Do({
|
|
|
9791
9805
|
dayPickerProps: c = {},
|
|
9792
9806
|
...d
|
|
9793
9807
|
}) => {
|
|
9794
|
-
const { current: p } = _e(l.id || qt()), [
|
|
9808
|
+
const { current: p } = _e(l.id || qt()), [h, f] = oe(i), { from: m, to: g } = n, v = M.localeData(t).longDateFormat("L"), y = zy(s || n[a], t), I = !!m && !!g, D = Rt();
|
|
9795
9809
|
Eo(
|
|
9796
9810
|
s && n[a],
|
|
9797
9811
|
"[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."
|
|
9798
9812
|
);
|
|
9799
|
-
const b = ({ month:
|
|
9800
|
-
|
|
9801
|
-
},
|
|
9813
|
+
const b = ({ month: w, year: O }) => {
|
|
9814
|
+
f(new Date(O, w));
|
|
9815
|
+
}, x = We(() => I ? a === "from" ? {
|
|
9802
9816
|
before: o.before,
|
|
9803
|
-
after:
|
|
9817
|
+
after: g || o.after
|
|
9804
9818
|
} : {
|
|
9805
|
-
before:
|
|
9819
|
+
before: m || o.before,
|
|
9806
9820
|
after: o.after
|
|
9807
|
-
} : o, [a, I, o,
|
|
9821
|
+
} : o, [a, I, o, m, g]);
|
|
9808
9822
|
return /* @__PURE__ */ _.createElement(n0, { width: r, hasRange: I }, e && /* @__PURE__ */ _.createElement(
|
|
9809
9823
|
"label",
|
|
9810
9824
|
{
|
|
@@ -9826,18 +9840,18 @@ const he = Do({
|
|
|
9826
9840
|
locale: t,
|
|
9827
9841
|
localeUtils: jy,
|
|
9828
9842
|
className: "Range",
|
|
9829
|
-
disabledDays:
|
|
9830
|
-
modifiers: { before:
|
|
9831
|
-
selectedDays: I ? { from:
|
|
9843
|
+
disabledDays: x,
|
|
9844
|
+
modifiers: { before: m, after: g },
|
|
9845
|
+
selectedDays: I ? { from: m, to: g } : void 0,
|
|
9832
9846
|
navbarElement: /* @__PURE__ */ _.createElement(
|
|
9833
9847
|
Uy,
|
|
9834
9848
|
{
|
|
9835
9849
|
onChangeMonthYear: b,
|
|
9836
|
-
disabledDays:
|
|
9850
|
+
disabledDays: x
|
|
9837
9851
|
}
|
|
9838
9852
|
),
|
|
9839
9853
|
showOutsideDays: !0,
|
|
9840
|
-
month:
|
|
9854
|
+
month: h,
|
|
9841
9855
|
...c
|
|
9842
9856
|
},
|
|
9843
9857
|
ref: u,
|
|
@@ -9851,7 +9865,7 @@ const he = Do({
|
|
|
9851
9865
|
* It will be fixed when we upgrade to React 18.
|
|
9852
9866
|
* See https://github.com/facebook/react/pull/22142
|
|
9853
9867
|
*/
|
|
9854
|
-
"aria-description":
|
|
9868
|
+
"aria-description": D.formatMessage(
|
|
9855
9869
|
he.selectDateFormatDescription,
|
|
9856
9870
|
{
|
|
9857
9871
|
localeFormat: v
|
|
@@ -9945,8 +9959,8 @@ const Uy = ({
|
|
|
9945
9959
|
{
|
|
9946
9960
|
date: e,
|
|
9947
9961
|
disabledDays: o,
|
|
9948
|
-
onChange: (
|
|
9949
|
-
l(!1), i(
|
|
9962
|
+
onChange: (h) => {
|
|
9963
|
+
l(!1), i(h);
|
|
9950
9964
|
}
|
|
9951
9965
|
}
|
|
9952
9966
|
));
|
|
@@ -9954,48 +9968,48 @@ const Uy = ({
|
|
|
9954
9968
|
const n = Rt(), [a, i] = oe(new Date(e).getMonth()), [o, s] = oe(
|
|
9955
9969
|
new Date(e).getFullYear()
|
|
9956
9970
|
), { after: u, before: l } = t || {}, c = () => {
|
|
9957
|
-
const
|
|
9958
|
-
for (let
|
|
9959
|
-
I.push({ label:
|
|
9971
|
+
const f = (/* @__PURE__ */ new Date()).getFullYear(), { after: m, before: g } = t || {}, v = g ? new Date(g).getFullYear() : 1939, y = m ? new Date(m).getFullYear() : new Date(f + 10, 11).getFullYear(), I = [];
|
|
9972
|
+
for (let D = y; D >= v; D--)
|
|
9973
|
+
I.push({ label: D, value: D });
|
|
9960
9974
|
return I;
|
|
9961
|
-
}, d = (
|
|
9962
|
-
const
|
|
9963
|
-
return l &&
|
|
9964
|
-
}, p = M.monthsShort(),
|
|
9975
|
+
}, d = (f) => {
|
|
9976
|
+
const m = M().set({ year: o, month: f }).startOf("month");
|
|
9977
|
+
return l && m < M(l).startOf("month") || u && m > M(u).startOf("month");
|
|
9978
|
+
}, p = M.monthsShort(), h = ({ children: f, ...m }) => Mn.Option && /* @__PURE__ */ _.createElement(
|
|
9965
9979
|
"div",
|
|
9966
9980
|
{
|
|
9967
|
-
onMouseDown: (
|
|
9981
|
+
onMouseDown: (g) => g.stopPropagation(),
|
|
9968
9982
|
role: "option",
|
|
9969
9983
|
"aria-selected": !0,
|
|
9970
9984
|
tabIndex: "0"
|
|
9971
9985
|
},
|
|
9972
|
-
/* @__PURE__ */ _.createElement(Mn.Option, { ...
|
|
9986
|
+
/* @__PURE__ */ _.createElement(Mn.Option, { ...m }, f)
|
|
9973
9987
|
);
|
|
9974
9988
|
return /* @__PURE__ */ _.createElement(Qy, null, /* @__PURE__ */ _.createElement(qy, { "data-testid": "yearmonth-dropdown-select" }, /* @__PURE__ */ _.createElement(
|
|
9975
9989
|
Ds,
|
|
9976
9990
|
{
|
|
9977
9991
|
"aria-label": n.formatMessage(he.selectYearDropdown),
|
|
9978
9992
|
options: c(),
|
|
9979
|
-
components: { Option:
|
|
9993
|
+
components: { Option: h },
|
|
9980
9994
|
value: {
|
|
9981
9995
|
label: o,
|
|
9982
9996
|
value: o
|
|
9983
9997
|
},
|
|
9984
|
-
onChange: (
|
|
9985
|
-
s(
|
|
9998
|
+
onChange: (f) => {
|
|
9999
|
+
s(f.value);
|
|
9986
10000
|
}
|
|
9987
10001
|
}
|
|
9988
|
-
)), /* @__PURE__ */ _.createElement(e0, null, p.map((
|
|
10002
|
+
)), /* @__PURE__ */ _.createElement(e0, null, p.map((f, m) => /* @__PURE__ */ _.createElement("li", { key: f, value: m }, /* @__PURE__ */ _.createElement(
|
|
9989
10003
|
t0,
|
|
9990
10004
|
{
|
|
9991
|
-
"data-testid": `select-month-${
|
|
9992
|
-
$isActive:
|
|
9993
|
-
disabled: d(
|
|
10005
|
+
"data-testid": `select-month-${f}`,
|
|
10006
|
+
$isActive: m === a,
|
|
10007
|
+
disabled: d(f),
|
|
9994
10008
|
onClick: () => {
|
|
9995
|
-
d(
|
|
10009
|
+
d(f) || i(m);
|
|
9996
10010
|
},
|
|
9997
|
-
"aria-label":
|
|
9998
|
-
text:
|
|
10011
|
+
"aria-label": f,
|
|
10012
|
+
text: f
|
|
9999
10013
|
}
|
|
10000
10014
|
)))), /* @__PURE__ */ _.createElement(Ky, null, /* @__PURE__ */ _.createElement(
|
|
10001
10015
|
Qr,
|
|
@@ -10219,47 +10233,47 @@ function b0(e, t, r) {
|
|
|
10219
10233
|
if (typeof e != "function")
|
|
10220
10234
|
throw new TypeError(a0);
|
|
10221
10235
|
t = Io(t) || 0, ba(r) && (c = !!r.leading, d = "maxWait" in r, i = d ? g0(Io(r.maxWait) || 0, t) : i, p = "trailing" in r ? !!r.trailing : p);
|
|
10222
|
-
function
|
|
10223
|
-
var
|
|
10224
|
-
return n = a = void 0, l =
|
|
10236
|
+
function h(x) {
|
|
10237
|
+
var w = n, O = a;
|
|
10238
|
+
return n = a = void 0, l = x, o = e.apply(O, w), o;
|
|
10225
10239
|
}
|
|
10226
|
-
function
|
|
10227
|
-
return l =
|
|
10240
|
+
function f(x) {
|
|
10241
|
+
return l = x, s = setTimeout(v, t), c ? h(x) : o;
|
|
10228
10242
|
}
|
|
10229
|
-
function
|
|
10230
|
-
var
|
|
10231
|
-
return d ? v0(E, i -
|
|
10243
|
+
function m(x) {
|
|
10244
|
+
var w = x - u, O = x - l, E = t - w;
|
|
10245
|
+
return d ? v0(E, i - O) : E;
|
|
10232
10246
|
}
|
|
10233
|
-
function
|
|
10234
|
-
var
|
|
10235
|
-
return u === void 0 ||
|
|
10247
|
+
function g(x) {
|
|
10248
|
+
var w = x - u, O = x - l;
|
|
10249
|
+
return u === void 0 || w >= t || w < 0 || d && O >= i;
|
|
10236
10250
|
}
|
|
10237
10251
|
function v() {
|
|
10238
|
-
var
|
|
10239
|
-
if (
|
|
10240
|
-
return y(
|
|
10241
|
-
s = setTimeout(v,
|
|
10252
|
+
var x = zr();
|
|
10253
|
+
if (g(x))
|
|
10254
|
+
return y(x);
|
|
10255
|
+
s = setTimeout(v, m(x));
|
|
10242
10256
|
}
|
|
10243
|
-
function y(
|
|
10244
|
-
return s = void 0, p && n ?
|
|
10257
|
+
function y(x) {
|
|
10258
|
+
return s = void 0, p && n ? h(x) : (n = a = void 0, o);
|
|
10245
10259
|
}
|
|
10246
10260
|
function I() {
|
|
10247
10261
|
s !== void 0 && clearTimeout(s), l = 0, n = u = a = s = void 0;
|
|
10248
10262
|
}
|
|
10249
|
-
function
|
|
10263
|
+
function D() {
|
|
10250
10264
|
return s === void 0 ? o : y(zr());
|
|
10251
10265
|
}
|
|
10252
10266
|
function b() {
|
|
10253
|
-
var
|
|
10254
|
-
if (n = arguments, a = this, u =
|
|
10267
|
+
var x = zr(), w = g(x);
|
|
10268
|
+
if (n = arguments, a = this, u = x, w) {
|
|
10255
10269
|
if (s === void 0)
|
|
10256
|
-
return
|
|
10270
|
+
return f(u);
|
|
10257
10271
|
if (d)
|
|
10258
|
-
return s = setTimeout(v, t),
|
|
10272
|
+
return s = setTimeout(v, t), h(u);
|
|
10259
10273
|
}
|
|
10260
10274
|
return s === void 0 && (s = setTimeout(v, t)), o;
|
|
10261
10275
|
}
|
|
10262
|
-
return b.cancel = I, b.flush =
|
|
10276
|
+
return b.cancel = I, b.flush = D, b;
|
|
10263
10277
|
}
|
|
10264
10278
|
function ba(e) {
|
|
10265
10279
|
var t = typeof e;
|
|
@@ -10288,53 +10302,53 @@ function Io(e) {
|
|
|
10288
10302
|
}
|
|
10289
10303
|
var x0 = b0;
|
|
10290
10304
|
const C0 = /* @__PURE__ */ Sa(x0), w0 = /^\d{4}$/g, $r = "default", D0 = ({ label: e, value: t, onChange: r, inputMode: n = "am" }) => {
|
|
10291
|
-
const a = Rt(), [i, o] = oe(t), [s, u] = oe(t), [l, c] = oe(n), [d, p] = oe($r), [
|
|
10292
|
-
({ time: E, mode:
|
|
10305
|
+
const a = Rt(), [i, o] = oe(t), [s, u] = oe(t), [l, c] = oe(n), [d, p] = oe($r), [h, f] = oe(), [m, g] = oe(""), v = J(
|
|
10306
|
+
({ time: E, mode: Q }) => {
|
|
10293
10307
|
const z = parseInt(E[0]), ae = parseInt(E[1]);
|
|
10294
10308
|
if (isNaN(z) || isNaN(ae))
|
|
10295
|
-
return p("error"),
|
|
10309
|
+
return p("error"), f(a.formatMessage(he.notNumber)), !1;
|
|
10296
10310
|
const ie = new RegExp(
|
|
10297
|
-
|
|
10311
|
+
Q === "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})"
|
|
10298
10312
|
), T = z < 10 ? `0${z}:${E[1]}` : `${z}:${E[1]}`;
|
|
10299
|
-
return ie.test(T) ? (p($r), !0) : (p("error"),
|
|
10313
|
+
return ie.test(T) ? (p($r), !0) : (p("error"), f(a.formatMessage(he.invalidTime)), !1);
|
|
10300
10314
|
},
|
|
10301
10315
|
[a]
|
|
10302
|
-
), y =
|
|
10303
|
-
({ date: E, time:
|
|
10304
|
-
if (!
|
|
10316
|
+
), y = J(
|
|
10317
|
+
({ date: E, time: Q, mode: z }) => {
|
|
10318
|
+
if (!Q || !z || !v({ time: Q, mode: z }) || !E)
|
|
10305
10319
|
return;
|
|
10306
|
-
const ae = parseInt(
|
|
10320
|
+
const ae = parseInt(Q[0]), ie = parseInt(Q[1]), T = M(E);
|
|
10307
10321
|
z === "am" && ae === 12 ? T.hour(0) : z === "pm" && ae === 12 ? T.hour(12) : z === "pm" ? T.hour(ae + 12) : T.hour(ae), T.minute(ie), r && r(T.toDate());
|
|
10308
10322
|
},
|
|
10309
10323
|
[r, v]
|
|
10310
|
-
), I =
|
|
10324
|
+
), I = J(
|
|
10311
10325
|
(E) => {
|
|
10312
10326
|
o(E), y({ date: E, time: s, mode: l });
|
|
10313
10327
|
},
|
|
10314
10328
|
[l, s, y]
|
|
10315
|
-
),
|
|
10329
|
+
), D = J((E) => {
|
|
10316
10330
|
(E.charCode < 48 || E.charCode > 58) && E.preventDefault();
|
|
10317
|
-
}, []), b =
|
|
10331
|
+
}, []), b = J(
|
|
10318
10332
|
(E) => {
|
|
10319
10333
|
if (E.length !== 2) {
|
|
10320
|
-
p("error"),
|
|
10334
|
+
p("error"), f(a.formatMessage(he.wrongFormat));
|
|
10321
10335
|
return;
|
|
10322
10336
|
}
|
|
10323
10337
|
u(E), y({ date: i, time: E, mode: l });
|
|
10324
10338
|
},
|
|
10325
10339
|
[a, i, l, y]
|
|
10326
|
-
),
|
|
10340
|
+
), x = J(
|
|
10327
10341
|
({ value: E }) => {
|
|
10328
10342
|
c(E), y({ date: i, time: s, mode: E });
|
|
10329
10343
|
},
|
|
10330
10344
|
[i, s, y]
|
|
10331
|
-
),
|
|
10345
|
+
), w = C0(b, 500), O = J(
|
|
10332
10346
|
(E) => {
|
|
10333
|
-
const
|
|
10334
|
-
let z =
|
|
10335
|
-
p($r),
|
|
10347
|
+
const Q = E.target.value;
|
|
10348
|
+
let z = Q;
|
|
10349
|
+
p($r), Q.match(w0) && (z = `${Q.slice(0, 2)}:${Q.slice(2)}`), g(z), w(z.split(":"));
|
|
10336
10350
|
},
|
|
10337
|
-
[
|
|
10351
|
+
[w]
|
|
10338
10352
|
);
|
|
10339
10353
|
return /* @__PURE__ */ _.createElement(M0, null, /* @__PURE__ */ _.createElement(
|
|
10340
10354
|
ll,
|
|
@@ -10349,11 +10363,11 @@ const C0 = /* @__PURE__ */ Sa(x0), w0 = /^\d{4}$/g, $r = "default", D0 = ({ labe
|
|
|
10349
10363
|
{
|
|
10350
10364
|
placeholder: a.formatMessage(he.timeInputPlaceholder),
|
|
10351
10365
|
label: a.formatMessage(he.timeInputLabel),
|
|
10352
|
-
onChange:
|
|
10366
|
+
onChange: O,
|
|
10353
10367
|
state: d,
|
|
10354
|
-
errorMessage:
|
|
10355
|
-
value:
|
|
10356
|
-
onKeyPress:
|
|
10368
|
+
errorMessage: h,
|
|
10369
|
+
value: m,
|
|
10370
|
+
onKeyPress: D
|
|
10357
10371
|
}
|
|
10358
10372
|
), /* @__PURE__ */ _.createElement("div", { style: { paddingTop: "28px" } }, /* @__PURE__ */ _.createElement(
|
|
10359
10373
|
Ds,
|
|
@@ -10367,7 +10381,7 @@ const C0 = /* @__PURE__ */ Sa(x0), w0 = /^\d{4}$/g, $r = "default", D0 = ({ labe
|
|
|
10367
10381
|
}
|
|
10368
10382
|
],
|
|
10369
10383
|
defaultValue: { value: "am", label: a.formatMessage(he.am) },
|
|
10370
|
-
onChange:
|
|
10384
|
+
onChange: x
|
|
10371
10385
|
}
|
|
10372
10386
|
)));
|
|
10373
10387
|
}, M0 = S.div`
|
|
@@ -10512,7 +10526,7 @@ const k0 = {
|
|
|
10512
10526
|
queryError: u = !1,
|
|
10513
10527
|
dropdownMaxHeight: l = "350px"
|
|
10514
10528
|
}) => {
|
|
10515
|
-
const [c, d] = oe({ q: "" }), p = Gl.useDebounce(c, 300), [
|
|
10529
|
+
const [c, d] = oe({ q: "" }), p = Gl.useDebounce(c, 300), [h, f] = oe(null), [m, g] = oe(!0), [v, y] = oe(null), I = _e(null), D = _e(null), b = c !== p, x = c.q.length > 1 && !v && m;
|
|
10516
10530
|
Ze(() => {
|
|
10517
10531
|
i || d({ q: "" });
|
|
10518
10532
|
}, [i]), Ze(() => {
|
|
@@ -10521,25 +10535,25 @@ const k0 = {
|
|
|
10521
10535
|
const { q: T } = p;
|
|
10522
10536
|
T.length < 2 || e(T);
|
|
10523
10537
|
}, [e, p, v]), Ze(() => {
|
|
10524
|
-
r.length === 0 &&
|
|
10538
|
+
r.length === 0 && f(null), r.length > 0 && f(0);
|
|
10525
10539
|
}, [r]);
|
|
10526
|
-
const
|
|
10527
|
-
i && T.text ? d({ q: T.text }) : d({ q: "" }), y(T), n(T.data),
|
|
10528
|
-
},
|
|
10540
|
+
const w = () => h < r.length - 1 ? h + 1 : h, O = () => h > 0 ? h - 1 : h, E = (T) => {
|
|
10541
|
+
i && T.text ? d({ q: T.text }) : d({ q: "" }), y(T), n(T.data), f(null);
|
|
10542
|
+
}, Q = (T) => {
|
|
10529
10543
|
const { value: q } = T.target;
|
|
10530
|
-
d({ q }),
|
|
10544
|
+
d({ q }), g(!0), y(null), f(null), i && v && (a == null || a());
|
|
10531
10545
|
};
|
|
10532
10546
|
Ze(() => {
|
|
10533
|
-
|
|
10534
|
-
}, [
|
|
10547
|
+
D.current && D.current.scrollIntoView({ block: "nearest" });
|
|
10548
|
+
}, [h]);
|
|
10535
10549
|
const z = (T) => {
|
|
10536
|
-
|
|
10550
|
+
x && (u || b || t || (T.key === "ArrowUp" ? (f(O()), T.preventDefault()) : T.key === "ArrowDown" ? (f(w()), T.preventDefault()) : T.key === "Enter" && h != null && (E(r[h]), T.preventDefault())));
|
|
10537
10551
|
}, ae = (T) => {
|
|
10538
10552
|
E(T);
|
|
10539
10553
|
};
|
|
10540
10554
|
Ze(() => {
|
|
10541
10555
|
const T = (q) => {
|
|
10542
|
-
I.current && !I.current.contains(q.target) ?
|
|
10556
|
+
I.current && !I.current.contains(q.target) ? g(!1) : g(!0);
|
|
10543
10557
|
};
|
|
10544
10558
|
return document.addEventListener("pointerdown", T), function() {
|
|
10545
10559
|
document.removeEventListener("pointerdown", T);
|
|
@@ -10549,9 +10563,9 @@ const k0 = {
|
|
|
10549
10563
|
S0,
|
|
10550
10564
|
{
|
|
10551
10565
|
results: r,
|
|
10552
|
-
focusedResultIndex:
|
|
10566
|
+
focusedResultIndex: h,
|
|
10553
10567
|
onResultClick: ae,
|
|
10554
|
-
ref:
|
|
10568
|
+
ref: D
|
|
10555
10569
|
}
|
|
10556
10570
|
) : /* @__PURE__ */ React.createElement(W0, { query: c.q });
|
|
10557
10571
|
return /* @__PURE__ */ React.createElement(L0, { ref: I }, /* @__PURE__ */ React.createElement(
|
|
@@ -10561,13 +10575,13 @@ const k0 = {
|
|
|
10561
10575
|
icon: wo,
|
|
10562
10576
|
value: c.q,
|
|
10563
10577
|
name: "inputValue",
|
|
10564
|
-
onChange:
|
|
10578
|
+
onChange: Q,
|
|
10565
10579
|
onKeyDown: z,
|
|
10566
10580
|
state: s ? "error" : "default",
|
|
10567
10581
|
errorMessage: s,
|
|
10568
10582
|
autoComplete: "off"
|
|
10569
10583
|
}
|
|
10570
|
-
),
|
|
10584
|
+
), x && /* @__PURE__ */ React.createElement(_0, { maxHeight: l }, ie()));
|
|
10571
10585
|
}, L0 = S.div`
|
|
10572
10586
|
width: 100%;
|
|
10573
10587
|
`;
|