@nypl/design-system-react-components 1.3.0 → 1.4.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.
Files changed (32) hide show
  1. package/dist/components/FilterBar/FilterBar.d.ts +111 -0
  2. package/dist/components/FilterBar/FilterBar.stories.d.ts +7 -0
  3. package/dist/components/HelperErrorText/HelperErrorText.d.ts +6 -6
  4. package/dist/components/MultiSelect/MultiSelect.d.ts +78 -0
  5. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +4 -0
  6. package/dist/components/MultiSelect/MultiSelectDialog.d.ts +8 -0
  7. package/dist/components/MultiSelect/MultiSelectListbox.d.ts +9 -0
  8. package/dist/components/MultiSelect/MultiSelectMenuButton.d.ts +27 -0
  9. package/dist/components/MultiSelectGroup/MultiSelectGroup.d.ts +26 -0
  10. package/dist/components/MultiSelectGroup/MultiSelectGroup.stories.d.ts +4 -0
  11. package/dist/components/Slider/Slider.d.ts +2 -0
  12. package/dist/components/TextInput/TextInput.d.ts +2 -0
  13. package/dist/design-system-react-components.cjs.development.js +1425 -287
  14. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  15. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  16. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  17. package/dist/design-system-react-components.esm.js +1422 -289
  18. package/dist/design-system-react-components.esm.js.map +1 -1
  19. package/dist/hooks/__tests__/useFilterBar.test.d.ts +1 -0
  20. package/dist/hooks/__tests__/useMultiSelect.test.d.ts +1 -0
  21. package/dist/hooks/useFilterBar.d.ts +21 -0
  22. package/dist/hooks/useMultiSelect.d.ts +15 -0
  23. package/dist/index.d.ts +5 -0
  24. package/dist/theme/components/feedbackBox.d.ts +6 -0
  25. package/dist/theme/components/filterBar.d.ts +30 -0
  26. package/dist/theme/components/link.d.ts +22 -0
  27. package/dist/theme/components/multiSelect.d.ts +29 -0
  28. package/dist/theme/components/multiSelectMenuButton.d.ts +72 -0
  29. package/dist/theme/components/select.d.ts +3 -3
  30. package/dist/utils/utils.d.ts +6 -0
  31. package/package.json +1 -1
  32. package/CHANGELOG.md +0 -1724
@@ -1,4 +1,4 @@
1
- import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Button as Button$2, Heading as Heading$2, Text as Text$2, useMultiStyleConfig, Flex, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, useMediaQuery, Stack, useMergeRefs, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2, TableCaption, Thead, Tr, Th, Table as Table$1, Tbody, Td, HStack, SimpleGrid as SimpleGrid$1, Input, Textarea, extendTheme, ChakraProvider, Radio as Radio$2, RadioGroup as RadioGroup$2, useDisclosure, Drawer, DrawerOverlay, DrawerContent, DrawerHeader, Spacer, DrawerBody, useOutsideClick, VStack, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, CircularProgress, CircularProgressLabel, Progress, Select as Select$2, Skeleton as Skeleton$1, RangeSlider, RangeSliderTrack, RangeSliderFilledTrack, RangeSliderThumb, Slider as Slider$1, SliderTrack, SliderFilledTrack, SliderThumb, Tabs as Tabs$1, Tab, TabPanel, TabList, TabPanels, Tooltip as Tooltip$2, Switch as Switch$1, useTheme } from '@chakra-ui/react';
1
+ import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Button as Button$2, useMultiStyleConfig, Heading as Heading$2, Text as Text$2, Flex, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, useMediaQuery, Stack, useMergeRefs, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2, TableCaption, Thead, Tr, Th, Table as Table$1, Tbody, Td, HStack, SimpleGrid as SimpleGrid$1, Input, Textarea, extendTheme, ChakraProvider, Radio as Radio$2, RadioGroup as RadioGroup$2, useDisclosure, Drawer, DrawerOverlay, DrawerContent, DrawerHeader, DrawerBody, VStack, keyframes as keyframes$1, UnorderedList, ListItem, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, useOutsideClick, Spacer, CircularProgress, CircularProgressLabel, Progress, Select as Select$2, Skeleton as Skeleton$1, RangeSlider, RangeSliderTrack, RangeSliderFilledTrack, RangeSliderThumb, Slider as Slider$1, SliderTrack, SliderFilledTrack, SliderThumb, Tabs as Tabs$1, Tab, TabPanel, TabList, TabPanels, Tooltip as Tooltip$2, Switch as Switch$1, useTheme } from '@chakra-ui/react';
2
2
  export { Box, Center, Circle, ColorModeScript, Flex, Grid, GridItem, HStack, Spacer, Square, Stack, Tab, TabList, TabPanel, TabPanels, VStack, cookieStorageManager, localStorageManager, useColorMode, useColorModeValue } from '@chakra-ui/react';
3
3
  import React__default, { createElement, forwardRef, useRef, useState, useEffect, Fragment, useReducer, useContext } from 'react';
4
4
  import useNativeLazyLoading from '@charlietango/use-native-lazy-loading';
@@ -6,6 +6,7 @@ import { useInView } from 'react-intersection-observer';
6
6
  import ReactDatePicker from 'react-datepicker';
7
7
  import { createBreakpoints, cssVar } from '@chakra-ui/theme-tools';
8
8
  import { keyframes } from '@chakra-ui/system';
9
+ import { useSelect } from 'downshift';
9
10
  import FocusLock from '@chakra-ui/focus-lock';
10
11
  import Cookies from 'js-cookie';
11
12
  import ReactGA from 'react-ga';
@@ -36,6 +37,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
36
37
  }
37
38
  return target;
38
39
  }
40
+ function _taggedTemplateLiteralLoose(strings, raw) {
41
+ if (!raw) {
42
+ raw = strings.slice(0);
43
+ }
44
+ strings.raw = raw;
45
+ return strings;
46
+ }
39
47
 
40
48
  var _path, _path2, _path3;
41
49
  var _excluded = ["title", "titleId"];
@@ -1596,16 +1604,20 @@ function getWithDirectionIcon(children, type, linkId) {
1596
1604
  });
1597
1605
  return React__default.createElement(React__default.Fragment, null, type === "backwards" && icon, children, type === "forwards" && icon);
1598
1606
  }
1599
- function getExternalIcon(children, linkId) {
1607
+ function getExternalExtraElements(children, linkId, styles) {
1600
1608
  var iconId = linkId + "-icon";
1601
- var icon = React__default.createElement(Icon, {
1609
+ var extraElements = React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
1610
+ as: "span",
1611
+ __css: styles
1612
+ }, "This link opens in a new window"), React__default.createElement(Icon, {
1602
1613
  align: "right",
1603
1614
  className: "more-link",
1604
1615
  id: iconId,
1605
1616
  name: "actionLaunch",
1606
- size: "medium"
1607
- });
1608
- return React__default.createElement(React__default.Fragment, null, children, icon);
1617
+ size: "medium",
1618
+ title: "External link"
1619
+ }));
1620
+ return React__default.createElement(React__default.Fragment, null, children, extraElements);
1609
1621
  }
1610
1622
  /**
1611
1623
  * A component that uses an `href` prop or a child anchor element, to create
@@ -1634,12 +1646,16 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
1634
1646
  if (type === "action" || type === "forwards" || type === "backwards" || type === "external") {
1635
1647
  variant = "moreLink";
1636
1648
  } else if (type.includes("button")) {
1637
- if (type === "button") {
1638
- console.warn("NYPL Reservoir Link: The \"button\" type is deprecated. Instead, use either \"buttonPrimary\", \"buttonSecondary\", \"buttonPill\", \"buttonCallout\", \"buttonNoBrand\", or \"buttonDisabled\".");
1639
- }
1649
+ /** This deprecation warning is temporarily being removed, but it will be
1650
+ * reinstated once teams are able to update their `Link`s appropriately. */
1651
+ // if (type === "button") {
1652
+ // console.warn(
1653
+ // `NYPL Reservoir Link: The "button" type is deprecated. Instead, use either "buttonPrimary", "buttonSecondary", "buttonPill", "buttonCallout", "buttonNoBrand", or "buttonDisabled".`
1654
+ // );
1655
+ // }
1640
1656
  variant = type;
1641
1657
  }
1642
- var style = useStyleConfig("Link", {
1658
+ var styles = useMultiStyleConfig("Link", {
1643
1659
  variant: variant
1644
1660
  });
1645
1661
  var rel = type === "external" ? "nofollow" : null;
@@ -1647,7 +1663,7 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
1647
1663
  // Render with specific direction arrows if the type is
1648
1664
  // "forwards" or "backwards". Or render with the launch icon
1649
1665
  // if the type is "external". Otherwise, do not add an icon.
1650
- var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" && getExternalIcon(children, id) || children;
1666
+ var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" && getExternalExtraElements(children, id, styles.srOnly) || children;
1651
1667
  if (!href) {
1652
1668
  // React Types error makes this fail:
1653
1669
  // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32832
@@ -1659,7 +1675,7 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
1659
1675
  var childProps = childrenToClone.props;
1660
1676
  return React__default.createElement(Box, Object.assign({
1661
1677
  as: "span",
1662
- __css: style
1678
+ __css: styles
1663
1679
  }, rest), React__default.cloneElement(childrenToClone, _extends({
1664
1680
  className: className
1665
1681
  }, linkProps, childProps, {
@@ -1676,7 +1692,7 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
1676
1692
  onClick: onClick,
1677
1693
  target: target
1678
1694
  }, linkProps, {
1679
- __css: style
1695
+ __css: styles
1680
1696
  }), newChildren);
1681
1697
  }
1682
1698
  }));
@@ -1775,13 +1791,12 @@ var HelperErrorText = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_re
1775
1791
  text = _ref.text,
1776
1792
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$V);
1777
1793
  // Only announce the text in the invalid state.
1778
- var announceAriaLive = isInvalid;
1779
1794
  var styles = useStyleConfig("HelperErrorText", {
1780
1795
  isInvalid: isInvalid
1781
1796
  });
1782
1797
  var props = _extends({
1783
1798
  "aria-atomic": ariaAtomic,
1784
- "aria-live": announceAriaLive ? ariaLive : "off",
1799
+ "aria-live": ariaLive === "off" ? undefined : ariaLive,
1785
1800
  className: className,
1786
1801
  "data-isinvalid": isInvalid,
1787
1802
  id: id,
@@ -2262,19 +2277,22 @@ var ButtonGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
2262
2277
  buttonWidth: finalButtonWidth
2263
2278
  });
2264
2279
  React__default.Children.map(children, function (child, key) {
2265
- if ((child == null ? void 0 : child.type) !== Button) {
2266
- // Special case for Storybook MDX documentation.
2267
- if (child != null && child.props.mdxType && (child == null ? void 0 : child.props.mdxType) === "Button") ; else {
2268
- console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
2269
- return;
2280
+ if (React__default.isValidElement(child)) {
2281
+ if (child.type !== Button) {
2282
+ // Special case for Storybook MDX documentation.
2283
+ // @ts-ignore
2284
+ if (child.props.mdxType && child.props.mdxType === "Button") ; else {
2285
+ console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
2286
+ return;
2287
+ }
2270
2288
  }
2289
+ var disabledProps = isDisabled ? {
2290
+ isDisabled: isDisabled
2291
+ } : {};
2292
+ newChildren.push(React__default.cloneElement(child, _extends({
2293
+ key: key
2294
+ }, disabledProps)));
2271
2295
  }
2272
- var disabledProps = isDisabled ? {
2273
- isDisabled: isDisabled
2274
- } : {};
2275
- child && newChildren.push(React__default.cloneElement(child, _extends({
2276
- key: key
2277
- }, disabledProps)));
2278
2296
  });
2279
2297
  return React__default.createElement(Stack, Object.assign({
2280
2298
  className: className,
@@ -2662,6 +2680,18 @@ var getAriaAttrs = function getAriaAttrs(_ref) {
2662
2680
  }
2663
2681
  return ariaAttributes;
2664
2682
  };
2683
+ /** Convert a hex color value to an rgb or rgba value */
2684
+ var hexToRGB = function hexToRGB(hex, alpha) {
2685
+ var shortHex = hex.length === 4;
2686
+ var rSlice = shortHex ? hex.slice(1, 2).repeat(2) : hex.slice(1, 3),
2687
+ gSlice = shortHex ? hex.slice(2, 3).repeat(2) : hex.slice(3, 5),
2688
+ bSlice = shortHex ? hex.slice(3, 4).repeat(2) : hex.slice(5, 7);
2689
+ var r = parseInt(rSlice, 16),
2690
+ g = parseInt(gSlice, 16),
2691
+ b = parseInt(bSlice, 16);
2692
+ var rgb = r + ", " + g + ", " + b;
2693
+ return alpha ? "rgba(" + rgb + "," + alpha + ")" : "rgb(" + rgb + ")";
2694
+ };
2665
2695
 
2666
2696
  var _excluded$12 = ["isIndeterminate", "isChecked"],
2667
2697
  _excluded2$2 = ["className", "invalidText", "helperText", "id", "isChecked", "isDisabled", "isIndeterminate", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
@@ -3544,7 +3574,7 @@ var Label = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3544
3574
  }, rest), children, isRequired && React__default.createElement("span", null, requiredLabelText ? " (" + requiredLabelText + ")" : " (Required)"));
3545
3575
  }));
3546
3576
 
3547
- var _excluded$19 = ["className", "defaultValue", "helperText", "id", "invalidText", "isClearable", "isDisabled", "isInvalid", "isRequired", "labelText", "max", "maxLength", "min", "name", "onChange", "onClick", "onFocus", "placeholder", "showHelperInvalidText", "showLabel", "showRequiredLabel", "requiredLabelText", "step", "textInputType", "type", "value"];
3577
+ var _excluded$19 = ["className", "defaultValue", "helperText", "id", "invalidText", "isClearable", "isClearableCallback", "isDisabled", "isInvalid", "isRequired", "labelText", "max", "maxLength", "min", "name", "onChange", "onClick", "onFocus", "placeholder", "showHelperInvalidText", "showLabel", "showRequiredLabel", "requiredLabelText", "step", "textInputType", "type", "value"];
3548
3578
  // Only used internally.
3549
3579
  var TextInputFormats = {
3550
3580
  email: "jdoe@domain.com",
@@ -3568,6 +3598,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3568
3598
  invalidText = props.invalidText,
3569
3599
  _props$isClearable = props.isClearable,
3570
3600
  isClearable = _props$isClearable === void 0 ? false : _props$isClearable,
3601
+ isClearableCallback = props.isClearableCallback,
3571
3602
  _props$isDisabled = props.isDisabled,
3572
3603
  isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
3573
3604
  _props$isInvalid = props.isInvalid,
@@ -3611,12 +3642,18 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3611
3642
  });
3612
3643
  var isTextArea = type === "textarea";
3613
3644
  var isHidden = type === "hidden";
3645
+ var hasAutocomplete = false;
3614
3646
  var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
3615
3647
  var internalOnChange = function internalOnChange(e) {
3616
3648
  setFinalValue(e.target.value);
3617
3649
  onChange && onChange(e);
3618
3650
  };
3619
3651
  var footnote = isInvalid ? finalInvalidText : helperText;
3652
+ if (type === "tel" || type === "url" || type === "email") {
3653
+ hasAutocomplete = true;
3654
+ var example = TextInputFormats[type] || "";
3655
+ footnote = React__default.createElement(React__default.Fragment, null, "Ex: ", example, React__default.createElement("br", null), footnote);
3656
+ }
3620
3657
  var ariaAttributes = getAriaAttrs({
3621
3658
  footnote: footnote,
3622
3659
  id: id,
@@ -3626,6 +3663,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3626
3663
  });
3627
3664
  var onClearClick = function onClearClick() {
3628
3665
  setFinalValue("");
3666
+ isClearableCallback && isClearableCallback();
3629
3667
  // Set focus back to the input element.
3630
3668
  finalRef.current.focus();
3631
3669
  };
@@ -3645,10 +3683,6 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3645
3683
  finalIsInvalid = true;
3646
3684
  console.warn("NYPL Reservoir TextInput: The `min` prop is greater than the `max` prop.");
3647
3685
  }
3648
- if (type === "tel" || type === "url" || type === "email") {
3649
- var example = TextInputFormats[type] || "";
3650
- footnote = React__default.createElement(React__default.Fragment, null, "Ex: ", example, React__default.createElement("br", null), footnote);
3651
- }
3652
3686
  // When the type is "hidden", the input element needs fewer attributes.
