@royaloperahouse/harmonic 0.13.1-g → 0.13.2-a

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.
@@ -281,7 +281,8 @@ BodyCopyHarmonic.displayName = 'BodyCopyHarmonic';
281
281
  /* ~~~ Overline - (use case) ~~~ */
282
282
  var HarmonicOverline = function HarmonicOverline(_ref6) {
283
283
  var children = _ref6.children,
284
- size = _ref6.size,
284
+ _ref6$size = _ref6.size,
285
+ size = _ref6$size === void 0 ? 'large' : _ref6$size,
285
286
  _ref6$color = _ref6.color,
286
287
  color = _ref6$color === void 0 ? 'inherit' : _ref6$color,
287
288
  className = _ref6.className,
@@ -9251,773 +9252,213 @@ var SelectComponent$1 = function SelectComponent(_ref) {
9251
9252
  })));
9252
9253
  };
9253
9254
 
9254
- var colors = {
9255
- core: '#C8102E',
9256
- stream: '#1866DC',
9257
- cinema: '#1A1A1A'
9255
+ var _templateObject$15, _templateObject3$G, _templateObject4$y, _templateObject5$s, _templateObject6$l, _templateObject7$h;
9256
+ var Wrapper$6 = /*#__PURE__*/styled__default.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--color-base-light-grey);\n padding: 40px 20px;\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 20px;\n align-items: stretch;\n"])));
9257
+ var PromoLabel = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: var(--upsell-border-color);\n padding: 6px 8px;\n width: fit-content;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n right: 20px;\n top: 0;\n width: auto;\n margin: auto;\n\n && {\n color: var(--color-base-white);\n }\n\n font-feature-settings:\n 'tnum' on,\n 'lnum' on,\n 'liga' off,\n 'calt' off;\n text-align: center;\n"])));
9258
+ var ButtonContainer = /*#__PURE__*/styled__default.div(_templateObject4$y || (_templateObject4$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: auto;\n padding-top: 10px;\n width: fit-content;\n display: flex;\n flex-direction: row;\n gap: 20px;\n\n @media ", " {\n width: 100%;\n flex-direction: column;\n gap: 16px;\n }\n\n ", "\n\n @media ", " {\n a {\n text-align: center;\n }\n }\n"])), function (_ref) {
9259
+ var stackCtasEarly = _ref.stackCtasEarly;
9260
+ return stackCtasEarly ? devices.smallDesktop + ", " + devices.mobileAndTablet : devices.mobile;
9261
+ }, function (_ref2) {
9262
+ var stackCtasEarly = _ref2.stackCtasEarly;
9263
+ return stackCtasEarly && "\n @media " + devices.smallDesktop + ", " + devices.mobileAndTablet + " {\n * {\n width: 100%;\n }\n }\n ";
9264
+ }, devices.mobileAndTablet);
9265
+ var TitleContainer$3 = /*#__PURE__*/styled__default.div(_templateObject5$s || (_templateObject5$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-primary-black);\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: stretch;\n"])));
9266
+ var PriceRow = /*#__PURE__*/styled__default.div(_templateObject6$l || (_templateObject6$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px 12px;\n"])));
9267
+ var LineThrough = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject7$h || (_templateObject7$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration-line: line-through;\n color: var(--color-base-dark-grey);\n"])));
9268
+
9269
+ // Set max. character length
9270
+ var setMaxCharLength = function setMaxCharLength(value, maxLength) {
9271
+ return value.slice(0, maxLength);
9258
9272
  };
9259
- var commonColors = {
9260
- black: '#1A1A1A',
9261
- white: '#FFFFFF',
9262
- darkgrey: '#727272',
9263
- midgrey: '#B2B2B2',
9264
- lightgrey: '#F0F0F0',
9265
- error: '#C8102E',
9266
- medium: '#D79233',
9267
- good: '#4EAA33',
9268
- progress: '#1866DC',
9269
- navigation: '#C8102E',
9270
- lemonChiffon: '#fffbbe',
9271
- lapisLazuli: '#0060a0',
9272
- blue: '#1866DC',
9273
- red: '#C8102E'
9273
+ // Format price to contain £ if not already present
9274
+ var formatPrice = function formatPrice(value) {
9275
+ if (Number.isNaN(Number(value))) return value != null ? value : '';
9276
+ return "\xA3" + Number(value).toFixed(2);
9274
9277
  };
9275
- var fontFamilies = {
9276
- adobeGaramondPro: 'adobe-garamond-pro',
9277
- adobeGaramondProItalics: 'adobe-garamond-pro',
9278
- gothamSSmMedium: '"Gotham SSm A","Gotham SSm B","Montserrat",sans-serif',
9279
- gothamSSm: '"Gotham SSm A","Gotham SSm B","Montserrat",sans-serif',
9280
- sabonNextLTProRegular: 'Sabon Next LT Pro Regular',
9281
- sabonNextLTProRegularItalics: 'Sabon Next LT Pro Regular Italics',
9282
- sansSerifFallback: 'Montserrat, sans-serif'
9278
+ var capitalizeFirstLetter = function capitalizeFirstLetter(string) {
9279
+ return string.substring(0, 1).toUpperCase() + string.substring(1);
9283
9280
  };
9284
- var common = {
9285
- fonts: {
9286
- desktop: {
9287
- sizes: {
9288
- headers: {
9289
- 1: '96px',
9290
- 2: '68px',
9291
- 3: '44px',
9292
- 4: '34px',
9293
- 5: '24px',
9294
- 6: '20px'
9295
- },
9296
- altHeaders: {
9297
- 3: '44px',
9298
- 4: '34px',
9299
- 5: '24px',
9300
- 6: '20px'
9301
- },
9302
- subtitles: {
9303
- 1: '18px',
9304
- 2: '14px'
9305
- },
9306
- titleDescription: '20px',
9307
- body: {
9308
- 1: '19px',
9309
- 2: '16px',
9310
- 3: '14px'
9311
- },
9312
- listing: '19px',
9313
- buttons: '14px',
9314
- overline: {
9315
- 1: '14px',
9316
- 2: '12px',
9317
- 3: '10px',
9318
- 4: '8px'
9319
- },
9320
- navigation: '13px',
9321
- search: '24px'
9322
- },
9323
- letterSpacing: {
9324
- headers: {
9325
- 1: '2px',
9326
- 2: '1px',
9327
- 3: '1px',
9328
- 4: '1px',
9329
- 5: '1px',
9330
- 6: '1px'
9331
- },
9332
- altHeaders: {
9333
- 3: 'normal',
9334
- 4: 'normal',
9335
- 5: 'normal',
9336
- 6: 'normal'
9337
- },
9338
- overline: {
9339
- 1: '1px',
9340
- 2: '1px',
9341
- 3: '1px',
9342
- 4: '1px'
9343
- },
9344
- subtitles: {
9345
- 1: '1px',
9346
- 2: '1px'
9347
- },
9348
- body: {
9349
- 1: 'normal',
9350
- 2: 'normal',
9351
- 3: 'normal'
9352
- },
9353
- navigation: '1px'
9281
+
9282
+ /* eslint-disable react/no-danger */
9283
+ var OfferText = function OfferText(_ref) {
9284
+ var title = _ref.title,
9285
+ description = _ref.description;
9286
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(HarmonicSubtitle, null, title), description && /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
9287
+ size: "large",
9288
+ dangerouslySetInnerHTML: {
9289
+ __html: description
9290
+ }
9291
+ }));
9292
+ };
9293
+
9294
+ var LENGTH_SMALL_TEXT$2 = 19;
9295
+ var OFFER_TEXTS_LIMIT = 3;
9296
+ var FLAG_CHAR_LIMIT = 30;
9297
+ var UpsellCard = function UpsellCard(_ref) {
9298
+ var _ref$title = _ref.title,
9299
+ title = _ref$title === void 0 ? '' : _ref$title,
9300
+ subTitle = _ref.subTitle,
9301
+ price = _ref.price,
9302
+ promoPrice = _ref.promoPrice,
9303
+ flag = _ref.flag,
9304
+ offerTexts = _ref.offerTexts,
9305
+ link = _ref.link,
9306
+ secondaryLink = _ref.secondaryLink,
9307
+ _ref$stackCtasEarly = _ref.stackCtasEarly,
9308
+ stackCtasEarly = _ref$stackCtasEarly === void 0 ? false : _ref$stackCtasEarly,
9309
+ _ref$theme = _ref.theme,
9310
+ theme = _ref$theme === void 0 ? exports.ThemeType.Core : _ref$theme,
9311
+ _ref$secondaryTheme = _ref.secondaryTheme,
9312
+ secondaryTheme = _ref$secondaryTheme === void 0 ? exports.ThemeType.Core : _ref$secondaryTheme;
9313
+ var truncate = function truncate(str, n) {
9314
+ return str.length >= n ? str.slice(0, n) : str;
9315
+ };
9316
+ var reducedOfferTexts = offerTexts == null ? void 0 : offerTexts.slice(0, OFFER_TEXTS_LIMIT);
9317
+ return /*#__PURE__*/React__default.createElement(HarmonicThemeProvider, {
9318
+ theme: theme
9319
+ }, /*#__PURE__*/React__default.createElement(Wrapper$6, null, flag && (/*#__PURE__*/React__default.createElement(PromoLabel, {
9320
+ tag: "div",
9321
+ size: "small"
9322
+ }, setMaxCharLength(flag, FLAG_CHAR_LIMIT))), /*#__PURE__*/React__default.createElement(TitleContainer$3, null, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
9323
+ tag: "div",
9324
+ size: "small",
9325
+ serif: true
9326
+ }, title), subTitle && /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
9327
+ size: "large"
9328
+ }, subTitle), promoPrice ? (/*#__PURE__*/React__default.createElement(PriceRow, null, /*#__PURE__*/React__default.createElement(LineThrough, {
9329
+ tag: "p",
9330
+ size: "small",
9331
+ serif: true
9332
+ }, formatPrice(price)), /*#__PURE__*/React__default.createElement(HarmonicHeader, {
9333
+ tag: "p",
9334
+ size: "small",
9335
+ serif: true
9336
+ }, formatPrice(promoPrice)))) : (/*#__PURE__*/React__default.createElement(PriceRow, null, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
9337
+ tag: "p",
9338
+ size: "small",
9339
+ serif: true
9340
+ }, formatPrice(price))))), (reducedOfferTexts == null ? void 0 : reducedOfferTexts.length) && reducedOfferTexts.map(function (offerText, index) {
9341
+ return /*#__PURE__*/React__default.createElement(OfferText, {
9342
+ key: "offer-" + index,
9343
+ title: offerText.title,
9344
+ description: offerText.description
9345
+ });
9346
+ }), ((link == null ? void 0 : link.text) || (secondaryLink == null ? void 0 : secondaryLink.text)) && (/*#__PURE__*/React__default.createElement(ButtonContainer, {
9347
+ stackCtasEarly: stackCtasEarly
9348
+ }, (link == null ? void 0 : link.text) && /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, link), truncate(link.text, LENGTH_SMALL_TEXT$2)), (secondaryLink == null ? void 0 : secondaryLink.text) && (/*#__PURE__*/React__default.createElement(HarmonicThemeProvider, {
9349
+ theme: secondaryTheme
9350
+ }, /*#__PURE__*/React__default.createElement(SecondaryButton, Object.assign({}, secondaryLink), truncate(secondaryLink.text, LENGTH_SMALL_TEXT$2))))))));
9351
+ };
9352
+
9353
+ var _templateObject$16, _templateObject2$Q;
9354
+ var Wrapper$7 = /*#__PURE__*/styled__default.figure(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0;\n\n ", " {\n height: calc(100% - 34px);\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n\n @media ", " {\n height: calc(100% - 30px);\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n }\n"])), StyledImageAspectRatioWrapper, function (_ref) {
9355
+ var _ref$aspectRatio = _ref.aspectRatio,
9356
+ aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
9357
+ return aspectRatio;
9358
+ }, function (_ref2) {
9359
+ var _ref2$aspectRatio = _ref2.aspectRatio,
9360
+ aspectRatio = _ref2$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref2$aspectRatio,
9361
+ height = _ref2.height;
9362
+ return "calc(calc(" + height + "px - 34px) * " + AspectRatioWidth[aspectRatio] + ")";
9363
+ }, devices.mobile, function (_ref3) {
9364
+ var _ref3$aspectRatio = _ref3.aspectRatio,
9365
+ aspectRatio = _ref3$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref3$aspectRatio;
9366
+ return aspectRatio;
9367
+ }, function (_ref4) {
9368
+ var _ref4$aspectRatio = _ref4.aspectRatio,
9369
+ aspectRatio = _ref4$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref4$aspectRatio,
9370
+ height = _ref4.height;
9371
+ return "calc(calc(" + height + "px - 30px) * " + AspectRatioWidth[aspectRatio] + ")";
9372
+ });
9373
+ var CaptionWrapper = /*#__PURE__*/styled__default(Caption)(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n margin-top: 12px;\n max-width: var(--caption-max-width, 100%);\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n overflow-wrap: normal;\n }\n height: 22px;\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n word-break: var(--word-break-body);\n\n @media ", " {\n height: 18px;\n }\n"])), devices.mobile);
9374
+
9375
+ var ImageWithCaption = function ImageWithCaption(_ref) {
9376
+ var caption = _ref.caption,
9377
+ altText = _ref.altText,
9378
+ children = _ref.children,
9379
+ aspectRatio = _ref.aspectRatio;
9380
+ var wrapperRef = React.useRef(null);
9381
+ var imgRef = React.useRef(null);
9382
+ var _useState = React.useState(0),
9383
+ height = _useState[0],
9384
+ setHeight = _useState[1];
9385
+ var updateWrapperHeight = React__default.useCallback(function () {
9386
+ var _wrapperRef$current;
9387
+ setHeight((wrapperRef == null || (_wrapperRef$current = wrapperRef.current) == null ? void 0 : _wrapperRef$current.offsetHeight) || 0);
9388
+ }, []);
9389
+ var updateCaptionWidth = React__default.useCallback(function () {
9390
+ var img = imgRef.current;
9391
+ var wrapper = wrapperRef.current;
9392
+ if (img && wrapper) {
9393
+ var w = img.getBoundingClientRect().width;
9394
+ wrapper.style.setProperty('--caption-max-width', Math.round(w) + "px");
9395
+ }
9396
+ }, []);
9397
+ React.useEffect(function () {
9398
+ updateWrapperHeight();
9399
+ updateCaptionWidth();
9400
+ window.addEventListener('resize', updateWrapperHeight);
9401
+ window.addEventListener('resize', updateCaptionWidth);
9402
+ var imageResizeObserver = null;
9403
+ if (typeof ResizeObserver !== 'undefined' && imgRef.current) {
9404
+ imageResizeObserver = new ResizeObserver(updateCaptionWidth);
9405
+ imageResizeObserver.observe(imgRef.current);
9406
+ }
9407
+ return function () {
9408
+ window.removeEventListener('resize', updateWrapperHeight);
9409
+ window.removeEventListener('resize', updateCaptionWidth);
9410
+ if (imageResizeObserver && imgRef.current) imageResizeObserver.unobserve(imgRef.current);
9411
+ };
9412
+ }, [updateWrapperHeight, updateCaptionWidth]);
9413
+ var clonedChildren = React__default.Children.map(children, function (child) {
9414
+ if (! /*#__PURE__*/React__default.isValidElement(child)) return child;
9415
+ var childElement = child;
9416
+ var originalRef = child.ref;
9417
+ var newProps = {
9418
+ alt: altText,
9419
+ tabIndex: 0,
9420
+ onKeyDown: function onKeyDown(e) {
9421
+ if (e.key === 'Enter' || e.key === ' ') {
9422
+ var _imgRef$current;
9423
+ e.preventDefault();
9424
+ (_imgRef$current = imgRef.current) == null || _imgRef$current.click();
9425
+ }
9426
+ var originalOnKeyDownHandler = childElement.props.onKeyDown;
9427
+ if (originalOnKeyDownHandler) originalOnKeyDownHandler(e);
9354
9428
  },
9355
- lineHeights: {
9356
- headers: {
9357
- 1: '110px',
9358
- 2: '72px',
9359
- 3: '48px',
9360
- 4: '40px',
9361
- 5: '30px',
9362
- 6: '28px'
9363
- },
9364
- altHeaders: {
9365
- 3: '48px',
9366
- 4: '44px',
9367
- 5: '30px',
9368
- 6: '28px'
9369
- },
9370
- subtitles: {
9371
- 1: '22px',
9372
- 2: '22px'
9373
- },
9374
- titleDescription: '28px',
9375
- body: {
9376
- 1: '26px',
9377
- 2: '22px',
9378
- 3: '20px'
9379
- },
9380
- peopleListing: '24px',
9381
- listing: '36px',
9382
- buttons: '20px',
9383
- overline: {
9384
- 1: '16px',
9385
- 2: '14px',
9386
- 3: '12px',
9387
- 4: '10px'
9388
- },
9389
- navigation: '16px'
9390
- },
9391
- families: {
9392
- headers: fontFamilies.gothamSSmMedium,
9393
- altHeaders: fontFamilies.adobeGaramondPro,
9394
- subtitles: fontFamilies.gothamSSmMedium,
9395
- body: fontFamilies.adobeGaramondPro,
9396
- bodyItalics: fontFamilies.adobeGaramondProItalics,
9397
- listing: fontFamilies.adobeGaramondPro,
9398
- listingItalics: fontFamilies.adobeGaramondProItalics,
9399
- buttons: fontFamilies.gothamSSm,
9400
- overline: fontFamilies.gothamSSmMedium,
9401
- navigation: fontFamilies.gothamSSmMedium,
9402
- peopleListingRole: fontFamilies.gothamSSm,
9403
- search: fontFamilies.adobeGaramondPro
9404
- },
9405
- weights: {
9406
- headers: {
9407
- 1: '500',
9408
- 2: '500',
9409
- 3: '500',
9410
- 4: '500',
9411
- 5: '500',
9412
- 6: '500'
9413
- },
9414
- altHeaders: {
9415
- 3: 'normal',
9416
- 4: 'normal',
9417
- 5: 'normal',
9418
- 6: 'normal'
9419
- },
9420
- buttons: '400',
9421
- overline: {
9422
- 1: '500',
9423
- 2: '500',
9424
- 3: '500',
9425
- 4: '500'
9426
- },
9427
- body: {
9428
- 1: '400',
9429
- 2: '400',
9430
- 3: '400'
9431
- },
9432
- subtitles: {
9433
- 1: '500',
9434
- 2: '500'
9435
- },
9436
- navigation: '500'
9437
- },
9438
- transforms: {
9439
- headers: 'uppercase',
9440
- altHeaders: 'none',
9441
- overline: 'uppercase',
9442
- subtitles: 'uppercase',
9443
- body: 'none',
9444
- navigation: 'uppercase'
9445
- },
9446
- fontFeatureSettings: {
9447
- headers: "'tnum' on, 'lnum' on",
9448
- altHeaders: "'pnum' on, 'onum' on",
9449
- overline: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off",
9450
- subtitles: "'tnum' on, 'lnum' on",
9451
- body: "'pnum' on, 'onum' on, 'liga' off",
9452
- navigation: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off"
9453
- },
9454
- wordBreak: {
9455
- headers: 'break-word',
9456
- altHeaders: 'break-word',
9457
- overline: 'break-word',
9458
- subtitles: 'break-word',
9459
- body: 'break-word'
9460
- },
9461
- margins: {
9462
- headers: {
9463
- // These margins use the Chrome defaults to enable proper fallbacks when using semantic level -
9464
- // https://www.w3schools.com/cssref/css_default_values.php
9465
- 1: '0.67em 0',
9466
- 2: '0.83em 0',
9467
- 3: '1em 0',
9468
- 4: '1.33em 0',
9469
- 5: '1.67em 0',
9470
- 6: '2.33em 0'
9429
+ ref: function ref(node) {
9430
+ imgRef.current = node;
9431
+ if (node) updateCaptionWidth();
9432
+ if (!originalRef) return;
9433
+ if (typeof originalRef === 'function') {
9434
+ originalRef(node);
9435
+ } else {
9436
+ originalRef.current = node;
9471
9437
  }
9472
9438
  }
9473
- },
9474
- mobile: {
9475
- sizes: {
9476
- headers: {
9477
- 1: '38px',
9478
- 2: '30px',
9479
- 3: '26px',
9480
- 4: '24px',
9481
- 5: '20px',
9482
- 6: '17px'
9483
- },
9484
- altHeaders: {
9485
- 3: '26px',
9486
- 4: '24px',
9487
- 5: '20px',
9488
- 6: '17px'
9489
- },
9490
- subtitles: {
9491
- 1: '16px',
9492
- 2: '14px'
9493
- },
9494
- titleDescription: '17px',
9495
- body: {
9496
- 1: '17px',
9497
- 2: '12px',
9498
- 3: '11px'
9499
- },
9500
- listing: '16px',
9501
- buttons: '14px',
9502
- overline: {
9503
- 1: '14px',
9504
- 2: '12px',
9505
- 3: '10px',
9506
- 4: '8px'
9507
- },
9508
- navigation: '13px',
9509
- search: '20px'
9510
- },
9511
- letterSpacing: {
9512
- headers: {
9513
- 1: '1px',
9514
- 2: '1px',
9515
- 3: '1px',
9516
- 4: '1px',
9517
- 5: '1px',
9518
- 6: '1px'
9519
- },
9520
- altHeaders: {
9521
- 3: 'normal',
9522
- 4: 'normal',
9523
- 5: 'normal',
9524
- 6: 'normal'
9525
- },
9526
- overline: {
9527
- 1: '1px',
9528
- 2: '1px'
9529
- },
9530
- subtitles: {
9531
- 1: '1px',
9532
- 2: '1px'
9533
- },
9534
- body: {
9535
- 1: 'normal',
9536
- 2: 'normal',
9537
- 3: 'normal'
9538
- },
9539
- navigation: '1px'
9540
- },
9541
- lineHeights: {
9542
- headers: {
9543
- 1: '42px',
9544
- 2: '34px',
9545
- 3: '30px',
9546
- 4: '28px',
9547
- 5: '28px',
9548
- 6: '24px'
9549
- },
9550
- altHeaders: {
9551
- 3: '30px',
9552
- 4: '28px',
9553
- 5: '28px',
9554
- 6: '24px'
9555
- },
9556
- subtitles: {
9557
- 1: '24px',
9558
- 2: '18px'
9559
- },
9560
- titleDescription: '24px',
9561
- body: {
9562
- 1: '24px',
9563
- 2: '18px',
9564
- 3: '16px'
9565
- },
9566
- listing: '34px',
9567
- buttons: '20px',
9568
- overline: {
9569
- 1: '16px',
9570
- 2: '14px'
9571
- },
9572
- navigation: '16px'
9573
- },
9574
- families: {
9575
- headers: fontFamilies.gothamSSm,
9576
- altHeaders: fontFamilies.adobeGaramondPro,
9577
- subtitles: fontFamilies.gothamSSmMedium,
9578
- body: fontFamilies.adobeGaramondPro,
9579
- bodyItalics: fontFamilies.adobeGaramondProItalics,
9580
- listing: fontFamilies.adobeGaramondPro,
9581
- listingItalics: fontFamilies.adobeGaramondProItalics,
9582
- buttons: fontFamilies.gothamSSm,
9583
- overline: fontFamilies.gothamSSmMedium,
9584
- navigation: fontFamilies.gothamSSmMedium,
9585
- search: fontFamilies.adobeGaramondPro
9586
- },
9587
- weights: {
9588
- headers: {
9589
- 1: '500',
9590
- 2: '500',
9591
- 3: '500',
9592
- 4: '500',
9593
- 5: '500',
9594
- 6: '500'
9595
- },
9596
- altHeaders: {
9597
- 3: 'normal',
9598
- 4: 'normal',
9599
- 5: 'normal',
9600
- 6: 'normal'
9601
- },
9602
- buttons: '400',
9603
- overline: {
9604
- 1: '500',
9605
- 2: '500'
9606
- },
9607
- body: {
9608
- 1: '400',
9609
- 2: '400',
9610
- 3: '400'
9611
- },
9612
- subtitles: {
9613
- 1: '500',
9614
- 2: '500'
9615
- },
9616
- navigation: '500'
9617
- },
9618
- transforms: {
9619
- headers: 'uppercase',
9620
- altHeaders: 'none',
9621
- overline: 'uppercase',
9622
- subtitles: 'uppercase',
9623
- body: 'none',
9624
- navigation: 'uppercase'
9625
- },
9626
- fontFeatureSettings: {
9627
- headers: "'tnum' on, 'lnum' on",
9628
- altHeaders: "'pnum' on, 'onum' on",
9629
- overline: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off",
9630
- subtitles: "'tnum' on, 'lnum' on",
9631
- body: "'pnum' on, 'onum' on, 'liga' off",
9632
- navigation: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off"
9633
- },
9634
- wordBreak: {
9635
- headers: 'break-word',
9636
- altHeaders: 'break-word',
9637
- overline: 'break-word',
9638
- subtitles: 'break-word',
9639
- body: 'break-word'
9640
- }
9641
- },
9642
- tablet: {
9643
- sizes: {
9644
- headers: {
9645
- 6: '17px'
9646
- },
9647
- altHeaders: {
9648
- 4: '24px'
9649
- },
9650
- body: {
9651
- 1: '17px'
9652
- }
9653
- }
9654
- }
9655
- },
9656
- spacing: {
9657
- 1: '4px',
9658
- 2: '8px',
9659
- 3: '12px',
9660
- 4: '16px',
9661
- 5: '20px',
9662
- 6: '24px',
9663
- 7: '28px',
9664
- 8: '32px',
9665
- 9: '36px',
9666
- 10: '40px',
9667
- 12: '48px',
9668
- 15: '60px',
9669
- 18: '72px',
9670
- 20: '80px',
9671
- 30: '120px',
9672
- 35: '140px',
9673
- 40: '160px',
9674
- 45: '180px',
9675
- 50: '200px'
9676
- },
9677
- grid: {
9678
- mobile: {
9679
- margin: '20px',
9680
- outerMargin: '0',
9681
- gap: '12px'
9682
- },
9683
- tablet: {
9684
- margin: '32px',
9685
- outerMargin: '0',
9686
- gap: '20px'
9687
- },
9688
- desktop: {
9689
- margin: '10%',
9690
- outerMargin: '50px',
9691
- gap: '36px'
9692
- }
9693
- },
9694
- buttons: {
9695
- paddingX: '20px',
9696
- paddingY: '14px',
9697
- paddingYIcon: '12px',
9698
- iconWidth: '20px',
9699
- iconHeight: '20px',
9700
- iconMargin: '12px'
9701
- },
9702
- footer: {
9703
- desktop: {
9704
- height: '380px',
9705
- paddingTop: '44px',
9706
- paddingBottom: '44px',
9707
- itemsGap: '32px',
9708
- mediaGap: '24px',
9709
- mediaIconWidth: '24px',
9710
- mediaIconHeight: '24px',
9711
- verticalSpacingLarge: '58px',
9712
- verticalSpacingSmall: '16px'
9713
- },
9714
- tablet: {
9715
- paddingTop: '40px',
9716
- paddingBottom: '40px'
9717
- },
9718
- mobile: {
9719
- height: 'auto',
9720
- paddingTop: '20px',
9721
- paddingBottom: '20px',
9722
- itemsGap: '12px',
9723
- mediaGap: '32px',
9724
- mediaIconWidth: '28px',
9725
- mediaIconHeight: '28px',
9726
- verticalSpacingLarge: '24px',
9727
- verticalSpacingSmall: '24px'
9728
- }
9729
- }
9730
- };
9731
- var core = /*#__PURE__*/_extends({}, common, {
9732
- colors: /*#__PURE__*/_extends({}, commonColors, colors, {
9733
- primary: colors.core,
9734
- primaryButton: colors.core,
9735
- secondaryButton: colors.core,
9736
- tertiaryButton: 'transparent',
9737
- auxiliaryButton: 'transparent',
9738
- primaryButtonReverseBg: colors.cinema,
9739
- primaryButtonReverse: commonColors.white
9740
- })
9741
- });
9742
- var stream = /*#__PURE__*/_extends({}, common, {
9743
- colors: /*#__PURE__*/_extends({}, commonColors, colors, {
9744
- primary: colors.stream,
9745
- primaryButton: colors.stream,
9746
- primaryButtonReverseBg: colors.cinema,
9747
- primaryButtonReverse: commonColors.white,
9748
- secondaryButton: colors.stream,
9749
- tertiaryButton: 'transparent',
9750
- auxiliaryButton: 'transparent'
9751
- })
9752
- });
9753
- var cinema = /*#__PURE__*/_extends({}, common, {
9754
- colors: /*#__PURE__*/_extends({}, commonColors, colors, {
9755
- primary: colors.cinema,
9756
- primaryButton: commonColors.white,
9757
- primaryButtonReverseBg: commonColors.white,
9758
- primaryButtonReverse: colors.cinema,
9759
- secondaryButton: colors.cinema,
9760
- tertiaryButton: 'transparent',
9761
- auxiliaryButton: 'transparent'
9762
- })
9763
- });
9764
- var schools = /*#__PURE__*/_extends({}, common, {
9765
- colors: /*#__PURE__*/_extends({}, commonColors, colors, {
9766
- primary: colors.core,
9767
- primaryButton: colors.core,
9768
- primaryButtonReverseBg: colors.cinema,
9769
- primaryButtonReverse: commonColors.white,
9770
- secondaryButton: colors.core,
9771
- tertiaryButton: 'transparent',
9772
- auxiliaryButton: 'transparent'
9773
- }),
9774
- fonts: /*#__PURE__*/_extends({}, common.fonts, {
9775
- desktop: /*#__PURE__*/_extends({}, common.fonts.desktop, {
9776
- transforms: {
9777
- headers: 'none',
9778
- altHeaders: 'none',
9779
- overline: 'none',
9780
- subtitles: 'none',
9781
- body: 'none',
9782
- navigation: 'uppercase'
9783
- }
9784
- }),
9785
- mobile: /*#__PURE__*/_extends({}, common.fonts.mobile, {
9786
- transforms: {
9787
- headers: 'none',
9788
- altHeaders: 'none',
9789
- overline: 'none',
9790
- subtitles: 'none',
9791
- body: 'none',
9792
- navigation: 'uppercase'
9793
- }
9794
- })
9795
- })
9796
- });
9797
- var themes = {
9798
- core: core,
9799
- stream: stream,
9800
- cinema: cinema,
9801
- fontFamilies: fontFamilies,
9802
- schools: schools
9803
- };
9804
-
9805
- var Theme = function Theme(_ref) {
9806
- var children = _ref.children,
9807
- theme = _ref.theme;
9808
- var chosenTheme = themes[theme];
9809
- return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
9810
- theme: chosenTheme
9811
- }, children);
9812
- };
9813
-
9814
- var _templateObject$15, _templateObject2$Q, _templateObject3$G, _templateObject4$y, _templateObject5$s, _templateObject6$l, _templateObject7$h, _templateObject8$b;
9815
- var Wrapper$6 = /*#__PURE__*/styled__default.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--base-color-lightgrey);\n padding: 40px;\n\n display: block;\n position: relative;\n\n @media ", " {\n margin-top: 0;\n padding: 40px 20px;\n }\n"])), devices.tablet);
9816
- var PromoLabelWrapper = /*#__PURE__*/styled__default.div(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-self: flex-end;\n height: 15px;\n"])));
9817
- var PromoLabel = /*#__PURE__*/styled__default.div(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n padding: 6px 8px;\n width: fit-content;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n right: 20px;\n top: 0;\n width: auto;\n margin: auto;\n font-family: var(--font-family-header);\n font-feature-settings:\n 'tnum' on,\n 'lnum' on,\n 'liga' off,\n 'calt' off;\n font-size: var(--font-size-overline-2);\n line-height: 12px;\n text-align: center;\n letter-spacing: 1px;\n text-transform: uppercase;\n"])), function (_ref) {
9818
- var theme = _ref.theme;
9819
- return theme.colors.primary;
9820
- }, exports.Colors.White);
9821
- var ButtonContainer = /*#__PURE__*/styled__default.div(_templateObject4$y || (_templateObject4$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 2em;\n width: fit-content;\n display: flex;\n flex-direction: row;\n gap: 20px;\n\n @media ", " {\n width: 100%;\n flex-direction: column;\n gap: 16px;\n }\n\n ", "\n"])), function (_ref2) {
9822
- var stackCtasEarly = _ref2.stackCtasEarly;
9823
- return stackCtasEarly ? devices.smallDesktop + ", " + devices.mobileAndTablet : devices.mobile;
9824
- }, function (_ref3) {
9825
- var stackCtasEarly = _ref3.stackCtasEarly;
9826
- return stackCtasEarly && "\n @media " + devices.smallDesktop + ", " + devices.mobileAndTablet + " {\n * {\n width: 100%;\n }\n }\n ";
9827
- });
9828
- var TitleContainer$3 = /*#__PURE__*/styled__default.div(_templateObject5$s || (_templateObject5$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n & > * {\n margin-top: 0;\n margin-bottom: 0.5em;\n }\n"])));
9829
- var OfferTextWrapper = /*#__PURE__*/styled__default.div(_templateObject6$l || (_templateObject6$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n & > * {\n margin-bottom: 0.5em;\n }\n margin-bottom: 1em;\n"])));
9830
- var PriceRow = /*#__PURE__*/styled__default.div(_templateObject7$h || (_templateObject7$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px 12px;\n padding: 5px 0 8px 0;\n"])));
9831
- var LineThrough = /*#__PURE__*/styled__default.div(_templateObject8$b || (_templateObject8$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration-line: line-through;\n color: var(--base-color-darkgrey);\n"])));
9832
-
9833
- // Set max. character length
9834
- var setMaxCharLength = function setMaxCharLength(value, maxLength) {
9835
- return value.slice(0, maxLength);
9836
- };
9837
- // Format price to contain £ if not already present
9838
- var formatPrice = function formatPrice(value) {
9839
- if (Number.isNaN(Number(value))) return value != null ? value : '';
9840
- return "\xA3" + Number(value).toFixed(2);
9841
- };
9842
- var capitalizeFirstLetter = function capitalizeFirstLetter(string) {
9843
- return string.substring(0, 1).toUpperCase() + string.substring(1);
9439
+ };
9440
+ return /*#__PURE__*/React__default.cloneElement(childElement, newProps);
9441
+ });
9442
+ return /*#__PURE__*/React__default.createElement(Wrapper$7, {
9443
+ aspectRatio: aspectRatio,
9444
+ ref: wrapperRef,
9445
+ height: height
9446
+ }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
9447
+ aspectRatio: aspectRatio
9448
+ }, clonedChildren), caption && /*#__PURE__*/React__default.createElement(CaptionWrapper, {
9449
+ tag: "figcaption"
9450
+ }, caption));
9844
9451
  };
9845
9452
 
9846
- /* eslint-disable react/no-danger */
9847
- var OfferText = function OfferText(_ref) {
9848
- var title = _ref.title,
9849
- description = _ref.description;
9850
- return /*#__PURE__*/React__default.createElement(OfferTextWrapper, null, /*#__PURE__*/React__default.createElement(Overline, {
9851
- semanticLevel: 5,
9852
- level: 1
9853
- }, title), /*#__PURE__*/React__default.createElement(BodyText, {
9854
- level: 1
9855
- }, /*#__PURE__*/React__default.createElement("div", {
9856
- dangerouslySetInnerHTML: {
9857
- __html: description != null ? description : ''
9858
- }
9859
- })));
9860
- };
9453
+ var _templateObject$17, _templateObject2$R, _templateObject3$H, _templateObject4$z, _templateObject5$t, _templateObject6$m;
9454
+ var CardContainer$1 = /*#__PURE__*/styled__default.div(_templateObject$17 || (_templateObject$17 = /*#__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"])));
9455
+ var ContentContainer$4 = /*#__PURE__*/styled__default.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
9456
+ var StyledImage = /*#__PURE__*/styled__default.img(_templateObject3$H || (_templateObject3$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--base-color-white);\n"])));
9457
+ var ImageWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject4$z || (_templateObject4$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n"])));
9458
+ var IconWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject5$t || (_templateObject5$t = /*#__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);
9459
+ var TitleWrapper$4 = /*#__PURE__*/styled__default.div(_templateObject6$m || (_templateObject6$m = /*#__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);
9861
9460
 
9862
- var LENGTH_SMALL_TEXT$2 = 19;
9863
- var OFFER_TEXTS_LIMIT = 3;
9864
- var FLAG_CHAR_LIMIT = 30;
9865
- var UpsellCard = function UpsellCard(_ref) {
9866
- var _ref$title = _ref.title,
9867
- title = _ref$title === void 0 ? '' : _ref$title,
9868
- subTitle = _ref.subTitle,
9869
- price = _ref.price,
9870
- promoPrice = _ref.promoPrice,
9871
- flag = _ref.flag,
9872
- offerTexts = _ref.offerTexts,
9873
- link = _ref.link,
9874
- secondaryLink = _ref.secondaryLink,
9875
- _ref$stackCtasEarly = _ref.stackCtasEarly,
9876
- stackCtasEarly = _ref$stackCtasEarly === void 0 ? false : _ref$stackCtasEarly,
9877
- _ref$theme = _ref.theme,
9878
- theme = _ref$theme === void 0 ? exports.ThemeType.Core : _ref$theme,
9879
- _ref$secondaryTheme = _ref.secondaryTheme,
9880
- secondaryTheme = _ref$secondaryTheme === void 0 ? exports.ThemeType.Core : _ref$secondaryTheme;
9881
- var truncate = function truncate(str, n) {
9882
- return str.length >= n ? str.slice(0, n) : str;
9883
- };
9884
- var reducedOfferTexts = offerTexts == null ? void 0 : offerTexts.slice(0, OFFER_TEXTS_LIMIT);
9885
- return /*#__PURE__*/React__default.createElement(Theme, {
9886
- theme: theme
9887
- }, /*#__PURE__*/React__default.createElement(Wrapper$6, null, flag && (/*#__PURE__*/React__default.createElement(PromoLabelWrapper, null, /*#__PURE__*/React__default.createElement(PromoLabel, null, setMaxCharLength(flag, FLAG_CHAR_LIMIT)))), /*#__PURE__*/React__default.createElement(TitleContainer$3, null, /*#__PURE__*/React__default.createElement(Subtitle, {
9888
- semanticLevel: 2,
9889
- level: 1
9890
- }, title), subTitle && (/*#__PURE__*/React__default.createElement(Overline, {
9891
- semanticLevel: 3,
9892
- level: 1
9893
- }, subTitle)), promoPrice ? (/*#__PURE__*/React__default.createElement(PriceRow, null, /*#__PURE__*/React__default.createElement(LineThrough, null, /*#__PURE__*/React__default.createElement(AltHeader, {
9894
- level: 4
9895
- }, formatPrice(price))), /*#__PURE__*/React__default.createElement(AltHeader, {
9896
- level: 4
9897
- }, formatPrice(promoPrice)))) : (/*#__PURE__*/React__default.createElement(PriceRow, null, /*#__PURE__*/React__default.createElement(AltHeader, {
9898
- level: 4
9899
- }, formatPrice(price))))), (reducedOfferTexts == null ? void 0 : reducedOfferTexts.length) && reducedOfferTexts.map(function (offerText, index) {
9900
- return /*#__PURE__*/React__default.createElement(OfferText, {
9901
- key: "offer-" + index,
9902
- title: offerText.title,
9903
- description: offerText.description
9904
- });
9905
- }), ((link == null ? void 0 : link.text) || (secondaryLink == null ? void 0 : secondaryLink.text)) && (/*#__PURE__*/React__default.createElement(ButtonContainer, {
9906
- stackCtasEarly: stackCtasEarly
9907
- }, (link == null ? void 0 : link.text) && /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, link), truncate(link.text, LENGTH_SMALL_TEXT$2)), (secondaryLink == null ? void 0 : secondaryLink.text) && (/*#__PURE__*/React__default.createElement(Theme, {
9908
- theme: secondaryTheme
9909
- }, /*#__PURE__*/React__default.createElement(SecondaryButton, Object.assign({}, secondaryLink), truncate(secondaryLink.text, LENGTH_SMALL_TEXT$2))))))));
9910
- };
9911
-
9912
- var _templateObject$16, _templateObject2$R;
9913
- var Wrapper$7 = /*#__PURE__*/styled__default.figure(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0;\n\n ", " {\n height: calc(100% - 34px);\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n\n @media ", " {\n height: calc(100% - 30px);\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n }\n"])), StyledImageAspectRatioWrapper, function (_ref) {
9914
- var _ref$aspectRatio = _ref.aspectRatio,
9915
- aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
9916
- return aspectRatio;
9917
- }, function (_ref2) {
9918
- var _ref2$aspectRatio = _ref2.aspectRatio,
9919
- aspectRatio = _ref2$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref2$aspectRatio,
9920
- height = _ref2.height;
9921
- return "calc(calc(" + height + "px - 34px) * " + AspectRatioWidth[aspectRatio] + ")";
9922
- }, devices.mobile, function (_ref3) {
9923
- var _ref3$aspectRatio = _ref3.aspectRatio,
9924
- aspectRatio = _ref3$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref3$aspectRatio;
9925
- return aspectRatio;
9926
- }, function (_ref4) {
9927
- var _ref4$aspectRatio = _ref4.aspectRatio,
9928
- aspectRatio = _ref4$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref4$aspectRatio,
9929
- height = _ref4.height;
9930
- return "calc(calc(" + height + "px - 30px) * " + AspectRatioWidth[aspectRatio] + ")";
9931
- });
9932
- var CaptionWrapper = /*#__PURE__*/styled__default(Caption)(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n margin-top: 12px;\n max-width: var(--caption-max-width, 100%);\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n overflow-wrap: normal;\n }\n height: 22px;\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n word-break: var(--word-break-body);\n\n @media ", " {\n height: 18px;\n }\n"])), devices.mobile);
9933
-
9934
- var ImageWithCaption = function ImageWithCaption(_ref) {
9935
- var caption = _ref.caption,
9936
- altText = _ref.altText,
9937
- children = _ref.children,
9938
- aspectRatio = _ref.aspectRatio;
9939
- var wrapperRef = React.useRef(null);
9940
- var imgRef = React.useRef(null);
9941
- var _useState = React.useState(0),
9942
- height = _useState[0],
9943
- setHeight = _useState[1];
9944
- var updateWrapperHeight = React__default.useCallback(function () {
9945
- var _wrapperRef$current;
9946
- setHeight((wrapperRef == null || (_wrapperRef$current = wrapperRef.current) == null ? void 0 : _wrapperRef$current.offsetHeight) || 0);
9947
- }, []);
9948
- var updateCaptionWidth = React__default.useCallback(function () {
9949
- var img = imgRef.current;
9950
- var wrapper = wrapperRef.current;
9951
- if (img && wrapper) {
9952
- var w = img.getBoundingClientRect().width;
9953
- wrapper.style.setProperty('--caption-max-width', Math.round(w) + "px");
9954
- }
9955
- }, []);
9956
- React.useEffect(function () {
9957
- updateWrapperHeight();
9958
- updateCaptionWidth();
9959
- window.addEventListener('resize', updateWrapperHeight);
9960
- window.addEventListener('resize', updateCaptionWidth);
9961
- var imageResizeObserver = null;
9962
- if (typeof ResizeObserver !== 'undefined' && imgRef.current) {
9963
- imageResizeObserver = new ResizeObserver(updateCaptionWidth);
9964
- imageResizeObserver.observe(imgRef.current);
9965
- }
9966
- return function () {
9967
- window.removeEventListener('resize', updateWrapperHeight);
9968
- window.removeEventListener('resize', updateCaptionWidth);
9969
- if (imageResizeObserver && imgRef.current) imageResizeObserver.unobserve(imgRef.current);
9970
- };
9971
- }, [updateWrapperHeight, updateCaptionWidth]);
9972
- var clonedChildren = React__default.Children.map(children, function (child) {
9973
- if (! /*#__PURE__*/React__default.isValidElement(child)) return child;
9974
- var childElement = child;
9975
- var originalRef = child.ref;
9976
- var newProps = {
9977
- alt: altText,
9978
- tabIndex: 0,
9979
- onKeyDown: function onKeyDown(e) {
9980
- if (e.key === 'Enter' || e.key === ' ') {
9981
- var _imgRef$current;
9982
- e.preventDefault();
9983
- (_imgRef$current = imgRef.current) == null || _imgRef$current.click();
9984
- }
9985
- var originalOnKeyDownHandler = childElement.props.onKeyDown;
9986
- if (originalOnKeyDownHandler) originalOnKeyDownHandler(e);
9987
- },
9988
- ref: function ref(node) {
9989
- imgRef.current = node;
9990
- if (node) updateCaptionWidth();
9991
- if (!originalRef) return;
9992
- if (typeof originalRef === 'function') {
9993
- originalRef(node);
9994
- } else {
9995
- originalRef.current = node;
9996
- }
9997
- }
9998
- };
9999
- return /*#__PURE__*/React__default.cloneElement(childElement, newProps);
10000
- });
10001
- return /*#__PURE__*/React__default.createElement(Wrapper$7, {
10002
- aspectRatio: aspectRatio,
10003
- ref: wrapperRef,
10004
- height: height
10005
- }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
10006
- aspectRatio: aspectRatio
10007
- }, clonedChildren), caption && /*#__PURE__*/React__default.createElement(CaptionWrapper, {
10008
- tag: "figcaption"
10009
- }, caption));
10010
- };
10011
-
10012
- var _templateObject$17, _templateObject2$S, _templateObject3$H, _templateObject4$z, _templateObject5$t, _templateObject6$m;
10013
- var CardContainer$1 = /*#__PURE__*/styled__default.div(_templateObject$17 || (_templateObject$17 = /*#__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"])));
10014
- var ContentContainer$4 = /*#__PURE__*/styled__default.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
10015
- var StyledImage = /*#__PURE__*/styled__default.img(_templateObject3$H || (_templateObject3$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--base-color-white);\n"])));
10016
- var ImageWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject4$z || (_templateObject4$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n"])));
10017
- var IconWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject5$t || (_templateObject5$t = /*#__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);
10018
- var TitleWrapper$4 = /*#__PURE__*/styled__default.div(_templateObject6$m || (_templateObject6$m = /*#__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);
10019
-
10020
- var MiniCard = function MiniCard(_ref) {
9461
+ var MiniCard = function MiniCard(_ref) {
10021
9462
  var _ref$title = _ref.title,
10022
9463
  title = _ref$title === void 0 ? '' : _ref$title,
10023
9464
  subtitle = _ref.subtitle,
@@ -10053,9 +9494,9 @@ var MiniCard = function MiniCard(_ref) {
10053
9494
  }, title)))));
10054
9495
  };
10055
9496
 
10056
- var _templateObject$18, _templateObject2$T, _templateObject3$I, _templateObject4$A, _templateObject5$u;
9497
+ var _templateObject$18, _templateObject2$S, _templateObject3$I, _templateObject4$A, _templateObject5$u;
10057
9498
  var ReadMoreContainer = /*#__PURE__*/styled__default.div(_templateObject$18 || (_templateObject$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0px 0px 12px 0px !important;\n }\n width: 100%;\n"])));
10058
- var LinkContainer = /*#__PURE__*/styled__default.div(_templateObject2$T || (_templateObject2$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 24px;\n gap: 8px;\n\n :hover {\n cursor: pointer;\n }\n\n @media print {\n visibility: hidden;\n }\n"])));
9499
+ var LinkContainer = /*#__PURE__*/styled__default.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 24px;\n gap: 8px;\n\n :hover {\n cursor: pointer;\n }\n\n @media print {\n visibility: hidden;\n }\n"])));
10059
9500
  var FullTextContainer = /*#__PURE__*/styled__default.div(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n visibility: ", ";\n\n @media print {\n visibility: visible;\n }\n"])), function (_ref) {
10060
9501
  var isVisible = _ref.isVisible;
10061
9502
  return isVisible ? 'visible' : 'hidden';
@@ -10145,9 +9586,9 @@ var ReadMore = function ReadMore(_ref) {
10145
9586
  }, isFullTextOpen ? "" + hideText : "" + showMoreText))));
10146
9587
  };
10147
9588
 
10148
- var _templateObject$19, _templateObject2$U, _templateObject3$J, _templateObject4$B, _templateObject5$v;
9589
+ var _templateObject$19, _templateObject2$T, _templateObject3$J, _templateObject4$B, _templateObject5$v;
10149
9590
  var MenuContainer$2 = /*#__PURE__*/styled__default.nav(_templateObject$19 || (_templateObject$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding: 0;\n margin: 0;\n"])));
10150
- var MenuList = /*#__PURE__*/styled__default.ul(_templateObject2$U || (_templateObject2$U = /*#__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 }\n"])), exports.Colors.LightGrey);
9591
+ var MenuList = /*#__PURE__*/styled__default.ul(_templateObject2$T || (_templateObject2$T = /*#__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 }\n"])), exports.Colors.LightGrey);
10151
9592
  var MobileButton = /*#__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 46px 14px 20px;\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-radius: 0;\n display: block;\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"])), exports.Colors.Black, exports.Colors.White, exports.Colors.DarkGrey);
10152
9593
  var MenuItem$1 = /*#__PURE__*/styled__default.a(_templateObject4$B || (_templateObject4$B = /*#__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 text-decoration: none;\n margin: 0;\n padding: 16px 20px 15px 5px;\n display: block;\n background: ", ";\n cursor: pointer;\n &:hover {\n background: var(--base-color-", ");\n }\n"])), exports.Colors.Black, function (_ref) {
10153
9594
  var isActive = _ref.isActive;
@@ -10309,9 +9750,9 @@ var AuxiliaryNav = function AuxiliaryNav(_ref6) {
10309
9750
  });
10310
9751
  };
10311
9752
 
10312
- var _templateObject$1a, _templateObject2$V, _templateObject3$K, _templateObject4$C, _templateObject5$w, _templateObject6$n;
9753
+ var _templateObject$1a, _templateObject2$U, _templateObject3$K, _templateObject4$C, _templateObject5$w, _templateObject6$n;
10313
9754
  var Container$5 = /*#__PURE__*/styled__default.div(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
10314
- var Sections = /*#__PURE__*/styled__default.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
9755
+ var Sections = /*#__PURE__*/styled__default.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
10315
9756
  var Section = /*#__PURE__*/styled__default.div(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background-color: ", ";\n"])), function (_ref) {
10316
9757
  var color = _ref.color;
10317
9758
  return "var(--base-color-" + color + ")";
@@ -10403,9 +9844,9 @@ var PasswordStrength = function PasswordStrength(_ref) {
10403
9844
  }, strengthLabel))));
10404
9845
  };
10405
9846
 
10406
- var _templateObject$1b, _templateObject2$W, _templateObject3$L, _templateObject4$D, _templateObject5$x, _templateObject6$o, _templateObject7$i, _templateObject8$c;
9847
+ var _templateObject$1b, _templateObject2$V, _templateObject3$L, _templateObject4$D, _templateObject5$x, _templateObject6$o, _templateObject7$i, _templateObject8$b;
10407
9848
  var TableContainer = /*#__PURE__*/styled__default.table(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-collapse: collapse;\n"])));
10408
- var Container$6 = /*#__PURE__*/styled__default.div(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n"])));
9849
+ var Container$6 = /*#__PURE__*/styled__default.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n"])));
10409
9850
  var Wrapper$8 = /*#__PURE__*/styled__default.div(_templateObject3$L || (_templateObject3$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
10410
9851
  var TableHeader = /*#__PURE__*/styled__default.th(_templateObject4$D || (_templateObject4$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 12px;\n text-align: left;\n text-transform: capitalize;\n border: 1px solid var(--color-primary-black);\n\n &:last-child {\n white-space: nowrap;\n width: auto;\n }\n\n &:not(:last-child) {\n width: ", ";\n }\n\n @media ", " {\n &:last-child {\n white-space: nowrap;\n }\n }\n\n @media ", " {\n min-width: 150px;\n\n &:last-child {\n white-space: normal;\n }\n }\n"])), function (props) {
10411
9852
  return "calc(100% / " + (props.columns - 1) + ")";
@@ -10415,7 +9856,7 @@ var TableCell = /*#__PURE__*/styled__default.td(_templateObject5$x || (_template
10415
9856
  }, devices.mobile);
10416
9857
  var PaginationWrapper = /*#__PURE__*/styled__default(Pagination)(_templateObject6$o || (_templateObject6$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 40px;\n padding-bottom: 80px;\n\n @media ", " {\n padding-top: 24px;\n padding-bottom: 60px;\n }\n"])), devices.mobile);
10417
9858
  var ScrollButtons = /*#__PURE__*/styled__default.div(_templateObject7$i || (_templateObject7$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n padding: 60px 0 24px 0;\n\n div:hover {\n background-color: var(--color-base-light-grey);\n }\n\n > div > div {\n background-color: var(--color-base-light-grey);\n }\n\n svg path {\n fill: var(--color-base-black) !important;\n }\n"])));
10418
- var AriaDescription$2 = /*#__PURE__*/styled__default.span(_templateObject8$c || (_templateObject8$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n"])));
9859
+ var AriaDescription$2 = /*#__PURE__*/styled__default.span(_templateObject8$b || (_templateObject8$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n"])));
10419
9860
 
10420
9861
  /* eslint-disable react/no-danger */
10421
9862
  var Content = function Content(_ref) {
@@ -10618,7 +10059,7 @@ var Table = function Table(_ref) {
10618
10059
  }))));
10619
10060
  };
10620
10061
 
10621
- var _templateObject$1c, _templateObject2$X, _templateObject3$M, _templateObject4$E, _templateObject5$y, _templateObject6$p, _templateObject7$j, _templateObject8$d, _templateObject9$7, _templateObject0$7, _templateObject1$5, _templateObject10$3, _templateObject11$3, _templateObject12$3, _templateObject13$2;
10062
+ var _templateObject$1c, _templateObject2$W, _templateObject3$M, _templateObject4$E, _templateObject5$y, _templateObject6$p, _templateObject7$j, _templateObject8$c, _templateObject9$7, _templateObject0$7, _templateObject1$5, _templateObject10$3, _templateObject11$3, _templateObject12$3, _templateObject13$2;
10622
10063
  var Wrapper$9 = /*#__PURE__*/styled__default('div')(_templateObject$1c || (_templateObject$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n border-top: 4px solid ", ";\n border-bottom: 4px solid ", ";\n"])), function (_ref) {
10623
10064
  var theme = _ref.theme;
10624
10065
  return "var(--color-" + theme + ")";
@@ -10626,13 +10067,13 @@ var Wrapper$9 = /*#__PURE__*/styled__default('div')(_templateObject$1c || (_temp
10626
10067
  var theme = _ref2.theme;
10627
10068
  return "var(--color-" + theme + ")";
10628
10069
  });
10629
- var SignUpFormWrapper = /*#__PURE__*/styled__default(Grid)(_templateObject2$X || (_templateObject2$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0 var(--grid-column-gap);\n margin-bottom: 32px;\n\n @media ", " {\n margin-bottom: 30px;\n }\n"])), devices.mobile);
10070
+ var SignUpFormWrapper = /*#__PURE__*/styled__default(Grid)(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0 var(--grid-column-gap);\n margin-bottom: 32px;\n\n @media ", " {\n margin-bottom: 30px;\n }\n"])), devices.mobile);
10630
10071
  var SignUpTitleWrapper = /*#__PURE__*/styled__default('div')(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: left;\n position: relative;\n top: -25px;\n left: -20px;\n height: 52px;\n background: var(--color-base-white);\n display: inline-block;\n padding: 0 20px;\n\n @media ", " {\n top: -18px;\n height: 37px;\n padding: 0 13px;\n left: -13px;\n }\n"])), devices.mobile);
10631
10072
  var Error = /*#__PURE__*/styled__default.div(_templateObject4$E || (_templateObject4$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n color: var(--color-base-errorstate);\n\n a {\n text-decoration: underline;\n color: inherit;\n }\n"])));
10632
10073
  var Form = /*#__PURE__*/styled__default.form(_templateObject5$y || (_templateObject5$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n align-items: center;\n ", " {\n margin-top: -20px;\n }\n a[href] {\n color: inherit;\n }\n"])), Error);
10633
10074
  var FormFooterWrapper = /*#__PURE__*/styled__default.div(_templateObject6$p || (_templateObject6$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n display: flex;\n gap: 28px;\n align-items: center;\n\n @media ", " {\n flex-direction: column;\n align-items: flex-start;\n }\n"])), devices.mobile);
10634
10075
  var ServerError = /*#__PURE__*/styled__default.div(_templateObject7$j || (_templateObject7$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: left;\n color: var(--color-base-errorstate);\n"])));
10635
- var CTALinkWrapper = /*#__PURE__*/styled__default.a(_templateObject8$d || (_templateObject8$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n\n @media ", " {\n text-decoration: underline;\n }\n"])), devices.mobile);
10076
+ var CTALinkWrapper = /*#__PURE__*/styled__default.a(_templateObject8$c || (_templateObject8$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n\n @media ", " {\n text-decoration: underline;\n }\n"])), devices.mobile);
10636
10077
  var ButtonWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject9$7 || (_templateObject9$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n all: unset;\n width: fit-content;\n color: var(--base-color-white);\n text-decoration: none;\n\n @media ", " {\n width: 100%;\n }\n"])), devices.mobile);
10637
10078
  var FieldsWrapper = /*#__PURE__*/styled__default.div(_templateObject0$7 || (_templateObject0$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 36px;\n\n @media ", " {\n grid-template-columns: 1fr;\n gap: 20px;\n }\n"])), devices.mobile);
10638
10079
  var MessageWrapper = /*#__PURE__*/styled__default.div(_templateObject1$5 || (_templateObject1$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n div > p {\n margin: 0;\n }\n"])));
@@ -11043,10 +10484,10 @@ var SignUpFormComponent = function SignUpFormComponent(_ref) {
11043
10484
  }))))));
11044
10485
  };
11045
10486
 
11046
- var _templateObject$1d, _templateObject2$Y, _templateObject4$F, _templateObject5$z;
10487
+ var _templateObject$1d, _templateObject2$X, _templateObject4$F, _templateObject5$z;
11047
10488
  var AnchorBarContainer = /*#__PURE__*/styled__default(Grid)(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n min-height: 70px;\n background: var(--color-base-white);\n z-index: ", ";\n align-content: center;\n border-bottom: 1px solid var(--color-base-light-grey);\n\n ", "\n\n @media ", " {\n min-height: 60px;\n }\n"])), zIndexes.anchor, function (_ref) {
11048
10489
  var withShadow = _ref.withShadow;
11049
- return withShadow && styled.css(_templateObject2$Y || (_templateObject2$Y = _taggedTemplateLiteralLoose(["\n box-shadow: var(--shadow-floating);\n "])));
10490
+ return withShadow && styled.css(_templateObject2$X || (_templateObject2$X = _taggedTemplateLiteralLoose(["\n box-shadow: var(--shadow-floating);\n "])));
11050
10491
  }, devices.mobile);
11051
10492
  var CloseButtonWrapper = /*#__PURE__*/styled__default.a(_templateObject4$F || (_templateObject4$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 24px;\n min-width: 24px;\n max-height: 24px;\n max-width: 24px;\n border: none;\n padding: 0;\n background: none;\n\n :hover {\n cursor: pointer;\n }\n\n @media ", " {\n min-height: 12px;\n min-width: 12px;\n max-height: 12px;\n max-width: 12px;\n }\n"])), devices.mobile);
11052
10493
  var ContentWrapper$2 = /*#__PURE__*/styled__default.a(_templateObject5$z || (_templateObject5$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
@@ -11104,12 +10545,12 @@ var AnchorBar = function AnchorBar(_ref) {
11104
10545
  return null;
11105
10546
  };
11106
10547
 
11107
- var _templateObject$1e, _templateObject2$Z;
10548
+ var _templateObject$1e, _templateObject2$Y;
11108
10549
  var FocusableTab = /*#__PURE__*/styled__default(Tab)(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n &:not(:active):not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: 0;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n user-select: none;\n }\n\n @media ", " {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: 0;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n user-select: none;\n }\n"])), function (_ref) {
11109
10550
  var $hide = _ref.$hide;
11110
10551
  return $hide && "\n display: none;\n ";
11111
10552
  }, devices.mobileAndTablet);
11112
- var HiddenBlock = /*#__PURE__*/styled__default.div(_templateObject2$Z || (_templateObject2$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 29px 50px;\n display: inline-block;\n width: 100%;\n height: fit-content;\n border-bottom: solid 2px gray;\n overflow: hidden;\n &:not(:has(div:focus)) {\n border-bottom: 0;\n }\n @media ", " {\n border-bottom: 0;\n }\n"])), devices.mobileAndTablet);
10553
+ var HiddenBlock = /*#__PURE__*/styled__default.div(_templateObject2$Y || (_templateObject2$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 29px 50px;\n display: inline-block;\n width: 100%;\n height: fit-content;\n border-bottom: solid 2px gray;\n overflow: hidden;\n &:not(:has(div:focus)) {\n border-bottom: 0;\n }\n @media ", " {\n border-bottom: 0;\n }\n"])), devices.mobileAndTablet);
11113
10554
 
11114
10555
  var SkipToMain = function SkipToMain(_ref) {
11115
10556
  var skipToId = _ref.skipToId;
@@ -11157,7 +10598,8 @@ var SkipToMain = function SkipToMain(_ref) {
11157
10598
  title: "Skip to main content",
11158
10599
  onClick: clickHandler,
11159
10600
  "$hide": !targetElement,
11160
- ariaLabel: "Skip to main content, in-page link"
10601
+ ariaLabel: "Skip to main content, in-page",
10602
+ role: "link"
11161
10603
  }));
11162
10604
  };
11163
10605
 
@@ -11327,9 +10769,9 @@ var Navigation = function Navigation(_ref) {
11327
10769
  })))))));
11328
10770
  };
11329
10771
 
11330
- var _templateObject$1f, _templateObject2$_, _templateObject3$N, _templateObject4$G, _templateObject5$A, _templateObject6$q, _templateObject7$k;
10772
+ var _templateObject$1f, _templateObject2$Z, _templateObject3$N, _templateObject4$G, _templateObject5$A, _templateObject6$q, _templateObject7$k;
11331
10773
  var FooterSection = /*#__PURE__*/styled__default(Grid)(_templateObject$1f || (_templateObject$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--color-base-black);\n color: var(--color-base-white);\n padding: 44px 0px;\n grid-template-areas: '. . policy policy policy policy social social social social logo logo logo logo . .';\n\n @media ", " {\n padding: 40px 0px;\n gap: 24px;\n }\n\n @media ", " {\n padding: 20px 0px;\n row-gap: 40px;\n grid-template-areas:\n '. social social social social social social social social social social social social .'\n '. policy policy policy policy policy policy policy policy policy policy policy policy .'\n '. logo logo logo logo logo logo logo logo logo logo logo logo .';\n }\n"])), devices.tablet, devices.mobile);
11332
- var PolicyLinksSection = /*#__PURE__*/styled__default(GridItem)(_templateObject2$_ || (_templateObject2$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: policy;\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n @media ", " {\n gap: 20px;\n }\n\n @media ", " {\n gap: 12px;\n }\n"])), devices.tablet, devices.mobile);
10774
+ var PolicyLinksSection = /*#__PURE__*/styled__default(GridItem)(_templateObject2$Z || (_templateObject2$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: policy;\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n @media ", " {\n gap: 20px;\n }\n\n @media ", " {\n gap: 12px;\n }\n"])), devices.tablet, devices.mobile);
11333
10775
  var SocialAndNewsletterSection = /*#__PURE__*/styled__default(GridItem)(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: social;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n\n @media ", " {\n gap: 40px;\n }\n"])), devices.mobile);
11334
10776
  var SectionWrapper = /*#__PURE__*/styled__default.div(_templateObject4$G || (_templateObject4$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n @media ", " {\n gap: 24px;\n }\n"])), devices.mobile);
11335
10777
  var LogoAndDescriptionSection = /*#__PURE__*/styled__default(GridItem)(_templateObject5$A || (_templateObject5$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: logo;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n @media ", " {\n gap: 24px;\n }\n"])), devices.mobile);
@@ -11392,14 +10834,14 @@ var Footer = function Footer(_ref) {
11392
10834
  }, additionalInfo))));
11393
10835
  };
11394
10836
 
11395
- var _templateObject$1g, _templateObject2$$, _templateObject3$O, _templateObject4$H, _templateObject5$B, _templateObject8$e, _templateObject9$8, _templateObject0$8;
10837
+ var _templateObject$1g, _templateObject2$_, _templateObject3$O, _templateObject4$H, _templateObject5$B, _templateObject8$d, _templateObject9$8, _templateObject0$8;
11396
10838
  var LIST_ITEM_GAP = 32;
11397
10839
  var AnchorTabbarWrapper = /*#__PURE__*/styled__default.div(_templateObject$1g || (_templateObject$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n width: 100%;\n top: 0;\n border-bottom: ", ";\n background-color: var(--color-base-white);\n z-index: ", ";\n\n ", "\n"])), function (_ref) {
11398
10840
  var bottomBorder = _ref.bottomBorder;
11399
10841
  return bottomBorder ? '1px solid var(--color-base-light-grey)' : 'none';
11400
10842
  }, zIndexes.anchor, function (_ref2) {
11401
10843
  var withShadow = _ref2.withShadow;
11402
- return withShadow && styled.css(_templateObject2$$ || (_templateObject2$$ = _taggedTemplateLiteralLoose(["\n box-shadow: var(--shadow-floating);\n "])));
10844
+ return withShadow && styled.css(_templateObject2$_ || (_templateObject2$_ = _taggedTemplateLiteralLoose(["\n box-shadow: var(--shadow-floating);\n "])));
11403
10845
  });
11404
10846
  var TabsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--anchor-tabs-height);\n"])));
11405
10847
  var TabsWrapper = /*#__PURE__*/styled__default.div(_templateObject4$H || (_templateObject4$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
@@ -11414,7 +10856,7 @@ var TabsList = /*#__PURE__*/styled__default.ul(_templateObject5$B || (_templateO
11414
10856
  hasTwoArrows = _ref5.hasTwoArrows;
11415
10857
  return tabsOverflow && hasTwoArrows ? 'calc(100% - 50px)' : '100%';
11416
10858
  });
11417
- var ArrowsContainer = /*#__PURE__*/styled__default.div(_templateObject8$e || (_templateObject8$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 74px;\n height: var(--anchor-tabs-height);\n background-color: var(--color-base-white);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n\n ", "\n"])), function (_ref7) {
10859
+ var ArrowsContainer = /*#__PURE__*/styled__default.div(_templateObject8$d || (_templateObject8$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 74px;\n height: var(--anchor-tabs-height);\n background-color: var(--color-base-white);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n\n ", "\n"])), function (_ref7) {
11418
10860
  var withShadow = _ref7.withShadow;
11419
10861
  return withShadow && styled.css(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n box-shadow: var(--shadow-floating);\n "])));
11420
10862
  });
@@ -11673,12 +11115,12 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
11673
11115
  })))) : null))));
11674
11116
  };
11675
11117
 
11676
- var _templateObject$1h, _templateObject2$10, _templateObject3$P, _templateObject4$I, _templateObject6$r, _templateObject7$l, _templateObject8$f, _templateObject9$9, _templateObject0$9;
11118
+ var _templateObject$1h, _templateObject2$$, _templateObject3$P, _templateObject4$I, _templateObject6$r, _templateObject7$l, _templateObject8$e, _templateObject9$9, _templateObject0$9;
11677
11119
  var TitleCTAGridWrapper = /*#__PURE__*/styled__default.div(_templateObject$1h || (_templateObject$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: ", ";\n top: -1px;\n background-color: var(--base-color-white);\n z-index: ", ";\n"])), function (_ref) {
11678
11120
  var sticky = _ref.sticky;
11679
11121
  return sticky ? 'sticky' : 'initial';
11680
11122
  }, zIndexes.anchor);
11681
- var TitleCTAGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$10 || (_templateObject2$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: solid 2px var(--base-color-light-grey);\n"])));
11123
+ var TitleCTAGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$$ || (_templateObject2$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: solid 2px var(--base-color-light-grey);\n"])));
11682
11124
  var TitleCTAGridItem = /*#__PURE__*/styled__default.div(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: 2 / span 15;\n display: flex;\n align-items: center;\n flex-direction: ", ";\n gap: 40px;\n justify-content: space-between;\n\n @media ", " {\n & {\n grid-column: 2 / span 13;\n gap: 20px;\n }\n }\n\n @media ", " {\n & {\n grid-column: 2 / span 12;\n }\n }\n"])), function (_ref2) {
11683
11125
  var title = _ref2.title;
11684
11126
  return title ? 'row' : 'row-reverse';
@@ -11686,7 +11128,7 @@ var TitleCTAGridItem = /*#__PURE__*/styled__default.div(_templateObject3$P || (_
11686
11128
  var AnchorTitle = /*#__PURE__*/styled__default.div(_templateObject4$I || (_templateObject4$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n min-height: var(--button-height);\n\n h5 {\n padding: 0;\n margin: 0;\n }\n\n @media ", " {\n & {\n min-height: 50px;\n }\n }\n"])), devices.mobile);
11687
11129
  var ButtonsDesktopWrapper = /*#__PURE__*/styled__default.div(_templateObject6$r || (_templateObject6$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n\n @media ", " {\n display: none;\n }\n\n a {\n width: max-content;\n }\n"])), devices.mobile);
11688
11130
  var ButtonsMobileWrapper = /*#__PURE__*/styled__default.div(_templateObject7$l || (_templateObject7$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n & {\n display: block;\n }\n }\n"])), devices.mobile);
11689
- var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject8$f || (_templateObject8$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n svg path {\n fill: ", ";\n }\n }\n"])), function (_ref3) {
11131
+ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject8$e || (_templateObject8$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n svg path {\n fill: ", ";\n }\n }\n"])), function (_ref3) {
11690
11132
  var theme = _ref3.theme;
11691
11133
  return theme.colors.primaryButtonReverseBg;
11692
11134
  }, function (_ref4) {
@@ -11733,13 +11175,10 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
11733
11175
  }, message))));
11734
11176
  };
11735
11177
 
11736
- var _templateObject$1i, _templateObject2$11, _templateObject3$Q;
11737
- var UpsellBorderBox = /*#__PURE__*/styled__default.div(_templateObject$1i || (_templateObject$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: solid 4px;\n border-color: ", ";\n padding: 80px;\n\n @media ", " {\n & {\n border-left: none;\n border-right: none;\n padding-top: 2.5em;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 2.5em;\n }\n }\n\n @media ", " {\n & {\n padding: 25px;\n padding-top: 2.5em;\n }\n }\n"])), function (_ref) {
11738
- var theme = _ref.theme;
11739
- return theme.colors.primary;
11740
- }, devices.mobile, devices.tablet);
11741
- var TitleContainer$4 = /*#__PURE__*/styled__default.div(_templateObject2$11 || (_templateObject2$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n @media ", " {\n margin-left: 1.5em;\n margin-right: 1.5em;\n }\n"])), devices.mobile);
11742
- var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 2.5em;\n div > :first-child {\n margin-top: 1.5em;\n }\n\n @media ", " {\n margin-top: 0;\n div > :first-child {\n margin-top: 0.5em;\n }\n }\n\n @media ", " {\n margin-left: 1.5em;\n margin-right: 1.5em;\n & {\n div > :first-child {\n margin-top: 1em;\n }\n }\n }\n"])), devices.tablet, devices.mobile);
11178
+ var _templateObject$1i, _templateObject2$10, _templateObject3$Q;
11179
+ var UpsellBorderBox = /*#__PURE__*/styled__default.div(_templateObject$1i || (_templateObject$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: solid 4px;\n border-color: var(--upsell-border-color);\n padding: 66px 74px 70px;\n\n @media ", " {\n & {\n border-left: none;\n border-right: none;\n padding: 40px 0px;\n }\n }\n"])), devices.mobile);
11180
+ var TitleContent = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject2$10 || (_templateObject2$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n color: var(--color-primary-black);\n\n @media ", " {\n margin-left: 20px;\n margin-right: 20px;\n }\n }\n"])), devices.mobile);
11181
+ var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 60px;\n\n @media ", " {\n margin-bottom: 40px;\n margin-left: 20px;\n margin-right: 20px;\n }\n"])), devices.mobile);
11743
11182
 
11744
11183
  var _templateObject$1j;
11745
11184
  var TextContainer$2 = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject$1j || (_templateObject$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-base-black);\n font-feature-settings: var(--font-feature-settings-body);\n\n & h1,\n h2,\n h3,\n h4 {\n font-feature-settings: var(--font-feature-settings-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 60px 0 16px;\n\n + p {\n margin-top: 0px;\n }\n }\n\n & h5,\n h6 {\n font-feature-settings: var(--font-feature-settings-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 60px 0 16px;\n\n + p {\n margin-top: 10px;\n }\n }\n\n & a {\n color: var(--color-base-black);\n text-decoration: underline;\n cursor: pointer;\n text-underline-offset: 4px;\n\n &:hover {\n color: var(--color-rbo-black-hovered);\n }\n\n &:active {\n color: var(--color-rbo-black-pressed);\n }\n }\n\n p {\n margin: 30px 0;\n }\n\n p:has(+ ul),\n p:has(+ ol) {\n margin-bottom: 12px;\n }\n\n & ul,\n & ol {\n padding: 0;\n list-style: none;\n margin-block-start: 0;\n margin-block-end: 0;\n }\n\n & ul li,\n & ol li {\n position: relative;\n padding-left: 32px;\n padding-top: 6px;\n padding-bottom: 6px;\n\n @media ", " {\n padding-left: 28px;\n padding-top: 4px;\n padding-bottom: 4px;\n }\n }\n\n & ul > li:before {\n display: inline-block;\n content: '\u2014';\n position: absolute;\n left: 0;\n width: 20px;\n text-align: right;\n margin-right: 12px;\n\n @media ", " {\n width: 16px;\n margin-right: 12px;\n }\n }\n\n & ol {\n counter-reset: custom-ol;\n }\n\n & ol > li {\n counter-increment: custom-ol;\n }\n\n & ol > li::before {\n content: counter(custom-ol, decimal-leading-zero) '';\n position: absolute;\n left: 0;\n min-width: 20px;\n text-align: right;\n margin-right: 12px;\n display: inline-block;\n\n @media ", " {\n min-width: 16px;\n margin-right: 12px;\n }\n }\n"])), devices.mobile, devices.mobile, devices.mobile);
@@ -11790,7 +11229,7 @@ var BodyContent = function BodyContent(_ref) {
11790
11229
  };
11791
11230
 
11792
11231
  var _templateObject$1k;
11793
- var Wrapper$a = /*#__PURE__*/styled__default.div(_templateObject$1k || (_templateObject$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n gap: 60px 75px;\n grid-template-columns: repeat(2, 1fr);\n width: 100%;\n\n @media ", " {\n padding-left: 0;\n padding-right: 0;\n }\n\n @media ", " {\n width: 100%;\n padding-left: 0;\n padding-right: 0;\n grid-template-columns: 1fr;\n }\n"])), devices.tablet, devices.mobile);
11232
+ var Wrapper$a = /*#__PURE__*/styled__default.div(_templateObject$1k || (_templateObject$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n gap: 60px 74px;\n grid-template-columns: repeat(2, 1fr);\n width: 100%;\n\n @media ", " {\n gap: 40px 74px;\n width: 100%;\n padding-left: 0;\n padding-right: 0;\n grid-template-columns: 1fr;\n }\n"])), devices.mobile);
11794
11233
 
11795
11234
  var UpsellCards = function UpsellCards(_ref) {
11796
11235
  var upsellCards = _ref.upsellCards;
@@ -11818,25 +11257,28 @@ var UpsellSection = function UpsellSection(_ref) {
11818
11257
  link = _ref.link,
11819
11258
  upsellCards = _ref.upsellCards,
11820
11259
  _ref$theme = _ref.theme,
11821
- theme = _ref$theme === void 0 ? exports.ThemeType.Core : _ref$theme;
11260
+ theme = _ref$theme === void 0 ? exports.ThemeType.Core : _ref$theme,
11261
+ className = _ref.className;
11822
11262
  var themedUpsellCards = upsellCards ? [].concat(upsellCards).map(function (card) {
11823
11263
  return _extends({}, card, {
11824
11264
  theme: card.theme || theme,
11825
- secondaryTheme: card.secondaryTheme || theme
11265
+ secondaryTheme: card.secondaryTheme || card.theme || theme
11826
11266
  });
11827
11267
  }) : [];
11828
- return /*#__PURE__*/React__default.createElement(Theme, {
11268
+ return /*#__PURE__*/React__default.createElement(HarmonicThemeProvider, {
11829
11269
  theme: theme
11830
- }, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
11270
+ }, /*#__PURE__*/React__default.createElement(Grid, {
11271
+ className: className
11272
+ }, /*#__PURE__*/React__default.createElement(GridItem, {
11831
11273
  columnStartDesktop: 3,
11832
11274
  columnSpanDesktop: 12,
11833
11275
  columnStartDevice: 2,
11834
11276
  columnSpanDevice: 12,
11835
11277
  columnStartSmallDevice: 1,
11836
11278
  columnSpanSmallDevice: 14
11837
- }, /*#__PURE__*/React__default.createElement(UpsellBorderBox, null, /*#__PURE__*/React__default.createElement(TitleContainer$4, null, /*#__PURE__*/React__default.createElement(AltHeader, {
11838
- level: 4
11839
- }, title)), /*#__PURE__*/React__default.createElement(TextContainer$1, null, /*#__PURE__*/React__default.createElement(BodyContent, {
11279
+ }, /*#__PURE__*/React__default.createElement(UpsellBorderBox, null, /*#__PURE__*/React__default.createElement(TitleContent, {
11280
+ serif: true
11281
+ }, title), /*#__PURE__*/React__default.createElement(TextContainer$1, null, /*#__PURE__*/React__default.createElement(BodyContent, {
11840
11282
  text: richText != null ? richText : '',
11841
11283
  columnStartDesktop: 1,
11842
11284
  columnSpanDesktop: 14,
@@ -11849,9 +11291,9 @@ var UpsellSection = function UpsellSection(_ref) {
11849
11291
  })))));
11850
11292
  };
11851
11293
 
11852
- var _templateObject$1l, _templateObject2$12;
11294
+ var _templateObject$1l, _templateObject2$11;
11853
11295
  var StickyBarWrapper = /*#__PURE__*/styled__default.div(_templateObject$1l || (_templateObject$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n top: 0;\n position: sticky;\n z-index: ", ";\n background-color: var(--color-base-white);\n"])), zIndexes.anchor);
11854
- var StickyBarGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$12 || (_templateObject2$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n padding: 28px 0 26px;\n\n @media ", " {\n padding: 24px 0 28px;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"])), function (_ref) {
11296
+ var StickyBarGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$11 || (_templateObject2$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n padding: 28px 0 26px;\n\n @media ", " {\n padding: 24px 0 28px;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"])), function (_ref) {
11855
11297
  var bottomBorder = _ref.bottomBorder;
11856
11298
  return bottomBorder && 'border-bottom: 1px solid var(--color-base-light-grey);';
11857
11299
  }, devices.mobileAndTablet, devices.mobile);
@@ -11882,9 +11324,9 @@ var StickyBar = function StickyBar(_ref) {
11882
11324
  }, children)));
11883
11325
  };
11884
11326
 
11885
- var _templateObject$1m, _templateObject2$13, _templateObject3$R, _templateObject4$J;
11327
+ var _templateObject$1m, _templateObject2$12, _templateObject3$R, _templateObject4$J;
11886
11328
  var InnerModal = /*#__PURE__*/styled__default.div(_templateObject$1m || (_templateObject$1m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 62px;\n background-color: var(--base-color-white);\n z-index: ", ";\n position: relative;\n\n @media ", ", ", " {\n height: 100vh;\n padding: 62px 0 0;\n }\n"])), zIndexes.popup, devices.smallMobile, devices.mobile);
11887
- var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$13 || (_templateObject2$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n right: 0;\n margin: 15px;\n height: 26px;\n width: 26px;\n padding: 0;\n background-color: transparent;\n border: none;\n cursor: pointer;\n @media ", " {\n margin: 25px;\n }\n @media ", ", ", " {\n margin: 30px;\n }\n"])), devices.tablet, devices.desktop, devices.largeDesktop);
11329
+ var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$12 || (_templateObject2$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n right: 0;\n margin: 15px;\n height: 26px;\n width: 26px;\n padding: 0;\n background-color: transparent;\n border: none;\n cursor: pointer;\n @media ", " {\n margin: 25px;\n }\n @media ", ", ", " {\n margin: 30px;\n }\n"])), devices.tablet, devices.desktop, devices.largeDesktop);
11888
11330
  var ContentWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject3$R || (_templateObject3$R = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
11889
11331
  var Overlay = /*#__PURE__*/styled__default(Grid)(_templateObject4$J || (_templateObject4$J = /*#__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"])));
11890
11332
 
@@ -12063,7 +11505,7 @@ var getImageSlideStyles = function getImageSlideStyles(imageHeight) {
12063
11505
  return "height: calc(" + imageHeight + "px + var(--carousel-image-caption-height) + 12px);";
12064
11506
  };
12065
11507
 
12066
- var _templateObject$1n, _templateObject2$14, _templateObject3$S, _templateObject4$K, _templateObject5$C, _templateObject6$s, _templateObject7$m, _templateObject8$g, _templateObject9$a;
11508
+ var _templateObject$1n, _templateObject2$13, _templateObject3$S, _templateObject4$K, _templateObject5$C, _templateObject6$s, _templateObject7$m, _templateObject8$f, _templateObject9$a;
12067
11509
  var ImageCarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject$1n || (_templateObject$1n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n @media ", " {\n ", "\n }}\n \n &:fullscreen {\n background: var(--color-base-white);\n padding-top: 44px;\n padding-bottom: 84px;\n\n .swipe-slide > figure {\n height: var(--fullscreen-figure-height);\n }\n }\n"])), function (_ref) {
12068
11510
  var imagesHeightDesktop = _ref.imagesHeightDesktop;
12069
11511
  return "& {\n .swipe-slide {\n height: fit-content;\n width: auto;\n margin-right: var(--grid-column-gap);\n\n > figure {\n margin: 0px;\n " + getImageSlideStyles(imagesHeightDesktop) + "\n }\n }\n }";
@@ -12071,7 +11513,7 @@ var ImageCarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject$1n |
12071
11513
  var imagesHeightDevice = _ref2.imagesHeightDevice;
12072
11514
  return "&&& {\n .swipe-slide > figure {\n " + getImageSlideStyles(imagesHeightDevice) + "\n }\n }";
12073
11515
  });
12074
- var CardsCarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject2$14 || (_templateObject2$14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n @media ", " {\n && {\n .swipe-slide {\n ", "\n }\n }\n }\n}"])), function (_ref3) {
11516
+ var CardsCarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject2$13 || (_templateObject2$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n @media ", " {\n && {\n .swipe-slide {\n ", "\n }\n }\n }\n}"])), function (_ref3) {
12075
11517
  var type = _ref3.type,
12076
11518
  isActive = _ref3.isActive;
12077
11519
  return "\n & {\n .swipe-slide {\n " + getCardSlideDesktopStyles(type, isActive) + "\n }\n }\n\n @media " + devices.tablet + " {\n & {\n .swipe-slide {\n width: " + (type === exports.CarouselType.SmallCard ? '30%' : '40%') + ";\n }\n }\n }\n ";
@@ -12084,7 +11526,7 @@ var TitleWrapper$5 = /*#__PURE__*/styled__default.div(_templateObject5$C || (_te
12084
11526
  });
12085
11527
  var TitleText$1 = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject6$s || (_templateObject6$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n"])));
12086
11528
  var ButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject7$m || (_templateObject7$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n align-items: start;\n"])));
12087
- var TitleGridItem = /*#__PURE__*/styled__default(GridItem)(_templateObject8$g || (_templateObject8$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n grid-column: 2 / span 10;\n }\n"])), devices.tablet);
11529
+ var TitleGridItem = /*#__PURE__*/styled__default(GridItem)(_templateObject8$f || (_templateObject8$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n grid-column: 2 / span 10;\n }\n"])), devices.tablet);
12088
11530
  var SwipeGridWrapper = /*#__PURE__*/styled__default(GridItem)(_templateObject9$a || (_templateObject9$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n\n @media ", " {\n grid-column: ", ";\n }\n\n @media ", " {\n grid-column: 2 / span 13;\n }\n"])), function (_ref5) {
12089
11531
  var active = _ref5.active;
12090
11532
  return active ? 'grid-column: 1 / span 16' : '';
@@ -12093,10 +11535,10 @@ var SwipeGridWrapper = /*#__PURE__*/styled__default(GridItem)(_templateObject9$a
12093
11535
  return active ? '1 / span 14' : '2 / span 14';
12094
11536
  }, devices.mobile);
12095
11537
 
12096
- var _templateObject$1o, _templateObject2$15;
11538
+ var _templateObject$1o, _templateObject2$14;
12097
11539
  var SWIPE_SLIDE_CLASS_NAME = 'swipe-slide';
12098
11540
  var SwipeContainer = /*#__PURE__*/styled__default.div(_templateObject$1o || (_templateObject$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n width: 100%;\n touch-action: pan-y;\n"])));
12099
- var SwipeTrack = /*#__PURE__*/styled__default.div(_templateObject2$15 || (_templateObject2$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n transition: ", ";\n transform: translateX(", ");\n\n .", " {\n flex-shrink: 0;\n }\n"])), function (_ref) {
11541
+ var SwipeTrack = /*#__PURE__*/styled__default.div(_templateObject2$14 || (_templateObject2$14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n transition: ", ";\n transform: translateX(", ");\n\n .", " {\n flex-shrink: 0;\n }\n"])), function (_ref) {
12100
11542
  var transitioning = _ref.transitioning;
12101
11543
  return transitioning ? 'transform 0.3s ease' : 'none';
12102
11544
  }, function (_ref2) {
@@ -12568,15 +12010,15 @@ var Carousel = function Carousel(_ref) {
12568
12010
  }, children))));
12569
12011
  };
12570
12012
 
12571
- var _templateObject$1p, _templateObject2$16, _templateObject3$T, _templateObject4$L, _templateObject5$D, _templateObject6$t, _templateObject7$n, _templateObject8$h, _templateObject9$b, _templateObject0$a, _templateObject1$6, _templateObject10$4, _templateObject11$4, _templateObject12$4, _templateObject13$3, _templateObject14$1, _templateObject15$1;
12013
+ var _templateObject$1p, _templateObject2$15, _templateObject3$T, _templateObject4$L, _templateObject5$D, _templateObject6$t, _templateObject7$n, _templateObject8$g, _templateObject9$b, _templateObject0$a, _templateObject1$6, _templateObject10$4, _templateObject11$4, _templateObject12$4, _templateObject13$3, _templateObject14$1, _templateObject15$1;
12572
12014
  var HighlightsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$1p || (_templateObject$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-template-rows: max-content minmax(0, 1fr);\n gap: 0 var(--grid-column-gap);\n background-color: var(--color-base-black);\n user-select: none;\n\n .highlight-carousel-text {\n color: var(--color-base-white);\n }\n\n @media ", " {\n & {\n grid-template-rows: min-content max-content max-content;\n }\n }\n"])), devices.mobile);
12573
- var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$16 || (_templateObject2$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 1 / 1 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n padding-top: 40px;\n padding-left: 50px;\n padding-right: 36px;\n user-select: text;\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 12;\n padding: 12px 0 12px var(--grid-margin);\n min-height: 64px;\n box-sizing: border-box;\n width: 100%;\n }\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 11;\n width: 100%;\n padding: 8px 0 8px 20px;\n min-height: 28px;\n }\n }\n"])), devices.tablet, devices.mobile);
12015
+ var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$15 || (_templateObject2$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 1 / 1 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n padding-top: 40px;\n padding-left: 50px;\n padding-right: 36px;\n user-select: text;\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 12;\n padding: 12px 0 12px var(--grid-margin);\n min-height: 64px;\n box-sizing: border-box;\n width: 100%;\n }\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 11;\n width: 100%;\n padding: 8px 0 8px 20px;\n min-height: 28px;\n }\n }\n"])), devices.tablet, devices.mobile);
12574
12016
  var HeaderWrapper = /*#__PURE__*/styled__default.div(_templateObject3$T || (_templateObject3$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n"])));
12575
12017
  var InfoWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject4$L || (_templateObject4$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 2 / 1 / 2 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n align-self: center;\n padding: 36px 36px 36px 50px;\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 2 / 7;\n padding: 0 12px 12px var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n grid-area: 3 / 1 / 4 / 15;\n width: 100%;\n padding: 0 20px;\n margin: 24px 0;\n }\n }\n"])), devices.tablet, devices.mobile);
12576
12018
  var InfoLogoWrapper = /*#__PURE__*/styled__default.div(_templateObject5$D || (_templateObject5$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n width: 132px;\n height: 36px;\n\n @media ", " {\n & {\n margin-bottom: 16px;\n width: 102px;\n height: 28px;\n }\n }\n\n @media ", " {\n & {\n margin-bottom: 20px;\n width: 102px;\n height: 28px;\n }\n }\n"])), devices.tablet, devices.mobile);
12577
12019
  var InfoTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject6$t || (_templateObject6$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: text;\n\n h1,\n h2,\n h3 {\n margin-bottom: 8px;\n }\n"])));
12578
12020
  var InfoTextWrapper = /*#__PURE__*/styled__default.div(_templateObject7$n || (_templateObject7$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 24px;\n user-select: text;\n\n @media ", " {\n & {\n margin-top: 20px;\n }\n }\n"])), devices.mobileAndTablet);
12579
- var InfoLinkWrapper = /*#__PURE__*/styled__default.div(_templateObject8$h || (_templateObject8$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n display: flex;\n flex-direction: row;\n\n @media ", " {\n & {\n margin-top: 16px;\n }\n }\n\n @media ", " {\n & {\n margin-top: 20px;\n }\n display: flex;\n flex-direction: column;\n }\n"])), devices.tablet, devices.mobile);
12021
+ var InfoLinkWrapper = /*#__PURE__*/styled__default.div(_templateObject8$g || (_templateObject8$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n display: flex;\n flex-direction: row;\n\n @media ", " {\n & {\n margin-top: 16px;\n }\n }\n\n @media ", " {\n & {\n margin-top: 20px;\n }\n display: flex;\n flex-direction: column;\n }\n"])), devices.tablet, devices.mobile);
12580
12022
  var CarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject9$b || (_templateObject9$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 7 / 3 / 17;\n position: relative;\n height: 100%;\n width: 100%;\n\n .swipe-slide {\n width: calc(100% - 50px - var(--rotator-button-width));\n -webkit-transform: translate3d(0, 0, 0);\n }\n\n @media ", " {\n & {\n grid-area: 2 / 7 / 3 / 15;\n\n .swipe-slide {\n width: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 3 / 15;\n\n .swipe-slide {\n width: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n"])), devices.tablet, devices.mobile);
12581
12023
  var RotatorButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject0$a || (_templateObject0$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: 50px;\n top: calc(50% - calc(var(--rotator-button-width) / 2));\n z-index: 2;\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.mobileAndTablet);
12582
12024
  var RotatorButtonsWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject1$6 || (_templateObject1$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n div {\n background-color: var(--color-base-black);\n }\n svg path {\n fill: var(--color-base-white);\n }\n\n & {\n display: flex;\n grid-area: 1 / 12 / 2 / 14;\n align-self: center;\n justify-content: flex-end;\n }\n }\n\n @media ", " {\n div {\n background-color: var(--color-base-black);\n }\n svg path {\n fill: var(--color-base-white);\n }\n\n & {\n display: flex;\n grid-area: 1 / 11 / 2 / 14;\n align-self: center;\n justify-content: flex-end;\n }\n }\n"])), devices.tablet, devices.mobile);
@@ -12859,63 +12301,623 @@ var HighlightsCore = function HighlightsCore(_ref) {
12859
12301
  slides: slidesWithLinks
12860
12302
  })));
12861
12303
  };
12862
-
12863
- var _excluded$u = ["logo", "slides"];
12864
- var HighlightsStream = function HighlightsStream(_ref) {
12865
- var logo = _ref.logo,
12866
- slides = _ref.slides,
12867
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
12868
- var slidesWithLinks = slides.map(function (slide) {
12869
- var links = processSlideLinks(slide.links);
12870
- return _extends({}, slide, {
12871
- links: links
12872
- });
12873
- });
12874
- return /*#__PURE__*/React__default.createElement(HarmonicThemeProvider, {
12875
- theme: exports.ThemeType.Stream
12876
- }, /*#__PURE__*/React__default.createElement(HighlightsCarousel, Object.assign({}, rest, {
12877
- slides: slidesWithLinks,
12878
- logo: logo ? /*#__PURE__*/React__default.createElement(StreamBadge, {
12879
- align: "left"
12880
- }) : null
12881
- })));
12304
+
12305
+ var _excluded$u = ["logo", "slides"];
12306
+ var HighlightsStream = function HighlightsStream(_ref) {
12307
+ var logo = _ref.logo,
12308
+ slides = _ref.slides,
12309
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
12310
+ var slidesWithLinks = slides.map(function (slide) {
12311
+ var links = processSlideLinks(slide.links);
12312
+ return _extends({}, slide, {
12313
+ links: links
12314
+ });
12315
+ });
12316
+ return /*#__PURE__*/React__default.createElement(HarmonicThemeProvider, {
12317
+ theme: exports.ThemeType.Stream
12318
+ }, /*#__PURE__*/React__default.createElement(HighlightsCarousel, Object.assign({}, rest, {
12319
+ slides: slidesWithLinks,
12320
+ logo: logo ? /*#__PURE__*/React__default.createElement(StreamBadge, {
12321
+ align: "left"
12322
+ }) : null
12323
+ })));
12324
+ };
12325
+
12326
+ var _templateObject$1q, _templateObject3$U;
12327
+ var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject$1q || (_templateObject$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: none;\n display: flex;\n\n .swipe-slide {\n width: 100%;\n }\n"])));
12328
+ var ButtonsWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$U || (_templateObject3$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin-left: 6px;\n"])));
12329
+
12330
+ var MinimalCarousel = function MinimalCarousel(_ref) {
12331
+ var children = _ref.children;
12332
+ var carouselRef = React.useRef(null);
12333
+ var hasMultipleChildren = React__default.Children.count(children) > 1;
12334
+ var onNext = function onNext() {
12335
+ var _carouselRef$current;
12336
+ return (_carouselRef$current = carouselRef.current) == null ? void 0 : _carouselRef$current.nextSlide();
12337
+ };
12338
+ var onPrev = function onPrev() {
12339
+ var _carouselRef$current2;
12340
+ return (_carouselRef$current2 = carouselRef.current) == null ? void 0 : _carouselRef$current2.prevSlide();
12341
+ };
12342
+ return /*#__PURE__*/React__default.createElement(CarouselWrapper$1, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
12343
+ columnStartDesktop: 1,
12344
+ columnSpanDesktop: 16,
12345
+ columnStartDevice: 1,
12346
+ columnSpanDevice: 14
12347
+ }, /*#__PURE__*/React__default.createElement(Swipe, {
12348
+ ref: carouselRef,
12349
+ infinite: hasMultipleChildren,
12350
+ "data-testid": "carousel-swipe"
12351
+ }, React__default.Children.toArray(children).map(function (child, index) {
12352
+ return /*#__PURE__*/React__default.createElement("div", {
12353
+ key: "swipe-minimal-carousel-slide-" + index
12354
+ }, child);
12355
+ })))), hasMultipleChildren && (/*#__PURE__*/React__default.createElement(ButtonsWrapper$1, {
12356
+ "data-testid": "carousel-buttons-wrapper"
12357
+ }, /*#__PURE__*/React__default.createElement(RotatorButtons, {
12358
+ onClickNext: onNext,
12359
+ onClickPrev: onPrev
12360
+ }))));
12361
+ };
12362
+
12363
+ var colors = {
12364
+ core: '#C8102E',
12365
+ stream: '#1866DC',
12366
+ cinema: '#1A1A1A'
12367
+ };
12368
+ var commonColors = {
12369
+ black: '#1A1A1A',
12370
+ white: '#FFFFFF',
12371
+ darkgrey: '#727272',
12372
+ midgrey: '#B2B2B2',
12373
+ lightgrey: '#F0F0F0',
12374
+ error: '#C8102E',
12375
+ medium: '#D79233',
12376
+ good: '#4EAA33',
12377
+ progress: '#1866DC',
12378
+ navigation: '#C8102E',
12379
+ lemonChiffon: '#fffbbe',
12380
+ lapisLazuli: '#0060a0',
12381
+ blue: '#1866DC',
12382
+ red: '#C8102E'
12383
+ };
12384
+ var fontFamilies = {
12385
+ adobeGaramondPro: 'adobe-garamond-pro',
12386
+ adobeGaramondProItalics: 'adobe-garamond-pro',
12387
+ gothamSSmMedium: '"Gotham SSm A","Gotham SSm B","Montserrat",sans-serif',
12388
+ gothamSSm: '"Gotham SSm A","Gotham SSm B","Montserrat",sans-serif',
12389
+ sabonNextLTProRegular: 'Sabon Next LT Pro Regular',
12390
+ sabonNextLTProRegularItalics: 'Sabon Next LT Pro Regular Italics',
12391
+ sansSerifFallback: 'Montserrat, sans-serif'
12392
+ };
12393
+ var common = {
12394
+ fonts: {
12395
+ desktop: {
12396
+ sizes: {
12397
+ headers: {
12398
+ 1: '96px',
12399
+ 2: '68px',
12400
+ 3: '44px',
12401
+ 4: '34px',
12402
+ 5: '24px',
12403
+ 6: '20px'
12404
+ },
12405
+ altHeaders: {
12406
+ 3: '44px',
12407
+ 4: '34px',
12408
+ 5: '24px',
12409
+ 6: '20px'
12410
+ },
12411
+ subtitles: {
12412
+ 1: '18px',
12413
+ 2: '14px'
12414
+ },
12415
+ titleDescription: '20px',
12416
+ body: {
12417
+ 1: '19px',
12418
+ 2: '16px',
12419
+ 3: '14px'
12420
+ },
12421
+ listing: '19px',
12422
+ buttons: '14px',
12423
+ overline: {
12424
+ 1: '14px',
12425
+ 2: '12px',
12426
+ 3: '10px',
12427
+ 4: '8px'
12428
+ },
12429
+ navigation: '13px',
12430
+ search: '24px'
12431
+ },
12432
+ letterSpacing: {
12433
+ headers: {
12434
+ 1: '2px',
12435
+ 2: '1px',
12436
+ 3: '1px',
12437
+ 4: '1px',
12438
+ 5: '1px',
12439
+ 6: '1px'
12440
+ },
12441
+ altHeaders: {
12442
+ 3: 'normal',
12443
+ 4: 'normal',
12444
+ 5: 'normal',
12445
+ 6: 'normal'
12446
+ },
12447
+ overline: {
12448
+ 1: '1px',
12449
+ 2: '1px',
12450
+ 3: '1px',
12451
+ 4: '1px'
12452
+ },
12453
+ subtitles: {
12454
+ 1: '1px',
12455
+ 2: '1px'
12456
+ },
12457
+ body: {
12458
+ 1: 'normal',
12459
+ 2: 'normal',
12460
+ 3: 'normal'
12461
+ },
12462
+ navigation: '1px'
12463
+ },
12464
+ lineHeights: {
12465
+ headers: {
12466
+ 1: '110px',
12467
+ 2: '72px',
12468
+ 3: '48px',
12469
+ 4: '40px',
12470
+ 5: '30px',
12471
+ 6: '28px'
12472
+ },
12473
+ altHeaders: {
12474
+ 3: '48px',
12475
+ 4: '44px',
12476
+ 5: '30px',
12477
+ 6: '28px'
12478
+ },
12479
+ subtitles: {
12480
+ 1: '22px',
12481
+ 2: '22px'
12482
+ },
12483
+ titleDescription: '28px',
12484
+ body: {
12485
+ 1: '26px',
12486
+ 2: '22px',
12487
+ 3: '20px'
12488
+ },
12489
+ peopleListing: '24px',
12490
+ listing: '36px',
12491
+ buttons: '20px',
12492
+ overline: {
12493
+ 1: '16px',
12494
+ 2: '14px',
12495
+ 3: '12px',
12496
+ 4: '10px'
12497
+ },
12498
+ navigation: '16px'
12499
+ },
12500
+ families: {
12501
+ headers: fontFamilies.gothamSSmMedium,
12502
+ altHeaders: fontFamilies.adobeGaramondPro,
12503
+ subtitles: fontFamilies.gothamSSmMedium,
12504
+ body: fontFamilies.adobeGaramondPro,
12505
+ bodyItalics: fontFamilies.adobeGaramondProItalics,
12506
+ listing: fontFamilies.adobeGaramondPro,
12507
+ listingItalics: fontFamilies.adobeGaramondProItalics,
12508
+ buttons: fontFamilies.gothamSSm,
12509
+ overline: fontFamilies.gothamSSmMedium,
12510
+ navigation: fontFamilies.gothamSSmMedium,
12511
+ peopleListingRole: fontFamilies.gothamSSm,
12512
+ search: fontFamilies.adobeGaramondPro
12513
+ },
12514
+ weights: {
12515
+ headers: {
12516
+ 1: '500',
12517
+ 2: '500',
12518
+ 3: '500',
12519
+ 4: '500',
12520
+ 5: '500',
12521
+ 6: '500'
12522
+ },
12523
+ altHeaders: {
12524
+ 3: 'normal',
12525
+ 4: 'normal',
12526
+ 5: 'normal',
12527
+ 6: 'normal'
12528
+ },
12529
+ buttons: '400',
12530
+ overline: {
12531
+ 1: '500',
12532
+ 2: '500',
12533
+ 3: '500',
12534
+ 4: '500'
12535
+ },
12536
+ body: {
12537
+ 1: '400',
12538
+ 2: '400',
12539
+ 3: '400'
12540
+ },
12541
+ subtitles: {
12542
+ 1: '500',
12543
+ 2: '500'
12544
+ },
12545
+ navigation: '500'
12546
+ },
12547
+ transforms: {
12548
+ headers: 'uppercase',
12549
+ altHeaders: 'none',
12550
+ overline: 'uppercase',
12551
+ subtitles: 'uppercase',
12552
+ body: 'none',
12553
+ navigation: 'uppercase'
12554
+ },
12555
+ fontFeatureSettings: {
12556
+ headers: "'tnum' on, 'lnum' on",
12557
+ altHeaders: "'pnum' on, 'onum' on",
12558
+ overline: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off",
12559
+ subtitles: "'tnum' on, 'lnum' on",
12560
+ body: "'pnum' on, 'onum' on, 'liga' off",
12561
+ navigation: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off"
12562
+ },
12563
+ wordBreak: {
12564
+ headers: 'break-word',
12565
+ altHeaders: 'break-word',
12566
+ overline: 'break-word',
12567
+ subtitles: 'break-word',
12568
+ body: 'break-word'
12569
+ },
12570
+ margins: {
12571
+ headers: {
12572
+ // These margins use the Chrome defaults to enable proper fallbacks when using semantic level -
12573
+ // https://www.w3schools.com/cssref/css_default_values.php
12574
+ 1: '0.67em 0',
12575
+ 2: '0.83em 0',
12576
+ 3: '1em 0',
12577
+ 4: '1.33em 0',
12578
+ 5: '1.67em 0',
12579
+ 6: '2.33em 0'
12580
+ }
12581
+ }
12582
+ },
12583
+ mobile: {
12584
+ sizes: {
12585
+ headers: {
12586
+ 1: '38px',
12587
+ 2: '30px',
12588
+ 3: '26px',
12589
+ 4: '24px',
12590
+ 5: '20px',
12591
+ 6: '17px'
12592
+ },
12593
+ altHeaders: {
12594
+ 3: '26px',
12595
+ 4: '24px',
12596
+ 5: '20px',
12597
+ 6: '17px'
12598
+ },
12599
+ subtitles: {
12600
+ 1: '16px',
12601
+ 2: '14px'
12602
+ },
12603
+ titleDescription: '17px',
12604
+ body: {
12605
+ 1: '17px',
12606
+ 2: '12px',
12607
+ 3: '11px'
12608
+ },
12609
+ listing: '16px',
12610
+ buttons: '14px',
12611
+ overline: {
12612
+ 1: '14px',
12613
+ 2: '12px',
12614
+ 3: '10px',
12615
+ 4: '8px'
12616
+ },
12617
+ navigation: '13px',
12618
+ search: '20px'
12619
+ },
12620
+ letterSpacing: {
12621
+ headers: {
12622
+ 1: '1px',
12623
+ 2: '1px',
12624
+ 3: '1px',
12625
+ 4: '1px',
12626
+ 5: '1px',
12627
+ 6: '1px'
12628
+ },
12629
+ altHeaders: {
12630
+ 3: 'normal',
12631
+ 4: 'normal',
12632
+ 5: 'normal',
12633
+ 6: 'normal'
12634
+ },
12635
+ overline: {
12636
+ 1: '1px',
12637
+ 2: '1px'
12638
+ },
12639
+ subtitles: {
12640
+ 1: '1px',
12641
+ 2: '1px'
12642
+ },
12643
+ body: {
12644
+ 1: 'normal',
12645
+ 2: 'normal',
12646
+ 3: 'normal'
12647
+ },
12648
+ navigation: '1px'
12649
+ },
12650
+ lineHeights: {
12651
+ headers: {
12652
+ 1: '42px',
12653
+ 2: '34px',
12654
+ 3: '30px',
12655
+ 4: '28px',
12656
+ 5: '28px',
12657
+ 6: '24px'
12658
+ },
12659
+ altHeaders: {
12660
+ 3: '30px',
12661
+ 4: '28px',
12662
+ 5: '28px',
12663
+ 6: '24px'
12664
+ },
12665
+ subtitles: {
12666
+ 1: '24px',
12667
+ 2: '18px'
12668
+ },
12669
+ titleDescription: '24px',
12670
+ body: {
12671
+ 1: '24px',
12672
+ 2: '18px',
12673
+ 3: '16px'
12674
+ },
12675
+ listing: '34px',
12676
+ buttons: '20px',
12677
+ overline: {
12678
+ 1: '16px',
12679
+ 2: '14px'
12680
+ },
12681
+ navigation: '16px'
12682
+ },
12683
+ families: {
12684
+ headers: fontFamilies.gothamSSm,
12685
+ altHeaders: fontFamilies.adobeGaramondPro,
12686
+ subtitles: fontFamilies.gothamSSmMedium,
12687
+ body: fontFamilies.adobeGaramondPro,
12688
+ bodyItalics: fontFamilies.adobeGaramondProItalics,
12689
+ listing: fontFamilies.adobeGaramondPro,
12690
+ listingItalics: fontFamilies.adobeGaramondProItalics,
12691
+ buttons: fontFamilies.gothamSSm,
12692
+ overline: fontFamilies.gothamSSmMedium,
12693
+ navigation: fontFamilies.gothamSSmMedium,
12694
+ search: fontFamilies.adobeGaramondPro
12695
+ },
12696
+ weights: {
12697
+ headers: {
12698
+ 1: '500',
12699
+ 2: '500',
12700
+ 3: '500',
12701
+ 4: '500',
12702
+ 5: '500',
12703
+ 6: '500'
12704
+ },
12705
+ altHeaders: {
12706
+ 3: 'normal',
12707
+ 4: 'normal',
12708
+ 5: 'normal',
12709
+ 6: 'normal'
12710
+ },
12711
+ buttons: '400',
12712
+ overline: {
12713
+ 1: '500',
12714
+ 2: '500'
12715
+ },
12716
+ body: {
12717
+ 1: '400',
12718
+ 2: '400',
12719
+ 3: '400'
12720
+ },
12721
+ subtitles: {
12722
+ 1: '500',
12723
+ 2: '500'
12724
+ },
12725
+ navigation: '500'
12726
+ },
12727
+ transforms: {
12728
+ headers: 'uppercase',
12729
+ altHeaders: 'none',
12730
+ overline: 'uppercase',
12731
+ subtitles: 'uppercase',
12732
+ body: 'none',
12733
+ navigation: 'uppercase'
12734
+ },
12735
+ fontFeatureSettings: {
12736
+ headers: "'tnum' on, 'lnum' on",
12737
+ altHeaders: "'pnum' on, 'onum' on",
12738
+ overline: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off",
12739
+ subtitles: "'tnum' on, 'lnum' on",
12740
+ body: "'pnum' on, 'onum' on, 'liga' off",
12741
+ navigation: "'tnum' on, 'lnum' on, 'liga' off, 'calt' off"
12742
+ },
12743
+ wordBreak: {
12744
+ headers: 'break-word',
12745
+ altHeaders: 'break-word',
12746
+ overline: 'break-word',
12747
+ subtitles: 'break-word',
12748
+ body: 'break-word'
12749
+ }
12750
+ },
12751
+ tablet: {
12752
+ sizes: {
12753
+ headers: {
12754
+ 6: '17px'
12755
+ },
12756
+ altHeaders: {
12757
+ 4: '24px'
12758
+ },
12759
+ body: {
12760
+ 1: '17px'
12761
+ }
12762
+ }
12763
+ }
12764
+ },
12765
+ spacing: {
12766
+ 1: '4px',
12767
+ 2: '8px',
12768
+ 3: '12px',
12769
+ 4: '16px',
12770
+ 5: '20px',
12771
+ 6: '24px',
12772
+ 7: '28px',
12773
+ 8: '32px',
12774
+ 9: '36px',
12775
+ 10: '40px',
12776
+ 12: '48px',
12777
+ 15: '60px',
12778
+ 18: '72px',
12779
+ 20: '80px',
12780
+ 30: '120px',
12781
+ 35: '140px',
12782
+ 40: '160px',
12783
+ 45: '180px',
12784
+ 50: '200px'
12785
+ },
12786
+ grid: {
12787
+ mobile: {
12788
+ margin: '20px',
12789
+ outerMargin: '0',
12790
+ gap: '12px'
12791
+ },
12792
+ tablet: {
12793
+ margin: '32px',
12794
+ outerMargin: '0',
12795
+ gap: '20px'
12796
+ },
12797
+ desktop: {
12798
+ margin: '10%',
12799
+ outerMargin: '50px',
12800
+ gap: '36px'
12801
+ }
12802
+ },
12803
+ buttons: {
12804
+ paddingX: '20px',
12805
+ paddingY: '14px',
12806
+ paddingYIcon: '12px',
12807
+ iconWidth: '20px',
12808
+ iconHeight: '20px',
12809
+ iconMargin: '12px'
12810
+ },
12811
+ footer: {
12812
+ desktop: {
12813
+ height: '380px',
12814
+ paddingTop: '44px',
12815
+ paddingBottom: '44px',
12816
+ itemsGap: '32px',
12817
+ mediaGap: '24px',
12818
+ mediaIconWidth: '24px',
12819
+ mediaIconHeight: '24px',
12820
+ verticalSpacingLarge: '58px',
12821
+ verticalSpacingSmall: '16px'
12822
+ },
12823
+ tablet: {
12824
+ paddingTop: '40px',
12825
+ paddingBottom: '40px'
12826
+ },
12827
+ mobile: {
12828
+ height: 'auto',
12829
+ paddingTop: '20px',
12830
+ paddingBottom: '20px',
12831
+ itemsGap: '12px',
12832
+ mediaGap: '32px',
12833
+ mediaIconWidth: '28px',
12834
+ mediaIconHeight: '28px',
12835
+ verticalSpacingLarge: '24px',
12836
+ verticalSpacingSmall: '24px'
12837
+ }
12838
+ }
12839
+ };
12840
+ var core = /*#__PURE__*/_extends({}, common, {
12841
+ colors: /*#__PURE__*/_extends({}, commonColors, colors, {
12842
+ primary: colors.core,
12843
+ primaryButton: colors.core,
12844
+ secondaryButton: colors.core,
12845
+ tertiaryButton: 'transparent',
12846
+ auxiliaryButton: 'transparent',
12847
+ primaryButtonReverseBg: colors.cinema,
12848
+ primaryButtonReverse: commonColors.white
12849
+ })
12850
+ });
12851
+ var stream = /*#__PURE__*/_extends({}, common, {
12852
+ colors: /*#__PURE__*/_extends({}, commonColors, colors, {
12853
+ primary: colors.stream,
12854
+ primaryButton: colors.stream,
12855
+ primaryButtonReverseBg: colors.cinema,
12856
+ primaryButtonReverse: commonColors.white,
12857
+ secondaryButton: colors.stream,
12858
+ tertiaryButton: 'transparent',
12859
+ auxiliaryButton: 'transparent'
12860
+ })
12861
+ });
12862
+ var cinema = /*#__PURE__*/_extends({}, common, {
12863
+ colors: /*#__PURE__*/_extends({}, commonColors, colors, {
12864
+ primary: colors.cinema,
12865
+ primaryButton: commonColors.white,
12866
+ primaryButtonReverseBg: commonColors.white,
12867
+ primaryButtonReverse: colors.cinema,
12868
+ secondaryButton: colors.cinema,
12869
+ tertiaryButton: 'transparent',
12870
+ auxiliaryButton: 'transparent'
12871
+ })
12872
+ });
12873
+ var schools = /*#__PURE__*/_extends({}, common, {
12874
+ colors: /*#__PURE__*/_extends({}, commonColors, colors, {
12875
+ primary: colors.core,
12876
+ primaryButton: colors.core,
12877
+ primaryButtonReverseBg: colors.cinema,
12878
+ primaryButtonReverse: commonColors.white,
12879
+ secondaryButton: colors.core,
12880
+ tertiaryButton: 'transparent',
12881
+ auxiliaryButton: 'transparent'
12882
+ }),
12883
+ fonts: /*#__PURE__*/_extends({}, common.fonts, {
12884
+ desktop: /*#__PURE__*/_extends({}, common.fonts.desktop, {
12885
+ transforms: {
12886
+ headers: 'none',
12887
+ altHeaders: 'none',
12888
+ overline: 'none',
12889
+ subtitles: 'none',
12890
+ body: 'none',
12891
+ navigation: 'uppercase'
12892
+ }
12893
+ }),
12894
+ mobile: /*#__PURE__*/_extends({}, common.fonts.mobile, {
12895
+ transforms: {
12896
+ headers: 'none',
12897
+ altHeaders: 'none',
12898
+ overline: 'none',
12899
+ subtitles: 'none',
12900
+ body: 'none',
12901
+ navigation: 'uppercase'
12902
+ }
12903
+ })
12904
+ })
12905
+ });
12906
+ var themes = {
12907
+ core: core,
12908
+ stream: stream,
12909
+ cinema: cinema,
12910
+ fontFamilies: fontFamilies,
12911
+ schools: schools
12882
12912
  };
12883
12913
 
12884
- var _templateObject$1q, _templateObject3$U;
12885
- var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject$1q || (_templateObject$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: none;\n display: flex;\n\n .swipe-slide {\n width: 100%;\n }\n"])));
12886
- var ButtonsWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$U || (_templateObject3$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin-left: 6px;\n"])));
12887
-
12888
- var MinimalCarousel = function MinimalCarousel(_ref) {
12889
- var children = _ref.children;
12890
- var carouselRef = React.useRef(null);
12891
- var hasMultipleChildren = React__default.Children.count(children) > 1;
12892
- var onNext = function onNext() {
12893
- var _carouselRef$current;
12894
- return (_carouselRef$current = carouselRef.current) == null ? void 0 : _carouselRef$current.nextSlide();
12895
- };
12896
- var onPrev = function onPrev() {
12897
- var _carouselRef$current2;
12898
- return (_carouselRef$current2 = carouselRef.current) == null ? void 0 : _carouselRef$current2.prevSlide();
12899
- };
12900
- return /*#__PURE__*/React__default.createElement(CarouselWrapper$1, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
12901
- columnStartDesktop: 1,
12902
- columnSpanDesktop: 16,
12903
- columnStartDevice: 1,
12904
- columnSpanDevice: 14
12905
- }, /*#__PURE__*/React__default.createElement(Swipe, {
12906
- ref: carouselRef,
12907
- infinite: hasMultipleChildren,
12908
- "data-testid": "carousel-swipe"
12909
- }, React__default.Children.toArray(children).map(function (child, index) {
12910
- return /*#__PURE__*/React__default.createElement("div", {
12911
- key: "swipe-minimal-carousel-slide-" + index
12912
- }, child);
12913
- })))), hasMultipleChildren && (/*#__PURE__*/React__default.createElement(ButtonsWrapper$1, {
12914
- "data-testid": "carousel-buttons-wrapper"
12915
- }, /*#__PURE__*/React__default.createElement(RotatorButtons, {
12916
- onClickNext: onNext,
12917
- onClickPrev: onPrev
12918
- }))));
12914
+ var Theme = function Theme(_ref) {
12915
+ var children = _ref.children,
12916
+ theme = _ref.theme;
12917
+ var chosenTheme = themes[theme];
12918
+ return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
12919
+ theme: chosenTheme
12920
+ }, children);
12919
12921
  };
12920
12922
 
12921
12923
  var _templateObject$1r;
@@ -13866,9 +13868,9 @@ var GlobalStyles = /*#__PURE__*/styled.createGlobalStyle(_templateObject$1r || (
13866
13868
  return theme.footer.tablet.paddingBottom;
13867
13869
  }, devices.desktop, devices.largeDesktop);
13868
13870
 
13869
- var _templateObject$1s, _templateObject2$17, _templateObject3$V;
13871
+ var _templateObject$1s, _templateObject2$16, _templateObject3$V;
13870
13872
  var FigureBlock = /*#__PURE__*/styled__default.figure(_templateObject$1s || (_templateObject$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n"])));
13871
- var BlockquoteBlock = /*#__PURE__*/styled__default.blockquote(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n"])));
13873
+ var BlockquoteBlock = /*#__PURE__*/styled__default.blockquote(_templateObject2$16 || (_templateObject2$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n"])));
13872
13874
  var AttributionBlock = /*#__PURE__*/styled__default(HarmonicSubtitle)(_templateObject3$V || (_templateObject3$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 32px 0;\n\n & cite {\n font-style: normal;\n }\n\n @media ", " {\n padding: 24px 0;\n }\n"])), devices.mobile);
13873
13875
 
13874
13876
  /* eslint-disable react/no-danger */