@nypl/design-system-react-components 4.0.0-alpha-rc5 → 4.0.0-rc
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/design-system-react-components.cjs +38 -38
- package/dist/design-system-react-components.js +625 -649
- package/dist/src/components/Accordion/Accordion.d.ts +1 -1
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +4 -3
- package/dist/src/components/SearchBar/SearchBar.d.ts +2 -2
- package/dist/src/components/Text/Text.d.ts +1 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/theme/components/select.d.ts +7 -3
- package/package.json +1 -1
- package/dist/src/hooks/useCarouselStyles.d.ts +0 -17
- package/dist/src/hooks/useWindowSize.d.ts +0 -10
|
@@ -2,9 +2,9 @@ var zS = Object.defineProperty;
|
|
|
2
2
|
var US = (r, a, o) => a in r ? zS(r, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[a] = o;
|
|
3
3
|
var Qu = (r, a, o) => US(r, typeof a != "symbol" ? a + "" : a, o);
|
|
4
4
|
import { chakra as P1, useStyleConfig as te, Box as p1, defineStyleConfig as ie, useColorModeValue as W5, extendTheme as IS, ChakraProvider as $S, Icon as hb, Accordion as YS, AccordionPanel as Ry, AccordionItem as WS, AccordionButton as QS, useMultiStyleConfig as O2, Button as qS, Link as GS, Text as XS, Heading as KS, Flex as Uo, Tooltip as JS, Breadcrumb as ek, BreadcrumbItem as tk, BreadcrumbLink as nk, Stack as en, useMergeRefs as cc, LinkBox as rk, LinkOverlay as ak, Checkbox as ik, CheckboxGroup as ok, Thead as lk, Tr as Zy, Th as Oy, TableContainer as sk, Table as uk, TableCaption as ck, Tbody as dk, Td as Ck, HStack as fk, SimpleGrid as pk, Input as hk, Textarea as mk, useColorMode as vk, Radio as gk, RadioGroup as yk, useDisclosure as Ca, Drawer as Lk, DrawerOverlay as bk, DrawerContent as wk, DrawerHeader as xk, DrawerBody as Hk, VStack as Up, Modal as Ip, ModalOverlay as $p, ModalContent as Yp, ModalHeader as Wp, ModalCloseButton as Qp, ModalBody as qp, ModalFooter as Gp, Menu as Vk, MenuList as Mk, MenuButton as Ek, MenuDivider as Sk, MenuGroup as kk, MenuItem as Tk, CircularProgress as _k, CircularProgressLabel as Dk, Progress as Rk, Select as Zk, Skeleton as op, RangeSlider as Ok, RangeSliderTrack as Nk, RangeSliderFilledTrack as Bk, RangeSliderThumb as Ny, Slider as Pk, SliderTrack as Fk, SliderFilledTrack as jk, SliderThumb as Ak, Tabs as zk, Tab as Uk, TabPanel as By, TabPanels as mb, TabList as vb, Switch as Ik, useOutsideClick as $k, useMediaQuery as Yk, useTheme as Wk } from "@chakra-ui/react";
|
|
5
|
-
import { Box as
|
|
5
|
+
import { Box as m$, Center as v$, Circle as g$, ColorModeScript as y$, Flex as L$, FocusLock as b$, Grid as w$, GridItem as x$, HStack as H$, Spacer as V$, Square as M$, Stack as E$, Tab as S$, TabList as k$, TabPanel as T$, TabPanels as _$, VStack as D$, chakra as R$, cookieStorageManager as Z$, cookieStorageManagerSSR as O$, localStorageManager as N$, useColorMode as B$, useColorModeValue as P$, useMediaQuery as F$, useMultiStyleConfig as j$, useStyleConfig as A$ } from "@chakra-ui/react";
|
|
6
6
|
import * as d from "react";
|
|
7
|
-
import
|
|
7
|
+
import t1, { forwardRef as u2, useId as Qk, useState as xe, createRef as gb, useEffect as Y7, createContext as Mh, useContext as Eh, useRef as i5, useMemo as yb, createElement as qk, Component as Gk, useReducer as Xk } from "react";
|
|
8
8
|
import { defineStyle as L2, keyframes as Kk } from "@chakra-ui/system";
|
|
9
9
|
var qu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function Io(r) {
|
|
@@ -24,7 +24,7 @@ var Py;
|
|
|
24
24
|
function Jk() {
|
|
25
25
|
if (Py) return Lo;
|
|
26
26
|
Py = 1;
|
|
27
|
-
var r =
|
|
27
|
+
var r = t1, a = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
28
28
|
function C(v, y, L) {
|
|
29
29
|
var V, E = {}, k = null, _ = null;
|
|
30
30
|
L !== void 0 && (k = "" + L), y.key !== void 0 && (k = "" + y.key), y.ref !== void 0 && (_ = y.ref);
|
|
@@ -47,24 +47,24 @@ var bo = {};
|
|
|
47
47
|
var Fy;
|
|
48
48
|
function eT() {
|
|
49
49
|
return Fy || (Fy = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
var r =
|
|
50
|
+
var r = t1, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), v = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), R = Symbol.iterator, N = "@@iterator";
|
|
51
51
|
function Z(z) {
|
|
52
52
|
if (z === null || typeof z != "object")
|
|
53
53
|
return null;
|
|
54
54
|
var b1 = R && z[R] || z[N];
|
|
55
55
|
return typeof b1 == "function" ? b1 : null;
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
58
|
function P(z) {
|
|
59
59
|
{
|
|
60
60
|
for (var b1 = arguments.length, R1 = new Array(b1 > 1 ? b1 - 1 : 0), m2 = 1; m2 < b1; m2++)
|
|
61
61
|
R1[m2 - 1] = arguments[m2];
|
|
62
|
-
|
|
62
|
+
I("error", z, R1);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function I(z, b1, R1) {
|
|
66
66
|
{
|
|
67
|
-
var m2 =
|
|
67
|
+
var m2 = $.ReactDebugCurrentFrame, W2 = m2.getStackAddendum();
|
|
68
68
|
W2 !== "" && (b1 += "%s", R1 = R1.concat([W2]));
|
|
69
69
|
var E2 = R1.map(function(v2) {
|
|
70
70
|
return String(v2);
|
|
@@ -198,7 +198,7 @@ function eT() {
|
|
|
198
198
|
_1 < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
var H2 =
|
|
201
|
+
var H2 = $.ReactCurrentDispatcher, V2;
|
|
202
202
|
function o2(z, b1, R1) {
|
|
203
203
|
{
|
|
204
204
|
if (V2 === void 0)
|
|
@@ -324,7 +324,7 @@ function eT() {
|
|
|
324
324
|
}
|
|
325
325
|
return "";
|
|
326
326
|
}
|
|
327
|
-
var h3 = Object.prototype.hasOwnProperty, Z1 = {}, R2 =
|
|
327
|
+
var h3 = Object.prototype.hasOwnProperty, Z1 = {}, R2 = $.ReactDebugCurrentFrame;
|
|
328
328
|
function A3(z) {
|
|
329
329
|
if (z) {
|
|
330
330
|
var b1 = z._owner, R1 = P2(z.type, z._source, b1 ? b1.type : null);
|
|
@@ -375,7 +375,7 @@ function eT() {
|
|
|
375
375
|
if (Ze(z))
|
|
376
376
|
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", i3(z)), oe(z);
|
|
377
377
|
}
|
|
378
|
-
var b4 =
|
|
378
|
+
var b4 = $.ReactCurrentOwner, Ie = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
@@ -469,7 +469,7 @@ function eT() {
|
|
|
469
469
|
return D3(z, j2, Ve, W2, m2, b4.current, v2);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var R3 =
|
|
472
|
+
var R3 = $.ReactCurrentOwner, Z3 = $.ReactDebugCurrentFrame;
|
|
473
473
|
function x3(z) {
|
|
474
474
|
if (z) {
|
|
475
475
|
var b1 = z._owner, R1 = P2(z.type, z._source, b1 ? b1.type : null);
|
|
@@ -623,7 +623,7 @@ process.env.NODE_ENV === "production" ? Xp.exports = Jk() : Xp.exports = eT();
|
|
|
623
623
|
var x = Xp.exports, dc = { exports: {} };
|
|
624
624
|
dc.exports;
|
|
625
625
|
(function(r, a) {
|
|
626
|
-
var o = 200, s = "__lodash_hash_undefined__", i = 800, p = 16, C = 9007199254740991, v = "[object Arguments]", y = "[object Array]", L = "[object AsyncFunction]", V = "[object Boolean]", E = "[object Date]", k = "[object Error]", _ = "[object Function]", R = "[object GeneratorFunction]", N = "[object Map]", Z = "[object Number]",
|
|
626
|
+
var o = 200, s = "__lodash_hash_undefined__", i = 800, p = 16, C = 9007199254740991, v = "[object Arguments]", y = "[object Array]", L = "[object AsyncFunction]", V = "[object Boolean]", E = "[object Date]", k = "[object Error]", _ = "[object Function]", R = "[object GeneratorFunction]", N = "[object Map]", Z = "[object Number]", $ = "[object Null]", P = "[object Object]", I = "[object Proxy]", A = "[object RegExp]", K = "[object Set]", J = "[object String]", i1 = "[object Undefined]", d1 = "[object WeakMap]", c1 = "[object ArrayBuffer]", S1 = "[object DataView]", M1 = "[object Float32Array]", x1 = "[object Float64Array]", L1 = "[object Int8Array]", n2 = "[object Int16Array]", _1 = "[object Int32Array]", B1 = "[object Uint8Array]", G1 = "[object Uint8ClampedArray]", m1 = "[object Uint16Array]", k1 = "[object Uint32Array]", v1 = /[\\^$.*+?()[\]{}|]/g, Q1 = /^\[object .+?Constructor\]$/, q1 = /^(?:0|[1-9]\d*)$/, A1 = {};
|
|
627
627
|
A1[M1] = A1[x1] = A1[L1] = A1[n2] = A1[_1] = A1[B1] = A1[G1] = A1[m1] = A1[k1] = !0, A1[v] = A1[y] = A1[c1] = A1[V] = A1[S1] = A1[E] = A1[k] = A1[_] = A1[N] = A1[Z] = A1[P] = A1[A] = A1[K] = A1[J] = A1[d1] = !1;
|
|
628
628
|
var x2 = typeof qu == "object" && qu && qu.Object === Object && qu, n3 = typeof self == "object" && self && self.Object === Object && self, H2 = x2 || n3 || Function("return this")(), V2 = a && !a.nodeType && a, o2 = V2 && !0 && r && !r.nodeType && r, l2 = o2 && o2.exports === V2, D2 = l2 && x2.process, N2 = function() {
|
|
629
629
|
try {
|
|
@@ -839,7 +839,7 @@ dc.exports;
|
|
|
839
839
|
}
|
|
840
840
|
var Y2 = K7();
|
|
841
841
|
function V5(B) {
|
|
842
|
-
return B == null ? B === void 0 ? i1 :
|
|
842
|
+
return B == null ? B === void 0 ? i1 : $ : G3 && G3 in Object(B) ? Pt(B) : H3(B);
|
|
843
843
|
}
|
|
844
844
|
function x9(B) {
|
|
845
845
|
return J5(B) && V5(B) == v;
|
|
@@ -1052,7 +1052,7 @@ dc.exports;
|
|
|
1052
1052
|
if (!We(B))
|
|
1053
1053
|
return !1;
|
|
1054
1054
|
var G = V5(B);
|
|
1055
|
-
return G == _ || G == R || G == L || G ==
|
|
1055
|
+
return G == _ || G == R || G == L || G == I;
|
|
1056
1056
|
}
|
|
1057
1057
|
function M4(B) {
|
|
1058
1058
|
return typeof B == "number" && B > -1 && B % 1 == 0 && B <= C;
|
|
@@ -1325,7 +1325,7 @@ const Lb = /* @__PURE__ */ Io(tT), m7 = (r = !1) => ({
|
|
|
1325
1325
|
let v = {};
|
|
1326
1326
|
return r && (v["aria-label"] = `${s}, ${r}`), C || (typeof s != "string" && console.warn(
|
|
1327
1327
|
`NYPL Reservoir ${i}: \`labelText\` must be a string when \`showLabel\` is false.`
|
|
1328
|
-
), "aria-label" in v || (v["aria-label"] = s)), a && (v["aria-describedby"] = `${p ? p + " " : ""}${o}-
|
|
1328
|
+
), "aria-label" in v || (v["aria-label"] = s)), a && (v["aria-describedby"] = `${p ? p + " " : ""}${o}-helperErrorText`), v;
|
|
1329
1329
|
}, N1 = (r, a) => {
|
|
1330
1330
|
const o = r.length === 4, s = o ? r.slice(1, 2).repeat(2) : r.slice(1, 3), i = o ? r.slice(2, 3).repeat(2) : r.slice(3, 5), p = o ? r.slice(3, 4).repeat(2) : r.slice(5, 7), C = parseInt(s, 16), v = parseInt(i, 16), y = parseInt(p, 16), L = `${C}, ${v}, ${y}`;
|
|
1331
1331
|
return a ? `rgba(${L},${a})` : `rgb(${L})`;
|
|
@@ -2375,7 +2375,7 @@ function jT(r, a) {
|
|
|
2375
2375
|
const E = L.map((k) => {
|
|
2376
2376
|
if (PT.has(k))
|
|
2377
2377
|
return k;
|
|
2378
|
-
const _ = k.indexOf(" "), [R, N] = _ !== -1 ? [k.substr(0, _), k.substr(_ + 1)] : [k], Z = rh(N) ? N : N && N.split(" "),
|
|
2378
|
+
const _ = k.indexOf(" "), [R, N] = _ !== -1 ? [k.substr(0, _), k.substr(_ + 1)] : [k], Z = rh(N) ? N : N && N.split(" "), $ = `colors.${R}`, P = $ in a.__cssMap ? a.__cssMap[$].varRef : R;
|
|
2379
2379
|
return Z ? [
|
|
2380
2380
|
P,
|
|
2381
2381
|
...Array.isArray(Z) ? Z : [Z]
|
|
@@ -5603,7 +5603,7 @@ const { defineMultiStyleConfig: AD, definePartsStyle: zD } = z2([
|
|
|
5603
5603
|
fontSize: "desktop.caption",
|
|
5604
5604
|
justifyContent: "flex-end",
|
|
5605
5605
|
left: "15px",
|
|
5606
|
-
marginRight: "
|
|
5606
|
+
marginRight: "m",
|
|
5607
5607
|
position: "absolute",
|
|
5608
5608
|
top: { base: "12px", md: "10px" },
|
|
5609
5609
|
width: "46px",
|
|
@@ -5618,7 +5618,7 @@ const { defineMultiStyleConfig: AD, definePartsStyle: zD } = z2([
|
|
|
5618
5618
|
borderColor: r ? "ui.gray.xx-dark" : "ui.border.hover"
|
|
5619
5619
|
},
|
|
5620
5620
|
svg: {
|
|
5621
|
-
marginLeft: "
|
|
5621
|
+
marginLeft: "xs",
|
|
5622
5622
|
marginRight: "6px",
|
|
5623
5623
|
marginTop: "0"
|
|
5624
5624
|
},
|
|
@@ -6936,7 +6936,7 @@ const { defineMultiStyleConfig: AD, definePartsStyle: zD } = z2([
|
|
|
6936
6936
|
base: oc(r)
|
|
6937
6937
|
})
|
|
6938
6938
|
}
|
|
6939
|
-
}), { defineMultiStyleConfig: uZ, definePartsStyle: cL } = z2(["
|
|
6939
|
+
}), { defineMultiStyleConfig: uZ, definePartsStyle: cL } = z2(["inline", "select"]), cZ = (r) => ({
|
|
6940
6940
|
backgroundColor: "ui.white",
|
|
6941
6941
|
borderRadius: "sm",
|
|
6942
6942
|
borderColor: "ui.border.default",
|
|
@@ -6982,15 +6982,20 @@ const { defineMultiStyleConfig: AD, definePartsStyle: zD } = z2([
|
|
|
6982
6982
|
}
|
|
6983
6983
|
}
|
|
6984
6984
|
}), dZ = uZ({
|
|
6985
|
-
baseStyle: cL(
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6985
|
+
baseStyle: cL(
|
|
6986
|
+
({ labelPosition: r, labelWidth: a, showLabel: o }) => ({
|
|
6987
|
+
inline: {
|
|
6988
|
+
display: { md: "flex" },
|
|
6989
|
+
gap: { md: "xs" },
|
|
6990
|
+
alignItems: { md: "center" }
|
|
6991
|
+
},
|
|
6992
|
+
label: { marginBottom: "label.default" },
|
|
6993
|
+
select: cZ(r),
|
|
6994
|
+
"div[data-testid='ds-helperErrorText']": {
|
|
6995
|
+
marginLeft: !o && r === "inline" ? "0" : `${a}px`
|
|
6996
|
+
}
|
|
6997
|
+
})
|
|
6998
|
+
),
|
|
6994
6999
|
variants: {
|
|
6995
7000
|
searchbar: cL({
|
|
6996
7001
|
select: {
|
|
@@ -9412,7 +9417,7 @@ const {
|
|
|
9412
9417
|
utilitySearch: yL
|
|
9413
9418
|
}, S3 = P1(
|
|
9414
9419
|
u2((r, a) => {
|
|
9415
|
-
var Z
|
|
9420
|
+
var Z;
|
|
9416
9421
|
const {
|
|
9417
9422
|
align: o = "none",
|
|
9418
9423
|
children: s,
|
|
@@ -9448,10 +9453,10 @@ const {
|
|
|
9448
9453
|
"NYPL Reservoir Icon: Pass an icon `name` prop or an SVG child to ensure an icon appears."
|
|
9449
9454
|
), null;
|
|
9450
9455
|
if (y) {
|
|
9451
|
-
const
|
|
9452
|
-
return /* @__PURE__ */ x.jsx(hb, { as:
|
|
9456
|
+
const $ = sB[y];
|
|
9457
|
+
return /* @__PURE__ */ x.jsx(hb, { as: $, ref: a, ...R, __css: _ });
|
|
9453
9458
|
}
|
|
9454
|
-
return s.type === "svg" || ((Z = s.props) == null ? void 0 : Z.type) === "svg"
|
|
9459
|
+
return s.type === "svg" || ((Z = s.props) == null ? void 0 : Z.type) === "svg" ? N = t1.cloneElement(s, {
|
|
9455
9460
|
...R,
|
|
9456
9461
|
ref: a
|
|
9457
9462
|
}) : console.warn(
|
|
@@ -9518,16 +9523,16 @@ const uB = ({
|
|
|
9518
9523
|
borderBottom: R ? void 0 : "transparent",
|
|
9519
9524
|
children: k.panel
|
|
9520
9525
|
}
|
|
9521
|
-
),
|
|
9526
|
+
), $ = k.ariaLabel ? k.ariaLabel : a;
|
|
9522
9527
|
return k.ariaLabel && a && console.warn(
|
|
9523
9528
|
"NYPL Reservoir Accordion: An aria-label value has been passed for the overall component and as part of the accordionData prop. Both can not be used, so the value in the accordionData prop will take precedence."
|
|
9524
9529
|
), /* @__PURE__ */ x.jsx(WS, { id: `${o}-item-${_}`, children: ({ isExpanded: P }) => {
|
|
9525
|
-
const
|
|
9530
|
+
const I = !k.variant || k.variant === "default";
|
|
9526
9531
|
return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
9527
9532
|
/* @__PURE__ */ x.jsxs(
|
|
9528
9533
|
QS,
|
|
9529
9534
|
{
|
|
9530
|
-
"aria-label":
|
|
9535
|
+
"aria-label": $,
|
|
9531
9536
|
id: `${o}-button-${_}`,
|
|
9532
9537
|
padding: E,
|
|
9533
9538
|
ref: k.buttonInteractionRef,
|
|
@@ -9535,13 +9540,13 @@ const uB = ({
|
|
|
9535
9540
|
borderTopColor: _ !== 0 && _ === p + 1 ? "transparent" : void 0,
|
|
9536
9541
|
bg: v[k == null ? void 0 : k.variant] || v.default,
|
|
9537
9542
|
_hover: {
|
|
9538
|
-
bg:
|
|
9543
|
+
bg: I ? "transparent" : v[k.variant],
|
|
9539
9544
|
borderColor: "ui.gray.dark"
|
|
9540
9545
|
},
|
|
9541
9546
|
_expanded: {
|
|
9542
|
-
bg:
|
|
9547
|
+
bg: I ? "ui.gray.light-cool" : v[k.variant],
|
|
9543
9548
|
_hover: {
|
|
9544
|
-
bg:
|
|
9549
|
+
bg: I ? "ui.gray.light-cool" : v[k.variant]
|
|
9545
9550
|
}
|
|
9546
9551
|
},
|
|
9547
9552
|
_dark: {
|
|
@@ -9551,7 +9556,7 @@ const uB = ({
|
|
|
9551
9556
|
bg: "dark.ui.bg.default",
|
|
9552
9557
|
color: "dark.ui.typography.heading",
|
|
9553
9558
|
borderStart: "4px solid",
|
|
9554
|
-
borderStartColor:
|
|
9559
|
+
borderStartColor: I ? "dark.ui.border.hover" : y[k.variant],
|
|
9555
9560
|
borderBottomColor: R || P ? "dark.ui.border.default" : "transparent",
|
|
9556
9561
|
_hover: {
|
|
9557
9562
|
borderColor: "dark.ui.border.hover"
|
|
@@ -9599,16 +9604,16 @@ const uB = ({
|
|
|
9599
9604
|
...L
|
|
9600
9605
|
} = r, V = me(i), [E, k] = xe(
|
|
9601
9606
|
p ? [0] : []
|
|
9602
|
-
), [_, R] = xe(-1), N = o.map((
|
|
9603
|
-
|
|
9604
|
-
buttonInteractionRef:
|
|
9605
|
-
})), Z = (
|
|
9606
|
-
if (
|
|
9607
|
+
), [_, R] = xe(-1), N = o.map(($) => ({
|
|
9608
|
+
...$,
|
|
9609
|
+
buttonInteractionRef: $.buttonInteractionRef || gb()
|
|
9610
|
+
})), Z = ($) => {
|
|
9611
|
+
if ($.code === "Escape") {
|
|
9607
9612
|
let P;
|
|
9608
|
-
|
|
9609
|
-
|
|
9613
|
+
$.target.dataset.index ? P = Number($.target.dataset.index) : P = Number(
|
|
9614
|
+
$.target.closest("[role='region']").id.split("-").pop()
|
|
9610
9615
|
), k(
|
|
9611
|
-
E.filter((
|
|
9616
|
+
E.filter((I) => I !== P)
|
|
9612
9617
|
), N[P].buttonInteractionRef && N[P].buttonInteractionRef.current.focus();
|
|
9613
9618
|
}
|
|
9614
9619
|
};
|
|
@@ -9620,7 +9625,7 @@ const uB = ({
|
|
|
9620
9625
|
allowMultiple: !0,
|
|
9621
9626
|
"data-testid": "ds-accordion",
|
|
9622
9627
|
index: E,
|
|
9623
|
-
onChange: (
|
|
9628
|
+
onChange: ($) => k($),
|
|
9624
9629
|
onKeyDown: Z,
|
|
9625
9630
|
id: V,
|
|
9626
9631
|
ref: a,
|
|
@@ -9759,21 +9764,21 @@ const y9 = P1(
|
|
|
9759
9764
|
target: E === "external" ? "_blank" : V || null,
|
|
9760
9765
|
...k
|
|
9761
9766
|
};
|
|
9762
|
-
let
|
|
9763
|
-
E === "action" || E === "backwards" || E === "external" || E === "forwards" || E === "standalone" ?
|
|
9767
|
+
let $ = "link";
|
|
9768
|
+
E === "action" || E === "backwards" || E === "external" || E === "forwards" || E === "standalone" ? $ = "moreLink" : E.includes("button") && ($ = E);
|
|
9764
9769
|
const P = O2("Link", {
|
|
9765
9770
|
finalIsUnderlined: _,
|
|
9766
9771
|
hasVisitedState: i,
|
|
9767
|
-
variant:
|
|
9768
|
-
}),
|
|
9772
|
+
variant: $
|
|
9773
|
+
}), I = C || oT(`link-${s}`), A = (E === "forwards" || E === "backwards") && fB({
|
|
9769
9774
|
children: s,
|
|
9770
|
-
id:
|
|
9775
|
+
id: I,
|
|
9771
9776
|
variant: E
|
|
9772
9777
|
}) || E === "external" && pB({
|
|
9773
9778
|
children: s,
|
|
9774
|
-
id:
|
|
9779
|
+
id: I,
|
|
9775
9780
|
styles: P.screenreaderOnly
|
|
9776
|
-
}) || E === "standalone" && hB(s,
|
|
9781
|
+
}) || E === "standalone" && hB(s, I) || s, K = L ? /* @__PURE__ */ x.jsx(p1, { as: "span", __css: P.screenreaderOnly, children: L }) : null;
|
|
9777
9782
|
return /* @__PURE__ */ x.jsxs(
|
|
9778
9783
|
GS,
|
|
9779
9784
|
{
|
|
@@ -9873,7 +9878,7 @@ const y9 = P1(
|
|
|
9873
9878
|
isUppercase: i,
|
|
9874
9879
|
isLowercase: p,
|
|
9875
9880
|
url: E
|
|
9876
|
-
}),
|
|
9881
|
+
}), $ = R;
|
|
9877
9882
|
!r.children && !V && console.warn(
|
|
9878
9883
|
"NYPL Reservoir Heading: No children or value was passed to the `text` prop."
|
|
9879
9884
|
);
|
|
@@ -9881,7 +9886,7 @@ const y9 = P1(
|
|
|
9881
9886
|
s && P++, i && P++, p && P++, P > 1 && console.warn(
|
|
9882
9887
|
"NYPL Reservoir Heading: Multiple text case props have been passed and the component will not render properly."
|
|
9883
9888
|
);
|
|
9884
|
-
const
|
|
9889
|
+
const I = r.children ? r.children : V, A = E ? /* @__PURE__ */ x.jsx(y9, { className: k, href: E, children: I }) : I, K = [
|
|
9885
9890
|
"display1",
|
|
9886
9891
|
"heading1",
|
|
9887
9892
|
"heading2",
|
|
@@ -9904,7 +9909,7 @@ const y9 = P1(
|
|
|
9904
9909
|
/* @__PURE__ */ x.jsx(
|
|
9905
9910
|
KS,
|
|
9906
9911
|
{
|
|
9907
|
-
as:
|
|
9912
|
+
as: $,
|
|
9908
9913
|
"data-testid": "ds-heading",
|
|
9909
9914
|
id: o,
|
|
9910
9915
|
ref: a,
|
|
@@ -9947,7 +9952,7 @@ function G0({
|
|
|
9947
9952
|
}) {
|
|
9948
9953
|
const p = a ? `${a}-heading` : void 0;
|
|
9949
9954
|
let C = null;
|
|
9950
|
-
return r ? typeof r == "string" ? C = /* @__PURE__ */ x.jsx(L9, { size: i, id: p, __css: s, children: r }) : typeof r == "object" && (r.type === L9 ? C = s ?
|
|
9955
|
+
return r ? typeof r == "string" ? C = /* @__PURE__ */ x.jsx(L9, { size: i, id: p, __css: s, children: r }) : typeof r == "object" && (r.type === L9 ? C = s ? t1.cloneElement(r, { __css: s }) : r : vB.includes(r.type) ? (C = r, console.warn(
|
|
9951
9956
|
"NYPL Reservoir useDSHeading: An HTML heading element was passed for the `title` or `headingText` prop in a Reservoir component. The heading will render without DS-specific styling."
|
|
9952
9957
|
)) : console.warn(
|
|
9953
9958
|
"NYPL Reservoir useDSHeading: An unsupported heading element was passed to the `title` or `headingText` prop in a Reservoir component, so that component's title will not be rendered. Instead, a DS `Heading` component or an HTML heading element should be passed."
|
|
@@ -9991,7 +9996,7 @@ const aa = P1(
|
|
|
9991
9996
|
isInvalid: L = !1,
|
|
9992
9997
|
showHelperInvalidText: V = !0,
|
|
9993
9998
|
...E
|
|
9994
|
-
} = r, k = v ? `${v}-componentWrapper` : void 0, _ = v ? `${v}-helperErrorText` : void 0, N = O2("ComponentWrapper", { hasChildren: !!o }), Z = L ? y : p,
|
|
9999
|
+
} = r, k = v ? `${v}-componentWrapper` : void 0, _ = v ? `${v}-helperErrorText` : void 0, N = O2("ComponentWrapper", { hasChildren: !!o }), Z = L ? y : p, $ = G0({
|
|
9995
10000
|
id: v,
|
|
9996
10001
|
title: i,
|
|
9997
10002
|
additionalStyles: {
|
|
@@ -10007,7 +10012,7 @@ const aa = P1(
|
|
|
10007
10012
|
__css: N,
|
|
10008
10013
|
...E,
|
|
10009
10014
|
children: [
|
|
10010
|
-
|
|
10015
|
+
$,
|
|
10011
10016
|
s && /* @__PURE__ */ x.jsx(P4, { mb: "paragraph.default", children: s }),
|
|
10012
10017
|
o,
|
|
10013
10018
|
Z && /* @__PURE__ */ x.jsx(
|
|
@@ -10066,16 +10071,16 @@ const aa = P1(
|
|
|
10066
10071
|
{ text: "Z", value: "z" },
|
|
10067
10072
|
{ text: "Show All", value: "showAll" }
|
|
10068
10073
|
], k = i5(s), [_, R] = xe(s);
|
|
10069
|
-
|
|
10074
|
+
t1.useEffect(() => {
|
|
10070
10075
|
s && s !== k.current && (R(s), k.current = s);
|
|
10071
10076
|
}, [s, y]);
|
|
10072
|
-
const N = (
|
|
10073
|
-
|
|
10077
|
+
const N = (I, A) => {
|
|
10078
|
+
I.preventDefault && I.preventDefault(), _ !== A && (R(A), y && y(A));
|
|
10074
10079
|
}, Z = W5(
|
|
10075
10080
|
"ui.gray.dark",
|
|
10076
10081
|
"ui.gray.medium"
|
|
10077
|
-
),
|
|
10078
|
-
const A = _ ===
|
|
10082
|
+
), $ = (I) => {
|
|
10083
|
+
const A = _ === I.value && I.value !== "showAll", K = I.value === "showAll", J = v || o && !o.includes(I.value) && !K, i1 = A ? {
|
|
10079
10084
|
...V.button,
|
|
10080
10085
|
border: "1px solid",
|
|
10081
10086
|
borderColor: Z
|
|
@@ -10088,19 +10093,19 @@ const aa = P1(
|
|
|
10088
10093
|
j3,
|
|
10089
10094
|
{
|
|
10090
10095
|
"aria-current": A ? "page" : null,
|
|
10091
|
-
"aria-label":
|
|
10096
|
+
"aria-label": I.text === "Show All" ? I.text : "Page " + I.text,
|
|
10092
10097
|
variant: "text",
|
|
10093
|
-
id: `filter-${
|
|
10098
|
+
id: `filter-${I.value}`,
|
|
10094
10099
|
isDisabled: J,
|
|
10095
10100
|
sx: i1,
|
|
10096
10101
|
onClick: (d1) => {
|
|
10097
|
-
N(d1,
|
|
10102
|
+
N(d1, I.value);
|
|
10098
10103
|
},
|
|
10099
|
-
children:
|
|
10104
|
+
children: I.text
|
|
10100
10105
|
},
|
|
10101
|
-
|
|
10106
|
+
I.value
|
|
10102
10107
|
);
|
|
10103
|
-
}, P = () => E.map((
|
|
10108
|
+
}, P = () => E.map((I) => $(I));
|
|
10104
10109
|
return /* @__PURE__ */ x.jsx(
|
|
10105
10110
|
p1,
|
|
10106
10111
|
{
|
|
@@ -10139,21 +10144,21 @@ const aa = P1(
|
|
|
10139
10144
|
void 0
|
|
10140
10145
|
);
|
|
10141
10146
|
Y7(() => {
|
|
10142
|
-
const
|
|
10143
|
-
let A = !i ||
|
|
10144
|
-
|
|
10147
|
+
const I = yB(i);
|
|
10148
|
+
let A = !i || !I || !N(o, I);
|
|
10149
|
+
I && !I.title && (I.title = y || "Embedded audio player"), !!gB.find(
|
|
10145
10150
|
(i1) => i1 === o
|
|
10146
10151
|
) && !i && (console.warn(
|
|
10147
10152
|
"NYPL Reservoir AudioPlayer: The `embedCode` prop is required when using a 3rd party streaming service."
|
|
10148
|
-
), A = !0), E(A), _(
|
|
10153
|
+
), A = !0), E(A), _(I);
|
|
10149
10154
|
}, [i, o, y]);
|
|
10150
10155
|
const R = "<strong>Error: </strong>This audio player has not been configured properly. Please contact the site administrator.";
|
|
10151
|
-
function N(
|
|
10156
|
+
function N(I, A) {
|
|
10152
10157
|
var K;
|
|
10153
|
-
return
|
|
10158
|
+
return I !== "file" && ((K = A == null ? void 0 : A.src) == null ? void 0 : K.includes(`${I}.com`));
|
|
10154
10159
|
}
|
|
10155
10160
|
const Z = O2("AudioPlayer", {});
|
|
10156
|
-
function
|
|
10161
|
+
function $() {
|
|
10157
10162
|
return k ? /* @__PURE__ */ x.jsx(
|
|
10158
10163
|
p1,
|
|
10159
10164
|
{
|
|
@@ -10163,7 +10168,7 @@ const aa = P1(
|
|
|
10163
10168
|
}
|
|
10164
10169
|
) : null;
|
|
10165
10170
|
}
|
|
10166
|
-
const P =
|
|
10171
|
+
const P = $();
|
|
10167
10172
|
return /* @__PURE__ */ x.jsxs(
|
|
10168
10173
|
G7,
|
|
10169
10174
|
{
|
|
@@ -10257,14 +10262,14 @@ const LB = {
|
|
|
10257
10262
|
// If `backgroundColor` and `highlightColor` are set, then it
|
|
10258
10263
|
// overrides the Banner variant.
|
|
10259
10264
|
variant: N ? void 0 : L
|
|
10260
|
-
}),
|
|
10265
|
+
}), $ = {
|
|
10261
10266
|
size: "heading6",
|
|
10262
10267
|
color: L === "negative" ? "ui.error.primary" : null,
|
|
10263
10268
|
_dark: {
|
|
10264
10269
|
color: L === "negative" ? "dark.ui.error.primary" : null
|
|
10265
10270
|
},
|
|
10266
10271
|
paddingBottom: "xs"
|
|
10267
|
-
}, P = i ? typeof i == "string" ? /* @__PURE__ */ x.jsx(L9, { level: "h2", text: i,
|
|
10272
|
+
}, P = i ? typeof i == "string" ? /* @__PURE__ */ x.jsx(L9, { level: "h2", text: i, ...$ }) : t1.cloneElement(i, $) : null, I = /* @__PURE__ */ x.jsx(
|
|
10268
10273
|
j3,
|
|
10269
10274
|
{
|
|
10270
10275
|
"aria-label": "Close the banner",
|
|
@@ -10312,7 +10317,7 @@ const LB = {
|
|
|
10312
10317
|
i && P,
|
|
10313
10318
|
typeof s == "string" ? /* @__PURE__ */ x.jsx(p1, { dangerouslySetInnerHTML: { __html: s } }) : /* @__PURE__ */ x.jsx(x.Fragment, { children: s })
|
|
10314
10319
|
] }),
|
|
10315
|
-
y &&
|
|
10320
|
+
y && I
|
|
10316
10321
|
]
|
|
10317
10322
|
}
|
|
10318
10323
|
)) : null;
|
|
@@ -10409,27 +10414,27 @@ const LB = {
|
|
|
10409
10414
|
u2((r, a) => {
|
|
10410
10415
|
const {
|
|
10411
10416
|
breadcrumbsData: o,
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10417
|
+
customLinkComponent: s,
|
|
10418
|
+
id: i,
|
|
10419
|
+
variant: p = "whatsOn",
|
|
10415
10420
|
...C
|
|
10416
10421
|
} = r;
|
|
10417
10422
|
(!o || o.length === 0) && console.warn(
|
|
10418
10423
|
"NYPL Reservoir Breadcrumbs: No data was passed to the `breadcrumbsData` prop."
|
|
10419
10424
|
);
|
|
10420
10425
|
const v = te("ReservoirBreadcrumb", {
|
|
10421
|
-
variant:
|
|
10426
|
+
variant: p
|
|
10422
10427
|
}), y = wB({
|
|
10423
10428
|
data: o,
|
|
10424
|
-
customLinkComponent:
|
|
10425
|
-
id:
|
|
10429
|
+
customLinkComponent: s,
|
|
10430
|
+
id: i
|
|
10426
10431
|
});
|
|
10427
10432
|
return /* @__PURE__ */ x.jsx(
|
|
10428
10433
|
ek,
|
|
10429
10434
|
{
|
|
10430
10435
|
"aria-label": "Breadcrumb",
|
|
10431
10436
|
"data-testid": "ds-breadcrumbs",
|
|
10432
|
-
id:
|
|
10437
|
+
id: i,
|
|
10433
10438
|
ref: a,
|
|
10434
10439
|
__css: v,
|
|
10435
10440
|
...C,
|
|
@@ -10529,9 +10534,9 @@ function kB(r) {
|
|
|
10529
10534
|
inView: !!L
|
|
10530
10535
|
}), N = R[0], Z = R[1];
|
|
10531
10536
|
_.current = E;
|
|
10532
|
-
var
|
|
10533
|
-
function(
|
|
10534
|
-
k.current !== void 0 && (k.current(), k.current = void 0), !y &&
|
|
10537
|
+
var $ = d.useCallback(
|
|
10538
|
+
function(I) {
|
|
10539
|
+
k.current !== void 0 && (k.current(), k.current = void 0), !y && I && (k.current = SB(I, function(A, K) {
|
|
10535
10540
|
Z({
|
|
10536
10541
|
inView: A,
|
|
10537
10542
|
entry: K
|
|
@@ -10566,7 +10571,7 @@ function kB(r) {
|
|
|
10566
10571
|
inView: !!L
|
|
10567
10572
|
});
|
|
10568
10573
|
});
|
|
10569
|
-
var P = [
|
|
10574
|
+
var P = [$, N.inView, N.entry];
|
|
10570
10575
|
return P.ref = P[0], P.inView = P[1], P.entry = P[2], P;
|
|
10571
10576
|
}
|
|
10572
10577
|
const TB = P1(
|
|
@@ -10615,11 +10620,11 @@ const TB = P1(
|
|
|
10615
10620
|
onError: R,
|
|
10616
10621
|
size: N = "default",
|
|
10617
10622
|
sizeBasedOn: Z = "width",
|
|
10618
|
-
src:
|
|
10623
|
+
src: $,
|
|
10619
10624
|
...P
|
|
10620
|
-
} = r,
|
|
10625
|
+
} = r, I = xB(), [A, K] = kB({
|
|
10621
10626
|
triggerOnce: !0,
|
|
10622
|
-
skip:
|
|
10627
|
+
skip: I
|
|
10623
10628
|
}), J = C !== "original", i1 = O2("ReservoirImage", {
|
|
10624
10629
|
variant: k,
|
|
10625
10630
|
ratio: C,
|
|
@@ -10630,10 +10635,10 @@ const TB = P1(
|
|
|
10630
10635
|
"NYPL Reservoir Image: The initial image failed to load in the browser. The fallback image source will now be used."
|
|
10631
10636
|
), n2.target.src = V, R && R(n2);
|
|
10632
10637
|
};
|
|
10633
|
-
let c1 = null, S1, M1, x1 = _ ? {} : { src:
|
|
10638
|
+
let c1 = null, S1, M1, x1 = _ ? {} : { src: $ };
|
|
10634
10639
|
p && p.length > 300 && console.warn(
|
|
10635
10640
|
"NYPL Reservoir Image: Alt text must be less than 300 characters."
|
|
10636
|
-
), _ && (K ||
|
|
10641
|
+
), _ && (K || I) && (S1 = A, x1 = { src: $ }), M1 = cc(S1, a), c1 = y || /* @__PURE__ */ x.jsx(
|
|
10637
10642
|
p1,
|
|
10638
10643
|
{
|
|
10639
10644
|
as: "img",
|
|
@@ -10793,7 +10798,7 @@ const wI = P1(
|
|
|
10793
10798
|
layout: V = "column",
|
|
10794
10799
|
mainActionLink: E,
|
|
10795
10800
|
...k
|
|
10796
|
-
} = r, _ = me(p), R = C.src || C.component, N = C.component ? "original" : C.aspectRatio, Z = {},
|
|
10801
|
+
} = r, _ = me(p), R = C.src || C.component, N = C.component ? "original" : C.aspectRatio, Z = {}, $ = [], P = [], I = t1.Children.toArray(s);
|
|
10797
10802
|
let A = 0;
|
|
10798
10803
|
C.component && C.aspectRatio && console.warn(
|
|
10799
10804
|
"NYPL Reservoir Card: Both the `imageProps.component` and `imageProps.aspectRatio` props were set but `imageProps.aspectRatio` will be ignored in favor of the aspect ratio on `imageProps.component` prop."
|
|
@@ -10808,23 +10813,23 @@ const wI = P1(
|
|
|
10808
10813
|
mainActionLink: E,
|
|
10809
10814
|
imageSize: C.size
|
|
10810
10815
|
});
|
|
10811
|
-
return
|
|
10812
|
-
const d1 = J.type === ZB
|
|
10813
|
-
if (J.type === DB
|
|
10814
|
-
const M1 = A === 0 ? /* @__PURE__ */ x.jsx(NB, { mainActionLink: E, children: J.props.children }) : J.props.children, x1 =
|
|
10816
|
+
return I.forEach((J, i1) => {
|
|
10817
|
+
const d1 = J.type === ZB, c1 = J.type === RB;
|
|
10818
|
+
if (J.type === DB) {
|
|
10819
|
+
const M1 = A === 0 ? /* @__PURE__ */ x.jsx(NB, { mainActionLink: E, children: J.props.children }) : J.props.children, x1 = t1.cloneElement(J, {
|
|
10815
10820
|
key: i1,
|
|
10816
10821
|
// Override the child text with the potential `CardLinkOverlay`.
|
|
10817
10822
|
children: M1,
|
|
10818
10823
|
layout: V,
|
|
10819
10824
|
__css: K.heading
|
|
10820
10825
|
});
|
|
10821
|
-
|
|
10826
|
+
$.push(x1), A++;
|
|
10822
10827
|
} else if (c1) {
|
|
10823
|
-
const M1 =
|
|
10824
|
-
|
|
10828
|
+
const M1 = t1.cloneElement(J, { key: i1 });
|
|
10829
|
+
$.push(M1);
|
|
10825
10830
|
} else if (d1) {
|
|
10826
|
-
const M1 =
|
|
10827
|
-
v && V === "row" ? P.push(M1) :
|
|
10831
|
+
const M1 = t1.cloneElement(J, { key: i1, isCentered: L, layout: V });
|
|
10832
|
+
v && V === "row" ? P.push(M1) : $.push(M1);
|
|
10828
10833
|
}
|
|
10829
10834
|
}), /* @__PURE__ */ x.jsx(
|
|
10830
10835
|
p1,
|
|
@@ -10862,7 +10867,7 @@ const wI = P1(
|
|
|
10862
10867
|
src: C.src ? C.src : void 0
|
|
10863
10868
|
}
|
|
10864
10869
|
),
|
|
10865
|
-
/* @__PURE__ */ x.jsx(p1, { __css: K.body, "data-body": !0, children:
|
|
10870
|
+
/* @__PURE__ */ x.jsx(p1, { __css: K.body, "data-body": !0, children: $ }),
|
|
10866
10871
|
P.length ? /* @__PURE__ */ x.jsx(p1, { __css: { ...K.body, ...K.actions }, "data-actions": !0, children: P }) : null
|
|
10867
10872
|
]
|
|
10868
10873
|
}
|
|
@@ -10894,9 +10899,9 @@ const Ep = P1(
|
|
|
10894
10899
|
showLabel: R = !0,
|
|
10895
10900
|
value: N,
|
|
10896
10901
|
...Z
|
|
10897
|
-
} = r,
|
|
10902
|
+
} = r, $ = me(s), P = O2("Checkbox", {}), I = BB(), A = y ? i : o, K = v ? void 0 : /* @__PURE__ */ x.jsx(PB, {}), J = $o({
|
|
10898
10903
|
footnote: A,
|
|
10899
|
-
id:
|
|
10904
|
+
id: $,
|
|
10900
10905
|
labelText: V,
|
|
10901
10906
|
name: "Checkbox",
|
|
10902
10907
|
showLabel: R
|
|
@@ -10907,7 +10912,7 @@ const Ep = P1(
|
|
|
10907
10912
|
"data-testid": "ds-checkbox",
|
|
10908
10913
|
helperText: o,
|
|
10909
10914
|
helperTextStyles: P.helperErrorText,
|
|
10910
|
-
id:
|
|
10915
|
+
id: $,
|
|
10911
10916
|
invalidText: i,
|
|
10912
10917
|
isInvalid: y,
|
|
10913
10918
|
showHelperInvalidText: _,
|
|
@@ -10916,12 +10921,12 @@ const Ep = P1(
|
|
|
10916
10921
|
ik,
|
|
10917
10922
|
{
|
|
10918
10923
|
icon: K,
|
|
10919
|
-
id:
|
|
10920
|
-
isDisabled: (
|
|
10924
|
+
id: $,
|
|
10925
|
+
isDisabled: (I == null ? void 0 : I.isDisabled) || C,
|
|
10921
10926
|
isIndeterminate: v,
|
|
10922
|
-
isInvalid: (
|
|
10923
|
-
isRequired: (
|
|
10924
|
-
name: (
|
|
10927
|
+
isInvalid: (I == null ? void 0 : I.isInvalid) || y,
|
|
10928
|
+
isRequired: (I == null ? void 0 : I.isRequired) || L,
|
|
10929
|
+
name: (I == null ? void 0 : I.name) || E,
|
|
10925
10930
|
ref: a,
|
|
10926
10931
|
value: N,
|
|
10927
10932
|
...p !== void 0 ? {
|
|
@@ -10989,9 +10994,9 @@ const Ep = P1(
|
|
|
10989
10994
|
onChange: R,
|
|
10990
10995
|
showHelperInvalidText: N = !0,
|
|
10991
10996
|
showLabel: Z = !0,
|
|
10992
|
-
showRequiredLabel:
|
|
10997
|
+
showRequiredLabel: $ = !0,
|
|
10993
10998
|
value: P,
|
|
10994
|
-
|
|
10999
|
+
...I
|
|
10995
11000
|
} = r, A = me(p), K = L ? C : i, J = k === "column" ? No.input.group.default.vstack : No.input.group.default.hstack, i1 = s && R ? {
|
|
10996
11001
|
defaultValue: s,
|
|
10997
11002
|
onChange: R
|
|
@@ -11014,8 +11019,8 @@ const Ep = P1(
|
|
|
11014
11019
|
isLegendHidden: !Z,
|
|
11015
11020
|
isRequired: V,
|
|
11016
11021
|
legendText: E,
|
|
11017
|
-
showRequiredLabel:
|
|
11018
|
-
|
|
11022
|
+
showRequiredLabel: $,
|
|
11023
|
+
...I,
|
|
11019
11024
|
__css: c1,
|
|
11020
11025
|
children: [
|
|
11021
11026
|
/* @__PURE__ */ x.jsx(ok, { ...i1, children: /* @__PURE__ */ x.jsx(
|
|
@@ -11073,7 +11078,7 @@ const Ep = P1(
|
|
|
11073
11078
|
isScrollable: v,
|
|
11074
11079
|
showRowDividers: y,
|
|
11075
11080
|
useRowHeaders: k
|
|
11076
|
-
}),
|
|
11081
|
+
}), $ = E && /* @__PURE__ */ x.jsx(ck, { children: E }), P = o.length > 0 ? /* @__PURE__ */ x.jsx(lk, { children: /* @__PURE__ */ x.jsx(Zy, { children: o.map((K, J) => /* @__PURE__ */ x.jsx(
|
|
11077
11082
|
Oy,
|
|
11078
11083
|
{
|
|
11079
11084
|
scope: "col",
|
|
@@ -11083,7 +11088,7 @@ const Ep = P1(
|
|
|
11083
11088
|
J
|
|
11084
11089
|
)) }) }) : console.warn(
|
|
11085
11090
|
"NYPL Reservoir Table: Column headers have not been set. For improved accessibility, column headers are required."
|
|
11086
|
-
),
|
|
11091
|
+
), I = () => {
|
|
11087
11092
|
if (!Array.isArray(V) || V.length <= 0 || V[0].constructor !== Array)
|
|
11088
11093
|
return console.warn(
|
|
11089
11094
|
"NYPL Reservoir Table: Data in the `tableData` prop must be a two dimensional array."
|
|
@@ -11157,9 +11162,9 @@ const Ep = P1(
|
|
|
11157
11162
|
sx: Z.innerTable,
|
|
11158
11163
|
..._,
|
|
11159
11164
|
children: /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
11160
|
-
L &&
|
|
11165
|
+
L && $,
|
|
11161
11166
|
P,
|
|
11162
|
-
|
|
11167
|
+
I()
|
|
11163
11168
|
] })
|
|
11164
11169
|
}
|
|
11165
11170
|
)
|
|
@@ -11210,7 +11215,7 @@ const Ep = P1(
|
|
|
11210
11215
|
), _ = (q1, A1 = "small") => {
|
|
11211
11216
|
const x2 = A1 === "small" ? 1 : 2;
|
|
11212
11217
|
return (q1[x2] === "AA" || q1[x2] === "AAA") && /* @__PURE__ */ x.jsx(k, {});
|
|
11213
|
-
}, R = ["Color", "Ratio", "16px", "36px"], N = _(y), Z = _(y, "large"),
|
|
11218
|
+
}, R = ["Color", "Ratio", "16px", "36px"], N = _(y), Z = _(y, "large"), $ = _(p), P = _(p, "large"), I = L && _(L), A = L && _(L, "large"), K = V && _(V), J = V && _(V, "large"), i1 = a && _(a), d1 = a && _(a, "large"), c1 = o && _(o), S1 = o && _(o, "large"), M1 = s && _(s), x1 = s && _(s, "large"), L1 = i && _(i), n2 = i && _(i, "large"), _1 = C && _(C), B1 = C && _(C, "large"), G1 = v && _(v), m1 = v && _(v, "large"), k1 = [
|
|
11214
11219
|
[
|
|
11215
11220
|
/* @__PURE__ */ x.jsxs("span", { style: { padding: 0 }, children: [
|
|
11216
11221
|
/* @__PURE__ */ x.jsx(m8, { backgroundColor: "white", border: !0 }),
|
|
@@ -11234,7 +11239,7 @@ const Ep = P1(
|
|
|
11234
11239
|
/* @__PURE__ */ x.jsx("span", { children: `${p[0]}:1` }, "colorUiBlackRatio"),
|
|
11235
11240
|
/* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
11236
11241
|
p[1],
|
|
11237
|
-
|
|
11242
|
+
$
|
|
11238
11243
|
] }),
|
|
11239
11244
|
/* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
11240
11245
|
p[2],
|
|
@@ -11286,7 +11291,7 @@ const Ep = P1(
|
|
|
11286
11291
|
/* @__PURE__ */ x.jsx("span", { children: `${L[0]}:1` }, "colorBrandPrimaryPageRatio"),
|
|
11287
11292
|
/* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
11288
11293
|
L[1],
|
|
11289
|
-
|
|
11294
|
+
I
|
|
11290
11295
|
] }),
|
|
11291
11296
|
/* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
11292
11297
|
L[2],
|
|
@@ -11425,7 +11430,7 @@ const Ep = P1(
|
|
|
11425
11430
|
notes: R,
|
|
11426
11431
|
showColorDataTable: N = !0,
|
|
11427
11432
|
textColor: Z = "ui.white"
|
|
11428
|
-
} = r,
|
|
11433
|
+
} = r, $ = `--nypl-colors-${C.replace(/\./g, "-")}`, P = a === "ui.white" || a === "ui.typography.inverse.heading" || a === "ui.typography.inverse.body" ? "1px solid var(--nypl-colors-ui-gray-light-cool)" : void 0;
|
|
11429
11434
|
return /* @__PURE__ */ x.jsx(
|
|
11430
11435
|
p1,
|
|
11431
11436
|
{
|
|
@@ -11448,7 +11453,7 @@ const Ep = P1(
|
|
|
11448
11453
|
children: [
|
|
11449
11454
|
/* @__PURE__ */ x.jsx("span", { style: { fontWeight: "bold" }, children: "CSS:" }),
|
|
11450
11455
|
" ",
|
|
11451
|
-
`var(${
|
|
11456
|
+
`var(${$})`
|
|
11452
11457
|
]
|
|
11453
11458
|
}
|
|
11454
11459
|
),
|
|
@@ -11639,8 +11644,8 @@ function Bh(r, a) {
|
|
|
11639
11644
|
R.setUTCFullYear(E + 1, 0, _), R.setUTCHours(0, 0, 0, 0);
|
|
11640
11645
|
var N = X0(R, a), Z = /* @__PURE__ */ new Date(0);
|
|
11641
11646
|
Z.setUTCFullYear(E, 0, _), Z.setUTCHours(0, 0, 0, 0);
|
|
11642
|
-
var
|
|
11643
|
-
return V.getTime() >= N.getTime() ? E + 1 : V.getTime() >=
|
|
11647
|
+
var $ = X0(Z, a);
|
|
11648
|
+
return V.getTime() >= N.getTime() ? E + 1 : V.getTime() >= $.getTime() ? E : E - 1;
|
|
11644
11649
|
}
|
|
11645
11650
|
function QB(r, a) {
|
|
11646
11651
|
var o, s, i, p, C, v, y, L;
|
|
@@ -12749,12 +12754,12 @@ var yP = /^(\d+)(th|st|nd|rd)?/i, LP = /\d+/i, bP = {
|
|
|
12749
12754
|
}
|
|
12750
12755
|
}, DP = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, RP = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ZP = /^'([^]*?)'?$/, OP = /''/g, NP = /[a-zA-Z]/;
|
|
12751
12756
|
function HL(r, a, o) {
|
|
12752
|
-
var s, i, p, C, v, y, L, V, E, k, _, R, N, Z,
|
|
12757
|
+
var s, i, p, C, v, y, L, V, E, k, _, R, N, Z, $, P, I, A;
|
|
12753
12758
|
F1(2, arguments);
|
|
12754
12759
|
var K = String(a), J = rn(), i1 = (s = (i = o == null ? void 0 : o.locale) !== null && i !== void 0 ? i : J.locale) !== null && s !== void 0 ? s : dw, d1 = q2((p = (C = (v = (y = o == null ? void 0 : o.firstWeekContainsDate) !== null && y !== void 0 ? y : o == null || (L = o.locale) === null || L === void 0 || (V = L.options) === null || V === void 0 ? void 0 : V.firstWeekContainsDate) !== null && v !== void 0 ? v : J.firstWeekContainsDate) !== null && C !== void 0 ? C : (E = J.locale) === null || E === void 0 || (k = E.options) === null || k === void 0 ? void 0 : k.firstWeekContainsDate) !== null && p !== void 0 ? p : 1);
|
|
12755
12760
|
if (!(d1 >= 1 && d1 <= 7))
|
|
12756
12761
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
12757
|
-
var c1 = q2((_ = (R = (N = (Z = o == null ? void 0 : o.weekStartsOn) !== null && Z !== void 0 ? Z : o == null || (
|
|
12762
|
+
var c1 = q2((_ = (R = (N = (Z = o == null ? void 0 : o.weekStartsOn) !== null && Z !== void 0 ? Z : o == null || ($ = o.locale) === null || $ === void 0 || (P = $.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && N !== void 0 ? N : J.weekStartsOn) !== null && R !== void 0 ? R : (I = J.locale) === null || I === void 0 || (A = I.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && _ !== void 0 ? _ : 0);
|
|
12758
12763
|
if (!(c1 >= 0 && c1 <= 6))
|
|
12759
12764
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
12760
12765
|
if (!i1.localize)
|
|
@@ -14043,7 +14048,7 @@ function zh(r, a, o) {
|
|
|
14043
14048
|
var E = rn(), k = q2((s = (i = (p = (C = o == null ? void 0 : o.weekStartsOn) !== null && C !== void 0 ? C : o == null || (v = o.locale) === null || v === void 0 || (y = v.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && p !== void 0 ? p : E.weekStartsOn) !== null && i !== void 0 ? i : (L = E.locale) === null || L === void 0 || (V = L.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && s !== void 0 ? s : 0);
|
|
14044
14049
|
if (!(k >= 0 && k <= 6))
|
|
14045
14050
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
14046
|
-
var _ = r2(r), R = q2(a), N = _.getUTCDay(), Z = R % 7,
|
|
14051
|
+
var _ = r2(r), R = q2(a), N = _.getUTCDay(), Z = R % 7, $ = (Z + 7) % 7, P = ($ < k ? 7 : 0) + R - N;
|
|
14047
14052
|
return _.setUTCDate(_.getUTCDate() + P), _;
|
|
14048
14053
|
}
|
|
14049
14054
|
var _F = /* @__PURE__ */ function(r) {
|
|
@@ -14882,7 +14887,7 @@ var OF = /* @__PURE__ */ function(r) {
|
|
|
14882
14887
|
T: new qF()
|
|
14883
14888
|
}, XF = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, KF = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, JF = /^'([^]*?)'?$/, ej = /''/g, tj = /\S/, nj = /[a-zA-Z]/;
|
|
14884
14889
|
function Tp(r, a, o, s) {
|
|
14885
|
-
var i, p, C, v, y, L, V, E, k, _, R, N, Z,
|
|
14890
|
+
var i, p, C, v, y, L, V, E, k, _, R, N, Z, $, P, I, A, K;
|
|
14886
14891
|
F1(3, arguments);
|
|
14887
14892
|
var J = String(r), i1 = String(a), d1 = rn(), c1 = (i = (p = s == null ? void 0 : s.locale) !== null && p !== void 0 ? p : d1.locale) !== null && i !== void 0 ? i : dw;
|
|
14888
14893
|
if (!c1.match)
|
|
@@ -14890,7 +14895,7 @@ function Tp(r, a, o, s) {
|
|
|
14890
14895
|
var S1 = q2((C = (v = (y = (L = s == null ? void 0 : s.firstWeekContainsDate) !== null && L !== void 0 ? L : s == null || (V = s.locale) === null || V === void 0 || (E = V.options) === null || E === void 0 ? void 0 : E.firstWeekContainsDate) !== null && y !== void 0 ? y : d1.firstWeekContainsDate) !== null && v !== void 0 ? v : (k = d1.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.firstWeekContainsDate) !== null && C !== void 0 ? C : 1);
|
|
14891
14896
|
if (!(S1 >= 1 && S1 <= 7))
|
|
14892
14897
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
14893
|
-
var M1 = q2((R = (N = (Z = (
|
|
14898
|
+
var M1 = q2((R = (N = (Z = ($ = s == null ? void 0 : s.weekStartsOn) !== null && $ !== void 0 ? $ : s == null || (P = s.locale) === null || P === void 0 || (I = P.options) === null || I === void 0 ? void 0 : I.weekStartsOn) !== null && Z !== void 0 ? Z : d1.weekStartsOn) !== null && N !== void 0 ? N : (A = d1.locale) === null || A === void 0 || (K = A.options) === null || K === void 0 ? void 0 : K.weekStartsOn) !== null && R !== void 0 ? R : 0);
|
|
14894
14899
|
if (!(M1 >= 0 && M1 <= 6))
|
|
14895
14900
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
14896
14901
|
if (i1 === "")
|
|
@@ -15152,9 +15157,9 @@ function Lj() {
|
|
|
15152
15157
|
return C.now() - v;
|
|
15153
15158
|
};
|
|
15154
15159
|
}
|
|
15155
|
-
var y = [], L = [], V = 1, E = null, k = 3, _ = !1, R = !1, N = !1, Z = typeof setTimeout == "function" ? setTimeout : null,
|
|
15160
|
+
var y = [], L = [], V = 1, E = null, k = 3, _ = !1, R = !1, N = !1, Z = typeof setTimeout == "function" ? setTimeout : null, $ = typeof clearTimeout == "function" ? clearTimeout : null, P = typeof setImmediate < "u" ? setImmediate : null;
|
|
15156
15161
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
15157
|
-
function
|
|
15162
|
+
function I(m1) {
|
|
15158
15163
|
for (var k1 = o(L); k1 !== null; ) {
|
|
15159
15164
|
if (k1.callback === null) s(L);
|
|
15160
15165
|
else if (k1.startTime <= m1) s(L), k1.sortIndex = k1.expirationTime, a(y, k1);
|
|
@@ -15163,22 +15168,22 @@ function Lj() {
|
|
|
15163
15168
|
}
|
|
15164
15169
|
}
|
|
15165
15170
|
function A(m1) {
|
|
15166
|
-
if (N = !1,
|
|
15171
|
+
if (N = !1, I(m1), !R) if (o(y) !== null) R = !0, B1(K);
|
|
15167
15172
|
else {
|
|
15168
15173
|
var k1 = o(L);
|
|
15169
15174
|
k1 !== null && G1(A, k1.startTime - m1);
|
|
15170
15175
|
}
|
|
15171
15176
|
}
|
|
15172
15177
|
function K(m1, k1) {
|
|
15173
|
-
R = !1, N && (N = !1,
|
|
15178
|
+
R = !1, N && (N = !1, $(d1), d1 = -1), _ = !0;
|
|
15174
15179
|
var v1 = k;
|
|
15175
15180
|
try {
|
|
15176
|
-
for (
|
|
15181
|
+
for (I(k1), E = o(y); E !== null && (!(E.expirationTime > k1) || m1 && !M1()); ) {
|
|
15177
15182
|
var Q1 = E.callback;
|
|
15178
15183
|
if (typeof Q1 == "function") {
|
|
15179
15184
|
E.callback = null, k = E.priorityLevel;
|
|
15180
15185
|
var q1 = Q1(E.expirationTime <= k1);
|
|
15181
|
-
k1 = r.unstable_now(), typeof q1 == "function" ? E.callback = q1 : E === o(y) && s(y),
|
|
15186
|
+
k1 = r.unstable_now(), typeof q1 == "function" ? E.callback = q1 : E === o(y) && s(y), I(k1);
|
|
15182
15187
|
} else s(y);
|
|
15183
15188
|
E = o(y);
|
|
15184
15189
|
}
|
|
@@ -15293,7 +15298,7 @@ function Lj() {
|
|
|
15293
15298
|
default:
|
|
15294
15299
|
q1 = 5e3;
|
|
15295
15300
|
}
|
|
15296
|
-
return q1 = v1 + q1, m1 = { id: V++, callback: k1, priorityLevel: m1, startTime: v1, expirationTime: q1, sortIndex: -1 }, v1 > Q1 ? (m1.sortIndex = v1, a(L, m1), o(y) === null && m1 === o(L) && (N ? (
|
|
15301
|
+
return q1 = v1 + q1, m1 = { id: V++, callback: k1, priorityLevel: m1, startTime: v1, expirationTime: q1, sortIndex: -1 }, v1 > Q1 ? (m1.sortIndex = v1, a(L, m1), o(y) === null && m1 === o(L) && (N ? ($(d1), d1 = -1) : N = !0, G1(A, v1 - Q1))) : (m1.sortIndex = q1, a(y, m1), R || _ || (R = !0, B1(K))), m1;
|
|
15297
15302
|
}, r.unstable_shouldYield = M1, r.unstable_wrapCallback = function(m1) {
|
|
15298
15303
|
var k1 = k;
|
|
15299
15304
|
return function() {
|
|
@@ -15371,12 +15376,12 @@ function bj() {
|
|
|
15371
15376
|
return Z.now();
|
|
15372
15377
|
};
|
|
15373
15378
|
} else {
|
|
15374
|
-
var
|
|
15379
|
+
var $ = Date, P = $.now();
|
|
15375
15380
|
r.unstable_now = function() {
|
|
15376
|
-
return
|
|
15381
|
+
return $.now() - P;
|
|
15377
15382
|
};
|
|
15378
15383
|
}
|
|
15379
|
-
var
|
|
15384
|
+
var I = 1073741823, A = -1, K = 250, J = 5e3, i1 = 1e4, d1 = I, c1 = [], S1 = [], M1 = 1, x1 = null, L1 = E, n2 = !1, _1 = !1, B1 = !1, G1 = typeof setTimeout == "function" ? setTimeout : null, m1 = typeof clearTimeout == "function" ? clearTimeout : null, k1 = typeof setImmediate < "u" ? setImmediate : null;
|
|
15380
15385
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
15381
15386
|
function v1(T1) {
|
|
15382
15387
|
for (var c2 = i(S1); c2 !== null; ) {
|
|
@@ -15599,7 +15604,7 @@ var RL;
|
|
|
15599
15604
|
function wj() {
|
|
15600
15605
|
if (RL) return $5;
|
|
15601
15606
|
RL = 1;
|
|
15602
|
-
var r =
|
|
15607
|
+
var r = t1, a = xw();
|
|
15603
15608
|
function o(n) {
|
|
15604
15609
|
for (var l = "https://reactjs.org/docs/error-decoder.html?invariant=" + n, f = 1; f < arguments.length; f++) l += "&args[]=" + encodeURIComponent(arguments[f]);
|
|
15605
15610
|
return "Minified React error #" + n + "; visit " + l + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
@@ -15666,28 +15671,28 @@ function wj() {
|
|
|
15666
15671
|
}), ["rowSpan", "start"].forEach(function(n) {
|
|
15667
15672
|
Z[n] = new N(n, 5, !1, n.toLowerCase(), null, !1, !1);
|
|
15668
15673
|
});
|
|
15669
|
-
var
|
|
15674
|
+
var $ = /[\-:]([a-z])/g;
|
|
15670
15675
|
function P(n) {
|
|
15671
15676
|
return n[1].toUpperCase();
|
|
15672
15677
|
}
|
|
15673
15678
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n) {
|
|
15674
15679
|
var l = n.replace(
|
|
15675
|
-
|
|
15680
|
+
$,
|
|
15676
15681
|
P
|
|
15677
15682
|
);
|
|
15678
15683
|
Z[l] = new N(l, 1, !1, n, null, !1, !1);
|
|
15679
15684
|
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n) {
|
|
15680
|
-
var l = n.replace(
|
|
15685
|
+
var l = n.replace($, P);
|
|
15681
15686
|
Z[l] = new N(l, 1, !1, n, "http://www.w3.org/1999/xlink", !1, !1);
|
|
15682
15687
|
}), ["xml:base", "xml:lang", "xml:space"].forEach(function(n) {
|
|
15683
|
-
var l = n.replace(
|
|
15688
|
+
var l = n.replace($, P);
|
|
15684
15689
|
Z[l] = new N(l, 1, !1, n, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
15685
15690
|
}), ["tabIndex", "crossOrigin"].forEach(function(n) {
|
|
15686
15691
|
Z[n] = new N(n, 1, !1, n.toLowerCase(), null, !1, !1);
|
|
15687
15692
|
}), Z.xlinkHref = new N("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(n) {
|
|
15688
15693
|
Z[n] = new N(n, 1, !1, n.toLowerCase(), null, !0, !0);
|
|
15689
15694
|
});
|
|
15690
|
-
function
|
|
15695
|
+
function I(n, l, f, m) {
|
|
15691
15696
|
var b = Z.hasOwnProperty(l) ? Z[l] : null;
|
|
15692
15697
|
(b !== null ? b.type !== 0 : m || !(2 < l.length) || l[0] !== "o" && l[0] !== "O" || l[1] !== "n" && l[1] !== "N") && (R(l, f, b, m) && (f = null), m || b === null ? k(l) && (f === null ? n.removeAttribute(l) : n.setAttribute(l, "" + f)) : b.mustUseProperty ? n[b.propertyName] = f === null ? b.type === 3 ? !1 : "" : f : (l = b.attributeName, m = b.attributeNamespace, f === null ? n.removeAttribute(l) : (b = b.type, f = b === 3 || b === 4 && f === !0 ? "" : "" + f, m ? n.setAttributeNS(m, l, f) : n.setAttribute(l, f))));
|
|
15693
15698
|
}
|
|
@@ -15932,7 +15937,7 @@ function wj() {
|
|
|
15932
15937
|
f = o2(l.value != null ? l.value : f), n._wrapperState = { initialChecked: m, initialValue: f, controlled: l.type === "checkbox" || l.type === "radio" ? l.checked != null : l.value != null };
|
|
15933
15938
|
}
|
|
15934
15939
|
function h3(n, l) {
|
|
15935
|
-
l = l.checked, l != null &&
|
|
15940
|
+
l = l.checked, l != null && I(n, "checked", l, !1);
|
|
15936
15941
|
}
|
|
15937
15942
|
function Z1(n, l) {
|
|
15938
15943
|
h3(n, l);
|
|
@@ -17198,10 +17203,10 @@ function wj() {
|
|
|
17198
17203
|
}
|
|
17199
17204
|
var a2 = (l & 4) !== 0, fe = !a2 && n === "scroll", n1 = a2 ? y1 !== null ? y1 + "Capture" : null : y1;
|
|
17200
17205
|
a2 = [];
|
|
17201
|
-
for (var Q = s1,
|
|
17202
|
-
|
|
17203
|
-
var E1 =
|
|
17204
|
-
if (
|
|
17206
|
+
for (var Q = s1, e1; Q !== null; ) {
|
|
17207
|
+
e1 = Q;
|
|
17208
|
+
var E1 = e1.stateNode;
|
|
17209
|
+
if (e1.tag === 5 && E1 !== null && (e1 = E1, n1 !== null && (E1 = X5(Q, n1), E1 != null && a2.push(N9(Q, E1, e1)))), fe) break;
|
|
17205
17210
|
Q = Q.return;
|
|
17206
17211
|
}
|
|
17207
17212
|
0 < a2.length && (y1 = new U1(y1, e2, null, f, w1), H1.push({ event: y1, listeners: a2 }));
|
|
@@ -17211,11 +17216,11 @@ function wj() {
|
|
|
17211
17216
|
e: {
|
|
17212
17217
|
if (y1 = n === "mouseover" || n === "pointerover", U1 = n === "mouseout" || n === "pointerout", y1 && f !== R3 && (e2 = f.relatedTarget || f.fromElement) && (F8(e2) || e2[a6])) break e;
|
|
17213
17218
|
if ((U1 || y1) && (y1 = w1.window === w1 ? w1 : (y1 = w1.ownerDocument) ? y1.defaultView || y1.parentWindow : window, U1 ? (e2 = f.relatedTarget || f.toElement, U1 = s1, e2 = e2 ? F8(e2) : null, e2 !== null && (fe = E2(e2), e2 !== fe || e2.tag !== 5 && e2.tag !== 6) && (e2 = null)) : (U1 = null, e2 = s1), U1 !== e2)) {
|
|
17214
|
-
if (a2 = La, E1 = "onMouseLeave", n1 = "onMouseEnter", Q = "mouse", (n === "pointerout" || n === "pointerover") && (a2 = Jo, E1 = "onPointerLeave", n1 = "onPointerEnter", Q = "pointer"), fe = U1 == null ? y1 : n7(U1),
|
|
17215
|
-
for (a2 = U1, n1 = e2, Q = 0,
|
|
17216
|
-
for (
|
|
17217
|
-
for (; 0 < Q -
|
|
17218
|
-
for (; 0 <
|
|
17219
|
+
if (a2 = La, E1 = "onMouseLeave", n1 = "onMouseEnter", Q = "mouse", (n === "pointerout" || n === "pointerover") && (a2 = Jo, E1 = "onPointerLeave", n1 = "onPointerEnter", Q = "pointer"), fe = U1 == null ? y1 : n7(U1), e1 = e2 == null ? y1 : n7(e2), y1 = new a2(E1, Q + "leave", U1, f, w1), y1.target = fe, y1.relatedTarget = e1, E1 = null, F8(w1) === s1 && (a2 = new a2(n1, Q + "enter", e2, f, w1), a2.target = e1, a2.relatedTarget = fe, E1 = a2), fe = E1, U1 && e2) t: {
|
|
17220
|
+
for (a2 = U1, n1 = e2, Q = 0, e1 = a2; e1; e1 = F6(e1)) Q++;
|
|
17221
|
+
for (e1 = 0, E1 = n1; E1; E1 = F6(E1)) e1++;
|
|
17222
|
+
for (; 0 < Q - e1; ) a2 = F6(a2), Q--;
|
|
17223
|
+
for (; 0 < e1 - Q; ) n1 = F6(n1), e1--;
|
|
17219
17224
|
for (; Q--; ) {
|
|
17220
17225
|
if (a2 === n1 || n1 !== null && a2 === n1.alternate) break t;
|
|
17221
17226
|
a2 = F6(a2), n1 = F6(n1);
|
|
@@ -17795,8 +17800,8 @@ function wj() {
|
|
|
17795
17800
|
function Ol(n) {
|
|
17796
17801
|
function l(n1, Q) {
|
|
17797
17802
|
if (n) {
|
|
17798
|
-
var
|
|
17799
|
-
|
|
17803
|
+
var e1 = n1.deletions;
|
|
17804
|
+
e1 === null ? (n1.deletions = [Q], n1.flags |= 16) : e1.push(Q);
|
|
17800
17805
|
}
|
|
17801
17806
|
}
|
|
17802
17807
|
function f(n1, Q) {
|
|
@@ -17811,106 +17816,106 @@ function wj() {
|
|
|
17811
17816
|
function b(n1, Q) {
|
|
17812
17817
|
return n1 = m6(n1, Q), n1.index = 0, n1.sibling = null, n1;
|
|
17813
17818
|
}
|
|
17814
|
-
function H(n1, Q,
|
|
17815
|
-
return n1.index =
|
|
17819
|
+
function H(n1, Q, e1) {
|
|
17820
|
+
return n1.index = e1, n ? (e1 = n1.alternate, e1 !== null ? (e1 = e1.index, e1 < Q ? (n1.flags |= 2, Q) : e1) : (n1.flags |= 2, Q)) : (n1.flags |= 1048576, Q);
|
|
17816
17821
|
}
|
|
17817
17822
|
function T(n1) {
|
|
17818
17823
|
return n && n1.alternate === null && (n1.flags |= 2), n1;
|
|
17819
17824
|
}
|
|
17820
|
-
function F(n1, Q,
|
|
17821
|
-
return Q === null || Q.tag !== 6 ? (Q = ar(
|
|
17825
|
+
function F(n1, Q, e1, E1) {
|
|
17826
|
+
return Q === null || Q.tag !== 6 ? (Q = ar(e1, n1.mode, E1), Q.return = n1, Q) : (Q = b(Q, e1), Q.return = n1, Q);
|
|
17822
17827
|
}
|
|
17823
|
-
function Y(n1, Q,
|
|
17824
|
-
var i2 =
|
|
17825
|
-
return i2 === i1 ? w1(n1, Q,
|
|
17828
|
+
function Y(n1, Q, e1, E1) {
|
|
17829
|
+
var i2 = e1.type;
|
|
17830
|
+
return i2 === i1 ? w1(n1, Q, e1.props.children, E1, e1.key) : Q !== null && (Q.elementType === i2 || typeof i2 == "object" && i2 !== null && i2.$$typeof === B1 && Zl(i2) === Q.type) ? (E1 = b(Q, e1.props), E1.ref = a0(n1, Q, e1), E1.return = n1, E1) : (E1 = at(e1.type, e1.key, e1.props, null, n1.mode, E1), E1.ref = a0(n1, Q, e1), E1.return = n1, E1);
|
|
17826
17831
|
}
|
|
17827
|
-
function s1(n1, Q,
|
|
17828
|
-
return Q === null || Q.tag !== 4 || Q.stateNode.containerInfo !==
|
|
17832
|
+
function s1(n1, Q, e1, E1) {
|
|
17833
|
+
return Q === null || Q.tag !== 4 || Q.stateNode.containerInfo !== e1.containerInfo || Q.stateNode.implementation !== e1.implementation ? (Q = ir(e1, n1.mode, E1), Q.return = n1, Q) : (Q = b(Q, e1.children || []), Q.return = n1, Q);
|
|
17829
17834
|
}
|
|
17830
|
-
function w1(n1, Q,
|
|
17831
|
-
return Q === null || Q.tag !== 7 ? (Q = s7(
|
|
17835
|
+
function w1(n1, Q, e1, E1, i2) {
|
|
17836
|
+
return Q === null || Q.tag !== 7 ? (Q = s7(e1, n1.mode, E1, i2), Q.return = n1, Q) : (Q = b(Q, e1), Q.return = n1, Q);
|
|
17832
17837
|
}
|
|
17833
|
-
function H1(n1, Q,
|
|
17834
|
-
if (typeof Q == "string" && Q !== "" || typeof Q == "number") return Q = ar("" + Q, n1.mode,
|
|
17838
|
+
function H1(n1, Q, e1) {
|
|
17839
|
+
if (typeof Q == "string" && Q !== "" || typeof Q == "number") return Q = ar("" + Q, n1.mode, e1), Q.return = n1, Q;
|
|
17835
17840
|
if (typeof Q == "object" && Q !== null) {
|
|
17836
17841
|
switch (Q.$$typeof) {
|
|
17837
17842
|
case K:
|
|
17838
|
-
return
|
|
17843
|
+
return e1 = at(Q.type, Q.key, Q.props, null, n1.mode, e1), e1.ref = a0(n1, null, Q), e1.return = n1, e1;
|
|
17839
17844
|
case J:
|
|
17840
|
-
return Q = ir(Q, n1.mode,
|
|
17845
|
+
return Q = ir(Q, n1.mode, e1), Q.return = n1, Q;
|
|
17841
17846
|
case B1:
|
|
17842
17847
|
var E1 = Q._init;
|
|
17843
|
-
return H1(n1, E1(Q._payload),
|
|
17848
|
+
return H1(n1, E1(Q._payload), e1);
|
|
17844
17849
|
}
|
|
17845
|
-
if (F2(Q) || k1(Q)) return Q = s7(Q, n1.mode,
|
|
17850
|
+
if (F2(Q) || k1(Q)) return Q = s7(Q, n1.mode, e1, null), Q.return = n1, Q;
|
|
17846
17851
|
Rn(n1, Q);
|
|
17847
17852
|
}
|
|
17848
17853
|
return null;
|
|
17849
17854
|
}
|
|
17850
|
-
function y1(n1, Q,
|
|
17855
|
+
function y1(n1, Q, e1, E1) {
|
|
17851
17856
|
var i2 = Q !== null ? Q.key : null;
|
|
17852
|
-
if (typeof
|
|
17853
|
-
if (typeof
|
|
17854
|
-
switch (
|
|
17857
|
+
if (typeof e1 == "string" && e1 !== "" || typeof e1 == "number") return i2 !== null ? null : F(n1, Q, "" + e1, E1);
|
|
17858
|
+
if (typeof e1 == "object" && e1 !== null) {
|
|
17859
|
+
switch (e1.$$typeof) {
|
|
17855
17860
|
case K:
|
|
17856
|
-
return
|
|
17861
|
+
return e1.key === i2 ? Y(n1, Q, e1, E1) : null;
|
|
17857
17862
|
case J:
|
|
17858
|
-
return
|
|
17863
|
+
return e1.key === i2 ? s1(n1, Q, e1, E1) : null;
|
|
17859
17864
|
case B1:
|
|
17860
|
-
return i2 =
|
|
17865
|
+
return i2 = e1._init, y1(
|
|
17861
17866
|
n1,
|
|
17862
17867
|
Q,
|
|
17863
|
-
i2(
|
|
17868
|
+
i2(e1._payload),
|
|
17864
17869
|
E1
|
|
17865
17870
|
);
|
|
17866
17871
|
}
|
|
17867
|
-
if (F2(
|
|
17868
|
-
Rn(n1,
|
|
17872
|
+
if (F2(e1) || k1(e1)) return i2 !== null ? null : w1(n1, Q, e1, E1, null);
|
|
17873
|
+
Rn(n1, e1);
|
|
17869
17874
|
}
|
|
17870
17875
|
return null;
|
|
17871
17876
|
}
|
|
17872
|
-
function U1(n1, Q,
|
|
17873
|
-
if (typeof E1 == "string" && E1 !== "" || typeof E1 == "number") return n1 = n1.get(
|
|
17877
|
+
function U1(n1, Q, e1, E1, i2) {
|
|
17878
|
+
if (typeof E1 == "string" && E1 !== "" || typeof E1 == "number") return n1 = n1.get(e1) || null, F(Q, n1, "" + E1, i2);
|
|
17874
17879
|
if (typeof E1 == "object" && E1 !== null) {
|
|
17875
17880
|
switch (E1.$$typeof) {
|
|
17876
17881
|
case K:
|
|
17877
|
-
return n1 = n1.get(E1.key === null ?
|
|
17882
|
+
return n1 = n1.get(E1.key === null ? e1 : E1.key) || null, Y(Q, n1, E1, i2);
|
|
17878
17883
|
case J:
|
|
17879
|
-
return n1 = n1.get(E1.key === null ?
|
|
17884
|
+
return n1 = n1.get(E1.key === null ? e1 : E1.key) || null, s1(Q, n1, E1, i2);
|
|
17880
17885
|
case B1:
|
|
17881
17886
|
var y2 = E1._init;
|
|
17882
|
-
return U1(n1, Q,
|
|
17887
|
+
return U1(n1, Q, e1, y2(E1._payload), i2);
|
|
17883
17888
|
}
|
|
17884
|
-
if (F2(E1) || k1(E1)) return n1 = n1.get(
|
|
17889
|
+
if (F2(E1) || k1(E1)) return n1 = n1.get(e1) || null, w1(Q, n1, E1, i2, null);
|
|
17885
17890
|
Rn(Q, E1);
|
|
17886
17891
|
}
|
|
17887
17892
|
return null;
|
|
17888
17893
|
}
|
|
17889
|
-
function e2(n1, Q,
|
|
17890
|
-
for (var i2 = null, y2 = null, g2 = Q, w2 = Q = 0, ze = null; g2 !== null && w2 <
|
|
17894
|
+
function e2(n1, Q, e1, E1) {
|
|
17895
|
+
for (var i2 = null, y2 = null, g2 = Q, w2 = Q = 0, ze = null; g2 !== null && w2 < e1.length; w2++) {
|
|
17891
17896
|
g2.index > w2 ? (ze = g2, g2 = null) : ze = g2.sibling;
|
|
17892
|
-
var C3 = y1(n1, g2,
|
|
17897
|
+
var C3 = y1(n1, g2, e1[w2], E1);
|
|
17893
17898
|
if (C3 === null) {
|
|
17894
17899
|
g2 === null && (g2 = ze);
|
|
17895
17900
|
break;
|
|
17896
17901
|
}
|
|
17897
17902
|
n && g2 && C3.alternate === null && l(n1, g2), Q = H(C3, Q, w2), y2 === null ? i2 = C3 : y2.sibling = C3, y2 = C3, g2 = ze;
|
|
17898
17903
|
}
|
|
17899
|
-
if (w2 ===
|
|
17904
|
+
if (w2 === e1.length) return f(n1, g2), X3 && j8(n1, w2), i2;
|
|
17900
17905
|
if (g2 === null) {
|
|
17901
|
-
for (; w2 <
|
|
17906
|
+
for (; w2 < e1.length; w2++) g2 = H1(n1, e1[w2], E1), g2 !== null && (Q = H(g2, Q, w2), y2 === null ? i2 = g2 : y2.sibling = g2, y2 = g2);
|
|
17902
17907
|
return X3 && j8(n1, w2), i2;
|
|
17903
17908
|
}
|
|
17904
|
-
for (g2 = m(n1, g2); w2 <
|
|
17909
|
+
for (g2 = m(n1, g2); w2 < e1.length; w2++) ze = U1(g2, n1, w2, e1[w2], E1), ze !== null && (n && ze.alternate !== null && g2.delete(ze.key === null ? w2 : ze.key), Q = H(ze, Q, w2), y2 === null ? i2 = ze : y2.sibling = ze, y2 = ze);
|
|
17905
17910
|
return n && g2.forEach(function(v6) {
|
|
17906
17911
|
return l(n1, v6);
|
|
17907
17912
|
}), X3 && j8(n1, w2), i2;
|
|
17908
17913
|
}
|
|
17909
|
-
function a2(n1, Q,
|
|
17910
|
-
var i2 = k1(
|
|
17914
|
+
function a2(n1, Q, e1, E1) {
|
|
17915
|
+
var i2 = k1(e1);
|
|
17911
17916
|
if (typeof i2 != "function") throw Error(o(150));
|
|
17912
|
-
if (
|
|
17913
|
-
for (var y2 = i2 = null, g2 = Q, w2 = Q = 0, ze = null, C3 =
|
|
17917
|
+
if (e1 = i2.call(e1), e1 == null) throw Error(o(151));
|
|
17918
|
+
for (var y2 = i2 = null, g2 = Q, w2 = Q = 0, ze = null, C3 = e1.next(); g2 !== null && !C3.done; w2++, C3 = e1.next()) {
|
|
17914
17919
|
g2.index > w2 ? (ze = g2, g2 = null) : ze = g2.sibling;
|
|
17915
17920
|
var v6 = y1(n1, g2, C3.value, E1);
|
|
17916
17921
|
if (v6 === null) {
|
|
@@ -17924,28 +17929,28 @@ function wj() {
|
|
|
17924
17929
|
g2
|
|
17925
17930
|
), X3 && j8(n1, w2), i2;
|
|
17926
17931
|
if (g2 === null) {
|
|
17927
|
-
for (; !C3.done; w2++, C3 =
|
|
17932
|
+
for (; !C3.done; w2++, C3 = e1.next()) C3 = H1(n1, C3.value, E1), C3 !== null && (Q = H(C3, Q, w2), y2 === null ? i2 = C3 : y2.sibling = C3, y2 = C3);
|
|
17928
17933
|
return X3 && j8(n1, w2), i2;
|
|
17929
17934
|
}
|
|
17930
|
-
for (g2 = m(n1, g2); !C3.done; w2++, C3 =
|
|
17935
|
+
for (g2 = m(n1, g2); !C3.done; w2++, C3 = e1.next()) C3 = U1(g2, n1, w2, C3.value, E1), C3 !== null && (n && C3.alternate !== null && g2.delete(C3.key === null ? w2 : C3.key), Q = H(C3, Q, w2), y2 === null ? i2 = C3 : y2.sibling = C3, y2 = C3);
|
|
17931
17936
|
return n && g2.forEach(function(vs) {
|
|
17932
17937
|
return l(n1, vs);
|
|
17933
17938
|
}), X3 && j8(n1, w2), i2;
|
|
17934
17939
|
}
|
|
17935
|
-
function fe(n1, Q,
|
|
17936
|
-
if (typeof
|
|
17937
|
-
switch (
|
|
17940
|
+
function fe(n1, Q, e1, E1) {
|
|
17941
|
+
if (typeof e1 == "object" && e1 !== null && e1.type === i1 && e1.key === null && (e1 = e1.props.children), typeof e1 == "object" && e1 !== null) {
|
|
17942
|
+
switch (e1.$$typeof) {
|
|
17938
17943
|
case K:
|
|
17939
17944
|
e: {
|
|
17940
|
-
for (var i2 =
|
|
17945
|
+
for (var i2 = e1.key, y2 = Q; y2 !== null; ) {
|
|
17941
17946
|
if (y2.key === i2) {
|
|
17942
|
-
if (i2 =
|
|
17947
|
+
if (i2 = e1.type, i2 === i1) {
|
|
17943
17948
|
if (y2.tag === 7) {
|
|
17944
|
-
f(n1, y2.sibling), Q = b(y2,
|
|
17949
|
+
f(n1, y2.sibling), Q = b(y2, e1.props.children), Q.return = n1, n1 = Q;
|
|
17945
17950
|
break e;
|
|
17946
17951
|
}
|
|
17947
17952
|
} else if (y2.elementType === i2 || typeof i2 == "object" && i2 !== null && i2.$$typeof === B1 && Zl(i2) === y2.type) {
|
|
17948
|
-
f(n1, y2.sibling), Q = b(y2,
|
|
17953
|
+
f(n1, y2.sibling), Q = b(y2, e1.props), Q.ref = a0(n1, y2, e1), Q.return = n1, n1 = Q;
|
|
17949
17954
|
break e;
|
|
17950
17955
|
}
|
|
17951
17956
|
f(n1, y2);
|
|
@@ -17953,14 +17958,14 @@ function wj() {
|
|
|
17953
17958
|
} else l(n1, y2);
|
|
17954
17959
|
y2 = y2.sibling;
|
|
17955
17960
|
}
|
|
17956
|
-
|
|
17961
|
+
e1.type === i1 ? (Q = s7(e1.props.children, n1.mode, E1, e1.key), Q.return = n1, n1 = Q) : (E1 = at(e1.type, e1.key, e1.props, null, n1.mode, E1), E1.ref = a0(n1, Q, e1), E1.return = n1, n1 = E1);
|
|
17957
17962
|
}
|
|
17958
17963
|
return T(n1);
|
|
17959
17964
|
case J:
|
|
17960
17965
|
e: {
|
|
17961
|
-
for (y2 =
|
|
17962
|
-
if (Q.key === y2) if (Q.tag === 4 && Q.stateNode.containerInfo ===
|
|
17963
|
-
f(n1, Q.sibling), Q = b(Q,
|
|
17966
|
+
for (y2 = e1.key; Q !== null; ) {
|
|
17967
|
+
if (Q.key === y2) if (Q.tag === 4 && Q.stateNode.containerInfo === e1.containerInfo && Q.stateNode.implementation === e1.implementation) {
|
|
17968
|
+
f(n1, Q.sibling), Q = b(Q, e1.children || []), Q.return = n1, n1 = Q;
|
|
17964
17969
|
break e;
|
|
17965
17970
|
} else {
|
|
17966
17971
|
f(n1, Q);
|
|
@@ -17969,17 +17974,17 @@ function wj() {
|
|
|
17969
17974
|
else l(n1, Q);
|
|
17970
17975
|
Q = Q.sibling;
|
|
17971
17976
|
}
|
|
17972
|
-
Q = ir(
|
|
17977
|
+
Q = ir(e1, n1.mode, E1), Q.return = n1, n1 = Q;
|
|
17973
17978
|
}
|
|
17974
17979
|
return T(n1);
|
|
17975
17980
|
case B1:
|
|
17976
|
-
return y2 =
|
|
17981
|
+
return y2 = e1._init, fe(n1, Q, y2(e1._payload), E1);
|
|
17977
17982
|
}
|
|
17978
|
-
if (F2(
|
|
17979
|
-
if (k1(
|
|
17980
|
-
Rn(n1,
|
|
17983
|
+
if (F2(e1)) return e2(n1, Q, e1, E1);
|
|
17984
|
+
if (k1(e1)) return a2(n1, Q, e1, E1);
|
|
17985
|
+
Rn(n1, e1);
|
|
17981
17986
|
}
|
|
17982
|
-
return typeof
|
|
17987
|
+
return typeof e1 == "string" && e1 !== "" || typeof e1 == "number" ? (e1 = "" + e1, Q !== null && Q.tag === 6 ? (f(n1, Q.sibling), Q = b(Q, e1), Q.return = n1, n1 = Q) : (f(n1, Q), Q = ar(e1, n1.mode, E1), Q.return = n1, n1 = Q), T(n1)) : f(n1, Q);
|
|
17983
17988
|
}
|
|
17984
17989
|
return fe;
|
|
17985
17990
|
}
|
|
@@ -18928,7 +18933,7 @@ Error generating stack: ` + H.message + `
|
|
|
18928
18933
|
D3(f, b), F = b;
|
|
18929
18934
|
for (H in F) if (F.hasOwnProperty(H)) {
|
|
18930
18935
|
var Y = F[H];
|
|
18931
|
-
H === "style" ? z3(n, Y) : H === "dangerouslySetInnerHTML" ? (Y = Y ? Y.__html : void 0, Y != null && G5(n, Y)) : H === "children" ? typeof Y == "string" ? (f !== "textarea" || Y !== "") && T1(n, Y) : typeof Y == "number" && T1(n, "" + Y) : H !== "suppressContentEditableWarning" && H !== "suppressHydrationWarning" && H !== "autoFocus" && (i.hasOwnProperty(H) ? Y != null && H === "onScroll" && b3("scroll", n) : Y != null &&
|
|
18936
|
+
H === "style" ? z3(n, Y) : H === "dangerouslySetInnerHTML" ? (Y = Y ? Y.__html : void 0, Y != null && G5(n, Y)) : H === "children" ? typeof Y == "string" ? (f !== "textarea" || Y !== "") && T1(n, Y) : typeof Y == "number" && T1(n, "" + Y) : H !== "suppressContentEditableWarning" && H !== "suppressHydrationWarning" && H !== "autoFocus" && (i.hasOwnProperty(H) ? Y != null && H === "onScroll" && b3("scroll", n) : Y != null && I(n, H, Y, T));
|
|
18932
18937
|
}
|
|
18933
18938
|
switch (f) {
|
|
18934
18939
|
case "input":
|
|
@@ -19132,8 +19137,8 @@ Error generating stack: ` + H.message + `
|
|
|
19132
19137
|
}
|
|
19133
19138
|
break;
|
|
19134
19139
|
case 3:
|
|
19135
|
-
var
|
|
19136
|
-
|
|
19140
|
+
var e1 = l.stateNode.containerInfo;
|
|
19141
|
+
e1.nodeType === 1 ? e1.textContent = "" : e1.nodeType === 9 && e1.documentElement && e1.removeChild(e1.documentElement);
|
|
19137
19142
|
break;
|
|
19138
19143
|
case 5:
|
|
19139
19144
|
case 6:
|
|
@@ -19356,7 +19361,7 @@ Error generating stack: ` + H.message + `
|
|
|
19356
19361
|
var s1 = Ne(F, H);
|
|
19357
19362
|
for (T = 0; T < Y.length; T += 2) {
|
|
19358
19363
|
var w1 = Y[T], H1 = Y[T + 1];
|
|
19359
|
-
w1 === "style" ? z3(b, H1) : w1 === "dangerouslySetInnerHTML" ? G5(b, H1) : w1 === "children" ? T1(b, H1) :
|
|
19364
|
+
w1 === "style" ? z3(b, H1) : w1 === "dangerouslySetInnerHTML" ? G5(b, H1) : w1 === "children" ? T1(b, H1) : I(b, w1, H1, s1);
|
|
19360
19365
|
}
|
|
19361
19366
|
switch (F) {
|
|
19362
19367
|
case "input":
|
|
@@ -19995,8 +20000,8 @@ Error generating stack: ` + H.message + `
|
|
|
19995
20000
|
break e;
|
|
19996
20001
|
case 1:
|
|
19997
20002
|
F = Y;
|
|
19998
|
-
var Q = H.type,
|
|
19999
|
-
if (!(H.flags & 128) && (typeof Q.getDerivedStateFromError == "function" ||
|
|
20003
|
+
var Q = H.type, e1 = H.stateNode;
|
|
20004
|
+
if (!(H.flags & 128) && (typeof Q.getDerivedStateFromError == "function" || e1 !== null && typeof e1.componentDidCatch == "function" && (n8 === null || !n8.has(e1)))) {
|
|
20000
20005
|
H.flags |= 65536, l &= -l, H.lanes |= l;
|
|
20001
20006
|
var E1 = ti(H, F, l);
|
|
20002
20007
|
Tl(H, E1);
|
|
@@ -20179,8 +20184,8 @@ Error generating stack: ` + H.message + `
|
|
|
20179
20184
|
var Q = n.current;
|
|
20180
20185
|
for (K1 = Q; K1 !== null; ) {
|
|
20181
20186
|
T = K1;
|
|
20182
|
-
var
|
|
20183
|
-
if (T.subtreeFlags & 2064 &&
|
|
20187
|
+
var e1 = T.child;
|
|
20188
|
+
if (T.subtreeFlags & 2064 && e1 !== null) e1.return = T, K1 = e1;
|
|
20184
20189
|
else e: for (T = Q; K1 !== null; ) {
|
|
20185
20190
|
if (F = K1, F.flags & 2048) try {
|
|
20186
20191
|
switch (F.tag) {
|
|
@@ -20769,7 +20774,7 @@ var ZL;
|
|
|
20769
20774
|
function xj() {
|
|
20770
20775
|
return ZL || (ZL = 1, process.env.NODE_ENV !== "production" && function() {
|
|
20771
20776
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
20772
|
-
var r =
|
|
20777
|
+
var r = t1, a = xw(), o = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, s = !1;
|
|
20773
20778
|
function i(e) {
|
|
20774
20779
|
s = e;
|
|
20775
20780
|
}
|
|
@@ -20797,7 +20802,7 @@ function xj() {
|
|
|
20797
20802
|
g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
|
|
20798
20803
|
}
|
|
20799
20804
|
}
|
|
20800
|
-
var y = 0, L = 1, V = 2, E = 3, k = 4, _ = 5, R = 6, N = 7, Z = 8,
|
|
20805
|
+
var y = 0, L = 1, V = 2, E = 3, k = 4, _ = 5, R = 6, N = 7, Z = 8, $ = 9, P = 10, I = 11, A = 12, K = 13, J = 14, i1 = 15, d1 = 16, c1 = 17, S1 = 18, M1 = 19, x1 = 21, L1 = 22, n2 = 23, _1 = 24, B1 = 25, G1 = !0, m1 = !1, k1 = !1, v1 = !1, Q1 = !1, q1 = !1, A1 = !0, x2 = !0, n3 = !0, H2 = /* @__PURE__ */ new Set(), V2 = {}, o2 = {};
|
|
20801
20806
|
function l2(e, t) {
|
|
20802
20807
|
D2(e, t), D2(e + "Capture", t);
|
|
20803
20808
|
}
|
|
@@ -21548,7 +21553,7 @@ function xj() {
|
|
|
21548
21553
|
case V:
|
|
21549
21554
|
case i1:
|
|
21550
21555
|
return V9(e.type);
|
|
21551
|
-
case
|
|
21556
|
+
case I:
|
|
21552
21557
|
return V9(e.type.render);
|
|
21553
21558
|
case L:
|
|
21554
21559
|
return Pt(e.type);
|
|
@@ -21636,7 +21641,7 @@ Error generating stack: ` + c.message + `
|
|
|
21636
21641
|
switch (t) {
|
|
21637
21642
|
case _1:
|
|
21638
21643
|
return "Cache";
|
|
21639
|
-
case
|
|
21644
|
+
case $:
|
|
21640
21645
|
var c = u;
|
|
21641
21646
|
return k8(c) + ".Consumer";
|
|
21642
21647
|
case P:
|
|
@@ -21644,7 +21649,7 @@ Error generating stack: ` + c.message + `
|
|
|
21644
21649
|
return k8(h._context) + ".Provider";
|
|
21645
21650
|
case S1:
|
|
21646
21651
|
return "DehydratedFragment";
|
|
21647
|
-
case
|
|
21652
|
+
case I:
|
|
21648
21653
|
return jt(u, u.render, "ForwardRef");
|
|
21649
21654
|
case N:
|
|
21650
21655
|
return "Fragment";
|
|
@@ -25007,9 +25012,9 @@ Check the render method of \`` + e + "`." : "";
|
|
|
25007
25012
|
function Q(e, t) {
|
|
25008
25013
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
25009
25014
|
}
|
|
25010
|
-
var
|
|
25015
|
+
var e1 = typeof Object.is == "function" ? Object.is : Q;
|
|
25011
25016
|
function E1(e, t) {
|
|
25012
|
-
if (
|
|
25017
|
+
if (e1(e, t))
|
|
25013
25018
|
return !0;
|
|
25014
25019
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
25015
25020
|
return !1;
|
|
@@ -25018,7 +25023,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
25018
25023
|
return !1;
|
|
25019
25024
|
for (var h = 0; h < u.length; h++) {
|
|
25020
25025
|
var g = u[h];
|
|
25021
|
-
if (!L3.call(t, g) || !
|
|
25026
|
+
if (!L3.call(t, g) || !e1(e[g], t[g]))
|
|
25022
25027
|
return !1;
|
|
25023
25028
|
}
|
|
25024
25029
|
return !0;
|
|
@@ -28449,7 +28454,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
28449
28454
|
Previous: %s
|
|
28450
28455
|
Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
28451
28456
|
for (var u = 0; u < t.length && u < e.length; u++)
|
|
28452
|
-
if (!
|
|
28457
|
+
if (!e1(e[u], t[u]))
|
|
28453
28458
|
return !1;
|
|
28454
28459
|
return !0;
|
|
28455
28460
|
}
|
|
@@ -28600,7 +28605,7 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28600
28605
|
}
|
|
28601
28606
|
C1 = C1.next;
|
|
28602
28607
|
} while (C1 !== null && C1 !== O);
|
|
28603
|
-
l1 === null ? W = q : l1.next = o1,
|
|
28608
|
+
l1 === null ? W = q : l1.next = o1, e1(q, c.memoizedState) || to(), c.memoizedState = q, c.baseState = W, c.baseQueue = l1, h.lastRenderedState = q;
|
|
28604
28609
|
}
|
|
28605
28610
|
var Q2 = h.interleaved;
|
|
28606
28611
|
if (Q2 !== null) {
|
|
@@ -28626,7 +28631,7 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28626
28631
|
var O = D.action;
|
|
28627
28632
|
M = e(M, O), D = D.next;
|
|
28628
28633
|
} while (D !== S);
|
|
28629
|
-
|
|
28634
|
+
e1(M, c.memoizedState) || to(), c.memoizedState = M, c.baseQueue === null && (c.baseState = M), h.lastRenderedState = M;
|
|
28630
28635
|
}
|
|
28631
28636
|
return [M, g];
|
|
28632
28637
|
}
|
|
@@ -28643,7 +28648,7 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28643
28648
|
} else {
|
|
28644
28649
|
if (g = t(), !Sr) {
|
|
28645
28650
|
var M = t();
|
|
28646
|
-
|
|
28651
|
+
e1(g, M) || (C("The result of getSnapshot should be cached to avoid an infinite loop"), Sr = !0);
|
|
28647
28652
|
}
|
|
28648
28653
|
var S = Fu();
|
|
28649
28654
|
if (S === null)
|
|
@@ -28661,9 +28666,9 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28661
28666
|
var c = T3, h = F7(), g = t();
|
|
28662
28667
|
if (!Sr) {
|
|
28663
28668
|
var w = t();
|
|
28664
|
-
|
|
28669
|
+
e1(g, w) || (C("The result of getSnapshot should be cached to avoid an infinite loop"), Sr = !0);
|
|
28665
28670
|
}
|
|
28666
|
-
var M = h.memoizedState, S = !
|
|
28671
|
+
var M = h.memoizedState, S = !e1(M, g);
|
|
28667
28672
|
S && (h.memoizedState = g, to());
|
|
28668
28673
|
var D = h.queue;
|
|
28669
28674
|
if (Xi(bv.bind(null, c, D, e), [e]), D.getSnapshot !== t || S || // Check if the susbcribe function changed. We can save some memory by
|
|
@@ -28703,7 +28708,7 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28703
28708
|
var t = e.getSnapshot, u = e.value;
|
|
28704
28709
|
try {
|
|
28705
28710
|
var c = t();
|
|
28706
|
-
return !
|
|
28711
|
+
return !e1(u, c);
|
|
28707
28712
|
} catch {
|
|
28708
28713
|
return !0;
|
|
28709
28714
|
}
|
|
@@ -28878,7 +28883,7 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28878
28883
|
function Ev(e, t, u) {
|
|
28879
28884
|
var c = !K9(N0);
|
|
28880
28885
|
if (c) {
|
|
28881
|
-
if (!
|
|
28886
|
+
if (!e1(u, t)) {
|
|
28882
28887
|
var h = ti();
|
|
28883
28888
|
T3.lanes = Z2(T3.lanes, h), po(h), e.baseState = !0;
|
|
28884
28889
|
}
|
|
@@ -28975,7 +28980,7 @@ Incoming: %s`, h1, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
28975
28980
|
M = I1.current, I1.current = x6;
|
|
28976
28981
|
try {
|
|
28977
28982
|
var S = t.lastRenderedState, D = w(S, u);
|
|
28978
|
-
if (h.hasEagerState = !0, h.eagerState = D,
|
|
28983
|
+
if (h.hasEagerState = !0, h.eagerState = D, e1(D, S)) {
|
|
28979
28984
|
yV(e, t, h, c);
|
|
28980
28985
|
return;
|
|
28981
28986
|
}
|
|
@@ -29737,7 +29742,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
29737
29742
|
}
|
|
29738
29743
|
function QV(e, t) {
|
|
29739
29744
|
var u = e.tag;
|
|
29740
|
-
if ((e.mode & $2) === C2 && (u === y || u ===
|
|
29745
|
+
if ((e.mode & $2) === C2 && (u === y || u === I || u === i1)) {
|
|
29741
29746
|
var c = e.alternate;
|
|
29742
29747
|
c ? (e.updateQueue = c.updateQueue, e.memoizedState = c.memoizedState, e.lanes = c.lanes) : (e.updateQueue = null, e.memoizedState = null);
|
|
29743
29748
|
}
|
|
@@ -30152,7 +30157,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
30152
30157
|
return Cf(t, S), t.type = S = Fr(S), q = cf(null, t, S, O, c), q;
|
|
30153
30158
|
case L:
|
|
30154
30159
|
return t.type = S = zf(S), q = Jv(null, t, S, O, c), q;
|
|
30155
|
-
case
|
|
30160
|
+
case I:
|
|
30156
30161
|
return t.type = S = Uf(S), q = Qv(null, t, S, O, c), q;
|
|
30157
30162
|
case J: {
|
|
30158
30163
|
if (t.type !== t.elementType) {
|
|
@@ -30621,7 +30626,7 @@ Check the render method of \`` + c + "`.");
|
|
|
30621
30626
|
}
|
|
30622
30627
|
if (Qm(t, h, M), w !== null) {
|
|
30623
30628
|
var D = w.value;
|
|
30624
|
-
if (
|
|
30629
|
+
if (e1(D, M)) {
|
|
30625
30630
|
if (w.children === g.children && !Bs())
|
|
30626
30631
|
return u9(e, t, u);
|
|
30627
30632
|
} else
|
|
@@ -30783,7 +30788,7 @@ Check the render method of \`` + c + "`.");
|
|
|
30783
30788
|
return ng(e, t, u);
|
|
30784
30789
|
case k:
|
|
30785
30790
|
return bM(e, t, u);
|
|
30786
|
-
case
|
|
30791
|
+
case I: {
|
|
30787
30792
|
var C1 = t.type, $1 = t.pendingProps, h2 = t.elementType === C1 ? $1 : b6(C1, $1);
|
|
30788
30793
|
return Qv(e, t, C1, h2, u);
|
|
30789
30794
|
}
|
|
@@ -30795,7 +30800,7 @@ Check the render method of \`` + c + "`.");
|
|
|
30795
30800
|
return eM(e, t, u);
|
|
30796
30801
|
case P:
|
|
30797
30802
|
return wM(e, t, u);
|
|
30798
|
-
case
|
|
30803
|
+
case $:
|
|
30799
30804
|
return xM(e, t, u);
|
|
30800
30805
|
case J: {
|
|
30801
30806
|
var s2 = t.type, t3 = t.pendingProps, Q2 = b6(s2, t3);
|
|
@@ -30938,11 +30943,11 @@ Check the render method of \`` + c + "`.");
|
|
|
30938
30943
|
case d1:
|
|
30939
30944
|
case i1:
|
|
30940
30945
|
case y:
|
|
30941
|
-
case
|
|
30946
|
+
case I:
|
|
30942
30947
|
case N:
|
|
30943
30948
|
case Z:
|
|
30944
30949
|
case A:
|
|
30945
|
-
case
|
|
30950
|
+
case $:
|
|
30946
30951
|
case J:
|
|
30947
30952
|
return _4(t), null;
|
|
30948
30953
|
case L: {
|
|
@@ -31289,7 +31294,7 @@ Check the render method of \`` + c + "`.");
|
|
|
31289
31294
|
if ((u & Me) !== f2) {
|
|
31290
31295
|
switch (N3(e), e.tag) {
|
|
31291
31296
|
case y:
|
|
31292
|
-
case
|
|
31297
|
+
case I:
|
|
31293
31298
|
case i1:
|
|
31294
31299
|
break;
|
|
31295
31300
|
case L: {
|
|
@@ -31400,7 +31405,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
31400
31405
|
if ((u.flags & $6) !== f2)
|
|
31401
31406
|
switch (u.tag) {
|
|
31402
31407
|
case y:
|
|
31403
|
-
case
|
|
31408
|
+
case I:
|
|
31404
31409
|
case i1: {
|
|
31405
31410
|
if (!D4)
|
|
31406
31411
|
if (u.mode & J2)
|
|
@@ -31512,7 +31517,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
31512
31517
|
function PM(e) {
|
|
31513
31518
|
switch (e.tag) {
|
|
31514
31519
|
case y:
|
|
31515
|
-
case
|
|
31520
|
+
case I:
|
|
31516
31521
|
case i1: {
|
|
31517
31522
|
if (e.mode & J2)
|
|
31518
31523
|
try {
|
|
@@ -31742,7 +31747,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
31742
31747
|
return;
|
|
31743
31748
|
}
|
|
31744
31749
|
case y:
|
|
31745
|
-
case
|
|
31750
|
+
case I:
|
|
31746
31751
|
case J:
|
|
31747
31752
|
case i1: {
|
|
31748
31753
|
if (!D4) {
|
|
@@ -31849,7 +31854,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
31849
31854
|
var c = e.alternate, h = e.flags;
|
|
31850
31855
|
switch (e.tag) {
|
|
31851
31856
|
case y:
|
|
31852
|
-
case
|
|
31857
|
+
case I:
|
|
31853
31858
|
case J:
|
|
31854
31859
|
case i1: {
|
|
31855
31860
|
if (E6(t, e), C8(e), h & K2) {
|
|
@@ -32056,7 +32061,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32056
32061
|
var t = t2, u = t.child;
|
|
32057
32062
|
switch (t.tag) {
|
|
32058
32063
|
case y:
|
|
32059
|
-
case
|
|
32064
|
+
case I:
|
|
32060
32065
|
case J:
|
|
32061
32066
|
case i1: {
|
|
32062
32067
|
if (t.mode & J2)
|
|
@@ -32176,7 +32181,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32176
32181
|
function JM(e, t, u, c) {
|
|
32177
32182
|
switch (t.tag) {
|
|
32178
32183
|
case y:
|
|
32179
|
-
case
|
|
32184
|
+
case I:
|
|
32180
32185
|
case i1: {
|
|
32181
32186
|
if (t.mode & J2) {
|
|
32182
32187
|
JC();
|
|
@@ -32238,7 +32243,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32238
32243
|
function rE(e) {
|
|
32239
32244
|
switch (e.tag) {
|
|
32240
32245
|
case y:
|
|
32241
|
-
case
|
|
32246
|
+
case I:
|
|
32242
32247
|
case i1: {
|
|
32243
32248
|
e.mode & J2 ? (JC(), V6(T4 | t4, e, e.return), KC(e)) : V6(T4 | t4, e, e.return);
|
|
32244
32249
|
break;
|
|
@@ -32270,7 +32275,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32270
32275
|
function oE(e, t) {
|
|
32271
32276
|
switch (e.tag) {
|
|
32272
32277
|
case y:
|
|
32273
|
-
case
|
|
32278
|
+
case I:
|
|
32274
32279
|
case i1: {
|
|
32275
32280
|
e.mode & J2 ? (JC(), V6(T4, e, t), KC(e)) : V6(T4, e, t);
|
|
32276
32281
|
break;
|
|
@@ -32280,7 +32285,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32280
32285
|
function lE(e) {
|
|
32281
32286
|
switch (e.tag) {
|
|
32282
32287
|
case y:
|
|
32283
|
-
case
|
|
32288
|
+
case I:
|
|
32284
32289
|
case i1: {
|
|
32285
32290
|
try {
|
|
32286
32291
|
yt(n4 | t4, e);
|
|
@@ -32303,7 +32308,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32303
32308
|
function sE(e) {
|
|
32304
32309
|
switch (e.tag) {
|
|
32305
32310
|
case y:
|
|
32306
|
-
case
|
|
32311
|
+
case I:
|
|
32307
32312
|
case i1: {
|
|
32308
32313
|
try {
|
|
32309
32314
|
yt(T4 | t4, e);
|
|
@@ -32317,7 +32322,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32317
32322
|
function uE(e) {
|
|
32318
32323
|
switch (e.tag) {
|
|
32319
32324
|
case y:
|
|
32320
|
-
case
|
|
32325
|
+
case I:
|
|
32321
32326
|
case i1: {
|
|
32322
32327
|
try {
|
|
32323
32328
|
V6(n4 | t4, e, e.return);
|
|
@@ -32336,7 +32341,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32336
32341
|
function cE(e) {
|
|
32337
32342
|
switch (e.tag) {
|
|
32338
32343
|
case y:
|
|
32339
|
-
case
|
|
32344
|
+
case I:
|
|
32340
32345
|
case i1:
|
|
32341
32346
|
try {
|
|
32342
32347
|
V6(T4 | t4, e, e.return);
|
|
@@ -32598,7 +32603,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
32598
32603
|
for (var h = 0; h < c.length; h++) {
|
|
32599
32604
|
var g = c[h], w = g.getSnapshot, M = g.value;
|
|
32600
32605
|
try {
|
|
32601
|
-
if (!
|
|
32606
|
+
if (!e1(w(), M))
|
|
32602
32607
|
return !1;
|
|
32603
32608
|
} catch {
|
|
32604
32609
|
return !1;
|
|
@@ -33035,7 +33040,7 @@ Error message:
|
|
|
33035
33040
|
if ((e3 & O4) !== i4 || !(e.mode & $2))
|
|
33036
33041
|
return;
|
|
33037
33042
|
var t = e.tag;
|
|
33038
|
-
if (t !== V && t !== E && t !== L && t !== y && t !==
|
|
33043
|
+
if (t !== V && t !== E && t !== L && t !== y && t !== I && t !== J && t !== i1)
|
|
33039
33044
|
return;
|
|
33040
33045
|
var u = T2(e) || "ReactComponent";
|
|
33041
33046
|
if (Uu !== null) {
|
|
@@ -33076,7 +33081,7 @@ Error message:
|
|
|
33076
33081
|
if (c5 && !FV())
|
|
33077
33082
|
switch (e.tag) {
|
|
33078
33083
|
case y:
|
|
33079
|
-
case
|
|
33084
|
+
case I:
|
|
33080
33085
|
case i1: {
|
|
33081
33086
|
var t = pe && T2(pe) || "Unknown", u = t;
|
|
33082
33087
|
if (!Ff.has(u)) {
|
|
@@ -33119,7 +33124,7 @@ Error message:
|
|
|
33119
33124
|
if (e.mode & $2) {
|
|
33120
33125
|
if (!Tg())
|
|
33121
33126
|
return;
|
|
33122
|
-
} else if (!pE() || e3 !== i4 || e.tag !== y && e.tag !==
|
|
33127
|
+
} else if (!pE() || e3 !== i4 || e.tag !== y && e.tag !== I && e.tag !== i1)
|
|
33123
33128
|
return;
|
|
33124
33129
|
if (S6.current === null) {
|
|
33125
33130
|
var t = Ye;
|
|
@@ -33204,7 +33209,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
33204
33209
|
(typeof c == "function" || g === v2) && (h = !0);
|
|
33205
33210
|
break;
|
|
33206
33211
|
}
|
|
33207
|
-
case
|
|
33212
|
+
case I: {
|
|
33208
33213
|
(g === R1 || g === v2) && (h = !0);
|
|
33209
33214
|
break;
|
|
33210
33215
|
}
|
|
@@ -33258,7 +33263,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
33258
33263
|
case L:
|
|
33259
33264
|
S = M;
|
|
33260
33265
|
break;
|
|
33261
|
-
case
|
|
33266
|
+
case I:
|
|
33262
33267
|
S = M.render;
|
|
33263
33268
|
break;
|
|
33264
33269
|
}
|
|
@@ -33293,7 +33298,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
33293
33298
|
case L:
|
|
33294
33299
|
M = w;
|
|
33295
33300
|
break;
|
|
33296
|
-
case
|
|
33301
|
+
case I:
|
|
33297
33302
|
M = w.render;
|
|
33298
33303
|
break;
|
|
33299
33304
|
}
|
|
@@ -33371,7 +33376,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
33371
33376
|
if (e != null) {
|
|
33372
33377
|
var t = e.$$typeof;
|
|
33373
33378
|
if (t === R1)
|
|
33374
|
-
return
|
|
33379
|
+
return I;
|
|
33375
33380
|
if (t === E2)
|
|
33376
33381
|
return J;
|
|
33377
33382
|
}
|
|
@@ -33393,7 +33398,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
33393
33398
|
case L:
|
|
33394
33399
|
u.type = zf(e.type);
|
|
33395
33400
|
break;
|
|
33396
|
-
case
|
|
33401
|
+
case I:
|
|
33397
33402
|
u.type = Uf(e.type);
|
|
33398
33403
|
break;
|
|
33399
33404
|
}
|
|
@@ -33451,10 +33456,10 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
33451
33456
|
w = P;
|
|
33452
33457
|
break e;
|
|
33453
33458
|
case b1:
|
|
33454
|
-
w =
|
|
33459
|
+
w = $;
|
|
33455
33460
|
break e;
|
|
33456
33461
|
case R1:
|
|
33457
|
-
w =
|
|
33462
|
+
w = I, M = Uf(M);
|
|
33458
33463
|
break e;
|
|
33459
33464
|
case E2:
|
|
33460
33465
|
w = J;
|
|
@@ -34515,7 +34520,7 @@ var eA = function(a, o) {
|
|
|
34515
34520
|
function tA(r) {
|
|
34516
34521
|
var a, o = r.state, s = r.name, i = r.options, p = o.elements.arrow, C = o.modifiersData.popperOffsets, v = w8(o.placement), y = Wh(v), L = [q5, q7].indexOf(v) >= 0, V = L ? "height" : "width";
|
|
34517
34522
|
if (!(!p || !C)) {
|
|
34518
|
-
var E = eA(i.padding, o), k = Yh(p), _ = y === "y" ? Q5 : q5, R = y === "y" ? Q7 : q7, N = o.rects.reference[V] + o.rects.reference[y] - C[y] - o.rects.popper[V], Z = C[y] - o.rects.reference[y],
|
|
34523
|
+
var E = eA(i.padding, o), k = Yh(p), _ = y === "y" ? Q5 : q5, R = y === "y" ? Q7 : q7, N = o.rects.reference[V] + o.rects.reference[y] - C[y] - o.rects.popper[V], Z = C[y] - o.rects.reference[y], $ = qo(p), P = $ ? y === "y" ? $.clientHeight || 0 : $.clientWidth || 0 : 0, I = N / 2 - Z / 2, A = E[_], K = P - k[V] - E[R], J = P / 2 - k[V] / 2 + I, i1 = Ro(A, J, K), d1 = y;
|
|
34519
34524
|
o.modifiersData[s] = (a = {}, a[d1] = i1, a.centerOffset = i1 - J, a);
|
|
34520
34525
|
}
|
|
34521
34526
|
}
|
|
@@ -34557,7 +34562,7 @@ function AL(r) {
|
|
|
34557
34562
|
y: N
|
|
34558
34563
|
};
|
|
34559
34564
|
_ = Z.x, N = Z.y;
|
|
34560
|
-
var
|
|
34565
|
+
var $ = C.hasOwnProperty("x"), P = C.hasOwnProperty("y"), I = q5, A = Q5, K = window;
|
|
34561
34566
|
if (L) {
|
|
34562
34567
|
var J = qo(o), i1 = "clientHeight", d1 = "clientWidth";
|
|
34563
34568
|
if (J === v7(o) && (J = Ot(o), b9(J).position !== "static" && v === "absolute" && (i1 = "scrollHeight", d1 = "scrollWidth")), J = J, i === Q5 || (i === q5 || i === q7) && p === Fo) {
|
|
@@ -34569,7 +34574,7 @@ function AL(r) {
|
|
|
34569
34574
|
N -= c1 - s.height, N *= y ? 1 : -1;
|
|
34570
34575
|
}
|
|
34571
34576
|
if (i === q5 || (i === Q5 || i === Q7) && p === Fo) {
|
|
34572
|
-
|
|
34577
|
+
I = q7;
|
|
34573
34578
|
var S1 = E && J === K && K.visualViewport ? K.visualViewport.width : (
|
|
34574
34579
|
// $FlowFixMe[prop-missing]
|
|
34575
34580
|
J[d1]
|
|
@@ -34588,9 +34593,9 @@ function AL(r) {
|
|
|
34588
34593
|
};
|
|
34589
34594
|
if (_ = x1.x, N = x1.y, y) {
|
|
34590
34595
|
var L1;
|
|
34591
|
-
return Object.assign({}, M1, (L1 = {}, L1[A] = P ? "0" : "", L1[
|
|
34596
|
+
return Object.assign({}, M1, (L1 = {}, L1[A] = P ? "0" : "", L1[I] = $ ? "0" : "", L1.transform = (K.devicePixelRatio || 1) <= 1 ? "translate(" + _ + "px, " + N + "px)" : "translate3d(" + _ + "px, " + N + "px, 0)", L1));
|
|
34592
34597
|
}
|
|
34593
|
-
return Object.assign({}, M1, (a = {}, a[A] = P ? N + "px" : "", a[
|
|
34598
|
+
return Object.assign({}, M1, (a = {}, a[A] = P ? N + "px" : "", a[I] = $ ? _ + "px" : "", a.transform = "", a));
|
|
34594
34599
|
}
|
|
34595
34600
|
function oA(r) {
|
|
34596
34601
|
var a = r.state, o = r.options, s = o.gpuAcceleration, i = s === void 0 ? !0 : s, p = o.adaptive, C = p === void 0 ? !0 : p, v = o.roundOffsets, y = v === void 0 ? !0 : v, L = {
|
|
@@ -34790,15 +34795,15 @@ function Bw(r) {
|
|
|
34790
34795
|
}
|
|
34791
34796
|
function jo(r, a) {
|
|
34792
34797
|
a === void 0 && (a = {});
|
|
34793
|
-
var o = a, s = o.placement, i = s === void 0 ? r.placement : s, p = o.strategy, C = p === void 0 ? r.strategy : p, v = o.boundary, y = v === void 0 ? Nj : v, L = o.rootBoundary, V = L === void 0 ? kw : L, E = o.elementContext, k = E === void 0 ? Eo : E, _ = o.altBoundary, R = _ === void 0 ? !1 : _, N = o.padding, Z = N === void 0 ? 0 : N,
|
|
34798
|
+
var o = a, s = o.placement, i = s === void 0 ? r.placement : s, p = o.strategy, C = p === void 0 ? r.strategy : p, v = o.boundary, y = v === void 0 ? Nj : v, L = o.rootBoundary, V = L === void 0 ? kw : L, E = o.elementContext, k = E === void 0 ? Eo : E, _ = o.altBoundary, R = _ === void 0 ? !1 : _, N = o.padding, Z = N === void 0 ? 0 : N, $ = Zw(typeof Z != "number" ? Z : Ow(Z, Qo)), P = k === Eo ? Bj : Eo, I = r.rects.popper, A = r.elements[R ? P : k], K = mA(K0(A) ? A : A.contextElement || Ot(r.elements.popper), y, V, C), J = ca(r.elements.reference), i1 = Bw({
|
|
34794
34799
|
reference: J,
|
|
34795
|
-
element:
|
|
34800
|
+
element: I,
|
|
34796
34801
|
placement: i
|
|
34797
|
-
}), d1 = xh(Object.assign({},
|
|
34798
|
-
top: K.top - c1.top +
|
|
34799
|
-
bottom: c1.bottom - K.bottom +
|
|
34800
|
-
left: K.left - c1.left +
|
|
34801
|
-
right: c1.right - K.right +
|
|
34802
|
+
}), d1 = xh(Object.assign({}, I, i1)), c1 = k === Eo ? d1 : J, S1 = {
|
|
34803
|
+
top: K.top - c1.top + $.top,
|
|
34804
|
+
bottom: c1.bottom - K.bottom + $.bottom,
|
|
34805
|
+
left: K.left - c1.left + $.left,
|
|
34806
|
+
right: c1.right - K.right + $.right
|
|
34802
34807
|
}, M1 = r.modifiersData.offset;
|
|
34803
34808
|
if (k === Eo && M1) {
|
|
34804
34809
|
var x1 = M1[i];
|
|
@@ -34838,7 +34843,7 @@ function gA(r) {
|
|
|
34838
34843
|
function yA(r) {
|
|
34839
34844
|
var a = r.state, o = r.options, s = r.name;
|
|
34840
34845
|
if (!a.modifiersData[s]._skip) {
|
|
34841
|
-
for (var i = o.mainAxis, p = i === void 0 ? !0 : i, C = o.altAxis, v = C === void 0 ? !0 : C, y = o.fallbackPlacements, L = o.padding, V = o.boundary, E = o.rootBoundary, k = o.altBoundary, _ = o.flipVariations, R = _ === void 0 ? !0 : _, N = o.allowedAutoPlacements, Z = a.options.placement,
|
|
34846
|
+
for (var i = o.mainAxis, p = i === void 0 ? !0 : i, C = o.altAxis, v = C === void 0 ? !0 : C, y = o.fallbackPlacements, L = o.padding, V = o.boundary, E = o.rootBoundary, k = o.altBoundary, _ = o.flipVariations, R = _ === void 0 ? !0 : _, N = o.allowedAutoPlacements, Z = a.options.placement, $ = w8(Z), P = $ === Z, I = y || (P || !R ? [lc(Z)] : gA(Z)), A = [Z].concat(I).reduce(function(x2, n3) {
|
|
34842
34847
|
return x2.concat(w8(n3) === Ih ? vA(a, {
|
|
34843
34848
|
placement: n3,
|
|
34844
34849
|
boundary: V,
|
|
@@ -34981,7 +34986,7 @@ function kA(r) {
|
|
|
34981
34986
|
rootBoundary: L,
|
|
34982
34987
|
padding: E,
|
|
34983
34988
|
altBoundary: V
|
|
34984
|
-
}),
|
|
34989
|
+
}), $ = w8(a.placement), P = da(a.placement), I = !P, A = Wh($), K = SA(A), J = a.modifiersData.popperOffsets, i1 = a.rects.reference, d1 = a.rects.popper, c1 = typeof N == "function" ? N(Object.assign({}, a.rects, {
|
|
34985
34990
|
placement: a.placement
|
|
34986
34991
|
})) : N, S1 = typeof c1 == "number" ? {
|
|
34987
34992
|
mainAxis: c1,
|
|
@@ -34998,11 +35003,11 @@ function kA(r) {
|
|
|
34998
35003
|
var L1, n2 = A === "y" ? Q5 : q5, _1 = A === "y" ? Q7 : q7, B1 = A === "y" ? "height" : "width", G1 = J[A], m1 = G1 + Z[n2], k1 = G1 - Z[_1], v1 = _ ? -d1[B1] / 2 : 0, Q1 = P === sa ? i1[B1] : d1[B1], q1 = P === sa ? -d1[B1] : -i1[B1], A1 = a.elements.arrow, x2 = _ && A1 ? Yh(A1) : {
|
|
34999
35004
|
width: 0,
|
|
35000
35005
|
height: 0
|
|
35001
|
-
}, n3 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Rw(), H2 = n3[n2], V2 = n3[_1], o2 = Ro(0, i1[B1], x2[B1]), l2 =
|
|
35006
|
+
}, n3 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Rw(), H2 = n3[n2], V2 = n3[_1], o2 = Ro(0, i1[B1], x2[B1]), l2 = I ? i1[B1] / 2 - v1 - o2 - H2 - S1.mainAxis : Q1 - o2 - H2 - S1.mainAxis, D2 = I ? -i1[B1] / 2 + v1 + o2 + V2 + S1.mainAxis : q1 + o2 + V2 + S1.mainAxis, N2 = a.elements.arrow && qo(a.elements.arrow), L3 = N2 ? A === "y" ? N2.clientTop || 0 : N2.clientLeft || 0 : 0, X2 = (L1 = M1 == null ? void 0 : M1[A]) != null ? L1 : 0, k2 = G1 + l2 - X2 - L3, P2 = G1 + D2 - X2, h3 = Ro(_ ? Vc(m1, k2) : m1, G1, _ ? W0(k1, P2) : k1);
|
|
35002
35007
|
J[A] = h3, x1[A] = h3 - G1;
|
|
35003
35008
|
}
|
|
35004
35009
|
if (v) {
|
|
35005
|
-
var Z1, R2 = A === "x" ? Q5 : q5, A3 = A === "x" ? Q7 : q7, F2 = J[K], r3 = K === "y" ? "height" : "width", M2 = F2 + Z[R2], i3 = F2 - Z[A3], Ze = [Q5, q5].indexOf(
|
|
35010
|
+
var Z1, R2 = A === "x" ? Q5 : q5, A3 = A === "x" ? Q7 : q7, F2 = J[K], r3 = K === "y" ? "height" : "width", M2 = F2 + Z[R2], i3 = F2 - Z[A3], Ze = [Q5, q5].indexOf($) !== -1, oe = (Z1 = M1 == null ? void 0 : M1[K]) != null ? Z1 : 0, Oe = Ze ? M2 : F2 - i1[r3] - d1[r3] - oe + S1.altAxis, b4 = Ze ? F2 + i1[r3] + d1[r3] - oe - S1.altAxis : i3, Ie = _ && Ze ? Jj(Oe, F2, b4) : Ro(_ ? Oe : M2, F2, _ ? b4 : i3);
|
|
35006
35011
|
J[K] = Ie, x1[K] = Ie - F2;
|
|
35007
35012
|
}
|
|
35008
35013
|
a.modifiersData[s] = x1;
|
|
@@ -35124,14 +35129,14 @@ function FA(r) {
|
|
|
35124
35129
|
styles: {}
|
|
35125
35130
|
}, E = [], k = !1, _ = {
|
|
35126
35131
|
state: V,
|
|
35127
|
-
setOptions: function(
|
|
35128
|
-
var P = typeof
|
|
35132
|
+
setOptions: function($) {
|
|
35133
|
+
var P = typeof $ == "function" ? $(V.options) : $;
|
|
35129
35134
|
N(), V.options = Object.assign({}, p, V.options, P), V.scrollParents = {
|
|
35130
35135
|
reference: K0(v) ? Zo(v) : v.contextElement ? Zo(v.contextElement) : [],
|
|
35131
35136
|
popper: Zo(y)
|
|
35132
35137
|
};
|
|
35133
|
-
var
|
|
35134
|
-
return V.orderedModifiers =
|
|
35138
|
+
var I = NA(PA([].concat(s, V.options.modifiers)));
|
|
35139
|
+
return V.orderedModifiers = I.filter(function(A) {
|
|
35135
35140
|
return A.enabled;
|
|
35136
35141
|
}), R(), _.update();
|
|
35137
35142
|
},
|
|
@@ -35142,11 +35147,11 @@ function FA(r) {
|
|
|
35142
35147
|
// prefer the async Popper#update method
|
|
35143
35148
|
forceUpdate: function() {
|
|
35144
35149
|
if (!k) {
|
|
35145
|
-
var
|
|
35146
|
-
if (WL(P,
|
|
35150
|
+
var $ = V.elements, P = $.reference, I = $.popper;
|
|
35151
|
+
if (WL(P, I)) {
|
|
35147
35152
|
V.rects = {
|
|
35148
|
-
reference: ZA(P, qo(
|
|
35149
|
-
popper: Yh(
|
|
35153
|
+
reference: ZA(P, qo(I), V.options.strategy === "fixed"),
|
|
35154
|
+
popper: Yh(I)
|
|
35150
35155
|
}, V.reset = !1, V.placement = V.options.placement, V.orderedModifiers.forEach(function(S1) {
|
|
35151
35156
|
return V.modifiersData[S1.name] = Object.assign({}, S1.data);
|
|
35152
35157
|
});
|
|
@@ -35184,13 +35189,13 @@ function FA(r) {
|
|
|
35184
35189
|
});
|
|
35185
35190
|
function R() {
|
|
35186
35191
|
V.orderedModifiers.forEach(function(Z) {
|
|
35187
|
-
var
|
|
35192
|
+
var $ = Z.name, P = Z.options, I = P === void 0 ? {} : P, A = Z.effect;
|
|
35188
35193
|
if (typeof A == "function") {
|
|
35189
35194
|
var K = A({
|
|
35190
35195
|
state: V,
|
|
35191
|
-
name:
|
|
35196
|
+
name: $,
|
|
35192
35197
|
instance: _,
|
|
35193
|
-
options:
|
|
35198
|
+
options: I
|
|
35194
35199
|
}), J = function() {
|
|
35195
35200
|
};
|
|
35196
35201
|
E.push(K || J);
|
|
@@ -35336,7 +35341,7 @@ var QA = [], qA = function(a, o, s) {
|
|
|
35336
35341
|
return Promise.resolve(null);
|
|
35337
35342
|
}, KA = [];
|
|
35338
35343
|
function JA(r) {
|
|
35339
|
-
var a = r.placement, o = a === void 0 ? "bottom" : a, s = r.strategy, i = s === void 0 ? "absolute" : s, p = r.modifiers, C = p === void 0 ? KA : p, v = r.referenceElement, y = r.onFirstUpdate, L = r.innerRef, V = r.children, E = d.useContext(Vw), k = d.useState(null), _ = k[0], R = k[1], N = d.useState(null), Z = N[0],
|
|
35344
|
+
var a = r.placement, o = a === void 0 ? "bottom" : a, s = r.strategy, i = s === void 0 ? "absolute" : s, p = r.modifiers, C = p === void 0 ? KA : p, v = r.referenceElement, y = r.onFirstUpdate, L = r.innerRef, V = r.children, E = d.useContext(Vw), k = d.useState(null), _ = k[0], R = k[1], N = d.useState(null), Z = N[0], $ = N[1];
|
|
35340
35345
|
d.useEffect(function() {
|
|
35341
35346
|
bh(L, _);
|
|
35342
35347
|
}, [L, _]);
|
|
@@ -35353,7 +35358,7 @@ function JA(r) {
|
|
|
35353
35358
|
}
|
|
35354
35359
|
}])
|
|
35355
35360
|
};
|
|
35356
|
-
}, [o, i, y, C, Z]),
|
|
35361
|
+
}, [o, i, y, C, Z]), I = qA(v || E, _, P), A = I.state, K = I.styles, J = I.forceUpdate, i1 = I.update, d1 = d.useMemo(function() {
|
|
35357
35362
|
return {
|
|
35358
35363
|
ref: R,
|
|
35359
35364
|
style: K.popper,
|
|
@@ -35362,12 +35367,12 @@ function JA(r) {
|
|
|
35362
35367
|
isReferenceHidden: A && A.modifiersData.hide ? A.modifiersData.hide.isReferenceHidden : null,
|
|
35363
35368
|
arrowProps: {
|
|
35364
35369
|
style: K.arrow,
|
|
35365
|
-
ref:
|
|
35370
|
+
ref: $
|
|
35366
35371
|
},
|
|
35367
35372
|
forceUpdate: J || GA,
|
|
35368
35373
|
update: i1 || XA
|
|
35369
35374
|
};
|
|
35370
|
-
}, [R,
|
|
35375
|
+
}, [R, $, o, A, K, i1, J]);
|
|
35371
35376
|
return Ew(V)(d1);
|
|
35372
35377
|
}
|
|
35373
35378
|
var ez = process.env.NODE_ENV !== "production", Pw = function() {
|
|
@@ -35861,19 +35866,19 @@ function mz(r, a, o, s) {
|
|
|
35861
35866
|
return i;
|
|
35862
35867
|
}
|
|
35863
35868
|
var vz = Zc(function(r) {
|
|
35864
|
-
y4(o,
|
|
35869
|
+
y4(o, t1.Component);
|
|
35865
35870
|
var a = L4(o);
|
|
35866
35871
|
function o(s) {
|
|
35867
35872
|
var i;
|
|
35868
35873
|
v4(this, o), j(U(i = a.call(this, s)), "renderOptions", function() {
|
|
35869
35874
|
var y = i.props.year, L = i.state.yearsList.map(function(k) {
|
|
35870
|
-
return
|
|
35875
|
+
return t1.createElement("div", { className: y === k ? "react-datepicker__year-option react-datepicker__year-option--selected_year" : "react-datepicker__year-option", key: k, onClick: i.onChange.bind(U(i), k), "aria-selected": y === k ? "true" : void 0 }, y === k ? t1.createElement("span", { className: "react-datepicker__year-option--selected" }, "✓") : "", k);
|
|
35871
35876
|
}), V = i.props.minDate ? G2(i.props.minDate) : null, E = i.props.maxDate ? G2(i.props.maxDate) : null;
|
|
35872
35877
|
return E && i.state.yearsList.find(function(k) {
|
|
35873
35878
|
return k === E;
|
|
35874
|
-
}) || L.unshift(
|
|
35879
|
+
}) || L.unshift(t1.createElement("div", { className: "react-datepicker__year-option", key: "upcoming", onClick: i.incrementYears }, t1.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming" }))), V && i.state.yearsList.find(function(k) {
|
|
35875
35880
|
return k === V;
|
|
35876
|
-
}) || L.push(
|
|
35881
|
+
}) || L.push(t1.createElement("div", { className: "react-datepicker__year-option", key: "previous", onClick: i.decrementYears }, t1.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous" }))), L;
|
|
35877
35882
|
}), j(U(i), "onChange", function(y) {
|
|
35878
35883
|
i.props.onChange(y);
|
|
35879
35884
|
}), j(U(i), "handleClickOutside", function() {
|
|
@@ -35901,28 +35906,28 @@ var vz = Zc(function(r) {
|
|
|
35901
35906
|
}
|
|
35902
35907
|
} }, { key: "render", value: function() {
|
|
35903
35908
|
var s = H5({ "react-datepicker__year-dropdown": !0, "react-datepicker__year-dropdown--scrollable": this.props.scrollableYearDropdown });
|
|
35904
|
-
return
|
|
35909
|
+
return t1.createElement("div", { className: s, ref: this.dropdownRef }, this.renderOptions());
|
|
35905
35910
|
} }]), o;
|
|
35906
35911
|
}()), gz = function(r) {
|
|
35907
|
-
y4(o,
|
|
35912
|
+
y4(o, t1.Component);
|
|
35908
35913
|
var a = L4(o);
|
|
35909
35914
|
function o() {
|
|
35910
35915
|
var s;
|
|
35911
35916
|
v4(this, o);
|
|
35912
35917
|
for (var i = arguments.length, p = new Array(i), C = 0; C < i; C++) p[C] = arguments[C];
|
|
35913
35918
|
return j(U(s = a.call.apply(a, [this].concat(p))), "state", { dropdownVisible: !1 }), j(U(s), "renderSelectOptions", function() {
|
|
35914
|
-
for (var v = s.props.minDate ? G2(s.props.minDate) : 1900, y = s.props.maxDate ? G2(s.props.maxDate) : 2100, L = [], V = v; V <= y; V++) L.push(
|
|
35919
|
+
for (var v = s.props.minDate ? G2(s.props.minDate) : 1900, y = s.props.maxDate ? G2(s.props.maxDate) : 2100, L = [], V = v; V <= y; V++) L.push(t1.createElement("option", { key: V, value: V }, V));
|
|
35915
35920
|
return L;
|
|
35916
35921
|
}), j(U(s), "onSelectChange", function(v) {
|
|
35917
35922
|
s.onChange(v.target.value);
|
|
35918
35923
|
}), j(U(s), "renderSelectMode", function() {
|
|
35919
|
-
return
|
|
35924
|
+
return t1.createElement("select", { value: s.props.year, className: "react-datepicker__year-select", onChange: s.onSelectChange }, s.renderSelectOptions());
|
|
35920
35925
|
}), j(U(s), "renderReadView", function(v) {
|
|
35921
|
-
return
|
|
35926
|
+
return t1.createElement("div", { key: "read", style: { visibility: v ? "visible" : "hidden" }, className: "react-datepicker__year-read-view", onClick: function(y) {
|
|
35922
35927
|
return s.toggleDropdown(y);
|
|
35923
|
-
} },
|
|
35928
|
+
} }, t1.createElement("span", { className: "react-datepicker__year-read-view--down-arrow" }), t1.createElement("span", { className: "react-datepicker__year-read-view--selected-year" }, s.props.year));
|
|
35924
35929
|
}), j(U(s), "renderDropdown", function() {
|
|
35925
|
-
return
|
|
35930
|
+
return t1.createElement(vz, { key: "dropdown", year: s.props.year, onChange: s.onChange, onCancel: s.toggleDropdown, minDate: s.props.minDate, maxDate: s.props.maxDate, scrollableYearDropdown: s.props.scrollableYearDropdown, yearDropdownItemNumber: s.props.yearDropdownItemNumber });
|
|
35926
35931
|
}), j(U(s), "renderScrollMode", function() {
|
|
35927
35932
|
var v = s.state.dropdownVisible, y = [s.renderReadView(!v)];
|
|
35928
35933
|
return v && y.unshift(s.renderDropdown()), y;
|
|
@@ -35949,10 +35954,10 @@ var vz = Zc(function(r) {
|
|
|
35949
35954
|
case "select":
|
|
35950
35955
|
s = this.renderSelectMode();
|
|
35951
35956
|
}
|
|
35952
|
-
return
|
|
35957
|
+
return t1.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, s);
|
|
35953
35958
|
} }]), o;
|
|
35954
35959
|
}(), yz = Zc(function(r) {
|
|
35955
|
-
y4(o,
|
|
35960
|
+
y4(o, t1.Component);
|
|
35956
35961
|
var a = L4(o);
|
|
35957
35962
|
function o() {
|
|
35958
35963
|
var s;
|
|
@@ -35962,7 +35967,7 @@ var vz = Zc(function(r) {
|
|
|
35962
35967
|
return s.props.month === v;
|
|
35963
35968
|
}), j(U(s), "renderOptions", function() {
|
|
35964
35969
|
return s.props.monthNames.map(function(v, y) {
|
|
35965
|
-
return
|
|
35970
|
+
return t1.createElement("div", { className: s.isSelectedMonth(y) ? "react-datepicker__month-option react-datepicker__month-option--selected_month" : "react-datepicker__month-option", key: v, onClick: s.onChange.bind(U(s), y), "aria-selected": s.isSelectedMonth(y) ? "true" : void 0 }, s.isSelectedMonth(y) ? t1.createElement("span", { className: "react-datepicker__month-option--selected" }, "✓") : "", v);
|
|
35966
35971
|
});
|
|
35967
35972
|
}), j(U(s), "onChange", function(v) {
|
|
35968
35973
|
return s.props.onChange(v);
|
|
@@ -35971,10 +35976,10 @@ var vz = Zc(function(r) {
|
|
|
35971
35976
|
}), s;
|
|
35972
35977
|
}
|
|
35973
35978
|
return g4(o, [{ key: "render", value: function() {
|
|
35974
|
-
return
|
|
35979
|
+
return t1.createElement("div", { className: "react-datepicker__month-dropdown" }, this.renderOptions());
|
|
35975
35980
|
} }]), o;
|
|
35976
35981
|
}()), Lz = function(r) {
|
|
35977
|
-
y4(o,
|
|
35982
|
+
y4(o, t1.Component);
|
|
35978
35983
|
var a = L4(o);
|
|
35979
35984
|
function o() {
|
|
35980
35985
|
var s;
|
|
@@ -35982,16 +35987,16 @@ var vz = Zc(function(r) {
|
|
|
35982
35987
|
for (var i = arguments.length, p = new Array(i), C = 0; C < i; C++) p[C] = arguments[C];
|
|
35983
35988
|
return j(U(s = a.call.apply(a, [this].concat(p))), "state", { dropdownVisible: !1 }), j(U(s), "renderSelectOptions", function(v) {
|
|
35984
35989
|
return v.map(function(y, L) {
|
|
35985
|
-
return
|
|
35990
|
+
return t1.createElement("option", { key: L, value: L }, y);
|
|
35986
35991
|
});
|
|
35987
35992
|
}), j(U(s), "renderSelectMode", function(v) {
|
|
35988
|
-
return
|
|
35993
|
+
return t1.createElement("select", { value: s.props.month, className: "react-datepicker__month-select", onChange: function(y) {
|
|
35989
35994
|
return s.onChange(y.target.value);
|
|
35990
35995
|
} }, s.renderSelectOptions(v));
|
|
35991
35996
|
}), j(U(s), "renderReadView", function(v, y) {
|
|
35992
|
-
return
|
|
35997
|
+
return t1.createElement("div", { key: "read", style: { visibility: v ? "visible" : "hidden" }, className: "react-datepicker__month-read-view", onClick: s.toggleDropdown }, t1.createElement("span", { className: "react-datepicker__month-read-view--down-arrow" }), t1.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, y[s.props.month]));
|
|
35993
35998
|
}), j(U(s), "renderDropdown", function(v) {
|
|
35994
|
-
return
|
|
35999
|
+
return t1.createElement(yz, { key: "dropdown", month: s.props.month, monthNames: v, onChange: s.onChange, onCancel: s.toggleDropdown });
|
|
35995
36000
|
}), j(U(s), "renderScrollMode", function(v) {
|
|
35996
36001
|
var y = s.state.dropdownVisible, L = [s.renderReadView(!y, v)];
|
|
35997
36002
|
return y && L.unshift(s.renderDropdown(v)), L;
|
|
@@ -36014,7 +36019,7 @@ var vz = Zc(function(r) {
|
|
|
36014
36019
|
case "select":
|
|
36015
36020
|
s = this.renderSelectMode(p);
|
|
36016
36021
|
}
|
|
36017
|
-
return
|
|
36022
|
+
return t1.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, s);
|
|
36018
36023
|
} }]), o;
|
|
36019
36024
|
}();
|
|
36020
36025
|
function bz(r, a) {
|
|
@@ -36022,14 +36027,14 @@ function bz(r, a) {
|
|
|
36022
36027
|
return o;
|
|
36023
36028
|
}
|
|
36024
36029
|
var ac, wz = Zc(function(r) {
|
|
36025
|
-
y4(o,
|
|
36030
|
+
y4(o, t1.Component);
|
|
36026
36031
|
var a = L4(o);
|
|
36027
36032
|
function o(s) {
|
|
36028
36033
|
var i;
|
|
36029
36034
|
return v4(this, o), j(U(i = a.call(this, s)), "renderOptions", function() {
|
|
36030
36035
|
return i.state.monthYearsList.map(function(p) {
|
|
36031
36036
|
var C = ph(p), v = St(i.props.date, p) && k6(i.props.date, p);
|
|
36032
|
-
return
|
|
36037
|
+
return t1.createElement("div", { className: v ? "react-datepicker__month-year-option--selected_month-year" : "react-datepicker__month-year-option", key: C, onClick: i.onChange.bind(U(i), C), "aria-selected": v ? "true" : void 0 }, v ? t1.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "✓") : "", Re(p, i.props.dateFormat, i.props.locale));
|
|
36033
36038
|
});
|
|
36034
36039
|
}), j(U(i), "onChange", function(p) {
|
|
36035
36040
|
return i.props.onChange(p);
|
|
@@ -36039,10 +36044,10 @@ var ac, wz = Zc(function(r) {
|
|
|
36039
36044
|
}
|
|
36040
36045
|
return g4(o, [{ key: "render", value: function() {
|
|
36041
36046
|
var s = H5({ "react-datepicker__month-year-dropdown": !0, "react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown });
|
|
36042
|
-
return
|
|
36047
|
+
return t1.createElement("div", { className: s }, this.renderOptions());
|
|
36043
36048
|
} }]), o;
|
|
36044
36049
|
}()), xz = function(r) {
|
|
36045
|
-
y4(o,
|
|
36050
|
+
y4(o, t1.Component);
|
|
36046
36051
|
var a = L4(o);
|
|
36047
36052
|
function o() {
|
|
36048
36053
|
var s;
|
|
@@ -36051,20 +36056,20 @@ var ac, wz = Zc(function(r) {
|
|
|
36051
36056
|
return j(U(s = a.call.apply(a, [this].concat(p))), "state", { dropdownVisible: !1 }), j(U(s), "renderSelectOptions", function() {
|
|
36052
36057
|
for (var v = Tt(s.props.minDate), y = Tt(s.props.maxDate), L = []; !_t(v, y); ) {
|
|
36053
36058
|
var V = ph(v);
|
|
36054
|
-
L.push(
|
|
36059
|
+
L.push(t1.createElement("option", { key: V, value: V }, Re(v, s.props.dateFormat, s.props.locale))), v = T6(v, 1);
|
|
36055
36060
|
}
|
|
36056
36061
|
return L;
|
|
36057
36062
|
}), j(U(s), "onSelectChange", function(v) {
|
|
36058
36063
|
s.onChange(v.target.value);
|
|
36059
36064
|
}), j(U(s), "renderSelectMode", function() {
|
|
36060
|
-
return
|
|
36065
|
+
return t1.createElement("select", { value: ph(Tt(s.props.date)), className: "react-datepicker__month-year-select", onChange: s.onSelectChange }, s.renderSelectOptions());
|
|
36061
36066
|
}), j(U(s), "renderReadView", function(v) {
|
|
36062
36067
|
var y = Re(s.props.date, s.props.dateFormat, s.props.locale);
|
|
36063
|
-
return
|
|
36068
|
+
return t1.createElement("div", { key: "read", style: { visibility: v ? "visible" : "hidden" }, className: "react-datepicker__month-year-read-view", onClick: function(L) {
|
|
36064
36069
|
return s.toggleDropdown(L);
|
|
36065
|
-
} },
|
|
36070
|
+
} }, t1.createElement("span", { className: "react-datepicker__month-year-read-view--down-arrow" }), t1.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, y));
|
|
36066
36071
|
}), j(U(s), "renderDropdown", function() {
|
|
36067
|
-
return
|
|
36072
|
+
return t1.createElement(wz, { key: "dropdown", date: s.props.date, dateFormat: s.props.dateFormat, onChange: s.onChange, onCancel: s.toggleDropdown, minDate: s.props.minDate, maxDate: s.props.maxDate, scrollableMonthYearDropdown: s.props.scrollableMonthYearDropdown, locale: s.props.locale });
|
|
36068
36073
|
}), j(U(s), "renderScrollMode", function() {
|
|
36069
36074
|
var v = s.state.dropdownVisible, y = [s.renderReadView(!v)];
|
|
36070
36075
|
return v && y.unshift(s.renderDropdown()), y;
|
|
@@ -36085,16 +36090,16 @@ var ac, wz = Zc(function(r) {
|
|
|
36085
36090
|
case "select":
|
|
36086
36091
|
s = this.renderSelectMode();
|
|
36087
36092
|
}
|
|
36088
|
-
return
|
|
36093
|
+
return t1.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, s);
|
|
36089
36094
|
} }]), o;
|
|
36090
36095
|
}(), Hz = function(r) {
|
|
36091
|
-
y4(o,
|
|
36096
|
+
y4(o, t1.Component);
|
|
36092
36097
|
var a = L4(o);
|
|
36093
36098
|
function o() {
|
|
36094
36099
|
var s;
|
|
36095
36100
|
v4(this, o);
|
|
36096
36101
|
for (var i = arguments.length, p = new Array(i), C = 0; C < i; C++) p[C] = arguments[C];
|
|
36097
|
-
return j(U(s = a.call.apply(a, [this].concat(p))), "dayEl",
|
|
36102
|
+
return j(U(s = a.call.apply(a, [this].concat(p))), "dayEl", t1.createRef()), j(U(s), "handleClick", function(v) {
|
|
36098
36103
|
!s.isDisabled() && s.props.onClick && s.props.onClick(v);
|
|
36099
36104
|
}), j(U(s), "handleMouseEnter", function(v) {
|
|
36100
36105
|
!s.isDisabled() && s.props.onMouseEnter && s.props.onMouseEnter(v);
|
|
@@ -36161,7 +36166,7 @@ var ac, wz = Zc(function(r) {
|
|
|
36161
36166
|
}), j(U(s), "renderDayContents", function() {
|
|
36162
36167
|
return s.props.monthShowsDuplicateDaysEnd && s.isAfterMonth() || s.props.monthShowsDuplicateDaysStart && s.isBeforeMonth() ? null : s.props.renderDayContents ? s.props.renderDayContents(VL(s.props.day), s.props.day) : VL(s.props.day);
|
|
36163
36168
|
}), j(U(s), "render", function() {
|
|
36164
|
-
return
|
|
36169
|
+
return t1.createElement("div", { ref: s.dayEl, className: s.getClassNames(s.props.day), onKeyDown: s.handleOnKeyDown, onClick: s.handleClick, onMouseEnter: s.handleMouseEnter, tabIndex: s.getTabIndex(), "aria-label": s.getAriaLabel(), role: "option", "aria-disabled": s.isDisabled(), "aria-current": s.isCurrentDay() ? "date" : void 0, "aria-selected": s.isSelected() || s.isInRange() }, s.renderDayContents());
|
|
36165
36170
|
}), s;
|
|
36166
36171
|
}
|
|
36167
36172
|
return g4(o, [{ key: "componentDidMount", value: function() {
|
|
@@ -36170,7 +36175,7 @@ var ac, wz = Zc(function(r) {
|
|
|
36170
36175
|
this.handleFocusDay(s);
|
|
36171
36176
|
} }]), o;
|
|
36172
36177
|
}(), Vz = function(r) {
|
|
36173
|
-
y4(o,
|
|
36178
|
+
y4(o, t1.Component);
|
|
36174
36179
|
var a = L4(o);
|
|
36175
36180
|
function o() {
|
|
36176
36181
|
var s;
|
|
@@ -36182,10 +36187,10 @@ var ac, wz = Zc(function(r) {
|
|
|
36182
36187
|
}
|
|
36183
36188
|
return g4(o, [{ key: "render", value: function() {
|
|
36184
36189
|
var s = this.props, i = s.weekNumber, p = s.ariaLabelPrefix, C = p === void 0 ? "week " : p, v = { "react-datepicker__week-number": !0, "react-datepicker__week-number--clickable": !!s.onClick };
|
|
36185
|
-
return
|
|
36190
|
+
return t1.createElement("div", { className: H5(v), "aria-label": "".concat(C, " ").concat(this.props.weekNumber), onClick: this.handleClick }, i);
|
|
36186
36191
|
} }]), o;
|
|
36187
36192
|
}(), Mz = function(r) {
|
|
36188
|
-
y4(o,
|
|
36193
|
+
y4(o, t1.Component);
|
|
36189
36194
|
var a = L4(o);
|
|
36190
36195
|
function o() {
|
|
36191
36196
|
var s;
|
|
@@ -36203,16 +36208,16 @@ var ac, wz = Zc(function(r) {
|
|
|
36203
36208
|
var v = Xh(s.props.day, s.props.locale, s.props.calendarStartDay), y = [], L = s.formatWeekNumber(v);
|
|
36204
36209
|
if (s.props.showWeekNumber) {
|
|
36205
36210
|
var V = s.props.onWeekSelect ? s.handleWeekClick.bind(U(s), v, L) : void 0;
|
|
36206
|
-
y.push(
|
|
36211
|
+
y.push(t1.createElement(Vz, { key: "W", weekNumber: L, onClick: V, ariaLabelPrefix: s.props.ariaLabelPrefix }));
|
|
36207
36212
|
}
|
|
36208
36213
|
return y.concat([0, 1, 2, 3, 4, 5, 6].map(function(E) {
|
|
36209
36214
|
var k = pa(v, E);
|
|
36210
|
-
return
|
|
36215
|
+
return t1.createElement(Hz, { ariaLabelPrefixWhenEnabled: s.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: s.props.disabledDayAriaLabelPrefix, key: k.valueOf(), day: k, month: s.props.month, onClick: s.handleDayClick.bind(U(s), k), onMouseEnter: s.handleDayMouseEnter.bind(U(s), k), minDate: s.props.minDate, maxDate: s.props.maxDate, excludeDates: s.props.excludeDates, excludeDateIntervals: s.props.excludeDateIntervals, includeDates: s.props.includeDates, includeDateIntervals: s.props.includeDateIntervals, highlightDates: s.props.highlightDates, selectingDate: s.props.selectingDate, filterDate: s.props.filterDate, preSelection: s.props.preSelection, selected: s.props.selected, selectsStart: s.props.selectsStart, selectsEnd: s.props.selectsEnd, selectsRange: s.props.selectsRange, selectsDisabledDaysInRange: s.props.selectsDisabledDaysInRange, startDate: s.props.startDate, endDate: s.props.endDate, dayClassName: s.props.dayClassName, renderDayContents: s.props.renderDayContents, disabledKeyboardNavigation: s.props.disabledKeyboardNavigation, handleOnKeyDown: s.props.handleOnKeyDown, isInputFocused: s.props.isInputFocused, containerRef: s.props.containerRef, inline: s.props.inline, shouldFocusDayInline: s.props.shouldFocusDayInline, monthShowsDuplicateDaysEnd: s.props.monthShowsDuplicateDaysEnd, monthShowsDuplicateDaysStart: s.props.monthShowsDuplicateDaysStart, locale: s.props.locale });
|
|
36211
36216
|
}));
|
|
36212
36217
|
}), s;
|
|
36213
36218
|
}
|
|
36214
36219
|
return g4(o, [{ key: "render", value: function() {
|
|
36215
|
-
return
|
|
36220
|
+
return t1.createElement("div", { className: "react-datepicker__week" }, this.renderDays());
|
|
36216
36221
|
} }], [{ key: "defaultProps", get: function() {
|
|
36217
36222
|
return { shouldCloseOnSelect: !0 };
|
|
36218
36223
|
} }]), o;
|
|
@@ -36221,16 +36226,16 @@ function db(r, a) {
|
|
|
36221
36226
|
return r ? qw : a ? Ww : Qw;
|
|
36222
36227
|
}
|
|
36223
36228
|
var Ez = function(r) {
|
|
36224
|
-
y4(o,
|
|
36229
|
+
y4(o, t1.Component);
|
|
36225
36230
|
var a = L4(o);
|
|
36226
36231
|
function o() {
|
|
36227
36232
|
var s;
|
|
36228
36233
|
v4(this, o);
|
|
36229
36234
|
for (var i = arguments.length, p = new Array(i), C = 0; C < i; C++) p[C] = arguments[C];
|
|
36230
36235
|
return j(U(s = a.call.apply(a, [this].concat(p))), "MONTH_REFS", Vh(Array(12)).map(function() {
|
|
36231
|
-
return
|
|
36236
|
+
return t1.createRef();
|
|
36232
36237
|
})), j(U(s), "QUARTER_REFS", Vh(Array(4)).map(function() {
|
|
36233
|
-
return
|
|
36238
|
+
return t1.createRef();
|
|
36234
36239
|
})), j(U(s), "isDisabled", function(v) {
|
|
36235
36240
|
return Bc(v, s.props);
|
|
36236
36241
|
}), j(U(s), "isExcluded", function(v) {
|
|
@@ -36281,7 +36286,7 @@ var Ez = function(r) {
|
|
|
36281
36286
|
}), j(U(s), "isSelectedQuarter", function(v, y, L) {
|
|
36282
36287
|
return ea(v) === y && G2(v) === G2(L);
|
|
36283
36288
|
}), j(U(s), "renderWeeks", function() {
|
|
36284
|
-
for (var v = [], y = s.props.fixedHeight, L = 0, V = !1, E = Xh(Tt(s.props.day), s.props.locale, s.props.calendarStartDay); v.push(
|
|
36289
|
+
for (var v = [], y = s.props.fixedHeight, L = 0, V = !1, E = Xh(Tt(s.props.day), s.props.locale, s.props.calendarStartDay); v.push(t1.createElement(Mz, { ariaLabelPrefix: s.props.weekAriaLabelPrefix, chooseDayAriaLabelPrefix: s.props.chooseDayAriaLabelPrefix, disabledDayAriaLabelPrefix: s.props.disabledDayAriaLabelPrefix, key: L, day: E, month: a5(s.props.day), onDayClick: s.handleDayClick, onDayMouseEnter: s.handleDayMouseEnter, onWeekSelect: s.props.onWeekSelect, formatWeekNumber: s.props.formatWeekNumber, locale: s.props.locale, minDate: s.props.minDate, maxDate: s.props.maxDate, excludeDates: s.props.excludeDates, excludeDateIntervals: s.props.excludeDateIntervals, includeDates: s.props.includeDates, includeDateIntervals: s.props.includeDateIntervals, inline: s.props.inline, shouldFocusDayInline: s.props.shouldFocusDayInline, highlightDates: s.props.highlightDates, selectingDate: s.props.selectingDate, filterDate: s.props.filterDate, preSelection: s.props.preSelection, selected: s.props.selected, selectsStart: s.props.selectsStart, selectsEnd: s.props.selectsEnd, selectsRange: s.props.selectsRange, selectsDisabledDaysInRange: s.props.selectsDisabledDaysInRange, showWeekNumber: s.props.showWeekNumbers, startDate: s.props.startDate, endDate: s.props.endDate, dayClassName: s.props.dayClassName, setOpen: s.props.setOpen, shouldCloseOnSelect: s.props.shouldCloseOnSelect, disabledKeyboardNavigation: s.props.disabledKeyboardNavigation, renderDayContents: s.props.renderDayContents, handleOnKeyDown: s.props.handleOnKeyDown, isInputFocused: s.props.isInputFocused, containerRef: s.props.containerRef, calendarStartDay: s.props.calendarStartDay, monthShowsDuplicateDaysEnd: s.props.monthShowsDuplicateDaysEnd, monthShowsDuplicateDaysStart: s.props.monthShowsDuplicateDaysStart })), !V; ) {
|
|
36285
36290
|
L++, E = Ph(E, 1);
|
|
36286
36291
|
var k = y && L >= 6, _ = !y && !s.isWeekInMonth(E);
|
|
36287
36292
|
if (k || _) {
|
|
@@ -36299,7 +36304,7 @@ var Ez = function(r) {
|
|
|
36299
36304
|
}), j(U(s), "onMonthKeyDown", function(v, y) {
|
|
36300
36305
|
var L = s.props, V = L.selected, E = L.preSelection, k = L.disabledKeyboardNavigation, _ = L.showTwoColumnMonthYearPicker, R = L.showFourColumnMonthYearPicker, N = L.setPreSelection, Z = v.key;
|
|
36301
36306
|
if (Z !== "Tab" && v.preventDefault(), !k) {
|
|
36302
|
-
var
|
|
36307
|
+
var $ = db(R, _), P = Fp[$].verticalNavigationOffset, I = Fp[$].grid;
|
|
36303
36308
|
switch (Z) {
|
|
36304
36309
|
case "Enter":
|
|
36305
36310
|
s.onMonthClick(v, y), N(V);
|
|
@@ -36311,10 +36316,10 @@ var Ez = function(r) {
|
|
|
36311
36316
|
s.handleMonthNavigation(y === 0 ? 11 : y - 1, la(E, 1));
|
|
36312
36317
|
break;
|
|
36313
36318
|
case "ArrowUp":
|
|
36314
|
-
s.handleMonthNavigation(
|
|
36319
|
+
s.handleMonthNavigation(I[0].includes(y) ? y + 12 - P : y - P, la(E, P));
|
|
36315
36320
|
break;
|
|
36316
36321
|
case "ArrowDown":
|
|
36317
|
-
s.handleMonthNavigation(
|
|
36322
|
+
s.handleMonthNavigation(I[I.length - 1].includes(y) ? y - 12 + P : y + P, T6(E, P));
|
|
36318
36323
|
}
|
|
36319
36324
|
}
|
|
36320
36325
|
}), j(U(s), "onQuarterClick", function(v, y) {
|
|
@@ -36336,8 +36341,8 @@ var Ez = function(r) {
|
|
|
36336
36341
|
s.handleQuarterNavigation(y === 1 ? 4 : y - 1, UP(s.props.preSelection, 1));
|
|
36337
36342
|
}
|
|
36338
36343
|
}), j(U(s), "getMonthClassNames", function(v) {
|
|
36339
|
-
var y = s.props, L = y.day, V = y.startDate, E = y.endDate, k = y.selected, _ = y.minDate, R = y.maxDate, N = y.preSelection, Z = y.monthClassName,
|
|
36340
|
-
return H5("react-datepicker__month-text", "react-datepicker__month-".concat(v),
|
|
36344
|
+
var y = s.props, L = y.day, V = y.startDate, E = y.endDate, k = y.selected, _ = y.minDate, R = y.maxDate, N = y.preSelection, Z = y.monthClassName, $ = y.excludeDates, P = y.includeDates, I = Z ? Z(b5(L, v)) : void 0, A = b5(L, v);
|
|
36345
|
+
return H5("react-datepicker__month-text", "react-datepicker__month-".concat(v), I, { "react-datepicker__month-text--disabled": (_ || R || $ || P) && Uw(A, s.props), "react-datepicker__month-text--selected": s.isSelectedMonth(L, v, k), "react-datepicker__month-text--keyboard-selected": !s.props.disabledKeyboardNavigation && a5(N) === v, "react-datepicker__month-text--in-selecting-range": s.isInSelectingRangeMonth(v), "react-datepicker__month-text--in-range": Np(V, E, v, L), "react-datepicker__month-text--range-start": s.isRangeStartMonth(v), "react-datepicker__month-text--range-end": s.isRangeEndMonth(v), "react-datepicker__month-text--selecting-range-start": s.isSelectingMonthRangeStart(v), "react-datepicker__month-text--selecting-range-end": s.isSelectingMonthRangeEnd(v), "react-datepicker__month-text--today": s.isCurrentMonth(L, v) });
|
|
36341
36346
|
}), j(U(s), "getTabIndex", function(v) {
|
|
36342
36347
|
var y = a5(s.props.preSelection);
|
|
36343
36348
|
return s.props.disabledKeyboardNavigation || v !== y ? "-1" : "0";
|
|
@@ -36353,8 +36358,8 @@ var Ez = function(r) {
|
|
|
36353
36358
|
}), j(U(s), "renderMonths", function() {
|
|
36354
36359
|
var v = s.props, y = v.showFullMonthYearPicker, L = v.showTwoColumnMonthYearPicker, V = v.showFourColumnMonthYearPicker, E = v.locale, k = v.day, _ = v.selected;
|
|
36355
36360
|
return Fp[db(V, L)].grid.map(function(R, N) {
|
|
36356
|
-
return
|
|
36357
|
-
return
|
|
36361
|
+
return t1.createElement("div", { className: "react-datepicker__month-wrapper", key: N }, R.map(function(Z, $) {
|
|
36362
|
+
return t1.createElement("div", { ref: s.MONTH_REFS[Z], key: $, onClick: function(P) {
|
|
36358
36363
|
s.onMonthClick(P, Z);
|
|
36359
36364
|
}, onKeyDown: function(P) {
|
|
36360
36365
|
s.onMonthKeyDown(P, Z);
|
|
@@ -36365,8 +36370,8 @@ var Ez = function(r) {
|
|
|
36365
36370
|
});
|
|
36366
36371
|
}), j(U(s), "renderQuarters", function() {
|
|
36367
36372
|
var v = s.props, y = v.day, L = v.selected;
|
|
36368
|
-
return
|
|
36369
|
-
return
|
|
36373
|
+
return t1.createElement("div", { className: "react-datepicker__quarter-wrapper" }, [1, 2, 3, 4].map(function(V, E) {
|
|
36374
|
+
return t1.createElement("div", { key: E, ref: s.QUARTER_REFS[E], role: "option", onClick: function(k) {
|
|
36370
36375
|
s.onQuarterClick(k, V);
|
|
36371
36376
|
}, onKeyDown: function(k) {
|
|
36372
36377
|
s.onQuarterKeyDown(k, V);
|
|
@@ -36383,10 +36388,10 @@ var Ez = function(r) {
|
|
|
36383
36388
|
}
|
|
36384
36389
|
return g4(o, [{ key: "render", value: function() {
|
|
36385
36390
|
var s = this.props, i = s.showMonthYearPicker, p = s.showQuarterYearPicker, C = s.day, v = s.ariaLabelPrefix, y = v === void 0 ? "month " : v;
|
|
36386
|
-
return
|
|
36391
|
+
return t1.createElement("div", { className: this.getClassNames(), onMouseLeave: this.handleMouseLeave, "aria-label": "".concat(y, " ").concat(Re(C, "yyyy-MM")), role: "listbox" }, i ? this.renderMonths() : p ? this.renderQuarters() : this.renderWeeks());
|
|
36387
36392
|
} }]), o;
|
|
36388
36393
|
}(), Gw = function(r) {
|
|
36389
|
-
y4(o,
|
|
36394
|
+
y4(o, t1.Component);
|
|
36390
36395
|
var a = L4(o);
|
|
36391
36396
|
function o() {
|
|
36392
36397
|
var s;
|
|
@@ -36404,15 +36409,15 @@ var Ez = function(r) {
|
|
|
36404
36409
|
}), j(U(s), "renderTimes", function() {
|
|
36405
36410
|
for (var v = [], y = s.props.format ? s.props.format : "p", L = s.props.intervals, V = Cz(W3(s.props.selected)), E = 1440 / L, k = s.props.injectTimes && s.props.injectTimes.sort(function(A, K) {
|
|
36406
36411
|
return A - K;
|
|
36407
|
-
}), _ = s.props.selected || s.props.openToDate || W3(), R = h7(_), N = p7(_), Z = Do(_o(V, N), R),
|
|
36408
|
-
var P = fh(V,
|
|
36412
|
+
}), _ = s.props.selected || s.props.openToDate || W3(), R = h7(_), N = p7(_), Z = Do(_o(V, N), R), $ = 0; $ < E; $++) {
|
|
36413
|
+
var P = fh(V, $ * L);
|
|
36409
36414
|
if (v.push(P), k) {
|
|
36410
|
-
var
|
|
36411
|
-
v = v.concat(
|
|
36415
|
+
var I = hz(V, P, $, L, k);
|
|
36416
|
+
v = v.concat(I);
|
|
36412
36417
|
}
|
|
36413
36418
|
}
|
|
36414
36419
|
return v.map(function(A, K) {
|
|
36415
|
-
return
|
|
36420
|
+
return t1.createElement("li", { key: K, onClick: s.handleClick.bind(U(s), A), className: s.liClasses(A, R, N), ref: function(J) {
|
|
36416
36421
|
(g9(A, Z) || kt(A, Z)) && (s.centerLi = J);
|
|
36417
36422
|
}, onKeyDown: function(J) {
|
|
36418
36423
|
s.handleOnKeyDown(J, A);
|
|
@@ -36424,9 +36429,9 @@ var Ez = function(r) {
|
|
|
36424
36429
|
this.list.scrollTop = this.centerLi && o.calcCenterPosition(this.props.monthRef ? this.props.monthRef.clientHeight - this.header.clientHeight : this.list.clientHeight, this.centerLi), this.props.monthRef && this.header && this.setState({ height: this.props.monthRef.clientHeight - this.header.clientHeight });
|
|
36425
36430
|
} }, { key: "render", value: function() {
|
|
36426
36431
|
var s = this, i = this.state.height;
|
|
36427
|
-
return
|
|
36432
|
+
return t1.createElement("div", { className: "react-datepicker__time-container ".concat(this.props.todayButton ? "react-datepicker__time-container--with-today-button" : "") }, t1.createElement("div", { className: "react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly ? "react-datepicker__header--time--only" : ""), ref: function(p) {
|
|
36428
36433
|
s.header = p;
|
|
36429
|
-
} },
|
|
36434
|
+
} }, t1.createElement("div", { className: "react-datepicker-time__header" }, this.props.timeCaption)), t1.createElement("div", { className: "react-datepicker__time" }, t1.createElement("div", { className: "react-datepicker__time-box" }, t1.createElement("ul", { className: "react-datepicker__time-list", ref: function(p) {
|
|
36430
36435
|
s.list = p;
|
|
36431
36436
|
}, style: i ? { height: i } : {}, tabIndex: "0" }, this.renderTimes()))));
|
|
36432
36437
|
} }], [{ key: "defaultProps", get: function() {
|
|
@@ -36438,12 +36443,12 @@ j(Gw, "calcCenterPosition", function(r, a) {
|
|
|
36438
36443
|
return a.offsetTop - (r / 2 - a.clientHeight / 2);
|
|
36439
36444
|
});
|
|
36440
36445
|
var Sz = function(r) {
|
|
36441
|
-
y4(o,
|
|
36446
|
+
y4(o, t1.Component);
|
|
36442
36447
|
var a = L4(o);
|
|
36443
36448
|
function o(s) {
|
|
36444
36449
|
var i;
|
|
36445
36450
|
return v4(this, o), j(U(i = a.call(this, s)), "YEAR_REFS", Vh(Array(i.props.yearItemNumber)).map(function() {
|
|
36446
|
-
return
|
|
36451
|
+
return t1.createRef();
|
|
36447
36452
|
})), j(U(i), "isDisabled", function(p) {
|
|
36448
36453
|
return Bc(p, i.props);
|
|
36449
36454
|
}), j(U(i), "isExcluded", function(p) {
|
|
@@ -36512,7 +36517,7 @@ var Sz = function(r) {
|
|
|
36512
36517
|
}
|
|
36513
36518
|
return g4(o, [{ key: "render", value: function() {
|
|
36514
36519
|
for (var s = this, i = [], p = this.props, C = p.date, v = p.yearItemNumber, y = p.onYearMouseEnter, L = p.onYearMouseLeave, V = ta(C, v), E = V.startPeriod, k = V.endPeriod, _ = function(N) {
|
|
36515
|
-
i.push(
|
|
36520
|
+
i.push(t1.createElement("div", { ref: s.YEAR_REFS[N - E], onClick: function(Z) {
|
|
36516
36521
|
s.onYearClick(Z, N);
|
|
36517
36522
|
}, onKeyDown: function(Z) {
|
|
36518
36523
|
s.onYearKeyDown(Z, N);
|
|
@@ -36522,10 +36527,10 @@ var Sz = function(r) {
|
|
|
36522
36527
|
return L(Z, N);
|
|
36523
36528
|
}, key: N, "aria-current": s.isCurrentYear(N) ? "date" : void 0 }, N));
|
|
36524
36529
|
}, R = E; R <= k; R++) _(R);
|
|
36525
|
-
return
|
|
36530
|
+
return t1.createElement("div", { className: this.getYearContainerClassNames() }, t1.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: this.props.clearSelectingDate }, i));
|
|
36526
36531
|
} }]), o;
|
|
36527
36532
|
}(), kz = function(r) {
|
|
36528
|
-
y4(o,
|
|
36533
|
+
y4(o, t1.Component);
|
|
36529
36534
|
var a = L4(o);
|
|
36530
36535
|
function o(s) {
|
|
36531
36536
|
var i;
|
|
@@ -36535,23 +36540,23 @@ var Sz = function(r) {
|
|
|
36535
36540
|
C.setHours(p.split(":")[0]), C.setMinutes(p.split(":")[1]), i.props.onChange(C);
|
|
36536
36541
|
}), j(U(i), "renderTimeInput", function() {
|
|
36537
36542
|
var p = i.state.time, C = i.props, v = C.date, y = C.timeString, L = C.customTimeInput;
|
|
36538
|
-
return L ?
|
|
36543
|
+
return L ? t1.cloneElement(L, { date: v, value: p, onChange: i.onTimeChange }) : t1.createElement("input", { type: "time", className: "react-datepicker-time__input", placeholder: "Time", name: "time-input", required: !0, value: p, onChange: function(V) {
|
|
36539
36544
|
i.onTimeChange(V.target.value || y);
|
|
36540
36545
|
} });
|
|
36541
36546
|
}), i.state = { time: i.props.timeString }, i;
|
|
36542
36547
|
}
|
|
36543
36548
|
return g4(o, [{ key: "render", value: function() {
|
|
36544
|
-
return
|
|
36549
|
+
return t1.createElement("div", { className: "react-datepicker__input-time-container" }, t1.createElement("div", { className: "react-datepicker-time__caption" }, this.props.timeInputLabel), t1.createElement("div", { className: "react-datepicker-time__input-container" }, t1.createElement("div", { className: "react-datepicker-time__input" }, this.renderTimeInput())));
|
|
36545
36550
|
} }], [{ key: "getDerivedStateFromProps", value: function(s, i) {
|
|
36546
36551
|
return s.timeString !== i.time ? { time: s.timeString } : null;
|
|
36547
36552
|
} }]), o;
|
|
36548
36553
|
}();
|
|
36549
36554
|
function Tz(r) {
|
|
36550
36555
|
var a = r.className, o = r.children, s = r.showPopperArrow, i = r.arrowProps, p = i === void 0 ? {} : i;
|
|
36551
|
-
return
|
|
36556
|
+
return t1.createElement("div", { className: a }, s && t1.createElement("div", Nc({ className: "react-datepicker__triangle" }, p)), o);
|
|
36552
36557
|
}
|
|
36553
36558
|
var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "react-datepicker__month-year-select"], Dz = function(r) {
|
|
36554
|
-
y4(o,
|
|
36559
|
+
y4(o, t1.Component);
|
|
36555
36560
|
var a = L4(o);
|
|
36556
36561
|
function o(s) {
|
|
36557
36562
|
var i;
|
|
@@ -36624,9 +36629,9 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36624
36629
|
});
|
|
36625
36630
|
}), j(U(i), "header", function() {
|
|
36626
36631
|
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : i.state.date, C = Xh(p, i.props.locale, i.props.calendarStartDay), v = [];
|
|
36627
|
-
return i.props.showWeekNumbers && v.push(
|
|
36632
|
+
return i.props.showWeekNumbers && v.push(t1.createElement("div", { key: "W", className: "react-datepicker__day-name" }, i.props.weekLabel || "#")), v.concat([0, 1, 2, 3, 4, 5, 6].map(function(y) {
|
|
36628
36633
|
var L = pa(C, y), V = i.formatWeekday(L, i.props.locale), E = i.props.weekDayClassName ? i.props.weekDayClassName(L) : void 0;
|
|
36629
|
-
return
|
|
36634
|
+
return t1.createElement("div", { key: y, className: H5("react-datepicker__day-name", E) }, V);
|
|
36630
36635
|
}));
|
|
36631
36636
|
}), j(U(i), "formatWeekday", function(p, C) {
|
|
36632
36637
|
return i.props.formatWeekDay ? function(v, y, L) {
|
|
@@ -36653,8 +36658,8 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36653
36658
|
p = lb(i.state.date, i.props);
|
|
36654
36659
|
break;
|
|
36655
36660
|
case i.props.showYearPicker:
|
|
36656
|
-
p = function(
|
|
36657
|
-
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
36661
|
+
p = function($) {
|
|
36662
|
+
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = P.minDate, A = P.yearItemNumber, K = A === void 0 ? 12 : A, J = ta(So(Bo($, K)), K).endPeriod, i1 = I && G2(I);
|
|
36658
36663
|
return i1 && i1 > J || !1;
|
|
36659
36664
|
}(i.state.date, i.props);
|
|
36660
36665
|
break;
|
|
@@ -36665,7 +36670,7 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36665
36670
|
var C = ["react-datepicker__navigation", "react-datepicker__navigation--previous"], v = i.decreaseMonth;
|
|
36666
36671
|
(i.props.showMonthYearPicker || i.props.showQuarterYearPicker || i.props.showYearPicker) && (v = i.decreaseYear), p && i.props.showDisabledMonthNavigation && (C.push("react-datepicker__navigation--previous--disabled"), v = null);
|
|
36667
36672
|
var y = i.props.showMonthYearPicker || i.props.showQuarterYearPicker || i.props.showYearPicker, L = i.props, V = L.previousMonthButtonLabel, E = L.previousYearButtonLabel, k = i.props, _ = k.previousMonthAriaLabel, R = _ === void 0 ? typeof V == "string" ? V : "Previous Month" : _, N = k.previousYearAriaLabel, Z = N === void 0 ? typeof E == "string" ? E : "Previous Year" : N;
|
|
36668
|
-
return
|
|
36673
|
+
return t1.createElement("button", { type: "button", className: C.join(" "), onClick: v, onKeyDown: i.props.handleOnKeyDown, "aria-label": y ? Z : R }, t1.createElement("span", { className: ["react-datepicker__navigation-icon", "react-datepicker__navigation-icon--previous"].join(" ") }, y ? i.props.previousYearButtonLabel : i.props.previousMonthButtonLabel));
|
|
36669
36674
|
}
|
|
36670
36675
|
}
|
|
36671
36676
|
}), j(U(i), "increaseYear", function() {
|
|
@@ -36683,8 +36688,8 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36683
36688
|
p = sb(i.state.date, i.props);
|
|
36684
36689
|
break;
|
|
36685
36690
|
case i.props.showYearPicker:
|
|
36686
|
-
p = function(
|
|
36687
|
-
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
36691
|
+
p = function($) {
|
|
36692
|
+
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = P.maxDate, A = P.yearItemNumber, K = A === void 0 ? 12 : A, J = ta(oa($, K), K).startPeriod, i1 = I && G2(I);
|
|
36688
36693
|
return i1 && i1 < J || !1;
|
|
36689
36694
|
}(i.state.date, i.props);
|
|
36690
36695
|
break;
|
|
@@ -36697,38 +36702,38 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36697
36702
|
var v = i.increaseMonth;
|
|
36698
36703
|
(i.props.showMonthYearPicker || i.props.showQuarterYearPicker || i.props.showYearPicker) && (v = i.increaseYear), p && i.props.showDisabledMonthNavigation && (C.push("react-datepicker__navigation--next--disabled"), v = null);
|
|
36699
36704
|
var y = i.props.showMonthYearPicker || i.props.showQuarterYearPicker || i.props.showYearPicker, L = i.props, V = L.nextMonthButtonLabel, E = L.nextYearButtonLabel, k = i.props, _ = k.nextMonthAriaLabel, R = _ === void 0 ? typeof V == "string" ? V : "Next Month" : _, N = k.nextYearAriaLabel, Z = N === void 0 ? typeof E == "string" ? E : "Next Year" : N;
|
|
36700
|
-
return
|
|
36705
|
+
return t1.createElement("button", { type: "button", className: C.join(" "), onClick: v, onKeyDown: i.props.handleOnKeyDown, "aria-label": y ? Z : R }, t1.createElement("span", { className: ["react-datepicker__navigation-icon", "react-datepicker__navigation-icon--next"].join(" ") }, y ? i.props.nextYearButtonLabel : i.props.nextMonthButtonLabel));
|
|
36701
36706
|
}
|
|
36702
36707
|
}
|
|
36703
36708
|
}), j(U(i), "renderCurrentMonth", function() {
|
|
36704
36709
|
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : i.state.date, C = ["react-datepicker__current-month"];
|
|
36705
|
-
return i.props.showYearDropdown && C.push("react-datepicker__current-month--hasYearDropdown"), i.props.showMonthDropdown && C.push("react-datepicker__current-month--hasMonthDropdown"), i.props.showMonthYearDropdown && C.push("react-datepicker__current-month--hasMonthYearDropdown"),
|
|
36710
|
+
return i.props.showYearDropdown && C.push("react-datepicker__current-month--hasYearDropdown"), i.props.showMonthDropdown && C.push("react-datepicker__current-month--hasMonthDropdown"), i.props.showMonthYearDropdown && C.push("react-datepicker__current-month--hasMonthYearDropdown"), t1.createElement("div", { className: C.join(" ") }, Re(p, i.props.dateFormat, i.props.locale));
|
|
36706
36711
|
}), j(U(i), "renderYearDropdown", function() {
|
|
36707
36712
|
var p = arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
|
|
36708
|
-
if (i.props.showYearDropdown && !p) return
|
|
36713
|
+
if (i.props.showYearDropdown && !p) return t1.createElement(gz, { adjustDateOnChange: i.props.adjustDateOnChange, date: i.state.date, onSelect: i.props.onSelect, setOpen: i.props.setOpen, dropdownMode: i.props.dropdownMode, onChange: i.changeYear, minDate: i.props.minDate, maxDate: i.props.maxDate, year: G2(i.state.date), scrollableYearDropdown: i.props.scrollableYearDropdown, yearDropdownItemNumber: i.props.yearDropdownItemNumber });
|
|
36709
36714
|
}), j(U(i), "renderMonthDropdown", function() {
|
|
36710
36715
|
var p = arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
|
|
36711
|
-
if (i.props.showMonthDropdown && !p) return
|
|
36716
|
+
if (i.props.showMonthDropdown && !p) return t1.createElement(Lz, { dropdownMode: i.props.dropdownMode, locale: i.props.locale, onChange: i.changeMonth, month: a5(i.state.date), useShortMonthInDropdown: i.props.useShortMonthInDropdown });
|
|
36712
36717
|
}), j(U(i), "renderMonthYearDropdown", function() {
|
|
36713
36718
|
var p = arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
|
|
36714
|
-
if (i.props.showMonthYearDropdown && !p) return
|
|
36719
|
+
if (i.props.showMonthYearDropdown && !p) return t1.createElement(xz, { dropdownMode: i.props.dropdownMode, locale: i.props.locale, dateFormat: i.props.dateFormat, onChange: i.changeMonthYear, minDate: i.props.minDate, maxDate: i.props.maxDate, date: i.state.date, scrollableMonthYearDropdown: i.props.scrollableMonthYearDropdown });
|
|
36715
36720
|
}), j(U(i), "handleTodayButtonClick", function(p) {
|
|
36716
36721
|
i.props.onSelect(tb(), p), i.props.setPreSelection && i.props.setPreSelection(tb());
|
|
36717
36722
|
}), j(U(i), "renderTodayButton", function() {
|
|
36718
|
-
if (i.props.todayButton && !i.props.showTimeSelectOnly) return
|
|
36723
|
+
if (i.props.todayButton && !i.props.showTimeSelectOnly) return t1.createElement("div", { className: "react-datepicker__today-button", onClick: function(p) {
|
|
36719
36724
|
return i.handleTodayButtonClick(p);
|
|
36720
36725
|
} }, i.props.todayButton);
|
|
36721
36726
|
}), j(U(i), "renderDefaultHeader", function(p) {
|
|
36722
36727
|
var C = p.monthDate, v = p.i;
|
|
36723
|
-
return
|
|
36728
|
+
return t1.createElement("div", { className: "react-datepicker__header ".concat(i.props.showTimeSelect ? "react-datepicker__header--has-time-select" : "") }, i.renderCurrentMonth(C), t1.createElement("div", { className: "react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode), onFocus: i.handleDropdownFocus }, i.renderMonthDropdown(v !== 0), i.renderMonthYearDropdown(v !== 0), i.renderYearDropdown(v !== 0)), t1.createElement("div", { className: "react-datepicker__day-names" }, i.header(C)));
|
|
36724
36729
|
}), j(U(i), "renderCustomHeader", function() {
|
|
36725
36730
|
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = p.monthDate, v = p.i;
|
|
36726
36731
|
if (i.props.showTimeSelect && !i.state.monthContainer || i.props.showTimeSelectOnly) return null;
|
|
36727
36732
|
var y = ib(i.state.date, i.props), L = ob(i.state.date, i.props), V = lb(i.state.date, i.props), E = sb(i.state.date, i.props), k = !i.props.showMonthYearPicker && !i.props.showQuarterYearPicker && !i.props.showYearPicker;
|
|
36728
|
-
return
|
|
36733
|
+
return t1.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: i.props.onDropdownFocus }, i.props.renderCustomHeader(qL(qL({}, i.state), {}, { customHeaderCount: v, monthDate: C, changeMonth: i.changeMonth, changeYear: i.changeYear, decreaseMonth: i.decreaseMonth, increaseMonth: i.increaseMonth, decreaseYear: i.decreaseYear, increaseYear: i.increaseYear, prevMonthButtonDisabled: y, nextMonthButtonDisabled: L, prevYearButtonDisabled: V, nextYearButtonDisabled: E })), k && t1.createElement("div", { className: "react-datepicker__day-names" }, i.header(C)));
|
|
36729
36734
|
}), j(U(i), "renderYearHeader", function() {
|
|
36730
36735
|
var p = i.state.date, C = i.props, v = C.showYearPicker, y = ta(p, C.yearItemNumber), L = y.startPeriod, V = y.endPeriod;
|
|
36731
|
-
return
|
|
36736
|
+
return t1.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, v ? "".concat(L, " - ").concat(V) : G2(p));
|
|
36732
36737
|
}), j(U(i), "renderHeader", function(p) {
|
|
36733
36738
|
switch (!0) {
|
|
36734
36739
|
case i.props.renderCustomHeader !== void 0:
|
|
@@ -36742,25 +36747,25 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36742
36747
|
if (!i.props.showTimeSelectOnly && !i.props.showYearPicker) {
|
|
36743
36748
|
for (var p = [], C = i.props.showPreviousMonths ? i.props.monthsShown - 1 : 0, v = la(i.state.date, C), y = 0; y < i.props.monthsShown; ++y) {
|
|
36744
36749
|
var L = y - i.props.monthSelectedIn, V = T6(v, L), E = "month-".concat(y), k = y < i.props.monthsShown - 1, _ = y > 0;
|
|
36745
|
-
p.push(
|
|
36750
|
+
p.push(t1.createElement("div", { key: E, ref: function(R) {
|
|
36746
36751
|
i.monthContainer = R;
|
|
36747
|
-
}, className: "react-datepicker__month-container" }, i.renderHeader({ monthDate: V, i: y }),
|
|
36752
|
+
}, className: "react-datepicker__month-container" }, i.renderHeader({ monthDate: V, i: y }), t1.createElement(Ez, { chooseDayAriaLabelPrefix: i.props.chooseDayAriaLabelPrefix, disabledDayAriaLabelPrefix: i.props.disabledDayAriaLabelPrefix, weekAriaLabelPrefix: i.props.weekAriaLabelPrefix, ariaLabelPrefix: i.props.monthAriaLabelPrefix, onChange: i.changeMonthYear, day: V, dayClassName: i.props.dayClassName, calendarStartDay: i.props.calendarStartDay, monthClassName: i.props.monthClassName, onDayClick: i.handleDayClick, handleOnKeyDown: i.props.handleOnDayKeyDown, onDayMouseEnter: i.handleDayMouseEnter, onMouseLeave: i.handleMonthMouseLeave, onWeekSelect: i.props.onWeekSelect, orderInDisplay: y, formatWeekNumber: i.props.formatWeekNumber, locale: i.props.locale, minDate: i.props.minDate, maxDate: i.props.maxDate, excludeDates: i.props.excludeDates, excludeDateIntervals: i.props.excludeDateIntervals, highlightDates: i.props.highlightDates, selectingDate: i.state.selectingDate, includeDates: i.props.includeDates, includeDateIntervals: i.props.includeDateIntervals, inline: i.props.inline, shouldFocusDayInline: i.props.shouldFocusDayInline, fixedHeight: i.props.fixedHeight, filterDate: i.props.filterDate, preSelection: i.props.preSelection, setPreSelection: i.props.setPreSelection, selected: i.props.selected, selectsStart: i.props.selectsStart, selectsEnd: i.props.selectsEnd, selectsRange: i.props.selectsRange, selectsDisabledDaysInRange: i.props.selectsDisabledDaysInRange, showWeekNumbers: i.props.showWeekNumbers, startDate: i.props.startDate, endDate: i.props.endDate, peekNextMonth: i.props.peekNextMonth, setOpen: i.props.setOpen, shouldCloseOnSelect: i.props.shouldCloseOnSelect, renderDayContents: i.props.renderDayContents, disabledKeyboardNavigation: i.props.disabledKeyboardNavigation, showMonthYearPicker: i.props.showMonthYearPicker, showFullMonthYearPicker: i.props.showFullMonthYearPicker, showTwoColumnMonthYearPicker: i.props.showTwoColumnMonthYearPicker, showFourColumnMonthYearPicker: i.props.showFourColumnMonthYearPicker, showYearPicker: i.props.showYearPicker, showQuarterYearPicker: i.props.showQuarterYearPicker, isInputFocused: i.props.isInputFocused, containerRef: i.containerRef, monthShowsDuplicateDaysEnd: k, monthShowsDuplicateDaysStart: _ })));
|
|
36748
36753
|
}
|
|
36749
36754
|
return p;
|
|
36750
36755
|
}
|
|
36751
36756
|
}), j(U(i), "renderYears", function() {
|
|
36752
|
-
if (!i.props.showTimeSelectOnly) return i.props.showYearPicker ?
|
|
36757
|
+
if (!i.props.showTimeSelectOnly) return i.props.showYearPicker ? t1.createElement("div", { className: "react-datepicker__year--container" }, i.renderHeader(), t1.createElement(Sz, Nc({ onDayClick: i.handleDayClick, selectingDate: i.state.selectingDate, clearSelectingDate: i.clearSelectingDate, date: i.state.date }, i.props, { onYearMouseEnter: i.handleYearMouseEnter, onYearMouseLeave: i.handleYearMouseLeave }))) : void 0;
|
|
36753
36758
|
}), j(U(i), "renderTimeSection", function() {
|
|
36754
|
-
if (i.props.showTimeSelect && (i.state.monthContainer || i.props.showTimeSelectOnly)) return
|
|
36759
|
+
if (i.props.showTimeSelect && (i.state.monthContainer || i.props.showTimeSelectOnly)) return t1.createElement(Gw, { selected: i.props.selected, openToDate: i.props.openToDate, onChange: i.props.onTimeChange, timeClassName: i.props.timeClassName, format: i.props.timeFormat, includeTimes: i.props.includeTimes, intervals: i.props.timeIntervals, minTime: i.props.minTime, maxTime: i.props.maxTime, excludeTimes: i.props.excludeTimes, filterTime: i.props.filterTime, timeCaption: i.props.timeCaption, todayButton: i.props.todayButton, showMonthDropdown: i.props.showMonthDropdown, showMonthYearDropdown: i.props.showMonthYearDropdown, showYearDropdown: i.props.showYearDropdown, withPortal: i.props.withPortal, monthRef: i.state.monthContainer, injectTimes: i.props.injectTimes, locale: i.props.locale, handleOnKeyDown: i.props.handleOnKeyDown, showTimeSelectOnly: i.props.showTimeSelectOnly });
|
|
36755
36760
|
}), j(U(i), "renderInputTimeSection", function() {
|
|
36756
36761
|
var p = new Date(i.props.selected), C = Et(p) && i.props.selected ? "".concat(cb(p.getHours()), ":").concat(cb(p.getMinutes())) : "";
|
|
36757
|
-
if (i.props.showTimeInput) return
|
|
36762
|
+
if (i.props.showTimeInput) return t1.createElement(kz, { date: p, timeString: C, timeInputLabel: i.props.timeInputLabel, onChange: i.props.onTimeChange, customTimeInput: i.props.customTimeInput });
|
|
36758
36763
|
}), j(U(i), "renderAriaLiveRegion", function() {
|
|
36759
36764
|
var p, C = ta(i.state.date, i.props.yearItemNumber), v = C.startPeriod, y = C.endPeriod;
|
|
36760
|
-
return p = i.props.showYearPicker ? "".concat(v, " - ").concat(y) : i.props.showMonthYearPicker || i.props.showQuarterYearPicker ? G2(i.state.date) : "".concat(Kh(a5(i.state.date), i.props.locale), " ").concat(G2(i.state.date)),
|
|
36765
|
+
return p = i.props.showYearPicker ? "".concat(v, " - ").concat(y) : i.props.showMonthYearPicker || i.props.showQuarterYearPicker ? G2(i.state.date) : "".concat(Kh(a5(i.state.date), i.props.locale), " ").concat(G2(i.state.date)), t1.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, i.state.isRenderAriaLiveMessage && p);
|
|
36761
36766
|
}), j(U(i), "renderChildren", function() {
|
|
36762
|
-
if (i.props.children) return
|
|
36763
|
-
}), i.containerRef =
|
|
36767
|
+
if (i.props.children) return t1.createElement("div", { className: "react-datepicker__children-container" }, i.props.children);
|
|
36768
|
+
}), i.containerRef = t1.createRef(), i.state = { date: i.getDateInView(), selectingDate: null, monthContainer: null, isRenderAriaLiveMessage: !1 }, i;
|
|
36764
36769
|
}
|
|
36765
36770
|
return g4(o, [{ key: "componentDidMount", value: function() {
|
|
36766
36771
|
var s = this;
|
|
@@ -36776,13 +36781,13 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36776
36781
|
}
|
|
36777
36782
|
} }, { key: "render", value: function() {
|
|
36778
36783
|
var s = this.props.container || Tz;
|
|
36779
|
-
return
|
|
36784
|
+
return t1.createElement("div", { ref: this.containerRef }, t1.createElement(s, { className: H5("react-datepicker", this.props.className, { "react-datepicker--time-only": this.props.showTimeSelectOnly }), showPopperArrow: this.props.showPopperArrow, arrowProps: this.props.arrowProps }, this.renderAriaLiveRegion(), this.renderPreviousButton(), this.renderNextButton(), this.renderMonths(), this.renderYears(), this.renderTodayButton(), this.renderTimeSection(), this.renderInputTimeSection(), this.renderChildren()));
|
|
36780
36785
|
} }], [{ key: "defaultProps", get: function() {
|
|
36781
36786
|
return { onDropdownFocus: function() {
|
|
36782
36787
|
}, monthsShown: 1, monthSelectedIn: 0, forceShowMonthNavigation: !1, timeCaption: "Time", previousYearButtonLabel: "Previous Year", nextYearButtonLabel: "Next Year", previousMonthButtonLabel: "Previous Month", nextMonthButtonLabel: "Next Month", customTimeInput: null, yearItemNumber: 12 };
|
|
36783
36788
|
} }]), o;
|
|
36784
36789
|
}(), Xw = function(r) {
|
|
36785
|
-
y4(o,
|
|
36790
|
+
y4(o, t1.Component);
|
|
36786
36791
|
var a = L4(o);
|
|
36787
36792
|
function o(s) {
|
|
36788
36793
|
var i;
|
|
@@ -36798,7 +36803,7 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36798
36803
|
}(), Rz = function(r) {
|
|
36799
36804
|
return !r.disabled && r.tabIndex !== -1;
|
|
36800
36805
|
}, Kw = function(r) {
|
|
36801
|
-
y4(o,
|
|
36806
|
+
y4(o, t1.Component);
|
|
36802
36807
|
var a = L4(o);
|
|
36803
36808
|
function o(s) {
|
|
36804
36809
|
var i;
|
|
@@ -36810,15 +36815,15 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36810
36815
|
}), j(U(i), "handleFocusEnd", function(p) {
|
|
36811
36816
|
var C = i.getTabChildren();
|
|
36812
36817
|
C && C.length > 1 && C[0].focus();
|
|
36813
|
-
}), i.tabLoopRef =
|
|
36818
|
+
}), i.tabLoopRef = t1.createRef(), i;
|
|
36814
36819
|
}
|
|
36815
36820
|
return g4(o, [{ key: "render", value: function() {
|
|
36816
|
-
return this.props.enableTabLoop ?
|
|
36821
|
+
return this.props.enableTabLoop ? t1.createElement("div", { className: "react-datepicker__tab-loop", ref: this.tabLoopRef }, t1.createElement("div", { className: "react-datepicker__tab-loop__start", tabIndex: "0", onFocus: this.handleFocusStart }), this.props.children, t1.createElement("div", { className: "react-datepicker__tab-loop__end", tabIndex: "0", onFocus: this.handleFocusEnd })) : this.props.children;
|
|
36817
36822
|
} }], [{ key: "defaultProps", get: function() {
|
|
36818
36823
|
return { enableTabLoop: !0 };
|
|
36819
36824
|
} }]), o;
|
|
36820
36825
|
}(), Zz = function(r) {
|
|
36821
|
-
y4(o,
|
|
36826
|
+
y4(o, t1.Component);
|
|
36822
36827
|
var a = L4(o);
|
|
36823
36828
|
function o() {
|
|
36824
36829
|
return v4(this, o), a.apply(this, arguments);
|
|
@@ -36826,23 +36831,23 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
36826
36831
|
return g4(o, [{ key: "render", value: function() {
|
|
36827
36832
|
var s, i = this.props, p = i.className, C = i.wrapperClassName, v = i.hidePopper, y = i.popperComponent, L = i.popperModifiers, V = i.popperPlacement, E = i.popperProps, k = i.targetComponent, _ = i.enableTabLoop, R = i.popperOnKeyDown, N = i.portalId, Z = i.portalHost;
|
|
36828
36833
|
if (!v) {
|
|
36829
|
-
var
|
|
36830
|
-
s =
|
|
36831
|
-
var A =
|
|
36832
|
-
return
|
|
36834
|
+
var $ = H5("react-datepicker-popper", p);
|
|
36835
|
+
s = t1.createElement(JA, Nc({ modifiers: L, placement: V }, E), function(I) {
|
|
36836
|
+
var A = I.ref, K = I.style, J = I.placement, i1 = I.arrowProps;
|
|
36837
|
+
return t1.createElement(Kw, { enableTabLoop: _ }, t1.createElement("div", { ref: A, style: K, className: $, "data-placement": J, onKeyDown: R }, t1.cloneElement(y, { arrowProps: i1 })));
|
|
36833
36838
|
});
|
|
36834
36839
|
}
|
|
36835
|
-
this.props.popperContainer && (s =
|
|
36840
|
+
this.props.popperContainer && (s = t1.createElement(this.props.popperContainer, {}, s)), N && !v && (s = t1.createElement(Xw, { portalId: N, portalHost: Z }, s));
|
|
36836
36841
|
var P = H5("react-datepicker-wrapper", C);
|
|
36837
|
-
return
|
|
36838
|
-
var A =
|
|
36839
|
-
return
|
|
36842
|
+
return t1.createElement(Oj, { className: "react-datepicker-manager" }, t1.createElement(az, null, function(I) {
|
|
36843
|
+
var A = I.ref;
|
|
36844
|
+
return t1.createElement("div", { ref: A, className: P }, k);
|
|
36840
36845
|
}), s);
|
|
36841
36846
|
} }], [{ key: "defaultProps", get: function() {
|
|
36842
36847
|
return { hidePopper: !0, popperModifiers: [], popperProps: {}, popperPlacement: "bottom-start" };
|
|
36843
36848
|
} }]), o;
|
|
36844
36849
|
}(), Oz = Zc(Dz), Cb = function(r) {
|
|
36845
|
-
y4(o,
|
|
36850
|
+
y4(o, t1.Component);
|
|
36846
36851
|
var a = L4(o);
|
|
36847
36852
|
function o(s) {
|
|
36848
36853
|
var i;
|
|
@@ -37006,24 +37011,24 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
37006
37011
|
}), j(U(i), "onScroll", function(p) {
|
|
37007
37012
|
typeof i.props.closeOnScroll == "boolean" && i.props.closeOnScroll ? p.target !== document && p.target !== document.documentElement && p.target !== document.body || i.setOpen(!1) : typeof i.props.closeOnScroll == "function" && i.props.closeOnScroll(p) && i.setOpen(!1);
|
|
37008
37013
|
}), j(U(i), "renderCalendar", function() {
|
|
37009
|
-
return i.props.inline || i.isCalendarOpen() ?
|
|
37014
|
+
return i.props.inline || i.isCalendarOpen() ? t1.createElement(Oz, { ref: function(p) {
|
|
37010
37015
|
i.calendar = p;
|
|
37011
37016
|
}, locale: i.props.locale, calendarStartDay: i.props.calendarStartDay, chooseDayAriaLabelPrefix: i.props.chooseDayAriaLabelPrefix, disabledDayAriaLabelPrefix: i.props.disabledDayAriaLabelPrefix, weekAriaLabelPrefix: i.props.weekAriaLabelPrefix, monthAriaLabelPrefix: i.props.monthAriaLabelPrefix, adjustDateOnChange: i.props.adjustDateOnChange, setOpen: i.setOpen, shouldCloseOnSelect: i.props.shouldCloseOnSelect, dateFormat: i.props.dateFormatCalendar, useWeekdaysShort: i.props.useWeekdaysShort, formatWeekDay: i.props.formatWeekDay, dropdownMode: i.props.dropdownMode, selected: i.props.selected, preSelection: i.state.preSelection, onSelect: i.handleSelect, onWeekSelect: i.props.onWeekSelect, openToDate: i.props.openToDate, minDate: i.props.minDate, maxDate: i.props.maxDate, selectsStart: i.props.selectsStart, selectsEnd: i.props.selectsEnd, selectsRange: i.props.selectsRange, startDate: i.props.startDate, endDate: i.props.endDate, excludeDates: i.props.excludeDates, excludeDateIntervals: i.props.excludeDateIntervals, filterDate: i.props.filterDate, onClickOutside: i.handleCalendarClickOutside, formatWeekNumber: i.props.formatWeekNumber, highlightDates: i.state.highlightDates, includeDates: i.props.includeDates, includeDateIntervals: i.props.includeDateIntervals, includeTimes: i.props.includeTimes, injectTimes: i.props.injectTimes, inline: i.props.inline, shouldFocusDayInline: i.state.shouldFocusDayInline, peekNextMonth: i.props.peekNextMonth, showMonthDropdown: i.props.showMonthDropdown, showPreviousMonths: i.props.showPreviousMonths, useShortMonthInDropdown: i.props.useShortMonthInDropdown, showMonthYearDropdown: i.props.showMonthYearDropdown, showWeekNumbers: i.props.showWeekNumbers, showYearDropdown: i.props.showYearDropdown, withPortal: i.props.withPortal, forceShowMonthNavigation: i.props.forceShowMonthNavigation, showDisabledMonthNavigation: i.props.showDisabledMonthNavigation, scrollableYearDropdown: i.props.scrollableYearDropdown, scrollableMonthYearDropdown: i.props.scrollableMonthYearDropdown, todayButton: i.props.todayButton, weekLabel: i.props.weekLabel, outsideClickIgnoreClass: "react-datepicker-ignore-onclickoutside", fixedHeight: i.props.fixedHeight, monthsShown: i.props.monthsShown, monthSelectedIn: i.state.monthSelectedIn, onDropdownFocus: i.handleDropdownFocus, onMonthChange: i.props.onMonthChange, onYearChange: i.props.onYearChange, dayClassName: i.props.dayClassName, weekDayClassName: i.props.weekDayClassName, monthClassName: i.props.monthClassName, timeClassName: i.props.timeClassName, showTimeSelect: i.props.showTimeSelect, showTimeSelectOnly: i.props.showTimeSelectOnly, onTimeChange: i.handleTimeChange, timeFormat: i.props.timeFormat, timeIntervals: i.props.timeIntervals, minTime: i.props.minTime, maxTime: i.props.maxTime, excludeTimes: i.props.excludeTimes, filterTime: i.props.filterTime, timeCaption: i.props.timeCaption, className: i.props.calendarClassName, container: i.props.calendarContainer, yearItemNumber: i.props.yearItemNumber, yearDropdownItemNumber: i.props.yearDropdownItemNumber, previousMonthAriaLabel: i.props.previousMonthAriaLabel, previousMonthButtonLabel: i.props.previousMonthButtonLabel, nextMonthAriaLabel: i.props.nextMonthAriaLabel, nextMonthButtonLabel: i.props.nextMonthButtonLabel, previousYearAriaLabel: i.props.previousYearAriaLabel, previousYearButtonLabel: i.props.previousYearButtonLabel, nextYearAriaLabel: i.props.nextYearAriaLabel, nextYearButtonLabel: i.props.nextYearButtonLabel, timeInputLabel: i.props.timeInputLabel, disabledKeyboardNavigation: i.props.disabledKeyboardNavigation, renderCustomHeader: i.props.renderCustomHeader, popperProps: i.props.popperProps, renderDayContents: i.props.renderDayContents, onDayMouseEnter: i.props.onDayMouseEnter, onMonthMouseLeave: i.props.onMonthMouseLeave, onYearMouseEnter: i.props.onYearMouseEnter, onYearMouseLeave: i.props.onYearMouseLeave, selectsDisabledDaysInRange: i.props.selectsDisabledDaysInRange, showTimeInput: i.props.showTimeInput, showMonthYearPicker: i.props.showMonthYearPicker, showFullMonthYearPicker: i.props.showFullMonthYearPicker, showTwoColumnMonthYearPicker: i.props.showTwoColumnMonthYearPicker, showFourColumnMonthYearPicker: i.props.showFourColumnMonthYearPicker, showYearPicker: i.props.showYearPicker, showQuarterYearPicker: i.props.showQuarterYearPicker, showPopperArrow: i.props.showPopperArrow, excludeScrollbar: i.props.excludeScrollbar, handleOnKeyDown: i.props.onKeyDown, handleOnDayKeyDown: i.onDayKeyDown, isInputFocused: i.state.focused, customTimeInput: i.props.customTimeInput, setPreSelection: i.setPreSelection }, i.props.children) : null;
|
|
37012
37017
|
}), j(U(i), "renderAriaLiveRegion", function() {
|
|
37013
37018
|
var p, C = i.props, v = C.dateFormat, y = C.locale, L = i.props.showTimeInput || i.props.showTimeSelect ? "PPPPp" : "PPPP";
|
|
37014
|
-
return p = i.props.selectsRange ? "Selected start date: ".concat(v8(i.props.startDate, { dateFormat: L, locale: y }), ". ").concat(i.props.endDate ? "End date: " + v8(i.props.endDate, { dateFormat: L, locale: y }) : "") : i.props.showTimeSelectOnly ? "Selected time: ".concat(v8(i.props.selected, { dateFormat: v, locale: y })) : i.props.showYearPicker ? "Selected year: ".concat(v8(i.props.selected, { dateFormat: "yyyy", locale: y })) : i.props.showMonthYearPicker ? "Selected month: ".concat(v8(i.props.selected, { dateFormat: "MMMM yyyy", locale: y })) : i.props.showQuarterYearPicker ? "Selected quarter: ".concat(v8(i.props.selected, { dateFormat: "yyyy, QQQ", locale: y })) : "Selected date: ".concat(v8(i.props.selected, { dateFormat: L, locale: y })),
|
|
37019
|
+
return p = i.props.selectsRange ? "Selected start date: ".concat(v8(i.props.startDate, { dateFormat: L, locale: y }), ". ").concat(i.props.endDate ? "End date: " + v8(i.props.endDate, { dateFormat: L, locale: y }) : "") : i.props.showTimeSelectOnly ? "Selected time: ".concat(v8(i.props.selected, { dateFormat: v, locale: y })) : i.props.showYearPicker ? "Selected year: ".concat(v8(i.props.selected, { dateFormat: "yyyy", locale: y })) : i.props.showMonthYearPicker ? "Selected month: ".concat(v8(i.props.selected, { dateFormat: "MMMM yyyy", locale: y })) : i.props.showQuarterYearPicker ? "Selected quarter: ".concat(v8(i.props.selected, { dateFormat: "yyyy, QQQ", locale: y })) : "Selected date: ".concat(v8(i.props.selected, { dateFormat: L, locale: y })), t1.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, i.state.isRenderAriaLiveMessage && p);
|
|
37015
37020
|
}), j(U(i), "renderDateInput", function() {
|
|
37016
|
-
var p, C = H5(i.props.className, j({}, "react-datepicker-ignore-onclickoutside", i.state.open)), v = i.props.customInput ||
|
|
37021
|
+
var p, C = H5(i.props.className, j({}, "react-datepicker-ignore-onclickoutside", i.state.open)), v = i.props.customInput || t1.createElement("input", { type: "text" }), y = i.props.customInputRef || "ref", L = typeof i.props.value == "string" ? i.props.value : typeof i.state.inputValue == "string" ? i.state.inputValue : i.props.selectsRange ? function(V, E, k) {
|
|
37017
37022
|
if (!V) return "";
|
|
37018
37023
|
var _ = v8(V, k), R = E ? v8(E, k) : "";
|
|
37019
37024
|
return "".concat(_, " - ").concat(R);
|
|
37020
37025
|
}(i.props.startDate, i.props.endDate, i.props) : v8(i.props.selected, i.props);
|
|
37021
|
-
return
|
|
37026
|
+
return t1.cloneElement(v, (j(p = {}, y, function(V) {
|
|
37022
37027
|
i.input = V;
|
|
37023
37028
|
}), j(p, "value", L), j(p, "onBlur", i.handleBlur), j(p, "onChange", i.handleChange), j(p, "onClick", i.onInputClick), j(p, "onFocus", i.handleFocus), j(p, "onKeyDown", i.onInputKeyDown), j(p, "id", i.props.id), j(p, "name", i.props.name), j(p, "form", i.props.form), j(p, "autoFocus", i.props.autoFocus), j(p, "placeholder", i.props.placeholderText), j(p, "disabled", i.props.disabled), j(p, "autoComplete", i.props.autoComplete), j(p, "className", H5(v.props.className, C)), j(p, "title", i.props.title), j(p, "readOnly", i.props.readOnly), j(p, "required", i.props.required), j(p, "tabIndex", i.props.tabIndex), j(p, "aria-describedby", i.props.ariaDescribedBy), j(p, "aria-invalid", i.props.ariaInvalid), j(p, "aria-labelledby", i.props.ariaLabelledBy), j(p, "aria-required", i.props.ariaRequired), p));
|
|
37024
37029
|
}), j(U(i), "renderClearButton", function() {
|
|
37025
37030
|
var p = i.props, C = p.isClearable, v = p.selected, y = p.startDate, L = p.endDate, V = p.clearButtonTitle, E = p.clearButtonClassName, k = E === void 0 ? "" : E, _ = p.ariaLabelClose, R = _ === void 0 ? "Close" : _;
|
|
37026
|
-
return !C || v == null && y == null && L == null ? null :
|
|
37031
|
+
return !C || v == null && y == null && L == null ? null : t1.createElement("button", { type: "button", className: "react-datepicker__close-icon ".concat(k).trim(), "aria-label": R, onClick: i.onClearClick, title: V, tabIndex: -1 });
|
|
37027
37032
|
}), i.state = i.calcInitialState(), i;
|
|
37028
37033
|
}
|
|
37029
37034
|
return g4(o, [{ key: "componentDidMount", value: function() {
|
|
@@ -37035,15 +37040,15 @@ var _z = ["react-datepicker__year-select", "react-datepicker__month-select", "re
|
|
|
37035
37040
|
this.clearPreventFocusTimeout(), window.removeEventListener("scroll", this.onScroll, !0);
|
|
37036
37041
|
} }, { key: "renderInputContainer", value: function() {
|
|
37037
37042
|
var s = this.props.showIcon;
|
|
37038
|
-
return
|
|
37043
|
+
return t1.createElement("div", { className: "react-datepicker__input-container ".concat(s ? "react-datepicker__view-calendar-icon" : "") }, s && t1.createElement("svg", { className: "react-datepicker__calendar-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, t1.createElement("path", { d: "M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z" })), this.renderAriaLiveRegion(), this.renderDateInput(), this.renderClearButton());
|
|
37039
37044
|
} }, { key: "render", value: function() {
|
|
37040
37045
|
var s = this.renderCalendar();
|
|
37041
37046
|
if (this.props.inline) return s;
|
|
37042
37047
|
if (this.props.withPortal) {
|
|
37043
|
-
var i = this.state.open ?
|
|
37044
|
-
return this.state.open && this.props.portalId && (i =
|
|
37048
|
+
var i = this.state.open ? t1.createElement(Kw, { enableTabLoop: this.props.enableTabLoop }, t1.createElement("div", { className: "react-datepicker__portal", tabIndex: -1, onKeyDown: this.onPortalKeyDown }, s)) : null;
|
|
37049
|
+
return this.state.open && this.props.portalId && (i = t1.createElement(Xw, { portalId: this.props.portalId, portalHost: this.props.portalHost }, i)), t1.createElement("div", null, this.renderInputContainer(), i);
|
|
37045
37050
|
}
|
|
37046
|
-
return
|
|
37051
|
+
return t1.createElement(Zz, { className: this.props.popperClassName, wrapperClassName: this.props.wrapperClassName, hidePopper: !this.isCalendarOpen(), portalId: this.props.portalId, portalHost: this.props.portalHost, popperModifiers: this.props.popperModifiers, targetComponent: this.renderInputContainer(), popperContainer: this.props.popperContainer, popperComponent: s, popperPlacement: this.props.popperPlacement, popperProps: this.props.popperProps, popperOnKeyDown: this.onPopperKeyDown, enableTabLoop: this.props.enableTabLoop });
|
|
37047
37052
|
} }], [{ key: "defaultProps", get: function() {
|
|
37048
37053
|
return { allowSameDay: !1, dateFormat: "MM/dd/yyyy", dateFormatCalendar: "LLLL yyyy", onChange: function() {
|
|
37049
37054
|
}, disabled: !1, disabledKeyboardNavigation: !1, dropdownMode: "scroll", onFocus: function() {
|
|
@@ -37082,9 +37087,9 @@ const em = P1(
|
|
|
37082
37087
|
),
|
|
37083
37088
|
{ shouldForwardProp: () => !0 }
|
|
37084
37089
|
), Bz = P1((r) => {
|
|
37085
|
-
const { children: a, gap: o, id: s, ...i } = r, p =
|
|
37090
|
+
const { children: a, gap: o, id: s, ...i } = r, p = t1.Children.count(a), C = t1.Children.map(
|
|
37086
37091
|
a,
|
|
37087
|
-
(v, y) => v &&
|
|
37092
|
+
(v, y) => v && v.type === C7 ? t1.cloneElement(v, { id: `${s}-grandchild${y}` }) : null
|
|
37088
37093
|
);
|
|
37089
37094
|
return /* @__PURE__ */ x.jsx(em, { columns: p, gap: o, id: s, ...i, children: C });
|
|
37090
37095
|
}), C7 = P1((r) => {
|
|
@@ -37102,9 +37107,9 @@ const em = P1(
|
|
|
37102
37107
|
...y
|
|
37103
37108
|
} = r, L = me(p), V = {};
|
|
37104
37109
|
o && (V.action = o), C && (C === "get" || C === "post") && (V.method = C);
|
|
37105
|
-
const E =
|
|
37110
|
+
const E = t1.Children.map(
|
|
37106
37111
|
s,
|
|
37107
|
-
(k, _) => k &&
|
|
37112
|
+
(k, _) => k && t1.cloneElement(k, { gap: i, id: `${L}-child${_}` })
|
|
37108
37113
|
);
|
|
37109
37114
|
return /* @__PURE__ */ x.jsx(
|
|
37110
37115
|
p1,
|
|
@@ -37169,9 +37174,9 @@ const Pz = {
|
|
|
37169
37174
|
isRequired: R = !1,
|
|
37170
37175
|
labelText: N,
|
|
37171
37176
|
max: Z,
|
|
37172
|
-
maxLength:
|
|
37177
|
+
maxLength: $,
|
|
37173
37178
|
min: P,
|
|
37174
|
-
name:
|
|
37179
|
+
name: I,
|
|
37175
37180
|
onChange: A,
|
|
37176
37181
|
onClick: K,
|
|
37177
37182
|
onFocus: J,
|
|
@@ -37230,7 +37235,7 @@ const Pz = {
|
|
|
37230
37235
|
defaultValue: C,
|
|
37231
37236
|
id: v1,
|
|
37232
37237
|
"aria-hidden": H2,
|
|
37233
|
-
name:
|
|
37238
|
+
name: I,
|
|
37234
37239
|
onChange: l2,
|
|
37235
37240
|
ref: A1
|
|
37236
37241
|
} : {
|
|
@@ -37247,9 +37252,9 @@ const Pz = {
|
|
|
37247
37252
|
isRequired: R,
|
|
37248
37253
|
isInvalid: X2,
|
|
37249
37254
|
max: Z,
|
|
37250
|
-
maxLength:
|
|
37255
|
+
maxLength: $,
|
|
37251
37256
|
min: P,
|
|
37252
|
-
name:
|
|
37257
|
+
name: I,
|
|
37253
37258
|
onChange: l2,
|
|
37254
37259
|
onClick: K,
|
|
37255
37260
|
onFocus: J,
|
|
@@ -37395,9 +37400,9 @@ const Pz = {
|
|
|
37395
37400
|
isRequired: R,
|
|
37396
37401
|
labelText: N = "From",
|
|
37397
37402
|
maxDate: Z,
|
|
37398
|
-
minDate:
|
|
37403
|
+
minDate: $,
|
|
37399
37404
|
nameFrom: P,
|
|
37400
|
-
nameTo:
|
|
37405
|
+
nameTo: I,
|
|
37401
37406
|
onChange: A,
|
|
37402
37407
|
placeholder: K,
|
|
37403
37408
|
placeholderTo: J,
|
|
@@ -37426,7 +37431,7 @@ const Pz = {
|
|
|
37426
37431
|
}
|
|
37427
37432
|
}
|
|
37428
37433
|
],
|
|
37429
|
-
minDate:
|
|
37434
|
+
minDate: $ ? new Date($) : null,
|
|
37430
37435
|
maxDate: Z ? new Date(Z) : null,
|
|
37431
37436
|
dateFormat: o
|
|
37432
37437
|
}, o2 = {
|
|
@@ -37444,9 +37449,9 @@ const Pz = {
|
|
|
37444
37449
|
invalidText: V,
|
|
37445
37450
|
__css: n2.subLabels
|
|
37446
37451
|
}, l2 = {}, D2 = {}, N2 = null, L3 = N;
|
|
37447
|
-
if (s === "month" ? (V2.showMonthYearPicker = !0, V2.dateFormat = "MM-yyyy") : s === "year" && (V2.showYearPicker = !0, V2.yearItemNumber = H2, V2.dateFormat = "yyyy"), (a && !P || i1 &&
|
|
37452
|
+
if (s === "month" ? (V2.showMonthYearPicker = !0, V2.dateFormat = "MM-yyyy") : s === "year" && (V2.showYearPicker = !0, V2.yearItemNumber = H2, V2.dateFormat = "yyyy"), (a && !P || i1 && !I) && console.warn(
|
|
37448
37453
|
"NYPL Reservoir DatePicker: A `ref` or `refTo` prop was passed but not the equivalent `nameFrom` or `nameTo` prop."
|
|
37449
|
-
), A && (a || i1 || P ||
|
|
37454
|
+
), A && (a || i1 || P || I) && console.warn(
|
|
37450
37455
|
"NYPL Reservoir DatePicker: A `ref`, `refTo`, `nameFrom`, or `nameTo` prop was passed and an `onChange` prop as well. Use whichever is best for your app but not both."
|
|
37451
37456
|
), l2 = { ...V2 }, E) {
|
|
37452
37457
|
const k2 = {
|
|
@@ -37472,12 +37477,12 @@ const Pz = {
|
|
|
37472
37477
|
{
|
|
37473
37478
|
dsRef: Q1,
|
|
37474
37479
|
labelText: "To",
|
|
37475
|
-
...C && i ? { additionalHelperTextIds: `${x1}-
|
|
37480
|
+
...C && i ? { additionalHelperTextIds: `${x1}-helperErrorText` } : {},
|
|
37476
37481
|
...k2
|
|
37477
37482
|
}
|
|
37478
37483
|
),
|
|
37479
37484
|
id: `${x1}-datePicker-end`,
|
|
37480
|
-
name:
|
|
37485
|
+
name: I,
|
|
37481
37486
|
onChange: (P2) => n3(P2, "endDate"),
|
|
37482
37487
|
placeholderText: J,
|
|
37483
37488
|
selected: A1.endDate,
|
|
@@ -37493,7 +37498,7 @@ const Pz = {
|
|
|
37493
37498
|
{
|
|
37494
37499
|
dsRef: v1,
|
|
37495
37500
|
labelText: L3,
|
|
37496
|
-
...E && p && i ? { additionalHelperTextIds: `${x1}-
|
|
37501
|
+
...E && p && i ? { additionalHelperTextIds: `${x1}-helperErrorText` } : {},
|
|
37497
37502
|
...o2
|
|
37498
37503
|
}
|
|
37499
37504
|
),
|
|
@@ -37524,7 +37529,7 @@ const Pz = {
|
|
|
37524
37529
|
/* @__PURE__ */ x.jsx(
|
|
37525
37530
|
aa,
|
|
37526
37531
|
{
|
|
37527
|
-
id: `${x1}-
|
|
37532
|
+
id: `${x1}-helperErrorText`,
|
|
37528
37533
|
isInvalid: !1,
|
|
37529
37534
|
isRenderedText: E && d1,
|
|
37530
37535
|
mt: "helper.default",
|
|
@@ -37611,7 +37616,7 @@ const VI = P1(
|
|
|
37611
37616
|
__css: v.heading,
|
|
37612
37617
|
children: a
|
|
37613
37618
|
}
|
|
37614
|
-
) :
|
|
37619
|
+
) : t1.cloneElement(a, {
|
|
37615
37620
|
__css: v.heading,
|
|
37616
37621
|
size: "heading6"
|
|
37617
37622
|
}) : void 0, L = G0({
|
|
@@ -37665,7 +37670,7 @@ const VI = P1(
|
|
|
37665
37670
|
notificationHeading: v,
|
|
37666
37671
|
variant: y,
|
|
37667
37672
|
showIcon: L
|
|
37668
|
-
}),
|
|
37673
|
+
}), $ = () => {
|
|
37669
37674
|
const d1 = {
|
|
37670
37675
|
size: "large",
|
|
37671
37676
|
__css: Z.icon
|
|
@@ -37673,7 +37678,7 @@ const VI = P1(
|
|
|
37673
37678
|
if (!L)
|
|
37674
37679
|
return;
|
|
37675
37680
|
if (s)
|
|
37676
|
-
return
|
|
37681
|
+
return t1.cloneElement(s, {
|
|
37677
37682
|
id: `${E}-custom-notification-icon`,
|
|
37678
37683
|
...d1
|
|
37679
37684
|
});
|
|
@@ -37705,7 +37710,7 @@ const VI = P1(
|
|
|
37705
37710
|
}, P = W5(
|
|
37706
37711
|
"ui.black",
|
|
37707
37712
|
"dark.ui.typography.heading"
|
|
37708
|
-
),
|
|
37713
|
+
), I = o && /* @__PURE__ */ x.jsx(
|
|
37709
37714
|
j3,
|
|
37710
37715
|
{
|
|
37711
37716
|
"aria-label": "Close the notification",
|
|
@@ -37724,7 +37729,7 @@ const VI = P1(
|
|
|
37724
37729
|
}
|
|
37725
37730
|
)
|
|
37726
37731
|
}
|
|
37727
|
-
), A =
|
|
37732
|
+
), A = $(), K = (v || L) && /* @__PURE__ */ x.jsx(
|
|
37728
37733
|
zz,
|
|
37729
37734
|
{
|
|
37730
37735
|
icon: A,
|
|
@@ -37749,7 +37754,7 @@ const VI = P1(
|
|
|
37749
37754
|
{
|
|
37750
37755
|
as: "aside",
|
|
37751
37756
|
"data-testid": "ds-notification",
|
|
37752
|
-
"data-
|
|
37757
|
+
"data-variant": y,
|
|
37753
37758
|
id: E,
|
|
37754
37759
|
ref: a,
|
|
37755
37760
|
__css: Z,
|
|
@@ -37759,7 +37764,7 @@ const VI = P1(
|
|
|
37759
37764
|
K,
|
|
37760
37765
|
i1
|
|
37761
37766
|
] }),
|
|
37762
|
-
|
|
37767
|
+
I
|
|
37763
37768
|
]
|
|
37764
37769
|
}
|
|
37765
37770
|
) : null;
|
|
@@ -37781,7 +37786,7 @@ const VI = P1(
|
|
|
37781
37786
|
showLabel: _ = !0,
|
|
37782
37787
|
value: R,
|
|
37783
37788
|
...N
|
|
37784
|
-
} = r, Z = me(s),
|
|
37789
|
+
} = r, Z = me(s), $ = O2("Radio", { showLabel: _ }), P = $z(), I = te("RadioWrapper"), K = $o({
|
|
37785
37790
|
footnote: v ? i : o,
|
|
37786
37791
|
id: Z,
|
|
37787
37792
|
labelText: L,
|
|
@@ -37793,12 +37798,12 @@ const VI = P1(
|
|
|
37793
37798
|
{
|
|
37794
37799
|
"data-testid": "ds-radio",
|
|
37795
37800
|
helperText: o,
|
|
37796
|
-
helperTextStyles:
|
|
37801
|
+
helperTextStyles: $.helperErrorText,
|
|
37797
37802
|
id: Z,
|
|
37798
37803
|
invalidText: i,
|
|
37799
37804
|
isInvalid: v,
|
|
37800
37805
|
showHelperInvalidText: k,
|
|
37801
|
-
sx:
|
|
37806
|
+
sx: I,
|
|
37802
37807
|
...N,
|
|
37803
37808
|
children: /* @__PURE__ */ x.jsx(
|
|
37804
37809
|
gk,
|
|
@@ -37813,9 +37818,9 @@ const VI = P1(
|
|
|
37813
37818
|
ref: a,
|
|
37814
37819
|
value: R,
|
|
37815
37820
|
alignItems: "flex-start",
|
|
37816
|
-
sx:
|
|
37821
|
+
sx: $,
|
|
37817
37822
|
...K,
|
|
37818
|
-
children: /* @__PURE__ */ x.jsx(p1, { as: "span", __css: _ ? {} :
|
|
37823
|
+
children: /* @__PURE__ */ x.jsx(p1, { as: "span", __css: _ ? {} : $.hiddenLabel, children: L })
|
|
37819
37824
|
}
|
|
37820
37825
|
)
|
|
37821
37826
|
}
|
|
@@ -37840,9 +37845,9 @@ const VI = P1(
|
|
|
37840
37845
|
onChange: R,
|
|
37841
37846
|
showHelperInvalidText: N = !0,
|
|
37842
37847
|
showLabel: Z = !0,
|
|
37843
|
-
showRequiredLabel:
|
|
37848
|
+
showRequiredLabel: $ = !0,
|
|
37844
37849
|
...P
|
|
37845
|
-
} = r, [
|
|
37850
|
+
} = r, [I, A] = t1.useState(s), K = L ? C : i, J = k === "column" ? No.s : No.l, i1 = O2("RadioGroup", {
|
|
37846
37851
|
isFullWidth: y,
|
|
37847
37852
|
isLegendHidden: !Z
|
|
37848
37853
|
}), d1 = {
|
|
@@ -37852,7 +37857,7 @@ const VI = P1(
|
|
|
37852
37857
|
A(S1), R && R(S1);
|
|
37853
37858
|
},
|
|
37854
37859
|
ref: a,
|
|
37855
|
-
value:
|
|
37860
|
+
value: I
|
|
37856
37861
|
}, c1 = yb(
|
|
37857
37862
|
() => ({
|
|
37858
37863
|
isDisabled: v,
|
|
@@ -37865,7 +37870,7 @@ const VI = P1(
|
|
|
37865
37870
|
return /* @__PURE__ */ x.jsxs(p1, { "data-testid": "ds-radioGroup", id: p, __css: i1, ...P, children: [
|
|
37866
37871
|
/* @__PURE__ */ x.jsxs(p1, { as: "span", id: `${p}-span-title`, __css: i1.spanLegend, children: [
|
|
37867
37872
|
E,
|
|
37868
|
-
|
|
37873
|
+
$ && V && /* @__PURE__ */ x.jsx("span", { children: " (required)" })
|
|
37869
37874
|
] }),
|
|
37870
37875
|
/* @__PURE__ */ x.jsx(yk, { ...d1, children: /* @__PURE__ */ x.jsx(
|
|
37871
37876
|
en,
|
|
@@ -37940,10 +37945,10 @@ const qz = P1(
|
|
|
37940
37945
|
onClose: R,
|
|
37941
37946
|
...N
|
|
37942
37947
|
}, Z) => {
|
|
37943
|
-
const
|
|
37948
|
+
const $ = me(s), [P, I] = Ec(E), [A, K] = Ec(i), [J, i1] = xe(!1), { state: d1, setCategory: c1, setComment: S1, setEmail: M1, clearValues: x1 } = Qz(), L1 = Ca(), n2 = k || L1.isOpen, _1 = _ || L1.onOpen, B1 = R || L1.onClose, G1 = i5(), m1 = i5(), k1 = i5(), v1 = O2("FeedbackBox", {}), Q1 = P === "form", q1 = P === "confirmation", A1 = P === "error", x2 = 3e3, n3 = 500, H2 = 165, V2 = "auto 1fr", o2 = W5(null, "dark.ui.typography.body"), l2 = 235, D2 = 275, N2 = 345, L3 = 37, X2 = 24;
|
|
37944
37949
|
let k2 = H2;
|
|
37945
37950
|
const P2 = () => {
|
|
37946
|
-
B1(),
|
|
37951
|
+
B1(), I("form"), x1(), K(!1), setTimeout(() => {
|
|
37947
37952
|
var M2;
|
|
37948
37953
|
(M2 = m1 == null ? void 0 : m1.current) == null || M2.focus();
|
|
37949
37954
|
}, 250);
|
|
@@ -37989,9 +37994,9 @@ const qz = P1(
|
|
|
37989
37994
|
Y7(() => {
|
|
37990
37995
|
let M2;
|
|
37991
37996
|
return J && (M2 = setTimeout(() => {
|
|
37992
|
-
i1(!1),
|
|
37993
|
-
}, x2), E !== P && (i1(!1),
|
|
37994
|
-
}, [x1, A1, J,
|
|
37997
|
+
i1(!1), I(A1 ? "error" : "confirmation"), x1();
|
|
37998
|
+
}, x2), E !== P && (i1(!1), I(E), clearTimeout(M2))), () => clearTimeout(M2);
|
|
37999
|
+
}, [x1, A1, J, I, E, P]), Y7(() => {
|
|
37995
38000
|
let M2;
|
|
37996
38001
|
return (P === "error" || P === "confirmation") && (M2 = setTimeout(() => {
|
|
37997
38002
|
var i3;
|
|
@@ -38002,7 +38007,7 @@ const qz = P1(
|
|
|
38002
38007
|
return /* @__PURE__ */ x.jsxs(
|
|
38003
38008
|
p1,
|
|
38004
38009
|
{
|
|
38005
|
-
id:
|
|
38010
|
+
id: $,
|
|
38006
38011
|
"data-testid": "ds-feedbackBox",
|
|
38007
38012
|
ref: Z,
|
|
38008
38013
|
sx: v1,
|
|
@@ -38011,7 +38016,7 @@ const qz = P1(
|
|
|
38011
38016
|
/* @__PURE__ */ x.jsx(
|
|
38012
38017
|
j3,
|
|
38013
38018
|
{
|
|
38014
|
-
id: `${
|
|
38019
|
+
id: `${$}-feedback-open`,
|
|
38015
38020
|
onClick: _1,
|
|
38016
38021
|
sx: v1.openButton,
|
|
38017
38022
|
ref: m1,
|
|
@@ -38031,7 +38036,7 @@ const qz = P1(
|
|
|
38031
38036
|
/* @__PURE__ */ x.jsxs(
|
|
38032
38037
|
j3,
|
|
38033
38038
|
{
|
|
38034
|
-
id: `${
|
|
38039
|
+
id: `${$}-feedback-close`,
|
|
38035
38040
|
onClick: P2,
|
|
38036
38041
|
sx: v1.closeButton,
|
|
38037
38042
|
variant: "text",
|
|
@@ -38049,7 +38054,7 @@ const qz = P1(
|
|
|
38049
38054
|
Jw,
|
|
38050
38055
|
{
|
|
38051
38056
|
gap: "grid.s",
|
|
38052
|
-
id: `${
|
|
38057
|
+
id: `${$}-feedback-form`,
|
|
38053
38058
|
onSubmit: h3,
|
|
38054
38059
|
sx: {
|
|
38055
38060
|
".feedback-body": {
|
|
@@ -38075,17 +38080,17 @@ const qz = P1(
|
|
|
38075
38080
|
Yz,
|
|
38076
38081
|
{
|
|
38077
38082
|
defaultValue: d1.category,
|
|
38078
|
-
id: `${
|
|
38083
|
+
id: `${$}-category`,
|
|
38079
38084
|
isDisabled: J,
|
|
38080
38085
|
labelText: "What is your feedback about?",
|
|
38081
|
-
name: `${
|
|
38086
|
+
name: `${$}-category`,
|
|
38082
38087
|
onChange: (M2) => c1(M2),
|
|
38083
38088
|
sx: v1.radioGroup,
|
|
38084
38089
|
children: [
|
|
38085
38090
|
/* @__PURE__ */ x.jsx(
|
|
38086
38091
|
Ap,
|
|
38087
38092
|
{
|
|
38088
|
-
id: `${
|
|
38093
|
+
id: `${$}-category-comment`,
|
|
38089
38094
|
labelText: "Comment",
|
|
38090
38095
|
value: "comment"
|
|
38091
38096
|
}
|
|
@@ -38093,7 +38098,7 @@ const qz = P1(
|
|
|
38093
38098
|
/* @__PURE__ */ x.jsx(
|
|
38094
38099
|
Ap,
|
|
38095
38100
|
{
|
|
38096
|
-
id: `${
|
|
38101
|
+
id: `${$}-category-correction`,
|
|
38097
38102
|
labelText: "Correction",
|
|
38098
38103
|
value: "correction"
|
|
38099
38104
|
}
|
|
@@ -38101,7 +38106,7 @@ const qz = P1(
|
|
|
38101
38106
|
/* @__PURE__ */ x.jsx(
|
|
38102
38107
|
Ap,
|
|
38103
38108
|
{
|
|
38104
|
-
id: `${
|
|
38109
|
+
id: `${$}-category-bug`,
|
|
38105
38110
|
labelText: "Bug",
|
|
38106
38111
|
value: "bug"
|
|
38107
38112
|
}
|
|
@@ -38114,7 +38119,7 @@ const qz = P1(
|
|
|
38114
38119
|
{
|
|
38115
38120
|
defaultValue: d1.comment,
|
|
38116
38121
|
helperText: `${n3 - d1.comment.length} characters remaining`,
|
|
38117
|
-
id: `${
|
|
38122
|
+
id: `${$}-comment`,
|
|
38118
38123
|
invalidText: "There was a problem. Please fill out this field.",
|
|
38119
38124
|
isDisabled: J,
|
|
38120
38125
|
isInvalid: A,
|
|
@@ -38123,7 +38128,7 @@ const qz = P1(
|
|
|
38123
38128
|
/* @__PURE__ */ x.jsx("span", { children: "(required)" })
|
|
38124
38129
|
] }),
|
|
38125
38130
|
maxLength: n3,
|
|
38126
|
-
name: `${
|
|
38131
|
+
name: `${$}-comment`,
|
|
38127
38132
|
onChange: (M2) => S1(M2.target.value),
|
|
38128
38133
|
placeholder: "Enter your question or feedback here",
|
|
38129
38134
|
ref: k1,
|
|
@@ -38133,12 +38138,12 @@ const qz = P1(
|
|
|
38133
38138
|
L && /* @__PURE__ */ x.jsx(C7, { width: "100%", children: /* @__PURE__ */ x.jsx(
|
|
38134
38139
|
J0,
|
|
38135
38140
|
{
|
|
38136
|
-
id: `${
|
|
38141
|
+
id: `${$}-email`,
|
|
38137
38142
|
invalidText: "There was a problem. Please enter a valid email address.",
|
|
38138
38143
|
isDisabled: J,
|
|
38139
38144
|
isInvalid: p,
|
|
38140
38145
|
labelText: "Email",
|
|
38141
|
-
name: `${
|
|
38146
|
+
name: `${$}-email`,
|
|
38142
38147
|
onChange: (M2) => M1(M2.target.value),
|
|
38143
38148
|
placeholder: "Enter your email address here",
|
|
38144
38149
|
type: "email",
|
|
@@ -38151,12 +38156,12 @@ const qz = P1(
|
|
|
38151
38156
|
Y0,
|
|
38152
38157
|
{
|
|
38153
38158
|
buttonWidth: "full",
|
|
38154
|
-
id: `${
|
|
38159
|
+
id: `${$}-submit-cancel`,
|
|
38155
38160
|
children: [
|
|
38156
38161
|
/* @__PURE__ */ x.jsx(
|
|
38157
38162
|
j3,
|
|
38158
38163
|
{
|
|
38159
|
-
id: `${
|
|
38164
|
+
id: `${$}-cancel`,
|
|
38160
38165
|
isDisabled: J,
|
|
38161
38166
|
onClick: P2,
|
|
38162
38167
|
variant: "secondary",
|
|
@@ -38167,7 +38172,7 @@ const qz = P1(
|
|
|
38167
38172
|
/* @__PURE__ */ x.jsx(
|
|
38168
38173
|
j3,
|
|
38169
38174
|
{
|
|
38170
|
-
id: `${
|
|
38175
|
+
id: `${$}-submit`,
|
|
38171
38176
|
isDisabled: J,
|
|
38172
38177
|
type: "submit",
|
|
38173
38178
|
children: "Submit"
|
|
@@ -38243,26 +38248,26 @@ const qz = P1(
|
|
|
38243
38248
|
Y0,
|
|
38244
38249
|
{
|
|
38245
38250
|
buttonWidth: "full",
|
|
38246
|
-
id: `${
|
|
38251
|
+
id: `${$}-submit-cancel`,
|
|
38247
38252
|
children: [
|
|
38248
38253
|
/* @__PURE__ */ x.jsx(
|
|
38249
38254
|
j3,
|
|
38250
38255
|
{
|
|
38251
|
-
id: `${
|
|
38256
|
+
id: `${$}-return-browsing2`,
|
|
38252
38257
|
onClick: P2,
|
|
38253
38258
|
variant: "secondary",
|
|
38254
38259
|
children: "Return to Browsing"
|
|
38255
38260
|
},
|
|
38256
|
-
`${
|
|
38261
|
+
`${$}-return-browsing2`
|
|
38257
38262
|
),
|
|
38258
38263
|
/* @__PURE__ */ x.jsx(
|
|
38259
38264
|
j3,
|
|
38260
38265
|
{
|
|
38261
|
-
id: `${
|
|
38262
|
-
onClick: () =>
|
|
38266
|
+
id: `${$}-try-again`,
|
|
38267
|
+
onClick: () => I("form"),
|
|
38263
38268
|
children: "Try Again"
|
|
38264
38269
|
},
|
|
38265
|
-
`${
|
|
38270
|
+
`${$}-try-again`
|
|
38266
38271
|
)
|
|
38267
38272
|
]
|
|
38268
38273
|
}
|
|
@@ -38309,7 +38314,7 @@ const EI = P1(
|
|
|
38309
38314
|
} = r, E = me(s), k = {
|
|
38310
38315
|
mb: "heading.default",
|
|
38311
38316
|
size: "heading5"
|
|
38312
|
-
}, _ = i ? typeof i == "string" ? /* @__PURE__ */ x.jsx(L9, { level: "h2", text: i, ...k }) :
|
|
38317
|
+
}, _ = i ? typeof i == "string" ? /* @__PURE__ */ x.jsx(L9, { level: "h2", text: i, ...k }) : t1.cloneElement(i, k) : null;
|
|
38313
38318
|
return /* @__PURE__ */ x.jsx(
|
|
38314
38319
|
G7,
|
|
38315
38320
|
{
|
|
@@ -38395,7 +38400,7 @@ const EI = P1(
|
|
|
38395
38400
|
width: "full"
|
|
38396
38401
|
}), Z = {
|
|
38397
38402
|
size: "heading5"
|
|
38398
|
-
},
|
|
38403
|
+
}, $ = p ? typeof p == "string" ? /* @__PURE__ */ x.jsx(L9, { level: "h2", text: p, ...Z }) : t1.cloneElement(p, Z) : null, P = Ca(), I = i || P.isOpen, A = y || P.onOpen, K = L || P.onClose, J = () => {
|
|
38399
38404
|
v(), K();
|
|
38400
38405
|
}, i1 = i5(), d1 = () => {
|
|
38401
38406
|
C(), setTimeout(() => {
|
|
@@ -38417,14 +38422,14 @@ const EI = P1(
|
|
|
38417
38422
|
/* @__PURE__ */ x.jsxs(
|
|
38418
38423
|
Ip,
|
|
38419
38424
|
{
|
|
38420
|
-
isOpen:
|
|
38425
|
+
isOpen: I,
|
|
38421
38426
|
onClose: K,
|
|
38422
38427
|
size: { base: "full", md: "md" },
|
|
38423
38428
|
scrollBehavior: "inside",
|
|
38424
38429
|
children: [
|
|
38425
38430
|
/* @__PURE__ */ x.jsx($p, {}),
|
|
38426
38431
|
/* @__PURE__ */ x.jsxs(Yp, { children: [
|
|
38427
|
-
/* @__PURE__ */ x.jsx(Wp, { sx:
|
|
38432
|
+
/* @__PURE__ */ x.jsx(Wp, { sx: $ ? N.modalHeader : void 0, children: $ }),
|
|
38428
38433
|
/* @__PURE__ */ x.jsx(Qp, { sx: N.modalCloseButton }),
|
|
38429
38434
|
/* @__PURE__ */ x.jsx(qp, { sx: N.modalBody, children: /* @__PURE__ */ x.jsx(en, { direction: "column", rowGap: "s", spacing: "0", children: V({
|
|
38430
38435
|
isBlockElement: !0,
|
|
@@ -38499,9 +38504,9 @@ const kI = P1(
|
|
|
38499
38504
|
foregroundColor: p,
|
|
38500
38505
|
isDarkText: V,
|
|
38501
38506
|
variant: v
|
|
38502
|
-
}), N = R.heading, Z = C &&
|
|
38503
|
-
let
|
|
38504
|
-
const
|
|
38507
|
+
}), N = R.heading, Z = C && t1.cloneElement(C, { __css: N });
|
|
38508
|
+
let $ = {}, P = {};
|
|
38509
|
+
const I = /* @__PURE__ */ x.jsx(
|
|
38505
38510
|
Wo,
|
|
38506
38511
|
{
|
|
38507
38512
|
alt: L.alt,
|
|
@@ -38541,7 +38546,7 @@ const kI = P1(
|
|
|
38541
38546
|
)
|
|
38542
38547
|
}, K = A[v];
|
|
38543
38548
|
if (v === "primary")
|
|
38544
|
-
|
|
38549
|
+
$ = i ? {
|
|
38545
38550
|
bgColor: K,
|
|
38546
38551
|
backgroundImage: `/**/url("${i}")`
|
|
38547
38552
|
} : {};
|
|
@@ -38555,7 +38560,7 @@ const kI = P1(
|
|
|
38555
38560
|
top: 0,
|
|
38556
38561
|
width: "100%"
|
|
38557
38562
|
};
|
|
38558
|
-
|
|
38563
|
+
$ = i ? {
|
|
38559
38564
|
_before: {
|
|
38560
38565
|
...c1,
|
|
38561
38566
|
bgColor: "ui.black"
|
|
@@ -38579,7 +38584,7 @@ const kI = P1(
|
|
|
38579
38584
|
bgColor: A.campaignBackdrop
|
|
38580
38585
|
}
|
|
38581
38586
|
};
|
|
38582
|
-
} else v === "tertiary" && (
|
|
38587
|
+
} else v === "tertiary" && ($ = s ? { bgColor: s } : { bgColor: s || K });
|
|
38583
38588
|
P = {
|
|
38584
38589
|
...p && { color: p },
|
|
38585
38590
|
...s ? { backgroundColor: s } : { bgColor: K }
|
|
@@ -38596,7 +38601,7 @@ const kI = P1(
|
|
|
38596
38601
|
style: {
|
|
38597
38602
|
backgroundImage: `/**/url("${L.src}")`
|
|
38598
38603
|
},
|
|
38599
|
-
children:
|
|
38604
|
+
children: I
|
|
38600
38605
|
}
|
|
38601
38606
|
),
|
|
38602
38607
|
/* @__PURE__ */ x.jsxs(p1, { __css: R.interior, children: [
|
|
@@ -38610,7 +38615,7 @@ const kI = P1(
|
|
|
38610
38615
|
__css: {
|
|
38611
38616
|
...R.imgWrapper
|
|
38612
38617
|
},
|
|
38613
|
-
children:
|
|
38618
|
+
children: I
|
|
38614
38619
|
}
|
|
38615
38620
|
),
|
|
38616
38621
|
Z,
|
|
@@ -38632,7 +38637,7 @@ const kI = P1(
|
|
|
38632
38637
|
ref: a,
|
|
38633
38638
|
__css: {
|
|
38634
38639
|
...R.base,
|
|
38635
|
-
|
|
38640
|
+
...$
|
|
38636
38641
|
},
|
|
38637
38642
|
..._,
|
|
38638
38643
|
children: d1
|
|
@@ -38693,9 +38698,9 @@ const kI = P1(
|
|
|
38693
38698
|
return console.warn(
|
|
38694
38699
|
"NYPL Reservoir List: Pass in either `<li>` children or pass data in the `listItems` prop, not both."
|
|
38695
38700
|
), null;
|
|
38696
|
-
const R = (N) => o || (p ? N === "ol" || N === "ul" ? p.map((Z,
|
|
38697
|
-
/* @__PURE__ */ x.jsx("dt", { children: Z.term }, `${
|
|
38698
|
-
/* @__PURE__ */ x.jsx("dd", { children: Z.description }, `${
|
|
38701
|
+
const R = (N) => o || (p ? N === "ol" || N === "ul" ? p.map((Z, $) => /* @__PURE__ */ x.jsx("li", { children: Z }, $)) : N === "dl" ? p.map((Z, $) => [
|
|
38702
|
+
/* @__PURE__ */ x.jsx("dt", { children: Z.term }, `${$}-term`),
|
|
38703
|
+
/* @__PURE__ */ x.jsx("dd", { children: Z.description }, `${$}-des`)
|
|
38699
38704
|
]) : null : null);
|
|
38700
38705
|
return L === "ol" || L === "ul" ? _ = /* @__PURE__ */ x.jsx(
|
|
38701
38706
|
p1,
|
|
@@ -39068,7 +39073,7 @@ const kI = P1(
|
|
|
39068
39073
|
const _ = XU[p];
|
|
39069
39074
|
return /* @__PURE__ */ x.jsx(hb, { as: _, ref: a, ...E, __css: V });
|
|
39070
39075
|
}
|
|
39071
|
-
return k =
|
|
39076
|
+
return k = t1.cloneElement(o, {
|
|
39072
39077
|
...E,
|
|
39073
39078
|
ref: a
|
|
39074
39079
|
}), /* @__PURE__ */ x.jsx(p1, { "data-testid": "ds-logo", ref: a, __css: V, children: k });
|
|
@@ -39270,7 +39275,7 @@ const RI = P1(
|
|
|
39270
39275
|
width: "1.5rem"
|
|
39271
39276
|
}
|
|
39272
39277
|
}
|
|
39273
|
-
) }) : null,
|
|
39278
|
+
) }) : null, $ = (A) => /* @__PURE__ */ x.jsxs(
|
|
39274
39279
|
Ek,
|
|
39275
39280
|
{
|
|
39276
39281
|
sx: E.menuButton,
|
|
@@ -39316,7 +39321,7 @@ const RI = P1(
|
|
|
39316
39321
|
isFocusable: !0,
|
|
39317
39322
|
"data-testid": i1 ? "selected-item" : "",
|
|
39318
39323
|
onClick: () => N(J.id, J.onClick),
|
|
39319
|
-
ref: i1 ?
|
|
39324
|
+
ref: i1 ? I : null,
|
|
39320
39325
|
sx: {
|
|
39321
39326
|
...E.actionItem,
|
|
39322
39327
|
...i1 && E.selected
|
|
@@ -39339,13 +39344,13 @@ const RI = P1(
|
|
|
39339
39344
|
J.id
|
|
39340
39345
|
);
|
|
39341
39346
|
return [...K, d1];
|
|
39342
|
-
}, []),
|
|
39343
|
-
return /* @__PURE__ */ x.jsx(p1, { "data-testid": "ds-menu", id: r, ref: V, ...L, children: /* @__PURE__ */ x.jsx(Vk, { initialFocusRef: _ ?
|
|
39347
|
+
}, []), I = i5();
|
|
39348
|
+
return /* @__PURE__ */ x.jsx(p1, { "data-testid": "ds-menu", id: r, ref: V, ...L, children: /* @__PURE__ */ x.jsx(Vk, { initialFocusRef: _ ? I : null, children: ({ isOpen: A }) => /* @__PURE__ */ x.jsxs(
|
|
39344
39349
|
Uo,
|
|
39345
39350
|
{
|
|
39346
39351
|
flexDirection: o === "right" ? "row-reverse" : "row",
|
|
39347
39352
|
children: [
|
|
39348
|
-
|
|
39353
|
+
$(A),
|
|
39349
39354
|
/* @__PURE__ */ x.jsx(Mk, { "data-testid": "menuList", sx: E.menuList, children: P(y) })
|
|
39350
39355
|
]
|
|
39351
39356
|
}
|
|
@@ -39577,16 +39582,16 @@ const KU = u2((r, a) => {
|
|
|
39577
39582
|
selectedItems: R,
|
|
39578
39583
|
width: N = "full",
|
|
39579
39584
|
...Z
|
|
39580
|
-
} = r,
|
|
39585
|
+
} = r, $ = me(o), [P, I] = xe(!1), A = i5(), K = i5(), J = i5(), i1 = (Z1) => {
|
|
39581
39586
|
if (Z1.type === "mousedown") {
|
|
39582
39587
|
const R2 = K.current;
|
|
39583
|
-
R2 && !R2.contains(Z1.target) ?
|
|
39588
|
+
R2 && !R2.contains(Z1.target) ? I(!0) : I(!1);
|
|
39584
39589
|
}
|
|
39585
39590
|
}, d1 = (Z1) => {
|
|
39586
39591
|
if (Z1.key === "Tab") {
|
|
39587
39592
|
const R2 = K.current;
|
|
39588
39593
|
setTimeout(() => {
|
|
39589
|
-
R2 && !R2.contains(document.activeElement) ?
|
|
39594
|
+
R2 && !R2.contains(document.activeElement) ? I(!0) : I(!1);
|
|
39590
39595
|
}, 0);
|
|
39591
39596
|
}
|
|
39592
39597
|
};
|
|
@@ -39596,10 +39601,10 @@ const KU = u2((r, a) => {
|
|
|
39596
39601
|
document.removeEventListener("mousedown", i1), document.removeEventListener("keydown", d1);
|
|
39597
39602
|
};
|
|
39598
39603
|
}, [V]);
|
|
39599
|
-
const M1 = y === "expand" ? "unset" : p ? "270px" : "215px", x1 = v.length > C && y === "expand", L1 =
|
|
39604
|
+
const M1 = y === "expand" ? "unset" : p ? "270px" : "215px", x1 = v.length > C && y === "expand", L1 = t1.useMemo(
|
|
39600
39605
|
() => x1 ? v.slice(0, C) : v,
|
|
39601
39606
|
[x1, v, C]
|
|
39602
|
-
), [n2, _1] = xe(L1), [B1, G1] = xe(!0), m1 = ((h3 = R[
|
|
39607
|
+
), [n2, _1] = xe(L1), [B1, G1] = xe(!0), m1 = ((h3 = R[$]) == null ? void 0 : h3.items.length) || 0, k1 = `item${m1 === 1 ? "" : "s"}`, v1 = `${L}, ${m1} ${k1} currently selected`, Q1 = O2("MultiSelect", {
|
|
39603
39608
|
isBlockElement: s,
|
|
39604
39609
|
width: N
|
|
39605
39610
|
}), q1 = (Z1, R2) => R[Z1] ? !!R[Z1].items.find(
|
|
@@ -39637,7 +39642,7 @@ const KU = u2((r, a) => {
|
|
|
39637
39642
|
J.current && J.current.focus();
|
|
39638
39643
|
}, 1);
|
|
39639
39644
|
};
|
|
39640
|
-
|
|
39645
|
+
t1.useEffect(() => {
|
|
39641
39646
|
_1(B1 ? L1 : v);
|
|
39642
39647
|
}, [B1, L1, v]);
|
|
39643
39648
|
const D2 = () => /* @__PURE__ */ x.jsx(
|
|
@@ -39645,7 +39650,7 @@ const KU = u2((r, a) => {
|
|
|
39645
39650
|
{
|
|
39646
39651
|
variant: "text",
|
|
39647
39652
|
fontSize: "desktop.button.default",
|
|
39648
|
-
id: `${
|
|
39653
|
+
id: `${$}-view-all-text-btn`,
|
|
39649
39654
|
ref: J,
|
|
39650
39655
|
onClick: l2,
|
|
39651
39656
|
__css: Q1.viewAllButton,
|
|
@@ -39662,12 +39667,12 @@ const KU = u2((r, a) => {
|
|
|
39662
39667
|
labelText: N2(Z1),
|
|
39663
39668
|
name: Z1.name,
|
|
39664
39669
|
..._ !== void 0 ? {
|
|
39665
|
-
isChecked: A1(
|
|
39666
|
-
isIndeterminate: x2(
|
|
39670
|
+
isChecked: A1($, Z1),
|
|
39671
|
+
isIndeterminate: x2($, Z1),
|
|
39667
39672
|
onChange: _,
|
|
39668
39673
|
isDisabled: n3(Z1)
|
|
39669
39674
|
} : {
|
|
39670
|
-
isChecked: q1(
|
|
39675
|
+
isChecked: q1($, Z1.id),
|
|
39671
39676
|
isDisabled: n3(Z1),
|
|
39672
39677
|
onChange: E
|
|
39673
39678
|
}
|
|
@@ -39682,7 +39687,7 @@ const KU = u2((r, a) => {
|
|
|
39682
39687
|
labelText: N2(R2),
|
|
39683
39688
|
name: R2.name,
|
|
39684
39689
|
isDisabled: R2.isDisabled,
|
|
39685
|
-
isChecked: q1(
|
|
39690
|
+
isChecked: q1($, R2.id),
|
|
39686
39691
|
onChange: E,
|
|
39687
39692
|
__css: Q1.menuChildren
|
|
39688
39693
|
},
|
|
@@ -39696,7 +39701,7 @@ const KU = u2((r, a) => {
|
|
|
39696
39701
|
labelText: N2(Z1),
|
|
39697
39702
|
name: Z1.name,
|
|
39698
39703
|
isDisabled: Z1.isDisabled,
|
|
39699
|
-
isChecked: q1(
|
|
39704
|
+
isChecked: q1($, Z1.id),
|
|
39700
39705
|
onChange: E
|
|
39701
39706
|
},
|
|
39702
39707
|
Z1.id
|
|
@@ -39712,7 +39717,7 @@ const KU = u2((r, a) => {
|
|
|
39712
39717
|
), k2 = /* @__PURE__ */ x.jsx(
|
|
39713
39718
|
J0,
|
|
39714
39719
|
{
|
|
39715
|
-
id: `${
|
|
39720
|
+
id: `${$}-textInput`,
|
|
39716
39721
|
labelText: `Search ${L}`,
|
|
39717
39722
|
isClearable: !0,
|
|
39718
39723
|
isClearableCallback: o2,
|
|
@@ -39738,14 +39743,14 @@ const KU = u2((r, a) => {
|
|
|
39738
39743
|
/* @__PURE__ */ x.jsx(
|
|
39739
39744
|
FB,
|
|
39740
39745
|
{
|
|
39741
|
-
id: `${
|
|
39746
|
+
id: `${$}-checkboxGroup`,
|
|
39742
39747
|
layout: "column",
|
|
39743
39748
|
isFullWidth: !0,
|
|
39744
39749
|
isRequired: !1,
|
|
39745
39750
|
labelText: L,
|
|
39746
39751
|
showLabel: !1,
|
|
39747
39752
|
name: "multi-select-checkbox-group",
|
|
39748
|
-
children: n2.map((Z1) => /* @__PURE__ */ x.jsx(
|
|
39753
|
+
children: n2.map((Z1) => /* @__PURE__ */ x.jsx(t1.Fragment, { children: L3(Z1) }, Z1.id))
|
|
39749
39754
|
}
|
|
39750
39755
|
),
|
|
39751
39756
|
x1 && /* @__PURE__ */ x.jsx(D2, {})
|
|
@@ -39757,9 +39762,9 @@ const KU = u2((r, a) => {
|
|
|
39757
39762
|
p1,
|
|
39758
39763
|
{
|
|
39759
39764
|
"data-testid": "ds-multiSelect",
|
|
39760
|
-
id:
|
|
39765
|
+
id: $,
|
|
39761
39766
|
ref: K,
|
|
39762
|
-
onClick: () =>
|
|
39767
|
+
onClick: () => I(!1),
|
|
39763
39768
|
__css: Q1.base,
|
|
39764
39769
|
...Z,
|
|
39765
39770
|
children: [
|
|
@@ -39776,7 +39781,7 @@ const KU = u2((r, a) => {
|
|
|
39776
39781
|
}
|
|
39777
39782
|
],
|
|
39778
39783
|
"aria-label": v1,
|
|
39779
|
-
id: `${
|
|
39784
|
+
id: `${$}-accordion`,
|
|
39780
39785
|
isDefaultOpen: i,
|
|
39781
39786
|
isAlwaysRendered: !0,
|
|
39782
39787
|
userClickedOutside: P,
|
|
@@ -39789,7 +39794,7 @@ const KU = u2((r, a) => {
|
|
|
39789
39794
|
m1 > 0 && /* @__PURE__ */ x.jsx(
|
|
39790
39795
|
KU,
|
|
39791
39796
|
{
|
|
39792
|
-
id:
|
|
39797
|
+
id: $,
|
|
39793
39798
|
multiSelectLabelText: L,
|
|
39794
39799
|
isOpen: i,
|
|
39795
39800
|
selectedItemsString: k1,
|
|
@@ -39905,8 +39910,8 @@ const KU = u2((r, a) => {
|
|
|
39905
39910
|
title: R,
|
|
39906
39911
|
view: N = "form",
|
|
39907
39912
|
...Z
|
|
39908
|
-
},
|
|
39909
|
-
const P = me(C),
|
|
39913
|
+
}, $) => {
|
|
39914
|
+
const P = me(C), I = O2("NewsletterSignup", {
|
|
39910
39915
|
highlightColor: y
|
|
39911
39916
|
}), A = W5(null, "dark.ui.typography.body"), K = W5(
|
|
39912
39917
|
"ui.error.primary",
|
|
@@ -39918,8 +39923,8 @@ const KU = u2((r, a) => {
|
|
|
39918
39923
|
additionalStyles: {
|
|
39919
39924
|
marginBottom: 0
|
|
39920
39925
|
}
|
|
39921
|
-
}), d1 =
|
|
39922
|
-
return
|
|
39926
|
+
}), d1 = t1.useRef(null);
|
|
39927
|
+
return t1.useEffect(() => {
|
|
39923
39928
|
var c1;
|
|
39924
39929
|
(c1 = d1.current) == null || c1.focus();
|
|
39925
39930
|
}, [N]), /* @__PURE__ */ x.jsxs(
|
|
@@ -39929,8 +39934,8 @@ const KU = u2((r, a) => {
|
|
|
39929
39934
|
direction: { base: "column", md: "row" },
|
|
39930
39935
|
id: P,
|
|
39931
39936
|
gap: "0",
|
|
39932
|
-
ref:
|
|
39933
|
-
__css:
|
|
39937
|
+
ref: $,
|
|
39938
|
+
__css: I,
|
|
39934
39939
|
...Z,
|
|
39935
39940
|
children: [
|
|
39936
39941
|
/* @__PURE__ */ x.jsxs(
|
|
@@ -39938,7 +39943,7 @@ const KU = u2((r, a) => {
|
|
|
39938
39943
|
{
|
|
39939
39944
|
alignItems: "flex-start",
|
|
39940
39945
|
"data-testid": "ds-newsletterSignup-appeal",
|
|
39941
|
-
__css:
|
|
39946
|
+
__css: I.pitch,
|
|
39942
39947
|
children: [
|
|
39943
39948
|
i1,
|
|
39944
39949
|
o ? typeof o == "string" ? /* @__PURE__ */ x.jsx(P4, { size: "body2", children: o }) : o : null,
|
|
@@ -39948,14 +39953,14 @@ const KU = u2((r, a) => {
|
|
|
39948
39953
|
href: k,
|
|
39949
39954
|
variant: "external",
|
|
39950
39955
|
isUnderlined: !1,
|
|
39951
|
-
__css:
|
|
39956
|
+
__css: I.privacy,
|
|
39952
39957
|
children: "Privacy Policy"
|
|
39953
39958
|
}
|
|
39954
39959
|
)
|
|
39955
39960
|
]
|
|
39956
39961
|
}
|
|
39957
39962
|
),
|
|
39958
|
-
/* @__PURE__ */ x.jsxs(Up, { __css:
|
|
39963
|
+
/* @__PURE__ */ x.jsxs(Up, { __css: I.action, "data-testid": "ds-newsletterSignup-form", children: [
|
|
39959
39964
|
J && /* @__PURE__ */ x.jsxs(
|
|
39960
39965
|
Jw,
|
|
39961
39966
|
{
|
|
@@ -40030,7 +40035,7 @@ const KU = u2((r, a) => {
|
|
|
40030
40035
|
pageCount: v,
|
|
40031
40036
|
...y
|
|
40032
40037
|
} = r, L = i5(o), [V, E] = xe(p), k = O2("Pagination", {}), _ = V - 1, R = V + 1;
|
|
40033
|
-
if (
|
|
40038
|
+
if (t1.useEffect(() => {
|
|
40034
40039
|
C && o && o !== L.current && (E(o), L.current = o);
|
|
40035
40040
|
}, [o, C]), v <= 1)
|
|
40036
40041
|
return null;
|
|
@@ -40041,11 +40046,11 @@ const KU = u2((r, a) => {
|
|
|
40041
40046
|
);
|
|
40042
40047
|
const N = typeof s < "u" && typeof s == "function", Z = (d1, c1) => {
|
|
40043
40048
|
d1.preventDefault && d1.preventDefault(), V !== c1 && (E(c1), C && C(c1));
|
|
40044
|
-
},
|
|
40049
|
+
}, $ = (d1) => {
|
|
40045
40050
|
V > 1 && Z(d1, _);
|
|
40046
40051
|
}, P = (d1) => {
|
|
40047
40052
|
V < v && Z(d1, R);
|
|
40048
|
-
},
|
|
40053
|
+
}, I = ({
|
|
40049
40054
|
pageNumber: d1,
|
|
40050
40055
|
text: c1,
|
|
40051
40056
|
isDisabled: S1
|
|
@@ -40057,7 +40062,7 @@ const KU = u2((r, a) => {
|
|
|
40057
40062
|
"aria-label": `${M1 ? "Previous" : "Next"} page`,
|
|
40058
40063
|
"aria-disabled": S1,
|
|
40059
40064
|
href: N ? s(d1) : "#",
|
|
40060
|
-
onClick: N ? void 0 : M1 ?
|
|
40065
|
+
onClick: N ? void 0 : M1 ? $ : P,
|
|
40061
40066
|
variant: "action",
|
|
40062
40067
|
__css: {
|
|
40063
40068
|
...k.link,
|
|
@@ -40211,11 +40216,11 @@ const KU = u2((r, a) => {
|
|
|
40211
40216
|
const n2 = typeof L1 == "number" ? A(L1) : "...";
|
|
40212
40217
|
return /* @__PURE__ */ x.jsx("li", { children: n2 }, L1);
|
|
40213
40218
|
});
|
|
40214
|
-
}, J = /* @__PURE__ */ x.jsx("li", { children:
|
|
40219
|
+
}, J = /* @__PURE__ */ x.jsx("li", { children: I({
|
|
40215
40220
|
pageNumber: _,
|
|
40216
40221
|
text: "Previous",
|
|
40217
40222
|
isDisabled: V === 1
|
|
40218
|
-
}) }, "previous"), i1 = /* @__PURE__ */ x.jsx("li", { children:
|
|
40223
|
+
}) }, "previous"), i1 = /* @__PURE__ */ x.jsx("li", { children: I({
|
|
40219
40224
|
pageNumber: R,
|
|
40220
40225
|
text: "Next",
|
|
40221
40226
|
isDisabled: V === v
|
|
@@ -40268,7 +40273,7 @@ const KU = u2((r, a) => {
|
|
|
40268
40273
|
// If `isIndeterminate` is true, then it overrides the `value` prop.
|
|
40269
40274
|
isIndeterminate: i || void 0,
|
|
40270
40275
|
value: i ? void 0 : R
|
|
40271
|
-
}, Z = (
|
|
40276
|
+
}, Z = ($) => $ === "circular" ? /* @__PURE__ */ x.jsxs(p1, { __css: _.circularContainer, children: [
|
|
40272
40277
|
/* @__PURE__ */ x.jsx(_k, { ...N, sx: _.circular, children: v && !i && y !== "small" && /* @__PURE__ */ x.jsxs(Dk, { children: [
|
|
40273
40278
|
R,
|
|
40274
40279
|
"%"
|
|
@@ -40331,15 +40336,17 @@ const KU = u2((r, a) => {
|
|
|
40331
40336
|
onChange: R,
|
|
40332
40337
|
placeholder: N,
|
|
40333
40338
|
variant: Z = "default",
|
|
40334
|
-
showHelperInvalidText:
|
|
40339
|
+
showHelperInvalidText: $ = !0,
|
|
40335
40340
|
showLabel: P = !0,
|
|
40336
|
-
showRequiredLabel:
|
|
40341
|
+
showRequiredLabel: I = !0,
|
|
40337
40342
|
requiredLabelText: A,
|
|
40338
40343
|
value: K = "",
|
|
40339
40344
|
...J
|
|
40340
40345
|
} = r, i1 = me(C), [d1, c1] = xe(0), S1 = i5(null), M1 = O2("ReservoirSelect", {
|
|
40341
40346
|
variant: Z,
|
|
40342
|
-
labelPosition: E
|
|
40347
|
+
labelPosition: E,
|
|
40348
|
+
labelWidth: d1,
|
|
40349
|
+
showLabel: P
|
|
40343
40350
|
}), x1 = v || "There is an error related to this field.", n2 = $o({
|
|
40344
40351
|
footnote: L ? x1 : p,
|
|
40345
40352
|
id: i1,
|
|
@@ -40371,7 +40378,7 @@ const KU = u2((r, a) => {
|
|
|
40371
40378
|
id: i1,
|
|
40372
40379
|
invalidText: x1,
|
|
40373
40380
|
isInvalid: L,
|
|
40374
|
-
showHelperInvalidText:
|
|
40381
|
+
showHelperInvalidText: $,
|
|
40375
40382
|
__css: M1,
|
|
40376
40383
|
...J,
|
|
40377
40384
|
children: /* @__PURE__ */ x.jsxs(p1, { __css: E === "inline" && M1.inline, children: [
|
|
@@ -40381,7 +40388,7 @@ const KU = u2((r, a) => {
|
|
|
40381
40388
|
htmlFor: i1,
|
|
40382
40389
|
id: `${i1}-label`,
|
|
40383
40390
|
isInlined: !0,
|
|
40384
|
-
isRequired:
|
|
40391
|
+
isRequired: I && V,
|
|
40385
40392
|
requiredLabelText: A,
|
|
40386
40393
|
children: k
|
|
40387
40394
|
}
|
|
@@ -40436,9 +40443,9 @@ const KU = u2((r, a) => {
|
|
|
40436
40443
|
noBrandButtonType: R = !1,
|
|
40437
40444
|
onSubmit: N,
|
|
40438
40445
|
selectProps: Z,
|
|
40439
|
-
textInputElement:
|
|
40446
|
+
textInputElement: $,
|
|
40440
40447
|
textInputProps: P,
|
|
40441
|
-
|
|
40448
|
+
...I
|
|
40442
40449
|
} = r, A = me(v), J = O2("SearchBar", { hasSelectElem: !!Z }), i1 = {
|
|
40443
40450
|
helperText: "",
|
|
40444
40451
|
isDisabled: L,
|
|
@@ -40463,7 +40470,7 @@ const KU = u2((r, a) => {
|
|
|
40463
40470
|
), n2 = P && /* @__PURE__ */ x.jsx(
|
|
40464
40471
|
J0,
|
|
40465
40472
|
{
|
|
40466
|
-
"aria-describedby": d1 ? `${A}-
|
|
40473
|
+
"aria-describedby": d1 ? `${A}-helperErrorText` : void 0,
|
|
40467
40474
|
className: "ds-searchBar-textInput",
|
|
40468
40475
|
defaultValue: P == null ? void 0 : P.defaultValue,
|
|
40469
40476
|
id: `${(P == null ? void 0 : P.id) || A}-textInput`,
|
|
@@ -40498,7 +40505,7 @@ const KU = u2((r, a) => {
|
|
|
40498
40505
|
/* @__PURE__ */ x.jsx("span", { children: "Search" })
|
|
40499
40506
|
]
|
|
40500
40507
|
}
|
|
40501
|
-
), B1 =
|
|
40508
|
+
), B1 = $ || n2;
|
|
40502
40509
|
return /* @__PURE__ */ x.jsx(
|
|
40503
40510
|
G7,
|
|
40504
40511
|
{
|
|
@@ -40511,7 +40518,7 @@ const KU = u2((r, a) => {
|
|
|
40511
40518
|
isInvalid: V,
|
|
40512
40519
|
ref: a,
|
|
40513
40520
|
sx: { containerType: "inline-size" },
|
|
40514
|
-
|
|
40521
|
+
...I,
|
|
40515
40522
|
children: /* @__PURE__ */ x.jsxs(
|
|
40516
40523
|
p1,
|
|
40517
40524
|
{
|
|
@@ -40557,10 +40564,10 @@ const KU = u2((r, a) => {
|
|
|
40557
40564
|
variant: v
|
|
40558
40565
|
}), N = ({
|
|
40559
40566
|
type: Z,
|
|
40560
|
-
size:
|
|
40567
|
+
size: $ = 1,
|
|
40561
40568
|
lastWidth: P = "80%"
|
|
40562
|
-
}) => new Array(
|
|
40563
|
-
const K = A ===
|
|
40569
|
+
}) => new Array($).fill(null).map((I, A) => {
|
|
40570
|
+
const K = A === $ - 1 ? P : "100%", J = A === $ - 1 && Z === "content" ? "0" : void 0;
|
|
40564
40571
|
return /* @__PURE__ */ x.jsx(
|
|
40565
40572
|
op,
|
|
40566
40573
|
{
|
|
@@ -40653,9 +40660,9 @@ const KU = u2((r, a) => {
|
|
|
40653
40660
|
onChange: R,
|
|
40654
40661
|
onChangeEnd: N,
|
|
40655
40662
|
showBoxes: Z = !0,
|
|
40656
|
-
showHelperInvalidText:
|
|
40663
|
+
showHelperInvalidText: $ = !0,
|
|
40657
40664
|
showLabel: P = !0,
|
|
40658
|
-
showRequiredLabel:
|
|
40665
|
+
showRequiredLabel: I = !0,
|
|
40659
40666
|
showValues: A = !0,
|
|
40660
40667
|
step: K = 1,
|
|
40661
40668
|
// For the RangeSlider, if the defaultValue is not an array, then we set
|
|
@@ -40786,7 +40793,7 @@ const KU = u2((r, a) => {
|
|
|
40786
40793
|
invalidText: p,
|
|
40787
40794
|
isInvalid: M1,
|
|
40788
40795
|
ref: a,
|
|
40789
|
-
showHelperInvalidText:
|
|
40796
|
+
showHelperInvalidText: $,
|
|
40790
40797
|
__css: x1,
|
|
40791
40798
|
...i1,
|
|
40792
40799
|
children: [
|
|
@@ -40795,7 +40802,7 @@ const KU = u2((r, a) => {
|
|
|
40795
40802
|
{
|
|
40796
40803
|
id: `${d1}-label`,
|
|
40797
40804
|
htmlFor: Z ? `${d1}-textInput-${y ? "start" : "end"}` : "",
|
|
40798
|
-
isRequired:
|
|
40805
|
+
isRequired: I && L,
|
|
40799
40806
|
children: V
|
|
40800
40807
|
}
|
|
40801
40808
|
),
|
|
@@ -41200,9 +41207,9 @@ const QI = ({
|
|
|
41200
41207
|
}, iI = (r) => {
|
|
41201
41208
|
const a = [], o = [];
|
|
41202
41209
|
return r != null && r.length ? (r.forEach((s) => {
|
|
41203
|
-
|
|
41210
|
+
s.type === vb && (a.push(s), t1.Children.count(s.props.children) > 6 && console.warn(
|
|
41204
41211
|
"NYPL Reservoir Tabs: It is recommended to use no more than six tabs. If more than six tabs are needed, consider other navigational patterns."
|
|
41205
|
-
)),
|
|
41212
|
+
)), s.type === mb && o.push(s);
|
|
41206
41213
|
}), { tabs: a, panels: o }) : { tabs: [], panels: [] };
|
|
41207
41214
|
}, XI = P1(
|
|
41208
41215
|
u2(
|
|
@@ -41223,7 +41230,7 @@ const QI = ({
|
|
|
41223
41230
|
const N = _[0] ? (K = _[0]) == null ? void 0 : K.props : _.props, Z = () => {
|
|
41224
41231
|
const J = L === 0 ? N.children.length - 1 : L - 1;
|
|
41225
41232
|
V(J);
|
|
41226
|
-
},
|
|
41233
|
+
}, $ = () => {
|
|
41227
41234
|
const J = L === N.children.length - 1 ? 0 : L + 1;
|
|
41228
41235
|
V(J);
|
|
41229
41236
|
}, P = /* @__PURE__ */ x.jsx(
|
|
@@ -41247,12 +41254,12 @@ const QI = ({
|
|
|
41247
41254
|
}
|
|
41248
41255
|
)
|
|
41249
41256
|
}
|
|
41250
|
-
),
|
|
41257
|
+
), I = /* @__PURE__ */ x.jsx(
|
|
41251
41258
|
j3,
|
|
41252
41259
|
{
|
|
41253
41260
|
"aria-label": "Scroll tabs right",
|
|
41254
41261
|
id: `${k}-tabs-next`,
|
|
41255
|
-
onClick:
|
|
41262
|
+
onClick: $,
|
|
41256
41263
|
__css: {
|
|
41257
41264
|
...E.buttonArrows,
|
|
41258
41265
|
right: "0"
|
|
@@ -41300,7 +41307,7 @@ const QI = ({
|
|
|
41300
41307
|
children: [
|
|
41301
41308
|
P,
|
|
41302
41309
|
/* @__PURE__ */ x.jsx(p1, { __css: E.carouselParent, ref: A, children: _ }),
|
|
41303
|
-
|
|
41310
|
+
I
|
|
41304
41311
|
]
|
|
41305
41312
|
}
|
|
41306
41313
|
),
|
|
@@ -41519,9 +41526,9 @@ const KI = P1(
|
|
|
41519
41526
|
onChange: k = sI,
|
|
41520
41527
|
size: _ = "default",
|
|
41521
41528
|
...R
|
|
41522
|
-
} = r, N = me(i), Z = O2("Toggle", { isDisabled: v, size: _ }),
|
|
41529
|
+
} = r, N = me(i), Z = O2("Toggle", { isDisabled: v, size: _ }), $ = te("Switch", { size: _ }), I = $o({
|
|
41523
41530
|
footnote: y ? p : s,
|
|
41524
|
-
id:
|
|
41531
|
+
id: N,
|
|
41525
41532
|
labelText: V,
|
|
41526
41533
|
name: "Toggle",
|
|
41527
41534
|
showLabel: !0
|
|
@@ -41553,8 +41560,8 @@ const KI = P1(
|
|
|
41553
41560
|
} : {
|
|
41554
41561
|
defaultChecked: o
|
|
41555
41562
|
},
|
|
41556
|
-
|
|
41557
|
-
__css:
|
|
41563
|
+
...I,
|
|
41564
|
+
__css: $,
|
|
41558
41565
|
children: V
|
|
41559
41566
|
}
|
|
41560
41567
|
) })
|
|
@@ -41579,7 +41586,7 @@ const KI = P1(
|
|
|
41579
41586
|
} = r, _ = E === "vimeo" ? y || "Vimeo video player" : y || "YouTube video player", R = E === "vimeo" ? `https://player.vimeo.com/video/${V}?autoplay=0&loop=0` : `https://www.youtube.com/embed/${V}?disablekb=1&autoplay=0&fs=1&modestbranding=0`, N = y ? `${y}` : "Video player", Z = i && i.includes("<iframe") && !i.includes("title=") ? i.replace(
|
|
41580
41587
|
"<iframe ",
|
|
41581
41588
|
`<iframe title="${N}" `
|
|
41582
|
-
) : i,
|
|
41589
|
+
) : i, $ = "<strong>Error:</strong> This video player has not been configured properly. Please contact the site administrator.";
|
|
41583
41590
|
let P = !1;
|
|
41584
41591
|
!Z && !E && !V ? (console.warn(
|
|
41585
41592
|
"NYPL Reservoir VideoPlayer: Pass in either the `embedCode` prop or both the `videoType` and `videoId` props; none were passed."
|
|
@@ -41615,7 +41622,7 @@ const KI = P1(
|
|
|
41615
41622
|
__css: A.base,
|
|
41616
41623
|
...k,
|
|
41617
41624
|
children: [
|
|
41618
|
-
P ? /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html:
|
|
41625
|
+
P ? /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: $ } }) : /* @__PURE__ */ x.jsx(
|
|
41619
41626
|
G7,
|
|
41620
41627
|
{
|
|
41621
41628
|
descriptionText: s || void 0,
|
|
@@ -41643,19 +41650,7 @@ const KI = P1(
|
|
|
41643
41650
|
);
|
|
41644
41651
|
}
|
|
41645
41652
|
)
|
|
41646
|
-
), u$ = (r
|
|
41647
|
-
const [o, s] = e1.useState(0), i = () => {
|
|
41648
|
-
s((y) => y === 0 ? r - 1 : y - 1);
|
|
41649
|
-
}, p = () => {
|
|
41650
|
-
s((y) => y === r - 1 ? 0 : y + 1);
|
|
41651
|
-
}, C = () => {
|
|
41652
|
-
s(0);
|
|
41653
|
-
}, v = {
|
|
41654
|
-
transition: "all .5s",
|
|
41655
|
-
marginStart: `-${o * a}%`
|
|
41656
|
-
};
|
|
41657
|
-
return { prevSlide: i, nextSlide: p, carouselStyle: v, goToStart: C };
|
|
41658
|
-
}, c$ = (r, a) => {
|
|
41653
|
+
), u$ = (r, a) => {
|
|
41659
41654
|
Y7(() => {
|
|
41660
41655
|
const o = (s) => {
|
|
41661
41656
|
const i = s.key || s.keyCode;
|
|
@@ -41666,7 +41661,7 @@ const KI = P1(
|
|
|
41666
41661
|
ref: a,
|
|
41667
41662
|
handler: () => r(!1)
|
|
41668
41663
|
});
|
|
41669
|
-
},
|
|
41664
|
+
}, c$ = (r, a) => {
|
|
41670
41665
|
const o = (p) => p.toLocaleString(), s = (p) => !isNaN(p) && !/[^0-9.-]/.test(p);
|
|
41671
41666
|
return ((p, C) => {
|
|
41672
41667
|
let v = !1;
|
|
@@ -41689,7 +41684,7 @@ const KI = P1(
|
|
|
41689
41684
|
)}`;
|
|
41690
41685
|
})(r, a);
|
|
41691
41686
|
};
|
|
41692
|
-
function
|
|
41687
|
+
function d$(r) {
|
|
41693
41688
|
const [a, o] = xe(
|
|
41694
41689
|
r !== void 0 ? r : {}
|
|
41695
41690
|
);
|
|
@@ -41740,7 +41735,7 @@ function C$(r) {
|
|
|
41740
41735
|
onClearAll: () => o({})
|
|
41741
41736
|
};
|
|
41742
41737
|
}
|
|
41743
|
-
const
|
|
41738
|
+
const C$ = () => {
|
|
41744
41739
|
const [r, a] = xe({
|
|
41745
41740
|
isLargerThanSmall: !1,
|
|
41746
41741
|
isLargerThanMedium: !1,
|
|
@@ -41788,7 +41783,7 @@ const f$ = () => {
|
|
|
41788
41783
|
isLargerThanTablet: r.isLargerThanXLarge
|
|
41789
41784
|
};
|
|
41790
41785
|
};
|
|
41791
|
-
function
|
|
41786
|
+
function f$() {
|
|
41792
41787
|
const r = Wk();
|
|
41793
41788
|
return !r || Object.keys(r).length === 0 ? (console.warn(
|
|
41794
41789
|
"NYPL Reservoir useNYPLTheme: hook must be used inside of `<DSProvider />`."
|
|
@@ -41885,29 +41880,12 @@ function p$() {
|
|
|
41885
41880
|
}
|
|
41886
41881
|
};
|
|
41887
41882
|
}
|
|
41888
|
-
function h$() {
|
|
41889
|
-
const [r, a] = e1.useState({
|
|
41890
|
-
width: 0,
|
|
41891
|
-
height: 0
|
|
41892
|
-
});
|
|
41893
|
-
return e1.useEffect(() => {
|
|
41894
|
-
const o = () => {
|
|
41895
|
-
a({
|
|
41896
|
-
width: window.innerWidth,
|
|
41897
|
-
height: window.innerHeight
|
|
41898
|
-
});
|
|
41899
|
-
};
|
|
41900
|
-
return o(), window.addEventListener("resize", o), () => {
|
|
41901
|
-
window.removeEventListener("resize", o);
|
|
41902
|
-
};
|
|
41903
|
-
}, []), r;
|
|
41904
|
-
}
|
|
41905
41883
|
export {
|
|
41906
41884
|
dB as Accordion,
|
|
41907
41885
|
gI as AlphabetFilter,
|
|
41908
41886
|
yI as AudioPlayer,
|
|
41909
41887
|
LI as Banner,
|
|
41910
|
-
|
|
41888
|
+
m$ as Box,
|
|
41911
41889
|
bI as Breadcrumbs,
|
|
41912
41890
|
j3 as Button,
|
|
41913
41891
|
Y0 as ButtonGroup,
|
|
@@ -41915,12 +41893,12 @@ export {
|
|
|
41915
41893
|
ZB as CardActions,
|
|
41916
41894
|
RB as CardContent,
|
|
41917
41895
|
DB as CardHeading,
|
|
41918
|
-
|
|
41896
|
+
v$ as Center,
|
|
41919
41897
|
Ep as Checkbox,
|
|
41920
41898
|
FB as CheckboxGroup,
|
|
41921
|
-
|
|
41899
|
+
g$ as Circle,
|
|
41922
41900
|
xI as ColorCard,
|
|
41923
|
-
|
|
41901
|
+
y$ as ColorModeScript,
|
|
41924
41902
|
vI as DSProvider,
|
|
41925
41903
|
HI as DatePicker,
|
|
41926
41904
|
VI as FeaturedContent,
|
|
@@ -41928,14 +41906,14 @@ export {
|
|
|
41928
41906
|
Zh as Fieldset,
|
|
41929
41907
|
EI as FilterBarInline,
|
|
41930
41908
|
Gz as FilterBarPopup,
|
|
41931
|
-
|
|
41932
|
-
|
|
41909
|
+
L$ as Flex,
|
|
41910
|
+
b$ as FocusLock,
|
|
41933
41911
|
Jw as Form,
|
|
41934
41912
|
C7 as FormField,
|
|
41935
41913
|
Bz as FormRow,
|
|
41936
|
-
|
|
41937
|
-
|
|
41938
|
-
|
|
41914
|
+
w$ as Grid,
|
|
41915
|
+
x$ as GridItem,
|
|
41916
|
+
H$ as HStack,
|
|
41939
41917
|
L9 as Heading,
|
|
41940
41918
|
aa as HelperErrorText,
|
|
41941
41919
|
kI as Hero,
|
|
@@ -41964,19 +41942,19 @@ export {
|
|
|
41964
41942
|
UI as SkipNavigation,
|
|
41965
41943
|
II as Slider,
|
|
41966
41944
|
$I as SocialMediaLinks,
|
|
41967
|
-
|
|
41968
|
-
|
|
41969
|
-
|
|
41945
|
+
V$ as Spacer,
|
|
41946
|
+
M$ as Square,
|
|
41947
|
+
E$ as Stack,
|
|
41970
41948
|
mI as StatusBadge,
|
|
41971
41949
|
YI as StructuredContent,
|
|
41972
41950
|
WI as StyledList,
|
|
41973
41951
|
GI as SubNav,
|
|
41974
41952
|
QI as SubNavButton,
|
|
41975
41953
|
qI as SubNavLink,
|
|
41976
|
-
|
|
41977
|
-
|
|
41978
|
-
|
|
41979
|
-
|
|
41954
|
+
S$ as Tab,
|
|
41955
|
+
k$ as TabList,
|
|
41956
|
+
T$ as TabPanel,
|
|
41957
|
+
_$ as TabPanels,
|
|
41980
41958
|
jB as Table,
|
|
41981
41959
|
XI as Tabs,
|
|
41982
41960
|
KI as TagSet,
|
|
@@ -41992,27 +41970,25 @@ export {
|
|
|
41992
41970
|
J0 as TextInput,
|
|
41993
41971
|
l$ as Toggle,
|
|
41994
41972
|
tw as Tooltip,
|
|
41995
|
-
|
|
41973
|
+
D$ as VStack,
|
|
41996
41974
|
s$ as VideoPlayer,
|
|
41997
|
-
|
|
41998
|
-
|
|
41999
|
-
|
|
42000
|
-
|
|
42001
|
-
u$ as
|
|
42002
|
-
|
|
42003
|
-
|
|
42004
|
-
j$ as useColorModeValue,
|
|
41975
|
+
R$ as chakra,
|
|
41976
|
+
Z$ as cookieStorageManager,
|
|
41977
|
+
O$ as cookieStorageManagerSSR,
|
|
41978
|
+
N$ as localStorageManager,
|
|
41979
|
+
u$ as useCloseDropDown,
|
|
41980
|
+
B$ as useColorMode,
|
|
41981
|
+
P$ as useColorModeValue,
|
|
42005
41982
|
MI as useFeedbackBox,
|
|
42006
41983
|
SI as useFilterBarPopup,
|
|
42007
|
-
|
|
42008
|
-
|
|
41984
|
+
c$ as useFormatNumber,
|
|
41985
|
+
F$ as useMediaQuery,
|
|
42009
41986
|
OI as useModal,
|
|
42010
|
-
|
|
42011
|
-
|
|
42012
|
-
|
|
42013
|
-
|
|
41987
|
+
d$ as useMultiSelect,
|
|
41988
|
+
j$ as useMultiStyleConfig,
|
|
41989
|
+
C$ as useNYPLBreakpoints,
|
|
41990
|
+
f$ as useNYPLTheme,
|
|
42014
41991
|
_h as useResponsiveSpacing,
|
|
42015
41992
|
tI as useScrollFadeStyles,
|
|
42016
|
-
|
|
42017
|
-
h$ as useWindowSize
|
|
41993
|
+
A$ as useStyleConfig
|
|
42018
41994
|
};
|