@mjhls/mjh-framework 1.0.646 → 1.0.647

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.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -2
  4. package/dist/cjs/AD300x250x600.js +2 -2
  5. package/dist/cjs/AD728x90.js +2 -2
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/ArticleSeriesListing.js +2 -2
  14. package/dist/cjs/CMEDeck.js +2 -2
  15. package/dist/cjs/Column2.js +2 -3
  16. package/dist/cjs/Column3.js +3 -4
  17. package/dist/cjs/DeckContent.js +3 -3
  18. package/dist/cjs/DeckQueue.js +3 -4
  19. package/dist/cjs/{Dfp-ffaf5981.js → Dfp-b2bc3b97.js} +2 -2
  20. package/dist/cjs/ExternalResources.js +3 -3
  21. package/dist/cjs/GridContent.js +5 -6
  22. package/dist/cjs/IssueLanding.js +4 -4
  23. package/dist/cjs/LeftNav.js +2 -2
  24. package/dist/cjs/MasterDeck.js +4 -4
  25. package/dist/cjs/PartnerDetailListing.js +5 -5
  26. package/dist/cjs/QueueDeckExpanded.js +4 -4
  27. package/dist/cjs/SideFooter.js +2 -3
  28. package/dist/cjs/TemplateNormal.js +3 -4
  29. package/dist/cjs/VideoSeriesListing.js +2 -2
  30. package/dist/cjs/View.js +33 -27
  31. package/dist/cjs/{debounce-32e57002.js → debounce-eb287781.js} +1 -2
  32. package/dist/cjs/{get-5dfcdc33.js → get-68c52cb1.js} +90 -7
  33. package/dist/cjs/getQuery.js +2 -2
  34. package/dist/cjs/getSerializers.js +3 -3
  35. package/dist/cjs/{getTargeting-87eb9994.js → getTargeting-fee8c429.js} +32 -1
  36. package/dist/cjs/getTargeting.js +1 -1
  37. package/dist/cjs/index.js +9 -12
  38. package/dist/cjs/{isSymbol-488934a7.js → isSymbol-04666465.js} +0 -2
  39. package/dist/esm/AD.js +1 -1
  40. package/dist/esm/AD300x250.js +2 -2
  41. package/dist/esm/AD300x250x600.js +2 -2
  42. package/dist/esm/AD728x90.js +2 -2
  43. package/dist/esm/ADFloatingFooter.js +2 -2
  44. package/dist/esm/ADGutter.js +2 -2
  45. package/dist/esm/ADSkyscraper.js +2 -2
  46. package/dist/esm/ADSponsoredResources.js +2 -2
  47. package/dist/esm/ADWebcast.js +2 -2
  48. package/dist/esm/ADWelcome.js +2 -2
  49. package/dist/esm/AdSlot.js +2 -2
  50. package/dist/esm/ArticleSeriesListing.js +2 -2
  51. package/dist/esm/CMEDeck.js +2 -2
  52. package/dist/esm/Column2.js +2 -3
  53. package/dist/esm/Column3.js +3 -4
  54. package/dist/esm/DeckContent.js +3 -3
  55. package/dist/esm/DeckQueue.js +3 -4
  56. package/dist/esm/{Dfp-4f966af0.js → Dfp-43d61e01.js} +2 -2
  57. package/dist/esm/ExternalResources.js +3 -3
  58. package/dist/esm/GridContent.js +5 -6
  59. package/dist/esm/IssueLanding.js +4 -4
  60. package/dist/esm/LeftNav.js +2 -2
  61. package/dist/esm/MasterDeck.js +4 -4
  62. package/dist/esm/PartnerDetailListing.js +5 -5
  63. package/dist/esm/QueueDeckExpanded.js +4 -4
  64. package/dist/esm/SideFooter.js +2 -3
  65. package/dist/esm/TemplateNormal.js +3 -4
  66. package/dist/esm/VideoSeriesListing.js +2 -2
  67. package/dist/esm/View.js +30 -24
  68. package/dist/esm/{debounce-a0d9abca.js → debounce-1a993acf.js} +2 -2
  69. package/dist/esm/{get-58d2f7cc.js → get-5ee14cda.js} +85 -2
  70. package/dist/esm/getQuery.js +2 -2
  71. package/dist/esm/getSerializers.js +3 -3
  72. package/dist/esm/{getTargeting-3cc3f97d.js → getTargeting-11d623e4.js} +32 -1
  73. package/dist/esm/getTargeting.js +1 -1
  74. package/dist/esm/index.js +8 -10
  75. package/dist/esm/{isSymbol-47f5ff3b.js → isSymbol-807e927e.js} +1 -1
  76. package/package.json +1 -1
  77. package/dist/cjs/ArticleQueue.js +0 -1689
  78. package/dist/cjs/_arrayMap-3b4a0f75.js +0 -91
  79. package/dist/esm/ArticleQueue.js +0 -1684
  80. package/dist/esm/_arrayMap-818441dd.js +0 -87
  81. /package/dist/cjs/{ADInfeed-350decaa.js → ADInfeed-eaa6c661.js} +0 -0
  82. /package/dist/cjs/{ADlgInfeed-7d61609b.js → ADlgInfeed-f25eb4f7.js} +0 -0
  83. /package/dist/cjs/{index-1620daac.js → index-4f22007d.js} +0 -0
  84. /package/dist/esm/{ADInfeed-fd7a62b1.js → ADInfeed-3c4773f8.js} +0 -0
  85. /package/dist/esm/{ADlgInfeed-79c771d6.js → ADlgInfeed-5a52301f.js} +0 -0
  86. /package/dist/esm/{index-fe4d6d6e.js → index-4b48a31f.js} +0 -0
