@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, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
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 PropTypes = require('prop-types');
7
+ var components = require('@quintype/components');
8
+ var Timeago = require('react-timeago');
9
+ var dateFnsTz = require('date-fns-tz');
10
+ var reactRedux = require('react-redux');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
16
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
7
17
 
8
18
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
19
 
@@ -156,21 +166,21 @@ exports["default"] = _default;
156
166
 
157
167
  var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
158
168
 
159
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
169
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
160
170
 
161
171
  var StateProvider = function StateProvider(RowComponent) {
162
172
  return function (props) {
163
173
  return (
164
174
  /*#__PURE__*/
165
175
  // eslint-disable-next-line react/prop-types
166
- React.createElement(StateContext.Provider, {
176
+ React__default["default"].createElement(StateContext.Provider, {
167
177
  value: props.config
168
- }, /*#__PURE__*/React.createElement(RowComponent, props))
178
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
169
179
  );
170
180
  };
171
181
  };
172
182
  var useStateValue = function useStateValue() {
173
- return useContext(StateContext);
183
+ return React.useContext(StateContext);
174
184
  };
175
185
 
176
186
  /**
@@ -2675,15 +2685,15 @@ var isEmpty = function isEmpty(value) {
2675
2685
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2676
2686
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2677
2687
  };
2678
- PropTypes.shape({
2679
- "sketches-host": PropTypes.string,
2680
- "cdn-name": PropTypes.string,
2681
- "cdn-image": PropTypes.string
2688
+ PropTypes__default["default"].shape({
2689
+ "sketches-host": PropTypes__default["default"].string,
2690
+ "cdn-name": PropTypes__default["default"].string,
2691
+ "cdn-image": PropTypes__default["default"].string
2682
2692
  });
2683
- PropTypes.shape({
2684
- headline: PropTypes.string,
2685
- "last-published-at": PropTypes.number,
2686
- subheadline: PropTypes.string
2693
+ PropTypes__default["default"].shape({
2694
+ headline: PropTypes__default["default"].string,
2695
+ "last-published-at": PropTypes__default["default"].number,
2696
+ subheadline: PropTypes__default["default"].string
2687
2697
  });
2688
2698
  var getStoryUrl = function getStoryUrl(story) {
2689
2699
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2727,17 +2737,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2727
2737
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2728
2738
 
2729
2739
  if (timezone && template === "story") {
2730
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2731
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2740
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2741
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2732
2742
  timeZone: timezone
2733
2743
  });
2734
2744
  var timeStamp = timestampToFormat("", "", "", date, config);
2735
- return /*#__PURE__*/React.createElement("time", {
2745
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2736
2746
  dateTime: formatZonedTime
2737
2747
  }, timeStamp);
2738
2748
  }
2739
2749
 
2740
- return /*#__PURE__*/React.createElement(Timeago, {
2750
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2741
2751
  date: date,
2742
2752
  formatter: function formatter(value, unit, suffix, date) {
2743
2753
  return _formatter(value, unit, suffix, date, config);
@@ -2751,7 +2761,7 @@ var CrownIcon = function CrownIcon(_ref) {
2751
2761
  _ref$color = _ref.color,
2752
2762
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
2753
2763
  positionTop = _ref.positionTop;
2754
- return /*#__PURE__*/React.createElement("svg", {
2764
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2755
2765
  xmlns: "http://www.w3.org/2000/svg",
2756
2766
  width: width,
2757
2767
  height: height,
@@ -2760,28 +2770,28 @@ var CrownIcon = function CrownIcon(_ref) {
2760
2770
  position: "relative",
2761
2771
  top: positionTop
2762
2772
  }
2763
- }, /*#__PURE__*/React.createElement("g", {
2773
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2764
2774
  fill: "none",
2765
2775
  fillRule: "evenodd",
2766
2776
  stroke: "none",
2767
2777
  strokeWidth: "1"
2768
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2778
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2769
2779
  transform: "translate(8 8)"
2770
- }, /*#__PURE__*/React.createElement("path", {
2780
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2771
2781
  d: "M0 0H24V24H0z"
2772
- }), /*#__PURE__*/React.createElement("g", {
2782
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2773
2783
  fill: color,
2774
2784
  fillRule: "nonzero",
2775
2785
  transform: "translate(0 2)"
2776
- }, /*#__PURE__*/React.createElement("path", {
2786
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2777
2787
  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"
2778
2788
  }))))));
2779
2789
  };
2780
2790
  CrownIcon.propTypes = {
2781
- height: PropTypes.string,
2782
- width: PropTypes.string,
2783
- color: PropTypes.string,
2784
- positionTop: PropTypes.string
2791
+ height: PropTypes__default["default"].string,
2792
+ width: PropTypes__default["default"].string,
2793
+ color: PropTypes__default["default"].string,
2794
+ positionTop: PropTypes__default["default"].string
2785
2795
  };
2786
2796
 
2787
2797
  var KeyIcon = function KeyIcon(_ref) {
@@ -2790,7 +2800,7 @@ var KeyIcon = function KeyIcon(_ref) {
2790
2800
  _ref$color = _ref.color,
2791
2801
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2792
2802
  positionTop = _ref.positionTop;
2793
- return /*#__PURE__*/React.createElement("svg", {
2803
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2794
2804
  xmlns: "http://www.w3.org/2000/svg",
2795
2805
  width: width,
2796
2806
  height: height,
@@ -2799,16 +2809,16 @@ var KeyIcon = function KeyIcon(_ref) {
2799
2809
  position: "relative",
2800
2810
  top: positionTop
2801
2811
  }
2802
- }, /*#__PURE__*/React.createElement("g", {
2812
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2803
2813
  fill: "none",
2804
2814
  fillRule: "evenodd",
2805
2815
  stroke: "none",
2806
2816
  strokeWidth: "1"
2807
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2817
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2808
2818
  transform: "translate(8 8)"
2809
- }, /*#__PURE__*/React.createElement("path", {
2819
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2810
2820
  d: "M0 0H24V24H0z"
2811
- }), /*#__PURE__*/React.createElement("path", {
2821
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2812
2822
  fill: color,
2813
2823
  fillRule: "nonzero",
2814
2824
  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",
@@ -2816,10 +2826,10 @@ var KeyIcon = function KeyIcon(_ref) {
2816
2826
  })))));
2817
2827
  };
2818
2828
  KeyIcon.propTypes = {
2819
- height: PropTypes.string,
2820
- width: PropTypes.string,
2821
- color: PropTypes.string,
2822
- positionTop: PropTypes.string
2829
+ height: PropTypes__default["default"].string,
2830
+ width: PropTypes__default["default"].string,
2831
+ color: PropTypes__default["default"].string,
2832
+ positionTop: PropTypes__default["default"].string
2823
2833
  };
2824
2834
 
2825
2835
  var LockIcon = function LockIcon(_ref) {
@@ -2828,7 +2838,7 @@ var LockIcon = function LockIcon(_ref) {
2828
2838
  _ref$color = _ref.color,
2829
2839
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2830
2840
  positionTop = _ref.positionTop;
2831
- return /*#__PURE__*/React.createElement("svg", {
2841
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2832
2842
  xmlns: "http://www.w3.org/2000/svg",
2833
2843
  width: width,
2834
2844
  height: height,
@@ -2837,28 +2847,28 @@ var LockIcon = function LockIcon(_ref) {
2837
2847
  position: "relative",
2838
2848
  top: positionTop
2839
2849
  }
2840
- }, /*#__PURE__*/React.createElement("g", {
2850
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2841
2851
  fill: "none",
2842
2852
  fillRule: "evenodd",
2843
2853
  stroke: "none",
2844
2854
  strokeWidth: "1"
2845
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2855
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2846
2856
  transform: "translate(8 8)"
2847
- }, /*#__PURE__*/React.createElement("path", {
2857
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2848
2858
  d: "M0 0H24V24H0z"
2849
- }), /*#__PURE__*/React.createElement("g", {
2859
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2850
2860
  fill: color,
2851
2861
  fillRule: "nonzero",
2852
2862
  transform: "translate(3)"
2853
- }, /*#__PURE__*/React.createElement("path", {
2863
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2854
2864
  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"
2855
2865
  }))))));
2856
2866
  };
2857
2867
  LockIcon.propTypes = {
2858
- height: PropTypes.string,
2859
- width: PropTypes.string,
2860
- color: PropTypes.string,
2861
- positionTop: PropTypes.string
2868
+ height: PropTypes__default["default"].string,
2869
+ width: PropTypes__default["default"].string,
2870
+ color: PropTypes__default["default"].string,
2871
+ positionTop: PropTypes__default["default"].string
2862
2872
  };
2863
2873
 
2864
2874
  var StarIcon = function StarIcon(_ref) {
@@ -2868,7 +2878,7 @@ var StarIcon = function StarIcon(_ref) {
2868
2878
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2869
2879
  _ref$positionTop = _ref.positionTop,
2870
2880
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
2871
- return /*#__PURE__*/React.createElement("svg", {
2881
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2872
2882
  xmlns: "http://www.w3.org/2000/svg",
2873
2883
  width: width,
2874
2884
  height: height,
@@ -2877,21 +2887,21 @@ var StarIcon = function StarIcon(_ref) {
2877
2887
  position: "relative",
2878
2888
  top: positionTop
2879
2889
  }
2880
- }, /*#__PURE__*/React.createElement("g", {
2890
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2881
2891
  fill: "none",
2882
2892
  fillRule: "evenodd",
2883
2893
  stroke: "none",
2884
2894
  strokeWidth: "1"
2885
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
2895
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
2886
2896
  fill: color,
2887
2897
  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"
2888
2898
  }))));
2889
2899
  };
