@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 reactRedux = require('react-redux');
|
|
8
|
+
var components = require('@quintype/components');
|
|
9
|
+
var Timeago = require('react-timeago');
|
|
10
|
+
var dateFnsTz = require('date-fns-tz');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
16
|
+
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
7
17
|
|
|
8
18
|
function _arrayWithHoles(arr) {
|
|
9
19
|
if (Array.isArray(arr)) return arr;
|
|
@@ -1405,21 +1415,21 @@ function get(object, path, defaultValue) {
|
|
|
1405
1415
|
|
|
1406
1416
|
var get_1 = get;
|
|
1407
1417
|
|
|
1408
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
1418
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
1409
1419
|
|
|
1410
1420
|
var StateProvider = function StateProvider(RowComponent) {
|
|
1411
1421
|
return function (props) {
|
|
1412
1422
|
return (
|
|
1413
1423
|
/*#__PURE__*/
|
|
1414
1424
|
// eslint-disable-next-line react/prop-types
|
|
1415
|
-
|
|
1425
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
1416
1426
|
value: props.config
|
|
1417
|
-
}, /*#__PURE__*/
|
|
1427
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
1418
1428
|
);
|
|
1419
1429
|
};
|
|
1420
1430
|
};
|
|
1421
1431
|
var useStateValue = function useStateValue() {
|
|
1422
|
-
return useContext(StateContext);
|
|
1432
|
+
return React.useContext(StateContext);
|
|
1423
1433
|
};
|
|
1424
1434
|
|
|
1425
1435
|
function _typeof(obj) {
|
|
@@ -2736,15 +2746,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
2736
2746
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2737
2747
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2738
2748
|
};
|
|
2739
|
-
|
|
2740
|
-
"sketches-host":
|
|
2741
|
-
"cdn-name":
|
|
2742
|
-
"cdn-image":
|
|
2749
|
+
PropTypes__default["default"].shape({
|
|
2750
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
2751
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
2752
|
+
"cdn-image": PropTypes__default["default"].string
|
|
2743
2753
|
});
|
|
2744
|
-
|
|
2745
|
-
headline:
|
|
2746
|
-
"last-published-at":
|
|
2747
|
-
subheadline:
|
|
2754
|
+
PropTypes__default["default"].shape({
|
|
2755
|
+
headline: PropTypes__default["default"].string,
|
|
2756
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
2757
|
+
subheadline: PropTypes__default["default"].string
|
|
2748
2758
|
});
|
|
2749
2759
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2750
2760
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -2788,17 +2798,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
2788
2798
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
2789
2799
|
|
|
2790
2800
|
if (timezone && template === "story") {
|
|
2791
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
2792
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2801
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
2802
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2793
2803
|
timeZone: timezone
|
|
2794
2804
|
});
|
|
2795
2805
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
2796
|
-
return /*#__PURE__*/
|
|
2806
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
2797
2807
|
dateTime: formatZonedTime
|
|
2798
2808
|
}, timeStamp);
|
|
2799
2809
|
}
|
|
2800
2810
|
|
|
2801
|
-
return /*#__PURE__*/
|
|
2811
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
2802
2812
|
date: date,
|
|
2803
2813
|
formatter: function formatter(value, unit, suffix, date) {
|
|
2804
2814
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -2842,7 +2852,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
2842
2852
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
2843
2853
|
|
|
2844
2854
|
var borderBottomStyle = function borderBottomStyle() {
|
|
2845
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
2855
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2846
2856
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
2847
2857
|
style: {
|
|
2848
2858
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -2902,40 +2912,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
2902
2912
|
}
|
|
2903
2913
|
};
|
|
2904
2914
|
|
|
2905
|
-
return /*#__PURE__*/
|
|
2915
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2906
2916
|
style: {
|
|
2907
2917
|
borderBottom: borderBottomFullStyle
|
|
2908
2918
|
},
|
|
2909
2919
|
"data-test-id": "collection-name",
|
|
2910
2920
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$e)
|
|
2911
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
2921
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2912
2922
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
2913
2923
|
style: {
|
|
2914
2924
|
color: CollectionNameBorderColor,
|
|
2915
2925
|
fontSize: getBorderHeight()
|
|
2916
2926
|
}
|
|
2917
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
2927
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
2918
2928
|
href: slug,
|
|
2919
2929
|
"aria-label": "collection-name"
|
|
2920
|
-
}, /*#__PURE__*/
|
|
2930
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
2921
2931
|
};
|
|
2922
2932
|
CollectionNameBase.propTypes = {
|
|
2923
2933
|
/** Collection name border color */
|
|
2924
|
-
collectionNameBorderColor: PropTypes
|
|
2934
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
2925
2935
|
|
|
2926
2936
|
/** The Collection Object from the API response */
|
|
2927
|
-
collection: PropTypes
|
|
2937
|
+
collection: PropTypes.PropTypes.object,
|
|
2928
2938
|
|
|
2929
2939
|
/** The publisher config from the API response */
|
|
2930
|
-
config: PropTypes
|
|
2940
|
+
config: PropTypes.PropTypes.object,
|
|
2931
2941
|
|
|
2932
2942
|
/** The style template for the component */
|
|
2933
|
-
collectionNameTemplate: PropTypes
|
|
2943
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
2934
2944
|
|
|
2935
2945
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
2936
|
-
headerLevel: PropTypes
|
|
2937
|
-
customCollectionName: PropTypes
|
|
2938
|
-
navigate: PropTypes
|
|
2946
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
2947
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
2948
|
+
navigate: PropTypes.PropTypes.bool
|
|
2939
2949
|
};
|
|
2940
2950
|
CollectionNameBase.defaultProps = {
|
|
2941
2951
|
collectionNameTemplate: "",
|
|
@@ -2948,7 +2958,7 @@ function mapStateToProps$1(state) {
|
|
|
2948
2958
|
};
|
|
2949
2959
|
}
|
|
2950
2960
|
|
|
2951
|
-
var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
|
|
2961
|
+
var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
|
|
2952
2962
|
|
|
2953
2963
|
function _defineProperty(obj, key, value) {
|
|
2954
2964
|
if (key in obj) {
|
|
@@ -2997,26 +3007,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
2997
3007
|
if (!showButton) return null;
|
|
2998
3008
|
var textColor = getTextColor(theme);
|
|
2999
3009
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
3000
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
3010
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3001
3011
|
onClick: onClick,
|
|
3002
3012
|
"data-test-id": "load-more",
|
|
3003
3013
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$d)
|
|
3004
|
-
}, buttonText) : /*#__PURE__*/
|
|
3014
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
3005
3015
|
href: slug,
|
|
3006
3016
|
navigateTo: navigate,
|
|
3007
3017
|
"data-test-id": "load-more",
|
|
3008
3018
|
"aria-label": "load-more"
|
|
3009
|
-
}, /*#__PURE__*/
|
|
3019
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3010
3020
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$d)
|
|
3011
3021
|
}, buttonText));
|
|
3012
3022
|
};
|
|
3013
3023
|
LoadmoreButton.propTypes = {
|
|
3014
|
-
collection:
|
|
3015
|
-
template:
|
|
3016
|
-
config:
|
|
3017
|
-
onClick:
|
|
3018
|
-
navigate:
|
|
3019
|
-
qtConfig:
|
|
3024
|
+
collection: PropTypes__default["default"].object,
|
|
3025
|
+
template: PropTypes__default["default"].string,
|
|
3026
|
+
config: PropTypes__default["default"].object,
|
|
3027
|
+
onClick: PropTypes__default["default"].func,
|
|
3028
|
+
navigate: PropTypes__default["default"].func,
|
|
3029
|
+
qtConfig: PropTypes__default["default"].object
|
|
3020
3030
|
};
|
|
3021
3031
|
|
|
3022
3032
|
var CrownIcon = function CrownIcon(_ref) {
|
|
@@ -3025,7 +3035,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3025
3035
|
_ref$color = _ref.color,
|
|
3026
3036
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
3027
3037
|
positionTop = _ref.positionTop;
|
|
3028
|
-
return /*#__PURE__*/
|
|
3038
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3029
3039
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3030
3040
|
width: width,
|
|
3031
3041
|
height: height,
|
|
@@ -3034,28 +3044,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3034
3044
|
position: "relative",
|
|
3035
3045
|
top: positionTop
|
|
3036
3046
|
}
|
|
3037
|
-
}, /*#__PURE__*/
|
|
3047
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3038
3048
|
fill: "none",
|
|
3039
3049
|
fillRule: "evenodd",
|
|
3040
3050
|
stroke: "none",
|
|
3041
3051
|
strokeWidth: "1"
|
|
3042
|
-
}, /*#__PURE__*/
|
|
3052
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3043
3053
|
transform: "translate(8 8)"
|
|
3044
|
-
}, /*#__PURE__*/
|
|
3054
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3045
3055
|
d: "M0 0H24V24H0z"
|
|
3046
|
-
}), /*#__PURE__*/
|
|
3056
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3047
3057
|
fill: color,
|
|
3048
3058
|
fillRule: "nonzero",
|
|
3049
3059
|
transform: "translate(0 2)"
|
|
3050
|
-
}, /*#__PURE__*/
|
|
3060
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3051
3061
|
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"
|
|
3052
3062
|
}))))));
|
|
3053
3063
|
};
|
|
3054
3064
|
CrownIcon.propTypes = {
|
|
3055
|
-
height:
|
|
3056
|
-
width:
|
|
3057
|
-
color:
|
|
3058
|
-
positionTop:
|
|
3065
|
+
height: PropTypes__default["default"].string,
|
|
3066
|
+
width: PropTypes__default["default"].string,
|
|
3067
|
+
color: PropTypes__default["default"].string,
|
|
3068
|
+
positionTop: PropTypes__default["default"].string
|
|
3059
3069
|
};
|
|
3060
3070
|
|
|
3061
3071
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -3064,7 +3074,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3064
3074
|
_ref$color = _ref.color,
|
|
3065
3075
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3066
3076
|
positionTop = _ref.positionTop;
|
|
3067
|
-
return /*#__PURE__*/
|
|
3077
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3068
3078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3069
3079
|
width: width,
|
|
3070
3080
|
height: height,
|
|
@@ -3073,16 +3083,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3073
3083
|
position: "relative",
|
|
3074
3084
|
top: positionTop
|
|
3075
3085
|
}
|
|
3076
|
-
}, /*#__PURE__*/
|
|
3086
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3077
3087
|
fill: "none",
|
|
3078
3088
|
fillRule: "evenodd",
|
|
3079
3089
|
stroke: "none",
|
|
3080
3090
|
strokeWidth: "1"
|
|
3081
|
-
}, /*#__PURE__*/
|
|
3091
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3082
3092
|
transform: "translate(8 8)"
|
|
3083
|
-
}, /*#__PURE__*/
|
|
3093
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3084
3094
|
d: "M0 0H24V24H0z"
|
|
3085
|
-
}), /*#__PURE__*/
|
|
3095
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3086
3096
|
fill: color,
|
|
3087
3097
|
fillRule: "nonzero",
|
|
3088
3098
|
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",
|
|
@@ -3090,10 +3100,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3090
3100
|
})))));
|
|
3091
3101
|
};
|
|
3092
3102
|
KeyIcon.propTypes = {
|
|
3093
|
-
height:
|
|
3094
|
-
width:
|
|
3095
|
-
color:
|
|
3096
|
-
positionTop:
|
|
3103
|
+
height: PropTypes__default["default"].string,
|
|
3104
|
+
width: PropTypes__default["default"].string,
|
|
3105
|
+
color: PropTypes__default["default"].string,
|
|
3106
|
+
positionTop: PropTypes__default["default"].string
|
|
3097
3107
|
};
|
|
3098
3108
|
|
|
3099
3109
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -3102,7 +3112,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3102
3112
|
_ref$color = _ref.color,
|
|
3103
3113
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3104
3114
|
positionTop = _ref.positionTop;
|
|
3105
|
-
return /*#__PURE__*/
|
|
3115
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3106
3116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3107
3117
|
width: width,
|
|
3108
3118
|
height: height,
|
|
@@ -3111,28 +3121,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3111
3121
|
position: "relative",
|
|
3112
3122
|
top: positionTop
|
|
3113
3123
|
}
|
|
3114
|
-
}, /*#__PURE__*/
|
|
3124
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3115
3125
|
fill: "none",
|
|
3116
3126
|
fillRule: "evenodd",
|
|
3117
3127
|
stroke: "none",
|
|
3118
3128
|
strokeWidth: "1"
|
|
3119
|
-
}, /*#__PURE__*/
|
|
3129
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3120
3130
|
transform: "translate(8 8)"
|
|
3121
|
-
}, /*#__PURE__*/
|
|
3131
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3122
3132
|
d: "M0 0H24V24H0z"
|
|
3123
|
-
}), /*#__PURE__*/
|
|
3133
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3124
3134
|
fill: color,
|
|
3125
3135
|
fillRule: "nonzero",
|
|
3126
3136
|
transform: "translate(3)"
|
|
3127
|
-
}, /*#__PURE__*/
|
|
3137
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3128
3138
|
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"
|
|
3129
3139
|
}))))));
|
|
3130
3140
|
};
|
|
3131
3141
|
LockIcon.propTypes = {
|
|
3132
|
-
height:
|
|
3133
|
-
width:
|
|
3134
|
-
color:
|
|
3135
|
-
positionTop:
|
|
3142
|
+
height: PropTypes__default["default"].string,
|
|
3143
|
+
width: PropTypes__default["default"].string,
|
|
3144
|
+
color: PropTypes__default["default"].string,
|
|
3145
|
+
positionTop: PropTypes__default["default"].string
|
|
3136
3146
|
};
|
|
3137
3147
|
|
|
3138
3148
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -3142,7 +3152,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3142
3152
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3143
3153
|
_ref$positionTop = _ref.positionTop,
|
|
3144
3154
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
3145
|
-
return /*#__PURE__*/
|
|
3155
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3146
3156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3147
3157
|
width: width,
|
|
3148
3158
|
height: height,
|
|
@@ -3151,21 +3161,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3151
3161
|
position: "relative",
|
|
3152
3162
|
top: positionTop
|
|
3153
3163
|
}
|
|
3154
|
-
}, /*#__PURE__*/
|
|
3164
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3155
3165
|
fill: "none",
|
|
3156
3166
|
fillRule: "evenodd",
|
|
3157
3167
|
stroke: "none",
|
|
3158
3168
|
strokeWidth: "1"
|
|
3159
|
-
}, /*#__PURE__*/
|
|
3169
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3160
3170
|
fill: color,
|
|
3161
3171
|
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"
|
|
3162
3172
|
}))));
|
|
3163
3173
|
};
|
|
3164
3174
|
StarIcon.propTypes = {
|
|
3165
|
-
height:
|
|
3166
|
-
width:
|
|
3167
|
-
color:
|
|
3168
|
-
positionTop:
|
|
3175
|
+
height: PropTypes__default["default"].string,
|
|
3176
|
+
width: PropTypes__default["default"].string,
|
|
3177
|
+
color: PropTypes__default["default"].string,
|
|
3178
|
+
positionTop: PropTypes__default["default"].string
|
|
3169
3179
|
};
|
|
3170
3180
|
|
|
3171
3181
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -3177,7 +3187,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3177
3187
|
|
|
3178
3188
|
switch (iconType) {
|
|
3179
3189
|
case "crown":
|
|
3180
|
-
return /*#__PURE__*/
|
|
3190
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
3181
3191
|
width: width,
|
|
3182
3192
|
height: height,
|
|
3183
3193
|
color: color,
|
|
@@ -3185,7 +3195,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3185
3195
|
});
|
|
3186
3196
|
|
|
3187
3197
|
case "lock":
|
|
3188
|
-
return /*#__PURE__*/
|
|
3198
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
3189
3199
|
width: width,
|
|
3190
3200
|
height: height,
|
|
3191
3201
|
color: color,
|
|
@@ -3193,7 +3203,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3193
3203
|
});
|
|
3194
3204
|
|
|
3195
3205
|
case "key":
|
|
3196
|
-
return /*#__PURE__*/
|
|
3206
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
3197
3207
|
width: width,
|
|
3198
3208
|
height: height,
|
|
3199
3209
|
color: color,
|
|
@@ -3201,7 +3211,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3201
3211
|
});
|
|
3202
3212
|
|
|
3203
3213
|
default:
|
|
3204
|
-
return /*#__PURE__*/
|
|
3214
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
3205
3215
|
width: width,
|
|
3206
3216
|
height: height,
|
|
3207
3217
|
color: color,
|
|
@@ -3210,21 +3220,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3210
3220
|
}
|
|
3211
3221
|
};
|
|
3212
3222
|
PremiumStoryIcon.propTypes = {
|
|
3213
|
-
width:
|
|
3214
|
-
height:
|
|
3215
|
-
color:
|
|
3216
|
-
iconType:
|
|
3217
|
-
positionTop:
|
|
3223
|
+
width: PropTypes__default["default"].string,
|
|
3224
|
+
height: PropTypes__default["default"].string,
|
|
3225
|
+
color: PropTypes__default["default"].string,
|
|
3226
|
+
iconType: PropTypes__default["default"].string,
|
|
3227
|
+
positionTop: PropTypes__default["default"].string
|
|
3218
3228
|
};
|
|
3219
3229
|
|
|
3220
3230
|
function LiveIcon() {
|
|
3221
|
-
return /*#__PURE__*/
|
|
3231
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3222
3232
|
className: "live-icon",
|
|
3223
3233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3224
3234
|
width: "25",
|
|
3225
3235
|
height: "24",
|
|
3226
3236
|
viewBox: "0 0 25 24"
|
|
3227
|
-
}, /*#__PURE__*/
|
|
3237
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3228
3238
|
fill: "#ff5858",
|
|
3229
3239
|
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"
|
|
3230
3240
|
}));
|
|
@@ -3281,37 +3291,37 @@ var Headline = function Headline(_ref) {
|
|
|
3281
3291
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
3282
3292
|
var iconSize = "24px";
|
|
3283
3293
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
3284
|
-
return /*#__PURE__*/
|
|
3294
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3285
3295
|
"data-test-id": "headline",
|
|
3286
3296
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$c)
|
|
3287
|
-
}, premiumStory && /*#__PURE__*/
|
|
3297
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3288
3298
|
width: iconSize,
|
|
3289
3299
|
height: iconSize,
|
|
3290
3300
|
color: iconColor,
|
|
3291
3301
|
iconType: iconStyle,
|
|
3292
3302
|
positionTop: positionHeadline()
|
|
3293
|
-
}), isLink ? /*#__PURE__*/
|
|
3303
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3294
3304
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3295
3305
|
externalLink: isExternalStory(story),
|
|
3296
3306
|
"aria-label": "headline"
|
|
3297
|
-
}, /*#__PURE__*/
|
|
3307
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3298
3308
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
|
|
3299
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3309
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3300
3310
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
|
|
3301
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3311
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
3302
3312
|
};
|
|
3303
3313
|
Headline.propTypes = {
|
|
3304
3314
|
/** The Story Object from the API response */
|
|
3305
|
-
story:
|
|
3315
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3306
3316
|
|
|
3307
3317
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
3308
|
-
headerLevel:
|
|
3309
|
-
premiumStoryIconConfig:
|
|
3310
|
-
iconColor:
|
|
3311
|
-
iconType:
|
|
3312
|
-
enablePremiumStoryIcon:
|
|
3318
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3319
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3320
|
+
iconColor: PropTypes__default["default"].string,
|
|
3321
|
+
iconType: PropTypes__default["default"].string,
|
|
3322
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3313
3323
|
}),
|
|
3314
|
-
isLink:
|
|
3324
|
+
isLink: PropTypes__default["default"].bool
|
|
3315
3325
|
};
|
|
3316
3326
|
Headline.defaultProps = {
|
|
3317
3327
|
headerLevel: "6",
|
|
@@ -3338,7 +3348,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3338
3348
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3339
3349
|
if (!subheadline) return null;
|
|
3340
3350
|
var textColor = getTextColor(config.theme);
|
|
3341
|
-
return /*#__PURE__*/
|
|
3351
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3342
3352
|
style: {
|
|
3343
3353
|
WebkitLineClamp: lineClamp
|
|
3344
3354
|
},
|
|
@@ -3348,15 +3358,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3348
3358
|
};
|
|
3349
3359
|
Subheadline.propTypes = {
|
|
3350
3360
|
/** The Story Object from the API response */
|
|
3351
|
-
story:
|
|
3361
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3352
3362
|
// Restricts the number of lines for subheadline.
|
|
3353
|
-
lineClamp:
|
|
3363
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3354
3364
|
|
|
3355
3365
|
/** Number of characters to truncate the subheadline */
|
|
3356
|
-
truncateChars:
|
|
3357
|
-
clazzName:
|
|
3358
|
-
forceShowAtom:
|
|
3359
|
-
showFullContent:
|
|
3366
|
+
truncateChars: PropTypes__default["default"].number,
|
|
3367
|
+
clazzName: PropTypes__default["default"].string,
|
|
3368
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
3369
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3360
3370
|
};
|
|
3361
3371
|
Subheadline.defaultProps = {
|
|
3362
3372
|
forceShowAtom: false,
|
|
@@ -3382,18 +3392,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
3382
3392
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
3383
3393
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
3384
3394
|
var textColor = getTextColor(configState.theme);
|
|
3385
|
-
return /*#__PURE__*/
|
|
3395
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3386
3396
|
"data-test-id": "publish-time",
|
|
3387
3397
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
|
|
3388
|
-
}, /*#__PURE__*/
|
|
3398
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3389
3399
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
3390
3400
|
}, getTimeStamp(time, formatter, config))));
|
|
3391
3401
|
};
|
|
3392
3402
|
TimeStamp.propTypes = {
|
|
3393
3403
|
/** The Story Object from the API response */
|
|
3394
|
-
story:
|
|
3395
|
-
isBottom:
|
|
3396
|
-
config:
|
|
3404
|
+
story: PropTypes__default["default"].object,
|
|
3405
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3406
|
+
config: PropTypes__default["default"].object
|
|
3397
3407
|
};
|
|
3398
3408
|
|
|
3399
3409
|
var _styleModuleImportMap$9 = {
|
|
@@ -3436,10 +3446,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3436
3446
|
return null;
|
|
3437
3447
|
}
|
|
3438
3448
|
|
|
3439
|
-
return /*#__PURE__*/
|
|
3449
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3440
3450
|
"data-test-id": "author-image",
|
|
3441
3451
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
|
|
3442
|
-
}, /*#__PURE__*/
|
|
3452
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
3443
3453
|
slug: avatarS3Key,
|
|
3444
3454
|
"aspect-ratio": [1, 1],
|
|
3445
3455
|
defaultWidth: 400,
|
|
@@ -3447,14 +3457,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3447
3457
|
auto: ["format", "compress"]
|
|
3448
3458
|
},
|
|
3449
3459
|
alt: authorName
|
|
3450
|
-
}) : /*#__PURE__*/
|
|
3460
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3451
3461
|
src: avatarUrl
|
|
3452
3462
|
})));
|
|
3453
3463
|
};
|
|
3454
3464
|
|
|
3455
3465
|
var isPrefix = function isPrefix(dir) {
|
|
3456
3466
|
if (prefix) {
|
|
3457
|
-
return /*#__PURE__*/
|
|
3467
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3458
3468
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$9)
|
|
3459
3469
|
}, prefix);
|
|
3460
3470
|
}
|
|
@@ -3462,11 +3472,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3462
3472
|
return !hideAuthorImage && authorImage(dir);
|
|
3463
3473
|
};
|
|
3464
3474
|
|
|
3465
|
-
return /*#__PURE__*/
|
|
3475
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3466
3476
|
href: "".concat(mountAt, "/author/") + slug,
|
|
3467
3477
|
"aria-label": "author-name",
|
|
3468
3478
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
|
|
3469
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
3479
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3470
3480
|
"data-test-id": "author-name",
|
|
3471
3481
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
|
|
3472
3482
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -3478,18 +3488,18 @@ function mapStateToProps(state) {
|
|
|
3478
3488
|
};
|
|
3479
3489
|
}
|
|
3480
3490
|
|
|
3481
|
-
var Author = connect(mapStateToProps)(AuthorBase);
|
|
3491
|
+
var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
|
|
3482
3492
|
AuthorBase.propTypes = {
|
|
3483
3493
|
/** The Story Object from the API response */
|
|
3484
|
-
story:
|
|
3494
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3485
3495
|
|
|
3486
3496
|
/** Hide Author Avatar Image */
|
|
3487
|
-
hideAuthorImage:
|
|
3497
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3488
3498
|
// fix Author bottom of the storyCard
|
|
3489
|
-
isBottom:
|
|
3499
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3490
3500
|
// fix prefix before the author name
|
|
3491
|
-
prefix:
|
|
3492
|
-
config:
|
|
3501
|
+
prefix: PropTypes__default["default"].string,
|
|
3502
|
+
config: PropTypes__default["default"].object
|
|
3493
3503
|
};
|
|
3494
3504
|
AuthorBase.defaultProps = {
|
|
3495
3505
|
hideAuthorImage: false,
|
|
@@ -3510,14 +3520,14 @@ var Dot = function Dot(_ref) {
|
|
|
3510
3520
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
3511
3521
|
_ref$color = _ref.color,
|
|
3512
3522
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3513
|
-
return /*#__PURE__*/
|
|
3523
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3514
3524
|
className: _getClassName(color, _styleModuleImportMap$8)
|
|
3515
|
-
}, /*#__PURE__*/
|
|
3525
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3516
3526
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3517
3527
|
width: width,
|
|
3518
3528
|
height: height,
|
|
3519
3529
|
viewBox: "0 0 3 3"
|
|
3520
|
-
}, /*#__PURE__*/
|
|
3530
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
3521
3531
|
cx: "87",
|
|
3522
3532
|
cy: "9",
|
|
3523
3533
|
r: "1",
|
|
@@ -3528,9 +3538,9 @@ var Dot = function Dot(_ref) {
|
|
|
3528
3538
|
};
|
|
3529
3539
|
Dot.propTypes = {
|
|
3530
3540
|
/** height , width and color of the dot icon */
|
|
3531
|
-
color:
|
|
3532
|
-
width:
|
|
3533
|
-
height:
|
|
3541
|
+
color: PropTypes__default["default"].string,
|
|
3542
|
+
width: PropTypes__default["default"].string,
|
|
3543
|
+
height: PropTypes__default["default"].string
|
|
3534
3544
|
};
|
|
3535
3545
|
|
|
3536
3546
|
var _styleModuleImportMap$7 = {
|
|
@@ -3546,22 +3556,22 @@ var Divider = function Divider(_ref) {
|
|
|
3546
3556
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
3547
3557
|
_ref$color = _ref.color,
|
|
3548
3558
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3549
|
-
return /*#__PURE__*/
|
|
3559
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3550
3560
|
className: _getClassName(color, _styleModuleImportMap$7)
|
|
3551
|
-
}, /*#__PURE__*/
|
|
3561
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3552
3562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3553
3563
|
width: width,
|
|
3554
3564
|
height: height
|
|
3555
|
-
}, /*#__PURE__*/
|
|
3565
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3556
3566
|
fill: "inherit",
|
|
3557
3567
|
d: "M0 0h1v10H0z"
|
|
3558
3568
|
})));
|
|
3559
3569
|
};
|
|
3560
3570
|
Divider.propTypes = {
|
|
3561
3571
|
/** height , width and color of the dot icon */
|
|
3562
|
-
color:
|
|
3563
|
-
width:
|
|
3564
|
-
height:
|
|
3572
|
+
color: PropTypes__default["default"].string,
|
|
3573
|
+
width: PropTypes__default["default"].string,
|
|
3574
|
+
height: PropTypes__default["default"].string
|
|
3565
3575
|
};
|
|
3566
3576
|
|
|
3567
3577
|
var _styleModuleImportMap$6 = {
|
|
@@ -3584,23 +3594,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
3584
3594
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
3585
3595
|
if (!showReadTime || !readTime) return null;
|
|
3586
3596
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
3587
|
-
return /*#__PURE__*/
|
|
3597
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3588
3598
|
"data-test-id": "read-time",
|
|
3589
3599
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
|
|
3590
|
-
}, /*#__PURE__*/
|
|
3600
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3591
3601
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
3592
|
-
}, /*#__PURE__*/
|
|
3602
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3593
3603
|
color: textColor
|
|
3594
|
-
})), /*#__PURE__*/
|
|
3604
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
3595
3605
|
};
|
|
3596
3606
|
ReadTime.propTypes = {
|
|
3597
|
-
story:
|
|
3598
|
-
"read-time":
|
|
3607
|
+
story: PropTypes__default["default"].shape({
|
|
3608
|
+
"read-time": PropTypes__default["default"].number
|
|
3599
3609
|
}),
|
|
3600
|
-
opts:
|
|
3601
|
-
showReadTime:
|
|
3610
|
+
opts: PropTypes__default["default"].shape({
|
|
3611
|
+
showReadTime: PropTypes__default["default"].bool
|
|
3602
3612
|
}),
|
|
3603
|
-
isLightTheme:
|
|
3613
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3604
3614
|
};
|
|
3605
3615
|
|
|
3606
3616
|
var _styleModuleImportMap$5 = {
|
|
@@ -3631,33 +3641,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3631
3641
|
|
|
3632
3642
|
var getSeparator = function getSeparator() {
|
|
3633
3643
|
if (separator === "divider") {
|
|
3634
|
-
return /*#__PURE__*/
|
|
3644
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
3635
3645
|
color: textColor
|
|
3636
3646
|
});
|
|
3637
3647
|
}
|
|
3638
3648
|
|
|
3639
|
-
return /*#__PURE__*/
|
|
3649
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3640
3650
|
color: textColor
|
|
3641
3651
|
});
|
|
3642
3652
|
};
|
|
3643
3653
|
|
|
3644
3654
|
var getTimeStamp = function getTimeStamp() {
|
|
3645
3655
|
if (!isTime) return null;
|
|
3646
|
-
return /*#__PURE__*/
|
|
3656
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3647
3657
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$5)
|
|
3648
|
-
}, getSeparator()), /*#__PURE__*/
|
|
3658
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
3649
3659
|
story: story,
|
|
3650
3660
|
config: config
|
|
3651
|
-
}), isReadTime && /*#__PURE__*/
|
|
3661
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
3652
3662
|
story: story,
|
|
3653
3663
|
opts: config,
|
|
3654
3664
|
isLightTheme: isLightTheme
|
|
3655
3665
|
}));
|
|
3656
3666
|
};
|
|
3657
3667
|
|
|
3658
|
-
return /*#__PURE__*/
|
|
3668
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3659
3669
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
|
|
3660
|
-
}, isAuthor ? /*#__PURE__*/
|
|
3670
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
3661
3671
|
story: story,
|
|
3662
3672
|
isBottom: true,
|
|
3663
3673
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -3665,19 +3675,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3665
3675
|
}), getTimeStamp()) : getTimeStamp());
|
|
3666
3676
|
};
|
|
3667
3677
|
AuthorWithTime.propTypes = {
|
|
3668
|
-
story:
|
|
3678
|
+
story: PropTypes__default["default"].object,
|
|
3669
3679
|
|
|
3670
3680
|
/** Style of separator between the Author & Timestamp */
|
|
3671
|
-
separator:
|
|
3681
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
3672
3682
|
|
|
3673
3683
|
/** hide the author image */
|
|
3674
|
-
hideAuthorImage:
|
|
3684
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3675
3685
|
// fix author and time at the end
|
|
3676
|
-
isBottom:
|
|
3686
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3677
3687
|
// fix prefix before the author name
|
|
3678
|
-
prefix:
|
|
3679
|
-
config:
|
|
3680
|
-
isLightTheme:
|
|
3688
|
+
prefix: PropTypes__default["default"].string,
|
|
3689
|
+
config: PropTypes__default["default"].object,
|
|
3690
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3681
3691
|
};
|
|
3682
3692
|
AuthorWithTime.defaultProps = {
|
|
3683
3693
|
separator: "dot",
|
|
@@ -3694,27 +3704,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3694
3704
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
3695
3705
|
_ref$iconColor = _ref.iconColor,
|
|
3696
3706
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
3697
|
-
return /*#__PURE__*/
|
|
3707
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3698
3708
|
width: width,
|
|
3699
3709
|
height: height,
|
|
3700
3710
|
viewBox: "0 0 102 76",
|
|
3701
3711
|
version: "1.1"
|
|
3702
|
-
}, /*#__PURE__*/
|
|
3712
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3703
3713
|
id: "demo-home-copy",
|
|
3704
3714
|
stroke: "none",
|
|
3705
3715
|
strokeWidth: "1",
|
|
3706
3716
|
fill: "none",
|
|
3707
3717
|
fillRule: "evenodd",
|
|
3708
3718
|
transform: "translate(-377.000000, -314.000000)"
|
|
3709
|
-
}, /*#__PURE__*/
|
|
3719
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3710
3720
|
id: "Group-13",
|
|
3711
3721
|
transform: "translate(377.000000, 314.000000)"
|
|
3712
|
-
}, /*#__PURE__*/
|
|
3722
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3713
3723
|
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",
|
|
3714
3724
|
id: "Combined-Shape",
|
|
3715
3725
|
fill: iconColor,
|
|
3716
3726
|
fillRule: "nonzero"
|
|
3717
|
-
}), /*#__PURE__*/
|
|
3727
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3718
3728
|
id: "Rectangle-19",
|
|
3719
3729
|
stroke: iconColor,
|
|
3720
3730
|
strokeWidth: "3",
|
|
@@ -3726,24 +3736,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3726
3736
|
}))));
|
|
3727
3737
|
};
|
|
3728
3738
|
ImageFallbackIcon.propTypes = {
|
|
3729
|
-
width:
|
|
3730
|
-
height:
|
|
3731
|
-
iconColor:
|
|
3739
|
+
width: PropTypes__default["default"].object,
|
|
3740
|
+
height: PropTypes__default["default"].object,
|
|
3741
|
+
iconColor: PropTypes__default["default"].object
|
|
3732
3742
|
};
|
|
3733
3743
|
|
|
3734
3744
|
var imageFallback = function imageFallback() {
|
|
3735
|
-
return /*#__PURE__*/
|
|
3745
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3736
3746
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
3737
|
-
}, /*#__PURE__*/
|
|
3747
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3738
3748
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
3739
|
-
}, /*#__PURE__*/
|
|
3749
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
3740
3750
|
};
|
|
3741
3751
|
|
|
3742
3752
|
var FallbackImage = function FallbackImage(_ref) {
|
|
3743
3753
|
var slug = _ref.slug;
|
|
3744
3754
|
|
|
3745
3755
|
if (slug) {
|
|
3746
|
-
return /*#__PURE__*/
|
|
3756
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3747
3757
|
href: slug,
|
|
3748
3758
|
"aria-label": "image-fallback"
|
|
3749
3759
|
}, imageFallback());
|
|
@@ -3752,23 +3762,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
3752
3762
|
}
|
|
3753
3763
|
};
|
|
3754
3764
|
FallbackImage.propTypes = {
|
|
3755
|
-
slug:
|
|
3765
|
+
slug: PropTypes__default["default"].string
|
|
3756
3766
|
};
|
|
3757
3767
|
|
|
3758
3768
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
3759
|
-
return /*#__PURE__*/
|
|
3769
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3760
3770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3761
3771
|
width: "36",
|
|
3762
3772
|
height: "28"
|
|
3763
|
-
}, /*#__PURE__*/
|
|
3773
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3764
3774
|
fill: "none",
|
|
3765
3775
|
fillRule: "evenodd"
|
|
3766
|
-
}, /*#__PURE__*/
|
|
3776
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3767
3777
|
width: "36",
|
|
3768
3778
|
height: "28",
|
|
3769
3779
|
fill: "#3D6FCF",
|
|
3770
3780
|
rx: "4"
|
|
3771
|
-
}), /*#__PURE__*/
|
|
3781
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3772
3782
|
stroke: "#FFF",
|
|
3773
3783
|
strokeLinecap: "round",
|
|
3774
3784
|
strokeLinejoin: "round",
|
|
@@ -3781,16 +3791,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
3781
3791
|
var _ref$hyperLink = _ref.hyperLink,
|
|
3782
3792
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
3783
3793
|
if (!hyperLink) return null;
|
|
3784
|
-
return /*#__PURE__*/
|
|
3794
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3785
3795
|
href: hyperLink,
|
|
3786
3796
|
"aria-label": "hyperlink-button",
|
|
3787
3797
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
3788
3798
|
target: "_blank",
|
|
3789
3799
|
rel: "noopener noreferrer"
|
|
3790
|
-
}, /*#__PURE__*/
|
|
3800
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
3791
3801
|
};
|
|
3792
3802
|
HyperLink.propTypes = {
|
|
3793
|
-
hyperLink:
|
|
3803
|
+
hyperLink: PropTypes__default["default"].string
|
|
3794
3804
|
};
|
|
3795
3805
|
|
|
3796
3806
|
var _styleModuleImportMap$4 = {
|
|
@@ -3826,7 +3836,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3826
3836
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
3827
3837
|
return null;
|
|
3828
3838
|
} : _config$StoryTemplate;
|
|
3829
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
3839
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
3830
3840
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
3831
3841
|
});
|
|
3832
3842
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -3862,37 +3872,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3862
3872
|
var fallbackImage = function fallbackImage() {
|
|
3863
3873
|
if (!slug) {
|
|
3864
3874
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
3865
|
-
return /*#__PURE__*/
|
|
3875
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3866
3876
|
style: {
|
|
3867
3877
|
paddingTop: imagePadding + "%"
|
|
3868
3878
|
},
|
|
3869
3879
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$4)
|
|
3870
|
-
}, /*#__PURE__*/
|
|
3880
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3871
3881
|
className: "qt-image",
|
|
3872
3882
|
"data-src": "".concat(fallbackImageUrl),
|
|
3873
3883
|
alt: "image-fallback"
|
|
3874
3884
|
}));
|
|
3875
3885
|
}
|
|
3876
3886
|
|
|
3877
|
-
return /*#__PURE__*/
|
|
3887
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3878
3888
|
"data-test-id": "arr--fallback-hero-image",
|
|
3879
3889
|
style: {
|
|
3880
3890
|
paddingTop: imagePadding + "%"
|
|
3881
3891
|
},
|
|
3882
3892
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$4)
|
|
3883
|
-
}, /*#__PURE__*/
|
|
3893
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3884
3894
|
storyTemplate: story["story-template"]
|
|
3885
|
-
}), /*#__PURE__*/
|
|
3895
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
3886
3896
|
}
|
|
3887
3897
|
|
|
3888
|
-
return /*#__PURE__*/
|
|
3898
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3889
3899
|
style: {
|
|
3890
3900
|
paddingTop: imagePadding + "%"
|
|
3891
3901
|
},
|
|
3892
3902
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$4)
|
|
3893
|
-
}, /*#__PURE__*/
|
|
3903
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3894
3904
|
storyTemplate: story["story-template"]
|
|
3895
|
-
}), /*#__PURE__*/
|
|
3905
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
3896
3906
|
story: story,
|
|
3897
3907
|
aspectRatio: imageAspectRatio,
|
|
3898
3908
|
defaultWidth: defaultWidth,
|
|
@@ -3901,15 +3911,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3901
3911
|
auto: ["format", "compress"],
|
|
3902
3912
|
fit: "max"
|
|
3903
3913
|
}
|
|
3904
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
3914
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
3905
3915
|
hyperLink: hyperLink
|
|
3906
3916
|
}));
|
|
3907
3917
|
};
|
|
3908
3918
|
|
|
3909
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
3919
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3910
3920
|
"data-test-id": "arr--hero-image",
|
|
3911
3921
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$4)
|
|
3912
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
3922
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3913
3923
|
"data-test-id": "arr--hero-image",
|
|
3914
3924
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3915
3925
|
externalLink: isExternalStory(story),
|
|
@@ -3919,30 +3929,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3919
3929
|
};
|
|
3920
3930
|
HeroImage.propTypes = {
|
|
3921
3931
|
/** The Story Object from the API response */
|
|
3922
|
-
story:
|
|
3932
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3923
3933
|
|
|
3924
3934
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
3925
|
-
FullBleed:
|
|
3935
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
3926
3936
|
|
|
3927
3937
|
/** The default width for the image, in case the browser does not support srcset */
|
|
3928
|
-
defaultWidth:
|
|
3938
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
3929
3939
|
|
|
3930
3940
|
/** The list of available widths */
|
|
3931
|
-
widths:
|
|
3941
|
+
widths: PropTypes__default["default"].array,
|
|
3932
3942
|
// fatch the correct hero image
|
|
3933
|
-
aspectRatio:
|
|
3943
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
3934
3944
|
// Hints for the browser to choose the best size
|
|
3935
3945
|
|
|
3936
3946
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
3937
|
-
isHorizontal:
|
|
3947
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3938
3948
|
|
|
3939
3949
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
3940
|
-
isHorizontalMobile:
|
|
3950
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3941
3951
|
// this prop is responsive for rendering fallback image on story page
|
|
3942
|
-
defaultFallback:
|
|
3943
|
-
isHorizontalWithImageLast:
|
|
3944
|
-
isStoryPageImage:
|
|
3945
|
-
config:
|
|
3952
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
3953
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
3954
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
3955
|
+
config: PropTypes__default["default"].object
|
|
3946
3956
|
};
|
|
3947
3957
|
HeroImage.defaultProps = {
|
|
3948
3958
|
FullBleed: true,
|
|
@@ -3992,22 +4002,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3992
4002
|
}
|
|
3993
4003
|
|
|
3994
4004
|
if (!isSection) return null;
|
|
3995
|
-
return /*#__PURE__*/
|
|
4005
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3996
4006
|
href: getUrl,
|
|
3997
4007
|
className: "arrow-component arr--section-name",
|
|
3998
4008
|
"aria-label": "section-name"
|
|
3999
|
-
}, /*#__PURE__*/
|
|
4009
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4000
4010
|
"data-test-id": "sectionTag",
|
|
4001
4011
|
style: {
|
|
4002
4012
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
4003
4013
|
},
|
|
4004
4014
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$3)
|
|
4005
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
4015
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4006
4016
|
className: "section-m_border-left__2oUyp",
|
|
4007
4017
|
style: {
|
|
4008
4018
|
color: sectionTagBorderColor
|
|
4009
4019
|
}
|
|
4010
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
4020
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4011
4021
|
className: "section-m_border-bottom__3cRoD",
|
|
4012
4022
|
style: {
|
|
4013
4023
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -4016,13 +4026,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
4016
4026
|
};
|
|
4017
4027
|
SectionTag.propTypes = {
|
|
4018
4028
|
/** The Story Object from the API response */
|
|
4019
|
-
story:
|
|
4029
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4020
4030
|
|
|
4021
4031
|
/** The style template for section tag */
|
|
4022
|
-
template:
|
|
4023
|
-
borderColor:
|
|
4024
|
-
solidBorderColor:
|
|
4025
|
-
isLightTheme:
|
|
4032
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
4033
|
+
borderColor: PropTypes__default["default"].string,
|
|
4034
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
4035
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4026
4036
|
};
|
|
4027
4037
|
SectionTag.defaultProps = {
|
|
4028
4038
|
template: "",
|
|
@@ -4071,7 +4081,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4071
4081
|
prefix = _ref.prefix,
|
|
4072
4082
|
config = _ref.config,
|
|
4073
4083
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
4074
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
4084
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
4075
4085
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
4076
4086
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
4077
4087
|
|
|
@@ -4081,7 +4091,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4081
4091
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
4082
4092
|
var textColor = getTextColor(theme);
|
|
4083
4093
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
4084
|
-
var defaultStorycard = /*#__PURE__*/
|
|
4094
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
4085
4095
|
story: story,
|
|
4086
4096
|
aspectRatio: aspectRatio,
|
|
4087
4097
|
border: border,
|
|
@@ -4095,7 +4105,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4095
4105
|
config: config,
|
|
4096
4106
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
4097
4107
|
});
|
|
4098
|
-
return /*#__PURE__*/
|
|
4108
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4099
4109
|
"data-test-id": "story-card",
|
|
4100
4110
|
style: {
|
|
4101
4111
|
backgroundColor: theme,
|
|
@@ -4124,91 +4134,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
4124
4134
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4125
4135
|
var _config$localizationC = config.localizationConfig,
|
|
4126
4136
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4127
|
-
return /*#__PURE__*/
|
|
4137
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4128
4138
|
config: config,
|
|
4129
4139
|
story: story,
|
|
4130
4140
|
isHorizontal: true,
|
|
4131
4141
|
isHorizontalMobile: isHorizontalMobile,
|
|
4132
4142
|
aspectRatio: aspectRatio
|
|
4133
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
4143
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4134
4144
|
config: config,
|
|
4135
4145
|
story: story,
|
|
4136
4146
|
isHorizontalWithImageLast: true,
|
|
4137
4147
|
isHorizontalMobile: isHorizontalMobile,
|
|
4138
4148
|
aspectRatio: aspectRatio
|
|
4139
|
-
}) : /*#__PURE__*/
|
|
4149
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4140
4150
|
story: story,
|
|
4141
4151
|
config: config,
|
|
4142
4152
|
isHorizontalMobile: isHorizontalMobile,
|
|
4143
4153
|
aspectRatio: aspectRatio
|
|
4144
|
-
}), /*#__PURE__*/
|
|
4154
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4145
4155
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$2)
|
|
4146
|
-
}, /*#__PURE__*/
|
|
4156
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4147
4157
|
story: story,
|
|
4148
4158
|
borderColor: SectionTagborderColor
|
|
4149
|
-
}), /*#__PURE__*/
|
|
4159
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4150
4160
|
story: story,
|
|
4151
4161
|
headerLevel: headerLevel,
|
|
4152
4162
|
premiumStoryIconConfig: config
|
|
4153
|
-
}), /*#__PURE__*/
|
|
4163
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4154
4164
|
config: localizationConfig,
|
|
4155
4165
|
story: story,
|
|
4156
4166
|
isBottom: true,
|
|
4157
4167
|
prefix: prefix,
|
|
4158
4168
|
hideAuthorImage: hideAuthorImage
|
|
4159
|
-
}), /*#__PURE__*/
|
|
4169
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4160
4170
|
story: story
|
|
4161
4171
|
})));
|
|
4162
4172
|
};
|
|
4163
4173
|
|
|
4164
4174
|
DefaultStoryCard.propTypes = {
|
|
4165
|
-
story:
|
|
4166
|
-
border:
|
|
4167
|
-
isBottom:
|
|
4168
|
-
isHorizontal:
|
|
4169
|
-
aspectRatio:
|
|
4170
|
-
isHorizontalMobile:
|
|
4171
|
-
centerAlign:
|
|
4172
|
-
headerLevel:
|
|
4173
|
-
borderColor:
|
|
4174
|
-
hideAuthorImage:
|
|
4175
|
-
prefix:
|
|
4176
|
-
config:
|
|
4177
|
-
isHorizontalWithImageLast:
|
|
4175
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4176
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
4177
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4178
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4179
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4180
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4181
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4182
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4183
|
+
borderColor: PropTypes__default["default"].string,
|
|
4184
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4185
|
+
prefix: PropTypes__default["default"].string,
|
|
4186
|
+
config: PropTypes__default["default"].object,
|
|
4187
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4178
4188
|
};
|
|
4179
4189
|
StoryCard.propTypes = {
|
|
4180
4190
|
/** The Story Object from the API response */
|
|
4181
|
-
story:
|
|
4182
|
-
children:
|
|
4191
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4192
|
+
children: PropTypes__default["default"].node,
|
|
4183
4193
|
|
|
4184
4194
|
/** Flip the Story Card to Horizonal mode */
|
|
4185
|
-
isHorizontal:
|
|
4195
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4186
4196
|
|
|
4187
4197
|
/** Add border to the Story Card */
|
|
4188
|
-
border:
|
|
4198
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
4189
4199
|
// story card with background image
|
|
4190
|
-
useImageAsBackground:
|
|
4200
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
4191
4201
|
// story card content overlap with image
|
|
4192
|
-
bgImgContentOverlap:
|
|
4202
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
4193
4203
|
|
|
4194
4204
|
/** add aspect ratio for hero image */
|
|
4195
|
-
aspectRatio:
|
|
4205
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4196
4206
|
|
|
4197
4207
|
/** add theme(dark /light/custom color) for storycard */
|
|
4198
|
-
theme:
|
|
4208
|
+
theme: PropTypes__default["default"].string,
|
|
4199
4209
|
|
|
4200
4210
|
/** flip the story card mobile design horizontal */
|
|
4201
|
-
isHorizontalMobile:
|
|
4211
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4202
4212
|
// make content center align in desktop and left align in mobile
|
|
4203
|
-
centerAlign:
|
|
4204
|
-
headerLevel:
|
|
4205
|
-
borderColor:
|
|
4213
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4214
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4215
|
+
borderColor: PropTypes__default["default"].string,
|
|
4206
4216
|
// handle author image through storycard
|
|
4207
|
-
hideAuthorImage:
|
|
4217
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4208
4218
|
// handle author prefix through storycard
|
|
4209
|
-
prefix:
|
|
4210
|
-
config:
|
|
4211
|
-
isHorizontalWithImageLast:
|
|
4219
|
+
prefix: PropTypes__default["default"].string,
|
|
4220
|
+
config: PropTypes__default["default"].object,
|
|
4221
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4212
4222
|
};
|
|
4213
4223
|
StoryCard.defaultProps = {
|
|
4214
4224
|
isHorizontal: false,
|
|
@@ -4241,14 +4251,14 @@ var StorycardContent = function StorycardContent(_ref) {
|
|
|
4241
4251
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4242
4252
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
|
|
4243
4253
|
var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
|
|
4244
|
-
return /*#__PURE__*/
|
|
4254
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4245
4255
|
"data-test-id": "story-card-content",
|
|
4246
4256
|
style: {
|
|
4247
4257
|
backgroundColor: theme,
|
|
4248
4258
|
color: textColor
|
|
4249
4259
|
},
|
|
4250
4260
|
className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$1)
|
|
4251
|
-
}, children || /*#__PURE__*/
|
|
4261
|
+
}, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent$1, {
|
|
4252
4262
|
story: story,
|
|
4253
4263
|
headerLevel: headerLevel,
|
|
4254
4264
|
isHorizontalMobile: isHorizontalMobile,
|
|
@@ -4266,37 +4276,37 @@ var DefaultStoryCardContent$1 = function DefaultStoryCardContent(_ref2) {
|
|
|
4266
4276
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4267
4277
|
var _config$localizationC = config.localizationConfig,
|
|
4268
4278
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4269
|
-
return /*#__PURE__*/
|
|
4279
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4270
4280
|
story: story,
|
|
4271
4281
|
borderColor: SectionTagborderColor
|
|
4272
|
-
}), /*#__PURE__*/
|
|
4282
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4273
4283
|
story: story,
|
|
4274
4284
|
headerLevel: headerLevel,
|
|
4275
4285
|
premiumStoryIconConfig: config
|
|
4276
|
-
}), /*#__PURE__*/
|
|
4286
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4277
4287
|
config: localizationConfig,
|
|
4278
4288
|
story: story
|
|
4279
4289
|
}));
|
|
4280
4290
|
};
|
|
4281
4291
|
|
|
4282
4292
|
DefaultStoryCardContent$1.propTypes = {
|
|
4283
|
-
story:
|
|
4284
|
-
border:
|
|
4285
|
-
theme:
|
|
4286
|
-
isHorizontalMobile:
|
|
4287
|
-
headerLevel:
|
|
4288
|
-
borderColor:
|
|
4289
|
-
config:
|
|
4293
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4294
|
+
border: PropTypes__default["default"].string,
|
|
4295
|
+
theme: PropTypes__default["default"].string,
|
|
4296
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4297
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4298
|
+
borderColor: PropTypes__default["default"].string,
|
|
4299
|
+
config: PropTypes__default["default"].object
|
|
4290
4300
|
};
|
|
4291
4301
|
StorycardContent.propTypes = {
|
|
4292
|
-
story:
|
|
4293
|
-
children:
|
|
4294
|
-
theme:
|
|
4295
|
-
border:
|
|
4296
|
-
isHorizontalMobile:
|
|
4297
|
-
headerLevel:
|
|
4298
|
-
borderColor:
|
|
4299
|
-
config:
|
|
4302
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4303
|
+
children: PropTypes__default["default"].node,
|
|
4304
|
+
theme: PropTypes__default["default"].string,
|
|
4305
|
+
border: PropTypes__default["default"].string,
|
|
4306
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4307
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4308
|
+
borderColor: PropTypes__default["default"].string,
|
|
4309
|
+
config: PropTypes__default["default"].object
|
|
4300
4310
|
};
|
|
4301
4311
|
|
|
4302
4312
|
var _styleModuleImportMap = {
|
|
@@ -4341,7 +4351,7 @@ var FourTabbedBigStorySliderBase = function FourTabbedBigStorySliderBase(_ref) {
|
|
|
4341
4351
|
var collection = _ref.collection,
|
|
4342
4352
|
_ref$config = _ref.config,
|
|
4343
4353
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
4344
|
-
var items = collectionToStories(collection);
|
|
4354
|
+
var items = components.collectionToStories(collection);
|
|
4345
4355
|
|
|
4346
4356
|
if (items.length < 1) {
|
|
4347
4357
|
return null;
|
|
@@ -4364,24 +4374,24 @@ var FourTabbedBigStorySliderBase = function FourTabbedBigStorySliderBase(_ref) {
|
|
|
4364
4374
|
_config$showButton = config.showButton,
|
|
4365
4375
|
showButton = _config$showButton === void 0 ? true : _config$showButton;
|
|
4366
4376
|
var footerSlot = footerSlotConfig.footerSlot;
|
|
4367
|
-
var qtConfig = useSelector(function (state) {
|
|
4377
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
4368
4378
|
return get_1(state, ["qt", "config"], {});
|
|
4369
4379
|
});
|
|
4370
4380
|
var url = generateNavigateSlug(collection, qtConfig);
|
|
4371
4381
|
|
|
4372
|
-
var _useState = useState(items[0]),
|
|
4382
|
+
var _useState = React.useState(items[0]),
|
|
4373
4383
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4374
4384
|
currentStory = _useState2[0],
|
|
4375
4385
|
updateCurrentStory = _useState2[1];
|
|
4376
4386
|
|
|
4377
|
-
var _useState3 = useState(0),
|
|
4387
|
+
var _useState3 = React.useState(0),
|
|
4378
4388
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4379
4389
|
active = _useState4[0],
|
|
4380
4390
|
handleActive = _useState4[1];
|
|
4381
4391
|
|
|
4382
4392
|
var footerSlotComp = footerSlot ? footerSlot() : null;
|
|
4383
4393
|
var textColor = getTextColor(theme);
|
|
4384
|
-
var dispatch = useDispatch();
|
|
4394
|
+
var dispatch = reactRedux.useDispatch();
|
|
4385
4395
|
|
|
4386
4396
|
var updateActiveTab = function updateActiveTab(story, index) {
|
|
4387
4397
|
updateCurrentStory(story);
|
|
@@ -4395,50 +4405,50 @@ var FourTabbedBigStorySliderBase = function FourTabbedBigStorySliderBase(_ref) {
|
|
|
4395
4405
|
};
|
|
4396
4406
|
|
|
4397
4407
|
var getCustomStyleName = textColor === "light" ? "light-wrapper" : "";
|
|
4398
|
-
return /*#__PURE__*/
|
|
4408
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4399
4409
|
className: "full-width-with-padding arrow-component",
|
|
4400
4410
|
"data-test-id": "two-col-three-stories",
|
|
4401
4411
|
style: {
|
|
4402
4412
|
backgroundColor: theme,
|
|
4403
4413
|
color: textColor
|
|
4404
4414
|
}
|
|
4405
|
-
}, /*#__PURE__*/
|
|
4415
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4406
4416
|
className: _getClassName("four-tabbed-big-story-slider ".concat(getCustomStyleName), _styleModuleImportMap)
|
|
4407
|
-
}, /*#__PURE__*/
|
|
4417
|
+
}, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
4408
4418
|
collection: collection,
|
|
4409
4419
|
collectionNameTemplate: collectionNameTemplate,
|
|
4410
4420
|
collectionNameBorderColor: collectionNameBorderColor
|
|
4411
|
-
}), /*#__PURE__*/
|
|
4421
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4412
4422
|
story: currentStory,
|
|
4413
4423
|
useImageAsBackground: true
|
|
4414
|
-
}, /*#__PURE__*/
|
|
4424
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4415
4425
|
config: config,
|
|
4416
4426
|
story: currentStory,
|
|
4417
4427
|
aspectRatio: [[16, 9]]
|
|
4418
|
-
}), /*#__PURE__*/
|
|
4428
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4419
4429
|
className: "four-tabbed-big-story-slider-m_story-card-content__2kGFa"
|
|
4420
|
-
}, /*#__PURE__*/
|
|
4430
|
+
}, /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4421
4431
|
story: currentStory
|
|
4422
|
-
}, /*#__PURE__*/
|
|
4432
|
+
}, /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
|
|
4423
4433
|
story: currentStory,
|
|
4424
4434
|
config: config,
|
|
4425
4435
|
borderColor: borderColor,
|
|
4426
4436
|
showSubheadline: showSubheadline
|
|
4427
|
-
})))), /*#__PURE__*/
|
|
4437
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4428
4438
|
className: "stories-wrapper-ftbss four-tabbed-big-story-slider-m_stories-wrapper__3p8-t"
|
|
4429
4439
|
}, items.map(function (story, index) {
|
|
4430
|
-
return /*#__PURE__*/
|
|
4440
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4431
4441
|
onClick: function onClick() {
|
|
4432
4442
|
return updateActiveTab(story, index);
|
|
4433
4443
|
},
|
|
4434
4444
|
key: story.id,
|
|
4435
4445
|
className: ("story-headline-container ".concat(getActiveIndexStylename(index === active)) ? "story-headline-container ".concat(getActiveIndexStylename(index === active)) + " " : "") + _getClassName("story-headline-container ".concat(textColor, "-headline-container ").concat(getActiveIndexStylename(index === active)), _styleModuleImportMap)
|
|
4436
|
-
}, /*#__PURE__*/
|
|
4446
|
+
}, /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4437
4447
|
story: story,
|
|
4438
4448
|
premiumStoryIconConfig: config,
|
|
4439
4449
|
isLink: false
|
|
4440
4450
|
}));
|
|
4441
|
-
})), /*#__PURE__*/
|
|
4451
|
+
})), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
4442
4452
|
template: footerButton,
|
|
4443
4453
|
collection: collection,
|
|
4444
4454
|
config: config,
|
|
@@ -4446,7 +4456,7 @@ var FourTabbedBigStorySliderBase = function FourTabbedBigStorySliderBase(_ref) {
|
|
|
4446
4456
|
return navigateTo(dispatch, url);
|
|
4447
4457
|
},
|
|
4448
4458
|
qtConfig: qtConfig
|
|
4449
|
-
}), /*#__PURE__*/
|
|
4459
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4450
4460
|
className: _getClassName("".concat(showButton ? "" : "no-button-wrapper"), _styleModuleImportMap)
|
|
4451
4461
|
}, footerSlotComp)));
|
|
4452
4462
|
};
|
|
@@ -4460,46 +4470,47 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
|
|
|
4460
4470
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4461
4471
|
var _config$localizationC = config.localizationConfig,
|
|
4462
4472
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4463
|
-
return /*#__PURE__*/
|
|
4473
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4464
4474
|
story: story,
|
|
4465
4475
|
borderColor: SectionTagborderColor,
|
|
4466
4476
|
isLightTheme: true
|
|
4467
|
-
}), /*#__PURE__*/
|
|
4477
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4468
4478
|
story: story,
|
|
4469
4479
|
premiumStoryIconConfig: config
|
|
4470
|
-
}), /*#__PURE__*/
|
|
4480
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4471
4481
|
config: localizationConfig,
|
|
4472
4482
|
story: story,
|
|
4473
4483
|
isLightTheme: true
|
|
4474
|
-
}), showSubheadline && /*#__PURE__*/
|
|
4484
|
+
}), showSubheadline && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4475
4485
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4476
4486
|
externalLink: isExternalStory(story),
|
|
4477
4487
|
"aria-label": "sub-headline"
|
|
4478
|
-
}, /*#__PURE__*/
|
|
4488
|
+
}, /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4479
4489
|
story: story
|
|
4480
4490
|
})));
|
|
4481
4491
|
};
|
|
4482
4492
|
|
|
4483
4493
|
FourTabbedBigStorySliderBase.propTypes = {
|
|
4484
4494
|
/** collection is the array of objects which is returning by API */
|
|
4485
|
-
collection:
|
|
4495
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
4486
4496
|
|
|
4487
4497
|
/** The config for the Row */
|
|
4488
|
-
config:
|
|
4489
|
-
borderColor:
|
|
4490
|
-
theme:
|
|
4491
|
-
border:
|
|
4492
|
-
footerButton:
|
|
4493
|
-
collectionNameTemplate:
|
|
4494
|
-
collectionNameBorderColor:
|
|
4498
|
+
config: PropTypes__default["default"].shape({
|
|
4499
|
+
borderColor: PropTypes__default["default"].string,
|
|
4500
|
+
theme: PropTypes__default["default"].string,
|
|
4501
|
+
border: PropTypes__default["default"].string,
|
|
4502
|
+
footerButton: PropTypes__default["default"].string,
|
|
4503
|
+
collectionNameTemplate: PropTypes__default["default"].string,
|
|
4504
|
+
collectionNameBorderColor: PropTypes__default["default"].string
|
|
4495
4505
|
})
|
|
4496
4506
|
};
|
|
4497
4507
|
DefaultStoryCardContent.propTypes = {
|
|
4498
|
-
story:
|
|
4499
|
-
config:
|
|
4500
|
-
borderColor:
|
|
4501
|
-
showSubheadline:
|
|
4508
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4509
|
+
config: PropTypes__default["default"].object,
|
|
4510
|
+
borderColor: PropTypes__default["default"].string,
|
|
4511
|
+
showSubheadline: PropTypes__default["default"].bool
|
|
4502
4512
|
};
|
|
4503
4513
|
var FourTabbedBigStorySlider = StateProvider(FourTabbedBigStorySliderBase);
|
|
4504
4514
|
|
|
4505
|
-
|
|
4515
|
+
exports.FourTabbedBigStorySlider = FourTabbedBigStorySlider;
|
|
4516
|
+
exports.FourTabbedBigStorySliderBase = FourTabbedBigStorySliderBase;
|