@quintype/arrow 3.15.1-perf.0 → 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-4577d5b9.js → index-3976fac4.js} +62 -55
- package/atoms/ExtendedLoadMore/{index-0edaa434.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-70ce7471.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-b3ef1488.js → index-6e083738.js} +63 -56
- package/atoms/ExtendedLoadMore/{index-48664b07.js → index-6ecceae4.js} +61 -54
- package/atoms/ExtendedLoadMore/{index-4c3c2b6f.js → index-9e0d32b7.js} +79 -72
- package/atoms/ExtendedLoadMore/{index-c47ff5bc.js → index-a5c95f84.js} +73 -66
- package/atoms/ExtendedLoadMore/{index-4b9207c4.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-8f6483ba.js → index-b5936059.js} +75 -68
- package/atoms/ExtendedLoadMore/{index-b841407e.js → index-bc129cb8.js} +60 -53
- package/atoms/ExtendedLoadMore/{index-d08b6c2f.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-867b9437.js → index-fee73a14.js} +67 -61
- 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 +75 -66
- 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 +349 -339
- package/rows/AsideCollection/index.js +346 -340
- package/rows/AstrologyCollection/index.js +325 -315
- package/rows/AuthorIntroductionCard/index.js +157 -150
- package/rows/AuthorsList/index.js +187 -180
- package/rows/CollectionFilter/index.js +365 -355
- package/rows/ElevenStories/index.js +360 -351
- package/rows/FourColFiveStories/index.js +308 -279
- package/rows/FourColGrid/index.js +355 -326
- package/rows/FourColPortraitStories/index.js +364 -336
- package/rows/FourColSixteenStories/index.js +291 -281
- package/rows/FourColTwelveStories/index.js +318 -308
- package/rows/FourStorySlider/index.js +362 -352
- package/rows/FourStorySliderPortrait/index.js +363 -353
- package/rows/FourTabbedBigStorySlider/index.js +325 -314
- package/rows/FullScreenSlider/index.js +339 -330
- package/rows/HalfScreenSlider/index.js +311 -302
- package/rows/ListComponent/index.js +325 -315
- package/rows/Listicles/index.js +154 -145
- package/rows/MagazineEditions/index.js +107 -98
- package/rows/MagazineHeaderCard/index.js +107 -98
- package/rows/MagazineWidget/index.js +329 -320
- package/rows/OneColStoryList/index.js +369 -340
- package/rows/OpinionCollection/index.js +254 -225
- package/rows/SixColSixStories/index.js +337 -308
- package/rows/StoryCollection/index.js +346 -340
- package/rows/TagIntroductionCard/index.js +30 -23
- package/rows/ThreeColFlexStories/index.js +352 -323
- package/rows/ThreeColFourteenStories/index.js +288 -278
- package/rows/ThreeColGrid/index.js +356 -327
- package/rows/ThreeColSevenStory/index.js +325 -316
- package/rows/ThreeColSixStories/index.js +326 -316
- package/rows/ThreeColTwelveStories/index.js +305 -295
- package/rows/TwoColFourStories/index.js +319 -308
- package/rows/TwoColFourStoryHighlight/index.js +320 -309
- package/rows/TwoColSevenStories/index.js +326 -315
- package/rows/TwoColSixStories/index.js +319 -310
- package/rows/TwoColTenStoriesSidebar/index.js +341 -330
- package/rows/TwoColThreeStories/index.js +319 -308
- 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/{rows → story-templates}/ListicleStoryTemplate/index.js +947 -926
- package/{rows → story-templates}/ListicleStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/LiveBlogStoryTemplate/index.js +952 -931
- package/{rows → story-templates}/LiveBlogStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/PhotoStoryTemplate/index.js +922 -901
- package/{rows → story-templates}/PhotoStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/TextStoryTemplate/index.js +941 -920
- package/{rows → story-templates}/TextStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/VideoStoryTemplate/index.js +907 -886
- package/{rows → story-templates}/VideoStoryTemplate/styles.arrow.css +0 -0
- package/atoms/ExtendedLoadMore/index-96c36b0e.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,22 +5204,21 @@ 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:
|
|
5192
|
-
};
|
|
5193
|
-
|
|
5194
|
-
var KeyEvents = function KeyEvents(_ref) {
|
|
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
|
|
5220
|
+
};
|
|
5221
|
+
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
5195
5222
|
var _ref$story = _ref.story,
|
|
5196
5223
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
5197
5224
|
_ref$config = _ref.config,
|
|
@@ -5204,7 +5231,7 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5204
5231
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
5205
5232
|
var textColor = getTextColor(theme);
|
|
5206
5233
|
|
|
5207
|
-
var _useState = useState(initialLoadCount),
|
|
5234
|
+
var _useState = React.useState(initialLoadCount),
|
|
5208
5235
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5209
5236
|
initialCount = _useState2[0],
|
|
5210
5237
|
updatedCount = _useState2[1];
|
|
@@ -5213,7 +5240,7 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5213
5240
|
return get_1(card.metadata, ["attributes", "key-event"]);
|
|
5214
5241
|
});
|
|
5215
5242
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
5216
|
-
var qtConfig = useSelector(function (state) {
|
|
5243
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
5217
5244
|
return get_1(state, ["qt", "config"], {});
|
|
5218
5245
|
});
|
|
5219
5246
|
|
|
@@ -5227,7 +5254,7 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5227
5254
|
|
|
5228
5255
|
var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
|
|
5229
5256
|
var keyEvents = showAllCards.map(function (card, index, source) {
|
|
5230
|
-
return /*#__PURE__*/
|
|
5257
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
|
|
5231
5258
|
cardLength: source.length,
|
|
5232
5259
|
card: card,
|
|
5233
5260
|
key: card.id,
|
|
@@ -5238,27 +5265,26 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5238
5265
|
showLoadMore: showLoadMore
|
|
5239
5266
|
});
|
|
5240
5267
|
});
|
|
5241
|
-
return /*#__PURE__*/
|
|
5268
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5242
5269
|
style: {
|
|
5243
5270
|
background: theme
|
|
5244
5271
|
},
|
|
5245
5272
|
className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$k)
|
|
5246
|
-
}, /*#__PURE__*/
|
|
5273
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5247
5274
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
5248
|
-
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/
|
|
5275
|
+
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
5249
5276
|
onClick: onClick,
|
|
5250
5277
|
template: "SubsequentLoadCount",
|
|
5251
5278
|
config: config,
|
|
5252
5279
|
qtConfig: qtConfig
|
|
5253
5280
|
}));
|
|
5254
5281
|
};
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
showLoadMore: PropTypes.bool
|
|
5282
|
+
KeyEventsBase.propTypes = {
|
|
5283
|
+
story: PropTypes__default["default"].object,
|
|
5284
|
+
config: PropTypes__default["default"].object,
|
|
5285
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5260
5286
|
};
|
|
5261
|
-
var KeyEvents
|
|
5287
|
+
var KeyEvents = StateProvider(KeyEventsBase);
|
|
5262
5288
|
|
|
5263
5289
|
function ownKeys$2(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; }
|
|
5264
5290
|
|
|
@@ -5278,7 +5304,6 @@ var _styleModuleImportMap$j = {
|
|
|
5278
5304
|
"sticky": "aside-collection-m_sticky__AZXBP"
|
|
5279
5305
|
}
|
|
5280
5306
|
};
|
|
5281
|
-
|
|
5282
5307
|
var StoryCollection = function StoryCollection(_ref) {
|
|
5283
5308
|
var data = _ref.data,
|
|
5284
5309
|
slotData = _ref.slotData,
|
|
@@ -5298,12 +5323,12 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5298
5323
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5299
5324
|
var mountAt = get_1(config, ["mountAtPrefix"], "");
|
|
5300
5325
|
|
|
5301
|
-
var _useState = useState([]),
|
|
5326
|
+
var _useState = React.useState([]),
|
|
5302
5327
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5303
5328
|
storyList = _useState2[0],
|
|
5304
5329
|
updateStoryList = _useState2[1];
|
|
5305
5330
|
|
|
5306
|
-
var _useState3 = useState([]),
|
|
5331
|
+
var _useState3 = React.useState([]),
|
|
5307
5332
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5308
5333
|
collectionData = _useState4[0],
|
|
5309
5334
|
updateCollectionData = _useState4[1];
|
|
@@ -5337,63 +5362,61 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5337
5362
|
};
|
|
5338
5363
|
}();
|
|
5339
5364
|
|
|
5340
|
-
useEffect(function () {
|
|
5365
|
+
React.useEffect(function () {
|
|
5341
5366
|
if (collectionSlug) {
|
|
5342
5367
|
updateStoryListItems(collectionSlug);
|
|
5343
5368
|
}
|
|
5344
5369
|
}, [collectionSlug]);
|
|
5345
|
-
useEffect(function () {
|
|
5370
|
+
React.useEffect(function () {
|
|
5346
5371
|
if (!collectionSlug && data) {
|
|
5347
5372
|
var storyItems = data.items || data;
|
|
5348
5373
|
updateStoryList(storyItems);
|
|
5349
5374
|
}
|
|
5350
5375
|
}, [data, collectionSlug]);
|
|
5351
|
-
return /*#__PURE__*/
|
|
5376
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
5352
5377
|
customCollectionName: heading,
|
|
5353
5378
|
textColor: true,
|
|
5354
5379
|
collection: collectionData
|
|
5355
|
-
}), /*#__PURE__*/
|
|
5380
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5356
5381
|
className: "aside-collection-m_stories__9wfUs"
|
|
5357
5382
|
}, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
|
|
5358
5383
|
var story = item.story || item;
|
|
5359
|
-
return /*#__PURE__*/
|
|
5384
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5360
5385
|
className: "aside-collection-m_story__17Jdm",
|
|
5361
5386
|
key: story.id
|
|
5362
|
-
}, /*#__PURE__*/
|
|
5387
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
5363
5388
|
story: story,
|
|
5364
5389
|
isHorizontal: true,
|
|
5365
5390
|
theme: theme,
|
|
5366
5391
|
config: config
|
|
5367
|
-
}, /*#__PURE__*/
|
|
5392
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5368
5393
|
className: "aside-collection-m_story-hero-image__13nFY"
|
|
5369
|
-
}, /*#__PURE__*/
|
|
5394
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5370
5395
|
story: story,
|
|
5371
5396
|
aspectRatio: [[4, 3]]
|
|
5372
|
-
})), /*#__PURE__*/
|
|
5397
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
5373
5398
|
story: story
|
|
5374
|
-
}), /*#__PURE__*/
|
|
5399
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
5375
5400
|
story: story
|
|
5376
|
-
}), /*#__PURE__*/
|
|
5401
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5377
5402
|
className: "aside-collection-m_story-byline__37KRG"
|
|
5378
|
-
}, /*#__PURE__*/
|
|
5403
|
+
}, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
5379
5404
|
config: opts,
|
|
5380
5405
|
story: story
|
|
5381
5406
|
})))));
|
|
5382
|
-
}) : /*#__PURE__*/
|
|
5407
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5383
5408
|
"data-test-id": "no-stories",
|
|
5384
5409
|
className: "aside-collection-m_info__3p4zt"
|
|
5385
5410
|
}, "No stories found.")));
|
|
5386
5411
|
};
|
|
5387
|
-
|
|
5388
5412
|
StoryCollection.propTypes = {
|
|
5389
|
-
data:
|
|
5390
|
-
config:
|
|
5391
|
-
horizontal:
|
|
5392
|
-
slotData:
|
|
5393
|
-
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
|
|
5394
5418
|
};
|
|
5395
|
-
|
|
5396
|
-
var AsideCollection = function AsideCollection(_ref4) {
|
|
5419
|
+
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
5397
5420
|
var _ref4$data = _ref4.data,
|
|
5398
5421
|
data = _ref4$data === void 0 ? {} : _ref4$data,
|
|
5399
5422
|
_ref4$config = _ref4.config,
|
|
@@ -5418,14 +5441,14 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5418
5441
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5419
5442
|
|
|
5420
5443
|
if (horizontal) {
|
|
5421
|
-
return /*#__PURE__*/
|
|
5444
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5422
5445
|
style: {
|
|
5423
5446
|
backgroundColor: theme
|
|
5424
5447
|
},
|
|
5425
5448
|
"data-test-id": "aside-collection",
|
|
5426
5449
|
id: "aside-collection-".concat(storyId),
|
|
5427
5450
|
className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap$j)
|
|
5428
|
-
}, /*#__PURE__*/
|
|
5451
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5429
5452
|
data: data,
|
|
5430
5453
|
horizontal: horizontal,
|
|
5431
5454
|
config: config,
|
|
@@ -5438,23 +5461,23 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5438
5461
|
var asideSlot = function asideSlot(type, slot, index) {
|
|
5439
5462
|
switch (type) {
|
|
5440
5463
|
case "ad":
|
|
5441
|
-
return /*#__PURE__*/
|
|
5464
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5442
5465
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5443
5466
|
}, adComponent(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5444
5467
|
id: "ad-".concat(index, "_").concat(storyId)
|
|
5445
5468
|
})));
|
|
5446
5469
|
|
|
5447
5470
|
case "widget":
|
|
5448
|
-
return /*#__PURE__*/
|
|
5471
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5449
5472
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5450
5473
|
}, widgetComp(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5451
5474
|
id: "widget-".concat(index, "_").concat(storyId)
|
|
5452
5475
|
})));
|
|
5453
5476
|
|
|
5454
5477
|
case "collection":
|
|
5455
|
-
return /*#__PURE__*/
|
|
5478
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5456
5479
|
id: "aside-collection-".concat(index, "_").concat(storyId)
|
|
5457
|
-
}, /*#__PURE__*/
|
|
5480
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5458
5481
|
slotData: slot,
|
|
5459
5482
|
data: data,
|
|
5460
5483
|
horizontal: horizontal,
|
|
@@ -5464,13 +5487,13 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5464
5487
|
}
|
|
5465
5488
|
};
|
|
5466
5489
|
|
|
5467
|
-
return /*#__PURE__*/
|
|
5490
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5468
5491
|
style: {
|
|
5469
5492
|
backgroundColor: theme
|
|
5470
5493
|
},
|
|
5471
5494
|
"data-test-id": "aside-collection",
|
|
5472
5495
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$j)
|
|
5473
|
-
}, enableKeyEvents && /*#__PURE__*/
|
|
5496
|
+
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
5474
5497
|
story: keyEventsData.story,
|
|
5475
5498
|
showLoadMore: keyEventsData.showLoadMore,
|
|
5476
5499
|
config: keyEventsData.config
|
|
@@ -5478,25 +5501,24 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5478
5501
|
return asideSlot(slot.type, slot, index);
|
|
5479
5502
|
}));
|
|
5480
5503
|
};
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
showLoadMore: PropTypes["boolean"]
|
|
5504
|
+
AsideCollectionBase.propTypes = {
|
|
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"]
|
|
5495
5517
|
}),
|
|
5496
|
-
enableKeyEvents:
|
|
5497
|
-
storyId:
|
|
5518
|
+
enableKeyEvents: PropTypes__default["default"]["boolean"],
|
|
5519
|
+
storyId: PropTypes__default["default"].string
|
|
5498
5520
|
};
|
|
5499
|
-
var AsideCollection
|
|
5521
|
+
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
5500
5522
|
|
|
5501
5523
|
var _styleModuleImportMap$i = {
|
|
5502
5524
|
"./author-card.m.css": {
|
|
@@ -5529,9 +5551,9 @@ var authorImage = function authorImage(author) {
|
|
|
5529
5551
|
return null;
|
|
5530
5552
|
}
|
|
5531
5553
|
|
|
5532
|
-
return /*#__PURE__*/
|
|
5554
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5533
5555
|
"data-test-id": "author-image"
|
|
5534
|
-
}, avatarS3Key ? /*#__PURE__*/
|
|
5556
|
+
}, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5535
5557
|
slug: avatarS3Key,
|
|
5536
5558
|
"aspect-ratio": [1, 1],
|
|
5537
5559
|
defaultWidth: 48,
|
|
@@ -5539,7 +5561,7 @@ var authorImage = function authorImage(author) {
|
|
|
5539
5561
|
auto: ["format", "compress"]
|
|
5540
5562
|
},
|
|
5541
5563
|
alt: authorName
|
|
5542
|
-
}) : /*#__PURE__*/
|
|
5564
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5543
5565
|
src: avatarUrl
|
|
5544
5566
|
}));
|
|
5545
5567
|
};
|
|
@@ -5566,60 +5588,60 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
5566
5588
|
_opts$showName = opts.showName,
|
|
5567
5589
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
5568
5590
|
var textColor = getTextColor(configData.theme);
|
|
5569
|
-
return /*#__PURE__*/
|
|
5591
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5570
5592
|
"data-test-id": "author-card-".concat(kebabCase_1(template)),
|
|
5571
5593
|
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap$i)
|
|
5572
5594
|
}, authors.map(function (author, index) {
|
|
5573
|
-
return /*#__PURE__*/
|
|
5595
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
5574
5596
|
key: author.id
|
|
5575
|
-
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/
|
|
5597
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5576
5598
|
"data-test-id": "author-image",
|
|
5577
5599
|
className: "author-card-m_author-image-wrapper__1at-z"
|
|
5578
|
-
}, /*#__PURE__*/
|
|
5600
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5579
5601
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5580
5602
|
key: "author-image-".concat(index),
|
|
5581
5603
|
"aria-label": "author-image"
|
|
5582
|
-
}, /*#__PURE__*/
|
|
5604
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5583
5605
|
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$i)
|
|
5584
5606
|
}, authorImage(author)))));
|
|
5585
|
-
}), showName && /*#__PURE__*/
|
|
5607
|
+
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5586
5608
|
"data-test-id": "author-name",
|
|
5587
5609
|
className: "author-card-m_author-name-share__3vb9q"
|
|
5588
5610
|
}, authors.map(function (author, index) {
|
|
5589
5611
|
var spaceHolder = ",\xA0";
|
|
5590
|
-
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, {
|
|
5591
5613
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5592
5614
|
"aria-label": "author-name"
|
|
5593
|
-
}, /*#__PURE__*/
|
|
5615
|
+
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
5594
5616
|
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap$i)
|
|
5595
5617
|
}, author.name)));
|
|
5596
|
-
}), 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", {
|
|
5597
5619
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
5598
|
-
}, /*#__PURE__*/
|
|
5620
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
5599
5621
|
color: textColor
|
|
5600
|
-
})), /*#__PURE__*/
|
|
5622
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5601
5623
|
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
5602
5624
|
target: "_blank",
|
|
5603
5625
|
rel: "noopener noreferrer"
|
|
5604
|
-
}, /*#__PURE__*/
|
|
5626
|
+
}, /*#__PURE__*/React__default["default"].createElement(Twitter, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5605
5627
|
"data-test-id": "author-info",
|
|
5606
5628
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
5607
|
-
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/
|
|
5629
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5608
5630
|
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap$i)
|
|
5609
5631
|
}, authors[0].bio)));
|
|
5610
5632
|
};
|
|
5611
5633
|
AuthorCard.propTypes = {
|
|
5612
|
-
story:
|
|
5613
|
-
authors:
|
|
5634
|
+
story: PropTypes__default["default"].shape({
|
|
5635
|
+
authors: PropTypes__default["default"].array
|
|
5614
5636
|
}),
|
|
5615
|
-
template:
|
|
5616
|
-
opts:
|
|
5617
|
-
showImage:
|
|
5618
|
-
showBio:
|
|
5619
|
-
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
|
|
5620
5642
|
}),
|
|
5621
|
-
mountAt:
|
|
5622
|
-
clazzName:
|
|
5643
|
+
mountAt: PropTypes__default["default"].string,
|
|
5644
|
+
clazzName: PropTypes__default["default"].string
|
|
5623
5645
|
};
|
|
5624
5646
|
|
|
5625
5647
|
var _styleModuleImportMap$h = {
|
|
@@ -5656,14 +5678,14 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
5656
5678
|
var caption = heroImageCaption || title;
|
|
5657
5679
|
var attribution = heroImageAttribution || imageAttribution;
|
|
5658
5680
|
var updateStyle = caption ? "wrapper" : "";
|
|
5659
|
-
return /*#__PURE__*/
|
|
5681
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5660
5682
|
"data-test-id": "caption",
|
|
5661
5683
|
className: "arr--caption-attribution " + _getClassName("caption ".concat(textColor), _styleModuleImportMap$h)
|
|
5662
|
-
}, /*#__PURE__*/
|
|
5684
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5663
5685
|
dangerouslySetInnerHTML: {
|
|
5664
5686
|
__html: caption
|
|
5665
5687
|
}
|
|
5666
|
-
}), attribution && /*#__PURE__*/
|
|
5688
|
+
}), attribution && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5667
5689
|
"data-test-id": "attribution",
|
|
5668
5690
|
dangerouslySetInnerHTML: {
|
|
5669
5691
|
__html: attribution
|
|
@@ -5672,13 +5694,13 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
5672
5694
|
}));
|
|
5673
5695
|
};
|
|
5674
5696
|
CaptionAttribution.propTypes = {
|
|
5675
|
-
config:
|
|
5676
|
-
theme:
|
|
5697
|
+
config: PropTypes__default["default"].shape({
|
|
5698
|
+
theme: PropTypes__default["default"].string
|
|
5677
5699
|
}),
|
|
5678
5700
|
story: shapeStory,
|
|
5679
|
-
element:
|
|
5680
|
-
"image-attribution":
|
|
5681
|
-
title:
|
|
5701
|
+
element: PropTypes__default["default"].shape({
|
|
5702
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
5703
|
+
title: PropTypes__default["default"].string
|
|
5682
5704
|
})
|
|
5683
5705
|
};
|
|
5684
5706
|
|
|
@@ -5708,12 +5730,12 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5708
5730
|
_ref$timezone = _ref.timezone,
|
|
5709
5731
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
5710
5732
|
|
|
5711
|
-
var _useState = useState("ltr"),
|
|
5733
|
+
var _useState = React.useState("ltr"),
|
|
5712
5734
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5713
5735
|
direction = _useState2[0],
|
|
5714
5736
|
setDirection = _useState2[1];
|
|
5715
5737
|
|
|
5716
|
-
useEffect(function () {
|
|
5738
|
+
React.useEffect(function () {
|
|
5717
5739
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5718
5740
|
|
|
5719
5741
|
if (htmlElement && htmlElement.length > 0 && htmlElement[0].dir.toLocaleLowerCase() === "rtl") {
|
|
@@ -5739,41 +5761,41 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5739
5761
|
direction: direction,
|
|
5740
5762
|
showTime: true
|
|
5741
5763
|
});
|
|
5742
|
-
return /*#__PURE__*/
|
|
5764
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5743
5765
|
"data-test-id": "timeStamp",
|
|
5744
5766
|
className: "arrow-component arr-publish-details " + _getClassName("timeStamp ".concat(textColor), _styleModuleImportMap$g)
|
|
5745
|
-
}, /*#__PURE__*/
|
|
5767
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5746
5768
|
"data-test-id": "publishDetails",
|
|
5747
5769
|
className: _getClassName("publish-details ".concat(textColor), _styleModuleImportMap$g)
|
|
5748
|
-
}, enablePublishedTime && /*#__PURE__*/
|
|
5770
|
+
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5749
5771
|
className: "publish-details-m_date__3ZIQN"
|
|
5750
|
-
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5772
|
+
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5751
5773
|
story: story,
|
|
5752
5774
|
opts: opts
|
|
5753
|
-
}))), enableUpdatedTime && /*#__PURE__*/
|
|
5775
|
+
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5754
5776
|
"data-test-id": "updateDetails",
|
|
5755
5777
|
className: _getClassName("update-details ".concat(textColor), _styleModuleImportMap$g)
|
|
5756
|
-
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/
|
|
5778
|
+
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5757
5779
|
className: "publish-details-m_date__3ZIQN"
|
|
5758
|
-
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5780
|
+
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5759
5781
|
story: story,
|
|
5760
5782
|
opts: opts
|
|
5761
5783
|
})));
|
|
5762
5784
|
};
|
|
5763
5785
|
PublishDetails.propTypes = {
|
|
5764
5786
|
/** The Story Object from the API response */
|
|
5765
|
-
story:
|
|
5766
|
-
"first-published-at":
|
|
5767
|
-
"last-published-at":
|
|
5768
|
-
"read-time":
|
|
5769
|
-
"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
|
|
5770
5792
|
}),
|
|
5771
|
-
timezone:
|
|
5772
|
-
template:
|
|
5773
|
-
opts:
|
|
5774
|
-
showReadTime:
|
|
5775
|
-
enableUpdatedTime:
|
|
5776
|
-
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
|
|
5777
5799
|
})
|
|
5778
5800
|
};
|
|
5779
5801
|
|
|
@@ -5796,24 +5818,24 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
5796
5818
|
var textColor = getTextColor(configData.theme);
|
|
5797
5819
|
var mountAt = get_1(config, ["mountAt"], "");
|
|
5798
5820
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
5799
|
-
return /*#__PURE__*/
|
|
5821
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5800
5822
|
className: "arrow-component arr--story-tags"
|
|
5801
5823
|
}, tags.length > 0 && tags.map(function (tag, index) {
|
|
5802
|
-
return /*#__PURE__*/
|
|
5824
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5803
5825
|
key: index,
|
|
5804
5826
|
"data-test-id": "story-tag",
|
|
5805
5827
|
className: _getClassName("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$f)
|
|
5806
|
-
}, /*#__PURE__*/
|
|
5828
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5807
5829
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
5808
5830
|
"aria-label": "story-tag-name"
|
|
5809
5831
|
}, tag.name));
|
|
5810
5832
|
}));
|
|
5811
5833
|
};
|
|
5812
5834
|
StoryTags.propTypes = {
|
|
5813
|
-
tags:
|
|
5814
|
-
borderColor:
|
|
5815
|
-
config:
|
|
5816
|
-
template: string
|
|
5835
|
+
tags: PropTypes__default["default"].array,
|
|
5836
|
+
borderColor: PropTypes__default["default"].string,
|
|
5837
|
+
config: PropTypes__default["default"].object,
|
|
5838
|
+
template: PropTypes.string
|
|
5817
5839
|
};
|
|
5818
5840
|
|
|
5819
5841
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -5859,13 +5881,13 @@ var withElementWrapper = function withElementWrapper(StoryElement) {
|
|
|
5859
5881
|
|
|
5860
5882
|
if (!element) return null;
|
|
5861
5883
|
if (render && typeof render === "function") return render(props);
|
|
5862
|
-
return /*#__PURE__*/
|
|
5884
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
|
|
5863
5885
|
element: element
|
|
5864
5886
|
}));
|
|
5865
5887
|
};
|
|
5866
5888
|
};
|
|
5867
5889
|
withElementWrapper.propTypes = {
|
|
5868
|
-
StoryElement:
|
|
5890
|
+
StoryElement: PropTypes__default["default"].element
|
|
5869
5891
|
};
|
|
5870
5892
|
|
|
5871
5893
|
var _excluded$d = ["element", "opts", "css", "story", "config"];
|
|
@@ -5901,7 +5923,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
5901
5923
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
5902
5924
|
var isPromotionalMessage = get_1(element, ["metadata", "promotional-message"], false);
|
|
5903
5925
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
5904
|
-
return /*#__PURE__*/
|
|
5926
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5905
5927
|
style: !isPromotionalMessage ? {
|
|
5906
5928
|
color: textColor
|
|
5907
5929
|
} : {},
|
|
@@ -5916,15 +5938,15 @@ var TextBase = function TextBase(_ref) {
|
|
|
5916
5938
|
};
|
|
5917
5939
|
|
|
5918
5940
|
TextBase.propTypes = {
|
|
5919
|
-
element:
|
|
5920
|
-
text:
|
|
5941
|
+
element: PropTypes__default["default"].shape({
|
|
5942
|
+
text: PropTypes__default["default"].string
|
|
5921
5943
|
}),
|
|
5922
|
-
opts:
|
|
5923
|
-
isExternalLink:
|
|
5944
|
+
opts: PropTypes__default["default"].shape({
|
|
5945
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5924
5946
|
}),
|
|
5925
|
-
css:
|
|
5926
|
-
hyperlinkColor:
|
|
5927
|
-
textColor:
|
|
5947
|
+
css: PropTypes__default["default"].shape({
|
|
5948
|
+
hyperlinkColor: PropTypes__default["default"].string,
|
|
5949
|
+
textColor: PropTypes__default["default"].string
|
|
5928
5950
|
}),
|
|
5929
5951
|
story: shapeStory,
|
|
5930
5952
|
config: shapeConfig
|
|
@@ -5965,13 +5987,13 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5965
5987
|
borderLeft: "solid 2px ".concat(borderColor)
|
|
5966
5988
|
};
|
|
5967
5989
|
|
|
5968
|
-
var _useState = useState(initBorderDirection),
|
|
5990
|
+
var _useState = React.useState(initBorderDirection),
|
|
5969
5991
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5970
5992
|
borderDirection = _useState2[0],
|
|
5971
5993
|
setBorderDirection = _useState2[1];
|
|
5972
5994
|
|
|
5973
5995
|
if (!content) return null;
|
|
5974
|
-
useEffect(function () {
|
|
5996
|
+
React.useEffect(function () {
|
|
5975
5997
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5976
5998
|
|
|
5977
5999
|
if (htmlElement && htmlElement.length) {
|
|
@@ -5988,7 +6010,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5988
6010
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
5989
6011
|
var configData = useStateValue() || {};
|
|
5990
6012
|
var textInvertColor = getTextColor(configData.theme);
|
|
5991
|
-
return /*#__PURE__*/
|
|
6013
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5992
6014
|
"data-test-id": "blurb",
|
|
5993
6015
|
style: borderColor && borderDirection,
|
|
5994
6016
|
dangerouslySetInnerHTML: {
|
|
@@ -6000,19 +6022,19 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
6000
6022
|
};
|
|
6001
6023
|
|
|
6002
6024
|
BlurbBase.propTypes = {
|
|
6003
|
-
element:
|
|
6004
|
-
text:
|
|
6025
|
+
element: PropTypes__default["default"].shape({
|
|
6026
|
+
text: PropTypes__default["default"].string
|
|
6005
6027
|
}),
|
|
6006
6028
|
|
|
6007
6029
|
/** templates can be either default or withBorder */
|
|
6008
|
-
template:
|
|
6009
|
-
opts:
|
|
6010
|
-
isExternalLink:
|
|
6030
|
+
template: PropTypes__default["default"].string,
|
|
6031
|
+
opts: PropTypes__default["default"].shape({
|
|
6032
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
6011
6033
|
}),
|
|
6012
6034
|
story: shapeStory,
|
|
6013
6035
|
config: shapeConfig,
|
|
6014
|
-
render:
|
|
6015
|
-
css:
|
|
6036
|
+
render: PropTypes__default["default"].func,
|
|
6037
|
+
css: PropTypes__default["default"].object
|
|
6016
6038
|
};
|
|
6017
6039
|
var Blurb = withElementWrapper(BlurbBase);
|
|
6018
6040
|
|
|
@@ -6065,19 +6087,19 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6065
6087
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
6066
6088
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
6067
6089
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
6068
|
-
return /*#__PURE__*/
|
|
6090
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6069
6091
|
"data-test-id": "summary"
|
|
6070
6092
|
}, restProps, {
|
|
6071
6093
|
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName(templateStyle, _styleModuleImportMap$c) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6072
|
-
}), !hideHeadline && /*#__PURE__*/
|
|
6094
|
+
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6073
6095
|
"data-test-id": "summary-headline",
|
|
6074
6096
|
className: _getClassName("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$c)
|
|
6075
|
-
}, /*#__PURE__*/
|
|
6097
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6076
6098
|
style: {
|
|
6077
6099
|
backgroundColor: updateHeaderColor
|
|
6078
6100
|
},
|
|
6079
6101
|
className: _getClassName("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$c)
|
|
6080
|
-
}, headline)), /*#__PURE__*/
|
|
6102
|
+
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6081
6103
|
dangerouslySetInnerHTML: {
|
|
6082
6104
|
__html: text
|
|
6083
6105
|
},
|
|
@@ -6086,20 +6108,20 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6086
6108
|
};
|
|
6087
6109
|
|
|
6088
6110
|
SummaryBase.propTypes = {
|
|
6089
|
-
element:
|
|
6090
|
-
text:
|
|
6111
|
+
element: PropTypes__default["default"].shape({
|
|
6112
|
+
text: PropTypes__default["default"].string
|
|
6091
6113
|
}),
|
|
6092
|
-
template:
|
|
6093
|
-
opts:
|
|
6094
|
-
isExternalLink:
|
|
6095
|
-
headline:
|
|
6096
|
-
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
|
|
6097
6119
|
}),
|
|
6098
6120
|
story: shapeStory,
|
|
6099
6121
|
config: shapeConfig,
|
|
6100
|
-
render:
|
|
6101
|
-
css:
|
|
6102
|
-
headerBgColor:
|
|
6122
|
+
render: PropTypes__default["default"].func,
|
|
6123
|
+
css: PropTypes__default["default"].shape({
|
|
6124
|
+
headerBgColor: PropTypes__default["default"].string
|
|
6103
6125
|
})
|
|
6104
6126
|
};
|
|
6105
6127
|
var Summary = withElementWrapper(SummaryBase);
|
|
@@ -6111,27 +6133,27 @@ var CurveIcon = function CurveIcon(_ref) {
|
|
|
6111
6133
|
opacity = _ref.opacity;
|
|
6112
6134
|
var lightColor = color === "light" && "#ffffff";
|
|
6113
6135
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6114
|
-
return /*#__PURE__*/
|
|
6136
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6115
6137
|
className: "icon-m_curve-wrapper__3-sLV",
|
|
6116
6138
|
style: {
|
|
6117
6139
|
fill: "".concat(lightColor || darkColor || color)
|
|
6118
6140
|
}
|
|
6119
|
-
}, /*#__PURE__*/
|
|
6141
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6120
6142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6121
6143
|
width: width,
|
|
6122
6144
|
height: height,
|
|
6123
6145
|
viewBox: "0 0 64 64"
|
|
6124
|
-
}, /*#__PURE__*/
|
|
6146
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6125
6147
|
fill: "inherit",
|
|
6126
6148
|
opacity: opacity,
|
|
6127
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"
|
|
6128
6150
|
})));
|
|
6129
6151
|
};
|
|
6130
6152
|
CurveIcon.propTypes = {
|
|
6131
|
-
width:
|
|
6132
|
-
height:
|
|
6133
|
-
color:
|
|
6134
|
-
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
|
|
6135
6157
|
};
|
|
6136
6158
|
|
|
6137
6159
|
var EdgeIcon = function EdgeIcon(_ref) {
|
|
@@ -6141,27 +6163,27 @@ var EdgeIcon = function EdgeIcon(_ref) {
|
|
|
6141
6163
|
opacity = _ref.opacity;
|
|
6142
6164
|
var lightColor = color === "light" && "#ffffff";
|
|
6143
6165
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6144
|
-
return /*#__PURE__*/
|
|
6166
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6145
6167
|
className: "icon-m_edge-wrapper__xUOdp",
|
|
6146
6168
|
style: {
|
|
6147
6169
|
fill: "".concat(lightColor || darkColor || color)
|
|
6148
6170
|
}
|
|
6149
|
-
}, /*#__PURE__*/
|
|
6171
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6150
6172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6151
6173
|
width: width,
|
|
6152
6174
|
height: height,
|
|
6153
6175
|
viewBox: "0 0 64 64"
|
|
6154
|
-
}, /*#__PURE__*/
|
|
6176
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6155
6177
|
fill: "inherit",
|
|
6156
6178
|
opacity: opacity,
|
|
6157
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"
|
|
6158
6180
|
})));
|
|
6159
6181
|
};
|
|
6160
6182
|
EdgeIcon.propTypes = {
|
|
6161
|
-
width:
|
|
6162
|
-
height:
|
|
6163
|
-
color:
|
|
6164
|
-
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
|
|
6165
6187
|
};
|
|
6166
6188
|
|
|
6167
6189
|
var _excluded$a = ["element", "template", "css", "story", "config", "render"];
|
|
@@ -6191,7 +6213,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6191
6213
|
|
|
6192
6214
|
if (template === "withBackground") {
|
|
6193
6215
|
if (iconType === "edgeIcon") {
|
|
6194
|
-
return /*#__PURE__*/
|
|
6216
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6195
6217
|
width: dimension,
|
|
6196
6218
|
height: dimension,
|
|
6197
6219
|
color: quoteColor,
|
|
@@ -6199,7 +6221,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6199
6221
|
});
|
|
6200
6222
|
}
|
|
6201
6223
|
|
|
6202
|
-
return /*#__PURE__*/
|
|
6224
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6203
6225
|
width: dimension,
|
|
6204
6226
|
height: dimension,
|
|
6205
6227
|
color: quoteColor,
|
|
@@ -6209,14 +6231,14 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6209
6231
|
|
|
6210
6232
|
if (template !== "withBackground") {
|
|
6211
6233
|
if (iconType === "edgeIcon") {
|
|
6212
|
-
return /*#__PURE__*/
|
|
6234
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6213
6235
|
width: dimension,
|
|
6214
6236
|
height: dimension,
|
|
6215
6237
|
color: blockQuoteColor
|
|
6216
6238
|
});
|
|
6217
6239
|
}
|
|
6218
6240
|
|
|
6219
|
-
return /*#__PURE__*/
|
|
6241
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6220
6242
|
width: dimension,
|
|
6221
6243
|
height: dimension,
|
|
6222
6244
|
color: blockQuoteColor
|
|
@@ -6252,38 +6274,38 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6252
6274
|
var textInvertColor = getTextColor(isBackground ? theme.backgroundColor : configData.theme);
|
|
6253
6275
|
|
|
6254
6276
|
var updateStructure = function updateStructure() {
|
|
6255
|
-
return template === "withBorder" ? /*#__PURE__*/
|
|
6277
|
+
return template === "withBorder" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6256
6278
|
className: "block-quote-m_icon-border__2xQQY"
|
|
6257
|
-
}, /*#__PURE__*/
|
|
6279
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6258
6280
|
className: "block-quote-m_icon__m-EIZ"
|
|
6259
|
-
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/
|
|
6281
|
+
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6260
6282
|
className: "block-quote-m_border__1ZTPR",
|
|
6261
6283
|
style: blockQuoteColor && {
|
|
6262
6284
|
backgroundColor: blockQuoteColor
|
|
6263
6285
|
}
|
|
6264
|
-
})) : /*#__PURE__*/
|
|
6286
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6265
6287
|
className: "block-quote-m_icon__m-EIZ"
|
|
6266
6288
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
6267
6289
|
};
|
|
6268
6290
|
|
|
6269
|
-
return /*#__PURE__*/
|
|
6291
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6270
6292
|
"data-test-id": "blockquote",
|
|
6271
6293
|
style: theme
|
|
6272
6294
|
}, restProps, {
|
|
6273
6295
|
className: "arrow-component arr--block-quote " + _getClassName("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$b) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6274
|
-
}), /*#__PURE__*/
|
|
6296
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6275
6297
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
6276
|
-
}, updateStructure(), /*#__PURE__*/
|
|
6298
|
+
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6277
6299
|
className: "block-quote-m_wrapper__2KEhw",
|
|
6278
6300
|
style: blockQuoteColor && {
|
|
6279
6301
|
borderColor: blockQuoteColor
|
|
6280
6302
|
}
|
|
6281
|
-
}, /*#__PURE__*/
|
|
6303
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6282
6304
|
dangerouslySetInnerHTML: {
|
|
6283
6305
|
__html: content
|
|
6284
6306
|
},
|
|
6285
6307
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$b)
|
|
6286
|
-
}), /*#__PURE__*/
|
|
6308
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6287
6309
|
dangerouslySetInnerHTML: {
|
|
6288
6310
|
__html: attribution
|
|
6289
6311
|
},
|
|
@@ -6291,17 +6313,17 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6291
6313
|
}))));
|
|
6292
6314
|
};
|
|
6293
6315
|
BlockQuoteBase.propTypes = {
|
|
6294
|
-
element:
|
|
6295
|
-
metadata:
|
|
6296
|
-
content:
|
|
6297
|
-
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
|
|
6298
6320
|
})
|
|
6299
6321
|
}),
|
|
6300
|
-
template:
|
|
6322
|
+
template: PropTypes__default["default"].string,
|
|
6301
6323
|
story: shapeStory,
|
|
6302
6324
|
config: shapeConfig,
|
|
6303
|
-
render:
|
|
6304
|
-
css:
|
|
6325
|
+
render: PropTypes__default["default"].func,
|
|
6326
|
+
css: PropTypes__default["default"].object
|
|
6305
6327
|
};
|
|
6306
6328
|
var BlockQuote = withElementWrapper(BlockQuoteBase);
|
|
6307
6329
|
|
|
@@ -6329,27 +6351,27 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
6329
6351
|
var _element$metadata = element.metadata,
|
|
6330
6352
|
content = _element$metadata.content,
|
|
6331
6353
|
attribution = _element$metadata.attribution;
|
|
6332
|
-
return /*#__PURE__*/
|
|
6354
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6333
6355
|
"data-test-id": "bigfact"
|
|
6334
6356
|
}, restProps, {
|
|
6335
6357
|
className: "arrow-component arr--bigfact-element " + _getClassName("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$a) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6336
|
-
}), /*#__PURE__*/
|
|
6358
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6337
6359
|
className: "big-fact-m_content__1u2Ul"
|
|
6338
|
-
}, content), /*#__PURE__*/
|
|
6360
|
+
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6339
6361
|
"data-test-id": "attribution",
|
|
6340
6362
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$a)
|
|
6341
6363
|
}, attribution));
|
|
6342
6364
|
};
|
|
6343
6365
|
|
|
6344
6366
|
BigFactBase.propTypes = {
|
|
6345
|
-
element:
|
|
6346
|
-
metadata:
|
|
6347
|
-
content:
|
|
6348
|
-
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
|
|
6349
6371
|
})
|
|
6350
6372
|
}),
|
|
6351
|
-
story:
|
|
6352
|
-
config:
|
|
6373
|
+
story: PropTypes__default["default"].object,
|
|
6374
|
+
config: PropTypes__default["default"].object
|
|
6353
6375
|
};
|
|
6354
6376
|
var BigFact = withElementWrapper(BigFactBase);
|
|
6355
6377
|
|
|
@@ -6383,11 +6405,11 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6383
6405
|
var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
|
|
6384
6406
|
var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
|
|
6385
6407
|
var alternateText = story["hero-image-caption"] || story["headline"];
|
|
6386
|
-
return /*#__PURE__*/
|
|
6408
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6387
6409
|
className: "also-read-m_card-image-wrapper__3GFzu"
|
|
6388
|
-
}, !isEmpty(linkedImage) ? /*#__PURE__*/
|
|
6410
|
+
}, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6389
6411
|
className: "also-read-m_card-image__3CwAv"
|
|
6390
|
-
}, /*#__PURE__*/
|
|
6412
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6391
6413
|
slug: linkedImage,
|
|
6392
6414
|
"aspect-ratio": imageAspectRatio,
|
|
6393
6415
|
defaultWidth: 480,
|
|
@@ -6396,19 +6418,19 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6396
6418
|
auto: ["format", "compress"]
|
|
6397
6419
|
},
|
|
6398
6420
|
alt: alternateText
|
|
6399
|
-
}))) : /*#__PURE__*/
|
|
6421
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6400
6422
|
className: "arr--fallback-also-read also-read-m_image__2jdRP"
|
|
6401
|
-
}, /*#__PURE__*/
|
|
6423
|
+
}, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
|
|
6402
6424
|
};
|
|
6403
6425
|
|
|
6404
6426
|
DisplayImage.propTypes = {
|
|
6405
|
-
story:
|
|
6406
|
-
"hero-image-caption":
|
|
6407
|
-
headline:
|
|
6427
|
+
story: PropTypes__default["default"].shape({
|
|
6428
|
+
"hero-image-caption": PropTypes__default["default"].string,
|
|
6429
|
+
headline: PropTypes__default["default"].string
|
|
6408
6430
|
}),
|
|
6409
|
-
linkedImage:
|
|
6410
|
-
template:
|
|
6411
|
-
isRightAlign:
|
|
6431
|
+
linkedImage: PropTypes__default["default"].string,
|
|
6432
|
+
template: PropTypes__default["default"].string,
|
|
6433
|
+
isRightAlign: PropTypes__default["default"].bool
|
|
6412
6434
|
};
|
|
6413
6435
|
|
|
6414
6436
|
var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
@@ -6441,22 +6463,22 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6441
6463
|
var isDefault = template === "" || template === "default";
|
|
6442
6464
|
var isRightAlign = template === "imageRightAlign";
|
|
6443
6465
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
6444
|
-
return /*#__PURE__*/
|
|
6466
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
|
|
6445
6467
|
"data-test-id": "also-read",
|
|
6446
6468
|
href: storyUrl,
|
|
6447
6469
|
"aria-label": "also-read"
|
|
6448
6470
|
}, restProps, {
|
|
6449
6471
|
className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap$9) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6450
|
-
}), !isDefault && /*#__PURE__*/
|
|
6472
|
+
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6451
6473
|
className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap$9)
|
|
6452
|
-
}, displayTitle), isDefault && /*#__PURE__*/
|
|
6474
|
+
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6453
6475
|
story: story,
|
|
6454
6476
|
linkedImage: linkedImage,
|
|
6455
6477
|
template: template,
|
|
6456
6478
|
isRightAlign: isRightAlign
|
|
6457
|
-
}), /*#__PURE__*/
|
|
6479
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6458
6480
|
className: "also-read-m_content-wrapper__26AZX"
|
|
6459
|
-
}, /*#__PURE__*/
|
|
6481
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6460
6482
|
className: "also-read-m_headline__VzF-c",
|
|
6461
6483
|
style: textColor ? {
|
|
6462
6484
|
color: textColor
|
|
@@ -6466,7 +6488,7 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6466
6488
|
dangerouslySetInnerHTML: {
|
|
6467
6489
|
__html: content
|
|
6468
6490
|
}
|
|
6469
|
-
}), isRightAlign && /*#__PURE__*/
|
|
6491
|
+
}), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6470
6492
|
story: story,
|
|
6471
6493
|
linkedImage: linkedImage,
|
|
6472
6494
|
template: template
|
|
@@ -6475,25 +6497,25 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6475
6497
|
|
|
6476
6498
|
AlsoReadBase.propTypes = {
|
|
6477
6499
|
/** template can be default, textLeftAlign or imageRightAlign */
|
|
6478
|
-
template:
|
|
6479
|
-
story:
|
|
6480
|
-
"linked-stories":
|
|
6500
|
+
template: PropTypes__default["default"].string,
|
|
6501
|
+
story: PropTypes__default["default"].shape({
|
|
6502
|
+
"linked-stories": PropTypes__default["default"].object
|
|
6481
6503
|
}),
|
|
6482
|
-
element:
|
|
6483
|
-
text:
|
|
6484
|
-
metadata:
|
|
6485
|
-
linkedStoryId:
|
|
6486
|
-
url:
|
|
6487
|
-
"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
|
|
6488
6510
|
})
|
|
6489
6511
|
})
|
|
6490
6512
|
}),
|
|
6491
|
-
opts:
|
|
6492
|
-
title:
|
|
6513
|
+
opts: PropTypes__default["default"].shape({
|
|
6514
|
+
title: PropTypes__default["default"].string
|
|
6493
6515
|
}),
|
|
6494
6516
|
config: shapeConfig,
|
|
6495
|
-
render:
|
|
6496
|
-
css:
|
|
6517
|
+
render: PropTypes__default["default"].func,
|
|
6518
|
+
css: PropTypes__default["default"].object
|
|
6497
6519
|
};
|
|
6498
6520
|
var AlsoRead = withElementWrapper(AlsoReadBase);
|
|
6499
6521
|
|
|
@@ -6501,20 +6523,20 @@ var Loading = function Loading(_ref) {
|
|
|
6501
6523
|
_ref.width;
|
|
6502
6524
|
_ref.height;
|
|
6503
6525
|
_ref.iconColor;
|
|
6504
|
-
return /*#__PURE__*/
|
|
6526
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6505
6527
|
className: "loading-m_loading-indicator__2Dlst"
|
|
6506
|
-
}, /*#__PURE__*/
|
|
6528
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6507
6529
|
width: "40",
|
|
6508
6530
|
height: "40",
|
|
6509
6531
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6510
6532
|
viewBox: "0 0 100 100",
|
|
6511
6533
|
preserveAspectRatio: "xMidYMid"
|
|
6512
|
-
}, /*#__PURE__*/
|
|
6534
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6513
6535
|
cx: "84",
|
|
6514
6536
|
cy: "50",
|
|
6515
6537
|
r: "0",
|
|
6516
6538
|
fill: "currentColor"
|
|
6517
|
-
}, /*#__PURE__*/
|
|
6539
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6518
6540
|
attributeName: "r",
|
|
6519
6541
|
values: "10;0;0;0;0",
|
|
6520
6542
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6523,7 +6545,7 @@ var Loading = function Loading(_ref) {
|
|
|
6523
6545
|
dur: "2s",
|
|
6524
6546
|
repeatCount: "indefinite",
|
|
6525
6547
|
begin: "0s"
|
|
6526
|
-
}), /*#__PURE__*/
|
|
6548
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6527
6549
|
attributeName: "cx",
|
|
6528
6550
|
values: "84;84;84;84;84",
|
|
6529
6551
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6532,12 +6554,12 @@ var Loading = function Loading(_ref) {
|
|
|
6532
6554
|
dur: "2s",
|
|
6533
6555
|
repeatCount: "indefinite",
|
|
6534
6556
|
begin: "0s"
|
|
6535
|
-
})), /*#__PURE__*/
|
|
6557
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6536
6558
|
cx: "84",
|
|
6537
6559
|
cy: "50",
|
|
6538
6560
|
r: ".709",
|
|
6539
6561
|
fill: "currentColor"
|
|
6540
|
-
}, /*#__PURE__*/
|
|
6562
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6541
6563
|
attributeName: "r",
|
|
6542
6564
|
values: "0;10;10;10;0",
|
|
6543
6565
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6546,7 +6568,7 @@ var Loading = function Loading(_ref) {
|
|
|
6546
6568
|
dur: "2s",
|
|
6547
6569
|
repeatCount: "indefinite",
|
|
6548
6570
|
begin: "-1s"
|
|
6549
|
-
}), /*#__PURE__*/
|
|
6571
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6550
6572
|
attributeName: "cx",
|
|
6551
6573
|
values: "16;16;50;84;84",
|
|
6552
6574
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6555,12 +6577,12 @@ var Loading = function Loading(_ref) {
|
|
|
6555
6577
|
dur: "2s",
|
|
6556
6578
|
repeatCount: "indefinite",
|
|
6557
6579
|
begin: "-1s"
|
|
6558
|
-
})), /*#__PURE__*/
|
|
6580
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6559
6581
|
cx: "81.59",
|
|
6560
6582
|
cy: "50",
|
|
6561
6583
|
r: "10",
|
|
6562
6584
|
fill: "currentColor"
|
|
6563
|
-
}, /*#__PURE__*/
|
|
6585
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6564
6586
|
attributeName: "r",
|
|
6565
6587
|
values: "0;10;10;10;0",
|
|
6566
6588
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6569,7 +6591,7 @@ var Loading = function Loading(_ref) {
|
|
|
6569
6591
|
dur: "2s",
|
|
6570
6592
|
repeatCount: "indefinite",
|
|
6571
6593
|
begin: "-0.5s"
|
|
6572
|
-
}), /*#__PURE__*/
|
|
6594
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6573
6595
|
attributeName: "cx",
|
|
6574
6596
|
values: "16;16;50;84;84",
|
|
6575
6597
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6578,12 +6600,12 @@ var Loading = function Loading(_ref) {
|
|
|
6578
6600
|
dur: "2s",
|
|
6579
6601
|
repeatCount: "indefinite",
|
|
6580
6602
|
begin: "-0.5s"
|
|
6581
|
-
})), /*#__PURE__*/
|
|
6603
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6582
6604
|
cx: "47.59",
|
|
6583
6605
|
cy: "50",
|
|
6584
6606
|
r: "10",
|
|
6585
6607
|
fill: "currentColor"
|
|
6586
|
-
}, /*#__PURE__*/
|
|
6608
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6587
6609
|
attributeName: "r",
|
|
6588
6610
|
values: "0;10;10;10;0",
|
|
6589
6611
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6592,7 +6614,7 @@ var Loading = function Loading(_ref) {
|
|
|
6592
6614
|
dur: "2s",
|
|
6593
6615
|
repeatCount: "indefinite",
|
|
6594
6616
|
begin: "0s"
|
|
6595
|
-
}), /*#__PURE__*/
|
|
6617
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6596
6618
|
attributeName: "cx",
|
|
6597
6619
|
values: "16;16;50;84;84",
|
|
6598
6620
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6601,12 +6623,12 @@ var Loading = function Loading(_ref) {
|
|
|
6601
6623
|
dur: "2s",
|
|
6602
6624
|
repeatCount: "indefinite",
|
|
6603
6625
|
begin: "0s"
|
|
6604
|
-
})), /*#__PURE__*/
|
|
6626
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6605
6627
|
cx: "16",
|
|
6606
6628
|
cy: "50",
|
|
6607
6629
|
r: "9.291",
|
|
6608
6630
|
fill: "currentColor"
|
|
6609
|
-
}, /*#__PURE__*/
|
|
6631
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6610
6632
|
attributeName: "r",
|
|
6611
6633
|
values: "0;0;10;10;10",
|
|
6612
6634
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6615,7 +6637,7 @@ var Loading = function Loading(_ref) {
|
|
|
6615
6637
|
dur: "2s",
|
|
6616
6638
|
repeatCount: "indefinite",
|
|
6617
6639
|
begin: "0s"
|
|
6618
|
-
}), /*#__PURE__*/
|
|
6640
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6619
6641
|
attributeName: "cx",
|
|
6620
6642
|
values: "16;16;16;50;84",
|
|
6621
6643
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6627,16 +6649,16 @@ var Loading = function Loading(_ref) {
|
|
|
6627
6649
|
}))));
|
|
6628
6650
|
};
|
|
6629
6651
|
Loading.propTypes = {
|
|
6630
|
-
width:
|
|
6631
|
-
height:
|
|
6632
|
-
iconColor:
|
|
6652
|
+
width: PropTypes__default["default"].object,
|
|
6653
|
+
height: PropTypes__default["default"].object,
|
|
6654
|
+
iconColor: PropTypes__default["default"].object
|
|
6633
6655
|
};
|
|
6634
6656
|
|
|
6635
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; }
|
|
6636
6658
|
|
|
6637
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; }
|
|
6638
|
-
var Lightbox = /*#__PURE__*/lazy(function () {
|
|
6639
|
-
return
|
|
6660
|
+
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
6661
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
6640
6662
|
});
|
|
6641
6663
|
var FullScreenImages = function FullScreenImages(_ref) {
|
|
6642
6664
|
var _ref$imageSlug = _ref.imageSlug,
|
|
@@ -6645,16 +6667,16 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6645
6667
|
_ref$element = _ref.element,
|
|
6646
6668
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
6647
6669
|
props = _ref.props;
|
|
6648
|
-
var cdnImage = useSelector(function (state) {
|
|
6670
|
+
var cdnImage = reactRedux.useSelector(function (state) {
|
|
6649
6671
|
return get_1(state, ["qt", "config", "cdn-image"]);
|
|
6650
6672
|
});
|
|
6651
6673
|
|
|
6652
|
-
var _useState = useState(0),
|
|
6674
|
+
var _useState = React.useState(0),
|
|
6653
6675
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6654
6676
|
photoIndex = _useState2[0],
|
|
6655
6677
|
handleImage = _useState2[1];
|
|
6656
6678
|
|
|
6657
|
-
var _useState3 = useState(false),
|
|
6679
|
+
var _useState3 = React.useState(false),
|
|
6658
6680
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
6659
6681
|
isOpen = _useState4[0],
|
|
6660
6682
|
handleOpen = _useState4[1];
|
|
@@ -6696,7 +6718,7 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6696
6718
|
|
|
6697
6719
|
var getHyperLink = function getHyperLink() {
|
|
6698
6720
|
if (element.hyperlink || hyperlinks[photoIndex]) {
|
|
6699
|
-
return /*#__PURE__*/
|
|
6721
|
+
return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6700
6722
|
hyperLink: element.hyperlink || hyperlinks[photoIndex]
|
|
6701
6723
|
});
|
|
6702
6724
|
}
|
|
@@ -6721,23 +6743,23 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6721
6743
|
};
|
|
6722
6744
|
|
|
6723
6745
|
var LoadingScreen = function LoadingScreen() {
|
|
6724
|
-
return /*#__PURE__*/
|
|
6746
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
6725
6747
|
};
|
|
6726
6748
|
|
|
6727
|
-
return /*#__PURE__*/
|
|
6728
|
-
fallback: /*#__PURE__*/
|
|
6729
|
-
}, /*#__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({
|
|
6730
6752
|
wrapperClassName: "arr--image-lightbox",
|
|
6731
6753
|
onCloseRequest: onClose
|
|
6732
6754
|
}, lightboxProps))) : null);
|
|
6733
6755
|
};
|
|
6734
6756
|
FullScreenImages.propTypes = {
|
|
6735
|
-
imageSlug:
|
|
6736
|
-
template:
|
|
6737
|
-
element:
|
|
6738
|
-
"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
|
|
6739
6761
|
}),
|
|
6740
|
-
props:
|
|
6762
|
+
props: PropTypes__default["default"].object
|
|
6741
6763
|
};
|
|
6742
6764
|
|
|
6743
6765
|
var _excluded$7 = ["element", "opts", "story", "config", "caption"];
|
|
@@ -6758,14 +6780,14 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6758
6780
|
|
|
6759
6781
|
var ImageTemplate = function ImageTemplate(_ref2) {
|
|
6760
6782
|
var _onClick = _ref2.onClick;
|
|
6761
|
-
return /*#__PURE__*/
|
|
6783
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6762
6784
|
className: "image-m_image-template__3s9OA"
|
|
6763
|
-
}, /*#__PURE__*/
|
|
6785
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6764
6786
|
className: "image-m_element__KVuzX",
|
|
6765
6787
|
onClick: function onClick() {
|
|
6766
6788
|
return _onClick();
|
|
6767
6789
|
}
|
|
6768
|
-
}, /*#__PURE__*/
|
|
6790
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6769
6791
|
slug: element["image-s3-key"],
|
|
6770
6792
|
metadata: element["image-metadata"],
|
|
6771
6793
|
alt: element["title"],
|
|
@@ -6775,40 +6797,40 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6775
6797
|
imgParams: {
|
|
6776
6798
|
auto: ["format", "compress"]
|
|
6777
6799
|
}
|
|
6778
|
-
})), element["hyperlink"] && /*#__PURE__*/
|
|
6800
|
+
})), element["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6779
6801
|
hyperLink: element["hyperlink"]
|
|
6780
6802
|
}));
|
|
6781
6803
|
};
|
|
6782
6804
|
|
|
6783
6805
|
ImageTemplate.propTypes = {
|
|
6784
|
-
onClick:
|
|
6806
|
+
onClick: PropTypes__default["default"].func
|
|
6785
6807
|
};
|
|
6786
|
-
return /*#__PURE__*/
|
|
6808
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6787
6809
|
className: "arrow-component arr--image-element"
|
|
6788
6810
|
}, restProps, {
|
|
6789
6811
|
"data-test-id": "image-element"
|
|
6790
|
-
}), /*#__PURE__*/
|
|
6812
|
+
}), /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6791
6813
|
template: ImageTemplate,
|
|
6792
6814
|
element: element,
|
|
6793
6815
|
imageSlug: element["image-s3-key"],
|
|
6794
6816
|
story: story
|
|
6795
|
-
}), caption && /*#__PURE__*/
|
|
6817
|
+
}), caption && /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
6796
6818
|
element: element,
|
|
6797
6819
|
config: configData
|
|
6798
6820
|
}));
|
|
6799
6821
|
};
|
|
6800
6822
|
|
|
6801
6823
|
ImageBase.propTypes = {
|
|
6802
|
-
element:
|
|
6803
|
-
"image-s3-key":
|
|
6804
|
-
"image-metadata":
|
|
6805
|
-
"image-attribution":
|
|
6806
|
-
title:
|
|
6807
|
-
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
|
|
6808
6830
|
}),
|
|
6809
|
-
caption:
|
|
6810
|
-
opts:
|
|
6811
|
-
imageWidths:
|
|
6831
|
+
caption: PropTypes__default["default"].bool,
|
|
6832
|
+
opts: PropTypes__default["default"].shape({
|
|
6833
|
+
imageWidths: PropTypes__default["default"].array
|
|
6812
6834
|
}),
|
|
6813
6835
|
story: shapeStory,
|
|
6814
6836
|
config: shapeConfig
|
|
@@ -6901,14 +6923,14 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6901
6923
|
var isAuthorImageTemplate = template === "withAuthorImage";
|
|
6902
6924
|
var templateStyle = isAuthorImageTemplate ? "qa-withAuthorImage" : "qa-default";
|
|
6903
6925
|
var iconType = defaultIconType === "curve" ? "curveIcon" : "edgeIcon";
|
|
6904
|
-
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", {
|
|
6905
6927
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6906
|
-
}, /*#__PURE__*/
|
|
6928
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6907
6929
|
src: questionAttribution,
|
|
6908
6930
|
loading: "lazy"
|
|
6909
|
-
})), /*#__PURE__*/
|
|
6931
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6910
6932
|
className: "question-answer-m_hidden__K0n4n"
|
|
6911
|
-
})) : /*#__PURE__*/
|
|
6933
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6912
6934
|
"data-test-id": iconType,
|
|
6913
6935
|
style: {
|
|
6914
6936
|
backgroundColor: iconColor
|
|
@@ -6916,36 +6938,36 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6916
6938
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6917
6939
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
6918
6940
|
|
|
6919
|
-
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", {
|
|
6920
6942
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6921
|
-
}, /*#__PURE__*/
|
|
6943
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6922
6944
|
src: answerAttribution,
|
|
6923
6945
|
loading: "lazy"
|
|
6924
|
-
})), /*#__PURE__*/
|
|
6946
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6925
6947
|
className: "question-answer-m_hidden__K0n4n"
|
|
6926
|
-
})) : /*#__PURE__*/
|
|
6948
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6927
6949
|
"data-test-id": iconType,
|
|
6928
6950
|
style: {
|
|
6929
6951
|
backgroundColor: iconColor
|
|
6930
6952
|
},
|
|
6931
6953
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6932
6954
|
}, "A");
|
|
6933
|
-
return /*#__PURE__*/
|
|
6955
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6934
6956
|
"data-test-id": "question-answer"
|
|
6935
6957
|
}, restProps, {
|
|
6936
6958
|
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap$8) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6937
|
-
}), type !== "answer" && /*#__PURE__*/
|
|
6959
|
+
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6938
6960
|
className: "question-answer-m_q-element__1ZA5d",
|
|
6939
6961
|
"data-test-id": "question"
|
|
6940
|
-
}, supportQuestionElement, /*#__PURE__*/
|
|
6962
|
+
}, supportQuestionElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6941
6963
|
dangerouslySetInnerHTML: {
|
|
6942
6964
|
__html: questionData
|
|
6943
6965
|
},
|
|
6944
6966
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$8)
|
|
6945
|
-
})), type !== "question" && /*#__PURE__*/
|
|
6967
|
+
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6946
6968
|
className: "question-answer-m_a-element__BTxfl",
|
|
6947
6969
|
"data-test-id": "answer"
|
|
6948
|
-
}, supportAnswerElement, /*#__PURE__*/
|
|
6970
|
+
}, supportAnswerElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6949
6971
|
dangerouslySetInnerHTML: {
|
|
6950
6972
|
__html: answerData
|
|
6951
6973
|
},
|
|
@@ -6954,29 +6976,29 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6954
6976
|
};
|
|
6955
6977
|
|
|
6956
6978
|
QuestionAnswerBase.propTypes = {
|
|
6957
|
-
element:
|
|
6958
|
-
metadata:
|
|
6959
|
-
interviewer:
|
|
6960
|
-
"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
|
|
6961
6983
|
}),
|
|
6962
|
-
interviewee:
|
|
6963
|
-
"avatar-url":
|
|
6984
|
+
interviewee: PropTypes__default["default"].shape({
|
|
6985
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6964
6986
|
}),
|
|
6965
|
-
question:
|
|
6966
|
-
answer:
|
|
6987
|
+
question: PropTypes__default["default"].string,
|
|
6988
|
+
answer: PropTypes__default["default"].string
|
|
6967
6989
|
}),
|
|
6968
|
-
text:
|
|
6990
|
+
text: PropTypes__default["default"].string
|
|
6969
6991
|
}),
|
|
6970
|
-
opts:
|
|
6971
|
-
type:
|
|
6972
|
-
defaultIconType:
|
|
6973
|
-
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
|
|
6974
6996
|
}),
|
|
6975
|
-
template:
|
|
6976
|
-
css:
|
|
6997
|
+
template: PropTypes__default["default"].string,
|
|
6998
|
+
css: PropTypes__default["default"].object,
|
|
6977
6999
|
config: shapeConfig,
|
|
6978
7000
|
story: shapeStory,
|
|
6979
|
-
render:
|
|
7001
|
+
render: PropTypes__default["default"].func
|
|
6980
7002
|
};
|
|
6981
7003
|
var QuestionAnswer = withElementWrapper(QuestionAnswerBase);
|
|
6982
7004
|
|
|
@@ -7018,17 +7040,17 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7018
7040
|
var ImageGalleryImagesTemplate = function ImageGalleryImagesTemplate(_ref2) {
|
|
7019
7041
|
var onClickHandler = _ref2.onClickHandler;
|
|
7020
7042
|
var images = renderImage.map(function (image, index) {
|
|
7021
|
-
return /*#__PURE__*/
|
|
7043
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7022
7044
|
key: index,
|
|
7023
7045
|
className: _getClassName(hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$7)
|
|
7024
|
-
}, /*#__PURE__*/
|
|
7046
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7025
7047
|
key: index,
|
|
7026
7048
|
"data-text-id": "image-".concat(index),
|
|
7027
7049
|
onClick: function onClick() {
|
|
7028
7050
|
return onClickHandler && onClickHandler(index);
|
|
7029
7051
|
},
|
|
7030
7052
|
className: _getClassName("image ".concat(classes), _styleModuleImportMap$7)
|
|
7031
|
-
}, /*#__PURE__*/
|
|
7053
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7032
7054
|
slug: image["image-s3-key"],
|
|
7033
7055
|
metadata: image["image-metadata"],
|
|
7034
7056
|
alt: image["title"],
|
|
@@ -7037,11 +7059,11 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7037
7059
|
imgParams: {
|
|
7038
7060
|
auto: ["format", "compress"]
|
|
7039
7061
|
}
|
|
7040
|
-
})), image["hyperlink"] && /*#__PURE__*/
|
|
7062
|
+
})), image["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7041
7063
|
hyperLink: image["hyperlink"]
|
|
7042
7064
|
}));
|
|
7043
7065
|
});
|
|
7044
|
-
return /*#__PURE__*/
|
|
7066
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7045
7067
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
7046
7068
|
}, restProps, {
|
|
7047
7069
|
"data-test-id": "image-gallery"
|
|
@@ -7049,24 +7071,24 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7049
7071
|
};
|
|
7050
7072
|
|
|
7051
7073
|
ImageGalleryImagesTemplate.propTypes = {
|
|
7052
|
-
onClickHandler:
|
|
7074
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7053
7075
|
};
|
|
7054
|
-
return /*#__PURE__*/
|
|
7076
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7055
7077
|
template: ImageGalleryImagesTemplate,
|
|
7056
7078
|
element: element
|
|
7057
7079
|
});
|
|
7058
7080
|
};
|
|
7059
7081
|
|
|
7060
7082
|
ImageGalleryBase.propTypes = {
|
|
7061
|
-
element:
|
|
7062
|
-
"story-elements":
|
|
7083
|
+
element: PropTypes__default["default"].shape({
|
|
7084
|
+
"story-elements": PropTypes__default["default"].array
|
|
7063
7085
|
}),
|
|
7064
|
-
opts:
|
|
7065
|
-
imageWidths:
|
|
7086
|
+
opts: PropTypes__default["default"].shape({
|
|
7087
|
+
imageWidths: PropTypes__default["default"].array
|
|
7066
7088
|
}),
|
|
7067
7089
|
story: shapeStory,
|
|
7068
7090
|
config: shapeConfig,
|
|
7069
|
-
template:
|
|
7091
|
+
template: PropTypes__default["default"].string
|
|
7070
7092
|
};
|
|
7071
7093
|
var ImageGallery = withElementWrapper(ImageGalleryBase);
|
|
7072
7094
|
|
|
@@ -7078,16 +7100,16 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
7078
7100
|
_ref.config;
|
|
7079
7101
|
var restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
7080
7102
|
|
|
7081
|
-
return /*#__PURE__*/
|
|
7103
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, restProps, {
|
|
7082
7104
|
"data-test-id": "story-elements"
|
|
7083
|
-
}), /*#__PURE__*/
|
|
7105
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
7084
7106
|
element: element
|
|
7085
7107
|
}));
|
|
7086
7108
|
};
|
|
7087
7109
|
|
|
7088
7110
|
var StoryElement = withElementWrapper(StoryElementBase);
|
|
7089
7111
|
StoryElementBase.propTypes = {
|
|
7090
|
-
element:
|
|
7112
|
+
element: PropTypes__default["default"].object,
|
|
7091
7113
|
story: shapeStory,
|
|
7092
7114
|
config: shapeConfig
|
|
7093
7115
|
};
|
|
@@ -7102,21 +7124,21 @@ var Videobase = function Videobase(_ref) {
|
|
|
7102
7124
|
loadIframeOnClick = _ref$loadIframeOnClic === void 0 ? false : _ref$loadIframeOnClic,
|
|
7103
7125
|
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
7104
7126
|
|
|
7105
|
-
return /*#__PURE__*/
|
|
7127
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7106
7128
|
className: "video-m_container__MYuWI" + (" " + (restProps ? restProps.className || "" : ""))
|
|
7107
7129
|
}, restProps, {
|
|
7108
7130
|
"data-test-id": "video"
|
|
7109
|
-
}), /*#__PURE__*/
|
|
7131
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
7110
7132
|
element: element,
|
|
7111
7133
|
loadIframeOnClick: loadIframeOnClick
|
|
7112
7134
|
}));
|
|
7113
7135
|
};
|
|
7114
7136
|
|
|
7115
7137
|
Videobase.propTypes = {
|
|
7116
|
-
element:
|
|
7138
|
+
element: PropTypes__default["default"].object,
|
|
7117
7139
|
story: shapeStory,
|
|
7118
7140
|
config: shapeConfig,
|
|
7119
|
-
loadIframeOnClick:
|
|
7141
|
+
loadIframeOnClick: PropTypes__default["default"].bool
|
|
7120
7142
|
};
|
|
7121
7143
|
var Video = withElementWrapper(Videobase);
|
|
7122
7144
|
|
|
@@ -7157,16 +7179,16 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7157
7179
|
var borderColor = css.borderColor;
|
|
7158
7180
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
7159
7181
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
7160
|
-
return /*#__PURE__*/
|
|
7182
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7161
7183
|
"data-test-id": "quote"
|
|
7162
7184
|
}, restProps, {
|
|
7163
7185
|
className: "arrow-component arr--quote-element " + _getClassName(templateStyle, _styleModuleImportMap$6) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7164
|
-
}), template === "borderTopSmall" && /*#__PURE__*/
|
|
7186
|
+
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7165
7187
|
className: "quote-m_line__3gtoE",
|
|
7166
7188
|
style: borderColor && {
|
|
7167
7189
|
backgroundColor: borderColor
|
|
7168
7190
|
}
|
|
7169
|
-
}), /*#__PURE__*/
|
|
7191
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7170
7192
|
style: borderColor && {
|
|
7171
7193
|
borderLeft: updateBorderColor
|
|
7172
7194
|
},
|
|
@@ -7174,26 +7196,26 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7174
7196
|
__html: content
|
|
7175
7197
|
},
|
|
7176
7198
|
className: _getClassName("text ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7177
|
-
}), /*#__PURE__*/
|
|
7199
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7178
7200
|
"data-test-id": "quote-attribution",
|
|
7179
7201
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7180
7202
|
}, attribution));
|
|
7181
7203
|
};
|
|
7182
7204
|
|
|
7183
7205
|
QuoteBase.propTypes = {
|
|
7184
|
-
element:
|
|
7185
|
-
metadata:
|
|
7186
|
-
content:
|
|
7187
|
-
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
|
|
7188
7210
|
})
|
|
7189
7211
|
}),
|
|
7190
7212
|
|
|
7191
7213
|
/** template can be default, borderTopSmall and borderLeft */
|
|
7192
|
-
template:
|
|
7214
|
+
template: PropTypes__default["default"].string,
|
|
7193
7215
|
story: shapeStory,
|
|
7194
7216
|
config: shapeConfig,
|
|
7195
|
-
render:
|
|
7196
|
-
css:
|
|
7217
|
+
render: PropTypes__default["default"].func,
|
|
7218
|
+
css: PropTypes__default["default"].object
|
|
7197
7219
|
};
|
|
7198
7220
|
var Quote = withElementWrapper(QuoteBase);
|
|
7199
7221
|
|
|
@@ -7227,7 +7249,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7227
7249
|
var _opts$showHeadline = opts.showHeadline,
|
|
7228
7250
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
7229
7251
|
headlineText = opts.headlineText;
|
|
7230
|
-
return /*#__PURE__*/
|
|
7252
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7231
7253
|
className: "arrow-component arr--reference-element"
|
|
7232
7254
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
7233
7255
|
var _metadata$name = metadata.name,
|
|
@@ -7235,33 +7257,33 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7235
7257
|
_metadata$description = metadata.description,
|
|
7236
7258
|
description = _metadata$description === void 0 ? "" : _metadata$description,
|
|
7237
7259
|
url = metadata.url;
|
|
7238
|
-
return /*#__PURE__*/
|
|
7260
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7239
7261
|
key: index,
|
|
7240
7262
|
className: _getClassName("wrapper ".concat(textInvertColor), _styleModuleImportMap$5)
|
|
7241
|
-
}, /*#__PURE__*/
|
|
7263
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7242
7264
|
href: url,
|
|
7243
7265
|
"aria-label": "reference-headline"
|
|
7244
|
-
}, showHeadline && /*#__PURE__*/
|
|
7266
|
+
}, showHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7245
7267
|
className: "reference-m_name__24IwG",
|
|
7246
7268
|
"data-test-id": "ref-headline"
|
|
7247
|
-
}, headlineText || name), /*#__PURE__*/
|
|
7269
|
+
}, headlineText || name), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7248
7270
|
className: "reference-m_description__2x3Io"
|
|
7249
7271
|
}, description)));
|
|
7250
7272
|
}));
|
|
7251
7273
|
};
|
|
7252
7274
|
|
|
7253
7275
|
ReferenceBase.propTypes = {
|
|
7254
|
-
element:
|
|
7255
|
-
"story-elements":
|
|
7256
|
-
metadata:
|
|
7257
|
-
name:
|
|
7258
|
-
description:
|
|
7259
|
-
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
|
|
7260
7282
|
})
|
|
7261
7283
|
}))
|
|
7262
7284
|
}),
|
|
7263
|
-
opts:
|
|
7264
|
-
hideHeadline:
|
|
7285
|
+
opts: PropTypes__default["default"].shape({
|
|
7286
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
7265
7287
|
}),
|
|
7266
7288
|
config: shapeConfig
|
|
7267
7289
|
};
|
|
@@ -7303,28 +7325,28 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7303
7325
|
var textColor = getTextColor(configData.theme);
|
|
7304
7326
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
7305
7327
|
var defaultFileName = fileName || defaultName;
|
|
7306
|
-
return /*#__PURE__*/
|
|
7328
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7307
7329
|
"data-test-id": "attachment"
|
|
7308
7330
|
}, restProps, {
|
|
7309
7331
|
className: "arrow-component arr--attachment-element " + _getClassName(textColor, _styleModuleImportMap$4) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7310
|
-
}), /*#__PURE__*/
|
|
7332
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7311
7333
|
className: "attachment-m_headline__kP7Hs"
|
|
7312
|
-
}, "Attachment"), /*#__PURE__*/
|
|
7334
|
+
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7313
7335
|
className: "attachment-m_wrapper__3gMwN"
|
|
7314
|
-
}, isPdf ? /*#__PURE__*/
|
|
7336
|
+
}, isPdf ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7315
7337
|
"data-test-id": "pdf",
|
|
7316
7338
|
className: "attachment-m_pdf__3i_bR"
|
|
7317
|
-
}, "PDF") : /*#__PURE__*/
|
|
7339
|
+
}, "PDF") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7318
7340
|
"data-test-id": "doc",
|
|
7319
7341
|
className: "attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"
|
|
7320
|
-
}, "DOC"), /*#__PURE__*/
|
|
7342
|
+
}, "DOC"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7321
7343
|
className: "attachment-m_content-wrapper__3Yu0B"
|
|
7322
|
-
}, /*#__PURE__*/
|
|
7344
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7323
7345
|
className: "attachment-m_file-name__1LU9q",
|
|
7324
7346
|
dangerouslySetInnerHTML: {
|
|
7325
7347
|
__html: defaultFileName
|
|
7326
7348
|
}
|
|
7327
|
-
}), /*#__PURE__*/
|
|
7349
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7328
7350
|
className: "attachment-m_button-wrapper__2fajK",
|
|
7329
7351
|
href: url,
|
|
7330
7352
|
target: "_blank",
|
|
@@ -7335,59 +7357,59 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7335
7357
|
};
|
|
7336
7358
|
|
|
7337
7359
|
AttachmentBase.propTypes = {
|
|
7338
|
-
element:
|
|
7339
|
-
url:
|
|
7340
|
-
fileName:
|
|
7341
|
-
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
|
|
7342
7364
|
}),
|
|
7343
|
-
render:
|
|
7365
|
+
render: PropTypes__default["default"].func
|
|
7344
7366
|
};
|
|
7345
7367
|
var Attachment = withElementWrapper(AttachmentBase);
|
|
7346
7368
|
|
|
7347
7369
|
var LeftArrow = function LeftArrow(_ref) {
|
|
7348
7370
|
var _ref$color = _ref.color,
|
|
7349
7371
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7350
|
-
return /*#__PURE__*/
|
|
7372
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7351
7373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7352
7374
|
width: "16",
|
|
7353
7375
|
height: "16",
|
|
7354
7376
|
viewBox: "0 0 10 16"
|
|
7355
|
-
}, /*#__PURE__*/
|
|
7377
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7356
7378
|
fill: "none",
|
|
7357
7379
|
fillRule: "nonzero"
|
|
7358
|
-
}, /*#__PURE__*/
|
|
7380
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7359
7381
|
d: "M17 20H-7V-4h24z",
|
|
7360
7382
|
opacity: ".384"
|
|
7361
|
-
}), /*#__PURE__*/
|
|
7383
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7362
7384
|
stroke: color,
|
|
7363
7385
|
d: "M9 16L1 8l8-8"
|
|
7364
7386
|
})));
|
|
7365
7387
|
};
|
|
7366
7388
|
LeftArrow.propTypes = {
|
|
7367
|
-
color:
|
|
7389
|
+
color: PropTypes__default["default"].string
|
|
7368
7390
|
};
|
|
7369
7391
|
|
|
7370
7392
|
var RightArrow = function RightArrow(_ref) {
|
|
7371
7393
|
var _ref$color = _ref.color,
|
|
7372
7394
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7373
|
-
return /*#__PURE__*/
|
|
7395
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7374
7396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7375
7397
|
width: "16",
|
|
7376
7398
|
height: "16",
|
|
7377
7399
|
viewBox: "0 0 10 16"
|
|
7378
|
-
}, /*#__PURE__*/
|
|
7400
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7379
7401
|
fill: "none",
|
|
7380
7402
|
fillRule: "nonzero"
|
|
7381
|
-
}, /*#__PURE__*/
|
|
7403
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7382
7404
|
d: "M-7-4h24v24H-7z",
|
|
7383
7405
|
opacity: ".384"
|
|
7384
|
-
}), /*#__PURE__*/
|
|
7406
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7385
7407
|
stroke: color,
|
|
7386
7408
|
d: "M1 0l8 8-8 8"
|
|
7387
7409
|
})));
|
|
7388
7410
|
};
|
|
7389
7411
|
RightArrow.propTypes = {
|
|
7390
|
-
color:
|
|
7412
|
+
color: PropTypes__default["default"].string
|
|
7391
7413
|
};
|
|
7392
7414
|
|
|
7393
7415
|
var _styleModuleImportMap$3 = {
|
|
@@ -7425,26 +7447,26 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
7425
7447
|
|
|
7426
7448
|
var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
|
|
7427
7449
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
7428
|
-
return /*#__PURE__*/
|
|
7450
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7429
7451
|
onClick: previousClick,
|
|
7430
7452
|
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$3)
|
|
7431
|
-
}, /*#__PURE__*/
|
|
7453
|
+
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
7432
7454
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7433
|
-
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/
|
|
7455
|
+
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7434
7456
|
onClick: nextClick,
|
|
7435
7457
|
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$3)
|
|
7436
|
-
}, /*#__PURE__*/
|
|
7458
|
+
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
7437
7459
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7438
7460
|
})) : null);
|
|
7439
7461
|
};
|
|
7440
7462
|
SliderArrow.propTypes = {
|
|
7441
|
-
noOfItems: number,
|
|
7442
|
-
perView: number,
|
|
7443
|
-
slideIndicator: string,
|
|
7444
|
-
previousClick: func,
|
|
7445
|
-
nextClick: func,
|
|
7446
|
-
selectedIndex: number,
|
|
7447
|
-
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
|
|
7448
7470
|
};
|
|
7449
7471
|
|
|
7450
7472
|
var _styleModuleImportMap$2 = {
|
|
@@ -7472,27 +7494,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
7472
7494
|
|
|
7473
7495
|
var config = useStateValue() || {};
|
|
7474
7496
|
var textColor = getTextColor(config.theme);
|
|
7475
|
-
return /*#__PURE__*/
|
|
7497
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
7476
7498
|
className: "slider-indicators slider-indicator-m_indicators__3MNXc"
|
|
7477
7499
|
}, indicatorItems.map(function (_, index) {
|
|
7478
|
-
return /*#__PURE__*/
|
|
7500
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7479
7501
|
key: "slider-".concat(index),
|
|
7480
7502
|
className: "indicator slider-indicator-m_indicator__gTv3x",
|
|
7481
7503
|
onClick: function onClick(e) {
|
|
7482
7504
|
return indicatorClick(e, index);
|
|
7483
7505
|
}
|
|
7484
|
-
}, /*#__PURE__*/
|
|
7506
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7485
7507
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
7486
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)
|
|
7487
7509
|
}));
|
|
7488
7510
|
}));
|
|
7489
7511
|
};
|
|
7490
7512
|
SliderIndicator.propTypes = {
|
|
7491
|
-
indicatorItems: array,
|
|
7492
|
-
perView: number,
|
|
7493
|
-
indicatorType: string,
|
|
7494
|
-
indicatorClick: func,
|
|
7495
|
-
selectedIndex: number
|
|
7513
|
+
indicatorItems: PropTypes.array,
|
|
7514
|
+
perView: PropTypes.number,
|
|
7515
|
+
indicatorType: PropTypes.string,
|
|
7516
|
+
indicatorClick: PropTypes.func,
|
|
7517
|
+
selectedIndex: PropTypes.number
|
|
7496
7518
|
};
|
|
7497
7519
|
|
|
7498
7520
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
@@ -7527,24 +7549,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7527
7549
|
perView = _ref.perView,
|
|
7528
7550
|
slideIndicator = _ref.slideIndicator;
|
|
7529
7551
|
|
|
7530
|
-
var _useState = useState(0),
|
|
7552
|
+
var _useState = React.useState(0),
|
|
7531
7553
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7532
7554
|
selectedIndex = _useState2[0],
|
|
7533
7555
|
setSelectedIndex = _useState2[1];
|
|
7534
7556
|
|
|
7535
|
-
var _useState3 = useState(false),
|
|
7557
|
+
var _useState3 = React.useState(false),
|
|
7536
7558
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7537
7559
|
autoScroll = _useState4[0],
|
|
7538
7560
|
setAutoScroll = _useState4[1];
|
|
7539
7561
|
|
|
7540
|
-
var languageDirection = useSelector(function (state) {
|
|
7562
|
+
var languageDirection = reactRedux.useSelector(function (state) {
|
|
7541
7563
|
return get_1(state, ["qt", "config", "language", "direction"], "ltr");
|
|
7542
7564
|
});
|
|
7543
7565
|
var noOfItems = children ? children.length : 0;
|
|
7544
|
-
var scroller = useRef(null);
|
|
7566
|
+
var scroller = React.useRef(null);
|
|
7545
7567
|
var numberOfIndicatorsToShow = children.length - (perView - 1);
|
|
7546
7568
|
var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
|
|
7547
|
-
useEffect(function () {
|
|
7569
|
+
React.useEffect(function () {
|
|
7548
7570
|
if (scroller.current) {
|
|
7549
7571
|
scroller.current.addEventListener("scroll", setIndicatorValue(function () {
|
|
7550
7572
|
var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
|
|
@@ -7561,7 +7583,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7561
7583
|
};
|
|
7562
7584
|
}, []); // Infinite scroll
|
|
7563
7585
|
|
|
7564
|
-
useEffect(function () {
|
|
7586
|
+
React.useEffect(function () {
|
|
7565
7587
|
if (isInfinite && !autoScroll) {
|
|
7566
7588
|
var timer = setInterval(function () {
|
|
7567
7589
|
infiniteScroll();
|
|
@@ -7610,23 +7632,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7610
7632
|
updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
|
|
7611
7633
|
};
|
|
7612
7634
|
|
|
7613
|
-
return /*#__PURE__*/
|
|
7635
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7614
7636
|
className: "scroll-snap-container"
|
|
7615
|
-
}, /*#__PURE__*/
|
|
7637
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7616
7638
|
className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
|
|
7617
7639
|
onMouseEnter: pauseAutoPlay,
|
|
7618
7640
|
onMouseLeave: pauseAutoPlay
|
|
7619
|
-
}, /*#__PURE__*/
|
|
7641
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7620
7642
|
ref: scroller,
|
|
7621
7643
|
className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
|
|
7622
|
-
}, children), isArrow && /*#__PURE__*/
|
|
7644
|
+
}, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
|
|
7623
7645
|
noOfItems: noOfItems,
|
|
7624
7646
|
perView: perView,
|
|
7625
7647
|
previousClick: previousClick,
|
|
7626
7648
|
nextClick: nextClick,
|
|
7627
7649
|
selectedIndex: selectedIndex,
|
|
7628
7650
|
languageDirection: languageDirection
|
|
7629
|
-
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/
|
|
7651
|
+
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
|
|
7630
7652
|
indicatorItems: indicatorItems,
|
|
7631
7653
|
indicatorClick: indicatorClick,
|
|
7632
7654
|
selectedIndex: selectedIndex,
|
|
@@ -7642,13 +7664,13 @@ ScrollSnap.defaultProps = {
|
|
|
7642
7664
|
slideIndicator: "dots"
|
|
7643
7665
|
};
|
|
7644
7666
|
ScrollSnap.propTypes = {
|
|
7645
|
-
children: array.isRequired,
|
|
7646
|
-
isArrow: bool,
|
|
7647
|
-
isInfinite: bool,
|
|
7648
|
-
interval: number,
|
|
7649
|
-
pauseOnHover: bool,
|
|
7650
|
-
perView: number,
|
|
7651
|
-
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
|
|
7652
7674
|
};
|
|
7653
7675
|
|
|
7654
7676
|
var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
@@ -7661,18 +7683,18 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7661
7683
|
title = image.title,
|
|
7662
7684
|
_image$hyperlink = image.hyperlink,
|
|
7663
7685
|
hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
|
|
7664
|
-
return /*#__PURE__*/
|
|
7686
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7665
7687
|
className: "image-slideshow-m_slide__3URCC",
|
|
7666
7688
|
key: id
|
|
7667
|
-
}, /*#__PURE__*/
|
|
7689
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7668
7690
|
key: id,
|
|
7669
7691
|
className: "image-slideshow-m_image-container__2VTEK",
|
|
7670
7692
|
onClick: function onClick() {
|
|
7671
7693
|
return onClickHandler(index);
|
|
7672
7694
|
}
|
|
7673
|
-
}, /*#__PURE__*/
|
|
7695
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
|
|
7674
7696
|
margin: "0px"
|
|
7675
|
-
}, /*#__PURE__*/
|
|
7697
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7676
7698
|
slug: imageS3Key,
|
|
7677
7699
|
metadata: metadata,
|
|
7678
7700
|
"aspect-ratio": [16, 9],
|
|
@@ -7683,9 +7705,9 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7683
7705
|
},
|
|
7684
7706
|
className: "image-slideshow-m_image__1p1fO",
|
|
7685
7707
|
alt: title
|
|
7686
|
-
}))), hyperlink && /*#__PURE__*/
|
|
7708
|
+
}))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7687
7709
|
hyperLink: hyperlink
|
|
7688
|
-
}), /*#__PURE__*/
|
|
7710
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7689
7711
|
className: "image-slideshow-m_caption__mWpmc",
|
|
7690
7712
|
dangerouslySetInnerHTML: {
|
|
7691
7713
|
__html: title
|
|
@@ -7696,10 +7718,10 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7696
7718
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
7697
7719
|
var onClickHandler = _ref.onClickHandler;
|
|
7698
7720
|
var storyElements = get_1(props, ["element", "story-elements"], []);
|
|
7699
|
-
return /*#__PURE__*/
|
|
7721
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7700
7722
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
7701
7723
|
"data-test-id": "image-slideshow"
|
|
7702
|
-
}, /*#__PURE__*/
|
|
7724
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
|
|
7703
7725
|
slideIndicator: "none"
|
|
7704
7726
|
}, storyElements.map(function (image, index) {
|
|
7705
7727
|
return Slide(image, index, onClickHandler);
|
|
@@ -7707,17 +7729,17 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7707
7729
|
};
|
|
7708
7730
|
|
|
7709
7731
|
ImageSlideshowTemplate.propTypes = {
|
|
7710
|
-
onClickHandler:
|
|
7732
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7711
7733
|
};
|
|
7712
|
-
return /*#__PURE__*/
|
|
7734
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7713
7735
|
template: ImageSlideshowTemplate,
|
|
7714
7736
|
element: props.element
|
|
7715
7737
|
});
|
|
7716
7738
|
};
|
|
7717
7739
|
|
|
7718
7740
|
ImageSlideshowBase.propTypes = {
|
|
7719
|
-
element:
|
|
7720
|
-
"story-elements":
|
|
7741
|
+
element: PropTypes__default["default"].shape({
|
|
7742
|
+
"story-elements": PropTypes__default["default"].array
|
|
7721
7743
|
}),
|
|
7722
7744
|
story: shapeStory
|
|
7723
7745
|
};
|
|
@@ -7775,12 +7797,12 @@ var getElement = function getElement(story, element) {
|
|
|
7775
7797
|
|
|
7776
7798
|
switch (elementType) {
|
|
7777
7799
|
case "ad":
|
|
7778
|
-
return /*#__PURE__*/
|
|
7800
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
7779
7801
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
7780
7802
|
}));
|
|
7781
7803
|
|
|
7782
7804
|
case "widget":
|
|
7783
|
-
return /*#__PURE__*/
|
|
7805
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
7784
7806
|
widgetCode: element.config.customCode,
|
|
7785
7807
|
id: "widget-".concat(index, "_").concat(cardId)
|
|
7786
7808
|
});
|
|
@@ -7793,7 +7815,7 @@ var getElement = function getElement(story, element) {
|
|
|
7793
7815
|
textElementColor = _text$css$textColor === void 0 ? "#000" : _text$css$textColor,
|
|
7794
7816
|
_text$css$hyperlinkCo = _text$css.hyperlinkColor,
|
|
7795
7817
|
hyperlinkColor = _text$css$hyperlinkCo === void 0 ? "#2f81cd" : _text$css$hyperlinkCo;
|
|
7796
|
-
return /*#__PURE__*/
|
|
7818
|
+
return /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
7797
7819
|
element: element,
|
|
7798
7820
|
css: {
|
|
7799
7821
|
textColor: textElementColor,
|
|
@@ -7814,7 +7836,7 @@ var getElement = function getElement(story, element) {
|
|
|
7814
7836
|
headline = _summary$opts$headlin === void 0 ? "" : _summary$opts$headlin,
|
|
7815
7837
|
_summary$opts$hideHea = _summary$opts.hideHeadline,
|
|
7816
7838
|
hideHeadline = _summary$opts$hideHea === void 0 ? false : _summary$opts$hideHea;
|
|
7817
|
-
return /*#__PURE__*/
|
|
7839
|
+
return /*#__PURE__*/React__default["default"].createElement(Summary, {
|
|
7818
7840
|
element: element,
|
|
7819
7841
|
template: summaryTemplate,
|
|
7820
7842
|
opts: {
|
|
@@ -7833,7 +7855,7 @@ var getElement = function getElement(story, element) {
|
|
|
7833
7855
|
_blurb$css = _blurb$css === void 0 ? {} : _blurb$css;
|
|
7834
7856
|
var _blurb$css$borderColo = _blurb$css.borderColor,
|
|
7835
7857
|
borderColor = _blurb$css$borderColo === void 0 ? "#2f81cd" : _blurb$css$borderColo;
|
|
7836
|
-
return /*#__PURE__*/
|
|
7858
|
+
return /*#__PURE__*/React__default["default"].createElement(Blurb, {
|
|
7837
7859
|
element: element,
|
|
7838
7860
|
template: blurbTemplate,
|
|
7839
7861
|
css: {
|
|
@@ -7852,7 +7874,7 @@ var getElement = function getElement(story, element) {
|
|
|
7852
7874
|
blockQuoteColor = _blockquote$css$block === void 0 ? "#2f81cd" : _blockquote$css$block,
|
|
7853
7875
|
_blockquote$css$backg = _blockquote$css.backgroundShade,
|
|
7854
7876
|
backgroundShade = _blockquote$css$backg === void 0 ? "" : _blockquote$css$backg;
|
|
7855
|
-
return /*#__PURE__*/
|
|
7877
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockQuote, {
|
|
7856
7878
|
element: element,
|
|
7857
7879
|
template: blockQuoteTemplate,
|
|
7858
7880
|
css: {
|
|
@@ -7869,7 +7891,7 @@ var getElement = function getElement(story, element) {
|
|
|
7869
7891
|
_quote$css = _quote$css === void 0 ? {} : _quote$css;
|
|
7870
7892
|
var _quote$css$borderColo = _quote$css.borderColor,
|
|
7871
7893
|
quoteBorderColor = _quote$css$borderColo === void 0 ? "#2f81cd" : _quote$css$borderColo;
|
|
7872
|
-
return /*#__PURE__*/
|
|
7894
|
+
return /*#__PURE__*/React__default["default"].createElement(Quote, {
|
|
7873
7895
|
element: element,
|
|
7874
7896
|
template: quoteTemplate,
|
|
7875
7897
|
css: {
|
|
@@ -7878,7 +7900,7 @@ var getElement = function getElement(story, element) {
|
|
|
7878
7900
|
});
|
|
7879
7901
|
|
|
7880
7902
|
case "bigfact":
|
|
7881
|
-
return /*#__PURE__*/
|
|
7903
|
+
return /*#__PURE__*/React__default["default"].createElement(BigFact, {
|
|
7882
7904
|
element: element
|
|
7883
7905
|
});
|
|
7884
7906
|
|
|
@@ -7893,7 +7915,7 @@ var getElement = function getElement(story, element) {
|
|
|
7893
7915
|
_alsoRead$opts = _alsoRead$opts === void 0 ? {} : _alsoRead$opts;
|
|
7894
7916
|
var _alsoRead$opts$title = _alsoRead$opts.title,
|
|
7895
7917
|
title = _alsoRead$opts$title === void 0 ? "" : _alsoRead$opts$title;
|
|
7896
|
-
return /*#__PURE__*/
|
|
7918
|
+
return /*#__PURE__*/React__default["default"].createElement(AlsoRead, {
|
|
7897
7919
|
story: story,
|
|
7898
7920
|
element: element,
|
|
7899
7921
|
template: alsoReadTemplate,
|
|
@@ -7906,7 +7928,7 @@ var getElement = function getElement(story, element) {
|
|
|
7906
7928
|
});
|
|
7907
7929
|
|
|
7908
7930
|
case "image":
|
|
7909
|
-
return /*#__PURE__*/
|
|
7931
|
+
return /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
7910
7932
|
element: element
|
|
7911
7933
|
});
|
|
7912
7934
|
|
|
@@ -7921,7 +7943,7 @@ var getElement = function getElement(story, element) {
|
|
|
7921
7943
|
_qaElement$opts = _qaElement$opts === void 0 ? {} : _qaElement$opts;
|
|
7922
7944
|
var _qaElement$opts$defau = _qaElement$opts.defaultIconType,
|
|
7923
7945
|
defaultIconType = _qaElement$opts$defau === void 0 ? "edge" : _qaElement$opts$defau;
|
|
7924
|
-
return /*#__PURE__*/
|
|
7946
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7925
7947
|
element: element,
|
|
7926
7948
|
opts: {
|
|
7927
7949
|
type: "q-and-a",
|
|
@@ -7944,7 +7966,7 @@ var getElement = function getElement(story, element) {
|
|
|
7944
7966
|
_questionElement$opts = _questionElement$opts === void 0 ? {} : _questionElement$opts;
|
|
7945
7967
|
var _questionElement$opts2 = _questionElement$opts.defaultQuestionIconType,
|
|
7946
7968
|
defaultQuestionIconType = _questionElement$opts2 === void 0 ? "edge" : _questionElement$opts2;
|
|
7947
|
-
return /*#__PURE__*/
|
|
7969
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7948
7970
|
element: element,
|
|
7949
7971
|
opts: {
|
|
7950
7972
|
type: "question",
|
|
@@ -7967,7 +7989,7 @@ var getElement = function getElement(story, element) {
|
|
|
7967
7989
|
_answerElement$opts = _answerElement$opts === void 0 ? {} : _answerElement$opts;
|
|
7968
7990
|
var _answerElement$opts$d = _answerElement$opts.defaultAnswerIconType,
|
|
7969
7991
|
defaultAnswerIconType = _answerElement$opts$d === void 0 ? "edge" : _answerElement$opts$d;
|
|
7970
|
-
return /*#__PURE__*/
|
|
7992
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7971
7993
|
element: element,
|
|
7972
7994
|
opts: {
|
|
7973
7995
|
type: "answer",
|
|
@@ -7980,43 +8002,43 @@ var getElement = function getElement(story, element) {
|
|
|
7980
8002
|
});
|
|
7981
8003
|
|
|
7982
8004
|
case "gallery":
|
|
7983
|
-
return /*#__PURE__*/
|
|
8005
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7984
8006
|
className: "content-style",
|
|
7985
8007
|
id: "image-gallery-".concat(storyElementId)
|
|
7986
|
-
}, /*#__PURE__*/
|
|
8008
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery, {
|
|
7987
8009
|
element: element
|
|
7988
8010
|
}));
|
|
7989
8011
|
|
|
7990
8012
|
case "slideshow":
|
|
7991
|
-
return /*#__PURE__*/
|
|
8013
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7992
8014
|
className: "content-style",
|
|
7993
8015
|
id: "image-slideshow-".concat(storyElementId)
|
|
7994
|
-
}, /*#__PURE__*/
|
|
8016
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageSlideshow, {
|
|
7995
8017
|
element: element
|
|
7996
8018
|
}));
|
|
7997
8019
|
|
|
7998
8020
|
case "youtube-video":
|
|
7999
8021
|
case "dailymotion-video":
|
|
8000
|
-
return /*#__PURE__*/
|
|
8022
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8001
8023
|
className: "content-style",
|
|
8002
8024
|
id: "video-".concat(storyElementId)
|
|
8003
|
-
}, /*#__PURE__*/
|
|
8025
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
8004
8026
|
element: element,
|
|
8005
8027
|
story: story,
|
|
8006
8028
|
loadIframeOnClick: true
|
|
8007
8029
|
}));
|
|
8008
8030
|
|
|
8009
8031
|
case "attachment":
|
|
8010
|
-
return /*#__PURE__*/
|
|
8032
|
+
return /*#__PURE__*/React__default["default"].createElement(Attachment, {
|
|
8011
8033
|
element: element
|
|
8012
8034
|
});
|
|
8013
8035
|
|
|
8014
8036
|
case "tweet":
|
|
8015
8037
|
case "jsembed":
|
|
8016
|
-
return /*#__PURE__*/
|
|
8038
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8017
8039
|
className: "content-style",
|
|
8018
8040
|
id: "jsembed-".concat(storyElementId)
|
|
8019
|
-
}, /*#__PURE__*/
|
|
8041
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8020
8042
|
element: element
|
|
8021
8043
|
}));
|
|
8022
8044
|
|
|
@@ -8027,7 +8049,7 @@ var getElement = function getElement(story, element) {
|
|
|
8027
8049
|
showHeadline = _references$opts$show === void 0 ? true : _references$opts$show,
|
|
8028
8050
|
_references$opts$head = _references$opts.headlineText,
|
|
8029
8051
|
headlineText = _references$opts$head === void 0 ? "" : _references$opts$head;
|
|
8030
|
-
return /*#__PURE__*/
|
|
8052
|
+
return /*#__PURE__*/React__default["default"].createElement(Reference, {
|
|
8031
8053
|
element: element,
|
|
8032
8054
|
opts: {
|
|
8033
8055
|
showHeadline: showHeadline,
|
|
@@ -8036,10 +8058,10 @@ var getElement = function getElement(story, element) {
|
|
|
8036
8058
|
});
|
|
8037
8059
|
|
|
8038
8060
|
default:
|
|
8039
|
-
return /*#__PURE__*/
|
|
8061
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8040
8062
|
className: "content-style",
|
|
8041
8063
|
id: "element-".concat(storyElementId)
|
|
8042
|
-
}, /*#__PURE__*/
|
|
8064
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8043
8065
|
element: element,
|
|
8044
8066
|
story: story
|
|
8045
8067
|
}));
|
|
@@ -8047,12 +8069,12 @@ var getElement = function getElement(story, element) {
|
|
|
8047
8069
|
};
|
|
8048
8070
|
|
|
8049
8071
|
({
|
|
8050
|
-
story:
|
|
8051
|
-
imageElement:
|
|
8052
|
-
config:
|
|
8053
|
-
children:
|
|
8054
|
-
card:
|
|
8055
|
-
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
|
|
8056
8078
|
})
|
|
8057
8079
|
});
|
|
8058
8080
|
var StoryElementCard = function StoryElementCard(_ref2) {
|
|
@@ -8068,7 +8090,7 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8068
8090
|
var textColor = getTextColor(theme);
|
|
8069
8091
|
var isLiveBlog = isLive ? "live-blog" : "";
|
|
8070
8092
|
var shouldRunFBMobileVideoFix = true;
|
|
8071
|
-
return /*#__PURE__*/
|
|
8093
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8072
8094
|
className: "arr--story-page-card-wrapper"
|
|
8073
8095
|
}, get_1(card, ["story-elements"], []).map(function (element, index) {
|
|
8074
8096
|
if (element.id === heroVideoElementId) return false;
|
|
@@ -8080,28 +8102,28 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8080
8102
|
|
|
8081
8103
|
var tableStyle = element && element.subtype === "table" ? "table" : "";
|
|
8082
8104
|
var cardId = get_1(card, ["id"], "");
|
|
8083
|
-
return /*#__PURE__*/
|
|
8105
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8084
8106
|
key: element.id,
|
|
8085
8107
|
className: "arr--element-container " + _getClassName("element-container ".concat(isLiveBlog, " ").concat(tableStyle, " ").concat(textColor), _styleModuleImportMap$1)
|
|
8086
8108
|
}, getElement(story, element, config, adComponent, widgetComp, index, cardId));
|
|
8087
8109
|
}));
|
|
8088
8110
|
};
|
|
8089
8111
|
StoryElementCard.propTypes = {
|
|
8090
|
-
story:
|
|
8091
|
-
card:
|
|
8092
|
-
heroVideoElementId:
|
|
8093
|
-
config:
|
|
8094
|
-
isLive:
|
|
8095
|
-
theme:
|
|
8096
|
-
adComponent:
|
|
8097
|
-
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
|
|
8098
8120
|
};
|
|
8099
8121
|
({
|
|
8100
|
-
story:
|
|
8101
|
-
card:
|
|
8102
|
-
config:
|
|
8103
|
-
adComponent:
|
|
8104
|
-
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
|
|
8105
8127
|
});
|
|
8106
8128
|
var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
8107
8129
|
var _ref4$id = _ref4.id,
|
|
@@ -8113,12 +8135,12 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8113
8135
|
|
|
8114
8136
|
switch (element.type) {
|
|
8115
8137
|
case "ad":
|
|
8116
|
-
return /*#__PURE__*/
|
|
8138
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
8117
8139
|
id: "ad-after-story-".concat(id)
|
|
8118
8140
|
}));
|
|
8119
8141
|
|
|
8120
8142
|
case "widget":
|
|
8121
|
-
return /*#__PURE__*/
|
|
8143
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
8122
8144
|
widgetCode: element.config.customCode,
|
|
8123
8145
|
id: "widget-after-story-".concat(id)
|
|
8124
8146
|
});
|
|
@@ -8128,10 +8150,10 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8128
8150
|
}
|
|
8129
8151
|
};
|
|
8130
8152
|
SlotAfterStory.propTypes = {
|
|
8131
|
-
id:
|
|
8132
|
-
element:
|
|
8133
|
-
AdComponent:
|
|
8134
|
-
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
|
|
8135
8157
|
};
|
|
8136
8158
|
|
|
8137
8159
|
var StoryTemplate = function StoryTemplate(_ref) {
|
|
@@ -8167,23 +8189,23 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8167
8189
|
var storyId = get_1(story, ["id"], "");
|
|
8168
8190
|
|
|
8169
8191
|
var HeaderCard = function HeaderCard() {
|
|
8170
|
-
return /*#__PURE__*/
|
|
8192
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8171
8193
|
className: "text-story-m_header-details__3D-Xf"
|
|
8172
|
-
}, /*#__PURE__*/
|
|
8194
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8173
8195
|
story: story
|
|
8174
|
-
}), /*#__PURE__*/
|
|
8196
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryHeadline, {
|
|
8175
8197
|
story: story,
|
|
8176
8198
|
premiumStoryIconConfig: premiumStoryIconConfig
|
|
8177
|
-
}), /*#__PURE__*/
|
|
8199
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
8178
8200
|
story: story,
|
|
8179
8201
|
showFullContent: true
|
|
8180
8202
|
}));
|
|
8181
8203
|
};
|
|
8182
8204
|
|
|
8183
8205
|
var AsideCollectionCard = function AsideCollectionCard() {
|
|
8184
|
-
return asideCollection && /*#__PURE__*/
|
|
8206
|
+
return asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8185
8207
|
className: "text-story-m_aside-collection__1hg7d text-story-m_tablet-index-2__1FdCR"
|
|
8186
|
-
}, /*#__PURE__*/
|
|
8208
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8187
8209
|
horizontal: true
|
|
8188
8210
|
}, asideCollection, {
|
|
8189
8211
|
widgetComp: widgetComp,
|
|
@@ -8194,10 +8216,10 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8194
8216
|
};
|
|
8195
8217
|
|
|
8196
8218
|
var SocialShareComponent = function SocialShareComponent() {
|
|
8197
|
-
return /*#__PURE__*/
|
|
8219
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8198
8220
|
id: "story-share-".concat(storyId),
|
|
8199
8221
|
className: "content-style"
|
|
8200
|
-
}, /*#__PURE__*/
|
|
8222
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8201
8223
|
template: SocialShareTemplate,
|
|
8202
8224
|
fullUrl: encodeURI(story.url),
|
|
8203
8225
|
title: story.headline,
|
|
@@ -8209,21 +8231,21 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8209
8231
|
};
|
|
8210
8232
|
|
|
8211
8233
|
var StoryData = function StoryData() {
|
|
8212
|
-
return /*#__PURE__*/
|
|
8234
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8213
8235
|
className: "text-story-m_gap-16__5BPKQ"
|
|
8214
|
-
}, authorDetails && /*#__PURE__*/
|
|
8236
|
+
}, authorDetails && /*#__PURE__*/React__default["default"].createElement(AuthorCard, {
|
|
8215
8237
|
story: story,
|
|
8216
8238
|
template: authorDetails.template,
|
|
8217
8239
|
opts: authorDetails.opts
|
|
8218
|
-
}), /*#__PURE__*/
|
|
8240
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8219
8241
|
className: "text-story-m_timestamp-social-share__1tSR7"
|
|
8220
|
-
}, /*#__PURE__*/
|
|
8242
|
+
}, /*#__PURE__*/React__default["default"].createElement(PublishDetails, {
|
|
8221
8243
|
story: story,
|
|
8222
8244
|
opts: publishedDetails,
|
|
8223
8245
|
template: "story",
|
|
8224
8246
|
timezone: timezone
|
|
8225
|
-
}), !verticalShare && /*#__PURE__*/
|
|
8226
|
-
return /*#__PURE__*/
|
|
8247
|
+
}), !verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null)), visibledCards.map(function (card) {
|
|
8248
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElementCard, {
|
|
8227
8249
|
story: story,
|
|
8228
8250
|
card: card,
|
|
8229
8251
|
key: get_1(card, ["id"], ""),
|
|
@@ -8231,11 +8253,11 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8231
8253
|
adComponent: adComponent,
|
|
8232
8254
|
widgetComp: widgetComp
|
|
8233
8255
|
});
|
|
8234
|
-
}), firstChild, /*#__PURE__*/
|
|
8256
|
+
}), firstChild, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8235
8257
|
className: "text-story-m_story-tags__Roh7y"
|
|
8236
|
-
}, /*#__PURE__*/
|
|
8258
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTags, {
|
|
8237
8259
|
tags: story.tags
|
|
8238
|
-
}), /*#__PURE__*/
|
|
8260
|
+
}), /*#__PURE__*/React__default["default"].createElement(SlotAfterStory, {
|
|
8239
8261
|
id: story.id,
|
|
8240
8262
|
element: story.customSlotAfterStory,
|
|
8241
8263
|
AdComponent: adComponent,
|
|
@@ -8244,9 +8266,9 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8244
8266
|
};
|
|
8245
8267
|
|
|
8246
8268
|
var SideColumn = function SideColumn() {
|
|
8247
|
-
return asideCollection && /*#__PURE__*/
|
|
8269
|
+
return asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8248
8270
|
className: "text-story-m_text-story-side-column__ChMaj"
|
|
8249
|
-
}, /*#__PURE__*/
|
|
8271
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8250
8272
|
widgetComp: widgetComp,
|
|
8251
8273
|
adComponent: adComponent,
|
|
8252
8274
|
sticky: true,
|
|
@@ -8256,112 +8278,112 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8256
8278
|
};
|
|
8257
8279
|
|
|
8258
8280
|
var heroPriorityCenterTemplate = function heroPriorityCenterTemplate() {
|
|
8259
|
-
return /*#__PURE__*/
|
|
8281
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8260
8282
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8261
8283
|
"data-test-id": "hero-priority-center-image"
|
|
8262
|
-
}, /*#__PURE__*/
|
|
8284
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8263
8285
|
story: story,
|
|
8264
8286
|
FullBleed: false,
|
|
8265
8287
|
aspectRatio: [[16, 9]],
|
|
8266
8288
|
defaultFallback: false,
|
|
8267
8289
|
isStoryPageImage: true
|
|
8268
|
-
})), /*#__PURE__*/
|
|
8290
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8269
8291
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8270
|
-
}, /*#__PURE__*/
|
|
8292
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8271
8293
|
story: story,
|
|
8272
8294
|
config: config
|
|
8273
|
-
}), /*#__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));
|
|
8274
8296
|
};
|
|
8275
8297
|
|
|
8276
8298
|
var headlineHeroPriorityTemplate = function headlineHeroPriorityTemplate() {
|
|
8277
|
-
return /*#__PURE__*/
|
|
8299
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8278
8300
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8279
|
-
}, /*#__PURE__*/
|
|
8301
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8280
8302
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8281
8303
|
"data-test-id": "headline-hero-priority-image"
|
|
8282
|
-
}, /*#__PURE__*/
|
|
8304
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8283
8305
|
story: story,
|
|
8284
8306
|
FullBleed: false,
|
|
8285
8307
|
aspectRatio: [[16, 9]],
|
|
8286
8308
|
defaultFallback: false,
|
|
8287
8309
|
isStoryPageImage: true
|
|
8288
|
-
})), /*#__PURE__*/
|
|
8310
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8289
8311
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8290
|
-
}, /*#__PURE__*/
|
|
8312
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8291
8313
|
story: story,
|
|
8292
8314
|
config: config
|
|
8293
|
-
}), /*#__PURE__*/
|
|
8315
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8294
8316
|
};
|
|
8295
8317
|
|
|
8296
8318
|
var heroVerticalTemplate = function heroVerticalTemplate() {
|
|
8297
|
-
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", {
|
|
8298
8320
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8299
8321
|
"data-test-id": "hero-vertical-image"
|
|
8300
|
-
}, /*#__PURE__*/
|
|
8322
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8301
8323
|
story: story,
|
|
8302
8324
|
FullBleed: false,
|
|
8303
8325
|
aspectRatio: [[3, 4]],
|
|
8304
8326
|
defaultFallback: false,
|
|
8305
8327
|
isStoryPageImage: true
|
|
8306
|
-
})), /*#__PURE__*/
|
|
8328
|
+
})), /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8307
8329
|
story: story,
|
|
8308
8330
|
config: config
|
|
8309
|
-
}), /*#__PURE__*/
|
|
8331
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8310
8332
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8311
|
-
}, /*#__PURE__*/
|
|
8333
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8312
8334
|
};
|
|
8313
8335
|
|
|
8314
8336
|
var heroPriorityLeftTemplate = function heroPriorityLeftTemplate() {
|
|
8315
|
-
return /*#__PURE__*/
|
|
8337
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8316
8338
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8317
8339
|
"data-test-id": "hero-priority-left-image"
|
|
8318
|
-
}, /*#__PURE__*/
|
|
8340
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8319
8341
|
story: story,
|
|
8320
8342
|
FullBleed: false,
|
|
8321
8343
|
aspectRatio: [[16, 9]],
|
|
8322
8344
|
defaultFallback: false,
|
|
8323
8345
|
isStoryPageImage: true
|
|
8324
|
-
})), /*#__PURE__*/
|
|
8346
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8325
8347
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8326
|
-
}, /*#__PURE__*/
|
|
8348
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8327
8349
|
story: story,
|
|
8328
8350
|
config: config
|
|
8329
|
-
}), /*#__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));
|
|
8330
8352
|
};
|
|
8331
8353
|
|
|
8332
8354
|
var headlinePriorityTemplate = function headlinePriorityTemplate() {
|
|
8333
|
-
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", {
|
|
8334
8356
|
className: "text-story-m_story-content-inner-wrapper__s3KPp text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8335
8357
|
"data-test-id": "headline-priority-hero-image"
|
|
8336
|
-
}, /*#__PURE__*/
|
|
8358
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8337
8359
|
story: story,
|
|
8338
8360
|
FullBleed: false,
|
|
8339
8361
|
aspectRatio: [[16, 9]],
|
|
8340
8362
|
defaultFallback: false,
|
|
8341
8363
|
isStoryPageImage: true
|
|
8342
|
-
})), /*#__PURE__*/
|
|
8364
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8343
8365
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8344
|
-
}, /*#__PURE__*/
|
|
8366
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8345
8367
|
story: story,
|
|
8346
8368
|
config: config
|
|
8347
|
-
}), /*#__PURE__*/
|
|
8369
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(SideColumn, null));
|
|
8348
8370
|
};
|
|
8349
8371
|
|
|
8350
8372
|
var headlineOverlayTemplate = function headlineOverlayTemplate() {
|
|
8351
|
-
return /*#__PURE__*/
|
|
8373
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8352
8374
|
className: "text-story-m_hero-image__288rD text-story-m_index-2__36i8Z",
|
|
8353
8375
|
"data-test-id": "headline-overlay-hero-image"
|
|
8354
|
-
}, /*#__PURE__*/
|
|
8376
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8355
8377
|
story: story,
|
|
8356
8378
|
FullBleed: false,
|
|
8357
8379
|
aspectRatio: [[3, 4], [16, 9]],
|
|
8358
8380
|
isStoryPageImage: true
|
|
8359
|
-
})), /*#__PURE__*/
|
|
8381
|
+
})), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8360
8382
|
className: "text-story-m_story-content-inner-wrapper__s3KPp"
|
|
8361
|
-
}, /*#__PURE__*/
|
|
8383
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8362
8384
|
story: story,
|
|
8363
8385
|
config: config
|
|
8364
|
-
}), /*#__PURE__*/
|
|
8386
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(AsideCollectionCard, null));
|
|
8365
8387
|
};
|
|
8366
8388
|
|
|
8367
8389
|
var getStoryTemplate = function getStoryTemplate(templateType) {
|
|
@@ -8386,21 +8408,21 @@ var StoryTemplate = function StoryTemplate(_ref) {
|
|
|
8386
8408
|
}
|
|
8387
8409
|
};
|
|
8388
8410
|
|
|
8389
|
-
return /*#__PURE__*/
|
|
8411
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, getStoryTemplate(templateType));
|
|
8390
8412
|
};
|
|
8391
8413
|
StoryTemplate.propTypes = {
|
|
8392
|
-
story:
|
|
8393
|
-
config:
|
|
8394
|
-
templateType:
|
|
8395
|
-
authorDetails:
|
|
8396
|
-
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
|
|
8397
8419
|
}),
|
|
8398
|
-
firstChild:
|
|
8399
|
-
secondChild:
|
|
8400
|
-
timezone:
|
|
8401
|
-
storyElementsConfig:
|
|
8402
|
-
widgetComp:
|
|
8403
|
-
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
|
|
8404
8426
|
};
|
|
8405
8427
|
|
|
8406
8428
|
var _styleModuleImportMap = {
|
|
@@ -8433,8 +8455,7 @@ var _styleModuleImportMap = {
|
|
|
8433
8455
|
"tablet-index-2": "text-story-m_tablet-index-2__1FdCR"
|
|
8434
8456
|
}
|
|
8435
8457
|
};
|
|
8436
|
-
|
|
8437
|
-
var TextStoryTemplate = function TextStoryTemplate(_ref) {
|
|
8458
|
+
var TextStoryTemplateBase = function TextStoryTemplateBase(_ref) {
|
|
8438
8459
|
var _ref$story = _ref.story,
|
|
8439
8460
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
8440
8461
|
_ref$config = _ref.config,
|
|
@@ -8461,17 +8482,17 @@ var TextStoryTemplate = function TextStoryTemplate(_ref) {
|
|
|
8461
8482
|
"headline-hero-priority": imageRender,
|
|
8462
8483
|
"hero-vertical-priority": imageRender
|
|
8463
8484
|
};
|
|
8464
|
-
var timezone = useSelector(function (state) {
|
|
8485
|
+
var timezone = reactRedux.useSelector(function (state) {
|
|
8465
8486
|
return get_1(state, ["qt", "data", "timezone"], null);
|
|
8466
8487
|
});
|
|
8467
8488
|
var dataTestId = supportImageType[templateType] ? "text-story-".concat(templateType, "-").concat(kebabCase_1(supportImageType[templateType])) : "text-story-".concat(templateType);
|
|
8468
|
-
return /*#__PURE__*/
|
|
8489
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8469
8490
|
"data-test-id": dataTestId,
|
|
8470
8491
|
style: {
|
|
8471
8492
|
backgroundColor: theme
|
|
8472
8493
|
},
|
|
8473
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)
|
|
8474
|
-
}, /*#__PURE__*/
|
|
8495
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplate, {
|
|
8475
8496
|
story: story,
|
|
8476
8497
|
config: config,
|
|
8477
8498
|
storyElementsConfig: storyElementsConfig,
|
|
@@ -8482,20 +8503,20 @@ var TextStoryTemplate = function TextStoryTemplate(_ref) {
|
|
|
8482
8503
|
timezone: timezone
|
|
8483
8504
|
}));
|
|
8484
8505
|
};
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
asideCollection: PropTypes.object
|
|
8506
|
+
TextStoryTemplateBase.propTypes = {
|
|
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
|
|
8492
8512
|
}),
|
|
8493
|
-
firstChild:
|
|
8494
|
-
secondChild:
|
|
8495
|
-
storyElementsConfig:
|
|
8496
|
-
adComponent:
|
|
8497
|
-
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
|
|
8498
8518
|
};
|
|
8499
|
-
var
|
|
8519
|
+
var TextStoryTemplate = StateProvider(TextStoryTemplateBase);
|
|
8500
8520
|
|
|
8501
|
-
|
|
8521
|
+
exports.TextStoryTemplate = TextStoryTemplate;
|
|
8522
|
+
exports.TextStoryTemplateBase = TextStoryTemplateBase;
|