@quintype/arrow 3.15.1-perf.2 → 3.15.1-perf.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/atoms/Author/index.js +38 -29
  2. package/atoms/AuthorWithTime/index.js +83 -73
  3. package/atoms/CollectionName/index.js +40 -30
  4. package/atoms/ExtendedLoadMore/{index-d0f6c865.js → index-3976fac4.js} +59 -51
  5. package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
  6. package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
  7. package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
  8. package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
  9. package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
  10. package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
  11. package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
  12. package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
  13. package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
  14. package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
  15. package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
  16. package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
  17. package/atoms/ExtendedLoadMore/index.js +13 -5
  18. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  19. package/atoms/Headline/index.js +85 -76
  20. package/atoms/HeroImage/index.js +69 -60
  21. package/atoms/LoadmoreButton/index.js +32 -23
  22. package/atoms/ScrollSnap/index.js +72 -63
  23. package/atoms/SectionTag/index.js +34 -25
  24. package/atoms/Subheadline/index.js +31 -22
  25. package/atoms/TimeStamp/index.js +34 -24
  26. package/molecules/KeyEvents/index.js +72 -61
  27. package/molecules/PageIntroductionCard/index.js +43 -34
  28. package/molecules/SocialShareTemplate/index.js +97 -88
  29. package/molecules/StoryCard/index.js +242 -232
  30. package/molecules/StoryElementCard/index.js +512 -483
  31. package/molecules/StorycardContent/index.js +172 -162
  32. package/package.json +1 -1
  33. package/rows/AlternateCollectionFilter/index.js +345 -333
  34. package/rows/AsideCollection/index.js +340 -328
  35. package/rows/AstrologyCollection/index.js +321 -309
  36. package/rows/AuthorIntroductionCard/index.js +157 -148
  37. package/rows/AuthorsList/index.js +184 -174
  38. package/rows/CollectionFilter/index.js +361 -349
  39. package/rows/ElevenStories/index.js +357 -346
  40. package/rows/FourColFiveStories/index.js +304 -274
  41. package/rows/FourColGrid/index.js +351 -321
  42. package/rows/FourColPortraitStories/index.js +357 -327
  43. package/rows/FourColSixteenStories/index.js +288 -277
  44. package/rows/FourColTwelveStories/index.js +315 -304
  45. package/rows/FourStorySlider/index.js +358 -347
  46. package/rows/FourStorySliderPortrait/index.js +359 -348
  47. package/rows/FourTabbedBigStorySlider/index.js +322 -311
  48. package/rows/FullScreenSlider/index.js +336 -325
  49. package/rows/HalfScreenSlider/index.js +308 -297
  50. package/rows/ListComponent/index.js +322 -311
  51. package/rows/Listicles/index.js +150 -139
  52. package/rows/MagazineEditions/index.js +104 -93
  53. package/rows/MagazineHeaderCard/index.js +104 -93
  54. package/rows/MagazineWidget/index.js +326 -315
  55. package/rows/OneColStoryList/index.js +365 -335
  56. package/rows/OpinionCollection/index.js +250 -220
  57. package/rows/SixColSixStories/index.js +333 -303
  58. package/rows/StoryCollection/index.js +340 -328
  59. package/rows/TagIntroductionCard/index.js +30 -21
  60. package/rows/ThreeColFlexStories/index.js +348 -318
  61. package/rows/ThreeColFourteenStories/index.js +285 -274
  62. package/rows/ThreeColGrid/index.js +352 -322
  63. package/rows/ThreeColSevenStory/index.js +322 -311
  64. package/rows/ThreeColSixStories/index.js +323 -312
  65. package/rows/ThreeColTwelveStories/index.js +302 -291
  66. package/rows/TwoColFourStories/index.js +316 -305
  67. package/rows/TwoColFourStoryHighlight/index.js +317 -306
  68. package/rows/TwoColSevenStories/index.js +322 -311
  69. package/rows/TwoColSixStories/index.js +316 -305
  70. package/rows/TwoColTenStoriesSidebar/index.js +338 -327
  71. package/rows/TwoColThreeStories/index.js +316 -305
  72. package/story-elements/AlsoRead/index.js +70 -61
  73. package/story-elements/Attachment/index.js +40 -31
  74. package/story-elements/BigFact/index.js +35 -26
  75. package/story-elements/BlockQuote/index.js +61 -51
  76. package/story-elements/Blurb/index.js +36 -27
  77. package/story-elements/Image/index.js +113 -86
  78. package/story-elements/ImageGallery/index.js +98 -71
  79. package/story-elements/ImageSlideshow/index.js +147 -120
  80. package/story-elements/QuestionAnswer/index.js +55 -46
  81. package/story-elements/Quote/index.js +37 -28
  82. package/story-elements/Reference/index.js +40 -31
  83. package/story-elements/StoryElement/index.js +28 -19
  84. package/story-elements/Summary/index.js +40 -31
  85. package/story-elements/Text/index.js +34 -25
  86. package/story-elements/Video/index.js +29 -20
  87. package/story-templates/ListicleStoryTemplate/index.js +937 -908
  88. package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
  89. package/story-templates/PhotoStoryTemplate/index.js +912 -883
  90. package/story-templates/TextStoryTemplate/index.js +931 -902
  91. package/story-templates/VideoStoryTemplate/index.js +897 -868
  92. package/atoms/ExtendedLoadMore/index-81eb3978.js +0 -86
@@ -1,10 +1,39 @@
1
- import React, { useContext, createContext, useState, useEffect, useRef } from 'react';
2
- import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
3
- import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
4
- import { connect, useSelector, useDispatch } from 'react-redux';
5
- import Timeago from 'react-timeago';
6
- import { utcToZonedTime, format } from 'date-fns-tz';
7
- import ReactDOM from 'react-dom';
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var PropTypes = require('prop-types');
7
+ var components = require('@quintype/components');
8
+ var reactRedux = require('react-redux');
9
+ var Timeago = require('react-timeago');
10
+ var dateFnsTz = require('date-fns-tz');
11
+ var ReactDOM = require('react-dom');
12
+
13
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
+
15
+ function _interopNamespace(e) {
16
+ if (e && e.__esModule) return e;
17
+ var n = Object.create(null);
18
+ if (e) {
19
+ Object.keys(e).forEach(function (k) {
20
+ if (k !== 'default') {
21
+ var d = Object.getOwnPropertyDescriptor(e, k);
22
+ Object.defineProperty(n, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: function () { return e[k]; }
25
+ });
26
+ }
27
+ });
28
+ }
29
+ n["default"] = e;
30
+ return Object.freeze(n);
31
+ }
32
+
33
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
35
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
36
+ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
8
37
 
9
38
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
39
 
