@mjhls/mjh-framework 1.0.421 → 1.0.422
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/index.js +64 -73
- package/dist/esm/index.js +65 -73
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -14348,71 +14348,6 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14348
14348
|
}
|
|
14349
14349
|
};
|
|
14350
14350
|
|
|
14351
|
-
/*
|
|
14352
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14353
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14354
|
-
|
|
14355
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14356
|
-
|
|
14357
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14358
|
-
|
|
14359
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14360
|
-
...,
|
|
14361
|
-
'ancestor': parent->parent->identifier,
|
|
14362
|
-
'parent': parent->identifier,
|
|
14363
|
-
'path': identifier
|
|
14364
|
-
},
|
|
14365
|
-
'document_group': documentGroup-> {
|
|
14366
|
-
name,
|
|
14367
|
-
'parent': parent->identifier,
|
|
14368
|
-
'path': identifier.current
|
|
14369
|
-
}
|
|
14370
|
-
*/
|
|
14371
|
-
|
|
14372
|
-
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
14373
|
-
var article = props.article,
|
|
14374
|
-
_props$exclude = props.exclude,
|
|
14375
|
-
exclude = _props$exclude === undefined ? [] : _props$exclude;
|
|
14376
|
-
|
|
14377
|
-
var _props = _extends$2._extends({}, props);
|
|
14378
|
-
delete _props.article;
|
|
14379
|
-
delete _props.exclude;
|
|
14380
|
-
return React__default.createElement(
|
|
14381
|
-
Dropdown,
|
|
14382
|
-
null,
|
|
14383
|
-
React__default.createElement(
|
|
14384
|
-
Dropdown.Toggle,
|
|
14385
|
-
_props,
|
|
14386
|
-
'Related Topics'
|
|
14387
|
-
),
|
|
14388
|
-
React__default.createElement(
|
|
14389
|
-
Dropdown.Menu,
|
|
14390
|
-
null,
|
|
14391
|
-
article.document_group && React__default.createElement(
|
|
14392
|
-
Dropdown.Item,
|
|
14393
|
-
{ href: '/' + article.document_group.parent.current + '/' + article.document_group.path },
|
|
14394
|
-
article.document_group.name
|
|
14395
|
-
),
|
|
14396
|
-
article.content_placement && article.content_placement.length > 0 && article.content_placement.map(function (cp, i) {
|
|
14397
|
-
if (exclude.includes(cp.name)) return;
|
|
14398
|
-
var href = '';
|
|
14399
|
-
if (cp.ancestor) {
|
|
14400
|
-
href = '/' + cp.ancestor + '/' + cp.identifier;
|
|
14401
|
-
} else if (cp.parent) {
|
|
14402
|
-
href = '/' + cp.parent + '/' + cp.identifier;
|
|
14403
|
-
} else {
|
|
14404
|
-
href = '/' + cp.identifier;
|
|
14405
|
-
}
|
|
14406
|
-
return React__default.createElement(
|
|
14407
|
-
Dropdown.Item,
|
|
14408
|
-
{ key: i, href: href },
|
|
14409
|
-
cp.name
|
|
14410
|
-
);
|
|
14411
|
-
})
|
|
14412
|
-
)
|
|
14413
|
-
);
|
|
14414
|
-
};
|
|
14415
|
-
|
|
14416
14351
|
var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
14417
14352
|
var highlightVideoOptions = _ref.highlightVideoOptions;
|
|
14418
14353
|
var accountId = highlightVideoOptions.accountId,
|
|
@@ -21782,6 +21717,56 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
21782
21717
|
};
|
|
21783
21718
|
|
|
21784
21719
|
var Article$1 = function Article(props) {
|
|
21720
|
+
var onVote = function () {
|
|
21721
|
+
var _ref = AdSlot._asyncToGenerator( /*#__PURE__*/AdSlot.regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
21722
|
+
var response, result;
|
|
21723
|
+
return AdSlot.regenerator.wrap(function _callee$(_context) {
|
|
21724
|
+
while (1) {
|
|
21725
|
+
switch (_context.prev = _context.next) {
|
|
21726
|
+
case 0:
|
|
21727
|
+
_context.next = 2;
|
|
21728
|
+
return fetch('/api/polls/vote', {
|
|
21729
|
+
method: 'POST',
|
|
21730
|
+
headers: { 'Content-Type': 'application/json' },
|
|
21731
|
+
body: AdSlot._JSON$stringify({ articleId: props.article._id, nodeKey: nodeKey, selectedChoice: selectedChoice, body: articleBody })
|
|
21732
|
+
});
|
|
21733
|
+
|
|
21734
|
+
case 2:
|
|
21735
|
+
response = _context.sent;
|
|
21736
|
+
|
|
21737
|
+
if (!response.ok) {
|
|
21738
|
+
_context.next = 11;
|
|
21739
|
+
break;
|
|
21740
|
+
}
|
|
21741
|
+
|
|
21742
|
+
_context.next = 6;
|
|
21743
|
+
return response.json();
|
|
21744
|
+
|
|
21745
|
+
case 6:
|
|
21746
|
+
result = _context.sent;
|
|
21747
|
+
|
|
21748
|
+
setShowVotes(true);
|
|
21749
|
+
|
|
21750
|
+
console.log('Voted successfully');
|
|
21751
|
+
_context.next = 12;
|
|
21752
|
+
break;
|
|
21753
|
+
|
|
21754
|
+
case 11:
|
|
21755
|
+
console.log('Unable to vote!');
|
|
21756
|
+
|
|
21757
|
+
case 12:
|
|
21758
|
+
case 'end':
|
|
21759
|
+
return _context.stop();
|
|
21760
|
+
}
|
|
21761
|
+
}
|
|
21762
|
+
}, _callee, this);
|
|
21763
|
+
}));
|
|
21764
|
+
|
|
21765
|
+
return function onVote(_x, _x2) {
|
|
21766
|
+
return _ref.apply(this, arguments);
|
|
21767
|
+
};
|
|
21768
|
+
}();
|
|
21769
|
+
|
|
21785
21770
|
var article = props.article;
|
|
21786
21771
|
var client = props.client,
|
|
21787
21772
|
pageview = props.pageview,
|
|
@@ -21805,6 +21790,7 @@ var Article$1 = function Article(props) {
|
|
|
21805
21790
|
var url = _props$article$url.current,
|
|
21806
21791
|
issue = _props$article.issue,
|
|
21807
21792
|
source = _props$article.source,
|
|
21793
|
+
documentGroup = _props$article.documentGroup,
|
|
21808
21794
|
regionalPages = props.regionalPages,
|
|
21809
21795
|
nationalPage = props.nationalPage,
|
|
21810
21796
|
ISIContent = props.ISIContent,
|
|
@@ -21857,7 +21843,7 @@ var Article$1 = function Article(props) {
|
|
|
21857
21843
|
};
|
|
21858
21844
|
|
|
21859
21845
|
var renderRelevantTopicsDropdown = function renderRelevantTopicsDropdown() {
|
|
21860
|
-
if (content_placement && content_placement.length > 0) {
|
|
21846
|
+
if (content_placement && content_placement.length > 0 || documentGroup) {
|
|
21861
21847
|
return React__default.createElement(
|
|
21862
21848
|
Dropdown,
|
|
21863
21849
|
null,
|
|
@@ -21869,6 +21855,11 @@ var Article$1 = function Article(props) {
|
|
|
21869
21855
|
React__default.createElement(
|
|
21870
21856
|
Dropdown.Menu,
|
|
21871
21857
|
null,
|
|
21858
|
+
documentGroup && documentGroup.parent && React__default.createElement(
|
|
21859
|
+
Dropdown.Item,
|
|
21860
|
+
{ href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
|
|
21861
|
+
documentGroup.name
|
|
21862
|
+
),
|
|
21872
21863
|
content_placement.length > 0 ? content_placement.map(function (cp, index) {
|
|
21873
21864
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
21874
21865
|
var href = '/' + cp_url;
|
|
@@ -21883,6 +21874,7 @@ var Article$1 = function Article(props) {
|
|
|
21883
21874
|
}
|
|
21884
21875
|
return null;
|
|
21885
21876
|
};
|
|
21877
|
+
|
|
21886
21878
|
var form = function form() {
|
|
21887
21879
|
return React__default.createElement(
|
|
21888
21880
|
React__default.Fragment,
|
|
@@ -22002,7 +21994,7 @@ var Article$1 = function Article(props) {
|
|
|
22002
21994
|
React__default.Fragment,
|
|
22003
21995
|
null,
|
|
22004
21996
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
22005
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
21997
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
22006
21998
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
|
|
22007
21999
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22008
22000
|
}, client.config())),
|
|
@@ -22019,7 +22011,7 @@ var Article$1 = function Article(props) {
|
|
|
22019
22011
|
React__default.createElement(AdSlot.DFPAdSlot, _extends$2._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
22020
22012
|
),
|
|
22021
22013
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
22022
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22014
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false),
|
|
22023
22015
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(selectedIndex))),
|
|
22024
22016
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22025
22017
|
}, client.config()))
|
|
@@ -22093,7 +22085,7 @@ var Article$1 = function Article(props) {
|
|
|
22093
22085
|
React__default.Fragment,
|
|
22094
22086
|
null,
|
|
22095
22087
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
22096
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22088
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
22097
22089
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex2))),
|
|
22098
22090
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22099
22091
|
}, client.config())),
|
|
@@ -22104,14 +22096,14 @@ var Article$1 = function Article(props) {
|
|
|
22104
22096
|
React__default.createElement(AdSlot.DFPAdSlot, _extends$2._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
22105
22097
|
),
|
|
22106
22098
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
22107
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22099
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false),
|
|
22108
22100
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex2))),
|
|
22109
22101
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22110
22102
|
}, client.config()))
|
|
22111
22103
|
);
|
|
22112
22104
|
} else {
|
|
22113
22105
|
return React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
22114
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22106
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false),
|
|
22115
22107
|
blocks: articleBody,
|
|
22116
22108
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22117
22109
|
}, client.config()));
|
|
@@ -22227,7 +22219,7 @@ var Article$1 = function Article(props) {
|
|
|
22227
22219
|
null,
|
|
22228
22220
|
source && React__default.createElement(
|
|
22229
22221
|
'p',
|
|
22230
|
-
|
|
22222
|
+
{ style: { display: 'inline-block', padding: '0 .25rem', color: 'var(--franchise-primary, #484848)', borderRadius: '2px', fontWeight: 'bold', border: '2px solid var(--franchise-primary, #484848)' }, className: 'source-label' },
|
|
22231
22223
|
source
|
|
22232
22224
|
)
|
|
22233
22225
|
),
|
|
@@ -22858,7 +22850,6 @@ exports.ADWelcome = ADWelcome;
|
|
|
22858
22850
|
exports.AccordionPanel = AccordionPanel;
|
|
22859
22851
|
exports.AdSlotsProvider = AdSlotsProvider;
|
|
22860
22852
|
exports.AlphabeticList = AlphabeticList;
|
|
22861
|
-
exports.ArticleDetailDropdown = ArticleDetailDropdown;
|
|
22862
22853
|
exports.ArticleQueue = ArticleQueue;
|
|
22863
22854
|
exports.Auth = auth;
|
|
22864
22855
|
exports.Breadcrumbs = Breadcrumbs$1;
|
package/dist/esm/index.js
CHANGED
|
@@ -14345,71 +14345,6 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14345
14345
|
}
|
|
14346
14346
|
};
|
|
14347
14347
|
|
|
14348
|
-
/*
|
|
14349
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14350
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14351
|
-
|
|
14352
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14353
|
-
|
|
14354
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14355
|
-
|
|
14356
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14357
|
-
...,
|
|
14358
|
-
'ancestor': parent->parent->identifier,
|
|
14359
|
-
'parent': parent->identifier,
|
|
14360
|
-
'path': identifier
|
|
14361
|
-
},
|
|
14362
|
-
'document_group': documentGroup-> {
|
|
14363
|
-
name,
|
|
14364
|
-
'parent': parent->identifier,
|
|
14365
|
-
'path': identifier.current
|
|
14366
|
-
}
|
|
14367
|
-
*/
|
|
14368
|
-
|
|
14369
|
-
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
14370
|
-
var article = props.article,
|
|
14371
|
-
_props$exclude = props.exclude,
|
|
14372
|
-
exclude = _props$exclude === undefined ? [] : _props$exclude;
|
|
14373
|
-
|
|
14374
|
-
var _props = _extends$2({}, props);
|
|
14375
|
-
delete _props.article;
|
|
14376
|
-
delete _props.exclude;
|
|
14377
|
-
return React__default.createElement(
|
|
14378
|
-
Dropdown,
|
|
14379
|
-
null,
|
|
14380
|
-
React__default.createElement(
|
|
14381
|
-
Dropdown.Toggle,
|
|
14382
|
-
_props,
|
|
14383
|
-
'Related Topics'
|
|
14384
|
-
),
|
|
14385
|
-
React__default.createElement(
|
|
14386
|
-
Dropdown.Menu,
|
|
14387
|
-
null,
|
|
14388
|
-
article.document_group && React__default.createElement(
|
|
14389
|
-
Dropdown.Item,
|
|
14390
|
-
{ href: '/' + article.document_group.parent.current + '/' + article.document_group.path },
|
|
14391
|
-
article.document_group.name
|
|
14392
|
-
),
|
|
14393
|
-
article.content_placement && article.content_placement.length > 0 && article.content_placement.map(function (cp, i) {
|
|
14394
|
-
if (exclude.includes(cp.name)) return;
|
|
14395
|
-
var href = '';
|
|
14396
|
-
if (cp.ancestor) {
|
|
14397
|
-
href = '/' + cp.ancestor + '/' + cp.identifier;
|
|
14398
|
-
} else if (cp.parent) {
|
|
14399
|
-
href = '/' + cp.parent + '/' + cp.identifier;
|
|
14400
|
-
} else {
|
|
14401
|
-
href = '/' + cp.identifier;
|
|
14402
|
-
}
|
|
14403
|
-
return React__default.createElement(
|
|
14404
|
-
Dropdown.Item,
|
|
14405
|
-
{ key: i, href: href },
|
|
14406
|
-
cp.name
|
|
14407
|
-
);
|
|
14408
|
-
})
|
|
14409
|
-
)
|
|
14410
|
-
);
|
|
14411
|
-
};
|
|
14412
|
-
|
|
14413
14348
|
var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
14414
14349
|
var highlightVideoOptions = _ref.highlightVideoOptions;
|
|
14415
14350
|
var accountId = highlightVideoOptions.accountId,
|
|
@@ -21779,6 +21714,56 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
21779
21714
|
};
|
|
21780
21715
|
|
|
21781
21716
|
var Article$1 = function Article(props) {
|
|
21717
|
+
var onVote = function () {
|
|
21718
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
21719
|
+
var response, result;
|
|
21720
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
21721
|
+
while (1) {
|
|
21722
|
+
switch (_context.prev = _context.next) {
|
|
21723
|
+
case 0:
|
|
21724
|
+
_context.next = 2;
|
|
21725
|
+
return fetch('/api/polls/vote', {
|
|
21726
|
+
method: 'POST',
|
|
21727
|
+
headers: { 'Content-Type': 'application/json' },
|
|
21728
|
+
body: _JSON$stringify({ articleId: props.article._id, nodeKey: nodeKey, selectedChoice: selectedChoice, body: articleBody })
|
|
21729
|
+
});
|
|
21730
|
+
|
|
21731
|
+
case 2:
|
|
21732
|
+
response = _context.sent;
|
|
21733
|
+
|
|
21734
|
+
if (!response.ok) {
|
|
21735
|
+
_context.next = 11;
|
|
21736
|
+
break;
|
|
21737
|
+
}
|
|
21738
|
+
|
|
21739
|
+
_context.next = 6;
|
|
21740
|
+
return response.json();
|
|
21741
|
+
|
|
21742
|
+
case 6:
|
|
21743
|
+
result = _context.sent;
|
|
21744
|
+
|
|
21745
|
+
setShowVotes(true);
|
|
21746
|
+
|
|
21747
|
+
console.log('Voted successfully');
|
|
21748
|
+
_context.next = 12;
|
|
21749
|
+
break;
|
|
21750
|
+
|
|
21751
|
+
case 11:
|
|
21752
|
+
console.log('Unable to vote!');
|
|
21753
|
+
|
|
21754
|
+
case 12:
|
|
21755
|
+
case 'end':
|
|
21756
|
+
return _context.stop();
|
|
21757
|
+
}
|
|
21758
|
+
}
|
|
21759
|
+
}, _callee, this);
|
|
21760
|
+
}));
|
|
21761
|
+
|
|
21762
|
+
return function onVote(_x, _x2) {
|
|
21763
|
+
return _ref.apply(this, arguments);
|
|
21764
|
+
};
|
|
21765
|
+
}();
|
|
21766
|
+
|
|
21782
21767
|
var article = props.article;
|
|
21783
21768
|
var client = props.client,
|
|
21784
21769
|
pageview = props.pageview,
|
|
@@ -21802,6 +21787,7 @@ var Article$1 = function Article(props) {
|
|
|
21802
21787
|
var url = _props$article$url.current,
|
|
21803
21788
|
issue = _props$article.issue,
|
|
21804
21789
|
source = _props$article.source,
|
|
21790
|
+
documentGroup = _props$article.documentGroup,
|
|
21805
21791
|
regionalPages = props.regionalPages,
|
|
21806
21792
|
nationalPage = props.nationalPage,
|
|
21807
21793
|
ISIContent = props.ISIContent,
|
|
@@ -21854,7 +21840,7 @@ var Article$1 = function Article(props) {
|
|
|
21854
21840
|
};
|
|
21855
21841
|
|
|
21856
21842
|
var renderRelevantTopicsDropdown = function renderRelevantTopicsDropdown() {
|
|
21857
|
-
if (content_placement && content_placement.length > 0) {
|
|
21843
|
+
if (content_placement && content_placement.length > 0 || documentGroup) {
|
|
21858
21844
|
return React__default.createElement(
|
|
21859
21845
|
Dropdown,
|
|
21860
21846
|
null,
|
|
@@ -21866,6 +21852,11 @@ var Article$1 = function Article(props) {
|
|
|
21866
21852
|
React__default.createElement(
|
|
21867
21853
|
Dropdown.Menu,
|
|
21868
21854
|
null,
|
|
21855
|
+
documentGroup && documentGroup.parent && React__default.createElement(
|
|
21856
|
+
Dropdown.Item,
|
|
21857
|
+
{ href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
|
|
21858
|
+
documentGroup.name
|
|
21859
|
+
),
|
|
21869
21860
|
content_placement.length > 0 ? content_placement.map(function (cp, index) {
|
|
21870
21861
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
21871
21862
|
var href = '/' + cp_url;
|
|
@@ -21880,6 +21871,7 @@ var Article$1 = function Article(props) {
|
|
|
21880
21871
|
}
|
|
21881
21872
|
return null;
|
|
21882
21873
|
};
|
|
21874
|
+
|
|
21883
21875
|
var form = function form() {
|
|
21884
21876
|
return React__default.createElement(
|
|
21885
21877
|
React__default.Fragment,
|
|
@@ -21999,7 +21991,7 @@ var Article$1 = function Article(props) {
|
|
|
21999
21991
|
React__default.Fragment,
|
|
22000
21992
|
null,
|
|
22001
21993
|
React__default.createElement(BlockContent, _extends$2({
|
|
22002
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
21994
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
22003
21995
|
blocks: [].concat(_toConsumableArray(body.slice(0, selectedIndex))),
|
|
22004
21996
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22005
21997
|
}, client.config())),
|
|
@@ -22016,7 +22008,7 @@ var Article$1 = function Article(props) {
|
|
|
22016
22008
|
React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
22017
22009
|
),
|
|
22018
22010
|
React__default.createElement(BlockContent, _extends$2({
|
|
22019
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22011
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false),
|
|
22020
22012
|
blocks: [].concat(_toConsumableArray(body.slice(selectedIndex))),
|
|
22021
22013
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22022
22014
|
}, client.config()))
|
|
@@ -22090,7 +22082,7 @@ var Article$1 = function Article(props) {
|
|
|
22090
22082
|
React__default.Fragment,
|
|
22091
22083
|
null,
|
|
22092
22084
|
React__default.createElement(BlockContent, _extends$2({
|
|
22093
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22085
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
22094
22086
|
blocks: [].concat(_toConsumableArray(body.slice(0, _selectedIndex2))),
|
|
22095
22087
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22096
22088
|
}, client.config())),
|
|
@@ -22101,14 +22093,14 @@ var Article$1 = function Article(props) {
|
|
|
22101
22093
|
React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
22102
22094
|
),
|
|
22103
22095
|
React__default.createElement(BlockContent, _extends$2({
|
|
22104
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22096
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false),
|
|
22105
22097
|
blocks: [].concat(_toConsumableArray(body.slice(_selectedIndex2))),
|
|
22106
22098
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22107
22099
|
}, client.config()))
|
|
22108
22100
|
);
|
|
22109
22101
|
} else {
|
|
22110
22102
|
return React__default.createElement(BlockContent, _extends$2({
|
|
22111
|
-
serializers: getSerializers(client, pageview, videoAccountIDs,
|
|
22103
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings, currentPage, false),
|
|
22112
22104
|
blocks: articleBody,
|
|
22113
22105
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
22114
22106
|
}, client.config()));
|
|
@@ -22224,7 +22216,7 @@ var Article$1 = function Article(props) {
|
|
|
22224
22216
|
null,
|
|
22225
22217
|
source && React__default.createElement(
|
|
22226
22218
|
'p',
|
|
22227
|
-
|
|
22219
|
+
{ style: { display: 'inline-block', padding: '0 .25rem', color: 'var(--franchise-primary, #484848)', borderRadius: '2px', fontWeight: 'bold', border: '2px solid var(--franchise-primary, #484848)' }, className: 'source-label' },
|
|
22228
22220
|
source
|
|
22229
22221
|
)
|
|
22230
22222
|
),
|
|
@@ -22813,4 +22805,4 @@ var getQuery = function getQuery(type) {
|
|
|
22813
22805
|
}
|
|
22814
22806
|
};
|
|
22815
22807
|
|
|
22816
|
-
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList,
|
|
22808
|
+
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleQueue, auth as Auth, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, PopUpModal, PublicationLanding, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, View, YahooHero, getKeywords, getQuery, getSerializers, getSeriesDetail, getTargeting, urlFor$5 as urlFor };
|