2890
2900
  StarIcon.propTypes = {
2891
- height: PropTypes.string,
2892
- width: PropTypes.string,
2893
- color: PropTypes.string,
2894
- positionTop: PropTypes.string
2901
+ height: PropTypes__default["default"].string,
2902
+ width: PropTypes__default["default"].string,
2903
+ color: PropTypes__default["default"].string,
2904
+ positionTop: PropTypes__default["default"].string
2895
2905
  };
2896
2906
 
2897
2907
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -2903,7 +2913,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2903
2913
 
2904
2914
  switch (iconType) {
2905
2915
  case "crown":
2906
- return /*#__PURE__*/React.createElement(CrownIcon, {
2916
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
2907
2917
  width: width,
2908
2918
  height: height,
2909
2919
  color: color,
@@ -2911,7 +2921,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2911
2921
  });
2912
2922
 
2913
2923
  case "lock":
2914
- return /*#__PURE__*/React.createElement(LockIcon, {
2924
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
2915
2925
  width: width,
2916
2926
  height: height,
2917
2927
  color: color,
@@ -2919,7 +2929,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2919
2929
  });
2920
2930
 
2921
2931
  case "key":
2922
- return /*#__PURE__*/React.createElement(KeyIcon, {
2932
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
2923
2933
  width: width,
2924
2934
  height: height,
2925
2935
  color: color,
@@ -2927,7 +2937,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2927
2937
  });
2928
2938
 
2929
2939
  default:
2930
- return /*#__PURE__*/React.createElement(StarIcon, {
2940
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
2931
2941
  width: width,
2932
2942
  height: height,
2933
2943
  color: color,
@@ -2936,21 +2946,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2936
2946
  }
2937
2947
  };
2938
2948
  PremiumStoryIcon.propTypes = {
2939
- width: PropTypes.string,
2940
- height: PropTypes.string,
2941
- color: PropTypes.string,
2942
- iconType: PropTypes.string,
2943
- positionTop: PropTypes.string
2949
+ width: PropTypes__default["default"].string,
2950
+ height: PropTypes__default["default"].string,
2951
+ color: PropTypes__default["default"].string,
2952
+ iconType: PropTypes__default["default"].string,
2953
+ positionTop: PropTypes__default["default"].string
2944
2954
  };
2945
2955
 
2946
2956
  function LiveIcon() {
2947
- return /*#__PURE__*/React.createElement("svg", {
2957
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2948
2958
  className: "live-icon",
2949
2959
  xmlns: "http://www.w3.org/2000/svg",
2950
2960
  width: "25",
2951
2961
  height: "24",
2952
2962
  viewBox: "0 0 25 24"
2953
- }, /*#__PURE__*/React.createElement("path", {
2963
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2954
2964
  fill: "#ff5858",
2955
2965
  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"
2956
2966
  }));
@@ -3007,37 +3017,37 @@ var Headline = function Headline(_ref) {
3007
3017
  var wrapperClass = premiumStory ? "wrapper" : "";
3008
3018
  var iconSize = "24px";
3009
3019
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3010
- return /*#__PURE__*/React.createElement("div", {
3020
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3011
3021
  "data-test-id": "headline",
3012
3022
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
3013
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3023
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3014
3024
  width: iconSize,
3015
3025
  height: iconSize,
3016
3026
  color: iconColor,
3017
3027
  iconType: iconStyle,
3018
3028
  positionTop: positionHeadline()
3019
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3029
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3020
3030
  href: getStoryUrl(story, "/".concat(story.slug)),
3021
3031
  externalLink: isExternalStory(story),
3022
3032
  "aria-label": "headline"
3023
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3033
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3024
3034
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3025
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3035
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3026
3036
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3027
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3037
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3028
3038
  };
3029
3039
  Headline.propTypes = {
3030
3040
  /** The Story Object from the API response */
3031
- story: PropTypes.object.isRequired,
3041
+ story: PropTypes__default["default"].object.isRequired,
3032
3042
 
3033
3043
  /** Header tags ranging h1-h6, where h[headerLevel] */
3034
- headerLevel: PropTypes.string,
3035
- premiumStoryIconConfig: PropTypes.shape({
3036
- iconColor: PropTypes.string,
3037
- iconType: PropTypes.string,
3038
- enablePremiumStoryIcon: PropTypes.bool
3044
+ headerLevel: PropTypes__default["default"].string,
3045
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3046
+ iconColor: PropTypes__default["default"].string,
3047
+ iconType: PropTypes__default["default"].string,
3048
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3039
3049
  }),
3040
- isLink: PropTypes.bool
3050
+ isLink: PropTypes__default["default"].bool
3041
3051
  };
3042
3052
  Headline.defaultProps = {
3043
3053
  headerLevel: "6",
@@ -3064,7 +3074,7 @@ var Subheadline = function Subheadline(_ref) {
3064
3074
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3065
3075
  if (!subheadline) return null;
3066
3076
  var textColor = getTextColor(config.theme);
3067
- return /*#__PURE__*/React.createElement("div", {
3077
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3068
3078
  style: {
3069
3079
  WebkitLineClamp: lineClamp
3070
3080
  },
@@ -3074,15 +3084,15 @@ var Subheadline = function Subheadline(_ref) {
3074
3084
  };
3075
3085
  Subheadline.propTypes = {
3076
3086
  /** The Story Object from the API response */
3077
- story: PropTypes.object.isRequired,
3087
+ story: PropTypes__default["default"].object.isRequired,
3078
3088
  // Restricts the number of lines for subheadline.
3079
- lineClamp: PropTypes.number,
3089
+ lineClamp: PropTypes__default["default"].number,
3080
3090
 
3081
3091
  /** Number of characters to truncate the subheadline */
3082
- truncateChars: PropTypes.number,
3083
- clazzName: PropTypes.string,
3084
- forceShowAtom: PropTypes.bool,
3085
- showFullContent: PropTypes.bool
3092
+ truncateChars: PropTypes__default["default"].number,
3093
+ clazzName: PropTypes__default["default"].string,
3094
+ forceShowAtom: PropTypes__default["default"].bool,
3095
+ showFullContent: PropTypes__default["default"].bool
3086
3096
  };
3087
3097
  Subheadline.defaultProps = {
3088
3098
  forceShowAtom: false,
@@ -3108,18 +3118,18 @@ var TimeStamp = function TimeStamp(_ref) {
3108
3118
  var time = story["last-published-at"] || story["first-published-at"];
3109
3119
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3110
3120
  var textColor = getTextColor(configState.theme);
3111
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3121
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3112
3122
  "data-test-id": "publish-time",
3113
3123
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
3114
- }, /*#__PURE__*/React.createElement("div", {
3124
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3115
3125
  className: "timestamp-m_time-wrapper__3O2lM"
3116
3126
  }, getTimeStamp(time, formatter, config))));
3117
3127
  };
3118
3128
  TimeStamp.propTypes = {
3119
3129
  /** The Story Object from the API response */
3120
- story: PropTypes.object,
3121
- isBottom: PropTypes.bool,
3122
- config: PropTypes.object
3130
+ story: PropTypes__default["default"].object,
3131
+ isBottom: PropTypes__default["default"].bool,
3132
+ config: PropTypes__default["default"].object
3123
3133
  };
3124
3134
 
3125
3135
  var _styleModuleImportMap$a = {
@@ -3162,10 +3172,10 @@ var AuthorBase = function AuthorBase(_ref) {
3162
3172
  return null;
3163
3173
  }
3164
3174
 
3165
- return /*#__PURE__*/React.createElement("div", {
3175
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3166
3176
  "data-test-id": "author-image",
3167
3177
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
3168
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3178
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3169
3179
  slug: avatarS3Key,
3170
3180
  "aspect-ratio": [1, 1],
3171
3181
  defaultWidth: 400,
@@ -3173,14 +3183,14 @@ var AuthorBase = function AuthorBase(_ref) {
3173
3183
  auto: ["format", "compress"]
3174
3184
  },
3175
3185
  alt: authorName
3176
- }) : /*#__PURE__*/React.createElement("img", {
3186
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3177
3187
  src: avatarUrl
3178
3188
  })));
3179
3189
  };
3180
3190
 
3181
3191
  var isPrefix = function isPrefix(dir) {
3182
3192
  if (prefix) {
3183
- return /*#__PURE__*/React.createElement("div", {
3193
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3184
3194
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
3185
3195
  }, prefix);
3186
3196
  }
@@ -3188,11 +3198,11 @@ var AuthorBase = function AuthorBase(_ref) {
3188
3198
  return !hideAuthorImage && authorImage(dir);
3189
3199
  };
3190
3200
 
3191
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3201
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3192
3202
  href: "".concat(mountAt, "/author/") + slug,
3193
3203
  "aria-label": "author-name",
3194
3204
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
3195
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3205
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3196
3206
  "data-test-id": "author-name",
3197
3207
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
3198
3208
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3204,18 +3214,18 @@ function mapStateToProps$1(state) {
3204
3214
  };
3205
3215
  }
3206
3216
 
3207
- var Author = connect(mapStateToProps$1)(AuthorBase);
3217
+ var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
3208
3218
  AuthorBase.propTypes = {
3209
3219
  /** The Story Object from the API response */
3210
- story: PropTypes.object.isRequired,
3220
+ story: PropTypes__default["default"].object.isRequired,
3211
3221
 
3212
3222
  /** Hide Author Avatar Image */
3213
- hideAuthorImage: PropTypes.bool,
3223
+ hideAuthorImage: PropTypes__default["default"].bool,
3214
3224
  // fix Author bottom of the storyCard
3215
- isBottom: PropTypes.bool,
3225
+ isBottom: PropTypes__default["default"].bool,
3216
3226
  // fix prefix before the author name
3217
- prefix: PropTypes.string,
3218
- config: PropTypes.object
3227
+ prefix: PropTypes__default["default"].string,
3228
+ config: PropTypes__default["default"].object
3219
3229
  };
3220
3230
  AuthorBase.defaultProps = {
3221
3231
  hideAuthorImage: false,
@@ -3236,14 +3246,14 @@ var Dot = function Dot(_ref) {
3236
3246
  height = _ref$height === void 0 ? "3px" : _ref$height,
3237
3247
  _ref$color = _ref.color,
3238
3248
  color = _ref$color === void 0 ? "light" : _ref$color;
3239
- return /*#__PURE__*/React.createElement("div", {
3249
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3240
3250
  className: _getClassName(color, _styleModuleImportMap$9)
3241
- }, /*#__PURE__*/React.createElement("svg", {
3251
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3242
3252
  xmlns: "http://www.w3.org/2000/svg",
3243
3253
  width: width,
3244
3254
  height: height,
3245
3255
  viewBox: "0 0 3 3"
3246
- }, /*#__PURE__*/React.createElement("circle", {
3256
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3247
3257
  cx: "87",
3248
3258
  cy: "9",
3249
3259
  r: "1",
@@ -3254,9 +3264,9 @@ var Dot = function Dot(_ref) {
3254
3264
  };
3255
3265
  Dot.propTypes = {
3256
3266
  /** height , width and color of the dot icon */
3257
- color: PropTypes.string,
3258
- width: PropTypes.string,
3259
- height: PropTypes.string
3267
+ color: PropTypes__default["default"].string,
3268
+ width: PropTypes__default["default"].string,
3269
+ height: PropTypes__default["default"].string
3260
3270
  };
3261
3271
 
3262
3272
  var _styleModuleImportMap$8 = {
@@ -3272,22 +3282,22 @@ var Divider = function Divider(_ref) {
3272
3282
  height = _ref$height === void 0 ? "10" : _ref$height,
3273
3283
  _ref$color = _ref.color,
3274
3284
  color = _ref$color === void 0 ? "light" : _ref$color;
3275
- return /*#__PURE__*/React.createElement("div", {
3285
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3276
3286
  className: _getClassName(color, _styleModuleImportMap$8)
3277
- }, /*#__PURE__*/React.createElement("svg", {
3287
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3278
3288
  xmlns: "http://www.w3.org/2000/svg",
3279
3289
  width: width,
3280
3290
  height: height
3281
- }, /*#__PURE__*/React.createElement("path", {
3291
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3282
3292
  fill: "inherit",
3283
3293
  d: "M0 0h1v10H0z"
3284
3294
  })));
3285
3295
  };
3286
3296
  Divider.propTypes = {
3287
3297
  /** height , width and color of the dot icon */
3288
- color: PropTypes.string,
3289
- width: PropTypes.string,
3290
- height: PropTypes.string
3298
+ color: PropTypes__default["default"].string,
3299
+ width: PropTypes__default["default"].string,
3300
+ height: PropTypes__default["default"].string
3291
3301
  };
3292
3302
 
3293
3303
  var _styleModuleImportMap$7 = {
@@ -3310,23 +3320,23 @@ var ReadTime = function ReadTime(_ref) {
3310
3320
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3311
3321
  if (!showReadTime || !readTime) return null;
3312
3322
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3313
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3323
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3314
3324
  "data-test-id": "read-time",
3315
3325
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
3316
- }, /*#__PURE__*/React.createElement("span", {
3326
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3317
3327
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3318
- }, /*#__PURE__*/React.createElement(Dot, {
3328
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3319
3329
  color: textColor
3320
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3330
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3321
3331
  };
3322
3332
  ReadTime.propTypes = {
3323
- story: PropTypes.shape({
3324
- "read-time": PropTypes.number
3333
+ story: PropTypes__default["default"].shape({
3334
+ "read-time": PropTypes__default["default"].number
3325
3335
  }),
3326
- opts: PropTypes.shape({
3327
- showReadTime: PropTypes.bool
3336
+ opts: PropTypes__default["default"].shape({
3337
+ showReadTime: PropTypes__default["default"].bool
3328
3338
  }),
3329
- isLightTheme: PropTypes.bool
3339
+ isLightTheme: PropTypes__default["default"].bool
3330
3340
  };
3331
3341
 
3332
3342
  var _styleModuleImportMap$6 = {
@@ -3357,33 +3367,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3357
3367
 
3358
3368
  var getSeparator = function getSeparator() {
3359
3369
  if (separator === "divider") {
3360
- return /*#__PURE__*/React.createElement(Divider, {
3370
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3361
3371
  color: textColor
3362
3372
  });
3363
3373
  }
3364
3374
 
3365
- return /*#__PURE__*/React.createElement(Dot, {
3375
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3366
3376
  color: textColor
3367
3377
  });
3368
3378
  };
3369
3379
 
3370
3380
  var getTimeStamp = function getTimeStamp() {
3371
3381
  if (!isTime) return null;
3372
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3382
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3373
3383
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
3374
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3384
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3375
3385
  story: story,
3376
3386
  config: config
3377
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3387
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3378
3388
  story: story,
3379
3389
  opts: config,
3380
3390
  isLightTheme: isLightTheme
3381
3391
  }));
3382
3392
  };
3383
3393
 
3384
- return /*#__PURE__*/React.createElement("div", {
3394
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3385
3395
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
3386
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3396
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3387
3397
  story: story,
3388
3398
  isBottom: true,
3389
3399
  hideAuthorImage: hideAuthorImage,
@@ -3391,19 +3401,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3391
3401
  }), getTimeStamp()) : getTimeStamp());
3392
3402
  };
3393
3403
  AuthorWithTime.propTypes = {
3394
- story: PropTypes.object,
3404
+ story: PropTypes__default["default"].object,
3395
3405
 
3396
3406
  /** Style of separator between the Author & Timestamp */
3397
- separator: PropTypes.oneOf(["dot", "divider"]),
3407
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3398
3408
 
3399
3409
  /** hide the author image */
3400
- hideAuthorImage: PropTypes.bool,
3410
+ hideAuthorImage: PropTypes__default["default"].bool,
3401
3411
  // fix author and time at the end
3402
- isBottom: PropTypes.bool,
3412
+ isBottom: PropTypes__default["default"].bool,
3403
3413
  // fix prefix before the author name
3404
- prefix: PropTypes.string,
3405
- config: PropTypes.object,
3406
- isLightTheme: PropTypes.bool
3414
+ prefix: PropTypes__default["default"].string,
3415
+ config: PropTypes__default["default"].object,
3416
+ isLightTheme: PropTypes__default["default"].bool
3407
3417
  };
3408
3418
  AuthorWithTime.defaultProps = {
3409
3419
  separator: "dot",
@@ -3481,27 +3491,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3481
3491
  height = _ref$height === void 0 ? 30 : _ref$height,
3482
3492
  _ref$iconColor = _ref.iconColor,
3483
3493
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
3484
- return /*#__PURE__*/React.createElement("svg", {
3494
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3485
3495
  width: width,
3486
3496
  height: height,
3487
3497
  viewBox: "0 0 102 76",
3488
3498
  version: "1.1"
3489
- }, /*#__PURE__*/React.createElement("g", {
3499
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3490
3500
  id: "demo-home-copy",
3491
3501
  stroke: "none",
3492
3502
  strokeWidth: "1",
3493
3503
  fill: "none",
3494
3504
  fillRule: "evenodd",
3495
3505
  transform: "translate(-377.000000, -314.000000)"
3496
- }, /*#__PURE__*/React.createElement("g", {
3506
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3497
3507
  id: "Group-13",
3498
3508
  transform: "translate(377.000000, 314.000000)"
3499
- }, /*#__PURE__*/React.createElement("path", {
3509
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3500
3510
  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",
3501
3511
  id: "Combined-Shape",
3502
3512
  fill: iconColor,
3503
3513
  fillRule: "nonzero"
3504
- }), /*#__PURE__*/React.createElement("rect", {
3514
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
3505
3515
  id: "Rectangle-19",
3506
3516
  stroke: iconColor,
3507
3517
  strokeWidth: "3",
@@ -3513,24 +3523,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3513
3523
  }))));
3514
3524
  };
3515
3525
  ImageFallbackIcon.propTypes = {
3516
- width: PropTypes.object,
3517
- height: PropTypes.object,
3518
- iconColor: PropTypes.object
3526
+ width: PropTypes__default["default"].object,
3527
+ height: PropTypes__default["default"].object,
3528
+ iconColor: PropTypes__default["default"].object
3519
3529
  };
3520
3530
 
3521
3531
  var imageFallback = function imageFallback() {
3522
- return /*#__PURE__*/React.createElement("div", {
3532
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3523
3533
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3524
- }, /*#__PURE__*/React.createElement("figure", {
3534
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3525
3535
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3526
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3536
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3527
3537
  };
3528
3538
 
3529
3539
  var FallbackImage = function FallbackImage(_ref) {
3530
3540
  var slug = _ref.slug;
3531
3541
 
3532
3542
  if (slug) {
3533
- return /*#__PURE__*/React.createElement(Link, {
3543
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3534
3544
  href: slug,
3535
3545
  "aria-label": "image-fallback"
3536
3546
  }, imageFallback());
@@ -3539,23 +3549,23 @@ var FallbackImage = function FallbackImage(_ref) {
3539
3549
  }
3540
3550
  };
3541
3551
  FallbackImage.propTypes = {
3542
- slug: PropTypes.string
3552
+ slug: PropTypes__default["default"].string
3543
3553
  };
3544
3554
 
3545
3555
  var HyperLinkIcon = function HyperLinkIcon() {
3546
- return /*#__PURE__*/React.createElement("svg", {
3556
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3547
3557
  xmlns: "http://www.w3.org/2000/svg",
3548
3558
  width: "36",
3549
3559
  height: "28"
3550
- }, /*#__PURE__*/React.createElement("g", {
3560
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3551
3561
  fill: "none",
3552
3562
  fillRule: "evenodd"
3553
- }, /*#__PURE__*/React.createElement("rect", {
3563
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3554
3564
  width: "36",
3555
3565
  height: "28",
3556
3566
  fill: "#3D6FCF",
3557
3567
  rx: "4"
3558
- }), /*#__PURE__*/React.createElement("path", {
3568
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3559
3569
  stroke: "#FFF",
3560
3570
  strokeLinecap: "round",
3561
3571
  strokeLinejoin: "round",
@@ -3568,16 +3578,16 @@ var HyperLink = function HyperLink(_ref) {
3568
3578
  var _ref$hyperLink = _ref.hyperLink,
3569
3579
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3570
3580
  if (!hyperLink) return null;
3571
- return /*#__PURE__*/React.createElement(Link, {
3581
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3572
3582
  href: hyperLink,
3573
3583
  "aria-label": "hyperlink-button",
3574
3584
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3575
3585
  target: "_blank",
3576
3586
  rel: "noopener noreferrer"
3577
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3587
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3578
3588
  };
3579
3589
  HyperLink.propTypes = {
3580
- hyperLink: PropTypes.string
3590
+ hyperLink: PropTypes__default["default"].string
3581
3591
  };
3582
3592
 
3583
3593
  var _styleModuleImportMap$5 = {
@@ -3613,7 +3623,7 @@ var HeroImage = function HeroImage(_ref) {
3613
3623
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3614
3624
  return null;
3615
3625
  } : _config$StoryTemplate;
3616
- var showImagePlaceholder = useSelector(function (state) {
3626
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3617
3627
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3618
3628
  });
3619
3629
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3649,37 +3659,37 @@ var HeroImage = function HeroImage(_ref) {
3649
3659
  var fallbackImage = function fallbackImage() {
3650
3660
  if (!slug) {
3651
3661
  if (fallbackImageUrl && !isStoryPageImage) {
3652
- return /*#__PURE__*/React.createElement("figure", {
3662
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3653
3663
  style: {
3654
3664
  paddingTop: imagePadding + "%"
3655
3665
  },
3656
3666
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3657
- }, /*#__PURE__*/React.createElement("img", {
3667
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3658
3668
  className: "qt-image",
3659
3669
  "data-src": "".concat(fallbackImageUrl),
3660
3670
  alt: "image-fallback"
3661
3671
  }));
3662
3672
  }
3663
3673
 
3664
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3674
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3665
3675
  "data-test-id": "arr--fallback-hero-image",
3666
3676
  style: {
3667
3677
  paddingTop: imagePadding + "%"
3668
3678
  },
3669
3679
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3670
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3680
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3671
3681
  storyTemplate: story["story-template"]
3672
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3682
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3673
3683
  }
3674
3684
 
3675
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3685
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3676
3686
  style: {
3677
3687
  paddingTop: imagePadding + "%"
3678
3688
  },
3679
3689
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3680
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3690
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3681
3691
  storyTemplate: story["story-template"]
3682
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3692
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3683
3693
  story: story,
3684
3694
  aspectRatio: imageAspectRatio,
3685
3695
  defaultWidth: defaultWidth,
@@ -3688,15 +3698,15 @@ var HeroImage = function HeroImage(_ref) {
3688
3698
  auto: ["format", "compress"],
3689
3699
  fit: "max"
3690
3700
  }
3691
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3701
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3692
3702
  hyperLink: hyperLink
3693
3703
  }));
3694
3704
  };
3695
3705
 
3696
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3706
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3697
3707
  "data-test-id": "arr--hero-image",
3698
3708
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
3699
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3709
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3700
3710
  "data-test-id": "arr--hero-image",
3701
3711
  href: getStoryUrl(story, "/".concat(story.slug)),
3702
3712
  externalLink: isExternalStory(story),
@@ -3706,30 +3716,30 @@ var HeroImage = function HeroImage(_ref) {
3706
3716
  };
3707
3717
  HeroImage.propTypes = {
3708
3718
  /** The Story Object from the API response */
3709
- story: PropTypes.object.isRequired,
3719
+ story: PropTypes__default["default"].object.isRequired,
3710
3720
 
3711
3721
  /** Removes the Hero Image padding for the image to bleed over the margin */
3712
- FullBleed: PropTypes.bool,
3722
+ FullBleed: PropTypes__default["default"].bool,
3713
3723
 
3714
3724
  /** The default width for the image, in case the browser does not support srcset */
3715
- defaultWidth: PropTypes.number,
3725
+ defaultWidth: PropTypes__default["default"].number,
3716
3726
 
3717
3727
  /** The list of available widths */
3718
- widths: PropTypes.array,
3728
+ widths: PropTypes__default["default"].array,
3719
3729
  // fatch the correct hero image
3720
- aspectRatio: PropTypes.array,
3730
+ aspectRatio: PropTypes__default["default"].array,
3721
3731
  // Hints for the browser to choose the best size
3722
3732
 
3723
3733
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3724
- isHorizontal: PropTypes.bool,
3734
+ isHorizontal: PropTypes__default["default"].bool,
3725
3735
 
3726
3736
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3727
- isHorizontalMobile: PropTypes.bool,
3737
+ isHorizontalMobile: PropTypes__default["default"].bool,
3728
3738
  // this prop is responsive for rendering fallback image on story page
3729
- defaultFallback: PropTypes.bool,
3730
- isHorizontalWithImageLast: PropTypes.bool,
3731
- isStoryPageImage: PropTypes.bool,
3732
- config: PropTypes.object
3739
+ defaultFallback: PropTypes__default["default"].bool,
3740
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3741
+ isStoryPageImage: PropTypes__default["default"].bool,
3742
+ config: PropTypes__default["default"].object
3733
3743
  };
3734
3744
  HeroImage.defaultProps = {
3735
3745
  FullBleed: true,
@@ -3779,22 +3789,22 @@ var SectionTag = function SectionTag(_ref) {
3779
3789
  }
3780
3790
 
3781
3791
  if (!isSection) return null;
3782
- return /*#__PURE__*/React.createElement(Link, {
3792
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3783
3793
  href: getUrl,
3784
3794
  className: "arrow-component arr--section-name",
3785
3795
  "aria-label": "section-name"
3786
- }, /*#__PURE__*/React.createElement("div", {
3796
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3787
3797
  "data-test-id": "sectionTag",
3788
3798
  style: {
3789
3799
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3790
3800
  },
3791
3801
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$4)
3792
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3802
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3793
3803
  className: "section-m_border-left__2oUyp",
3794
3804
  style: {
3795
3805
  color: sectionTagBorderColor
3796
3806
  }
3797
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3807
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3798
3808
  className: "section-m_border-bottom__3cRoD",
3799
3809
  style: {
3800
3810
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3803,13 +3813,13 @@ var SectionTag = function SectionTag(_ref) {
3803
3813
  };
3804
3814
  SectionTag.propTypes = {
3805
3815
  /** The Story Object from the API response */
3806
- story: PropTypes.object.isRequired,
3816
+ story: PropTypes__default["default"].object.isRequired,
3807
3817
 
3808
3818
  /** The style template for section tag */
3809
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3810
- borderColor: PropTypes.string,
3811
- solidBorderColor: PropTypes.string,
3812
- isLightTheme: PropTypes.bool
3819
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3820
+ borderColor: PropTypes__default["default"].string,
3821
+ solidBorderColor: PropTypes__default["default"].string,
3822
+ isLightTheme: PropTypes__default["default"].bool
3813
3823
  };
3814
3824
  SectionTag.defaultProps = {
3815
3825
  template: "",
@@ -3858,7 +3868,7 @@ var StoryCard = function StoryCard(_ref) {
3858
3868
  prefix = _ref.prefix,
3859
3869
  config = _ref.config,
3860
3870
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
3861
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
3871
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
3862
3872
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
3863
3873
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
3864
3874
 
@@ -3868,7 +3878,7 @@ var StoryCard = function StoryCard(_ref) {
3868
3878
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
3869
3879
  var textColor = getTextColor(theme);
3870
3880
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
3871
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
3881
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
3872
3882
  story: story,
3873
3883
  aspectRatio: aspectRatio,
3874
3884
  border: border,
@@ -3882,7 +3892,7 @@ var StoryCard = function StoryCard(_ref) {
3882
3892
  config: config,
3883
3893
  isHorizontalWithImageLast: isHorizontalWithImageLast
3884
3894
  });
3885
- return /*#__PURE__*/React.createElement("div", {
3895
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3886
3896
  "data-test-id": "story-card",
3887
3897
  style: {
3888
3898
  backgroundColor: theme,
@@ -3911,91 +3921,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
3911
3921
  var SectionTagborderColor = rgbToHex(borderColor);
3912
3922
  var _config$localizationC = config.localizationConfig,
3913
3923
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
3914
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
3924
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3915
3925
  config: config,
3916
3926
  story: story,
3917
3927
  isHorizontal: true,
3918
3928
  isHorizontalMobile: isHorizontalMobile,
3919
3929
  aspectRatio: aspectRatio
3920
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
3930
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3921
3931
  config: config,
3922
3932
  story: story,
3923
3933
  isHorizontalWithImageLast: true,
3924
3934
  isHorizontalMobile: isHorizontalMobile,
3925
3935
  aspectRatio: aspectRatio
3926
- }) : /*#__PURE__*/React.createElement(HeroImage, {
3936
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3927
3937
  story: story,
3928
3938
  config: config,
3929
3939
  isHorizontalMobile: isHorizontalMobile,
3930
3940
  aspectRatio: aspectRatio
3931
- }), /*#__PURE__*/React.createElement("div", {
3941
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
3932
3942
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
3933
- }, /*#__PURE__*/React.createElement(SectionTag, {
3943
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
3934
3944
  story: story,
3935
3945
  borderColor: SectionTagborderColor
3936
- }), /*#__PURE__*/React.createElement(Headline, {
3946
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
3937
3947
  story: story,
3938
3948
  headerLevel: headerLevel,
3939
3949
  premiumStoryIconConfig: config
3940
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
3950
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
3941
3951
  config: localizationConfig,
3942
3952
  story: story,
3943
3953
  isBottom: true,
3944
3954
  prefix: prefix,
3945
3955
  hideAuthorImage: hideAuthorImage
3946
- }), /*#__PURE__*/React.createElement(Subheadline, {
3956
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
3947
3957
  story: story
3948
3958
  })));
3949
3959
  };
3950
3960
 
3951
3961
  DefaultStoryCard.propTypes = {
3952
- story: PropTypes.object.isRequired,
3953
- border: PropTypes.oneOfType([PropTypes.string]),
3954
- isBottom: PropTypes.bool,
3955
- isHorizontal: PropTypes.bool,
3956
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
3957
- isHorizontalMobile: PropTypes.bool,
3958
- centerAlign: PropTypes.bool,
3959
- headerLevel: PropTypes.string,
3960
- borderColor: PropTypes.string,
3961
- hideAuthorImage: PropTypes.bool,
3962
- prefix: PropTypes.string,
3963
- config: PropTypes.object,
3964
- isHorizontalWithImageLast: PropTypes.bool
3962
+ story: PropTypes__default["default"].object.isRequired,
3963
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
3964
+ isBottom: PropTypes__default["default"].bool,
3965
+ isHorizontal: PropTypes__default["default"].bool,
3966
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
3967
+ isHorizontalMobile: PropTypes__default["default"].bool,
3968
+ centerAlign: PropTypes__default["default"].bool,
3969
+ headerLevel: PropTypes__default["default"].string,
3970
+ borderColor: PropTypes__default["default"].string,
3971
+ hideAuthorImage: PropTypes__default["default"].bool,
3972
+ prefix: PropTypes__default["default"].string,
3973
+ config: PropTypes__default["default"].object,
3974
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
3965
3975
  };
3966
3976
  StoryCard.propTypes = {
3967
3977
  /** The Story Object from the API response */
3968
- story: PropTypes.object.isRequired,
3969
- children: PropTypes.node,
3978
+ story: PropTypes__default["default"].object.isRequired,
3979
+ children: PropTypes__default["default"].node,
3970
3980
 
3971
3981
  /** Flip the Story Card to Horizonal mode */
3972
- isHorizontal: PropTypes.bool,
3982
+ isHorizontal: PropTypes__default["default"].bool,
3973
3983
 
3974
3984
  /** Add border to the Story Card */
3975
- border: PropTypes.oneOfType([PropTypes.string]),
3985
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
3976
3986
  // story card with background image
3977
- useImageAsBackground: PropTypes.bool,
3987
+ useImageAsBackground: PropTypes__default["default"].bool,
3978
3988
  // story card content overlap with image
3979
- bgImgContentOverlap: PropTypes.bool,
3989
+ bgImgContentOverlap: PropTypes__default["default"].bool,
3980
3990
 
3981
3991
  /** add aspect ratio for hero image */
3982
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
3992
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
3983
3993
 
3984
3994
  /** add theme(dark /light/custom color) for storycard */
3985
- theme: PropTypes.string,
3995
+ theme: PropTypes__default["default"].string,
3986
3996
 
3987
3997
  /** flip the story card mobile design horizontal */
3988
- isHorizontalMobile: PropTypes.bool,
3998
+ isHorizontalMobile: PropTypes__default["default"].bool,
3989
3999
  // make content center align in desktop and left align in mobile
3990
- centerAlign: PropTypes.bool,
3991
- headerLevel: PropTypes.string,
3992
- borderColor: PropTypes.string,
4000
+ centerAlign: PropTypes__default["default"].bool,
4001
+ headerLevel: PropTypes__default["default"].string,
4002
+ borderColor: PropTypes__default["default"].string,
3993
4003
  // handle author image through storycard
3994
- hideAuthorImage: PropTypes.bool,
4004
+ hideAuthorImage: PropTypes__default["default"].bool,
3995
4005
  // handle author prefix through storycard
3996
- prefix: PropTypes.string,
3997
- config: PropTypes.object,
3998
- isHorizontalWithImageLast: PropTypes.bool
4006
+ prefix: PropTypes__default["default"].string,
4007
+ config: PropTypes__default["default"].object,
4008
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
3999
4009
  };
4000
4010
  StoryCard.defaultProps = {
4001
4011
  isHorizontal: false,
@@ -4043,7 +4053,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4043
4053
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
4044
4054
 
4045
4055
  var borderBottomStyle = function borderBottomStyle() {
4046
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
4056
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
4047
4057
  className: "collection-name-m_border-bottom__1MnlV",
4048
4058
  style: {
4049
4059
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -4103,40 +4113,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4103
4113
  }
4104
4114
  };
4105
4115
 
4106
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
4116
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
4107
4117
  style: {
4108
4118
  borderBottom: borderBottomFullStyle
4109
4119
  },
4110
4120
  "data-test-id": "collection-name",
4111
4121
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$2)
4112
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
4122
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
4113
4123
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
4114
4124
  style: {
4115
4125
  color: CollectionNameBorderColor,
4116
4126
  fontSize: getBorderHeight()
4117
4127
  }
4118
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
4128
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
4119
4129
  href: slug,
4120
4130
  "aria-label": "collection-name"
4121
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
4131
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
4122
4132
  };
4123
4133
  CollectionNameBase.propTypes = {
4124
4134
  /** Collection name border color */
4125
- collectionNameBorderColor: PropTypes$1.string,
4135
+ collectionNameBorderColor: PropTypes.PropTypes.string,
4126
4136
 
4127
4137
  /** The Collection Object from the API response */
4128
- collection: PropTypes$1.object,
4138
+ collection: PropTypes.PropTypes.object,
4129
4139
 
4130
4140
  /** The publisher config from the API response */
4131
- config: PropTypes$1.object,
4141
+ config: PropTypes.PropTypes.object,
4132
4142
 
4133
4143
  /** The style template for the component */
4134
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
4144
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
4135
4145
 
4136
4146
  /** Header tags ranging h1-h6, where h[headerLevel] */
4137
- headerLevel: PropTypes$1.string,
4138
- customCollectionName: PropTypes$1.string,
4139
- navigate: PropTypes$1.bool
4147
+ headerLevel: PropTypes.PropTypes.string,
4148
+ customCollectionName: PropTypes.PropTypes.string,
4149
+ navigate: PropTypes.PropTypes.bool
4140
4150
  };
4141
4151
  CollectionNameBase.defaultProps = {
4142
4152
  collectionNameTemplate: "",
@@ -4149,7 +4159,7 @@ function mapStateToProps(state) {
4149
4159
  };
4150
4160
  }
4151
4161
 
4152
- var CollectionName = connect(mapStateToProps)(CollectionNameBase);
4162
+ var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
4153
4163
 
4154
4164
  var _styleModuleImportMap$1 = {
4155
4165
  "./storycardContent.m.css": {
@@ -4172,14 +4182,14 @@ var StorycardContent = function StorycardContent(_ref) {
4172
4182
  var SectionTagborderColor = rgbToHex(borderColor);
4173
4183
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4174
4184
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4175
- return /*#__PURE__*/React.createElement("div", {
4185
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4176
4186
  "data-test-id": "story-card-content",
4177
4187
  style: {
4178
4188
  backgroundColor: theme,
4179
4189
  color: textColor
4180
4190
  },
4181
4191
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$1)
4182
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
4192
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4183
4193
  story: story,
4184
4194
  headerLevel: headerLevel,
4185
4195
  isHorizontalMobile: isHorizontalMobile,
@@ -4197,37 +4207,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4197
4207
  var SectionTagborderColor = rgbToHex(borderColor);
4198
4208
  var _config$localizationC = config.localizationConfig,
4199
4209
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4200
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
4210
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4201
4211
  story: story,
4202
4212
  borderColor: SectionTagborderColor
4203
- }), /*#__PURE__*/React.createElement(Headline, {
4213
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4204
4214
  story: story,
4205
4215
  headerLevel: headerLevel,
4206
4216
  premiumStoryIconConfig: config
4207
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4217
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4208
4218
  config: localizationConfig,
4209
4219
  story: story
4210
4220
  }));
4211
4221
  };
4212
4222
 
4213
4223
  DefaultStoryCardContent.propTypes = {
4214
- story: PropTypes.object.isRequired,
4215
- border: PropTypes.string,
4216
- theme: PropTypes.string,
4217
- isHorizontalMobile: PropTypes.bool,
4218
- headerLevel: PropTypes.string,
4219
- borderColor: PropTypes.string,
4220
- config: PropTypes.object
4224
+ story: PropTypes__default["default"].object.isRequired,
4225
+ border: PropTypes__default["default"].string,
4226
+ theme: PropTypes__default["default"].string,
4227
+ isHorizontalMobile: PropTypes__default["default"].bool,
4228
+ headerLevel: PropTypes__default["default"].string,
4229
+ borderColor: PropTypes__default["default"].string,
4230
+ config: PropTypes__default["default"].object
4221
4231
  };
4222
4232
  StorycardContent.propTypes = {
4223
- story: PropTypes.object.isRequired,
4224
- children: PropTypes.node,
4225
- theme: PropTypes.string,
4226
- border: PropTypes.string,
4227
- isHorizontalMobile: PropTypes.bool,
4228
- headerLevel: PropTypes.string,
4229
- borderColor: PropTypes.string,
4230
- config: PropTypes.object
4233
+ story: PropTypes__default["default"].object.isRequired,
4234
+ children: PropTypes__default["default"].node,
4235
+ theme: PropTypes__default["default"].string,
4236
+ border: PropTypes__default["default"].string,
4237
+ isHorizontalMobile: PropTypes__default["default"].bool,
4238
+ headerLevel: PropTypes__default["default"].string,
4239
+ borderColor: PropTypes__default["default"].string,
4240
+ config: PropTypes__default["default"].object
4231
4241
  };
4232
4242
 
4233
4243
  function _defineProperty(obj, key, value) {
@@ -4277,26 +4287,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4277
4287
  if (!showButton) return null;
4278
4288
  var textColor = getTextColor(theme);
4279
4289
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4280
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4290
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4281
4291
  onClick: onClick,
4282
4292
  "data-test-id": "load-more",
4283
4293
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4284
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4294
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4285
4295
  href: slug,
4286
4296
  navigateTo: navigate,
4287
4297
  "data-test-id": "load-more",
4288
4298
  "aria-label": "load-more"
4289
- }, /*#__PURE__*/React.createElement("div", {
4299
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4290
4300
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4291
4301
  }, buttonText));
4292
4302
  };
4293
4303
  LoadmoreButton.propTypes = {
4294
- collection: PropTypes.object,
4295
- template: PropTypes.string,
4296
- config: PropTypes.object,
4297
- onClick: PropTypes.func,
4298
- navigate: PropTypes.func,
4299
- qtConfig: PropTypes.object
4304
+ collection: PropTypes__default["default"].object,
4305
+ template: PropTypes__default["default"].string,
4306
+ config: PropTypes__default["default"].object,
4307
+ onClick: PropTypes__default["default"].func,
4308
+ navigate: PropTypes__default["default"].func,
4309
+ qtConfig: PropTypes__default["default"].object
4300
4310
  };
4301
4311
 
4302
4312
  var ListComponentBase = function ListComponentBase(_ref) {
@@ -4308,7 +4318,7 @@ var ListComponentBase = function ListComponentBase(_ref) {
4308
4318
  hideButton = _ref.hideButton,
4309
4319
  _ref$authorPrefix = _ref.authorPrefix,
4310
4320
  authorPrefix = _ref$authorPrefix === void 0 ? "By" : _ref$authorPrefix;
4311
- var storyItems = collectionToStories(collection);
4321
+ var storyItems = components.collectionToStories(collection);
4312
4322
 
4313
4323
  if (storyItems.length < 1) {
4314
4324
  return null;
@@ -4328,8 +4338,8 @@ var ListComponentBase = function ListComponentBase(_ref) {
4328
4338
  footerButton = _config$footerButton === void 0 ? "" : _config$footerButton,
4329
4339
  _config$localizationC = config.localizationConfig,
4330
4340
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4331
- var dispatch = useDispatch();
4332
- var qtConfig = useSelector(function (state) {
4341
+ var dispatch = reactRedux.useDispatch();
4342
+ var qtConfig = reactRedux.useSelector(function (state) {
4333
4343
  return get_1(state, ["qt", "config"], {});
4334
4344
  });
4335
4345
  var url = generateNavigateSlug(collection, qtConfig);
@@ -4337,9 +4347,9 @@ var ListComponentBase = function ListComponentBase(_ref) {
4337
4347
  var borderHandler = function borderHandler(story) {
4338
4348
  switch (border) {
4339
4349
  case "bottom":
4340
- return /*#__PURE__*/React.createElement("div", {
4350
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4341
4351
  className: "list-component-m_one-col-border-bottom__2kY47"
4342
- }, /*#__PURE__*/React.createElement(StoryCard, {
4352
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4343
4353
  story: story,
4344
4354
  theme: theme,
4345
4355
  headerLevel: "4",
@@ -4352,43 +4362,43 @@ var ListComponentBase = function ListComponentBase(_ref) {
4352
4362
  }));
4353
4363
 
4354
4364
  case "full":
4355
- return /*#__PURE__*/React.createElement("div", {
4365
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4356
4366
  className: "list-component-m_one-col-border-full__gOJiU"
4357
- }, /*#__PURE__*/React.createElement(StoryCard, {
4367
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4358
4368
  story: story,
4359
4369
  border: border,
4360
4370
  theme: theme,
4361
4371
  isHorizontal: true,
4362
4372
  borderColor: borderColor,
4363
4373
  config: config
4364
- }, /*#__PURE__*/React.createElement(HeroImage, {
4374
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4365
4375
  story: story,
4366
4376
  isHorizontal: true,
4367
4377
  aspectRatio: [[16, 9]]
4368
- }), /*#__PURE__*/React.createElement("div", {
4378
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4369
4379
  className: "list-component-m_story-card-content-wrapper__1yhqY"
4370
- }, /*#__PURE__*/React.createElement(StorycardContent, {
4380
+ }, /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4371
4381
  story: story,
4372
4382
  borderColor: borderColor,
4373
4383
  config: config
4374
- }, /*#__PURE__*/React.createElement(SectionTag, {
4384
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4375
4385
  story: story
4376
- }), /*#__PURE__*/React.createElement(Headline, {
4386
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4377
4387
  story: story,
4378
4388
  headerLevel: "4",
4379
4389
  premiumStoryIconConfig: config
4380
- }), /*#__PURE__*/React.createElement(Subheadline, {
4390
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4381
4391
  story: story
4382
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4392
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4383
4393
  config: localizationConfig,
4384
4394
  story: story,
4385
4395
  prefix: authorPrefix
4386
4396
  })))));
4387
4397
 
4388
4398
  default:
4389
- return /*#__PURE__*/React.createElement("div", {
4399
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4390
4400
  className: "list-component-m_one-col-border-default__19mC9"
4391
- }, /*#__PURE__*/React.createElement(StoryCard, {
4401
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4392
4402
  story: story,
4393
4403
  theme: theme,
4394
4404
  headerLevel: "4",
@@ -4403,31 +4413,31 @@ var ListComponentBase = function ListComponentBase(_ref) {
4403
4413
  };
4404
4414
 
4405
4415
  var textColor = getTextColor(theme);
4406
- return /*#__PURE__*/React.createElement("div", {
4416
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4407
4417
  className: "full-width-with-padding arrow-component",
4408
4418
  style: {
4409
4419
  backgroundColor: theme,
4410
4420
  color: textColor
4411
4421
  }
4412
- }, /*#__PURE__*/React.createElement("div", {
4422
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4413
4423
  className: "list-component-m_list-wrapper__28Xog"
4414
- }, /*#__PURE__*/React.createElement(CollectionName, {
4424
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4415
4425
  collection: collection,
4416
4426
  collectionNameTemplate: collectionNameTemplate,
4417
4427
  collectionNameBorderColor: collectionNameBorderColor
4418
- }), /*#__PURE__*/React.createElement("div", {
4428
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4419
4429
  className: "list-component-m_wrapper__2DapZ",
4420
4430
  style: {
4421
4431
  backgroundColor: theme,
4422
4432
  color: textColor
4423
4433
  }
4424
- }, /*#__PURE__*/React.createElement("div", {
4434
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4425
4435
  className: "list-component-m_list__MRP6o"
4426
4436
  }, storyItems.slice(0, limit).map(function (story, index) {
4427
- return /*#__PURE__*/React.createElement("div", {
4437
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4428
4438
  key: "default-".concat(index)
4429
4439
  }, borderHandler(story));
4430
- }))), !hideButton && /*#__PURE__*/React.createElement("div", null, getMoreStories ? /*#__PURE__*/React.createElement(LoadmoreButton, {
4440
+ }))), !hideButton && /*#__PURE__*/React__default["default"].createElement("div", null, getMoreStories ? /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4431
4441
  onClick: getMoreStories,
4432
4442
  template: footerButton,
4433
4443
  config: config,
@@ -4439,24 +4449,25 @@ var ListComponentBase = function ListComponentBase(_ref) {
4439
4449
  };
4440
4450
  ListComponentBase.propTypes = {
4441
4451
  /** collection is the array of objects which is returning by API */
4442
- collection: PropTypes.object.isRequired,
4452
+ collection: PropTypes__default["default"].object.isRequired,
4443
4453
 
4444
4454
  /** The config for the Row */
4445
- config: PropTypes.shape({
4446
- borderColor: PropTypes.string,
4447
- theme: PropTypes.string,
4448
- border: PropTypes.string,
4449
- footerButton: PropTypes.string,
4455
+ config: PropTypes__default["default"].shape({
4456
+ borderColor: PropTypes__default["default"].string,
4457
+ theme: PropTypes__default["default"].string,
4458
+ border: PropTypes__default["default"].string,
4459
+ footerButton: PropTypes__default["default"].string,
4450
4460
  // row title style
4451
- collectionNameTemplate: PropTypes.string,
4461
+ collectionNameTemplate: PropTypes__default["default"].string,
4452
4462
  // row title style colour
4453
- collectionNameBorderColor: PropTypes.string
4463
+ collectionNameBorderColor: PropTypes__default["default"].string
4454
4464
  }),
4455
- getMoreStories: PropTypes.object.isRequired,
4456
- limit: PropTypes.number,
4457
- hideButton: PropTypes.bool,
4458
- authorPrefix: PropTypes.string
4465
+ getMoreStories: PropTypes__default["default"].object.isRequired,
4466
+ limit: PropTypes__default["default"].number,
4467
+ hideButton: PropTypes__default["default"].bool,
4468
+ authorPrefix: PropTypes__default["default"].string
4459
4469
  };
4460
4470
  var ListComponent = StateProvider(ListComponentBase);
4461
4471
 
4462
- export { ListComponent, ListComponentBase };
4472
+ exports.ListComponent = ListComponent;
4473
+ exports.ListComponentBase = ListComponentBase;