@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 PropTypes = require('prop-types');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var reactRedux = require('react-redux');
|
|
8
|
+
var Timeago = require('react-timeago');
|
|
9
|
+
var dateFnsTz = require('date-fns-tz');
|
|
10
|
+
var components = require('@quintype/components');
|
|
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
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
37
|
|
|
@@ -770,21 +798,21 @@ var kebabCase = _createCompounder(function(result, word, index) {
|
|
|
770
798
|
|
|
771
799
|
var kebabCase_1 = kebabCase;
|
|
772
800
|
|
|
773
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
801
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
774
802
|
|
|
775
803
|
var StateProvider = function StateProvider(RowComponent) {
|
|
776
804
|
return function (props) {
|
|
777
805
|
return (
|
|
778
806
|
/*#__PURE__*/
|
|
779
807
|
// eslint-disable-next-line react/prop-types
|
|
780
|
-
|
|
808
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
781
809
|
value: props.config
|
|
782
|
-
}, /*#__PURE__*/
|
|
810
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
783
811
|
);
|
|
784
812
|
};
|
|
785
813
|
};
|
|
786
814
|
var useStateValue = function useStateValue() {
|
|
787
|
-
return useContext(StateContext);
|
|
815
|
+
return React.useContext(StateContext);
|
|
788
816
|
};
|
|
789
817
|
|
|
790
818
|
function _extends() {
|
|
@@ -1779,105 +1807,105 @@ function _slicedToArray(arr, i) {
|
|
|
1779
1807
|
var Twitter = function Twitter(_ref) {
|
|
1780
1808
|
var _ref$color = _ref.color,
|
|
1781
1809
|
color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
|
|
1782
|
-
return /*#__PURE__*/
|
|
1810
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1783
1811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1784
1812
|
width: "24",
|
|
1785
1813
|
height: "24",
|
|
1786
1814
|
viewBox: "0 0 24 24"
|
|
1787
|
-
}, /*#__PURE__*/
|
|
1815
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1788
1816
|
fill: color,
|
|
1789
1817
|
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"
|
|
1790
1818
|
}));
|
|
1791
1819
|
};
|
|
1792
1820
|
Twitter.propTypes = {
|
|
1793
|
-
color:
|
|
1821
|
+
color: PropTypes__default["default"].string
|
|
1794
1822
|
};
|
|
1795
1823
|
|
|
1796
1824
|
var Facebook = function Facebook(_ref) {
|
|
1797
1825
|
var _ref$color = _ref.color,
|
|
1798
1826
|
color = _ref$color === void 0 ? "#3B5998" : _ref$color;
|
|
1799
|
-
return /*#__PURE__*/
|
|
1827
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1800
1828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1801
1829
|
width: "24",
|
|
1802
1830
|
height: "24",
|
|
1803
1831
|
viewBox: "0 0 24 24"
|
|
1804
|
-
}, /*#__PURE__*/
|
|
1832
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1805
1833
|
fill: color,
|
|
1806
1834
|
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"
|
|
1807
1835
|
}));
|
|
1808
1836
|
};
|
|
1809
1837
|
Facebook.propTypes = {
|
|
1810
|
-
color:
|
|
1838
|
+
color: PropTypes__default["default"].string
|
|
1811
1839
|
};
|
|
1812
1840
|
|
|
1813
1841
|
var LinkedIn = function LinkedIn(_ref) {
|
|
1814
1842
|
var _ref$color = _ref.color,
|
|
1815
1843
|
color = _ref$color === void 0 ? "#0077B5" : _ref$color;
|
|
1816
|
-
return /*#__PURE__*/
|
|
1844
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1817
1845
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1818
1846
|
width: "24",
|
|
1819
1847
|
height: "24",
|
|
1820
1848
|
viewBox: "0 0 24 24"
|
|
1821
|
-
}, /*#__PURE__*/
|
|
1849
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1822
1850
|
fill: color,
|
|
1823
1851
|
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"
|
|
1824
1852
|
}));
|
|
1825
1853
|
};
|
|
1826
1854
|
LinkedIn.propTypes = {
|
|
1827
|
-
color:
|
|
1855
|
+
color: PropTypes__default["default"].string
|
|
1828
1856
|
};
|
|
1829
1857
|
|
|
1830
1858
|
var WhatsApp = function WhatsApp(_ref) {
|
|
1831
1859
|
var _ref$color = _ref.color,
|
|
1832
1860
|
color = _ref$color === void 0 ? "#4AC959" : _ref$color;
|
|
1833
|
-
return /*#__PURE__*/
|
|
1861
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1834
1862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1835
1863
|
width: "24",
|
|
1836
1864
|
height: "24",
|
|
1837
1865
|
viewBox: "0 0 24 24"
|
|
1838
|
-
}, /*#__PURE__*/
|
|
1866
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1839
1867
|
fill: color,
|
|
1840
1868
|
fillRule: "evenodd",
|
|
1841
1869
|
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"
|
|
1842
1870
|
}));
|
|
1843
1871
|
};
|
|
1844
1872
|
WhatsApp.propTypes = {
|
|
1845
|
-
color:
|
|
1873
|
+
color: PropTypes__default["default"].string
|
|
1846
1874
|
};
|
|
1847
1875
|
|
|
1848
1876
|
var getSocialIcons = function getSocialIcons(color, iconType) {
|
|
1849
1877
|
switch (iconType) {
|
|
1850
1878
|
case "plain-color-svg":
|
|
1851
1879
|
return {
|
|
1852
|
-
facebook: /*#__PURE__*/
|
|
1880
|
+
facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
|
|
1853
1881
|
key: iconType
|
|
1854
1882
|
}),
|
|
1855
|
-
twitter: /*#__PURE__*/
|
|
1883
|
+
twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
|
|
1856
1884
|
key: iconType
|
|
1857
1885
|
}),
|
|
1858
|
-
linkedin: /*#__PURE__*/
|
|
1886
|
+
linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
|
|
1859
1887
|
key: iconType
|
|
1860
1888
|
}),
|
|
1861
|
-
whatsapp: /*#__PURE__*/
|
|
1889
|
+
whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
|
|
1862
1890
|
key: iconType
|
|
1863
1891
|
})
|
|
1864
1892
|
};
|
|
1865
1893
|
|
|
1866
1894
|
default:
|
|
1867
1895
|
return {
|
|
1868
|
-
facebook: /*#__PURE__*/
|
|
1896
|
+
facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
|
|
1869
1897
|
color: color,
|
|
1870
1898
|
key: iconType
|
|
1871
1899
|
}),
|
|
1872
|
-
twitter: /*#__PURE__*/
|
|
1900
|
+
twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
|
|
1873
1901
|
color: color,
|
|
1874
1902
|
key: iconType
|
|
1875
1903
|
}),
|
|
1876
|
-
linkedin: /*#__PURE__*/
|
|
1904
|
+
linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
|
|
1877
1905
|
color: color,
|
|
1878
1906
|
key: iconType
|
|
1879
1907
|
}),
|
|
1880
|
-
whatsapp: /*#__PURE__*/
|
|
1908
|
+
whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
|
|
1881
1909
|
color: color,
|
|
1882
1910
|
key: iconType
|
|
1883
1911
|
})
|
|
@@ -1933,22 +1961,22 @@ var socialShareData = function socialShareData(_ref) {
|
|
|
1933
1961
|
var CloseIcon = function CloseIcon(_ref) {
|
|
1934
1962
|
var _ref$color = _ref.color,
|
|
1935
1963
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
1936
|
-
return /*#__PURE__*/
|
|
1964
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1937
1965
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1938
1966
|
width: "24",
|
|
1939
1967
|
height: "24",
|
|
1940
1968
|
viewBox: "0 0 24 24"
|
|
1941
|
-
}, /*#__PURE__*/
|
|
1969
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
1942
1970
|
fill: "none",
|
|
1943
1971
|
stroke: color,
|
|
1944
1972
|
strokeLinecap: "square",
|
|
1945
1973
|
strokeWidth: "2"
|
|
1946
|
-
}, /*#__PURE__*/
|
|
1974
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1947
1975
|
d: "M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"
|
|
1948
1976
|
})));
|
|
1949
1977
|
};
|
|
1950
1978
|
CloseIcon.propTypes = {
|
|
1951
|
-
color:
|
|
1979
|
+
color: PropTypes__default["default"].string
|
|
1952
1980
|
};
|
|
1953
1981
|
|
|
1954
1982
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -3007,15 +3035,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
3007
3035
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
3008
3036
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
3009
3037
|
};
|
|
3010
|
-
var shapeConfig =
|
|
3011
|
-
"sketches-host":
|
|
3012
|
-
"cdn-name":
|
|
3013
|
-
"cdn-image":
|
|
3038
|
+
var shapeConfig = PropTypes__default["default"].shape({
|
|
3039
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
3040
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
3041
|
+
"cdn-image": PropTypes__default["default"].string
|
|
3014
3042
|
});
|
|
3015
|
-
var shapeStory =
|
|
3016
|
-
headline:
|
|
3017
|
-
"last-published-at":
|
|
3018
|
-
subheadline:
|
|
3043
|
+
var shapeStory = PropTypes__default["default"].shape({
|
|
3044
|
+
headline: PropTypes__default["default"].string,
|
|
3045
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
3046
|
+
subheadline: PropTypes__default["default"].string
|
|
3019
3047
|
});
|
|
3020
3048
|
var getStoryUrl = function getStoryUrl(story) {
|
|
3021
3049
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -3108,17 +3136,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
3108
3136
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
3109
3137
|
|
|
3110
3138
|
if (timezone && template === "story") {
|
|
3111
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
3112
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
3139
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
3140
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
3113
3141
|
timeZone: timezone
|
|
3114
3142
|
});
|
|
3115
3143
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
3116
|
-
return /*#__PURE__*/
|
|
3144
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
3117
3145
|
dateTime: formatZonedTime
|
|
3118
3146
|
}, timeStamp);
|
|
3119
3147
|
}
|
|
3120
3148
|
|
|
3121
|
-
return /*#__PURE__*/
|
|
3149
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
3122
3150
|
date: date,
|
|
3123
3151
|
formatter: function formatter(value, unit, suffix, date) {
|
|
3124
3152
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -3144,17 +3172,17 @@ var _styleModuleImportMap$A = {
|
|
|
3144
3172
|
};
|
|
3145
3173
|
|
|
3146
3174
|
var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
|
|
3147
|
-
return url ? /*#__PURE__*/
|
|
3175
|
+
return url ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3148
3176
|
className: "social-share-popup-m_social-icon-wrapper__36jyV",
|
|
3149
3177
|
"data-testid": text,
|
|
3150
3178
|
key: "popup-item-".concat(index)
|
|
3151
|
-
}, /*#__PURE__*/
|
|
3179
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3152
3180
|
href: url,
|
|
3153
3181
|
target: "_blank",
|
|
3154
3182
|
rel: "noopener noreferrer",
|
|
3155
3183
|
className: "social-share-popup-m_social-wrapper__1lPzr",
|
|
3156
3184
|
"aria-label": "social-icon"
|
|
3157
|
-
}, icon, /*#__PURE__*/
|
|
3185
|
+
}, icon, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3158
3186
|
className: "social-share-popup-m_social-text__1QPXb"
|
|
3159
3187
|
}, text))) : null;
|
|
3160
3188
|
};
|
|
@@ -3184,20 +3212,20 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3184
3212
|
iconType: iconType
|
|
3185
3213
|
};
|
|
3186
3214
|
var popupItemsList = socialShareData(options);
|
|
3187
|
-
return /*#__PURE__*/
|
|
3215
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3188
3216
|
className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$A)
|
|
3189
|
-
}, /*#__PURE__*/
|
|
3217
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3190
3218
|
className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
|
|
3191
|
-
}, /*#__PURE__*/
|
|
3219
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3192
3220
|
className: "social-share-popup-m_top-bar__174Um"
|
|
3193
|
-
}, /*#__PURE__*/
|
|
3221
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3194
3222
|
className: "social-share-popup-m_share-text__19E-F"
|
|
3195
|
-
}, "Share via"), /*#__PURE__*/
|
|
3223
|
+
}, "Share via"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3196
3224
|
className: "social-share-popup-m_close__3k-Hj",
|
|
3197
3225
|
onClick: closePopup
|
|
3198
|
-
}, /*#__PURE__*/
|
|
3226
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
|
|
3199
3227
|
color: iconColor
|
|
3200
|
-
}))), /*#__PURE__*/
|
|
3228
|
+
}))), /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3201
3229
|
className: "social-share-popup-m_wrapper__3Ytce"
|
|
3202
3230
|
}, popupItemsList.map(function (_ref2, index) {
|
|
3203
3231
|
var url = _ref2.url,
|
|
@@ -3209,33 +3237,33 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3209
3237
|
}))));
|
|
3210
3238
|
};
|
|
3211
3239
|
SocialSharePopup.propTypes = {
|
|
3212
|
-
fbUrl:
|
|
3213
|
-
twitterUrl:
|
|
3214
|
-
linkedinUrl:
|
|
3215
|
-
whatsappUrl:
|
|
3216
|
-
grey:
|
|
3217
|
-
primaryColor:
|
|
3218
|
-
closePopup:
|
|
3219
|
-
theme:
|
|
3220
|
-
iconType:
|
|
3240
|
+
fbUrl: PropTypes__default["default"].string,
|
|
3241
|
+
twitterUrl: PropTypes__default["default"].string,
|
|
3242
|
+
linkedinUrl: PropTypes__default["default"].string,
|
|
3243
|
+
whatsappUrl: PropTypes__default["default"].string,
|
|
3244
|
+
grey: PropTypes__default["default"].string,
|
|
3245
|
+
primaryColor: PropTypes__default["default"].string,
|
|
3246
|
+
closePopup: PropTypes__default["default"].bool,
|
|
3247
|
+
theme: PropTypes__default["default"].string,
|
|
3248
|
+
iconType: PropTypes__default["default"].string
|
|
3221
3249
|
};
|
|
3222
3250
|
|
|
3223
3251
|
var ShareIcon = function ShareIcon(_ref) {
|
|
3224
3252
|
var _ref$color = _ref.color,
|
|
3225
3253
|
color = _ref$color === void 0 ? "#0D0D0D" : _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
|
fillRule: "evenodd",
|
|
3234
3262
|
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"
|
|
3235
3263
|
}));
|
|
3236
3264
|
};
|
|
3237
3265
|
ShareIcon.propTypes = {
|
|
3238
|
-
color:
|
|
3266
|
+
color: PropTypes__default["default"].string
|
|
3239
3267
|
};
|
|
3240
3268
|
|
|
3241
3269
|
/**
|
|
@@ -3504,10 +3532,10 @@ var ShareItem = function ShareItem(_ref) {
|
|
|
3504
3532
|
url = _ref.url,
|
|
3505
3533
|
icon = _ref.icon,
|
|
3506
3534
|
dataTestId = _ref.dataTestId;
|
|
3507
|
-
return url ? /*#__PURE__*/
|
|
3535
|
+
return url ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3508
3536
|
"data-testid": dataTestId,
|
|
3509
3537
|
className: "social-share-template-m_icon__1Mnu5"
|
|
3510
|
-
}, /*#__PURE__*/
|
|
3538
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3511
3539
|
href: url,
|
|
3512
3540
|
target: "_blank",
|
|
3513
3541
|
rel: "noopener noreferrer",
|
|
@@ -3517,17 +3545,17 @@ var ShareItem = function ShareItem(_ref) {
|
|
|
3517
3545
|
};
|
|
3518
3546
|
|
|
3519
3547
|
ShareItem.propTypes = {
|
|
3520
|
-
name:
|
|
3521
|
-
url:
|
|
3522
|
-
icon:
|
|
3523
|
-
dataTestId:
|
|
3548
|
+
name: PropTypes__default["default"].string,
|
|
3549
|
+
url: PropTypes__default["default"].string,
|
|
3550
|
+
icon: PropTypes__default["default"].node,
|
|
3551
|
+
dataTestId: PropTypes__default["default"].string
|
|
3524
3552
|
};
|
|
3525
3553
|
|
|
3526
3554
|
function getActionIcon(open, color) {
|
|
3527
|
-
if (!open) return /*#__PURE__*/
|
|
3555
|
+
if (!open) return /*#__PURE__*/React__default["default"].createElement(ShareIcon, {
|
|
3528
3556
|
color: color
|
|
3529
3557
|
});
|
|
3530
|
-
return /*#__PURE__*/
|
|
3558
|
+
return /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
|
|
3531
3559
|
color: color
|
|
3532
3560
|
});
|
|
3533
3561
|
}
|
|
@@ -3561,21 +3589,21 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3561
3589
|
};
|
|
3562
3590
|
var iconsList = socialShareData(options);
|
|
3563
3591
|
|
|
3564
|
-
var _useState = useState(open),
|
|
3592
|
+
var _useState = React.useState(open),
|
|
3565
3593
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3566
3594
|
isOpen = _useState2[0],
|
|
3567
3595
|
setIsOpen = _useState2[1];
|
|
3568
3596
|
|
|
3569
3597
|
var verticalShare = vertical ? "vertical" : "horizontal";
|
|
3570
|
-
useEffect(function () {
|
|
3598
|
+
React.useEffect(function () {
|
|
3571
3599
|
return setIsOpen(open);
|
|
3572
3600
|
}, [open]);
|
|
3573
3601
|
|
|
3574
3602
|
var shareIcon = function shareIcon() {
|
|
3575
|
-
return /*#__PURE__*/
|
|
3603
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3576
3604
|
className: "social-share-template-m_icon__1Mnu5",
|
|
3577
3605
|
key: "horizontal-0"
|
|
3578
|
-
}, /*#__PURE__*/
|
|
3606
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3579
3607
|
onClick: clickHandler
|
|
3580
3608
|
}, getActionIcon(isOpen, iconColor)));
|
|
3581
3609
|
};
|
|
@@ -3585,16 +3613,16 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3585
3613
|
};
|
|
3586
3614
|
|
|
3587
3615
|
var popUpWrapper = function popUpWrapper() {
|
|
3588
|
-
return /*#__PURE__*/
|
|
3616
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3589
3617
|
className: "social-share-template-m_tablet-view__kATzi"
|
|
3590
|
-
}, !isOpen && /*#__PURE__*/
|
|
3618
|
+
}, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3591
3619
|
className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$z)
|
|
3592
|
-
}, shareIcon()), isOpen && /*#__PURE__*/
|
|
3620
|
+
}, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3593
3621
|
className: "social-share-template-m_overlay__1nBp-",
|
|
3594
3622
|
onClick: clickHandler
|
|
3595
|
-
}, /*#__PURE__*/
|
|
3623
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3596
3624
|
className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$z)
|
|
3597
|
-
}, /*#__PURE__*/
|
|
3625
|
+
}, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
|
|
3598
3626
|
fbUrl: fbUrl,
|
|
3599
3627
|
twitterUrl: twitterUrl,
|
|
3600
3628
|
linkedinUrl: linkedinUrl,
|
|
@@ -3608,30 +3636,30 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3608
3636
|
};
|
|
3609
3637
|
|
|
3610
3638
|
var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
|
|
3611
|
-
return /*#__PURE__*/
|
|
3639
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3612
3640
|
"data-test-id": verticalShare,
|
|
3613
3641
|
className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$z)
|
|
3614
|
-
}, /*#__PURE__*/
|
|
3642
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3615
3643
|
className: "social-share-template-m_desktop-view__3TmkO"
|
|
3616
|
-
}, /*#__PURE__*/
|
|
3644
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3617
3645
|
"data-test-id": camelCase_1(iconType),
|
|
3618
3646
|
className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$z)
|
|
3619
3647
|
}, shareIcon(), iconsList.map(function (iconData, index) {
|
|
3620
|
-
return /*#__PURE__*/
|
|
3648
|
+
return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
|
|
3621
3649
|
key: iconData.name,
|
|
3622
3650
|
dataTestId: "card-share-".concat(index)
|
|
3623
3651
|
}));
|
|
3624
3652
|
}))), popUpWrapper());
|
|
3625
3653
|
};
|
|
3626
3654
|
SocialShareTemplate.propTypes = {
|
|
3627
|
-
fbUrl:
|
|
3628
|
-
twitterUrl:
|
|
3629
|
-
linkedinUrl:
|
|
3630
|
-
whatsappUrl:
|
|
3631
|
-
vertical:
|
|
3632
|
-
theme:
|
|
3633
|
-
iconType:
|
|
3634
|
-
open:
|
|
3655
|
+
fbUrl: PropTypes__default["default"].string,
|
|
3656
|
+
twitterUrl: PropTypes__default["default"].string,
|
|
3657
|
+
linkedinUrl: PropTypes__default["default"].string,
|
|
3658
|
+
whatsappUrl: PropTypes__default["default"].string,
|
|
3659
|
+
vertical: PropTypes__default["default"].bool,
|
|
3660
|
+
theme: PropTypes__default["default"].string,
|
|
3661
|
+
iconType: PropTypes__default["default"].string,
|
|
3662
|
+
open: PropTypes__default["default"]["boolean"]
|
|
3635
3663
|
};
|
|
3636
3664
|
|
|
3637
3665
|
var _styleModuleImportMap$y = {
|
|
@@ -3669,22 +3697,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3669
3697
|
}
|
|
3670
3698
|
|
|
3671
3699
|
if (!isSection) return null;
|
|
3672
|
-
return /*#__PURE__*/
|
|
3700
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3673
3701
|
href: getUrl,
|
|
3674
3702
|
className: "arrow-component arr--section-name",
|
|
3675
3703
|
"aria-label": "section-name"
|
|
3676
|
-
}, /*#__PURE__*/
|
|
3704
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3677
3705
|
"data-test-id": "sectionTag",
|
|
3678
3706
|
style: {
|
|
3679
3707
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3680
3708
|
},
|
|
3681
3709
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$y)
|
|
3682
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3710
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3683
3711
|
className: "section-m_border-left__2oUyp",
|
|
3684
3712
|
style: {
|
|
3685
3713
|
color: sectionTagBorderColor
|
|
3686
3714
|
}
|
|
3687
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3715
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3688
3716
|
className: "section-m_border-bottom__3cRoD",
|
|
3689
3717
|
style: {
|
|
3690
3718
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3693,13 +3721,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3693
3721
|
};
|
|
3694
3722
|
SectionTag.propTypes = {
|
|
3695
3723
|
/** The Story Object from the API response */
|
|
3696
|
-
story:
|
|
3724
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3697
3725
|
|
|
3698
3726
|
/** The style template for section tag */
|
|
3699
|
-
template:
|
|
3700
|
-
borderColor:
|
|
3701
|
-
solidBorderColor:
|
|
3702
|
-
isLightTheme:
|
|
3727
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3728
|
+
borderColor: PropTypes__default["default"].string,
|
|
3729
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3730
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3703
3731
|
};
|
|
3704
3732
|
SectionTag.defaultProps = {
|
|
3705
3733
|
template: "",
|
|
@@ -3712,7 +3740,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3712
3740
|
_ref$color = _ref.color,
|
|
3713
3741
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
3714
3742
|
positionTop = _ref.positionTop;
|
|
3715
|
-
return /*#__PURE__*/
|
|
3743
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3716
3744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3717
3745
|
width: width,
|
|
3718
3746
|
height: height,
|
|
@@ -3721,28 +3749,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3721
3749
|
position: "relative",
|
|
3722
3750
|
top: positionTop
|
|
3723
3751
|
}
|
|
3724
|
-
}, /*#__PURE__*/
|
|
3752
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3725
3753
|
fill: "none",
|
|
3726
3754
|
fillRule: "evenodd",
|
|
3727
3755
|
stroke: "none",
|
|
3728
3756
|
strokeWidth: "1"
|
|
3729
|
-
}, /*#__PURE__*/
|
|
3757
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3730
3758
|
transform: "translate(8 8)"
|
|
3731
|
-
}, /*#__PURE__*/
|
|
3759
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3732
3760
|
d: "M0 0H24V24H0z"
|
|
3733
|
-
}), /*#__PURE__*/
|
|
3761
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3734
3762
|
fill: color,
|
|
3735
3763
|
fillRule: "nonzero",
|
|
3736
3764
|
transform: "translate(0 2)"
|
|
3737
|
-
}, /*#__PURE__*/
|
|
3765
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3738
3766
|
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"
|
|
3739
3767
|
}))))));
|
|
3740
3768
|
};
|
|
3741
3769
|
CrownIcon.propTypes = {
|
|
3742
|
-
height:
|
|
3743
|
-
width:
|
|
3744
|
-
color:
|
|
3745
|
-
positionTop:
|
|
3770
|
+
height: PropTypes__default["default"].string,
|
|
3771
|
+
width: PropTypes__default["default"].string,
|
|
3772
|
+
color: PropTypes__default["default"].string,
|
|
3773
|
+
positionTop: PropTypes__default["default"].string
|
|
3746
3774
|
};
|
|
3747
3775
|
|
|
3748
3776
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -3751,7 +3779,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3751
3779
|
_ref$color = _ref.color,
|
|
3752
3780
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3753
3781
|
positionTop = _ref.positionTop;
|
|
3754
|
-
return /*#__PURE__*/
|
|
3782
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3755
3783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3756
3784
|
width: width,
|
|
3757
3785
|
height: height,
|
|
@@ -3760,16 +3788,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3760
3788
|
position: "relative",
|
|
3761
3789
|
top: positionTop
|
|
3762
3790
|
}
|
|
3763
|
-
}, /*#__PURE__*/
|
|
3791
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3764
3792
|
fill: "none",
|
|
3765
3793
|
fillRule: "evenodd",
|
|
3766
3794
|
stroke: "none",
|
|
3767
3795
|
strokeWidth: "1"
|
|
3768
|
-
}, /*#__PURE__*/
|
|
3796
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3769
3797
|
transform: "translate(8 8)"
|
|
3770
|
-
}, /*#__PURE__*/
|
|
3798
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3771
3799
|
d: "M0 0H24V24H0z"
|
|
3772
|
-
}), /*#__PURE__*/
|
|
3800
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3773
3801
|
fill: color,
|
|
3774
3802
|
fillRule: "nonzero",
|
|
3775
3803
|
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",
|
|
@@ -3777,10 +3805,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3777
3805
|
})))));
|
|
3778
3806
|
};
|
|
3779
3807
|
KeyIcon.propTypes = {
|
|
3780
|
-
height:
|
|
3781
|
-
width:
|
|
3782
|
-
color:
|
|
3783
|
-
positionTop:
|
|
3808
|
+
height: PropTypes__default["default"].string,
|
|
3809
|
+
width: PropTypes__default["default"].string,
|
|
3810
|
+
color: PropTypes__default["default"].string,
|
|
3811
|
+
positionTop: PropTypes__default["default"].string
|
|
3784
3812
|
};
|
|
3785
3813
|
|
|
3786
3814
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -3789,7 +3817,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3789
3817
|
_ref$color = _ref.color,
|
|
3790
3818
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3791
3819
|
positionTop = _ref.positionTop;
|
|
3792
|
-
return /*#__PURE__*/
|
|
3820
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3793
3821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3794
3822
|
width: width,
|
|
3795
3823
|
height: height,
|
|
@@ -3798,28 +3826,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3798
3826
|
position: "relative",
|
|
3799
3827
|
top: positionTop
|
|
3800
3828
|
}
|
|
3801
|
-
}, /*#__PURE__*/
|
|
3829
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3802
3830
|
fill: "none",
|
|
3803
3831
|
fillRule: "evenodd",
|
|
3804
3832
|
stroke: "none",
|
|
3805
3833
|
strokeWidth: "1"
|
|
3806
|
-
}, /*#__PURE__*/
|
|
3834
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3807
3835
|
transform: "translate(8 8)"
|
|
3808
|
-
}, /*#__PURE__*/
|
|
3836
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3809
3837
|
d: "M0 0H24V24H0z"
|
|
3810
|
-
}), /*#__PURE__*/
|
|
3838
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3811
3839
|
fill: color,
|
|
3812
3840
|
fillRule: "nonzero",
|
|
3813
3841
|
transform: "translate(3)"
|
|
3814
|
-
}, /*#__PURE__*/
|
|
3842
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3815
3843
|
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"
|
|
3816
3844
|
}))))));
|
|
3817
3845
|
};
|
|
3818
3846
|
LockIcon.propTypes = {
|
|
3819
|
-
height:
|
|
3820
|
-
width:
|
|
3821
|
-
color:
|
|
3822
|
-
positionTop:
|
|
3847
|
+
height: PropTypes__default["default"].string,
|
|
3848
|
+
width: PropTypes__default["default"].string,
|
|
3849
|
+
color: PropTypes__default["default"].string,
|
|
3850
|
+
positionTop: PropTypes__default["default"].string
|
|
3823
3851
|
};
|
|
3824
3852
|
|
|
3825
3853
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -3829,7 +3857,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3829
3857
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3830
3858
|
_ref$positionTop = _ref.positionTop,
|
|
3831
3859
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
3832
|
-
return /*#__PURE__*/
|
|
3860
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3833
3861
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3834
3862
|
width: width,
|
|
3835
3863
|
height: height,
|
|
@@ -3838,21 +3866,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3838
3866
|
position: "relative",
|
|
3839
3867
|
top: positionTop
|
|
3840
3868
|
}
|
|
3841
|
-
}, /*#__PURE__*/
|
|
3869
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3842
3870
|
fill: "none",
|
|
3843
3871
|
fillRule: "evenodd",
|
|
3844
3872
|
stroke: "none",
|
|
3845
3873
|
strokeWidth: "1"
|
|
3846
|
-
}, /*#__PURE__*/
|
|
3874
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3847
3875
|
fill: color,
|
|
3848
3876
|
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"
|
|
3849
3877
|
}))));
|
|
3850
3878
|
};
|
|
3851
3879
|
StarIcon.propTypes = {
|
|
3852
|
-
height:
|
|
3853
|
-
width:
|
|
3854
|
-
color:
|
|
3855
|
-
positionTop:
|
|
3880
|
+
height: PropTypes__default["default"].string,
|
|
3881
|
+
width: PropTypes__default["default"].string,
|
|
3882
|
+
color: PropTypes__default["default"].string,
|
|
3883
|
+
positionTop: PropTypes__default["default"].string
|
|
3856
3884
|
};
|
|
3857
3885
|
|
|
3858
3886
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -3864,7 +3892,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3864
3892
|
|
|
3865
3893
|
switch (iconType) {
|
|
3866
3894
|
case "crown":
|
|
3867
|
-
return /*#__PURE__*/
|
|
3895
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
3868
3896
|
width: width,
|
|
3869
3897
|
height: height,
|
|
3870
3898
|
color: color,
|
|
@@ -3872,7 +3900,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3872
3900
|
});
|
|
3873
3901
|
|
|
3874
3902
|
case "lock":
|
|
3875
|
-
return /*#__PURE__*/
|
|
3903
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
3876
3904
|
width: width,
|
|
3877
3905
|
height: height,
|
|
3878
3906
|
color: color,
|
|
@@ -3880,7 +3908,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3880
3908
|
});
|
|
3881
3909
|
|
|
3882
3910
|
case "key":
|
|
3883
|
-
return /*#__PURE__*/
|
|
3911
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
3884
3912
|
width: width,
|
|
3885
3913
|
height: height,
|
|
3886
3914
|
color: color,
|
|
@@ -3888,7 +3916,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3888
3916
|
});
|
|
3889
3917
|
|
|
3890
3918
|
default:
|
|
3891
|
-
return /*#__PURE__*/
|
|
3919
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
3892
3920
|
width: width,
|
|
3893
3921
|
height: height,
|
|
3894
3922
|
color: color,
|
|
@@ -3897,11 +3925,11 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3897
3925
|
}
|
|
3898
3926
|
};
|
|
3899
3927
|
PremiumStoryIcon.propTypes = {
|
|
3900
|
-
width:
|
|
3901
|
-
height:
|
|
3902
|
-
color:
|
|
3903
|
-
iconType:
|
|
3904
|
-
positionTop:
|
|
3928
|
+
width: PropTypes__default["default"].string,
|
|
3929
|
+
height: PropTypes__default["default"].string,
|
|
3930
|
+
color: PropTypes__default["default"].string,
|
|
3931
|
+
iconType: PropTypes__default["default"].string,
|
|
3932
|
+
positionTop: PropTypes__default["default"].string
|
|
3905
3933
|
};
|
|
3906
3934
|
|
|
3907
3935
|
var _styleModuleImportMap$x = {
|
|
@@ -3928,29 +3956,29 @@ var StoryHeadline = function StoryHeadline(_ref) {
|
|
|
3928
3956
|
var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
|
|
3929
3957
|
var wrapperClass = premiumStory ? "premium-wrapper" : "wrapper";
|
|
3930
3958
|
var iconSize = "40px";
|
|
3931
|
-
return /*#__PURE__*/
|
|
3959
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3932
3960
|
className: "arrow-component arr--story-headline " + _getClassName(wrapperClass, _styleModuleImportMap$x)
|
|
3933
|
-
}, premiumStory && /*#__PURE__*/
|
|
3961
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3934
3962
|
width: iconSize,
|
|
3935
3963
|
height: iconSize,
|
|
3936
3964
|
color: iconColor,
|
|
3937
3965
|
iconType: iconStyle,
|
|
3938
3966
|
positionTop: "6px"
|
|
3939
|
-
}), /*#__PURE__*/
|
|
3967
|
+
}), /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
3940
3968
|
"data-testid": "story-headline",
|
|
3941
3969
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$x)
|
|
3942
|
-
}, /*#__PURE__*/
|
|
3970
|
+
}, /*#__PURE__*/React__default["default"].createElement("bdi", {
|
|
3943
3971
|
dangerouslySetInnerHTML: {
|
|
3944
3972
|
__html: story.headline
|
|
3945
3973
|
}
|
|
3946
3974
|
})));
|
|
3947
3975
|
};
|
|
3948
3976
|
StoryHeadline.propTypes = {
|
|
3949
|
-
story:
|
|
3950
|
-
premiumStoryIconConfig:
|
|
3951
|
-
iconColor:
|
|
3952
|
-
iconType:
|
|
3953
|
-
enablePremiumStoryIcon:
|
|
3977
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3978
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3979
|
+
iconColor: PropTypes__default["default"].string,
|
|
3980
|
+
iconType: PropTypes__default["default"].string,
|
|
3981
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3954
3982
|
})
|
|
3955
3983
|
};
|
|
3956
3984
|
|
|
@@ -3974,7 +4002,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3974
4002
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3975
4003
|
if (!subheadline) return null;
|
|
3976
4004
|
var textColor = getTextColor(config.theme);
|
|
3977
|
-
return /*#__PURE__*/
|
|
4005
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3978
4006
|
style: {
|
|
3979
4007
|
WebkitLineClamp: lineClamp
|
|
3980
4008
|
},
|
|
@@ -3984,15 +4012,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3984
4012
|
};
|
|
3985
4013
|
Subheadline.propTypes = {
|
|
3986
4014
|
/** The Story Object from the API response */
|
|
3987
|
-
story:
|
|
4015
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3988
4016
|
// Restricts the number of lines for subheadline.
|
|
3989
|
-
lineClamp:
|
|
4017
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3990
4018
|
|
|
3991
4019
|
/** Number of characters to truncate the subheadline */
|
|
3992
|
-
truncateChars:
|
|
3993
|
-
clazzName:
|
|
3994
|
-
forceShowAtom:
|
|
3995
|
-
showFullContent:
|
|
4020
|
+
truncateChars: PropTypes__default["default"].number,
|
|
4021
|
+
clazzName: PropTypes__default["default"].string,
|
|
4022
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
4023
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3996
4024
|
};
|
|
3997
4025
|
Subheadline.defaultProps = {
|
|
3998
4026
|
forceShowAtom: false,
|
|
@@ -4033,18 +4061,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
4033
4061
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
4034
4062
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
4035
4063
|
var textColor = getTextColor(configState.theme);
|
|
4036
|
-
return /*#__PURE__*/
|
|
4064
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4037
4065
|
"data-test-id": "publish-time",
|
|
4038
4066
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$v)
|
|
4039
|
-
}, /*#__PURE__*/
|
|
4067
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4040
4068
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
4041
4069
|
}, getTimeStamp(time, formatter, config))));
|
|
4042
4070
|
};
|
|
4043
4071
|
TimeStamp.propTypes = {
|
|
4044
4072
|
/** The Story Object from the API response */
|
|
4045
|
-
story:
|
|
4046
|
-
isBottom:
|
|
4047
|
-
config:
|
|
4073
|
+
story: PropTypes__default["default"].object,
|
|
4074
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4075
|
+
config: PropTypes__default["default"].object
|
|
4048
4076
|
};
|
|
4049
4077
|
|
|
4050
4078
|
var _styleModuleImportMap$u = {
|
|
@@ -4087,10 +4115,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
4087
4115
|
return null;
|
|
4088
4116
|
}
|
|
4089
4117
|
|
|
4090
|
-
return /*#__PURE__*/
|
|
4118
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4091
4119
|
"data-test-id": "author-image",
|
|
4092
4120
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$u)
|
|
4093
|
-
}, /*#__PURE__*/
|
|
4121
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
4094
4122
|
slug: avatarS3Key,
|
|
4095
4123
|
"aspect-ratio": [1, 1],
|
|
4096
4124
|
defaultWidth: 400,
|
|
@@ -4098,14 +4126,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
4098
4126
|
auto: ["format", "compress"]
|
|
4099
4127
|
},
|
|
4100
4128
|
alt: authorName
|
|
4101
|
-
}) : /*#__PURE__*/
|
|
4129
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4102
4130
|
src: avatarUrl
|
|
4103
4131
|
})));
|
|
4104
4132
|
};
|
|
4105
4133
|
|
|
4106
4134
|
var isPrefix = function isPrefix(dir) {
|
|
4107
4135
|
if (prefix) {
|
|
4108
|
-
return /*#__PURE__*/
|
|
4136
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4109
4137
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$u)
|
|
4110
4138
|
}, prefix);
|
|
4111
4139
|
}
|
|
@@ -4113,11 +4141,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
4113
4141
|
return !hideAuthorImage && authorImage(dir);
|
|
4114
4142
|
};
|
|
4115
4143
|
|
|
4116
|
-
return /*#__PURE__*/
|
|
4144
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4117
4145
|
href: "".concat(mountAt, "/author/") + slug,
|
|
4118
4146
|
"aria-label": "author-name",
|
|
4119
4147
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$u)
|
|
4120
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
4148
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4121
4149
|
"data-test-id": "author-name",
|
|
4122
4150
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$u)
|
|
4123
4151
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -4129,18 +4157,18 @@ function mapStateToProps$1(state) {
|
|
|
4129
4157
|
};
|
|
4130
4158
|
}
|
|
4131
4159
|
|
|
4132
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
4160
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
4133
4161
|
AuthorBase.propTypes = {
|
|
4134
4162
|
/** The Story Object from the API response */
|
|
4135
|
-
story:
|
|
4163
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4136
4164
|
|
|
4137
4165
|
/** Hide Author Avatar Image */
|
|
4138
|
-
hideAuthorImage:
|
|
4166
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4139
4167
|
// fix Author bottom of the storyCard
|
|
4140
|
-
isBottom:
|
|
4168
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4141
4169
|
// fix prefix before the author name
|
|
4142
|
-
prefix:
|
|
4143
|
-
config:
|
|
4170
|
+
prefix: PropTypes__default["default"].string,
|
|
4171
|
+
config: PropTypes__default["default"].object
|
|
4144
4172
|
};
|
|
4145
4173
|
AuthorBase.defaultProps = {
|
|
4146
4174
|
hideAuthorImage: false,
|
|
@@ -4161,14 +4189,14 @@ var Dot = function Dot(_ref) {
|
|
|
4161
4189
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
4162
4190
|
_ref$color = _ref.color,
|
|
4163
4191
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
4164
|
-
return /*#__PURE__*/
|
|
4192
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4165
4193
|
className: _getClassName(color, _styleModuleImportMap$t)
|
|
4166
|
-
}, /*#__PURE__*/
|
|
4194
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4167
4195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4168
4196
|
width: width,
|
|
4169
4197
|
height: height,
|
|
4170
4198
|
viewBox: "0 0 3 3"
|
|
4171
|
-
}, /*#__PURE__*/
|
|
4199
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
4172
4200
|
cx: "87",
|
|
4173
4201
|
cy: "9",
|
|
4174
4202
|
r: "1",
|
|
@@ -4179,9 +4207,9 @@ var Dot = function Dot(_ref) {
|
|
|
4179
4207
|
};
|
|
4180
4208
|
Dot.propTypes = {
|
|
4181
4209
|
/** height , width and color of the dot icon */
|
|
4182
|
-
color:
|
|
4183
|
-
width:
|
|
4184
|
-
height:
|
|
4210
|
+
color: PropTypes__default["default"].string,
|
|
4211
|
+
width: PropTypes__default["default"].string,
|
|
4212
|
+
height: PropTypes__default["default"].string
|
|
4185
4213
|
};
|
|
4186
4214
|
|
|
4187
4215
|
var _styleModuleImportMap$s = {
|
|
@@ -4197,22 +4225,22 @@ var Divider = function Divider(_ref) {
|
|
|
4197
4225
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
4198
4226
|
_ref$color = _ref.color,
|
|
4199
4227
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
4200
|
-
return /*#__PURE__*/
|
|
4228
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4201
4229
|
className: _getClassName(color, _styleModuleImportMap$s)
|
|
4202
|
-
}, /*#__PURE__*/
|
|
4230
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4203
4231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4204
4232
|
width: width,
|
|
4205
4233
|
height: height
|
|
4206
|
-
}, /*#__PURE__*/
|
|
4234
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4207
4235
|
fill: "inherit",
|
|
4208
4236
|
d: "M0 0h1v10H0z"
|
|
4209
4237
|
})));
|
|
4210
4238
|
};
|
|
4211
4239
|
Divider.propTypes = {
|
|
4212
4240
|
/** height , width and color of the dot icon */
|
|
4213
|
-
color:
|
|
4214
|
-
width:
|
|
4215
|
-
height:
|
|
4241
|
+
color: PropTypes__default["default"].string,
|
|
4242
|
+
width: PropTypes__default["default"].string,
|
|
4243
|
+
height: PropTypes__default["default"].string
|
|
4216
4244
|
};
|
|
4217
4245
|
|
|
4218
4246
|
var _styleModuleImportMap$r = {
|
|
@@ -4235,23 +4263,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
4235
4263
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
4236
4264
|
if (!showReadTime || !readTime) return null;
|
|
4237
4265
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
4238
|
-
return /*#__PURE__*/
|
|
4266
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4239
4267
|
"data-test-id": "read-time",
|
|
4240
4268
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$r)
|
|
4241
|
-
}, /*#__PURE__*/
|
|
4269
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4242
4270
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
4243
|
-
}, /*#__PURE__*/
|
|
4271
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
4244
4272
|
color: textColor
|
|
4245
|
-
})), /*#__PURE__*/
|
|
4273
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
4246
4274
|
};
|
|
4247
4275
|
ReadTime.propTypes = {
|
|
4248
|
-
story:
|
|
4249
|
-
"read-time":
|
|
4276
|
+
story: PropTypes__default["default"].shape({
|
|
4277
|
+
"read-time": PropTypes__default["default"].number
|
|
4250
4278
|
}),
|
|
4251
|
-
opts:
|
|
4252
|
-
showReadTime:
|
|
4279
|
+
opts: PropTypes__default["default"].shape({
|
|
4280
|
+
showReadTime: PropTypes__default["default"].bool
|
|
4253
4281
|
}),
|
|
4254
|
-
isLightTheme:
|
|
4282
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4255
4283
|
};
|
|
4256
4284
|
|
|
4257
4285
|
var _styleModuleImportMap$q = {
|
|
@@ -4282,33 +4310,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
4282
4310
|
|
|
4283
4311
|
var getSeparator = function getSeparator() {
|
|
4284
4312
|
if (separator === "divider") {
|
|
4285
|
-
return /*#__PURE__*/
|
|
4313
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
4286
4314
|
color: textColor
|
|
4287
4315
|
});
|
|
4288
4316
|
}
|
|
4289
4317
|
|
|
4290
|
-
return /*#__PURE__*/
|
|
4318
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
4291
4319
|
color: textColor
|
|
4292
4320
|
});
|
|
4293
4321
|
};
|
|
4294
4322
|
|
|
4295
4323
|
var getTimeStamp = function getTimeStamp() {
|
|
4296
4324
|
if (!isTime) return null;
|
|
4297
|
-
return /*#__PURE__*/
|
|
4325
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4298
4326
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$q)
|
|
4299
|
-
}, getSeparator()), /*#__PURE__*/
|
|
4327
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
4300
4328
|
story: story,
|
|
4301
4329
|
config: config
|
|
4302
|
-
}), isReadTime && /*#__PURE__*/
|
|
4330
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
4303
4331
|
story: story,
|
|
4304
4332
|
opts: config,
|
|
4305
4333
|
isLightTheme: isLightTheme
|
|
4306
4334
|
}));
|
|
4307
4335
|
};
|
|
4308
4336
|
|
|
4309
|
-
return /*#__PURE__*/
|
|
4337
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4310
4338
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$q)
|
|
4311
|
-
}, isAuthor ? /*#__PURE__*/
|
|
4339
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
4312
4340
|
story: story,
|
|
4313
4341
|
isBottom: true,
|
|
4314
4342
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -4316,19 +4344,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
4316
4344
|
}), getTimeStamp()) : getTimeStamp());
|
|
4317
4345
|
};
|
|
4318
4346
|
AuthorWithTime.propTypes = {
|
|
4319
|
-
story:
|
|
4347
|
+
story: PropTypes__default["default"].object,
|
|
4320
4348
|
|
|
4321
4349
|
/** Style of separator between the Author & Timestamp */
|
|
4322
|
-
separator:
|
|
4350
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
4323
4351
|
|
|
4324
4352
|
/** hide the author image */
|
|
4325
|
-
hideAuthorImage:
|
|
4353
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4326
4354
|
// fix author and time at the end
|
|
4327
|
-
isBottom:
|
|
4355
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4328
4356
|
// fix prefix before the author name
|
|
4329
|
-
prefix:
|
|
4330
|
-
config:
|
|
4331
|
-
isLightTheme:
|
|
4357
|
+
prefix: PropTypes__default["default"].string,
|
|
4358
|
+
config: PropTypes__default["default"].object,
|
|
4359
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4332
4360
|
};
|
|
4333
4361
|
AuthorWithTime.defaultProps = {
|
|
4334
4362
|
separator: "dot",
|
|
@@ -4374,7 +4402,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4374
4402
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
4375
4403
|
|
|
4376
4404
|
var borderBottomStyle = function borderBottomStyle() {
|
|
4377
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
4405
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4378
4406
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
4379
4407
|
style: {
|
|
4380
4408
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -4434,40 +4462,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4434
4462
|
}
|
|
4435
4463
|
};
|
|
4436
4464
|
|
|
4437
|
-
return /*#__PURE__*/
|
|
4465
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4438
4466
|
style: {
|
|
4439
4467
|
borderBottom: borderBottomFullStyle
|
|
4440
4468
|
},
|
|
4441
4469
|
"data-test-id": "collection-name",
|
|
4442
4470
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$p)
|
|
4443
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
4471
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4444
4472
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
4445
4473
|
style: {
|
|
4446
4474
|
color: CollectionNameBorderColor,
|
|
4447
4475
|
fontSize: getBorderHeight()
|
|
4448
4476
|
}
|
|
4449
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
4477
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4450
4478
|
href: slug,
|
|
4451
4479
|
"aria-label": "collection-name"
|
|
4452
|
-
}, /*#__PURE__*/
|
|
4480
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
4453
4481
|
};
|
|
4454
4482
|
CollectionNameBase.propTypes = {
|
|
4455
4483
|
/** Collection name border color */
|
|
4456
|
-
collectionNameBorderColor: PropTypes
|
|
4484
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
4457
4485
|
|
|
4458
4486
|
/** The Collection Object from the API response */
|
|
4459
|
-
collection: PropTypes
|
|
4487
|
+
collection: PropTypes.PropTypes.object,
|
|
4460
4488
|
|
|
4461
4489
|
/** The publisher config from the API response */
|
|
4462
|
-
config: PropTypes
|
|
4490
|
+
config: PropTypes.PropTypes.object,
|
|
4463
4491
|
|
|
4464
4492
|
/** The style template for the component */
|
|
4465
|
-
collectionNameTemplate: PropTypes
|
|
4493
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
4466
4494
|
|
|
4467
4495
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4468
|
-
headerLevel: PropTypes
|
|
4469
|
-
customCollectionName: PropTypes
|
|
4470
|
-
navigate: PropTypes
|
|
4496
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
4497
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
4498
|
+
navigate: PropTypes.PropTypes.bool
|
|
4471
4499
|
};
|
|
4472
4500
|
CollectionNameBase.defaultProps = {
|
|
4473
4501
|
collectionNameTemplate: "",
|
|
@@ -4480,16 +4508,16 @@ function mapStateToProps(state) {
|
|
|
4480
4508
|
};
|
|
4481
4509
|
}
|
|
4482
4510
|
|
|
4483
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
4511
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
4484
4512
|
|
|
4485
4513
|
function LiveIcon() {
|
|
4486
|
-
return /*#__PURE__*/
|
|
4514
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4487
4515
|
className: "live-icon",
|
|
4488
4516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4489
4517
|
width: "25",
|
|
4490
4518
|
height: "24",
|
|
4491
4519
|
viewBox: "0 0 25 24"
|
|
4492
|
-
}, /*#__PURE__*/
|
|
4520
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4493
4521
|
fill: "#ff5858",
|
|
4494
4522
|
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"
|
|
4495
4523
|
}));
|
|
@@ -4546,37 +4574,37 @@ var Headline = function Headline(_ref) {
|
|
|
4546
4574
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
4547
4575
|
var iconSize = "24px";
|
|
4548
4576
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
4549
|
-
return /*#__PURE__*/
|
|
4577
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4550
4578
|
"data-test-id": "headline",
|
|
4551
4579
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$o)
|
|
4552
|
-
}, premiumStory && /*#__PURE__*/
|
|
4580
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
4553
4581
|
width: iconSize,
|
|
4554
4582
|
height: iconSize,
|
|
4555
4583
|
color: iconColor,
|
|
4556
4584
|
iconType: iconStyle,
|
|
4557
4585
|
positionTop: positionHeadline()
|
|
4558
|
-
}), isLink ? /*#__PURE__*/
|
|
4586
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4559
4587
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4560
4588
|
externalLink: isExternalStory(story),
|
|
4561
4589
|
"aria-label": "headline"
|
|
4562
|
-
}, /*#__PURE__*/
|
|
4590
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
4563
4591
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$o)
|
|
4564
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
4592
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
4565
4593
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$o)
|
|
4566
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
4594
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
4567
4595
|
};
|
|
4568
4596
|
Headline.propTypes = {
|
|
4569
4597
|
/** The Story Object from the API response */
|
|
4570
|
-
story:
|
|
4598
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4571
4599
|
|
|
4572
4600
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4573
|
-
headerLevel:
|
|
4574
|
-
premiumStoryIconConfig:
|
|
4575
|
-
iconColor:
|
|
4576
|
-
iconType:
|
|
4577
|
-
enablePremiumStoryIcon:
|
|
4601
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4602
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
4603
|
+
iconColor: PropTypes__default["default"].string,
|
|
4604
|
+
iconType: PropTypes__default["default"].string,
|
|
4605
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
4578
4606
|
}),
|
|
4579
|
-
isLink:
|
|
4607
|
+
isLink: PropTypes__default["default"].bool
|
|
4580
4608
|
};
|
|
4581
4609
|
Headline.defaultProps = {
|
|
4582
4610
|
headerLevel: "6",
|
|
@@ -4590,27 +4618,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4590
4618
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
4591
4619
|
_ref$iconColor = _ref.iconColor,
|
|
4592
4620
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
4593
|
-
return /*#__PURE__*/
|
|
4621
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4594
4622
|
width: width,
|
|
4595
4623
|
height: height,
|
|
4596
4624
|
viewBox: "0 0 102 76",
|
|
4597
4625
|
version: "1.1"
|
|
4598
|
-
}, /*#__PURE__*/
|
|
4626
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4599
4627
|
id: "demo-home-copy",
|
|
4600
4628
|
stroke: "none",
|
|
4601
4629
|
strokeWidth: "1",
|
|
4602
4630
|
fill: "none",
|
|
4603
4631
|
fillRule: "evenodd",
|
|
4604
4632
|
transform: "translate(-377.000000, -314.000000)"
|
|
4605
|
-
}, /*#__PURE__*/
|
|
4633
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4606
4634
|
id: "Group-13",
|
|
4607
4635
|
transform: "translate(377.000000, 314.000000)"
|
|
4608
|
-
}, /*#__PURE__*/
|
|
4636
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4609
4637
|
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",
|
|
4610
4638
|
id: "Combined-Shape",
|
|
4611
4639
|
fill: iconColor,
|
|
4612
4640
|
fillRule: "nonzero"
|
|
4613
|
-
}), /*#__PURE__*/
|
|
4641
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4614
4642
|
id: "Rectangle-19",
|
|
4615
4643
|
stroke: iconColor,
|
|
4616
4644
|
strokeWidth: "3",
|
|
@@ -4622,24 +4650,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4622
4650
|
}))));
|
|
4623
4651
|
};
|
|
4624
4652
|
ImageFallbackIcon.propTypes = {
|
|
4625
|
-
width:
|
|
4626
|
-
height:
|
|
4627
|
-
iconColor:
|
|
4653
|
+
width: PropTypes__default["default"].object,
|
|
4654
|
+
height: PropTypes__default["default"].object,
|
|
4655
|
+
iconColor: PropTypes__default["default"].object
|
|
4628
4656
|
};
|
|
4629
4657
|
|
|
4630
4658
|
var imageFallback = function imageFallback() {
|
|
4631
|
-
return /*#__PURE__*/
|
|
4659
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4632
4660
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
4633
|
-
}, /*#__PURE__*/
|
|
4661
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4634
4662
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
4635
|
-
}, /*#__PURE__*/
|
|
4663
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
4636
4664
|
};
|
|
4637
4665
|
|
|
4638
4666
|
var FallbackImage = function FallbackImage(_ref) {
|
|
4639
4667
|
var slug = _ref.slug;
|
|
4640
4668
|
|
|
4641
4669
|
if (slug) {
|
|
4642
|
-
return /*#__PURE__*/
|
|
4670
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4643
4671
|
href: slug,
|
|
4644
4672
|
"aria-label": "image-fallback"
|
|
4645
4673
|
}, imageFallback());
|
|
@@ -4648,23 +4676,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
4648
4676
|
}
|
|
4649
4677
|
};
|
|
4650
4678
|
FallbackImage.propTypes = {
|
|
4651
|
-
slug:
|
|
4679
|
+
slug: PropTypes__default["default"].string
|
|
4652
4680
|
};
|
|
4653
4681
|
|
|
4654
4682
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
4655
|
-
return /*#__PURE__*/
|
|
4683
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4656
4684
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4657
4685
|
width: "36",
|
|
4658
4686
|
height: "28"
|
|
4659
|
-
}, /*#__PURE__*/
|
|
4687
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4660
4688
|
fill: "none",
|
|
4661
4689
|
fillRule: "evenodd"
|
|
4662
|
-
}, /*#__PURE__*/
|
|
4690
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4663
4691
|
width: "36",
|
|
4664
4692
|
height: "28",
|
|
4665
4693
|
fill: "#3D6FCF",
|
|
4666
4694
|
rx: "4"
|
|
4667
|
-
}), /*#__PURE__*/
|
|
4695
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4668
4696
|
stroke: "#FFF",
|
|
4669
4697
|
strokeLinecap: "round",
|
|
4670
4698
|
strokeLinejoin: "round",
|
|
@@ -4677,16 +4705,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
4677
4705
|
var _ref$hyperLink = _ref.hyperLink,
|
|
4678
4706
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
4679
4707
|
if (!hyperLink) return null;
|
|
4680
|
-
return /*#__PURE__*/
|
|
4708
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4681
4709
|
href: hyperLink,
|
|
4682
4710
|
"aria-label": "hyperlink-button",
|
|
4683
4711
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
4684
4712
|
target: "_blank",
|
|
4685
4713
|
rel: "noopener noreferrer"
|
|
4686
|
-
}, /*#__PURE__*/
|
|
4714
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
4687
4715
|
};
|
|
4688
4716
|
HyperLink.propTypes = {
|
|
4689
|
-
hyperLink:
|
|
4717
|
+
hyperLink: PropTypes__default["default"].string
|
|
4690
4718
|
};
|
|
4691
4719
|
|
|
4692
4720
|
var _styleModuleImportMap$n = {
|
|
@@ -4722,7 +4750,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4722
4750
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
4723
4751
|
return null;
|
|
4724
4752
|
} : _config$StoryTemplate;
|
|
4725
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
4753
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
4726
4754
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
4727
4755
|
});
|
|
4728
4756
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -4758,37 +4786,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4758
4786
|
var fallbackImage = function fallbackImage() {
|
|
4759
4787
|
if (!slug) {
|
|
4760
4788
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
4761
|
-
return /*#__PURE__*/
|
|
4789
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4762
4790
|
style: {
|
|
4763
4791
|
paddingTop: imagePadding + "%"
|
|
4764
4792
|
},
|
|
4765
4793
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$n)
|
|
4766
|
-
}, /*#__PURE__*/
|
|
4794
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4767
4795
|
className: "qt-image",
|
|
4768
4796
|
"data-src": "".concat(fallbackImageUrl),
|
|
4769
4797
|
alt: "image-fallback"
|
|
4770
4798
|
}));
|
|
4771
4799
|
}
|
|
4772
4800
|
|
|
4773
|
-
return /*#__PURE__*/
|
|
4801
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4774
4802
|
"data-test-id": "arr--fallback-hero-image",
|
|
4775
4803
|
style: {
|
|
4776
4804
|
paddingTop: imagePadding + "%"
|
|
4777
4805
|
},
|
|
4778
4806
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$n)
|
|
4779
|
-
}, /*#__PURE__*/
|
|
4807
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4780
4808
|
storyTemplate: story["story-template"]
|
|
4781
|
-
}), /*#__PURE__*/
|
|
4809
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
4782
4810
|
}
|
|
4783
4811
|
|
|
4784
|
-
return /*#__PURE__*/
|
|
4812
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4785
4813
|
style: {
|
|
4786
4814
|
paddingTop: imagePadding + "%"
|
|
4787
4815
|
},
|
|
4788
4816
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$n)
|
|
4789
|
-
}, /*#__PURE__*/
|
|
4817
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4790
4818
|
storyTemplate: story["story-template"]
|
|
4791
|
-
}), /*#__PURE__*/
|
|
4819
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
4792
4820
|
story: story,
|
|
4793
4821
|
aspectRatio: imageAspectRatio,
|
|
4794
4822
|
defaultWidth: defaultWidth,
|
|
@@ -4797,15 +4825,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4797
4825
|
auto: ["format", "compress"],
|
|
4798
4826
|
fit: "max"
|
|
4799
4827
|
}
|
|
4800
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
4828
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
4801
4829
|
hyperLink: hyperLink
|
|
4802
4830
|
}));
|
|
4803
4831
|
};
|
|
4804
4832
|
|
|
4805
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
4833
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4806
4834
|
"data-test-id": "arr--hero-image",
|
|
4807
4835
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$n)
|
|
4808
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
4836
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4809
4837
|
"data-test-id": "arr--hero-image",
|
|
4810
4838
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4811
4839
|
externalLink: isExternalStory(story),
|
|
@@ -4815,30 +4843,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4815
4843
|
};
|
|
4816
4844
|
HeroImage.propTypes = {
|
|
4817
4845
|
/** The Story Object from the API response */
|
|
4818
|
-
story:
|
|
4846
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4819
4847
|
|
|
4820
4848
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
4821
|
-
FullBleed:
|
|
4849
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
4822
4850
|
|
|
4823
4851
|
/** The default width for the image, in case the browser does not support srcset */
|
|
4824
|
-
defaultWidth:
|
|
4852
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
4825
4853
|
|
|
4826
4854
|
/** The list of available widths */
|
|
4827
|
-
widths:
|
|
4855
|
+
widths: PropTypes__default["default"].array,
|
|
4828
4856
|
// fatch the correct hero image
|
|
4829
|
-
aspectRatio:
|
|
4857
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
4830
4858
|
// Hints for the browser to choose the best size
|
|
4831
4859
|
|
|
4832
4860
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
4833
|
-
isHorizontal:
|
|
4861
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4834
4862
|
|
|
4835
4863
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
4836
|
-
isHorizontalMobile:
|
|
4864
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4837
4865
|
// this prop is responsive for rendering fallback image on story page
|
|
4838
|
-
defaultFallback:
|
|
4839
|
-
isHorizontalWithImageLast:
|
|
4840
|
-
isStoryPageImage:
|
|
4841
|
-
config:
|
|
4866
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
4867
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
4868
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
4869
|
+
config: PropTypes__default["default"].object
|
|
4842
4870
|
};
|
|
4843
4871
|
HeroImage.defaultProps = {
|
|
4844
4872
|
FullBleed: true,
|
|
@@ -4895,7 +4923,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4895
4923
|
prefix = _ref.prefix,
|
|
4896
4924
|
config = _ref.config,
|
|
4897
4925
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
4898
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
4926
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
4899
4927
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
4900
4928
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
4901
4929
|
|
|
@@ -4905,7 +4933,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4905
4933
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
4906
4934
|
var textColor = getTextColor(theme);
|
|
4907
4935
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
4908
|
-
var defaultStorycard = /*#__PURE__*/
|
|
4936
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
4909
4937
|
story: story,
|
|
4910
4938
|
aspectRatio: aspectRatio,
|
|
4911
4939
|
border: border,
|
|
@@ -4919,7 +4947,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4919
4947
|
config: config,
|
|
4920
4948
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
4921
4949
|
});
|
|
4922
|
-
return /*#__PURE__*/
|
|
4950
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4923
4951
|
"data-test-id": "story-card",
|
|
4924
4952
|
style: {
|
|
4925
4953
|
backgroundColor: theme,
|
|
@@ -4948,91 +4976,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
4948
4976
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4949
4977
|
var _config$localizationC = config.localizationConfig,
|
|
4950
4978
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4951
|
-
return /*#__PURE__*/
|
|
4979
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4952
4980
|
config: config,
|
|
4953
4981
|
story: story,
|
|
4954
4982
|
isHorizontal: true,
|
|
4955
4983
|
isHorizontalMobile: isHorizontalMobile,
|
|
4956
4984
|
aspectRatio: aspectRatio
|
|
4957
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
4985
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4958
4986
|
config: config,
|
|
4959
4987
|
story: story,
|
|
4960
4988
|
isHorizontalWithImageLast: true,
|
|
4961
4989
|
isHorizontalMobile: isHorizontalMobile,
|
|
4962
4990
|
aspectRatio: aspectRatio
|
|
4963
|
-
}) : /*#__PURE__*/
|
|
4991
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4964
4992
|
story: story,
|
|
4965
4993
|
config: config,
|
|
4966
4994
|
isHorizontalMobile: isHorizontalMobile,
|
|
4967
4995
|
aspectRatio: aspectRatio
|
|
4968
|
-
}), /*#__PURE__*/
|
|
4996
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4969
4997
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$m)
|
|
4970
|
-
}, /*#__PURE__*/
|
|
4998
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4971
4999
|
story: story,
|
|
4972
5000
|
borderColor: SectionTagborderColor
|
|
4973
|
-
}), /*#__PURE__*/
|
|
5001
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4974
5002
|
story: story,
|
|
4975
5003
|
headerLevel: headerLevel,
|
|
4976
5004
|
premiumStoryIconConfig: config
|
|
4977
|
-
}), /*#__PURE__*/
|
|
5005
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4978
5006
|
config: localizationConfig,
|
|
4979
5007
|
story: story,
|
|
4980
5008
|
isBottom: true,
|
|
4981
5009
|
prefix: prefix,
|
|
4982
5010
|
hideAuthorImage: hideAuthorImage
|
|
4983
|
-
}), /*#__PURE__*/
|
|
5011
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4984
5012
|
story: story
|
|
4985
5013
|
})));
|
|
4986
5014
|
};
|
|
4987
5015
|
|
|
4988
5016
|
DefaultStoryCard.propTypes = {
|
|
4989
|
-
story:
|
|
4990
|
-
border:
|
|
4991
|
-
isBottom:
|
|
4992
|
-
isHorizontal:
|
|
4993
|
-
aspectRatio:
|
|
4994
|
-
isHorizontalMobile:
|
|
4995
|
-
centerAlign:
|
|
4996
|
-
headerLevel:
|
|
4997
|
-
borderColor:
|
|
4998
|
-
hideAuthorImage:
|
|
4999
|
-
prefix:
|
|
5000
|
-
config:
|
|
5001
|
-
isHorizontalWithImageLast:
|
|
5017
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
5018
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
5019
|
+
isBottom: PropTypes__default["default"].bool,
|
|
5020
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
5021
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
5022
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
5023
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
5024
|
+
headerLevel: PropTypes__default["default"].string,
|
|
5025
|
+
borderColor: PropTypes__default["default"].string,
|
|
5026
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
5027
|
+
prefix: PropTypes__default["default"].string,
|
|
5028
|
+
config: PropTypes__default["default"].object,
|
|
5029
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
5002
5030
|
};
|
|
5003
5031
|
StoryCard.propTypes = {
|
|
5004
5032
|
/** The Story Object from the API response */
|
|
5005
|
-
story:
|
|
5006
|
-
children:
|
|
5033
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
5034
|
+
children: PropTypes__default["default"].node,
|
|
5007
5035
|
|
|
5008
5036
|
/** Flip the Story Card to Horizonal mode */
|
|
5009
|
-
isHorizontal:
|
|
5037
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
5010
5038
|
|
|
5011
5039
|
/** Add border to the Story Card */
|
|
5012
|
-
border:
|
|
5040
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
5013
5041
|
// story card with background image
|
|
5014
|
-
useImageAsBackground:
|
|
5042
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
5015
5043
|
// story card content overlap with image
|
|
5016
|
-
bgImgContentOverlap:
|
|
5044
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
5017
5045
|
|
|
5018
5046
|
/** add aspect ratio for hero image */
|
|
5019
|
-
aspectRatio:
|
|
5047
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
5020
5048
|
|
|
5021
5049
|
/** add theme(dark /light/custom color) for storycard */
|
|
5022
|
-
theme:
|
|
5050
|
+
theme: PropTypes__default["default"].string,
|
|
5023
5051
|
|
|
5024
5052
|
/** flip the story card mobile design horizontal */
|
|
5025
|
-
isHorizontalMobile:
|
|
5053
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
5026
5054
|
// make content center align in desktop and left align in mobile
|
|
5027
|
-
centerAlign:
|
|
5028
|
-
headerLevel:
|
|
5029
|
-
borderColor:
|
|
5055
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
5056
|
+
headerLevel: PropTypes__default["default"].string,
|
|
5057
|
+
borderColor: PropTypes__default["default"].string,
|
|
5030
5058
|
// handle author image through storycard
|
|
5031
|
-
hideAuthorImage:
|
|
5059
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
5032
5060
|
// handle author prefix through storycard
|
|
5033
|
-
prefix:
|
|
5034
|
-
config:
|
|
5035
|
-
isHorizontalWithImageLast:
|
|
5061
|
+
prefix: PropTypes__default["default"].string,
|
|
5062
|
+
config: PropTypes__default["default"].object,
|
|
5063
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
5036
5064
|
};
|
|
5037
5065
|
StoryCard.defaultProps = {
|
|
5038
5066
|
isHorizontal: false,
|
|
@@ -5047,19 +5075,19 @@ StoryCard.defaultProps = {
|
|
|
5047
5075
|
var ClockIcon = function ClockIcon(_ref) {
|
|
5048
5076
|
var _ref$color = _ref.color,
|
|
5049
5077
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
5050
|
-
return /*#__PURE__*/
|
|
5078
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
5051
5079
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5052
5080
|
width: "24",
|
|
5053
5081
|
height: "24",
|
|
5054
5082
|
viewBox: "0 0 24 24"
|
|
5055
|
-
}, /*#__PURE__*/
|
|
5083
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
5056
5084
|
fill: color,
|
|
5057
5085
|
fillRule: "evenodd",
|
|
5058
5086
|
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"
|
|
5059
5087
|
}));
|
|
5060
5088
|
};
|
|
5061
5089
|
ClockIcon.propTypes = {
|
|
5062
|
-
color:
|
|
5090
|
+
color: PropTypes__default["default"].string
|
|
5063
5091
|
};
|
|
5064
5092
|
|
|
5065
5093
|
var _styleModuleImportMap$l = {
|
|
@@ -5094,26 +5122,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
5094
5122
|
if (!showButton) return null;
|
|
5095
5123
|
var textColor = getTextColor(theme);
|
|
5096
5124
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread$3(_objectSpread$3({}, qtConfig), config));
|
|
5097
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
5125
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5098
5126
|
onClick: onClick,
|
|
5099
5127
|
"data-test-id": "load-more",
|
|
5100
5128
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$l)
|
|
5101
|
-
}, buttonText) : /*#__PURE__*/
|
|
5129
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
5102
5130
|
href: slug,
|
|
5103
5131
|
navigateTo: navigate,
|
|
5104
5132
|
"data-test-id": "load-more",
|
|
5105
5133
|
"aria-label": "load-more"
|
|
5106
|
-
}, /*#__PURE__*/
|
|
5134
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5107
5135
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$l)
|
|
5108
5136
|
}, buttonText));
|
|
5109
5137
|
};
|
|
5110
5138
|
LoadmoreButton.propTypes = {
|
|
5111
|
-
collection:
|
|
5112
|
-
template:
|
|
5113
|
-
config:
|
|
5114
|
-
onClick:
|
|
5115
|
-
navigate:
|
|
5116
|
-
qtConfig:
|
|
5139
|
+
collection: PropTypes__default["default"].object,
|
|
5140
|
+
template: PropTypes__default["default"].string,
|
|
5141
|
+
config: PropTypes__default["default"].object,
|
|
5142
|
+
onClick: PropTypes__default["default"].func,
|
|
5143
|
+
navigate: PropTypes__default["default"].func,
|
|
5144
|
+
qtConfig: PropTypes__default["default"].object
|
|
5117
5145
|
};
|
|
5118
5146
|
|
|
5119
5147
|
var _styleModuleImportMap$k = {
|
|
@@ -5151,23 +5179,23 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
5151
5179
|
var updateColor = textColor === "dark" ? dark : light;
|
|
5152
5180
|
var lastElement = index === cardLength - 1;
|
|
5153
5181
|
var borderLeft = lastElement ? "borderNone" : "";
|
|
5154
|
-
return /*#__PURE__*/
|
|
5182
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5155
5183
|
className: _getClassName("time-wrapper ".concat(textColor), _styleModuleImportMap$k)
|
|
5156
|
-
}, /*#__PURE__*/
|
|
5184
|
+
}, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
|
|
5157
5185
|
color: updateColor
|
|
5158
5186
|
}), getTimeStamp(cardAddedAt, timestampToFormat, {
|
|
5159
5187
|
showTime: true,
|
|
5160
5188
|
isTimeFirst: true
|
|
5161
|
-
})), /*#__PURE__*/
|
|
5189
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5162
5190
|
href: "".concat(mountAt, "/").concat(slug, "#").concat(id),
|
|
5163
5191
|
"aria-label": "event-title"
|
|
5164
|
-
}, /*#__PURE__*/
|
|
5192
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5165
5193
|
className: _getClassName("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$k)
|
|
5166
5194
|
}, storyElements.map(function (element, index) {
|
|
5167
|
-
return element.type === "title" && /*#__PURE__*/
|
|
5195
|
+
return element.type === "title" && /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
5168
5196
|
key: index
|
|
5169
5197
|
}, element.text);
|
|
5170
|
-
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/
|
|
5198
|
+
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5171
5199
|
className: "key-events-m_fade-out__11jv_",
|
|
5172
5200
|
style: {
|
|
5173
5201
|
backgroundImage: "linear-gradient(to bottom, transparent, ".concat(theme, ")")
|
|
@@ -5176,19 +5204,19 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
5176
5204
|
};
|
|
5177
5205
|
|
|
5178
5206
|
KeyEventCards.propTypes = {
|
|
5179
|
-
card:
|
|
5180
|
-
"card-added-at":
|
|
5181
|
-
"story-elements":
|
|
5182
|
-
id:
|
|
5207
|
+
card: PropTypes__default["default"].shape({
|
|
5208
|
+
"card-added-at": PropTypes__default["default"].number,
|
|
5209
|
+
"story-elements": PropTypes__default["default"].array,
|
|
5210
|
+
id: PropTypes__default["default"].string
|
|
5183
5211
|
}),
|
|
5184
|
-
config:
|
|
5185
|
-
slug:
|
|
5186
|
-
story:
|
|
5187
|
-
elements:
|
|
5188
|
-
index:
|
|
5189
|
-
cardLength:
|
|
5190
|
-
loadCards:
|
|
5191
|
-
showLoadMore:
|
|
5212
|
+
config: PropTypes__default["default"].object,
|
|
5213
|
+
slug: PropTypes__default["default"].string,
|
|
5214
|
+
story: PropTypes__default["default"].object,
|
|
5215
|
+
elements: PropTypes__default["default"].array,
|
|
5216
|
+
index: PropTypes__default["default"].number,
|
|
5217
|
+
cardLength: PropTypes__default["default"].number,
|
|
5218
|
+
loadCards: PropTypes__default["default"].bool,
|
|
5219
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5192
5220
|
};
|
|
5193
5221
|
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
5194
5222
|
var _ref$story = _ref.story,
|
|
@@ -5203,7 +5231,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5203
5231
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
5204
5232
|
var textColor = getTextColor(theme);
|
|
5205
5233
|
|
|
5206
|
-
var _useState = useState(initialLoadCount),
|
|
5234
|
+
var _useState = React.useState(initialLoadCount),
|
|
5207
5235
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5208
5236
|
initialCount = _useState2[0],
|
|
5209
5237
|
updatedCount = _useState2[1];
|
|
@@ -5212,7 +5240,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5212
5240
|
return get_1(card.metadata, ["attributes", "key-event"]);
|
|
5213
5241
|
});
|
|
5214
5242
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
5215
|
-
var qtConfig = useSelector(function (state) {
|
|
5243
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
5216
5244
|
return get_1(state, ["qt", "config"], {});
|
|
5217
5245
|
});
|
|
5218
5246
|
|
|
@@ -5226,7 +5254,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5226
5254
|
|
|
5227
5255
|
var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
|
|
5228
5256
|
var keyEvents = showAllCards.map(function (card, index, source) {
|
|
5229
|
-
return /*#__PURE__*/
|
|
5257
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
|
|
5230
5258
|
cardLength: source.length,
|
|
5231
5259
|
card: card,
|
|
5232
5260
|
key: card.id,
|
|
@@ -5237,14 +5265,14 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5237
5265
|
showLoadMore: showLoadMore
|
|
5238
5266
|
});
|
|
5239
5267
|
});
|
|
5240
|
-
return /*#__PURE__*/
|
|
5268
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5241
5269
|
style: {
|
|
5242
5270
|
background: theme
|
|
5243
5271
|
},
|
|
5244
5272
|
className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$k)
|
|
5245
|
-
}, /*#__PURE__*/
|
|
5273
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5246
5274
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
5247
|
-
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/
|
|
5275
|
+
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
5248
5276
|
onClick: onClick,
|
|
5249
5277
|
template: "SubsequentLoadCount",
|
|
5250
5278
|
config: config,
|
|
@@ -5252,9 +5280,9 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5252
5280
|
}));
|
|
5253
5281
|
};
|
|
5254
5282
|
KeyEventsBase.propTypes = {
|
|
5255
|
-
story:
|
|
5256
|
-
config:
|
|
5257
|
-
showLoadMore:
|
|
5283
|
+
story: PropTypes__default["default"].object,
|
|
5284
|
+
config: PropTypes__default["default"].object,
|
|
5285
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5258
5286
|
};
|
|
5259
5287
|
var KeyEvents = StateProvider(KeyEventsBase);
|
|
5260
5288
|
|
|
@@ -5295,12 +5323,12 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5295
5323
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5296
5324
|
var mountAt = get_1(config, ["mountAtPrefix"], "");
|
|
5297
5325
|
|
|
5298
|
-
var _useState = useState([]),
|
|
5326
|
+
var _useState = React.useState([]),
|
|
5299
5327
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5300
5328
|
storyList = _useState2[0],
|
|
5301
5329
|
updateStoryList = _useState2[1];
|
|
5302
5330
|
|
|
5303
|
-
var _useState3 = useState([]),
|
|
5331
|
+
var _useState3 = React.useState([]),
|
|
5304
5332
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5305
5333
|
collectionData = _useState4[0],
|
|
5306
5334
|
updateCollectionData = _useState4[1];
|
|
@@ -5334,59 +5362,59 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5334
5362
|
};
|
|
5335
5363
|
}();
|
|
5336
5364
|
|
|
5337
|
-
useEffect(function () {
|
|
5365
|
+
React.useEffect(function () {
|
|
5338
5366
|
if (collectionSlug) {
|
|
5339
5367
|
updateStoryListItems(collectionSlug);
|
|
5340
5368
|
}
|
|
5341
5369
|
}, [collectionSlug]);
|
|
5342
|
-
useEffect(function () {
|
|
5370
|
+
React.useEffect(function () {
|
|
5343
5371
|
if (!collectionSlug && data) {
|
|
5344
5372
|
var storyItems = data.items || data;
|
|
5345
5373
|
updateStoryList(storyItems);
|
|
5346
5374
|
}
|
|
5347
5375
|
}, [data, collectionSlug]);
|
|
5348
|
-
return /*#__PURE__*/
|
|
5376
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
5349
5377
|
customCollectionName: heading,
|
|
5350
5378
|
textColor: true,
|
|
5351
5379
|
collection: collectionData
|
|
5352
|
-
}), /*#__PURE__*/
|
|
5380
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5353
5381
|
className: "aside-collection-m_stories__9wfUs"
|
|
5354
5382
|
}, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
|
|
5355
5383
|
var story = item.story || item;
|
|
5356
|
-
return /*#__PURE__*/
|
|
5384
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5357
5385
|
className: "aside-collection-m_story__17Jdm",
|
|
5358
5386
|
key: story.id
|
|
5359
|
-
}, /*#__PURE__*/
|
|
5387
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
5360
5388
|
story: story,
|
|
5361
5389
|
isHorizontal: true,
|
|
5362
5390
|
theme: theme,
|
|
5363
5391
|
config: config
|
|
5364
|
-
}, /*#__PURE__*/
|
|
5392
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5365
5393
|
className: "aside-collection-m_story-hero-image__13nFY"
|
|
5366
|
-
}, /*#__PURE__*/
|
|
5394
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5367
5395
|
story: story,
|
|
5368
5396
|
aspectRatio: [[4, 3]]
|
|
5369
|
-
})), /*#__PURE__*/
|
|
5397
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
5370
5398
|
story: story
|
|
5371
|
-
}), /*#__PURE__*/
|
|
5399
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
5372
5400
|
story: story
|
|
5373
|
-
}), /*#__PURE__*/
|
|
5401
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5374
5402
|
className: "aside-collection-m_story-byline__37KRG"
|
|
5375
|
-
}, /*#__PURE__*/
|
|
5403
|
+
}, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
5376
5404
|
config: opts,
|
|
5377
5405
|
story: story
|
|
5378
5406
|
})))));
|
|
5379
|
-
}) : /*#__PURE__*/
|
|
5407
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5380
5408
|
"data-test-id": "no-stories",
|
|
5381
5409
|
className: "aside-collection-m_info__3p4zt"
|
|
5382
5410
|
}, "No stories found.")));
|
|
5383
5411
|
};
|
|
5384
5412
|
StoryCollection.propTypes = {
|
|
5385
|
-
data:
|
|
5386
|
-
config:
|
|
5387
|
-
horizontal:
|
|
5388
|
-
slotData:
|
|
5389
|
-
opts:
|
|
5413
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
5414
|
+
config: PropTypes__default["default"].object,
|
|
5415
|
+
horizontal: PropTypes__default["default"].bool,
|
|
5416
|
+
slotData: PropTypes__default["default"].object,
|
|
5417
|
+
opts: PropTypes__default["default"].object
|
|
5390
5418
|
};
|
|
5391
5419
|
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
5392
5420
|
var _ref4$data = _ref4.data,
|
|
@@ -5413,14 +5441,14 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5413
5441
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5414
5442
|
|
|
5415
5443
|
if (horizontal) {
|
|
5416
|
-
return /*#__PURE__*/
|
|
5444
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5417
5445
|
style: {
|
|
5418
5446
|
backgroundColor: theme
|
|
5419
5447
|
},
|
|
5420
5448
|
"data-test-id": "aside-collection",
|
|
5421
5449
|
id: "aside-collection-".concat(storyId),
|
|
5422
5450
|
className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap$j)
|
|
5423
|
-
}, /*#__PURE__*/
|
|
5451
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5424
5452
|
data: data,
|
|
5425
5453
|
horizontal: horizontal,
|
|
5426
5454
|
config: config,
|
|
@@ -5433,23 +5461,23 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5433
5461
|
var asideSlot = function asideSlot(type, slot, index) {
|
|
5434
5462
|
switch (type) {
|
|
5435
5463
|
case "ad":
|
|
5436
|
-
return /*#__PURE__*/
|
|
5464
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5437
5465
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5438
5466
|
}, adComponent(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5439
5467
|
id: "ad-".concat(index, "_").concat(storyId)
|
|
5440
5468
|
})));
|
|
5441
5469
|
|
|
5442
5470
|
case "widget":
|
|
5443
|
-
return /*#__PURE__*/
|
|
5471
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5444
5472
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5445
5473
|
}, widgetComp(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5446
5474
|
id: "widget-".concat(index, "_").concat(storyId)
|
|
5447
5475
|
})));
|
|
5448
5476
|
|
|
5449
5477
|
case "collection":
|
|
5450
|
-
return /*#__PURE__*/
|
|
5478
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5451
5479
|
id: "aside-collection-".concat(index, "_").concat(storyId)
|
|
5452
|
-
}, /*#__PURE__*/
|
|
5480
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5453
5481
|
slotData: slot,
|
|
5454
5482
|
data: data,
|
|
5455
5483
|
horizontal: horizontal,
|
|
@@ -5459,13 +5487,13 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5459
5487
|
}
|
|
5460
5488
|
};
|
|
5461
5489
|
|
|
5462
|
-
return /*#__PURE__*/
|
|
5490
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5463
5491
|
style: {
|
|
5464
5492
|
backgroundColor: theme
|
|
5465
5493
|
},
|
|
5466
5494
|
"data-test-id": "aside-collection",
|
|
5467
5495
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$j)
|
|
5468
|
-
}, enableKeyEvents && /*#__PURE__*/
|
|
5496
|
+
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
5469
5497
|
story: keyEventsData.story,
|
|
5470
5498
|
showLoadMore: keyEventsData.showLoadMore,
|
|
5471
5499
|
config: keyEventsData.config
|
|
@@ -5474,21 +5502,21 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5474
5502
|
}));
|
|
5475
5503
|
};
|
|
5476
5504
|
AsideCollectionBase.propTypes = {
|
|
5477
|
-
data:
|
|
5478
|
-
config:
|
|
5479
|
-
opts:
|
|
5480
|
-
horizontal:
|
|
5481
|
-
slots:
|
|
5482
|
-
adComponent:
|
|
5483
|
-
widgetComp:
|
|
5484
|
-
sticky:
|
|
5485
|
-
keyEventsData:
|
|
5486
|
-
story:
|
|
5487
|
-
config:
|
|
5488
|
-
showLoadMore:
|
|
5505
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
5506
|
+
config: PropTypes__default["default"].object,
|
|
5507
|
+
opts: PropTypes__default["default"].object,
|
|
5508
|
+
horizontal: PropTypes__default["default"].bool,
|
|
5509
|
+
slots: PropTypes__default["default"].array,
|
|
5510
|
+
adComponent: PropTypes__default["default"].func,
|
|
5511
|
+
widgetComp: PropTypes__default["default"].func,
|
|
5512
|
+
sticky: PropTypes__default["default"].bool,
|
|
5513
|
+
keyEventsData: PropTypes__default["default"].shape({
|
|
5514
|
+
story: PropTypes__default["default"].object,
|
|
5515
|
+
config: PropTypes__default["default"].object,
|
|
5516
|
+
showLoadMore: PropTypes__default["default"]["boolean"]
|
|
5489
5517
|
}),
|
|
5490
|
-
enableKeyEvents:
|
|
5491
|
-
storyId:
|
|
5518
|
+
enableKeyEvents: PropTypes__default["default"]["boolean"],
|
|
5519
|
+
storyId: PropTypes__default["default"].string
|
|
5492
5520
|
};
|
|
5493
5521
|
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
5494
5522
|
|
|
@@ -5523,9 +5551,9 @@ var authorImage = function authorImage(author) {
|
|
|
5523
5551
|
return null;
|
|
5524
5552
|
}
|
|
5525
5553
|
|
|
5526
|
-
return /*#__PURE__*/
|
|
5554
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5527
5555
|
"data-test-id": "author-image"
|
|
5528
|
-
}, avatarS3Key ? /*#__PURE__*/
|
|
5556
|
+
}, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5529
5557
|
slug: avatarS3Key,
|
|
5530
5558
|
"aspect-ratio": [1, 1],
|
|
5531
5559
|
defaultWidth: 48,
|
|
@@ -5533,7 +5561,7 @@ var authorImage = function authorImage(author) {
|
|
|
5533
5561
|
auto: ["format", "compress"]
|
|
5534
5562
|
},
|
|
5535
5563
|
alt: authorName
|
|
5536
|
-
}) : /*#__PURE__*/
|
|
5564
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5537
5565
|
src: avatarUrl
|
|
5538
5566
|
}));
|
|
5539
5567
|
};
|
|
@@ -5560,60 +5588,60 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
5560
5588
|
_opts$showName = opts.showName,
|
|
5561
5589
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
5562
5590
|
var textColor = getTextColor(configData.theme);
|
|
5563
|
-
return /*#__PURE__*/
|
|
5591
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5564
5592
|
"data-test-id": "author-card-".concat(kebabCase_1(template)),
|
|
5565
5593
|
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap$i)
|
|
5566
5594
|
}, authors.map(function (author, index) {
|
|
5567
|
-
return /*#__PURE__*/
|
|
5595
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
5568
5596
|
key: author.id
|
|
5569
|
-
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/
|
|
5597
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5570
5598
|
"data-test-id": "author-image",
|
|
5571
5599
|
className: "author-card-m_author-image-wrapper__1at-z"
|
|
5572
|
-
}, /*#__PURE__*/
|
|
5600
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5573
5601
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5574
5602
|
key: "author-image-".concat(index),
|
|
5575
5603
|
"aria-label": "author-image"
|
|
5576
|
-
}, /*#__PURE__*/
|
|
5604
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5577
5605
|
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$i)
|
|
5578
5606
|
}, authorImage(author)))));
|
|
5579
|
-
}), showName && /*#__PURE__*/
|
|
5607
|
+
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5580
5608
|
"data-test-id": "author-name",
|
|
5581
5609
|
className: "author-card-m_author-name-share__3vb9q"
|
|
5582
5610
|
}, authors.map(function (author, index) {
|
|
5583
5611
|
var spaceHolder = ",\xA0";
|
|
5584
|
-
return /*#__PURE__*/
|
|
5612
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, index !== 0 && (authors.length > 1 ? spaceHolder : ""), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5585
5613
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5586
5614
|
"aria-label": "author-name"
|
|
5587
|
-
}, /*#__PURE__*/
|
|
5615
|
+
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
5588
5616
|
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap$i)
|
|
5589
5617
|
}, author.name)));
|
|
5590
|
-
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/
|
|
5618
|
+
}), 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", {
|
|
5591
5619
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
5592
|
-
}, /*#__PURE__*/
|
|
5620
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
5593
5621
|
color: textColor
|
|
5594
|
-
})), /*#__PURE__*/
|
|
5622
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5595
5623
|
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
5596
5624
|
target: "_blank",
|
|
5597
5625
|
rel: "noopener noreferrer"
|
|
5598
|
-
}, /*#__PURE__*/
|
|
5626
|
+
}, /*#__PURE__*/React__default["default"].createElement(Twitter, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5599
5627
|
"data-test-id": "author-info",
|
|
5600
5628
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
5601
|
-
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/
|
|
5629
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5602
5630
|
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap$i)
|
|
5603
5631
|
}, authors[0].bio)));
|
|
5604
5632
|
};
|
|
5605
5633
|
AuthorCard.propTypes = {
|
|
5606
|
-
story:
|
|
5607
|
-
authors:
|
|
5634
|
+
story: PropTypes__default["default"].shape({
|
|
5635
|
+
authors: PropTypes__default["default"].array
|
|
5608
5636
|
}),
|
|
5609
|
-
template:
|
|
5610
|
-
opts:
|
|
5611
|
-
showImage:
|
|
5612
|
-
showBio:
|
|
5613
|
-
showName:
|
|
5637
|
+
template: PropTypes__default["default"].string,
|
|
5638
|
+
opts: PropTypes__default["default"].shape({
|
|
5639
|
+
showImage: PropTypes__default["default"].bool,
|
|
5640
|
+
showBio: PropTypes__default["default"].bool,
|
|
5641
|
+
showName: PropTypes__default["default"].bool
|
|
5614
5642
|
}),
|
|
5615
|
-
mountAt:
|
|
5616
|
-
clazzName:
|
|
5643
|
+
mountAt: PropTypes__default["default"].string,
|
|
5644
|
+
clazzName: PropTypes__default["default"].string
|
|
5617
5645
|
};
|
|
5618
5646
|
|
|
5619
5647
|
var _styleModuleImportMap$h = {
|
|
@@ -5650,14 +5678,14 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
5650
5678
|
var caption = heroImageCaption || title;
|
|
5651
5679
|
var attribution = heroImageAttribution || imageAttribution;
|
|
5652
5680
|
var updateStyle = caption ? "wrapper" : "";
|
|
5653
|
-
return /*#__PURE__*/
|
|
5681
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5654
5682
|
"data-test-id": "caption",
|
|
5655
5683
|
className: "arr--caption-attribution " + _getClassName("caption ".concat(textColor), _styleModuleImportMap$h)
|
|
5656
|
-
}, /*#__PURE__*/
|
|
5684
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5657
5685
|
dangerouslySetInnerHTML: {
|
|
5658
5686
|
__html: caption
|
|
5659
5687
|
}
|
|
5660
|
-
}), attribution && /*#__PURE__*/
|
|
5688
|
+
}), attribution && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5661
5689
|
"data-test-id": "attribution",
|
|
5662
5690
|
dangerouslySetInnerHTML: {
|
|
5663
5691
|
__html: attribution
|
|
@@ -5666,13 +5694,13 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
5666
5694
|
}));
|
|
5667
5695
|
};
|
|
5668
5696
|
CaptionAttribution.propTypes = {
|
|
5669
|
-
config:
|
|
5670
|
-
theme:
|
|
5697
|
+
config: PropTypes__default["default"].shape({
|
|
5698
|
+
theme: PropTypes__default["default"].string
|
|
5671
5699
|
}),
|
|
5672
5700
|
story: shapeStory,
|
|
5673
|
-
element:
|
|
5674
|
-
"image-attribution":
|
|
5675
|
-
title:
|
|
5701
|
+
element: PropTypes__default["default"].shape({
|
|
5702
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
5703
|
+
title: PropTypes__default["default"].string
|
|
5676
5704
|
})
|
|
5677
5705
|
};
|
|
5678
5706
|
|
|
@@ -5702,12 +5730,12 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5702
5730
|
_ref$timezone = _ref.timezone,
|
|
5703
5731
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
5704
5732
|
|
|
5705
|
-
var _useState = useState("ltr"),
|
|
5733
|
+
var _useState = React.useState("ltr"),
|
|
5706
5734
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5707
5735
|
direction = _useState2[0],
|
|
5708
5736
|
setDirection = _useState2[1];
|
|
5709
5737
|
|
|
5710
|
-
useEffect(function () {
|
|
5738
|
+
React.useEffect(function () {
|
|
5711
5739
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5712
5740
|
|
|
5713
5741
|
if (htmlElement && htmlElement.length > 0 && htmlElement[0].dir.toLocaleLowerCase() === "rtl") {
|
|
@@ -5733,41 +5761,41 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5733
5761
|
direction: direction,
|
|
5734
5762
|
showTime: true
|
|
5735
5763
|
});
|
|
5736
|
-
return /*#__PURE__*/
|
|
5764
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5737
5765
|
"data-test-id": "timeStamp",
|
|
5738
5766
|
className: "arrow-component arr-publish-details " + _getClassName("timeStamp ".concat(textColor), _styleModuleImportMap$g)
|
|
5739
|
-
}, /*#__PURE__*/
|
|
5767
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5740
5768
|
"data-test-id": "publishDetails",
|
|
5741
5769
|
className: _getClassName("publish-details ".concat(textColor), _styleModuleImportMap$g)
|
|
5742
|
-
}, enablePublishedTime && /*#__PURE__*/
|
|
5770
|
+
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5743
5771
|
className: "publish-details-m_date__3ZIQN"
|
|
5744
|
-
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5772
|
+
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5745
5773
|
story: story,
|
|
5746
5774
|
opts: opts
|
|
5747
|
-
}))), enableUpdatedTime && /*#__PURE__*/
|
|
5775
|
+
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5748
5776
|
"data-test-id": "updateDetails",
|
|
5749
5777
|
className: _getClassName("update-details ".concat(textColor), _styleModuleImportMap$g)
|
|
5750
|
-
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/
|
|
5778
|
+
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5751
5779
|
className: "publish-details-m_date__3ZIQN"
|
|
5752
|
-
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5780
|
+
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5753
5781
|
story: story,
|
|
5754
5782
|
opts: opts
|
|
5755
5783
|
})));
|
|
5756
5784
|
};
|
|
5757
5785
|
PublishDetails.propTypes = {
|
|
5758
5786
|
/** The Story Object from the API response */
|
|
5759
|
-
story:
|
|
5760
|
-
"first-published-at":
|
|
5761
|
-
"last-published-at":
|
|
5762
|
-
"read-time":
|
|
5763
|
-
"updated-at":
|
|
5787
|
+
story: PropTypes__default["default"].shape({
|
|
5788
|
+
"first-published-at": PropTypes__default["default"].number,
|
|
5789
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
5790
|
+
"read-time": PropTypes__default["default"].number,
|
|
5791
|
+
"updated-at": PropTypes__default["default"].number
|
|
5764
5792
|
}),
|
|
5765
|
-
timezone:
|
|
5766
|
-
template:
|
|
5767
|
-
opts:
|
|
5768
|
-
showReadTime:
|
|
5769
|
-
enableUpdatedTime:
|
|
5770
|
-
enablePublishedTime:
|
|
5793
|
+
timezone: PropTypes__default["default"].string,
|
|
5794
|
+
template: PropTypes__default["default"].string,
|
|
5795
|
+
opts: PropTypes__default["default"].shape({
|
|
5796
|
+
showReadTime: PropTypes__default["default"].bool,
|
|
5797
|
+
enableUpdatedTime: PropTypes__default["default"].bool,
|
|
5798
|
+
enablePublishedTime: PropTypes__default["default"].bool
|
|
5771
5799
|
})
|
|
5772
5800
|
};
|
|
5773
5801
|
|
|
@@ -5790,24 +5818,24 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
5790
5818
|
var textColor = getTextColor(configData.theme);
|
|
5791
5819
|
var mountAt = get_1(config, ["mountAt"], "");
|
|
5792
5820
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
5793
|
-
return /*#__PURE__*/
|
|
5821
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5794
5822
|
className: "arrow-component arr--story-tags"
|
|
5795
5823
|
}, tags.length > 0 && tags.map(function (tag, index) {
|
|
5796
|
-
return /*#__PURE__*/
|
|
5824
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5797
5825
|
key: index,
|
|
5798
5826
|
"data-test-id": "story-tag",
|
|
5799
5827
|
className: _getClassName("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$f)
|
|
5800
|
-
}, /*#__PURE__*/
|
|
5828
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5801
5829
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
5802
5830
|
"aria-label": "story-tag-name"
|
|
5803
5831
|
}, tag.name));
|
|
5804
5832
|
}));
|
|
5805
5833
|
};
|
|
5806
5834
|
StoryTags.propTypes = {
|
|
5807
|
-
tags:
|
|
5808
|
-
borderColor:
|
|
5809
|
-
config:
|
|
5810
|
-
template: string
|
|
5835
|
+
tags: PropTypes__default["default"].array,
|
|
5836
|
+
borderColor: PropTypes__default["default"].string,
|
|
5837
|
+
config: PropTypes__default["default"].object,
|
|
5838
|
+
template: PropTypes.string
|
|
5811
5839
|
};
|
|
5812
5840
|
|
|
5813
5841
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -5853,13 +5881,13 @@ var withElementWrapper = function withElementWrapper(StoryElement) {
|
|
|
5853
5881
|
|
|
5854
5882
|
if (!element) return null;
|
|
5855
5883
|
if (render && typeof render === "function") return render(props);
|
|
5856
|
-
return /*#__PURE__*/
|
|
5884
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
|
|
5857
5885
|
element: element
|
|
5858
5886
|
}));
|
|
5859
5887
|
};
|
|
5860
5888
|
};
|
|
5861
5889
|
withElementWrapper.propTypes = {
|
|
5862
|
-
StoryElement:
|
|
5890
|
+
StoryElement: PropTypes__default["default"].element
|
|
5863
5891
|
};
|
|
5864
5892
|
|
|
5865
5893
|
var _excluded$d = ["element", "opts", "css", "story", "config"];
|
|
@@ -5895,7 +5923,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
5895
5923
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
5896
5924
|
var isPromotionalMessage = get_1(element, ["metadata", "promotional-message"], false);
|
|
5897
5925
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
5898
|
-
return /*#__PURE__*/
|
|
5926
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5899
5927
|
style: !isPromotionalMessage ? {
|
|
5900
5928
|
color: textColor
|
|
5901
5929
|
} : {},
|
|
@@ -5910,15 +5938,15 @@ var TextBase = function TextBase(_ref) {
|
|
|
5910
5938
|
};
|
|
5911
5939
|
|
|
5912
5940
|
TextBase.propTypes = {
|
|
5913
|
-
element:
|
|
5914
|
-
text:
|
|
5941
|
+
element: PropTypes__default["default"].shape({
|
|
5942
|
+
text: PropTypes__default["default"].string
|
|
5915
5943
|
}),
|
|
5916
|
-
opts:
|
|
5917
|
-
isExternalLink:
|
|
5944
|
+
opts: PropTypes__default["default"].shape({
|
|
5945
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5918
5946
|
}),
|
|
5919
|
-
css:
|
|
5920
|
-
hyperlinkColor:
|
|
5921
|
-
textColor:
|
|
5947
|
+
css: PropTypes__default["default"].shape({
|
|
5948
|
+
hyperlinkColor: PropTypes__default["default"].string,
|
|
5949
|
+
textColor: PropTypes__default["default"].string
|
|
5922
5950
|
}),
|
|
5923
5951
|
story: shapeStory,
|
|
5924
5952
|
config: shapeConfig
|
|
@@ -5959,13 +5987,13 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5959
5987
|
borderLeft: "solid 2px ".concat(borderColor)
|
|
5960
5988
|
};
|
|
5961
5989
|
|
|
5962
|
-
var _useState = useState(initBorderDirection),
|
|
5990
|
+
var _useState = React.useState(initBorderDirection),
|
|
5963
5991
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5964
5992
|
borderDirection = _useState2[0],
|
|
5965
5993
|
setBorderDirection = _useState2[1];
|
|
5966
5994
|
|
|
5967
5995
|
if (!content) return null;
|
|
5968
|
-
useEffect(function () {
|
|
5996
|
+
React.useEffect(function () {
|
|
5969
5997
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5970
5998
|
|
|
5971
5999
|
if (htmlElement && htmlElement.length) {
|
|
@@ -5982,7 +6010,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5982
6010
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
5983
6011
|
var configData = useStateValue() || {};
|
|
5984
6012
|
var textInvertColor = getTextColor(configData.theme);
|
|
5985
|
-
return /*#__PURE__*/
|
|
6013
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5986
6014
|
"data-test-id": "blurb",
|
|
5987
6015
|
style: borderColor && borderDirection,
|
|
5988
6016
|
dangerouslySetInnerHTML: {
|
|
@@ -5994,19 +6022,19 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5994
6022
|
};
|
|
5995
6023
|
|
|
5996
6024
|
BlurbBase.propTypes = {
|
|
5997
|
-
element:
|
|
5998
|
-
text:
|
|
6025
|
+
element: PropTypes__default["default"].shape({
|
|
6026
|
+
text: PropTypes__default["default"].string
|
|
5999
6027
|
}),
|
|
6000
6028
|
|
|
6001
6029
|
/** templates can be either default or withBorder */
|
|
6002
|
-
template:
|
|
6003
|
-
opts:
|
|
6004
|
-
isExternalLink:
|
|
6030
|
+
template: PropTypes__default["default"].string,
|
|
6031
|
+
opts: PropTypes__default["default"].shape({
|
|
6032
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
6005
6033
|
}),
|
|
6006
6034
|
story: shapeStory,
|
|
6007
6035
|
config: shapeConfig,
|
|
6008
|
-
render:
|
|
6009
|
-
css:
|
|
6036
|
+
render: PropTypes__default["default"].func,
|
|
6037
|
+
css: PropTypes__default["default"].object
|
|
6010
6038
|
};
|
|
6011
6039
|
var Blurb = withElementWrapper(BlurbBase);
|
|
6012
6040
|
|
|
@@ -6059,19 +6087,19 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6059
6087
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
6060
6088
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
6061
6089
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
6062
|
-
return /*#__PURE__*/
|
|
6090
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6063
6091
|
"data-test-id": "summary"
|
|
6064
6092
|
}, restProps, {
|
|
6065
6093
|
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName(templateStyle, _styleModuleImportMap$c) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6066
|
-
}), !hideHeadline && /*#__PURE__*/
|
|
6094
|
+
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6067
6095
|
"data-test-id": "summary-headline",
|
|
6068
6096
|
className: _getClassName("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$c)
|
|
6069
|
-
}, /*#__PURE__*/
|
|
6097
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6070
6098
|
style: {
|
|
6071
6099
|
backgroundColor: updateHeaderColor
|
|
6072
6100
|
},
|
|
6073
6101
|
className: _getClassName("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$c)
|
|
6074
|
-
}, headline)), /*#__PURE__*/
|
|
6102
|
+
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6075
6103
|
dangerouslySetInnerHTML: {
|
|
6076
6104
|
__html: text
|
|
6077
6105
|
},
|
|
@@ -6080,20 +6108,20 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6080
6108
|
};
|
|
6081
6109
|
|
|
6082
6110
|
SummaryBase.propTypes = {
|
|
6083
|
-
element:
|
|
6084
|
-
text:
|
|
6111
|
+
element: PropTypes__default["default"].shape({
|
|
6112
|
+
text: PropTypes__default["default"].string
|
|
6085
6113
|
}),
|
|
6086
|
-
template:
|
|
6087
|
-
opts:
|
|
6088
|
-
isExternalLink:
|
|
6089
|
-
headline:
|
|
6090
|
-
hideHeadline:
|
|
6114
|
+
template: PropTypes__default["default"].string,
|
|
6115
|
+
opts: PropTypes__default["default"].shape({
|
|
6116
|
+
isExternalLink: PropTypes__default["default"].bool,
|
|
6117
|
+
headline: PropTypes__default["default"].string,
|
|
6118
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
6091
6119
|
}),
|
|
6092
6120
|
story: shapeStory,
|
|
6093
6121
|
config: shapeConfig,
|
|
6094
|
-
render:
|
|
6095
|
-
css:
|
|
6096
|
-
headerBgColor:
|
|
6122
|
+
render: PropTypes__default["default"].func,
|
|
6123
|
+
css: PropTypes__default["default"].shape({
|
|
6124
|
+
headerBgColor: PropTypes__default["default"].string
|
|
6097
6125
|
})
|
|
6098
6126
|
};
|
|
6099
6127
|
var Summary = withElementWrapper(SummaryBase);
|
|
@@ -6105,27 +6133,27 @@ var CurveIcon = function CurveIcon(_ref) {
|
|
|
6105
6133
|
opacity = _ref.opacity;
|
|
6106
6134
|
var lightColor = color === "light" && "#ffffff";
|
|
6107
6135
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6108
|
-
return /*#__PURE__*/
|
|
6136
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6109
6137
|
className: "icon-m_curve-wrapper__3-sLV",
|
|
6110
6138
|
style: {
|
|
6111
6139
|
fill: "".concat(lightColor || darkColor || color)
|
|
6112
6140
|
}
|
|
6113
|
-
}, /*#__PURE__*/
|
|
6141
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6114
6142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6115
6143
|
width: width,
|
|
6116
6144
|
height: height,
|
|
6117
6145
|
viewBox: "0 0 64 64"
|
|
6118
|
-
}, /*#__PURE__*/
|
|
6146
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6119
6147
|
fill: "inherit",
|
|
6120
6148
|
opacity: opacity,
|
|
6121
6149
|
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"
|
|
6122
6150
|
})));
|
|
6123
6151
|
};
|
|
6124
6152
|
CurveIcon.propTypes = {
|
|
6125
|
-
width:
|
|
6126
|
-
height:
|
|
6127
|
-
color:
|
|
6128
|
-
opacity:
|
|
6153
|
+
width: PropTypes__default["default"].string,
|
|
6154
|
+
height: PropTypes__default["default"].string,
|
|
6155
|
+
color: PropTypes__default["default"].string,
|
|
6156
|
+
opacity: PropTypes__default["default"].string
|
|
6129
6157
|
};
|
|
6130
6158
|
|
|
6131
6159
|
var EdgeIcon = function EdgeIcon(_ref) {
|
|
@@ -6135,27 +6163,27 @@ var EdgeIcon = function EdgeIcon(_ref) {
|
|
|
6135
6163
|
opacity = _ref.opacity;
|
|
6136
6164
|
var lightColor = color === "light" && "#ffffff";
|
|
6137
6165
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6138
|
-
return /*#__PURE__*/
|
|
6166
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6139
6167
|
className: "icon-m_edge-wrapper__xUOdp",
|
|
6140
6168
|
style: {
|
|
6141
6169
|
fill: "".concat(lightColor || darkColor || color)
|
|
6142
6170
|
}
|
|
6143
|
-
}, /*#__PURE__*/
|
|
6171
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6144
6172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6145
6173
|
width: width,
|
|
6146
6174
|
height: height,
|
|
6147
6175
|
viewBox: "0 0 64 64"
|
|
6148
|
-
}, /*#__PURE__*/
|
|
6176
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6149
6177
|
fill: "inherit",
|
|
6150
6178
|
opacity: opacity,
|
|
6151
6179
|
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"
|
|
6152
6180
|
})));
|
|
6153
6181
|
};
|
|
6154
6182
|
EdgeIcon.propTypes = {
|
|
6155
|
-
width:
|
|
6156
|
-
height:
|
|
6157
|
-
color:
|
|
6158
|
-
opacity:
|
|
6183
|
+
width: PropTypes__default["default"].string,
|
|
6184
|
+
height: PropTypes__default["default"].string,
|
|
6185
|
+
color: PropTypes__default["default"].string,
|
|
6186
|
+
opacity: PropTypes__default["default"].string
|
|
6159
6187
|
};
|
|
6160
6188
|
|
|
6161
6189
|
var _excluded$a = ["element", "template", "css", "story", "config", "render"];
|
|
@@ -6185,7 +6213,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6185
6213
|
|
|
6186
6214
|
if (template === "withBackground") {
|
|
6187
6215
|
if (iconType === "edgeIcon") {
|
|
6188
|
-
return /*#__PURE__*/
|
|
6216
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6189
6217
|
width: dimension,
|
|
6190
6218
|
height: dimension,
|
|
6191
6219
|
color: quoteColor,
|
|
@@ -6193,7 +6221,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6193
6221
|
});
|
|
6194
6222
|
}
|
|
6195
6223
|
|
|
6196
|
-
return /*#__PURE__*/
|
|
6224
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6197
6225
|
width: dimension,
|
|
6198
6226
|
height: dimension,
|
|
6199
6227
|
color: quoteColor,
|
|
@@ -6203,14 +6231,14 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6203
6231
|
|
|
6204
6232
|
if (template !== "withBackground") {
|
|
6205
6233
|
if (iconType === "edgeIcon") {
|
|
6206
|
-
return /*#__PURE__*/
|
|
6234
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6207
6235
|
width: dimension,
|
|
6208
6236
|
height: dimension,
|
|
6209
6237
|
color: blockQuoteColor
|
|
6210
6238
|
});
|
|
6211
6239
|
}
|
|
6212
6240
|
|
|
6213
|
-
return /*#__PURE__*/
|
|
6241
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6214
6242
|
width: dimension,
|
|
6215
6243
|
height: dimension,
|
|
6216
6244
|
color: blockQuoteColor
|
|
@@ -6246,38 +6274,38 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6246
6274
|
var textInvertColor = getTextColor(isBackground ? theme.backgroundColor : configData.theme);
|
|
6247
6275
|
|
|
6248
6276
|
var updateStructure = function updateStructure() {
|
|
6249
|
-
return template === "withBorder" ? /*#__PURE__*/
|
|
6277
|
+
return template === "withBorder" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6250
6278
|
className: "block-quote-m_icon-border__2xQQY"
|
|
6251
|
-
}, /*#__PURE__*/
|
|
6279
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6252
6280
|
className: "block-quote-m_icon__m-EIZ"
|
|
6253
|
-
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/
|
|
6281
|
+
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6254
6282
|
className: "block-quote-m_border__1ZTPR",
|
|
6255
6283
|
style: blockQuoteColor && {
|
|
6256
6284
|
backgroundColor: blockQuoteColor
|
|
6257
6285
|
}
|
|
6258
|
-
})) : /*#__PURE__*/
|
|
6286
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6259
6287
|
className: "block-quote-m_icon__m-EIZ"
|
|
6260
6288
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
6261
6289
|
};
|
|
6262
6290
|
|
|
6263
|
-
return /*#__PURE__*/
|
|
6291
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6264
6292
|
"data-test-id": "blockquote",
|
|
6265
6293
|
style: theme
|
|
6266
6294
|
}, restProps, {
|
|
6267
6295
|
className: "arrow-component arr--block-quote " + _getClassName("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$b) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6268
|
-
}), /*#__PURE__*/
|
|
6296
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6269
6297
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
6270
|
-
}, updateStructure(), /*#__PURE__*/
|
|
6298
|
+
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6271
6299
|
className: "block-quote-m_wrapper__2KEhw",
|
|
6272
6300
|
style: blockQuoteColor && {
|
|
6273
6301
|
borderColor: blockQuoteColor
|
|
6274
6302
|
}
|
|
6275
|
-
}, /*#__PURE__*/
|
|
6303
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6276
6304
|
dangerouslySetInnerHTML: {
|
|
6277
6305
|
__html: content
|
|
6278
6306
|
},
|
|
6279
6307
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$b)
|
|
6280
|
-
}), /*#__PURE__*/
|
|
6308
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6281
6309
|
dangerouslySetInnerHTML: {
|
|
6282
6310
|
__html: attribution
|
|
6283
6311
|
},
|
|
@@ -6285,17 +6313,17 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6285
6313
|
}))));
|
|
6286
6314
|
};
|
|
6287
6315
|
BlockQuoteBase.propTypes = {
|
|
6288
|
-
element:
|
|
6289
|
-
metadata:
|
|
6290
|
-
content:
|
|
6291
|
-
attribution:
|
|
6316
|
+
element: PropTypes__default["default"].shape({
|
|
6317
|
+
metadata: PropTypes__default["default"].shape({
|
|
6318
|
+
content: PropTypes__default["default"].string,
|
|
6319
|
+
attribution: PropTypes__default["default"].string
|
|
6292
6320
|
})
|
|
6293
6321
|
}),
|
|
6294
|
-
template:
|
|
6322
|
+
template: PropTypes__default["default"].string,
|
|
6295
6323
|
story: shapeStory,
|
|
6296
6324
|
config: shapeConfig,
|
|
6297
|
-
render:
|
|
6298
|
-
css:
|
|
6325
|
+
render: PropTypes__default["default"].func,
|
|
6326
|
+
css: PropTypes__default["default"].object
|
|
6299
6327
|
};
|
|
6300
6328
|
var BlockQuote = withElementWrapper(BlockQuoteBase);
|
|
6301
6329
|
|
|
@@ -6323,27 +6351,27 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
6323
6351
|
var _element$metadata = element.metadata,
|
|
6324
6352
|
content = _element$metadata.content,
|
|
6325
6353
|
attribution = _element$metadata.attribution;
|
|
6326
|
-
return /*#__PURE__*/
|
|
6354
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6327
6355
|
"data-test-id": "bigfact"
|
|
6328
6356
|
}, restProps, {
|
|
6329
6357
|
className: "arrow-component arr--bigfact-element " + _getClassName("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$a) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6330
|
-
}), /*#__PURE__*/
|
|
6358
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6331
6359
|
className: "big-fact-m_content__1u2Ul"
|
|
6332
|
-
}, content), /*#__PURE__*/
|
|
6360
|
+
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6333
6361
|
"data-test-id": "attribution",
|
|
6334
6362
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$a)
|
|
6335
6363
|
}, attribution));
|
|
6336
6364
|
};
|
|
6337
6365
|
|
|
6338
6366
|
BigFactBase.propTypes = {
|
|
6339
|
-
element:
|
|
6340
|
-
metadata:
|
|
6341
|
-
content:
|
|
6342
|
-
attribution:
|
|
6367
|
+
element: PropTypes__default["default"].shape({
|
|
6368
|
+
metadata: PropTypes__default["default"].shape({
|
|
6369
|
+
content: PropTypes__default["default"].string,
|
|
6370
|
+
attribution: PropTypes__default["default"].string
|
|
6343
6371
|
})
|
|
6344
6372
|
}),
|
|
6345
|
-
story:
|
|
6346
|
-
config:
|
|
6373
|
+
story: PropTypes__default["default"].object,
|
|
6374
|
+
config: PropTypes__default["default"].object
|
|
6347
6375
|
};
|
|
6348
6376
|
var BigFact = withElementWrapper(BigFactBase);
|
|
6349
6377
|
|
|
@@ -6377,11 +6405,11 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6377
6405
|
var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
|
|
6378
6406
|
var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
|
|
6379
6407
|
var alternateText = story["hero-image-caption"] || story["headline"];
|
|
6380
|
-
return /*#__PURE__*/
|
|
6408
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6381
6409
|
className: "also-read-m_card-image-wrapper__3GFzu"
|
|
6382
|
-
}, !isEmpty(linkedImage) ? /*#__PURE__*/
|
|
6410
|
+
}, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6383
6411
|
className: "also-read-m_card-image__3CwAv"
|
|
6384
|
-
}, /*#__PURE__*/
|
|
6412
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6385
6413
|
slug: linkedImage,
|
|
6386
6414
|
"aspect-ratio": imageAspectRatio,
|
|
6387
6415
|
defaultWidth: 480,
|
|
@@ -6390,19 +6418,19 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6390
6418
|
auto: ["format", "compress"]
|
|
6391
6419
|
},
|
|
6392
6420
|
alt: alternateText
|
|
6393
|
-
}))) : /*#__PURE__*/
|
|
6421
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6394
6422
|
className: "arr--fallback-also-read also-read-m_image__2jdRP"
|
|
6395
|
-
}, /*#__PURE__*/
|
|
6423
|
+
}, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
|
|
6396
6424
|
};
|
|
6397
6425
|
|
|
6398
6426
|
DisplayImage.propTypes = {
|
|
6399
|
-
story:
|
|
6400
|
-
"hero-image-caption":
|
|
6401
|
-
headline:
|
|
6427
|
+
story: PropTypes__default["default"].shape({
|
|
6428
|
+
"hero-image-caption": PropTypes__default["default"].string,
|
|
6429
|
+
headline: PropTypes__default["default"].string
|
|
6402
6430
|
}),
|
|
6403
|
-
linkedImage:
|
|
6404
|
-
template:
|
|
6405
|
-
isRightAlign:
|
|
6431
|
+
linkedImage: PropTypes__default["default"].string,
|
|
6432
|
+
template: PropTypes__default["default"].string,
|
|
6433
|
+
isRightAlign: PropTypes__default["default"].bool
|
|
6406
6434
|
};
|
|
6407
6435
|
|
|
6408
6436
|
var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
@@ -6435,22 +6463,22 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6435
6463
|
var isDefault = template === "" || template === "default";
|
|
6436
6464
|
var isRightAlign = template === "imageRightAlign";
|
|
6437
6465
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
6438
|
-
return /*#__PURE__*/
|
|
6466
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
|
|
6439
6467
|
"data-test-id": "also-read",
|
|
6440
6468
|
href: storyUrl,
|
|
6441
6469
|
"aria-label": "also-read"
|
|
6442
6470
|
}, restProps, {
|
|
6443
6471
|
className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap$9) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6444
|
-
}), !isDefault && /*#__PURE__*/
|
|
6472
|
+
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6445
6473
|
className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap$9)
|
|
6446
|
-
}, displayTitle), isDefault && /*#__PURE__*/
|
|
6474
|
+
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6447
6475
|
story: story,
|
|
6448
6476
|
linkedImage: linkedImage,
|
|
6449
6477
|
template: template,
|
|
6450
6478
|
isRightAlign: isRightAlign
|
|
6451
|
-
}), /*#__PURE__*/
|
|
6479
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6452
6480
|
className: "also-read-m_content-wrapper__26AZX"
|
|
6453
|
-
}, /*#__PURE__*/
|
|
6481
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6454
6482
|
className: "also-read-m_headline__VzF-c",
|
|
6455
6483
|
style: textColor ? {
|
|
6456
6484
|
color: textColor
|
|
@@ -6460,7 +6488,7 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6460
6488
|
dangerouslySetInnerHTML: {
|
|
6461
6489
|
__html: content
|
|
6462
6490
|
}
|
|
6463
|
-
}), isRightAlign && /*#__PURE__*/
|
|
6491
|
+
}), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6464
6492
|
story: story,
|
|
6465
6493
|
linkedImage: linkedImage,
|
|
6466
6494
|
template: template
|
|
@@ -6469,25 +6497,25 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6469
6497
|
|
|
6470
6498
|
AlsoReadBase.propTypes = {
|
|
6471
6499
|
/** template can be default, textLeftAlign or imageRightAlign */
|
|
6472
|
-
template:
|
|
6473
|
-
story:
|
|
6474
|
-
"linked-stories":
|
|
6500
|
+
template: PropTypes__default["default"].string,
|
|
6501
|
+
story: PropTypes__default["default"].shape({
|
|
6502
|
+
"linked-stories": PropTypes__default["default"].object
|
|
6475
6503
|
}),
|
|
6476
|
-
element:
|
|
6477
|
-
text:
|
|
6478
|
-
metadata:
|
|
6479
|
-
linkedStoryId:
|
|
6480
|
-
url:
|
|
6481
|
-
"hero-image-s3-key":
|
|
6504
|
+
element: PropTypes__default["default"].shape({
|
|
6505
|
+
text: PropTypes__default["default"].string,
|
|
6506
|
+
metadata: PropTypes__default["default"].shape({
|
|
6507
|
+
linkedStoryId: PropTypes__default["default"].shape({
|
|
6508
|
+
url: PropTypes__default["default"].string,
|
|
6509
|
+
"hero-image-s3-key": PropTypes__default["default"].string
|
|
6482
6510
|
})
|
|
6483
6511
|
})
|
|
6484
6512
|
}),
|
|
6485
|
-
opts:
|
|
6486
|
-
title:
|
|
6513
|
+
opts: PropTypes__default["default"].shape({
|
|
6514
|
+
title: PropTypes__default["default"].string
|
|
6487
6515
|
}),
|
|
6488
6516
|
config: shapeConfig,
|
|
6489
|
-
render:
|
|
6490
|
-
css:
|
|
6517
|
+
render: PropTypes__default["default"].func,
|
|
6518
|
+
css: PropTypes__default["default"].object
|
|
6491
6519
|
};
|
|
6492
6520
|
var AlsoRead = withElementWrapper(AlsoReadBase);
|
|
6493
6521
|
|
|
@@ -6495,20 +6523,20 @@ var Loading = function Loading(_ref) {
|
|
|
6495
6523
|
_ref.width;
|
|
6496
6524
|
_ref.height;
|
|
6497
6525
|
_ref.iconColor;
|
|
6498
|
-
return /*#__PURE__*/
|
|
6526
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6499
6527
|
className: "loading-m_loading-indicator__2Dlst"
|
|
6500
|
-
}, /*#__PURE__*/
|
|
6528
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6501
6529
|
width: "40",
|
|
6502
6530
|
height: "40",
|
|
6503
6531
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6504
6532
|
viewBox: "0 0 100 100",
|
|
6505
6533
|
preserveAspectRatio: "xMidYMid"
|
|
6506
|
-
}, /*#__PURE__*/
|
|
6534
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6507
6535
|
cx: "84",
|
|
6508
6536
|
cy: "50",
|
|
6509
6537
|
r: "0",
|
|
6510
6538
|
fill: "currentColor"
|
|
6511
|
-
}, /*#__PURE__*/
|
|
6539
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6512
6540
|
attributeName: "r",
|
|
6513
6541
|
values: "10;0;0;0;0",
|
|
6514
6542
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6517,7 +6545,7 @@ var Loading = function Loading(_ref) {
|
|
|
6517
6545
|
dur: "2s",
|
|
6518
6546
|
repeatCount: "indefinite",
|
|
6519
6547
|
begin: "0s"
|
|
6520
|
-
}), /*#__PURE__*/
|
|
6548
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6521
6549
|
attributeName: "cx",
|
|
6522
6550
|
values: "84;84;84;84;84",
|
|
6523
6551
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6526,12 +6554,12 @@ var Loading = function Loading(_ref) {
|
|
|
6526
6554
|
dur: "2s",
|
|
6527
6555
|
repeatCount: "indefinite",
|
|
6528
6556
|
begin: "0s"
|
|
6529
|
-
})), /*#__PURE__*/
|
|
6557
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6530
6558
|
cx: "84",
|
|
6531
6559
|
cy: "50",
|
|
6532
6560
|
r: ".709",
|
|
6533
6561
|
fill: "currentColor"
|
|
6534
|
-
}, /*#__PURE__*/
|
|
6562
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6535
6563
|
attributeName: "r",
|
|
6536
6564
|
values: "0;10;10;10;0",
|
|
6537
6565
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6540,7 +6568,7 @@ var Loading = function Loading(_ref) {
|
|
|
6540
6568
|
dur: "2s",
|
|
6541
6569
|
repeatCount: "indefinite",
|
|
6542
6570
|
begin: "-1s"
|
|
6543
|
-
}), /*#__PURE__*/
|
|
6571
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6544
6572
|
attributeName: "cx",
|
|
6545
6573
|
values: "16;16;50;84;84",
|
|
6546
6574
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6549,12 +6577,12 @@ var Loading = function Loading(_ref) {
|
|
|
6549
6577
|
dur: "2s",
|
|
6550
6578
|
repeatCount: "indefinite",
|
|
6551
6579
|
begin: "-1s"
|
|
6552
|
-
})), /*#__PURE__*/
|
|
6580
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6553
6581
|
cx: "81.59",
|
|
6554
6582
|
cy: "50",
|
|
6555
6583
|
r: "10",
|
|
6556
6584
|
fill: "currentColor"
|
|
6557
|
-
}, /*#__PURE__*/
|
|
6585
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6558
6586
|
attributeName: "r",
|
|
6559
6587
|
values: "0;10;10;10;0",
|
|
6560
6588
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6563,7 +6591,7 @@ var Loading = function Loading(_ref) {
|
|
|
6563
6591
|
dur: "2s",
|
|
6564
6592
|
repeatCount: "indefinite",
|
|
6565
6593
|
begin: "-0.5s"
|
|
6566
|
-
}), /*#__PURE__*/
|
|
6594
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6567
6595
|
attributeName: "cx",
|
|
6568
6596
|
values: "16;16;50;84;84",
|
|
6569
6597
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6572,12 +6600,12 @@ var Loading = function Loading(_ref) {
|
|
|
6572
6600
|
dur: "2s",
|
|
6573
6601
|
repeatCount: "indefinite",
|
|
6574
6602
|
begin: "-0.5s"
|
|
6575
|
-
})), /*#__PURE__*/
|
|
6603
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6576
6604
|
cx: "47.59",
|
|
6577
6605
|
cy: "50",
|
|
6578
6606
|
r: "10",
|
|
6579
6607
|
fill: "currentColor"
|
|
6580
|
-
}, /*#__PURE__*/
|
|
6608
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6581
6609
|
attributeName: "r",
|
|
6582
6610
|
values: "0;10;10;10;0",
|
|
6583
6611
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6586,7 +6614,7 @@ var Loading = function Loading(_ref) {
|
|
|
6586
6614
|
dur: "2s",
|
|
6587
6615
|
repeatCount: "indefinite",
|
|
6588
6616
|
begin: "0s"
|
|
6589
|
-
}), /*#__PURE__*/
|
|
6617
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6590
6618
|
attributeName: "cx",
|
|
6591
6619
|
values: "16;16;50;84;84",
|
|
6592
6620
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6595,12 +6623,12 @@ var Loading = function Loading(_ref) {
|
|
|
6595
6623
|
dur: "2s",
|
|
6596
6624
|
repeatCount: "indefinite",
|
|
6597
6625
|
begin: "0s"
|
|
6598
|
-
})), /*#__PURE__*/
|
|
6626
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6599
6627
|
cx: "16",
|
|
6600
6628
|
cy: "50",
|
|
6601
6629
|
r: "9.291",
|
|
6602
6630
|
fill: "currentColor"
|
|
6603
|
-
}, /*#__PURE__*/
|
|
6631
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6604
6632
|
attributeName: "r",
|
|
6605
6633
|
values: "0;0;10;10;10",
|
|
6606
6634
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6609,7 +6637,7 @@ var Loading = function Loading(_ref) {
|
|
|
6609
6637
|
dur: "2s",
|
|
6610
6638
|
repeatCount: "indefinite",
|
|
6611
6639
|
begin: "0s"
|
|
6612
|
-
}), /*#__PURE__*/
|
|
6640
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6613
6641
|
attributeName: "cx",
|
|
6614
6642
|
values: "16;16;16;50;84",
|
|
6615
6643
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6621,16 +6649,16 @@ var Loading = function Loading(_ref) {
|
|
|
6621
6649
|
}))));
|
|
6622
6650
|
};
|
|
6623
6651
|
Loading.propTypes = {
|
|
6624
|
-
width:
|
|
6625
|
-
height:
|
|
6626
|
-
iconColor:
|
|
6652
|
+
width: PropTypes__default["default"].object,
|
|
6653
|
+
height: PropTypes__default["default"].object,
|
|
6654
|
+
iconColor: PropTypes__default["default"].object
|
|
6627
6655
|
};
|
|
6628
6656
|
|
|
6629
6657
|
function ownKeys(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; }
|
|
6630
6658
|
|
|
6631
6659
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6632
|
-
var Lightbox = /*#__PURE__*/lazy(function () {
|
|
6633
|
-
return
|
|
6660
|
+
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
6661
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
6634
6662
|
});
|
|
6635
6663
|
var FullScreenImages = function FullScreenImages(_ref) {
|
|
6636
6664
|
var _ref$imageSlug = _ref.imageSlug,
|
|
@@ -6639,16 +6667,16 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6639
6667
|
_ref$element = _ref.element,
|
|
6640
6668
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
6641
6669
|
props = _ref.props;
|
|
6642
|
-
var cdnImage = useSelector(function (state) {
|
|
6670
|
+
var cdnImage = reactRedux.useSelector(function (state) {
|
|
6643
6671
|
return get_1(state, ["qt", "config", "cdn-image"]);
|
|
6644
6672
|
});
|
|
6645
6673
|
|
|
6646
|
-
var _useState = useState(0),
|
|
6674
|
+
var _useState = React.useState(0),
|
|
6647
6675
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6648
6676
|
photoIndex = _useState2[0],
|
|
6649
6677
|
handleImage = _useState2[1];
|
|
6650
6678
|
|
|
6651
|
-
var _useState3 = useState(false),
|
|
6679
|
+
var _useState3 = React.useState(false),
|
|
6652
6680
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
6653
6681
|
isOpen = _useState4[0],
|
|
6654
6682
|
handleOpen = _useState4[1];
|
|
@@ -6690,7 +6718,7 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6690
6718
|
|
|
6691
6719
|
var getHyperLink = function getHyperLink() {
|
|
6692
6720
|
if (element.hyperlink || hyperlinks[photoIndex]) {
|
|
6693
|
-
return /*#__PURE__*/
|
|
6721
|
+
return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6694
6722
|
hyperLink: element.hyperlink || hyperlinks[photoIndex]
|
|
6695
6723
|
});
|
|
6696
6724
|
}
|
|
@@ -6715,23 +6743,23 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6715
6743
|
};
|
|
6716
6744
|
|
|
6717
6745
|
var LoadingScreen = function LoadingScreen() {
|
|
6718
|
-
return /*#__PURE__*/
|
|
6746
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
6719
6747
|
};
|
|
6720
6748
|
|
|
6721
|
-
return /*#__PURE__*/
|
|
6722
|
-
fallback: /*#__PURE__*/
|
|
6723
|
-
}, /*#__PURE__*/
|
|
6749
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread(_defineProperty({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
6750
|
+
fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
|
|
6751
|
+
}, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends({
|
|
6724
6752
|
wrapperClassName: "arr--image-lightbox",
|
|
6725
6753
|
onCloseRequest: onClose
|
|
6726
6754
|
}, lightboxProps))) : null);
|
|
6727
6755
|
};
|
|
6728
6756
|
FullScreenImages.propTypes = {
|
|
6729
|
-
imageSlug:
|
|
6730
|
-
template:
|
|
6731
|
-
element:
|
|
6732
|
-
"story-elements":
|
|
6757
|
+
imageSlug: PropTypes__default["default"].string,
|
|
6758
|
+
template: PropTypes__default["default"].func,
|
|
6759
|
+
element: PropTypes__default["default"].shape({
|
|
6760
|
+
"story-elements": PropTypes__default["default"].array
|
|
6733
6761
|
}),
|
|
6734
|
-
props:
|
|
6762
|
+
props: PropTypes__default["default"].object
|
|
6735
6763
|
};
|
|
6736
6764
|
|
|
6737
6765
|
var _excluded$7 = ["element", "opts", "story", "config", "caption"];
|
|
@@ -6752,14 +6780,14 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6752
6780
|
|
|
6753
6781
|
var ImageTemplate = function ImageTemplate(_ref2) {
|
|
6754
6782
|
var _onClick = _ref2.onClick;
|
|
6755
|
-
return /*#__PURE__*/
|
|
6783
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6756
6784
|
className: "image-m_image-template__3s9OA"
|
|
6757
|
-
}, /*#__PURE__*/
|
|
6785
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6758
6786
|
className: "image-m_element__KVuzX",
|
|
6759
6787
|
onClick: function onClick() {
|
|
6760
6788
|
return _onClick();
|
|
6761
6789
|
}
|
|
6762
|
-
}, /*#__PURE__*/
|
|
6790
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6763
6791
|
slug: element["image-s3-key"],
|
|
6764
6792
|
metadata: element["image-metadata"],
|
|
6765
6793
|
alt: element["title"],
|
|
@@ -6769,40 +6797,40 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6769
6797
|
imgParams: {
|
|
6770
6798
|
auto: ["format", "compress"]
|
|
6771
6799
|
}
|
|
6772
|
-
})), element["hyperlink"] && /*#__PURE__*/
|
|
6800
|
+
})), element["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6773
6801
|
hyperLink: element["hyperlink"]
|
|
6774
6802
|
}));
|
|
6775
6803
|
};
|
|
6776
6804
|
|
|
6777
6805
|
ImageTemplate.propTypes = {
|
|
6778
|
-
onClick:
|
|
6806
|
+
onClick: PropTypes__default["default"].func
|
|
6779
6807
|
};
|
|
6780
|
-
return /*#__PURE__*/
|
|
6808
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6781
6809
|
className: "arrow-component arr--image-element"
|
|
6782
6810
|
}, restProps, {
|
|
6783
6811
|
"data-test-id": "image-element"
|
|
6784
|
-
}), /*#__PURE__*/
|
|
6812
|
+
}), /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6785
6813
|
template: ImageTemplate,
|
|
6786
6814
|
element: element,
|
|
6787
6815
|
imageSlug: element["image-s3-key"],
|
|
6788
6816
|
story: story
|
|
6789
|
-
}), caption && /*#__PURE__*/
|
|
6817
|
+
}), caption && /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
6790
6818
|
element: element,
|
|
6791
6819
|
config: configData
|
|
6792
6820
|
}));
|
|
6793
6821
|
};
|
|
6794
6822
|
|
|
6795
6823
|
ImageBase.propTypes = {
|
|
6796
|
-
element:
|
|
6797
|
-
"image-s3-key":
|
|
6798
|
-
"image-metadata":
|
|
6799
|
-
"image-attribution":
|
|
6800
|
-
title:
|
|
6801
|
-
hyperlink:
|
|
6824
|
+
element: PropTypes__default["default"].shape({
|
|
6825
|
+
"image-s3-key": PropTypes__default["default"].string,
|
|
6826
|
+
"image-metadata": PropTypes__default["default"].object,
|
|
6827
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
6828
|
+
title: PropTypes__default["default"].string,
|
|
6829
|
+
hyperlink: PropTypes__default["default"].string
|
|
6802
6830
|
}),
|
|
6803
|
-
caption:
|
|
6804
|
-
opts:
|
|
6805
|
-
imageWidths:
|
|
6831
|
+
caption: PropTypes__default["default"].bool,
|
|
6832
|
+
opts: PropTypes__default["default"].shape({
|
|
6833
|
+
imageWidths: PropTypes__default["default"].array
|
|
6806
6834
|
}),
|
|
6807
6835
|
story: shapeStory,
|
|
6808
6836
|
config: shapeConfig
|
|
@@ -6895,14 +6923,14 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6895
6923
|
var isAuthorImageTemplate = template === "withAuthorImage";
|
|
6896
6924
|
var templateStyle = isAuthorImageTemplate ? "qa-withAuthorImage" : "qa-default";
|
|
6897
6925
|
var iconType = defaultIconType === "curve" ? "curveIcon" : "edgeIcon";
|
|
6898
|
-
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/
|
|
6926
|
+
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6899
6927
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6900
|
-
}, /*#__PURE__*/
|
|
6928
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6901
6929
|
src: questionAttribution,
|
|
6902
6930
|
loading: "lazy"
|
|
6903
|
-
})), /*#__PURE__*/
|
|
6931
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6904
6932
|
className: "question-answer-m_hidden__K0n4n"
|
|
6905
|
-
})) : /*#__PURE__*/
|
|
6933
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6906
6934
|
"data-test-id": iconType,
|
|
6907
6935
|
style: {
|
|
6908
6936
|
backgroundColor: iconColor
|
|
@@ -6910,36 +6938,36 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6910
6938
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6911
6939
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
6912
6940
|
|
|
6913
|
-
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/
|
|
6941
|
+
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6914
6942
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6915
|
-
}, /*#__PURE__*/
|
|
6943
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6916
6944
|
src: answerAttribution,
|
|
6917
6945
|
loading: "lazy"
|
|
6918
|
-
})), /*#__PURE__*/
|
|
6946
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6919
6947
|
className: "question-answer-m_hidden__K0n4n"
|
|
6920
|
-
})) : /*#__PURE__*/
|
|
6948
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6921
6949
|
"data-test-id": iconType,
|
|
6922
6950
|
style: {
|
|
6923
6951
|
backgroundColor: iconColor
|
|
6924
6952
|
},
|
|
6925
6953
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6926
6954
|
}, "A");
|
|
6927
|
-
return /*#__PURE__*/
|
|
6955
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6928
6956
|
"data-test-id": "question-answer"
|
|
6929
6957
|
}, restProps, {
|
|
6930
6958
|
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap$8) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6931
|
-
}), type !== "answer" && /*#__PURE__*/
|
|
6959
|
+
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6932
6960
|
className: "question-answer-m_q-element__1ZA5d",
|
|
6933
6961
|
"data-test-id": "question"
|
|
6934
|
-
}, supportQuestionElement, /*#__PURE__*/
|
|
6962
|
+
}, supportQuestionElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6935
6963
|
dangerouslySetInnerHTML: {
|
|
6936
6964
|
__html: questionData
|
|
6937
6965
|
},
|
|
6938
6966
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$8)
|
|
6939
|
-
})), type !== "question" && /*#__PURE__*/
|
|
6967
|
+
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6940
6968
|
className: "question-answer-m_a-element__BTxfl",
|
|
6941
6969
|
"data-test-id": "answer"
|
|
6942
|
-
}, supportAnswerElement, /*#__PURE__*/
|
|
6970
|
+
}, supportAnswerElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6943
6971
|
dangerouslySetInnerHTML: {
|
|
6944
6972
|
__html: answerData
|
|
6945
6973
|
},
|
|
@@ -6948,29 +6976,29 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6948
6976
|
};
|
|
6949
6977
|
|
|
6950
6978
|
QuestionAnswerBase.propTypes = {
|
|
6951
|
-
element:
|
|
6952
|
-
metadata:
|
|
6953
|
-
interviewer:
|
|
6954
|
-
"avatar-url":
|
|
6979
|
+
element: PropTypes__default["default"].shape({
|
|
6980
|
+
metadata: PropTypes__default["default"].shape({
|
|
6981
|
+
interviewer: PropTypes__default["default"].shape({
|
|
6982
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6955
6983
|
}),
|
|
6956
|
-
interviewee:
|
|
6957
|
-
"avatar-url":
|
|
6984
|
+
interviewee: PropTypes__default["default"].shape({
|
|
6985
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6958
6986
|
}),
|
|
6959
|
-
question:
|
|
6960
|
-
answer:
|
|
6987
|
+
question: PropTypes__default["default"].string,
|
|
6988
|
+
answer: PropTypes__default["default"].string
|
|
6961
6989
|
}),
|
|
6962
|
-
text:
|
|
6990
|
+
text: PropTypes__default["default"].string
|
|
6963
6991
|
}),
|
|
6964
|
-
opts:
|
|
6965
|
-
type:
|
|
6966
|
-
defaultIconType:
|
|
6967
|
-
isExternalLink:
|
|
6992
|
+
opts: PropTypes__default["default"].shape({
|
|
6993
|
+
type: PropTypes__default["default"].string,
|
|
6994
|
+
defaultIconType: PropTypes__default["default"].string,
|
|
6995
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
6968
6996
|
}),
|
|
6969
|
-
template:
|
|
6970
|
-
css:
|
|
6997
|
+
template: PropTypes__default["default"].string,
|
|
6998
|
+
css: PropTypes__default["default"].object,
|
|
6971
6999
|
config: shapeConfig,
|
|
6972
7000
|
story: shapeStory,
|
|
6973
|
-
render:
|
|
7001
|
+
render: PropTypes__default["default"].func
|
|
6974
7002
|
};
|
|
6975
7003
|
var QuestionAnswer = withElementWrapper(QuestionAnswerBase);
|
|
6976
7004
|
|
|
@@ -7012,17 +7040,17 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7012
7040
|
var ImageGalleryImagesTemplate = function ImageGalleryImagesTemplate(_ref2) {
|
|
7013
7041
|
var onClickHandler = _ref2.onClickHandler;
|
|
7014
7042
|
var images = renderImage.map(function (image, index) {
|
|
7015
|
-
return /*#__PURE__*/
|
|
7043
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7016
7044
|
key: index,
|
|
7017
7045
|
className: _getClassName(hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$7)
|
|
7018
|
-
}, /*#__PURE__*/
|
|
7046
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7019
7047
|
key: index,
|
|
7020
7048
|
"data-text-id": "image-".concat(index),
|
|
7021
7049
|
onClick: function onClick() {
|
|
7022
7050
|
return onClickHandler && onClickHandler(index);
|
|
7023
7051
|
},
|
|
7024
7052
|
className: _getClassName("image ".concat(classes), _styleModuleImportMap$7)
|
|
7025
|
-
}, /*#__PURE__*/
|
|
7053
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7026
7054
|
slug: image["image-s3-key"],
|
|
7027
7055
|
metadata: image["image-metadata"],
|
|
7028
7056
|
alt: image["title"],
|
|
@@ -7031,11 +7059,11 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7031
7059
|
imgParams: {
|
|
7032
7060
|
auto: ["format", "compress"]
|
|
7033
7061
|
}
|
|
7034
|
-
})), image["hyperlink"] && /*#__PURE__*/
|
|
7062
|
+
})), image["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7035
7063
|
hyperLink: image["hyperlink"]
|
|
7036
7064
|
}));
|
|
7037
7065
|
});
|
|
7038
|
-
return /*#__PURE__*/
|
|
7066
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7039
7067
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
7040
7068
|
}, restProps, {
|
|
7041
7069
|
"data-test-id": "image-gallery"
|
|
@@ -7043,24 +7071,24 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7043
7071
|
};
|
|
7044
7072
|
|
|
7045
7073
|
ImageGalleryImagesTemplate.propTypes = {
|
|
7046
|
-
onClickHandler:
|
|
7074
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7047
7075
|
};
|
|
7048
|
-
return /*#__PURE__*/
|
|
7076
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7049
7077
|
template: ImageGalleryImagesTemplate,
|
|
7050
7078
|
element: element
|
|
7051
7079
|
});
|
|
7052
7080
|
};
|
|
7053
7081
|
|
|
7054
7082
|
ImageGalleryBase.propTypes = {
|
|
7055
|
-
element:
|
|
7056
|
-
"story-elements":
|
|
7083
|
+
element: PropTypes__default["default"].shape({
|
|
7084
|
+
"story-elements": PropTypes__default["default"].array
|
|
7057
7085
|
}),
|
|
7058
|
-
opts:
|
|
7059
|
-
imageWidths:
|
|
7086
|
+
opts: PropTypes__default["default"].shape({
|
|
7087
|
+
imageWidths: PropTypes__default["default"].array
|
|
7060
7088
|
}),
|
|
7061
7089
|
story: shapeStory,
|
|
7062
7090
|
config: shapeConfig,
|
|
7063
|
-
template:
|
|
7091
|
+
template: PropTypes__default["default"].string
|
|
7064
7092
|
};
|
|
7065
7093
|
var ImageGallery = withElementWrapper(ImageGalleryBase);
|
|
7066
7094
|
|
|
@@ -7072,16 +7100,16 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
7072
7100
|
_ref.config;
|
|
7073
7101
|
var restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
7074
7102
|
|
|
7075
|
-
return /*#__PURE__*/
|
|
7103
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, restProps, {
|
|
7076
7104
|
"data-test-id": "story-elements"
|
|
7077
|
-
}), /*#__PURE__*/
|
|
7105
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
7078
7106
|
element: element
|
|
7079
7107
|
}));
|
|
7080
7108
|
};
|
|
7081
7109
|
|
|
7082
7110
|
var StoryElement = withElementWrapper(StoryElementBase);
|
|
7083
7111
|
StoryElementBase.propTypes = {
|
|
7084
|
-
element:
|
|
7112
|
+
element: PropTypes__default["default"].object,
|
|
7085
7113
|
story: shapeStory,
|
|
7086
7114
|
config: shapeConfig
|
|
7087
7115
|
};
|
|
@@ -7096,21 +7124,21 @@ var Videobase = function Videobase(_ref) {
|
|
|
7096
7124
|
loadIframeOnClick = _ref$loadIframeOnClic === void 0 ? false : _ref$loadIframeOnClic,
|
|
7097
7125
|
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
7098
7126
|
|
|
7099
|
-
return /*#__PURE__*/
|
|
7127
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7100
7128
|
className: "video-m_container__MYuWI" + (" " + (restProps ? restProps.className || "" : ""))
|
|
7101
7129
|
}, restProps, {
|
|
7102
7130
|
"data-test-id": "video"
|
|
7103
|
-
}), /*#__PURE__*/
|
|
7131
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
7104
7132
|
element: element,
|
|
7105
7133
|
loadIframeOnClick: loadIframeOnClick
|
|
7106
7134
|
}));
|
|
7107
7135
|
};
|
|
7108
7136
|
|
|
7109
7137
|
Videobase.propTypes = {
|
|
7110
|
-
element:
|
|
7138
|
+
element: PropTypes__default["default"].object,
|
|
7111
7139
|
story: shapeStory,
|
|
7112
7140
|
config: shapeConfig,
|
|
7113
|
-
loadIframeOnClick:
|
|
7141
|
+
loadIframeOnClick: PropTypes__default["default"].bool
|
|
7114
7142
|
};
|
|
7115
7143
|
var Video = withElementWrapper(Videobase);
|
|
7116
7144
|
|
|
@@ -7151,16 +7179,16 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7151
7179
|
var borderColor = css.borderColor;
|
|
7152
7180
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
7153
7181
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
7154
|
-
return /*#__PURE__*/
|
|
7182
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7155
7183
|
"data-test-id": "quote"
|
|
7156
7184
|
}, restProps, {
|
|
7157
7185
|
className: "arrow-component arr--quote-element " + _getClassName(templateStyle, _styleModuleImportMap$6) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7158
|
-
}), template === "borderTopSmall" && /*#__PURE__*/
|
|
7186
|
+
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7159
7187
|
className: "quote-m_line__3gtoE",
|
|
7160
7188
|
style: borderColor && {
|
|
7161
7189
|
backgroundColor: borderColor
|
|
7162
7190
|
}
|
|
7163
|
-
}), /*#__PURE__*/
|
|
7191
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7164
7192
|
style: borderColor && {
|
|
7165
7193
|
borderLeft: updateBorderColor
|
|
7166
7194
|
},
|
|
@@ -7168,26 +7196,26 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7168
7196
|
__html: content
|
|
7169
7197
|
},
|
|
7170
7198
|
className: _getClassName("text ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7171
|
-
}), /*#__PURE__*/
|
|
7199
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7172
7200
|
"data-test-id": "quote-attribution",
|
|
7173
7201
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7174
7202
|
}, attribution));
|
|
7175
7203
|
};
|
|
7176
7204
|
|
|
7177
7205
|
QuoteBase.propTypes = {
|
|
7178
|
-
element:
|
|
7179
|
-
metadata:
|
|
7180
|
-
content:
|
|
7181
|
-
attribution:
|
|
7206
|
+
element: PropTypes__default["default"].shape({
|
|
7207
|
+
metadata: PropTypes__default["default"].shape({
|
|
7208
|
+
content: PropTypes__default["default"].string,
|
|
7209
|
+
attribution: PropTypes__default["default"].string
|
|
7182
7210
|
})
|
|
7183
7211
|
}),
|
|
7184
7212
|
|
|
7185
7213
|
/** template can be default, borderTopSmall and borderLeft */
|
|
7186
|
-
template:
|
|
7214
|
+
template: PropTypes__default["default"].string,
|
|
7187
7215
|
story: shapeStory,
|
|
7188
7216
|
config: shapeConfig,
|
|
7189
|
-
render:
|
|
7190
|
-
css:
|
|
7217
|
+
render: PropTypes__default["default"].func,
|
|
7218
|
+
css: PropTypes__default["default"].object
|
|
7191
7219
|
};
|
|
7192
7220
|
var Quote = withElementWrapper(QuoteBase);
|
|
7193
7221
|
|
|
@@ -7221,7 +7249,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7221
7249
|
var _opts$showHeadline = opts.showHeadline,
|
|
7222
7250
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
7223
7251
|
headlineText = opts.headlineText;
|
|
7224
|
-
return /*#__PURE__*/
|
|
7252
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7225
7253
|
className: "arrow-component arr--reference-element"
|
|
7226
7254
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
7227
7255
|
var _metadata$name = metadata.name,
|
|
@@ -7229,33 +7257,33 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7229
7257
|
_metadata$description = metadata.description,
|
|
7230
7258
|
description = _metadata$description === void 0 ? "" : _metadata$description,
|
|
7231
7259
|
url = metadata.url;
|
|
7232
|
-
return /*#__PURE__*/
|
|
7260
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7233
7261
|
key: index,
|
|
7234
7262
|
className: _getClassName("wrapper ".concat(textInvertColor), _styleModuleImportMap$5)
|
|
7235
|
-
}, /*#__PURE__*/
|
|
7263
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7236
7264
|
href: url,
|
|
7237
7265
|
"aria-label": "reference-headline"
|
|
7238
|
-
}, showHeadline && /*#__PURE__*/
|
|
7266
|
+
}, showHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7239
7267
|
className: "reference-m_name__24IwG",
|
|
7240
7268
|
"data-test-id": "ref-headline"
|
|
7241
|
-
}, headlineText || name), /*#__PURE__*/
|
|
7269
|
+
}, headlineText || name), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7242
7270
|
className: "reference-m_description__2x3Io"
|
|
7243
7271
|
}, description)));
|
|
7244
7272
|
}));
|
|
7245
7273
|
};
|
|
7246
7274
|
|
|
7247
7275
|
ReferenceBase.propTypes = {
|
|
7248
|
-
element:
|
|
7249
|
-
"story-elements":
|
|
7250
|
-
metadata:
|
|
7251
|
-
name:
|
|
7252
|
-
description:
|
|
7253
|
-
url:
|
|
7276
|
+
element: PropTypes__default["default"].shape({
|
|
7277
|
+
"story-elements": PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
7278
|
+
metadata: PropTypes__default["default"].shape({
|
|
7279
|
+
name: PropTypes__default["default"].string,
|
|
7280
|
+
description: PropTypes__default["default"].string,
|
|
7281
|
+
url: PropTypes__default["default"].string
|
|
7254
7282
|
})
|
|
7255
7283
|
}))
|
|
7256
7284
|
}),
|
|
7257
|
-
opts:
|
|
7258
|
-
hideHeadline:
|
|
7285
|
+
opts: PropTypes__default["default"].shape({
|
|
7286
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
7259
7287
|
}),
|
|
7260
7288
|
config: shapeConfig
|
|
7261
7289
|
};
|
|
@@ -7297,28 +7325,28 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7297
7325
|
var textColor = getTextColor(configData.theme);
|
|
7298
7326
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
7299
7327
|
var defaultFileName = fileName || defaultName;
|
|
7300
|
-
return /*#__PURE__*/
|
|
7328
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7301
7329
|
"data-test-id": "attachment"
|
|
7302
7330
|
}, restProps, {
|
|
7303
7331
|
className: "arrow-component arr--attachment-element " + _getClassName(textColor, _styleModuleImportMap$4) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7304
|
-
}), /*#__PURE__*/
|
|
7332
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7305
7333
|
className: "attachment-m_headline__kP7Hs"
|
|
7306
|
-
}, "Attachment"), /*#__PURE__*/
|
|
7334
|
+
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7307
7335
|
className: "attachment-m_wrapper__3gMwN"
|
|
7308
|
-
}, isPdf ? /*#__PURE__*/
|
|
7336
|
+
}, isPdf ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7309
7337
|
"data-test-id": "pdf",
|
|
7310
7338
|
className: "attachment-m_pdf__3i_bR"
|
|
7311
|
-
}, "PDF") : /*#__PURE__*/
|
|
7339
|
+
}, "PDF") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7312
7340
|
"data-test-id": "doc",
|
|
7313
7341
|
className: "attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"
|
|
7314
|
-
}, "DOC"), /*#__PURE__*/
|
|
7342
|
+
}, "DOC"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7315
7343
|
className: "attachment-m_content-wrapper__3Yu0B"
|
|
7316
|
-
}, /*#__PURE__*/
|
|
7344
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7317
7345
|
className: "attachment-m_file-name__1LU9q",
|
|
7318
7346
|
dangerouslySetInnerHTML: {
|
|
7319
7347
|
__html: defaultFileName
|
|
7320
7348
|
}
|
|
7321
|
-
}), /*#__PURE__*/
|
|
7349
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7322
7350
|
className: "attachment-m_button-wrapper__2fajK",
|
|
7323
7351
|
href: url,
|
|
7324
7352
|
target: "_blank",
|
|
@@ -7329,59 +7357,59 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7329
7357
|
};
|
|
7330
7358
|
|
|
7331
7359
|
AttachmentBase.propTypes = {
|
|
7332
|
-
element:
|
|
7333
|
-
url:
|
|
7334
|
-
fileName:
|
|
7335
|
-
contentType:
|
|
7360
|
+
element: PropTypes__default["default"].shape({
|
|
7361
|
+
url: PropTypes__default["default"].string,
|
|
7362
|
+
fileName: PropTypes__default["default"].string,
|
|
7363
|
+
contentType: PropTypes__default["default"].string
|
|
7336
7364
|
}),
|
|
7337
|
-
render:
|
|
7365
|
+
render: PropTypes__default["default"].func
|
|
7338
7366
|
};
|
|
7339
7367
|
var Attachment = withElementWrapper(AttachmentBase);
|
|
7340
7368
|
|
|
7341
7369
|
var LeftArrow = function LeftArrow(_ref) {
|
|
7342
7370
|
var _ref$color = _ref.color,
|
|
7343
7371
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7344
|
-
return /*#__PURE__*/
|
|
7372
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7345
7373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7346
7374
|
width: "16",
|
|
7347
7375
|
height: "16",
|
|
7348
7376
|
viewBox: "0 0 10 16"
|
|
7349
|
-
}, /*#__PURE__*/
|
|
7377
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7350
7378
|
fill: "none",
|
|
7351
7379
|
fillRule: "nonzero"
|
|
7352
|
-
}, /*#__PURE__*/
|
|
7380
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7353
7381
|
d: "M17 20H-7V-4h24z",
|
|
7354
7382
|
opacity: ".384"
|
|
7355
|
-
}), /*#__PURE__*/
|
|
7383
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7356
7384
|
stroke: color,
|
|
7357
7385
|
d: "M9 16L1 8l8-8"
|
|
7358
7386
|
})));
|
|
7359
7387
|
};
|
|
7360
7388
|
LeftArrow.propTypes = {
|
|
7361
|
-
color:
|
|
7389
|
+
color: PropTypes__default["default"].string
|
|
7362
7390
|
};
|
|
7363
7391
|
|
|
7364
7392
|
var RightArrow = function RightArrow(_ref) {
|
|
7365
7393
|
var _ref$color = _ref.color,
|
|
7366
7394
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7367
|
-
return /*#__PURE__*/
|
|
7395
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7368
7396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7369
7397
|
width: "16",
|
|
7370
7398
|
height: "16",
|
|
7371
7399
|
viewBox: "0 0 10 16"
|
|
7372
|
-
}, /*#__PURE__*/
|
|
7400
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7373
7401
|
fill: "none",
|
|
7374
7402
|
fillRule: "nonzero"
|
|
7375
|
-
}, /*#__PURE__*/
|
|
7403
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7376
7404
|
d: "M-7-4h24v24H-7z",
|
|
7377
7405
|
opacity: ".384"
|
|
7378
|
-
}), /*#__PURE__*/
|
|
7406
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7379
7407
|
stroke: color,
|
|
7380
7408
|
d: "M1 0l8 8-8 8"
|
|
7381
7409
|
})));
|
|
7382
7410
|
};
|
|
7383
7411
|
RightArrow.propTypes = {
|
|
7384
|
-
color:
|
|
7412
|
+
color: PropTypes__default["default"].string
|
|
7385
7413
|
};
|
|
7386
7414
|
|
|
7387
7415
|
var _styleModuleImportMap$3 = {
|
|
@@ -7419,26 +7447,26 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
7419
7447
|
|
|
7420
7448
|
var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
|
|
7421
7449
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
7422
|
-
return /*#__PURE__*/
|
|
7450
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7423
7451
|
onClick: previousClick,
|
|
7424
7452
|
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$3)
|
|
7425
|
-
}, /*#__PURE__*/
|
|
7453
|
+
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
7426
7454
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7427
|
-
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/
|
|
7455
|
+
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7428
7456
|
onClick: nextClick,
|
|
7429
7457
|
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$3)
|
|
7430
|
-
}, /*#__PURE__*/
|
|
7458
|
+
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
7431
7459
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7432
7460
|
})) : null);
|
|
7433
7461
|
};
|
|
7434
7462
|
SliderArrow.propTypes = {
|
|
7435
|
-
noOfItems: number,
|
|
7436
|
-
perView: number,
|
|
7437
|
-
slideIndicator: string,
|
|
7438
|
-
previousClick: func,
|
|
7439
|
-
nextClick: func,
|
|
7440
|
-
selectedIndex: number,
|
|
7441
|
-
languageDirection: string
|
|
7463
|
+
noOfItems: PropTypes.number,
|
|
7464
|
+
perView: PropTypes.number,
|
|
7465
|
+
slideIndicator: PropTypes.string,
|
|
7466
|
+
previousClick: PropTypes.func,
|
|
7467
|
+
nextClick: PropTypes.func,
|
|
7468
|
+
selectedIndex: PropTypes.number,
|
|
7469
|
+
languageDirection: PropTypes.string
|
|
7442
7470
|
};
|
|
7443
7471
|
|
|
7444
7472
|
var _styleModuleImportMap$2 = {
|
|
@@ -7466,27 +7494,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
7466
7494
|
|
|
7467
7495
|
var config = useStateValue() || {};
|
|
7468
7496
|
var textColor = getTextColor(config.theme);
|
|
7469
|
-
return /*#__PURE__*/
|
|
7497
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
7470
7498
|
className: "slider-indicators slider-indicator-m_indicators__3MNXc"
|
|
7471
7499
|
}, indicatorItems.map(function (_, index) {
|
|
7472
|
-
return /*#__PURE__*/
|
|
7500
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7473
7501
|
key: "slider-".concat(index),
|
|
7474
7502
|
className: "indicator slider-indicator-m_indicator__gTv3x",
|
|
7475
7503
|
onClick: function onClick(e) {
|
|
7476
7504
|
return indicatorClick(e, index);
|
|
7477
7505
|
}
|
|
7478
|
-
}, /*#__PURE__*/
|
|
7506
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7479
7507
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
7480
7508
|
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$2)
|
|
7481
7509
|
}));
|
|
7482
7510
|
}));
|
|
7483
7511
|
};
|
|
7484
7512
|
SliderIndicator.propTypes = {
|
|
7485
|
-
indicatorItems: array,
|
|
7486
|
-
perView: number,
|
|
7487
|
-
indicatorType: string,
|
|
7488
|
-
indicatorClick: func,
|
|
7489
|
-
selectedIndex: number
|
|
7513
|
+
indicatorItems: PropTypes.array,
|
|
7514
|
+
perView: PropTypes.number,
|
|
7515
|
+
indicatorType: PropTypes.string,
|
|
7516
|
+
indicatorClick: PropTypes.func,
|
|
7517
|
+
selectedIndex: PropTypes.number
|
|
7490
7518
|
};
|
|
7491
7519
|
|
|
7492
7520
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
@@ -7521,24 +7549,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7521
7549
|
perView = _ref.perView,
|
|
7522
7550
|
slideIndicator = _ref.slideIndicator;
|
|
7523
7551
|
|
|
7524
|
-
var _useState = useState(0),
|
|
7552
|
+
var _useState = React.useState(0),
|
|
7525
7553
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7526
7554
|
selectedIndex = _useState2[0],
|
|
7527
7555
|
setSelectedIndex = _useState2[1];
|
|
7528
7556
|
|
|
7529
|
-
var _useState3 = useState(false),
|
|
7557
|
+
var _useState3 = React.useState(false),
|
|
7530
7558
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7531
7559
|
autoScroll = _useState4[0],
|
|
7532
7560
|
setAutoScroll = _useState4[1];
|
|
7533
7561
|
|
|
7534
|
-
var languageDirection = useSelector(function (state) {
|
|
7562
|
+
var languageDirection = reactRedux.useSelector(function (state) {
|
|
7535
7563
|
return get_1(state, ["qt", "config", "language", "direction"], "ltr");
|
|
7536
7564
|
});
|
|
7537
7565
|
var noOfItems = children ? children.length : 0;
|
|
7538
|
-
var scroller = useRef(null);
|
|
7566
|
+
var scroller = React.useRef(null);
|
|
7539
7567
|
var numberOfIndicatorsToShow = children.length - (perView - 1);
|
|
7540
7568
|
var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
|
|
7541
|
-
useEffect(function () {
|
|
7569
|
+
React.useEffect(function () {
|
|
7542
7570
|
if (scroller.current) {
|
|
7543
7571
|
scroller.current.addEventListener("scroll", setIndicatorValue(function () {
|
|
7544
7572
|
var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
|
|
@@ -7555,7 +7583,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7555
7583
|
};
|
|
7556
7584
|
}, []); // Infinite scroll
|
|
7557
7585
|
|
|
7558
|
-
useEffect(function () {
|
|
7586
|
+
React.useEffect(function () {
|
|
7559
7587
|
if (isInfinite && !autoScroll) {
|
|
7560
7588
|
var timer = setInterval(function () {
|
|
7561
7589
|
infiniteScroll();
|
|
@@ -7604,23 +7632,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7604
7632
|
updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
|
|
7605
7633
|
};
|
|
7606
7634
|
|
|
7607
|
-
return /*#__PURE__*/
|
|
7635
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7608
7636
|
className: "scroll-snap-container"
|
|
7609
|
-
}, /*#__PURE__*/
|
|
7637
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7610
7638
|
className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
|
|
7611
7639
|
onMouseEnter: pauseAutoPlay,
|
|
7612
7640
|
onMouseLeave: pauseAutoPlay
|
|
7613
|
-
}, /*#__PURE__*/
|
|
7641
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7614
7642
|
ref: scroller,
|
|
7615
7643
|
className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
|
|
7616
|
-
}, children), isArrow && /*#__PURE__*/
|
|
7644
|
+
}, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
|
|
7617
7645
|
noOfItems: noOfItems,
|
|
7618
7646
|
perView: perView,
|
|
7619
7647
|
previousClick: previousClick,
|
|
7620
7648
|
nextClick: nextClick,
|
|
7621
7649
|
selectedIndex: selectedIndex,
|
|
7622
7650
|
languageDirection: languageDirection
|
|
7623
|
-
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/
|
|
7651
|
+
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
|
|
7624
7652
|
indicatorItems: indicatorItems,
|
|
7625
7653
|
indicatorClick: indicatorClick,
|
|
7626
7654
|
selectedIndex: selectedIndex,
|
|
@@ -7636,13 +7664,13 @@ ScrollSnap.defaultProps = {
|
|
|
7636
7664
|
slideIndicator: "dots"
|
|
7637
7665
|
};
|
|
7638
7666
|
ScrollSnap.propTypes = {
|
|
7639
|
-
children: array.isRequired,
|
|
7640
|
-
isArrow: bool,
|
|
7641
|
-
isInfinite: bool,
|
|
7642
|
-
interval: number,
|
|
7643
|
-
pauseOnHover: bool,
|
|
7644
|
-
perView: number,
|
|
7645
|
-
slideIndicator: string
|
|
7667
|
+
children: PropTypes.array.isRequired,
|
|
7668
|
+
isArrow: PropTypes.bool,
|
|
7669
|
+
isInfinite: PropTypes.bool,
|
|
7670
|
+
interval: PropTypes.number,
|
|
7671
|
+
pauseOnHover: PropTypes.bool,
|
|
7672
|
+
perView: PropTypes.number,
|
|
7673
|
+
slideIndicator: PropTypes.string
|
|
7646
7674
|
};
|
|
7647
7675
|
|
|
7648
7676
|
var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
@@ -7655,18 +7683,18 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7655
7683
|
title = image.title,
|
|
7656
7684
|
_image$hyperlink = image.hyperlink,
|
|
7657
7685
|
hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
|
|
7658
|
-
return /*#__PURE__*/
|
|
7686
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7659
7687
|
className: "image-slideshow-m_slide__3URCC",
|
|
7660
7688
|
key: id
|
|
7661
|
-
}, /*#__PURE__*/
|
|
7689
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7662
7690
|
key: id,
|
|
7663
7691
|
className: "image-slideshow-m_image-container__2VTEK",
|
|
7664
7692
|
onClick: function onClick() {
|
|
7665
7693
|
return onClickHandler(index);
|
|
7666
7694
|
}
|
|
7667
|
-
}, /*#__PURE__*/
|
|
7695
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
|
|
7668
7696
|
margin: "0px"
|
|
7669
|
-
}, /*#__PURE__*/
|
|
7697
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7670
7698
|
slug: imageS3Key,
|
|
7671
7699
|
metadata: metadata,
|
|
7672
7700
|
"aspect-ratio": [16, 9],
|
|
@@ -7677,9 +7705,9 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7677
7705
|
},
|
|
7678
7706
|
className: "image-slideshow-m_image__1p1fO",
|
|
7679
7707
|
alt: title
|
|
7680
|
-
}))), hyperlink && /*#__PURE__*/
|
|
7708
|
+
}))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7681
7709
|
hyperLink: hyperlink
|
|
7682
|
-
}), /*#__PURE__*/
|
|
7710
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7683
7711
|
className: "image-slideshow-m_caption__mWpmc",
|
|
7684
7712
|
dangerouslySetInnerHTML: {
|
|
7685
7713
|
__html: title
|
|
@@ -7690,10 +7718,10 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7690
7718
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
7691
7719
|
var onClickHandler = _ref.onClickHandler;
|
|
7692
7720
|
var storyElements = get_1(props, ["element", "story-elements"], []);
|
|
7693
|
-
return /*#__PURE__*/
|
|
7721
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7694
7722
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
7695
7723
|
"data-test-id": "image-slideshow"
|
|
7696
|
-
}, /*#__PURE__*/
|
|
7724
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
|
|
7697
7725
|
slideIndicator: "none"
|
|
7698
7726
|
}, storyElements.map(function (image, index) {
|
|
7699
7727
|
return Slide(image, index, onClickHandler);
|
|
@@ -7701,17 +7729,17 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7701
7729
|
};
|
|
7702
7730
|
|
|
7703
7731
|
ImageSlideshowTemplate.propTypes = {
|
|
7704
|
-
onClickHandler:
|
|
7732
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7705
7733
|
};
|
|
7706
|
-
return /*#__PURE__*/
|
|
7734
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7707
7735
|
template: ImageSlideshowTemplate,
|
|
7708
7736
|
element: props.element
|
|
7709
7737
|
});
|
|
7710
7738
|
};
|
|
7711
7739
|
|
|
7712
7740
|
ImageSlideshowBase.propTypes = {
|
|
7713
|
-
element:
|
|
7714
|
-
"story-elements":
|
|
7741
|
+
element: PropTypes__default["default"].shape({
|
|
7742
|
+
"story-elements": PropTypes__default["default"].array
|
|
7715
7743
|
}),
|
|
7716
7744
|
story: shapeStory
|
|
7717
7745
|
};
|
|
@@ -7769,12 +7797,12 @@ var getElement = function getElement(story, element) {
|
|
|
7769
7797
|
|
|
7770
7798
|
switch (elementType) {
|
|
7771
7799
|
case "ad":
|
|
7772
|
-
return /*#__PURE__*/
|
|
7800
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
7773
7801
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
7774
7802
|
}));
|
|
7775
7803
|
|
|
7776
7804
|
case "widget":
|
|
7777
|
-
return /*#__PURE__*/
|
|
7805
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
7778
7806
|
widgetCode: element.config.customCode,
|
|
7779
7807
|
id: "widget-".concat(index, "_").concat(cardId)
|
|
7780
7808
|
});
|
|
@@ -7787,7 +7815,7 @@ var getElement = function getElement(story, element) {
|
|
|
7787
7815
|
textElementColor = _text$css$textColor === void 0 ? "#000" : _text$css$textColor,
|
|
7788
7816
|
_text$css$hyperlinkCo = _text$css.hyperlinkColor,
|
|
7789
7817
|
hyperlinkColor = _text$css$hyperlinkCo === void 0 ? "#2f81cd" : _text$css$hyperlinkCo;
|
|
7790
|
-
return /*#__PURE__*/
|
|
7818
|
+
return /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
7791
7819
|
element: element,
|
|
7792
7820
|
css: {
|
|
7793
7821
|
textColor: textElementColor,
|
|
@@ -7808,7 +7836,7 @@ var getElement = function getElement(story, element) {
|
|
|
7808
7836
|
headline = _summary$opts$headlin === void 0 ? "" : _summary$opts$headlin,
|
|
7809
7837
|
_summary$opts$hideHea = _summary$opts.hideHeadline,
|
|
7810
7838
|
hideHeadline = _summary$opts$hideHea === void 0 ? false : _summary$opts$hideHea;
|
|
7811
|
-
return /*#__PURE__*/
|
|
7839
|
+
return /*#__PURE__*/React__default["default"].createElement(Summary, {
|
|
7812
7840
|
element: element,
|
|
7813
7841
|
template: summaryTemplate,
|
|
7814
7842
|
opts: {
|
|
@@ -7827,7 +7855,7 @@ var getElement = function getElement(story, element) {
|
|
|
7827
7855
|
_blurb$css = _blurb$css === void 0 ? {} : _blurb$css;
|
|
7828
7856
|
var _blurb$css$borderColo = _blurb$css.borderColor,
|
|
7829
7857
|
borderColor = _blurb$css$borderColo === void 0 ? "#2f81cd" : _blurb$css$borderColo;
|
|
7830
|
-
return /*#__PURE__*/
|
|
7858
|
+
return /*#__PURE__*/React__default["default"].createElement(Blurb, {
|
|
7831
7859
|
element: element,
|
|
7832
7860
|
template: blurbTemplate,
|
|
7833
7861
|
css: {
|
|
@@ -7846,7 +7874,7 @@ var getElement = function getElement(story, element) {
|
|
|
7846
7874
|
blockQuoteColor = _blockquote$css$block === void 0 ? "#2f81cd" : _blockquote$css$block,
|
|
7847
7875
|
_blockquote$css$backg = _blockquote$css.backgroundShade,
|
|
7848
7876
|
backgroundShade = _blockquote$css$backg === void 0 ? "" : _blockquote$css$backg;
|
|
7849
|
-
return /*#__PURE__*/
|
|
7877
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockQuote, {
|
|
7850
7878
|
element: element,
|
|
7851
7879
|
template: blockQuoteTemplate,
|
|
7852
7880
|
css: {
|
|
@@ -7863,7 +7891,7 @@ var getElement = function getElement(story, element) {
|
|
|
7863
7891
|
_quote$css = _quote$css === void 0 ? {} : _quote$css;
|
|
7864
7892
|
var _quote$css$borderColo = _quote$css.borderColor,
|
|
7865
7893
|
quoteBorderColor = _quote$css$borderColo === void 0 ? "#2f81cd" : _quote$css$borderColo;
|
|
7866
|
-
return /*#__PURE__*/
|
|
7894
|
+
return /*#__PURE__*/React__default["default"].createElement(Quote, {
|
|
7867
7895
|
element: element,
|
|
7868
7896
|
template: quoteTemplate,
|
|
7869
7897
|
css: {
|
|
@@ -7872,7 +7900,7 @@ var getElement = function getElement(story, element) {
|
|
|
7872
7900
|
});
|
|
7873
7901
|
|
|
7874
7902
|
case "bigfact":
|
|
7875
|
-
return /*#__PURE__*/
|
|
7903
|
+
return /*#__PURE__*/React__default["default"].createElement(BigFact, {
|
|
7876
7904
|
element: element
|
|
7877
7905
|
});
|
|
7878
7906
|
|
|
@@ -7887,7 +7915,7 @@ var getElement = function getElement(story, element) {
|
|
|
7887
7915
|
_alsoRead$opts = _alsoRead$opts === void 0 ? {} : _alsoRead$opts;
|
|
7888
7916
|
var _alsoRead$opts$title = _alsoRead$opts.title,
|
|
7889
7917
|
title = _alsoRead$opts$title === void 0 ? "" : _alsoRead$opts$title;
|
|
7890
|
-
return /*#__PURE__*/
|
|
7918
|
+
return /*#__PURE__*/React__default["default"].createElement(AlsoRead, {
|
|
7891
7919
|
story: story,
|
|
7892
7920
|
element: element,
|
|
7893
7921
|
template: alsoReadTemplate,
|
|
@@ -7900,7 +7928,7 @@ var getElement = function getElement(story, element) {
|
|
|
7900
7928
|
});
|
|
7901
7929
|
|
|
7902
7930
|
case "image":
|
|
7903
|
-
return /*#__PURE__*/
|
|
7931
|
+
return /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
7904
7932
|
element: element
|
|
7905
7933
|
});
|
|
7906
7934
|
|
|
@@ -7915,7 +7943,7 @@ var getElement = function getElement(story, element) {
|
|
|
7915
7943
|
_qaElement$opts = _qaElement$opts === void 0 ? {} : _qaElement$opts;
|
|
7916
7944
|
var _qaElement$opts$defau = _qaElement$opts.defaultIconType,
|
|
7917
7945
|
defaultIconType = _qaElement$opts$defau === void 0 ? "edge" : _qaElement$opts$defau;
|
|
7918
|
-
return /*#__PURE__*/
|
|
7946
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7919
7947
|
element: element,
|
|
7920
7948
|
opts: {
|
|
7921
7949
|
type: "q-and-a",
|
|
@@ -7938,7 +7966,7 @@ var getElement = function getElement(story, element) {
|
|
|
7938
7966
|
_questionElement$opts = _questionElement$opts === void 0 ? {} : _questionElement$opts;
|
|
7939
7967
|
var _questionElement$opts2 = _questionElement$opts.defaultQuestionIconType,
|
|
7940
7968
|
defaultQuestionIconType = _questionElement$opts2 === void 0 ? "edge" : _questionElement$opts2;
|
|
7941
|
-
return /*#__PURE__*/
|
|
7969
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7942
7970
|
element: element,
|
|
7943
7971
|
opts: {
|
|
7944
7972
|
type: "question",
|
|
@@ -7961,7 +7989,7 @@ var getElement = function getElement(story, element) {
|
|
|
7961
7989
|
_answerElement$opts = _answerElement$opts === void 0 ? {} : _answerElement$opts;
|
|
7962
7990
|
var _answerElement$opts$d = _answerElement$opts.defaultAnswerIconType,
|
|
7963
7991
|
defaultAnswerIconType = _answerElement$opts$d === void 0 ? "edge" : _answerElement$opts$d;
|
|
7964
|
-
return /*#__PURE__*/
|
|
7992
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7965
7993
|
element: element,
|
|
7966
7994
|
opts: {
|
|
7967
7995
|
type: "answer",
|
|
@@ -7974,43 +8002,43 @@ var getElement = function getElement(story, element) {
|
|
|
7974
8002
|
});
|
|
7975
8003
|
|
|
7976
8004
|
case "gallery":
|
|
7977
|
-
return /*#__PURE__*/
|
|
8005
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7978
8006
|
className: "content-style",
|
|
7979
8007
|
id: "image-gallery-".concat(storyElementId)
|
|
7980
|
-
}, /*#__PURE__*/
|
|
8008
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery, {
|
|
7981
8009
|
element: element
|
|
7982
8010
|
}));
|
|
7983
8011
|
|
|
7984
8012
|
case "slideshow":
|
|
7985
|
-
return /*#__PURE__*/
|
|
8013
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7986
8014
|
className: "content-style",
|
|
7987
8015
|
id: "image-slideshow-".concat(storyElementId)
|
|
7988
|
-
}, /*#__PURE__*/
|
|
8016
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageSlideshow, {
|
|
7989
8017
|
element: element
|
|
7990
8018
|
}));
|
|
7991
8019
|
|
|
7992
8020
|
case "youtube-video":
|
|
7993
8021
|
case "dailymotion-video":
|
|
7994
|
-
return /*#__PURE__*/
|
|
8022
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7995
8023
|
className: "content-style",
|
|
7996
8024
|
id: "video-".concat(storyElementId)
|
|
7997
|
-
}, /*#__PURE__*/
|
|
8025
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
7998
8026
|
element: element,
|
|
7999
8027
|
story: story,
|
|
8000
8028
|
loadIframeOnClick: true
|
|
8001
8029
|
}));
|
|
8002
8030
|
|
|
8003
8031
|
case "attachment":
|
|
8004
|
-
return /*#__PURE__*/
|
|
8032
|
+
return /*#__PURE__*/React__default["default"].createElement(Attachment, {
|
|
8005
8033
|
element: element
|
|
8006
8034
|
});
|
|
8007
8035
|
|
|
8008
8036
|
case "tweet":
|
|
8009
8037
|
case "jsembed":
|
|
8010
|
-
return /*#__PURE__*/
|
|
8038
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8011
8039
|
className: "content-style",
|
|
8012
8040
|
id: "jsembed-".concat(storyElementId)
|
|
8013
|
-
}, /*#__PURE__*/
|
|
8041
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8014
8042
|
element: element
|
|
8015
8043
|
}));
|
|
8016
8044
|
|
|
@@ -8021,7 +8049,7 @@ var getElement = function getElement(story, element) {
|
|
|
8021
8049
|
showHeadline = _references$opts$show === void 0 ? true : _references$opts$show,
|
|
8022
8050
|
_references$opts$head = _references$opts.headlineText,
|
|
8023
8051
|
headlineText = _references$opts$head === void 0 ? "" : _references$opts$head;
|
|
8024
|
-
return /*#__PURE__*/
|
|
8052
|
+
return /*#__PURE__*/React__default["default"].createElement(Reference, {
|
|
8025
8053
|
element: element,
|
|
8026
8054
|
opts: {
|
|
8027
8055
|
showHeadline: showHeadline,
|
|
@@ -8030,10 +8058,10 @@ var getElement = function getElement(story, element) {
|
|
|
8030
8058
|
});
|
|
8031
8059
|
|
|
8032
8060
|
default:
|
|
8033
|
-
return /*#__PURE__*/
|
|
8061
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8034
8062
|
className: "content-style",
|
|
8035
8063
|
id: "element-".concat(storyElementId)
|
|
8036
|
-
}, /*#__PURE__*/
|
|
8064
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8037
8065
|
element: element,
|
|
8038
8066
|
story: story
|
|
8039
8067
|
}));
|
|
@@ -8041,12 +8069,12 @@ var getElement = function getElement(story, element) {
|
|
|
8041
8069
|
};
|
|
8042
8070
|
|
|
8043
8071
|
({
|
|
8044
|
-
story:
|
|
8045
|
-
imageElement:
|
|
8046
|
-
config:
|
|
8047
|
-
children:
|
|
8048
|
-
card:
|
|
8049
|
-
id:
|
|
8072
|
+
story: PropTypes__default["default"].object,
|
|
8073
|
+
imageElement: PropTypes__default["default"].object,
|
|
8074
|
+
config: PropTypes__default["default"].object,
|
|
8075
|
+
children: PropTypes__default["default"].node,
|
|
8076
|
+
card: PropTypes__default["default"].shape({
|
|
8077
|
+
id: PropTypes__default["default"].string
|
|
8050
8078
|
})
|
|
8051
8079
|
});
|
|
8052
8080
|
var StoryElementCard = function StoryElementCard(_ref2) {
|
|
@@ -8062,7 +8090,7 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8062
8090
|
var textColor = getTextColor(theme);
|
|
8063
8091
|
var isLiveBlog = isLive ? "live-blog" : "";
|
|
8064
8092
|
var shouldRunFBMobileVideoFix = true;
|
|
8065
|
-
return /*#__PURE__*/
|
|
8093
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8066
8094
|
className: "arr--story-page-card-wrapper"
|
|
8067
8095
|
}, get_1(card, ["story-elements"], []).map(function (element, index) {
|
|
8068
8096
|
if (element.id === heroVideoElementId) return false;
|
|
@@ -8074,28 +8102,28 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8074
8102
|
|
|
8075
8103
|
var tableStyle = element && element.subtype === "table" ? "table" : "";
|
|
8076
8104
|
var cardId = get_1(card, ["id"], "");
|
|
8077
|
-
return /*#__PURE__*/
|
|
8105
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8078
8106
|
key: element.id,
|
|
8079
8107
|
className: "arr--element-container " + _getClassName("element-container ".concat(isLiveBlog, " ").concat(tableStyle, " ").concat(textColor), _styleModuleImportMap$1)
|
|
8080
8108
|
}, getElement(story, element, config, adComponent, widgetComp, index, cardId));
|
|
8081
8109
|
}));
|
|
8082
8110
|
};
|
|
8083
8111
|
StoryElementCard.propTypes = {
|
|
8084
|
-
story:
|
|
8085
|
-
card:
|
|
8086
|
-
heroVideoElementId:
|
|
8087
|
-
config:
|
|
8088
|
-
isLive:
|
|
8089
|
-
theme:
|
|
8090
|
-
adComponent:
|
|
8091
|
-
widgetComp:
|
|
8112
|
+
story: PropTypes__default["default"].object,
|
|
8113
|
+
card: PropTypes__default["default"].array,
|
|
8114
|
+
heroVideoElementId: PropTypes__default["default"].number,
|
|
8115
|
+
config: PropTypes__default["default"].object,
|
|
8116
|
+
isLive: PropTypes__default["default"].bool,
|
|
8117
|
+
theme: PropTypes__default["default"].string,
|
|
8118
|
+
adComponent: PropTypes__default["default"].func,
|
|
8119
|
+
widgetComp: PropTypes__default["default"].func
|
|
8092
8120
|
};
|
|
8093
8121
|
({
|
|
8094
|
-
story:
|
|
8095
|
-
card:
|
|
8096
|
-
config:
|
|
8097
|
-
adComponent:
|
|
8098
|
-
widgetComp:
|
|
8122
|
+
story: PropTypes__default["default"].object,
|
|
8123
|
+
card: PropTypes__default["default"].object,
|
|
8124
|
+
config: PropTypes__default["default"].object,
|
|
8125
|
+
adComponent: PropTypes__default["default"].func,
|
|
8126
|
+
widgetComp: PropTypes__default["default"].func
|
|
8099
8127
|
});
|
|
8100
8128
|
var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
8101
8129
|
var _ref4$id = _ref4.id,
|
|
@@ -8107,12 +8135,12 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8107
8135
|
|
|
8108
8136
|
switch (element.type) {
|
|
8109
8137
|
case "ad":
|
|
8110
|
-
return /*#__PURE__*/
|
|
8138
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
8111
8139
|
id: "ad-after-story-".concat(id)
|
|
8112
8140
|
}));
|
|
8113
8141
|
|
|
8114
8142
|
case "widget":
|
|
8115
|
-
return /*#__PURE__*/
|
|
8143
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
8116
8144
|
widgetCode: element.config.customCode,
|
|
8117
8145
|
id: "widget-after-story-".concat(id)
|
|
8118
8146
|
});
|
|
@@ -8122,10 +8150,10 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8122
8150
|
}
|
|
8123
8151
|
};
|
|
8124
8152
|
SlotAfterStory.propTypes = {
|
|
8125
|
-
id:
|
|
8126
|
-
element:
|
|
8127
|
-
AdComponent:
|
|
8128
|
-
WidgetComp:
|
|
8153
|
+
id: PropTypes__default["default"].string,
|
|
8154
|
+
element: PropTypes__default["default"].object,
|
|
8155
|
+
AdComponent: PropTypes__default["default"].func,
|
|
8156
|
+
WidgetComp: PropTypes__default["default"].func
|
|
8129
8157
|
};
|
|
8130
8158
|
|
|
8131
8159
|
var StoryTemplate = function StoryTemplate(_ref) {
|
|
@@ -8161,23 +8189,23 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8161
8189
|
var storyId = get_1(story, ["id"], "");
|
|
8162
8190
|
|
|
8163
8191
|
var HeaderCard = function HeaderCard() {
|
|
8164
|
-
return /*#__PURE__*/
|
|
8192
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8165
8193
|
className: "text-story-m_header-details__3D-Xf"
|
|
8166
|
-
}, /*#__PURE__*/
|
|
8194
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8167
8195
|
story: story
|
|
8168
|
-
}), /*#__PURE__*/
|
|
8196
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryHeadline, {
|
|
8169
8197
|
story: story,
|
|
8170
8198
|
premiumStoryIconConfig: premiumStoryIconConfig
|
|
8171
|
-
}), /*#__PURE__*/
|
|
8199
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
8172
8200
|
story: story,
|
|
8173
8201
|
showFullContent: true
|
|
8174
8202
|
}));
|
|
8175
8203
|
};
|
|
8176
8204
|
|
|
8177
8205
|
var AsideCollectionCard = function AsideCollectionCard() {
|
|
8178
|
-
return asideCollection && /*#__PURE__*/
|
|
8206
|
+
return asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8179
8207
|
className: "text-story-m_aside-collection__1hg7d text-story-m_tablet-index-2__1FdCR"
|
|
8180
|
-
}, /*#__PURE__*/
|
|
8208
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8181
8209
|
horizontal: true
|
|
8182
8210
|
}, asideCollection, {
|
|
8183
8211
|
widgetComp: widgetComp,
|
|
@@ -8188,10 +8216,10 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8188
8216
|
};
|
|
8189
8217
|
|
|
8190
8218
|
var SocialShareComponent = function SocialShareComponent() {
|
|
8191
|
-
return /*#__PURE__*/
|
|
8219
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8192
8220
|
id: "story-share-".concat(storyId),
|
|
8193
8221
|
className: "content-style"
|
|
8194
|
-
}, /*#__PURE__*/
|
|
8222
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8195
8223
|
template: SocialShareTemplate,
|
|
8196
8224
|
fullUrl: encodeURI(story.url),
|
|
8197
8225
|
title: story.headline,
|
|
@@ -8203,21 +8231,21 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8203
8231
|
};
|
|
8204
8232
|
|
|
8205
8233
|
var StoryData = function StoryData() {
|
|
8206
|
-
return /*#__PURE__*/
|
|
8234
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8207
8235
|
className: "text-story-m_gap-16__5BPKQ"
|
|
8208
|
-
}, authorDetails && /*#__PURE__*/
|
|
8236
|
+
}, authorDetails && /*#__PURE__*/React__default["default"].createElement(AuthorCard, {
|
|
8209
8237
|
story: story,
|
|
8210
8238
|
template: authorDetails.template,
|
|
8211
8239
|
opts: authorDetails.opts
|
|
8212
|
-
}), /*#__PURE__*/
|
|
8240
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8213
8241
|
className: "text-story-m_timestamp-social-share__1tSR7"
|
|
8214
|
-
}, /*#__PURE__*/
|
|
8242
|
+
}, /*#__PURE__*/React__default["default"].createElement(PublishDetails, {
|
|
8215
8243
|
story: story,
|
|
8216
8244
|
opts: publishedDetails,
|
|
8217
8245
|
template: "story",
|
|
8218
8246
|
timezone: timezone
|
|
8219
|
-
}), !verticalShare && /*#__PURE__*/
|
|
8220
|
-
return /*#__PURE__*/
|
|
8247
|
+
}), !verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null)), visibledCards.map(function (card) {
|
|
8248
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElementCard, {
|
|
8221
8249
|
story: story,
|
|
8222
8250
|
card: card,
|
|
8223
8251
|
key: get_1(card, ["id"], ""),
|
|
@@ -8225,11 +8253,11 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8225
8253
|
adComponent: adComponent,
|
|
8226
8254
|
widgetComp: widgetComp
|
|
8227
8255
|
});
|
|
8228
|
-
}), firstChild, /*#__PURE__*/
|
|
8256
|
+
}), firstChild, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8229
8257
|
className: "text-story-m_story-tags__Roh7y"
|
|
8230
|
-
}, /*#__PURE__*/
|
|
8258
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTags, {
|
|
8231
8259
|
tags: story.tags
|
|
8232
|
-
}), /*#__PURE__*/
|
|
8260
|
+
}), /*#__PURE__*/React__default["default"].createElement(SlotAfterStory, {
|
|
8233
8261
|
id: story.id,
|
|
8234
8262
|
element: story.customSlotAfterStory,
|
|
8235
8263
|
AdComponent: adComponent,
|
|
@@ -8238,9 +8266,9 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8238
8266
|
};
|
|
8239
8267
|
|
|
8240
8268
|
var SideColumn = function SideColumn() {
|
|
8241
|
-
return asideCollection && /*#__PURE__*/
|
|
8269
|
+
return asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8242
8270
|
className: "text-story-m_text-story-side-column__ChMaj"
|
|
8243
|
-
}, /*#__PURE__*/
|
|
8271
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8244
8272
|
widgetComp: widgetComp,
|
|
8245
8273
|
adComponent: adComponent,
|
|
8246
8274
|
sticky: true,
|
|
@@ -8250,112 +8278,112 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8250
8278
|
};
|
|
8251
8279
|
|
|
8252
8280
|
var heroPriorityCenterTemplate = function heroPriorityCenterTemplate() {
|
|
8253
|
-
return /*#__PURE__*/
|
|
8281
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8254
8282
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8255
8283
|
"data-test-id": "hero-priority-center-image"
|
|
8256
|
-
}, /*#__PURE__*/
|
|
8284
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8257
8285
|
story: story,
|
|
8258
8286
|
FullBleed: false,
|
|
8259
8287
|
aspectRatio: [[16, 9]],
|
|
8260
8288
|
defaultFallback: false,
|
|
8261
8289
|
isStoryPageImage: true
|
|
8262
|
-
})), /*#__PURE__*/
|
|
8290
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8263
8291
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8264
|
-
}, /*#__PURE__*/
|
|
8292
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8265
8293
|
story: story,
|
|
8266
8294
|
config: config
|
|
8267
|
-
}), /*#__PURE__*/
|
|
8295
|
+
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8268
8296
|
};
|
|
8269
8297
|
|
|
8270
8298
|
var headlineHeroPriorityTemplate = function headlineHeroPriorityTemplate() {
|
|
8271
|
-
return /*#__PURE__*/
|
|
8299
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8272
8300
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8273
|
-
}, /*#__PURE__*/
|
|
8301
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8274
8302
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8275
8303
|
"data-test-id": "headline-hero-priority-image"
|
|
8276
|
-
}, /*#__PURE__*/
|
|
8304
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8277
8305
|
story: story,
|
|
8278
8306
|
FullBleed: false,
|
|
8279
8307
|
aspectRatio: [[16, 9]],
|
|
8280
8308
|
defaultFallback: false,
|
|
8281
8309
|
isStoryPageImage: true
|
|
8282
|
-
})), /*#__PURE__*/
|
|
8310
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8283
8311
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8284
|
-
}, /*#__PURE__*/
|
|
8312
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8285
8313
|
story: story,
|
|
8286
8314
|
config: config
|
|
8287
|
-
}), /*#__PURE__*/
|
|
8315
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8288
8316
|
};
|
|
8289
8317
|
|
|
8290
8318
|
var heroVerticalTemplate = function heroVerticalTemplate() {
|
|
8291
|
-
return /*#__PURE__*/
|
|
8319
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8292
8320
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8293
8321
|
"data-test-id": "hero-vertical-image"
|
|
8294
|
-
}, /*#__PURE__*/
|
|
8322
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8295
8323
|
story: story,
|
|
8296
8324
|
FullBleed: false,
|
|
8297
8325
|
aspectRatio: [[3, 4]],
|
|
8298
8326
|
defaultFallback: false,
|
|
8299
8327
|
isStoryPageImage: true
|
|
8300
|
-
})), /*#__PURE__*/
|
|
8328
|
+
})), /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8301
8329
|
story: story,
|
|
8302
8330
|
config: config
|
|
8303
|
-
}), /*#__PURE__*/
|
|
8331
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8304
8332
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8305
|
-
}, /*#__PURE__*/
|
|
8333
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8306
8334
|
};
|
|
8307
8335
|
|
|
8308
8336
|
var heroPriorityLeftTemplate = function heroPriorityLeftTemplate() {
|
|
8309
|
-
return /*#__PURE__*/
|
|
8337
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8310
8338
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8311
8339
|
"data-test-id": "hero-priority-left-image"
|
|
8312
|
-
}, /*#__PURE__*/
|
|
8340
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8313
8341
|
story: story,
|
|
8314
8342
|
FullBleed: false,
|
|
8315
8343
|
aspectRatio: [[16, 9]],
|
|
8316
8344
|
defaultFallback: false,
|
|
8317
8345
|
isStoryPageImage: true
|
|
8318
|
-
})), /*#__PURE__*/
|
|
8346
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8319
8347
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8320
|
-
}, /*#__PURE__*/
|
|
8348
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8321
8349
|
story: story,
|
|
8322
8350
|
config: config
|
|
8323
|
-
}), /*#__PURE__*/
|
|
8351
|
+
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(SideColumn, null));
|
|
8324
8352
|
};
|
|
8325
8353
|
|
|
8326
8354
|
var headlinePriorityTemplate = function headlinePriorityTemplate() {
|
|
8327
|
-
return /*#__PURE__*/
|
|
8355
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8328
8356
|
className: "text-story-m_story-content-inner-wrapper__s3KPp text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8329
8357
|
"data-test-id": "headline-priority-hero-image"
|
|
8330
|
-
}, /*#__PURE__*/
|
|
8358
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8331
8359
|
story: story,
|
|
8332
8360
|
FullBleed: false,
|
|
8333
8361
|
aspectRatio: [[16, 9]],
|
|
8334
8362
|
defaultFallback: false,
|
|
8335
8363
|
isStoryPageImage: true
|
|
8336
|
-
})), /*#__PURE__*/
|
|
8364
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8337
8365
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8338
|
-
}, /*#__PURE__*/
|
|
8366
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8339
8367
|
story: story,
|
|
8340
8368
|
config: config
|
|
8341
|
-
}), /*#__PURE__*/
|
|
8369
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(SideColumn, null));
|
|
8342
8370
|
};
|
|
8343
8371
|
|
|
8344
8372
|
var headlineOverlayTemplate = function headlineOverlayTemplate() {
|
|
8345
|
-
return /*#__PURE__*/
|
|
8373
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8346
8374
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8347
8375
|
"data-test-id": "headline-overlay-hero-image"
|
|
8348
|
-
}, /*#__PURE__*/
|
|
8376
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8349
8377
|
story: story,
|
|
8350
8378
|
FullBleed: false,
|
|
8351
8379
|
aspectRatio: [[3, 4], [16, 9]],
|
|
8352
8380
|
isStoryPageImage: true
|
|
8353
|
-
})), /*#__PURE__*/
|
|
8381
|
+
})), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8354
8382
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
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), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8359
8387
|
};
|
|
8360
8388
|
|
|
8361
8389
|
var getStoryTemplate = function getStoryTemplate(templateType) {
|
|
@@ -8380,21 +8408,21 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8380
8408
|
}
|
|
8381
8409
|
};
|
|
8382
8410
|
|
|
8383
|
-
return /*#__PURE__*/
|
|
8411
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, getStoryTemplate(templateType));
|
|
8384
8412
|
};
|
|
8385
8413
|
StoryTemplate.propTypes = {
|
|
8386
|
-
story:
|
|
8387
|
-
config:
|
|
8388
|
-
templateType:
|
|
8389
|
-
authorDetails:
|
|
8390
|
-
asideCollection:
|
|
8414
|
+
story: PropTypes__default["default"].object,
|
|
8415
|
+
config: PropTypes__default["default"].shape({
|
|
8416
|
+
templateType: PropTypes__default["default"].string,
|
|
8417
|
+
authorDetails: PropTypes__default["default"].object,
|
|
8418
|
+
asideCollection: PropTypes__default["default"].object
|
|
8391
8419
|
}),
|
|
8392
|
-
firstChild:
|
|
8393
|
-
secondChild:
|
|
8394
|
-
timezone:
|
|
8395
|
-
storyElementsConfig:
|
|
8396
|
-
widgetComp:
|
|
8397
|
-
adComponent:
|
|
8420
|
+
firstChild: PropTypes__default["default"].node,
|
|
8421
|
+
secondChild: PropTypes__default["default"].node,
|
|
8422
|
+
timezone: PropTypes__default["default"].string,
|
|
8423
|
+
storyElementsConfig: PropTypes__default["default"].object,
|
|
8424
|
+
widgetComp: PropTypes__default["default"].func,
|
|
8425
|
+
adComponent: PropTypes__default["default"].func
|
|
8398
8426
|
};
|
|
8399
8427
|
|
|
8400
8428
|
var _styleModuleImportMap = {
|
|
@@ -8454,17 +8482,17 @@ var TextStoryTemplateBase = function TextStoryTemplateBase(_ref) {
|
|
|
8454
8482
|
"headline-hero-priority": imageRender,
|
|
8455
8483
|
"hero-vertical-priority": imageRender
|
|
8456
8484
|
};
|
|
8457
|
-
var timezone = useSelector(function (state) {
|
|
8485
|
+
var timezone = reactRedux.useSelector(function (state) {
|
|
8458
8486
|
return get_1(state, ["qt", "data", "timezone"], null);
|
|
8459
8487
|
});
|
|
8460
8488
|
var dataTestId = supportImageType[templateType] ? "text-story-".concat(templateType, "-").concat(kebabCase_1(supportImageType[templateType])) : "text-story-".concat(templateType);
|
|
8461
|
-
return /*#__PURE__*/
|
|
8489
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8462
8490
|
"data-test-id": dataTestId,
|
|
8463
8491
|
style: {
|
|
8464
8492
|
backgroundColor: theme
|
|
8465
8493
|
},
|
|
8466
8494
|
className: "arrow-component arr-story-grid arr--content-wrapper arr--text-story-template-wrapper " + _getClassName("".concat(templateType, " ").concat(verticalShare, " ").concat(supportImageType[templateType] || "", " ").concat(sortOption), _styleModuleImportMap)
|
|
8467
|
-
}, /*#__PURE__*/
|
|
8495
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplate, {
|
|
8468
8496
|
story: story,
|
|
8469
8497
|
config: config,
|
|
8470
8498
|
storyElementsConfig: storyElementsConfig,
|
|
@@ -8476,18 +8504,19 @@ var TextStoryTemplateBase = function TextStoryTemplateBase(_ref) {
|
|
|
8476
8504
|
}));
|
|
8477
8505
|
};
|
|
8478
8506
|
TextStoryTemplateBase.propTypes = {
|
|
8479
|
-
story:
|
|
8480
|
-
config:
|
|
8481
|
-
templateType:
|
|
8482
|
-
authorCard:
|
|
8483
|
-
asideCollection:
|
|
8507
|
+
story: PropTypes__default["default"].object,
|
|
8508
|
+
config: PropTypes__default["default"].shape({
|
|
8509
|
+
templateType: PropTypes__default["default"].string,
|
|
8510
|
+
authorCard: PropTypes__default["default"].object,
|
|
8511
|
+
asideCollection: PropTypes__default["default"].object
|
|
8484
8512
|
}),
|
|
8485
|
-
firstChild:
|
|
8486
|
-
secondChild:
|
|
8487
|
-
storyElementsConfig:
|
|
8488
|
-
adComponent:
|
|
8489
|
-
widgetComp:
|
|
8513
|
+
firstChild: PropTypes__default["default"].node,
|
|
8514
|
+
secondChild: PropTypes__default["default"].node,
|
|
8515
|
+
storyElementsConfig: PropTypes__default["default"].object,
|
|
8516
|
+
adComponent: PropTypes__default["default"].func,
|
|
8517
|
+
widgetComp: PropTypes__default["default"].func
|
|
8490
8518
|
};
|
|
8491
8519
|
var TextStoryTemplate = StateProvider(TextStoryTemplateBase);
|
|
8492
8520
|
|
|
8493
|
-
|
|
8521
|
+
exports.TextStoryTemplate = TextStoryTemplate;
|
|
8522
|
+
exports.TextStoryTemplateBase = TextStoryTemplateBase;
|