@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,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components = require('@quintype/components');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactRedux = require('react-redux');
|
|
9
|
+
var Timeago = require('react-timeago');
|
|
10
|
+
var dateFnsTz = require('date-fns-tz');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
33
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
34
|
+
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
7
35
|
|
|
8
36
|
function _extends() {
|
|
9
37
|
_extends = Object.assign || function (target) {
|
|
@@ -1726,14 +1754,14 @@ var Dot = function Dot(_ref) {
|
|
|
1726
1754
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
1727
1755
|
_ref$color = _ref.color,
|
|
1728
1756
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
1729
|
-
return /*#__PURE__*/
|
|
1757
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1730
1758
|
className: _getClassName(color, _styleModuleImportMap$z)
|
|
1731
|
-
}, /*#__PURE__*/
|
|
1759
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1732
1760
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1733
1761
|
width: width,
|
|
1734
1762
|
height: height,
|
|
1735
1763
|
viewBox: "0 0 3 3"
|
|
1736
|
-
}, /*#__PURE__*/
|
|
1764
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
1737
1765
|
cx: "87",
|
|
1738
1766
|
cy: "9",
|
|
1739
1767
|
r: "1",
|
|
@@ -1744,43 +1772,43 @@ var Dot = function Dot(_ref) {
|
|
|
1744
1772
|
};
|
|
1745
1773
|
Dot.propTypes = {
|
|
1746
1774
|
/** height , width and color of the dot icon */
|
|
1747
|
-
color:
|
|
1748
|
-
width:
|
|
1749
|
-
height:
|
|
1775
|
+
color: PropTypes__default["default"].string,
|
|
1776
|
+
width: PropTypes__default["default"].string,
|
|
1777
|
+
height: PropTypes__default["default"].string
|
|
1750
1778
|
};
|
|
1751
1779
|
|
|
1752
1780
|
var Twitter = function Twitter(_ref) {
|
|
1753
1781
|
var _ref$color = _ref.color,
|
|
1754
1782
|
color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
|
|
1755
|
-
return /*#__PURE__*/
|
|
1783
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1756
1784
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1757
1785
|
width: "24",
|
|
1758
1786
|
height: "24",
|
|
1759
1787
|
viewBox: "0 0 24 24"
|
|
1760
|
-
}, /*#__PURE__*/
|
|
1788
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1761
1789
|
fill: color,
|
|
1762
1790
|
d: "M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"
|
|
1763
1791
|
}));
|
|
1764
1792
|
};
|
|
1765
1793
|
Twitter.propTypes = {
|
|
1766
|
-
color:
|
|
1794
|
+
color: PropTypes__default["default"].string
|
|
1767
1795
|
};
|
|
1768
1796
|
|
|
1769
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
1797
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
1770
1798
|
|
|
1771
1799
|
var StateProvider = function StateProvider(RowComponent) {
|
|
1772
1800
|
return function (props) {
|
|
1773
1801
|
return (
|
|
1774
1802
|
/*#__PURE__*/
|
|
1775
1803
|
// eslint-disable-next-line react/prop-types
|
|
1776
|
-
|
|
1804
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
1777
1805
|
value: props.config
|
|
1778
|
-
}, /*#__PURE__*/
|
|
1806
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
1779
1807
|
);
|
|
1780
1808
|
};
|
|
1781
1809
|
};
|
|
1782
1810
|
var useStateValue = function useStateValue() {
|
|
1783
|
-
return useContext(StateContext);
|
|
1811
|
+
return React.useContext(StateContext);
|
|
1784
1812
|
};
|
|
1785
1813
|
|
|
1786
1814
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -2839,15 +2867,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
2839
2867
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2840
2868
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2841
2869
|
};
|
|
2842
|
-
var shapeConfig =
|
|
2843
|
-
"sketches-host":
|
|
2844
|
-
"cdn-name":
|
|
2845
|
-
"cdn-image":
|
|
2870
|
+
var shapeConfig = PropTypes__default["default"].shape({
|
|
2871
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
2872
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
2873
|
+
"cdn-image": PropTypes__default["default"].string
|
|
2846
2874
|
});
|
|
2847
|
-
var shapeStory =
|
|
2848
|
-
headline:
|
|
2849
|
-
"last-published-at":
|
|
2850
|
-
subheadline:
|
|
2875
|
+
var shapeStory = PropTypes__default["default"].shape({
|
|
2876
|
+
headline: PropTypes__default["default"].string,
|
|
2877
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
2878
|
+
subheadline: PropTypes__default["default"].string
|
|
2851
2879
|
});
|
|
2852
2880
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2853
2881
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -2940,17 +2968,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
2940
2968
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
2941
2969
|
|
|
2942
2970
|
if (timezone && template === "story") {
|
|
2943
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
2944
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2971
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
2972
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
2945
2973
|
timeZone: timezone
|
|
2946
2974
|
});
|
|
2947
2975
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
2948
|
-
return /*#__PURE__*/
|
|
2976
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
2949
2977
|
dateTime: formatZonedTime
|
|
2950
2978
|
}, timeStamp);
|
|
2951
2979
|
}
|
|
2952
2980
|
|
|
2953
|
-
return /*#__PURE__*/
|
|
2981
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
2954
2982
|
date: date,
|
|
2955
2983
|
formatter: function formatter(value, unit, suffix, date) {
|
|
2956
2984
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -2989,9 +3017,9 @@ var authorImage = function authorImage(author) {
|
|
|
2989
3017
|
return null;
|
|
2990
3018
|
}
|
|
2991
3019
|
|
|
2992
|
-
return /*#__PURE__*/
|
|
3020
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
2993
3021
|
"data-test-id": "author-image"
|
|
2994
|
-
}, avatarS3Key ? /*#__PURE__*/
|
|
3022
|
+
}, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
2995
3023
|
slug: avatarS3Key,
|
|
2996
3024
|
"aspect-ratio": [1, 1],
|
|
2997
3025
|
defaultWidth: 48,
|
|
@@ -2999,7 +3027,7 @@ var authorImage = function authorImage(author) {
|
|
|
2999
3027
|
auto: ["format", "compress"]
|
|
3000
3028
|
},
|
|
3001
3029
|
alt: authorName
|
|
3002
|
-
}) : /*#__PURE__*/
|
|
3030
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3003
3031
|
src: avatarUrl
|
|
3004
3032
|
}));
|
|
3005
3033
|
};
|
|
@@ -3026,60 +3054,60 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
3026
3054
|
_opts$showName = opts.showName,
|
|
3027
3055
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
3028
3056
|
var textColor = getTextColor(configData.theme);
|
|
3029
|
-
return /*#__PURE__*/
|
|
3057
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3030
3058
|
"data-test-id": "author-card-".concat(kebabCase_1(template)),
|
|
3031
3059
|
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap$y)
|
|
3032
3060
|
}, authors.map(function (author, index) {
|
|
3033
|
-
return /*#__PURE__*/
|
|
3061
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
3034
3062
|
key: author.id
|
|
3035
|
-
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/
|
|
3063
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3036
3064
|
"data-test-id": "author-image",
|
|
3037
3065
|
className: "author-card-m_author-image-wrapper__1at-z"
|
|
3038
|
-
}, /*#__PURE__*/
|
|
3066
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3039
3067
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
3040
3068
|
key: "author-image-".concat(index),
|
|
3041
3069
|
"aria-label": "author-image"
|
|
3042
|
-
}, /*#__PURE__*/
|
|
3070
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3043
3071
|
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$y)
|
|
3044
3072
|
}, authorImage(author)))));
|
|
3045
|
-
}), showName && /*#__PURE__*/
|
|
3073
|
+
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3046
3074
|
"data-test-id": "author-name",
|
|
3047
3075
|
className: "author-card-m_author-name-share__3vb9q"
|
|
3048
3076
|
}, authors.map(function (author, index) {
|
|
3049
3077
|
var spaceHolder = ",\xA0";
|
|
3050
|
-
return /*#__PURE__*/
|
|
3078
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, index !== 0 && (authors.length > 1 ? spaceHolder : ""), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3051
3079
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
3052
3080
|
"aria-label": "author-name"
|
|
3053
|
-
}, /*#__PURE__*/
|
|
3081
|
+
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
3054
3082
|
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap$y)
|
|
3055
3083
|
}, author.name)));
|
|
3056
|
-
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/
|
|
3084
|
+
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, authors[0]["twitter-handle"] && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3057
3085
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
3058
|
-
}, /*#__PURE__*/
|
|
3086
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3059
3087
|
color: textColor
|
|
3060
|
-
})), /*#__PURE__*/
|
|
3088
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3061
3089
|
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
3062
3090
|
target: "_blank",
|
|
3063
3091
|
rel: "noopener noreferrer"
|
|
3064
|
-
}, /*#__PURE__*/
|
|
3092
|
+
}, /*#__PURE__*/React__default["default"].createElement(Twitter, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3065
3093
|
"data-test-id": "author-info",
|
|
3066
3094
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
3067
|
-
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/
|
|
3095
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3068
3096
|
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap$y)
|
|
3069
3097
|
}, authors[0].bio)));
|
|
3070
3098
|
};
|
|
3071
3099
|
AuthorCard.propTypes = {
|
|
3072
|
-
story:
|
|
3073
|
-
authors:
|
|
3100
|
+
story: PropTypes__default["default"].shape({
|
|
3101
|
+
authors: PropTypes__default["default"].array
|
|
3074
3102
|
}),
|
|
3075
|
-
template:
|
|
3076
|
-
opts:
|
|
3077
|
-
showImage:
|
|
3078
|
-
showBio:
|
|
3079
|
-
showName:
|
|
3103
|
+
template: PropTypes__default["default"].string,
|
|
3104
|
+
opts: PropTypes__default["default"].shape({
|
|
3105
|
+
showImage: PropTypes__default["default"].bool,
|
|
3106
|
+
showBio: PropTypes__default["default"].bool,
|
|
3107
|
+
showName: PropTypes__default["default"].bool
|
|
3080
3108
|
}),
|
|
3081
|
-
mountAt:
|
|
3082
|
-
clazzName:
|
|
3109
|
+
mountAt: PropTypes__default["default"].string,
|
|
3110
|
+
clazzName: PropTypes__default["default"].string
|
|
3083
3111
|
};
|
|
3084
3112
|
|
|
3085
3113
|
var _styleModuleImportMap$x = {
|
|
@@ -3116,14 +3144,14 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
3116
3144
|
var caption = heroImageCaption || title;
|
|
3117
3145
|
var attribution = heroImageAttribution || imageAttribution;
|
|
3118
3146
|
var updateStyle = caption ? "wrapper" : "";
|
|
3119
|
-
return /*#__PURE__*/
|
|
3147
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3120
3148
|
"data-test-id": "caption",
|
|
3121
3149
|
className: "arr--caption-attribution " + _getClassName("caption ".concat(textColor), _styleModuleImportMap$x)
|
|
3122
|
-
}, /*#__PURE__*/
|
|
3150
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3123
3151
|
dangerouslySetInnerHTML: {
|
|
3124
3152
|
__html: caption
|
|
3125
3153
|
}
|
|
3126
|
-
}), attribution && /*#__PURE__*/
|
|
3154
|
+
}), attribution && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3127
3155
|
"data-test-id": "attribution",
|
|
3128
3156
|
dangerouslySetInnerHTML: {
|
|
3129
3157
|
__html: attribution
|
|
@@ -3132,13 +3160,13 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
3132
3160
|
}));
|
|
3133
3161
|
};
|
|
3134
3162
|
CaptionAttribution.propTypes = {
|
|
3135
|
-
config:
|
|
3136
|
-
theme:
|
|
3163
|
+
config: PropTypes__default["default"].shape({
|
|
3164
|
+
theme: PropTypes__default["default"].string
|
|
3137
3165
|
}),
|
|
3138
3166
|
story: shapeStory,
|
|
3139
|
-
element:
|
|
3140
|
-
"image-attribution":
|
|
3141
|
-
title:
|
|
3167
|
+
element: PropTypes__default["default"].shape({
|
|
3168
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
3169
|
+
title: PropTypes__default["default"].string
|
|
3142
3170
|
})
|
|
3143
3171
|
};
|
|
3144
3172
|
|
|
@@ -3206,88 +3234,88 @@ function _slicedToArray(arr, i) {
|
|
|
3206
3234
|
var Facebook = function Facebook(_ref) {
|
|
3207
3235
|
var _ref$color = _ref.color,
|
|
3208
3236
|
color = _ref$color === void 0 ? "#3B5998" : _ref$color;
|
|
3209
|
-
return /*#__PURE__*/
|
|
3237
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3210
3238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3211
3239
|
width: "24",
|
|
3212
3240
|
height: "24",
|
|
3213
3241
|
viewBox: "0 0 24 24"
|
|
3214
|
-
}, /*#__PURE__*/
|
|
3242
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3215
3243
|
fill: color,
|
|
3216
3244
|
d: "M9.906 20v-7.156H7.5V10h2.406V7.75c0-1.187.334-2.11 1-2.766.667-.656 1.552-.984 2.656-.984.896 0 1.625.042 2.188.125v2.531h-1.5c-.563 0-.948.125-1.156.375-.167.209-.25.542-.25 1V10H15.5l-.375 2.844h-2.281V20H9.906z"
|
|
3217
3245
|
}));
|
|
3218
3246
|
};
|
|
3219
3247
|
Facebook.propTypes = {
|
|
3220
|
-
color:
|
|
3248
|
+
color: PropTypes__default["default"].string
|
|
3221
3249
|
};
|
|
3222
3250
|
|
|
3223
3251
|
var LinkedIn = function LinkedIn(_ref) {
|
|
3224
3252
|
var _ref$color = _ref.color,
|
|
3225
3253
|
color = _ref$color === void 0 ? "#0077B5" : _ref$color;
|
|
3226
|
-
return /*#__PURE__*/
|
|
3254
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3227
3255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3228
3256
|
width: "24",
|
|
3229
3257
|
height: "24",
|
|
3230
3258
|
viewBox: "0 0 24 24"
|
|
3231
|
-
}, /*#__PURE__*/
|
|
3259
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3232
3260
|
fill: color,
|
|
3233
3261
|
d: "M6.71 19H3.26V7.904h3.45V19zM5.005 6.383a1.926 1.926 0 01-1.41-.594A1.923 1.923 0 013 4.38c0-.544.198-1.014.594-1.41a1.926 1.926 0 011.41-.594c.544 0 1.014.198 1.41.594.396.396.594.866.594 1.41 0 .544-.198 1.014-.594 1.41a1.926 1.926 0 01-1.41.594zM19.625 19h-3.451v-5.418c0-.89-.074-1.534-.223-1.93-.272-.668-.804-1.002-1.596-1.002-.791 0-1.348.297-1.67.891-.247.445-.37 1.1-.37 1.967V19H8.9V7.904h3.303v1.522h.037c.248-.495.643-.903 1.188-1.225.593-.396 1.286-.594 2.078-.594 1.608 0 2.734.508 3.377 1.522.495.816.742 2.078.742 3.785V19z"
|
|
3234
3262
|
}));
|
|
3235
3263
|
};
|
|
3236
3264
|
LinkedIn.propTypes = {
|
|
3237
|
-
color:
|
|
3265
|
+
color: PropTypes__default["default"].string
|
|
3238
3266
|
};
|
|
3239
3267
|
|
|
3240
3268
|
var WhatsApp = function WhatsApp(_ref) {
|
|
3241
3269
|
var _ref$color = _ref.color,
|
|
3242
3270
|
color = _ref$color === void 0 ? "#4AC959" : _ref$color;
|
|
3243
|
-
return /*#__PURE__*/
|
|
3271
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3244
3272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3245
3273
|
width: "24",
|
|
3246
3274
|
height: "24",
|
|
3247
3275
|
viewBox: "0 0 24 24"
|
|
3248
|
-
}, /*#__PURE__*/
|
|
3276
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3249
3277
|
fill: color,
|
|
3250
3278
|
fillRule: "evenodd",
|
|
3251
3279
|
d: "M18.404 5.505a9.457 9.457 0 012.02 2.96 8.587 8.587 0 01.715 3.449 8.665 8.665 0 01-1.245 4.53 9.282 9.282 0 01-3.347 3.307 8.894 8.894 0 01-4.552 1.225 8.835 8.835 0 01-4.327-1.102l-4.817 1.265 1.307-4.694a8.775 8.775 0 01-1.225-4.531 8.77 8.77 0 011.225-4.531 9.17 9.17 0 013.306-3.307 8.781 8.781 0 014.531-1.224c1.198 0 2.347.23 3.45.693a9.515 9.515 0 012.959 1.96zm-6.409 13.96c1.36 0 2.626-.34 3.797-1.02a7.75 7.75 0 002.796-2.756 7.202 7.202 0 001.04-3.775c0-.98-.203-1.933-.612-2.858a8.088 8.088 0 00-1.694-2.47 7.565 7.565 0 00-2.449-1.653 7.405 7.405 0 00-2.878-.571c-1.36 0-2.62.34-3.776 1.02a7.646 7.646 0 00-2.755 2.756 7.316 7.316 0 00-1.02 3.776c0 1.442.394 2.775 1.183 4l.164.286-.776 2.775 2.857-.734.286.163a7.275 7.275 0 003.837 1.061zm4.123-5.674l.123.082c.19.082.299.15.326.204.027.054.034.19.02.408a2.11 2.11 0 01-.163.674c-.095.231-.313.462-.653.694-.34.231-.633.36-.878.388-.38.054-.748.054-1.102 0-.408-.082-.952-.273-1.632-.572-1.388-.599-2.654-1.714-3.797-3.347l-.081-.082c-.6-.843-.898-1.62-.898-2.327 0-.707.244-1.32.734-1.837l.041-.04c.19-.19.395-.286.612-.286h.49c.11 0 .198.02.266.061.068.041.129.143.183.306l.694 1.674c.082.163.095.3.041.408a2.832 2.832 0 01-.53.735.917.917 0 00-.205.265c-.027.068 0 .143.082.225.38.707.83 1.265 1.347 1.673.381.3.952.64 1.714 1.02.218.11.381.096.49-.04.354-.408.599-.707.735-.898.054-.109.123-.163.204-.163.082 0 .177.013.286.04.218.082.735.327 1.551.735z"
|
|
3252
3280
|
}));
|
|
3253
3281
|
};
|
|
3254
3282
|
WhatsApp.propTypes = {
|
|
3255
|
-
color:
|
|
3283
|
+
color: PropTypes__default["default"].string
|
|
3256
3284
|
};
|
|
3257
3285
|
|
|
3258
3286
|
var getSocialIcons = function getSocialIcons(color, iconType) {
|
|
3259
3287
|
switch (iconType) {
|
|
3260
3288
|
case "plain-color-svg":
|
|
3261
3289
|
return {
|
|
3262
|
-
facebook: /*#__PURE__*/
|
|
3290
|
+
facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
|
|
3263
3291
|
key: iconType
|
|
3264
3292
|
}),
|
|
3265
|
-
twitter: /*#__PURE__*/
|
|
3293
|
+
twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
|
|
3266
3294
|
key: iconType
|
|
3267
3295
|
}),
|
|
3268
|
-
linkedin: /*#__PURE__*/
|
|
3296
|
+
linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
|
|
3269
3297
|
key: iconType
|
|
3270
3298
|
}),
|
|
3271
|
-
whatsapp: /*#__PURE__*/
|
|
3299
|
+
whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
|
|
3272
3300
|
key: iconType
|
|
3273
3301
|
})
|
|
3274
3302
|
};
|
|
3275
3303
|
|
|
3276
3304
|
default:
|
|
3277
3305
|
return {
|
|
3278
|
-
facebook: /*#__PURE__*/
|
|
3306
|
+
facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
|
|
3279
3307
|
color: color,
|
|
3280
3308
|
key: iconType
|
|
3281
3309
|
}),
|
|
3282
|
-
twitter: /*#__PURE__*/
|
|
3310
|
+
twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
|
|
3283
3311
|
color: color,
|
|
3284
3312
|
key: iconType
|
|
3285
3313
|
}),
|
|
3286
|
-
linkedin: /*#__PURE__*/
|
|
3314
|
+
linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
|
|
3287
3315
|
color: color,
|
|
3288
3316
|
key: iconType
|
|
3289
3317
|
}),
|
|
3290
|
-
whatsapp: /*#__PURE__*/
|
|
3318
|
+
whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
|
|
3291
3319
|
color: color,
|
|
3292
3320
|
key: iconType
|
|
3293
3321
|
})
|
|
@@ -3343,22 +3371,22 @@ var socialShareData = function socialShareData(_ref) {
|
|
|
3343
3371
|
var CloseIcon = function CloseIcon(_ref) {
|
|
3344
3372
|
var _ref$color = _ref.color,
|
|
3345
3373
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
3346
|
-
return /*#__PURE__*/
|
|
3374
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3347
3375
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3348
3376
|
width: "24",
|
|
3349
3377
|
height: "24",
|
|
3350
3378
|
viewBox: "0 0 24 24"
|
|
3351
|
-
}, /*#__PURE__*/
|
|
3379
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3352
3380
|
fill: "none",
|
|
3353
3381
|
stroke: color,
|
|
3354
3382
|
strokeLinecap: "square",
|
|
3355
3383
|
strokeWidth: "2"
|
|
3356
|
-
}, /*#__PURE__*/
|
|
3384
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3357
3385
|
d: "M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"
|
|
3358
3386
|
})));
|
|
3359
3387
|
};
|
|
3360
3388
|
CloseIcon.propTypes = {
|
|
3361
|
-
color:
|
|
3389
|
+
color: PropTypes__default["default"].string
|
|
3362
3390
|
};
|
|
3363
3391
|
|
|
3364
3392
|
var _styleModuleImportMap$w = {
|
|
@@ -3379,17 +3407,17 @@ var _styleModuleImportMap$w = {
|
|
|
3379
3407
|
};
|
|
3380
3408
|
|
|
3381
3409
|
var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
|
|
3382
|
-
return url ? /*#__PURE__*/
|
|
3410
|
+
return url ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3383
3411
|
className: "social-share-popup-m_social-icon-wrapper__36jyV",
|
|
3384
3412
|
"data-testid": text,
|
|
3385
3413
|
key: "popup-item-".concat(index)
|
|
3386
|
-
}, /*#__PURE__*/
|
|
3414
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3387
3415
|
href: url,
|
|
3388
3416
|
target: "_blank",
|
|
3389
3417
|
rel: "noopener noreferrer",
|
|
3390
3418
|
className: "social-share-popup-m_social-wrapper__1lPzr",
|
|
3391
3419
|
"aria-label": "social-icon"
|
|
3392
|
-
}, icon, /*#__PURE__*/
|
|
3420
|
+
}, icon, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3393
3421
|
className: "social-share-popup-m_social-text__1QPXb"
|
|
3394
3422
|
}, text))) : null;
|
|
3395
3423
|
};
|
|
@@ -3419,20 +3447,20 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3419
3447
|
iconType: iconType
|
|
3420
3448
|
};
|
|
3421
3449
|
var popupItemsList = socialShareData(options);
|
|
3422
|
-
return /*#__PURE__*/
|
|
3450
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3423
3451
|
className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$w)
|
|
3424
|
-
}, /*#__PURE__*/
|
|
3452
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3425
3453
|
className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
|
|
3426
|
-
}, /*#__PURE__*/
|
|
3454
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3427
3455
|
className: "social-share-popup-m_top-bar__174Um"
|
|
3428
|
-
}, /*#__PURE__*/
|
|
3456
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3429
3457
|
className: "social-share-popup-m_share-text__19E-F"
|
|
3430
|
-
}, "Share via"), /*#__PURE__*/
|
|
3458
|
+
}, "Share via"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3431
3459
|
className: "social-share-popup-m_close__3k-Hj",
|
|
3432
3460
|
onClick: closePopup
|
|
3433
|
-
}, /*#__PURE__*/
|
|
3461
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
|
|
3434
3462
|
color: iconColor
|
|
3435
|
-
}))), /*#__PURE__*/
|
|
3463
|
+
}))), /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3436
3464
|
className: "social-share-popup-m_wrapper__3Ytce"
|
|
3437
3465
|
}, popupItemsList.map(function (_ref2, index) {
|
|
3438
3466
|
var url = _ref2.url,
|
|
@@ -3444,33 +3472,33 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3444
3472
|
}))));
|
|
3445
3473
|
};
|
|
3446
3474
|
SocialSharePopup.propTypes = {
|
|
3447
|
-
fbUrl:
|
|
3448
|
-
twitterUrl:
|
|
3449
|
-
linkedinUrl:
|
|
3450
|
-
whatsappUrl:
|
|
3451
|
-
grey:
|
|
3452
|
-
primaryColor:
|
|
3453
|
-
closePopup:
|
|
3454
|
-
theme:
|
|
3455
|
-
iconType:
|
|
3475
|
+
fbUrl: PropTypes__default["default"].string,
|
|
3476
|
+
twitterUrl: PropTypes__default["default"].string,
|
|
3477
|
+
linkedinUrl: PropTypes__default["default"].string,
|
|
3478
|
+
whatsappUrl: PropTypes__default["default"].string,
|
|
3479
|
+
grey: PropTypes__default["default"].string,
|
|
3480
|
+
primaryColor: PropTypes__default["default"].string,
|
|
3481
|
+
closePopup: PropTypes__default["default"].bool,
|
|
3482
|
+
theme: PropTypes__default["default"].string,
|
|
3483
|
+
iconType: PropTypes__default["default"].string
|
|
3456
3484
|
};
|
|
3457
3485
|
|
|
3458
3486
|
var ShareIcon = function ShareIcon(_ref) {
|
|
3459
3487
|
var _ref$color = _ref.color,
|
|
3460
3488
|
color = _ref$color === void 0 ? "#0D0D0D" : _ref$color;
|
|
3461
|
-
return /*#__PURE__*/
|
|
3489
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3462
3490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3463
3491
|
width: "24",
|
|
3464
3492
|
height: "24",
|
|
3465
3493
|
viewBox: "0 0 24 24"
|
|
3466
|
-
}, /*#__PURE__*/
|
|
3494
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3467
3495
|
fill: color,
|
|
3468
3496
|
fillRule: "evenodd",
|
|
3469
3497
|
d: "M15.843 3.189c-1.478 0-2.689 1.239-2.689 2.75 0 .293.046.58.13.846L8.844 9.31a2.638 2.638 0 00-1.687-.621c-1.477 0-2.688 1.238-2.688 2.75 0 1.51 1.21 2.75 2.688 2.75.638 0 1.224-.231 1.687-.615l4.446 2.525a2.778 2.778 0 00-.136.84c0 1.51 1.211 2.75 2.689 2.75 1.477 0 2.688-1.24 2.688-2.75 0-1.512-1.21-2.75-2.688-2.75-.742 0-1.419.317-1.907.82l-4.323-2.46a2.763 2.763 0 000-2.221l4.317-2.459c.488.506 1.168.82 1.913.82 1.477 0 2.688-1.239 2.688-2.75s-1.21-2.75-2.688-2.75z"
|
|
3470
3498
|
}));
|
|
3471
3499
|
};
|
|
3472
3500
|
ShareIcon.propTypes = {
|
|
3473
|
-
color:
|
|
3501
|
+
color: PropTypes__default["default"].string
|
|
3474
3502
|
};
|
|
3475
3503
|
|
|
3476
3504
|
/**
|
|
@@ -3739,10 +3767,10 @@ var ShareItem = function ShareItem(_ref) {
|
|
|
3739
3767
|
url = _ref.url,
|
|
3740
3768
|
icon = _ref.icon,
|
|
3741
3769
|
dataTestId = _ref.dataTestId;
|
|
3742
|
-
return url ? /*#__PURE__*/
|
|
3770
|
+
return url ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3743
3771
|
"data-testid": dataTestId,
|
|
3744
3772
|
className: "social-share-template-m_icon__1Mnu5"
|
|
3745
|
-
}, /*#__PURE__*/
|
|
3773
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3746
3774
|
href: url,
|
|
3747
3775
|
target: "_blank",
|
|
3748
3776
|
rel: "noopener noreferrer",
|
|
@@ -3752,17 +3780,17 @@ var ShareItem = function ShareItem(_ref) {
|
|
|
3752
3780
|
};
|
|
3753
3781
|
|
|
3754
3782
|
ShareItem.propTypes = {
|
|
3755
|
-
name:
|
|
3756
|
-
url:
|
|
3757
|
-
icon:
|
|
3758
|
-
dataTestId:
|
|
3783
|
+
name: PropTypes__default["default"].string,
|
|
3784
|
+
url: PropTypes__default["default"].string,
|
|
3785
|
+
icon: PropTypes__default["default"].node,
|
|
3786
|
+
dataTestId: PropTypes__default["default"].string
|
|
3759
3787
|
};
|
|
3760
3788
|
|
|
3761
3789
|
function getActionIcon(open, color) {
|
|
3762
|
-
if (!open) return /*#__PURE__*/
|
|
3790
|
+
if (!open) return /*#__PURE__*/React__default["default"].createElement(ShareIcon, {
|
|
3763
3791
|
color: color
|
|
3764
3792
|
});
|
|
3765
|
-
return /*#__PURE__*/
|
|
3793
|
+
return /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
|
|
3766
3794
|
color: color
|
|
3767
3795
|
});
|
|
3768
3796
|
}
|
|
@@ -3796,21 +3824,21 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3796
3824
|
};
|
|
3797
3825
|
var iconsList = socialShareData(options);
|
|
3798
3826
|
|
|
3799
|
-
var _useState = useState(open),
|
|
3827
|
+
var _useState = React.useState(open),
|
|
3800
3828
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3801
3829
|
isOpen = _useState2[0],
|
|
3802
3830
|
setIsOpen = _useState2[1];
|
|
3803
3831
|
|
|
3804
3832
|
var verticalShare = vertical ? "vertical" : "horizontal";
|
|
3805
|
-
useEffect(function () {
|
|
3833
|
+
React.useEffect(function () {
|
|
3806
3834
|
return setIsOpen(open);
|
|
3807
3835
|
}, [open]);
|
|
3808
3836
|
|
|
3809
3837
|
var shareIcon = function shareIcon() {
|
|
3810
|
-
return /*#__PURE__*/
|
|
3838
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3811
3839
|
className: "social-share-template-m_icon__1Mnu5",
|
|
3812
3840
|
key: "horizontal-0"
|
|
3813
|
-
}, /*#__PURE__*/
|
|
3841
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3814
3842
|
onClick: clickHandler
|
|
3815
3843
|
}, getActionIcon(isOpen, iconColor)));
|
|
3816
3844
|
};
|
|
@@ -3820,16 +3848,16 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3820
3848
|
};
|
|
3821
3849
|
|
|
3822
3850
|
var popUpWrapper = function popUpWrapper() {
|
|
3823
|
-
return /*#__PURE__*/
|
|
3851
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3824
3852
|
className: "social-share-template-m_tablet-view__kATzi"
|
|
3825
|
-
}, !isOpen && /*#__PURE__*/
|
|
3853
|
+
}, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3826
3854
|
className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$v)
|
|
3827
|
-
}, shareIcon()), isOpen && /*#__PURE__*/
|
|
3855
|
+
}, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3828
3856
|
className: "social-share-template-m_overlay__1nBp-",
|
|
3829
3857
|
onClick: clickHandler
|
|
3830
|
-
}, /*#__PURE__*/
|
|
3858
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3831
3859
|
className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$v)
|
|
3832
|
-
}, /*#__PURE__*/
|
|
3860
|
+
}, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
|
|
3833
3861
|
fbUrl: fbUrl,
|
|
3834
3862
|
twitterUrl: twitterUrl,
|
|
3835
3863
|
linkedinUrl: linkedinUrl,
|
|
@@ -3843,30 +3871,30 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3843
3871
|
};
|
|
3844
3872
|
|
|
3845
3873
|
var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
|
|
3846
|
-
return /*#__PURE__*/
|
|
3874
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3847
3875
|
"data-test-id": verticalShare,
|
|
3848
3876
|
className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$v)
|
|
3849
|
-
}, /*#__PURE__*/
|
|
3877
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3850
3878
|
className: "social-share-template-m_desktop-view__3TmkO"
|
|
3851
|
-
}, /*#__PURE__*/
|
|
3879
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3852
3880
|
"data-test-id": camelCase_1(iconType),
|
|
3853
3881
|
className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$v)
|
|
3854
3882
|
}, shareIcon(), iconsList.map(function (iconData, index) {
|
|
3855
|
-
return /*#__PURE__*/
|
|
3883
|
+
return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
|
|
3856
3884
|
key: iconData.name,
|
|
3857
3885
|
dataTestId: "card-share-".concat(index)
|
|
3858
3886
|
}));
|
|
3859
3887
|
}))), popUpWrapper());
|
|
3860
3888
|
};
|
|
3861
3889
|
SocialShareTemplate.propTypes = {
|
|
3862
|
-
fbUrl:
|
|
3863
|
-
twitterUrl:
|
|
3864
|
-
linkedinUrl:
|
|
3865
|
-
whatsappUrl:
|
|
3866
|
-
vertical:
|
|
3867
|
-
theme:
|
|
3868
|
-
iconType:
|
|
3869
|
-
open:
|
|
3890
|
+
fbUrl: PropTypes__default["default"].string,
|
|
3891
|
+
twitterUrl: PropTypes__default["default"].string,
|
|
3892
|
+
linkedinUrl: PropTypes__default["default"].string,
|
|
3893
|
+
whatsappUrl: PropTypes__default["default"].string,
|
|
3894
|
+
vertical: PropTypes__default["default"].bool,
|
|
3895
|
+
theme: PropTypes__default["default"].string,
|
|
3896
|
+
iconType: PropTypes__default["default"].string,
|
|
3897
|
+
open: PropTypes__default["default"]["boolean"]
|
|
3870
3898
|
};
|
|
3871
3899
|
|
|
3872
3900
|
var _styleModuleImportMap$u = {
|
|
@@ -3904,22 +3932,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3904
3932
|
}
|
|
3905
3933
|
|
|
3906
3934
|
if (!isSection) return null;
|
|
3907
|
-
return /*#__PURE__*/
|
|
3935
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3908
3936
|
href: getUrl,
|
|
3909
3937
|
className: "arrow-component arr--section-name",
|
|
3910
3938
|
"aria-label": "section-name"
|
|
3911
|
-
}, /*#__PURE__*/
|
|
3939
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3912
3940
|
"data-test-id": "sectionTag",
|
|
3913
3941
|
style: {
|
|
3914
3942
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3915
3943
|
},
|
|
3916
3944
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$u)
|
|
3917
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3945
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3918
3946
|
className: "section-m_border-left__2oUyp",
|
|
3919
3947
|
style: {
|
|
3920
3948
|
color: sectionTagBorderColor
|
|
3921
3949
|
}
|
|
3922
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3950
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3923
3951
|
className: "section-m_border-bottom__3cRoD",
|
|
3924
3952
|
style: {
|
|
3925
3953
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3928,13 +3956,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3928
3956
|
};
|
|
3929
3957
|
SectionTag.propTypes = {
|
|
3930
3958
|
/** The Story Object from the API response */
|
|
3931
|
-
story:
|
|
3959
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3932
3960
|
|
|
3933
3961
|
/** The style template for section tag */
|
|
3934
|
-
template:
|
|
3935
|
-
borderColor:
|
|
3936
|
-
solidBorderColor:
|
|
3937
|
-
isLightTheme:
|
|
3962
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3963
|
+
borderColor: PropTypes__default["default"].string,
|
|
3964
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3965
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3938
3966
|
};
|
|
3939
3967
|
SectionTag.defaultProps = {
|
|
3940
3968
|
template: "",
|
|
@@ -3947,7 +3975,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3947
3975
|
_ref$color = _ref.color,
|
|
3948
3976
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
3949
3977
|
positionTop = _ref.positionTop;
|
|
3950
|
-
return /*#__PURE__*/
|
|
3978
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3951
3979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3952
3980
|
width: width,
|
|
3953
3981
|
height: height,
|
|
@@ -3956,28 +3984,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3956
3984
|
position: "relative",
|
|
3957
3985
|
top: positionTop
|
|
3958
3986
|
}
|
|
3959
|
-
}, /*#__PURE__*/
|
|
3987
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3960
3988
|
fill: "none",
|
|
3961
3989
|
fillRule: "evenodd",
|
|
3962
3990
|
stroke: "none",
|
|
3963
3991
|
strokeWidth: "1"
|
|
3964
|
-
}, /*#__PURE__*/
|
|
3992
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3965
3993
|
transform: "translate(8 8)"
|
|
3966
|
-
}, /*#__PURE__*/
|
|
3994
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3967
3995
|
d: "M0 0H24V24H0z"
|
|
3968
|
-
}), /*#__PURE__*/
|
|
3996
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3969
3997
|
fill: color,
|
|
3970
3998
|
fillRule: "nonzero",
|
|
3971
3999
|
transform: "translate(0 2)"
|
|
3972
|
-
}, /*#__PURE__*/
|
|
4000
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3973
4001
|
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"
|
|
3974
4002
|
}))))));
|
|
3975
4003
|
};
|
|
3976
4004
|
CrownIcon.propTypes = {
|
|
3977
|
-
height:
|
|
3978
|
-
width:
|
|
3979
|
-
color:
|
|
3980
|
-
positionTop:
|
|
4005
|
+
height: PropTypes__default["default"].string,
|
|
4006
|
+
width: PropTypes__default["default"].string,
|
|
4007
|
+
color: PropTypes__default["default"].string,
|
|
4008
|
+
positionTop: PropTypes__default["default"].string
|
|
3981
4009
|
};
|
|
3982
4010
|
|
|
3983
4011
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -3986,7 +4014,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3986
4014
|
_ref$color = _ref.color,
|
|
3987
4015
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3988
4016
|
positionTop = _ref.positionTop;
|
|
3989
|
-
return /*#__PURE__*/
|
|
4017
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3990
4018
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3991
4019
|
width: width,
|
|
3992
4020
|
height: height,
|
|
@@ -3995,16 +4023,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3995
4023
|
position: "relative",
|
|
3996
4024
|
top: positionTop
|
|
3997
4025
|
}
|
|
3998
|
-
}, /*#__PURE__*/
|
|
4026
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3999
4027
|
fill: "none",
|
|
4000
4028
|
fillRule: "evenodd",
|
|
4001
4029
|
stroke: "none",
|
|
4002
4030
|
strokeWidth: "1"
|
|
4003
|
-
}, /*#__PURE__*/
|
|
4031
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4004
4032
|
transform: "translate(8 8)"
|
|
4005
|
-
}, /*#__PURE__*/
|
|
4033
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4006
4034
|
d: "M0 0H24V24H0z"
|
|
4007
|
-
}), /*#__PURE__*/
|
|
4035
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4008
4036
|
fill: color,
|
|
4009
4037
|
fillRule: "nonzero",
|
|
4010
4038
|
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",
|
|
@@ -4012,10 +4040,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
4012
4040
|
})))));
|
|
4013
4041
|
};
|
|
4014
4042
|
KeyIcon.propTypes = {
|
|
4015
|
-
height:
|
|
4016
|
-
width:
|
|
4017
|
-
color:
|
|
4018
|
-
positionTop:
|
|
4043
|
+
height: PropTypes__default["default"].string,
|
|
4044
|
+
width: PropTypes__default["default"].string,
|
|
4045
|
+
color: PropTypes__default["default"].string,
|
|
4046
|
+
positionTop: PropTypes__default["default"].string
|
|
4019
4047
|
};
|
|
4020
4048
|
|
|
4021
4049
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -4024,7 +4052,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
4024
4052
|
_ref$color = _ref.color,
|
|
4025
4053
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
4026
4054
|
positionTop = _ref.positionTop;
|
|
4027
|
-
return /*#__PURE__*/
|
|
4055
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4028
4056
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4029
4057
|
width: width,
|
|
4030
4058
|
height: height,
|
|
@@ -4033,28 +4061,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
4033
4061
|
position: "relative",
|
|
4034
4062
|
top: positionTop
|
|
4035
4063
|
}
|
|
4036
|
-
}, /*#__PURE__*/
|
|
4064
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4037
4065
|
fill: "none",
|
|
4038
4066
|
fillRule: "evenodd",
|
|
4039
4067
|
stroke: "none",
|
|
4040
4068
|
strokeWidth: "1"
|
|
4041
|
-
}, /*#__PURE__*/
|
|
4069
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4042
4070
|
transform: "translate(8 8)"
|
|
4043
|
-
}, /*#__PURE__*/
|
|
4071
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4044
4072
|
d: "M0 0H24V24H0z"
|
|
4045
|
-
}), /*#__PURE__*/
|
|
4073
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4046
4074
|
fill: color,
|
|
4047
4075
|
fillRule: "nonzero",
|
|
4048
4076
|
transform: "translate(3)"
|
|
4049
|
-
}, /*#__PURE__*/
|
|
4077
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4050
4078
|
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"
|
|
4051
4079
|
}))))));
|
|
4052
4080
|
};
|
|
4053
4081
|
LockIcon.propTypes = {
|
|
4054
|
-
height:
|
|
4055
|
-
width:
|
|
4056
|
-
color:
|
|
4057
|
-
positionTop:
|
|
4082
|
+
height: PropTypes__default["default"].string,
|
|
4083
|
+
width: PropTypes__default["default"].string,
|
|
4084
|
+
color: PropTypes__default["default"].string,
|
|
4085
|
+
positionTop: PropTypes__default["default"].string
|
|
4058
4086
|
};
|
|
4059
4087
|
|
|
4060
4088
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -4064,7 +4092,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
4064
4092
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
4065
4093
|
_ref$positionTop = _ref.positionTop,
|
|
4066
4094
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
4067
|
-
return /*#__PURE__*/
|
|
4095
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4068
4096
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4069
4097
|
width: width,
|
|
4070
4098
|
height: height,
|
|
@@ -4073,21 +4101,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
4073
4101
|
position: "relative",
|
|
4074
4102
|
top: positionTop
|
|
4075
4103
|
}
|
|
4076
|
-
}, /*#__PURE__*/
|
|
4104
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4077
4105
|
fill: "none",
|
|
4078
4106
|
fillRule: "evenodd",
|
|
4079
4107
|
stroke: "none",
|
|
4080
4108
|
strokeWidth: "1"
|
|
4081
|
-
}, /*#__PURE__*/
|
|
4109
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4082
4110
|
fill: color,
|
|
4083
4111
|
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"
|
|
4084
4112
|
}))));
|
|
4085
4113
|
};
|
|
4086
4114
|
StarIcon.propTypes = {
|
|
4087
|
-
height:
|
|
4088
|
-
width:
|
|
4089
|
-
color:
|
|
4090
|
-
positionTop:
|
|
4115
|
+
height: PropTypes__default["default"].string,
|
|
4116
|
+
width: PropTypes__default["default"].string,
|
|
4117
|
+
color: PropTypes__default["default"].string,
|
|
4118
|
+
positionTop: PropTypes__default["default"].string
|
|
4091
4119
|
};
|
|
4092
4120
|
|
|
4093
4121
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -4099,7 +4127,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4099
4127
|
|
|
4100
4128
|
switch (iconType) {
|
|
4101
4129
|
case "crown":
|
|
4102
|
-
return /*#__PURE__*/
|
|
4130
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
4103
4131
|
width: width,
|
|
4104
4132
|
height: height,
|
|
4105
4133
|
color: color,
|
|
@@ -4107,7 +4135,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4107
4135
|
});
|
|
4108
4136
|
|
|
4109
4137
|
case "lock":
|
|
4110
|
-
return /*#__PURE__*/
|
|
4138
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
4111
4139
|
width: width,
|
|
4112
4140
|
height: height,
|
|
4113
4141
|
color: color,
|
|
@@ -4115,7 +4143,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4115
4143
|
});
|
|
4116
4144
|
|
|
4117
4145
|
case "key":
|
|
4118
|
-
return /*#__PURE__*/
|
|
4146
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
4119
4147
|
width: width,
|
|
4120
4148
|
height: height,
|
|
4121
4149
|
color: color,
|
|
@@ -4123,7 +4151,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4123
4151
|
});
|
|
4124
4152
|
|
|
4125
4153
|
default:
|
|
4126
|
-
return /*#__PURE__*/
|
|
4154
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
4127
4155
|
width: width,
|
|
4128
4156
|
height: height,
|
|
4129
4157
|
color: color,
|
|
@@ -4132,11 +4160,11 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4132
4160
|
}
|
|
4133
4161
|
};
|
|
4134
4162
|
PremiumStoryIcon.propTypes = {
|
|
4135
|
-
width:
|
|
4136
|
-
height:
|
|
4137
|
-
color:
|
|
4138
|
-
iconType:
|
|
4139
|
-
positionTop:
|
|
4163
|
+
width: PropTypes__default["default"].string,
|
|
4164
|
+
height: PropTypes__default["default"].string,
|
|
4165
|
+
color: PropTypes__default["default"].string,
|
|
4166
|
+
iconType: PropTypes__default["default"].string,
|
|
4167
|
+
positionTop: PropTypes__default["default"].string
|
|
4140
4168
|
};
|
|
4141
4169
|
|
|
4142
4170
|
var _styleModuleImportMap$t = {
|
|
@@ -4163,29 +4191,29 @@ var StoryHeadline = function StoryHeadline(_ref) {
|
|
|
4163
4191
|
var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
|
|
4164
4192
|
var wrapperClass = premiumStory ? "premium-wrapper" : "wrapper";
|
|
4165
4193
|
var iconSize = "40px";
|
|
4166
|
-
return /*#__PURE__*/
|
|
4194
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4167
4195
|
className: "arrow-component arr--story-headline " + _getClassName(wrapperClass, _styleModuleImportMap$t)
|
|
4168
|
-
}, premiumStory && /*#__PURE__*/
|
|
4196
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
4169
4197
|
width: iconSize,
|
|
4170
4198
|
height: iconSize,
|
|
4171
4199
|
color: iconColor,
|
|
4172
4200
|
iconType: iconStyle,
|
|
4173
4201
|
positionTop: "6px"
|
|
4174
|
-
}), /*#__PURE__*/
|
|
4202
|
+
}), /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
4175
4203
|
"data-testid": "story-headline",
|
|
4176
4204
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$t)
|
|
4177
|
-
}, /*#__PURE__*/
|
|
4205
|
+
}, /*#__PURE__*/React__default["default"].createElement("bdi", {
|
|
4178
4206
|
dangerouslySetInnerHTML: {
|
|
4179
4207
|
__html: story.headline
|
|
4180
4208
|
}
|
|
4181
4209
|
})));
|
|
4182
4210
|
};
|
|
4183
4211
|
StoryHeadline.propTypes = {
|
|
4184
|
-
story:
|
|
4185
|
-
premiumStoryIconConfig:
|
|
4186
|
-
iconColor:
|
|
4187
|
-
iconType:
|
|
4188
|
-
enablePremiumStoryIcon:
|
|
4212
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4213
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
4214
|
+
iconColor: PropTypes__default["default"].string,
|
|
4215
|
+
iconType: PropTypes__default["default"].string,
|
|
4216
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
4189
4217
|
})
|
|
4190
4218
|
};
|
|
4191
4219
|
|
|
@@ -4209,7 +4237,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
4209
4237
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
4210
4238
|
if (!subheadline) return null;
|
|
4211
4239
|
var textColor = getTextColor(config.theme);
|
|
4212
|
-
return /*#__PURE__*/
|
|
4240
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4213
4241
|
style: {
|
|
4214
4242
|
WebkitLineClamp: lineClamp
|
|
4215
4243
|
},
|
|
@@ -4219,15 +4247,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
4219
4247
|
};
|
|
4220
4248
|
Subheadline.propTypes = {
|
|
4221
4249
|
/** The Story Object from the API response */
|
|
4222
|
-
story:
|
|
4250
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4223
4251
|
// Restricts the number of lines for subheadline.
|
|
4224
|
-
lineClamp:
|
|
4252
|
+
lineClamp: PropTypes__default["default"].number,
|
|
4225
4253
|
|
|
4226
4254
|
/** Number of characters to truncate the subheadline */
|
|
4227
|
-
truncateChars:
|
|
4228
|
-
clazzName:
|
|
4229
|
-
forceShowAtom:
|
|
4230
|
-
showFullContent:
|
|
4255
|
+
truncateChars: PropTypes__default["default"].number,
|
|
4256
|
+
clazzName: PropTypes__default["default"].string,
|
|
4257
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
4258
|
+
showFullContent: PropTypes__default["default"].bool
|
|
4231
4259
|
};
|
|
4232
4260
|
Subheadline.defaultProps = {
|
|
4233
4261
|
forceShowAtom: false,
|
|
@@ -4241,27 +4269,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4241
4269
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
4242
4270
|
_ref$iconColor = _ref.iconColor,
|
|
4243
4271
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
4244
|
-
return /*#__PURE__*/
|
|
4272
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4245
4273
|
width: width,
|
|
4246
4274
|
height: height,
|
|
4247
4275
|
viewBox: "0 0 102 76",
|
|
4248
4276
|
version: "1.1"
|
|
4249
|
-
}, /*#__PURE__*/
|
|
4277
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4250
4278
|
id: "demo-home-copy",
|
|
4251
4279
|
stroke: "none",
|
|
4252
4280
|
strokeWidth: "1",
|
|
4253
4281
|
fill: "none",
|
|
4254
4282
|
fillRule: "evenodd",
|
|
4255
4283
|
transform: "translate(-377.000000, -314.000000)"
|
|
4256
|
-
}, /*#__PURE__*/
|
|
4284
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4257
4285
|
id: "Group-13",
|
|
4258
4286
|
transform: "translate(377.000000, 314.000000)"
|
|
4259
|
-
}, /*#__PURE__*/
|
|
4287
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4260
4288
|
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",
|
|
4261
4289
|
id: "Combined-Shape",
|
|
4262
4290
|
fill: iconColor,
|
|
4263
4291
|
fillRule: "nonzero"
|
|
4264
|
-
}), /*#__PURE__*/
|
|
4292
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4265
4293
|
id: "Rectangle-19",
|
|
4266
4294
|
stroke: iconColor,
|
|
4267
4295
|
strokeWidth: "3",
|
|
@@ -4273,24 +4301,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4273
4301
|
}))));
|
|
4274
4302
|
};
|
|
4275
4303
|
ImageFallbackIcon.propTypes = {
|
|
4276
|
-
width:
|
|
4277
|
-
height:
|
|
4278
|
-
iconColor:
|
|
4304
|
+
width: PropTypes__default["default"].object,
|
|
4305
|
+
height: PropTypes__default["default"].object,
|
|
4306
|
+
iconColor: PropTypes__default["default"].object
|
|
4279
4307
|
};
|
|
4280
4308
|
|
|
4281
4309
|
var imageFallback = function imageFallback() {
|
|
4282
|
-
return /*#__PURE__*/
|
|
4310
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4283
4311
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
4284
|
-
}, /*#__PURE__*/
|
|
4312
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4285
4313
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
4286
|
-
}, /*#__PURE__*/
|
|
4314
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
4287
4315
|
};
|
|
4288
4316
|
|
|
4289
4317
|
var FallbackImage = function FallbackImage(_ref) {
|
|
4290
4318
|
var slug = _ref.slug;
|
|
4291
4319
|
|
|
4292
4320
|
if (slug) {
|
|
4293
|
-
return /*#__PURE__*/
|
|
4321
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4294
4322
|
href: slug,
|
|
4295
4323
|
"aria-label": "image-fallback"
|
|
4296
4324
|
}, imageFallback());
|
|
@@ -4299,23 +4327,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
4299
4327
|
}
|
|
4300
4328
|
};
|
|
4301
4329
|
FallbackImage.propTypes = {
|
|
4302
|
-
slug:
|
|
4330
|
+
slug: PropTypes__default["default"].string
|
|
4303
4331
|
};
|
|
4304
4332
|
|
|
4305
4333
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
4306
|
-
return /*#__PURE__*/
|
|
4334
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4307
4335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4308
4336
|
width: "36",
|
|
4309
4337
|
height: "28"
|
|
4310
|
-
}, /*#__PURE__*/
|
|
4338
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4311
4339
|
fill: "none",
|
|
4312
4340
|
fillRule: "evenodd"
|
|
4313
|
-
}, /*#__PURE__*/
|
|
4341
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4314
4342
|
width: "36",
|
|
4315
4343
|
height: "28",
|
|
4316
4344
|
fill: "#3D6FCF",
|
|
4317
4345
|
rx: "4"
|
|
4318
|
-
}), /*#__PURE__*/
|
|
4346
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4319
4347
|
stroke: "#FFF",
|
|
4320
4348
|
strokeLinecap: "round",
|
|
4321
4349
|
strokeLinejoin: "round",
|
|
@@ -4328,16 +4356,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
4328
4356
|
var _ref$hyperLink = _ref.hyperLink,
|
|
4329
4357
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
4330
4358
|
if (!hyperLink) return null;
|
|
4331
|
-
return /*#__PURE__*/
|
|
4359
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4332
4360
|
href: hyperLink,
|
|
4333
4361
|
"aria-label": "hyperlink-button",
|
|
4334
4362
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
4335
4363
|
target: "_blank",
|
|
4336
4364
|
rel: "noopener noreferrer"
|
|
4337
|
-
}, /*#__PURE__*/
|
|
4365
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
4338
4366
|
};
|
|
4339
4367
|
HyperLink.propTypes = {
|
|
4340
|
-
hyperLink:
|
|
4368
|
+
hyperLink: PropTypes__default["default"].string
|
|
4341
4369
|
};
|
|
4342
4370
|
|
|
4343
4371
|
var _styleModuleImportMap$r = {
|
|
@@ -4373,7 +4401,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4373
4401
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
4374
4402
|
return null;
|
|
4375
4403
|
} : _config$StoryTemplate;
|
|
4376
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
4404
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
4377
4405
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
4378
4406
|
});
|
|
4379
4407
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -4409,37 +4437,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4409
4437
|
var fallbackImage = function fallbackImage() {
|
|
4410
4438
|
if (!slug) {
|
|
4411
4439
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
4412
|
-
return /*#__PURE__*/
|
|
4440
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4413
4441
|
style: {
|
|
4414
4442
|
paddingTop: imagePadding + "%"
|
|
4415
4443
|
},
|
|
4416
4444
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$r)
|
|
4417
|
-
}, /*#__PURE__*/
|
|
4445
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4418
4446
|
className: "qt-image",
|
|
4419
4447
|
"data-src": "".concat(fallbackImageUrl),
|
|
4420
4448
|
alt: "image-fallback"
|
|
4421
4449
|
}));
|
|
4422
4450
|
}
|
|
4423
4451
|
|
|
4424
|
-
return /*#__PURE__*/
|
|
4452
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4425
4453
|
"data-test-id": "arr--fallback-hero-image",
|
|
4426
4454
|
style: {
|
|
4427
4455
|
paddingTop: imagePadding + "%"
|
|
4428
4456
|
},
|
|
4429
4457
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$r)
|
|
4430
|
-
}, /*#__PURE__*/
|
|
4458
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4431
4459
|
storyTemplate: story["story-template"]
|
|
4432
|
-
}), /*#__PURE__*/
|
|
4460
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
4433
4461
|
}
|
|
4434
4462
|
|
|
4435
|
-
return /*#__PURE__*/
|
|
4463
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4436
4464
|
style: {
|
|
4437
4465
|
paddingTop: imagePadding + "%"
|
|
4438
4466
|
},
|
|
4439
4467
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$r)
|
|
4440
|
-
}, /*#__PURE__*/
|
|
4468
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4441
4469
|
storyTemplate: story["story-template"]
|
|
4442
|
-
}), /*#__PURE__*/
|
|
4470
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
4443
4471
|
story: story,
|
|
4444
4472
|
aspectRatio: imageAspectRatio,
|
|
4445
4473
|
defaultWidth: defaultWidth,
|
|
@@ -4448,15 +4476,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4448
4476
|
auto: ["format", "compress"],
|
|
4449
4477
|
fit: "max"
|
|
4450
4478
|
}
|
|
4451
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
4479
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
4452
4480
|
hyperLink: hyperLink
|
|
4453
4481
|
}));
|
|
4454
4482
|
};
|
|
4455
4483
|
|
|
4456
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
4484
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4457
4485
|
"data-test-id": "arr--hero-image",
|
|
4458
4486
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$r)
|
|
4459
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
4487
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4460
4488
|
"data-test-id": "arr--hero-image",
|
|
4461
4489
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4462
4490
|
externalLink: isExternalStory(story),
|
|
@@ -4466,30 +4494,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4466
4494
|
};
|
|
4467
4495
|
HeroImage.propTypes = {
|
|
4468
4496
|
/** The Story Object from the API response */
|
|
4469
|
-
story:
|
|
4497
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4470
4498
|
|
|
4471
4499
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
4472
|
-
FullBleed:
|
|
4500
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
4473
4501
|
|
|
4474
4502
|
/** The default width for the image, in case the browser does not support srcset */
|
|
4475
|
-
defaultWidth:
|
|
4503
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
4476
4504
|
|
|
4477
4505
|
/** The list of available widths */
|
|
4478
|
-
widths:
|
|
4506
|
+
widths: PropTypes__default["default"].array,
|
|
4479
4507
|
// fatch the correct hero image
|
|
4480
|
-
aspectRatio:
|
|
4508
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
4481
4509
|
// Hints for the browser to choose the best size
|
|
4482
4510
|
|
|
4483
4511
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
4484
|
-
isHorizontal:
|
|
4512
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4485
4513
|
|
|
4486
4514
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
4487
|
-
isHorizontalMobile:
|
|
4515
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4488
4516
|
// this prop is responsive for rendering fallback image on story page
|
|
4489
|
-
defaultFallback:
|
|
4490
|
-
isHorizontalWithImageLast:
|
|
4491
|
-
isStoryPageImage:
|
|
4492
|
-
config:
|
|
4517
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
4518
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
4519
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
4520
|
+
config: PropTypes__default["default"].object
|
|
4493
4521
|
};
|
|
4494
4522
|
HeroImage.defaultProps = {
|
|
4495
4523
|
FullBleed: true,
|
|
@@ -4524,23 +4552,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
4524
4552
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
4525
4553
|
if (!showReadTime || !readTime) return null;
|
|
4526
4554
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
4527
|
-
return /*#__PURE__*/
|
|
4555
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4528
4556
|
"data-test-id": "read-time",
|
|
4529
4557
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$q)
|
|
4530
|
-
}, /*#__PURE__*/
|
|
4558
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4531
4559
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
4532
|
-
}, /*#__PURE__*/
|
|
4560
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
4533
4561
|
color: textColor
|
|
4534
|
-
})), /*#__PURE__*/
|
|
4562
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
4535
4563
|
};
|
|
4536
4564
|
ReadTime.propTypes = {
|
|
4537
|
-
story:
|
|
4538
|
-
"read-time":
|
|
4565
|
+
story: PropTypes__default["default"].shape({
|
|
4566
|
+
"read-time": PropTypes__default["default"].number
|
|
4539
4567
|
}),
|
|
4540
|
-
opts:
|
|
4541
|
-
showReadTime:
|
|
4568
|
+
opts: PropTypes__default["default"].shape({
|
|
4569
|
+
showReadTime: PropTypes__default["default"].bool
|
|
4542
4570
|
}),
|
|
4543
|
-
isLightTheme:
|
|
4571
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4544
4572
|
};
|
|
4545
4573
|
|
|
4546
4574
|
var _styleModuleImportMap$p = {
|
|
@@ -4569,12 +4597,12 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
4569
4597
|
_ref$timezone = _ref.timezone,
|
|
4570
4598
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
4571
4599
|
|
|
4572
|
-
var _useState = useState("ltr"),
|
|
4600
|
+
var _useState = React.useState("ltr"),
|
|
4573
4601
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4574
4602
|
direction = _useState2[0],
|
|
4575
4603
|
setDirection = _useState2[1];
|
|
4576
4604
|
|
|
4577
|
-
useEffect(function () {
|
|
4605
|
+
React.useEffect(function () {
|
|
4578
4606
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
4579
4607
|
|
|
4580
4608
|
if (htmlElement && htmlElement.length > 0 && htmlElement[0].dir.toLocaleLowerCase() === "rtl") {
|
|
@@ -4600,41 +4628,41 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
4600
4628
|
direction: direction,
|
|
4601
4629
|
showTime: true
|
|
4602
4630
|
});
|
|
4603
|
-
return /*#__PURE__*/
|
|
4631
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4604
4632
|
"data-test-id": "timeStamp",
|
|
4605
4633
|
className: "arrow-component arr-publish-details " + _getClassName("timeStamp ".concat(textColor), _styleModuleImportMap$p)
|
|
4606
|
-
}, /*#__PURE__*/
|
|
4634
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4607
4635
|
"data-test-id": "publishDetails",
|
|
4608
4636
|
className: _getClassName("publish-details ".concat(textColor), _styleModuleImportMap$p)
|
|
4609
|
-
}, enablePublishedTime && /*#__PURE__*/
|
|
4637
|
+
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4610
4638
|
className: "publish-details-m_date__3ZIQN"
|
|
4611
|
-
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
4639
|
+
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
4612
4640
|
story: story,
|
|
4613
4641
|
opts: opts
|
|
4614
|
-
}))), enableUpdatedTime && /*#__PURE__*/
|
|
4642
|
+
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4615
4643
|
"data-test-id": "updateDetails",
|
|
4616
4644
|
className: _getClassName("update-details ".concat(textColor), _styleModuleImportMap$p)
|
|
4617
|
-
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/
|
|
4645
|
+
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4618
4646
|
className: "publish-details-m_date__3ZIQN"
|
|
4619
|
-
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
4647
|
+
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
4620
4648
|
story: story,
|
|
4621
4649
|
opts: opts
|
|
4622
4650
|
})));
|
|
4623
4651
|
};
|
|
4624
4652
|
PublishDetails.propTypes = {
|
|
4625
4653
|
/** The Story Object from the API response */
|
|
4626
|
-
story:
|
|
4627
|
-
"first-published-at":
|
|
4628
|
-
"last-published-at":
|
|
4629
|
-
"read-time":
|
|
4630
|
-
"updated-at":
|
|
4654
|
+
story: PropTypes__default["default"].shape({
|
|
4655
|
+
"first-published-at": PropTypes__default["default"].number,
|
|
4656
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
4657
|
+
"read-time": PropTypes__default["default"].number,
|
|
4658
|
+
"updated-at": PropTypes__default["default"].number
|
|
4631
4659
|
}),
|
|
4632
|
-
timezone:
|
|
4633
|
-
template:
|
|
4634
|
-
opts:
|
|
4635
|
-
showReadTime:
|
|
4636
|
-
enableUpdatedTime:
|
|
4637
|
-
enablePublishedTime:
|
|
4660
|
+
timezone: PropTypes__default["default"].string,
|
|
4661
|
+
template: PropTypes__default["default"].string,
|
|
4662
|
+
opts: PropTypes__default["default"].shape({
|
|
4663
|
+
showReadTime: PropTypes__default["default"].bool,
|
|
4664
|
+
enableUpdatedTime: PropTypes__default["default"].bool,
|
|
4665
|
+
enablePublishedTime: PropTypes__default["default"].bool
|
|
4638
4666
|
})
|
|
4639
4667
|
};
|
|
4640
4668
|
|
|
@@ -4657,24 +4685,24 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
4657
4685
|
var textColor = getTextColor(configData.theme);
|
|
4658
4686
|
var mountAt = get_1(config, ["mountAt"], "");
|
|
4659
4687
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
4660
|
-
return /*#__PURE__*/
|
|
4688
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4661
4689
|
className: "arrow-component arr--story-tags"
|
|
4662
4690
|
}, tags.length > 0 && tags.map(function (tag, index) {
|
|
4663
|
-
return /*#__PURE__*/
|
|
4691
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4664
4692
|
key: index,
|
|
4665
4693
|
"data-test-id": "story-tag",
|
|
4666
4694
|
className: _getClassName("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$o)
|
|
4667
|
-
}, /*#__PURE__*/
|
|
4695
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4668
4696
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
4669
4697
|
"aria-label": "story-tag-name"
|
|
4670
4698
|
}, tag.name));
|
|
4671
4699
|
}));
|
|
4672
4700
|
};
|
|
4673
4701
|
StoryTags.propTypes = {
|
|
4674
|
-
tags:
|
|
4675
|
-
borderColor:
|
|
4676
|
-
config:
|
|
4677
|
-
template: string
|
|
4702
|
+
tags: PropTypes__default["default"].array,
|
|
4703
|
+
borderColor: PropTypes__default["default"].string,
|
|
4704
|
+
config: PropTypes__default["default"].object,
|
|
4705
|
+
template: PropTypes.string
|
|
4678
4706
|
};
|
|
4679
4707
|
|
|
4680
4708
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -4720,13 +4748,13 @@ var withElementWrapper = function withElementWrapper(StoryElement) {
|
|
|
4720
4748
|
|
|
4721
4749
|
if (!element) return null;
|
|
4722
4750
|
if (render && typeof render === "function") return render(props);
|
|
4723
|
-
return /*#__PURE__*/
|
|
4751
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
|
|
4724
4752
|
element: element
|
|
4725
4753
|
}));
|
|
4726
4754
|
};
|
|
4727
4755
|
};
|
|
4728
4756
|
withElementWrapper.propTypes = {
|
|
4729
|
-
StoryElement:
|
|
4757
|
+
StoryElement: PropTypes__default["default"].element
|
|
4730
4758
|
};
|
|
4731
4759
|
|
|
4732
4760
|
var _excluded$d = ["element", "opts", "css", "story", "config"];
|
|
@@ -4762,7 +4790,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
4762
4790
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
4763
4791
|
var isPromotionalMessage = get_1(element, ["metadata", "promotional-message"], false);
|
|
4764
4792
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
4765
|
-
return /*#__PURE__*/
|
|
4793
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
4766
4794
|
style: !isPromotionalMessage ? {
|
|
4767
4795
|
color: textColor
|
|
4768
4796
|
} : {},
|
|
@@ -4777,15 +4805,15 @@ var TextBase = function TextBase(_ref) {
|
|
|
4777
4805
|
};
|
|
4778
4806
|
|
|
4779
4807
|
TextBase.propTypes = {
|
|
4780
|
-
element:
|
|
4781
|
-
text:
|
|
4808
|
+
element: PropTypes__default["default"].shape({
|
|
4809
|
+
text: PropTypes__default["default"].string
|
|
4782
4810
|
}),
|
|
4783
|
-
opts:
|
|
4784
|
-
isExternalLink:
|
|
4811
|
+
opts: PropTypes__default["default"].shape({
|
|
4812
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
4785
4813
|
}),
|
|
4786
|
-
css:
|
|
4787
|
-
hyperlinkColor:
|
|
4788
|
-
textColor:
|
|
4814
|
+
css: PropTypes__default["default"].shape({
|
|
4815
|
+
hyperlinkColor: PropTypes__default["default"].string,
|
|
4816
|
+
textColor: PropTypes__default["default"].string
|
|
4789
4817
|
}),
|
|
4790
4818
|
story: shapeStory,
|
|
4791
4819
|
config: shapeConfig
|
|
@@ -4826,13 +4854,13 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
4826
4854
|
borderLeft: "solid 2px ".concat(borderColor)
|
|
4827
4855
|
};
|
|
4828
4856
|
|
|
4829
|
-
var _useState = useState(initBorderDirection),
|
|
4857
|
+
var _useState = React.useState(initBorderDirection),
|
|
4830
4858
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4831
4859
|
borderDirection = _useState2[0],
|
|
4832
4860
|
setBorderDirection = _useState2[1];
|
|
4833
4861
|
|
|
4834
4862
|
if (!content) return null;
|
|
4835
|
-
useEffect(function () {
|
|
4863
|
+
React.useEffect(function () {
|
|
4836
4864
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
4837
4865
|
|
|
4838
4866
|
if (htmlElement && htmlElement.length) {
|
|
@@ -4849,7 +4877,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
4849
4877
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
4850
4878
|
var configData = useStateValue() || {};
|
|
4851
4879
|
var textInvertColor = getTextColor(configData.theme);
|
|
4852
|
-
return /*#__PURE__*/
|
|
4880
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
4853
4881
|
"data-test-id": "blurb",
|
|
4854
4882
|
style: borderColor && borderDirection,
|
|
4855
4883
|
dangerouslySetInnerHTML: {
|
|
@@ -4861,19 +4889,19 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
4861
4889
|
};
|
|
4862
4890
|
|
|
4863
4891
|
BlurbBase.propTypes = {
|
|
4864
|
-
element:
|
|
4865
|
-
text:
|
|
4892
|
+
element: PropTypes__default["default"].shape({
|
|
4893
|
+
text: PropTypes__default["default"].string
|
|
4866
4894
|
}),
|
|
4867
4895
|
|
|
4868
4896
|
/** templates can be either default or withBorder */
|
|
4869
|
-
template:
|
|
4870
|
-
opts:
|
|
4871
|
-
isExternalLink:
|
|
4897
|
+
template: PropTypes__default["default"].string,
|
|
4898
|
+
opts: PropTypes__default["default"].shape({
|
|
4899
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
4872
4900
|
}),
|
|
4873
4901
|
story: shapeStory,
|
|
4874
4902
|
config: shapeConfig,
|
|
4875
|
-
render:
|
|
4876
|
-
css:
|
|
4903
|
+
render: PropTypes__default["default"].func,
|
|
4904
|
+
css: PropTypes__default["default"].object
|
|
4877
4905
|
};
|
|
4878
4906
|
var Blurb = withElementWrapper(BlurbBase);
|
|
4879
4907
|
|
|
@@ -4926,19 +4954,19 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
4926
4954
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
4927
4955
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
4928
4956
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
4929
|
-
return /*#__PURE__*/
|
|
4957
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
4930
4958
|
"data-test-id": "summary"
|
|
4931
4959
|
}, restProps, {
|
|
4932
4960
|
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName(templateStyle, _styleModuleImportMap$l) + (" " + (restProps ? restProps.className || "" : ""))
|
|
4933
|
-
}), !hideHeadline && /*#__PURE__*/
|
|
4961
|
+
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4934
4962
|
"data-test-id": "summary-headline",
|
|
4935
4963
|
className: _getClassName("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$l)
|
|
4936
|
-
}, /*#__PURE__*/
|
|
4964
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4937
4965
|
style: {
|
|
4938
4966
|
backgroundColor: updateHeaderColor
|
|
4939
4967
|
},
|
|
4940
4968
|
className: _getClassName("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$l)
|
|
4941
|
-
}, headline)), /*#__PURE__*/
|
|
4969
|
+
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4942
4970
|
dangerouslySetInnerHTML: {
|
|
4943
4971
|
__html: text
|
|
4944
4972
|
},
|
|
@@ -4947,20 +4975,20 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
4947
4975
|
};
|
|
4948
4976
|
|
|
4949
4977
|
SummaryBase.propTypes = {
|
|
4950
|
-
element:
|
|
4951
|
-
text:
|
|
4978
|
+
element: PropTypes__default["default"].shape({
|
|
4979
|
+
text: PropTypes__default["default"].string
|
|
4952
4980
|
}),
|
|
4953
|
-
template:
|
|
4954
|
-
opts:
|
|
4955
|
-
isExternalLink:
|
|
4956
|
-
headline:
|
|
4957
|
-
hideHeadline:
|
|
4981
|
+
template: PropTypes__default["default"].string,
|
|
4982
|
+
opts: PropTypes__default["default"].shape({
|
|
4983
|
+
isExternalLink: PropTypes__default["default"].bool,
|
|
4984
|
+
headline: PropTypes__default["default"].string,
|
|
4985
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
4958
4986
|
}),
|
|
4959
4987
|
story: shapeStory,
|
|
4960
4988
|
config: shapeConfig,
|
|
4961
|
-
render:
|
|
4962
|
-
css:
|
|
4963
|
-
headerBgColor:
|
|
4989
|
+
render: PropTypes__default["default"].func,
|
|
4990
|
+
css: PropTypes__default["default"].shape({
|
|
4991
|
+
headerBgColor: PropTypes__default["default"].string
|
|
4964
4992
|
})
|
|
4965
4993
|
};
|
|
4966
4994
|
var Summary = withElementWrapper(SummaryBase);
|
|
@@ -4972,27 +5000,27 @@ var CurveIcon = function CurveIcon(_ref) {
|
|
|
4972
5000
|
opacity = _ref.opacity;
|
|
4973
5001
|
var lightColor = color === "light" && "#ffffff";
|
|
4974
5002
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
4975
|
-
return /*#__PURE__*/
|
|
5003
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4976
5004
|
className: "icon-m_curve-wrapper__3-sLV",
|
|
4977
5005
|
style: {
|
|
4978
5006
|
fill: "".concat(lightColor || darkColor || color)
|
|
4979
5007
|
}
|
|
4980
|
-
}, /*#__PURE__*/
|
|
5008
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4981
5009
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4982
5010
|
width: width,
|
|
4983
5011
|
height: height,
|
|
4984
5012
|
viewBox: "0 0 64 64"
|
|
4985
|
-
}, /*#__PURE__*/
|
|
5013
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4986
5014
|
fill: "inherit",
|
|
4987
5015
|
opacity: opacity,
|
|
4988
5016
|
d: "M61 44.702c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067-2.638-2.712-3.956-6.704-3.956-11.976 0-4.971.716-9.227 2.147-12.767 1.432-3.54 3.165-6.553 5.2-9.039 2.034-2.485 4.144-4.481 6.33-5.988 2.184-1.506 4.106-2.56 5.763-3.163l5.652 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.035 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.007 3.163C60.171 39.13 61 41.69 61 44.702zm-33.004 0c0 3.465-1.13 6.214-3.39 8.248-2.261 2.033-5.125 3.05-8.59 3.05-4.07 0-7.423-1.356-10.06-4.067C3.319 49.22 2 45.229 2 39.957c0-4.971.716-9.227 2.148-12.767 1.431-3.54 3.164-6.553 5.199-9.039 2.034-2.485 4.144-4.481 6.33-5.988C17.86 10.657 19.782 9.603 21.44 9l5.651 7.909c-3.316 1.657-5.99 3.879-8.025 6.666-2.034 2.786-3.052 6.289-3.052 10.507.603-.15 1.432-.226 2.487-.226 3.014 0 5.35 1.054 7.008 3.163 1.657 2.11 2.486 4.67 2.486 7.683z"
|
|
4989
5017
|
})));
|
|
4990
5018
|
};
|
|
4991
5019
|
CurveIcon.propTypes = {
|
|
4992
|
-
width:
|
|
4993
|
-
height:
|
|
4994
|
-
color:
|
|
4995
|
-
opacity:
|
|
5020
|
+
width: PropTypes__default["default"].string,
|
|
5021
|
+
height: PropTypes__default["default"].string,
|
|
5022
|
+
color: PropTypes__default["default"].string,
|
|
5023
|
+
opacity: PropTypes__default["default"].string
|
|
4996
5024
|
};
|
|
4997
5025
|
|
|
4998
5026
|
var EdgeIcon = function EdgeIcon(_ref) {
|
|
@@ -5002,27 +5030,27 @@ var EdgeIcon = function EdgeIcon(_ref) {
|
|
|
5002
5030
|
opacity = _ref.opacity;
|
|
5003
5031
|
var lightColor = color === "light" && "#ffffff";
|
|
5004
5032
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
5005
|
-
return /*#__PURE__*/
|
|
5033
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5006
5034
|
className: "icon-m_edge-wrapper__xUOdp",
|
|
5007
5035
|
style: {
|
|
5008
5036
|
fill: "".concat(lightColor || darkColor || color)
|
|
5009
5037
|
}
|
|
5010
|
-
}, /*#__PURE__*/
|
|
5038
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
5011
5039
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5012
5040
|
width: width,
|
|
5013
5041
|
height: height,
|
|
5014
5042
|
viewBox: "0 0 64 64"
|
|
5015
|
-
}, /*#__PURE__*/
|
|
5043
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
5016
5044
|
fill: "inherit",
|
|
5017
5045
|
opacity: opacity,
|
|
5018
5046
|
d: "M16.858 29.836v4.727H28V60H4V29.836c0-9.6 2.606-16.727 7.746-21.187C15.3 5.564 19.8 4 25.122 4v13.627c-2.888 0-8.264 0-8.264 12.209zm40.264-12.21V4c-5.32 0-9.82 1.564-13.376 4.65C38.606 13.108 36 20.236 36 29.835V60h24V34.563H48.857v-4.727c0-12.21 5.377-12.21 8.265-12.21z"
|
|
5019
5047
|
})));
|
|
5020
5048
|
};
|
|
5021
5049
|
EdgeIcon.propTypes = {
|
|
5022
|
-
width:
|
|
5023
|
-
height:
|
|
5024
|
-
color:
|
|
5025
|
-
opacity:
|
|
5050
|
+
width: PropTypes__default["default"].string,
|
|
5051
|
+
height: PropTypes__default["default"].string,
|
|
5052
|
+
color: PropTypes__default["default"].string,
|
|
5053
|
+
opacity: PropTypes__default["default"].string
|
|
5026
5054
|
};
|
|
5027
5055
|
|
|
5028
5056
|
var _excluded$a = ["element", "template", "css", "story", "config", "render"];
|
|
@@ -5052,7 +5080,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
5052
5080
|
|
|
5053
5081
|
if (template === "withBackground") {
|
|
5054
5082
|
if (iconType === "edgeIcon") {
|
|
5055
|
-
return /*#__PURE__*/
|
|
5083
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
5056
5084
|
width: dimension,
|
|
5057
5085
|
height: dimension,
|
|
5058
5086
|
color: quoteColor,
|
|
@@ -5060,7 +5088,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
5060
5088
|
});
|
|
5061
5089
|
}
|
|
5062
5090
|
|
|
5063
|
-
return /*#__PURE__*/
|
|
5091
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
5064
5092
|
width: dimension,
|
|
5065
5093
|
height: dimension,
|
|
5066
5094
|
color: quoteColor,
|
|
@@ -5070,14 +5098,14 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
5070
5098
|
|
|
5071
5099
|
if (template !== "withBackground") {
|
|
5072
5100
|
if (iconType === "edgeIcon") {
|
|
5073
|
-
return /*#__PURE__*/
|
|
5101
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
5074
5102
|
width: dimension,
|
|
5075
5103
|
height: dimension,
|
|
5076
5104
|
color: blockQuoteColor
|
|
5077
5105
|
});
|
|
5078
5106
|
}
|
|
5079
5107
|
|
|
5080
|
-
return /*#__PURE__*/
|
|
5108
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
5081
5109
|
width: dimension,
|
|
5082
5110
|
height: dimension,
|
|
5083
5111
|
color: blockQuoteColor
|
|
@@ -5113,38 +5141,38 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
5113
5141
|
var textInvertColor = getTextColor(isBackground ? theme.backgroundColor : configData.theme);
|
|
5114
5142
|
|
|
5115
5143
|
var updateStructure = function updateStructure() {
|
|
5116
|
-
return template === "withBorder" ? /*#__PURE__*/
|
|
5144
|
+
return template === "withBorder" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5117
5145
|
className: "block-quote-m_icon-border__2xQQY"
|
|
5118
|
-
}, /*#__PURE__*/
|
|
5146
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5119
5147
|
className: "block-quote-m_icon__m-EIZ"
|
|
5120
|
-
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/
|
|
5148
|
+
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5121
5149
|
className: "block-quote-m_border__1ZTPR",
|
|
5122
5150
|
style: blockQuoteColor && {
|
|
5123
5151
|
backgroundColor: blockQuoteColor
|
|
5124
5152
|
}
|
|
5125
|
-
})) : /*#__PURE__*/
|
|
5153
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5126
5154
|
className: "block-quote-m_icon__m-EIZ"
|
|
5127
5155
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
5128
5156
|
};
|
|
5129
5157
|
|
|
5130
|
-
return /*#__PURE__*/
|
|
5158
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5131
5159
|
"data-test-id": "blockquote",
|
|
5132
5160
|
style: theme
|
|
5133
5161
|
}, restProps, {
|
|
5134
5162
|
className: "arrow-component arr--block-quote " + _getClassName("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$k) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5135
|
-
}), /*#__PURE__*/
|
|
5163
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5136
5164
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
5137
|
-
}, updateStructure(), /*#__PURE__*/
|
|
5165
|
+
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5138
5166
|
className: "block-quote-m_wrapper__2KEhw",
|
|
5139
5167
|
style: blockQuoteColor && {
|
|
5140
5168
|
borderColor: blockQuoteColor
|
|
5141
5169
|
}
|
|
5142
|
-
}, /*#__PURE__*/
|
|
5170
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5143
5171
|
dangerouslySetInnerHTML: {
|
|
5144
5172
|
__html: content
|
|
5145
5173
|
},
|
|
5146
5174
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$k)
|
|
5147
|
-
}), /*#__PURE__*/
|
|
5175
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5148
5176
|
dangerouslySetInnerHTML: {
|
|
5149
5177
|
__html: attribution
|
|
5150
5178
|
},
|
|
@@ -5152,17 +5180,17 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
5152
5180
|
}))));
|
|
5153
5181
|
};
|
|
5154
5182
|
BlockQuoteBase.propTypes = {
|
|
5155
|
-
element:
|
|
5156
|
-
metadata:
|
|
5157
|
-
content:
|
|
5158
|
-
attribution:
|
|
5183
|
+
element: PropTypes__default["default"].shape({
|
|
5184
|
+
metadata: PropTypes__default["default"].shape({
|
|
5185
|
+
content: PropTypes__default["default"].string,
|
|
5186
|
+
attribution: PropTypes__default["default"].string
|
|
5159
5187
|
})
|
|
5160
5188
|
}),
|
|
5161
|
-
template:
|
|
5189
|
+
template: PropTypes__default["default"].string,
|
|
5162
5190
|
story: shapeStory,
|
|
5163
5191
|
config: shapeConfig,
|
|
5164
|
-
render:
|
|
5165
|
-
css:
|
|
5192
|
+
render: PropTypes__default["default"].func,
|
|
5193
|
+
css: PropTypes__default["default"].object
|
|
5166
5194
|
};
|
|
5167
5195
|
var BlockQuote = withElementWrapper(BlockQuoteBase);
|
|
5168
5196
|
|
|
@@ -5190,27 +5218,27 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
5190
5218
|
var _element$metadata = element.metadata,
|
|
5191
5219
|
content = _element$metadata.content,
|
|
5192
5220
|
attribution = _element$metadata.attribution;
|
|
5193
|
-
return /*#__PURE__*/
|
|
5221
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5194
5222
|
"data-test-id": "bigfact"
|
|
5195
5223
|
}, restProps, {
|
|
5196
5224
|
className: "arrow-component arr--bigfact-element " + _getClassName("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$j) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5197
|
-
}), /*#__PURE__*/
|
|
5225
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5198
5226
|
className: "big-fact-m_content__1u2Ul"
|
|
5199
|
-
}, content), /*#__PURE__*/
|
|
5227
|
+
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5200
5228
|
"data-test-id": "attribution",
|
|
5201
5229
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$j)
|
|
5202
5230
|
}, attribution));
|
|
5203
5231
|
};
|
|
5204
5232
|
|
|
5205
5233
|
BigFactBase.propTypes = {
|
|
5206
|
-
element:
|
|
5207
|
-
metadata:
|
|
5208
|
-
content:
|
|
5209
|
-
attribution:
|
|
5234
|
+
element: PropTypes__default["default"].shape({
|
|
5235
|
+
metadata: PropTypes__default["default"].shape({
|
|
5236
|
+
content: PropTypes__default["default"].string,
|
|
5237
|
+
attribution: PropTypes__default["default"].string
|
|
5210
5238
|
})
|
|
5211
5239
|
}),
|
|
5212
|
-
story:
|
|
5213
|
-
config:
|
|
5240
|
+
story: PropTypes__default["default"].object,
|
|
5241
|
+
config: PropTypes__default["default"].object
|
|
5214
5242
|
};
|
|
5215
5243
|
var BigFact = withElementWrapper(BigFactBase);
|
|
5216
5244
|
|
|
@@ -5244,11 +5272,11 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
5244
5272
|
var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
|
|
5245
5273
|
var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
|
|
5246
5274
|
var alternateText = story["hero-image-caption"] || story["headline"];
|
|
5247
|
-
return /*#__PURE__*/
|
|
5275
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5248
5276
|
className: "also-read-m_card-image-wrapper__3GFzu"
|
|
5249
|
-
}, !isEmpty(linkedImage) ? /*#__PURE__*/
|
|
5277
|
+
}, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5250
5278
|
className: "also-read-m_card-image__3CwAv"
|
|
5251
|
-
}, /*#__PURE__*/
|
|
5279
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5252
5280
|
slug: linkedImage,
|
|
5253
5281
|
"aspect-ratio": imageAspectRatio,
|
|
5254
5282
|
defaultWidth: 480,
|
|
@@ -5257,19 +5285,19 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
5257
5285
|
auto: ["format", "compress"]
|
|
5258
5286
|
},
|
|
5259
5287
|
alt: alternateText
|
|
5260
|
-
}))) : /*#__PURE__*/
|
|
5288
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5261
5289
|
className: "arr--fallback-also-read also-read-m_image__2jdRP"
|
|
5262
|
-
}, /*#__PURE__*/
|
|
5290
|
+
}, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
|
|
5263
5291
|
};
|
|
5264
5292
|
|
|
5265
5293
|
DisplayImage.propTypes = {
|
|
5266
|
-
story:
|
|
5267
|
-
"hero-image-caption":
|
|
5268
|
-
headline:
|
|
5294
|
+
story: PropTypes__default["default"].shape({
|
|
5295
|
+
"hero-image-caption": PropTypes__default["default"].string,
|
|
5296
|
+
headline: PropTypes__default["default"].string
|
|
5269
5297
|
}),
|
|
5270
|
-
linkedImage:
|
|
5271
|
-
template:
|
|
5272
|
-
isRightAlign:
|
|
5298
|
+
linkedImage: PropTypes__default["default"].string,
|
|
5299
|
+
template: PropTypes__default["default"].string,
|
|
5300
|
+
isRightAlign: PropTypes__default["default"].bool
|
|
5273
5301
|
};
|
|
5274
5302
|
|
|
5275
5303
|
var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
@@ -5302,22 +5330,22 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
5302
5330
|
var isDefault = template === "" || template === "default";
|
|
5303
5331
|
var isRightAlign = template === "imageRightAlign";
|
|
5304
5332
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
5305
|
-
return /*#__PURE__*/
|
|
5333
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
|
|
5306
5334
|
"data-test-id": "also-read",
|
|
5307
5335
|
href: storyUrl,
|
|
5308
5336
|
"aria-label": "also-read"
|
|
5309
5337
|
}, restProps, {
|
|
5310
5338
|
className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap$i) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5311
|
-
}), !isDefault && /*#__PURE__*/
|
|
5339
|
+
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5312
5340
|
className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap$i)
|
|
5313
|
-
}, displayTitle), isDefault && /*#__PURE__*/
|
|
5341
|
+
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
5314
5342
|
story: story,
|
|
5315
5343
|
linkedImage: linkedImage,
|
|
5316
5344
|
template: template,
|
|
5317
5345
|
isRightAlign: isRightAlign
|
|
5318
|
-
}), /*#__PURE__*/
|
|
5346
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5319
5347
|
className: "also-read-m_content-wrapper__26AZX"
|
|
5320
|
-
}, /*#__PURE__*/
|
|
5348
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5321
5349
|
className: "also-read-m_headline__VzF-c",
|
|
5322
5350
|
style: textColor ? {
|
|
5323
5351
|
color: textColor
|
|
@@ -5327,7 +5355,7 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
5327
5355
|
dangerouslySetInnerHTML: {
|
|
5328
5356
|
__html: content
|
|
5329
5357
|
}
|
|
5330
|
-
}), isRightAlign && /*#__PURE__*/
|
|
5358
|
+
}), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
5331
5359
|
story: story,
|
|
5332
5360
|
linkedImage: linkedImage,
|
|
5333
5361
|
template: template
|
|
@@ -5336,25 +5364,25 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
5336
5364
|
|
|
5337
5365
|
AlsoReadBase.propTypes = {
|
|
5338
5366
|
/** template can be default, textLeftAlign or imageRightAlign */
|
|
5339
|
-
template:
|
|
5340
|
-
story:
|
|
5341
|
-
"linked-stories":
|
|
5367
|
+
template: PropTypes__default["default"].string,
|
|
5368
|
+
story: PropTypes__default["default"].shape({
|
|
5369
|
+
"linked-stories": PropTypes__default["default"].object
|
|
5342
5370
|
}),
|
|
5343
|
-
element:
|
|
5344
|
-
text:
|
|
5345
|
-
metadata:
|
|
5346
|
-
linkedStoryId:
|
|
5347
|
-
url:
|
|
5348
|
-
"hero-image-s3-key":
|
|
5371
|
+
element: PropTypes__default["default"].shape({
|
|
5372
|
+
text: PropTypes__default["default"].string,
|
|
5373
|
+
metadata: PropTypes__default["default"].shape({
|
|
5374
|
+
linkedStoryId: PropTypes__default["default"].shape({
|
|
5375
|
+
url: PropTypes__default["default"].string,
|
|
5376
|
+
"hero-image-s3-key": PropTypes__default["default"].string
|
|
5349
5377
|
})
|
|
5350
5378
|
})
|
|
5351
5379
|
}),
|
|
5352
|
-
opts:
|
|
5353
|
-
title:
|
|
5380
|
+
opts: PropTypes__default["default"].shape({
|
|
5381
|
+
title: PropTypes__default["default"].string
|
|
5354
5382
|
}),
|
|
5355
5383
|
config: shapeConfig,
|
|
5356
|
-
render:
|
|
5357
|
-
css:
|
|
5384
|
+
render: PropTypes__default["default"].func,
|
|
5385
|
+
css: PropTypes__default["default"].object
|
|
5358
5386
|
};
|
|
5359
5387
|
var AlsoRead = withElementWrapper(AlsoReadBase);
|
|
5360
5388
|
|
|
@@ -5362,20 +5390,20 @@ var Loading = function Loading(_ref) {
|
|
|
5362
5390
|
_ref.width;
|
|
5363
5391
|
_ref.height;
|
|
5364
5392
|
_ref.iconColor;
|
|
5365
|
-
return /*#__PURE__*/
|
|
5393
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5366
5394
|
className: "loading-m_loading-indicator__2Dlst"
|
|
5367
|
-
}, /*#__PURE__*/
|
|
5395
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
5368
5396
|
width: "40",
|
|
5369
5397
|
height: "40",
|
|
5370
5398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5371
5399
|
viewBox: "0 0 100 100",
|
|
5372
5400
|
preserveAspectRatio: "xMidYMid"
|
|
5373
|
-
}, /*#__PURE__*/
|
|
5401
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
5374
5402
|
cx: "84",
|
|
5375
5403
|
cy: "50",
|
|
5376
5404
|
r: "0",
|
|
5377
5405
|
fill: "currentColor"
|
|
5378
|
-
}, /*#__PURE__*/
|
|
5406
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5379
5407
|
attributeName: "r",
|
|
5380
5408
|
values: "10;0;0;0;0",
|
|
5381
5409
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5384,7 +5412,7 @@ var Loading = function Loading(_ref) {
|
|
|
5384
5412
|
dur: "2s",
|
|
5385
5413
|
repeatCount: "indefinite",
|
|
5386
5414
|
begin: "0s"
|
|
5387
|
-
}), /*#__PURE__*/
|
|
5415
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5388
5416
|
attributeName: "cx",
|
|
5389
5417
|
values: "84;84;84;84;84",
|
|
5390
5418
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5393,12 +5421,12 @@ var Loading = function Loading(_ref) {
|
|
|
5393
5421
|
dur: "2s",
|
|
5394
5422
|
repeatCount: "indefinite",
|
|
5395
5423
|
begin: "0s"
|
|
5396
|
-
})), /*#__PURE__*/
|
|
5424
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
5397
5425
|
cx: "84",
|
|
5398
5426
|
cy: "50",
|
|
5399
5427
|
r: ".709",
|
|
5400
5428
|
fill: "currentColor"
|
|
5401
|
-
}, /*#__PURE__*/
|
|
5429
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5402
5430
|
attributeName: "r",
|
|
5403
5431
|
values: "0;10;10;10;0",
|
|
5404
5432
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5407,7 +5435,7 @@ var Loading = function Loading(_ref) {
|
|
|
5407
5435
|
dur: "2s",
|
|
5408
5436
|
repeatCount: "indefinite",
|
|
5409
5437
|
begin: "-1s"
|
|
5410
|
-
}), /*#__PURE__*/
|
|
5438
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5411
5439
|
attributeName: "cx",
|
|
5412
5440
|
values: "16;16;50;84;84",
|
|
5413
5441
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5416,12 +5444,12 @@ var Loading = function Loading(_ref) {
|
|
|
5416
5444
|
dur: "2s",
|
|
5417
5445
|
repeatCount: "indefinite",
|
|
5418
5446
|
begin: "-1s"
|
|
5419
|
-
})), /*#__PURE__*/
|
|
5447
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
5420
5448
|
cx: "81.59",
|
|
5421
5449
|
cy: "50",
|
|
5422
5450
|
r: "10",
|
|
5423
5451
|
fill: "currentColor"
|
|
5424
|
-
}, /*#__PURE__*/
|
|
5452
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5425
5453
|
attributeName: "r",
|
|
5426
5454
|
values: "0;10;10;10;0",
|
|
5427
5455
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5430,7 +5458,7 @@ var Loading = function Loading(_ref) {
|
|
|
5430
5458
|
dur: "2s",
|
|
5431
5459
|
repeatCount: "indefinite",
|
|
5432
5460
|
begin: "-0.5s"
|
|
5433
|
-
}), /*#__PURE__*/
|
|
5461
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5434
5462
|
attributeName: "cx",
|
|
5435
5463
|
values: "16;16;50;84;84",
|
|
5436
5464
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5439,12 +5467,12 @@ var Loading = function Loading(_ref) {
|
|
|
5439
5467
|
dur: "2s",
|
|
5440
5468
|
repeatCount: "indefinite",
|
|
5441
5469
|
begin: "-0.5s"
|
|
5442
|
-
})), /*#__PURE__*/
|
|
5470
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
5443
5471
|
cx: "47.59",
|
|
5444
5472
|
cy: "50",
|
|
5445
5473
|
r: "10",
|
|
5446
5474
|
fill: "currentColor"
|
|
5447
|
-
}, /*#__PURE__*/
|
|
5475
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5448
5476
|
attributeName: "r",
|
|
5449
5477
|
values: "0;10;10;10;0",
|
|
5450
5478
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5453,7 +5481,7 @@ var Loading = function Loading(_ref) {
|
|
|
5453
5481
|
dur: "2s",
|
|
5454
5482
|
repeatCount: "indefinite",
|
|
5455
5483
|
begin: "0s"
|
|
5456
|
-
}), /*#__PURE__*/
|
|
5484
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5457
5485
|
attributeName: "cx",
|
|
5458
5486
|
values: "16;16;50;84;84",
|
|
5459
5487
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5462,12 +5490,12 @@ var Loading = function Loading(_ref) {
|
|
|
5462
5490
|
dur: "2s",
|
|
5463
5491
|
repeatCount: "indefinite",
|
|
5464
5492
|
begin: "0s"
|
|
5465
|
-
})), /*#__PURE__*/
|
|
5493
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
5466
5494
|
cx: "16",
|
|
5467
5495
|
cy: "50",
|
|
5468
5496
|
r: "9.291",
|
|
5469
5497
|
fill: "currentColor"
|
|
5470
|
-
}, /*#__PURE__*/
|
|
5498
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5471
5499
|
attributeName: "r",
|
|
5472
5500
|
values: "0;0;10;10;10",
|
|
5473
5501
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5476,7 +5504,7 @@ var Loading = function Loading(_ref) {
|
|
|
5476
5504
|
dur: "2s",
|
|
5477
5505
|
repeatCount: "indefinite",
|
|
5478
5506
|
begin: "0s"
|
|
5479
|
-
}), /*#__PURE__*/
|
|
5507
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
5480
5508
|
attributeName: "cx",
|
|
5481
5509
|
values: "16;16;16;50;84",
|
|
5482
5510
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -5488,16 +5516,16 @@ var Loading = function Loading(_ref) {
|
|
|
5488
5516
|
}))));
|
|
5489
5517
|
};
|
|
5490
5518
|
Loading.propTypes = {
|
|
5491
|
-
width:
|
|
5492
|
-
height:
|
|
5493
|
-
iconColor:
|
|
5519
|
+
width: PropTypes__default["default"].object,
|
|
5520
|
+
height: PropTypes__default["default"].object,
|
|
5521
|
+
iconColor: PropTypes__default["default"].object
|
|
5494
5522
|
};
|
|
5495
5523
|
|
|
5496
5524
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5497
5525
|
|
|
5498
5526
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5499
|
-
var Lightbox = /*#__PURE__*/lazy(function () {
|
|
5500
|
-
return
|
|
5527
|
+
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
5528
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
5501
5529
|
});
|
|
5502
5530
|
var FullScreenImages = function FullScreenImages(_ref) {
|
|
5503
5531
|
var _ref$imageSlug = _ref.imageSlug,
|
|
@@ -5506,16 +5534,16 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
5506
5534
|
_ref$element = _ref.element,
|
|
5507
5535
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
5508
5536
|
props = _ref.props;
|
|
5509
|
-
var cdnImage = useSelector(function (state) {
|
|
5537
|
+
var cdnImage = reactRedux.useSelector(function (state) {
|
|
5510
5538
|
return get_1(state, ["qt", "config", "cdn-image"]);
|
|
5511
5539
|
});
|
|
5512
5540
|
|
|
5513
|
-
var _useState = useState(0),
|
|
5541
|
+
var _useState = React.useState(0),
|
|
5514
5542
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5515
5543
|
photoIndex = _useState2[0],
|
|
5516
5544
|
handleImage = _useState2[1];
|
|
5517
5545
|
|
|
5518
|
-
var _useState3 = useState(false),
|
|
5546
|
+
var _useState3 = React.useState(false),
|
|
5519
5547
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5520
5548
|
isOpen = _useState4[0],
|
|
5521
5549
|
handleOpen = _useState4[1];
|
|
@@ -5557,7 +5585,7 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
5557
5585
|
|
|
5558
5586
|
var getHyperLink = function getHyperLink() {
|
|
5559
5587
|
if (element.hyperlink || hyperlinks[photoIndex]) {
|
|
5560
|
-
return /*#__PURE__*/
|
|
5588
|
+
return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
5561
5589
|
hyperLink: element.hyperlink || hyperlinks[photoIndex]
|
|
5562
5590
|
});
|
|
5563
5591
|
}
|
|
@@ -5582,23 +5610,23 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
5582
5610
|
};
|
|
5583
5611
|
|
|
5584
5612
|
var LoadingScreen = function LoadingScreen() {
|
|
5585
|
-
return /*#__PURE__*/
|
|
5613
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
5586
5614
|
};
|
|
5587
5615
|
|
|
5588
|
-
return /*#__PURE__*/
|
|
5589
|
-
fallback: /*#__PURE__*/
|
|
5590
|
-
}, /*#__PURE__*/
|
|
5616
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread$3(_defineProperty({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
5617
|
+
fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
|
|
5618
|
+
}, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends({
|
|
5591
5619
|
wrapperClassName: "arr--image-lightbox",
|
|
5592
5620
|
onCloseRequest: onClose
|
|
5593
5621
|
}, lightboxProps))) : null);
|
|
5594
5622
|
};
|
|
5595
5623
|
FullScreenImages.propTypes = {
|
|
5596
|
-
imageSlug:
|
|
5597
|
-
template:
|
|
5598
|
-
element:
|
|
5599
|
-
"story-elements":
|
|
5624
|
+
imageSlug: PropTypes__default["default"].string,
|
|
5625
|
+
template: PropTypes__default["default"].func,
|
|
5626
|
+
element: PropTypes__default["default"].shape({
|
|
5627
|
+
"story-elements": PropTypes__default["default"].array
|
|
5600
5628
|
}),
|
|
5601
|
-
props:
|
|
5629
|
+
props: PropTypes__default["default"].object
|
|
5602
5630
|
};
|
|
5603
5631
|
|
|
5604
5632
|
var _excluded$7 = ["element", "opts", "story", "config", "caption"];
|
|
@@ -5619,14 +5647,14 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
5619
5647
|
|
|
5620
5648
|
var ImageTemplate = function ImageTemplate(_ref2) {
|
|
5621
5649
|
var _onClick = _ref2.onClick;
|
|
5622
|
-
return /*#__PURE__*/
|
|
5650
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5623
5651
|
className: "image-m_image-template__3s9OA"
|
|
5624
|
-
}, /*#__PURE__*/
|
|
5652
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5625
5653
|
className: "image-m_element__KVuzX",
|
|
5626
5654
|
onClick: function onClick() {
|
|
5627
5655
|
return _onClick();
|
|
5628
5656
|
}
|
|
5629
|
-
}, /*#__PURE__*/
|
|
5657
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5630
5658
|
slug: element["image-s3-key"],
|
|
5631
5659
|
metadata: element["image-metadata"],
|
|
5632
5660
|
alt: element["title"],
|
|
@@ -5636,40 +5664,40 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
5636
5664
|
imgParams: {
|
|
5637
5665
|
auto: ["format", "compress"]
|
|
5638
5666
|
}
|
|
5639
|
-
})), element["hyperlink"] && /*#__PURE__*/
|
|
5667
|
+
})), element["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
5640
5668
|
hyperLink: element["hyperlink"]
|
|
5641
5669
|
}));
|
|
5642
5670
|
};
|
|
5643
5671
|
|
|
5644
5672
|
ImageTemplate.propTypes = {
|
|
5645
|
-
onClick:
|
|
5673
|
+
onClick: PropTypes__default["default"].func
|
|
5646
5674
|
};
|
|
5647
|
-
return /*#__PURE__*/
|
|
5675
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5648
5676
|
className: "arrow-component arr--image-element"
|
|
5649
5677
|
}, restProps, {
|
|
5650
5678
|
"data-test-id": "image-element"
|
|
5651
|
-
}), /*#__PURE__*/
|
|
5679
|
+
}), /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
5652
5680
|
template: ImageTemplate,
|
|
5653
5681
|
element: element,
|
|
5654
5682
|
imageSlug: element["image-s3-key"],
|
|
5655
5683
|
story: story
|
|
5656
|
-
}), caption && /*#__PURE__*/
|
|
5684
|
+
}), caption && /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
5657
5685
|
element: element,
|
|
5658
5686
|
config: configData
|
|
5659
5687
|
}));
|
|
5660
5688
|
};
|
|
5661
5689
|
|
|
5662
5690
|
ImageBase.propTypes = {
|
|
5663
|
-
element:
|
|
5664
|
-
"image-s3-key":
|
|
5665
|
-
"image-metadata":
|
|
5666
|
-
"image-attribution":
|
|
5667
|
-
title:
|
|
5668
|
-
hyperlink:
|
|
5691
|
+
element: PropTypes__default["default"].shape({
|
|
5692
|
+
"image-s3-key": PropTypes__default["default"].string,
|
|
5693
|
+
"image-metadata": PropTypes__default["default"].object,
|
|
5694
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
5695
|
+
title: PropTypes__default["default"].string,
|
|
5696
|
+
hyperlink: PropTypes__default["default"].string
|
|
5669
5697
|
}),
|
|
5670
|
-
caption:
|
|
5671
|
-
opts:
|
|
5672
|
-
imageWidths:
|
|
5698
|
+
caption: PropTypes__default["default"].bool,
|
|
5699
|
+
opts: PropTypes__default["default"].shape({
|
|
5700
|
+
imageWidths: PropTypes__default["default"].array
|
|
5673
5701
|
}),
|
|
5674
5702
|
story: shapeStory,
|
|
5675
5703
|
config: shapeConfig
|
|
@@ -5762,14 +5790,14 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5762
5790
|
var isAuthorImageTemplate = template === "withAuthorImage";
|
|
5763
5791
|
var templateStyle = isAuthorImageTemplate ? "qa-withAuthorImage" : "qa-default";
|
|
5764
5792
|
var iconType = defaultIconType === "curve" ? "curveIcon" : "edgeIcon";
|
|
5765
|
-
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/
|
|
5793
|
+
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5766
5794
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
5767
|
-
}, /*#__PURE__*/
|
|
5795
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5768
5796
|
src: questionAttribution,
|
|
5769
5797
|
loading: "lazy"
|
|
5770
|
-
})), /*#__PURE__*/
|
|
5798
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5771
5799
|
className: "question-answer-m_hidden__K0n4n"
|
|
5772
|
-
})) : /*#__PURE__*/
|
|
5800
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5773
5801
|
"data-test-id": iconType,
|
|
5774
5802
|
style: {
|
|
5775
5803
|
backgroundColor: iconColor
|
|
@@ -5777,36 +5805,36 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5777
5805
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$h)
|
|
5778
5806
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
5779
5807
|
|
|
5780
|
-
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/
|
|
5808
|
+
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5781
5809
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
5782
|
-
}, /*#__PURE__*/
|
|
5810
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5783
5811
|
src: answerAttribution,
|
|
5784
5812
|
loading: "lazy"
|
|
5785
|
-
})), /*#__PURE__*/
|
|
5813
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5786
5814
|
className: "question-answer-m_hidden__K0n4n"
|
|
5787
|
-
})) : /*#__PURE__*/
|
|
5815
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5788
5816
|
"data-test-id": iconType,
|
|
5789
5817
|
style: {
|
|
5790
5818
|
backgroundColor: iconColor
|
|
5791
5819
|
},
|
|
5792
5820
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$h)
|
|
5793
5821
|
}, "A");
|
|
5794
|
-
return /*#__PURE__*/
|
|
5822
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5795
5823
|
"data-test-id": "question-answer"
|
|
5796
5824
|
}, restProps, {
|
|
5797
5825
|
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap$h) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5798
|
-
}), type !== "answer" && /*#__PURE__*/
|
|
5826
|
+
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5799
5827
|
className: "question-answer-m_q-element__1ZA5d",
|
|
5800
5828
|
"data-test-id": "question"
|
|
5801
|
-
}, supportQuestionElement, /*#__PURE__*/
|
|
5829
|
+
}, supportQuestionElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5802
5830
|
dangerouslySetInnerHTML: {
|
|
5803
5831
|
__html: questionData
|
|
5804
5832
|
},
|
|
5805
5833
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$h)
|
|
5806
|
-
})), type !== "question" && /*#__PURE__*/
|
|
5834
|
+
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5807
5835
|
className: "question-answer-m_a-element__BTxfl",
|
|
5808
5836
|
"data-test-id": "answer"
|
|
5809
|
-
}, supportAnswerElement, /*#__PURE__*/
|
|
5837
|
+
}, supportAnswerElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5810
5838
|
dangerouslySetInnerHTML: {
|
|
5811
5839
|
__html: answerData
|
|
5812
5840
|
},
|
|
@@ -5815,29 +5843,29 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5815
5843
|
};
|
|
5816
5844
|
|
|
5817
5845
|
QuestionAnswerBase.propTypes = {
|
|
5818
|
-
element:
|
|
5819
|
-
metadata:
|
|
5820
|
-
interviewer:
|
|
5821
|
-
"avatar-url":
|
|
5846
|
+
element: PropTypes__default["default"].shape({
|
|
5847
|
+
metadata: PropTypes__default["default"].shape({
|
|
5848
|
+
interviewer: PropTypes__default["default"].shape({
|
|
5849
|
+
"avatar-url": PropTypes__default["default"].string
|
|
5822
5850
|
}),
|
|
5823
|
-
interviewee:
|
|
5824
|
-
"avatar-url":
|
|
5851
|
+
interviewee: PropTypes__default["default"].shape({
|
|
5852
|
+
"avatar-url": PropTypes__default["default"].string
|
|
5825
5853
|
}),
|
|
5826
|
-
question:
|
|
5827
|
-
answer:
|
|
5854
|
+
question: PropTypes__default["default"].string,
|
|
5855
|
+
answer: PropTypes__default["default"].string
|
|
5828
5856
|
}),
|
|
5829
|
-
text:
|
|
5857
|
+
text: PropTypes__default["default"].string
|
|
5830
5858
|
}),
|
|
5831
|
-
opts:
|
|
5832
|
-
type:
|
|
5833
|
-
defaultIconType:
|
|
5834
|
-
isExternalLink:
|
|
5859
|
+
opts: PropTypes__default["default"].shape({
|
|
5860
|
+
type: PropTypes__default["default"].string,
|
|
5861
|
+
defaultIconType: PropTypes__default["default"].string,
|
|
5862
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5835
5863
|
}),
|
|
5836
|
-
template:
|
|
5837
|
-
css:
|
|
5864
|
+
template: PropTypes__default["default"].string,
|
|
5865
|
+
css: PropTypes__default["default"].object,
|
|
5838
5866
|
config: shapeConfig,
|
|
5839
5867
|
story: shapeStory,
|
|
5840
|
-
render:
|
|
5868
|
+
render: PropTypes__default["default"].func
|
|
5841
5869
|
};
|
|
5842
5870
|
var QuestionAnswer = withElementWrapper(QuestionAnswerBase);
|
|
5843
5871
|
|
|
@@ -5879,17 +5907,17 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
5879
5907
|
var ImageGalleryImagesTemplate = function ImageGalleryImagesTemplate(_ref2) {
|
|
5880
5908
|
var onClickHandler = _ref2.onClickHandler;
|
|
5881
5909
|
var images = renderImage.map(function (image, index) {
|
|
5882
|
-
return /*#__PURE__*/
|
|
5910
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5883
5911
|
key: index,
|
|
5884
5912
|
className: _getClassName(hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$g)
|
|
5885
|
-
}, /*#__PURE__*/
|
|
5913
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5886
5914
|
key: index,
|
|
5887
5915
|
"data-text-id": "image-".concat(index),
|
|
5888
5916
|
onClick: function onClick() {
|
|
5889
5917
|
return onClickHandler && onClickHandler(index);
|
|
5890
5918
|
},
|
|
5891
5919
|
className: _getClassName("image ".concat(classes), _styleModuleImportMap$g)
|
|
5892
|
-
}, /*#__PURE__*/
|
|
5920
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5893
5921
|
slug: image["image-s3-key"],
|
|
5894
5922
|
metadata: image["image-metadata"],
|
|
5895
5923
|
alt: image["title"],
|
|
@@ -5898,11 +5926,11 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
5898
5926
|
imgParams: {
|
|
5899
5927
|
auto: ["format", "compress"]
|
|
5900
5928
|
}
|
|
5901
|
-
})), image["hyperlink"] && /*#__PURE__*/
|
|
5929
|
+
})), image["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
5902
5930
|
hyperLink: image["hyperlink"]
|
|
5903
5931
|
}));
|
|
5904
5932
|
});
|
|
5905
|
-
return /*#__PURE__*/
|
|
5933
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5906
5934
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
5907
5935
|
}, restProps, {
|
|
5908
5936
|
"data-test-id": "image-gallery"
|
|
@@ -5910,24 +5938,24 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
5910
5938
|
};
|
|
5911
5939
|
|
|
5912
5940
|
ImageGalleryImagesTemplate.propTypes = {
|
|
5913
|
-
onClickHandler:
|
|
5941
|
+
onClickHandler: PropTypes__default["default"].func
|
|
5914
5942
|
};
|
|
5915
|
-
return /*#__PURE__*/
|
|
5943
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
5916
5944
|
template: ImageGalleryImagesTemplate,
|
|
5917
5945
|
element: element
|
|
5918
5946
|
});
|
|
5919
5947
|
};
|
|
5920
5948
|
|
|
5921
5949
|
ImageGalleryBase.propTypes = {
|
|
5922
|
-
element:
|
|
5923
|
-
"story-elements":
|
|
5950
|
+
element: PropTypes__default["default"].shape({
|
|
5951
|
+
"story-elements": PropTypes__default["default"].array
|
|
5924
5952
|
}),
|
|
5925
|
-
opts:
|
|
5926
|
-
imageWidths:
|
|
5953
|
+
opts: PropTypes__default["default"].shape({
|
|
5954
|
+
imageWidths: PropTypes__default["default"].array
|
|
5927
5955
|
}),
|
|
5928
5956
|
story: shapeStory,
|
|
5929
5957
|
config: shapeConfig,
|
|
5930
|
-
template:
|
|
5958
|
+
template: PropTypes__default["default"].string
|
|
5931
5959
|
};
|
|
5932
5960
|
var ImageGallery = withElementWrapper(ImageGalleryBase);
|
|
5933
5961
|
|
|
@@ -5939,16 +5967,16 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
5939
5967
|
_ref.config;
|
|
5940
5968
|
var restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
5941
5969
|
|
|
5942
|
-
return /*#__PURE__*/
|
|
5970
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, restProps, {
|
|
5943
5971
|
"data-test-id": "story-elements"
|
|
5944
|
-
}), /*#__PURE__*/
|
|
5972
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
5945
5973
|
element: element
|
|
5946
5974
|
}));
|
|
5947
5975
|
};
|
|
5948
5976
|
|
|
5949
5977
|
var StoryElement = withElementWrapper(StoryElementBase);
|
|
5950
5978
|
StoryElementBase.propTypes = {
|
|
5951
|
-
element:
|
|
5979
|
+
element: PropTypes__default["default"].object,
|
|
5952
5980
|
story: shapeStory,
|
|
5953
5981
|
config: shapeConfig
|
|
5954
5982
|
};
|
|
@@ -5963,21 +5991,21 @@ var Videobase = function Videobase(_ref) {
|
|
|
5963
5991
|
loadIframeOnClick = _ref$loadIframeOnClic === void 0 ? false : _ref$loadIframeOnClic,
|
|
5964
5992
|
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
5965
5993
|
|
|
5966
|
-
return /*#__PURE__*/
|
|
5994
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5967
5995
|
className: "video-m_container__MYuWI" + (" " + (restProps ? restProps.className || "" : ""))
|
|
5968
5996
|
}, restProps, {
|
|
5969
5997
|
"data-test-id": "video"
|
|
5970
|
-
}), /*#__PURE__*/
|
|
5998
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
5971
5999
|
element: element,
|
|
5972
6000
|
loadIframeOnClick: loadIframeOnClick
|
|
5973
6001
|
}));
|
|
5974
6002
|
};
|
|
5975
6003
|
|
|
5976
6004
|
Videobase.propTypes = {
|
|
5977
|
-
element:
|
|
6005
|
+
element: PropTypes__default["default"].object,
|
|
5978
6006
|
story: shapeStory,
|
|
5979
6007
|
config: shapeConfig,
|
|
5980
|
-
loadIframeOnClick:
|
|
6008
|
+
loadIframeOnClick: PropTypes__default["default"].bool
|
|
5981
6009
|
};
|
|
5982
6010
|
var Video = withElementWrapper(Videobase);
|
|
5983
6011
|
|
|
@@ -6018,16 +6046,16 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6018
6046
|
var borderColor = css.borderColor;
|
|
6019
6047
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
6020
6048
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
6021
|
-
return /*#__PURE__*/
|
|
6049
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6022
6050
|
"data-test-id": "quote"
|
|
6023
6051
|
}, restProps, {
|
|
6024
6052
|
className: "arrow-component arr--quote-element " + _getClassName(templateStyle, _styleModuleImportMap$f) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6025
|
-
}), template === "borderTopSmall" && /*#__PURE__*/
|
|
6053
|
+
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6026
6054
|
className: "quote-m_line__3gtoE",
|
|
6027
6055
|
style: borderColor && {
|
|
6028
6056
|
backgroundColor: borderColor
|
|
6029
6057
|
}
|
|
6030
|
-
}), /*#__PURE__*/
|
|
6058
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6031
6059
|
style: borderColor && {
|
|
6032
6060
|
borderLeft: updateBorderColor
|
|
6033
6061
|
},
|
|
@@ -6035,26 +6063,26 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6035
6063
|
__html: content
|
|
6036
6064
|
},
|
|
6037
6065
|
className: _getClassName("text ".concat(textInvertColor), _styleModuleImportMap$f)
|
|
6038
|
-
}), /*#__PURE__*/
|
|
6066
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6039
6067
|
"data-test-id": "quote-attribution",
|
|
6040
6068
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$f)
|
|
6041
6069
|
}, attribution));
|
|
6042
6070
|
};
|
|
6043
6071
|
|
|
6044
6072
|
QuoteBase.propTypes = {
|
|
6045
|
-
element:
|
|
6046
|
-
metadata:
|
|
6047
|
-
content:
|
|
6048
|
-
attribution:
|
|
6073
|
+
element: PropTypes__default["default"].shape({
|
|
6074
|
+
metadata: PropTypes__default["default"].shape({
|
|
6075
|
+
content: PropTypes__default["default"].string,
|
|
6076
|
+
attribution: PropTypes__default["default"].string
|
|
6049
6077
|
})
|
|
6050
6078
|
}),
|
|
6051
6079
|
|
|
6052
6080
|
/** template can be default, borderTopSmall and borderLeft */
|
|
6053
|
-
template:
|
|
6081
|
+
template: PropTypes__default["default"].string,
|
|
6054
6082
|
story: shapeStory,
|
|
6055
6083
|
config: shapeConfig,
|
|
6056
|
-
render:
|
|
6057
|
-
css:
|
|
6084
|
+
render: PropTypes__default["default"].func,
|
|
6085
|
+
css: PropTypes__default["default"].object
|
|
6058
6086
|
};
|
|
6059
6087
|
var Quote = withElementWrapper(QuoteBase);
|
|
6060
6088
|
|
|
@@ -6088,7 +6116,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
6088
6116
|
var _opts$showHeadline = opts.showHeadline,
|
|
6089
6117
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
6090
6118
|
headlineText = opts.headlineText;
|
|
6091
|
-
return /*#__PURE__*/
|
|
6119
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6092
6120
|
className: "arrow-component arr--reference-element"
|
|
6093
6121
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
6094
6122
|
var _metadata$name = metadata.name,
|
|
@@ -6096,33 +6124,33 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
6096
6124
|
_metadata$description = metadata.description,
|
|
6097
6125
|
description = _metadata$description === void 0 ? "" : _metadata$description,
|
|
6098
6126
|
url = metadata.url;
|
|
6099
|
-
return /*#__PURE__*/
|
|
6127
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6100
6128
|
key: index,
|
|
6101
6129
|
className: _getClassName("wrapper ".concat(textInvertColor), _styleModuleImportMap$e)
|
|
6102
|
-
}, /*#__PURE__*/
|
|
6130
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
6103
6131
|
href: url,
|
|
6104
6132
|
"aria-label": "reference-headline"
|
|
6105
|
-
}, showHeadline && /*#__PURE__*/
|
|
6133
|
+
}, showHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6106
6134
|
className: "reference-m_name__24IwG",
|
|
6107
6135
|
"data-test-id": "ref-headline"
|
|
6108
|
-
}, headlineText || name), /*#__PURE__*/
|
|
6136
|
+
}, headlineText || name), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6109
6137
|
className: "reference-m_description__2x3Io"
|
|
6110
6138
|
}, description)));
|
|
6111
6139
|
}));
|
|
6112
6140
|
};
|
|
6113
6141
|
|
|
6114
6142
|
ReferenceBase.propTypes = {
|
|
6115
|
-
element:
|
|
6116
|
-
"story-elements":
|
|
6117
|
-
metadata:
|
|
6118
|
-
name:
|
|
6119
|
-
description:
|
|
6120
|
-
url:
|
|
6143
|
+
element: PropTypes__default["default"].shape({
|
|
6144
|
+
"story-elements": PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
6145
|
+
metadata: PropTypes__default["default"].shape({
|
|
6146
|
+
name: PropTypes__default["default"].string,
|
|
6147
|
+
description: PropTypes__default["default"].string,
|
|
6148
|
+
url: PropTypes__default["default"].string
|
|
6121
6149
|
})
|
|
6122
6150
|
}))
|
|
6123
6151
|
}),
|
|
6124
|
-
opts:
|
|
6125
|
-
hideHeadline:
|
|
6152
|
+
opts: PropTypes__default["default"].shape({
|
|
6153
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
6126
6154
|
}),
|
|
6127
6155
|
config: shapeConfig
|
|
6128
6156
|
};
|
|
@@ -6164,28 +6192,28 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
6164
6192
|
var textColor = getTextColor(configData.theme);
|
|
6165
6193
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
6166
6194
|
var defaultFileName = fileName || defaultName;
|
|
6167
|
-
return /*#__PURE__*/
|
|
6195
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6168
6196
|
"data-test-id": "attachment"
|
|
6169
6197
|
}, restProps, {
|
|
6170
6198
|
className: "arrow-component arr--attachment-element " + _getClassName(textColor, _styleModuleImportMap$d) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6171
|
-
}), /*#__PURE__*/
|
|
6199
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6172
6200
|
className: "attachment-m_headline__kP7Hs"
|
|
6173
|
-
}, "Attachment"), /*#__PURE__*/
|
|
6201
|
+
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6174
6202
|
className: "attachment-m_wrapper__3gMwN"
|
|
6175
|
-
}, isPdf ? /*#__PURE__*/
|
|
6203
|
+
}, isPdf ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6176
6204
|
"data-test-id": "pdf",
|
|
6177
6205
|
className: "attachment-m_pdf__3i_bR"
|
|
6178
|
-
}, "PDF") : /*#__PURE__*/
|
|
6206
|
+
}, "PDF") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6179
6207
|
"data-test-id": "doc",
|
|
6180
6208
|
className: "attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"
|
|
6181
|
-
}, "DOC"), /*#__PURE__*/
|
|
6209
|
+
}, "DOC"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6182
6210
|
className: "attachment-m_content-wrapper__3Yu0B"
|
|
6183
|
-
}, /*#__PURE__*/
|
|
6211
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6184
6212
|
className: "attachment-m_file-name__1LU9q",
|
|
6185
6213
|
dangerouslySetInnerHTML: {
|
|
6186
6214
|
__html: defaultFileName
|
|
6187
6215
|
}
|
|
6188
|
-
}), /*#__PURE__*/
|
|
6216
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
6189
6217
|
className: "attachment-m_button-wrapper__2fajK",
|
|
6190
6218
|
href: url,
|
|
6191
6219
|
target: "_blank",
|
|
@@ -6196,59 +6224,59 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
6196
6224
|
};
|
|
6197
6225
|
|
|
6198
6226
|
AttachmentBase.propTypes = {
|
|
6199
|
-
element:
|
|
6200
|
-
url:
|
|
6201
|
-
fileName:
|
|
6202
|
-
contentType:
|
|
6227
|
+
element: PropTypes__default["default"].shape({
|
|
6228
|
+
url: PropTypes__default["default"].string,
|
|
6229
|
+
fileName: PropTypes__default["default"].string,
|
|
6230
|
+
contentType: PropTypes__default["default"].string
|
|
6203
6231
|
}),
|
|
6204
|
-
render:
|
|
6232
|
+
render: PropTypes__default["default"].func
|
|
6205
6233
|
};
|
|
6206
6234
|
var Attachment = withElementWrapper(AttachmentBase);
|
|
6207
6235
|
|
|
6208
6236
|
var LeftArrow = function LeftArrow(_ref) {
|
|
6209
6237
|
var _ref$color = _ref.color,
|
|
6210
6238
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
6211
|
-
return /*#__PURE__*/
|
|
6239
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6212
6240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6213
6241
|
width: "16",
|
|
6214
6242
|
height: "16",
|
|
6215
6243
|
viewBox: "0 0 10 16"
|
|
6216
|
-
}, /*#__PURE__*/
|
|
6244
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
6217
6245
|
fill: "none",
|
|
6218
6246
|
fillRule: "nonzero"
|
|
6219
|
-
}, /*#__PURE__*/
|
|
6247
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6220
6248
|
d: "M17 20H-7V-4h24z",
|
|
6221
6249
|
opacity: ".384"
|
|
6222
|
-
}), /*#__PURE__*/
|
|
6250
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6223
6251
|
stroke: color,
|
|
6224
6252
|
d: "M9 16L1 8l8-8"
|
|
6225
6253
|
})));
|
|
6226
6254
|
};
|
|
6227
6255
|
LeftArrow.propTypes = {
|
|
6228
|
-
color:
|
|
6256
|
+
color: PropTypes__default["default"].string
|
|
6229
6257
|
};
|
|
6230
6258
|
|
|
6231
6259
|
var RightArrow = function RightArrow(_ref) {
|
|
6232
6260
|
var _ref$color = _ref.color,
|
|
6233
6261
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
6234
|
-
return /*#__PURE__*/
|
|
6262
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6235
6263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6236
6264
|
width: "16",
|
|
6237
6265
|
height: "16",
|
|
6238
6266
|
viewBox: "0 0 10 16"
|
|
6239
|
-
}, /*#__PURE__*/
|
|
6267
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
6240
6268
|
fill: "none",
|
|
6241
6269
|
fillRule: "nonzero"
|
|
6242
|
-
}, /*#__PURE__*/
|
|
6270
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6243
6271
|
d: "M-7-4h24v24H-7z",
|
|
6244
6272
|
opacity: ".384"
|
|
6245
|
-
}), /*#__PURE__*/
|
|
6273
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6246
6274
|
stroke: color,
|
|
6247
6275
|
d: "M1 0l8 8-8 8"
|
|
6248
6276
|
})));
|
|
6249
6277
|
};
|
|
6250
6278
|
RightArrow.propTypes = {
|
|
6251
|
-
color:
|
|
6279
|
+
color: PropTypes__default["default"].string
|
|
6252
6280
|
};
|
|
6253
6281
|
|
|
6254
6282
|
var _styleModuleImportMap$c = {
|
|
@@ -6286,26 +6314,26 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
6286
6314
|
|
|
6287
6315
|
var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
|
|
6288
6316
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
6289
|
-
return /*#__PURE__*/
|
|
6317
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6290
6318
|
onClick: previousClick,
|
|
6291
6319
|
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$c)
|
|
6292
|
-
}, /*#__PURE__*/
|
|
6320
|
+
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
6293
6321
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
6294
|
-
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/
|
|
6322
|
+
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6295
6323
|
onClick: nextClick,
|
|
6296
6324
|
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$c)
|
|
6297
|
-
}, /*#__PURE__*/
|
|
6325
|
+
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
6298
6326
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
6299
6327
|
})) : null);
|
|
6300
6328
|
};
|
|
6301
6329
|
SliderArrow.propTypes = {
|
|
6302
|
-
noOfItems: number,
|
|
6303
|
-
perView: number,
|
|
6304
|
-
slideIndicator: string,
|
|
6305
|
-
previousClick: func,
|
|
6306
|
-
nextClick: func,
|
|
6307
|
-
selectedIndex: number,
|
|
6308
|
-
languageDirection: string
|
|
6330
|
+
noOfItems: PropTypes.number,
|
|
6331
|
+
perView: PropTypes.number,
|
|
6332
|
+
slideIndicator: PropTypes.string,
|
|
6333
|
+
previousClick: PropTypes.func,
|
|
6334
|
+
nextClick: PropTypes.func,
|
|
6335
|
+
selectedIndex: PropTypes.number,
|
|
6336
|
+
languageDirection: PropTypes.string
|
|
6309
6337
|
};
|
|
6310
6338
|
|
|
6311
6339
|
var _styleModuleImportMap$b = {
|
|
@@ -6333,27 +6361,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
6333
6361
|
|
|
6334
6362
|
var config = useStateValue() || {};
|
|
6335
6363
|
var textColor = getTextColor(config.theme);
|
|
6336
|
-
return /*#__PURE__*/
|
|
6364
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
6337
6365
|
className: "slider-indicators slider-indicator-m_indicators__3MNXc"
|
|
6338
6366
|
}, indicatorItems.map(function (_, index) {
|
|
6339
|
-
return /*#__PURE__*/
|
|
6367
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
6340
6368
|
key: "slider-".concat(index),
|
|
6341
6369
|
className: "indicator slider-indicator-m_indicator__gTv3x",
|
|
6342
6370
|
onClick: function onClick(e) {
|
|
6343
6371
|
return indicatorClick(e, index);
|
|
6344
6372
|
}
|
|
6345
|
-
}, /*#__PURE__*/
|
|
6373
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6346
6374
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
6347
6375
|
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$b)
|
|
6348
6376
|
}));
|
|
6349
6377
|
}));
|
|
6350
6378
|
};
|
|
6351
6379
|
SliderIndicator.propTypes = {
|
|
6352
|
-
indicatorItems: array,
|
|
6353
|
-
perView: number,
|
|
6354
|
-
indicatorType: string,
|
|
6355
|
-
indicatorClick: func,
|
|
6356
|
-
selectedIndex: number
|
|
6380
|
+
indicatorItems: PropTypes.array,
|
|
6381
|
+
perView: PropTypes.number,
|
|
6382
|
+
indicatorType: PropTypes.string,
|
|
6383
|
+
indicatorClick: PropTypes.func,
|
|
6384
|
+
selectedIndex: PropTypes.number
|
|
6357
6385
|
};
|
|
6358
6386
|
|
|
6359
6387
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
@@ -6388,24 +6416,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
6388
6416
|
perView = _ref.perView,
|
|
6389
6417
|
slideIndicator = _ref.slideIndicator;
|
|
6390
6418
|
|
|
6391
|
-
var _useState = useState(0),
|
|
6419
|
+
var _useState = React.useState(0),
|
|
6392
6420
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6393
6421
|
selectedIndex = _useState2[0],
|
|
6394
6422
|
setSelectedIndex = _useState2[1];
|
|
6395
6423
|
|
|
6396
|
-
var _useState3 = useState(false),
|
|
6424
|
+
var _useState3 = React.useState(false),
|
|
6397
6425
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
6398
6426
|
autoScroll = _useState4[0],
|
|
6399
6427
|
setAutoScroll = _useState4[1];
|
|
6400
6428
|
|
|
6401
|
-
var languageDirection = useSelector(function (state) {
|
|
6429
|
+
var languageDirection = reactRedux.useSelector(function (state) {
|
|
6402
6430
|
return get_1(state, ["qt", "config", "language", "direction"], "ltr");
|
|
6403
6431
|
});
|
|
6404
6432
|
var noOfItems = children ? children.length : 0;
|
|
6405
|
-
var scroller = useRef(null);
|
|
6433
|
+
var scroller = React.useRef(null);
|
|
6406
6434
|
var numberOfIndicatorsToShow = children.length - (perView - 1);
|
|
6407
6435
|
var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
|
|
6408
|
-
useEffect(function () {
|
|
6436
|
+
React.useEffect(function () {
|
|
6409
6437
|
if (scroller.current) {
|
|
6410
6438
|
scroller.current.addEventListener("scroll", setIndicatorValue(function () {
|
|
6411
6439
|
var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
|
|
@@ -6422,7 +6450,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
6422
6450
|
};
|
|
6423
6451
|
}, []); // Infinite scroll
|
|
6424
6452
|
|
|
6425
|
-
useEffect(function () {
|
|
6453
|
+
React.useEffect(function () {
|
|
6426
6454
|
if (isInfinite && !autoScroll) {
|
|
6427
6455
|
var timer = setInterval(function () {
|
|
6428
6456
|
infiniteScroll();
|
|
@@ -6471,23 +6499,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
6471
6499
|
updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
|
|
6472
6500
|
};
|
|
6473
6501
|
|
|
6474
|
-
return /*#__PURE__*/
|
|
6502
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6475
6503
|
className: "scroll-snap-container"
|
|
6476
|
-
}, /*#__PURE__*/
|
|
6504
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6477
6505
|
className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
|
|
6478
6506
|
onMouseEnter: pauseAutoPlay,
|
|
6479
6507
|
onMouseLeave: pauseAutoPlay
|
|
6480
|
-
}, /*#__PURE__*/
|
|
6508
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6481
6509
|
ref: scroller,
|
|
6482
6510
|
className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
|
|
6483
|
-
}, children), isArrow && /*#__PURE__*/
|
|
6511
|
+
}, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
|
|
6484
6512
|
noOfItems: noOfItems,
|
|
6485
6513
|
perView: perView,
|
|
6486
6514
|
previousClick: previousClick,
|
|
6487
6515
|
nextClick: nextClick,
|
|
6488
6516
|
selectedIndex: selectedIndex,
|
|
6489
6517
|
languageDirection: languageDirection
|
|
6490
|
-
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/
|
|
6518
|
+
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
|
|
6491
6519
|
indicatorItems: indicatorItems,
|
|
6492
6520
|
indicatorClick: indicatorClick,
|
|
6493
6521
|
selectedIndex: selectedIndex,
|
|
@@ -6503,13 +6531,13 @@ ScrollSnap.defaultProps = {
|
|
|
6503
6531
|
slideIndicator: "dots"
|
|
6504
6532
|
};
|
|
6505
6533
|
ScrollSnap.propTypes = {
|
|
6506
|
-
children: array.isRequired,
|
|
6507
|
-
isArrow: bool,
|
|
6508
|
-
isInfinite: bool,
|
|
6509
|
-
interval: number,
|
|
6510
|
-
pauseOnHover: bool,
|
|
6511
|
-
perView: number,
|
|
6512
|
-
slideIndicator: string
|
|
6534
|
+
children: PropTypes.array.isRequired,
|
|
6535
|
+
isArrow: PropTypes.bool,
|
|
6536
|
+
isInfinite: PropTypes.bool,
|
|
6537
|
+
interval: PropTypes.number,
|
|
6538
|
+
pauseOnHover: PropTypes.bool,
|
|
6539
|
+
perView: PropTypes.number,
|
|
6540
|
+
slideIndicator: PropTypes.string
|
|
6513
6541
|
};
|
|
6514
6542
|
|
|
6515
6543
|
var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
@@ -6522,18 +6550,18 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
6522
6550
|
title = image.title,
|
|
6523
6551
|
_image$hyperlink = image.hyperlink,
|
|
6524
6552
|
hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
|
|
6525
|
-
return /*#__PURE__*/
|
|
6553
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6526
6554
|
className: "image-slideshow-m_slide__3URCC",
|
|
6527
6555
|
key: id
|
|
6528
|
-
}, /*#__PURE__*/
|
|
6556
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6529
6557
|
key: id,
|
|
6530
6558
|
className: "image-slideshow-m_image-container__2VTEK",
|
|
6531
6559
|
onClick: function onClick() {
|
|
6532
6560
|
return onClickHandler(index);
|
|
6533
6561
|
}
|
|
6534
|
-
}, /*#__PURE__*/
|
|
6562
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
|
|
6535
6563
|
margin: "0px"
|
|
6536
|
-
}, /*#__PURE__*/
|
|
6564
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6537
6565
|
slug: imageS3Key,
|
|
6538
6566
|
metadata: metadata,
|
|
6539
6567
|
"aspect-ratio": [16, 9],
|
|
@@ -6544,9 +6572,9 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
6544
6572
|
},
|
|
6545
6573
|
className: "image-slideshow-m_image__1p1fO",
|
|
6546
6574
|
alt: title
|
|
6547
|
-
}))), hyperlink && /*#__PURE__*/
|
|
6575
|
+
}))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6548
6576
|
hyperLink: hyperlink
|
|
6549
|
-
}), /*#__PURE__*/
|
|
6577
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6550
6578
|
className: "image-slideshow-m_caption__mWpmc",
|
|
6551
6579
|
dangerouslySetInnerHTML: {
|
|
6552
6580
|
__html: title
|
|
@@ -6557,10 +6585,10 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
6557
6585
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
6558
6586
|
var onClickHandler = _ref.onClickHandler;
|
|
6559
6587
|
var storyElements = get_1(props, ["element", "story-elements"], []);
|
|
6560
|
-
return /*#__PURE__*/
|
|
6588
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6561
6589
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
6562
6590
|
"data-test-id": "image-slideshow"
|
|
6563
|
-
}, /*#__PURE__*/
|
|
6591
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
|
|
6564
6592
|
slideIndicator: "none"
|
|
6565
6593
|
}, storyElements.map(function (image, index) {
|
|
6566
6594
|
return Slide(image, index, onClickHandler);
|
|
@@ -6568,17 +6596,17 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
6568
6596
|
};
|
|
6569
6597
|
|
|
6570
6598
|
ImageSlideshowTemplate.propTypes = {
|
|
6571
|
-
onClickHandler:
|
|
6599
|
+
onClickHandler: PropTypes__default["default"].func
|
|
6572
6600
|
};
|
|
6573
|
-
return /*#__PURE__*/
|
|
6601
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6574
6602
|
template: ImageSlideshowTemplate,
|
|
6575
6603
|
element: props.element
|
|
6576
6604
|
});
|
|
6577
6605
|
};
|
|
6578
6606
|
|
|
6579
6607
|
ImageSlideshowBase.propTypes = {
|
|
6580
|
-
element:
|
|
6581
|
-
"story-elements":
|
|
6608
|
+
element: PropTypes__default["default"].shape({
|
|
6609
|
+
"story-elements": PropTypes__default["default"].array
|
|
6582
6610
|
}),
|
|
6583
6611
|
story: shapeStory
|
|
6584
6612
|
};
|
|
@@ -6624,12 +6652,12 @@ var getElement = function getElement(story, element) {
|
|
|
6624
6652
|
|
|
6625
6653
|
switch (elementType) {
|
|
6626
6654
|
case "ad":
|
|
6627
|
-
return /*#__PURE__*/
|
|
6655
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
6628
6656
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
6629
6657
|
}));
|
|
6630
6658
|
|
|
6631
6659
|
case "widget":
|
|
6632
|
-
return /*#__PURE__*/
|
|
6660
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
6633
6661
|
widgetCode: element.config.customCode,
|
|
6634
6662
|
id: "widget-".concat(index, "_").concat(cardId)
|
|
6635
6663
|
});
|
|
@@ -6642,7 +6670,7 @@ var getElement = function getElement(story, element) {
|
|
|
6642
6670
|
textElementColor = _text$css$textColor === void 0 ? "#000" : _text$css$textColor,
|
|
6643
6671
|
_text$css$hyperlinkCo = _text$css.hyperlinkColor,
|
|
6644
6672
|
hyperlinkColor = _text$css$hyperlinkCo === void 0 ? "#2f81cd" : _text$css$hyperlinkCo;
|
|
6645
|
-
return /*#__PURE__*/
|
|
6673
|
+
return /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
6646
6674
|
element: element,
|
|
6647
6675
|
css: {
|
|
6648
6676
|
textColor: textElementColor,
|
|
@@ -6663,7 +6691,7 @@ var getElement = function getElement(story, element) {
|
|
|
6663
6691
|
headline = _summary$opts$headlin === void 0 ? "" : _summary$opts$headlin,
|
|
6664
6692
|
_summary$opts$hideHea = _summary$opts.hideHeadline,
|
|
6665
6693
|
hideHeadline = _summary$opts$hideHea === void 0 ? false : _summary$opts$hideHea;
|
|
6666
|
-
return /*#__PURE__*/
|
|
6694
|
+
return /*#__PURE__*/React__default["default"].createElement(Summary, {
|
|
6667
6695
|
element: element,
|
|
6668
6696
|
template: summaryTemplate,
|
|
6669
6697
|
opts: {
|
|
@@ -6682,7 +6710,7 @@ var getElement = function getElement(story, element) {
|
|
|
6682
6710
|
_blurb$css = _blurb$css === void 0 ? {} : _blurb$css;
|
|
6683
6711
|
var _blurb$css$borderColo = _blurb$css.borderColor,
|
|
6684
6712
|
borderColor = _blurb$css$borderColo === void 0 ? "#2f81cd" : _blurb$css$borderColo;
|
|
6685
|
-
return /*#__PURE__*/
|
|
6713
|
+
return /*#__PURE__*/React__default["default"].createElement(Blurb, {
|
|
6686
6714
|
element: element,
|
|
6687
6715
|
template: blurbTemplate,
|
|
6688
6716
|
css: {
|
|
@@ -6701,7 +6729,7 @@ var getElement = function getElement(story, element) {
|
|
|
6701
6729
|
blockQuoteColor = _blockquote$css$block === void 0 ? "#2f81cd" : _blockquote$css$block,
|
|
6702
6730
|
_blockquote$css$backg = _blockquote$css.backgroundShade,
|
|
6703
6731
|
backgroundShade = _blockquote$css$backg === void 0 ? "" : _blockquote$css$backg;
|
|
6704
|
-
return /*#__PURE__*/
|
|
6732
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockQuote, {
|
|
6705
6733
|
element: element,
|
|
6706
6734
|
template: blockQuoteTemplate,
|
|
6707
6735
|
css: {
|
|
@@ -6718,7 +6746,7 @@ var getElement = function getElement(story, element) {
|
|
|
6718
6746
|
_quote$css = _quote$css === void 0 ? {} : _quote$css;
|
|
6719
6747
|
var _quote$css$borderColo = _quote$css.borderColor,
|
|
6720
6748
|
quoteBorderColor = _quote$css$borderColo === void 0 ? "#2f81cd" : _quote$css$borderColo;
|
|
6721
|
-
return /*#__PURE__*/
|
|
6749
|
+
return /*#__PURE__*/React__default["default"].createElement(Quote, {
|
|
6722
6750
|
element: element,
|
|
6723
6751
|
template: quoteTemplate,
|
|
6724
6752
|
css: {
|
|
@@ -6727,7 +6755,7 @@ var getElement = function getElement(story, element) {
|
|
|
6727
6755
|
});
|
|
6728
6756
|
|
|
6729
6757
|
case "bigfact":
|
|
6730
|
-
return /*#__PURE__*/
|
|
6758
|
+
return /*#__PURE__*/React__default["default"].createElement(BigFact, {
|
|
6731
6759
|
element: element
|
|
6732
6760
|
});
|
|
6733
6761
|
|
|
@@ -6742,7 +6770,7 @@ var getElement = function getElement(story, element) {
|
|
|
6742
6770
|
_alsoRead$opts = _alsoRead$opts === void 0 ? {} : _alsoRead$opts;
|
|
6743
6771
|
var _alsoRead$opts$title = _alsoRead$opts.title,
|
|
6744
6772
|
title = _alsoRead$opts$title === void 0 ? "" : _alsoRead$opts$title;
|
|
6745
|
-
return /*#__PURE__*/
|
|
6773
|
+
return /*#__PURE__*/React__default["default"].createElement(AlsoRead, {
|
|
6746
6774
|
story: story,
|
|
6747
6775
|
element: element,
|
|
6748
6776
|
template: alsoReadTemplate,
|
|
@@ -6755,7 +6783,7 @@ var getElement = function getElement(story, element) {
|
|
|
6755
6783
|
});
|
|
6756
6784
|
|
|
6757
6785
|
case "image":
|
|
6758
|
-
return /*#__PURE__*/
|
|
6786
|
+
return /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
6759
6787
|
element: element
|
|
6760
6788
|
});
|
|
6761
6789
|
|
|
@@ -6770,7 +6798,7 @@ var getElement = function getElement(story, element) {
|
|
|
6770
6798
|
_qaElement$opts = _qaElement$opts === void 0 ? {} : _qaElement$opts;
|
|
6771
6799
|
var _qaElement$opts$defau = _qaElement$opts.defaultIconType,
|
|
6772
6800
|
defaultIconType = _qaElement$opts$defau === void 0 ? "edge" : _qaElement$opts$defau;
|
|
6773
|
-
return /*#__PURE__*/
|
|
6801
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
6774
6802
|
element: element,
|
|
6775
6803
|
opts: {
|
|
6776
6804
|
type: "q-and-a",
|
|
@@ -6793,7 +6821,7 @@ var getElement = function getElement(story, element) {
|
|
|
6793
6821
|
_questionElement$opts = _questionElement$opts === void 0 ? {} : _questionElement$opts;
|
|
6794
6822
|
var _questionElement$opts2 = _questionElement$opts.defaultQuestionIconType,
|
|
6795
6823
|
defaultQuestionIconType = _questionElement$opts2 === void 0 ? "edge" : _questionElement$opts2;
|
|
6796
|
-
return /*#__PURE__*/
|
|
6824
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
6797
6825
|
element: element,
|
|
6798
6826
|
opts: {
|
|
6799
6827
|
type: "question",
|
|
@@ -6816,7 +6844,7 @@ var getElement = function getElement(story, element) {
|
|
|
6816
6844
|
_answerElement$opts = _answerElement$opts === void 0 ? {} : _answerElement$opts;
|
|
6817
6845
|
var _answerElement$opts$d = _answerElement$opts.defaultAnswerIconType,
|
|
6818
6846
|
defaultAnswerIconType = _answerElement$opts$d === void 0 ? "edge" : _answerElement$opts$d;
|
|
6819
|
-
return /*#__PURE__*/
|
|
6847
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
6820
6848
|
element: element,
|
|
6821
6849
|
opts: {
|
|
6822
6850
|
type: "answer",
|
|
@@ -6829,43 +6857,43 @@ var getElement = function getElement(story, element) {
|
|
|
6829
6857
|
});
|
|
6830
6858
|
|
|
6831
6859
|
case "gallery":
|
|
6832
|
-
return /*#__PURE__*/
|
|
6860
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6833
6861
|
className: "content-style",
|
|
6834
6862
|
id: "image-gallery-".concat(storyElementId)
|
|
6835
|
-
}, /*#__PURE__*/
|
|
6863
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery, {
|
|
6836
6864
|
element: element
|
|
6837
6865
|
}));
|
|
6838
6866
|
|
|
6839
6867
|
case "slideshow":
|
|
6840
|
-
return /*#__PURE__*/
|
|
6868
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6841
6869
|
className: "content-style",
|
|
6842
6870
|
id: "image-slideshow-".concat(storyElementId)
|
|
6843
|
-
}, /*#__PURE__*/
|
|
6871
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageSlideshow, {
|
|
6844
6872
|
element: element
|
|
6845
6873
|
}));
|
|
6846
6874
|
|
|
6847
6875
|
case "youtube-video":
|
|
6848
6876
|
case "dailymotion-video":
|
|
6849
|
-
return /*#__PURE__*/
|
|
6877
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6850
6878
|
className: "content-style",
|
|
6851
6879
|
id: "video-".concat(storyElementId)
|
|
6852
|
-
}, /*#__PURE__*/
|
|
6880
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
6853
6881
|
element: element,
|
|
6854
6882
|
story: story,
|
|
6855
6883
|
loadIframeOnClick: true
|
|
6856
6884
|
}));
|
|
6857
6885
|
|
|
6858
6886
|
case "attachment":
|
|
6859
|
-
return /*#__PURE__*/
|
|
6887
|
+
return /*#__PURE__*/React__default["default"].createElement(Attachment, {
|
|
6860
6888
|
element: element
|
|
6861
6889
|
});
|
|
6862
6890
|
|
|
6863
6891
|
case "tweet":
|
|
6864
6892
|
case "jsembed":
|
|
6865
|
-
return /*#__PURE__*/
|
|
6893
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6866
6894
|
className: "content-style",
|
|
6867
6895
|
id: "jsembed-".concat(storyElementId)
|
|
6868
|
-
}, /*#__PURE__*/
|
|
6896
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
6869
6897
|
element: element
|
|
6870
6898
|
}));
|
|
6871
6899
|
|
|
@@ -6876,7 +6904,7 @@ var getElement = function getElement(story, element) {
|
|
|
6876
6904
|
showHeadline = _references$opts$show === void 0 ? true : _references$opts$show,
|
|
6877
6905
|
_references$opts$head = _references$opts.headlineText,
|
|
6878
6906
|
headlineText = _references$opts$head === void 0 ? "" : _references$opts$head;
|
|
6879
|
-
return /*#__PURE__*/
|
|
6907
|
+
return /*#__PURE__*/React__default["default"].createElement(Reference, {
|
|
6880
6908
|
element: element,
|
|
6881
6909
|
opts: {
|
|
6882
6910
|
showHeadline: showHeadline,
|
|
@@ -6885,10 +6913,10 @@ var getElement = function getElement(story, element) {
|
|
|
6885
6913
|
});
|
|
6886
6914
|
|
|
6887
6915
|
default:
|
|
6888
|
-
return /*#__PURE__*/
|
|
6916
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6889
6917
|
className: "content-style",
|
|
6890
6918
|
id: "element-".concat(storyElementId)
|
|
6891
|
-
}, /*#__PURE__*/
|
|
6919
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
6892
6920
|
element: element,
|
|
6893
6921
|
story: story
|
|
6894
6922
|
}));
|
|
@@ -6901,19 +6929,19 @@ var MainImageWrapper = function MainImageWrapper(_ref) {
|
|
|
6901
6929
|
_ref.children;
|
|
6902
6930
|
var config = _ref.config,
|
|
6903
6931
|
card = _ref.card;
|
|
6904
|
-
return /*#__PURE__*/
|
|
6932
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6905
6933
|
style: {
|
|
6906
6934
|
backgroundColor: config.theme
|
|
6907
6935
|
}
|
|
6908
|
-
}, /*#__PURE__*/
|
|
6936
|
+
}, /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
6909
6937
|
element: imageElement,
|
|
6910
6938
|
caption: false
|
|
6911
|
-
}), /*#__PURE__*/
|
|
6939
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6912
6940
|
className: "story-element-card-m_image-share__2V7dB"
|
|
6913
|
-
}, /*#__PURE__*/
|
|
6941
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
6914
6942
|
element: imageElement,
|
|
6915
6943
|
config: config
|
|
6916
|
-
}), /*#__PURE__*/
|
|
6944
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
6917
6945
|
template: SocialShareTemplate,
|
|
6918
6946
|
title: story.headline,
|
|
6919
6947
|
theme: config.theme,
|
|
@@ -6922,23 +6950,23 @@ var MainImageWrapper = function MainImageWrapper(_ref) {
|
|
|
6922
6950
|
};
|
|
6923
6951
|
|
|
6924
6952
|
MainImageWrapper.propTypes = {
|
|
6925
|
-
story:
|
|
6926
|
-
imageElement:
|
|
6927
|
-
config:
|
|
6928
|
-
children:
|
|
6929
|
-
card:
|
|
6930
|
-
id:
|
|
6953
|
+
story: PropTypes__default["default"].object,
|
|
6954
|
+
imageElement: PropTypes__default["default"].object,
|
|
6955
|
+
config: PropTypes__default["default"].object,
|
|
6956
|
+
children: PropTypes__default["default"].node,
|
|
6957
|
+
card: PropTypes__default["default"].shape({
|
|
6958
|
+
id: PropTypes__default["default"].string
|
|
6931
6959
|
})
|
|
6932
6960
|
};
|
|
6933
6961
|
({
|
|
6934
|
-
story:
|
|
6935
|
-
card:
|
|
6936
|
-
heroVideoElementId:
|
|
6937
|
-
config:
|
|
6938
|
-
isLive:
|
|
6939
|
-
theme:
|
|
6940
|
-
adComponent:
|
|
6941
|
-
widgetComp:
|
|
6962
|
+
story: PropTypes__default["default"].object,
|
|
6963
|
+
card: PropTypes__default["default"].array,
|
|
6964
|
+
heroVideoElementId: PropTypes__default["default"].number,
|
|
6965
|
+
config: PropTypes__default["default"].object,
|
|
6966
|
+
isLive: PropTypes__default["default"].bool,
|
|
6967
|
+
theme: PropTypes__default["default"].string,
|
|
6968
|
+
adComponent: PropTypes__default["default"].func,
|
|
6969
|
+
widgetComp: PropTypes__default["default"].func
|
|
6942
6970
|
});
|
|
6943
6971
|
var PhotoStoryElement = function PhotoStoryElement(_ref3) {
|
|
6944
6972
|
var _ref3$card = _ref3.card,
|
|
@@ -6948,13 +6976,13 @@ var PhotoStoryElement = function PhotoStoryElement(_ref3) {
|
|
|
6948
6976
|
adComponent = _ref3.adComponent,
|
|
6949
6977
|
widgetComp = _ref3.widgetComp;
|
|
6950
6978
|
var shouldRunFBMobileVideoFix = true;
|
|
6951
|
-
return /*#__PURE__*/
|
|
6979
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6952
6980
|
className: "story-element-card-m_story-card__H2VYl"
|
|
6953
6981
|
}, get_1(card, ["story-elements"], []).map(function (element, index) {
|
|
6954
6982
|
var cardId = get_1(card, ["id"], "");
|
|
6955
6983
|
|
|
6956
6984
|
if (element.type === "image") {
|
|
6957
|
-
return /*#__PURE__*/
|
|
6985
|
+
return /*#__PURE__*/React__default["default"].createElement(MainImageWrapper, {
|
|
6958
6986
|
imageElement: element,
|
|
6959
6987
|
story: story,
|
|
6960
6988
|
config: config,
|
|
@@ -6966,7 +6994,7 @@ var PhotoStoryElement = function PhotoStoryElement(_ref3) {
|
|
|
6966
6994
|
shouldRunFBMobileVideoFix = false;
|
|
6967
6995
|
}
|
|
6968
6996
|
|
|
6969
|
-
return /*#__PURE__*/
|
|
6997
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6970
6998
|
className: "story-element-card-m_element-container__1ZeJL",
|
|
6971
6999
|
key: index
|
|
6972
7000
|
}, getElement(story, element, config, adComponent, widgetComp, index, cardId));
|
|
@@ -6974,11 +7002,11 @@ var PhotoStoryElement = function PhotoStoryElement(_ref3) {
|
|
|
6974
7002
|
}));
|
|
6975
7003
|
};
|
|
6976
7004
|
PhotoStoryElement.propTypes = {
|
|
6977
|
-
story:
|
|
6978
|
-
card:
|
|
6979
|
-
config:
|
|
6980
|
-
adComponent:
|
|
6981
|
-
widgetComp:
|
|
7005
|
+
story: PropTypes__default["default"].object,
|
|
7006
|
+
card: PropTypes__default["default"].object,
|
|
7007
|
+
config: PropTypes__default["default"].object,
|
|
7008
|
+
adComponent: PropTypes__default["default"].func,
|
|
7009
|
+
widgetComp: PropTypes__default["default"].func
|
|
6982
7010
|
};
|
|
6983
7011
|
var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
6984
7012
|
var _ref4$id = _ref4.id,
|
|
@@ -6990,12 +7018,12 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
6990
7018
|
|
|
6991
7019
|
switch (element.type) {
|
|
6992
7020
|
case "ad":
|
|
6993
|
-
return /*#__PURE__*/
|
|
7021
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
6994
7022
|
id: "ad-after-story-".concat(id)
|
|
6995
7023
|
}));
|
|
6996
7024
|
|
|
6997
7025
|
case "widget":
|
|
6998
|
-
return /*#__PURE__*/
|
|
7026
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
6999
7027
|
widgetCode: element.config.customCode,
|
|
7000
7028
|
id: "widget-after-story-".concat(id)
|
|
7001
7029
|
});
|
|
@@ -7005,10 +7033,10 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
7005
7033
|
}
|
|
7006
7034
|
};
|
|
7007
7035
|
SlotAfterStory.propTypes = {
|
|
7008
|
-
id:
|
|
7009
|
-
element:
|
|
7010
|
-
AdComponent:
|
|
7011
|
-
WidgetComp:
|
|
7036
|
+
id: PropTypes__default["default"].string,
|
|
7037
|
+
element: PropTypes__default["default"].object,
|
|
7038
|
+
AdComponent: PropTypes__default["default"].func,
|
|
7039
|
+
WidgetComp: PropTypes__default["default"].func
|
|
7012
7040
|
};
|
|
7013
7041
|
|
|
7014
7042
|
var _styleModuleImportMap$a = {
|
|
@@ -7030,18 +7058,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
7030
7058
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
7031
7059
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
7032
7060
|
var textColor = getTextColor(configState.theme);
|
|
7033
|
-
return /*#__PURE__*/
|
|
7061
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7034
7062
|
"data-test-id": "publish-time",
|
|
7035
7063
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
|
|
7036
|
-
}, /*#__PURE__*/
|
|
7064
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7037
7065
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
7038
7066
|
}, getTimeStamp(time, formatter, config))));
|
|
7039
7067
|
};
|
|
7040
7068
|
TimeStamp.propTypes = {
|
|
7041
7069
|
/** The Story Object from the API response */
|
|
7042
|
-
story:
|
|
7043
|
-
isBottom:
|
|
7044
|
-
config:
|
|
7070
|
+
story: PropTypes__default["default"].object,
|
|
7071
|
+
isBottom: PropTypes__default["default"].bool,
|
|
7072
|
+
config: PropTypes__default["default"].object
|
|
7045
7073
|
};
|
|
7046
7074
|
|
|
7047
7075
|
var _styleModuleImportMap$9 = {
|
|
@@ -7084,10 +7112,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7084
7112
|
return null;
|
|
7085
7113
|
}
|
|
7086
7114
|
|
|
7087
|
-
return /*#__PURE__*/
|
|
7115
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7088
7116
|
"data-test-id": "author-image",
|
|
7089
7117
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
|
|
7090
|
-
}, /*#__PURE__*/
|
|
7118
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7091
7119
|
slug: avatarS3Key,
|
|
7092
7120
|
"aspect-ratio": [1, 1],
|
|
7093
7121
|
defaultWidth: 400,
|
|
@@ -7095,14 +7123,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7095
7123
|
auto: ["format", "compress"]
|
|
7096
7124
|
},
|
|
7097
7125
|
alt: authorName
|
|
7098
|
-
}) : /*#__PURE__*/
|
|
7126
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7099
7127
|
src: avatarUrl
|
|
7100
7128
|
})));
|
|
7101
7129
|
};
|
|
7102
7130
|
|
|
7103
7131
|
var isPrefix = function isPrefix(dir) {
|
|
7104
7132
|
if (prefix) {
|
|
7105
|
-
return /*#__PURE__*/
|
|
7133
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7106
7134
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$9)
|
|
7107
7135
|
}, prefix);
|
|
7108
7136
|
}
|
|
@@ -7110,11 +7138,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7110
7138
|
return !hideAuthorImage && authorImage(dir);
|
|
7111
7139
|
};
|
|
7112
7140
|
|
|
7113
|
-
return /*#__PURE__*/
|
|
7141
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7114
7142
|
href: "".concat(mountAt, "/author/") + slug,
|
|
7115
7143
|
"aria-label": "author-name",
|
|
7116
7144
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
|
|
7117
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
7145
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7118
7146
|
"data-test-id": "author-name",
|
|
7119
7147
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
|
|
7120
7148
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -7126,18 +7154,18 @@ function mapStateToProps$1(state) {
|
|
|
7126
7154
|
};
|
|
7127
7155
|
}
|
|
7128
7156
|
|
|
7129
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
7157
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
7130
7158
|
AuthorBase.propTypes = {
|
|
7131
7159
|
/** The Story Object from the API response */
|
|
7132
|
-
story:
|
|
7160
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
7133
7161
|
|
|
7134
7162
|
/** Hide Author Avatar Image */
|
|
7135
|
-
hideAuthorImage:
|
|
7163
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
7136
7164
|
// fix Author bottom of the storyCard
|
|
7137
|
-
isBottom:
|
|
7165
|
+
isBottom: PropTypes__default["default"].bool,
|
|
7138
7166
|
// fix prefix before the author name
|
|
7139
|
-
prefix:
|
|
7140
|
-
config:
|
|
7167
|
+
prefix: PropTypes__default["default"].string,
|
|
7168
|
+
config: PropTypes__default["default"].object
|
|
7141
7169
|
};
|
|
7142
7170
|
AuthorBase.defaultProps = {
|
|
7143
7171
|
hideAuthorImage: false,
|
|
@@ -7158,22 +7186,22 @@ var Divider = function Divider(_ref) {
|
|
|
7158
7186
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
7159
7187
|
_ref$color = _ref.color,
|
|
7160
7188
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
7161
|
-
return /*#__PURE__*/
|
|
7189
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7162
7190
|
className: _getClassName(color, _styleModuleImportMap$8)
|
|
7163
|
-
}, /*#__PURE__*/
|
|
7191
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7164
7192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7165
7193
|
width: width,
|
|
7166
7194
|
height: height
|
|
7167
|
-
}, /*#__PURE__*/
|
|
7195
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7168
7196
|
fill: "inherit",
|
|
7169
7197
|
d: "M0 0h1v10H0z"
|
|
7170
7198
|
})));
|
|
7171
7199
|
};
|
|
7172
7200
|
Divider.propTypes = {
|
|
7173
7201
|
/** height , width and color of the dot icon */
|
|
7174
|
-
color:
|
|
7175
|
-
width:
|
|
7176
|
-
height:
|
|
7202
|
+
color: PropTypes__default["default"].string,
|
|
7203
|
+
width: PropTypes__default["default"].string,
|
|
7204
|
+
height: PropTypes__default["default"].string
|
|
7177
7205
|
};
|
|
7178
7206
|
|
|
7179
7207
|
var _styleModuleImportMap$7 = {
|
|
@@ -7204,33 +7232,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
7204
7232
|
|
|
7205
7233
|
var getSeparator = function getSeparator() {
|
|
7206
7234
|
if (separator === "divider") {
|
|
7207
|
-
return /*#__PURE__*/
|
|
7235
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
7208
7236
|
color: textColor
|
|
7209
7237
|
});
|
|
7210
7238
|
}
|
|
7211
7239
|
|
|
7212
|
-
return /*#__PURE__*/
|
|
7240
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
7213
7241
|
color: textColor
|
|
7214
7242
|
});
|
|
7215
7243
|
};
|
|
7216
7244
|
|
|
7217
7245
|
var getTimeStamp = function getTimeStamp() {
|
|
7218
7246
|
if (!isTime) return null;
|
|
7219
|
-
return /*#__PURE__*/
|
|
7247
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7220
7248
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$7)
|
|
7221
|
-
}, getSeparator()), /*#__PURE__*/
|
|
7249
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
7222
7250
|
story: story,
|
|
7223
7251
|
config: config
|
|
7224
|
-
}), isReadTime && /*#__PURE__*/
|
|
7252
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
7225
7253
|
story: story,
|
|
7226
7254
|
opts: config,
|
|
7227
7255
|
isLightTheme: isLightTheme
|
|
7228
7256
|
}));
|
|
7229
7257
|
};
|
|
7230
7258
|
|
|
7231
|
-
return /*#__PURE__*/
|
|
7259
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7232
7260
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$7)
|
|
7233
|
-
}, isAuthor ? /*#__PURE__*/
|
|
7261
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
7234
7262
|
story: story,
|
|
7235
7263
|
isBottom: true,
|
|
7236
7264
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -7238,19 +7266,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
7238
7266
|
}), getTimeStamp()) : getTimeStamp());
|
|
7239
7267
|
};
|
|
7240
7268
|
AuthorWithTime.propTypes = {
|
|
7241
|
-
story:
|
|
7269
|
+
story: PropTypes__default["default"].object,
|
|
7242
7270
|
|
|
7243
7271
|
/** Style of separator between the Author & Timestamp */
|
|
7244
|
-
separator:
|
|
7272
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
7245
7273
|
|
|
7246
7274
|
/** hide the author image */
|
|
7247
|
-
hideAuthorImage:
|
|
7275
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
7248
7276
|
// fix author and time at the end
|
|
7249
|
-
isBottom:
|
|
7277
|
+
isBottom: PropTypes__default["default"].bool,
|
|
7250
7278
|
// fix prefix before the author name
|
|
7251
|
-
prefix:
|
|
7252
|
-
config:
|
|
7253
|
-
isLightTheme:
|
|
7279
|
+
prefix: PropTypes__default["default"].string,
|
|
7280
|
+
config: PropTypes__default["default"].object,
|
|
7281
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
7254
7282
|
};
|
|
7255
7283
|
AuthorWithTime.defaultProps = {
|
|
7256
7284
|
separator: "dot",
|
|
@@ -7296,7 +7324,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
7296
7324
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
7297
7325
|
|
|
7298
7326
|
var borderBottomStyle = function borderBottomStyle() {
|
|
7299
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
7327
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7300
7328
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
7301
7329
|
style: {
|
|
7302
7330
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -7356,40 +7384,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
7356
7384
|
}
|
|
7357
7385
|
};
|
|
7358
7386
|
|
|
7359
|
-
return /*#__PURE__*/
|
|
7387
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7360
7388
|
style: {
|
|
7361
7389
|
borderBottom: borderBottomFullStyle
|
|
7362
7390
|
},
|
|
7363
7391
|
"data-test-id": "collection-name",
|
|
7364
7392
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$6)
|
|
7365
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
7393
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7366
7394
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
7367
7395
|
style: {
|
|
7368
7396
|
color: CollectionNameBorderColor,
|
|
7369
7397
|
fontSize: getBorderHeight()
|
|
7370
7398
|
}
|
|
7371
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
7399
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7372
7400
|
href: slug,
|
|
7373
7401
|
"aria-label": "collection-name"
|
|
7374
|
-
}, /*#__PURE__*/
|
|
7402
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
7375
7403
|
};
|
|
7376
7404
|
CollectionNameBase.propTypes = {
|
|
7377
7405
|
/** Collection name border color */
|
|
7378
|
-
collectionNameBorderColor: PropTypes
|
|
7406
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
7379
7407
|
|
|
7380
7408
|
/** The Collection Object from the API response */
|
|
7381
|
-
collection: PropTypes
|
|
7409
|
+
collection: PropTypes.PropTypes.object,
|
|
7382
7410
|
|
|
7383
7411
|
/** The publisher config from the API response */
|
|
7384
|
-
config: PropTypes
|
|
7412
|
+
config: PropTypes.PropTypes.object,
|
|
7385
7413
|
|
|
7386
7414
|
/** The style template for the component */
|
|
7387
|
-
collectionNameTemplate: PropTypes
|
|
7415
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
7388
7416
|
|
|
7389
7417
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
7390
|
-
headerLevel: PropTypes
|
|
7391
|
-
customCollectionName: PropTypes
|
|
7392
|
-
navigate: PropTypes
|
|
7418
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
7419
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
7420
|
+
navigate: PropTypes.PropTypes.bool
|
|
7393
7421
|
};
|
|
7394
7422
|
CollectionNameBase.defaultProps = {
|
|
7395
7423
|
collectionNameTemplate: "",
|
|
@@ -7402,16 +7430,16 @@ function mapStateToProps(state) {
|
|
|
7402
7430
|
};
|
|
7403
7431
|
}
|
|
7404
7432
|
|
|
7405
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
7433
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
7406
7434
|
|
|
7407
7435
|
function LiveIcon() {
|
|
7408
|
-
return /*#__PURE__*/
|
|
7436
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7409
7437
|
className: "live-icon",
|
|
7410
7438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7411
7439
|
width: "25",
|
|
7412
7440
|
height: "24",
|
|
7413
7441
|
viewBox: "0 0 25 24"
|
|
7414
|
-
}, /*#__PURE__*/
|
|
7442
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7415
7443
|
fill: "#ff5858",
|
|
7416
7444
|
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"
|
|
7417
7445
|
}));
|
|
@@ -7468,37 +7496,37 @@ var Headline = function Headline(_ref) {
|
|
|
7468
7496
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
7469
7497
|
var iconSize = "24px";
|
|
7470
7498
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
7471
|
-
return /*#__PURE__*/
|
|
7499
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7472
7500
|
"data-test-id": "headline",
|
|
7473
7501
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$5)
|
|
7474
|
-
}, premiumStory && /*#__PURE__*/
|
|
7502
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
7475
7503
|
width: iconSize,
|
|
7476
7504
|
height: iconSize,
|
|
7477
7505
|
color: iconColor,
|
|
7478
7506
|
iconType: iconStyle,
|
|
7479
7507
|
positionTop: positionHeadline()
|
|
7480
|
-
}), isLink ? /*#__PURE__*/
|
|
7508
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7481
7509
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
7482
7510
|
externalLink: isExternalStory(story),
|
|
7483
7511
|
"aria-label": "headline"
|
|
7484
|
-
}, /*#__PURE__*/
|
|
7512
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
7485
7513
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$5)
|
|
7486
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
7514
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
7487
7515
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$5)
|
|
7488
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
7516
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
7489
7517
|
};
|
|
7490
7518
|
Headline.propTypes = {
|
|
7491
7519
|
/** The Story Object from the API response */
|
|
7492
|
-
story:
|
|
7520
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
7493
7521
|
|
|
7494
7522
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
7495
|
-
headerLevel:
|
|
7496
|
-
premiumStoryIconConfig:
|
|
7497
|
-
iconColor:
|
|
7498
|
-
iconType:
|
|
7499
|
-
enablePremiumStoryIcon:
|
|
7523
|
+
headerLevel: PropTypes__default["default"].string,
|
|
7524
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
7525
|
+
iconColor: PropTypes__default["default"].string,
|
|
7526
|
+
iconType: PropTypes__default["default"].string,
|
|
7527
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
7500
7528
|
}),
|
|
7501
|
-
isLink:
|
|
7529
|
+
isLink: PropTypes__default["default"].bool
|
|
7502
7530
|
};
|
|
7503
7531
|
Headline.defaultProps = {
|
|
7504
7532
|
headerLevel: "6",
|
|
@@ -7547,7 +7575,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
7547
7575
|
prefix = _ref.prefix,
|
|
7548
7576
|
config = _ref.config,
|
|
7549
7577
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
7550
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
7578
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
7551
7579
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
7552
7580
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
7553
7581
|
|
|
@@ -7557,7 +7585,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
7557
7585
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
7558
7586
|
var textColor = getTextColor(theme);
|
|
7559
7587
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
7560
|
-
var defaultStorycard = /*#__PURE__*/
|
|
7588
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
7561
7589
|
story: story,
|
|
7562
7590
|
aspectRatio: aspectRatio,
|
|
7563
7591
|
border: border,
|
|
@@ -7571,7 +7599,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
7571
7599
|
config: config,
|
|
7572
7600
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
7573
7601
|
});
|
|
7574
|
-
return /*#__PURE__*/
|
|
7602
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7575
7603
|
"data-test-id": "story-card",
|
|
7576
7604
|
style: {
|
|
7577
7605
|
backgroundColor: theme,
|
|
@@ -7600,91 +7628,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
7600
7628
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
7601
7629
|
var _config$localizationC = config.localizationConfig,
|
|
7602
7630
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
7603
|
-
return /*#__PURE__*/
|
|
7631
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
7604
7632
|
config: config,
|
|
7605
7633
|
story: story,
|
|
7606
7634
|
isHorizontal: true,
|
|
7607
7635
|
isHorizontalMobile: isHorizontalMobile,
|
|
7608
7636
|
aspectRatio: aspectRatio
|
|
7609
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
7637
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
7610
7638
|
config: config,
|
|
7611
7639
|
story: story,
|
|
7612
7640
|
isHorizontalWithImageLast: true,
|
|
7613
7641
|
isHorizontalMobile: isHorizontalMobile,
|
|
7614
7642
|
aspectRatio: aspectRatio
|
|
7615
|
-
}) : /*#__PURE__*/
|
|
7643
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
7616
7644
|
story: story,
|
|
7617
7645
|
config: config,
|
|
7618
7646
|
isHorizontalMobile: isHorizontalMobile,
|
|
7619
7647
|
aspectRatio: aspectRatio
|
|
7620
|
-
}), /*#__PURE__*/
|
|
7648
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7621
7649
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$4)
|
|
7622
|
-
}, /*#__PURE__*/
|
|
7650
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
7623
7651
|
story: story,
|
|
7624
7652
|
borderColor: SectionTagborderColor
|
|
7625
|
-
}), /*#__PURE__*/
|
|
7653
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
7626
7654
|
story: story,
|
|
7627
7655
|
headerLevel: headerLevel,
|
|
7628
7656
|
premiumStoryIconConfig: config
|
|
7629
|
-
}), /*#__PURE__*/
|
|
7657
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
7630
7658
|
config: localizationConfig,
|
|
7631
7659
|
story: story,
|
|
7632
7660
|
isBottom: true,
|
|
7633
7661
|
prefix: prefix,
|
|
7634
7662
|
hideAuthorImage: hideAuthorImage
|
|
7635
|
-
}), /*#__PURE__*/
|
|
7663
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
7636
7664
|
story: story
|
|
7637
7665
|
})));
|
|
7638
7666
|
};
|
|
7639
7667
|
|
|
7640
7668
|
DefaultStoryCard.propTypes = {
|
|
7641
|
-
story:
|
|
7642
|
-
border:
|
|
7643
|
-
isBottom:
|
|
7644
|
-
isHorizontal:
|
|
7645
|
-
aspectRatio:
|
|
7646
|
-
isHorizontalMobile:
|
|
7647
|
-
centerAlign:
|
|
7648
|
-
headerLevel:
|
|
7649
|
-
borderColor:
|
|
7650
|
-
hideAuthorImage:
|
|
7651
|
-
prefix:
|
|
7652
|
-
config:
|
|
7653
|
-
isHorizontalWithImageLast:
|
|
7669
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
7670
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
7671
|
+
isBottom: PropTypes__default["default"].bool,
|
|
7672
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
7673
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
7674
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
7675
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
7676
|
+
headerLevel: PropTypes__default["default"].string,
|
|
7677
|
+
borderColor: PropTypes__default["default"].string,
|
|
7678
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
7679
|
+
prefix: PropTypes__default["default"].string,
|
|
7680
|
+
config: PropTypes__default["default"].object,
|
|
7681
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
7654
7682
|
};
|
|
7655
7683
|
StoryCard.propTypes = {
|
|
7656
7684
|
/** The Story Object from the API response */
|
|
7657
|
-
story:
|
|
7658
|
-
children:
|
|
7685
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
7686
|
+
children: PropTypes__default["default"].node,
|
|
7659
7687
|
|
|
7660
7688
|
/** Flip the Story Card to Horizonal mode */
|
|
7661
|
-
isHorizontal:
|
|
7689
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
7662
7690
|
|
|
7663
7691
|
/** Add border to the Story Card */
|
|
7664
|
-
border:
|
|
7692
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
7665
7693
|
// story card with background image
|
|
7666
|
-
useImageAsBackground:
|
|
7694
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
7667
7695
|
// story card content overlap with image
|
|
7668
|
-
bgImgContentOverlap:
|
|
7696
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
7669
7697
|
|
|
7670
7698
|
/** add aspect ratio for hero image */
|
|
7671
|
-
aspectRatio:
|
|
7699
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
7672
7700
|
|
|
7673
7701
|
/** add theme(dark /light/custom color) for storycard */
|
|
7674
|
-
theme:
|
|
7702
|
+
theme: PropTypes__default["default"].string,
|
|
7675
7703
|
|
|
7676
7704
|
/** flip the story card mobile design horizontal */
|
|
7677
|
-
isHorizontalMobile:
|
|
7705
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
7678
7706
|
// make content center align in desktop and left align in mobile
|
|
7679
|
-
centerAlign:
|
|
7680
|
-
headerLevel:
|
|
7681
|
-
borderColor:
|
|
7707
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
7708
|
+
headerLevel: PropTypes__default["default"].string,
|
|
7709
|
+
borderColor: PropTypes__default["default"].string,
|
|
7682
7710
|
// handle author image through storycard
|
|
7683
|
-
hideAuthorImage:
|
|
7711
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
7684
7712
|
// handle author prefix through storycard
|
|
7685
|
-
prefix:
|
|
7686
|
-
config:
|
|
7687
|
-
isHorizontalWithImageLast:
|
|
7713
|
+
prefix: PropTypes__default["default"].string,
|
|
7714
|
+
config: PropTypes__default["default"].object,
|
|
7715
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
7688
7716
|
};
|
|
7689
7717
|
StoryCard.defaultProps = {
|
|
7690
7718
|
isHorizontal: false,
|
|
@@ -7699,19 +7727,19 @@ StoryCard.defaultProps = {
|
|
|
7699
7727
|
var ClockIcon = function ClockIcon(_ref) {
|
|
7700
7728
|
var _ref$color = _ref.color,
|
|
7701
7729
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7702
|
-
return /*#__PURE__*/
|
|
7730
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7703
7731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7704
7732
|
width: "24",
|
|
7705
7733
|
height: "24",
|
|
7706
7734
|
viewBox: "0 0 24 24"
|
|
7707
|
-
}, /*#__PURE__*/
|
|
7735
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7708
7736
|
fill: color,
|
|
7709
7737
|
fillRule: "evenodd",
|
|
7710
7738
|
d: "M12 19.75a7.513 7.513 0 003.875-1.047 7.832 7.832 0 002.828-2.828A7.513 7.513 0 0019.75 12a7.513 7.513 0 00-1.047-3.875c-.698-1.187-1.64-2.13-2.828-2.828S13.395 4.25 12 4.25a7.51 7.51 0 00-3.875 1.047c-1.188.698-2.13 1.64-2.828 2.828S4.25 10.605 4.25 12a7.51 7.51 0 001.047 3.875 7.824 7.824 0 002.828 2.828A7.513 7.513 0 0012 19.75zm.016-1a6.64 6.64 0 01-3.391-.906 6.716 6.716 0 01-2.469-2.453 6.563 6.563 0 01-.906-3.375c0-1.22.302-2.35.906-3.391A6.711 6.711 0 018.61 6.156a6.563 6.563 0 013.375-.906c1.22 0 2.35.302 3.391.906a6.716 6.716 0 012.469 2.453A6.592 6.592 0 0118.751 12a6.616 6.616 0 01-.906 3.375 6.716 6.716 0 01-2.453 2.469 6.563 6.563 0 01-3.375.906zm2.283-3.92l.076-.002a.343.343 0 00.25-.14l.25-.375a.365.365 0 00.078-.266.328.328 0 00-.14-.234l-2.22-1.625V7.625a.362.362 0 00-.109-.266.36.36 0 00-.265-.109h-.438a.357.357 0 00-.265.11.358.358 0 00-.11.265v5c0 .125.052.219.156.281l2.532 1.844a.383.383 0 00.281.078l-.076.001z"
|
|
7711
7739
|
}));
|
|
7712
7740
|
};
|
|
7713
7741
|
ClockIcon.propTypes = {
|
|
7714
|
-
color:
|
|
7742
|
+
color: PropTypes__default["default"].string
|
|
7715
7743
|
};
|
|
7716
7744
|
|
|
7717
7745
|
var _styleModuleImportMap$3 = {
|
|
@@ -7746,26 +7774,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
7746
7774
|
if (!showButton) return null;
|
|
7747
7775
|
var textColor = getTextColor(theme);
|
|
7748
7776
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread$2(_objectSpread$2({}, qtConfig), config));
|
|
7749
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
7777
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7750
7778
|
onClick: onClick,
|
|
7751
7779
|
"data-test-id": "load-more",
|
|
7752
7780
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$3)
|
|
7753
|
-
}, buttonText) : /*#__PURE__*/
|
|
7781
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
7754
7782
|
href: slug,
|
|
7755
7783
|
navigateTo: navigate,
|
|
7756
7784
|
"data-test-id": "load-more",
|
|
7757
7785
|
"aria-label": "load-more"
|
|
7758
|
-
}, /*#__PURE__*/
|
|
7786
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7759
7787
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$3)
|
|
7760
7788
|
}, buttonText));
|
|
7761
7789
|
};
|
|
7762
7790
|
LoadmoreButton.propTypes = {
|
|
7763
|
-
collection:
|
|
7764
|
-
template:
|
|
7765
|
-
config:
|
|
7766
|
-
onClick:
|
|
7767
|
-
navigate:
|
|
7768
|
-
qtConfig:
|
|
7791
|
+
collection: PropTypes__default["default"].object,
|
|
7792
|
+
template: PropTypes__default["default"].string,
|
|
7793
|
+
config: PropTypes__default["default"].object,
|
|
7794
|
+
onClick: PropTypes__default["default"].func,
|
|
7795
|
+
navigate: PropTypes__default["default"].func,
|
|
7796
|
+
qtConfig: PropTypes__default["default"].object
|
|
7769
7797
|
};
|
|
7770
7798
|
|
|
7771
7799
|
var _styleModuleImportMap$2 = {
|
|
@@ -7803,23 +7831,23 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
7803
7831
|
var updateColor = textColor === "dark" ? dark : light;
|
|
7804
7832
|
var lastElement = index === cardLength - 1;
|
|
7805
7833
|
var borderLeft = lastElement ? "borderNone" : "";
|
|
7806
|
-
return /*#__PURE__*/
|
|
7834
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7807
7835
|
className: _getClassName("time-wrapper ".concat(textColor), _styleModuleImportMap$2)
|
|
7808
|
-
}, /*#__PURE__*/
|
|
7836
|
+
}, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
|
|
7809
7837
|
color: updateColor
|
|
7810
7838
|
}), getTimeStamp(cardAddedAt, timestampToFormat, {
|
|
7811
7839
|
showTime: true,
|
|
7812
7840
|
isTimeFirst: true
|
|
7813
|
-
})), /*#__PURE__*/
|
|
7841
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
7814
7842
|
href: "".concat(mountAt, "/").concat(slug, "#").concat(id),
|
|
7815
7843
|
"aria-label": "event-title"
|
|
7816
|
-
}, /*#__PURE__*/
|
|
7844
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7817
7845
|
className: _getClassName("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$2)
|
|
7818
7846
|
}, storyElements.map(function (element, index) {
|
|
7819
|
-
return element.type === "title" && /*#__PURE__*/
|
|
7847
|
+
return element.type === "title" && /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
7820
7848
|
key: index
|
|
7821
7849
|
}, element.text);
|
|
7822
|
-
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/
|
|
7850
|
+
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7823
7851
|
className: "key-events-m_fade-out__11jv_",
|
|
7824
7852
|
style: {
|
|
7825
7853
|
backgroundImage: "linear-gradient(to bottom, transparent, ".concat(theme, ")")
|
|
@@ -7828,19 +7856,19 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
7828
7856
|
};
|
|
7829
7857
|
|
|
7830
7858
|
KeyEventCards.propTypes = {
|
|
7831
|
-
card:
|
|
7832
|
-
"card-added-at":
|
|
7833
|
-
"story-elements":
|
|
7834
|
-
id:
|
|
7859
|
+
card: PropTypes__default["default"].shape({
|
|
7860
|
+
"card-added-at": PropTypes__default["default"].number,
|
|
7861
|
+
"story-elements": PropTypes__default["default"].array,
|
|
7862
|
+
id: PropTypes__default["default"].string
|
|
7835
7863
|
}),
|
|
7836
|
-
config:
|
|
7837
|
-
slug:
|
|
7838
|
-
story:
|
|
7839
|
-
elements:
|
|
7840
|
-
index:
|
|
7841
|
-
cardLength:
|
|
7842
|
-
loadCards:
|
|
7843
|
-
showLoadMore:
|
|
7864
|
+
config: PropTypes__default["default"].object,
|
|
7865
|
+
slug: PropTypes__default["default"].string,
|
|
7866
|
+
story: PropTypes__default["default"].object,
|
|
7867
|
+
elements: PropTypes__default["default"].array,
|
|
7868
|
+
index: PropTypes__default["default"].number,
|
|
7869
|
+
cardLength: PropTypes__default["default"].number,
|
|
7870
|
+
loadCards: PropTypes__default["default"].bool,
|
|
7871
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
7844
7872
|
};
|
|
7845
7873
|
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
7846
7874
|
var _ref$story = _ref.story,
|
|
@@ -7855,7 +7883,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7855
7883
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
7856
7884
|
var textColor = getTextColor(theme);
|
|
7857
7885
|
|
|
7858
|
-
var _useState = useState(initialLoadCount),
|
|
7886
|
+
var _useState = React.useState(initialLoadCount),
|
|
7859
7887
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7860
7888
|
initialCount = _useState2[0],
|
|
7861
7889
|
updatedCount = _useState2[1];
|
|
@@ -7864,7 +7892,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7864
7892
|
return get_1(card.metadata, ["attributes", "key-event"]);
|
|
7865
7893
|
});
|
|
7866
7894
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
7867
|
-
var qtConfig = useSelector(function (state) {
|
|
7895
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
7868
7896
|
return get_1(state, ["qt", "config"], {});
|
|
7869
7897
|
});
|
|
7870
7898
|
|
|
@@ -7878,7 +7906,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7878
7906
|
|
|
7879
7907
|
var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
|
|
7880
7908
|
var keyEvents = showAllCards.map(function (card, index, source) {
|
|
7881
|
-
return /*#__PURE__*/
|
|
7909
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
|
|
7882
7910
|
cardLength: source.length,
|
|
7883
7911
|
card: card,
|
|
7884
7912
|
key: card.id,
|
|
@@ -7889,14 +7917,14 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7889
7917
|
showLoadMore: showLoadMore
|
|
7890
7918
|
});
|
|
7891
7919
|
});
|
|
7892
|
-
return /*#__PURE__*/
|
|
7920
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7893
7921
|
style: {
|
|
7894
7922
|
background: theme
|
|
7895
7923
|
},
|
|
7896
7924
|
className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$2)
|
|
7897
|
-
}, /*#__PURE__*/
|
|
7925
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7898
7926
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
7899
|
-
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/
|
|
7927
|
+
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
7900
7928
|
onClick: onClick,
|
|
7901
7929
|
template: "SubsequentLoadCount",
|
|
7902
7930
|
config: config,
|
|
@@ -7904,9 +7932,9 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7904
7932
|
}));
|
|
7905
7933
|
};
|
|
7906
7934
|
KeyEventsBase.propTypes = {
|
|
7907
|
-
story:
|
|
7908
|
-
config:
|
|
7909
|
-
showLoadMore:
|
|
7935
|
+
story: PropTypes__default["default"].object,
|
|
7936
|
+
config: PropTypes__default["default"].object,
|
|
7937
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
7910
7938
|
};
|
|
7911
7939
|
var KeyEvents = StateProvider(KeyEventsBase);
|
|
7912
7940
|
|
|
@@ -7947,12 +7975,12 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
7947
7975
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
7948
7976
|
var mountAt = get_1(config, ["mountAtPrefix"], "");
|
|
7949
7977
|
|
|
7950
|
-
var _useState = useState([]),
|
|
7978
|
+
var _useState = React.useState([]),
|
|
7951
7979
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7952
7980
|
storyList = _useState2[0],
|
|
7953
7981
|
updateStoryList = _useState2[1];
|
|
7954
7982
|
|
|
7955
|
-
var _useState3 = useState([]),
|
|
7983
|
+
var _useState3 = React.useState([]),
|
|
7956
7984
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7957
7985
|
collectionData = _useState4[0],
|
|
7958
7986
|
updateCollectionData = _useState4[1];
|
|
@@ -7986,59 +8014,59 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
7986
8014
|
};
|
|
7987
8015
|
}();
|
|
7988
8016
|
|
|
7989
|
-
useEffect(function () {
|
|
8017
|
+
React.useEffect(function () {
|
|
7990
8018
|
if (collectionSlug) {
|
|
7991
8019
|
updateStoryListItems(collectionSlug);
|
|
7992
8020
|
}
|
|
7993
8021
|
}, [collectionSlug]);
|
|
7994
|
-
useEffect(function () {
|
|
8022
|
+
React.useEffect(function () {
|
|
7995
8023
|
if (!collectionSlug && data) {
|
|
7996
8024
|
var storyItems = data.items || data;
|
|
7997
8025
|
updateStoryList(storyItems);
|
|
7998
8026
|
}
|
|
7999
8027
|
}, [data, collectionSlug]);
|
|
8000
|
-
return /*#__PURE__*/
|
|
8028
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
8001
8029
|
customCollectionName: heading,
|
|
8002
8030
|
textColor: true,
|
|
8003
8031
|
collection: collectionData
|
|
8004
|
-
}), /*#__PURE__*/
|
|
8032
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8005
8033
|
className: "aside-collection-m_stories__9wfUs"
|
|
8006
8034
|
}, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
|
|
8007
8035
|
var story = item.story || item;
|
|
8008
|
-
return /*#__PURE__*/
|
|
8036
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8009
8037
|
className: "aside-collection-m_story__17Jdm",
|
|
8010
8038
|
key: story.id
|
|
8011
|
-
}, /*#__PURE__*/
|
|
8039
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
8012
8040
|
story: story,
|
|
8013
8041
|
isHorizontal: true,
|
|
8014
8042
|
theme: theme,
|
|
8015
8043
|
config: config
|
|
8016
|
-
}, /*#__PURE__*/
|
|
8044
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8017
8045
|
className: "aside-collection-m_story-hero-image__13nFY"
|
|
8018
|
-
}, /*#__PURE__*/
|
|
8046
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8019
8047
|
story: story,
|
|
8020
8048
|
aspectRatio: [[4, 3]]
|
|
8021
|
-
})), /*#__PURE__*/
|
|
8049
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8022
8050
|
story: story
|
|
8023
|
-
}), /*#__PURE__*/
|
|
8051
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
8024
8052
|
story: story
|
|
8025
|
-
}), /*#__PURE__*/
|
|
8053
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8026
8054
|
className: "aside-collection-m_story-byline__37KRG"
|
|
8027
|
-
}, /*#__PURE__*/
|
|
8055
|
+
}, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
8028
8056
|
config: opts,
|
|
8029
8057
|
story: story
|
|
8030
8058
|
})))));
|
|
8031
|
-
}) : /*#__PURE__*/
|
|
8059
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8032
8060
|
"data-test-id": "no-stories",
|
|
8033
8061
|
className: "aside-collection-m_info__3p4zt"
|
|
8034
8062
|
}, "No stories found.")));
|
|
8035
8063
|
};
|
|
8036
8064
|
StoryCollection.propTypes = {
|
|
8037
|
-
data:
|
|
8038
|
-
config:
|
|
8039
|
-
horizontal:
|
|
8040
|
-
slotData:
|
|
8041
|
-
opts:
|
|
8065
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
8066
|
+
config: PropTypes__default["default"].object,
|
|
8067
|
+
horizontal: PropTypes__default["default"].bool,
|
|
8068
|
+
slotData: PropTypes__default["default"].object,
|
|
8069
|
+
opts: PropTypes__default["default"].object
|
|
8042
8070
|
};
|
|
8043
8071
|
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
8044
8072
|
var _ref4$data = _ref4.data,
|
|
@@ -8065,14 +8093,14 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
8065
8093
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
8066
8094
|
|
|
8067
8095
|
if (horizontal) {
|
|
8068
|
-
return /*#__PURE__*/
|
|
8096
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8069
8097
|
style: {
|
|
8070
8098
|
backgroundColor: theme
|
|
8071
8099
|
},
|
|
8072
8100
|
"data-test-id": "aside-collection",
|
|
8073
8101
|
id: "aside-collection-".concat(storyId),
|
|
8074
8102
|
className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap$1)
|
|
8075
|
-
}, /*#__PURE__*/
|
|
8103
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
8076
8104
|
data: data,
|
|
8077
8105
|
horizontal: horizontal,
|
|
8078
8106
|
config: config,
|
|
@@ -8085,23 +8113,23 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
8085
8113
|
var asideSlot = function asideSlot(type, slot, index) {
|
|
8086
8114
|
switch (type) {
|
|
8087
8115
|
case "ad":
|
|
8088
|
-
return /*#__PURE__*/
|
|
8116
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8089
8117
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
8090
8118
|
}, adComponent(_objectSpread$1(_objectSpread$1({}, slot), {}, {
|
|
8091
8119
|
id: "ad-".concat(index, "_").concat(storyId)
|
|
8092
8120
|
})));
|
|
8093
8121
|
|
|
8094
8122
|
case "widget":
|
|
8095
|
-
return /*#__PURE__*/
|
|
8123
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8096
8124
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
8097
8125
|
}, widgetComp(_objectSpread$1(_objectSpread$1({}, slot), {}, {
|
|
8098
8126
|
id: "widget-".concat(index, "_").concat(storyId)
|
|
8099
8127
|
})));
|
|
8100
8128
|
|
|
8101
8129
|
case "collection":
|
|
8102
|
-
return /*#__PURE__*/
|
|
8130
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8103
8131
|
id: "aside-collection-".concat(index, "_").concat(storyId)
|
|
8104
|
-
}, /*#__PURE__*/
|
|
8132
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
8105
8133
|
slotData: slot,
|
|
8106
8134
|
data: data,
|
|
8107
8135
|
horizontal: horizontal,
|
|
@@ -8111,13 +8139,13 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
8111
8139
|
}
|
|
8112
8140
|
};
|
|
8113
8141
|
|
|
8114
|
-
return /*#__PURE__*/
|
|
8142
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8115
8143
|
style: {
|
|
8116
8144
|
backgroundColor: theme
|
|
8117
8145
|
},
|
|
8118
8146
|
"data-test-id": "aside-collection",
|
|
8119
8147
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$1)
|
|
8120
|
-
}, enableKeyEvents && /*#__PURE__*/
|
|
8148
|
+
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
8121
8149
|
story: keyEventsData.story,
|
|
8122
8150
|
showLoadMore: keyEventsData.showLoadMore,
|
|
8123
8151
|
config: keyEventsData.config
|
|
@@ -8126,21 +8154,21 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
8126
8154
|
}));
|
|
8127
8155
|
};
|
|
8128
8156
|
AsideCollectionBase.propTypes = {
|
|
8129
|
-
data:
|
|
8130
|
-
config:
|
|
8131
|
-
opts:
|
|
8132
|
-
horizontal:
|
|
8133
|
-
slots:
|
|
8134
|
-
adComponent:
|
|
8135
|
-
widgetComp:
|
|
8136
|
-
sticky:
|
|
8137
|
-
keyEventsData:
|
|
8138
|
-
story:
|
|
8139
|
-
config:
|
|
8140
|
-
showLoadMore:
|
|
8157
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
8158
|
+
config: PropTypes__default["default"].object,
|
|
8159
|
+
opts: PropTypes__default["default"].object,
|
|
8160
|
+
horizontal: PropTypes__default["default"].bool,
|
|
8161
|
+
slots: PropTypes__default["default"].array,
|
|
8162
|
+
adComponent: PropTypes__default["default"].func,
|
|
8163
|
+
widgetComp: PropTypes__default["default"].func,
|
|
8164
|
+
sticky: PropTypes__default["default"].bool,
|
|
8165
|
+
keyEventsData: PropTypes__default["default"].shape({
|
|
8166
|
+
story: PropTypes__default["default"].object,
|
|
8167
|
+
config: PropTypes__default["default"].object,
|
|
8168
|
+
showLoadMore: PropTypes__default["default"]["boolean"]
|
|
8141
8169
|
}),
|
|
8142
|
-
enableKeyEvents:
|
|
8143
|
-
storyId:
|
|
8170
|
+
enableKeyEvents: PropTypes__default["default"]["boolean"],
|
|
8171
|
+
storyId: PropTypes__default["default"].string
|
|
8144
8172
|
};
|
|
8145
8173
|
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
8146
8174
|
|
|
@@ -8204,29 +8232,29 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8204
8232
|
var isFullBleed = imageRender === "fullBleed";
|
|
8205
8233
|
var visibledCards = noOfVisibleCards < 0 ? story.cards : story.cards.slice(0, noOfVisibleCards);
|
|
8206
8234
|
var storyId = get_1(story, ["id"], "");
|
|
8207
|
-
var timezone = useSelector(function (state) {
|
|
8235
|
+
var timezone = reactRedux.useSelector(function (state) {
|
|
8208
8236
|
return get_1(state, ["qt", "data", "timezone"], null);
|
|
8209
8237
|
});
|
|
8210
8238
|
|
|
8211
8239
|
var HeaderCard = function HeaderCard() {
|
|
8212
|
-
return /*#__PURE__*/
|
|
8240
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8213
8241
|
className: "photo-m_grid-col-2-10__1QP-r photo-m_header-details__1PGwK"
|
|
8214
|
-
}, /*#__PURE__*/
|
|
8242
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8215
8243
|
story: story
|
|
8216
|
-
}), /*#__PURE__*/
|
|
8244
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryHeadline, {
|
|
8217
8245
|
story: story,
|
|
8218
8246
|
premiumStoryIconConfig: premiumStoryIconConfig
|
|
8219
|
-
}), /*#__PURE__*/
|
|
8247
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
8220
8248
|
story: story,
|
|
8221
8249
|
showFullContent: true
|
|
8222
8250
|
}));
|
|
8223
8251
|
};
|
|
8224
8252
|
|
|
8225
8253
|
var SocialShareComponent = function SocialShareComponent() {
|
|
8226
|
-
return /*#__PURE__*/
|
|
8254
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8227
8255
|
id: "story-share-".concat(storyId),
|
|
8228
8256
|
className: "content-style"
|
|
8229
|
-
}, /*#__PURE__*/
|
|
8257
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8230
8258
|
template: SocialShareTemplate,
|
|
8231
8259
|
fullUrl: encodeURI(story.url),
|
|
8232
8260
|
title: story.headline,
|
|
@@ -8238,20 +8266,20 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8238
8266
|
};
|
|
8239
8267
|
|
|
8240
8268
|
var StoryData = function StoryData() {
|
|
8241
|
-
return /*#__PURE__*/
|
|
8269
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, authorDetails && /*#__PURE__*/React__default["default"].createElement(AuthorCard, {
|
|
8242
8270
|
clazzName: "gap-32",
|
|
8243
8271
|
story: story,
|
|
8244
8272
|
template: authorDetails.template,
|
|
8245
8273
|
opts: authorDetails.opts
|
|
8246
|
-
}), /*#__PURE__*/
|
|
8274
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8247
8275
|
className: "photo-m_story-details__3buHY"
|
|
8248
|
-
}, /*#__PURE__*/
|
|
8276
|
+
}, /*#__PURE__*/React__default["default"].createElement(PublishDetails, {
|
|
8249
8277
|
story: story,
|
|
8250
8278
|
opts: publishedDetails,
|
|
8251
8279
|
template: "story",
|
|
8252
8280
|
timezone: timezone
|
|
8253
|
-
}), !verticalShare && /*#__PURE__*/
|
|
8254
|
-
return /*#__PURE__*/
|
|
8281
|
+
}), !verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null)), visibledCards.map(function (card) {
|
|
8282
|
+
return /*#__PURE__*/React__default["default"].createElement(PhotoStoryElement, {
|
|
8255
8283
|
story: story,
|
|
8256
8284
|
card: card,
|
|
8257
8285
|
key: get_1(card, ["id"], ""),
|
|
@@ -8261,11 +8289,11 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8261
8289
|
adComponent: adComponent,
|
|
8262
8290
|
widgetComp: widgetComp
|
|
8263
8291
|
});
|
|
8264
|
-
}), /*#__PURE__*/
|
|
8292
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8265
8293
|
className: "photo-m_space-32__36jfg"
|
|
8266
|
-
}, firstChild, /*#__PURE__*/
|
|
8294
|
+
}, firstChild, /*#__PURE__*/React__default["default"].createElement(StoryTags, {
|
|
8267
8295
|
tags: story.tags
|
|
8268
|
-
}), /*#__PURE__*/
|
|
8296
|
+
}), /*#__PURE__*/React__default["default"].createElement(SlotAfterStory, {
|
|
8269
8297
|
id: story.id,
|
|
8270
8298
|
element: story.customSlotAfterStory,
|
|
8271
8299
|
AdComponent: adComponent,
|
|
@@ -8288,22 +8316,22 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8288
8316
|
|
|
8289
8317
|
var DefaultTemplate = function DefaultTemplate(_ref2) {
|
|
8290
8318
|
var story = _ref2.story;
|
|
8291
|
-
return /*#__PURE__*/
|
|
8319
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8292
8320
|
"data-test-id": "hero-image",
|
|
8293
8321
|
className: _getClassName("".concat(renderImages(imageRender), " index-2"), _styleModuleImportMap)
|
|
8294
|
-
}, /*#__PURE__*/
|
|
8322
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8295
8323
|
story: story,
|
|
8296
8324
|
aspectRatio: [[16, 9], [8, 3]],
|
|
8297
8325
|
defaultFallback: false,
|
|
8298
8326
|
isStoryPageImage: true
|
|
8299
|
-
})), /*#__PURE__*/
|
|
8327
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8300
8328
|
className: "photo-m_grid-col-2-10__1QP-r photo-m_space-12__1P16k"
|
|
8301
|
-
}, /*#__PURE__*/
|
|
8329
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8302
8330
|
story: story,
|
|
8303
8331
|
config: config
|
|
8304
|
-
}), /*#__PURE__*/
|
|
8332
|
+
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8305
8333
|
className: "photo-m_grid-col-10-14__3gyc8 photo-m_space-12__1P16k"
|
|
8306
|
-
}, /*#__PURE__*/
|
|
8334
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8307
8335
|
widgetComp: widgetComp,
|
|
8308
8336
|
adComponent: adComponent,
|
|
8309
8337
|
sticky: true,
|
|
@@ -8314,22 +8342,22 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8314
8342
|
|
|
8315
8343
|
var HeroPriority = function HeroPriority(_ref3) {
|
|
8316
8344
|
var story = _ref3.story;
|
|
8317
|
-
return /*#__PURE__*/
|
|
8345
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8318
8346
|
"data-test-id": "hero-image",
|
|
8319
8347
|
className: _getClassName("".concat(renderImages(imageRender), " index-2"), _styleModuleImportMap)
|
|
8320
|
-
}, /*#__PURE__*/
|
|
8348
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8321
8349
|
story: story,
|
|
8322
8350
|
aspectRatio: [[16, 9]],
|
|
8323
8351
|
defaultFallback: false,
|
|
8324
8352
|
isStoryPageImage: true
|
|
8325
|
-
})), /*#__PURE__*/
|
|
8353
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8326
8354
|
className: "photo-m_grid-col-4-12__3ehij photo-m_space-12__1P16k"
|
|
8327
|
-
}, /*#__PURE__*/
|
|
8355
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8328
8356
|
story: story,
|
|
8329
8357
|
config: config
|
|
8330
|
-
}), /*#__PURE__*/
|
|
8358
|
+
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8331
8359
|
className: "photo-m_grid-container__2cJOz photo-m_space-12__1P16k photo-m_tablet-index-2__K4P3M"
|
|
8332
|
-
}, /*#__PURE__*/
|
|
8360
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8333
8361
|
horizontal: true
|
|
8334
8362
|
}, asideCollection, {
|
|
8335
8363
|
widgetComp: widgetComp,
|
|
@@ -8341,23 +8369,23 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8341
8369
|
|
|
8342
8370
|
var HeadlinePriority = function HeadlinePriority(_ref4) {
|
|
8343
8371
|
var story = _ref4.story;
|
|
8344
|
-
return /*#__PURE__*/
|
|
8372
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8345
8373
|
className: "photo-m_grid-container__2cJOz photo-m_side-space__1SyqF"
|
|
8346
|
-
}, /*#__PURE__*/
|
|
8374
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8347
8375
|
className: "photo-m_grid-col-2-9__14W_g photo-m_side-space__1SyqF photo-m_index-2__m7dSF"
|
|
8348
|
-
}, /*#__PURE__*/
|
|
8376
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8349
8377
|
story: story,
|
|
8350
8378
|
aspectRatio: [[16, 9]],
|
|
8351
8379
|
defaultFallback: false,
|
|
8352
8380
|
isStoryPageImage: true
|
|
8353
|
-
})), /*#__PURE__*/
|
|
8381
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8354
8382
|
className: "photo-m_grid-col-2-9__14W_g photo-m_side-space__1SyqF"
|
|
8355
|
-
}, /*#__PURE__*/
|
|
8383
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8356
8384
|
story: story,
|
|
8357
8385
|
config: config
|
|
8358
|
-
}), /*#__PURE__*/
|
|
8386
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8359
8387
|
className: "photo-m_grid-col-9-14__2_eSL"
|
|
8360
|
-
}, /*#__PURE__*/
|
|
8388
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8361
8389
|
widgetComp: widgetComp,
|
|
8362
8390
|
adComponent: adComponent,
|
|
8363
8391
|
sticky: true,
|
|
@@ -8371,50 +8399,51 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8371
8399
|
|
|
8372
8400
|
switch (templateType) {
|
|
8373
8401
|
case "hero-priority-center":
|
|
8374
|
-
return /*#__PURE__*/
|
|
8402
|
+
return /*#__PURE__*/React__default["default"].createElement(HeroPriority, {
|
|
8375
8403
|
story: story
|
|
8376
8404
|
});
|
|
8377
8405
|
|
|
8378
8406
|
case "headline-priority":
|
|
8379
|
-
return /*#__PURE__*/
|
|
8407
|
+
return /*#__PURE__*/React__default["default"].createElement(HeadlinePriority, {
|
|
8380
8408
|
story: story
|
|
8381
8409
|
});
|
|
8382
8410
|
|
|
8383
8411
|
default:
|
|
8384
|
-
return /*#__PURE__*/
|
|
8412
|
+
return /*#__PURE__*/React__default["default"].createElement(DefaultTemplate, {
|
|
8385
8413
|
story: story
|
|
8386
8414
|
});
|
|
8387
8415
|
}
|
|
8388
8416
|
};
|
|
8389
8417
|
|
|
8390
8418
|
PhotoStoryTemplate.propTypes = {
|
|
8391
|
-
templateType:
|
|
8419
|
+
templateType: PropTypes__default["default"].string
|
|
8392
8420
|
};
|
|
8393
8421
|
PhotoStoryTemplate.propTypes = {
|
|
8394
|
-
templateType:
|
|
8422
|
+
templateType: PropTypes__default["default"].string
|
|
8395
8423
|
};
|
|
8396
|
-
return /*#__PURE__*/
|
|
8424
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8397
8425
|
"data-test-id": "photo-story-".concat(templateType, "-").concat(kebabCase_1(imageRender)),
|
|
8398
8426
|
style: {
|
|
8399
8427
|
backgroundColor: theme
|
|
8400
8428
|
},
|
|
8401
8429
|
className: ("arrow-component arr-story-grid arr--content-wrapper arr--photo-story-template-wrapper ".concat(templateType, " ") ? "arrow-component arr-story-grid arr--content-wrapper arr--photo-story-template-wrapper ".concat(templateType, " ") + " " : "") + _getClassName("".concat(verticalShare, " ").concat(isFullBleed ? "fullBleed" : ""), _styleModuleImportMap)
|
|
8402
|
-
}, /*#__PURE__*/
|
|
8430
|
+
}, /*#__PURE__*/React__default["default"].createElement(PhotoStoryTemplate, {
|
|
8403
8431
|
templateType: templateType
|
|
8404
8432
|
}));
|
|
8405
8433
|
};
|
|
8406
8434
|
PhotoStoryBase.propTypes = {
|
|
8407
|
-
story:
|
|
8408
|
-
config:
|
|
8409
|
-
templateType:
|
|
8410
|
-
asideCollection:
|
|
8435
|
+
story: PropTypes__default["default"].object,
|
|
8436
|
+
config: PropTypes__default["default"].shape({
|
|
8437
|
+
templateType: PropTypes__default["default"].string,
|
|
8438
|
+
asideCollection: PropTypes__default["default"].object
|
|
8411
8439
|
}),
|
|
8412
|
-
firstChild:
|
|
8413
|
-
secondChild:
|
|
8414
|
-
storyElementsConfig:
|
|
8415
|
-
adComponent:
|
|
8416
|
-
widgetComp:
|
|
8440
|
+
firstChild: PropTypes__default["default"].node,
|
|
8441
|
+
secondChild: PropTypes__default["default"].node,
|
|
8442
|
+
storyElementsConfig: PropTypes__default["default"].object,
|
|
8443
|
+
adComponent: PropTypes__default["default"].func,
|
|
8444
|
+
widgetComp: PropTypes__default["default"].func
|
|
8417
8445
|
};
|
|
8418
8446
|
var PhotoStoryTemplate = StateProvider(PhotoStoryBase);
|
|
8419
8447
|
|
|
8420
|
-
|
|
8448
|
+
exports.PhotoStoryBase = PhotoStoryBase;
|
|
8449
|
+
exports.PhotoStoryTemplate = PhotoStoryTemplate;
|