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

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,8 +10,6 @@ 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);
15
13
  var Modal = _interopDefault(require('react-modal'));
16
14
  var ScrollLock = _interopDefault(require('react-scrolllock'));
17
15
 
@@ -1271,6 +1269,24 @@ var Print = (function (_ref) {
1271
1269
  }));
1272
1270
  });
1273
1271
 
1272
+ var Seat = (function (_ref) {
1273
+ var _ref$color = _ref.color,
1274
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
1275
+ return /*#__PURE__*/React.createElement("svg", {
1276
+ width: "100%",
1277
+ height: "100%",
1278
+ viewBox: "0 0 24 24",
1279
+ fill: "none",
1280
+ xmlns: "http://www.w3.org/2000/svg"
1281
+ }, /*#__PURE__*/React.createElement("path", {
1282
+ d: "M17.5 7.8V4.9c0-2.7-2.2-4.9-4.9-4.9H7.2C4.5 0 2.3 2.2 2.3 4.9v2.9H0V20h4.2v-3.7h11.3V20h4.2V7.8h-2.2ZM3 4.8h.3v.1C3.3 2.8 5 1 7.2 1h5.4c2.2 0 3.9 1.8 3.9 3.9v2.8h-1v4.6H4.2V7.8H3v-3ZM1 19V8.7h2.2v3.6H1.9v4h1.3V19H1Zm1.9-3.6v-2h13.9v2H2.9ZM18.8 19h-2.2v-2.7h1.3v-4h-1.3V8.7h2.2V19Z",
1283
+ fill: color
1284
+ }), /*#__PURE__*/React.createElement("path", {
1285
+ d: "M3.3 7.8v-3H3v3h.3Z",
1286
+ fill: color
1287
+ }));
1288
+ });
1289
+
1274
1290
  var Secure = (function (_ref) {
1275
1291
  var _ref$color = _ref.color,
1276
1292
  color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
@@ -1289,6 +1305,21 @@ var Secure = (function (_ref) {
1289
1305
  }));
1290
1306
  });
1291
1307
 
1308
+ var Standing = (function (_ref) {
1309
+ var _ref$color = _ref.color,
1310
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
1311
+ return /*#__PURE__*/React.createElement("svg", {
1312
+ width: "100%",
1313
+ height: "100%",
1314
+ viewBox: "0 0 24 24",
1315
+ fill: "none",
1316
+ xmlns: "http://www.w3.org/2000/svg"
1317
+ }, /*#__PURE__*/React.createElement("path", {
1318
+ d: "M9.8 3.9c1.1 0 1.9-.9 1.9-1.9 0-1-.8-2-1.9-2-1.1 0-1.9.9-1.9 2s.9 1.9 1.9 1.9Zm0-2.9c.5 0 .9.4.9.9s-.4.9-.9.9-.9-.3-.9-.8.4-1 .9-1Zm2 3.2H8c-1.3 0-2.3 1-2.3 2.2v6.4h1.7V20h4.9v-7h1.8V6.4c0-1.2-1.1-2.2-2.3-2.2Zm1.3 7.8h-.8V7.4c0-.2-.2-.4-.5-.4-.2 0-.5.2-.5.4V19h-.9v-6.3c0-.2-.2-.4-.5-.4-.2 0-.5.2-.5.4V19h-1V7.4c0-.2-.2-.4-.5-.4-.2 0-.5.2-.5.4v4.5h-.7V6.5c0-.7.6-1.2 1.3-1.2h3.7c.7 0 1.3.5 1.3 1.2l.1 5.5Z",
1319
+ fill: color
1320
+ }));
1321
+ });
1322
+
1292
1323
  var Tickets = (function (_ref) {
1293
1324
  var _ref$color = _ref.color,
1294
1325
  color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
@@ -1310,6 +1341,21 @@ var Tickets = (function (_ref) {
1310
1341
  }));
1311
1342
  });
1312
1343
 
