@quintype/arrow 3.15.1-perf.2 → 3.15.1-perf.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/Author/index.js +38 -29
- package/atoms/AuthorWithTime/index.js +83 -73
- package/atoms/CollectionName/index.js +40 -30
- package/atoms/ExtendedLoadMore/{index-d0f6c865.js → index-3976fac4.js} +59 -51
- package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
- package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
- package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
- package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
- package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
- package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
- package/atoms/ExtendedLoadMore/index.js +13 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +85 -76
- package/atoms/HeroImage/index.js +69 -60
- package/atoms/LoadmoreButton/index.js +32 -23
- package/atoms/ScrollSnap/index.js +72 -63
- package/atoms/SectionTag/index.js +34 -25
- package/atoms/Subheadline/index.js +31 -22
- package/atoms/TimeStamp/index.js +34 -24
- package/molecules/KeyEvents/index.js +72 -61
- package/molecules/PageIntroductionCard/index.js +43 -34
- package/molecules/SocialShareTemplate/index.js +97 -88
- package/molecules/StoryCard/index.js +242 -232
- package/molecules/StoryElementCard/index.js +512 -483
- package/molecules/StorycardContent/index.js +172 -162
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +345 -333
- package/rows/AsideCollection/index.js +340 -328
- package/rows/AstrologyCollection/index.js +321 -309
- package/rows/AuthorIntroductionCard/index.js +157 -148
- package/rows/AuthorsList/index.js +184 -174
- package/rows/CollectionFilter/index.js +361 -349
- package/rows/ElevenStories/index.js +357 -346
- package/rows/FourColFiveStories/index.js +304 -274
- package/rows/FourColGrid/index.js +351 -321
- package/rows/FourColPortraitStories/index.js +357 -327
- package/rows/FourColSixteenStories/index.js +288 -277
- package/rows/FourColTwelveStories/index.js +315 -304
- package/rows/FourStorySlider/index.js +358 -347
- package/rows/FourStorySliderPortrait/index.js +359 -348
- package/rows/FourTabbedBigStorySlider/index.js +322 -311
- package/rows/FullScreenSlider/index.js +336 -325
- package/rows/HalfScreenSlider/index.js +308 -297
- package/rows/ListComponent/index.js +322 -311
- package/rows/Listicles/index.js +150 -139
- package/rows/MagazineEditions/index.js +104 -93
- package/rows/MagazineHeaderCard/index.js +104 -93
- package/rows/MagazineWidget/index.js +326 -315
- package/rows/OneColStoryList/index.js +365 -335
- package/rows/OpinionCollection/index.js +250 -220
- package/rows/SixColSixStories/index.js +333 -303
- package/rows/StoryCollection/index.js +340 -328
- package/rows/TagIntroductionCard/index.js +30 -21
- package/rows/ThreeColFlexStories/index.js +348 -318
- package/rows/ThreeColFourteenStories/index.js +285 -274
- package/rows/ThreeColGrid/index.js +352 -322
- package/rows/ThreeColSevenStory/index.js +322 -311
- package/rows/ThreeColSixStories/index.js +323 -312
- package/rows/ThreeColTwelveStories/index.js +302 -291
- package/rows/TwoColFourStories/index.js +316 -305
- package/rows/TwoColFourStoryHighlight/index.js +317 -306
- package/rows/TwoColSevenStories/index.js +322 -311
- package/rows/TwoColSixStories/index.js +316 -305
- package/rows/TwoColTenStoriesSidebar/index.js +338 -327
- package/rows/TwoColThreeStories/index.js +316 -305
- package/story-elements/AlsoRead/index.js +70 -61
- package/story-elements/Attachment/index.js +40 -31
- package/story-elements/BigFact/index.js +35 -26
- package/story-elements/BlockQuote/index.js +61 -51
- package/story-elements/Blurb/index.js +36 -27
- package/story-elements/Image/index.js +113 -86
- package/story-elements/ImageGallery/index.js +98 -71
- package/story-elements/ImageSlideshow/index.js +147 -120
- package/story-elements/QuestionAnswer/index.js +55 -46
- package/story-elements/Quote/index.js +37 -28
- package/story-elements/Reference/index.js +40 -31
- package/story-elements/StoryElement/index.js +28 -19
- package/story-elements/Summary/index.js +40 -31
- package/story-elements/Text/index.js +34 -25
- package/story-elements/Video/index.js +29 -20
- package/story-templates/ListicleStoryTemplate/index.js +937 -908
- package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
- package/story-templates/PhotoStoryTemplate/index.js +912 -883
- package/story-templates/TextStoryTemplate/index.js +931 -902
- package/story-templates/VideoStoryTemplate/index.js +897 -868
- package/atoms/ExtendedLoadMore/index-81eb3978.js +0 -86
|
@@ -1,9 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var reactRedux = require('react-redux');
|
|
8
|
+
var components = require('@quintype/components');
|
|
9
|
+
var Timeago = require('react-timeago');
|
|
10
|
+
var dateFnsTz = require('date-fns-tz');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
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
|
|
|
@@ -1426,105 +1454,105 @@ function _slicedToArray(arr, i) {
|
|
|
1426
1454
|
var Twitter = function Twitter(_ref) {
|
|
1427
1455
|
var _ref$color = _ref.color,
|
|
1428
1456
|
color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
|
|
1429
|
-
return /*#__PURE__*/
|
|
1457
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1430
1458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1431
1459
|
width: "24",
|
|
1432
1460
|
height: "24",
|
|
1433
1461
|
viewBox: "0 0 24 24"
|
|
1434
|
-
}, /*#__PURE__*/
|
|
1462
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1435
1463
|
fill: color,
|
|
1436
1464
|
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"
|
|
1437
1465
|
}));
|
|
1438
1466
|
};
|
|
1439
1467
|
Twitter.propTypes = {
|
|
1440
|
-
color:
|
|
1468
|
+
color: PropTypes__default["default"].string
|
|
1441
1469
|
};
|
|
1442
1470
|
|
|
1443
1471
|
var Facebook = function Facebook(_ref) {
|
|
1444
1472
|
var _ref$color = _ref.color,
|
|
1445
1473
|
color = _ref$color === void 0 ? "#3B5998" : _ref$color;
|
|
1446
|
-
return /*#__PURE__*/
|
|
1474
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1447
1475
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1448
1476
|
width: "24",
|
|
1449
1477
|
height: "24",
|
|
1450
1478
|
viewBox: "0 0 24 24"
|
|
1451
|
-
}, /*#__PURE__*/
|
|
1479
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1452
1480
|
fill: color,
|
|
1453
1481
|
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"
|
|
1454
1482
|
}));
|
|
1455
1483
|
};
|
|
1456
1484
|
Facebook.propTypes = {
|
|
1457
|
-
color:
|
|
1485
|
+
color: PropTypes__default["default"].string
|
|
1458
1486
|
};
|
|
1459
1487
|
|
|
1460
1488
|
var LinkedIn = function LinkedIn(_ref) {
|
|
1461
1489
|
var _ref$color = _ref.color,
|
|
1462
1490
|
color = _ref$color === void 0 ? "#0077B5" : _ref$color;
|
|
1463
|
-
return /*#__PURE__*/
|
|
1491
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1464
1492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1465
1493
|
width: "24",
|
|
1466
1494
|
height: "24",
|
|
1467
1495
|
viewBox: "0 0 24 24"
|
|
1468
|
-
}, /*#__PURE__*/
|
|
1496
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1469
1497
|
fill: color,
|
|
1470
1498
|
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"
|
|
1471
1499
|
}));
|
|
1472
1500
|
};
|
|
1473
1501
|
LinkedIn.propTypes = {
|
|
1474
|
-
color:
|
|
1502
|
+
color: PropTypes__default["default"].string
|
|
1475
1503
|
};
|
|
1476
1504
|
|
|
1477
1505
|
var WhatsApp = function WhatsApp(_ref) {
|
|
1478
1506
|
var _ref$color = _ref.color,
|
|
1479
1507
|
color = _ref$color === void 0 ? "#4AC959" : _ref$color;
|
|
1480
|
-
return /*#__PURE__*/
|
|
1508
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1481
1509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1482
1510
|
width: "24",
|
|
1483
1511
|
height: "24",
|
|
1484
1512
|
viewBox: "0 0 24 24"
|
|
1485
|
-
}, /*#__PURE__*/
|
|
1513
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1486
1514
|
fill: color,
|
|
1487
1515
|
fillRule: "evenodd",
|
|
1488
1516
|
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"
|
|
1489
1517
|
}));
|
|
1490
1518
|
};
|
|
1491
1519
|
WhatsApp.propTypes = {
|
|
1492
|
-
color:
|
|
1520
|
+
color: PropTypes__default["default"].string
|
|
1493
1521
|
};
|
|
1494
1522
|
|
|
1495
1523
|
var getSocialIcons = function getSocialIcons(color, iconType) {
|
|
1496
1524
|
switch (iconType) {
|
|
1497
1525
|
case "plain-color-svg":
|
|
1498
1526
|
return {
|
|
1499
|
-
facebook: /*#__PURE__*/
|
|
1527
|
+
facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
|
|
1500
1528
|
key: iconType
|
|
1501
1529
|
}),
|
|
1502
|
-
twitter: /*#__PURE__*/
|
|
1530
|
+
twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
|
|
1503
1531
|
key: iconType
|
|
1504
1532
|
}),
|
|
1505
|
-
linkedin: /*#__PURE__*/
|
|
1533
|
+
linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
|
|
1506
1534
|
key: iconType
|
|
1507
1535
|
}),
|
|
1508
|
-
whatsapp: /*#__PURE__*/
|
|
1536
|
+
whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
|
|
1509
1537
|
key: iconType
|
|
1510
1538
|
})
|
|
1511
1539
|
};
|
|
1512
1540
|
|
|
1513
1541
|
default:
|
|
1514
1542
|
return {
|
|
1515
|
-
facebook: /*#__PURE__*/
|
|
1543
|
+
facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
|
|
1516
1544
|
color: color,
|
|
1517
1545
|
key: iconType
|
|
1518
1546
|
}),
|
|
1519
|
-
twitter: /*#__PURE__*/
|
|
1547
|
+
twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
|
|
1520
1548
|
color: color,
|
|
1521
1549
|
key: iconType
|
|
1522
1550
|
}),
|
|
1523
|
-
linkedin: /*#__PURE__*/
|
|
1551
|
+
linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
|
|
1524
1552
|
color: color,
|
|
1525
1553
|
key: iconType
|
|
1526
1554
|
}),
|
|
1527
|
-
whatsapp: /*#__PURE__*/
|
|
1555
|
+
whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
|
|
1528
1556
|
color: color,
|
|
1529
1557
|
key: iconType
|
|
1530
1558
|
})
|
|
@@ -1580,22 +1608,22 @@ var socialShareData = function socialShareData(_ref) {
|
|
|
1580
1608
|
var CloseIcon = function CloseIcon(_ref) {
|
|
1581
1609
|
var _ref$color = _ref.color,
|
|
1582
1610
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
1583
|
-
return /*#__PURE__*/
|
|
1611
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1584
1612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1585
1613
|
width: "24",
|
|
1586
1614
|
height: "24",
|
|
1587
1615
|
viewBox: "0 0 24 24"
|
|
1588
|
-
}, /*#__PURE__*/
|
|
1616
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
1589
1617
|
fill: "none",
|
|
1590
1618
|
stroke: color,
|
|
1591
1619
|
strokeLinecap: "square",
|
|
1592
1620
|
strokeWidth: "2"
|
|
1593
|
-
}, /*#__PURE__*/
|
|
1621
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1594
1622
|
d: "M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"
|
|
1595
1623
|
})));
|
|
1596
1624
|
};
|
|
1597
1625
|
CloseIcon.propTypes = {
|
|
1598
|
-
color:
|
|
1626
|
+
color: PropTypes__default["default"].string
|
|
1599
1627
|
};
|
|
1600
1628
|
|
|
1601
1629
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -2963,15 +2991,15 @@ var isEmpty = function isEmpty(value) {
|
|
|
2963
2991
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2964
2992
|
_typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2965
2993
|
};
|
|
2966
|
-
var shapeConfig =
|
|
2967
|
-
"sketches-host":
|
|
2968
|
-
"cdn-name":
|
|
2969
|
-
"cdn-image":
|
|
2994
|
+
var shapeConfig = PropTypes__default["default"].shape({
|
|
2995
|
+
"sketches-host": PropTypes__default["default"].string,
|
|
2996
|
+
"cdn-name": PropTypes__default["default"].string,
|
|
2997
|
+
"cdn-image": PropTypes__default["default"].string
|
|
2970
2998
|
});
|
|
2971
|
-
var shapeStory =
|
|
2972
|
-
headline:
|
|
2973
|
-
"last-published-at":
|
|
2974
|
-
subheadline:
|
|
2999
|
+
var shapeStory = PropTypes__default["default"].shape({
|
|
3000
|
+
headline: PropTypes__default["default"].string,
|
|
3001
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
3002
|
+
subheadline: PropTypes__default["default"].string
|
|
2975
3003
|
});
|
|
2976
3004
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2977
3005
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
@@ -3064,17 +3092,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
|
|
|
3064
3092
|
var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
3065
3093
|
|
|
3066
3094
|
if (timezone && template === "story") {
|
|
3067
|
-
var zonedTime = timezone && utcToZonedTime(date, timezone);
|
|
3068
|
-
var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
3095
|
+
var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
|
|
3096
|
+
var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
|
|
3069
3097
|
timeZone: timezone
|
|
3070
3098
|
});
|
|
3071
3099
|
var timeStamp = timestampToFormat("", "", "", date, config);
|
|
3072
|
-
return /*#__PURE__*/
|
|
3100
|
+
return /*#__PURE__*/React__default["default"].createElement("time", {
|
|
3073
3101
|
dateTime: formatZonedTime
|
|
3074
3102
|
}, timeStamp);
|
|
3075
3103
|
}
|
|
3076
3104
|
|
|
3077
|
-
return /*#__PURE__*/
|
|
3105
|
+
return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
|
|
3078
3106
|
date: date,
|
|
3079
3107
|
formatter: function formatter(value, unit, suffix, date) {
|
|
3080
3108
|
return _formatter(value, unit, suffix, date, config);
|
|
@@ -3100,17 +3128,17 @@ var _styleModuleImportMap$B = {
|
|
|
3100
3128
|
};
|
|
3101
3129
|
|
|
3102
3130
|
var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
|
|
3103
|
-
return url ? /*#__PURE__*/
|
|
3131
|
+
return url ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3104
3132
|
className: "social-share-popup-m_social-icon-wrapper__36jyV",
|
|
3105
3133
|
"data-testid": text,
|
|
3106
3134
|
key: "popup-item-".concat(index)
|
|
3107
|
-
}, /*#__PURE__*/
|
|
3135
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3108
3136
|
href: url,
|
|
3109
3137
|
target: "_blank",
|
|
3110
3138
|
rel: "noopener noreferrer",
|
|
3111
3139
|
className: "social-share-popup-m_social-wrapper__1lPzr",
|
|
3112
3140
|
"aria-label": "social-icon"
|
|
3113
|
-
}, icon, /*#__PURE__*/
|
|
3141
|
+
}, icon, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3114
3142
|
className: "social-share-popup-m_social-text__1QPXb"
|
|
3115
3143
|
}, text))) : null;
|
|
3116
3144
|
};
|
|
@@ -3140,20 +3168,20 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3140
3168
|
iconType: iconType
|
|
3141
3169
|
};
|
|
3142
3170
|
var popupItemsList = socialShareData(options);
|
|
3143
|
-
return /*#__PURE__*/
|
|
3171
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3144
3172
|
className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$B)
|
|
3145
|
-
}, /*#__PURE__*/
|
|
3173
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3146
3174
|
className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
|
|
3147
|
-
}, /*#__PURE__*/
|
|
3175
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3148
3176
|
className: "social-share-popup-m_top-bar__174Um"
|
|
3149
|
-
}, /*#__PURE__*/
|
|
3177
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3150
3178
|
className: "social-share-popup-m_share-text__19E-F"
|
|
3151
|
-
}, "Share via"), /*#__PURE__*/
|
|
3179
|
+
}, "Share via"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3152
3180
|
className: "social-share-popup-m_close__3k-Hj",
|
|
3153
3181
|
onClick: closePopup
|
|
3154
|
-
}, /*#__PURE__*/
|
|
3182
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
|
|
3155
3183
|
color: iconColor
|
|
3156
|
-
}))), /*#__PURE__*/
|
|
3184
|
+
}))), /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3157
3185
|
className: "social-share-popup-m_wrapper__3Ytce"
|
|
3158
3186
|
}, popupItemsList.map(function (_ref2, index) {
|
|
3159
3187
|
var url = _ref2.url,
|
|
@@ -3165,33 +3193,33 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3165
3193
|
}))));
|
|
3166
3194
|
};
|
|
3167
3195
|
SocialSharePopup.propTypes = {
|
|
3168
|
-
fbUrl:
|
|
3169
|
-
twitterUrl:
|
|
3170
|
-
linkedinUrl:
|
|
3171
|
-
whatsappUrl:
|
|
3172
|
-
grey:
|
|
3173
|
-
primaryColor:
|
|
3174
|
-
closePopup:
|
|
3175
|
-
theme:
|
|
3176
|
-
iconType:
|
|
3196
|
+
fbUrl: PropTypes__default["default"].string,
|
|
3197
|
+
twitterUrl: PropTypes__default["default"].string,
|
|
3198
|
+
linkedinUrl: PropTypes__default["default"].string,
|
|
3199
|
+
whatsappUrl: PropTypes__default["default"].string,
|
|
3200
|
+
grey: PropTypes__default["default"].string,
|
|
3201
|
+
primaryColor: PropTypes__default["default"].string,
|
|
3202
|
+
closePopup: PropTypes__default["default"].bool,
|
|
3203
|
+
theme: PropTypes__default["default"].string,
|
|
3204
|
+
iconType: PropTypes__default["default"].string
|
|
3177
3205
|
};
|
|
3178
3206
|
|
|
3179
3207
|
var ShareIcon = function ShareIcon(_ref) {
|
|
3180
3208
|
var _ref$color = _ref.color,
|
|
3181
3209
|
color = _ref$color === void 0 ? "#0D0D0D" : _ref$color;
|
|
3182
|
-
return /*#__PURE__*/
|
|
3210
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3183
3211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3184
3212
|
width: "24",
|
|
3185
3213
|
height: "24",
|
|
3186
3214
|
viewBox: "0 0 24 24"
|
|
3187
|
-
}, /*#__PURE__*/
|
|
3215
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3188
3216
|
fill: color,
|
|
3189
3217
|
fillRule: "evenodd",
|
|
3190
3218
|
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"
|
|
3191
3219
|
}));
|
|
3192
3220
|
};
|
|
3193
3221
|
ShareIcon.propTypes = {
|
|
3194
|
-
color:
|
|
3222
|
+
color: PropTypes__default["default"].string
|
|
3195
3223
|
};
|
|
3196
3224
|
|
|
3197
3225
|
/**
|
|
@@ -3460,10 +3488,10 @@ var ShareItem = function ShareItem(_ref) {
|
|
|
3460
3488
|
url = _ref.url,
|
|
3461
3489
|
icon = _ref.icon,
|
|
3462
3490
|
dataTestId = _ref.dataTestId;
|
|
3463
|
-
return url ? /*#__PURE__*/
|
|
3491
|
+
return url ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3464
3492
|
"data-testid": dataTestId,
|
|
3465
3493
|
className: "social-share-template-m_icon__1Mnu5"
|
|
3466
|
-
}, /*#__PURE__*/
|
|
3494
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
3467
3495
|
href: url,
|
|
3468
3496
|
target: "_blank",
|
|
3469
3497
|
rel: "noopener noreferrer",
|
|
@@ -3473,17 +3501,17 @@ var ShareItem = function ShareItem(_ref) {
|
|
|
3473
3501
|
};
|
|
3474
3502
|
|
|
3475
3503
|
ShareItem.propTypes = {
|
|
3476
|
-
name:
|
|
3477
|
-
url:
|
|
3478
|
-
icon:
|
|
3479
|
-
dataTestId:
|
|
3504
|
+
name: PropTypes__default["default"].string,
|
|
3505
|
+
url: PropTypes__default["default"].string,
|
|
3506
|
+
icon: PropTypes__default["default"].node,
|
|
3507
|
+
dataTestId: PropTypes__default["default"].string
|
|
3480
3508
|
};
|
|
3481
3509
|
|
|
3482
3510
|
function getActionIcon(open, color) {
|
|
3483
|
-
if (!open) return /*#__PURE__*/
|
|
3511
|
+
if (!open) return /*#__PURE__*/React__default["default"].createElement(ShareIcon, {
|
|
3484
3512
|
color: color
|
|
3485
3513
|
});
|
|
3486
|
-
return /*#__PURE__*/
|
|
3514
|
+
return /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
|
|
3487
3515
|
color: color
|
|
3488
3516
|
});
|
|
3489
3517
|
}
|
|
@@ -3517,21 +3545,21 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3517
3545
|
};
|
|
3518
3546
|
var iconsList = socialShareData(options);
|
|
3519
3547
|
|
|
3520
|
-
var _useState = useState(open),
|
|
3548
|
+
var _useState = React.useState(open),
|
|
3521
3549
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3522
3550
|
isOpen = _useState2[0],
|
|
3523
3551
|
setIsOpen = _useState2[1];
|
|
3524
3552
|
|
|
3525
3553
|
var verticalShare = vertical ? "vertical" : "horizontal";
|
|
3526
|
-
useEffect(function () {
|
|
3554
|
+
React.useEffect(function () {
|
|
3527
3555
|
return setIsOpen(open);
|
|
3528
3556
|
}, [open]);
|
|
3529
3557
|
|
|
3530
3558
|
var shareIcon = function shareIcon() {
|
|
3531
|
-
return /*#__PURE__*/
|
|
3559
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
3532
3560
|
className: "social-share-template-m_icon__1Mnu5",
|
|
3533
3561
|
key: "horizontal-0"
|
|
3534
|
-
}, /*#__PURE__*/
|
|
3562
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3535
3563
|
onClick: clickHandler
|
|
3536
3564
|
}, getActionIcon(isOpen, iconColor)));
|
|
3537
3565
|
};
|
|
@@ -3541,16 +3569,16 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3541
3569
|
};
|
|
3542
3570
|
|
|
3543
3571
|
var popUpWrapper = function popUpWrapper() {
|
|
3544
|
-
return /*#__PURE__*/
|
|
3572
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3545
3573
|
className: "social-share-template-m_tablet-view__kATzi"
|
|
3546
|
-
}, !isOpen && /*#__PURE__*/
|
|
3574
|
+
}, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3547
3575
|
className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$A)
|
|
3548
|
-
}, shareIcon()), isOpen && /*#__PURE__*/
|
|
3576
|
+
}, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3549
3577
|
className: "social-share-template-m_overlay__1nBp-",
|
|
3550
3578
|
onClick: clickHandler
|
|
3551
|
-
}, /*#__PURE__*/
|
|
3579
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3552
3580
|
className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$A)
|
|
3553
|
-
}, /*#__PURE__*/
|
|
3581
|
+
}, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
|
|
3554
3582
|
fbUrl: fbUrl,
|
|
3555
3583
|
twitterUrl: twitterUrl,
|
|
3556
3584
|
linkedinUrl: linkedinUrl,
|
|
@@ -3564,47 +3592,47 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3564
3592
|
};
|
|
3565
3593
|
|
|
3566
3594
|
var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
|
|
3567
|
-
return /*#__PURE__*/
|
|
3595
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3568
3596
|
"data-test-id": verticalShare,
|
|
3569
3597
|
className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$A)
|
|
3570
|
-
}, /*#__PURE__*/
|
|
3598
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3571
3599
|
className: "social-share-template-m_desktop-view__3TmkO"
|
|
3572
|
-
}, /*#__PURE__*/
|
|
3600
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3573
3601
|
"data-test-id": camelCase_1(iconType),
|
|
3574
3602
|
className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$A)
|
|
3575
3603
|
}, shareIcon(), iconsList.map(function (iconData, index) {
|
|
3576
|
-
return /*#__PURE__*/
|
|
3604
|
+
return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
|
|
3577
3605
|
key: iconData.name,
|
|
3578
3606
|
dataTestId: "card-share-".concat(index)
|
|
3579
3607
|
}));
|
|
3580
3608
|
}))), popUpWrapper());
|
|
3581
3609
|
};
|
|
3582
3610
|
SocialShareTemplate.propTypes = {
|
|
3583
|
-
fbUrl:
|
|
3584
|
-
twitterUrl:
|
|
3585
|
-
linkedinUrl:
|
|
3586
|
-
whatsappUrl:
|
|
3587
|
-
vertical:
|
|
3588
|
-
theme:
|
|
3589
|
-
iconType:
|
|
3590
|
-
open:
|
|
3611
|
+
fbUrl: PropTypes__default["default"].string,
|
|
3612
|
+
twitterUrl: PropTypes__default["default"].string,
|
|
3613
|
+
linkedinUrl: PropTypes__default["default"].string,
|
|
3614
|
+
whatsappUrl: PropTypes__default["default"].string,
|
|
3615
|
+
vertical: PropTypes__default["default"].bool,
|
|
3616
|
+
theme: PropTypes__default["default"].string,
|
|
3617
|
+
iconType: PropTypes__default["default"].string,
|
|
3618
|
+
open: PropTypes__default["default"]["boolean"]
|
|
3591
3619
|
};
|
|
3592
3620
|
|
|
3593
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
3621
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
3594
3622
|
|
|
3595
3623
|
var StateProvider = function StateProvider(RowComponent) {
|
|
3596
3624
|
return function (props) {
|
|
3597
3625
|
return (
|
|
3598
3626
|
/*#__PURE__*/
|
|
3599
3627
|
// eslint-disable-next-line react/prop-types
|
|
3600
|
-
|
|
3628
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
3601
3629
|
value: props.config
|
|
3602
|
-
}, /*#__PURE__*/
|
|
3630
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
3603
3631
|
);
|
|
3604
3632
|
};
|
|
3605
3633
|
};
|
|
3606
3634
|
var useStateValue = function useStateValue() {
|
|
3607
|
-
return useContext(StateContext);
|
|
3635
|
+
return React.useContext(StateContext);
|
|
3608
3636
|
};
|
|
3609
3637
|
|
|
3610
3638
|
var _styleModuleImportMap$z = {
|
|
@@ -3642,22 +3670,22 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3642
3670
|
}
|
|
3643
3671
|
|
|
3644
3672
|
if (!isSection) return null;
|
|
3645
|
-
return /*#__PURE__*/
|
|
3673
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3646
3674
|
href: getUrl,
|
|
3647
3675
|
className: "arrow-component arr--section-name",
|
|
3648
3676
|
"aria-label": "section-name"
|
|
3649
|
-
}, /*#__PURE__*/
|
|
3677
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3650
3678
|
"data-test-id": "sectionTag",
|
|
3651
3679
|
style: {
|
|
3652
3680
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3653
3681
|
},
|
|
3654
3682
|
className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$z)
|
|
3655
|
-
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/
|
|
3683
|
+
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3656
3684
|
className: "section-m_border-left__2oUyp",
|
|
3657
3685
|
style: {
|
|
3658
3686
|
color: sectionTagBorderColor
|
|
3659
3687
|
}
|
|
3660
|
-
}), section["display-name"] || section["name"], /*#__PURE__*/
|
|
3688
|
+
}), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3661
3689
|
className: "section-m_border-bottom__3cRoD",
|
|
3662
3690
|
style: {
|
|
3663
3691
|
backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
|
|
@@ -3666,13 +3694,13 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3666
3694
|
};
|
|
3667
3695
|
SectionTag.propTypes = {
|
|
3668
3696
|
/** The Story Object from the API response */
|
|
3669
|
-
story:
|
|
3697
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3670
3698
|
|
|
3671
3699
|
/** The style template for section tag */
|
|
3672
|
-
template:
|
|
3673
|
-
borderColor:
|
|
3674
|
-
solidBorderColor:
|
|
3675
|
-
isLightTheme:
|
|
3700
|
+
template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
|
|
3701
|
+
borderColor: PropTypes__default["default"].string,
|
|
3702
|
+
solidBorderColor: PropTypes__default["default"].string,
|
|
3703
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3676
3704
|
};
|
|
3677
3705
|
SectionTag.defaultProps = {
|
|
3678
3706
|
template: "",
|
|
@@ -3699,7 +3727,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3699
3727
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3700
3728
|
if (!subheadline) return null;
|
|
3701
3729
|
var textColor = getTextColor(config.theme);
|
|
3702
|
-
return /*#__PURE__*/
|
|
3730
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3703
3731
|
style: {
|
|
3704
3732
|
WebkitLineClamp: lineClamp
|
|
3705
3733
|
},
|
|
@@ -3709,15 +3737,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3709
3737
|
};
|
|
3710
3738
|
Subheadline.propTypes = {
|
|
3711
3739
|
/** The Story Object from the API response */
|
|
3712
|
-
story:
|
|
3740
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3713
3741
|
// Restricts the number of lines for subheadline.
|
|
3714
|
-
lineClamp:
|
|
3742
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3715
3743
|
|
|
3716
3744
|
/** Number of characters to truncate the subheadline */
|
|
3717
|
-
truncateChars:
|
|
3718
|
-
clazzName:
|
|
3719
|
-
forceShowAtom:
|
|
3720
|
-
showFullContent:
|
|
3745
|
+
truncateChars: PropTypes__default["default"].number,
|
|
3746
|
+
clazzName: PropTypes__default["default"].string,
|
|
3747
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
3748
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3721
3749
|
};
|
|
3722
3750
|
Subheadline.defaultProps = {
|
|
3723
3751
|
forceShowAtom: false,
|
|
@@ -3758,18 +3786,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
3758
3786
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
3759
3787
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
3760
3788
|
var textColor = getTextColor(configState.theme);
|
|
3761
|
-
return /*#__PURE__*/
|
|
3789
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3762
3790
|
"data-test-id": "publish-time",
|
|
3763
3791
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$x)
|
|
3764
|
-
}, /*#__PURE__*/
|
|
3792
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3765
3793
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
3766
3794
|
}, getTimeStamp(time, formatter, config))));
|
|
3767
3795
|
};
|
|
3768
3796
|
TimeStamp.propTypes = {
|
|
3769
3797
|
/** The Story Object from the API response */
|
|
3770
|
-
story:
|
|
3771
|
-
isBottom:
|
|
3772
|
-
config:
|
|
3798
|
+
story: PropTypes__default["default"].object,
|
|
3799
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3800
|
+
config: PropTypes__default["default"].object
|
|
3773
3801
|
};
|
|
3774
3802
|
|
|
3775
3803
|
var _styleModuleImportMap$w = {
|
|
@@ -3812,10 +3840,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3812
3840
|
return null;
|
|
3813
3841
|
}
|
|
3814
3842
|
|
|
3815
|
-
return /*#__PURE__*/
|
|
3843
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3816
3844
|
"data-test-id": "author-image",
|
|
3817
3845
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$w)
|
|
3818
|
-
}, /*#__PURE__*/
|
|
3846
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
3819
3847
|
slug: avatarS3Key,
|
|
3820
3848
|
"aspect-ratio": [1, 1],
|
|
3821
3849
|
defaultWidth: 400,
|
|
@@ -3823,14 +3851,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3823
3851
|
auto: ["format", "compress"]
|
|
3824
3852
|
},
|
|
3825
3853
|
alt: authorName
|
|
3826
|
-
}) : /*#__PURE__*/
|
|
3854
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3827
3855
|
src: avatarUrl
|
|
3828
3856
|
})));
|
|
3829
3857
|
};
|
|
3830
3858
|
|
|
3831
3859
|
var isPrefix = function isPrefix(dir) {
|
|
3832
3860
|
if (prefix) {
|
|
3833
|
-
return /*#__PURE__*/
|
|
3861
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3834
3862
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$w)
|
|
3835
3863
|
}, prefix);
|
|
3836
3864
|
}
|
|
@@ -3838,11 +3866,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
3838
3866
|
return !hideAuthorImage && authorImage(dir);
|
|
3839
3867
|
};
|
|
3840
3868
|
|
|
3841
|
-
return /*#__PURE__*/
|
|
3869
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
3842
3870
|
href: "".concat(mountAt, "/author/") + slug,
|
|
3843
3871
|
"aria-label": "author-name",
|
|
3844
3872
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$w)
|
|
3845
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
3873
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3846
3874
|
"data-test-id": "author-name",
|
|
3847
3875
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$w)
|
|
3848
3876
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -3854,18 +3882,18 @@ function mapStateToProps$1(state) {
|
|
|
3854
3882
|
};
|
|
3855
3883
|
}
|
|
3856
3884
|
|
|
3857
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
3885
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
3858
3886
|
AuthorBase.propTypes = {
|
|
3859
3887
|
/** The Story Object from the API response */
|
|
3860
|
-
story:
|
|
3888
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3861
3889
|
|
|
3862
3890
|
/** Hide Author Avatar Image */
|
|
3863
|
-
hideAuthorImage:
|
|
3891
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
3864
3892
|
// fix Author bottom of the storyCard
|
|
3865
|
-
isBottom:
|
|
3893
|
+
isBottom: PropTypes__default["default"].bool,
|
|
3866
3894
|
// fix prefix before the author name
|
|
3867
|
-
prefix:
|
|
3868
|
-
config:
|
|
3895
|
+
prefix: PropTypes__default["default"].string,
|
|
3896
|
+
config: PropTypes__default["default"].object
|
|
3869
3897
|
};
|
|
3870
3898
|
AuthorBase.defaultProps = {
|
|
3871
3899
|
hideAuthorImage: false,
|
|
@@ -3886,14 +3914,14 @@ var Dot = function Dot(_ref) {
|
|
|
3886
3914
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
3887
3915
|
_ref$color = _ref.color,
|
|
3888
3916
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3889
|
-
return /*#__PURE__*/
|
|
3917
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3890
3918
|
className: _getClassName(color, _styleModuleImportMap$v)
|
|
3891
|
-
}, /*#__PURE__*/
|
|
3919
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3892
3920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3893
3921
|
width: width,
|
|
3894
3922
|
height: height,
|
|
3895
3923
|
viewBox: "0 0 3 3"
|
|
3896
|
-
}, /*#__PURE__*/
|
|
3924
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
3897
3925
|
cx: "87",
|
|
3898
3926
|
cy: "9",
|
|
3899
3927
|
r: "1",
|
|
@@ -3904,9 +3932,9 @@ var Dot = function Dot(_ref) {
|
|
|
3904
3932
|
};
|
|
3905
3933
|
Dot.propTypes = {
|
|
3906
3934
|
/** height , width and color of the dot icon */
|
|
3907
|
-
color:
|
|
3908
|
-
width:
|
|
3909
|
-
height:
|
|
3935
|
+
color: PropTypes__default["default"].string,
|
|
3936
|
+
width: PropTypes__default["default"].string,
|
|
3937
|
+
height: PropTypes__default["default"].string
|
|
3910
3938
|
};
|
|
3911
3939
|
|
|
3912
3940
|
var _styleModuleImportMap$u = {
|
|
@@ -3922,22 +3950,22 @@ var Divider = function Divider(_ref) {
|
|
|
3922
3950
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
3923
3951
|
_ref$color = _ref.color,
|
|
3924
3952
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
3925
|
-
return /*#__PURE__*/
|
|
3953
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3926
3954
|
className: _getClassName(color, _styleModuleImportMap$u)
|
|
3927
|
-
}, /*#__PURE__*/
|
|
3955
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3928
3956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3929
3957
|
width: width,
|
|
3930
3958
|
height: height
|
|
3931
|
-
}, /*#__PURE__*/
|
|
3959
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3932
3960
|
fill: "inherit",
|
|
3933
3961
|
d: "M0 0h1v10H0z"
|
|
3934
3962
|
})));
|
|
3935
3963
|
};
|
|
3936
3964
|
Divider.propTypes = {
|
|
3937
3965
|
/** height , width and color of the dot icon */
|
|
3938
|
-
color:
|
|
3939
|
-
width:
|
|
3940
|
-
height:
|
|
3966
|
+
color: PropTypes__default["default"].string,
|
|
3967
|
+
width: PropTypes__default["default"].string,
|
|
3968
|
+
height: PropTypes__default["default"].string
|
|
3941
3969
|
};
|
|
3942
3970
|
|
|
3943
3971
|
var _styleModuleImportMap$t = {
|
|
@@ -3960,23 +3988,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
3960
3988
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
3961
3989
|
if (!showReadTime || !readTime) return null;
|
|
3962
3990
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
3963
|
-
return /*#__PURE__*/
|
|
3991
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3964
3992
|
"data-test-id": "read-time",
|
|
3965
3993
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$t)
|
|
3966
|
-
}, /*#__PURE__*/
|
|
3994
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3967
3995
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
3968
|
-
}, /*#__PURE__*/
|
|
3996
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
3969
3997
|
color: textColor
|
|
3970
|
-
})), /*#__PURE__*/
|
|
3998
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
3971
3999
|
};
|
|
3972
4000
|
ReadTime.propTypes = {
|
|
3973
|
-
story:
|
|
3974
|
-
"read-time":
|
|
4001
|
+
story: PropTypes__default["default"].shape({
|
|
4002
|
+
"read-time": PropTypes__default["default"].number
|
|
3975
4003
|
}),
|
|
3976
|
-
opts:
|
|
3977
|
-
showReadTime:
|
|
4004
|
+
opts: PropTypes__default["default"].shape({
|
|
4005
|
+
showReadTime: PropTypes__default["default"].bool
|
|
3978
4006
|
}),
|
|
3979
|
-
isLightTheme:
|
|
4007
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
3980
4008
|
};
|
|
3981
4009
|
|
|
3982
4010
|
var _styleModuleImportMap$s = {
|
|
@@ -4007,33 +4035,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
4007
4035
|
|
|
4008
4036
|
var getSeparator = function getSeparator() {
|
|
4009
4037
|
if (separator === "divider") {
|
|
4010
|
-
return /*#__PURE__*/
|
|
4038
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
4011
4039
|
color: textColor
|
|
4012
4040
|
});
|
|
4013
4041
|
}
|
|
4014
4042
|
|
|
4015
|
-
return /*#__PURE__*/
|
|
4043
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
4016
4044
|
color: textColor
|
|
4017
4045
|
});
|
|
4018
4046
|
};
|
|
4019
4047
|
|
|
4020
4048
|
var getTimeStamp = function getTimeStamp() {
|
|
4021
4049
|
if (!isTime) return null;
|
|
4022
|
-
return /*#__PURE__*/
|
|
4050
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4023
4051
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$s)
|
|
4024
|
-
}, getSeparator()), /*#__PURE__*/
|
|
4052
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
4025
4053
|
story: story,
|
|
4026
4054
|
config: config
|
|
4027
|
-
}), isReadTime && /*#__PURE__*/
|
|
4055
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
4028
4056
|
story: story,
|
|
4029
4057
|
opts: config,
|
|
4030
4058
|
isLightTheme: isLightTheme
|
|
4031
4059
|
}));
|
|
4032
4060
|
};
|
|
4033
4061
|
|
|
4034
|
-
return /*#__PURE__*/
|
|
4062
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4035
4063
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$s)
|
|
4036
|
-
}, isAuthor ? /*#__PURE__*/
|
|
4064
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
4037
4065
|
story: story,
|
|
4038
4066
|
isBottom: true,
|
|
4039
4067
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -4041,19 +4069,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
4041
4069
|
}), getTimeStamp()) : getTimeStamp());
|
|
4042
4070
|
};
|
|
4043
4071
|
AuthorWithTime.propTypes = {
|
|
4044
|
-
story:
|
|
4072
|
+
story: PropTypes__default["default"].object,
|
|
4045
4073
|
|
|
4046
4074
|
/** Style of separator between the Author & Timestamp */
|
|
4047
|
-
separator:
|
|
4075
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
4048
4076
|
|
|
4049
4077
|
/** hide the author image */
|
|
4050
|
-
hideAuthorImage:
|
|
4078
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4051
4079
|
// fix author and time at the end
|
|
4052
|
-
isBottom:
|
|
4080
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4053
4081
|
// fix prefix before the author name
|
|
4054
|
-
prefix:
|
|
4055
|
-
config:
|
|
4056
|
-
isLightTheme:
|
|
4082
|
+
prefix: PropTypes__default["default"].string,
|
|
4083
|
+
config: PropTypes__default["default"].object,
|
|
4084
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4057
4085
|
};
|
|
4058
4086
|
AuthorWithTime.defaultProps = {
|
|
4059
4087
|
separator: "dot",
|
|
@@ -4099,7 +4127,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4099
4127
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
4100
4128
|
|
|
4101
4129
|
var borderBottomStyle = function borderBottomStyle() {
|
|
4102
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
4130
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4103
4131
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
4104
4132
|
style: {
|
|
4105
4133
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -4159,40 +4187,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4159
4187
|
}
|
|
4160
4188
|
};
|
|
4161
4189
|
|
|
4162
|
-
return /*#__PURE__*/
|
|
4190
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4163
4191
|
style: {
|
|
4164
4192
|
borderBottom: borderBottomFullStyle
|
|
4165
4193
|
},
|
|
4166
4194
|
"data-test-id": "collection-name",
|
|
4167
4195
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$r)
|
|
4168
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
4196
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4169
4197
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
4170
4198
|
style: {
|
|
4171
4199
|
color: CollectionNameBorderColor,
|
|
4172
4200
|
fontSize: getBorderHeight()
|
|
4173
4201
|
}
|
|
4174
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
4202
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4175
4203
|
href: slug,
|
|
4176
4204
|
"aria-label": "collection-name"
|
|
4177
|
-
}, /*#__PURE__*/
|
|
4205
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
4178
4206
|
};
|
|
4179
4207
|
CollectionNameBase.propTypes = {
|
|
4180
4208
|
/** Collection name border color */
|
|
4181
|
-
collectionNameBorderColor: PropTypes
|
|
4209
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
4182
4210
|
|
|
4183
4211
|
/** The Collection Object from the API response */
|
|
4184
|
-
collection: PropTypes
|
|
4212
|
+
collection: PropTypes.PropTypes.object,
|
|
4185
4213
|
|
|
4186
4214
|
/** The publisher config from the API response */
|
|
4187
|
-
config: PropTypes
|
|
4215
|
+
config: PropTypes.PropTypes.object,
|
|
4188
4216
|
|
|
4189
4217
|
/** The style template for the component */
|
|
4190
|
-
collectionNameTemplate: PropTypes
|
|
4218
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
4191
4219
|
|
|
4192
4220
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4193
|
-
headerLevel: PropTypes
|
|
4194
|
-
customCollectionName: PropTypes
|
|
4195
|
-
navigate: PropTypes
|
|
4221
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
4222
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
4223
|
+
navigate: PropTypes.PropTypes.bool
|
|
4196
4224
|
};
|
|
4197
4225
|
CollectionNameBase.defaultProps = {
|
|
4198
4226
|
collectionNameTemplate: "",
|
|
@@ -4205,7 +4233,7 @@ function mapStateToProps(state) {
|
|
|
4205
4233
|
};
|
|
4206
4234
|
}
|
|
4207
4235
|
|
|
4208
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
4236
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
4209
4237
|
|
|
4210
4238
|
var CrownIcon = function CrownIcon(_ref) {
|
|
4211
4239
|
var height = _ref.height,
|
|
@@ -4213,7 +4241,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
4213
4241
|
_ref$color = _ref.color,
|
|
4214
4242
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
4215
4243
|
positionTop = _ref.positionTop;
|
|
4216
|
-
return /*#__PURE__*/
|
|
4244
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4217
4245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4218
4246
|
width: width,
|
|
4219
4247
|
height: height,
|
|
@@ -4222,28 +4250,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
4222
4250
|
position: "relative",
|
|
4223
4251
|
top: positionTop
|
|
4224
4252
|
}
|
|
4225
|
-
}, /*#__PURE__*/
|
|
4253
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4226
4254
|
fill: "none",
|
|
4227
4255
|
fillRule: "evenodd",
|
|
4228
4256
|
stroke: "none",
|
|
4229
4257
|
strokeWidth: "1"
|
|
4230
|
-
}, /*#__PURE__*/
|
|
4258
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4231
4259
|
transform: "translate(8 8)"
|
|
4232
|
-
}, /*#__PURE__*/
|
|
4260
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4233
4261
|
d: "M0 0H24V24H0z"
|
|
4234
|
-
}), /*#__PURE__*/
|
|
4262
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4235
4263
|
fill: color,
|
|
4236
4264
|
fillRule: "nonzero",
|
|
4237
4265
|
transform: "translate(0 2)"
|
|
4238
|
-
}, /*#__PURE__*/
|
|
4266
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4239
4267
|
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"
|
|
4240
4268
|
}))))));
|
|
4241
4269
|
};
|
|
4242
4270
|
CrownIcon.propTypes = {
|
|
4243
|
-
height:
|
|
4244
|
-
width:
|
|
4245
|
-
color:
|
|
4246
|
-
positionTop:
|
|
4271
|
+
height: PropTypes__default["default"].string,
|
|
4272
|
+
width: PropTypes__default["default"].string,
|
|
4273
|
+
color: PropTypes__default["default"].string,
|
|
4274
|
+
positionTop: PropTypes__default["default"].string
|
|
4247
4275
|
};
|
|
4248
4276
|
|
|
4249
4277
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -4252,7 +4280,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
4252
4280
|
_ref$color = _ref.color,
|
|
4253
4281
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
4254
4282
|
positionTop = _ref.positionTop;
|
|
4255
|
-
return /*#__PURE__*/
|
|
4283
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4256
4284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4257
4285
|
width: width,
|
|
4258
4286
|
height: height,
|
|
@@ -4261,16 +4289,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
4261
4289
|
position: "relative",
|
|
4262
4290
|
top: positionTop
|
|
4263
4291
|
}
|
|
4264
|
-
}, /*#__PURE__*/
|
|
4292
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4265
4293
|
fill: "none",
|
|
4266
4294
|
fillRule: "evenodd",
|
|
4267
4295
|
stroke: "none",
|
|
4268
4296
|
strokeWidth: "1"
|
|
4269
|
-
}, /*#__PURE__*/
|
|
4297
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4270
4298
|
transform: "translate(8 8)"
|
|
4271
|
-
}, /*#__PURE__*/
|
|
4299
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4272
4300
|
d: "M0 0H24V24H0z"
|
|
4273
|
-
}), /*#__PURE__*/
|
|
4301
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4274
4302
|
fill: color,
|
|
4275
4303
|
fillRule: "nonzero",
|
|
4276
4304
|
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",
|
|
@@ -4278,10 +4306,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
4278
4306
|
})))));
|
|
4279
4307
|
};
|
|
4280
4308
|
KeyIcon.propTypes = {
|
|
4281
|
-
height:
|
|
4282
|
-
width:
|
|
4283
|
-
color:
|
|
4284
|
-
positionTop:
|
|
4309
|
+
height: PropTypes__default["default"].string,
|
|
4310
|
+
width: PropTypes__default["default"].string,
|
|
4311
|
+
color: PropTypes__default["default"].string,
|
|
4312
|
+
positionTop: PropTypes__default["default"].string
|
|
4285
4313
|
};
|
|
4286
4314
|
|
|
4287
4315
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -4290,7 +4318,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
4290
4318
|
_ref$color = _ref.color,
|
|
4291
4319
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
4292
4320
|
positionTop = _ref.positionTop;
|
|
4293
|
-
return /*#__PURE__*/
|
|
4321
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4294
4322
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4295
4323
|
width: width,
|
|
4296
4324
|
height: height,
|
|
@@ -4299,28 +4327,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
4299
4327
|
position: "relative",
|
|
4300
4328
|
top: positionTop
|
|
4301
4329
|
}
|
|
4302
|
-
}, /*#__PURE__*/
|
|
4330
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4303
4331
|
fill: "none",
|
|
4304
4332
|
fillRule: "evenodd",
|
|
4305
4333
|
stroke: "none",
|
|
4306
4334
|
strokeWidth: "1"
|
|
4307
|
-
}, /*#__PURE__*/
|
|
4335
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4308
4336
|
transform: "translate(8 8)"
|
|
4309
|
-
}, /*#__PURE__*/
|
|
4337
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4310
4338
|
d: "M0 0H24V24H0z"
|
|
4311
|
-
}), /*#__PURE__*/
|
|
4339
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4312
4340
|
fill: color,
|
|
4313
4341
|
fillRule: "nonzero",
|
|
4314
4342
|
transform: "translate(3)"
|
|
4315
|
-
}, /*#__PURE__*/
|
|
4343
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4316
4344
|
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"
|
|
4317
4345
|
}))))));
|
|
4318
4346
|
};
|
|
4319
4347
|
LockIcon.propTypes = {
|
|
4320
|
-
height:
|
|
4321
|
-
width:
|
|
4322
|
-
color:
|
|
4323
|
-
positionTop:
|
|
4348
|
+
height: PropTypes__default["default"].string,
|
|
4349
|
+
width: PropTypes__default["default"].string,
|
|
4350
|
+
color: PropTypes__default["default"].string,
|
|
4351
|
+
positionTop: PropTypes__default["default"].string
|
|
4324
4352
|
};
|
|
4325
4353
|
|
|
4326
4354
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -4330,7 +4358,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
4330
4358
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
4331
4359
|
_ref$positionTop = _ref.positionTop,
|
|
4332
4360
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
4333
|
-
return /*#__PURE__*/
|
|
4361
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4334
4362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4335
4363
|
width: width,
|
|
4336
4364
|
height: height,
|
|
@@ -4339,21 +4367,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
4339
4367
|
position: "relative",
|
|
4340
4368
|
top: positionTop
|
|
4341
4369
|
}
|
|
4342
|
-
}, /*#__PURE__*/
|
|
4370
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4343
4371
|
fill: "none",
|
|
4344
4372
|
fillRule: "evenodd",
|
|
4345
4373
|
stroke: "none",
|
|
4346
4374
|
strokeWidth: "1"
|
|
4347
|
-
}, /*#__PURE__*/
|
|
4375
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4348
4376
|
fill: color,
|
|
4349
4377
|
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"
|
|
4350
4378
|
}))));
|
|
4351
4379
|
};
|
|
4352
4380
|
StarIcon.propTypes = {
|
|
4353
|
-
height:
|
|
4354
|
-
width:
|
|
4355
|
-
color:
|
|
4356
|
-
positionTop:
|
|
4381
|
+
height: PropTypes__default["default"].string,
|
|
4382
|
+
width: PropTypes__default["default"].string,
|
|
4383
|
+
color: PropTypes__default["default"].string,
|
|
4384
|
+
positionTop: PropTypes__default["default"].string
|
|
4357
4385
|
};
|
|
4358
4386
|
|
|
4359
4387
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -4365,7 +4393,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4365
4393
|
|
|
4366
4394
|
switch (iconType) {
|
|
4367
4395
|
case "crown":
|
|
4368
|
-
return /*#__PURE__*/
|
|
4396
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
4369
4397
|
width: width,
|
|
4370
4398
|
height: height,
|
|
4371
4399
|
color: color,
|
|
@@ -4373,7 +4401,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4373
4401
|
});
|
|
4374
4402
|
|
|
4375
4403
|
case "lock":
|
|
4376
|
-
return /*#__PURE__*/
|
|
4404
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
4377
4405
|
width: width,
|
|
4378
4406
|
height: height,
|
|
4379
4407
|
color: color,
|
|
@@ -4381,7 +4409,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4381
4409
|
});
|
|
4382
4410
|
|
|
4383
4411
|
case "key":
|
|
4384
|
-
return /*#__PURE__*/
|
|
4412
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
4385
4413
|
width: width,
|
|
4386
4414
|
height: height,
|
|
4387
4415
|
color: color,
|
|
@@ -4389,7 +4417,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4389
4417
|
});
|
|
4390
4418
|
|
|
4391
4419
|
default:
|
|
4392
|
-
return /*#__PURE__*/
|
|
4420
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
4393
4421
|
width: width,
|
|
4394
4422
|
height: height,
|
|
4395
4423
|
color: color,
|
|
@@ -4398,21 +4426,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
4398
4426
|
}
|
|
4399
4427
|
};
|
|
4400
4428
|
PremiumStoryIcon.propTypes = {
|
|
4401
|
-
width:
|
|
4402
|
-
height:
|
|
4403
|
-
color:
|
|
4404
|
-
iconType:
|
|
4405
|
-
positionTop:
|
|
4429
|
+
width: PropTypes__default["default"].string,
|
|
4430
|
+
height: PropTypes__default["default"].string,
|
|
4431
|
+
color: PropTypes__default["default"].string,
|
|
4432
|
+
iconType: PropTypes__default["default"].string,
|
|
4433
|
+
positionTop: PropTypes__default["default"].string
|
|
4406
4434
|
};
|
|
4407
4435
|
|
|
4408
4436
|
function LiveIcon() {
|
|
4409
|
-
return /*#__PURE__*/
|
|
4437
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4410
4438
|
className: "live-icon",
|
|
4411
4439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4412
4440
|
width: "25",
|
|
4413
4441
|
height: "24",
|
|
4414
4442
|
viewBox: "0 0 25 24"
|
|
4415
|
-
}, /*#__PURE__*/
|
|
4443
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4416
4444
|
fill: "#ff5858",
|
|
4417
4445
|
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"
|
|
4418
4446
|
}));
|
|
@@ -4469,37 +4497,37 @@ var Headline = function Headline(_ref) {
|
|
|
4469
4497
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
4470
4498
|
var iconSize = "24px";
|
|
4471
4499
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
4472
|
-
return /*#__PURE__*/
|
|
4500
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4473
4501
|
"data-test-id": "headline",
|
|
4474
4502
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$q)
|
|
4475
|
-
}, premiumStory && /*#__PURE__*/
|
|
4503
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
4476
4504
|
width: iconSize,
|
|
4477
4505
|
height: iconSize,
|
|
4478
4506
|
color: iconColor,
|
|
4479
4507
|
iconType: iconStyle,
|
|
4480
4508
|
positionTop: positionHeadline()
|
|
4481
|
-
}), isLink ? /*#__PURE__*/
|
|
4509
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4482
4510
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4483
4511
|
externalLink: isExternalStory(story),
|
|
4484
4512
|
"aria-label": "headline"
|
|
4485
|
-
}, /*#__PURE__*/
|
|
4513
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
4486
4514
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$q)
|
|
4487
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
4515
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
4488
4516
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$q)
|
|
4489
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
4517
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
4490
4518
|
};
|
|
4491
4519
|
Headline.propTypes = {
|
|
4492
4520
|
/** The Story Object from the API response */
|
|
4493
|
-
story:
|
|
4521
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4494
4522
|
|
|
4495
4523
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4496
|
-
headerLevel:
|
|
4497
|
-
premiumStoryIconConfig:
|
|
4498
|
-
iconColor:
|
|
4499
|
-
iconType:
|
|
4500
|
-
enablePremiumStoryIcon:
|
|
4524
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4525
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
4526
|
+
iconColor: PropTypes__default["default"].string,
|
|
4527
|
+
iconType: PropTypes__default["default"].string,
|
|
4528
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
4501
4529
|
}),
|
|
4502
|
-
isLink:
|
|
4530
|
+
isLink: PropTypes__default["default"].bool
|
|
4503
4531
|
};
|
|
4504
4532
|
Headline.defaultProps = {
|
|
4505
4533
|
headerLevel: "6",
|
|
@@ -4513,27 +4541,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4513
4541
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
4514
4542
|
_ref$iconColor = _ref.iconColor,
|
|
4515
4543
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
4516
|
-
return /*#__PURE__*/
|
|
4544
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4517
4545
|
width: width,
|
|
4518
4546
|
height: height,
|
|
4519
4547
|
viewBox: "0 0 102 76",
|
|
4520
4548
|
version: "1.1"
|
|
4521
|
-
}, /*#__PURE__*/
|
|
4549
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4522
4550
|
id: "demo-home-copy",
|
|
4523
4551
|
stroke: "none",
|
|
4524
4552
|
strokeWidth: "1",
|
|
4525
4553
|
fill: "none",
|
|
4526
4554
|
fillRule: "evenodd",
|
|
4527
4555
|
transform: "translate(-377.000000, -314.000000)"
|
|
4528
|
-
}, /*#__PURE__*/
|
|
4556
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4529
4557
|
id: "Group-13",
|
|
4530
4558
|
transform: "translate(377.000000, 314.000000)"
|
|
4531
|
-
}, /*#__PURE__*/
|
|
4559
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4532
4560
|
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",
|
|
4533
4561
|
id: "Combined-Shape",
|
|
4534
4562
|
fill: iconColor,
|
|
4535
4563
|
fillRule: "nonzero"
|
|
4536
|
-
}), /*#__PURE__*/
|
|
4564
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4537
4565
|
id: "Rectangle-19",
|
|
4538
4566
|
stroke: iconColor,
|
|
4539
4567
|
strokeWidth: "3",
|
|
@@ -4545,24 +4573,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4545
4573
|
}))));
|
|
4546
4574
|
};
|
|
4547
4575
|
ImageFallbackIcon.propTypes = {
|
|
4548
|
-
width:
|
|
4549
|
-
height:
|
|
4550
|
-
iconColor:
|
|
4576
|
+
width: PropTypes__default["default"].object,
|
|
4577
|
+
height: PropTypes__default["default"].object,
|
|
4578
|
+
iconColor: PropTypes__default["default"].object
|
|
4551
4579
|
};
|
|
4552
4580
|
|
|
4553
4581
|
var imageFallback = function imageFallback() {
|
|
4554
|
-
return /*#__PURE__*/
|
|
4582
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4555
4583
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
4556
|
-
}, /*#__PURE__*/
|
|
4584
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4557
4585
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
4558
|
-
}, /*#__PURE__*/
|
|
4586
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
4559
4587
|
};
|
|
4560
4588
|
|
|
4561
4589
|
var FallbackImage = function FallbackImage(_ref) {
|
|
4562
4590
|
var slug = _ref.slug;
|
|
4563
4591
|
|
|
4564
4592
|
if (slug) {
|
|
4565
|
-
return /*#__PURE__*/
|
|
4593
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4566
4594
|
href: slug,
|
|
4567
4595
|
"aria-label": "image-fallback"
|
|
4568
4596
|
}, imageFallback());
|
|
@@ -4571,23 +4599,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
4571
4599
|
}
|
|
4572
4600
|
};
|
|
4573
4601
|
FallbackImage.propTypes = {
|
|
4574
|
-
slug:
|
|
4602
|
+
slug: PropTypes__default["default"].string
|
|
4575
4603
|
};
|
|
4576
4604
|
|
|
4577
4605
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
4578
|
-
return /*#__PURE__*/
|
|
4606
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4579
4607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4580
4608
|
width: "36",
|
|
4581
4609
|
height: "28"
|
|
4582
|
-
}, /*#__PURE__*/
|
|
4610
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4583
4611
|
fill: "none",
|
|
4584
4612
|
fillRule: "evenodd"
|
|
4585
|
-
}, /*#__PURE__*/
|
|
4613
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4586
4614
|
width: "36",
|
|
4587
4615
|
height: "28",
|
|
4588
4616
|
fill: "#3D6FCF",
|
|
4589
4617
|
rx: "4"
|
|
4590
|
-
}), /*#__PURE__*/
|
|
4618
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4591
4619
|
stroke: "#FFF",
|
|
4592
4620
|
strokeLinecap: "round",
|
|
4593
4621
|
strokeLinejoin: "round",
|
|
@@ -4600,16 +4628,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
4600
4628
|
var _ref$hyperLink = _ref.hyperLink,
|
|
4601
4629
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
4602
4630
|
if (!hyperLink) return null;
|
|
4603
|
-
return /*#__PURE__*/
|
|
4631
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4604
4632
|
href: hyperLink,
|
|
4605
4633
|
"aria-label": "hyperlink-button",
|
|
4606
4634
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
4607
4635
|
target: "_blank",
|
|
4608
4636
|
rel: "noopener noreferrer"
|
|
4609
|
-
}, /*#__PURE__*/
|
|
4637
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
4610
4638
|
};
|
|
4611
4639
|
HyperLink.propTypes = {
|
|
4612
|
-
hyperLink:
|
|
4640
|
+
hyperLink: PropTypes__default["default"].string
|
|
4613
4641
|
};
|
|
4614
4642
|
|
|
4615
4643
|
var _styleModuleImportMap$p = {
|
|
@@ -4645,7 +4673,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4645
4673
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
4646
4674
|
return null;
|
|
4647
4675
|
} : _config$StoryTemplate;
|
|
4648
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
4676
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
4649
4677
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
4650
4678
|
});
|
|
4651
4679
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -4681,37 +4709,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4681
4709
|
var fallbackImage = function fallbackImage() {
|
|
4682
4710
|
if (!slug) {
|
|
4683
4711
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
4684
|
-
return /*#__PURE__*/
|
|
4712
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4685
4713
|
style: {
|
|
4686
4714
|
paddingTop: imagePadding + "%"
|
|
4687
4715
|
},
|
|
4688
4716
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$p)
|
|
4689
|
-
}, /*#__PURE__*/
|
|
4717
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4690
4718
|
className: "qt-image",
|
|
4691
4719
|
"data-src": "".concat(fallbackImageUrl),
|
|
4692
4720
|
alt: "image-fallback"
|
|
4693
4721
|
}));
|
|
4694
4722
|
}
|
|
4695
4723
|
|
|
4696
|
-
return /*#__PURE__*/
|
|
4724
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4697
4725
|
"data-test-id": "arr--fallback-hero-image",
|
|
4698
4726
|
style: {
|
|
4699
4727
|
paddingTop: imagePadding + "%"
|
|
4700
4728
|
},
|
|
4701
4729
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$p)
|
|
4702
|
-
}, /*#__PURE__*/
|
|
4730
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4703
4731
|
storyTemplate: story["story-template"]
|
|
4704
|
-
}), /*#__PURE__*/
|
|
4732
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
4705
4733
|
}
|
|
4706
4734
|
|
|
4707
|
-
return /*#__PURE__*/
|
|
4735
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4708
4736
|
style: {
|
|
4709
4737
|
paddingTop: imagePadding + "%"
|
|
4710
4738
|
},
|
|
4711
4739
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$p)
|
|
4712
|
-
}, /*#__PURE__*/
|
|
4740
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4713
4741
|
storyTemplate: story["story-template"]
|
|
4714
|
-
}), /*#__PURE__*/
|
|
4742
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
4715
4743
|
story: story,
|
|
4716
4744
|
aspectRatio: imageAspectRatio,
|
|
4717
4745
|
defaultWidth: defaultWidth,
|
|
@@ -4720,15 +4748,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4720
4748
|
auto: ["format", "compress"],
|
|
4721
4749
|
fit: "max"
|
|
4722
4750
|
}
|
|
4723
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
4751
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
4724
4752
|
hyperLink: hyperLink
|
|
4725
4753
|
}));
|
|
4726
4754
|
};
|
|
4727
4755
|
|
|
4728
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
4756
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4729
4757
|
"data-test-id": "arr--hero-image",
|
|
4730
4758
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$p)
|
|
4731
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
4759
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4732
4760
|
"data-test-id": "arr--hero-image",
|
|
4733
4761
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4734
4762
|
externalLink: isExternalStory(story),
|
|
@@ -4738,30 +4766,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4738
4766
|
};
|
|
4739
4767
|
HeroImage.propTypes = {
|
|
4740
4768
|
/** The Story Object from the API response */
|
|
4741
|
-
story:
|
|
4769
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4742
4770
|
|
|
4743
4771
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
4744
|
-
FullBleed:
|
|
4772
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
4745
4773
|
|
|
4746
4774
|
/** The default width for the image, in case the browser does not support srcset */
|
|
4747
|
-
defaultWidth:
|
|
4775
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
4748
4776
|
|
|
4749
4777
|
/** The list of available widths */
|
|
4750
|
-
widths:
|
|
4778
|
+
widths: PropTypes__default["default"].array,
|
|
4751
4779
|
// fatch the correct hero image
|
|
4752
|
-
aspectRatio:
|
|
4780
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
4753
4781
|
// Hints for the browser to choose the best size
|
|
4754
4782
|
|
|
4755
4783
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
4756
|
-
isHorizontal:
|
|
4784
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4757
4785
|
|
|
4758
4786
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
4759
|
-
isHorizontalMobile:
|
|
4787
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4760
4788
|
// this prop is responsive for rendering fallback image on story page
|
|
4761
|
-
defaultFallback:
|
|
4762
|
-
isHorizontalWithImageLast:
|
|
4763
|
-
isStoryPageImage:
|
|
4764
|
-
config:
|
|
4789
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
4790
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
4791
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
4792
|
+
config: PropTypes__default["default"].object
|
|
4765
4793
|
};
|
|
4766
4794
|
HeroImage.defaultProps = {
|
|
4767
4795
|
FullBleed: true,
|
|
@@ -4818,7 +4846,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4818
4846
|
prefix = _ref.prefix,
|
|
4819
4847
|
config = _ref.config,
|
|
4820
4848
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
4821
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
4849
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
4822
4850
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
4823
4851
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
4824
4852
|
|
|
@@ -4828,7 +4856,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4828
4856
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
4829
4857
|
var textColor = getTextColor(theme);
|
|
4830
4858
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
4831
|
-
var defaultStorycard = /*#__PURE__*/
|
|
4859
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
4832
4860
|
story: story,
|
|
4833
4861
|
aspectRatio: aspectRatio,
|
|
4834
4862
|
border: border,
|
|
@@ -4842,7 +4870,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4842
4870
|
config: config,
|
|
4843
4871
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
4844
4872
|
});
|
|
4845
|
-
return /*#__PURE__*/
|
|
4873
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4846
4874
|
"data-test-id": "story-card",
|
|
4847
4875
|
style: {
|
|
4848
4876
|
backgroundColor: theme,
|
|
@@ -4871,91 +4899,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
4871
4899
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
4872
4900
|
var _config$localizationC = config.localizationConfig,
|
|
4873
4901
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
4874
|
-
return /*#__PURE__*/
|
|
4902
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4875
4903
|
config: config,
|
|
4876
4904
|
story: story,
|
|
4877
4905
|
isHorizontal: true,
|
|
4878
4906
|
isHorizontalMobile: isHorizontalMobile,
|
|
4879
4907
|
aspectRatio: aspectRatio
|
|
4880
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
4908
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4881
4909
|
config: config,
|
|
4882
4910
|
story: story,
|
|
4883
4911
|
isHorizontalWithImageLast: true,
|
|
4884
4912
|
isHorizontalMobile: isHorizontalMobile,
|
|
4885
4913
|
aspectRatio: aspectRatio
|
|
4886
|
-
}) : /*#__PURE__*/
|
|
4914
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
4887
4915
|
story: story,
|
|
4888
4916
|
config: config,
|
|
4889
4917
|
isHorizontalMobile: isHorizontalMobile,
|
|
4890
4918
|
aspectRatio: aspectRatio
|
|
4891
|
-
}), /*#__PURE__*/
|
|
4919
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4892
4920
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$o)
|
|
4893
|
-
}, /*#__PURE__*/
|
|
4921
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
4894
4922
|
story: story,
|
|
4895
4923
|
borderColor: SectionTagborderColor
|
|
4896
|
-
}), /*#__PURE__*/
|
|
4924
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
4897
4925
|
story: story,
|
|
4898
4926
|
headerLevel: headerLevel,
|
|
4899
4927
|
premiumStoryIconConfig: config
|
|
4900
|
-
}), /*#__PURE__*/
|
|
4928
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
4901
4929
|
config: localizationConfig,
|
|
4902
4930
|
story: story,
|
|
4903
4931
|
isBottom: true,
|
|
4904
4932
|
prefix: prefix,
|
|
4905
4933
|
hideAuthorImage: hideAuthorImage
|
|
4906
|
-
}), /*#__PURE__*/
|
|
4934
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
4907
4935
|
story: story
|
|
4908
4936
|
})));
|
|
4909
4937
|
};
|
|
4910
4938
|
|
|
4911
4939
|
DefaultStoryCard.propTypes = {
|
|
4912
|
-
story:
|
|
4913
|
-
border:
|
|
4914
|
-
isBottom:
|
|
4915
|
-
isHorizontal:
|
|
4916
|
-
aspectRatio:
|
|
4917
|
-
isHorizontalMobile:
|
|
4918
|
-
centerAlign:
|
|
4919
|
-
headerLevel:
|
|
4920
|
-
borderColor:
|
|
4921
|
-
hideAuthorImage:
|
|
4922
|
-
prefix:
|
|
4923
|
-
config:
|
|
4924
|
-
isHorizontalWithImageLast:
|
|
4940
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4941
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
4942
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4943
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4944
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4945
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4946
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4947
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4948
|
+
borderColor: PropTypes__default["default"].string,
|
|
4949
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4950
|
+
prefix: PropTypes__default["default"].string,
|
|
4951
|
+
config: PropTypes__default["default"].object,
|
|
4952
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4925
4953
|
};
|
|
4926
4954
|
StoryCard.propTypes = {
|
|
4927
4955
|
/** The Story Object from the API response */
|
|
4928
|
-
story:
|
|
4929
|
-
children:
|
|
4956
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4957
|
+
children: PropTypes__default["default"].node,
|
|
4930
4958
|
|
|
4931
4959
|
/** Flip the Story Card to Horizonal mode */
|
|
4932
|
-
isHorizontal:
|
|
4960
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4933
4961
|
|
|
4934
4962
|
/** Add border to the Story Card */
|
|
4935
|
-
border:
|
|
4963
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
4936
4964
|
// story card with background image
|
|
4937
|
-
useImageAsBackground:
|
|
4965
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
4938
4966
|
// story card content overlap with image
|
|
4939
|
-
bgImgContentOverlap:
|
|
4967
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
4940
4968
|
|
|
4941
4969
|
/** add aspect ratio for hero image */
|
|
4942
|
-
aspectRatio:
|
|
4970
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
4943
4971
|
|
|
4944
4972
|
/** add theme(dark /light/custom color) for storycard */
|
|
4945
|
-
theme:
|
|
4973
|
+
theme: PropTypes__default["default"].string,
|
|
4946
4974
|
|
|
4947
4975
|
/** flip the story card mobile design horizontal */
|
|
4948
|
-
isHorizontalMobile:
|
|
4976
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4949
4977
|
// make content center align in desktop and left align in mobile
|
|
4950
|
-
centerAlign:
|
|
4951
|
-
headerLevel:
|
|
4952
|
-
borderColor:
|
|
4978
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
4979
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4980
|
+
borderColor: PropTypes__default["default"].string,
|
|
4953
4981
|
// handle author image through storycard
|
|
4954
|
-
hideAuthorImage:
|
|
4982
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4955
4983
|
// handle author prefix through storycard
|
|
4956
|
-
prefix:
|
|
4957
|
-
config:
|
|
4958
|
-
isHorizontalWithImageLast:
|
|
4984
|
+
prefix: PropTypes__default["default"].string,
|
|
4985
|
+
config: PropTypes__default["default"].object,
|
|
4986
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
4959
4987
|
};
|
|
4960
4988
|
StoryCard.defaultProps = {
|
|
4961
4989
|
isHorizontal: false,
|
|
@@ -4970,19 +4998,19 @@ StoryCard.defaultProps = {
|
|
|
4970
4998
|
var ClockIcon = function ClockIcon(_ref) {
|
|
4971
4999
|
var _ref$color = _ref.color,
|
|
4972
5000
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
4973
|
-
return /*#__PURE__*/
|
|
5001
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4974
5002
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4975
5003
|
width: "24",
|
|
4976
5004
|
height: "24",
|
|
4977
5005
|
viewBox: "0 0 24 24"
|
|
4978
|
-
}, /*#__PURE__*/
|
|
5006
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4979
5007
|
fill: color,
|
|
4980
5008
|
fillRule: "evenodd",
|
|
4981
5009
|
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"
|
|
4982
5010
|
}));
|
|
4983
5011
|
};
|
|
4984
5012
|
ClockIcon.propTypes = {
|
|
4985
|
-
color:
|
|
5013
|
+
color: PropTypes__default["default"].string
|
|
4986
5014
|
};
|
|
4987
5015
|
|
|
4988
5016
|
var _styleModuleImportMap$n = {
|
|
@@ -5017,26 +5045,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
5017
5045
|
if (!showButton) return null;
|
|
5018
5046
|
var textColor = getTextColor(theme);
|
|
5019
5047
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread$3(_objectSpread$3({}, qtConfig), config));
|
|
5020
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
5048
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5021
5049
|
onClick: onClick,
|
|
5022
5050
|
"data-test-id": "load-more",
|
|
5023
5051
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$n)
|
|
5024
|
-
}, buttonText) : /*#__PURE__*/
|
|
5052
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
5025
5053
|
href: slug,
|
|
5026
5054
|
navigateTo: navigate,
|
|
5027
5055
|
"data-test-id": "load-more",
|
|
5028
5056
|
"aria-label": "load-more"
|
|
5029
|
-
}, /*#__PURE__*/
|
|
5057
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5030
5058
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$n)
|
|
5031
5059
|
}, buttonText));
|
|
5032
5060
|
};
|
|
5033
5061
|
LoadmoreButton.propTypes = {
|
|
5034
|
-
collection:
|
|
5035
|
-
template:
|
|
5036
|
-
config:
|
|
5037
|
-
onClick:
|
|
5038
|
-
navigate:
|
|
5039
|
-
qtConfig:
|
|
5062
|
+
collection: PropTypes__default["default"].object,
|
|
5063
|
+
template: PropTypes__default["default"].string,
|
|
5064
|
+
config: PropTypes__default["default"].object,
|
|
5065
|
+
onClick: PropTypes__default["default"].func,
|
|
5066
|
+
navigate: PropTypes__default["default"].func,
|
|
5067
|
+
qtConfig: PropTypes__default["default"].object
|
|
5040
5068
|
};
|
|
5041
5069
|
|
|
5042
5070
|
var _styleModuleImportMap$m = {
|
|
@@ -5074,23 +5102,23 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
5074
5102
|
var updateColor = textColor === "dark" ? dark : light;
|
|
5075
5103
|
var lastElement = index === cardLength - 1;
|
|
5076
5104
|
var borderLeft = lastElement ? "borderNone" : "";
|
|
5077
|
-
return /*#__PURE__*/
|
|
5105
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5078
5106
|
className: _getClassName("time-wrapper ".concat(textColor), _styleModuleImportMap$m)
|
|
5079
|
-
}, /*#__PURE__*/
|
|
5107
|
+
}, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
|
|
5080
5108
|
color: updateColor
|
|
5081
5109
|
}), getTimeStamp(cardAddedAt, timestampToFormat, {
|
|
5082
5110
|
showTime: true,
|
|
5083
5111
|
isTimeFirst: true
|
|
5084
|
-
})), /*#__PURE__*/
|
|
5112
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5085
5113
|
href: "".concat(mountAt, "/").concat(slug, "#").concat(id),
|
|
5086
5114
|
"aria-label": "event-title"
|
|
5087
|
-
}, /*#__PURE__*/
|
|
5115
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5088
5116
|
className: _getClassName("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$m)
|
|
5089
5117
|
}, storyElements.map(function (element, index) {
|
|
5090
|
-
return element.type === "title" && /*#__PURE__*/
|
|
5118
|
+
return element.type === "title" && /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
5091
5119
|
key: index
|
|
5092
5120
|
}, element.text);
|
|
5093
|
-
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/
|
|
5121
|
+
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5094
5122
|
className: "key-events-m_fade-out__11jv_",
|
|
5095
5123
|
style: {
|
|
5096
5124
|
backgroundImage: "linear-gradient(to bottom, transparent, ".concat(theme, ")")
|
|
@@ -5099,19 +5127,19 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
5099
5127
|
};
|
|
5100
5128
|
|
|
5101
5129
|
KeyEventCards.propTypes = {
|
|
5102
|
-
card:
|
|
5103
|
-
"card-added-at":
|
|
5104
|
-
"story-elements":
|
|
5105
|
-
id:
|
|
5130
|
+
card: PropTypes__default["default"].shape({
|
|
5131
|
+
"card-added-at": PropTypes__default["default"].number,
|
|
5132
|
+
"story-elements": PropTypes__default["default"].array,
|
|
5133
|
+
id: PropTypes__default["default"].string
|
|
5106
5134
|
}),
|
|
5107
|
-
config:
|
|
5108
|
-
slug:
|
|
5109
|
-
story:
|
|
5110
|
-
elements:
|
|
5111
|
-
index:
|
|
5112
|
-
cardLength:
|
|
5113
|
-
loadCards:
|
|
5114
|
-
showLoadMore:
|
|
5135
|
+
config: PropTypes__default["default"].object,
|
|
5136
|
+
slug: PropTypes__default["default"].string,
|
|
5137
|
+
story: PropTypes__default["default"].object,
|
|
5138
|
+
elements: PropTypes__default["default"].array,
|
|
5139
|
+
index: PropTypes__default["default"].number,
|
|
5140
|
+
cardLength: PropTypes__default["default"].number,
|
|
5141
|
+
loadCards: PropTypes__default["default"].bool,
|
|
5142
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5115
5143
|
};
|
|
5116
5144
|
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
5117
5145
|
var _ref$story = _ref.story,
|
|
@@ -5126,7 +5154,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5126
5154
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
5127
5155
|
var textColor = getTextColor(theme);
|
|
5128
5156
|
|
|
5129
|
-
var _useState = useState(initialLoadCount),
|
|
5157
|
+
var _useState = React.useState(initialLoadCount),
|
|
5130
5158
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5131
5159
|
initialCount = _useState2[0],
|
|
5132
5160
|
updatedCount = _useState2[1];
|
|
@@ -5135,7 +5163,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5135
5163
|
return get_1(card.metadata, ["attributes", "key-event"]);
|
|
5136
5164
|
});
|
|
5137
5165
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
5138
|
-
var qtConfig = useSelector(function (state) {
|
|
5166
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
5139
5167
|
return get_1(state, ["qt", "config"], {});
|
|
5140
5168
|
});
|
|
5141
5169
|
|
|
@@ -5149,7 +5177,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5149
5177
|
|
|
5150
5178
|
var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
|
|
5151
5179
|
var keyEvents = showAllCards.map(function (card, index, source) {
|
|
5152
|
-
return /*#__PURE__*/
|
|
5180
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
|
|
5153
5181
|
cardLength: source.length,
|
|
5154
5182
|
card: card,
|
|
5155
5183
|
key: card.id,
|
|
@@ -5160,14 +5188,14 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5160
5188
|
showLoadMore: showLoadMore
|
|
5161
5189
|
});
|
|
5162
5190
|
});
|
|
5163
|
-
return /*#__PURE__*/
|
|
5191
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5164
5192
|
style: {
|
|
5165
5193
|
background: theme
|
|
5166
5194
|
},
|
|
5167
5195
|
className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$m)
|
|
5168
|
-
}, /*#__PURE__*/
|
|
5196
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5169
5197
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
5170
|
-
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/
|
|
5198
|
+
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
5171
5199
|
onClick: onClick,
|
|
5172
5200
|
template: "SubsequentLoadCount",
|
|
5173
5201
|
config: config,
|
|
@@ -5175,9 +5203,9 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5175
5203
|
}));
|
|
5176
5204
|
};
|
|
5177
5205
|
KeyEventsBase.propTypes = {
|
|
5178
|
-
story:
|
|
5179
|
-
config:
|
|
5180
|
-
showLoadMore:
|
|
5206
|
+
story: PropTypes__default["default"].object,
|
|
5207
|
+
config: PropTypes__default["default"].object,
|
|
5208
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5181
5209
|
};
|
|
5182
5210
|
var KeyEvents = StateProvider(KeyEventsBase);
|
|
5183
5211
|
|
|
@@ -5218,12 +5246,12 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5218
5246
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5219
5247
|
var mountAt = get_1(config, ["mountAtPrefix"], "");
|
|
5220
5248
|
|
|
5221
|
-
var _useState = useState([]),
|
|
5249
|
+
var _useState = React.useState([]),
|
|
5222
5250
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5223
5251
|
storyList = _useState2[0],
|
|
5224
5252
|
updateStoryList = _useState2[1];
|
|
5225
5253
|
|
|
5226
|
-
var _useState3 = useState([]),
|
|
5254
|
+
var _useState3 = React.useState([]),
|
|
5227
5255
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5228
5256
|
collectionData = _useState4[0],
|
|
5229
5257
|
updateCollectionData = _useState4[1];
|
|
@@ -5257,59 +5285,59 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5257
5285
|
};
|
|
5258
5286
|
}();
|
|
5259
5287
|
|
|
5260
|
-
useEffect(function () {
|
|
5288
|
+
React.useEffect(function () {
|
|
5261
5289
|
if (collectionSlug) {
|
|
5262
5290
|
updateStoryListItems(collectionSlug);
|
|
5263
5291
|
}
|
|
5264
5292
|
}, [collectionSlug]);
|
|
5265
|
-
useEffect(function () {
|
|
5293
|
+
React.useEffect(function () {
|
|
5266
5294
|
if (!collectionSlug && data) {
|
|
5267
5295
|
var storyItems = data.items || data;
|
|
5268
5296
|
updateStoryList(storyItems);
|
|
5269
5297
|
}
|
|
5270
5298
|
}, [data, collectionSlug]);
|
|
5271
|
-
return /*#__PURE__*/
|
|
5299
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
5272
5300
|
customCollectionName: heading,
|
|
5273
5301
|
textColor: true,
|
|
5274
5302
|
collection: collectionData
|
|
5275
|
-
}), /*#__PURE__*/
|
|
5303
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5276
5304
|
className: "aside-collection-m_stories__9wfUs"
|
|
5277
5305
|
}, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
|
|
5278
5306
|
var story = item.story || item;
|
|
5279
|
-
return /*#__PURE__*/
|
|
5307
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5280
5308
|
className: "aside-collection-m_story__17Jdm",
|
|
5281
5309
|
key: story.id
|
|
5282
|
-
}, /*#__PURE__*/
|
|
5310
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
5283
5311
|
story: story,
|
|
5284
5312
|
isHorizontal: true,
|
|
5285
5313
|
theme: theme,
|
|
5286
5314
|
config: config
|
|
5287
|
-
}, /*#__PURE__*/
|
|
5315
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5288
5316
|
className: "aside-collection-m_story-hero-image__13nFY"
|
|
5289
|
-
}, /*#__PURE__*/
|
|
5317
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5290
5318
|
story: story,
|
|
5291
5319
|
aspectRatio: [[4, 3]]
|
|
5292
|
-
})), /*#__PURE__*/
|
|
5320
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
5293
5321
|
story: story
|
|
5294
|
-
}), /*#__PURE__*/
|
|
5322
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
5295
5323
|
story: story
|
|
5296
|
-
}), /*#__PURE__*/
|
|
5324
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5297
5325
|
className: "aside-collection-m_story-byline__37KRG"
|
|
5298
|
-
}, /*#__PURE__*/
|
|
5326
|
+
}, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
5299
5327
|
config: opts,
|
|
5300
5328
|
story: story
|
|
5301
5329
|
})))));
|
|
5302
|
-
}) : /*#__PURE__*/
|
|
5330
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5303
5331
|
"data-test-id": "no-stories",
|
|
5304
5332
|
className: "aside-collection-m_info__3p4zt"
|
|
5305
5333
|
}, "No stories found.")));
|
|
5306
5334
|
};
|
|
5307
5335
|
StoryCollection.propTypes = {
|
|
5308
|
-
data:
|
|
5309
|
-
config:
|
|
5310
|
-
horizontal:
|
|
5311
|
-
slotData:
|
|
5312
|
-
opts:
|
|
5336
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
5337
|
+
config: PropTypes__default["default"].object,
|
|
5338
|
+
horizontal: PropTypes__default["default"].bool,
|
|
5339
|
+
slotData: PropTypes__default["default"].object,
|
|
5340
|
+
opts: PropTypes__default["default"].object
|
|
5313
5341
|
};
|
|
5314
5342
|
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
5315
5343
|
var _ref4$data = _ref4.data,
|
|
@@ -5336,14 +5364,14 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5336
5364
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5337
5365
|
|
|
5338
5366
|
if (horizontal) {
|
|
5339
|
-
return /*#__PURE__*/
|
|
5367
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5340
5368
|
style: {
|
|
5341
5369
|
backgroundColor: theme
|
|
5342
5370
|
},
|
|
5343
5371
|
"data-test-id": "aside-collection",
|
|
5344
5372
|
id: "aside-collection-".concat(storyId),
|
|
5345
5373
|
className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap$l)
|
|
5346
|
-
}, /*#__PURE__*/
|
|
5374
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5347
5375
|
data: data,
|
|
5348
5376
|
horizontal: horizontal,
|
|
5349
5377
|
config: config,
|
|
@@ -5356,23 +5384,23 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5356
5384
|
var asideSlot = function asideSlot(type, slot, index) {
|
|
5357
5385
|
switch (type) {
|
|
5358
5386
|
case "ad":
|
|
5359
|
-
return /*#__PURE__*/
|
|
5387
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5360
5388
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5361
5389
|
}, adComponent(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5362
5390
|
id: "ad-".concat(index, "_").concat(storyId)
|
|
5363
5391
|
})));
|
|
5364
5392
|
|
|
5365
5393
|
case "widget":
|
|
5366
|
-
return /*#__PURE__*/
|
|
5394
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5367
5395
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5368
5396
|
}, widgetComp(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5369
5397
|
id: "widget-".concat(index, "_").concat(storyId)
|
|
5370
5398
|
})));
|
|
5371
5399
|
|
|
5372
5400
|
case "collection":
|
|
5373
|
-
return /*#__PURE__*/
|
|
5401
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5374
5402
|
id: "aside-collection-".concat(index, "_").concat(storyId)
|
|
5375
|
-
}, /*#__PURE__*/
|
|
5403
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5376
5404
|
slotData: slot,
|
|
5377
5405
|
data: data,
|
|
5378
5406
|
horizontal: horizontal,
|
|
@@ -5382,13 +5410,13 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5382
5410
|
}
|
|
5383
5411
|
};
|
|
5384
5412
|
|
|
5385
|
-
return /*#__PURE__*/
|
|
5413
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5386
5414
|
style: {
|
|
5387
5415
|
backgroundColor: theme
|
|
5388
5416
|
},
|
|
5389
5417
|
"data-test-id": "aside-collection",
|
|
5390
5418
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$l)
|
|
5391
|
-
}, enableKeyEvents && /*#__PURE__*/
|
|
5419
|
+
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
5392
5420
|
story: keyEventsData.story,
|
|
5393
5421
|
showLoadMore: keyEventsData.showLoadMore,
|
|
5394
5422
|
config: keyEventsData.config
|
|
@@ -5397,21 +5425,21 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5397
5425
|
}));
|
|
5398
5426
|
};
|
|
5399
5427
|
AsideCollectionBase.propTypes = {
|
|
5400
|
-
data:
|
|
5401
|
-
config:
|
|
5402
|
-
opts:
|
|
5403
|
-
horizontal:
|
|
5404
|
-
slots:
|
|
5405
|
-
adComponent:
|
|
5406
|
-
widgetComp:
|
|
5407
|
-
sticky:
|
|
5408
|
-
keyEventsData:
|
|
5409
|
-
story:
|
|
5410
|
-
config:
|
|
5411
|
-
showLoadMore:
|
|
5428
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
5429
|
+
config: PropTypes__default["default"].object,
|
|
5430
|
+
opts: PropTypes__default["default"].object,
|
|
5431
|
+
horizontal: PropTypes__default["default"].bool,
|
|
5432
|
+
slots: PropTypes__default["default"].array,
|
|
5433
|
+
adComponent: PropTypes__default["default"].func,
|
|
5434
|
+
widgetComp: PropTypes__default["default"].func,
|
|
5435
|
+
sticky: PropTypes__default["default"].bool,
|
|
5436
|
+
keyEventsData: PropTypes__default["default"].shape({
|
|
5437
|
+
story: PropTypes__default["default"].object,
|
|
5438
|
+
config: PropTypes__default["default"].object,
|
|
5439
|
+
showLoadMore: PropTypes__default["default"]["boolean"]
|
|
5412
5440
|
}),
|
|
5413
|
-
enableKeyEvents:
|
|
5414
|
-
storyId:
|
|
5441
|
+
enableKeyEvents: PropTypes__default["default"]["boolean"],
|
|
5442
|
+
storyId: PropTypes__default["default"].string
|
|
5415
5443
|
};
|
|
5416
5444
|
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
5417
5445
|
|
|
@@ -5473,9 +5501,9 @@ var authorImage = function authorImage(author) {
|
|
|
5473
5501
|
return null;
|
|
5474
5502
|
}
|
|
5475
5503
|
|
|
5476
|
-
return /*#__PURE__*/
|
|
5504
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5477
5505
|
"data-test-id": "author-image"
|
|
5478
|
-
}, avatarS3Key ? /*#__PURE__*/
|
|
5506
|
+
}, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5479
5507
|
slug: avatarS3Key,
|
|
5480
5508
|
"aspect-ratio": [1, 1],
|
|
5481
5509
|
defaultWidth: 48,
|
|
@@ -5483,7 +5511,7 @@ var authorImage = function authorImage(author) {
|
|
|
5483
5511
|
auto: ["format", "compress"]
|
|
5484
5512
|
},
|
|
5485
5513
|
alt: authorName
|
|
5486
|
-
}) : /*#__PURE__*/
|
|
5514
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5487
5515
|
src: avatarUrl
|
|
5488
5516
|
}));
|
|
5489
5517
|
};
|
|
@@ -5510,60 +5538,60 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
5510
5538
|
_opts$showName = opts.showName,
|
|
5511
5539
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
5512
5540
|
var textColor = getTextColor(configData.theme);
|
|
5513
|
-
return /*#__PURE__*/
|
|
5541
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5514
5542
|
"data-test-id": "author-card-".concat(kebabCase_1(template)),
|
|
5515
5543
|
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap$k)
|
|
5516
5544
|
}, authors.map(function (author, index) {
|
|
5517
|
-
return /*#__PURE__*/
|
|
5545
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
5518
5546
|
key: author.id
|
|
5519
|
-
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/
|
|
5547
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5520
5548
|
"data-test-id": "author-image",
|
|
5521
5549
|
className: "author-card-m_author-image-wrapper__1at-z"
|
|
5522
|
-
}, /*#__PURE__*/
|
|
5550
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5523
5551
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5524
5552
|
key: "author-image-".concat(index),
|
|
5525
5553
|
"aria-label": "author-image"
|
|
5526
|
-
}, /*#__PURE__*/
|
|
5554
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5527
5555
|
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$k)
|
|
5528
5556
|
}, authorImage(author)))));
|
|
5529
|
-
}), showName && /*#__PURE__*/
|
|
5557
|
+
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5530
5558
|
"data-test-id": "author-name",
|
|
5531
5559
|
className: "author-card-m_author-name-share__3vb9q"
|
|
5532
5560
|
}, authors.map(function (author, index) {
|
|
5533
5561
|
var spaceHolder = ",\xA0";
|
|
5534
|
-
return /*#__PURE__*/
|
|
5562
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, index !== 0 && (authors.length > 1 ? spaceHolder : ""), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5535
5563
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5536
5564
|
"aria-label": "author-name"
|
|
5537
|
-
}, /*#__PURE__*/
|
|
5565
|
+
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
5538
5566
|
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap$k)
|
|
5539
5567
|
}, author.name)));
|
|
5540
|
-
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/
|
|
5568
|
+
}), 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", {
|
|
5541
5569
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
5542
|
-
}, /*#__PURE__*/
|
|
5570
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
5543
5571
|
color: textColor
|
|
5544
|
-
})), /*#__PURE__*/
|
|
5572
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5545
5573
|
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
5546
5574
|
target: "_blank",
|
|
5547
5575
|
rel: "noopener noreferrer"
|
|
5548
|
-
}, /*#__PURE__*/
|
|
5576
|
+
}, /*#__PURE__*/React__default["default"].createElement(Twitter, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5549
5577
|
"data-test-id": "author-info",
|
|
5550
5578
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
5551
|
-
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/
|
|
5579
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5552
5580
|
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap$k)
|
|
5553
5581
|
}, authors[0].bio)));
|
|
5554
5582
|
};
|
|
5555
5583
|
AuthorCard.propTypes = {
|
|
5556
|
-
story:
|
|
5557
|
-
authors:
|
|
5584
|
+
story: PropTypes__default["default"].shape({
|
|
5585
|
+
authors: PropTypes__default["default"].array
|
|
5558
5586
|
}),
|
|
5559
|
-
template:
|
|
5560
|
-
opts:
|
|
5561
|
-
showImage:
|
|
5562
|
-
showBio:
|
|
5563
|
-
showName:
|
|
5587
|
+
template: PropTypes__default["default"].string,
|
|
5588
|
+
opts: PropTypes__default["default"].shape({
|
|
5589
|
+
showImage: PropTypes__default["default"].bool,
|
|
5590
|
+
showBio: PropTypes__default["default"].bool,
|
|
5591
|
+
showName: PropTypes__default["default"].bool
|
|
5564
5592
|
}),
|
|
5565
|
-
mountAt:
|
|
5566
|
-
clazzName:
|
|
5593
|
+
mountAt: PropTypes__default["default"].string,
|
|
5594
|
+
clazzName: PropTypes__default["default"].string
|
|
5567
5595
|
};
|
|
5568
5596
|
|
|
5569
5597
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -5609,13 +5637,13 @@ var withElementWrapper = function withElementWrapper(StoryElement) {
|
|
|
5609
5637
|
|
|
5610
5638
|
if (!element) return null;
|
|
5611
5639
|
if (render && typeof render === "function") return render(props);
|
|
5612
|
-
return /*#__PURE__*/
|
|
5640
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
|
|
5613
5641
|
element: element
|
|
5614
5642
|
}));
|
|
5615
5643
|
};
|
|
5616
5644
|
};
|
|
5617
5645
|
withElementWrapper.propTypes = {
|
|
5618
|
-
StoryElement:
|
|
5646
|
+
StoryElement: PropTypes__default["default"].element
|
|
5619
5647
|
};
|
|
5620
5648
|
|
|
5621
5649
|
var _excluded$d = ["element", "opts", "css", "story", "config"];
|
|
@@ -5651,7 +5679,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
5651
5679
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
5652
5680
|
var isPromotionalMessage = get_1(element, ["metadata", "promotional-message"], false);
|
|
5653
5681
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
5654
|
-
return /*#__PURE__*/
|
|
5682
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5655
5683
|
style: !isPromotionalMessage ? {
|
|
5656
5684
|
color: textColor
|
|
5657
5685
|
} : {},
|
|
@@ -5666,15 +5694,15 @@ var TextBase = function TextBase(_ref) {
|
|
|
5666
5694
|
};
|
|
5667
5695
|
|
|
5668
5696
|
TextBase.propTypes = {
|
|
5669
|
-
element:
|
|
5670
|
-
text:
|
|
5697
|
+
element: PropTypes__default["default"].shape({
|
|
5698
|
+
text: PropTypes__default["default"].string
|
|
5671
5699
|
}),
|
|
5672
|
-
opts:
|
|
5673
|
-
isExternalLink:
|
|
5700
|
+
opts: PropTypes__default["default"].shape({
|
|
5701
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5674
5702
|
}),
|
|
5675
|
-
css:
|
|
5676
|
-
hyperlinkColor:
|
|
5677
|
-
textColor:
|
|
5703
|
+
css: PropTypes__default["default"].shape({
|
|
5704
|
+
hyperlinkColor: PropTypes__default["default"].string,
|
|
5705
|
+
textColor: PropTypes__default["default"].string
|
|
5678
5706
|
}),
|
|
5679
5707
|
story: shapeStory,
|
|
5680
5708
|
config: shapeConfig
|
|
@@ -5715,13 +5743,13 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5715
5743
|
borderLeft: "solid 2px ".concat(borderColor)
|
|
5716
5744
|
};
|
|
5717
5745
|
|
|
5718
|
-
var _useState = useState(initBorderDirection),
|
|
5746
|
+
var _useState = React.useState(initBorderDirection),
|
|
5719
5747
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5720
5748
|
borderDirection = _useState2[0],
|
|
5721
5749
|
setBorderDirection = _useState2[1];
|
|
5722
5750
|
|
|
5723
5751
|
if (!content) return null;
|
|
5724
|
-
useEffect(function () {
|
|
5752
|
+
React.useEffect(function () {
|
|
5725
5753
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5726
5754
|
|
|
5727
5755
|
if (htmlElement && htmlElement.length) {
|
|
@@ -5738,7 +5766,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5738
5766
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
5739
5767
|
var configData = useStateValue() || {};
|
|
5740
5768
|
var textInvertColor = getTextColor(configData.theme);
|
|
5741
|
-
return /*#__PURE__*/
|
|
5769
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5742
5770
|
"data-test-id": "blurb",
|
|
5743
5771
|
style: borderColor && borderDirection,
|
|
5744
5772
|
dangerouslySetInnerHTML: {
|
|
@@ -5750,19 +5778,19 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5750
5778
|
};
|
|
5751
5779
|
|
|
5752
5780
|
BlurbBase.propTypes = {
|
|
5753
|
-
element:
|
|
5754
|
-
text:
|
|
5781
|
+
element: PropTypes__default["default"].shape({
|
|
5782
|
+
text: PropTypes__default["default"].string
|
|
5755
5783
|
}),
|
|
5756
5784
|
|
|
5757
5785
|
/** templates can be either default or withBorder */
|
|
5758
|
-
template:
|
|
5759
|
-
opts:
|
|
5760
|
-
isExternalLink:
|
|
5786
|
+
template: PropTypes__default["default"].string,
|
|
5787
|
+
opts: PropTypes__default["default"].shape({
|
|
5788
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5761
5789
|
}),
|
|
5762
5790
|
story: shapeStory,
|
|
5763
5791
|
config: shapeConfig,
|
|
5764
|
-
render:
|
|
5765
|
-
css:
|
|
5792
|
+
render: PropTypes__default["default"].func,
|
|
5793
|
+
css: PropTypes__default["default"].object
|
|
5766
5794
|
};
|
|
5767
5795
|
var Blurb = withElementWrapper(BlurbBase);
|
|
5768
5796
|
|
|
@@ -5815,19 +5843,19 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
5815
5843
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
5816
5844
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
5817
5845
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
5818
|
-
return /*#__PURE__*/
|
|
5846
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5819
5847
|
"data-test-id": "summary"
|
|
5820
5848
|
}, restProps, {
|
|
5821
5849
|
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName(templateStyle, _styleModuleImportMap$h) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5822
|
-
}), !hideHeadline && /*#__PURE__*/
|
|
5850
|
+
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5823
5851
|
"data-test-id": "summary-headline",
|
|
5824
5852
|
className: _getClassName("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$h)
|
|
5825
|
-
}, /*#__PURE__*/
|
|
5853
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5826
5854
|
style: {
|
|
5827
5855
|
backgroundColor: updateHeaderColor
|
|
5828
5856
|
},
|
|
5829
5857
|
className: _getClassName("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$h)
|
|
5830
|
-
}, headline)), /*#__PURE__*/
|
|
5858
|
+
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5831
5859
|
dangerouslySetInnerHTML: {
|
|
5832
5860
|
__html: text
|
|
5833
5861
|
},
|
|
@@ -5836,20 +5864,20 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
5836
5864
|
};
|
|
5837
5865
|
|
|
5838
5866
|
SummaryBase.propTypes = {
|
|
5839
|
-
element:
|
|
5840
|
-
text:
|
|
5867
|
+
element: PropTypes__default["default"].shape({
|
|
5868
|
+
text: PropTypes__default["default"].string
|
|
5841
5869
|
}),
|
|
5842
|
-
template:
|
|
5843
|
-
opts:
|
|
5844
|
-
isExternalLink:
|
|
5845
|
-
headline:
|
|
5846
|
-
hideHeadline:
|
|
5870
|
+
template: PropTypes__default["default"].string,
|
|
5871
|
+
opts: PropTypes__default["default"].shape({
|
|
5872
|
+
isExternalLink: PropTypes__default["default"].bool,
|
|
5873
|
+
headline: PropTypes__default["default"].string,
|
|
5874
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
5847
5875
|
}),
|
|
5848
5876
|
story: shapeStory,
|
|
5849
5877
|
config: shapeConfig,
|
|
5850
|
-
render:
|
|
5851
|
-
css:
|
|
5852
|
-
headerBgColor:
|
|
5878
|
+
render: PropTypes__default["default"].func,
|
|
5879
|
+
css: PropTypes__default["default"].shape({
|
|
5880
|
+
headerBgColor: PropTypes__default["default"].string
|
|
5853
5881
|
})
|
|
5854
5882
|
};
|
|
5855
5883
|
var Summary = withElementWrapper(SummaryBase);
|
|
@@ -5861,27 +5889,27 @@ var CurveIcon = function CurveIcon(_ref) {
|
|
|
5861
5889
|
opacity = _ref.opacity;
|
|
5862
5890
|
var lightColor = color === "light" && "#ffffff";
|
|
5863
5891
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
5864
|
-
return /*#__PURE__*/
|
|
5892
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5865
5893
|
className: "icon-m_curve-wrapper__3-sLV",
|
|
5866
5894
|
style: {
|
|
5867
5895
|
fill: "".concat(lightColor || darkColor || color)
|
|
5868
5896
|
}
|
|
5869
|
-
}, /*#__PURE__*/
|
|
5897
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
5870
5898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5871
5899
|
width: width,
|
|
5872
5900
|
height: height,
|
|
5873
5901
|
viewBox: "0 0 64 64"
|
|
5874
|
-
}, /*#__PURE__*/
|
|
5902
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
5875
5903
|
fill: "inherit",
|
|
5876
5904
|
opacity: opacity,
|
|
5877
5905
|
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"
|
|
5878
5906
|
})));
|
|
5879
5907
|
};
|
|
5880
5908
|
CurveIcon.propTypes = {
|
|
5881
|
-
width:
|
|
5882
|
-
height:
|
|
5883
|
-
color:
|
|
5884
|
-
opacity:
|
|
5909
|
+
width: PropTypes__default["default"].string,
|
|
5910
|
+
height: PropTypes__default["default"].string,
|
|
5911
|
+
color: PropTypes__default["default"].string,
|
|
5912
|
+
opacity: PropTypes__default["default"].string
|
|
5885
5913
|
};
|
|
5886
5914
|
|
|
5887
5915
|
var EdgeIcon = function EdgeIcon(_ref) {
|
|
@@ -5891,27 +5919,27 @@ var EdgeIcon = function EdgeIcon(_ref) {
|
|
|
5891
5919
|
opacity = _ref.opacity;
|
|
5892
5920
|
var lightColor = color === "light" && "#ffffff";
|
|
5893
5921
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
5894
|
-
return /*#__PURE__*/
|
|
5922
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5895
5923
|
className: "icon-m_edge-wrapper__xUOdp",
|
|
5896
5924
|
style: {
|
|
5897
5925
|
fill: "".concat(lightColor || darkColor || color)
|
|
5898
5926
|
}
|
|
5899
|
-
}, /*#__PURE__*/
|
|
5927
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
5900
5928
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5901
5929
|
width: width,
|
|
5902
5930
|
height: height,
|
|
5903
5931
|
viewBox: "0 0 64 64"
|
|
5904
|
-
}, /*#__PURE__*/
|
|
5932
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
5905
5933
|
fill: "inherit",
|
|
5906
5934
|
opacity: opacity,
|
|
5907
5935
|
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"
|
|
5908
5936
|
})));
|
|
5909
5937
|
};
|
|
5910
5938
|
EdgeIcon.propTypes = {
|
|
5911
|
-
width:
|
|
5912
|
-
height:
|
|
5913
|
-
color:
|
|
5914
|
-
opacity:
|
|
5939
|
+
width: PropTypes__default["default"].string,
|
|
5940
|
+
height: PropTypes__default["default"].string,
|
|
5941
|
+
color: PropTypes__default["default"].string,
|
|
5942
|
+
opacity: PropTypes__default["default"].string
|
|
5915
5943
|
};
|
|
5916
5944
|
|
|
5917
5945
|
var _excluded$a = ["element", "template", "css", "story", "config", "render"];
|
|
@@ -5941,7 +5969,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
5941
5969
|
|
|
5942
5970
|
if (template === "withBackground") {
|
|
5943
5971
|
if (iconType === "edgeIcon") {
|
|
5944
|
-
return /*#__PURE__*/
|
|
5972
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
5945
5973
|
width: dimension,
|
|
5946
5974
|
height: dimension,
|
|
5947
5975
|
color: quoteColor,
|
|
@@ -5949,7 +5977,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
5949
5977
|
});
|
|
5950
5978
|
}
|
|
5951
5979
|
|
|
5952
|
-
return /*#__PURE__*/
|
|
5980
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
5953
5981
|
width: dimension,
|
|
5954
5982
|
height: dimension,
|
|
5955
5983
|
color: quoteColor,
|
|
@@ -5959,14 +5987,14 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
5959
5987
|
|
|
5960
5988
|
if (template !== "withBackground") {
|
|
5961
5989
|
if (iconType === "edgeIcon") {
|
|
5962
|
-
return /*#__PURE__*/
|
|
5990
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
5963
5991
|
width: dimension,
|
|
5964
5992
|
height: dimension,
|
|
5965
5993
|
color: blockQuoteColor
|
|
5966
5994
|
});
|
|
5967
5995
|
}
|
|
5968
5996
|
|
|
5969
|
-
return /*#__PURE__*/
|
|
5997
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
5970
5998
|
width: dimension,
|
|
5971
5999
|
height: dimension,
|
|
5972
6000
|
color: blockQuoteColor
|
|
@@ -6002,38 +6030,38 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6002
6030
|
var textInvertColor = getTextColor(isBackground ? theme.backgroundColor : configData.theme);
|
|
6003
6031
|
|
|
6004
6032
|
var updateStructure = function updateStructure() {
|
|
6005
|
-
return template === "withBorder" ? /*#__PURE__*/
|
|
6033
|
+
return template === "withBorder" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6006
6034
|
className: "block-quote-m_icon-border__2xQQY"
|
|
6007
|
-
}, /*#__PURE__*/
|
|
6035
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6008
6036
|
className: "block-quote-m_icon__m-EIZ"
|
|
6009
|
-
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/
|
|
6037
|
+
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6010
6038
|
className: "block-quote-m_border__1ZTPR",
|
|
6011
6039
|
style: blockQuoteColor && {
|
|
6012
6040
|
backgroundColor: blockQuoteColor
|
|
6013
6041
|
}
|
|
6014
|
-
})) : /*#__PURE__*/
|
|
6042
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6015
6043
|
className: "block-quote-m_icon__m-EIZ"
|
|
6016
6044
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
6017
6045
|
};
|
|
6018
6046
|
|
|
6019
|
-
return /*#__PURE__*/
|
|
6047
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6020
6048
|
"data-test-id": "blockquote",
|
|
6021
6049
|
style: theme
|
|
6022
6050
|
}, restProps, {
|
|
6023
6051
|
className: "arrow-component arr--block-quote " + _getClassName("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$g) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6024
|
-
}), /*#__PURE__*/
|
|
6052
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6025
6053
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
6026
|
-
}, updateStructure(), /*#__PURE__*/
|
|
6054
|
+
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6027
6055
|
className: "block-quote-m_wrapper__2KEhw",
|
|
6028
6056
|
style: blockQuoteColor && {
|
|
6029
6057
|
borderColor: blockQuoteColor
|
|
6030
6058
|
}
|
|
6031
|
-
}, /*#__PURE__*/
|
|
6059
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6032
6060
|
dangerouslySetInnerHTML: {
|
|
6033
6061
|
__html: content
|
|
6034
6062
|
},
|
|
6035
6063
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$g)
|
|
6036
|
-
}), /*#__PURE__*/
|
|
6064
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6037
6065
|
dangerouslySetInnerHTML: {
|
|
6038
6066
|
__html: attribution
|
|
6039
6067
|
},
|
|
@@ -6041,17 +6069,17 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6041
6069
|
}))));
|
|
6042
6070
|
};
|
|
6043
6071
|
BlockQuoteBase.propTypes = {
|
|
6044
|
-
element:
|
|
6045
|
-
metadata:
|
|
6046
|
-
content:
|
|
6047
|
-
attribution:
|
|
6072
|
+
element: PropTypes__default["default"].shape({
|
|
6073
|
+
metadata: PropTypes__default["default"].shape({
|
|
6074
|
+
content: PropTypes__default["default"].string,
|
|
6075
|
+
attribution: PropTypes__default["default"].string
|
|
6048
6076
|
})
|
|
6049
6077
|
}),
|
|
6050
|
-
template:
|
|
6078
|
+
template: PropTypes__default["default"].string,
|
|
6051
6079
|
story: shapeStory,
|
|
6052
6080
|
config: shapeConfig,
|
|
6053
|
-
render:
|
|
6054
|
-
css:
|
|
6081
|
+
render: PropTypes__default["default"].func,
|
|
6082
|
+
css: PropTypes__default["default"].object
|
|
6055
6083
|
};
|
|
6056
6084
|
var BlockQuote = withElementWrapper(BlockQuoteBase);
|
|
6057
6085
|
|
|
@@ -6079,27 +6107,27 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
6079
6107
|
var _element$metadata = element.metadata,
|
|
6080
6108
|
content = _element$metadata.content,
|
|
6081
6109
|
attribution = _element$metadata.attribution;
|
|
6082
|
-
return /*#__PURE__*/
|
|
6110
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6083
6111
|
"data-test-id": "bigfact"
|
|
6084
6112
|
}, restProps, {
|
|
6085
6113
|
className: "arrow-component arr--bigfact-element " + _getClassName("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$f) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6086
|
-
}), /*#__PURE__*/
|
|
6114
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6087
6115
|
className: "big-fact-m_content__1u2Ul"
|
|
6088
|
-
}, content), /*#__PURE__*/
|
|
6116
|
+
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6089
6117
|
"data-test-id": "attribution",
|
|
6090
6118
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$f)
|
|
6091
6119
|
}, attribution));
|
|
6092
6120
|
};
|
|
6093
6121
|
|
|
6094
6122
|
BigFactBase.propTypes = {
|
|
6095
|
-
element:
|
|
6096
|
-
metadata:
|
|
6097
|
-
content:
|
|
6098
|
-
attribution:
|
|
6123
|
+
element: PropTypes__default["default"].shape({
|
|
6124
|
+
metadata: PropTypes__default["default"].shape({
|
|
6125
|
+
content: PropTypes__default["default"].string,
|
|
6126
|
+
attribution: PropTypes__default["default"].string
|
|
6099
6127
|
})
|
|
6100
6128
|
}),
|
|
6101
|
-
story:
|
|
6102
|
-
config:
|
|
6129
|
+
story: PropTypes__default["default"].object,
|
|
6130
|
+
config: PropTypes__default["default"].object
|
|
6103
6131
|
};
|
|
6104
6132
|
var BigFact = withElementWrapper(BigFactBase);
|
|
6105
6133
|
|
|
@@ -6133,11 +6161,11 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6133
6161
|
var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
|
|
6134
6162
|
var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
|
|
6135
6163
|
var alternateText = story["hero-image-caption"] || story["headline"];
|
|
6136
|
-
return /*#__PURE__*/
|
|
6164
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6137
6165
|
className: "also-read-m_card-image-wrapper__3GFzu"
|
|
6138
|
-
}, !isEmpty(linkedImage) ? /*#__PURE__*/
|
|
6166
|
+
}, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6139
6167
|
className: "also-read-m_card-image__3CwAv"
|
|
6140
|
-
}, /*#__PURE__*/
|
|
6168
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6141
6169
|
slug: linkedImage,
|
|
6142
6170
|
"aspect-ratio": imageAspectRatio,
|
|
6143
6171
|
defaultWidth: 480,
|
|
@@ -6146,19 +6174,19 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6146
6174
|
auto: ["format", "compress"]
|
|
6147
6175
|
},
|
|
6148
6176
|
alt: alternateText
|
|
6149
|
-
}))) : /*#__PURE__*/
|
|
6177
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6150
6178
|
className: "arr--fallback-also-read also-read-m_image__2jdRP"
|
|
6151
|
-
}, /*#__PURE__*/
|
|
6179
|
+
}, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
|
|
6152
6180
|
};
|
|
6153
6181
|
|
|
6154
6182
|
DisplayImage.propTypes = {
|
|
6155
|
-
story:
|
|
6156
|
-
"hero-image-caption":
|
|
6157
|
-
headline:
|
|
6183
|
+
story: PropTypes__default["default"].shape({
|
|
6184
|
+
"hero-image-caption": PropTypes__default["default"].string,
|
|
6185
|
+
headline: PropTypes__default["default"].string
|
|
6158
6186
|
}),
|
|
6159
|
-
linkedImage:
|
|
6160
|
-
template:
|
|
6161
|
-
isRightAlign:
|
|
6187
|
+
linkedImage: PropTypes__default["default"].string,
|
|
6188
|
+
template: PropTypes__default["default"].string,
|
|
6189
|
+
isRightAlign: PropTypes__default["default"].bool
|
|
6162
6190
|
};
|
|
6163
6191
|
|
|
6164
6192
|
var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
@@ -6191,22 +6219,22 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6191
6219
|
var isDefault = template === "" || template === "default";
|
|
6192
6220
|
var isRightAlign = template === "imageRightAlign";
|
|
6193
6221
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
6194
|
-
return /*#__PURE__*/
|
|
6222
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
|
|
6195
6223
|
"data-test-id": "also-read",
|
|
6196
6224
|
href: storyUrl,
|
|
6197
6225
|
"aria-label": "also-read"
|
|
6198
6226
|
}, restProps, {
|
|
6199
6227
|
className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap$e) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6200
|
-
}), !isDefault && /*#__PURE__*/
|
|
6228
|
+
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6201
6229
|
className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap$e)
|
|
6202
|
-
}, displayTitle), isDefault && /*#__PURE__*/
|
|
6230
|
+
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6203
6231
|
story: story,
|
|
6204
6232
|
linkedImage: linkedImage,
|
|
6205
6233
|
template: template,
|
|
6206
6234
|
isRightAlign: isRightAlign
|
|
6207
|
-
}), /*#__PURE__*/
|
|
6235
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6208
6236
|
className: "also-read-m_content-wrapper__26AZX"
|
|
6209
|
-
}, /*#__PURE__*/
|
|
6237
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6210
6238
|
className: "also-read-m_headline__VzF-c",
|
|
6211
6239
|
style: textColor ? {
|
|
6212
6240
|
color: textColor
|
|
@@ -6216,7 +6244,7 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6216
6244
|
dangerouslySetInnerHTML: {
|
|
6217
6245
|
__html: content
|
|
6218
6246
|
}
|
|
6219
|
-
}), isRightAlign && /*#__PURE__*/
|
|
6247
|
+
}), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6220
6248
|
story: story,
|
|
6221
6249
|
linkedImage: linkedImage,
|
|
6222
6250
|
template: template
|
|
@@ -6225,25 +6253,25 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6225
6253
|
|
|
6226
6254
|
AlsoReadBase.propTypes = {
|
|
6227
6255
|
/** template can be default, textLeftAlign or imageRightAlign */
|
|
6228
|
-
template:
|
|
6229
|
-
story:
|
|
6230
|
-
"linked-stories":
|
|
6256
|
+
template: PropTypes__default["default"].string,
|
|
6257
|
+
story: PropTypes__default["default"].shape({
|
|
6258
|
+
"linked-stories": PropTypes__default["default"].object
|
|
6231
6259
|
}),
|
|
6232
|
-
element:
|
|
6233
|
-
text:
|
|
6234
|
-
metadata:
|
|
6235
|
-
linkedStoryId:
|
|
6236
|
-
url:
|
|
6237
|
-
"hero-image-s3-key":
|
|
6260
|
+
element: PropTypes__default["default"].shape({
|
|
6261
|
+
text: PropTypes__default["default"].string,
|
|
6262
|
+
metadata: PropTypes__default["default"].shape({
|
|
6263
|
+
linkedStoryId: PropTypes__default["default"].shape({
|
|
6264
|
+
url: PropTypes__default["default"].string,
|
|
6265
|
+
"hero-image-s3-key": PropTypes__default["default"].string
|
|
6238
6266
|
})
|
|
6239
6267
|
})
|
|
6240
6268
|
}),
|
|
6241
|
-
opts:
|
|
6242
|
-
title:
|
|
6269
|
+
opts: PropTypes__default["default"].shape({
|
|
6270
|
+
title: PropTypes__default["default"].string
|
|
6243
6271
|
}),
|
|
6244
6272
|
config: shapeConfig,
|
|
6245
|
-
render:
|
|
6246
|
-
css:
|
|
6273
|
+
render: PropTypes__default["default"].func,
|
|
6274
|
+
css: PropTypes__default["default"].object
|
|
6247
6275
|
};
|
|
6248
6276
|
var AlsoRead = withElementWrapper(AlsoReadBase);
|
|
6249
6277
|
|
|
@@ -6251,20 +6279,20 @@ var Loading = function Loading(_ref) {
|
|
|
6251
6279
|
_ref.width;
|
|
6252
6280
|
_ref.height;
|
|
6253
6281
|
_ref.iconColor;
|
|
6254
|
-
return /*#__PURE__*/
|
|
6282
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6255
6283
|
className: "loading-m_loading-indicator__2Dlst"
|
|
6256
|
-
}, /*#__PURE__*/
|
|
6284
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6257
6285
|
width: "40",
|
|
6258
6286
|
height: "40",
|
|
6259
6287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6260
6288
|
viewBox: "0 0 100 100",
|
|
6261
6289
|
preserveAspectRatio: "xMidYMid"
|
|
6262
|
-
}, /*#__PURE__*/
|
|
6290
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6263
6291
|
cx: "84",
|
|
6264
6292
|
cy: "50",
|
|
6265
6293
|
r: "0",
|
|
6266
6294
|
fill: "currentColor"
|
|
6267
|
-
}, /*#__PURE__*/
|
|
6295
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6268
6296
|
attributeName: "r",
|
|
6269
6297
|
values: "10;0;0;0;0",
|
|
6270
6298
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6273,7 +6301,7 @@ var Loading = function Loading(_ref) {
|
|
|
6273
6301
|
dur: "2s",
|
|
6274
6302
|
repeatCount: "indefinite",
|
|
6275
6303
|
begin: "0s"
|
|
6276
|
-
}), /*#__PURE__*/
|
|
6304
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6277
6305
|
attributeName: "cx",
|
|
6278
6306
|
values: "84;84;84;84;84",
|
|
6279
6307
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6282,12 +6310,12 @@ var Loading = function Loading(_ref) {
|
|
|
6282
6310
|
dur: "2s",
|
|
6283
6311
|
repeatCount: "indefinite",
|
|
6284
6312
|
begin: "0s"
|
|
6285
|
-
})), /*#__PURE__*/
|
|
6313
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6286
6314
|
cx: "84",
|
|
6287
6315
|
cy: "50",
|
|
6288
6316
|
r: ".709",
|
|
6289
6317
|
fill: "currentColor"
|
|
6290
|
-
}, /*#__PURE__*/
|
|
6318
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6291
6319
|
attributeName: "r",
|
|
6292
6320
|
values: "0;10;10;10;0",
|
|
6293
6321
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6296,7 +6324,7 @@ var Loading = function Loading(_ref) {
|
|
|
6296
6324
|
dur: "2s",
|
|
6297
6325
|
repeatCount: "indefinite",
|
|
6298
6326
|
begin: "-1s"
|
|
6299
|
-
}), /*#__PURE__*/
|
|
6327
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6300
6328
|
attributeName: "cx",
|
|
6301
6329
|
values: "16;16;50;84;84",
|
|
6302
6330
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6305,12 +6333,12 @@ var Loading = function Loading(_ref) {
|
|
|
6305
6333
|
dur: "2s",
|
|
6306
6334
|
repeatCount: "indefinite",
|
|
6307
6335
|
begin: "-1s"
|
|
6308
|
-
})), /*#__PURE__*/
|
|
6336
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6309
6337
|
cx: "81.59",
|
|
6310
6338
|
cy: "50",
|
|
6311
6339
|
r: "10",
|
|
6312
6340
|
fill: "currentColor"
|
|
6313
|
-
}, /*#__PURE__*/
|
|
6341
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6314
6342
|
attributeName: "r",
|
|
6315
6343
|
values: "0;10;10;10;0",
|
|
6316
6344
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6319,7 +6347,7 @@ var Loading = function Loading(_ref) {
|
|
|
6319
6347
|
dur: "2s",
|
|
6320
6348
|
repeatCount: "indefinite",
|
|
6321
6349
|
begin: "-0.5s"
|
|
6322
|
-
}), /*#__PURE__*/
|
|
6350
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6323
6351
|
attributeName: "cx",
|
|
6324
6352
|
values: "16;16;50;84;84",
|
|
6325
6353
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6328,12 +6356,12 @@ var Loading = function Loading(_ref) {
|
|
|
6328
6356
|
dur: "2s",
|
|
6329
6357
|
repeatCount: "indefinite",
|
|
6330
6358
|
begin: "-0.5s"
|
|
6331
|
-
})), /*#__PURE__*/
|
|
6359
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6332
6360
|
cx: "47.59",
|
|
6333
6361
|
cy: "50",
|
|
6334
6362
|
r: "10",
|
|
6335
6363
|
fill: "currentColor"
|
|
6336
|
-
}, /*#__PURE__*/
|
|
6364
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6337
6365
|
attributeName: "r",
|
|
6338
6366
|
values: "0;10;10;10;0",
|
|
6339
6367
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6342,7 +6370,7 @@ var Loading = function Loading(_ref) {
|
|
|
6342
6370
|
dur: "2s",
|
|
6343
6371
|
repeatCount: "indefinite",
|
|
6344
6372
|
begin: "0s"
|
|
6345
|
-
}), /*#__PURE__*/
|
|
6373
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6346
6374
|
attributeName: "cx",
|
|
6347
6375
|
values: "16;16;50;84;84",
|
|
6348
6376
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6351,12 +6379,12 @@ var Loading = function Loading(_ref) {
|
|
|
6351
6379
|
dur: "2s",
|
|
6352
6380
|
repeatCount: "indefinite",
|
|
6353
6381
|
begin: "0s"
|
|
6354
|
-
})), /*#__PURE__*/
|
|
6382
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6355
6383
|
cx: "16",
|
|
6356
6384
|
cy: "50",
|
|
6357
6385
|
r: "9.291",
|
|
6358
6386
|
fill: "currentColor"
|
|
6359
|
-
}, /*#__PURE__*/
|
|
6387
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6360
6388
|
attributeName: "r",
|
|
6361
6389
|
values: "0;0;10;10;10",
|
|
6362
6390
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6365,7 +6393,7 @@ var Loading = function Loading(_ref) {
|
|
|
6365
6393
|
dur: "2s",
|
|
6366
6394
|
repeatCount: "indefinite",
|
|
6367
6395
|
begin: "0s"
|
|
6368
|
-
}), /*#__PURE__*/
|
|
6396
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6369
6397
|
attributeName: "cx",
|
|
6370
6398
|
values: "16;16;16;50;84",
|
|
6371
6399
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6377,16 +6405,16 @@ var Loading = function Loading(_ref) {
|
|
|
6377
6405
|
}))));
|
|
6378
6406
|
};
|
|
6379
6407
|
Loading.propTypes = {
|
|
6380
|
-
width:
|
|
6381
|
-
height:
|
|
6382
|
-
iconColor:
|
|
6408
|
+
width: PropTypes__default["default"].object,
|
|
6409
|
+
height: PropTypes__default["default"].object,
|
|
6410
|
+
iconColor: PropTypes__default["default"].object
|
|
6383
6411
|
};
|
|
6384
6412
|
|
|
6385
6413
|
function ownKeys$1(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; }
|
|
6386
6414
|
|
|
6387
6415
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6388
|
-
var Lightbox = /*#__PURE__*/lazy(function () {
|
|
6389
|
-
return
|
|
6416
|
+
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
6417
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
6390
6418
|
});
|
|
6391
6419
|
var FullScreenImages = function FullScreenImages(_ref) {
|
|
6392
6420
|
var _ref$imageSlug = _ref.imageSlug,
|
|
@@ -6395,16 +6423,16 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6395
6423
|
_ref$element = _ref.element,
|
|
6396
6424
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
6397
6425
|
props = _ref.props;
|
|
6398
|
-
var cdnImage = useSelector(function (state) {
|
|
6426
|
+
var cdnImage = reactRedux.useSelector(function (state) {
|
|
6399
6427
|
return get_1(state, ["qt", "config", "cdn-image"]);
|
|
6400
6428
|
});
|
|
6401
6429
|
|
|
6402
|
-
var _useState = useState(0),
|
|
6430
|
+
var _useState = React.useState(0),
|
|
6403
6431
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6404
6432
|
photoIndex = _useState2[0],
|
|
6405
6433
|
handleImage = _useState2[1];
|
|
6406
6434
|
|
|
6407
|
-
var _useState3 = useState(false),
|
|
6435
|
+
var _useState3 = React.useState(false),
|
|
6408
6436
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
6409
6437
|
isOpen = _useState4[0],
|
|
6410
6438
|
handleOpen = _useState4[1];
|
|
@@ -6446,7 +6474,7 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6446
6474
|
|
|
6447
6475
|
var getHyperLink = function getHyperLink() {
|
|
6448
6476
|
if (element.hyperlink || hyperlinks[photoIndex]) {
|
|
6449
|
-
return /*#__PURE__*/
|
|
6477
|
+
return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6450
6478
|
hyperLink: element.hyperlink || hyperlinks[photoIndex]
|
|
6451
6479
|
});
|
|
6452
6480
|
}
|
|
@@ -6471,23 +6499,23 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6471
6499
|
};
|
|
6472
6500
|
|
|
6473
6501
|
var LoadingScreen = function LoadingScreen() {
|
|
6474
|
-
return /*#__PURE__*/
|
|
6502
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
6475
6503
|
};
|
|
6476
6504
|
|
|
6477
|
-
return /*#__PURE__*/
|
|
6478
|
-
fallback: /*#__PURE__*/
|
|
6479
|
-
}, /*#__PURE__*/
|
|
6505
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread$1(_defineProperty({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
6506
|
+
fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
|
|
6507
|
+
}, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends({
|
|
6480
6508
|
wrapperClassName: "arr--image-lightbox",
|
|
6481
6509
|
onCloseRequest: onClose
|
|
6482
6510
|
}, lightboxProps))) : null);
|
|
6483
6511
|
};
|
|
6484
6512
|
FullScreenImages.propTypes = {
|
|
6485
|
-
imageSlug:
|
|
6486
|
-
template:
|
|
6487
|
-
element:
|
|
6488
|
-
"story-elements":
|
|
6513
|
+
imageSlug: PropTypes__default["default"].string,
|
|
6514
|
+
template: PropTypes__default["default"].func,
|
|
6515
|
+
element: PropTypes__default["default"].shape({
|
|
6516
|
+
"story-elements": PropTypes__default["default"].array
|
|
6489
6517
|
}),
|
|
6490
|
-
props:
|
|
6518
|
+
props: PropTypes__default["default"].object
|
|
6491
6519
|
};
|
|
6492
6520
|
|
|
6493
6521
|
var _styleModuleImportMap$d = {
|
|
@@ -6524,14 +6552,14 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
6524
6552
|
var caption = heroImageCaption || title;
|
|
6525
6553
|
var attribution = heroImageAttribution || imageAttribution;
|
|
6526
6554
|
var updateStyle = caption ? "wrapper" : "";
|
|
6527
|
-
return /*#__PURE__*/
|
|
6555
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6528
6556
|
"data-test-id": "caption",
|
|
6529
6557
|
className: "arr--caption-attribution " + _getClassName("caption ".concat(textColor), _styleModuleImportMap$d)
|
|
6530
|
-
}, /*#__PURE__*/
|
|
6558
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6531
6559
|
dangerouslySetInnerHTML: {
|
|
6532
6560
|
__html: caption
|
|
6533
6561
|
}
|
|
6534
|
-
}), attribution && /*#__PURE__*/
|
|
6562
|
+
}), attribution && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6535
6563
|
"data-test-id": "attribution",
|
|
6536
6564
|
dangerouslySetInnerHTML: {
|
|
6537
6565
|
__html: attribution
|
|
@@ -6540,13 +6568,13 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
6540
6568
|
}));
|
|
6541
6569
|
};
|
|
6542
6570
|
CaptionAttribution.propTypes = {
|
|
6543
|
-
config:
|
|
6544
|
-
theme:
|
|
6571
|
+
config: PropTypes__default["default"].shape({
|
|
6572
|
+
theme: PropTypes__default["default"].string
|
|
6545
6573
|
}),
|
|
6546
6574
|
story: shapeStory,
|
|
6547
|
-
element:
|
|
6548
|
-
"image-attribution":
|
|
6549
|
-
title:
|
|
6575
|
+
element: PropTypes__default["default"].shape({
|
|
6576
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
6577
|
+
title: PropTypes__default["default"].string
|
|
6550
6578
|
})
|
|
6551
6579
|
};
|
|
6552
6580
|
|
|
@@ -6568,14 +6596,14 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6568
6596
|
|
|
6569
6597
|
var ImageTemplate = function ImageTemplate(_ref2) {
|
|
6570
6598
|
var _onClick = _ref2.onClick;
|
|
6571
|
-
return /*#__PURE__*/
|
|
6599
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6572
6600
|
className: "image-m_image-template__3s9OA"
|
|
6573
|
-
}, /*#__PURE__*/
|
|
6601
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6574
6602
|
className: "image-m_element__KVuzX",
|
|
6575
6603
|
onClick: function onClick() {
|
|
6576
6604
|
return _onClick();
|
|
6577
6605
|
}
|
|
6578
|
-
}, /*#__PURE__*/
|
|
6606
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6579
6607
|
slug: element["image-s3-key"],
|
|
6580
6608
|
metadata: element["image-metadata"],
|
|
6581
6609
|
alt: element["title"],
|
|
@@ -6585,40 +6613,40 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6585
6613
|
imgParams: {
|
|
6586
6614
|
auto: ["format", "compress"]
|
|
6587
6615
|
}
|
|
6588
|
-
})), element["hyperlink"] && /*#__PURE__*/
|
|
6616
|
+
})), element["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6589
6617
|
hyperLink: element["hyperlink"]
|
|
6590
6618
|
}));
|
|
6591
6619
|
};
|
|
6592
6620
|
|
|
6593
6621
|
ImageTemplate.propTypes = {
|
|
6594
|
-
onClick:
|
|
6622
|
+
onClick: PropTypes__default["default"].func
|
|
6595
6623
|
};
|
|
6596
|
-
return /*#__PURE__*/
|
|
6624
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6597
6625
|
className: "arrow-component arr--image-element"
|
|
6598
6626
|
}, restProps, {
|
|
6599
6627
|
"data-test-id": "image-element"
|
|
6600
|
-
}), /*#__PURE__*/
|
|
6628
|
+
}), /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6601
6629
|
template: ImageTemplate,
|
|
6602
6630
|
element: element,
|
|
6603
6631
|
imageSlug: element["image-s3-key"],
|
|
6604
6632
|
story: story
|
|
6605
|
-
}), caption && /*#__PURE__*/
|
|
6633
|
+
}), caption && /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
6606
6634
|
element: element,
|
|
6607
6635
|
config: configData
|
|
6608
6636
|
}));
|
|
6609
6637
|
};
|
|
6610
6638
|
|
|
6611
6639
|
ImageBase.propTypes = {
|
|
6612
|
-
element:
|
|
6613
|
-
"image-s3-key":
|
|
6614
|
-
"image-metadata":
|
|
6615
|
-
"image-attribution":
|
|
6616
|
-
title:
|
|
6617
|
-
hyperlink:
|
|
6640
|
+
element: PropTypes__default["default"].shape({
|
|
6641
|
+
"image-s3-key": PropTypes__default["default"].string,
|
|
6642
|
+
"image-metadata": PropTypes__default["default"].object,
|
|
6643
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
6644
|
+
title: PropTypes__default["default"].string,
|
|
6645
|
+
hyperlink: PropTypes__default["default"].string
|
|
6618
6646
|
}),
|
|
6619
|
-
caption:
|
|
6620
|
-
opts:
|
|
6621
|
-
imageWidths:
|
|
6647
|
+
caption: PropTypes__default["default"].bool,
|
|
6648
|
+
opts: PropTypes__default["default"].shape({
|
|
6649
|
+
imageWidths: PropTypes__default["default"].array
|
|
6622
6650
|
}),
|
|
6623
6651
|
story: shapeStory,
|
|
6624
6652
|
config: shapeConfig
|
|
@@ -6711,14 +6739,14 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6711
6739
|
var isAuthorImageTemplate = template === "withAuthorImage";
|
|
6712
6740
|
var templateStyle = isAuthorImageTemplate ? "qa-withAuthorImage" : "qa-default";
|
|
6713
6741
|
var iconType = defaultIconType === "curve" ? "curveIcon" : "edgeIcon";
|
|
6714
|
-
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/
|
|
6742
|
+
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6715
6743
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6716
|
-
}, /*#__PURE__*/
|
|
6744
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6717
6745
|
src: questionAttribution,
|
|
6718
6746
|
loading: "lazy"
|
|
6719
|
-
})), /*#__PURE__*/
|
|
6747
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6720
6748
|
className: "question-answer-m_hidden__K0n4n"
|
|
6721
|
-
})) : /*#__PURE__*/
|
|
6749
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6722
6750
|
"data-test-id": iconType,
|
|
6723
6751
|
style: {
|
|
6724
6752
|
backgroundColor: iconColor
|
|
@@ -6726,36 +6754,36 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6726
6754
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$c)
|
|
6727
6755
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
6728
6756
|
|
|
6729
|
-
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/
|
|
6757
|
+
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6730
6758
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6731
|
-
}, /*#__PURE__*/
|
|
6759
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6732
6760
|
src: answerAttribution,
|
|
6733
6761
|
loading: "lazy"
|
|
6734
|
-
})), /*#__PURE__*/
|
|
6762
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6735
6763
|
className: "question-answer-m_hidden__K0n4n"
|
|
6736
|
-
})) : /*#__PURE__*/
|
|
6764
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6737
6765
|
"data-test-id": iconType,
|
|
6738
6766
|
style: {
|
|
6739
6767
|
backgroundColor: iconColor
|
|
6740
6768
|
},
|
|
6741
6769
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$c)
|
|
6742
6770
|
}, "A");
|
|
6743
|
-
return /*#__PURE__*/
|
|
6771
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6744
6772
|
"data-test-id": "question-answer"
|
|
6745
6773
|
}, restProps, {
|
|
6746
6774
|
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap$c) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6747
|
-
}), type !== "answer" && /*#__PURE__*/
|
|
6775
|
+
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6748
6776
|
className: "question-answer-m_q-element__1ZA5d",
|
|
6749
6777
|
"data-test-id": "question"
|
|
6750
|
-
}, supportQuestionElement, /*#__PURE__*/
|
|
6778
|
+
}, supportQuestionElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6751
6779
|
dangerouslySetInnerHTML: {
|
|
6752
6780
|
__html: questionData
|
|
6753
6781
|
},
|
|
6754
6782
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$c)
|
|
6755
|
-
})), type !== "question" && /*#__PURE__*/
|
|
6783
|
+
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6756
6784
|
className: "question-answer-m_a-element__BTxfl",
|
|
6757
6785
|
"data-test-id": "answer"
|
|
6758
|
-
}, supportAnswerElement, /*#__PURE__*/
|
|
6786
|
+
}, supportAnswerElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6759
6787
|
dangerouslySetInnerHTML: {
|
|
6760
6788
|
__html: answerData
|
|
6761
6789
|
},
|
|
@@ -6764,29 +6792,29 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6764
6792
|
};
|
|
6765
6793
|
|
|
6766
6794
|
QuestionAnswerBase.propTypes = {
|
|
6767
|
-
element:
|
|
6768
|
-
metadata:
|
|
6769
|
-
interviewer:
|
|
6770
|
-
"avatar-url":
|
|
6795
|
+
element: PropTypes__default["default"].shape({
|
|
6796
|
+
metadata: PropTypes__default["default"].shape({
|
|
6797
|
+
interviewer: PropTypes__default["default"].shape({
|
|
6798
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6771
6799
|
}),
|
|
6772
|
-
interviewee:
|
|
6773
|
-
"avatar-url":
|
|
6800
|
+
interviewee: PropTypes__default["default"].shape({
|
|
6801
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6774
6802
|
}),
|
|
6775
|
-
question:
|
|
6776
|
-
answer:
|
|
6803
|
+
question: PropTypes__default["default"].string,
|
|
6804
|
+
answer: PropTypes__default["default"].string
|
|
6777
6805
|
}),
|
|
6778
|
-
text:
|
|
6806
|
+
text: PropTypes__default["default"].string
|
|
6779
6807
|
}),
|
|
6780
|
-
opts:
|
|
6781
|
-
type:
|
|
6782
|
-
defaultIconType:
|
|
6783
|
-
isExternalLink:
|
|
6808
|
+
opts: PropTypes__default["default"].shape({
|
|
6809
|
+
type: PropTypes__default["default"].string,
|
|
6810
|
+
defaultIconType: PropTypes__default["default"].string,
|
|
6811
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
6784
6812
|
}),
|
|
6785
|
-
template:
|
|
6786
|
-
css:
|
|
6813
|
+
template: PropTypes__default["default"].string,
|
|
6814
|
+
css: PropTypes__default["default"].object,
|
|
6787
6815
|
config: shapeConfig,
|
|
6788
6816
|
story: shapeStory,
|
|
6789
|
-
render:
|
|
6817
|
+
render: PropTypes__default["default"].func
|
|
6790
6818
|
};
|
|
6791
6819
|
var QuestionAnswer = withElementWrapper(QuestionAnswerBase);
|
|
6792
6820
|
|
|
@@ -6828,17 +6856,17 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
6828
6856
|
var ImageGalleryImagesTemplate = function ImageGalleryImagesTemplate(_ref2) {
|
|
6829
6857
|
var onClickHandler = _ref2.onClickHandler;
|
|
6830
6858
|
var images = renderImage.map(function (image, index) {
|
|
6831
|
-
return /*#__PURE__*/
|
|
6859
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6832
6860
|
key: index,
|
|
6833
6861
|
className: _getClassName(hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$b)
|
|
6834
|
-
}, /*#__PURE__*/
|
|
6862
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6835
6863
|
key: index,
|
|
6836
6864
|
"data-text-id": "image-".concat(index),
|
|
6837
6865
|
onClick: function onClick() {
|
|
6838
6866
|
return onClickHandler && onClickHandler(index);
|
|
6839
6867
|
},
|
|
6840
6868
|
className: _getClassName("image ".concat(classes), _styleModuleImportMap$b)
|
|
6841
|
-
}, /*#__PURE__*/
|
|
6869
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6842
6870
|
slug: image["image-s3-key"],
|
|
6843
6871
|
metadata: image["image-metadata"],
|
|
6844
6872
|
alt: image["title"],
|
|
@@ -6847,11 +6875,11 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
6847
6875
|
imgParams: {
|
|
6848
6876
|
auto: ["format", "compress"]
|
|
6849
6877
|
}
|
|
6850
|
-
})), image["hyperlink"] && /*#__PURE__*/
|
|
6878
|
+
})), image["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6851
6879
|
hyperLink: image["hyperlink"]
|
|
6852
6880
|
}));
|
|
6853
6881
|
});
|
|
6854
|
-
return /*#__PURE__*/
|
|
6882
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6855
6883
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
6856
6884
|
}, restProps, {
|
|
6857
6885
|
"data-test-id": "image-gallery"
|
|
@@ -6859,24 +6887,24 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
6859
6887
|
};
|
|
6860
6888
|
|
|
6861
6889
|
ImageGalleryImagesTemplate.propTypes = {
|
|
6862
|
-
onClickHandler:
|
|
6890
|
+
onClickHandler: PropTypes__default["default"].func
|
|
6863
6891
|
};
|
|
6864
|
-
return /*#__PURE__*/
|
|
6892
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6865
6893
|
template: ImageGalleryImagesTemplate,
|
|
6866
6894
|
element: element
|
|
6867
6895
|
});
|
|
6868
6896
|
};
|
|
6869
6897
|
|
|
6870
6898
|
ImageGalleryBase.propTypes = {
|
|
6871
|
-
element:
|
|
6872
|
-
"story-elements":
|
|
6899
|
+
element: PropTypes__default["default"].shape({
|
|
6900
|
+
"story-elements": PropTypes__default["default"].array
|
|
6873
6901
|
}),
|
|
6874
|
-
opts:
|
|
6875
|
-
imageWidths:
|
|
6902
|
+
opts: PropTypes__default["default"].shape({
|
|
6903
|
+
imageWidths: PropTypes__default["default"].array
|
|
6876
6904
|
}),
|
|
6877
6905
|
story: shapeStory,
|
|
6878
6906
|
config: shapeConfig,
|
|
6879
|
-
template:
|
|
6907
|
+
template: PropTypes__default["default"].string
|
|
6880
6908
|
};
|
|
6881
6909
|
var ImageGallery = withElementWrapper(ImageGalleryBase);
|
|
6882
6910
|
|
|
@@ -6888,16 +6916,16 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
6888
6916
|
_ref.config;
|
|
6889
6917
|
var restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
6890
6918
|
|
|
6891
|
-
return /*#__PURE__*/
|
|
6919
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, restProps, {
|
|
6892
6920
|
"data-test-id": "story-elements"
|
|
6893
|
-
}), /*#__PURE__*/
|
|
6921
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
6894
6922
|
element: element
|
|
6895
6923
|
}));
|
|
6896
6924
|
};
|
|
6897
6925
|
|
|
6898
6926
|
var StoryElement = withElementWrapper(StoryElementBase);
|
|
6899
6927
|
StoryElementBase.propTypes = {
|
|
6900
|
-
element:
|
|
6928
|
+
element: PropTypes__default["default"].object,
|
|
6901
6929
|
story: shapeStory,
|
|
6902
6930
|
config: shapeConfig
|
|
6903
6931
|
};
|
|
@@ -6912,21 +6940,21 @@ var Videobase = function Videobase(_ref) {
|
|
|
6912
6940
|
loadIframeOnClick = _ref$loadIframeOnClic === void 0 ? false : _ref$loadIframeOnClic,
|
|
6913
6941
|
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
6914
6942
|
|
|
6915
|
-
return /*#__PURE__*/
|
|
6943
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6916
6944
|
className: "video-m_container__MYuWI" + (" " + (restProps ? restProps.className || "" : ""))
|
|
6917
6945
|
}, restProps, {
|
|
6918
6946
|
"data-test-id": "video"
|
|
6919
|
-
}), /*#__PURE__*/
|
|
6947
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
6920
6948
|
element: element,
|
|
6921
6949
|
loadIframeOnClick: loadIframeOnClick
|
|
6922
6950
|
}));
|
|
6923
6951
|
};
|
|
6924
6952
|
|
|
6925
6953
|
Videobase.propTypes = {
|
|
6926
|
-
element:
|
|
6954
|
+
element: PropTypes__default["default"].object,
|
|
6927
6955
|
story: shapeStory,
|
|
6928
6956
|
config: shapeConfig,
|
|
6929
|
-
loadIframeOnClick:
|
|
6957
|
+
loadIframeOnClick: PropTypes__default["default"].bool
|
|
6930
6958
|
};
|
|
6931
6959
|
var Video = withElementWrapper(Videobase);
|
|
6932
6960
|
|
|
@@ -6967,16 +6995,16 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6967
6995
|
var borderColor = css.borderColor;
|
|
6968
6996
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
6969
6997
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
6970
|
-
return /*#__PURE__*/
|
|
6998
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6971
6999
|
"data-test-id": "quote"
|
|
6972
7000
|
}, restProps, {
|
|
6973
7001
|
className: "arrow-component arr--quote-element " + _getClassName(templateStyle, _styleModuleImportMap$a) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6974
|
-
}), template === "borderTopSmall" && /*#__PURE__*/
|
|
7002
|
+
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6975
7003
|
className: "quote-m_line__3gtoE",
|
|
6976
7004
|
style: borderColor && {
|
|
6977
7005
|
backgroundColor: borderColor
|
|
6978
7006
|
}
|
|
6979
|
-
}), /*#__PURE__*/
|
|
7007
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6980
7008
|
style: borderColor && {
|
|
6981
7009
|
borderLeft: updateBorderColor
|
|
6982
7010
|
},
|
|
@@ -6984,26 +7012,26 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6984
7012
|
__html: content
|
|
6985
7013
|
},
|
|
6986
7014
|
className: _getClassName("text ".concat(textInvertColor), _styleModuleImportMap$a)
|
|
6987
|
-
}), /*#__PURE__*/
|
|
7015
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6988
7016
|
"data-test-id": "quote-attribution",
|
|
6989
7017
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$a)
|
|
6990
7018
|
}, attribution));
|
|
6991
7019
|
};
|
|
6992
7020
|
|
|
6993
7021
|
QuoteBase.propTypes = {
|
|
6994
|
-
element:
|
|
6995
|
-
metadata:
|
|
6996
|
-
content:
|
|
6997
|
-
attribution:
|
|
7022
|
+
element: PropTypes__default["default"].shape({
|
|
7023
|
+
metadata: PropTypes__default["default"].shape({
|
|
7024
|
+
content: PropTypes__default["default"].string,
|
|
7025
|
+
attribution: PropTypes__default["default"].string
|
|
6998
7026
|
})
|
|
6999
7027
|
}),
|
|
7000
7028
|
|
|
7001
7029
|
/** template can be default, borderTopSmall and borderLeft */
|
|
7002
|
-
template:
|
|
7030
|
+
template: PropTypes__default["default"].string,
|
|
7003
7031
|
story: shapeStory,
|
|
7004
7032
|
config: shapeConfig,
|
|
7005
|
-
render:
|
|
7006
|
-
css:
|
|
7033
|
+
render: PropTypes__default["default"].func,
|
|
7034
|
+
css: PropTypes__default["default"].object
|
|
7007
7035
|
};
|
|
7008
7036
|
var Quote = withElementWrapper(QuoteBase);
|
|
7009
7037
|
|
|
@@ -7037,7 +7065,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7037
7065
|
var _opts$showHeadline = opts.showHeadline,
|
|
7038
7066
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
7039
7067
|
headlineText = opts.headlineText;
|
|
7040
|
-
return /*#__PURE__*/
|
|
7068
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7041
7069
|
className: "arrow-component arr--reference-element"
|
|
7042
7070
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
7043
7071
|
var _metadata$name = metadata.name,
|
|
@@ -7045,33 +7073,33 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7045
7073
|
_metadata$description = metadata.description,
|
|
7046
7074
|
description = _metadata$description === void 0 ? "" : _metadata$description,
|
|
7047
7075
|
url = metadata.url;
|
|
7048
|
-
return /*#__PURE__*/
|
|
7076
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7049
7077
|
key: index,
|
|
7050
7078
|
className: _getClassName("wrapper ".concat(textInvertColor), _styleModuleImportMap$9)
|
|
7051
|
-
}, /*#__PURE__*/
|
|
7079
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7052
7080
|
href: url,
|
|
7053
7081
|
"aria-label": "reference-headline"
|
|
7054
|
-
}, showHeadline && /*#__PURE__*/
|
|
7082
|
+
}, showHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7055
7083
|
className: "reference-m_name__24IwG",
|
|
7056
7084
|
"data-test-id": "ref-headline"
|
|
7057
|
-
}, headlineText || name), /*#__PURE__*/
|
|
7085
|
+
}, headlineText || name), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7058
7086
|
className: "reference-m_description__2x3Io"
|
|
7059
7087
|
}, description)));
|
|
7060
7088
|
}));
|
|
7061
7089
|
};
|
|
7062
7090
|
|
|
7063
7091
|
ReferenceBase.propTypes = {
|
|
7064
|
-
element:
|
|
7065
|
-
"story-elements":
|
|
7066
|
-
metadata:
|
|
7067
|
-
name:
|
|
7068
|
-
description:
|
|
7069
|
-
url:
|
|
7092
|
+
element: PropTypes__default["default"].shape({
|
|
7093
|
+
"story-elements": PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
7094
|
+
metadata: PropTypes__default["default"].shape({
|
|
7095
|
+
name: PropTypes__default["default"].string,
|
|
7096
|
+
description: PropTypes__default["default"].string,
|
|
7097
|
+
url: PropTypes__default["default"].string
|
|
7070
7098
|
})
|
|
7071
7099
|
}))
|
|
7072
7100
|
}),
|
|
7073
|
-
opts:
|
|
7074
|
-
hideHeadline:
|
|
7101
|
+
opts: PropTypes__default["default"].shape({
|
|
7102
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
7075
7103
|
}),
|
|
7076
7104
|
config: shapeConfig
|
|
7077
7105
|
};
|
|
@@ -7113,28 +7141,28 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7113
7141
|
var textColor = getTextColor(configData.theme);
|
|
7114
7142
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
7115
7143
|
var defaultFileName = fileName || defaultName;
|
|
7116
|
-
return /*#__PURE__*/
|
|
7144
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7117
7145
|
"data-test-id": "attachment"
|
|
7118
7146
|
}, restProps, {
|
|
7119
7147
|
className: "arrow-component arr--attachment-element " + _getClassName(textColor, _styleModuleImportMap$8) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7120
|
-
}), /*#__PURE__*/
|
|
7148
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7121
7149
|
className: "attachment-m_headline__kP7Hs"
|
|
7122
|
-
}, "Attachment"), /*#__PURE__*/
|
|
7150
|
+
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7123
7151
|
className: "attachment-m_wrapper__3gMwN"
|
|
7124
|
-
}, isPdf ? /*#__PURE__*/
|
|
7152
|
+
}, isPdf ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7125
7153
|
"data-test-id": "pdf",
|
|
7126
7154
|
className: "attachment-m_pdf__3i_bR"
|
|
7127
|
-
}, "PDF") : /*#__PURE__*/
|
|
7155
|
+
}, "PDF") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7128
7156
|
"data-test-id": "doc",
|
|
7129
7157
|
className: "attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"
|
|
7130
|
-
}, "DOC"), /*#__PURE__*/
|
|
7158
|
+
}, "DOC"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7131
7159
|
className: "attachment-m_content-wrapper__3Yu0B"
|
|
7132
|
-
}, /*#__PURE__*/
|
|
7160
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7133
7161
|
className: "attachment-m_file-name__1LU9q",
|
|
7134
7162
|
dangerouslySetInnerHTML: {
|
|
7135
7163
|
__html: defaultFileName
|
|
7136
7164
|
}
|
|
7137
|
-
}), /*#__PURE__*/
|
|
7165
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7138
7166
|
className: "attachment-m_button-wrapper__2fajK",
|
|
7139
7167
|
href: url,
|
|
7140
7168
|
target: "_blank",
|
|
@@ -7145,59 +7173,59 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7145
7173
|
};
|
|
7146
7174
|
|
|
7147
7175
|
AttachmentBase.propTypes = {
|
|
7148
|
-
element:
|
|
7149
|
-
url:
|
|
7150
|
-
fileName:
|
|
7151
|
-
contentType:
|
|
7176
|
+
element: PropTypes__default["default"].shape({
|
|
7177
|
+
url: PropTypes__default["default"].string,
|
|
7178
|
+
fileName: PropTypes__default["default"].string,
|
|
7179
|
+
contentType: PropTypes__default["default"].string
|
|
7152
7180
|
}),
|
|
7153
|
-
render:
|
|
7181
|
+
render: PropTypes__default["default"].func
|
|
7154
7182
|
};
|
|
7155
7183
|
var Attachment = withElementWrapper(AttachmentBase);
|
|
7156
7184
|
|
|
7157
7185
|
var LeftArrow = function LeftArrow(_ref) {
|
|
7158
7186
|
var _ref$color = _ref.color,
|
|
7159
7187
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7160
|
-
return /*#__PURE__*/
|
|
7188
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7161
7189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7162
7190
|
width: "16",
|
|
7163
7191
|
height: "16",
|
|
7164
7192
|
viewBox: "0 0 10 16"
|
|
7165
|
-
}, /*#__PURE__*/
|
|
7193
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7166
7194
|
fill: "none",
|
|
7167
7195
|
fillRule: "nonzero"
|
|
7168
|
-
}, /*#__PURE__*/
|
|
7196
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7169
7197
|
d: "M17 20H-7V-4h24z",
|
|
7170
7198
|
opacity: ".384"
|
|
7171
|
-
}), /*#__PURE__*/
|
|
7199
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7172
7200
|
stroke: color,
|
|
7173
7201
|
d: "M9 16L1 8l8-8"
|
|
7174
7202
|
})));
|
|
7175
7203
|
};
|
|
7176
7204
|
LeftArrow.propTypes = {
|
|
7177
|
-
color:
|
|
7205
|
+
color: PropTypes__default["default"].string
|
|
7178
7206
|
};
|
|
7179
7207
|
|
|
7180
7208
|
var RightArrow = function RightArrow(_ref) {
|
|
7181
7209
|
var _ref$color = _ref.color,
|
|
7182
7210
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7183
|
-
return /*#__PURE__*/
|
|
7211
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7184
7212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7185
7213
|
width: "16",
|
|
7186
7214
|
height: "16",
|
|
7187
7215
|
viewBox: "0 0 10 16"
|
|
7188
|
-
}, /*#__PURE__*/
|
|
7216
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7189
7217
|
fill: "none",
|
|
7190
7218
|
fillRule: "nonzero"
|
|
7191
|
-
}, /*#__PURE__*/
|
|
7219
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7192
7220
|
d: "M-7-4h24v24H-7z",
|
|
7193
7221
|
opacity: ".384"
|
|
7194
|
-
}), /*#__PURE__*/
|
|
7222
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7195
7223
|
stroke: color,
|
|
7196
7224
|
d: "M1 0l8 8-8 8"
|
|
7197
7225
|
})));
|
|
7198
7226
|
};
|
|
7199
7227
|
RightArrow.propTypes = {
|
|
7200
|
-
color:
|
|
7228
|
+
color: PropTypes__default["default"].string
|
|
7201
7229
|
};
|
|
7202
7230
|
|
|
7203
7231
|
var _styleModuleImportMap$7 = {
|
|
@@ -7235,26 +7263,26 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
7235
7263
|
|
|
7236
7264
|
var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
|
|
7237
7265
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
7238
|
-
return /*#__PURE__*/
|
|
7266
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7239
7267
|
onClick: previousClick,
|
|
7240
7268
|
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$7)
|
|
7241
|
-
}, /*#__PURE__*/
|
|
7269
|
+
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
7242
7270
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7243
|
-
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/
|
|
7271
|
+
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7244
7272
|
onClick: nextClick,
|
|
7245
7273
|
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$7)
|
|
7246
|
-
}, /*#__PURE__*/
|
|
7274
|
+
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
7247
7275
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7248
7276
|
})) : null);
|
|
7249
7277
|
};
|
|
7250
7278
|
SliderArrow.propTypes = {
|
|
7251
|
-
noOfItems: number,
|
|
7252
|
-
perView: number,
|
|
7253
|
-
slideIndicator: string,
|
|
7254
|
-
previousClick: func,
|
|
7255
|
-
nextClick: func,
|
|
7256
|
-
selectedIndex: number,
|
|
7257
|
-
languageDirection: string
|
|
7279
|
+
noOfItems: PropTypes.number,
|
|
7280
|
+
perView: PropTypes.number,
|
|
7281
|
+
slideIndicator: PropTypes.string,
|
|
7282
|
+
previousClick: PropTypes.func,
|
|
7283
|
+
nextClick: PropTypes.func,
|
|
7284
|
+
selectedIndex: PropTypes.number,
|
|
7285
|
+
languageDirection: PropTypes.string
|
|
7258
7286
|
};
|
|
7259
7287
|
|
|
7260
7288
|
var _styleModuleImportMap$6 = {
|
|
@@ -7282,27 +7310,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
7282
7310
|
|
|
7283
7311
|
var config = useStateValue() || {};
|
|
7284
7312
|
var textColor = getTextColor(config.theme);
|
|
7285
|
-
return /*#__PURE__*/
|
|
7313
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
7286
7314
|
className: "slider-indicators slider-indicator-m_indicators__3MNXc"
|
|
7287
7315
|
}, indicatorItems.map(function (_, index) {
|
|
7288
|
-
return /*#__PURE__*/
|
|
7316
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7289
7317
|
key: "slider-".concat(index),
|
|
7290
7318
|
className: "indicator slider-indicator-m_indicator__gTv3x",
|
|
7291
7319
|
onClick: function onClick(e) {
|
|
7292
7320
|
return indicatorClick(e, index);
|
|
7293
7321
|
}
|
|
7294
|
-
}, /*#__PURE__*/
|
|
7322
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7295
7323
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
7296
7324
|
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$6)
|
|
7297
7325
|
}));
|
|
7298
7326
|
}));
|
|
7299
7327
|
};
|
|
7300
7328
|
SliderIndicator.propTypes = {
|
|
7301
|
-
indicatorItems: array,
|
|
7302
|
-
perView: number,
|
|
7303
|
-
indicatorType: string,
|
|
7304
|
-
indicatorClick: func,
|
|
7305
|
-
selectedIndex: number
|
|
7329
|
+
indicatorItems: PropTypes.array,
|
|
7330
|
+
perView: PropTypes.number,
|
|
7331
|
+
indicatorType: PropTypes.string,
|
|
7332
|
+
indicatorClick: PropTypes.func,
|
|
7333
|
+
selectedIndex: PropTypes.number
|
|
7306
7334
|
};
|
|
7307
7335
|
|
|
7308
7336
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
@@ -7337,24 +7365,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7337
7365
|
perView = _ref.perView,
|
|
7338
7366
|
slideIndicator = _ref.slideIndicator;
|
|
7339
7367
|
|
|
7340
|
-
var _useState = useState(0),
|
|
7368
|
+
var _useState = React.useState(0),
|
|
7341
7369
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7342
7370
|
selectedIndex = _useState2[0],
|
|
7343
7371
|
setSelectedIndex = _useState2[1];
|
|
7344
7372
|
|
|
7345
|
-
var _useState3 = useState(false),
|
|
7373
|
+
var _useState3 = React.useState(false),
|
|
7346
7374
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7347
7375
|
autoScroll = _useState4[0],
|
|
7348
7376
|
setAutoScroll = _useState4[1];
|
|
7349
7377
|
|
|
7350
|
-
var languageDirection = useSelector(function (state) {
|
|
7378
|
+
var languageDirection = reactRedux.useSelector(function (state) {
|
|
7351
7379
|
return get_1(state, ["qt", "config", "language", "direction"], "ltr");
|
|
7352
7380
|
});
|
|
7353
7381
|
var noOfItems = children ? children.length : 0;
|
|
7354
|
-
var scroller = useRef(null);
|
|
7382
|
+
var scroller = React.useRef(null);
|
|
7355
7383
|
var numberOfIndicatorsToShow = children.length - (perView - 1);
|
|
7356
7384
|
var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
|
|
7357
|
-
useEffect(function () {
|
|
7385
|
+
React.useEffect(function () {
|
|
7358
7386
|
if (scroller.current) {
|
|
7359
7387
|
scroller.current.addEventListener("scroll", setIndicatorValue(function () {
|
|
7360
7388
|
var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
|
|
@@ -7371,7 +7399,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7371
7399
|
};
|
|
7372
7400
|
}, []); // Infinite scroll
|
|
7373
7401
|
|
|
7374
|
-
useEffect(function () {
|
|
7402
|
+
React.useEffect(function () {
|
|
7375
7403
|
if (isInfinite && !autoScroll) {
|
|
7376
7404
|
var timer = setInterval(function () {
|
|
7377
7405
|
infiniteScroll();
|
|
@@ -7420,23 +7448,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7420
7448
|
updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
|
|
7421
7449
|
};
|
|
7422
7450
|
|
|
7423
|
-
return /*#__PURE__*/
|
|
7451
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7424
7452
|
className: "scroll-snap-container"
|
|
7425
|
-
}, /*#__PURE__*/
|
|
7453
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7426
7454
|
className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
|
|
7427
7455
|
onMouseEnter: pauseAutoPlay,
|
|
7428
7456
|
onMouseLeave: pauseAutoPlay
|
|
7429
|
-
}, /*#__PURE__*/
|
|
7457
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7430
7458
|
ref: scroller,
|
|
7431
7459
|
className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
|
|
7432
|
-
}, children), isArrow && /*#__PURE__*/
|
|
7460
|
+
}, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
|
|
7433
7461
|
noOfItems: noOfItems,
|
|
7434
7462
|
perView: perView,
|
|
7435
7463
|
previousClick: previousClick,
|
|
7436
7464
|
nextClick: nextClick,
|
|
7437
7465
|
selectedIndex: selectedIndex,
|
|
7438
7466
|
languageDirection: languageDirection
|
|
7439
|
-
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/
|
|
7467
|
+
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
|
|
7440
7468
|
indicatorItems: indicatorItems,
|
|
7441
7469
|
indicatorClick: indicatorClick,
|
|
7442
7470
|
selectedIndex: selectedIndex,
|
|
@@ -7452,13 +7480,13 @@ ScrollSnap.defaultProps = {
|
|
|
7452
7480
|
slideIndicator: "dots"
|
|
7453
7481
|
};
|
|
7454
7482
|
ScrollSnap.propTypes = {
|
|
7455
|
-
children: array.isRequired,
|
|
7456
|
-
isArrow: bool,
|
|
7457
|
-
isInfinite: bool,
|
|
7458
|
-
interval: number,
|
|
7459
|
-
pauseOnHover: bool,
|
|
7460
|
-
perView: number,
|
|
7461
|
-
slideIndicator: string
|
|
7483
|
+
children: PropTypes.array.isRequired,
|
|
7484
|
+
isArrow: PropTypes.bool,
|
|
7485
|
+
isInfinite: PropTypes.bool,
|
|
7486
|
+
interval: PropTypes.number,
|
|
7487
|
+
pauseOnHover: PropTypes.bool,
|
|
7488
|
+
perView: PropTypes.number,
|
|
7489
|
+
slideIndicator: PropTypes.string
|
|
7462
7490
|
};
|
|
7463
7491
|
|
|
7464
7492
|
var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
@@ -7471,18 +7499,18 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7471
7499
|
title = image.title,
|
|
7472
7500
|
_image$hyperlink = image.hyperlink,
|
|
7473
7501
|
hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
|
|
7474
|
-
return /*#__PURE__*/
|
|
7502
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7475
7503
|
className: "image-slideshow-m_slide__3URCC",
|
|
7476
7504
|
key: id
|
|
7477
|
-
}, /*#__PURE__*/
|
|
7505
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7478
7506
|
key: id,
|
|
7479
7507
|
className: "image-slideshow-m_image-container__2VTEK",
|
|
7480
7508
|
onClick: function onClick() {
|
|
7481
7509
|
return onClickHandler(index);
|
|
7482
7510
|
}
|
|
7483
|
-
}, /*#__PURE__*/
|
|
7511
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
|
|
7484
7512
|
margin: "0px"
|
|
7485
|
-
}, /*#__PURE__*/
|
|
7513
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7486
7514
|
slug: imageS3Key,
|
|
7487
7515
|
metadata: metadata,
|
|
7488
7516
|
"aspect-ratio": [16, 9],
|
|
@@ -7493,9 +7521,9 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7493
7521
|
},
|
|
7494
7522
|
className: "image-slideshow-m_image__1p1fO",
|
|
7495
7523
|
alt: title
|
|
7496
|
-
}))), hyperlink && /*#__PURE__*/
|
|
7524
|
+
}))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7497
7525
|
hyperLink: hyperlink
|
|
7498
|
-
}), /*#__PURE__*/
|
|
7526
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7499
7527
|
className: "image-slideshow-m_caption__mWpmc",
|
|
7500
7528
|
dangerouslySetInnerHTML: {
|
|
7501
7529
|
__html: title
|
|
@@ -7506,10 +7534,10 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7506
7534
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
7507
7535
|
var onClickHandler = _ref.onClickHandler;
|
|
7508
7536
|
var storyElements = get_1(props, ["element", "story-elements"], []);
|
|
7509
|
-
return /*#__PURE__*/
|
|
7537
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7510
7538
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
7511
7539
|
"data-test-id": "image-slideshow"
|
|
7512
|
-
}, /*#__PURE__*/
|
|
7540
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
|
|
7513
7541
|
slideIndicator: "none"
|
|
7514
7542
|
}, storyElements.map(function (image, index) {
|
|
7515
7543
|
return Slide(image, index, onClickHandler);
|
|
@@ -7517,17 +7545,17 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7517
7545
|
};
|
|
7518
7546
|
|
|
7519
7547
|
ImageSlideshowTemplate.propTypes = {
|
|
7520
|
-
onClickHandler:
|
|
7548
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7521
7549
|
};
|
|
7522
|
-
return /*#__PURE__*/
|
|
7550
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7523
7551
|
template: ImageSlideshowTemplate,
|
|
7524
7552
|
element: props.element
|
|
7525
7553
|
});
|
|
7526
7554
|
};
|
|
7527
7555
|
|
|
7528
7556
|
ImageSlideshowBase.propTypes = {
|
|
7529
|
-
element:
|
|
7530
|
-
"story-elements":
|
|
7557
|
+
element: PropTypes__default["default"].shape({
|
|
7558
|
+
"story-elements": PropTypes__default["default"].array
|
|
7531
7559
|
}),
|
|
7532
7560
|
story: shapeStory
|
|
7533
7561
|
};
|
|
@@ -7585,12 +7613,12 @@ var getElement = function getElement(story, element) {
|
|
|
7585
7613
|
|
|
7586
7614
|
switch (elementType) {
|
|
7587
7615
|
case "ad":
|
|
7588
|
-
return /*#__PURE__*/
|
|
7616
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
7589
7617
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
7590
7618
|
}));
|
|
7591
7619
|
|
|
7592
7620
|
case "widget":
|
|
7593
|
-
return /*#__PURE__*/
|
|
7621
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
7594
7622
|
widgetCode: element.config.customCode,
|
|
7595
7623
|
id: "widget-".concat(index, "_").concat(cardId)
|
|
7596
7624
|
});
|
|
@@ -7603,7 +7631,7 @@ var getElement = function getElement(story, element) {
|
|
|
7603
7631
|
textElementColor = _text$css$textColor === void 0 ? "#000" : _text$css$textColor,
|
|
7604
7632
|
_text$css$hyperlinkCo = _text$css.hyperlinkColor,
|
|
7605
7633
|
hyperlinkColor = _text$css$hyperlinkCo === void 0 ? "#2f81cd" : _text$css$hyperlinkCo;
|
|
7606
|
-
return /*#__PURE__*/
|
|
7634
|
+
return /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
7607
7635
|
element: element,
|
|
7608
7636
|
css: {
|
|
7609
7637
|
textColor: textElementColor,
|
|
@@ -7624,7 +7652,7 @@ var getElement = function getElement(story, element) {
|
|
|
7624
7652
|
headline = _summary$opts$headlin === void 0 ? "" : _summary$opts$headlin,
|
|
7625
7653
|
_summary$opts$hideHea = _summary$opts.hideHeadline,
|
|
7626
7654
|
hideHeadline = _summary$opts$hideHea === void 0 ? false : _summary$opts$hideHea;
|
|
7627
|
-
return /*#__PURE__*/
|
|
7655
|
+
return /*#__PURE__*/React__default["default"].createElement(Summary, {
|
|
7628
7656
|
element: element,
|
|
7629
7657
|
template: summaryTemplate,
|
|
7630
7658
|
opts: {
|
|
@@ -7643,7 +7671,7 @@ var getElement = function getElement(story, element) {
|
|
|
7643
7671
|
_blurb$css = _blurb$css === void 0 ? {} : _blurb$css;
|
|
7644
7672
|
var _blurb$css$borderColo = _blurb$css.borderColor,
|
|
7645
7673
|
borderColor = _blurb$css$borderColo === void 0 ? "#2f81cd" : _blurb$css$borderColo;
|
|
7646
|
-
return /*#__PURE__*/
|
|
7674
|
+
return /*#__PURE__*/React__default["default"].createElement(Blurb, {
|
|
7647
7675
|
element: element,
|
|
7648
7676
|
template: blurbTemplate,
|
|
7649
7677
|
css: {
|
|
@@ -7662,7 +7690,7 @@ var getElement = function getElement(story, element) {
|
|
|
7662
7690
|
blockQuoteColor = _blockquote$css$block === void 0 ? "#2f81cd" : _blockquote$css$block,
|
|
7663
7691
|
_blockquote$css$backg = _blockquote$css.backgroundShade,
|
|
7664
7692
|
backgroundShade = _blockquote$css$backg === void 0 ? "" : _blockquote$css$backg;
|
|
7665
|
-
return /*#__PURE__*/
|
|
7693
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockQuote, {
|
|
7666
7694
|
element: element,
|
|
7667
7695
|
template: blockQuoteTemplate,
|
|
7668
7696
|
css: {
|
|
@@ -7679,7 +7707,7 @@ var getElement = function getElement(story, element) {
|
|
|
7679
7707
|
_quote$css = _quote$css === void 0 ? {} : _quote$css;
|
|
7680
7708
|
var _quote$css$borderColo = _quote$css.borderColor,
|
|
7681
7709
|
quoteBorderColor = _quote$css$borderColo === void 0 ? "#2f81cd" : _quote$css$borderColo;
|
|
7682
|
-
return /*#__PURE__*/
|
|
7710
|
+
return /*#__PURE__*/React__default["default"].createElement(Quote, {
|
|
7683
7711
|
element: element,
|
|
7684
7712
|
template: quoteTemplate,
|
|
7685
7713
|
css: {
|
|
@@ -7688,7 +7716,7 @@ var getElement = function getElement(story, element) {
|
|
|
7688
7716
|
});
|
|
7689
7717
|
|
|
7690
7718
|
case "bigfact":
|
|
7691
|
-
return /*#__PURE__*/
|
|
7719
|
+
return /*#__PURE__*/React__default["default"].createElement(BigFact, {
|
|
7692
7720
|
element: element
|
|
7693
7721
|
});
|
|
7694
7722
|
|
|
@@ -7703,7 +7731,7 @@ var getElement = function getElement(story, element) {
|
|
|
7703
7731
|
_alsoRead$opts = _alsoRead$opts === void 0 ? {} : _alsoRead$opts;
|
|
7704
7732
|
var _alsoRead$opts$title = _alsoRead$opts.title,
|
|
7705
7733
|
title = _alsoRead$opts$title === void 0 ? "" : _alsoRead$opts$title;
|
|
7706
|
-
return /*#__PURE__*/
|
|
7734
|
+
return /*#__PURE__*/React__default["default"].createElement(AlsoRead, {
|
|
7707
7735
|
story: story,
|
|
7708
7736
|
element: element,
|
|
7709
7737
|
template: alsoReadTemplate,
|
|
@@ -7716,7 +7744,7 @@ var getElement = function getElement(story, element) {
|
|
|
7716
7744
|
});
|
|
7717
7745
|
|
|
7718
7746
|
case "image":
|
|
7719
|
-
return /*#__PURE__*/
|
|
7747
|
+
return /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
7720
7748
|
element: element
|
|
7721
7749
|
});
|
|
7722
7750
|
|
|
@@ -7731,7 +7759,7 @@ var getElement = function getElement(story, element) {
|
|
|
7731
7759
|
_qaElement$opts = _qaElement$opts === void 0 ? {} : _qaElement$opts;
|
|
7732
7760
|
var _qaElement$opts$defau = _qaElement$opts.defaultIconType,
|
|
7733
7761
|
defaultIconType = _qaElement$opts$defau === void 0 ? "edge" : _qaElement$opts$defau;
|
|
7734
|
-
return /*#__PURE__*/
|
|
7762
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7735
7763
|
element: element,
|
|
7736
7764
|
opts: {
|
|
7737
7765
|
type: "q-and-a",
|
|
@@ -7754,7 +7782,7 @@ var getElement = function getElement(story, element) {
|
|
|
7754
7782
|
_questionElement$opts = _questionElement$opts === void 0 ? {} : _questionElement$opts;
|
|
7755
7783
|
var _questionElement$opts2 = _questionElement$opts.defaultQuestionIconType,
|
|
7756
7784
|
defaultQuestionIconType = _questionElement$opts2 === void 0 ? "edge" : _questionElement$opts2;
|
|
7757
|
-
return /*#__PURE__*/
|
|
7785
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7758
7786
|
element: element,
|
|
7759
7787
|
opts: {
|
|
7760
7788
|
type: "question",
|
|
@@ -7777,7 +7805,7 @@ var getElement = function getElement(story, element) {
|
|
|
7777
7805
|
_answerElement$opts = _answerElement$opts === void 0 ? {} : _answerElement$opts;
|
|
7778
7806
|
var _answerElement$opts$d = _answerElement$opts.defaultAnswerIconType,
|
|
7779
7807
|
defaultAnswerIconType = _answerElement$opts$d === void 0 ? "edge" : _answerElement$opts$d;
|
|
7780
|
-
return /*#__PURE__*/
|
|
7808
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7781
7809
|
element: element,
|
|
7782
7810
|
opts: {
|
|
7783
7811
|
type: "answer",
|
|
@@ -7790,43 +7818,43 @@ var getElement = function getElement(story, element) {
|
|
|
7790
7818
|
});
|
|
7791
7819
|
|
|
7792
7820
|
case "gallery":
|
|
7793
|
-
return /*#__PURE__*/
|
|
7821
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7794
7822
|
className: "content-style",
|
|
7795
7823
|
id: "image-gallery-".concat(storyElementId)
|
|
7796
|
-
}, /*#__PURE__*/
|
|
7824
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery, {
|
|
7797
7825
|
element: element
|
|
7798
7826
|
}));
|
|
7799
7827
|
|
|
7800
7828
|
case "slideshow":
|
|
7801
|
-
return /*#__PURE__*/
|
|
7829
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7802
7830
|
className: "content-style",
|
|
7803
7831
|
id: "image-slideshow-".concat(storyElementId)
|
|
7804
|
-
}, /*#__PURE__*/
|
|
7832
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageSlideshow, {
|
|
7805
7833
|
element: element
|
|
7806
7834
|
}));
|
|
7807
7835
|
|
|
7808
7836
|
case "youtube-video":
|
|
7809
7837
|
case "dailymotion-video":
|
|
7810
|
-
return /*#__PURE__*/
|
|
7838
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7811
7839
|
className: "content-style",
|
|
7812
7840
|
id: "video-".concat(storyElementId)
|
|
7813
|
-
}, /*#__PURE__*/
|
|
7841
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
7814
7842
|
element: element,
|
|
7815
7843
|
story: story,
|
|
7816
7844
|
loadIframeOnClick: true
|
|
7817
7845
|
}));
|
|
7818
7846
|
|
|
7819
7847
|
case "attachment":
|
|
7820
|
-
return /*#__PURE__*/
|
|
7848
|
+
return /*#__PURE__*/React__default["default"].createElement(Attachment, {
|
|
7821
7849
|
element: element
|
|
7822
7850
|
});
|
|
7823
7851
|
|
|
7824
7852
|
case "tweet":
|
|
7825
7853
|
case "jsembed":
|
|
7826
|
-
return /*#__PURE__*/
|
|
7854
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7827
7855
|
className: "content-style",
|
|
7828
7856
|
id: "jsembed-".concat(storyElementId)
|
|
7829
|
-
}, /*#__PURE__*/
|
|
7857
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
7830
7858
|
element: element
|
|
7831
7859
|
}));
|
|
7832
7860
|
|
|
@@ -7837,7 +7865,7 @@ var getElement = function getElement(story, element) {
|
|
|
7837
7865
|
showHeadline = _references$opts$show === void 0 ? true : _references$opts$show,
|
|
7838
7866
|
_references$opts$head = _references$opts.headlineText,
|
|
7839
7867
|
headlineText = _references$opts$head === void 0 ? "" : _references$opts$head;
|
|
7840
|
-
return /*#__PURE__*/
|
|
7868
|
+
return /*#__PURE__*/React__default["default"].createElement(Reference, {
|
|
7841
7869
|
element: element,
|
|
7842
7870
|
opts: {
|
|
7843
7871
|
showHeadline: showHeadline,
|
|
@@ -7846,10 +7874,10 @@ var getElement = function getElement(story, element) {
|
|
|
7846
7874
|
});
|
|
7847
7875
|
|
|
7848
7876
|
default:
|
|
7849
|
-
return /*#__PURE__*/
|
|
7877
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7850
7878
|
className: "content-style",
|
|
7851
7879
|
id: "element-".concat(storyElementId)
|
|
7852
|
-
}, /*#__PURE__*/
|
|
7880
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
7853
7881
|
element: element,
|
|
7854
7882
|
story: story
|
|
7855
7883
|
}));
|
|
@@ -7857,12 +7885,12 @@ var getElement = function getElement(story, element) {
|
|
|
7857
7885
|
};
|
|
7858
7886
|
|
|
7859
7887
|
({
|
|
7860
|
-
story:
|
|
7861
|
-
imageElement:
|
|
7862
|
-
config:
|
|
7863
|
-
children:
|
|
7864
|
-
card:
|
|
7865
|
-
id:
|
|
7888
|
+
story: PropTypes__default["default"].object,
|
|
7889
|
+
imageElement: PropTypes__default["default"].object,
|
|
7890
|
+
config: PropTypes__default["default"].object,
|
|
7891
|
+
children: PropTypes__default["default"].node,
|
|
7892
|
+
card: PropTypes__default["default"].shape({
|
|
7893
|
+
id: PropTypes__default["default"].string
|
|
7866
7894
|
})
|
|
7867
7895
|
});
|
|
7868
7896
|
var StoryElementCard = function StoryElementCard(_ref2) {
|
|
@@ -7878,7 +7906,7 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
7878
7906
|
var textColor = getTextColor(theme);
|
|
7879
7907
|
var isLiveBlog = isLive ? "live-blog" : "";
|
|
7880
7908
|
var shouldRunFBMobileVideoFix = true;
|
|
7881
|
-
return /*#__PURE__*/
|
|
7909
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7882
7910
|
className: "arr--story-page-card-wrapper"
|
|
7883
7911
|
}, get_1(card, ["story-elements"], []).map(function (element, index) {
|
|
7884
7912
|
if (element.id === heroVideoElementId) return false;
|
|
@@ -7890,28 +7918,28 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
7890
7918
|
|
|
7891
7919
|
var tableStyle = element && element.subtype === "table" ? "table" : "";
|
|
7892
7920
|
var cardId = get_1(card, ["id"], "");
|
|
7893
|
-
return /*#__PURE__*/
|
|
7921
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7894
7922
|
key: element.id,
|
|
7895
7923
|
className: "arr--element-container " + _getClassName("element-container ".concat(isLiveBlog, " ").concat(tableStyle, " ").concat(textColor), _styleModuleImportMap$5)
|
|
7896
7924
|
}, getElement(story, element, config, adComponent, widgetComp, index, cardId));
|
|
7897
7925
|
}));
|
|
7898
7926
|
};
|
|
7899
7927
|
StoryElementCard.propTypes = {
|
|
7900
|
-
story:
|
|
7901
|
-
card:
|
|
7902
|
-
heroVideoElementId:
|
|
7903
|
-
config:
|
|
7904
|
-
isLive:
|
|
7905
|
-
theme:
|
|
7906
|
-
adComponent:
|
|
7907
|
-
widgetComp:
|
|
7928
|
+
story: PropTypes__default["default"].object,
|
|
7929
|
+
card: PropTypes__default["default"].array,
|
|
7930
|
+
heroVideoElementId: PropTypes__default["default"].number,
|
|
7931
|
+
config: PropTypes__default["default"].object,
|
|
7932
|
+
isLive: PropTypes__default["default"].bool,
|
|
7933
|
+
theme: PropTypes__default["default"].string,
|
|
7934
|
+
adComponent: PropTypes__default["default"].func,
|
|
7935
|
+
widgetComp: PropTypes__default["default"].func
|
|
7908
7936
|
};
|
|
7909
7937
|
({
|
|
7910
|
-
story:
|
|
7911
|
-
card:
|
|
7912
|
-
config:
|
|
7913
|
-
adComponent:
|
|
7914
|
-
widgetComp:
|
|
7938
|
+
story: PropTypes__default["default"].object,
|
|
7939
|
+
card: PropTypes__default["default"].object,
|
|
7940
|
+
config: PropTypes__default["default"].object,
|
|
7941
|
+
adComponent: PropTypes__default["default"].func,
|
|
7942
|
+
widgetComp: PropTypes__default["default"].func
|
|
7915
7943
|
});
|
|
7916
7944
|
var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
7917
7945
|
var _ref4$id = _ref4.id,
|
|
@@ -7923,12 +7951,12 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
7923
7951
|
|
|
7924
7952
|
switch (element.type) {
|
|
7925
7953
|
case "ad":
|
|
7926
|
-
return /*#__PURE__*/
|
|
7954
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
7927
7955
|
id: "ad-after-story-".concat(id)
|
|
7928
7956
|
}));
|
|
7929
7957
|
|
|
7930
7958
|
case "widget":
|
|
7931
|
-
return /*#__PURE__*/
|
|
7959
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
7932
7960
|
widgetCode: element.config.customCode,
|
|
7933
7961
|
id: "widget-after-story-".concat(id)
|
|
7934
7962
|
});
|
|
@@ -7938,10 +7966,10 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
7938
7966
|
}
|
|
7939
7967
|
};
|
|
7940
7968
|
SlotAfterStory.propTypes = {
|
|
7941
|
-
id:
|
|
7942
|
-
element:
|
|
7943
|
-
AdComponent:
|
|
7944
|
-
WidgetComp:
|
|
7969
|
+
id: PropTypes__default["default"].string,
|
|
7970
|
+
element: PropTypes__default["default"].object,
|
|
7971
|
+
AdComponent: PropTypes__default["default"].func,
|
|
7972
|
+
WidgetComp: PropTypes__default["default"].func
|
|
7945
7973
|
};
|
|
7946
7974
|
|
|
7947
7975
|
var _styleModuleImportMap$4 = {
|
|
@@ -7970,12 +7998,12 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
7970
7998
|
_ref$timezone = _ref.timezone,
|
|
7971
7999
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
7972
8000
|
|
|
7973
|
-
var _useState = useState("ltr"),
|
|
8001
|
+
var _useState = React.useState("ltr"),
|
|
7974
8002
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7975
8003
|
direction = _useState2[0],
|
|
7976
8004
|
setDirection = _useState2[1];
|
|
7977
8005
|
|
|
7978
|
-
useEffect(function () {
|
|
8006
|
+
React.useEffect(function () {
|
|
7979
8007
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
7980
8008
|
|
|
7981
8009
|
if (htmlElement && htmlElement.length > 0 && htmlElement[0].dir.toLocaleLowerCase() === "rtl") {
|
|
@@ -8001,41 +8029,41 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
8001
8029
|
direction: direction,
|
|
8002
8030
|
showTime: true
|
|
8003
8031
|
});
|
|
8004
|
-
return /*#__PURE__*/
|
|
8032
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8005
8033
|
"data-test-id": "timeStamp",
|
|
8006
8034
|
className: "arrow-component arr-publish-details " + _getClassName("timeStamp ".concat(textColor), _styleModuleImportMap$4)
|
|
8007
|
-
}, /*#__PURE__*/
|
|
8035
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8008
8036
|
"data-test-id": "publishDetails",
|
|
8009
8037
|
className: _getClassName("publish-details ".concat(textColor), _styleModuleImportMap$4)
|
|
8010
|
-
}, enablePublishedTime && /*#__PURE__*/
|
|
8038
|
+
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8011
8039
|
className: "publish-details-m_date__3ZIQN"
|
|
8012
|
-
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
8040
|
+
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
8013
8041
|
story: story,
|
|
8014
8042
|
opts: opts
|
|
8015
|
-
}))), enableUpdatedTime && /*#__PURE__*/
|
|
8043
|
+
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8016
8044
|
"data-test-id": "updateDetails",
|
|
8017
8045
|
className: _getClassName("update-details ".concat(textColor), _styleModuleImportMap$4)
|
|
8018
|
-
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/
|
|
8046
|
+
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8019
8047
|
className: "publish-details-m_date__3ZIQN"
|
|
8020
|
-
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
8048
|
+
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
8021
8049
|
story: story,
|
|
8022
8050
|
opts: opts
|
|
8023
8051
|
})));
|
|
8024
8052
|
};
|
|
8025
8053
|
PublishDetails.propTypes = {
|
|
8026
8054
|
/** The Story Object from the API response */
|
|
8027
|
-
story:
|
|
8028
|
-
"first-published-at":
|
|
8029
|
-
"last-published-at":
|
|
8030
|
-
"read-time":
|
|
8031
|
-
"updated-at":
|
|
8055
|
+
story: PropTypes__default["default"].shape({
|
|
8056
|
+
"first-published-at": PropTypes__default["default"].number,
|
|
8057
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
8058
|
+
"read-time": PropTypes__default["default"].number,
|
|
8059
|
+
"updated-at": PropTypes__default["default"].number
|
|
8032
8060
|
}),
|
|
8033
|
-
timezone:
|
|
8034
|
-
template:
|
|
8035
|
-
opts:
|
|
8036
|
-
showReadTime:
|
|
8037
|
-
enableUpdatedTime:
|
|
8038
|
-
enablePublishedTime:
|
|
8061
|
+
timezone: PropTypes__default["default"].string,
|
|
8062
|
+
template: PropTypes__default["default"].string,
|
|
8063
|
+
opts: PropTypes__default["default"].shape({
|
|
8064
|
+
showReadTime: PropTypes__default["default"].bool,
|
|
8065
|
+
enableUpdatedTime: PropTypes__default["default"].bool,
|
|
8066
|
+
enablePublishedTime: PropTypes__default["default"].bool
|
|
8039
8067
|
})
|
|
8040
8068
|
};
|
|
8041
8069
|
|
|
@@ -8058,24 +8086,24 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
8058
8086
|
var textColor = getTextColor(configData.theme);
|
|
8059
8087
|
var mountAt = get_1(config, ["mountAt"], "");
|
|
8060
8088
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
8061
|
-
return /*#__PURE__*/
|
|
8089
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8062
8090
|
className: "arrow-component arr--story-tags"
|
|
8063
8091
|
}, tags.length > 0 && tags.map(function (tag, index) {
|
|
8064
|
-
return /*#__PURE__*/
|
|
8092
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8065
8093
|
key: index,
|
|
8066
8094
|
"data-test-id": "story-tag",
|
|
8067
8095
|
className: _getClassName("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$3)
|
|
8068
|
-
}, /*#__PURE__*/
|
|
8096
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
8069
8097
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
8070
8098
|
"aria-label": "story-tag-name"
|
|
8071
8099
|
}, tag.name));
|
|
8072
8100
|
}));
|
|
8073
8101
|
};
|
|
8074
8102
|
StoryTags.propTypes = {
|
|
8075
|
-
tags:
|
|
8076
|
-
borderColor:
|
|
8077
|
-
config:
|
|
8078
|
-
template: string
|
|
8103
|
+
tags: PropTypes__default["default"].array,
|
|
8104
|
+
borderColor: PropTypes__default["default"].string,
|
|
8105
|
+
config: PropTypes__default["default"].object,
|
|
8106
|
+
template: PropTypes.string
|
|
8079
8107
|
};
|
|
8080
8108
|
|
|
8081
8109
|
var _styleModuleImportMap$2 = {
|
|
@@ -8102,29 +8130,29 @@ var StoryHeadline = function StoryHeadline(_ref) {
|
|
|
8102
8130
|
var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
|
|
8103
8131
|
var wrapperClass = premiumStory ? "premium-wrapper" : "wrapper";
|
|
8104
8132
|
var iconSize = "40px";
|
|
8105
|
-
return /*#__PURE__*/
|
|
8133
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8106
8134
|
className: "arrow-component arr--story-headline " + _getClassName(wrapperClass, _styleModuleImportMap$2)
|
|
8107
|
-
}, premiumStory && /*#__PURE__*/
|
|
8135
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
8108
8136
|
width: iconSize,
|
|
8109
8137
|
height: iconSize,
|
|
8110
8138
|
color: iconColor,
|
|
8111
8139
|
iconType: iconStyle,
|
|
8112
8140
|
positionTop: "6px"
|
|
8113
|
-
}), /*#__PURE__*/
|
|
8141
|
+
}), /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
8114
8142
|
"data-testid": "story-headline",
|
|
8115
8143
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$2)
|
|
8116
|
-
}, /*#__PURE__*/
|
|
8144
|
+
}, /*#__PURE__*/React__default["default"].createElement("bdi", {
|
|
8117
8145
|
dangerouslySetInnerHTML: {
|
|
8118
8146
|
__html: story.headline
|
|
8119
8147
|
}
|
|
8120
8148
|
})));
|
|
8121
8149
|
};
|
|
8122
8150
|
StoryHeadline.propTypes = {
|
|
8123
|
-
story:
|
|
8124
|
-
premiumStoryIconConfig:
|
|
8125
|
-
iconColor:
|
|
8126
|
-
iconType:
|
|
8127
|
-
enablePremiumStoryIcon:
|
|
8151
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
8152
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
8153
|
+
iconColor: PropTypes__default["default"].string,
|
|
8154
|
+
iconType: PropTypes__default["default"].string,
|
|
8155
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
8128
8156
|
})
|
|
8129
8157
|
};
|
|
8130
8158
|
|
|
@@ -8207,18 +8235,18 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8207
8235
|
|
|
8208
8236
|
var HeaderCard = function HeaderCard() {
|
|
8209
8237
|
var isBlogClosed = get_1(story, ["metadata", "is-closed"]);
|
|
8210
|
-
return /*#__PURE__*/
|
|
8238
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8211
8239
|
className: "live-blog-m_header-wrapper__3rFRU live-blog-m_header-details__1VbwD"
|
|
8212
|
-
}, /*#__PURE__*/
|
|
8240
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8213
8241
|
story: story
|
|
8214
|
-
}), /*#__PURE__*/
|
|
8242
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8215
8243
|
className: "live-blog-m_live-headline__1Y1iT"
|
|
8216
|
-
}, !isBlogClosed && /*#__PURE__*/
|
|
8244
|
+
}, !isBlogClosed && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8217
8245
|
className: "live-blog-m_live-icon__zzBV_"
|
|
8218
|
-
}, /*#__PURE__*/
|
|
8246
|
+
}, /*#__PURE__*/React__default["default"].createElement(LiveIcon, null)), /*#__PURE__*/React__default["default"].createElement(StoryHeadline, {
|
|
8219
8247
|
story: story,
|
|
8220
8248
|
premiumStoryIconConfig: premiumStoryIconConfig
|
|
8221
|
-
})), /*#__PURE__*/
|
|
8249
|
+
})), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
8222
8250
|
story: story,
|
|
8223
8251
|
showFullContent: true
|
|
8224
8252
|
}));
|
|
@@ -8231,27 +8259,27 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8231
8259
|
var borderBottom = index === visibleCards.length - 1 ? "" : "share-cards ".concat(textColor);
|
|
8232
8260
|
var cardId = get_1(card, ["id"], "");
|
|
8233
8261
|
var cardAddedAt = card["card-added-at"];
|
|
8234
|
-
return /*#__PURE__*/
|
|
8262
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8235
8263
|
key: index,
|
|
8236
8264
|
className: _getClassName(borderBottom, _styleModuleImportMap$1)
|
|
8237
|
-
}, /*#__PURE__*/
|
|
8265
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8238
8266
|
className: "live-blog-m_card-share__nvSEx"
|
|
8239
|
-
}, /*#__PURE__*/
|
|
8267
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8240
8268
|
className: _getClassName("time-wrapper ".concat(textColor), _styleModuleImportMap$1)
|
|
8241
|
-
}, /*#__PURE__*/
|
|
8269
|
+
}, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
|
|
8242
8270
|
color: updateColor
|
|
8243
8271
|
}), getTimeStamp(cardAddedAt, timestampToFormat, {
|
|
8244
8272
|
isTimeFirst: true
|
|
8245
|
-
})), /*#__PURE__*/
|
|
8273
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8246
8274
|
id: "card-share-".concat(cardId, "_").concat(storyId),
|
|
8247
8275
|
className: "content-style"
|
|
8248
|
-
}, /*#__PURE__*/
|
|
8276
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8249
8277
|
template: SocialShareTemplate,
|
|
8250
8278
|
fullUrl: encodeURI(story.url),
|
|
8251
8279
|
title: story.headline,
|
|
8252
8280
|
theme: theme,
|
|
8253
8281
|
iconType: shareIconType
|
|
8254
|
-
}))), /*#__PURE__*/
|
|
8282
|
+
}))), /*#__PURE__*/React__default["default"].createElement(StoryElementCard, {
|
|
8255
8283
|
story: story,
|
|
8256
8284
|
card: card,
|
|
8257
8285
|
key: cardId,
|
|
@@ -8265,10 +8293,10 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8265
8293
|
};
|
|
8266
8294
|
|
|
8267
8295
|
var keyEvents = function keyEvents() {
|
|
8268
|
-
return /*#__PURE__*/
|
|
8296
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8269
8297
|
className: "live-blog-m_key-events__2YDJ3",
|
|
8270
8298
|
id: "key-events-".concat(storyId)
|
|
8271
|
-
}, /*#__PURE__*/
|
|
8299
|
+
}, /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
8272
8300
|
story: story,
|
|
8273
8301
|
showLoadMore: true,
|
|
8274
8302
|
config: config
|
|
@@ -8276,10 +8304,10 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8276
8304
|
};
|
|
8277
8305
|
|
|
8278
8306
|
var SocialShareComponent = function SocialShareComponent() {
|
|
8279
|
-
return /*#__PURE__*/
|
|
8307
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8280
8308
|
id: "story-share-".concat(storyId),
|
|
8281
8309
|
className: "content-style"
|
|
8282
|
-
}, /*#__PURE__*/
|
|
8310
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8283
8311
|
template: SocialShareTemplate,
|
|
8284
8312
|
fullUrl: encodeURI(story.url),
|
|
8285
8313
|
title: story.headline,
|
|
@@ -8299,23 +8327,23 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8299
8327
|
};
|
|
8300
8328
|
|
|
8301
8329
|
var StoryData = function StoryData() {
|
|
8302
|
-
return /*#__PURE__*/
|
|
8330
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(AuthorCard, {
|
|
8303
8331
|
clazzName: "gap-32",
|
|
8304
8332
|
story: story,
|
|
8305
8333
|
template: authorDetails.template,
|
|
8306
8334
|
opts: authorDetails.opts
|
|
8307
|
-
}), /*#__PURE__*/
|
|
8335
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8308
8336
|
className: "live-blog-m_timestamp-social-share__2siNN"
|
|
8309
|
-
}, /*#__PURE__*/
|
|
8337
|
+
}, /*#__PURE__*/React__default["default"].createElement(PublishDetails, {
|
|
8310
8338
|
story: story,
|
|
8311
8339
|
opts: publishedDetails,
|
|
8312
8340
|
template: "story",
|
|
8313
8341
|
timezone: timezone
|
|
8314
|
-
}), !verticalShare && /*#__PURE__*/
|
|
8342
|
+
}), !verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null)), showKeyEvents(), /*#__PURE__*/React__default["default"].createElement(StoryCards, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8315
8343
|
className: "live-blog-m_space-32__3J4JJ"
|
|
8316
|
-
}, firstChild, /*#__PURE__*/
|
|
8344
|
+
}, firstChild, /*#__PURE__*/React__default["default"].createElement(StoryTags, {
|
|
8317
8345
|
tags: story.tags
|
|
8318
|
-
}), /*#__PURE__*/
|
|
8346
|
+
}), /*#__PURE__*/React__default["default"].createElement(SlotAfterStory, {
|
|
8319
8347
|
id: story.id,
|
|
8320
8348
|
element: story.customSlotAfterStory,
|
|
8321
8349
|
AdComponent: adComponent,
|
|
@@ -8324,21 +8352,21 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8324
8352
|
};
|
|
8325
8353
|
|
|
8326
8354
|
var DefaultTemplate = function DefaultTemplate(story) {
|
|
8327
|
-
return /*#__PURE__*/
|
|
8355
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8328
8356
|
"data-test-id": "hero-image",
|
|
8329
8357
|
className: "live-blog-m_grid-col-full__3iWHn live-blog-m_index-2__2f0tW"
|
|
8330
|
-
}, /*#__PURE__*/
|
|
8358
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8331
8359
|
story: story,
|
|
8332
8360
|
aspectRatio: [[16, 9], [8, 3]],
|
|
8333
8361
|
isStoryPageImage: true
|
|
8334
|
-
})), /*#__PURE__*/
|
|
8362
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8335
8363
|
className: "live-blog-m_header-wrapper__3rFRU"
|
|
8336
|
-
}, /*#__PURE__*/
|
|
8364
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8337
8365
|
story: story,
|
|
8338
8366
|
config: config
|
|
8339
|
-
}), /*#__PURE__*/
|
|
8367
|
+
}), /*#__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("div", {
|
|
8340
8368
|
className: "live-blog-m_side-column__Ss2sl"
|
|
8341
|
-
}, asideCollection && /*#__PURE__*/
|
|
8369
|
+
}, asideCollection && /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8342
8370
|
adComponent: adComponent,
|
|
8343
8371
|
widgetComp: widgetComp,
|
|
8344
8372
|
sticky: true,
|
|
@@ -8354,22 +8382,22 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8354
8382
|
};
|
|
8355
8383
|
|
|
8356
8384
|
var HeroOverlay = function HeroOverlay(story) {
|
|
8357
|
-
return /*#__PURE__*/
|
|
8385
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8358
8386
|
className: "live-blog-m_overlay-hero__30Yoo live-blog-m_index-2__2f0tW"
|
|
8359
|
-
}, /*#__PURE__*/
|
|
8387
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8360
8388
|
story: story,
|
|
8361
8389
|
aspectRatio: [[1, 2], [16, 9]],
|
|
8362
8390
|
isStoryPageImage: true
|
|
8363
|
-
})), /*#__PURE__*/
|
|
8391
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8364
8392
|
className: "live-blog-m_overlay-grid__1-XBm"
|
|
8365
|
-
}, /*#__PURE__*/
|
|
8393
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8366
8394
|
className: "live-blog-m_grid-col-4-12__XeqdX"
|
|
8367
|
-
}, /*#__PURE__*/
|
|
8395
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8368
8396
|
story: story,
|
|
8369
8397
|
config: config
|
|
8370
|
-
}), /*#__PURE__*/
|
|
8398
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8371
8399
|
className: "live-blog-m_grid-container__1b98H live-blog-m_tablet-index-2__2WqZJ"
|
|
8372
|
-
}, /*#__PURE__*/
|
|
8400
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8373
8401
|
horizontal: true
|
|
8374
8402
|
}, asideCollection, {
|
|
8375
8403
|
adComponent: adComponent,
|
|
@@ -8380,22 +8408,22 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8380
8408
|
};
|
|
8381
8409
|
|
|
8382
8410
|
var HeadlineSideway = function HeadlineSideway(story) {
|
|
8383
|
-
return /*#__PURE__*/
|
|
8411
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8384
8412
|
className: "live-blog-m_grid-col-2-9__IJ4Ok live-blog-m_sideway__1j2fD"
|
|
8385
|
-
}, /*#__PURE__*/
|
|
8413
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8386
8414
|
className: "live-blog-m_grid-col-9-15__MwtUq live-blog-m_index-2__2f0tW"
|
|
8387
|
-
}, /*#__PURE__*/
|
|
8415
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8388
8416
|
story: story,
|
|
8389
8417
|
aspectRatio: [[4, 3]],
|
|
8390
8418
|
isStoryPageImage: true
|
|
8391
|
-
}), /*#__PURE__*/
|
|
8419
|
+
}), /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8392
8420
|
story: story,
|
|
8393
8421
|
config: config
|
|
8394
|
-
})), /*#__PURE__*/
|
|
8422
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8395
8423
|
className: "live-blog-m_grid-col-4-12__XeqdX"
|
|
8396
|
-
}, /*#__PURE__*/
|
|
8424
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8397
8425
|
className: "live-blog-m_grid-container__1b98H live-blog-m_tablet-index-2__2WqZJ"
|
|
8398
|
-
}, /*#__PURE__*/
|
|
8426
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8399
8427
|
horizontal: true
|
|
8400
8428
|
}, asideCollection, {
|
|
8401
8429
|
adComponent: adComponent,
|
|
@@ -8406,22 +8434,22 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8406
8434
|
};
|
|
8407
8435
|
|
|
8408
8436
|
var HeadlinePriority = function HeadlinePriority(story) {
|
|
8409
|
-
return /*#__PURE__*/
|
|
8437
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8410
8438
|
className: "live-blog-m_grid-col-2-9__IJ4Ok live-blog-m_grid-row-1-2__2t7wA live-blog-m_headline-space__2Dhkq"
|
|
8411
|
-
}, /*#__PURE__*/
|
|
8439
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8412
8440
|
className: "live-blog-m_grid-col-2-9__IJ4Ok live-blog-m_grid-row-2-3__32fm_ live-blog-m_index-2__2f0tW"
|
|
8413
|
-
}, /*#__PURE__*/
|
|
8441
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8414
8442
|
story: story,
|
|
8415
8443
|
aspectRatio: [[16, 9]],
|
|
8416
8444
|
isStoryPageImage: true
|
|
8417
|
-
})), /*#__PURE__*/
|
|
8445
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8418
8446
|
className: "live-blog-m_grid-col-2-9__IJ4Ok live-blog-m_grid-row-3-4__2LIEm"
|
|
8419
|
-
}, /*#__PURE__*/
|
|
8447
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8420
8448
|
story: story,
|
|
8421
8449
|
config: config
|
|
8422
|
-
}), /*#__PURE__*/
|
|
8450
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8423
8451
|
className: "live-blog-m_grid-col-9-14__2oCwT live-blog-m_grid-row-1-6__3CH8o"
|
|
8424
|
-
}, asideCollection && /*#__PURE__*/
|
|
8452
|
+
}, asideCollection && /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8425
8453
|
adComponent: adComponent,
|
|
8426
8454
|
widgetComp: widgetComp,
|
|
8427
8455
|
sticky: true,
|
|
@@ -8437,20 +8465,20 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8437
8465
|
};
|
|
8438
8466
|
|
|
8439
8467
|
var HeroPriority = function HeroPriority(story) {
|
|
8440
|
-
return /*#__PURE__*/
|
|
8468
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8441
8469
|
className: "live-blog-m_grid-container__1b98H live-blog-m_index-2__2f0tW"
|
|
8442
|
-
}, /*#__PURE__*/
|
|
8470
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8443
8471
|
story: story,
|
|
8444
8472
|
aspectRatio: [[16, 9]],
|
|
8445
8473
|
isStoryPageImage: true
|
|
8446
|
-
})), /*#__PURE__*/
|
|
8474
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8447
8475
|
className: "live-blog-m_grid-col-4-12__XeqdX"
|
|
8448
|
-
}, /*#__PURE__*/
|
|
8476
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8449
8477
|
story: story,
|
|
8450
8478
|
config: config
|
|
8451
|
-
}), /*#__PURE__*/
|
|
8479
|
+
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8452
8480
|
className: "live-blog-m_grid-container__1b98H live-blog-m_tablet-index-2__2WqZJ"
|
|
8453
|
-
}, /*#__PURE__*/
|
|
8481
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8454
8482
|
horizontal: true
|
|
8455
8483
|
}, asideCollection, {
|
|
8456
8484
|
adComponent: adComponent,
|
|
@@ -8461,22 +8489,22 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8461
8489
|
};
|
|
8462
8490
|
|
|
8463
8491
|
var HeadlineHeroPriority = function HeadlineHeroPriority(story) {
|
|
8464
|
-
return /*#__PURE__*/
|
|
8492
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8465
8493
|
className: "live-blog-m_grid-col-4-12__XeqdX live-blog-m_headline-space__2Dhkq"
|
|
8466
|
-
}, /*#__PURE__*/
|
|
8494
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8467
8495
|
className: "live-blog-m_grid-container__1b98H live-blog-m_index-2__2f0tW"
|
|
8468
|
-
}, /*#__PURE__*/
|
|
8496
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8469
8497
|
story: story,
|
|
8470
8498
|
aspectRatio: [[16, 9]],
|
|
8471
8499
|
isStoryPageImage: true
|
|
8472
|
-
})), /*#__PURE__*/
|
|
8500
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8473
8501
|
className: "live-blog-m_grid-col-4-12__XeqdX"
|
|
8474
|
-
}, /*#__PURE__*/
|
|
8502
|
+
}, /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
8475
8503
|
story: story,
|
|
8476
8504
|
config: config
|
|
8477
|
-
}), /*#__PURE__*/
|
|
8505
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8478
8506
|
className: "live-blog-m_grid-container__1b98H live-blog-m_tablet-index-2__2WqZJ"
|
|
8479
|
-
}, /*#__PURE__*/
|
|
8507
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8480
8508
|
horizontal: true
|
|
8481
8509
|
}, asideCollection, {
|
|
8482
8510
|
adComponent: adComponent,
|
|
@@ -8508,21 +8536,21 @@ var LiveBlogStoryTemplates = function LiveBlogStoryTemplates(_ref) {
|
|
|
8508
8536
|
}
|
|
8509
8537
|
};
|
|
8510
8538
|
|
|
8511
|
-
return /*#__PURE__*/
|
|
8539
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, getLiveBlogStoryTemplates(templateType));
|
|
8512
8540
|
};
|
|
8513
8541
|
LiveBlogStoryTemplates.propTypes = {
|
|
8514
|
-
story:
|
|
8515
|
-
config:
|
|
8516
|
-
templateType:
|
|
8517
|
-
authorCard:
|
|
8518
|
-
asideCollection:
|
|
8542
|
+
story: PropTypes__default["default"].object,
|
|
8543
|
+
config: PropTypes__default["default"].shape({
|
|
8544
|
+
templateType: PropTypes__default["default"].string,
|
|
8545
|
+
authorCard: PropTypes__default["default"].object,
|
|
8546
|
+
asideCollection: PropTypes__default["default"].object
|
|
8519
8547
|
}),
|
|
8520
|
-
timezone:
|
|
8521
|
-
firstChild:
|
|
8522
|
-
secondChild:
|
|
8523
|
-
storyElementsConfig:
|
|
8524
|
-
adComponent:
|
|
8525
|
-
widgetComp:
|
|
8548
|
+
timezone: PropTypes__default["default"].string,
|
|
8549
|
+
firstChild: PropTypes__default["default"].node,
|
|
8550
|
+
secondChild: PropTypes__default["default"].node,
|
|
8551
|
+
storyElementsConfig: PropTypes__default["default"].object,
|
|
8552
|
+
adComponent: PropTypes__default["default"].func,
|
|
8553
|
+
widgetComp: PropTypes__default["default"].func
|
|
8526
8554
|
};
|
|
8527
8555
|
|
|
8528
8556
|
var _styleModuleImportMap = {
|
|
@@ -8581,16 +8609,16 @@ var LiveBlogStoryTemplateBase = function LiveBlogStoryTemplateBase(_ref) {
|
|
|
8581
8609
|
_config$verticalShare = config.verticalShare,
|
|
8582
8610
|
verticalShare = _config$verticalShare === void 0 ? "" : _config$verticalShare;
|
|
8583
8611
|
var containerClass = templateType !== "hero-overlay" ? "container" : "";
|
|
8584
|
-
var timezone = useSelector(function (state) {
|
|
8612
|
+
var timezone = reactRedux.useSelector(function (state) {
|
|
8585
8613
|
return get_1(state, ["qt", "data", "timezone"], null);
|
|
8586
8614
|
});
|
|
8587
|
-
return /*#__PURE__*/
|
|
8615
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8588
8616
|
"data-test-id": "live-blog-".concat(templateType),
|
|
8589
8617
|
style: {
|
|
8590
8618
|
backgroundColor: theme
|
|
8591
8619
|
},
|
|
8592
8620
|
className: ("arrow-component arr--content-wrapper arr-story-grid arr--live-blog-story-template-wrapper ".concat(templateType) ? "arrow-component arr--content-wrapper arr-story-grid arr--live-blog-story-template-wrapper ".concat(templateType) + " " : "") + _getClassName("".concat(containerClass, " ").concat(verticalShare, " wrapper"), _styleModuleImportMap)
|
|
8593
|
-
}, /*#__PURE__*/
|
|
8621
|
+
}, /*#__PURE__*/React__default["default"].createElement(LiveBlogStoryTemplates, {
|
|
8594
8622
|
templateType: templateType,
|
|
8595
8623
|
story: story,
|
|
8596
8624
|
storyElementsConfig: storyElementsConfig,
|
|
@@ -8603,16 +8631,17 @@ var LiveBlogStoryTemplateBase = function LiveBlogStoryTemplateBase(_ref) {
|
|
|
8603
8631
|
}));
|
|
8604
8632
|
};
|
|
8605
8633
|
LiveBlogStoryTemplateBase.propTypes = {
|
|
8606
|
-
story:
|
|
8607
|
-
config:
|
|
8608
|
-
templateType:
|
|
8634
|
+
story: PropTypes__default["default"].object,
|
|
8635
|
+
config: PropTypes__default["default"].shape({
|
|
8636
|
+
templateType: PropTypes__default["default"].string
|
|
8609
8637
|
}),
|
|
8610
|
-
firstChild:
|
|
8611
|
-
secondChild:
|
|
8612
|
-
storyElementsConfig:
|
|
8613
|
-
adComponent:
|
|
8614
|
-
widgetComp:
|
|
8638
|
+
firstChild: PropTypes__default["default"].node,
|
|
8639
|
+
secondChild: PropTypes__default["default"].node,
|
|
8640
|
+
storyElementsConfig: PropTypes__default["default"].object,
|
|
8641
|
+
adComponent: PropTypes__default["default"].func,
|
|
8642
|
+
widgetComp: PropTypes__default["default"].func
|
|
8615
8643
|
};
|
|
8616
8644
|
var LiveBlogStoryTemplate = StateProvider(LiveBlogStoryTemplateBase);
|
|
8617
8645
|
|
|
8618
|
-
|
|
8646
|
+
exports.LiveBlogStoryTemplate = LiveBlogStoryTemplate;
|
|
8647
|
+
exports.LiveBlogStoryTemplateBase = LiveBlogStoryTemplateBase;
|