@quintype/arrow 3.15.1-perf.0 → 3.15.1-perf.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/Author/index.js +38 -29
- package/atoms/AuthorWithTime/index.js +83 -73
- package/atoms/CollectionName/index.js +40 -30
- package/atoms/ExtendedLoadMore/{index-4577d5b9.js → index-3976fac4.js} +62 -55
- package/atoms/ExtendedLoadMore/{index-0edaa434.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-70ce7471.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-b3ef1488.js → index-6e083738.js} +63 -56
- package/atoms/ExtendedLoadMore/{index-48664b07.js → index-6ecceae4.js} +61 -54
- package/atoms/ExtendedLoadMore/{index-4c3c2b6f.js → index-9e0d32b7.js} +79 -72
- package/atoms/ExtendedLoadMore/{index-c47ff5bc.js → index-a5c95f84.js} +73 -66
- package/atoms/ExtendedLoadMore/{index-4b9207c4.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-8f6483ba.js → index-b5936059.js} +75 -68
- package/atoms/ExtendedLoadMore/{index-b841407e.js → index-bc129cb8.js} +60 -53
- package/atoms/ExtendedLoadMore/{index-d08b6c2f.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-867b9437.js → index-fee73a14.js} +67 -61
- package/atoms/ExtendedLoadMore/index.js +13 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +85 -76
- package/atoms/HeroImage/index.js +69 -60
- package/atoms/LoadmoreButton/index.js +32 -23
- package/atoms/ScrollSnap/index.js +72 -63
- package/atoms/SectionTag/index.js +34 -25
- package/atoms/Subheadline/index.js +31 -22
- package/atoms/TimeStamp/index.js +34 -24
- package/molecules/KeyEvents/index.js +75 -66
- package/molecules/PageIntroductionCard/index.js +43 -34
- package/molecules/SocialShareTemplate/index.js +97 -88
- package/molecules/StoryCard/index.js +242 -232
- package/molecules/StoryElementCard/index.js +512 -483
- package/molecules/StorycardContent/index.js +172 -162
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +349 -339
- package/rows/AsideCollection/index.js +346 -340
- package/rows/AstrologyCollection/index.js +325 -315
- package/rows/AuthorIntroductionCard/index.js +157 -150
- package/rows/AuthorsList/index.js +187 -180
- package/rows/CollectionFilter/index.js +365 -355
- package/rows/ElevenStories/index.js +360 -351
- package/rows/FourColFiveStories/index.js +308 -279
- package/rows/FourColGrid/index.js +355 -326
- package/rows/FourColPortraitStories/index.js +364 -336
- package/rows/FourColSixteenStories/index.js +291 -281
- package/rows/FourColTwelveStories/index.js +318 -308
- package/rows/FourStorySlider/index.js +362 -352
- package/rows/FourStorySliderPortrait/index.js +363 -353
- package/rows/FourTabbedBigStorySlider/index.js +325 -314
- package/rows/FullScreenSlider/index.js +339 -330
- package/rows/HalfScreenSlider/index.js +311 -302
- package/rows/ListComponent/index.js +325 -315
- package/rows/Listicles/index.js +154 -145
- package/rows/MagazineEditions/index.js +107 -98
- package/rows/MagazineHeaderCard/index.js +107 -98
- package/rows/MagazineWidget/index.js +329 -320
- package/rows/OneColStoryList/index.js +369 -340
- package/rows/OpinionCollection/index.js +254 -225
- package/rows/SixColSixStories/index.js +337 -308
- package/rows/StoryCollection/index.js +346 -340
- package/rows/TagIntroductionCard/index.js +30 -23
- package/rows/ThreeColFlexStories/index.js +352 -323
- package/rows/ThreeColFourteenStories/index.js +288 -278
- package/rows/ThreeColGrid/index.js +356 -327
- package/rows/ThreeColSevenStory/index.js +325 -316
- package/rows/ThreeColSixStories/index.js +326 -316
- package/rows/ThreeColTwelveStories/index.js +305 -295
- package/rows/TwoColFourStories/index.js +319 -308
- package/rows/TwoColFourStoryHighlight/index.js +320 -309
- package/rows/TwoColSevenStories/index.js +326 -315
- package/rows/TwoColSixStories/index.js +319 -310
- package/rows/TwoColTenStoriesSidebar/index.js +341 -330
- package/rows/TwoColThreeStories/index.js +319 -308
- package/story-elements/AlsoRead/index.js +70 -61
- package/story-elements/Attachment/index.js +40 -31
- package/story-elements/BigFact/index.js +35 -26
- package/story-elements/BlockQuote/index.js +61 -51
- package/story-elements/Blurb/index.js +36 -27
- package/story-elements/Image/index.js +113 -86
- package/story-elements/ImageGallery/index.js +98 -71
- package/story-elements/ImageSlideshow/index.js +147 -120
- package/story-elements/QuestionAnswer/index.js +55 -46
- package/story-elements/Quote/index.js +37 -28
- package/story-elements/Reference/index.js +40 -31
- package/story-elements/StoryElement/index.js +28 -19
- package/story-elements/Summary/index.js +40 -31
- package/story-elements/Text/index.js +34 -25
- package/story-elements/Video/index.js +29 -20
- package/{rows → story-templates}/ListicleStoryTemplate/index.js +947 -926
- package/{rows → story-templates}/ListicleStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/LiveBlogStoryTemplate/index.js +952 -931
- package/{rows → story-templates}/LiveBlogStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/PhotoStoryTemplate/index.js +922 -901
- package/{rows → story-templates}/PhotoStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/TextStoryTemplate/index.js +941 -920
- package/{rows → story-templates}/TextStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/VideoStoryTemplate/index.js +907 -886
- package/{rows → story-templates}/VideoStoryTemplate/styles.arrow.css +0 -0
- package/atoms/ExtendedLoadMore/index-96c36b0e.js +0 -86
|
@@ -1,9 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components = require('@quintype/components');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactRedux = require('react-redux');
|
|
9
|
+
var Timeago = require('react-timeago');
|
|
10
|
+
var dateFnsTz = require('date-fns-tz');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
33
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
34
|
+
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
7
35
|
|
|
8
36
|
function _extends() {
|
|
9
37
|
_extends = Object.assign || function (target) {
|
|
@@ -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$A = {
|
|
|
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$A)
|
|
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$z)
|
|
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$z)
|
|
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$z)
|
|
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$z)
|
|
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$y = {
|
|
@@ -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$y)
|
|
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: "",
|
|
@@ -3685,7 +3713,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3685
3713
|
_ref$color = _ref.color,
|
|
3686
3714
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
3687
3715
|
positionTop = _ref.positionTop;
|
|
3688
|
-
return /*#__PURE__*/
|
|
3716
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3689
3717
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3690
3718
|
width: width,
|
|
3691
3719
|
height: height,
|
|
@@ -3694,28 +3722,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
3694
3722
|
position: "relative",
|
|
3695
3723
|
top: positionTop
|
|
3696
3724
|
}
|
|
3697
|
-
}, /*#__PURE__*/
|
|
3725
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3698
3726
|
fill: "none",
|
|
3699
3727
|
fillRule: "evenodd",
|
|
3700
3728
|
stroke: "none",
|
|
3701
3729
|
strokeWidth: "1"
|
|
3702
|
-
}, /*#__PURE__*/
|
|
3730
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3703
3731
|
transform: "translate(8 8)"
|
|
3704
|
-
}, /*#__PURE__*/
|
|
3732
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3705
3733
|
d: "M0 0H24V24H0z"
|
|
3706
|
-
}), /*#__PURE__*/
|
|
3734
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3707
3735
|
fill: color,
|
|
3708
3736
|
fillRule: "nonzero",
|
|
3709
3737
|
transform: "translate(0 2)"
|
|
3710
|
-
}, /*#__PURE__*/
|
|
3738
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3711
3739
|
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"
|
|
3712
3740
|
}))))));
|
|
3713
3741
|
};
|
|
3714
3742
|
CrownIcon.propTypes = {
|
|
3715
|
-
height:
|
|
3716
|
-
width:
|
|
3717
|
-
color:
|
|
3718
|
-
positionTop:
|
|
3743
|
+
height: PropTypes__default["default"].string,
|
|
3744
|
+
width: PropTypes__default["default"].string,
|
|
3745
|
+
color: PropTypes__default["default"].string,
|
|
3746
|
+
positionTop: PropTypes__default["default"].string
|
|
3719
3747
|
};
|
|
3720
3748
|
|
|
3721
3749
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -3724,7 +3752,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3724
3752
|
_ref$color = _ref.color,
|
|
3725
3753
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3726
3754
|
positionTop = _ref.positionTop;
|
|
3727
|
-
return /*#__PURE__*/
|
|
3755
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3728
3756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3729
3757
|
width: width,
|
|
3730
3758
|
height: height,
|
|
@@ -3733,16 +3761,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3733
3761
|
position: "relative",
|
|
3734
3762
|
top: positionTop
|
|
3735
3763
|
}
|
|
3736
|
-
}, /*#__PURE__*/
|
|
3764
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3737
3765
|
fill: "none",
|
|
3738
3766
|
fillRule: "evenodd",
|
|
3739
3767
|
stroke: "none",
|
|
3740
3768
|
strokeWidth: "1"
|
|
3741
|
-
}, /*#__PURE__*/
|
|
3769
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3742
3770
|
transform: "translate(8 8)"
|
|
3743
|
-
}, /*#__PURE__*/
|
|
3771
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3744
3772
|
d: "M0 0H24V24H0z"
|
|
3745
|
-
}), /*#__PURE__*/
|
|
3773
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3746
3774
|
fill: color,
|
|
3747
3775
|
fillRule: "nonzero",
|
|
3748
3776
|
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",
|
|
@@ -3750,10 +3778,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
3750
3778
|
})))));
|
|
3751
3779
|
};
|
|
3752
3780
|
KeyIcon.propTypes = {
|
|
3753
|
-
height:
|
|
3754
|
-
width:
|
|
3755
|
-
color:
|
|
3756
|
-
positionTop:
|
|
3781
|
+
height: PropTypes__default["default"].string,
|
|
3782
|
+
width: PropTypes__default["default"].string,
|
|
3783
|
+
color: PropTypes__default["default"].string,
|
|
3784
|
+
positionTop: PropTypes__default["default"].string
|
|
3757
3785
|
};
|
|
3758
3786
|
|
|
3759
3787
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -3762,7 +3790,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3762
3790
|
_ref$color = _ref.color,
|
|
3763
3791
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3764
3792
|
positionTop = _ref.positionTop;
|
|
3765
|
-
return /*#__PURE__*/
|
|
3793
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3766
3794
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3767
3795
|
width: width,
|
|
3768
3796
|
height: height,
|
|
@@ -3771,28 +3799,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
3771
3799
|
position: "relative",
|
|
3772
3800
|
top: positionTop
|
|
3773
3801
|
}
|
|
3774
|
-
}, /*#__PURE__*/
|
|
3802
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3775
3803
|
fill: "none",
|
|
3776
3804
|
fillRule: "evenodd",
|
|
3777
3805
|
stroke: "none",
|
|
3778
3806
|
strokeWidth: "1"
|
|
3779
|
-
}, /*#__PURE__*/
|
|
3807
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3780
3808
|
transform: "translate(8 8)"
|
|
3781
|
-
}, /*#__PURE__*/
|
|
3809
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3782
3810
|
d: "M0 0H24V24H0z"
|
|
3783
|
-
}), /*#__PURE__*/
|
|
3811
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3784
3812
|
fill: color,
|
|
3785
3813
|
fillRule: "nonzero",
|
|
3786
3814
|
transform: "translate(3)"
|
|
3787
|
-
}, /*#__PURE__*/
|
|
3815
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3788
3816
|
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"
|
|
3789
3817
|
}))))));
|
|
3790
3818
|
};
|
|
3791
3819
|
LockIcon.propTypes = {
|
|
3792
|
-
height:
|
|
3793
|
-
width:
|
|
3794
|
-
color:
|
|
3795
|
-
positionTop:
|
|
3820
|
+
height: PropTypes__default["default"].string,
|
|
3821
|
+
width: PropTypes__default["default"].string,
|
|
3822
|
+
color: PropTypes__default["default"].string,
|
|
3823
|
+
positionTop: PropTypes__default["default"].string
|
|
3796
3824
|
};
|
|
3797
3825
|
|
|
3798
3826
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -3802,7 +3830,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3802
3830
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
3803
3831
|
_ref$positionTop = _ref.positionTop,
|
|
3804
3832
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
3805
|
-
return /*#__PURE__*/
|
|
3833
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3806
3834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3807
3835
|
width: width,
|
|
3808
3836
|
height: height,
|
|
@@ -3811,21 +3839,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
3811
3839
|
position: "relative",
|
|
3812
3840
|
top: positionTop
|
|
3813
3841
|
}
|
|
3814
|
-
}, /*#__PURE__*/
|
|
3842
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
3815
3843
|
fill: "none",
|
|
3816
3844
|
fillRule: "evenodd",
|
|
3817
3845
|
stroke: "none",
|
|
3818
3846
|
strokeWidth: "1"
|
|
3819
|
-
}, /*#__PURE__*/
|
|
3847
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3820
3848
|
fill: color,
|
|
3821
3849
|
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"
|
|
3822
3850
|
}))));
|
|
3823
3851
|
};
|
|
3824
3852
|
StarIcon.propTypes = {
|
|
3825
|
-
height:
|
|
3826
|
-
width:
|
|
3827
|
-
color:
|
|
3828
|
-
positionTop:
|
|
3853
|
+
height: PropTypes__default["default"].string,
|
|
3854
|
+
width: PropTypes__default["default"].string,
|
|
3855
|
+
color: PropTypes__default["default"].string,
|
|
3856
|
+
positionTop: PropTypes__default["default"].string
|
|
3829
3857
|
};
|
|
3830
3858
|
|
|
3831
3859
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -3837,7 +3865,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3837
3865
|
|
|
3838
3866
|
switch (iconType) {
|
|
3839
3867
|
case "crown":
|
|
3840
|
-
return /*#__PURE__*/
|
|
3868
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
3841
3869
|
width: width,
|
|
3842
3870
|
height: height,
|
|
3843
3871
|
color: color,
|
|
@@ -3845,7 +3873,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3845
3873
|
});
|
|
3846
3874
|
|
|
3847
3875
|
case "lock":
|
|
3848
|
-
return /*#__PURE__*/
|
|
3876
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
3849
3877
|
width: width,
|
|
3850
3878
|
height: height,
|
|
3851
3879
|
color: color,
|
|
@@ -3853,7 +3881,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3853
3881
|
});
|
|
3854
3882
|
|
|
3855
3883
|
case "key":
|
|
3856
|
-
return /*#__PURE__*/
|
|
3884
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
3857
3885
|
width: width,
|
|
3858
3886
|
height: height,
|
|
3859
3887
|
color: color,
|
|
@@ -3861,7 +3889,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3861
3889
|
});
|
|
3862
3890
|
|
|
3863
3891
|
default:
|
|
3864
|
-
return /*#__PURE__*/
|
|
3892
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
3865
3893
|
width: width,
|
|
3866
3894
|
height: height,
|
|
3867
3895
|
color: color,
|
|
@@ -3870,11 +3898,11 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
3870
3898
|
}
|
|
3871
3899
|
};
|
|
3872
3900
|
PremiumStoryIcon.propTypes = {
|
|
3873
|
-
width:
|
|
3874
|
-
height:
|
|
3875
|
-
color:
|
|
3876
|
-
iconType:
|
|
3877
|
-
positionTop:
|
|
3901
|
+
width: PropTypes__default["default"].string,
|
|
3902
|
+
height: PropTypes__default["default"].string,
|
|
3903
|
+
color: PropTypes__default["default"].string,
|
|
3904
|
+
iconType: PropTypes__default["default"].string,
|
|
3905
|
+
positionTop: PropTypes__default["default"].string
|
|
3878
3906
|
};
|
|
3879
3907
|
|
|
3880
3908
|
var _styleModuleImportMap$x = {
|
|
@@ -3901,29 +3929,29 @@ var StoryHeadline = function StoryHeadline(_ref) {
|
|
|
3901
3929
|
var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
|
|
3902
3930
|
var wrapperClass = premiumStory ? "premium-wrapper" : "wrapper";
|
|
3903
3931
|
var iconSize = "40px";
|
|
3904
|
-
return /*#__PURE__*/
|
|
3932
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3905
3933
|
className: "arrow-component arr--story-headline " + _getClassName(wrapperClass, _styleModuleImportMap$x)
|
|
3906
|
-
}, premiumStory && /*#__PURE__*/
|
|
3934
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
3907
3935
|
width: iconSize,
|
|
3908
3936
|
height: iconSize,
|
|
3909
3937
|
color: iconColor,
|
|
3910
3938
|
iconType: iconStyle,
|
|
3911
3939
|
positionTop: "6px"
|
|
3912
|
-
}), /*#__PURE__*/
|
|
3940
|
+
}), /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
3913
3941
|
"data-testid": "story-headline",
|
|
3914
3942
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$x)
|
|
3915
|
-
}, /*#__PURE__*/
|
|
3943
|
+
}, /*#__PURE__*/React__default["default"].createElement("bdi", {
|
|
3916
3944
|
dangerouslySetInnerHTML: {
|
|
3917
3945
|
__html: story.headline
|
|
3918
3946
|
}
|
|
3919
3947
|
})));
|
|
3920
3948
|
};
|
|
3921
3949
|
StoryHeadline.propTypes = {
|
|
3922
|
-
story:
|
|
3923
|
-
premiumStoryIconConfig:
|
|
3924
|
-
iconColor:
|
|
3925
|
-
iconType:
|
|
3926
|
-
enablePremiumStoryIcon:
|
|
3950
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3951
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
3952
|
+
iconColor: PropTypes__default["default"].string,
|
|
3953
|
+
iconType: PropTypes__default["default"].string,
|
|
3954
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
3927
3955
|
})
|
|
3928
3956
|
};
|
|
3929
3957
|
|
|
@@ -3947,7 +3975,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3947
3975
|
var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
|
|
3948
3976
|
if (!subheadline) return null;
|
|
3949
3977
|
var textColor = getTextColor(config.theme);
|
|
3950
|
-
return /*#__PURE__*/
|
|
3978
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3951
3979
|
style: {
|
|
3952
3980
|
WebkitLineClamp: lineClamp
|
|
3953
3981
|
},
|
|
@@ -3957,15 +3985,15 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
3957
3985
|
};
|
|
3958
3986
|
Subheadline.propTypes = {
|
|
3959
3987
|
/** The Story Object from the API response */
|
|
3960
|
-
story:
|
|
3988
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
3961
3989
|
// Restricts the number of lines for subheadline.
|
|
3962
|
-
lineClamp:
|
|
3990
|
+
lineClamp: PropTypes__default["default"].number,
|
|
3963
3991
|
|
|
3964
3992
|
/** Number of characters to truncate the subheadline */
|
|
3965
|
-
truncateChars:
|
|
3966
|
-
clazzName:
|
|
3967
|
-
forceShowAtom:
|
|
3968
|
-
showFullContent:
|
|
3993
|
+
truncateChars: PropTypes__default["default"].number,
|
|
3994
|
+
clazzName: PropTypes__default["default"].string,
|
|
3995
|
+
forceShowAtom: PropTypes__default["default"].bool,
|
|
3996
|
+
showFullContent: PropTypes__default["default"].bool
|
|
3969
3997
|
};
|
|
3970
3998
|
Subheadline.defaultProps = {
|
|
3971
3999
|
forceShowAtom: false,
|
|
@@ -4015,13 +4043,13 @@ var withElementWrapper = function withElementWrapper(StoryElement) {
|
|
|
4015
4043
|
|
|
4016
4044
|
if (!element) return null;
|
|
4017
4045
|
if (render && typeof render === "function") return render(props);
|
|
4018
|
-
return /*#__PURE__*/
|
|
4046
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
|
|
4019
4047
|
element: element
|
|
4020
4048
|
}));
|
|
4021
4049
|
};
|
|
4022
4050
|
};
|
|
4023
4051
|
withElementWrapper.propTypes = {
|
|
4024
|
-
StoryElement:
|
|
4052
|
+
StoryElement: PropTypes__default["default"].element
|
|
4025
4053
|
};
|
|
4026
4054
|
|
|
4027
4055
|
var _excluded$d = ["element", "story", "config", "loadIframeOnClick"];
|
|
@@ -4034,21 +4062,21 @@ var Videobase = function Videobase(_ref) {
|
|
|
4034
4062
|
loadIframeOnClick = _ref$loadIframeOnClic === void 0 ? false : _ref$loadIframeOnClic,
|
|
4035
4063
|
restProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
4036
4064
|
|
|
4037
|
-
return /*#__PURE__*/
|
|
4065
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
4038
4066
|
className: "video-m_container__MYuWI" + (" " + (restProps ? restProps.className || "" : ""))
|
|
4039
4067
|
}, restProps, {
|
|
4040
4068
|
"data-test-id": "video"
|
|
4041
|
-
}), /*#__PURE__*/
|
|
4069
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
4042
4070
|
element: element,
|
|
4043
4071
|
loadIframeOnClick: loadIframeOnClick
|
|
4044
4072
|
}));
|
|
4045
4073
|
};
|
|
4046
4074
|
|
|
4047
4075
|
Videobase.propTypes = {
|
|
4048
|
-
element:
|
|
4076
|
+
element: PropTypes__default["default"].object,
|
|
4049
4077
|
story: shapeStory,
|
|
4050
4078
|
config: shapeConfig,
|
|
4051
|
-
loadIframeOnClick:
|
|
4079
|
+
loadIframeOnClick: PropTypes__default["default"].bool
|
|
4052
4080
|
};
|
|
4053
4081
|
var Video = withElementWrapper(Videobase);
|
|
4054
4082
|
|
|
@@ -4086,18 +4114,18 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
4086
4114
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
4087
4115
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
4088
4116
|
var textColor = getTextColor(configState.theme);
|
|
4089
|
-
return /*#__PURE__*/
|
|
4117
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4090
4118
|
"data-test-id": "publish-time",
|
|
4091
4119
|
className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$v)
|
|
4092
|
-
}, /*#__PURE__*/
|
|
4120
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4093
4121
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
4094
4122
|
}, getTimeStamp(time, formatter, config))));
|
|
4095
4123
|
};
|
|
4096
4124
|
TimeStamp.propTypes = {
|
|
4097
4125
|
/** The Story Object from the API response */
|
|
4098
|
-
story:
|
|
4099
|
-
isBottom:
|
|
4100
|
-
config:
|
|
4126
|
+
story: PropTypes__default["default"].object,
|
|
4127
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4128
|
+
config: PropTypes__default["default"].object
|
|
4101
4129
|
};
|
|
4102
4130
|
|
|
4103
4131
|
var _styleModuleImportMap$u = {
|
|
@@ -4140,10 +4168,10 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
4140
4168
|
return null;
|
|
4141
4169
|
}
|
|
4142
4170
|
|
|
4143
|
-
return /*#__PURE__*/
|
|
4171
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4144
4172
|
"data-test-id": "author-image",
|
|
4145
4173
|
className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$u)
|
|
4146
|
-
}, /*#__PURE__*/
|
|
4174
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
4147
4175
|
slug: avatarS3Key,
|
|
4148
4176
|
"aspect-ratio": [1, 1],
|
|
4149
4177
|
defaultWidth: 400,
|
|
@@ -4151,14 +4179,14 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
4151
4179
|
auto: ["format", "compress"]
|
|
4152
4180
|
},
|
|
4153
4181
|
alt: authorName
|
|
4154
|
-
}) : /*#__PURE__*/
|
|
4182
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4155
4183
|
src: avatarUrl
|
|
4156
4184
|
})));
|
|
4157
4185
|
};
|
|
4158
4186
|
|
|
4159
4187
|
var isPrefix = function isPrefix(dir) {
|
|
4160
4188
|
if (prefix) {
|
|
4161
|
-
return /*#__PURE__*/
|
|
4189
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4162
4190
|
className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$u)
|
|
4163
4191
|
}, prefix);
|
|
4164
4192
|
}
|
|
@@ -4166,11 +4194,11 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
4166
4194
|
return !hideAuthorImage && authorImage(dir);
|
|
4167
4195
|
};
|
|
4168
4196
|
|
|
4169
|
-
return /*#__PURE__*/
|
|
4197
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4170
4198
|
href: "".concat(mountAt, "/author/") + slug,
|
|
4171
4199
|
"aria-label": "author-name",
|
|
4172
4200
|
className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$u)
|
|
4173
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
4201
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4174
4202
|
"data-test-id": "author-name",
|
|
4175
4203
|
className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$u)
|
|
4176
4204
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
@@ -4182,18 +4210,18 @@ function mapStateToProps$1(state) {
|
|
|
4182
4210
|
};
|
|
4183
4211
|
}
|
|
4184
4212
|
|
|
4185
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
4213
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
4186
4214
|
AuthorBase.propTypes = {
|
|
4187
4215
|
/** The Story Object from the API response */
|
|
4188
|
-
story:
|
|
4216
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4189
4217
|
|
|
4190
4218
|
/** Hide Author Avatar Image */
|
|
4191
|
-
hideAuthorImage:
|
|
4219
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4192
4220
|
// fix Author bottom of the storyCard
|
|
4193
|
-
isBottom:
|
|
4221
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4194
4222
|
// fix prefix before the author name
|
|
4195
|
-
prefix:
|
|
4196
|
-
config:
|
|
4223
|
+
prefix: PropTypes__default["default"].string,
|
|
4224
|
+
config: PropTypes__default["default"].object
|
|
4197
4225
|
};
|
|
4198
4226
|
AuthorBase.defaultProps = {
|
|
4199
4227
|
hideAuthorImage: false,
|
|
@@ -4214,14 +4242,14 @@ var Dot = function Dot(_ref) {
|
|
|
4214
4242
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
4215
4243
|
_ref$color = _ref.color,
|
|
4216
4244
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
4217
|
-
return /*#__PURE__*/
|
|
4245
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4218
4246
|
className: _getClassName(color, _styleModuleImportMap$t)
|
|
4219
|
-
}, /*#__PURE__*/
|
|
4247
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4220
4248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4221
4249
|
width: width,
|
|
4222
4250
|
height: height,
|
|
4223
4251
|
viewBox: "0 0 3 3"
|
|
4224
|
-
}, /*#__PURE__*/
|
|
4252
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
4225
4253
|
cx: "87",
|
|
4226
4254
|
cy: "9",
|
|
4227
4255
|
r: "1",
|
|
@@ -4232,9 +4260,9 @@ var Dot = function Dot(_ref) {
|
|
|
4232
4260
|
};
|
|
4233
4261
|
Dot.propTypes = {
|
|
4234
4262
|
/** height , width and color of the dot icon */
|
|
4235
|
-
color:
|
|
4236
|
-
width:
|
|
4237
|
-
height:
|
|
4263
|
+
color: PropTypes__default["default"].string,
|
|
4264
|
+
width: PropTypes__default["default"].string,
|
|
4265
|
+
height: PropTypes__default["default"].string
|
|
4238
4266
|
};
|
|
4239
4267
|
|
|
4240
4268
|
var _styleModuleImportMap$s = {
|
|
@@ -4250,22 +4278,22 @@ var Divider = function Divider(_ref) {
|
|
|
4250
4278
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
4251
4279
|
_ref$color = _ref.color,
|
|
4252
4280
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
4253
|
-
return /*#__PURE__*/
|
|
4281
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4254
4282
|
className: _getClassName(color, _styleModuleImportMap$s)
|
|
4255
|
-
}, /*#__PURE__*/
|
|
4283
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4256
4284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4257
4285
|
width: width,
|
|
4258
4286
|
height: height
|
|
4259
|
-
}, /*#__PURE__*/
|
|
4287
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4260
4288
|
fill: "inherit",
|
|
4261
4289
|
d: "M0 0h1v10H0z"
|
|
4262
4290
|
})));
|
|
4263
4291
|
};
|
|
4264
4292
|
Divider.propTypes = {
|
|
4265
4293
|
/** height , width and color of the dot icon */
|
|
4266
|
-
color:
|
|
4267
|
-
width:
|
|
4268
|
-
height:
|
|
4294
|
+
color: PropTypes__default["default"].string,
|
|
4295
|
+
width: PropTypes__default["default"].string,
|
|
4296
|
+
height: PropTypes__default["default"].string
|
|
4269
4297
|
};
|
|
4270
4298
|
|
|
4271
4299
|
var _styleModuleImportMap$r = {
|
|
@@ -4288,23 +4316,23 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
4288
4316
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
4289
4317
|
if (!showReadTime || !readTime) return null;
|
|
4290
4318
|
var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
|
|
4291
|
-
return /*#__PURE__*/
|
|
4319
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4292
4320
|
"data-test-id": "read-time",
|
|
4293
4321
|
className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$r)
|
|
4294
|
-
}, /*#__PURE__*/
|
|
4322
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4295
4323
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
4296
|
-
}, /*#__PURE__*/
|
|
4324
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
4297
4325
|
color: textColor
|
|
4298
|
-
})), /*#__PURE__*/
|
|
4326
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
4299
4327
|
};
|
|
4300
4328
|
ReadTime.propTypes = {
|
|
4301
|
-
story:
|
|
4302
|
-
"read-time":
|
|
4329
|
+
story: PropTypes__default["default"].shape({
|
|
4330
|
+
"read-time": PropTypes__default["default"].number
|
|
4303
4331
|
}),
|
|
4304
|
-
opts:
|
|
4305
|
-
showReadTime:
|
|
4332
|
+
opts: PropTypes__default["default"].shape({
|
|
4333
|
+
showReadTime: PropTypes__default["default"].bool
|
|
4306
4334
|
}),
|
|
4307
|
-
isLightTheme:
|
|
4335
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4308
4336
|
};
|
|
4309
4337
|
|
|
4310
4338
|
var _styleModuleImportMap$q = {
|
|
@@ -4335,33 +4363,33 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
4335
4363
|
|
|
4336
4364
|
var getSeparator = function getSeparator() {
|
|
4337
4365
|
if (separator === "divider") {
|
|
4338
|
-
return /*#__PURE__*/
|
|
4366
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
4339
4367
|
color: textColor
|
|
4340
4368
|
});
|
|
4341
4369
|
}
|
|
4342
4370
|
|
|
4343
|
-
return /*#__PURE__*/
|
|
4371
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
4344
4372
|
color: textColor
|
|
4345
4373
|
});
|
|
4346
4374
|
};
|
|
4347
4375
|
|
|
4348
4376
|
var getTimeStamp = function getTimeStamp() {
|
|
4349
4377
|
if (!isTime) return null;
|
|
4350
|
-
return /*#__PURE__*/
|
|
4378
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4351
4379
|
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$q)
|
|
4352
|
-
}, getSeparator()), /*#__PURE__*/
|
|
4380
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
4353
4381
|
story: story,
|
|
4354
4382
|
config: config
|
|
4355
|
-
}), isReadTime && /*#__PURE__*/
|
|
4383
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
4356
4384
|
story: story,
|
|
4357
4385
|
opts: config,
|
|
4358
4386
|
isLightTheme: isLightTheme
|
|
4359
4387
|
}));
|
|
4360
4388
|
};
|
|
4361
4389
|
|
|
4362
|
-
return /*#__PURE__*/
|
|
4390
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4363
4391
|
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$q)
|
|
4364
|
-
}, isAuthor ? /*#__PURE__*/
|
|
4392
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
4365
4393
|
story: story,
|
|
4366
4394
|
isBottom: true,
|
|
4367
4395
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -4369,19 +4397,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
4369
4397
|
}), getTimeStamp()) : getTimeStamp());
|
|
4370
4398
|
};
|
|
4371
4399
|
AuthorWithTime.propTypes = {
|
|
4372
|
-
story:
|
|
4400
|
+
story: PropTypes__default["default"].object,
|
|
4373
4401
|
|
|
4374
4402
|
/** Style of separator between the Author & Timestamp */
|
|
4375
|
-
separator:
|
|
4403
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
4376
4404
|
|
|
4377
4405
|
/** hide the author image */
|
|
4378
|
-
hideAuthorImage:
|
|
4406
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
4379
4407
|
// fix author and time at the end
|
|
4380
|
-
isBottom:
|
|
4408
|
+
isBottom: PropTypes__default["default"].bool,
|
|
4381
4409
|
// fix prefix before the author name
|
|
4382
|
-
prefix:
|
|
4383
|
-
config:
|
|
4384
|
-
isLightTheme:
|
|
4410
|
+
prefix: PropTypes__default["default"].string,
|
|
4411
|
+
config: PropTypes__default["default"].object,
|
|
4412
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
4385
4413
|
};
|
|
4386
4414
|
AuthorWithTime.defaultProps = {
|
|
4387
4415
|
separator: "dot",
|
|
@@ -4427,7 +4455,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4427
4455
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
4428
4456
|
|
|
4429
4457
|
var borderBottomStyle = function borderBottomStyle() {
|
|
4430
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
4458
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4431
4459
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
4432
4460
|
style: {
|
|
4433
4461
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -4487,40 +4515,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
4487
4515
|
}
|
|
4488
4516
|
};
|
|
4489
4517
|
|
|
4490
|
-
return /*#__PURE__*/
|
|
4518
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4491
4519
|
style: {
|
|
4492
4520
|
borderBottom: borderBottomFullStyle
|
|
4493
4521
|
},
|
|
4494
4522
|
"data-test-id": "collection-name",
|
|
4495
4523
|
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$p)
|
|
4496
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
4524
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4497
4525
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
4498
4526
|
style: {
|
|
4499
4527
|
color: CollectionNameBorderColor,
|
|
4500
4528
|
fontSize: getBorderHeight()
|
|
4501
4529
|
}
|
|
4502
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
4530
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4503
4531
|
href: slug,
|
|
4504
4532
|
"aria-label": "collection-name"
|
|
4505
|
-
}, /*#__PURE__*/
|
|
4533
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
4506
4534
|
};
|
|
4507
4535
|
CollectionNameBase.propTypes = {
|
|
4508
4536
|
/** Collection name border color */
|
|
4509
|
-
collectionNameBorderColor: PropTypes
|
|
4537
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
4510
4538
|
|
|
4511
4539
|
/** The Collection Object from the API response */
|
|
4512
|
-
collection: PropTypes
|
|
4540
|
+
collection: PropTypes.PropTypes.object,
|
|
4513
4541
|
|
|
4514
4542
|
/** The publisher config from the API response */
|
|
4515
|
-
config: PropTypes
|
|
4543
|
+
config: PropTypes.PropTypes.object,
|
|
4516
4544
|
|
|
4517
4545
|
/** The style template for the component */
|
|
4518
|
-
collectionNameTemplate: PropTypes
|
|
4546
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
4519
4547
|
|
|
4520
4548
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4521
|
-
headerLevel: PropTypes
|
|
4522
|
-
customCollectionName: PropTypes
|
|
4523
|
-
navigate: PropTypes
|
|
4549
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
4550
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
4551
|
+
navigate: PropTypes.PropTypes.bool
|
|
4524
4552
|
};
|
|
4525
4553
|
CollectionNameBase.defaultProps = {
|
|
4526
4554
|
collectionNameTemplate: "",
|
|
@@ -4533,16 +4561,16 @@ function mapStateToProps(state) {
|
|
|
4533
4561
|
};
|
|
4534
4562
|
}
|
|
4535
4563
|
|
|
4536
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
4564
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
4537
4565
|
|
|
4538
4566
|
function LiveIcon() {
|
|
4539
|
-
return /*#__PURE__*/
|
|
4567
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4540
4568
|
className: "live-icon",
|
|
4541
4569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4542
4570
|
width: "25",
|
|
4543
4571
|
height: "24",
|
|
4544
4572
|
viewBox: "0 0 25 24"
|
|
4545
|
-
}, /*#__PURE__*/
|
|
4573
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4546
4574
|
fill: "#ff5858",
|
|
4547
4575
|
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"
|
|
4548
4576
|
}));
|
|
@@ -4599,37 +4627,37 @@ var Headline = function Headline(_ref) {
|
|
|
4599
4627
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
4600
4628
|
var iconSize = "24px";
|
|
4601
4629
|
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
|
|
4602
|
-
return /*#__PURE__*/
|
|
4630
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4603
4631
|
"data-test-id": "headline",
|
|
4604
4632
|
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$o)
|
|
4605
|
-
}, premiumStory && /*#__PURE__*/
|
|
4633
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
4606
4634
|
width: iconSize,
|
|
4607
4635
|
height: iconSize,
|
|
4608
4636
|
color: iconColor,
|
|
4609
4637
|
iconType: iconStyle,
|
|
4610
4638
|
positionTop: positionHeadline()
|
|
4611
|
-
}), isLink ? /*#__PURE__*/
|
|
4639
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4612
4640
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4613
4641
|
externalLink: isExternalStory(story),
|
|
4614
4642
|
"aria-label": "headline"
|
|
4615
|
-
}, /*#__PURE__*/
|
|
4643
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
4616
4644
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$o)
|
|
4617
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
4645
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
4618
4646
|
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$o)
|
|
4619
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
4647
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
4620
4648
|
};
|
|
4621
4649
|
Headline.propTypes = {
|
|
4622
4650
|
/** The Story Object from the API response */
|
|
4623
|
-
story:
|
|
4651
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4624
4652
|
|
|
4625
4653
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
4626
|
-
headerLevel:
|
|
4627
|
-
premiumStoryIconConfig:
|
|
4628
|
-
iconColor:
|
|
4629
|
-
iconType:
|
|
4630
|
-
enablePremiumStoryIcon:
|
|
4654
|
+
headerLevel: PropTypes__default["default"].string,
|
|
4655
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
4656
|
+
iconColor: PropTypes__default["default"].string,
|
|
4657
|
+
iconType: PropTypes__default["default"].string,
|
|
4658
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
4631
4659
|
}),
|
|
4632
|
-
isLink:
|
|
4660
|
+
isLink: PropTypes__default["default"].bool
|
|
4633
4661
|
};
|
|
4634
4662
|
Headline.defaultProps = {
|
|
4635
4663
|
headerLevel: "6",
|
|
@@ -4643,27 +4671,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4643
4671
|
height = _ref$height === void 0 ? 30 : _ref$height,
|
|
4644
4672
|
_ref$iconColor = _ref.iconColor,
|
|
4645
4673
|
iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
|
|
4646
|
-
return /*#__PURE__*/
|
|
4674
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4647
4675
|
width: width,
|
|
4648
4676
|
height: height,
|
|
4649
4677
|
viewBox: "0 0 102 76",
|
|
4650
4678
|
version: "1.1"
|
|
4651
|
-
}, /*#__PURE__*/
|
|
4679
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4652
4680
|
id: "demo-home-copy",
|
|
4653
4681
|
stroke: "none",
|
|
4654
4682
|
strokeWidth: "1",
|
|
4655
4683
|
fill: "none",
|
|
4656
4684
|
fillRule: "evenodd",
|
|
4657
4685
|
transform: "translate(-377.000000, -314.000000)"
|
|
4658
|
-
}, /*#__PURE__*/
|
|
4686
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4659
4687
|
id: "Group-13",
|
|
4660
4688
|
transform: "translate(377.000000, 314.000000)"
|
|
4661
|
-
}, /*#__PURE__*/
|
|
4689
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4662
4690
|
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",
|
|
4663
4691
|
id: "Combined-Shape",
|
|
4664
4692
|
fill: iconColor,
|
|
4665
4693
|
fillRule: "nonzero"
|
|
4666
|
-
}), /*#__PURE__*/
|
|
4694
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4667
4695
|
id: "Rectangle-19",
|
|
4668
4696
|
stroke: iconColor,
|
|
4669
4697
|
strokeWidth: "3",
|
|
@@ -4675,24 +4703,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
|
|
|
4675
4703
|
}))));
|
|
4676
4704
|
};
|
|
4677
4705
|
ImageFallbackIcon.propTypes = {
|
|
4678
|
-
width:
|
|
4679
|
-
height:
|
|
4680
|
-
iconColor:
|
|
4706
|
+
width: PropTypes__default["default"].object,
|
|
4707
|
+
height: PropTypes__default["default"].object,
|
|
4708
|
+
iconColor: PropTypes__default["default"].object
|
|
4681
4709
|
};
|
|
4682
4710
|
|
|
4683
4711
|
var imageFallback = function imageFallback() {
|
|
4684
|
-
return /*#__PURE__*/
|
|
4712
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4685
4713
|
className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
|
|
4686
|
-
}, /*#__PURE__*/
|
|
4714
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4687
4715
|
className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
|
|
4688
|
-
}, /*#__PURE__*/
|
|
4716
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
|
|
4689
4717
|
};
|
|
4690
4718
|
|
|
4691
4719
|
var FallbackImage = function FallbackImage(_ref) {
|
|
4692
4720
|
var slug = _ref.slug;
|
|
4693
4721
|
|
|
4694
4722
|
if (slug) {
|
|
4695
|
-
return /*#__PURE__*/
|
|
4723
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4696
4724
|
href: slug,
|
|
4697
4725
|
"aria-label": "image-fallback"
|
|
4698
4726
|
}, imageFallback());
|
|
@@ -4701,23 +4729,23 @@ var FallbackImage = function FallbackImage(_ref) {
|
|
|
4701
4729
|
}
|
|
4702
4730
|
};
|
|
4703
4731
|
FallbackImage.propTypes = {
|
|
4704
|
-
slug:
|
|
4732
|
+
slug: PropTypes__default["default"].string
|
|
4705
4733
|
};
|
|
4706
4734
|
|
|
4707
4735
|
var HyperLinkIcon = function HyperLinkIcon() {
|
|
4708
|
-
return /*#__PURE__*/
|
|
4736
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
4709
4737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4710
4738
|
width: "36",
|
|
4711
4739
|
height: "28"
|
|
4712
|
-
}, /*#__PURE__*/
|
|
4740
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
4713
4741
|
fill: "none",
|
|
4714
4742
|
fillRule: "evenodd"
|
|
4715
|
-
}, /*#__PURE__*/
|
|
4743
|
+
}, /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
4716
4744
|
width: "36",
|
|
4717
4745
|
height: "28",
|
|
4718
4746
|
fill: "#3D6FCF",
|
|
4719
4747
|
rx: "4"
|
|
4720
|
-
}), /*#__PURE__*/
|
|
4748
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4721
4749
|
stroke: "#FFF",
|
|
4722
4750
|
strokeLinecap: "round",
|
|
4723
4751
|
strokeLinejoin: "round",
|
|
@@ -4730,16 +4758,16 @@ var HyperLink = function HyperLink(_ref) {
|
|
|
4730
4758
|
var _ref$hyperLink = _ref.hyperLink,
|
|
4731
4759
|
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
4732
4760
|
if (!hyperLink) return null;
|
|
4733
|
-
return /*#__PURE__*/
|
|
4761
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4734
4762
|
href: hyperLink,
|
|
4735
4763
|
"aria-label": "hyperlink-button",
|
|
4736
4764
|
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
4737
4765
|
target: "_blank",
|
|
4738
4766
|
rel: "noopener noreferrer"
|
|
4739
|
-
}, /*#__PURE__*/
|
|
4767
|
+
}, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
|
|
4740
4768
|
};
|
|
4741
4769
|
HyperLink.propTypes = {
|
|
4742
|
-
hyperLink:
|
|
4770
|
+
hyperLink: PropTypes__default["default"].string
|
|
4743
4771
|
};
|
|
4744
4772
|
|
|
4745
4773
|
var _styleModuleImportMap$n = {
|
|
@@ -4775,7 +4803,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4775
4803
|
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
4776
4804
|
return null;
|
|
4777
4805
|
} : _config$StoryTemplate;
|
|
4778
|
-
var showImagePlaceholder = useSelector(function (state) {
|
|
4806
|
+
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
4779
4807
|
return get_1(state, ["qt", "config", "showPlaceholder"]);
|
|
4780
4808
|
});
|
|
4781
4809
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
@@ -4811,37 +4839,37 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4811
4839
|
var fallbackImage = function fallbackImage() {
|
|
4812
4840
|
if (!slug) {
|
|
4813
4841
|
if (fallbackImageUrl && !isStoryPageImage) {
|
|
4814
|
-
return /*#__PURE__*/
|
|
4842
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4815
4843
|
style: {
|
|
4816
4844
|
paddingTop: imagePadding + "%"
|
|
4817
4845
|
},
|
|
4818
4846
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$n)
|
|
4819
|
-
}, /*#__PURE__*/
|
|
4847
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4820
4848
|
className: "qt-image",
|
|
4821
4849
|
"data-src": "".concat(fallbackImageUrl),
|
|
4822
4850
|
alt: "image-fallback"
|
|
4823
4851
|
}));
|
|
4824
4852
|
}
|
|
4825
4853
|
|
|
4826
|
-
return /*#__PURE__*/
|
|
4854
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4827
4855
|
"data-test-id": "arr--fallback-hero-image",
|
|
4828
4856
|
style: {
|
|
4829
4857
|
paddingTop: imagePadding + "%"
|
|
4830
4858
|
},
|
|
4831
4859
|
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$n)
|
|
4832
|
-
}, /*#__PURE__*/
|
|
4860
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4833
4861
|
storyTemplate: story["story-template"]
|
|
4834
|
-
}), /*#__PURE__*/
|
|
4862
|
+
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
4835
4863
|
}
|
|
4836
4864
|
|
|
4837
|
-
return /*#__PURE__*/
|
|
4865
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
4838
4866
|
style: {
|
|
4839
4867
|
paddingTop: imagePadding + "%"
|
|
4840
4868
|
},
|
|
4841
4869
|
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$n)
|
|
4842
|
-
}, /*#__PURE__*/
|
|
4870
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4843
4871
|
storyTemplate: story["story-template"]
|
|
4844
|
-
}), /*#__PURE__*/
|
|
4872
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
4845
4873
|
story: story,
|
|
4846
4874
|
aspectRatio: imageAspectRatio,
|
|
4847
4875
|
defaultWidth: defaultWidth,
|
|
@@ -4850,15 +4878,15 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4850
4878
|
auto: ["format", "compress"],
|
|
4851
4879
|
fit: "max"
|
|
4852
4880
|
}
|
|
4853
|
-
})), isStoryPageImage && hyperLink && /*#__PURE__*/
|
|
4881
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
4854
4882
|
hyperLink: hyperLink
|
|
4855
4883
|
}));
|
|
4856
4884
|
};
|
|
4857
4885
|
|
|
4858
|
-
return story && (isStoryPageImage ? /*#__PURE__*/
|
|
4886
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4859
4887
|
"data-test-id": "arr--hero-image",
|
|
4860
4888
|
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$n)
|
|
4861
|
-
}, fallbackImage()) : /*#__PURE__*/
|
|
4889
|
+
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4862
4890
|
"data-test-id": "arr--hero-image",
|
|
4863
4891
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4864
4892
|
externalLink: isExternalStory(story),
|
|
@@ -4868,30 +4896,30 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4868
4896
|
};
|
|
4869
4897
|
HeroImage.propTypes = {
|
|
4870
4898
|
/** The Story Object from the API response */
|
|
4871
|
-
story:
|
|
4899
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
4872
4900
|
|
|
4873
4901
|
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
4874
|
-
FullBleed:
|
|
4902
|
+
FullBleed: PropTypes__default["default"].bool,
|
|
4875
4903
|
|
|
4876
4904
|
/** The default width for the image, in case the browser does not support srcset */
|
|
4877
|
-
defaultWidth:
|
|
4905
|
+
defaultWidth: PropTypes__default["default"].number,
|
|
4878
4906
|
|
|
4879
4907
|
/** The list of available widths */
|
|
4880
|
-
widths:
|
|
4908
|
+
widths: PropTypes__default["default"].array,
|
|
4881
4909
|
// fatch the correct hero image
|
|
4882
|
-
aspectRatio:
|
|
4910
|
+
aspectRatio: PropTypes__default["default"].array,
|
|
4883
4911
|
// Hints for the browser to choose the best size
|
|
4884
4912
|
|
|
4885
4913
|
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
4886
|
-
isHorizontal:
|
|
4914
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
4887
4915
|
|
|
4888
4916
|
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
4889
|
-
isHorizontalMobile:
|
|
4917
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
4890
4918
|
// this prop is responsive for rendering fallback image on story page
|
|
4891
|
-
defaultFallback:
|
|
4892
|
-
isHorizontalWithImageLast:
|
|
4893
|
-
isStoryPageImage:
|
|
4894
|
-
config:
|
|
4919
|
+
defaultFallback: PropTypes__default["default"].bool,
|
|
4920
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool,
|
|
4921
|
+
isStoryPageImage: PropTypes__default["default"].bool,
|
|
4922
|
+
config: PropTypes__default["default"].object
|
|
4895
4923
|
};
|
|
4896
4924
|
HeroImage.defaultProps = {
|
|
4897
4925
|
FullBleed: true,
|
|
@@ -4948,7 +4976,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4948
4976
|
prefix = _ref.prefix,
|
|
4949
4977
|
config = _ref.config,
|
|
4950
4978
|
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
|
|
4951
|
-
if (!story || isEmpty(story)) return /*#__PURE__*/
|
|
4979
|
+
if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
4952
4980
|
var borderOptions = ["default", "full", "bottom", "boxShadow"];
|
|
4953
4981
|
var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
|
|
4954
4982
|
|
|
@@ -4958,7 +4986,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4958
4986
|
var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
|
|
4959
4987
|
var textColor = getTextColor(theme);
|
|
4960
4988
|
var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
|
|
4961
|
-
var defaultStorycard = /*#__PURE__*/
|
|
4989
|
+
var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
|
|
4962
4990
|
story: story,
|
|
4963
4991
|
aspectRatio: aspectRatio,
|
|
4964
4992
|
border: border,
|
|
@@ -4972,7 +5000,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
4972
5000
|
config: config,
|
|
4973
5001
|
isHorizontalWithImageLast: isHorizontalWithImageLast
|
|
4974
5002
|
});
|
|
4975
|
-
return /*#__PURE__*/
|
|
5003
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4976
5004
|
"data-test-id": "story-card",
|
|
4977
5005
|
style: {
|
|
4978
5006
|
backgroundColor: theme,
|
|
@@ -5001,91 +5029,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
5001
5029
|
var SectionTagborderColor = rgbToHex(borderColor);
|
|
5002
5030
|
var _config$localizationC = config.localizationConfig,
|
|
5003
5031
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
|
|
5004
|
-
return /*#__PURE__*/
|
|
5032
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5005
5033
|
config: config,
|
|
5006
5034
|
story: story,
|
|
5007
5035
|
isHorizontal: true,
|
|
5008
5036
|
isHorizontalMobile: isHorizontalMobile,
|
|
5009
5037
|
aspectRatio: aspectRatio
|
|
5010
|
-
}) : isHorizontalWithImageLast ? /*#__PURE__*/
|
|
5038
|
+
}) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5011
5039
|
config: config,
|
|
5012
5040
|
story: story,
|
|
5013
5041
|
isHorizontalWithImageLast: true,
|
|
5014
5042
|
isHorizontalMobile: isHorizontalMobile,
|
|
5015
5043
|
aspectRatio: aspectRatio
|
|
5016
|
-
}) : /*#__PURE__*/
|
|
5044
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5017
5045
|
story: story,
|
|
5018
5046
|
config: config,
|
|
5019
5047
|
isHorizontalMobile: isHorizontalMobile,
|
|
5020
5048
|
aspectRatio: aspectRatio
|
|
5021
|
-
}), /*#__PURE__*/
|
|
5049
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5022
5050
|
className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$m)
|
|
5023
|
-
}, /*#__PURE__*/
|
|
5051
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
5024
5052
|
story: story,
|
|
5025
5053
|
borderColor: SectionTagborderColor
|
|
5026
|
-
}), /*#__PURE__*/
|
|
5054
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
5027
5055
|
story: story,
|
|
5028
5056
|
headerLevel: headerLevel,
|
|
5029
5057
|
premiumStoryIconConfig: config
|
|
5030
|
-
}), /*#__PURE__*/
|
|
5058
|
+
}), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
5031
5059
|
config: localizationConfig,
|
|
5032
5060
|
story: story,
|
|
5033
5061
|
isBottom: true,
|
|
5034
5062
|
prefix: prefix,
|
|
5035
5063
|
hideAuthorImage: hideAuthorImage
|
|
5036
|
-
}), /*#__PURE__*/
|
|
5064
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
5037
5065
|
story: story
|
|
5038
5066
|
})));
|
|
5039
5067
|
};
|
|
5040
5068
|
|
|
5041
5069
|
DefaultStoryCard.propTypes = {
|
|
5042
|
-
story:
|
|
5043
|
-
border:
|
|
5044
|
-
isBottom:
|
|
5045
|
-
isHorizontal:
|
|
5046
|
-
aspectRatio:
|
|
5047
|
-
isHorizontalMobile:
|
|
5048
|
-
centerAlign:
|
|
5049
|
-
headerLevel:
|
|
5050
|
-
borderColor:
|
|
5051
|
-
hideAuthorImage:
|
|
5052
|
-
prefix:
|
|
5053
|
-
config:
|
|
5054
|
-
isHorizontalWithImageLast:
|
|
5070
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
5071
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
5072
|
+
isBottom: PropTypes__default["default"].bool,
|
|
5073
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
5074
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
5075
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
5076
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
5077
|
+
headerLevel: PropTypes__default["default"].string,
|
|
5078
|
+
borderColor: PropTypes__default["default"].string,
|
|
5079
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
5080
|
+
prefix: PropTypes__default["default"].string,
|
|
5081
|
+
config: PropTypes__default["default"].object,
|
|
5082
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
5055
5083
|
};
|
|
5056
5084
|
StoryCard.propTypes = {
|
|
5057
5085
|
/** The Story Object from the API response */
|
|
5058
|
-
story:
|
|
5059
|
-
children:
|
|
5086
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
5087
|
+
children: PropTypes__default["default"].node,
|
|
5060
5088
|
|
|
5061
5089
|
/** Flip the Story Card to Horizonal mode */
|
|
5062
|
-
isHorizontal:
|
|
5090
|
+
isHorizontal: PropTypes__default["default"].bool,
|
|
5063
5091
|
|
|
5064
5092
|
/** Add border to the Story Card */
|
|
5065
|
-
border:
|
|
5093
|
+
border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
|
|
5066
5094
|
// story card with background image
|
|
5067
|
-
useImageAsBackground:
|
|
5095
|
+
useImageAsBackground: PropTypes__default["default"].bool,
|
|
5068
5096
|
// story card content overlap with image
|
|
5069
|
-
bgImgContentOverlap:
|
|
5097
|
+
bgImgContentOverlap: PropTypes__default["default"].bool,
|
|
5070
5098
|
|
|
5071
5099
|
/** add aspect ratio for hero image */
|
|
5072
|
-
aspectRatio:
|
|
5100
|
+
aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
|
|
5073
5101
|
|
|
5074
5102
|
/** add theme(dark /light/custom color) for storycard */
|
|
5075
|
-
theme:
|
|
5103
|
+
theme: PropTypes__default["default"].string,
|
|
5076
5104
|
|
|
5077
5105
|
/** flip the story card mobile design horizontal */
|
|
5078
|
-
isHorizontalMobile:
|
|
5106
|
+
isHorizontalMobile: PropTypes__default["default"].bool,
|
|
5079
5107
|
// make content center align in desktop and left align in mobile
|
|
5080
|
-
centerAlign:
|
|
5081
|
-
headerLevel:
|
|
5082
|
-
borderColor:
|
|
5108
|
+
centerAlign: PropTypes__default["default"].bool,
|
|
5109
|
+
headerLevel: PropTypes__default["default"].string,
|
|
5110
|
+
borderColor: PropTypes__default["default"].string,
|
|
5083
5111
|
// handle author image through storycard
|
|
5084
|
-
hideAuthorImage:
|
|
5112
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
5085
5113
|
// handle author prefix through storycard
|
|
5086
|
-
prefix:
|
|
5087
|
-
config:
|
|
5088
|
-
isHorizontalWithImageLast:
|
|
5114
|
+
prefix: PropTypes__default["default"].string,
|
|
5115
|
+
config: PropTypes__default["default"].object,
|
|
5116
|
+
isHorizontalWithImageLast: PropTypes__default["default"].bool
|
|
5089
5117
|
};
|
|
5090
5118
|
StoryCard.defaultProps = {
|
|
5091
5119
|
isHorizontal: false,
|
|
@@ -5100,19 +5128,19 @@ StoryCard.defaultProps = {
|
|
|
5100
5128
|
var ClockIcon = function ClockIcon(_ref) {
|
|
5101
5129
|
var _ref$color = _ref.color,
|
|
5102
5130
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
5103
|
-
return /*#__PURE__*/
|
|
5131
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
5104
5132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5105
5133
|
width: "24",
|
|
5106
5134
|
height: "24",
|
|
5107
5135
|
viewBox: "0 0 24 24"
|
|
5108
|
-
}, /*#__PURE__*/
|
|
5136
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
5109
5137
|
fill: color,
|
|
5110
5138
|
fillRule: "evenodd",
|
|
5111
5139
|
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"
|
|
5112
5140
|
}));
|
|
5113
5141
|
};
|
|
5114
5142
|
ClockIcon.propTypes = {
|
|
5115
|
-
color:
|
|
5143
|
+
color: PropTypes__default["default"].string
|
|
5116
5144
|
};
|
|
5117
5145
|
|
|
5118
5146
|
var _styleModuleImportMap$l = {
|
|
@@ -5147,26 +5175,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
5147
5175
|
if (!showButton) return null;
|
|
5148
5176
|
var textColor = getTextColor(theme);
|
|
5149
5177
|
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread$3(_objectSpread$3({}, qtConfig), config));
|
|
5150
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
5178
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5151
5179
|
onClick: onClick,
|
|
5152
5180
|
"data-test-id": "load-more",
|
|
5153
5181
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$l)
|
|
5154
|
-
}, buttonText) : /*#__PURE__*/
|
|
5182
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
5155
5183
|
href: slug,
|
|
5156
5184
|
navigateTo: navigate,
|
|
5157
5185
|
"data-test-id": "load-more",
|
|
5158
5186
|
"aria-label": "load-more"
|
|
5159
|
-
}, /*#__PURE__*/
|
|
5187
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5160
5188
|
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$l)
|
|
5161
5189
|
}, buttonText));
|
|
5162
5190
|
};
|
|
5163
5191
|
LoadmoreButton.propTypes = {
|
|
5164
|
-
collection:
|
|
5165
|
-
template:
|
|
5166
|
-
config:
|
|
5167
|
-
onClick:
|
|
5168
|
-
navigate:
|
|
5169
|
-
qtConfig:
|
|
5192
|
+
collection: PropTypes__default["default"].object,
|
|
5193
|
+
template: PropTypes__default["default"].string,
|
|
5194
|
+
config: PropTypes__default["default"].object,
|
|
5195
|
+
onClick: PropTypes__default["default"].func,
|
|
5196
|
+
navigate: PropTypes__default["default"].func,
|
|
5197
|
+
qtConfig: PropTypes__default["default"].object
|
|
5170
5198
|
};
|
|
5171
5199
|
|
|
5172
5200
|
var _styleModuleImportMap$k = {
|
|
@@ -5204,23 +5232,23 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
5204
5232
|
var updateColor = textColor === "dark" ? dark : light;
|
|
5205
5233
|
var lastElement = index === cardLength - 1;
|
|
5206
5234
|
var borderLeft = lastElement ? "borderNone" : "";
|
|
5207
|
-
return /*#__PURE__*/
|
|
5235
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5208
5236
|
className: _getClassName("time-wrapper ".concat(textColor), _styleModuleImportMap$k)
|
|
5209
|
-
}, /*#__PURE__*/
|
|
5237
|
+
}, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
|
|
5210
5238
|
color: updateColor
|
|
5211
5239
|
}), getTimeStamp(cardAddedAt, timestampToFormat, {
|
|
5212
5240
|
showTime: true,
|
|
5213
5241
|
isTimeFirst: true
|
|
5214
|
-
})), /*#__PURE__*/
|
|
5242
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5215
5243
|
href: "".concat(mountAt, "/").concat(slug, "#").concat(id),
|
|
5216
5244
|
"aria-label": "event-title"
|
|
5217
|
-
}, /*#__PURE__*/
|
|
5245
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5218
5246
|
className: _getClassName("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$k)
|
|
5219
5247
|
}, storyElements.map(function (element, index) {
|
|
5220
|
-
return element.type === "title" && /*#__PURE__*/
|
|
5248
|
+
return element.type === "title" && /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
5221
5249
|
key: index
|
|
5222
5250
|
}, element.text);
|
|
5223
|
-
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/
|
|
5251
|
+
}), showLoadMore && lastElement && loadCards && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5224
5252
|
className: "key-events-m_fade-out__11jv_",
|
|
5225
5253
|
style: {
|
|
5226
5254
|
backgroundImage: "linear-gradient(to bottom, transparent, ".concat(theme, ")")
|
|
@@ -5229,22 +5257,21 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
5229
5257
|
};
|
|
5230
5258
|
|
|
5231
5259
|
KeyEventCards.propTypes = {
|
|
5232
|
-
card:
|
|
5233
|
-
"card-added-at":
|
|
5234
|
-
"story-elements":
|
|
5235
|
-
id:
|
|
5260
|
+
card: PropTypes__default["default"].shape({
|
|
5261
|
+
"card-added-at": PropTypes__default["default"].number,
|
|
5262
|
+
"story-elements": PropTypes__default["default"].array,
|
|
5263
|
+
id: PropTypes__default["default"].string
|
|
5236
5264
|
}),
|
|
5237
|
-
config:
|
|
5238
|
-
slug:
|
|
5239
|
-
story:
|
|
5240
|
-
elements:
|
|
5241
|
-
index:
|
|
5242
|
-
cardLength:
|
|
5243
|
-
loadCards:
|
|
5244
|
-
showLoadMore:
|
|
5245
|
-
};
|
|
5246
|
-
|
|
5247
|
-
var KeyEvents = function KeyEvents(_ref) {
|
|
5265
|
+
config: PropTypes__default["default"].object,
|
|
5266
|
+
slug: PropTypes__default["default"].string,
|
|
5267
|
+
story: PropTypes__default["default"].object,
|
|
5268
|
+
elements: PropTypes__default["default"].array,
|
|
5269
|
+
index: PropTypes__default["default"].number,
|
|
5270
|
+
cardLength: PropTypes__default["default"].number,
|
|
5271
|
+
loadCards: PropTypes__default["default"].bool,
|
|
5272
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5273
|
+
};
|
|
5274
|
+
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
5248
5275
|
var _ref$story = _ref.story,
|
|
5249
5276
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
5250
5277
|
_ref$config = _ref.config,
|
|
@@ -5257,7 +5284,7 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5257
5284
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
5258
5285
|
var textColor = getTextColor(theme);
|
|
5259
5286
|
|
|
5260
|
-
var _useState = useState(initialLoadCount),
|
|
5287
|
+
var _useState = React.useState(initialLoadCount),
|
|
5261
5288
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5262
5289
|
initialCount = _useState2[0],
|
|
5263
5290
|
updatedCount = _useState2[1];
|
|
@@ -5266,7 +5293,7 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5266
5293
|
return get_1(card.metadata, ["attributes", "key-event"]);
|
|
5267
5294
|
});
|
|
5268
5295
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
5269
|
-
var qtConfig = useSelector(function (state) {
|
|
5296
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
5270
5297
|
return get_1(state, ["qt", "config"], {});
|
|
5271
5298
|
});
|
|
5272
5299
|
|
|
@@ -5280,7 +5307,7 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5280
5307
|
|
|
5281
5308
|
var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
|
|
5282
5309
|
var keyEvents = showAllCards.map(function (card, index, source) {
|
|
5283
|
-
return /*#__PURE__*/
|
|
5310
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
|
|
5284
5311
|
cardLength: source.length,
|
|
5285
5312
|
card: card,
|
|
5286
5313
|
key: card.id,
|
|
@@ -5291,27 +5318,26 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
5291
5318
|
showLoadMore: showLoadMore
|
|
5292
5319
|
});
|
|
5293
5320
|
});
|
|
5294
|
-
return /*#__PURE__*/
|
|
5321
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5295
5322
|
style: {
|
|
5296
5323
|
background: theme
|
|
5297
5324
|
},
|
|
5298
5325
|
className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$k)
|
|
5299
|
-
}, /*#__PURE__*/
|
|
5326
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5300
5327
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
5301
|
-
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/
|
|
5328
|
+
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
5302
5329
|
onClick: onClick,
|
|
5303
5330
|
template: "SubsequentLoadCount",
|
|
5304
5331
|
config: config,
|
|
5305
5332
|
qtConfig: qtConfig
|
|
5306
5333
|
}));
|
|
5307
5334
|
};
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
showLoadMore: PropTypes.bool
|
|
5335
|
+
KeyEventsBase.propTypes = {
|
|
5336
|
+
story: PropTypes__default["default"].object,
|
|
5337
|
+
config: PropTypes__default["default"].object,
|
|
5338
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5313
5339
|
};
|
|
5314
|
-
var KeyEvents
|
|
5340
|
+
var KeyEvents = StateProvider(KeyEventsBase);
|
|
5315
5341
|
|
|
5316
5342
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5317
5343
|
|
|
@@ -5331,7 +5357,6 @@ var _styleModuleImportMap$j = {
|
|
|
5331
5357
|
"sticky": "aside-collection-m_sticky__AZXBP"
|
|
5332
5358
|
}
|
|
5333
5359
|
};
|
|
5334
|
-
|
|
5335
5360
|
var StoryCollection = function StoryCollection(_ref) {
|
|
5336
5361
|
var data = _ref.data,
|
|
5337
5362
|
slotData = _ref.slotData,
|
|
@@ -5351,12 +5376,12 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5351
5376
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5352
5377
|
var mountAt = get_1(config, ["mountAtPrefix"], "");
|
|
5353
5378
|
|
|
5354
|
-
var _useState = useState([]),
|
|
5379
|
+
var _useState = React.useState([]),
|
|
5355
5380
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5356
5381
|
storyList = _useState2[0],
|
|
5357
5382
|
updateStoryList = _useState2[1];
|
|
5358
5383
|
|
|
5359
|
-
var _useState3 = useState([]),
|
|
5384
|
+
var _useState3 = React.useState([]),
|
|
5360
5385
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5361
5386
|
collectionData = _useState4[0],
|
|
5362
5387
|
updateCollectionData = _useState4[1];
|
|
@@ -5390,63 +5415,61 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5390
5415
|
};
|
|
5391
5416
|
}();
|
|
5392
5417
|
|
|
5393
|
-
useEffect(function () {
|
|
5418
|
+
React.useEffect(function () {
|
|
5394
5419
|
if (collectionSlug) {
|
|
5395
5420
|
updateStoryListItems(collectionSlug);
|
|
5396
5421
|
}
|
|
5397
5422
|
}, [collectionSlug]);
|
|
5398
|
-
useEffect(function () {
|
|
5423
|
+
React.useEffect(function () {
|
|
5399
5424
|
if (!collectionSlug && data) {
|
|
5400
5425
|
var storyItems = data.items || data;
|
|
5401
5426
|
updateStoryList(storyItems);
|
|
5402
5427
|
}
|
|
5403
5428
|
}, [data, collectionSlug]);
|
|
5404
|
-
return /*#__PURE__*/
|
|
5429
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
5405
5430
|
customCollectionName: heading,
|
|
5406
5431
|
textColor: true,
|
|
5407
5432
|
collection: collectionData
|
|
5408
|
-
}), /*#__PURE__*/
|
|
5433
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5409
5434
|
className: "aside-collection-m_stories__9wfUs"
|
|
5410
5435
|
}, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
|
|
5411
5436
|
var story = item.story || item;
|
|
5412
|
-
return /*#__PURE__*/
|
|
5437
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5413
5438
|
className: "aside-collection-m_story__17Jdm",
|
|
5414
5439
|
key: story.id
|
|
5415
|
-
}, /*#__PURE__*/
|
|
5440
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
5416
5441
|
story: story,
|
|
5417
5442
|
isHorizontal: true,
|
|
5418
5443
|
theme: theme,
|
|
5419
5444
|
config: config
|
|
5420
|
-
}, /*#__PURE__*/
|
|
5445
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5421
5446
|
className: "aside-collection-m_story-hero-image__13nFY"
|
|
5422
|
-
}, /*#__PURE__*/
|
|
5447
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5423
5448
|
story: story,
|
|
5424
5449
|
aspectRatio: [[4, 3]]
|
|
5425
|
-
})), /*#__PURE__*/
|
|
5450
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
5426
5451
|
story: story
|
|
5427
|
-
}), /*#__PURE__*/
|
|
5452
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
5428
5453
|
story: story
|
|
5429
|
-
}), /*#__PURE__*/
|
|
5454
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5430
5455
|
className: "aside-collection-m_story-byline__37KRG"
|
|
5431
|
-
}, /*#__PURE__*/
|
|
5456
|
+
}, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
5432
5457
|
config: opts,
|
|
5433
5458
|
story: story
|
|
5434
5459
|
})))));
|
|
5435
|
-
}) : /*#__PURE__*/
|
|
5460
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5436
5461
|
"data-test-id": "no-stories",
|
|
5437
5462
|
className: "aside-collection-m_info__3p4zt"
|
|
5438
5463
|
}, "No stories found.")));
|
|
5439
5464
|
};
|
|
5440
|
-
|
|
5441
5465
|
StoryCollection.propTypes = {
|
|
5442
|
-
data:
|
|
5443
|
-
config:
|
|
5444
|
-
horizontal:
|
|
5445
|
-
slotData:
|
|
5446
|
-
opts:
|
|
5466
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
5467
|
+
config: PropTypes__default["default"].object,
|
|
5468
|
+
horizontal: PropTypes__default["default"].bool,
|
|
5469
|
+
slotData: PropTypes__default["default"].object,
|
|
5470
|
+
opts: PropTypes__default["default"].object
|
|
5447
5471
|
};
|
|
5448
|
-
|
|
5449
|
-
var AsideCollection = function AsideCollection(_ref4) {
|
|
5472
|
+
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
5450
5473
|
var _ref4$data = _ref4.data,
|
|
5451
5474
|
data = _ref4$data === void 0 ? {} : _ref4$data,
|
|
5452
5475
|
_ref4$config = _ref4.config,
|
|
@@ -5471,14 +5494,14 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5471
5494
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5472
5495
|
|
|
5473
5496
|
if (horizontal) {
|
|
5474
|
-
return /*#__PURE__*/
|
|
5497
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5475
5498
|
style: {
|
|
5476
5499
|
backgroundColor: theme
|
|
5477
5500
|
},
|
|
5478
5501
|
"data-test-id": "aside-collection",
|
|
5479
5502
|
id: "aside-collection-".concat(storyId),
|
|
5480
5503
|
className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap$j)
|
|
5481
|
-
}, /*#__PURE__*/
|
|
5504
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5482
5505
|
data: data,
|
|
5483
5506
|
horizontal: horizontal,
|
|
5484
5507
|
config: config,
|
|
@@ -5491,23 +5514,23 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5491
5514
|
var asideSlot = function asideSlot(type, slot, index) {
|
|
5492
5515
|
switch (type) {
|
|
5493
5516
|
case "ad":
|
|
5494
|
-
return /*#__PURE__*/
|
|
5517
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5495
5518
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5496
5519
|
}, adComponent(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5497
5520
|
id: "ad-".concat(index, "_").concat(storyId)
|
|
5498
5521
|
})));
|
|
5499
5522
|
|
|
5500
5523
|
case "widget":
|
|
5501
|
-
return /*#__PURE__*/
|
|
5524
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5502
5525
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5503
5526
|
}, widgetComp(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5504
5527
|
id: "widget-".concat(index, "_").concat(storyId)
|
|
5505
5528
|
})));
|
|
5506
5529
|
|
|
5507
5530
|
case "collection":
|
|
5508
|
-
return /*#__PURE__*/
|
|
5531
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5509
5532
|
id: "aside-collection-".concat(index, "_").concat(storyId)
|
|
5510
|
-
}, /*#__PURE__*/
|
|
5533
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5511
5534
|
slotData: slot,
|
|
5512
5535
|
data: data,
|
|
5513
5536
|
horizontal: horizontal,
|
|
@@ -5517,13 +5540,13 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5517
5540
|
}
|
|
5518
5541
|
};
|
|
5519
5542
|
|
|
5520
|
-
return /*#__PURE__*/
|
|
5543
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5521
5544
|
style: {
|
|
5522
5545
|
backgroundColor: theme
|
|
5523
5546
|
},
|
|
5524
5547
|
"data-test-id": "aside-collection",
|
|
5525
5548
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$j)
|
|
5526
|
-
}, enableKeyEvents && /*#__PURE__*/
|
|
5549
|
+
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
5527
5550
|
story: keyEventsData.story,
|
|
5528
5551
|
showLoadMore: keyEventsData.showLoadMore,
|
|
5529
5552
|
config: keyEventsData.config
|
|
@@ -5531,25 +5554,24 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
5531
5554
|
return asideSlot(slot.type, slot, index);
|
|
5532
5555
|
}));
|
|
5533
5556
|
};
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
showLoadMore: PropTypes["boolean"]
|
|
5557
|
+
AsideCollectionBase.propTypes = {
|
|
5558
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
|
|
5559
|
+
config: PropTypes__default["default"].object,
|
|
5560
|
+
opts: PropTypes__default["default"].object,
|
|
5561
|
+
horizontal: PropTypes__default["default"].bool,
|
|
5562
|
+
slots: PropTypes__default["default"].array,
|
|
5563
|
+
adComponent: PropTypes__default["default"].func,
|
|
5564
|
+
widgetComp: PropTypes__default["default"].func,
|
|
5565
|
+
sticky: PropTypes__default["default"].bool,
|
|
5566
|
+
keyEventsData: PropTypes__default["default"].shape({
|
|
5567
|
+
story: PropTypes__default["default"].object,
|
|
5568
|
+
config: PropTypes__default["default"].object,
|
|
5569
|
+
showLoadMore: PropTypes__default["default"]["boolean"]
|
|
5548
5570
|
}),
|
|
5549
|
-
enableKeyEvents:
|
|
5550
|
-
storyId:
|
|
5571
|
+
enableKeyEvents: PropTypes__default["default"]["boolean"],
|
|
5572
|
+
storyId: PropTypes__default["default"].string
|
|
5551
5573
|
};
|
|
5552
|
-
var AsideCollection
|
|
5574
|
+
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
5553
5575
|
|
|
5554
5576
|
/**
|
|
5555
5577
|
* Converts `string` to
|
|
@@ -5609,9 +5631,9 @@ var authorImage = function authorImage(author) {
|
|
|
5609
5631
|
return null;
|
|
5610
5632
|
}
|
|
5611
5633
|
|
|
5612
|
-
return /*#__PURE__*/
|
|
5634
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5613
5635
|
"data-test-id": "author-image"
|
|
5614
|
-
}, avatarS3Key ? /*#__PURE__*/
|
|
5636
|
+
}, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5615
5637
|
slug: avatarS3Key,
|
|
5616
5638
|
"aspect-ratio": [1, 1],
|
|
5617
5639
|
defaultWidth: 48,
|
|
@@ -5619,7 +5641,7 @@ var authorImage = function authorImage(author) {
|
|
|
5619
5641
|
auto: ["format", "compress"]
|
|
5620
5642
|
},
|
|
5621
5643
|
alt: authorName
|
|
5622
|
-
}) : /*#__PURE__*/
|
|
5644
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5623
5645
|
src: avatarUrl
|
|
5624
5646
|
}));
|
|
5625
5647
|
};
|
|
@@ -5646,60 +5668,60 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
5646
5668
|
_opts$showName = opts.showName,
|
|
5647
5669
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
5648
5670
|
var textColor = getTextColor(configData.theme);
|
|
5649
|
-
return /*#__PURE__*/
|
|
5671
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5650
5672
|
"data-test-id": "author-card-".concat(kebabCase_1(template)),
|
|
5651
5673
|
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap$i)
|
|
5652
5674
|
}, authors.map(function (author, index) {
|
|
5653
|
-
return /*#__PURE__*/
|
|
5675
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
5654
5676
|
key: author.id
|
|
5655
|
-
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/
|
|
5677
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5656
5678
|
"data-test-id": "author-image",
|
|
5657
5679
|
className: "author-card-m_author-image-wrapper__1at-z"
|
|
5658
|
-
}, /*#__PURE__*/
|
|
5680
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5659
5681
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5660
5682
|
key: "author-image-".concat(index),
|
|
5661
5683
|
"aria-label": "author-image"
|
|
5662
|
-
}, /*#__PURE__*/
|
|
5684
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5663
5685
|
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$i)
|
|
5664
5686
|
}, authorImage(author)))));
|
|
5665
|
-
}), showName && /*#__PURE__*/
|
|
5687
|
+
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5666
5688
|
"data-test-id": "author-name",
|
|
5667
5689
|
className: "author-card-m_author-name-share__3vb9q"
|
|
5668
5690
|
}, authors.map(function (author, index) {
|
|
5669
5691
|
var spaceHolder = ",\xA0";
|
|
5670
|
-
return /*#__PURE__*/
|
|
5692
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, index !== 0 && (authors.length > 1 ? spaceHolder : ""), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5671
5693
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5672
5694
|
"aria-label": "author-name"
|
|
5673
|
-
}, /*#__PURE__*/
|
|
5695
|
+
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
5674
5696
|
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap$i)
|
|
5675
5697
|
}, author.name)));
|
|
5676
|
-
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/
|
|
5698
|
+
}), 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", {
|
|
5677
5699
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
5678
|
-
}, /*#__PURE__*/
|
|
5700
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
5679
5701
|
color: textColor
|
|
5680
|
-
})), /*#__PURE__*/
|
|
5702
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5681
5703
|
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
5682
5704
|
target: "_blank",
|
|
5683
5705
|
rel: "noopener noreferrer"
|
|
5684
|
-
}, /*#__PURE__*/
|
|
5706
|
+
}, /*#__PURE__*/React__default["default"].createElement(Twitter, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5685
5707
|
"data-test-id": "author-info",
|
|
5686
5708
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
5687
|
-
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/
|
|
5709
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5688
5710
|
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap$i)
|
|
5689
5711
|
}, authors[0].bio)));
|
|
5690
5712
|
};
|
|
5691
5713
|
AuthorCard.propTypes = {
|
|
5692
|
-
story:
|
|
5693
|
-
authors:
|
|
5714
|
+
story: PropTypes__default["default"].shape({
|
|
5715
|
+
authors: PropTypes__default["default"].array
|
|
5694
5716
|
}),
|
|
5695
|
-
template:
|
|
5696
|
-
opts:
|
|
5697
|
-
showImage:
|
|
5698
|
-
showBio:
|
|
5699
|
-
showName:
|
|
5717
|
+
template: PropTypes__default["default"].string,
|
|
5718
|
+
opts: PropTypes__default["default"].shape({
|
|
5719
|
+
showImage: PropTypes__default["default"].bool,
|
|
5720
|
+
showBio: PropTypes__default["default"].bool,
|
|
5721
|
+
showName: PropTypes__default["default"].bool
|
|
5700
5722
|
}),
|
|
5701
|
-
mountAt:
|
|
5702
|
-
clazzName:
|
|
5723
|
+
mountAt: PropTypes__default["default"].string,
|
|
5724
|
+
clazzName: PropTypes__default["default"].string
|
|
5703
5725
|
};
|
|
5704
5726
|
|
|
5705
5727
|
var _styleModuleImportMap$h = {
|
|
@@ -5728,12 +5750,12 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5728
5750
|
_ref$timezone = _ref.timezone,
|
|
5729
5751
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
5730
5752
|
|
|
5731
|
-
var _useState = useState("ltr"),
|
|
5753
|
+
var _useState = React.useState("ltr"),
|
|
5732
5754
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5733
5755
|
direction = _useState2[0],
|
|
5734
5756
|
setDirection = _useState2[1];
|
|
5735
5757
|
|
|
5736
|
-
useEffect(function () {
|
|
5758
|
+
React.useEffect(function () {
|
|
5737
5759
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5738
5760
|
|
|
5739
5761
|
if (htmlElement && htmlElement.length > 0 && htmlElement[0].dir.toLocaleLowerCase() === "rtl") {
|
|
@@ -5759,41 +5781,41 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5759
5781
|
direction: direction,
|
|
5760
5782
|
showTime: true
|
|
5761
5783
|
});
|
|
5762
|
-
return /*#__PURE__*/
|
|
5784
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5763
5785
|
"data-test-id": "timeStamp",
|
|
5764
5786
|
className: "arrow-component arr-publish-details " + _getClassName("timeStamp ".concat(textColor), _styleModuleImportMap$h)
|
|
5765
|
-
}, /*#__PURE__*/
|
|
5787
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5766
5788
|
"data-test-id": "publishDetails",
|
|
5767
5789
|
className: _getClassName("publish-details ".concat(textColor), _styleModuleImportMap$h)
|
|
5768
|
-
}, enablePublishedTime && /*#__PURE__*/
|
|
5790
|
+
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5769
5791
|
className: "publish-details-m_date__3ZIQN"
|
|
5770
|
-
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5792
|
+
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5771
5793
|
story: story,
|
|
5772
5794
|
opts: opts
|
|
5773
|
-
}))), enableUpdatedTime && /*#__PURE__*/
|
|
5795
|
+
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5774
5796
|
"data-test-id": "updateDetails",
|
|
5775
5797
|
className: _getClassName("update-details ".concat(textColor), _styleModuleImportMap$h)
|
|
5776
|
-
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/
|
|
5798
|
+
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5777
5799
|
className: "publish-details-m_date__3ZIQN"
|
|
5778
|
-
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5800
|
+
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5779
5801
|
story: story,
|
|
5780
5802
|
opts: opts
|
|
5781
5803
|
})));
|
|
5782
5804
|
};
|
|
5783
5805
|
PublishDetails.propTypes = {
|
|
5784
5806
|
/** The Story Object from the API response */
|
|
5785
|
-
story:
|
|
5786
|
-
"first-published-at":
|
|
5787
|
-
"last-published-at":
|
|
5788
|
-
"read-time":
|
|
5789
|
-
"updated-at":
|
|
5807
|
+
story: PropTypes__default["default"].shape({
|
|
5808
|
+
"first-published-at": PropTypes__default["default"].number,
|
|
5809
|
+
"last-published-at": PropTypes__default["default"].number,
|
|
5810
|
+
"read-time": PropTypes__default["default"].number,
|
|
5811
|
+
"updated-at": PropTypes__default["default"].number
|
|
5790
5812
|
}),
|
|
5791
|
-
timezone:
|
|
5792
|
-
template:
|
|
5793
|
-
opts:
|
|
5794
|
-
showReadTime:
|
|
5795
|
-
enableUpdatedTime:
|
|
5796
|
-
enablePublishedTime:
|
|
5813
|
+
timezone: PropTypes__default["default"].string,
|
|
5814
|
+
template: PropTypes__default["default"].string,
|
|
5815
|
+
opts: PropTypes__default["default"].shape({
|
|
5816
|
+
showReadTime: PropTypes__default["default"].bool,
|
|
5817
|
+
enableUpdatedTime: PropTypes__default["default"].bool,
|
|
5818
|
+
enablePublishedTime: PropTypes__default["default"].bool
|
|
5797
5819
|
})
|
|
5798
5820
|
};
|
|
5799
5821
|
|
|
@@ -5816,24 +5838,24 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
5816
5838
|
var textColor = getTextColor(configData.theme);
|
|
5817
5839
|
var mountAt = get_1(config, ["mountAt"], "");
|
|
5818
5840
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
5819
|
-
return /*#__PURE__*/
|
|
5841
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5820
5842
|
className: "arrow-component arr--story-tags"
|
|
5821
5843
|
}, tags.length > 0 && tags.map(function (tag, index) {
|
|
5822
|
-
return /*#__PURE__*/
|
|
5844
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5823
5845
|
key: index,
|
|
5824
5846
|
"data-test-id": "story-tag",
|
|
5825
5847
|
className: _getClassName("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$g)
|
|
5826
|
-
}, /*#__PURE__*/
|
|
5848
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5827
5849
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
5828
5850
|
"aria-label": "story-tag-name"
|
|
5829
5851
|
}, tag.name));
|
|
5830
5852
|
}));
|
|
5831
5853
|
};
|
|
5832
5854
|
StoryTags.propTypes = {
|
|
5833
|
-
tags:
|
|
5834
|
-
borderColor:
|
|
5835
|
-
config:
|
|
5836
|
-
template: string
|
|
5855
|
+
tags: PropTypes__default["default"].array,
|
|
5856
|
+
borderColor: PropTypes__default["default"].string,
|
|
5857
|
+
config: PropTypes__default["default"].object,
|
|
5858
|
+
template: PropTypes.string
|
|
5837
5859
|
};
|
|
5838
5860
|
|
|
5839
5861
|
var _excluded$c = ["element", "opts", "css", "story", "config"];
|
|
@@ -5869,7 +5891,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
5869
5891
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
5870
5892
|
var isPromotionalMessage = get_1(element, ["metadata", "promotional-message"], false);
|
|
5871
5893
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
5872
|
-
return /*#__PURE__*/
|
|
5894
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5873
5895
|
style: !isPromotionalMessage ? {
|
|
5874
5896
|
color: textColor
|
|
5875
5897
|
} : {},
|
|
@@ -5884,15 +5906,15 @@ var TextBase = function TextBase(_ref) {
|
|
|
5884
5906
|
};
|
|
5885
5907
|
|
|
5886
5908
|
TextBase.propTypes = {
|
|
5887
|
-
element:
|
|
5888
|
-
text:
|
|
5909
|
+
element: PropTypes__default["default"].shape({
|
|
5910
|
+
text: PropTypes__default["default"].string
|
|
5889
5911
|
}),
|
|
5890
|
-
opts:
|
|
5891
|
-
isExternalLink:
|
|
5912
|
+
opts: PropTypes__default["default"].shape({
|
|
5913
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5892
5914
|
}),
|
|
5893
|
-
css:
|
|
5894
|
-
hyperlinkColor:
|
|
5895
|
-
textColor:
|
|
5915
|
+
css: PropTypes__default["default"].shape({
|
|
5916
|
+
hyperlinkColor: PropTypes__default["default"].string,
|
|
5917
|
+
textColor: PropTypes__default["default"].string
|
|
5896
5918
|
}),
|
|
5897
5919
|
story: shapeStory,
|
|
5898
5920
|
config: shapeConfig
|
|
@@ -5933,13 +5955,13 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5933
5955
|
borderLeft: "solid 2px ".concat(borderColor)
|
|
5934
5956
|
};
|
|
5935
5957
|
|
|
5936
|
-
var _useState = useState(initBorderDirection),
|
|
5958
|
+
var _useState = React.useState(initBorderDirection),
|
|
5937
5959
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5938
5960
|
borderDirection = _useState2[0],
|
|
5939
5961
|
setBorderDirection = _useState2[1];
|
|
5940
5962
|
|
|
5941
5963
|
if (!content) return null;
|
|
5942
|
-
useEffect(function () {
|
|
5964
|
+
React.useEffect(function () {
|
|
5943
5965
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5944
5966
|
|
|
5945
5967
|
if (htmlElement && htmlElement.length) {
|
|
@@ -5956,7 +5978,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5956
5978
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
5957
5979
|
var configData = useStateValue() || {};
|
|
5958
5980
|
var textInvertColor = getTextColor(configData.theme);
|
|
5959
|
-
return /*#__PURE__*/
|
|
5981
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5960
5982
|
"data-test-id": "blurb",
|
|
5961
5983
|
style: borderColor && borderDirection,
|
|
5962
5984
|
dangerouslySetInnerHTML: {
|
|
@@ -5968,19 +5990,19 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5968
5990
|
};
|
|
5969
5991
|
|
|
5970
5992
|
BlurbBase.propTypes = {
|
|
5971
|
-
element:
|
|
5972
|
-
text:
|
|
5993
|
+
element: PropTypes__default["default"].shape({
|
|
5994
|
+
text: PropTypes__default["default"].string
|
|
5973
5995
|
}),
|
|
5974
5996
|
|
|
5975
5997
|
/** templates can be either default or withBorder */
|
|
5976
|
-
template:
|
|
5977
|
-
opts:
|
|
5978
|
-
isExternalLink:
|
|
5998
|
+
template: PropTypes__default["default"].string,
|
|
5999
|
+
opts: PropTypes__default["default"].shape({
|
|
6000
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5979
6001
|
}),
|
|
5980
6002
|
story: shapeStory,
|
|
5981
6003
|
config: shapeConfig,
|
|
5982
|
-
render:
|
|
5983
|
-
css:
|
|
6004
|
+
render: PropTypes__default["default"].func,
|
|
6005
|
+
css: PropTypes__default["default"].object
|
|
5984
6006
|
};
|
|
5985
6007
|
var Blurb = withElementWrapper(BlurbBase);
|
|
5986
6008
|
|
|
@@ -6033,19 +6055,19 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6033
6055
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
6034
6056
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
6035
6057
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
6036
|
-
return /*#__PURE__*/
|
|
6058
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6037
6059
|
"data-test-id": "summary"
|
|
6038
6060
|
}, restProps, {
|
|
6039
6061
|
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName(templateStyle, _styleModuleImportMap$d) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6040
|
-
}), !hideHeadline && /*#__PURE__*/
|
|
6062
|
+
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6041
6063
|
"data-test-id": "summary-headline",
|
|
6042
6064
|
className: _getClassName("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$d)
|
|
6043
|
-
}, /*#__PURE__*/
|
|
6065
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6044
6066
|
style: {
|
|
6045
6067
|
backgroundColor: updateHeaderColor
|
|
6046
6068
|
},
|
|
6047
6069
|
className: _getClassName("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$d)
|
|
6048
|
-
}, headline)), /*#__PURE__*/
|
|
6070
|
+
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6049
6071
|
dangerouslySetInnerHTML: {
|
|
6050
6072
|
__html: text
|
|
6051
6073
|
},
|
|
@@ -6054,20 +6076,20 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6054
6076
|
};
|
|
6055
6077
|
|
|
6056
6078
|
SummaryBase.propTypes = {
|
|
6057
|
-
element:
|
|
6058
|
-
text:
|
|
6079
|
+
element: PropTypes__default["default"].shape({
|
|
6080
|
+
text: PropTypes__default["default"].string
|
|
6059
6081
|
}),
|
|
6060
|
-
template:
|
|
6061
|
-
opts:
|
|
6062
|
-
isExternalLink:
|
|
6063
|
-
headline:
|
|
6064
|
-
hideHeadline:
|
|
6082
|
+
template: PropTypes__default["default"].string,
|
|
6083
|
+
opts: PropTypes__default["default"].shape({
|
|
6084
|
+
isExternalLink: PropTypes__default["default"].bool,
|
|
6085
|
+
headline: PropTypes__default["default"].string,
|
|
6086
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
6065
6087
|
}),
|
|
6066
6088
|
story: shapeStory,
|
|
6067
6089
|
config: shapeConfig,
|
|
6068
|
-
render:
|
|
6069
|
-
css:
|
|
6070
|
-
headerBgColor:
|
|
6090
|
+
render: PropTypes__default["default"].func,
|
|
6091
|
+
css: PropTypes__default["default"].shape({
|
|
6092
|
+
headerBgColor: PropTypes__default["default"].string
|
|
6071
6093
|
})
|
|
6072
6094
|
};
|
|
6073
6095
|
var Summary = withElementWrapper(SummaryBase);
|
|
@@ -6079,27 +6101,27 @@ var CurveIcon = function CurveIcon(_ref) {
|
|
|
6079
6101
|
opacity = _ref.opacity;
|
|
6080
6102
|
var lightColor = color === "light" && "#ffffff";
|
|
6081
6103
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6082
|
-
return /*#__PURE__*/
|
|
6104
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6083
6105
|
className: "icon-m_curve-wrapper__3-sLV",
|
|
6084
6106
|
style: {
|
|
6085
6107
|
fill: "".concat(lightColor || darkColor || color)
|
|
6086
6108
|
}
|
|
6087
|
-
}, /*#__PURE__*/
|
|
6109
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6088
6110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6089
6111
|
width: width,
|
|
6090
6112
|
height: height,
|
|
6091
6113
|
viewBox: "0 0 64 64"
|
|
6092
|
-
}, /*#__PURE__*/
|
|
6114
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6093
6115
|
fill: "inherit",
|
|
6094
6116
|
opacity: opacity,
|
|
6095
6117
|
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"
|
|
6096
6118
|
})));
|
|
6097
6119
|
};
|
|
6098
6120
|
CurveIcon.propTypes = {
|
|
6099
|
-
width:
|
|
6100
|
-
height:
|
|
6101
|
-
color:
|
|
6102
|
-
opacity:
|
|
6121
|
+
width: PropTypes__default["default"].string,
|
|
6122
|
+
height: PropTypes__default["default"].string,
|
|
6123
|
+
color: PropTypes__default["default"].string,
|
|
6124
|
+
opacity: PropTypes__default["default"].string
|
|
6103
6125
|
};
|
|
6104
6126
|
|
|
6105
6127
|
var EdgeIcon = function EdgeIcon(_ref) {
|
|
@@ -6109,27 +6131,27 @@ var EdgeIcon = function EdgeIcon(_ref) {
|
|
|
6109
6131
|
opacity = _ref.opacity;
|
|
6110
6132
|
var lightColor = color === "light" && "#ffffff";
|
|
6111
6133
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6112
|
-
return /*#__PURE__*/
|
|
6134
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6113
6135
|
className: "icon-m_edge-wrapper__xUOdp",
|
|
6114
6136
|
style: {
|
|
6115
6137
|
fill: "".concat(lightColor || darkColor || color)
|
|
6116
6138
|
}
|
|
6117
|
-
}, /*#__PURE__*/
|
|
6139
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6118
6140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6119
6141
|
width: width,
|
|
6120
6142
|
height: height,
|
|
6121
6143
|
viewBox: "0 0 64 64"
|
|
6122
|
-
}, /*#__PURE__*/
|
|
6144
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6123
6145
|
fill: "inherit",
|
|
6124
6146
|
opacity: opacity,
|
|
6125
6147
|
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"
|
|
6126
6148
|
})));
|
|
6127
6149
|
};
|
|
6128
6150
|
EdgeIcon.propTypes = {
|
|
6129
|
-
width:
|
|
6130
|
-
height:
|
|
6131
|
-
color:
|
|
6132
|
-
opacity:
|
|
6151
|
+
width: PropTypes__default["default"].string,
|
|
6152
|
+
height: PropTypes__default["default"].string,
|
|
6153
|
+
color: PropTypes__default["default"].string,
|
|
6154
|
+
opacity: PropTypes__default["default"].string
|
|
6133
6155
|
};
|
|
6134
6156
|
|
|
6135
6157
|
var _excluded$9 = ["element", "template", "css", "story", "config", "render"];
|
|
@@ -6159,7 +6181,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6159
6181
|
|
|
6160
6182
|
if (template === "withBackground") {
|
|
6161
6183
|
if (iconType === "edgeIcon") {
|
|
6162
|
-
return /*#__PURE__*/
|
|
6184
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6163
6185
|
width: dimension,
|
|
6164
6186
|
height: dimension,
|
|
6165
6187
|
color: quoteColor,
|
|
@@ -6167,7 +6189,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6167
6189
|
});
|
|
6168
6190
|
}
|
|
6169
6191
|
|
|
6170
|
-
return /*#__PURE__*/
|
|
6192
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6171
6193
|
width: dimension,
|
|
6172
6194
|
height: dimension,
|
|
6173
6195
|
color: quoteColor,
|
|
@@ -6177,14 +6199,14 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6177
6199
|
|
|
6178
6200
|
if (template !== "withBackground") {
|
|
6179
6201
|
if (iconType === "edgeIcon") {
|
|
6180
|
-
return /*#__PURE__*/
|
|
6202
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6181
6203
|
width: dimension,
|
|
6182
6204
|
height: dimension,
|
|
6183
6205
|
color: blockQuoteColor
|
|
6184
6206
|
});
|
|
6185
6207
|
}
|
|
6186
6208
|
|
|
6187
|
-
return /*#__PURE__*/
|
|
6209
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6188
6210
|
width: dimension,
|
|
6189
6211
|
height: dimension,
|
|
6190
6212
|
color: blockQuoteColor
|
|
@@ -6220,38 +6242,38 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6220
6242
|
var textInvertColor = getTextColor(isBackground ? theme.backgroundColor : configData.theme);
|
|
6221
6243
|
|
|
6222
6244
|
var updateStructure = function updateStructure() {
|
|
6223
|
-
return template === "withBorder" ? /*#__PURE__*/
|
|
6245
|
+
return template === "withBorder" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6224
6246
|
className: "block-quote-m_icon-border__2xQQY"
|
|
6225
|
-
}, /*#__PURE__*/
|
|
6247
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6226
6248
|
className: "block-quote-m_icon__m-EIZ"
|
|
6227
|
-
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/
|
|
6249
|
+
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6228
6250
|
className: "block-quote-m_border__1ZTPR",
|
|
6229
6251
|
style: blockQuoteColor && {
|
|
6230
6252
|
backgroundColor: blockQuoteColor
|
|
6231
6253
|
}
|
|
6232
|
-
})) : /*#__PURE__*/
|
|
6254
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6233
6255
|
className: "block-quote-m_icon__m-EIZ"
|
|
6234
6256
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
6235
6257
|
};
|
|
6236
6258
|
|
|
6237
|
-
return /*#__PURE__*/
|
|
6259
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6238
6260
|
"data-test-id": "blockquote",
|
|
6239
6261
|
style: theme
|
|
6240
6262
|
}, restProps, {
|
|
6241
6263
|
className: "arrow-component arr--block-quote " + _getClassName("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$c) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6242
|
-
}), /*#__PURE__*/
|
|
6264
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6243
6265
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
6244
|
-
}, updateStructure(), /*#__PURE__*/
|
|
6266
|
+
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6245
6267
|
className: "block-quote-m_wrapper__2KEhw",
|
|
6246
6268
|
style: blockQuoteColor && {
|
|
6247
6269
|
borderColor: blockQuoteColor
|
|
6248
6270
|
}
|
|
6249
|
-
}, /*#__PURE__*/
|
|
6271
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6250
6272
|
dangerouslySetInnerHTML: {
|
|
6251
6273
|
__html: content
|
|
6252
6274
|
},
|
|
6253
6275
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$c)
|
|
6254
|
-
}), /*#__PURE__*/
|
|
6276
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6255
6277
|
dangerouslySetInnerHTML: {
|
|
6256
6278
|
__html: attribution
|
|
6257
6279
|
},
|
|
@@ -6259,17 +6281,17 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6259
6281
|
}))));
|
|
6260
6282
|
};
|
|
6261
6283
|
BlockQuoteBase.propTypes = {
|
|
6262
|
-
element:
|
|
6263
|
-
metadata:
|
|
6264
|
-
content:
|
|
6265
|
-
attribution:
|
|
6284
|
+
element: PropTypes__default["default"].shape({
|
|
6285
|
+
metadata: PropTypes__default["default"].shape({
|
|
6286
|
+
content: PropTypes__default["default"].string,
|
|
6287
|
+
attribution: PropTypes__default["default"].string
|
|
6266
6288
|
})
|
|
6267
6289
|
}),
|
|
6268
|
-
template:
|
|
6290
|
+
template: PropTypes__default["default"].string,
|
|
6269
6291
|
story: shapeStory,
|
|
6270
6292
|
config: shapeConfig,
|
|
6271
|
-
render:
|
|
6272
|
-
css:
|
|
6293
|
+
render: PropTypes__default["default"].func,
|
|
6294
|
+
css: PropTypes__default["default"].object
|
|
6273
6295
|
};
|
|
6274
6296
|
var BlockQuote = withElementWrapper(BlockQuoteBase);
|
|
6275
6297
|
|
|
@@ -6297,27 +6319,27 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
6297
6319
|
var _element$metadata = element.metadata,
|
|
6298
6320
|
content = _element$metadata.content,
|
|
6299
6321
|
attribution = _element$metadata.attribution;
|
|
6300
|
-
return /*#__PURE__*/
|
|
6322
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6301
6323
|
"data-test-id": "bigfact"
|
|
6302
6324
|
}, restProps, {
|
|
6303
6325
|
className: "arrow-component arr--bigfact-element " + _getClassName("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$b) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6304
|
-
}), /*#__PURE__*/
|
|
6326
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6305
6327
|
className: "big-fact-m_content__1u2Ul"
|
|
6306
|
-
}, content), /*#__PURE__*/
|
|
6328
|
+
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6307
6329
|
"data-test-id": "attribution",
|
|
6308
6330
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$b)
|
|
6309
6331
|
}, attribution));
|
|
6310
6332
|
};
|
|
6311
6333
|
|
|
6312
6334
|
BigFactBase.propTypes = {
|
|
6313
|
-
element:
|
|
6314
|
-
metadata:
|
|
6315
|
-
content:
|
|
6316
|
-
attribution:
|
|
6335
|
+
element: PropTypes__default["default"].shape({
|
|
6336
|
+
metadata: PropTypes__default["default"].shape({
|
|
6337
|
+
content: PropTypes__default["default"].string,
|
|
6338
|
+
attribution: PropTypes__default["default"].string
|
|
6317
6339
|
})
|
|
6318
6340
|
}),
|
|
6319
|
-
story:
|
|
6320
|
-
config:
|
|
6341
|
+
story: PropTypes__default["default"].object,
|
|
6342
|
+
config: PropTypes__default["default"].object
|
|
6321
6343
|
};
|
|
6322
6344
|
var BigFact = withElementWrapper(BigFactBase);
|
|
6323
6345
|
|
|
@@ -6351,11 +6373,11 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6351
6373
|
var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
|
|
6352
6374
|
var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
|
|
6353
6375
|
var alternateText = story["hero-image-caption"] || story["headline"];
|
|
6354
|
-
return /*#__PURE__*/
|
|
6376
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6355
6377
|
className: "also-read-m_card-image-wrapper__3GFzu"
|
|
6356
|
-
}, !isEmpty(linkedImage) ? /*#__PURE__*/
|
|
6378
|
+
}, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6357
6379
|
className: "also-read-m_card-image__3CwAv"
|
|
6358
|
-
}, /*#__PURE__*/
|
|
6380
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6359
6381
|
slug: linkedImage,
|
|
6360
6382
|
"aspect-ratio": imageAspectRatio,
|
|
6361
6383
|
defaultWidth: 480,
|
|
@@ -6364,19 +6386,19 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6364
6386
|
auto: ["format", "compress"]
|
|
6365
6387
|
},
|
|
6366
6388
|
alt: alternateText
|
|
6367
|
-
}))) : /*#__PURE__*/
|
|
6389
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6368
6390
|
className: "arr--fallback-also-read also-read-m_image__2jdRP"
|
|
6369
|
-
}, /*#__PURE__*/
|
|
6391
|
+
}, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
|
|
6370
6392
|
};
|
|
6371
6393
|
|
|
6372
6394
|
DisplayImage.propTypes = {
|
|
6373
|
-
story:
|
|
6374
|
-
"hero-image-caption":
|
|
6375
|
-
headline:
|
|
6395
|
+
story: PropTypes__default["default"].shape({
|
|
6396
|
+
"hero-image-caption": PropTypes__default["default"].string,
|
|
6397
|
+
headline: PropTypes__default["default"].string
|
|
6376
6398
|
}),
|
|
6377
|
-
linkedImage:
|
|
6378
|
-
template:
|
|
6379
|
-
isRightAlign:
|
|
6399
|
+
linkedImage: PropTypes__default["default"].string,
|
|
6400
|
+
template: PropTypes__default["default"].string,
|
|
6401
|
+
isRightAlign: PropTypes__default["default"].bool
|
|
6380
6402
|
};
|
|
6381
6403
|
|
|
6382
6404
|
var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
@@ -6409,22 +6431,22 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6409
6431
|
var isDefault = template === "" || template === "default";
|
|
6410
6432
|
var isRightAlign = template === "imageRightAlign";
|
|
6411
6433
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
6412
|
-
return /*#__PURE__*/
|
|
6434
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
|
|
6413
6435
|
"data-test-id": "also-read",
|
|
6414
6436
|
href: storyUrl,
|
|
6415
6437
|
"aria-label": "also-read"
|
|
6416
6438
|
}, restProps, {
|
|
6417
6439
|
className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap$a) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6418
|
-
}), !isDefault && /*#__PURE__*/
|
|
6440
|
+
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6419
6441
|
className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap$a)
|
|
6420
|
-
}, displayTitle), isDefault && /*#__PURE__*/
|
|
6442
|
+
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6421
6443
|
story: story,
|
|
6422
6444
|
linkedImage: linkedImage,
|
|
6423
6445
|
template: template,
|
|
6424
6446
|
isRightAlign: isRightAlign
|
|
6425
|
-
}), /*#__PURE__*/
|
|
6447
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6426
6448
|
className: "also-read-m_content-wrapper__26AZX"
|
|
6427
|
-
}, /*#__PURE__*/
|
|
6449
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6428
6450
|
className: "also-read-m_headline__VzF-c",
|
|
6429
6451
|
style: textColor ? {
|
|
6430
6452
|
color: textColor
|
|
@@ -6434,7 +6456,7 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6434
6456
|
dangerouslySetInnerHTML: {
|
|
6435
6457
|
__html: content
|
|
6436
6458
|
}
|
|
6437
|
-
}), isRightAlign && /*#__PURE__*/
|
|
6459
|
+
}), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6438
6460
|
story: story,
|
|
6439
6461
|
linkedImage: linkedImage,
|
|
6440
6462
|
template: template
|
|
@@ -6443,25 +6465,25 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6443
6465
|
|
|
6444
6466
|
AlsoReadBase.propTypes = {
|
|
6445
6467
|
/** template can be default, textLeftAlign or imageRightAlign */
|
|
6446
|
-
template:
|
|
6447
|
-
story:
|
|
6448
|
-
"linked-stories":
|
|
6468
|
+
template: PropTypes__default["default"].string,
|
|
6469
|
+
story: PropTypes__default["default"].shape({
|
|
6470
|
+
"linked-stories": PropTypes__default["default"].object
|
|
6449
6471
|
}),
|
|
6450
|
-
element:
|
|
6451
|
-
text:
|
|
6452
|
-
metadata:
|
|
6453
|
-
linkedStoryId:
|
|
6454
|
-
url:
|
|
6455
|
-
"hero-image-s3-key":
|
|
6472
|
+
element: PropTypes__default["default"].shape({
|
|
6473
|
+
text: PropTypes__default["default"].string,
|
|
6474
|
+
metadata: PropTypes__default["default"].shape({
|
|
6475
|
+
linkedStoryId: PropTypes__default["default"].shape({
|
|
6476
|
+
url: PropTypes__default["default"].string,
|
|
6477
|
+
"hero-image-s3-key": PropTypes__default["default"].string
|
|
6456
6478
|
})
|
|
6457
6479
|
})
|
|
6458
6480
|
}),
|
|
6459
|
-
opts:
|
|
6460
|
-
title:
|
|
6481
|
+
opts: PropTypes__default["default"].shape({
|
|
6482
|
+
title: PropTypes__default["default"].string
|
|
6461
6483
|
}),
|
|
6462
6484
|
config: shapeConfig,
|
|
6463
|
-
render:
|
|
6464
|
-
css:
|
|
6485
|
+
render: PropTypes__default["default"].func,
|
|
6486
|
+
css: PropTypes__default["default"].object
|
|
6465
6487
|
};
|
|
6466
6488
|
var AlsoRead = withElementWrapper(AlsoReadBase);
|
|
6467
6489
|
|
|
@@ -6469,20 +6491,20 @@ var Loading = function Loading(_ref) {
|
|
|
6469
6491
|
_ref.width;
|
|
6470
6492
|
_ref.height;
|
|
6471
6493
|
_ref.iconColor;
|
|
6472
|
-
return /*#__PURE__*/
|
|
6494
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6473
6495
|
className: "loading-m_loading-indicator__2Dlst"
|
|
6474
|
-
}, /*#__PURE__*/
|
|
6496
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6475
6497
|
width: "40",
|
|
6476
6498
|
height: "40",
|
|
6477
6499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6478
6500
|
viewBox: "0 0 100 100",
|
|
6479
6501
|
preserveAspectRatio: "xMidYMid"
|
|
6480
|
-
}, /*#__PURE__*/
|
|
6502
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6481
6503
|
cx: "84",
|
|
6482
6504
|
cy: "50",
|
|
6483
6505
|
r: "0",
|
|
6484
6506
|
fill: "currentColor"
|
|
6485
|
-
}, /*#__PURE__*/
|
|
6507
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6486
6508
|
attributeName: "r",
|
|
6487
6509
|
values: "10;0;0;0;0",
|
|
6488
6510
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6491,7 +6513,7 @@ var Loading = function Loading(_ref) {
|
|
|
6491
6513
|
dur: "2s",
|
|
6492
6514
|
repeatCount: "indefinite",
|
|
6493
6515
|
begin: "0s"
|
|
6494
|
-
}), /*#__PURE__*/
|
|
6516
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6495
6517
|
attributeName: "cx",
|
|
6496
6518
|
values: "84;84;84;84;84",
|
|
6497
6519
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6500,12 +6522,12 @@ var Loading = function Loading(_ref) {
|
|
|
6500
6522
|
dur: "2s",
|
|
6501
6523
|
repeatCount: "indefinite",
|
|
6502
6524
|
begin: "0s"
|
|
6503
|
-
})), /*#__PURE__*/
|
|
6525
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6504
6526
|
cx: "84",
|
|
6505
6527
|
cy: "50",
|
|
6506
6528
|
r: ".709",
|
|
6507
6529
|
fill: "currentColor"
|
|
6508
|
-
}, /*#__PURE__*/
|
|
6530
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6509
6531
|
attributeName: "r",
|
|
6510
6532
|
values: "0;10;10;10;0",
|
|
6511
6533
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6514,7 +6536,7 @@ var Loading = function Loading(_ref) {
|
|
|
6514
6536
|
dur: "2s",
|
|
6515
6537
|
repeatCount: "indefinite",
|
|
6516
6538
|
begin: "-1s"
|
|
6517
|
-
}), /*#__PURE__*/
|
|
6539
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6518
6540
|
attributeName: "cx",
|
|
6519
6541
|
values: "16;16;50;84;84",
|
|
6520
6542
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6523,12 +6545,12 @@ var Loading = function Loading(_ref) {
|
|
|
6523
6545
|
dur: "2s",
|
|
6524
6546
|
repeatCount: "indefinite",
|
|
6525
6547
|
begin: "-1s"
|
|
6526
|
-
})), /*#__PURE__*/
|
|
6548
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6527
6549
|
cx: "81.59",
|
|
6528
6550
|
cy: "50",
|
|
6529
6551
|
r: "10",
|
|
6530
6552
|
fill: "currentColor"
|
|
6531
|
-
}, /*#__PURE__*/
|
|
6553
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6532
6554
|
attributeName: "r",
|
|
6533
6555
|
values: "0;10;10;10;0",
|
|
6534
6556
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6537,7 +6559,7 @@ var Loading = function Loading(_ref) {
|
|
|
6537
6559
|
dur: "2s",
|
|
6538
6560
|
repeatCount: "indefinite",
|
|
6539
6561
|
begin: "-0.5s"
|
|
6540
|
-
}), /*#__PURE__*/
|
|
6562
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6541
6563
|
attributeName: "cx",
|
|
6542
6564
|
values: "16;16;50;84;84",
|
|
6543
6565
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6546,12 +6568,12 @@ var Loading = function Loading(_ref) {
|
|
|
6546
6568
|
dur: "2s",
|
|
6547
6569
|
repeatCount: "indefinite",
|
|
6548
6570
|
begin: "-0.5s"
|
|
6549
|
-
})), /*#__PURE__*/
|
|
6571
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6550
6572
|
cx: "47.59",
|
|
6551
6573
|
cy: "50",
|
|
6552
6574
|
r: "10",
|
|
6553
6575
|
fill: "currentColor"
|
|
6554
|
-
}, /*#__PURE__*/
|
|
6576
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6555
6577
|
attributeName: "r",
|
|
6556
6578
|
values: "0;10;10;10;0",
|
|
6557
6579
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6560,7 +6582,7 @@ var Loading = function Loading(_ref) {
|
|
|
6560
6582
|
dur: "2s",
|
|
6561
6583
|
repeatCount: "indefinite",
|
|
6562
6584
|
begin: "0s"
|
|
6563
|
-
}), /*#__PURE__*/
|
|
6585
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6564
6586
|
attributeName: "cx",
|
|
6565
6587
|
values: "16;16;50;84;84",
|
|
6566
6588
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6569,12 +6591,12 @@ var Loading = function Loading(_ref) {
|
|
|
6569
6591
|
dur: "2s",
|
|
6570
6592
|
repeatCount: "indefinite",
|
|
6571
6593
|
begin: "0s"
|
|
6572
|
-
})), /*#__PURE__*/
|
|
6594
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6573
6595
|
cx: "16",
|
|
6574
6596
|
cy: "50",
|
|
6575
6597
|
r: "9.291",
|
|
6576
6598
|
fill: "currentColor"
|
|
6577
|
-
}, /*#__PURE__*/
|
|
6599
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6578
6600
|
attributeName: "r",
|
|
6579
6601
|
values: "0;0;10;10;10",
|
|
6580
6602
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6583,7 +6605,7 @@ var Loading = function Loading(_ref) {
|
|
|
6583
6605
|
dur: "2s",
|
|
6584
6606
|
repeatCount: "indefinite",
|
|
6585
6607
|
begin: "0s"
|
|
6586
|
-
}), /*#__PURE__*/
|
|
6608
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6587
6609
|
attributeName: "cx",
|
|
6588
6610
|
values: "16;16;16;50;84",
|
|
6589
6611
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6595,16 +6617,16 @@ var Loading = function Loading(_ref) {
|
|
|
6595
6617
|
}))));
|
|
6596
6618
|
};
|
|
6597
6619
|
Loading.propTypes = {
|
|
6598
|
-
width:
|
|
6599
|
-
height:
|
|
6600
|
-
iconColor:
|
|
6620
|
+
width: PropTypes__default["default"].object,
|
|
6621
|
+
height: PropTypes__default["default"].object,
|
|
6622
|
+
iconColor: PropTypes__default["default"].object
|
|
6601
6623
|
};
|
|
6602
6624
|
|
|
6603
6625
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6604
6626
|
|
|
6605
6627
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6606
|
-
var Lightbox = /*#__PURE__*/lazy(function () {
|
|
6607
|
-
return
|
|
6628
|
+
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
6629
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
6608
6630
|
});
|
|
6609
6631
|
var FullScreenImages = function FullScreenImages(_ref) {
|
|
6610
6632
|
var _ref$imageSlug = _ref.imageSlug,
|
|
@@ -6613,16 +6635,16 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6613
6635
|
_ref$element = _ref.element,
|
|
6614
6636
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
6615
6637
|
props = _ref.props;
|
|
6616
|
-
var cdnImage = useSelector(function (state) {
|
|
6638
|
+
var cdnImage = reactRedux.useSelector(function (state) {
|
|
6617
6639
|
return get_1(state, ["qt", "config", "cdn-image"]);
|
|
6618
6640
|
});
|
|
6619
6641
|
|
|
6620
|
-
var _useState = useState(0),
|
|
6642
|
+
var _useState = React.useState(0),
|
|
6621
6643
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6622
6644
|
photoIndex = _useState2[0],
|
|
6623
6645
|
handleImage = _useState2[1];
|
|
6624
6646
|
|
|
6625
|
-
var _useState3 = useState(false),
|
|
6647
|
+
var _useState3 = React.useState(false),
|
|
6626
6648
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
6627
6649
|
isOpen = _useState4[0],
|
|
6628
6650
|
handleOpen = _useState4[1];
|
|
@@ -6664,7 +6686,7 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6664
6686
|
|
|
6665
6687
|
var getHyperLink = function getHyperLink() {
|
|
6666
6688
|
if (element.hyperlink || hyperlinks[photoIndex]) {
|
|
6667
|
-
return /*#__PURE__*/
|
|
6689
|
+
return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6668
6690
|
hyperLink: element.hyperlink || hyperlinks[photoIndex]
|
|
6669
6691
|
});
|
|
6670
6692
|
}
|
|
@@ -6689,23 +6711,23 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6689
6711
|
};
|
|
6690
6712
|
|
|
6691
6713
|
var LoadingScreen = function LoadingScreen() {
|
|
6692
|
-
return /*#__PURE__*/
|
|
6714
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
6693
6715
|
};
|
|
6694
6716
|
|
|
6695
|
-
return /*#__PURE__*/
|
|
6696
|
-
fallback: /*#__PURE__*/
|
|
6697
|
-
}, /*#__PURE__*/
|
|
6717
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread(_defineProperty({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
6718
|
+
fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
|
|
6719
|
+
}, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends({
|
|
6698
6720
|
wrapperClassName: "arr--image-lightbox",
|
|
6699
6721
|
onCloseRequest: onClose
|
|
6700
6722
|
}, lightboxProps))) : null);
|
|
6701
6723
|
};
|
|
6702
6724
|
FullScreenImages.propTypes = {
|
|
6703
|
-
imageSlug:
|
|
6704
|
-
template:
|
|
6705
|
-
element:
|
|
6706
|
-
"story-elements":
|
|
6725
|
+
imageSlug: PropTypes__default["default"].string,
|
|
6726
|
+
template: PropTypes__default["default"].func,
|
|
6727
|
+
element: PropTypes__default["default"].shape({
|
|
6728
|
+
"story-elements": PropTypes__default["default"].array
|
|
6707
6729
|
}),
|
|
6708
|
-
props:
|
|
6730
|
+
props: PropTypes__default["default"].object
|
|
6709
6731
|
};
|
|
6710
6732
|
|
|
6711
6733
|
var _styleModuleImportMap$9 = {
|
|
@@ -6742,14 +6764,14 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
6742
6764
|
var caption = heroImageCaption || title;
|
|
6743
6765
|
var attribution = heroImageAttribution || imageAttribution;
|
|
6744
6766
|
var updateStyle = caption ? "wrapper" : "";
|
|
6745
|
-
return /*#__PURE__*/
|
|
6767
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6746
6768
|
"data-test-id": "caption",
|
|
6747
6769
|
className: "arr--caption-attribution " + _getClassName("caption ".concat(textColor), _styleModuleImportMap$9)
|
|
6748
|
-
}, /*#__PURE__*/
|
|
6770
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6749
6771
|
dangerouslySetInnerHTML: {
|
|
6750
6772
|
__html: caption
|
|
6751
6773
|
}
|
|
6752
|
-
}), attribution && /*#__PURE__*/
|
|
6774
|
+
}), attribution && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6753
6775
|
"data-test-id": "attribution",
|
|
6754
6776
|
dangerouslySetInnerHTML: {
|
|
6755
6777
|
__html: attribution
|
|
@@ -6758,13 +6780,13 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
6758
6780
|
}));
|
|
6759
6781
|
};
|
|
6760
6782
|
CaptionAttribution.propTypes = {
|
|
6761
|
-
config:
|
|
6762
|
-
theme:
|
|
6783
|
+
config: PropTypes__default["default"].shape({
|
|
6784
|
+
theme: PropTypes__default["default"].string
|
|
6763
6785
|
}),
|
|
6764
6786
|
story: shapeStory,
|
|
6765
|
-
element:
|
|
6766
|
-
"image-attribution":
|
|
6767
|
-
title:
|
|
6787
|
+
element: PropTypes__default["default"].shape({
|
|
6788
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
6789
|
+
title: PropTypes__default["default"].string
|
|
6768
6790
|
})
|
|
6769
6791
|
};
|
|
6770
6792
|
|
|
@@ -6786,14 +6808,14 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6786
6808
|
|
|
6787
6809
|
var ImageTemplate = function ImageTemplate(_ref2) {
|
|
6788
6810
|
var _onClick = _ref2.onClick;
|
|
6789
|
-
return /*#__PURE__*/
|
|
6811
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6790
6812
|
className: "image-m_image-template__3s9OA"
|
|
6791
|
-
}, /*#__PURE__*/
|
|
6813
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6792
6814
|
className: "image-m_element__KVuzX",
|
|
6793
6815
|
onClick: function onClick() {
|
|
6794
6816
|
return _onClick();
|
|
6795
6817
|
}
|
|
6796
|
-
}, /*#__PURE__*/
|
|
6818
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6797
6819
|
slug: element["image-s3-key"],
|
|
6798
6820
|
metadata: element["image-metadata"],
|
|
6799
6821
|
alt: element["title"],
|
|
@@ -6803,40 +6825,40 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6803
6825
|
imgParams: {
|
|
6804
6826
|
auto: ["format", "compress"]
|
|
6805
6827
|
}
|
|
6806
|
-
})), element["hyperlink"] && /*#__PURE__*/
|
|
6828
|
+
})), element["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6807
6829
|
hyperLink: element["hyperlink"]
|
|
6808
6830
|
}));
|
|
6809
6831
|
};
|
|
6810
6832
|
|
|
6811
6833
|
ImageTemplate.propTypes = {
|
|
6812
|
-
onClick:
|
|
6834
|
+
onClick: PropTypes__default["default"].func
|
|
6813
6835
|
};
|
|
6814
|
-
return /*#__PURE__*/
|
|
6836
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6815
6837
|
className: "arrow-component arr--image-element"
|
|
6816
6838
|
}, restProps, {
|
|
6817
6839
|
"data-test-id": "image-element"
|
|
6818
|
-
}), /*#__PURE__*/
|
|
6840
|
+
}), /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6819
6841
|
template: ImageTemplate,
|
|
6820
6842
|
element: element,
|
|
6821
6843
|
imageSlug: element["image-s3-key"],
|
|
6822
6844
|
story: story
|
|
6823
|
-
}), caption && /*#__PURE__*/
|
|
6845
|
+
}), caption && /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
6824
6846
|
element: element,
|
|
6825
6847
|
config: configData
|
|
6826
6848
|
}));
|
|
6827
6849
|
};
|
|
6828
6850
|
|
|
6829
6851
|
ImageBase.propTypes = {
|
|
6830
|
-
element:
|
|
6831
|
-
"image-s3-key":
|
|
6832
|
-
"image-metadata":
|
|
6833
|
-
"image-attribution":
|
|
6834
|
-
title:
|
|
6835
|
-
hyperlink:
|
|
6852
|
+
element: PropTypes__default["default"].shape({
|
|
6853
|
+
"image-s3-key": PropTypes__default["default"].string,
|
|
6854
|
+
"image-metadata": PropTypes__default["default"].object,
|
|
6855
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
6856
|
+
title: PropTypes__default["default"].string,
|
|
6857
|
+
hyperlink: PropTypes__default["default"].string
|
|
6836
6858
|
}),
|
|
6837
|
-
caption:
|
|
6838
|
-
opts:
|
|
6839
|
-
imageWidths:
|
|
6859
|
+
caption: PropTypes__default["default"].bool,
|
|
6860
|
+
opts: PropTypes__default["default"].shape({
|
|
6861
|
+
imageWidths: PropTypes__default["default"].array
|
|
6840
6862
|
}),
|
|
6841
6863
|
story: shapeStory,
|
|
6842
6864
|
config: shapeConfig
|
|
@@ -6929,14 +6951,14 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6929
6951
|
var isAuthorImageTemplate = template === "withAuthorImage";
|
|
6930
6952
|
var templateStyle = isAuthorImageTemplate ? "qa-withAuthorImage" : "qa-default";
|
|
6931
6953
|
var iconType = defaultIconType === "curve" ? "curveIcon" : "edgeIcon";
|
|
6932
|
-
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/
|
|
6954
|
+
var supportQuestionElement = isAuthorImageTemplate ? questionAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6933
6955
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6934
|
-
}, /*#__PURE__*/
|
|
6956
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6935
6957
|
src: questionAttribution,
|
|
6936
6958
|
loading: "lazy"
|
|
6937
|
-
})), /*#__PURE__*/
|
|
6959
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6938
6960
|
className: "question-answer-m_hidden__K0n4n"
|
|
6939
|
-
})) : /*#__PURE__*/
|
|
6961
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6940
6962
|
"data-test-id": iconType,
|
|
6941
6963
|
style: {
|
|
6942
6964
|
backgroundColor: iconColor
|
|
@@ -6944,36 +6966,36 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6944
6966
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6945
6967
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
6946
6968
|
|
|
6947
|
-
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/
|
|
6969
|
+
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6948
6970
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6949
|
-
}, /*#__PURE__*/
|
|
6971
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6950
6972
|
src: answerAttribution,
|
|
6951
6973
|
loading: "lazy"
|
|
6952
|
-
})), /*#__PURE__*/
|
|
6974
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6953
6975
|
className: "question-answer-m_hidden__K0n4n"
|
|
6954
|
-
})) : /*#__PURE__*/
|
|
6976
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6955
6977
|
"data-test-id": iconType,
|
|
6956
6978
|
style: {
|
|
6957
6979
|
backgroundColor: iconColor
|
|
6958
6980
|
},
|
|
6959
6981
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6960
6982
|
}, "A");
|
|
6961
|
-
return /*#__PURE__*/
|
|
6983
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6962
6984
|
"data-test-id": "question-answer"
|
|
6963
6985
|
}, restProps, {
|
|
6964
6986
|
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap$8) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6965
|
-
}), type !== "answer" && /*#__PURE__*/
|
|
6987
|
+
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6966
6988
|
className: "question-answer-m_q-element__1ZA5d",
|
|
6967
6989
|
"data-test-id": "question"
|
|
6968
|
-
}, supportQuestionElement, /*#__PURE__*/
|
|
6990
|
+
}, supportQuestionElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6969
6991
|
dangerouslySetInnerHTML: {
|
|
6970
6992
|
__html: questionData
|
|
6971
6993
|
},
|
|
6972
6994
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$8)
|
|
6973
|
-
})), type !== "question" && /*#__PURE__*/
|
|
6995
|
+
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6974
6996
|
className: "question-answer-m_a-element__BTxfl",
|
|
6975
6997
|
"data-test-id": "answer"
|
|
6976
|
-
}, supportAnswerElement, /*#__PURE__*/
|
|
6998
|
+
}, supportAnswerElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6977
6999
|
dangerouslySetInnerHTML: {
|
|
6978
7000
|
__html: answerData
|
|
6979
7001
|
},
|
|
@@ -6982,29 +7004,29 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6982
7004
|
};
|
|
6983
7005
|
|
|
6984
7006
|
QuestionAnswerBase.propTypes = {
|
|
6985
|
-
element:
|
|
6986
|
-
metadata:
|
|
6987
|
-
interviewer:
|
|
6988
|
-
"avatar-url":
|
|
7007
|
+
element: PropTypes__default["default"].shape({
|
|
7008
|
+
metadata: PropTypes__default["default"].shape({
|
|
7009
|
+
interviewer: PropTypes__default["default"].shape({
|
|
7010
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6989
7011
|
}),
|
|
6990
|
-
interviewee:
|
|
6991
|
-
"avatar-url":
|
|
7012
|
+
interviewee: PropTypes__default["default"].shape({
|
|
7013
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6992
7014
|
}),
|
|
6993
|
-
question:
|
|
6994
|
-
answer:
|
|
7015
|
+
question: PropTypes__default["default"].string,
|
|
7016
|
+
answer: PropTypes__default["default"].string
|
|
6995
7017
|
}),
|
|
6996
|
-
text:
|
|
7018
|
+
text: PropTypes__default["default"].string
|
|
6997
7019
|
}),
|
|
6998
|
-
opts:
|
|
6999
|
-
type:
|
|
7000
|
-
defaultIconType:
|
|
7001
|
-
isExternalLink:
|
|
7020
|
+
opts: PropTypes__default["default"].shape({
|
|
7021
|
+
type: PropTypes__default["default"].string,
|
|
7022
|
+
defaultIconType: PropTypes__default["default"].string,
|
|
7023
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
7002
7024
|
}),
|
|
7003
|
-
template:
|
|
7004
|
-
css:
|
|
7025
|
+
template: PropTypes__default["default"].string,
|
|
7026
|
+
css: PropTypes__default["default"].object,
|
|
7005
7027
|
config: shapeConfig,
|
|
7006
7028
|
story: shapeStory,
|
|
7007
|
-
render:
|
|
7029
|
+
render: PropTypes__default["default"].func
|
|
7008
7030
|
};
|
|
7009
7031
|
var QuestionAnswer = withElementWrapper(QuestionAnswerBase);
|
|
7010
7032
|
|
|
@@ -7046,17 +7068,17 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7046
7068
|
var ImageGalleryImagesTemplate = function ImageGalleryImagesTemplate(_ref2) {
|
|
7047
7069
|
var onClickHandler = _ref2.onClickHandler;
|
|
7048
7070
|
var images = renderImage.map(function (image, index) {
|
|
7049
|
-
return /*#__PURE__*/
|
|
7071
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7050
7072
|
key: index,
|
|
7051
7073
|
className: _getClassName(hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$7)
|
|
7052
|
-
}, /*#__PURE__*/
|
|
7074
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7053
7075
|
key: index,
|
|
7054
7076
|
"data-text-id": "image-".concat(index),
|
|
7055
7077
|
onClick: function onClick() {
|
|
7056
7078
|
return onClickHandler && onClickHandler(index);
|
|
7057
7079
|
},
|
|
7058
7080
|
className: _getClassName("image ".concat(classes), _styleModuleImportMap$7)
|
|
7059
|
-
}, /*#__PURE__*/
|
|
7081
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7060
7082
|
slug: image["image-s3-key"],
|
|
7061
7083
|
metadata: image["image-metadata"],
|
|
7062
7084
|
alt: image["title"],
|
|
@@ -7065,11 +7087,11 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7065
7087
|
imgParams: {
|
|
7066
7088
|
auto: ["format", "compress"]
|
|
7067
7089
|
}
|
|
7068
|
-
})), image["hyperlink"] && /*#__PURE__*/
|
|
7090
|
+
})), image["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7069
7091
|
hyperLink: image["hyperlink"]
|
|
7070
7092
|
}));
|
|
7071
7093
|
});
|
|
7072
|
-
return /*#__PURE__*/
|
|
7094
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7073
7095
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
7074
7096
|
}, restProps, {
|
|
7075
7097
|
"data-test-id": "image-gallery"
|
|
@@ -7077,24 +7099,24 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7077
7099
|
};
|
|
7078
7100
|
|
|
7079
7101
|
ImageGalleryImagesTemplate.propTypes = {
|
|
7080
|
-
onClickHandler:
|
|
7102
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7081
7103
|
};
|
|
7082
|
-
return /*#__PURE__*/
|
|
7104
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7083
7105
|
template: ImageGalleryImagesTemplate,
|
|
7084
7106
|
element: element
|
|
7085
7107
|
});
|
|
7086
7108
|
};
|
|
7087
7109
|
|
|
7088
7110
|
ImageGalleryBase.propTypes = {
|
|
7089
|
-
element:
|
|
7090
|
-
"story-elements":
|
|
7111
|
+
element: PropTypes__default["default"].shape({
|
|
7112
|
+
"story-elements": PropTypes__default["default"].array
|
|
7091
7113
|
}),
|
|
7092
|
-
opts:
|
|
7093
|
-
imageWidths:
|
|
7114
|
+
opts: PropTypes__default["default"].shape({
|
|
7115
|
+
imageWidths: PropTypes__default["default"].array
|
|
7094
7116
|
}),
|
|
7095
7117
|
story: shapeStory,
|
|
7096
7118
|
config: shapeConfig,
|
|
7097
|
-
template:
|
|
7119
|
+
template: PropTypes__default["default"].string
|
|
7098
7120
|
};
|
|
7099
7121
|
var ImageGallery = withElementWrapper(ImageGalleryBase);
|
|
7100
7122
|
|
|
@@ -7106,16 +7128,16 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
7106
7128
|
_ref.config;
|
|
7107
7129
|
var restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
7108
7130
|
|
|
7109
|
-
return /*#__PURE__*/
|
|
7131
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, restProps, {
|
|
7110
7132
|
"data-test-id": "story-elements"
|
|
7111
|
-
}), /*#__PURE__*/
|
|
7133
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
7112
7134
|
element: element
|
|
7113
7135
|
}));
|
|
7114
7136
|
};
|
|
7115
7137
|
|
|
7116
7138
|
var StoryElement = withElementWrapper(StoryElementBase);
|
|
7117
7139
|
StoryElementBase.propTypes = {
|
|
7118
|
-
element:
|
|
7140
|
+
element: PropTypes__default["default"].object,
|
|
7119
7141
|
story: shapeStory,
|
|
7120
7142
|
config: shapeConfig
|
|
7121
7143
|
};
|
|
@@ -7157,16 +7179,16 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7157
7179
|
var borderColor = css.borderColor;
|
|
7158
7180
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
7159
7181
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
7160
|
-
return /*#__PURE__*/
|
|
7182
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7161
7183
|
"data-test-id": "quote"
|
|
7162
7184
|
}, restProps, {
|
|
7163
7185
|
className: "arrow-component arr--quote-element " + _getClassName(templateStyle, _styleModuleImportMap$6) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7164
|
-
}), template === "borderTopSmall" && /*#__PURE__*/
|
|
7186
|
+
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7165
7187
|
className: "quote-m_line__3gtoE",
|
|
7166
7188
|
style: borderColor && {
|
|
7167
7189
|
backgroundColor: borderColor
|
|
7168
7190
|
}
|
|
7169
|
-
}), /*#__PURE__*/
|
|
7191
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7170
7192
|
style: borderColor && {
|
|
7171
7193
|
borderLeft: updateBorderColor
|
|
7172
7194
|
},
|
|
@@ -7174,26 +7196,26 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7174
7196
|
__html: content
|
|
7175
7197
|
},
|
|
7176
7198
|
className: _getClassName("text ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7177
|
-
}), /*#__PURE__*/
|
|
7199
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7178
7200
|
"data-test-id": "quote-attribution",
|
|
7179
7201
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7180
7202
|
}, attribution));
|
|
7181
7203
|
};
|
|
7182
7204
|
|
|
7183
7205
|
QuoteBase.propTypes = {
|
|
7184
|
-
element:
|
|
7185
|
-
metadata:
|
|
7186
|
-
content:
|
|
7187
|
-
attribution:
|
|
7206
|
+
element: PropTypes__default["default"].shape({
|
|
7207
|
+
metadata: PropTypes__default["default"].shape({
|
|
7208
|
+
content: PropTypes__default["default"].string,
|
|
7209
|
+
attribution: PropTypes__default["default"].string
|
|
7188
7210
|
})
|
|
7189
7211
|
}),
|
|
7190
7212
|
|
|
7191
7213
|
/** template can be default, borderTopSmall and borderLeft */
|
|
7192
|
-
template:
|
|
7214
|
+
template: PropTypes__default["default"].string,
|
|
7193
7215
|
story: shapeStory,
|
|
7194
7216
|
config: shapeConfig,
|
|
7195
|
-
render:
|
|
7196
|
-
css:
|
|
7217
|
+
render: PropTypes__default["default"].func,
|
|
7218
|
+
css: PropTypes__default["default"].object
|
|
7197
7219
|
};
|
|
7198
7220
|
var Quote = withElementWrapper(QuoteBase);
|
|
7199
7221
|
|
|
@@ -7227,7 +7249,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7227
7249
|
var _opts$showHeadline = opts.showHeadline,
|
|
7228
7250
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
7229
7251
|
headlineText = opts.headlineText;
|
|
7230
|
-
return /*#__PURE__*/
|
|
7252
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7231
7253
|
className: "arrow-component arr--reference-element"
|
|
7232
7254
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
7233
7255
|
var _metadata$name = metadata.name,
|
|
@@ -7235,33 +7257,33 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7235
7257
|
_metadata$description = metadata.description,
|
|
7236
7258
|
description = _metadata$description === void 0 ? "" : _metadata$description,
|
|
7237
7259
|
url = metadata.url;
|
|
7238
|
-
return /*#__PURE__*/
|
|
7260
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7239
7261
|
key: index,
|
|
7240
7262
|
className: _getClassName("wrapper ".concat(textInvertColor), _styleModuleImportMap$5)
|
|
7241
|
-
}, /*#__PURE__*/
|
|
7263
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7242
7264
|
href: url,
|
|
7243
7265
|
"aria-label": "reference-headline"
|
|
7244
|
-
}, showHeadline && /*#__PURE__*/
|
|
7266
|
+
}, showHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7245
7267
|
className: "reference-m_name__24IwG",
|
|
7246
7268
|
"data-test-id": "ref-headline"
|
|
7247
|
-
}, headlineText || name), /*#__PURE__*/
|
|
7269
|
+
}, headlineText || name), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7248
7270
|
className: "reference-m_description__2x3Io"
|
|
7249
7271
|
}, description)));
|
|
7250
7272
|
}));
|
|
7251
7273
|
};
|
|
7252
7274
|
|
|
7253
7275
|
ReferenceBase.propTypes = {
|
|
7254
|
-
element:
|
|
7255
|
-
"story-elements":
|
|
7256
|
-
metadata:
|
|
7257
|
-
name:
|
|
7258
|
-
description:
|
|
7259
|
-
url:
|
|
7276
|
+
element: PropTypes__default["default"].shape({
|
|
7277
|
+
"story-elements": PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
7278
|
+
metadata: PropTypes__default["default"].shape({
|
|
7279
|
+
name: PropTypes__default["default"].string,
|
|
7280
|
+
description: PropTypes__default["default"].string,
|
|
7281
|
+
url: PropTypes__default["default"].string
|
|
7260
7282
|
})
|
|
7261
7283
|
}))
|
|
7262
7284
|
}),
|
|
7263
|
-
opts:
|
|
7264
|
-
hideHeadline:
|
|
7285
|
+
opts: PropTypes__default["default"].shape({
|
|
7286
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
7265
7287
|
}),
|
|
7266
7288
|
config: shapeConfig
|
|
7267
7289
|
};
|
|
@@ -7303,28 +7325,28 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7303
7325
|
var textColor = getTextColor(configData.theme);
|
|
7304
7326
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
7305
7327
|
var defaultFileName = fileName || defaultName;
|
|
7306
|
-
return /*#__PURE__*/
|
|
7328
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7307
7329
|
"data-test-id": "attachment"
|
|
7308
7330
|
}, restProps, {
|
|
7309
7331
|
className: "arrow-component arr--attachment-element " + _getClassName(textColor, _styleModuleImportMap$4) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7310
|
-
}), /*#__PURE__*/
|
|
7332
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7311
7333
|
className: "attachment-m_headline__kP7Hs"
|
|
7312
|
-
}, "Attachment"), /*#__PURE__*/
|
|
7334
|
+
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7313
7335
|
className: "attachment-m_wrapper__3gMwN"
|
|
7314
|
-
}, isPdf ? /*#__PURE__*/
|
|
7336
|
+
}, isPdf ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7315
7337
|
"data-test-id": "pdf",
|
|
7316
7338
|
className: "attachment-m_pdf__3i_bR"
|
|
7317
|
-
}, "PDF") : /*#__PURE__*/
|
|
7339
|
+
}, "PDF") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7318
7340
|
"data-test-id": "doc",
|
|
7319
7341
|
className: "attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"
|
|
7320
|
-
}, "DOC"), /*#__PURE__*/
|
|
7342
|
+
}, "DOC"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7321
7343
|
className: "attachment-m_content-wrapper__3Yu0B"
|
|
7322
|
-
}, /*#__PURE__*/
|
|
7344
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7323
7345
|
className: "attachment-m_file-name__1LU9q",
|
|
7324
7346
|
dangerouslySetInnerHTML: {
|
|
7325
7347
|
__html: defaultFileName
|
|
7326
7348
|
}
|
|
7327
|
-
}), /*#__PURE__*/
|
|
7349
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7328
7350
|
className: "attachment-m_button-wrapper__2fajK",
|
|
7329
7351
|
href: url,
|
|
7330
7352
|
target: "_blank",
|
|
@@ -7335,59 +7357,59 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7335
7357
|
};
|
|
7336
7358
|
|
|
7337
7359
|
AttachmentBase.propTypes = {
|
|
7338
|
-
element:
|
|
7339
|
-
url:
|
|
7340
|
-
fileName:
|
|
7341
|
-
contentType:
|
|
7360
|
+
element: PropTypes__default["default"].shape({
|
|
7361
|
+
url: PropTypes__default["default"].string,
|
|
7362
|
+
fileName: PropTypes__default["default"].string,
|
|
7363
|
+
contentType: PropTypes__default["default"].string
|
|
7342
7364
|
}),
|
|
7343
|
-
render:
|
|
7365
|
+
render: PropTypes__default["default"].func
|
|
7344
7366
|
};
|
|
7345
7367
|
var Attachment = withElementWrapper(AttachmentBase);
|
|
7346
7368
|
|
|
7347
7369
|
var LeftArrow = function LeftArrow(_ref) {
|
|
7348
7370
|
var _ref$color = _ref.color,
|
|
7349
7371
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7350
|
-
return /*#__PURE__*/
|
|
7372
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7351
7373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7352
7374
|
width: "16",
|
|
7353
7375
|
height: "16",
|
|
7354
7376
|
viewBox: "0 0 10 16"
|
|
7355
|
-
}, /*#__PURE__*/
|
|
7377
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7356
7378
|
fill: "none",
|
|
7357
7379
|
fillRule: "nonzero"
|
|
7358
|
-
}, /*#__PURE__*/
|
|
7380
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7359
7381
|
d: "M17 20H-7V-4h24z",
|
|
7360
7382
|
opacity: ".384"
|
|
7361
|
-
}), /*#__PURE__*/
|
|
7383
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7362
7384
|
stroke: color,
|
|
7363
7385
|
d: "M9 16L1 8l8-8"
|
|
7364
7386
|
})));
|
|
7365
7387
|
};
|
|
7366
7388
|
LeftArrow.propTypes = {
|
|
7367
|
-
color:
|
|
7389
|
+
color: PropTypes__default["default"].string
|
|
7368
7390
|
};
|
|
7369
7391
|
|
|
7370
7392
|
var RightArrow = function RightArrow(_ref) {
|
|
7371
7393
|
var _ref$color = _ref.color,
|
|
7372
7394
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7373
|
-
return /*#__PURE__*/
|
|
7395
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7374
7396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7375
7397
|
width: "16",
|
|
7376
7398
|
height: "16",
|
|
7377
7399
|
viewBox: "0 0 10 16"
|
|
7378
|
-
}, /*#__PURE__*/
|
|
7400
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7379
7401
|
fill: "none",
|
|
7380
7402
|
fillRule: "nonzero"
|
|
7381
|
-
}, /*#__PURE__*/
|
|
7403
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7382
7404
|
d: "M-7-4h24v24H-7z",
|
|
7383
7405
|
opacity: ".384"
|
|
7384
|
-
}), /*#__PURE__*/
|
|
7406
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7385
7407
|
stroke: color,
|
|
7386
7408
|
d: "M1 0l8 8-8 8"
|
|
7387
7409
|
})));
|
|
7388
7410
|
};
|
|
7389
7411
|
RightArrow.propTypes = {
|
|
7390
|
-
color:
|
|
7412
|
+
color: PropTypes__default["default"].string
|
|
7391
7413
|
};
|
|
7392
7414
|
|
|
7393
7415
|
var _styleModuleImportMap$3 = {
|
|
@@ -7425,26 +7447,26 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
7425
7447
|
|
|
7426
7448
|
var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
|
|
7427
7449
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
7428
|
-
return /*#__PURE__*/
|
|
7450
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7429
7451
|
onClick: previousClick,
|
|
7430
7452
|
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$3)
|
|
7431
|
-
}, /*#__PURE__*/
|
|
7453
|
+
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
7432
7454
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7433
|
-
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/
|
|
7455
|
+
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7434
7456
|
onClick: nextClick,
|
|
7435
7457
|
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$3)
|
|
7436
|
-
}, /*#__PURE__*/
|
|
7458
|
+
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
7437
7459
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7438
7460
|
})) : null);
|
|
7439
7461
|
};
|
|
7440
7462
|
SliderArrow.propTypes = {
|
|
7441
|
-
noOfItems: number,
|
|
7442
|
-
perView: number,
|
|
7443
|
-
slideIndicator: string,
|
|
7444
|
-
previousClick: func,
|
|
7445
|
-
nextClick: func,
|
|
7446
|
-
selectedIndex: number,
|
|
7447
|
-
languageDirection: string
|
|
7463
|
+
noOfItems: PropTypes.number,
|
|
7464
|
+
perView: PropTypes.number,
|
|
7465
|
+
slideIndicator: PropTypes.string,
|
|
7466
|
+
previousClick: PropTypes.func,
|
|
7467
|
+
nextClick: PropTypes.func,
|
|
7468
|
+
selectedIndex: PropTypes.number,
|
|
7469
|
+
languageDirection: PropTypes.string
|
|
7448
7470
|
};
|
|
7449
7471
|
|
|
7450
7472
|
var _styleModuleImportMap$2 = {
|
|
@@ -7472,27 +7494,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
7472
7494
|
|
|
7473
7495
|
var config = useStateValue() || {};
|
|
7474
7496
|
var textColor = getTextColor(config.theme);
|
|
7475
|
-
return /*#__PURE__*/
|
|
7497
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
7476
7498
|
className: "slider-indicators slider-indicator-m_indicators__3MNXc"
|
|
7477
7499
|
}, indicatorItems.map(function (_, index) {
|
|
7478
|
-
return /*#__PURE__*/
|
|
7500
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7479
7501
|
key: "slider-".concat(index),
|
|
7480
7502
|
className: "indicator slider-indicator-m_indicator__gTv3x",
|
|
7481
7503
|
onClick: function onClick(e) {
|
|
7482
7504
|
return indicatorClick(e, index);
|
|
7483
7505
|
}
|
|
7484
|
-
}, /*#__PURE__*/
|
|
7506
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7485
7507
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
7486
7508
|
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$2)
|
|
7487
7509
|
}));
|
|
7488
7510
|
}));
|
|
7489
7511
|
};
|
|
7490
7512
|
SliderIndicator.propTypes = {
|
|
7491
|
-
indicatorItems: array,
|
|
7492
|
-
perView: number,
|
|
7493
|
-
indicatorType: string,
|
|
7494
|
-
indicatorClick: func,
|
|
7495
|
-
selectedIndex: number
|
|
7513
|
+
indicatorItems: PropTypes.array,
|
|
7514
|
+
perView: PropTypes.number,
|
|
7515
|
+
indicatorType: PropTypes.string,
|
|
7516
|
+
indicatorClick: PropTypes.func,
|
|
7517
|
+
selectedIndex: PropTypes.number
|
|
7496
7518
|
};
|
|
7497
7519
|
|
|
7498
7520
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
@@ -7527,24 +7549,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7527
7549
|
perView = _ref.perView,
|
|
7528
7550
|
slideIndicator = _ref.slideIndicator;
|
|
7529
7551
|
|
|
7530
|
-
var _useState = useState(0),
|
|
7552
|
+
var _useState = React.useState(0),
|
|
7531
7553
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7532
7554
|
selectedIndex = _useState2[0],
|
|
7533
7555
|
setSelectedIndex = _useState2[1];
|
|
7534
7556
|
|
|
7535
|
-
var _useState3 = useState(false),
|
|
7557
|
+
var _useState3 = React.useState(false),
|
|
7536
7558
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7537
7559
|
autoScroll = _useState4[0],
|
|
7538
7560
|
setAutoScroll = _useState4[1];
|
|
7539
7561
|
|
|
7540
|
-
var languageDirection = useSelector(function (state) {
|
|
7562
|
+
var languageDirection = reactRedux.useSelector(function (state) {
|
|
7541
7563
|
return get_1(state, ["qt", "config", "language", "direction"], "ltr");
|
|
7542
7564
|
});
|
|
7543
7565
|
var noOfItems = children ? children.length : 0;
|
|
7544
|
-
var scroller = useRef(null);
|
|
7566
|
+
var scroller = React.useRef(null);
|
|
7545
7567
|
var numberOfIndicatorsToShow = children.length - (perView - 1);
|
|
7546
7568
|
var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
|
|
7547
|
-
useEffect(function () {
|
|
7569
|
+
React.useEffect(function () {
|
|
7548
7570
|
if (scroller.current) {
|
|
7549
7571
|
scroller.current.addEventListener("scroll", setIndicatorValue(function () {
|
|
7550
7572
|
var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
|
|
@@ -7561,7 +7583,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7561
7583
|
};
|
|
7562
7584
|
}, []); // Infinite scroll
|
|
7563
7585
|
|
|
7564
|
-
useEffect(function () {
|
|
7586
|
+
React.useEffect(function () {
|
|
7565
7587
|
if (isInfinite && !autoScroll) {
|
|
7566
7588
|
var timer = setInterval(function () {
|
|
7567
7589
|
infiniteScroll();
|
|
@@ -7610,23 +7632,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7610
7632
|
updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
|
|
7611
7633
|
};
|
|
7612
7634
|
|
|
7613
|
-
return /*#__PURE__*/
|
|
7635
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7614
7636
|
className: "scroll-snap-container"
|
|
7615
|
-
}, /*#__PURE__*/
|
|
7637
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7616
7638
|
className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
|
|
7617
7639
|
onMouseEnter: pauseAutoPlay,
|
|
7618
7640
|
onMouseLeave: pauseAutoPlay
|
|
7619
|
-
}, /*#__PURE__*/
|
|
7641
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7620
7642
|
ref: scroller,
|
|
7621
7643
|
className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
|
|
7622
|
-
}, children), isArrow && /*#__PURE__*/
|
|
7644
|
+
}, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
|
|
7623
7645
|
noOfItems: noOfItems,
|
|
7624
7646
|
perView: perView,
|
|
7625
7647
|
previousClick: previousClick,
|
|
7626
7648
|
nextClick: nextClick,
|
|
7627
7649
|
selectedIndex: selectedIndex,
|
|
7628
7650
|
languageDirection: languageDirection
|
|
7629
|
-
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/
|
|
7651
|
+
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
|
|
7630
7652
|
indicatorItems: indicatorItems,
|
|
7631
7653
|
indicatorClick: indicatorClick,
|
|
7632
7654
|
selectedIndex: selectedIndex,
|
|
@@ -7642,13 +7664,13 @@ ScrollSnap.defaultProps = {
|
|
|
7642
7664
|
slideIndicator: "dots"
|
|
7643
7665
|
};
|
|
7644
7666
|
ScrollSnap.propTypes = {
|
|
7645
|
-
children: array.isRequired,
|
|
7646
|
-
isArrow: bool,
|
|
7647
|
-
isInfinite: bool,
|
|
7648
|
-
interval: number,
|
|
7649
|
-
pauseOnHover: bool,
|
|
7650
|
-
perView: number,
|
|
7651
|
-
slideIndicator: string
|
|
7667
|
+
children: PropTypes.array.isRequired,
|
|
7668
|
+
isArrow: PropTypes.bool,
|
|
7669
|
+
isInfinite: PropTypes.bool,
|
|
7670
|
+
interval: PropTypes.number,
|
|
7671
|
+
pauseOnHover: PropTypes.bool,
|
|
7672
|
+
perView: PropTypes.number,
|
|
7673
|
+
slideIndicator: PropTypes.string
|
|
7652
7674
|
};
|
|
7653
7675
|
|
|
7654
7676
|
var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
@@ -7661,18 +7683,18 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7661
7683
|
title = image.title,
|
|
7662
7684
|
_image$hyperlink = image.hyperlink,
|
|
7663
7685
|
hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
|
|
7664
|
-
return /*#__PURE__*/
|
|
7686
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7665
7687
|
className: "image-slideshow-m_slide__3URCC",
|
|
7666
7688
|
key: id
|
|
7667
|
-
}, /*#__PURE__*/
|
|
7689
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7668
7690
|
key: id,
|
|
7669
7691
|
className: "image-slideshow-m_image-container__2VTEK",
|
|
7670
7692
|
onClick: function onClick() {
|
|
7671
7693
|
return onClickHandler(index);
|
|
7672
7694
|
}
|
|
7673
|
-
}, /*#__PURE__*/
|
|
7695
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
|
|
7674
7696
|
margin: "0px"
|
|
7675
|
-
}, /*#__PURE__*/
|
|
7697
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7676
7698
|
slug: imageS3Key,
|
|
7677
7699
|
metadata: metadata,
|
|
7678
7700
|
"aspect-ratio": [16, 9],
|
|
@@ -7683,9 +7705,9 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7683
7705
|
},
|
|
7684
7706
|
className: "image-slideshow-m_image__1p1fO",
|
|
7685
7707
|
alt: title
|
|
7686
|
-
}))), hyperlink && /*#__PURE__*/
|
|
7708
|
+
}))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7687
7709
|
hyperLink: hyperlink
|
|
7688
|
-
}), /*#__PURE__*/
|
|
7710
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7689
7711
|
className: "image-slideshow-m_caption__mWpmc",
|
|
7690
7712
|
dangerouslySetInnerHTML: {
|
|
7691
7713
|
__html: title
|
|
@@ -7696,10 +7718,10 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7696
7718
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
7697
7719
|
var onClickHandler = _ref.onClickHandler;
|
|
7698
7720
|
var storyElements = get_1(props, ["element", "story-elements"], []);
|
|
7699
|
-
return /*#__PURE__*/
|
|
7721
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7700
7722
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
7701
7723
|
"data-test-id": "image-slideshow"
|
|
7702
|
-
}, /*#__PURE__*/
|
|
7724
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
|
|
7703
7725
|
slideIndicator: "none"
|
|
7704
7726
|
}, storyElements.map(function (image, index) {
|
|
7705
7727
|
return Slide(image, index, onClickHandler);
|
|
@@ -7707,17 +7729,17 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7707
7729
|
};
|
|
7708
7730
|
|
|
7709
7731
|
ImageSlideshowTemplate.propTypes = {
|
|
7710
|
-
onClickHandler:
|
|
7732
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7711
7733
|
};
|
|
7712
|
-
return /*#__PURE__*/
|
|
7734
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7713
7735
|
template: ImageSlideshowTemplate,
|
|
7714
7736
|
element: props.element
|
|
7715
7737
|
});
|
|
7716
7738
|
};
|
|
7717
7739
|
|
|
7718
7740
|
ImageSlideshowBase.propTypes = {
|
|
7719
|
-
element:
|
|
7720
|
-
"story-elements":
|
|
7741
|
+
element: PropTypes__default["default"].shape({
|
|
7742
|
+
"story-elements": PropTypes__default["default"].array
|
|
7721
7743
|
}),
|
|
7722
7744
|
story: shapeStory
|
|
7723
7745
|
};
|
|
@@ -7775,12 +7797,12 @@ var getElement = function getElement(story, element) {
|
|
|
7775
7797
|
|
|
7776
7798
|
switch (elementType) {
|
|
7777
7799
|
case "ad":
|
|
7778
|
-
return /*#__PURE__*/
|
|
7800
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
7779
7801
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
7780
7802
|
}));
|
|
7781
7803
|
|
|
7782
7804
|
case "widget":
|
|
7783
|
-
return /*#__PURE__*/
|
|
7805
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
7784
7806
|
widgetCode: element.config.customCode,
|
|
7785
7807
|
id: "widget-".concat(index, "_").concat(cardId)
|
|
7786
7808
|
});
|
|
@@ -7793,7 +7815,7 @@ var getElement = function getElement(story, element) {
|
|
|
7793
7815
|
textElementColor = _text$css$textColor === void 0 ? "#000" : _text$css$textColor,
|
|
7794
7816
|
_text$css$hyperlinkCo = _text$css.hyperlinkColor,
|
|
7795
7817
|
hyperlinkColor = _text$css$hyperlinkCo === void 0 ? "#2f81cd" : _text$css$hyperlinkCo;
|
|
7796
|
-
return /*#__PURE__*/
|
|
7818
|
+
return /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
7797
7819
|
element: element,
|
|
7798
7820
|
css: {
|
|
7799
7821
|
textColor: textElementColor,
|
|
@@ -7814,7 +7836,7 @@ var getElement = function getElement(story, element) {
|
|
|
7814
7836
|
headline = _summary$opts$headlin === void 0 ? "" : _summary$opts$headlin,
|
|
7815
7837
|
_summary$opts$hideHea = _summary$opts.hideHeadline,
|
|
7816
7838
|
hideHeadline = _summary$opts$hideHea === void 0 ? false : _summary$opts$hideHea;
|
|
7817
|
-
return /*#__PURE__*/
|
|
7839
|
+
return /*#__PURE__*/React__default["default"].createElement(Summary, {
|
|
7818
7840
|
element: element,
|
|
7819
7841
|
template: summaryTemplate,
|
|
7820
7842
|
opts: {
|
|
@@ -7833,7 +7855,7 @@ var getElement = function getElement(story, element) {
|
|
|
7833
7855
|
_blurb$css = _blurb$css === void 0 ? {} : _blurb$css;
|
|
7834
7856
|
var _blurb$css$borderColo = _blurb$css.borderColor,
|
|
7835
7857
|
borderColor = _blurb$css$borderColo === void 0 ? "#2f81cd" : _blurb$css$borderColo;
|
|
7836
|
-
return /*#__PURE__*/
|
|
7858
|
+
return /*#__PURE__*/React__default["default"].createElement(Blurb, {
|
|
7837
7859
|
element: element,
|
|
7838
7860
|
template: blurbTemplate,
|
|
7839
7861
|
css: {
|
|
@@ -7852,7 +7874,7 @@ var getElement = function getElement(story, element) {
|
|
|
7852
7874
|
blockQuoteColor = _blockquote$css$block === void 0 ? "#2f81cd" : _blockquote$css$block,
|
|
7853
7875
|
_blockquote$css$backg = _blockquote$css.backgroundShade,
|
|
7854
7876
|
backgroundShade = _blockquote$css$backg === void 0 ? "" : _blockquote$css$backg;
|
|
7855
|
-
return /*#__PURE__*/
|
|
7877
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockQuote, {
|
|
7856
7878
|
element: element,
|
|
7857
7879
|
template: blockQuoteTemplate,
|
|
7858
7880
|
css: {
|
|
@@ -7869,7 +7891,7 @@ var getElement = function getElement(story, element) {
|
|
|
7869
7891
|
_quote$css = _quote$css === void 0 ? {} : _quote$css;
|
|
7870
7892
|
var _quote$css$borderColo = _quote$css.borderColor,
|
|
7871
7893
|
quoteBorderColor = _quote$css$borderColo === void 0 ? "#2f81cd" : _quote$css$borderColo;
|
|
7872
|
-
return /*#__PURE__*/
|
|
7894
|
+
return /*#__PURE__*/React__default["default"].createElement(Quote, {
|
|
7873
7895
|
element: element,
|
|
7874
7896
|
template: quoteTemplate,
|
|
7875
7897
|
css: {
|
|
@@ -7878,7 +7900,7 @@ var getElement = function getElement(story, element) {
|
|
|
7878
7900
|
});
|
|
7879
7901
|
|
|
7880
7902
|
case "bigfact":
|
|
7881
|
-
return /*#__PURE__*/
|
|
7903
|
+
return /*#__PURE__*/React__default["default"].createElement(BigFact, {
|
|
7882
7904
|
element: element
|
|
7883
7905
|
});
|
|
7884
7906
|
|
|
@@ -7893,7 +7915,7 @@ var getElement = function getElement(story, element) {
|
|
|
7893
7915
|
_alsoRead$opts = _alsoRead$opts === void 0 ? {} : _alsoRead$opts;
|
|
7894
7916
|
var _alsoRead$opts$title = _alsoRead$opts.title,
|
|
7895
7917
|
title = _alsoRead$opts$title === void 0 ? "" : _alsoRead$opts$title;
|
|
7896
|
-
return /*#__PURE__*/
|
|
7918
|
+
return /*#__PURE__*/React__default["default"].createElement(AlsoRead, {
|
|
7897
7919
|
story: story,
|
|
7898
7920
|
element: element,
|
|
7899
7921
|
template: alsoReadTemplate,
|
|
@@ -7906,7 +7928,7 @@ var getElement = function getElement(story, element) {
|
|
|
7906
7928
|
});
|
|
7907
7929
|
|
|
7908
7930
|
case "image":
|
|
7909
|
-
return /*#__PURE__*/
|
|
7931
|
+
return /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
7910
7932
|
element: element
|
|
7911
7933
|
});
|
|
7912
7934
|
|
|
@@ -7921,7 +7943,7 @@ var getElement = function getElement(story, element) {
|
|
|
7921
7943
|
_qaElement$opts = _qaElement$opts === void 0 ? {} : _qaElement$opts;
|
|
7922
7944
|
var _qaElement$opts$defau = _qaElement$opts.defaultIconType,
|
|
7923
7945
|
defaultIconType = _qaElement$opts$defau === void 0 ? "edge" : _qaElement$opts$defau;
|
|
7924
|
-
return /*#__PURE__*/
|
|
7946
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7925
7947
|
element: element,
|
|
7926
7948
|
opts: {
|
|
7927
7949
|
type: "q-and-a",
|
|
@@ -7944,7 +7966,7 @@ var getElement = function getElement(story, element) {
|
|
|
7944
7966
|
_questionElement$opts = _questionElement$opts === void 0 ? {} : _questionElement$opts;
|
|
7945
7967
|
var _questionElement$opts2 = _questionElement$opts.defaultQuestionIconType,
|
|
7946
7968
|
defaultQuestionIconType = _questionElement$opts2 === void 0 ? "edge" : _questionElement$opts2;
|
|
7947
|
-
return /*#__PURE__*/
|
|
7969
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7948
7970
|
element: element,
|
|
7949
7971
|
opts: {
|
|
7950
7972
|
type: "question",
|
|
@@ -7967,7 +7989,7 @@ var getElement = function getElement(story, element) {
|
|
|
7967
7989
|
_answerElement$opts = _answerElement$opts === void 0 ? {} : _answerElement$opts;
|
|
7968
7990
|
var _answerElement$opts$d = _answerElement$opts.defaultAnswerIconType,
|
|
7969
7991
|
defaultAnswerIconType = _answerElement$opts$d === void 0 ? "edge" : _answerElement$opts$d;
|
|
7970
|
-
return /*#__PURE__*/
|
|
7992
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7971
7993
|
element: element,
|
|
7972
7994
|
opts: {
|
|
7973
7995
|
type: "answer",
|
|
@@ -7980,43 +8002,43 @@ var getElement = function getElement(story, element) {
|
|
|
7980
8002
|
});
|
|
7981
8003
|
|
|
7982
8004
|
case "gallery":
|
|
7983
|
-
return /*#__PURE__*/
|
|
8005
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7984
8006
|
className: "content-style",
|
|
7985
8007
|
id: "image-gallery-".concat(storyElementId)
|
|
7986
|
-
}, /*#__PURE__*/
|
|
8008
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery, {
|
|
7987
8009
|
element: element
|
|
7988
8010
|
}));
|
|
7989
8011
|
|
|
7990
8012
|
case "slideshow":
|
|
7991
|
-
return /*#__PURE__*/
|
|
8013
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7992
8014
|
className: "content-style",
|
|
7993
8015
|
id: "image-slideshow-".concat(storyElementId)
|
|
7994
|
-
}, /*#__PURE__*/
|
|
8016
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageSlideshow, {
|
|
7995
8017
|
element: element
|
|
7996
8018
|
}));
|
|
7997
8019
|
|
|
7998
8020
|
case "youtube-video":
|
|
7999
8021
|
case "dailymotion-video":
|
|
8000
|
-
return /*#__PURE__*/
|
|
8022
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8001
8023
|
className: "content-style",
|
|
8002
8024
|
id: "video-".concat(storyElementId)
|
|
8003
|
-
}, /*#__PURE__*/
|
|
8025
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
8004
8026
|
element: element,
|
|
8005
8027
|
story: story,
|
|
8006
8028
|
loadIframeOnClick: true
|
|
8007
8029
|
}));
|
|
8008
8030
|
|
|
8009
8031
|
case "attachment":
|
|
8010
|
-
return /*#__PURE__*/
|
|
8032
|
+
return /*#__PURE__*/React__default["default"].createElement(Attachment, {
|
|
8011
8033
|
element: element
|
|
8012
8034
|
});
|
|
8013
8035
|
|
|
8014
8036
|
case "tweet":
|
|
8015
8037
|
case "jsembed":
|
|
8016
|
-
return /*#__PURE__*/
|
|
8038
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8017
8039
|
className: "content-style",
|
|
8018
8040
|
id: "jsembed-".concat(storyElementId)
|
|
8019
|
-
}, /*#__PURE__*/
|
|
8041
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8020
8042
|
element: element
|
|
8021
8043
|
}));
|
|
8022
8044
|
|
|
@@ -8027,7 +8049,7 @@ var getElement = function getElement(story, element) {
|
|
|
8027
8049
|
showHeadline = _references$opts$show === void 0 ? true : _references$opts$show,
|
|
8028
8050
|
_references$opts$head = _references$opts.headlineText,
|
|
8029
8051
|
headlineText = _references$opts$head === void 0 ? "" : _references$opts$head;
|
|
8030
|
-
return /*#__PURE__*/
|
|
8052
|
+
return /*#__PURE__*/React__default["default"].createElement(Reference, {
|
|
8031
8053
|
element: element,
|
|
8032
8054
|
opts: {
|
|
8033
8055
|
showHeadline: showHeadline,
|
|
@@ -8036,10 +8058,10 @@ var getElement = function getElement(story, element) {
|
|
|
8036
8058
|
});
|
|
8037
8059
|
|
|
8038
8060
|
default:
|
|
8039
|
-
return /*#__PURE__*/
|
|
8061
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8040
8062
|
className: "content-style",
|
|
8041
8063
|
id: "element-".concat(storyElementId)
|
|
8042
|
-
}, /*#__PURE__*/
|
|
8064
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8043
8065
|
element: element,
|
|
8044
8066
|
story: story
|
|
8045
8067
|
}));
|
|
@@ -8047,12 +8069,12 @@ var getElement = function getElement(story, element) {
|
|
|
8047
8069
|
};
|
|
8048
8070
|
|
|
8049
8071
|
({
|
|
8050
|
-
story:
|
|
8051
|
-
imageElement:
|
|
8052
|
-
config:
|
|
8053
|
-
children:
|
|
8054
|
-
card:
|
|
8055
|
-
id:
|
|
8072
|
+
story: PropTypes__default["default"].object,
|
|
8073
|
+
imageElement: PropTypes__default["default"].object,
|
|
8074
|
+
config: PropTypes__default["default"].object,
|
|
8075
|
+
children: PropTypes__default["default"].node,
|
|
8076
|
+
card: PropTypes__default["default"].shape({
|
|
8077
|
+
id: PropTypes__default["default"].string
|
|
8056
8078
|
})
|
|
8057
8079
|
});
|
|
8058
8080
|
var StoryElementCard = function StoryElementCard(_ref2) {
|
|
@@ -8068,7 +8090,7 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8068
8090
|
var textColor = getTextColor(theme);
|
|
8069
8091
|
var isLiveBlog = isLive ? "live-blog" : "";
|
|
8070
8092
|
var shouldRunFBMobileVideoFix = true;
|
|
8071
|
-
return /*#__PURE__*/
|
|
8093
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8072
8094
|
className: "arr--story-page-card-wrapper"
|
|
8073
8095
|
}, get_1(card, ["story-elements"], []).map(function (element, index) {
|
|
8074
8096
|
if (element.id === heroVideoElementId) return false;
|
|
@@ -8080,28 +8102,28 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8080
8102
|
|
|
8081
8103
|
var tableStyle = element && element.subtype === "table" ? "table" : "";
|
|
8082
8104
|
var cardId = get_1(card, ["id"], "");
|
|
8083
|
-
return /*#__PURE__*/
|
|
8105
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8084
8106
|
key: element.id,
|
|
8085
8107
|
className: "arr--element-container " + _getClassName("element-container ".concat(isLiveBlog, " ").concat(tableStyle, " ").concat(textColor), _styleModuleImportMap$1)
|
|
8086
8108
|
}, getElement(story, element, config, adComponent, widgetComp, index, cardId));
|
|
8087
8109
|
}));
|
|
8088
8110
|
};
|
|
8089
8111
|
StoryElementCard.propTypes = {
|
|
8090
|
-
story:
|
|
8091
|
-
card:
|
|
8092
|
-
heroVideoElementId:
|
|
8093
|
-
config:
|
|
8094
|
-
isLive:
|
|
8095
|
-
theme:
|
|
8096
|
-
adComponent:
|
|
8097
|
-
widgetComp:
|
|
8112
|
+
story: PropTypes__default["default"].object,
|
|
8113
|
+
card: PropTypes__default["default"].array,
|
|
8114
|
+
heroVideoElementId: PropTypes__default["default"].number,
|
|
8115
|
+
config: PropTypes__default["default"].object,
|
|
8116
|
+
isLive: PropTypes__default["default"].bool,
|
|
8117
|
+
theme: PropTypes__default["default"].string,
|
|
8118
|
+
adComponent: PropTypes__default["default"].func,
|
|
8119
|
+
widgetComp: PropTypes__default["default"].func
|
|
8098
8120
|
};
|
|
8099
8121
|
({
|
|
8100
|
-
story:
|
|
8101
|
-
card:
|
|
8102
|
-
config:
|
|
8103
|
-
adComponent:
|
|
8104
|
-
widgetComp:
|
|
8122
|
+
story: PropTypes__default["default"].object,
|
|
8123
|
+
card: PropTypes__default["default"].object,
|
|
8124
|
+
config: PropTypes__default["default"].object,
|
|
8125
|
+
adComponent: PropTypes__default["default"].func,
|
|
8126
|
+
widgetComp: PropTypes__default["default"].func
|
|
8105
8127
|
});
|
|
8106
8128
|
var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
8107
8129
|
var _ref4$id = _ref4.id,
|
|
@@ -8113,12 +8135,12 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8113
8135
|
|
|
8114
8136
|
switch (element.type) {
|
|
8115
8137
|
case "ad":
|
|
8116
|
-
return /*#__PURE__*/
|
|
8138
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
8117
8139
|
id: "ad-after-story-".concat(id)
|
|
8118
8140
|
}));
|
|
8119
8141
|
|
|
8120
8142
|
case "widget":
|
|
8121
|
-
return /*#__PURE__*/
|
|
8143
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
8122
8144
|
widgetCode: element.config.customCode,
|
|
8123
8145
|
id: "widget-after-story-".concat(id)
|
|
8124
8146
|
});
|
|
@@ -8128,10 +8150,10 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8128
8150
|
}
|
|
8129
8151
|
};
|
|
8130
8152
|
SlotAfterStory.propTypes = {
|
|
8131
|
-
id:
|
|
8132
|
-
element:
|
|
8133
|
-
AdComponent:
|
|
8134
|
-
WidgetComp:
|
|
8153
|
+
id: PropTypes__default["default"].string,
|
|
8154
|
+
element: PropTypes__default["default"].object,
|
|
8155
|
+
AdComponent: PropTypes__default["default"].func,
|
|
8156
|
+
WidgetComp: PropTypes__default["default"].func
|
|
8135
8157
|
};
|
|
8136
8158
|
|
|
8137
8159
|
var _styleModuleImportMap = {
|
|
@@ -8154,8 +8176,7 @@ var _styleModuleImportMap = {
|
|
|
8154
8176
|
"tablet-index-2": "video-story-m_tablet-index-2__2sPXB"
|
|
8155
8177
|
}
|
|
8156
8178
|
};
|
|
8157
|
-
|
|
8158
|
-
var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
8179
|
+
var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
8159
8180
|
var _ref$story = _ref.story,
|
|
8160
8181
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
8161
8182
|
_ref$config = _ref.config,
|
|
@@ -8194,25 +8215,25 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8194
8215
|
premiumStoryIconConfig = _config$premiumStoryI === void 0 ? {} : _config$premiumStoryI;
|
|
8195
8216
|
var visibledCards = noOfVisibleCards < 0 ? story.cards : story.cards.slice(0, noOfVisibleCards);
|
|
8196
8217
|
var storyId = get_1(story, ["id"], "");
|
|
8197
|
-
var timezone = useSelector(function (state) {
|
|
8218
|
+
var timezone = reactRedux.useSelector(function (state) {
|
|
8198
8219
|
return get_1(state, ["qt", "data", "timezone"], null);
|
|
8199
8220
|
});
|
|
8200
8221
|
|
|
8201
8222
|
var HeroVideo = function HeroVideo() {
|
|
8202
|
-
return /*#__PURE__*/
|
|
8223
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8203
8224
|
className: "video-story-m_hero-video__1rumO video-story-m_index-2__32Kzt",
|
|
8204
8225
|
id: "video-".concat(get_1(heroVideo, ["id"]))
|
|
8205
|
-
}, /*#__PURE__*/
|
|
8226
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
8206
8227
|
element: heroVideo,
|
|
8207
8228
|
loadIframeOnClick: true
|
|
8208
8229
|
}));
|
|
8209
8230
|
};
|
|
8210
8231
|
|
|
8211
8232
|
var SocialShareComponent = function SocialShareComponent() {
|
|
8212
|
-
return /*#__PURE__*/
|
|
8233
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8213
8234
|
id: "story-share-".concat(storyId),
|
|
8214
8235
|
className: "content-style"
|
|
8215
|
-
}, /*#__PURE__*/
|
|
8236
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8216
8237
|
template: SocialShareTemplate,
|
|
8217
8238
|
fullUrl: encodeURI(story.url),
|
|
8218
8239
|
title: story.headline,
|
|
@@ -8224,37 +8245,37 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8224
8245
|
};
|
|
8225
8246
|
|
|
8226
8247
|
var HeaderCard = function HeaderCard() {
|
|
8227
|
-
return /*#__PURE__*/
|
|
8248
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8228
8249
|
className: "video-story-m_header-details__1MgWw"
|
|
8229
|
-
}, /*#__PURE__*/
|
|
8250
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8230
8251
|
story: story
|
|
8231
|
-
}), /*#__PURE__*/
|
|
8252
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryHeadline, {
|
|
8232
8253
|
story: story,
|
|
8233
8254
|
premiumStoryIconConfig: premiumStoryIconConfig
|
|
8234
|
-
}), /*#__PURE__*/
|
|
8255
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
8235
8256
|
story: story,
|
|
8236
8257
|
showFullContent: true
|
|
8237
8258
|
}));
|
|
8238
8259
|
};
|
|
8239
8260
|
|
|
8240
8261
|
var StoryData = function StoryData() {
|
|
8241
|
-
return /*#__PURE__*/
|
|
8262
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8242
8263
|
className: "video-story-m_story-details__2KI1H"
|
|
8243
|
-
}, /*#__PURE__*/
|
|
8264
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8244
8265
|
className: "video-story-m_author__3AscN"
|
|
8245
|
-
}, authorCard && /*#__PURE__*/
|
|
8266
|
+
}, authorCard && /*#__PURE__*/React__default["default"].createElement(AuthorCard, {
|
|
8246
8267
|
story: story,
|
|
8247
8268
|
template: authorDetails.template,
|
|
8248
8269
|
opts: authorDetails.opts
|
|
8249
|
-
})), /*#__PURE__*/
|
|
8270
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8250
8271
|
className: "video-story-m_timestamp-social-share__1Vma8"
|
|
8251
|
-
}, /*#__PURE__*/
|
|
8272
|
+
}, /*#__PURE__*/React__default["default"].createElement(PublishDetails, {
|
|
8252
8273
|
story: story,
|
|
8253
8274
|
opts: publishedDetails,
|
|
8254
8275
|
template: "story",
|
|
8255
8276
|
timezone: timezone
|
|
8256
|
-
}), !verticalShare && /*#__PURE__*/
|
|
8257
|
-
return /*#__PURE__*/
|
|
8277
|
+
}), !verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null)), visibledCards.map(function (card) {
|
|
8278
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElementCard, {
|
|
8258
8279
|
heroVideoElementId: heroVideo.id,
|
|
8259
8280
|
story: story,
|
|
8260
8281
|
card: card,
|
|
@@ -8263,11 +8284,11 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8263
8284
|
adComponent: adComponent,
|
|
8264
8285
|
widgetComp: widgetComp
|
|
8265
8286
|
});
|
|
8266
|
-
}), firstChild, /*#__PURE__*/
|
|
8287
|
+
}), firstChild, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8267
8288
|
className: "video-story-m_story-tags__1OnlS"
|
|
8268
|
-
}, /*#__PURE__*/
|
|
8289
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTags, {
|
|
8269
8290
|
tags: story.tags
|
|
8270
|
-
}), /*#__PURE__*/
|
|
8291
|
+
}), /*#__PURE__*/React__default["default"].createElement(SlotAfterStory, {
|
|
8271
8292
|
id: story.id,
|
|
8272
8293
|
element: story.customSlotAfterStory,
|
|
8273
8294
|
AdComponent: adComponent,
|
|
@@ -8276,9 +8297,9 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8276
8297
|
};
|
|
8277
8298
|
|
|
8278
8299
|
var SideColumn = function SideColumn() {
|
|
8279
|
-
return asideCollection && /*#__PURE__*/
|
|
8300
|
+
return asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8280
8301
|
className: "video-story-m_video-story-side-column__155nW"
|
|
8281
|
-
}, /*#__PURE__*/
|
|
8302
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8282
8303
|
widgetComp: widgetComp,
|
|
8283
8304
|
adComponent: adComponent,
|
|
8284
8305
|
sticky: true,
|
|
@@ -8288,11 +8309,11 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8288
8309
|
};
|
|
8289
8310
|
|
|
8290
8311
|
var heroPriorityTemplate = function heroPriorityTemplate() {
|
|
8291
|
-
return /*#__PURE__*/
|
|
8312
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeroVideo, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8292
8313
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8293
|
-
}, /*#__PURE__*/
|
|
8314
|
+
}, /*#__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", {
|
|
8294
8315
|
className: "video-story-m_aside-collection__3ecnd video-story-m_tablet-index-2__2sPXB"
|
|
8295
|
-
}, /*#__PURE__*/
|
|
8316
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8296
8317
|
horizontal: true
|
|
8297
8318
|
}, asideCollection, {
|
|
8298
8319
|
widgetComp: widgetComp,
|
|
@@ -8303,19 +8324,19 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8303
8324
|
};
|
|
8304
8325
|
|
|
8305
8326
|
var headlinePriorityTemplate = function headlinePriorityTemplate() {
|
|
8306
|
-
return /*#__PURE__*/
|
|
8327
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8307
8328
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8308
|
-
}, /*#__PURE__*/
|
|
8329
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8309
8330
|
className: "video-story-m_story-content-wrapper__g87mo video-story-m_index-2__32Kzt"
|
|
8310
|
-
}, /*#__PURE__*/
|
|
8331
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroVideo, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8311
8332
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8312
|
-
}, /*#__PURE__*/
|
|
8333
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(SideColumn, null));
|
|
8313
8334
|
};
|
|
8314
8335
|
|
|
8315
8336
|
var defaultTemplate = function defaultTemplate() {
|
|
8316
|
-
return /*#__PURE__*/
|
|
8337
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeroVideo, null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8317
8338
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8318
|
-
}, /*#__PURE__*/
|
|
8339
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(SideColumn, null));
|
|
8319
8340
|
};
|
|
8320
8341
|
|
|
8321
8342
|
var getStoryTemplate = function getStoryTemplate(templateType) {
|
|
@@ -8333,7 +8354,7 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8333
8354
|
|
|
8334
8355
|
var templateClass = templateType && templateType !== "default" ? templateType : "default";
|
|
8335
8356
|
var dataTestId = templateType ? "video-story-".concat(templateType) : "video-story";
|
|
8336
|
-
return /*#__PURE__*/
|
|
8357
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8337
8358
|
"data-test-id": dataTestId,
|
|
8338
8359
|
style: {
|
|
8339
8360
|
backgroundColor: theme
|
|
@@ -8341,20 +8362,20 @@ var VideoStoryTemplate = function VideoStoryTemplate(_ref) {
|
|
|
8341
8362
|
className: "arrow-component arr--content-wrapper arr-story-grid arr--video-story-template-wrapper " + _getClassName("".concat(templateClass, " ").concat(verticalShare), _styleModuleImportMap)
|
|
8342
8363
|
}, getStoryTemplate(templateType));
|
|
8343
8364
|
};
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
asideCollection: PropTypes.object
|
|
8365
|
+
VideoStoryTemplateBase.propTypes = {
|
|
8366
|
+
story: PropTypes__default["default"].object,
|
|
8367
|
+
config: PropTypes__default["default"].shape({
|
|
8368
|
+
templateType: PropTypes__default["default"].string,
|
|
8369
|
+
authorCard: PropTypes__default["default"].object,
|
|
8370
|
+
asideCollection: PropTypes__default["default"].object
|
|
8351
8371
|
}),
|
|
8352
|
-
firstChild:
|
|
8353
|
-
secondChild:
|
|
8354
|
-
storyElementsConfig:
|
|
8355
|
-
adComponent:
|
|
8356
|
-
widgetComp:
|
|
8372
|
+
firstChild: PropTypes__default["default"].node,
|
|
8373
|
+
secondChild: PropTypes__default["default"].node,
|
|
8374
|
+
storyElementsConfig: PropTypes__default["default"].object,
|
|
8375
|
+
adComponent: PropTypes__default["default"].func,
|
|
8376
|
+
widgetComp: PropTypes__default["default"].func
|
|
8357
8377
|
};
|
|
8358
|
-
var
|
|
8378
|
+
var VideoStoryTemplate = StateProvider(VideoStoryTemplateBase);
|
|
8359
8379
|
|
|
8360
|
-
|
|
8380
|
+
exports.VideoStoryTemplate = VideoStoryTemplate;
|
|
8381
|
+
exports.VideoStoryTemplateBase = VideoStoryTemplateBase;
|