@quintype/arrow 3.15.1-perf.2 → 3.15.1-perf.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/Author/index.js +38 -29
- package/atoms/AuthorWithTime/index.js +83 -73
- package/atoms/CollectionName/index.js +40 -30
- package/atoms/ExtendedLoadMore/{index-d0f6c865.js → index-3976fac4.js} +59 -51
- package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
- package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
- package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
- package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
- package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
- package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
- package/atoms/ExtendedLoadMore/index.js +13 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +85 -76
- package/atoms/HeroImage/index.js +69 -60
- package/atoms/LoadmoreButton/index.js +32 -23
- package/atoms/ScrollSnap/index.js +72 -63
- package/atoms/SectionTag/index.js +34 -25
- package/atoms/Subheadline/index.js +31 -22
- package/atoms/TimeStamp/index.js +34 -24
- package/molecules/KeyEvents/index.js +72 -61
- package/molecules/PageIntroductionCard/index.js +43 -34
- package/molecules/SocialShareTemplate/index.js +97 -88
- package/molecules/StoryCard/index.js +242 -232
- package/molecules/StoryElementCard/index.js +512 -483
- package/molecules/StorycardContent/index.js +172 -162
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +345 -333
- package/rows/AsideCollection/index.js +340 -328
- package/rows/AstrologyCollection/index.js +321 -309
- package/rows/AuthorIntroductionCard/index.js +157 -148
- package/rows/AuthorsList/index.js +184 -174
- package/rows/CollectionFilter/index.js +361 -349
- package/rows/ElevenStories/index.js +357 -346
- package/rows/FourColFiveStories/index.js +304 -274
- package/rows/FourColGrid/index.js +351 -321
- package/rows/FourColPortraitStories/index.js +357 -327
- package/rows/FourColSixteenStories/index.js +288 -277
- package/rows/FourColTwelveStories/index.js +315 -304
- package/rows/FourStorySlider/index.js +358 -347
- package/rows/FourStorySliderPortrait/index.js +359 -348
- package/rows/FourTabbedBigStorySlider/index.js +322 -311
- package/rows/FullScreenSlider/index.js +336 -325
- package/rows/HalfScreenSlider/index.js +308 -297
- package/rows/ListComponent/index.js +322 -311
- package/rows/Listicles/index.js +150 -139
- package/rows/MagazineEditions/index.js +104 -93
- package/rows/MagazineHeaderCard/index.js +104 -93
- package/rows/MagazineWidget/index.js +326 -315
- package/rows/OneColStoryList/index.js +365 -335
- package/rows/OpinionCollection/index.js +250 -220
- package/rows/SixColSixStories/index.js +333 -303
- package/rows/StoryCollection/index.js +340 -328
- package/rows/TagIntroductionCard/index.js +30 -21
- package/rows/ThreeColFlexStories/index.js +348 -318
- package/rows/ThreeColFourteenStories/index.js +285 -274
- package/rows/ThreeColGrid/index.js +352 -322
- package/rows/ThreeColSevenStory/index.js +322 -311
- package/rows/ThreeColSixStories/index.js +323 -312
- package/rows/ThreeColTwelveStories/index.js +302 -291
- package/rows/TwoColFourStories/index.js +316 -305
- package/rows/TwoColFourStoryHighlight/index.js +317 -306
- package/rows/TwoColSevenStories/index.js +322 -311
- package/rows/TwoColSixStories/index.js +316 -305
- package/rows/TwoColTenStoriesSidebar/index.js +338 -327
- package/rows/TwoColThreeStories/index.js +316 -305
- package/story-elements/AlsoRead/index.js +70 -61
- package/story-elements/Attachment/index.js +40 -31
- package/story-elements/BigFact/index.js +35 -26
- package/story-elements/BlockQuote/index.js +61 -51
- package/story-elements/Blurb/index.js +36 -27
- package/story-elements/Image/index.js +113 -86
- package/story-elements/ImageGallery/index.js +98 -71
- package/story-elements/ImageSlideshow/index.js +147 -120
- package/story-elements/QuestionAnswer/index.js +55 -46
- package/story-elements/Quote/index.js +37 -28
- package/story-elements/Reference/index.js +40 -31
- package/story-elements/StoryElement/index.js +28 -19
- package/story-elements/Summary/index.js +40 -31
- package/story-elements/Text/index.js +34 -25
- package/story-elements/Video/index.js +29 -20
- package/story-templates/ListicleStoryTemplate/index.js +937 -908
- package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
- package/story-templates/PhotoStoryTemplate/index.js +912 -883
- package/story-templates/TextStoryTemplate/index.js +931 -902
- package/story-templates/VideoStoryTemplate/index.js +897 -868
- package/atoms/ExtendedLoadMore/index-81eb3978.js +0 -86
|
@@ -1,9 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components = require('@quintype/components');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactRedux = require('react-redux');
|
|
9
|
+
var Timeago = require('react-timeago');
|
|
10
|
+
var dateFnsTz = require('date-fns-tz');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
33
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
34
|
+
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
7
35
|
|
|
8
36
|
function _extends() {
|
|
9
37
|
_extends = Object.assign || function (target) {
|
|
@@ -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,19 +5257,19 @@ 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:
|
|
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
|
|
5245
5273
|
};
|
|
5246
5274
|
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
5247
5275
|
var _ref$story = _ref.story,
|
|
@@ -5256,7 +5284,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5256
5284
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
5257
5285
|
var textColor = getTextColor(theme);
|
|
5258
5286
|
|
|
5259
|
-
var _useState = useState(initialLoadCount),
|
|
5287
|
+
var _useState = React.useState(initialLoadCount),
|
|
5260
5288
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5261
5289
|
initialCount = _useState2[0],
|
|
5262
5290
|
updatedCount = _useState2[1];
|
|
@@ -5265,7 +5293,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5265
5293
|
return get_1(card.metadata, ["attributes", "key-event"]);
|
|
5266
5294
|
});
|
|
5267
5295
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
5268
|
-
var qtConfig = useSelector(function (state) {
|
|
5296
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
5269
5297
|
return get_1(state, ["qt", "config"], {});
|
|
5270
5298
|
});
|
|
5271
5299
|
|
|
@@ -5279,7 +5307,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5279
5307
|
|
|
5280
5308
|
var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
|
|
5281
5309
|
var keyEvents = showAllCards.map(function (card, index, source) {
|
|
5282
|
-
return /*#__PURE__*/
|
|
5310
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
|
|
5283
5311
|
cardLength: source.length,
|
|
5284
5312
|
card: card,
|
|
5285
5313
|
key: card.id,
|
|
@@ -5290,14 +5318,14 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5290
5318
|
showLoadMore: showLoadMore
|
|
5291
5319
|
});
|
|
5292
5320
|
});
|
|
5293
|
-
return /*#__PURE__*/
|
|
5321
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5294
5322
|
style: {
|
|
5295
5323
|
background: theme
|
|
5296
5324
|
},
|
|
5297
5325
|
className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$k)
|
|
5298
|
-
}, /*#__PURE__*/
|
|
5326
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5299
5327
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
5300
|
-
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/
|
|
5328
|
+
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
5301
5329
|
onClick: onClick,
|
|
5302
5330
|
template: "SubsequentLoadCount",
|
|
5303
5331
|
config: config,
|
|
@@ -5305,9 +5333,9 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
5305
5333
|
}));
|
|
5306
5334
|
};
|
|
5307
5335
|
KeyEventsBase.propTypes = {
|
|
5308
|
-
story:
|
|
5309
|
-
config:
|
|
5310
|
-
showLoadMore:
|
|
5336
|
+
story: PropTypes__default["default"].object,
|
|
5337
|
+
config: PropTypes__default["default"].object,
|
|
5338
|
+
showLoadMore: PropTypes__default["default"].bool
|
|
5311
5339
|
};
|
|
5312
5340
|
var KeyEvents = StateProvider(KeyEventsBase);
|
|
5313
5341
|
|
|
@@ -5348,12 +5376,12 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5348
5376
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5349
5377
|
var mountAt = get_1(config, ["mountAtPrefix"], "");
|
|
5350
5378
|
|
|
5351
|
-
var _useState = useState([]),
|
|
5379
|
+
var _useState = React.useState([]),
|
|
5352
5380
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5353
5381
|
storyList = _useState2[0],
|
|
5354
5382
|
updateStoryList = _useState2[1];
|
|
5355
5383
|
|
|
5356
|
-
var _useState3 = useState([]),
|
|
5384
|
+
var _useState3 = React.useState([]),
|
|
5357
5385
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5358
5386
|
collectionData = _useState4[0],
|
|
5359
5387
|
updateCollectionData = _useState4[1];
|
|
@@ -5387,59 +5415,59 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
5387
5415
|
};
|
|
5388
5416
|
}();
|
|
5389
5417
|
|
|
5390
|
-
useEffect(function () {
|
|
5418
|
+
React.useEffect(function () {
|
|
5391
5419
|
if (collectionSlug) {
|
|
5392
5420
|
updateStoryListItems(collectionSlug);
|
|
5393
5421
|
}
|
|
5394
5422
|
}, [collectionSlug]);
|
|
5395
|
-
useEffect(function () {
|
|
5423
|
+
React.useEffect(function () {
|
|
5396
5424
|
if (!collectionSlug && data) {
|
|
5397
5425
|
var storyItems = data.items || data;
|
|
5398
5426
|
updateStoryList(storyItems);
|
|
5399
5427
|
}
|
|
5400
5428
|
}, [data, collectionSlug]);
|
|
5401
|
-
return /*#__PURE__*/
|
|
5429
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
|
|
5402
5430
|
customCollectionName: heading,
|
|
5403
5431
|
textColor: true,
|
|
5404
5432
|
collection: collectionData
|
|
5405
|
-
}), /*#__PURE__*/
|
|
5433
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5406
5434
|
className: "aside-collection-m_stories__9wfUs"
|
|
5407
5435
|
}, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
|
|
5408
5436
|
var story = item.story || item;
|
|
5409
|
-
return /*#__PURE__*/
|
|
5437
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5410
5438
|
className: "aside-collection-m_story__17Jdm",
|
|
5411
5439
|
key: story.id
|
|
5412
|
-
}, /*#__PURE__*/
|
|
5440
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
|
|
5413
5441
|
story: story,
|
|
5414
5442
|
isHorizontal: true,
|
|
5415
5443
|
theme: theme,
|
|
5416
5444
|
config: config
|
|
5417
|
-
}, /*#__PURE__*/
|
|
5445
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5418
5446
|
className: "aside-collection-m_story-hero-image__13nFY"
|
|
5419
|
-
}, /*#__PURE__*/
|
|
5447
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
5420
5448
|
story: story,
|
|
5421
5449
|
aspectRatio: [[4, 3]]
|
|
5422
|
-
})), /*#__PURE__*/
|
|
5450
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
5423
5451
|
story: story
|
|
5424
|
-
}), /*#__PURE__*/
|
|
5452
|
+
}), /*#__PURE__*/React__default["default"].createElement(Headline, {
|
|
5425
5453
|
story: story
|
|
5426
|
-
}), /*#__PURE__*/
|
|
5454
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5427
5455
|
className: "aside-collection-m_story-byline__37KRG"
|
|
5428
|
-
}, /*#__PURE__*/
|
|
5456
|
+
}, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
|
|
5429
5457
|
config: opts,
|
|
5430
5458
|
story: story
|
|
5431
5459
|
})))));
|
|
5432
|
-
}) : /*#__PURE__*/
|
|
5460
|
+
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5433
5461
|
"data-test-id": "no-stories",
|
|
5434
5462
|
className: "aside-collection-m_info__3p4zt"
|
|
5435
5463
|
}, "No stories found.")));
|
|
5436
5464
|
};
|
|
5437
5465
|
StoryCollection.propTypes = {
|
|
5438
|
-
data:
|
|
5439
|
-
config:
|
|
5440
|
-
horizontal:
|
|
5441
|
-
slotData:
|
|
5442
|
-
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
|
|
5443
5471
|
};
|
|
5444
5472
|
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
5445
5473
|
var _ref4$data = _ref4.data,
|
|
@@ -5466,14 +5494,14 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5466
5494
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
5467
5495
|
|
|
5468
5496
|
if (horizontal) {
|
|
5469
|
-
return /*#__PURE__*/
|
|
5497
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5470
5498
|
style: {
|
|
5471
5499
|
backgroundColor: theme
|
|
5472
5500
|
},
|
|
5473
5501
|
"data-test-id": "aside-collection",
|
|
5474
5502
|
id: "aside-collection-".concat(storyId),
|
|
5475
5503
|
className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap$j)
|
|
5476
|
-
}, /*#__PURE__*/
|
|
5504
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5477
5505
|
data: data,
|
|
5478
5506
|
horizontal: horizontal,
|
|
5479
5507
|
config: config,
|
|
@@ -5486,23 +5514,23 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5486
5514
|
var asideSlot = function asideSlot(type, slot, index) {
|
|
5487
5515
|
switch (type) {
|
|
5488
5516
|
case "ad":
|
|
5489
|
-
return /*#__PURE__*/
|
|
5517
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5490
5518
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5491
5519
|
}, adComponent(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5492
5520
|
id: "ad-".concat(index, "_").concat(storyId)
|
|
5493
5521
|
})));
|
|
5494
5522
|
|
|
5495
5523
|
case "widget":
|
|
5496
|
-
return /*#__PURE__*/
|
|
5524
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5497
5525
|
className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
|
|
5498
5526
|
}, widgetComp(_objectSpread$2(_objectSpread$2({}, slot), {}, {
|
|
5499
5527
|
id: "widget-".concat(index, "_").concat(storyId)
|
|
5500
5528
|
})));
|
|
5501
5529
|
|
|
5502
5530
|
case "collection":
|
|
5503
|
-
return /*#__PURE__*/
|
|
5531
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5504
5532
|
id: "aside-collection-".concat(index, "_").concat(storyId)
|
|
5505
|
-
}, /*#__PURE__*/
|
|
5533
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
5506
5534
|
slotData: slot,
|
|
5507
5535
|
data: data,
|
|
5508
5536
|
horizontal: horizontal,
|
|
@@ -5512,13 +5540,13 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5512
5540
|
}
|
|
5513
5541
|
};
|
|
5514
5542
|
|
|
5515
|
-
return /*#__PURE__*/
|
|
5543
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5516
5544
|
style: {
|
|
5517
5545
|
backgroundColor: theme
|
|
5518
5546
|
},
|
|
5519
5547
|
"data-test-id": "aside-collection",
|
|
5520
5548
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$j)
|
|
5521
|
-
}, enableKeyEvents && /*#__PURE__*/
|
|
5549
|
+
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
5522
5550
|
story: keyEventsData.story,
|
|
5523
5551
|
showLoadMore: keyEventsData.showLoadMore,
|
|
5524
5552
|
config: keyEventsData.config
|
|
@@ -5527,21 +5555,21 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
5527
5555
|
}));
|
|
5528
5556
|
};
|
|
5529
5557
|
AsideCollectionBase.propTypes = {
|
|
5530
|
-
data:
|
|
5531
|
-
config:
|
|
5532
|
-
opts:
|
|
5533
|
-
horizontal:
|
|
5534
|
-
slots:
|
|
5535
|
-
adComponent:
|
|
5536
|
-
widgetComp:
|
|
5537
|
-
sticky:
|
|
5538
|
-
keyEventsData:
|
|
5539
|
-
story:
|
|
5540
|
-
config:
|
|
5541
|
-
showLoadMore:
|
|
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"]
|
|
5542
5570
|
}),
|
|
5543
|
-
enableKeyEvents:
|
|
5544
|
-
storyId:
|
|
5571
|
+
enableKeyEvents: PropTypes__default["default"]["boolean"],
|
|
5572
|
+
storyId: PropTypes__default["default"].string
|
|
5545
5573
|
};
|
|
5546
5574
|
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
5547
5575
|
|
|
@@ -5603,9 +5631,9 @@ var authorImage = function authorImage(author) {
|
|
|
5603
5631
|
return null;
|
|
5604
5632
|
}
|
|
5605
5633
|
|
|
5606
|
-
return /*#__PURE__*/
|
|
5634
|
+
return /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5607
5635
|
"data-test-id": "author-image"
|
|
5608
|
-
}, avatarS3Key ? /*#__PURE__*/
|
|
5636
|
+
}, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5609
5637
|
slug: avatarS3Key,
|
|
5610
5638
|
"aspect-ratio": [1, 1],
|
|
5611
5639
|
defaultWidth: 48,
|
|
@@ -5613,7 +5641,7 @@ var authorImage = function authorImage(author) {
|
|
|
5613
5641
|
auto: ["format", "compress"]
|
|
5614
5642
|
},
|
|
5615
5643
|
alt: authorName
|
|
5616
|
-
}) : /*#__PURE__*/
|
|
5644
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5617
5645
|
src: avatarUrl
|
|
5618
5646
|
}));
|
|
5619
5647
|
};
|
|
@@ -5640,60 +5668,60 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
5640
5668
|
_opts$showName = opts.showName,
|
|
5641
5669
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
5642
5670
|
var textColor = getTextColor(configData.theme);
|
|
5643
|
-
return /*#__PURE__*/
|
|
5671
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5644
5672
|
"data-test-id": "author-card-".concat(kebabCase_1(template)),
|
|
5645
5673
|
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap$i)
|
|
5646
5674
|
}, authors.map(function (author, index) {
|
|
5647
|
-
return /*#__PURE__*/
|
|
5675
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
5648
5676
|
key: author.id
|
|
5649
|
-
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/
|
|
5677
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5650
5678
|
"data-test-id": "author-image",
|
|
5651
5679
|
className: "author-card-m_author-image-wrapper__1at-z"
|
|
5652
|
-
}, /*#__PURE__*/
|
|
5680
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5653
5681
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5654
5682
|
key: "author-image-".concat(index),
|
|
5655
5683
|
"aria-label": "author-image"
|
|
5656
|
-
}, /*#__PURE__*/
|
|
5684
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5657
5685
|
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$i)
|
|
5658
5686
|
}, authorImage(author)))));
|
|
5659
|
-
}), showName && /*#__PURE__*/
|
|
5687
|
+
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5660
5688
|
"data-test-id": "author-name",
|
|
5661
5689
|
className: "author-card-m_author-name-share__3vb9q"
|
|
5662
5690
|
}, authors.map(function (author, index) {
|
|
5663
5691
|
var spaceHolder = ",\xA0";
|
|
5664
|
-
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, {
|
|
5665
5693
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
5666
5694
|
"aria-label": "author-name"
|
|
5667
|
-
}, /*#__PURE__*/
|
|
5695
|
+
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
5668
5696
|
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap$i)
|
|
5669
5697
|
}, author.name)));
|
|
5670
|
-
}), 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", {
|
|
5671
5699
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
5672
|
-
}, /*#__PURE__*/
|
|
5700
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
5673
5701
|
color: textColor
|
|
5674
|
-
})), /*#__PURE__*/
|
|
5702
|
+
})), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5675
5703
|
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
5676
5704
|
target: "_blank",
|
|
5677
5705
|
rel: "noopener noreferrer"
|
|
5678
|
-
}, /*#__PURE__*/
|
|
5706
|
+
}, /*#__PURE__*/React__default["default"].createElement(Twitter, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5679
5707
|
"data-test-id": "author-info",
|
|
5680
5708
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
5681
|
-
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/
|
|
5709
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5682
5710
|
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap$i)
|
|
5683
5711
|
}, authors[0].bio)));
|
|
5684
5712
|
};
|
|
5685
5713
|
AuthorCard.propTypes = {
|
|
5686
|
-
story:
|
|
5687
|
-
authors:
|
|
5714
|
+
story: PropTypes__default["default"].shape({
|
|
5715
|
+
authors: PropTypes__default["default"].array
|
|
5688
5716
|
}),
|
|
5689
|
-
template:
|
|
5690
|
-
opts:
|
|
5691
|
-
showImage:
|
|
5692
|
-
showBio:
|
|
5693
|
-
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
|
|
5694
5722
|
}),
|
|
5695
|
-
mountAt:
|
|
5696
|
-
clazzName:
|
|
5723
|
+
mountAt: PropTypes__default["default"].string,
|
|
5724
|
+
clazzName: PropTypes__default["default"].string
|
|
5697
5725
|
};
|
|
5698
5726
|
|
|
5699
5727
|
var _styleModuleImportMap$h = {
|
|
@@ -5722,12 +5750,12 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5722
5750
|
_ref$timezone = _ref.timezone,
|
|
5723
5751
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
5724
5752
|
|
|
5725
|
-
var _useState = useState("ltr"),
|
|
5753
|
+
var _useState = React.useState("ltr"),
|
|
5726
5754
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5727
5755
|
direction = _useState2[0],
|
|
5728
5756
|
setDirection = _useState2[1];
|
|
5729
5757
|
|
|
5730
|
-
useEffect(function () {
|
|
5758
|
+
React.useEffect(function () {
|
|
5731
5759
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5732
5760
|
|
|
5733
5761
|
if (htmlElement && htmlElement.length > 0 && htmlElement[0].dir.toLocaleLowerCase() === "rtl") {
|
|
@@ -5753,41 +5781,41 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
5753
5781
|
direction: direction,
|
|
5754
5782
|
showTime: true
|
|
5755
5783
|
});
|
|
5756
|
-
return /*#__PURE__*/
|
|
5784
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5757
5785
|
"data-test-id": "timeStamp",
|
|
5758
5786
|
className: "arrow-component arr-publish-details " + _getClassName("timeStamp ".concat(textColor), _styleModuleImportMap$h)
|
|
5759
|
-
}, /*#__PURE__*/
|
|
5787
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5760
5788
|
"data-test-id": "publishDetails",
|
|
5761
5789
|
className: _getClassName("publish-details ".concat(textColor), _styleModuleImportMap$h)
|
|
5762
|
-
}, enablePublishedTime && /*#__PURE__*/
|
|
5790
|
+
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5763
5791
|
className: "publish-details-m_date__3ZIQN"
|
|
5764
|
-
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5792
|
+
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5765
5793
|
story: story,
|
|
5766
5794
|
opts: opts
|
|
5767
|
-
}))), enableUpdatedTime && /*#__PURE__*/
|
|
5795
|
+
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5768
5796
|
"data-test-id": "updateDetails",
|
|
5769
5797
|
className: _getClassName("update-details ".concat(textColor), _styleModuleImportMap$h)
|
|
5770
|
-
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/
|
|
5798
|
+
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5771
5799
|
className: "publish-details-m_date__3ZIQN"
|
|
5772
|
-
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/
|
|
5800
|
+
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
5773
5801
|
story: story,
|
|
5774
5802
|
opts: opts
|
|
5775
5803
|
})));
|
|
5776
5804
|
};
|
|
5777
5805
|
PublishDetails.propTypes = {
|
|
5778
5806
|
/** The Story Object from the API response */
|
|
5779
|
-
story:
|
|
5780
|
-
"first-published-at":
|
|
5781
|
-
"last-published-at":
|
|
5782
|
-
"read-time":
|
|
5783
|
-
"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
|
|
5784
5812
|
}),
|
|
5785
|
-
timezone:
|
|
5786
|
-
template:
|
|
5787
|
-
opts:
|
|
5788
|
-
showReadTime:
|
|
5789
|
-
enableUpdatedTime:
|
|
5790
|
-
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
|
|
5791
5819
|
})
|
|
5792
5820
|
};
|
|
5793
5821
|
|
|
@@ -5810,24 +5838,24 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
5810
5838
|
var textColor = getTextColor(configData.theme);
|
|
5811
5839
|
var mountAt = get_1(config, ["mountAt"], "");
|
|
5812
5840
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
5813
|
-
return /*#__PURE__*/
|
|
5841
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5814
5842
|
className: "arrow-component arr--story-tags"
|
|
5815
5843
|
}, tags.length > 0 && tags.map(function (tag, index) {
|
|
5816
|
-
return /*#__PURE__*/
|
|
5844
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5817
5845
|
key: index,
|
|
5818
5846
|
"data-test-id": "story-tag",
|
|
5819
5847
|
className: _getClassName("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$g)
|
|
5820
|
-
}, /*#__PURE__*/
|
|
5848
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
5821
5849
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
5822
5850
|
"aria-label": "story-tag-name"
|
|
5823
5851
|
}, tag.name));
|
|
5824
5852
|
}));
|
|
5825
5853
|
};
|
|
5826
5854
|
StoryTags.propTypes = {
|
|
5827
|
-
tags:
|
|
5828
|
-
borderColor:
|
|
5829
|
-
config:
|
|
5830
|
-
template: string
|
|
5855
|
+
tags: PropTypes__default["default"].array,
|
|
5856
|
+
borderColor: PropTypes__default["default"].string,
|
|
5857
|
+
config: PropTypes__default["default"].object,
|
|
5858
|
+
template: PropTypes.string
|
|
5831
5859
|
};
|
|
5832
5860
|
|
|
5833
5861
|
var _excluded$c = ["element", "opts", "css", "story", "config"];
|
|
@@ -5863,7 +5891,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
5863
5891
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
5864
5892
|
var isPromotionalMessage = get_1(element, ["metadata", "promotional-message"], false);
|
|
5865
5893
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
5866
|
-
return /*#__PURE__*/
|
|
5894
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5867
5895
|
style: !isPromotionalMessage ? {
|
|
5868
5896
|
color: textColor
|
|
5869
5897
|
} : {},
|
|
@@ -5878,15 +5906,15 @@ var TextBase = function TextBase(_ref) {
|
|
|
5878
5906
|
};
|
|
5879
5907
|
|
|
5880
5908
|
TextBase.propTypes = {
|
|
5881
|
-
element:
|
|
5882
|
-
text:
|
|
5909
|
+
element: PropTypes__default["default"].shape({
|
|
5910
|
+
text: PropTypes__default["default"].string
|
|
5883
5911
|
}),
|
|
5884
|
-
opts:
|
|
5885
|
-
isExternalLink:
|
|
5912
|
+
opts: PropTypes__default["default"].shape({
|
|
5913
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5886
5914
|
}),
|
|
5887
|
-
css:
|
|
5888
|
-
hyperlinkColor:
|
|
5889
|
-
textColor:
|
|
5915
|
+
css: PropTypes__default["default"].shape({
|
|
5916
|
+
hyperlinkColor: PropTypes__default["default"].string,
|
|
5917
|
+
textColor: PropTypes__default["default"].string
|
|
5890
5918
|
}),
|
|
5891
5919
|
story: shapeStory,
|
|
5892
5920
|
config: shapeConfig
|
|
@@ -5927,13 +5955,13 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5927
5955
|
borderLeft: "solid 2px ".concat(borderColor)
|
|
5928
5956
|
};
|
|
5929
5957
|
|
|
5930
|
-
var _useState = useState(initBorderDirection),
|
|
5958
|
+
var _useState = React.useState(initBorderDirection),
|
|
5931
5959
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5932
5960
|
borderDirection = _useState2[0],
|
|
5933
5961
|
setBorderDirection = _useState2[1];
|
|
5934
5962
|
|
|
5935
5963
|
if (!content) return null;
|
|
5936
|
-
useEffect(function () {
|
|
5964
|
+
React.useEffect(function () {
|
|
5937
5965
|
var htmlElement = document.getElementsByTagName("HTML");
|
|
5938
5966
|
|
|
5939
5967
|
if (htmlElement && htmlElement.length) {
|
|
@@ -5950,7 +5978,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5950
5978
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
5951
5979
|
var configData = useStateValue() || {};
|
|
5952
5980
|
var textInvertColor = getTextColor(configData.theme);
|
|
5953
|
-
return /*#__PURE__*/
|
|
5981
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
5954
5982
|
"data-test-id": "blurb",
|
|
5955
5983
|
style: borderColor && borderDirection,
|
|
5956
5984
|
dangerouslySetInnerHTML: {
|
|
@@ -5962,19 +5990,19 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
5962
5990
|
};
|
|
5963
5991
|
|
|
5964
5992
|
BlurbBase.propTypes = {
|
|
5965
|
-
element:
|
|
5966
|
-
text:
|
|
5993
|
+
element: PropTypes__default["default"].shape({
|
|
5994
|
+
text: PropTypes__default["default"].string
|
|
5967
5995
|
}),
|
|
5968
5996
|
|
|
5969
5997
|
/** templates can be either default or withBorder */
|
|
5970
|
-
template:
|
|
5971
|
-
opts:
|
|
5972
|
-
isExternalLink:
|
|
5998
|
+
template: PropTypes__default["default"].string,
|
|
5999
|
+
opts: PropTypes__default["default"].shape({
|
|
6000
|
+
isExternalLink: PropTypes__default["default"].bool
|
|
5973
6001
|
}),
|
|
5974
6002
|
story: shapeStory,
|
|
5975
6003
|
config: shapeConfig,
|
|
5976
|
-
render:
|
|
5977
|
-
css:
|
|
6004
|
+
render: PropTypes__default["default"].func,
|
|
6005
|
+
css: PropTypes__default["default"].object
|
|
5978
6006
|
};
|
|
5979
6007
|
var Blurb = withElementWrapper(BlurbBase);
|
|
5980
6008
|
|
|
@@ -6027,19 +6055,19 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6027
6055
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
6028
6056
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
6029
6057
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
6030
|
-
return /*#__PURE__*/
|
|
6058
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6031
6059
|
"data-test-id": "summary"
|
|
6032
6060
|
}, restProps, {
|
|
6033
6061
|
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName(templateStyle, _styleModuleImportMap$d) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6034
|
-
}), !hideHeadline && /*#__PURE__*/
|
|
6062
|
+
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6035
6063
|
"data-test-id": "summary-headline",
|
|
6036
6064
|
className: _getClassName("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$d)
|
|
6037
|
-
}, /*#__PURE__*/
|
|
6065
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6038
6066
|
style: {
|
|
6039
6067
|
backgroundColor: updateHeaderColor
|
|
6040
6068
|
},
|
|
6041
6069
|
className: _getClassName("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$d)
|
|
6042
|
-
}, headline)), /*#__PURE__*/
|
|
6070
|
+
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6043
6071
|
dangerouslySetInnerHTML: {
|
|
6044
6072
|
__html: text
|
|
6045
6073
|
},
|
|
@@ -6048,20 +6076,20 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
6048
6076
|
};
|
|
6049
6077
|
|
|
6050
6078
|
SummaryBase.propTypes = {
|
|
6051
|
-
element:
|
|
6052
|
-
text:
|
|
6079
|
+
element: PropTypes__default["default"].shape({
|
|
6080
|
+
text: PropTypes__default["default"].string
|
|
6053
6081
|
}),
|
|
6054
|
-
template:
|
|
6055
|
-
opts:
|
|
6056
|
-
isExternalLink:
|
|
6057
|
-
headline:
|
|
6058
|
-
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
|
|
6059
6087
|
}),
|
|
6060
6088
|
story: shapeStory,
|
|
6061
6089
|
config: shapeConfig,
|
|
6062
|
-
render:
|
|
6063
|
-
css:
|
|
6064
|
-
headerBgColor:
|
|
6090
|
+
render: PropTypes__default["default"].func,
|
|
6091
|
+
css: PropTypes__default["default"].shape({
|
|
6092
|
+
headerBgColor: PropTypes__default["default"].string
|
|
6065
6093
|
})
|
|
6066
6094
|
};
|
|
6067
6095
|
var Summary = withElementWrapper(SummaryBase);
|
|
@@ -6073,27 +6101,27 @@ var CurveIcon = function CurveIcon(_ref) {
|
|
|
6073
6101
|
opacity = _ref.opacity;
|
|
6074
6102
|
var lightColor = color === "light" && "#ffffff";
|
|
6075
6103
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6076
|
-
return /*#__PURE__*/
|
|
6104
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6077
6105
|
className: "icon-m_curve-wrapper__3-sLV",
|
|
6078
6106
|
style: {
|
|
6079
6107
|
fill: "".concat(lightColor || darkColor || color)
|
|
6080
6108
|
}
|
|
6081
|
-
}, /*#__PURE__*/
|
|
6109
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6082
6110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6083
6111
|
width: width,
|
|
6084
6112
|
height: height,
|
|
6085
6113
|
viewBox: "0 0 64 64"
|
|
6086
|
-
}, /*#__PURE__*/
|
|
6114
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6087
6115
|
fill: "inherit",
|
|
6088
6116
|
opacity: opacity,
|
|
6089
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"
|
|
6090
6118
|
})));
|
|
6091
6119
|
};
|
|
6092
6120
|
CurveIcon.propTypes = {
|
|
6093
|
-
width:
|
|
6094
|
-
height:
|
|
6095
|
-
color:
|
|
6096
|
-
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
|
|
6097
6125
|
};
|
|
6098
6126
|
|
|
6099
6127
|
var EdgeIcon = function EdgeIcon(_ref) {
|
|
@@ -6103,27 +6131,27 @@ var EdgeIcon = function EdgeIcon(_ref) {
|
|
|
6103
6131
|
opacity = _ref.opacity;
|
|
6104
6132
|
var lightColor = color === "light" && "#ffffff";
|
|
6105
6133
|
var darkColor = color === "dark" && "#0d0d0d";
|
|
6106
|
-
return /*#__PURE__*/
|
|
6134
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6107
6135
|
className: "icon-m_edge-wrapper__xUOdp",
|
|
6108
6136
|
style: {
|
|
6109
6137
|
fill: "".concat(lightColor || darkColor || color)
|
|
6110
6138
|
}
|
|
6111
|
-
}, /*#__PURE__*/
|
|
6139
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6112
6140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6113
6141
|
width: width,
|
|
6114
6142
|
height: height,
|
|
6115
6143
|
viewBox: "0 0 64 64"
|
|
6116
|
-
}, /*#__PURE__*/
|
|
6144
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
6117
6145
|
fill: "inherit",
|
|
6118
6146
|
opacity: opacity,
|
|
6119
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"
|
|
6120
6148
|
})));
|
|
6121
6149
|
};
|
|
6122
6150
|
EdgeIcon.propTypes = {
|
|
6123
|
-
width:
|
|
6124
|
-
height:
|
|
6125
|
-
color:
|
|
6126
|
-
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
|
|
6127
6155
|
};
|
|
6128
6156
|
|
|
6129
6157
|
var _excluded$9 = ["element", "template", "css", "story", "config", "render"];
|
|
@@ -6153,7 +6181,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6153
6181
|
|
|
6154
6182
|
if (template === "withBackground") {
|
|
6155
6183
|
if (iconType === "edgeIcon") {
|
|
6156
|
-
return /*#__PURE__*/
|
|
6184
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6157
6185
|
width: dimension,
|
|
6158
6186
|
height: dimension,
|
|
6159
6187
|
color: quoteColor,
|
|
@@ -6161,7 +6189,7 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6161
6189
|
});
|
|
6162
6190
|
}
|
|
6163
6191
|
|
|
6164
|
-
return /*#__PURE__*/
|
|
6192
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6165
6193
|
width: dimension,
|
|
6166
6194
|
height: dimension,
|
|
6167
6195
|
color: quoteColor,
|
|
@@ -6171,14 +6199,14 @@ var SelectionOfIcon = function SelectionOfIcon(iconType, template, blockQuoteCol
|
|
|
6171
6199
|
|
|
6172
6200
|
if (template !== "withBackground") {
|
|
6173
6201
|
if (iconType === "edgeIcon") {
|
|
6174
|
-
return /*#__PURE__*/
|
|
6202
|
+
return /*#__PURE__*/React__default["default"].createElement(EdgeIcon, {
|
|
6175
6203
|
width: dimension,
|
|
6176
6204
|
height: dimension,
|
|
6177
6205
|
color: blockQuoteColor
|
|
6178
6206
|
});
|
|
6179
6207
|
}
|
|
6180
6208
|
|
|
6181
|
-
return /*#__PURE__*/
|
|
6209
|
+
return /*#__PURE__*/React__default["default"].createElement(CurveIcon, {
|
|
6182
6210
|
width: dimension,
|
|
6183
6211
|
height: dimension,
|
|
6184
6212
|
color: blockQuoteColor
|
|
@@ -6214,38 +6242,38 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6214
6242
|
var textInvertColor = getTextColor(isBackground ? theme.backgroundColor : configData.theme);
|
|
6215
6243
|
|
|
6216
6244
|
var updateStructure = function updateStructure() {
|
|
6217
|
-
return template === "withBorder" ? /*#__PURE__*/
|
|
6245
|
+
return template === "withBorder" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6218
6246
|
className: "block-quote-m_icon-border__2xQQY"
|
|
6219
|
-
}, /*#__PURE__*/
|
|
6247
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6220
6248
|
className: "block-quote-m_icon__m-EIZ"
|
|
6221
|
-
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/
|
|
6249
|
+
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6222
6250
|
className: "block-quote-m_border__1ZTPR",
|
|
6223
6251
|
style: blockQuoteColor && {
|
|
6224
6252
|
backgroundColor: blockQuoteColor
|
|
6225
6253
|
}
|
|
6226
|
-
})) : /*#__PURE__*/
|
|
6254
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6227
6255
|
className: "block-quote-m_icon__m-EIZ"
|
|
6228
6256
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
6229
6257
|
};
|
|
6230
6258
|
|
|
6231
|
-
return /*#__PURE__*/
|
|
6259
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6232
6260
|
"data-test-id": "blockquote",
|
|
6233
6261
|
style: theme
|
|
6234
6262
|
}, restProps, {
|
|
6235
6263
|
className: "arrow-component arr--block-quote " + _getClassName("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$c) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6236
|
-
}), /*#__PURE__*/
|
|
6264
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6237
6265
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
6238
|
-
}, updateStructure(), /*#__PURE__*/
|
|
6266
|
+
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6239
6267
|
className: "block-quote-m_wrapper__2KEhw",
|
|
6240
6268
|
style: blockQuoteColor && {
|
|
6241
6269
|
borderColor: blockQuoteColor
|
|
6242
6270
|
}
|
|
6243
|
-
}, /*#__PURE__*/
|
|
6271
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6244
6272
|
dangerouslySetInnerHTML: {
|
|
6245
6273
|
__html: content
|
|
6246
6274
|
},
|
|
6247
6275
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$c)
|
|
6248
|
-
}), /*#__PURE__*/
|
|
6276
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6249
6277
|
dangerouslySetInnerHTML: {
|
|
6250
6278
|
__html: attribution
|
|
6251
6279
|
},
|
|
@@ -6253,17 +6281,17 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
6253
6281
|
}))));
|
|
6254
6282
|
};
|
|
6255
6283
|
BlockQuoteBase.propTypes = {
|
|
6256
|
-
element:
|
|
6257
|
-
metadata:
|
|
6258
|
-
content:
|
|
6259
|
-
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
|
|
6260
6288
|
})
|
|
6261
6289
|
}),
|
|
6262
|
-
template:
|
|
6290
|
+
template: PropTypes__default["default"].string,
|
|
6263
6291
|
story: shapeStory,
|
|
6264
6292
|
config: shapeConfig,
|
|
6265
|
-
render:
|
|
6266
|
-
css:
|
|
6293
|
+
render: PropTypes__default["default"].func,
|
|
6294
|
+
css: PropTypes__default["default"].object
|
|
6267
6295
|
};
|
|
6268
6296
|
var BlockQuote = withElementWrapper(BlockQuoteBase);
|
|
6269
6297
|
|
|
@@ -6291,27 +6319,27 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
6291
6319
|
var _element$metadata = element.metadata,
|
|
6292
6320
|
content = _element$metadata.content,
|
|
6293
6321
|
attribution = _element$metadata.attribution;
|
|
6294
|
-
return /*#__PURE__*/
|
|
6322
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6295
6323
|
"data-test-id": "bigfact"
|
|
6296
6324
|
}, restProps, {
|
|
6297
6325
|
className: "arrow-component arr--bigfact-element " + _getClassName("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$b) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6298
|
-
}), /*#__PURE__*/
|
|
6326
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6299
6327
|
className: "big-fact-m_content__1u2Ul"
|
|
6300
|
-
}, content), /*#__PURE__*/
|
|
6328
|
+
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6301
6329
|
"data-test-id": "attribution",
|
|
6302
6330
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$b)
|
|
6303
6331
|
}, attribution));
|
|
6304
6332
|
};
|
|
6305
6333
|
|
|
6306
6334
|
BigFactBase.propTypes = {
|
|
6307
|
-
element:
|
|
6308
|
-
metadata:
|
|
6309
|
-
content:
|
|
6310
|
-
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
|
|
6311
6339
|
})
|
|
6312
6340
|
}),
|
|
6313
|
-
story:
|
|
6314
|
-
config:
|
|
6341
|
+
story: PropTypes__default["default"].object,
|
|
6342
|
+
config: PropTypes__default["default"].object
|
|
6315
6343
|
};
|
|
6316
6344
|
var BigFact = withElementWrapper(BigFactBase);
|
|
6317
6345
|
|
|
@@ -6345,11 +6373,11 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6345
6373
|
var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
|
|
6346
6374
|
var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
|
|
6347
6375
|
var alternateText = story["hero-image-caption"] || story["headline"];
|
|
6348
|
-
return /*#__PURE__*/
|
|
6376
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6349
6377
|
className: "also-read-m_card-image-wrapper__3GFzu"
|
|
6350
|
-
}, !isEmpty(linkedImage) ? /*#__PURE__*/
|
|
6378
|
+
}, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6351
6379
|
className: "also-read-m_card-image__3CwAv"
|
|
6352
|
-
}, /*#__PURE__*/
|
|
6380
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6353
6381
|
slug: linkedImage,
|
|
6354
6382
|
"aspect-ratio": imageAspectRatio,
|
|
6355
6383
|
defaultWidth: 480,
|
|
@@ -6358,19 +6386,19 @@ var DisplayImage = function DisplayImage(_ref) {
|
|
|
6358
6386
|
auto: ["format", "compress"]
|
|
6359
6387
|
},
|
|
6360
6388
|
alt: alternateText
|
|
6361
|
-
}))) : /*#__PURE__*/
|
|
6389
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6362
6390
|
className: "arr--fallback-also-read also-read-m_image__2jdRP"
|
|
6363
|
-
}, /*#__PURE__*/
|
|
6391
|
+
}, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
|
|
6364
6392
|
};
|
|
6365
6393
|
|
|
6366
6394
|
DisplayImage.propTypes = {
|
|
6367
|
-
story:
|
|
6368
|
-
"hero-image-caption":
|
|
6369
|
-
headline:
|
|
6395
|
+
story: PropTypes__default["default"].shape({
|
|
6396
|
+
"hero-image-caption": PropTypes__default["default"].string,
|
|
6397
|
+
headline: PropTypes__default["default"].string
|
|
6370
6398
|
}),
|
|
6371
|
-
linkedImage:
|
|
6372
|
-
template:
|
|
6373
|
-
isRightAlign:
|
|
6399
|
+
linkedImage: PropTypes__default["default"].string,
|
|
6400
|
+
template: PropTypes__default["default"].string,
|
|
6401
|
+
isRightAlign: PropTypes__default["default"].bool
|
|
6374
6402
|
};
|
|
6375
6403
|
|
|
6376
6404
|
var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
@@ -6403,22 +6431,22 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6403
6431
|
var isDefault = template === "" || template === "default";
|
|
6404
6432
|
var isRightAlign = template === "imageRightAlign";
|
|
6405
6433
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
6406
|
-
return /*#__PURE__*/
|
|
6434
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
|
|
6407
6435
|
"data-test-id": "also-read",
|
|
6408
6436
|
href: storyUrl,
|
|
6409
6437
|
"aria-label": "also-read"
|
|
6410
6438
|
}, restProps, {
|
|
6411
6439
|
className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap$a) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6412
|
-
}), !isDefault && /*#__PURE__*/
|
|
6440
|
+
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6413
6441
|
className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap$a)
|
|
6414
|
-
}, displayTitle), isDefault && /*#__PURE__*/
|
|
6442
|
+
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6415
6443
|
story: story,
|
|
6416
6444
|
linkedImage: linkedImage,
|
|
6417
6445
|
template: template,
|
|
6418
6446
|
isRightAlign: isRightAlign
|
|
6419
|
-
}), /*#__PURE__*/
|
|
6447
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6420
6448
|
className: "also-read-m_content-wrapper__26AZX"
|
|
6421
|
-
}, /*#__PURE__*/
|
|
6449
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6422
6450
|
className: "also-read-m_headline__VzF-c",
|
|
6423
6451
|
style: textColor ? {
|
|
6424
6452
|
color: textColor
|
|
@@ -6428,7 +6456,7 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6428
6456
|
dangerouslySetInnerHTML: {
|
|
6429
6457
|
__html: content
|
|
6430
6458
|
}
|
|
6431
|
-
}), isRightAlign && /*#__PURE__*/
|
|
6459
|
+
}), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
6432
6460
|
story: story,
|
|
6433
6461
|
linkedImage: linkedImage,
|
|
6434
6462
|
template: template
|
|
@@ -6437,25 +6465,25 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
6437
6465
|
|
|
6438
6466
|
AlsoReadBase.propTypes = {
|
|
6439
6467
|
/** template can be default, textLeftAlign or imageRightAlign */
|
|
6440
|
-
template:
|
|
6441
|
-
story:
|
|
6442
|
-
"linked-stories":
|
|
6468
|
+
template: PropTypes__default["default"].string,
|
|
6469
|
+
story: PropTypes__default["default"].shape({
|
|
6470
|
+
"linked-stories": PropTypes__default["default"].object
|
|
6443
6471
|
}),
|
|
6444
|
-
element:
|
|
6445
|
-
text:
|
|
6446
|
-
metadata:
|
|
6447
|
-
linkedStoryId:
|
|
6448
|
-
url:
|
|
6449
|
-
"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
|
|
6450
6478
|
})
|
|
6451
6479
|
})
|
|
6452
6480
|
}),
|
|
6453
|
-
opts:
|
|
6454
|
-
title:
|
|
6481
|
+
opts: PropTypes__default["default"].shape({
|
|
6482
|
+
title: PropTypes__default["default"].string
|
|
6455
6483
|
}),
|
|
6456
6484
|
config: shapeConfig,
|
|
6457
|
-
render:
|
|
6458
|
-
css:
|
|
6485
|
+
render: PropTypes__default["default"].func,
|
|
6486
|
+
css: PropTypes__default["default"].object
|
|
6459
6487
|
};
|
|
6460
6488
|
var AlsoRead = withElementWrapper(AlsoReadBase);
|
|
6461
6489
|
|
|
@@ -6463,20 +6491,20 @@ var Loading = function Loading(_ref) {
|
|
|
6463
6491
|
_ref.width;
|
|
6464
6492
|
_ref.height;
|
|
6465
6493
|
_ref.iconColor;
|
|
6466
|
-
return /*#__PURE__*/
|
|
6494
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6467
6495
|
className: "loading-m_loading-indicator__2Dlst"
|
|
6468
|
-
}, /*#__PURE__*/
|
|
6496
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
6469
6497
|
width: "40",
|
|
6470
6498
|
height: "40",
|
|
6471
6499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6472
6500
|
viewBox: "0 0 100 100",
|
|
6473
6501
|
preserveAspectRatio: "xMidYMid"
|
|
6474
|
-
}, /*#__PURE__*/
|
|
6502
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6475
6503
|
cx: "84",
|
|
6476
6504
|
cy: "50",
|
|
6477
6505
|
r: "0",
|
|
6478
6506
|
fill: "currentColor"
|
|
6479
|
-
}, /*#__PURE__*/
|
|
6507
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6480
6508
|
attributeName: "r",
|
|
6481
6509
|
values: "10;0;0;0;0",
|
|
6482
6510
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6485,7 +6513,7 @@ var Loading = function Loading(_ref) {
|
|
|
6485
6513
|
dur: "2s",
|
|
6486
6514
|
repeatCount: "indefinite",
|
|
6487
6515
|
begin: "0s"
|
|
6488
|
-
}), /*#__PURE__*/
|
|
6516
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6489
6517
|
attributeName: "cx",
|
|
6490
6518
|
values: "84;84;84;84;84",
|
|
6491
6519
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6494,12 +6522,12 @@ var Loading = function Loading(_ref) {
|
|
|
6494
6522
|
dur: "2s",
|
|
6495
6523
|
repeatCount: "indefinite",
|
|
6496
6524
|
begin: "0s"
|
|
6497
|
-
})), /*#__PURE__*/
|
|
6525
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6498
6526
|
cx: "84",
|
|
6499
6527
|
cy: "50",
|
|
6500
6528
|
r: ".709",
|
|
6501
6529
|
fill: "currentColor"
|
|
6502
|
-
}, /*#__PURE__*/
|
|
6530
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6503
6531
|
attributeName: "r",
|
|
6504
6532
|
values: "0;10;10;10;0",
|
|
6505
6533
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6508,7 +6536,7 @@ var Loading = function Loading(_ref) {
|
|
|
6508
6536
|
dur: "2s",
|
|
6509
6537
|
repeatCount: "indefinite",
|
|
6510
6538
|
begin: "-1s"
|
|
6511
|
-
}), /*#__PURE__*/
|
|
6539
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6512
6540
|
attributeName: "cx",
|
|
6513
6541
|
values: "16;16;50;84;84",
|
|
6514
6542
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6517,12 +6545,12 @@ var Loading = function Loading(_ref) {
|
|
|
6517
6545
|
dur: "2s",
|
|
6518
6546
|
repeatCount: "indefinite",
|
|
6519
6547
|
begin: "-1s"
|
|
6520
|
-
})), /*#__PURE__*/
|
|
6548
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6521
6549
|
cx: "81.59",
|
|
6522
6550
|
cy: "50",
|
|
6523
6551
|
r: "10",
|
|
6524
6552
|
fill: "currentColor"
|
|
6525
|
-
}, /*#__PURE__*/
|
|
6553
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6526
6554
|
attributeName: "r",
|
|
6527
6555
|
values: "0;10;10;10;0",
|
|
6528
6556
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6531,7 +6559,7 @@ var Loading = function Loading(_ref) {
|
|
|
6531
6559
|
dur: "2s",
|
|
6532
6560
|
repeatCount: "indefinite",
|
|
6533
6561
|
begin: "-0.5s"
|
|
6534
|
-
}), /*#__PURE__*/
|
|
6562
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6535
6563
|
attributeName: "cx",
|
|
6536
6564
|
values: "16;16;50;84;84",
|
|
6537
6565
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6540,12 +6568,12 @@ var Loading = function Loading(_ref) {
|
|
|
6540
6568
|
dur: "2s",
|
|
6541
6569
|
repeatCount: "indefinite",
|
|
6542
6570
|
begin: "-0.5s"
|
|
6543
|
-
})), /*#__PURE__*/
|
|
6571
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6544
6572
|
cx: "47.59",
|
|
6545
6573
|
cy: "50",
|
|
6546
6574
|
r: "10",
|
|
6547
6575
|
fill: "currentColor"
|
|
6548
|
-
}, /*#__PURE__*/
|
|
6576
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6549
6577
|
attributeName: "r",
|
|
6550
6578
|
values: "0;10;10;10;0",
|
|
6551
6579
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6554,7 +6582,7 @@ var Loading = function Loading(_ref) {
|
|
|
6554
6582
|
dur: "2s",
|
|
6555
6583
|
repeatCount: "indefinite",
|
|
6556
6584
|
begin: "0s"
|
|
6557
|
-
}), /*#__PURE__*/
|
|
6585
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6558
6586
|
attributeName: "cx",
|
|
6559
6587
|
values: "16;16;50;84;84",
|
|
6560
6588
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6563,12 +6591,12 @@ var Loading = function Loading(_ref) {
|
|
|
6563
6591
|
dur: "2s",
|
|
6564
6592
|
repeatCount: "indefinite",
|
|
6565
6593
|
begin: "0s"
|
|
6566
|
-
})), /*#__PURE__*/
|
|
6594
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
6567
6595
|
cx: "16",
|
|
6568
6596
|
cy: "50",
|
|
6569
6597
|
r: "9.291",
|
|
6570
6598
|
fill: "currentColor"
|
|
6571
|
-
}, /*#__PURE__*/
|
|
6599
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6572
6600
|
attributeName: "r",
|
|
6573
6601
|
values: "0;0;10;10;10",
|
|
6574
6602
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6577,7 +6605,7 @@ var Loading = function Loading(_ref) {
|
|
|
6577
6605
|
dur: "2s",
|
|
6578
6606
|
repeatCount: "indefinite",
|
|
6579
6607
|
begin: "0s"
|
|
6580
|
-
}), /*#__PURE__*/
|
|
6608
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
6581
6609
|
attributeName: "cx",
|
|
6582
6610
|
values: "16;16;16;50;84",
|
|
6583
6611
|
keyTimes: "0;0.25;0.5;0.75;1",
|
|
@@ -6589,16 +6617,16 @@ var Loading = function Loading(_ref) {
|
|
|
6589
6617
|
}))));
|
|
6590
6618
|
};
|
|
6591
6619
|
Loading.propTypes = {
|
|
6592
|
-
width:
|
|
6593
|
-
height:
|
|
6594
|
-
iconColor:
|
|
6620
|
+
width: PropTypes__default["default"].object,
|
|
6621
|
+
height: PropTypes__default["default"].object,
|
|
6622
|
+
iconColor: PropTypes__default["default"].object
|
|
6595
6623
|
};
|
|
6596
6624
|
|
|
6597
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; }
|
|
6598
6626
|
|
|
6599
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; }
|
|
6600
|
-
var Lightbox = /*#__PURE__*/lazy(function () {
|
|
6601
|
-
return
|
|
6628
|
+
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
6629
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
6602
6630
|
});
|
|
6603
6631
|
var FullScreenImages = function FullScreenImages(_ref) {
|
|
6604
6632
|
var _ref$imageSlug = _ref.imageSlug,
|
|
@@ -6607,16 +6635,16 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6607
6635
|
_ref$element = _ref.element,
|
|
6608
6636
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
6609
6637
|
props = _ref.props;
|
|
6610
|
-
var cdnImage = useSelector(function (state) {
|
|
6638
|
+
var cdnImage = reactRedux.useSelector(function (state) {
|
|
6611
6639
|
return get_1(state, ["qt", "config", "cdn-image"]);
|
|
6612
6640
|
});
|
|
6613
6641
|
|
|
6614
|
-
var _useState = useState(0),
|
|
6642
|
+
var _useState = React.useState(0),
|
|
6615
6643
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6616
6644
|
photoIndex = _useState2[0],
|
|
6617
6645
|
handleImage = _useState2[1];
|
|
6618
6646
|
|
|
6619
|
-
var _useState3 = useState(false),
|
|
6647
|
+
var _useState3 = React.useState(false),
|
|
6620
6648
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
6621
6649
|
isOpen = _useState4[0],
|
|
6622
6650
|
handleOpen = _useState4[1];
|
|
@@ -6658,7 +6686,7 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6658
6686
|
|
|
6659
6687
|
var getHyperLink = function getHyperLink() {
|
|
6660
6688
|
if (element.hyperlink || hyperlinks[photoIndex]) {
|
|
6661
|
-
return /*#__PURE__*/
|
|
6689
|
+
return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6662
6690
|
hyperLink: element.hyperlink || hyperlinks[photoIndex]
|
|
6663
6691
|
});
|
|
6664
6692
|
}
|
|
@@ -6683,23 +6711,23 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
6683
6711
|
};
|
|
6684
6712
|
|
|
6685
6713
|
var LoadingScreen = function LoadingScreen() {
|
|
6686
|
-
return /*#__PURE__*/
|
|
6714
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
6687
6715
|
};
|
|
6688
6716
|
|
|
6689
|
-
return /*#__PURE__*/
|
|
6690
|
-
fallback: /*#__PURE__*/
|
|
6691
|
-
}, /*#__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({
|
|
6692
6720
|
wrapperClassName: "arr--image-lightbox",
|
|
6693
6721
|
onCloseRequest: onClose
|
|
6694
6722
|
}, lightboxProps))) : null);
|
|
6695
6723
|
};
|
|
6696
6724
|
FullScreenImages.propTypes = {
|
|
6697
|
-
imageSlug:
|
|
6698
|
-
template:
|
|
6699
|
-
element:
|
|
6700
|
-
"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
|
|
6701
6729
|
}),
|
|
6702
|
-
props:
|
|
6730
|
+
props: PropTypes__default["default"].object
|
|
6703
6731
|
};
|
|
6704
6732
|
|
|
6705
6733
|
var _styleModuleImportMap$9 = {
|
|
@@ -6736,14 +6764,14 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
6736
6764
|
var caption = heroImageCaption || title;
|
|
6737
6765
|
var attribution = heroImageAttribution || imageAttribution;
|
|
6738
6766
|
var updateStyle = caption ? "wrapper" : "";
|
|
6739
|
-
return /*#__PURE__*/
|
|
6767
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6740
6768
|
"data-test-id": "caption",
|
|
6741
6769
|
className: "arr--caption-attribution " + _getClassName("caption ".concat(textColor), _styleModuleImportMap$9)
|
|
6742
|
-
}, /*#__PURE__*/
|
|
6770
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6743
6771
|
dangerouslySetInnerHTML: {
|
|
6744
6772
|
__html: caption
|
|
6745
6773
|
}
|
|
6746
|
-
}), attribution && /*#__PURE__*/
|
|
6774
|
+
}), attribution && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6747
6775
|
"data-test-id": "attribution",
|
|
6748
6776
|
dangerouslySetInnerHTML: {
|
|
6749
6777
|
__html: attribution
|
|
@@ -6752,13 +6780,13 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
6752
6780
|
}));
|
|
6753
6781
|
};
|
|
6754
6782
|
CaptionAttribution.propTypes = {
|
|
6755
|
-
config:
|
|
6756
|
-
theme:
|
|
6783
|
+
config: PropTypes__default["default"].shape({
|
|
6784
|
+
theme: PropTypes__default["default"].string
|
|
6757
6785
|
}),
|
|
6758
6786
|
story: shapeStory,
|
|
6759
|
-
element:
|
|
6760
|
-
"image-attribution":
|
|
6761
|
-
title:
|
|
6787
|
+
element: PropTypes__default["default"].shape({
|
|
6788
|
+
"image-attribution": PropTypes__default["default"].string,
|
|
6789
|
+
title: PropTypes__default["default"].string
|
|
6762
6790
|
})
|
|
6763
6791
|
};
|
|
6764
6792
|
|
|
@@ -6780,14 +6808,14 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6780
6808
|
|
|
6781
6809
|
var ImageTemplate = function ImageTemplate(_ref2) {
|
|
6782
6810
|
var _onClick = _ref2.onClick;
|
|
6783
|
-
return /*#__PURE__*/
|
|
6811
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6784
6812
|
className: "image-m_image-template__3s9OA"
|
|
6785
|
-
}, /*#__PURE__*/
|
|
6813
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
6786
6814
|
className: "image-m_element__KVuzX",
|
|
6787
6815
|
onClick: function onClick() {
|
|
6788
6816
|
return _onClick();
|
|
6789
6817
|
}
|
|
6790
|
-
}, /*#__PURE__*/
|
|
6818
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
6791
6819
|
slug: element["image-s3-key"],
|
|
6792
6820
|
metadata: element["image-metadata"],
|
|
6793
6821
|
alt: element["title"],
|
|
@@ -6797,40 +6825,40 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
6797
6825
|
imgParams: {
|
|
6798
6826
|
auto: ["format", "compress"]
|
|
6799
6827
|
}
|
|
6800
|
-
})), element["hyperlink"] && /*#__PURE__*/
|
|
6828
|
+
})), element["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
6801
6829
|
hyperLink: element["hyperlink"]
|
|
6802
6830
|
}));
|
|
6803
6831
|
};
|
|
6804
6832
|
|
|
6805
6833
|
ImageTemplate.propTypes = {
|
|
6806
|
-
onClick:
|
|
6834
|
+
onClick: PropTypes__default["default"].func
|
|
6807
6835
|
};
|
|
6808
|
-
return /*#__PURE__*/
|
|
6836
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6809
6837
|
className: "arrow-component arr--image-element"
|
|
6810
6838
|
}, restProps, {
|
|
6811
6839
|
"data-test-id": "image-element"
|
|
6812
|
-
}), /*#__PURE__*/
|
|
6840
|
+
}), /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
6813
6841
|
template: ImageTemplate,
|
|
6814
6842
|
element: element,
|
|
6815
6843
|
imageSlug: element["image-s3-key"],
|
|
6816
6844
|
story: story
|
|
6817
|
-
}), caption && /*#__PURE__*/
|
|
6845
|
+
}), caption && /*#__PURE__*/React__default["default"].createElement(CaptionAttribution, {
|
|
6818
6846
|
element: element,
|
|
6819
6847
|
config: configData
|
|
6820
6848
|
}));
|
|
6821
6849
|
};
|
|
6822
6850
|
|
|
6823
6851
|
ImageBase.propTypes = {
|
|
6824
|
-
element:
|
|
6825
|
-
"image-s3-key":
|
|
6826
|
-
"image-metadata":
|
|
6827
|
-
"image-attribution":
|
|
6828
|
-
title:
|
|
6829
|
-
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
|
|
6830
6858
|
}),
|
|
6831
|
-
caption:
|
|
6832
|
-
opts:
|
|
6833
|
-
imageWidths:
|
|
6859
|
+
caption: PropTypes__default["default"].bool,
|
|
6860
|
+
opts: PropTypes__default["default"].shape({
|
|
6861
|
+
imageWidths: PropTypes__default["default"].array
|
|
6834
6862
|
}),
|
|
6835
6863
|
story: shapeStory,
|
|
6836
6864
|
config: shapeConfig
|
|
@@ -6923,14 +6951,14 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6923
6951
|
var isAuthorImageTemplate = template === "withAuthorImage";
|
|
6924
6952
|
var templateStyle = isAuthorImageTemplate ? "qa-withAuthorImage" : "qa-default";
|
|
6925
6953
|
var iconType = defaultIconType === "curve" ? "curveIcon" : "edgeIcon";
|
|
6926
|
-
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", {
|
|
6927
6955
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6928
|
-
}, /*#__PURE__*/
|
|
6956
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6929
6957
|
src: questionAttribution,
|
|
6930
6958
|
loading: "lazy"
|
|
6931
|
-
})), /*#__PURE__*/
|
|
6959
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6932
6960
|
className: "question-answer-m_hidden__K0n4n"
|
|
6933
|
-
})) : /*#__PURE__*/
|
|
6961
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6934
6962
|
"data-test-id": iconType,
|
|
6935
6963
|
style: {
|
|
6936
6964
|
backgroundColor: iconColor
|
|
@@ -6938,36 +6966,36 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6938
6966
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6939
6967
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
6940
6968
|
|
|
6941
|
-
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", {
|
|
6942
6970
|
className: "question-answer-m_labelAttribution__Rq-v3"
|
|
6943
|
-
}, /*#__PURE__*/
|
|
6971
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6944
6972
|
src: answerAttribution,
|
|
6945
6973
|
loading: "lazy"
|
|
6946
|
-
})), /*#__PURE__*/
|
|
6974
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6947
6975
|
className: "question-answer-m_hidden__K0n4n"
|
|
6948
|
-
})) : /*#__PURE__*/
|
|
6976
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6949
6977
|
"data-test-id": iconType,
|
|
6950
6978
|
style: {
|
|
6951
6979
|
backgroundColor: iconColor
|
|
6952
6980
|
},
|
|
6953
6981
|
className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap$8)
|
|
6954
6982
|
}, "A");
|
|
6955
|
-
return /*#__PURE__*/
|
|
6983
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
6956
6984
|
"data-test-id": "question-answer"
|
|
6957
6985
|
}, restProps, {
|
|
6958
6986
|
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap$8) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6959
|
-
}), type !== "answer" && /*#__PURE__*/
|
|
6987
|
+
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6960
6988
|
className: "question-answer-m_q-element__1ZA5d",
|
|
6961
6989
|
"data-test-id": "question"
|
|
6962
|
-
}, supportQuestionElement, /*#__PURE__*/
|
|
6990
|
+
}, supportQuestionElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6963
6991
|
dangerouslySetInnerHTML: {
|
|
6964
6992
|
__html: questionData
|
|
6965
6993
|
},
|
|
6966
6994
|
className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap$8)
|
|
6967
|
-
})), type !== "question" && /*#__PURE__*/
|
|
6995
|
+
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6968
6996
|
className: "question-answer-m_a-element__BTxfl",
|
|
6969
6997
|
"data-test-id": "answer"
|
|
6970
|
-
}, supportAnswerElement, /*#__PURE__*/
|
|
6998
|
+
}, supportAnswerElement, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6971
6999
|
dangerouslySetInnerHTML: {
|
|
6972
7000
|
__html: answerData
|
|
6973
7001
|
},
|
|
@@ -6976,29 +7004,29 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
6976
7004
|
};
|
|
6977
7005
|
|
|
6978
7006
|
QuestionAnswerBase.propTypes = {
|
|
6979
|
-
element:
|
|
6980
|
-
metadata:
|
|
6981
|
-
interviewer:
|
|
6982
|
-
"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
|
|
6983
7011
|
}),
|
|
6984
|
-
interviewee:
|
|
6985
|
-
"avatar-url":
|
|
7012
|
+
interviewee: PropTypes__default["default"].shape({
|
|
7013
|
+
"avatar-url": PropTypes__default["default"].string
|
|
6986
7014
|
}),
|
|
6987
|
-
question:
|
|
6988
|
-
answer:
|
|
7015
|
+
question: PropTypes__default["default"].string,
|
|
7016
|
+
answer: PropTypes__default["default"].string
|
|
6989
7017
|
}),
|
|
6990
|
-
text:
|
|
7018
|
+
text: PropTypes__default["default"].string
|
|
6991
7019
|
}),
|
|
6992
|
-
opts:
|
|
6993
|
-
type:
|
|
6994
|
-
defaultIconType:
|
|
6995
|
-
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
|
|
6996
7024
|
}),
|
|
6997
|
-
template:
|
|
6998
|
-
css:
|
|
7025
|
+
template: PropTypes__default["default"].string,
|
|
7026
|
+
css: PropTypes__default["default"].object,
|
|
6999
7027
|
config: shapeConfig,
|
|
7000
7028
|
story: shapeStory,
|
|
7001
|
-
render:
|
|
7029
|
+
render: PropTypes__default["default"].func
|
|
7002
7030
|
};
|
|
7003
7031
|
var QuestionAnswer = withElementWrapper(QuestionAnswerBase);
|
|
7004
7032
|
|
|
@@ -7040,17 +7068,17 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7040
7068
|
var ImageGalleryImagesTemplate = function ImageGalleryImagesTemplate(_ref2) {
|
|
7041
7069
|
var onClickHandler = _ref2.onClickHandler;
|
|
7042
7070
|
var images = renderImage.map(function (image, index) {
|
|
7043
|
-
return /*#__PURE__*/
|
|
7071
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7044
7072
|
key: index,
|
|
7045
7073
|
className: _getClassName(hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$7)
|
|
7046
|
-
}, /*#__PURE__*/
|
|
7074
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7047
7075
|
key: index,
|
|
7048
7076
|
"data-text-id": "image-".concat(index),
|
|
7049
7077
|
onClick: function onClick() {
|
|
7050
7078
|
return onClickHandler && onClickHandler(index);
|
|
7051
7079
|
},
|
|
7052
7080
|
className: _getClassName("image ".concat(classes), _styleModuleImportMap$7)
|
|
7053
|
-
}, /*#__PURE__*/
|
|
7081
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7054
7082
|
slug: image["image-s3-key"],
|
|
7055
7083
|
metadata: image["image-metadata"],
|
|
7056
7084
|
alt: image["title"],
|
|
@@ -7059,11 +7087,11 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7059
7087
|
imgParams: {
|
|
7060
7088
|
auto: ["format", "compress"]
|
|
7061
7089
|
}
|
|
7062
|
-
})), image["hyperlink"] && /*#__PURE__*/
|
|
7090
|
+
})), image["hyperlink"] && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7063
7091
|
hyperLink: image["hyperlink"]
|
|
7064
7092
|
}));
|
|
7065
7093
|
});
|
|
7066
|
-
return /*#__PURE__*/
|
|
7094
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7067
7095
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
7068
7096
|
}, restProps, {
|
|
7069
7097
|
"data-test-id": "image-gallery"
|
|
@@ -7071,24 +7099,24 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
7071
7099
|
};
|
|
7072
7100
|
|
|
7073
7101
|
ImageGalleryImagesTemplate.propTypes = {
|
|
7074
|
-
onClickHandler:
|
|
7102
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7075
7103
|
};
|
|
7076
|
-
return /*#__PURE__*/
|
|
7104
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7077
7105
|
template: ImageGalleryImagesTemplate,
|
|
7078
7106
|
element: element
|
|
7079
7107
|
});
|
|
7080
7108
|
};
|
|
7081
7109
|
|
|
7082
7110
|
ImageGalleryBase.propTypes = {
|
|
7083
|
-
element:
|
|
7084
|
-
"story-elements":
|
|
7111
|
+
element: PropTypes__default["default"].shape({
|
|
7112
|
+
"story-elements": PropTypes__default["default"].array
|
|
7085
7113
|
}),
|
|
7086
|
-
opts:
|
|
7087
|
-
imageWidths:
|
|
7114
|
+
opts: PropTypes__default["default"].shape({
|
|
7115
|
+
imageWidths: PropTypes__default["default"].array
|
|
7088
7116
|
}),
|
|
7089
7117
|
story: shapeStory,
|
|
7090
7118
|
config: shapeConfig,
|
|
7091
|
-
template:
|
|
7119
|
+
template: PropTypes__default["default"].string
|
|
7092
7120
|
};
|
|
7093
7121
|
var ImageGallery = withElementWrapper(ImageGalleryBase);
|
|
7094
7122
|
|
|
@@ -7100,16 +7128,16 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
7100
7128
|
_ref.config;
|
|
7101
7129
|
var restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
7102
7130
|
|
|
7103
|
-
return /*#__PURE__*/
|
|
7131
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, restProps, {
|
|
7104
7132
|
"data-test-id": "story-elements"
|
|
7105
|
-
}), /*#__PURE__*/
|
|
7133
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
7106
7134
|
element: element
|
|
7107
7135
|
}));
|
|
7108
7136
|
};
|
|
7109
7137
|
|
|
7110
7138
|
var StoryElement = withElementWrapper(StoryElementBase);
|
|
7111
7139
|
StoryElementBase.propTypes = {
|
|
7112
|
-
element:
|
|
7140
|
+
element: PropTypes__default["default"].object,
|
|
7113
7141
|
story: shapeStory,
|
|
7114
7142
|
config: shapeConfig
|
|
7115
7143
|
};
|
|
@@ -7151,16 +7179,16 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7151
7179
|
var borderColor = css.borderColor;
|
|
7152
7180
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
7153
7181
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
7154
|
-
return /*#__PURE__*/
|
|
7182
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7155
7183
|
"data-test-id": "quote"
|
|
7156
7184
|
}, restProps, {
|
|
7157
7185
|
className: "arrow-component arr--quote-element " + _getClassName(templateStyle, _styleModuleImportMap$6) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7158
|
-
}), template === "borderTopSmall" && /*#__PURE__*/
|
|
7186
|
+
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7159
7187
|
className: "quote-m_line__3gtoE",
|
|
7160
7188
|
style: borderColor && {
|
|
7161
7189
|
backgroundColor: borderColor
|
|
7162
7190
|
}
|
|
7163
|
-
}), /*#__PURE__*/
|
|
7191
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7164
7192
|
style: borderColor && {
|
|
7165
7193
|
borderLeft: updateBorderColor
|
|
7166
7194
|
},
|
|
@@ -7168,26 +7196,26 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
7168
7196
|
__html: content
|
|
7169
7197
|
},
|
|
7170
7198
|
className: _getClassName("text ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7171
|
-
}), /*#__PURE__*/
|
|
7199
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7172
7200
|
"data-test-id": "quote-attribution",
|
|
7173
7201
|
className: _getClassName("attribution ".concat(textInvertColor), _styleModuleImportMap$6)
|
|
7174
7202
|
}, attribution));
|
|
7175
7203
|
};
|
|
7176
7204
|
|
|
7177
7205
|
QuoteBase.propTypes = {
|
|
7178
|
-
element:
|
|
7179
|
-
metadata:
|
|
7180
|
-
content:
|
|
7181
|
-
attribution:
|
|
7206
|
+
element: PropTypes__default["default"].shape({
|
|
7207
|
+
metadata: PropTypes__default["default"].shape({
|
|
7208
|
+
content: PropTypes__default["default"].string,
|
|
7209
|
+
attribution: PropTypes__default["default"].string
|
|
7182
7210
|
})
|
|
7183
7211
|
}),
|
|
7184
7212
|
|
|
7185
7213
|
/** template can be default, borderTopSmall and borderLeft */
|
|
7186
|
-
template:
|
|
7214
|
+
template: PropTypes__default["default"].string,
|
|
7187
7215
|
story: shapeStory,
|
|
7188
7216
|
config: shapeConfig,
|
|
7189
|
-
render:
|
|
7190
|
-
css:
|
|
7217
|
+
render: PropTypes__default["default"].func,
|
|
7218
|
+
css: PropTypes__default["default"].object
|
|
7191
7219
|
};
|
|
7192
7220
|
var Quote = withElementWrapper(QuoteBase);
|
|
7193
7221
|
|
|
@@ -7221,7 +7249,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7221
7249
|
var _opts$showHeadline = opts.showHeadline,
|
|
7222
7250
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
7223
7251
|
headlineText = opts.headlineText;
|
|
7224
|
-
return /*#__PURE__*/
|
|
7252
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7225
7253
|
className: "arrow-component arr--reference-element"
|
|
7226
7254
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
7227
7255
|
var _metadata$name = metadata.name,
|
|
@@ -7229,33 +7257,33 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
7229
7257
|
_metadata$description = metadata.description,
|
|
7230
7258
|
description = _metadata$description === void 0 ? "" : _metadata$description,
|
|
7231
7259
|
url = metadata.url;
|
|
7232
|
-
return /*#__PURE__*/
|
|
7260
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7233
7261
|
key: index,
|
|
7234
7262
|
className: _getClassName("wrapper ".concat(textInvertColor), _styleModuleImportMap$5)
|
|
7235
|
-
}, /*#__PURE__*/
|
|
7263
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7236
7264
|
href: url,
|
|
7237
7265
|
"aria-label": "reference-headline"
|
|
7238
|
-
}, showHeadline && /*#__PURE__*/
|
|
7266
|
+
}, showHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7239
7267
|
className: "reference-m_name__24IwG",
|
|
7240
7268
|
"data-test-id": "ref-headline"
|
|
7241
|
-
}, headlineText || name), /*#__PURE__*/
|
|
7269
|
+
}, headlineText || name), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7242
7270
|
className: "reference-m_description__2x3Io"
|
|
7243
7271
|
}, description)));
|
|
7244
7272
|
}));
|
|
7245
7273
|
};
|
|
7246
7274
|
|
|
7247
7275
|
ReferenceBase.propTypes = {
|
|
7248
|
-
element:
|
|
7249
|
-
"story-elements":
|
|
7250
|
-
metadata:
|
|
7251
|
-
name:
|
|
7252
|
-
description:
|
|
7253
|
-
url:
|
|
7276
|
+
element: PropTypes__default["default"].shape({
|
|
7277
|
+
"story-elements": PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
7278
|
+
metadata: PropTypes__default["default"].shape({
|
|
7279
|
+
name: PropTypes__default["default"].string,
|
|
7280
|
+
description: PropTypes__default["default"].string,
|
|
7281
|
+
url: PropTypes__default["default"].string
|
|
7254
7282
|
})
|
|
7255
7283
|
}))
|
|
7256
7284
|
}),
|
|
7257
|
-
opts:
|
|
7258
|
-
hideHeadline:
|
|
7285
|
+
opts: PropTypes__default["default"].shape({
|
|
7286
|
+
hideHeadline: PropTypes__default["default"].bool
|
|
7259
7287
|
}),
|
|
7260
7288
|
config: shapeConfig
|
|
7261
7289
|
};
|
|
@@ -7297,28 +7325,28 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7297
7325
|
var textColor = getTextColor(configData.theme);
|
|
7298
7326
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
7299
7327
|
var defaultFileName = fileName || defaultName;
|
|
7300
|
-
return /*#__PURE__*/
|
|
7328
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
7301
7329
|
"data-test-id": "attachment"
|
|
7302
7330
|
}, restProps, {
|
|
7303
7331
|
className: "arrow-component arr--attachment-element " + _getClassName(textColor, _styleModuleImportMap$4) + (" " + (restProps ? restProps.className || "" : ""))
|
|
7304
|
-
}), /*#__PURE__*/
|
|
7332
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7305
7333
|
className: "attachment-m_headline__kP7Hs"
|
|
7306
|
-
}, "Attachment"), /*#__PURE__*/
|
|
7334
|
+
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7307
7335
|
className: "attachment-m_wrapper__3gMwN"
|
|
7308
|
-
}, isPdf ? /*#__PURE__*/
|
|
7336
|
+
}, isPdf ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7309
7337
|
"data-test-id": "pdf",
|
|
7310
7338
|
className: "attachment-m_pdf__3i_bR"
|
|
7311
|
-
}, "PDF") : /*#__PURE__*/
|
|
7339
|
+
}, "PDF") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7312
7340
|
"data-test-id": "doc",
|
|
7313
7341
|
className: "attachment-m_doc__6vUVo attachment-m_pdf__3i_bR"
|
|
7314
|
-
}, "DOC"), /*#__PURE__*/
|
|
7342
|
+
}, "DOC"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7315
7343
|
className: "attachment-m_content-wrapper__3Yu0B"
|
|
7316
|
-
}, /*#__PURE__*/
|
|
7344
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7317
7345
|
className: "attachment-m_file-name__1LU9q",
|
|
7318
7346
|
dangerouslySetInnerHTML: {
|
|
7319
7347
|
__html: defaultFileName
|
|
7320
7348
|
}
|
|
7321
|
-
}), /*#__PURE__*/
|
|
7349
|
+
}), /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7322
7350
|
className: "attachment-m_button-wrapper__2fajK",
|
|
7323
7351
|
href: url,
|
|
7324
7352
|
target: "_blank",
|
|
@@ -7329,59 +7357,59 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
7329
7357
|
};
|
|
7330
7358
|
|
|
7331
7359
|
AttachmentBase.propTypes = {
|
|
7332
|
-
element:
|
|
7333
|
-
url:
|
|
7334
|
-
fileName:
|
|
7335
|
-
contentType:
|
|
7360
|
+
element: PropTypes__default["default"].shape({
|
|
7361
|
+
url: PropTypes__default["default"].string,
|
|
7362
|
+
fileName: PropTypes__default["default"].string,
|
|
7363
|
+
contentType: PropTypes__default["default"].string
|
|
7336
7364
|
}),
|
|
7337
|
-
render:
|
|
7365
|
+
render: PropTypes__default["default"].func
|
|
7338
7366
|
};
|
|
7339
7367
|
var Attachment = withElementWrapper(AttachmentBase);
|
|
7340
7368
|
|
|
7341
7369
|
var LeftArrow = function LeftArrow(_ref) {
|
|
7342
7370
|
var _ref$color = _ref.color,
|
|
7343
7371
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7344
|
-
return /*#__PURE__*/
|
|
7372
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7345
7373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7346
7374
|
width: "16",
|
|
7347
7375
|
height: "16",
|
|
7348
7376
|
viewBox: "0 0 10 16"
|
|
7349
|
-
}, /*#__PURE__*/
|
|
7377
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7350
7378
|
fill: "none",
|
|
7351
7379
|
fillRule: "nonzero"
|
|
7352
|
-
}, /*#__PURE__*/
|
|
7380
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7353
7381
|
d: "M17 20H-7V-4h24z",
|
|
7354
7382
|
opacity: ".384"
|
|
7355
|
-
}), /*#__PURE__*/
|
|
7383
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7356
7384
|
stroke: color,
|
|
7357
7385
|
d: "M9 16L1 8l8-8"
|
|
7358
7386
|
})));
|
|
7359
7387
|
};
|
|
7360
7388
|
LeftArrow.propTypes = {
|
|
7361
|
-
color:
|
|
7389
|
+
color: PropTypes__default["default"].string
|
|
7362
7390
|
};
|
|
7363
7391
|
|
|
7364
7392
|
var RightArrow = function RightArrow(_ref) {
|
|
7365
7393
|
var _ref$color = _ref.color,
|
|
7366
7394
|
color = _ref$color === void 0 ? "#333" : _ref$color;
|
|
7367
|
-
return /*#__PURE__*/
|
|
7395
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7368
7396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7369
7397
|
width: "16",
|
|
7370
7398
|
height: "16",
|
|
7371
7399
|
viewBox: "0 0 10 16"
|
|
7372
|
-
}, /*#__PURE__*/
|
|
7400
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
7373
7401
|
fill: "none",
|
|
7374
7402
|
fillRule: "nonzero"
|
|
7375
|
-
}, /*#__PURE__*/
|
|
7403
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7376
7404
|
d: "M-7-4h24v24H-7z",
|
|
7377
7405
|
opacity: ".384"
|
|
7378
|
-
}), /*#__PURE__*/
|
|
7406
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
7379
7407
|
stroke: color,
|
|
7380
7408
|
d: "M1 0l8 8-8 8"
|
|
7381
7409
|
})));
|
|
7382
7410
|
};
|
|
7383
7411
|
RightArrow.propTypes = {
|
|
7384
|
-
color:
|
|
7412
|
+
color: PropTypes__default["default"].string
|
|
7385
7413
|
};
|
|
7386
7414
|
|
|
7387
7415
|
var _styleModuleImportMap$3 = {
|
|
@@ -7419,26 +7447,26 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
7419
7447
|
|
|
7420
7448
|
var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
|
|
7421
7449
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
7422
|
-
return /*#__PURE__*/
|
|
7450
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7423
7451
|
onClick: previousClick,
|
|
7424
7452
|
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$3)
|
|
7425
|
-
}, /*#__PURE__*/
|
|
7453
|
+
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
7426
7454
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7427
|
-
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/
|
|
7455
|
+
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7428
7456
|
onClick: nextClick,
|
|
7429
7457
|
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$3)
|
|
7430
|
-
}, /*#__PURE__*/
|
|
7458
|
+
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
7431
7459
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
7432
7460
|
})) : null);
|
|
7433
7461
|
};
|
|
7434
7462
|
SliderArrow.propTypes = {
|
|
7435
|
-
noOfItems: number,
|
|
7436
|
-
perView: number,
|
|
7437
|
-
slideIndicator: string,
|
|
7438
|
-
previousClick: func,
|
|
7439
|
-
nextClick: func,
|
|
7440
|
-
selectedIndex: number,
|
|
7441
|
-
languageDirection: string
|
|
7463
|
+
noOfItems: PropTypes.number,
|
|
7464
|
+
perView: PropTypes.number,
|
|
7465
|
+
slideIndicator: PropTypes.string,
|
|
7466
|
+
previousClick: PropTypes.func,
|
|
7467
|
+
nextClick: PropTypes.func,
|
|
7468
|
+
selectedIndex: PropTypes.number,
|
|
7469
|
+
languageDirection: PropTypes.string
|
|
7442
7470
|
};
|
|
7443
7471
|
|
|
7444
7472
|
var _styleModuleImportMap$2 = {
|
|
@@ -7466,27 +7494,27 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
7466
7494
|
|
|
7467
7495
|
var config = useStateValue() || {};
|
|
7468
7496
|
var textColor = getTextColor(config.theme);
|
|
7469
|
-
return /*#__PURE__*/
|
|
7497
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
7470
7498
|
className: "slider-indicators slider-indicator-m_indicators__3MNXc"
|
|
7471
7499
|
}, indicatorItems.map(function (_, index) {
|
|
7472
|
-
return /*#__PURE__*/
|
|
7500
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7473
7501
|
key: "slider-".concat(index),
|
|
7474
7502
|
className: "indicator slider-indicator-m_indicator__gTv3x",
|
|
7475
7503
|
onClick: function onClick(e) {
|
|
7476
7504
|
return indicatorClick(e, index);
|
|
7477
7505
|
}
|
|
7478
|
-
}, /*#__PURE__*/
|
|
7506
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7479
7507
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
7480
7508
|
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$2)
|
|
7481
7509
|
}));
|
|
7482
7510
|
}));
|
|
7483
7511
|
};
|
|
7484
7512
|
SliderIndicator.propTypes = {
|
|
7485
|
-
indicatorItems: array,
|
|
7486
|
-
perView: number,
|
|
7487
|
-
indicatorType: string,
|
|
7488
|
-
indicatorClick: func,
|
|
7489
|
-
selectedIndex: number
|
|
7513
|
+
indicatorItems: PropTypes.array,
|
|
7514
|
+
perView: PropTypes.number,
|
|
7515
|
+
indicatorType: PropTypes.string,
|
|
7516
|
+
indicatorClick: PropTypes.func,
|
|
7517
|
+
selectedIndex: PropTypes.number
|
|
7490
7518
|
};
|
|
7491
7519
|
|
|
7492
7520
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
@@ -7521,24 +7549,24 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7521
7549
|
perView = _ref.perView,
|
|
7522
7550
|
slideIndicator = _ref.slideIndicator;
|
|
7523
7551
|
|
|
7524
|
-
var _useState = useState(0),
|
|
7552
|
+
var _useState = React.useState(0),
|
|
7525
7553
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7526
7554
|
selectedIndex = _useState2[0],
|
|
7527
7555
|
setSelectedIndex = _useState2[1];
|
|
7528
7556
|
|
|
7529
|
-
var _useState3 = useState(false),
|
|
7557
|
+
var _useState3 = React.useState(false),
|
|
7530
7558
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7531
7559
|
autoScroll = _useState4[0],
|
|
7532
7560
|
setAutoScroll = _useState4[1];
|
|
7533
7561
|
|
|
7534
|
-
var languageDirection = useSelector(function (state) {
|
|
7562
|
+
var languageDirection = reactRedux.useSelector(function (state) {
|
|
7535
7563
|
return get_1(state, ["qt", "config", "language", "direction"], "ltr");
|
|
7536
7564
|
});
|
|
7537
7565
|
var noOfItems = children ? children.length : 0;
|
|
7538
|
-
var scroller = useRef(null);
|
|
7566
|
+
var scroller = React.useRef(null);
|
|
7539
7567
|
var numberOfIndicatorsToShow = children.length - (perView - 1);
|
|
7540
7568
|
var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
|
|
7541
|
-
useEffect(function () {
|
|
7569
|
+
React.useEffect(function () {
|
|
7542
7570
|
if (scroller.current) {
|
|
7543
7571
|
scroller.current.addEventListener("scroll", setIndicatorValue(function () {
|
|
7544
7572
|
var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
|
|
@@ -7555,7 +7583,7 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7555
7583
|
};
|
|
7556
7584
|
}, []); // Infinite scroll
|
|
7557
7585
|
|
|
7558
|
-
useEffect(function () {
|
|
7586
|
+
React.useEffect(function () {
|
|
7559
7587
|
if (isInfinite && !autoScroll) {
|
|
7560
7588
|
var timer = setInterval(function () {
|
|
7561
7589
|
infiniteScroll();
|
|
@@ -7604,23 +7632,23 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
7604
7632
|
updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
|
|
7605
7633
|
};
|
|
7606
7634
|
|
|
7607
|
-
return /*#__PURE__*/
|
|
7635
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7608
7636
|
className: "scroll-snap-container"
|
|
7609
|
-
}, /*#__PURE__*/
|
|
7637
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7610
7638
|
className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
|
|
7611
7639
|
onMouseEnter: pauseAutoPlay,
|
|
7612
7640
|
onMouseLeave: pauseAutoPlay
|
|
7613
|
-
}, /*#__PURE__*/
|
|
7641
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7614
7642
|
ref: scroller,
|
|
7615
7643
|
className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
|
|
7616
|
-
}, children), isArrow && /*#__PURE__*/
|
|
7644
|
+
}, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
|
|
7617
7645
|
noOfItems: noOfItems,
|
|
7618
7646
|
perView: perView,
|
|
7619
7647
|
previousClick: previousClick,
|
|
7620
7648
|
nextClick: nextClick,
|
|
7621
7649
|
selectedIndex: selectedIndex,
|
|
7622
7650
|
languageDirection: languageDirection
|
|
7623
|
-
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/
|
|
7651
|
+
})), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
|
|
7624
7652
|
indicatorItems: indicatorItems,
|
|
7625
7653
|
indicatorClick: indicatorClick,
|
|
7626
7654
|
selectedIndex: selectedIndex,
|
|
@@ -7636,13 +7664,13 @@ ScrollSnap.defaultProps = {
|
|
|
7636
7664
|
slideIndicator: "dots"
|
|
7637
7665
|
};
|
|
7638
7666
|
ScrollSnap.propTypes = {
|
|
7639
|
-
children: array.isRequired,
|
|
7640
|
-
isArrow: bool,
|
|
7641
|
-
isInfinite: bool,
|
|
7642
|
-
interval: number,
|
|
7643
|
-
pauseOnHover: bool,
|
|
7644
|
-
perView: number,
|
|
7645
|
-
slideIndicator: string
|
|
7667
|
+
children: PropTypes.array.isRequired,
|
|
7668
|
+
isArrow: PropTypes.bool,
|
|
7669
|
+
isInfinite: PropTypes.bool,
|
|
7670
|
+
interval: PropTypes.number,
|
|
7671
|
+
pauseOnHover: PropTypes.bool,
|
|
7672
|
+
perView: PropTypes.number,
|
|
7673
|
+
slideIndicator: PropTypes.string
|
|
7646
7674
|
};
|
|
7647
7675
|
|
|
7648
7676
|
var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
@@ -7655,18 +7683,18 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7655
7683
|
title = image.title,
|
|
7656
7684
|
_image$hyperlink = image.hyperlink,
|
|
7657
7685
|
hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
|
|
7658
|
-
return /*#__PURE__*/
|
|
7686
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7659
7687
|
className: "image-slideshow-m_slide__3URCC",
|
|
7660
7688
|
key: id
|
|
7661
|
-
}, /*#__PURE__*/
|
|
7689
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
7662
7690
|
key: id,
|
|
7663
7691
|
className: "image-slideshow-m_image-container__2VTEK",
|
|
7664
7692
|
onClick: function onClick() {
|
|
7665
7693
|
return onClickHandler(index);
|
|
7666
7694
|
}
|
|
7667
|
-
}, /*#__PURE__*/
|
|
7695
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
|
|
7668
7696
|
margin: "0px"
|
|
7669
|
-
}, /*#__PURE__*/
|
|
7697
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7670
7698
|
slug: imageS3Key,
|
|
7671
7699
|
metadata: metadata,
|
|
7672
7700
|
"aspect-ratio": [16, 9],
|
|
@@ -7677,9 +7705,9 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7677
7705
|
},
|
|
7678
7706
|
className: "image-slideshow-m_image__1p1fO",
|
|
7679
7707
|
alt: title
|
|
7680
|
-
}))), hyperlink && /*#__PURE__*/
|
|
7708
|
+
}))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
|
|
7681
7709
|
hyperLink: hyperlink
|
|
7682
|
-
}), /*#__PURE__*/
|
|
7710
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7683
7711
|
className: "image-slideshow-m_caption__mWpmc",
|
|
7684
7712
|
dangerouslySetInnerHTML: {
|
|
7685
7713
|
__html: title
|
|
@@ -7690,10 +7718,10 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7690
7718
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
7691
7719
|
var onClickHandler = _ref.onClickHandler;
|
|
7692
7720
|
var storyElements = get_1(props, ["element", "story-elements"], []);
|
|
7693
|
-
return /*#__PURE__*/
|
|
7721
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7694
7722
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
7695
7723
|
"data-test-id": "image-slideshow"
|
|
7696
|
-
}, /*#__PURE__*/
|
|
7724
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
|
|
7697
7725
|
slideIndicator: "none"
|
|
7698
7726
|
}, storyElements.map(function (image, index) {
|
|
7699
7727
|
return Slide(image, index, onClickHandler);
|
|
@@ -7701,17 +7729,17 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
7701
7729
|
};
|
|
7702
7730
|
|
|
7703
7731
|
ImageSlideshowTemplate.propTypes = {
|
|
7704
|
-
onClickHandler:
|
|
7732
|
+
onClickHandler: PropTypes__default["default"].func
|
|
7705
7733
|
};
|
|
7706
|
-
return /*#__PURE__*/
|
|
7734
|
+
return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
|
|
7707
7735
|
template: ImageSlideshowTemplate,
|
|
7708
7736
|
element: props.element
|
|
7709
7737
|
});
|
|
7710
7738
|
};
|
|
7711
7739
|
|
|
7712
7740
|
ImageSlideshowBase.propTypes = {
|
|
7713
|
-
element:
|
|
7714
|
-
"story-elements":
|
|
7741
|
+
element: PropTypes__default["default"].shape({
|
|
7742
|
+
"story-elements": PropTypes__default["default"].array
|
|
7715
7743
|
}),
|
|
7716
7744
|
story: shapeStory
|
|
7717
7745
|
};
|
|
@@ -7769,12 +7797,12 @@ var getElement = function getElement(story, element) {
|
|
|
7769
7797
|
|
|
7770
7798
|
switch (elementType) {
|
|
7771
7799
|
case "ad":
|
|
7772
|
-
return /*#__PURE__*/
|
|
7800
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
7773
7801
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
7774
7802
|
}));
|
|
7775
7803
|
|
|
7776
7804
|
case "widget":
|
|
7777
|
-
return /*#__PURE__*/
|
|
7805
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
7778
7806
|
widgetCode: element.config.customCode,
|
|
7779
7807
|
id: "widget-".concat(index, "_").concat(cardId)
|
|
7780
7808
|
});
|
|
@@ -7787,7 +7815,7 @@ var getElement = function getElement(story, element) {
|
|
|
7787
7815
|
textElementColor = _text$css$textColor === void 0 ? "#000" : _text$css$textColor,
|
|
7788
7816
|
_text$css$hyperlinkCo = _text$css.hyperlinkColor,
|
|
7789
7817
|
hyperlinkColor = _text$css$hyperlinkCo === void 0 ? "#2f81cd" : _text$css$hyperlinkCo;
|
|
7790
|
-
return /*#__PURE__*/
|
|
7818
|
+
return /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
7791
7819
|
element: element,
|
|
7792
7820
|
css: {
|
|
7793
7821
|
textColor: textElementColor,
|
|
@@ -7808,7 +7836,7 @@ var getElement = function getElement(story, element) {
|
|
|
7808
7836
|
headline = _summary$opts$headlin === void 0 ? "" : _summary$opts$headlin,
|
|
7809
7837
|
_summary$opts$hideHea = _summary$opts.hideHeadline,
|
|
7810
7838
|
hideHeadline = _summary$opts$hideHea === void 0 ? false : _summary$opts$hideHea;
|
|
7811
|
-
return /*#__PURE__*/
|
|
7839
|
+
return /*#__PURE__*/React__default["default"].createElement(Summary, {
|
|
7812
7840
|
element: element,
|
|
7813
7841
|
template: summaryTemplate,
|
|
7814
7842
|
opts: {
|
|
@@ -7827,7 +7855,7 @@ var getElement = function getElement(story, element) {
|
|
|
7827
7855
|
_blurb$css = _blurb$css === void 0 ? {} : _blurb$css;
|
|
7828
7856
|
var _blurb$css$borderColo = _blurb$css.borderColor,
|
|
7829
7857
|
borderColor = _blurb$css$borderColo === void 0 ? "#2f81cd" : _blurb$css$borderColo;
|
|
7830
|
-
return /*#__PURE__*/
|
|
7858
|
+
return /*#__PURE__*/React__default["default"].createElement(Blurb, {
|
|
7831
7859
|
element: element,
|
|
7832
7860
|
template: blurbTemplate,
|
|
7833
7861
|
css: {
|
|
@@ -7846,7 +7874,7 @@ var getElement = function getElement(story, element) {
|
|
|
7846
7874
|
blockQuoteColor = _blockquote$css$block === void 0 ? "#2f81cd" : _blockquote$css$block,
|
|
7847
7875
|
_blockquote$css$backg = _blockquote$css.backgroundShade,
|
|
7848
7876
|
backgroundShade = _blockquote$css$backg === void 0 ? "" : _blockquote$css$backg;
|
|
7849
|
-
return /*#__PURE__*/
|
|
7877
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockQuote, {
|
|
7850
7878
|
element: element,
|
|
7851
7879
|
template: blockQuoteTemplate,
|
|
7852
7880
|
css: {
|
|
@@ -7863,7 +7891,7 @@ var getElement = function getElement(story, element) {
|
|
|
7863
7891
|
_quote$css = _quote$css === void 0 ? {} : _quote$css;
|
|
7864
7892
|
var _quote$css$borderColo = _quote$css.borderColor,
|
|
7865
7893
|
quoteBorderColor = _quote$css$borderColo === void 0 ? "#2f81cd" : _quote$css$borderColo;
|
|
7866
|
-
return /*#__PURE__*/
|
|
7894
|
+
return /*#__PURE__*/React__default["default"].createElement(Quote, {
|
|
7867
7895
|
element: element,
|
|
7868
7896
|
template: quoteTemplate,
|
|
7869
7897
|
css: {
|
|
@@ -7872,7 +7900,7 @@ var getElement = function getElement(story, element) {
|
|
|
7872
7900
|
});
|
|
7873
7901
|
|
|
7874
7902
|
case "bigfact":
|
|
7875
|
-
return /*#__PURE__*/
|
|
7903
|
+
return /*#__PURE__*/React__default["default"].createElement(BigFact, {
|
|
7876
7904
|
element: element
|
|
7877
7905
|
});
|
|
7878
7906
|
|
|
@@ -7887,7 +7915,7 @@ var getElement = function getElement(story, element) {
|
|
|
7887
7915
|
_alsoRead$opts = _alsoRead$opts === void 0 ? {} : _alsoRead$opts;
|
|
7888
7916
|
var _alsoRead$opts$title = _alsoRead$opts.title,
|
|
7889
7917
|
title = _alsoRead$opts$title === void 0 ? "" : _alsoRead$opts$title;
|
|
7890
|
-
return /*#__PURE__*/
|
|
7918
|
+
return /*#__PURE__*/React__default["default"].createElement(AlsoRead, {
|
|
7891
7919
|
story: story,
|
|
7892
7920
|
element: element,
|
|
7893
7921
|
template: alsoReadTemplate,
|
|
@@ -7900,7 +7928,7 @@ var getElement = function getElement(story, element) {
|
|
|
7900
7928
|
});
|
|
7901
7929
|
|
|
7902
7930
|
case "image":
|
|
7903
|
-
return /*#__PURE__*/
|
|
7931
|
+
return /*#__PURE__*/React__default["default"].createElement(Image, {
|
|
7904
7932
|
element: element
|
|
7905
7933
|
});
|
|
7906
7934
|
|
|
@@ -7915,7 +7943,7 @@ var getElement = function getElement(story, element) {
|
|
|
7915
7943
|
_qaElement$opts = _qaElement$opts === void 0 ? {} : _qaElement$opts;
|
|
7916
7944
|
var _qaElement$opts$defau = _qaElement$opts.defaultIconType,
|
|
7917
7945
|
defaultIconType = _qaElement$opts$defau === void 0 ? "edge" : _qaElement$opts$defau;
|
|
7918
|
-
return /*#__PURE__*/
|
|
7946
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7919
7947
|
element: element,
|
|
7920
7948
|
opts: {
|
|
7921
7949
|
type: "q-and-a",
|
|
@@ -7938,7 +7966,7 @@ var getElement = function getElement(story, element) {
|
|
|
7938
7966
|
_questionElement$opts = _questionElement$opts === void 0 ? {} : _questionElement$opts;
|
|
7939
7967
|
var _questionElement$opts2 = _questionElement$opts.defaultQuestionIconType,
|
|
7940
7968
|
defaultQuestionIconType = _questionElement$opts2 === void 0 ? "edge" : _questionElement$opts2;
|
|
7941
|
-
return /*#__PURE__*/
|
|
7969
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7942
7970
|
element: element,
|
|
7943
7971
|
opts: {
|
|
7944
7972
|
type: "question",
|
|
@@ -7961,7 +7989,7 @@ var getElement = function getElement(story, element) {
|
|
|
7961
7989
|
_answerElement$opts = _answerElement$opts === void 0 ? {} : _answerElement$opts;
|
|
7962
7990
|
var _answerElement$opts$d = _answerElement$opts.defaultAnswerIconType,
|
|
7963
7991
|
defaultAnswerIconType = _answerElement$opts$d === void 0 ? "edge" : _answerElement$opts$d;
|
|
7964
|
-
return /*#__PURE__*/
|
|
7992
|
+
return /*#__PURE__*/React__default["default"].createElement(QuestionAnswer, {
|
|
7965
7993
|
element: element,
|
|
7966
7994
|
opts: {
|
|
7967
7995
|
type: "answer",
|
|
@@ -7974,43 +8002,43 @@ var getElement = function getElement(story, element) {
|
|
|
7974
8002
|
});
|
|
7975
8003
|
|
|
7976
8004
|
case "gallery":
|
|
7977
|
-
return /*#__PURE__*/
|
|
8005
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7978
8006
|
className: "content-style",
|
|
7979
8007
|
id: "image-gallery-".concat(storyElementId)
|
|
7980
|
-
}, /*#__PURE__*/
|
|
8008
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageGallery, {
|
|
7981
8009
|
element: element
|
|
7982
8010
|
}));
|
|
7983
8011
|
|
|
7984
8012
|
case "slideshow":
|
|
7985
|
-
return /*#__PURE__*/
|
|
8013
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7986
8014
|
className: "content-style",
|
|
7987
8015
|
id: "image-slideshow-".concat(storyElementId)
|
|
7988
|
-
}, /*#__PURE__*/
|
|
8016
|
+
}, /*#__PURE__*/React__default["default"].createElement(ImageSlideshow, {
|
|
7989
8017
|
element: element
|
|
7990
8018
|
}));
|
|
7991
8019
|
|
|
7992
8020
|
case "youtube-video":
|
|
7993
8021
|
case "dailymotion-video":
|
|
7994
|
-
return /*#__PURE__*/
|
|
8022
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7995
8023
|
className: "content-style",
|
|
7996
8024
|
id: "video-".concat(storyElementId)
|
|
7997
|
-
}, /*#__PURE__*/
|
|
8025
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
7998
8026
|
element: element,
|
|
7999
8027
|
story: story,
|
|
8000
8028
|
loadIframeOnClick: true
|
|
8001
8029
|
}));
|
|
8002
8030
|
|
|
8003
8031
|
case "attachment":
|
|
8004
|
-
return /*#__PURE__*/
|
|
8032
|
+
return /*#__PURE__*/React__default["default"].createElement(Attachment, {
|
|
8005
8033
|
element: element
|
|
8006
8034
|
});
|
|
8007
8035
|
|
|
8008
8036
|
case "tweet":
|
|
8009
8037
|
case "jsembed":
|
|
8010
|
-
return /*#__PURE__*/
|
|
8038
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8011
8039
|
className: "content-style",
|
|
8012
8040
|
id: "jsembed-".concat(storyElementId)
|
|
8013
|
-
}, /*#__PURE__*/
|
|
8041
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8014
8042
|
element: element
|
|
8015
8043
|
}));
|
|
8016
8044
|
|
|
@@ -8021,7 +8049,7 @@ var getElement = function getElement(story, element) {
|
|
|
8021
8049
|
showHeadline = _references$opts$show === void 0 ? true : _references$opts$show,
|
|
8022
8050
|
_references$opts$head = _references$opts.headlineText,
|
|
8023
8051
|
headlineText = _references$opts$head === void 0 ? "" : _references$opts$head;
|
|
8024
|
-
return /*#__PURE__*/
|
|
8052
|
+
return /*#__PURE__*/React__default["default"].createElement(Reference, {
|
|
8025
8053
|
element: element,
|
|
8026
8054
|
opts: {
|
|
8027
8055
|
showHeadline: showHeadline,
|
|
@@ -8030,10 +8058,10 @@ var getElement = function getElement(story, element) {
|
|
|
8030
8058
|
});
|
|
8031
8059
|
|
|
8032
8060
|
default:
|
|
8033
|
-
return /*#__PURE__*/
|
|
8061
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8034
8062
|
className: "content-style",
|
|
8035
8063
|
id: "element-".concat(storyElementId)
|
|
8036
|
-
}, /*#__PURE__*/
|
|
8064
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryElement, {
|
|
8037
8065
|
element: element,
|
|
8038
8066
|
story: story
|
|
8039
8067
|
}));
|
|
@@ -8041,12 +8069,12 @@ var getElement = function getElement(story, element) {
|
|
|
8041
8069
|
};
|
|
8042
8070
|
|
|
8043
8071
|
({
|
|
8044
|
-
story:
|
|
8045
|
-
imageElement:
|
|
8046
|
-
config:
|
|
8047
|
-
children:
|
|
8048
|
-
card:
|
|
8049
|
-
id:
|
|
8072
|
+
story: PropTypes__default["default"].object,
|
|
8073
|
+
imageElement: PropTypes__default["default"].object,
|
|
8074
|
+
config: PropTypes__default["default"].object,
|
|
8075
|
+
children: PropTypes__default["default"].node,
|
|
8076
|
+
card: PropTypes__default["default"].shape({
|
|
8077
|
+
id: PropTypes__default["default"].string
|
|
8050
8078
|
})
|
|
8051
8079
|
});
|
|
8052
8080
|
var StoryElementCard = function StoryElementCard(_ref2) {
|
|
@@ -8062,7 +8090,7 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8062
8090
|
var textColor = getTextColor(theme);
|
|
8063
8091
|
var isLiveBlog = isLive ? "live-blog" : "";
|
|
8064
8092
|
var shouldRunFBMobileVideoFix = true;
|
|
8065
|
-
return /*#__PURE__*/
|
|
8093
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8066
8094
|
className: "arr--story-page-card-wrapper"
|
|
8067
8095
|
}, get_1(card, ["story-elements"], []).map(function (element, index) {
|
|
8068
8096
|
if (element.id === heroVideoElementId) return false;
|
|
@@ -8074,28 +8102,28 @@ var StoryElementCard = function StoryElementCard(_ref2) {
|
|
|
8074
8102
|
|
|
8075
8103
|
var tableStyle = element && element.subtype === "table" ? "table" : "";
|
|
8076
8104
|
var cardId = get_1(card, ["id"], "");
|
|
8077
|
-
return /*#__PURE__*/
|
|
8105
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8078
8106
|
key: element.id,
|
|
8079
8107
|
className: "arr--element-container " + _getClassName("element-container ".concat(isLiveBlog, " ").concat(tableStyle, " ").concat(textColor), _styleModuleImportMap$1)
|
|
8080
8108
|
}, getElement(story, element, config, adComponent, widgetComp, index, cardId));
|
|
8081
8109
|
}));
|
|
8082
8110
|
};
|
|
8083
8111
|
StoryElementCard.propTypes = {
|
|
8084
|
-
story:
|
|
8085
|
-
card:
|
|
8086
|
-
heroVideoElementId:
|
|
8087
|
-
config:
|
|
8088
|
-
isLive:
|
|
8089
|
-
theme:
|
|
8090
|
-
adComponent:
|
|
8091
|
-
widgetComp:
|
|
8112
|
+
story: PropTypes__default["default"].object,
|
|
8113
|
+
card: PropTypes__default["default"].array,
|
|
8114
|
+
heroVideoElementId: PropTypes__default["default"].number,
|
|
8115
|
+
config: PropTypes__default["default"].object,
|
|
8116
|
+
isLive: PropTypes__default["default"].bool,
|
|
8117
|
+
theme: PropTypes__default["default"].string,
|
|
8118
|
+
adComponent: PropTypes__default["default"].func,
|
|
8119
|
+
widgetComp: PropTypes__default["default"].func
|
|
8092
8120
|
};
|
|
8093
8121
|
({
|
|
8094
|
-
story:
|
|
8095
|
-
card:
|
|
8096
|
-
config:
|
|
8097
|
-
adComponent:
|
|
8098
|
-
widgetComp:
|
|
8122
|
+
story: PropTypes__default["default"].object,
|
|
8123
|
+
card: PropTypes__default["default"].object,
|
|
8124
|
+
config: PropTypes__default["default"].object,
|
|
8125
|
+
adComponent: PropTypes__default["default"].func,
|
|
8126
|
+
widgetComp: PropTypes__default["default"].func
|
|
8099
8127
|
});
|
|
8100
8128
|
var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
8101
8129
|
var _ref4$id = _ref4.id,
|
|
@@ -8107,12 +8135,12 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8107
8135
|
|
|
8108
8136
|
switch (element.type) {
|
|
8109
8137
|
case "ad":
|
|
8110
|
-
return /*#__PURE__*/
|
|
8138
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends({}, element, {
|
|
8111
8139
|
id: "ad-after-story-".concat(id)
|
|
8112
8140
|
}));
|
|
8113
8141
|
|
|
8114
8142
|
case "widget":
|
|
8115
|
-
return /*#__PURE__*/
|
|
8143
|
+
return /*#__PURE__*/React__default["default"].createElement(WidgetComp, {
|
|
8116
8144
|
widgetCode: element.config.customCode,
|
|
8117
8145
|
id: "widget-after-story-".concat(id)
|
|
8118
8146
|
});
|
|
@@ -8122,10 +8150,10 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
8122
8150
|
}
|
|
8123
8151
|
};
|
|
8124
8152
|
SlotAfterStory.propTypes = {
|
|
8125
|
-
id:
|
|
8126
|
-
element:
|
|
8127
|
-
AdComponent:
|
|
8128
|
-
WidgetComp:
|
|
8153
|
+
id: PropTypes__default["default"].string,
|
|
8154
|
+
element: PropTypes__default["default"].object,
|
|
8155
|
+
AdComponent: PropTypes__default["default"].func,
|
|
8156
|
+
WidgetComp: PropTypes__default["default"].func
|
|
8129
8157
|
};
|
|
8130
8158
|
|
|
8131
8159
|
var _styleModuleImportMap = {
|
|
@@ -8187,25 +8215,25 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8187
8215
|
premiumStoryIconConfig = _config$premiumStoryI === void 0 ? {} : _config$premiumStoryI;
|
|
8188
8216
|
var visibledCards = noOfVisibleCards < 0 ? story.cards : story.cards.slice(0, noOfVisibleCards);
|
|
8189
8217
|
var storyId = get_1(story, ["id"], "");
|
|
8190
|
-
var timezone = useSelector(function (state) {
|
|
8218
|
+
var timezone = reactRedux.useSelector(function (state) {
|
|
8191
8219
|
return get_1(state, ["qt", "data", "timezone"], null);
|
|
8192
8220
|
});
|
|
8193
8221
|
|
|
8194
8222
|
var HeroVideo = function HeroVideo() {
|
|
8195
|
-
return /*#__PURE__*/
|
|
8223
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8196
8224
|
className: "video-story-m_hero-video__1rumO video-story-m_index-2__32Kzt",
|
|
8197
8225
|
id: "video-".concat(get_1(heroVideo, ["id"]))
|
|
8198
|
-
}, /*#__PURE__*/
|
|
8226
|
+
}, /*#__PURE__*/React__default["default"].createElement(Video, {
|
|
8199
8227
|
element: heroVideo,
|
|
8200
8228
|
loadIframeOnClick: true
|
|
8201
8229
|
}));
|
|
8202
8230
|
};
|
|
8203
8231
|
|
|
8204
8232
|
var SocialShareComponent = function SocialShareComponent() {
|
|
8205
|
-
return /*#__PURE__*/
|
|
8233
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8206
8234
|
id: "story-share-".concat(storyId),
|
|
8207
8235
|
className: "content-style"
|
|
8208
|
-
}, /*#__PURE__*/
|
|
8236
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
|
|
8209
8237
|
template: SocialShareTemplate,
|
|
8210
8238
|
fullUrl: encodeURI(story.url),
|
|
8211
8239
|
title: story.headline,
|
|
@@ -8217,37 +8245,37 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8217
8245
|
};
|
|
8218
8246
|
|
|
8219
8247
|
var HeaderCard = function HeaderCard() {
|
|
8220
|
-
return /*#__PURE__*/
|
|
8248
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8221
8249
|
className: "video-story-m_header-details__1MgWw"
|
|
8222
|
-
}, /*#__PURE__*/
|
|
8250
|
+
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
8223
8251
|
story: story
|
|
8224
|
-
}), /*#__PURE__*/
|
|
8252
|
+
}), /*#__PURE__*/React__default["default"].createElement(StoryHeadline, {
|
|
8225
8253
|
story: story,
|
|
8226
8254
|
premiumStoryIconConfig: premiumStoryIconConfig
|
|
8227
|
-
}), /*#__PURE__*/
|
|
8255
|
+
}), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
|
|
8228
8256
|
story: story,
|
|
8229
8257
|
showFullContent: true
|
|
8230
8258
|
}));
|
|
8231
8259
|
};
|
|
8232
8260
|
|
|
8233
8261
|
var StoryData = function StoryData() {
|
|
8234
|
-
return /*#__PURE__*/
|
|
8262
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8235
8263
|
className: "video-story-m_story-details__2KI1H"
|
|
8236
|
-
}, /*#__PURE__*/
|
|
8264
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8237
8265
|
className: "video-story-m_author__3AscN"
|
|
8238
|
-
}, authorCard && /*#__PURE__*/
|
|
8266
|
+
}, authorCard && /*#__PURE__*/React__default["default"].createElement(AuthorCard, {
|
|
8239
8267
|
story: story,
|
|
8240
8268
|
template: authorDetails.template,
|
|
8241
8269
|
opts: authorDetails.opts
|
|
8242
|
-
})), /*#__PURE__*/
|
|
8270
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8243
8271
|
className: "video-story-m_timestamp-social-share__1Vma8"
|
|
8244
|
-
}, /*#__PURE__*/
|
|
8272
|
+
}, /*#__PURE__*/React__default["default"].createElement(PublishDetails, {
|
|
8245
8273
|
story: story,
|
|
8246
8274
|
opts: publishedDetails,
|
|
8247
8275
|
template: "story",
|
|
8248
8276
|
timezone: timezone
|
|
8249
|
-
}), !verticalShare && /*#__PURE__*/
|
|
8250
|
-
return /*#__PURE__*/
|
|
8277
|
+
}), !verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null)), visibledCards.map(function (card) {
|
|
8278
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElementCard, {
|
|
8251
8279
|
heroVideoElementId: heroVideo.id,
|
|
8252
8280
|
story: story,
|
|
8253
8281
|
card: card,
|
|
@@ -8256,11 +8284,11 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8256
8284
|
adComponent: adComponent,
|
|
8257
8285
|
widgetComp: widgetComp
|
|
8258
8286
|
});
|
|
8259
|
-
}), firstChild, /*#__PURE__*/
|
|
8287
|
+
}), firstChild, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8260
8288
|
className: "video-story-m_story-tags__1OnlS"
|
|
8261
|
-
}, /*#__PURE__*/
|
|
8289
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryTags, {
|
|
8262
8290
|
tags: story.tags
|
|
8263
|
-
}), /*#__PURE__*/
|
|
8291
|
+
}), /*#__PURE__*/React__default["default"].createElement(SlotAfterStory, {
|
|
8264
8292
|
id: story.id,
|
|
8265
8293
|
element: story.customSlotAfterStory,
|
|
8266
8294
|
AdComponent: adComponent,
|
|
@@ -8269,9 +8297,9 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8269
8297
|
};
|
|
8270
8298
|
|
|
8271
8299
|
var SideColumn = function SideColumn() {
|
|
8272
|
-
return asideCollection && /*#__PURE__*/
|
|
8300
|
+
return asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8273
8301
|
className: "video-story-m_video-story-side-column__155nW"
|
|
8274
|
-
}, /*#__PURE__*/
|
|
8302
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8275
8303
|
widgetComp: widgetComp,
|
|
8276
8304
|
adComponent: adComponent,
|
|
8277
8305
|
sticky: true,
|
|
@@ -8281,11 +8309,11 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8281
8309
|
};
|
|
8282
8310
|
|
|
8283
8311
|
var heroPriorityTemplate = function heroPriorityTemplate() {
|
|
8284
|
-
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", {
|
|
8285
8313
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8286
|
-
}, /*#__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", {
|
|
8287
8315
|
className: "video-story-m_aside-collection__3ecnd video-story-m_tablet-index-2__2sPXB"
|
|
8288
|
-
}, /*#__PURE__*/
|
|
8316
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends({
|
|
8289
8317
|
horizontal: true
|
|
8290
8318
|
}, asideCollection, {
|
|
8291
8319
|
widgetComp: widgetComp,
|
|
@@ -8296,19 +8324,19 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8296
8324
|
};
|
|
8297
8325
|
|
|
8298
8326
|
var headlinePriorityTemplate = function headlinePriorityTemplate() {
|
|
8299
|
-
return /*#__PURE__*/
|
|
8327
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8300
8328
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8301
|
-
}, /*#__PURE__*/
|
|
8329
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderCard, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8302
8330
|
className: "video-story-m_story-content-wrapper__g87mo video-story-m_index-2__32Kzt"
|
|
8303
|
-
}, /*#__PURE__*/
|
|
8331
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeroVideo, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8304
8332
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8305
|
-
}, /*#__PURE__*/
|
|
8333
|
+
}, /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), /*#__PURE__*/React__default["default"].createElement(SideColumn, null));
|
|
8306
8334
|
};
|
|
8307
8335
|
|
|
8308
8336
|
var defaultTemplate = function defaultTemplate() {
|
|
8309
|
-
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", {
|
|
8310
8338
|
className: "video-story-m_story-content-wrapper__g87mo"
|
|
8311
|
-
}, /*#__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));
|
|
8312
8340
|
};
|
|
8313
8341
|
|
|
8314
8342
|
var getStoryTemplate = function getStoryTemplate(templateType) {
|
|
@@ -8326,7 +8354,7 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8326
8354
|
|
|
8327
8355
|
var templateClass = templateType && templateType !== "default" ? templateType : "default";
|
|
8328
8356
|
var dataTestId = templateType ? "video-story-".concat(templateType) : "video-story";
|
|
8329
|
-
return /*#__PURE__*/
|
|
8357
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8330
8358
|
"data-test-id": dataTestId,
|
|
8331
8359
|
style: {
|
|
8332
8360
|
backgroundColor: theme
|
|
@@ -8335,18 +8363,19 @@ var VideoStoryTemplateBase = function VideoStoryTemplateBase(_ref) {
|
|
|
8335
8363
|
}, getStoryTemplate(templateType));
|
|
8336
8364
|
};
|
|
8337
8365
|
VideoStoryTemplateBase.propTypes = {
|
|
8338
|
-
story:
|
|
8339
|
-
config:
|
|
8340
|
-
templateType:
|
|
8341
|
-
authorCard:
|
|
8342
|
-
asideCollection:
|
|
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
|
|
8343
8371
|
}),
|
|
8344
|
-
firstChild:
|
|
8345
|
-
secondChild:
|
|
8346
|
-
storyElementsConfig:
|
|
8347
|
-
adComponent:
|
|
8348
|
-
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
|
|
8349
8377
|
};
|
|
8350
8378
|
var VideoStoryTemplate = StateProvider(VideoStoryTemplateBase);
|
|
8351
8379
|
|
|
8352
|
-
|
|
8380
|
+
exports.VideoStoryTemplate = VideoStoryTemplate;
|
|
8381
|
+
exports.VideoStoryTemplateBase = VideoStoryTemplateBase;
|