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