@happeouikit/form-elements 2.3.37 → 2.3.38
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 +3 -3
- package/dist/RadioButton.d.ts +1 -1
- package/dist/RadioButton.types.d.ts +1 -0
- package/dist/Switch.types.d.ts +2 -1
- package/dist/index.cjs.js +19 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +249 -182
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as Me, jsx as V } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import k, { useEffect as Ze, useState as se, forwardRef as ba, useContext as ll, Component as ya, createContext as cl, useCallback as
|
|
3
|
+
import k, { useEffect as Ze, useState as se, forwardRef as ba, useContext as ll, Component as ya, createContext as cl, useCallback as q, useMemo as We, Fragment as Cn, useRef as _e, useImperativeHandle as dl } from "react";
|
|
4
4
|
import A, { css as jt } from "styled-components";
|
|
5
5
|
import { sansFamily as Ft, BodyUI as pe, TinyText as Jr, TextEpsilon as fl } from "@happeouikit/typography";
|
|
6
6
|
import { IconAlertCircleOutline as hl, IconArrowDropDown as pl, IconCheck as Co, IconRemove as ml, IconClose as gl, IconCalendar as vl, IconChevronLeft as bl, IconChevronRight as yl, IconError as Il, IconSearch as xo } from "@happeouikit/icons";
|
|
7
7
|
import { createPortal as Cl } from "react-dom";
|
|
8
|
-
import { gray06 as qt, gray04 as Ia, active as
|
|
8
|
+
import { gray06 as qt, gray04 as Ia, active as ae, toBgLight as Ut, gray05 as wo, gray01 as xn, white as Gt, gray03 as xl, lighten as wl, black as Dl, lighten40 as Ml, gray07 as kl } from "@happeouikit/colors";
|
|
9
9
|
import { screen as Sl, shadow500 as El, radius500 as Al, radius400 as Nl, shadow400 as _l } from "@happeouikit/theme";
|
|
10
10
|
import O from "prop-types";
|
|
11
11
|
import { defineMessages as Do, useIntl as Wt } from "react-intl";
|
|
@@ -920,7 +920,7 @@ function kc() {
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
var b = u, D = l, w = s, T = o, E = t, J = c, z = n,
|
|
923
|
+
var b = u, D = l, w = s, T = o, E = t, J = c, z = n, ie = f, oe = h, F = r, K = i, Ee = a, xe = d, Ae = !1;
|
|
924
924
|
function Ke(N) {
|
|
925
925
|
return Ae || (Ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ve(N) || M(N) === u;
|
|
926
926
|
}
|
|
@@ -960,7 +960,7 @@ function kc() {
|
|
|
960
960
|
function Gn(N) {
|
|
961
961
|
return M(N) === d;
|
|
962
962
|
}
|
|
963
|
-
U.AsyncMode = b, U.ConcurrentMode = D, U.ContextConsumer = w, U.ContextProvider = T, U.Element = E, U.ForwardRef = J, U.Fragment = z, U.Lazy =
|
|
963
|
+
U.AsyncMode = b, U.ConcurrentMode = D, U.ContextConsumer = w, U.ContextProvider = T, U.Element = E, U.ForwardRef = J, U.Fragment = z, U.Lazy = ie, U.Memo = oe, U.Portal = F, U.Profiler = K, U.StrictMode = Ee, U.Suspense = xe, U.isAsyncMode = Ke, U.isConcurrentMode = Ve, U.isContextConsumer = ut, U.isContextProvider = he, U.isElement = ve, U.isForwardRef = qe, U.isFragment = et, U.isLazy = Te, U.isMemo = Fe, U.isPortal = St, U.isProfiler = Vt, U.isStrictMode = Tr, U.isSuspense = Gn, U.isValidElementType = I, U.typeOf = M;
|
|
964
964
|
}()), U;
|
|
965
965
|
}
|
|
966
966
|
var $ = {};
|
|
@@ -1742,7 +1742,7 @@ function Vi(e, t) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
return r;
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function re(e) {
|
|
1746
1746
|
for (var t = 1; t < arguments.length; t++) {
|
|
1747
1747
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1748
1748
|
t % 2 ? Vi(Object(r), !0).forEach(function(n) {
|
|
@@ -1811,7 +1811,7 @@ var Li = function(t) {
|
|
|
1811
1811
|
}, Uo = function(t) {
|
|
1812
1812
|
t.className, t.clearValue, t.cx, t.getStyles, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
1813
1813
|
var r = an(t, ld);
|
|
1814
|
-
return
|
|
1814
|
+
return re({}, r);
|
|
1815
1815
|
};
|
|
1816
1816
|
function Ba(e) {
|
|
1817
1817
|
return [document.documentElement, document.body, window].indexOf(e) > -1;
|
|
@@ -1899,7 +1899,7 @@ function Cd(e) {
|
|
|
1899
1899
|
};
|
|
1900
1900
|
if (!r || !r.offsetParent)
|
|
1901
1901
|
return c;
|
|
1902
|
-
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, M = $o(l), b = parseInt(getComputedStyle(r).marginBottom, 10), D = parseInt(getComputedStyle(r).marginTop, 10), w = y - D, T = I - g, E = w + M, J = p - M - g, z = f - I + M + b,
|
|
1902
|
+
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, M = $o(l), b = parseInt(getComputedStyle(r).marginBottom, 10), D = parseInt(getComputedStyle(r).marginTop, 10), w = y - D, T = I - g, E = w + M, J = p - M - g, z = f - I + M + b, ie = M + g - D, oe = 160;
|
|
1903
1903
|
switch (a) {
|
|
1904
1904
|
case "auto":
|
|
1905
1905
|
case "bottom":
|
|
@@ -1941,13 +1941,13 @@ function Cd(e) {
|
|
|
1941
1941
|
maxHeight: t
|
|
1942
1942
|
};
|
|
1943
1943
|
if (E >= m && !o)
|
|
1944
|
-
return i && Vn(l,
|
|
1944
|
+
return i && Vn(l, ie, oe), {
|
|
1945
1945
|
placement: "top",
|
|
1946
1946
|
maxHeight: t
|
|
1947
1947
|
};
|
|
1948
1948
|
if (!o && E >= n || o && w >= n) {
|
|
1949
1949
|
var xe = t;
|
|
1950
|
-
return (!o && E >= n || o && w >= n) && (xe = o ? w - D : E - D), i && Vn(l,
|
|
1950
|
+
return (!o && E >= n || o && w >= n) && (xe = o ? w - D : E - D), i && Vn(l, ie, oe), {
|
|
1951
1951
|
placement: "top",
|
|
1952
1952
|
maxHeight: xe
|
|
1953
1953
|
};
|
|
@@ -2004,7 +2004,7 @@ var oa = function(t) {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
}, n.getUpdatedProps = function() {
|
|
2006
2006
|
var s = n.props.menuPlacement, u = n.state.placement || oa(s);
|
|
2007
|
-
return
|
|
2007
|
+
return re(re({}, n.props), {}, {
|
|
2008
2008
|
placement: u,
|
|
2009
2009
|
maxHeight: n.state.maxHeight
|
|
2010
2010
|
});
|
|
@@ -2405,7 +2405,7 @@ var Ud = function(t) {
|
|
|
2405
2405
|
}, o));
|
|
2406
2406
|
}, tf = ["innerRef", "isDisabled", "isHidden", "inputClassName"], nf = function(t) {
|
|
2407
2407
|
var r = t.isDisabled, n = t.value, a = t.theme, i = a.spacing, o = a.colors;
|
|
2408
|
-
return
|
|
2408
|
+
return re({
|
|
2409
2409
|
margin: i.baseUnit / 2,
|
|
2410
2410
|
paddingBottom: i.baseUnit / 2,
|
|
2411
2411
|
paddingTop: i.baseUnit / 2,
|
|
@@ -2428,13 +2428,13 @@ var Ud = function(t) {
|
|
|
2428
2428
|
display: "inline-grid",
|
|
2429
2429
|
gridArea: "1 / 1 / 2 / 3",
|
|
2430
2430
|
gridTemplateColumns: "0 min-content",
|
|
2431
|
-
"&:after":
|
|
2431
|
+
"&:after": re({
|
|
2432
2432
|
content: 'attr(data-value) " "',
|
|
2433
2433
|
visibility: "hidden",
|
|
2434
2434
|
whiteSpace: "pre"
|
|
2435
2435
|
}, os)
|
|
2436
2436
|
}, af = function(t) {
|
|
2437
|
-
return
|
|
2437
|
+
return re({
|
|
2438
2438
|
label: "input",
|
|
2439
2439
|
color: "inherit",
|
|
2440
2440
|
background: 0,
|
|
@@ -2512,7 +2512,7 @@ var hf = function(t) {
|
|
|
2512
2512
|
var g = m.css, v = m.cx;
|
|
2513
2513
|
return P(p, {
|
|
2514
2514
|
data: o,
|
|
2515
|
-
innerProps:
|
|
2515
|
+
innerProps: re({
|
|
2516
2516
|
className: v(g(s("multiValue", t)), i({
|
|
2517
2517
|
"multi-value": !0,
|
|
2518
2518
|
"multi-value--is-disabled": l
|
|
@@ -2529,7 +2529,7 @@ var hf = function(t) {
|
|
|
2529
2529
|
selectProps: d
|
|
2530
2530
|
}, r), P(f, {
|
|
2531
2531
|
data: o,
|
|
2532
|
-
innerProps:
|
|
2532
|
+
innerProps: re({
|
|
2533
2533
|
className: v(g(s("multiValueRemove", t)), i({
|
|
2534
2534
|
"multi-value__remove": !0
|
|
2535
2535
|
}, n)),
|
|
@@ -2635,7 +2635,7 @@ var hf = function(t) {
|
|
|
2635
2635
|
SingleValue: yf,
|
|
2636
2636
|
ValueContainer: Td
|
|
2637
2637
|
}, If = function(t) {
|
|
2638
|
-
return
|
|
2638
|
+
return re(re({}, Sn), t.components);
|
|
2639
2639
|
};
|
|
2640
2640
|
function Cf(e) {
|
|
2641
2641
|
if (Array.isArray(e))
|
|
@@ -2687,21 +2687,21 @@ function Rr(e, t) {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
var Df = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
2689
2689
|
function Mf(e) {
|
|
2690
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, a = n === void 0 ? !1 : n, i = e.defaultValue, o = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, p = e.onMenuOpen, h = e.value, f = an(e, Df), m = se(s !== void 0 ? s : r), g = Rr(m, 2), v = g[0], y = g[1], I = se(u !== void 0 ? u : a), M = Rr(I, 2), b = M[0], D = M[1], w = se(h !== void 0 ? h : o), T = Rr(w, 2), E = T[0], J = T[1], z =
|
|
2690
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, a = n === void 0 ? !1 : n, i = e.defaultValue, o = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, p = e.onMenuOpen, h = e.value, f = an(e, Df), m = se(s !== void 0 ? s : r), g = Rr(m, 2), v = g[0], y = g[1], I = se(u !== void 0 ? u : a), M = Rr(I, 2), b = M[0], D = M[1], w = se(h !== void 0 ? h : o), T = Rr(w, 2), E = T[0], J = T[1], z = q(function(Ae, Ke) {
|
|
2691
2691
|
typeof l == "function" && l(Ae, Ke), J(Ae);
|
|
2692
|
-
}, [l]),
|
|
2692
|
+
}, [l]), ie = q(function(Ae, Ke) {
|
|
2693
2693
|
var Ve;
|
|
2694
2694
|
typeof c == "function" && (Ve = c(Ae, Ke)), y(Ve !== void 0 ? Ve : Ae);
|
|
2695
|
-
}, [c]), oe =
|
|
2695
|
+
}, [c]), oe = q(function() {
|
|
2696
2696
|
typeof p == "function" && p(), D(!0);
|
|
2697
|
-
}, [p]), F =
|
|
2697
|
+
}, [p]), F = q(function() {
|
|
2698
2698
|
typeof d == "function" && d(), D(!1);
|
|
2699
2699
|
}, [d]), K = s !== void 0 ? s : v, Ee = u !== void 0 ? u : b, xe = h !== void 0 ? h : E;
|
|
2700
|
-
return
|
|
2700
|
+
return re(re({}, f), {}, {
|
|
2701
2701
|
inputValue: K,
|
|
2702
2702
|
menuIsOpen: Ee,
|
|
2703
2703
|
onChange: z,
|
|
2704
|
-
onInputChange:
|
|
2704
|
+
onInputChange: ie,
|
|
2705
2705
|
onMenuClose: F,
|
|
2706
2706
|
onMenuOpen: oe,
|
|
2707
2707
|
value: xe
|
|
@@ -2810,13 +2810,13 @@ var Pf = process.env.NODE_ENV === "production" ? {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
}, Ff = function(t) {
|
|
2812
2812
|
var r = t.ariaSelection, n = t.focusedOption, a = t.focusedValue, i = t.focusableOptions, o = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = u.ariaLiveMessages, d = u.getOptionLabel, p = u.inputValue, h = u.isMulti, f = u.isOptionDisabled, m = u.isSearchable, g = u.menuIsOpen, v = u.options, y = u.screenReaderStatus, I = u.tabSelectsValue, M = u["aria-label"], b = u["aria-live"], D = We(function() {
|
|
2813
|
-
return
|
|
2813
|
+
return re(re({}, Tf), c || {});
|
|
2814
2814
|
}, [c]), w = We(function() {
|
|
2815
2815
|
var F = "";
|
|
2816
2816
|
if (r && D.onChange) {
|
|
2817
2817
|
var K = r.option, Ee = r.options, xe = r.removedValue, Ae = r.removedValues, Ke = r.value, Ve = function(Fe) {
|
|
2818
2818
|
return Array.isArray(Fe) ? null : Fe;
|
|
2819
|
-
}, ut = xe || K || Ve(Ke), he = ut ? d(ut) : "", ve = Ee || Ae || void 0, qe = ve ? ve.map(d) : [], et =
|
|
2819
|
+
}, ut = xe || K || Ve(Ke), he = ut ? d(ut) : "", ve = Ee || Ae || void 0, qe = ve ? ve.map(d) : [], et = re({
|
|
2820
2820
|
// multiSelected items are usually items that have already been selected
|
|
2821
2821
|
// or set by the user as a default value so we assume they are not disabled
|
|
2822
2822
|
isDisabled: ut && f(ut, s),
|
|
@@ -2867,18 +2867,18 @@ var Pf = process.env.NODE_ENV === "production" ? {
|
|
|
2867
2867
|
});
|
|
2868
2868
|
}
|
|
2869
2869
|
return F;
|
|
2870
|
-
}, [M, n, a, h, f, m, g, D, s, I]), z = "".concat(T, " ").concat(E, " ").concat(J),
|
|
2870
|
+
}, [M, n, a, h, f, m, g, D, s, I]), z = "".concat(T, " ").concat(E, " ").concat(J), ie = P(Cn, null, P("span", {
|
|
2871
2871
|
id: "aria-selection"
|
|
2872
2872
|
}, w), P("span", {
|
|
2873
2873
|
id: "aria-context"
|
|
2874
2874
|
}, z)), oe = (r == null ? void 0 : r.action) === "initial-input-focus";
|
|
2875
2875
|
return P(Cn, null, P(ji, {
|
|
2876
2876
|
id: l
|
|
2877
|
-
}, oe &&
|
|
2877
|
+
}, oe && ie), P(ji, {
|
|
2878
2878
|
"aria-live": b,
|
|
2879
2879
|
"aria-atomic": "false",
|
|
2880
2880
|
"aria-relevant": "additions text"
|
|
2881
|
-
}, o && !oe &&
|
|
2881
|
+
}, o && !oe && ie));
|
|
2882
2882
|
}, ua = [{
|
|
2883
2883
|
base: "A",
|
|
2884
2884
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -3149,7 +3149,7 @@ var ds = function(t) {
|
|
|
3149
3149
|
return function(r, n) {
|
|
3150
3150
|
if (r.data.__isNew__)
|
|
3151
3151
|
return !0;
|
|
3152
|
-
var a =
|
|
3152
|
+
var a = re({
|
|
3153
3153
|
ignoreCase: !0,
|
|
3154
3154
|
ignoreAccents: !0,
|
|
3155
3155
|
stringify: Wf,
|
|
@@ -3191,26 +3191,26 @@ var Lf = function(t) {
|
|
|
3191
3191
|
t.preventDefault(), t.stopPropagation();
|
|
3192
3192
|
};
|
|
3193
3193
|
function Hf(e) {
|
|
3194
|
-
var t = e.isEnabled, r = e.onBottomArrive, n = e.onBottomLeave, a = e.onTopArrive, i = e.onTopLeave, o = _e(!1), s = _e(!1), u = _e(0), l = _e(null), c =
|
|
3194
|
+
var t = e.isEnabled, r = e.onBottomArrive, n = e.onBottomLeave, a = e.onTopArrive, i = e.onTopLeave, o = _e(!1), s = _e(!1), u = _e(0), l = _e(null), c = q(function(g, v) {
|
|
3195
3195
|
if (l.current !== null) {
|
|
3196
3196
|
var y = l.current, I = y.scrollTop, M = y.scrollHeight, b = y.clientHeight, D = l.current, w = v > 0, T = M - b - I, E = !1;
|
|
3197
3197
|
T > v && o.current && (n && n(g), o.current = !1), w && s.current && (i && i(g), s.current = !1), w && v > T ? (r && !o.current && r(g), D.scrollTop = M, E = !0, o.current = !0) : !w && -v > I && (a && !s.current && a(g), D.scrollTop = 0, E = !0, s.current = !0), E && Lf(g);
|
|
3198
3198
|
}
|
|
3199
|
-
}, [r, n, a, i]), d =
|
|
3199
|
+
}, [r, n, a, i]), d = q(function(g) {
|
|
3200
3200
|
c(g, g.deltaY);
|
|
3201
|
-
}, [c]), p =
|
|
3201
|
+
}, [c]), p = q(function(g) {
|
|
3202
3202
|
u.current = g.changedTouches[0].clientY;
|
|
3203
|
-
}, []), h =
|
|
3203
|
+
}, []), h = q(function(g) {
|
|
3204
3204
|
var v = u.current - g.changedTouches[0].clientY;
|
|
3205
3205
|
c(g, v);
|
|
3206
|
-
}, [c]), f =
|
|
3206
|
+
}, [c]), f = q(function(g) {
|
|
3207
3207
|
if (g) {
|
|
3208
3208
|
var v = bd ? {
|
|
3209
3209
|
passive: !1
|
|
3210
3210
|
} : !1;
|
|
3211
3211
|
g.addEventListener("wheel", d, v), g.addEventListener("touchstart", p, v), g.addEventListener("touchmove", h, v);
|
|
3212
3212
|
}
|
|
3213
|
-
}, [h, p, d]), m =
|
|
3213
|
+
}, [h, p, d]), m = q(function(g) {
|
|
3214
3214
|
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", p, !1), g.removeEventListener("touchmove", h, !1));
|
|
3215
3215
|
}, [h, p, d]);
|
|
3216
3216
|
return Ze(function() {
|
|
@@ -3249,7 +3249,7 @@ var eo = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
3249
3249
|
passive: !1
|
|
3250
3250
|
};
|
|
3251
3251
|
function Zf(e) {
|
|
3252
|
-
var t = e.isEnabled, r = e.accountForScrollbars, n = r === void 0 ? !0 : r, a = _e({}), i = _e(null), o =
|
|
3252
|
+
var t = e.isEnabled, r = e.accountForScrollbars, n = r === void 0 ? !0 : r, a = _e({}), i = _e(null), o = q(function(u) {
|
|
3253
3253
|
if (eo) {
|
|
3254
3254
|
var l = document.body, c = l && l.style;
|
|
3255
3255
|
if (n && Ui.forEach(function(f) {
|
|
@@ -3264,7 +3264,7 @@ function Zf(e) {
|
|
|
3264
3264
|
}
|
|
3265
3265
|
l && qi() && (l.addEventListener("touchmove", Ji, Lt), u && (u.addEventListener("touchstart", Ki, Lt), u.addEventListener("touchmove", Qi, Lt))), hn += 1;
|
|
3266
3266
|
}
|
|
3267
|
-
}, [n]), s =
|
|
3267
|
+
}, [n]), s = q(function(u) {
|
|
3268
3268
|
if (eo) {
|
|
3269
3269
|
var l = document.body, c = l && l.style;
|
|
3270
3270
|
hn = Math.max(hn - 1, 0), n && hn < 1 && Ui.forEach(function(d) {
|
|
@@ -3613,7 +3613,7 @@ var ys = function(t) {
|
|
|
3613
3613
|
return a.props.menuIsOpen ? a.buildFocusableOptions() : [];
|
|
3614
3614
|
}, a.ariaOnChange = function(i, o) {
|
|
3615
3615
|
a.setState({
|
|
3616
|
-
ariaSelection:
|
|
3616
|
+
ariaSelection: re({
|
|
3617
3617
|
value: i
|
|
3618
3618
|
}, o)
|
|
3619
3619
|
});
|
|
@@ -3902,7 +3902,7 @@ var ys = function(t) {
|
|
|
3902
3902
|
// Getters
|
|
3903
3903
|
// ==============================
|
|
3904
3904
|
function() {
|
|
3905
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(Vr) :
|
|
3905
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(Vr) : re(re({}, Vr), this.props.theme) : Vr;
|
|
3906
3906
|
}
|
|
3907
3907
|
)
|
|
3908
3908
|
}, {
|
|
@@ -4014,7 +4014,7 @@ var ys = function(t) {
|
|
|
4014
4014
|
// Renderers
|
|
4015
4015
|
// ==============================
|
|
4016
4016
|
function() {
|
|
4017
|
-
var a = this.props, i = a.isDisabled, o = a.isSearchable, s = a.inputId, u = a.inputValue, l = a.tabIndex, c = a.form, d = a.menuIsOpen, p = this.getComponents(), h = p.Input, f = this.state, m = f.inputIsHidden, g = f.ariaSelection, v = this.commonProps, y = s || this.getElementId("input"), I =
|
|
4017
|
+
var a = this.props, i = a.isDisabled, o = a.isSearchable, s = a.inputId, u = a.inputValue, l = a.tabIndex, c = a.form, d = a.menuIsOpen, 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({
|
|
4018
4018
|
"aria-autocomplete": "list",
|
|
4019
4019
|
"aria-expanded": d,
|
|
4020
4020
|
"aria-haspopup": !0,
|
|
@@ -4173,7 +4173,7 @@ var ys = function(t) {
|
|
|
4173
4173
|
}, {
|
|
4174
4174
|
key: "renderMenu",
|
|
4175
4175
|
value: function() {
|
|
4176
|
-
var a = this, i = this.getComponents(), o = i.Group, s = i.GroupHeading, u = i.Menu, l = i.MenuList, c = i.MenuPortal, d = i.LoadingMessage, 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, M = g.loadingMessage, b = g.minMenuHeight, D = g.maxMenuHeight, w = g.menuIsOpen, T = g.menuPlacement, E = g.menuPosition, J = g.menuPortalTarget, z = g.menuShouldBlockScroll,
|
|
4176
|
+
var a = this, i = this.getComponents(), o = i.Group, s = i.GroupHeading, u = i.Menu, l = i.MenuList, c = i.MenuPortal, d = i.LoadingMessage, 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, M = g.loadingMessage, b = g.minMenuHeight, D = g.maxMenuHeight, w = g.menuIsOpen, T = g.menuPlacement, E = g.menuPosition, J = g.menuPortalTarget, z = g.menuShouldBlockScroll, ie = g.menuShouldScrollIntoView, oe = g.noOptionsMessage, F = g.onMenuScrollToTop, K = g.onMenuScrollToBottom;
|
|
4177
4177
|
if (!w)
|
|
4178
4178
|
return null;
|
|
4179
4179
|
var Ee = function(ve, qe) {
|
|
@@ -4241,7 +4241,7 @@ var ys = function(t) {
|
|
|
4241
4241
|
maxMenuHeight: D,
|
|
4242
4242
|
menuPlacement: T,
|
|
4243
4243
|
menuPosition: E,
|
|
4244
|
-
menuShouldScrollIntoView:
|
|
4244
|
+
menuShouldScrollIntoView: ie
|
|
4245
4245
|
}, ut = /* @__PURE__ */ R.createElement(Ko, G({}, f, Ve), function(he) {
|
|
4246
4246
|
var ve = he.ref, qe = he.placerProps, et = qe.placement, Te = qe.maxHeight;
|
|
4247
4247
|
return /* @__PURE__ */ R.createElement(u, G({}, f, Ve, {
|
|
@@ -4376,7 +4376,7 @@ var ys = function(t) {
|
|
|
4376
4376
|
value: Hn(g, v, v[0] || null),
|
|
4377
4377
|
options: v,
|
|
4378
4378
|
action: "initial-input-focus"
|
|
4379
|
-
}, T = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (w = null),
|
|
4379
|
+
}, T = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (w = null), re(re(re({}, y), D), {}, {
|
|
4380
4380
|
prevProps: a,
|
|
4381
4381
|
ariaSelection: w,
|
|
4382
4382
|
prevWasFocused: T
|
|
@@ -4436,18 +4436,18 @@ const dh = ch, fh = ({ label: e, ...t }, r) => {
|
|
|
4436
4436
|
|
|
4437
4437
|
:active {
|
|
4438
4438
|
outline: none;
|
|
4439
|
-
border-color: ${
|
|
4439
|
+
border-color: ${ae};
|
|
4440
4440
|
}
|
|
4441
4441
|
|
|
4442
4442
|
:focus {
|
|
4443
4443
|
outline: none;
|
|
4444
|
-
border-color: ${
|
|
4444
|
+
border-color: ${ae};
|
|
4445
4445
|
}
|
|
4446
4446
|
|
|
4447
4447
|
&--is-focused,
|
|
4448
4448
|
&--is-focused:active {
|
|
4449
4449
|
outline: none !important;
|
|
4450
|
-
border: 1px solid ${
|
|
4450
|
+
border: 1px solid ${ae} !important;
|
|
4451
4451
|
box-shadow: none;
|
|
4452
4452
|
}
|
|
4453
4453
|
}
|
|
@@ -4460,7 +4460,7 @@ const dh = ch, fh = ({ label: e, ...t }, r) => {
|
|
|
4460
4460
|
|
|
4461
4461
|
&__menu {
|
|
4462
4462
|
.dropdown__option--is-focused:not(.dropdown__option--is-selected) {
|
|
4463
|
-
background: ${Ut(
|
|
4463
|
+
background: ${Ut(ae)};
|
|
4464
4464
|
}
|
|
4465
4465
|
}
|
|
4466
4466
|
|
|
@@ -4492,10 +4492,10 @@ const dh = ch, fh = ({ label: e, ...t }, r) => {
|
|
|
4492
4492
|
e.children
|
|
4493
4493
|
)), ws = A(pe)`
|
|
4494
4494
|
text-decoration: ${({ underline: e }) => e ? "underline" : "none"};
|
|
4495
|
-
color: ${({ color: e }) => e ||
|
|
4495
|
+
color: ${({ color: e }) => e || ae};
|
|
4496
4496
|
|
|
4497
4497
|
:hover {
|
|
4498
|
-
color: ${({ hoverColor: e }) => e ||
|
|
4498
|
+
color: ${({ hoverColor: e }) => e || ae};
|
|
4499
4499
|
text-decoration: underline;
|
|
4500
4500
|
}
|
|
4501
4501
|
`;
|
|
@@ -4506,8 +4506,8 @@ xs.propTypes = {
|
|
|
4506
4506
|
children: O.node
|
|
4507
4507
|
};
|
|
4508
4508
|
xs.defaultProps = {
|
|
4509
|
-
color:
|
|
4510
|
-
hoverColor:
|
|
4509
|
+
color: ae,
|
|
4510
|
+
hoverColor: ae,
|
|
4511
4511
|
underline: !1
|
|
4512
4512
|
};
|
|
4513
4513
|
const r1 = ({
|
|
@@ -4527,15 +4527,27 @@ const r1 = ({
|
|
|
4527
4527
|
"data-testid": h,
|
|
4528
4528
|
...f
|
|
4529
4529
|
}) => {
|
|
4530
|
-
const m = _e(null), g =
|
|
4530
|
+
const m = _e(null), g = q(
|
|
4531
4531
|
(I) => {
|
|
4532
4532
|
if (!i && (I.preventDefault(), m.current)) {
|
|
4533
4533
|
const M = !m.current.checked;
|
|
4534
|
-
I.currentTarget.setAttribute("aria-checked", M.toString()), m.current.checked = M
|
|
4534
|
+
I.currentTarget.setAttribute("aria-checked", M.toString()), m.current.checked = M;
|
|
4535
|
+
const b = {
|
|
4536
|
+
...I,
|
|
4537
|
+
target: {
|
|
4538
|
+
...m.current,
|
|
4539
|
+
checked: M,
|
|
4540
|
+
id: y
|
|
4541
|
+
}
|
|
4542
|
+
};
|
|
4543
|
+
typeof l == "function" && l(
|
|
4544
|
+
b,
|
|
4545
|
+
M
|
|
4546
|
+
);
|
|
4535
4547
|
}
|
|
4536
4548
|
},
|
|
4537
4549
|
[l]
|
|
4538
|
-
), v =
|
|
4550
|
+
), v = q(
|
|
4539
4551
|
(I) => {
|
|
4540
4552
|
I.key.match(/enter|spacebar|\W{1}/i) && g(I);
|
|
4541
4553
|
},
|
|
@@ -4605,6 +4617,11 @@ const r1 = ({
|
|
|
4605
4617
|
border: 2px solid ${({ background: e }) => e || "var(--color-stroke)"};
|
|
4606
4618
|
border-radius: var(--radius-pill);
|
|
4607
4619
|
|
|
4620
|
+
:active {
|
|
4621
|
+
transform: none;
|
|
4622
|
+
box-shadow: none;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4608
4625
|
:before {
|
|
4609
4626
|
position: absolute;
|
|
4610
4627
|
content: "";
|
|
@@ -4683,7 +4700,7 @@ const r1 = ({
|
|
|
4683
4700
|
|
|
4684
4701
|
input:disabled + ${Kn} {
|
|
4685
4702
|
cursor: not-allowed;
|
|
4686
|
-
border-color:
|
|
4703
|
+
border-color: transparent;
|
|
4687
4704
|
background-color: var(--color-disabled-text-on-light);
|
|
4688
4705
|
}
|
|
4689
4706
|
`, Dh = ({
|
|
@@ -4701,25 +4718,35 @@ const r1 = ({
|
|
|
4701
4718
|
"data-tip-disable": d,
|
|
4702
4719
|
...p
|
|
4703
4720
|
}) => {
|
|
4704
|
-
const h = _e(null);
|
|
4721
|
+
const h = _e(null), f = We(() => u || nn(), [u]);
|
|
4705
4722
|
Ze(() => {
|
|
4706
4723
|
h.current && (h.current.indeterminate = n || !1);
|
|
4707
4724
|
}, [n]);
|
|
4708
|
-
const
|
|
4725
|
+
const m = q(
|
|
4709
4726
|
(v) => {
|
|
4710
4727
|
if (!h.current || o)
|
|
4711
4728
|
return;
|
|
4712
4729
|
v.preventDefault();
|
|
4713
4730
|
const y = !h.current.checked;
|
|
4714
|
-
h.current.checked = y, typeof a == "function"
|
|
4731
|
+
if (h.current.checked = y, typeof a == "function") {
|
|
4732
|
+
const I = {
|
|
4733
|
+
...v,
|
|
4734
|
+
target: {
|
|
4735
|
+
...h.current,
|
|
4736
|
+
checked: y,
|
|
4737
|
+
id: f
|
|
4738
|
+
}
|
|
4739
|
+
};
|
|
4740
|
+
a(I, y);
|
|
4741
|
+
}
|
|
4715
4742
|
},
|
|
4716
|
-
[o, a]
|
|
4717
|
-
),
|
|
4743
|
+
[o, f, a]
|
|
4744
|
+
), g = q(
|
|
4718
4745
|
(v) => {
|
|
4719
|
-
!v.key.match(/enter|spacebar|\W{1}/i) || !h.current || (v.preventDefault(),
|
|
4746
|
+
!v.key.match(/enter|spacebar|\W{1}/i) || !h.current || (v.preventDefault(), m(v));
|
|
4720
4747
|
},
|
|
4721
4748
|
[a]
|
|
4722
|
-
)
|
|
4749
|
+
);
|
|
4723
4750
|
return /* @__PURE__ */ Me(Oh, { style: i, background: l, children: [
|
|
4724
4751
|
/* @__PURE__ */ V(
|
|
4725
4752
|
"input",
|
|
@@ -4731,16 +4758,16 @@ const r1 = ({
|
|
|
4731
4758
|
checked: s,
|
|
4732
4759
|
"aria-checked": n ? "mixed" : s,
|
|
4733
4760
|
"aria-disabled": o,
|
|
4734
|
-
"aria-describedby": r ? `${
|
|
4735
|
-
id:
|
|
4761
|
+
"aria-describedby": r ? `${f}_description` : void 0,
|
|
4762
|
+
id: f,
|
|
4736
4763
|
...p
|
|
4737
4764
|
}
|
|
4738
4765
|
),
|
|
4739
4766
|
n ? /* @__PURE__ */ V(
|
|
4740
4767
|
Nt,
|
|
4741
4768
|
{
|
|
4742
|
-
onClick:
|
|
4743
|
-
onKeyDown:
|
|
4769
|
+
onClick: m,
|
|
4770
|
+
onKeyDown: g,
|
|
4744
4771
|
tabIndex: 0,
|
|
4745
4772
|
"aria-checked": "mixed",
|
|
4746
4773
|
"aria-disabled": o,
|
|
@@ -4751,8 +4778,8 @@ const r1 = ({
|
|
|
4751
4778
|
) : /* @__PURE__ */ V(
|
|
4752
4779
|
Ct,
|
|
4753
4780
|
{
|
|
4754
|
-
onClick:
|
|
4755
|
-
onKeyDown:
|
|
4781
|
+
onClick: m,
|
|
4782
|
+
onKeyDown: g,
|
|
4756
4783
|
tabIndex: 0,
|
|
4757
4784
|
"aria-checked": s,
|
|
4758
4785
|
"aria-disabled": o,
|
|
@@ -4766,9 +4793,9 @@ const r1 = ({
|
|
|
4766
4793
|
e && /* @__PURE__ */ V(
|
|
4767
4794
|
_h,
|
|
4768
4795
|
{
|
|
4769
|
-
onClick:
|
|
4796
|
+
onClick: m,
|
|
4770
4797
|
bold: !0,
|
|
4771
|
-
htmlFor:
|
|
4798
|
+
htmlFor: f,
|
|
4772
4799
|
"data-tip": c,
|
|
4773
4800
|
"data-tip-disable": d,
|
|
4774
4801
|
children: e
|
|
@@ -4776,10 +4803,11 @@ const r1 = ({
|
|
|
4776
4803
|
),
|
|
4777
4804
|
t && /* @__PURE__ */ V(Ah, { children: t })
|
|
4778
4805
|
] }),
|
|
4779
|
-
r && /* @__PURE__ */ V(Nh, { id: `${
|
|
4806
|
+
r && /* @__PURE__ */ V(Nh, { id: `${f}_description`, children: r })
|
|
4780
4807
|
] })
|
|
4781
4808
|
] });
|
|
4782
4809
|
}, Ct = A.span`
|
|
4810
|
+
box-sizing: content-box;
|
|
4783
4811
|
cursor: pointer;
|
|
4784
4812
|
height: 16px;
|
|
4785
4813
|
width: 16px;
|
|
@@ -4787,6 +4815,7 @@ const r1 = ({
|
|
|
4787
4815
|
background-color: transparent;
|
|
4788
4816
|
border: 2px solid ${({ background: e }) => e || "var(--color-stroke)"};
|
|
4789
4817
|
position: relative;
|
|
4818
|
+
flex-shrink: 0;
|
|
4790
4819
|
|
|
4791
4820
|
&:focus-visible {
|
|
4792
4821
|
outline: 0;
|
|
@@ -4865,9 +4894,12 @@ const r1 = ({
|
|
|
4865
4894
|
background: var(--color-disabled-text-on-light);
|
|
4866
4895
|
}
|
|
4867
4896
|
|
|
4868
|
-
input:disabled ~ div
|
|
4869
|
-
|
|
4870
|
-
|
|
4897
|
+
input:disabled ~ div {
|
|
4898
|
+
p,
|
|
4899
|
+
label {
|
|
4900
|
+
cursor: default;
|
|
4901
|
+
color: var(--color-disabled-text-on-light);
|
|
4902
|
+
}
|
|
4871
4903
|
}
|
|
4872
4904
|
|
|
4873
4905
|
:hover {
|
|
@@ -4909,10 +4941,10 @@ const r1 = ({
|
|
|
4909
4941
|
Ze(() => {
|
|
4910
4942
|
e && d(e);
|
|
4911
4943
|
}, [e]);
|
|
4912
|
-
const p = (f) => c.includes(f), h = (f, m) => {
|
|
4913
|
-
f.onChange && f.onChange(m);
|
|
4914
|
-
const
|
|
4915
|
-
d(
|
|
4944
|
+
const p = (f) => c.includes(f), h = (f, m, g) => {
|
|
4945
|
+
f.onChange && f.onChange(m, g);
|
|
4946
|
+
const y = (g ? [...c, f.value] : c.filter((I) => I !== f.value)).sort(Th(u));
|
|
4947
|
+
d(y), o && o(y);
|
|
4916
4948
|
};
|
|
4917
4949
|
return /* @__PURE__ */ V(Bh, { className: a, children: u.map((f) => /* @__PURE__ */ V("li", { children: /* @__PURE__ */ V(
|
|
4918
4950
|
Dh,
|
|
@@ -4922,7 +4954,7 @@ const r1 = ({
|
|
|
4922
4954
|
name: r,
|
|
4923
4955
|
disabled: f.disabled || t || !1,
|
|
4924
4956
|
checked: p(f.value),
|
|
4925
|
-
onChange: (m) => h(f, m)
|
|
4957
|
+
onChange: (m, g) => h(f, m, g)
|
|
4926
4958
|
}
|
|
4927
4959
|
) }, f.value)) });
|
|
4928
4960
|
}, Bh = A.ul`
|
|
@@ -4940,35 +4972,69 @@ const r1 = ({
|
|
|
4940
4972
|
description: r,
|
|
4941
4973
|
background: n,
|
|
4942
4974
|
id: a,
|
|
4943
|
-
|
|
4975
|
+
onChange: i,
|
|
4976
|
+
...o
|
|
4944
4977
|
}) => {
|
|
4945
|
-
const [
|
|
4978
|
+
const [s] = se(() => a || `radio_${nn()}`), u = q(
|
|
4979
|
+
(c) => {
|
|
4980
|
+
if (o.disabled)
|
|
4981
|
+
return;
|
|
4982
|
+
c.preventDefault();
|
|
4983
|
+
const d = {
|
|
4984
|
+
...c,
|
|
4985
|
+
target: {
|
|
4986
|
+
...c.target,
|
|
4987
|
+
checked: !0,
|
|
4988
|
+
id: s
|
|
4989
|
+
}
|
|
4990
|
+
};
|
|
4991
|
+
typeof i == "function" && i(
|
|
4992
|
+
d,
|
|
4993
|
+
!0
|
|
4994
|
+
);
|
|
4995
|
+
},
|
|
4996
|
+
[s, i, o.disabled]
|
|
4997
|
+
), l = q(
|
|
4998
|
+
(c) => {
|
|
4999
|
+
c.key.match(/enter|spacebar|\W{1}/i) && (c.preventDefault(), u(c));
|
|
5000
|
+
},
|
|
5001
|
+
[u]
|
|
5002
|
+
);
|
|
4946
5003
|
return /* @__PURE__ */ Me(Xh, { background: n, children: [
|
|
4947
5004
|
/* @__PURE__ */ V(
|
|
4948
5005
|
"input",
|
|
4949
5006
|
{
|
|
4950
5007
|
type: "radio",
|
|
4951
|
-
"aria-describedby": r ? `${
|
|
4952
|
-
...
|
|
4953
|
-
id:
|
|
5008
|
+
"aria-describedby": r ? `${s}_description` : void 0,
|
|
5009
|
+
...o,
|
|
5010
|
+
id: s,
|
|
5011
|
+
onKeyDown: l
|
|
5012
|
+
}
|
|
5013
|
+
),
|
|
5014
|
+
/* @__PURE__ */ V(
|
|
5015
|
+
gn,
|
|
5016
|
+
{
|
|
5017
|
+
onClick: u,
|
|
5018
|
+
onKeyDown: l,
|
|
5019
|
+
background: n
|
|
4954
5020
|
}
|
|
4955
5021
|
),
|
|
4956
|
-
/* @__PURE__ */ V(gn, { background: n }),
|
|
4957
5022
|
e && /* @__PURE__ */ Me(Yh, { children: [
|
|
4958
5023
|
/* @__PURE__ */ Me(Vh, { children: [
|
|
4959
5024
|
e && /* @__PURE__ */ V(
|
|
4960
5025
|
Zh,
|
|
4961
5026
|
{
|
|
4962
5027
|
bold: !0,
|
|
4963
|
-
htmlFor:
|
|
4964
|
-
"data-tip":
|
|
4965
|
-
"data-tip-disable":
|
|
5028
|
+
htmlFor: s,
|
|
5029
|
+
"data-tip": o["data-tip"],
|
|
5030
|
+
"data-tip-disable": o["data-tip-disable"],
|
|
5031
|
+
onClick: u,
|
|
4966
5032
|
children: e
|
|
4967
5033
|
}
|
|
4968
5034
|
),
|
|
4969
5035
|
t && /* @__PURE__ */ V(Lh, { children: t })
|
|
4970
5036
|
] }),
|
|
4971
|
-
r && /* @__PURE__ */ V(Hh, { id: `${
|
|
5037
|
+
r && /* @__PURE__ */ V(Hh, { id: `${s}_description`, children: r })
|
|
4972
5038
|
] })
|
|
4973
5039
|
] });
|
|
4974
5040
|
};
|
|
@@ -4988,6 +5054,7 @@ const gn = A.span`
|
|
|
4988
5054
|
border: 2px solid ${({ background: e }) => e || "var(--color-stroke)"};
|
|
4989
5055
|
border-radius: var(--radius-circle);
|
|
4990
5056
|
flex-shrink: 0;
|
|
5057
|
+
cursor: pointer;
|
|
4991
5058
|
input:focus + & {
|
|
4992
5059
|
:before {
|
|
4993
5060
|
content: "";
|
|
@@ -5128,12 +5195,12 @@ const jh = A.textarea`
|
|
|
5128
5195
|
|
|
5129
5196
|
:active {
|
|
5130
5197
|
outline: none;
|
|
5131
|
-
border-color: ${
|
|
5198
|
+
border-color: ${ae};
|
|
5132
5199
|
}
|
|
5133
5200
|
|
|
5134
5201
|
:focus {
|
|
5135
5202
|
outline: none;
|
|
5136
|
-
border-color: ${
|
|
5203
|
+
border-color: ${ae};
|
|
5137
5204
|
}
|
|
5138
5205
|
`, zh = A.div`
|
|
5139
5206
|
margin: 4px 0;
|
|
@@ -5150,7 +5217,7 @@ Uh.propTypes = {
|
|
|
5150
5217
|
};
|
|
5151
5218
|
const $h = A.div`
|
|
5152
5219
|
display: inline;
|
|
5153
|
-
background: ${
|
|
5220
|
+
background: ${ae};
|
|
5154
5221
|
height: 24px;
|
|
5155
5222
|
width: auto;
|
|
5156
5223
|
border-radius: 100px;
|
|
@@ -5167,7 +5234,7 @@ const $h = A.div`
|
|
|
5167
5234
|
padding: 2px 11.6px 2px 10px;
|
|
5168
5235
|
bottom: 3px;
|
|
5169
5236
|
color: ${Gt};
|
|
5170
|
-
`, ks = ({ text: e, isFilled: t, color: r =
|
|
5237
|
+
`, ks = ({ text: e, isFilled: t, color: r = ae, applyCustomStylings: n }) => /* @__PURE__ */ k.createElement(Kh, { color: r, isFilled: t }, n ? n(e) : /* @__PURE__ */ k.createElement(Jr, { color: t ? Gt : r, uppercase: !0, bold: !0 }, e)), Kh = A.span`
|
|
5171
5238
|
display: inline-block;
|
|
5172
5239
|
background: ${({ color: e, isFilled: t }) => t ? e : Ut(e)};
|
|
5173
5240
|
padding: 4px 8px;
|
|
@@ -5180,7 +5247,7 @@ ks.propTypes = {
|
|
|
5180
5247
|
applyCustomStylings: O.func
|
|
5181
5248
|
};
|
|
5182
5249
|
ks.defaultProps = {
|
|
5183
|
-
color:
|
|
5250
|
+
color: ae
|
|
5184
5251
|
};
|
|
5185
5252
|
var Mt = {}, Xe = {}, Va = {}, $e = {};
|
|
5186
5253
|
Object.defineProperty($e, "__esModule", {
|
|
@@ -7127,7 +7194,7 @@ function ag(e, t) {
|
|
|
7127
7194
|
return this[e](t);
|
|
7128
7195
|
return this;
|
|
7129
7196
|
}
|
|
7130
|
-
var mu = /\d/, Pe = /\d\d/, gu = /\d{3}/, oi = /\d{4}/, Dr = /[+-]?\d{6}/,
|
|
7197
|
+
var mu = /\d/, Pe = /\d\d/, gu = /\d{3}/, oi = /\d{4}/, Dr = /[+-]?\d{6}/, te = /\d\d?/, vu = /\d\d\d\d?/, bu = /\d\d\d\d\d\d?/, Mr = /\d{1,3}/, si = /\d{1,4}/, kr = /[+-]?\d{1,6}/, cn = /\d+/, Sr = /[+-]?\d+/, ig = /Z|[+-]\d\d:?\d\d/gi, Er = /Z|[+-]\d\d(?::?\d\d)?/gi, og = /[+-]?\d+(\.\d{1,3})?/, Tn = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, dr;
|
|
7131
7198
|
dr = {};
|
|
7132
7199
|
function S(e, t, r) {
|
|
7133
7200
|
dr[e] = st(t) ? t : function(n, a) {
|
|
@@ -7195,8 +7262,8 @@ _("MMMM", 0, 0, function(e) {
|
|
|
7195
7262
|
});
|
|
7196
7263
|
Ie("month", "M");
|
|
7197
7264
|
Ce("month", 8);
|
|
7198
|
-
S("M",
|
|
7199
|
-
S("MM",
|
|
7265
|
+
S("M", te);
|
|
7266
|
+
S("MM", te, Pe);
|
|
7200
7267
|
S("MMM", function(e, t) {
|
|
7201
7268
|
return t.monthsShortRegex(e);
|
|
7202
7269
|
});
|
|
@@ -7304,7 +7371,7 @@ _(0, ["YYYYYY", 6, !0], 0, "year");
|
|
|
7304
7371
|
Ie("year", "y");
|
|
7305
7372
|
Ce("year", 1);
|
|
7306
7373
|
S("Y", Sr);
|
|
7307
|
-
S("YY",
|
|
7374
|
+
S("YY", te, Pe);
|
|
7308
7375
|
S("YYYY", si, oi);
|
|
7309
7376
|
S("YYYYY", kr, Dr);
|
|
7310
7377
|
S("YYYYYY", kr, Dr);
|
|
@@ -7364,10 +7431,10 @@ Ie("week", "w");
|
|
|
7364
7431
|
Ie("isoWeek", "W");
|
|
7365
7432
|
Ce("week", 5);
|
|
7366
7433
|
Ce("isoWeek", 5);
|
|
7367
|
-
S("w",
|
|
7368
|
-
S("ww",
|
|
7369
|
-
S("W",
|
|
7370
|
-
S("WW",
|
|
7434
|
+
S("w", te);
|
|
7435
|
+
S("ww", te, Pe);
|
|
7436
|
+
S("W", te);
|
|
7437
|
+
S("WW", te, Pe);
|
|
7371
7438
|
Fn(
|
|
7372
7439
|
["w", "ww", "W", "WW"],
|
|
7373
7440
|
function(e, t, r, n) {
|
|
@@ -7415,9 +7482,9 @@ Ie("isoWeekday", "E");
|
|
|
7415
7482
|
Ce("day", 11);
|
|
7416
7483
|
Ce("weekday", 11);
|
|
7417
7484
|
Ce("isoWeekday", 11);
|
|
7418
|
-
S("d",
|
|
7419
|
-
S("e",
|
|
7420
|
-
S("E",
|
|
7485
|
+
S("d", te);
|
|
7486
|
+
S("e", te);
|
|
7487
|
+
S("E", te);
|
|
7421
7488
|
S("dd", function(e, t) {
|
|
7422
7489
|
return t.weekdaysMinRegex(e);
|
|
7423
7490
|
});
|
|
@@ -7578,12 +7645,12 @@ function Eu(e, t) {
|
|
|
7578
7645
|
}
|
|
7579
7646
|
S("a", Eu);
|
|
7580
7647
|
S("A", Eu);
|
|
7581
|
-
S("H",
|
|
7582
|
-
S("h",
|
|
7583
|
-
S("k",
|
|
7584
|
-
S("HH",
|
|
7585
|
-
S("hh",
|
|
7586
|
-
S("kk",
|
|
7648
|
+
S("H", te);
|
|
7649
|
+
S("h", te);
|
|
7650
|
+
S("k", te);
|
|
7651
|
+
S("HH", te, Pe);
|
|
7652
|
+
S("hh", te, Pe);
|
|
7653
|
+
S("kk", te, Pe);
|
|
7587
7654
|
S("hmm", vu);
|
|
7588
7655
|
S("hmmss", bu);
|
|
7589
7656
|
S("Hmm", vu);
|
|
@@ -7636,7 +7703,7 @@ var Au = {
|
|
|
7636
7703
|
weekdaysMin: Tg,
|
|
7637
7704
|
weekdaysShort: ku,
|
|
7638
7705
|
meridiemParse: Qg
|
|
7639
|
-
},
|
|
7706
|
+
}, ne = {}, pn = {}, Nn;
|
|
7640
7707
|
function ev(e, t) {
|
|
7641
7708
|
var r, n = Math.min(e.length, t.length);
|
|
7642
7709
|
for (r = 0; r < n; r += 1)
|
|
@@ -7665,13 +7732,13 @@ function nv(e) {
|
|
|
7665
7732
|
}
|
|
7666
7733
|
function Nr(e) {
|
|
7667
7734
|
var t = null, r;
|
|
7668
|
-
if (
|
|
7735
|
+
if (ne[e] === void 0 && typeof module < "u" && module && module.exports && nv(e))
|
|
7669
7736
|
try {
|
|
7670
7737
|
t = Nn._abbr, r = require, r("./locale/" + e), Dt(t);
|
|
7671
7738
|
} catch {
|
|
7672
|
-
|
|
7739
|
+
ne[e] = null;
|
|
7673
7740
|
}
|
|
7674
|
-
return
|
|
7741
|
+
return ne[e];
|
|
7675
7742
|
}
|
|
7676
7743
|
function Dt(e, t) {
|
|
7677
7744
|
var r;
|
|
@@ -7682,14 +7749,14 @@ function Dt(e, t) {
|
|
|
7682
7749
|
function di(e, t) {
|
|
7683
7750
|
if (t !== null) {
|
|
7684
7751
|
var r, n = Au;
|
|
7685
|
-
if (t.abbr = e,
|
|
7752
|
+
if (t.abbr = e, ne[e] != null)
|
|
7686
7753
|
du(
|
|
7687
7754
|
"defineLocaleOverride",
|
|
7688
7755
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
|
7689
|
-
), n =
|
|
7756
|
+
), n = ne[e]._config;
|
|
7690
7757
|
else if (t.parentLocale != null)
|
|
7691
|
-
if (
|
|
7692
|
-
n =
|
|
7758
|
+
if (ne[t.parentLocale] != null)
|
|
7759
|
+
n = ne[t.parentLocale]._config;
|
|
7693
7760
|
else if (r = Nr(t.parentLocale), r != null)
|
|
7694
7761
|
n = r._config;
|
|
7695
7762
|
else
|
|
@@ -7697,19 +7764,19 @@ function di(e, t) {
|
|
|
7697
7764
|
name: e,
|
|
7698
7765
|
config: t
|
|
7699
7766
|
}), null;
|
|
7700
|
-
return
|
|
7767
|
+
return ne[e] = new ri(ca(n, t)), pn[e] && pn[e].forEach(function(a) {
|
|
7701
7768
|
di(a.name, a.config);
|
|
7702
|
-
}), Dt(e),
|
|
7769
|
+
}), Dt(e), ne[e];
|
|
7703
7770
|
} else
|
|
7704
|
-
return delete
|
|
7771
|
+
return delete ne[e], null;
|
|
7705
7772
|
}
|
|
7706
7773
|
function rv(e, t) {
|
|
7707
7774
|
if (t != null) {
|
|
7708
7775
|
var r, n, a = Au;
|
|
7709
|
-
|
|
7776
|
+
ne[e] != null && ne[e].parentLocale != null ? ne[e].set(ca(ne[e]._config, t)) : (n = Nr(e), n != null && (a = n._config), t = ca(a, t), n == null && (t.abbr = e), r = new ri(t), r.parentLocale = ne[e], ne[e] = r), Dt(e);
|
|
7710
7777
|
} else
|
|
7711
|
-
|
|
7712
|
-
return
|
|
7778
|
+
ne[e] != null && (ne[e].parentLocale != null ? (ne[e] = ne[e].parentLocale, e === Dt() && Dt(e)) : ne[e] != null && delete ne[e]);
|
|
7779
|
+
return ne[e];
|
|
7713
7780
|
}
|
|
7714
7781
|
function yt(e) {
|
|
7715
7782
|
var t;
|
|
@@ -7723,7 +7790,7 @@ function yt(e) {
|
|
|
7723
7790
|
return tv(e);
|
|
7724
7791
|
}
|
|
7725
7792
|
function av() {
|
|
7726
|
-
return da(
|
|
7793
|
+
return da(ne);
|
|
7727
7794
|
}
|
|
7728
7795
|
function fi(e) {
|
|
7729
7796
|
var t, r = e._a;
|
|
@@ -7907,8 +7974,8 @@ function bv(e) {
|
|
|
7907
7974
|
t = e._w, t.GG != null || t.W != null || t.E != null ? (i = 1, o = 4, r = Xt(
|
|
7908
7975
|
t.GG,
|
|
7909
7976
|
e._a[ye],
|
|
7910
|
-
An(
|
|
7911
|
-
), n = Xt(t.W, 1), a = Xt(t.E, 1), (a < 1 || a > 7) && (u = !0)) : (i = e._locale._week.dow, o = e._locale._week.doy, l = An(
|
|
7977
|
+
An(ee(), 1, 4).year
|
|
7978
|
+
), n = Xt(t.W, 1), a = Xt(t.E, 1), (a < 1 || a > 7) && (u = !0)) : (i = e._locale._week.dow, o = e._locale._week.doy, l = An(ee(), i, o), r = Xt(t.gg, e._a[ye], l.year), n = Xt(t.w, l.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (u = !0)) : t.e != null ? (a = t.e + i, (t.e < 0 || t.e > 6) && (u = !0)) : a = i), n < 1 || n > gt(r, i, o) ? W(e)._overflowWeeks = !0 : u != null ? W(e)._overflowWeekday = !0 : (s = Mu(r, n, a, i, o), e._a[ye] = s.year, e._dayOfYear = s.dayOfYear);
|
|
7912
7979
|
}
|
|
7913
7980
|
x.ISO_8601 = function() {
|
|
7914
7981
|
};
|
|
@@ -7978,26 +8045,26 @@ function Pu(e, t, r, n, a) {
|
|
|
7978
8045
|
var i = {};
|
|
7979
8046
|
return (t === !0 || t === !1) && (n = t, t = void 0), (r === !0 || r === !1) && (n = r, r = void 0), (Tt(e) && ei(e) || ze(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = a, i._l = r, i._i = e, i._f = t, i._strict = n, xv(i);
|
|
7980
8047
|
}
|
|
7981
|
-
function
|
|
8048
|
+
function ee(e, t, r, n) {
|
|
7982
8049
|
return Pu(e, t, r, n, !1);
|
|
7983
8050
|
}
|
|
7984
8051
|
var Dv = Be(
|
|
7985
8052
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
7986
8053
|
function() {
|
|
7987
|
-
var e =
|
|
8054
|
+
var e = ee.apply(null, arguments);
|
|
7988
8055
|
return this.isValid() && e.isValid() ? e < this ? this : e : xr();
|
|
7989
8056
|
}
|
|
7990
8057
|
), Mv = Be(
|
|
7991
8058
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
7992
8059
|
function() {
|
|
7993
|
-
var e =
|
|
8060
|
+
var e = ee.apply(null, arguments);
|
|
7994
8061
|
return this.isValid() && e.isValid() ? e > this ? this : e : xr();
|
|
7995
8062
|
}
|
|
7996
8063
|
);
|
|
7997
8064
|
function Tu(e, t) {
|
|
7998
8065
|
var r, n;
|
|
7999
8066
|
if (t.length === 1 && ze(t[0]) && (t = t[0]), !t.length)
|
|
8000
|
-
return
|
|
8067
|
+
return ee();
|
|
8001
8068
|
for (r = t[0], n = 1; n < t.length; ++n)
|
|
8002
8069
|
(!t[n].isValid() || t[n][e](r)) && (r = t[n]);
|
|
8003
8070
|
return r;
|
|
@@ -8080,7 +8147,7 @@ function mi(e, t) {
|
|
|
8080
8147
|
}
|
|
8081
8148
|
function gi(e, t) {
|
|
8082
8149
|
var r, n;
|
|
8083
|
-
return t._isUTC ? (r = t.clone(), n = (Ue(e) || On(e) ? e.valueOf() :
|
|
8150
|
+
return t._isUTC ? (r = t.clone(), n = (Ue(e) || On(e) ? e.valueOf() : ee(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), x.updateOffset(r, !1), r) : ee(e).local();
|
|
8084
8151
|
}
|
|
8085
8152
|
function pa(e) {
|
|
8086
8153
|
return -Math.round(e._d.getTimezoneOffset());
|
|
@@ -8125,7 +8192,7 @@ function Wv() {
|
|
|
8125
8192
|
return this;
|
|
8126
8193
|
}
|
|
8127
8194
|
function Bv(e) {
|
|
8128
|
-
return this.isValid() ? (e = e ?
|
|
8195
|
+
return this.isValid() ? (e = e ? ee(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
8129
8196
|
}
|
|
8130
8197
|
function Yv() {
|
|
8131
8198
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
@@ -8134,7 +8201,7 @@ function Vv() {
|
|
|
8134
8201
|
if (!De(this._isDSTShifted))
|
|
8135
8202
|
return this._isDSTShifted;
|
|
8136
8203
|
var e = {}, t;
|
|
8137
|
-
return ni(e, this), e = Ou(e), e._a ? (t = e._isUTC ? ot(e._a) :
|
|
8204
|
+
return ni(e, this), e = Ou(e), e._a ? (t = e._isUTC ? ot(e._a) : ee(e._a), this._isDSTShifted = this.isValid() && Ov(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
8138
8205
|
}
|
|
8139
8206
|
function Lv() {
|
|
8140
8207
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -8169,8 +8236,8 @@ function Je(e, t) {
|
|
|
8169
8236
|
m: At(n[7], a),
|
|
8170
8237
|
s: At(n[8], a)
|
|
8171
8238
|
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (o = jv(
|
|
8172
|
-
|
|
8173
|
-
|
|
8239
|
+
ee(r.from),
|
|
8240
|
+
ee(r.to)
|
|
8174
8241
|
), r = {}, r.ms = o.milliseconds, r.M = o.months), i = new _r(r), tr(e) && L(e, "_locale") && (i._locale = e._locale), tr(e) && L(e, "_isValid") && (i._isValid = e._isValid), i;
|
|
8175
8242
|
}
|
|
8176
8243
|
Je.fn = _r.prototype;
|
|
@@ -8263,28 +8330,28 @@ function qv(e, t) {
|
|
|
8263
8330
|
}
|
|
8264
8331
|
function eb(e, t) {
|
|
8265
8332
|
arguments.length === 1 && (arguments[0] ? $v(arguments[0]) ? (e = arguments[0], t = void 0) : Kv(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
8266
|
-
var r = e ||
|
|
8333
|
+
var r = e || ee(), n = gi(r, this).startOf("day"), a = x.calendarFormat(this, n) || "sameElse", i = t && (st(t[a]) ? t[a].call(this, r) : t[a]);
|
|
8267
8334
|
return this.format(
|
|
8268
|
-
i || this.localeData().calendar(a, this,
|
|
8335
|
+
i || this.localeData().calendar(a, this, ee(r))
|
|
8269
8336
|
);
|
|
8270
8337
|
}
|
|
8271
8338
|
function tb() {
|
|
8272
8339
|
return new Pn(this);
|
|
8273
8340
|
}
|
|
8274
8341
|
function nb(e, t) {
|
|
8275
|
-
var r = Ue(e) ? e :
|
|
8342
|
+
var r = Ue(e) ? e : ee(e);
|
|
8276
8343
|
return this.isValid() && r.isValid() ? (t = Ye(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
8277
8344
|
}
|
|
8278
8345
|
function rb(e, t) {
|
|
8279
|
-
var r = Ue(e) ? e :
|
|
8346
|
+
var r = Ue(e) ? e : ee(e);
|
|
8280
8347
|
return this.isValid() && r.isValid() ? (t = Ye(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : !1;
|
|
8281
8348
|
}
|
|
8282
8349
|
function ab(e, t, r, n) {
|
|
8283
|
-
var a = Ue(e) ? e :
|
|
8350
|
+
var a = Ue(e) ? e : ee(e), i = Ue(t) ? t : ee(t);
|
|
8284
8351
|
return this.isValid() && a.isValid() && i.isValid() ? (n = n || "()", (n[0] === "(" ? this.isAfter(a, r) : !this.isBefore(a, r)) && (n[1] === ")" ? this.isBefore(i, r) : !this.isAfter(i, r))) : !1;
|
|
8285
8352
|
}
|
|
8286
8353
|
function ib(e, t) {
|
|
8287
|
-
var r = Ue(e) ? e :
|
|
8354
|
+
var r = Ue(e) ? e : ee(e), n;
|
|
8288
8355
|
return this.isValid() && r.isValid() ? (t = Ye(t) || "millisecond", t === "millisecond" ? this.valueOf() === r.valueOf() : (n = r.valueOf(), this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf())) : !1;
|
|
8289
8356
|
}
|
|
8290
8357
|
function ob(e, t) {
|
|
@@ -8364,16 +8431,16 @@ function fb(e) {
|
|
|
8364
8431
|
return this.localeData().postformat(t);
|
|
8365
8432
|
}
|
|
8366
8433
|
function hb(e, t) {
|
|
8367
|
-
return this.isValid() && (Ue(e) && e.isValid() ||
|
|
8434
|
+
return this.isValid() && (Ue(e) && e.isValid() || ee(e).isValid()) ? Je({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
8368
8435
|
}
|
|
8369
8436
|
function pb(e) {
|
|
8370
|
-
return this.from(
|
|
8437
|
+
return this.from(ee(), e);
|
|
8371
8438
|
}
|
|
8372
8439
|
function mb(e, t) {
|
|
8373
|
-
return this.isValid() && (Ue(e) && e.isValid() ||
|
|
8440
|
+
return this.isValid() && (Ue(e) && e.isValid() || ee(e).isValid()) ? Je({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
8374
8441
|
}
|
|
8375
8442
|
function gb(e) {
|
|
8376
|
-
return this.to(
|
|
8443
|
+
return this.to(ee(), e);
|
|
8377
8444
|
}
|
|
8378
8445
|
function Yu(e) {
|
|
8379
8446
|
var t;
|
|
@@ -8708,8 +8775,8 @@ Ce("weekYear", 1);
|
|
|
8708
8775
|
Ce("isoWeekYear", 1);
|
|
8709
8776
|
S("G", Sr);
|
|
8710
8777
|
S("g", Sr);
|
|
8711
|
-
S("GG",
|
|
8712
|
-
S("gg",
|
|
8778
|
+
S("GG", te, Pe);
|
|
8779
|
+
S("gg", te, Pe);
|
|
8713
8780
|
S("GGGG", si, oi);
|
|
8714
8781
|
S("gggg", si, oi);
|
|
8715
8782
|
S("GGGGG", kr, Dr);
|
|
@@ -8778,14 +8845,14 @@ function $b(e) {
|
|
|
8778
8845
|
_("D", ["DD", 2], "Do", "date");
|
|
8779
8846
|
Ie("date", "D");
|
|
8780
8847
|
Ce("date", 9);
|
|
8781
|
-
S("D",
|
|
8782
|
-
S("DD",
|
|
8848
|
+
S("D", te);
|
|
8849
|
+
S("DD", te, Pe);
|
|
8783
8850
|
S("Do", function(e, t) {
|
|
8784
8851
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
8785
8852
|
});
|
|
8786
8853
|
Q(["D", "DD"], rt);
|
|
8787
8854
|
Q("Do", function(e, t) {
|
|
8788
|
-
t[rt] = B(e.match(
|
|
8855
|
+
t[rt] = B(e.match(te)[0]);
|
|
8789
8856
|
});
|
|
8790
8857
|
var zu = ln("Date", !0);
|
|
8791
8858
|
_("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
@@ -8805,15 +8872,15 @@ function Jb(e) {
|
|
|
8805
8872
|
_("m", ["mm", 2], 0, "minute");
|
|
8806
8873
|
Ie("minute", "m");
|
|
8807
8874
|
Ce("minute", 14);
|
|
8808
|
-
S("m",
|
|
8809
|
-
S("mm",
|
|
8875
|
+
S("m", te);
|
|
8876
|
+
S("mm", te, Pe);
|
|
8810
8877
|
Q(["m", "mm"], je);
|
|
8811
8878
|
var Qb = ln("Minutes", !1);
|
|
8812
8879
|
_("s", ["ss", 2], 0, "second");
|
|
8813
8880
|
Ie("second", "s");
|
|
8814
8881
|
Ce("second", 15);
|
|
8815
|
-
S("s",
|
|
8816
|
-
S("ss",
|
|
8882
|
+
S("s", te);
|
|
8883
|
+
S("ss", te, Pe);
|
|
8817
8884
|
Q(["s", "ss"], mt);
|
|
8818
8885
|
var Kb = ln("Seconds", !1);
|
|
8819
8886
|
_("S", 0, 0, function() {
|
|
@@ -8964,10 +9031,10 @@ C.isDSTShifted = Be(
|
|
|
8964
9031
|
Vv
|
|
8965
9032
|
);
|
|
8966
9033
|
function ny(e) {
|
|
8967
|
-
return
|
|
9034
|
+
return ee(e * 1e3);
|
|
8968
9035
|
}
|
|
8969
9036
|
function ry() {
|
|
8970
|
-
return
|
|
9037
|
+
return ee.apply(null, arguments).parseZone();
|
|
8971
9038
|
}
|
|
8972
9039
|
function $u(e) {
|
|
8973
9040
|
return e;
|
|
@@ -9252,7 +9319,7 @@ Q("x", function(e, t, r) {
|
|
|
9252
9319
|
});
|
|
9253
9320
|
//! moment.js
|
|
9254
9321
|
x.version = "2.29.4";
|
|
9255
|
-
Bm(
|
|
9322
|
+
Bm(ee);
|
|
9256
9323
|
x.fn = C;
|
|
9257
9324
|
x.min = kv;
|
|
9258
9325
|
x.max = Sv;
|
|
@@ -9803,9 +9870,9 @@ const jy = ({
|
|
|
9803
9870
|
padding: 8px;
|
|
9804
9871
|
|
|
9805
9872
|
${({ $isActive: e }) => e && jt`
|
|
9806
|
-
background-color: ${wl(
|
|
9873
|
+
background-color: ${wl(ae, 0.9)};
|
|
9807
9874
|
p {
|
|
9808
|
-
color: ${
|
|
9875
|
+
color: ${ae};
|
|
9809
9876
|
font-weight: bold;
|
|
9810
9877
|
}
|
|
9811
9878
|
`}
|
|
@@ -9829,7 +9896,7 @@ const jy = ({
|
|
|
9829
9896
|
}
|
|
9830
9897
|
&.DayPicker-Day--selected:not(.DayPicker-Day--before):not(.DayPicker-Day--after) {
|
|
9831
9898
|
${({ hasRange: e }) => e && jt`
|
|
9832
|
-
background-color: ${Ut(
|
|
9899
|
+
background-color: ${Ut(ae)};
|
|
9833
9900
|
border-radius: 0;
|
|
9834
9901
|
&:not(.DayPicker-Day--outside) {
|
|
9835
9902
|
color: ${xn};
|
|
@@ -9841,7 +9908,7 @@ const jy = ({
|
|
|
9841
9908
|
`}
|
|
9842
9909
|
}
|
|
9843
9910
|
&.DayPicker-Day--selected {
|
|
9844
|
-
background-color: ${
|
|
9911
|
+
background-color: ${ae};
|
|
9845
9912
|
color: ${Gt};
|
|
9846
9913
|
}
|
|
9847
9914
|
|
|
@@ -9852,7 +9919,7 @@ const jy = ({
|
|
|
9852
9919
|
::before {
|
|
9853
9920
|
content: "";
|
|
9854
9921
|
position: absolute;
|
|
9855
|
-
background-color: ${Ut(
|
|
9922
|
+
background-color: ${Ut(ae)};
|
|
9856
9923
|
width: 10px;
|
|
9857
9924
|
height: 35px;
|
|
9858
9925
|
top: 0;
|
|
@@ -9867,7 +9934,7 @@ const jy = ({
|
|
|
9867
9934
|
::before {
|
|
9868
9935
|
content: "";
|
|
9869
9936
|
position: absolute;
|
|
9870
|
-
background-color: ${Ut(
|
|
9937
|
+
background-color: ${Ut(ae)};
|
|
9871
9938
|
width: 10px;
|
|
9872
9939
|
height: 35px;
|
|
9873
9940
|
top: 0;
|
|
@@ -9877,7 +9944,7 @@ const jy = ({
|
|
|
9877
9944
|
`}
|
|
9878
9945
|
}
|
|
9879
9946
|
&.DayPicker-Day--today:not(.DayPicker-Day--selected) {
|
|
9880
|
-
color: ${
|
|
9947
|
+
color: ${ae};
|
|
9881
9948
|
}
|
|
9882
9949
|
|
|
9883
9950
|
&.DayPicker-Day--outside {
|
|
@@ -9911,12 +9978,12 @@ const jy = ({
|
|
|
9911
9978
|
:active {
|
|
9912
9979
|
outline: none;
|
|
9913
9980
|
box-shadow: none;
|
|
9914
|
-
border-color: ${
|
|
9981
|
+
border-color: ${ae};
|
|
9915
9982
|
}
|
|
9916
9983
|
|
|
9917
9984
|
:focus {
|
|
9918
9985
|
outline: none;
|
|
9919
|
-
border-color: ${
|
|
9986
|
+
border-color: ${ae};
|
|
9920
9987
|
}
|
|
9921
9988
|
}
|
|
9922
9989
|
|
|
@@ -10047,10 +10114,10 @@ function Io(e) {
|
|
|
10047
10114
|
}
|
|
10048
10115
|
var b0 = m0;
|
|
10049
10116
|
const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ label: e, value: t, onChange: r, inputMode: n }) => {
|
|
10050
|
-
const a = Wt(), [i, o] = se(t), [s, u] = se(t), [l, c] = se(n), [d, p] = se($r), [h, f] = se(), [m, g] = se(""), v =
|
|
10117
|
+
const a = Wt(), [i, o] = se(t), [s, u] = se(t), [l, c] = se(n), [d, p] = se($r), [h, f] = se(), [m, g] = se(""), v = q(
|
|
10051
10118
|
({ time: E, mode: J }) => {
|
|
10052
|
-
const z = parseInt(E[0]),
|
|
10053
|
-
if (isNaN(z) || isNaN(
|
|
10119
|
+
const z = parseInt(E[0]), ie = parseInt(E[1]);
|
|
10120
|
+
if (isNaN(z) || isNaN(ie))
|
|
10054
10121
|
return p("error"), f(a.formatMessage(ce.notNumber)), !1;
|
|
10055
10122
|
const oe = new RegExp(
|
|
10056
10123
|
J === "24h" ? "([0-1][0-9]{1}|[2][0-3]{1}):([0-5]{1}[0-9]{1})" : "([0][1-9]|[1][0-2]{1}):([0-5]{1}[0-9]{1})"
|
|
@@ -10058,22 +10125,22 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10058
10125
|
return oe.test(F) ? (p($r), !0) : (p("error"), f(a.formatMessage(ce.invalidTime)), !1);
|
|
10059
10126
|
},
|
|
10060
10127
|
[a]
|
|
10061
|
-
), y =
|
|
10128
|
+
), y = q(
|
|
10062
10129
|
({ date: E, time: J, mode: z }) => {
|
|
10063
10130
|
if (!J || !z || !v({ time: J, mode: z }) || !E)
|
|
10064
10131
|
return;
|
|
10065
|
-
const
|
|
10066
|
-
z === "am" &&
|
|
10132
|
+
const ie = parseInt(J[0]), oe = parseInt(J[1]), F = x(E);
|
|
10133
|
+
z === "am" && ie === 12 ? F.hour(0) : z === "pm" && ie === 12 ? F.hour(12) : z === "pm" ? F.hour(ie + 12) : F.hour(ie), F.minute(oe), r && r(F.toDate());
|
|
10067
10134
|
},
|
|
10068
10135
|
[r, v]
|
|
10069
|
-
), I =
|
|
10136
|
+
), I = q(
|
|
10070
10137
|
(E) => {
|
|
10071
10138
|
o(E), y({ date: E, time: s, mode: l });
|
|
10072
10139
|
},
|
|
10073
10140
|
[l, s, y]
|
|
10074
|
-
), M =
|
|
10141
|
+
), M = q((E) => {
|
|
10075
10142
|
(E.charCode < 48 || E.charCode > 58) && E.preventDefault();
|
|
10076
|
-
}, []), b =
|
|
10143
|
+
}, []), b = q(
|
|
10077
10144
|
(E) => {
|
|
10078
10145
|
if (E.length !== 2) {
|
|
10079
10146
|
p("error"), f(a.formatMessage(ce.wrongFormat));
|
|
@@ -10082,12 +10149,12 @@ const y0 = /* @__PURE__ */ Sa(b0), I0 = /^\d{4}$/g, $r = "default", sl = ({ labe
|
|
|
10082
10149
|
u(E), y({ date: i, time: E, mode: l });
|
|
10083
10150
|
},
|
|
10084
10151
|
[a, i, l, y]
|
|
10085
|
-
), D =
|
|
10152
|
+
), D = q(
|
|
10086
10153
|
({ value: E }) => {
|
|
10087
10154
|
c(E), y({ date: i, time: s, mode: E });
|
|
10088
10155
|
},
|
|
10089
10156
|
[i, s, y]
|
|
10090
|
-
), w = y0(b, 500), T =
|
|
10157
|
+
), w = y0(b, 500), T = q(
|
|
10091
10158
|
(E) => {
|
|
10092
10159
|
const J = E.target.value;
|
|
10093
10160
|
let z = J;
|
|
@@ -10144,7 +10211,7 @@ sl.defaultProps = {
|
|
|
10144
10211
|
label: void 0
|
|
10145
10212
|
};
|
|
10146
10213
|
const x0 = {
|
|
10147
|
-
border: `solid 1px ${Ml(
|
|
10214
|
+
border: `solid 1px ${Ml(ae)}`,
|
|
10148
10215
|
borderRadius: Nl
|
|
10149
10216
|
}, w0 = k.forwardRef(
|
|
10150
10217
|
({ results: e, focusedResultIndex: t, onResultClick: r }, n) => /* @__PURE__ */ k.createElement(D0, null, e.map((a, i) => /* @__PURE__ */ k.createElement(Cn, { key: a.text || i }, /* @__PURE__ */ k.createElement(
|
|
@@ -10165,7 +10232,7 @@ const x0 = {
|
|
|
10165
10232
|
list-style-type: none;
|
|
10166
10233
|
cursor: pointer;
|
|
10167
10234
|
&:hover {
|
|
10168
|
-
background: ${Ut(
|
|
10235
|
+
background: ${Ut(ae)};
|
|
10169
10236
|
}
|
|
10170
10237
|
`, k0 = ({ maxHeight: e, children: t }) => /* @__PURE__ */ React.createElement(S0, null, /* @__PURE__ */ React.createElement(E0, { maxHeight: e }, t)), S0 = A.div`
|
|
10171
10238
|
position: relative;
|
|
@@ -10297,7 +10364,7 @@ const x0 = {
|
|
|
10297
10364
|
}, [h]);
|
|
10298
10365
|
const z = (F) => {
|
|
10299
10366
|
D && (u || b || t || (F.key === "ArrowUp" ? (f(T()), F.preventDefault()) : F.key === "ArrowDown" ? (f(w()), F.preventDefault()) : F.key === "Enter" && h != null && (E(r[h]), F.preventDefault())));
|
|
10300
|
-
},
|
|
10367
|
+
}, ie = (F) => {
|
|
10301
10368
|
E(F);
|
|
10302
10369
|
};
|
|
10303
10370
|
Ze(() => {
|
|
@@ -10313,7 +10380,7 @@ const x0 = {
|
|
|
10313
10380
|
{
|
|
10314
10381
|
results: r,
|
|
10315
10382
|
focusedResultIndex: h,
|
|
10316
|
-
onResultClick:
|
|
10383
|
+
onResultClick: ie,
|
|
10317
10384
|
ref: M
|
|
10318
10385
|
}
|
|
10319
10386
|
) : /* @__PURE__ */ React.createElement(T0, { query: c.q });
|