@royaloperahouse/harmonic 0.7.1-f → 0.7.1-h

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.
@@ -4,7 +4,6 @@ import moment from 'moment';
4
4
  import Modal from 'react-modal';
5
5
  import ScrollLock from 'react-scrolllock';
6
6
  import { renderToString } from 'react-dom/server';
7
- import { useLocation } from 'react-router-dom';
8
7
  import Select$1, { components } from 'react-select';
9
8
  import Select$2 from 'react-select/async';
10
9
 
@@ -387,7 +386,7 @@ var css_248z = "/* Base classes */\n.typography-module_display__ZHsz9 {\n margi
387
386
  var styles = {"display":"typography-module_display__ZHsz9","header":"typography-module_header__FVsLI","subtitle":"typography-module_subtitle__x3sSn","bodycopy":"typography-module_bodycopy__-BY2U","overline":"typography-module_overline__y1yCC","buttontext":"typography-module_buttontext__Gp0W-","captiontext":"typography-module_captiontext__zyA--","navigationtext":"typography-module_navigationtext__Qj6Zw","display--large":"typography-module_display--large__RwPQD","display--small":"typography-module_display--small__XWUSJ","header--large":"typography-module_header--large__2vP3p","header--medium":"typography-module_header--medium__OgzlB","header--small":"typography-module_header--small__zLuFf","subtitle--large":"typography-module_subtitle--large__1Ep9J","subtitle--small":"typography-module_subtitle--small__Vt9bZ","bodycopy--large":"typography-module_bodycopy--large__BNzf2","bodycopy--medium":"typography-module_bodycopy--medium__cwJEu","bodycopy--small":"typography-module_bodycopy--small__fTLSM","overline--large":"typography-module_overline--large__79WUM","overline--small":"typography-module_overline--small__MGEG6","display--primary":"typography-module_display--primary__9sTwU","header--primary":"typography-module_header--primary__KF0PJ","subtitle--primary":"typography-module_subtitle--primary__yL-hS","bodycopy--primary":"typography-module_bodycopy--primary__5Uo2D","overline--primary":"typography-module_overline--primary__a2NSa","buttontext--primary":"typography-module_buttontext--primary__HnmE3","captiontext--primary":"typography-module_captiontext--primary__mmafI","navigationtext--primary":"typography-module_navigationtext--primary__vIsUl","display--black":"typography-module_display--black__8hmsx","header--black":"typography-module_header--black__M3I14","subtitle--black":"typography-module_subtitle--black__IQRSo","bodycopy--black":"typography-module_bodycopy--black__J8BNP","overline--black":"typography-module_overline--black__RUDoj","buttontext--black":"typography-module_buttontext--black__irjmz","captiontext--black":"typography-module_captiontext--black__7axhP","navigationtext--black":"typography-module_navigationtext--black__wDz-G","display--white":"typography-module_display--white__3QA6W","header--white":"typography-module_header--white__mm-ex","subtitle--white":"typography-module_subtitle--white__VzQ3K","bodycopy--white":"typography-module_bodycopy--white__NJ8J8","overline--white":"typography-module_overline--white__cV5QV","buttontext--white":"typography-module_buttontext--white__rrr8U","captiontext--white":"typography-module_captiontext--white__OMFwW","navigationtext--white":"typography-module_navigationtext--white__5YDdY","display--red":"typography-module_display--red__khdLJ","header--red":"typography-module_header--red__hxuj9","subtitle--red":"typography-module_subtitle--red__gSK7d","bodycopy--red":"typography-module_bodycopy--red__P5Mau","overline--red":"typography-module_overline--red__OW5dE","buttontext--red":"typography-module_buttontext--red__mlRi2","captiontext--red":"typography-module_captiontext--red__jMQIK","navigationtext--red":"typography-module_navigationtext--red__-QADV","display--grey":"typography-module_display--grey__RsgTf","header--grey":"typography-module_header--grey__rC0vN","subtitle--grey":"typography-module_subtitle--grey__1nkEx","bodycopy--grey":"typography-module_bodycopy--grey__SNnaU","overline--grey":"typography-module_overline--grey__lGOsK","buttontext--grey":"typography-module_buttontext--grey__1Y4oX","captiontext--grey":"typography-module_captiontext--grey__V0MLc","navigationtext--grey":"typography-module_navigationtext--grey__xi3sz","display--inherit":"typography-module_display--inherit__ZNOHM","header--inherit":"typography-module_header--inherit__qmHQE","subtitle--inherit":"typography-module_subtitle--inherit__mly-X","bodycopy--inherit":"typography-module_bodycopy--inherit__CoC-f","overline--inherit":"typography-module_overline--inherit__Cq4ni","buttontext--inherit":"typography-module_buttontext--inherit__vguWx","captiontext--inherit":"typography-module_captiontext--inherit__ya6gm","navigationtext--inherit":"typography-module_navigationtext--inherit__cJLWf","display--serif":"typography-module_display--serif__C0-Ve","header--serif":"typography-module_header--serif__uTGCc","display--em":"typography-module_display--em__h2bPV","header--em":"typography-module_header--em__UFQIA","display--bold":"typography-module_display--bold__PG-8g","header--bold":"typography-module_header--bold__InvJk","subtitle--bold":"typography-module_subtitle--bold__Subov","bodycopy--bold":"typography-module_bodycopy--bold__nZX3C","overline--bold":"typography-module_overline--bold__3mUXy","buttontext--bold":"typography-module_buttontext--bold__rBKIJ","captiontext--bold":"typography-module_captiontext--bold__ebTyV","navigationtext--bold":"typography-module_navigationtext--bold__SRlV2"};
