@quintype/arrow 3.15.1-perf.2 → 3.15.1-perf.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/atoms/Author/index.js +38 -29
  2. package/atoms/AuthorWithTime/index.js +83 -73
  3. package/atoms/CollectionName/index.js +40 -30
  4. package/atoms/ExtendedLoadMore/{index-d0f6c865.js → index-3976fac4.js} +59 -51
  5. package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
  6. package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
  7. package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
  8. package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
  9. package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
  10. package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
  11. package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
  12. package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
  13. package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
  14. package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
  15. package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
  16. package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
  17. package/atoms/ExtendedLoadMore/index.js +13 -5
  18. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  19. package/atoms/Headline/index.js +85 -76
  20. package/atoms/HeroImage/index.js +69 -60
  21. package/atoms/LoadmoreButton/index.js +32 -23
  22. package/atoms/ScrollSnap/index.js +72 -63
  23. package/atoms/SectionTag/index.js +34 -25
  24. package/atoms/Subheadline/index.js +31 -22
  25. package/atoms/TimeStamp/index.js +34 -24
  26. package/molecules/KeyEvents/index.js +72 -61
  27. package/molecules/PageIntroductionCard/index.js +43 -34
  28. package/molecules/SocialShareTemplate/index.js +97 -88
  29. package/molecules/StoryCard/index.js +242 -232
  30. package/molecules/StoryElementCard/index.js +512 -483
  31. package/molecules/StorycardContent/index.js +172 -162
  32. package/package.json +1 -1
  33. package/rows/AlternateCollectionFilter/index.js +345 -333
  34. package/rows/AsideCollection/index.js +340 -328
  35. package/rows/AstrologyCollection/index.js +321 -309
  36. package/rows/AuthorIntroductionCard/index.js +157 -148
  37. package/rows/AuthorsList/index.js +184 -174
  38. package/rows/CollectionFilter/index.js +361 -349
  39. package/rows/ElevenStories/index.js +357 -346
  40. package/rows/FourColFiveStories/index.js +304 -274
  41. package/rows/FourColGrid/index.js +351 -321
  42. package/rows/FourColPortraitStories/index.js +357 -327
  43. package/rows/FourColSixteenStories/index.js +288 -277
  44. package/rows/FourColTwelveStories/index.js +315 -304
  45. package/rows/FourStorySlider/index.js +358 -347
  46. package/rows/FourStorySliderPortrait/index.js +359 -348
  47. package/rows/FourTabbedBigStorySlider/index.js +322 -311
  48. package/rows/FullScreenSlider/index.js +336 -325
  49. package/rows/HalfScreenSlider/index.js +308 -297
  50. package/rows/ListComponent/index.js +322 -311
  51. package/rows/Listicles/index.js +150 -139
  52. package/rows/MagazineEditions/index.js +104 -93
  53. package/rows/MagazineHeaderCard/index.js +104 -93
  54. package/rows/MagazineWidget/index.js +326 -315
  55. package/rows/OneColStoryList/index.js +365 -335
  56. package/rows/OpinionCollection/index.js +250 -220
  57. package/rows/SixColSixStories/index.js +333 -303
  58. package/rows/StoryCollection/index.js +340 -328
  59. package/rows/TagIntroductionCard/index.js +30 -21
  60. package/rows/ThreeColFlexStories/index.js +348 -318
  61. package/rows/ThreeColFourteenStories/index.js +285 -274
  62. package/rows/ThreeColGrid/index.js +352 -322
  63. package/rows/ThreeColSevenStory/index.js +322 -311
  64. package/rows/ThreeColSixStories/index.js +323 -312
  65. package/rows/ThreeColTwelveStories/index.js +302 -291
  66. package/rows/TwoColFourStories/index.js +316 -305
  67. package/rows/TwoColFourStoryHighlight/index.js +317 -306
  68. package/rows/TwoColSevenStories/index.js +322 -311
  69. package/rows/TwoColSixStories/index.js +316 -305
  70. package/rows/TwoColTenStoriesSidebar/index.js +338 -327
  71. package/rows/TwoColThreeStories/index.js +316 -305
  72. package/story-elements/AlsoRead/index.js +70 -61
  73. package/story-elements/Attachment/index.js +40 -31
  74. package/story-elements/BigFact/index.js +35 -26
  75. package/story-elements/BlockQuote/index.js +61 -51
  76. package/story-elements/Blurb/index.js +36 -27
  77. package/story-elements/Image/index.js +113 -86
  78. package/story-elements/ImageGallery/index.js +98 -71
  79. package/story-elements/ImageSlideshow/index.js +147 -120
  80. package/story-elements/QuestionAnswer/index.js +55 -46
  81. package/story-elements/Quote/index.js +37 -28
  82. package/story-elements/Reference/index.js +40 -31
  83. package/story-elements/StoryElement/index.js +28 -19
  84. package/story-elements/Summary/index.js +40 -31
  85. package/story-elements/Text/index.js +34 -25
  86. package/story-elements/Video/index.js +29 -20
  87. package/story-templates/ListicleStoryTemplate/index.js +937 -908
  88. package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
  89. package/story-templates/PhotoStoryTemplate/index.js +912 -883
  90. package/story-templates/TextStoryTemplate/index.js +931 -902
  91. package/story-templates/VideoStoryTemplate/index.js +897 -868
  92. package/atoms/ExtendedLoadMore/index-81eb3978.js +0 -86
@@ -1,9 +1,19 @@
1
- import React, { useContext, createContext } from 'react';
2
- import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
3
- import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
4
- import { connect, useSelector, useDispatch } from 'react-redux';
5
- import Timeago from 'react-timeago';
6
- import { utcToZonedTime, format } from 'date-fns-tz';
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var PropTypes = require('prop-types');
7
+ var components = require('@quintype/components');
8
+ var reactRedux = require('react-redux');
9
+ var Timeago = require('react-timeago');
10
+ var dateFnsTz = require('date-fns-tz');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
16
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
7
17
 
8
18
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
19
 
@@ -156,21 +166,21 @@ exports["default"] = _default;
156
166
 
157
167
  var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
158
168
 
159
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
169
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
160
170
 
