@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 { Link, ResponsiveHeroImage, LinkBase, ResponsiveImage, collectionToStories } from '@quintype/components';
2
- import { connect, useSelector, useDispatch } from 'react-redux';
3
- import PropTypes, { PropTypes as PropTypes$1, number, string, func, array, bool } from 'prop-types';
4
- import React, { useContext, createContext, useState, useRef, useEffect } from 'react';
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 components = require('@quintype/components');
6
+ var reactRedux = require('react-redux');
7
+ var PropTypes = require('prop-types');
8
+ var React = require('react');
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 PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
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 ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2957
2967
  var _ref$width = _ref.width,
@@ -2960,27 +2970,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2960
2970
  height = _ref$height === void 0 ? 30 : _ref$height,
2961
2971
  _ref$iconColor = _ref.iconColor,
2962
2972
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
2963
- return /*#__PURE__*/React.createElement("svg", {
2973
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2964
2974
  width: width,
2965
2975
  height: height,
2966
2976
  viewBox: "0 0 102 76",
2967
2977
  version: "1.1"
2968
- }, /*#__PURE__*/React.createElement("g", {
2978
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2969
2979
  id: "demo-home-copy",
2970
2980
  stroke: "none",
2971
2981
  strokeWidth: "1",
2972
2982
  fill: "none",
2973
2983
  fillRule: "evenodd",
2974
2984
  transform: "translate(-377.000000, -314.000000)"
2975
- }, /*#__PURE__*/React.createElement("g", {
2985
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2976
2986
  id: "Group-13",
2977
2987
  transform: "translate(377.000000, 314.000000)"
2978
- }, /*#__PURE__*/React.createElement("path", {
2988
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2979
2989
  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",
2980
2990
  id: "Combined-Shape",
2981
2991
  fill: iconColor,
2982
2992
  fillRule: "nonzero"
2983
- }), /*#__PURE__*/React.createElement("rect", {
2993
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
2984
2994
  id: "Rectangle-19",
2985
2995
  stroke: iconColor,
2986
2996
  strokeWidth: "3",
@@ -2992,24 +3002,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2992
3002
  }))));
2993
3003
  };
2994
3004
  ImageFallbackIcon.propTypes = {
2995
- width: PropTypes.object,
2996
- height: PropTypes.object,
2997
- iconColor: PropTypes.object
3005
+ width: PropTypes__default["default"].object,
3006
+ height: PropTypes__default["default"].object,
3007
+ iconColor: PropTypes__default["default"].object
2998
3008
  };
2999
3009
 
