@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 Timeago from 'react-timeago';
5
- import { utcToZonedTime, format } from 'date-fns-tz';
6
- import { useSelector, connect, useDispatch } from 'react-redux';
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 Timeago = require('react-timeago');
9
+ var dateFnsTz = require('date-fns-tz');
10
+ var reactRedux = require('react-redux');
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
  function _arrayWithHoles(arr) {
9
19
  if (Array.isArray(arr)) return arr;
@@ -191,21 +201,21 @@ exports["default"] = _default;
191
201
 
192
202
  var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
193
203
 
194
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
204
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
195
205
 
196
206
  var StateProvider = function StateProvider(RowComponent) {
197
207
  return function (props) {
198
208
  return (
199
209
  /*#__PURE__*/
200
210
  // eslint-disable-next-line react/prop-types
201
- React.createElement(StateContext.Provider, {
211
+ React__default["default"].createElement(StateContext.Provider, {
202
212
  value: props.config
203
- }, /*#__PURE__*/React.createElement(RowComponent, props))
213
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
204
214
  );
205
215
  };
206
216
  };
207
217
  var useStateValue = function useStateValue() {
208
- return useContext(StateContext);
218
+ return React.useContext(StateContext);
209
219
  };
210
220
 
211
221
  function _typeof(obj) {
@@ -2710,15 +2720,15 @@ var isEmpty = function isEmpty(value) {
2710
2720
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2711
2721
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2712
2722
  };
2713
- PropTypes.shape({
2714
- "sketches-host": PropTypes.string,
2715
- "cdn-name": PropTypes.string,
2716
- "cdn-image": PropTypes.string
2723
+ PropTypes__default["default"].shape({
2724
+ "sketches-host": PropTypes__default["default"].string,
2725
+ "cdn-name": PropTypes__default["default"].string,
2726
+ "cdn-image": PropTypes__default["default"].string
2717
2727
  });
2718
- PropTypes.shape({
2719
- headline: PropTypes.string,
2720
- "last-published-at": PropTypes.number,
2721
- subheadline: PropTypes.string
2728
+ PropTypes__default["default"].shape({
2729
+ headline: PropTypes__default["default"].string,
2730
+ "last-published-at": PropTypes__default["default"].number,
2731
+ subheadline: PropTypes__default["default"].string
2722
2732
  });
2723
2733
  var getStoryUrl = function getStoryUrl(story) {
2724
2734
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2762,17 +2772,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2762
2772
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2763
2773
 
2764
2774
  if (timezone && template === "story") {
2765
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2766
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2775
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2776
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2767
2777
  timeZone: timezone
2768
2778
  });
2769
2779
  var timeStamp = timestampToFormat("", "", "", date, config);
2770
- return /*#__PURE__*/React.createElement("time", {
2780
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2771
2781
  dateTime: formatZonedTime
2772
2782
  }, timeStamp);
2773
2783
  }
2774
2784
 
2775
- return /*#__PURE__*/React.createElement(Timeago, {
2785
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2776
2786
  date: date,
2777
2787
  formatter: function formatter(value, unit, suffix, date) {
2778
2788
  return _formatter(value, unit, suffix, date, config);
@@ -2821,27 +2831,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2821
2831
  height = _ref$height === void 0 ? 30 : _ref$height,
2822
2832
  _ref$iconColor = _ref.iconColor,
2823
2833
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
2824
- return /*#__PURE__*/React.createElement("svg", {
2834
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2825
2835
  width: width,
2826
2836
  height: height,
2827
2837
  viewBox: "0 0 102 76",
2828
2838
  version: "1.1"
2829
- }, /*#__PURE__*/React.createElement("g", {
2839
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2830
2840
  id: "demo-home-copy",
2831
2841
  stroke: "none",
2832
2842
  strokeWidth: "1",
2833
2843
  fill: "none",
2834
2844
  fillRule: "evenodd",
2835
2845
  transform: "translate(-377.000000, -314.000000)"
2836
- }, /*#__PURE__*/React.createElement("g", {
2846
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2837
2847
  id: "Group-13",
2838
2848
  transform: "translate(377.000000, 314.000000)"
2839
- }, /*#__PURE__*/React.createElement("path", {
2849
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2840
2850
  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",
2841
2851
  id: "Combined-Shape",
2842
2852
  fill: iconColor,
2843
2853
  fillRule: "nonzero"
2844
- }), /*#__PURE__*/React.createElement("rect", {
2854
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
2845
2855
  id: "Rectangle-19",
2846
2856
  stroke: iconColor,
2847
2857
  strokeWidth: "3",
@@ -2853,24 +2863,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2853
2863
  }))));
2854
2864
  };
2855
2865
  ImageFallbackIcon.propTypes = {
2856
- width: PropTypes.object,
2857
- height: PropTypes.object,
2858
- iconColor: PropTypes.object
2866
+ width: PropTypes__default["default"].object,
2867
+ height: PropTypes__default["default"].object,
2868
+ iconColor: PropTypes__default["default"].object
2859
2869
  };
2860
2870
 
2861
2871
  var imageFallback = function imageFallback() {
2862
- return /*#__PURE__*/React.createElement("div", {
2872
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2863
2873
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
2864
- }, /*#__PURE__*/React.createElement("figure", {
2874
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
2865
2875
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
2866
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
2876
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
2867
2877
  };
2868
2878
 
2869
2879
  var FallbackImage = function FallbackImage(_ref) {
2870
2880
  var slug = _ref.slug;
2871
2881
 
2872
2882
  if (slug) {
2873
- return /*#__PURE__*/React.createElement(Link, {
2883
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2874
2884
  href: slug,
2875
2885
  "aria-label": "image-fallback"
2876
2886
  }, imageFallback());
@@ -2879,23 +2889,23 @@ var FallbackImage = function FallbackImage(_ref) {
2879
2889
  }
2880
2890
  };
2881
2891
  FallbackImage.propTypes = {
2882
- slug: PropTypes.string
2892
+ slug: PropTypes__default["default"].string
2883
2893
  };
2884
2894
 
2885
2895
  var HyperLinkIcon = function HyperLinkIcon() {
2886
- return /*#__PURE__*/React.createElement("svg", {
2896
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2887
2897
  xmlns: "http://www.w3.org/2000/svg",
2888
2898
  width: "36",
2889
2899
  height: "28"
2890
- }, /*#__PURE__*/React.createElement("g", {
2900
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2891
2901
  fill: "none",
2892
2902
  fillRule: "evenodd"
2893
- }, /*#__PURE__*/React.createElement("rect", {
2903
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
2894
2904
  width: "36",
2895
2905
  height: "28",
2896
2906
  fill: "#3D6FCF",
2897
2907
  rx: "4"
2898
- }), /*#__PURE__*/React.createElement("path", {
2908
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2899
2909
  stroke: "#FFF",
2900
2910
  strokeLinecap: "round",
2901
2911
  strokeLinejoin: "round",
@@ -2908,16 +2918,16 @@ var HyperLink = function HyperLink(_ref) {
2908
2918
  var _ref$hyperLink = _ref.hyperLink,
2909
2919
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
2910
2920
  if (!hyperLink) return null;
2911
- return /*#__PURE__*/React.createElement(Link, {
2921
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2912
2922
  href: hyperLink,
2913
2923
  "aria-label": "hyperlink-button",
2914
2924
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
2915
2925
  target: "_blank",
2916
2926
  rel: "noopener noreferrer"
2917
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
2927
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
2918
2928
  };
2919
2929
  HyperLink.propTypes = {
2920
- hyperLink: PropTypes.string
2930
+ hyperLink: PropTypes__default["default"].string
2921
2931
  };
2922
2932
 
2923
2933
  var _styleModuleImportMap$e = {
@@ -2953,7 +2963,7 @@ var HeroImage = function HeroImage(_ref) {
2953
2963
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
2954
2964
  return null;
2955
2965
  } : _config$StoryTemplate;
2956
- var showImagePlaceholder = useSelector(function (state) {
2966
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
2957
2967
  return get_1(state, ["qt", "config", "showPlaceholder"]);
2958
2968
  });
2959
2969
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -2989,37 +2999,37 @@ var HeroImage = function HeroImage(_ref) {
2989
2999
  var fallbackImage = function fallbackImage() {
2990
3000
  if (!slug) {
2991
3001
  if (fallbackImageUrl && !isStoryPageImage) {
2992
- return /*#__PURE__*/React.createElement("figure", {
3002
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
2993
3003
  style: {
2994
3004
  paddingTop: imagePadding + "%"
2995
3005
  },
2996
3006
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
2997
- }, /*#__PURE__*/React.createElement("img", {
3007
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
2998
3008
  className: "qt-image",
2999
3009
  "data-src": "".concat(fallbackImageUrl),
3000
3010
  alt: "image-fallback"
3001
3011
  }));
3002
3012
  }
3003
3013
 
3004
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3014
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3005
3015
  "data-test-id": "arr--fallback-hero-image",
3006
3016
  style: {
3007
3017
  paddingTop: imagePadding + "%"
3008
3018
  },
3009
3019
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3010
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3020
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3011
3021
  storyTemplate: story["story-template"]
3012
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3022
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3013
3023
  }
3014
3024
 
3015
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3025
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3016
3026
  style: {
3017
3027
  paddingTop: imagePadding + "%"
3018
3028
  },
3019
3029
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3020
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3030
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3021
3031
  storyTemplate: story["story-template"]
3022
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3032
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3023
3033
  story: story,
3024
3034
  aspectRatio: imageAspectRatio,
3025
3035
  defaultWidth: defaultWidth,
@@ -3028,15 +3038,15 @@ var HeroImage = function HeroImage(_ref) {
3028
3038
  auto: ["format", "compress"],
3029
3039
  fit: "max"
3030
3040
  }
3031
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3041
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3032
3042
  hyperLink: hyperLink
3033
3043
  }));
3034
3044
  };
3035
3045
 
3036
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3046
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3037
3047
  "data-test-id": "arr--hero-image",
3038
3048
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
3039
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3049
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3040
3050
  "data-test-id": "arr--hero-image",
3041
3051
  href: getStoryUrl(story, "/".concat(story.slug)),
3042
3052
  externalLink: isExternalStory(story),
@@ -3046,30 +3056,30 @@ var HeroImage = function HeroImage(_ref) {
3046
3056
  };
3047
3057
  HeroImage.propTypes = {
3048
3058
  /** The Story Object from the API response */
3049
- story: PropTypes.object.isRequired,
3059
+ story: PropTypes__default["default"].object.isRequired,
3050
3060
 
3051
3061
  /** Removes the Hero Image padding for the image to bleed over the margin */
3052
- FullBleed: PropTypes.bool,
3062
+ FullBleed: PropTypes__default["default"].bool,
3053
3063
 
3054
3064
  /** The default width for the image, in case the browser does not support srcset */
3055
- defaultWidth: PropTypes.number,
3065
+ defaultWidth: PropTypes__default["default"].number,
3056
3066
 
3057
3067
  /** The list of available widths */
3058
- widths: PropTypes.array,
3068
+ widths: PropTypes__default["default"].array,
3059
3069
  // fatch the correct hero image
3060
- aspectRatio: PropTypes.array,
3070
+ aspectRatio: PropTypes__default["default"].array,
3061
3071
  // Hints for the browser to choose the best size
3062
3072
 
3063
3073
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3064
- isHorizontal: PropTypes.bool,
3074
+ isHorizontal: PropTypes__default["default"].bool,
3065
3075
 
3066
3076
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3067
- isHorizontalMobile: PropTypes.bool,
3077
+ isHorizontalMobile: PropTypes__default["default"].bool,
3068
3078
  // this prop is responsive for rendering fallback image on story page
3069
- defaultFallback: PropTypes.bool,
3070
- isHorizontalWithImageLast: PropTypes.bool,
3071
- isStoryPageImage: PropTypes.bool,
3072
- config: PropTypes.object
3079
+ defaultFallback: PropTypes__default["default"].bool,
3080
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3081
+ isStoryPageImage: PropTypes__default["default"].bool,
3082
+ config: PropTypes__default["default"].object
3073
3083
  };
3074
3084
  HeroImage.defaultProps = {
3075
3085
  FullBleed: true,
@@ -3120,7 +3130,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3120
3130
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
3121
3131
 
3122
3132
  var borderBottomStyle = function borderBottomStyle() {
3123
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
3133
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
3124
3134
  className: "collection-name-m_border-bottom__1MnlV",
3125
3135
  style: {
3126
3136
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -3180,40 +3190,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3180
3190
  }
3181
3191
  };
3182
3192
 
3183
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
3193
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
3184
3194
  style: {
3185
3195
  borderBottom: borderBottomFullStyle
3186
3196
  },
3187
3197
  "data-test-id": "collection-name",
3188
3198
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$d)
3189
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
3199
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3190
3200
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
3191
3201
  style: {
3192
3202
  color: CollectionNameBorderColor,
3193
3203
  fontSize: getBorderHeight()
3194
3204
  }
3195
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
3205
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3196
3206
  href: slug,
3197
3207
  "aria-label": "collection-name"
3198
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
3208
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
3199
3209
  };
3200
3210
  CollectionNameBase.propTypes = {
3201
3211
  /** Collection name border color */
3202
- collectionNameBorderColor: PropTypes$1.string,
3212
+ collectionNameBorderColor: PropTypes.PropTypes.string,
3203
3213
 
3204
3214
  /** The Collection Object from the API response */
3205
- collection: PropTypes$1.object,
3215
+ collection: PropTypes.PropTypes.object,
3206
3216
 
3207
3217
  /** The publisher config from the API response */
3208
- config: PropTypes$1.object,
3218
+ config: PropTypes.PropTypes.object,
3209
3219
 
3210
3220
  /** The style template for the component */
3211
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
3221
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
3212
3222
 
3213
3223
  /** Header tags ranging h1-h6, where h[headerLevel] */
3214
- headerLevel: PropTypes$1.string,
3215
- customCollectionName: PropTypes$1.string,
3216
- navigate: PropTypes$1.bool
3224
+ headerLevel: PropTypes.PropTypes.string,
3225
+ customCollectionName: PropTypes.PropTypes.string,
3226
+ navigate: PropTypes.PropTypes.bool
3217
3227
  };
3218
3228
  CollectionNameBase.defaultProps = {
3219
3229
  collectionNameTemplate: "",
@@ -3226,7 +3236,7 @@ function mapStateToProps$1(state) {
3226
3236
  };
3227
3237
  }
3228
3238
 
3229
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
3239
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
3230
3240
 
3231
3241
  var CrownIcon = function CrownIcon(_ref) {
3232
3242
  var height = _ref.height,
@@ -3234,7 +3244,7 @@ var CrownIcon = function CrownIcon(_ref) {
3234
3244
  _ref$color = _ref.color,
3235
3245
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3236
3246
  positionTop = _ref.positionTop;
3237
- return /*#__PURE__*/React.createElement("svg", {
3247
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3238
3248
  xmlns: "http://www.w3.org/2000/svg",
3239
3249
  width: width,
3240
3250
  height: height,
@@ -3243,28 +3253,28 @@ var CrownIcon = function CrownIcon(_ref) {
3243
3253
  position: "relative",
3244
3254
  top: positionTop
3245
3255
  }
3246
- }, /*#__PURE__*/React.createElement("g", {
3256
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3247
3257
  fill: "none",
3248
3258
  fillRule: "evenodd",
3249
3259
  stroke: "none",
3250
3260
  strokeWidth: "1"
3251
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3261
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3252
3262
  transform: "translate(8 8)"
3253
- }, /*#__PURE__*/React.createElement("path", {
3263
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3254
3264
  d: "M0 0H24V24H0z"
3255
- }), /*#__PURE__*/React.createElement("g", {
3265
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3256
3266
  fill: color,
3257
3267
  fillRule: "nonzero",
3258
3268
  transform: "translate(0 2)"
3259
- }, /*#__PURE__*/React.createElement("path", {
3269
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3260
3270
  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"
3261
3271
  }))))));
3262
3272
  };
3263
3273
  CrownIcon.propTypes = {
3264
- height: PropTypes.string,
3265
- width: PropTypes.string,
3266
- color: PropTypes.string,
3267
- positionTop: PropTypes.string
3274
+ height: PropTypes__default["default"].string,
3275
+ width: PropTypes__default["default"].string,
3276
+ color: PropTypes__default["default"].string,
3277
+ positionTop: PropTypes__default["default"].string
3268
3278
  };
3269
3279
 
3270
3280
  var KeyIcon = function KeyIcon(_ref) {
@@ -3273,7 +3283,7 @@ var KeyIcon = function KeyIcon(_ref) {
3273
3283
  _ref$color = _ref.color,
3274
3284
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3275
3285
  positionTop = _ref.positionTop;
3276
- return /*#__PURE__*/React.createElement("svg", {
3286
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3277
3287
  xmlns: "http://www.w3.org/2000/svg",
3278
3288
  width: width,
3279
3289
  height: height,
@@ -3282,16 +3292,16 @@ var KeyIcon = function KeyIcon(_ref) {
3282
3292
  position: "relative",
3283
3293
  top: positionTop
3284
3294
  }
3285
- }, /*#__PURE__*/React.createElement("g", {
3295
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3286
3296
  fill: "none",
3287
3297
  fillRule: "evenodd",
3288
3298
  stroke: "none",
3289
3299
  strokeWidth: "1"
3290
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3300
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3291
3301
  transform: "translate(8 8)"
3292
- }, /*#__PURE__*/React.createElement("path", {
3302
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3293
3303
  d: "M0 0H24V24H0z"
3294
- }), /*#__PURE__*/React.createElement("path", {
3304
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3295
3305
  fill: color,
3296
3306
  fillRule: "nonzero",
3297
3307
  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",
@@ -3299,10 +3309,10 @@ var KeyIcon = function KeyIcon(_ref) {
3299
3309
  })))));
3300
3310
  };
3301
3311
  KeyIcon.propTypes = {
3302
- height: PropTypes.string,
3303
- width: PropTypes.string,
3304
- color: PropTypes.string,
3305
- positionTop: PropTypes.string
3312
+ height: PropTypes__default["default"].string,
3313
+ width: PropTypes__default["default"].string,
3314
+ color: PropTypes__default["default"].string,
3315
+ positionTop: PropTypes__default["default"].string
3306
3316
  };
3307
3317
 
3308
3318
  var LockIcon = function LockIcon(_ref) {
@@ -3311,7 +3321,7 @@ var LockIcon = function LockIcon(_ref) {
3311
3321
  _ref$color = _ref.color,
3312
3322
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3313
3323
  positionTop = _ref.positionTop;
3314
- return /*#__PURE__*/React.createElement("svg", {
3324
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3315
3325
  xmlns: "http://www.w3.org/2000/svg",
3316
3326
  width: width,
3317
3327
  height: height,
@@ -3320,28 +3330,28 @@ var LockIcon = function LockIcon(_ref) {
3320
3330
  position: "relative",
3321
3331
  top: positionTop
3322
3332
  }
3323
- }, /*#__PURE__*/React.createElement("g", {
3333
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3324
3334
  fill: "none",
3325
3335
  fillRule: "evenodd",
3326
3336
  stroke: "none",
3327
3337
  strokeWidth: "1"
3328
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3338
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3329
3339
  transform: "translate(8 8)"
3330
- }, /*#__PURE__*/React.createElement("path", {
3340
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3331
3341
  d: "M0 0H24V24H0z"
3332
- }), /*#__PURE__*/React.createElement("g", {
3342
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3333
3343
  fill: color,
3334
3344
  fillRule: "nonzero",
3335
3345
  transform: "translate(3)"
3336
- }, /*#__PURE__*/React.createElement("path", {
3346
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3337
3347
  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"
3338
3348
  }))))));
3339
3349
  };
3340
3350
  LockIcon.propTypes = {
3341
- height: PropTypes.string,
3342
- width: PropTypes.string,
3343
- color: PropTypes.string,
3344
- positionTop: PropTypes.string
3351
+ height: PropTypes__default["default"].string,
3352
+ width: PropTypes__default["default"].string,
3353
+ color: PropTypes__default["default"].string,
3354
+ positionTop: PropTypes__default["default"].string
3345
3355
  };
3346
3356
 
3347
3357
  var StarIcon = function StarIcon(_ref) {
@@ -3351,7 +3361,7 @@ var StarIcon = function StarIcon(_ref) {
3351
3361
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3352
3362
  _ref$positionTop = _ref.positionTop,
3353
3363
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3354
- return /*#__PURE__*/React.createElement("svg", {
3364
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3355
3365
  xmlns: "http://www.w3.org/2000/svg",
3356
3366
  width: width,
3357
3367
  height: height,
@@ -3360,21 +3370,21 @@ var StarIcon = function StarIcon(_ref) {
3360
3370
  position: "relative",
3361
3371
  top: positionTop
3362
3372
  }
3363
- }, /*#__PURE__*/React.createElement("g", {
3373
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3364
3374
  fill: "none",
3365
3375
  fillRule: "evenodd",
3366
3376
  stroke: "none",
3367
3377
  strokeWidth: "1"
3368
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3378
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3369
3379
  fill: color,
3370
3380
  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"
3371
3381
  }))));
3372
3382
  };
3373
3383
  StarIcon.propTypes = {
3374
- height: PropTypes.string,
3375
- width: PropTypes.string,
3376
- color: PropTypes.string,
3377
- positionTop: PropTypes.string
3384
+ height: PropTypes__default["default"].string,
3385
+ width: PropTypes__default["default"].string,
3386
+ color: PropTypes__default["default"].string,
3387
+ positionTop: PropTypes__default["default"].string
3378
3388
  };
3379
3389
 
3380
3390
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3386,7 +3396,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3386
3396
 
3387
3397
  switch (iconType) {
3388
3398
  case "crown":
3389
- return /*#__PURE__*/React.createElement(CrownIcon, {
3399
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
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 "lock":
3397
- return /*#__PURE__*/React.createElement(LockIcon, {
3407
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
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
  case "key":
3405
- return /*#__PURE__*/React.createElement(KeyIcon, {
3415
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3406
3416
  width: width,
3407
3417
  height: height,
3408
3418
  color: color,
@@ -3410,7 +3420,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3410
3420
  });
3411
3421
 
3412
3422
  default:
3413
- return /*#__PURE__*/React.createElement(StarIcon, {
3423
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3414
3424
  width: width,
3415
3425
  height: height,
3416
3426
  color: color,
@@ -3419,21 +3429,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3419
3429
  }
3420
3430
  };
3421
3431
  PremiumStoryIcon.propTypes = {
3422
- width: PropTypes.string,
3423
- height: PropTypes.string,
3424
- color: PropTypes.string,
3425
- iconType: PropTypes.string,
3426
- positionTop: PropTypes.string
3432
+ width: PropTypes__default["default"].string,
3433
+ height: PropTypes__default["default"].string,
3434
+ color: PropTypes__default["default"].string,
3435
+ iconType: PropTypes__default["default"].string,
3436
+ positionTop: PropTypes__default["default"].string
3427
3437
  };
3428
3438
 
3429
3439
  function LiveIcon() {
3430
- return /*#__PURE__*/React.createElement("svg", {
3440
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3431
3441
  className: "live-icon",
3432
3442
  xmlns: "http://www.w3.org/2000/svg",
3433
3443
  width: "25",
3434
3444
  height: "24",
3435
3445
  viewBox: "0 0 25 24"
3436
- }, /*#__PURE__*/React.createElement("path", {
3446
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3437
3447
  fill: "#ff5858",
3438
3448
  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"
3439
3449
  }));
@@ -3490,37 +3500,37 @@ var Headline = function Headline(_ref) {
3490
3500
  var wrapperClass = premiumStory ? "wrapper" : "";
3491
3501
  var iconSize = "24px";
3492
3502
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3493
- return /*#__PURE__*/React.createElement("div", {
3503
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3494
3504
  "data-test-id": "headline",
3495
3505
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$c)
3496
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3506
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3497
3507
  width: iconSize,
3498
3508
  height: iconSize,
3499
3509
  color: iconColor,
3500
3510
  iconType: iconStyle,
3501
3511
  positionTop: positionHeadline()
3502
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3512
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3503
3513
  href: getStoryUrl(story, "/".concat(story.slug)),
3504
3514
  externalLink: isExternalStory(story),
3505
3515
  "aria-label": "headline"
3506
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3516
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3507
3517
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
3508
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3518
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3509
3519
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
3510
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3520
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3511
3521
  };
3512
3522
  Headline.propTypes = {
3513
3523
  /** The Story Object from the API response */
3514
- story: PropTypes.object.isRequired,
3524
+ story: PropTypes__default["default"].object.isRequired,
3515
3525
 
3516
3526
  /** Header tags ranging h1-h6, where h[headerLevel] */
3517
- headerLevel: PropTypes.string,
3518
- premiumStoryIconConfig: PropTypes.shape({
3519
- iconColor: PropTypes.string,
3520
- iconType: PropTypes.string,
3521
- enablePremiumStoryIcon: PropTypes.bool
3527
+ headerLevel: PropTypes__default["default"].string,
3528
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3529
+ iconColor: PropTypes__default["default"].string,
3530
+ iconType: PropTypes__default["default"].string,
3531
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3522
3532
  }),
3523
- isLink: PropTypes.bool
3533
+ isLink: PropTypes__default["default"].bool
3524
3534
  };
3525
3535
  Headline.defaultProps = {
3526
3536
  headerLevel: "6",
@@ -3562,22 +3572,22 @@ var SectionTag = function SectionTag(_ref) {
3562
3572
  }
3563
3573
 
3564
3574
  if (!isSection) return null;
3565
- return /*#__PURE__*/React.createElement(Link, {
3575
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3566
3576
  href: getUrl,
3567
3577
  className: "arrow-component arr--section-name",
3568
3578
  "aria-label": "section-name"
3569
- }, /*#__PURE__*/React.createElement("div", {
3579
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3570
3580
  "data-test-id": "sectionTag",
3571
3581
  style: {
3572
3582
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3573
3583
  },
3574
3584
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$b)
3575
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3585
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3576
3586
  className: "section-m_border-left__2oUyp",
3577
3587
  style: {
3578
3588
  color: sectionTagBorderColor
3579
3589
  }
3580
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3590
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3581
3591
  className: "section-m_border-bottom__3cRoD",
3582
3592
  style: {
3583
3593
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3586,13 +3596,13 @@ var SectionTag = function SectionTag(_ref) {
3586
3596
  };
3587
3597
  SectionTag.propTypes = {
3588
3598
  /** The Story Object from the API response */
3589
- story: PropTypes.object.isRequired,
3599
+ story: PropTypes__default["default"].object.isRequired,
3590
3600
 
3591
3601
  /** The style template for section tag */
3592
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3593
- borderColor: PropTypes.string,
3594
- solidBorderColor: PropTypes.string,
3595
- isLightTheme: PropTypes.bool
3602
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3603
+ borderColor: PropTypes__default["default"].string,
3604
+ solidBorderColor: PropTypes__default["default"].string,
3605
+ isLightTheme: PropTypes__default["default"].bool
3596
3606
  };
3597
3607
  SectionTag.defaultProps = {
3598
3608
  template: "",
@@ -3618,18 +3628,18 @@ var TimeStamp = function TimeStamp(_ref) {
3618
3628
  var time = story["last-published-at"] || story["first-published-at"];
3619
3629
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3620
3630
  var textColor = getTextColor(configState.theme);
3621
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3631
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3622
3632
  "data-test-id": "publish-time",
3623
3633
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
3624
- }, /*#__PURE__*/React.createElement("div", {
3634
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3625
3635
  className: "timestamp-m_time-wrapper__3O2lM"
3626
3636
  }, getTimeStamp(time, formatter, config))));
3627
3637
  };
3628
3638
  TimeStamp.propTypes = {
3629
3639
  /** The Story Object from the API response */
3630
- story: PropTypes.object,
3631
- isBottom: PropTypes.bool,
3632
- config: PropTypes.object
3640
+ story: PropTypes__default["default"].object,
3641
+ isBottom: PropTypes__default["default"].bool,
3642
+ config: PropTypes__default["default"].object
3633
3643
  };
3634
3644
 
3635
3645
  var _styleModuleImportMap$9 = {
@@ -3672,10 +3682,10 @@ var AuthorBase = function AuthorBase(_ref) {
3672
3682
  return null;
3673
3683
  }
3674
3684
 
3675
- return /*#__PURE__*/React.createElement("div", {
3685
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3676
3686
  "data-test-id": "author-image",
3677
3687
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
3678
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3688
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3679
3689
  slug: avatarS3Key,
3680
3690
  "aspect-ratio": [1, 1],
3681
3691
  defaultWidth: 400,
@@ -3683,14 +3693,14 @@ var AuthorBase = function AuthorBase(_ref) {
3683
3693
  auto: ["format", "compress"]
3684
3694
  },
3685
3695
  alt: authorName
3686
- }) : /*#__PURE__*/React.createElement("img", {
3696
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3687
3697
  src: avatarUrl
3688
3698
  })));
3689
3699
  };
3690
3700
 
3691
3701
  var isPrefix = function isPrefix(dir) {
3692
3702
  if (prefix) {
3693
- return /*#__PURE__*/React.createElement("div", {
3703
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3694
3704
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$9)
3695
3705
  }, prefix);
3696
3706
  }
@@ -3698,11 +3708,11 @@ var AuthorBase = function AuthorBase(_ref) {
3698
3708
  return !hideAuthorImage && authorImage(dir);
3699
3709
  };
3700
3710
 
3701
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3711
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3702
3712
  href: "".concat(mountAt, "/author/") + slug,
3703
3713
  "aria-label": "author-name",
3704
3714
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
3705
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3715
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3706
3716
  "data-test-id": "author-name",
3707
3717
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
3708
3718
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3714,18 +3724,18 @@ function mapStateToProps(state) {
3714
3724
  };
3715
3725
  }
3716
3726
 
3717
- var Author = connect(mapStateToProps)(AuthorBase);
3727
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3718
3728
  AuthorBase.propTypes = {
3719
3729
  /** The Story Object from the API response */
3720
- story: PropTypes.object.isRequired,
3730
+ story: PropTypes__default["default"].object.isRequired,
3721
3731
 
3722
3732
  /** Hide Author Avatar Image */
3723
- hideAuthorImage: PropTypes.bool,
3733
+ hideAuthorImage: PropTypes__default["default"].bool,
3724
3734
  // fix Author bottom of the storyCard
3725
- isBottom: PropTypes.bool,
3735
+ isBottom: PropTypes__default["default"].bool,
3726
3736
  // fix prefix before the author name
3727
- prefix: PropTypes.string,
3728
- config: PropTypes.object
3737
+ prefix: PropTypes__default["default"].string,
3738
+ config: PropTypes__default["default"].object
3729
3739
  };
3730
3740
  AuthorBase.defaultProps = {
3731
3741
  hideAuthorImage: false,
@@ -3746,14 +3756,14 @@ var Dot = function Dot(_ref) {
3746
3756
  height = _ref$height === void 0 ? "3px" : _ref$height,
3747
3757
  _ref$color = _ref.color,
3748
3758
  color = _ref$color === void 0 ? "light" : _ref$color;
3749
- return /*#__PURE__*/React.createElement("div", {
3759
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3750
3760
  className: _getClassName(color, _styleModuleImportMap$8)
3751
- }, /*#__PURE__*/React.createElement("svg", {
3761
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3752
3762
  xmlns: "http://www.w3.org/2000/svg",
3753
3763
  width: width,
3754
3764
  height: height,
3755
3765
  viewBox: "0 0 3 3"
3756
- }, /*#__PURE__*/React.createElement("circle", {
3766
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3757
3767
  cx: "87",
3758
3768
  cy: "9",
3759
3769
  r: "1",
@@ -3764,9 +3774,9 @@ var Dot = function Dot(_ref) {
3764
3774
  };
3765
3775
  Dot.propTypes = {
3766
3776
  /** height , width and color of the dot icon */
3767
- color: PropTypes.string,
3768
- width: PropTypes.string,
3769
- height: PropTypes.string
3777
+ color: PropTypes__default["default"].string,
3778
+ width: PropTypes__default["default"].string,
3779
+ height: PropTypes__default["default"].string
3770
3780
  };
3771
3781
 
3772
3782
  var _styleModuleImportMap$7 = {
@@ -3782,22 +3792,22 @@ var Divider = function Divider(_ref) {
3782
3792
  height = _ref$height === void 0 ? "10" : _ref$height,
3783
3793
  _ref$color = _ref.color,
3784
3794
  color = _ref$color === void 0 ? "light" : _ref$color;
3785
- return /*#__PURE__*/React.createElement("div", {
3795
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3786
3796
  className: _getClassName(color, _styleModuleImportMap$7)
3787
- }, /*#__PURE__*/React.createElement("svg", {
3797
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3788
3798
  xmlns: "http://www.w3.org/2000/svg",
3789
3799
  width: width,
3790
3800
  height: height
3791
- }, /*#__PURE__*/React.createElement("path", {
3801
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3792
3802
  fill: "inherit",
3793
3803
  d: "M0 0h1v10H0z"
3794
3804
  })));
3795
3805
  };
3796
3806
  Divider.propTypes = {
3797
3807
  /** height , width and color of the dot icon */
3798
- color: PropTypes.string,
3799
- width: PropTypes.string,
3800
- height: PropTypes.string
3808
+ color: PropTypes__default["default"].string,
3809
+ width: PropTypes__default["default"].string,
3810
+ height: PropTypes__default["default"].string
3801
3811
  };
3802
3812
 
3803
3813
  var _styleModuleImportMap$6 = {
@@ -3820,23 +3830,23 @@ var ReadTime = function ReadTime(_ref) {
3820
3830
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3821
3831
  if (!showReadTime || !readTime) return null;
3822
3832
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3823
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3833
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3824
3834
  "data-test-id": "read-time",
3825
3835
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
3826
- }, /*#__PURE__*/React.createElement("span", {
3836
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3827
3837
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3828
- }, /*#__PURE__*/React.createElement(Dot, {
3838
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3829
3839
  color: textColor
3830
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3840
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3831
3841
  };
3832
3842
  ReadTime.propTypes = {
3833
- story: PropTypes.shape({
3834
- "read-time": PropTypes.number
3843
+ story: PropTypes__default["default"].shape({
3844
+ "read-time": PropTypes__default["default"].number
3835
3845
  }),
3836
- opts: PropTypes.shape({
3837
- showReadTime: PropTypes.bool
3846
+ opts: PropTypes__default["default"].shape({
3847
+ showReadTime: PropTypes__default["default"].bool
3838
3848
  }),
3839
- isLightTheme: PropTypes.bool
3849
+ isLightTheme: PropTypes__default["default"].bool
3840
3850
  };
3841
3851
 
3842
3852
  var _styleModuleImportMap$5 = {
@@ -3867,33 +3877,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3867
3877
 
3868
3878
  var getSeparator = function getSeparator() {
3869
3879
  if (separator === "divider") {
3870
- return /*#__PURE__*/React.createElement(Divider, {
3880
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3871
3881
  color: textColor
3872
3882
  });
3873
3883
  }
3874
3884
 
3875
- return /*#__PURE__*/React.createElement(Dot, {
3885
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3876
3886
  color: textColor
3877
3887
  });
3878
3888
  };
3879
3889
 
3880
3890
  var getTimeStamp = function getTimeStamp() {
3881
3891
  if (!isTime) return null;
3882
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3892
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3883
3893
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$5)
3884
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3894
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3885
3895
  story: story,
3886
3896
  config: config
3887
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3897
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3888
3898
  story: story,
3889
3899
  opts: config,
3890
3900
  isLightTheme: isLightTheme
3891
3901
  }));
3892
3902
  };
3893
3903
 
3894
- return /*#__PURE__*/React.createElement("div", {
3904
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3895
3905
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
3896
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3906
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3897
3907
  story: story,
3898
3908
  isBottom: true,
3899
3909
  hideAuthorImage: hideAuthorImage,
@@ -3901,19 +3911,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3901
3911
  }), getTimeStamp()) : getTimeStamp());
3902
3912
  };
3903
3913
  AuthorWithTime.propTypes = {
3904
- story: PropTypes.object,
3914
+ story: PropTypes__default["default"].object,
3905
3915
 
3906
3916
  /** Style of separator between the Author & Timestamp */
3907
- separator: PropTypes.oneOf(["dot", "divider"]),
3917
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3908
3918
 
3909
3919
  /** hide the author image */
3910
- hideAuthorImage: PropTypes.bool,
3920
+ hideAuthorImage: PropTypes__default["default"].bool,
3911
3921
  // fix author and time at the end
3912
- isBottom: PropTypes.bool,
3922
+ isBottom: PropTypes__default["default"].bool,
3913
3923
  // fix prefix before the author name
3914
- prefix: PropTypes.string,
3915
- config: PropTypes.object,
3916
- isLightTheme: PropTypes.bool
3924
+ prefix: PropTypes__default["default"].string,
3925
+ config: PropTypes__default["default"].object,
3926
+ isLightTheme: PropTypes__default["default"].bool
3917
3927
  };
3918
3928
  AuthorWithTime.defaultProps = {
3919
3929
  separator: "dot",
@@ -3944,14 +3954,14 @@ var StorycardContent = function StorycardContent(_ref) {
3944
3954
  var SectionTagborderColor = rgbToHex(borderColor);
3945
3955
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
3946
3956
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
3947
- return /*#__PURE__*/React.createElement("div", {
3957
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3948
3958
  "data-test-id": "story-card-content",
3949
3959
  style: {
3950
3960
  backgroundColor: theme,
3951
3961
  color: textColor
3952
3962
  },
3953
3963
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$4)
3954
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
3964
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
3955
3965
  story: story,
3956
3966
  headerLevel: headerLevel,
3957
3967
  isHorizontalMobile: isHorizontalMobile,
@@ -3969,37 +3979,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
3969
3979
  var SectionTagborderColor = rgbToHex(borderColor);
3970
3980
  var _config$localizationC = config.localizationConfig,
3971
3981
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
3972
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
3982
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
3973
3983
  story: story,
3974
3984
  borderColor: SectionTagborderColor
3975
- }), /*#__PURE__*/React.createElement(Headline, {
3985
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
3976
3986
  story: story,
3977
3987
  headerLevel: headerLevel,
3978
3988
  premiumStoryIconConfig: config
3979
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
3989
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
3980
3990
  config: localizationConfig,
3981
3991
  story: story
3982
3992
  }));
3983
3993
  };
3984
3994
 
3985
3995
  DefaultStoryCardContent.propTypes = {
3986
- story: PropTypes.object.isRequired,
3987
- border: PropTypes.string,
3988
- theme: PropTypes.string,
3989
- isHorizontalMobile: PropTypes.bool,
3990
- headerLevel: PropTypes.string,
3991
- borderColor: PropTypes.string,
3992
- config: PropTypes.object
3996
+ story: PropTypes__default["default"].object.isRequired,
3997
+ border: PropTypes__default["default"].string,
3998
+ theme: PropTypes__default["default"].string,
3999
+ isHorizontalMobile: PropTypes__default["default"].bool,
4000
+ headerLevel: PropTypes__default["default"].string,
4001
+ borderColor: PropTypes__default["default"].string,
4002
+ config: PropTypes__default["default"].object
3993
4003
  };
3994
4004
  StorycardContent.propTypes = {
3995
- story: PropTypes.object.isRequired,
3996
- children: PropTypes.node,
3997
- theme: PropTypes.string,
3998
- border: PropTypes.string,
3999
- isHorizontalMobile: PropTypes.bool,
4000
- headerLevel: PropTypes.string,
4001
- borderColor: PropTypes.string,
4002
- config: PropTypes.object
4005
+ story: PropTypes__default["default"].object.isRequired,
4006
+ children: PropTypes__default["default"].node,
4007
+ theme: PropTypes__default["default"].string,
4008
+ border: PropTypes__default["default"].string,
4009
+ isHorizontalMobile: PropTypes__default["default"].bool,
4010
+ headerLevel: PropTypes__default["default"].string,
4011
+ borderColor: PropTypes__default["default"].string,
4012
+ config: PropTypes__default["default"].object
4003
4013
  };
4004
4014
 
4005
4015
  var _styleModuleImportMap$3 = {
@@ -4022,7 +4032,7 @@ var Subheadline = function Subheadline(_ref) {
4022
4032
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
4023
4033
  if (!subheadline) return null;
4024
4034
  var textColor = getTextColor(config.theme);
4025
- return /*#__PURE__*/React.createElement("div", {
4035
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4026
4036
  style: {
4027
4037
  WebkitLineClamp: lineClamp
4028
4038
  },
@@ -4032,15 +4042,15 @@ var Subheadline = function Subheadline(_ref) {
4032
4042
  };
4033
4043
  Subheadline.propTypes = {
4034
4044
  /** The Story Object from the API response */
4035
- story: PropTypes.object.isRequired,
4045
+ story: PropTypes__default["default"].object.isRequired,
4036
4046
  // Restricts the number of lines for subheadline.
4037
- lineClamp: PropTypes.number,
4047
+ lineClamp: PropTypes__default["default"].number,
4038
4048
 
4039
4049
  /** Number of characters to truncate the subheadline */
4040
- truncateChars: PropTypes.number,
4041
- clazzName: PropTypes.string,
4042
- forceShowAtom: PropTypes.bool,
4043
- showFullContent: PropTypes.bool
4050
+ truncateChars: PropTypes__default["default"].number,
4051
+ clazzName: PropTypes__default["default"].string,
4052
+ forceShowAtom: PropTypes__default["default"].bool,
4053
+ showFullContent: PropTypes__default["default"].bool
4044
4054
  };
4045
4055
  Subheadline.defaultProps = {
4046
4056
  forceShowAtom: false,
@@ -4089,7 +4099,7 @@ var StoryCard = function StoryCard(_ref) {
4089
4099
  prefix = _ref.prefix,
4090
4100
  config = _ref.config,
4091
4101
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4092
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
4102
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4093
4103
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4094
4104
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4095
4105
 
@@ -4099,7 +4109,7 @@ var StoryCard = function StoryCard(_ref) {
4099
4109
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4100
4110
  var textColor = getTextColor(theme);
4101
4111
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4102
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4112
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4103
4113
  story: story,
4104
4114
  aspectRatio: aspectRatio,
4105
4115
  border: border,
@@ -4113,7 +4123,7 @@ var StoryCard = function StoryCard(_ref) {
4113
4123
  config: config,
4114
4124
  isHorizontalWithImageLast: isHorizontalWithImageLast
4115
4125
  });
4116
- return /*#__PURE__*/React.createElement("div", {
4126
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4117
4127
  "data-test-id": "story-card",
4118
4128
  style: {
4119
4129
  backgroundColor: theme,
@@ -4142,91 +4152,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4142
4152
  var SectionTagborderColor = rgbToHex(borderColor);
4143
4153
  var _config$localizationC = config.localizationConfig,
4144
4154
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4145
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4155
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4146
4156
  config: config,
4147
4157
  story: story,
4148
4158
  isHorizontal: true,
4149
4159
  isHorizontalMobile: isHorizontalMobile,
4150
4160
  aspectRatio: aspectRatio
4151
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4161
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4152
4162
  config: config,
4153
4163
  story: story,
4154
4164
  isHorizontalWithImageLast: true,
4155
4165
  isHorizontalMobile: isHorizontalMobile,
4156
4166
  aspectRatio: aspectRatio
4157
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4167
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4158
4168
  story: story,
4159
4169
  config: config,
4160
4170
  isHorizontalMobile: isHorizontalMobile,
4161
4171
  aspectRatio: aspectRatio
4162
- }), /*#__PURE__*/React.createElement("div", {
4172
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4163
4173
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$2)
4164
- }, /*#__PURE__*/React.createElement(SectionTag, {
4174
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4165
4175
  story: story,
4166
4176
  borderColor: SectionTagborderColor
4167
- }), /*#__PURE__*/React.createElement(Headline, {
4177
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4168
4178
  story: story,
4169
4179
  headerLevel: headerLevel,
4170
4180
  premiumStoryIconConfig: config
4171
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4181
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4172
4182
  config: localizationConfig,
4173
4183
  story: story,
4174
4184
  isBottom: true,
4175
4185
  prefix: prefix,
4176
4186
  hideAuthorImage: hideAuthorImage
4177
- }), /*#__PURE__*/React.createElement(Subheadline, {
4187
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4178
4188
  story: story
4179
4189
  })));
4180
4190
  };
4181
4191
 
4182
4192
  DefaultStoryCard.propTypes = {
4183
- story: PropTypes.object.isRequired,
4184
- border: PropTypes.oneOfType([PropTypes.string]),
4185
- isBottom: PropTypes.bool,
4186
- isHorizontal: PropTypes.bool,
4187
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4188
- isHorizontalMobile: PropTypes.bool,
4189
- centerAlign: PropTypes.bool,
4190
- headerLevel: PropTypes.string,
4191
- borderColor: PropTypes.string,
4192
- hideAuthorImage: PropTypes.bool,
4193
- prefix: PropTypes.string,
4194
- config: PropTypes.object,
4195
- isHorizontalWithImageLast: PropTypes.bool
4193
+ story: PropTypes__default["default"].object.isRequired,
4194
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4195
+ isBottom: PropTypes__default["default"].bool,
4196
+ isHorizontal: PropTypes__default["default"].bool,
4197
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4198
+ isHorizontalMobile: PropTypes__default["default"].bool,
4199
+ centerAlign: PropTypes__default["default"].bool,
4200
+ headerLevel: PropTypes__default["default"].string,
4201
+ borderColor: PropTypes__default["default"].string,
4202
+ hideAuthorImage: PropTypes__default["default"].bool,
4203
+ prefix: PropTypes__default["default"].string,
4204
+ config: PropTypes__default["default"].object,
4205
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4196
4206
  };
4197
4207
  StoryCard.propTypes = {
4198
4208
  /** The Story Object from the API response */
4199
- story: PropTypes.object.isRequired,
4200
- children: PropTypes.node,
4209
+ story: PropTypes__default["default"].object.isRequired,
4210
+ children: PropTypes__default["default"].node,
4201
4211
 
4202
4212
  /** Flip the Story Card to Horizonal mode */
4203
- isHorizontal: PropTypes.bool,
4213
+ isHorizontal: PropTypes__default["default"].bool,
4204
4214
 
4205
4215
  /** Add border to the Story Card */
4206
- border: PropTypes.oneOfType([PropTypes.string]),
4216
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4207
4217
  // story card with background image
4208
- useImageAsBackground: PropTypes.bool,
4218
+ useImageAsBackground: PropTypes__default["default"].bool,
4209
4219
  // story card content overlap with image
4210
- bgImgContentOverlap: PropTypes.bool,
4220
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4211
4221
 
4212
4222
  /** add aspect ratio for hero image */
4213
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4223
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4214
4224
 
4215
4225
  /** add theme(dark /light/custom color) for storycard */
4216
- theme: PropTypes.string,
4226
+ theme: PropTypes__default["default"].string,
4217
4227
 
4218
4228
  /** flip the story card mobile design horizontal */
4219
- isHorizontalMobile: PropTypes.bool,
4229
+ isHorizontalMobile: PropTypes__default["default"].bool,
4220
4230
  // make content center align in desktop and left align in mobile
4221
- centerAlign: PropTypes.bool,
4222
- headerLevel: PropTypes.string,
4223
- borderColor: PropTypes.string,
4231
+ centerAlign: PropTypes__default["default"].bool,
4232
+ headerLevel: PropTypes__default["default"].string,
4233
+ borderColor: PropTypes__default["default"].string,
4224
4234
  // handle author image through storycard
4225
- hideAuthorImage: PropTypes.bool,
4235
+ hideAuthorImage: PropTypes__default["default"].bool,
4226
4236
  // handle author prefix through storycard
4227
- prefix: PropTypes.string,
4228
- config: PropTypes.object,
4229
- isHorizontalWithImageLast: PropTypes.bool
4237
+ prefix: PropTypes__default["default"].string,
4238
+ config: PropTypes__default["default"].object,
4239
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4230
4240
  };
4231
4241
  StoryCard.defaultProps = {
4232
4242
  isHorizontal: false,
@@ -4285,26 +4295,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4285
4295
  if (!showButton) return null;
4286
4296
  var textColor = getTextColor(theme);
4287
4297
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4288
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4298
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4289
4299
  onClick: onClick,
4290
4300
  "data-test-id": "load-more",
4291
4301
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4292
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4302
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4293
4303
  href: slug,
4294
4304
  navigateTo: navigate,
4295
4305
  "data-test-id": "load-more",
4296
4306
  "aria-label": "load-more"
4297
- }, /*#__PURE__*/React.createElement("div", {
4307
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4298
4308
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4299
4309
  }, buttonText));
4300
4310
  };
4301
4311
  LoadmoreButton.propTypes = {
4302
- collection: PropTypes.object,
4303
- template: PropTypes.string,
4304
- config: PropTypes.object,
4305
- onClick: PropTypes.func,
4306
- navigate: PropTypes.func,
4307
- qtConfig: PropTypes.object
4312
+ collection: PropTypes__default["default"].object,
4313
+ template: PropTypes__default["default"].string,
4314
+ config: PropTypes__default["default"].object,
4315
+ onClick: PropTypes__default["default"].func,
4316
+ navigate: PropTypes__default["default"].func,
4317
+ qtConfig: PropTypes__default["default"].object
4308
4318
  };
4309
4319
 
4310
4320
  var _styleModuleImportMap = {
@@ -4327,7 +4337,7 @@ var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
4327
4337
  var collection = _ref.collection,
4328
4338
  _ref$config = _ref.config,
4329
4339
  config = _ref$config === void 0 ? {} : _ref$config;
4330
- var items = collectionToStories(collection);
4340
+ var items = components.collectionToStories(collection);
4331
4341
 
4332
4342
  if (!items.length) {
4333
4343
  return null;
@@ -4357,48 +4367,48 @@ var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
4357
4367
  firstStory = _items[0],
4358
4368
  restStories = _items.slice(1);
4359
4369
 
4360
- var dispatch = useDispatch();
4361
- var qtConfig = useSelector(function (state) {
4370
+ var dispatch = reactRedux.useDispatch();
4371
+ var qtConfig = reactRedux.useSelector(function (state) {
4362
4372
  return get_1(state, ["qt", "config"], {});
4363
4373
  });
4364
4374
  var url = generateNavigateSlug(collection, qtConfig);
4365
4375
  var SectionTagBorderColor = rgbToHex(borderColor);
4366
- return /*#__PURE__*/React.createElement("div", {
4376
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4367
4377
  "data-test-id": "two-col-four-story-highlight",
4368
4378
  style: {
4369
4379
  backgroundColor: theme,
4370
4380
  color: textColor
4371
4381
  },
4372
4382
  className: "full-width-with-padding arrow-component arr--two-col-four-story-highlight " + _getClassName("componentWrapper ".concat(showBullet ? "bulletStyle" : ""), _styleModuleImportMap)
4373
- }, /*#__PURE__*/React.createElement("div", {
4383
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4374
4384
  className: "two-col-four-story-highlight-m_highlightWrapper__1FXMf"
4375
- }, /*#__PURE__*/React.createElement(CollectionName, {
4385
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4376
4386
  collection: collection,
4377
4387
  collectionNameTemplate: collectionNameTemplate,
4378
4388
  collectionNameBorderColor: collectionNameBorderColor
4379
- }), /*#__PURE__*/React.createElement("div", {
4389
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4380
4390
  className: "two-col-four-story-highlight-m_storyHighlightWrapper__1Jl9S"
4381
4391
  }, restStories.slice(0, 3).map(function (story, index) {
4382
- return /*#__PURE__*/React.createElement("div", {
4392
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4383
4393
  className: "two-col-four-story-highlight-m_bulletCardWrapper__2GVby",
4384
4394
  key: index
4385
- }, showBullet && /*#__PURE__*/React.createElement("span", {
4395
+ }, showBullet && /*#__PURE__*/React__default["default"].createElement("span", {
4386
4396
  "data-test-id": "bullet",
4387
4397
  style: {
4388
4398
  color: customBulletColor
4389
4399
  },
4390
4400
  className: _getClassName("bullet ".concat(bulletColorType === "default" ? textColor : ""), _styleModuleImportMap)
4391
- }), /*#__PURE__*/React.createElement(StoryCard, {
4401
+ }), /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4392
4402
  story: story,
4393
4403
  bgImgContentOverlap: true,
4394
4404
  config: config,
4395
4405
  border: showBorder ? "bottom" : "",
4396
4406
  theme: theme
4397
- }, /*#__PURE__*/React.createElement(StorycardContent, {
4407
+ }, /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4398
4408
  story: story,
4399
4409
  borderColor: SectionTagBorderColor
4400
4410
  })));
4401
- })), /*#__PURE__*/React.createElement(LoadmoreButton, {
4411
+ })), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4402
4412
  template: "NavigateToPage",
4403
4413
  collection: collection,
4404
4414
  config: config,
@@ -4406,51 +4416,52 @@ var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
4406
4416
  return navigateTo(dispatch, url);
4407
4417
  },
4408
4418
  qtConfig: qtConfig
4409
- })), /*#__PURE__*/React.createElement("div", {
4419
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
4410
4420
  className: "two-col-four-story-highlight-m_coverCardWrapper__1vnU8"
4411
- }, /*#__PURE__*/React.createElement(CollectionName, {
4421
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4412
4422
  collection: collection,
4413
4423
  collectionNameTemplate: collectionNameTemplate,
4414
4424
  collectionNameBorderColor: collectionNameBorderColor
4415
- }), /*#__PURE__*/React.createElement(StoryCard, {
4425
+ }), /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4416
4426
  story: firstStory,
4417
4427
  bgImgContentOverlap: true,
4418
4428
  config: config,
4419
4429
  border: showBorder ? "full" : "",
4420
4430
  theme: theme
4421
- }, /*#__PURE__*/React.createElement(HeroImage, {
4431
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4422
4432
  story: firstStory
4423
- }), /*#__PURE__*/React.createElement("div", {
4433
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4424
4434
  style: {
4425
4435
  backgroundColor: theme,
4426
4436
  color: textColor
4427
4437
  }
4428
- }, /*#__PURE__*/React.createElement(SectionTag, {
4438
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4429
4439
  story: firstStory,
4430
4440
  borderColor: SectionTagBorderColor
4431
- }), /*#__PURE__*/React.createElement(Headline, {
4441
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4432
4442
  story: firstStory,
4433
4443
  headerLevel: 4,
4434
4444
  premiumStoryIconConfig: config
4435
- }), /*#__PURE__*/React.createElement(Subheadline, {
4445
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4436
4446
  story: firstStory
4437
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4447
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4438
4448
  config: localizationConfig,
4439
4449
  story: firstStory
4440
4450
  })))));
4441
4451
  };
4442
4452
  TwoColFourStoryHighlightBase.propTypes = {
4443
- collection: PropTypes.object.isRequired,
4444
- config: PropTypes.shape({
4445
- theme: PropTypes.string,
4446
- showBorder: PropTypes.bool,
4447
- collectionNameTemplate: PropTypes.string,
4448
- collectionNameBorderColor: PropTypes.string,
4449
- borderColor: PropTypes.string,
4450
- showBullet: PropTypes.bool,
4451
- localizationConfig: PropTypes.object
4453
+ collection: PropTypes__default["default"].object.isRequired,
4454
+ config: PropTypes__default["default"].shape({
4455
+ theme: PropTypes__default["default"].string,
4456
+ showBorder: PropTypes__default["default"].bool,
4457
+ collectionNameTemplate: PropTypes__default["default"].string,
4458
+ collectionNameBorderColor: PropTypes__default["default"].string,
4459
+ borderColor: PropTypes__default["default"].string,
4460
+ showBullet: PropTypes__default["default"].bool,
4461
+ localizationConfig: PropTypes__default["default"].object
4452
4462
  })
4453
4463
  };
4454
4464
  var TwoColFourStoryHighlight = StateProvider(TwoColFourStoryHighlightBase);
4455
4465
 
4456
- export { TwoColFourStoryHighlight, TwoColFourStoryHighlightBase };
4466
+ exports.TwoColFourStoryHighlight = TwoColFourStoryHighlight;
4467
+ exports.TwoColFourStoryHighlightBase = TwoColFourStoryHighlightBase;