@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.
- package/atoms/Author/index.js +38 -29
- package/atoms/AuthorWithTime/index.js +83 -73
- package/atoms/CollectionName/index.js +40 -30
- package/atoms/ExtendedLoadMore/{index-d0f6c865.js → index-3976fac4.js} +59 -51
- package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
- package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
- package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
- package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
- package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
- package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
- package/atoms/ExtendedLoadMore/index.js +13 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +85 -76
- package/atoms/HeroImage/index.js +69 -60
- package/atoms/LoadmoreButton/index.js +32 -23
- package/atoms/ScrollSnap/index.js +72 -63
- package/atoms/SectionTag/index.js +34 -25
- package/atoms/Subheadline/index.js +31 -22
- package/atoms/TimeStamp/index.js +34 -24
- package/molecules/KeyEvents/index.js +72 -61
- package/molecules/PageIntroductionCard/index.js +43 -34
- package/molecules/SocialShareTemplate/index.js +97 -88
- package/molecules/StoryCard/index.js +242 -232
- package/molecules/StoryElementCard/index.js +512 -483
- package/molecules/StorycardContent/index.js +172 -162
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +345 -333
- package/rows/AsideCollection/index.js +340 -328
- package/rows/AstrologyCollection/index.js +321 -309
- package/rows/AuthorIntroductionCard/index.js +157 -148
- package/rows/AuthorsList/index.js +184 -174
- package/rows/CollectionFilter/index.js +361 -349
- package/rows/ElevenStories/index.js +357 -346
- package/rows/FourColFiveStories/index.js +304 -274
- package/rows/FourColGrid/index.js +351 -321
- package/rows/FourColPortraitStories/index.js +357 -327
- package/rows/FourColSixteenStories/index.js +288 -277
- package/rows/FourColTwelveStories/index.js +315 -304
- package/rows/FourStorySlider/index.js +358 -347
- package/rows/FourStorySliderPortrait/index.js +359 -348
- package/rows/FourTabbedBigStorySlider/index.js +322 -311
- package/rows/FullScreenSlider/index.js +336 -325
- package/rows/HalfScreenSlider/index.js +308 -297
- package/rows/ListComponent/index.js +322 -311
- package/rows/Listicles/index.js +150 -139
- package/rows/MagazineEditions/index.js +104 -93
- package/rows/MagazineHeaderCard/index.js +104 -93
- package/rows/MagazineWidget/index.js +326 -315
- package/rows/OneColStoryList/index.js +365 -335
- package/rows/OpinionCollection/index.js +250 -220
- package/rows/SixColSixStories/index.js +333 -303
- package/rows/StoryCollection/index.js +340 -328
- package/rows/TagIntroductionCard/index.js +30 -21
- package/rows/ThreeColFlexStories/index.js +348 -318
- package/rows/ThreeColFourteenStories/index.js +285 -274
- package/rows/ThreeColGrid/index.js +352 -322
- package/rows/ThreeColSevenStory/index.js +322 -311
- package/rows/ThreeColSixStories/index.js +323 -312
- package/rows/ThreeColTwelveStories/index.js +302 -291
- package/rows/TwoColFourStories/index.js +316 -305
- package/rows/TwoColFourStoryHighlight/index.js +317 -306
- package/rows/TwoColSevenStories/index.js +322 -311
- package/rows/TwoColSixStories/index.js +316 -305
- package/rows/TwoColTenStoriesSidebar/index.js +338 -327
- package/rows/TwoColThreeStories/index.js +316 -305
- package/story-elements/AlsoRead/index.js +70 -61
- package/story-elements/Attachment/index.js +40 -31
- package/story-elements/BigFact/index.js +35 -26
- package/story-elements/BlockQuote/index.js +61 -51
- package/story-elements/Blurb/index.js +36 -27
- package/story-elements/Image/index.js +113 -86
- package/story-elements/ImageGallery/index.js +98 -71
- package/story-elements/ImageSlideshow/index.js +147 -120
- package/story-elements/QuestionAnswer/index.js +55 -46
- package/story-elements/Quote/index.js +37 -28
- package/story-elements/Reference/index.js +40 -31
- package/story-elements/StoryElement/index.js +28 -19
- package/story-elements/Summary/index.js +40 -31
- package/story-elements/Text/index.js +34 -25
- package/story-elements/Video/index.js +29 -20
- package/story-templates/ListicleStoryTemplate/index.js +937 -908
- package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
- package/story-templates/PhotoStoryTemplate/index.js +912 -883
- package/story-templates/TextStoryTemplate/index.js +931 -902
- package/story-templates/VideoStoryTemplate/index.js +897 -868
- package/atoms/ExtendedLoadMore/index-81eb3978.js +0 -86
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var components = require('@quintype/components');
|
|
8
|
+
var Timeago = require('react-timeago');
|
|
9
|
+
var dateFnsTz = require('date-fns-tz');
|
|
10
|
+
var reactRedux = require('react-redux');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
16
|
+
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
7
17
|
|
|
8
18
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
19
|
|
|
@@ -1344,21 +1354,21 @@ function get(object, path, defaultValue) {
|
|
|
1344
1354
|
|
|
1345
1355
|
var get_1 = get;
|
|
1346
1356
|
|
|
1347
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
1357
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
1348
1358
|
|
|
1349
1359
|
var StateProvider = function StateProvider(RowComponent) {
|
|
1350
1360
|
return function (props) {
|
|
1351
1361
|
return (
|
|
1352
1362
|
/*#__PURE__*/
|
|
1353
1363
|
// eslint-disable-next-line react/prop-types
|
|
1354
|
-
|
|
1364
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
1355
1365
|
value: props.config
|
|
1356
|
-
}, /*#__PURE__*/
|
|
1366
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
1357
1367
|
);
|
|
1358
1368
|
};
|
|
1359
1369
|
};
|
|
1360
1370
|
var useStateValue = function useStateValue() {
|
|
1361
|
-
return useContext(StateContext);
|
|
1371
|
+
return React.useContext(StateContext);
|
|
1362
1372
|
};
|
|
1363
1373
|
|
|
1364
1374
|
function _typeof(obj) {
|
|
@@ -2687,15 +2697,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
2687
2697
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2688
2698
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2689
2699
|
};
|
|
2690
|
-
|
|
2691
|
-
"sketches-host":
|
|
2692
|
-
"cdn-name":
|
|
2693
|
-
"cdn-image":
|
|
2700
|
+
PropTypes__default["default"].shape({
|
|
2701
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
2702
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
2703
|
+
"cdn-image": PropTypes__default["default"].string
|
|
2694
2704
|
});
|
|
2695
|
-
|
|
2696
|
-
headline:
|
|
2697
|
-
"last-published-at":
|
|
2698
|
-
subheadline:
|
|
2705
|
+
PropTypes__default["default"].shape({
|
|
2706
|
+
headline: PropTypes__default["default"].string,
|
|
2707
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
2708
|
+
subheadline: PropTypes__default["default"].string
|
|
2699
2709
|
});
|
|
2700
2710
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2701
2711
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -2739,17 +2749,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
2739
2749
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
2740
2750
|
|
|
2741
2751
|
if (timezone && template === "story") {
|
|
2742
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
2743
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2752
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
2753
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2744
2754
|
timeZone: timezone
|
|
2745
2755
|
});
|
|
2746
2756
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
2747
|
-
return /*#__PURE__*/
|
|
2757
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
2748
2758
|
dateTime: formatZonedTime
|
|
2749
2759
|
}, timeStamp);
|
|
2750
2760
|
}
|
|
2751
2761
|
|
|
2752
|
-
return /*#__PURE__*/
|
|
2762
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
2753
2763
|
date: date,
|
|
2754
2764
|
formatter: function formatter(value, unit, suffix, date) {
|
|
2755
2765
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -2763,7 +2773,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
2763
2773
|
_ref$color = _ref.color,
|
|
2764
2774
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
2765
2775
|
positionTop = _ref.positionTop;
|
|
2766
|
-
return /*#__PURE__*/
|
|
2776
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2767
2777
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2768
2778
|
width: width,
|
|
2769
2779
|
height: height,
|
|
@@ -2772,28 +2782,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
2772
2782
|
position: "relative",
|
|
2773
2783
|
top: positionTop
|
|
2774
2784
|
}
|
|
2775
|
-
}, /*#__PURE__*/
|
|
2785
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2776
2786
|
fill: "none",
|
|
2777
2787
|
fillRule: "evenodd",
|
|
2778
2788
|
stroke: "none",
|
|
2779
2789
|
strokeWidth: "1"
|
|
2780
|
-
}, /*#__PURE__*/
|
|
2790
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2781
2791
|
transform: "translate(8 8)"
|
|
2782
|
-
}, /*#__PURE__*/
|
|
2792
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2783
2793
|
d: "M0 0H24V24H0z"
|
|
2784
|
-
}), /*#__PURE__*/
|
|
2794
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2785
2795
|
fill: color,
|
|
2786
2796
|
fillRule: "nonzero",
|
|
2787
2797
|
transform: "translate(0 2)"
|
|
2788
|
-
}, /*#__PURE__*/
|
|
2798
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2789
2799
|
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"
|
|
2790
2800
|
}))))));
|
|
2791
2801
|
};
|
|
2792
2802
|
CrownIcon.propTypes = {
|
|
2793
|
-
height:
|
|
2794
|
-
width:
|
|
2795
|
-
color:
|
|
2796
|
-
positionTop:
|
|
2803
|
+
height: PropTypes__default["default"].string,
|
|
2804
|
+
width: PropTypes__default["default"].string,
|
|
2805
|
+
color: PropTypes__default["default"].string,
|
|
2806
|
+
positionTop: PropTypes__default["default"].string
|
|
2797
2807
|
};
|
|
2798
2808
|
|
|
2799
2809
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -2802,7 +2812,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
2802
2812
|
_ref$color = _ref.color,
|
|
2803
2813
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
2804
2814
|
positionTop = _ref.positionTop;
|
|
2805
|
-
return /*#__PURE__*/
|
|
2815
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2806
2816
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2807
2817
|
width: width,
|
|
2808
2818
|
height: height,
|
|
@@ -2811,16 +2821,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
2811
2821
|
position: "relative",
|
|
2812
2822
|
top: positionTop
|
|
2813
2823
|
}
|
|
2814
|
-
}, /*#__PURE__*/
|
|
2824
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2815
2825
|
fill: "none",
|
|
2816
2826
|
fillRule: "evenodd",
|
|
2817
2827
|
stroke: "none",
|
|
2818
2828
|
strokeWidth: "1"
|
|
2819
|
-
}, /*#__PURE__*/
|
|
2829
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2820
2830
|
transform: "translate(8 8)"
|
|
2821
|
-
}, /*#__PURE__*/
|
|
2831
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2822
2832
|
d: "M0 0H24V24H0z"
|
|
2823
|
-
}), /*#__PURE__*/
|
|
2833
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2824
2834
|
fill: color,
|
|
2825
2835
|
fillRule: "nonzero",
|
|
2826
2836
|
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",
|
|
@@ -2828,10 +2838,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
2828
2838
|
})))));
|
|
2829
2839
|
};
|
|
2830
2840
|
KeyIcon.propTypes = {
|
|
2831
|
-
height:
|
|
2832
|
-
width:
|
|
2833
|
-
color:
|
|
2834
|
-
positionTop:
|
|
2841
|
+
height: PropTypes__default["default"].string,
|
|
2842
|
+
width: PropTypes__default["default"].string,
|
|
2843
|
+
color: PropTypes__default["default"].string,
|
|
2844
|
+
positionTop: PropTypes__default["default"].string
|
|
2835
2845
|
};
|
|
2836
2846
|
|
|
2837
2847
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -2840,7 +2850,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
2840
2850
|
_ref$color = _ref.color,
|
|
2841
2851
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
2842
2852
|
positionTop = _ref.positionTop;
|
|
2843
|
-
return /*#__PURE__*/
|
|
2853
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2844
2854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2845
2855
|
width: width,
|
|
2846
2856
|
height: height,
|
|
@@ -2849,28 +2859,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
2849
2859
|
position: "relative",
|
|
2850
2860
|
top: positionTop
|
|
2851
2861
|
}
|
|
2852
|
-
}, /*#__PURE__*/
|
|
2862
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2853
2863
|
fill: "none",
|
|
2854
2864
|
fillRule: "evenodd",
|
|
2855
2865
|
stroke: "none",
|
|
2856
2866
|
strokeWidth: "1"
|
|
2857
|
-
}, /*#__PURE__*/
|
|
2867
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2858
2868
|
transform: "translate(8 8)"
|
|
2859
|
-
}, /*#__PURE__*/
|
|
2869
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2860
2870
|
d: "M0 0H24V24H0z"
|
|
2861
|
-
}), /*#__PURE__*/
|
|
2871
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2862
2872
|
fill: color,
|
|
2863
2873
|
fillRule: "nonzero",
|
|
2864
2874
|
transform: "translate(3)"
|
|
2865
|
-
}, /*#__PURE__*/
|
|
2875
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2866
2876
|
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"
|
|
2867
2877
|
}))))));
|
|
2868
2878
|
};
|
|
2869
2879
|
LockIcon.propTypes = {
|
|
2870
|
-
height:
|
|
2871
|
-
width:
|
|
2872
|
-
color:
|
|
2873
|
-
positionTop:
|
|
2880
|
+
height: PropTypes__default["default"].string,
|
|
2881
|
+
width: PropTypes__default["default"].string,
|
|
2882
|
+
color: PropTypes__default["default"].string,
|
|
2883
|
+
positionTop: PropTypes__default["default"].string
|
|
2874
2884
|
};
|
|
2875
2885
|
|
|
2876
2886
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -2880,7 +2890,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
2880
2890
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
2881
2891
|
_ref$positionTop = _ref.positionTop,
|
|
2882
2892
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
2883
|
-
return /*#__PURE__*/
|
|
2893
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2884
2894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2885
2895
|
width: width,
|
|
2886
2896
|
height: height,
|
|
@@ -2889,21 +2899,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
2889
2899
|
position: "relative",
|
|
2890
2900
|
top: positionTop
|
|
2891
2901
|
}
|
|
2892
|
-
}, /*#__PURE__*/
|
|
2902
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2893
2903
|
fill: "none",
|
|
2894
2904
|
fillRule: "evenodd",
|
|
2895
2905
|
stroke: "none",
|
|
2896
2906
|
strokeWidth: "1"
|
|
2897
|
-
}, /*#__PURE__*/
|
|
2907
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2898
2908
|
fill: color,
|
|
2899
2909
|
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"
|
|
2900
2910
|
}))));
|
|
2901
2911
|
};
|
|
2902
2912
|
StarIcon.propTypes = {
|
|
2903
|
-
height:
|
|
2904
|
-
width:
|
|
2905
|
-
color:
|
|
2906
|
-
positionTop:
|
|
2913
|
+
height: PropTypes__default["default"].string,
|
|
2914
|
+
width: PropTypes__default["default"].string,
|
|
2915
|
+
color: PropTypes__default["default"].string,
|
|
2916
|
+
positionTop: PropTypes__default["default"].string
|
|
2907
2917
|
};
|
|
2908
2918
|
|
|
2909
2919
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -2915,7 +2925,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2915
2925
|
|
|
2916
2926
|
switch (iconType) {
|
|
2917
2927
|
case "crown":
|
|
2918
|
-
return /*#__PURE__*/
|
|
2928
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
2919
2929
|
width: width,
|
|
2920
2930
|
height: height,
|
|
2921
2931
|
color: color,
|
|
@@ -2923,7 +2933,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2923
2933
|
});
|
|
2924
2934
|
|
|
2925
2935
|
case "lock":
|
|
2926
|
-
return /*#__PURE__*/
|
|
2936
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
2927
2937
|
width: width,
|
|
2928
2938
|
height: height,
|
|
2929
2939
|
color: color,
|
|
@@ -2931,7 +2941,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2931
2941
|
});
|
|
2932
2942
|
|
|
2933
2943
|
case "key":
|
|
2934
|
-
return /*#__PURE__*/
|
|
2944
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
2935
2945
|
width: width,
|
|
2936
2946
|
height: height,
|
|
2937
2947
|
color: color,
|
|
@@ -2939,7 +2949,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2939
2949
|
});
|
|
2940
2950
|
|
|
2941
2951
|
default:
|
|
2942
|
-
return /*#__PURE__*/
|
|
2952
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
2943
2953
|
width: width,
|
|
2944
2954
|
height: height,
|
|
2945
2955
|
color: color,
|
|
@@ -2948,21 +2958,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2948
2958
|
}
|
|
2949
2959
|
};
|
|
2950
2960
|
PremiumStoryIcon.propTypes = {
|
|
2951
|
-
width:
|
|
2952
|
-
height:
|
|
2953
|
-
color:
|
|
2954
|
-
iconType:
|
|
2955
|
-
positionTop:
|
|
2961
|
+
width: PropTypes__default["default"].string,
|
|
2962
|
+
height: PropTypes__default["default"].string,
|
|
2963
|
+
color: PropTypes__default["default"].string,
|
|
2964
|
+
iconType: PropTypes__default["default"].string,
|
|
2965
|
+
positionTop: PropTypes__default["default"].string
|
|
2956
2966
|
};
|
|
2957
2967
|
|
|
2958
2968
|
function LiveIcon() {
|
|
2959
|
-
return /*#__PURE__*/
|
|
2969
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2960
2970
|
className: "live-icon",
|
|
2961
2971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2962
2972
|
width: "25",
|
|
2963
2973
|
height: "24",
|
|
2964
2974
|
viewBox: "0 0 25 24"
|
|
2965
|
-
}, /*#__PURE__*/
|
|
2975
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2966
2976
|
fill: "#ff5858",
|
|
2967
2977
|
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"
|
|
2968
2978
|
}));
|
|
@@ -3019,37 +3029,37 @@ var Headline = function Headline(_ref) {
|
|
|
3019
3029
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
3020
3030
|
var iconSize = "24px";
|
|
3021
3031
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
3022
|
-
return /*#__PURE__*/
|
|
3032
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3023
3033
|
"data-test-id": "headline",
|
|
3024
3034
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
|
|
3025
|
-
}, premiumStory && /*#__PURE__*/
|
|
3035
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3026
3036
|
width: iconSize,
|
|
3027
3037
|
height: iconSize,
|
|
3028
3038
|
color: iconColor,
|
|
3029
3039
|
iconType: iconStyle,
|
|
3030
3040
|
positionTop: positionHeadline()
|
|
3031
|
-
}), isLink ? /*#__PURE__*/
|
|
3041
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3032
3042
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3033
3043
|
externalLink: isExternalStory(story),
|
|
3034
3044
|
"aria-label": "headline"
|
|
3035
|
-
}, /*#__PURE__*/
|
|
3045
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3036
3046
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
|
|
3037
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3047
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3038
3048
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
|
|
3039
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3049
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
3040
3050
|
};
|
|
3041
3051
|
Headline.propTypes = {
|
|
3042
3052
|
/** The Story Object from the API response */
|
|
3043
|
-
story:
|
|
3053
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3044
3054
|
|
|
3045
3055
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
3046
|
-
headerLevel:
|
|
3047
|
-
premiumStoryIconConfig:
|
|
3048
|
-
iconColor:
|
|
3049
|
-
iconType:
|
|
3050
|
-
enablePremiumStoryIcon:
|
|
3056
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3057
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3058
|
+
iconColor: PropTypes__default["default"].string,
|
|
3059
|
+
iconType: PropTypes__default["default"].string,
|
|
3060
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3051
3061
|
}),
|
|
3052
|
-
isLink:
|
|
3062
|
+
isLink: PropTypes__default["default"].bool
|
|
3053
3063
|
};
|
|
3054
3064
|
Headline.defaultProps = {
|
|
3055
3065
|
headerLevel: "6",
|
|
@@ -3076,7 +3086,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3076
3086
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3077
3087
|
if (!subheadline) return null;
|
|
3078
3088
|
var textColor = getTextColor(config.theme);
|
|
3079
|
-
return /*#__PURE__*/
|
|
3089
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3080
3090
|
style: {
|
|
3081
3091
|
WebkitLineClamp: lineClamp
|
|
3082
3092
|
},
|
|
@@ -3086,15 +3096,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3086
3096
|
};
|
|
3087
3097
|
Subheadline.propTypes = {
|
|
3088
3098
|
/** The Story Object from the API response */
|
|
3089
|
-
story:
|
|
3099
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3090
3100
|
// Restricts the number of lines for subheadline.
|
|
3091
|
-
lineClamp:
|
|
3101
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3092
3102
|
|
|
3093
3103
|
/** Number of characters to truncate the subheadline */
|
|
3094
|
-
truncateChars:
|
|
3095
|
-
clazzName:
|
|
3096
|
-
forceShowAtom:
|
|
3097
|
-
showFullContent:
|
|
3104
|
+
truncateChars: PropTypes__default["default"].number,
|
|
3105
|
+
clazzName: PropTypes__default["default"].string,
|
|
3106
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
3107
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3098
3108
|
};
|
|
3099
3109
|
Subheadline.defaultProps = {
|
|
3100
3110
|
forceShowAtom: false,
|
|
@@ -3120,18 +3130,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
3120
3130
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
3121
3131
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
3122
3132
|
var textColor = getTextColor(configState.theme);
|
|
3123
|
-
return /*#__PURE__*/
|
|
3133
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3124
3134
|
"data-test-id": "publish-time",
|
|
3125
3135
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
|
|
3126
|
-
}, /*#__PURE__*/
|
|
3136
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3127
3137
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
3128
3138
|
}, getTimeStamp(time, formatter, config))));
|
|
3129
3139
|
};
|
|
3130
3140
|
TimeStamp.propTypes = {
|
|
3131
3141
|
/** The Story Object from the API response */
|
|
3132
|
-
story:
|
|
3133
|
-
isBottom:
|
|
3134
|
-
config:
|
|
3142
|
+
story: PropTypes__default["default"].object,
|
|
3143
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3144
|
+
config: PropTypes__default["default"].object
|
|
3135
3145
|
};
|
|
3136
3146
|
|
|
3137
3147
|
var _styleModuleImportMap$a = {
|
|
@@ -3174,10 +3184,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3174
3184
|
return null;
|
|
3175
3185
|
}
|
|
3176
3186
|
|
|
3177
|
-
return /*#__PURE__*/
|
|
3187
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3178
3188
|
"data-test-id": "author-image",
|
|
3179
3189
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
|
|
3180
|
-
}, /*#__PURE__*/
|
|
3190
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
3181
3191
|
slug: avatarS3Key,
|
|
3182
3192
|
"aspect-ratio": [1, 1],
|
|
3183
3193
|
defaultWidth: 400,
|
|
@@ -3185,14 +3195,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3185
3195
|
auto: ["format", "compress"]
|
|
3186
3196
|
},
|
|
3187
3197
|
alt: authorName
|
|
3188
|
-
}) : /*#__PURE__*/
|
|
3198
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3189
3199
|
src: avatarUrl
|
|
3190
3200
|
})));
|
|
3191
3201
|
};
|
|
3192
3202
|
|
|
3193
3203
|
var isPrefix = function isPrefix(dir) {
|
|
3194
3204
|
if (prefix) {
|
|
3195
|
-
return /*#__PURE__*/
|
|
3205
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3196
3206
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
|
|
3197
3207
|
}, prefix);
|
|
3198
3208
|
}
|
|
@@ -3200,11 +3210,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3200
3210
|
return !hideAuthorImage && authorImage(dir);
|
|
3201
3211
|
};
|
|
3202
3212
|
|
|
3203
|
-
return /*#__PURE__*/
|
|
3213
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3204
3214
|
href: "".concat(mountAt, "/author/") + slug,
|
|
3205
3215
|
"aria-label": "author-name",
|
|
3206
3216
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
|
|
3207
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
3217
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3208
3218
|
"data-test-id": "author-name",
|
|
3209
3219
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
|
|
3210
3220
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -3216,18 +3226,18 @@ function mapStateToProps$1(state) {
|
|
|
3216
3226
|
};
|
|
3217
3227
|
}
|
|
3218
3228
|
|
|
3219
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
3229
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
3220
3230
|
AuthorBase.propTypes = {
|
|
3221
3231
|
/** The Story Object from the API response */
|
|
3222
|
-
story:
|
|
3232
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3223
3233
|
|
|
3224
3234
|
/** Hide Author Avatar Image */
|
|
3225
|
-
hideAuthorImage:
|
|
3235
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3226
3236
|
// fix Author bottom of the storyCard
|
|
3227
|
-
isBottom:
|
|
3237
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3228
3238
|
// fix prefix before the author name
|
|
3229
|
-
prefix:
|
|
3230
|
-
config:
|
|
3239
|
+
prefix: PropTypes__default["default"].string,
|
|
3240
|
+
config: PropTypes__default["default"].object
|
|
3231
3241
|
};
|
|
3232
3242
|
AuthorBase.defaultProps = {
|
|
3233
3243
|
hideAuthorImage: false,
|
|
@@ -3248,14 +3258,14 @@ var Dot = function Dot(_ref) {
|
|
|
3248
3258
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
3249
3259
|
_ref$color = _ref.color,
|
|
3250
3260
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3251
|
-
return /*#__PURE__*/
|
|
3261
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3252
3262
|
className: _getClassName(color, _styleModuleImportMap$9)
|
|
3253
|
-
}, /*#__PURE__*/
|
|
3263
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3254
3264
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3255
3265
|
width: width,
|
|
3256
3266
|
height: height,
|
|
3257
3267
|
viewBox: "0 0 3 3"
|
|
3258
|
-
}, /*#__PURE__*/
|
|
3268
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
3259
3269
|
cx: "87",
|
|
3260
3270
|
cy: "9",
|
|
3261
3271
|
r: "1",
|
|
@@ -3266,9 +3276,9 @@ var Dot = function Dot(_ref) {
|
|
|
3266
3276
|
};
|
|
3267
3277
|
Dot.propTypes = {
|
|
3268
3278
|
/** height , width and color of the dot icon */
|
|
3269
|
-
color:
|
|
3270
|
-
width:
|
|
3271
|
-
height:
|
|
3279
|
+
color: PropTypes__default["default"].string,
|
|
3280
|
+
width: PropTypes__default["default"].string,
|
|
3281
|
+
height: PropTypes__default["default"].string
|
|
3272
3282
|
};
|
|
3273
3283
|
|
|
3274
3284
|
var _styleModuleImportMap$8 = {
|
|
@@ -3284,22 +3294,22 @@ var Divider = function Divider(_ref) {
|
|
|
3284
3294
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
3285
3295
|
_ref$color = _ref.color,
|
|
3286
3296
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3287
|
-
return /*#__PURE__*/
|
|
3297
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3288
3298
|
className: _getClassName(color, _styleModuleImportMap$8)
|
|
3289
|
-
}, /*#__PURE__*/
|
|
3299
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3290
3300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3291
3301
|
width: width,
|
|
3292
3302
|
height: height
|
|
3293
|
-
}, /*#__PURE__*/
|
|
3303
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3294
3304
|
fill: "inherit",
|
|
3295
3305
|
d: "M0 0h1v10H0z"
|
|
3296
3306
|
})));
|
|
3297
3307
|
};
|
|
3298
3308
|
Divider.propTypes = {
|
|
3299
3309
|
/** height , width and color of the dot icon */
|
|
3300
|
-
color:
|
|
3301
|
-
width:
|
|
3302
|
-
height:
|
|
3310
|
+
color: PropTypes__default["default"].string,
|
|
3311
|
+
width: PropTypes__default["default"].string,
|
|
3312
|
+
height: PropTypes__default["default"].string
|
|
3303
3313
|
};
|
|
3304
3314
|
|
|
3305
3315
|
var _styleModuleImportMap$7 = {
|
|
@@ -3322,23 +3332,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
3322
3332
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
3323
3333
|
if (!showReadTime || !readTime) return null;
|
|
3324
3334
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
3325
|
-
return /*#__PURE__*/
|
|
3335
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3326
3336
|
"data-test-id": "read-time",
|
|
3327
3337
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
|
|
3328
|
-
}, /*#__PURE__*/
|
|
3338
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3329
3339
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
3330
|
-
}, /*#__PURE__*/
|
|
3340
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3331
3341
|
color: textColor
|
|
3332
|
-
})), /*#__PURE__*/
|
|
3342
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
3333
3343
|
};
|
|
3334
3344
|
ReadTime.propTypes = {
|
|
3335
|
-
story:
|
|
3336
|
-
"read-time":
|
|
3345
|
+
story: PropTypes__default["default"].shape({
|
|
3346
|
+
"read-time": PropTypes__default["default"].number
|
|
3337
3347
|
}),
|
|
3338
|
-
opts:
|
|
3339
|
-
showReadTime:
|
|
3348
|
+
opts: PropTypes__default["default"].shape({
|
|
3349
|
+
showReadTime: PropTypes__default["default"].bool
|
|
3340
3350
|
}),
|
|
3341
|
-
isLightTheme:
|
|
3351
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3342
3352
|
};
|
|
3343
3353
|
|
|
3344
3354
|
var _styleModuleImportMap$6 = {
|
|
@@ -3369,33 +3379,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3369
3379
|
|
|
3370
3380
|
var getSeparator = function getSeparator() {
|
|
3371
3381
|
if (separator === "divider") {
|
|
3372
|
-
return /*#__PURE__*/
|
|
3382
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
3373
3383
|
color: textColor
|
|
3374
3384
|
});
|
|
3375
3385
|
}
|
|
3376
3386
|
|
|
3377
|
-
return /*#__PURE__*/
|
|
3387
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3378
3388
|
color: textColor
|
|
3379
3389
|
});
|
|
3380
3390
|
};
|
|
3381
3391
|
|
|
3382
3392
|
var getTimeStamp = function getTimeStamp() {
|
|
3383
3393
|
if (!isTime) return null;
|
|
3384
|
-
return /*#__PURE__*/
|
|
3394
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3385
3395
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
|
|
3386
|
-
}, getSeparator()), /*#__PURE__*/
|
|
3396
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
3387
3397
|
story: story,
|
|
3388
3398
|
config: config
|
|
3389
|
-
}), isReadTime && /*#__PURE__*/
|
|
3399
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
3390
3400
|
story: story,
|
|
3391
3401
|
opts: config,
|
|
3392
3402
|
isLightTheme: isLightTheme
|
|
3393
3403
|
}));
|
|
3394
3404
|
};
|
|
3395
3405
|
|
|
3396
|
-
return /*#__PURE__*/
|
|
3406
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3397
3407
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
|
|
3398
|
-
}, isAuthor ? /*#__PURE__*/
|
|
3408
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
3399
3409
|
story: story,
|
|
3400
3410
|
isBottom: true,
|
|
3401
3411
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -3403,19 +3413,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3403
3413
|
}), getTimeStamp()) : getTimeStamp());
|
|
3404
3414
|
};
|
|
3405
3415
|
AuthorWithTime.propTypes = {
|
|
3406
|
-
story:
|
|
3416
|
+
story: PropTypes__default["default"].object,
|
|
3407
3417
|
|
|
3408
3418
|
/** Style of separator between the Author & Timestamp */
|
|
3409
|
-
separator:
|
|
3419
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
3410
3420
|
|
|
3411
3421
|
/** hide the author image */
|
|
3412
|
-
hideAuthorImage:
|
|
3422
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3413
3423
|
// fix author and time at the end
|
|
3414
|
-
isBottom:
|
|
3424
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3415
3425
|
// fix prefix before the author name
|
|
3416
|
-
prefix:
|
|
3417
|
-
config:
|
|
3418
|
-
isLightTheme:
|
|
3426
|
+
prefix: PropTypes__default["default"].string,
|
|
3427
|
+
config: PropTypes__default["default"].object,
|
|
3428
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3419
3429
|
};
|
|
3420
3430
|
AuthorWithTime.defaultProps = {
|
|
3421
3431
|
separator: "dot",
|
|
@@ -3493,27 +3503,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3493
3503
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
3494
3504
|
_ref$iconColor = _ref.iconColor,
|
|
3495
3505
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
3496
|
-
return /*#__PURE__*/
|
|
3506
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3497
3507
|
width: width,
|
|
3498
3508
|
height: height,
|
|
3499
3509
|
viewBox: "0 0 102 76",
|
|
3500
3510
|
version: "1.1"
|
|
3501
|
-
}, /*#__PURE__*/
|
|
3511
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3502
3512
|
id: "demo-home-copy",
|
|
3503
3513
|
stroke: "none",
|
|
3504
3514
|
strokeWidth: "1",
|
|
3505
3515
|
fill: "none",
|
|
3506
3516
|
fillRule: "evenodd",
|
|
3507
3517
|
transform: "translate(-377.000000, -314.000000)"
|
|
3508
|
-
}, /*#__PURE__*/
|
|
3518
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3509
3519
|
id: "Group-13",
|
|
3510
3520
|
transform: "translate(377.000000, 314.000000)"
|
|
3511
|
-
}, /*#__PURE__*/
|
|
3521
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3512
3522
|
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",
|
|
3513
3523
|
id: "Combined-Shape",
|
|
3514
3524
|
fill: iconColor,
|
|
3515
3525
|
fillRule: "nonzero"
|
|
3516
|
-
}), /*#__PURE__*/
|
|
3526
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3517
3527
|
id: "Rectangle-19",
|
|
3518
3528
|
stroke: iconColor,
|
|
3519
3529
|
strokeWidth: "3",
|
|
@@ -3525,24 +3535,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3525
3535
|
}))));
|
|
3526
3536
|
};
|
|
3527
3537
|
ImageFallbackIcon.propTypes = {
|
|
3528
|
-
width:
|
|
3529
|
-
height:
|
|
3530
|
-
iconColor:
|
|
3538
|
+
width: PropTypes__default["default"].object,
|
|
3539
|
+
height: PropTypes__default["default"].object,
|
|
3540
|
+
iconColor: PropTypes__default["default"].object
|
|
3531
3541
|
};
|
|
3532
3542
|
|
|
3533
3543
|
var imageFallback = function imageFallback() {
|
|
3534
|
-
return /*#__PURE__*/
|
|
3544
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3535
3545
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
3536
|
-
}, /*#__PURE__*/
|
|
3546
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3537
3547
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
3538
|
-
}, /*#__PURE__*/
|
|
3548
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
3539
3549
|
};
|
|
3540
3550
|
|
|
3541
3551
|
var FallbackImage = function FallbackImage(_ref) {
|
|
3542
3552
|
var slug = _ref.slug;
|
|
3543
3553
|
|
|
3544
3554
|
if (slug) {
|
|
3545
|
-
return /*#__PURE__*/
|
|
3555
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3546
3556
|
href: slug,
|
|
3547
3557
|
"aria-label": "image-fallback"
|
|
3548
3558
|
}, imageFallback());
|
|
@@ -3551,23 +3561,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
3551
3561
|
}
|
|
3552
3562
|
};
|
|
3553
3563
|
FallbackImage.propTypes = {
|
|
3554
|
-
slug:
|
|
3564
|
+
slug: PropTypes__default["default"].string
|
|
3555
3565
|
};
|
|
3556
3566
|
|
|
3557
3567
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
3558
|
-
return /*#__PURE__*/
|
|
3568
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3559
3569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3560
3570
|
width: "36",
|
|
3561
3571
|
height: "28"
|
|
3562
|
-
}, /*#__PURE__*/
|
|
3572
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3563
3573
|
fill: "none",
|
|
3564
3574
|
fillRule: "evenodd"
|
|
3565
|
-
}, /*#__PURE__*/
|
|
3575
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3566
3576
|
width: "36",
|
|
3567
3577
|
height: "28",
|
|
3568
3578
|
fill: "#3D6FCF",
|
|
3569
3579
|
rx: "4"
|
|
3570
|
-
}), /*#__PURE__*/
|
|
3580
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3571
3581
|
stroke: "#FFF",
|
|
3572
3582
|
strokeLinecap: "round",
|
|
3573
3583
|
strokeLinejoin: "round",
|
|
@@ -3580,16 +3590,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
3580
3590
|
var _ref$hyperLink = _ref.hyperLink,
|
|
3581
3591
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
3582
3592
|
if (!hyperLink) return null;
|
|
3583
|
-
return /*#__PURE__*/
|
|
3593
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3584
3594
|
href: hyperLink,
|
|
3585
3595
|
"aria-label": "hyperlink-button",
|
|
3586
3596
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
3587
3597
|
target: "_blank",
|
|
3588
3598
|
rel: "noopener noreferrer"
|
|
3589
|
-
}, /*#__PURE__*/
|
|
3599
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
3590
3600
|
};
|
|
3591
3601
|
HyperLink.propTypes = {
|
|
3592
|
-
hyperLink:
|
|
3602
|
+
hyperLink: PropTypes__default["default"].string
|
|
3593
3603
|
};
|
|
3594
3604
|
|
|
3595
3605
|
var _styleModuleImportMap$5 = {
|
|
@@ -3625,7 +3635,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3625
3635
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
3626
3636
|
return null;
|
|
3627
3637
|
} : _config$StoryTemplate;
|
|
3628
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
3638
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
3629
3639
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
3630
3640
|
});
|
|
3631
3641
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -3661,37 +3671,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3661
3671
|
var fallbackImage = function fallbackImage() {
|
|
3662
3672
|
if (!slug) {
|
|
3663
3673
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
3664
|
-
return /*#__PURE__*/
|
|
3674
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3665
3675
|
style: {
|
|
3666
3676
|
paddingTop: imagePadding + "%"
|
|
3667
3677
|
},
|
|
3668
3678
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
|
|
3669
|
-
}, /*#__PURE__*/
|
|
3679
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3670
3680
|
className: "qt-image",
|
|
3671
3681
|
"data-src": "".concat(fallbackImageUrl),
|
|
3672
3682
|
alt: "image-fallback"
|
|
3673
3683
|
}));
|
|
3674
3684
|
}
|
|
3675
3685
|
|
|
3676
|
-
return /*#__PURE__*/
|
|
3686
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3677
3687
|
"data-test-id": "arr--fallback-hero-image",
|
|
3678
3688
|
style: {
|
|
3679
3689
|
paddingTop: imagePadding + "%"
|
|
3680
3690
|
},
|
|
3681
3691
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
|
|
3682
|
-
}, /*#__PURE__*/
|
|
3692
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3683
3693
|
storyTemplate: story["story-template"]
|
|
3684
|
-
}), /*#__PURE__*/
|
|
3694
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
3685
3695
|
}
|
|
3686
3696
|
|
|
3687
|
-
return /*#__PURE__*/
|
|
3697
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3688
3698
|
style: {
|
|
3689
3699
|
paddingTop: imagePadding + "%"
|
|
3690
3700
|
},
|
|
3691
3701
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
|
|
3692
|
-
}, /*#__PURE__*/
|
|
3702
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3693
3703
|
storyTemplate: story["story-template"]
|
|
3694
|
-
}), /*#__PURE__*/
|
|
3704
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
3695
3705
|
story: story,
|
|
3696
3706
|
aspectRatio: imageAspectRatio,
|
|
3697
3707
|
defaultWidth: defaultWidth,
|
|
@@ -3700,15 +3710,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3700
3710
|
auto: ["format", "compress"],
|
|
3701
3711
|
fit: "max"
|
|
3702
3712
|
}
|
|
3703
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
3713
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
3704
3714
|
hyperLink: hyperLink
|
|
3705
3715
|
}));
|
|
3706
3716
|
};
|
|
3707
3717
|
|
|
3708
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
3718
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3709
3719
|
"data-test-id": "arr--hero-image",
|
|
3710
3720
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
|
|
3711
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
3721
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3712
3722
|
"data-test-id": "arr--hero-image",
|
|
3713
3723
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3714
3724
|
externalLink: isExternalStory(story),
|
|
@@ -3718,30 +3728,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3718
3728
|
};
|
|
3719
3729
|
HeroImage.propTypes = {
|
|
3720
3730
|
/** The Story Object from the API response */
|
|
3721
|
-
story:
|
|
3731
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3722
3732
|
|
|
3723
3733
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
3724
|
-
FullBleed:
|
|
3734
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
3725
3735
|
|
|
3726
3736
|
/** The default width for the image, in case the browser does not support srcset */
|
|
3727
|
-
defaultWidth:
|
|
3737
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
3728
3738
|
|
|
3729
3739
|
/** The list of available widths */
|
|
3730
|
-
widths:
|
|
3740
|
+
widths: PropTypes__default["default"].array,
|
|
3731
3741
|
// fatch the correct hero image
|
|
3732
|
-
aspectRatio:
|
|
3742
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
3733
3743
|
// Hints for the browser to choose the best size
|
|
3734
3744
|
|
|
3735
3745
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
3736
|
-
isHorizontal:
|
|
3746
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3737
3747
|
|
|
3738
3748
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
3739
|
-
isHorizontalMobile:
|
|
3749
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3740
3750
|
// this prop is responsive for rendering fallback image on story page
|
|
3741
|
-
defaultFallback:
|
|
3742
|
-
isHorizontalWithImageLast:
|
|
3743
|
-
isStoryPageImage:
|
|
3744
|
-
config:
|
|
3751
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
3752
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
3753
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
3754
|
+
config: PropTypes__default["default"].object
|
|
3745
3755
|
};
|
|
3746
3756
|
HeroImage.defaultProps = {
|
|
3747
3757
|
FullBleed: true,
|
|
@@ -3791,22 +3801,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3791
3801
|
}
|
|
3792
3802
|
|
|
3793
3803
|
if (!isSection) return null;
|
|
3794
|
-
return /*#__PURE__*/
|
|
3804
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3795
3805
|
href: getUrl,
|
|
3796
3806
|
className: "arrow-component arr--section-name",
|
|
3797
3807
|
"aria-label": "section-name"
|
|
3798
|
-
}, /*#__PURE__*/
|
|
3808
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3799
3809
|
"data-test-id": "sectionTag",
|
|
3800
3810
|
style: {
|
|
3801
3811
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3802
3812
|
},
|
|
3803
3813
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$4)
|
|
3804
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3814
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3805
3815
|
className: "section-m_border-left__2oUyp",
|
|
3806
3816
|
style: {
|
|
3807
3817
|
color: sectionTagBorderColor
|
|
3808
3818
|
}
|
|
3809
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3819
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3810
3820
|
className: "section-m_border-bottom__3cRoD",
|
|
3811
3821
|
style: {
|
|
3812
3822
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3815,13 +3825,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3815
3825
|
};
|
|
3816
3826
|
SectionTag.propTypes = {
|
|
3817
3827
|
/** The Story Object from the API response */
|
|
3818
|
-
story:
|
|
3828
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3819
3829
|
|
|
3820
3830
|
/** The style template for section tag */
|
|
3821
|
-
template:
|
|
3822
|
-
borderColor:
|
|
3823
|
-
solidBorderColor:
|
|
3824
|
-
isLightTheme:
|
|
3831
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3832
|
+
borderColor: PropTypes__default["default"].string,
|
|
3833
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3834
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3825
3835
|
};
|
|
3826
3836
|
SectionTag.defaultProps = {
|
|
3827
3837
|
template: "",
|
|
@@ -3870,7 +3880,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3870
3880
|
prefix = _ref.prefix,
|
|
3871
3881
|
config = _ref.config,
|
|
3872
3882
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
3873
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
3883
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
3874
3884
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
3875
3885
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
3876
3886
|
|
|
@@ -3880,7 +3890,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3880
3890
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
3881
3891
|
var textColor = getTextColor(theme);
|
|
3882
3892
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
3883
|
-
var defaultStorycard = /*#__PURE__*/
|
|
3893
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
3884
3894
|
story: story,
|
|
3885
3895
|
aspectRatio: aspectRatio,
|
|
3886
3896
|
border: border,
|
|
@@ -3894,7 +3904,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3894
3904
|
config: config,
|
|
3895
3905
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
3896
3906
|
});
|
|
3897
|
-
return /*#__PURE__*/
|
|
3907
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3898
3908
|
"data-test-id": "story-card",
|
|
3899
3909
|
style: {
|
|
3900
3910
|
backgroundColor: theme,
|
|
@@ -3923,91 +3933,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
3923
3933
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
3924
3934
|
var _config$localizationC = config.localizationConfig,
|
|
3925
3935
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
3926
|
-
return /*#__PURE__*/
|
|
3936
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3927
3937
|
config: config,
|
|
3928
3938
|
story: story,
|
|
3929
3939
|
isHorizontal: true,
|
|
3930
3940
|
isHorizontalMobile: isHorizontalMobile,
|
|
3931
3941
|
aspectRatio: aspectRatio
|
|
3932
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
3942
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3933
3943
|
config: config,
|
|
3934
3944
|
story: story,
|
|
3935
3945
|
isHorizontalWithImageLast: true,
|
|
3936
3946
|
isHorizontalMobile: isHorizontalMobile,
|
|
3937
3947
|
aspectRatio: aspectRatio
|
|
3938
|
-
}) : /*#__PURE__*/
|
|
3948
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3939
3949
|
story: story,
|
|
3940
3950
|
config: config,
|
|
3941
3951
|
isHorizontalMobile: isHorizontalMobile,
|
|
3942
3952
|
aspectRatio: aspectRatio
|
|
3943
|
-
}), /*#__PURE__*/
|
|
3953
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3944
3954
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
|
|
3945
|
-
}, /*#__PURE__*/
|
|
3955
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
3946
3956
|
story: story,
|
|
3947
3957
|
borderColor: SectionTagborderColor
|
|
3948
|
-
}), /*#__PURE__*/
|
|
3958
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
3949
3959
|
story: story,
|
|
3950
3960
|
headerLevel: headerLevel,
|
|
3951
3961
|
premiumStoryIconConfig: config
|
|
3952
|
-
}), /*#__PURE__*/
|
|
3962
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
3953
3963
|
config: localizationConfig,
|
|
3954
3964
|
story: story,
|
|
3955
3965
|
isBottom: true,
|
|
3956
3966
|
prefix: prefix,
|
|
3957
3967
|
hideAuthorImage: hideAuthorImage
|
|
3958
|
-
}), /*#__PURE__*/
|
|
3968
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
3959
3969
|
story: story
|
|
3960
3970
|
})));
|
|
3961
3971
|
};
|
|
3962
3972
|
|
|
3963
3973
|
DefaultStoryCard.propTypes = {
|
|
3964
|
-
story:
|
|
3965
|
-
border:
|
|
3966
|
-
isBottom:
|
|
3967
|
-
isHorizontal:
|
|
3968
|
-
aspectRatio:
|
|
3969
|
-
isHorizontalMobile:
|
|
3970
|
-
centerAlign:
|
|
3971
|
-
headerLevel:
|
|
3972
|
-
borderColor:
|
|
3973
|
-
hideAuthorImage:
|
|
3974
|
-
prefix:
|
|
3975
|
-
config:
|
|
3976
|
-
isHorizontalWithImageLast:
|
|
3974
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3975
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
3976
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3977
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3978
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
3979
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3980
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
3981
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3982
|
+
borderColor: PropTypes__default["default"].string,
|
|
3983
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3984
|
+
prefix: PropTypes__default["default"].string,
|
|
3985
|
+
config: PropTypes__default["default"].object,
|
|
3986
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
3977
3987
|
};
|
|
3978
3988
|
StoryCard.propTypes = {
|
|
3979
3989
|
/** The Story Object from the API response */
|
|
3980
|
-
story:
|
|
3981
|
-
children:
|
|
3990
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3991
|
+
children: PropTypes__default["default"].node,
|
|
3982
3992
|
|
|
3983
3993
|
/** Flip the Story Card to Horizonal mode */
|
|
3984
|
-
isHorizontal:
|
|
3994
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3985
3995
|
|
|
3986
3996
|
/** Add border to the Story Card */
|
|
3987
|
-
border:
|
|
3997
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
3988
3998
|
// story card with background image
|
|
3989
|
-
useImageAsBackground:
|
|
3999
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
3990
4000
|
// story card content overlap with image
|
|
3991
|
-
bgImgContentOverlap:
|
|
4001
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
3992
4002
|
|
|
3993
4003
|
/** add aspect ratio for hero image */
|
|
3994
|
-
aspectRatio:
|
|
4004
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
3995
4005
|
|
|
3996
4006
|
/** add theme(dark /light/custom color) for storycard */
|
|
3997
|
-
theme:
|
|
4007
|
+
theme: PropTypes__default["default"].string,
|
|
3998
4008
|
|
|
3999
4009
|
/** flip the story card mobile design horizontal */
|
|
4000
|
-
isHorizontalMobile:
|
|
4010
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4001
4011
|
// make content center align in desktop and left align in mobile
|
|
4002
|
-
centerAlign:
|
|
4003
|
-
headerLevel:
|
|
4004
|
-
borderColor:
|
|
4012
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4013
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4014
|
+
borderColor: PropTypes__default["default"].string,
|
|
4005
4015
|
// handle author image through storycard
|
|
4006
|
-
hideAuthorImage:
|
|
4016
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4007
4017
|
// handle author prefix through storycard
|
|
4008
|
-
prefix:
|
|
4009
|
-
config:
|
|
4010
|
-
isHorizontalWithImageLast:
|
|
4018
|
+
prefix: PropTypes__default["default"].string,
|
|
4019
|
+
config: PropTypes__default["default"].object,
|
|
4020
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4011
4021
|
};
|
|
4012
4022
|
StoryCard.defaultProps = {
|
|
4013
4023
|
isHorizontal: false,
|
|
@@ -4055,7 +4065,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4055
4065
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
4056
4066
|
|
|
4057
4067
|
var borderBottomStyle = function borderBottomStyle() {
|
|
4058
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
4068
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4059
4069
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
4060
4070
|
style: {
|
|
4061
4071
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -4115,40 +4125,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4115
4125
|
}
|
|
4116
4126
|
};
|
|
4117
4127
|
|
|
4118
|
-
return /*#__PURE__*/
|
|
4128
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4119
4129
|
style: {
|
|
4120
4130
|
borderBottom: borderBottomFullStyle
|
|
4121
4131
|
},
|
|
4122
4132
|
"data-test-id": "collection-name",
|
|
4123
4133
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$2)
|
|
4124
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
4134
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4125
4135
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
4126
4136
|
style: {
|
|
4127
4137
|
color: CollectionNameBorderColor,
|
|
4128
4138
|
fontSize: getBorderHeight()
|
|
4129
4139
|
}
|
|
4130
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
4140
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4131
4141
|
href: slug,
|
|
4132
4142
|
"aria-label": "collection-name"
|
|
4133
|
-
}, /*#__PURE__*/
|
|
4143
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
4134
4144
|
};
|
|
4135
4145
|
CollectionNameBase.propTypes = {
|
|
4136
4146
|
/** Collection name border color */
|
|
4137
|
-
collectionNameBorderColor: PropTypes
|
|
4147
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
4138
4148
|
|
|
4139
4149
|
/** The Collection Object from the API response */
|
|
4140
|
-
collection: PropTypes
|
|
4150
|
+
collection: PropTypes.PropTypes.object,
|
|
4141
4151
|
|
|
4142
4152
|
/** The publisher config from the API response */
|
|
4143
|
-
config: PropTypes
|
|
4153
|
+
config: PropTypes.PropTypes.object,
|
|
4144
4154
|
|
|
4145
4155
|
/** The style template for the component */
|
|
4146
|
-
collectionNameTemplate: PropTypes
|
|
4156
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
4147
4157
|
|
|
4148
4158
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4149
|
-
headerLevel: PropTypes
|
|
4150
|
-
customCollectionName: PropTypes
|
|
4151
|
-
navigate: PropTypes
|
|
4159
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
4160
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
4161
|
+
navigate: PropTypes.PropTypes.bool
|
|
4152
4162
|
};
|
|
4153
4163
|
CollectionNameBase.defaultProps = {
|
|
4154
4164
|
collectionNameTemplate: "",
|
|
@@ -4161,7 +4171,7 @@ function mapStateToProps(state) {
|
|
|
4161
4171
|
};
|
|
4162
4172
|
}
|
|
4163
4173
|
|
|
4164
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
4174
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
4165
4175
|
|
|
4166
4176
|
function _defineProperty(obj, key, value) {
|
|
4167
4177
|
if (key in obj) {
|
|
@@ -4210,26 +4220,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
4210
4220
|
if (!showButton) return null;
|
|
4211
4221
|
var textColor = getTextColor(theme);
|
|
4212
4222
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
4213
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
4223
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4214
4224
|
onClick: onClick,
|
|
4215
4225
|
"data-test-id": "load-more",
|
|
4216
4226
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
|
|
4217
|
-
}, buttonText) : /*#__PURE__*/
|
|
4227
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
4218
4228
|
href: slug,
|
|
4219
4229
|
navigateTo: navigate,
|
|
4220
4230
|
"data-test-id": "load-more",
|
|
4221
4231
|
"aria-label": "load-more"
|
|
4222
|
-
}, /*#__PURE__*/
|
|
4232
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4223
4233
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
|
|
4224
4234
|
}, buttonText));
|
|
4225
4235
|
};
|
|
4226
4236
|
LoadmoreButton.propTypes = {
|
|
4227
|
-
collection:
|
|
4228
|
-
template:
|
|
4229
|
-
config:
|
|
4230
|
-
onClick:
|
|
4231
|
-
navigate:
|
|
4232
|
-
qtConfig:
|
|
4237
|
+
collection: PropTypes__default["default"].object,
|
|
4238
|
+
template: PropTypes__default["default"].string,
|
|
4239
|
+
config: PropTypes__default["default"].object,
|
|
4240
|
+
onClick: PropTypes__default["default"].func,
|
|
4241
|
+
navigate: PropTypes__default["default"].func,
|
|
4242
|
+
qtConfig: PropTypes__default["default"].object
|
|
4233
4243
|
};
|
|
4234
4244
|
|
|
4235
4245
|
var _styleModuleImportMap = {
|
|
@@ -4252,7 +4262,7 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4252
4262
|
var collection = _ref.collection,
|
|
4253
4263
|
_ref$config = _ref.config,
|
|
4254
4264
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
4255
|
-
var storyItems = collectionToStories(collection);
|
|
4265
|
+
var storyItems = components.collectionToStories(collection);
|
|
4256
4266
|
|
|
4257
4267
|
if (storyItems.length < 1) {
|
|
4258
4268
|
return null;
|
|
@@ -4282,8 +4292,8 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4282
4292
|
component = _get.component;
|
|
4283
4293
|
|
|
4284
4294
|
var footerSlot = footerSlotConfig.footerSlot;
|
|
4285
|
-
var dispatch = useDispatch();
|
|
4286
|
-
var qtConfig = useSelector(function (state) {
|
|
4295
|
+
var dispatch = reactRedux.useDispatch();
|
|
4296
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
4287
4297
|
return get_1(state, ["qt", "config"], {});
|
|
4288
4298
|
});
|
|
4289
4299
|
var url = generateNavigateSlug(collection, qtConfig);
|
|
@@ -4294,67 +4304,67 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4294
4304
|
var filterCollection = get_1(collection, ["items"], []).find(function (collections) {
|
|
4295
4305
|
return collections.type === "collection";
|
|
4296
4306
|
});
|
|
4297
|
-
return /*#__PURE__*/
|
|
4307
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4298
4308
|
className: "_11-stories-m_child-collection-wrapper__qlj01"
|
|
4299
|
-
}, /*#__PURE__*/
|
|
4309
|
+
}, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
4300
4310
|
collection: filterCollection,
|
|
4301
4311
|
collectionNameTemplate: collectionNameTemplate,
|
|
4302
4312
|
headerLevel: "5"
|
|
4303
4313
|
}), storyItems.slice(0, 1).map(function (story, index) {
|
|
4304
|
-
return /*#__PURE__*/
|
|
4314
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4305
4315
|
className: "_11-stories-m_first-story-card__2Y4Dk",
|
|
4306
4316
|
key: "story-".concat(index)
|
|
4307
|
-
}, /*#__PURE__*/
|
|
4317
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4308
4318
|
story: story,
|
|
4309
4319
|
theme: theme,
|
|
4310
4320
|
headerLevel: "4",
|
|
4311
4321
|
border: withseparator ? "bottom" : ""
|
|
4312
|
-
}, /*#__PURE__*/
|
|
4322
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4313
4323
|
story: story,
|
|
4314
4324
|
borderColor: SectionTagborderColor
|
|
4315
|
-
}), /*#__PURE__*/
|
|
4325
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4316
4326
|
story: story,
|
|
4317
4327
|
premiumStoryIconConfig: config
|
|
4318
|
-
}), /*#__PURE__*/
|
|
4328
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4319
4329
|
config: localizationConfig,
|
|
4320
4330
|
story: story,
|
|
4321
4331
|
hideAuthorImage: false
|
|
4322
|
-
}), /*#__PURE__*/
|
|
4332
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4323
4333
|
story: story
|
|
4324
4334
|
})));
|
|
4325
4335
|
}), storyItems.slice(1, 4).map(function (story, index) {
|
|
4326
|
-
return /*#__PURE__*/
|
|
4336
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4327
4337
|
className: "_11-stories-m_story-card__opQxo",
|
|
4328
4338
|
key: "story-".concat(index)
|
|
4329
|
-
}, /*#__PURE__*/
|
|
4339
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4330
4340
|
story: story,
|
|
4331
4341
|
theme: theme,
|
|
4332
4342
|
border: withseparator ? "bottom" : ""
|
|
4333
|
-
}, /*#__PURE__*/
|
|
4343
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4334
4344
|
story: story,
|
|
4335
4345
|
borderColor: SectionTagborderColor
|
|
4336
|
-
}), /*#__PURE__*/
|
|
4346
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4337
4347
|
story: story,
|
|
4338
4348
|
premiumStoryIconConfig: config
|
|
4339
|
-
}), /*#__PURE__*/
|
|
4349
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4340
4350
|
config: localizationConfig,
|
|
4341
4351
|
story: story,
|
|
4342
4352
|
hideAuthorImage: false
|
|
4343
4353
|
})));
|
|
4344
4354
|
}), storyItems.slice(4, 5).map(function (story, index) {
|
|
4345
|
-
return /*#__PURE__*/
|
|
4355
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4346
4356
|
className: "_11-stories-m_story-card__opQxo",
|
|
4347
4357
|
key: "story-".concat(index)
|
|
4348
|
-
}, /*#__PURE__*/
|
|
4358
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4349
4359
|
story: story,
|
|
4350
4360
|
theme: theme
|
|
4351
|
-
}, /*#__PURE__*/
|
|
4361
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4352
4362
|
story: story,
|
|
4353
4363
|
borderColor: SectionTagborderColor
|
|
4354
|
-
}), /*#__PURE__*/
|
|
4364
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4355
4365
|
story: story,
|
|
4356
4366
|
premiumStoryIconConfig: config
|
|
4357
|
-
}), /*#__PURE__*/
|
|
4367
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4358
4368
|
config: localizationConfig,
|
|
4359
4369
|
story: story,
|
|
4360
4370
|
hideAuthorImage: false
|
|
@@ -4363,63 +4373,63 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4363
4373
|
};
|
|
4364
4374
|
|
|
4365
4375
|
var getLastSlotStoryData = function getLastSlotStoryData() {
|
|
4366
|
-
return /*#__PURE__*/
|
|
4376
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4367
4377
|
className: "_11-stories-m_column-three__1BGNt"
|
|
4368
4378
|
}, storyItems.slice(6, 7).map(function (story, index) {
|
|
4369
|
-
return /*#__PURE__*/
|
|
4379
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4370
4380
|
className: "_11-stories-m_first-story-card__2Y4Dk",
|
|
4371
4381
|
key: "story-".concat(index)
|
|
4372
|
-
}, /*#__PURE__*/
|
|
4382
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4373
4383
|
story: story,
|
|
4374
4384
|
theme: theme,
|
|
4375
4385
|
border: withseparator ? "bottom" : ""
|
|
4376
|
-
}, /*#__PURE__*/
|
|
4386
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4377
4387
|
story: story,
|
|
4378
4388
|
borderColor: SectionTagborderColor
|
|
4379
|
-
}), /*#__PURE__*/
|
|
4389
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4380
4390
|
story: story,
|
|
4381
4391
|
premiumStoryIconConfig: config
|
|
4382
|
-
}), /*#__PURE__*/
|
|
4392
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4383
4393
|
config: localizationConfig,
|
|
4384
4394
|
story: story,
|
|
4385
4395
|
hideAuthorImage: false
|
|
4386
|
-
}), /*#__PURE__*/
|
|
4396
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4387
4397
|
story: story,
|
|
4388
4398
|
clazzName: "arr-hidden-mob"
|
|
4389
4399
|
})));
|
|
4390
4400
|
}), storyItems.slice(7, 10).map(function (story, index) {
|
|
4391
|
-
return /*#__PURE__*/
|
|
4401
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4392
4402
|
className: "_11-stories-m_story-card__opQxo",
|
|
4393
4403
|
key: "story-".concat(index)
|
|
4394
|
-
}, /*#__PURE__*/
|
|
4404
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4395
4405
|
story: story,
|
|
4396
4406
|
theme: theme,
|
|
4397
4407
|
border: withseparator ? "bottom" : ""
|
|
4398
|
-
}, /*#__PURE__*/
|
|
4408
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4399
4409
|
story: story,
|
|
4400
4410
|
borderColor: SectionTagborderColor
|
|
4401
|
-
}), /*#__PURE__*/
|
|
4411
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4402
4412
|
story: story,
|
|
4403
4413
|
premiumStoryIconConfig: config
|
|
4404
|
-
}), /*#__PURE__*/
|
|
4414
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4405
4415
|
config: localizationConfig,
|
|
4406
4416
|
story: story,
|
|
4407
4417
|
hideAuthorImage: false
|
|
4408
4418
|
})));
|
|
4409
4419
|
}), storyItems.slice(10, 11).map(function (story, index) {
|
|
4410
|
-
return /*#__PURE__*/
|
|
4420
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4411
4421
|
className: "_11-stories-m_story-card__opQxo",
|
|
4412
4422
|
key: "story-".concat(index)
|
|
4413
|
-
}, /*#__PURE__*/
|
|
4423
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4414
4424
|
story: story,
|
|
4415
4425
|
theme: theme
|
|
4416
|
-
}, /*#__PURE__*/
|
|
4426
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4417
4427
|
story: story,
|
|
4418
4428
|
borderColor: SectionTagborderColor
|
|
4419
|
-
}), /*#__PURE__*/
|
|
4429
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4420
4430
|
story: story,
|
|
4421
4431
|
premiumStoryIconConfig: config
|
|
4422
|
-
}), /*#__PURE__*/
|
|
4432
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4423
4433
|
config: localizationConfig,
|
|
4424
4434
|
story: story,
|
|
4425
4435
|
hideAuthorImage: false
|
|
@@ -4432,15 +4442,15 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4432
4442
|
|
|
4433
4443
|
var getColumn = function getColumn() {
|
|
4434
4444
|
if (withseparator) {
|
|
4435
|
-
return /*#__PURE__*/
|
|
4445
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4436
4446
|
className: "_11-stories-m_wrapper-with-divider__2VLKs"
|
|
4437
|
-
}, /*#__PURE__*/
|
|
4447
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4438
4448
|
className: "_11-stories-m_column-one__1h-Sf"
|
|
4439
4449
|
}, storyItems.slice(2, 3).map(function (story, index) {
|
|
4440
|
-
return /*#__PURE__*/
|
|
4450
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4441
4451
|
className: "_11-stories-m_story-card__opQxo",
|
|
4442
4452
|
key: "story-".concat(index)
|
|
4443
|
-
}, /*#__PURE__*/
|
|
4453
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4444
4454
|
story: story,
|
|
4445
4455
|
theme: theme,
|
|
4446
4456
|
border: "bottom",
|
|
@@ -4451,55 +4461,55 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4451
4461
|
headerLevel: "5"
|
|
4452
4462
|
}));
|
|
4453
4463
|
}), storyItems.slice(3, 5).map(function (story, index) {
|
|
4454
|
-
return /*#__PURE__*/
|
|
4464
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
4455
4465
|
key: "story-col-".concat(index, "-").concat(get_1(story, ["id"], "0"))
|
|
4456
|
-
}, /*#__PURE__*/
|
|
4466
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4457
4467
|
className: "_11-stories-m_story-card__opQxo",
|
|
4458
4468
|
key: "story-".concat(index)
|
|
4459
|
-
}, /*#__PURE__*/
|
|
4469
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4460
4470
|
story: story,
|
|
4461
4471
|
theme: theme,
|
|
4462
4472
|
border: withseparator ? "bottom" : ""
|
|
4463
|
-
}, /*#__PURE__*/
|
|
4473
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4464
4474
|
story: story,
|
|
4465
4475
|
borderColor: SectionTagborderColor
|
|
4466
|
-
}), /*#__PURE__*/
|
|
4476
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4467
4477
|
story: story,
|
|
4468
4478
|
premiumStoryIconConfig: config
|
|
4469
|
-
}), /*#__PURE__*/
|
|
4479
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4470
4480
|
config: localizationConfig,
|
|
4471
4481
|
story: story,
|
|
4472
4482
|
hideAuthorImage: false
|
|
4473
4483
|
}))));
|
|
4474
4484
|
}), storyItems.slice(5, 6).map(function (story, index) {
|
|
4475
|
-
return /*#__PURE__*/
|
|
4485
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
4476
4486
|
key: "story-col2-".concat(index, "-").concat(get_1(story, ["id"], "0"))
|
|
4477
|
-
}, /*#__PURE__*/
|
|
4487
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4478
4488
|
className: "_11-stories-m_story-card__opQxo",
|
|
4479
4489
|
key: "story-".concat(index)
|
|
4480
|
-
}, /*#__PURE__*/
|
|
4490
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4481
4491
|
story: story,
|
|
4482
4492
|
theme: theme
|
|
4483
|
-
}, /*#__PURE__*/
|
|
4493
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4484
4494
|
story: story,
|
|
4485
4495
|
borderColor: SectionTagborderColor
|
|
4486
|
-
}), /*#__PURE__*/
|
|
4496
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4487
4497
|
story: story,
|
|
4488
4498
|
premiumStoryIconConfig: config
|
|
4489
|
-
}), /*#__PURE__*/
|
|
4499
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4490
4500
|
config: localizationConfig,
|
|
4491
4501
|
story: story,
|
|
4492
4502
|
hideAuthorImage: false
|
|
4493
4503
|
}))));
|
|
4494
|
-
})), /*#__PURE__*/
|
|
4504
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4495
4505
|
className: _getClassName("divider ".concat(textColor), _styleModuleImportMap)
|
|
4496
|
-
}), /*#__PURE__*/
|
|
4506
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4497
4507
|
className: "_11-stories-m_column-two__3fctd"
|
|
4498
4508
|
}, storyItems.slice(0, 1).map(function (story, index) {
|
|
4499
|
-
return /*#__PURE__*/
|
|
4509
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4500
4510
|
className: "_11-stories-m_story-card__opQxo",
|
|
4501
4511
|
key: "story-".concat(index)
|
|
4502
|
-
}, /*#__PURE__*/
|
|
4512
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4503
4513
|
story: story,
|
|
4504
4514
|
theme: theme,
|
|
4505
4515
|
borderColor: SectionTagborderColor,
|
|
@@ -4511,10 +4521,10 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4511
4521
|
config: config
|
|
4512
4522
|
}));
|
|
4513
4523
|
}), storyItems.slice(1, 2).map(function (story, index) {
|
|
4514
|
-
return /*#__PURE__*/
|
|
4524
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4515
4525
|
className: "_11-stories-m_story-card__opQxo",
|
|
4516
4526
|
key: "story-".concat(index)
|
|
4517
|
-
}, /*#__PURE__*/
|
|
4527
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4518
4528
|
story: story,
|
|
4519
4529
|
isHorizontal: true,
|
|
4520
4530
|
theme: theme,
|
|
@@ -4523,18 +4533,18 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4523
4533
|
headerLevel: "5",
|
|
4524
4534
|
config: config
|
|
4525
4535
|
}));
|
|
4526
|
-
})), /*#__PURE__*/
|
|
4536
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4527
4537
|
className: _getClassName("divider ".concat(textColor), _styleModuleImportMap)
|
|
4528
4538
|
}), slot));
|
|
4529
|
-
} else return /*#__PURE__*/
|
|
4539
|
+
} else return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4530
4540
|
className: "_11-stories-m_wrapper__1vPIm"
|
|
4531
|
-
}, /*#__PURE__*/
|
|
4541
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4532
4542
|
className: "_11-stories-m_column-one__1h-Sf"
|
|
4533
4543
|
}, storyItems.slice(2, 3).map(function (story, index) {
|
|
4534
|
-
return /*#__PURE__*/
|
|
4544
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4535
4545
|
className: "_11-stories-m_story-card__opQxo",
|
|
4536
4546
|
key: "story-".concat(index)
|
|
4537
|
-
}, /*#__PURE__*/
|
|
4547
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4538
4548
|
story: story,
|
|
4539
4549
|
theme: theme,
|
|
4540
4550
|
borderColor: SectionTagborderColor,
|
|
@@ -4544,33 +4554,33 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4544
4554
|
config: config
|
|
4545
4555
|
}));
|
|
4546
4556
|
}), storyItems.slice(3, 6).map(function (story, index) {
|
|
4547
|
-
return /*#__PURE__*/
|
|
4557
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
4548
4558
|
key: "story-col1-".concat(get_1(story, ["id"], "0"))
|
|
4549
|
-
}, /*#__PURE__*/
|
|
4559
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4550
4560
|
className: "_11-stories-m_story-card__opQxo",
|
|
4551
4561
|
key: "story-".concat(index)
|
|
4552
|
-
}, /*#__PURE__*/
|
|
4562
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4553
4563
|
story: story,
|
|
4554
4564
|
theme: theme,
|
|
4555
4565
|
config: config
|
|
4556
|
-
}, /*#__PURE__*/
|
|
4566
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4557
4567
|
story: story,
|
|
4558
4568
|
borderColor: SectionTagborderColor
|
|
4559
|
-
}), /*#__PURE__*/
|
|
4569
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4560
4570
|
story: story,
|
|
4561
4571
|
premiumStoryIconConfig: config
|
|
4562
|
-
}), /*#__PURE__*/
|
|
4572
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4563
4573
|
config: localizationConfig,
|
|
4564
4574
|
story: story,
|
|
4565
4575
|
hideAuthorImage: false
|
|
4566
4576
|
}))));
|
|
4567
|
-
})), /*#__PURE__*/
|
|
4577
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4568
4578
|
className: "_11-stories-m_column-two__3fctd"
|
|
4569
4579
|
}, storyItems.slice(0, 1).map(function (story, index) {
|
|
4570
|
-
return /*#__PURE__*/
|
|
4580
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4571
4581
|
className: "_11-stories-m_story-card__opQxo",
|
|
4572
4582
|
key: "story-".concat(index)
|
|
4573
|
-
}, /*#__PURE__*/
|
|
4583
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4574
4584
|
story: story,
|
|
4575
4585
|
borderColor: SectionTagborderColor,
|
|
4576
4586
|
theme: theme,
|
|
@@ -4581,10 +4591,10 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4581
4591
|
config: config
|
|
4582
4592
|
}));
|
|
4583
4593
|
}), storyItems.slice(1, 2).map(function (story, index) {
|
|
4584
|
-
return /*#__PURE__*/
|
|
4594
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4585
4595
|
className: "_11-stories-m_story-card__opQxo",
|
|
4586
4596
|
key: "story-".concat(index)
|
|
4587
|
-
}, /*#__PURE__*/
|
|
4597
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4588
4598
|
story: story,
|
|
4589
4599
|
isHorizontal: true,
|
|
4590
4600
|
theme: theme,
|
|
@@ -4596,20 +4606,20 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4596
4606
|
})), slot));
|
|
4597
4607
|
};
|
|
4598
4608
|
|
|
4599
|
-
return /*#__PURE__*/
|
|
4609
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4600
4610
|
className: "full-width-with-padding arrow-component",
|
|
4601
4611
|
"data-test-id": "eleven-stories",
|
|
4602
4612
|
style: {
|
|
4603
4613
|
backgroundColor: theme,
|
|
4604
4614
|
color: textColor
|
|
4605
4615
|
}
|
|
4606
|
-
}, /*#__PURE__*/
|
|
4616
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4607
4617
|
className: "_11-stories-m_eleven-stories__13Nwq"
|
|
4608
|
-
}, /*#__PURE__*/
|
|
4618
|
+
}, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
4609
4619
|
collection: collection,
|
|
4610
4620
|
collectionNameTemplate: collectionNameTemplate,
|
|
4611
4621
|
collectionNameBorderColor: collectionNameBorderColor
|
|
4612
|
-
}), getColumn(), /*#__PURE__*/
|
|
4622
|
+
}), getColumn(), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
4613
4623
|
collection: collection,
|
|
4614
4624
|
template: footerButton,
|
|
4615
4625
|
config: config,
|
|
@@ -4621,18 +4631,19 @@ var ElevenStoriesBase = function ElevenStoriesBase(_ref) {
|
|
|
4621
4631
|
};
|
|
4622
4632
|
ElevenStoriesBase.propTypes = {
|
|
4623
4633
|
/** stories is the array of objects which is returning by API */
|
|
4624
|
-
collection:
|
|
4625
|
-
config:
|
|
4626
|
-
borderColor:
|
|
4627
|
-
footerButton:
|
|
4628
|
-
theme:
|
|
4629
|
-
border:
|
|
4630
|
-
slotConfig:
|
|
4631
|
-
withseparator:
|
|
4632
|
-
collectionNameTemplate:
|
|
4633
|
-
collectionNameBorderColor:
|
|
4634
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
4635
|
+
config: PropTypes__default["default"].shape({
|
|
4636
|
+
borderColor: PropTypes__default["default"].string,
|
|
4637
|
+
footerButton: PropTypes__default["default"].string,
|
|
4638
|
+
theme: PropTypes__default["default"].string,
|
|
4639
|
+
border: PropTypes__default["default"].string,
|
|
4640
|
+
slotConfig: PropTypes__default["default"].array,
|
|
4641
|
+
withseparator: PropTypes__default["default"].bool,
|
|
4642
|
+
collectionNameTemplate: PropTypes__default["default"].string,
|
|
4643
|
+
collectionNameBorderColor: PropTypes__default["default"].string
|
|
4634
4644
|
})
|
|
4635
4645
|
};
|
|
4636
4646
|
var ElevenStories = StateProvider(ElevenStoriesBase);
|
|
4637
4647
|
|
|
4638
|
-
|
|
4648
|
+
exports.ElevenStories = ElevenStories;
|
|
4649
|
+
exports.ElevenStoriesBase = ElevenStoriesBase;
|