161
171
  var StateProvider = function StateProvider(RowComponent) {
162
172
  return function (props) {
163
173
  return (
164
174
  /*#__PURE__*/
165
175
  // eslint-disable-next-line react/prop-types
166
- React.createElement(StateContext.Provider, {
176
+ React__default["default"].createElement(StateContext.Provider, {
167
177
  value: props.config
168
- }, /*#__PURE__*/React.createElement(RowComponent, props))
178
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
169
179
  );
170
180
  };
171
181
  };
172
182
  var useStateValue = function useStateValue() {
173
- return useContext(StateContext);
183
+ return React.useContext(StateContext);
174
184
  };
175
185
 
176
186
  /**
@@ -2675,15 +2685,15 @@ var isEmpty = function isEmpty(value) {
2675
2685
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2676
2686
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2677
2687
  };
2678
- PropTypes.shape({
2679
- "sketches-host": PropTypes.string,
2680
- "cdn-name": PropTypes.string,
2681
- "cdn-image": PropTypes.string
2688
+ PropTypes__default["default"].shape({
2689
+ "sketches-host": PropTypes__default["default"].string,
2690
+ "cdn-name": PropTypes__default["default"].string,
2691
+ "cdn-image": PropTypes__default["default"].string
2682
2692
  });
2683
- PropTypes.shape({
2684
- headline: PropTypes.string,
2685
- "last-published-at": PropTypes.number,
2686
- subheadline: PropTypes.string
2693
+ PropTypes__default["default"].shape({
2694
+ headline: PropTypes__default["default"].string,
2695
+ "last-published-at": PropTypes__default["default"].number,
2696
+ subheadline: PropTypes__default["default"].string
2687
2697
  });
2688
2698
  var getStoryUrl = function getStoryUrl(story) {
2689
2699
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2727,17 +2737,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2727
2737
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2728
2738
 
2729
2739
  if (timezone && template === "story") {
2730
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2731
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2740
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2741
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2732
2742
  timeZone: timezone
2733
2743
  });
2734
2744
  var timeStamp = timestampToFormat("", "", "", date, config);
2735
- return /*#__PURE__*/React.createElement("time", {
2745
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2736
2746
  dateTime: formatZonedTime
2737
2747
  }, timeStamp);
2738
2748
  }
2739
2749
 
2740
- return /*#__PURE__*/React.createElement(Timeago, {
2750
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2741
2751
  date: date,
2742
2752
  formatter: function formatter(value, unit, suffix, date) {
2743
2753
  return _formatter(value, unit, suffix, date, config);
@@ -2781,7 +2791,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2781
2791
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
2782
2792
 
2783
2793
  var borderBottomStyle = function borderBottomStyle() {
2784
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
2794
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
2785
2795
  className: "collection-name-m_border-bottom__1MnlV",
2786
2796
  style: {
2787
2797
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -2841,40 +2851,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2841
2851
  }
2842
2852
  };
2843
2853
 
2844
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
2854
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
2845
2855
  style: {
2846
2856
  borderBottom: borderBottomFullStyle
2847
2857
  },
2848
2858
  "data-test-id": "collection-name",
2849
2859
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$d)
2850
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
2860
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
2851
2861
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2852
2862
  style: {
2853
2863
  color: CollectionNameBorderColor,
2854
2864
  fontSize: getBorderHeight()
2855
2865
  }
2856
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
2866
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
2857
2867
  href: slug,
2858
2868
  "aria-label": "collection-name"
2859
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2869
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2860
2870
  };
2861
2871
  CollectionNameBase.propTypes = {
2862
2872
  /** Collection name border color */
2863
- collectionNameBorderColor: PropTypes$1.string,
2873
+ collectionNameBorderColor: PropTypes.PropTypes.string,
2864
2874
 
2865
2875
  /** The Collection Object from the API response */
2866
- collection: PropTypes$1.object,
2876
+ collection: PropTypes.PropTypes.object,
2867
2877
 
2868
2878
  /** The publisher config from the API response */
2869
- config: PropTypes$1.object,
2879
+ config: PropTypes.PropTypes.object,
2870
2880
 
2871
2881
  /** The style template for the component */
2872
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2882
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2873
2883
 
2874
2884
  /** Header tags ranging h1-h6, where h[headerLevel] */
2875
- headerLevel: PropTypes$1.string,
2876
- customCollectionName: PropTypes$1.string,
2877
- navigate: PropTypes$1.bool
2885
+ headerLevel: PropTypes.PropTypes.string,
2886
+ customCollectionName: PropTypes.PropTypes.string,
2887
+ navigate: PropTypes.PropTypes.bool
2878
2888
  };
2879
2889
  CollectionNameBase.defaultProps = {
2880
2890
  collectionNameTemplate: "",
@@ -2887,7 +2897,7 @@ function mapStateToProps$1(state) {
2887
2897
  };
2888
2898
  }
2889
2899
 
2890
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
2900
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
2891
2901
 
2892
2902
  function _arrayWithHoles(arr) {
2893
2903
  if (Array.isArray(arr)) return arr;
@@ -2957,27 +2967,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2957
2967
  height = _ref$height === void 0 ? 30 : _ref$height,
2958
2968
  _ref$iconColor = _ref.iconColor,
2959
2969
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
2960
- return /*#__PURE__*/React.createElement("svg", {
2970
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2961
2971
  width: width,
2962
2972
  height: height,
2963
2973
  viewBox: "0 0 102 76",
2964
2974
  version: "1.1"
2965
- }, /*#__PURE__*/React.createElement("g", {
2975
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2966
2976
  id: "demo-home-copy",
2967
2977
  stroke: "none",
2968
2978
  strokeWidth: "1",
2969
2979
  fill: "none",
2970
2980
  fillRule: "evenodd",
2971
2981
  transform: "translate(-377.000000, -314.000000)"
2972
- }, /*#__PURE__*/React.createElement("g", {
2982
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2973
2983
  id: "Group-13",
2974
2984
  transform: "translate(377.000000, 314.000000)"
2975
- }, /*#__PURE__*/React.createElement("path", {
2985
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2976
2986
  d: "M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",
2977
2987
  id: "Combined-Shape",
2978
2988
  fill: iconColor,
2979
2989
  fillRule: "nonzero"
2980
- }), /*#__PURE__*/React.createElement("rect", {
2990
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
2981
2991
  id: "Rectangle-19",
2982
2992
  stroke: iconColor,
2983
2993
  strokeWidth: "3",
@@ -2989,24 +2999,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2989
2999
  }))));
2990
3000
  };
2991
3001
  ImageFallbackIcon.propTypes = {
2992
- width: PropTypes.object,
2993
- height: PropTypes.object,
2994
- iconColor: PropTypes.object
3002
+ width: PropTypes__default["default"].object,
3003
+ height: PropTypes__default["default"].object,
3004
+ iconColor: PropTypes__default["default"].object
2995
3005
  };
2996
3006
 
2997
3007
  var imageFallback = function imageFallback() {
2998
- return /*#__PURE__*/React.createElement("div", {
3008
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2999
3009
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3000
- }, /*#__PURE__*/React.createElement("figure", {
3010
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3001
3011
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3002
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3012
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3003
3013
  };
3004
3014
 
3005
3015
  var FallbackImage = function FallbackImage(_ref) {
3006
3016
  var slug = _ref.slug;
3007
3017
 
3008
3018
  if (slug) {
3009
- return /*#__PURE__*/React.createElement(Link, {
3019
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3010
3020
  href: slug,
3011
3021
  "aria-label": "image-fallback"
3012
3022
  }, imageFallback());
@@ -3015,23 +3025,23 @@ var FallbackImage = function FallbackImage(_ref) {
3015
3025
  }
3016
3026
  };
3017
3027
  FallbackImage.propTypes = {
3018
- slug: PropTypes.string
3028
+ slug: PropTypes__default["default"].string
3019
3029
  };
3020
3030
 
3021
3031
  var HyperLinkIcon = function HyperLinkIcon() {
3022
- return /*#__PURE__*/React.createElement("svg", {
3032
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3023
3033
  xmlns: "http://www.w3.org/2000/svg",
3024
3034
  width: "36",
3025
3035
  height: "28"
3026
- }, /*#__PURE__*/React.createElement("g", {
3036
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3027
3037
  fill: "none",
3028
3038
  fillRule: "evenodd"
3029
- }, /*#__PURE__*/React.createElement("rect", {
3039
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3030
3040
  width: "36",
3031
3041
  height: "28",
3032
3042
  fill: "#3D6FCF",
3033
3043
  rx: "4"
3034
- }), /*#__PURE__*/React.createElement("path", {
3044
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3035
3045
  stroke: "#FFF",
3036
3046
  strokeLinecap: "round",
3037
3047
  strokeLinejoin: "round",
@@ -3044,16 +3054,16 @@ var HyperLink = function HyperLink(_ref) {
3044
3054
  var _ref$hyperLink = _ref.hyperLink,
3045
3055
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3046
3056
  if (!hyperLink) return null;
3047
- return /*#__PURE__*/React.createElement(Link, {
3057
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3048
3058
  href: hyperLink,
3049
3059
  "aria-label": "hyperlink-button",
3050
3060
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3051
3061
  target: "_blank",
3052
3062
  rel: "noopener noreferrer"
3053
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3063
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3054
3064
  };
3055
3065
  HyperLink.propTypes = {
3056
- hyperLink: PropTypes.string
3066
+ hyperLink: PropTypes__default["default"].string
3057
3067
  };
3058
3068
 
3059
3069
  var _styleModuleImportMap$c = {
@@ -3089,7 +3099,7 @@ var HeroImage = function HeroImage(_ref) {
3089
3099
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3090
3100
  return null;
3091
3101
  } : _config$StoryTemplate;
3092
- var showImagePlaceholder = useSelector(function (state) {
3102
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3093
3103
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3094
3104
  });
3095
3105
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3125,37 +3135,37 @@ var HeroImage = function HeroImage(_ref) {
3125
3135
  var fallbackImage = function fallbackImage() {
3126
3136
  if (!slug) {
3127
3137
  if (fallbackImageUrl && !isStoryPageImage) {
3128
- return /*#__PURE__*/React.createElement("figure", {
3138
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3129
3139
  style: {
3130
3140
  paddingTop: imagePadding + "%"
3131
3141
  },
3132
3142
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$c)
3133
- }, /*#__PURE__*/React.createElement("img", {
3143
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3134
3144
  className: "qt-image",
3135
3145
  "data-src": "".concat(fallbackImageUrl),
3136
3146
  alt: "image-fallback"
3137
3147
  }));
3138
3148
  }
3139
3149
 
3140
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3150
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3141
3151
  "data-test-id": "arr--fallback-hero-image",
3142
3152
  style: {
3143
3153
  paddingTop: imagePadding + "%"
3144
3154
  },
3145
3155
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$c)
3146
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3156
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3147
3157
  storyTemplate: story["story-template"]
3148
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3158
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3149
3159
  }
3150
3160
 
3151
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3161
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3152
3162
  style: {
3153
3163
  paddingTop: imagePadding + "%"
3154
3164
  },
3155
3165
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$c)
3156
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3166
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3157
3167
  storyTemplate: story["story-template"]
3158
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3168
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3159
3169
  story: story,
3160
3170
  aspectRatio: imageAspectRatio,
3161
3171
  defaultWidth: defaultWidth,
@@ -3164,15 +3174,15 @@ var HeroImage = function HeroImage(_ref) {
3164
3174
  auto: ["format", "compress"],
3165
3175
  fit: "max"
3166
3176
  }
3167
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3177
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3168
3178
  hyperLink: hyperLink
3169
3179
  }));
3170
3180
  };
3171
3181
 
3172
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3182
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3173
3183
  "data-test-id": "arr--hero-image",
3174
3184
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$c)
3175
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3185
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3176
3186
  "data-test-id": "arr--hero-image",
3177
3187
  href: getStoryUrl(story, "/".concat(story.slug)),
3178
3188
  externalLink: isExternalStory(story),
@@ -3182,30 +3192,30 @@ var HeroImage = function HeroImage(_ref) {
3182
3192
  };
3183
3193
  HeroImage.propTypes = {
3184
3194
  /** The Story Object from the API response */
3185
- story: PropTypes.object.isRequired,
3195
+ story: PropTypes__default["default"].object.isRequired,
3186
3196
 
3187
3197
  /** Removes the Hero Image padding for the image to bleed over the margin */
3188
- FullBleed: PropTypes.bool,
3198
+ FullBleed: PropTypes__default["default"].bool,
3189
3199
 
3190
3200
  /** The default width for the image, in case the browser does not support srcset */
3191
- defaultWidth: PropTypes.number,
3201
+ defaultWidth: PropTypes__default["default"].number,
3192
3202
 
3193
3203
  /** The list of available widths */
3194
- widths: PropTypes.array,
3204
+ widths: PropTypes__default["default"].array,
3195
3205
  // fatch the correct hero image
3196
- aspectRatio: PropTypes.array,
3206
+ aspectRatio: PropTypes__default["default"].array,
3197
3207
  // Hints for the browser to choose the best size
3198
3208
 
3199
3209
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3200
- isHorizontal: PropTypes.bool,
3210
+ isHorizontal: PropTypes__default["default"].bool,
3201
3211
 
3202
3212
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3203
- isHorizontalMobile: PropTypes.bool,
3213
+ isHorizontalMobile: PropTypes__default["default"].bool,
3204
3214
  // this prop is responsive for rendering fallback image on story page
3205
- defaultFallback: PropTypes.bool,
3206
- isHorizontalWithImageLast: PropTypes.bool,
3207
- isStoryPageImage: PropTypes.bool,
3208
- config: PropTypes.object
3215
+ defaultFallback: PropTypes__default["default"].bool,
3216
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3217
+ isStoryPageImage: PropTypes__default["default"].bool,
3218
+ config: PropTypes__default["default"].object
3209
3219
  };
3210
3220
  HeroImage.defaultProps = {
3211
3221
  FullBleed: true,
@@ -3226,7 +3236,7 @@ var CrownIcon = function CrownIcon(_ref) {
3226
3236
  _ref$color = _ref.color,
3227
3237
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3228
3238
  positionTop = _ref.positionTop;
3229
- return /*#__PURE__*/React.createElement("svg", {
3239
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3230
3240
  xmlns: "http://www.w3.org/2000/svg",
3231
3241
  width: width,
3232
3242
  height: height,
@@ -3235,28 +3245,28 @@ var CrownIcon = function CrownIcon(_ref) {
3235
3245
  position: "relative",
3236
3246
  top: positionTop
3237
3247
  }
3238
- }, /*#__PURE__*/React.createElement("g", {
3248
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3239
3249
  fill: "none",
3240
3250
  fillRule: "evenodd",
3241
3251
  stroke: "none",
3242
3252
  strokeWidth: "1"
3243
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3253
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3244
3254
  transform: "translate(8 8)"
3245
- }, /*#__PURE__*/React.createElement("path", {
3255
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3246
3256
  d: "M0 0H24V24H0z"
3247
- }), /*#__PURE__*/React.createElement("g", {
3257
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3248
3258
  fill: color,
3249
3259
  fillRule: "nonzero",
3250
3260
  transform: "translate(0 2)"
3251
- }, /*#__PURE__*/React.createElement("path", {
3261
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3252
3262
  d: "M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"
3253
3263
  }))))));
3254
3264
  };
3255
3265
  CrownIcon.propTypes = {
3256
- height: PropTypes.string,
3257
- width: PropTypes.string,
3258
- color: PropTypes.string,
3259
- positionTop: PropTypes.string
3266
+ height: PropTypes__default["default"].string,
3267
+ width: PropTypes__default["default"].string,
3268
+ color: PropTypes__default["default"].string,
3269
+ positionTop: PropTypes__default["default"].string
3260
3270
  };
3261
3271
 
3262
3272
  var KeyIcon = function KeyIcon(_ref) {
@@ -3265,7 +3275,7 @@ var KeyIcon = function KeyIcon(_ref) {
3265
3275
  _ref$color = _ref.color,
3266
3276
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3267
3277
  positionTop = _ref.positionTop;
3268
- return /*#__PURE__*/React.createElement("svg", {
3278
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3269
3279
  xmlns: "http://www.w3.org/2000/svg",
3270
3280
  width: width,
3271
3281
  height: height,
@@ -3274,16 +3284,16 @@ var KeyIcon = function KeyIcon(_ref) {
3274
3284
  position: "relative",
3275
3285
  top: positionTop
3276
3286
  }
3277
- }, /*#__PURE__*/React.createElement("g", {
3287
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3278
3288
  fill: "none",
3279
3289
  fillRule: "evenodd",
3280
3290
  stroke: "none",
3281
3291
  strokeWidth: "1"
3282
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3292
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3283
3293
  transform: "translate(8 8)"
3284
- }, /*#__PURE__*/React.createElement("path", {
3294
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3285
3295
  d: "M0 0H24V24H0z"
3286
- }), /*#__PURE__*/React.createElement("path", {
3296
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3287
3297
  fill: color,
3288
3298
  fillRule: "nonzero",
3289
3299
  d: "M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",
@@ -3291,10 +3301,10 @@ var KeyIcon = function KeyIcon(_ref) {
3291
3301
  })))));
3292
3302
  };
3293
3303
  KeyIcon.propTypes = {
3294
- height: PropTypes.string,
3295
- width: PropTypes.string,
3296
- color: PropTypes.string,
3297
- positionTop: PropTypes.string
3304
+ height: PropTypes__default["default"].string,
3305
+ width: PropTypes__default["default"].string,
3306
+ color: PropTypes__default["default"].string,
3307
+ positionTop: PropTypes__default["default"].string
3298
3308
  };
3299
3309
 
3300
3310
  var LockIcon = function LockIcon(_ref) {
@@ -3303,7 +3313,7 @@ var LockIcon = function LockIcon(_ref) {
3303
3313
  _ref$color = _ref.color,
3304
3314
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3305
3315
  positionTop = _ref.positionTop;
3306
- return /*#__PURE__*/React.createElement("svg", {
3316
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3307
3317
  xmlns: "http://www.w3.org/2000/svg",
3308
3318
  width: width,
3309
3319
  height: height,
@@ -3312,28 +3322,28 @@ var LockIcon = function LockIcon(_ref) {
3312
3322
  position: "relative",
3313
3323
  top: positionTop
3314
3324
  }
3315
- }, /*#__PURE__*/React.createElement("g", {
3325
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3316
3326
  fill: "none",
3317
3327
  fillRule: "evenodd",
3318
3328
  stroke: "none",
3319
3329
  strokeWidth: "1"
3320
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3330
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3321
3331
  transform: "translate(8 8)"
3322
- }, /*#__PURE__*/React.createElement("path", {
3332
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3323
3333
  d: "M0 0H24V24H0z"
3324
- }), /*#__PURE__*/React.createElement("g", {
3334
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3325
3335
  fill: color,
3326
3336
  fillRule: "nonzero",
3327
3337
  transform: "translate(3)"
3328
- }, /*#__PURE__*/React.createElement("path", {
3338
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3329
3339
  d: "M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"
3330
3340
  }))))));
3331
3341
  };
3332
3342
  LockIcon.propTypes = {
3333
- height: PropTypes.string,
3334
- width: PropTypes.string,
3335
- color: PropTypes.string,
3336
- positionTop: PropTypes.string
3343
+ height: PropTypes__default["default"].string,
3344
+ width: PropTypes__default["default"].string,
3345
+ color: PropTypes__default["default"].string,
3346
+ positionTop: PropTypes__default["default"].string
3337
3347
  };
3338
3348
 
3339
3349
  var StarIcon = function StarIcon(_ref) {
@@ -3343,7 +3353,7 @@ var StarIcon = function StarIcon(_ref) {
3343
3353
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3344
3354
  _ref$positionTop = _ref.positionTop,
3345
3355
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3346
- return /*#__PURE__*/React.createElement("svg", {
3356
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3347
3357
  xmlns: "http://www.w3.org/2000/svg",
3348
3358
  width: width,
3349
3359
  height: height,
@@ -3352,21 +3362,21 @@ var StarIcon = function StarIcon(_ref) {
3352
3362
  position: "relative",
3353
3363
  top: positionTop
3354
3364
  }
3355
- }, /*#__PURE__*/React.createElement("g", {
3365
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3356
3366
  fill: "none",
3357
3367
  fillRule: "evenodd",
3358
3368
  stroke: "none",
3359
3369
  strokeWidth: "1"
3360
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3370
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3361
3371
  fill: color,
3362
3372
  d: "M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"
3363
3373
  }))));
3364
3374
  };
3365
3375
  StarIcon.propTypes = {
3366
- height: PropTypes.string,
3367
- width: PropTypes.string,
3368
- color: PropTypes.string,
3369
- positionTop: PropTypes.string
3376
+ height: PropTypes__default["default"].string,
3377
+ width: PropTypes__default["default"].string,
3378
+ color: PropTypes__default["default"].string,
3379
+ positionTop: PropTypes__default["default"].string
3370
3380
  };
3371
3381
 
3372
3382
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3378,7 +3388,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3378
3388
 
3379
3389
  switch (iconType) {
3380
3390
  case "crown":
3381
- return /*#__PURE__*/React.createElement(CrownIcon, {
3391
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3382
3392
  width: width,
3383
3393
  height: height,
3384
3394
  color: color,
@@ -3386,7 +3396,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3386
3396
  });
3387
3397
 
3388
3398
  case "lock":
3389
- return /*#__PURE__*/React.createElement(LockIcon, {
3399
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3390
3400
  width: width,
3391
3401
  height: height,
3392
3402
  color: color,
@@ -3394,7 +3404,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3394
3404
  });
3395
3405
 
3396
3406
  case "key":
3397
- return /*#__PURE__*/React.createElement(KeyIcon, {
3407
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3398
3408
  width: width,
3399
3409
  height: height,
3400
3410
  color: color,
@@ -3402,7 +3412,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3402
3412
  });
3403
3413
 
3404
3414
  default:
3405
- return /*#__PURE__*/React.createElement(StarIcon, {
3415
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3406
3416
  width: width,
3407
3417
  height: height,
3408
3418
  color: color,
@@ -3411,21 +3421,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3411
3421
  }
3412
3422
  };
3413
3423
  PremiumStoryIcon.propTypes = {
3414
- width: PropTypes.string,
3415
- height: PropTypes.string,
3416
- color: PropTypes.string,
3417
- iconType: PropTypes.string,
3418
- positionTop: PropTypes.string
3424
+ width: PropTypes__default["default"].string,
3425
+ height: PropTypes__default["default"].string,
3426
+ color: PropTypes__default["default"].string,
3427
+ iconType: PropTypes__default["default"].string,
3428
+ positionTop: PropTypes__default["default"].string
3419
3429
  };
3420
3430
 
3421
3431
  function LiveIcon() {
3422
- return /*#__PURE__*/React.createElement("svg", {
3432
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3423
3433
  className: "live-icon",
3424
3434
  xmlns: "http://www.w3.org/2000/svg",
3425
3435
  width: "25",
3426
3436
  height: "24",
3427
3437
  viewBox: "0 0 25 24"
3428
- }, /*#__PURE__*/React.createElement("path", {
3438
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3429
3439
  fill: "#ff5858",
3430
3440
  d: "M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"
3431
3441
  }));
@@ -3482,37 +3492,37 @@ var Headline = function Headline(_ref) {
3482
3492
  var wrapperClass = premiumStory ? "wrapper" : "";
3483
3493
  var iconSize = "24px";
3484
3494
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3485
- return /*#__PURE__*/React.createElement("div", {
3495
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3486
3496
  "data-test-id": "headline",
3487
3497
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$b)
3488
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3498
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3489
3499
  width: iconSize,
3490
3500
  height: iconSize,
3491
3501
  color: iconColor,
3492
3502
  iconType: iconStyle,
3493
3503
  positionTop: positionHeadline()
3494
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3504
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3495
3505
  href: getStoryUrl(story, "/".concat(story.slug)),
3496
3506
  externalLink: isExternalStory(story),
3497
3507
  "aria-label": "headline"
3498
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3508
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3499
3509
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$b)
3500
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3510
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3501
3511
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$b)
3502
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3512
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3503
3513
  };
3504
3514
  Headline.propTypes = {
3505
3515
  /** The Story Object from the API response */
3506
- story: PropTypes.object.isRequired,
3516
+ story: PropTypes__default["default"].object.isRequired,
3507
3517
 
3508
3518
  /** Header tags ranging h1-h6, where h[headerLevel] */
3509
- headerLevel: PropTypes.string,
3510
- premiumStoryIconConfig: PropTypes.shape({
3511
- iconColor: PropTypes.string,
3512
- iconType: PropTypes.string,
3513
- enablePremiumStoryIcon: PropTypes.bool
3519
+ headerLevel: PropTypes__default["default"].string,
3520
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3521
+ iconColor: PropTypes__default["default"].string,
3522
+ iconType: PropTypes__default["default"].string,
3523
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3514
3524
  }),
3515
- isLink: PropTypes.bool
3525
+ isLink: PropTypes__default["default"].bool
3516
3526
  };
3517
3527
  Headline.defaultProps = {
3518
3528
  headerLevel: "6",
@@ -3554,22 +3564,22 @@ var SectionTag = function SectionTag(_ref) {
3554
3564
  }
3555
3565
 
3556
3566
  if (!isSection) return null;
3557
- return /*#__PURE__*/React.createElement(Link, {
3567
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3558
3568
  href: getUrl,
3559
3569
  className: "arrow-component arr--section-name",
3560
3570
  "aria-label": "section-name"
3561
- }, /*#__PURE__*/React.createElement("div", {
3571
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3562
3572
  "data-test-id": "sectionTag",
3563
3573
  style: {
3564
3574
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3565
3575
  },
3566
3576
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$a)
3567
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3577
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3568
3578
  className: "section-m_border-left__2oUyp",
3569
3579
  style: {
3570
3580
  color: sectionTagBorderColor
3571
3581
  }
3572
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3582
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3573
3583
  className: "section-m_border-bottom__3cRoD",
3574
3584
  style: {
3575
3585
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3578,13 +3588,13 @@ var SectionTag = function SectionTag(_ref) {
3578
3588
  };
3579
3589
  SectionTag.propTypes = {
3580
3590
  /** The Story Object from the API response */
3581
- story: PropTypes.object.isRequired,
3591
+ story: PropTypes__default["default"].object.isRequired,
3582
3592
 
3583
3593
  /** The style template for section tag */
3584
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3585
- borderColor: PropTypes.string,
3586
- solidBorderColor: PropTypes.string,
3587
- isLightTheme: PropTypes.bool
3594
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3595
+ borderColor: PropTypes__default["default"].string,
3596
+ solidBorderColor: PropTypes__default["default"].string,
3597
+ isLightTheme: PropTypes__default["default"].bool
3588
3598
  };
3589
3599
  SectionTag.defaultProps = {
3590
3600
  template: "",
@@ -3610,18 +3620,18 @@ var TimeStamp = function TimeStamp(_ref) {
3610
3620
  var time = story["last-published-at"] || story["first-published-at"];
3611
3621
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3612
3622
  var textColor = getTextColor(configState.theme);
3613
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3623
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3614
3624
  "data-test-id": "publish-time",
3615
3625
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$9)
3616
- }, /*#__PURE__*/React.createElement("div", {
3626
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3617
3627
  className: "timestamp-m_time-wrapper__3O2lM"
3618
3628
  }, getTimeStamp(time, formatter, config))));
3619
3629
  };
3620
3630
  TimeStamp.propTypes = {
3621
3631
  /** The Story Object from the API response */
3622
- story: PropTypes.object,
3623
- isBottom: PropTypes.bool,
3624
- config: PropTypes.object
3632
+ story: PropTypes__default["default"].object,
3633
+ isBottom: PropTypes__default["default"].bool,
3634
+ config: PropTypes__default["default"].object
3625
3635
  };
3626
3636
 
3627
3637
  var _styleModuleImportMap$8 = {
@@ -3664,10 +3674,10 @@ var AuthorBase = function AuthorBase(_ref) {
3664
3674
  return null;
3665
3675
  }
3666
3676
 
3667
- return /*#__PURE__*/React.createElement("div", {
3677
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3668
3678
  "data-test-id": "author-image",
3669
3679
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$8)
3670
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3680
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3671
3681
  slug: avatarS3Key,
3672
3682
  "aspect-ratio": [1, 1],
3673
3683
  defaultWidth: 400,
@@ -3675,14 +3685,14 @@ var AuthorBase = function AuthorBase(_ref) {
3675
3685
  auto: ["format", "compress"]
3676
3686
  },
3677
3687
  alt: authorName
3678
- }) : /*#__PURE__*/React.createElement("img", {
3688
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3679
3689
  src: avatarUrl
3680
3690
  })));
3681
3691
  };
3682
3692
 
3683
3693
  var isPrefix = function isPrefix(dir) {
3684
3694
  if (prefix) {
3685
- return /*#__PURE__*/React.createElement("div", {
3695
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3686
3696
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$8)
3687
3697
  }, prefix);
3688
3698
  }
@@ -3690,11 +3700,11 @@ var AuthorBase = function AuthorBase(_ref) {
3690
3700
  return !hideAuthorImage && authorImage(dir);
3691
3701
  };
3692
3702
 
3693
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3703
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3694
3704
  href: "".concat(mountAt, "/author/") + slug,
3695
3705
  "aria-label": "author-name",
3696
3706
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$8)
3697
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3707
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3698
3708
  "data-test-id": "author-name",
3699
3709
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$8)
3700
3710
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3706,18 +3716,18 @@ function mapStateToProps(state) {
3706
3716
  };
3707
3717
  }
3708
3718
 
3709
- var Author = connect(mapStateToProps)(AuthorBase);
3719
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3710
3720
  AuthorBase.propTypes = {
3711
3721
  /** The Story Object from the API response */
3712
- story: PropTypes.object.isRequired,
3722
+ story: PropTypes__default["default"].object.isRequired,
3713
3723
 
3714
3724
  /** Hide Author Avatar Image */
3715
- hideAuthorImage: PropTypes.bool,
3725
+ hideAuthorImage: PropTypes__default["default"].bool,
3716
3726
  // fix Author bottom of the storyCard
3717
- isBottom: PropTypes.bool,
3727
+ isBottom: PropTypes__default["default"].bool,
3718
3728
  // fix prefix before the author name
3719
- prefix: PropTypes.string,
3720
- config: PropTypes.object
3729
+ prefix: PropTypes__default["default"].string,
3730
+ config: PropTypes__default["default"].object
3721
3731
  };
3722
3732
  AuthorBase.defaultProps = {
3723
3733
  hideAuthorImage: false,
@@ -3738,14 +3748,14 @@ var Dot = function Dot(_ref) {
3738
3748
  height = _ref$height === void 0 ? "3px" : _ref$height,
3739
3749
  _ref$color = _ref.color,
3740
3750
  color = _ref$color === void 0 ? "light" : _ref$color;
3741
- return /*#__PURE__*/React.createElement("div", {
3751
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3742
3752
  className: _getClassName(color, _styleModuleImportMap$7)
3743
- }, /*#__PURE__*/React.createElement("svg", {
3753
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3744
3754
  xmlns: "http://www.w3.org/2000/svg",
3745
3755
  width: width,
3746
3756
  height: height,
3747
3757
  viewBox: "0 0 3 3"
3748
- }, /*#__PURE__*/React.createElement("circle", {
3758
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3749
3759
  cx: "87",
3750
3760
  cy: "9",
3751
3761
  r: "1",
@@ -3756,9 +3766,9 @@ var Dot = function Dot(_ref) {
3756
3766
  };
3757
3767
  Dot.propTypes = {
3758
3768
  /** height , width and color of the dot icon */
3759
- color: PropTypes.string,
3760
- width: PropTypes.string,
3761
- height: PropTypes.string
3769
+ color: PropTypes__default["default"].string,
3770
+ width: PropTypes__default["default"].string,
3771
+ height: PropTypes__default["default"].string
3762
3772
  };
3763
3773
 
3764
3774
  var _styleModuleImportMap$6 = {
@@ -3774,22 +3784,22 @@ var Divider = function Divider(_ref) {
3774
3784
  height = _ref$height === void 0 ? "10" : _ref$height,
3775
3785
  _ref$color = _ref.color,
3776
3786
  color = _ref$color === void 0 ? "light" : _ref$color;
3777
- return /*#__PURE__*/React.createElement("div", {
3787
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3778
3788
  className: _getClassName(color, _styleModuleImportMap$6)
3779
- }, /*#__PURE__*/React.createElement("svg", {
3789
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3780
3790
  xmlns: "http://www.w3.org/2000/svg",
3781
3791
  width: width,
3782
3792
  height: height
3783
- }, /*#__PURE__*/React.createElement("path", {
3793
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3784
3794
  fill: "inherit",
3785
3795
  d: "M0 0h1v10H0z"
3786
3796
  })));
3787
3797
  };
3788
3798
  Divider.propTypes = {
3789
3799
  /** height , width and color of the dot icon */
3790
- color: PropTypes.string,
3791
- width: PropTypes.string,
3792
- height: PropTypes.string
3800
+ color: PropTypes__default["default"].string,
3801
+ width: PropTypes__default["default"].string,
3802
+ height: PropTypes__default["default"].string
3793
3803
  };
3794
3804
 
3795
3805
  var _styleModuleImportMap$5 = {
@@ -3812,23 +3822,23 @@ var ReadTime = function ReadTime(_ref) {
3812
3822
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3813
3823
  if (!showReadTime || !readTime) return null;
3814
3824
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3815
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3825
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3816
3826
  "data-test-id": "read-time",
3817
3827
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$5)
3818
- }, /*#__PURE__*/React.createElement("span", {
3828
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3819
3829
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3820
- }, /*#__PURE__*/React.createElement(Dot, {
3830
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3821
3831
  color: textColor
3822
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3832
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3823
3833
  };
3824
3834
  ReadTime.propTypes = {
3825
- story: PropTypes.shape({
3826
- "read-time": PropTypes.number
3835
+ story: PropTypes__default["default"].shape({
3836
+ "read-time": PropTypes__default["default"].number
3827
3837
  }),
3828
- opts: PropTypes.shape({
3829
- showReadTime: PropTypes.bool
3838
+ opts: PropTypes__default["default"].shape({
3839
+ showReadTime: PropTypes__default["default"].bool
3830
3840
  }),
3831
- isLightTheme: PropTypes.bool
3841
+ isLightTheme: PropTypes__default["default"].bool
3832
3842
  };
3833
3843
 
3834
3844
  var _styleModuleImportMap$4 = {
@@ -3859,33 +3869,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3859
3869
 
3860
3870
  var getSeparator = function getSeparator() {
3861
3871
  if (separator === "divider") {
3862
- return /*#__PURE__*/React.createElement(Divider, {
3872
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3863
3873
  color: textColor
3864
3874
  });
3865
3875
  }
3866
3876
 
3867
- return /*#__PURE__*/React.createElement(Dot, {
3877
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3868
3878
  color: textColor
3869
3879
  });
3870
3880
  };
3871
3881
 
3872
3882
  var getTimeStamp = function getTimeStamp() {
3873
3883
  if (!isTime) return null;
3874
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3884
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3875
3885
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$4)
3876
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3886
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3877
3887
  story: story,
3878
3888
  config: config
3879
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3889
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3880
3890
  story: story,
3881
3891
  opts: config,
3882
3892
  isLightTheme: isLightTheme
3883
3893
  }));
3884
3894
  };
3885
3895
 
3886
- return /*#__PURE__*/React.createElement("div", {
3896
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3887
3897
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$4)
3888
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3898
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3889
3899
  story: story,
3890
3900
  isBottom: true,
3891
3901
  hideAuthorImage: hideAuthorImage,
@@ -3893,19 +3903,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3893
3903
  }), getTimeStamp()) : getTimeStamp());
3894
3904
  };
3895
3905
  AuthorWithTime.propTypes = {
3896
- story: PropTypes.object,
3906
+ story: PropTypes__default["default"].object,
3897
3907
 
3898
3908
  /** Style of separator between the Author & Timestamp */
3899
- separator: PropTypes.oneOf(["dot", "divider"]),
3909
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3900
3910
 
3901
3911
  /** hide the author image */
3902
- hideAuthorImage: PropTypes.bool,
3912
+ hideAuthorImage: PropTypes__default["default"].bool,
3903
3913
  // fix author and time at the end
3904
- isBottom: PropTypes.bool,
3914
+ isBottom: PropTypes__default["default"].bool,
3905
3915
  // fix prefix before the author name
3906
- prefix: PropTypes.string,
3907
- config: PropTypes.object,
3908
- isLightTheme: PropTypes.bool
3916
+ prefix: PropTypes__default["default"].string,
3917
+ config: PropTypes__default["default"].object,
3918
+ isLightTheme: PropTypes__default["default"].bool
3909
3919
  };
3910
3920
  AuthorWithTime.defaultProps = {
3911
3921
  separator: "dot",
@@ -3936,14 +3946,14 @@ var StorycardContent = function StorycardContent(_ref) {
3936
3946
  var SectionTagborderColor = rgbToHex(borderColor);
3937
3947
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
3938
3948
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
3939
- return /*#__PURE__*/React.createElement("div", {
3949
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3940
3950
  "data-test-id": "story-card-content",
3941
3951
  style: {
3942
3952
  backgroundColor: theme,
3943
3953
  color: textColor
3944
3954
  },
3945
3955
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$3)
3946
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
3956
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
3947
3957
  story: story,
3948
3958
  headerLevel: headerLevel,
3949
3959
  isHorizontalMobile: isHorizontalMobile,
@@ -3961,37 +3971,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
3961
3971
  var SectionTagborderColor = rgbToHex(borderColor);
3962
3972
  var _config$localizationC = config.localizationConfig,
3963
3973
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
3964
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
3974
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
3965
3975
  story: story,
3966
3976
  borderColor: SectionTagborderColor
3967
- }), /*#__PURE__*/React.createElement(Headline, {
3977
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
3968
3978
  story: story,
3969
3979
  headerLevel: headerLevel,
3970
3980
  premiumStoryIconConfig: config
3971
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
3981
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
3972
3982
  config: localizationConfig,
3973
3983
  story: story
3974
3984
  }));
3975
3985
  };
3976
3986
 
3977
3987
  DefaultStoryCardContent.propTypes = {
3978
- story: PropTypes.object.isRequired,
3979
- border: PropTypes.string,
3980
- theme: PropTypes.string,
3981
- isHorizontalMobile: PropTypes.bool,
3982
- headerLevel: PropTypes.string,
3983
- borderColor: PropTypes.string,
3984
- config: PropTypes.object
3988
+ story: PropTypes__default["default"].object.isRequired,
3989
+ border: PropTypes__default["default"].string,
3990
+ theme: PropTypes__default["default"].string,
3991
+ isHorizontalMobile: PropTypes__default["default"].bool,
3992
+ headerLevel: PropTypes__default["default"].string,
3993
+ borderColor: PropTypes__default["default"].string,
3994
+ config: PropTypes__default["default"].object
3985
3995
  };
3986
3996
  StorycardContent.propTypes = {
3987
- story: PropTypes.object.isRequired,
3988
- children: PropTypes.node,
3989
- theme: PropTypes.string,
3990
- border: PropTypes.string,
3991
- isHorizontalMobile: PropTypes.bool,
3992
- headerLevel: PropTypes.string,
3993
- borderColor: PropTypes.string,
3994
- config: PropTypes.object
3997
+ story: PropTypes__default["default"].object.isRequired,
3998
+ children: PropTypes__default["default"].node,
3999
+ theme: PropTypes__default["default"].string,
4000
+ border: PropTypes__default["default"].string,
4001
+ isHorizontalMobile: PropTypes__default["default"].bool,
4002
+ headerLevel: PropTypes__default["default"].string,
4003
+ borderColor: PropTypes__default["default"].string,
4004
+ config: PropTypes__default["default"].object
3995
4005
  };
3996
4006
 
3997
4007
  var _styleModuleImportMap$2 = {
@@ -4014,7 +4024,7 @@ var Subheadline = function Subheadline(_ref) {
4014
4024
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
4015
4025
  if (!subheadline) return null;
4016
4026
  var textColor = getTextColor(config.theme);
4017
- return /*#__PURE__*/React.createElement("div", {
4027
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4018
4028
  style: {
4019
4029
  WebkitLineClamp: lineClamp
4020
4030
  },
@@ -4024,15 +4034,15 @@ var Subheadline = function Subheadline(_ref) {
4024
4034
  };
4025
4035
  Subheadline.propTypes = {
4026
4036
  /** The Story Object from the API response */
4027
- story: PropTypes.object.isRequired,
4037
+ story: PropTypes__default["default"].object.isRequired,
4028
4038
  // Restricts the number of lines for subheadline.
4029
- lineClamp: PropTypes.number,
4039
+ lineClamp: PropTypes__default["default"].number,
4030
4040
 
4031
4041
  /** Number of characters to truncate the subheadline */
4032
- truncateChars: PropTypes.number,
4033
- clazzName: PropTypes.string,
4034
- forceShowAtom: PropTypes.bool,
4035
- showFullContent: PropTypes.bool
4042
+ truncateChars: PropTypes__default["default"].number,
4043
+ clazzName: PropTypes__default["default"].string,
4044
+ forceShowAtom: PropTypes__default["default"].bool,
4045
+ showFullContent: PropTypes__default["default"].bool
4036
4046
  };
4037
4047
  Subheadline.defaultProps = {
4038
4048
  forceShowAtom: false,
@@ -4081,7 +4091,7 @@ var StoryCard = function StoryCard(_ref) {
4081
4091
  prefix = _ref.prefix,
4082
4092
  config = _ref.config,
4083
4093
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4084
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
4094
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4085
4095
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4086
4096
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4087
4097
 
@@ -4091,7 +4101,7 @@ var StoryCard = function StoryCard(_ref) {
4091
4101
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4092
4102
  var textColor = getTextColor(theme);
4093
4103
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4094
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4104
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4095
4105
  story: story,
4096
4106
  aspectRatio: aspectRatio,
4097
4107
  border: border,
@@ -4105,7 +4115,7 @@ var StoryCard = function StoryCard(_ref) {
4105
4115
  config: config,
4106
4116
  isHorizontalWithImageLast: isHorizontalWithImageLast
4107
4117
  });
4108
- return /*#__PURE__*/React.createElement("div", {
4118
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4109
4119
  "data-test-id": "story-card",
4110
4120
  style: {
4111
4121
  backgroundColor: theme,
@@ -4134,91 +4144,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4134
4144
  var SectionTagborderColor = rgbToHex(borderColor);
4135
4145
  var _config$localizationC = config.localizationConfig,
4136
4146
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4137
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4147
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4138
4148
  config: config,
4139
4149
  story: story,
4140
4150
  isHorizontal: true,
4141
4151
  isHorizontalMobile: isHorizontalMobile,
4142
4152
  aspectRatio: aspectRatio
4143
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4153
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4144
4154
  config: config,
4145
4155
  story: story,
4146
4156
  isHorizontalWithImageLast: true,
4147
4157
  isHorizontalMobile: isHorizontalMobile,
4148
4158
  aspectRatio: aspectRatio
4149
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4159
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4150
4160
  story: story,
4151
4161
  config: config,
4152
4162
  isHorizontalMobile: isHorizontalMobile,
4153
4163
  aspectRatio: aspectRatio
4154
- }), /*#__PURE__*/React.createElement("div", {
4164
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4155
4165
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$1)
4156
- }, /*#__PURE__*/React.createElement(SectionTag, {
4166
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4157
4167
  story: story,
4158
4168
  borderColor: SectionTagborderColor
4159
- }), /*#__PURE__*/React.createElement(Headline, {
4169
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4160
4170
  story: story,
4161
4171
  headerLevel: headerLevel,
4162
4172
  premiumStoryIconConfig: config
4163
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4173
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4164
4174
  config: localizationConfig,
4165
4175
  story: story,
4166
4176
  isBottom: true,
4167
4177
  prefix: prefix,
4168
4178
  hideAuthorImage: hideAuthorImage
4169
- }), /*#__PURE__*/React.createElement(Subheadline, {
4179
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4170
4180
  story: story
4171
4181
  })));
4172
4182
  };
4173
4183
 
4174
4184
  DefaultStoryCard.propTypes = {
4175
- story: PropTypes.object.isRequired,
4176
- border: PropTypes.oneOfType([PropTypes.string]),
4177
- isBottom: PropTypes.bool,
4178
- isHorizontal: PropTypes.bool,
4179
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4180
- isHorizontalMobile: PropTypes.bool,
4181
- centerAlign: PropTypes.bool,
4182
- headerLevel: PropTypes.string,
4183
- borderColor: PropTypes.string,
4184
- hideAuthorImage: PropTypes.bool,
4185
- prefix: PropTypes.string,
4186
- config: PropTypes.object,
4187
- isHorizontalWithImageLast: PropTypes.bool
4185
+ story: PropTypes__default["default"].object.isRequired,
4186
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4187
+ isBottom: PropTypes__default["default"].bool,
4188
+ isHorizontal: PropTypes__default["default"].bool,
4189
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4190
+ isHorizontalMobile: PropTypes__default["default"].bool,
4191
+ centerAlign: PropTypes__default["default"].bool,
4192
+ headerLevel: PropTypes__default["default"].string,
4193
+ borderColor: PropTypes__default["default"].string,
4194
+ hideAuthorImage: PropTypes__default["default"].bool,
4195
+ prefix: PropTypes__default["default"].string,
4196
+ config: PropTypes__default["default"].object,
4197
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4188
4198
  };
4189
4199
  StoryCard.propTypes = {
4190
4200
  /** The Story Object from the API response */
4191
- story: PropTypes.object.isRequired,
4192
- children: PropTypes.node,
4201
+ story: PropTypes__default["default"].object.isRequired,
4202
+ children: PropTypes__default["default"].node,
4193
4203
 
4194
4204
  /** Flip the Story Card to Horizonal mode */
4195
- isHorizontal: PropTypes.bool,
4205
+ isHorizontal: PropTypes__default["default"].bool,
4196
4206
 
4197
4207
  /** Add border to the Story Card */
4198
- border: PropTypes.oneOfType([PropTypes.string]),
4208
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4199
4209
  // story card with background image
4200
- useImageAsBackground: PropTypes.bool,
4210
+ useImageAsBackground: PropTypes__default["default"].bool,
4201
4211
  // story card content overlap with image
4202
- bgImgContentOverlap: PropTypes.bool,
4212
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4203
4213
 
4204
4214
  /** add aspect ratio for hero image */
4205
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4215
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4206
4216
 
4207
4217
  /** add theme(dark /light/custom color) for storycard */
4208
- theme: PropTypes.string,
4218
+ theme: PropTypes__default["default"].string,
4209
4219
 
4210
4220
  /** flip the story card mobile design horizontal */
4211
- isHorizontalMobile: PropTypes.bool,
4221
+ isHorizontalMobile: PropTypes__default["default"].bool,
4212
4222
  // make content center align in desktop and left align in mobile
4213
- centerAlign: PropTypes.bool,
4214
- headerLevel: PropTypes.string,
4215
- borderColor: PropTypes.string,
4223
+ centerAlign: PropTypes__default["default"].bool,
4224
+ headerLevel: PropTypes__default["default"].string,
4225
+ borderColor: PropTypes__default["default"].string,
4216
4226
  // handle author image through storycard
4217
- hideAuthorImage: PropTypes.bool,
4227
+ hideAuthorImage: PropTypes__default["default"].bool,
4218
4228
  // handle author prefix through storycard
4219
- prefix: PropTypes.string,
4220
- config: PropTypes.object,
4221
- isHorizontalWithImageLast: PropTypes.bool
4229
+ prefix: PropTypes__default["default"].string,
4230
+ config: PropTypes__default["default"].object,
4231
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4222
4232
  };
4223
4233
  StoryCard.defaultProps = {
4224
4234
  isHorizontal: false,
@@ -4277,33 +4287,33 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4277
4287
  if (!showButton) return null;
4278
4288
  var textColor = getTextColor(theme);
4279
4289
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4280
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4290
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4281
4291
  onClick: onClick,
4282
4292
  "data-test-id": "load-more",
4283
4293
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4284
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4294
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4285
4295
  href: slug,
4286
4296
  navigateTo: navigate,
4287
4297
  "data-test-id": "load-more",
4288
4298
  "aria-label": "load-more"
4289
- }, /*#__PURE__*/React.createElement("div", {
4299
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4290
4300
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4291
4301
  }, buttonText));
4292
4302
  };
4293
4303
  LoadmoreButton.propTypes = {
4294
- collection: PropTypes.object,
4295
- template: PropTypes.string,
4296
- config: PropTypes.object,
4297
- onClick: PropTypes.func,
4298
- navigate: PropTypes.func,
4299
- qtConfig: PropTypes.object
4304
+ collection: PropTypes__default["default"].object,
4305
+ template: PropTypes__default["default"].string,
4306
+ config: PropTypes__default["default"].object,
4307
+ onClick: PropTypes__default["default"].func,
4308
+ navigate: PropTypes__default["default"].func,
4309
+ qtConfig: PropTypes__default["default"].object
4300
4310
  };
4301
4311
 
4302
4312
  var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
4303
4313
  var collection = _ref.collection,
4304
4314
  _ref$config = _ref.config,
4305
4315
  config = _ref$config === void 0 ? {} : _ref$config;
4306
- var items = collectionToStories(collection);
4316
+ var items = components.collectionToStories(collection);
4307
4317
  var _config$border = config.border,
4308
4318
  border = _config$border === void 0 ? "" : _config$border,
4309
4319
  _config$borderColor = config.borderColor,
@@ -4324,31 +4334,31 @@ var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
4324
4334
  return null;
4325
4335
  }
4326
4336
 
4327
- var dispatch = useDispatch();
4328
- var qtConfig = useSelector(function (state) {
4337
+ var dispatch = reactRedux.useDispatch();
4338
+ var qtConfig = reactRedux.useSelector(function (state) {
4329
4339
  return get_1(state, ["qt", "config"], {});
4330
4340
  });
4331
4341
  var url = generateNavigateSlug(collection, qtConfig);
4332
4342
  var textColor = getTextColor(theme);
4333
4343
  var footerSlotComp = footerSlot ? footerSlot() : null;
4334
- return /*#__PURE__*/React.createElement("div", {
4344
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4335
4345
  className: "full-width-with-padding arrow-component",
4336
4346
  "data-test-id": "two-col-three-stories",
4337
4347
  style: {
4338
4348
  backgroundColor: theme,
4339
4349
  color: textColor
4340
4350
  }
4341
- }, /*#__PURE__*/React.createElement("div", {
4351
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4342
4352
  className: "two-col-three-story-m_two-col-three-story__2RBJq"
4343
- }, /*#__PURE__*/React.createElement(CollectionName, {
4353
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4344
4354
  collection: collection,
4345
4355
  collectionNameTemplate: collectionNameTemplate,
4346
4356
  collectionNameBorderColor: collectionNameBorderColor
4347
- }), /*#__PURE__*/React.createElement("div", {
4357
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4348
4358
  className: "two-col-three-story-m_wrapper__3gGEO"
4349
- }, /*#__PURE__*/React.createElement("div", {
4359
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4350
4360
  className: "two-col-three-story-m_first-card__2J2Ea"
4351
- }, /*#__PURE__*/React.createElement(StoryCard, {
4361
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4352
4362
  story: items[0],
4353
4363
  theme: theme,
4354
4364
  border: border,
@@ -4356,30 +4366,30 @@ var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
4356
4366
  headerLevel: "2",
4357
4367
  aspectRatio: [[16, 9], [16, 9]],
4358
4368
  config: config
4359
- }, /*#__PURE__*/React.createElement(HeroImage, {
4369
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4360
4370
  story: items[0],
4361
4371
  aspectRatio: [[16, 9], [16, 9]]
4362
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4372
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4363
4373
  story: items[0],
4364
4374
  headerLevel: "2",
4365
4375
  border: border,
4366
4376
  theme: theme,
4367
4377
  borderColor: borderColor,
4368
4378
  config: config
4369
- }))), /*#__PURE__*/React.createElement("div", null, items.slice(1, 3).map(function (story, index) {
4379
+ }))), /*#__PURE__*/React__default["default"].createElement("div", null, items.slice(1, 3).map(function (story, index) {
4370
4380
  if (index === 1) {
4371
- return /*#__PURE__*/React.createElement("div", {
4381
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4372
4382
  key: index
4373
- }, /*#__PURE__*/React.createElement(StoryCard, {
4383
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4374
4384
  story: story,
4375
4385
  border: border,
4376
4386
  theme: theme,
4377
4387
  isHorizontalMobile: true,
4378
4388
  config: config
4379
- }, /*#__PURE__*/React.createElement(HeroImage, {
4389
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4380
4390
  story: story,
4381
4391
  isHorizontalMobile: true
4382
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4392
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4383
4393
  theme: theme,
4384
4394
  border: border,
4385
4395
  story: story,
@@ -4387,19 +4397,19 @@ var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
4387
4397
  borderColor: borderColor,
4388
4398
  config: config
4389
4399
  })));
4390
- } else return /*#__PURE__*/React.createElement("div", {
4400
+ } else return /*#__PURE__*/React__default["default"].createElement("div", {
4391
4401
  className: "two-col-three-story-m_storycard__3Gmsw",
4392
4402
  key: index
4393
- }, /*#__PURE__*/React.createElement(StoryCard, {
4403
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4394
4404
  story: story,
4395
4405
  border: border,
4396
4406
  theme: theme,
4397
4407
  isHorizontalMobile: true,
4398
4408
  config: config
4399
- }, /*#__PURE__*/React.createElement(HeroImage, {
4409
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4400
4410
  story: story,
4401
4411
  isHorizontalMobile: true
4402
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4412
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4403
4413
  theme: theme,
4404
4414
  border: border,
4405
4415
  story: story,
@@ -4407,7 +4417,7 @@ var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
4407
4417
  borderColor: borderColor,
4408
4418
  config: config
4409
4419
  })));
4410
- }))), /*#__PURE__*/React.createElement(LoadmoreButton, {
4420
+ }))), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4411
4421
  template: footerButton,
4412
4422
  collection: collection,
4413
4423
  config: config,
@@ -4419,18 +4429,19 @@ var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
4419
4429
  };
4420
4430
  TwoColThreeStoriesBase.propTypes = {
4421
4431
  /** collection is the array of objects which is returning by API */
4422
- collection: PropTypes.object.isRequired,
4432
+ collection: PropTypes__default["default"].object.isRequired,
4423
4433
 
4424
4434
  /** The config for the Row */
4425
- config: PropTypes.shape({
4426
- borderColor: PropTypes.string,
4427
- theme: PropTypes.string,
4428
- border: PropTypes.string,
4429
- footerButton: PropTypes.string,
4430
- collectionNameTemplate: PropTypes.string,
4431
- collectionNameBorderColor: PropTypes.string
4435
+ config: PropTypes__default["default"].shape({
4436
+ borderColor: PropTypes__default["default"].string,
4437
+ theme: PropTypes__default["default"].string,
4438
+ border: PropTypes__default["default"].string,
4439
+ footerButton: PropTypes__default["default"].string,
4440
+ collectionNameTemplate: PropTypes__default["default"].string,
4441
+ collectionNameBorderColor: PropTypes__default["default"].string
4432
4442
  })
4433
4443
  };
4434
4444
  var TwoColThreeStories = StateProvider(TwoColThreeStoriesBase);
4435
4445
 
4436
- export { TwoColThreeStories, TwoColThreeStoriesBase };
4446
+ exports.TwoColThreeStories = TwoColThreeStories;
4447
+ exports.TwoColThreeStoriesBase = TwoColThreeStoriesBase;