@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;
|
|
@@ -2739,15 +2749,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
2739
2749
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2740
2750
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2741
2751
|
};
|
|
2742
|
-
|
|
2743
|
-
"sketches-host":
|
|
2744
|
-
"cdn-name":
|
|
2745
|
-
"cdn-image":
|
|
2752
|
+
PropTypes__default["default"].shape({
|
|
2753
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
2754
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
2755
|
+
"cdn-image": PropTypes__default["default"].string
|
|
2746
2756
|
});
|
|
2747
|
-
|
|
2748
|
-
headline:
|
|
2749
|
-
"last-published-at":
|
|
2750
|
-
subheadline:
|
|
2757
|
+
PropTypes__default["default"].shape({
|
|
2758
|
+
headline: PropTypes__default["default"].string,
|
|
2759
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
2760
|
+
subheadline: PropTypes__default["default"].string
|
|
2751
2761
|
});
|
|
2752
2762
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2753
2763
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -2791,17 +2801,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
2791
2801
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
2792
2802
|
|
|
2793
2803
|
if (timezone && template === "story") {
|
|
2794
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
2795
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2804
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
2805
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2796
2806
|
timeZone: timezone
|
|
2797
2807
|
});
|
|
2798
2808
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
2799
|
-
return /*#__PURE__*/
|
|
2809
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
2800
2810
|
dateTime: formatZonedTime
|
|
2801
2811
|
}, timeStamp);
|
|
2802
2812
|
}
|
|
2803
2813
|
|
|
2804
|
-
return /*#__PURE__*/
|
|
2814
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
2805
2815
|
date: date,
|
|
2806
2816
|
formatter: function formatter(value, unit, suffix, date) {
|
|
2807
2817
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -2809,21 +2819,21 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
2809
2819
|
});
|
|
2810
2820
|
};
|
|
2811
2821
|
|
|
2812
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
2822
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
2813
2823
|
|
|
2814
2824
|
var StateProvider = function StateProvider(RowComponent) {
|
|
2815
2825
|
return function (props) {
|
|
2816
2826
|
return (
|
|
2817
2827
|
/*#__PURE__*/
|
|
2818
2828
|
// eslint-disable-next-line react/prop-types
|
|
2819
|
-
|
|
2829
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
2820
2830
|
value: props.config
|
|
2821
|
-
}, /*#__PURE__*/
|
|
2831
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
2822
2832
|
);
|
|
2823
2833
|
};
|
|
2824
2834
|
};
|
|
2825
2835
|
var useStateValue = function useStateValue() {
|
|
2826
|
-
return useContext(StateContext);
|
|
2836
|
+
return React.useContext(StateContext);
|
|
2827
2837
|
};
|
|
2828
2838
|
|
|
2829
2839
|
var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
@@ -2833,27 +2843,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
2833
2843
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
2834
2844
|
_ref$iconColor = _ref.iconColor,
|
|
2835
2845
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
2836
|
-
return /*#__PURE__*/
|
|
2846
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2837
2847
|
width: width,
|
|
2838
2848
|
height: height,
|
|
2839
2849
|
viewBox: "0 0 102 76",
|
|
2840
2850
|
version: "1.1"
|
|
2841
|
-
}, /*#__PURE__*/
|
|
2851
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2842
2852
|
id: "demo-home-copy",
|
|
2843
2853
|
stroke: "none",
|
|
2844
2854
|
strokeWidth: "1",
|
|
2845
2855
|
fill: "none",
|
|
2846
2856
|
fillRule: "evenodd",
|
|
2847
2857
|
transform: "translate(-377.000000, -314.000000)"
|
|
2848
|
-
}, /*#__PURE__*/
|
|
2858
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2849
2859
|
id: "Group-13",
|
|
2850
2860
|
transform: "translate(377.000000, 314.000000)"
|
|
2851
|
-
}, /*#__PURE__*/
|
|
2861
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2852
2862
|
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",
|
|
2853
2863
|
id: "Combined-Shape",
|
|
2854
2864
|
fill: iconColor,
|
|
2855
2865
|
fillRule: "nonzero"
|
|
2856
|
-
}), /*#__PURE__*/
|
|
2866
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
2857
2867
|
id: "Rectangle-19",
|
|
2858
2868
|
stroke: iconColor,
|
|
2859
2869
|
strokeWidth: "3",
|
|
@@ -2865,24 +2875,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
2865
2875
|
}))));
|
|
2866
2876
|
};
|
|
2867
2877
|
ImageFallbackIcon.propTypes = {
|
|
2868
|
-
width:
|
|
2869
|
-
height:
|
|
2870
|
-
iconColor:
|
|
2878
|
+
width: PropTypes__default["default"].object,
|
|
2879
|
+
height: PropTypes__default["default"].object,
|
|
2880
|
+
iconColor: PropTypes__default["default"].object
|
|
2871
2881
|
};
|
|
2872
2882
|
|
|
2873
2883
|
var imageFallback = function imageFallback() {
|
|
2874
|
-
return /*#__PURE__*/
|
|
2884
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2875
2885
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
2876
|
-
}, /*#__PURE__*/
|
|
2886
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
2877
2887
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
2878
|
-
}, /*#__PURE__*/
|
|
2888
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
2879
2889
|
};
|
|
2880
2890
|
|
|
2881
2891
|
var FallbackImage = function FallbackImage(_ref) {
|
|
2882
2892
|
var slug = _ref.slug;
|
|
2883
2893
|
|
|
2884
2894
|
if (slug) {
|
|
2885
|
-
return /*#__PURE__*/
|
|
2895
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
2886
2896
|
href: slug,
|
|
2887
2897
|
"aria-label": "image-fallback"
|
|
2888
2898
|
}, imageFallback());
|
|
@@ -2891,23 +2901,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
2891
2901
|
}
|
|
2892
2902
|
};
|
|
2893
2903
|
FallbackImage.propTypes = {
|
|
2894
|
-
slug:
|
|
2904
|
+
slug: PropTypes__default["default"].string
|
|
2895
2905
|
};
|
|
2896
2906
|
|
|
2897
2907
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
2898
|
-
return /*#__PURE__*/
|
|
2908
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2899
2909
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2900
2910
|
width: "36",
|
|
2901
2911
|
height: "28"
|
|
2902
|
-
}, /*#__PURE__*/
|
|
2912
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2903
2913
|
fill: "none",
|
|
2904
2914
|
fillRule: "evenodd"
|
|
2905
|
-
}, /*#__PURE__*/
|
|
2915
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
2906
2916
|
width: "36",
|
|
2907
2917
|
height: "28",
|
|
2908
2918
|
fill: "#3D6FCF",
|
|
2909
2919
|
rx: "4"
|
|
2910
|
-
}), /*#__PURE__*/
|
|
2920
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2911
2921
|
stroke: "#FFF",
|
|
2912
2922
|
strokeLinecap: "round",
|
|
2913
2923
|
strokeLinejoin: "round",
|
|
@@ -2920,16 +2930,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
2920
2930
|
var _ref$hyperLink = _ref.hyperLink,
|
|
2921
2931
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
2922
2932
|
if (!hyperLink) return null;
|
|
2923
|
-
return /*#__PURE__*/
|
|
2933
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
2924
2934
|
href: hyperLink,
|
|
2925
2935
|
"aria-label": "hyperlink-button",
|
|
2926
2936
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
2927
2937
|
target: "_blank",
|
|
2928
2938
|
rel: "noopener noreferrer"
|
|
2929
|
-
}, /*#__PURE__*/
|
|
2939
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
2930
2940
|
};
|
|
2931
2941
|
HyperLink.propTypes = {
|
|
2932
|
-
hyperLink:
|
|
2942
|
+
hyperLink: PropTypes__default["default"].string
|
|
2933
2943
|
};
|
|
2934
2944
|
|
|
2935
2945
|
var _styleModuleImportMap$e = {
|
|
@@ -2965,7 +2975,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
2965
2975
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
2966
2976
|
return null;
|
|
2967
2977
|
} : _config$StoryTemplate;
|
|
2968
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
2978
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
2969
2979
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
2970
2980
|
});
|
|
2971
2981
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -3001,37 +3011,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3001
3011
|
var fallbackImage = function fallbackImage() {
|
|
3002
3012
|
if (!slug) {
|
|
3003
3013
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
3004
|
-
return /*#__PURE__*/
|
|
3014
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3005
3015
|
style: {
|
|
3006
3016
|
paddingTop: imagePadding + "%"
|
|
3007
3017
|
},
|
|
3008
3018
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
|
|
3009
|
-
}, /*#__PURE__*/
|
|
3019
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3010
3020
|
className: "qt-image",
|
|
3011
3021
|
"data-src": "".concat(fallbackImageUrl),
|
|
3012
3022
|
alt: "image-fallback"
|
|
3013
3023
|
}));
|
|
3014
3024
|
}
|
|
3015
3025
|
|
|
3016
|
-
return /*#__PURE__*/
|
|
3026
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3017
3027
|
"data-test-id": "arr--fallback-hero-image",
|
|
3018
3028
|
style: {
|
|
3019
3029
|
paddingTop: imagePadding + "%"
|
|
3020
3030
|
},
|
|
3021
3031
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
|
|
3022
|
-
}, /*#__PURE__*/
|
|
3032
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3023
3033
|
storyTemplate: story["story-template"]
|
|
3024
|
-
}), /*#__PURE__*/
|
|
3034
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
3025
3035
|
}
|
|
3026
3036
|
|
|
3027
|
-
return /*#__PURE__*/
|
|
3037
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3028
3038
|
style: {
|
|
3029
3039
|
paddingTop: imagePadding + "%"
|
|
3030
3040
|
},
|
|
3031
3041
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
|
|
3032
|
-
}, /*#__PURE__*/
|
|
3042
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3033
3043
|
storyTemplate: story["story-template"]
|
|
3034
|
-
}), /*#__PURE__*/
|
|
3044
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
3035
3045
|
story: story,
|
|
3036
3046
|
aspectRatio: imageAspectRatio,
|
|
3037
3047
|
defaultWidth: defaultWidth,
|
|
@@ -3040,15 +3050,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3040
3050
|
auto: ["format", "compress"],
|
|
3041
3051
|
fit: "max"
|
|
3042
3052
|
}
|
|
3043
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
3053
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
3044
3054
|
hyperLink: hyperLink
|
|
3045
3055
|
}));
|
|
3046
3056
|
};
|
|
3047
3057
|
|
|
3048
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
3058
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3049
3059
|
"data-test-id": "arr--hero-image",
|
|
3050
3060
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
|
|
3051
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
3061
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3052
3062
|
"data-test-id": "arr--hero-image",
|
|
3053
3063
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3054
3064
|
externalLink: isExternalStory(story),
|
|
@@ -3058,30 +3068,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3058
3068
|
};
|
|
3059
3069
|
HeroImage.propTypes = {
|
|
3060
3070
|
/** The Story Object from the API response */
|
|
3061
|
-
story:
|
|
3071
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3062
3072
|
|
|
3063
3073
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
3064
|
-
FullBleed:
|
|
3074
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
3065
3075
|
|
|
3066
3076
|
/** The default width for the image, in case the browser does not support srcset */
|
|
3067
|
-
defaultWidth:
|
|
3077
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
3068
3078
|
|
|
3069
3079
|
/** The list of available widths */
|
|
3070
|
-
widths:
|
|
3080
|
+
widths: PropTypes__default["default"].array,
|
|
3071
3081
|
// fatch the correct hero image
|
|
3072
|
-
aspectRatio:
|
|
3082
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
3073
3083
|
// Hints for the browser to choose the best size
|
|
3074
3084
|
|
|
3075
3085
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
3076
|
-
isHorizontal:
|
|
3086
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3077
3087
|
|
|
3078
3088
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
3079
|
-
isHorizontalMobile:
|
|
3089
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3080
3090
|
// this prop is responsive for rendering fallback image on story page
|
|
3081
|
-
defaultFallback:
|
|
3082
|
-
isHorizontalWithImageLast:
|
|
3083
|
-
isStoryPageImage:
|
|
3084
|
-
config:
|
|
3091
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
3092
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
3093
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
3094
|
+
config: PropTypes__default["default"].object
|
|
3085
3095
|
};
|
|
3086
3096
|
HeroImage.defaultProps = {
|
|
3087
3097
|
FullBleed: true,
|
|
@@ -3102,7 +3112,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3102
3112
|
_ref$color = _ref.color,
|
|
3103
3113
|
color = _ref$color === void 0 ? "#D8D8D8" : _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 CrownIcon = function CrownIcon(_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(0 2)"
|
|
3127
|
-
}, /*#__PURE__*/
|
|
3137
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3128
3138
|
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"
|
|
3129
3139
|
}))))));
|
|
3130
3140
|
};
|
|
3131
3141
|
CrownIcon.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 KeyIcon = function KeyIcon(_ref) {
|
|
@@ -3141,7 +3151,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3141
3151
|
_ref$color = _ref.color,
|
|
3142
3152
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3143
3153
|
positionTop = _ref.positionTop;
|
|
3144
|
-
return /*#__PURE__*/
|
|
3154
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3145
3155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3146
3156
|
width: width,
|
|
3147
3157
|
height: height,
|
|
@@ -3150,16 +3160,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3150
3160
|
position: "relative",
|
|
3151
3161
|
top: positionTop
|
|
3152
3162
|
}
|
|
3153
|
-
}, /*#__PURE__*/
|
|
3163
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3154
3164
|
fill: "none",
|
|
3155
3165
|
fillRule: "evenodd",
|
|
3156
3166
|
stroke: "none",
|
|
3157
3167
|
strokeWidth: "1"
|
|
3158
|
-
}, /*#__PURE__*/
|
|
3168
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3159
3169
|
transform: "translate(8 8)"
|
|
3160
|
-
}, /*#__PURE__*/
|
|
3170
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3161
3171
|
d: "M0 0H24V24H0z"
|
|
3162
|
-
}), /*#__PURE__*/
|
|
3172
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3163
3173
|
fill: color,
|
|
3164
3174
|
fillRule: "nonzero",
|
|
3165
3175
|
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",
|
|
@@ -3167,10 +3177,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3167
3177
|
})))));
|
|
3168
3178
|
};
|
|
3169
3179
|
KeyIcon.propTypes = {
|
|
3170
|
-
height:
|
|
3171
|
-
width:
|
|
3172
|
-
color:
|
|
3173
|
-
positionTop:
|
|
3180
|
+
height: PropTypes__default["default"].string,
|
|
3181
|
+
width: PropTypes__default["default"].string,
|
|
3182
|
+
color: PropTypes__default["default"].string,
|
|
3183
|
+
positionTop: PropTypes__default["default"].string
|
|
3174
3184
|
};
|
|
3175
3185
|
|
|
3176
3186
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -3179,7 +3189,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3179
3189
|
_ref$color = _ref.color,
|
|
3180
3190
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3181
3191
|
positionTop = _ref.positionTop;
|
|
3182
|
-
return /*#__PURE__*/
|
|
3192
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3183
3193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3184
3194
|
width: width,
|
|
3185
3195
|
height: height,
|
|
@@ -3188,28 +3198,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3188
3198
|
position: "relative",
|
|
3189
3199
|
top: positionTop
|
|
3190
3200
|
}
|
|
3191
|
-
}, /*#__PURE__*/
|
|
3201
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3192
3202
|
fill: "none",
|
|
3193
3203
|
fillRule: "evenodd",
|
|
3194
3204
|
stroke: "none",
|
|
3195
3205
|
strokeWidth: "1"
|
|
3196
|
-
}, /*#__PURE__*/
|
|
3206
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3197
3207
|
transform: "translate(8 8)"
|
|
3198
|
-
}, /*#__PURE__*/
|
|
3208
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3199
3209
|
d: "M0 0H24V24H0z"
|
|
3200
|
-
}), /*#__PURE__*/
|
|
3210
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3201
3211
|
fill: color,
|
|
3202
3212
|
fillRule: "nonzero",
|
|
3203
3213
|
transform: "translate(3)"
|
|
3204
|
-
}, /*#__PURE__*/
|
|
3214
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3205
3215
|
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"
|
|
3206
3216
|
}))))));
|
|
3207
3217
|
};
|
|
3208
3218
|
LockIcon.propTypes = {
|
|
3209
|
-
height:
|
|
3210
|
-
width:
|
|
3211
|
-
color:
|
|
3212
|
-
positionTop:
|
|
3219
|
+
height: PropTypes__default["default"].string,
|
|
3220
|
+
width: PropTypes__default["default"].string,
|
|
3221
|
+
color: PropTypes__default["default"].string,
|
|
3222
|
+
positionTop: PropTypes__default["default"].string
|
|
3213
3223
|
};
|
|
3214
3224
|
|
|
3215
3225
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -3219,7 +3229,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3219
3229
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3220
3230
|
_ref$positionTop = _ref.positionTop,
|
|
3221
3231
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
3222
|
-
return /*#__PURE__*/
|
|
3232
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3223
3233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3224
3234
|
width: width,
|
|
3225
3235
|
height: height,
|
|
@@ -3228,21 +3238,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3228
3238
|
position: "relative",
|
|
3229
3239
|
top: positionTop
|
|
3230
3240
|
}
|
|
3231
|
-
}, /*#__PURE__*/
|
|
3241
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3232
3242
|
fill: "none",
|
|
3233
3243
|
fillRule: "evenodd",
|
|
3234
3244
|
stroke: "none",
|
|
3235
3245
|
strokeWidth: "1"
|
|
3236
|
-
}, /*#__PURE__*/
|
|
3246
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3237
3247
|
fill: color,
|
|
3238
3248
|
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"
|
|
3239
3249
|
}))));
|
|
3240
3250
|
};
|
|
3241
3251
|
StarIcon.propTypes = {
|
|
3242
|
-
height:
|
|
3243
|
-
width:
|
|
3244
|
-
color:
|
|
3245
|
-
positionTop:
|
|
3252
|
+
height: PropTypes__default["default"].string,
|
|
3253
|
+
width: PropTypes__default["default"].string,
|
|
3254
|
+
color: PropTypes__default["default"].string,
|
|
3255
|
+
positionTop: PropTypes__default["default"].string
|
|
3246
3256
|
};
|
|
3247
3257
|
|
|
3248
3258
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -3254,7 +3264,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3254
3264
|
|
|
3255
3265
|
switch (iconType) {
|
|
3256
3266
|
case "crown":
|
|
3257
|
-
return /*#__PURE__*/
|
|
3267
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
3258
3268
|
width: width,
|
|
3259
3269
|
height: height,
|
|
3260
3270
|
color: color,
|
|
@@ -3262,7 +3272,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3262
3272
|
});
|
|
3263
3273
|
|
|
3264
3274
|
case "lock":
|
|
3265
|
-
return /*#__PURE__*/
|
|
3275
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
3266
3276
|
width: width,
|
|
3267
3277
|
height: height,
|
|
3268
3278
|
color: color,
|
|
@@ -3270,7 +3280,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3270
3280
|
});
|
|
3271
3281
|
|
|
3272
3282
|
case "key":
|
|
3273
|
-
return /*#__PURE__*/
|
|
3283
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
3274
3284
|
width: width,
|
|
3275
3285
|
height: height,
|
|
3276
3286
|
color: color,
|
|
@@ -3278,7 +3288,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3278
3288
|
});
|
|
3279
3289
|
|
|
3280
3290
|
default:
|
|
3281
|
-
return /*#__PURE__*/
|
|
3291
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
3282
3292
|
width: width,
|
|
3283
3293
|
height: height,
|
|
3284
3294
|
color: color,
|
|
@@ -3287,21 +3297,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3287
3297
|
}
|
|
3288
3298
|
};
|
|
3289
3299
|
PremiumStoryIcon.propTypes = {
|
|
3290
|
-
width:
|
|
3291
|
-
height:
|
|
3292
|
-
color:
|
|
3293
|
-
iconType:
|
|
3294
|
-
positionTop:
|
|
3300
|
+
width: PropTypes__default["default"].string,
|
|
3301
|
+
height: PropTypes__default["default"].string,
|
|
3302
|
+
color: PropTypes__default["default"].string,
|
|
3303
|
+
iconType: PropTypes__default["default"].string,
|
|
3304
|
+
positionTop: PropTypes__default["default"].string
|
|
3295
3305
|
};
|
|
3296
3306
|
|
|
3297
3307
|
function LiveIcon() {
|
|
3298
|
-
return /*#__PURE__*/
|
|
3308
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3299
3309
|
className: "live-icon",
|
|
3300
3310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3301
3311
|
width: "25",
|
|
3302
3312
|
height: "24",
|
|
3303
3313
|
viewBox: "0 0 25 24"
|
|
3304
|
-
}, /*#__PURE__*/
|
|
3314
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3305
3315
|
fill: "#ff5858",
|
|
3306
3316
|
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"
|
|
3307
3317
|
}));
|
|
@@ -3358,37 +3368,37 @@ var Headline = function Headline(_ref) {
|
|
|
3358
3368
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
3359
3369
|
var iconSize = "24px";
|
|
3360
3370
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
3361
|
-
return /*#__PURE__*/
|
|
3371
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3362
3372
|
"data-test-id": "headline",
|
|
3363
3373
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
|
|
3364
|
-
}, premiumStory && /*#__PURE__*/
|
|
3374
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3365
3375
|
width: iconSize,
|
|
3366
3376
|
height: iconSize,
|
|
3367
3377
|
color: iconColor,
|
|
3368
3378
|
iconType: iconStyle,
|
|
3369
3379
|
positionTop: positionHeadline()
|
|
3370
|
-
}), isLink ? /*#__PURE__*/
|
|
3380
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3371
3381
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3372
3382
|
externalLink: isExternalStory(story),
|
|
3373
3383
|
"aria-label": "headline"
|
|
3374
|
-
}, /*#__PURE__*/
|
|
3384
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3375
3385
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
|
|
3376
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3386
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3377
3387
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
|
|
3378
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3388
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
3379
3389
|
};
|
|
3380
3390
|
Headline.propTypes = {
|
|
3381
3391
|
/** The Story Object from the API response */
|
|
3382
|
-
story:
|
|
3392
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3383
3393
|
|
|
3384
3394
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
3385
|
-
headerLevel:
|
|
3386
|
-
premiumStoryIconConfig:
|
|
3387
|
-
iconColor:
|
|
3388
|
-
iconType:
|
|
3389
|
-
enablePremiumStoryIcon:
|
|
3395
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3396
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3397
|
+
iconColor: PropTypes__default["default"].string,
|
|
3398
|
+
iconType: PropTypes__default["default"].string,
|
|
3399
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3390
3400
|
}),
|
|
3391
|
-
isLink:
|
|
3401
|
+
isLink: PropTypes__default["default"].bool
|
|
3392
3402
|
};
|
|
3393
3403
|
Headline.defaultProps = {
|
|
3394
3404
|
headerLevel: "6",
|
|
@@ -3415,7 +3425,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3415
3425
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3416
3426
|
if (!subheadline) return null;
|
|
3417
3427
|
var textColor = getTextColor(config.theme);
|
|
3418
|
-
return /*#__PURE__*/
|
|
3428
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3419
3429
|
style: {
|
|
3420
3430
|
WebkitLineClamp: lineClamp
|
|
3421
3431
|
},
|
|
@@ -3425,15 +3435,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3425
3435
|
};
|
|
3426
3436
|
Subheadline.propTypes = {
|
|
3427
3437
|
/** The Story Object from the API response */
|
|
3428
|
-
story:
|
|
3438
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3429
3439
|
// Restricts the number of lines for subheadline.
|
|
3430
|
-
lineClamp:
|
|
3440
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3431
3441
|
|
|
3432
3442
|
/** Number of characters to truncate the subheadline */
|
|
3433
|
-
truncateChars:
|
|
3434
|
-
clazzName:
|
|
3435
|
-
forceShowAtom:
|
|
3436
|
-
showFullContent:
|
|
3443
|
+
truncateChars: PropTypes__default["default"].number,
|
|
3444
|
+
clazzName: PropTypes__default["default"].string,
|
|
3445
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
3446
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3437
3447
|
};
|
|
3438
3448
|
Subheadline.defaultProps = {
|
|
3439
3449
|
forceShowAtom: false,
|
|
@@ -3459,18 +3469,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
3459
3469
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
3460
3470
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
3461
3471
|
var textColor = getTextColor(configState.theme);
|
|
3462
|
-
return /*#__PURE__*/
|
|
3472
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3463
3473
|
"data-test-id": "publish-time",
|
|
3464
3474
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
|
|
3465
|
-
}, /*#__PURE__*/
|
|
3475
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3466
3476
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
3467
3477
|
}, getTimeStamp(time, formatter, config))));
|
|
3468
3478
|
};
|
|
3469
3479
|
TimeStamp.propTypes = {
|
|
3470
3480
|
/** The Story Object from the API response */
|
|
3471
|
-
story:
|
|
3472
|
-
isBottom:
|
|
3473
|
-
config:
|
|
3481
|
+
story: PropTypes__default["default"].object,
|
|
3482
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3483
|
+
config: PropTypes__default["default"].object
|
|
3474
3484
|
};
|
|
3475
3485
|
|
|
3476
3486
|
var _styleModuleImportMap$a = {
|
|
@@ -3513,10 +3523,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3513
3523
|
return null;
|
|
3514
3524
|
}
|
|
3515
3525
|
|
|
3516
|
-
return /*#__PURE__*/
|
|
3526
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3517
3527
|
"data-test-id": "author-image",
|
|
3518
3528
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
|
|
3519
|
-
}, /*#__PURE__*/
|
|
3529
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
3520
3530
|
slug: avatarS3Key,
|
|
3521
3531
|
"aspect-ratio": [1, 1],
|
|
3522
3532
|
defaultWidth: 400,
|
|
@@ -3524,14 +3534,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3524
3534
|
auto: ["format", "compress"]
|
|
3525
3535
|
},
|
|
3526
3536
|
alt: authorName
|
|
3527
|
-
}) : /*#__PURE__*/
|
|
3537
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3528
3538
|
src: avatarUrl
|
|
3529
3539
|
})));
|
|
3530
3540
|
};
|
|
3531
3541
|
|
|
3532
3542
|
var isPrefix = function isPrefix(dir) {
|
|
3533
3543
|
if (prefix) {
|
|
3534
|
-
return /*#__PURE__*/
|
|
3544
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3535
3545
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
|
|
3536
3546
|
}, prefix);
|
|
3537
3547
|
}
|
|
@@ -3539,11 +3549,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3539
3549
|
return !hideAuthorImage && authorImage(dir);
|
|
3540
3550
|
};
|
|
3541
3551
|
|
|
3542
|
-
return /*#__PURE__*/
|
|
3552
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3543
3553
|
href: "".concat(mountAt, "/author/") + slug,
|
|
3544
3554
|
"aria-label": "author-name",
|
|
3545
3555
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
|
|
3546
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
3556
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3547
3557
|
"data-test-id": "author-name",
|
|
3548
3558
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
|
|
3549
3559
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -3555,18 +3565,18 @@ function mapStateToProps$1(state) {
|
|
|
3555
3565
|
};
|
|
3556
3566
|
}
|
|
3557
3567
|
|
|
3558
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
3568
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
3559
3569
|
AuthorBase.propTypes = {
|
|
3560
3570
|
/** The Story Object from the API response */
|
|
3561
|
-
story:
|
|
3571
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3562
3572
|
|
|
3563
3573
|
/** Hide Author Avatar Image */
|
|
3564
|
-
hideAuthorImage:
|
|
3574
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3565
3575
|
// fix Author bottom of the storyCard
|
|
3566
|
-
isBottom:
|
|
3576
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3567
3577
|
// fix prefix before the author name
|
|
3568
|
-
prefix:
|
|
3569
|
-
config:
|
|
3578
|
+
prefix: PropTypes__default["default"].string,
|
|
3579
|
+
config: PropTypes__default["default"].object
|
|
3570
3580
|
};
|
|
3571
3581
|
AuthorBase.defaultProps = {
|
|
3572
3582
|
hideAuthorImage: false,
|
|
@@ -3587,14 +3597,14 @@ var Dot = function Dot(_ref) {
|
|
|
3587
3597
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
3588
3598
|
_ref$color = _ref.color,
|
|
3589
3599
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3590
|
-
return /*#__PURE__*/
|
|
3600
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3591
3601
|
className: _getClassName(color, _styleModuleImportMap$9)
|
|
3592
|
-
}, /*#__PURE__*/
|
|
3602
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3593
3603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3594
3604
|
width: width,
|
|
3595
3605
|
height: height,
|
|
3596
3606
|
viewBox: "0 0 3 3"
|
|
3597
|
-
}, /*#__PURE__*/
|
|
3607
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
3598
3608
|
cx: "87",
|
|
3599
3609
|
cy: "9",
|
|
3600
3610
|
r: "1",
|
|
@@ -3605,9 +3615,9 @@ var Dot = function Dot(_ref) {
|
|
|
3605
3615
|
};
|
|
3606
3616
|
Dot.propTypes = {
|
|
3607
3617
|
/** height , width and color of the dot icon */
|
|
3608
|
-
color:
|
|
3609
|
-
width:
|
|
3610
|
-
height:
|
|
3618
|
+
color: PropTypes__default["default"].string,
|
|
3619
|
+
width: PropTypes__default["default"].string,
|
|
3620
|
+
height: PropTypes__default["default"].string
|
|
3611
3621
|
};
|
|
3612
3622
|
|
|
3613
3623
|
var _styleModuleImportMap$8 = {
|
|
@@ -3623,22 +3633,22 @@ var Divider = function Divider(_ref) {
|
|
|
3623
3633
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
3624
3634
|
_ref$color = _ref.color,
|
|
3625
3635
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3626
|
-
return /*#__PURE__*/
|
|
3636
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3627
3637
|
className: _getClassName(color, _styleModuleImportMap$8)
|
|
3628
|
-
}, /*#__PURE__*/
|
|
3638
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3629
3639
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3630
3640
|
width: width,
|
|
3631
3641
|
height: height
|
|
3632
|
-
}, /*#__PURE__*/
|
|
3642
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3633
3643
|
fill: "inherit",
|
|
3634
3644
|
d: "M0 0h1v10H0z"
|
|
3635
3645
|
})));
|
|
3636
3646
|
};
|
|
3637
3647
|
Divider.propTypes = {
|
|
3638
3648
|
/** height , width and color of the dot icon */
|
|
3639
|
-
color:
|
|
3640
|
-
width:
|
|
3641
|
-
height:
|
|
3649
|
+
color: PropTypes__default["default"].string,
|
|
3650
|
+
width: PropTypes__default["default"].string,
|
|
3651
|
+
height: PropTypes__default["default"].string
|
|
3642
3652
|
};
|
|
3643
3653
|
|
|
3644
3654
|
var _styleModuleImportMap$7 = {
|
|
@@ -3661,23 +3671,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
3661
3671
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
3662
3672
|
if (!showReadTime || !readTime) return null;
|
|
3663
3673
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
3664
|
-
return /*#__PURE__*/
|
|
3674
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3665
3675
|
"data-test-id": "read-time",
|
|
3666
3676
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
|
|
3667
|
-
}, /*#__PURE__*/
|
|
3677
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3668
3678
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
3669
|
-
}, /*#__PURE__*/
|
|
3679
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3670
3680
|
color: textColor
|
|
3671
|
-
})), /*#__PURE__*/
|
|
3681
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
3672
3682
|
};
|
|
3673
3683
|
ReadTime.propTypes = {
|
|
3674
|
-
story:
|
|
3675
|
-
"read-time":
|
|
3684
|
+
story: PropTypes__default["default"].shape({
|
|
3685
|
+
"read-time": PropTypes__default["default"].number
|
|
3676
3686
|
}),
|
|
3677
|
-
opts:
|
|
3678
|
-
showReadTime:
|
|
3687
|
+
opts: PropTypes__default["default"].shape({
|
|
3688
|
+
showReadTime: PropTypes__default["default"].bool
|
|
3679
3689
|
}),
|
|
3680
|
-
isLightTheme:
|
|
3690
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3681
3691
|
};
|
|
3682
3692
|
|
|
3683
3693
|
var _styleModuleImportMap$6 = {
|
|
@@ -3708,33 +3718,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3708
3718
|
|
|
3709
3719
|
var getSeparator = function getSeparator() {
|
|
3710
3720
|
if (separator === "divider") {
|
|
3711
|
-
return /*#__PURE__*/
|
|
3721
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
3712
3722
|
color: textColor
|
|
3713
3723
|
});
|
|
3714
3724
|
}
|
|
3715
3725
|
|
|
3716
|
-
return /*#__PURE__*/
|
|
3726
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3717
3727
|
color: textColor
|
|
3718
3728
|
});
|
|
3719
3729
|
};
|
|
3720
3730
|
|
|
3721
3731
|
var getTimeStamp = function getTimeStamp() {
|
|
3722
3732
|
if (!isTime) return null;
|
|
3723
|
-
return /*#__PURE__*/
|
|
3733
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3724
3734
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
|
|
3725
|
-
}, getSeparator()), /*#__PURE__*/
|
|
3735
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
3726
3736
|
story: story,
|
|
3727
3737
|
config: config
|
|
3728
|
-
}), isReadTime && /*#__PURE__*/
|
|
3738
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
3729
3739
|
story: story,
|
|
3730
3740
|
opts: config,
|
|
3731
3741
|
isLightTheme: isLightTheme
|
|
3732
3742
|
}));
|
|
3733
3743
|
};
|
|
3734
3744
|
|
|
3735
|
-
return /*#__PURE__*/
|
|
3745
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3736
3746
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
|
|
3737
|
-
}, isAuthor ? /*#__PURE__*/
|
|
3747
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
3738
3748
|
story: story,
|
|
3739
3749
|
isBottom: true,
|
|
3740
3750
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -3742,19 +3752,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3742
3752
|
}), getTimeStamp()) : getTimeStamp());
|
|
3743
3753
|
};
|
|
3744
3754
|
AuthorWithTime.propTypes = {
|
|
3745
|
-
story:
|
|
3755
|
+
story: PropTypes__default["default"].object,
|
|
3746
3756
|
|
|
3747
3757
|
/** Style of separator between the Author & Timestamp */
|
|
3748
|
-
separator:
|
|
3758
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
3749
3759
|
|
|
3750
3760
|
/** hide the author image */
|
|
3751
|
-
hideAuthorImage:
|
|
3761
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3752
3762
|
// fix author and time at the end
|
|
3753
|
-
isBottom:
|
|
3763
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3754
3764
|
// fix prefix before the author name
|
|
3755
|
-
prefix:
|
|
3756
|
-
config:
|
|
3757
|
-
isLightTheme:
|
|
3765
|
+
prefix: PropTypes__default["default"].string,
|
|
3766
|
+
config: PropTypes__default["default"].object,
|
|
3767
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3758
3768
|
};
|
|
3759
3769
|
AuthorWithTime.defaultProps = {
|
|
3760
3770
|
separator: "dot",
|
|
@@ -3799,22 +3809,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3799
3809
|
}
|
|
3800
3810
|
|
|
3801
3811
|
if (!isSection) return null;
|
|
3802
|
-
return /*#__PURE__*/
|
|
3812
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3803
3813
|
href: getUrl,
|
|
3804
3814
|
className: "arrow-component arr--section-name",
|
|
3805
3815
|
"aria-label": "section-name"
|
|
3806
|
-
}, /*#__PURE__*/
|
|
3816
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3807
3817
|
"data-test-id": "sectionTag",
|
|
3808
3818
|
style: {
|
|
3809
3819
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3810
3820
|
},
|
|
3811
3821
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$5)
|
|
3812
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3822
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3813
3823
|
className: "section-m_border-left__2oUyp",
|
|
3814
3824
|
style: {
|
|
3815
3825
|
color: sectionTagBorderColor
|
|
3816
3826
|
}
|
|
3817
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3827
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3818
3828
|
className: "section-m_border-bottom__3cRoD",
|
|
3819
3829
|
style: {
|
|
3820
3830
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3823,13 +3833,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3823
3833
|
};
|
|
3824
3834
|
SectionTag.propTypes = {
|
|
3825
3835
|
/** The Story Object from the API response */
|
|
3826
|
-
story:
|
|
3836
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3827
3837
|
|
|
3828
3838
|
/** The style template for section tag */
|
|
3829
|
-
template:
|
|
3830
|
-
borderColor:
|
|
3831
|
-
solidBorderColor:
|
|
3832
|
-
isLightTheme:
|
|
3839
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3840
|
+
borderColor: PropTypes__default["default"].string,
|
|
3841
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3842
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3833
3843
|
};
|
|
3834
3844
|
SectionTag.defaultProps = {
|
|
3835
3845
|
template: "",
|
|
@@ -3878,7 +3888,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3878
3888
|
prefix = _ref.prefix,
|
|
3879
3889
|
config = _ref.config,
|
|
3880
3890
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
3881
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
3891
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
3882
3892
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
3883
3893
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
3884
3894
|
|
|
@@ -3888,7 +3898,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3888
3898
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
3889
3899
|
var textColor = getTextColor(theme);
|
|
3890
3900
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
3891
|
-
var defaultStorycard = /*#__PURE__*/
|
|
3901
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
3892
3902
|
story: story,
|
|
3893
3903
|
aspectRatio: aspectRatio,
|
|
3894
3904
|
border: border,
|
|
@@ -3902,7 +3912,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3902
3912
|
config: config,
|
|
3903
3913
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
3904
3914
|
});
|
|
3905
|
-
return /*#__PURE__*/
|
|
3915
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3906
3916
|
"data-test-id": "story-card",
|
|
3907
3917
|
style: {
|
|
3908
3918
|
backgroundColor: theme,
|
|
@@ -3931,91 +3941,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
3931
3941
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
3932
3942
|
var _config$localizationC = config.localizationConfig,
|
|
3933
3943
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
3934
|
-
return /*#__PURE__*/
|
|
3944
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3935
3945
|
config: config,
|
|
3936
3946
|
story: story,
|
|
3937
3947
|
isHorizontal: true,
|
|
3938
3948
|
isHorizontalMobile: isHorizontalMobile,
|
|
3939
3949
|
aspectRatio: aspectRatio
|
|
3940
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
3950
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3941
3951
|
config: config,
|
|
3942
3952
|
story: story,
|
|
3943
3953
|
isHorizontalWithImageLast: true,
|
|
3944
3954
|
isHorizontalMobile: isHorizontalMobile,
|
|
3945
3955
|
aspectRatio: aspectRatio
|
|
3946
|
-
}) : /*#__PURE__*/
|
|
3956
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3947
3957
|
story: story,
|
|
3948
3958
|
config: config,
|
|
3949
3959
|
isHorizontalMobile: isHorizontalMobile,
|
|
3950
3960
|
aspectRatio: aspectRatio
|
|
3951
|
-
}), /*#__PURE__*/
|
|
3961
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3952
3962
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$4)
|
|
3953
|
-
}, /*#__PURE__*/
|
|
3963
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
3954
3964
|
story: story,
|
|
3955
3965
|
borderColor: SectionTagborderColor
|
|
3956
|
-
}), /*#__PURE__*/
|
|
3966
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
3957
3967
|
story: story,
|
|
3958
3968
|
headerLevel: headerLevel,
|
|
3959
3969
|
premiumStoryIconConfig: config
|
|
3960
|
-
}), /*#__PURE__*/
|
|
3970
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
3961
3971
|
config: localizationConfig,
|
|
3962
3972
|
story: story,
|
|
3963
3973
|
isBottom: true,
|
|
3964
3974
|
prefix: prefix,
|
|
3965
3975
|
hideAuthorImage: hideAuthorImage
|
|
3966
|
-
}), /*#__PURE__*/
|
|
3976
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
3967
3977
|
story: story
|
|
3968
3978
|
})));
|
|
3969
3979
|
};
|
|
3970
3980
|
|
|
3971
3981
|
DefaultStoryCard.propTypes = {
|
|
3972
|
-
story:
|
|
3973
|
-
border:
|
|
3974
|
-
isBottom:
|
|
3975
|
-
isHorizontal:
|
|
3976
|
-
aspectRatio:
|
|
3977
|
-
isHorizontalMobile:
|
|
3978
|
-
centerAlign:
|
|
3979
|
-
headerLevel:
|
|
3980
|
-
borderColor:
|
|
3981
|
-
hideAuthorImage:
|
|
3982
|
-
prefix:
|
|
3983
|
-
config:
|
|
3984
|
-
isHorizontalWithImageLast:
|
|
3982
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3983
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
3984
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3985
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3986
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
3987
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3988
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
3989
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3990
|
+
borderColor: PropTypes__default["default"].string,
|
|
3991
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3992
|
+
prefix: PropTypes__default["default"].string,
|
|
3993
|
+
config: PropTypes__default["default"].object,
|
|
3994
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
3985
3995
|
};
|
|
3986
3996
|
StoryCard.propTypes = {
|
|
3987
3997
|
/** The Story Object from the API response */
|
|
3988
|
-
story:
|
|
3989
|
-
children:
|
|
3998
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3999
|
+
children: PropTypes__default["default"].node,
|
|
3990
4000
|
|
|
3991
4001
|
/** Flip the Story Card to Horizonal mode */
|
|
3992
|
-
isHorizontal:
|
|
4002
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3993
4003
|
|
|
3994
4004
|
/** Add border to the Story Card */
|
|
3995
|
-
border:
|
|
4005
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
3996
4006
|
// story card with background image
|
|
3997
|
-
useImageAsBackground:
|
|
4007
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
3998
4008
|
// story card content overlap with image
|
|
3999
|
-
bgImgContentOverlap:
|
|
4009
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
4000
4010
|
|
|
4001
4011
|
/** add aspect ratio for hero image */
|
|
4002
|
-
aspectRatio:
|
|
4012
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4003
4013
|
|
|
4004
4014
|
/** add theme(dark /light/custom color) for storycard */
|
|
4005
|
-
theme:
|
|
4015
|
+
theme: PropTypes__default["default"].string,
|
|
4006
4016
|
|
|
4007
4017
|
/** flip the story card mobile design horizontal */
|
|
4008
|
-
isHorizontalMobile:
|
|
4018
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4009
4019
|
// make content center align in desktop and left align in mobile
|
|
4010
|
-
centerAlign:
|
|
4011
|
-
headerLevel:
|
|
4012
|
-
borderColor:
|
|
4020
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4021
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4022
|
+
borderColor: PropTypes__default["default"].string,
|
|
4013
4023
|
// handle author image through storycard
|
|
4014
|
-
hideAuthorImage:
|
|
4024
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4015
4025
|
// handle author prefix through storycard
|
|
4016
|
-
prefix:
|
|
4017
|
-
config:
|
|
4018
|
-
isHorizontalWithImageLast:
|
|
4026
|
+
prefix: PropTypes__default["default"].string,
|
|
4027
|
+
config: PropTypes__default["default"].object,
|
|
4028
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4019
4029
|
};
|
|
4020
4030
|
StoryCard.defaultProps = {
|
|
4021
4031
|
isHorizontal: false,
|
|
@@ -4048,14 +4058,14 @@ var StorycardContent = function StorycardContent(_ref) {
|
|
|
4048
4058
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4049
4059
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
|
|
4050
4060
|
var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
|
|
4051
|
-
return /*#__PURE__*/
|
|
4061
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4052
4062
|
"data-test-id": "story-card-content",
|
|
4053
4063
|
style: {
|
|
4054
4064
|
backgroundColor: theme,
|
|
4055
4065
|
color: textColor
|
|
4056
4066
|
},
|
|
4057
4067
|
className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$3)
|
|
4058
|
-
}, children || /*#__PURE__*/
|
|
4068
|
+
}, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
|
|
4059
4069
|
story: story,
|
|
4060
4070
|
headerLevel: headerLevel,
|
|
4061
4071
|
isHorizontalMobile: isHorizontalMobile,
|
|
@@ -4073,37 +4083,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
|
|
|
4073
4083
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4074
4084
|
var _config$localizationC = config.localizationConfig,
|
|
4075
4085
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4076
|
-
return /*#__PURE__*/
|
|
4086
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4077
4087
|
story: story,
|
|
4078
4088
|
borderColor: SectionTagborderColor
|
|
4079
|
-
}), /*#__PURE__*/
|
|
4089
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4080
4090
|
story: story,
|
|
4081
4091
|
headerLevel: headerLevel,
|
|
4082
4092
|
premiumStoryIconConfig: config
|
|
4083
|
-
}), /*#__PURE__*/
|
|
4093
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4084
4094
|
config: localizationConfig,
|
|
4085
4095
|
story: story
|
|
4086
4096
|
}));
|
|
4087
4097
|
};
|
|
4088
4098
|
|
|
4089
4099
|
DefaultStoryCardContent.propTypes = {
|
|
4090
|
-
story:
|
|
4091
|
-
border:
|
|
4092
|
-
theme:
|
|
4093
|
-
isHorizontalMobile:
|
|
4094
|
-
headerLevel:
|
|
4095
|
-
borderColor:
|
|
4096
|
-
config:
|
|
4100
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4101
|
+
border: PropTypes__default["default"].string,
|
|
4102
|
+
theme: PropTypes__default["default"].string,
|
|
4103
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4104
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4105
|
+
borderColor: PropTypes__default["default"].string,
|
|
4106
|
+
config: PropTypes__default["default"].object
|
|
4097
4107
|
};
|
|
4098
4108
|
StorycardContent.propTypes = {
|
|
4099
|
-
story:
|
|
4100
|
-
children:
|
|
4101
|
-
theme:
|
|
4102
|
-
border:
|
|
4103
|
-
isHorizontalMobile:
|
|
4104
|
-
headerLevel:
|
|
4105
|
-
borderColor:
|
|
4106
|
-
config:
|
|
4109
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4110
|
+
children: PropTypes__default["default"].node,
|
|
4111
|
+
theme: PropTypes__default["default"].string,
|
|
4112
|
+
border: PropTypes__default["default"].string,
|
|
4113
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4114
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4115
|
+
borderColor: PropTypes__default["default"].string,
|
|
4116
|
+
config: PropTypes__default["default"].object
|
|
4107
4117
|
};
|
|
4108
4118
|
|
|
4109
4119
|
var _styleModuleImportMap$2 = {
|
|
@@ -4142,7 +4152,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4142
4152
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
4143
4153
|
|
|
4144
4154
|
var borderBottomStyle = function borderBottomStyle() {
|
|
4145
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
4155
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4146
4156
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
4147
4157
|
style: {
|
|
4148
4158
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -4202,40 +4212,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4202
4212
|
}
|
|
4203
4213
|
};
|
|
4204
4214
|
|
|
4205
|
-
return /*#__PURE__*/
|
|
4215
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4206
4216
|
style: {
|
|
4207
4217
|
borderBottom: borderBottomFullStyle
|
|
4208
4218
|
},
|
|
4209
4219
|
"data-test-id": "collection-name",
|
|
4210
4220
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$2)
|
|
4211
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
4221
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4212
4222
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
4213
4223
|
style: {
|
|
4214
4224
|
color: CollectionNameBorderColor,
|
|
4215
4225
|
fontSize: getBorderHeight()
|
|
4216
4226
|
}
|
|
4217
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
4227
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4218
4228
|
href: slug,
|
|
4219
4229
|
"aria-label": "collection-name"
|
|
4220
|
-
}, /*#__PURE__*/
|
|
4230
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
4221
4231
|
};
|
|
4222
4232
|
CollectionNameBase.propTypes = {
|
|
4223
4233
|
/** Collection name border color */
|
|
4224
|
-
collectionNameBorderColor: PropTypes
|
|
4234
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
4225
4235
|
|
|
4226
4236
|
/** The Collection Object from the API response */
|
|
4227
|
-
collection: PropTypes
|
|
4237
|
+
collection: PropTypes.PropTypes.object,
|
|
4228
4238
|
|
|
4229
4239
|
/** The publisher config from the API response */
|
|
4230
|
-
config: PropTypes
|
|
4240
|
+
config: PropTypes.PropTypes.object,
|
|
4231
4241
|
|
|
4232
4242
|
/** The style template for the component */
|
|
4233
|
-
collectionNameTemplate: PropTypes
|
|
4243
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
4234
4244
|
|
|
4235
4245
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4236
|
-
headerLevel: PropTypes
|
|
4237
|
-
customCollectionName: PropTypes
|
|
4238
|
-
navigate: PropTypes
|
|
4246
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
4247
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
4248
|
+
navigate: PropTypes.PropTypes.bool
|
|
4239
4249
|
};
|
|
4240
4250
|
CollectionNameBase.defaultProps = {
|
|
4241
4251
|
collectionNameTemplate: "",
|
|
@@ -4248,7 +4258,7 @@ function mapStateToProps(state) {
|
|
|
4248
4258
|
};
|
|
4249
4259
|
}
|
|
4250
4260
|
|
|
4251
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
4261
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
4252
4262
|
|
|
4253
4263
|
function _defineProperty(obj, key, value) {
|
|
4254
4264
|
if (key in obj) {
|
|
@@ -4297,26 +4307,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
4297
4307
|
if (!showButton) return null;
|
|
4298
4308
|
var textColor = getTextColor(theme);
|
|
4299
4309
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
4300
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
4310
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4301
4311
|
onClick: onClick,
|
|
4302
4312
|
"data-test-id": "load-more",
|
|
4303
4313
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
|
|
4304
|
-
}, buttonText) : /*#__PURE__*/
|
|
4314
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
4305
4315
|
href: slug,
|
|
4306
4316
|
navigateTo: navigate,
|
|
4307
4317
|
"data-test-id": "load-more",
|
|
4308
4318
|
"aria-label": "load-more"
|
|
4309
|
-
}, /*#__PURE__*/
|
|
4319
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4310
4320
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
|
|
4311
4321
|
}, buttonText));
|
|
4312
4322
|
};
|
|
4313
4323
|
LoadmoreButton.propTypes = {
|
|
4314
|
-
collection:
|
|
4315
|
-
template:
|
|
4316
|
-
config:
|
|
4317
|
-
onClick:
|
|
4318
|
-
navigate:
|
|
4319
|
-
qtConfig:
|
|
4324
|
+
collection: PropTypes__default["default"].object,
|
|
4325
|
+
template: PropTypes__default["default"].string,
|
|
4326
|
+
config: PropTypes__default["default"].object,
|
|
4327
|
+
onClick: PropTypes__default["default"].func,
|
|
4328
|
+
navigate: PropTypes__default["default"].func,
|
|
4329
|
+
qtConfig: PropTypes__default["default"].object
|
|
4320
4330
|
};
|
|
4321
4331
|
|
|
4322
4332
|
var _styleModuleImportMap = {
|
|
@@ -4339,7 +4349,7 @@ var TwoColSixStoriesBase = function TwoColSixStoriesBase(_ref) {
|
|
|
4339
4349
|
var collection = _ref.collection,
|
|
4340
4350
|
_ref$config = _ref.config,
|
|
4341
4351
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
4342
|
-
var stories = collectionToStories(collection);
|
|
4352
|
+
var stories = components.collectionToStories(collection);
|
|
4343
4353
|
var _config$collectionNam = config.collectionNameBorderColor,
|
|
4344
4354
|
collectionNameBorderColor = _config$collectionNam === void 0 ? "" : _config$collectionNam,
|
|
4345
4355
|
_config$theme = config.theme,
|
|
@@ -4360,8 +4370,8 @@ var TwoColSixStoriesBase = function TwoColSixStoriesBase(_ref) {
|
|
|
4360
4370
|
|
|
4361
4371
|
var textColor = getTextColor(theme);
|
|
4362
4372
|
var borderStyle = border === "fullBorder" ? "border" : "";
|
|
4363
|
-
var dispatch = useDispatch();
|
|
4364
|
-
var qtConfig = useSelector(function (state) {
|
|
4373
|
+
var dispatch = reactRedux.useDispatch();
|
|
4374
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
4365
4375
|
return get_1(state, ["qt", "config"], {});
|
|
4366
4376
|
});
|
|
4367
4377
|
var url = generateNavigateSlug(collection, qtConfig);
|
|
@@ -4374,21 +4384,21 @@ var TwoColSixStoriesBase = function TwoColSixStoriesBase(_ref) {
|
|
|
4374
4384
|
|
|
4375
4385
|
var storySlot = function storySlot() {
|
|
4376
4386
|
return otherStories.slice(3, 5).map(function (story, index) {
|
|
4377
|
-
return /*#__PURE__*/
|
|
4387
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4378
4388
|
key: index,
|
|
4379
4389
|
className: "card " + _getClassName("card ".concat(borderStyle, " ").concat(textColor), _styleModuleImportMap)
|
|
4380
|
-
}, /*#__PURE__*/
|
|
4390
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4381
4391
|
story: story,
|
|
4382
4392
|
theme: theme,
|
|
4383
4393
|
headerLevel: "4",
|
|
4384
4394
|
isHorizontalWithImageLast: true,
|
|
4385
4395
|
config: config
|
|
4386
|
-
}, /*#__PURE__*/
|
|
4396
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4387
4397
|
config: config,
|
|
4388
4398
|
story: story,
|
|
4389
4399
|
isHorizontalWithImageLast: true,
|
|
4390
4400
|
aspectRatio: [[16, 9]]
|
|
4391
|
-
}), /*#__PURE__*/
|
|
4401
|
+
}), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4392
4402
|
theme: theme,
|
|
4393
4403
|
story: story,
|
|
4394
4404
|
config: config,
|
|
@@ -4398,79 +4408,79 @@ var TwoColSixStoriesBase = function TwoColSixStoriesBase(_ref) {
|
|
|
4398
4408
|
};
|
|
4399
4409
|
|
|
4400
4410
|
var slot = getSlot(type, component, storySlot);
|
|
4401
|
-
return /*#__PURE__*/
|
|
4411
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4402
4412
|
className: "full-width-with-padding arrow-component",
|
|
4403
4413
|
"data-test-id": "two-col-six-stories",
|
|
4404
4414
|
style: {
|
|
4405
4415
|
backgroundColor: theme,
|
|
4406
4416
|
color: textColor
|
|
4407
4417
|
}
|
|
4408
|
-
}, /*#__PURE__*/
|
|
4418
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4409
4419
|
className: "two-col-six-stories-m_two-col-six-stories__2L-D_",
|
|
4410
4420
|
style: {
|
|
4411
4421
|
backgroundColor: theme,
|
|
4412
4422
|
color: textColor
|
|
4413
4423
|
}
|
|
4414
|
-
}, /*#__PURE__*/
|
|
4424
|
+
}, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
4415
4425
|
collection: collection,
|
|
4416
4426
|
collectionNameTemplate: collectionNameTemplate,
|
|
4417
4427
|
collectionNameBorderColor: collectionNameBorderColor,
|
|
4418
4428
|
headerLevel: 2
|
|
4419
|
-
}), /*#__PURE__*/
|
|
4429
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4420
4430
|
className: "two-col-six-stories-m_wrapper__qjQr8"
|
|
4421
|
-
}, /*#__PURE__*/
|
|
4431
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4422
4432
|
className: "first-card " + _getClassName("first-card ".concat(borderStyle, " ").concat(textColor), _styleModuleImportMap)
|
|
4423
|
-
}, /*#__PURE__*/
|
|
4433
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4424
4434
|
story: firstStory,
|
|
4425
4435
|
config: config
|
|
4426
|
-
}, /*#__PURE__*/
|
|
4436
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4427
4437
|
config: config,
|
|
4428
4438
|
story: firstStory,
|
|
4429
4439
|
aspectRatio: [[16, 9]]
|
|
4430
|
-
}), /*#__PURE__*/
|
|
4440
|
+
}), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4431
4441
|
story: firstStory,
|
|
4432
4442
|
headerLevel: "3",
|
|
4433
4443
|
config: config
|
|
4434
|
-
}, /*#__PURE__*/
|
|
4444
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4435
4445
|
story: firstStory,
|
|
4436
4446
|
borderColor: sectionTagBorderColor
|
|
4437
|
-
}), /*#__PURE__*/
|
|
4447
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4438
4448
|
premiumStoryIconConfig: config,
|
|
4439
4449
|
story: firstStory,
|
|
4440
4450
|
headerLevel: 2
|
|
4441
|
-
}), /*#__PURE__*/
|
|
4451
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4442
4452
|
story: firstStory
|
|
4443
|
-
}), /*#__PURE__*/
|
|
4453
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4444
4454
|
story: firstStory
|
|
4445
|
-
})))), /*#__PURE__*/
|
|
4455
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4446
4456
|
className: "other-cards two-col-six-stories-m_other-cards__2M7fy"
|
|
4447
|
-
}, /*#__PURE__*/
|
|
4457
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4448
4458
|
className: "first-set"
|
|
4449
4459
|
}, otherStories.slice(0, 3).map(function (story, index) {
|
|
4450
|
-
return /*#__PURE__*/
|
|
4460
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4451
4461
|
key: index,
|
|
4452
4462
|
className: "card " + _getClassName("card ".concat(borderStyle, " ").concat(textColor), _styleModuleImportMap)
|
|
4453
|
-
}, /*#__PURE__*/
|
|
4463
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4454
4464
|
story: story,
|
|
4455
4465
|
theme: theme,
|
|
4456
4466
|
headerLevel: "4",
|
|
4457
4467
|
isHorizontalWithImageLast: true,
|
|
4458
4468
|
config: config
|
|
4459
|
-
}, /*#__PURE__*/
|
|
4469
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4460
4470
|
config: config,
|
|
4461
4471
|
story: story,
|
|
4462
4472
|
isHorizontalWithImageLast: true,
|
|
4463
4473
|
aspectRatio: [[16, 9]]
|
|
4464
|
-
}), /*#__PURE__*/
|
|
4474
|
+
}), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
|
|
4465
4475
|
theme: theme,
|
|
4466
4476
|
story: story,
|
|
4467
4477
|
config: config,
|
|
4468
4478
|
headerLevel: 6,
|
|
4469
4479
|
borderColor: sectionTagBorderColor
|
|
4470
4480
|
})));
|
|
4471
|
-
})), /*#__PURE__*/
|
|
4481
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4472
4482
|
className: "other-set"
|
|
4473
|
-
}, slot)))), /*#__PURE__*/
|
|
4483
|
+
}, slot)))), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
4474
4484
|
collection: collection,
|
|
4475
4485
|
config: config,
|
|
4476
4486
|
navigate: function navigate() {
|
|
@@ -4481,9 +4491,10 @@ var TwoColSixStoriesBase = function TwoColSixStoriesBase(_ref) {
|
|
|
4481
4491
|
}));
|
|
4482
4492
|
};
|
|
4483
4493
|
TwoColSixStoriesBase.propTypes = {
|
|
4484
|
-
collection:
|
|
4485
|
-
config:
|
|
4494
|
+
collection: PropTypes__default["default"].object,
|
|
4495
|
+
config: PropTypes__default["default"].object
|
|
4486
4496
|
};
|
|
4487
4497
|
var TwoColSixStories = StateProvider(TwoColSixStoriesBase);
|
|
4488
4498
|
|
|
4489
|
-
|
|
4499
|
+
exports.TwoColSixStories = TwoColSixStories;
|
|
4500
|
+
exports.TwoColSixStoriesBase = TwoColSixStoriesBase;
|