@@ -1345,21 +1374,21 @@ function get(object, path, defaultValue) {
1345
1374
 
1346
1375
  var get_1 = get;
1347
1376
 
1348
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
1377
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
1349
1378
 
1350
1379
  var StateProvider = function StateProvider(RowComponent) {
1351
1380
  return function (props) {
1352
1381
  return (
1353
1382
  /*#__PURE__*/
1354
1383
  // eslint-disable-next-line react/prop-types
1355
- React.createElement(StateContext.Provider, {
1384
+ React__default["default"].createElement(StateContext.Provider, {
1356
1385
  value: props.config
1357
- }, /*#__PURE__*/React.createElement(RowComponent, props))
1386
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
1358
1387
  );
1359
1388
  };
1360
1389
  };
1361
1390
  var useStateValue = function useStateValue() {
1362
- return useContext(StateContext);
1391
+ return React.useContext(StateContext);
1363
1392
  };
1364
1393
 
1365
1394
  function _typeof(obj) {
@@ -2676,15 +2705,15 @@ var isEmpty = function isEmpty(value) {
2676
2705
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2677
2706
  _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2678
2707
  };
2679
- PropTypes.shape({
2680
- "sketches-host": PropTypes.string,
2681
- "cdn-name": PropTypes.string,
2682
- "cdn-image": PropTypes.string
2708
+ PropTypes__default["default"].shape({
2709
+ "sketches-host": PropTypes__default["default"].string,
2710
+ "cdn-name": PropTypes__default["default"].string,
2711
+ "cdn-image": PropTypes__default["default"].string
2683
2712
  });
2684
- PropTypes.shape({
2685
- headline: PropTypes.string,
2686
- "last-published-at": PropTypes.number,
2687
- subheadline: PropTypes.string
2713
+ PropTypes__default["default"].shape({
2714
+ headline: PropTypes__default["default"].string,
2715
+ "last-published-at": PropTypes__default["default"].number,
2716
+ subheadline: PropTypes__default["default"].string
2688
2717
  });
2689
2718
  var getStoryUrl = function getStoryUrl(story) {
2690
2719
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2728,17 +2757,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2728
2757
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2729
2758
 
2730
2759
  if (timezone && template === "story") {
2731
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2732
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2760
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
2761
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2733
2762
  timeZone: timezone
2734
2763
  });
2735
2764
  var timeStamp = timestampToFormat("", "", "", date, config);
2736
- return /*#__PURE__*/React.createElement("time", {
2765
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2737
2766
  dateTime: formatZonedTime
2738
2767
  }, timeStamp);
2739
2768
  }
2740
2769
 
2741
- return /*#__PURE__*/React.createElement(Timeago, {
2770
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2742
2771
  date: date,
2743
2772
  formatter: function formatter(value, unit, suffix, date) {
2744
2773
  return _formatter(value, unit, suffix, date, config);
@@ -2782,7 +2811,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2782
2811
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
2783
2812
 
2784
2813
  var borderBottomStyle = function borderBottomStyle() {
2785
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
2814
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
2786
2815
  className: "collection-name-m_border-bottom__1MnlV",
2787
2816
  style: {
2788
2817
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -2842,40 +2871,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2842
2871
  }
2843
2872
  };
2844
2873
 
2845
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
2874
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
2846
2875
  style: {
2847
2876
  borderBottom: borderBottomFullStyle
2848
2877
  },
2849
2878
  "data-test-id": "collection-name",
2850
2879
  className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$d)
2851
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
2880
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
2852
2881
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2853
2882
  style: {
2854
2883
  color: CollectionNameBorderColor,
2855
2884
  fontSize: getBorderHeight()
2856
2885
  }
2857
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
2886
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
2858
2887
  href: slug,
2859
2888
  "aria-label": "collection-name"
2860
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2889
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
2861
2890
  };
2862
2891
  CollectionNameBase.propTypes = {
2863
2892
  /** Collection name border color */
2864
- collectionNameBorderColor: PropTypes$1.string,
2893
+ collectionNameBorderColor: PropTypes.PropTypes.string,
2865
2894
 
2866
2895
  /** The Collection Object from the API response */
2867
- collection: PropTypes$1.object,
2896
+ collection: PropTypes.PropTypes.object,
2868
2897
 
2869
2898
  /** The publisher config from the API response */
2870
- config: PropTypes$1.object,
2899
+ config: PropTypes.PropTypes.object,
2871
2900
 
2872
2901
  /** The style template for the component */
2873
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2902
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2874
2903
 
2875
2904
  /** Header tags ranging h1-h6, where h[headerLevel] */
2876
- headerLevel: PropTypes$1.string,
2877
- customCollectionName: PropTypes$1.string,
2878
- navigate: PropTypes$1.bool
2905
+ headerLevel: PropTypes.PropTypes.string,
2906
+ customCollectionName: PropTypes.PropTypes.string,
2907
+ navigate: PropTypes.PropTypes.bool
2879
2908
  };
2880
2909
  CollectionNameBase.defaultProps = {
2881
2910
  collectionNameTemplate: "",
@@ -2888,7 +2917,7 @@ function mapStateToProps$1(state) {
2888
2917
  };
2889
2918
  }
2890
2919
 
2891
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
2920
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
2892
2921
 
2893
2922
  function _arrayWithHoles(arr) {
2894
2923
  if (Array.isArray(arr)) return arr;
@@ -2958,27 +2987,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2958
2987
  height = _ref$height === void 0 ? 30 : _ref$height,
2959
2988
  _ref$iconColor = _ref.iconColor,
2960
2989
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
2961
- return /*#__PURE__*/React.createElement("svg", {
2990
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2962
2991
  width: width,
2963
2992
  height: height,
2964
2993
  viewBox: "0 0 102 76",
2965
2994
  version: "1.1"
2966
- }, /*#__PURE__*/React.createElement("g", {
2995
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2967
2996
  id: "demo-home-copy",
2968
2997
  stroke: "none",
2969
2998
  strokeWidth: "1",
2970
2999
  fill: "none",
2971
3000
  fillRule: "evenodd",
2972
3001
  transform: "translate(-377.000000, -314.000000)"
2973
- }, /*#__PURE__*/React.createElement("g", {
3002
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2974
3003
  id: "Group-13",
2975
3004
  transform: "translate(377.000000, 314.000000)"
2976
- }, /*#__PURE__*/React.createElement("path", {
3005
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2977
3006
  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",
2978
3007
  id: "Combined-Shape",
2979
3008
  fill: iconColor,
2980
3009
  fillRule: "nonzero"
2981
- }), /*#__PURE__*/React.createElement("rect", {
3010
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
2982
3011
  id: "Rectangle-19",
2983
3012
  stroke: iconColor,
2984
3013
  strokeWidth: "3",
@@ -2990,24 +3019,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2990
3019
  }))));
2991
3020
  };
2992
3021
  ImageFallbackIcon.propTypes = {
2993
- width: PropTypes.object,
2994
- height: PropTypes.object,
2995
- iconColor: PropTypes.object
3022
+ width: PropTypes__default["default"].object,
3023
+ height: PropTypes__default["default"].object,
3024
+ iconColor: PropTypes__default["default"].object
2996
3025
  };
2997
3026
 
2998
3027
  var imageFallback = function imageFallback() {
2999
- return /*#__PURE__*/React.createElement("div", {
3028
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3000
3029
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3001
- }, /*#__PURE__*/React.createElement("figure", {
3030
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3002
3031
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3003
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
3032
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3004
3033
  };
3005
3034
 
3006
3035
  var FallbackImage = function FallbackImage(_ref) {
3007
3036
  var slug = _ref.slug;
3008
3037
 
3009
3038
  if (slug) {
3010
- return /*#__PURE__*/React.createElement(Link, {
3039
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3011
3040
  href: slug,
3012
3041
  "aria-label": "image-fallback"
3013
3042
  }, imageFallback());
@@ -3016,23 +3045,23 @@ var FallbackImage = function FallbackImage(_ref) {
3016
3045
  }
3017
3046
  };
3018
3047
  FallbackImage.propTypes = {
3019
- slug: PropTypes.string
3048
+ slug: PropTypes__default["default"].string
3020
3049
  };
3021
3050
 
3022
3051
  var HyperLinkIcon = function HyperLinkIcon() {
3023
- return /*#__PURE__*/React.createElement("svg", {
3052
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3024
3053
  xmlns: "http://www.w3.org/2000/svg",
3025
3054
  width: "36",
3026
3055
  height: "28"
3027
- }, /*#__PURE__*/React.createElement("g", {
3056
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3028
3057
  fill: "none",
3029
3058
  fillRule: "evenodd"
3030
- }, /*#__PURE__*/React.createElement("rect", {
3059
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3031
3060
  width: "36",
3032
3061
  height: "28",
3033
3062
  fill: "#3D6FCF",
3034
3063
  rx: "4"
3035
- }), /*#__PURE__*/React.createElement("path", {
3064
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3036
3065
  stroke: "#FFF",
3037
3066
  strokeLinecap: "round",
3038
3067
  strokeLinejoin: "round",
@@ -3045,16 +3074,16 @@ var HyperLink = function HyperLink(_ref) {
3045
3074
  var _ref$hyperLink = _ref.hyperLink,
3046
3075
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3047
3076
  if (!hyperLink) return null;
3048
- return /*#__PURE__*/React.createElement(Link, {
3077
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3049
3078
  href: hyperLink,
3050
3079
  "aria-label": "hyperlink-button",
3051
3080
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3052
3081
  target: "_blank",
3053
3082
  rel: "noopener noreferrer"
3054
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
3083
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3055
3084
  };
3056
3085
  HyperLink.propTypes = {
3057
- hyperLink: PropTypes.string
3086
+ hyperLink: PropTypes__default["default"].string
3058
3087
  };
3059
3088
 
3060
3089
  var _styleModuleImportMap$c = {
@@ -3090,7 +3119,7 @@ var HeroImage = function HeroImage(_ref) {
3090
3119
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3091
3120
  return null;
3092
3121
  } : _config$StoryTemplate;
3093
- var showImagePlaceholder = useSelector(function (state) {
3122
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
3094
3123
  return get_1(state, ["qt", "config", "showPlaceholder"]);
3095
3124
  });
3096
3125
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
@@ -3126,37 +3155,37 @@ var HeroImage = function HeroImage(_ref) {
3126
3155
  var fallbackImage = function fallbackImage() {
3127
3156
  if (!slug) {
3128
3157
  if (fallbackImageUrl && !isStoryPageImage) {
3129
- return /*#__PURE__*/React.createElement("figure", {
3158
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3130
3159
  style: {
3131
3160
  paddingTop: imagePadding + "%"
3132
3161
  },
3133
3162
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$c)
3134
- }, /*#__PURE__*/React.createElement("img", {
3163
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3135
3164
  className: "qt-image",
3136
3165
  "data-src": "".concat(fallbackImageUrl),
3137
3166
  alt: "image-fallback"
3138
3167
  }));
3139
3168
  }
3140
3169
 
3141
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
3170
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3142
3171
  "data-test-id": "arr--fallback-hero-image",
3143
3172
  style: {
3144
3173
  paddingTop: imagePadding + "%"
3145
3174
  },
3146
3175
  className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$c)
3147
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3176
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3148
3177
  storyTemplate: story["story-template"]
3149
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
3178
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3150
3179
  }
3151
3180
 
3152
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
3181
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3153
3182
  style: {
3154
3183
  paddingTop: imagePadding + "%"
3155
3184
  },
3156
3185
  className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$c)
3157
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
3186
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3158
3187
  storyTemplate: story["story-template"]
3159
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
3188
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3160
3189
  story: story,
3161
3190
  aspectRatio: imageAspectRatio,
3162
3191
  defaultWidth: defaultWidth,
@@ -3165,15 +3194,15 @@ var HeroImage = function HeroImage(_ref) {
3165
3194
  auto: ["format", "compress"],
3166
3195
  fit: "max"
3167
3196
  }
3168
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
3197
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3169
3198
  hyperLink: hyperLink
3170
3199
  }));
3171
3200
  };
3172
3201
 
3173
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
3202
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3174
3203
  "data-test-id": "arr--hero-image",
3175
3204
  className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$c)
3176
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
3205
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3177
3206
  "data-test-id": "arr--hero-image",
3178
3207
  href: getStoryUrl(story, "/".concat(story.slug)),
3179
3208
  externalLink: isExternalStory(story),
@@ -3183,30 +3212,30 @@ var HeroImage = function HeroImage(_ref) {
3183
3212
  };
3184
3213
  HeroImage.propTypes = {
3185
3214
  /** The Story Object from the API response */
3186
- story: PropTypes.object.isRequired,
3215
+ story: PropTypes__default["default"].object.isRequired,
3187
3216
 
3188
3217
  /** Removes the Hero Image padding for the image to bleed over the margin */
3189
- FullBleed: PropTypes.bool,
3218
+ FullBleed: PropTypes__default["default"].bool,
3190
3219
 
3191
3220
  /** The default width for the image, in case the browser does not support srcset */
3192
- defaultWidth: PropTypes.number,
3221
+ defaultWidth: PropTypes__default["default"].number,
3193
3222
 
3194
3223
  /** The list of available widths */
3195
- widths: PropTypes.array,
3224
+ widths: PropTypes__default["default"].array,
3196
3225
  // fatch the correct hero image
3197
- aspectRatio: PropTypes.array,
3226
+ aspectRatio: PropTypes__default["default"].array,
3198
3227
  // Hints for the browser to choose the best size
3199
3228
 
3200
3229
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3201
- isHorizontal: PropTypes.bool,
3230
+ isHorizontal: PropTypes__default["default"].bool,
3202
3231
 
3203
3232
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3204
- isHorizontalMobile: PropTypes.bool,
3233
+ isHorizontalMobile: PropTypes__default["default"].bool,
3205
3234
  // this prop is responsive for rendering fallback image on story page
3206
- defaultFallback: PropTypes.bool,
3207
- isHorizontalWithImageLast: PropTypes.bool,
3208
- isStoryPageImage: PropTypes.bool,
3209
- config: PropTypes.object
3235
+ defaultFallback: PropTypes__default["default"].bool,
3236
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
3237
+ isStoryPageImage: PropTypes__default["default"].bool,
3238
+ config: PropTypes__default["default"].object
3210
3239
  };
3211
3240
  HeroImage.defaultProps = {
3212
3241
  FullBleed: true,
@@ -3227,7 +3256,7 @@ var CrownIcon = function CrownIcon(_ref) {
3227
3256
  _ref$color = _ref.color,
3228
3257
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3229
3258
  positionTop = _ref.positionTop;
3230
- return /*#__PURE__*/React.createElement("svg", {
3259
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3231
3260
  xmlns: "http://www.w3.org/2000/svg",
3232
3261
  width: width,
3233
3262
  height: height,
@@ -3236,28 +3265,28 @@ var CrownIcon = function CrownIcon(_ref) {
3236
3265
  position: "relative",
3237
3266
  top: positionTop
3238
3267
  }
3239
- }, /*#__PURE__*/React.createElement("g", {
3268
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3240
3269
  fill: "none",
3241
3270
  fillRule: "evenodd",
3242
3271
  stroke: "none",
3243
3272
  strokeWidth: "1"
3244
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3273
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3245
3274
  transform: "translate(8 8)"
3246
- }, /*#__PURE__*/React.createElement("path", {
3275
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3247
3276
  d: "M0 0H24V24H0z"
3248
- }), /*#__PURE__*/React.createElement("g", {
3277
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3249
3278
  fill: color,
3250
3279
  fillRule: "nonzero",
3251
3280
  transform: "translate(0 2)"
3252
- }, /*#__PURE__*/React.createElement("path", {
3281
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3253
3282
  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"
3254
3283
  }))))));
3255
3284
  };
3256
3285
  CrownIcon.propTypes = {
3257
- height: PropTypes.string,
3258
- width: PropTypes.string,
3259
- color: PropTypes.string,
3260
- positionTop: PropTypes.string
3286
+ height: PropTypes__default["default"].string,
3287
+ width: PropTypes__default["default"].string,
3288
+ color: PropTypes__default["default"].string,
3289
+ positionTop: PropTypes__default["default"].string
3261
3290
  };
3262
3291
 
3263
3292
  var KeyIcon = function KeyIcon(_ref) {
@@ -3266,7 +3295,7 @@ var KeyIcon = function KeyIcon(_ref) {
3266
3295
  _ref$color = _ref.color,
3267
3296
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3268
3297
  positionTop = _ref.positionTop;
3269
- return /*#__PURE__*/React.createElement("svg", {
3298
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3270
3299
  xmlns: "http://www.w3.org/2000/svg",
3271
3300
  width: width,
3272
3301
  height: height,
@@ -3275,16 +3304,16 @@ var KeyIcon = function KeyIcon(_ref) {
3275
3304
  position: "relative",
3276
3305
  top: positionTop
3277
3306
  }
3278
- }, /*#__PURE__*/React.createElement("g", {
3307
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3279
3308
  fill: "none",
3280
3309
  fillRule: "evenodd",
3281
3310
  stroke: "none",
3282
3311
  strokeWidth: "1"
3283
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3312
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3284
3313
  transform: "translate(8 8)"
3285
- }, /*#__PURE__*/React.createElement("path", {
3314
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3286
3315
  d: "M0 0H24V24H0z"
3287
- }), /*#__PURE__*/React.createElement("path", {
3316
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3288
3317
  fill: color,
3289
3318
  fillRule: "nonzero",
3290
3319
  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",
@@ -3292,10 +3321,10 @@ var KeyIcon = function KeyIcon(_ref) {
3292
3321
  })))));
3293
3322
  };
3294
3323
  KeyIcon.propTypes = {
3295
- height: PropTypes.string,
3296
- width: PropTypes.string,
3297
- color: PropTypes.string,
3298
- positionTop: PropTypes.string
3324
+ height: PropTypes__default["default"].string,
3325
+ width: PropTypes__default["default"].string,
3326
+ color: PropTypes__default["default"].string,
3327
+ positionTop: PropTypes__default["default"].string
3299
3328
  };
3300
3329
 
3301
3330
  var LockIcon = function LockIcon(_ref) {
@@ -3304,7 +3333,7 @@ var LockIcon = function LockIcon(_ref) {
3304
3333
  _ref$color = _ref.color,
3305
3334
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3306
3335
  positionTop = _ref.positionTop;
3307
- return /*#__PURE__*/React.createElement("svg", {
3336
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3308
3337
  xmlns: "http://www.w3.org/2000/svg",
3309
3338
  width: width,
3310
3339
  height: height,
@@ -3313,28 +3342,28 @@ var LockIcon = function LockIcon(_ref) {
3313
3342
  position: "relative",
3314
3343
  top: positionTop
3315
3344
  }
3316
- }, /*#__PURE__*/React.createElement("g", {
3345
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3317
3346
  fill: "none",
3318
3347
  fillRule: "evenodd",
3319
3348
  stroke: "none",
3320
3349
  strokeWidth: "1"
3321
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
3350
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3322
3351
  transform: "translate(8 8)"
3323
- }, /*#__PURE__*/React.createElement("path", {
3352
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3324
3353
  d: "M0 0H24V24H0z"
3325
- }), /*#__PURE__*/React.createElement("g", {
3354
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3326
3355
  fill: color,
3327
3356
  fillRule: "nonzero",
3328
3357
  transform: "translate(3)"
3329
- }, /*#__PURE__*/React.createElement("path", {
3358
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3330
3359
  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"
3331
3360
  }))))));
3332
3361
  };
3333
3362
  LockIcon.propTypes = {
3334
- height: PropTypes.string,
3335
- width: PropTypes.string,
3336
- color: PropTypes.string,
3337
- positionTop: PropTypes.string
3363
+ height: PropTypes__default["default"].string,
3364
+ width: PropTypes__default["default"].string,
3365
+ color: PropTypes__default["default"].string,
3366
+ positionTop: PropTypes__default["default"].string
3338
3367
  };
3339
3368
 
3340
3369
  var StarIcon = function StarIcon(_ref) {
@@ -3344,7 +3373,7 @@ var StarIcon = function StarIcon(_ref) {
3344
3373
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3345
3374
  _ref$positionTop = _ref.positionTop,
3346
3375
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3347
- return /*#__PURE__*/React.createElement("svg", {
3376
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3348
3377
  xmlns: "http://www.w3.org/2000/svg",
3349
3378
  width: width,
3350
3379
  height: height,
@@ -3353,21 +3382,21 @@ var StarIcon = function StarIcon(_ref) {
3353
3382
  position: "relative",
3354
3383
  top: positionTop
3355
3384
  }
3356
- }, /*#__PURE__*/React.createElement("g", {
3385
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3357
3386
  fill: "none",
3358
3387
  fillRule: "evenodd",
3359
3388
  stroke: "none",
3360
3389
  strokeWidth: "1"
3361
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
3390
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3362
3391
  fill: color,
3363
3392
  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"
3364
3393
  }))));
3365
3394
  };
3366
3395
  StarIcon.propTypes = {
3367
- height: PropTypes.string,
3368
- width: PropTypes.string,
3369
- color: PropTypes.string,
3370
- positionTop: PropTypes.string
3396
+ height: PropTypes__default["default"].string,
3397
+ width: PropTypes__default["default"].string,
3398
+ color: PropTypes__default["default"].string,
3399
+ positionTop: PropTypes__default["default"].string
3371
3400
  };
3372
3401
 
3373
3402
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3379,7 +3408,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3379
3408
 
3380
3409
  switch (iconType) {
3381
3410
  case "crown":
3382
- return /*#__PURE__*/React.createElement(CrownIcon, {
3411
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3383
3412
  width: width,
3384
3413
  height: height,
3385
3414
  color: color,
@@ -3387,7 +3416,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3387
3416
  });
3388
3417
 
3389
3418
  case "lock":
3390
- return /*#__PURE__*/React.createElement(LockIcon, {
3419
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3391
3420
  width: width,
3392
3421
  height: height,
3393
3422
  color: color,
@@ -3395,7 +3424,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3395
3424
  });
3396
3425
 
3397
3426
  case "key":
3398
- return /*#__PURE__*/React.createElement(KeyIcon, {
3427
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3399
3428
  width: width,
3400
3429
  height: height,
3401
3430
  color: color,
@@ -3403,7 +3432,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3403
3432
  });
3404
3433
 
3405
3434
  default:
3406
- return /*#__PURE__*/React.createElement(StarIcon, {
3435
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3407
3436
  width: width,
3408
3437
  height: height,
3409
3438
  color: color,
@@ -3412,21 +3441,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3412
3441
  }
3413
3442
  };
3414
3443
  PremiumStoryIcon.propTypes = {
3415
- width: PropTypes.string,
3416
- height: PropTypes.string,
3417
- color: PropTypes.string,
3418
- iconType: PropTypes.string,
3419
- positionTop: PropTypes.string
3444
+ width: PropTypes__default["default"].string,
3445
+ height: PropTypes__default["default"].string,
3446
+ color: PropTypes__default["default"].string,
3447
+ iconType: PropTypes__default["default"].string,
3448
+ positionTop: PropTypes__default["default"].string
3420
3449
  };
3421
3450
 
3422
3451
  function LiveIcon() {
3423
- return /*#__PURE__*/React.createElement("svg", {
3452
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3424
3453
  className: "live-icon",
3425
3454
  xmlns: "http://www.w3.org/2000/svg",
3426
3455
  width: "25",
3427
3456
  height: "24",
3428
3457
  viewBox: "0 0 25 24"
3429
- }, /*#__PURE__*/React.createElement("path", {
3458
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3430
3459
  fill: "#ff5858",
3431
3460
  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"
3432
3461
  }));
@@ -3483,37 +3512,37 @@ var Headline = function Headline(_ref) {
3483
3512
  var wrapperClass = premiumStory ? "wrapper" : "";
3484
3513
  var iconSize = "24px";
3485
3514
  var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3486
- return /*#__PURE__*/React.createElement("div", {
3515
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3487
3516
  "data-test-id": "headline",
3488
3517
  className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$b)
3489
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
3518
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3490
3519
  width: iconSize,
3491
3520
  height: iconSize,
3492
3521
  color: iconColor,
3493
3522
  iconType: iconStyle,
3494
3523
  positionTop: positionHeadline()
3495
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
3524
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3496
3525
  href: getStoryUrl(story, "/".concat(story.slug)),
3497
3526
  externalLink: isExternalStory(story),
3498
3527
  "aria-label": "headline"
3499
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3528
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3500
3529
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$b)
3501
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3530
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3502
3531
  className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$b)
3503
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
3532
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3504
3533
  };
3505
3534
  Headline.propTypes = {
3506
3535
  /** The Story Object from the API response */
3507
- story: PropTypes.object.isRequired,
3536
+ story: PropTypes__default["default"].object.isRequired,
3508
3537
 
3509
3538
  /** Header tags ranging h1-h6, where h[headerLevel] */
3510
- headerLevel: PropTypes.string,
3511
- premiumStoryIconConfig: PropTypes.shape({
3512
- iconColor: PropTypes.string,
3513
- iconType: PropTypes.string,
3514
- enablePremiumStoryIcon: PropTypes.bool
3539
+ headerLevel: PropTypes__default["default"].string,
3540
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
3541
+ iconColor: PropTypes__default["default"].string,
3542
+ iconType: PropTypes__default["default"].string,
3543
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3515
3544
  }),
3516
- isLink: PropTypes.bool
3545
+ isLink: PropTypes__default["default"].bool
3517
3546
  };
3518
3547
  Headline.defaultProps = {
3519
3548
  headerLevel: "6",
@@ -3540,7 +3569,7 @@ var Subheadline = function Subheadline(_ref) {
3540
3569
  var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
3541
3570
  if (!subheadline) return null;
3542
3571
  var textColor = getTextColor(config.theme);
3543
- return /*#__PURE__*/React.createElement("div", {
3572
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3544
3573
  style: {
3545
3574
  WebkitLineClamp: lineClamp
3546
3575
  },
@@ -3550,15 +3579,15 @@ var Subheadline = function Subheadline(_ref) {
3550
3579
  };
3551
3580
  Subheadline.propTypes = {
3552
3581
  /** The Story Object from the API response */
3553
- story: PropTypes.object.isRequired,
3582
+ story: PropTypes__default["default"].object.isRequired,
3554
3583
  // Restricts the number of lines for subheadline.
3555
- lineClamp: PropTypes.number,
3584
+ lineClamp: PropTypes__default["default"].number,
3556
3585
 
3557
3586
  /** Number of characters to truncate the subheadline */
3558
- truncateChars: PropTypes.number,
3559
- clazzName: PropTypes.string,
3560
- forceShowAtom: PropTypes.bool,
3561
- showFullContent: PropTypes.bool
3587
+ truncateChars: PropTypes__default["default"].number,
3588
+ clazzName: PropTypes__default["default"].string,
3589
+ forceShowAtom: PropTypes__default["default"].bool,
3590
+ showFullContent: PropTypes__default["default"].bool
3562
3591
  };
3563
3592
  Subheadline.defaultProps = {
3564
3593
  forceShowAtom: false,
@@ -3584,18 +3613,18 @@ var TimeStamp = function TimeStamp(_ref) {
3584
3613
  var time = story["last-published-at"] || story["first-published-at"];
3585
3614
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3586
3615
  var textColor = getTextColor(configState.theme);
3587
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
3616
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3588
3617
  "data-test-id": "publish-time",
3589
3618
  className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$9)
3590
- }, /*#__PURE__*/React.createElement("div", {
3619
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3591
3620
  className: "timestamp-m_time-wrapper__3O2lM"
3592
3621
  }, getTimeStamp(time, formatter, config))));
3593
3622
  };
3594
3623
  TimeStamp.propTypes = {
3595
3624
  /** The Story Object from the API response */
3596
- story: PropTypes.object,
3597
- isBottom: PropTypes.bool,
3598
- config: PropTypes.object
3625
+ story: PropTypes__default["default"].object,
3626
+ isBottom: PropTypes__default["default"].bool,
3627
+ config: PropTypes__default["default"].object
3599
3628
  };
3600
3629
 
3601
3630
  var _styleModuleImportMap$8 = {
@@ -3638,10 +3667,10 @@ var AuthorBase = function AuthorBase(_ref) {
3638
3667
  return null;
3639
3668
  }
3640
3669
 
3641
- return /*#__PURE__*/React.createElement("div", {
3670
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3642
3671
  "data-test-id": "author-image",
3643
3672
  className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$8)
3644
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
3673
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3645
3674
  slug: avatarS3Key,
3646
3675
  "aspect-ratio": [1, 1],
3647
3676
  defaultWidth: 400,
@@ -3649,14 +3678,14 @@ var AuthorBase = function AuthorBase(_ref) {
3649
3678
  auto: ["format", "compress"]
3650
3679
  },
3651
3680
  alt: authorName
3652
- }) : /*#__PURE__*/React.createElement("img", {
3681
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3653
3682
  src: avatarUrl
3654
3683
  })));
3655
3684
  };
3656
3685
 
3657
3686
  var isPrefix = function isPrefix(dir) {
3658
3687
  if (prefix) {
3659
- return /*#__PURE__*/React.createElement("div", {
3688
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3660
3689
  className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$8)
3661
3690
  }, prefix);
3662
3691
  }
@@ -3664,11 +3693,11 @@ var AuthorBase = function AuthorBase(_ref) {
3664
3693
  return !hideAuthorImage && authorImage(dir);
3665
3694
  };
3666
3695
 
3667
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
3696
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3668
3697
  href: "".concat(mountAt, "/author/") + slug,
3669
3698
  "aria-label": "author-name",
3670
3699
  className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$8)
3671
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
3700
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3672
3701
  "data-test-id": "author-name",
3673
3702
  className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$8)
3674
3703
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
@@ -3680,18 +3709,18 @@ function mapStateToProps(state) {
3680
3709
  };
3681
3710
  }
3682
3711
 
3683
- var Author = connect(mapStateToProps)(AuthorBase);
3712
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3684
3713
  AuthorBase.propTypes = {
3685
3714
  /** The Story Object from the API response */
3686
- story: PropTypes.object.isRequired,
3715
+ story: PropTypes__default["default"].object.isRequired,
3687
3716
 
3688
3717
  /** Hide Author Avatar Image */
3689
- hideAuthorImage: PropTypes.bool,
3718
+ hideAuthorImage: PropTypes__default["default"].bool,
3690
3719
  // fix Author bottom of the storyCard
3691
- isBottom: PropTypes.bool,
3720
+ isBottom: PropTypes__default["default"].bool,
3692
3721
  // fix prefix before the author name
3693
- prefix: PropTypes.string,
3694
- config: PropTypes.object
3722
+ prefix: PropTypes__default["default"].string,
3723
+ config: PropTypes__default["default"].object
3695
3724
  };
3696
3725
  AuthorBase.defaultProps = {
3697
3726
  hideAuthorImage: false,
@@ -3712,14 +3741,14 @@ var Dot = function Dot(_ref) {
3712
3741
  height = _ref$height === void 0 ? "3px" : _ref$height,
3713
3742
  _ref$color = _ref.color,
3714
3743
  color = _ref$color === void 0 ? "light" : _ref$color;
3715
- return /*#__PURE__*/React.createElement("div", {
3744
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3716
3745
  className: _getClassName(color, _styleModuleImportMap$7)
3717
- }, /*#__PURE__*/React.createElement("svg", {
3746
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3718
3747
  xmlns: "http://www.w3.org/2000/svg",
3719
3748
  width: width,
3720
3749
  height: height,
3721
3750
  viewBox: "0 0 3 3"
3722
- }, /*#__PURE__*/React.createElement("circle", {
3751
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3723
3752
  cx: "87",
3724
3753
  cy: "9",
3725
3754
  r: "1",
@@ -3730,9 +3759,9 @@ var Dot = function Dot(_ref) {
3730
3759
  };
3731
3760
  Dot.propTypes = {
3732
3761
  /** height , width and color of the dot icon */
3733
- color: PropTypes.string,
3734
- width: PropTypes.string,
3735
- height: PropTypes.string
3762
+ color: PropTypes__default["default"].string,
3763
+ width: PropTypes__default["default"].string,
3764
+ height: PropTypes__default["default"].string
3736
3765
  };
3737
3766
 
3738
3767
  var _styleModuleImportMap$6 = {
@@ -3748,22 +3777,22 @@ var Divider = function Divider(_ref) {
3748
3777
  height = _ref$height === void 0 ? "10" : _ref$height,
3749
3778
  _ref$color = _ref.color,
3750
3779
  color = _ref$color === void 0 ? "light" : _ref$color;
3751
- return /*#__PURE__*/React.createElement("div", {
3780
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3752
3781
  className: _getClassName(color, _styleModuleImportMap$6)
3753
- }, /*#__PURE__*/React.createElement("svg", {
3782
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3754
3783
  xmlns: "http://www.w3.org/2000/svg",
3755
3784
  width: width,
3756
3785
  height: height
3757
- }, /*#__PURE__*/React.createElement("path", {
3786
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3758
3787
  fill: "inherit",
3759
3788
  d: "M0 0h1v10H0z"
3760
3789
  })));
3761
3790
  };
3762
3791
  Divider.propTypes = {
3763
3792
  /** height , width and color of the dot icon */
3764
- color: PropTypes.string,
3765
- width: PropTypes.string,
3766
- height: PropTypes.string
3793
+ color: PropTypes__default["default"].string,
3794
+ width: PropTypes__default["default"].string,
3795
+ height: PropTypes__default["default"].string
3767
3796
  };
3768
3797
 
3769
3798
  var _styleModuleImportMap$5 = {
@@ -3786,23 +3815,23 @@ var ReadTime = function ReadTime(_ref) {
3786
3815
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3787
3816
  if (!showReadTime || !readTime) return null;
3788
3817
  var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3789
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3818
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3790
3819
  "data-test-id": "read-time",
3791
3820
  className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$5)
3792
- }, /*#__PURE__*/React.createElement("span", {
3821
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3793
3822
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3794
- }, /*#__PURE__*/React.createElement(Dot, {
3823
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3795
3824
  color: textColor
3796
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
3825
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3797
3826
  };
3798
3827
  ReadTime.propTypes = {
3799
- story: PropTypes.shape({
3800
- "read-time": PropTypes.number
3828
+ story: PropTypes__default["default"].shape({
3829
+ "read-time": PropTypes__default["default"].number
3801
3830
  }),
3802
- opts: PropTypes.shape({
3803
- showReadTime: PropTypes.bool
3831
+ opts: PropTypes__default["default"].shape({
3832
+ showReadTime: PropTypes__default["default"].bool
3804
3833
  }),
3805
- isLightTheme: PropTypes.bool
3834
+ isLightTheme: PropTypes__default["default"].bool
3806
3835
  };
3807
3836
 
3808
3837
  var _styleModuleImportMap$4 = {
@@ -3833,33 +3862,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3833
3862
 
3834
3863
  var getSeparator = function getSeparator() {
3835
3864
  if (separator === "divider") {
3836
- return /*#__PURE__*/React.createElement(Divider, {
3865
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3837
3866
  color: textColor
3838
3867
  });
3839
3868
  }
3840
3869
 
3841
- return /*#__PURE__*/React.createElement(Dot, {
3870
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3842
3871
  color: textColor
3843
3872
  });
3844
3873
  };
3845
3874
 
3846
3875
  var getTimeStamp = function getTimeStamp() {
3847
3876
  if (!isTime) return null;
3848
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3877
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3849
3878
  className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$4)
3850
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
3879
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3851
3880
  story: story,
3852
3881
  config: config
3853
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
3882
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3854
3883
  story: story,
3855
3884
  opts: config,
3856
3885
  isLightTheme: isLightTheme
3857
3886
  }));
3858
3887
  };
3859
3888
 
3860
- return /*#__PURE__*/React.createElement("div", {
3889
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3861
3890
  className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$4)
3862
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
3891
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3863
3892
  story: story,
3864
3893
  isBottom: true,
3865
3894
  hideAuthorImage: hideAuthorImage,
@@ -3867,19 +3896,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3867
3896
  }), getTimeStamp()) : getTimeStamp());
3868
3897
  };
3869
3898
  AuthorWithTime.propTypes = {
3870
- story: PropTypes.object,
3899
+ story: PropTypes__default["default"].object,
3871
3900
 
3872
3901
  /** Style of separator between the Author & Timestamp */
3873
- separator: PropTypes.oneOf(["dot", "divider"]),
3902
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3874
3903
 
3875
3904
  /** hide the author image */
3876
- hideAuthorImage: PropTypes.bool,
3905
+ hideAuthorImage: PropTypes__default["default"].bool,
3877
3906
  // fix author and time at the end
3878
- isBottom: PropTypes.bool,
3907
+ isBottom: PropTypes__default["default"].bool,
3879
3908
  // fix prefix before the author name
3880
- prefix: PropTypes.string,
3881
- config: PropTypes.object,
3882
- isLightTheme: PropTypes.bool
3909
+ prefix: PropTypes__default["default"].string,
3910
+ config: PropTypes__default["default"].object,
3911
+ isLightTheme: PropTypes__default["default"].bool
3883
3912
  };
3884
3913
  AuthorWithTime.defaultProps = {
3885
3914
  separator: "dot",
@@ -3924,22 +3953,22 @@ var SectionTag = function SectionTag(_ref) {
3924
3953
  }
3925
3954
 
3926
3955
  if (!isSection) return null;
3927
- return /*#__PURE__*/React.createElement(Link, {
3956
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3928
3957
  href: getUrl,
3929
3958
  className: "arrow-component arr--section-name",
3930
3959
  "aria-label": "section-name"
3931
- }, /*#__PURE__*/React.createElement("div", {
3960
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3932
3961
  "data-test-id": "sectionTag",
3933
3962
  style: {
3934
3963
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3935
3964
  },
3936
3965
  className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$3)
3937
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
3966
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3938
3967
  className: "section-m_border-left__2oUyp",
3939
3968
  style: {
3940
3969
  color: sectionTagBorderColor
3941
3970
  }
3942
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
3971
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3943
3972
  className: "section-m_border-bottom__3cRoD",
3944
3973
  style: {
3945
3974
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3948,13 +3977,13 @@ var SectionTag = function SectionTag(_ref) {
3948
3977
  };
3949
3978
  SectionTag.propTypes = {
3950
3979
  /** The Story Object from the API response */
3951
- story: PropTypes.object.isRequired,
3980
+ story: PropTypes__default["default"].object.isRequired,
3952
3981
 
3953
3982
  /** The style template for section tag */
3954
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3955
- borderColor: PropTypes.string,
3956
- solidBorderColor: PropTypes.string,
3957
- isLightTheme: PropTypes.bool
3983
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3984
+ borderColor: PropTypes__default["default"].string,
3985
+ solidBorderColor: PropTypes__default["default"].string,
3986
+ isLightTheme: PropTypes__default["default"].bool
3958
3987
  };
3959
3988
  SectionTag.defaultProps = {
3960
3989
  template: "",
@@ -4003,7 +4032,7 @@ var StoryCard = function StoryCard(_ref) {
4003
4032
  prefix = _ref.prefix,
4004
4033
  config = _ref.config,
4005
4034
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4006
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
4035
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4007
4036
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4008
4037
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4009
4038
 
@@ -4013,7 +4042,7 @@ var StoryCard = function StoryCard(_ref) {
4013
4042
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4014
4043
  var textColor = getTextColor(theme);
4015
4044
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4016
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
4045
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4017
4046
  story: story,
4018
4047
  aspectRatio: aspectRatio,
4019
4048
  border: border,
@@ -4027,7 +4056,7 @@ var StoryCard = function StoryCard(_ref) {
4027
4056
  config: config,
4028
4057
  isHorizontalWithImageLast: isHorizontalWithImageLast
4029
4058
  });
4030
- return /*#__PURE__*/React.createElement("div", {
4059
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4031
4060
  "data-test-id": "story-card",
4032
4061
  style: {
4033
4062
  backgroundColor: theme,
@@ -4056,91 +4085,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4056
4085
  var SectionTagborderColor = rgbToHex(borderColor);
4057
4086
  var _config$localizationC = config.localizationConfig,
4058
4087
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4059
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
4088
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4060
4089
  config: config,
4061
4090
  story: story,
4062
4091
  isHorizontal: true,
4063
4092
  isHorizontalMobile: isHorizontalMobile,
4064
4093
  aspectRatio: aspectRatio
4065
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
4094
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4066
4095
  config: config,
4067
4096
  story: story,
4068
4097
  isHorizontalWithImageLast: true,
4069
4098
  isHorizontalMobile: isHorizontalMobile,
4070
4099
  aspectRatio: aspectRatio
4071
- }) : /*#__PURE__*/React.createElement(HeroImage, {
4100
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4072
4101
  story: story,
4073
4102
  config: config,
4074
4103
  isHorizontalMobile: isHorizontalMobile,
4075
4104
  aspectRatio: aspectRatio
4076
- }), /*#__PURE__*/React.createElement("div", {
4105
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4077
4106
  className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$2)
4078
- }, /*#__PURE__*/React.createElement(SectionTag, {
4107
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4079
4108
  story: story,
4080
4109
  borderColor: SectionTagborderColor
4081
- }), /*#__PURE__*/React.createElement(Headline, {
4110
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4082
4111
  story: story,
4083
4112
  headerLevel: headerLevel,
4084
4113
  premiumStoryIconConfig: config
4085
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
4114
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4086
4115
  config: localizationConfig,
4087
4116
  story: story,
4088
4117
  isBottom: true,
4089
4118
  prefix: prefix,
4090
4119
  hideAuthorImage: hideAuthorImage
4091
- }), /*#__PURE__*/React.createElement(Subheadline, {
4120
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4092
4121
  story: story
4093
4122
  })));
4094
4123
  };
4095
4124
 
4096
4125
  DefaultStoryCard.propTypes = {
4097
- story: PropTypes.object.isRequired,
4098
- border: PropTypes.oneOfType([PropTypes.string]),
4099
- isBottom: PropTypes.bool,
4100
- isHorizontal: PropTypes.bool,
4101
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4102
- isHorizontalMobile: PropTypes.bool,
4103
- centerAlign: PropTypes.bool,
4104
- headerLevel: PropTypes.string,
4105
- borderColor: PropTypes.string,
4106
- hideAuthorImage: PropTypes.bool,
4107
- prefix: PropTypes.string,
4108
- config: PropTypes.object,
4109
- isHorizontalWithImageLast: PropTypes.bool
4126
+ story: PropTypes__default["default"].object.isRequired,
4127
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4128
+ isBottom: PropTypes__default["default"].bool,
4129
+ isHorizontal: PropTypes__default["default"].bool,
4130
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4131
+ isHorizontalMobile: PropTypes__default["default"].bool,
4132
+ centerAlign: PropTypes__default["default"].bool,
4133
+ headerLevel: PropTypes__default["default"].string,
4134
+ borderColor: PropTypes__default["default"].string,
4135
+ hideAuthorImage: PropTypes__default["default"].bool,
4136
+ prefix: PropTypes__default["default"].string,
4137
+ config: PropTypes__default["default"].object,
4138
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4110
4139
  };
4111
4140
  StoryCard.propTypes = {
4112
4141
  /** The Story Object from the API response */
4113
- story: PropTypes.object.isRequired,
4114
- children: PropTypes.node,
4142
+ story: PropTypes__default["default"].object.isRequired,
4143
+ children: PropTypes__default["default"].node,
4115
4144
 
4116
4145
  /** Flip the Story Card to Horizonal mode */
4117
- isHorizontal: PropTypes.bool,
4146
+ isHorizontal: PropTypes__default["default"].bool,
4118
4147
 
4119
4148
  /** Add border to the Story Card */
4120
- border: PropTypes.oneOfType([PropTypes.string]),
4149
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4121
4150
  // story card with background image
4122
- useImageAsBackground: PropTypes.bool,
4151
+ useImageAsBackground: PropTypes__default["default"].bool,
4123
4152
  // story card content overlap with image
4124
- bgImgContentOverlap: PropTypes.bool,
4153
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4125
4154
 
4126
4155
  /** add aspect ratio for hero image */
4127
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4156
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4128
4157
 
4129
4158
  /** add theme(dark /light/custom color) for storycard */
4130
- theme: PropTypes.string,
4159
+ theme: PropTypes__default["default"].string,
4131
4160
 
4132
4161
  /** flip the story card mobile design horizontal */
4133
- isHorizontalMobile: PropTypes.bool,
4162
+ isHorizontalMobile: PropTypes__default["default"].bool,
4134
4163
  // make content center align in desktop and left align in mobile
4135
- centerAlign: PropTypes.bool,
4136
- headerLevel: PropTypes.string,
4137
- borderColor: PropTypes.string,
4164
+ centerAlign: PropTypes__default["default"].bool,
4165
+ headerLevel: PropTypes__default["default"].string,
4166
+ borderColor: PropTypes__default["default"].string,
4138
4167
  // handle author image through storycard
4139
- hideAuthorImage: PropTypes.bool,
4168
+ hideAuthorImage: PropTypes__default["default"].bool,
4140
4169
  // handle author prefix through storycard
4141
- prefix: PropTypes.string,
4142
- config: PropTypes.object,
4143
- isHorizontalWithImageLast: PropTypes.bool
4170
+ prefix: PropTypes__default["default"].string,
4171
+ config: PropTypes__default["default"].object,
4172
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4144
4173
  };
4145
4174
  StoryCard.defaultProps = {
4146
4175
  isHorizontal: false,
@@ -4199,26 +4228,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4199
4228
  if (!showButton) return null;
4200
4229
  var textColor = getTextColor(theme);
4201
4230
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4202
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
4231
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4203
4232
  onClick: onClick,
4204
4233
  "data-test-id": "load-more",
4205
4234
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4206
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
4235
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4207
4236
  href: slug,
4208
4237
  navigateTo: navigate,
4209
4238
  "data-test-id": "load-more",
4210
4239
  "aria-label": "load-more"
4211
- }, /*#__PURE__*/React.createElement("div", {
4240
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4212
4241
  className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4213
4242
  }, buttonText));
4214
4243
  };
4215
4244
  LoadmoreButton.propTypes = {
4216
- collection: PropTypes.object,
4217
- template: PropTypes.string,
4218
- config: PropTypes.object,
4219
- onClick: PropTypes.func,
4220
- navigate: PropTypes.func,
4221
- qtConfig: PropTypes.object
4245
+ collection: PropTypes__default["default"].object,
4246
+ template: PropTypes__default["default"].string,
4247
+ config: PropTypes__default["default"].object,
4248
+ onClick: PropTypes__default["default"].func,
4249
+ navigate: PropTypes__default["default"].func,
4250
+ qtConfig: PropTypes__default["default"].object
4222
4251
  };
4223
4252
 
4224
4253
  var isClient = typeof window !== "undefined";
@@ -4230,7 +4259,7 @@ var hasIntersectionObserverSupport = function hasIntersectionObserverSupport() {
4230
4259
 
4231
4260
 
4232
4261
  var getIntersectionObserver = function getIntersectionObserver() {
4233
- return Promise.resolve(isClient && !hasIntersectionObserverSupport() && import('intersection-observer'));
4262
+ return Promise.resolve(isClient && !hasIntersectionObserverSupport() && Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('intersection-observer')); }));
4234
4263
  }; // options for intersection observer in order to improve the effect
4235
4264
 
4236
4265
 
@@ -4263,12 +4292,12 @@ var getObserver = function getObserver() {
4263
4292
  var useNearScreen = (function (_ref) {
4264
4293
  var ref = _ref.ref;
4265
4294
 
4266
- var _useState = useState(false),
4295
+ var _useState = React.useState(false),
4267
4296
  _useState2 = _slicedToArray(_useState, 2),
4268
4297
  show = _useState2[0],
4269
4298
  setShow = _useState2[1];
4270
4299
 
4271
- useEffect(function () {
4300
+ React.useEffect(function () {
4272
4301
  var current = ref.current;
4273
4302
  if (!current) return; // get observer async and only when needed
4274
4303
 
@@ -4295,36 +4324,36 @@ var EMPTY_HTML = {
4295
4324
  var isServer = typeof window === "undefined";
4296
4325
  var ProgressiveHydration = function ProgressiveHydration(props) {
4297
4326
  var children = props.children;
4298
- var ref = useRef(null);
4327
+ var ref = React.useRef(null);
4299
4328
  var isNearScreen = useNearScreen({
4300
4329
  ref: ref
4301
4330
  });
4302
- useEffect(function () {
4331
+ React.useEffect(function () {
4303
4332
  var el = ref.current; // CLIENT:
4304
4333
  // If we want to force the hydration OR the element is near screen
4305
4334
  // then we hydrate the content to get the functionality ready
4306
4335
 
4307
4336
  if (isNearScreen) {
4308
4337
  var action = el.hasChildNodes() ? "hydrate" : "render";
4309
- ReactDOM[action](children, el);
4338
+ ReactDOM__default["default"][action](children, el);
4310
4339
  }
4311
4340
  }, [children, isNearScreen]); // SERVER: Just render the content as usual
4312
4341
 
4313
4342
  if (isServer) {
4314
- return /*#__PURE__*/React.createElement("div", {
4343
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4315
4344
  ref: ref
4316
4345
  }, children);
4317
4346
  } // CLIENT: Avoid hydration until we say so
4318
4347
 
4319
4348
 
4320
- return /*#__PURE__*/React.createElement("div", {
4349
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4321
4350
  ref: ref,
4322
4351
  suppressHydrationWarning: true,
4323
4352
  dangerouslySetInnerHTML: EMPTY_HTML
4324
4353
  });
4325
4354
  };
4326
4355
  ProgressiveHydration.propTypes = {
4327
- children: PropTypes.element
4356
+ children: PropTypes__default["default"].element
4328
4357
  };
4329
4358
 
4330
4359
  var LoadMoreTarget = function LoadMoreTarget(_ref) {
@@ -4332,7 +4361,7 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4332
4361
  componentName = _ref.componentName,
4333
4362
  offset = _ref.offset,
4334
4363
  limit = _ref.limit;
4335
- return /*#__PURE__*/React.createElement("div", {
4364
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4336
4365
  id: "ELM-".concat(collection.id),
4337
4366
  "data-collection-slug": collection["slug"],
4338
4367
  "data-component-name": componentName,
@@ -4341,13 +4370,13 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4341
4370
  });
4342
4371
  };
4343
4372
  LoadMoreTarget.propTypes = {
4344
- collection: PropTypes.shape({
4345
- id: PropTypes.string,
4346
- slug: PropTypes.string
4373
+ collection: PropTypes__default["default"].shape({
4374
+ id: PropTypes__default["default"].string,
4375
+ slug: PropTypes__default["default"].string
4347
4376
  }),
4348
- componentName: PropTypes.string,
4349
- offset: PropTypes.number,
4350
- limit: PropTypes.number
4377
+ componentName: PropTypes__default["default"].string,
4378
+ offset: PropTypes__default["default"].number,
4379
+ limit: PropTypes__default["default"].number
4351
4380
  };
4352
4381
 
4353
4382
  var _styleModuleImportMap = {
@@ -4386,7 +4415,7 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
4386
4415
  isLoadMoreVisible = _ref2.isLoadMoreVisible,
4387
4416
  isLoading = _ref2.isLoading,
4388
4417
  isolatedLoadMore = _ref2.isolatedLoadMore;
4389
- var stories = collectionToStories(collection);
4418
+ var stories = components.collectionToStories(collection);
4390
4419
  if (!stories.length) return null;
4391
4420
  var _config$collectionNam = config.collectionNameBorderColor,
4392
4421
  collectionNameBorderColor = _config$collectionNam === void 0 ? "" : _config$collectionNam,
@@ -4406,8 +4435,8 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
4406
4435
  subsequentLoadCount = _config$subsequentLoa === void 0 ? 6 : _config$subsequentLoa;
4407
4436
  var textColor = getTextColor(theme);
4408
4437
  var borderStyle = border === "fullBorder" ? "vertical-border" : "";
4409
- var dispatch = useDispatch();
4410
- var qtConfig = useSelector(function (state) {
4438
+ var dispatch = reactRedux.useDispatch();
4439
+ var qtConfig = reactRedux.useSelector(function (state) {
4411
4440
  return get_1(state, ["qt", "config"], {});
4412
4441
  });
4413
4442
 
@@ -4415,7 +4444,7 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
4415
4444
  if (!isLoadMoreVisible) return null;
4416
4445
 
4417
4446
  if (isolatedLoadMore) {
4418
- return /*#__PURE__*/React.createElement(LoadMoreTarget, {
4447
+ return /*#__PURE__*/React__default["default"].createElement(LoadMoreTarget, {
4419
4448
  collection: collection,
4420
4449
  componentName: "SixColSixStories",
4421
4450
  offset: stories.length,
@@ -4424,7 +4453,7 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
4424
4453
  }
4425
4454
 
4426
4455
  var url = generateNavigateSlug(collection, qtConfig);
4427
- return /*#__PURE__*/React.createElement(ProgressiveHydration, null, /*#__PURE__*/React.createElement(LoadmoreButton, {
4456
+ return /*#__PURE__*/React__default["default"].createElement(ProgressiveHydration, null, /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4428
4457
  config: config,
4429
4458
  collection: collection,
4430
4459
  template: footerButton,
@@ -4438,43 +4467,43 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
4438
4467
  }));
4439
4468
  };
4440
4469
 
4441
- return /*#__PURE__*/React.createElement("div", {
4470
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4442
4471
  className: "full-width-with-padding arrow-component",
4443
4472
  "data-test-id": "six-col-six-stories",
4444
4473
  style: {
4445
4474
  backgroundColor: theme,
4446
4475
  color: textColor
4447
4476
  }
4448
- }, /*#__PURE__*/React.createElement("div", {
4477
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4449
4478
  className: "six-col-six-stories-m_wrapper__2k2bf"
4450
- }, /*#__PURE__*/React.createElement(CollectionName, {
4479
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4451
4480
  collection: collection,
4452
4481
  collectionNameTemplate: collectionNameTemplate,
4453
4482
  collectionNameBorderColor: collectionNameBorderColor,
4454
4483
  headerLevel: "2"
4455
- }), /*#__PURE__*/React.createElement("div", {
4484
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4456
4485
  className: "six-col-six-stories-m_row-wrapper__2YNUO"
4457
4486
  }, stories.map(function (story, index) {
4458
- return /*#__PURE__*/React.createElement("div", {
4487
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4459
4488
  key: "six-col-six-stories-".concat(index),
4460
4489
  className: _getClassName("card-wrapper ".concat(borderStyle, " ").concat(textColor), _styleModuleImportMap)
4461
- }, /*#__PURE__*/React.createElement(StoryCard, {
4490
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4462
4491
  story: story,
4463
4492
  theme: theme,
4464
4493
  config: config
4465
- }, /*#__PURE__*/React.createElement(HeroImage, {
4494
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4466
4495
  story: story,
4467
4496
  aspectRatio: [[16, 9], [16, 9]]
4468
- }), /*#__PURE__*/React.createElement("div", {
4497
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4469
4498
  className: "six-col-six-stories-m_content-wrapper__3n5nT"
4470
- }, /*#__PURE__*/React.createElement(SectionTag, {
4499
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4471
4500
  story: story,
4472
4501
  borderColor: borderColor
4473
- }), /*#__PURE__*/React.createElement(Headline, {
4502
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4474
4503
  story: story,
4475
4504
  headerLevel: "6",
4476
4505
  premiumStoryIconConfig: config
4477
- })), /*#__PURE__*/React.createElement(AuthorWithTime, {
4506
+ })), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4478
4507
  config: localizationConfig,
4479
4508
  story: story
4480
4509
  })));
@@ -4487,23 +4516,23 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
4487
4516
  };
4488
4517
  SixColSixStoriesBase.propTypes = {
4489
4518
  /** collection is the array of objects which is returning by API */
4490
- collection: PropTypes.object.isRequired,
4519
+ collection: PropTypes__default["default"].object.isRequired,
4491
4520
 
4492
4521
  /** The config for the Row */
4493
- config: PropTypes.shape({
4494
- borderColor: PropTypes.string,
4495
- theme: PropTypes.string,
4496
- border: PropTypes.string,
4497
- slotConfig: PropTypes.array,
4498
- footerButton: PropTypes.string,
4499
- collectionNameTemplate: PropTypes.string,
4500
- collectionNameBorderColor: PropTypes.string,
4501
- subsequentLoadCount: PropTypes.number
4522
+ config: PropTypes__default["default"].shape({
4523
+ borderColor: PropTypes__default["default"].string,
4524
+ theme: PropTypes__default["default"].string,
4525
+ border: PropTypes__default["default"].string,
4526
+ slotConfig: PropTypes__default["default"].array,
4527
+ footerButton: PropTypes__default["default"].string,
4528
+ collectionNameTemplate: PropTypes__default["default"].string,
4529
+ collectionNameBorderColor: PropTypes__default["default"].string,
4530
+ subsequentLoadCount: PropTypes__default["default"].number
4502
4531
  }),
4503
- getMoreStories: PropTypes.func,
4504
- isLoadMoreVisible: PropTypes.bool,
4505
- isLoading: PropTypes.bool,
4506
- isolatedLoadMore: PropTypes.bool
4532
+ getMoreStories: PropTypes__default["default"].func,
4533
+ isLoadMoreVisible: PropTypes__default["default"].bool,
4534
+ isLoading: PropTypes__default["default"].bool,
4535
+ isolatedLoadMore: PropTypes__default["default"].bool
4507
4536
  };
4508
4537
  SixColSixStoriesBase.defaultProps = {
4509
4538
  getMoreStories: function getMoreStories() {},
@@ -4512,4 +4541,5 @@ SixColSixStoriesBase.defaultProps = {
4512
4541
  };
4513
4542
  var SixColSixStories = StateProvider(SixColSixStoriesBase);
4514
4543
 
4515
- export { SixColSixStories, SixColSixStoriesBase };
4544
+ exports.SixColSixStories = SixColSixStories;
4545
+ exports.SixColSixStoriesBase = SixColSixStoriesBase;