3653
3687
  options = isHidden ? {
3654
3688
  defaultValue: defaultValue,
@@ -3659,6 +3693,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3659
3693
  ref: finalRef
3660
3694
  } : _extends({
3661
3695
  "aria-required": isRequired,
3696
+ autocomplete: hasAutocomplete ? type : null,
3662
3697
  defaultValue: defaultValue,
3663
3698
  id: id,
3664
3699
  isDisabled: isDisabled,
@@ -4248,14 +4283,16 @@ var breakpoints = /*#__PURE__*/createBreakpoints({
4248
4283
  var black = "#000";
4249
4284
  var white = "#fff";
4250
4285
  var grayDark = "#616161";
4251
- var grayxxxxDark = "#121212";
4252
- var grayxxxDark = "#191919";
4253
- var grayxxDark = "#212121";
4286
+ var grayxxxxDark = "#191919";
4287
+ var grayxxxDark = "#252525";
4288
+ var grayxxDark = "#2E2E2E";
4254
4289
  var grayxDark = "#424242";
4255
4290
  var grayMedium = "#BDBDBD";
4256
4291
  var grayLightCool = "#E9E9E9";
4257
4292
  var grayxLightCool = "#F5F5F5";
4258
4293
  var grayxxLightCool = "#FAFAFA";
4294
+ var linkPrimary = "#0576D3";
4295
+ var linkSecondary = "#004B98";
4259
4296
  var brandPrimary = "#C60917";
4260
4297
  var brandSecondary = "#760000";
4261
4298
  var brandObj = {
@@ -4279,8 +4316,9 @@ var colors = {
4279
4316
  },
4280
4317
  focus: "#4181F1",
4281
4318
  link: {
4282
- primary: "#0576D3",
4283
- secondary: "#004B98"
4319
+ primary: linkPrimary,
4320
+ "primary-05": /*#__PURE__*/hexToRGB(linkPrimary, 0.05),
4321
+ secondary: linkSecondary
4284
4322
  },
4285
4323
  status: {
4286
4324
  primary: "#F9E08E",
@@ -4339,26 +4377,26 @@ var colors = {
4339
4377
  secondary: grayxxDark
4340
4378
  },
4341
4379
  error: {
4342
- primary: "#E1454C",
4343
- secondary: "#F67C82"
4380
+ primary: "#E1767B",
4381
+ secondary: "#F08F93"
4344
4382
  },
4345
- focus: "#5181D4",
4383
+ focus: "#6090E3",
4346
4384
  link: {
4347
- primary: "#2085D8",
4348
- secondary: "#50A0E1"
4385
+ primary: "#79B7EB",
4386
+ secondary: "#95CFFF"
4349
4387
  },
4350
4388
  status: {
4351
- primary: "#6F6544",
4352
- secondary: "#6F6765"
4389
+ primary: "#B69C46",
4390
+ secondary: "#CB8E7C"
4353
4391
  },
4354
4392
  success: {
4355
- primary: "#0E3B15",
4356
- secondary: "#0F2912"
4393
+ primary: "#52AA60",
4394
+ secondary: "#81C88A"
4357
4395
  },
4358
4396
  test: "#592B22",
4359
4397
  warning: {
4360
- primary: "#493320",
4361
- secondary: "#482C15"
4398
+ primary: "#DC8034",
4399
+ secondary: "#F1A66A"
4362
4400
  },
4363
4401
  // Semantic colors
4364
4402
  bg: {
@@ -4881,7 +4919,7 @@ var secondary = function secondary(_ref2) {
4881
4919
  color: "ui.link.primary"
4882
4920
  }, generalSizeValues(buttonSize), {
4883
4921
  _hover: {
4884
- bg: "ui.bg.default",
4922
+ bg: "ui.link.primary-05",
4885
4923
  borderColor: "ui.link.secondary",
4886
4924
  color: "ui.link.secondary"
4887
4925
  },
@@ -4922,7 +4960,7 @@ var text = function text(_ref4) {
4922
4960
  bg: "transparent"
4923
4961
  },
4924
4962
  _hover: {
4925
- bg: "transparent",
4963
+ bg: "ui.link.primary-05",
4926
4964
  color: "ui.link.secondary"
4927
4965
  }
4928
4966
  });
@@ -4958,9 +4996,9 @@ var iconOnly = function iconOnly(_ref6) {
4958
4996
  paddingInlineStart: "inset.narrow",
4959
4997
  paddingInlineEnd: "inset.narrow",
4960
4998
  _hover: {
4961
- bg: "ui.bg.default",
4962
- borderColor: "ui.link.primary",
4963
- color: "ui.link.primary"
4999
+ bg: "ui.link.primary-05",
5000
+ borderColor: "ui.link.secondary",
5001
+ color: "ui.link.secondary"
4964
5002
  }
4965
5003
  });
4966
5004
  };
@@ -5503,7 +5541,14 @@ var select = {
5503
5541
  },
5504
5542
  _active: selectTextInputFocusStyles,
5505
5543
  _disabled: /*#__PURE__*/_extends({}, selectTextInputDisabledStyles),
5506
- _focus: selectTextInputFocusStyles,
5544
+ _focus: /*#__PURE__*/_extends({}, selectTextInputFocusStyles, {
5545
+ // When the select is focused, the icon should be on top of the dropdown.
5546
+ // This should only be done when focused, otherswise the icon will render
5547
+ // above any other elements on the page.
5548
+ "+ .chakra-select__icon-wrapper": {
5549
+ zIndex: "9999"
5550
+ }
5551
+ }),
5507
5552
  _invalid: {
5508
5553
  border: "1px solid",
5509
5554
  borderColor: "ui.error.primary",
@@ -5515,12 +5560,6 @@ var Select = {
5515
5560
  baseStyle: function baseStyle(_ref) {
5516
5561
  var labelPosition = _ref.labelPosition;
5517
5562
  return {
5518
- // The backgroundColor set to "ui.white" hides the arrow SVG icon when
5519
- // the component is focused. The background is added for dark mode and
5520
- // so we need to add specific selector.
5521
- ".chakra-select__icon-wrapper": {
5522
- zIndex: "9999"
5523
- },
5524
5563
  inline: {
5525
5564
  display: {
5526
5565
  md: "flex"
@@ -5578,8 +5617,14 @@ var FeedbackBox = {
5578
5617
  parts: ["closeButton", "drawerBody", "drawerContent", "drawerHeader", "openButton"],
5579
5618
  baseStyle: {
5580
5619
  closeButton: {
5620
+ /** This is overriding the default min-height value in order to keep the
5621
+ * button spacing symmetrical. */
5622
+ minHeight: "40px",
5623
+ right: "xs",
5581
5624
  p: "0",
5582
- span: /*#__PURE__*/screenreaderOnly()
5625
+ position: "absolute",
5626
+ span: /*#__PURE__*/screenreaderOnly(),
5627
+ top: "xs"
5583
5628
  },
5584
5629
  drawerBody: {
5585
5630
  paddingTop: "m",
@@ -5599,8 +5644,8 @@ var FeedbackBox = {
5599
5644
  display: "flex",
5600
5645
  fontSize: "text.default",
5601
5646
  px: "m",
5602
- paddingTop: "xs",
5603
- paddingBottom: "xs",
5647
+ paddingTop: "s",
5648
+ paddingBottom: "s",
5604
5649
  p: {
5605
5650
  marginBottom: "0"
5606
5651
  }
@@ -5627,6 +5672,37 @@ var Fieldset$1 = {
5627
5672
  }
5628
5673
  };
5629
5674
 
5675
+ var filterBarWidth = {
5676
+ "default": {
5677
+ width: {
5678
+ base: "100%",
5679
+ md: "265px"
5680
+ }
5681
+ },
5682
+ full: {
5683
+ width: "100%"
5684
+ }
5685
+ };
5686
+ var FilterBar = {
5687
+ parts: ["modalHeader", "modalFooter", "modalCloseButton", "globalButtonGroup", "globalButtonGroupWrapper"],
5688
+ baseStyle: function baseStyle(_ref) {
5689
+ var width = _ref.width;
5690
+ return {
5691
+ width: "full",
5692
+ modalHeader: {
5693
+ bg: "ui.gray.x-light-cool"
5694
+ },
5695
+ modalFooter: {
5696
+ bg: "ui.gray.x-light-cool"
5697
+ },
5698
+ modalCloseButton: {
5699
+ mt: "8px"
5700
+ },
5701
+ globalButtonGroupWrapper: _extends({}, filterBarWidth[width])
5702
+ };
5703
+ }
5704
+ };
5705
+
5630
5706
  var footerGray = "#54514A";
5631
5707
  var Footer = {
5632
5708
  baseStyle: {
@@ -6708,14 +6784,18 @@ var variants = {
6708
6784
  })
6709
6785
  };
6710
6786
  var Link$1 = {
6787
+ parts: ["srOnly"],
6711
6788
  baseStyle: /*#__PURE__*/_extends({}, baseLinkStyles, {
6712
- // This is needed for custom anchor elements or link components
6713
- // that are passed as children to the `Link` component.
6789
+ /** This is needed for custom anchor elements or link components
6790
+ * that are passed as children to the `Link` component. */
6714
6791
  a: {
6715
6792
  _hover: {
6716
6793
  color: "ui.link.secondary"
6717
6794
  }
6718
- }
6795
+ },
6796
+ /** The element will handle descriptive text added to aid
6797
+ * screen readers. */
6798
+ srOnly: /*#__PURE__*/screenreaderOnly()
6719
6799
  }),
6720
6800
  variants: variants
6721
6801
  };
@@ -7351,6 +7431,202 @@ var Logo = {
7351
7431
  }
7352
7432
  };
7353
7433
 
7434
+ var multiSelectWidths = {
7435
+ "default": {
7436
+ width: {
7437
+ base: "100%",
7438
+ md: "250px"
7439
+ }
7440
+ },
7441
+ fitContent: {
7442
+ width: {
7443
+ base: "100%",
7444
+ md: "fit-content"
7445
+ },
7446
+ minWidth: {
7447
+ md: "175px"
7448
+ }
7449
+ },
7450
+ full: {
7451
+ width: "100%"
7452
+ }
7453
+ };
7454
+ var MultiSelect = {
7455
+ parts: ["actionButtons", "menu", "menuButton", "menuContainer", "menuChildren"],
7456
+ baseStyle: function baseStyle(_ref) {
7457
+ var isBlockElement = _ref.isBlockElement,
7458
+ isOpen = _ref.isOpen,
7459
+ _ref$width = _ref.width,
7460
+ width = _ref$width === void 0 ? "default" : _ref$width;
7461
+ return _extends({}, multiSelectWidths[width], {
7462
+ position: "relative",
7463
+ actionButtons: {
7464
+ borderTop: "1px solid",
7465
+ borderColor: "ui.gray.medium",
7466
+ gap: {
7467
+ base: "0",
7468
+ md: "s"
7469
+ },
7470
+ justifyContent: "flex-end",
7471
+ padding: {
7472
+ base: "s",
7473
+ md: "xs"
7474
+ },
7475
+ width: "auto"
7476
+ },
7477
+ menuContainer: _extends({
7478
+ backgroundColor: "white",
7479
+ position: {
7480
+ md: isBlockElement ? "relative" : "absolute"
7481
+ },
7482
+ display: isOpen ? "block" : "none",
7483
+ zIndex: isBlockElement ? 0 : 9999
7484
+ }, width === "fitContent" && {
7485
+ minWidth: {
7486
+ md: "275px"
7487
+ },
7488
+ maxWidth: {
7489
+ md: "375px"
7490
+ }
7491
+ }, {
7492
+ width: "100%",
7493
+ // These are for active states
7494
+ boxSizing: "border-box",
7495
+ border: "1px solid",
7496
+ borderBottomLeftRadius: "button.default",
7497
+ borderBottomRightRadius: "button.default",
7498
+ borderTopLeftRadius: "0",
7499
+ borderTopRightRadius: "0",
7500
+ borderColor: "ui.gray.dark",
7501
+ marginTop: "-1px",
7502
+ paddingX: 0,
7503
+ paddingY: 0,
7504
+ ul: {
7505
+ m: 0,
7506
+ px: 0,
7507
+ py: "xs",
7508
+ li: {
7509
+ p: 0,
7510
+ div: {
7511
+ px: "s",
7512
+ paddingTop: "xs",
7513
+ paddingBottom: "6px",
7514
+ _hover: {
7515
+ bg: "ui.gray.x-light-cool"
7516
+ }
7517
+ }
7518
+ },
7519
+ ul: {
7520
+ py: 0,
7521
+ li: {
7522
+ div: {
7523
+ paddingLeft: "46px",
7524
+ paddingRight: 0
7525
+ }
7526
+ }
7527
+ }
7528
+ }
7529
+ }),
7530
+ menu: {
7531
+ paddingX: "xs",
7532
+ // Controls the height of the multiselect menu, before scroll bar.
7533
+ maxHeight: {
7534
+ base: "100%",
7535
+ md: "285px"
7536
+ },
7537
+ overflowX: {
7538
+ base: "hidden"
7539
+ },
7540
+ overflowY: {
7541
+ base: "auto"
7542
+ },
7543
+ _focus: {
7544
+ outline: "0px !important"
7545
+ }
7546
+ },
7547
+ menuChildren: {
7548
+ paddingLeft: "m",
7549
+ marginBottom: 0
7550
+ }
7551
+ });
7552
+ }
7553
+ };
7554
+
7555
+ var MultiSelectMenuButton = {
7556
+ parts: ["buttonLabel", "menuButton", "selectedItemsCountButton", "toggleIcon"],
7557
+ baseStyle: function baseStyle(_ref) {
7558
+ var _ref$hasSelectedItems = _ref.hasSelectedItems,
7559
+ hasSelectedItems = _ref$hasSelectedItems === void 0 ? false : _ref$hasSelectedItems,
7560
+ _ref$isOpen = _ref.isOpen,
7561
+ isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen;
7562
+ return {
7563
+ buttonLabel: {
7564
+ justifyContent: "flex-start",
7565
+ overflow: "hidden",
7566
+ marginLeft: hasSelectedItems ? "50px" : "0",
7567
+ marginRight: "l",
7568
+ textAlign: "left",
7569
+ textOverflow: "ellipsis",
7570
+ whiteSpace: "nowrap",
7571
+ transition: "margin 150ms ease-out"
7572
+ },
7573
+ menuButton: {
7574
+ alignItems: "center",
7575
+ backgroundColor: isOpen ? "ui.bg.active" : "ui.white",
7576
+ borderBottomLeftRadius: isOpen ? "0" : "button.default",
7577
+ borderBottomRightRadius: isOpen ? "0" : "button.default",
7578
+ borderColor: isOpen ? "ui.gray.dark" : "ui.gray.medium",
7579
+ borderRadius: "button.default",
7580
+ borderWidth: "1px",
7581
+ fontSize: "button.default",
7582
+ minHeight: {
7583
+ base: defaultElementSizes.mobileFieldHeight,
7584
+ md: "auto"
7585
+ },
7586
+ px: "s",
7587
+ py: "xs",
7588
+ display: "inline-flex",
7589
+ justifyContent: "space-between",
7590
+ width: "100%",
7591
+ _hover: {
7592
+ backgroundColor: isOpen ? "ui.bg.active" : "ui.white",
7593
+ borderColor: "ui.gray.dark"
7594
+ },
7595
+ svg: {
7596
+ marginTop: "0"
7597
+ }
7598
+ },
7599
+ selectedItemsCountButton: {
7600
+ alignItems: "center",
7601
+ backgroundColor: "ui.gray.light-cool",
7602
+ border: "1px",
7603
+ borderRadius: "20px",
7604
+ borderColor: isOpen ? "ui.border.hover" : "ui.border.default",
7605
+ display: "flex",
7606
+ flexShrink: 0,
7607
+ fontSize: "text.tag",
7608
+ justifyContent: "flex-end",
7609
+ left: "15px",
7610
+ marginRight: "xs",
7611
+ position: "absolute",
7612
+ top: {
7613
+ base: "12px",
7614
+ md: "10px"
7615
+ },
7616
+ width: "46px",
7617
+ _hover: {
7618
+ borderColor: isOpen ? "ui.gray.xx-dark" : "ui.border.hover"
7619
+ },
7620
+ svg: {
7621
+ marginLeft: "xxs",
7622
+ marginRight: "6px",
7623
+ marginTop: "0"
7624
+ }
7625
+ }
7626
+ };
7627
+ }
7628
+ };
7629
+
7354
7630
  var Notification = {
7355
7631
  parts: ["container", "dismissibleButton", "icon"],
7356
7632
  baseStyle: function baseStyle(_ref) {
@@ -8929,6 +9205,7 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
8929
9205
  DatePicker: DatePicker$1,
8930
9206
  FeedbackBox: FeedbackBox,
8931
9207
  Fieldset: Fieldset$1,
9208
+ FilterBar: FilterBar,
8932
9209
  Footer: Footer,
8933
9210
  Header: Header,
8934
9211
  HeaderLogin: HeaderLogin,
@@ -8949,7 +9226,9 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
8949
9226
  Label: Label$1,
8950
9227
  Link: Link$1,
8951
9228
  List: List,
8952
- Logo: Logo
9229
+ Logo: Logo,
9230
+ MultiSelect: MultiSelect,
9231
+ MultiSelectMenuButton: MultiSelectMenuButton
8953
9232
  }, NotificationStyles, {
8954
9233
  Pagination: Pagination,
8955
9234
  ProgressIndicator: ProgressIndicator,
@@ -9450,6 +9729,9 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9450
9729
  setComment = _useFeedbackBoxReduce.setComment,
9451
9730
  setEmail = _useFeedbackBoxReduce.setEmail,
9452
9731
  clearValues = _useFeedbackBoxReduce.clearValues;
9732
+ // Hook into NYPL breakpoint
9733
+ var _useNYPLBreakpoints = useNYPLBreakpoints(),
9734
+ isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
9453
9735
  // Chakra's hook to control Drawer's actions.
9454
9736
  var disclosure = useDisclosure();
9455
9737
  var finalIsOpen = isOpen ? isOpen : disclosure.isOpen;
@@ -9462,11 +9744,13 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9462
9744
  var isErrorView = viewType === "error";
9463
9745
  var confirmationTimeout = 3000;
9464
9746
  var maxCommentCharacters = 500;
9465
- var initMinHeight = "275px";
9747
+ var initMinHeight = 165;
9466
9748
  var initTemplateRows = "auto 1fr";
9467
- var minHeightWithCategory = "345px";
9468
- var minHeightWithEmail = "385px";
9469
- var minHeightWithCategoryAndEmail = "455px";
9749
+ var minHeightWithCategory = 235;
9750
+ var minHeightWithEmail = 275;
9751
+ var minHeightWithCategoryAndEmail = 345;
9752
+ var notificationHeightAdjustment = 37;
9753
+ var descriptionHeightAdjustment = 24;
9470
9754
  var drawerMinHeight = initMinHeight;
9471
9755
  var closeAndResetForm = function closeAndResetForm() {
9472
9756
  finalOnClose();
@@ -9493,16 +9777,18 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9493
9777
  "> div": {
9494
9778
  py: "xs"
9495
9779
  }
9496
- }
9780
+ },
9781
+ width: "100%"
9497
9782
  }) : undefined;
9498
9783
  var descriptionElement = isFormView && descriptionText ? React__default.createElement(Text, {
9499
9784
  fontWeight: "medium",
9500
- mb: "0"
9785
+ noSpace: true
9501
9786
  }, descriptionText) : undefined;
9502
9787
  var privacyPolicyField = React__default.createElement(FormField, null, React__default.createElement(Link, {
9503
9788
  href: "https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy",
9504
9789
  type: "external",
9505
- fontSize: "text.tag"
9790
+ fontSize: "text.tag",
9791
+ width: "fit-content"
9506
9792
  }, "Privacy Policy"));
9507
9793
  // When the submit button is clicked, set a timeout before displaying
9508
9794
  // the confirmation or error screen. This automatically goes to the
@@ -9559,6 +9845,16 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9559
9845
  if (showCategoryField && showEmailField) {
9560
9846
  drawerMinHeight = minHeightWithCategoryAndEmail;
9561
9847
  }
9848
+ if (notificationText) {
9849
+ drawerMinHeight += notificationHeightAdjustment;
9850
+ }
9851
+ if (descriptionText) {
9852
+ drawerMinHeight += descriptionHeightAdjustment;
9853
+ }
9854
+ if (notificationText && descriptionText) {
9855
+ drawerMinHeight += 16;
9856
+ }
9857
+ var finalDrawerMinHeight = drawerMinHeight + "px";
9562
9858
  return React__default.createElement(Box, Object.assign({
9563
9859
  className: className,
9564
9860
  id: id,
@@ -9575,11 +9871,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9575
9871
  placement: "bottom"
9576
9872
  }, React__default.createElement(DrawerOverlay, null), React__default.createElement(DrawerContent, {
9577
9873
  sx: styles.drawerContent
9578
- }, React__default.createElement(DrawerHeader, {
9579
- sx: styles.drawerHeader
9580
- }, React__default.createElement(Text, {
9581
- "data-testid": "title"
9582
- }, title), React__default.createElement(Spacer, null), React__default.createElement(Button, {
9874
+ }, React__default.createElement(Button, {
9583
9875
  buttonType: "text",
9584
9876
  id: "close-btn",
9585
9877
  onClick: finalOnClose,
@@ -9588,24 +9880,38 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9588
9880
  color: "ui.black",
9589
9881
  name: "minus",
9590
9882
  size: "medium"
9591
- }), React__default.createElement("span", null, "Close ", title))), React__default.createElement(DrawerBody, {
9883
+ }), React__default.createElement("span", null, "Close ", title)), React__default.createElement(DrawerHeader, {
9884
+ sx: styles.drawerHeader
9885
+ }, React__default.createElement(Text, {
9886
+ "data-testid": "title"
9887
+ }, title)), React__default.createElement(DrawerBody, {
9592
9888
  sx: styles.drawerBody
9593
9889
  }, React__default.createElement(Form, {
9594
9890
  gap: "grid.s",
9595
9891
  id: "feedback-form",
9596
9892
  onSubmit: internalOnSubmit,
9597
9893
  sx: {
9598
- "> div": {
9599
- minHeight: drawerMinHeight,
9894
+ ".feedback-body": {
9895
+ alignItems: "flex-start",
9896
+ minHeight: finalDrawerMinHeight,
9600
9897
  gridTemplateRows: initTemplateRows
9898
+ },
9899
+ ".feedback-body.response": {
9900
+ alignItems: "center",
9901
+ display: "flex",
9902
+ flexDirection: "column",
9903
+ justifyContent: "center"
9601
9904
  }
9602
9905
  }
9603
- }, React__default.createElement(FormField, null, notificationElement, descriptionElement), isFormView && React__default.createElement(React__default.Fragment, null, showCategoryField && React__default.createElement(FormField, null, React__default.createElement(RadioGroup$1, {
9906
+ }, isFormView && React__default.createElement(React__default.Fragment, null, React__default.createElement(VStack, {
9907
+ className: "feedback-body",
9908
+ spacing: "s"
9909
+ }, (notificationElement || descriptionElement) && React__default.createElement(React__default.Fragment, null, notificationElement, descriptionElement), showCategoryField && React__default.createElement(FormField, null, React__default.createElement(RadioGroup$1, {
9604
9910
  defaultValue: state.category,
9605
9911
  id: id + "-category",
9606
9912
  isDisabled: isSubmitted,
9607
9913
  labelText: "What is your feedback about?",
9608
- layout: "row",
9914
+ layout: isLargerThanMobile ? "row" : "column",
9609
9915
  name: id + "-category",
9610
9916
  onChange: function onChange(selected) {
9611
9917
  return setCategory(selected);
@@ -9622,7 +9928,9 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9622
9928
  id: "bug",
9623
9929
  labelText: "Bug",
9624
9930
  value: "bug"
9625
- }))), React__default.createElement(FormField, null, React__default.createElement(TextInput, {
9931
+ }))), React__default.createElement(FormField, {
9932
+ width: "100%"
9933
+ }, React__default.createElement(TextInput, {
9626
9934
  helperText: maxCommentCharacters - state.comment.length + " characters remaining",
9627
9935
  id: id + "-comment",
9628
9936
  invalidText: "Please fill out this field.",
@@ -9638,7 +9946,9 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9638
9946
  placeholder: "Enter your question or feedback here",
9639
9947
  type: "textarea",
9640
9948
  defaultValue: state.comment
9641
- })), showEmailField && React__default.createElement(FormField, null, React__default.createElement(TextInput, {
9949
+ })), showEmailField && React__default.createElement(FormField, {
9950
+ width: "100%"
9951
+ }, React__default.createElement(TextInput, {
9642
9952
  id: id + "-email",
9643
9953
  invalidText: "Please enter a valid email address.",
9644
9954
  isDisabled: isSubmitted,
@@ -9651,7 +9961,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9651
9961
  placeholder: "Enter your email address here",
9652
9962
  type: "email",
9653
9963
  value: state.email
9654
- })), privacyPolicyField, React__default.createElement(FormField, null, React__default.createElement(ButtonGroup, {
9964
+ }))), privacyPolicyField, React__default.createElement(FormField, null, React__default.createElement(ButtonGroup, {
9655
9965
  buttonWidth: "full",
9656
9966
  id: "submit-cancel"
9657
9967
  }, React__default.createElement(Button, {
@@ -9666,6 +9976,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9666
9976
  key: "submit",
9667
9977
  type: "submit"
9668
9978
  }, "Submit")))), isConfirmationView && React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
9979
+ className: "feedback-body response",
9669
9980
  key: "confirmationWrapper",
9670
9981
  margin: "auto",
9671
9982
  tabIndex: 0,
@@ -9684,6 +9995,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
9684
9995
  buttonType: "secondary",
9685
9996
  onClick: closeAndResetForm
9686
9997
  }, "Return to Browsing")))), isErrorView && React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
9998
+ className: "feedback-body response",
9687
9999
  color: "ui.error.primary",
9688
10000
  key: "errorWrapper",
9689
10001
  margin: "auto",
@@ -9732,78 +10044,730 @@ function useFeedbackBox() {
9732
10044
  };
9733
10045
  }
9734
10046
 
9735
- var _excluded$1f = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
10047
+ var _excluded$1f = ["id", "isOpen", "multiSelectId", "multiSelectLabel", "onClear", "onKeyDown", "onMenuToggle", "selectedItems"];
10048
+ var _templateObject;
10049
+ var grow = /*#__PURE__*/keyframes$1(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n from {width: 22px; opacity: 0; }\n to {width: 46px; opacity: 1;}\n"])));
9736
10050
  /**
9737
- * A component that renders list item `li` elements or description item `dt`
9738
- * and `dd` elements based on the `type` prop. Note that the `title` prop will
9739
- * only display for the `Description` list type.
10051
+ * The toggle button component used to open and close the `MultiSelect` menu.
10052
+ * A second button is rendered above the main button that displays the current
10053
+ * number of selected items. Clicking on the second button will clear all
10054
+ * the selected items and the main button's close event will not be fired
10055
+ * (as expected).
9740
10056
  */
9741
- var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
9742
- var children = props.children,
9743
- className = props.className,
9744
- id = props.id,
9745
- _props$inline = props.inline,
9746
- inline = _props$inline === void 0 ? false : _props$inline,
9747
- listItems = props.listItems,
9748
- _props$noStyling = props.noStyling,
9749
- noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
9750
- title = props.title,
9751
- _props$type = props.type,
9752
- type = _props$type === void 0 ? "ul" : _props$type,
10057
+ var MultiSelectMenuButton$1 = /*#__PURE__*/forwardRef(function (props, ref) {
10058
+ var _selectedItems$multiS;
10059
+ var id = props.id,
10060
+ isOpen = props.isOpen,
10061
+ multiSelectId = props.multiSelectId,
10062
+ multiSelectLabel = props.multiSelectLabel,
10063
+ onClear = props.onClear,
10064
+ onMenuToggle = props.onMenuToggle,
10065
+ selectedItems = props.selectedItems,
9753
10066
  rest = _objectWithoutPropertiesLoose(props, _excluded$1f);
9754
- var styles = useStyleConfig("List", {
9755
- inline: inline,
9756
- noStyling: noStyling,
9757
- variant: type
10067
+ var iconType = isOpen ? "minus" : "plus";
10068
+ var growAnimation = grow + " 150ms ease-out";
10069
+ // Sets the selected items count on the menu button.
10070
+ var getSelectedItemsCount;
10071
+ var selectedItemsAriaLabel;
10072
+ if (((_selectedItems$multiS = selectedItems[multiSelectId]) == null ? void 0 : _selectedItems$multiS.items.length) > 0) {
10073
+ getSelectedItemsCount = "" + selectedItems[multiSelectId].items.length;
10074
+ var itemPlural = getSelectedItemsCount === "1" ? "" : "s";
10075
+ selectedItemsAriaLabel = getSelectedItemsCount + " item" + itemPlural + " selected";
10076
+ }
10077
+ var styles = useMultiStyleConfig("MultiSelectMenuButton", {
10078
+ isOpen: isOpen,
10079
+ hasSelectedItems: getSelectedItemsCount
9758
10080
  });
9759
- var listElement = null;
9760
- // Either li/dt/dd children elements must be passed or the `listItems`
9761
- // prop must be used.
9762
- if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
9763
- console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
9764
- return null;
10081
+ // We need this for our "fake" button inside the main menu button.
10082
+ function onKeyPress(e) {
10083
+ var enterOrSpace = e.key === "Enter" || e.key === " " || e.key === "Spacebar" || e.which === 13 || e.which === 32;
10084
+ if (enterOrSpace) {
10085
+ e.preventDefault();
10086
+ onClear();
10087
+ }
9765
10088
  }
9766
- if (!children && !listItems) {
9767
- console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
9768
- return null;
10089
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, Object.assign({
10090
+ buttonType: "secondary",
10091
+ id: id,
10092
+ onClick: onMenuToggle,
10093
+ ref: ref,
10094
+ __css: styles.menuButton
10095
+ }, rest), React__default.createElement(Box, {
10096
+ as: "span",
10097
+ title: multiSelectLabel,
10098
+ __css: styles.buttonLabel
10099
+ }, multiSelectLabel), React__default.createElement(Icon, {
10100
+ id: "ms-" + multiSelectId + "-icon",
10101
+ name: iconType,
10102
+ size: "small"
10103
+ })), getSelectedItemsCount && React__default.createElement(Box, {
10104
+ animation: growAnimation,
10105
+ "aria-label": selectedItemsAriaLabel,
10106
+ as: "span",
10107
+ onClick: onClear,
10108
+ onKeyPress: onKeyPress,
10109
+ role: "button",
10110
+ tabIndex: 0,
10111
+ __css: styles.selectedItemsCountButton
10112
+ }, React__default.createElement(Box, {
10113
+ as: "span",
10114
+ verticalAlign: "text-bottom"
10115
+ }, getSelectedItemsCount), React__default.createElement(Icon, {
10116
+ align: "right",
10117
+ id: "ms-" + multiSelectId + "-selected-items-count-icon",
10118
+ marginLeft: "xs",
10119
+ name: "close",
10120
+ size: "xsmall"
10121
+ })));
10122
+ });
10123
+
10124
+ var _excluded$1g = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onChange", "onClear", "selectedItems", "width"];
10125
+ /** MultiSelectListbox renders a non-hierarchical list of checkbox options for the `variant="listbox". It leverager downshift-js for accessiblity. */
10126
+ var MultiSelectListbox = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
10127
+ var id = props.id,
10128
+ isBlockElement = props.isBlockElement,
10129
+ isDefaultOpen = props.isDefaultOpen,
10130
+ items = props.items,
10131
+ label = props.label,
10132
+ onChange = props.onChange,
10133
+ onClear = props.onClear,
10134
+ selectedItems = props.selectedItems,
10135
+ width = props.width,
10136
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1g);
10137
+ // Downshift.
10138
+ var _useSelect = useSelect({
10139
+ items: items,
10140
+ // Downshift's internal state for handling keyboard and mouse events.
10141
+ stateReducer: function stateReducer(state, actionAndChanges) {
10142
+ var changes = actionAndChanges.changes,
10143
+ type = actionAndChanges.type;
10144
+ switch (type) {
10145
+ case useSelect.stateChangeTypes.MenuKeyDownEnter:
10146
+ case useSelect.stateChangeTypes.MenuKeyDownSpaceButton:
10147
+ case useSelect.stateChangeTypes.ItemClick:
10148
+ return _extends({}, changes, {
10149
+ isOpen: true,
10150
+ highlightedIndex: state.highlightedIndex
10151
+ });
10152
+ default:
10153
+ return changes;
10154
+ }
10155
+ },
10156
+ //@ts-ignore
10157
+ selectedItem: selectedItems,
10158
+ onSelectedItemChange: function onSelectedItemChange(_ref) {
10159
+ var selectedItem = _ref.selectedItem;
10160
+ onChange(selectedItem, id);
10161
+ },
10162
+ initialIsOpen: isDefaultOpen
10163
+ }),
10164
+ getItemProps = _useSelect.getItemProps,
10165
+ getMenuProps = _useSelect.getMenuProps,
10166
+ getToggleButtonProps = _useSelect.getToggleButtonProps,
10167
+ highlightedIndex = _useSelect.highlightedIndex,
10168
+ isOpen = _useSelect.isOpen;
10169
+ var styles = useMultiStyleConfig("MultiSelect", {
10170
+ width: width,
10171
+ isBlockElement: isBlockElement,
10172
+ isOpen: isOpen
10173
+ });
10174
+ // If a item passed to the listbox variant has children,
10175
+ if (items.some(function (item) {
10176
+ return item.children;
10177
+ })) {
10178
+ console.warn("NYPL Reservoir MultiSelect: Only the variant 'dialog' can render nested select items.");
9769
10179
  }
9770
- /**
9771
- * This returns either the `children` elements passed to the `List` component
9772
- * first, otherwise it will check and render the data passed into the
9773
- * `listItems` props based on the `ListType` type. If it is of type unordered
9774
- * or ordered, it will return `li` elements. Otherwise, it will return a
9775
- * combination of `dt` and `dd` elements for the description type.
9776
- */
9777
- var listChildrenElms = function listChildrenElms(listType) {
9778
- if (children) {
9779
- return children;
9780
- }
9781
- if (!listItems) {
9782
- return null;
9783
- }
9784
- if (listType === "ol" || listType === "ul") {
9785
- return listItems.map(function (item, i) {
9786
- return React__default.createElement("li", {
9787
- key: i
9788
- }, item);
9789
- });
9790
- } else if (listType === "dl") {
9791
- return listItems.map(function (item, i) {
9792
- return [React__default.createElement("dt", {
9793
- key: i + "-term"
9794
- }, item.term), React__default.createElement("dd", {
9795
- key: i + "-des"
9796
- }, item.description)];
9797
- });
9798
- }
9799
- return null;
9800
- };
9801
- /**
9802
- * Checks for `dt` and `dd` elements and consoles a warning if the
9803
- * children are different HTML elements.
9804
- */
9805
- var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
9806
- React__default.Children.map(children, function (child) {
10180
+ return React__default.createElement(Box, Object.assign({
10181
+ id: id,
10182
+ __css: styles
10183
+ }, rest), React__default.createElement(MultiSelectMenuButton$1, Object.assign({
10184
+ multiSelectId: id,
10185
+ multiSelectLabel: label,
10186
+ isOpen: isOpen,
10187
+ selectedItems: selectedItems,
10188
+ onClear: onClear,
10189
+ ref: ref
10190
+ }, getToggleButtonProps({
10191
+ id: "ms-" + id + "-menu-button",
10192
+ "aria-labelledby": "ms-" + id + "-menu ms-" + id + "-menu-button"
10193
+ }))), React__default.createElement(Box, {
10194
+ __css: styles.menuContainer
10195
+ }, React__default.createElement(UnorderedList, Object.assign({
10196
+ styleType: "none",
10197
+ marginInlineStart: "0"
10198
+ }, getMenuProps({
10199
+ id: "ms-" + id + "-menu",
10200
+ "aria-labelledby": "ms-" + id + "-menu-button"
10201
+ }), {
10202
+ // @FIX This prevents the menu from closing when checkbox or label is clicked.
10203
+ onClick: function onClick(e) {
10204
+ return e.preventDefault();
10205
+ },
10206
+ __css: styles.menu
10207
+ }), isOpen && items.map(function (item, index) {
10208
+ var _selectedItems$id;
10209
+ return React__default.createElement(ListItem, Object.assign({
10210
+ py: 1,
10211
+ // @TODO fix this, we want to pass the key prop as part of ...getItemProps but get
10212
+ // error Missing "key" prop for element in iterator react/jsx-key
10213
+ key: item.id
10214
+ }, getItemProps({
10215
+ id: "ms-" + id + "-item-" + index,
10216
+ key: item.id,
10217
+ item: item,
10218
+ index: index
10219
+ }), {
10220
+ sx: highlightedIndex === index ? {
10221
+ backgroundColor: "ui.gray.x-light-cool"
10222
+ } : {}
10223
+ }), React__default.createElement(Checkbox, {
10224
+ id: item.id,
10225
+ labelText: item.name,
10226
+ name: item.name,
10227
+ isChecked: (_selectedItems$id = selectedItems[id]) == null ? void 0 : _selectedItems$id.items.includes(item.id),
10228
+ onChange: function onChange() {
10229
+ return null;
10230
+ }
10231
+ }));
10232
+ }))));
10233
+ }),
10234
+ // Pass all custom props to Chakra and override, for width prop.
10235
+ {
10236
+ shouldForwardProp: function shouldForwardProp() {
10237
+ return true;
10238
+ }
10239
+ });
10240
+
10241
+ var _excluded$1h = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "width"];
10242
+ var MultiSelectDialog = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
10243
+ var id = props.id,
10244
+ isBlockElement = props.isBlockElement,
10245
+ isDefaultOpen = props.isDefaultOpen,
10246
+ items = props.items,
10247
+ label = props.label,
10248
+ onApply = props.onApply,
10249
+ onChange = props.onChange,
10250
+ onClear = props.onClear,
10251
+ onMixedStateChange = props.onMixedStateChange,
10252
+ selectedItems = props.selectedItems,
10253
+ width = props.width,
10254
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1h);
10255
+ // Use NYPL Breakpoints hook to check screen size
10256
+ var _useNYPLBreakpoints = useNYPLBreakpoints(),
10257
+ isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
10258
+ // Control the open or closed state of the MultiSelect.
10259
+ var _useState = useState(isDefaultOpen),
10260
+ isOpen = _useState[0],
10261
+ setIsOpen = _useState[1];
10262
+ var styles = useMultiStyleConfig("MultiSelect", {
10263
+ width: width,
10264
+ isBlockElement: isBlockElement,
10265
+ isOpen: isOpen
10266
+ });
10267
+ // Create a ref that we add to the element for which we want to detect outside clicks.
10268
+ var internalRef = useRef();
10269
+ // Custom Hook, Closes the MultiSelect if user clicks outside.
10270
+ function useOnClickOutside(ref, handler) {
10271
+ React__default.useEffect(function () {
10272
+ var listener = function listener(event) {
10273
+ // Do nothing if clicking ref's element or descendent elements
10274
+ if (!ref.current || ref.current.contains(event.target)) {
10275
+ return;
10276
+ }
10277
+ handler(event);
10278
+ };
10279
+ document.addEventListener("mousedown", listener);
10280
+ document.addEventListener("touchstart", listener);
10281
+ return function () {
10282
+ document.removeEventListener("mousedown", listener);
10283
+ document.removeEventListener("touchstart", listener);
10284
+ };
10285
+ }, [ref, handler]);
10286
+ }
10287
+ useOnClickOutside(internalRef, function () {
10288
+ return setIsOpen(false);
10289
+ });
10290
+ // Merge internal ref with the ref passed through the chakra function.
10291
+ var mergedRefs = useMergeRefs(internalRef, ref);
10292
+ var isChecked = function isChecked(multiSelectId, itemId) {
10293
+ if (selectedItems[multiSelectId]) {
10294
+ return !!selectedItems[multiSelectId].items.find(function (selectedItemId) {
10295
+ return selectedItemId === itemId;
10296
+ });
10297
+ }
10298
+ return false;
10299
+ };
10300
+ // isAllChecked defines the isChecked status of parent checkboxes. If all child items are selected, it will turn true, otherwise it returns false.
10301
+ // This prop is only passed to parent options.
10302
+ var isAllChecked = function isAllChecked(multiSelectId, item) {
10303
+ var childIds = item.children.map(function (childItem) {
10304
+ return childItem.id;
10305
+ });
10306
+ if (selectedItems[multiSelectId] !== undefined) {
10307
+ return childIds.every(function (childItem) {
10308
+ return selectedItems[multiSelectId].items.includes(childItem);
10309
+ });
10310
+ }
10311
+ return false;
10312
+ };
10313
+ // isInteterminate will return true if some child items of the parent item are selected. This prop is only passed to parent options.
10314
+ var isIndeterminate = function isIndeterminate(multiSelectId, item) {
10315
+ var childIds = item.children.map(function (childItem) {
10316
+ return childItem.id;
10317
+ });
10318
+ if (selectedItems[multiSelectId] !== undefined && childIds.some(function (childItem) {
10319
+ return selectedItems[multiSelectId].items.includes(childItem);
10320
+ })) {
10321
+ return !isAllChecked(multiSelectId, item);
10322
+ }
10323
+ return false;
10324
+ };
10325
+ return React__default.createElement(Box, Object.assign({
10326
+ id: id,
10327
+ ref: mergedRefs,
10328
+ __css: styles
10329
+ }, rest), React__default.createElement(FocusLock, {
10330
+ isDisabled: !isOpen
10331
+ }, React__default.createElement(MultiSelectMenuButton$1, {
10332
+ id: "ms-" + id + "-menu-button",
10333
+ multiSelectId: id,
10334
+ multiSelectLabel: label,
10335
+ isOpen: isOpen,
10336
+ selectedItems: selectedItems,
10337
+ onMenuToggle: function onMenuToggle() {
10338
+ setIsOpen(!isOpen);
10339
+ },
10340
+ onClear: onClear
10341
+ }), React__default.createElement(Box, Object.assign({
10342
+ role: "dialog",
10343
+ __css: styles.menuContainer
10344
+ }, isOpen && {
10345
+ "aria-modal": true
10346
+ }, {
10347
+ "aria-labelledby": "ms-" + id + "-menu-button"
10348
+ }), React__default.createElement(UnorderedList, {
10349
+ styleType: "none",
10350
+ marginInlineStart: "0",
10351
+ __css: styles.menu
10352
+ }, isOpen && items.map(function (item) {
10353
+ return React__default.createElement(ListItem, {
10354
+ key: item.id,
10355
+ py: "xxs"
10356
+ }, item.children ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Checkbox, Object.assign({
10357
+ id: item.id,
10358
+ labelText: item.name,
10359
+ name: item.name
10360
+ }, onMixedStateChange !== undefined ? {
10361
+ isChecked: isAllChecked(id, item),
10362
+ isIndeterminate: isIndeterminate(id, item),
10363
+ onChange: onMixedStateChange
10364
+ } : {
10365
+ isChecked: isChecked(id, item.id),
10366
+ onChange: onChange
10367
+ })), React__default.createElement(UnorderedList, {
10368
+ styleType: "none",
10369
+ marginInlineStart: "0",
10370
+ __css: styles.menuChildren
10371
+ }, item.children.map(function (childItem) {
10372
+ return React__default.createElement(ListItem, {
10373
+ key: childItem.id,
10374
+ py: "xxs"
10375
+ }, React__default.createElement(Checkbox, {
10376
+ id: childItem.id,
10377
+ labelText: childItem.name,
10378
+ name: childItem.name,
10379
+ isChecked: isChecked(id, childItem.id),
10380
+ onChange: onChange
10381
+ }));
10382
+ }))) : React__default.createElement(Checkbox, {
10383
+ id: item.id,
10384
+ labelText: item.name,
10385
+ name: item.name,
10386
+ isChecked: isChecked(id, item.id),
10387
+ onChange: onChange
10388
+ }));
10389
+ })), isOpen && isLargerThanMobile && React__default.createElement(ButtonGroup, {
10390
+ __css: styles.actionButtons
10391
+ }, React__default.createElement(Button, {
10392
+ id: "ms-" + id + "-clear",
10393
+ buttonType: "link",
10394
+ type: "button",
10395
+ onClick: onClear
10396
+ }, "Clear"), React__default.createElement(Button, {
10397
+ id: "ms-" + id + "-apply",
10398
+ buttonType: "primary",
10399
+ type: "button",
10400
+ onClick: function onClick() {
10401
+ // Close the multiselect on apply.
10402
+ setIsOpen(false);
10403
+ // Run the onApply prop function.
10404
+ onApply();
10405
+ }
10406
+ }, "Apply")))));
10407
+ }),
10408
+ // Pass all custom props to Chakra and override, for width prop.
10409
+ {
10410
+ shouldForwardProp: function shouldForwardProp() {
10411
+ return true;
10412
+ }
10413
+ });
10414
+
10415
+ var _excluded$1i = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "variant", "width"];
10416
+ /**
10417
+ * The `MultiSelect` component is a form input element that presents a list
10418
+ * of `Checkbox` components from which a user can make one or multiple
10419
+ * selections. Two variants of the MultiSelect component are offered, each with
10420
+ * slightly different functionality and requirements. Because of these
10421
+ * differences, the two variants are broken out in separate stories below.
10422
+ */
10423
+ var MultiSelect$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
10424
+ var id = props.id,
10425
+ _props$isBlockElement = props.isBlockElement,
10426
+ isBlockElement = _props$isBlockElement === void 0 ? false : _props$isBlockElement,
10427
+ _props$isDefaultOpen = props.isDefaultOpen,
10428
+ isDefaultOpen = _props$isDefaultOpen === void 0 ? false : _props$isDefaultOpen,
10429
+ items = props.items,
10430
+ label = props.label,
10431
+ onApply = props.onApply,
10432
+ onChange = props.onChange,
10433
+ onClear = props.onClear,
10434
+ onMixedStateChange = props.onMixedStateChange,
10435
+ selectedItems = props.selectedItems,
10436
+ variant = props.variant,
10437
+ _props$width = props.width,
10438
+ width = _props$width === void 0 ? "default" : _props$width,
10439
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1i);
10440
+ var commonProps = {
10441
+ id: id,
10442
+ isBlockElement: isBlockElement,
10443
+ isDefaultOpen: isDefaultOpen,
10444
+ items: items,
10445
+ label: label,
10446
+ onClear: onClear,
10447
+ selectedItems: selectedItems,
10448
+ variant: variant,
10449
+ width: width
10450
+ };
10451
+ if (variant === "listbox") {
10452
+ var listboxOnChange = onChange;
10453
+ return React__default.createElement(MultiSelectListbox, Object.assign({}, commonProps, {
10454
+ ref: ref,
10455
+ onChange: listboxOnChange
10456
+ }, rest));
10457
+ }
10458
+ if (variant === "dialog") {
10459
+ var dialogOnChange = onChange;
10460
+ return React__default.createElement(MultiSelectDialog, Object.assign({}, commonProps, {
10461
+ onChange: dialogOnChange,
10462
+ onMixedStateChange: onMixedStateChange,
10463
+ onApply: onApply,
10464
+ ref: ref
10465
+ }, rest));
10466
+ }
10467
+ return null;
10468
+ }),
10469
+ // Pass all custom props to Chakra and override, for width prop.
10470
+ {
10471
+ shouldForwardProp: function shouldForwardProp() {
10472
+ return true;
10473
+ }
10474
+ });
10475
+
10476
+ var _excluded$1j = ["children", "className", "id", "labelText", "layout", "multiSelectWidth", "showLabel"];
10477
+ /**
10478
+ * `MultiSelectGroup` is a wrapper component specific for `MultiSelect` components. The wrapped `MutliSelect` components can be displayed in a
10479
+ * column or in a row. The `MultiSelectGroup` component renders all the necessary
10480
+ * wrapping and associated text elements, but the child elements
10481
+ * _need_ to be `MultiSelect` components from the NYPL Design System.
10482
+ */
10483
+ var MultiSelectGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
10484
+ var children = props.children,
10485
+ _props$className = props.className,
10486
+ className = _props$className === void 0 ? "" : _props$className,
10487
+ id = props.id,
10488
+ labelText = props.labelText,
10489
+ _props$layout = props.layout,
10490
+ layout = _props$layout === void 0 ? "row" : _props$layout,
10491
+ _props$multiSelectWid = props.multiSelectWidth,
10492
+ multiSelectWidth = _props$multiSelectWid === void 0 ? "default" : _props$multiSelectWid,
10493
+ _props$showLabel = props.showLabel,
10494
+ showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
10495
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1j);
10496
+ var newChildren = [];
10497
+ var _useNYPLBreakpoints = useNYPLBreakpoints(),
10498
+ isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
10499
+ var finalLayout = isLargerThanMobile ? layout : "column";
10500
+ var finallWidth = isLargerThanMobile ? multiSelectWidth : "full";
10501
+ var isBlockElement = layout === "column" ? true : false;
10502
+ var styles = useMultiStyleConfig("MultiSelectGroup", {
10503
+ width: finallWidth
10504
+ });
10505
+ // Go through the MultiSelect children and update props as needed.
10506
+ React__default.Children.map(children, function (child) {
10507
+ if (React__default.isValidElement(child)) {
10508
+ // @TODO: DXP needs to pass custom MultiSelects that wrap DS Mutliselects - type check deos not allow DXP to use MultiSelectGroup
10509
+ // if (child.type !== MultiSelect) {
10510
+ // console.warn(
10511
+ // "NYPL Reservoir MultiSelectGroup: Only MultiSelect components can be children of MultiSelectGroup."
10512
+ // );
10513
+ // return;
10514
+ // }
10515
+ if (child.type === MultiSelect$1) {
10516
+ var _props = {
10517
+ isBlockElement: isBlockElement,
10518
+ width: multiSelectWidth
10519
+ };
10520
+ newChildren.push(React__default.cloneElement(child, _props));
10521
+ } else {
10522
+ newChildren.push(React__default.cloneElement(child));
10523
+ }
10524
+ }
10525
+ });
10526
+ return React__default.createElement(Fieldset, Object.assign({
10527
+ id: id + "-multiselect-group",
10528
+ legendText: labelText,
10529
+ isLegendHidden: !showLabel,
10530
+ __css: styles
10531
+ }, rest), React__default.createElement(Stack, {
10532
+ "aria-label": !showLabel ? labelText : undefined,
10533
+ className: className,
10534
+ columnGap: "xs",
10535
+ "data-testid": "multi-select-group",
10536
+ direction: finalLayout,
10537
+ id: id,
10538
+ ref: ref,
10539
+ rowGap: finalLayout === "row" ? "xs" : "0",
10540
+ spacing: isLargerThanMobile ? "xs" : "0",
10541
+ wrap: layout === "row" ? "wrap" : null,
10542
+ sx: {
10543
+ "> div": {
10544
+ _notFirst: {
10545
+ mx: "0"
10546
+ }
10547
+ }
10548
+ }
10549
+ }, newChildren));
10550
+ }));
10551
+
10552
+ var _excluded$1k = ["children", "id", "isOpen", "headingText", "layout", "onClear", "onSubmit", "onToggle", "onOpen", "onClose", "selectedItems", "showClearAll", "showSubmitAll", "filterWidth"];
10553
+ /**
10554
+ * `FilterBar` is a wrapper component for filter components.
10555
+ * The DS considers the following components as filter components:
10556
+ * - `MultiSelectGroup`
10557
+ *
10558
+ * The wrapped components/ component groups can be displayed in a column or
10559
+ * in a row layout. `FilterBar` can render additional `Clear All` and a `Apply Filters` buttons. The two
10560
+ * _optional_ buttons are controlled by the `showClearAll`/ `onClear` or `showSubmitAll`/`onSubmit` props repectively.
10561
+ */
10562
+ var FilterBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
10563
+ var children = props.children,
10564
+ id = props.id,
10565
+ isOpen = props.isOpen,
10566
+ headingText = props.headingText,
10567
+ _props$layout = props.layout,
10568
+ layout = _props$layout === void 0 ? "row" : _props$layout,
10569
+ onClear = props.onClear,
10570
+ onSubmit = props.onSubmit,
10571
+ onToggle = props.onToggle,
10572
+ onOpen = props.onOpen,
10573
+ _onClose = props.onClose,
10574
+ selectedItems = props.selectedItems,
10575
+ _props$showClearAll = props.showClearAll,
10576
+ showClearAll = _props$showClearAll === void 0 ? false : _props$showClearAll,
10577
+ _props$showSubmitAll = props.showSubmitAll,
10578
+ showSubmitAll = _props$showSubmitAll === void 0 ? false : _props$showSubmitAll,
10579
+ filterWidth = props.filterWidth,
10580
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1k);
10581
+ var _useNYPLBreapoints = useNYPLBreakpoints(),
10582
+ isLargerThanMedium = _useNYPLBreapoints.isLargerThanMedium;
10583
+ var finalLayout = isLargerThanMedium ? layout : "column";
10584
+ var finalWidth = isLargerThanMedium ? filterWidth ? filterWidth : finalLayout === "column" ? "full" : "default" : "full";
10585
+ var styles = useMultiStyleConfig("FilterBar", {
10586
+ layout: finalLayout,
10587
+ width: finalWidth
10588
+ });
10589
+ var getSelectedItemsCount = function getSelectedItemsCount() {
10590
+ return Object.entries(selectedItems).length ? "(" + Object.entries(selectedItems).length + ")" : "";
10591
+ };
10592
+ // Warning when onSubmit is passed but the showSubmitAll is missing
10593
+ if (onSubmit && showSubmitAll === false) {
10594
+ console.warn("NYPL Reservoir FilterBar: The `onSubmit` handler was set, but the `Apply Filters` button is not visible.");
10595
+ }
10596
+ // Warning when showSubmitAll is passed but onSubmit is missing
10597
+ if (onSubmit === undefined && showSubmitAll === true) {
10598
+ console.warn("NYPL Reservoir FilterBar: The `Apply Filters` button is rendering but no onSubmit function was passed.");
10599
+ }
10600
+ var newChildren = [];
10601
+ // Go through the FilterBar children and update props as needed.
10602
+ React__default.Children.map(children, function (child) {
10603
+ if (React__default.isValidElement(child)) {
10604
+ if (child.type === MultiSelectGroup) {
10605
+ var _props = {
10606
+ layout: finalLayout,
10607
+ multiSelectWidth: finalWidth
10608
+ };
10609
+ newChildren.push(React__default.cloneElement(child, _props));
10610
+ } else if (child.type === MultiSelect$1) {
10611
+ var _props2 = {
10612
+ isBlockElement: finalLayout === "column",
10613
+ width: finalWidth
10614
+ };
10615
+ newChildren.push(React__default.cloneElement(child, _props2));
10616
+ } else {
10617
+ console.warn("NYPL Reservoir FilterBar: Invalid child component was passed", child);
10618
+ return;
10619
+ }
10620
+ }
10621
+ });
10622
+ return React__default.createElement(Box, Object.assign({
10623
+ id: "filter-bar-" + id,
10624
+ __css: styles,
10625
+ ref: ref
10626
+ }, rest), isLargerThanMedium ? React__default.createElement(React__default.Fragment, null, headingText && React__default.createElement(Heading, {
10627
+ text: headingText,
10628
+ level: "two",
10629
+ size: "tertiary"
10630
+ }), React__default.createElement(Stack, {
10631
+ alignItems: layout === "row" ? "flex-end" : null,
10632
+ columnGap: "l",
10633
+ direction: layout,
10634
+ rowGap: "s",
10635
+ spacing: "0",
10636
+ wrap: layout === "row" ? "wrap" : null,
10637
+ sx: {
10638
+ "> div": {
10639
+ _notFirst: {
10640
+ mx: "0"
10641
+ }
10642
+ }
10643
+ }
10644
+ }, newChildren && newChildren.map(function (newChild, i) {
10645
+ return React__default.createElement(Box, {
10646
+ key: "filter-bar-child-" + i
10647
+ }, newChild);
10648
+ }), (showSubmitAll || showClearAll) && React__default.createElement(ButtonGroup, {
10649
+ layout: finalLayout,
10650
+ __css: styles.globalButtonGroup,
10651
+ buttonWidth: layout === "column" ? "full" : "default"
10652
+ }, showSubmitAll && React__default.createElement(Button, {
10653
+ buttonType: "primary",
10654
+ id: id + "-submit-all-button",
10655
+ onClick: onSubmit
10656
+ }, "Apply Filters"), showClearAll && React__default.createElement(Button, {
10657
+ buttonType: "text",
10658
+ id: id + "-clear-all-button",
10659
+ onClick: onClear,
10660
+ textAlign: "center"
10661
+ }, "Clear Filters")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, {
10662
+ id: "filter-bar-" + id + "-show-filters",
10663
+ buttonType: "secondary",
10664
+ onClick: function onClick() {
10665
+ onToggle === undefined ? onOpen() : onToggle();
10666
+ }
10667
+ }, "Show Filter " + getSelectedItemsCount()), React__default.createElement(Modal, {
10668
+ isOpen: isOpen,
10669
+ onClose: function onClose() {
10670
+ onToggle === undefined ? _onClose() : onToggle();
10671
+ },
10672
+ size: "full",
10673
+ scrollBehavior: "inside"
10674
+ }, React__default.createElement(ModalOverlay, null), React__default.createElement(ModalContent, null, React__default.createElement(ModalHeader, {
10675
+ sx: styles.modalHeader
10676
+ }, "Filter Criteria"), React__default.createElement(ModalCloseButton, {
10677
+ sx: styles.modalCloseButton
10678
+ }), React__default.createElement(ModalBody, null, newChildren), React__default.createElement(ModalFooter, {
10679
+ sx: styles.modalFooter
10680
+ }, React__default.createElement(ButtonGroup, {
10681
+ layout: "row",
10682
+ buttonWidth: "full"
10683
+ }, React__default.createElement(Button, {
10684
+ id: "filter-bar-" + id + "-see-results",
10685
+ type: "submit",
10686
+ onClick: function onClick() {
10687
+ onSubmit();
10688
+ onToggle === undefined ? _onClose() : onToggle();
10689
+ }
10690
+ }, "Show Results"), React__default.createElement(Button, {
10691
+ id: "filter-bar-" + id + "-clear",
10692
+ buttonType: "text",
10693
+ type: "reset",
10694
+ textAlign: "center",
10695
+ onClick: onClear
10696
+ }, "Clear Filters")))))));
10697
+ }));
10698
+
10699
+ var _excluded$1l = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
10700
+ /**
10701
+ * A component that renders list item `li` elements or description item `dt`
10702
+ * and `dd` elements based on the `type` prop. Note that the `title` prop will
10703
+ * only display for the `Description` list type.
10704
+ */
10705
+ var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
10706
+ var children = props.children,
10707
+ className = props.className,
10708
+ id = props.id,
10709
+ _props$inline = props.inline,
10710
+ inline = _props$inline === void 0 ? false : _props$inline,
10711
+ listItems = props.listItems,
10712
+ _props$noStyling = props.noStyling,
10713
+ noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
10714
+ title = props.title,
10715
+ _props$type = props.type,
10716
+ type = _props$type === void 0 ? "ul" : _props$type,
10717
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1l);
10718
+ var styles = useStyleConfig("List", {
10719
+ inline: inline,
10720
+ noStyling: noStyling,
10721
+ variant: type
10722
+ });
10723
+ var listElement = null;
10724
+ // Either li/dt/dd children elements must be passed or the `listItems`
10725
+ // prop must be used.
10726
+ if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
10727
+ console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
10728
+ return null;
10729
+ }
10730
+ if (!children && !listItems) {
10731
+ console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
10732
+ return null;
10733
+ }
10734
+ /**
10735
+ * This returns either the `children` elements passed to the `List` component
10736
+ * first, otherwise it will check and render the data passed into the
10737
+ * `listItems` props based on the `ListType` type. If it is of type unordered
10738
+ * or ordered, it will return `li` elements. Otherwise, it will return a
10739
+ * combination of `dt` and `dd` elements for the description type.
10740
+ */
10741
+ var listChildrenElms = function listChildrenElms(listType) {
10742
+ if (children) {
10743
+ return children;
10744
+ }
10745
+ if (!listItems) {
10746
+ return null;
10747
+ }
10748
+ if (listType === "ol" || listType === "ul") {
10749
+ return listItems.map(function (item, i) {
10750
+ return React__default.createElement("li", {
10751
+ key: i
10752
+ }, item);
10753
+ });
10754
+ } else if (listType === "dl") {
10755
+ return listItems.map(function (item, i) {
10756
+ return [React__default.createElement("dt", {
10757
+ key: i + "-term"
10758
+ }, item.term), React__default.createElement("dd", {
10759
+ key: i + "-des"
10760
+ }, item.description)];
10761
+ });
10762
+ }
10763
+ return null;
10764
+ };
10765
+ /**
10766
+ * Checks for `dt` and `dd` elements and consoles a warning if the
10767
+ * children are different HTML elements.
10768
+ */
10769
+ var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
10770
+ React__default.Children.map(children, function (child) {
9807
10771
  if (child.type !== "dt" && child.type !== "dd" && child.type !== React__default.Fragment && child.props.mdxType !== "dt" && child.props.mdxType !== "dd" && child.props.mdxType !== React__default.Fragment) {
9808
10772
  console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
9809
10773
  }
@@ -9852,14 +10816,14 @@ var checkListChildrenError = function checkListChildrenError(children, listType,
9852
10816
  };
9853
10817
 
9854
10818
  var _path$L, _path2$f, _path3$7;
9855
- var _excluded$1g = ["title", "titleId"];
10819
+ var _excluded$1m = ["title", "titleId"];
9856
10820
  function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
9857
10821
  function _objectWithoutProperties$Q(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$R(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9858
10822
  function _objectWithoutPropertiesLoose$R(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9859
10823
  var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
9860
10824
  var title = _ref.title,
9861
10825
  titleId = _ref.titleId,
9862
- props = _objectWithoutProperties$Q(_ref, _excluded$1g);
10826
+ props = _objectWithoutProperties$Q(_ref, _excluded$1m);
9863
10827
  return /*#__PURE__*/createElement("svg", _extends$R({
9864
10828
  viewBox: "0 0 200 67",
9865
10829
  fill: "none",
@@ -9880,14 +10844,14 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
9880
10844
  };
9881
10845
 
9882
10846
  var _path$M, _path2$g, _path3$8;
9883
- var _excluded$1h = ["title", "titleId"];
10847
+ var _excluded$1n = ["title", "titleId"];
9884
10848
  function _extends$S() { _extends$S = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$S.apply(this, arguments); }
9885
10849
  function _objectWithoutProperties$R(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$S(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9886
10850
  function _objectWithoutPropertiesLoose$S(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9887
10851
  var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
9888
10852
  var title = _ref.title,
9889
10853
  titleId = _ref.titleId,
9890
- props = _objectWithoutProperties$R(_ref, _excluded$1h);
10854
+ props = _objectWithoutProperties$R(_ref, _excluded$1n);
9891
10855
  return /*#__PURE__*/createElement("svg", _extends$S({
9892
10856
  viewBox: "0 0 200 67",
9893
10857
  fill: "none",
@@ -9908,14 +10872,14 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
9908
10872
  };
9909
10873
 
9910
10874
  var _path$N, _path2$h, _path3$9;
9911
- var _excluded$1i = ["title", "titleId"];
10875
+ var _excluded$1o = ["title", "titleId"];
9912
10876
  function _extends$T() { _extends$T = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$T.apply(this, arguments); }
9913
10877
  function _objectWithoutProperties$S(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$T(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9914
10878
  function _objectWithoutPropertiesLoose$T(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9915
10879
  var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
9916
10880
  var title = _ref.title,
9917
10881
  titleId = _ref.titleId,
9918
- props = _objectWithoutProperties$S(_ref, _excluded$1i);
10882
+ props = _objectWithoutProperties$S(_ref, _excluded$1o);
9919
10883
  return /*#__PURE__*/createElement("svg", _extends$T({
9920
10884
  viewBox: "0 0 328 120",
9921
10885
  xmlns: "http://www.w3.org/2000/svg",
@@ -9932,14 +10896,14 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
9932
10896
  };
9933
10897
 
9934
10898
  var _path$O, _path2$i, _path3$a;
9935
- var _excluded$1j = ["title", "titleId"];
10899
+ var _excluded$1p = ["title", "titleId"];
9936
10900
  function _extends$U() { _extends$U = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$U.apply(this, arguments); }
9937
10901
  function _objectWithoutProperties$T(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$U(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9938
10902
  function _objectWithoutPropertiesLoose$U(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9939
10903
  var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
9940
10904
  var title = _ref.title,
9941
10905
  titleId = _ref.titleId,
9942
- props = _objectWithoutProperties$T(_ref, _excluded$1j);
10906
+ props = _objectWithoutProperties$T(_ref, _excluded$1p);
9943
10907
  return /*#__PURE__*/createElement("svg", _extends$U({
9944
10908
  viewBox: "0 0 328 120",
9945
10909
  fill: "#fff",
@@ -9957,14 +10921,14 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
9957
10921
  };
9958
10922
 
9959
10923
  var _rect$2, _path$P;
9960
- var _excluded$1k = ["title", "titleId"];
10924
+ var _excluded$1q = ["title", "titleId"];
9961
10925
  function _extends$V() { _extends$V = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$V.apply(this, arguments); }
9962
10926
  function _objectWithoutProperties$U(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$V(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9963
10927
  function _objectWithoutPropertiesLoose$V(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9964
10928
  var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
9965
10929
  var title = _ref.title,
9966
10930
  titleId = _ref.titleId,
9967
- props = _objectWithoutProperties$U(_ref, _excluded$1k);
10931
+ props = _objectWithoutProperties$U(_ref, _excluded$1q);
9968
10932
  return /*#__PURE__*/createElement("svg", _extends$V({
9969
10933
  viewBox: "0 0 118 119",
9970
10934
  fill: "none",
@@ -9987,14 +10951,14 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
9987
10951
  };
9988
10952
 
9989
10953
  var _path$Q;
9990
- var _excluded$1l = ["title", "titleId"];
10954
+ var _excluded$1r = ["title", "titleId"];
9991
10955
  function _extends$W() { _extends$W = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$W.apply(this, arguments); }
9992
10956
  function _objectWithoutProperties$V(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$W(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9993
10957
  function _objectWithoutPropertiesLoose$W(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9994
10958
  var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
9995
10959
  var title = _ref.title,
9996
10960
  titleId = _ref.titleId,
9997
- props = _objectWithoutProperties$V(_ref, _excluded$1l);
10961
+ props = _objectWithoutProperties$V(_ref, _excluded$1r);
9998
10962
  return /*#__PURE__*/createElement("svg", _extends$W({
9999
10963
  viewBox: "0 0 312 88",
10000
10964
  fill: "#436CF2",
@@ -10010,14 +10974,14 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
10010
10974
  };
10011
10975
 
10012
10976
  var _path$R;
10013
- var _excluded$1m = ["title", "titleId"];
10977
+ var _excluded$1s = ["title", "titleId"];
10014
10978
  function _extends$X() { _extends$X = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$X.apply(this, arguments); }
10015
10979
  function _objectWithoutProperties$W(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$X(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10016
10980
  function _objectWithoutPropertiesLoose$X(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10017
10981
  var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
10018
10982
  var title = _ref.title,
10019
10983
  titleId = _ref.titleId,
10020
- props = _objectWithoutProperties$W(_ref, _excluded$1m);
10984
+ props = _objectWithoutProperties$W(_ref, _excluded$1s);
10021
10985
  return /*#__PURE__*/createElement("svg", _extends$X({
10022
10986
  viewBox: "0 0 312 88",
10023
10987
  fill: "#fff",
@@ -10033,14 +10997,14 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
10033
10997
  };
10034
10998
 
10035
10999
  var _path$S, _path2$j, _path3$b, _path4$1, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13;
10036
- var _excluded$1n = ["title", "titleId"];
11000
+ var _excluded$1t = ["title", "titleId"];
10037
11001
  function _extends$Y() { _extends$Y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Y.apply(this, arguments); }
10038
11002
  function _objectWithoutProperties$X(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$Y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10039
11003
  function _objectWithoutPropertiesLoose$Y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10040
11004
  var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
10041
11005
  var title = _ref.title,
10042
11006
  titleId = _ref.titleId,
10043
- props = _objectWithoutProperties$X(_ref, _excluded$1n);
11007
+ props = _objectWithoutProperties$X(_ref, _excluded$1t);
10044
11008
  return /*#__PURE__*/createElement("svg", _extends$Y({
10045
11009
  viewBox: "0 0 172 152",
10046
11010
  fill: "none",
@@ -10091,14 +11055,14 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
10091
11055
  };
10092
11056
 
10093
11057
  var _g$3;
10094
- var _excluded$1o = ["title", "titleId"];
11058
+ var _excluded$1u = ["title", "titleId"];
10095
11059
  function _extends$Z() { _extends$Z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Z.apply(this, arguments); }
10096
11060
  function _objectWithoutProperties$Y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$Z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10097
11061
  function _objectWithoutPropertiesLoose$Z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10098
11062
  var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref) {
10099
11063
  var title = _ref.title,
10100
11064
  titleId = _ref.titleId,
10101
- props = _objectWithoutProperties$Y(_ref, _excluded$1o);
11065
+ props = _objectWithoutProperties$Y(_ref, _excluded$1u);
10102
11066
  return /*#__PURE__*/createElement("svg", _extends$Z({
10103
11067
  viewBox: "0 0 170 150",
10104
11068
  fill: "none",
@@ -10154,14 +11118,14 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
10154
11118
  };
10155
11119
 
10156
11120
  var _g$4, _defs;
10157
- var _excluded$1p = ["title", "titleId"];
11121
+ var _excluded$1v = ["title", "titleId"];
10158
11122
  function _extends$_() { _extends$_ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$_.apply(this, arguments); }
10159
11123
  function _objectWithoutProperties$Z(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$_(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10160
11124
  function _objectWithoutPropertiesLoose$_(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10161
11125
  var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
10162
11126
  var title = _ref.title,
10163
11127
  titleId = _ref.titleId,
10164
- props = _objectWithoutProperties$Z(_ref, _excluded$1p);
11128
+ props = _objectWithoutProperties$Z(_ref, _excluded$1v);
10165
11129
  return /*#__PURE__*/createElement("svg", _extends$_({
10166
11130
  viewBox: "0 0 200 60",
10167
11131
  fill: "none",
@@ -10294,14 +11258,14 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
10294
11258
  };
10295
11259
 
10296
11260
  var _path$T, _path2$k;
10297
- var _excluded$1q = ["title", "titleId"];
11261
+ var _excluded$1w = ["title", "titleId"];
10298
11262
  function _extends$$() { _extends$$ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$$.apply(this, arguments); }
10299
11263
  function _objectWithoutProperties$_(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$$(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10300
11264
  function _objectWithoutPropertiesLoose$$(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10301
11265
  var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
10302
11266
  var title = _ref.title,
10303
11267
  titleId = _ref.titleId,
10304
- props = _objectWithoutProperties$_(_ref, _excluded$1q);
11268
+ props = _objectWithoutProperties$_(_ref, _excluded$1w);
10305
11269
  return /*#__PURE__*/createElement("svg", _extends$$({
10306
11270
  viewBox: "0 0 186 74",
10307
11271
  fill: "none",
@@ -10319,14 +11283,14 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
10319
11283
  };
10320
11284
 
10321
11285
  var _path$U;
10322
- var _excluded$1r = ["title", "titleId"];
11286
+ var _excluded$1x = ["title", "titleId"];
10323
11287
  function _extends$10() { _extends$10 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$10.apply(this, arguments); }
10324
11288
  function _objectWithoutProperties$$(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$10(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10325
11289
  function _objectWithoutPropertiesLoose$10(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10326
11290
  var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
10327
11291
  var title = _ref.title,
10328
11292
  titleId = _ref.titleId,
10329
- props = _objectWithoutProperties$$(_ref, _excluded$1r);
11293
+ props = _objectWithoutProperties$$(_ref, _excluded$1x);
10330
11294
  return /*#__PURE__*/createElement("svg", _extends$10({
10331
11295
  viewBox: "0 0 186 74",
10332
11296
  xmlns: "http://www.w3.org/2000/svg",
@@ -10339,14 +11303,14 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
10339
11303
  };
10340
11304
 
10341
11305
  var _path$V;
10342
- var _excluded$1s = ["title", "titleId"];
11306
+ var _excluded$1y = ["title", "titleId"];
10343
11307
  function _extends$11() { _extends$11 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$11.apply(this, arguments); }
10344
11308
  function _objectWithoutProperties$10(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$11(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10345
11309
  function _objectWithoutPropertiesLoose$11(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10346
11310
  var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
10347
11311
  var title = _ref.title,
10348
11312
  titleId = _ref.titleId,
10349
- props = _objectWithoutProperties$10(_ref, _excluded$1s);
11313
+ props = _objectWithoutProperties$10(_ref, _excluded$1y);
10350
11314
  return /*#__PURE__*/createElement("svg", _extends$11({
10351
11315
  viewBox: "0 0 186 74",
10352
11316
  fill: "#fff",
@@ -10360,14 +11324,14 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
10360
11324
  };
10361
11325
 
10362
11326
  var _g$5;
10363
- var _excluded$1t = ["title", "titleId"];
11327
+ var _excluded$1z = ["title", "titleId"];
10364
11328
  function _extends$12() { _extends$12 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$12.apply(this, arguments); }
10365
11329
  function _objectWithoutProperties$11(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$12(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10366
11330
  function _objectWithoutPropertiesLoose$12(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10367
11331
  var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
10368
11332
  var title = _ref.title,
10369
11333
  titleId = _ref.titleId,
10370
- props = _objectWithoutProperties$11(_ref, _excluded$1t);
11334
+ props = _objectWithoutProperties$11(_ref, _excluded$1z);
10371
11335
  return /*#__PURE__*/createElement("svg", _extends$12({
10372
11336
  viewBox: "0 0 300 71",
10373
11337
  xmlns: "http://www.w3.org/2000/svg",
@@ -10382,14 +11346,14 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
10382
11346
  };
10383
11347
 
10384
11348
  var _g$6;
10385
- var _excluded$1u = ["title", "titleId"];
11349
+ var _excluded$1A = ["title", "titleId"];
10386
11350
  function _extends$13() { _extends$13 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$13.apply(this, arguments); }
10387
11351
  function _objectWithoutProperties$12(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$13(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10388
11352
  function _objectWithoutPropertiesLoose$13(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10389
11353
  var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
10390
11354
  var title = _ref.title,
10391
11355
  titleId = _ref.titleId,
10392
- props = _objectWithoutProperties$12(_ref, _excluded$1u);
11356
+ props = _objectWithoutProperties$12(_ref, _excluded$1A);
10393
11357
  return /*#__PURE__*/createElement("svg", _extends$13({
10394
11358
  viewBox: "0 0 300 71",
10395
11359
  fill: "#C60917",
@@ -10405,14 +11369,14 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
10405
11369
  };
10406
11370
 
10407
11371
  var _g$7;
10408
- var _excluded$1v = ["title", "titleId"];
11372
+ var _excluded$1B = ["title", "titleId"];
10409
11373
  function _extends$14() { _extends$14 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$14.apply(this, arguments); }
10410
11374
  function _objectWithoutProperties$13(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$14(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10411
11375
  function _objectWithoutPropertiesLoose$14(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10412
11376
  var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
10413
11377
  var title = _ref.title,
10414
11378
  titleId = _ref.titleId,
10415
- props = _objectWithoutProperties$13(_ref, _excluded$1v);
11379
+ props = _objectWithoutProperties$13(_ref, _excluded$1B);
10416
11380
  return /*#__PURE__*/createElement("svg", _extends$14({
10417
11381
  viewBox: "0 0 300 71",
10418
11382
  fill: "#fff",
@@ -10428,14 +11392,14 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
10428
11392
  };
10429
11393
 
10430
11394
  var _g$8, _defs$1;
10431
- var _excluded$1w = ["title", "titleId"];
11395
+ var _excluded$1C = ["title", "titleId"];
10432
11396
  function _extends$15() { _extends$15 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$15.apply(this, arguments); }
10433
11397
  function _objectWithoutProperties$14(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$15(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10434
11398
  function _objectWithoutPropertiesLoose$15(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10435
11399
  var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
10436
11400
  var title = _ref.title,
10437
11401
  titleId = _ref.titleId,
10438
- props = _objectWithoutProperties$14(_ref, _excluded$1w);
11402
+ props = _objectWithoutProperties$14(_ref, _excluded$1C);
10439
11403
  return /*#__PURE__*/createElement("svg", _extends$15({
10440
11404
  viewBox: "0 0 341 61",
10441
11405
  fill: "none",
@@ -10468,14 +11432,14 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
10468
11432
  })))));
10469
11433
  };
10470
11434
 
10471
- var _excluded$1x = ["title", "titleId"];
11435
+ var _excluded$1D = ["title", "titleId"];
10472
11436
  function _extends$16() { _extends$16 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$16.apply(this, arguments); }
10473
11437
  function _objectWithoutProperties$15(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$16(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10474
11438
  function _objectWithoutPropertiesLoose$16(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10475
11439
  var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
10476
11440
  var title = _ref.title,
10477
11441
  titleId = _ref.titleId,
10478
- props = _objectWithoutProperties$15(_ref, _excluded$1x);
11442
+ props = _objectWithoutProperties$15(_ref, _excluded$1D);
10479
11443
  return /*#__PURE__*/createElement("svg", _extends$16({
10480
11444
  xmlns: "http://www.w3.org/2000/svg",
10481
11445
  viewBox: "0 0 966.787 543.733",
@@ -10550,14 +11514,14 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
10550
11514
  };
10551
11515
 
10552
11516
  var _g$9, _defs$2;
10553
- var _excluded$1y = ["title", "titleId"];
11517
+ var _excluded$1E = ["title", "titleId"];
10554
11518
  function _extends$17() { _extends$17 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$17.apply(this, arguments); }
10555
11519
  function _objectWithoutProperties$16(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$17(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10556
11520
  function _objectWithoutPropertiesLoose$17(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10557
11521
  var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
10558
11522
  var title = _ref.title,
10559
11523
  titleId = _ref.titleId,
10560
- props = _objectWithoutProperties$16(_ref, _excluded$1y);
11524
+ props = _objectWithoutProperties$16(_ref, _excluded$1E);
10561
11525
  return /*#__PURE__*/createElement("svg", _extends$17({
10562
11526
  viewBox: "0 0 967 568",
10563
11527
  fill: "none",
@@ -10585,14 +11549,14 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
10585
11549
  };
10586
11550
 
10587
11551
  var _path$W, _path2$l, _path3$c;
10588
- var _excluded$1z = ["title", "titleId"];
11552
+ var _excluded$1F = ["title", "titleId"];
10589
11553
  function _extends$18() { _extends$18 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$18.apply(this, arguments); }
10590
11554
  function _objectWithoutProperties$17(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$18(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10591
11555
  function _objectWithoutPropertiesLoose$18(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10592
11556
  var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
10593
11557
  var title = _ref.title,
10594
11558
  titleId = _ref.titleId,
10595
- props = _objectWithoutProperties$17(_ref, _excluded$1z);
11559
+ props = _objectWithoutProperties$17(_ref, _excluded$1F);
10596
11560
  return /*#__PURE__*/createElement("svg", _extends$18({
10597
11561
  viewBox: "0 0 136 135",
10598
11562
  fill: "none",
@@ -10615,14 +11579,14 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
10615
11579
  };
10616
11580
 
10617
11581
  var _path$X;
10618
- var _excluded$1A = ["title", "titleId"];
11582
+ var _excluded$1G = ["title", "titleId"];
10619
11583
  function _extends$19() { _extends$19 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$19.apply(this, arguments); }
10620
11584
  function _objectWithoutProperties$18(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$19(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10621
11585
  function _objectWithoutPropertiesLoose$19(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10622
11586
  var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
10623
11587
  var title = _ref.title,
10624
11588
  titleId = _ref.titleId,
10625
- props = _objectWithoutProperties$18(_ref, _excluded$1A);
11589
+ props = _objectWithoutProperties$18(_ref, _excluded$1G);
10626
11590
  return /*#__PURE__*/createElement("svg", _extends$19({
10627
11591
  viewBox: "0 0 125 126",
10628
11592
  fill: "none",
@@ -10639,14 +11603,14 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
10639
11603
  };
10640
11604
 
10641
11605
  var _path$Y, _path2$m, _path3$d, _path4$2, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1, _path12$1, _path13$1, _path14, _path15;
10642
- var _excluded$1B = ["title", "titleId"];
11606
+ var _excluded$1H = ["title", "titleId"];
10643
11607
  function _extends$1a() { _extends$1a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1a.apply(this, arguments); }
10644
11608
  function _objectWithoutProperties$19(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10645
11609
  function _objectWithoutPropertiesLoose$1a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10646
11610
  var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
10647
11611
  var title = _ref.title,
10648
11612
  titleId = _ref.titleId,
10649
- props = _objectWithoutProperties$19(_ref, _excluded$1B);
11613
+ props = _objectWithoutProperties$19(_ref, _excluded$1H);
10650
11614
  return /*#__PURE__*/createElement("svg", _extends$1a({
10651
11615
  viewBox: "0 0 201 165",
10652
11616
  fill: "none",
@@ -10717,14 +11681,14 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
10717
11681
  };
10718
11682
 
10719
11683
  var _path$Z, _path2$n, _path3$e, _path4$3, _path5$2, _path6$2, _path7$2, _path8$2, _path9$2, _path10$2, _path11$2, _path12$2, _path13$2, _path14$1, _path15$1;
10720
- var _excluded$1C = ["title", "titleId"];
11684
+ var _excluded$1I = ["title", "titleId"];
10721
11685
  function _extends$1b() { _extends$1b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1b.apply(this, arguments); }
10722
11686
  function _objectWithoutProperties$1a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10723
11687
  function _objectWithoutPropertiesLoose$1b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10724
11688
  var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
10725
11689
  var title = _ref.title,
10726
11690
  titleId = _ref.titleId,
10727
- props = _objectWithoutProperties$1a(_ref, _excluded$1C);
11691
+ props = _objectWithoutProperties$1a(_ref, _excluded$1I);
10728
11692
  return /*#__PURE__*/createElement("svg", _extends$1b({
10729
11693
  viewBox: "0 0 201 165",
10730
11694
  fill: "none",
@@ -10795,14 +11759,14 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
10795
11759
  };
10796
11760
 
10797
11761
  var _g$a, _defs$3;
10798
- var _excluded$1D = ["title", "titleId"];
11762
+ var _excluded$1J = ["title", "titleId"];
10799
11763
  function _extends$1c() { _extends$1c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1c.apply(this, arguments); }
10800
11764
  function _objectWithoutProperties$1b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10801
11765
  function _objectWithoutPropertiesLoose$1c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10802
11766
  var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
10803
11767
  var title = _ref.title,
10804
11768
  titleId = _ref.titleId,
10805
- props = _objectWithoutProperties$1b(_ref, _excluded$1D);
11769
+ props = _objectWithoutProperties$1b(_ref, _excluded$1J);
10806
11770
  return /*#__PURE__*/createElement("svg", _extends$1c({
10807
11771
  viewBox: "0 0 152 139",
10808
11772
  fill: "none",
@@ -10850,14 +11814,14 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
10850
11814
  };
10851
11815
 
10852
11816
  var _g$b, _defs$4;
10853
- var _excluded$1E = ["title", "titleId"];
11817
+ var _excluded$1K = ["title", "titleId"];
10854
11818
  function _extends$1d() { _extends$1d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1d.apply(this, arguments); }
10855
11819
  function _objectWithoutProperties$1c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10856
11820
  function _objectWithoutPropertiesLoose$1d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10857
11821
  var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
10858
11822
  var title = _ref.title,
10859
11823
  titleId = _ref.titleId,
10860
- props = _objectWithoutProperties$1c(_ref, _excluded$1E);
11824
+ props = _objectWithoutProperties$1c(_ref, _excluded$1K);
10861
11825
  return /*#__PURE__*/createElement("svg", _extends$1d({
10862
11826
  viewBox: "0 0 155 139",
10863
11827
  fill: "none",
@@ -10928,14 +11892,14 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
10928
11892
  };
10929
11893
 
10930
11894
  var _g$c, _defs$5;
10931
- var _excluded$1F = ["title", "titleId"];
11895
+ var _excluded$1L = ["title", "titleId"];
10932
11896
  function _extends$1e() { _extends$1e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1e.apply(this, arguments); }
10933
11897
  function _objectWithoutProperties$1d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10934
11898
  function _objectWithoutPropertiesLoose$1e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10935
11899
  var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_ref) {
10936
11900
  var title = _ref.title,
10937
11901
  titleId = _ref.titleId,
10938
- props = _objectWithoutProperties$1d(_ref, _excluded$1F);
11902
+ props = _objectWithoutProperties$1d(_ref, _excluded$1L);
10939
11903
  return /*#__PURE__*/createElement("svg", _extends$1e({
10940
11904
  viewBox: "0 0 152 139",
10941
11905
  fill: "none",
@@ -10983,14 +11947,14 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
10983
11947
  };
10984
11948
 
10985
11949
  var _g$d, _defs$6;
10986
- var _excluded$1G = ["title", "titleId"];
11950
+ var _excluded$1M = ["title", "titleId"];
10987
11951
  function _extends$1f() { _extends$1f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1f.apply(this, arguments); }
10988
11952
  function _objectWithoutProperties$1e(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10989
11953
  function _objectWithoutPropertiesLoose$1f(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10990
11954
  var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegative(_ref) {
10991
11955
  var title = _ref.title,
10992
11956
  titleId = _ref.titleId,
10993
- props = _objectWithoutProperties$1e(_ref, _excluded$1G);
11957
+ props = _objectWithoutProperties$1e(_ref, _excluded$1M);
10994
11958
  return /*#__PURE__*/createElement("svg", _extends$1f({
10995
11959
  viewBox: "0 0 155 139",
10996
11960
  fill: "none",
@@ -11064,14 +12028,14 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
11064
12028
  };
11065
12029
 
11066
12030
  var _path$_;
11067
- var _excluded$1H = ["title", "titleId"];
12031
+ var _excluded$1N = ["title", "titleId"];
11068
12032
  function _extends$1g() { _extends$1g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1g.apply(this, arguments); }
11069
12033
  function _objectWithoutProperties$1f(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11070
12034
  function _objectWithoutPropertiesLoose$1g(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11071
12035
  var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
11072
12036
  var title = _ref.title,
11073
12037
  titleId = _ref.titleId,
11074
- props = _objectWithoutProperties$1f(_ref, _excluded$1H);
12038
+ props = _objectWithoutProperties$1f(_ref, _excluded$1N);
11075
12039
  return /*#__PURE__*/createElement("svg", _extends$1g({
11076
12040
  viewBox: "0 0 250 134",
11077
12041
  xmlns: "http://www.w3.org/2000/svg",
@@ -11084,14 +12048,14 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
11084
12048
  };
11085
12049
 
11086
12050
  var _path$$;
11087
- var _excluded$1I = ["title", "titleId"];
12051
+ var _excluded$1O = ["title", "titleId"];
11088
12052
  function _extends$1h() { _extends$1h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1h.apply(this, arguments); }
11089
12053
  function _objectWithoutProperties$1g(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1h(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11090
12054
  function _objectWithoutPropertiesLoose$1h(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11091
12055
  var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
11092
12056
  var title = _ref.title,
11093
12057
  titleId = _ref.titleId,
11094
- props = _objectWithoutProperties$1g(_ref, _excluded$1I);
12058
+ props = _objectWithoutProperties$1g(_ref, _excluded$1O);
11095
12059
  return /*#__PURE__*/createElement("svg", _extends$1h({
11096
12060
  viewBox: "0 0 250 134",
11097
12061
  fill: "#fff",
@@ -11105,14 +12069,14 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
11105
12069
  };
11106
12070
 
11107
12071
  var _path$10, _path2$o, _path3$f, _path4$4, _path5$3;
11108
- var _excluded$1J = ["title", "titleId"];
12072
+ var _excluded$1P = ["title", "titleId"];
11109
12073
  function _extends$1i() { _extends$1i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1i.apply(this, arguments); }
11110
12074
  function _objectWithoutProperties$1h(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1i(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11111
12075
  function _objectWithoutPropertiesLoose$1i(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11112
12076
  var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
11113
12077
  var title = _ref.title,
11114
12078
  titleId = _ref.titleId,
11115
- props = _objectWithoutProperties$1h(_ref, _excluded$1J);
12079
+ props = _objectWithoutProperties$1h(_ref, _excluded$1P);
11116
12080
  return /*#__PURE__*/createElement("svg", _extends$1i({
11117
12081
  viewBox: "0 0 320 43",
11118
12082
  xmlns: "http://www.w3.org/2000/svg",
@@ -11141,14 +12105,14 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
11141
12105
  };
11142
12106
 
11143
12107
  var _g$e, _defs$7;
11144
- var _excluded$1K = ["title", "titleId"];
12108
+ var _excluded$1Q = ["title", "titleId"];
11145
12109
  function _extends$1j() { _extends$1j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1j.apply(this, arguments); }
11146
12110
  function _objectWithoutProperties$1i(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1j(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11147
12111
  function _objectWithoutPropertiesLoose$1j(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11148
12112
  var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
11149
12113
  var title = _ref.title,
11150
12114
  titleId = _ref.titleId,
11151
- props = _objectWithoutProperties$1i(_ref, _excluded$1K);
12115
+ props = _objectWithoutProperties$1i(_ref, _excluded$1Q);
11152
12116
  return /*#__PURE__*/createElement("svg", _extends$1j({
11153
12117
  viewBox: "0 0 355 48",
11154
12118
  fill: "none",
@@ -11196,14 +12160,14 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
11196
12160
  };
11197
12161
 
11198
12162
  var _path$11, _path2$p, _path3$g, _path4$5, _path5$4;
11199
- var _excluded$1L = ["title", "titleId"];
12163
+ var _excluded$1R = ["title", "titleId"];
11200
12164
  function _extends$1k() { _extends$1k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1k.apply(this, arguments); }
11201
12165
  function _objectWithoutProperties$1j(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1k(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11202
12166
  function _objectWithoutPropertiesLoose$1k(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11203
12167
  var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
11204
12168
  var title = _ref.title,
11205
12169
  titleId = _ref.titleId,
11206
- props = _objectWithoutProperties$1j(_ref, _excluded$1L);
12170
+ props = _objectWithoutProperties$1j(_ref, _excluded$1R);
11207
12171
  return /*#__PURE__*/createElement("svg", _extends$1k({
11208
12172
  viewBox: "0 0 320 43",
11209
12173
  fill: "#fff",
@@ -11233,14 +12197,14 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
11233
12197
  };
11234
12198
 
11235
12199
  var _path$12, _path2$q, _path3$h, _path4$6, _path5$5;
11236
- var _excluded$1M = ["title", "titleId"];
12200
+ var _excluded$1S = ["title", "titleId"];
11237
12201
  function _extends$1l() { _extends$1l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1l.apply(this, arguments); }
11238
12202
  function _objectWithoutProperties$1k(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1l(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11239
12203
  function _objectWithoutPropertiesLoose$1l(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11240
12204
  var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
11241
12205
  var title = _ref.title,
11242
12206
  titleId = _ref.titleId,
11243
- props = _objectWithoutProperties$1k(_ref, _excluded$1M);
12207
+ props = _objectWithoutProperties$1k(_ref, _excluded$1S);
11244
12208
  return /*#__PURE__*/createElement("svg", _extends$1l({
11245
12209
  viewBox: "0 0 105 129",
11246
12210
  fill: "none",
@@ -11267,14 +12231,14 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
11267
12231
  };
11268
12232
 
11269
12233
  var _g$f;
11270
- var _excluded$1N = ["title", "titleId"];
12234
+ var _excluded$1T = ["title", "titleId"];
11271
12235
  function _extends$1m() { _extends$1m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1m.apply(this, arguments); }
11272
12236
  function _objectWithoutProperties$1l(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1m(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11273
12237
  function _objectWithoutPropertiesLoose$1m(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11274
12238
  var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref) {
11275
12239
  var title = _ref.title,
11276
12240
  titleId = _ref.titleId,
11277
- props = _objectWithoutProperties$1l(_ref, _excluded$1N);
12241
+ props = _objectWithoutProperties$1l(_ref, _excluded$1T);
11278
12242
  return /*#__PURE__*/createElement("svg", _extends$1m({
11279
12243
  viewBox: "0 0 234 261",
11280
12244
  fill: "none",
@@ -11300,14 +12264,14 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
11300
12264
  };
11301
12265
 
11302
12266
  var _path$13, _path2$r, _path3$i, _path4$7, _path5$6;
11303
- var _excluded$1O = ["title", "titleId"];
12267
+ var _excluded$1U = ["title", "titleId"];
11304
12268
  function _extends$1n() { _extends$1n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1n.apply(this, arguments); }
11305
12269
  function _objectWithoutProperties$1m(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1n(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11306
12270
  function _objectWithoutPropertiesLoose$1n(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11307
12271
  var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
11308
12272
  var title = _ref.title,
11309
12273
  titleId = _ref.titleId,
11310
- props = _objectWithoutProperties$1m(_ref, _excluded$1O);
12274
+ props = _objectWithoutProperties$1m(_ref, _excluded$1U);
11311
12275
  return /*#__PURE__*/createElement("svg", _extends$1n({
11312
12276
  viewBox: "0 0 185 79",
11313
12277
  xmlns: "http://www.w3.org/2000/svg",
@@ -11328,14 +12292,14 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
11328
12292
  };
11329
12293
 
11330
12294
  var _path$14, _path2$s, _path3$j, _path4$8, _path5$7;
11331
- var _excluded$1P = ["title", "titleId"];
12295
+ var _excluded$1V = ["title", "titleId"];
11332
12296
  function _extends$1o() { _extends$1o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
11333
12297
  function _objectWithoutProperties$1n(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1o(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11334
12298
  function _objectWithoutPropertiesLoose$1o(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11335
12299
  var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
11336
12300
  var title = _ref.title,
11337
12301
  titleId = _ref.titleId,
11338
- props = _objectWithoutProperties$1n(_ref, _excluded$1P);
12302
+ props = _objectWithoutProperties$1n(_ref, _excluded$1V);
11339
12303
  return /*#__PURE__*/createElement("svg", _extends$1o({
11340
12304
  viewBox: "0 0 67 67",
11341
12305
  xmlns: "http://www.w3.org/2000/svg",
@@ -11356,14 +12320,14 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
11356
12320
  };
11357
12321
 
11358
12322
  var _path$15, _path2$t, _path3$k, _path4$9, _path5$8;
11359
- var _excluded$1Q = ["title", "titleId"];
12323
+ var _excluded$1W = ["title", "titleId"];
11360
12324
  function _extends$1p() { _extends$1p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1p.apply(this, arguments); }
11361
12325
  function _objectWithoutProperties$1o(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1p(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11362
12326
  function _objectWithoutPropertiesLoose$1p(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11363
12327
  var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
11364
12328
  var title = _ref.title,
11365
12329
  titleId = _ref.titleId,
11366
- props = _objectWithoutProperties$1o(_ref, _excluded$1Q);
12330
+ props = _objectWithoutProperties$1o(_ref, _excluded$1W);
11367
12331
  return /*#__PURE__*/createElement("svg", _extends$1p({
11368
12332
  viewBox: "0 0 67 67",
11369
12333
  fill: "none",
@@ -11390,14 +12354,14 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
11390
12354
  };
11391
12355
 
11392
12356
  var _path$16, _path2$u, _path3$l, _path4$a, _path5$9;
11393
- var _excluded$1R = ["title", "titleId"];
12357
+ var _excluded$1X = ["title", "titleId"];
11394
12358
  function _extends$1q() { _extends$1q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1q.apply(this, arguments); }
11395
12359
  function _objectWithoutProperties$1p(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1q(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11396
12360
  function _objectWithoutPropertiesLoose$1q(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11397
12361
  var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
11398
12362
  var title = _ref.title,
11399
12363
  titleId = _ref.titleId,
11400
- props = _objectWithoutProperties$1p(_ref, _excluded$1R);
12364
+ props = _objectWithoutProperties$1p(_ref, _excluded$1X);
11401
12365
  return /*#__PURE__*/createElement("svg", _extends$1q({
11402
12366
  viewBox: "0 0 67 67",
11403
12367
  fill: "#fff",
@@ -11419,14 +12383,14 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
11419
12383
  };
11420
12384
 
11421
12385
  var _path$17, _path2$v, _path3$m, _path4$b, _path5$a, _path6$3, _path7$3;
11422
- var _excluded$1S = ["title", "titleId"];
12386
+ var _excluded$1Y = ["title", "titleId"];
11423
12387
  function _extends$1r() { _extends$1r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1r.apply(this, arguments); }
11424
12388
  function _objectWithoutProperties$1q(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1r(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11425
12389
  function _objectWithoutPropertiesLoose$1r(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11426
12390
  var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
11427
12391
  var title = _ref.title,
11428
12392
  titleId = _ref.titleId,
11429
- props = _objectWithoutProperties$1q(_ref, _excluded$1S);
12393
+ props = _objectWithoutProperties$1q(_ref, _excluded$1Y);
11430
12394
  return /*#__PURE__*/createElement("svg", _extends$1r({
11431
12395
  viewBox: "0 0 185 79",
11432
12396
  fill: "none",
@@ -11459,14 +12423,14 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
11459
12423
  };
11460
12424
 
11461
12425
  var _path$18, _path2$w, _path3$n, _path4$c, _path5$b;
11462
- var _excluded$1T = ["title", "titleId"];
12426
+ var _excluded$1Z = ["title", "titleId"];
11463
12427
  function _extends$1s() { _extends$1s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1s.apply(this, arguments); }
11464
12428
  function _objectWithoutProperties$1r(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1s(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11465
12429
  function _objectWithoutPropertiesLoose$1s(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11466
12430
  var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
11467
12431
  var title = _ref.title,
11468
12432
  titleId = _ref.titleId,
11469
- props = _objectWithoutProperties$1r(_ref, _excluded$1T);
12433
+ props = _objectWithoutProperties$1r(_ref, _excluded$1Z);
11470
12434
  return /*#__PURE__*/createElement("svg", _extends$1s({
11471
12435
  viewBox: "0 0 185 79",
11472
12436
  fill: "#fff",
@@ -11488,14 +12452,14 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
11488
12452
  };
11489
12453
 
11490
12454
  var _g$g, _defs$8;
11491
- var _excluded$1U = ["title", "titleId"];
12455
+ var _excluded$1_ = ["title", "titleId"];
11492
12456
  function _extends$1t() { _extends$1t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1t.apply(this, arguments); }
11493
12457
  function _objectWithoutProperties$1s(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1t(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11494
12458
  function _objectWithoutPropertiesLoose$1t(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11495
12459
  var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
11496
12460
  var title = _ref.title,
11497
12461
  titleId = _ref.titleId,
11498
- props = _objectWithoutProperties$1s(_ref, _excluded$1U);
12462
+ props = _objectWithoutProperties$1s(_ref, _excluded$1_);
11499
12463
  return /*#__PURE__*/createElement("svg", _extends$1t({
11500
12464
  viewBox: "0 0 512 148",
11501
12465
  xmlns: "http://www.w3.org/2000/svg",
@@ -11520,14 +12484,14 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
11520
12484
  };
11521
12485
 
11522
12486
  var _g$h, _defs$9;
11523
- var _excluded$1V = ["title", "titleId"];
12487
+ var _excluded$1$ = ["title", "titleId"];
11524
12488
  function _extends$1u() { _extends$1u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1u.apply(this, arguments); }
11525
12489
  function _objectWithoutProperties$1t(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1u(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11526
12490
  function _objectWithoutPropertiesLoose$1u(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11527
12491
  var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
11528
12492
  var title = _ref.title,
11529
12493
  titleId = _ref.titleId,
11530
- props = _objectWithoutProperties$1t(_ref, _excluded$1V);
12494
+ props = _objectWithoutProperties$1t(_ref, _excluded$1$);
11531
12495
  return /*#__PURE__*/createElement("svg", _extends$1u({
11532
12496
  viewBox: "0 0 512 148",
11533
12497
  fill: "#fff",
@@ -11552,14 +12516,14 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
11552
12516
  };
11553
12517
 
11554
12518
  var _g$i, _defs$a;
11555
- var _excluded$1W = ["title", "titleId"];
12519
+ var _excluded$20 = ["title", "titleId"];
11556
12520
  function _extends$1v() { _extends$1v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1v.apply(this, arguments); }
11557
12521
  function _objectWithoutProperties$1u(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1v(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11558
12522
  function _objectWithoutPropertiesLoose$1v(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11559
12523
  var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
11560
12524
  var title = _ref.title,
11561
12525
  titleId = _ref.titleId,
11562
- props = _objectWithoutProperties$1u(_ref, _excluded$1W);
12526
+ props = _objectWithoutProperties$1u(_ref, _excluded$20);
11563
12527
  return /*#__PURE__*/createElement("svg", _extends$1v({
11564
12528
  viewBox: "0 0 682 196",
11565
12529
  fill: "none",
@@ -11591,14 +12555,14 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
11591
12555
  };
11592
12556
 
11593
12557
  var _path$19;
11594
- var _excluded$1X = ["title", "titleId"];
12558
+ var _excluded$21 = ["title", "titleId"];
11595
12559
  function _extends$1w() { _extends$1w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1w.apply(this, arguments); }
11596
12560
  function _objectWithoutProperties$1v(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1w(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11597
12561
  function _objectWithoutPropertiesLoose$1w(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11598
12562
  var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
11599
12563
  var title = _ref.title,
11600
12564
  titleId = _ref.titleId,
11601
- props = _objectWithoutProperties$1v(_ref, _excluded$1X);
12565
+ props = _objectWithoutProperties$1v(_ref, _excluded$21);
11602
12566
  return /*#__PURE__*/createElement("svg", _extends$1w({
11603
12567
  viewBox: "0 0 84 111",
11604
12568
  xmlns: "http://www.w3.org/2000/svg",
@@ -11611,14 +12575,14 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
11611
12575
  };
11612
12576
 
11613
12577
  var _path$1a;
11614
- var _excluded$1Y = ["title", "titleId"];
12578
+ var _excluded$22 = ["title", "titleId"];
11615
12579
  function _extends$1x() { _extends$1x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1x.apply(this, arguments); }
11616
12580
  function _objectWithoutProperties$1w(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1x(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11617
12581
  function _objectWithoutPropertiesLoose$1x(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11618
12582
  var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
11619
12583
  var title = _ref.title,
11620
12584
  titleId = _ref.titleId,
11621
- props = _objectWithoutProperties$1w(_ref, _excluded$1Y);
12585
+ props = _objectWithoutProperties$1w(_ref, _excluded$22);
11622
12586
  return /*#__PURE__*/createElement("svg", _extends$1x({
11623
12587
  viewBox: "0 0 84 111",
11624
12588
  fill: "#fff",
@@ -11632,14 +12596,14 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
11632
12596
  };
11633
12597
 
11634
12598
  var _path$1b, _path2$x, _path3$o, _path4$d, _path5$c, _path6$4, _path7$4, _path8$3, _path9$3, _path10$3, _path11$3, _path12$3, _path13$3, _path14$2, _path15$2, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55;
11635
- var _excluded$1Z = ["title", "titleId"];
12599
+ var _excluded$23 = ["title", "titleId"];
11636
12600
  function _extends$1y() { _extends$1y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y.apply(this, arguments); }
11637
12601
  function _objectWithoutProperties$1x(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11638
12602
  function _objectWithoutPropertiesLoose$1y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11639
12603
  var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
11640
12604
  var title = _ref.title,
11641
12605
  titleId = _ref.titleId,
11642
- props = _objectWithoutProperties$1x(_ref, _excluded$1Z);
12606
+ props = _objectWithoutProperties$1x(_ref, _excluded$23);
11643
12607
  return /*#__PURE__*/createElement("svg", _extends$1y({
11644
12608
  viewBox: "0 0 324 265",
11645
12609
  fill: "none",
@@ -11816,14 +12780,14 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
11816
12780
  };
11817
12781
 
11818
12782
  var _path$1c, _path2$y, _path3$p, _path4$e, _path5$d, _path6$5, _path7$5, _path8$4, _path9$4, _path10$4, _path11$4, _path12$4, _path13$4, _path14$3, _path15$3, _path16$1, _path17$1, _path18$1, _path19$1, _path20$1, _path21$1, _path22$1, _path23$1, _path24$1, _path25$1, _path26$1, _path27$1, _path28$1, _path29$1, _path30$1, _path31$1, _path32$1, _path33$1, _path34$1, _path35$1, _path36$1, _path37$1, _path38$1, _path39$1, _path40$1, _path41$1, _path42$1, _path43$1, _path44$1, _path45$1, _path46$1, _path47$1, _path48$1, _path49$1, _path50$1, _path51$1, _path52$1, _path53$1, _path54$1, _path55$1;
11819
- var _excluded$1_ = ["title", "titleId"];
12783
+ var _excluded$24 = ["title", "titleId"];
11820
12784
  function _extends$1z() { _extends$1z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1z.apply(this, arguments); }
11821
12785
  function _objectWithoutProperties$1y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11822
12786
  function _objectWithoutPropertiesLoose$1z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11823
12787
  var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref) {
11824
12788
  var title = _ref.title,
11825
12789
  titleId = _ref.titleId,
11826
- props = _objectWithoutProperties$1y(_ref, _excluded$1_);
12790
+ props = _objectWithoutProperties$1y(_ref, _excluded$24);
11827
12791
  return /*#__PURE__*/createElement("svg", _extends$1z({
11828
12792
  viewBox: "0 0 327 266",
11829
12793
  fill: "none",
@@ -12050,7 +13014,7 @@ var logoSvgs = {
12050
13014
  treasuresColorNegative: SvgLogoTreasuresColorNegative
12051
13015
  };
12052
13016
 
12053
- var _excluded$1$ = ["children", "className", "decorative", "id", "name", "size", "title"];
13017
+ var _excluded$25 = ["children", "className", "decorative", "id", "name", "size", "title"];
12054
13018
  /**
12055
13019
  * The `Logo` component renders SVG-based logos and color variants that are
12056
13020
  * commonly used by the New York Public Library.
@@ -12067,7 +13031,7 @@ var Logo$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
12067
13031
  size = _props$size === void 0 ? "medium" : _props$size,
12068
13032
  _props$title = props.title,
12069
13033
  title = _props$title === void 0 ? name + " logo" : _props$title,
12070
- rest = _objectWithoutPropertiesLoose(props, _excluded$1$);
13034
+ rest = _objectWithoutPropertiesLoose(props, _excluded$25);
12071
13035
  var styles = useStyleConfig("Logo", {
12072
13036
  size: size
12073
13037
  });
@@ -12168,7 +13132,7 @@ var link$1 = {
12168
13132
  }]
12169
13133
  };
12170
13134
 
12171
- var _excluded$20 = ["className", "id"];
13135
+ var _excluded$26 = ["className", "id"];
12172
13136
  /**
12173
13137
  * This `Footer` component renders the NYPL-branded footer elements such
12174
13138
  * as navigational NYPL.org links, social media links, copyright, and
@@ -12178,7 +13142,7 @@ var Footer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref, ref)
12178
13142
  var className = _ref.className,
12179
13143
  _ref$id = _ref.id,
12180
13144
  id = _ref$id === void 0 ? "footer" : _ref$id,
12181
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$20);
13145
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$26);
12182
13146
  var styles = useMultiStyleConfig("Footer", {});
12183
13147
  var nyplLinks = link$1.nyplLinks.map(function (links, index) {
12184
13148
  return React__default.createElement(List$1, {
@@ -12247,11 +13211,11 @@ var Footer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref, ref)
12247
13211
  })));
12248
13212
  }));
12249
13213
 
12250
- var _excluded$21 = ["align", "className"];
13214
+ var _excluded$27 = ["align", "className"];
12251
13215
  var HorizontalRule$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
12252
13216
  var align = props.align,
12253
13217
  className = props.className,
12254
- rest = _objectWithoutPropertiesLoose(props, _excluded$21);
13218
+ rest = _objectWithoutPropertiesLoose(props, _excluded$27);
12255
13219
  var styles = useStyleConfig("HorizontalRule", {
12256
13220
  align: align
12257
13221
  });
@@ -12267,7 +13231,7 @@ var HorizontalRule$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
12267
13231
  }, rest));
12268
13232
  }));
12269
13233
 
12270
- var _excluded$22 = ["className", "id", "target"];
13234
+ var _excluded$28 = ["className", "id", "target"];
12271
13235
  /**
12272
13236
  * SkipNavigation is a component that is used to provide a navigational list of
12273
13237
  * links. The first link is used to skip to the main content of the page using
@@ -12279,7 +13243,7 @@ var SkipNavigation$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
12279
13243
  id = props.id,
12280
13244
  _props$target = props.target,
12281
13245
  target = _props$target === void 0 ? "#mainContent" : _props$target,
12282
- rest = _objectWithoutPropertiesLoose(props, _excluded$22);
13246
+ rest = _objectWithoutPropertiesLoose(props, _excluded$28);
12283
13247
  var styles = useStyleConfig("SkipNavigation");
12284
13248
  return React__default.createElement(Box, Object.assign({
12285
13249
  as: "nav",
@@ -13586,7 +14550,7 @@ var Header$1 = /*#__PURE__*/chakra(function (_ref) {
13586
14550
  }))));
13587
14551
  });
13588
14552
 
13589
- var _excluded$23 = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
14553
+ var _excluded$29 = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
13590
14554
  // Only used for internal purposes.
13591
14555
  var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
13592
14556
  var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
@@ -13602,7 +14566,7 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
13602
14566
  } : _props$imageProps,
13603
14567
  locationDetails = props.locationDetails,
13604
14568
  subHeaderText = props.subHeaderText,
13605
- rest = _objectWithoutPropertiesLoose(props, _excluded$23);
14569
+ rest = _objectWithoutPropertiesLoose(props, _excluded$29);
13606
14570
  var styles = useMultiStyleConfig("Hero", {
13607
14571
  variant: heroType
13608
14572
  });
@@ -13691,7 +14655,7 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
13691
14655
  }
13692
14656
  });
13693
14657
 
13694
- var _excluded$24 = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
14658
+ var _excluded$2a = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
13695
14659
  _excluded2$6 = ["buttonText", "id", "modalProps"],
13696
14660
  _excluded3$4 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
13697
14661
  var BaseModal = /*#__PURE__*/chakra(function (_ref) {
@@ -13702,7 +14666,7 @@ var BaseModal = /*#__PURE__*/chakra(function (_ref) {
13702
14666
  id = _ref.id,
13703
14667
  isOpen = _ref.isOpen,
13704
14668
  onClose = _ref.onClose,
13705
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$24);
14669
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2a);
13706
14670
  var xlarge = "xl";
13707
14671
  var fullSize = "full";
13708
14672
  var _useNYPLBreakpoints = useNYPLBreakpoints(),
@@ -13783,7 +14747,7 @@ function useModal() {
13783
14747
  };
13784
14748
  }
13785
14749
 
13786
- var _excluded$25 = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
14750
+ var _excluded$2b = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
13787
14751
  /**
13788
14752
  * A component that provides a navigational list of page items.
13789
14753
  */
@@ -13796,7 +14760,7 @@ var Pagination$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13796
14760
  initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
13797
14761
  onPageChange = props.onPageChange,
13798
14762
  pageCount = props.pageCount,
13799
- rest = _objectWithoutPropertiesLoose(props, _excluded$25);
14763
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
13800
14764
  var refCurrentPage = useRef(currentPage);
13801
14765
  var _useState = useState(initialPage),
13802
14766
  selectedPage = _useState[0],
@@ -13986,7 +14950,7 @@ var Pagination$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13986
14950
  }, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
13987
14951
  }));
13988
14952
 
13989
- var _excluded$26 = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
14953
+ var _excluded$2c = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
13990
14954
  /**
13991
14955
  * A component that displays a progress status for any task that takes a long
13992
14956
  * time to complete or consists of multiple steps. Examples include downloading,
@@ -14007,7 +14971,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14007
14971
  size = _props$size === void 0 ? "default" : _props$size,
14008
14972
  _props$value = props.value,
14009
14973
  value = _props$value === void 0 ? 0 : _props$value,
14010
- rest = _objectWithoutPropertiesLoose(props, _excluded$26);
14974
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
14011
14975
  var styles = useMultiStyleConfig("ProgressIndicator", {
14012
14976
  darkMode: darkMode,
14013
14977
  size: size
@@ -14066,7 +15030,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14066
15030
  }, rest), progressComponent(indicatorType));
14067
15031
  }));
14068
15032
 
14069
- var _excluded$27 = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
15033
+ var _excluded$2d = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
14070
15034
  /**
14071
15035
  * Component that renders Chakra's `Select` component along with an accessible
14072
15036
  * `Label` and optional `HelperErrorText` component.
@@ -14099,7 +15063,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
14099
15063
  showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
14100
15064
  _props$value = props.value,
14101
15065
  value = _props$value === void 0 ? "" : _props$value,
14102
- rest = _objectWithoutPropertiesLoose(props, _excluded$27);
15066
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
14103
15067
  var _useState = useState(0),
14104
15068
  labelWidth = _useState[0],
14105
15069
  setLabelWidth = _useState[1];
@@ -14181,7 +15145,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
14181
15145
  }), children)));
14182
15146
  }));
14183
15147
 
14184
- var _excluded$28 = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
15148
+ var _excluded$2e = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
14185
15149
  /**
14186
15150
  * Renders a wrapper `form` element to be used with `Select` (optional),
14187
15151
  * `Input`, and `Button` components together.
@@ -14209,7 +15173,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
14209
15173
  selectProps = props.selectProps,
14210
15174
  textInputElement = props.textInputElement,
14211
15175
  textInputProps = props.textInputProps,
14212
- rest = _objectWithoutPropertiesLoose(props, _excluded$28);
15176
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2e);
14213
15177
  var styles = useMultiStyleConfig("SearchBar", {});
14214
15178
  var stateProps = {
14215
15179
  helperText: "",
@@ -14301,7 +15265,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
14301
15265
  }, selectElem, textInputElem, buttonElem));
14302
15266
  }));
14303
15267
 
14304
- var _excluded$29 = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
15268
+ var _excluded$2f = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
14305
15269
  /**
14306
15270
  * The `SkeletonLoader` component renders a placeholder to be used while
14307
15271
  * dynamic content is loading.
@@ -14327,7 +15291,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
14327
15291
  _props$showImage = props.showImage,
14328
15292
  showImage = _props$showImage === void 0 ? true : _props$showImage,
14329
15293
  width = props.width,
14330
- rest = _objectWithoutPropertiesLoose(props, _excluded$29);
15294
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
14331
15295
  var styles = useMultiStyleConfig("SkeletonLoader", {
14332
15296
  isBordered: isBordered,
14333
15297
  imageAspectRatio: imageAspectRatio,
@@ -14385,7 +15349,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
14385
15349
  })))));
14386
15350
  }));
14387
15351
 
14388
- var _excluded$2a = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step", "value"];
15352
+ var _excluded$2g = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "onChangeEnd", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step", "value"];
14389
15353
  /**
14390
15354
  * The `Slider` component renders a singular value slider or a range slider
14391
15355
  * with a min and max value. The value(s) can be updated through the slider
@@ -14413,6 +15377,7 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14413
15377
  min = _props$min === void 0 ? 0 : _props$min,
14414
15378
  name = props.name,
14415
15379
  _onChange = props.onChange,
15380
+ _onChangeEnd = props.onChangeEnd,
14416
15381
  _props$showBoxes = props.showBoxes,
14417
15382
  showBoxes = _props$showBoxes === void 0 ? true : _props$showBoxes,
14418
15383
  _props$showHelperInva = props.showHelperInvalidText,
@@ -14426,10 +15391,13 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14426
15391
  _props$step = props.step,
14427
15392
  step = _props$step === void 0 ? 1 : _props$step,
14428
15393
  value = props.value,
14429
- rest = _objectWithoutPropertiesLoose(props, _excluded$2a);
15394
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2g);
14430
15395
  if (!id) {
14431
15396
  console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
14432
15397
  }
15398
+ if (_onChange && _onChangeEnd) {
15399
+ console.warn("NYPL Reservoir Slider: Both `onChange` and `onChangeEnd` props were passed.");
15400
+ }
14433
15401
  // For the RangeSlider, if the defaultValue is not an array, then we set
14434
15402
  // the defaultValue to an array with the min and max values.
14435
15403
  var rangeSliderDefault = typeof defaultValue === "number" ? [min, max] : defaultValue;
@@ -14480,6 +15448,10 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14480
15448
  setCurrentValue(val);
14481
15449
  _onChange && _onChange(val);
14482
15450
  },
15451
+ onChangeEnd: function onChangeEnd(val) {
15452
+ setCurrentValue(val);
15453
+ _onChangeEnd && _onChangeEnd(val);
15454
+ },
14483
15455
  step: step,
14484
15456
  // Additional margins so slider thumbs don't overflow past the
14485
15457
  // edge when the value boxes or min/max values are hidden.
@@ -14516,7 +15488,12 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14516
15488
  setCurrentValue(newValue);
14517
15489
  // If the text input was updated directly,
14518
15490
  // send the data back to the user.
14519
- _onChange && _onChange(newValue);
15491
+ if (_onChange) {
15492
+ _onChange && _onChange(newValue);
15493
+ }
15494
+ if (_onChangeEnd) {
15495
+ _onChangeEnd && _onChangeEnd(newValue);
15496
+ }
14520
15497
  }
14521
15498
  }, textInputSharedProps),
14522
15499
  end: _extends({
@@ -14538,7 +15515,12 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14538
15515
  setCurrentValue(newValue);
14539
15516
  // If the text input was updated directly,
14540
15517
  // send the data back to the user.
14541
- _onChange && _onChange(newValue);
15518
+ if (_onChange) {
15519
+ _onChange && _onChange(newValue);
15520
+ }
15521
+ if (_onChangeEnd) {
15522
+ _onChangeEnd && _onChangeEnd(newValue);
15523
+ }
14542
15524
  }
14543
15525
  }, textInputSharedProps)
14544
15526
  };
@@ -14617,7 +15599,7 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14617
15599
  }, max), showBoxes && getTextInput("end")));
14618
15600
  }));
14619
15601
 
14620
- var _excluded$2b = ["children", "className", "id", "level"];
15602
+ var _excluded$2h = ["children", "className", "id", "level"];
14621
15603
  /**
14622
15604
  * The `StatusBadge` component is used to display a visual badge for three
14623
15605
  * different status levels.
@@ -14628,7 +15610,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
14628
15610
  id = props.id,
14629
15611
  _props$level = props.level,
14630
15612
  level = _props$level === void 0 ? "low" : _props$level,
14631
- rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
15613
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2h);
14632
15614
  var styles = useStyleConfig("StatusBadge", {
14633
15615
  variant: level
14634
15616
  });
@@ -14643,7 +15625,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
14643
15625
  }, rest), children);
14644
15626
  }));
14645
15627
 
14646
- var _excluded$2c = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
15628
+ var _excluded$2i = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
14647
15629
  /**
14648
15630
  * Internal component used in the `StructuredContent` component
14649
15631
  * that renders the DS `Image` component.
@@ -14693,7 +15675,7 @@ var StructuredContent$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14693
15675
  src: ""
14694
15676
  } : _props$imageProps,
14695
15677
  bodyContent = props.bodyContent,
14696
- rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
15678
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2i);
14697
15679
  var hasImage = imageProps.src || imageProps.component;
14698
15680
  var hasFigureImage = imageProps.caption || imageProps.credit;
14699
15681
  var styles = useMultiStyleConfig("StructuredContent", {
@@ -14826,7 +15808,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
14826
15808
  };
14827
15809
  };
14828
15810
 
14829
- var _excluded$2d = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
15811
+ var _excluded$2j = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
14830
15812
  /**
14831
15813
  * An internal function used to update the hash in the URL.
14832
15814
  * This function is only used when `useHash` is `true`.
@@ -14928,7 +15910,7 @@ var Tabs = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
14928
15910
  tabsData = props.tabsData,
14929
15911
  _props$useHash = props.useHash,
14930
15912
  useHash = _props$useHash === void 0 ? false : _props$useHash,
14931
- rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
15913
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2j);
14932
15914
  var styles = useMultiStyleConfig("Tabs", {});
14933
15915
  // Just an estimate of the tab width for the mobile carousel.
14934
15916
  var initTabWidth = 65;
@@ -15008,13 +15990,13 @@ var Tabs = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
15008
15990
  }, React__default.createElement(Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
15009
15991
  }));
15010
15992
 
15011
- var _excluded$2e = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
15993
+ var _excluded$2k = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
15012
15994
  var Tooltip$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
15013
15995
  var children = props.children,
15014
15996
  content = props.content,
15015
15997
  isDisabled = props.isDisabled,
15016
15998
  shouldWrapChildren = props.shouldWrapChildren,
15017
- rest = _objectWithoutPropertiesLoose(props, _excluded$2e);
15999
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2k);
15018
16000
  if (typeof content !== "string" && typeof content !== "number") {
15019
16001
  React__default.Children.map(content, function (contentChild) {
15020
16002
  if (contentChild.type !== Icon || contentChild.type !== Image) {
@@ -15139,7 +16121,7 @@ var TagSetFilter$1 = /*#__PURE__*/chakra(function (props) {
15139
16121
  }, "Clear Filters") : null);
15140
16122
  });
15141
16123
 
15142
- var _excluded$2f = ["className", "id", "isDismissible", "onClick", "tagSetData", "type"];
16124
+ var _excluded$2l = ["className", "id", "isDismissible", "onClick", "tagSetData", "type"];
15143
16125
  // Type guard so we can make sure we have a "filter" `TagSet` variant.
15144
16126
  function isFilterType(type) {
15145
16127
  return type === "filter";
@@ -15183,7 +16165,7 @@ var TagSet$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15183
16165
  tagSetData = _props$tagSetData === void 0 ? [] : _props$tagSetData,
15184
16166
  _props$type = props.type,
15185
16167
  type = _props$type === void 0 ? "filter" : _props$type,
15186
- rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
16168
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2l);
15187
16169
  var styles = useStyleConfig("TagSet", {});
15188
16170
  if (!isFilterType(type)) {
15189
16171
  if (isDismissible) {
@@ -15211,7 +16193,7 @@ var TagSet$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15211
16193
  }));
15212
16194
  }));
15213
16195
 
15214
- var _excluded$2g = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
16196
+ var _excluded$2m = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
15215
16197
  /**
15216
16198
  * The main top-level parent component that wraps all template-related
15217
16199
  * components.
@@ -15434,7 +16416,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
15434
16416
  renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
15435
16417
  _props$renderSkipNavi = props.renderSkipNavigation,
15436
16418
  renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
15437
- rest = _objectWithoutPropertiesLoose(props, _excluded$2g);
16419
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2m);
15438
16420
  var aboveHeaderElem = aboveHeader && React__default.createElement(TemplateAboveHeader, null, aboveHeader);
15439
16421
  var contentTopElem = contentTop && React__default.createElement(TemplateContentTop, null, contentTop);
15440
16422
  var contentPrimaryElem = contentPrimary && React__default.createElement(TemplateContentPrimary$1, null, contentPrimary);
@@ -15452,7 +16434,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
15452
16434
  }, footer)));
15453
16435
  }));
15454
16436
 
15455
- var _excluded$2h = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
16437
+ var _excluded$2n = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
15456
16438
  var onChangeDefault = function onChangeDefault() {
15457
16439
  return;
15458
16440
  };
@@ -15478,7 +16460,7 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15478
16460
  onChange = _props$onChange === void 0 ? onChangeDefault : _props$onChange,
15479
16461
  _props$size = props.size,
15480
16462
  size = _props$size === void 0 ? "default" : _props$size,
15481
- rest = _objectWithoutPropertiesLoose(props, _excluded$2h);
16463
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2n);
15482
16464
  var styles = useMultiStyleConfig("Toggle", {
15483
16465
  isDisabled: isDisabled,
15484
16466
  size: size
@@ -15524,6 +16506,157 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15524
16506
  }), labelText)));
15525
16507
  }));
15526
16508
 
16509
+ /**
16510
+ * The useMultiSelect hook returns an object containing all the functions and state needed to handle the selectedItems of a `MultiSelect` component.
16511
+ * It can be used in conjunction with one single `MultiSelect` component as well as a group of `MultiSelect`s in the `MultiSelectGroup` component.
16512
+ * The returned object includes the functions onChange, onClear, onMixedStateChange for handling any changes to the selection of items
16513
+ * and the current state of the selection: selectedItems.
16514
+ */
16515
+ function useMultiSelect(initialState) {
16516
+ var _useState = useState(initialState !== undefined ? initialState : {}),
16517
+ selectedItems = _useState[0],
16518
+ _setSelectedItems = _useState[1];
16519
+ /**
16520
+ * handleChange is used for both MultiSelect variants. It handles the state for checkbox options that either have no child options or are child options themselves.
16521
+ * It accepts two arguments - the id of the checkbox option and the id of the MultiSelect component.
16522
+ */
16523
+ var handleChange = function handleChange(itemId, multiSelectId) {
16524
+ var _extends2;
16525
+ var itemIds;
16526
+ // Check if the multiSelect already exists in the state.
16527
+ if (selectedItems.hasOwnProperty(multiSelectId)) {
16528
+ // Make a copy of the existing selected items.
16529
+ itemIds = selectedItems[multiSelectId].items.slice();
16530
+ // If itemId is in the selectedItems, remove it from the array.
16531
+ if (selectedItems[multiSelectId].items.indexOf(itemId) > -1) {
16532
+ itemIds = itemIds.filter(function (id) {
16533
+ return id !== itemId;
16534
+ });
16535
+ } else {
16536
+ // Add it to the array, but modify the copy, not the original.
16537
+ itemIds.push(itemId);
16538
+ }
16539
+ // If there were no items from the multiSelect in the selectedItems before
16540
+ } else {
16541
+ // Add the itemId to the itemsIds
16542
+ itemIds = [];
16543
+ itemIds.push(itemId);
16544
+ }
16545
+ // Update selectedItems on state to reflect the new selection
16546
+ _setSelectedItems(_extends({}, selectedItems, (_extends2 = {}, _extends2[multiSelectId] = {
16547
+ items: itemIds
16548
+ }, _extends2)));
16549
+ };
16550
+ /**
16551
+ * handleMixedStateChange is used only for the "dialog" variant. It handles the state for checkbox options with child options.
16552
+ * It accepts three arguments - the id of the checkbox option (parentId), the id of the MultiSelect component and the items array of the MultiSelect.
16553
+ */
16554
+ var handleMixedStateChange = function handleMixedStateChange(parentId, multiSelectId, items) {
16555
+ var _extends3;
16556
+ // Build an array of child items.
16557
+ var childItems = items.filter(function (item) {
16558
+ return item.id === parentId;
16559
+ })[0].children.map(function (child) {
16560
+ return child.id;
16561
+ });
16562
+ var newItems;
16563
+ // If some items of the multiSelect are already selected
16564
+ if (selectedItems[multiSelectId] !== undefined) {
16565
+ // If all children of the parent are already selected
16566
+ if (childItems.every(function (childItem) {
16567
+ return selectedItems[multiSelectId].items.includes(childItem);
16568
+ })) {
16569
+ // Remove all children from the selectedItems array (unselect all child checkbox options)
16570
+ newItems = selectedItems[multiSelectId].items.filter(function (stateItem) {
16571
+ return !childItems.includes(stateItem);
16572
+ });
16573
+ } else {
16574
+ // Else add missing childItems.
16575
+ newItems = [].concat(childItems.filter(function (childItem) {
16576
+ return !selectedItems[multiSelectId].items.includes(childItem);
16577
+ }), selectedItems[multiSelectId].items);
16578
+ }
16579
+ // If no items of this multiSelect were selected before
16580
+ } else {
16581
+ newItems = childItems;
16582
+ }
16583
+ // Update selectedItems on state to reflect the new selection
16584
+ _setSelectedItems(_extends({}, selectedItems, (_extends3 = {}, _extends3[multiSelectId] = {
16585
+ items: newItems
16586
+ }, _extends3)));
16587
+ };
16588
+ /**
16589
+ * handleClear is used for both MultiSelect variants. It will remove all selected items of specific MultiSelect component from the selectedItems array.
16590
+ * It accepts one argument - the id of the MultiSelect component.
16591
+ */
16592
+ var handleClear = function handleClear(multiSelectId) {
16593
+ var newSelectedItems = {};
16594
+ for (var _i = 0, _Object$keys = Object.keys(selectedItems); _i < _Object$keys.length; _i++) {
16595
+ var key = _Object$keys[_i];
16596
+ if (key !== multiSelectId) {
16597
+ newSelectedItems[key] = selectedItems[key];
16598
+ }
16599
+ }
16600
+ _setSelectedItems(newSelectedItems);
16601
+ };
16602
+ /**
16603
+ * handleClearAll is used to clear all MultiSelects of a group. It will remove all selected items.
16604
+ */
16605
+ var handleClearAll = function handleClearAll() {
16606
+ return _setSelectedItems({});
16607
+ };
16608
+ return {
16609
+ selectedItems: selectedItems,
16610
+ setSelectedItems: function setSelectedItems(newState) {
16611
+ return _setSelectedItems(newState);
16612
+ },
16613
+ onChange: handleChange,
16614
+ onMixedStateChange: handleMixedStateChange,
16615
+ onClear: handleClear,
16616
+ onClearAll: handleClearAll
16617
+ };
16618
+ }
16619
+
16620
+ /**
16621
+ * The `useFilterBar` hook returns an object containing all the functions and state needed to control a FilterBar component and its child components.
16622
+ * The returned object includes the functions `onChange`, `onMixedStateChange`, `onClear` and `onClearAll` for handling any changes to the selectedItems object,
16623
+ * a `setSelectedItems` function that allows to set an initial selectedItems state
16624
+ * and the current state of the selection: `selectedItems`.
16625
+ * In addition it returns all props to handle a filter module overlay for the mobile view: a boolean value representing the current module state: `isModalOpen`,
16626
+ * an `onToggle` function to change the module state or alternatively `onOpen` and `onClose` functions.
16627
+ */
16628
+ function useFilterBar(initialState) {
16629
+ var _useState = useState(false),
16630
+ isModalOpen = _useState[0],
16631
+ setIsModalOpen = _useState[1];
16632
+ var _useMultiSelect = useMultiSelect(initialState),
16633
+ selectedItems = _useMultiSelect.selectedItems,
16634
+ setSelectedItems = _useMultiSelect.setSelectedItems,
16635
+ onChange = _useMultiSelect.onChange,
16636
+ onMixedStateChange = _useMultiSelect.onMixedStateChange,
16637
+ onClear = _useMultiSelect.onClear,
16638
+ onClearAll = _useMultiSelect.onClearAll;
16639
+ var handleToggle = function handleToggle() {
16640
+ return setIsModalOpen(!isModalOpen);
16641
+ };
16642
+ return {
16643
+ selectedItems: selectedItems,
16644
+ setSelectedItems: setSelectedItems,
16645
+ isModalOpen: isModalOpen,
16646
+ onOpen: function onOpen() {
16647
+ return setIsModalOpen(true);
16648
+ },
16649
+ onClose: function onClose() {
16650
+ return setIsModalOpen(false);
16651
+ },
16652
+ onToggle: handleToggle,
16653
+ onChange: onChange,
16654
+ onMixedStateChange: onMixedStateChange,
16655
+ onClear: onClear,
16656
+ onClearAll: onClearAll
16657
+ };
16658
+ }
16659
+
15527
16660
  /**
15528
16661
  * A custom hook that returns the Chakra-based NYPL theme object. This must be
15529
16662
  * used inside a component that is wrapped in the `DSProvider` component, so
@@ -15614,7 +16747,7 @@ function useNYPLTheme() {
15614
16747
  };
15615
16748
  }
15616
16749
 
15617
- var _excluded$2i = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
16750
+ var _excluded$2o = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15618
16751
  var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
15619
16752
  var aspectRatio = props.aspectRatio,
15620
16753
  className = props.className,
@@ -15628,7 +16761,7 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
15628
16761
  showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
15629
16762
  videoId = props.videoId,
15630
16763
  videoType = props.videoType,
15631
- rest = _objectWithoutPropertiesLoose(props, _excluded$2i);
16764
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2o);
15632
16765
  var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
15633
16766
  var videoSrc = videoType === "vimeo" ? "https://player.vimeo.com/video/" + videoId + "?autoplay=0&loop=0" : "https://www.youtube.com/embed/" + videoId + "?disablekb=1&autoplay=0&fs=1&modestbranding=0";
15634
16767
  var iFrameTitleEmbedCode = iframeTitle ? "" + iframeTitle : "Video player";
@@ -15693,5 +16826,5 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
15693
16826
  }, embedElement)));
15694
16827
  }));
15695
16828
 
15696
- export { Accordion, AlphabetFilter, AudioPlayer, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, FeedbackBox$1 as FeedbackBox, Fieldset, Footer$1 as Footer, Form, FormField, FormRow, Header$1 as Header, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, StyledList$1 as StyledList, Table, Tabs, TagSet$1 as TagSet, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, Text, TextInput, Toggle$2 as Toggle, Tooltip$1 as Tooltip, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useFeedbackBox, useModal, useNYPLBreakpoints, useNYPLTheme, useWindowSize };
16829
+ export { Accordion, AlphabetFilter, AudioPlayer, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, FeedbackBox$1 as FeedbackBox, Fieldset, FilterBar$1 as FilterBar, Footer$1 as Footer, Form, FormField, FormRow, Header$1 as Header, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, MultiSelect$1 as MultiSelect, MultiSelectGroup, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, StyledList$1 as StyledList, Table, Tabs, TagSet$1 as TagSet, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, Text, TextInput, Toggle$2 as Toggle, Tooltip$1 as Tooltip, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useFeedbackBox, useFilterBar, useModal, useMultiSelect, useNYPLBreakpoints, useNYPLTheme, useWindowSize };
15697
16830
  //# sourceMappingURL=design-system-react-components.esm.js.map