3000
3010
  var imageFallback = function imageFallback() {
3001
- return /*#__PURE__*/React.createElement("div", {
3011
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3002
3012
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3003
- }, /*#__PURE__*/React.createElement("figure", {
3013
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3004
3014
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3005
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3015
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3006
3016
  };
3007
3017
 
3008
3018
  var FallbackImage = function FallbackImage(_ref) {
3009
3019
  var slug = _ref.slug;
3010
3020
 
3011
3021
  if (slug) {
3012
- return /*#__PURE__*/React.createElement(Link, {
3022
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3013
3023
  href: slug,
3014
3024
  "aria-label": "image-fallback"
3015
3025
  }, imageFallback());
@@ -3018,23 +3028,23 @@ var FallbackImage = function FallbackImage(_ref) {
3018
3028
  }
3019
3029
  };
3020
3030
  FallbackImage.propTypes = {
3021
- slug: PropTypes.string
3031
+ slug: PropTypes__default["default"].string
3022
3032
  };
3023
3033
 
3024
3034
  var HyperLinkIcon = function HyperLinkIcon() {
3025
- return /*#__PURE__*/React.createElement("svg", {
3035
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3026
3036
  xmlns: "http://www.w3.org/2000/svg",
3027
3037
  width: "36",
3028
3038
  height: "28"
3029
- }, /*#__PURE__*/React.createElement("g", {
3039
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3030
3040
  fill: "none",
3031
3041
  fillRule: "evenodd"
3032
- }, /*#__PURE__*/React.createElement("rect", {
3042
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3033
3043
  width: "36",
3034
3044
  height: "28",
3035
3045
  fill: "#3D6FCF",
3036
3046
  rx: "4"
3037
- }), /*#__PURE__*/React.createElement("path", {
3047
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3038
3048
  stroke: "#FFF",
3039
3049
  strokeLinecap: "round",
3040
3050
  strokeLinejoin: "round",
@@ -3047,16 +3057,16 @@ var HyperLink = function HyperLink(_ref) {
3047
3057
  var _ref$hyperLink = _ref.hyperLink,
3048
3058
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3049
3059
  if (!hyperLink) return null;
3050
- return /*#__PURE__*/React.createElement(Link, {
3060
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3051
3061
  href: hyperLink,
3052
3062
  "aria-label": "hyperlink-button",
3053
3063
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3054
3064
  target: "_blank",
3055
3065
  rel: "noopener noreferrer"
3056
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3066
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3057
3067
  };
3058
3068
  HyperLink.propTypes = {
3059
- hyperLink: PropTypes.string
3069
+ hyperLink: PropTypes__default["default"].string
3060
3070
  };
3061
3071
 
3062
3072
  var _styleModuleImportMap$e = {
@@ -3092,7 +3102,7 @@ var HeroImage = function HeroImage(_ref) {
3092
3102
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3093
3103
  return null;
3094
3104
  } : _config$StoryTemplate;
3095
- var showImagePlaceholder = useSelector(function (state) {
3105
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3096
3106
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3097
3107
  });
3098
3108
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3128,37 +3138,37 @@ var HeroImage = function HeroImage(_ref) {
3128
3138
  var fallbackImage = function fallbackImage() {
3129
3139
  if (!slug) {
3130
3140
  if (fallbackImageUrl && !isStoryPageImage) {
3131
- return /*#__PURE__*/React.createElement("figure", {
3141
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3132
3142
  style: {
3133
3143
  paddingTop: imagePadding + "%"
3134
3144
  },
3135
3145
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3136
- }, /*#__PURE__*/React.createElement("img", {
3146
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3137
3147
  className: "qt-image",
3138
3148
  "data-src": "".concat(fallbackImageUrl),
3139
3149
  alt: "image-fallback"
3140
3150
  }));
3141
3151
  }
3142
3152
 
3143
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3153
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3144
3154
  "data-test-id": "arr--fallback-hero-image",
3145
3155
  style: {
3146
3156
  paddingTop: imagePadding + "%"
3147
3157
  },
3148
3158
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3149
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3159
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3150
3160
  storyTemplate: story["story-template"]
3151
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3161
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3152
3162
  }
3153
3163
 
3154
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3164
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3155
3165
  style: {
3156
3166
  paddingTop: imagePadding + "%"
3157
3167
  },
3158
3168
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3159
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3169
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3160
3170
  storyTemplate: story["story-template"]
3161
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3171
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3162
3172
  story: story,
3163
3173
  aspectRatio: imageAspectRatio,
3164
3174
  defaultWidth: defaultWidth,
@@ -3167,15 +3177,15 @@ var HeroImage = function HeroImage(_ref) {
3167
3177
  auto: ["format", "compress"],
3168
3178
  fit: "max"
3169
3179
  }
3170
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3180
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3171
3181
  hyperLink: hyperLink
3172
3182
  }));
3173
3183
  };
3174
3184
 
3175
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3185
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3176
3186
  "data-test-id": "arr--hero-image",
3177
3187
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
3178
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3188
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3179
3189
  "data-test-id": "arr--hero-image",
3180
3190
  href: getStoryUrl(story, "/".concat(story.slug)),
3181
3191
  externalLink: isExternalStory(story),
@@ -3185,30 +3195,30 @@ var HeroImage = function HeroImage(_ref) {
3185
3195
  };
3186
3196
  HeroImage.propTypes = {
3187
3197
  /** The Story Object from the API response */
3188
- story: PropTypes.object.isRequired,
3198
+ story: PropTypes__default["default"].object.isRequired,
3189
3199
 
3190
3200
  /** Removes the Hero Image padding for the image to bleed over the margin */
3191
- FullBleed: PropTypes.bool,
3201
+ FullBleed: PropTypes__default["default"].bool,
3192
3202
 
3193
3203
  /** The default width for the image, in case the browser does not support srcset */
3194
- defaultWidth: PropTypes.number,
3204
+ defaultWidth: PropTypes__default["default"].number,
3195
3205
 
3196
3206
  /** The list of available widths */
3197
- widths: PropTypes.array,
3207
+ widths: PropTypes__default["default"].array,
3198
3208
  // fatch the correct hero image
3199
- aspectRatio: PropTypes.array,
3209
+ aspectRatio: PropTypes__default["default"].array,
3200
3210
  // Hints for the browser to choose the best size
3201
3211
 
3202
3212
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3203
- isHorizontal: PropTypes.bool,
3213
+ isHorizontal: PropTypes__default["default"].bool,
3204
3214
 
3205
3215
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3206
- isHorizontalMobile: PropTypes.bool,
3216
+ isHorizontalMobile: PropTypes__default["default"].bool,
3207
3217
  // this prop is responsive for rendering fallback image on story page
3208
- defaultFallback: PropTypes.bool,
3209
- isHorizontalWithImageLast: PropTypes.bool,
3210
- isStoryPageImage: PropTypes.bool,
3211
- config: PropTypes.object
3218
+ defaultFallback: PropTypes__default["default"].bool,
3219
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3220
+ isStoryPageImage: PropTypes__default["default"].bool,
3221
+ config: PropTypes__default["default"].object
3212
3222
  };
3213
3223
  HeroImage.defaultProps = {
3214
3224
  FullBleed: true,
@@ -3270,72 +3280,72 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
3270
3280
  if (!showButton) return null;
3271
3281
  var textColor = getTextColor(theme);
3272
3282
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
3273
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
3283
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
3274
3284
  onClick: onClick,
3275
3285
  "data-test-id": "load-more",
3276
3286
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$d)
3277
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
3287
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
3278
3288
  href: slug,
3279
3289
  navigateTo: navigate,
3280
3290
  "data-test-id": "load-more",
3281
3291
  "aria-label": "load-more"
3282
- }, /*#__PURE__*/React.createElement("div", {
3292
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3283
3293
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$d)
3284
3294
  }, buttonText));
3285
3295
  };
3286
3296
  LoadmoreButton.propTypes = {
3287
- collection: PropTypes.object,
3288
- template: PropTypes.string,
3289
- config: PropTypes.object,
3290
- onClick: PropTypes.func,
3291
- navigate: PropTypes.func,
3292
- qtConfig: PropTypes.object
3297
+ collection: PropTypes__default["default"].object,
3298
+ template: PropTypes__default["default"].string,
3299
+ config: PropTypes__default["default"].object,
3300
+ onClick: PropTypes__default["default"].func,
3301
+ navigate: PropTypes__default["default"].func,
3302
+ qtConfig: PropTypes__default["default"].object
3293
3303
  };
3294
3304
 
3295
3305
  var LeftArrow = function LeftArrow(_ref) {
3296
3306
  var _ref$color = _ref.color,
3297
3307
  color = _ref$color === void 0 ? "#333" : _ref$color;
3298
- return /*#__PURE__*/React.createElement("svg", {
3308
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3299
3309
  xmlns: "http://www.w3.org/2000/svg",
3300
3310
  width: "16",
3301
3311
  height: "16",
3302
3312
  viewBox: "0 0 10 16"
3303
- }, /*#__PURE__*/React.createElement("g", {
3313
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3304
3314
  fill: "none",
3305
3315
  fillRule: "nonzero"
3306
- }, /*#__PURE__*/React.createElement("path", {
3316
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3307
3317
  d: "M17 20H-7V-4h24z",
3308
3318
  opacity: ".384"
3309
- }), /*#__PURE__*/React.createElement("path", {
3319
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3310
3320
  stroke: color,
3311
3321
  d: "M9 16L1 8l8-8"
3312
3322
  })));
3313
3323
  };
3314
3324
  LeftArrow.propTypes = {
3315
- color: PropTypes.string
3325
+ color: PropTypes__default["default"].string
3316
3326
  };
3317
3327
 
3318
3328
  var RightArrow = function RightArrow(_ref) {
3319
3329
  var _ref$color = _ref.color,
3320
3330
  color = _ref$color === void 0 ? "#333" : _ref$color;
3321
- return /*#__PURE__*/React.createElement("svg", {
3331
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3322
3332
  xmlns: "http://www.w3.org/2000/svg",
3323
3333
  width: "16",
3324
3334
  height: "16",
3325
3335
  viewBox: "0 0 10 16"
3326
- }, /*#__PURE__*/React.createElement("g", {
3336
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3327
3337
  fill: "none",
3328
3338
  fillRule: "nonzero"
3329
- }, /*#__PURE__*/React.createElement("path", {
3339
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3330
3340
  d: "M-7-4h24v24H-7z",
3331
3341
  opacity: ".384"
3332
- }), /*#__PURE__*/React.createElement("path", {
3342
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3333
3343
  stroke: color,
3334
3344
  d: "M1 0l8 8-8 8"
3335
3345
  })));
3336
3346
  };
3337
3347
  RightArrow.propTypes = {
3338
- color: PropTypes.string
3348
+ color: PropTypes__default["default"].string
3339
3349
  };
3340
3350
 
3341
3351
  var _styleModuleImportMap$c = {
@@ -3373,26 +3383,26 @@ var SliderArrow = function SliderArrow(_ref) {
3373
3383
 
3374
3384
  var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
3375
3385
  var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
3376
- return /*#__PURE__*/React.createElement(React.Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React.createElement("button", {
3386
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
3377
3387
  onClick: previousClick,
3378
3388
  className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$c)
3379
- }, /*#__PURE__*/React.createElement(LeftArrow, {
3389
+ }, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
3380
3390
  color: textColor === "dark" ? "#fff" : "#333"
3381
- })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React.createElement("button", {
3391
+ })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
3382
3392
  onClick: nextClick,
3383
3393
  className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$c)
3384
- }, /*#__PURE__*/React.createElement(RightArrow, {
3394
+ }, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
3385
3395
  color: textColor === "dark" ? "#fff" : "#333"
3386
3396
  })) : null);
3387
3397
  };
3388
3398
  SliderArrow.propTypes = {
3389
- noOfItems: number,
3390
- perView: number,
3391
- slideIndicator: string,
3392
- previousClick: func,
3393
- nextClick: func,
3394
- selectedIndex: number,
3395
- languageDirection: string
3399
+ noOfItems: PropTypes.number,
3400
+ perView: PropTypes.number,
3401
+ slideIndicator: PropTypes.string,
3402
+ previousClick: PropTypes.func,
3403
+ nextClick: PropTypes.func,
3404
+ selectedIndex: PropTypes.number,
3405
+ languageDirection: PropTypes.string
3396
3406
  };
3397
3407
 
3398
3408
  var _styleModuleImportMap$b = {
@@ -3420,27 +3430,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
3420
3430
 
3421
3431
  var config = useStateValue() || {};
3422
3432
  var textColor = getTextColor(config.theme);
3423
- return /*#__PURE__*/React.createElement("ul", {
3433
+ return /*#__PURE__*/React__default["default"].createElement("ul", {
3424
3434
  className: "slider-indicators slider-indicator-m_indicators__3MNXc"
3425
3435
  }, indicatorItems.map(function (_, index) {
3426
- return /*#__PURE__*/React.createElement("li", {
3436
+ return /*#__PURE__*/React__default["default"].createElement("li", {
3427
3437
  key: "slider-".concat(index),
3428
3438
  className: "indicator slider-indicator-m_indicator__gTv3x",
3429
3439
  onClick: function onClick(e) {
3430
3440
  return indicatorClick(e, index);
3431
3441
  }
3432
- }, /*#__PURE__*/React.createElement("button", {
3442
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
3433
3443
  "aria-pressed": selectedIndex === index ? "true" : "false",
3434
3444
  className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$b)
3435
3445
  }));
3436
3446
  }));
3437
3447
  };
3438
3448
  SliderIndicator.propTypes = {
3439
- indicatorItems: array,
3440
- perView: number,
3441
- indicatorType: string,
3442
- indicatorClick: func,
3443
- selectedIndex: number
3449
+ indicatorItems: PropTypes.array,
3450
+ perView: PropTypes.number,
3451
+ indicatorType: PropTypes.string,
3452
+ indicatorClick: PropTypes.func,
3453
+ selectedIndex: PropTypes.number
3444
3454
  };
3445
3455
 
3446
3456
  var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
@@ -3475,24 +3485,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
3475
3485
  perView = _ref.perView,
3476
3486
  slideIndicator = _ref.slideIndicator;
3477
3487
 
3478
- var _useState = useState(0),
3488
+ var _useState = React.useState(0),
3479
3489
  _useState2 = _slicedToArray(_useState, 2),
3480
3490
  selectedIndex = _useState2[0],
3481
3491
  setSelectedIndex = _useState2[1];
3482
3492
 
3483
- var _useState3 = useState(false),
3493
+ var _useState3 = React.useState(false),
3484
3494
  _useState4 = _slicedToArray(_useState3, 2),
3485
3495
  autoScroll = _useState4[0],
3486
3496
  setAutoScroll = _useState4[1];
3487
3497
 
3488
- var languageDirection = useSelector(function (state) {
3498
+ var languageDirection = reactRedux.useSelector(function (state) {
3489
3499
  return get_1(state, ["qt", "config", "language", "direction"], "ltr");
3490
3500
  });
3491
3501
  var noOfItems = children ? children.length : 0;
3492
- var scroller = useRef(null);
3502
+ var scroller = React.useRef(null);
3493
3503
  var numberOfIndicatorsToShow = children.length - (perView - 1);
3494
3504
  var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
3495
- useEffect(function () {
3505
+ React.useEffect(function () {
3496
3506
  if (scroller.current) {
3497
3507
  scroller.current.addEventListener("scroll", setIndicatorValue(function () {
3498
3508
  var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
@@ -3509,7 +3519,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
3509
3519
  };
3510
3520
  }, []); // Infinite scroll
3511
3521
 
3512
- useEffect(function () {
3522
+ React.useEffect(function () {
3513
3523
  if (isInfinite && !autoScroll) {
3514
3524
  var timer = setInterval(function () {
3515
3525
  infiniteScroll();
@@ -3558,23 +3568,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
3558
3568
  updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
3559
3569
  };
3560
3570
 
3561
- return /*#__PURE__*/React.createElement("div", {
3571
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3562
3572
  className: "scroll-snap-container"
3563
- }, /*#__PURE__*/React.createElement("div", {
3573
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3564
3574
  className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
3565
3575
  onMouseEnter: pauseAutoPlay,
3566
3576
  onMouseLeave: pauseAutoPlay
3567
- }, /*#__PURE__*/React.createElement("div", {
3577
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3568
3578
  ref: scroller,
3569
3579
  className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
3570
- }, children), isArrow && /*#__PURE__*/React.createElement(SliderArrow, {
3580
+ }, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
3571
3581
  noOfItems: noOfItems,
3572
3582
  perView: perView,
3573
3583
  previousClick: previousClick,
3574
3584
  nextClick: nextClick,
3575
3585
  selectedIndex: selectedIndex,
3576
3586
  languageDirection: languageDirection
3577
- })), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React.createElement(SliderIndicator, {
3587
+ })), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
3578
3588
  indicatorItems: indicatorItems,
3579
3589
  indicatorClick: indicatorClick,
3580
3590
  selectedIndex: selectedIndex,
@@ -3590,13 +3600,13 @@ ScrollSnap.defaultProps = {
3590
3600
  slideIndicator: "dots"
3591
3601
  };
3592
3602
  ScrollSnap.propTypes = {
3593
- children: array.isRequired,
3594
- isArrow: bool,
3595
- isInfinite: bool,
3596
- interval: number,
3597
- pauseOnHover: bool,
3598
- perView: number,
3599
- slideIndicator: string
3603
+ children: PropTypes.array.isRequired,
3604
+ isArrow: PropTypes.bool,
3605
+ isInfinite: PropTypes.bool,
3606
+ interval: PropTypes.number,
3607
+ pauseOnHover: PropTypes.bool,
3608
+ perView: PropTypes.number,
3609
+ slideIndicator: PropTypes.string
3600
3610
  };
3601
3611
 
3602
3612
  var CrownIcon = function CrownIcon(_ref) {
@@ -3605,7 +3615,7 @@ var CrownIcon = function CrownIcon(_ref) {
3605
3615
  _ref$color = _ref.color,
3606
3616
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3607
3617
  positionTop = _ref.positionTop;
3608
- return /*#__PURE__*/React.createElement("svg", {
3618
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3609
3619
  xmlns: "http://www.w3.org/2000/svg",
3610
3620
  width: width,
3611
3621
  height: height,
@@ -3614,28 +3624,28 @@ var CrownIcon = function CrownIcon(_ref) {
3614
3624
  position: "relative",
3615
3625
  top: positionTop
3616
3626
  }
3617
- }, /*#__PURE__*/React.createElement("g", {
3627
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3618
3628
  fill: "none",
3619
3629
  fillRule: "evenodd",
3620
3630
  stroke: "none",
3621
3631
  strokeWidth: "1"
3622
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3632
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3623
3633
  transform: "translate(8 8)"
3624
- }, /*#__PURE__*/React.createElement("path", {
3634
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3625
3635
  d: "M0 0H24V24H0z"
3626
- }), /*#__PURE__*/React.createElement("g", {
3636
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3627
3637
  fill: color,
3628
3638
  fillRule: "nonzero",
3629
3639
  transform: "translate(0 2)"
3630
- }, /*#__PURE__*/React.createElement("path", {
3640
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3631
3641
  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"
3632
3642
  }))))));
3633
3643
  };
3634
3644
  CrownIcon.propTypes = {
3635
- height: PropTypes.string,
3636
- width: PropTypes.string,
3637
- color: PropTypes.string,
3638
- positionTop: PropTypes.string
3645
+ height: PropTypes__default["default"].string,
3646
+ width: PropTypes__default["default"].string,
3647
+ color: PropTypes__default["default"].string,
3648
+ positionTop: PropTypes__default["default"].string
3639
3649
  };
3640
3650
 
3641
3651
  var KeyIcon = function KeyIcon(_ref) {
@@ -3644,7 +3654,7 @@ var KeyIcon = function KeyIcon(_ref) {
3644
3654
  _ref$color = _ref.color,
3645
3655
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3646
3656
  positionTop = _ref.positionTop;
3647
- return /*#__PURE__*/React.createElement("svg", {
3657
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3648
3658
  xmlns: "http://www.w3.org/2000/svg",
3649
3659
  width: width,
3650
3660
  height: height,
@@ -3653,16 +3663,16 @@ var KeyIcon = function KeyIcon(_ref) {
3653
3663
  position: "relative",
3654
3664
  top: positionTop
3655
3665
  }
3656
- }, /*#__PURE__*/React.createElement("g", {
3666
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3657
3667
  fill: "none",
3658
3668
  fillRule: "evenodd",
3659
3669
  stroke: "none",
3660
3670
  strokeWidth: "1"
3661
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3671
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3662
3672
  transform: "translate(8 8)"
3663
- }, /*#__PURE__*/React.createElement("path", {
3673
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3664
3674
  d: "M0 0H24V24H0z"
3665
- }), /*#__PURE__*/React.createElement("path", {
3675
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3666
3676
  fill: color,
3667
3677
  fillRule: "nonzero",
3668
3678
  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",
@@ -3670,10 +3680,10 @@ var KeyIcon = function KeyIcon(_ref) {
3670
3680
  })))));
3671
3681
  };
3672
3682
  KeyIcon.propTypes = {
3673
- height: PropTypes.string,
3674
- width: PropTypes.string,
3675
- color: PropTypes.string,
3676
- positionTop: PropTypes.string
3683
+ height: PropTypes__default["default"].string,
3684
+ width: PropTypes__default["default"].string,
3685
+ color: PropTypes__default["default"].string,
3686
+ positionTop: PropTypes__default["default"].string
3677
3687
  };
3678
3688
 
3679
3689
  var LockIcon = function LockIcon(_ref) {
@@ -3682,7 +3692,7 @@ var LockIcon = function LockIcon(_ref) {
3682
3692
  _ref$color = _ref.color,
3683
3693
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3684
3694
  positionTop = _ref.positionTop;
3685
- return /*#__PURE__*/React.createElement("svg", {
3695
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3686
3696
  xmlns: "http://www.w3.org/2000/svg",
3687
3697
  width: width,
3688
3698
  height: height,
@@ -3691,28 +3701,28 @@ var LockIcon = function LockIcon(_ref) {
3691
3701
  position: "relative",
3692
3702
  top: positionTop
3693
3703
  }
3694
- }, /*#__PURE__*/React.createElement("g", {
3704
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3695
3705
  fill: "none",
3696
3706
  fillRule: "evenodd",
3697
3707
  stroke: "none",
3698
3708
  strokeWidth: "1"
3699
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3709
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3700
3710
  transform: "translate(8 8)"
3701
- }, /*#__PURE__*/React.createElement("path", {
3711
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3702
3712
  d: "M0 0H24V24H0z"
3703
- }), /*#__PURE__*/React.createElement("g", {
3713
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3704
3714
  fill: color,
3705
3715
  fillRule: "nonzero",
3706
3716
  transform: "translate(3)"
3707
- }, /*#__PURE__*/React.createElement("path", {
3717
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3708
3718
  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"
3709
3719
  }))))));
3710
3720
  };
3711
3721
  LockIcon.propTypes = {
3712
- height: PropTypes.string,
3713
- width: PropTypes.string,
3714
- color: PropTypes.string,
3715
- positionTop: PropTypes.string
3722
+ height: PropTypes__default["default"].string,
3723
+ width: PropTypes__default["default"].string,
3724
+ color: PropTypes__default["default"].string,
3725
+ positionTop: PropTypes__default["default"].string
3716
3726
  };
3717
3727
 
3718
3728
  var StarIcon = function StarIcon(_ref) {
@@ -3722,7 +3732,7 @@ var StarIcon = function StarIcon(_ref) {
3722
3732
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3723
3733
  _ref$positionTop = _ref.positionTop,
3724
3734
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3725
- return /*#__PURE__*/React.createElement("svg", {
3735
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3726
3736
  xmlns: "http://www.w3.org/2000/svg",
3727
3737
  width: width,
3728
3738
  height: height,
@@ -3731,21 +3741,21 @@ var StarIcon = function StarIcon(_ref) {
3731
3741
  position: "relative",
3732
3742
  top: positionTop
3733
3743
  }
3734
- }, /*#__PURE__*/React.createElement("g", {
3744
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3735
3745
  fill: "none",
3736
3746
  fillRule: "evenodd",
3737
3747
  stroke: "none",
3738
3748
  strokeWidth: "1"
3739
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3749
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3740
3750
  fill: color,
3741
3751
  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"
3742
3752
  }))));
3743
3753
  };
3744
3754
  StarIcon.propTypes = {
3745
- height: PropTypes.string,
3746
- width: PropTypes.string,
3747
- color: PropTypes.string,
3748
- positionTop: PropTypes.string
3755
+ height: PropTypes__default["default"].string,
3756
+ width: PropTypes__default["default"].string,
3757
+ color: PropTypes__default["default"].string,
3758
+ positionTop: PropTypes__default["default"].string
3749
3759
  };
3750
3760
 
3751
3761
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3757,7 +3767,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3757
3767
 
3758
3768
  switch (iconType) {
3759
3769
  case "crown":
3760
- return /*#__PURE__*/React.createElement(CrownIcon, {
3770
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3761
3771
  width: width,
3762
3772
  height: height,
3763
3773
  color: color,
@@ -3765,7 +3775,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3765
3775
  });
3766
3776
 
3767
3777
  case "lock":
3768
- return /*#__PURE__*/React.createElement(LockIcon, {
3778
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3769
3779
  width: width,
3770
3780
  height: height,
3771
3781
  color: color,
@@ -3773,7 +3783,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3773
3783
  });
3774
3784
 
3775
3785
  case "key":
3776
- return /*#__PURE__*/React.createElement(KeyIcon, {
3786
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3777
3787
  width: width,
3778
3788
  height: height,
3779
3789
  color: color,
@@ -3781,7 +3791,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3781
3791
  });
3782
3792
 
3783
3793
  default:
3784
- return /*#__PURE__*/React.createElement(StarIcon, {
3794
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3785
3795
  width: width,
3786
3796
  height: height,
3787
3797
  color: color,
@@ -3790,21 +3800,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3790
3800
  }
3791
3801
  };
3792
3802
  PremiumStoryIcon.propTypes = {
3793
- width: PropTypes.string,
3794
- height: PropTypes.string,
3795
- color: PropTypes.string,
3796
- iconType: PropTypes.string,
3797
- positionTop: PropTypes.string
3803
+ width: PropTypes__default["default"].string,
3804
+ height: PropTypes__default["default"].string,
3805
+ color: PropTypes__default["default"].string,
3806
+ iconType: PropTypes__default["default"].string,
3807
+ positionTop: PropTypes__default["default"].string
3798
3808
  };
3799
3809
 
3800
3810
  function LiveIcon() {
3801
- return /*#__PURE__*/React.createElement("svg", {
3811
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3802
3812
  className: "live-icon",
3803
3813
  xmlns: "http://www.w3.org/2000/svg",
3804
3814
  width: "25",
3805
3815
  height: "24",
3806
3816
  viewBox: "0 0 25 24"
3807
- }, /*#__PURE__*/React.createElement("path", {
3817
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3808
3818
  fill: "#ff5858",
3809
3819
  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"
3810
3820
  }));
@@ -3861,37 +3871,37 @@ var Headline = function Headline(_ref) {
3861
3871
  var wrapperClass = premiumStory ? "wrapper" : "";
3862
3872
  var iconSize = "24px";
3863
3873
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3864
- return /*#__PURE__*/React.createElement("div", {
3874
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3865
3875
  "data-test-id": "headline",
3866
3876
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$a)
3867
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3877
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3868
3878
  width: iconSize,
3869
3879
  height: iconSize,
3870
3880
  color: iconColor,
3871
3881
  iconType: iconStyle,
3872
3882
  positionTop: positionHeadline()
3873
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3883
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3874
3884
  href: getStoryUrl(story, "/".concat(story.slug)),
3875
3885
  externalLink: isExternalStory(story),
3876
3886
  "aria-label": "headline"
3877
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3887
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3878
3888
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$a)
3879
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3889
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3880
3890
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$a)
3881
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3891
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3882
3892
  };
3883
3893
  Headline.propTypes = {
3884
3894
  /** The Story Object from the API response */
3885
- story: PropTypes.object.isRequired,
3895
+ story: PropTypes__default["default"].object.isRequired,
3886
3896
 
3887
3897
  /** Header tags ranging h1-h6, where h[headerLevel] */
3888
- headerLevel: PropTypes.string,
3889
- premiumStoryIconConfig: PropTypes.shape({
3890
- iconColor: PropTypes.string,
3891
- iconType: PropTypes.string,
3892
- enablePremiumStoryIcon: PropTypes.bool
3898
+ headerLevel: PropTypes__default["default"].string,
3899
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3900
+ iconColor: PropTypes__default["default"].string,
3901
+ iconType: PropTypes__default["default"].string,
3902
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3893
3903
  }),
3894
- isLink: PropTypes.bool
3904
+ isLink: PropTypes__default["default"].bool
3895
3905
  };
3896
3906
  Headline.defaultProps = {
3897
3907
  headerLevel: "6",
@@ -3918,7 +3928,7 @@ var Subheadline = function Subheadline(_ref) {
3918
3928
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3919
3929
  if (!subheadline) return null;
3920
3930
  var textColor = getTextColor(config.theme);
3921
- return /*#__PURE__*/React.createElement("div", {
3931
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3922
3932
  style: {
3923
3933
  WebkitLineClamp: lineClamp
3924
3934
  },
@@ -3928,15 +3938,15 @@ var Subheadline = function Subheadline(_ref) {
3928
3938
  };
3929
3939
  Subheadline.propTypes = {
3930
3940
  /** The Story Object from the API response */
3931
- story: PropTypes.object.isRequired,
3941
+ story: PropTypes__default["default"].object.isRequired,
3932
3942
  // Restricts the number of lines for subheadline.
3933
- lineClamp: PropTypes.number,
3943
+ lineClamp: PropTypes__default["default"].number,
3934
3944
 
3935
3945
  /** Number of characters to truncate the subheadline */
3936
- truncateChars: PropTypes.number,
3937
- clazzName: PropTypes.string,
3938
- forceShowAtom: PropTypes.bool,
3939
- showFullContent: PropTypes.bool
3946
+ truncateChars: PropTypes__default["default"].number,
3947
+ clazzName: PropTypes__default["default"].string,
3948
+ forceShowAtom: PropTypes__default["default"].bool,
3949
+ showFullContent: PropTypes__default["default"].bool
3940
3950
  };
3941
3951
  Subheadline.defaultProps = {
3942
3952
  forceShowAtom: false,
@@ -3962,18 +3972,18 @@ var TimeStamp = function TimeStamp(_ref) {
3962
3972
  var time = story["last-published-at"] || story["first-published-at"];
3963
3973
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3964
3974
  var textColor = getTextColor(configState.theme);
3965
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3975
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3966
3976
  "data-test-id": "publish-time",
3967
3977
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$8)
3968
- }, /*#__PURE__*/React.createElement("div", {
3978
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3969
3979
  className: "timestamp-m_time-wrapper__3O2lM"
3970
3980
  }, getTimeStamp(time, formatter, config))));
3971
3981
  };
3972
3982
  TimeStamp.propTypes = {
3973
3983
  /** The Story Object from the API response */
3974
- story: PropTypes.object,
3975
- isBottom: PropTypes.bool,
3976
- config: PropTypes.object
3984
+ story: PropTypes__default["default"].object,
3985
+ isBottom: PropTypes__default["default"].bool,
3986
+ config: PropTypes__default["default"].object
3977
3987
  };
3978
3988
 
3979
3989
  var _styleModuleImportMap$7 = {
@@ -4016,10 +4026,10 @@ var AuthorBase = function AuthorBase(_ref) {
4016
4026
  return null;
4017
4027
  }
4018
4028
 
4019
- return /*#__PURE__*/React.createElement("div", {
4029
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4020
4030
  "data-test-id": "author-image",
4021
4031
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$7)
4022
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
4032
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
4023
4033
  slug: avatarS3Key,
4024
4034
  "aspect-ratio": [1, 1],
4025
4035
  defaultWidth: 400,
@@ -4027,14 +4037,14 @@ var AuthorBase = function AuthorBase(_ref) {
4027
4037
  auto: ["format", "compress"]
4028
4038
  },
4029
4039
  alt: authorName
4030
- }) : /*#__PURE__*/React.createElement("img", {
4040
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
4031
4041
  src: avatarUrl
4032
4042
  })));
4033
4043
  };
4034
4044
 
4035
4045
  var isPrefix = function isPrefix(dir) {
4036
4046
  if (prefix) {
4037
- return /*#__PURE__*/React.createElement("div", {
4047
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4038
4048
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$7)
4039
4049
  }, prefix);
4040
4050
  }
@@ -4042,11 +4052,11 @@ var AuthorBase = function AuthorBase(_ref) {
4042
4052
  return !hideAuthorImage && authorImage(dir);
4043
4053
  };
4044
4054
 
4045
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
4055
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
4046
4056
  href: "".concat(mountAt, "/author/") + slug,
4047
4057
  "aria-label": "author-name",
4048
4058
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$7)
4049
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
4059
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
4050
4060
  "data-test-id": "author-name",
4051
4061
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$7)
4052
4062
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -4058,18 +4068,18 @@ function mapStateToProps(state) {
4058
4068
  };
4059
4069
  }
4060
4070
 
4061
- var Author = connect(mapStateToProps)(AuthorBase);
4071
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
4062
4072
  AuthorBase.propTypes = {
4063
4073
  /** The Story Object from the API response */
4064
- story: PropTypes.object.isRequired,
4074
+ story: PropTypes__default["default"].object.isRequired,
4065
4075
 
4066
4076
  /** Hide Author Avatar Image */
4067
- hideAuthorImage: PropTypes.bool,
4077
+ hideAuthorImage: PropTypes__default["default"].bool,
4068
4078
  // fix Author bottom of the storyCard
4069
- isBottom: PropTypes.bool,
4079
+ isBottom: PropTypes__default["default"].bool,
4070
4080
  // fix prefix before the author name
4071
- prefix: PropTypes.string,
4072
- config: PropTypes.object
4081
+ prefix: PropTypes__default["default"].string,
4082
+ config: PropTypes__default["default"].object
4073
4083
  };
4074
4084
  AuthorBase.defaultProps = {
4075
4085
  hideAuthorImage: false,
@@ -4090,14 +4100,14 @@ var Dot = function Dot(_ref) {
4090
4100
  height = _ref$height === void 0 ? "3px" : _ref$height,
4091
4101
  _ref$color = _ref.color,
4092
4102
  color = _ref$color === void 0 ? "light" : _ref$color;
4093
- return /*#__PURE__*/React.createElement("div", {
4103
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4094
4104
  className: _getClassName(color, _styleModuleImportMap$6)
4095
- }, /*#__PURE__*/React.createElement("svg", {
4105
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
4096
4106
  xmlns: "http://www.w3.org/2000/svg",
4097
4107
  width: width,
4098
4108
  height: height,
4099
4109
  viewBox: "0 0 3 3"
4100
- }, /*#__PURE__*/React.createElement("circle", {
4110
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
4101
4111
  cx: "87",
4102
4112
  cy: "9",
4103
4113
  r: "1",
@@ -4108,9 +4118,9 @@ var Dot = function Dot(_ref) {
4108
4118
  };
4109
4119
  Dot.propTypes = {
4110
4120
  /** height , width and color of the dot icon */
4111
- color: PropTypes.string,
4112
- width: PropTypes.string,
4113
- height: PropTypes.string
4121
+ color: PropTypes__default["default"].string,
4122
+ width: PropTypes__default["default"].string,
4123
+ height: PropTypes__default["default"].string
4114
4124
  };
4115
4125
 
4116
4126
  var _styleModuleImportMap$5 = {
@@ -4126,22 +4136,22 @@ var Divider = function Divider(_ref) {
4126
4136
  height = _ref$height === void 0 ? "10" : _ref$height,
4127
4137
  _ref$color = _ref.color,
4128
4138
  color = _ref$color === void 0 ? "light" : _ref$color;
4129
- return /*#__PURE__*/React.createElement("div", {
4139
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4130
4140
  className: _getClassName(color, _styleModuleImportMap$5)
4131
- }, /*#__PURE__*/React.createElement("svg", {
4141
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
4132
4142
  xmlns: "http://www.w3.org/2000/svg",
4133
4143
  width: width,
4134
4144
  height: height
4135
- }, /*#__PURE__*/React.createElement("path", {
4145
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
4136
4146
  fill: "inherit",
4137
4147
  d: "M0 0h1v10H0z"
4138
4148
  })));
4139
4149
  };
4140
4150
  Divider.propTypes = {
4141
4151
  /** height , width and color of the dot icon */
4142
- color: PropTypes.string,
4143
- width: PropTypes.string,
4144
- height: PropTypes.string
4152
+ color: PropTypes__default["default"].string,
4153
+ width: PropTypes__default["default"].string,
4154
+ height: PropTypes__default["default"].string
4145
4155
  };
4146
4156
 
4147
4157
  var _styleModuleImportMap$4 = {
@@ -4164,23 +4174,23 @@ var ReadTime = function ReadTime(_ref) {
4164
4174
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
4165
4175
  if (!showReadTime || !readTime) return null;
4166
4176
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
4167
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4177
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
4168
4178
  "data-test-id": "read-time",
4169
4179
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$4)
4170
- }, /*#__PURE__*/React.createElement("span", {
4180
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
4171
4181
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
4172
- }, /*#__PURE__*/React.createElement(Dot, {
4182
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
4173
4183
  color: textColor
4174
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
4184
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
4175
4185
  };
4176
4186
  ReadTime.propTypes = {
4177
- story: PropTypes.shape({
4178
- "read-time": PropTypes.number
4187
+ story: PropTypes__default["default"].shape({
4188
+ "read-time": PropTypes__default["default"].number
4179
4189
  }),
4180
- opts: PropTypes.shape({
4181
- showReadTime: PropTypes.bool
4190
+ opts: PropTypes__default["default"].shape({
4191
+ showReadTime: PropTypes__default["default"].bool
4182
4192
  }),
4183
- isLightTheme: PropTypes.bool
4193
+ isLightTheme: PropTypes__default["default"].bool
4184
4194
  };
4185
4195
 
4186
4196
  var _styleModuleImportMap$3 = {
@@ -4211,33 +4221,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
4211
4221
 
4212
4222
  var getSeparator = function getSeparator() {
4213
4223
  if (separator === "divider") {
4214
- return /*#__PURE__*/React.createElement(Divider, {
4224
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
4215
4225
  color: textColor
4216
4226
  });
4217
4227
  }
4218
4228
 
4219
- return /*#__PURE__*/React.createElement(Dot, {
4229
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
4220
4230
  color: textColor
4221
4231
  });
4222
4232
  };
4223
4233
 
4224
4234
  var getTimeStamp = function getTimeStamp() {
4225
4235
  if (!isTime) return null;
4226
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
4236
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
4227
4237
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$3)
4228
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
4238
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
4229
4239
  story: story,
4230
4240
  config: config
4231
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
4241
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
4232
4242
  story: story,
4233
4243
  opts: config,
4234
4244
  isLightTheme: isLightTheme
4235
4245
  }));
4236
4246
  };
4237
4247
 
4238
- return /*#__PURE__*/React.createElement("div", {
4248
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4239
4249
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$3)
4240
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
4250
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
4241
4251
  story: story,
4242
4252
  isBottom: true,
4243
4253
  hideAuthorImage: hideAuthorImage,
@@ -4245,19 +4255,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
4245
4255
  }), getTimeStamp()) : getTimeStamp());
4246
4256
  };
4247
4257
  AuthorWithTime.propTypes = {
4248
- story: PropTypes.object,
4258
+ story: PropTypes__default["default"].object,
4249
4259
 
4250
4260
  /** Style of separator between the Author & Timestamp */
4251
- separator: PropTypes.oneOf(["dot", "divider"]),
4261
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
4252
4262
 
4253
4263
  /** hide the author image */
4254
- hideAuthorImage: PropTypes.bool,
4264
+ hideAuthorImage: PropTypes__default["default"].bool,
4255
4265
  // fix author and time at the end
4256
- isBottom: PropTypes.bool,
4266
+ isBottom: PropTypes__default["default"].bool,
4257
4267
  // fix prefix before the author name
4258
- prefix: PropTypes.string,
4259
- config: PropTypes.object,
4260
- isLightTheme: PropTypes.bool
4268
+ prefix: PropTypes__default["default"].string,
4269
+ config: PropTypes__default["default"].object,
4270
+ isLightTheme: PropTypes__default["default"].bool
4261
4271
  };
4262
4272
  AuthorWithTime.defaultProps = {
4263
4273
  separator: "dot",
@@ -4302,22 +4312,22 @@ var SectionTag = function SectionTag(_ref) {
4302
4312
  }
4303
4313
 
4304
4314
  if (!isSection) return null;
4305
- return /*#__PURE__*/React.createElement(Link, {
4315
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
4306
4316
  href: getUrl,
4307
4317
  className: "arrow-component arr--section-name",
4308
4318
  "aria-label": "section-name"
4309
- }, /*#__PURE__*/React.createElement("div", {
4319
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4310
4320
  "data-test-id": "sectionTag",
4311
4321
  style: {
4312
4322
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
4313
4323
  },
4314
4324
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$2)
4315
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
4325
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
4316
4326
  className: "section-m_border-left__2oUyp",
4317
4327
  style: {
4318
4328
  color: sectionTagBorderColor
4319
4329
  }
4320
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
4330
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
4321
4331
  className: "section-m_border-bottom__3cRoD",
4322
4332
  style: {
4323
4333
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -4326,13 +4336,13 @@ var SectionTag = function SectionTag(_ref) {
4326
4336
  };
4327
4337
  SectionTag.propTypes = {
4328
4338
  /** The Story Object from the API response */
4329
- story: PropTypes.object.isRequired,
4339
+ story: PropTypes__default["default"].object.isRequired,
4330
4340
 
4331
4341
  /** The style template for section tag */
4332
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
4333
- borderColor: PropTypes.string,
4334
- solidBorderColor: PropTypes.string,
4335
- isLightTheme: PropTypes.bool
4342
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
4343
+ borderColor: PropTypes__default["default"].string,
4344
+ solidBorderColor: PropTypes__default["default"].string,
4345
+ isLightTheme: PropTypes__default["default"].bool
4336
4346
  };
4337
4347
  SectionTag.defaultProps = {
4338
4348
  template: "",
@@ -4381,7 +4391,7 @@ var StoryCard = function StoryCard(_ref) {
4381
4391
  prefix = _ref.prefix,
4382
4392
  config = _ref.config,
4383
4393
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4384
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
4394
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4385
4395
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4386
4396
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4387
4397
 
@@ -4391,7 +4401,7 @@ var StoryCard = function StoryCard(_ref) {
4391
4401
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4392
4402
  var textColor = getTextColor(theme);
4393
4403
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4394
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4404
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4395
4405
  story: story,
4396
4406
  aspectRatio: aspectRatio,
4397
4407
  border: border,
@@ -4405,7 +4415,7 @@ var StoryCard = function StoryCard(_ref) {
4405
4415
  config: config,
4406
4416
  isHorizontalWithImageLast: isHorizontalWithImageLast
4407
4417
  });
4408
- return /*#__PURE__*/React.createElement("div", {
4418
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4409
4419
  "data-test-id": "story-card",
4410
4420
  style: {
4411
4421
  backgroundColor: theme,
@@ -4434,91 +4444,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4434
4444
  var SectionTagborderColor = rgbToHex(borderColor);
4435
4445
  var _config$localizationC = config.localizationConfig,
4436
4446
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4437
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4447
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4438
4448
  config: config,
4439
4449
  story: story,
4440
4450
  isHorizontal: true,
4441
4451
  isHorizontalMobile: isHorizontalMobile,
4442
4452
  aspectRatio: aspectRatio
4443
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4453
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4444
4454
  config: config,
4445
4455
  story: story,
4446
4456
  isHorizontalWithImageLast: true,
4447
4457
  isHorizontalMobile: isHorizontalMobile,
4448
4458
  aspectRatio: aspectRatio
4449
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4459
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4450
4460
  story: story,
4451
4461
  config: config,
4452
4462
  isHorizontalMobile: isHorizontalMobile,
4453
4463
  aspectRatio: aspectRatio
4454
- }), /*#__PURE__*/React.createElement("div", {
4464
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4455
4465
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$1)
4456
- }, /*#__PURE__*/React.createElement(SectionTag, {
4466
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4457
4467
  story: story,
4458
4468
  borderColor: SectionTagborderColor
4459
- }), /*#__PURE__*/React.createElement(Headline, {
4469
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4460
4470
  story: story,
4461
4471
  headerLevel: headerLevel,
4462
4472
  premiumStoryIconConfig: config
4463
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4473
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4464
4474
  config: localizationConfig,
4465
4475
  story: story,
4466
4476
  isBottom: true,
4467
4477
  prefix: prefix,
4468
4478
  hideAuthorImage: hideAuthorImage
4469
- }), /*#__PURE__*/React.createElement(Subheadline, {
4479
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4470
4480
  story: story
4471
4481
  })));
4472
4482
  };
4473
4483
 
4474
4484
  DefaultStoryCard.propTypes = {
4475
- story: PropTypes.object.isRequired,
4476
- border: PropTypes.oneOfType([PropTypes.string]),
4477
- isBottom: PropTypes.bool,
4478
- isHorizontal: PropTypes.bool,
4479
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4480
- isHorizontalMobile: PropTypes.bool,
4481
- centerAlign: PropTypes.bool,
4482
- headerLevel: PropTypes.string,
4483
- borderColor: PropTypes.string,
4484
- hideAuthorImage: PropTypes.bool,
4485
- prefix: PropTypes.string,
4486
- config: PropTypes.object,
4487
- isHorizontalWithImageLast: PropTypes.bool
4485
+ story: PropTypes__default["default"].object.isRequired,
4486
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4487
+ isBottom: PropTypes__default["default"].bool,
4488
+ isHorizontal: PropTypes__default["default"].bool,
4489
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4490
+ isHorizontalMobile: PropTypes__default["default"].bool,
4491
+ centerAlign: PropTypes__default["default"].bool,
4492
+ headerLevel: PropTypes__default["default"].string,
4493
+ borderColor: PropTypes__default["default"].string,
4494
+ hideAuthorImage: PropTypes__default["default"].bool,
4495
+ prefix: PropTypes__default["default"].string,
4496
+ config: PropTypes__default["default"].object,
4497
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4488
4498
  };
4489
4499
  StoryCard.propTypes = {
4490
4500
  /** The Story Object from the API response */
4491
- story: PropTypes.object.isRequired,
4492
- children: PropTypes.node,
4501
+ story: PropTypes__default["default"].object.isRequired,
4502
+ children: PropTypes__default["default"].node,
4493
4503
 
4494
4504
  /** Flip the Story Card to Horizonal mode */
4495
- isHorizontal: PropTypes.bool,
4505
+ isHorizontal: PropTypes__default["default"].bool,
4496
4506
 
4497
4507
  /** Add border to the Story Card */
4498
- border: PropTypes.oneOfType([PropTypes.string]),
4508
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4499
4509
  // story card with background image
4500
- useImageAsBackground: PropTypes.bool,
4510
+ useImageAsBackground: PropTypes__default["default"].bool,
4501
4511
  // story card content overlap with image
4502
- bgImgContentOverlap: PropTypes.bool,
4512
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4503
4513
 
4504
4514
  /** add aspect ratio for hero image */
4505
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4515
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4506
4516
 
4507
4517
  /** add theme(dark /light/custom color) for storycard */
4508
- theme: PropTypes.string,
4518
+ theme: PropTypes__default["default"].string,
4509
4519
 
4510
4520
  /** flip the story card mobile design horizontal */
4511
- isHorizontalMobile: PropTypes.bool,
4521
+ isHorizontalMobile: PropTypes__default["default"].bool,
4512
4522
  // make content center align in desktop and left align in mobile
4513
- centerAlign: PropTypes.bool,
4514
- headerLevel: PropTypes.string,
4515
- borderColor: PropTypes.string,
4523
+ centerAlign: PropTypes__default["default"].bool,
4524
+ headerLevel: PropTypes__default["default"].string,
4525
+ borderColor: PropTypes__default["default"].string,
4516
4526
  // handle author image through storycard
4517
- hideAuthorImage: PropTypes.bool,
4527
+ hideAuthorImage: PropTypes__default["default"].bool,
4518
4528
  // handle author prefix through storycard
4519
- prefix: PropTypes.string,
4520
- config: PropTypes.object,
4521
- isHorizontalWithImageLast: PropTypes.bool
4529
+ prefix: PropTypes__default["default"].string,
4530
+ config: PropTypes__default["default"].object,
4531
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4522
4532
  };
4523
4533
  StoryCard.defaultProps = {
4524
4534
  isHorizontal: false,
@@ -4551,14 +4561,14 @@ var StorycardContent = function StorycardContent(_ref) {
4551
4561
  var SectionTagborderColor = rgbToHex(borderColor);
4552
4562
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4553
4563
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4554
- return /*#__PURE__*/React.createElement("div", {
4564
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4555
4565
  "data-test-id": "story-card-content",
4556
4566
  style: {
4557
4567
  backgroundColor: theme,
4558
4568
  color: textColor
4559
4569
  },
4560
4570
  className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap)
4561
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
4571
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4562
4572
  story: story,
4563
4573
  headerLevel: headerLevel,
4564
4574
  isHorizontalMobile: isHorizontalMobile,
@@ -4576,37 +4586,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4576
4586
  var SectionTagborderColor = rgbToHex(borderColor);
4577
4587
  var _config$localizationC = config.localizationConfig,
4578
4588
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4579
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
4589
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4580
4590
  story: story,
4581
4591
  borderColor: SectionTagborderColor
4582
- }), /*#__PURE__*/React.createElement(Headline, {
4592
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4583
4593
  story: story,
4584
4594
  headerLevel: headerLevel,
4585
4595
  premiumStoryIconConfig: config
4586
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4596
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4587
4597
  config: localizationConfig,
4588
4598
  story: story
4589
4599
  }));
4590
4600
  };
4591
4601
 
4592
4602
  DefaultStoryCardContent.propTypes = {
4593
- story: PropTypes.object.isRequired,
4594
- border: PropTypes.string,
4595
- theme: PropTypes.string,
4596
- isHorizontalMobile: PropTypes.bool,
4597
- headerLevel: PropTypes.string,
4598
- borderColor: PropTypes.string,
4599
- config: PropTypes.object
4603
+ story: PropTypes__default["default"].object.isRequired,
4604
+ border: PropTypes__default["default"].string,
4605
+ theme: PropTypes__default["default"].string,
4606
+ isHorizontalMobile: PropTypes__default["default"].bool,
4607
+ headerLevel: PropTypes__default["default"].string,
4608
+ borderColor: PropTypes__default["default"].string,
4609
+ config: PropTypes__default["default"].object
4600
4610
  };
4601
4611
  StorycardContent.propTypes = {
4602
- story: PropTypes.object.isRequired,
4603
- children: PropTypes.node,
4604
- theme: PropTypes.string,
4605
- border: PropTypes.string,
4606
- isHorizontalMobile: PropTypes.bool,
4607
- headerLevel: PropTypes.string,
4608
- borderColor: PropTypes.string,
4609
- config: PropTypes.object
4612
+ story: PropTypes__default["default"].object.isRequired,
4613
+ children: PropTypes__default["default"].node,
4614
+ theme: PropTypes__default["default"].string,
4615
+ border: PropTypes__default["default"].string,
4616
+ isHorizontalMobile: PropTypes__default["default"].bool,
4617
+ headerLevel: PropTypes__default["default"].string,
4618
+ borderColor: PropTypes__default["default"].string,
4619
+ config: PropTypes__default["default"].object
4610
4620
  };
4611
4621
 
4612
4622
  var FourStorySliderPortraitBase = function FourStorySliderPortraitBase(_ref) {
@@ -4636,19 +4646,19 @@ var FourStorySliderPortraitBase = function FourStorySliderPortraitBase(_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,25 +4666,25 @@ var FourStorySliderPortraitBase = function FourStorySliderPortraitBase(_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
4682
  useImageAsBackground: true
4673
- }, /*#__PURE__*/React.createElement(HeroImage, {
4683
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4674
4684
  config: config,
4675
4685
  story: story,
4676
4686
  aspectRatio: [[9, 16]]
4677
- }), /*#__PURE__*/React.createElement(StorycardContent, {
4687
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4678
4688
  story: story,
4679
4689
  border: border,
4680
4690
  borderColor: borderColor,
@@ -4683,27 +4693,27 @@ var FourStorySliderPortraitBase = function FourStorySliderPortraitBase(_ref) {
4683
4693
  });
4684
4694
  };
4685
4695
 
4686
- return /*#__PURE__*/React.createElement("div", {
4696
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4687
4697
  className: "full-width-with-padding arrow-component",
4688
4698
  "data-test-id": "four-story-slider-portrait",
4689
4699
  style: {
4690
4700
  backgroundColor: theme,
4691
4701
  color: textColor
4692
4702
  }
4693
- }, /*#__PURE__*/React.createElement("div", {
4703
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4694
4704
  className: "four-story-slider-portrait-m_four-story-slider-portrait-wrapper__2A_A2"
4695
- }, /*#__PURE__*/React.createElement(CollectionName, {
4705
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4696
4706
  collection: collection,
4697
4707
  collectionNameTemplate: collectionNameTemplate,
4698
4708
  collectionNameBorderColor: collectionNameBorderColor
4699
- }), items.length > 4 ? /*#__PURE__*/React.createElement(ScrollSnap, {
4709
+ }), items.length > 4 ? /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
4700
4710
  isArrow: navigationArrows,
4701
4711
  perView: perView,
4702
4712
  slideIndicator: slideIndicator,
4703
4713
  isInfinite: isInfinite
4704
- }, getItems()) : /*#__PURE__*/React.createElement("div", {
4714
+ }, getItems()) : /*#__PURE__*/React__default["default"].createElement("div", {
4705
4715
  className: "four-story-slider-portrait-m_story-grid__znrKy"
4706
- }, getItems()), /*#__PURE__*/React.createElement(LoadmoreButton, {
4716
+ }, getItems()), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4707
4717
  collection: collection,
4708
4718
  template: footerButton,
4709
4719
  config: config,
@@ -4711,29 +4721,29 @@ var FourStorySliderPortraitBase = function FourStorySliderPortraitBase(_ref) {
4711
4721
  return navigateTo(dispatch, url);
4712
4722
  },
4713
4723
  qtConfig: qtConfig
4714
- }), /*#__PURE__*/React.createElement("div", {
4724
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4715
4725
  className: "four-story-slider-portrait-m_footer-slot-wrapper__18ujz"
4716
4726
  }, footerSlotComp)));
4717
4727
  };
4718
4728
  FourStorySliderPortraitBase.propTypes = {
4719
4729
  /** collection is the array of objects which is returning by API */
4720
- collection: PropTypes.object.isRequired,
4730
+ collection: PropTypes__default["default"].object.isRequired,
4721
4731
 
4722
4732
  /** The config for the Row */
4723
- config: PropTypes.shape({
4733
+ config: PropTypes__default["default"].shape({
4724
4734
  // section tag border color
4725
- borderColor: PropTypes.string,
4735
+ borderColor: PropTypes__default["default"].string,
4726
4736
  // background color of the row
4727
- theme: PropTypes.string,
4728
- border: PropTypes.string,
4729
- footerButton: PropTypes.string,
4737
+ theme: PropTypes__default["default"].string,
4738
+ border: PropTypes__default["default"].string,
4739
+ footerButton: PropTypes__default["default"].string,
4730
4740
  // configure ad slot widget and story
4731
- collectionNameTemplate: PropTypes.string,
4732
- autoplaySpeed: PropTypes.number,
4741
+ collectionNameTemplate: PropTypes__default["default"].string,
4742
+ autoplaySpeed: PropTypes__default["default"].number,
4733
4743
  // speed of the slider(ms)
4734
- numberOfStoriesToShow: PropTypes.number,
4744
+ numberOfStoriesToShow: PropTypes__default["default"].number,
4735
4745
  // no of slides in slider
4736
- collectionNameBorderColor: PropTypes.string
4746
+ collectionNameBorderColor: PropTypes__default["default"].string
4737
4747
  })
4738
4748
  };
4739
4749
  FourStorySliderPortraitBase.defaultProps = {
@@ -4743,4 +4753,5 @@ FourStorySliderPortraitBase.defaultProps = {
4743
4753
  };
4744
4754
  var FourStorySliderPortrait = StateProvider(FourStorySliderPortraitBase);
4745
4755
 
4746
- export { FourStorySliderPortrait, FourStorySliderPortraitBase };
4756
+ exports.FourStorySliderPortrait = FourStorySliderPortrait;
4757
+ exports.FourStorySliderPortraitBase = FourStorySliderPortraitBase;