388
387
  styleInject(css_248z);
389
388
 
390
- var _excluded = ["children", "size", "color", "className"],
389
+ var _excluded = ["children", "size", "color", "className", "bold"],
391
390
  _excluded2 = ["children", "size", "color", "className"];
392
391
  /* ~~~ Headers - size and hierarchy set separately ~~~ */
393
392
  var HarmonicHeader = function HarmonicHeader(_ref2) {
@@ -434,10 +433,12 @@ var BodyCopyHarmonic = function BodyCopyHarmonic(_ref4) {
434
433
  _ref4$color = _ref4.color,
435
434
  color = _ref4$color === void 0 ? 'inherit' : _ref4$color,
436
435
  className = _ref4.className,
436
+ bold = _ref4.bold,
437
437
  props = _objectWithoutPropertiesLoose(_ref4, _excluded);
438
438
  var classNames = createClassNames('bodycopy', {
439
439
  size: size,
440
440
  color: color,
441
+ bold: bold,
441
442
  className: className
442
443
  }, styles);
443
444
  return /*#__PURE__*/React__default.createElement("p", Object.assign({
@@ -2851,48 +2852,70 @@ var COLORS$1 = {
2851
2852
  hover: 'var(--button-secondary-hover-color)',
2852
2853
  pressed: 'var(--button-secondary-pressed-color)'
2853
2854
  };
2855
+ var isObjectWithKey = function isObjectWithKey(object, key) {
2856
+ return typeof object === 'object' && object !== null && key in object;
2857
+ };
2858
+ var hasSecondaryButtonColor = function hasSecondaryButtonColor(theme) {
2859
+ return isObjectWithKey(theme, 'colors') && isObjectWithKey(theme.colors, 'secondaryButton') && typeof theme.colors.secondaryButton === 'string';
2860
+ };
2854
2861
  var getTextColor$1 = function getTextColor(_ref) {
2855
2862
  var disabled = _ref.disabled,
2856
- textColor = _ref.textColor;
2863
+ textColor = _ref.textColor,
2864
+ theme = _ref.theme;
2857
2865
  if (disabled) {
2858
2866
  return COLORS$1.darkGrey;
2859
2867
  }
2860
2868
  if (textColor) {
2861
2869
  return "var(--color-" + textColor + ")";
2862
2870
  }
2871
+ if (hasSecondaryButtonColor(theme)) {
2872
+ return theme.colors.secondaryButton;
2873
+ }
2863
2874
  return COLORS$1["default"];
2864
2875
  };
2865
2876
  var getBorderColor = function getBorderColor(_ref2) {
2866
2877
  var disabled = _ref2.disabled,
2867
- borderColor = _ref2.borderColor;
2878
+ borderColor = _ref2.borderColor,
2879
+ theme = _ref2.theme;
2868
2880
  if (disabled) {
2869
2881
  return COLORS$1.disabled;
2870
2882
  }
2871
2883
  if (borderColor) {
2872
2884
  return "var(--color-" + borderColor + ")";
2873
2885
  }
2886
+ if (hasSecondaryButtonColor(theme)) {
2887
+ return theme.colors.secondaryButton;
2888
+ }
2874
2889
  return COLORS$1.border;
2875
2890
  };
2876
2891
  var getHoveredColor$1 = function getHoveredColor(_ref3) {
2877
2892
  var disabled = _ref3.disabled,
2878
- hoveredColor = _ref3.hoveredColor;
2893
+ hoveredColor = _ref3.hoveredColor,
2894
+ theme = _ref3.theme;
2879
2895
  if (disabled) {
2880
2896
  return COLORS$1.disabled;
2881
2897
  }
2882
2898
  if (hoveredColor) {
2883
2899
  return "var(--color-" + hoveredColor + ")";
2884
2900
  }
2901
+ if (hasSecondaryButtonColor(theme)) {
2902
+ return theme.colors.secondaryButton;
2903
+ }
2885
2904
  return COLORS$1.hover;
2886
2905
  };
2887
2906
  var getPressedColor$1 = function getPressedColor(_ref4) {
2888
2907
  var disabled = _ref4.disabled,
2889
- pressedColor = _ref4.pressedColor;
2908
+ pressedColor = _ref4.pressedColor,
2909
+ theme = _ref4.theme;
2890
2910
  if (disabled) {
2891
2911
  return COLORS$1.disabled;
2892
2912
  }
2893
2913
  if (pressedColor) {
2894
2914
  return "var(--color-" + pressedColor + ")";
2895
2915
  }
2916
+ if (hasSecondaryButtonColor(theme)) {
2917
+ return theme.colors.secondaryButton;
2918
+ }
2896
2919
  return COLORS$1.pressed;
2897
2920
  };
2898
2921
 
@@ -5789,8 +5812,12 @@ var InputContainer = /*#__PURE__*/styled.div(_templateObject5$a || (_templateObj
5789
5812
  var TextLinkWrapper$1 = /*#__PURE__*/styled(TextLink)(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-primary-red);\n"])));
5790
5813
  var SearchArrowContainer = /*#__PURE__*/styled.a(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-right: 8px;\n\n svg {\n width: var(--navigation-large-gap);\n height: var(--navigation-large-gap);\n }\n"])));
5791
5814
 
5792
- function useFocusTrap(containerRef, onEscape) {
5815
+ function useFocusTrap(containerRef, onEscape, enabled) {
5816
+ if (enabled === void 0) {
5817
+ enabled = true;
5818
+ }
5793
5819
  useEffect(function () {
5820
+ if (!enabled) return undefined;
5794
5821
  var container = containerRef.current;
5795
5822
  if (!container) return undefined;
5796
5823
  var focusableSelectors = 'input, button, select, textarea, a[href], [tabindex]:not([tabindex="-1"])';
@@ -5823,7 +5850,9 @@ var SearchBar = function SearchBar(_ref) {
5823
5850
  var onClick = _ref.onClick,
5824
5851
  onClose = _ref.onClose,
5825
5852
  className = _ref.className,
5826
- inputRef = _ref.inputRef;
5853
+ inputRef = _ref.inputRef,
5854
+ _ref$trapFocus = _ref.trapFocus,
5855
+ trapFocus = _ref$trapFocus === void 0 ? true : _ref$trapFocus;
5827
5856
  var _useState = useState(false),
5828
5857
  showSearchLink = _useState[0],
5829
5858
  setShowSearchLink = _useState[1];
@@ -5833,7 +5862,7 @@ var SearchBar = function SearchBar(_ref) {
5833
5862
  var internalRef = useRef(null);
5834
5863
  var finalInputRef = inputRef != null ? inputRef : internalRef;
5835
5864
  var containerRef = useRef(null);
5836
- useFocusTrap(containerRef, onClose);
5865
+ useFocusTrap(containerRef, onClose, trapFocus);
5837
5866
  var onSearchHandler = function onSearchHandler(value) {
5838
5867
  onClick(value);
5839
5868
  setSearchValue('');
@@ -5913,7 +5942,7 @@ var SearchBar = function SearchBar(_ref) {
5913
5942
  onClick: onCloseHandler,
5914
5943
  onKeyDown: onKeyboardCloseHandler,
5915
5944
  "data-testid": "close-icon",
5916
- "aria-label": "Close search bar"
5945
+ "aria-label": "Clear the search bar"
5917
5946
  }, /*#__PURE__*/React__default.createElement(Icon, {
5918
5947
  iconName: "Close"
5919
5948
  })));
@@ -6957,7 +6986,7 @@ var core = /*#__PURE__*/_extends({}, common, {
6957
6986
  colors: /*#__PURE__*/_extends({}, commonColors, colors, {
6958
6987
  primary: colors.core,
6959
6988
  primaryButton: colors.core,
6960
- secondaryButton: commonColors.white,
6989
+ secondaryButton: colors.core,
6961
6990
  tertiaryButton: 'transparent',
6962
6991
  auxiliaryButton: 'transparent',
6963
6992
  primaryButtonReverseBg: colors.cinema,
@@ -6970,7 +6999,7 @@ var stream = /*#__PURE__*/_extends({}, common, {
6970
6999
  primaryButton: colors.stream,
6971
7000
  primaryButtonReverseBg: colors.cinema,
6972
7001
  primaryButtonReverse: commonColors.white,
6973
- secondaryButton: commonColors.white,
7002
+ secondaryButton: colors.stream,
6974
7003
  tertiaryButton: 'transparent',
6975
7004
  auxiliaryButton: 'transparent'
6976
7005
  })
@@ -6981,7 +7010,7 @@ var cinema = /*#__PURE__*/_extends({}, common, {
6981
7010
  primaryButton: commonColors.white,
6982
7011
  primaryButtonReverseBg: commonColors.white,
6983
7012
  primaryButtonReverse: colors.cinema,
6984
- secondaryButton: commonColors.white,
7013
+ secondaryButton: colors.cinema,
6985
7014
  tertiaryButton: 'transparent',
6986
7015
  auxiliaryButton: 'transparent'
6987
7016
  })
@@ -6992,7 +7021,7 @@ var schools = /*#__PURE__*/_extends({}, common, {
6992
7021
  primaryButton: colors.core,
6993
7022
  primaryButtonReverseBg: colors.cinema,
6994
7023
  primaryButtonReverse: commonColors.white,
6995
- secondaryButton: commonColors.white,
7024
+ secondaryButton: colors.core,
6996
7025
  tertiaryButton: 'transparent',
6997
7026
  auxiliaryButton: 'transparent'
6998
7027
  }),
@@ -7082,17 +7111,23 @@ var ButtonType;
7082
7111
  })(ButtonType || (ButtonType = {}));
7083
7112
 
7084
7113
  var _templateObject$J, _templateObject2$x, _templateObject3$n, _templateObject4$i, _templateObject5$d, _templateObject6$b, _templateObject7$7, _templateObject8$4;
7085
- var Wrapper$2 = /*#__PURE__*/styled.div(_templateObject$J || (_templateObject$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--base-color-light-grey);\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);
7114
+ var Wrapper$2 = /*#__PURE__*/styled.div(_templateObject$J || (_templateObject$J = /*#__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);
7086
7115
  var PromoLabelWrapper = /*#__PURE__*/styled.div(_templateObject2$x || (_templateObject2$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-self: flex-end;\n height: 15px;\n"])));
7087
7116
  var PromoLabel = /*#__PURE__*/styled.div(_templateObject3$n || (_templateObject3$n = /*#__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) {
7088
7117
  var theme = _ref.theme;
7089
7118
  return theme.colors.primary;
7090
7119
  }, Colors.White);
7091
- var ButtonContainer = /*#__PURE__*/styled.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 2em;\n width: fit-content;\n"])));
7120
+ var ButtonContainer = /*#__PURE__*/styled.div(_templateObject4$i || (_templateObject4$i = /*#__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) {
7121
+ var stackCtasEarly = _ref2.stackCtasEarly;
7122
+ return stackCtasEarly ? devices.smallDesktop + ", " + devices.mobileAndTablet : devices.mobile;
7123
+ }, function (_ref3) {
7124
+ var stackCtasEarly = _ref3.stackCtasEarly;
7125
+ return stackCtasEarly && "\n @media " + devices.smallDesktop + ", " + devices.mobileAndTablet + " {\n * {\n width: 100%;\n }\n }\n ";
7126
+ });
7092
7127
  var TitleContainer$2 = /*#__PURE__*/styled.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n & > * {\n margin-top: 0;\n margin-bottom: 0.5em;\n }\n"])));
7093
7128
  var OfferTextWrapper = /*#__PURE__*/styled.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n & > * {\n margin-bottom: 0.5em;\n }\n margin-bottom: 1em;\n"])));
7094
7129
  var PriceRow = /*#__PURE__*/styled.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px 12px;\n padding: 5px 0 8px 0;\n"])));
7095
- var LineThrough = /*#__PURE__*/styled.div(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration-line: line-through;\n color: var(--base-color-dark-grey);\n"])));
7130
+ var LineThrough = /*#__PURE__*/styled.div(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration-line: line-through;\n color: var(--base-color-darkgrey);\n"])));
7096
7131
 
7097
7132
  // Set max. character length
7098
7133
  var setMaxCharLength = function setMaxCharLength(value, maxLength) {
@@ -7135,8 +7170,13 @@ var UpsellCard = function UpsellCard(_ref) {
7135
7170
  flag = _ref.flag,
7136
7171
  offerTexts = _ref.offerTexts,
7137
7172
  link = _ref.link,
7173
+ secondaryLink = _ref.secondaryLink,
7174
+ _ref$stackCtasEarly = _ref.stackCtasEarly,
7175
+ stackCtasEarly = _ref$stackCtasEarly === void 0 ? false : _ref$stackCtasEarly,
7138
7176
  _ref$theme = _ref.theme,
7139
- theme = _ref$theme === void 0 ? ThemeType.Core : _ref$theme;
7177
+ theme = _ref$theme === void 0 ? ThemeType.Core : _ref$theme,
7178
+ _ref$secondaryTheme = _ref.secondaryTheme,
7179
+ secondaryTheme = _ref$secondaryTheme === void 0 ? ThemeType.Core : _ref$secondaryTheme;
7140
7180
  var truncate = function truncate(str, n) {
7141
7181
  return str.length >= n ? str.slice(0, n) : str;
7142
7182
  };
@@ -7155,13 +7195,17 @@ var UpsellCard = function UpsellCard(_ref) {
7155
7195
  level: 4
7156
7196
  }, formatPrice(promoPrice)))) : (/*#__PURE__*/React__default.createElement(PriceRow, null, /*#__PURE__*/React__default.createElement(AltHeader, {
7157
7197
  level: 4
7158
- }, formatPrice(price))))), (reducedOfferTexts == null ? void 0 : reducedOfferTexts.length) && reducedOfferTexts.map(function (offerText) {
7198
+ }, formatPrice(price))))), (reducedOfferTexts == null ? void 0 : reducedOfferTexts.length) && reducedOfferTexts.map(function (offerText, index) {
7159
7199
  return /*#__PURE__*/React__default.createElement(OfferText, {
7160
- key: offerText.title,
7200
+ key: "offer-" + index,
7161
7201
  title: offerText.title,
7162
7202
  description: offerText.description
7163
7203
  });
7164
- }), link && (/*#__PURE__*/React__default.createElement(ButtonContainer, null, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, link), truncate(link.text, LENGTH_SMALL_TEXT))))));
7204
+ }), ((link == null ? void 0 : link.text) || (secondaryLink == null ? void 0 : secondaryLink.text)) && (/*#__PURE__*/React__default.createElement(ButtonContainer, {
7205
+ stackCtasEarly: stackCtasEarly
7206
+ }, (link == null ? void 0 : link.text) && /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, link), truncate(link.text, LENGTH_SMALL_TEXT)), (secondaryLink == null ? void 0 : secondaryLink.text) && (/*#__PURE__*/React__default.createElement(Theme, {
7207
+ theme: secondaryTheme
7208
+ }, /*#__PURE__*/React__default.createElement(SecondaryButton, Object.assign({}, secondaryLink), truncate(secondaryLink.text, LENGTH_SMALL_TEXT))))))));
7165
7209
  };
7166
7210
 
7167
7211
  var _templateObject$K;
@@ -7171,7 +7215,7 @@ var UpsellCards = function UpsellCards(_ref) {
7171
7215
  var upsellCards = _ref.upsellCards;
7172
7216
  return /*#__PURE__*/React__default.createElement(Wrapper$3, null, upsellCards == null ? void 0 : upsellCards.map(function (card, index) {
7173
7217
  return /*#__PURE__*/React__default.createElement(UpsellCard, {
7174
- key: "upsell-card-" + index,
7218
+ key: "card-" + index,
7175
7219
  title: card.title,
7176
7220
  subTitle: card.subTitle,
7177
7221
  price: card.price,
@@ -7179,7 +7223,10 @@ var UpsellCards = function UpsellCards(_ref) {
7179
7223
  flag: card.flag,
7180
7224
  offerTexts: card.offerTexts,
7181
7225
  link: card.link,
7182
- theme: card.theme
7226
+ secondaryLink: card.secondaryLink,
7227
+ stackCtasEarly: true,
7228
+ theme: card.theme,
7229
+ secondaryTheme: card.secondaryTheme
7183
7230
  });
7184
7231
  }));
7185
7232
  };
@@ -7193,7 +7240,8 @@ var UpsellSection = function UpsellSection(_ref) {
7193
7240
  theme = _ref$theme === void 0 ? ThemeType.Core : _ref$theme;
7194
7241
  var themedUpsellCards = upsellCards ? [].concat(upsellCards).map(function (card) {
7195
7242
  return _extends({}, card, {
7196
- theme: card.theme || theme
7243
+ theme: card.theme || theme,
7244
+ secondaryTheme: card.secondaryTheme || theme
7197
7245
  });
7198
7246
  }) : [];
7199
7247
  return /*#__PURE__*/React__default.createElement(Theme, {
@@ -8709,14 +8757,16 @@ var ContentSummary = function ContentSummary(_ref) {
8709
8757
  "data-roh": "content-summary-item"
8710
8758
  }, showImage && image && (/*#__PURE__*/React__default.createElement(ContentSummaryImageWrapper, {
8711
8759
  "data-testid": "image-wrapper"
8712
- }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
8713
- aspectRatio: AspectRatio['4:3']
8714
8760
  }, link != null && link.href ? (/*#__PURE__*/React__default.createElement("a", {
8715
8761
  href: link.href
8762
+ }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
8763
+ aspectRatio: AspectRatio['4:3']
8716
8764
  }, /*#__PURE__*/React__default.createElement("img", {
8717
8765
  src: image.src,
8718
8766
  alt: image.alt
8719
- }))) : (/*#__PURE__*/React__default.createElement("img", {
8767
+ })))) : (/*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
8768
+ aspectRatio: AspectRatio['4:3']
8769
+ }, /*#__PURE__*/React__default.createElement("img", {
8720
8770
  src: image.src,
8721
8771
  alt: image.alt
8722
8772
  }))))), /*#__PURE__*/React__default.createElement(ContentSummaryTextWrapper, {
@@ -9745,17 +9795,11 @@ var reducePages = function reducePages(pages, currentPage) {
9745
9795
  // Otherwise, show 3 pages before and 2 pages after
9746
9796
  return pages.slice(currentPage - 2, currentPage + 4);
9747
9797
  };
9748
- var buildUrlWithPage = function buildUrlWithPage(baseUrl, page, search) {
9749
- var params = new URLSearchParams(search);
9750
- params.set('page', page.toString());
9751
- return baseUrl + "?" + params.toString();
9752
- };
9753
9798
  var Pagination = function Pagination(_ref) {
9754
9799
  var pageCount = _ref.pageCount,
9755
9800
  currentPage = _ref.currentPage,
9756
9801
  baseUrl = _ref.baseUrl,
9757
9802
  className = _ref.className;
9758
- var location = useLocation();
9759
9803
  // Array of page numbers starting at 1
9760
9804
  var pageNumbers = Array.from(Array(pageCount + 1).keys()).slice(1);
9761
9805
  var reducedPageNumbers = reducePages(pageNumbers, currentPage);
@@ -9764,7 +9808,7 @@ var Pagination = function Pagination(_ref) {
9764
9808
  },
9765
9809
  // {/* Left arrow only appears after page 1 */
9766
9810
  currentPage > 1 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(PageNav, {
9767
- href: buildUrlWithPage(baseUrl, 1, location.search)
9811
+ href: baseUrl + "1"
9768
9812
  }, /*#__PURE__*/React__default.createElement(Icon, {
9769
9813
  iconName: "LastPageArrow",
9770
9814
  direction: "right"
@@ -9772,7 +9816,7 @@ var Pagination = function Pagination(_ref) {
9772
9816
  key: "previous-page",
9773
9817
  "data-testid": "left-arrow"
9774
9818
  }, /*#__PURE__*/React__default.createElement(PageNav, {
9775
- href: buildUrlWithPage(baseUrl, currentPage - 1, location.search)
9819
+ href: "" + baseUrl + (currentPage - 1)
9776
9820
  }, /*#__PURE__*/React__default.createElement(Icon, {
9777
9821
  iconName: "ArrowPagination",
9778
9822
  direction: "right"
@@ -9780,7 +9824,7 @@ var Pagination = function Pagination(_ref) {
9780
9824
  return /*#__PURE__*/React__default.createElement("li", {
9781
9825
  key: page
9782
9826
  }, /*#__PURE__*/React__default.createElement(PaginationLink, {
9783
- href: buildUrlWithPage(baseUrl, page, location.search),
9827
+ href: "" + baseUrl + page,
9784
9828
  "data-testid": "page-number"
9785
9829
  }, /*#__PURE__*/React__default.createElement(TextLinkPagination, {
9786
9830
  size: "large",
@@ -9790,12 +9834,12 @@ var Pagination = function Pagination(_ref) {
9790
9834
  key: "next-page",
9791
9835
  "data-testid": "right-arrow"
9792
9836
  }, /*#__PURE__*/React__default.createElement(PageNav, {
9793
- href: buildUrlWithPage(baseUrl, currentPage + 1, location.search)
9837
+ href: "" + baseUrl + (currentPage + 1)
9794
9838
  }, /*#__PURE__*/React__default.createElement(Icon, {
9795
9839
  iconName: "ArrowPagination",
9796
9840
  direction: "left"
9797
9841
  }))), /*#__PURE__*/React__default.createElement(LastPageItem, null, /*#__PURE__*/React__default.createElement(PageNav, {
9798
- href: buildUrlWithPage(baseUrl, pageCount, location.search)
9842
+ href: "" + baseUrl + pageCount
9799
9843
  }, /*#__PURE__*/React__default.createElement(Icon, {
9800
9844
  iconName: "LastPageArrow",
9801
9845
  direction: "left"