@mjhls/mjh-framework 1.0.405 → 1.0.407
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/{ADInfeed-494f5e6b.js → ADInfeed-5e2bdf8e.js} +1 -1
- package/dist/cjs/{AdSlot-4d22aad4.js → AdSlot-06a37b89.js} +1 -1
- package/dist/cjs/DeckContent.js +2 -2
- package/dist/cjs/{GridContent-62c5d302.js → GridContent-f040c478.js} +1 -1
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/{Normal-4a0d7dfc.js → Normal-1c1c3793.js} +1 -1
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/index.js +17 -8
- package/dist/esm/{ADInfeed-e5cefea5.js → ADInfeed-22b3c761.js} +1 -1
- package/dist/esm/{AdSlot-78e48a2c.js → AdSlot-dabf7e14.js} +1 -1
- package/dist/esm/DeckContent.js +2 -2
- package/dist/esm/{GridContent-2cabe342.js → GridContent-42c3d947.js} +1 -1
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/{Normal-b8c423e3.js → Normal-a975e81f.js} +1 -1
- package/dist/esm/QueueDeckExpanded.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/index.js +19 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var React__default = _interopDefault(React);
|
|
7
7
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
8
|
-
var AdSlot = require('./AdSlot-
|
|
8
|
+
var AdSlot = require('./AdSlot-06a37b89.js');
|
|
9
9
|
|
|
10
10
|
var ADInfeed = function ADInfeed(_ref) {
|
|
11
11
|
var index = _ref.index,
|
|
@@ -1180,7 +1180,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
|
|
|
1180
1180
|
adRendered = _useState2[0],
|
|
1181
1181
|
setAdRendered = _useState2[1];
|
|
1182
1182
|
|
|
1183
|
-
var _useState3 = React.useState(
|
|
1183
|
+
var _useState3 = React.useState(true),
|
|
1184
1184
|
_useState4 = slicedToArray._slicedToArray(_useState3, 2),
|
|
1185
1185
|
adRefreshable = _useState4[0],
|
|
1186
1186
|
setAdRefreshable = _useState4[1];
|
package/dist/cjs/DeckContent.js
CHANGED
|
@@ -31,9 +31,9 @@ var index$1 = require('./index-fa0fb52c.js');
|
|
|
31
31
|
var main = require('./main-bc4db521.js');
|
|
32
32
|
var entities = require('./entities-310b46ee.js');
|
|
33
33
|
require('./slicedToArray-419d467a.js');
|
|
34
|
-
require('./AdSlot-
|
|
34
|
+
require('./AdSlot-06a37b89.js');
|
|
35
35
|
require('./promise-0a493c7a.js');
|
|
36
|
-
var ADInfeed = require('./ADInfeed-
|
|
36
|
+
var ADInfeed = require('./ADInfeed-5e2bdf8e.js');
|
|
37
37
|
|
|
38
38
|
var DeckContent = function (_React$Component) {
|
|
39
39
|
inherits$2._inherits(DeckContent, _React$Component);
|
|
@@ -21,7 +21,7 @@ var index = require('./index-b5eb3ff8.js');
|
|
|
21
21
|
var index$1 = require('./index-fa0fb52c.js');
|
|
22
22
|
var main = require('./main-bc4db521.js');
|
|
23
23
|
var entities = require('./entities-310b46ee.js');
|
|
24
|
-
var ADInfeed = require('./ADInfeed-
|
|
24
|
+
var ADInfeed = require('./ADInfeed-5e2bdf8e.js');
|
|
25
25
|
var get$1 = require('./get-5aa7468c.js');
|
|
26
26
|
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
27
27
|
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -27,11 +27,11 @@ require('./index-fa0fb52c.js');
|
|
|
27
27
|
require('./main-bc4db521.js');
|
|
28
28
|
require('./entities-310b46ee.js');
|
|
29
29
|
require('./slicedToArray-419d467a.js');
|
|
30
|
-
require('./AdSlot-
|
|
30
|
+
require('./AdSlot-06a37b89.js');
|
|
31
31
|
require('./promise-0a493c7a.js');
|
|
32
|
-
require('./ADInfeed-
|
|
32
|
+
require('./ADInfeed-5e2bdf8e.js');
|
|
33
33
|
require('./get-5aa7468c.js');
|
|
34
|
-
var GridContent = require('./GridContent-
|
|
34
|
+
var GridContent = require('./GridContent-f040c478.js');
|
|
35
35
|
require('./AuthorComponent-4706f297.js');
|
|
36
36
|
|
|
37
37
|
|
|
@@ -11,7 +11,7 @@ var Router = require('next/router');
|
|
|
11
11
|
var Router__default = _interopDefault(Router);
|
|
12
12
|
var main = require('./main-bc4db521.js');
|
|
13
13
|
var slicedToArray = require('./slicedToArray-419d467a.js');
|
|
14
|
-
var AdSlot = require('./AdSlot-
|
|
14
|
+
var AdSlot = require('./AdSlot-06a37b89.js');
|
|
15
15
|
var get$1 = require('./get-5aa7468c.js');
|
|
16
16
|
var reactSocialIcons = require('./react-social-icons-cd0d9d3b.js');
|
|
17
17
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -26,9 +26,9 @@ var index$1 = require('./index-fa0fb52c.js');
|
|
|
26
26
|
var main = require('./main-bc4db521.js');
|
|
27
27
|
var entities = require('./entities-310b46ee.js');
|
|
28
28
|
var slicedToArray = require('./slicedToArray-419d467a.js');
|
|
29
|
-
require('./AdSlot-
|
|
29
|
+
require('./AdSlot-06a37b89.js');
|
|
30
30
|
require('./promise-0a493c7a.js');
|
|
31
|
-
var ADInfeed = require('./ADInfeed-
|
|
31
|
+
var ADInfeed = require('./ADInfeed-5e2bdf8e.js');
|
|
32
32
|
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
33
33
|
var reactBootstrap = require('react-bootstrap');
|
|
34
34
|
|
|
@@ -14,14 +14,14 @@ require('react-bootstrap/Col');
|
|
|
14
14
|
require('next/router');
|
|
15
15
|
require('./main-bc4db521.js');
|
|
16
16
|
require('./slicedToArray-419d467a.js');
|
|
17
|
-
require('./AdSlot-
|
|
17
|
+
require('./AdSlot-06a37b89.js');
|
|
18
18
|
require('./promise-0a493c7a.js');
|
|
19
19
|
require('./get-5aa7468c.js');
|
|
20
20
|
require('./react-social-icons-cd0d9d3b.js');
|
|
21
21
|
require('react-bootstrap');
|
|
22
22
|
require('./index.esm-340d3792.js');
|
|
23
23
|
require('react-bootstrap/Button');
|
|
24
|
-
var TemplateNormal = require('./Normal-
|
|
24
|
+
var TemplateNormal = require('./Normal-1c1c3793.js');
|
|
25
25
|
require('react-bootstrap/ListGroup');
|
|
26
26
|
require('next/head');
|
|
27
27
|
require('react-bootstrap/Nav');
|
package/dist/cjs/index.js
CHANGED
|
@@ -33,12 +33,12 @@ var index$1 = require('./index-fa0fb52c.js');
|
|
|
33
33
|
var main = require('./main-bc4db521.js');
|
|
34
34
|
var entities = require('./entities-310b46ee.js');
|
|
35
35
|
var slicedToArray = require('./slicedToArray-419d467a.js');
|
|
36
|
-
var AdSlot = require('./AdSlot-
|
|
36
|
+
var AdSlot = require('./AdSlot-06a37b89.js');
|
|
37
37
|
var promise = require('./promise-0a493c7a.js');
|
|
38
|
-
require('./ADInfeed-
|
|
38
|
+
require('./ADInfeed-5e2bdf8e.js');
|
|
39
39
|
var DeckContent = require('./DeckContent.js');
|
|
40
40
|
var get$1 = require('./get-5aa7468c.js');
|
|
41
|
-
var GridContent = require('./GridContent-
|
|
41
|
+
var GridContent = require('./GridContent-f040c478.js');
|
|
42
42
|
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
43
43
|
var DeckQueue = require('./DeckQueue.js');
|
|
44
44
|
require('react-bootstrap/Media');
|
|
@@ -59,7 +59,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
59
59
|
require('react-bootstrap/Badge');
|
|
60
60
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
61
61
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
62
|
-
var TemplateNormal = require('./Normal-
|
|
62
|
+
var TemplateNormal = require('./Normal-1c1c3793.js');
|
|
63
63
|
require('react-bootstrap/ListGroup');
|
|
64
64
|
var Head = _interopDefault(require('next/head'));
|
|
65
65
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -21910,7 +21910,9 @@ var Article$1 = function Article(props) {
|
|
|
21910
21910
|
parent.style.display = 'none';
|
|
21911
21911
|
setContextualADFlag(false);
|
|
21912
21912
|
} else {
|
|
21913
|
-
|
|
21913
|
+
if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
|
|
21914
|
+
setContextualADFlag(true);
|
|
21915
|
+
}
|
|
21914
21916
|
}
|
|
21915
21917
|
};
|
|
21916
21918
|
|
|
@@ -21968,7 +21970,9 @@ var Article$1 = function Article(props) {
|
|
|
21968
21970
|
parent.style.display = 'none';
|
|
21969
21971
|
setContextualADFlag(false);
|
|
21970
21972
|
} else {
|
|
21971
|
-
|
|
21973
|
+
if (body && body[1] && body[1]._type === 'figure') {
|
|
21974
|
+
setContextualADFlag(true);
|
|
21975
|
+
}
|
|
21972
21976
|
}
|
|
21973
21977
|
};
|
|
21974
21978
|
|
|
@@ -21980,12 +21984,13 @@ var Article$1 = function Article(props) {
|
|
|
21980
21984
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex))),
|
|
21981
21985
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
21982
21986
|
}, client.config())),
|
|
21983
|
-
React__default.createElement('span', { className: 'clearfix' }),
|
|
21987
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
21984
21988
|
React__default.createElement(
|
|
21985
21989
|
'div',
|
|
21986
21990
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
21987
21991
|
React__default.createElement(AdSlot.DFPAdSlot, _extends$2._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
|
|
21988
21992
|
),
|
|
21993
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
21989
21994
|
React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
|
|
21990
21995
|
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
|
|
21991
21996
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex))),
|
|
@@ -22439,16 +22444,20 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22439
22444
|
setQueueData = _useState2[1];
|
|
22440
22445
|
|
|
22441
22446
|
var refreshAD = function refreshAD(path) {
|
|
22447
|
+
|
|
22442
22448
|
if (!main.main_39) {
|
|
22443
22449
|
var activeArticle = queueData.find(function (item) {
|
|
22444
22450
|
return item.url.current === path;
|
|
22445
22451
|
});
|
|
22446
|
-
|
|
22452
|
+
|
|
22453
|
+
var targeting = getTargeting({ article: activeArticle, position: props.position, prevUrl: props.prevUrl });
|
|
22454
|
+
|
|
22447
22455
|
debounce.lib_3.getGoogletag().then(function (googletag) {
|
|
22448
22456
|
if (window.googletag && googletag.pubadsReady) {
|
|
22449
22457
|
var slots = googletag.pubads().getSlots();
|
|
22450
22458
|
slots.forEach(function (slot) {
|
|
22451
22459
|
var pos = slot.getTargeting('pos');
|
|
22460
|
+
|
|
22452
22461
|
slot.clearTargeting();
|
|
22453
22462
|
_Object$keys(targeting).forEach(function (key) {
|
|
22454
22463
|
slot.setTargeting(key, targeting[key]);
|
|
@@ -1175,7 +1175,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
|
|
|
1175
1175
|
adRendered = _useState2[0],
|
|
1176
1176
|
setAdRendered = _useState2[1];
|
|
1177
1177
|
|
|
1178
|
-
var _useState3 = useState(
|
|
1178
|
+
var _useState3 = useState(true),
|
|
1179
1179
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
1180
1180
|
adRefreshable = _useState4[0],
|
|
1181
1181
|
setAdRefreshable = _useState4[1];
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -25,9 +25,9 @@ import { L as LazyLoad } from './index-5f9f807a.js';
|
|
|
25
25
|
import { m as main_39 } from './main-7d1b3c98.js';
|
|
26
26
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
27
27
|
import './slicedToArray-04e02710.js';
|
|
28
|
-
import './AdSlot-
|
|
28
|
+
import './AdSlot-dabf7e14.js';
|
|
29
29
|
import './promise-2592a80a.js';
|
|
30
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
30
|
+
import { A as ADInfeed } from './ADInfeed-22b3c761.js';
|
|
31
31
|
|
|
32
32
|
var DeckContent = function (_React$Component) {
|
|
33
33
|
_inherits(DeckContent, _React$Component);
|
|
@@ -15,7 +15,7 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
|
15
15
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
16
|
import { m as main_39 } from './main-7d1b3c98.js';
|
|
17
17
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
18
|
+
import { A as ADInfeed } from './ADInfeed-22b3c761.js';
|
|
19
19
|
import { g as get_1 } from './get-53653403.js';
|
|
20
20
|
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
21
21
|
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -25,9 +25,9 @@ import './index-5f9f807a.js';
|
|
|
25
25
|
import './main-7d1b3c98.js';
|
|
26
26
|
import './entities-7cc3bf45.js';
|
|
27
27
|
import './slicedToArray-04e02710.js';
|
|
28
|
-
import './AdSlot-
|
|
28
|
+
import './AdSlot-dabf7e14.js';
|
|
29
29
|
import './promise-2592a80a.js';
|
|
30
|
-
import './ADInfeed-
|
|
30
|
+
import './ADInfeed-22b3c761.js';
|
|
31
31
|
import './get-53653403.js';
|
|
32
|
-
export { G as default } from './GridContent-
|
|
32
|
+
export { G as default } from './GridContent-42c3d947.js';
|
|
33
33
|
import './AuthorComponent-c9e46673.js';
|
|
@@ -5,7 +5,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import { m as main_39, c as main_40 } from './main-7d1b3c98.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
8
|
-
import { D as DFPAdSlot } from './AdSlot-
|
|
8
|
+
import { D as DFPAdSlot } from './AdSlot-dabf7e14.js';
|
|
9
9
|
import { g as get_1 } from './get-53653403.js';
|
|
10
10
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
11
11
|
import { Dropdown } from 'react-bootstrap';
|
|
@@ -20,9 +20,9 @@ import { L as LazyLoad } from './index-5f9f807a.js';
|
|
|
20
20
|
import { m as main_39 } from './main-7d1b3c98.js';
|
|
21
21
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
22
22
|
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
23
|
-
import './AdSlot-
|
|
23
|
+
import './AdSlot-dabf7e14.js';
|
|
24
24
|
import './promise-2592a80a.js';
|
|
25
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
25
|
+
import { A as ADInfeed } from './ADInfeed-22b3c761.js';
|
|
26
26
|
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
27
27
|
import { Container, Media } from 'react-bootstrap';
|
|
28
28
|
|
|
@@ -12,14 +12,14 @@ import 'react-bootstrap/Col';
|
|
|
12
12
|
import 'next/router';
|
|
13
13
|
import './main-7d1b3c98.js';
|
|
14
14
|
import './slicedToArray-04e02710.js';
|
|
15
|
-
import './AdSlot-
|
|
15
|
+
import './AdSlot-dabf7e14.js';
|
|
16
16
|
import './promise-2592a80a.js';
|
|
17
17
|
import './get-53653403.js';
|
|
18
18
|
import './react-social-icons-a7d5c5c7.js';
|
|
19
19
|
import 'react-bootstrap';
|
|
20
20
|
import './index.esm-536609db.js';
|
|
21
21
|
import 'react-bootstrap/Button';
|
|
22
|
-
export { T as default } from './Normal-
|
|
22
|
+
export { T as default } from './Normal-a975e81f.js';
|
|
23
23
|
import 'react-bootstrap/ListGroup';
|
|
24
24
|
import 'next/head';
|
|
25
25
|
import 'react-bootstrap/Nav';
|
package/dist/esm/index.js
CHANGED
|
@@ -25,13 +25,13 @@ import { L as LazyLoad } from './index-5f9f807a.js';
|
|
|
25
25
|
import { m as main_39, a as main_16, b as main_38 } from './main-7d1b3c98.js';
|
|
26
26
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
27
27
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-04e02710.js';
|
|
28
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
29
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
28
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-dabf7e14.js';
|
|
29
|
+
export { D as AdSlot, B as Beam } from './AdSlot-dabf7e14.js';
|
|
30
30
|
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './promise-2592a80a.js';
|
|
31
|
-
import './ADInfeed-
|
|
31
|
+
import './ADInfeed-22b3c761.js';
|
|
32
32
|
export { default as DeckContent } from './DeckContent.js';
|
|
33
33
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
|
|
34
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
34
|
+
export { A as AD, G as GridContent } from './GridContent-42c3d947.js';
|
|
35
35
|
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
36
36
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
37
37
|
import 'react-bootstrap/Media';
|
|
@@ -54,8 +54,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
54
54
|
import 'react-bootstrap/Badge';
|
|
55
55
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
56
56
|
import Spinner from 'react-bootstrap/Spinner';
|
|
57
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
58
|
-
export { A as AD728x90, g as ADSponsoredResources, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, h as SideFooter, T as TemplateNormal } from './Normal-
|
|
57
|
+
import { M as MdPictureAsPdf } from './Normal-a975e81f.js';
|
|
58
|
+
export { A as AD728x90, g as ADSponsoredResources, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, h as SideFooter, T as TemplateNormal } from './Normal-a975e81f.js';
|
|
59
59
|
import 'react-bootstrap/ListGroup';
|
|
60
60
|
import Head from 'next/head';
|
|
61
61
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -21907,7 +21907,9 @@ var Article$1 = function Article(props) {
|
|
|
21907
21907
|
parent.style.display = 'none';
|
|
21908
21908
|
setContextualADFlag(false);
|
|
21909
21909
|
} else {
|
|
21910
|
-
|
|
21910
|
+
if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
|
|
21911
|
+
setContextualADFlag(true);
|
|
21912
|
+
}
|
|
21911
21913
|
}
|
|
21912
21914
|
};
|
|
21913
21915
|
|
|
@@ -21965,7 +21967,9 @@ var Article$1 = function Article(props) {
|
|
|
21965
21967
|
parent.style.display = 'none';
|
|
21966
21968
|
setContextualADFlag(false);
|
|
21967
21969
|
} else {
|
|
21968
|
-
|
|
21970
|
+
if (body && body[1] && body[1]._type === 'figure') {
|
|
21971
|
+
setContextualADFlag(true);
|
|
21972
|
+
}
|
|
21969
21973
|
}
|
|
21970
21974
|
};
|
|
21971
21975
|
|
|
@@ -21977,12 +21981,13 @@ var Article$1 = function Article(props) {
|
|
|
21977
21981
|
blocks: [].concat(_toConsumableArray(body.slice(0, _selectedIndex))),
|
|
21978
21982
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
21979
21983
|
}, client.config())),
|
|
21980
|
-
React__default.createElement('span', { className: 'clearfix' }),
|
|
21984
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
21981
21985
|
React__default.createElement(
|
|
21982
21986
|
'div',
|
|
21983
21987
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
21984
21988
|
React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
|
|
21985
21989
|
),
|
|
21990
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
21986
21991
|
React__default.createElement(BlockContent, _extends$2({
|
|
21987
21992
|
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
|
|
21988
21993
|
blocks: [].concat(_toConsumableArray(body.slice(_selectedIndex))),
|
|
@@ -22436,16 +22441,20 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22436
22441
|
setQueueData = _useState2[1];
|
|
22437
22442
|
|
|
22438
22443
|
var refreshAD = function refreshAD(path) {
|
|
22444
|
+
|
|
22439
22445
|
if (!main_39) {
|
|
22440
22446
|
var activeArticle = queueData.find(function (item) {
|
|
22441
22447
|
return item.url.current === path;
|
|
22442
22448
|
});
|
|
22443
|
-
|
|
22449
|
+
|
|
22450
|
+
var targeting = getTargeting({ article: activeArticle, position: props.position, prevUrl: props.prevUrl });
|
|
22451
|
+
|
|
22444
22452
|
lib_3.getGoogletag().then(function (googletag) {
|
|
22445
22453
|
if (window.googletag && googletag.pubadsReady) {
|
|
22446
22454
|
var slots = googletag.pubads().getSlots();
|
|
22447
22455
|
slots.forEach(function (slot) {
|
|
22448
22456
|
var pos = slot.getTargeting('pos');
|
|
22457
|
+
|
|
22449
22458
|
slot.clearTargeting();
|
|
22450
22459
|
_Object$keys(targeting).forEach(function (key) {
|
|
22451
22460
|
slot.setTargeting(key, targeting[key]);
|