@mjhls/mjh-framework 1.0.346 → 1.0.348
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/README.md +1 -1
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/{TaxonomyCard-cd4b4668.js → TaxonomyCard-266e757b.js} +5 -22
- package/dist/cjs/TaxonomyCard.js +1 -1
- package/dist/cjs/index.js +109 -63
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/{TaxonomyCard-c17e6d28.js → TaxonomyCard-c1a1a544.js} +5 -22
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/index.js +115 -69
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
58
58
|
),
|
|
59
59
|
React__default.createElement(
|
|
60
60
|
Card.Body,
|
|
61
|
-
|
|
61
|
+
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
62
62
|
React__default.createElement(
|
|
63
63
|
Card.Title,
|
|
64
64
|
null,
|
|
@@ -66,7 +66,7 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
66
66
|
),
|
|
67
67
|
React__default.createElement(
|
|
68
68
|
Button,
|
|
69
|
-
{ variant: 'secondary' },
|
|
69
|
+
{ style: { position: 'absolute', bottom: '1rem', left: '20%' }, variant: 'secondary' },
|
|
70
70
|
'Browse Issues'
|
|
71
71
|
)
|
|
72
72
|
)
|
|
@@ -1029,27 +1029,10 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1029
1029
|
React__default.createElement(
|
|
1030
1030
|
'div',
|
|
1031
1031
|
null,
|
|
1032
|
-
|
|
1033
|
-
'a',
|
|
1034
|
-
{ href: row.url },
|
|
1035
|
-
React__default.createElement(
|
|
1036
|
-
Card.Title,
|
|
1037
|
-
null,
|
|
1038
|
-
row.name
|
|
1039
|
-
)
|
|
1040
|
-
) : React__default.createElement(
|
|
1041
|
-
Card.Title,
|
|
1042
|
-
null,
|
|
1043
|
-
row.name
|
|
1044
|
-
)
|
|
1045
|
-
),
|
|
1046
|
-
React__default.createElement(
|
|
1047
|
-
'div',
|
|
1048
|
-
null,
|
|
1049
|
-
(address && address.length || companyDetails && companyDetails.length) && React__default.createElement(
|
|
1032
|
+
(address && address.length > 0 || companyDetails && companyDetails.length > 0) && React__default.createElement(
|
|
1050
1033
|
'div',
|
|
1051
|
-
{ className: 'details-wrapper'
|
|
1052
|
-
companyDetails && companyDetails.length && React__default.createElement(
|
|
1034
|
+
{ className: 'details-wrapper' },
|
|
1035
|
+
companyDetails && companyDetails.length > 0 && React__default.createElement(
|
|
1053
1036
|
'div',
|
|
1054
1037
|
{ className: 'company-wrapper' },
|
|
1055
1038
|
companyDetails.map(function (field, index) {
|
|
@@ -1074,7 +1057,7 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1074
1057
|
}
|
|
1075
1058
|
})
|
|
1076
1059
|
),
|
|
1077
|
-
address && address.length && React__default.createElement(
|
|
1060
|
+
address && address.length > 0 && React__default.createElement(
|
|
1078
1061
|
'div',
|
|
1079
1062
|
{ className: 'address-wrapper' },
|
|
1080
1063
|
address.map(function (field, index) {
|
|
@@ -1111,7 +1094,7 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1111
1094
|
React__default.createElement(
|
|
1112
1095
|
'style',
|
|
1113
1096
|
{ jsx: 'true' },
|
|
1114
|
-
'\n .social-icons {\n margin-top:
|
|
1097
|
+
'\n .social-icons {\n margin-top: 0px;\n margin-bottom: 10px;\n }\n '
|
|
1115
1098
|
)
|
|
1116
1099
|
),
|
|
1117
1100
|
React__default.createElement(
|
package/dist/cjs/TaxonomyCard.js
CHANGED
|
@@ -12,7 +12,7 @@ require('react-bootstrap/Card');
|
|
|
12
12
|
require('react-dom');
|
|
13
13
|
require('./index-b5eb3ff8.js');
|
|
14
14
|
require('./index-fa0fb52c.js');
|
|
15
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
15
|
+
var TaxonomyCard = require('./TaxonomyCard-266e757b.js');
|
|
16
16
|
require('./react-social-icons-cd0d9d3b.js');
|
|
17
17
|
|
|
18
18
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var PropTypes = _interopDefault(require('prop-types'));
|
|
|
18
18
|
var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
19
19
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
20
20
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
21
|
-
require('react-bootstrap/Card');
|
|
21
|
+
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
22
22
|
var moment = require('./moment-66a6a284.js');
|
|
23
23
|
var Router = require('next/router');
|
|
24
24
|
var Router__default = _interopDefault(Router);
|
|
@@ -37,7 +37,7 @@ var GridContent = require('./GridContent-7a85d904.js');
|
|
|
37
37
|
var DeckQueue = require('./DeckQueue.js');
|
|
38
38
|
require('react-bootstrap/Media');
|
|
39
39
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
40
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
40
|
+
var TaxonomyCard = require('./TaxonomyCard-266e757b.js');
|
|
41
41
|
require('./react-social-icons-cd0d9d3b.js');
|
|
42
42
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
43
43
|
var GroupDeck = require('./GroupDeck.js');
|
|
@@ -1991,7 +1991,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1991
1991
|
{ href: links.summary.href || '#', target: '_blank' },
|
|
1992
1992
|
React__default.createElement(
|
|
1993
1993
|
Button,
|
|
1994
|
-
{ size: 'sm', className: '
|
|
1994
|
+
{ size: 'sm', className: 'registration-button', style: { borderRadius: '8px' } },
|
|
1995
1995
|
'Register Now'
|
|
1996
1996
|
)
|
|
1997
1997
|
);
|
|
@@ -2020,7 +2020,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2020
2020
|
var cardLoader = function cardLoader() {
|
|
2021
2021
|
var numberOfItemsBeforeAd = 5;
|
|
2022
2022
|
return React__default.createElement(
|
|
2023
|
-
|
|
2023
|
+
React__default.Fragment,
|
|
2024
2024
|
null,
|
|
2025
2025
|
data && data.map(function (row, index) {
|
|
2026
2026
|
var speakerInfo = [];
|
|
@@ -2032,12 +2032,10 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2032
2032
|
});
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
|
-
var
|
|
2036
|
-
start = row.start,
|
|
2035
|
+
var start = row.start,
|
|
2037
2036
|
end = row.end,
|
|
2038
2037
|
venues = row.venues,
|
|
2039
2038
|
_links = row._links,
|
|
2040
|
-
virtual = row.virtual,
|
|
2041
2039
|
timezone = row.timezone;
|
|
2042
2040
|
|
|
2043
2041
|
var now = momentTimezone$1().tz(timezone);
|
|
@@ -2068,70 +2066,77 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2068
2066
|
isVisible && changePageNumber(pageNumber);
|
|
2069
2067
|
} },
|
|
2070
2068
|
React__default.createElement(
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
React__default.createElement(
|
|
2069
|
+
Card,
|
|
2070
|
+
null,
|
|
2071
|
+
isRegister && _links && React__default.createElement(
|
|
2074
2072
|
Row,
|
|
2075
2073
|
null,
|
|
2076
2074
|
React__default.createElement(
|
|
2077
2075
|
Col,
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
eventRegion
|
|
2086
|
-
),
|
|
2087
|
-
React__default.createElement(
|
|
2088
|
-
'p',
|
|
2089
|
-
{ style: { padding: 0, margin: 0 } },
|
|
2090
|
-
momentTimezone$1(start).tz(timezone).format('LL')
|
|
2091
|
-
),
|
|
2092
|
-
React__default.createElement(
|
|
2093
|
-
'p',
|
|
2094
|
-
{ style: { padding: 0, margin: 0 } },
|
|
2095
|
-
momentTimezone$1(start).tz(timezone).format('LT')
|
|
2096
|
-
)
|
|
2097
|
-
)
|
|
2098
|
-
),
|
|
2076
|
+
null,
|
|
2077
|
+
renderRegisterButton(_links)
|
|
2078
|
+
)
|
|
2079
|
+
),
|
|
2080
|
+
discussionTopic && React__default.createElement(
|
|
2081
|
+
Row,
|
|
2082
|
+
null,
|
|
2099
2083
|
React__default.createElement(
|
|
2100
2084
|
Col,
|
|
2101
|
-
|
|
2102
|
-
React__default.createElement('
|
|
2103
|
-
)
|
|
2085
|
+
null,
|
|
2086
|
+
React__default.createElement('h5', { className: 'topic', style: { fontWeight: '500', marginBottom: 0 }, dangerouslySetInnerHTML: { __html: discussionTopic } })
|
|
2087
|
+
)
|
|
2088
|
+
),
|
|
2089
|
+
start && timezone && React__default.createElement(
|
|
2090
|
+
Row,
|
|
2091
|
+
null,
|
|
2104
2092
|
React__default.createElement(
|
|
2105
2093
|
Col,
|
|
2106
|
-
|
|
2107
|
-
|
|
2094
|
+
null,
|
|
2095
|
+
React__default.createElement(
|
|
2096
|
+
'p',
|
|
2097
|
+
{ className: 'start-time', style: { padding: 0, margin: 0 } },
|
|
2098
|
+
momentTimezone$1(start).tz(timezone).format('LLL')
|
|
2099
|
+
)
|
|
2108
2100
|
)
|
|
2109
2101
|
),
|
|
2110
|
-
|
|
2111
|
-
|
|
2102
|
+
eventRegion && React__default.createElement(
|
|
2103
|
+
Row,
|
|
2112
2104
|
null,
|
|
2113
2105
|
React__default.createElement(
|
|
2114
|
-
|
|
2115
|
-
|
|
2106
|
+
Col,
|
|
2107
|
+
null,
|
|
2116
2108
|
React__default.createElement(
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2109
|
+
'p',
|
|
2110
|
+
{ className: 'event-region', style: { padding: 0, margin: 0 } },
|
|
2111
|
+
eventRegion
|
|
2120
2112
|
)
|
|
2121
2113
|
)
|
|
2122
2114
|
),
|
|
2123
|
-
|
|
2124
|
-
|
|
2115
|
+
venues && venues.length && venues[0].name && React__default.createElement(
|
|
2116
|
+
Row,
|
|
2125
2117
|
null,
|
|
2126
2118
|
React__default.createElement(
|
|
2127
|
-
|
|
2128
|
-
|
|
2119
|
+
Col,
|
|
2120
|
+
null,
|
|
2129
2121
|
React__default.createElement(
|
|
2130
|
-
|
|
2131
|
-
|
|
2122
|
+
'p',
|
|
2123
|
+
{ className: 'venue', style: { padding: 0, margin: 0 } },
|
|
2124
|
+
venues[0].name
|
|
2125
|
+
)
|
|
2126
|
+
)
|
|
2127
|
+
),
|
|
2128
|
+
speakerInfo && speakerInfo.length && React__default.createElement(
|
|
2129
|
+
Row,
|
|
2130
|
+
null,
|
|
2131
|
+
React__default.createElement(
|
|
2132
|
+
Col,
|
|
2133
|
+
null,
|
|
2134
|
+
React__default.createElement(
|
|
2135
|
+
'div',
|
|
2136
|
+
{ className: 'speaker-section', style: { border: '1px solid', borderRadius: '8px', padding: '8px' } },
|
|
2132
2137
|
React__default.createElement(
|
|
2133
2138
|
'h6',
|
|
2134
|
-
{ style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem;' } },
|
|
2139
|
+
{ className: 'speaker-title', style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem;' } },
|
|
2135
2140
|
'SPEAKER'
|
|
2136
2141
|
),
|
|
2137
2142
|
speakerInfo.map(function (info) {
|
|
@@ -2159,7 +2164,12 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2159
2164
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
2160
2165
|
)
|
|
2161
2166
|
);
|
|
2162
|
-
})
|
|
2167
|
+
}),
|
|
2168
|
+
React__default.createElement(
|
|
2169
|
+
'style',
|
|
2170
|
+
{ jsx: 'true' },
|
|
2171
|
+
'\n .card {\n -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);\n border-radius: 8px;\n padding: 12px;\n }\n .row {\n margin-bottom: 8px;\n }\n '
|
|
2172
|
+
)
|
|
2163
2173
|
);
|
|
2164
2174
|
};
|
|
2165
2175
|
|
|
@@ -8304,11 +8314,19 @@ var Video = function Video(_ref) {
|
|
|
8304
8314
|
accountIDs = _ref.accountIDs;
|
|
8305
8315
|
var source = node.source,
|
|
8306
8316
|
videoID = node.videoID,
|
|
8317
|
+
playlistID = node.playlistID,
|
|
8307
8318
|
experienceID = node.experienceID;
|
|
8308
8319
|
|
|
8309
8320
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
8310
8321
|
if (videoID) {
|
|
8311
8322
|
return React__default.createElement(ReactPlayerLoader, { accountId: accountIDs.brightcove.accountId, videoId: videoID, playerId: accountIDs.brightcove.playerId, attrs: { className: 'brightcove' } });
|
|
8323
|
+
} else if (playlistID) {
|
|
8324
|
+
return React__default.createElement(ReactPlayerLoader, {
|
|
8325
|
+
accountId: accountIDs.brightcove.accountId,
|
|
8326
|
+
playlistId: playlistID,
|
|
8327
|
+
playerId: accountIDs.brightcove.playerId,
|
|
8328
|
+
attrs: { className: 'brightcove brightcove-playlist' }
|
|
8329
|
+
});
|
|
8312
8330
|
} else if (experienceID) {
|
|
8313
8331
|
return React__default.createElement(
|
|
8314
8332
|
'div',
|
|
@@ -13406,11 +13424,13 @@ var numberOfPaginations = main.main_38 ? 4 : 10;
|
|
|
13406
13424
|
|
|
13407
13425
|
var Quiz = function Quiz(_ref) {
|
|
13408
13426
|
var quizzes = _ref.quizzes,
|
|
13409
|
-
getSerializers = _ref.getSerializers
|
|
13427
|
+
getSerializers = _ref.getSerializers,
|
|
13428
|
+
pageview = _ref.pageview,
|
|
13429
|
+
pageNumberFromURL = _ref.currentPage;
|
|
13410
13430
|
|
|
13411
13431
|
var pageCount = quizzes.length;
|
|
13412
13432
|
|
|
13413
|
-
var _useState = React.useState(1),
|
|
13433
|
+
var _useState = React.useState(pageNumberFromURL ? parseInt(pageNumberFromURL) : 1),
|
|
13414
13434
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
13415
13435
|
currentPage = _useState2[0],
|
|
13416
13436
|
setCurrentPage = _useState2[1];
|
|
@@ -13449,16 +13469,25 @@ var Quiz = function Quiz(_ref) {
|
|
|
13449
13469
|
|
|
13450
13470
|
var changePage = function changePage(control) {
|
|
13451
13471
|
setShowAnswer(false);
|
|
13472
|
+
var newPath = '';
|
|
13452
13473
|
switch (control) {
|
|
13453
13474
|
case 'first':
|
|
13454
13475
|
setCurrentPage(1);
|
|
13455
13476
|
setStartIndex(0);
|
|
13456
13477
|
setEndIndex(numberOfPaginations - 1);
|
|
13478
|
+
newPath = window.location.pathname;
|
|
13479
|
+
window.history.pushState(null, null, newPath);
|
|
13480
|
+
debounce.lib_3.refresh();
|
|
13481
|
+
if (pageview) pageview(newPath);
|
|
13457
13482
|
break;
|
|
13458
13483
|
case 'last':
|
|
13459
13484
|
setCurrentPage(pageCount);
|
|
13460
13485
|
setStartIndex(pageCount - pageCount % numberOfPaginations);
|
|
13461
13486
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
13487
|
+
newPath = window.location.pathname + '?page=' + pageCount;
|
|
13488
|
+
window.history.pushState(null, null, newPath);
|
|
13489
|
+
debounce.lib_3.refresh();
|
|
13490
|
+
if (pageview) pageview(newPath);
|
|
13462
13491
|
break;
|
|
13463
13492
|
case 'next':
|
|
13464
13493
|
setCurrentPage(currentPage + 1);
|
|
@@ -13466,6 +13495,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
13466
13495
|
setStartIndex(startIndex + numberOfPaginations);
|
|
13467
13496
|
setEndIndex(endIndex + numberOfPaginations);
|
|
13468
13497
|
}
|
|
13498
|
+
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
13499
|
+
window.history.pushState(null, null, newPath);
|
|
13500
|
+
debounce.lib_3.refresh();
|
|
13501
|
+
if (pageview) pageview(newPath);
|
|
13469
13502
|
break;
|
|
13470
13503
|
case 'prev':
|
|
13471
13504
|
setCurrentPage(currentPage - 1);
|
|
@@ -13473,9 +13506,17 @@ var Quiz = function Quiz(_ref) {
|
|
|
13473
13506
|
setStartIndex(startIndex - numberOfPaginations);
|
|
13474
13507
|
setEndIndex(endIndex - numberOfPaginations);
|
|
13475
13508
|
}
|
|
13509
|
+
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
13510
|
+
window.history.pushState(null, null, newPath);
|
|
13511
|
+
debounce.lib_3.refresh();
|
|
13512
|
+
if (pageview) pageview(newPath);
|
|
13476
13513
|
break;
|
|
13477
13514
|
default:
|
|
13478
13515
|
setCurrentPage(control);
|
|
13516
|
+
newPath = window.location.pathname + '?page=' + control;
|
|
13517
|
+
window.history.pushState(null, null, newPath);
|
|
13518
|
+
debounce.lib_3.refresh();
|
|
13519
|
+
if (pageview) pageview(newPath);
|
|
13479
13520
|
}
|
|
13480
13521
|
};
|
|
13481
13522
|
|
|
@@ -13697,7 +13738,8 @@ var getSerializers = function getSerializers() {
|
|
|
13697
13738
|
videoAccountIDs = props[2],
|
|
13698
13739
|
onVote = props[3],
|
|
13699
13740
|
showVotes = props[4],
|
|
13700
|
-
drupalLeadSettings = props[5]
|
|
13741
|
+
drupalLeadSettings = props[5],
|
|
13742
|
+
currentPage = props[6];
|
|
13701
13743
|
|
|
13702
13744
|
return {
|
|
13703
13745
|
types: {
|
|
@@ -13769,7 +13811,7 @@ var getSerializers = function getSerializers() {
|
|
|
13769
13811
|
var node = _ref12.node;
|
|
13770
13812
|
var quizzes = node.quizzes;
|
|
13771
13813
|
|
|
13772
|
-
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props) });
|
|
13814
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
13773
13815
|
},
|
|
13774
13816
|
leads: function leads(_ref13) {
|
|
13775
13817
|
var node = _ref13.node;
|
|
@@ -16313,6 +16355,7 @@ var Article = function Article(props) {
|
|
|
16313
16355
|
pageview = props.pageview,
|
|
16314
16356
|
videoAccountIDs = props.videoAccountIDs,
|
|
16315
16357
|
drupalLeadSettings = props.drupalLeadSettings,
|
|
16358
|
+
currentPage = props.currentPage,
|
|
16316
16359
|
_props$article = props.article,
|
|
16317
16360
|
title = _props$article.title,
|
|
16318
16361
|
passwordLock = _props$article.passwordLock,
|
|
@@ -16450,7 +16493,7 @@ var Article = function Article(props) {
|
|
|
16450
16493
|
React__default.Fragment,
|
|
16451
16494
|
null,
|
|
16452
16495
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
16453
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings),
|
|
16496
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage),
|
|
16454
16497
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
|
|
16455
16498
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
16456
16499
|
}, client.config())),
|
|
@@ -16460,7 +16503,7 @@ var Article = function Article(props) {
|
|
|
16460
16503
|
React__default.createElement(AdSlot.DFPAdSlot, _extends$2._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
|
|
16461
16504
|
),
|
|
16462
16505
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
16463
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings),
|
|
16506
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage),
|
|
16464
16507
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(selectedIndex))),
|
|
16465
16508
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
16466
16509
|
}, client.config()))
|
|
@@ -16573,16 +16616,16 @@ var Article = function Article(props) {
|
|
|
16573
16616
|
React__default.createElement(
|
|
16574
16617
|
'p',
|
|
16575
16618
|
null,
|
|
16576
|
-
issue.
|
|
16619
|
+
issue.volume && React__default.createElement(
|
|
16577
16620
|
'span',
|
|
16578
16621
|
null,
|
|
16579
|
-
'
|
|
16622
|
+
'Volume ' + issue.volume,
|
|
16580
16623
|
','
|
|
16581
16624
|
),
|
|
16582
|
-
issue.
|
|
16625
|
+
issue.issueNumber && React__default.createElement(
|
|
16583
16626
|
'span',
|
|
16584
16627
|
null,
|
|
16585
|
-
'
|
|
16628
|
+
' Issue ' + issue.issueNumber
|
|
16586
16629
|
)
|
|
16587
16630
|
)
|
|
16588
16631
|
)
|
|
@@ -16671,7 +16714,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16671
16714
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification;
|
|
16672
16715
|
|
|
16673
16716
|
|
|
16674
|
-
var getTargeting = function getTargeting(article) {
|
|
16717
|
+
var getTargeting = function getTargeting(article, position) {
|
|
16675
16718
|
var _article$internalTag = article.internalTag,
|
|
16676
16719
|
internalTag = _article$internalTag === undefined ? [] : _article$internalTag,
|
|
16677
16720
|
_article$userDefinedT = article.userDefinedTag,
|
|
@@ -16741,6 +16784,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16741
16784
|
targeting = _extends$2._extends({}, targeting, { campaign_id: props.cache.hyperTargeting });
|
|
16742
16785
|
}
|
|
16743
16786
|
|
|
16787
|
+
if (position && position.length) {
|
|
16788
|
+
targeting['pos'] = position;
|
|
16789
|
+
}
|
|
16744
16790
|
return targeting;
|
|
16745
16791
|
};
|
|
16746
16792
|
|
|
@@ -16874,7 +16920,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16874
16920
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true },
|
|
16875
16921
|
queueData.map(function (article, index) {
|
|
16876
16922
|
if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
|
|
16877
|
-
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article));
|
|
16923
|
+
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
|
|
16878
16924
|
}
|
|
16879
16925
|
return React__default.createElement(Article, _extends$2._extends({ key: index }, props, { changeUrl: changeUrl, article: article, cpModificationRequired: cpModificationRequired }));
|
|
16880
16926
|
})
|
|
@@ -53,7 +53,7 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
53
53
|
),
|
|
54
54
|
React__default.createElement(
|
|
55
55
|
Card.Body,
|
|
56
|
-
|
|
56
|
+
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
57
57
|
React__default.createElement(
|
|
58
58
|
Card.Title,
|
|
59
59
|
null,
|
|
@@ -61,7 +61,7 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
61
61
|
),
|
|
62
62
|
React__default.createElement(
|
|
63
63
|
Button,
|
|
64
|
-
{ variant: 'secondary' },
|
|
64
|
+
{ style: { position: 'absolute', bottom: '1rem', left: '20%' }, variant: 'secondary' },
|
|
65
65
|
'Browse Issues'
|
|
66
66
|
)
|
|
67
67
|
)
|
|
@@ -1024,27 +1024,10 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1024
1024
|
React__default.createElement(
|
|
1025
1025
|
'div',
|
|
1026
1026
|
null,
|
|
1027
|
-
|
|
1028
|
-
'a',
|
|
1029
|
-
{ href: row.url },
|
|
1030
|
-
React__default.createElement(
|
|
1031
|
-
Card.Title,
|
|
1032
|
-
null,
|
|
1033
|
-
row.name
|
|
1034
|
-
)
|
|
1035
|
-
) : React__default.createElement(
|
|
1036
|
-
Card.Title,
|
|
1037
|
-
null,
|
|
1038
|
-
row.name
|
|
1039
|
-
)
|
|
1040
|
-
),
|
|
1041
|
-
React__default.createElement(
|
|
1042
|
-
'div',
|
|
1043
|
-
null,
|
|
1044
|
-
(address && address.length || companyDetails && companyDetails.length) && React__default.createElement(
|
|
1027
|
+
(address && address.length > 0 || companyDetails && companyDetails.length > 0) && React__default.createElement(
|
|
1045
1028
|
'div',
|
|
1046
|
-
{ className: 'details-wrapper'
|
|
1047
|
-
companyDetails && companyDetails.length && React__default.createElement(
|
|
1029
|
+
{ className: 'details-wrapper' },
|
|
1030
|
+
companyDetails && companyDetails.length > 0 && React__default.createElement(
|
|
1048
1031
|
'div',
|
|
1049
1032
|
{ className: 'company-wrapper' },
|
|
1050
1033
|
companyDetails.map(function (field, index) {
|
|
@@ -1069,7 +1052,7 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1069
1052
|
}
|
|
1070
1053
|
})
|
|
1071
1054
|
),
|
|
1072
|
-
address && address.length && React__default.createElement(
|
|
1055
|
+
address && address.length > 0 && React__default.createElement(
|
|
1073
1056
|
'div',
|
|
1074
1057
|
{ className: 'address-wrapper' },
|
|
1075
1058
|
address.map(function (field, index) {
|
|
@@ -1106,7 +1089,7 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1106
1089
|
React__default.createElement(
|
|
1107
1090
|
'style',
|
|
1108
1091
|
{ jsx: 'true' },
|
|
1109
|
-
'\n .social-icons {\n margin-top:
|
|
1092
|
+
'\n .social-icons {\n margin-top: 0px;\n margin-bottom: 10px;\n }\n '
|
|
1110
1093
|
)
|
|
1111
1094
|
),
|
|
1112
1095
|
React__default.createElement(
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -10,5 +10,5 @@ import 'react-bootstrap/Card';
|
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import './index-51a80699.js';
|
|
12
12
|
import './index-5f9f807a.js';
|
|
13
|
-
export { T as default } from './TaxonomyCard-
|
|
13
|
+
export { T as default } from './TaxonomyCard-c1a1a544.js';
|
|
14
14
|
import './react-social-icons-a7d5c5c7.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import Container from 'react-bootstrap/Container';
|
|
12
12
|
import Row from 'react-bootstrap/Row';
|
|
13
13
|
import Col from 'react-bootstrap/Col';
|
|
14
|
-
import 'react-bootstrap/Card';
|
|
14
|
+
import Card from 'react-bootstrap/Card';
|
|
15
15
|
import { m as moment } from './moment-12415288.js';
|
|
16
16
|
import Router, { useRouter } from 'next/router';
|
|
17
17
|
import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-49d5805d.js';
|
|
@@ -30,14 +30,14 @@ export { A as AD, G as GridContent } from './GridContent-e2b1de22.js';
|
|
|
30
30
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
31
31
|
import 'react-bootstrap/Media';
|
|
32
32
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
33
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
34
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
33
|
+
import { B as BlockContent } from './TaxonomyCard-c1a1a544.js';
|
|
34
|
+
export { T as TaxonomyCard } from './TaxonomyCard-c1a1a544.js';
|
|
35
35
|
import './react-social-icons-a7d5c5c7.js';
|
|
36
36
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
37
37
|
import GroupDeck from './GroupDeck.js';
|
|
38
38
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
39
39
|
export { default as YoutubeGroup } from './YoutubeGroup.js';
|
|
40
|
-
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card, Form } from 'react-bootstrap';
|
|
40
|
+
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card as Card$1, Form } from 'react-bootstrap';
|
|
41
41
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
42
42
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
43
43
|
export { default as VideoSeriesListing } from './VideoSeriesListing.js';
|
|
@@ -1988,7 +1988,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1988
1988
|
{ href: links.summary.href || '#', target: '_blank' },
|
|
1989
1989
|
React__default.createElement(
|
|
1990
1990
|
Button,
|
|
1991
|
-
{ size: 'sm', className: '
|
|
1991
|
+
{ size: 'sm', className: 'registration-button', style: { borderRadius: '8px' } },
|
|
1992
1992
|
'Register Now'
|
|
1993
1993
|
)
|
|
1994
1994
|
);
|
|
@@ -2017,7 +2017,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2017
2017
|
var cardLoader = function cardLoader() {
|
|
2018
2018
|
var numberOfItemsBeforeAd = 5;
|
|
2019
2019
|
return React__default.createElement(
|
|
2020
|
-
|
|
2020
|
+
React__default.Fragment,
|
|
2021
2021
|
null,
|
|
2022
2022
|
data && data.map(function (row, index) {
|
|
2023
2023
|
var speakerInfo = [];
|
|
@@ -2029,12 +2029,10 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2029
2029
|
});
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
2032
|
-
var
|
|
2033
|
-
start = row.start,
|
|
2032
|
+
var start = row.start,
|
|
2034
2033
|
end = row.end,
|
|
2035
2034
|
venues = row.venues,
|
|
2036
2035
|
_links = row._links,
|
|
2037
|
-
virtual = row.virtual,
|
|
2038
2036
|
timezone = row.timezone;
|
|
2039
2037
|
|
|
2040
2038
|
var now = momentTimezone$1().tz(timezone);
|
|
@@ -2065,70 +2063,77 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2065
2063
|
isVisible && changePageNumber(pageNumber);
|
|
2066
2064
|
} },
|
|
2067
2065
|
React__default.createElement(
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
React__default.createElement(
|
|
2066
|
+
Card,
|
|
2067
|
+
null,
|
|
2068
|
+
isRegister && _links && React__default.createElement(
|
|
2071
2069
|
Row,
|
|
2072
2070
|
null,
|
|
2073
2071
|
React__default.createElement(
|
|
2074
2072
|
Col,
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
eventRegion
|
|
2083
|
-
),
|
|
2084
|
-
React__default.createElement(
|
|
2085
|
-
'p',
|
|
2086
|
-
{ style: { padding: 0, margin: 0 } },
|
|
2087
|
-
momentTimezone$1(start).tz(timezone).format('LL')
|
|
2088
|
-
),
|
|
2089
|
-
React__default.createElement(
|
|
2090
|
-
'p',
|
|
2091
|
-
{ style: { padding: 0, margin: 0 } },
|
|
2092
|
-
momentTimezone$1(start).tz(timezone).format('LT')
|
|
2093
|
-
)
|
|
2094
|
-
)
|
|
2095
|
-
),
|
|
2073
|
+
null,
|
|
2074
|
+
renderRegisterButton(_links)
|
|
2075
|
+
)
|
|
2076
|
+
),
|
|
2077
|
+
discussionTopic && React__default.createElement(
|
|
2078
|
+
Row,
|
|
2079
|
+
null,
|
|
2096
2080
|
React__default.createElement(
|
|
2097
2081
|
Col,
|
|
2098
|
-
|
|
2099
|
-
React__default.createElement('
|
|
2100
|
-
)
|
|
2082
|
+
null,
|
|
2083
|
+
React__default.createElement('h5', { className: 'topic', style: { fontWeight: '500', marginBottom: 0 }, dangerouslySetInnerHTML: { __html: discussionTopic } })
|
|
2084
|
+
)
|
|
2085
|
+
),
|
|
2086
|
+
start && timezone && React__default.createElement(
|
|
2087
|
+
Row,
|
|
2088
|
+
null,
|
|
2101
2089
|
React__default.createElement(
|
|
2102
2090
|
Col,
|
|
2103
|
-
|
|
2104
|
-
|
|
2091
|
+
null,
|
|
2092
|
+
React__default.createElement(
|
|
2093
|
+
'p',
|
|
2094
|
+
{ className: 'start-time', style: { padding: 0, margin: 0 } },
|
|
2095
|
+
momentTimezone$1(start).tz(timezone).format('LLL')
|
|
2096
|
+
)
|
|
2105
2097
|
)
|
|
2106
2098
|
),
|
|
2107
|
-
|
|
2108
|
-
|
|
2099
|
+
eventRegion && React__default.createElement(
|
|
2100
|
+
Row,
|
|
2109
2101
|
null,
|
|
2110
2102
|
React__default.createElement(
|
|
2111
|
-
|
|
2112
|
-
|
|
2103
|
+
Col,
|
|
2104
|
+
null,
|
|
2113
2105
|
React__default.createElement(
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2106
|
+
'p',
|
|
2107
|
+
{ className: 'event-region', style: { padding: 0, margin: 0 } },
|
|
2108
|
+
eventRegion
|
|
2117
2109
|
)
|
|
2118
2110
|
)
|
|
2119
2111
|
),
|
|
2120
|
-
|
|
2121
|
-
|
|
2112
|
+
venues && venues.length && venues[0].name && React__default.createElement(
|
|
2113
|
+
Row,
|
|
2122
2114
|
null,
|
|
2123
2115
|
React__default.createElement(
|
|
2124
|
-
|
|
2125
|
-
|
|
2116
|
+
Col,
|
|
2117
|
+
null,
|
|
2126
2118
|
React__default.createElement(
|
|
2127
|
-
|
|
2128
|
-
|
|
2119
|
+
'p',
|
|
2120
|
+
{ className: 'venue', style: { padding: 0, margin: 0 } },
|
|
2121
|
+
venues[0].name
|
|
2122
|
+
)
|
|
2123
|
+
)
|
|
2124
|
+
),
|
|
2125
|
+
speakerInfo && speakerInfo.length && React__default.createElement(
|
|
2126
|
+
Row,
|
|
2127
|
+
null,
|
|
2128
|
+
React__default.createElement(
|
|
2129
|
+
Col,
|
|
2130
|
+
null,
|
|
2131
|
+
React__default.createElement(
|
|
2132
|
+
'div',
|
|
2133
|
+
{ className: 'speaker-section', style: { border: '1px solid', borderRadius: '8px', padding: '8px' } },
|
|
2129
2134
|
React__default.createElement(
|
|
2130
2135
|
'h6',
|
|
2131
|
-
{ style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem;' } },
|
|
2136
|
+
{ className: 'speaker-title', style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem;' } },
|
|
2132
2137
|
'SPEAKER'
|
|
2133
2138
|
),
|
|
2134
2139
|
speakerInfo.map(function (info) {
|
|
@@ -2156,7 +2161,12 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2156
2161
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
2157
2162
|
)
|
|
2158
2163
|
);
|
|
2159
|
-
})
|
|
2164
|
+
}),
|
|
2165
|
+
React__default.createElement(
|
|
2166
|
+
'style',
|
|
2167
|
+
{ jsx: 'true' },
|
|
2168
|
+
'\n .card {\n -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);\n border-radius: 8px;\n padding: 12px;\n }\n .row {\n margin-bottom: 8px;\n }\n '
|
|
2169
|
+
)
|
|
2160
2170
|
);
|
|
2161
2171
|
};
|
|
2162
2172
|
|
|
@@ -8301,11 +8311,19 @@ var Video = function Video(_ref) {
|
|
|
8301
8311
|
accountIDs = _ref.accountIDs;
|
|
8302
8312
|
var source = node.source,
|
|
8303
8313
|
videoID = node.videoID,
|
|
8314
|
+
playlistID = node.playlistID,
|
|
8304
8315
|
experienceID = node.experienceID;
|
|
8305
8316
|
|
|
8306
8317
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
8307
8318
|
if (videoID) {
|
|
8308
8319
|
return React__default.createElement(ReactPlayerLoader, { accountId: accountIDs.brightcove.accountId, videoId: videoID, playerId: accountIDs.brightcove.playerId, attrs: { className: 'brightcove' } });
|
|
8320
|
+
} else if (playlistID) {
|
|
8321
|
+
return React__default.createElement(ReactPlayerLoader, {
|
|
8322
|
+
accountId: accountIDs.brightcove.accountId,
|
|
8323
|
+
playlistId: playlistID,
|
|
8324
|
+
playerId: accountIDs.brightcove.playerId,
|
|
8325
|
+
attrs: { className: 'brightcove brightcove-playlist' }
|
|
8326
|
+
});
|
|
8309
8327
|
} else if (experienceID) {
|
|
8310
8328
|
return React__default.createElement(
|
|
8311
8329
|
'div',
|
|
@@ -13403,11 +13421,13 @@ var numberOfPaginations = main_38 ? 4 : 10;
|
|
|
13403
13421
|
|
|
13404
13422
|
var Quiz = function Quiz(_ref) {
|
|
13405
13423
|
var quizzes = _ref.quizzes,
|
|
13406
|
-
getSerializers = _ref.getSerializers
|
|
13424
|
+
getSerializers = _ref.getSerializers,
|
|
13425
|
+
pageview = _ref.pageview,
|
|
13426
|
+
pageNumberFromURL = _ref.currentPage;
|
|
13407
13427
|
|
|
13408
13428
|
var pageCount = quizzes.length;
|
|
13409
13429
|
|
|
13410
|
-
var _useState = useState(1),
|
|
13430
|
+
var _useState = useState(pageNumberFromURL ? parseInt(pageNumberFromURL) : 1),
|
|
13411
13431
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13412
13432
|
currentPage = _useState2[0],
|
|
13413
13433
|
setCurrentPage = _useState2[1];
|
|
@@ -13446,16 +13466,25 @@ var Quiz = function Quiz(_ref) {
|
|
|
13446
13466
|
|
|
13447
13467
|
var changePage = function changePage(control) {
|
|
13448
13468
|
setShowAnswer(false);
|
|
13469
|
+
var newPath = '';
|
|
13449
13470
|
switch (control) {
|
|
13450
13471
|
case 'first':
|
|
13451
13472
|
setCurrentPage(1);
|
|
13452
13473
|
setStartIndex(0);
|
|
13453
13474
|
setEndIndex(numberOfPaginations - 1);
|
|
13475
|
+
newPath = window.location.pathname;
|
|
13476
|
+
window.history.pushState(null, null, newPath);
|
|
13477
|
+
lib_3.refresh();
|
|
13478
|
+
if (pageview) pageview(newPath);
|
|
13454
13479
|
break;
|
|
13455
13480
|
case 'last':
|
|
13456
13481
|
setCurrentPage(pageCount);
|
|
13457
13482
|
setStartIndex(pageCount - pageCount % numberOfPaginations);
|
|
13458
13483
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
13484
|
+
newPath = window.location.pathname + '?page=' + pageCount;
|
|
13485
|
+
window.history.pushState(null, null, newPath);
|
|
13486
|
+
lib_3.refresh();
|
|
13487
|
+
if (pageview) pageview(newPath);
|
|
13459
13488
|
break;
|
|
13460
13489
|
case 'next':
|
|
13461
13490
|
setCurrentPage(currentPage + 1);
|
|
@@ -13463,6 +13492,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
13463
13492
|
setStartIndex(startIndex + numberOfPaginations);
|
|
13464
13493
|
setEndIndex(endIndex + numberOfPaginations);
|
|
13465
13494
|
}
|
|
13495
|
+
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
13496
|
+
window.history.pushState(null, null, newPath);
|
|
13497
|
+
lib_3.refresh();
|
|
13498
|
+
if (pageview) pageview(newPath);
|
|
13466
13499
|
break;
|
|
13467
13500
|
case 'prev':
|
|
13468
13501
|
setCurrentPage(currentPage - 1);
|
|
@@ -13470,9 +13503,17 @@ var Quiz = function Quiz(_ref) {
|
|
|
13470
13503
|
setStartIndex(startIndex - numberOfPaginations);
|
|
13471
13504
|
setEndIndex(endIndex - numberOfPaginations);
|
|
13472
13505
|
}
|
|
13506
|
+
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
13507
|
+
window.history.pushState(null, null, newPath);
|
|
13508
|
+
lib_3.refresh();
|
|
13509
|
+
if (pageview) pageview(newPath);
|
|
13473
13510
|
break;
|
|
13474
13511
|
default:
|
|
13475
13512
|
setCurrentPage(control);
|
|
13513
|
+
newPath = window.location.pathname + '?page=' + control;
|
|
13514
|
+
window.history.pushState(null, null, newPath);
|
|
13515
|
+
lib_3.refresh();
|
|
13516
|
+
if (pageview) pageview(newPath);
|
|
13476
13517
|
}
|
|
13477
13518
|
};
|
|
13478
13519
|
|
|
@@ -13694,7 +13735,8 @@ var getSerializers = function getSerializers() {
|
|
|
13694
13735
|
videoAccountIDs = props[2],
|
|
13695
13736
|
onVote = props[3],
|
|
13696
13737
|
showVotes = props[4],
|
|
13697
|
-
drupalLeadSettings = props[5]
|
|
13738
|
+
drupalLeadSettings = props[5],
|
|
13739
|
+
currentPage = props[6];
|
|
13698
13740
|
|
|
13699
13741
|
return {
|
|
13700
13742
|
types: {
|
|
@@ -13766,7 +13808,7 @@ var getSerializers = function getSerializers() {
|
|
|
13766
13808
|
var node = _ref12.node;
|
|
13767
13809
|
var quizzes = node.quizzes;
|
|
13768
13810
|
|
|
13769
|
-
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props) });
|
|
13811
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
13770
13812
|
},
|
|
13771
13813
|
leads: function leads(_ref13) {
|
|
13772
13814
|
var node = _ref13.node;
|
|
@@ -14072,16 +14114,16 @@ var Hero = function Hero(_ref) {
|
|
|
14072
14114
|
'a',
|
|
14073
14115
|
{ href: '/view/' + url.current },
|
|
14074
14116
|
React__default.createElement(
|
|
14075
|
-
Card,
|
|
14117
|
+
Card$1,
|
|
14076
14118
|
{ bsPrefix: 'hero-card' },
|
|
14077
14119
|
title && React__default.createElement(
|
|
14078
|
-
Card.Header,
|
|
14120
|
+
Card$1.Header,
|
|
14079
14121
|
{ className: 'h4' },
|
|
14080
14122
|
title
|
|
14081
14123
|
),
|
|
14082
|
-
thumbnail && client && React__default.createElement(Card.Img, { src: renderCardImage(thumbnail, client, imageHeight, imageWidth) }),
|
|
14124
|
+
thumbnail && client && React__default.createElement(Card$1.Img, { src: renderCardImage(thumbnail, client, imageHeight, imageWidth) }),
|
|
14083
14125
|
summary && React__default.createElement(
|
|
14084
|
-
Card.Footer,
|
|
14126
|
+
Card$1.Footer,
|
|
14085
14127
|
{ className: 'h6' },
|
|
14086
14128
|
clean_html_1(summary)
|
|
14087
14129
|
)
|
|
@@ -16310,6 +16352,7 @@ var Article = function Article(props) {
|
|
|
16310
16352
|
pageview = props.pageview,
|
|
16311
16353
|
videoAccountIDs = props.videoAccountIDs,
|
|
16312
16354
|
drupalLeadSettings = props.drupalLeadSettings,
|
|
16355
|
+
currentPage = props.currentPage,
|
|
16313
16356
|
_props$article = props.article,
|
|
16314
16357
|
title = _props$article.title,
|
|
16315
16358
|
passwordLock = _props$article.passwordLock,
|
|
@@ -16447,7 +16490,7 @@ var Article = function Article(props) {
|
|
|
16447
16490
|
React__default.Fragment,
|
|
16448
16491
|
null,
|
|
16449
16492
|
React__default.createElement(BlockContent, _extends$2({
|
|
16450
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings),
|
|
16493
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage),
|
|
16451
16494
|
blocks: [].concat(_toConsumableArray(body.slice(0, selectedIndex))),
|
|
16452
16495
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
16453
16496
|
}, client.config())),
|
|
@@ -16457,7 +16500,7 @@ var Article = function Article(props) {
|
|
|
16457
16500
|
React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
|
|
16458
16501
|
),
|
|
16459
16502
|
React__default.createElement(BlockContent, _extends$2({
|
|
16460
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings),
|
|
16503
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage),
|
|
16461
16504
|
blocks: [].concat(_toConsumableArray(body.slice(selectedIndex))),
|
|
16462
16505
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
16463
16506
|
}, client.config()))
|
|
@@ -16570,16 +16613,16 @@ var Article = function Article(props) {
|
|
|
16570
16613
|
React__default.createElement(
|
|
16571
16614
|
'p',
|
|
16572
16615
|
null,
|
|
16573
|
-
issue.
|
|
16616
|
+
issue.volume && React__default.createElement(
|
|
16574
16617
|
'span',
|
|
16575
16618
|
null,
|
|
16576
|
-
'
|
|
16619
|
+
'Volume ' + issue.volume,
|
|
16577
16620
|
','
|
|
16578
16621
|
),
|
|
16579
|
-
issue.
|
|
16622
|
+
issue.issueNumber && React__default.createElement(
|
|
16580
16623
|
'span',
|
|
16581
16624
|
null,
|
|
16582
|
-
'
|
|
16625
|
+
' Issue ' + issue.issueNumber
|
|
16583
16626
|
)
|
|
16584
16627
|
)
|
|
16585
16628
|
)
|
|
@@ -16668,7 +16711,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16668
16711
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification;
|
|
16669
16712
|
|
|
16670
16713
|
|
|
16671
|
-
var getTargeting = function getTargeting(article) {
|
|
16714
|
+
var getTargeting = function getTargeting(article, position) {
|
|
16672
16715
|
var _article$internalTag = article.internalTag,
|
|
16673
16716
|
internalTag = _article$internalTag === undefined ? [] : _article$internalTag,
|
|
16674
16717
|
_article$userDefinedT = article.userDefinedTag,
|
|
@@ -16738,6 +16781,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16738
16781
|
targeting = _extends$2({}, targeting, { campaign_id: props.cache.hyperTargeting });
|
|
16739
16782
|
}
|
|
16740
16783
|
|
|
16784
|
+
if (position && position.length) {
|
|
16785
|
+
targeting['pos'] = position;
|
|
16786
|
+
}
|
|
16741
16787
|
return targeting;
|
|
16742
16788
|
};
|
|
16743
16789
|
|
|
@@ -16871,7 +16917,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16871
16917
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true },
|
|
16872
16918
|
queueData.map(function (article, index) {
|
|
16873
16919
|
if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
|
|
16874
|
-
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article));
|
|
16920
|
+
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
|
|
16875
16921
|
}
|
|
16876
16922
|
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article, cpModificationRequired: cpModificationRequired }));
|
|
16877
16923
|
})
|