@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 { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
3
- import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
4
- import Timeago from 'react-timeago';
5
- import { utcToZonedTime, format } from 'date-fns-tz';
6
- import { connect, useSelector, useDispatch } from 'react-redux';
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var components = require('@quintype/components');
7
+ var PropTypes = require('prop-types');
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
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
19
 
@@ -2670,15 +2680,15 @@ var isEmpty = function isEmpty(value) {
2670
2680
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2671
2681
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2672
2682
  };
2673
- PropTypes.shape({
2674
- "sketches-host": PropTypes.string,
2675
- "cdn-name": PropTypes.string,
2676
- "cdn-image": PropTypes.string
2683
+ PropTypes__default["default"].shape({
2684
+ "sketches-host": PropTypes__default["default"].string,
2685
+ "cdn-name": PropTypes__default["default"].string,
2686
+ "cdn-image": PropTypes__default["default"].string
2677
2687
  });
2678
- PropTypes.shape({
2679
- headline: PropTypes.string,
2680
- "last-published-at": PropTypes.number,
2681
- subheadline: PropTypes.string
2688
+ PropTypes__default["default"].shape({
2689
+ headline: PropTypes__default["default"].string,
2690
+ "last-published-at": PropTypes__default["default"].number,
2691
+ subheadline: PropTypes__default["default"].string
2682
2692
  });
2683
2693
  var getStoryUrl = function getStoryUrl(story) {
2684
2694
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2722,17 +2732,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2722
2732
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2723
2733
 
2724
2734
  if (timezone && template === "story") {
2725
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2726
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2735
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2736
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2727
2737
  timeZone: timezone
2728
2738
  });
2729
2739
  var timeStamp = timestampToFormat("", "", "", date, config);
2730
- return /*#__PURE__*/React.createElement("time", {
2740
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2731
2741
  dateTime: formatZonedTime
2732
2742
  }, timeStamp);
2733
2743
  }
2734
2744
 
2735
- return /*#__PURE__*/React.createElement(Timeago, {
2745
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2736
2746
  date: date,
2737
2747
  formatter: function formatter(value, unit, suffix, date) {
2738
2748
  return _formatter(value, unit, suffix, date, config);
@@ -2740,21 +2750,21 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2740
2750
  });
2741
2751
  };
2742
2752
 
2743
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
2753
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
2744
2754
 
2745
2755
  var StateProvider = function StateProvider(RowComponent) {
2746
2756
  return function (props) {
2747
2757
  return (
2748
2758
  /*#__PURE__*/
2749
2759
  // eslint-disable-next-line react/prop-types
2750
- React.createElement(StateContext.Provider, {
2760
+ React__default["default"].createElement(StateContext.Provider, {
2751
2761
  value: props.config
2752
- }, /*#__PURE__*/React.createElement(RowComponent, props))
2762
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
2753
2763
  );
2754
2764
  };
2755
2765
  };
2756
2766
  var useStateValue = function useStateValue() {
2757
- return useContext(StateContext);
2767
+ return React.useContext(StateContext);
2758
2768
  };
2759
2769
 
2760
2770
  var _styleModuleImportMap$e = {
@@ -2793,7 +2803,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2793
2803
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
2794
2804
 
2795
2805
  var borderBottomStyle = function borderBottomStyle() {
2796
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
2806
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
2797
2807
  className: "collection-name-m_border-bottom__1MnlV",
2798
2808
  style: {
2799
2809
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -2853,40 +2863,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2853
2863
  }
2854
2864
  };
2855
2865
 
2856
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
2866
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
2857
2867
  style: {
2858
2868
  borderBottom: borderBottomFullStyle
2859
2869
  },
2860
2870
  "data-test-id": "collection-name",
2861
2871
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$e)
2862
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
2872
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
2863
2873
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2864
2874
  style: {
2865
2875
  color: CollectionNameBorderColor,
2866
2876
  fontSize: getBorderHeight()
2867
2877
  }
2868
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
2878
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
2869
2879
  href: slug,
2870
2880
  "aria-label": "collection-name"
2871
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2881
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2872
2882
  };
2873
2883
  CollectionNameBase.propTypes = {
2874
2884
  /** Collection name border color */
2875
- collectionNameBorderColor: PropTypes$1.string,
2885
+ collectionNameBorderColor: PropTypes.PropTypes.string,
2876
2886
 
2877
2887
  /** The Collection Object from the API response */
2878
- collection: PropTypes$1.object,
2888
+ collection: PropTypes.PropTypes.object,
2879
2889
 
2880
2890
  /** The publisher config from the API response */
2881
- config: PropTypes$1.object,
2891
+ config: PropTypes.PropTypes.object,
2882
2892
 
2883
2893
  /** The style template for the component */
2884
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2894
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2885
2895
 
2886
2896
  /** Header tags ranging h1-h6, where h[headerLevel] */
2887
- headerLevel: PropTypes$1.string,
2888
- customCollectionName: PropTypes$1.string,
2889
- navigate: PropTypes$1.bool
2897
+ headerLevel: PropTypes.PropTypes.string,
2898
+ customCollectionName: PropTypes.PropTypes.string,
2899
+ navigate: PropTypes.PropTypes.bool
2890
2900
  };
2891
2901
  CollectionNameBase.defaultProps = {
2892
2902
  collectionNameTemplate: "",
@@ -2899,7 +2909,7 @@ function mapStateToProps$1(state) {
2899
2909
  };
2900
2910
  }
2901
2911
 
2902
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
2912
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
2903
2913
 
2904
2914
  var CrownIcon = function CrownIcon(_ref) {
2905
2915
  var height = _ref.height,
@@ -2907,7 +2917,7 @@ var CrownIcon = function CrownIcon(_ref) {
2907
2917
  _ref$color = _ref.color,
2908
2918
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
2909
2919
  positionTop = _ref.positionTop;
2910
- return /*#__PURE__*/React.createElement("svg", {
2920
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2911
2921
  xmlns: "http://www.w3.org/2000/svg",
2912
2922
  width: width,
2913
2923
  height: height,
@@ -2916,28 +2926,28 @@ var CrownIcon = function CrownIcon(_ref) {
2916
2926
  position: "relative",
2917
2927
  top: positionTop
2918
2928
  }
2919
- }, /*#__PURE__*/React.createElement("g", {
2929
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2920
2930
  fill: "none",
2921
2931
  fillRule: "evenodd",
2922
2932
  stroke: "none",
2923
2933
  strokeWidth: "1"
2924
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2934
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2925
2935
  transform: "translate(8 8)"
2926
- }, /*#__PURE__*/React.createElement("path", {
2936
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2927
2937
  d: "M0 0H24V24H0z"
2928
- }), /*#__PURE__*/React.createElement("g", {
2938
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2929
2939
  fill: color,
2930
2940
  fillRule: "nonzero",
2931
2941
  transform: "translate(0 2)"
2932
- }, /*#__PURE__*/React.createElement("path", {
2942
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2933
2943
  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"
2934
2944
  }))))));
2935
2945
  };
2936
2946
  CrownIcon.propTypes = {
2937
- height: PropTypes.string,
2938
- width: PropTypes.string,
2939
- color: PropTypes.string,
2940
- positionTop: PropTypes.string
2947
+ height: PropTypes__default["default"].string,
2948
+ width: PropTypes__default["default"].string,
2949
+ color: PropTypes__default["default"].string,
2950
+ positionTop: PropTypes__default["default"].string
2941
2951
  };
2942
2952
 
2943
2953
  var KeyIcon = function KeyIcon(_ref) {
@@ -2946,7 +2956,7 @@ var KeyIcon = function KeyIcon(_ref) {
2946
2956
  _ref$color = _ref.color,
2947
2957
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2948
2958
  positionTop = _ref.positionTop;
2949
- return /*#__PURE__*/React.createElement("svg", {
2959
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2950
2960
  xmlns: "http://www.w3.org/2000/svg",
2951
2961
  width: width,
2952
2962
  height: height,
@@ -2955,16 +2965,16 @@ var KeyIcon = function KeyIcon(_ref) {
2955
2965
  position: "relative",
2956
2966
  top: positionTop
2957
2967
  }
2958
- }, /*#__PURE__*/React.createElement("g", {
2968
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2959
2969
  fill: "none",
2960
2970
  fillRule: "evenodd",
2961
2971
  stroke: "none",
2962
2972
  strokeWidth: "1"
2963
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2973
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2964
2974
  transform: "translate(8 8)"
2965
- }, /*#__PURE__*/React.createElement("path", {
2975
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2966
2976
  d: "M0 0H24V24H0z"
2967
- }), /*#__PURE__*/React.createElement("path", {
2977
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2968
2978
  fill: color,
2969
2979
  fillRule: "nonzero",
2970
2980
  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",
@@ -2972,10 +2982,10 @@ var KeyIcon = function KeyIcon(_ref) {
2972
2982
  })))));
2973
2983
  };
2974
2984
  KeyIcon.propTypes = {
2975
- height: PropTypes.string,
2976
- width: PropTypes.string,
2977
- color: PropTypes.string,
2978
- positionTop: PropTypes.string
2985
+ height: PropTypes__default["default"].string,
2986
+ width: PropTypes__default["default"].string,
2987
+ color: PropTypes__default["default"].string,
2988
+ positionTop: PropTypes__default["default"].string
2979
2989
  };
2980
2990
 
2981
2991
  var LockIcon = function LockIcon(_ref) {
@@ -2984,7 +2994,7 @@ var LockIcon = function LockIcon(_ref) {
2984
2994
  _ref$color = _ref.color,
2985
2995
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2986
2996
  positionTop = _ref.positionTop;
2987
- return /*#__PURE__*/React.createElement("svg", {
2997
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2988
2998
  xmlns: "http://www.w3.org/2000/svg",
2989
2999
  width: width,
2990
3000
  height: height,
@@ -2993,28 +3003,28 @@ var LockIcon = function LockIcon(_ref) {
2993
3003
  position: "relative",
2994
3004
  top: positionTop
2995
3005
  }
2996
- }, /*#__PURE__*/React.createElement("g", {
3006
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2997
3007
  fill: "none",
2998
3008
  fillRule: "evenodd",
2999
3009
  stroke: "none",
3000
3010
  strokeWidth: "1"
3001
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3011
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3002
3012
  transform: "translate(8 8)"
3003
- }, /*#__PURE__*/React.createElement("path", {
3013
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3004
3014
  d: "M0 0H24V24H0z"
3005
- }), /*#__PURE__*/React.createElement("g", {
3015
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3006
3016
  fill: color,
3007
3017
  fillRule: "nonzero",
3008
3018
  transform: "translate(3)"
3009
- }, /*#__PURE__*/React.createElement("path", {
3019
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3010
3020
  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"
3011
3021
  }))))));
3012
3022
  };
3013
3023
  LockIcon.propTypes = {
3014
- height: PropTypes.string,
3015
- width: PropTypes.string,
3016
- color: PropTypes.string,
3017
- positionTop: PropTypes.string
3024
+ height: PropTypes__default["default"].string,
3025
+ width: PropTypes__default["default"].string,
3026
+ color: PropTypes__default["default"].string,
3027
+ positionTop: PropTypes__default["default"].string
3018
3028
  };
3019
3029
 
3020
3030
  var StarIcon = function StarIcon(_ref) {
@@ -3024,7 +3034,7 @@ var StarIcon = function StarIcon(_ref) {
3024
3034
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3025
3035
  _ref$positionTop = _ref.positionTop,
3026
3036
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3027
- return /*#__PURE__*/React.createElement("svg", {
3037
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3028
3038
  xmlns: "http://www.w3.org/2000/svg",
3029
3039
  width: width,
3030
3040
  height: height,
@@ -3033,21 +3043,21 @@ var StarIcon = function StarIcon(_ref) {
3033
3043
  position: "relative",
3034
3044
  top: positionTop
3035
3045
  }
3036
- }, /*#__PURE__*/React.createElement("g", {
3046
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3037
3047
  fill: "none",
3038
3048
  fillRule: "evenodd",
3039
3049
  stroke: "none",
3040
3050
  strokeWidth: "1"
3041
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3051
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3042
3052
  fill: color,
3043
3053
  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"
3044
3054
  }))));
3045
3055
  };
3046
3056
  StarIcon.propTypes = {
3047
- height: PropTypes.string,
3048
- width: PropTypes.string,
3049
- color: PropTypes.string,
3050
- positionTop: PropTypes.string
3057
+ height: PropTypes__default["default"].string,
3058
+ width: PropTypes__default["default"].string,
3059
+ color: PropTypes__default["default"].string,
3060
+ positionTop: PropTypes__default["default"].string
3051
3061
  };
3052
3062
 
3053
3063
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3059,7 +3069,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3059
3069
 
3060
3070
  switch (iconType) {
3061
3071
  case "crown":
3062
- return /*#__PURE__*/React.createElement(CrownIcon, {
3072
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3063
3073
  width: width,
3064
3074
  height: height,
3065
3075
  color: color,
@@ -3067,7 +3077,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3067
3077
  });
3068
3078
 
3069
3079
  case "lock":
3070
- return /*#__PURE__*/React.createElement(LockIcon, {
3080
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3071
3081
  width: width,
3072
3082
  height: height,
3073
3083
  color: color,
@@ -3075,7 +3085,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3075
3085
  });
3076
3086
 
3077
3087
  case "key":
3078
- return /*#__PURE__*/React.createElement(KeyIcon, {
3088
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3079
3089
  width: width,
3080
3090
  height: height,
3081
3091
  color: color,
@@ -3083,7 +3093,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3083
3093
  });
3084
3094
 
3085
3095
  default:
3086
- return /*#__PURE__*/React.createElement(StarIcon, {
3096
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3087
3097
  width: width,
3088
3098
  height: height,
3089
3099
  color: color,
@@ -3092,21 +3102,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3092
3102
  }
3093
3103
  };
3094
3104
  PremiumStoryIcon.propTypes = {
3095
- width: PropTypes.string,
3096
- height: PropTypes.string,
3097
- color: PropTypes.string,
3098
- iconType: PropTypes.string,
3099
- positionTop: PropTypes.string
3105
+ width: PropTypes__default["default"].string,
3106
+ height: PropTypes__default["default"].string,
3107
+ color: PropTypes__default["default"].string,
3108
+ iconType: PropTypes__default["default"].string,
3109
+ positionTop: PropTypes__default["default"].string
3100
3110
  };
3101
3111
 
3102
3112
  function LiveIcon() {
3103
- return /*#__PURE__*/React.createElement("svg", {
3113
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3104
3114
  className: "live-icon",
3105
3115
  xmlns: "http://www.w3.org/2000/svg",
3106
3116
  width: "25",
3107
3117
  height: "24",
3108
3118
  viewBox: "0 0 25 24"
3109
- }, /*#__PURE__*/React.createElement("path", {
3119
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3110
3120
  fill: "#ff5858",
3111
3121
  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"
3112
3122
  }));
@@ -3163,37 +3173,37 @@ var Headline = function Headline(_ref) {
3163
3173
  var wrapperClass = premiumStory ? "wrapper" : "";
3164
3174
  var iconSize = "24px";
3165
3175
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3166
- return /*#__PURE__*/React.createElement("div", {
3176
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3167
3177
  "data-test-id": "headline",
3168
3178
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
3169
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3179
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3170
3180
  width: iconSize,
3171
3181
  height: iconSize,
3172
3182
  color: iconColor,
3173
3183
  iconType: iconStyle,
3174
3184
  positionTop: positionHeadline()
3175
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3185
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3176
3186
  href: getStoryUrl(story, "/".concat(story.slug)),
3177
3187
  externalLink: isExternalStory(story),
3178
3188
  "aria-label": "headline"
3179
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3189
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3180
3190
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3181
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3191
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3182
3192
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3183
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3193
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3184
3194
  };
3185
3195
  Headline.propTypes = {
3186
3196
  /** The Story Object from the API response */
3187
- story: PropTypes.object.isRequired,
3197
+ story: PropTypes__default["default"].object.isRequired,
3188
3198
 
3189
3199
  /** Header tags ranging h1-h6, where h[headerLevel] */
3190
- headerLevel: PropTypes.string,
3191
- premiumStoryIconConfig: PropTypes.shape({
3192
- iconColor: PropTypes.string,
3193
- iconType: PropTypes.string,
3194
- enablePremiumStoryIcon: PropTypes.bool
3200
+ headerLevel: PropTypes__default["default"].string,
3201
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3202
+ iconColor: PropTypes__default["default"].string,
3203
+ iconType: PropTypes__default["default"].string,
3204
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3195
3205
  }),
3196
- isLink: PropTypes.bool
3206
+ isLink: PropTypes__default["default"].bool
3197
3207
  };
3198
3208
  Headline.defaultProps = {
3199
3209
  headerLevel: "6",
@@ -3220,7 +3230,7 @@ var Subheadline = function Subheadline(_ref) {
3220
3230
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3221
3231
  if (!subheadline) return null;
3222
3232
  var textColor = getTextColor(config.theme);
3223
- return /*#__PURE__*/React.createElement("div", {
3233
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3224
3234
  style: {
3225
3235
  WebkitLineClamp: lineClamp
3226
3236
  },
@@ -3230,15 +3240,15 @@ var Subheadline = function Subheadline(_ref) {
3230
3240
  };
3231
3241
  Subheadline.propTypes = {
3232
3242
  /** The Story Object from the API response */
3233
- story: PropTypes.object.isRequired,
3243
+ story: PropTypes__default["default"].object.isRequired,
3234
3244
  // Restricts the number of lines for subheadline.
3235
- lineClamp: PropTypes.number,
3245
+ lineClamp: PropTypes__default["default"].number,
3236
3246
 
3237
3247
  /** Number of characters to truncate the subheadline */
3238
- truncateChars: PropTypes.number,
3239
- clazzName: PropTypes.string,
3240
- forceShowAtom: PropTypes.bool,
3241
- showFullContent: PropTypes.bool
3248
+ truncateChars: PropTypes__default["default"].number,
3249
+ clazzName: PropTypes__default["default"].string,
3250
+ forceShowAtom: PropTypes__default["default"].bool,
3251
+ showFullContent: PropTypes__default["default"].bool
3242
3252
  };
3243
3253
  Subheadline.defaultProps = {
3244
3254
  forceShowAtom: false,
@@ -3264,18 +3274,18 @@ var TimeStamp = function TimeStamp(_ref) {
3264
3274
  var time = story["last-published-at"] || story["first-published-at"];
3265
3275
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3266
3276
  var textColor = getTextColor(configState.theme);
3267
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3277
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3268
3278
  "data-test-id": "publish-time",
3269
3279
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
3270
- }, /*#__PURE__*/React.createElement("div", {
3280
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3271
3281
  className: "timestamp-m_time-wrapper__3O2lM"
3272
3282
  }, getTimeStamp(time, formatter, config))));
3273
3283
  };
3274
3284
  TimeStamp.propTypes = {
3275
3285
  /** The Story Object from the API response */
3276
- story: PropTypes.object,
3277
- isBottom: PropTypes.bool,
3278
- config: PropTypes.object
3286
+ story: PropTypes__default["default"].object,
3287
+ isBottom: PropTypes__default["default"].bool,
3288
+ config: PropTypes__default["default"].object
3279
3289
  };
3280
3290
 
3281
3291
  var _styleModuleImportMap$a = {
@@ -3318,10 +3328,10 @@ var AuthorBase = function AuthorBase(_ref) {
3318
3328
  return null;
3319
3329
  }
3320
3330
 
3321
- return /*#__PURE__*/React.createElement("div", {
3331
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3322
3332
  "data-test-id": "author-image",
3323
3333
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
3324
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3334
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3325
3335
  slug: avatarS3Key,
3326
3336
  "aspect-ratio": [1, 1],
3327
3337
  defaultWidth: 400,
@@ -3329,14 +3339,14 @@ var AuthorBase = function AuthorBase(_ref) {
3329
3339
  auto: ["format", "compress"]
3330
3340
  },
3331
3341
  alt: authorName
3332
- }) : /*#__PURE__*/React.createElement("img", {
3342
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3333
3343
  src: avatarUrl
3334
3344
  })));
3335
3345
  };
3336
3346
 
3337
3347
  var isPrefix = function isPrefix(dir) {
3338
3348
  if (prefix) {
3339
- return /*#__PURE__*/React.createElement("div", {
3349
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3340
3350
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
3341
3351
  }, prefix);
3342
3352
  }
@@ -3344,11 +3354,11 @@ var AuthorBase = function AuthorBase(_ref) {
3344
3354
  return !hideAuthorImage && authorImage(dir);
3345
3355
  };
3346
3356
 
3347
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3357
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3348
3358
  href: "".concat(mountAt, "/author/") + slug,
3349
3359
  "aria-label": "author-name",
3350
3360
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
3351
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3361
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3352
3362
  "data-test-id": "author-name",
3353
3363
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
3354
3364
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3360,18 +3370,18 @@ function mapStateToProps(state) {
3360
3370
  };
3361
3371
  }
3362
3372
 
3363
- var Author = connect(mapStateToProps)(AuthorBase);
3373
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3364
3374
  AuthorBase.propTypes = {
3365
3375
  /** The Story Object from the API response */
3366
- story: PropTypes.object.isRequired,
3376
+ story: PropTypes__default["default"].object.isRequired,
3367
3377
 
3368
3378
  /** Hide Author Avatar Image */
3369
- hideAuthorImage: PropTypes.bool,
3379
+ hideAuthorImage: PropTypes__default["default"].bool,
3370
3380
  // fix Author bottom of the storyCard
3371
- isBottom: PropTypes.bool,
3381
+ isBottom: PropTypes__default["default"].bool,
3372
3382
  // fix prefix before the author name
3373
- prefix: PropTypes.string,
3374
- config: PropTypes.object
3383
+ prefix: PropTypes__default["default"].string,
3384
+ config: PropTypes__default["default"].object
3375
3385
  };
3376
3386
  AuthorBase.defaultProps = {
3377
3387
  hideAuthorImage: false,
@@ -3392,14 +3402,14 @@ var Dot = function Dot(_ref) {
3392
3402
  height = _ref$height === void 0 ? "3px" : _ref$height,
3393
3403
  _ref$color = _ref.color,
3394
3404
  color = _ref$color === void 0 ? "light" : _ref$color;
3395
- return /*#__PURE__*/React.createElement("div", {
3405
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3396
3406
  className: _getClassName(color, _styleModuleImportMap$9)
3397
- }, /*#__PURE__*/React.createElement("svg", {
3407
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3398
3408
  xmlns: "http://www.w3.org/2000/svg",
3399
3409
  width: width,
3400
3410
  height: height,
3401
3411
  viewBox: "0 0 3 3"
3402
- }, /*#__PURE__*/React.createElement("circle", {
3412
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3403
3413
  cx: "87",
3404
3414
  cy: "9",
3405
3415
  r: "1",
@@ -3410,9 +3420,9 @@ var Dot = function Dot(_ref) {
3410
3420
  };
3411
3421
  Dot.propTypes = {
3412
3422
  /** height , width and color of the dot icon */
3413
- color: PropTypes.string,
3414
- width: PropTypes.string,
3415
- height: PropTypes.string
3423
+ color: PropTypes__default["default"].string,
3424
+ width: PropTypes__default["default"].string,
3425
+ height: PropTypes__default["default"].string
3416
3426
  };
3417
3427
 
3418
3428
  var _styleModuleImportMap$8 = {
@@ -3428,22 +3438,22 @@ var Divider = function Divider(_ref) {
3428
3438
  height = _ref$height === void 0 ? "10" : _ref$height,
3429
3439
  _ref$color = _ref.color,
3430
3440
  color = _ref$color === void 0 ? "light" : _ref$color;
3431
- return /*#__PURE__*/React.createElement("div", {
3441
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3432
3442
  className: _getClassName(color, _styleModuleImportMap$8)
3433
- }, /*#__PURE__*/React.createElement("svg", {
3443
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3434
3444
  xmlns: "http://www.w3.org/2000/svg",
3435
3445
  width: width,
3436
3446
  height: height
3437
- }, /*#__PURE__*/React.createElement("path", {
3447
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3438
3448
  fill: "inherit",
3439
3449
  d: "M0 0h1v10H0z"
3440
3450
  })));
3441
3451
  };
3442
3452
  Divider.propTypes = {
3443
3453
  /** height , width and color of the dot icon */
3444
- color: PropTypes.string,
3445
- width: PropTypes.string,
3446
- height: PropTypes.string
3454
+ color: PropTypes__default["default"].string,
3455
+ width: PropTypes__default["default"].string,
3456
+ height: PropTypes__default["default"].string
3447
3457
  };
3448
3458
 
3449
3459
  var _styleModuleImportMap$7 = {
@@ -3466,23 +3476,23 @@ var ReadTime = function ReadTime(_ref) {
3466
3476
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3467
3477
  if (!showReadTime || !readTime) return null;
3468
3478
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3469
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3479
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3470
3480
  "data-test-id": "read-time",
3471
3481
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
3472
- }, /*#__PURE__*/React.createElement("span", {
3482
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3473
3483
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3474
- }, /*#__PURE__*/React.createElement(Dot, {
3484
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3475
3485
  color: textColor
3476
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3486
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3477
3487
  };
3478
3488
  ReadTime.propTypes = {
3479
- story: PropTypes.shape({
3480
- "read-time": PropTypes.number
3489
+ story: PropTypes__default["default"].shape({
3490
+ "read-time": PropTypes__default["default"].number
3481
3491
  }),
3482
- opts: PropTypes.shape({
3483
- showReadTime: PropTypes.bool
3492
+ opts: PropTypes__default["default"].shape({
3493
+ showReadTime: PropTypes__default["default"].bool
3484
3494
  }),
3485
- isLightTheme: PropTypes.bool
3495
+ isLightTheme: PropTypes__default["default"].bool
3486
3496
  };
3487
3497
 
3488
3498
  var _styleModuleImportMap$6 = {
@@ -3513,33 +3523,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3513
3523
 
3514
3524
  var getSeparator = function getSeparator() {
3515
3525
  if (separator === "divider") {
3516
- return /*#__PURE__*/React.createElement(Divider, {
3526
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3517
3527
  color: textColor
3518
3528
  });
3519
3529
  }
3520
3530
 
3521
- return /*#__PURE__*/React.createElement(Dot, {
3531
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3522
3532
  color: textColor
3523
3533
  });
3524
3534
  };
3525
3535
 
3526
3536
  var getTimeStamp = function getTimeStamp() {
3527
3537
  if (!isTime) return null;
3528
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3538
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3529
3539
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
3530
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3540
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3531
3541
  story: story,
3532
3542
  config: config
3533
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3543
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3534
3544
  story: story,
3535
3545
  opts: config,
3536
3546
  isLightTheme: isLightTheme
3537
3547
  }));
3538
3548
  };
3539
3549
 
3540
- return /*#__PURE__*/React.createElement("div", {
3550
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3541
3551
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
3542
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3552
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3543
3553
  story: story,
3544
3554
  isBottom: true,
3545
3555
  hideAuthorImage: hideAuthorImage,
@@ -3547,19 +3557,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3547
3557
  }), getTimeStamp()) : getTimeStamp());
3548
3558
  };
3549
3559
  AuthorWithTime.propTypes = {
3550
- story: PropTypes.object,
3560
+ story: PropTypes__default["default"].object,
3551
3561
 
3552
3562
  /** Style of separator between the Author & Timestamp */
3553
- separator: PropTypes.oneOf(["dot", "divider"]),
3563
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3554
3564
 
3555
3565
  /** hide the author image */
3556
- hideAuthorImage: PropTypes.bool,
3566
+ hideAuthorImage: PropTypes__default["default"].bool,
3557
3567
  // fix author and time at the end
3558
- isBottom: PropTypes.bool,
3568
+ isBottom: PropTypes__default["default"].bool,
3559
3569
  // fix prefix before the author name
3560
- prefix: PropTypes.string,
3561
- config: PropTypes.object,
3562
- isLightTheme: PropTypes.bool
3570
+ prefix: PropTypes__default["default"].string,
3571
+ config: PropTypes__default["default"].object,
3572
+ isLightTheme: PropTypes__default["default"].bool
3563
3573
  };
3564
3574
  AuthorWithTime.defaultProps = {
3565
3575
  separator: "dot",
@@ -3637,27 +3647,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3637
3647
  height = _ref$height === void 0 ? 30 : _ref$height,
3638
3648
  _ref$iconColor = _ref.iconColor,
3639
3649
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
3640
- return /*#__PURE__*/React.createElement("svg", {
3650
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3641
3651
  width: width,
3642
3652
  height: height,
3643
3653
  viewBox: "0 0 102 76",
3644
3654
  version: "1.1"
3645
- }, /*#__PURE__*/React.createElement("g", {
3655
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3646
3656
  id: "demo-home-copy",
3647
3657
  stroke: "none",
3648
3658
  strokeWidth: "1",
3649
3659
  fill: "none",
3650
3660
  fillRule: "evenodd",
3651
3661
  transform: "translate(-377.000000, -314.000000)"
3652
- }, /*#__PURE__*/React.createElement("g", {
3662
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3653
3663
  id: "Group-13",
3654
3664
  transform: "translate(377.000000, 314.000000)"
3655
- }, /*#__PURE__*/React.createElement("path", {
3665
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3656
3666
  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",
3657
3667
  id: "Combined-Shape",
3658
3668
  fill: iconColor,
3659
3669
  fillRule: "nonzero"
3660
- }), /*#__PURE__*/React.createElement("rect", {
3670
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
3661
3671
  id: "Rectangle-19",
3662
3672
  stroke: iconColor,
3663
3673
  strokeWidth: "3",
@@ -3669,24 +3679,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3669
3679
  }))));
3670
3680
  };
3671
3681
  ImageFallbackIcon.propTypes = {
3672
- width: PropTypes.object,
3673
- height: PropTypes.object,
3674
- iconColor: PropTypes.object
3682
+ width: PropTypes__default["default"].object,
3683
+ height: PropTypes__default["default"].object,
3684
+ iconColor: PropTypes__default["default"].object
3675
3685
  };
3676
3686
 
3677
3687
  var imageFallback = function imageFallback() {
3678
- return /*#__PURE__*/React.createElement("div", {
3688
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3679
3689
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3680
- }, /*#__PURE__*/React.createElement("figure", {
3690
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3681
3691
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3682
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3692
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3683
3693
  };
3684
3694
 
3685
3695
  var FallbackImage = function FallbackImage(_ref) {
3686
3696
  var slug = _ref.slug;
3687
3697
 
3688
3698
  if (slug) {
3689
- return /*#__PURE__*/React.createElement(Link, {
3699
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3690
3700
  href: slug,
3691
3701
  "aria-label": "image-fallback"
3692
3702
  }, imageFallback());
@@ -3695,23 +3705,23 @@ var FallbackImage = function FallbackImage(_ref) {
3695
3705
  }
3696
3706
  };
3697
3707
  FallbackImage.propTypes = {
3698
- slug: PropTypes.string
3708
+ slug: PropTypes__default["default"].string
3699
3709
  };
3700
3710
 
3701
3711
  var HyperLinkIcon = function HyperLinkIcon() {
3702
- return /*#__PURE__*/React.createElement("svg", {
3712
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3703
3713
  xmlns: "http://www.w3.org/2000/svg",
3704
3714
  width: "36",
3705
3715
  height: "28"
3706
- }, /*#__PURE__*/React.createElement("g", {
3716
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3707
3717
  fill: "none",
3708
3718
  fillRule: "evenodd"
3709
- }, /*#__PURE__*/React.createElement("rect", {
3719
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3710
3720
  width: "36",
3711
3721
  height: "28",
3712
3722
  fill: "#3D6FCF",
3713
3723
  rx: "4"
3714
- }), /*#__PURE__*/React.createElement("path", {
3724
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3715
3725
  stroke: "#FFF",
3716
3726
  strokeLinecap: "round",
3717
3727
  strokeLinejoin: "round",
@@ -3724,16 +3734,16 @@ var HyperLink = function HyperLink(_ref) {
3724
3734
  var _ref$hyperLink = _ref.hyperLink,
3725
3735
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3726
3736
  if (!hyperLink) return null;
3727
- return /*#__PURE__*/React.createElement(Link, {
3737
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3728
3738
  href: hyperLink,
3729
3739
  "aria-label": "hyperlink-button",
3730
3740
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3731
3741
  target: "_blank",
3732
3742
  rel: "noopener noreferrer"
3733
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3743
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3734
3744
  };
3735
3745
  HyperLink.propTypes = {
3736
- hyperLink: PropTypes.string
3746
+ hyperLink: PropTypes__default["default"].string
3737
3747
  };
3738
3748
 
3739
3749
  var _styleModuleImportMap$5 = {
@@ -3769,7 +3779,7 @@ var HeroImage = function HeroImage(_ref) {
3769
3779
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3770
3780
  return null;
3771
3781
  } : _config$StoryTemplate;
3772
- var showImagePlaceholder = useSelector(function (state) {
3782
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3773
3783
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3774
3784
  });
3775
3785
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3805,37 +3815,37 @@ var HeroImage = function HeroImage(_ref) {
3805
3815
  var fallbackImage = function fallbackImage() {
3806
3816
  if (!slug) {
3807
3817
  if (fallbackImageUrl && !isStoryPageImage) {
3808
- return /*#__PURE__*/React.createElement("figure", {
3818
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3809
3819
  style: {
3810
3820
  paddingTop: imagePadding + "%"
3811
3821
  },
3812
3822
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3813
- }, /*#__PURE__*/React.createElement("img", {
3823
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3814
3824
  className: "qt-image",
3815
3825
  "data-src": "".concat(fallbackImageUrl),
3816
3826
  alt: "image-fallback"
3817
3827
  }));
3818
3828
  }
3819
3829
 
3820
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3830
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3821
3831
  "data-test-id": "arr--fallback-hero-image",
3822
3832
  style: {
3823
3833
  paddingTop: imagePadding + "%"
3824
3834
  },
3825
3835
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3826
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3836
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3827
3837
  storyTemplate: story["story-template"]
3828
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3838
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3829
3839
  }
3830
3840
 
3831
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3841
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3832
3842
  style: {
3833
3843
  paddingTop: imagePadding + "%"
3834
3844
  },
3835
3845
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3836
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3846
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3837
3847
  storyTemplate: story["story-template"]
3838
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3848
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3839
3849
  story: story,
3840
3850
  aspectRatio: imageAspectRatio,
3841
3851
  defaultWidth: defaultWidth,
@@ -3844,15 +3854,15 @@ var HeroImage = function HeroImage(_ref) {
3844
3854
  auto: ["format", "compress"],
3845
3855
  fit: "max"
3846
3856
  }
3847
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3857
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3848
3858
  hyperLink: hyperLink
3849
3859
  }));
3850
3860
  };
3851
3861
 
3852
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3862
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3853
3863
  "data-test-id": "arr--hero-image",
3854
3864
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
3855
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3865
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3856
3866
  "data-test-id": "arr--hero-image",
3857
3867
  href: getStoryUrl(story, "/".concat(story.slug)),
3858
3868
  externalLink: isExternalStory(story),
@@ -3862,30 +3872,30 @@ var HeroImage = function HeroImage(_ref) {
3862
3872
  };
3863
3873
  HeroImage.propTypes = {
3864
3874
  /** The Story Object from the API response */
3865
- story: PropTypes.object.isRequired,
3875
+ story: PropTypes__default["default"].object.isRequired,
3866
3876
 
3867
3877
  /** Removes the Hero Image padding for the image to bleed over the margin */
3868
- FullBleed: PropTypes.bool,
3878
+ FullBleed: PropTypes__default["default"].bool,
3869
3879
 
3870
3880
  /** The default width for the image, in case the browser does not support srcset */
3871
- defaultWidth: PropTypes.number,
3881
+ defaultWidth: PropTypes__default["default"].number,
3872
3882
 
3873
3883
  /** The list of available widths */
3874
- widths: PropTypes.array,
3884
+ widths: PropTypes__default["default"].array,
3875
3885
  // fatch the correct hero image
3876
- aspectRatio: PropTypes.array,
3886
+ aspectRatio: PropTypes__default["default"].array,
3877
3887
  // Hints for the browser to choose the best size
3878
3888
 
3879
3889
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3880
- isHorizontal: PropTypes.bool,
3890
+ isHorizontal: PropTypes__default["default"].bool,
3881
3891
 
3882
3892
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3883
- isHorizontalMobile: PropTypes.bool,
3893
+ isHorizontalMobile: PropTypes__default["default"].bool,
3884
3894
  // this prop is responsive for rendering fallback image on story page
3885
- defaultFallback: PropTypes.bool,
3886
- isHorizontalWithImageLast: PropTypes.bool,
3887
- isStoryPageImage: PropTypes.bool,
3888
- config: PropTypes.object
3895
+ defaultFallback: PropTypes__default["default"].bool,
3896
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3897
+ isStoryPageImage: PropTypes__default["default"].bool,
3898
+ config: PropTypes__default["default"].object
3889
3899
  };
3890
3900
  HeroImage.defaultProps = {
3891
3901
  FullBleed: true,
@@ -3935,22 +3945,22 @@ var SectionTag = function SectionTag(_ref) {
3935
3945
  }
3936
3946
 
3937
3947
  if (!isSection) return null;
3938
- return /*#__PURE__*/React.createElement(Link, {
3948
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3939
3949
  href: getUrl,
3940
3950
  className: "arrow-component arr--section-name",
3941
3951
  "aria-label": "section-name"
3942
- }, /*#__PURE__*/React.createElement("div", {
3952
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3943
3953
  "data-test-id": "sectionTag",
3944
3954
  style: {
3945
3955
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3946
3956
  },
3947
3957
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$4)
3948
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3958
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3949
3959
  className: "section-m_border-left__2oUyp",
3950
3960
  style: {
3951
3961
  color: sectionTagBorderColor
3952
3962
  }
3953
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3963
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3954
3964
  className: "section-m_border-bottom__3cRoD",
3955
3965
  style: {
3956
3966
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3959,13 +3969,13 @@ var SectionTag = function SectionTag(_ref) {
3959
3969
  };
3960
3970
  SectionTag.propTypes = {
3961
3971
  /** The Story Object from the API response */
3962
- story: PropTypes.object.isRequired,
3972
+ story: PropTypes__default["default"].object.isRequired,
3963
3973
 
3964
3974
  /** The style template for section tag */
3965
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3966
- borderColor: PropTypes.string,
3967
- solidBorderColor: PropTypes.string,
3968
- isLightTheme: PropTypes.bool
3975
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3976
+ borderColor: PropTypes__default["default"].string,
3977
+ solidBorderColor: PropTypes__default["default"].string,
3978
+ isLightTheme: PropTypes__default["default"].bool
3969
3979
  };
3970
3980
  SectionTag.defaultProps = {
3971
3981
  template: "",
@@ -4014,7 +4024,7 @@ var StoryCard = function StoryCard(_ref) {
4014
4024
  prefix = _ref.prefix,
4015
4025
  config = _ref.config,
4016
4026
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4017
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
4027
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4018
4028
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4019
4029
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4020
4030
 
@@ -4024,7 +4034,7 @@ var StoryCard = function StoryCard(_ref) {
4024
4034
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4025
4035
  var textColor = getTextColor(theme);
4026
4036
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4027
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4037
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4028
4038
  story: story,
4029
4039
  aspectRatio: aspectRatio,
4030
4040
  border: border,
@@ -4038,7 +4048,7 @@ var StoryCard = function StoryCard(_ref) {
4038
4048
  config: config,
4039
4049
  isHorizontalWithImageLast: isHorizontalWithImageLast
4040
4050
  });
4041
- return /*#__PURE__*/React.createElement("div", {
4051
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4042
4052
  "data-test-id": "story-card",
4043
4053
  style: {
4044
4054
  backgroundColor: theme,
@@ -4067,91 +4077,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4067
4077
  var SectionTagborderColor = rgbToHex(borderColor);
4068
4078
  var _config$localizationC = config.localizationConfig,
4069
4079
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4070
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4080
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4071
4081
  config: config,
4072
4082
  story: story,
4073
4083
  isHorizontal: true,
4074
4084
  isHorizontalMobile: isHorizontalMobile,
4075
4085
  aspectRatio: aspectRatio
4076
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4086
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4077
4087
  config: config,
4078
4088
  story: story,
4079
4089
  isHorizontalWithImageLast: true,
4080
4090
  isHorizontalMobile: isHorizontalMobile,
4081
4091
  aspectRatio: aspectRatio
4082
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4092
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4083
4093
  story: story,
4084
4094
  config: config,
4085
4095
  isHorizontalMobile: isHorizontalMobile,
4086
4096
  aspectRatio: aspectRatio
4087
- }), /*#__PURE__*/React.createElement("div", {
4097
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4088
4098
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
4089
- }, /*#__PURE__*/React.createElement(SectionTag, {
4099
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4090
4100
  story: story,
4091
4101
  borderColor: SectionTagborderColor
4092
- }), /*#__PURE__*/React.createElement(Headline, {
4102
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4093
4103
  story: story,
4094
4104
  headerLevel: headerLevel,
4095
4105
  premiumStoryIconConfig: config
4096
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4106
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4097
4107
  config: localizationConfig,
4098
4108
  story: story,
4099
4109
  isBottom: true,
4100
4110
  prefix: prefix,
4101
4111
  hideAuthorImage: hideAuthorImage
4102
- }), /*#__PURE__*/React.createElement(Subheadline, {
4112
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4103
4113
  story: story
4104
4114
  })));
4105
4115
  };
4106
4116
 
4107
4117
  DefaultStoryCard.propTypes = {
4108
- story: PropTypes.object.isRequired,
4109
- border: PropTypes.oneOfType([PropTypes.string]),
4110
- isBottom: PropTypes.bool,
4111
- isHorizontal: PropTypes.bool,
4112
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4113
- isHorizontalMobile: PropTypes.bool,
4114
- centerAlign: PropTypes.bool,
4115
- headerLevel: PropTypes.string,
4116
- borderColor: PropTypes.string,
4117
- hideAuthorImage: PropTypes.bool,
4118
- prefix: PropTypes.string,
4119
- config: PropTypes.object,
4120
- isHorizontalWithImageLast: PropTypes.bool
4118
+ story: PropTypes__default["default"].object.isRequired,
4119
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4120
+ isBottom: PropTypes__default["default"].bool,
4121
+ isHorizontal: PropTypes__default["default"].bool,
4122
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4123
+ isHorizontalMobile: PropTypes__default["default"].bool,
4124
+ centerAlign: PropTypes__default["default"].bool,
4125
+ headerLevel: PropTypes__default["default"].string,
4126
+ borderColor: PropTypes__default["default"].string,
4127
+ hideAuthorImage: PropTypes__default["default"].bool,
4128
+ prefix: PropTypes__default["default"].string,
4129
+ config: PropTypes__default["default"].object,
4130
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4121
4131
  };
4122
4132
  StoryCard.propTypes = {
4123
4133
  /** The Story Object from the API response */
4124
- story: PropTypes.object.isRequired,
4125
- children: PropTypes.node,
4134
+ story: PropTypes__default["default"].object.isRequired,
4135
+ children: PropTypes__default["default"].node,
4126
4136
 
4127
4137
  /** Flip the Story Card to Horizonal mode */
4128
- isHorizontal: PropTypes.bool,
4138
+ isHorizontal: PropTypes__default["default"].bool,
4129
4139
 
4130
4140
  /** Add border to the Story Card */
4131
- border: PropTypes.oneOfType([PropTypes.string]),
4141
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4132
4142
  // story card with background image
4133
- useImageAsBackground: PropTypes.bool,
4143
+ useImageAsBackground: PropTypes__default["default"].bool,
4134
4144
  // story card content overlap with image
4135
- bgImgContentOverlap: PropTypes.bool,
4145
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4136
4146
 
4137
4147
  /** add aspect ratio for hero image */
4138
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4148
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4139
4149
 
4140
4150
  /** add theme(dark /light/custom color) for storycard */
4141
- theme: PropTypes.string,
4151
+ theme: PropTypes__default["default"].string,
4142
4152
 
4143
4153
  /** flip the story card mobile design horizontal */
4144
- isHorizontalMobile: PropTypes.bool,
4154
+ isHorizontalMobile: PropTypes__default["default"].bool,
4145
4155
  // make content center align in desktop and left align in mobile
4146
- centerAlign: PropTypes.bool,
4147
- headerLevel: PropTypes.string,
4148
- borderColor: PropTypes.string,
4156
+ centerAlign: PropTypes__default["default"].bool,
4157
+ headerLevel: PropTypes__default["default"].string,
4158
+ borderColor: PropTypes__default["default"].string,
4149
4159
  // handle author image through storycard
4150
- hideAuthorImage: PropTypes.bool,
4160
+ hideAuthorImage: PropTypes__default["default"].bool,
4151
4161
  // handle author prefix through storycard
4152
- prefix: PropTypes.string,
4153
- config: PropTypes.object,
4154
- isHorizontalWithImageLast: PropTypes.bool
4162
+ prefix: PropTypes__default["default"].string,
4163
+ config: PropTypes__default["default"].object,
4164
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4155
4165
  };
4156
4166
  StoryCard.defaultProps = {
4157
4167
  isHorizontal: false,
@@ -4184,14 +4194,14 @@ var StorycardContent = function StorycardContent(_ref) {
4184
4194
  var SectionTagborderColor = rgbToHex(borderColor);
4185
4195
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4186
4196
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4187
- return /*#__PURE__*/React.createElement("div", {
4197
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4188
4198
  "data-test-id": "story-card-content",
4189
4199
  style: {
4190
4200
  backgroundColor: theme,
4191
4201
  color: textColor
4192
4202
  },
4193
4203
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$2)
4194
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
4204
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4195
4205
  story: story,
4196
4206
  headerLevel: headerLevel,
4197
4207
  isHorizontalMobile: isHorizontalMobile,
@@ -4209,37 +4219,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4209
4219
  var SectionTagborderColor = rgbToHex(borderColor);
4210
4220
  var _config$localizationC = config.localizationConfig,
4211
4221
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4212
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
4222
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4213
4223
  story: story,
4214
4224
  borderColor: SectionTagborderColor
4215
- }), /*#__PURE__*/React.createElement(Headline, {
4225
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4216
4226
  story: story,
4217
4227
  headerLevel: headerLevel,
4218
4228
  premiumStoryIconConfig: config
4219
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4229
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4220
4230
  config: localizationConfig,
4221
4231
  story: story
4222
4232
  }));
4223
4233
  };
4224
4234
 
4225
4235
  DefaultStoryCardContent.propTypes = {
4226
- story: PropTypes.object.isRequired,
4227
- border: PropTypes.string,
4228
- theme: PropTypes.string,
4229
- isHorizontalMobile: PropTypes.bool,
4230
- headerLevel: PropTypes.string,
4231
- borderColor: PropTypes.string,
4232
- config: PropTypes.object
4236
+ story: PropTypes__default["default"].object.isRequired,
4237
+ border: PropTypes__default["default"].string,
4238
+ theme: PropTypes__default["default"].string,
4239
+ isHorizontalMobile: PropTypes__default["default"].bool,
4240
+ headerLevel: PropTypes__default["default"].string,
4241
+ borderColor: PropTypes__default["default"].string,
4242
+ config: PropTypes__default["default"].object
4233
4243
  };
4234
4244
  StorycardContent.propTypes = {
4235
- story: PropTypes.object.isRequired,
4236
- children: PropTypes.node,
4237
- theme: PropTypes.string,
4238
- border: PropTypes.string,
4239
- isHorizontalMobile: PropTypes.bool,
4240
- headerLevel: PropTypes.string,
4241
- borderColor: PropTypes.string,
4242
- config: PropTypes.object
4245
+ story: PropTypes__default["default"].object.isRequired,
4246
+ children: PropTypes__default["default"].node,
4247
+ theme: PropTypes__default["default"].string,
4248
+ border: PropTypes__default["default"].string,
4249
+ isHorizontalMobile: PropTypes__default["default"].bool,
4250
+ headerLevel: PropTypes__default["default"].string,
4251
+ borderColor: PropTypes__default["default"].string,
4252
+ config: PropTypes__default["default"].object
4243
4253
  };
4244
4254
 
4245
4255
  function _defineProperty(obj, key, value) {
@@ -4289,26 +4299,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4289
4299
  if (!showButton) return null;
4290
4300
  var textColor = getTextColor(theme);
4291
4301
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4292
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4302
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4293
4303
  onClick: onClick,
4294
4304
  "data-test-id": "load-more",
4295
4305
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4296
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4306
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4297
4307
  href: slug,
4298
4308
  navigateTo: navigate,
4299
4309
  "data-test-id": "load-more",
4300
4310
  "aria-label": "load-more"
4301
- }, /*#__PURE__*/React.createElement("div", {
4311
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4302
4312
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4303
4313
  }, buttonText));
4304
4314
  };
4305
4315
  LoadmoreButton.propTypes = {
4306
- collection: PropTypes.object,
4307
- template: PropTypes.string,
4308
- config: PropTypes.object,
4309
- onClick: PropTypes.func,
4310
- navigate: PropTypes.func,
4311
- qtConfig: PropTypes.object
4316
+ collection: PropTypes__default["default"].object,
4317
+ template: PropTypes__default["default"].string,
4318
+ config: PropTypes__default["default"].object,
4319
+ onClick: PropTypes__default["default"].func,
4320
+ navigate: PropTypes__default["default"].func,
4321
+ qtConfig: PropTypes__default["default"].object
4312
4322
  };
4313
4323
 
4314
4324
  var _styleModuleImportMap = {
@@ -4326,7 +4336,7 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4326
4336
  var collection = _ref.collection,
4327
4337
  _ref$config = _ref.config,
4328
4338
  config = _ref$config === void 0 ? {} : _ref$config;
4329
- var storyItems = collectionToStories(collection);
4339
+ var storyItems = components.collectionToStories(collection);
4330
4340
 
4331
4341
  if (storyItems.length < 1) {
4332
4342
  return null;
@@ -4360,24 +4370,24 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4360
4370
 
4361
4371
  var borderBottomStyle = border === "bottom" ? "card-bottom" : "card";
4362
4372
  var lastCardBorderBottom = slotConfig === "ad" ? "border-unset" : "";
4363
- var dispatch = useDispatch();
4364
- var qtConfig = useSelector(function (state) {
4373
+ var dispatch = reactRedux.useDispatch();
4374
+ var qtConfig = reactRedux.useSelector(function (state) {
4365
4375
  return get_1(state, ["qt", "config"], {});
4366
4376
  });
4367
4377
  var url = generateNavigateSlug(collection, qtConfig);
4368
4378
 
4369
4379
  var storyCardComponent = function storyCardComponent(story) {
4370
- return /*#__PURE__*/React.createElement(StoryCard, {
4380
+ return /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4371
4381
  story: story,
4372
4382
  theme: theme,
4373
4383
  border: border,
4374
4384
  isHorizontal: true,
4375
4385
  config: config
4376
- }, /*#__PURE__*/React.createElement(HeroImage, {
4386
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4377
4387
  story: story,
4378
4388
  isHorizontal: true,
4379
4389
  aspectRatio: [[16, 9], [16, 9]]
4380
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4390
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4381
4391
  theme: theme,
4382
4392
  border: border,
4383
4393
  story: story,
@@ -4387,16 +4397,16 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4387
4397
  };
4388
4398
 
4389
4399
  var storyCardWidthoutBorder = function storyCardWidthoutBorder(story) {
4390
- return /*#__PURE__*/React.createElement(StoryCard, {
4400
+ return /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4391
4401
  story: story,
4392
4402
  theme: theme,
4393
4403
  isHorizontal: true,
4394
4404
  config: config
4395
- }, /*#__PURE__*/React.createElement(HeroImage, {
4405
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4396
4406
  story: story,
4397
4407
  isHorizontal: true,
4398
4408
  aspectRatio: [[16, 9], [16, 9]]
4399
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4409
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4400
4410
  theme: theme,
4401
4411
  story: story,
4402
4412
  borderColor: borderColor,
@@ -4405,13 +4415,13 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4405
4415
  };
4406
4416
 
4407
4417
  var storySlot = function storySlot() {
4408
- return /*#__PURE__*/React.createElement("div", null, storyItems.slice(5, 6).map(function (story, index) {
4409
- return /*#__PURE__*/React.createElement("div", {
4418
+ return /*#__PURE__*/React__default["default"].createElement("div", null, storyItems.slice(5, 6).map(function (story, index) {
4419
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4410
4420
  key: "default-".concat(index),
4411
4421
  className: _getClassName("".concat(borderBottomStyle), _styleModuleImportMap)
4412
4422
  }, storyCardComponent(story));
4413
4423
  }), storyItems.slice(6, 7).map(function (story, index) {
4414
- return /*#__PURE__*/React.createElement("div", {
4424
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4415
4425
  key: "default-".concat(index),
4416
4426
  className: _getClassName("".concat(borderBottomStyle), _styleModuleImportMap)
4417
4427
  }, storyCardWidthoutBorder(story));
@@ -4422,30 +4432,30 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4422
4432
  var footerSlotComp = footerSlot ? footerSlot() : null;
4423
4433
  var textColor = getTextColor(theme);
4424
4434
  var Cards = border === "bottom" ? "cards" : "";
4425
- return /*#__PURE__*/React.createElement("div", {
4435
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4426
4436
  className: "full-width-with-padding arrow-component",
4427
4437
  "data-test-id": "three-col-seven-stories",
4428
4438
  style: {
4429
4439
  backgroundColor: theme,
4430
4440
  color: textColor
4431
4441
  }
4432
- }, /*#__PURE__*/React.createElement("div", {
4442
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4433
4443
  className: "three-col-seven-story-m_wrapper__2mAv0"
4434
- }, /*#__PURE__*/React.createElement(CollectionName, {
4444
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4435
4445
  collection: collection,
4436
4446
  collectionNameTemplate: collectionNameTemplate,
4437
4447
  collectionNameBorderColor: collectionNameBorderColor,
4438
4448
  customCollectionName: customCollectionName,
4439
4449
  navigate: navigate
4440
- }), /*#__PURE__*/React.createElement("div", {
4450
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4441
4451
  className: "three-col-seven-story-m_three-col-five-stories__7aVjy"
4442
- }, /*#__PURE__*/React.createElement("div", {
4452
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4443
4453
  className: _getClassName("".concat(Cards), _styleModuleImportMap)
4444
4454
  }, storyItems.slice(0, 1).map(function (story, index) {
4445
- return /*#__PURE__*/React.createElement("div", {
4455
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4446
4456
  key: "default-".concat(index),
4447
4457
  className: _getClassName("".concat(borderBottomStyle), _styleModuleImportMap)
4448
- }, /*#__PURE__*/React.createElement(StoryCard, {
4458
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4449
4459
  story: story,
4450
4460
  theme: theme,
4451
4461
  aspectRatio: [[16, 9], [16, 9]],
@@ -4453,26 +4463,26 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4453
4463
  borderColor: borderColor,
4454
4464
  config: config
4455
4465
  }));
4456
- })), /*#__PURE__*/React.createElement("div", {
4466
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
4457
4467
  className: _getClassName("".concat(Cards), _styleModuleImportMap)
4458
4468
  }, storyItems.slice(1, 3).map(function (story, index) {
4459
- return /*#__PURE__*/React.createElement("div", {
4469
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4460
4470
  key: "default-".concat(index),
4461
4471
  className: _getClassName("".concat(borderBottomStyle), _styleModuleImportMap)
4462
4472
  }, storyCardComponent(story));
4463
4473
  }), storyItems.slice(3, 4).map(function (story, index) {
4464
- return /*#__PURE__*/React.createElement("div", {
4474
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4465
4475
  key: "default-".concat(index),
4466
4476
  className: _getClassName("".concat(borderBottomStyle), _styleModuleImportMap)
4467
4477
  }, storyCardWidthoutBorder(story));
4468
- })), /*#__PURE__*/React.createElement("div", null, storyItems.slice(4, 5).map(function (story, index) {
4469
- return /*#__PURE__*/React.createElement("div", {
4478
+ })), /*#__PURE__*/React__default["default"].createElement("div", null, storyItems.slice(4, 5).map(function (story, index) {
4479
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4470
4480
  key: "default-".concat(index),
4471
4481
  className: _getClassName("".concat(borderBottomStyle, " ").concat(lastCardBorderBottom), _styleModuleImportMap)
4472
4482
  }, storyCardComponent(story));
4473
- }), /*#__PURE__*/React.createElement("div", {
4483
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4474
4484
  className: "three-col-seven-story-m_ads__2YttJ"
4475
- }, slot))), /*#__PURE__*/React.createElement(LoadmoreButton, {
4485
+ }, slot))), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4476
4486
  template: footerButton,
4477
4487
  collection: collection,
4478
4488
  config: config,
@@ -4484,19 +4494,20 @@ var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
4484
4494
  };
4485
4495
  ThreeColSevenStoryBase.propTypes = {
4486
4496
  /** collection is the array of objects which is returning by API */
4487
- collection: PropTypes.object.isRequired,
4497
+ collection: PropTypes__default["default"].object.isRequired,
4488
4498
 
4489
4499
  /** The config for the Row */
4490
- config: PropTypes.shape({
4491
- borderColor: PropTypes.string,
4492
- theme: PropTypes.string,
4493
- border: PropTypes.string,
4494
- slotConfig: PropTypes.array,
4495
- footerButton: PropTypes.string,
4496
- collectionNameTemplate: PropTypes.string,
4497
- collectionNameBorderColor: PropTypes.string
4500
+ config: PropTypes__default["default"].shape({
4501
+ borderColor: PropTypes__default["default"].string,
4502
+ theme: PropTypes__default["default"].string,
4503
+ border: PropTypes__default["default"].string,
4504
+ slotConfig: PropTypes__default["default"].array,
4505
+ footerButton: PropTypes__default["default"].string,
4506
+ collectionNameTemplate: PropTypes__default["default"].string,
4507
+ collectionNameBorderColor: PropTypes__default["default"].string
4498
4508
  })
4499
4509
  };
4500
4510
  var ThreeColSevenStory = StateProvider(ThreeColSevenStoryBase);
4501
4511
 
4502
- export { ThreeColSevenStory, ThreeColSevenStoryBase };
4512
+ exports.ThreeColSevenStory = ThreeColSevenStory;
4513
+ exports.ThreeColSevenStoryBase = ThreeColSevenStoryBase;