@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,10 +1,39 @@
1
- import React, { useContext, createContext, useState, useEffect, useRef, Fragment } 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';
7
- import ReactDOM from 'react-dom';
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
+ var ReactDOM = require('react-dom');
12
+
13
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
+
15
+ function _interopNamespace(e) {
16
+ if (e && e.__esModule) return e;
17
+ var n = Object.create(null);
18
+ if (e) {
19
+ Object.keys(e).forEach(function (k) {
20
+ if (k !== 'default') {
21
+ var d = Object.getOwnPropertyDescriptor(e, k);
22
+ Object.defineProperty(n, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: function () { return e[k]; }
25
+ });
26
+ }
27
+ });
28
+ }
29
+ n["default"] = e;
30
+ return Object.freeze(n);
31
+ }
32
+
33
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
35
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
36
+ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
8
37
 
9
38
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
39
 
@@ -157,21 +186,21 @@ exports["default"] = _default;
157
186
 
158
187
  var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
159
188
 
160
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
189
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
161
190
 
162
191
  var StateProvider = function StateProvider(RowComponent) {
163
192
  return function (props) {
164
193
  return (
165
194
  /*#__PURE__*/
166
195
  // eslint-disable-next-line react/prop-types
167
- React.createElement(StateContext.Provider, {
196
+ React__default["default"].createElement(StateContext.Provider, {
168
197
  value: props.config
169
- }, /*#__PURE__*/React.createElement(RowComponent, props))
198
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
170
199
  );
171
200
  };
172
201
  };
173
202
  var useStateValue = function useStateValue() {
174
- return useContext(StateContext);
203
+ return React.useContext(StateContext);
175
204
  };
176
205
 
177
206
  /**
@@ -2676,15 +2705,15 @@ var isEmpty = function isEmpty(value) {
2676
2705
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2677
2706
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2678
2707
  };
2679
- PropTypes.shape({
2680
- "sketches-host": PropTypes.string,
2681
- "cdn-name": PropTypes.string,
2682
- "cdn-image": PropTypes.string
2708
+ PropTypes__default["default"].shape({
2709
+ "sketches-host": PropTypes__default["default"].string,
2710
+ "cdn-name": PropTypes__default["default"].string,
2711
+ "cdn-image": PropTypes__default["default"].string
2683
2712
  });
2684
- PropTypes.shape({
2685
- headline: PropTypes.string,
2686
- "last-published-at": PropTypes.number,
2687
- subheadline: PropTypes.string
2713
+ PropTypes__default["default"].shape({
2714
+ headline: PropTypes__default["default"].string,
2715
+ "last-published-at": PropTypes__default["default"].number,
2716
+ subheadline: PropTypes__default["default"].string
2688
2717
  });
2689
2718
  var getStoryUrl = function getStoryUrl(story) {
2690
2719
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2728,17 +2757,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2728
2757
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2729
2758
 
2730
2759
  if (timezone && template === "story") {
2731
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2732
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2760
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2761
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2733
2762
  timeZone: timezone
2734
2763
  });
2735
2764
  var timeStamp = timestampToFormat("", "", "", date, config);
2736
- return /*#__PURE__*/React.createElement("time", {
2765
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2737
2766
  dateTime: formatZonedTime
2738
2767
  }, timeStamp);
2739
2768
  }
2740
2769
 
2741
- return /*#__PURE__*/React.createElement(Timeago, {
2770
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2742
2771
  date: date,
2743
2772
  formatter: function formatter(value, unit, suffix, date) {
2744
2773
  return _formatter(value, unit, suffix, date, config);
@@ -2752,7 +2781,7 @@ var CrownIcon = function CrownIcon(_ref) {
2752
2781
  _ref$color = _ref.color,
2753
2782
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
2754
2783
  positionTop = _ref.positionTop;
2755
- return /*#__PURE__*/React.createElement("svg", {
2784
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2756
2785
  xmlns: "http://www.w3.org/2000/svg",
2757
2786
  width: width,
2758
2787
  height: height,
@@ -2761,28 +2790,28 @@ var CrownIcon = function CrownIcon(_ref) {
2761
2790
  position: "relative",
2762
2791
  top: positionTop
2763
2792
  }
2764
- }, /*#__PURE__*/React.createElement("g", {
2793
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2765
2794
  fill: "none",
2766
2795
  fillRule: "evenodd",
2767
2796
  stroke: "none",
2768
2797
  strokeWidth: "1"
2769
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2798
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2770
2799
  transform: "translate(8 8)"
2771
- }, /*#__PURE__*/React.createElement("path", {
2800
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2772
2801
  d: "M0 0H24V24H0z"
2773
- }), /*#__PURE__*/React.createElement("g", {
2802
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2774
2803
  fill: color,
2775
2804
  fillRule: "nonzero",
2776
2805
  transform: "translate(0 2)"
2777
- }, /*#__PURE__*/React.createElement("path", {
2806
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2778
2807
  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"
2779
2808
  }))))));
2780
2809
  };
2781
2810
  CrownIcon.propTypes = {
2782
- height: PropTypes.string,
2783
- width: PropTypes.string,
2784
- color: PropTypes.string,
2785
- positionTop: PropTypes.string
2811
+ height: PropTypes__default["default"].string,
2812
+ width: PropTypes__default["default"].string,
2813
+ color: PropTypes__default["default"].string,
2814
+ positionTop: PropTypes__default["default"].string
2786
2815
  };
2787
2816
 
2788
2817
  var KeyIcon = function KeyIcon(_ref) {
@@ -2791,7 +2820,7 @@ var KeyIcon = function KeyIcon(_ref) {
2791
2820
  _ref$color = _ref.color,
2792
2821
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2793
2822
  positionTop = _ref.positionTop;
2794
- return /*#__PURE__*/React.createElement("svg", {
2823
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2795
2824
  xmlns: "http://www.w3.org/2000/svg",
2796
2825
  width: width,
2797
2826
  height: height,
@@ -2800,16 +2829,16 @@ var KeyIcon = function KeyIcon(_ref) {
2800
2829
  position: "relative",
2801
2830
  top: positionTop
2802
2831
  }
2803
- }, /*#__PURE__*/React.createElement("g", {
2832
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2804
2833
  fill: "none",
2805
2834
  fillRule: "evenodd",
2806
2835
  stroke: "none",
2807
2836
  strokeWidth: "1"
2808
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2837
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2809
2838
  transform: "translate(8 8)"
2810
- }, /*#__PURE__*/React.createElement("path", {
2839
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2811
2840
  d: "M0 0H24V24H0z"
2812
- }), /*#__PURE__*/React.createElement("path", {
2841
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2813
2842
  fill: color,
2814
2843
  fillRule: "nonzero",
2815
2844
  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",
@@ -2817,10 +2846,10 @@ var KeyIcon = function KeyIcon(_ref) {
2817
2846
  })))));
2818
2847
  };
2819
2848
  KeyIcon.propTypes = {
2820
- height: PropTypes.string,
2821
- width: PropTypes.string,
2822
- color: PropTypes.string,
2823
- positionTop: PropTypes.string
2849
+ height: PropTypes__default["default"].string,
2850
+ width: PropTypes__default["default"].string,
2851
+ color: PropTypes__default["default"].string,
2852
+ positionTop: PropTypes__default["default"].string
2824
2853
  };
2825
2854
 
2826
2855
  var LockIcon = function LockIcon(_ref) {
@@ -2829,7 +2858,7 @@ var LockIcon = function LockIcon(_ref) {
2829
2858
  _ref$color = _ref.color,
2830
2859
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2831
2860
  positionTop = _ref.positionTop;
2832
- return /*#__PURE__*/React.createElement("svg", {
2861
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2833
2862
  xmlns: "http://www.w3.org/2000/svg",
2834
2863
  width: width,
2835
2864
  height: height,
@@ -2838,28 +2867,28 @@ var LockIcon = function LockIcon(_ref) {
2838
2867
  position: "relative",
2839
2868
  top: positionTop
2840
2869
  }
2841
- }, /*#__PURE__*/React.createElement("g", {
2870
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2842
2871
  fill: "none",
2843
2872
  fillRule: "evenodd",
2844
2873
  stroke: "none",
2845
2874
  strokeWidth: "1"
2846
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2875
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2847
2876
  transform: "translate(8 8)"
2848
- }, /*#__PURE__*/React.createElement("path", {
2877
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2849
2878
  d: "M0 0H24V24H0z"
2850
- }), /*#__PURE__*/React.createElement("g", {
2879
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2851
2880
  fill: color,
2852
2881
  fillRule: "nonzero",
2853
2882
  transform: "translate(3)"
2854
- }, /*#__PURE__*/React.createElement("path", {
2883
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2855
2884
  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"
2856
2885
  }))))));
2857
2886
  };
2858
2887
  LockIcon.propTypes = {
2859
- height: PropTypes.string,
2860
- width: PropTypes.string,
2861
- color: PropTypes.string,
2862
- positionTop: PropTypes.string
2888
+ height: PropTypes__default["default"].string,
2889
+ width: PropTypes__default["default"].string,
2890
+ color: PropTypes__default["default"].string,
2891
+ positionTop: PropTypes__default["default"].string
2863
2892
  };
2864
2893
 
2865
2894
  var StarIcon = function StarIcon(_ref) {
@@ -2869,7 +2898,7 @@ var StarIcon = function StarIcon(_ref) {
2869
2898
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2870
2899
  _ref$positionTop = _ref.positionTop,
2871
2900
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
2872
- return /*#__PURE__*/React.createElement("svg", {
2901
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2873
2902
  xmlns: "http://www.w3.org/2000/svg",
2874
2903
  width: width,
2875
2904
  height: height,
@@ -2878,21 +2907,21 @@ var StarIcon = function StarIcon(_ref) {
2878
2907
  position: "relative",
2879
2908
  top: positionTop
2880
2909
  }
2881
- }, /*#__PURE__*/React.createElement("g", {
2910
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2882
2911
  fill: "none",
2883
2912
  fillRule: "evenodd",
2884
2913
  stroke: "none",
2885
2914
  strokeWidth: "1"
2886
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
2915
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
2887
2916
  fill: color,
2888
2917
  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"
2889
2918
  }))));
2890
2919
  };
