@royaloperahouse/chord 2.2.5-a-chord-development → 2.2.5-b-select-test

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.
@@ -10,6 +10,8 @@ var styled = require('styled-components');
10
10
  var styled__default = _interopDefault(styled);
11
11
  var moment = _interopDefault(require('moment'));
12
12
  var server = require('react-dom/server');
13
+ var ReactSelect = require('react-select');
14
+ var ReactSelect__default = _interopDefault(ReactSelect);
13
15
  var Modal = _interopDefault(require('react-modal'));
14
16
  var ScrollLock = _interopDefault(require('react-scrolllock'));
15
17
 
@@ -2175,14 +2177,12 @@ var Icon = /*#__PURE__*/React.memo(function (_ref) {
2175
2177
  });
2176
2178
  Icon.displayName = 'Icon';
2177
2179
 
2178
- var _excluded = ["children", "iconName", "iconDirection", "color"];
2179
-
2180
2180
  var Button = function Button(_ref) {
2181
2181
  var children = _ref.children,
2182
2182
  iconName = _ref.iconName,
2183
2183
  iconDirection = _ref.iconDirection,
2184
2184
  color = _ref.color,
2185
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
2185
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color"]);
2186
2186
 
2187
2187
  var truncatedString = children.substring(0, 30);
2188
2188
  return /*#__PURE__*/React__default.createElement(ButtonWrapper, Object.assign({}, rest, {
@@ -2250,11 +2250,9 @@ var AspectRatioWidth;
2250
2250
  ButtonType["Tertiary"] = "Tertiary";
2251
2251
  })(exports.ButtonType || (exports.ButtonType = {}));
2252
2252
 
2253
- var _excluded$1 = ["children"];
2254
-
2255
2253
  var PrimaryButton = function PrimaryButton(_ref) {
2256
2254
  var children = _ref.children,
2257
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2255
+ props = _objectWithoutPropertiesLoose(_ref, ["children"]);
2258
2256
 
2259
2257
  return /*#__PURE__*/React__default.createElement(PrimaryButtonWrapper, Object.assign({
2260
2258
  color: exports.Colors.White
@@ -2268,11 +2266,9 @@ var PrimaryButtonWrapper$1 = /*#__PURE__*/styled__default(Button)(_templateObjec
2268
2266
  return color ? "var(--base-color-" + color + ")" : theme.colors.primary;
2269
2267
  });
2270
2268
 
2271
- var _excluded$2 = ["children"];
2272
-
2273
2269
  var SecondaryButton = function SecondaryButton(_ref) {
2274
2270
  var children = _ref.children,
2275
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
2271
+ props = _objectWithoutPropertiesLoose(_ref, ["children"]);
2276
2272
 
2277
2273
  return /*#__PURE__*/React__default.createElement(PrimaryButtonWrapper$1, Object.assign({
2278
2274
  color: exports.Colors.Primary
@@ -2286,12 +2282,10 @@ var TertiaryButtonWrapper = /*#__PURE__*/styled__default.a(_templateObject$6 ||
2286
2282
  });
2287
2283
  var TertiaryIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n min-width: 20px;\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n display: inline-block;\n"])));
2288
2284
 
2289
- var _excluded$3 = ["children", "color"];
2290
-
2291
2285
  var Button$1 = function Button(_ref) {
2292
2286
  var children = _ref.children,
2293
2287
  color = _ref.color,
2294
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2288
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "color"]);
2295
2289
 
2296
2290
  var truncatedString = children.substring(0, 100);
2297
2291
  return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({}, rest, {
@@ -3253,8 +3247,6 @@ var TabLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$l || (_templ
3253
3247
  });
3254
3248
  var TabLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$9 || (_templateObject2$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-right: var(--button-icon-margin);\n"])));
3255
3249
 
3256
- var _excluded$4 = ["children", "iconName", "iconDirection", "color", "hoverColor"];
3257
-
3258
3250
  var TabLink = function TabLink(_ref) {
3259
3251
  var children = _ref.children,
3260
3252
  iconName = _ref.iconName,
@@ -3263,7 +3255,7 @@ var TabLink = function TabLink(_ref) {
3263
3255
  color = _ref$color === void 0 ? exports.Colors.DarkGrey : _ref$color,
3264
3256
  _ref$hoverColor = _ref.hoverColor,
3265
3257
  hoverColor = _ref$hoverColor === void 0 ? exports.Colors.Primary : _ref$hoverColor,
3266
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3258
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color", "hoverColor"]);
3267
3259
 
3268
3260
  return /*#__PURE__*/React__default.createElement(TabLinkWrapper, Object.assign({
3269
3261
  color: color,
@@ -3313,7 +3305,6 @@ var TextAreaError = /*#__PURE__*/styled__default.div(_templateObject4$2 || (_tem
3313
3305
  return darkMode ? 'var(--base-color-white)' : 'var(--base-color-errorstate)';
3314
3306
  });
3315
3307
 
3316
- var _excluded$5 = ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"];
3317
3308
  /**
3318
3309
  * An HTML textarea component for Chord.
3319
3310
  *
@@ -3375,7 +3366,7 @@ var TextArea = function TextArea(_ref) {
3375
3366
  maxLength = _ref$maxLength === void 0 ? 950 : _ref$maxLength,
3376
3367
  _ref$tabIndex = _ref.tabIndex,
3377
3368
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
3378
- textareaProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3369
+ textareaProps = _objectWithoutPropertiesLoose(_ref, ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"]);
3379
3370
 
3380
3371
  return /*#__PURE__*/React__default.createElement(GridItem, {
3381
3372
  columnStartDesktop: columnStartDesktop,
@@ -3435,7 +3426,6 @@ var ErrorLabel = /*#__PURE__*/styled__default.div(_templateObject6 || (_template
3435
3426
  return "var(--base-color-errorstate)";
3436
3427
  });
3437
3428
 
3438
- var _excluded$6 = ["label", "type", "error", "darkMode", "width"];
3439
3429
  /**
3440
3430
  * A text field component, that wraps around the native `<input />` element
3441
3431
  * and adds some extra states and information around it (i.e. a text and an error labels,
@@ -3483,7 +3473,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3483
3473
  _ref$darkMode = _ref.darkMode,
3484
3474
  darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
3485
3475
  width = _ref.width,
3486
- inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3476
+ inputProps = _objectWithoutPropertiesLoose(_ref, ["label", "type", "error", "darkMode", "width"]);
3487
3477
 
3488
3478
  var _useState = React.useState(false),
3489
3479
  showPassword = _useState[0],
@@ -3541,14 +3531,12 @@ var TextLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$o || (_temp
3541
3531
  });
3542
3532
  var TextLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$c || (_templateObject2$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n"])));
3543
3533
 
3544
- var _excluded$7 = ["children", "iconName", "iconDirection", "color"];
3545
-
3546
3534
  var TextLink = function TextLink(_ref) {
3547
3535
  var children = _ref.children,
3548
3536
  iconName = _ref.iconName,
3549
3537
  iconDirection = _ref.iconDirection,
3550
3538
  color = _ref.color,
3551
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3539
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color"]);
3552
3540
 
3553
3541
  var truncatedString = children.substring(0, 30);
3554
3542
  return /*#__PURE__*/React__default.createElement(TextLinkWrapper, Object.assign({
@@ -5156,8 +5144,6 @@ var ContactNewsletter = function ContactNewsletter(_ref) {
5156
5144
  }, contact.title))));
5157
5145
  };
5158
5146
 
5159
- var _excluded$8 = ["dataRoh"];
5160
-
5161
5147
  var Footer = function Footer(_ref) {
5162
5148
  var data = _ref.data;
5163
5149
  var policyLinks = data.policyLinks;
@@ -5167,7 +5153,7 @@ var Footer = function Footer(_ref) {
5167
5153
 
5168
5154
  var _data$artsLogo = data.artsLogo,
5169
5155
  artsDataRoh = _data$artsLogo.dataRoh,
5170
- artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, _excluded$8);
5156
+ artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, ["dataRoh"]);
5171
5157
 
5172
5158
  var additionalInfo = data.additionalInfo;
5173
5159
  return /*#__PURE__*/React__default.createElement(FooterSection, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
@@ -5222,8 +5208,6 @@ var ArrowsContainer = /*#__PURE__*/styled__default.div(_templateObject5$9 || (_t
5222
5208
  });
5223
5209
  var ArrowWrapper = /*#__PURE__*/styled__default.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 24px;\n height: 24px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: flex-center;\n\n :hover {\n && svg path {\n fill: var(--base-color-primary);\n }\n }\n"])));
5224
5210
 
5225
- var _excluded$9 = ["id", "text"];
5226
-
5227
5211
  var AnchorTabBar = function AnchorTabBar(_ref) {
5228
5212
  var tabs = _ref.tabs,
5229
5213
  onTabClick = _ref.onTabClick,
@@ -5438,7 +5422,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
5438
5422
  }, tabs.map(function (_ref4) {
5439
5423
  var id = _ref4.id,
5440
5424
  text = _ref4.text,
5441
- rest = _objectWithoutPropertiesLoose(_ref4, _excluded$9);
5425
+ rest = _objectWithoutPropertiesLoose(_ref4, ["id", "text"]);
5442
5426
 
5443
5427
  return /*#__PURE__*/React__default.createElement("li", {
5444
5428
  key: id
@@ -5494,9 +5478,6 @@ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_template
5494
5478
  var MessageWrapper = /*#__PURE__*/styled__default.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: var(--grid-outer-margin);\n height: var(--button-height);\n\n h6 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n margin-right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
5495
5479
  var MessageWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h6 {\n margin: 0;\n padding: 0;\n }\n display: none;\n\n @media ", " {\n & {\n display: flex;\n align-items: center;\n margin-left: var(--grid-margin);\n padding: 12px 0;\n }\n }\n"])), devices.mobile);
5496
5480
 
5497
- var _excluded$a = ["text"],
5498
- _excluded2 = ["text"];
5499
-
5500
5481
  var TitleWithCTA = function TitleWithCTA(_ref) {
5501
5482
  var title = _ref.title,
5502
5483
  links = _ref.links,
@@ -5506,11 +5487,11 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
5506
5487
 
5507
5488
  var _ref2 = (links == null ? void 0 : links[0]) || {},
5508
5489
  primaryButtonText = _ref2.text,
5509
- primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
5490
+ primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, ["text"]);
5510
5491
 
5511
5492
  var _ref3 = (links == null ? void 0 : links[1]) || {},
5512
5493
  secondaryButtonText = _ref3.text,
5513
- secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded2);
5494
+ secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, ["text"]);
5514
5495
 
5515
5496
  return /*#__PURE__*/React__default.createElement(TitleCTAGridWrapper, {
5516
5497
  sticky: sticky
@@ -5786,8 +5767,7 @@ var Accordions = function Accordions(_ref) {
5786
5767
  visibleStandfirst: accordion.visibleStandfirst,
5787
5768
  contentType: accordion.contentType,
5788
5769
  displayLevel: accordion.displayLevel,
5789
- semanticLevel: accordion.semanticLevel,
5790
- initOpen: accordion.initOpen
5770
+ semanticLevel: accordion.semanticLevel
5791
5771
  }, accordion.children);
5792
5772
  }));
5793
5773
  };
@@ -5992,9 +5972,6 @@ var truncateReactNodeString = function truncateReactNodeString(node, resultLengt
5992
5972
  return truncateHtmlString(nodeString, resultLength, addDots);
5993
5973
  };
5994
5974
 
5995
- var _excluded$b = ["text"],
5996
- _excluded2$1 = ["text"];
5997
-
5998
5975
  var _buttonTypeToButton;
5999
5976
  var LENGTH_LARGE_TEXT$1 = 28;
6000
5977
  var LENGTH_SMALL_TEXT$2 = 19;
@@ -6045,7 +6022,7 @@ var Card = function Card(_ref) {
6045
6022
  var _ref2 = firstButton || {},
6046
6023
  _ref2$text = _ref2.text,
6047
6024
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
6048
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$b);
6025
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
6049
6026
 
6050
6027
  var primaryButtonTextTruncate = size === 'small' ? truncate(firstButtonText, LENGTH_SMALL_TEXT$2) : truncate(firstButtonText, LENGTH_LARGE_TEXT$1);
6051
6028
  var secondButton = links == null ? void 0 : links[1];
@@ -6053,7 +6030,7 @@ var Card = function Card(_ref) {
6053
6030
  var _ref3 = secondButton || {},
6054
6031
  _ref3$text = _ref3.text,
6055
6032
  secondButtonText = _ref3$text === void 0 ? '' : _ref3$text,
6056
- restSecondButton = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
6033
+ restSecondButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
6057
6034
 
6058
6035
  var tertiaryButtonTextTruncate = size === 'small' ? truncate(secondButtonText, LENGTH_SMALL_TEXT$2) : truncate(secondButtonText, LENGTH_LARGE_TEXT$1);
6059
6036
 
@@ -6557,8 +6534,6 @@ var LogoWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject6$c || (_tem
6557
6534
  var ButtonWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject7$9 || (_templateObject7$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n justify-self: end;\n align-self: end;\n\n @media ", " {\n & {\n justify-self: center;\n align-self: center;\n width: 100%;\n margin-top: 16px;\n }\n }\n"])), devices.mobile);
6558
6535
  var PageHeadingText = /*#__PURE__*/styled__default.div(_templateObject8$6 || (_templateObject8$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-family: var(--font-family-altHeader);\n text-transform: var(--text-transform-altHeader);\n word-break: var(--word-break-altHeader);\n"])));
6559
6536
 
6560
- var _excluded$c = ["text"];
6561
-
6562
6537
  var PageHeading = function PageHeading(_ref) {
6563
6538
  var title = _ref.title,
6564
6539
  text = _ref.text,
@@ -6569,7 +6544,7 @@ var PageHeading = function PageHeading(_ref) {
6569
6544
 
6570
6545
  var _ref2 = link || {},
6571
6546
  linkText = _ref2.text,
6572
- restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
6547
+ restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
6573
6548
 
6574
6549
  var truncatedText = text == null ? void 0 : text.substring(0, 250);
6575
6550
  var truncatedTitle = title && title.substring(0, 40);
@@ -6597,11 +6572,9 @@ var PageHeading = function PageHeading(_ref) {
6597
6572
  }, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, restLink), linkText)) : null));
6598
6573
  };
6599
6574
 
6600
- var _excluded$d = ["link"];
6601
-
6602
6575
  var PageHeadingCore = function PageHeadingCore(_ref) {
6603
6576
  var link = _ref.link,
6604
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6577
+ rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
6605
6578
 
6606
6579
  var coreLink = link && _extends({}, link, {
6607
6580
  color: exports.Colors.White,
@@ -6615,11 +6588,9 @@ var PageHeadingCore = function PageHeadingCore(_ref) {
6615
6588
  })));
6616
6589
  };
6617
6590
 
6618
- var _excluded$e = ["link"];
6619
-
6620
6591
  var PageHeadingCinema = function PageHeadingCinema(_ref) {
6621
6592
  var link = _ref.link,
6622
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6593
+ rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
6623
6594
 
6624
6595
  var cinemaLink = link && _extends({}, link, {
6625
6596
  color: exports.Colors.Black,
@@ -6643,8 +6614,6 @@ var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$d || (_tem
6643
6614
  var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n align-self: end;\n display: flex;\n justify-content: center;\n margin-top: 40px;\n\n @media ", " {\n & {\n margin-top: 0px;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
6644
6615
  var ScrollDownWrapper = /*#__PURE__*/styled__default.div(_templateObject8$7 || (_templateObject8$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 20px;\n left: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @keyframes UpDown {\n 0%,\n 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(8px);\n }\n }\n\n a {\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n border: none;\n padding: 0;\n :hover {\n border: none;\n\n > span {\n animation: UpDown 1500ms linear infinite;\n }\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
6645
6616
 
6646
- var _excluded$f = ["text"];
6647
-
6648
6617
  var PageHeadingImpact = function PageHeadingImpact(_ref) {
6649
6618
  var children = _ref.children,
6650
6619
  text = _ref.text,
@@ -6661,7 +6630,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
6661
6630
 
6662
6631
  var _ref2 = link || {},
6663
6632
  linkText = _ref2.text,
6664
- restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
6633
+ restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
6665
6634
 
6666
6635
  return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
6667
6636
  bgUrlDesktop: bgUrlDesktop,
@@ -6754,11 +6723,9 @@ var PageHeadingPanel = function PageHeadingPanel(_ref) {
6754
6723
  var _templateObject$W;
6755
6724
  var StreamWrapper = /*#__PURE__*/styled__default.div(_templateObject$W || (_templateObject$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h2::selection,\n div::selection {\n color: #1866dc;\n background-color: #fff;\n }\n"])));
6756
6725
 
6757
- var _excluded$g = ["link"];
6758
-
6759
6726
  var PageHeadingStream = function PageHeadingStream(_ref) {
6760
6727
  var link = _ref.link,
6761
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6728
+ rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
6762
6729
 
6763
6730
  var streamLink = link && _extends({}, link, {
6764
6731
  color: exports.Colors.Black,
@@ -6907,7 +6874,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
6907
6874
  var isIOS = function isIOS() {
6908
6875
  try {
6909
6876
  console.warn('Do not use this on server side rendering, it may throw an error.');
6910
- if (typeof navigator === 'undefined') return false;
6877
+ if (typeof navigator === undefined) return false;
6911
6878
  return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) || // iPad on iOS 13 detection
6912
6879
  navigator.userAgent.includes('Mac') && 'ontouchend' in document;
6913
6880
  } catch (e) {
@@ -6923,7 +6890,7 @@ var useIOS = function useIOS() {
6923
6890
  setIOS = _useState[1];
6924
6891
 
6925
6892
  React.useEffect(function () {
6926
- if (typeof navigator === 'undefined') return;
6893
+ if (typeof navigator === undefined) return;
6927
6894
  setIOS(isIOS());
6928
6895
  }, []);
6929
6896
  return IOS;
@@ -6952,8 +6919,6 @@ var useMobile = function useMobile() {
6952
6919
  return mobile;
6953
6920
  };
6954
6921
 
6955
- var _excluded$h = ["text"];
6956
-
6957
6922
  var useResponsiveVideo = function useResponsiveVideo(video, poster) {
6958
6923
  var mobileVideo = video.mobile || video.desktop;
6959
6924
  var desktopVideo = video.desktop || video.mobile;
@@ -7068,7 +7033,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
7068
7033
 
7069
7034
  var _ref5 = link || {},
7070
7035
  linkText = _ref5.text,
7071
- restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$h);
7036
+ restLink = _objectWithoutPropertiesLoose(_ref5, ["text"]);
7072
7037
 
7073
7038
  var titleSize = title && title.length > 20 ? 4 : 3;
7074
7039
  var video = {
@@ -7244,8 +7209,8 @@ var PeopleListing = function PeopleListing(_ref) {
7244
7209
  var _templateObject$_, _templateObject2$I, _templateObject3$A, _templateObject4$s;
7245
7210
  var ReplacementWrapper = /*#__PURE__*/styled__default.div(_templateObject$_ || (_templateObject$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n"])));
7246
7211
  var CreditListingWrapper = /*#__PURE__*/styled__default(PeopleListingGrid)(_templateObject2$I || (_templateObject2$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n p {\n line-height: 1.5;\n }\n"])));
7247
- var DescriptionWrapper = /*#__PURE__*/styled__default.div(_templateObject3$A || (_templateObject3$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n p {\n line-height: 1.5;\n margin-bottom: 4px;\n }\n"])));
7248
- var RoleWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject4$s || (_templateObject4$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n overflow-wrap: break-word;\n"])));
7212
+ var DescriptionWrapper = /*#__PURE__*/styled__default.div(_templateObject3$A || (_templateObject3$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n p {\n line-height: 25px;\n margin-bottom: 3px;\n }\n"])));
7213
+ var RoleWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject4$s || (_templateObject4$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n overflow-wrap: break-word;\n min-height: 1.5em;\n"])));
7249
7214
 
7250
7215
  var getConcatenatedPropLength = function getConcatenatedPropLength(array, prop) {
7251
7216
  return array.reduce(function (acc, item) {
@@ -7256,18 +7221,12 @@ var getConcatenatedPropLength = function getConcatenatedPropLength(array, prop)
7256
7221
  var concatenateMusicTitle = function concatenateMusicTitle(musicTitle) {
7257
7222
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, musicTitle.map(function (title, index) {
7258
7223
  if (musicTitle.length > 1 && index === musicTitle.length - 1) {
7259
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, ' ', "and ", /*#__PURE__*/React__default.createElement("i", {
7260
- key: index
7261
- }, title));
7224
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, ' ', "and ", /*#__PURE__*/React__default.createElement("i", null, title));
7262
7225
  } else if (index > 0) {
7263
- return /*#__PURE__*/React__default.createElement("i", {
7264
- key: index
7265
- }, ", ", title);
7226
+ return /*#__PURE__*/React__default.createElement("i", null, ", ", title);
7266
7227
  }
7267
7228
 
7268
- return /*#__PURE__*/React__default.createElement("i", {
7269
- key: index
7270
- }, title);
7229
+ return /*#__PURE__*/React__default.createElement("i", null, title);
7271
7230
  }));
7272
7231
  };
7273
7232
 
@@ -7408,10 +7367,6 @@ var PromoWithTagsContainer = /*#__PURE__*/styled__default.div(_templateObject19
7408
7367
  var TimerWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
7409
7368
  var EndDateText = /*#__PURE__*/styled__default.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid var(--base-color-black);\n padding-bottom: 32px;\n margin-bottom: 32px;\n\n @media ", " {\n padding-bottom: 20px;\n margin-bottom: 20px;\n }\n"])), devices.mobile);
7410
7369
 
7411
- var _excluded$i = ["text"],
7412
- _excluded2$2 = ["text"],
7413
- _excluded3 = ["text"];
7414
-
7415
7370
  var _buttonTypeToButton$1;
7416
7371
  var LENGTH_TEXT$1 = 28;
7417
7372
  var LENGTH_TEXT_PARAGRAPH = 130;
@@ -7482,7 +7437,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
7482
7437
  var _ref2 = firstButton || {},
7483
7438
  _ref2$text = _ref2.text,
7484
7439
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
7485
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$i);
7440
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
7486
7441
 
7487
7442
  var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
7488
7443
  var secondButton = links == null ? void 0 : links[1];
@@ -7490,7 +7445,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
7490
7445
  var _ref3 = secondButton || {},
7491
7446
  _ref3$text = _ref3.text,
7492
7447
  secondButtonText = _ref3$text === void 0 ? '' : _ref3$text,
7493
- restSecondButton = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
7448
+ restSecondButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
7494
7449
 
7495
7450
  var secondButtonTextTruncate = truncate(secondButtonText, LENGTH_TEXT$1);
7496
7451
  var textTruncate = asCard ? truncate(text || '', LENGTH_TEXT_PARAGRAPH) : text;
@@ -7499,7 +7454,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
7499
7454
  var textLinkItems = textLinks ? textLinks.map(function (link, index) {
7500
7455
  var _link$text = link.text,
7501
7456
  textLinkText = _link$text === void 0 ? '' : _link$text,
7502
- restTextLink = _objectWithoutPropertiesLoose(link, _excluded3);
7457
+ restTextLink = _objectWithoutPropertiesLoose(link, ["text"]);
7503
7458
 
7504
7459
  return /*#__PURE__*/React__default.createElement(TextLinkWrapper$2, {
7505
7460
  key: index
@@ -7657,8 +7612,6 @@ var ButtonsContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$d ||
7657
7612
  return '';
7658
7613
  });
7659
7614
 
7660
- var _excluded$j = ["text"],
7661
- _excluded2$3 = ["text"];
7662
7615
  var LENGTH_TEXT$3 = 28;
7663
7616
 
7664
7617
  var PromoWithTitle = function PromoWithTitle(_ref) {
@@ -7684,7 +7637,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
7684
7637
  var _ref2 = primaryButton || {},
7685
7638
  _ref2$text = _ref2.text,
7686
7639
  primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
7687
- restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
7640
+ restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
7688
7641
 
7689
7642
  var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
7690
7643
  var tertiaryButton = links == null ? void 0 : links[1];
@@ -7692,7 +7645,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
7692
7645
  var _ref3 = tertiaryButton || {},
7693
7646
  _ref3$text = _ref3.text,
7694
7647
  tertiaryButtonText = _ref3$text === void 0 ? '' : _ref3$text,
7695
- restTertiaryButton = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
7648
+ restTertiaryButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
7696
7649
 
7697
7650
  var tertiaryButtonTextTruncate = truncate(tertiaryButtonText, LENGTH_TEXT$3);
7698
7651
  return /*#__PURE__*/React__default.createElement(PromoWithTitleGrid, {
@@ -7865,426 +7818,72 @@ var SectionTitle = function SectionTitle(_ref) {
7865
7818
  }, description))));
7866
7819
  };
7867
7820
 
7868
- var _templateObject$14, _templateObject2$M, _templateObject3$E, _templateObject4$v, _templateObject5$n, _templateObject6$i, _templateObject7$e, _templateObject8$a, _templateObject9$5, _templateObject10$5, _templateObject11$3;
7869
- var stateStyles = /*#__PURE__*/styled.css(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:focus,\n &.focus {\n outline: ", ";\n }\n\n &.disabled {\n background-color: ", ";\n color: ", ";\n pointer-events: none;\n cursor: none;\n }\n"])), function (_ref) {
7870
- var theme = _ref.theme;
7871
- return "3px solid " + theme.colors.lapisLazuli;
7821
+ var _templateObject$14, _templateObject2$M, _templateObject3$E, _templateObject4$v;
7822
+ var Container$1 = /*#__PURE__*/styled__default.div(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
7823
+ var SelectWrapper = /*#__PURE__*/styled__default.div(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: auto;\n max-width: ", ";\n\n .chord-select__control {\n min-height: 48px;\n border-radius: 0;\n border: ", ";\n &:hover {\n border-color: ", ";\n }\n }\n .chord-select__control--is-focused {\n border-color: var(--base-color-darkgrey);\n box-shadow: ", ";\n }\n .chord-select__indicator-separator {\n display: none;\n }\n .chord-select__control--menu-is-open {\n .chord-select__indicator {\n svg {\n transform: rotate(180deg);\n }\n }\n }\n .chord-select__indicator {\n font-size: 25px;\n padding: 0;\n margin-right: 12px;\n color: var(--base-color-black);\n svg {\n height: 1em;\n width: 1em;\n color: inherit;\n path {\n fill: currentColor;\n color: inherit;\n }\n }\n }\n .chord-select__single-value,\n .chord-select__placeholder {\n margin-left: 0;\n margin-right: 0;\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n }\n .chord-select__placeholder {\n color: var(--base-color-darkgrey);\n }\n .chord-select__single-value {\n color: var(--base-color-black);\n }\n .chord-select__value-container {\n padding-left: 20px;\n padding-right: 15px;\n padding-top: 1px;\n padding-bottom: 0px;\n }\n .chord-select--is-disabled {\n .chord-select__control {\n border: 1px solid var(--base-color-lightgrey);\n background: var(--base-color-lightgrey);\n }\n .chord-select__indicator,\n .chord-select__single-value {\n color: var(--base-color-darkgrey);\n }\n }\n .chord-select__menu {\n margin-top: -1px;\n box-shadow: none;\n border-radius: 0;\n border: 1px solid var(--base-color-darkgrey);\n background: var(--base-color-lightgrey);\n }\n .chord-select__menu-list {\n padding-top: 0;\n padding-bottom: 0;\n }\n .chord-select__option {\n padding: 10px 20px;\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n color: var(--base-color-black);\n &:active,\n &.chord-select__option--is-focused {\n background: var(--base-color-midgrey);\n }\n }\n .chord-select__option--is-selected {\n color: var(--base-color-black);\n background: none;\n }\n .chord-select__input-container {\n margin: 0;\n padding-top: 0;\n padding-bottom: 0;\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n color: var(--base-color-black);\n }\n .chord-select__menu-notice {\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n color: var(--base-color-darkgrey);\n padding: 10px 20px;\n text-align: left;\n }\n .chord-select__group-heading {\n padding: 0 20px;\n text-transform: none;\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-2);\n font-weight: var(--font-weight-body-2);\n color: var(--base-color-darkgrey);\n &:not(:empty) {\n margin-bottom: 5px;\n }\n }\n .chord-select__group {\n padding-top: 0;\n padding-bottom: 10px;\n &:last-child {\n padding-bottom: 0;\n }\n }\n"])), function (_ref) {
7824
+ var width = _ref.width;
7825
+ if (!width) return 'none';
7826
+ return width + 'px';
7872
7827
  }, function (_ref2) {
7873
- var theme = _ref2.theme;
7874
- return theme.colors.lightgrey;
7828
+ var error = _ref2.error;
7829
+ if (error !== undefined) return "1px solid var(--base-color-errorstate)";
7830
+ return "1px solid var(--base-color-darkgrey)";
7875
7831
  }, function (_ref3) {
7876
- var theme = _ref3.theme;
7877
- return theme.colors.lightgrey;
7832
+ var error = _ref3.error;
7833
+ if (error !== undefined) return "var(--base-color-errorstate)";
7834
+ return "var(--base-color-darkgrey)";
7835
+ }, function (_ref4) {
7836
+ var darkMode = _ref4.darkMode;
7837
+ if (darkMode) return "0 0 0 4px var(--base-color-lemonchiffon)";
7838
+ return "0 0 0 3px var(--base-color-lapislazuli)";
7878
7839
  });
7879
- var borderStyles = /*#__PURE__*/styled.css(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 0;\n outline: 1px solid ", ";\n"])), function (_ref4) {
7880
- var theme = _ref4.theme;
7881
- return theme.colors.darkgrey;
7840
+ var TextLabel$1 = /*#__PURE__*/styled__default.p(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 0 20px;\n color: ", ";\n"])), function (_ref5) {
7841
+ var darkMode = _ref5.darkMode;
7842
+ if (darkMode) return "var(--base-color-white)";
7843
+ return "var(--base-color-black)";
7844
+ });
7845
+ var ErrorLabel$1 = /*#__PURE__*/styled__default.p(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 20px 0 0;\n color: ", ";\n"])), function (_ref6) {
7846
+ var darkMode = _ref6.darkMode;
7847
+ if (darkMode) return "var(--base-color-white)";
7848
+ return "var(--base-color-errorstate)";
7882
7849
  });
7883
- var noMarginAndPaddingStyles = /*#__PURE__*/styled.css(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n"])));
7884
- var listItemStyles = /*#__PURE__*/styled.css(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n list-style: none;\n user-select: none;\n"])));
7885
- var ArrowIcon = /*#__PURE__*/styled__default(Icon).attrs(function (_ref5) {
7886
- var theme = _ref5.theme;
7887
- return {
7888
- iconName: 'DropdownArrow',
7889
- color: theme.colors.black,
7890
- title: 'Select Arrow'
7891
- };
7892
- })(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n pointer-events: none;\n\n max-width: 24px;\n max-height: 24px;\n\n svg {\n width: 24px;\n height: 24px;\n }\n"])));
7893
- var Wrapper$5 = /*#__PURE__*/styled__default.div(_templateObject6$i || (_templateObject6$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n height: initial;\n\n display: flex;\n flex-direction: column;\n gap: 20px;\n"])), noMarginAndPaddingStyles);
7894
- var SelectWrapper = /*#__PURE__*/styled__default.div(_templateObject7$e || (_templateObject7$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n height: inherit;\n"])), noMarginAndPaddingStyles);
7895
- var Options = /*#__PURE__*/styled__default.div(_templateObject8$a || (_templateObject8$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n z-index: 1;\n\n ", "\n ", "\n"])), noMarginAndPaddingStyles, borderStyles);
7896
- var Option = /*#__PURE__*/styled__default.li(_templateObject9$5 || (_templateObject9$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n\n ", "\n"])), noMarginAndPaddingStyles, listItemStyles, function (_ref6) {
7897
- var theme = _ref6.theme,
7898
- hover = _ref6.hover;
7899
- var _theme$colors = theme.colors,
7900
- lightgrey = _theme$colors.lightgrey,
7901
- midgrey = _theme$colors.midgrey;
7902
- if (hover) return "background-color: " + midgrey;
7903
- return "\n background-color: " + lightgrey + ";\n &:hover { background-color: " + midgrey + " }\n ";
7904
- });
7905
-
7906
- var selectStyles = function selectStyles(width, height) {
7907
- return styled.css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n z-index: ", ";\n\n width: ", ";\n height: ", ";\n\n * {\n width: ", ";\n }\n\n ", " {\n position: absolute;\n top: ", ";\n }\n ", " {\n height: ", ";\n }\n p {\n height: ", ";\n padding-inline: 20px;\n\n display: flex;\n align-items: center;\n }\n"])), zIndexes[3], width, height, width, Options, height, Option, height, height);
7908
- };
7909
-
7910
- var SelectList = /*#__PURE__*/styled__default.ul(_templateObject11$3 || (_templateObject11$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n ", "\n ", "\n ", "\n\n & ", " {\n position: absolute;\n\n top: 13px;\n right: 16px;\n }\n"])), function (_ref7) {
7911
- var width = _ref7.width,
7912
- height = _ref7.height;
7913
- return selectStyles(width === 'default' ? "354px" : width + "px", height === 'default' ? "48px" : height + "px");
7914
- }, stateStyles, noMarginAndPaddingStyles, listItemStyles, borderStyles, ArrowIcon);
7915
-
7916
- var useKeyboardAccessibility = function useKeyboardAccessibility(_ref) {
7917
- var selectRef = _ref.selectRef,
7918
- optionsRef = _ref.optionsRef,
7919
- shouldHighlightOption = _ref.shouldHighlightOption;
7920
-
7921
- var _useState = React.useState(-1),
7922
- itemToHighlight = _useState[0],
7923
- setItemToHighlight = _useState[1];
7924
-
7925
- var clampIndex = function clampIndex(index) {
7926
- if (index < -1) return -1;
7927
- if (index > optionsRef.current.length - 1) return optionsRef.current.length - 1;
7928
- return index;
7929
- };
7930
-
7931
- var highlightNextOption = function highlightNextOption() {
7932
- return setItemToHighlight(function (prev) {
7933
- return clampIndex(prev + 1);
7934
- });
7935
- };
7936
-
7937
- var highlightPrevOption = function highlightPrevOption() {
7938
- return setItemToHighlight(function (prev) {
7939
- return clampIndex(prev - 1);
7940
- });
7941
- };
7942
-
7943
- var reset = function reset() {
7944
- var _selectRef$current;
7945
-
7946
- (_selectRef$current = selectRef.current) == null ? void 0 : _selectRef$current.blur();
7947
- setItemToHighlight(-1);
7948
- };
7949
-
7950
- var handleKeyUp = function handleKeyUp(event) {
7951
- if (!shouldHighlightOption) return;
7952
- var shouldHighlightOptionNext = event.key === 'ArrowDown';
7953
- var shouldHighlightOptionPrev = event.key === 'ArrowUp';
7954
- if (shouldHighlightOptionNext) return highlightNextOption();
7955
- if (shouldHighlightOptionPrev) return highlightPrevOption();
7956
- };
7957
-
7958
- var preventScrollingWhileNavigating = function preventScrollingWhileNavigating(event) {
7959
- if (!shouldHighlightOption) return;
7960
- if (!['ArrowDown', 'ArrowUp'].includes(event.key)) return;
7961
- event.preventDefault();
7962
- };
7963
-
7964
- var handleHighlighted = function handleHighlighted(cb) {
7965
- return function (event) {
7966
- if (itemToHighlight === -1) return;
7967
- if (event.key !== 'Enter') return;
7968
- cb(itemToHighlight);
7969
- reset();
7970
- };
7971
- };
7972
-
7973
- React.useEffect(function () {
7974
- if (shouldHighlightOption) return;
7975
- reset();
7976
- }, [shouldHighlightOption]);
7977
- return {
7978
- handleKeyUp: handleKeyUp,
7979
- preventScrollingWhileNavigating: preventScrollingWhileNavigating,
7980
- handleHighlighted: handleHighlighted,
7981
- itemToHighlight: itemToHighlight
7982
- };
7983
- };
7984
-
7985
- var useVisualAccessibility = function useVisualAccessibility(_ref2) {
7986
- var selectRef = _ref2.selectRef,
7987
- isSelectDisabled = _ref2.isSelectDisabled;
7988
-
7989
- var addFocusClass = function addFocusClass() {
7990
- var _selectRef$current2;
7991
-
7992
- (_selectRef$current2 = selectRef.current) == null ? void 0 : _selectRef$current2.classList.add('focus');
7993
- };
7994
-
7995
- var removeFocusClass = function removeFocusClass() {
7996
- var _selectRef$current3;
7997
-
7998
- (_selectRef$current3 = selectRef.current) == null ? void 0 : _selectRef$current3.classList.remove('focus');
7999
- };
8000
-
8001
- var toggleFocus = function toggleFocus() {
8002
- var _selectRef$current4;
8003
-
8004
- if ((_selectRef$current4 = selectRef.current) != null && _selectRef$current4.classList.contains('focus')) removeFocusClass();else addFocusClass();
8005
- };
8006
-
8007
- var withClickAwayHandler = function withClickAwayHandler(cb) {
8008
- return function (event) {
8009
- if (!selectRef.current) return;
8010
- if (selectRef.current.contains(event.target)) return;
8011
- removeFocusClass();
8012
- cb();
8013
- };
8014
- };
8015
-
8016
- React.useEffect(function () {
8017
- if (!selectRef.current) return;
8018
-
8019
- if (isSelectDisabled) {
8020
- selectRef.current.classList.add('disabled');
8021
- } else selectRef.current.classList.remove('disabled');
8022
- }, [isSelectDisabled]);
8023
- return {
8024
- withClickAwayHandler: withClickAwayHandler,
8025
- toggleFocus: toggleFocus,
8026
- addFocusClass: addFocusClass,
8027
- removeFocusClass: removeFocusClass
8028
- };
8029
- };
8030
-
8031
- var useAccessibility = function useAccessibility(props) {
8032
- var selectRef = props.selectRef;
8033
-
8034
- var _useKeyboardAccessibi = useKeyboardAccessibility(props),
8035
- handleKeyUp = _useKeyboardAccessibi.handleKeyUp,
8036
- preventScrollingWhileNavigating = _useKeyboardAccessibi.preventScrollingWhileNavigating,
8037
- handleHighlighted = _useKeyboardAccessibi.handleHighlighted,
8038
- itemToHighlight = _useKeyboardAccessibi.itemToHighlight;
8039
-
8040
- var _useVisualAccessibili = useVisualAccessibility(props),
8041
- addFocusClass = _useVisualAccessibili.addFocusClass,
8042
- removeFocusClass = _useVisualAccessibili.removeFocusClass,
8043
- toggleFocus = _useVisualAccessibili.toggleFocus,
8044
- withClickAwayHandler = _useVisualAccessibili.withClickAwayHandler;
8045
-
8046
- React.useEffect(function () {
8047
- if (!selectRef.current) return;
8048
- selectRef.current.addEventListener('keydown', preventScrollingWhileNavigating);
8049
- selectRef.current.addEventListener('keyup', handleKeyUp);
8050
- selectRef.current.addEventListener('click', toggleFocus);
8051
- selectRef.current.addEventListener('focus', addFocusClass);
8052
- selectRef.current.addEventListener('blur', removeFocusClass);
8053
- return function () {
8054
- var _selectRef$current5, _selectRef$current6, _selectRef$current7, _selectRef$current8, _selectRef$current9;
8055
7850
 
8056
- (_selectRef$current5 = selectRef.current) == null ? void 0 : _selectRef$current5.removeEventListener('keydown', preventScrollingWhileNavigating);
8057
- (_selectRef$current6 = selectRef.current) == null ? void 0 : _selectRef$current6.removeEventListener('keyup', handleKeyUp);
8058
- (_selectRef$current7 = selectRef.current) == null ? void 0 : _selectRef$current7.removeEventListener('click', toggleFocus);
8059
- (_selectRef$current8 = selectRef.current) == null ? void 0 : _selectRef$current8.removeEventListener('focus', addFocusClass);
8060
- (_selectRef$current9 = selectRef.current) == null ? void 0 : _selectRef$current9.removeEventListener('blur', removeFocusClass);
8061
- };
8062
- });
8063
- return {
8064
- withClickAwayHandler: withClickAwayHandler,
8065
- handleHighlighted: handleHighlighted,
8066
- itemToHighlight: itemToHighlight
8067
- };
7851
+ var DropdownIndicator = function DropdownIndicator(props) {
7852
+ return /*#__PURE__*/React__default.createElement(ReactSelect.components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
7853
+ iconName: 'DropdownArrow'
7854
+ }));
8068
7855
  };
8069
- /**
8070
- * A select component, created using <ul> and <li> elements, with bespoke accessibility
8071
- * logic.
8072
- *
8073
- * # Usage
8074
- * ## Defining a component that uses a typical Select element
8075
- * ```tsx
8076
- * const MyComponent = () => {
8077
- * const handleSelect = (value: number, text: string) => {
8078
- * console.log("Selected", value);
8079
- * };
8080
- *
8081
- * return <>
8082
- * <Select
8083
- * label="This is a label"
8084
- * options={[
8085
- * { text: "Option 1", value: 1 },
8086
- * { text: "Option 2", value: 2 },
8087
- * ]}
8088
- * onSelect={handleSelect}
8089
- * />
8090
- * </>
8091
- * }
8092
- * ```
8093
- *
8094
- * ## Defining a component that uses a disabled Select element
8095
- * ```tsx
8096
- * const MyComponent = () => {
8097
- * const handleSelect = (value: number, text: string) => {
8098
- * console.log("Selected", value);
8099
- * };
8100
- *
8101
- * return <>
8102
- * <Select
8103
- * disabled // Select component disabled explicitely
8104
- * label="This is a label"
8105
- * options={[
8106
- * { text: "Option 1", value: 1 },
8107
- * { text: "Option 2", value: 2 },
8108
- * ]}
8109
- * onSelect={handleSelect}
8110
- * />
8111
- * <Select
8112
- * label="This is a label"
8113
- * options={[]} // Select component disabled implicitely by passing an empty array of options
8114
- * onSelect={handleSelect}
8115
- * />
8116
- * </>
8117
- * }
8118
- * ```
8119
- *
8120
- * ## Defining a component with a non-labelled Select element
8121
- * ```tsx
8122
- * const MyComponent = () => {
8123
- * const handleSelect = (value: number, text: string) => {
8124
- * console.log("Selected", value);
8125
- * };
8126
- *
8127
- * return <>
8128
- * <Select
8129
- * label=""
8130
- * options={[
8131
- * { text: "Option 1", value: 1 },
8132
- * { text: "Option 2", value: 2 },
8133
- * ]}
8134
- * onSelect={handleSelect}
8135
- * />
8136
- * </>
8137
- * }
8138
- * ```
8139
- *
8140
- * ## Changing the dimensions of a Select element (px)
8141
- * ```tsx
8142
- * const MyComponent = () => {
8143
- * const handleSelect = (value: number, text: string) => {
8144
- * console.log("Selected", value);
8145
- * };
8146
- *
8147
- * const selectWidthPx = 100;
8148
- * const selectHeightPx = 27;
8149
- *
8150
- * return <>
8151
- * <Select
8152
- * label="This is a label"
8153
- * options={[
8154
- * { text: "Option 1", value: 1 },
8155
- * { text: "Option 2", value: 2 },
8156
- * ]}
8157
- * onSelect={handleSelect}
8158
- * width={selectWidthPx}
8159
- * height={selectHeightPx}
8160
- * />
8161
- * </>
8162
- * }
8163
- * ```
8164
- */
8165
-
8166
-
8167
- function Select(_ref3) {
8168
- var _ref4, _selectedValue$text, _options$;
8169
-
8170
- var label = _ref3.label,
8171
- options = _ref3.options,
8172
- onSelect = _ref3.onSelect,
8173
- _ref3$disabled = _ref3.disabled,
8174
- disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
8175
- _ref3$resetWhenOption = _ref3.resetWhenOptionsUpdate,
8176
- resetWhenOptionsUpdate = _ref3$resetWhenOption === void 0 ? false : _ref3$resetWhenOption,
8177
- _ref3$width = _ref3.width,
8178
- width = _ref3$width === void 0 ? 'default' : _ref3$width,
8179
- _ref3$height = _ref3.height,
8180
- height = _ref3$height === void 0 ? 'default' : _ref3$height;
8181
- var selectRef = React.useRef(null);
8182
- var optionsRef = React.useRef([]);
8183
7856
 
8184
- var _useState2 = React.useState(null),
8185
- selectedValue = _useState2[0],
8186
- setSelectedValue = _useState2[1];
8187
-
8188
- var _useState3 = React.useState(false),
8189
- isOpen = _useState3[0],
8190
- setIsOpen = _useState3[1];
8191
-
8192
- var isDisabled = disabled || options.length === 0;
8193
-
8194
- var _useAccessibility = useAccessibility({
8195
- selectRef: selectRef,
8196
- optionsRef: optionsRef,
8197
- shouldHighlightOption: isOpen,
8198
- isSelectDisabled: isDisabled
8199
- }),
8200
- withClickAwayHandler = _useAccessibility.withClickAwayHandler,
8201
- handleHighlighted = _useAccessibility.handleHighlighted,
8202
- itemToHighlight = _useAccessibility.itemToHighlight;
8203
-
8204
- var openSelect = function openSelect() {
8205
- return setIsOpen(true);
8206
- };
8207
-
8208
- var closeSelect = function closeSelect() {
8209
- return setIsOpen(false);
8210
- };
8211
-
8212
- var toggleSelect = function toggleSelect() {
8213
- return setIsOpen(function (prev) {
8214
- return !prev;
8215
- });
8216
- };
8217
-
8218
- var closeSelectOnBlur = withClickAwayHandler(closeSelect);
8219
-
8220
- var handleOptionSelection = function handleOptionSelection(index) {
8221
- var option = options[index];
8222
- setSelectedValue(option);
8223
- onSelect(option.value, option.text);
8224
- };
8225
-
8226
- React.useEffect(function () {
8227
- document.addEventListener('click', closeSelectOnBlur, false);
8228
- return function () {
8229
- document.removeEventListener('click', closeSelectOnBlur, false);
8230
- };
8231
- }, []);
8232
- React.useEffect(function () {
8233
- if (!resetWhenOptionsUpdate) return;
8234
-
8235
- if (options.length === 0) {
8236
- setSelectedValue(null);
8237
- return;
8238
- }
7857
+ function Select(_ref) {
7858
+ var label = _ref.label,
7859
+ darkMode = _ref.darkMode,
7860
+ width = _ref.width,
7861
+ error = _ref.error,
7862
+ _ref$isSearchable = _ref.isSearchable,
7863
+ isSearchable = _ref$isSearchable === void 0 ? false : _ref$isSearchable,
7864
+ selectProps = _objectWithoutPropertiesLoose(_ref, ["label", "darkMode", "width", "error", "isSearchable"]);
8239
7865
 
8240
- setSelectedValue(options[0]);
8241
- }, [options, resetWhenOptionsUpdate]);
8242
- return /*#__PURE__*/React__default.createElement(Wrapper$5, null, label !== '' && /*#__PURE__*/React__default.createElement(BodyText, {
8243
- level: 1,
8244
- tag: "p",
8245
- "data-testid": "select-label"
8246
- }, label), /*#__PURE__*/React__default.createElement(SelectList, {
8247
- id: "select",
8248
- ref: selectRef,
8249
- onClick: toggleSelect,
8250
- onFocus: openSelect,
8251
- onBlur: closeSelect,
8252
- onMouseDown: function onMouseDown(e) {
8253
- return e.preventDefault();
8254
- },
8255
- onKeyUp: handleHighlighted(handleOptionSelection),
7866
+ return /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement("label", null, !!label && /*#__PURE__*/React__default.createElement(TextLabel$1, {
7867
+ darkMode: darkMode,
7868
+ "data-testid": "text-field-text-label"
7869
+ }, /*#__PURE__*/React__default.createElement(AltHeader, {
7870
+ level: 6
7871
+ }, label)), /*#__PURE__*/React__default.createElement(SelectWrapper, {
8256
7872
  width: width,
8257
- height: height,
8258
- role: "listbox",
8259
- tabIndex: 0,
8260
- "aria-labelledby": label,
8261
- "aria-selected": isOpen,
8262
- "aria-disabled": isDisabled,
8263
- "data-testid": "select"
8264
- }, /*#__PURE__*/React__default.createElement(SelectWrapper, null, /*#__PURE__*/React__default.createElement(BodyText, {
8265
- level: 1,
8266
- tag: "p",
8267
- "data-testid": "selected-value"
8268
- }, (_ref4 = (_selectedValue$text = selectedValue == null ? void 0 : selectedValue.text) != null ? _selectedValue$text : (_options$ = options[0]) == null ? void 0 : _options$.text) != null ? _ref4 : ''), isOpen && /*#__PURE__*/React__default.createElement(Options, {
8269
- "data-testid": "options"
8270
- }, options.map(function (option, index) {
8271
- return /*#__PURE__*/React__default.createElement(Option, {
8272
- ref: function ref(element) {
8273
- if (!element || optionsRef.current.length === options.length) return;
8274
- optionsRef.current.push(element);
8275
- },
8276
- role: "option",
8277
- tabIndex: index + 1,
8278
- hover: index === itemToHighlight,
8279
- key: option.text,
8280
- onClick: function onClick() {
8281
- return handleOptionSelection(index);
8282
- }
8283
- }, /*#__PURE__*/React__default.createElement(BodyText, {
8284
- level: 1,
8285
- tag: "p"
8286
- }, option.text));
8287
- }))), /*#__PURE__*/React__default.createElement(ArrowIcon, null)));
7873
+ error: error
7874
+ }, /*#__PURE__*/React__default.createElement(ReactSelect__default, Object.assign({
7875
+ components: {
7876
+ DropdownIndicator: DropdownIndicator
7877
+ },
7878
+ isSearchable: isSearchable,
7879
+ className: "chord-select-container",
7880
+ classNamePrefix: "chord-select"
7881
+ }, selectProps)))), !!error && /*#__PURE__*/React__default.createElement(ErrorLabel$1, {
7882
+ darkMode: darkMode,
7883
+ "data-testid": "text-field-error-label"
7884
+ }, /*#__PURE__*/React__default.createElement(AltHeader, {
7885
+ level: 6
7886
+ }, error)));
8288
7887
  }
8289
7888
 
8290
7889
  var _templateObject$15;
@@ -8317,7 +7916,7 @@ var TextOnly = function TextOnly(_ref) {
8317
7916
  };
8318
7917
 
8319
7918
  var _templateObject$16, _templateObject2$N;
8320
- var Wrapper$6 = /*#__PURE__*/styled__default.div(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n"])), ImageAspectRatioWrapper, function (_ref) {
7919
+ var Wrapper$5 = /*#__PURE__*/styled__default.div(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n"])), ImageAspectRatioWrapper, function (_ref) {
8321
7920
  var _ref$aspectRatio = _ref.aspectRatio,
8322
7921
  aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
8323
7922
  return aspectRatio;
@@ -8356,7 +7955,7 @@ var ImageWithCaption = function ImageWithCaption(_ref) {
8356
7955
  return window.removeEventListener('resize', setWrapperHeight);
8357
7956
  };
8358
7957
  }, [wrapperRef]);
8359
- return /*#__PURE__*/React__default.createElement(Wrapper$6, {
7958
+ return /*#__PURE__*/React__default.createElement(Wrapper$5, {
8360
7959
  aspectRatio: aspectRatio,
8361
7960
  ref: wrapperRef,
8362
7961
  height: height
@@ -8395,13 +7994,13 @@ var Quote = function Quote(_ref) {
8395
7994
  }, attribution))));
8396
7995
  };
8397
7996
 
8398
- var _templateObject$18, _templateObject2$P, _templateObject3$G, _templateObject4$w, _templateObject5$o, _templateObject6$j;
7997
+ var _templateObject$18, _templateObject2$P, _templateObject3$G, _templateObject4$w, _templateObject5$n, _templateObject6$i;
8399
7998
  var CardContainer$1 = /*#__PURE__*/styled__default.div(_templateObject$18 || (_templateObject$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n width: 100%;\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n gap: 15px;\n min-height: 50px;\n"])));
8400
7999
  var ContentContainer$4 = /*#__PURE__*/styled__default.div(_templateObject2$P || (_templateObject2$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
8401
8000
  var StyledImage = /*#__PURE__*/styled__default.img(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--base-color-white);\n"])));
8402
8001
  var ImageWrapper = /*#__PURE__*/styled__default.div(_templateObject4$w || (_templateObject4$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n"])));
8403
- var IconWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject5$o || (_templateObject5$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n span {\n width: 40px;\n height: 40px;\n @media ", " {\n width: 24px;\n height: 24px;\n }\n @media ", " {\n width: 18px;\n height: 18px;\n }\n }\n"])), devices.tablet, devices.mobile);
8404
- var TitleWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject6$j || (_templateObject6$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 8px;\n div {\n @media ", " {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n"])), devices.mobile);
8002
+ var IconWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n span {\n width: 40px;\n height: 40px;\n @media ", " {\n width: 24px;\n height: 24px;\n }\n @media ", " {\n width: 18px;\n height: 18px;\n }\n }\n"])), devices.tablet, devices.mobile);
8003
+ var TitleWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject6$i || (_templateObject6$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 8px;\n div {\n @media ", " {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n"])), devices.mobile);
8405
8004
 
8406
8005
  var MiniCard = function MiniCard(_ref) {
8407
8006
  var _ref$title = _ref.title,
@@ -8541,19 +8140,101 @@ var ReadMore = function ReadMore(_ref) {
8541
8140
  }, isFullTextOpen ? "" + hideText : "" + showMoreText)));
8542
8141
  };
8543
8142
 
8544
- var _templateObject$1a, _templateObject2$R, _templateObject3$I, _templateObject4$y, _templateObject5$p, _templateObject6$k;
8545
- var Container$1 = /*#__PURE__*/styled__default.div(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
8546
- var Sections = /*#__PURE__*/styled__default.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
8547
- var Section = /*#__PURE__*/styled__default.div(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background-color: ", ";\n"])), function (_ref) {
8143
+ var _templateObject$1a, _templateObject2$R, _templateObject3$I, _templateObject4$y;
8144
+ var MenuContainer$2 = /*#__PURE__*/styled__default.menu(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding: 0;\n margin: 0;\n"])));
8145
+ var MenuList = /*#__PURE__*/styled__default.ul(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n list-style: none;\n border-right: 1px solid var(--base-color-", ");\n li {\n margin-left: -5px;\n @media ", " {\n margin-left: 0px;\n }\n }\n @media ", " {\n display: ", ";\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-top: 0;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n }\n"])), exports.Colors.LightGrey, devices.mobile, devices.mobile, function (_ref) {
8146
+ var mobileOpen = _ref.mobileOpen;
8147
+ return mobileOpen ? "block" : 'none';
8148
+ }, exports.Colors.White, exports.Colors.DarkGrey);
8149
+ var MenuItem$1 = /*#__PURE__*/styled__default.button(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n line-height: var(--line-height-navigation);\n font-size: var(--font-size-navigation);\n font-family: var(--font-family-navigation);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n color: var(--base-color-", ");\n text-transform: uppercase;\n margin: 0;\n padding: 16px 20px 15px 5px;\n border: 0;\n border-radius: 0;\n display: block;\n width: 100%;\n text-align: left;\n background: ", ";\n cursor: pointer;\n &:hover {\n background: var(--base-color-", ");\n }\n @media ", " {\n padding: 16px 20px 15px 20px;\n }\n"])), exports.Colors.Black, function (_ref2) {
8150
+ var active = _ref2.active;
8151
+ return active ? "var(--base-color-" + exports.Colors.MidGrey + ")" : 'none';
8152
+ }, exports.Colors.MidGrey, devices.mobile);
8153
+ var MobileButton = /*#__PURE__*/styled__default.button(_templateObject4$y || (_templateObject4$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n line-height: var(--line-height-navigation);\n font-size: var(--font-size-navigation);\n font-family: var(--font-family-navigation);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n color: var(--base-color-", ");\n text-transform: uppercase;\n margin: 0;\n padding: 16px 46px 14px 20px;\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-radius: 0;\n display: none;\n width: 100%;\n text-align: left;\n cursor: pointer;\n position: relative;\n span {\n width: 25px;\n height: 25px;\n position: absolute;\n top: 50%;\n margin-top: -12px;\n right: 10px;\n }\n @media ", " {\n display: block;\n }\n"])), exports.Colors.Black, exports.Colors.White, exports.Colors.DarkGrey, devices.mobile);
8154
+
8155
+ /**
8156
+ * Vertical menu component uses for navigation
8157
+ * inside website chapter. It looks like a vertical
8158
+ * list with clickable items on desktop and dropdown
8159
+ * list on mobile.
8160
+ *
8161
+ * ## Menu items
8162
+ * Menu items should be passed as `items` prop. This
8163
+ * should be an array of objects. Each object should
8164
+ * have `text` (text displayed as a menu item) and
8165
+ * `onClick` (click handler function)
8166
+ *
8167
+ * ## Active menu item
8168
+ * Active menu item should be passed as component `activeItem`
8169
+ * prop. This indicates on which menu item should be highlighted
8170
+ * as active one. Should be equal to `text` prop from one of the `items`
8171
+ */
8172
+
8173
+ var AuxiliaryNav = function AuxiliaryNav(_ref) {
8174
+ var items = _ref.items,
8175
+ activeItem = _ref.activeItem;
8176
+
8177
+ var _useState = React.useState(false),
8178
+ mobileOpen = _useState[0],
8179
+ setMobileOpen = _useState[1];
8180
+
8181
+ var containerRef = React.useRef(null);
8182
+
8183
+ var mobileButtonClickHandler = function mobileButtonClickHandler() {
8184
+ setMobileOpen(function (prev) {
8185
+ return !prev;
8186
+ });
8187
+ };
8188
+
8189
+ var outsideClickHandler = function outsideClickHandler(event) {
8190
+ if (containerRef.current && !containerRef.current.contains(event.target)) {
8191
+ setMobileOpen(false);
8192
+ }
8193
+ };
8194
+
8195
+ React.useEffect(function () {
8196
+ document.addEventListener('mousedown', outsideClickHandler);
8197
+ return function () {
8198
+ document.removeEventListener('mousedown', outsideClickHandler);
8199
+ };
8200
+ }, [containerRef]);
8201
+ return /*#__PURE__*/React__default.createElement(MenuContainer$2, {
8202
+ ref: containerRef,
8203
+ "data-testid": "nav-menu-container"
8204
+ }, /*#__PURE__*/React__default.createElement(MobileButton, {
8205
+ mobileOpen: mobileOpen,
8206
+ onClick: mobileButtonClickHandler,
8207
+ "data-testid": "nav-menu-mobile-button"
8208
+ }, activeItem, /*#__PURE__*/React__default.createElement(Icon, {
8209
+ iconName: "DropdownArrow",
8210
+ direction: mobileOpen ? 'left' : 'right'
8211
+ })), /*#__PURE__*/React__default.createElement(MenuList, {
8212
+ mobileOpen: mobileOpen,
8213
+ "data-testid": "nav-menu-list"
8214
+ }, items.map(function (item, idx) {
8215
+ return /*#__PURE__*/React__default.createElement("li", {
8216
+ key: item.text + "-" + idx
8217
+ }, /*#__PURE__*/React__default.createElement(MenuItem$1, {
8218
+ onClick: item.onClick,
8219
+ active: item.text === activeItem,
8220
+ "data-testid": "nav-menu-item" + (item.text === activeItem ? '-active' : '')
8221
+ }, item.text));
8222
+ })));
8223
+ };
8224
+
8225
+ var _templateObject$1b, _templateObject2$S, _templateObject3$J, _templateObject4$z, _templateObject5$o, _templateObject6$j;
8226
+ var Container$2 = /*#__PURE__*/styled__default.div(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
8227
+ var Sections = /*#__PURE__*/styled__default.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
8228
+ var Section = /*#__PURE__*/styled__default.div(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background-color: ", ";\n"])), function (_ref) {
8548
8229
  var color = _ref.color;
8549
8230
  return "var(--base-color-" + color + ")";
8550
8231
  });
8551
- var BottomLine = /*#__PURE__*/styled__default.div(_templateObject4$y || (_templateObject4$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n"])));
8552
- var Text = /*#__PURE__*/styled__default.div(_templateObject5$p || (_templateObject5$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n"])), function (_ref2) {
8232
+ var BottomLine = /*#__PURE__*/styled__default.div(_templateObject4$z || (_templateObject4$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n"])));
8233
+ var Text = /*#__PURE__*/styled__default.div(_templateObject5$o || (_templateObject5$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n"])), function (_ref2) {
8553
8234
  var color = _ref2.color;
8554
8235
  return "var(--base-color-" + color + ")";
8555
8236
  });
8556
- var LabelText = /*#__PURE__*/styled__default.div(_templateObject6$k || (_templateObject6$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 1px;\n white-space: nowrap;\n color: ", ";\n"])), function (_ref3) {
8237
+ var LabelText = /*#__PURE__*/styled__default.div(_templateObject6$j || (_templateObject6$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 1px;\n white-space: nowrap;\n color: ", ";\n"])), function (_ref3) {
8557
8238
  var color = _ref3.color;
8558
8239
  return "var(--base-color-" + color + ")";
8559
8240
  });
@@ -8614,7 +8295,7 @@ var PasswordStrength = function PasswordStrength(_ref) {
8614
8295
  return index < activeSections ? 'password-strength-section-active' : 'password-strength-section';
8615
8296
  };
8616
8297
 
8617
- return /*#__PURE__*/React__default.createElement(Container$1, {
8298
+ return /*#__PURE__*/React__default.createElement(Container$2, {
8618
8299
  "data-testid": "password-strength-container"
8619
8300
  }, /*#__PURE__*/React__default.createElement(Sections, {
8620
8301
  "data-testid": "password-strength-sections"
@@ -8639,88 +8320,6 @@ var PasswordStrength = function PasswordStrength(_ref) {
8639
8320
  }, strengthLabel))));
8640
8321
  };
8641
8322
 
8642
- var _templateObject$1b, _templateObject2$S, _templateObject3$J, _templateObject4$z;
8643
- var MenuContainer$2 = /*#__PURE__*/styled__default.menu(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding: 0;\n margin: 0;\n"])));
8644
- var MenuList = /*#__PURE__*/styled__default.ul(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n list-style: none;\n border-right: 1px solid var(--base-color-", ");\n li {\n margin-left: -5px;\n @media ", " {\n margin-left: 0px;\n }\n }\n @media ", " {\n display: ", ";\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-top: 0;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n }\n"])), exports.Colors.LightGrey, devices.mobile, devices.mobile, function (_ref) {
8645
- var mobileOpen = _ref.mobileOpen;
8646
- return mobileOpen ? "block" : 'none';
8647
- }, exports.Colors.White, exports.Colors.DarkGrey);
8648
- var MenuItem$1 = /*#__PURE__*/styled__default.button(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n line-height: var(--line-height-navigation);\n font-size: var(--font-size-navigation);\n font-family: var(--font-family-navigation);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n color: var(--base-color-", ");\n text-transform: uppercase;\n margin: 0;\n padding: 16px 20px 15px 5px;\n border: 0;\n border-radius: 0;\n display: block;\n width: 100%;\n text-align: left;\n background: ", ";\n cursor: pointer;\n &:hover {\n background: var(--base-color-", ");\n }\n @media ", " {\n padding: 16px 20px 15px 20px;\n }\n"])), exports.Colors.Black, function (_ref2) {
8649
- var active = _ref2.active;
8650
- return active ? "var(--base-color-" + exports.Colors.MidGrey + ")" : 'none';
8651
- }, exports.Colors.MidGrey, devices.mobile);
8652
- var MobileButton = /*#__PURE__*/styled__default.button(_templateObject4$z || (_templateObject4$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n line-height: var(--line-height-navigation);\n font-size: var(--font-size-navigation);\n font-family: var(--font-family-navigation);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n color: var(--base-color-", ");\n text-transform: uppercase;\n margin: 0;\n padding: 16px 46px 14px 20px;\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-radius: 0;\n display: none;\n width: 100%;\n text-align: left;\n cursor: pointer;\n position: relative;\n span {\n width: 25px;\n height: 25px;\n position: absolute;\n top: 50%;\n margin-top: -12px;\n right: 10px;\n }\n @media ", " {\n display: block;\n }\n"])), exports.Colors.Black, exports.Colors.White, exports.Colors.DarkGrey, devices.mobile);
8653
-
8654
- /**
8655
- * Vertical menu component uses for navigation
8656
- * inside website chapter. It looks like a vertical
8657
- * list with clickable items on desktop and dropdown
8658
- * list on mobile.
8659
- *
8660
- * ## Menu items
8661
- * Menu items should be passed as `items` prop. This
8662
- * should be an array of objects. Each object should
8663
- * have `text` (text displayed as a menu item) and
8664
- * `onClick` (click handler function)
8665
- *
8666
- * ## Active menu item
8667
- * Active menu item should be passed as component `activeItem`
8668
- * prop. This indicates on which menu item should be highlighted
8669
- * as active one. Should be equal to `text` prop from one of the `items`
8670
- */
8671
-
8672
- var AuxiliaryNav = function AuxiliaryNav(_ref) {
8673
- var items = _ref.items,
8674
- activeItem = _ref.activeItem;
8675
-
8676
- var _useState = React.useState(false),
8677
- mobileOpen = _useState[0],
8678
- setMobileOpen = _useState[1];
8679
-
8680
- var containerRef = React.useRef(null);
8681
-
8682
- var mobileButtonClickHandler = function mobileButtonClickHandler() {
8683
- setMobileOpen(function (prev) {
8684
- return !prev;
8685
- });
8686
- };
8687
-
8688
- var outsideClickHandler = function outsideClickHandler(event) {
8689
- if (containerRef.current && !containerRef.current.contains(event.target)) {
8690
- setMobileOpen(false);
8691
- }
8692
- };
8693
-
8694
- React.useEffect(function () {
8695
- document.addEventListener('mousedown', outsideClickHandler);
8696
- return function () {
8697
- document.removeEventListener('mousedown', outsideClickHandler);
8698
- };
8699
- }, [containerRef]);
8700
- return /*#__PURE__*/React__default.createElement(MenuContainer$2, {
8701
- ref: containerRef,
8702
- "data-testid": "nav-menu-container"
8703
- }, /*#__PURE__*/React__default.createElement(MobileButton, {
8704
- mobileOpen: mobileOpen,
8705
- onClick: mobileButtonClickHandler,
8706
- "data-testid": "nav-menu-mobile-button"
8707
- }, activeItem, /*#__PURE__*/React__default.createElement(Icon, {
8708
- iconName: "DropdownArrow",
8709
- direction: mobileOpen ? 'left' : 'right'
8710
- })), /*#__PURE__*/React__default.createElement(MenuList, {
8711
- mobileOpen: mobileOpen,
8712
- "data-testid": "nav-menu-list"
8713
- }, items.map(function (item, idx) {
8714
- return /*#__PURE__*/React__default.createElement("li", {
8715
- key: item.text + "-" + idx
8716
- }, /*#__PURE__*/React__default.createElement(MenuItem$1, {
8717
- onClick: item.onClick,
8718
- active: item.text === activeItem,
8719
- "data-testid": "nav-menu-item" + (item.text === activeItem ? '-active' : '')
8720
- }, item.text));
8721
- })));
8722
- };
8723
-
8724
8323
  var UpsellSection = function UpsellSection(_ref) {
8725
8324
  var title = _ref.title,
8726
8325
  richText = _ref.richText,
@@ -8845,7 +8444,6 @@ var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$U || (_te
8845
8444
  var ContentWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
8846
8445
  var Overlay = /*#__PURE__*/styled__default(Grid)(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n align-content: center;\n background-color: rgba(0, 0, 0, 0.4);\n"])));
8847
8446
 
8848
- var _excluded$k = ["isOpen", "setIsOpen", "children", "appElementId"];
8849
8447
  var MAX_Z_INDEX = 9999999999;
8850
8448
 
8851
8449
  if (Modal.defaultStyles.content) {
@@ -8922,7 +8520,7 @@ var ModalWindow = function ModalWindow(_ref) {
8922
8520
  setIsOpen = _ref.setIsOpen,
8923
8521
  children = _ref.children,
8924
8522
  appElementId = _ref.appElementId,
8925
- modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8523
+ modalProps = _objectWithoutPropertiesLoose(_ref, ["isOpen", "setIsOpen", "children", "appElementId"]);
8926
8524
 
8927
8525
  var isMobile = useMobile();
8928
8526
  var customStyles = {