@quintype/arrow 3.15.1-perf.2 → 3.15.1-perf.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/Author/index.js +38 -29
- package/atoms/AuthorWithTime/index.js +83 -73
- package/atoms/CollectionName/index.js +40 -30
- package/atoms/ExtendedLoadMore/{index-d0f6c865.js → index-3976fac4.js} +59 -51
- package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
- package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
- package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
- package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
- package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
- package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
- package/atoms/ExtendedLoadMore/index.js +13 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +85 -76
- package/atoms/HeroImage/index.js +69 -60
- package/atoms/LoadmoreButton/index.js +32 -23
- package/atoms/ScrollSnap/index.js +72 -63
- package/atoms/SectionTag/index.js +34 -25
- package/atoms/Subheadline/index.js +31 -22
- package/atoms/TimeStamp/index.js +34 -24
- package/molecules/KeyEvents/index.js +72 -61
- package/molecules/PageIntroductionCard/index.js +43 -34
- package/molecules/SocialShareTemplate/index.js +97 -88
- package/molecules/StoryCard/index.js +242 -232
- package/molecules/StoryElementCard/index.js +512 -483
- package/molecules/StorycardContent/index.js +172 -162
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +345 -333
- package/rows/AsideCollection/index.js +340 -328
- package/rows/AstrologyCollection/index.js +321 -309
- package/rows/AuthorIntroductionCard/index.js +157 -148
- package/rows/AuthorsList/index.js +184 -174
- package/rows/CollectionFilter/index.js +361 -349
- package/rows/ElevenStories/index.js +357 -346
- package/rows/FourColFiveStories/index.js +304 -274
- package/rows/FourColGrid/index.js +351 -321
- package/rows/FourColPortraitStories/index.js +357 -327
- package/rows/FourColSixteenStories/index.js +288 -277
- package/rows/FourColTwelveStories/index.js +315 -304
- package/rows/FourStorySlider/index.js +358 -347
- package/rows/FourStorySliderPortrait/index.js +359 -348
- package/rows/FourTabbedBigStorySlider/index.js +322 -311
- package/rows/FullScreenSlider/index.js +336 -325
- package/rows/HalfScreenSlider/index.js +308 -297
- package/rows/ListComponent/index.js +322 -311
- package/rows/Listicles/index.js +150 -139
- package/rows/MagazineEditions/index.js +104 -93
- package/rows/MagazineHeaderCard/index.js +104 -93
- package/rows/MagazineWidget/index.js +326 -315
- package/rows/OneColStoryList/index.js +365 -335
- package/rows/OpinionCollection/index.js +250 -220
- package/rows/SixColSixStories/index.js +333 -303
- package/rows/StoryCollection/index.js +340 -328
- package/rows/TagIntroductionCard/index.js +30 -21
- package/rows/ThreeColFlexStories/index.js +348 -318
- package/rows/ThreeColFourteenStories/index.js +285 -274
- package/rows/ThreeColGrid/index.js +352 -322
- package/rows/ThreeColSevenStory/index.js +322 -311
- package/rows/ThreeColSixStories/index.js +323 -312
- package/rows/ThreeColTwelveStories/index.js +302 -291
- package/rows/TwoColFourStories/index.js +316 -305
- package/rows/TwoColFourStoryHighlight/index.js +317 -306
- package/rows/TwoColSevenStories/index.js +322 -311
- package/rows/TwoColSixStories/index.js +316 -305
- package/rows/TwoColTenStoriesSidebar/index.js +338 -327
- package/rows/TwoColThreeStories/index.js +316 -305
- package/story-elements/AlsoRead/index.js +70 -61
- package/story-elements/Attachment/index.js +40 -31
- package/story-elements/BigFact/index.js +35 -26
- package/story-elements/BlockQuote/index.js +61 -51
- package/story-elements/Blurb/index.js +36 -27
- package/story-elements/Image/index.js +113 -86
- package/story-elements/ImageGallery/index.js +98 -71
- package/story-elements/ImageSlideshow/index.js +147 -120
- package/story-elements/QuestionAnswer/index.js +55 -46
- package/story-elements/Quote/index.js +37 -28
- package/story-elements/Reference/index.js +40 -31
- package/story-elements/StoryElement/index.js +28 -19
- package/story-elements/Summary/index.js +40 -31
- package/story-elements/Text/index.js +34 -25
- package/story-elements/Video/index.js +29 -20
- package/story-templates/ListicleStoryTemplate/index.js +937 -908
- package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
- package/story-templates/PhotoStoryTemplate/index.js +912 -883
- package/story-templates/TextStoryTemplate/index.js +931 -902
- package/story-templates/VideoStoryTemplate/index.js +897 -868
- package/atoms/ExtendedLoadMore/index-81eb3978.js +0 -86
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var components = require('@quintype/components');
|
|
8
|
+
var Timeago = require('react-timeago');
|
|
9
|
+
var dateFnsTz = require('date-fns-tz');
|
|
10
|
+
var reactRedux = require('react-redux');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
16
|
+
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
7
17
|
|
|
8
18
|
function _arrayWithHoles(arr) {
|
|
9
19
|
if (Array.isArray(arr)) return arr;
|
|
@@ -1379,21 +1389,21 @@ exports["default"] = _default;
|
|
|
1379
1389
|
|
|
1380
1390
|
var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
|
|
1381
1391
|
|
|
1382
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
1392
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
1383
1393
|
|
|
1384
1394
|
var StateProvider = function StateProvider(RowComponent) {
|
|
1385
1395
|
return function (props) {
|
|
1386
1396
|
return (
|
|
1387
1397
|
/*#__PURE__*/
|
|
1388
1398
|
// eslint-disable-next-line react/prop-types
|
|
1389
|
-
|
|
1399
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
1390
1400
|
value: props.config
|
|
1391
|
-
}, /*#__PURE__*/
|
|
1401
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
1392
1402
|
);
|
|
1393
1403
|
};
|
|
1394
1404
|
};
|
|
1395
1405
|
var useStateValue = function useStateValue() {
|
|
1396
|
-
return useContext(StateContext);
|
|
1406
|
+
return React.useContext(StateContext);
|
|
1397
1407
|
};
|
|
1398
1408
|
|
|
1399
1409
|
function _typeof(obj) {
|
|
@@ -2710,15 +2720,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
2710
2720
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2711
2721
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2712
2722
|
};
|
|
2713
|
-
|
|
2714
|
-
"sketches-host":
|
|
2715
|
-
"cdn-name":
|
|
2716
|
-
"cdn-image":
|
|
2723
|
+
PropTypes__default["default"].shape({
|
|
2724
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
2725
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
2726
|
+
"cdn-image": PropTypes__default["default"].string
|
|
2717
2727
|
});
|
|
2718
|
-
|
|
2719
|
-
headline:
|
|
2720
|
-
"last-published-at":
|
|
2721
|
-
subheadline:
|
|
2728
|
+
PropTypes__default["default"].shape({
|
|
2729
|
+
headline: PropTypes__default["default"].string,
|
|
2730
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
2731
|
+
subheadline: PropTypes__default["default"].string
|
|
2722
2732
|
});
|
|
2723
2733
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2724
2734
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -2762,17 +2772,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
2762
2772
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
2763
2773
|
|
|
2764
2774
|
if (timezone && template === "story") {
|
|
2765
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
2766
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2775
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
2776
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2767
2777
|
timeZone: timezone
|
|
2768
2778
|
});
|
|
2769
2779
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
2770
|
-
return /*#__PURE__*/
|
|
2780
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
2771
2781
|
dateTime: formatZonedTime
|
|
2772
2782
|
}, timeStamp);
|
|
2773
2783
|
}
|
|
2774
2784
|
|
|
2775
|
-
return /*#__PURE__*/
|
|
2785
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
2776
2786
|
date: date,
|
|
2777
2787
|
formatter: function formatter(value, unit, suffix, date) {
|
|
2778
2788
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -2786,7 +2796,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
2786
2796
|
_ref$color = _ref.color,
|
|
2787
2797
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
2788
2798
|
positionTop = _ref.positionTop;
|
|
2789
|
-
return /*#__PURE__*/
|
|
2799
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2790
2800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2791
2801
|
width: width,
|
|
2792
2802
|
height: height,
|
|
@@ -2795,28 +2805,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
2795
2805
|
position: "relative",
|
|
2796
2806
|
top: positionTop
|
|
2797
2807
|
}
|
|
2798
|
-
}, /*#__PURE__*/
|
|
2808
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2799
2809
|
fill: "none",
|
|
2800
2810
|
fillRule: "evenodd",
|
|
2801
2811
|
stroke: "none",
|
|
2802
2812
|
strokeWidth: "1"
|
|
2803
|
-
}, /*#__PURE__*/
|
|
2813
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2804
2814
|
transform: "translate(8 8)"
|
|
2805
|
-
}, /*#__PURE__*/
|
|
2815
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2806
2816
|
d: "M0 0H24V24H0z"
|
|
2807
|
-
}), /*#__PURE__*/
|
|
2817
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2808
2818
|
fill: color,
|
|
2809
2819
|
fillRule: "nonzero",
|
|
2810
2820
|
transform: "translate(0 2)"
|
|
2811
|
-
}, /*#__PURE__*/
|
|
2821
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2812
2822
|
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"
|
|
2813
2823
|
}))))));
|
|
2814
2824
|
};
|
|
2815
2825
|
CrownIcon.propTypes = {
|
|
2816
|
-
height:
|
|
2817
|
-
width:
|
|
2818
|
-
color:
|
|
2819
|
-
positionTop:
|
|
2826
|
+
height: PropTypes__default["default"].string,
|
|
2827
|
+
width: PropTypes__default["default"].string,
|
|
2828
|
+
color: PropTypes__default["default"].string,
|
|
2829
|
+
positionTop: PropTypes__default["default"].string
|
|
2820
2830
|
};
|
|
2821
2831
|
|
|
2822
2832
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -2825,7 +2835,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
2825
2835
|
_ref$color = _ref.color,
|
|
2826
2836
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
2827
2837
|
positionTop = _ref.positionTop;
|
|
2828
|
-
return /*#__PURE__*/
|
|
2838
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2829
2839
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2830
2840
|
width: width,
|
|
2831
2841
|
height: height,
|
|
@@ -2834,16 +2844,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
2834
2844
|
position: "relative",
|
|
2835
2845
|
top: positionTop
|
|
2836
2846
|
}
|
|
2837
|
-
}, /*#__PURE__*/
|
|
2847
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2838
2848
|
fill: "none",
|
|
2839
2849
|
fillRule: "evenodd",
|
|
2840
2850
|
stroke: "none",
|
|
2841
2851
|
strokeWidth: "1"
|
|
2842
|
-
}, /*#__PURE__*/
|
|
2852
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2843
2853
|
transform: "translate(8 8)"
|
|
2844
|
-
}, /*#__PURE__*/
|
|
2854
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2845
2855
|
d: "M0 0H24V24H0z"
|
|
2846
|
-
}), /*#__PURE__*/
|
|
2856
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2847
2857
|
fill: color,
|
|
2848
2858
|
fillRule: "nonzero",
|
|
2849
2859
|
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",
|
|
@@ -2851,10 +2861,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
2851
2861
|
})))));
|
|
2852
2862
|
};
|
|
2853
2863
|
KeyIcon.propTypes = {
|
|
2854
|
-
height:
|
|
2855
|
-
width:
|
|
2856
|
-
color:
|
|
2857
|
-
positionTop:
|
|
2864
|
+
height: PropTypes__default["default"].string,
|
|
2865
|
+
width: PropTypes__default["default"].string,
|
|
2866
|
+
color: PropTypes__default["default"].string,
|
|
2867
|
+
positionTop: PropTypes__default["default"].string
|
|
2858
2868
|
};
|
|
2859
2869
|
|
|
2860
2870
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -2863,7 +2873,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
2863
2873
|
_ref$color = _ref.color,
|
|
2864
2874
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
2865
2875
|
positionTop = _ref.positionTop;
|
|
2866
|
-
return /*#__PURE__*/
|
|
2876
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2867
2877
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2868
2878
|
width: width,
|
|
2869
2879
|
height: height,
|
|
@@ -2872,28 +2882,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
2872
2882
|
position: "relative",
|
|
2873
2883
|
top: positionTop
|
|
2874
2884
|
}
|
|
2875
|
-
}, /*#__PURE__*/
|
|
2885
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2876
2886
|
fill: "none",
|
|
2877
2887
|
fillRule: "evenodd",
|
|
2878
2888
|
stroke: "none",
|
|
2879
2889
|
strokeWidth: "1"
|
|
2880
|
-
}, /*#__PURE__*/
|
|
2890
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2881
2891
|
transform: "translate(8 8)"
|
|
2882
|
-
}, /*#__PURE__*/
|
|
2892
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2883
2893
|
d: "M0 0H24V24H0z"
|
|
2884
|
-
}), /*#__PURE__*/
|
|
2894
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2885
2895
|
fill: color,
|
|
2886
2896
|
fillRule: "nonzero",
|
|
2887
2897
|
transform: "translate(3)"
|
|
2888
|
-
}, /*#__PURE__*/
|
|
2898
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2889
2899
|
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"
|
|
2890
2900
|
}))))));
|
|
2891
2901
|
};
|
|
2892
2902
|
LockIcon.propTypes = {
|
|
2893
|
-
height:
|
|
2894
|
-
width:
|
|
2895
|
-
color:
|
|
2896
|
-
positionTop:
|
|
2903
|
+
height: PropTypes__default["default"].string,
|
|
2904
|
+
width: PropTypes__default["default"].string,
|
|
2905
|
+
color: PropTypes__default["default"].string,
|
|
2906
|
+
positionTop: PropTypes__default["default"].string
|
|
2897
2907
|
};
|
|
2898
2908
|
|
|
2899
2909
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -2903,7 +2913,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
2903
2913
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
2904
2914
|
_ref$positionTop = _ref.positionTop,
|
|
2905
2915
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
2906
|
-
return /*#__PURE__*/
|
|
2916
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2907
2917
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2908
2918
|
width: width,
|
|
2909
2919
|
height: height,
|
|
@@ -2912,21 +2922,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
2912
2922
|
position: "relative",
|
|
2913
2923
|
top: positionTop
|
|
2914
2924
|
}
|
|
2915
|
-
}, /*#__PURE__*/
|
|
2925
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2916
2926
|
fill: "none",
|
|
2917
2927
|
fillRule: "evenodd",
|
|
2918
2928
|
stroke: "none",
|
|
2919
2929
|
strokeWidth: "1"
|
|
2920
|
-
}, /*#__PURE__*/
|
|
2930
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2921
2931
|
fill: color,
|
|
2922
2932
|
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"
|
|
2923
2933
|
}))));
|
|
2924
2934
|
};
|
|
2925
2935
|
StarIcon.propTypes = {
|
|
2926
|
-
height:
|
|
2927
|
-
width:
|
|
2928
|
-
color:
|
|
2929
|
-
positionTop:
|
|
2936
|
+
height: PropTypes__default["default"].string,
|
|
2937
|
+
width: PropTypes__default["default"].string,
|
|
2938
|
+
color: PropTypes__default["default"].string,
|
|
2939
|
+
positionTop: PropTypes__default["default"].string
|
|
2930
2940
|
};
|
|
2931
2941
|
|
|
2932
2942
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -2938,7 +2948,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2938
2948
|
|
|
2939
2949
|
switch (iconType) {
|
|
2940
2950
|
case "crown":
|
|
2941
|
-
return /*#__PURE__*/
|
|
2951
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
2942
2952
|
width: width,
|
|
2943
2953
|
height: height,
|
|
2944
2954
|
color: color,
|
|
@@ -2946,7 +2956,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2946
2956
|
});
|
|
2947
2957
|
|
|
2948
2958
|
case "lock":
|
|
2949
|
-
return /*#__PURE__*/
|
|
2959
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
2950
2960
|
width: width,
|
|
2951
2961
|
height: height,
|
|
2952
2962
|
color: color,
|
|
@@ -2954,7 +2964,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2954
2964
|
});
|
|
2955
2965
|
|
|
2956
2966
|
case "key":
|
|
2957
|
-
return /*#__PURE__*/
|
|
2967
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
2958
2968
|
width: width,
|
|
2959
2969
|
height: height,
|
|
2960
2970
|
color: color,
|
|
@@ -2962,7 +2972,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2962
2972
|
});
|
|
2963
2973
|
|
|
2964
2974
|
default:
|
|
2965
|
-
return /*#__PURE__*/
|
|
2975
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
2966
2976
|
width: width,
|
|
2967
2977
|
height: height,
|
|
2968
2978
|
color: color,
|
|
@@ -2971,21 +2981,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
2971
2981
|
}
|
|
2972
2982
|
};
|
|
2973
2983
|
PremiumStoryIcon.propTypes = {
|
|
2974
|
-
width:
|
|
2975
|
-
height:
|
|
2976
|
-
color:
|
|
2977
|
-
iconType:
|
|
2978
|
-
positionTop:
|
|
2984
|
+
width: PropTypes__default["default"].string,
|
|
2985
|
+
height: PropTypes__default["default"].string,
|
|
2986
|
+
color: PropTypes__default["default"].string,
|
|
2987
|
+
iconType: PropTypes__default["default"].string,
|
|
2988
|
+
positionTop: PropTypes__default["default"].string
|
|
2979
2989
|
};
|
|
2980
2990
|
|
|
2981
2991
|
function LiveIcon() {
|
|
2982
|
-
return /*#__PURE__*/
|
|
2992
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2983
2993
|
className: "live-icon",
|
|
2984
2994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2985
2995
|
width: "25",
|
|
2986
2996
|
height: "24",
|
|
2987
2997
|
viewBox: "0 0 25 24"
|
|
2988
|
-
}, /*#__PURE__*/
|
|
2998
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2989
2999
|
fill: "#ff5858",
|
|
2990
3000
|
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"
|
|
2991
3001
|
}));
|
|
@@ -3042,37 +3052,37 @@ var Headline = function Headline(_ref) {
|
|
|
3042
3052
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
3043
3053
|
var iconSize = "24px";
|
|
3044
3054
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
3045
|
-
return /*#__PURE__*/
|
|
3055
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3046
3056
|
"data-test-id": "headline",
|
|
3047
3057
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$c)
|
|
3048
|
-
}, premiumStory && /*#__PURE__*/
|
|
3058
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3049
3059
|
width: iconSize,
|
|
3050
3060
|
height: iconSize,
|
|
3051
3061
|
color: iconColor,
|
|
3052
3062
|
iconType: iconStyle,
|
|
3053
3063
|
positionTop: positionHeadline()
|
|
3054
|
-
}), isLink ? /*#__PURE__*/
|
|
3064
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3055
3065
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3056
3066
|
externalLink: isExternalStory(story),
|
|
3057
3067
|
"aria-label": "headline"
|
|
3058
|
-
}, /*#__PURE__*/
|
|
3068
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3059
3069
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
|
|
3060
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3070
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
3061
3071
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
|
|
3062
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
3072
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
3063
3073
|
};
|
|
3064
3074
|
Headline.propTypes = {
|
|
3065
3075
|
/** The Story Object from the API response */
|
|
3066
|
-
story:
|
|
3076
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3067
3077
|
|
|
3068
3078
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
3069
|
-
headerLevel:
|
|
3070
|
-
premiumStoryIconConfig:
|
|
3071
|
-
iconColor:
|
|
3072
|
-
iconType:
|
|
3073
|
-
enablePremiumStoryIcon:
|
|
3079
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3080
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3081
|
+
iconColor: PropTypes__default["default"].string,
|
|
3082
|
+
iconType: PropTypes__default["default"].string,
|
|
3083
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3074
3084
|
}),
|
|
3075
|
-
isLink:
|
|
3085
|
+
isLink: PropTypes__default["default"].bool
|
|
3076
3086
|
};
|
|
3077
3087
|
Headline.defaultProps = {
|
|
3078
3088
|
headerLevel: "6",
|
|
@@ -3099,7 +3109,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3099
3109
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3100
3110
|
if (!subheadline) return null;
|
|
3101
3111
|
var textColor = getTextColor(config.theme);
|
|
3102
|
-
return /*#__PURE__*/
|
|
3112
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3103
3113
|
style: {
|
|
3104
3114
|
WebkitLineClamp: lineClamp
|
|
3105
3115
|
},
|
|
@@ -3109,15 +3119,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3109
3119
|
};
|
|
3110
3120
|
Subheadline.propTypes = {
|
|
3111
3121
|
/** The Story Object from the API response */
|
|
3112
|
-
story:
|
|
3122
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3113
3123
|
// Restricts the number of lines for subheadline.
|
|
3114
|
-
lineClamp:
|
|
3124
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3115
3125
|
|
|
3116
3126
|
/** Number of characters to truncate the subheadline */
|
|
3117
|
-
truncateChars:
|
|
3118
|
-
clazzName:
|
|
3119
|
-
forceShowAtom:
|
|
3120
|
-
showFullContent:
|
|
3127
|
+
truncateChars: PropTypes__default["default"].number,
|
|
3128
|
+
clazzName: PropTypes__default["default"].string,
|
|
3129
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
3130
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3121
3131
|
};
|
|
3122
3132
|
Subheadline.defaultProps = {
|
|
3123
3133
|
forceShowAtom: false,
|
|
@@ -3143,18 +3153,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
3143
3153
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
3144
3154
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
3145
3155
|
var textColor = getTextColor(configState.theme);
|
|
3146
|
-
return /*#__PURE__*/
|
|
3156
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3147
3157
|
"data-test-id": "publish-time",
|
|
3148
3158
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
|
|
3149
|
-
}, /*#__PURE__*/
|
|
3159
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3150
3160
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
3151
3161
|
}, getTimeStamp(time, formatter, config))));
|
|
3152
3162
|
};
|
|
3153
3163
|
TimeStamp.propTypes = {
|
|
3154
3164
|
/** The Story Object from the API response */
|
|
3155
|
-
story:
|
|
3156
|
-
isBottom:
|
|
3157
|
-
config:
|
|
3165
|
+
story: PropTypes__default["default"].object,
|
|
3166
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3167
|
+
config: PropTypes__default["default"].object
|
|
3158
3168
|
};
|
|
3159
3169
|
|
|
3160
3170
|
var _styleModuleImportMap$9 = {
|
|
@@ -3197,10 +3207,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3197
3207
|
return null;
|
|
3198
3208
|
}
|
|
3199
3209
|
|
|
3200
|
-
return /*#__PURE__*/
|
|
3210
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3201
3211
|
"data-test-id": "author-image",
|
|
3202
3212
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
|
|
3203
|
-
}, /*#__PURE__*/
|
|
3213
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
3204
3214
|
slug: avatarS3Key,
|
|
3205
3215
|
"aspect-ratio": [1, 1],
|
|
3206
3216
|
defaultWidth: 400,
|
|
@@ -3208,14 +3218,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3208
3218
|
auto: ["format", "compress"]
|
|
3209
3219
|
},
|
|
3210
3220
|
alt: authorName
|
|
3211
|
-
}) : /*#__PURE__*/
|
|
3221
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3212
3222
|
src: avatarUrl
|
|
3213
3223
|
})));
|
|
3214
3224
|
};
|
|
3215
3225
|
|
|
3216
3226
|
var isPrefix = function isPrefix(dir) {
|
|
3217
3227
|
if (prefix) {
|
|
3218
|
-
return /*#__PURE__*/
|
|
3228
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3219
3229
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$9)
|
|
3220
3230
|
}, prefix);
|
|
3221
3231
|
}
|
|
@@ -3223,11 +3233,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3223
3233
|
return !hideAuthorImage && authorImage(dir);
|
|
3224
3234
|
};
|
|
3225
3235
|
|
|
3226
|
-
return /*#__PURE__*/
|
|
3236
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3227
3237
|
href: "".concat(mountAt, "/author/") + slug,
|
|
3228
3238
|
"aria-label": "author-name",
|
|
3229
3239
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
|
|
3230
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
3240
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3231
3241
|
"data-test-id": "author-name",
|
|
3232
3242
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
|
|
3233
3243
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -3239,18 +3249,18 @@ function mapStateToProps$1(state) {
|
|
|
3239
3249
|
};
|
|
3240
3250
|
}
|
|
3241
3251
|
|
|
3242
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
3252
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
3243
3253
|
AuthorBase.propTypes = {
|
|
3244
3254
|
/** The Story Object from the API response */
|
|
3245
|
-
story:
|
|
3255
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3246
3256
|
|
|
3247
3257
|
/** Hide Author Avatar Image */
|
|
3248
|
-
hideAuthorImage:
|
|
3258
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3249
3259
|
// fix Author bottom of the storyCard
|
|
3250
|
-
isBottom:
|
|
3260
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3251
3261
|
// fix prefix before the author name
|
|
3252
|
-
prefix:
|
|
3253
|
-
config:
|
|
3262
|
+
prefix: PropTypes__default["default"].string,
|
|
3263
|
+
config: PropTypes__default["default"].object
|
|
3254
3264
|
};
|
|
3255
3265
|
AuthorBase.defaultProps = {
|
|
3256
3266
|
hideAuthorImage: false,
|
|
@@ -3271,14 +3281,14 @@ var Dot = function Dot(_ref) {
|
|
|
3271
3281
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
3272
3282
|
_ref$color = _ref.color,
|
|
3273
3283
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3274
|
-
return /*#__PURE__*/
|
|
3284
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3275
3285
|
className: _getClassName(color, _styleModuleImportMap$8)
|
|
3276
|
-
}, /*#__PURE__*/
|
|
3286
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3277
3287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3278
3288
|
width: width,
|
|
3279
3289
|
height: height,
|
|
3280
3290
|
viewBox: "0 0 3 3"
|
|
3281
|
-
}, /*#__PURE__*/
|
|
3291
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
3282
3292
|
cx: "87",
|
|
3283
3293
|
cy: "9",
|
|
3284
3294
|
r: "1",
|
|
@@ -3289,9 +3299,9 @@ var Dot = function Dot(_ref) {
|
|
|
3289
3299
|
};
|
|
3290
3300
|
Dot.propTypes = {
|
|
3291
3301
|
/** height , width and color of the dot icon */
|
|
3292
|
-
color:
|
|
3293
|
-
width:
|
|
3294
|
-
height:
|
|
3302
|
+
color: PropTypes__default["default"].string,
|
|
3303
|
+
width: PropTypes__default["default"].string,
|
|
3304
|
+
height: PropTypes__default["default"].string
|
|
3295
3305
|
};
|
|
3296
3306
|
|
|
3297
3307
|
var _styleModuleImportMap$7 = {
|
|
@@ -3307,22 +3317,22 @@ var Divider = function Divider(_ref) {
|
|
|
3307
3317
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
3308
3318
|
_ref$color = _ref.color,
|
|
3309
3319
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3310
|
-
return /*#__PURE__*/
|
|
3320
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3311
3321
|
className: _getClassName(color, _styleModuleImportMap$7)
|
|
3312
|
-
}, /*#__PURE__*/
|
|
3322
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3313
3323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3314
3324
|
width: width,
|
|
3315
3325
|
height: height
|
|
3316
|
-
}, /*#__PURE__*/
|
|
3326
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3317
3327
|
fill: "inherit",
|
|
3318
3328
|
d: "M0 0h1v10H0z"
|
|
3319
3329
|
})));
|
|
3320
3330
|
};
|
|
3321
3331
|
Divider.propTypes = {
|
|
3322
3332
|
/** height , width and color of the dot icon */
|
|
3323
|
-
color:
|
|
3324
|
-
width:
|
|
3325
|
-
height:
|
|
3333
|
+
color: PropTypes__default["default"].string,
|
|
3334
|
+
width: PropTypes__default["default"].string,
|
|
3335
|
+
height: PropTypes__default["default"].string
|
|
3326
3336
|
};
|
|
3327
3337
|
|
|
3328
3338
|
var _styleModuleImportMap$6 = {
|
|
@@ -3345,23 +3355,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
3345
3355
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
3346
3356
|
if (!showReadTime || !readTime) return null;
|
|
3347
3357
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
3348
|
-
return /*#__PURE__*/
|
|
3358
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3349
3359
|
"data-test-id": "read-time",
|
|
3350
3360
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
|
|
3351
|
-
}, /*#__PURE__*/
|
|
3361
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3352
3362
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
3353
|
-
}, /*#__PURE__*/
|
|
3363
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3354
3364
|
color: textColor
|
|
3355
|
-
})), /*#__PURE__*/
|
|
3365
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
3356
3366
|
};
|
|
3357
3367
|
ReadTime.propTypes = {
|
|
3358
|
-
story:
|
|
3359
|
-
"read-time":
|
|
3368
|
+
story: PropTypes__default["default"].shape({
|
|
3369
|
+
"read-time": PropTypes__default["default"].number
|
|
3360
3370
|
}),
|
|
3361
|
-
opts:
|
|
3362
|
-
showReadTime:
|
|
3371
|
+
opts: PropTypes__default["default"].shape({
|
|
3372
|
+
showReadTime: PropTypes__default["default"].bool
|
|
3363
3373
|
}),
|
|
3364
|
-
isLightTheme:
|
|
3374
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3365
3375
|
};
|
|
3366
3376
|
|
|
3367
3377
|
var _styleModuleImportMap$5 = {
|
|
@@ -3392,33 +3402,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3392
3402
|
|
|
3393
3403
|
var getSeparator = function getSeparator() {
|
|
3394
3404
|
if (separator === "divider") {
|
|
3395
|
-
return /*#__PURE__*/
|
|
3405
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
3396
3406
|
color: textColor
|
|
3397
3407
|
});
|
|
3398
3408
|
}
|
|
3399
3409
|
|
|
3400
|
-
return /*#__PURE__*/
|
|
3410
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3401
3411
|
color: textColor
|
|
3402
3412
|
});
|
|
3403
3413
|
};
|
|
3404
3414
|
|
|
3405
3415
|
var getTimeStamp = function getTimeStamp() {
|
|
3406
3416
|
if (!isTime) return null;
|
|
3407
|
-
return /*#__PURE__*/
|
|
3417
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3408
3418
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$5)
|
|
3409
|
-
}, getSeparator()), /*#__PURE__*/
|
|
3419
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
3410
3420
|
story: story,
|
|
3411
3421
|
config: config
|
|
3412
|
-
}), isReadTime && /*#__PURE__*/
|
|
3422
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
3413
3423
|
story: story,
|
|
3414
3424
|
opts: config,
|
|
3415
3425
|
isLightTheme: isLightTheme
|
|
3416
3426
|
}));
|
|
3417
3427
|
};
|
|
3418
3428
|
|
|
3419
|
-
return /*#__PURE__*/
|
|
3429
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3420
3430
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
|
|
3421
|
-
}, isAuthor ? /*#__PURE__*/
|
|
3431
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
3422
3432
|
story: story,
|
|
3423
3433
|
isBottom: true,
|
|
3424
3434
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -3426,19 +3436,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
3426
3436
|
}), getTimeStamp()) : getTimeStamp());
|
|
3427
3437
|
};
|
|
3428
3438
|
AuthorWithTime.propTypes = {
|
|
3429
|
-
story:
|
|
3439
|
+
story: PropTypes__default["default"].object,
|
|
3430
3440
|
|
|
3431
3441
|
/** Style of separator between the Author & Timestamp */
|
|
3432
|
-
separator:
|
|
3442
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
3433
3443
|
|
|
3434
3444
|
/** hide the author image */
|
|
3435
|
-
hideAuthorImage:
|
|
3445
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3436
3446
|
// fix author and time at the end
|
|
3437
|
-
isBottom:
|
|
3447
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3438
3448
|
// fix prefix before the author name
|
|
3439
|
-
prefix:
|
|
3440
|
-
config:
|
|
3441
|
-
isLightTheme:
|
|
3449
|
+
prefix: PropTypes__default["default"].string,
|
|
3450
|
+
config: PropTypes__default["default"].object,
|
|
3451
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3442
3452
|
};
|
|
3443
3453
|
AuthorWithTime.defaultProps = {
|
|
3444
3454
|
separator: "dot",
|
|
@@ -3489,27 +3499,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3489
3499
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
3490
3500
|
_ref$iconColor = _ref.iconColor,
|
|
3491
3501
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
3492
|
-
return /*#__PURE__*/
|
|
3502
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3493
3503
|
width: width,
|
|
3494
3504
|
height: height,
|
|
3495
3505
|
viewBox: "0 0 102 76",
|
|
3496
3506
|
version: "1.1"
|
|
3497
|
-
}, /*#__PURE__*/
|
|
3507
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3498
3508
|
id: "demo-home-copy",
|
|
3499
3509
|
stroke: "none",
|
|
3500
3510
|
strokeWidth: "1",
|
|
3501
3511
|
fill: "none",
|
|
3502
3512
|
fillRule: "evenodd",
|
|
3503
3513
|
transform: "translate(-377.000000, -314.000000)"
|
|
3504
|
-
}, /*#__PURE__*/
|
|
3514
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3505
3515
|
id: "Group-13",
|
|
3506
3516
|
transform: "translate(377.000000, 314.000000)"
|
|
3507
|
-
}, /*#__PURE__*/
|
|
3517
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3508
3518
|
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",
|
|
3509
3519
|
id: "Combined-Shape",
|
|
3510
3520
|
fill: iconColor,
|
|
3511
3521
|
fillRule: "nonzero"
|
|
3512
|
-
}), /*#__PURE__*/
|
|
3522
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3513
3523
|
id: "Rectangle-19",
|
|
3514
3524
|
stroke: iconColor,
|
|
3515
3525
|
strokeWidth: "3",
|
|
@@ -3521,24 +3531,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
3521
3531
|
}))));
|
|
3522
3532
|
};
|
|
3523
3533
|
ImageFallbackIcon.propTypes = {
|
|
3524
|
-
width:
|
|
3525
|
-
height:
|
|
3526
|
-
iconColor:
|
|
3534
|
+
width: PropTypes__default["default"].object,
|
|
3535
|
+
height: PropTypes__default["default"].object,
|
|
3536
|
+
iconColor: PropTypes__default["default"].object
|
|
3527
3537
|
};
|
|
3528
3538
|
|
|
3529
3539
|
var imageFallback = function imageFallback() {
|
|
3530
|
-
return /*#__PURE__*/
|
|
3540
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3531
3541
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
3532
|
-
}, /*#__PURE__*/
|
|
3542
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3533
3543
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
3534
|
-
}, /*#__PURE__*/
|
|
3544
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
3535
3545
|
};
|
|
3536
3546
|
|
|
3537
3547
|
var FallbackImage = function FallbackImage(_ref) {
|
|
3538
3548
|
var slug = _ref.slug;
|
|
3539
3549
|
|
|
3540
3550
|
if (slug) {
|
|
3541
|
-
return /*#__PURE__*/
|
|
3551
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3542
3552
|
href: slug,
|
|
3543
3553
|
"aria-label": "image-fallback"
|
|
3544
3554
|
}, imageFallback());
|
|
@@ -3547,23 +3557,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
3547
3557
|
}
|
|
3548
3558
|
};
|
|
3549
3559
|
FallbackImage.propTypes = {
|
|
3550
|
-
slug:
|
|
3560
|
+
slug: PropTypes__default["default"].string
|
|
3551
3561
|
};
|
|
3552
3562
|
|
|
3553
3563
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
3554
|
-
return /*#__PURE__*/
|
|
3564
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3555
3565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3556
3566
|
width: "36",
|
|
3557
3567
|
height: "28"
|
|
3558
|
-
}, /*#__PURE__*/
|
|
3568
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3559
3569
|
fill: "none",
|
|
3560
3570
|
fillRule: "evenodd"
|
|
3561
|
-
}, /*#__PURE__*/
|
|
3571
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
3562
3572
|
width: "36",
|
|
3563
3573
|
height: "28",
|
|
3564
3574
|
fill: "#3D6FCF",
|
|
3565
3575
|
rx: "4"
|
|
3566
|
-
}), /*#__PURE__*/
|
|
3576
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3567
3577
|
stroke: "#FFF",
|
|
3568
3578
|
strokeLinecap: "round",
|
|
3569
3579
|
strokeLinejoin: "round",
|
|
@@ -3576,16 +3586,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
3576
3586
|
var _ref$hyperLink = _ref.hyperLink,
|
|
3577
3587
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
3578
3588
|
if (!hyperLink) return null;
|
|
3579
|
-
return /*#__PURE__*/
|
|
3589
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3580
3590
|
href: hyperLink,
|
|
3581
3591
|
"aria-label": "hyperlink-button",
|
|
3582
3592
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
3583
3593
|
target: "_blank",
|
|
3584
3594
|
rel: "noopener noreferrer"
|
|
3585
|
-
}, /*#__PURE__*/
|
|
3595
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
3586
3596
|
};
|
|
3587
3597
|
HyperLink.propTypes = {
|
|
3588
|
-
hyperLink:
|
|
3598
|
+
hyperLink: PropTypes__default["default"].string
|
|
3589
3599
|
};
|
|
3590
3600
|
|
|
3591
3601
|
var _styleModuleImportMap$4 = {
|
|
@@ -3621,7 +3631,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3621
3631
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
3622
3632
|
return null;
|
|
3623
3633
|
} : _config$StoryTemplate;
|
|
3624
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
3634
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
3625
3635
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
3626
3636
|
});
|
|
3627
3637
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -3657,37 +3667,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3657
3667
|
var fallbackImage = function fallbackImage() {
|
|
3658
3668
|
if (!slug) {
|
|
3659
3669
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
3660
|
-
return /*#__PURE__*/
|
|
3670
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3661
3671
|
style: {
|
|
3662
3672
|
paddingTop: imagePadding + "%"
|
|
3663
3673
|
},
|
|
3664
3674
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$4)
|
|
3665
|
-
}, /*#__PURE__*/
|
|
3675
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3666
3676
|
className: "qt-image",
|
|
3667
3677
|
"data-src": "".concat(fallbackImageUrl),
|
|
3668
3678
|
alt: "image-fallback"
|
|
3669
3679
|
}));
|
|
3670
3680
|
}
|
|
3671
3681
|
|
|
3672
|
-
return /*#__PURE__*/
|
|
3682
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3673
3683
|
"data-test-id": "arr--fallback-hero-image",
|
|
3674
3684
|
style: {
|
|
3675
3685
|
paddingTop: imagePadding + "%"
|
|
3676
3686
|
},
|
|
3677
3687
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$4)
|
|
3678
|
-
}, /*#__PURE__*/
|
|
3688
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3679
3689
|
storyTemplate: story["story-template"]
|
|
3680
|
-
}), /*#__PURE__*/
|
|
3690
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
3681
3691
|
}
|
|
3682
3692
|
|
|
3683
|
-
return /*#__PURE__*/
|
|
3693
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
3684
3694
|
style: {
|
|
3685
3695
|
paddingTop: imagePadding + "%"
|
|
3686
3696
|
},
|
|
3687
3697
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$4)
|
|
3688
|
-
}, /*#__PURE__*/
|
|
3698
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
3689
3699
|
storyTemplate: story["story-template"]
|
|
3690
|
-
}), /*#__PURE__*/
|
|
3700
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
3691
3701
|
story: story,
|
|
3692
3702
|
aspectRatio: imageAspectRatio,
|
|
3693
3703
|
defaultWidth: defaultWidth,
|
|
@@ -3696,15 +3706,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3696
3706
|
auto: ["format", "compress"],
|
|
3697
3707
|
fit: "max"
|
|
3698
3708
|
}
|
|
3699
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
3709
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
3700
3710
|
hyperLink: hyperLink
|
|
3701
3711
|
}));
|
|
3702
3712
|
};
|
|
3703
3713
|
|
|
3704
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
3714
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3705
3715
|
"data-test-id": "arr--hero-image",
|
|
3706
3716
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$4)
|
|
3707
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
3717
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3708
3718
|
"data-test-id": "arr--hero-image",
|
|
3709
3719
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
3710
3720
|
externalLink: isExternalStory(story),
|
|
@@ -3714,30 +3724,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
3714
3724
|
};
|
|
3715
3725
|
HeroImage.propTypes = {
|
|
3716
3726
|
/** The Story Object from the API response */
|
|
3717
|
-
story:
|
|
3727
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3718
3728
|
|
|
3719
3729
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
3720
|
-
FullBleed:
|
|
3730
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
3721
3731
|
|
|
3722
3732
|
/** The default width for the image, in case the browser does not support srcset */
|
|
3723
|
-
defaultWidth:
|
|
3733
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
3724
3734
|
|
|
3725
3735
|
/** The list of available widths */
|
|
3726
|
-
widths:
|
|
3736
|
+
widths: PropTypes__default["default"].array,
|
|
3727
3737
|
// fatch the correct hero image
|
|
3728
|
-
aspectRatio:
|
|
3738
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
3729
3739
|
// Hints for the browser to choose the best size
|
|
3730
3740
|
|
|
3731
3741
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
3732
|
-
isHorizontal:
|
|
3742
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3733
3743
|
|
|
3734
3744
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
3735
|
-
isHorizontalMobile:
|
|
3745
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3736
3746
|
// this prop is responsive for rendering fallback image on story page
|
|
3737
|
-
defaultFallback:
|
|
3738
|
-
isHorizontalWithImageLast:
|
|
3739
|
-
isStoryPageImage:
|
|
3740
|
-
config:
|
|
3747
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
3748
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
3749
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
3750
|
+
config: PropTypes__default["default"].object
|
|
3741
3751
|
};
|
|
3742
3752
|
HeroImage.defaultProps = {
|
|
3743
3753
|
FullBleed: true,
|
|
@@ -3787,22 +3797,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3787
3797
|
}
|
|
3788
3798
|
|
|
3789
3799
|
if (!isSection) return null;
|
|
3790
|
-
return /*#__PURE__*/
|
|
3800
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3791
3801
|
href: getUrl,
|
|
3792
3802
|
className: "arrow-component arr--section-name",
|
|
3793
3803
|
"aria-label": "section-name"
|
|
3794
|
-
}, /*#__PURE__*/
|
|
3804
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3795
3805
|
"data-test-id": "sectionTag",
|
|
3796
3806
|
style: {
|
|
3797
3807
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3798
3808
|
},
|
|
3799
3809
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$3)
|
|
3800
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3810
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3801
3811
|
className: "section-m_border-left__2oUyp",
|
|
3802
3812
|
style: {
|
|
3803
3813
|
color: sectionTagBorderColor
|
|
3804
3814
|
}
|
|
3805
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3815
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3806
3816
|
className: "section-m_border-bottom__3cRoD",
|
|
3807
3817
|
style: {
|
|
3808
3818
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3811,13 +3821,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3811
3821
|
};
|
|
3812
3822
|
SectionTag.propTypes = {
|
|
3813
3823
|
/** The Story Object from the API response */
|
|
3814
|
-
story:
|
|
3824
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3815
3825
|
|
|
3816
3826
|
/** The style template for section tag */
|
|
3817
|
-
template:
|
|
3818
|
-
borderColor:
|
|
3819
|
-
solidBorderColor:
|
|
3820
|
-
isLightTheme:
|
|
3827
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3828
|
+
borderColor: PropTypes__default["default"].string,
|
|
3829
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3830
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3821
3831
|
};
|
|
3822
3832
|
SectionTag.defaultProps = {
|
|
3823
3833
|
template: "",
|
|
@@ -3866,7 +3876,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3866
3876
|
prefix = _ref.prefix,
|
|
3867
3877
|
config = _ref.config,
|
|
3868
3878
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
3869
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
3879
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
3870
3880
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
3871
3881
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
3872
3882
|
|
|
@@ -3876,7 +3886,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3876
3886
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
3877
3887
|
var textColor = getTextColor(theme);
|
|
3878
3888
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
3879
|
-
var defaultStorycard = /*#__PURE__*/
|
|
3889
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
3880
3890
|
story: story,
|
|
3881
3891
|
aspectRatio: aspectRatio,
|
|
3882
3892
|
border: border,
|
|
@@ -3890,7 +3900,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
3890
3900
|
config: config,
|
|
3891
3901
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
3892
3902
|
});
|
|
3893
|
-
return /*#__PURE__*/
|
|
3903
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3894
3904
|
"data-test-id": "story-card",
|
|
3895
3905
|
style: {
|
|
3896
3906
|
backgroundColor: theme,
|
|
@@ -3919,91 +3929,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
3919
3929
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
3920
3930
|
var _config$localizationC = config.localizationConfig,
|
|
3921
3931
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
3922
|
-
return /*#__PURE__*/
|
|
3932
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3923
3933
|
config: config,
|
|
3924
3934
|
story: story,
|
|
3925
3935
|
isHorizontal: true,
|
|
3926
3936
|
isHorizontalMobile: isHorizontalMobile,
|
|
3927
3937
|
aspectRatio: aspectRatio
|
|
3928
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
3938
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3929
3939
|
config: config,
|
|
3930
3940
|
story: story,
|
|
3931
3941
|
isHorizontalWithImageLast: true,
|
|
3932
3942
|
isHorizontalMobile: isHorizontalMobile,
|
|
3933
3943
|
aspectRatio: aspectRatio
|
|
3934
|
-
}) : /*#__PURE__*/
|
|
3944
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
3935
3945
|
story: story,
|
|
3936
3946
|
config: config,
|
|
3937
3947
|
isHorizontalMobile: isHorizontalMobile,
|
|
3938
3948
|
aspectRatio: aspectRatio
|
|
3939
|
-
}), /*#__PURE__*/
|
|
3949
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3940
3950
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$2)
|
|
3941
|
-
}, /*#__PURE__*/
|
|
3951
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
3942
3952
|
story: story,
|
|
3943
3953
|
borderColor: SectionTagborderColor
|
|
3944
|
-
}), /*#__PURE__*/
|
|
3954
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
3945
3955
|
story: story,
|
|
3946
3956
|
headerLevel: headerLevel,
|
|
3947
3957
|
premiumStoryIconConfig: config
|
|
3948
|
-
}), /*#__PURE__*/
|
|
3958
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
3949
3959
|
config: localizationConfig,
|
|
3950
3960
|
story: story,
|
|
3951
3961
|
isBottom: true,
|
|
3952
3962
|
prefix: prefix,
|
|
3953
3963
|
hideAuthorImage: hideAuthorImage
|
|
3954
|
-
}), /*#__PURE__*/
|
|
3964
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
3955
3965
|
story: story
|
|
3956
3966
|
})));
|
|
3957
3967
|
};
|
|
3958
3968
|
|
|
3959
3969
|
DefaultStoryCard.propTypes = {
|
|
3960
|
-
story:
|
|
3961
|
-
border:
|
|
3962
|
-
isBottom:
|
|
3963
|
-
isHorizontal:
|
|
3964
|
-
aspectRatio:
|
|
3965
|
-
isHorizontalMobile:
|
|
3966
|
-
centerAlign:
|
|
3967
|
-
headerLevel:
|
|
3968
|
-
borderColor:
|
|
3969
|
-
hideAuthorImage:
|
|
3970
|
-
prefix:
|
|
3971
|
-
config:
|
|
3972
|
-
isHorizontalWithImageLast:
|
|
3970
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3971
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
3972
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3973
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3974
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
3975
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3976
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
3977
|
+
headerLevel: PropTypes__default["default"].string,
|
|
3978
|
+
borderColor: PropTypes__default["default"].string,
|
|
3979
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3980
|
+
prefix: PropTypes__default["default"].string,
|
|
3981
|
+
config: PropTypes__default["default"].object,
|
|
3982
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
3973
3983
|
};
|
|
3974
3984
|
StoryCard.propTypes = {
|
|
3975
3985
|
/** The Story Object from the API response */
|
|
3976
|
-
story:
|
|
3977
|
-
children:
|
|
3986
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3987
|
+
children: PropTypes__default["default"].node,
|
|
3978
3988
|
|
|
3979
3989
|
/** Flip the Story Card to Horizonal mode */
|
|
3980
|
-
isHorizontal:
|
|
3990
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
3981
3991
|
|
|
3982
3992
|
/** Add border to the Story Card */
|
|
3983
|
-
border:
|
|
3993
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
3984
3994
|
// story card with background image
|
|
3985
|
-
useImageAsBackground:
|
|
3995
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
3986
3996
|
// story card content overlap with image
|
|
3987
|
-
bgImgContentOverlap:
|
|
3997
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
3988
3998
|
|
|
3989
3999
|
/** add aspect ratio for hero image */
|
|
3990
|
-
aspectRatio:
|
|
4000
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
3991
4001
|
|
|
3992
4002
|
/** add theme(dark /light/custom color) for storycard */
|
|
3993
|
-
theme:
|
|
4003
|
+
theme: PropTypes__default["default"].string,
|
|
3994
4004
|
|
|
3995
4005
|
/** flip the story card mobile design horizontal */
|
|
3996
|
-
isHorizontalMobile:
|
|
4006
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
3997
4007
|
// make content center align in desktop and left align in mobile
|
|
3998
|
-
centerAlign:
|
|
3999
|
-
headerLevel:
|
|
4000
|
-
borderColor:
|
|
4008
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4009
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4010
|
+
borderColor: PropTypes__default["default"].string,
|
|
4001
4011
|
// handle author image through storycard
|
|
4002
|
-
hideAuthorImage:
|
|
4012
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4003
4013
|
// handle author prefix through storycard
|
|
4004
|
-
prefix:
|
|
4005
|
-
config:
|
|
4006
|
-
isHorizontalWithImageLast:
|
|
4014
|
+
prefix: PropTypes__default["default"].string,
|
|
4015
|
+
config: PropTypes__default["default"].object,
|
|
4016
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4007
4017
|
};
|
|
4008
4018
|
StoryCard.defaultProps = {
|
|
4009
4019
|
isHorizontal: false,
|
|
@@ -4051,7 +4061,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4051
4061
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
4052
4062
|
|
|
4053
4063
|
var borderBottomStyle = function borderBottomStyle() {
|
|
4054
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
4064
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4055
4065
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
4056
4066
|
style: {
|
|
4057
4067
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -4111,40 +4121,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4111
4121
|
}
|
|
4112
4122
|
};
|
|
4113
4123
|
|
|
4114
|
-
return /*#__PURE__*/
|
|
4124
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4115
4125
|
style: {
|
|
4116
4126
|
borderBottom: borderBottomFullStyle
|
|
4117
4127
|
},
|
|
4118
4128
|
"data-test-id": "collection-name",
|
|
4119
4129
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$1)
|
|
4120
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
4130
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4121
4131
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
4122
4132
|
style: {
|
|
4123
4133
|
color: CollectionNameBorderColor,
|
|
4124
4134
|
fontSize: getBorderHeight()
|
|
4125
4135
|
}
|
|
4126
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
4136
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4127
4137
|
href: slug,
|
|
4128
4138
|
"aria-label": "collection-name"
|
|
4129
|
-
}, /*#__PURE__*/
|
|
4139
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
4130
4140
|
};
|
|
4131
4141
|
CollectionNameBase.propTypes = {
|
|
4132
4142
|
/** Collection name border color */
|
|
4133
|
-
collectionNameBorderColor: PropTypes
|
|
4143
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
4134
4144
|
|
|
4135
4145
|
/** The Collection Object from the API response */
|
|
4136
|
-
collection: PropTypes
|
|
4146
|
+
collection: PropTypes.PropTypes.object,
|
|
4137
4147
|
|
|
4138
4148
|
/** The publisher config from the API response */
|
|
4139
|
-
config: PropTypes
|
|
4149
|
+
config: PropTypes.PropTypes.object,
|
|
4140
4150
|
|
|
4141
4151
|
/** The style template for the component */
|
|
4142
|
-
collectionNameTemplate: PropTypes
|
|
4152
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
4143
4153
|
|
|
4144
4154
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4145
|
-
headerLevel: PropTypes
|
|
4146
|
-
customCollectionName: PropTypes
|
|
4147
|
-
navigate: PropTypes
|
|
4155
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
4156
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
4157
|
+
navigate: PropTypes.PropTypes.bool
|
|
4148
4158
|
};
|
|
4149
4159
|
CollectionNameBase.defaultProps = {
|
|
4150
4160
|
collectionNameTemplate: "",
|
|
@@ -4157,7 +4167,7 @@ function mapStateToProps(state) {
|
|
|
4157
4167
|
};
|
|
4158
4168
|
}
|
|
4159
4169
|
|
|
4160
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
4170
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
4161
4171
|
|
|
4162
4172
|
function _defineProperty(obj, key, value) {
|
|
4163
4173
|
if (key in obj) {
|
|
@@ -4206,26 +4216,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
4206
4216
|
if (!showButton) return null;
|
|
4207
4217
|
var textColor = getTextColor(theme);
|
|
4208
4218
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
4209
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
4219
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4210
4220
|
onClick: onClick,
|
|
4211
4221
|
"data-test-id": "load-more",
|
|
4212
4222
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
|
|
4213
|
-
}, buttonText) : /*#__PURE__*/
|
|
4223
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
4214
4224
|
href: slug,
|
|
4215
4225
|
navigateTo: navigate,
|
|
4216
4226
|
"data-test-id": "load-more",
|
|
4217
4227
|
"aria-label": "load-more"
|
|
4218
|
-
}, /*#__PURE__*/
|
|
4228
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4219
4229
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
|
|
4220
4230
|
}, buttonText));
|
|
4221
4231
|
};
|
|
4222
4232
|
LoadmoreButton.propTypes = {
|
|
4223
|
-
collection:
|
|
4224
|
-
template:
|
|
4225
|
-
config:
|
|
4226
|
-
onClick:
|
|
4227
|
-
navigate:
|
|
4228
|
-
qtConfig:
|
|
4233
|
+
collection: PropTypes__default["default"].object,
|
|
4234
|
+
template: PropTypes__default["default"].string,
|
|
4235
|
+
config: PropTypes__default["default"].object,
|
|
4236
|
+
onClick: PropTypes__default["default"].func,
|
|
4237
|
+
navigate: PropTypes__default["default"].func,
|
|
4238
|
+
qtConfig: PropTypes__default["default"].object
|
|
4229
4239
|
};
|
|
4230
4240
|
|
|
4231
4241
|
var getChildCollectionData = function getChildCollectionData() {
|
|
@@ -4233,7 +4243,7 @@ var getChildCollectionData = function getChildCollectionData() {
|
|
|
4233
4243
|
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4234
4244
|
var collectionIndex = arguments.length > 2 ? arguments[2] : undefined;
|
|
4235
4245
|
var qtConfig = arguments.length > 3 ? arguments[3] : undefined;
|
|
4236
|
-
var stories = collectionToStories(collection);
|
|
4246
|
+
var stories = components.collectionToStories(collection);
|
|
4237
4247
|
if (!stories.length) return null;
|
|
4238
4248
|
|
|
4239
4249
|
var _stories = _toArray(stories),
|
|
@@ -4253,71 +4263,71 @@ var getChildCollectionData = function getChildCollectionData() {
|
|
|
4253
4263
|
_config$borderColor = config.borderColor,
|
|
4254
4264
|
borderColor = _config$borderColor === void 0 ? "" : _config$borderColor;
|
|
4255
4265
|
var sectionTagBorderColor = rgbToHex(borderColor);
|
|
4256
|
-
var dispatch = useDispatch();
|
|
4266
|
+
var dispatch = reactRedux.useDispatch();
|
|
4257
4267
|
var url = generateNavigateSlug(collection, qtConfig);
|
|
4258
|
-
return /*#__PURE__*/
|
|
4268
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4259
4269
|
className: "three-col-twelve-stories-m_column__2qj3k",
|
|
4260
4270
|
style: {
|
|
4261
4271
|
order: collectionIndex
|
|
4262
4272
|
}
|
|
4263
|
-
}, /*#__PURE__*/
|
|
4273
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
4264
4274
|
collection: collection,
|
|
4265
4275
|
collectionNameTemplate: collectionNameTemplate,
|
|
4266
4276
|
collectionNameBorderColor: collectionNameBorderColor
|
|
4267
|
-
}), /*#__PURE__*/
|
|
4277
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4268
4278
|
story: firstStory,
|
|
4269
4279
|
theme: theme,
|
|
4270
4280
|
border: withSeparator ? "bottom" : "",
|
|
4271
4281
|
config: config
|
|
4272
|
-
}, /*#__PURE__*/
|
|
4282
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4273
4283
|
className: "three-col-twelve-stories-m_big-card__zPDi9"
|
|
4274
|
-
}, /*#__PURE__*/
|
|
4284
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4275
4285
|
className: "three-col-twelve-stories-m_big-card-hero-image__3Kcqc"
|
|
4276
|
-
}, /*#__PURE__*/
|
|
4286
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4277
4287
|
story: firstStory,
|
|
4278
4288
|
aspectRatio: [[16, 9]]
|
|
4279
|
-
})), /*#__PURE__*/
|
|
4289
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4280
4290
|
className: "three-col-twelve-stories-m_big-card-content__1ZClC"
|
|
4281
|
-
}, /*#__PURE__*/
|
|
4291
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4282
4292
|
story: firstStory,
|
|
4283
4293
|
borderColor: sectionTagBorderColor
|
|
4284
|
-
}), /*#__PURE__*/
|
|
4294
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4285
4295
|
story: firstStory,
|
|
4286
4296
|
premiumStoryIconConfig: config
|
|
4287
|
-
}), /*#__PURE__*/
|
|
4297
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4288
4298
|
config: localizationConfig,
|
|
4289
4299
|
story: firstStory,
|
|
4290
4300
|
hideAuthorImage: true
|
|
4291
4301
|
}))))), otherStories.slice(0, 3).map(function (story) {
|
|
4292
|
-
return /*#__PURE__*/
|
|
4302
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4293
4303
|
className: "three-col-twelve-stories-m_small-card__3Dban",
|
|
4294
4304
|
key: story.id
|
|
4295
|
-
}, /*#__PURE__*/
|
|
4305
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
4296
4306
|
story: story,
|
|
4297
4307
|
theme: theme,
|
|
4298
4308
|
border: withSeparator ? "bottom" : "",
|
|
4299
4309
|
config: config
|
|
4300
|
-
}, /*#__PURE__*/
|
|
4310
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4301
4311
|
className: "three-col-twelve-stories-m_small-card-top-row__JG6Ca"
|
|
4302
|
-
}, /*#__PURE__*/
|
|
4312
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4303
4313
|
className: "three-col-twelve-stories-m_small-card-content__1NFXn"
|
|
4304
|
-
}, /*#__PURE__*/
|
|
4314
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4305
4315
|
story: story,
|
|
4306
4316
|
borderColor: sectionTagBorderColor
|
|
4307
|
-
}), /*#__PURE__*/
|
|
4317
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4308
4318
|
story: story,
|
|
4309
4319
|
premiumStoryIconConfig: config
|
|
4310
|
-
})), /*#__PURE__*/
|
|
4320
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4311
4321
|
className: "three-col-twelve-stories-m_small-card-hero-image__3oni8"
|
|
4312
|
-
}, /*#__PURE__*/
|
|
4322
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4313
4323
|
story: story,
|
|
4314
4324
|
aspectRatio: [[16, 9]]
|
|
4315
|
-
}))), /*#__PURE__*/
|
|
4325
|
+
}))), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4316
4326
|
config: localizationConfig,
|
|
4317
4327
|
story: story,
|
|
4318
4328
|
hideAuthorImage: true
|
|
4319
4329
|
})));
|
|
4320
|
-
})), /*#__PURE__*/
|
|
4330
|
+
})), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
4321
4331
|
template: footerButton,
|
|
4322
4332
|
collection: collection,
|
|
4323
4333
|
config: config,
|
|
@@ -4344,37 +4354,38 @@ function ThreeColTwelveStoriesBase(_ref) {
|
|
|
4344
4354
|
var isSlotTypeStory = get_1(slotConfig, [0, "type"], "story") === "story";
|
|
4345
4355
|
var collectionCount = isSlotTypeStory ? 3 : 2;
|
|
4346
4356
|
var textColor = getTextColor(theme);
|
|
4347
|
-
var qtConfig = useSelector(function (state) {
|
|
4357
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
4348
4358
|
return get_1(state, ["qt", "config"], {});
|
|
4349
4359
|
});
|
|
4350
4360
|
var adWidgetComponent = get_1(slotConfig, [0, "component"]);
|
|
4351
|
-
return /*#__PURE__*/
|
|
4361
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4352
4362
|
className: "full-width-with-padding arrow-component arr--three-col-twelve-stories",
|
|
4353
4363
|
"data-test-id": "three-col-twelve-stories",
|
|
4354
4364
|
style: {
|
|
4355
4365
|
backgroundColor: theme,
|
|
4356
4366
|
color: textColor
|
|
4357
4367
|
}
|
|
4358
|
-
}, /*#__PURE__*/
|
|
4368
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4359
4369
|
className: "three-col-twelve-stories-m_wrapper__3FwWi"
|
|
4360
4370
|
}, childCollections.slice(0, collectionCount).map(function (childCollection, index) {
|
|
4361
4371
|
return getChildCollectionData(childCollection, config, index, qtConfig);
|
|
4362
|
-
}), !isSlotTypeStory && adWidgetComponent && /*#__PURE__*/
|
|
4372
|
+
}), !isSlotTypeStory && adWidgetComponent && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4363
4373
|
className: "three-col-twelve-stories-m_ad-widget-container__1_jAm"
|
|
4364
4374
|
}, adWidgetComponent())));
|
|
4365
4375
|
}
|
|
4366
4376
|
ThreeColTwelveStoriesBase.propTypes = {
|
|
4367
|
-
collection:
|
|
4368
|
-
config:
|
|
4369
|
-
borderColor:
|
|
4370
|
-
theme:
|
|
4371
|
-
border:
|
|
4372
|
-
slotConfig:
|
|
4373
|
-
footerButton:
|
|
4374
|
-
collectionNameTemplate:
|
|
4375
|
-
collectionNameBorderColor:
|
|
4377
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
4378
|
+
config: PropTypes__default["default"].shape({
|
|
4379
|
+
borderColor: PropTypes__default["default"].string,
|
|
4380
|
+
theme: PropTypes__default["default"].string,
|
|
4381
|
+
border: PropTypes__default["default"].string,
|
|
4382
|
+
slotConfig: PropTypes__default["default"].array,
|
|
4383
|
+
footerButton: PropTypes__default["default"].string,
|
|
4384
|
+
collectionNameTemplate: PropTypes__default["default"].string,
|
|
4385
|
+
collectionNameBorderColor: PropTypes__default["default"].string
|
|
4376
4386
|
})
|
|
4377
4387
|
};
|
|
4378
4388
|
var ThreeColTwelveStories = StateProvider(ThreeColTwelveStoriesBase);
|
|
4379
4389
|
|
|
4380
|
-
|
|
4390
|
+
exports.ThreeColTwelveStories = ThreeColTwelveStories;
|
|
4391
|
+
exports.ThreeColTwelveStoriesBase = ThreeColTwelveStoriesBase;
|