@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, useState, useRef, useEffect } from 'react';
2
- import { connect, useSelector, useDispatch } from 'react-redux';
3
- import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
4
- import PropTypes, { PropTypes as PropTypes$1, number, string, func, array, bool } from 'prop-types';
5
- import Timeago from 'react-timeago';
6
- import { utcToZonedTime, format } from 'date-fns-tz';
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var reactRedux = require('react-redux');
7
+ var components = require('@quintype/components');
8
+ var PropTypes = require('prop-types');
9
+ var Timeago = require('react-timeago');
10
+ var dateFnsTz = require('date-fns-tz');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
16
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
7
17
 
8
18
  function _arrayWithHoles(arr) {
9
19
  if (Array.isArray(arr)) return arr;
@@ -1405,21 +1415,21 @@ exports["default"] = _default;
1405
1415
 
1406
1416
  var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
1407
1417
 
1408
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
1418
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
1409
1419
 
1410
1420
  var StateProvider = function StateProvider(RowComponent) {
1411
1421
  return function (props) {
1412
1422
  return (
1413
1423
  /*#__PURE__*/
1414
1424
  // eslint-disable-next-line react/prop-types
1415
- React.createElement(StateContext.Provider, {
1425
+ React__default["default"].createElement(StateContext.Provider, {
1416
1426
  value: props.config
1417
- }, /*#__PURE__*/React.createElement(RowComponent, props))
1427
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
1418
1428
  );
1419
1429
  };
1420
1430
  };
1421
1431
  var useStateValue = function useStateValue() {
1422
- return useContext(StateContext);
1432
+ return React.useContext(StateContext);
1423
1433
  };
1424
1434
 
1425
1435
  function _typeof(obj) {
@@ -2739,15 +2749,15 @@ var isEmpty = function isEmpty(value) {
2739
2749
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2740
2750
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2741
2751
  };
2742
- PropTypes.shape({
2743
- "sketches-host": PropTypes.string,
2744
- "cdn-name": PropTypes.string,
2745
- "cdn-image": PropTypes.string
2752
+ PropTypes__default["default"].shape({
2753
+ "sketches-host": PropTypes__default["default"].string,
2754
+ "cdn-name": PropTypes__default["default"].string,
2755
+ "cdn-image": PropTypes__default["default"].string
2746
2756
  });
2747
- PropTypes.shape({
2748
- headline: PropTypes.string,
2749
- "last-published-at": PropTypes.number,
2750
- subheadline: PropTypes.string
2757
+ PropTypes__default["default"].shape({
2758
+ headline: PropTypes__default["default"].string,
2759
+ "last-published-at": PropTypes__default["default"].number,
2760
+ subheadline: PropTypes__default["default"].string
2751
2761
  });
2752
2762
  var getStoryUrl = function getStoryUrl(story) {
2753
2763
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2791,17 +2801,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2791
2801
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2792
2802
 
2793
2803
  if (timezone && template === "story") {
2794
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2795
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2804
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2805
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2796
2806
  timeZone: timezone
2797
2807
  });
2798
2808
  var timeStamp = timestampToFormat("", "", "", date, config);
2799
- return /*#__PURE__*/React.createElement("time", {
2809
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2800
2810
  dateTime: formatZonedTime
2801
2811
  }, timeStamp);
2802
2812
  }
2803
2813
 
2804
- return /*#__PURE__*/React.createElement(Timeago, {
2814
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2805
2815
  date: date,
2806
2816
  formatter: function formatter(value, unit, suffix, date) {
2807
2817
  return _formatter(value, unit, suffix, date, config);
@@ -2845,7 +2855,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2845
2855
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
2846
2856
 
2847
2857
  var borderBottomStyle = function borderBottomStyle() {
2848
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
2858
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
2849
2859
  className: "collection-name-m_border-bottom__1MnlV",
2850
2860
  style: {
2851
2861
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -2905,40 +2915,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2905
2915
  }
2906
2916
  };
2907
2917
 
2908
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
2918
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
2909
2919
  style: {
2910
2920
  borderBottom: borderBottomFullStyle
2911
2921
  },
2912
2922
  "data-test-id": "collection-name",
2913
2923
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$f)
2914
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
2924
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
2915
2925
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2916
2926
  style: {
2917
2927
  color: CollectionNameBorderColor,
2918
2928
  fontSize: getBorderHeight()
2919
2929
  }
2920
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
2930
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
2921
2931
  href: slug,
2922
2932
  "aria-label": "collection-name"
2923
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2933
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2924
2934
  };
2925
2935
  CollectionNameBase.propTypes = {
2926
2936
  /** Collection name border color */
2927
- collectionNameBorderColor: PropTypes$1.string,
2937
+ collectionNameBorderColor: PropTypes.PropTypes.string,
2928
2938
 
2929
2939
  /** The Collection Object from the API response */
2930
- collection: PropTypes$1.object,
2940
+ collection: PropTypes.PropTypes.object,
2931
2941
 
2932
2942
  /** The publisher config from the API response */
2933
- config: PropTypes$1.object,
2943
+ config: PropTypes.PropTypes.object,
2934
2944
 
2935
2945
  /** The style template for the component */
2936
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2946
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2937
2947
 
2938
2948
  /** Header tags ranging h1-h6, where h[headerLevel] */
2939
- headerLevel: PropTypes$1.string,
2940
- customCollectionName: PropTypes$1.string,
2941
- navigate: PropTypes$1.bool
2949
+ headerLevel: PropTypes.PropTypes.string,
2950
+ customCollectionName: PropTypes.PropTypes.string,
2951
+ navigate: PropTypes.PropTypes.bool
2942
2952
  };
2943
2953
  CollectionNameBase.defaultProps = {
2944
2954
  collectionNameTemplate: "",
@@ -2951,7 +2961,7 @@ function mapStateToProps$1(state) {
2951
2961
  };
2952
2962
  }
2953
2963
 
2954
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
2964
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
2955
2965
 
2956
2966
  var CrownIcon = function CrownIcon(_ref) {
2957
2967
  var height = _ref.height,
@@ -2959,7 +2969,7 @@ var CrownIcon = function CrownIcon(_ref) {
2959
2969
  _ref$color = _ref.color,
2960
2970
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
2961
2971
  positionTop = _ref.positionTop;
2962
- return /*#__PURE__*/React.createElement("svg", {
2972
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2963
2973
  xmlns: "http://www.w3.org/2000/svg",
2964
2974
  width: width,
2965
2975
  height: height,
@@ -2968,28 +2978,28 @@ var CrownIcon = function CrownIcon(_ref) {
2968
2978
  position: "relative",
2969
2979
  top: positionTop
2970
2980
  }
2971
- }, /*#__PURE__*/React.createElement("g", {
2981
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2972
2982
  fill: "none",
2973
2983
  fillRule: "evenodd",
2974
2984
  stroke: "none",
2975
2985
  strokeWidth: "1"
2976
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
2986
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2977
2987
  transform: "translate(8 8)"
2978
- }, /*#__PURE__*/React.createElement("path", {
2988
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2979
2989
  d: "M0 0H24V24H0z"
2980
- }), /*#__PURE__*/React.createElement("g", {
2990
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2981
2991
  fill: color,
2982
2992
  fillRule: "nonzero",
2983
2993
  transform: "translate(0 2)"
2984
- }, /*#__PURE__*/React.createElement("path", {
2994
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2985
2995
  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"
2986
2996
  }))))));
2987
2997
  };
2988
2998
  CrownIcon.propTypes = {
2989
- height: PropTypes.string,
2990
- width: PropTypes.string,
2991
- color: PropTypes.string,
2992
- positionTop: PropTypes.string
2999
+ height: PropTypes__default["default"].string,
3000
+ width: PropTypes__default["default"].string,
3001
+ color: PropTypes__default["default"].string,
3002
+ positionTop: PropTypes__default["default"].string
2993
3003
  };
2994
3004
 
2995
3005
  var KeyIcon = function KeyIcon(_ref) {
@@ -2998,7 +3008,7 @@ var KeyIcon = function KeyIcon(_ref) {
2998
3008
  _ref$color = _ref.color,
2999
3009
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3000
3010
  positionTop = _ref.positionTop;
3001
- return /*#__PURE__*/React.createElement("svg", {
3011
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3002
3012
  xmlns: "http://www.w3.org/2000/svg",
3003
3013
  width: width,
3004
3014
  height: height,
@@ -3007,16 +3017,16 @@ var KeyIcon = function KeyIcon(_ref) {
3007
3017
  position: "relative",
3008
3018
  top: positionTop
3009
3019
  }
3010
- }, /*#__PURE__*/React.createElement("g", {
3020
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3011
3021
  fill: "none",
3012
3022
  fillRule: "evenodd",
3013
3023
  stroke: "none",
3014
3024
  strokeWidth: "1"
3015
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3025
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3016
3026
  transform: "translate(8 8)"
3017
- }, /*#__PURE__*/React.createElement("path", {
3027
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3018
3028
  d: "M0 0H24V24H0z"
3019
- }), /*#__PURE__*/React.createElement("path", {
3029
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3020
3030
  fill: color,
3021
3031
  fillRule: "nonzero",
3022
3032
  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",
@@ -3024,10 +3034,10 @@ var KeyIcon = function KeyIcon(_ref) {
3024
3034
  })))));
3025
3035
  };
3026
3036
  KeyIcon.propTypes = {
3027
- height: PropTypes.string,
3028
- width: PropTypes.string,
3029
- color: PropTypes.string,
3030
- positionTop: PropTypes.string
3037
+ height: PropTypes__default["default"].string,
3038
+ width: PropTypes__default["default"].string,
3039
+ color: PropTypes__default["default"].string,
3040
+ positionTop: PropTypes__default["default"].string
3031
3041
  };
3032
3042
 
3033
3043
  var LockIcon = function LockIcon(_ref) {
@@ -3036,7 +3046,7 @@ var LockIcon = function LockIcon(_ref) {
3036
3046
  _ref$color = _ref.color,
3037
3047
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3038
3048
  positionTop = _ref.positionTop;
3039
- return /*#__PURE__*/React.createElement("svg", {
3049
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3040
3050
  xmlns: "http://www.w3.org/2000/svg",
3041
3051
  width: width,
3042
3052
  height: height,
@@ -3045,28 +3055,28 @@ var LockIcon = function LockIcon(_ref) {
3045
3055
  position: "relative",
3046
3056
  top: positionTop
3047
3057
  }
3048
- }, /*#__PURE__*/React.createElement("g", {
3058
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3049
3059
  fill: "none",
3050
3060
  fillRule: "evenodd",
3051
3061
  stroke: "none",
3052
3062
  strokeWidth: "1"
3053
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3063
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3054
3064
  transform: "translate(8 8)"
3055
- }, /*#__PURE__*/React.createElement("path", {
3065
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3056
3066
  d: "M0 0H24V24H0z"
3057
- }), /*#__PURE__*/React.createElement("g", {
3067
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3058
3068
  fill: color,
3059
3069
  fillRule: "nonzero",
3060
3070
  transform: "translate(3)"
3061
- }, /*#__PURE__*/React.createElement("path", {
3071
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3062
3072
  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"
3063
3073
  }))))));
3064
3074
  };
3065
3075
  LockIcon.propTypes = {
3066
- height: PropTypes.string,
3067
- width: PropTypes.string,
3068
- color: PropTypes.string,
3069
- positionTop: PropTypes.string
3076
+ height: PropTypes__default["default"].string,
3077
+ width: PropTypes__default["default"].string,
3078
+ color: PropTypes__default["default"].string,
3079
+ positionTop: PropTypes__default["default"].string
3070
3080
  };
3071
3081
 
3072
3082
  var StarIcon = function StarIcon(_ref) {
@@ -3076,7 +3086,7 @@ var StarIcon = function StarIcon(_ref) {
3076
3086
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3077
3087
  _ref$positionTop = _ref.positionTop,
3078
3088
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3079
- return /*#__PURE__*/React.createElement("svg", {
3089
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3080
3090
  xmlns: "http://www.w3.org/2000/svg",
3081
3091
  width: width,
3082
3092
  height: height,
@@ -3085,21 +3095,21 @@ var StarIcon = function StarIcon(_ref) {
3085
3095
  position: "relative",
3086
3096
  top: positionTop
3087
3097
  }
3088
- }, /*#__PURE__*/React.createElement("g", {
3098
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3089
3099
  fill: "none",
3090
3100
  fillRule: "evenodd",
3091
3101
  stroke: "none",
3092
3102
  strokeWidth: "1"
3093
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3103
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3094
3104
  fill: color,
3095
3105
  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"
3096
3106
  }))));
3097
3107
  };
3098
3108
  StarIcon.propTypes = {
3099
- height: PropTypes.string,
3100
- width: PropTypes.string,
3101
- color: PropTypes.string,
3102
- positionTop: PropTypes.string
3109
+ height: PropTypes__default["default"].string,
3110
+ width: PropTypes__default["default"].string,
3111
+ color: PropTypes__default["default"].string,
3112
+ positionTop: PropTypes__default["default"].string
3103
3113
  };
3104
3114
 
3105
3115
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3111,7 +3121,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3111
3121
 
3112
3122
  switch (iconType) {
3113
3123
  case "crown":
3114
- return /*#__PURE__*/React.createElement(CrownIcon, {
3124
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3115
3125
  width: width,
3116
3126
  height: height,
3117
3127
  color: color,
@@ -3119,7 +3129,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3119
3129
  });
3120
3130
 
3121
3131
  case "lock":
3122
- return /*#__PURE__*/React.createElement(LockIcon, {
3132
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3123
3133
  width: width,
3124
3134
  height: height,
3125
3135
  color: color,
@@ -3127,7 +3137,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3127
3137
  });
3128
3138
 
3129
3139
  case "key":
3130
- return /*#__PURE__*/React.createElement(KeyIcon, {
3140
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3131
3141
  width: width,
3132
3142
  height: height,
3133
3143
  color: color,
@@ -3135,7 +3145,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3135
3145
  });
3136
3146
 
3137
3147
  default:
3138
- return /*#__PURE__*/React.createElement(StarIcon, {
3148
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3139
3149
  width: width,
3140
3150
  height: height,
3141
3151
  color: color,
@@ -3144,21 +3154,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3144
3154
  }
3145
3155
  };
3146
3156
  PremiumStoryIcon.propTypes = {
3147
- width: PropTypes.string,
3148
- height: PropTypes.string,
3149
- color: PropTypes.string,
3150
- iconType: PropTypes.string,
3151
- positionTop: PropTypes.string
3157
+ width: PropTypes__default["default"].string,
3158
+ height: PropTypes__default["default"].string,
3159
+ color: PropTypes__default["default"].string,
3160
+ iconType: PropTypes__default["default"].string,
3161
+ positionTop: PropTypes__default["default"].string
3152
3162
  };
3153
3163
 
3154
3164
  function LiveIcon() {
3155
- return /*#__PURE__*/React.createElement("svg", {
3165
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3156
3166
  className: "live-icon",
3157
3167
  xmlns: "http://www.w3.org/2000/svg",
3158
3168
  width: "25",
3159
3169
  height: "24",
3160
3170
  viewBox: "0 0 25 24"
3161
- }, /*#__PURE__*/React.createElement("path", {
3171
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3162
3172
  fill: "#ff5858",
3163
3173
  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"
3164
3174
  }));
@@ -3215,37 +3225,37 @@ var Headline = function Headline(_ref) {
3215
3225
  var wrapperClass = premiumStory ? "wrapper" : "";
3216
3226
  var iconSize = "24px";
3217
3227
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3218
- return /*#__PURE__*/React.createElement("div", {
3228
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3219
3229
  "data-test-id": "headline",
3220
3230
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$e)
3221
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3231
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3222
3232
  width: iconSize,
3223
3233
  height: iconSize,
3224
3234
  color: iconColor,
3225
3235
  iconType: iconStyle,
3226
3236
  positionTop: positionHeadline()
3227
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3237
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3228
3238
  href: getStoryUrl(story, "/".concat(story.slug)),
3229
3239
  externalLink: isExternalStory(story),
3230
3240
  "aria-label": "headline"
3231
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3241
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3232
3242
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$e)
3233
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3243
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3234
3244
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$e)
3235
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3245
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3236
3246
  };
3237
3247
  Headline.propTypes = {
3238
3248
  /** The Story Object from the API response */
3239
- story: PropTypes.object.isRequired,
3249
+ story: PropTypes__default["default"].object.isRequired,
3240
3250
 
3241
3251
  /** Header tags ranging h1-h6, where h[headerLevel] */
3242
- headerLevel: PropTypes.string,
3243
- premiumStoryIconConfig: PropTypes.shape({
3244
- iconColor: PropTypes.string,
3245
- iconType: PropTypes.string,
3246
- enablePremiumStoryIcon: PropTypes.bool
3252
+ headerLevel: PropTypes__default["default"].string,
3253
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3254
+ iconColor: PropTypes__default["default"].string,
3255
+ iconType: PropTypes__default["default"].string,
3256
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3247
3257
  }),
3248
- isLink: PropTypes.bool
3258
+ isLink: PropTypes__default["default"].bool
3249
3259
  };
3250
3260
  Headline.defaultProps = {
3251
3261
  headerLevel: "6",
@@ -3272,7 +3282,7 @@ var Subheadline = function Subheadline(_ref) {
3272
3282
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3273
3283
  if (!subheadline) return null;
3274
3284
  var textColor = getTextColor(config.theme);
3275
- return /*#__PURE__*/React.createElement("div", {
3285
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3276
3286
  style: {
3277
3287
  WebkitLineClamp: lineClamp
3278
3288
  },
@@ -3282,15 +3292,15 @@ var Subheadline = function Subheadline(_ref) {
3282
3292
  };
3283
3293
  Subheadline.propTypes = {
3284
3294
  /** The Story Object from the API response */
3285
- story: PropTypes.object.isRequired,
3295
+ story: PropTypes__default["default"].object.isRequired,
3286
3296
  // Restricts the number of lines for subheadline.
3287
- lineClamp: PropTypes.number,
3297
+ lineClamp: PropTypes__default["default"].number,
3288
3298
 
3289
3299
  /** Number of characters to truncate the subheadline */
3290
- truncateChars: PropTypes.number,
3291
- clazzName: PropTypes.string,
3292
- forceShowAtom: PropTypes.bool,
3293
- showFullContent: PropTypes.bool
3300
+ truncateChars: PropTypes__default["default"].number,
3301
+ clazzName: PropTypes__default["default"].string,
3302
+ forceShowAtom: PropTypes__default["default"].bool,
3303
+ showFullContent: PropTypes__default["default"].bool
3294
3304
  };
3295
3305
  Subheadline.defaultProps = {
3296
3306
  forceShowAtom: false,
@@ -3316,18 +3326,18 @@ var TimeStamp = function TimeStamp(_ref) {
3316
3326
  var time = story["last-published-at"] || story["first-published-at"];
3317
3327
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3318
3328
  var textColor = getTextColor(configState.theme);
3319
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3329
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3320
3330
  "data-test-id": "publish-time",
3321
3331
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$c)
3322
- }, /*#__PURE__*/React.createElement("div", {
3332
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3323
3333
  className: "timestamp-m_time-wrapper__3O2lM"
3324
3334
  }, getTimeStamp(time, formatter, config))));
3325
3335
  };
3326
3336
  TimeStamp.propTypes = {
3327
3337
  /** The Story Object from the API response */
3328
- story: PropTypes.object,
3329
- isBottom: PropTypes.bool,
3330
- config: PropTypes.object
3338
+ story: PropTypes__default["default"].object,
3339
+ isBottom: PropTypes__default["default"].bool,
3340
+ config: PropTypes__default["default"].object
3331
3341
  };
3332
3342
 
3333
3343
  var _styleModuleImportMap$b = {
@@ -3370,10 +3380,10 @@ var AuthorBase = function AuthorBase(_ref) {
3370
3380
  return null;
3371
3381
  }
3372
3382
 
3373
- return /*#__PURE__*/React.createElement("div", {
3383
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3374
3384
  "data-test-id": "author-image",
3375
3385
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$b)
3376
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3386
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3377
3387
  slug: avatarS3Key,
3378
3388
  "aspect-ratio": [1, 1],
3379
3389
  defaultWidth: 400,
@@ -3381,14 +3391,14 @@ var AuthorBase = function AuthorBase(_ref) {
3381
3391
  auto: ["format", "compress"]
3382
3392
  },
3383
3393
  alt: authorName
3384
- }) : /*#__PURE__*/React.createElement("img", {
3394
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3385
3395
  src: avatarUrl
3386
3396
  })));
3387
3397
  };
3388
3398
 
3389
3399
  var isPrefix = function isPrefix(dir) {
3390
3400
  if (prefix) {
3391
- return /*#__PURE__*/React.createElement("div", {
3401
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3392
3402
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$b)
3393
3403
  }, prefix);
3394
3404
  }
@@ -3396,11 +3406,11 @@ var AuthorBase = function AuthorBase(_ref) {
3396
3406
  return !hideAuthorImage && authorImage(dir);
3397
3407
  };
3398
3408
 
3399
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3409
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3400
3410
  href: "".concat(mountAt, "/author/") + slug,
3401
3411
  "aria-label": "author-name",
3402
3412
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$b)
3403
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3413
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3404
3414
  "data-test-id": "author-name",
3405
3415
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$b)
3406
3416
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3412,18 +3422,18 @@ function mapStateToProps(state) {
3412
3422
  };
3413
3423
  }
3414
3424
 
3415
- var Author = connect(mapStateToProps)(AuthorBase);
3425
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3416
3426
  AuthorBase.propTypes = {
3417
3427
  /** The Story Object from the API response */
3418
- story: PropTypes.object.isRequired,
3428
+ story: PropTypes__default["default"].object.isRequired,
3419
3429
 
3420
3430
  /** Hide Author Avatar Image */
3421
- hideAuthorImage: PropTypes.bool,
3431
+ hideAuthorImage: PropTypes__default["default"].bool,
3422
3432
  // fix Author bottom of the storyCard
3423
- isBottom: PropTypes.bool,
3433
+ isBottom: PropTypes__default["default"].bool,
3424
3434
  // fix prefix before the author name
3425
- prefix: PropTypes.string,
3426
- config: PropTypes.object
3435
+ prefix: PropTypes__default["default"].string,
3436
+ config: PropTypes__default["default"].object
3427
3437
  };
3428
3438
  AuthorBase.defaultProps = {
3429
3439
  hideAuthorImage: false,
@@ -3444,14 +3454,14 @@ var Dot = function Dot(_ref) {
3444
3454
  height = _ref$height === void 0 ? "3px" : _ref$height,
3445
3455
  _ref$color = _ref.color,
3446
3456
  color = _ref$color === void 0 ? "light" : _ref$color;
3447
- return /*#__PURE__*/React.createElement("div", {
3457
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3448
3458
  className: _getClassName(color, _styleModuleImportMap$a)
3449
- }, /*#__PURE__*/React.createElement("svg", {
3459
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3450
3460
  xmlns: "http://www.w3.org/2000/svg",
3451
3461
  width: width,
3452
3462
  height: height,
3453
3463
  viewBox: "0 0 3 3"
3454
- }, /*#__PURE__*/React.createElement("circle", {
3464
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3455
3465
  cx: "87",
3456
3466
  cy: "9",
3457
3467
  r: "1",
@@ -3462,9 +3472,9 @@ var Dot = function Dot(_ref) {
3462
3472
  };
3463
3473
  Dot.propTypes = {
3464
3474
  /** height , width and color of the dot icon */
3465
- color: PropTypes.string,
3466
- width: PropTypes.string,
3467
- height: PropTypes.string
3475
+ color: PropTypes__default["default"].string,
3476
+ width: PropTypes__default["default"].string,
3477
+ height: PropTypes__default["default"].string
3468
3478
  };
3469
3479
 
3470
3480
  var _styleModuleImportMap$9 = {
@@ -3480,22 +3490,22 @@ var Divider = function Divider(_ref) {
3480
3490
  height = _ref$height === void 0 ? "10" : _ref$height,
3481
3491
  _ref$color = _ref.color,
3482
3492
  color = _ref$color === void 0 ? "light" : _ref$color;
3483
- return /*#__PURE__*/React.createElement("div", {
3493
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3484
3494
  className: _getClassName(color, _styleModuleImportMap$9)
3485
- }, /*#__PURE__*/React.createElement("svg", {
3495
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3486
3496
  xmlns: "http://www.w3.org/2000/svg",
3487
3497
  width: width,
3488
3498
  height: height
3489
- }, /*#__PURE__*/React.createElement("path", {
3499
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3490
3500
  fill: "inherit",
3491
3501
  d: "M0 0h1v10H0z"
3492
3502
  })));
3493
3503
  };
3494
3504
  Divider.propTypes = {
3495
3505
  /** height , width and color of the dot icon */
3496
- color: PropTypes.string,
3497
- width: PropTypes.string,
3498
- height: PropTypes.string
3506
+ color: PropTypes__default["default"].string,
3507
+ width: PropTypes__default["default"].string,
3508
+ height: PropTypes__default["default"].string
3499
3509
  };
3500
3510
 
3501
3511
  var _styleModuleImportMap$8 = {
@@ -3518,23 +3528,23 @@ var ReadTime = function ReadTime(_ref) {
3518
3528
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3519
3529
  if (!showReadTime || !readTime) return null;
3520
3530
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3521
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3531
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3522
3532
  "data-test-id": "read-time",
3523
3533
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$8)
3524
- }, /*#__PURE__*/React.createElement("span", {
3534
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3525
3535
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3526
- }, /*#__PURE__*/React.createElement(Dot, {
3536
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3527
3537
  color: textColor
3528
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3538
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3529
3539
  };
3530
3540
  ReadTime.propTypes = {
3531
- story: PropTypes.shape({
3532
- "read-time": PropTypes.number
3541
+ story: PropTypes__default["default"].shape({
3542
+ "read-time": PropTypes__default["default"].number
3533
3543
  }),
3534
- opts: PropTypes.shape({
3535
- showReadTime: PropTypes.bool
3544
+ opts: PropTypes__default["default"].shape({
3545
+ showReadTime: PropTypes__default["default"].bool
3536
3546
  }),
3537
- isLightTheme: PropTypes.bool
3547
+ isLightTheme: PropTypes__default["default"].bool
3538
3548
  };
3539
3549
 
3540
3550
  var _styleModuleImportMap$7 = {
@@ -3565,33 +3575,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3565
3575
 
3566
3576
  var getSeparator = function getSeparator() {
3567
3577
  if (separator === "divider") {
3568
- return /*#__PURE__*/React.createElement(Divider, {
3578
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3569
3579
  color: textColor
3570
3580
  });
3571
3581
  }
3572
3582
 
3573
- return /*#__PURE__*/React.createElement(Dot, {
3583
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3574
3584
  color: textColor
3575
3585
  });
3576
3586
  };
3577
3587
 
3578
3588
  var getTimeStamp = function getTimeStamp() {
3579
3589
  if (!isTime) return null;
3580
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3590
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3581
3591
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$7)
3582
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3592
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3583
3593
  story: story,
3584
3594
  config: config
3585
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3595
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3586
3596
  story: story,
3587
3597
  opts: config,
3588
3598
  isLightTheme: isLightTheme
3589
3599
  }));
3590
3600
  };
3591
3601
 
3592
- return /*#__PURE__*/React.createElement("div", {
3602
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3593
3603
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$7)
3594
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3604
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3595
3605
  story: story,
3596
3606
  isBottom: true,
3597
3607
  hideAuthorImage: hideAuthorImage,
@@ -3599,19 +3609,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3599
3609
  }), getTimeStamp()) : getTimeStamp());
3600
3610
  };
3601
3611
  AuthorWithTime.propTypes = {
3602
- story: PropTypes.object,
3612
+ story: PropTypes__default["default"].object,
3603
3613
 
3604
3614
  /** Style of separator between the Author & Timestamp */
3605
- separator: PropTypes.oneOf(["dot", "divider"]),
3615
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3606
3616
 
3607
3617
  /** hide the author image */
3608
- hideAuthorImage: PropTypes.bool,
3618
+ hideAuthorImage: PropTypes__default["default"].bool,
3609
3619
  // fix author and time at the end
3610
- isBottom: PropTypes.bool,
3620
+ isBottom: PropTypes__default["default"].bool,
3611
3621
  // fix prefix before the author name
3612
- prefix: PropTypes.string,
3613
- config: PropTypes.object,
3614
- isLightTheme: PropTypes.bool
3622
+ prefix: PropTypes__default["default"].string,
3623
+ config: PropTypes__default["default"].object,
3624
+ isLightTheme: PropTypes__default["default"].bool
3615
3625
  };
3616
3626
  AuthorWithTime.defaultProps = {
3617
3627
  separator: "dot",
@@ -3628,27 +3638,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3628
3638
  height = _ref$height === void 0 ? 30 : _ref$height,
3629
3639
  _ref$iconColor = _ref.iconColor,
3630
3640
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
3631
- return /*#__PURE__*/React.createElement("svg", {
3641
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3632
3642
  width: width,
3633
3643
  height: height,
3634
3644
  viewBox: "0 0 102 76",
3635
3645
  version: "1.1"
3636
- }, /*#__PURE__*/React.createElement("g", {
3646
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3637
3647
  id: "demo-home-copy",
3638
3648
  stroke: "none",
3639
3649
  strokeWidth: "1",
3640
3650
  fill: "none",
3641
3651
  fillRule: "evenodd",
3642
3652
  transform: "translate(-377.000000, -314.000000)"
3643
- }, /*#__PURE__*/React.createElement("g", {
3653
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3644
3654
  id: "Group-13",
3645
3655
  transform: "translate(377.000000, 314.000000)"
3646
- }, /*#__PURE__*/React.createElement("path", {
3656
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3647
3657
  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",
3648
3658
  id: "Combined-Shape",
3649
3659
  fill: iconColor,
3650
3660
  fillRule: "nonzero"
3651
- }), /*#__PURE__*/React.createElement("rect", {
3661
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
3652
3662
  id: "Rectangle-19",
3653
3663
  stroke: iconColor,
3654
3664
  strokeWidth: "3",
@@ -3660,24 +3670,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3660
3670
  }))));
3661
3671
  };
3662
3672
  ImageFallbackIcon.propTypes = {
3663
- width: PropTypes.object,
3664
- height: PropTypes.object,
3665
- iconColor: PropTypes.object
3673
+ width: PropTypes__default["default"].object,
3674
+ height: PropTypes__default["default"].object,
3675
+ iconColor: PropTypes__default["default"].object
3666
3676
  };
3667
3677
 
3668
3678
  var imageFallback = function imageFallback() {
3669
- return /*#__PURE__*/React.createElement("div", {
3679
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3670
3680
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3671
- }, /*#__PURE__*/React.createElement("figure", {
3681
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3672
3682
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3673
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3683
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3674
3684
  };
3675
3685
 
3676
3686
  var FallbackImage = function FallbackImage(_ref) {
3677
3687
  var slug = _ref.slug;
3678
3688
 
3679
3689
  if (slug) {
3680
- return /*#__PURE__*/React.createElement(Link, {
3690
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3681
3691
  href: slug,
3682
3692
  "aria-label": "image-fallback"
3683
3693
  }, imageFallback());
@@ -3686,23 +3696,23 @@ var FallbackImage = function FallbackImage(_ref) {
3686
3696
  }
3687
3697
  };
3688
3698
  FallbackImage.propTypes = {
3689
- slug: PropTypes.string
3699
+ slug: PropTypes__default["default"].string
3690
3700
  };
3691
3701
 
3692
3702
  var HyperLinkIcon = function HyperLinkIcon() {
3693
- return /*#__PURE__*/React.createElement("svg", {
3703
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3694
3704
  xmlns: "http://www.w3.org/2000/svg",
3695
3705
  width: "36",
3696
3706
  height: "28"
3697
- }, /*#__PURE__*/React.createElement("g", {
3707
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3698
3708
  fill: "none",
3699
3709
  fillRule: "evenodd"
3700
- }, /*#__PURE__*/React.createElement("rect", {
3710
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3701
3711
  width: "36",
3702
3712
  height: "28",
3703
3713
  fill: "#3D6FCF",
3704
3714
  rx: "4"
3705
- }), /*#__PURE__*/React.createElement("path", {
3715
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3706
3716
  stroke: "#FFF",
3707
3717
  strokeLinecap: "round",
3708
3718
  strokeLinejoin: "round",
@@ -3715,16 +3725,16 @@ var HyperLink = function HyperLink(_ref) {
3715
3725
  var _ref$hyperLink = _ref.hyperLink,
3716
3726
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3717
3727
  if (!hyperLink) return null;
3718
- return /*#__PURE__*/React.createElement(Link, {
3728
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3719
3729
  href: hyperLink,
3720
3730
  "aria-label": "hyperlink-button",
3721
3731
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3722
3732
  target: "_blank",
3723
3733
  rel: "noopener noreferrer"
3724
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3734
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3725
3735
  };
3726
3736
  HyperLink.propTypes = {
3727
- hyperLink: PropTypes.string
3737
+ hyperLink: PropTypes__default["default"].string
3728
3738
  };
3729
3739
 
3730
3740
  var _styleModuleImportMap$6 = {
@@ -3760,7 +3770,7 @@ var HeroImage = function HeroImage(_ref) {
3760
3770
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3761
3771
  return null;
3762
3772
  } : _config$StoryTemplate;
3763
- var showImagePlaceholder = useSelector(function (state) {
3773
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3764
3774
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3765
3775
  });
3766
3776
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3796,37 +3806,37 @@ var HeroImage = function HeroImage(_ref) {
3796
3806
  var fallbackImage = function fallbackImage() {
3797
3807
  if (!slug) {
3798
3808
  if (fallbackImageUrl && !isStoryPageImage) {
3799
- return /*#__PURE__*/React.createElement("figure", {
3809
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3800
3810
  style: {
3801
3811
  paddingTop: imagePadding + "%"
3802
3812
  },
3803
3813
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3804
- }, /*#__PURE__*/React.createElement("img", {
3814
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3805
3815
  className: "qt-image",
3806
3816
  "data-src": "".concat(fallbackImageUrl),
3807
3817
  alt: "image-fallback"
3808
3818
  }));
3809
3819
  }
3810
3820
 
3811
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3821
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3812
3822
  "data-test-id": "arr--fallback-hero-image",
3813
3823
  style: {
3814
3824
  paddingTop: imagePadding + "%"
3815
3825
  },
3816
3826
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3817
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3827
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3818
3828
  storyTemplate: story["story-template"]
3819
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3829
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3820
3830
  }
3821
3831
 
3822
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3832
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3823
3833
  style: {
3824
3834
  paddingTop: imagePadding + "%"
3825
3835
  },
3826
3836
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3827
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3837
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3828
3838
  storyTemplate: story["story-template"]
3829
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3839
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3830
3840
  story: story,
3831
3841
  aspectRatio: imageAspectRatio,
3832
3842
  defaultWidth: defaultWidth,
@@ -3835,15 +3845,15 @@ var HeroImage = function HeroImage(_ref) {
3835
3845
  auto: ["format", "compress"],
3836
3846
  fit: "max"
3837
3847
  }
3838
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3848
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3839
3849
  hyperLink: hyperLink
3840
3850
  }));
3841
3851
  };
3842
3852
 
3843
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3853
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3844
3854
  "data-test-id": "arr--hero-image",
3845
3855
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
3846
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3856
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3847
3857
  "data-test-id": "arr--hero-image",
3848
3858
  href: getStoryUrl(story, "/".concat(story.slug)),
3849
3859
  externalLink: isExternalStory(story),
@@ -3853,30 +3863,30 @@ var HeroImage = function HeroImage(_ref) {
3853
3863
  };
3854
3864
  HeroImage.propTypes = {
3855
3865
  /** The Story Object from the API response */
3856
- story: PropTypes.object.isRequired,
3866
+ story: PropTypes__default["default"].object.isRequired,
3857
3867
 
3858
3868
  /** Removes the Hero Image padding for the image to bleed over the margin */
3859
- FullBleed: PropTypes.bool,
3869
+ FullBleed: PropTypes__default["default"].bool,
3860
3870
 
3861
3871
  /** The default width for the image, in case the browser does not support srcset */
3862
- defaultWidth: PropTypes.number,
3872
+ defaultWidth: PropTypes__default["default"].number,
3863
3873
 
3864
3874
  /** The list of available widths */
3865
- widths: PropTypes.array,
3875
+ widths: PropTypes__default["default"].array,
3866
3876
  // fatch the correct hero image
3867
- aspectRatio: PropTypes.array,
3877
+ aspectRatio: PropTypes__default["default"].array,
3868
3878
  // Hints for the browser to choose the best size
3869
3879
 
3870
3880
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3871
- isHorizontal: PropTypes.bool,
3881
+ isHorizontal: PropTypes__default["default"].bool,
3872
3882
 
3873
3883
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3874
- isHorizontalMobile: PropTypes.bool,
3884
+ isHorizontalMobile: PropTypes__default["default"].bool,
3875
3885
  // this prop is responsive for rendering fallback image on story page
3876
- defaultFallback: PropTypes.bool,
3877
- isHorizontalWithImageLast: PropTypes.bool,
3878
- isStoryPageImage: PropTypes.bool,
3879
- config: PropTypes.object
3886
+ defaultFallback: PropTypes__default["default"].bool,
3887
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3888
+ isStoryPageImage: PropTypes__default["default"].bool,
3889
+ config: PropTypes__default["default"].object
3880
3890
  };
3881
3891
  HeroImage.defaultProps = {
3882
3892
  FullBleed: true,
@@ -3926,22 +3936,22 @@ var SectionTag = function SectionTag(_ref) {
3926
3936
  }
3927
3937
 
3928
3938
  if (!isSection) return null;
3929
- return /*#__PURE__*/React.createElement(Link, {
3939
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3930
3940
  href: getUrl,
3931
3941
  className: "arrow-component arr--section-name",
3932
3942
  "aria-label": "section-name"
3933
- }, /*#__PURE__*/React.createElement("div", {
3943
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3934
3944
  "data-test-id": "sectionTag",
3935
3945
  style: {
3936
3946
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3937
3947
  },
3938
3948
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$5)
3939
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3949
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3940
3950
  className: "section-m_border-left__2oUyp",
3941
3951
  style: {
3942
3952
  color: sectionTagBorderColor
3943
3953
  }
3944
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3954
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3945
3955
  className: "section-m_border-bottom__3cRoD",
3946
3956
  style: {
3947
3957
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3950,13 +3960,13 @@ var SectionTag = function SectionTag(_ref) {
3950
3960
  };
3951
3961
  SectionTag.propTypes = {
3952
3962
  /** The Story Object from the API response */
3953
- story: PropTypes.object.isRequired,
3963
+ story: PropTypes__default["default"].object.isRequired,
3954
3964
 
3955
3965
  /** The style template for section tag */
3956
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3957
- borderColor: PropTypes.string,
3958
- solidBorderColor: PropTypes.string,
3959
- isLightTheme: PropTypes.bool
3966
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3967
+ borderColor: PropTypes__default["default"].string,
3968
+ solidBorderColor: PropTypes__default["default"].string,
3969
+ isLightTheme: PropTypes__default["default"].bool
3960
3970
  };
3961
3971
  SectionTag.defaultProps = {
3962
3972
  template: "",
@@ -4005,7 +4015,7 @@ var StoryCard = function StoryCard(_ref) {
4005
4015
  prefix = _ref.prefix,
4006
4016
  config = _ref.config,
4007
4017
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4008
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
4018
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4009
4019
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4010
4020
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4011
4021
 
@@ -4015,7 +4025,7 @@ var StoryCard = function StoryCard(_ref) {
4015
4025
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4016
4026
  var textColor = getTextColor(theme);
4017
4027
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4018
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4028
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4019
4029
  story: story,
4020
4030
  aspectRatio: aspectRatio,
4021
4031
  border: border,
@@ -4029,7 +4039,7 @@ var StoryCard = function StoryCard(_ref) {
4029
4039
  config: config,
4030
4040
  isHorizontalWithImageLast: isHorizontalWithImageLast
4031
4041
  });
4032
- return /*#__PURE__*/React.createElement("div", {
4042
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4033
4043
  "data-test-id": "story-card",
4034
4044
  style: {
4035
4045
  backgroundColor: theme,
@@ -4058,91 +4068,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4058
4068
  var SectionTagborderColor = rgbToHex(borderColor);
4059
4069
  var _config$localizationC = config.localizationConfig,
4060
4070
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4061
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4071
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4062
4072
  config: config,
4063
4073
  story: story,
4064
4074
  isHorizontal: true,
4065
4075
  isHorizontalMobile: isHorizontalMobile,
4066
4076
  aspectRatio: aspectRatio
4067
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4077
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4068
4078
  config: config,
4069
4079
  story: story,
4070
4080
  isHorizontalWithImageLast: true,
4071
4081
  isHorizontalMobile: isHorizontalMobile,
4072
4082
  aspectRatio: aspectRatio
4073
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4083
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4074
4084
  story: story,
4075
4085
  config: config,
4076
4086
  isHorizontalMobile: isHorizontalMobile,
4077
4087
  aspectRatio: aspectRatio
4078
- }), /*#__PURE__*/React.createElement("div", {
4088
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4079
4089
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$4)
4080
- }, /*#__PURE__*/React.createElement(SectionTag, {
4090
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4081
4091
  story: story,
4082
4092
  borderColor: SectionTagborderColor
4083
- }), /*#__PURE__*/React.createElement(Headline, {
4093
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4084
4094
  story: story,
4085
4095
  headerLevel: headerLevel,
4086
4096
  premiumStoryIconConfig: config
4087
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4097
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4088
4098
  config: localizationConfig,
4089
4099
  story: story,
4090
4100
  isBottom: true,
4091
4101
  prefix: prefix,
4092
4102
  hideAuthorImage: hideAuthorImage
4093
- }), /*#__PURE__*/React.createElement(Subheadline, {
4103
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4094
4104
  story: story
4095
4105
  })));
4096
4106
  };
4097
4107
 
4098
4108
  DefaultStoryCard.propTypes = {
4099
- story: PropTypes.object.isRequired,
4100
- border: PropTypes.oneOfType([PropTypes.string]),
4101
- isBottom: PropTypes.bool,
4102
- isHorizontal: PropTypes.bool,
4103
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4104
- isHorizontalMobile: PropTypes.bool,
4105
- centerAlign: PropTypes.bool,
4106
- headerLevel: PropTypes.string,
4107
- borderColor: PropTypes.string,
4108
- hideAuthorImage: PropTypes.bool,
4109
- prefix: PropTypes.string,
4110
- config: PropTypes.object,
4111
- isHorizontalWithImageLast: PropTypes.bool
4109
+ story: PropTypes__default["default"].object.isRequired,
4110
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4111
+ isBottom: PropTypes__default["default"].bool,
4112
+ isHorizontal: PropTypes__default["default"].bool,
4113
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4114
+ isHorizontalMobile: PropTypes__default["default"].bool,
4115
+ centerAlign: PropTypes__default["default"].bool,
4116
+ headerLevel: PropTypes__default["default"].string,
4117
+ borderColor: PropTypes__default["default"].string,
4118
+ hideAuthorImage: PropTypes__default["default"].bool,
4119
+ prefix: PropTypes__default["default"].string,
4120
+ config: PropTypes__default["default"].object,
4121
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4112
4122
  };
4113
4123
  StoryCard.propTypes = {
4114
4124
  /** The Story Object from the API response */
4115
- story: PropTypes.object.isRequired,
4116
- children: PropTypes.node,
4125
+ story: PropTypes__default["default"].object.isRequired,
4126
+ children: PropTypes__default["default"].node,
4117
4127
 
4118
4128
  /** Flip the Story Card to Horizonal mode */
4119
- isHorizontal: PropTypes.bool,
4129
+ isHorizontal: PropTypes__default["default"].bool,
4120
4130
 
4121
4131
  /** Add border to the Story Card */
4122
- border: PropTypes.oneOfType([PropTypes.string]),
4132
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4123
4133
  // story card with background image
4124
- useImageAsBackground: PropTypes.bool,
4134
+ useImageAsBackground: PropTypes__default["default"].bool,
4125
4135
  // story card content overlap with image
4126
- bgImgContentOverlap: PropTypes.bool,
4136
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4127
4137
 
4128
4138
  /** add aspect ratio for hero image */
4129
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4139
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4130
4140
 
4131
4141
  /** add theme(dark /light/custom color) for storycard */
4132
- theme: PropTypes.string,
4142
+ theme: PropTypes__default["default"].string,
4133
4143
 
4134
4144
  /** flip the story card mobile design horizontal */
4135
- isHorizontalMobile: PropTypes.bool,
4145
+ isHorizontalMobile: PropTypes__default["default"].bool,
4136
4146
  // make content center align in desktop and left align in mobile
4137
- centerAlign: PropTypes.bool,
4138
- headerLevel: PropTypes.string,
4139
- borderColor: PropTypes.string,
4147
+ centerAlign: PropTypes__default["default"].bool,
4148
+ headerLevel: PropTypes__default["default"].string,
4149
+ borderColor: PropTypes__default["default"].string,
4140
4150
  // handle author image through storycard
4141
- hideAuthorImage: PropTypes.bool,
4151
+ hideAuthorImage: PropTypes__default["default"].bool,
4142
4152
  // handle author prefix through storycard
4143
- prefix: PropTypes.string,
4144
- config: PropTypes.object,
4145
- isHorizontalWithImageLast: PropTypes.bool
4153
+ prefix: PropTypes__default["default"].string,
4154
+ config: PropTypes__default["default"].object,
4155
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4146
4156
  };
4147
4157
  StoryCard.defaultProps = {
4148
4158
  isHorizontal: false,
@@ -4175,14 +4185,14 @@ var StorycardContent = function StorycardContent(_ref) {
4175
4185
  var SectionTagborderColor = rgbToHex(borderColor);
4176
4186
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4177
4187
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4178
- return /*#__PURE__*/React.createElement("div", {
4188
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4179
4189
  "data-test-id": "story-card-content",
4180
4190
  style: {
4181
4191
  backgroundColor: theme,
4182
4192
  color: textColor
4183
4193
  },
4184
4194
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$3)
4185
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
4195
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4186
4196
  story: story,
4187
4197
  headerLevel: headerLevel,
4188
4198
  isHorizontalMobile: isHorizontalMobile,
@@ -4200,37 +4210,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4200
4210
  var SectionTagborderColor = rgbToHex(borderColor);
4201
4211
  var _config$localizationC = config.localizationConfig,
4202
4212
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4203
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
4213
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4204
4214
  story: story,
4205
4215
  borderColor: SectionTagborderColor
4206
- }), /*#__PURE__*/React.createElement(Headline, {
4216
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4207
4217
  story: story,
4208
4218
  headerLevel: headerLevel,
4209
4219
  premiumStoryIconConfig: config
4210
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4220
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4211
4221
  config: localizationConfig,
4212
4222
  story: story
4213
4223
  }));
4214
4224
  };
4215
4225
 
4216
4226
  DefaultStoryCardContent.propTypes = {
4217
- story: PropTypes.object.isRequired,
4218
- border: PropTypes.string,
4219
- theme: PropTypes.string,
4220
- isHorizontalMobile: PropTypes.bool,
4221
- headerLevel: PropTypes.string,
4222
- borderColor: PropTypes.string,
4223
- config: PropTypes.object
4227
+ story: PropTypes__default["default"].object.isRequired,
4228
+ border: PropTypes__default["default"].string,
4229
+ theme: PropTypes__default["default"].string,
4230
+ isHorizontalMobile: PropTypes__default["default"].bool,
4231
+ headerLevel: PropTypes__default["default"].string,
4232
+ borderColor: PropTypes__default["default"].string,
4233
+ config: PropTypes__default["default"].object
4224
4234
  };
4225
4235
  StorycardContent.propTypes = {
4226
- story: PropTypes.object.isRequired,
4227
- children: PropTypes.node,
4228
- theme: PropTypes.string,
4229
- border: PropTypes.string,
4230
- isHorizontalMobile: PropTypes.bool,
4231
- headerLevel: PropTypes.string,
4232
- borderColor: PropTypes.string,
4233
- config: PropTypes.object
4236
+ story: PropTypes__default["default"].object.isRequired,
4237
+ children: PropTypes__default["default"].node,
4238
+ theme: PropTypes__default["default"].string,
4239
+ border: PropTypes__default["default"].string,
4240
+ isHorizontalMobile: PropTypes__default["default"].bool,
4241
+ headerLevel: PropTypes__default["default"].string,
4242
+ borderColor: PropTypes__default["default"].string,
4243
+ config: PropTypes__default["default"].object
4234
4244
  };
4235
4245
 
4236
4246
  function _defineProperty(obj, key, value) {
@@ -4280,72 +4290,72 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4280
4290
  if (!showButton) return null;
4281
4291
  var textColor = getTextColor(theme);
4282
4292
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4283
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4293
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4284
4294
  onClick: onClick,
4285
4295
  "data-test-id": "load-more",
4286
4296
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$2)
4287
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4297
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4288
4298
  href: slug,
4289
4299
  navigateTo: navigate,
4290
4300
  "data-test-id": "load-more",
4291
4301
  "aria-label": "load-more"
4292
- }, /*#__PURE__*/React.createElement("div", {
4302
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4293
4303
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$2)
4294
4304
  }, buttonText));
4295
4305
  };
4296
4306
  LoadmoreButton.propTypes = {
4297
- collection: PropTypes.object,
4298
- template: PropTypes.string,
4299
- config: PropTypes.object,
4300
- onClick: PropTypes.func,
4301
- navigate: PropTypes.func,
4302
- qtConfig: PropTypes.object
4307
+ collection: PropTypes__default["default"].object,
4308
+ template: PropTypes__default["default"].string,
4309
+ config: PropTypes__default["default"].object,
4310
+ onClick: PropTypes__default["default"].func,
4311
+ navigate: PropTypes__default["default"].func,
4312
+ qtConfig: PropTypes__default["default"].object
4303
4313
  };
4304
4314
 
4305
4315
  var LeftArrow = function LeftArrow(_ref) {
4306
4316
  var _ref$color = _ref.color,
4307
4317
  color = _ref$color === void 0 ? "#333" : _ref$color;
4308
- return /*#__PURE__*/React.createElement("svg", {
4318
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
4309
4319
  xmlns: "http://www.w3.org/2000/svg",
4310
4320
  width: "16",
4311
4321
  height: "16",
4312
4322
  viewBox: "0 0 10 16"
4313
- }, /*#__PURE__*/React.createElement("g", {
4323
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
4314
4324
  fill: "none",
4315
4325
  fillRule: "nonzero"
4316
- }, /*#__PURE__*/React.createElement("path", {
4326
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
4317
4327
  d: "M17 20H-7V-4h24z",
4318
4328
  opacity: ".384"
4319
- }), /*#__PURE__*/React.createElement("path", {
4329
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
4320
4330
  stroke: color,
4321
4331
  d: "M9 16L1 8l8-8"
4322
4332
  })));
4323
4333
  };
4324
4334
  LeftArrow.propTypes = {
4325
- color: PropTypes.string
4335
+ color: PropTypes__default["default"].string
4326
4336
  };
4327
4337
 
4328
4338
  var RightArrow = function RightArrow(_ref) {
4329
4339
  var _ref$color = _ref.color,
4330
4340
  color = _ref$color === void 0 ? "#333" : _ref$color;
4331
- return /*#__PURE__*/React.createElement("svg", {
4341
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
4332
4342
  xmlns: "http://www.w3.org/2000/svg",
4333
4343
  width: "16",
4334
4344
  height: "16",
4335
4345
  viewBox: "0 0 10 16"
4336
- }, /*#__PURE__*/React.createElement("g", {
4346
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
4337
4347
  fill: "none",
4338
4348
  fillRule: "nonzero"
4339
- }, /*#__PURE__*/React.createElement("path", {
4349
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
4340
4350
  d: "M-7-4h24v24H-7z",
4341
4351
  opacity: ".384"
4342
- }), /*#__PURE__*/React.createElement("path", {
4352
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
4343
4353
  stroke: color,
4344
4354
  d: "M1 0l8 8-8 8"
4345
4355
  })));
4346
4356
  };
4347
4357
  RightArrow.propTypes = {
4348
- color: PropTypes.string
4358
+ color: PropTypes__default["default"].string
4349
4359
  };
4350
4360
 
4351
4361
  var _styleModuleImportMap$1 = {
@@ -4383,26 +4393,26 @@ var SliderArrow = function SliderArrow(_ref) {
4383
4393
 
4384
4394
  var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
4385
4395
  var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
4386
- return /*#__PURE__*/React.createElement(React.Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React.createElement("button", {
4396
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
4387
4397
  onClick: previousClick,
4388
4398
  className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$1)
4389
- }, /*#__PURE__*/React.createElement(LeftArrow, {
4399
+ }, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
4390
4400
  color: textColor === "dark" ? "#fff" : "#333"
4391
- })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React.createElement("button", {
4401
+ })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
4392
4402
  onClick: nextClick,
4393
4403
  className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$1)
4394
- }, /*#__PURE__*/React.createElement(RightArrow, {
4404
+ }, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
4395
4405
  color: textColor === "dark" ? "#fff" : "#333"
4396
4406
  })) : null);
4397
4407
  };
4398
4408
  SliderArrow.propTypes = {
4399
- noOfItems: number,
4400
- perView: number,
4401
- slideIndicator: string,
4402
- previousClick: func,
4403
- nextClick: func,
4404
- selectedIndex: number,
4405
- languageDirection: string
4409
+ noOfItems: PropTypes.number,
4410
+ perView: PropTypes.number,
4411
+ slideIndicator: PropTypes.string,
4412
+ previousClick: PropTypes.func,
4413
+ nextClick: PropTypes.func,
4414
+ selectedIndex: PropTypes.number,
4415
+ languageDirection: PropTypes.string
4406
4416
  };
4407
4417
 
4408
4418
  var _styleModuleImportMap = {
@@ -4430,27 +4440,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
4430
4440
 
4431
4441
  var config = useStateValue() || {};
4432
4442
  var textColor = getTextColor(config.theme);
4433
- return /*#__PURE__*/React.createElement("ul", {
4443
+ return /*#__PURE__*/React__default["default"].createElement("ul", {
4434
4444
  className: "slider-indicators slider-indicator-m_indicators__3MNXc"
4435
4445
  }, indicatorItems.map(function (_, index) {
4436
- return /*#__PURE__*/React.createElement("li", {
4446
+ return /*#__PURE__*/React__default["default"].createElement("li", {
4437
4447
  key: "slider-".concat(index),
4438
4448
  className: "indicator slider-indicator-m_indicator__gTv3x",
4439
4449
  onClick: function onClick(e) {
4440
4450
  return indicatorClick(e, index);
4441
4451
  }
4442
- }, /*#__PURE__*/React.createElement("button", {
4452
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
4443
4453
  "aria-pressed": selectedIndex === index ? "true" : "false",
4444
4454
  className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap)
4445
4455
  }));
4446
4456
  }));
4447
4457
  };
4448
4458
  SliderIndicator.propTypes = {
4449
- indicatorItems: array,
4450
- perView: number,
4451
- indicatorType: string,
4452
- indicatorClick: func,
4453
- selectedIndex: number
4459
+ indicatorItems: PropTypes.array,
4460
+ perView: PropTypes.number,
4461
+ indicatorType: PropTypes.string,
4462
+ indicatorClick: PropTypes.func,
4463
+ selectedIndex: PropTypes.number
4454
4464
  };
4455
4465
 
4456
4466
  var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
@@ -4485,24 +4495,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
4485
4495
  perView = _ref.perView,
4486
4496
  slideIndicator = _ref.slideIndicator;
4487
4497
 
4488
- var _useState = useState(0),
4498
+ var _useState = React.useState(0),
4489
4499
  _useState2 = _slicedToArray(_useState, 2),
4490
4500
  selectedIndex = _useState2[0],
4491
4501
  setSelectedIndex = _useState2[1];
4492
4502
 
4493
- var _useState3 = useState(false),
4503
+ var _useState3 = React.useState(false),
4494
4504
  _useState4 = _slicedToArray(_useState3, 2),
4495
4505
  autoScroll = _useState4[0],
4496
4506
  setAutoScroll = _useState4[1];
4497
4507
 
4498
- var languageDirection = useSelector(function (state) {
4508
+ var languageDirection = reactRedux.useSelector(function (state) {
4499
4509
  return get_1(state, ["qt", "config", "language", "direction"], "ltr");
4500
4510
  });
4501
4511
  var noOfItems = children ? children.length : 0;
4502
- var scroller = useRef(null);
4512
+ var scroller = React.useRef(null);
4503
4513
  var numberOfIndicatorsToShow = children.length - (perView - 1);
4504
4514
  var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
4505
- useEffect(function () {
4515
+ React.useEffect(function () {
4506
4516
  if (scroller.current) {
4507
4517
  scroller.current.addEventListener("scroll", setIndicatorValue(function () {
4508
4518
  var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
@@ -4519,7 +4529,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
4519
4529
  };
4520
4530
  }, []); // Infinite scroll
4521
4531
 
4522
- useEffect(function () {
4532
+ React.useEffect(function () {
4523
4533
  if (isInfinite && !autoScroll) {
4524
4534
  var timer = setInterval(function () {
4525
4535
  infiniteScroll();
@@ -4568,23 +4578,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
4568
4578
  updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
4569
4579
  };
4570
4580
 
4571
- return /*#__PURE__*/React.createElement("div", {
4581
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4572
4582
  className: "scroll-snap-container"
4573
- }, /*#__PURE__*/React.createElement("div", {
4583
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4574
4584
  className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
4575
4585
  onMouseEnter: pauseAutoPlay,
4576
4586
  onMouseLeave: pauseAutoPlay
4577
- }, /*#__PURE__*/React.createElement("div", {
4587
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4578
4588
  ref: scroller,
4579
4589
  className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
4580
- }, children), isArrow && /*#__PURE__*/React.createElement(SliderArrow, {
4590
+ }, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
4581
4591
  noOfItems: noOfItems,
4582
4592
  perView: perView,
4583
4593
  previousClick: previousClick,
4584
4594
  nextClick: nextClick,
4585
4595
  selectedIndex: selectedIndex,
4586
4596
  languageDirection: languageDirection
4587
- })), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React.createElement(SliderIndicator, {
4597
+ })), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
4588
4598
  indicatorItems: indicatorItems,
4589
4599
  indicatorClick: indicatorClick,
4590
4600
  selectedIndex: selectedIndex,
@@ -4600,13 +4610,13 @@ ScrollSnap.defaultProps = {
4600
4610
  slideIndicator: "dots"
4601
4611
  };
4602
4612
  ScrollSnap.propTypes = {
4603
- children: array.isRequired,
4604
- isArrow: bool,
4605
- isInfinite: bool,
4606
- interval: number,
4607
- pauseOnHover: bool,
4608
- perView: number,
4609
- slideIndicator: string
4613
+ children: PropTypes.array.isRequired,
4614
+ isArrow: PropTypes.bool,
4615
+ isInfinite: PropTypes.bool,
4616
+ interval: PropTypes.number,
4617
+ pauseOnHover: PropTypes.bool,
4618
+ perView: PropTypes.number,
4619
+ slideIndicator: PropTypes.string
4610
4620
  };
4611
4621
 
4612
4622
  var FourStorySliderBase = function FourStorySliderBase(_ref) {
@@ -4636,19 +4646,19 @@ var FourStorySliderBase = function FourStorySliderBase(_ref) {
4636
4646
  _config$isInfinite = config.isInfinite,
4637
4647
  isInfinite = _config$isInfinite === void 0 ? false : _config$isInfinite;
4638
4648
  var footerSlot = footerSlotConfig.footerSlot;
4639
- var items = collectionToStories(collection);
4649
+ var items = components.collectionToStories(collection);
4640
4650
 
4641
4651
  if (items.length < 1) {
4642
4652
  return null;
4643
4653
  }
4644
4654
 
4645
- var dispatch = useDispatch();
4646
- var qtConfig = useSelector(function (state) {
4655
+ var dispatch = reactRedux.useDispatch();
4656
+ var qtConfig = reactRedux.useSelector(function (state) {
4647
4657
  return get_1(state, ["qt", "config"], {});
4648
4658
  });
4649
4659
  var url = generateNavigateSlug(collection, qtConfig);
4650
4660
 
4651
- var _useState = useState(1),
4661
+ var _useState = React.useState(1),
4652
4662
  _useState2 = _slicedToArray(_useState, 2),
4653
4663
  perView = _useState2[0],
4654
4664
  setPerView = _useState2[1];
@@ -4656,24 +4666,24 @@ var FourStorySliderBase = function FourStorySliderBase(_ref) {
4656
4666
  var showNumberOfStoriesToShow = getNumberOfStoriesToShow(numberOfStoriesToShow);
4657
4667
  var textColor = getTextColor(theme);
4658
4668
  var footerSlotComp = footerSlot ? footerSlot() : null;
4659
- useEffect(function () {
4669
+ React.useEffect(function () {
4660
4670
  var deviceWidth = get_1(global, ["innerWidth"], 480);
4661
4671
  if (deviceWidth > 992) setPerView(4);else if (deviceWidth > 764) setPerView(3);else setPerView(1);
4662
4672
  }, []);
4663
4673
 
4664
4674
  var getItems = function getItems() {
4665
4675
  return items.slice(0, showNumberOfStoriesToShow).map(function (story, index) {
4666
- return /*#__PURE__*/React.createElement(StoryCard, {
4676
+ return /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4667
4677
  story: story,
4668
4678
  theme: theme,
4669
4679
  border: border,
4670
4680
  key: index,
4671
4681
  config: config
4672
- }, /*#__PURE__*/React.createElement(HeroImage, {
4682
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4673
4683
  config: config,
4674
4684
  story: story,
4675
4685
  aspectRatio: [[16, 9]]
4676
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4686
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4677
4687
  story: story,
4678
4688
  border: border,
4679
4689
  borderColor: borderColor,
@@ -4682,27 +4692,27 @@ var FourStorySliderBase = function FourStorySliderBase(_ref) {
4682
4692
  });
4683
4693
  };
4684
4694
 
4685
- return /*#__PURE__*/React.createElement("div", {
4695
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4686
4696
  className: "full-width-with-padding arrow-component",
4687
4697
  "data-test-id": "four-story-slider",
4688
4698
  style: {
4689
4699
  backgroundColor: theme,
4690
4700
  color: textColor
4691
4701
  }
4692
- }, /*#__PURE__*/React.createElement("div", {
4702
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4693
4703
  className: "four-story-slider-m_four-story-slider-wrapper__1WZcd"
4694
- }, /*#__PURE__*/React.createElement(CollectionName, {
4704
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4695
4705
  collection: collection,
4696
4706
  collectionNameTemplate: collectionNameTemplate,
4697
4707
  collectionNameBorderColor: collectionNameBorderColor
4698
- }), items.length > 4 ? /*#__PURE__*/React.createElement(ScrollSnap, {
4708
+ }), items.length > 4 ? /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
4699
4709
  isArrow: navigationArrows,
4700
4710
  perView: perView,
4701
4711
  slideIndicator: slideIndicator,
4702
4712
  isInfinite: isInfinite
4703
- }, getItems()) : /*#__PURE__*/React.createElement("div", {
4713
+ }, getItems()) : /*#__PURE__*/React__default["default"].createElement("div", {
4704
4714
  className: "four-story-slider-m_story-grid__NcDMl"
4705
- }, getItems()), /*#__PURE__*/React.createElement(LoadmoreButton, {
4715
+ }, getItems()), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4706
4716
  collection: collection,
4707
4717
  template: footerButton,
4708
4718
  config: config,
@@ -4714,23 +4724,23 @@ var FourStorySliderBase = function FourStorySliderBase(_ref) {
4714
4724
  };
4715
4725
  FourStorySliderBase.propTypes = {
4716
4726
  /** collection is the array of objects which is returning by API */
4717
- collection: PropTypes.object.isRequired,
4727
+ collection: PropTypes__default["default"].object.isRequired,
4718
4728
 
4719
4729
  /** The config for the Row */
4720
- config: PropTypes.shape({
4730
+ config: PropTypes__default["default"].shape({
4721
4731
  // section tag border color
4722
- borderColor: PropTypes.string,
4732
+ borderColor: PropTypes__default["default"].string,
4723
4733
  // background color of the row
4724
- theme: PropTypes.string,
4725
- border: PropTypes.string,
4726
- footerButton: PropTypes.string,
4734
+ theme: PropTypes__default["default"].string,
4735
+ border: PropTypes__default["default"].string,
4736
+ footerButton: PropTypes__default["default"].string,
4727
4737
  // configure ad slot widget and story
4728
- collectionNameTemplate: PropTypes.string,
4729
- autoplaySpeed: PropTypes.number,
4738
+ collectionNameTemplate: PropTypes__default["default"].string,
4739
+ autoplaySpeed: PropTypes__default["default"].number,
4730
4740
  // speed of the slider(ms)
4731
- numberOfStoriesToShow: PropTypes.number,
4741
+ numberOfStoriesToShow: PropTypes__default["default"].number,
4732
4742
  // no of slides in slider
4733
- collectionNameBorderColor: PropTypes.string
4743
+ collectionNameBorderColor: PropTypes__default["default"].string
4734
4744
  })
4735
4745
  };
4736
4746
  FourStorySliderBase.defaultProps = {
@@ -4740,4 +4750,5 @@ FourStorySliderBase.defaultProps = {
4740
4750
  };
4741
4751
  var FourStorySlider = StateProvider(FourStorySliderBase);
4742
4752
 
4743
- export { FourStorySlider, FourStorySliderBase };
4753
+ exports.FourStorySlider = FourStorySlider;
4754
+ exports.FourStorySliderBase = FourStorySliderBase;