@@ -1,1689 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
6
- require('./_to-object-329a650b.js');
7
- require('./es6.string.iterator-cc0bbaa4.js');
8
- require('./_library-dd23b178.js');
9
- require('./_iter-detect-60b2f026.js');
10
- var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
11
- require('./core.get-iterator-method-f62321d4.js');
12
- require('./_object-pie-68c5bcbc.js');
13
- var _extends = require('./extends-60837c34.js');
14
- require('./_object-sap-5e74ba08.js');
15
- require('./inherits-513d81cd.js');
16
- require('./define-property-f4d12f4e.js');
17
- require('./web.dom.iterable-a0e279c1.js');
18
- var _typeof = require('./typeof-725500bc.js');
19
- require('./_is-array-754e012d.js');
20
- var React = require('react');
21
- var React__default = _interopDefault(React);
22
- var index = require('./index-2d0a4911.js');
23
- require('prop-types');
24
- require('react-bootstrap/Row');
25
- require('react-bootstrap/Col');
26
- var moment = require('./moment-66a6a284.js');
27
- require('next/router');
28
- var isSymbol = require('./isSymbol-488934a7.js');
29
- var debounce = require('./debounce-32e57002.js');
30
- var index_es = require('./index.es-ab3f2690.js');
31
- require('react-dom');
32
- var index$1 = require('./index-b5eb3ff8.js');
33
- require('./index-da796b8c.js');
34
- var main = require('./main-b6c96c8d.js');
35
- require('./entities-310b46ee.js');
36
- var stringify = require('./stringify-7c5aff47.js');
37
- var slicedToArray = require('./slicedToArray-8f385299.js');
38
- require('./asyncToGenerator-533d476a.js');
39
- require('./_set-species-f92c67c5.js');
40
- require('./beam-7217b7e7.js');
41
- var AdSlot = require('./AdSlot.js');
42
- var _arrayMap = require('./_arrayMap-3b4a0f75.js');
43
- var BlockContent = require('./BlockContent-88f69acd.js');
44
- require('./smoothscroll-95231a70.js');
45
- require('./GroupDeck.js');
46
- require('react-bootstrap');
47
- require('react-bootstrap/Button');
48
- var getSerializers = require('./index-1620daac.js');
49
- require('./util-f2c1b65b.js');
50
- require('./brightcove-react-player-loader.es-156bd4d6.js');
51
- require('react-bootstrap/Pagination');
52
- var Head = _interopDefault(require('next/head'));
53
- require('react-share');
54
- var SocialShare = require('./SocialShare.js');
55
- var keys$1 = require('./keys-a586b7a0.js');
56
- var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
57
- var getKeywords = require('./getKeywords.js');
58
-
59
- /**
60
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
61
- * support for iteratee shorthands.
62
- *
63
- * @private
64
- * @param {Array} array The array to inspect.
65
- * @param {Function} predicate The function invoked per iteration.
66
- * @param {number} fromIndex The index to search from.
67
- * @param {boolean} [fromRight] Specify iterating from right to left.
68
- * @returns {number} Returns the index of the matched value, else `-1`.
69
- */
70
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
71
- var length = array.length,
72
- index = fromIndex + (fromRight ? 1 : -1);
73
-
74
- while ((fromRight ? index-- : ++index < length)) {
75
- if (predicate(array[index], index, array)) {
76
- return index;
77
- }
78
- }
79
- return -1;
80
- }
81
-
82
- var _baseFindIndex = baseFindIndex;
83
-
84
- /**
85
- * The base implementation of `_.isNaN` without support for number objects.
86
- *
87
- * @private
88
- * @param {*} value The value to check.
89
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
90
- */
91
- function baseIsNaN(value) {
92
- return value !== value;
93
- }
94
-
95
- var _baseIsNaN = baseIsNaN;
96
-
97
- /**
98
- * A specialized version of `_.indexOf` which performs strict equality
99
- * comparisons of values, i.e. `===`.
100
- *
101
- * @private
102
- * @param {Array} array The array to inspect.
103
- * @param {*} value The value to search for.
104
- * @param {number} fromIndex The index to search from.
105
- * @returns {number} Returns the index of the matched value, else `-1`.
106
- */
107
- function strictIndexOf(array, value, fromIndex) {
108
- var index = fromIndex - 1,
109
- length = array.length;
110
-
111
- while (++index < length) {
112
- if (array[index] === value) {
113
- return index;
114
- }
115
- }
116
- return -1;
117
- }
118
-
119
- var _strictIndexOf = strictIndexOf;
120
-
121
- /**
122
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
123
- *
124
- * @private
125
- * @param {Array} array The array to inspect.
126
- * @param {*} value The value to search for.
127
- * @param {number} fromIndex The index to search from.
128
- * @returns {number} Returns the index of the matched value, else `-1`.
129
- */
130
- function baseIndexOf(array, value, fromIndex) {
131
- return value === value
132
- ? _strictIndexOf(array, value, fromIndex)
133
- : _baseFindIndex(array, _baseIsNaN, fromIndex);
134
- }
135
-
136
- var _baseIndexOf = baseIndexOf;
137
-
138
- /** Used as references for various `Number` constants. */
139
- var MAX_SAFE_INTEGER = 9007199254740991;
140
-
141
- /**
142
- * Checks if `value` is a valid array-like length.
143
- *
144
- * **Note:** This method is loosely based on
145
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
146
- *
147
- * @static
148
- * @memberOf _
149
- * @since 4.0.0
150
- * @category Lang
151
- * @param {*} value The value to check.
152
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
153
- * @example
154
- *
155
- * _.isLength(3);
156
- * // => true
157
- *
158
- * _.isLength(Number.MIN_VALUE);
159
- * // => false
160
- *
161
- * _.isLength(Infinity);
162
- * // => false
163
- *
164
- * _.isLength('3');
165
- * // => false
166
- */
167
- function isLength(value) {
168
- return typeof value == 'number' &&
169
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
170
- }
171
-
172
- var isLength_1 = isLength;
173
-
174
- /**
175
- * Checks if `value` is array-like. A value is considered array-like if it's
176
- * not a function and has a `value.length` that's an integer greater than or
177
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
178
- *
179
- * @static
180
- * @memberOf _
181
- * @since 4.0.0
182
- * @category Lang
183
- * @param {*} value The value to check.
184
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
185
- * @example
186
- *
187
- * _.isArrayLike([1, 2, 3]);
188
- * // => true
189
- *
190
- * _.isArrayLike(document.body.children);
191
- * // => true
192
- *
193
- * _.isArrayLike('abc');
194
- * // => true
195
- *
196
- * _.isArrayLike(_.noop);
197
- * // => false
198
- */
199
- function isArrayLike(value) {
200
- return value != null && isLength_1(value.length) && !_arrayMap.isFunction_1(value);
201
- }
202
-
203
- var isArrayLike_1 = isArrayLike;
204
-
205
- /** `Object#toString` result references. */
206
- var stringTag = '[object String]';
207
-
208
- /**
209
- * Checks if `value` is classified as a `String` primitive or object.
210
- *
211
- * @static
212
- * @since 0.1.0
213
- * @memberOf _
214
- * @category Lang
215
- * @param {*} value The value to check.
216
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
217
- * @example
218
- *
219
- * _.isString('abc');
220
- * // => true
221
- *
222
- * _.isString(1);
223
- * // => false
224
- */
225
- function isString(value) {
226
- return typeof value == 'string' ||
227
- (!_arrayMap.isArray_1(value) && isSymbol.isObjectLike_1(value) && isSymbol._baseGetTag(value) == stringTag);
228
- }
229
-
230
- var isString_1 = isString;
231
-
232
- /** Used as references for various `Number` constants. */
233
- var INFINITY = 1 / 0,
234
- MAX_INTEGER = 1.7976931348623157e+308;
235
-
236
- /**
237
- * Converts `value` to a finite number.
238
- *
239
- * @static
240
- * @memberOf _
241
- * @since 4.12.0
242
- * @category Lang
243
- * @param {*} value The value to convert.
244
- * @returns {number} Returns the converted number.
245
- * @example
246
- *
247
- * _.toFinite(3.2);
248
- * // => 3.2
249
- *
250
- * _.toFinite(Number.MIN_VALUE);
251
- * // => 5e-324
252
- *
253
- * _.toFinite(Infinity);
254
- * // => 1.7976931348623157e+308
255
- *
256
- * _.toFinite('3.2');
257
- * // => 3.2
258
- */
259
- function toFinite(value) {
260
- if (!value) {
261
- return value === 0 ? value : 0;
262
- }
263
- value = debounce.toNumber_1(value);
264
- if (value === INFINITY || value === -INFINITY) {
265
- var sign = (value < 0 ? -1 : 1);
266
- return sign * MAX_INTEGER;
267
- }
268
- return value === value ? value : 0;
269
- }
270
-
271
- var toFinite_1 = toFinite;
272
-
273
- /**
274
- * Converts `value` to an integer.
275
- *
276
- * **Note:** This method is loosely based on
277
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
278
- *
279
- * @static
280
- * @memberOf _
281
- * @since 4.0.0
282
- * @category Lang
283
- * @param {*} value The value to convert.
284
- * @returns {number} Returns the converted integer.
285
- * @example
286
- *
287
- * _.toInteger(3.2);
288
- * // => 3
289
- *
290
- * _.toInteger(Number.MIN_VALUE);
291
- * // => 0
292
- *
293
- * _.toInteger(Infinity);
294
- * // => 1.7976931348623157e+308
295
- *
296
- * _.toInteger('3.2');
297
- * // => 3
298
- */
299
- function toInteger(value) {
300
- var result = toFinite_1(value),
301
- remainder = result % 1;
302
-
303
- return result === result ? (remainder ? result - remainder : result) : 0;
304
- }
305
-
306
- var toInteger_1 = toInteger;
307
-
308
- /**
309
- * The base implementation of `_.values` and `_.valuesIn` which creates an
310
- * array of `object` property values corresponding to the property names
311
- * of `props`.
312
- *
313
- * @private
314
- * @param {Object} object The object to query.
315
- * @param {Array} props The property names to get values for.
316
- * @returns {Object} Returns the array of property values.
317
- */
318
- function baseValues(object, props) {
319
- return _arrayMap._arrayMap(props, function(key) {
320
- return object[key];
321
- });
322
- }
323
-
324
- var _baseValues = baseValues;
325
-
326
- /**
327
- * The base implementation of `_.times` without support for iteratee shorthands
328
- * or max array length checks.
329
- *
330
- * @private
331
- * @param {number} n The number of times to invoke `iteratee`.
332
- * @param {Function} iteratee The function invoked per iteration.
333
- * @returns {Array} Returns the array of results.
334
- */
335
- function baseTimes(n, iteratee) {
336
- var index = -1,
337
- result = Array(n);
338
-
339
- while (++index < n) {
340
- result[index] = iteratee(index);
341
- }
342
- return result;
343
- }
344
-
345
- var _baseTimes = baseTimes;
346
-
347
- /** `Object#toString` result references. */
348
- var argsTag = '[object Arguments]';
349
-
350
- /**
351
- * The base implementation of `_.isArguments`.
352
- *
353
- * @private
354
- * @param {*} value The value to check.
355
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
356
- */
357
- function baseIsArguments(value) {
358
- return isSymbol.isObjectLike_1(value) && isSymbol._baseGetTag(value) == argsTag;
359
- }
360
-
361
- var _baseIsArguments = baseIsArguments;
362
-
363
- /** Used for built-in method references. */
364
- var objectProto = Object.prototype;
365
-
366
- /** Used to check objects for own properties. */
367
- var hasOwnProperty = objectProto.hasOwnProperty;
368
-
369
- /** Built-in value references. */
370
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
371
-
372
- /**
373
- * Checks if `value` is likely an `arguments` object.
374
- *
375
- * @static
376
- * @memberOf _
377
- * @since 0.1.0
378
- * @category Lang
379
- * @param {*} value The value to check.
380
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
381
- * else `false`.
382
- * @example
383
- *
384
- * _.isArguments(function() { return arguments; }());
385
- * // => true
386
- *
387
- * _.isArguments([1, 2, 3]);
388
- * // => false
389
- */
390
- var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
391
- return isSymbol.isObjectLike_1(value) && hasOwnProperty.call(value, 'callee') &&
392
- !propertyIsEnumerable.call(value, 'callee');
393
- };
394
-
395
- var isArguments_1 = isArguments;
396
-
397
- /**
398
- * This method returns `false`.
399
- *
400
- * @static
401
- * @memberOf _
402
- * @since 4.13.0
403
- * @category Util
404
- * @returns {boolean} Returns `false`.
405
- * @example
406
- *
407
- * _.times(2, _.stubFalse);
408
- * // => [false, false]
409
- */
410
- function stubFalse() {
411
- return false;
412
- }
413
-
414
- var stubFalse_1 = stubFalse;
415
-
416
- var isBuffer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
417
- /** Detect free variable `exports`. */
418
- var freeExports = exports && !exports.nodeType && exports;
419
-
420
- /** Detect free variable `module`. */
421
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
422
-
423
- /** Detect the popular CommonJS extension `module.exports`. */
424
- var moduleExports = freeModule && freeModule.exports === freeExports;
425
-
426
- /** Built-in value references. */
427
- var Buffer = moduleExports ? isSymbol._root.Buffer : undefined;
428
-
429
- /* Built-in method references for those with the same name as other `lodash` methods. */
430
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
431
-
432
- /**
433
- * Checks if `value` is a buffer.
434
- *
435
- * @static
436
- * @memberOf _
437
- * @since 4.3.0
438
- * @category Lang
439
- * @param {*} value The value to check.
440
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
441
- * @example
442
- *
443
- * _.isBuffer(new Buffer(2));
444
- * // => true
445
- *
446
- * _.isBuffer(new Uint8Array(2));
447
- * // => false
448
- */
449
- var isBuffer = nativeIsBuffer || stubFalse_1;
450
-
451
- module.exports = isBuffer;
452
- });
453
-
454
- /** Used as references for various `Number` constants. */
455
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
456
-
457
- /** Used to detect unsigned integer values. */
458
- var reIsUint = /^(?:0|[1-9]\d*)$/;
459
-
460
- /**
461
- * Checks if `value` is a valid array-like index.
462
- *
463
- * @private
464
- * @param {*} value The value to check.
465
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
466
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
467
- */
468
- function isIndex(value, length) {
469
- var type = typeof value;
470
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
471
-
472
- return !!length &&
473
- (type == 'number' ||
474
- (type != 'symbol' && reIsUint.test(value))) &&
475
- (value > -1 && value % 1 == 0 && value < length);
476
- }
477
-
478
- var _isIndex = isIndex;
479
-
480
- /** `Object#toString` result references. */
481
- var argsTag$1 = '[object Arguments]',
482
- arrayTag = '[object Array]',
483
- boolTag = '[object Boolean]',
484
- dateTag = '[object Date]',
485
- errorTag = '[object Error]',
486
- funcTag = '[object Function]',
487
- mapTag = '[object Map]',
488
- numberTag = '[object Number]',
489
- objectTag = '[object Object]',
490
- regexpTag = '[object RegExp]',
491
- setTag = '[object Set]',
492
- stringTag$1 = '[object String]',
493
- weakMapTag = '[object WeakMap]';
494
-
495
- var arrayBufferTag = '[object ArrayBuffer]',
496
- dataViewTag = '[object DataView]',
497
- float32Tag = '[object Float32Array]',
498
- float64Tag = '[object Float64Array]',
499
- int8Tag = '[object Int8Array]',
500
- int16Tag = '[object Int16Array]',
501
- int32Tag = '[object Int32Array]',
502
- uint8Tag = '[object Uint8Array]',
503
- uint8ClampedTag = '[object Uint8ClampedArray]',
504
- uint16Tag = '[object Uint16Array]',
505
- uint32Tag = '[object Uint32Array]';
506
-
507
- /** Used to identify `toStringTag` values of typed arrays. */
508
- var typedArrayTags = {};
509
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
510
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
511
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
512
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
513
- typedArrayTags[uint32Tag] = true;
514
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
515
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
516
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
517
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
518
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
519
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
520
- typedArrayTags[setTag] = typedArrayTags[stringTag$1] =
521
- typedArrayTags[weakMapTag] = false;
522
-
523
- /**
524
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
525
- *
526
- * @private
527
- * @param {*} value The value to check.
528
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
529
- */
530
- function baseIsTypedArray(value) {
531
- return isSymbol.isObjectLike_1(value) &&
532
- isLength_1(value.length) && !!typedArrayTags[isSymbol._baseGetTag(value)];
533
- }
534
-
535
- var _baseIsTypedArray = baseIsTypedArray;
536
-
537
- /**
538
- * The base implementation of `_.unary` without support for storing metadata.
539
- *
540
- * @private
541
- * @param {Function} func The function to cap arguments for.
542
- * @returns {Function} Returns the new capped function.
543
- */
544
- function baseUnary(func) {
545
- return function(value) {
546
- return func(value);
547
- };
548
- }
549
-
550
- var _baseUnary = baseUnary;
551
-
552
- var _nodeUtil = _commonjsHelpers.createCommonjsModule(function (module, exports) {
553
- /** Detect free variable `exports`. */
554
- var freeExports = exports && !exports.nodeType && exports;
555
-
556
- /** Detect free variable `module`. */
557
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
558
-
559
- /** Detect the popular CommonJS extension `module.exports`. */
560
- var moduleExports = freeModule && freeModule.exports === freeExports;
561
-
562
- /** Detect free variable `process` from Node.js. */
563
- var freeProcess = moduleExports && isSymbol._freeGlobal.process;
564
-
565
- /** Used to access faster Node.js helpers. */
566
- var nodeUtil = (function() {
567
- try {
568
- // Use `util.types` for Node.js 10+.
569
- var types = freeModule && freeModule.require && freeModule.require('util').types;
570
-
571
- if (types) {
572
- return types;
573
- }
574
-
575
- // Legacy `process.binding('util')` for Node.js < 10.
576
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
577
- } catch (e) {}
578
- }());
579
-
580
- module.exports = nodeUtil;
581
- });
582
-
583
- /* Node.js helper references. */
584
- var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
585
-
586
- /**
587
- * Checks if `value` is classified as a typed array.
588
- *
589
- * @static
590
- * @memberOf _
591
- * @since 3.0.0
592
- * @category Lang
593
- * @param {*} value The value to check.
594
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
595
- * @example
596
- *
597
- * _.isTypedArray(new Uint8Array);
598
- * // => true
599
- *
600
- * _.isTypedArray([]);
601
- * // => false
602
- */
603
- var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
604
-
605
- var isTypedArray_1 = isTypedArray;
606
-
607
- /** Used for built-in method references. */
608
- var objectProto$1 = Object.prototype;
609
-
610
- /** Used to check objects for own properties. */
611
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
612
-
613
- /**
614
- * Creates an array of the enumerable property names of the array-like `value`.
615
- *
616
- * @private
617
- * @param {*} value The value to query.
618
- * @param {boolean} inherited Specify returning inherited property names.
619
- * @returns {Array} Returns the array of property names.
620
- */
621
- function arrayLikeKeys(value, inherited) {
622
- var isArr = _arrayMap.isArray_1(value),
623
- isArg = !isArr && isArguments_1(value),
624
- isBuff = !isArr && !isArg && isBuffer_1(value),
625
- isType = !isArr && !isArg && !isBuff && isTypedArray_1(value),
626
- skipIndexes = isArr || isArg || isBuff || isType,
627
- result = skipIndexes ? _baseTimes(value.length, String) : [],
628
- length = result.length;
629
-
630
- for (var key in value) {
631
- if ((inherited || hasOwnProperty$1.call(value, key)) &&
632
- !(skipIndexes && (
633
- // Safari 9 has enumerable `arguments.length` in strict mode.
634
- key == 'length' ||
635
- // Node.js 0.10 has enumerable non-index properties on buffers.
636
- (isBuff && (key == 'offset' || key == 'parent')) ||
637
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
638
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
639
- // Skip index properties.
640
- _isIndex(key, length)
641
- ))) {
642
- result.push(key);
643
- }
644
- }
645
- return result;
646
- }
647
-
648
- var _arrayLikeKeys = arrayLikeKeys;
649
-
650
- /** Used for built-in method references. */
651
- var objectProto$2 = Object.prototype;
652
-
653
- /**
654
- * Checks if `value` is likely a prototype object.
655
- *
656
- * @private
657
- * @param {*} value The value to check.
658
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
659
- */
660
- function isPrototype(value) {
661
- var Ctor = value && value.constructor,
662
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$2;
663
-
664
- return value === proto;
665
- }
666
-
667
- var _isPrototype = isPrototype;
668
-
669
- /**
670
- * Creates a unary function that invokes `func` with its argument transformed.
671
- *
672
- * @private
673
- * @param {Function} func The function to wrap.
674
- * @param {Function} transform The argument transform.
675
- * @returns {Function} Returns the new function.
676
- */
677
- function overArg(func, transform) {
678
- return function(arg) {
679
- return func(transform(arg));
680
- };
681
- }
682
-
683
- var _overArg = overArg;
684
-
685
- /* Built-in method references for those with the same name as other `lodash` methods. */
686
- var nativeKeys = _overArg(Object.keys, Object);
687
-
688
- var _nativeKeys = nativeKeys;
689
-
690
- /** Used for built-in method references. */
691
- var objectProto$3 = Object.prototype;
692
-
693
- /** Used to check objects for own properties. */
694
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
695
-
696
- /**
697
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
698
- *
699
- * @private
700
- * @param {Object} object The object to query.
701
- * @returns {Array} Returns the array of property names.
702
- */
703
- function baseKeys(object) {
704
- if (!_isPrototype(object)) {
705
- return _nativeKeys(object);
706
- }
707
- var result = [];
708
- for (var key in Object(object)) {
709
- if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
710
- result.push(key);
711
- }
712
- }
713
- return result;
714
- }
715
-
716
- var _baseKeys = baseKeys;
717
-
718
- /**
719
- * Creates an array of the own enumerable property names of `object`.
720
- *
721
- * **Note:** Non-object values are coerced to objects. See the
722
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
723
- * for more details.
724
- *
725
- * @static
726
- * @since 0.1.0
727
- * @memberOf _
728
- * @category Object
729
- * @param {Object} object The object to query.
730
- * @returns {Array} Returns the array of property names.
731
- * @example
732
- *
733
- * function Foo() {
734
- * this.a = 1;
735
- * this.b = 2;
736
- * }
737
- *
738
- * Foo.prototype.c = 3;
739
- *
740
- * _.keys(new Foo);
741
- * // => ['a', 'b'] (iteration order is not guaranteed)
742
- *
743
- * _.keys('hi');
744
- * // => ['0', '1']
745
- */
746
- function keys(object) {
747
- return isArrayLike_1(object) ? _arrayLikeKeys(object) : _baseKeys(object);
748
- }
749
-
750
- var keys_1 = keys;
751
-
752
- /**
753
- * Creates an array of the own enumerable string keyed property values of `object`.
754
- *
755
- * **Note:** Non-object values are coerced to objects.
756
- *
757
- * @static
758
- * @since 0.1.0
759
- * @memberOf _
760
- * @category Object
761
- * @param {Object} object The object to query.
762
- * @returns {Array} Returns the array of property values.
763
- * @example
764
- *
765
- * function Foo() {
766
- * this.a = 1;
767
- * this.b = 2;
768
- * }
769
- *
770
- * Foo.prototype.c = 3;
771
- *
772
- * _.values(new Foo);
773
- * // => [1, 2] (iteration order is not guaranteed)
774
- *
775
- * _.values('hi');
776
- * // => ['h', 'i']
777
- */
778
- function values(object) {
779
- return object == null ? [] : _baseValues(object, keys_1(object));
780
- }
781
-
782
- var values_1 = values;
783
-
784
- /* Built-in method references for those with the same name as other `lodash` methods. */
785
- var nativeMax = Math.max;
786
-
787
- /**
788
- * Checks if `value` is in `collection`. If `collection` is a string, it's
789
- * checked for a substring of `value`, otherwise
790
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
791
- * is used for equality comparisons. If `fromIndex` is negative, it's used as
792
- * the offset from the end of `collection`.
793
- *
794
- * @static
795
- * @memberOf _
796
- * @since 0.1.0
797
- * @category Collection
798
- * @param {Array|Object|string} collection The collection to inspect.
799
- * @param {*} value The value to search for.
800
- * @param {number} [fromIndex=0] The index to search from.
801
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
802
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
803
- * @example
804
- *
805
- * _.includes([1, 2, 3], 1);
806
- * // => true
807
- *
808
- * _.includes([1, 2, 3], 1, 2);
809
- * // => false
810
- *
811
- * _.includes({ 'a': 1, 'b': 2 }, 1);
812
- * // => true
813
- *
814
- * _.includes('abcd', 'bc');
815
- * // => true
816
- */
817
- function includes(collection, value, fromIndex, guard) {
818
- collection = isArrayLike_1(collection) ? collection : values_1(collection);
819
- fromIndex = (fromIndex && !guard) ? toInteger_1(fromIndex) : 0;
820
-
821
- var length = collection.length;
822
- if (fromIndex < 0) {
823
- fromIndex = nativeMax(length + fromIndex, 0);
824
- }
825
- return isString_1(collection)
826
- ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
827
- : (!!length && _baseIndexOf(collection, value, fromIndex) > -1);
828
- }
829
-
830
- var includes_1 = includes;
831
-
832
- var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
833
- var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
834
-
835
- if (authorName && authorURL) {
836
- return React__default.createElement(
837
- 'span',
838
- null,
839
- React__default.createElement(
840
- 'a',
841
- { href: '/' + defaultUrl + '/' + authorURL.current, key: index },
842
- authorName
843
- ),
844
- length !== index + 1 && ', '
845
- );
846
- } else if (authorName) {
847
- return React__default.createElement(
848
- 'span',
849
- { key: index },
850
- authorName,
851
- length !== index + 1 && ', '
852
- );
853
- }
854
- };
855
-
856
- var get_content_placement_url = function get_content_placement_url(cp) {
857
- var cp_url = '';
858
- if (cp.ancestor && typeof cp.ancestor === 'string') {
859
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
860
- }
861
-
862
- if (!cp.ancestor && cp.parent && typeof cp.parent === 'string') {
863
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
864
- }
865
-
866
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
867
- return cp_url;
868
- };
869
-
870
- var getArticleSummary = function getArticleSummary(article) {
871
- if (article.summary && article.summary.length > 0) {
872
- return article.summary;
873
- } else {
874
- return false;
875
- }
876
- };
877
-
878
- var Article = function Article(props) {
879
- var client = props.client,
880
- pageview = props.pageview,
881
- videoAccountIDs = props.videoAccountIDs,
882
- drupalLeadSettings = props.drupalLeadSettings,
883
- currentPage = props.currentPage,
884
- _props$article = props.article,
885
- articleId = _props$article._id,
886
- title = _props$article.title,
887
- passwordLock = _props$article.passwordLock,
888
- authorDetails = _props$article.authorDetails,
889
- pageNumber = _props$article.pageNumber,
890
- published = _props$article.published,
891
- _props$article$showPu = _props$article.showPublished,
892
- showPublished = _props$article$showPu === undefined ? true : _props$article$showPu,
893
- articleBody = _props$article.body,
894
- thumbnail = _props$article.thumbnail,
895
- content_placement = _props$article.content_placement,
896
- _props$article$url = _props$article.url;
897
- _props$article$url = _props$article$url === undefined ? {
898
- current: ''
899
- } : _props$article$url;
900
- var url = _props$article$url.current,
901
- issue = _props$article.issue,
902
- source = _props$article.source,
903
- internalTag = _props$article.internalTag,
904
- seoTag = _props$article.seoTag,
905
- sponsoredTag = _props$article.sponsoredTag,
906
- userDefinedTag = _props$article.userDefinedTag,
907
- regionalPages = props.regionalPages,
908
- nationalPage = props.nationalPage,
909
- ISIContent = props.ISIContent,
910
- onChangeArticle = props.onChangeArticle,
911
- shareOptions = props.shareOptions,
912
- cpModificationRequired = props.cpModificationRequired,
913
- authorPrefix = props.authorPrefix,
914
- _props$lgContextAd = props.lgContextAd,
915
- lgContextAd = _props$lgContextAd === undefined ? false : _props$lgContextAd,
916
- queueData = props.queueData;
917
-
918
- var _useState = React.useState(null),
919
- _useState2 = slicedToArray._slicedToArray(_useState, 2),
920
- contextualADFlag = _useState2[0],
921
- setContextualADFlag = _useState2[1];
922
- // Setting new Flag 'visibleFlag' to know when the article is visible so that new contextual ad can be appended into DOM.
923
-
924
-
925
- var _useState3 = React.useState(false),
926
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
927
- visibleFlag = _useState4[0],
928
- setVisibleFlag = _useState4[1];
929
-
930
- var summary = getArticleSummary(props.article);
931
-
932
- var urlFor = function urlFor(source) {
933
- return index$1.imageUrlBuilder(client).image(source);
934
- };
935
-
936
- var isCutomPage = function isCutomPage(article) {
937
- var url = article.url.current;
938
-
939
- if (regionalPages || nationalPage) {
940
- return regionalPages.includes(url) || nationalPage === url;
941
- } else {
942
- return false;
943
- }
944
- };
945
-
946
- var renderIsiContent = function renderIsiContent(article) {
947
- var url = article.url.current;
948
-
949
- if (regionalPages && regionalPages.includes(url)) {
950
- return React__default.createElement(ISIContent, null);
951
- } else if (nationalPage === url) {
952
- return React__default.createElement(ISIContent, { national: true });
953
- }
954
- return null;
955
- };
956
-
957
- var renderRelevantTopicsDropdown = function renderRelevantTopicsDropdown() {
958
- if (content_placement && content_placement.length > 0) {
959
- return React__default.createElement(
960
- Dropdown,
961
- { style: { marginBottom: '1rem' } },
962
- React__default.createElement(
963
- Dropdown.Toggle,
964
- { variant: 'primary', id: 'partner-dropdown' },
965
- 'Relevant Topics'
966
- ),
967
- React__default.createElement(
968
- Dropdown.Menu,
969
- null,
970
- content_placement.length > 0 ? content_placement.map(function (cp, index) {
971
- var cp_url = cpModificationRequired ? get_content_placement_url(cp) : cp.path;
972
- var href = '/' + cp_url;
973
- return React__default.createElement(
974
- Dropdown.Item,
975
- { key: index, href: href },
976
- cp.name
977
- );
978
- }) : null
979
- )
980
- );
981
- }
982
- return null;
983
- };
984
-
985
- var renderBlockContent = function renderBlockContent(payload) {
986
- var _payload = payload,
987
- body = _payload.body;
988
-
989
- var findIndex = function findIndex(arr) {
990
- var indexes = [];
991
- if ((typeof arr === 'undefined' ? 'undefined' : _typeof._typeof(arr)) === 'object') {
992
- var _iteratorNormalCompletion = true;
993
- var _didIteratorError = false;
994
- var _iteratorError = undefined;
995
-
996
- try {
997
- for (var _iterator = slicedToArray._getIterator(arr), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
998
- var ele = _step.value;
999
-
1000
- if (ele['_type'] === 'block' && ele.children.some(function (child) {
1001
- return child.text.trim().length > 0;
1002
- }) && ele['listItem'] !== 'bullet' &&
1003
- // To skip li tags when setting contextual native ads
1004
- ele['listItem'] !== 'number' && ele['style'] === 'normal' || ele['_type'] === 'figure') {
1005
- indexes.push(arr.indexOf(ele));
1006
- }
1007
- }
1008
- } catch (err) {
1009
- _didIteratorError = true;
1010
- _iteratorError = err;
1011
- } finally {
1012
- try {
1013
- if (!_iteratorNormalCompletion && _iterator.return) {
1014
- _iterator.return();
1015
- }
1016
- } finally {
1017
- if (_didIteratorError) {
1018
- throw _iteratorError;
1019
- }
1020
- }
1021
- }
1022
- }
1023
- return indexes;
1024
- };
1025
- var indexes = findIndex(body);
1026
- if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && payload.contextualVideoAD) {
1027
- payload = _extends._extends({}, payload, {
1028
- contextualAD: _extends._extends({}, payload.contextualAD, {
1029
- slotId: (payload.contextualAD.slotId || 'contextual_ad') + '-' + payload._id
1030
- }),
1031
- contextualVideoAD: _extends._extends({}, payload.contextualVideoAD, {
1032
- slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
1033
- })
1034
- });
1035
- var selectedIndex = indexes[1] + 1;
1036
-
1037
- var checkIsAdFound = function checkIsAdFound(isFound) {
1038
- if (!isFound) {
1039
- var parent = document.getElementById('contextual-native-ad-' + payload._id);
1040
- parent.style.height = '0%';
1041
- parent.style.width = '0%';
1042
- parent.style.display = 'none';
1043
- setContextualADFlag(false);
1044
- } else {
1045
- setContextualADFlag(true);
1046
- }
1047
- };
1048
-
1049
- var checkIsVideoAdFound = function checkIsVideoAdFound(isFound) {
1050
- if (!isFound) {
1051
- var parent = document.getElementById('contextual-video-ad-' + payload._id);
1052
- parent.style.height = '0%';
1053
- parent.style.width = '0%';
1054
- parent.style.display = 'none';
1055
- setContextualADFlag(false);
1056
- } else {
1057
- setContextualADFlag(true);
1058
- }
1059
- };
1060
-
1061
- return React__default.createElement(
1062
- React__default.Fragment,
1063
- null,
1064
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
1065
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag, articleId),
1066
- blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
1067
- imageOptions: { w: 320, h: 240, fit: 'max' }
1068
- }, client.config())),
1069
- React__default.createElement('span', { className: 'clearfix' }),
1070
- React__default.createElement(
1071
- 'div',
1072
- { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
1073
- React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
1074
- ),
1075
- React__default.createElement('span', { className: 'clearfix' }),
1076
- React__default.createElement(
1077
- 'div',
1078
- { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
1079
- React__default.createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
1080
- ),
1081
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
1082
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
1083
- blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(selectedIndex))),
1084
- imageOptions: { w: 320, h: 240, fit: 'max' }
1085
- }, client.config()))
1086
- );
1087
- } else if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && !payload.contextualVideoAD) {
1088
- payload = _extends._extends({}, payload, {
1089
- contextualAD: _extends._extends({}, payload.contextualAD, {
1090
- slotId: (payload.contextualAD.slotId || 'contextual_ad') + '-' + payload._id,
1091
- className: 'ADFluid',
1092
- // Fetching new contextual targeting based on the current active article.
1093
- targeting: props.getTargeting(props.article, 'native-ad'),
1094
- // Adding new ad size for large contextual ad for desktop screen width >= 1400
1095
- sizes: lgContextAd ? [[728, 90], 'fluid', [300, 100]] : ['fluid', [300, 100]],
1096
- sizeMapping: lgContextAd ? [{
1097
- viewport: [1400, 0],
1098
- sizes: [[728, 90], 'fluid', [300, 100]]
1099
- }, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : ['fluid', [300, 100]]
1100
- })
1101
- });
1102
- var _selectedIndex = indexes[1] + 1;
1103
- var _checkIsAdFound = function _checkIsAdFound(isFound, adData) {
1104
- if (!isFound) {
1105
- var parent = document.getElementById('contextual-native-ad-' + payload._id);
1106
- parent.style.height = '0%';
1107
- parent.style.width = '0%';
1108
- parent.style.display = 'none';
1109
- setContextualADFlag(false);
1110
- } else {
1111
- var _parent = document.getElementById('contextual-native-ad-' + payload._id);
1112
- if (adData && adData.event && adData.event.size && _parent) {
1113
- // Adding fix for fluid contextual ad to avoid from collapsing when size is [0,0]
1114
- var fluidSizes = [[0, 0]];
1115
- var checkAdSize = function checkAdSize(size) {
1116
- return stringify._JSON$stringify(size) === stringify._JSON$stringify(adData.event.size);
1117
- };
1118
- if (!fluidSizes.some(checkAdSize)) {
1119
- _parent.style.width = adData.event.size[0] + 'px';
1120
- _parent.style.height = adData.event.size[1] + 'px';
1121
- }
1122
- _parent.style.margin = 'auto';
1123
- // Adding margin below to create a seperation from text.
1124
- _parent.style.marginBottom = '15px';
1125
- }
1126
- if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
1127
- setContextualADFlag(true);
1128
- }
1129
- }
1130
- };
1131
-
1132
- return React__default.createElement(
1133
- React__default.Fragment,
1134
- null,
1135
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
1136
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
1137
- blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex))),
1138
- imageOptions: { w: 320, h: 240, fit: 'max' }
1139
- }, client.config())),
1140
- contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
1141
- (visibleFlag || queueData && queueData.length === 1) && React__default.createElement(
1142
- 'div',
1143
- { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
1144
- React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
1145
- ),
1146
- contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
1147
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
1148
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
1149
- blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex))),
1150
- imageOptions: { w: 320, h: 240, fit: 'max' }
1151
- }, client.config()))
1152
- );
1153
- } else if (indexes.length >= 2 && body.length > 3 && payload.contextualVideoAD && !payload.contextualAD) {
1154
- payload = _extends._extends({}, payload, {
1155
- contextualVideoAD: _extends._extends({}, payload.contextualVideoAD, {
1156
- slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
1157
- })
1158
- });
1159
- var _selectedIndex2 = indexes[1] + 1;
1160
-
1161
- var _checkIsAdFound2 = function _checkIsAdFound2(isFound) {
1162
- if (!isFound) {
1163
- var parent = document.getElementById('contextual-video-ad-' + payload._id);
1164
- parent.style.height = '0%';
1165
- parent.style.width = '0%';
1166
- parent.style.display = 'none';
1167
- setContextualADFlag(false);
1168
- } else {
1169
- if (body && body[1] && body[1]._type === 'figure') {
1170
- setContextualADFlag(true);
1171
- }
1172
- }
1173
- };
1174
-
1175
- return React__default.createElement(
1176
- React__default.Fragment,
1177
- null,
1178
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
1179
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag, articleId),
1180
- blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex2))),
1181
- imageOptions: { w: 320, h: 240, fit: 'max' }
1182
- }, client.config())),
1183
- React__default.createElement('span', { className: 'clearfix' }),
1184
- React__default.createElement(
1185
- 'div',
1186
- { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
1187
- React__default.createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
1188
- ),
1189
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
1190
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
1191
- blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex2))),
1192
- imageOptions: { w: 320, h: 240, fit: 'max' }
1193
- }, client.config()))
1194
- );
1195
- } else {
1196
- return React__default.createElement(BlockContent.BlockContent, _extends._extends({
1197
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
1198
- blocks: articleBody,
1199
- imageOptions: { w: 320, h: 240, fit: 'max' }
1200
- }, client.config()));
1201
- }
1202
- };
1203
-
1204
- var shareVia = shareOptions.shareVia,
1205
- shareSubject = shareOptions.shareSubject,
1206
- twitterSiteName = shareOptions.twitterSiteName,
1207
- shareImageDefault = shareOptions.shareImageDefault,
1208
- shareBaseUrl = shareOptions.shareBaseUrl,
1209
- shareSiteTitle = shareOptions.shareSiteTitle;
1210
-
1211
- var shareUrl = shareBaseUrl + props.article.url.current;
1212
- var shareTitle = title;
1213
- var shareSummary = summary;
1214
- var shareImage = thumbnail && thumbnail.asset ? urlFor(thumbnail.asset).url() : shareImageDefault;
1215
- var siteName = props.website.title;
1216
- var shareKeywords = getKeywords(props.article).join(',');
1217
-
1218
- var meta = {
1219
- shareTitle: shareTitle,
1220
- shareSiteName: props.cache.siteSettingCache.name,
1221
- shareSummary: shareSummary,
1222
- shareUrl: shareUrl,
1223
- shareImage: shareImage,
1224
- shareVia: props.Settings.title,
1225
- shareKeywords: shareKeywords
1226
- };
1227
- return React__default.createElement(
1228
- React__default.Fragment,
1229
- null,
1230
- React__default.createElement(
1231
- getSerializers.InscreenSensor,
1232
- {
1233
- offSetTop: 120,
1234
- className: 'inscreen-wrapper',
1235
- id: 'article-' + title,
1236
- onChange: function onChange(visible) {
1237
- if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
1238
- onChangeArticle(url, visible, meta);
1239
- // Setting 'visibleFlag' to know that the article is visible.
1240
- setVisibleFlag(true);
1241
- }
1242
- } },
1243
- React__default.createElement(
1244
- 'div',
1245
- null,
1246
- queueData && queueData.length === 1 && React__default.createElement(
1247
- Head,
1248
- null,
1249
- React__default.createElement(
1250
- 'title',
1251
- { key: 'title' },
1252
- '' + shareTitle
1253
- ),
1254
- React__default.createElement('meta', { name: 'description', key: 'description', content: shareSummary }),
1255
- React__default.createElement('meta', { name: 'keywords', key: 'keywords', content: shareKeywords }),
1256
- passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
1257
- React__default.createElement('meta', { property: 'og:url', content: shareUrl, key: 'og:url' }),
1258
- React__default.createElement('meta', { property: 'og:title', content: shareTitle, key: 'og:title' }),
1259
- React__default.createElement('meta', { property: 'og:image', content: shareImage, key: 'og:image' }),
1260
- React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
1261
- React__default.createElement('meta', { property: 'og:description', content: shareSummary, key: 'og:description' }),
1262
- React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
1263
- React__default.createElement('meta', { name: 'twitter:title', content: shareTitle, key: 'twitter:title' }),
1264
- React__default.createElement('meta', { name: 'twitter:image', content: shareImage, key: 'twitter:image' }),
1265
- React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
1266
- React__default.createElement('meta', { name: 'twitter:description', content: shareSummary, key: 'twitter:description' }),
1267
- React__default.createElement('link', { rel: 'canonical', href: shareUrl, key: 'canonical' })
1268
- ),
1269
- React__default.createElement(
1270
- 'h1',
1271
- { className: 'page-title' },
1272
- title
1273
- ),
1274
- React__default.createElement(
1275
- 'div',
1276
- { className: 'video-detail', style: { marginBottom: isCutomPage(props.article) ? '150px' : 0 } },
1277
- showPublished && React__default.createElement(
1278
- 'div',
1279
- null,
1280
- moment.moment(published).format('LL')
1281
- )
1282
- /* Show Published date */
1283
- ,
1284
- React__default.createElement(
1285
- 'div',
1286
- { className: 'mb-3' },
1287
- authorDetails && authorDetails.map(function (authorDetail, index) {
1288
- return React__default.createElement(
1289
- 'span',
1290
- { key: index },
1291
- renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix)
1292
- );
1293
- }),
1294
- props.article.source && React__default.createElement(
1295
- 'div',
1296
- { className: 'sanityDisplayLabel' },
1297
- props.article.source
1298
- ),
1299
- issue && React__default.createElement(
1300
- 'div',
1301
- { className: 'volume-issue' },
1302
- issue.volume && React__default.createElement(
1303
- 'span',
1304
- null,
1305
- 'Volume ' + issue.volume,
1306
- ','
1307
- ),
1308
- issue.issueNumber && React__default.createElement(
1309
- 'span',
1310
- null,
1311
- ' Issue ' + issue.issueNumber
1312
- )
1313
- ),
1314
- pageNumber && React__default.createElement(
1315
- 'div',
1316
- { className: 'article-pageNumber' },
1317
- 'Page Number: ' + pageNumber
1318
- )
1319
- ),
1320
- React__default.createElement(
1321
- 'p',
1322
- null,
1323
- React__default.createElement(SocialShare, {
1324
- shareUrl: shareUrl,
1325
- shareTitle: shareTitle,
1326
- shareVia: shareVia,
1327
- shareSummary: shareSummary,
1328
- shareSubject: shareSubject,
1329
- shareImage: shareImage,
1330
- size: 32,
1331
- siteName: siteName,
1332
- twitterSiteName: twitterSiteName,
1333
- disableMeta: true
1334
- })
1335
- ),
1336
- renderRelevantTopicsDropdown(),
1337
- summary && React__default.createElement(
1338
- 'p',
1339
- null,
1340
- React__default.createElement(
1341
- 'em',
1342
- null,
1343
- summary
1344
- )
1345
- ),
1346
- main.main_39 && props.article.Ads.map(function (ad, index) {
1347
- if (index === 0) {
1348
- return React__default.createElement(
1349
- 'div',
1350
- { key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto', marginTop: '-1rem', marginBottom: '1rem' } },
1351
- ad.component
1352
- );
1353
- }
1354
- }),
1355
- React__default.createElement(
1356
- 'div',
1357
- { className: 'block-content mt-3' },
1358
- renderBlockContent(props.article),
1359
- issue && issue.url && React__default.createElement(
1360
- 'a',
1361
- { rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
1362
- React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
1363
- 'Download Issue : ',
1364
- issue.name
1365
- )
1366
- )
1367
- ),
1368
- renderIsiContent(props.article)
1369
- )
1370
- ),
1371
- main.main_39 && props.article.Ads.map(function (ad, index) {
1372
- if (index > 0) {
1373
- return React__default.createElement(
1374
- 'div',
1375
- { key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
1376
- ad.component
1377
- );
1378
- }
1379
- }),
1380
- React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
1381
- React__default.createElement('hr', { className: 'article-seperater' }),
1382
- React__default.createElement(
1383
- 'noscript',
1384
- null,
1385
- props.article.relatedArticle && props.article.relatedArticle.url && props.article.relatedArticle.url.current && React__default.createElement(
1386
- 'div',
1387
- { style: { textAlign: 'center' } },
1388
- React__default.createElement(
1389
- 'a',
1390
- { href: '/view/' + props.article.relatedArticle.url.current },
1391
- 'Related Article >>>'
1392
- )
1393
- )
1394
- ),
1395
- React__default.createElement(
1396
- 'style',
1397
- { jsx: 'true' },
1398
- '\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 2px solid #484848;\n width: fit-content;\n width: -moz-fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n @media only screen and (max-width: 767px) {\n .sanityDisplayLabel {\n max-width: 100%;\n }\n }\n '
1399
- )
1400
- );
1401
- };
1402
-
1403
- var ArticleQueue = function ArticleQueue(props) {
1404
- var _props$prevUrl = props.prevUrl,
1405
- prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
1406
- Ads = props.Ads,
1407
- _props$maxListLength = props.maxListLength,
1408
- maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
1409
- _props$sponsoredTaxon = props.sponsoredTaxonomies,
1410
- sponsoredTaxonomies = _props$sponsoredTaxon === undefined ? [] : _props$sponsoredTaxon,
1411
- _props$cpModification = props.cpModificationRequired,
1412
- cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
1413
- _props$authorPrefix = props.authorPrefix,
1414
- authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix;
1415
-
1416
-
1417
- var getTargeting = function getTargeting(article, position) {
1418
- var _article$internalTag = article.internalTag,
1419
- internalTag = _article$internalTag === undefined ? [] : _article$internalTag,
1420
- _article$userDefinedT = article.userDefinedTag,
1421
- userDefinedTag = _article$userDefinedT === undefined ? [] : _article$userDefinedT,
1422
- _article$SponsorshipT = article.SponsorshipTag,
1423
- SponsorshipTag = _article$SponsorshipT === undefined ? [] : _article$SponsorshipT,
1424
- _article$seoTag = article.seoTag,
1425
- seoTag = _article$seoTag === undefined ? [] : _article$seoTag,
1426
- _article$url = article.url;
1427
- _article$url = _article$url === undefined ? {
1428
- current: ''
1429
- } : _article$url;
1430
- var url = _article$url.current,
1431
- _article$documentGrou = article.documentGroup;
1432
- _article$documentGrou = _article$documentGrou === undefined ? {
1433
- path: ''
1434
- } : _article$documentGrou;
1435
- var document_group = _article$documentGrou.path,
1436
- content_placement = article.content_placement;
1437
-
1438
- var context = url;
1439
- var localHistory = props.historyCookie ? JSON.parse(props.historyCookie) : [];
1440
- if (!context && localHistory) {
1441
- context = localHistory[localHistory.length - 1];
1442
- }
1443
- context = context && context.split('?')[0];
1444
- context = context && context.split('&')[0];
1445
- var content_placement_urls = [];
1446
- if (content_placement && prevUrl && prevUrl.length) {
1447
- content_placement.forEach(function (item) {
1448
- var path = item.path;
1449
- if (cpModificationRequired) {
1450
- path = get_content_placement_url(item);
1451
- }
1452
-
1453
- if (includes_1(prevUrl, path)) {
1454
- content_placement_urls.push(path);
1455
- }
1456
- });
1457
- }
1458
-
1459
- if (content_placement) {
1460
- if (content_placement_urls.length === 0) {
1461
- content_placement_urls = content_placement.map(function (item) {
1462
- return cpModificationRequired ? get_content_placement_url(item) : item.path;
1463
- });
1464
- }
1465
- } else {
1466
- content_placement_urls = ['/'];
1467
- }
1468
- var articleKeywords = [].concat(toConsumableArray._toConsumableArray(internalTag), toConsumableArray._toConsumableArray(userDefinedTag), toConsumableArray._toConsumableArray(SponsorshipTag), toConsumableArray._toConsumableArray(seoTag));
1469
- var targeting = {
1470
- tags: articleKeywords,
1471
- document_group: [document_group],
1472
- document_url: [url],
1473
- content_placement: content_placement_urls
1474
- };
1475
-
1476
- if (article.issue && article.issue.path) {
1477
- targeting.issue_url = [article.issue.path];
1478
- if (article.issue.publication && article.issue.publication.path) {
1479
- targeting.publication_url = [article.issue.publication.path];
1480
- }
1481
- }
1482
-
1483
- if (props.cache.hyperTargeting) {
1484
- targeting = _extends._extends({}, targeting, { campaign_id: props.cache.hyperTargeting });
1485
- }
1486
-
1487
- if (position && position.length) {
1488
- targeting['pos'] = position;
1489
- }
1490
- return targeting;
1491
- };
1492
-
1493
- var firstArticle = function firstArticle() {
1494
- var article = _extends._Object$assign({}, props.article);
1495
- var targeting = getTargeting(props.article);
1496
- article.Ads = Ads.getRightItems(targeting);
1497
- return article;
1498
- };
1499
-
1500
- var _useState5 = React.useState([firstArticle()]),
1501
- _useState6 = slicedToArray._slicedToArray(_useState5, 2),
1502
- queueData = _useState6[0],
1503
- setQueueData = _useState6[1];
1504
-
1505
- var refreshAD = function refreshAD(path) {
1506
- var activeArticle = queueData.find(function (item) {
1507
- return item.url.current === path;
1508
- });
1509
- var targeting = getTargeting(activeArticle);
1510
-
1511
- if (!main.main_39) {
1512
- index.lib_3.getGoogletag().then(function (googletag) {
1513
- if (window.googletag && googletag.pubadsReady) {
1514
- var slots = googletag.pubads().getSlots();
1515
- slots.forEach(function (slot) {
1516
- var pos = slot.getTargeting('pos');
1517
- slot.clearTargeting();
1518
- keys$1._Object$keys(targeting).forEach(function (key) {
1519
- slot.setTargeting(key, targeting[key]);
1520
- });
1521
- slot.setTargeting('pos', pos);
1522
- });
1523
- index.lib_3.refresh();
1524
- }
1525
- });
1526
- }
1527
- //Refresh leaderboard ad on mobile
1528
- if (main.main_39) {
1529
- var leaderboardSlotId = '';
1530
- index.lib_3.getGoogletag().then(function (googletag) {
1531
- if (window.googletag && googletag.pubadsReady) {
1532
- var slots = googletag.pubads().getSlots();
1533
- slots.forEach(function (slot) {
1534
- var pos = slot.getTargeting('pos');
1535
- if (pos == 'top-mobile') {
1536
- //gets the slotId of the leaderboard ad to refresh
1537
- leaderboardSlotId = slot.getSlotId().getDomId();
1538
- slot.clearTargeting();
1539
- keys$1._Object$keys(targeting).forEach(function (key) {
1540
- slot.setTargeting(key, targeting[key]);
1541
- });
1542
- slot.setTargeting('pos', pos);
1543
- }
1544
- });
1545
- index.lib_3.refresh(leaderboardSlotId);
1546
- }
1547
- });
1548
- }
1549
- };
1550
-
1551
- var checkSponseredArticle = function checkSponseredArticle(article) {
1552
- var _article$taxonomyMapp = article.taxonomyMapping,
1553
- taxonomyMapping = _article$taxonomyMapp === undefined ? [] : _article$taxonomyMapp;
1554
-
1555
- if (props.checkSponsered) {
1556
- return taxonomyMapping.some(function (item) {
1557
- return includes_1(sponsoredTaxonomies, item._ref);
1558
- });
1559
- } else {
1560
- return false;
1561
- }
1562
- };
1563
-
1564
- var preVscroll = 0;
1565
- var isScrollDown = true;
1566
-
1567
- var scrollDirectionDetect = function scrollDirectionDetect(e) {
1568
- var window = e.currentTarget;
1569
-
1570
- if (preVscroll > window.scrollY) {
1571
- isScrollDown = false;
1572
- } else if (preVscroll < window.scrollY) {
1573
- isScrollDown = true;
1574
- }
1575
- preVscroll = window.scrollY;
1576
- };
1577
-
1578
- React.useEffect(function () {
1579
- window.addEventListener('scroll', scrollDirectionDetect);
1580
- return function () {
1581
- return window.removeEventListener('scroll', scrollDirectionDetect);
1582
- };
1583
- });
1584
-
1585
- var hasVerticalScroll = function hasVerticalScroll() {
1586
- if (window.innerHeight) {
1587
- return document.body.offsetHeight > window.innerHeight;
1588
- } else {
1589
- return document.documentElement.scrollHeight > document.documentElement.offsetHeight || document.body.scrollHeight > document.body.offsetHeight;
1590
- }
1591
- };
1592
-
1593
- React.useEffect(function () {
1594
- // Fetching related article after component mounted if vertical scroll not found
1595
- if (!hasVerticalScroll()) {
1596
- loadmore();
1597
- }
1598
- }, [queueData.length]);
1599
-
1600
- var loadmore = function loadmore() {
1601
- var query = props.relatedArticleQuery;
1602
- var params = props.params;
1603
- if (queueData && queueData.length < maxListLength) {
1604
- params.index = queueData.length - 1;
1605
- props.client.fetch(query, params).then(function (article) {
1606
- if (article && article._id) {
1607
- var targeting = getTargeting(article);
1608
- article.Ads = Ads.getRightItems(targeting);
1609
- setQueueData([].concat(toConsumableArray._toConsumableArray(queueData), [article]));
1610
- }
1611
- });
1612
- }
1613
- };
1614
-
1615
- var changeMeta = function changeMeta(meta) {
1616
- document.title = meta.shareTitle;
1617
- document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
1618
- document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
1619
- document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
1620
- document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
1621
- document.querySelector('meta[property="og:site_name"]').setAttribute('content', meta.shareVia);
1622
- document.querySelector('meta[property="og:description"]').setAttribute('content', meta.shareSummary);
1623
- document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
1624
- document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
1625
- document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
1626
- document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
1627
- document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
1628
- };
1629
-
1630
- var onChangeArticle = function onChangeArticle(path, visibility, meta) {
1631
- var currentPath = window && window.location && window.location.pathname ? window.location.pathname.replace('/view/', '') : '';
1632
- var newPath = '/view/' + path;
1633
-
1634
- // Change URL and do other changes
1635
- var doChanges = function doChanges() {
1636
- window.history.pushState({ page: path }, meta.shareTitle, newPath);
1637
- changeMeta(meta);
1638
- if (props.setCustomDimensions) {
1639
- var activeArticle = queueData.find(function (item) {
1640
- return item.url.current === path;
1641
- });
1642
- props.setCustomDimensions(activeArticle, '200', prevUrl);
1643
- }
1644
- if (props.pageview) props.pageview(newPath);
1645
- refreshAD(path);
1646
- };
1647
-
1648
- if (currentPath !== path) {
1649
- if (isScrollDown) {
1650
- if (visibility === 'top') {
1651
- doChanges();
1652
- }
1653
- } else {
1654
- if (visibility === 'bottom') {
1655
- doChanges();
1656
- }
1657
- }
1658
- if (visibility === 'small-top') {
1659
- doChanges();
1660
- }
1661
- }
1662
- };
1663
-
1664
- return React__default.createElement(
1665
- index_es.InfiniteScroll,
1666
- { dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
1667
- queueData.map(function (article, index) {
1668
- if (!checkSponseredArticle(article) && Ads.getVideoContextualAD) {
1669
- article.contextualVideoAD = Ads.getVideoContextualAD(getTargeting(article, 'in-context_video'));
1670
- }
1671
- if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
1672
- article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
1673
- }
1674
- return React__default.createElement(Article, _extends._extends({
1675
- key: index
1676
- }, props, {
1677
- onChangeArticle: onChangeArticle,
1678
- authorPrfix: authorPrefix,
1679
- article: article,
1680
- cpModificationRequired: cpModificationRequired,
1681
- queueData: queueData
1682
- // Passing 'getTargeting' so that contextual AD can fetch target based on current active article.
1683
- , getTargeting: getTargeting
1684
- }));
1685
- })
1686
- );
1687
- };
1688
-
1689
- module.exports = ArticleQueue;