@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 reactRedux = require('react-redux');
|
|
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
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
19
|
|
|
@@ -156,21 +166,21 @@ exports["default"] = _default;
|
|
|
156
166
|
|
|
157
167
|
var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
|
|
158
168
|
|
|
159
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
169
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
160
170
|
|
|
161
171
|
var StateProvider = function StateProvider(RowComponent) {
|
|
162
172
|
return function (props) {
|
|
163
173
|
return (
|
|
164
174
|
/*#__PURE__*/
|
|
165
175
|
// eslint-disable-next-line react/prop-types
|
|
166
|
-
|
|
176
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
167
177
|
value: props.config
|
|
168
|
-
}, /*#__PURE__*/
|
|
178
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
169
179
|
);
|
|
170
180
|
};
|
|
171
181
|
};
|
|
172
182
|
var useStateValue = function useStateValue() {
|
|
173
|
-
return useContext(StateContext);
|
|
183
|
+
return React.useContext(StateContext);
|
|
174
184
|
};
|
|
175
185
|
|
|
176
186
|
/**
|
|
@@ -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);
|
|
@@ -2793,7 +2803,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
2793
2803
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
2794
2804
|
|
|
2795
2805
|
var borderBottomStyle = function borderBottomStyle() {
|
|
2796
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
2806
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2797
2807
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
2798
2808
|
style: {
|
|
2799
2809
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -2853,40 +2863,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
2853
2863
|
}
|
|
2854
2864
|
};
|
|
2855
2865
|
|
|
2856
|
-
return /*#__PURE__*/
|
|
2866
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2857
2867
|
style: {
|
|
2858
2868
|
borderBottom: borderBottomFullStyle
|
|
2859
2869
|
},
|
|
2860
2870
|
"data-test-id": "collection-name",
|
|
2861
2871
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$e)
|
|
2862
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
2872
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2863
2873
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
2864
2874
|
style: {
|
|
2865
2875
|
color: CollectionNameBorderColor,
|
|
2866
2876
|
fontSize: getBorderHeight()
|
|
2867
2877
|
}
|
|
2868
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
2878
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
2869
2879
|
href: slug,
|
|
2870
2880
|
"aria-label": "collection-name"
|
|
2871
|
-
}, /*#__PURE__*/
|
|
2881
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
2872
2882
|
};
|
|
2873
2883
|
CollectionNameBase.propTypes = {
|
|
2874
2884
|
/** Collection name border color */
|
|
2875
|
-
collectionNameBorderColor: PropTypes
|
|
2885
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
2876
2886
|
|
|
2877
2887
|
/** The Collection Object from the API response */
|
|
2878
|
-
collection: PropTypes
|
|
2888
|
+
collection: PropTypes.PropTypes.object,
|
|
2879
2889
|
|
|
2880
2890
|
/** The publisher config from the API response */
|
|
2881
|
-
config: PropTypes
|
|
2891
|
+
config: PropTypes.PropTypes.object,
|
|
2882
2892
|
|
|
2883
2893
|
/** The style template for the component */
|
|
2884
|
-
collectionNameTemplate: PropTypes
|
|
2894
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
2885
2895
|
|
|
2886
2896
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
2887
|
-
headerLevel: PropTypes
|
|
2888
|
-
customCollectionName: PropTypes
|
|
2889
|
-
navigate: PropTypes
|
|
2897
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
2898
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
2899
|
+
navigate: PropTypes.PropTypes.bool
|
|
2890
2900
|
};
|
|
2891
2901
|
CollectionNameBase.defaultProps = {
|
|
2892
2902
|
collectionNameTemplate: "",
|
|
@@ -2899,7 +2909,7 @@ function mapStateToProps$1(state) {
|
|
|
2899
2909
|
};
|
|
2900
2910
|
}
|
|
2901
2911
|
|
|
2902
|
-
var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
|
|
2912
|
+
var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
|
|
2903
2913
|
|
|
2904
2914
|
function _arrayWithHoles(arr) {
|
|
2905
2915
|
if (Array.isArray(arr)) return arr;
|
|
@@ -2969,27 +2979,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
2969
2979
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
2970
2980
|
_ref$iconColor = _ref.iconColor,
|
|
2971
2981
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
2972
|
-
return /*#__PURE__*/
|
|
2982
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2973
2983
|
width: width,
|
|
2974
2984
|
height: height,
|
|
2975
2985
|
viewBox: "0 0 102 76",
|
|
2976
2986
|
version: "1.1"
|
|
2977
|
-
}, /*#__PURE__*/
|
|
2987
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2978
2988
|
id: "demo-home-copy",
|
|
2979
2989
|
stroke: "none",
|
|
2980
2990
|
strokeWidth: "1",
|
|
2981
2991
|
fill: "none",
|
|
2982
2992
|
fillRule: "evenodd",
|
|
2983
2993
|
transform: "translate(-377.000000, -314.000000)"
|
|
2984
|
-
}, /*#__PURE__*/
|
|
2994
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2985
2995
|
id: "Group-13",
|
|
2986
2996
|
transform: "translate(377.000000, 314.000000)"
|
|
2987
|
-
}, /*#__PURE__*/
|
|
2997
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2988
2998
|
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",
|
|
2989
2999
|
id: "Combined-Shape",
|
|
2990
3000
|
fill: iconColor,
|
|
2991
3001
|
fillRule: "nonzero"
|
|
2992
|
-
}), /*#__PURE__*/
|
|
3002
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
2993
3003
|
id: "Rectangle-19",
|
|
2994
3004
|
stroke: iconColor,
|
|
2995
3005
|
strokeWidth: "3",
|
|
@@ -3001,24 +3011,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3001
3011
|
}))));
|
|
3002
3012
|
};
|
|
3003
3013
|
ImageFallbackIcon.propTypes = {
|
|
3004
|
-
width:
|
|
3005
|
-
height:
|
|
3006
|
-
iconColor:
|
|
3014
|
+
width: PropTypes__default["default"].object,
|
|
3015
|
+
height: PropTypes__default["default"].object,
|
|
3016
|
+
iconColor: PropTypes__default["default"].object
|
|
3007
3017
|
};
|
|
3008
3018
|
|
|
3009
3019
|
var imageFallback = function imageFallback() {
|
|
3010
|
-
return /*#__PURE__*/
|
|
3020
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3011
3021
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
3012
|
-
}, /*#__PURE__*/
|
|
3022
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3013
3023
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
3014
|
-
}, /*#__PURE__*/
|
|
3024
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
3015
3025
|
};
|
|
3016
3026
|
|
|
3017
3027
|
var FallbackImage = function FallbackImage(_ref) {
|
|
3018
3028
|
var slug = _ref.slug;
|
|
3019
3029
|
|
|
3020
3030
|
if (slug) {
|
|
3021
|
-
return /*#__PURE__*/
|
|
3031
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3022
3032
|
href: slug,
|
|
3023
3033
|
"aria-label": "image-fallback"
|
|
3024
3034
|
}, imageFallback());
|
|
@@ -3027,23 +3037,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
3027
3037
|
}
|
|
3028
3038
|
};
|
|
3029
3039
|
FallbackImage.propTypes = {
|
|
3030
|
-
slug:
|
|
3040
|
+
slug: PropTypes__default["default"].string
|
|
3031
3041
|
};
|
|
3032
3042
|
|
|
3033
3043
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
3034
|
-
return /*#__PURE__*/
|
|
3044
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3035
3045
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3036
3046
|
width: "36",
|
|
3037
3047
|
height: "28"
|
|
3038
|
-
}, /*#__PURE__*/
|
|
3048
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3039
3049
|
fill: "none",
|
|
3040
3050
|
fillRule: "evenodd"
|
|
3041
|
-
}, /*#__PURE__*/
|
|
3051
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3042
3052
|
width: "36",
|
|
3043
3053
|
height: "28",
|
|
3044
3054
|
fill: "#3D6FCF",
|
|
3045
3055
|
rx: "4"
|
|
3046
|
-
}), /*#__PURE__*/
|
|
3056
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3047
3057
|
stroke: "#FFF",
|
|
3048
3058
|
strokeLinecap: "round",
|
|
3049
3059
|
strokeLinejoin: "round",
|
|
@@ -3056,16 +3066,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
3056
3066
|
var _ref$hyperLink = _ref.hyperLink,
|
|
3057
3067
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
3058
3068
|
if (!hyperLink) return null;
|
|
3059
|
-
return /*#__PURE__*/
|
|
3069
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3060
3070
|
href: hyperLink,
|
|
3061
3071
|
"aria-label": "hyperlink-button",
|
|
3062
3072
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
3063
3073
|
target: "_blank",
|
|
3064
3074
|
rel: "noopener noreferrer"
|
|
3065
|
-
}, /*#__PURE__*/
|
|
3075
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
3066
3076
|
};
|
|
3067
3077
|
HyperLink.propTypes = {
|
|
3068
|
-
hyperLink:
|
|
3078
|
+
hyperLink: PropTypes__default["default"].string
|
|
3069
3079
|
};
|
|
3070
3080
|
|
|
3071
3081
|
var _styleModuleImportMap$d = {
|
|
@@ -3101,7 +3111,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3101
3111
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
3102
3112
|
return null;
|
|
3103
3113
|
} : _config$StoryTemplate;
|
|
3104
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
3114
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
3105
3115
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
3106
3116
|
});
|
|
3107
3117
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -3137,37 +3147,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3137
3147
|
var fallbackImage = function fallbackImage() {
|
|
3138
3148
|
if (!slug) {
|
|
3139
3149
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
3140
|
-
return /*#__PURE__*/
|
|
3150
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3141
3151
|
style: {
|
|
3142
3152
|
paddingTop: imagePadding + "%"
|
|
3143
3153
|
},
|
|
3144
3154
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$d)
|
|
3145
|
-
}, /*#__PURE__*/
|
|
3155
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3146
3156
|
className: "qt-image",
|
|
3147
3157
|
"data-src": "".concat(fallbackImageUrl),
|
|
3148
3158
|
alt: "image-fallback"
|
|
3149
3159
|
}));
|
|
3150
3160
|
}
|
|
3151
3161
|
|
|
3152
|
-
return /*#__PURE__*/
|
|
3162
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3153
3163
|
"data-test-id": "arr--fallback-hero-image",
|
|
3154
3164
|
style: {
|
|
3155
3165
|
paddingTop: imagePadding + "%"
|
|
3156
3166
|
},
|
|
3157
3167
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$d)
|
|
3158
|
-
}, /*#__PURE__*/
|
|
3168
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3159
3169
|
storyTemplate: story["story-template"]
|
|
3160
|
-
}), /*#__PURE__*/
|
|
3170
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
3161
3171
|
}
|
|
3162
3172
|
|
|
3163
|
-
return /*#__PURE__*/
|
|
3173
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3164
3174
|
style: {
|
|
3165
3175
|
paddingTop: imagePadding + "%"
|
|
3166
3176
|
},
|
|
3167
3177
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$d)
|
|
3168
|
-
}, /*#__PURE__*/
|
|
3178
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3169
3179
|
storyTemplate: story["story-template"]
|
|
3170
|
-
}), /*#__PURE__*/
|
|
3180
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
3171
3181
|
story: story,
|
|
3172
3182
|
aspectRatio: imageAspectRatio,
|
|
3173
3183
|
defaultWidth: defaultWidth,
|
|
@@ -3176,15 +3186,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3176
3186
|
auto: ["format", "compress"],
|
|
3177
3187
|
fit: "max"
|
|
3178
3188
|
}
|
|
3179
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
3189
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
3180
3190
|
hyperLink: hyperLink
|
|
3181
3191
|
}));
|
|
3182
3192
|
};
|
|
3183
3193
|
|
|
3184
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
3194
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3185
3195
|
"data-test-id": "arr--hero-image",
|
|
3186
3196
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$d)
|
|
3187
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
3197
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3188
3198
|
"data-test-id": "arr--hero-image",
|
|
3189
3199
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3190
3200
|
externalLink: isExternalStory(story),
|
|
@@ -3194,30 +3204,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3194
3204
|
};
|
|
3195
3205
|
HeroImage.propTypes = {
|
|
3196
3206
|
/** The Story Object from the API response */
|
|
3197
|
-
story:
|
|
3207
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3198
3208
|
|
|
3199
3209
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
3200
|
-
FullBleed:
|
|
3210
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
3201
3211
|
|
|
3202
3212
|
/** The default width for the image, in case the browser does not support srcset */
|
|
3203
|
-
defaultWidth:
|
|
3213
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
3204
3214
|
|
|
3205
3215
|
/** The list of available widths */
|
|
3206
|
-
widths:
|
|
3216
|
+
widths: PropTypes__default["default"].array,
|
|
3207
3217
|
// fatch the correct hero image
|
|
3208
|
-
aspectRatio:
|
|
3218
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
3209
3219
|
// Hints for the browser to choose the best size
|
|
3210
3220
|
|
|
3211
3221
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
3212
|
-
isHorizontal:
|
|
3222
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3213
3223
|
|
|
3214
3224
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
3215
|
-
isHorizontalMobile:
|
|
3225
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3216
3226
|
// this prop is responsive for rendering fallback image on story page
|
|
3217
|
-
defaultFallback:
|
|
3218
|
-
isHorizontalWithImageLast:
|
|
3219
|
-
isStoryPageImage:
|
|
3220
|
-
config:
|
|
3227
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
3228
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
3229
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
3230
|
+
config: PropTypes__default["default"].object
|
|
3221
3231
|
};
|
|
3222
3232
|
HeroImage.defaultProps = {
|
|
3223
3233
|
FullBleed: true,
|
|
@@ -3238,7 +3248,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3238
3248
|
_ref$color = _ref.color,
|
|
3239
3249
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
3240
3250
|
positionTop = _ref.positionTop;
|
|
3241
|
-
return /*#__PURE__*/
|
|
3251
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3242
3252
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3243
3253
|
width: width,
|
|
3244
3254
|
height: height,
|
|
@@ -3247,28 +3257,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3247
3257
|
position: "relative",
|
|
3248
3258
|
top: positionTop
|
|
3249
3259
|
}
|
|
3250
|
-
}, /*#__PURE__*/
|
|
3260
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3251
3261
|
fill: "none",
|
|
3252
3262
|
fillRule: "evenodd",
|
|
3253
3263
|
stroke: "none",
|
|
3254
3264
|
strokeWidth: "1"
|
|
3255
|
-
}, /*#__PURE__*/
|
|
3265
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3256
3266
|
transform: "translate(8 8)"
|
|
3257
|
-
}, /*#__PURE__*/
|
|
3267
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3258
3268
|
d: "M0 0H24V24H0z"
|
|
3259
|
-
}), /*#__PURE__*/
|
|
3269
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3260
3270
|
fill: color,
|
|
3261
3271
|
fillRule: "nonzero",
|
|
3262
3272
|
transform: "translate(0 2)"
|
|
3263
|
-
}, /*#__PURE__*/
|
|
3273
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3264
3274
|
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"
|
|
3265
3275
|
}))))));
|
|
3266
3276
|
};
|
|
3267
3277
|
CrownIcon.propTypes = {
|
|
3268
|
-
height:
|
|
3269
|
-
width:
|
|
3270
|
-
color:
|
|
3271
|
-
positionTop:
|
|
3278
|
+
height: PropTypes__default["default"].string,
|
|
3279
|
+
width: PropTypes__default["default"].string,
|
|
3280
|
+
color: PropTypes__default["default"].string,
|
|
3281
|
+
positionTop: PropTypes__default["default"].string
|
|
3272
3282
|
};
|
|
3273
3283
|
|
|
3274
3284
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -3277,7 +3287,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3277
3287
|
_ref$color = _ref.color,
|
|
3278
3288
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3279
3289
|
positionTop = _ref.positionTop;
|
|
3280
|
-
return /*#__PURE__*/
|
|
3290
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3281
3291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3282
3292
|
width: width,
|
|
3283
3293
|
height: height,
|
|
@@ -3286,16 +3296,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3286
3296
|
position: "relative",
|
|
3287
3297
|
top: positionTop
|
|
3288
3298
|
}
|
|
3289
|
-
}, /*#__PURE__*/
|
|
3299
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3290
3300
|
fill: "none",
|
|
3291
3301
|
fillRule: "evenodd",
|
|
3292
3302
|
stroke: "none",
|
|
3293
3303
|
strokeWidth: "1"
|
|
3294
|
-
}, /*#__PURE__*/
|
|
3304
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3295
3305
|
transform: "translate(8 8)"
|
|
3296
|
-
}, /*#__PURE__*/
|
|
3306
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3297
3307
|
d: "M0 0H24V24H0z"
|
|
3298
|
-
}), /*#__PURE__*/
|
|
3308
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3299
3309
|
fill: color,
|
|
3300
3310
|
fillRule: "nonzero",
|
|
3301
3311
|
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",
|
|
@@ -3303,10 +3313,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3303
3313
|
})))));
|
|
3304
3314
|
};
|
|
3305
3315
|
KeyIcon.propTypes = {
|
|
3306
|
-
height:
|
|
3307
|
-
width:
|
|
3308
|
-
color:
|
|
3309
|
-
positionTop:
|
|
3316
|
+
height: PropTypes__default["default"].string,
|
|
3317
|
+
width: PropTypes__default["default"].string,
|
|
3318
|
+
color: PropTypes__default["default"].string,
|
|
3319
|
+
positionTop: PropTypes__default["default"].string
|
|
3310
3320
|
};
|
|
3311
3321
|
|
|
3312
3322
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -3315,7 +3325,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3315
3325
|
_ref$color = _ref.color,
|
|
3316
3326
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3317
3327
|
positionTop = _ref.positionTop;
|
|
3318
|
-
return /*#__PURE__*/
|
|
3328
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3319
3329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3320
3330
|
width: width,
|
|
3321
3331
|
height: height,
|
|
@@ -3324,28 +3334,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3324
3334
|
position: "relative",
|
|
3325
3335
|
top: positionTop
|
|
3326
3336
|
}
|
|
3327
|
-
}, /*#__PURE__*/
|
|
3337
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3328
3338
|
fill: "none",
|
|
3329
3339
|
fillRule: "evenodd",
|
|
3330
3340
|
stroke: "none",
|
|
3331
3341
|
strokeWidth: "1"
|
|
3332
|
-
}, /*#__PURE__*/
|
|
3342
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3333
3343
|
transform: "translate(8 8)"
|
|
3334
|
-
}, /*#__PURE__*/
|
|
3344
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3335
3345
|
d: "M0 0H24V24H0z"
|
|
3336
|
-
}), /*#__PURE__*/
|
|
3346
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3337
3347
|
fill: color,
|
|
3338
3348
|
fillRule: "nonzero",
|
|
3339
3349
|
transform: "translate(3)"
|
|
3340
|
-
}, /*#__PURE__*/
|
|
3350
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3341
3351
|
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"
|
|
3342
3352
|
}))))));
|
|
3343
3353
|
};
|
|
3344
3354
|
LockIcon.propTypes = {
|
|
3345
|
-
height:
|
|
3346
|
-
width:
|
|
3347
|
-
color:
|
|
3348
|
-
positionTop:
|
|
3355
|
+
height: PropTypes__default["default"].string,
|
|
3356
|
+
width: PropTypes__default["default"].string,
|
|
3357
|
+
color: PropTypes__default["default"].string,
|
|
3358
|
+
positionTop: PropTypes__default["default"].string
|
|
3349
3359
|
};
|
|
3350
3360
|
|
|
3351
3361
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -3355,7 +3365,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3355
3365
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3356
3366
|
_ref$positionTop = _ref.positionTop,
|
|
3357
3367
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
3358
|
-
return /*#__PURE__*/
|
|
3368
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3359
3369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3360
3370
|
width: width,
|
|
3361
3371
|
height: height,
|
|
@@ -3364,21 +3374,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3364
3374
|
position: "relative",
|
|
3365
3375
|
top: positionTop
|
|
3366
3376
|
}
|
|
3367
|
-
}, /*#__PURE__*/
|
|
3377
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3368
3378
|
fill: "none",
|
|
3369
3379
|
fillRule: "evenodd",
|
|
3370
3380
|
stroke: "none",
|
|
3371
3381
|
strokeWidth: "1"
|
|
3372
|
-
}, /*#__PURE__*/
|
|
3382
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3373
3383
|
fill: color,
|
|
3374
3384
|
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"
|
|
3375
3385
|
}))));
|
|
3376
3386
|
};
|
|
3377
3387
|
StarIcon.propTypes = {
|
|
3378
|
-
height:
|
|
3379
|
-
width:
|
|
3380
|
-
color:
|
|
3381
|
-
positionTop:
|
|
3388
|
+
height: PropTypes__default["default"].string,
|
|
3389
|
+
width: PropTypes__default["default"].string,
|
|
3390
|
+
color: PropTypes__default["default"].string,
|
|
3391
|
+
positionTop: PropTypes__default["default"].string
|
|
3382
3392
|
};
|
|
3383
3393
|
|
|
3384
3394
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -3390,7 +3400,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3390
3400
|
|
|
3391
3401
|
switch (iconType) {
|
|
3392
3402
|
case "crown":
|
|
3393
|
-
return /*#__PURE__*/
|
|
3403
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
3394
3404
|
width: width,
|
|
3395
3405
|
height: height,
|
|
3396
3406
|
color: color,
|
|
@@ -3398,7 +3408,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3398
3408
|
});
|
|
3399
3409
|
|
|
3400
3410
|
case "lock":
|
|
3401
|
-
return /*#__PURE__*/
|
|
3411
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
3402
3412
|
width: width,
|
|
3403
3413
|
height: height,
|
|
3404
3414
|
color: color,
|
|
@@ -3406,7 +3416,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3406
3416
|
});
|
|
3407
3417
|
|
|
3408
3418
|
case "key":
|
|
3409
|
-
return /*#__PURE__*/
|
|
3419
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
3410
3420
|
width: width,
|
|
3411
3421
|
height: height,
|
|
3412
3422
|
color: color,
|
|
@@ -3414,7 +3424,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3414
3424
|
});
|
|
3415
3425
|
|
|
3416
3426
|
default:
|
|
3417
|
-
return /*#__PURE__*/
|
|
3427
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
3418
3428
|
width: width,
|
|
3419
3429
|
height: height,
|
|
3420
3430
|
color: color,
|
|
@@ -3423,21 +3433,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3423
3433
|
}
|
|
3424
3434
|
};
|
|
3425
3435
|
PremiumStoryIcon.propTypes = {
|
|
3426
|
-
width:
|
|
3427
|
-
height:
|
|
3428
|
-
color:
|
|
3429
|
-
iconType:
|
|
3430
|
-
positionTop:
|
|
3436
|
+
width: PropTypes__default["default"].string,
|
|
3437
|
+
height: PropTypes__default["default"].string,
|
|
3438
|
+
color: PropTypes__default["default"].string,
|
|
3439
|
+
iconType: PropTypes__default["default"].string,
|
|
3440
|
+
positionTop: PropTypes__default["default"].string
|
|
3431
3441
|
};
|
|
3432
3442
|
|
|
3433
3443
|
function LiveIcon() {
|
|
3434
|
-
return /*#__PURE__*/
|
|
3444
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3435
3445
|
className: "live-icon",
|
|
3436
3446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3437
3447
|
width: "25",
|
|
3438
3448
|
height: "24",
|
|
3439
3449
|
viewBox: "0 0 25 24"
|
|
3440
|
-
}, /*#__PURE__*/
|
|
3450
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3441
3451
|
fill: "#ff5858",
|
|
3442
3452
|
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"
|
|
3443
3453
|
}));
|
|
@@ -3494,37 +3504,37 @@ var Headline = function Headline(_ref) {
|
|
|
3494
3504
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
3495
3505
|
var iconSize = "24px";
|
|
3496
3506
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
3497
|
-
return /*#__PURE__*/
|
|
3507
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3498
3508
|
"data-test-id": "headline",
|
|
3499
3509
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$c)
|
|
3500
|
-
}, premiumStory && /*#__PURE__*/
|
|
3510
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3501
3511
|
width: iconSize,
|
|
3502
3512
|
height: iconSize,
|
|
3503
3513
|
color: iconColor,
|
|
3504
3514
|
iconType: iconStyle,
|
|
3505
3515
|
positionTop: positionHeadline()
|
|
3506
|
-
}), isLink ? /*#__PURE__*/
|
|
3516
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3507
3517
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3508
3518
|
externalLink: isExternalStory(story),
|
|
3509
3519
|
"aria-label": "headline"
|
|
3510
|
-
}, /*#__PURE__*/
|
|
3520
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3511
3521
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
|
|
3512
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3522
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3513
3523
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
|
|
3514
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3524
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
3515
3525
|
};
|
|
3516
3526
|
Headline.propTypes = {
|
|
3517
3527
|
/** The Story Object from the API response */
|
|
3518
|
-
story:
|
|
3528
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3519
3529
|
|
|
3520
3530
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
3521
|
-
headerLevel:
|
|
3522
|
-
premiumStoryIconConfig:
|
|
3523
|
-
iconColor:
|
|
3524
|
-
iconType:
|
|
3525
|
-
enablePremiumStoryIcon:
|
|
3531
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3532
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3533
|
+
iconColor: PropTypes__default["default"].string,
|
|
3534
|
+
iconType: PropTypes__default["default"].string,
|
|
3535
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3526
3536
|
}),
|
|
3527
|
-
isLink:
|
|
3537
|
+
isLink: PropTypes__default["default"].bool
|
|
3528
3538
|
};
|
|
3529
3539
|
Headline.defaultProps = {
|
|
3530
3540
|
headerLevel: "6",
|
|
@@ -3566,22 +3576,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3566
3576
|
}
|
|
3567
3577
|
|
|
3568
3578
|
if (!isSection) return null;
|
|
3569
|
-
return /*#__PURE__*/
|
|
3579
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3570
3580
|
href: getUrl,
|
|
3571
3581
|
className: "arrow-component arr--section-name",
|
|
3572
3582
|
"aria-label": "section-name"
|
|
3573
|
-
}, /*#__PURE__*/
|
|
3583
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3574
3584
|
"data-test-id": "sectionTag",
|
|
3575
3585
|
style: {
|
|
3576
3586
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3577
3587
|
},
|
|
3578
3588
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$b)
|
|
3579
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3589
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3580
3590
|
className: "section-m_border-left__2oUyp",
|
|
3581
3591
|
style: {
|
|
3582
3592
|
color: sectionTagBorderColor
|
|
3583
3593
|
}
|
|
3584
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3594
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3585
3595
|
className: "section-m_border-bottom__3cRoD",
|
|
3586
3596
|
style: {
|
|
3587
3597
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3590,13 +3600,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3590
3600
|
};
|
|
3591
3601
|
SectionTag.propTypes = {
|
|
3592
3602
|
/** The Story Object from the API response */
|
|
3593
|
-
story:
|
|
3603
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3594
3604
|
|
|
3595
3605
|
/** The style template for section tag */
|
|
3596
|
-
template:
|
|
3597
|
-
borderColor:
|
|
3598
|
-
solidBorderColor:
|
|
3599
|
-
isLightTheme:
|
|
3606
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3607
|
+
borderColor: PropTypes__default["default"].string,
|
|
3608
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3609
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3600
3610
|
};
|
|
3601
3611
|
SectionTag.defaultProps = {
|
|
3602
3612
|
template: "",
|
|
@@ -3622,18 +3632,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
3622
3632
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
3623
3633
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
3624
3634
|
var textColor = getTextColor(configState.theme);
|
|
3625
|
-
return /*#__PURE__*/
|
|
3635
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3626
3636
|
"data-test-id": "publish-time",
|
|
3627
3637
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
|
|
3628
|
-
}, /*#__PURE__*/
|
|
3638
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3629
3639
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
3630
3640
|
}, getTimeStamp(time, formatter, config))));
|
|
3631
3641
|
};
|
|
3632
3642
|
TimeStamp.propTypes = {
|
|
3633
3643
|
/** The Story Object from the API response */
|
|
3634
|
-
story:
|
|
3635
|
-
isBottom:
|
|
3636
|
-
config:
|
|
3644
|
+
story: PropTypes__default["default"].object,
|
|
3645
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3646
|
+
config: PropTypes__default["default"].object
|
|
3637
3647
|
};
|
|
3638
3648
|
|
|
3639
3649
|
var _styleModuleImportMap$9 = {
|
|
@@ -3676,10 +3686,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3676
3686
|
return null;
|
|
3677
3687
|
}
|
|
3678
3688
|
|
|
3679
|
-
return /*#__PURE__*/
|
|
3689
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3680
3690
|
"data-test-id": "author-image",
|
|
3681
3691
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
|
|
3682
|
-
}, /*#__PURE__*/
|
|
3692
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
3683
3693
|
slug: avatarS3Key,
|
|
3684
3694
|
"aspect-ratio": [1, 1],
|
|
3685
3695
|
defaultWidth: 400,
|
|
@@ -3687,14 +3697,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3687
3697
|
auto: ["format", "compress"]
|
|
3688
3698
|
},
|
|
3689
3699
|
alt: authorName
|
|
3690
|
-
}) : /*#__PURE__*/
|
|
3700
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3691
3701
|
src: avatarUrl
|
|
3692
3702
|
})));
|
|
3693
3703
|
};
|
|
3694
3704
|
|
|
3695
3705
|
var isPrefix = function isPrefix(dir) {
|
|
3696
3706
|
if (prefix) {
|
|
3697
|
-
return /*#__PURE__*/
|
|
3707
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3698
3708
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$9)
|
|
3699
3709
|
}, prefix);
|
|
3700
3710
|
}
|
|
@@ -3702,11 +3712,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3702
3712
|
return !hideAuthorImage && authorImage(dir);
|
|
3703
3713
|
};
|
|
3704
3714
|
|
|
3705
|
-
return /*#__PURE__*/
|
|
3715
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3706
3716
|
href: "".concat(mountAt, "/author/") + slug,
|
|
3707
3717
|
"aria-label": "author-name",
|
|
3708
3718
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
|
|
3709
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
3719
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3710
3720
|
"data-test-id": "author-name",
|
|
3711
3721
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
|
|
3712
3722
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -3718,18 +3728,18 @@ function mapStateToProps(state) {
|
|
|
3718
3728
|
};
|
|
3719
3729
|
}
|
|
3720
3730
|
|
|
3721
|
-
var Author = connect(mapStateToProps)(AuthorBase);
|
|
3731
|
+
var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
|
|
3722
3732
|
AuthorBase.propTypes = {
|
|
3723
3733
|
/** The Story Object from the API response */
|
|
3724
|
-
story:
|
|
3734
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3725
3735
|
|
|
3726
3736
|
/** Hide Author Avatar Image */
|
|
3727
|
-
hideAuthorImage:
|
|
3737
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3728
3738
|
// fix Author bottom of the storyCard
|
|
3729
|
-
isBottom:
|
|
3739
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3730
3740
|
// fix prefix before the author name
|
|
3731
|
-
prefix:
|
|
3732
|
-
config:
|
|
3741
|
+
prefix: PropTypes__default["default"].string,
|
|
3742
|
+
config: PropTypes__default["default"].object
|
|
3733
3743
|
};
|
|
3734
3744
|
AuthorBase.defaultProps = {
|
|
3735
3745
|
hideAuthorImage: false,
|
|
@@ -3750,14 +3760,14 @@ var Dot = function Dot(_ref) {
|
|
|
3750
3760
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
3751
3761
|
_ref$color = _ref.color,
|
|
3752
3762
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3753
|
-
return /*#__PURE__*/
|
|
3763
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3754
3764
|
className: _getClassName(color, _styleModuleImportMap$8)
|
|
3755
|
-
}, /*#__PURE__*/
|
|
3765
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3756
3766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3757
3767
|
width: width,
|
|
3758
3768
|
height: height,
|
|
3759
3769
|
viewBox: "0 0 3 3"
|
|
3760
|
-
}, /*#__PURE__*/
|
|
3770
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
3761
3771
|
cx: "87",
|
|
3762
3772
|
cy: "9",
|
|
3763
3773
|
r: "1",
|
|
@@ -3768,9 +3778,9 @@ var Dot = function Dot(_ref) {
|
|
|
3768
3778
|
};
|
|
3769
3779
|
Dot.propTypes = {
|
|
3770
3780
|
/** height , width and color of the dot icon */
|
|
3771
|
-
color:
|
|
3772
|
-
width:
|
|
3773
|
-
height:
|
|
3781
|
+
color: PropTypes__default["default"].string,
|
|
3782
|
+
width: PropTypes__default["default"].string,
|
|
3783
|
+
height: PropTypes__default["default"].string
|
|
3774
3784
|
};
|
|
3775
3785
|
|
|
3776
3786
|
var _styleModuleImportMap$7 = {
|
|
@@ -3786,22 +3796,22 @@ var Divider = function Divider(_ref) {
|
|
|
3786
3796
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
3787
3797
|
_ref$color = _ref.color,
|
|
3788
3798
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3789
|
-
return /*#__PURE__*/
|
|
3799
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3790
3800
|
className: _getClassName(color, _styleModuleImportMap$7)
|
|
3791
|
-
}, /*#__PURE__*/
|
|
3801
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3792
3802
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3793
3803
|
width: width,
|
|
3794
3804
|
height: height
|
|
3795
|
-
}, /*#__PURE__*/
|
|
3805
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3796
3806
|
fill: "inherit",
|
|
3797
3807
|
d: "M0 0h1v10H0z"
|
|
3798
3808
|
})));
|
|
3799
3809
|
};
|
|
3800
3810
|
Divider.propTypes = {
|
|
3801
3811
|
/** height , width and color of the dot icon */
|
|
3802
|
-
color:
|
|
3803
|
-
width:
|
|
3804
|
-
height:
|
|
3812
|
+
color: PropTypes__default["default"].string,
|
|
3813
|
+
width: PropTypes__default["default"].string,
|
|
3814
|
+
height: PropTypes__default["default"].string
|
|
3805
3815
|
};
|
|
3806
3816
|
|
|
3807
3817
|
var _styleModuleImportMap$6 = {
|
|
@@ -3824,23 +3834,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
3824
3834
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
3825
3835
|
if (!showReadTime || !readTime) return null;
|
|
3826
3836
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
3827
|
-
return /*#__PURE__*/
|
|
3837
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3828
3838
|
"data-test-id": "read-time",
|
|
3829
3839
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
|
|
3830
|
-
}, /*#__PURE__*/
|
|
3840
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3831
3841
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
3832
|
-
}, /*#__PURE__*/
|
|
3842
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3833
3843
|
color: textColor
|
|
3834
|
-
})), /*#__PURE__*/
|
|
3844
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
3835
3845
|
};
|
|
3836
3846
|
ReadTime.propTypes = {
|
|
3837
|
-
story:
|
|
3838
|
-
"read-time":
|
|
3847
|
+
story: PropTypes__default["default"].shape({
|
|
3848
|
+
"read-time": PropTypes__default["default"].number
|
|
3839
3849
|
}),
|
|
3840
|
-
opts:
|
|
3841
|
-
showReadTime:
|
|
3850
|
+
opts: PropTypes__default["default"].shape({
|
|
3851
|
+
showReadTime: PropTypes__default["default"].bool
|
|
3842
3852
|
}),
|
|
3843
|
-
isLightTheme:
|
|
3853
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3844
3854
|
};
|
|
3845
3855
|
|
|
3846
3856
|
var _styleModuleImportMap$5 = {
|
|
@@ -3871,33 +3881,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3871
3881
|
|
|
3872
3882
|
var getSeparator = function getSeparator() {
|
|
3873
3883
|
if (separator === "divider") {
|
|
3874
|
-
return /*#__PURE__*/
|
|
3884
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
3875
3885
|
color: textColor
|
|
3876
3886
|
});
|
|
3877
3887
|
}
|
|
3878
3888
|
|
|
3879
|
-
return /*#__PURE__*/
|
|
3889
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3880
3890
|
color: textColor
|
|
3881
3891
|
});
|
|
3882
3892
|
};
|
|
3883
3893
|
|
|
3884
3894
|
var getTimeStamp = function getTimeStamp() {
|
|
3885
3895
|
if (!isTime) return null;
|
|
3886
|
-
return /*#__PURE__*/
|
|
3896
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3887
3897
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$5)
|
|
3888
|
-
}, getSeparator()), /*#__PURE__*/
|
|
3898
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
3889
3899
|
story: story,
|
|
3890
3900
|
config: config
|
|
3891
|
-
}), isReadTime && /*#__PURE__*/
|
|
3901
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
3892
3902
|
story: story,
|
|
3893
3903
|
opts: config,
|
|
3894
3904
|
isLightTheme: isLightTheme
|
|
3895
3905
|
}));
|
|
3896
3906
|
};
|
|
3897
3907
|
|
|
3898
|
-
return /*#__PURE__*/
|
|
3908
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3899
3909
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
|
|
3900
|
-
}, isAuthor ? /*#__PURE__*/
|
|
3910
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
3901
3911
|
story: story,
|
|
3902
3912
|
isBottom: true,
|
|
3903
3913
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -3905,19 +3915,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3905
3915
|
}), getTimeStamp()) : getTimeStamp());
|
|
3906
3916
|
};
|
|
3907
3917
|
AuthorWithTime.propTypes = {
|
|
3908
|
-
story:
|
|
3918
|
+
story: PropTypes__default["default"].object,
|
|
3909
3919
|
|
|
3910
3920
|
/** Style of separator between the Author & Timestamp */
|
|
3911
|
-
separator:
|
|
3921
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
3912
3922
|
|
|
3913
3923
|
/** hide the author image */
|
|
3914
|
-
hideAuthorImage:
|
|
3924
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3915
3925
|
// fix author and time at the end
|
|
3916
|
-
isBottom:
|
|
3926
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3917
3927
|
// fix prefix before the author name
|
|
3918
|
-
prefix:
|
|
3919
|
-
config:
|
|
3920
|
-
isLightTheme:
|
|
3928
|
+
prefix: PropTypes__default["default"].string,
|
|
3929
|
+
config: PropTypes__default["default"].object,
|
|
3930
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3921
3931
|
};
|
|
3922
3932
|
AuthorWithTime.defaultProps = {
|
|
3923
3933
|
separator: "dot",
|
|
@@ -3948,14 +3958,14 @@ var StorycardContent = function StorycardContent(_ref) {
|
|
|
3948
3958
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
3949
3959
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
|
|
3950
3960
|
var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
|
|
3951
|
-
return /*#__PURE__*/
|
|
3961
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3952
3962
|
"data-test-id": "story-card-content",
|
|
3953
3963
|
style: {
|
|
3954
3964
|
backgroundColor: theme,
|
|
3955
3965
|
color: textColor
|
|
3956
3966
|
},
|
|
3957
3967
|
className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$4)
|
|
3958
|
-
}, children || /*#__PURE__*/
|
|
3968
|
+
}, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
|
|
3959
3969
|
story: story,
|
|
3960
3970
|
headerLevel: headerLevel,
|
|
3961
3971
|
isHorizontalMobile: isHorizontalMobile,
|
|
@@ -3973,37 +3983,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
|
|
|
3973
3983
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
3974
3984
|
var _config$localizationC = config.localizationConfig,
|
|
3975
3985
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
3976
|
-
return /*#__PURE__*/
|
|
3986
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
3977
3987
|
story: story,
|
|
3978
3988
|
borderColor: SectionTagborderColor
|
|
3979
|
-
}), /*#__PURE__*/
|
|
3989
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
3980
3990
|
story: story,
|
|
3981
3991
|
headerLevel: headerLevel,
|
|
3982
3992
|
premiumStoryIconConfig: config
|
|
3983
|
-
}), /*#__PURE__*/
|
|
3993
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
3984
3994
|
config: localizationConfig,
|
|
3985
3995
|
story: story
|
|
3986
3996
|
}));
|
|
3987
3997
|
};
|
|
3988
3998
|
|
|
3989
3999
|
DefaultStoryCardContent.propTypes = {
|
|
3990
|
-
story:
|
|
3991
|
-
border:
|
|
3992
|
-
theme:
|
|
3993
|
-
isHorizontalMobile:
|
|
3994
|
-
headerLevel:
|
|
3995
|
-
borderColor:
|
|
3996
|
-
config:
|
|
4000
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4001
|
+
border: PropTypes__default["default"].string,
|
|
4002
|
+
theme: PropTypes__default["default"].string,
|
|
4003
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4004
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4005
|
+
borderColor: PropTypes__default["default"].string,
|
|
4006
|
+
config: PropTypes__default["default"].object
|
|
3997
4007
|
};
|
|
3998
4008
|
StorycardContent.propTypes = {
|
|
3999
|
-
story:
|
|
4000
|
-
children:
|
|
4001
|
-
theme:
|
|
4002
|
-
border:
|
|
4003
|
-
isHorizontalMobile:
|
|
4004
|
-
headerLevel:
|
|
4005
|
-
borderColor:
|
|
4006
|
-
config:
|
|
4009
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4010
|
+
children: PropTypes__default["default"].node,
|
|
4011
|
+
theme: PropTypes__default["default"].string,
|
|
4012
|
+
border: PropTypes__default["default"].string,
|
|
4013
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4014
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4015
|
+
borderColor: PropTypes__default["default"].string,
|
|
4016
|
+
config: PropTypes__default["default"].object
|
|
4007
4017
|
};
|
|
4008
4018
|
|
|
4009
4019
|
var _styleModuleImportMap$3 = {
|
|
@@ -4026,7 +4036,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
4026
4036
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
4027
4037
|
if (!subheadline) return null;
|
|
4028
4038
|
var textColor = getTextColor(config.theme);
|
|
4029
|
-
return /*#__PURE__*/
|
|
4039
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4030
4040
|
style: {
|
|
4031
4041
|
WebkitLineClamp: lineClamp
|
|
4032
4042
|
},
|
|
@@ -4036,15 +4046,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
4036
4046
|
};
|
|
4037
4047
|
Subheadline.propTypes = {
|
|
4038
4048
|
/** The Story Object from the API response */
|
|
4039
|
-
story:
|
|
4049
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4040
4050
|
// Restricts the number of lines for subheadline.
|
|
4041
|
-
lineClamp:
|
|
4051
|
+
lineClamp: PropTypes__default["default"].number,
|
|
4042
4052
|
|
|
4043
4053
|
/** Number of characters to truncate the subheadline */
|
|
4044
|
-
truncateChars:
|
|
4045
|
-
clazzName:
|
|
4046
|
-
forceShowAtom:
|
|
4047
|
-
showFullContent:
|
|
4054
|
+
truncateChars: PropTypes__default["default"].number,
|
|
4055
|
+
clazzName: PropTypes__default["default"].string,
|
|
4056
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
4057
|
+
showFullContent: PropTypes__default["default"].bool
|
|
4048
4058
|
};
|
|
4049
4059
|
Subheadline.defaultProps = {
|
|
4050
4060
|
forceShowAtom: false,
|
|
@@ -4093,7 +4103,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4093
4103
|
prefix = _ref.prefix,
|
|
4094
4104
|
config = _ref.config,
|
|
4095
4105
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
4096
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
4106
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
4097
4107
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
4098
4108
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
4099
4109
|
|
|
@@ -4103,7 +4113,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4103
4113
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
4104
4114
|
var textColor = getTextColor(theme);
|
|
4105
4115
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
4106
|
-
var defaultStorycard = /*#__PURE__*/
|
|
4116
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
4107
4117
|
story: story,
|
|
4108
4118
|
aspectRatio: aspectRatio,
|
|
4109
4119
|
border: border,
|
|
@@ -4117,7 +4127,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4117
4127
|
config: config,
|
|
4118
4128
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
4119
4129
|
});
|
|
4120
|
-
return /*#__PURE__*/
|
|
4130
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4121
4131
|
"data-test-id": "story-card",
|
|
4122
4132
|
style: {
|
|
4123
4133
|
backgroundColor: theme,
|
|
@@ -4146,91 +4156,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
4146
4156
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4147
4157
|
var _config$localizationC = config.localizationConfig,
|
|
4148
4158
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4149
|
-
return /*#__PURE__*/
|
|
4159
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4150
4160
|
config: config,
|
|
4151
4161
|
story: story,
|
|
4152
4162
|
isHorizontal: true,
|
|
4153
4163
|
isHorizontalMobile: isHorizontalMobile,
|
|
4154
4164
|
aspectRatio: aspectRatio
|
|
4155
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
4165
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4156
4166
|
config: config,
|
|
4157
4167
|
story: story,
|
|
4158
4168
|
isHorizontalWithImageLast: true,
|
|
4159
4169
|
isHorizontalMobile: isHorizontalMobile,
|
|
4160
4170
|
aspectRatio: aspectRatio
|
|
4161
|
-
}) : /*#__PURE__*/
|
|
4171
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4162
4172
|
story: story,
|
|
4163
4173
|
config: config,
|
|
4164
4174
|
isHorizontalMobile: isHorizontalMobile,
|
|
4165
4175
|
aspectRatio: aspectRatio
|
|
4166
|
-
}), /*#__PURE__*/
|
|
4176
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4167
4177
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$2)
|
|
4168
|
-
}, /*#__PURE__*/
|
|
4178
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4169
4179
|
story: story,
|
|
4170
4180
|
borderColor: SectionTagborderColor
|
|
4171
|
-
}), /*#__PURE__*/
|
|
4181
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4172
4182
|
story: story,
|
|
4173
4183
|
headerLevel: headerLevel,
|
|
4174
4184
|
premiumStoryIconConfig: config
|
|
4175
|
-
}), /*#__PURE__*/
|
|
4185
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4176
4186
|
config: localizationConfig,
|
|
4177
4187
|
story: story,
|
|
4178
4188
|
isBottom: true,
|
|
4179
4189
|
prefix: prefix,
|
|
4180
4190
|
hideAuthorImage: hideAuthorImage
|
|
4181
|
-
}), /*#__PURE__*/
|
|
4191
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4182
4192
|
story: story
|
|
4183
4193
|
})));
|
|
4184
4194
|
};
|
|
4185
4195
|
|
|
4186
4196
|
DefaultStoryCard.propTypes = {
|
|
4187
|
-
story:
|
|
4188
|
-
border:
|
|
4189
|
-
isBottom:
|
|
4190
|
-
isHorizontal:
|
|
4191
|
-
aspectRatio:
|
|
4192
|
-
isHorizontalMobile:
|
|
4193
|
-
centerAlign:
|
|
4194
|
-
headerLevel:
|
|
4195
|
-
borderColor:
|
|
4196
|
-
hideAuthorImage:
|
|
4197
|
-
prefix:
|
|
4198
|
-
config:
|
|
4199
|
-
isHorizontalWithImageLast:
|
|
4197
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4198
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
4199
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4200
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4201
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4202
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4203
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4204
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4205
|
+
borderColor: PropTypes__default["default"].string,
|
|
4206
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4207
|
+
prefix: PropTypes__default["default"].string,
|
|
4208
|
+
config: PropTypes__default["default"].object,
|
|
4209
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4200
4210
|
};
|
|
4201
4211
|
StoryCard.propTypes = {
|
|
4202
4212
|
/** The Story Object from the API response */
|
|
4203
|
-
story:
|
|
4204
|
-
children:
|
|
4213
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4214
|
+
children: PropTypes__default["default"].node,
|
|
4205
4215
|
|
|
4206
4216
|
/** Flip the Story Card to Horizonal mode */
|
|
4207
|
-
isHorizontal:
|
|
4217
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4208
4218
|
|
|
4209
4219
|
/** Add border to the Story Card */
|
|
4210
|
-
border:
|
|
4220
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
4211
4221
|
// story card with background image
|
|
4212
|
-
useImageAsBackground:
|
|
4222
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
4213
4223
|
// story card content overlap with image
|
|
4214
|
-
bgImgContentOverlap:
|
|
4224
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
4215
4225
|
|
|
4216
4226
|
/** add aspect ratio for hero image */
|
|
4217
|
-
aspectRatio:
|
|
4227
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4218
4228
|
|
|
4219
4229
|
/** add theme(dark /light/custom color) for storycard */
|
|
4220
|
-
theme:
|
|
4230
|
+
theme: PropTypes__default["default"].string,
|
|
4221
4231
|
|
|
4222
4232
|
/** flip the story card mobile design horizontal */
|
|
4223
|
-
isHorizontalMobile:
|
|
4233
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4224
4234
|
// make content center align in desktop and left align in mobile
|
|
4225
|
-
centerAlign:
|
|
4226
|
-
headerLevel:
|
|
4227
|
-
borderColor:
|
|
4235
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4236
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4237
|
+
borderColor: PropTypes__default["default"].string,
|
|
4228
4238
|
// handle author image through storycard
|
|
4229
|
-
hideAuthorImage:
|
|
4239
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4230
4240
|
// handle author prefix through storycard
|
|
4231
|
-
prefix:
|
|
4232
|
-
config:
|
|
4233
|
-
isHorizontalWithImageLast:
|
|
4241
|
+
prefix: PropTypes__default["default"].string,
|
|
4242
|
+
config: PropTypes__default["default"].object,
|
|
4243
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4234
4244
|
};
|
|
4235
4245
|
StoryCard.defaultProps = {
|
|
4236
4246
|
isHorizontal: false,
|
|
@@ -4289,26 +4299,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
4289
4299
|
if (!showButton) return null;
|
|
4290
4300
|
var textColor = getTextColor(theme);
|
|
4291
4301
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
4292
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
4302
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4293
4303
|
onClick: onClick,
|
|
4294
4304
|
"data-test-id": "load-more",
|
|
4295
4305
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
|
|
4296
|
-
}, buttonText) : /*#__PURE__*/
|
|
4306
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
4297
4307
|
href: slug,
|
|
4298
4308
|
navigateTo: navigate,
|
|
4299
4309
|
"data-test-id": "load-more",
|
|
4300
4310
|
"aria-label": "load-more"
|
|
4301
|
-
}, /*#__PURE__*/
|
|
4311
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4302
4312
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
|
|
4303
4313
|
}, buttonText));
|
|
4304
4314
|
};
|
|
4305
4315
|
LoadmoreButton.propTypes = {
|
|
4306
|
-
collection:
|
|
4307
|
-
template:
|
|
4308
|
-
config:
|
|
4309
|
-
onClick:
|
|
4310
|
-
navigate:
|
|
4311
|
-
qtConfig:
|
|
4316
|
+
collection: PropTypes__default["default"].object,
|
|
4317
|
+
template: PropTypes__default["default"].string,
|
|
4318
|
+
config: PropTypes__default["default"].object,
|
|
4319
|
+
onClick: PropTypes__default["default"].func,
|
|
4320
|
+
navigate: PropTypes__default["default"].func,
|
|
4321
|
+
qtConfig: PropTypes__default["default"].object
|
|
4312
4322
|
};
|
|
4313
4323
|
|
|
4314
4324
|
var _styleModuleImportMap = {
|
|
@@ -4330,7 +4340,7 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4330
4340
|
var collection = _ref.collection,
|
|
4331
4341
|
_ref$config = _ref.config,
|
|
4332
4342
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
4333
|
-
var items = collectionToStories(collection);
|
|
4343
|
+
var items = components.collectionToStories(collection);
|
|
4334
4344
|
var _config$border = config.border,
|
|
4335
4345
|
border = _config$border === void 0 ? "" : _config$border,
|
|
4336
4346
|
_config$borderColor = config.borderColor,
|
|
@@ -4350,8 +4360,8 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4350
4360
|
return null;
|
|
4351
4361
|
}
|
|
4352
4362
|
|
|
4353
|
-
var dispatch = useDispatch();
|
|
4354
|
-
var qtConfig = useSelector(function (state) {
|
|
4363
|
+
var dispatch = reactRedux.useDispatch();
|
|
4364
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
4355
4365
|
return get_1(state, ["qt", "config"], {});
|
|
4356
4366
|
});
|
|
4357
4367
|
var url = generateNavigateSlug(collection, qtConfig);
|
|
@@ -4365,24 +4375,24 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4365
4375
|
var adWidgetSlot = isAdWidgetEnabled ? getSlot(type, component) : null;
|
|
4366
4376
|
var textColor = getTextColor(theme);
|
|
4367
4377
|
var sectionTagBorderColor = rgbToHex(borderColor);
|
|
4368
|
-
return /*#__PURE__*/
|
|
4378
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4369
4379
|
className: "full-width-with-padding arrow-component",
|
|
4370
4380
|
"data-test-id": "two-col-seven-stories",
|
|
4371
4381
|
style: {
|
|
4372
4382
|
backgroundColor: theme,
|
|
4373
4383
|
color: textColor
|
|
4374
4384
|
}
|
|
4375
|
-
}, /*#__PURE__*/
|
|
4385
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4376
4386
|
className: "two-col-seven-stories-m_two-col-seven-story__Uqk1n"
|
|
4377
|
-
}, /*#__PURE__*/
|
|
4387
|
+
}, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
4378
4388
|
collection: collection,
|
|
4379
4389
|
collectionNameTemplate: collectionNameTemplate,
|
|
4380
4390
|
collectionNameBorderColor: collectionNameBorderColor
|
|
4381
|
-
}), /*#__PURE__*/
|
|
4391
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4382
4392
|
className: "two-col-seven-stories-m_wrapper__21m9m"
|
|
4383
|
-
}, /*#__PURE__*/
|
|
4393
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4384
4394
|
className: "first-card two-col-seven-stories-m_first-card__qcm7t"
|
|
4385
|
-
}, /*#__PURE__*/
|
|
4395
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4386
4396
|
story: items[0],
|
|
4387
4397
|
theme: theme,
|
|
4388
4398
|
border: border,
|
|
@@ -4390,42 +4400,42 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4390
4400
|
headerLevel: "2",
|
|
4391
4401
|
aspectRatio: [[16, 9], [16, 9]],
|
|
4392
4402
|
config: config
|
|
4393
|
-
}, /*#__PURE__*/
|
|
4403
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4394
4404
|
config: config,
|
|
4395
4405
|
story: items[0],
|
|
4396
4406
|
aspectRatio: [[16, 9], [16, 9]]
|
|
4397
|
-
}), /*#__PURE__*/
|
|
4407
|
+
}), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4398
4408
|
story: items[0],
|
|
4399
4409
|
headerLevel: "3",
|
|
4400
4410
|
config: config
|
|
4401
|
-
}, /*#__PURE__*/
|
|
4411
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4402
4412
|
story: items[0],
|
|
4403
4413
|
borderColor: sectionTagBorderColor
|
|
4404
|
-
}), /*#__PURE__*/
|
|
4414
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4405
4415
|
premiumStoryIconConfig: config,
|
|
4406
4416
|
story: items[0],
|
|
4407
4417
|
headerLevel: 2
|
|
4408
|
-
}), /*#__PURE__*/
|
|
4418
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4409
4419
|
story: items[0]
|
|
4410
|
-
}), /*#__PURE__*/
|
|
4420
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4411
4421
|
story: items[0]
|
|
4412
|
-
})))), /*#__PURE__*/
|
|
4422
|
+
})))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4413
4423
|
className: ("divider ".concat(textColor) ? "divider ".concat(textColor) + " " : "") + _getClassName("divider ".concat(textColor), _styleModuleImportMap)
|
|
4414
|
-
}), /*#__PURE__*/
|
|
4424
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4415
4425
|
className: "other-cards two-col-seven-stories-m_other-cards__Y37uk"
|
|
4416
4426
|
}, items.slice(1, 5).map(function (story, index) {
|
|
4417
|
-
return /*#__PURE__*/
|
|
4427
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4418
4428
|
key: index
|
|
4419
|
-
}, /*#__PURE__*/
|
|
4429
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4420
4430
|
story: story,
|
|
4421
4431
|
border: border,
|
|
4422
4432
|
theme: theme,
|
|
4423
4433
|
config: config
|
|
4424
|
-
}, /*#__PURE__*/
|
|
4434
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4425
4435
|
config: config,
|
|
4426
4436
|
story: story,
|
|
4427
4437
|
aspectRatio: [[16, 9], [16, 9]]
|
|
4428
|
-
}), /*#__PURE__*/
|
|
4438
|
+
}), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4429
4439
|
theme: theme,
|
|
4430
4440
|
border: border,
|
|
4431
4441
|
story: story,
|
|
@@ -4434,21 +4444,21 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4434
4444
|
config: config,
|
|
4435
4445
|
separator: "dot"
|
|
4436
4446
|
})));
|
|
4437
|
-
}), adWidgetSlot ? /*#__PURE__*/
|
|
4447
|
+
}), adWidgetSlot ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4438
4448
|
className: "two-col-seven-stories-m_ad-wrapper__z3iIX"
|
|
4439
4449
|
}, adWidgetSlot) : items.slice(5, 7).map(function (story, index) {
|
|
4440
|
-
return /*#__PURE__*/
|
|
4450
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4441
4451
|
key: index
|
|
4442
|
-
}, /*#__PURE__*/
|
|
4452
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4443
4453
|
story: story,
|
|
4444
4454
|
border: border,
|
|
4445
4455
|
theme: theme,
|
|
4446
4456
|
config: config
|
|
4447
|
-
}, /*#__PURE__*/
|
|
4457
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4448
4458
|
config: config,
|
|
4449
4459
|
story: story,
|
|
4450
4460
|
aspectRatio: [[16, 9], [16, 9]]
|
|
4451
|
-
}), /*#__PURE__*/
|
|
4461
|
+
}), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4452
4462
|
theme: theme,
|
|
4453
4463
|
border: border,
|
|
4454
4464
|
story: story,
|
|
@@ -4457,7 +4467,7 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4457
4467
|
config: config,
|
|
4458
4468
|
separator: "dot"
|
|
4459
4469
|
})));
|
|
4460
|
-
}))), /*#__PURE__*/
|
|
4470
|
+
}))), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
4461
4471
|
template: footerButton,
|
|
4462
4472
|
collection: collection,
|
|
4463
4473
|
config: config,
|
|
@@ -4469,16 +4479,16 @@ var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
|
4469
4479
|
};
|
|
4470
4480
|
TwoColSevenStoriesBase.propTypes = {
|
|
4471
4481
|
/** collection is the array of objects which is returning by API */
|
|
4472
|
-
collection:
|
|
4482
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
4473
4483
|
|
|
4474
4484
|
/** The config for the Row */
|
|
4475
|
-
config:
|
|
4476
|
-
borderColor:
|
|
4477
|
-
theme:
|
|
4478
|
-
border:
|
|
4479
|
-
footerButton:
|
|
4480
|
-
collectionNameTemplate:
|
|
4481
|
-
collectionNameBorderColor:
|
|
4485
|
+
config: PropTypes__default["default"].shape({
|
|
4486
|
+
borderColor: PropTypes__default["default"].string,
|
|
4487
|
+
theme: PropTypes__default["default"].string,
|
|
4488
|
+
border: PropTypes__default["default"].string,
|
|
4489
|
+
footerButton: PropTypes__default["default"].string,
|
|
4490
|
+
collectionNameTemplate: PropTypes__default["default"].string,
|
|
4491
|
+
collectionNameBorderColor: PropTypes__default["default"].string
|
|
4482
4492
|
})
|
|
4483
4493
|
};
|
|
4484
4494
|
TwoColSevenStoriesBase.defaultProps = {
|
|
@@ -4487,4 +4497,5 @@ TwoColSevenStoriesBase.defaultProps = {
|
|
|
4487
4497
|
};
|
|
4488
4498
|
var TwoColSevenStories = StateProvider(TwoColSevenStoriesBase);
|
|
4489
4499
|
|
|
4490
|
-
|
|
4500
|
+
exports.TwoColSevenStories = TwoColSevenStories;
|
|
4501
|
+
exports.TwoColSevenStoriesBase = TwoColSevenStoriesBase;
|