1344
+ var Wheelchair = (function (_ref) {
1345
+ var _ref$color = _ref.color,
1346
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
1347
+ return /*#__PURE__*/React.createElement("svg", {
1348
+ width: "100%",
1349
+ height: "100%",
1350
+ viewBox: "0 0 24 24",
1351
+ fill: "none",
1352
+ xmlns: "http://www.w3.org/2000/svg"
1353
+ }, /*#__PURE__*/React.createElement("path", {
1354
+ d: "M8.4 18.8c-1.1 0-2.2-.4-3-1.1-.8-.8-1.3-1.8-1.3-2.9-.1-1.6.9-3.2 2.3-3.9l-.4-1c-1.9.9-3 2.8-3 4.9.1 2.8 2.4 5.1 5.3 5.1h.2c2.6-.1 4.7-2.1 5.1-4.6l-1.1-.1c-.3 2-2 3.6-4.1 3.6ZM9.8 4.5c1.2 0 2.2-1 2.2-2.2C12 1.1 11 .1 9.8.1c-1.2 0-2.2 1-2.2 2.2 0 1.2.9 2.2 2.2 2.2Zm0-3.3c.6 0 1.1.5 1.1 1.1 0 .6-.5 1.1-1.1 1.1-.6 0-1.1-.5-1.1-1.1 0-.6.5-1.1 1.1-1.1Zm4.9 12c-.3-.5-.9-.8-1.6-.8h-2.6V6.3c0-.6-.5-1.2-1.1-1.2H6.2c-.5.1-.9.5-.9 1v3.2h1.1V6.2l2.9.1v7.2h3.8c.3 0 .5.1.6.3l3.4 5.4.9-.6-3.3-5.4Z",
1355
+ fill: color
1356
+ }));
1357
+ });
1358
+
1313
1359
  var BalletAndDance = (function (_ref) {
1314
1360
  var _ref$color = _ref.color,
1315
1361
  color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
@@ -2139,10 +2185,12 @@ var IconLibrary = {
2139
2185
  Remove: Remove,
2140
2186
  Restart: Restart,
2141
2187
  Search: Search,
2188
+ Seat: Seat,
2142
2189
  Secure: Secure,
2143
2190
  Settings: Settings,
2144
2191
  Shift: Shift,
2145
2192
  Space: Space,
2193
+ Standing: Standing,
2146
2194
  Star: Star,
2147
2195
  Subscribe: Subscribe,
2148
2196
  Subtitles: Subtitles,
@@ -2155,6 +2203,7 @@ var IconLibrary = {
2155
2203
  UserSignedIn: UserSignedIn,
2156
2204
  Volume: Volume,
2157
2205
  Watch: Watch,
2206
+ Wheelchair: Wheelchair,
2158
2207
  X: X,
2159
2208
  Youtube: Youtube
2160
2209
  };
@@ -2177,12 +2226,14 @@ var Icon = /*#__PURE__*/React.memo(function (_ref) {
2177
2226
  });
2178
2227
  Icon.displayName = 'Icon';
2179
2228
 
2229
+ var _excluded = ["children", "iconName", "iconDirection", "color"];
2230
+
2180
2231
  var Button = function Button(_ref) {
2181
2232
  var children = _ref.children,
2182
2233
  iconName = _ref.iconName,
2183
2234
  iconDirection = _ref.iconDirection,
2184
2235
  color = _ref.color,
2185
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color"]);
2236
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
2186
2237
 
2187
2238
  var truncatedString = children.substring(0, 30);
2188
2239
  return /*#__PURE__*/React__default.createElement(ButtonWrapper, Object.assign({}, rest, {
@@ -2250,9 +2301,11 @@ var AspectRatioWidth;
2250
2301
  ButtonType["Tertiary"] = "Tertiary";
2251
2302
  })(exports.ButtonType || (exports.ButtonType = {}));
2252
2303
 
2304
+ var _excluded$1 = ["children"];
2305
+
2253
2306
  var PrimaryButton = function PrimaryButton(_ref) {
2254
2307
  var children = _ref.children,
2255
- props = _objectWithoutPropertiesLoose(_ref, ["children"]);
2308
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2256
2309
 
2257
2310
  return /*#__PURE__*/React__default.createElement(PrimaryButtonWrapper, Object.assign({
2258
2311
  color: exports.Colors.White
@@ -2266,9 +2319,11 @@ var PrimaryButtonWrapper$1 = /*#__PURE__*/styled__default(Button)(_templateObjec
2266
2319
  return color ? "var(--base-color-" + color + ")" : theme.colors.primary;
2267
2320
  });
2268
2321
 
2322
+ var _excluded$2 = ["children"];
2323
+
2269
2324
  var SecondaryButton = function SecondaryButton(_ref) {
2270
2325
  var children = _ref.children,
2271
- props = _objectWithoutPropertiesLoose(_ref, ["children"]);
2326
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
2272
2327
 
2273
2328
  return /*#__PURE__*/React__default.createElement(PrimaryButtonWrapper$1, Object.assign({
2274
2329
  color: exports.Colors.Primary
@@ -2282,10 +2337,12 @@ var TertiaryButtonWrapper = /*#__PURE__*/styled__default.a(_templateObject$6 ||
2282
2337
  });
2283
2338
  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"])));
2284
2339
 
2340
+ var _excluded$3 = ["children", "color"];
2341
+
2285
2342
  var Button$1 = function Button(_ref) {
2286
2343
  var children = _ref.children,
2287
2344
  color = _ref.color,
2288
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "color"]);
2345
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2289
2346
 
2290
2347
  var truncatedString = children.substring(0, 100);
2291
2348
  return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({}, rest, {
@@ -3247,6 +3304,8 @@ var TabLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$l || (_templ
3247
3304
  });
3248
3305
  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"])));
3249
3306
 
3307
+ var _excluded$4 = ["children", "iconName", "iconDirection", "color", "hoverColor"];
3308
+
3250
3309
  var TabLink = function TabLink(_ref) {
3251
3310
  var children = _ref.children,
3252
3311
  iconName = _ref.iconName,
@@ -3255,7 +3314,7 @@ var TabLink = function TabLink(_ref) {
3255
3314
  color = _ref$color === void 0 ? exports.Colors.DarkGrey : _ref$color,
3256
3315
  _ref$hoverColor = _ref.hoverColor,
3257
3316
  hoverColor = _ref$hoverColor === void 0 ? exports.Colors.Primary : _ref$hoverColor,
3258
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color", "hoverColor"]);
3317
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3259
3318
 
3260
3319
  return /*#__PURE__*/React__default.createElement(TabLinkWrapper, Object.assign({
3261
3320
  color: color,
@@ -3305,6 +3364,7 @@ var TextAreaError = /*#__PURE__*/styled__default.div(_templateObject4$2 || (_tem
3305
3364
  return darkMode ? 'var(--base-color-white)' : 'var(--base-color-errorstate)';
3306
3365
  });
3307
3366
 
3367
+ var _excluded$5 = ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"];
3308
3368
  /**
3309
3369
  * An HTML textarea component for Chord.
3310
3370
  *
@@ -3366,7 +3426,7 @@ var TextArea = function TextArea(_ref) {
3366
3426
  maxLength = _ref$maxLength === void 0 ? 950 : _ref$maxLength,
3367
3427
  _ref$tabIndex = _ref.tabIndex,
3368
3428
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
3369
- textareaProps = _objectWithoutPropertiesLoose(_ref, ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"]);
3429
+ textareaProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3370
3430
 
3371
3431
  return /*#__PURE__*/React__default.createElement(GridItem, {
3372
3432
  columnStartDesktop: columnStartDesktop,
@@ -3401,7 +3461,7 @@ var InputWrapper = /*#__PURE__*/styled__default.div(_templateObject2$b || (_temp
3401
3461
  if (!width) return 'none';
3402
3462
  return width + 'px';
3403
3463
  });
3404
- var Input = /*#__PURE__*/styled__default.input(_templateObject3$6 || (_templateObject3$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n box-sizing: border-box;\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 width: 100%;\n height: 48px;\n padding-left: 20px;\n -moz-appearance: textfield;\n padding-right: ", ";\n outline: none;\n border: ", ";\n &:disabled {\n background-color: var(--base-color-lightgrey);\n border: 1px solid transparent;\n outline: none;\n }\n\n &:focus {\n outline: ", ";\n }\n\n /* remove search decoration */\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n display: none;\n }\n\n /* remove number decoration */\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), function (_ref2) {
3464
+ var Input = /*#__PURE__*/styled__default.input(_templateObject3$6 || (_templateObject3$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n box-sizing: border-box;\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 width: 100%;\n height: 48px;\n padding-left: 20px;\n -moz-appearance: textfield;\n padding-right: ", ";\n outline: none;\n border: ", ";\n &:disabled {\n background-color: var(--base-color-lightgrey);\n border: 1px solid transparent;\n outline: none;\n }\n\n &:focus {\n outline: ", ";\n }\n\n /* remove search decoration */\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n display: none; \n }\n\n /* remove number decoration */\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), function (_ref2) {
3405
3465
  var isPasswordField = _ref2.isPasswordField;
3406
3466
  if (isPasswordField) return "80px";
3407
3467
  return "20px";
@@ -3426,6 +3486,7 @@ var ErrorLabel = /*#__PURE__*/styled__default.div(_templateObject6 || (_template
3426
3486
  return "var(--base-color-errorstate)";
3427
3487
  });
3428
3488
 
3489
+ var _excluded$6 = ["label", "type", "error", "darkMode", "width"];
3429
3490
  /**
3430
3491
  * A text field component, that wraps around the native `<input />` element
3431
3492
  * and adds some extra states and information around it (i.e. a text and an error labels,
@@ -3473,7 +3534,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3473
3534
  _ref$darkMode = _ref.darkMode,
3474
3535
  darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
3475
3536
  width = _ref.width,
3476
- inputProps = _objectWithoutPropertiesLoose(_ref, ["label", "type", "error", "darkMode", "width"]);
3537
+ inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3477
3538
 
3478
3539
  var _useState = React.useState(false),
3479
3540
  showPassword = _useState[0],
@@ -3509,7 +3570,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3509
3570
  "data-testid": "text-field-input",
3510
3571
  ref: ref
3511
3572
  }, inputProps)), isPasswordField && /*#__PURE__*/React__default.createElement(ShowHideButton, {
3512
- type: "button",
3573
+ type: 'button',
3513
3574
  onClick: showHideClickHandler
3514
3575
  }, /*#__PURE__*/React__default.createElement(Overline, {
3515
3576
  level: 1
@@ -3531,12 +3592,14 @@ var TextLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$o || (_temp
3531
3592
  });
3532
3593
  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"])));
3533
3594
 
3595
+ var _excluded$7 = ["children", "iconName", "iconDirection", "color"];
3596
+
3534
3597
  var TextLink = function TextLink(_ref) {
3535
3598
  var children = _ref.children,
3536
3599
  iconName = _ref.iconName,
3537
3600
  iconDirection = _ref.iconDirection,
3538
3601
  color = _ref.color,
3539
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color"]);
3602
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3540
3603
 
3541
3604
  var truncatedString = children.substring(0, 30);
3542
3605
  return /*#__PURE__*/React__default.createElement(TextLinkWrapper, Object.assign({
@@ -5144,6 +5207,8 @@ var ContactNewsletter = function ContactNewsletter(_ref) {
5144
5207
  }, contact.title))));
5145
5208
  };
5146
5209
 
5210
+ var _excluded$8 = ["dataRoh"];
5211
+
5147
5212
  var Footer = function Footer(_ref) {
5148
5213
  var data = _ref.data;
5149
5214
  var policyLinks = data.policyLinks;
@@ -5153,7 +5218,7 @@ var Footer = function Footer(_ref) {
5153
5218
 
5154
5219
  var _data$artsLogo = data.artsLogo,
5155
5220
  artsDataRoh = _data$artsLogo.dataRoh,
5156
- artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, ["dataRoh"]);
5221
+ artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, _excluded$8);
5157
5222
 
5158
5223
  var additionalInfo = data.additionalInfo;
5159
5224
  return /*#__PURE__*/React__default.createElement(FooterSection, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
@@ -5208,6 +5273,8 @@ var ArrowsContainer = /*#__PURE__*/styled__default.div(_templateObject5$9 || (_t
5208
5273
  });
5209
5274
  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"])));
5210
5275
 
5276
+ var _excluded$9 = ["id", "text"];
5277
+
5211
5278
  var AnchorTabBar = function AnchorTabBar(_ref) {
5212
5279
  var tabs = _ref.tabs,
5213
5280
  onTabClick = _ref.onTabClick,
@@ -5422,7 +5489,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
5422
5489
  }, tabs.map(function (_ref4) {
5423
5490
  var id = _ref4.id,
5424
5491
  text = _ref4.text,
5425
- rest = _objectWithoutPropertiesLoose(_ref4, ["id", "text"]);
5492
+ rest = _objectWithoutPropertiesLoose(_ref4, _excluded$9);
5426
5493
 
5427
5494
  return /*#__PURE__*/React__default.createElement("li", {
5428
5495
  key: id
@@ -5478,6 +5545,9 @@ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_template
5478
5545
  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);
5479
5546
  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);
5480
5547
 
5548
+ var _excluded$a = ["text"],
5549
+ _excluded2 = ["text"];
5550
+
5481
5551
  var TitleWithCTA = function TitleWithCTA(_ref) {
5482
5552
  var title = _ref.title,
5483
5553
  links = _ref.links,
@@ -5487,11 +5557,11 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
5487
5557
 
5488
5558
  var _ref2 = (links == null ? void 0 : links[0]) || {},
5489
5559
  primaryButtonText = _ref2.text,
5490
- primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, ["text"]);
5560
+ primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
5491
5561
 
5492
5562
  var _ref3 = (links == null ? void 0 : links[1]) || {},
5493
5563
  secondaryButtonText = _ref3.text,
5494
- secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, ["text"]);
5564
+ secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded2);
5495
5565
 
5496
5566
  return /*#__PURE__*/React__default.createElement(TitleCTAGridWrapper, {
5497
5567
  sticky: sticky
@@ -5767,7 +5837,8 @@ var Accordions = function Accordions(_ref) {
5767
5837
  visibleStandfirst: accordion.visibleStandfirst,
5768
5838
  contentType: accordion.contentType,
5769
5839
  displayLevel: accordion.displayLevel,
5770
- semanticLevel: accordion.semanticLevel
5840
+ semanticLevel: accordion.semanticLevel,
5841
+ initOpen: accordion.initOpen
5771
5842
  }, accordion.children);
5772
5843
  }));
5773
5844
  };
@@ -5824,7 +5895,7 @@ var AnnouncementBanner = function AnnouncementBanner(_ref) {
5824
5895
  }))))));
5825
5896
  };
5826
5897
 
5827
- var _templateObject$N, _templateObject2$w, _templateObject3$p, _templateObject4$i, _templateObject5$c, _templateObject6$a, _templateObject7$7, _templateObject8$5, _templateObject9$2, _templateObject10$2, _templateObject11$1, _templateObject12;
5898
+ var _templateObject$N, _templateObject2$w, _templateObject3$p, _templateObject4$i, _templateObject5$c, _templateObject6$a, _templateObject7$7, _templateObject8$5, _templateObject9$2, _templateObject10$2, _templateObject11$1, _templateObject12, _templateObject13;
5828
5899
  var LENGTH_LARGE_TEXT = 28;
5829
5900
  var LENGTH_SMALL_TEXT$1 = 19;
5830
5901
  var LENGTH_TEXT_TABLET = 10;
@@ -5852,20 +5923,21 @@ var ContentContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$i ||
5852
5923
  var TitleContainer$4 = /*#__PURE__*/styled__default.div(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n\n @media ", " {\n display: none;\n }\n"])), devices.mobileAndTablet);
5853
5924
  var TitleContainerMobile = /*#__PURE__*/styled__default.div(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n display: none;\n\n @media ", " {\n display: block;\n }\n"])), devices.mobileAndTablet);
5854
5925
  var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin-top: var(--editorial-spacing-hover);\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n em {\n font-family: var(--font-family-body-italics);\n }\n"])));
5855
- var SubtitleContainer = /*#__PURE__*/styled__default.span(_templateObject8$5 || (_templateObject8$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n display: block;\n overflow-wrap: break-word;\n"])));
5856
- var LabelContainer = /*#__PURE__*/styled__default.div(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n visibility: ", ";\n width: fit-content;\n height: 30px;\n\n @media ", " {\n margin-left: ", ";\n }\n"])), function (_ref6) {
5926
+ var HighlightTextContainer = /*#__PURE__*/styled__default(TextContainer$1)(_templateObject8$5 || (_templateObject8$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-primary);\n margin-top: 4px;\n"])));
5927
+ var SubtitleContainer = /*#__PURE__*/styled__default.span(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n display: block;\n overflow-wrap: break-word;\n"])));
5928
+ var LabelContainer = /*#__PURE__*/styled__default.div(_templateObject10$2 || (_templateObject10$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n visibility: ", ";\n width: fit-content;\n height: 30px;\n\n @media ", " {\n margin-left: ", ";\n }\n"])), function (_ref6) {
5857
5929
  var isVisible = _ref6.isVisible;
5858
5930
  return isVisible ? "visible" : 'hidden';
5859
5931
  }, devices.mobile, function (_ref7) {
5860
5932
  var isGridCard = _ref7.isGridCard;
5861
5933
  return isGridCard ? '20px' : '0';
5862
5934
  });
5863
- var LabelElements = /*#__PURE__*/styled__default.div(_templateObject10$2 || (_templateObject10$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 30px;\n padding: 0 8px;\n background-color: ", ";\n color: var(--base-color-white);\n"])), function (_ref8) {
5935
+ var LabelElements = /*#__PURE__*/styled__default.div(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 30px;\n padding: 0 8px;\n background-color: ", ";\n color: var(--base-color-white);\n"])), function (_ref8) {
5864
5936
  var bgColor = _ref8.bgColor,
5865
5937
  theme = _ref8.theme;
5866
5938
  return bgColor ? "var(--base-color-" + bgColor + ")" : theme.colors.primary;
5867
5939
  });
5868
- var LabelIconWrapper = /*#__PURE__*/styled__default.div(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-left: 10px;\n\n svg {\n height: 24px;\n width: 24px;\n }\n"])));
5940
+ var LabelIconWrapper = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-left: 10px;\n\n svg {\n height: 24px;\n width: 24px;\n }\n"])));
5869
5941
 
5870
5942
  var getButtonsOpacity = function getButtonsOpacity(_ref9) {
5871
5943
  var onlyShowButtonsOnHover = _ref9.onlyShowButtonsOnHover;
@@ -5877,7 +5949,7 @@ var getButtonsMinHeight = function getButtonsMinHeight(_ref10) {
5877
5949
  return onlyShowButtonsOnHover ? 'min-height: unset;' : 'min-height: 120px;';
5878
5950
  };
5879
5951
 
5880
- var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n gap: 16px;\n margin-top: var(--editorial-margin-between);\n\n ", "\n\n @media ", " {\n ", ";\n margin-left: ", ";\n margin-right: ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), getButtonsOpacity, function (_ref11) {
5952
+ var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n gap: 16px;\n margin-top: var(--editorial-margin-between);\n\n ", "\n\n @media ", " {\n ", ";\n margin-left: ", ";\n margin-right: ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), getButtonsOpacity, function (_ref11) {
5881
5953
  var size = _ref11.size,
5882
5954
  primaryButtonTextLength = _ref11.primaryButtonTextLength,
5883
5955
  tertiaryButtonTextLength = _ref11.tertiaryButtonTextLength;
@@ -5972,6 +6044,9 @@ var truncateReactNodeString = function truncateReactNodeString(node, resultLengt
5972
6044
  return truncateHtmlString(nodeString, resultLength, addDots);
5973
6045
  };
5974
6046
 
6047
+ var _excluded$b = ["text"],
6048
+ _excluded2$1 = ["text"];
6049
+
5975
6050
  var _buttonTypeToButton;
5976
6051
  var LENGTH_LARGE_TEXT$1 = 28;
5977
6052
  var LENGTH_SMALL_TEXT$2 = 19;
@@ -5987,6 +6062,8 @@ var Card = function Card(_ref) {
5987
6062
  subtitle = _ref.subtitle,
5988
6063
  _ref$text = _ref.text,
5989
6064
  text = _ref$text === void 0 ? '' : _ref$text,
6065
+ _ref$highlightText = _ref.highlightText,
6066
+ highlightText = _ref$highlightText === void 0 ? '' : _ref$highlightText,
5990
6067
  links = _ref.links,
5991
6068
  _ref$tags = _ref.tags,
5992
6069
  tags = _ref$tags === void 0 ? [] : _ref$tags,
@@ -6022,7 +6099,7 @@ var Card = function Card(_ref) {
6022
6099
  var _ref2 = firstButton || {},
6023
6100
  _ref2$text = _ref2.text,
6024
6101
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
6025
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
6102
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$b);
6026
6103
 
6027
6104
  var primaryButtonTextTruncate = size === 'small' ? truncate(firstButtonText, LENGTH_SMALL_TEXT$2) : truncate(firstButtonText, LENGTH_LARGE_TEXT$1);
6028
6105
  var secondButton = links == null ? void 0 : links[1];
@@ -6030,7 +6107,7 @@ var Card = function Card(_ref) {
6030
6107
  var _ref3 = secondButton || {},
6031
6108
  _ref3$text = _ref3.text,
6032
6109
  secondButtonText = _ref3$text === void 0 ? '' : _ref3$text,
6033
- restSecondButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
6110
+ restSecondButton = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
6034
6111
 
6035
6112
  var tertiaryButtonTextTruncate = size === 'small' ? truncate(secondButtonText, LENGTH_SMALL_TEXT$2) : truncate(secondButtonText, LENGTH_LARGE_TEXT$1);
6036
6113
 
@@ -6099,7 +6176,9 @@ var Card = function Card(_ref) {
6099
6176
  dangerouslySetInnerHTML: {
6100
6177
  __html: truncatedText
6101
6178
  }
6102
- }))), links && /*#__PURE__*/React__default.createElement(ButtonsContainer$1, {
6179
+ }), highlightText && /*#__PURE__*/React__default.createElement(HighlightTextContainer, null, /*#__PURE__*/React__default.createElement(BodyText, {
6180
+ level: 1
6181
+ }, highlightText)))), links && /*#__PURE__*/React__default.createElement(ButtonsContainer$1, {
6103
6182
  ref: node,
6104
6183
  "data-testid": "buttonscontainer",
6105
6184
  size: size,
@@ -6143,6 +6222,7 @@ var Cards = function Cards(_ref) {
6143
6222
  title: card.title,
6144
6223
  subtitle: card.subtitle,
6145
6224
  text: card.text,
6225
+ highlightText: card.highlightText,
6146
6226
  links: card.links,
6147
6227
  tags: card.tags,
6148
6228
  withContinueWatching: card.withContinueWatching,
@@ -6534,6 +6614,8 @@ var LogoWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject6$c || (_tem
6534
6614
  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);
6535
6615
  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"])));
6536
6616
 
6617
+ var _excluded$c = ["text"];
6618
+
6537
6619
  var PageHeading = function PageHeading(_ref) {
6538
6620
  var title = _ref.title,
6539
6621
  text = _ref.text,
@@ -6544,7 +6626,7 @@ var PageHeading = function PageHeading(_ref) {
6544
6626
 
6545
6627
  var _ref2 = link || {},
6546
6628
  linkText = _ref2.text,
6547
- restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
6629
+ restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
6548
6630
 
6549
6631
  var truncatedText = text == null ? void 0 : text.substring(0, 250);
6550
6632
  var truncatedTitle = title && title.substring(0, 40);
@@ -6572,9 +6654,11 @@ var PageHeading = function PageHeading(_ref) {
6572
6654
  }, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, restLink), linkText)) : null));
6573
6655
  };
6574
6656
 
6657
+ var _excluded$d = ["link"];
6658
+
6575
6659
  var PageHeadingCore = function PageHeadingCore(_ref) {
6576
6660
  var link = _ref.link,
6577
- rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
6661
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
6578
6662
 
6579
6663
  var coreLink = link && _extends({}, link, {
6580
6664
  color: exports.Colors.White,
@@ -6588,9 +6672,11 @@ var PageHeadingCore = function PageHeadingCore(_ref) {
6588
6672
  })));
6589
6673
  };
6590
6674
 
6675
+ var _excluded$e = ["link"];
6676
+
6591
6677
  var PageHeadingCinema = function PageHeadingCinema(_ref) {
6592
6678
  var link = _ref.link,
6593
- rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
6679
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
6594
6680
 
6595
6681
  var cinemaLink = link && _extends({}, link, {
6596
6682
  color: exports.Colors.Black,
@@ -6614,6 +6700,8 @@ var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$d || (_tem
6614
6700
  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);
6615
6701
  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);
6616
6702
 
6703
+ var _excluded$f = ["text"];
6704
+
6617
6705
  var PageHeadingImpact = function PageHeadingImpact(_ref) {
6618
6706
  var children = _ref.children,
6619
6707
  text = _ref.text,
@@ -6630,7 +6718,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
6630
6718
 
6631
6719
  var _ref2 = link || {},
6632
6720
  linkText = _ref2.text,
6633
- restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
6721
+ restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
6634
6722
 
6635
6723
  return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
6636
6724
  bgUrlDesktop: bgUrlDesktop,
@@ -6723,9 +6811,11 @@ var PageHeadingPanel = function PageHeadingPanel(_ref) {
6723
6811
  var _templateObject$W;
6724
6812
  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"])));
6725
6813
 
6814
+ var _excluded$g = ["link"];
6815
+
6726
6816
  var PageHeadingStream = function PageHeadingStream(_ref) {
6727
6817
  var link = _ref.link,
6728
- rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
6818
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$g);
6729
6819
 
6730
6820
  var streamLink = link && _extends({}, link, {
6731
6821
  color: exports.Colors.Black,
@@ -6874,7 +6964,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
6874
6964
  var isIOS = function isIOS() {
6875
6965
  try {
6876
6966
  console.warn('Do not use this on server side rendering, it may throw an error.');
6877
- if (typeof navigator === undefined) return false;
6967
+ if (typeof navigator === 'undefined') return false;
6878
6968
  return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) || // iPad on iOS 13 detection
6879
6969
  navigator.userAgent.includes('Mac') && 'ontouchend' in document;
6880
6970
  } catch (e) {
@@ -6890,7 +6980,7 @@ var useIOS = function useIOS() {
6890
6980
  setIOS = _useState[1];
6891
6981
 
6892
6982
  React.useEffect(function () {
6893
- if (typeof navigator === undefined) return;
6983
+ if (typeof navigator === 'undefined') return;
6894
6984
  setIOS(isIOS());
6895
6985
  }, []);
6896
6986
  return IOS;
@@ -6919,6 +7009,8 @@ var useMobile = function useMobile() {
6919
7009
  return mobile;
6920
7010
  };
6921
7011
 
7012
+ var _excluded$h = ["text"];
7013
+
6922
7014
  var useResponsiveVideo = function useResponsiveVideo(video, poster) {
6923
7015
  var mobileVideo = video.mobile || video.desktop;
6924
7016
  var desktopVideo = video.desktop || video.mobile;
@@ -7033,7 +7125,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
7033
7125
 
7034
7126
  var _ref5 = link || {},
7035
7127
  linkText = _ref5.text,
7036
- restLink = _objectWithoutPropertiesLoose(_ref5, ["text"]);
7128
+ restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$h);
7037
7129
 
7038
7130
  var titleSize = title && title.length > 20 ? 4 : 3;
7039
7131
  var video = {
@@ -7209,8 +7301,8 @@ var PeopleListing = function PeopleListing(_ref) {
7209
7301
  var _templateObject$_, _templateObject2$I, _templateObject3$A, _templateObject4$s;
7210
7302
  var ReplacementWrapper = /*#__PURE__*/styled__default.div(_templateObject$_ || (_templateObject$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n"])));
7211
7303
  var CreditListingWrapper = /*#__PURE__*/styled__default(PeopleListingGrid)(_templateObject2$I || (_templateObject2$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n p {\n line-height: 1.5;\n }\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"])));
7304
+ 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"])));
7305
+ 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"])));
7214
7306
 
7215
7307
  var getConcatenatedPropLength = function getConcatenatedPropLength(array, prop) {
7216
7308
  return array.reduce(function (acc, item) {
@@ -7221,12 +7313,18 @@ var getConcatenatedPropLength = function getConcatenatedPropLength(array, prop)
7221
7313
  var concatenateMusicTitle = function concatenateMusicTitle(musicTitle) {
7222
7314
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, musicTitle.map(function (title, index) {
7223
7315
  if (musicTitle.length > 1 && index === musicTitle.length - 1) {
7224
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, ' ', "and ", /*#__PURE__*/React__default.createElement("i", null, title));
7316
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, ' ', "and ", /*#__PURE__*/React__default.createElement("i", {
7317
+ key: index
7318
+ }, title));
7225
7319
  } else if (index > 0) {
7226
- return /*#__PURE__*/React__default.createElement("i", null, ", ", title);
7320
+ return /*#__PURE__*/React__default.createElement("i", {
7321
+ key: index
7322
+ }, ", ", title);
7227
7323
  }
7228
7324
 
7229
- return /*#__PURE__*/React__default.createElement("i", null, title);
7325
+ return /*#__PURE__*/React__default.createElement("i", {
7326
+ key: index
7327
+ }, title);
7230
7328
  }));
7231
7329
  };
7232
7330
 
@@ -7278,7 +7376,7 @@ var CreditListing = function CreditListing(_ref) {
7278
7376
  }));
7279
7377
  };
7280
7378
 
7281
- var _templateObject$$, _templateObject2$J, _templateObject3$B, _templateObject4$t, _templateObject5$l, _templateObject6$g, _templateObject7$c, _templateObject8$9, _templateObject9$4, _templateObject10$4, _templateObject11$2, _templateObject12$1, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
7379
+ var _templateObject$$, _templateObject2$J, _templateObject3$B, _templateObject4$t, _templateObject5$l, _templateObject6$g, _templateObject7$c, _templateObject8$9, _templateObject9$4, _templateObject10$4, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
7282
7380
  var LENGTH_TEXT = 28;
7283
7381
  var LENGTH_TEXT_TABLET$1 = 12;
7284
7382
  var GridTemplateImageToLeft = "'left left left left left left left left . right right right right right . .'";
@@ -7345,7 +7443,7 @@ var ExtraContentWrapper = /*#__PURE__*/styled__default.div(_templateObject9$4 ||
7345
7443
  var IconWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject10$4 || (_templateObject10$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n position: absolute;\n top: 25px;\n right: 35px;\n width: 24px;\n height: 24px;\n\n @media ", " {\n top: 30px;\n right: 30px;\n }\n\n @media ", " {\n top: 3px;\n right: 20px;\n }\n"])), devices.tablet, devices.mobile);
7346
7444
  var PrimaryButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject11$2 || (_templateObject11$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--button-height);\n\n @media ", " {\n width: 100%;\n }\n"])), devices.mobile);
7347
7445
  var MobileTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n margin: 0 50px 0 20px;\n\n h2,\n h3 {\n margin: 0;\n }\n\n @media ", " {\n display: block;\n }\n"])), devices.mobile);
7348
- var PromoWithTagsTypeTags = /*#__PURE__*/styled__default(TypeTags)(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7446
+ var PromoWithTagsTypeTags = /*#__PURE__*/styled__default(TypeTags)(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7349
7447
  var PromoWithTagsHeader = /*#__PURE__*/styled__default(Header)(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7350
7448
  var PromoWithTagsTextLink = /*#__PURE__*/styled__default(TextLink)(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7351
7449
  var asCardOverrides = /*#__PURE__*/styled.css(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", " {\n font-size: var(--font-size-subtitle-2);\n }\n\n ", " {\n font-size: var(--font-size-overline-1);\n }\n\n ", " {\n flex-direction: row;\n @media ", " {\n flex-direction: row;\n }\n }\n\n ", " {\n font-size: var(--font-size-overline-2);\n font-weight: var(--font-weight-overline-2);\n line-height: var(--line-height-overline-2);\n letter-spacing: var(--letter-spacing-overline-2);\n }\n"])), PromoWithTagsSubtitle, PromoWithTagsTypeTags, ButtonsContainer$2, devices.tablet, PromoWithTagsTextLink);
@@ -7367,6 +7465,10 @@ var PromoWithTagsContainer = /*#__PURE__*/styled__default.div(_templateObject19
7367
7465
  var TimerWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
7368
7466
  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);
7369
7467
 
7468
+ var _excluded$i = ["text"],
7469
+ _excluded2$2 = ["text"],
7470
+ _excluded3 = ["text"];
7471
+
7370
7472
  var _buttonTypeToButton$1;
7371
7473
  var LENGTH_TEXT$1 = 28;
7372
7474
  var LENGTH_TEXT_PARAGRAPH = 130;
@@ -7437,7 +7539,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
7437
7539
  var _ref2 = firstButton || {},
7438
7540
  _ref2$text = _ref2.text,
7439
7541
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
7440
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
7542
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$i);
7441
7543
 
7442
7544
  var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
7443
7545
  var secondButton = links == null ? void 0 : links[1];
@@ -7445,7 +7547,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
7445
7547
  var _ref3 = secondButton || {},
7446
7548
  _ref3$text = _ref3.text,
7447
7549
  secondButtonText = _ref3$text === void 0 ? '' : _ref3$text,
7448
- restSecondButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
7550
+ restSecondButton = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
7449
7551
 
7450
7552
  var secondButtonTextTruncate = truncate(secondButtonText, LENGTH_TEXT$1);
7451
7553
  var textTruncate = asCard ? truncate(text || '', LENGTH_TEXT_PARAGRAPH) : text;
@@ -7454,7 +7556,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
7454
7556
  var textLinkItems = textLinks ? textLinks.map(function (link, index) {
7455
7557
  var _link$text = link.text,
7456
7558
  textLinkText = _link$text === void 0 ? '' : _link$text,
7457
- restTextLink = _objectWithoutPropertiesLoose(link, ["text"]);
7559
+ restTextLink = _objectWithoutPropertiesLoose(link, _excluded3);
7458
7560
 
7459
7561
  return /*#__PURE__*/React__default.createElement(TextLinkWrapper$2, {
7460
7562
  key: index
@@ -7612,6 +7714,8 @@ var ButtonsContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$d ||
7612
7714
  return '';
7613
7715
  });
7614
7716
 
7717
+ var _excluded$j = ["text"],
7718
+ _excluded2$3 = ["text"];
7615
7719
  var LENGTH_TEXT$3 = 28;
7616
7720
 
7617
7721
  var PromoWithTitle = function PromoWithTitle(_ref) {
@@ -7637,7 +7741,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
7637
7741
  var _ref2 = primaryButton || {},
7638
7742
  _ref2$text = _ref2.text,
7639
7743
  primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
7640
- restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
7744
+ restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
7641
7745
 
7642
7746
  var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
7643
7747
  var tertiaryButton = links == null ? void 0 : links[1];
@@ -7645,7 +7749,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
7645
7749
  var _ref3 = tertiaryButton || {},
7646
7750
  _ref3$text = _ref3.text,
7647
7751
  tertiaryButtonText = _ref3$text === void 0 ? '' : _ref3$text,
7648
- restTertiaryButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
7752
+ restTertiaryButton = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
7649
7753
 
7650
7754
  var tertiaryButtonTextTruncate = truncate(tertiaryButtonText, LENGTH_TEXT$3);
7651
7755
  return /*#__PURE__*/React__default.createElement(PromoWithTitleGrid, {
@@ -7818,72 +7922,426 @@ var SectionTitle = function SectionTitle(_ref) {
7818
7922
  }, description))));
7819
7923
  };
7820
7924
 
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';
7925
+ var _templateObject$14, _templateObject2$M, _templateObject3$E, _templateObject4$v, _templateObject5$n, _templateObject6$i, _templateObject7$e, _templateObject8$a, _templateObject9$5, _templateObject10$5, _templateObject11$3;
7926
+ 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) {
7927
+ var theme = _ref.theme;
7928
+ return "3px solid " + theme.colors.lapisLazuli;
7827
7929
  }, function (_ref2) {
7828
- var error = _ref2.error;
7829
- if (error !== undefined) return "1px solid var(--base-color-errorstate)";
7830
- return "1px solid var(--base-color-darkgrey)";
7930
+ var theme = _ref2.theme;
7931
+ return theme.colors.lightgrey;
7831
7932
  }, function (_ref3) {
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)";
7839
- });
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)";
7933
+ var theme = _ref3.theme;
7934
+ return theme.colors.lightgrey;
7844
7935
  });
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)";
7936
+ var borderStyles = /*#__PURE__*/styled.css(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 0;\n outline: 1px solid ", ";\n"])), function (_ref4) {
7937
+ var theme = _ref4.theme;
7938
+ return theme.colors.darkgrey;
7849
7939
  });
7940
+ var noMarginAndPaddingStyles = /*#__PURE__*/styled.css(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n"])));
7941
+ var listItemStyles = /*#__PURE__*/styled.css(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n list-style: none;\n user-select: none;\n"])));
7942
+ var ArrowIcon = /*#__PURE__*/styled__default(Icon).attrs(function (_ref5) {
7943
+ var theme = _ref5.theme;
7944
+ return {
7945
+ iconName: 'DropdownArrow',
7946
+ color: theme.colors.black,
7947
+ title: 'Select Arrow'
7948
+ };
7949
+ })(_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"])));
7950
+ 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);
7951
+ var SelectWrapper = /*#__PURE__*/styled__default.div(_templateObject7$e || (_templateObject7$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n height: inherit;\n"])), noMarginAndPaddingStyles);
7952
+ var Options = /*#__PURE__*/styled__default.div(_templateObject8$a || (_templateObject8$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n z-index: 1;\n\n ", "\n ", "\n"])), noMarginAndPaddingStyles, borderStyles);
7953
+ var Option = /*#__PURE__*/styled__default.li(_templateObject9$5 || (_templateObject9$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n\n ", "\n"])), noMarginAndPaddingStyles, listItemStyles, function (_ref6) {
7954
+ var theme = _ref6.theme,
7955
+ hover = _ref6.hover;
7956
+ var _theme$colors = theme.colors,
7957
+ lightgrey = _theme$colors.lightgrey,
7958
+ midgrey = _theme$colors.midgrey;
7959
+ if (hover) return "background-color: " + midgrey;
7960
+ return "\n background-color: " + lightgrey + ";\n &:hover { background-color: " + midgrey + " }\n ";
7961
+ });
7962
+
7963
+ var selectStyles = function selectStyles(width, height) {
7964
+ 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);
7965
+ };
7850
7966
 
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
- }));
7967
+ 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) {
7968
+ var width = _ref7.width,
7969
+ height = _ref7.height;
7970
+ return selectStyles(width === 'default' ? "354px" : width + "px", height === 'default' ? "48px" : height + "px");
7971
+ }, stateStyles, noMarginAndPaddingStyles, listItemStyles, borderStyles, ArrowIcon);
7972
+
7973
+ var useKeyboardAccessibility = function useKeyboardAccessibility(_ref) {
7974
+ var selectRef = _ref.selectRef,
7975
+ optionsRef = _ref.optionsRef,
7976
+ shouldHighlightOption = _ref.shouldHighlightOption;
7977
+
7978
+ var _useState = React.useState(-1),
7979
+ itemToHighlight = _useState[0],
7980
+ setItemToHighlight = _useState[1];
7981
+
7982
+ var clampIndex = function clampIndex(index) {
7983
+ if (index < -1) return -1;
7984
+ if (index > optionsRef.current.length - 1) return optionsRef.current.length - 1;
7985
+ return index;
7986
+ };
7987
+
7988
+ var highlightNextOption = function highlightNextOption() {
7989
+ return setItemToHighlight(function (prev) {
7990
+ return clampIndex(prev + 1);
7991
+ });
7992
+ };
7993
+
7994
+ var highlightPrevOption = function highlightPrevOption() {
7995
+ return setItemToHighlight(function (prev) {
7996
+ return clampIndex(prev - 1);
7997
+ });
7998
+ };
7999
+
8000
+ var reset = function reset() {
8001
+ var _selectRef$current;
8002
+
8003
+ (_selectRef$current = selectRef.current) == null ? void 0 : _selectRef$current.blur();
8004
+ setItemToHighlight(-1);
8005
+ };
8006
+
8007
+ var handleKeyUp = function handleKeyUp(event) {
8008
+ if (!shouldHighlightOption) return;
8009
+ var shouldHighlightOptionNext = event.key === 'ArrowDown';
8010
+ var shouldHighlightOptionPrev = event.key === 'ArrowUp';
8011
+ if (shouldHighlightOptionNext) return highlightNextOption();
8012
+ if (shouldHighlightOptionPrev) return highlightPrevOption();
8013
+ };
8014
+
8015
+ var preventScrollingWhileNavigating = function preventScrollingWhileNavigating(event) {
8016
+ if (!shouldHighlightOption) return;
8017
+ if (!['ArrowDown', 'ArrowUp'].includes(event.key)) return;
8018
+ event.preventDefault();
8019
+ };
8020
+
8021
+ var handleHighlighted = function handleHighlighted(cb) {
8022
+ return function (event) {
8023
+ if (itemToHighlight === -1) return;
8024
+ if (event.key !== 'Enter') return;
8025
+ cb(itemToHighlight);
8026
+ reset();
8027
+ };
8028
+ };
8029
+
8030
+ React.useEffect(function () {
8031
+ if (shouldHighlightOption) return;
8032
+ reset();
8033
+ }, [shouldHighlightOption]);
8034
+ return {
8035
+ handleKeyUp: handleKeyUp,
8036
+ preventScrollingWhileNavigating: preventScrollingWhileNavigating,
8037
+ handleHighlighted: handleHighlighted,
8038
+ itemToHighlight: itemToHighlight
8039
+ };
7855
8040
  };
7856
8041
 
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"]);
8042
+ var useVisualAccessibility = function useVisualAccessibility(_ref2) {
8043
+ var selectRef = _ref2.selectRef,
8044
+ isSelectDisabled = _ref2.isSelectDisabled;
7865
8045
 
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, {
7872
- width: width,
7873
- error: error
7874
- }, /*#__PURE__*/React__default.createElement(ReactSelect__default, Object.assign({
7875
- components: {
7876
- DropdownIndicator: DropdownIndicator
8046
+ var addFocusClass = function addFocusClass() {
8047
+ var _selectRef$current2;
8048
+
8049
+ (_selectRef$current2 = selectRef.current) == null ? void 0 : _selectRef$current2.classList.add('focus');
8050
+ };
8051
+
8052
+ var removeFocusClass = function removeFocusClass() {
8053
+ var _selectRef$current3;
8054
+
8055
+ (_selectRef$current3 = selectRef.current) == null ? void 0 : _selectRef$current3.classList.remove('focus');
8056
+ };
8057
+
8058
+ var toggleFocus = function toggleFocus() {
8059
+ var _selectRef$current4;
8060
+
8061
+ if ((_selectRef$current4 = selectRef.current) != null && _selectRef$current4.classList.contains('focus')) removeFocusClass();else addFocusClass();
8062
+ };
8063
+
8064
+ var withClickAwayHandler = function withClickAwayHandler(cb) {
8065
+ return function (event) {
8066
+ if (!selectRef.current) return;
8067
+ if (selectRef.current.contains(event.target)) return;
8068
+ removeFocusClass();
8069
+ cb();
8070
+ };
8071
+ };
8072
+
8073
+ React.useEffect(function () {
8074
+ if (!selectRef.current) return;
8075
+
8076
+ if (isSelectDisabled) {
8077
+ selectRef.current.classList.add('disabled');
8078
+ } else selectRef.current.classList.remove('disabled');
8079
+ }, [isSelectDisabled]);
8080
+ return {
8081
+ withClickAwayHandler: withClickAwayHandler,
8082
+ toggleFocus: toggleFocus,
8083
+ addFocusClass: addFocusClass,
8084
+ removeFocusClass: removeFocusClass
8085
+ };
8086
+ };
8087
+
8088
+ var useAccessibility = function useAccessibility(props) {
8089
+ var selectRef = props.selectRef;
8090
+
8091
+ var _useKeyboardAccessibi = useKeyboardAccessibility(props),
8092
+ handleKeyUp = _useKeyboardAccessibi.handleKeyUp,
8093
+ preventScrollingWhileNavigating = _useKeyboardAccessibi.preventScrollingWhileNavigating,
8094
+ handleHighlighted = _useKeyboardAccessibi.handleHighlighted,
8095
+ itemToHighlight = _useKeyboardAccessibi.itemToHighlight;
8096
+
8097
+ var _useVisualAccessibili = useVisualAccessibility(props),
8098
+ addFocusClass = _useVisualAccessibili.addFocusClass,
8099
+ removeFocusClass = _useVisualAccessibili.removeFocusClass,
8100
+ toggleFocus = _useVisualAccessibili.toggleFocus,
8101
+ withClickAwayHandler = _useVisualAccessibili.withClickAwayHandler;
8102
+
8103
+ React.useEffect(function () {
8104
+ if (!selectRef.current) return;
8105
+ selectRef.current.addEventListener('keydown', preventScrollingWhileNavigating);
8106
+ selectRef.current.addEventListener('keyup', handleKeyUp);
8107
+ selectRef.current.addEventListener('click', toggleFocus);
8108
+ selectRef.current.addEventListener('focus', addFocusClass);
8109
+ selectRef.current.addEventListener('blur', removeFocusClass);
8110
+ return function () {
8111
+ var _selectRef$current5, _selectRef$current6, _selectRef$current7, _selectRef$current8, _selectRef$current9;
8112
+
8113
+ (_selectRef$current5 = selectRef.current) == null ? void 0 : _selectRef$current5.removeEventListener('keydown', preventScrollingWhileNavigating);
8114
+ (_selectRef$current6 = selectRef.current) == null ? void 0 : _selectRef$current6.removeEventListener('keyup', handleKeyUp);
8115
+ (_selectRef$current7 = selectRef.current) == null ? void 0 : _selectRef$current7.removeEventListener('click', toggleFocus);
8116
+ (_selectRef$current8 = selectRef.current) == null ? void 0 : _selectRef$current8.removeEventListener('focus', addFocusClass);
8117
+ (_selectRef$current9 = selectRef.current) == null ? void 0 : _selectRef$current9.removeEventListener('blur', removeFocusClass);
8118
+ };
8119
+ });
8120
+ return {
8121
+ withClickAwayHandler: withClickAwayHandler,
8122
+ handleHighlighted: handleHighlighted,
8123
+ itemToHighlight: itemToHighlight
8124
+ };
8125
+ };
8126
+ /**
8127
+ * A select component, created using <ul> and <li> elements, with bespoke accessibility
8128
+ * logic.
8129
+ *
8130
+ * # Usage
8131
+ * ## Defining a component that uses a typical Select element
8132
+ * ```tsx
8133
+ * const MyComponent = () => {
8134
+ * const handleSelect = (value: number, text: string) => {
8135
+ * console.log("Selected", value);
8136
+ * };
8137
+ *
8138
+ * return <>
8139
+ * <Select
8140
+ * label="This is a label"
8141
+ * options={[
8142
+ * { text: "Option 1", value: 1 },
8143
+ * { text: "Option 2", value: 2 },
8144
+ * ]}
8145
+ * onSelect={handleSelect}
8146
+ * />
8147
+ * </>
8148
+ * }
8149
+ * ```
8150
+ *
8151
+ * ## Defining a component that uses a disabled Select element
8152
+ * ```tsx
8153
+ * const MyComponent = () => {
8154
+ * const handleSelect = (value: number, text: string) => {
8155
+ * console.log("Selected", value);
8156
+ * };
8157
+ *
8158
+ * return <>
8159
+ * <Select
8160
+ * disabled // Select component disabled explicitely
8161
+ * label="This is a label"
8162
+ * options={[
8163
+ * { text: "Option 1", value: 1 },
8164
+ * { text: "Option 2", value: 2 },
8165
+ * ]}
8166
+ * onSelect={handleSelect}
8167
+ * />
8168
+ * <Select
8169
+ * label="This is a label"
8170
+ * options={[]} // Select component disabled implicitely by passing an empty array of options
8171
+ * onSelect={handleSelect}
8172
+ * />
8173
+ * </>
8174
+ * }
8175
+ * ```
8176
+ *
8177
+ * ## Defining a component with a non-labelled Select element
8178
+ * ```tsx
8179
+ * const MyComponent = () => {
8180
+ * const handleSelect = (value: number, text: string) => {
8181
+ * console.log("Selected", value);
8182
+ * };
8183
+ *
8184
+ * return <>
8185
+ * <Select
8186
+ * label=""
8187
+ * options={[
8188
+ * { text: "Option 1", value: 1 },
8189
+ * { text: "Option 2", value: 2 },
8190
+ * ]}
8191
+ * onSelect={handleSelect}
8192
+ * />
8193
+ * </>
8194
+ * }
8195
+ * ```
8196
+ *
8197
+ * ## Changing the dimensions of a Select element (px)
8198
+ * ```tsx
8199
+ * const MyComponent = () => {
8200
+ * const handleSelect = (value: number, text: string) => {
8201
+ * console.log("Selected", value);
8202
+ * };
8203
+ *
8204
+ * const selectWidthPx = 100;
8205
+ * const selectHeightPx = 27;
8206
+ *
8207
+ * return <>
8208
+ * <Select
8209
+ * label="This is a label"
8210
+ * options={[
8211
+ * { text: "Option 1", value: 1 },
8212
+ * { text: "Option 2", value: 2 },
8213
+ * ]}
8214
+ * onSelect={handleSelect}
8215
+ * width={selectWidthPx}
8216
+ * height={selectHeightPx}
8217
+ * />
8218
+ * </>
8219
+ * }
8220
+ * ```
8221
+ */
8222
+
8223
+
8224
+ function Select(_ref3) {
8225
+ var _ref4, _selectedValue$text, _options$;
8226
+
8227
+ var label = _ref3.label,
8228
+ options = _ref3.options,
8229
+ onSelect = _ref3.onSelect,
8230
+ _ref3$disabled = _ref3.disabled,
8231
+ disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
8232
+ _ref3$resetWhenOption = _ref3.resetWhenOptionsUpdate,
8233
+ resetWhenOptionsUpdate = _ref3$resetWhenOption === void 0 ? false : _ref3$resetWhenOption,
8234
+ _ref3$width = _ref3.width,
8235
+ width = _ref3$width === void 0 ? 'default' : _ref3$width,
8236
+ _ref3$height = _ref3.height,
8237
+ height = _ref3$height === void 0 ? 'default' : _ref3$height;
8238
+ var selectRef = React.useRef(null);
8239
+ var optionsRef = React.useRef([]);
8240
+
8241
+ var _useState2 = React.useState(null),
8242
+ selectedValue = _useState2[0],
8243
+ setSelectedValue = _useState2[1];
8244
+
8245
+ var _useState3 = React.useState(false),
8246
+ isOpen = _useState3[0],
8247
+ setIsOpen = _useState3[1];
8248
+
8249
+ var isDisabled = disabled || options.length === 0;
8250
+
8251
+ var _useAccessibility = useAccessibility({
8252
+ selectRef: selectRef,
8253
+ optionsRef: optionsRef,
8254
+ shouldHighlightOption: isOpen,
8255
+ isSelectDisabled: isDisabled
8256
+ }),
8257
+ withClickAwayHandler = _useAccessibility.withClickAwayHandler,
8258
+ handleHighlighted = _useAccessibility.handleHighlighted,
8259
+ itemToHighlight = _useAccessibility.itemToHighlight;
8260
+
8261
+ var openSelect = function openSelect() {
8262
+ return setIsOpen(true);
8263
+ };
8264
+
8265
+ var closeSelect = function closeSelect() {
8266
+ return setIsOpen(false);
8267
+ };
8268
+
8269
+ var toggleSelect = function toggleSelect() {
8270
+ return setIsOpen(function (prev) {
8271
+ return !prev;
8272
+ });
8273
+ };
8274
+
8275
+ var closeSelectOnBlur = withClickAwayHandler(closeSelect);
8276
+
8277
+ var handleOptionSelection = function handleOptionSelection(index) {
8278
+ var option = options[index];
8279
+ setSelectedValue(option);
8280
+ onSelect(option.value, option.text);
8281
+ };
8282
+
8283
+ React.useEffect(function () {
8284
+ document.addEventListener('click', closeSelectOnBlur, false);
8285
+ return function () {
8286
+ document.removeEventListener('click', closeSelectOnBlur, false);
8287
+ };
8288
+ }, []);
8289
+ React.useEffect(function () {
8290
+ if (!resetWhenOptionsUpdate) return;
8291
+
8292
+ if (options.length === 0) {
8293
+ setSelectedValue(null);
8294
+ return;
8295
+ }
8296
+
8297
+ setSelectedValue(options[0]);
8298
+ }, [options, resetWhenOptionsUpdate]);
8299
+ return /*#__PURE__*/React__default.createElement(Wrapper$5, null, label !== '' && /*#__PURE__*/React__default.createElement(BodyText, {
8300
+ level: 1,
8301
+ tag: "p",
8302
+ "data-testid": "select-label"
8303
+ }, label), /*#__PURE__*/React__default.createElement(SelectList, {
8304
+ id: "select",
8305
+ ref: selectRef,
8306
+ onClick: toggleSelect,
8307
+ onFocus: openSelect,
8308
+ onBlur: closeSelect,
8309
+ onMouseDown: function onMouseDown(e) {
8310
+ return e.preventDefault();
7877
8311
  },
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)));
8312
+ onKeyUp: handleHighlighted(handleOptionSelection),
8313
+ width: width,
8314
+ height: height,
8315
+ role: "listbox",
8316
+ tabIndex: 0,
8317
+ "aria-labelledby": label,
8318
+ "aria-selected": isOpen,
8319
+ "aria-disabled": isDisabled,
8320
+ "data-testid": "select"
8321
+ }, /*#__PURE__*/React__default.createElement(SelectWrapper, null, /*#__PURE__*/React__default.createElement(BodyText, {
8322
+ level: 1,
8323
+ tag: "p",
8324
+ "data-testid": "selected-value"
8325
+ }, (_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, {
8326
+ "data-testid": "options"
8327
+ }, options.map(function (option, index) {
8328
+ return /*#__PURE__*/React__default.createElement(Option, {
8329
+ ref: function ref(element) {
8330
+ if (!element || optionsRef.current.length === options.length) return;
8331
+ optionsRef.current.push(element);
8332
+ },
8333
+ role: "option",
8334
+ tabIndex: index + 1,
8335
+ hover: index === itemToHighlight,
8336
+ key: option.text,
8337
+ onClick: function onClick() {
8338
+ return handleOptionSelection(index);
8339
+ }
8340
+ }, /*#__PURE__*/React__default.createElement(BodyText, {
8341
+ level: 1,
8342
+ tag: "p"
8343
+ }, option.text));
8344
+ }))), /*#__PURE__*/React__default.createElement(ArrowIcon, null)));
7887
8345
  }
7888
8346
 
7889
8347
  var _templateObject$15;
@@ -7916,7 +8374,7 @@ var TextOnly = function TextOnly(_ref) {
7916
8374
  };
7917
8375
 
7918
8376
  var _templateObject$16, _templateObject2$N;
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) {
8377
+ 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) {
7920
8378
  var _ref$aspectRatio = _ref.aspectRatio,
7921
8379
  aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
7922
8380
  return aspectRatio;
@@ -7955,7 +8413,7 @@ var ImageWithCaption = function ImageWithCaption(_ref) {
7955
8413
  return window.removeEventListener('resize', setWrapperHeight);
7956
8414
  };
7957
8415
  }, [wrapperRef]);
7958
- return /*#__PURE__*/React__default.createElement(Wrapper$5, {
8416
+ return /*#__PURE__*/React__default.createElement(Wrapper$6, {
7959
8417
  aspectRatio: aspectRatio,
7960
8418
  ref: wrapperRef,
7961
8419
  height: height
@@ -7994,13 +8452,13 @@ var Quote = function Quote(_ref) {
7994
8452
  }, attribution))));
7995
8453
  };
7996
8454
 
7997
- var _templateObject$18, _templateObject2$P, _templateObject3$G, _templateObject4$w, _templateObject5$n, _templateObject6$i;
8455
+ var _templateObject$18, _templateObject2$P, _templateObject3$G, _templateObject4$w, _templateObject5$o, _templateObject6$j;
7998
8456
  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"])));
7999
8457
  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"])));
8000
8458
  var StyledImage = /*#__PURE__*/styled__default.img(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--base-color-white);\n"])));
8001
8459
  var ImageWrapper = /*#__PURE__*/styled__default.div(_templateObject4$w || (_templateObject4$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n"])));
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);
8460
+ 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);
8461
+ 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);
8004
8462
 
8005
8463
  var MiniCard = function MiniCard(_ref) {
8006
8464
  var _ref$title = _ref.title,
@@ -8140,101 +8598,19 @@ var ReadMore = function ReadMore(_ref) {
8140
8598
  }, isFullTextOpen ? "" + hideText : "" + showMoreText)));
8141
8599
  };
8142
8600
 
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) {
8601
+ var _templateObject$1a, _templateObject2$R, _templateObject3$I, _templateObject4$y, _templateObject5$p, _templateObject6$k;
8602
+ var Container$1 = /*#__PURE__*/styled__default.div(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
8603
+ var Sections = /*#__PURE__*/styled__default.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
8604
+ var Section = /*#__PURE__*/styled__default.div(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background-color: ", ";\n"])), function (_ref) {
8229
8605
  var color = _ref.color;
8230
8606
  return "var(--base-color-" + color + ")";
8231
8607
  });
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) {
8608
+ 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"])));
8609
+ var Text = /*#__PURE__*/styled__default.div(_templateObject5$p || (_templateObject5$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n"])), function (_ref2) {
8234
8610
  var color = _ref2.color;
8235
8611
  return "var(--base-color-" + color + ")";
8236
8612
  });
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) {
8613
+ 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) {
8238
8614
  var color = _ref3.color;
8239
8615
  return "var(--base-color-" + color + ")";
8240
8616
  });
@@ -8295,7 +8671,7 @@ var PasswordStrength = function PasswordStrength(_ref) {
8295
8671
  return index < activeSections ? 'password-strength-section-active' : 'password-strength-section';
8296
8672
  };
8297
8673
 
8298
- return /*#__PURE__*/React__default.createElement(Container$2, {
8674
+ return /*#__PURE__*/React__default.createElement(Container$1, {
8299
8675
  "data-testid": "password-strength-container"
8300
8676
  }, /*#__PURE__*/React__default.createElement(Sections, {
8301
8677
  "data-testid": "password-strength-sections"
@@ -8320,6 +8696,88 @@ var PasswordStrength = function PasswordStrength(_ref) {
8320
8696
  }, strengthLabel))));
8321
8697
  };
8322
8698
 
8699
+ var _templateObject$1b, _templateObject2$S, _templateObject3$J, _templateObject4$z;
8700
+ var MenuContainer$2 = /*#__PURE__*/styled__default.menu(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding: 0;\n margin: 0;\n"])));
8701
+ 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) {
8702
+ var mobileOpen = _ref.mobileOpen;
8703
+ return mobileOpen ? "block" : 'none';
8704
+ }, exports.Colors.White, exports.Colors.DarkGrey);
8705
+ 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) {
8706
+ var active = _ref2.active;
8707
+ return active ? "var(--base-color-" + exports.Colors.MidGrey + ")" : 'none';
8708
+ }, exports.Colors.MidGrey, devices.mobile);
8709
+ 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);
8710
+
8711
+ /**
8712
+ * Vertical menu component uses for navigation
8713
+ * inside website chapter. It looks like a vertical
8714
+ * list with clickable items on desktop and dropdown
8715
+ * list on mobile.
8716
+ *
8717
+ * ## Menu items
8718
+ * Menu items should be passed as `items` prop. This
8719
+ * should be an array of objects. Each object should
8720
+ * have `text` (text displayed as a menu item) and
8721
+ * `onClick` (click handler function)
8722
+ *
8723
+ * ## Active menu item
8724
+ * Active menu item should be passed as component `activeItem`
8725
+ * prop. This indicates on which menu item should be highlighted
8726
+ * as active one. Should be equal to `text` prop from one of the `items`
8727
+ */
8728
+
8729
+ var AuxiliaryNav = function AuxiliaryNav(_ref) {
8730
+ var items = _ref.items,
8731
+ activeItem = _ref.activeItem;
8732
+
8733
+ var _useState = React.useState(false),
8734
+ mobileOpen = _useState[0],
8735
+ setMobileOpen = _useState[1];
8736
+
8737
+ var containerRef = React.useRef(null);
8738
+
8739
+ var mobileButtonClickHandler = function mobileButtonClickHandler() {
8740
+ setMobileOpen(function (prev) {
8741
+ return !prev;
8742
+ });
8743
+ };
8744
+
8745
+ var outsideClickHandler = function outsideClickHandler(event) {
8746
+ if (containerRef.current && !containerRef.current.contains(event.target)) {
8747
+ setMobileOpen(false);
8748
+ }
8749
+ };
8750
+
8751
+ React.useEffect(function () {
8752
+ document.addEventListener('mousedown', outsideClickHandler);
8753
+ return function () {
8754
+ document.removeEventListener('mousedown', outsideClickHandler);
8755
+ };
8756
+ }, [containerRef]);
8757
+ return /*#__PURE__*/React__default.createElement(MenuContainer$2, {
8758
+ ref: containerRef,
8759
+ "data-testid": "nav-menu-container"
8760
+ }, /*#__PURE__*/React__default.createElement(MobileButton, {
8761
+ mobileOpen: mobileOpen,
8762
+ onClick: mobileButtonClickHandler,
8763
+ "data-testid": "nav-menu-mobile-button"
8764
+ }, activeItem, /*#__PURE__*/React__default.createElement(Icon, {
8765
+ iconName: "DropdownArrow",
8766
+ direction: mobileOpen ? 'left' : 'right'
8767
+ })), /*#__PURE__*/React__default.createElement(MenuList, {
8768
+ mobileOpen: mobileOpen,
8769
+ "data-testid": "nav-menu-list"
8770
+ }, items.map(function (item, idx) {
8771
+ return /*#__PURE__*/React__default.createElement("li", {
8772
+ key: item.text + "-" + idx
8773
+ }, /*#__PURE__*/React__default.createElement(MenuItem$1, {
8774
+ onClick: item.onClick,
8775
+ active: item.text === activeItem,
8776
+ "data-testid": "nav-menu-item" + (item.text === activeItem ? '-active' : '')
8777
+ }, item.text));
8778
+ })));
8779
+ };
8780
+
8323
8781
  var UpsellSection = function UpsellSection(_ref) {
8324
8782
  var title = _ref.title,
8325
8783
  richText = _ref.richText,
@@ -8444,6 +8902,7 @@ var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$U || (_te
8444
8902
  var ContentWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
8445
8903
  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"])));
8446
8904
 
8905
+ var _excluded$k = ["isOpen", "setIsOpen", "children", "appElementId"];
8447
8906
  var MAX_Z_INDEX = 9999999999;
8448
8907
 
8449
8908
  if (Modal.defaultStyles.content) {
@@ -8520,7 +8979,7 @@ var ModalWindow = function ModalWindow(_ref) {
8520
8979
  setIsOpen = _ref.setIsOpen,
8521
8980
  children = _ref.children,
8522
8981
  appElementId = _ref.appElementId,
8523
- modalProps = _objectWithoutPropertiesLoose(_ref, ["isOpen", "setIsOpen", "children", "appElementId"]);
8982
+ modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8524
8983
 
8525
8984
  var isMobile = useMobile();
8526
8985
  var customStyles = {