2891
2920
  StarIcon.propTypes = {
2892
- height: PropTypes.string,
2893
- width: PropTypes.string,
2894
- color: PropTypes.string,
2895
- positionTop: PropTypes.string
2921
+ height: PropTypes__default["default"].string,
2922
+ width: PropTypes__default["default"].string,
2923
+ color: PropTypes__default["default"].string,
2924
+ positionTop: PropTypes__default["default"].string
2896
2925
  };
2897
2926
 
2898
2927
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -2904,7 +2933,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2904
2933
 
2905
2934
  switch (iconType) {
2906
2935
  case "crown":
2907
- return /*#__PURE__*/React.createElement(CrownIcon, {
2936
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
2908
2937
  width: width,
2909
2938
  height: height,
2910
2939
  color: color,
@@ -2912,7 +2941,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2912
2941
  });
2913
2942
 
2914
2943
  case "lock":
2915
- return /*#__PURE__*/React.createElement(LockIcon, {
2944
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
2916
2945
  width: width,
2917
2946
  height: height,
2918
2947
  color: color,
@@ -2920,7 +2949,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2920
2949
  });
2921
2950
 
2922
2951
  case "key":
2923
- return /*#__PURE__*/React.createElement(KeyIcon, {
2952
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
2924
2953
  width: width,
2925
2954
  height: height,
2926
2955
  color: color,
@@ -2928,7 +2957,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2928
2957
  });
2929
2958
 
2930
2959
  default:
2931
- return /*#__PURE__*/React.createElement(StarIcon, {
2960
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
2932
2961
  width: width,
2933
2962
  height: height,
2934
2963
  color: color,
@@ -2937,21 +2966,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2937
2966
  }
2938
2967
  };
2939
2968
  PremiumStoryIcon.propTypes = {
2940
- width: PropTypes.string,
2941
- height: PropTypes.string,
2942
- color: PropTypes.string,
2943
- iconType: PropTypes.string,
2944
- positionTop: PropTypes.string
2969
+ width: PropTypes__default["default"].string,
2970
+ height: PropTypes__default["default"].string,
2971
+ color: PropTypes__default["default"].string,
2972
+ iconType: PropTypes__default["default"].string,
2973
+ positionTop: PropTypes__default["default"].string
2945
2974
  };
2946
2975
 
2947
2976
  function LiveIcon() {
2948
- return /*#__PURE__*/React.createElement("svg", {
2977
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2949
2978
  className: "live-icon",
2950
2979
  xmlns: "http://www.w3.org/2000/svg",
2951
2980
  width: "25",
2952
2981
  height: "24",
2953
2982
  viewBox: "0 0 25 24"
2954
- }, /*#__PURE__*/React.createElement("path", {
2983
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2955
2984
  fill: "#ff5858",
2956
2985
  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"
2957
2986
  }));
@@ -3008,37 +3037,37 @@ var Headline = function Headline(_ref) {
3008
3037
  var wrapperClass = premiumStory ? "wrapper" : "";
3009
3038
  var iconSize = "24px";
3010
3039
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3011
- return /*#__PURE__*/React.createElement("div", {
3040
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3012
3041
  "data-test-id": "headline",
3013
3042
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
3014
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3043
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3015
3044
  width: iconSize,
3016
3045
  height: iconSize,
3017
3046
  color: iconColor,
3018
3047
  iconType: iconStyle,
3019
3048
  positionTop: positionHeadline()
3020
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3049
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3021
3050
  href: getStoryUrl(story, "/".concat(story.slug)),
3022
3051
  externalLink: isExternalStory(story),
3023
3052
  "aria-label": "headline"
3024
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3053
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3025
3054
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3026
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3055
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3027
3056
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3028
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3057
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3029
3058
  };
3030
3059
  Headline.propTypes = {
3031
3060
  /** The Story Object from the API response */
3032
- story: PropTypes.object.isRequired,
3061
+ story: PropTypes__default["default"].object.isRequired,
3033
3062
 
3034
3063
  /** Header tags ranging h1-h6, where h[headerLevel] */
3035
- headerLevel: PropTypes.string,
3036
- premiumStoryIconConfig: PropTypes.shape({
3037
- iconColor: PropTypes.string,
3038
- iconType: PropTypes.string,
3039
- enablePremiumStoryIcon: PropTypes.bool
3064
+ headerLevel: PropTypes__default["default"].string,
3065
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3066
+ iconColor: PropTypes__default["default"].string,
3067
+ iconType: PropTypes__default["default"].string,
3068
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3040
3069
  }),
3041
- isLink: PropTypes.bool
3070
+ isLink: PropTypes__default["default"].bool
3042
3071
  };
3043
3072
  Headline.defaultProps = {
3044
3073
  headerLevel: "6",
@@ -3065,7 +3094,7 @@ var Subheadline = function Subheadline(_ref) {
3065
3094
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3066
3095
  if (!subheadline) return null;
3067
3096
  var textColor = getTextColor(config.theme);
3068
- return /*#__PURE__*/React.createElement("div", {
3097
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3069
3098
  style: {
3070
3099
  WebkitLineClamp: lineClamp
3071
3100
  },
@@ -3075,15 +3104,15 @@ var Subheadline = function Subheadline(_ref) {
3075
3104
  };
3076
3105
  Subheadline.propTypes = {
3077
3106
  /** The Story Object from the API response */
3078
- story: PropTypes.object.isRequired,
3107
+ story: PropTypes__default["default"].object.isRequired,
3079
3108
  // Restricts the number of lines for subheadline.
3080
- lineClamp: PropTypes.number,
3109
+ lineClamp: PropTypes__default["default"].number,
3081
3110
 
3082
3111
  /** Number of characters to truncate the subheadline */
3083
- truncateChars: PropTypes.number,
3084
- clazzName: PropTypes.string,
3085
- forceShowAtom: PropTypes.bool,
3086
- showFullContent: PropTypes.bool
3112
+ truncateChars: PropTypes__default["default"].number,
3113
+ clazzName: PropTypes__default["default"].string,
3114
+ forceShowAtom: PropTypes__default["default"].bool,
3115
+ showFullContent: PropTypes__default["default"].bool
3087
3116
  };
3088
3117
  Subheadline.defaultProps = {
3089
3118
  forceShowAtom: false,
@@ -3109,18 +3138,18 @@ var TimeStamp = function TimeStamp(_ref) {
3109
3138
  var time = story["last-published-at"] || story["first-published-at"];
3110
3139
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3111
3140
  var textColor = getTextColor(configState.theme);
3112
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3141
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3113
3142
  "data-test-id": "publish-time",
3114
3143
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
3115
- }, /*#__PURE__*/React.createElement("div", {
3144
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3116
3145
  className: "timestamp-m_time-wrapper__3O2lM"
3117
3146
  }, getTimeStamp(time, formatter, config))));
3118
3147
  };
3119
3148
  TimeStamp.propTypes = {
3120
3149
  /** The Story Object from the API response */
3121
- story: PropTypes.object,
3122
- isBottom: PropTypes.bool,
3123
- config: PropTypes.object
3150
+ story: PropTypes__default["default"].object,
3151
+ isBottom: PropTypes__default["default"].bool,
3152
+ config: PropTypes__default["default"].object
3124
3153
  };
3125
3154
 
3126
3155
  var _styleModuleImportMap$a = {
@@ -3163,10 +3192,10 @@ var AuthorBase = function AuthorBase(_ref) {
3163
3192
  return null;
3164
3193
  }
3165
3194
 
3166
- return /*#__PURE__*/React.createElement("div", {
3195
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3167
3196
  "data-test-id": "author-image",
3168
3197
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
3169
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3198
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3170
3199
  slug: avatarS3Key,
3171
3200
  "aspect-ratio": [1, 1],
3172
3201
  defaultWidth: 400,
@@ -3174,14 +3203,14 @@ var AuthorBase = function AuthorBase(_ref) {
3174
3203
  auto: ["format", "compress"]
3175
3204
  },
3176
3205
  alt: authorName
3177
- }) : /*#__PURE__*/React.createElement("img", {
3206
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3178
3207
  src: avatarUrl
3179
3208
  })));
3180
3209
  };
3181
3210
 
3182
3211
  var isPrefix = function isPrefix(dir) {
3183
3212
  if (prefix) {
3184
- return /*#__PURE__*/React.createElement("div", {
3213
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3185
3214
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
3186
3215
  }, prefix);
3187
3216
  }
@@ -3189,11 +3218,11 @@ var AuthorBase = function AuthorBase(_ref) {
3189
3218
  return !hideAuthorImage && authorImage(dir);
3190
3219
  };
3191
3220
 
3192
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3221
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3193
3222
  href: "".concat(mountAt, "/author/") + slug,
3194
3223
  "aria-label": "author-name",
3195
3224
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
3196
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3225
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3197
3226
  "data-test-id": "author-name",
3198
3227
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
3199
3228
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3205,18 +3234,18 @@ function mapStateToProps$1(state) {
3205
3234
  };
3206
3235
  }
3207
3236
 
3208
- var Author = connect(mapStateToProps$1)(AuthorBase);
3237
+ var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
3209
3238
  AuthorBase.propTypes = {
3210
3239
  /** The Story Object from the API response */
3211
- story: PropTypes.object.isRequired,
3240
+ story: PropTypes__default["default"].object.isRequired,
3212
3241
 
3213
3242
  /** Hide Author Avatar Image */
3214
- hideAuthorImage: PropTypes.bool,
3243
+ hideAuthorImage: PropTypes__default["default"].bool,
3215
3244
  // fix Author bottom of the storyCard
3216
- isBottom: PropTypes.bool,
3245
+ isBottom: PropTypes__default["default"].bool,
3217
3246
  // fix prefix before the author name
3218
- prefix: PropTypes.string,
3219
- config: PropTypes.object
3247
+ prefix: PropTypes__default["default"].string,
3248
+ config: PropTypes__default["default"].object
3220
3249
  };
3221
3250
  AuthorBase.defaultProps = {
3222
3251
  hideAuthorImage: false,
@@ -3237,14 +3266,14 @@ var Dot = function Dot(_ref) {
3237
3266
  height = _ref$height === void 0 ? "3px" : _ref$height,
3238
3267
  _ref$color = _ref.color,
3239
3268
  color = _ref$color === void 0 ? "light" : _ref$color;
3240
- return /*#__PURE__*/React.createElement("div", {
3269
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3241
3270
  className: _getClassName(color, _styleModuleImportMap$9)
3242
- }, /*#__PURE__*/React.createElement("svg", {
3271
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3243
3272
  xmlns: "http://www.w3.org/2000/svg",
3244
3273
  width: width,
3245
3274
  height: height,
3246
3275
  viewBox: "0 0 3 3"
3247
- }, /*#__PURE__*/React.createElement("circle", {
3276
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3248
3277
  cx: "87",
3249
3278
  cy: "9",
3250
3279
  r: "1",
@@ -3255,9 +3284,9 @@ var Dot = function Dot(_ref) {
3255
3284
  };
3256
3285
  Dot.propTypes = {
3257
3286
  /** height , width and color of the dot icon */
3258
- color: PropTypes.string,
3259
- width: PropTypes.string,
3260
- height: PropTypes.string
3287
+ color: PropTypes__default["default"].string,
3288
+ width: PropTypes__default["default"].string,
3289
+ height: PropTypes__default["default"].string
3261
3290
  };
3262
3291
 
3263
3292
  var _styleModuleImportMap$8 = {
@@ -3273,22 +3302,22 @@ var Divider = function Divider(_ref) {
3273
3302
  height = _ref$height === void 0 ? "10" : _ref$height,
3274
3303
  _ref$color = _ref.color,
3275
3304
  color = _ref$color === void 0 ? "light" : _ref$color;
3276
- return /*#__PURE__*/React.createElement("div", {
3305
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3277
3306
  className: _getClassName(color, _styleModuleImportMap$8)
3278
- }, /*#__PURE__*/React.createElement("svg", {
3307
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3279
3308
  xmlns: "http://www.w3.org/2000/svg",
3280
3309
  width: width,
3281
3310
  height: height
3282
- }, /*#__PURE__*/React.createElement("path", {
3311
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3283
3312
  fill: "inherit",
3284
3313
  d: "M0 0h1v10H0z"
3285
3314
  })));
3286
3315
  };
3287
3316
  Divider.propTypes = {
3288
3317
  /** height , width and color of the dot icon */
3289
- color: PropTypes.string,
3290
- width: PropTypes.string,
3291
- height: PropTypes.string
3318
+ color: PropTypes__default["default"].string,
3319
+ width: PropTypes__default["default"].string,
3320
+ height: PropTypes__default["default"].string
3292
3321
  };
3293
3322
 
3294
3323
  var _styleModuleImportMap$7 = {
@@ -3311,23 +3340,23 @@ var ReadTime = function ReadTime(_ref) {
3311
3340
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3312
3341
  if (!showReadTime || !readTime) return null;
3313
3342
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3314
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3343
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3315
3344
  "data-test-id": "read-time",
3316
3345
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
3317
- }, /*#__PURE__*/React.createElement("span", {
3346
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3318
3347
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3319
- }, /*#__PURE__*/React.createElement(Dot, {
3348
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3320
3349
  color: textColor
3321
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3350
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3322
3351
  };
3323
3352
  ReadTime.propTypes = {
3324
- story: PropTypes.shape({
3325
- "read-time": PropTypes.number
3353
+ story: PropTypes__default["default"].shape({
3354
+ "read-time": PropTypes__default["default"].number
3326
3355
  }),
3327
- opts: PropTypes.shape({
3328
- showReadTime: PropTypes.bool
3356
+ opts: PropTypes__default["default"].shape({
3357
+ showReadTime: PropTypes__default["default"].bool
3329
3358
  }),
3330
- isLightTheme: PropTypes.bool
3359
+ isLightTheme: PropTypes__default["default"].bool
3331
3360
  };
3332
3361
 
3333
3362
  var _styleModuleImportMap$6 = {
@@ -3358,33 +3387,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3358
3387
 
3359
3388
  var getSeparator = function getSeparator() {
3360
3389
  if (separator === "divider") {
3361
- return /*#__PURE__*/React.createElement(Divider, {
3390
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3362
3391
  color: textColor
3363
3392
  });
3364
3393
  }
3365
3394
 
3366
- return /*#__PURE__*/React.createElement(Dot, {
3395
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3367
3396
  color: textColor
3368
3397
  });
3369
3398
  };
3370
3399
 
3371
3400
  var getTimeStamp = function getTimeStamp() {
3372
3401
  if (!isTime) return null;
3373
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3402
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3374
3403
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
3375
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3404
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3376
3405
  story: story,
3377
3406
  config: config
3378
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3407
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3379
3408
  story: story,
3380
3409
  opts: config,
3381
3410
  isLightTheme: isLightTheme
3382
3411
  }));
3383
3412
  };
3384
3413
 
3385
- return /*#__PURE__*/React.createElement("div", {
3414
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3386
3415
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
3387
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3416
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3388
3417
  story: story,
3389
3418
  isBottom: true,
3390
3419
  hideAuthorImage: hideAuthorImage,
@@ -3392,19 +3421,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3392
3421
  }), getTimeStamp()) : getTimeStamp());
3393
3422
  };
3394
3423
  AuthorWithTime.propTypes = {
3395
- story: PropTypes.object,
3424
+ story: PropTypes__default["default"].object,
3396
3425
 
3397
3426
  /** Style of separator between the Author & Timestamp */
3398
- separator: PropTypes.oneOf(["dot", "divider"]),
3427
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3399
3428
 
3400
3429
  /** hide the author image */
3401
- hideAuthorImage: PropTypes.bool,
3430
+ hideAuthorImage: PropTypes__default["default"].bool,
3402
3431
  // fix author and time at the end
3403
- isBottom: PropTypes.bool,
3432
+ isBottom: PropTypes__default["default"].bool,
3404
3433
  // fix prefix before the author name
3405
- prefix: PropTypes.string,
3406
- config: PropTypes.object,
3407
- isLightTheme: PropTypes.bool
3434
+ prefix: PropTypes__default["default"].string,
3435
+ config: PropTypes__default["default"].object,
3436
+ isLightTheme: PropTypes__default["default"].bool
3408
3437
  };
3409
3438
  AuthorWithTime.defaultProps = {
3410
3439
  separator: "dot",
@@ -3482,27 +3511,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3482
3511
  height = _ref$height === void 0 ? 30 : _ref$height,
3483
3512
  _ref$iconColor = _ref.iconColor,
3484
3513
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
3485
- return /*#__PURE__*/React.createElement("svg", {
3514
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3486
3515
  width: width,
3487
3516
  height: height,
3488
3517
  viewBox: "0 0 102 76",
3489
3518
  version: "1.1"
3490
- }, /*#__PURE__*/React.createElement("g", {
3519
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3491
3520
  id: "demo-home-copy",
3492
3521
  stroke: "none",
3493
3522
  strokeWidth: "1",
3494
3523
  fill: "none",
3495
3524
  fillRule: "evenodd",
3496
3525
  transform: "translate(-377.000000, -314.000000)"
3497
- }, /*#__PURE__*/React.createElement("g", {
3526
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3498
3527
  id: "Group-13",
3499
3528
  transform: "translate(377.000000, 314.000000)"
3500
- }, /*#__PURE__*/React.createElement("path", {
3529
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3501
3530
  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",
3502
3531
  id: "Combined-Shape",
3503
3532
  fill: iconColor,
3504
3533
  fillRule: "nonzero"
3505
- }), /*#__PURE__*/React.createElement("rect", {
3534
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
3506
3535
  id: "Rectangle-19",
3507
3536
  stroke: iconColor,
3508
3537
  strokeWidth: "3",
@@ -3514,24 +3543,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3514
3543
  }))));
3515
3544
  };
3516
3545
  ImageFallbackIcon.propTypes = {
3517
- width: PropTypes.object,
3518
- height: PropTypes.object,
3519
- iconColor: PropTypes.object
3546
+ width: PropTypes__default["default"].object,
3547
+ height: PropTypes__default["default"].object,
3548
+ iconColor: PropTypes__default["default"].object
3520
3549
  };
3521
3550
 
3522
3551
  var imageFallback = function imageFallback() {
3523
- return /*#__PURE__*/React.createElement("div", {
3552
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3524
3553
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3525
- }, /*#__PURE__*/React.createElement("figure", {
3554
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3526
3555
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3527
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3556
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3528
3557
  };
3529
3558
 
3530
3559
  var FallbackImage = function FallbackImage(_ref) {
3531
3560
  var slug = _ref.slug;
3532
3561
 
3533
3562
  if (slug) {
3534
- return /*#__PURE__*/React.createElement(Link, {
3563
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3535
3564
  href: slug,
3536
3565
  "aria-label": "image-fallback"
3537
3566
  }, imageFallback());
@@ -3540,23 +3569,23 @@ var FallbackImage = function FallbackImage(_ref) {
3540
3569
  }
3541
3570
  };
3542
3571
  FallbackImage.propTypes = {
3543
- slug: PropTypes.string
3572
+ slug: PropTypes__default["default"].string
3544
3573
  };
3545
3574
 
3546
3575
  var HyperLinkIcon = function HyperLinkIcon() {
3547
- return /*#__PURE__*/React.createElement("svg", {
3576
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3548
3577
  xmlns: "http://www.w3.org/2000/svg",
3549
3578
  width: "36",
3550
3579
  height: "28"
3551
- }, /*#__PURE__*/React.createElement("g", {
3580
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3552
3581
  fill: "none",
3553
3582
  fillRule: "evenodd"
3554
- }, /*#__PURE__*/React.createElement("rect", {
3583
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3555
3584
  width: "36",
3556
3585
  height: "28",
3557
3586
  fill: "#3D6FCF",
3558
3587
  rx: "4"
3559
- }), /*#__PURE__*/React.createElement("path", {
3588
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3560
3589
  stroke: "#FFF",
3561
3590
  strokeLinecap: "round",
3562
3591
  strokeLinejoin: "round",
@@ -3569,16 +3598,16 @@ var HyperLink = function HyperLink(_ref) {
3569
3598
  var _ref$hyperLink = _ref.hyperLink,
3570
3599
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3571
3600
  if (!hyperLink) return null;
3572
- return /*#__PURE__*/React.createElement(Link, {
3601
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3573
3602
  href: hyperLink,
3574
3603
  "aria-label": "hyperlink-button",
3575
3604
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3576
3605
  target: "_blank",
3577
3606
  rel: "noopener noreferrer"
3578
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3607
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3579
3608
  };
3580
3609
  HyperLink.propTypes = {
3581
- hyperLink: PropTypes.string
3610
+ hyperLink: PropTypes__default["default"].string
3582
3611
  };
3583
3612
 
3584
3613
  var _styleModuleImportMap$5 = {
@@ -3614,7 +3643,7 @@ var HeroImage = function HeroImage(_ref) {
3614
3643
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3615
3644
  return null;
3616
3645
  } : _config$StoryTemplate;
3617
- var showImagePlaceholder = useSelector(function (state) {
3646
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3618
3647
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3619
3648
  });
3620
3649
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3650,37 +3679,37 @@ var HeroImage = function HeroImage(_ref) {
3650
3679
  var fallbackImage = function fallbackImage() {
3651
3680
  if (!slug) {
3652
3681
  if (fallbackImageUrl && !isStoryPageImage) {
3653
- return /*#__PURE__*/React.createElement("figure", {
3682
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3654
3683
  style: {
3655
3684
  paddingTop: imagePadding + "%"
3656
3685
  },
3657
3686
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3658
- }, /*#__PURE__*/React.createElement("img", {
3687
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3659
3688
  className: "qt-image",
3660
3689
  "data-src": "".concat(fallbackImageUrl),
3661
3690
  alt: "image-fallback"
3662
3691
  }));
3663
3692
  }
3664
3693
 
3665
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3694
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3666
3695
  "data-test-id": "arr--fallback-hero-image",
3667
3696
  style: {
3668
3697
  paddingTop: imagePadding + "%"
3669
3698
  },
3670
3699
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3671
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3700
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3672
3701
  storyTemplate: story["story-template"]
3673
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3702
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3674
3703
  }
3675
3704
 
3676
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3705
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3677
3706
  style: {
3678
3707
  paddingTop: imagePadding + "%"
3679
3708
  },
3680
3709
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3681
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3710
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3682
3711
  storyTemplate: story["story-template"]
3683
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3712
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3684
3713
  story: story,
3685
3714
  aspectRatio: imageAspectRatio,
3686
3715
  defaultWidth: defaultWidth,
@@ -3689,15 +3718,15 @@ var HeroImage = function HeroImage(_ref) {
3689
3718
  auto: ["format", "compress"],
3690
3719
  fit: "max"
3691
3720
  }
3692
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3721
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3693
3722
  hyperLink: hyperLink
3694
3723
  }));
3695
3724
  };
3696
3725
 
3697
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3726
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3698
3727
  "data-test-id": "arr--hero-image",
3699
3728
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
3700
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3729
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3701
3730
  "data-test-id": "arr--hero-image",
3702
3731
  href: getStoryUrl(story, "/".concat(story.slug)),
3703
3732
  externalLink: isExternalStory(story),
@@ -3707,30 +3736,30 @@ var HeroImage = function HeroImage(_ref) {
3707
3736
  };
3708
3737
  HeroImage.propTypes = {
3709
3738
  /** The Story Object from the API response */
3710
- story: PropTypes.object.isRequired,
3739
+ story: PropTypes__default["default"].object.isRequired,
3711
3740
 
3712
3741
  /** Removes the Hero Image padding for the image to bleed over the margin */
3713
- FullBleed: PropTypes.bool,
3742
+ FullBleed: PropTypes__default["default"].bool,
3714
3743
 
3715
3744
  /** The default width for the image, in case the browser does not support srcset */
3716
- defaultWidth: PropTypes.number,
3745
+ defaultWidth: PropTypes__default["default"].number,
3717
3746
 
3718
3747
  /** The list of available widths */
3719
- widths: PropTypes.array,
3748
+ widths: PropTypes__default["default"].array,
3720
3749
  // fatch the correct hero image
3721
- aspectRatio: PropTypes.array,
3750
+ aspectRatio: PropTypes__default["default"].array,
3722
3751
  // Hints for the browser to choose the best size
3723
3752
 
3724
3753
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3725
- isHorizontal: PropTypes.bool,
3754
+ isHorizontal: PropTypes__default["default"].bool,
3726
3755
 
3727
3756
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3728
- isHorizontalMobile: PropTypes.bool,
3757
+ isHorizontalMobile: PropTypes__default["default"].bool,
3729
3758
  // this prop is responsive for rendering fallback image on story page
3730
- defaultFallback: PropTypes.bool,
3731
- isHorizontalWithImageLast: PropTypes.bool,
3732
- isStoryPageImage: PropTypes.bool,
3733
- config: PropTypes.object
3759
+ defaultFallback: PropTypes__default["default"].bool,
3760
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3761
+ isStoryPageImage: PropTypes__default["default"].bool,
3762
+ config: PropTypes__default["default"].object
3734
3763
  };
3735
3764
  HeroImage.defaultProps = {
3736
3765
  FullBleed: true,
@@ -3780,22 +3809,22 @@ var SectionTag = function SectionTag(_ref) {
3780
3809
  }
3781
3810
 
3782
3811
  if (!isSection) return null;
3783
- return /*#__PURE__*/React.createElement(Link, {
3812
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3784
3813
  href: getUrl,
3785
3814
  className: "arrow-component arr--section-name",
3786
3815
  "aria-label": "section-name"
3787
- }, /*#__PURE__*/React.createElement("div", {
3816
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3788
3817
  "data-test-id": "sectionTag",
3789
3818
  style: {
3790
3819
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3791
3820
  },
3792
3821
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$4)
3793
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3822
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3794
3823
  className: "section-m_border-left__2oUyp",
3795
3824
  style: {
3796
3825
  color: sectionTagBorderColor
3797
3826
  }
3798
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3827
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3799
3828
  className: "section-m_border-bottom__3cRoD",
3800
3829
  style: {
3801
3830
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3804,13 +3833,13 @@ var SectionTag = function SectionTag(_ref) {
3804
3833
  };
3805
3834
  SectionTag.propTypes = {
3806
3835
  /** The Story Object from the API response */
3807
- story: PropTypes.object.isRequired,
3836
+ story: PropTypes__default["default"].object.isRequired,
3808
3837
 
3809
3838
  /** The style template for section tag */
3810
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3811
- borderColor: PropTypes.string,
3812
- solidBorderColor: PropTypes.string,
3813
- isLightTheme: PropTypes.bool
3839
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3840
+ borderColor: PropTypes__default["default"].string,
3841
+ solidBorderColor: PropTypes__default["default"].string,
3842
+ isLightTheme: PropTypes__default["default"].bool
3814
3843
  };
3815
3844
  SectionTag.defaultProps = {
3816
3845
  template: "",
@@ -3859,7 +3888,7 @@ var StoryCard = function StoryCard(_ref) {
3859
3888
  prefix = _ref.prefix,
3860
3889
  config = _ref.config,
3861
3890
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
3862
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
3891
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
3863
3892
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
3864
3893
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
3865
3894
 
@@ -3869,7 +3898,7 @@ var StoryCard = function StoryCard(_ref) {
3869
3898
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
3870
3899
  var textColor = getTextColor(theme);
3871
3900
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
3872
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
3901
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
3873
3902
  story: story,
3874
3903
  aspectRatio: aspectRatio,
3875
3904
  border: border,
@@ -3883,7 +3912,7 @@ var StoryCard = function StoryCard(_ref) {
3883
3912
  config: config,
3884
3913
  isHorizontalWithImageLast: isHorizontalWithImageLast
3885
3914
  });
3886
- return /*#__PURE__*/React.createElement("div", {
3915
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3887
3916
  "data-test-id": "story-card",
3888
3917
  style: {
3889
3918
  backgroundColor: theme,
@@ -3912,91 +3941,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
3912
3941
  var SectionTagborderColor = rgbToHex(borderColor);
3913
3942
  var _config$localizationC = config.localizationConfig,
3914
3943
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
3915
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
3944
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3916
3945
  config: config,
3917
3946
  story: story,
3918
3947
  isHorizontal: true,
3919
3948
  isHorizontalMobile: isHorizontalMobile,
3920
3949
  aspectRatio: aspectRatio
3921
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
3950
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3922
3951
  config: config,
3923
3952
  story: story,
3924
3953
  isHorizontalWithImageLast: true,
3925
3954
  isHorizontalMobile: isHorizontalMobile,
3926
3955
  aspectRatio: aspectRatio
3927
- }) : /*#__PURE__*/React.createElement(HeroImage, {
3956
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3928
3957
  story: story,
3929
3958
  config: config,
3930
3959
  isHorizontalMobile: isHorizontalMobile,
3931
3960
  aspectRatio: aspectRatio
3932
- }), /*#__PURE__*/React.createElement("div", {
3961
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
3933
3962
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
3934
- }, /*#__PURE__*/React.createElement(SectionTag, {
3963
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
3935
3964
  story: story,
3936
3965
  borderColor: SectionTagborderColor
3937
- }), /*#__PURE__*/React.createElement(Headline, {
3966
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
3938
3967
  story: story,
3939
3968
  headerLevel: headerLevel,
3940
3969
  premiumStoryIconConfig: config
3941
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
3970
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
3942
3971
  config: localizationConfig,
3943
3972
  story: story,
3944
3973
  isBottom: true,
3945
3974
  prefix: prefix,
3946
3975
  hideAuthorImage: hideAuthorImage
3947
- }), /*#__PURE__*/React.createElement(Subheadline, {
3976
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
3948
3977
  story: story
3949
3978
  })));
3950
3979
  };
3951
3980
 
3952
3981
  DefaultStoryCard.propTypes = {
3953
- story: PropTypes.object.isRequired,
3954
- border: PropTypes.oneOfType([PropTypes.string]),
3955
- isBottom: PropTypes.bool,
3956
- isHorizontal: PropTypes.bool,
3957
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
3958
- isHorizontalMobile: PropTypes.bool,
3959
- centerAlign: PropTypes.bool,
3960
- headerLevel: PropTypes.string,
3961
- borderColor: PropTypes.string,
3962
- hideAuthorImage: PropTypes.bool,
3963
- prefix: PropTypes.string,
3964
- config: PropTypes.object,
3965
- isHorizontalWithImageLast: PropTypes.bool
3982
+ story: PropTypes__default["default"].object.isRequired,
3983
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
3984
+ isBottom: PropTypes__default["default"].bool,
3985
+ isHorizontal: PropTypes__default["default"].bool,
3986
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
3987
+ isHorizontalMobile: PropTypes__default["default"].bool,
3988
+ centerAlign: PropTypes__default["default"].bool,
3989
+ headerLevel: PropTypes__default["default"].string,
3990
+ borderColor: PropTypes__default["default"].string,
3991
+ hideAuthorImage: PropTypes__default["default"].bool,
3992
+ prefix: PropTypes__default["default"].string,
3993
+ config: PropTypes__default["default"].object,
3994
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
3966
3995
  };
3967
3996
  StoryCard.propTypes = {
3968
3997
  /** The Story Object from the API response */
3969
- story: PropTypes.object.isRequired,
3970
- children: PropTypes.node,
3998
+ story: PropTypes__default["default"].object.isRequired,
3999
+ children: PropTypes__default["default"].node,
3971
4000
 
3972
4001
  /** Flip the Story Card to Horizonal mode */
3973
- isHorizontal: PropTypes.bool,
4002
+ isHorizontal: PropTypes__default["default"].bool,
3974
4003
 
3975
4004
  /** Add border to the Story Card */
3976
- border: PropTypes.oneOfType([PropTypes.string]),
4005
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
3977
4006
  // story card with background image
3978
- useImageAsBackground: PropTypes.bool,
4007
+ useImageAsBackground: PropTypes__default["default"].bool,
3979
4008
  // story card content overlap with image
3980
- bgImgContentOverlap: PropTypes.bool,
4009
+ bgImgContentOverlap: PropTypes__default["default"].bool,
3981
4010
 
3982
4011
  /** add aspect ratio for hero image */
3983
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4012
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
3984
4013
 
3985
4014
  /** add theme(dark /light/custom color) for storycard */
3986
- theme: PropTypes.string,
4015
+ theme: PropTypes__default["default"].string,
3987
4016
 
3988
4017
  /** flip the story card mobile design horizontal */
3989
- isHorizontalMobile: PropTypes.bool,
4018
+ isHorizontalMobile: PropTypes__default["default"].bool,
3990
4019
  // make content center align in desktop and left align in mobile
3991
- centerAlign: PropTypes.bool,
3992
- headerLevel: PropTypes.string,
3993
- borderColor: PropTypes.string,
4020
+ centerAlign: PropTypes__default["default"].bool,
4021
+ headerLevel: PropTypes__default["default"].string,
4022
+ borderColor: PropTypes__default["default"].string,
3994
4023
  // handle author image through storycard
3995
- hideAuthorImage: PropTypes.bool,
4024
+ hideAuthorImage: PropTypes__default["default"].bool,
3996
4025
  // handle author prefix through storycard
3997
- prefix: PropTypes.string,
3998
- config: PropTypes.object,
3999
- isHorizontalWithImageLast: PropTypes.bool
4026
+ prefix: PropTypes__default["default"].string,
4027
+ config: PropTypes__default["default"].object,
4028
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4000
4029
  };
4001
4030
  StoryCard.defaultProps = {
4002
4031
  isHorizontal: false,
@@ -4029,14 +4058,14 @@ var StorycardContent = function StorycardContent(_ref) {
4029
4058
  var SectionTagborderColor = rgbToHex(borderColor);
4030
4059
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4031
4060
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4032
- return /*#__PURE__*/React.createElement("div", {
4061
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4033
4062
  "data-test-id": "story-card-content",
4034
4063
  style: {
4035
4064
  backgroundColor: theme,
4036
4065
  color: textColor
4037
4066
  },
4038
4067
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$2)
4039
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
4068
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4040
4069
  story: story,
4041
4070
  headerLevel: headerLevel,
4042
4071
  isHorizontalMobile: isHorizontalMobile,
@@ -4054,37 +4083,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4054
4083
  var SectionTagborderColor = rgbToHex(borderColor);
4055
4084
  var _config$localizationC = config.localizationConfig,
4056
4085
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4057
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
4086
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4058
4087
  story: story,
4059
4088
  borderColor: SectionTagborderColor
4060
- }), /*#__PURE__*/React.createElement(Headline, {
4089
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4061
4090
  story: story,
4062
4091
  headerLevel: headerLevel,
4063
4092
  premiumStoryIconConfig: config
4064
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4093
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4065
4094
  config: localizationConfig,
4066
4095
  story: story
4067
4096
  }));
4068
4097
  };
4069
4098
 
4070
4099
  DefaultStoryCardContent.propTypes = {
4071
- story: PropTypes.object.isRequired,
4072
- border: PropTypes.string,
4073
- theme: PropTypes.string,
4074
- isHorizontalMobile: PropTypes.bool,
4075
- headerLevel: PropTypes.string,
4076
- borderColor: PropTypes.string,
4077
- config: PropTypes.object
4100
+ story: PropTypes__default["default"].object.isRequired,
4101
+ border: PropTypes__default["default"].string,
4102
+ theme: PropTypes__default["default"].string,
4103
+ isHorizontalMobile: PropTypes__default["default"].bool,
4104
+ headerLevel: PropTypes__default["default"].string,
4105
+ borderColor: PropTypes__default["default"].string,
4106
+ config: PropTypes__default["default"].object
4078
4107
  };
4079
4108
  StorycardContent.propTypes = {
4080
- story: PropTypes.object.isRequired,
4081
- children: PropTypes.node,
4082
- theme: PropTypes.string,
4083
- border: PropTypes.string,
4084
- isHorizontalMobile: PropTypes.bool,
4085
- headerLevel: PropTypes.string,
4086
- borderColor: PropTypes.string,
4087
- config: PropTypes.object
4109
+ story: PropTypes__default["default"].object.isRequired,
4110
+ children: PropTypes__default["default"].node,
4111
+ theme: PropTypes__default["default"].string,
4112
+ border: PropTypes__default["default"].string,
4113
+ isHorizontalMobile: PropTypes__default["default"].bool,
4114
+ headerLevel: PropTypes__default["default"].string,
4115
+ borderColor: PropTypes__default["default"].string,
4116
+ config: PropTypes__default["default"].object
4088
4117
  };
4089
4118
 
4090
4119
  var _styleModuleImportMap$1 = {
@@ -4123,7 +4152,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4123
4152
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
4124
4153
 
4125
4154
  var borderBottomStyle = function borderBottomStyle() {
4126
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
4155
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
4127
4156
  className: "collection-name-m_border-bottom__1MnlV",
4128
4157
  style: {
4129
4158
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -4183,40 +4212,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4183
4212
  }
4184
4213
  };
4185
4214
 
4186
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
4215
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
4187
4216
  style: {
4188
4217
  borderBottom: borderBottomFullStyle
4189
4218
  },
4190
4219
  "data-test-id": "collection-name",
4191
4220
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$1)
4192
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
4221
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
4193
4222
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
4194
4223
  style: {
4195
4224
  color: CollectionNameBorderColor,
4196
4225
  fontSize: getBorderHeight()
4197
4226
  }
4198
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
4227
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
4199
4228
  href: slug,
4200
4229
  "aria-label": "collection-name"
4201
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
4230
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
4202
4231
  };
4203
4232
  CollectionNameBase.propTypes = {
4204
4233
  /** Collection name border color */
4205
- collectionNameBorderColor: PropTypes$1.string,
4234
+ collectionNameBorderColor: PropTypes.PropTypes.string,
4206
4235
 
4207
4236
  /** The Collection Object from the API response */
4208
- collection: PropTypes$1.object,
4237
+ collection: PropTypes.PropTypes.object,
4209
4238
 
4210
4239
  /** The publisher config from the API response */
4211
- config: PropTypes$1.object,
4240
+ config: PropTypes.PropTypes.object,
4212
4241
 
4213
4242
  /** The style template for the component */
4214
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
4243
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
4215
4244
 
4216
4245
  /** Header tags ranging h1-h6, where h[headerLevel] */
4217
- headerLevel: PropTypes$1.string,
4218
- customCollectionName: PropTypes$1.string,
4219
- navigate: PropTypes$1.bool
4246
+ headerLevel: PropTypes.PropTypes.string,
4247
+ customCollectionName: PropTypes.PropTypes.string,
4248
+ navigate: PropTypes.PropTypes.bool
4220
4249
  };
4221
4250
  CollectionNameBase.defaultProps = {
4222
4251
  collectionNameTemplate: "",
@@ -4229,7 +4258,7 @@ function mapStateToProps(state) {
4229
4258
  };
4230
4259
  }
4231
4260
 
4232
- var CollectionName = connect(mapStateToProps)(CollectionNameBase);
4261
+ var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
4233
4262
 
4234
4263
  function _defineProperty(obj, key, value) {
4235
4264
  if (key in obj) {
@@ -4278,26 +4307,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4278
4307
  if (!showButton) return null;
4279
4308
  var textColor = getTextColor(theme);
4280
4309
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4281
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4310
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4282
4311
  onClick: onClick,
4283
4312
  "data-test-id": "load-more",
4284
4313
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4285
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4314
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4286
4315
  href: slug,
4287
4316
  navigateTo: navigate,
4288
4317
  "data-test-id": "load-more",
4289
4318
  "aria-label": "load-more"
4290
- }, /*#__PURE__*/React.createElement("div", {
4319
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4291
4320
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4292
4321
  }, buttonText));
4293
4322
  };
4294
4323
  LoadmoreButton.propTypes = {
4295
- collection: PropTypes.object,
4296
- template: PropTypes.string,
4297
- config: PropTypes.object,
4298
- onClick: PropTypes.func,
4299
- navigate: PropTypes.func,
4300
- qtConfig: PropTypes.object
4324
+ collection: PropTypes__default["default"].object,
4325
+ template: PropTypes__default["default"].string,
4326
+ config: PropTypes__default["default"].object,
4327
+ onClick: PropTypes__default["default"].func,
4328
+ navigate: PropTypes__default["default"].func,
4329
+ qtConfig: PropTypes__default["default"].object
4301
4330
  };
4302
4331
 
4303
4332
  var isClient = typeof window !== "undefined";
@@ -4309,7 +4338,7 @@ var hasIntersectionObserverSupport = function hasIntersectionObserverSupport() {
4309
4338
 
4310
4339
 
4311
4340
  var getIntersectionObserver = function getIntersectionObserver() {
4312
- return Promise.resolve(isClient && !hasIntersectionObserverSupport() && import('intersection-observer'));
4341
+ return Promise.resolve(isClient && !hasIntersectionObserverSupport() && Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('intersection-observer')); }));
4313
4342
  }; // options for intersection observer in order to improve the effect
4314
4343
 
4315
4344
 
@@ -4342,12 +4371,12 @@ var getObserver = function getObserver() {
4342
4371
  var useNearScreen = (function (_ref) {
4343
4372
  var ref = _ref.ref;
4344
4373
 
4345
- var _useState = useState(false),
4374
+ var _useState = React.useState(false),
4346
4375
  _useState2 = _slicedToArray(_useState, 2),
4347
4376
  show = _useState2[0],
4348
4377
  setShow = _useState2[1];
4349
4378
 
4350
- useEffect(function () {
4379
+ React.useEffect(function () {
4351
4380
  var current = ref.current;
4352
4381
  if (!current) return; // get observer async and only when needed
4353
4382
 
@@ -4374,36 +4403,36 @@ var EMPTY_HTML = {
4374
4403
  var isServer = typeof window === "undefined";
4375
4404
  var ProgressiveHydration = function ProgressiveHydration(props) {
4376
4405
  var children = props.children;
4377
- var ref = useRef(null);
4406
+ var ref = React.useRef(null);
4378
4407
  var isNearScreen = useNearScreen({
4379
4408
  ref: ref
4380
4409
  });
4381
- useEffect(function () {
4410
+ React.useEffect(function () {
4382
4411
  var el = ref.current; // CLIENT:
4383
4412
  // If we want to force the hydration OR the element is near screen
4384
4413
  // then we hydrate the content to get the functionality ready
4385
4414
 
4386
4415
  if (isNearScreen) {
4387
4416
  var action = el.hasChildNodes() ? "hydrate" : "render";
4388
- ReactDOM[action](children, el);
4417
+ ReactDOM__default["default"][action](children, el);
4389
4418
  }
4390
4419
  }, [children, isNearScreen]); // SERVER: Just render the content as usual
4391
4420
 
4392
4421
  if (isServer) {
4393
- return /*#__PURE__*/React.createElement("div", {
4422
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4394
4423
  ref: ref
4395
4424
  }, children);
4396
4425
  } // CLIENT: Avoid hydration until we say so
4397
4426
 
4398
4427
 
4399
- return /*#__PURE__*/React.createElement("div", {
4428
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4400
4429
  ref: ref,
4401
4430
  suppressHydrationWarning: true,
4402
4431
  dangerouslySetInnerHTML: EMPTY_HTML
4403
4432
  });
4404
4433
  };
4405
4434
  ProgressiveHydration.propTypes = {
4406
- children: PropTypes.element
4435
+ children: PropTypes__default["default"].element
4407
4436
  };
4408
4437
 
4409
4438
  var LoadMoreTarget = function LoadMoreTarget(_ref) {
@@ -4411,7 +4440,7 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4411
4440
  componentName = _ref.componentName,
4412
4441
  offset = _ref.offset,
4413
4442
  limit = _ref.limit;
4414
- return /*#__PURE__*/React.createElement("div", {
4443
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4415
4444
  id: "ELM-".concat(collection.id),
4416
4445
  "data-collection-slug": collection["slug"],
4417
4446
  "data-component-name": componentName,
@@ -4420,13 +4449,13 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4420
4449
  });
4421
4450
  };
4422
4451
  LoadMoreTarget.propTypes = {
4423
- collection: PropTypes.shape({
4424
- id: PropTypes.string,
4425
- slug: PropTypes.string
4452
+ collection: PropTypes__default["default"].shape({
4453
+ id: PropTypes__default["default"].string,
4454
+ slug: PropTypes__default["default"].string
4426
4455
  }),
4427
- componentName: PropTypes.string,
4428
- offset: PropTypes.number,
4429
- limit: PropTypes.number
4456
+ componentName: PropTypes__default["default"].string,
4457
+ offset: PropTypes__default["default"].number,
4458
+ limit: PropTypes__default["default"].number
4430
4459
  };
4431
4460
 
4432
4461
  var loadMore = function loadMore(_ref) {
@@ -4469,13 +4498,13 @@ var FourColGridBase = function FourColGridBase(_ref2) {
4469
4498
  navigate = _config$navigate === void 0 ? true : _config$navigate,
4470
4499
  _config$subsequentLoa = config.subsequentLoadCount,
4471
4500
  subsequentLoadCount = _config$subsequentLoa === void 0 ? 4 : _config$subsequentLoa;
4472
- var storyItems = collectionToStories(collection);
4501
+ var storyItems = components.collectionToStories(collection);
4473
4502
  if (!storyItems.length) return null;
4474
4503
  var footerSlot = footerSlotConfig.footerSlot;
4475
4504
  var footerSlotComp = footerSlot ? footerSlot() : null;
4476
4505
  var textColor = getTextColor(theme);
4477
- var dispatch = useDispatch();
4478
- var qtConfig = useSelector(function (state) {
4506
+ var dispatch = reactRedux.useDispatch();
4507
+ var qtConfig = reactRedux.useSelector(function (state) {
4479
4508
  return get_1(state, ["qt", "config"], {});
4480
4509
  });
4481
4510
 
@@ -4483,7 +4512,7 @@ var FourColGridBase = function FourColGridBase(_ref2) {
4483
4512
  if (!isLoadMoreVisible) return null;
4484
4513
 
4485
4514
  if (isolatedLoadMore) {
4486
- return /*#__PURE__*/React.createElement(LoadMoreTarget, {
4515
+ return /*#__PURE__*/React__default["default"].createElement(LoadMoreTarget, {
4487
4516
  collection: collection,
4488
4517
  componentName: "FourColGrid",
4489
4518
  offset: storyItems.length,
@@ -4492,7 +4521,7 @@ var FourColGridBase = function FourColGridBase(_ref2) {
4492
4521
  }
4493
4522
 
4494
4523
  var url = generateNavigateSlug(collection, qtConfig);
4495
- return /*#__PURE__*/React.createElement(ProgressiveHydration, null, /*#__PURE__*/React.createElement(LoadmoreButton, {
4524
+ return /*#__PURE__*/React__default["default"].createElement(ProgressiveHydration, null, /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4496
4525
  config: config,
4497
4526
  collection: collection,
4498
4527
  template: footerButton,
@@ -4506,40 +4535,40 @@ var FourColGridBase = function FourColGridBase(_ref2) {
4506
4535
  }));
4507
4536
  };
4508
4537
 
4509
- return /*#__PURE__*/React.createElement("div", {
4538
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4510
4539
  className: "full-width-with-padding arrow-component",
4511
4540
  "data-test-id": "four-col-grid",
4512
4541
  style: {
4513
4542
  backgroundColor: theme,
4514
4543
  color: textColor
4515
4544
  }
4516
- }, /*#__PURE__*/React.createElement("div", {
4545
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4517
4546
  className: "four-col-m_four-col-grid__1EiO7"
4518
- }, /*#__PURE__*/React.createElement(CollectionName, {
4547
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4519
4548
  collection: collection,
4520
4549
  collectionNameTemplate: collectionNameTemplate,
4521
4550
  collectionNameBorderColor: collectionNameBorderColor,
4522
4551
  customCollectionName: customCollectionName,
4523
4552
  navigate: navigate
4524
- }), /*#__PURE__*/React.createElement("div", {
4553
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4525
4554
  className: "four-col-m_wrapper__1vOV7"
4526
4555
  }, storyItems.map(function (story, index) {
4527
- return /*#__PURE__*/React.createElement(Fragment, {
4556
+ return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
4528
4557
  key: "story-4col-".concat(index, "-").concat(get_1(story, ["id"], "0"))
4529
- }, /*#__PURE__*/React.createElement("div", {
4558
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4530
4559
  className: "four-col-m_story-card-wrapper__1e8p0",
4531
4560
  key: "default-".concat(index)
4532
- }, /*#__PURE__*/React.createElement(StoryCard, {
4561
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4533
4562
  story: story,
4534
4563
  border: border,
4535
4564
  theme: theme,
4536
4565
  isHorizontalMobile: true,
4537
4566
  config: config
4538
- }, /*#__PURE__*/React.createElement(HeroImage, {
4567
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4539
4568
  aspectRatio: [[16, 9]],
4540
4569
  story: story,
4541
4570
  isHorizontalMobile: true
4542
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4571
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4543
4572
  theme: theme,
4544
4573
  border: border,
4545
4574
  borderColor: borderColor,
@@ -4556,23 +4585,23 @@ var FourColGridBase = function FourColGridBase(_ref2) {
4556
4585
  };
4557
4586
  FourColGridBase.propTypes = {
4558
4587
  /** collection is the array of objects which is returning by API */
4559
- collection: PropTypes.object.isRequired,
4588
+ collection: PropTypes__default["default"].object.isRequired,
4560
4589
 
4561
4590
  /** The config for the Row */
4562
- config: PropTypes.shape({
4563
- borderColor: PropTypes.string,
4564
- theme: PropTypes.string,
4565
- border: PropTypes.bool,
4566
- slotConfig: PropTypes.array,
4567
- collectionNameTemplate: PropTypes.string,
4568
- footerButton: PropTypes.string,
4569
- collectionNameBorderColor: PropTypes.string,
4570
- subsequentLoadCount: PropTypes.number
4591
+ config: PropTypes__default["default"].shape({
4592
+ borderColor: PropTypes__default["default"].string,
4593
+ theme: PropTypes__default["default"].string,
4594
+ border: PropTypes__default["default"].bool,
4595
+ slotConfig: PropTypes__default["default"].array,
4596
+ collectionNameTemplate: PropTypes__default["default"].string,
4597
+ footerButton: PropTypes__default["default"].string,
4598
+ collectionNameBorderColor: PropTypes__default["default"].string,
4599
+ subsequentLoadCount: PropTypes__default["default"].number
4571
4600
  }),
4572
- getMoreStories: PropTypes.func,
4573
- isLoadMoreVisible: PropTypes.bool,
4574
- isLoading: PropTypes.bool,
4575
- isolatedLoadMore: PropTypes.bool
4601
+ getMoreStories: PropTypes__default["default"].func,
4602
+ isLoadMoreVisible: PropTypes__default["default"].bool,
4603
+ isLoading: PropTypes__default["default"].bool,
4604
+ isolatedLoadMore: PropTypes__default["default"].bool
4576
4605
  };
4577
4606
  FourColGridBase.defaultProps = {
4578
4607
  getMoreStories: function getMoreStories() {},
@@ -4581,4 +4610,5 @@ FourColGridBase.defaultProps = {
4581
4610
  };
4582
4611
  var FourColGrid = StateProvider(FourColGridBase);
4583
4612
 
4584
- export { FourColGrid, FourColGridBase };
4613
+ exports.FourColGrid = FourColGrid;
4614
+ exports.FourColGridBase = FourColGridBase;