@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, collectionToStories } from '@quintype/components';
4
- import { useSelector, connect } 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
  function _arrayWithHoles(arr) {
9
19
  if (Array.isArray(arr)) return arr;
@@ -2727,15 +2737,15 @@ var isEmpty = function isEmpty(value) {
2727
2737
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2728
2738
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2729
2739
  };
2730
- PropTypes.shape({
2731
- "sketches-host": PropTypes.string,
2732
- "cdn-name": PropTypes.string,
2733
- "cdn-image": PropTypes.string
2740
+ PropTypes__default["default"].shape({
2741
+ "sketches-host": PropTypes__default["default"].string,
2742
+ "cdn-name": PropTypes__default["default"].string,
2743
+ "cdn-image": PropTypes__default["default"].string
2734
2744
  });
2735
- PropTypes.shape({
2736
- headline: PropTypes.string,
2737
- "last-published-at": PropTypes.number,
2738
- subheadline: PropTypes.string
2745
+ PropTypes__default["default"].shape({
2746
+ headline: PropTypes__default["default"].string,
2747
+ "last-published-at": PropTypes__default["default"].number,
2748
+ subheadline: PropTypes__default["default"].string
2739
2749
  });
2740
2750
  var getStoryUrl = function getStoryUrl(story) {
2741
2751
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2747,17 +2757,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2747
2757
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2748
2758
 
2749
2759
  if (timezone && template === "story") {
2750
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2751
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2760
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2761
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2752
2762
  timeZone: timezone
2753
2763
  });
2754
2764
  var timeStamp = timestampToFormat("", "", "", date, config);
2755
- return /*#__PURE__*/React.createElement("time", {
2765
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2756
2766
  dateTime: formatZonedTime
2757
2767
  }, timeStamp);
2758
2768
  }
2759
2769
 
2760
- return /*#__PURE__*/React.createElement(Timeago, {
2770
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2761
2771
  date: date,
2762
2772
  formatter: function formatter(value, unit, suffix, date) {
2763
2773
  return _formatter(value, unit, suffix, date, config);
@@ -2765,21 +2775,21 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2765
2775
  });
2766
2776
  };
2767
2777
 
2768
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
2778
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
2769
2779
 
2770
2780
  var StateProvider = function StateProvider(RowComponent) {
2771
2781
  return function (props) {
2772
2782
  return (
2773
2783
  /*#__PURE__*/
2774
2784
  // eslint-disable-next-line react/prop-types
2775
- React.createElement(StateContext.Provider, {
2785
+ React__default["default"].createElement(StateContext.Provider, {
2776
2786
  value: props.config
2777
- }, /*#__PURE__*/React.createElement(RowComponent, props))
2787
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
2778
2788
  );
2779
2789
  };
2780
2790
  };
2781
2791
  var useStateValue = function useStateValue() {
2782
- return useContext(StateContext);
2792
+ return React.useContext(StateContext);
2783
2793
  };
2784
2794
 
2785
2795
  var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
@@ -2789,27 +2799,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2789
2799
  height = _ref$height === void 0 ? 30 : _ref$height,
2790
2800
  _ref$iconColor = _ref.iconColor,
2791
2801
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
2792
- return /*#__PURE__*/React.createElement("svg", {
2802
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2793
2803
  width: width,
2794
2804
  height: height,
2795
2805
  viewBox: "0 0 102 76",
2796
2806
  version: "1.1"
2797
- }, /*#__PURE__*/React.createElement("g", {
2807
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2798
2808
  id: "demo-home-copy",
2799
2809
  stroke: "none",
2800
2810
  strokeWidth: "1",
2801
2811
  fill: "none",
2802
2812
  fillRule: "evenodd",
2803
2813
  transform: "translate(-377.000000, -314.000000)"
2804
- }, /*#__PURE__*/React.createElement("g", {
2814
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2805
2815
  id: "Group-13",
2806
2816
  transform: "translate(377.000000, 314.000000)"
2807
- }, /*#__PURE__*/React.createElement("path", {
2817
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2808
2818
  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",
2809
2819
  id: "Combined-Shape",
2810
2820
  fill: iconColor,
2811
2821
  fillRule: "nonzero"
2812
- }), /*#__PURE__*/React.createElement("rect", {
2822
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
2813
2823
  id: "Rectangle-19",
2814
2824
  stroke: iconColor,
2815
2825
  strokeWidth: "3",
@@ -2821,24 +2831,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2821
2831
  }))));
2822
2832
  };
2823
2833
  ImageFallbackIcon.propTypes = {
2824
- width: PropTypes.object,
2825
- height: PropTypes.object,
2826
- iconColor: PropTypes.object
2834
+ width: PropTypes__default["default"].object,
2835
+ height: PropTypes__default["default"].object,
2836
+ iconColor: PropTypes__default["default"].object
2827
2837
  };
2828
2838
 
2829
2839
  var imageFallback = function imageFallback() {
2830
- return /*#__PURE__*/React.createElement("div", {
2840
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2831
2841
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
2832
- }, /*#__PURE__*/React.createElement("figure", {
2842
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
2833
2843
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
2834
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
2844
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
2835
2845
  };
2836
2846
 
2837
2847
  var FallbackImage = function FallbackImage(_ref) {
2838
2848
  var slug = _ref.slug;
2839
2849
 
2840
2850
  if (slug) {
2841
- return /*#__PURE__*/React.createElement(Link, {
2851
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2842
2852
  href: slug,
2843
2853
  "aria-label": "image-fallback"
2844
2854
  }, imageFallback());
@@ -2847,23 +2857,23 @@ var FallbackImage = function FallbackImage(_ref) {
2847
2857
  }
2848
2858
  };
2849
2859
  FallbackImage.propTypes = {
2850
- slug: PropTypes.string
2860
+ slug: PropTypes__default["default"].string
2851
2861
  };
2852
2862
 
2853
2863
  var HyperLinkIcon = function HyperLinkIcon() {
2854
- return /*#__PURE__*/React.createElement("svg", {
2864
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2855
2865
  xmlns: "http://www.w3.org/2000/svg",
2856
2866
  width: "36",
2857
2867
  height: "28"
2858
- }, /*#__PURE__*/React.createElement("g", {
2868
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2859
2869
  fill: "none",
2860
2870
  fillRule: "evenodd"
2861
- }, /*#__PURE__*/React.createElement("rect", {
2871
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
2862
2872
  width: "36",
2863
2873
  height: "28",
2864
2874
  fill: "#3D6FCF",
2865
2875
  rx: "4"
2866
- }), /*#__PURE__*/React.createElement("path", {
2876
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2867
2877
  stroke: "#FFF",
2868
2878
  strokeLinecap: "round",
2869
2879
  strokeLinejoin: "round",
@@ -2876,16 +2886,16 @@ var HyperLink = function HyperLink(_ref) {
2876
2886
  var _ref$hyperLink = _ref.hyperLink,
2877
2887
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
2878
2888
  if (!hyperLink) return null;
2879
- return /*#__PURE__*/React.createElement(Link, {
2889
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2880
2890
  href: hyperLink,
2881
2891
  "aria-label": "hyperlink-button",
2882
2892
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
2883
2893
  target: "_blank",
2884
2894
  rel: "noopener noreferrer"
2885
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
2895
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
2886
2896
  };
2887
2897
  HyperLink.propTypes = {
2888
- hyperLink: PropTypes.string
2898
+ hyperLink: PropTypes__default["default"].string
2889
2899
  };
2890
2900
 
2891
2901
  var _styleModuleImportMap$b = {
@@ -2921,7 +2931,7 @@ var HeroImage = function HeroImage(_ref) {
2921
2931
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
2922
2932
  return null;
2923
2933
  } : _config$StoryTemplate;
2924
- var showImagePlaceholder = useSelector(function (state) {
2934
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
2925
2935
  return get_1(state, ["qt", "config", "showPlaceholder"]);
2926
2936
  });
2927
2937
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -2957,37 +2967,37 @@ var HeroImage = function HeroImage(_ref) {
2957
2967
  var fallbackImage = function fallbackImage() {
2958
2968
  if (!slug) {
2959
2969
  if (fallbackImageUrl && !isStoryPageImage) {
2960
- return /*#__PURE__*/React.createElement("figure", {
2970
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
2961
2971
  style: {
2962
2972
  paddingTop: imagePadding + "%"
2963
2973
  },
2964
2974
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
2965
- }, /*#__PURE__*/React.createElement("img", {
2975
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
2966
2976
  className: "qt-image",
2967
2977
  "data-src": "".concat(fallbackImageUrl),
2968
2978
  alt: "image-fallback"
2969
2979
  }));
2970
2980
  }
2971
2981
 
2972
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
2982
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
2973
2983
  "data-test-id": "arr--fallback-hero-image",
2974
2984
  style: {
2975
2985
  paddingTop: imagePadding + "%"
2976
2986
  },
2977
2987
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
2978
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
2988
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
2979
2989
  storyTemplate: story["story-template"]
2980
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
2990
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
2981
2991
  }
2982
2992
 
2983
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
2993
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
2984
2994
  style: {
2985
2995
  paddingTop: imagePadding + "%"
2986
2996
  },
2987
2997
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
2988
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
2998
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
2989
2999
  storyTemplate: story["story-template"]
2990
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3000
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
2991
3001
  story: story,
2992
3002
  aspectRatio: imageAspectRatio,
2993
3003
  defaultWidth: defaultWidth,
@@ -2996,15 +3006,15 @@ var HeroImage = function HeroImage(_ref) {
2996
3006
  auto: ["format", "compress"],
2997
3007
  fit: "max"
2998
3008
  }
2999
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3009
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3000
3010
  hyperLink: hyperLink
3001
3011
  }));
3002
3012
  };
3003
3013
 
3004
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3014
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3005
3015
  "data-test-id": "arr--hero-image",
3006
3016
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$b)
3007
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3017
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3008
3018
  "data-test-id": "arr--hero-image",
3009
3019
  href: getStoryUrl(story, "/".concat(story.slug)),
3010
3020
  externalLink: isExternalStory(story),
@@ -3014,30 +3024,30 @@ var HeroImage = function HeroImage(_ref) {
3014
3024
  };
3015
3025
  HeroImage.propTypes = {
3016
3026
  /** The Story Object from the API response */
3017
- story: PropTypes.object.isRequired,
3027
+ story: PropTypes__default["default"].object.isRequired,
3018
3028
 
3019
3029
  /** Removes the Hero Image padding for the image to bleed over the margin */
3020
- FullBleed: PropTypes.bool,
3030
+ FullBleed: PropTypes__default["default"].bool,
3021
3031
 
3022
3032
  /** The default width for the image, in case the browser does not support srcset */
3023
- defaultWidth: PropTypes.number,
3033
+ defaultWidth: PropTypes__default["default"].number,
3024
3034
 
3025
3035
  /** The list of available widths */
3026
- widths: PropTypes.array,
3036
+ widths: PropTypes__default["default"].array,
3027
3037
  // fatch the correct hero image
3028
- aspectRatio: PropTypes.array,
3038
+ aspectRatio: PropTypes__default["default"].array,
3029
3039
  // Hints for the browser to choose the best size
3030
3040
 
3031
3041
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3032
- isHorizontal: PropTypes.bool,
3042
+ isHorizontal: PropTypes__default["default"].bool,
3033
3043
 
3034
3044
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3035
- isHorizontalMobile: PropTypes.bool,
3045
+ isHorizontalMobile: PropTypes__default["default"].bool,
3036
3046
  // this prop is responsive for rendering fallback image on story page
3037
- defaultFallback: PropTypes.bool,
3038
- isHorizontalWithImageLast: PropTypes.bool,
3039
- isStoryPageImage: PropTypes.bool,
3040
- config: PropTypes.object
3047
+ defaultFallback: PropTypes__default["default"].bool,
3048
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3049
+ isStoryPageImage: PropTypes__default["default"].bool,
3050
+ config: PropTypes__default["default"].object
3041
3051
  };
3042
3052
  HeroImage.defaultProps = {
3043
3053
  FullBleed: true,
@@ -3087,22 +3097,22 @@ var SectionTag = function SectionTag(_ref) {
3087
3097
  }
3088
3098
 
3089
3099
  if (!isSection) return null;
3090
- return /*#__PURE__*/React.createElement(Link, {
3100
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3091
3101
  href: getUrl,
3092
3102
  className: "arrow-component arr--section-name",
3093
3103
  "aria-label": "section-name"
3094
- }, /*#__PURE__*/React.createElement("div", {
3104
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3095
3105
  "data-test-id": "sectionTag",
3096
3106
  style: {
3097
3107
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3098
3108
  },
3099
3109
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$a)
3100
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3110
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3101
3111
  className: "section-m_border-left__2oUyp",
3102
3112
  style: {
3103
3113
  color: sectionTagBorderColor
3104
3114
  }
3105
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3115
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3106
3116
  className: "section-m_border-bottom__3cRoD",
3107
3117
  style: {
3108
3118
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3111,13 +3121,13 @@ var SectionTag = function SectionTag(_ref) {
3111
3121
  };
3112
3122
  SectionTag.propTypes = {
3113
3123
  /** The Story Object from the API response */
3114
- story: PropTypes.object.isRequired,
3124
+ story: PropTypes__default["default"].object.isRequired,
3115
3125
 
3116
3126
  /** The style template for section tag */
3117
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3118
- borderColor: PropTypes.string,
3119
- solidBorderColor: PropTypes.string,
3120
- isLightTheme: PropTypes.bool
3127
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3128
+ borderColor: PropTypes__default["default"].string,
3129
+ solidBorderColor: PropTypes__default["default"].string,
3130
+ isLightTheme: PropTypes__default["default"].bool
3121
3131
  };
3122
3132
  SectionTag.defaultProps = {
3123
3133
  template: "",
@@ -3143,18 +3153,18 @@ var TimeStamp = function TimeStamp(_ref) {
3143
3153
  var time = story["last-published-at"] || story["first-published-at"];
3144
3154
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3145
3155
  var textColor = getTextColor(configState.theme);
3146
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3156
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3147
3157
  "data-test-id": "publish-time",
3148
3158
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$9)
3149
- }, /*#__PURE__*/React.createElement("div", {
3159
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3150
3160
  className: "timestamp-m_time-wrapper__3O2lM"
3151
3161
  }, getTimeStamp(time, formatter, config))));
3152
3162
  };
3153
3163
  TimeStamp.propTypes = {
3154
3164
  /** The Story Object from the API response */
3155
- story: PropTypes.object,
3156
- isBottom: PropTypes.bool,
3157
- config: PropTypes.object
3165
+ story: PropTypes__default["default"].object,
3166
+ isBottom: PropTypes__default["default"].bool,
3167
+ config: PropTypes__default["default"].object
3158
3168
  };
3159
3169
 
3160
3170
  var _styleModuleImportMap$8 = {
@@ -3197,10 +3207,10 @@ var AuthorBase = function AuthorBase(_ref) {
3197
3207
  return null;
3198
3208
  }
3199
3209
 
3200
- return /*#__PURE__*/React.createElement("div", {
3210
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3201
3211
  "data-test-id": "author-image",
3202
3212
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$8)
3203
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3213
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3204
3214
  slug: avatarS3Key,
3205
3215
  "aspect-ratio": [1, 1],
3206
3216
  defaultWidth: 400,
@@ -3208,14 +3218,14 @@ var AuthorBase = function AuthorBase(_ref) {
3208
3218
  auto: ["format", "compress"]
3209
3219
  },
3210
3220
  alt: authorName
3211
- }) : /*#__PURE__*/React.createElement("img", {
3221
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3212
3222
  src: avatarUrl
3213
3223
  })));
3214
3224
  };
3215
3225
 
3216
3226
  var isPrefix = function isPrefix(dir) {
3217
3227
  if (prefix) {
3218
- return /*#__PURE__*/React.createElement("div", {
3228
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3219
3229
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$8)
3220
3230
  }, prefix);
3221
3231
  }
@@ -3223,11 +3233,11 @@ var AuthorBase = function AuthorBase(_ref) {
3223
3233
  return !hideAuthorImage && authorImage(dir);
3224
3234
  };
3225
3235
 
3226
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3236
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3227
3237
  href: "".concat(mountAt, "/author/") + slug,
3228
3238
  "aria-label": "author-name",
3229
3239
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$8)
3230
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3240
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3231
3241
  "data-test-id": "author-name",
3232
3242
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$8)
3233
3243
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3239,18 +3249,18 @@ function mapStateToProps$1(state) {
3239
3249
  };
3240
3250
  }
3241
3251
 
3242
- var Author = connect(mapStateToProps$1)(AuthorBase);
3252
+ var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
3243
3253
  AuthorBase.propTypes = {
3244
3254
  /** The Story Object from the API response */
3245
- story: PropTypes.object.isRequired,
3255
+ story: PropTypes__default["default"].object.isRequired,
3246
3256
 
3247
3257
  /** Hide Author Avatar Image */
3248
- hideAuthorImage: PropTypes.bool,
3258
+ hideAuthorImage: PropTypes__default["default"].bool,
3249
3259
  // fix Author bottom of the storyCard
3250
- isBottom: PropTypes.bool,
3260
+ isBottom: PropTypes__default["default"].bool,
3251
3261
  // fix prefix before the author name
3252
- prefix: PropTypes.string,
3253
- config: PropTypes.object
3262
+ prefix: PropTypes__default["default"].string,
3263
+ config: PropTypes__default["default"].object
3254
3264
  };
3255
3265
  AuthorBase.defaultProps = {
3256
3266
  hideAuthorImage: false,
@@ -3271,14 +3281,14 @@ var Dot = function Dot(_ref) {
3271
3281
  height = _ref$height === void 0 ? "3px" : _ref$height,
3272
3282
  _ref$color = _ref.color,
3273
3283
  color = _ref$color === void 0 ? "light" : _ref$color;
3274
- return /*#__PURE__*/React.createElement("div", {
3284
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3275
3285
  className: _getClassName(color, _styleModuleImportMap$7)
3276
- }, /*#__PURE__*/React.createElement("svg", {
3286
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3277
3287
  xmlns: "http://www.w3.org/2000/svg",
3278
3288
  width: width,
3279
3289
  height: height,
3280
3290
  viewBox: "0 0 3 3"
3281
- }, /*#__PURE__*/React.createElement("circle", {
3291
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3282
3292
  cx: "87",
3283
3293
  cy: "9",
3284
3294
  r: "1",
@@ -3289,9 +3299,9 @@ var Dot = function Dot(_ref) {
3289
3299
  };
3290
3300
  Dot.propTypes = {
3291
3301
  /** height , width and color of the dot icon */
3292
- color: PropTypes.string,
3293
- width: PropTypes.string,
3294
- height: PropTypes.string
3302
+ color: PropTypes__default["default"].string,
3303
+ width: PropTypes__default["default"].string,
3304
+ height: PropTypes__default["default"].string
3295
3305
  };
3296
3306
 
3297
3307
  var _styleModuleImportMap$6 = {
@@ -3307,22 +3317,22 @@ var Divider = function Divider(_ref) {
3307
3317
  height = _ref$height === void 0 ? "10" : _ref$height,
3308
3318
  _ref$color = _ref.color,
3309
3319
  color = _ref$color === void 0 ? "light" : _ref$color;
3310
- return /*#__PURE__*/React.createElement("div", {
3320
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3311
3321
  className: _getClassName(color, _styleModuleImportMap$6)
3312
- }, /*#__PURE__*/React.createElement("svg", {
3322
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3313
3323
  xmlns: "http://www.w3.org/2000/svg",
3314
3324
  width: width,
3315
3325
  height: height
3316
- }, /*#__PURE__*/React.createElement("path", {
3326
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3317
3327
  fill: "inherit",
3318
3328
  d: "M0 0h1v10H0z"
3319
3329
  })));
3320
3330
  };
3321
3331
  Divider.propTypes = {
3322
3332
  /** height , width and color of the dot icon */
3323
- color: PropTypes.string,
3324
- width: PropTypes.string,
3325
- height: PropTypes.string
3333
+ color: PropTypes__default["default"].string,
3334
+ width: PropTypes__default["default"].string,
3335
+ height: PropTypes__default["default"].string
3326
3336
  };
3327
3337
 
3328
3338
  var _styleModuleImportMap$5 = {
@@ -3345,23 +3355,23 @@ var ReadTime = function ReadTime(_ref) {
3345
3355
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3346
3356
  if (!showReadTime || !readTime) return null;
3347
3357
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3348
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3358
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3349
3359
  "data-test-id": "read-time",
3350
3360
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$5)
3351
- }, /*#__PURE__*/React.createElement("span", {
3361
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3352
3362
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3353
- }, /*#__PURE__*/React.createElement(Dot, {
3363
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3354
3364
  color: textColor
3355
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3365
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3356
3366
  };
3357
3367
  ReadTime.propTypes = {
3358
- story: PropTypes.shape({
3359
- "read-time": PropTypes.number
3368
+ story: PropTypes__default["default"].shape({
3369
+ "read-time": PropTypes__default["default"].number
3360
3370
  }),
3361
- opts: PropTypes.shape({
3362
- showReadTime: PropTypes.bool
3371
+ opts: PropTypes__default["default"].shape({
3372
+ showReadTime: PropTypes__default["default"].bool
3363
3373
  }),
3364
- isLightTheme: PropTypes.bool
3374
+ isLightTheme: PropTypes__default["default"].bool
3365
3375
  };
3366
3376
 
3367
3377
  var _styleModuleImportMap$4 = {
@@ -3392,33 +3402,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3392
3402
 
3393
3403
  var getSeparator = function getSeparator() {
3394
3404
  if (separator === "divider") {
3395
- return /*#__PURE__*/React.createElement(Divider, {
3405
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3396
3406
  color: textColor
3397
3407
  });
3398
3408
  }
3399
3409
 
3400
- return /*#__PURE__*/React.createElement(Dot, {
3410
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3401
3411
  color: textColor
3402
3412
  });
3403
3413
  };
3404
3414
 
3405
3415
  var getTimeStamp = function getTimeStamp() {
3406
3416
  if (!isTime) return null;
3407
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3417
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3408
3418
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$4)
3409
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3419
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3410
3420
  story: story,
3411
3421
  config: config
3412
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3422
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3413
3423
  story: story,
3414
3424
  opts: config,
3415
3425
  isLightTheme: isLightTheme
3416
3426
  }));
3417
3427
  };
3418
3428
 
3419
- return /*#__PURE__*/React.createElement("div", {
3429
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3420
3430
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$4)
3421
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3431
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3422
3432
  story: story,
3423
3433
  isBottom: true,
3424
3434
  hideAuthorImage: hideAuthorImage,
@@ -3426,19 +3436,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3426
3436
  }), getTimeStamp()) : getTimeStamp());
3427
3437
  };
3428
3438
  AuthorWithTime.propTypes = {
3429
- story: PropTypes.object,
3439
+ story: PropTypes__default["default"].object,
3430
3440
 
3431
3441
  /** Style of separator between the Author & Timestamp */
3432
- separator: PropTypes.oneOf(["dot", "divider"]),
3442
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3433
3443
 
3434
3444
  /** hide the author image */
3435
- hideAuthorImage: PropTypes.bool,
3445
+ hideAuthorImage: PropTypes__default["default"].bool,
3436
3446
  // fix author and time at the end
3437
- isBottom: PropTypes.bool,
3447
+ isBottom: PropTypes__default["default"].bool,
3438
3448
  // fix prefix before the author name
3439
- prefix: PropTypes.string,
3440
- config: PropTypes.object,
3441
- isLightTheme: PropTypes.bool
3449
+ prefix: PropTypes__default["default"].string,
3450
+ config: PropTypes__default["default"].object,
3451
+ isLightTheme: PropTypes__default["default"].bool
3442
3452
  };
3443
3453
  AuthorWithTime.defaultProps = {
3444
3454
  separator: "dot",
@@ -3484,7 +3494,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3484
3494
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
3485
3495
 
3486
3496
  var borderBottomStyle = function borderBottomStyle() {
3487
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
3497
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
3488
3498
  className: "collection-name-m_border-bottom__1MnlV",
3489
3499
  style: {
3490
3500
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -3544,40 +3554,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3544
3554
  }
3545
3555
  };
3546
3556
 
3547
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
3557
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
3548
3558
  style: {
3549
3559
  borderBottom: borderBottomFullStyle
3550
3560
  },
3551
3561
  "data-test-id": "collection-name",
3552
3562
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$3)
3553
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
3563
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3554
3564
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
3555
3565
  style: {
3556
3566
  color: CollectionNameBorderColor,
3557
3567
  fontSize: getBorderHeight()
3558
3568
  }
3559
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
3569
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3560
3570
  href: slug,
3561
3571
  "aria-label": "collection-name"
3562
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
3572
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
3563
3573
  };
3564
3574
  CollectionNameBase.propTypes = {
3565
3575
  /** Collection name border color */
3566
- collectionNameBorderColor: PropTypes$1.string,
3576
+ collectionNameBorderColor: PropTypes.PropTypes.string,
3567
3577
 
3568
3578
  /** The Collection Object from the API response */
3569
- collection: PropTypes$1.object,
3579
+ collection: PropTypes.PropTypes.object,
3570
3580
 
3571
3581
  /** The publisher config from the API response */
3572
- config: PropTypes$1.object,
3582
+ config: PropTypes.PropTypes.object,
3573
3583
 
3574
3584
  /** The style template for the component */
3575
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
3585
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
3576
3586
 
3577
3587
  /** Header tags ranging h1-h6, where h[headerLevel] */
3578
- headerLevel: PropTypes$1.string,
3579
- customCollectionName: PropTypes$1.string,
3580
- navigate: PropTypes$1.bool
3588
+ headerLevel: PropTypes.PropTypes.string,
3589
+ customCollectionName: PropTypes.PropTypes.string,
3590
+ navigate: PropTypes.PropTypes.bool
3581
3591
  };
3582
3592
  CollectionNameBase.defaultProps = {
3583
3593
  collectionNameTemplate: "",
@@ -3590,7 +3600,7 @@ function mapStateToProps(state) {
3590
3600
  };
3591
3601
  }
3592
3602
 
3593
- var CollectionName = connect(mapStateToProps)(CollectionNameBase);
3603
+ var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
3594
3604
 
3595
3605
  var CrownIcon = function CrownIcon(_ref) {
3596
3606
  var height = _ref.height,
@@ -3598,7 +3608,7 @@ var CrownIcon = function CrownIcon(_ref) {
3598
3608
  _ref$color = _ref.color,
3599
3609
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3600
3610
  positionTop = _ref.positionTop;
3601
- return /*#__PURE__*/React.createElement("svg", {
3611
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3602
3612
  xmlns: "http://www.w3.org/2000/svg",
3603
3613
  width: width,
3604
3614
  height: height,
@@ -3607,28 +3617,28 @@ var CrownIcon = function CrownIcon(_ref) {
3607
3617
  position: "relative",
3608
3618
  top: positionTop
3609
3619
  }
3610
- }, /*#__PURE__*/React.createElement("g", {
3620
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3611
3621
  fill: "none",
3612
3622
  fillRule: "evenodd",
3613
3623
  stroke: "none",
3614
3624
  strokeWidth: "1"
3615
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3625
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3616
3626
  transform: "translate(8 8)"
3617
- }, /*#__PURE__*/React.createElement("path", {
3627
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3618
3628
  d: "M0 0H24V24H0z"
3619
- }), /*#__PURE__*/React.createElement("g", {
3629
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3620
3630
  fill: color,
3621
3631
  fillRule: "nonzero",
3622
3632
  transform: "translate(0 2)"
3623
- }, /*#__PURE__*/React.createElement("path", {
3633
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3624
3634
  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"
3625
3635
  }))))));
3626
3636
  };
3627
3637
  CrownIcon.propTypes = {
3628
- height: PropTypes.string,
3629
- width: PropTypes.string,
3630
- color: PropTypes.string,
3631
- positionTop: PropTypes.string
3638
+ height: PropTypes__default["default"].string,
3639
+ width: PropTypes__default["default"].string,
3640
+ color: PropTypes__default["default"].string,
3641
+ positionTop: PropTypes__default["default"].string
3632
3642
  };
3633
3643
 
3634
3644
  var KeyIcon = function KeyIcon(_ref) {
@@ -3637,7 +3647,7 @@ var KeyIcon = function KeyIcon(_ref) {
3637
3647
  _ref$color = _ref.color,
3638
3648
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3639
3649
  positionTop = _ref.positionTop;
3640
- return /*#__PURE__*/React.createElement("svg", {
3650
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3641
3651
  xmlns: "http://www.w3.org/2000/svg",
3642
3652
  width: width,
3643
3653
  height: height,
@@ -3646,16 +3656,16 @@ var KeyIcon = function KeyIcon(_ref) {
3646
3656
  position: "relative",
3647
3657
  top: positionTop
3648
3658
  }
3649
- }, /*#__PURE__*/React.createElement("g", {
3659
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3650
3660
  fill: "none",
3651
3661
  fillRule: "evenodd",
3652
3662
  stroke: "none",
3653
3663
  strokeWidth: "1"
3654
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3664
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3655
3665
  transform: "translate(8 8)"
3656
- }, /*#__PURE__*/React.createElement("path", {
3666
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3657
3667
  d: "M0 0H24V24H0z"
3658
- }), /*#__PURE__*/React.createElement("path", {
3668
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3659
3669
  fill: color,
3660
3670
  fillRule: "nonzero",
3661
3671
  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",
@@ -3663,10 +3673,10 @@ var KeyIcon = function KeyIcon(_ref) {
3663
3673
  })))));
3664
3674
  };
3665
3675
  KeyIcon.propTypes = {
3666
- height: PropTypes.string,
3667
- width: PropTypes.string,
3668
- color: PropTypes.string,
3669
- positionTop: PropTypes.string
3676
+ height: PropTypes__default["default"].string,
3677
+ width: PropTypes__default["default"].string,
3678
+ color: PropTypes__default["default"].string,
3679
+ positionTop: PropTypes__default["default"].string
3670
3680
  };
3671
3681
 
3672
3682
  var LockIcon = function LockIcon(_ref) {
@@ -3675,7 +3685,7 @@ var LockIcon = function LockIcon(_ref) {
3675
3685
  _ref$color = _ref.color,
3676
3686
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3677
3687
  positionTop = _ref.positionTop;
3678
- return /*#__PURE__*/React.createElement("svg", {
3688
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3679
3689
  xmlns: "http://www.w3.org/2000/svg",
3680
3690
  width: width,
3681
3691
  height: height,
@@ -3684,28 +3694,28 @@ var LockIcon = function LockIcon(_ref) {
3684
3694
  position: "relative",
3685
3695
  top: positionTop
3686
3696
  }
3687
- }, /*#__PURE__*/React.createElement("g", {
3697
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3688
3698
  fill: "none",
3689
3699
  fillRule: "evenodd",
3690
3700
  stroke: "none",
3691
3701
  strokeWidth: "1"
3692
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3702
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3693
3703
  transform: "translate(8 8)"
3694
- }, /*#__PURE__*/React.createElement("path", {
3704
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3695
3705
  d: "M0 0H24V24H0z"
3696
- }), /*#__PURE__*/React.createElement("g", {
3706
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3697
3707
  fill: color,
3698
3708
  fillRule: "nonzero",
3699
3709
  transform: "translate(3)"
3700
- }, /*#__PURE__*/React.createElement("path", {
3710
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3701
3711
  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"
3702
3712
  }))))));
3703
3713
  };
3704
3714
  LockIcon.propTypes = {
3705
- height: PropTypes.string,
3706
- width: PropTypes.string,
3707
- color: PropTypes.string,
3708
- positionTop: PropTypes.string
3715
+ height: PropTypes__default["default"].string,
3716
+ width: PropTypes__default["default"].string,
3717
+ color: PropTypes__default["default"].string,
3718
+ positionTop: PropTypes__default["default"].string
3709
3719
  };
3710
3720
 
3711
3721
  var StarIcon = function StarIcon(_ref) {
@@ -3715,7 +3725,7 @@ var StarIcon = function StarIcon(_ref) {
3715
3725
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3716
3726
  _ref$positionTop = _ref.positionTop,
3717
3727
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3718
- return /*#__PURE__*/React.createElement("svg", {
3728
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3719
3729
  xmlns: "http://www.w3.org/2000/svg",
3720
3730
  width: width,
3721
3731
  height: height,
@@ -3724,21 +3734,21 @@ var StarIcon = function StarIcon(_ref) {
3724
3734
  position: "relative",
3725
3735
  top: positionTop
3726
3736
  }
3727
- }, /*#__PURE__*/React.createElement("g", {
3737
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3728
3738
  fill: "none",
3729
3739
  fillRule: "evenodd",
3730
3740
  stroke: "none",
3731
3741
  strokeWidth: "1"
3732
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3742
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3733
3743
  fill: color,
3734
3744
  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"
3735
3745
  }))));
3736
3746
  };
3737
3747
  StarIcon.propTypes = {
3738
- height: PropTypes.string,
3739
- width: PropTypes.string,
3740
- color: PropTypes.string,
3741
- positionTop: PropTypes.string
3748
+ height: PropTypes__default["default"].string,
3749
+ width: PropTypes__default["default"].string,
3750
+ color: PropTypes__default["default"].string,
3751
+ positionTop: PropTypes__default["default"].string
3742
3752
  };
3743
3753
 
3744
3754
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3750,7 +3760,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3750
3760
 
3751
3761
  switch (iconType) {
3752
3762
  case "crown":
3753
- return /*#__PURE__*/React.createElement(CrownIcon, {
3763
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3754
3764
  width: width,
3755
3765
  height: height,
3756
3766
  color: color,
@@ -3758,7 +3768,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3758
3768
  });
3759
3769
 
3760
3770
  case "lock":
3761
- return /*#__PURE__*/React.createElement(LockIcon, {
3771
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3762
3772
  width: width,
3763
3773
  height: height,
3764
3774
  color: color,
@@ -3766,7 +3776,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3766
3776
  });
3767
3777
 
3768
3778
  case "key":
3769
- return /*#__PURE__*/React.createElement(KeyIcon, {
3779
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3770
3780
  width: width,
3771
3781
  height: height,
3772
3782
  color: color,
@@ -3774,7 +3784,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3774
3784
  });
3775
3785
 
3776
3786
  default:
3777
- return /*#__PURE__*/React.createElement(StarIcon, {
3787
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3778
3788
  width: width,
3779
3789
  height: height,
3780
3790
  color: color,
@@ -3783,21 +3793,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3783
3793
  }
3784
3794
  };
3785
3795
  PremiumStoryIcon.propTypes = {
3786
- width: PropTypes.string,
3787
- height: PropTypes.string,
3788
- color: PropTypes.string,
3789
- iconType: PropTypes.string,
3790
- positionTop: PropTypes.string
3796
+ width: PropTypes__default["default"].string,
3797
+ height: PropTypes__default["default"].string,
3798
+ color: PropTypes__default["default"].string,
3799
+ iconType: PropTypes__default["default"].string,
3800
+ positionTop: PropTypes__default["default"].string
3791
3801
  };
3792
3802
 
3793
3803
  function LiveIcon() {
3794
- return /*#__PURE__*/React.createElement("svg", {
3804
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3795
3805
  className: "live-icon",
3796
3806
  xmlns: "http://www.w3.org/2000/svg",
3797
3807
  width: "25",
3798
3808
  height: "24",
3799
3809
  viewBox: "0 0 25 24"
3800
- }, /*#__PURE__*/React.createElement("path", {
3810
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3801
3811
  fill: "#ff5858",
3802
3812
  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"
3803
3813
  }));
@@ -3854,37 +3864,37 @@ var Headline = function Headline(_ref) {
3854
3864
  var wrapperClass = premiumStory ? "wrapper" : "";
3855
3865
  var iconSize = "24px";
3856
3866
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3857
- return /*#__PURE__*/React.createElement("div", {
3867
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3858
3868
  "data-test-id": "headline",
3859
3869
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$2)
3860
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3870
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3861
3871
  width: iconSize,
3862
3872
  height: iconSize,
3863
3873
  color: iconColor,
3864
3874
  iconType: iconStyle,
3865
3875
  positionTop: positionHeadline()
3866
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3876
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3867
3877
  href: getStoryUrl(story, "/".concat(story.slug)),
3868
3878
  externalLink: isExternalStory(story),
3869
3879
  "aria-label": "headline"
3870
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3880
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3871
3881
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$2)
3872
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3882
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3873
3883
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$2)
3874
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3884
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3875
3885
  };
3876
3886
  Headline.propTypes = {
3877
3887
  /** The Story Object from the API response */
3878
- story: PropTypes.object.isRequired,
3888
+ story: PropTypes__default["default"].object.isRequired,
3879
3889
 
3880
3890
  /** Header tags ranging h1-h6, where h[headerLevel] */
3881
- headerLevel: PropTypes.string,
3882
- premiumStoryIconConfig: PropTypes.shape({
3883
- iconColor: PropTypes.string,
3884
- iconType: PropTypes.string,
3885
- enablePremiumStoryIcon: PropTypes.bool
3891
+ headerLevel: PropTypes__default["default"].string,
3892
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3893
+ iconColor: PropTypes__default["default"].string,
3894
+ iconType: PropTypes__default["default"].string,
3895
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3886
3896
  }),
3887
- isLink: PropTypes.bool
3897
+ isLink: PropTypes__default["default"].bool
3888
3898
  };
3889
3899
  Headline.defaultProps = {
3890
3900
  headerLevel: "6",
@@ -3911,7 +3921,7 @@ var Subheadline = function Subheadline(_ref) {
3911
3921
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3912
3922
  if (!subheadline) return null;
3913
3923
  var textColor = getTextColor(config.theme);
3914
- return /*#__PURE__*/React.createElement("div", {
3924
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3915
3925
  style: {
3916
3926
  WebkitLineClamp: lineClamp
3917
3927
  },
@@ -3921,15 +3931,15 @@ var Subheadline = function Subheadline(_ref) {
3921
3931
  };
3922
3932
  Subheadline.propTypes = {
3923
3933
  /** The Story Object from the API response */
3924
- story: PropTypes.object.isRequired,
3934
+ story: PropTypes__default["default"].object.isRequired,
3925
3935
  // Restricts the number of lines for subheadline.
3926
- lineClamp: PropTypes.number,
3936
+ lineClamp: PropTypes__default["default"].number,
3927
3937
 
3928
3938
  /** Number of characters to truncate the subheadline */
3929
- truncateChars: PropTypes.number,
3930
- clazzName: PropTypes.string,
3931
- forceShowAtom: PropTypes.bool,
3932
- showFullContent: PropTypes.bool
3939
+ truncateChars: PropTypes__default["default"].number,
3940
+ clazzName: PropTypes__default["default"].string,
3941
+ forceShowAtom: PropTypes__default["default"].bool,
3942
+ showFullContent: PropTypes__default["default"].bool
3933
3943
  };
3934
3944
  Subheadline.defaultProps = {
3935
3945
  forceShowAtom: false,
@@ -3978,7 +3988,7 @@ var StoryCard = function StoryCard(_ref) {
3978
3988
  prefix = _ref.prefix,
3979
3989
  config = _ref.config,
3980
3990
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
3981
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
3991
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
3982
3992
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
3983
3993
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
3984
3994
 
@@ -3988,7 +3998,7 @@ var StoryCard = function StoryCard(_ref) {
3988
3998
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
3989
3999
  var textColor = getTextColor(theme);
3990
4000
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
3991
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4001
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
3992
4002
  story: story,
3993
4003
  aspectRatio: aspectRatio,
3994
4004
  border: border,
@@ -4002,7 +4012,7 @@ var StoryCard = function StoryCard(_ref) {
4002
4012
  config: config,
4003
4013
  isHorizontalWithImageLast: isHorizontalWithImageLast
4004
4014
  });
4005
- return /*#__PURE__*/React.createElement("div", {
4015
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4006
4016
  "data-test-id": "story-card",
4007
4017
  style: {
4008
4018
  backgroundColor: theme,
@@ -4031,91 +4041,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4031
4041
  var SectionTagborderColor = rgbToHex(borderColor);
4032
4042
  var _config$localizationC = config.localizationConfig,
4033
4043
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4034
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4044
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4035
4045
  config: config,
4036
4046
  story: story,
4037
4047
  isHorizontal: true,
4038
4048
  isHorizontalMobile: isHorizontalMobile,
4039
4049
  aspectRatio: aspectRatio
4040
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4050
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4041
4051
  config: config,
4042
4052
  story: story,
4043
4053
  isHorizontalWithImageLast: true,
4044
4054
  isHorizontalMobile: isHorizontalMobile,
4045
4055
  aspectRatio: aspectRatio
4046
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4056
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4047
4057
  story: story,
4048
4058
  config: config,
4049
4059
  isHorizontalMobile: isHorizontalMobile,
4050
4060
  aspectRatio: aspectRatio
4051
- }), /*#__PURE__*/React.createElement("div", {
4061
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4052
4062
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap)
4053
- }, /*#__PURE__*/React.createElement(SectionTag, {
4063
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4054
4064
  story: story,
4055
4065
  borderColor: SectionTagborderColor
4056
- }), /*#__PURE__*/React.createElement(Headline, {
4066
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4057
4067
  story: story,
4058
4068
  headerLevel: headerLevel,
4059
4069
  premiumStoryIconConfig: config
4060
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4070
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4061
4071
  config: localizationConfig,
4062
4072
  story: story,
4063
4073
  isBottom: true,
4064
4074
  prefix: prefix,
4065
4075
  hideAuthorImage: hideAuthorImage
4066
- }), /*#__PURE__*/React.createElement(Subheadline, {
4076
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4067
4077
  story: story
4068
4078
  })));
4069
4079
  };
4070
4080
 
4071
4081
  DefaultStoryCard.propTypes = {
4072
- story: PropTypes.object.isRequired,
4073
- border: PropTypes.oneOfType([PropTypes.string]),
4074
- isBottom: PropTypes.bool,
4075
- isHorizontal: PropTypes.bool,
4076
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4077
- isHorizontalMobile: PropTypes.bool,
4078
- centerAlign: PropTypes.bool,
4079
- headerLevel: PropTypes.string,
4080
- borderColor: PropTypes.string,
4081
- hideAuthorImage: PropTypes.bool,
4082
- prefix: PropTypes.string,
4083
- config: PropTypes.object,
4084
- isHorizontalWithImageLast: PropTypes.bool
4082
+ story: PropTypes__default["default"].object.isRequired,
4083
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4084
+ isBottom: PropTypes__default["default"].bool,
4085
+ isHorizontal: PropTypes__default["default"].bool,
4086
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4087
+ isHorizontalMobile: PropTypes__default["default"].bool,
4088
+ centerAlign: PropTypes__default["default"].bool,
4089
+ headerLevel: PropTypes__default["default"].string,
4090
+ borderColor: PropTypes__default["default"].string,
4091
+ hideAuthorImage: PropTypes__default["default"].bool,
4092
+ prefix: PropTypes__default["default"].string,
4093
+ config: PropTypes__default["default"].object,
4094
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4085
4095
  };
4086
4096
  StoryCard.propTypes = {
4087
4097
  /** The Story Object from the API response */
4088
- story: PropTypes.object.isRequired,
4089
- children: PropTypes.node,
4098
+ story: PropTypes__default["default"].object.isRequired,
4099
+ children: PropTypes__default["default"].node,
4090
4100
 
4091
4101
  /** Flip the Story Card to Horizonal mode */
4092
- isHorizontal: PropTypes.bool,
4102
+ isHorizontal: PropTypes__default["default"].bool,
4093
4103
 
4094
4104
  /** Add border to the Story Card */
4095
- border: PropTypes.oneOfType([PropTypes.string]),
4105
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4096
4106
  // story card with background image
4097
- useImageAsBackground: PropTypes.bool,
4107
+ useImageAsBackground: PropTypes__default["default"].bool,
4098
4108
  // story card content overlap with image
4099
- bgImgContentOverlap: PropTypes.bool,
4109
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4100
4110
 
4101
4111
  /** add aspect ratio for hero image */
4102
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4112
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4103
4113
 
4104
4114
  /** add theme(dark /light/custom color) for storycard */
4105
- theme: PropTypes.string,
4115
+ theme: PropTypes__default["default"].string,
4106
4116
 
4107
4117
  /** flip the story card mobile design horizontal */
4108
- isHorizontalMobile: PropTypes.bool,
4118
+ isHorizontalMobile: PropTypes__default["default"].bool,
4109
4119
  // make content center align in desktop and left align in mobile
4110
- centerAlign: PropTypes.bool,
4111
- headerLevel: PropTypes.string,
4112
- borderColor: PropTypes.string,
4120
+ centerAlign: PropTypes__default["default"].bool,
4121
+ headerLevel: PropTypes__default["default"].string,
4122
+ borderColor: PropTypes__default["default"].string,
4113
4123
  // handle author image through storycard
4114
- hideAuthorImage: PropTypes.bool,
4124
+ hideAuthorImage: PropTypes__default["default"].bool,
4115
4125
  // handle author prefix through storycard
4116
- prefix: PropTypes.string,
4117
- config: PropTypes.object,
4118
- isHorizontalWithImageLast: PropTypes.bool
4126
+ prefix: PropTypes__default["default"].string,
4127
+ config: PropTypes__default["default"].object,
4128
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4119
4129
  };
4120
4130
  StoryCard.defaultProps = {
4121
4131
  isHorizontal: false,
@@ -4132,19 +4142,19 @@ function OtherNewsLinkComp(_ref) {
4132
4142
  textColor = _ref.textColor,
4133
4143
  Icon = _ref.Icon,
4134
4144
  text = _ref.text;
4135
- return /*#__PURE__*/React.createElement(Link, {
4145
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
4136
4146
  href: slug,
4137
4147
  "aria-label": "arrow-icon"
4138
- }, /*#__PURE__*/React.createElement("div", {
4148
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4139
4149
  className: "four-col-twelve-story-m_other-news-container__37wlp"
4140
- }, /*#__PURE__*/React.createElement("div", {
4150
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4141
4151
  className: "four-col-twelve-story-m_other-news-text__1zKt-",
4142
4152
  style: {
4143
4153
  color: textColor
4144
4154
  }
4145
- }, text), /*#__PURE__*/React.createElement("div", {
4155
+ }, text), /*#__PURE__*/React__default["default"].createElement("div", {
4146
4156
  className: "four-col-twelve-story-m_arrow-icon__2u_kA"
4147
- }, /*#__PURE__*/React.createElement(Icon, null))));
4157
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, null))));
4148
4158
  }
4149
4159
 
4150
4160
  var SingleCol3Story = function SingleCol3Story(_ref2) {
@@ -4156,7 +4166,7 @@ var SingleCol3Story = function SingleCol3Story(_ref2) {
4156
4166
  theme = _ref2.theme,
4157
4167
  _ref2$config = _ref2.config,
4158
4168
  config = _ref2$config === void 0 ? {} : _ref2$config;
4159
- var items = collectionToStories(collection);
4169
+ var items = components.collectionToStories(collection);
4160
4170
 
4161
4171
  if (items.length < 1) {
4162
4172
  return null;
@@ -4181,62 +4191,62 @@ var SingleCol3Story = function SingleCol3Story(_ref2) {
4181
4191
  contentPosition = otherTextData.contentPosition || contentPosition;
4182
4192
  }
4183
4193
 
4184
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
4194
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
4185
4195
  className: "four-col-twelve-story-m_collection-name-container__1yTXx"
4186
- }, /*#__PURE__*/React.createElement(CollectionName, {
4196
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4187
4197
  collection: collection,
4188
4198
  headerLevel: "4",
4189
4199
  collectionNameTemplate: collectionNameTemplate
4190
- }), contentPosition === "top" && text && Icon && /*#__PURE__*/React.createElement("div", {
4200
+ }), contentPosition === "top" && text && Icon && /*#__PURE__*/React__default["default"].createElement("div", {
4191
4201
  className: "four-col-twelve-story-m_other-news-top-container__32-SF"
4192
- }, /*#__PURE__*/React.createElement(OtherNewsLinkComp, {
4202
+ }, /*#__PURE__*/React__default["default"].createElement(OtherNewsLinkComp, {
4193
4203
  textColor: textColor,
4194
4204
  Icon: Icon,
4195
4205
  slug: slug,
4196
4206
  text: text
4197
- }))), /*#__PURE__*/React.createElement("div", {
4207
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
4198
4208
  className: "first-card"
4199
- }, /*#__PURE__*/React.createElement(StoryCard, {
4209
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4200
4210
  story: firstStory,
4201
4211
  border: border,
4202
4212
  theme: theme,
4203
4213
  config: config
4204
- }, /*#__PURE__*/React.createElement(HeroImage, {
4214
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4205
4215
  story: firstStory,
4206
4216
  aspectRatio: [[16, 9], [16, 9]]
4207
- }), /*#__PURE__*/React.createElement(SectionTag, {
4217
+ }), /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4208
4218
  story: firstStory
4209
- }), /*#__PURE__*/React.createElement(Headline, {
4219
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4210
4220
  story: firstStory,
4211
4221
  headerLevel: "4",
4212
4222
  premiumStoryIconConfig: config
4213
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4223
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4214
4224
  config: localizationConfig,
4215
4225
  story: firstStory
4216
- }))), /*#__PURE__*/React.createElement("div", {
4226
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
4217
4227
  className: "second-card"
4218
4228
  }, rest.slice(0, 2).map(function (story, index) {
4219
- return /*#__PURE__*/React.createElement(StoryCard, {
4229
+ return /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4220
4230
  key: index,
4221
4231
  story: story,
4222
4232
  isHorizontal: true,
4223
4233
  theme: theme,
4224
4234
  border: border
4225
- }, /*#__PURE__*/React.createElement(HeroImage, {
4235
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4226
4236
  story: story,
4227
4237
  aspectRatio: [[4, 3], [4, 3]]
4228
- }), /*#__PURE__*/React.createElement("div", {
4238
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4229
4239
  className: "small-card-container four-col-twelve-story-m_small-card-content-container__1Lu7D"
4230
- }, /*#__PURE__*/React.createElement(Headline, {
4240
+ }, /*#__PURE__*/React__default["default"].createElement(Headline, {
4231
4241
  story: story,
4232
4242
  premiumStoryIconConfig: config
4233
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4243
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4234
4244
  config: localizationConfig,
4235
4245
  story: story
4236
4246
  })));
4237
- })), contentPosition === "bottom" && text && Icon && /*#__PURE__*/React.createElement("div", {
4247
+ })), contentPosition === "bottom" && text && Icon && /*#__PURE__*/React__default["default"].createElement("div", {
4238
4248
  className: "four-col-twelve-story-m_other-news-link__1PEl4"
4239
- }, /*#__PURE__*/React.createElement(OtherNewsLinkComp, {
4249
+ }, /*#__PURE__*/React__default["default"].createElement(OtherNewsLinkComp, {
4240
4250
  textColor: textColor,
4241
4251
  Icon: Icon,
4242
4252
  slug: slug,
@@ -4268,18 +4278,18 @@ var FourColTwelveStoriesBase = function FourColTwelveStoriesBase(_ref5) {
4268
4278
 
4269
4279
  if (getFilteredCollection.length < 4) return null;
4270
4280
  var textColor = getTextColor(theme);
4271
- return /*#__PURE__*/React.createElement("div", {
4281
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4272
4282
  className: "full-width-with-padding arrow-component",
4273
4283
  "data-test-id": "four-col-twelve-stories",
4274
4284
  style: {
4275
4285
  backgroundColor: theme,
4276
4286
  color: textColor
4277
4287
  }
4278
- }, /*#__PURE__*/React.createElement("div", {
4288
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4279
4289
  className: "four-col-twelve-story-m_columns-container__1YHu8"
4280
4290
  }, getFilteredCollection.slice(0, 4).map(function (collection, index) {
4281
4291
  var slugName = getSlug(collection, publisherConfig);
4282
- return /*#__PURE__*/React.createElement(SingleCol3Story, {
4292
+ return /*#__PURE__*/React__default["default"].createElement(SingleCol3Story, {
4283
4293
  border: border,
4284
4294
  collection: collection,
4285
4295
  collectionNameTemplate: collectionNameTemplate,
@@ -4291,45 +4301,46 @@ var FourColTwelveStoriesBase = function FourColTwelveStoriesBase(_ref5) {
4291
4301
  })), footerSlotComp);
4292
4302
  };
4293
4303
  FourColTwelveStoriesBase.propTypes = {
4294
- collection: PropTypes.object.isRequired,
4295
- publisherConfig: PropTypes.object,
4296
- otherTextData: PropTypes.shape({
4297
- text: PropTypes.string,
4298
- Icon: PropTypes.func,
4299
- textColor: PropTypes.string
4304
+ collection: PropTypes__default["default"].object.isRequired,
4305
+ publisherConfig: PropTypes__default["default"].object,
4306
+ otherTextData: PropTypes__default["default"].shape({
4307
+ text: PropTypes__default["default"].string,
4308
+ Icon: PropTypes__default["default"].func,
4309
+ textColor: PropTypes__default["default"].string
4300
4310
  }),
4301
- config: PropTypes.shape({
4302
- theme: PropTypes.string,
4303
- border: PropTypes.string,
4304
- showSection: PropTypes.bool,
4305
- showSubheadline: PropTypes.bool,
4306
- showAuthor: PropTypes.bool,
4307
- showTime: PropTypes.bool,
4308
- showRowTitle: PropTypes.bool,
4309
- collectionNameTemplate: PropTypes.string
4311
+ config: PropTypes__default["default"].shape({
4312
+ theme: PropTypes__default["default"].string,
4313
+ border: PropTypes__default["default"].string,
4314
+ showSection: PropTypes__default["default"].bool,
4315
+ showSubheadline: PropTypes__default["default"].bool,
4316
+ showAuthor: PropTypes__default["default"].bool,
4317
+ showTime: PropTypes__default["default"].bool,
4318
+ showRowTitle: PropTypes__default["default"].bool,
4319
+ collectionNameTemplate: PropTypes__default["default"].string
4310
4320
  })
4311
4321
  };
4312
4322
  SingleCol3Story.propTypes = {
4313
- collection: PropTypes.object.isRequired,
4314
- border: PropTypes.string,
4315
- collectionNameTemplate: PropTypes.string,
4316
- slug: PropTypes.string,
4317
- theme: PropTypes.string,
4318
- otherTextData: PropTypes.shape({
4319
- text: PropTypes.string,
4320
- Icon: PropTypes.func,
4321
- textColor: PropTypes.string,
4323
+ collection: PropTypes__default["default"].object.isRequired,
4324
+ border: PropTypes__default["default"].string,
4325
+ collectionNameTemplate: PropTypes__default["default"].string,
4326
+ slug: PropTypes__default["default"].string,
4327
+ theme: PropTypes__default["default"].string,
4328
+ otherTextData: PropTypes__default["default"].shape({
4329
+ text: PropTypes__default["default"].string,
4330
+ Icon: PropTypes__default["default"].func,
4331
+ textColor: PropTypes__default["default"].string,
4322
4332
  // can be either 'top' or 'bottom'
4323
- contentPosition: PropTypes.string
4333
+ contentPosition: PropTypes__default["default"].string
4324
4334
  }),
4325
- config: PropTypes.object
4335
+ config: PropTypes__default["default"].object
4326
4336
  };
4327
4337
  OtherNewsLinkComp.propTypes = {
4328
- slug: PropTypes.string,
4329
- textColor: PropTypes.string,
4330
- Icon: PropTypes.func,
4331
- text: PropTypes.string
4338
+ slug: PropTypes__default["default"].string,
4339
+ textColor: PropTypes__default["default"].string,
4340
+ Icon: PropTypes__default["default"].func,
4341
+ text: PropTypes__default["default"].string
4332
4342
  };
4333
4343
  var FourColTwelveStories = StateProvider(FourColTwelveStoriesBase);
4334
4344
 
4335
- export { FourColTwelveStories, FourColTwelveStoriesBase };
4345
+ exports.FourColTwelveStories = FourColTwelveStories;
4346
+ exports.FourColTwelveStoriesBase = FourColTwelveStoriesBase;