@mjhls/mjh-framework 1.0.509 → 1.0.511
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/ArticleQueue.js +512 -9
- package/dist/cjs/InscreenSensor-3aec8492.js +361 -0
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/View.js +64 -62
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +16 -12
- package/dist/cjs/index.js +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/AD728x90.js +2 -2
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/ArticleQueue.js +507 -4
- package/dist/esm/CMEDeck.js +2 -2
- package/dist/esm/Column2.js +3 -3
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/DeckContent.js +3 -3
- package/dist/esm/DeckQueue.js +4 -4
- package/dist/esm/{Dfp-58cfc45a.js → Dfp-81a052c2.js} +2 -2
- package/dist/esm/ExternalResources.js +2 -2
- package/dist/esm/GridContent.js +6 -6
- package/dist/esm/InscreenSensor-280b2b10.js +352 -0
- package/dist/esm/IssueLanding.js +4 -4
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +4 -4
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/QueueDeckExpanded.js +4 -4
- package/dist/esm/SideFooter.js +3 -3
- package/dist/esm/TemplateNormal.js +4 -4
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +64 -62
- package/dist/esm/{_arrayMap-a8dd2b2c.js → _arrayMap-64cbe0e4.js} +2 -2
- package/dist/esm/{debounce-8cd9e09c.js → debounce-048d9cb6.js} +1 -1
- package/dist/esm/{get-ae817b75.js → get-0eb56363.js} +2 -2
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +14 -10
- package/dist/esm/getSerializers.js +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/{isSymbol-c1b9be80.js → isSymbol-b7b7434f.js} +1 -1
- package/package.json +1 -1
- package/dist/cjs/InscreenSensor-f9989c04.js +0 -863
- package/dist/esm/InscreenSensor-67905ed5.js +0 -857
- /package/dist/esm/{ADInfeed-15266562.js → ADInfeed-cb0d3a09.js} +0 -0
- /package/dist/esm/{ADlgInfeed-64346b44.js → ADlgInfeed-353fb56a.js} +0 -0
package/README.md
CHANGED
package/dist/cjs/ArticleQueue.js
CHANGED
|
@@ -22,8 +22,8 @@ var index = require('./index-fa3cec70.js');
|
|
|
22
22
|
require('prop-types');
|
|
23
23
|
var moment = require('./moment-3cf060f6.js');
|
|
24
24
|
require('next/router');
|
|
25
|
-
require('./isSymbol-488934a7.js');
|
|
26
|
-
require('./debounce-32e57002.js');
|
|
25
|
+
var isSymbol = require('./isSymbol-488934a7.js');
|
|
26
|
+
var debounce = require('./debounce-32e57002.js');
|
|
27
27
|
var index_es = require('./index.es-9110add6.js');
|
|
28
28
|
require('react-dom');
|
|
29
29
|
var index$1 = require('./index-b5eb3ff8.js');
|
|
@@ -36,7 +36,7 @@ require('./asyncToGenerator-8e707718.js');
|
|
|
36
36
|
require('./_set-species-4458e975.js');
|
|
37
37
|
require('./beam-2745329b.js');
|
|
38
38
|
var AdSlot = require('./AdSlot.js');
|
|
39
|
-
require('./_arrayMap-3b4a0f75.js');
|
|
39
|
+
var _arrayMap = require('./_arrayMap-3b4a0f75.js');
|
|
40
40
|
var BlockContent = require('./BlockContent-f942392e.js');
|
|
41
41
|
require('./smoothscroll-95231a70.js');
|
|
42
42
|
require('./GroupDeck.js');
|
|
@@ -50,11 +50,514 @@ require('next/dynamic');
|
|
|
50
50
|
var Head = _interopDefault(require('next/head'));
|
|
51
51
|
require('react-share');
|
|
52
52
|
var SocialShare = require('./SocialShare.js');
|
|
53
|
-
var keys = require('./keys-a586b7a0.js');
|
|
53
|
+
var keys$1 = require('./keys-a586b7a0.js');
|
|
54
54
|
var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
|
|
55
|
-
var InscreenSensor = require('./InscreenSensor-
|
|
55
|
+
var InscreenSensor = require('./InscreenSensor-3aec8492.js');
|
|
56
56
|
var getKeywords = require('./getKeywords.js');
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
60
|
+
* support for iteratee shorthands.
|
|
61
|
+
*
|
|
62
|
+
* @private
|
|
63
|
+
* @param {Array} array The array to inspect.
|
|
64
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
65
|
+
* @param {number} fromIndex The index to search from.
|
|
66
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
67
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
68
|
+
*/
|
|
69
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
70
|
+
var length = array.length,
|
|
71
|
+
index = fromIndex + (fromRight ? 1 : -1);
|
|
72
|
+
|
|
73
|
+
while ((fromRight ? index-- : ++index < length)) {
|
|
74
|
+
if (predicate(array[index], index, array)) {
|
|
75
|
+
return index;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return -1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var _baseFindIndex = baseFindIndex;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The base implementation of `_.isNaN` without support for number objects.
|
|
85
|
+
*
|
|
86
|
+
* @private
|
|
87
|
+
* @param {*} value The value to check.
|
|
88
|
+
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
|
|
89
|
+
*/
|
|
90
|
+
function baseIsNaN(value) {
|
|
91
|
+
return value !== value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
var _baseIsNaN = baseIsNaN;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* A specialized version of `_.indexOf` which performs strict equality
|
|
98
|
+
* comparisons of values, i.e. `===`.
|
|
99
|
+
*
|
|
100
|
+
* @private
|
|
101
|
+
* @param {Array} array The array to inspect.
|
|
102
|
+
* @param {*} value The value to search for.
|
|
103
|
+
* @param {number} fromIndex The index to search from.
|
|
104
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
105
|
+
*/
|
|
106
|
+
function strictIndexOf(array, value, fromIndex) {
|
|
107
|
+
var index = fromIndex - 1,
|
|
108
|
+
length = array.length;
|
|
109
|
+
|
|
110
|
+
while (++index < length) {
|
|
111
|
+
if (array[index] === value) {
|
|
112
|
+
return index;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return -1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
var _strictIndexOf = strictIndexOf;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
|
122
|
+
*
|
|
123
|
+
* @private
|
|
124
|
+
* @param {Array} array The array to inspect.
|
|
125
|
+
* @param {*} value The value to search for.
|
|
126
|
+
* @param {number} fromIndex The index to search from.
|
|
127
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
128
|
+
*/
|
|
129
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
130
|
+
return value === value
|
|
131
|
+
? _strictIndexOf(array, value, fromIndex)
|
|
132
|
+
: _baseFindIndex(array, _baseIsNaN, fromIndex);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
var _baseIndexOf = baseIndexOf;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
139
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
140
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
141
|
+
*
|
|
142
|
+
* @static
|
|
143
|
+
* @memberOf _
|
|
144
|
+
* @since 4.0.0
|
|
145
|
+
* @category Lang
|
|
146
|
+
* @param {*} value The value to check.
|
|
147
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
148
|
+
* @example
|
|
149
|
+
*
|
|
150
|
+
* _.isArrayLike([1, 2, 3]);
|
|
151
|
+
* // => true
|
|
152
|
+
*
|
|
153
|
+
* _.isArrayLike(document.body.children);
|
|
154
|
+
* // => true
|
|
155
|
+
*
|
|
156
|
+
* _.isArrayLike('abc');
|
|
157
|
+
* // => true
|
|
158
|
+
*
|
|
159
|
+
* _.isArrayLike(_.noop);
|
|
160
|
+
* // => false
|
|
161
|
+
*/
|
|
162
|
+
function isArrayLike(value) {
|
|
163
|
+
return value != null && InscreenSensor.isLength_1(value.length) && !_arrayMap.isFunction_1(value);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
var isArrayLike_1 = isArrayLike;
|
|
167
|
+
|
|
168
|
+
/** `Object#toString` result references. */
|
|
169
|
+
var stringTag = '[object String]';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
173
|
+
*
|
|
174
|
+
* @static
|
|
175
|
+
* @since 0.1.0
|
|
176
|
+
* @memberOf _
|
|
177
|
+
* @category Lang
|
|
178
|
+
* @param {*} value The value to check.
|
|
179
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
180
|
+
* @example
|
|
181
|
+
*
|
|
182
|
+
* _.isString('abc');
|
|
183
|
+
* // => true
|
|
184
|
+
*
|
|
185
|
+
* _.isString(1);
|
|
186
|
+
* // => false
|
|
187
|
+
*/
|
|
188
|
+
function isString(value) {
|
|
189
|
+
return typeof value == 'string' ||
|
|
190
|
+
(!_arrayMap.isArray_1(value) && isSymbol.isObjectLike_1(value) && isSymbol._baseGetTag(value) == stringTag);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
var isString_1 = isString;
|
|
194
|
+
|
|
195
|
+
/** Used as references for various `Number` constants. */
|
|
196
|
+
var INFINITY = 1 / 0,
|
|
197
|
+
MAX_INTEGER = 1.7976931348623157e+308;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Converts `value` to a finite number.
|
|
201
|
+
*
|
|
202
|
+
* @static
|
|
203
|
+
* @memberOf _
|
|
204
|
+
* @since 4.12.0
|
|
205
|
+
* @category Lang
|
|
206
|
+
* @param {*} value The value to convert.
|
|
207
|
+
* @returns {number} Returns the converted number.
|
|
208
|
+
* @example
|
|
209
|
+
*
|
|
210
|
+
* _.toFinite(3.2);
|
|
211
|
+
* // => 3.2
|
|
212
|
+
*
|
|
213
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
214
|
+
* // => 5e-324
|
|
215
|
+
*
|
|
216
|
+
* _.toFinite(Infinity);
|
|
217
|
+
* // => 1.7976931348623157e+308
|
|
218
|
+
*
|
|
219
|
+
* _.toFinite('3.2');
|
|
220
|
+
* // => 3.2
|
|
221
|
+
*/
|
|
222
|
+
function toFinite(value) {
|
|
223
|
+
if (!value) {
|
|
224
|
+
return value === 0 ? value : 0;
|
|
225
|
+
}
|
|
226
|
+
value = debounce.toNumber_1(value);
|
|
227
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
228
|
+
var sign = (value < 0 ? -1 : 1);
|
|
229
|
+
return sign * MAX_INTEGER;
|
|
230
|
+
}
|
|
231
|
+
return value === value ? value : 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
var toFinite_1 = toFinite;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Converts `value` to an integer.
|
|
238
|
+
*
|
|
239
|
+
* **Note:** This method is loosely based on
|
|
240
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
241
|
+
*
|
|
242
|
+
* @static
|
|
243
|
+
* @memberOf _
|
|
244
|
+
* @since 4.0.0
|
|
245
|
+
* @category Lang
|
|
246
|
+
* @param {*} value The value to convert.
|
|
247
|
+
* @returns {number} Returns the converted integer.
|
|
248
|
+
* @example
|
|
249
|
+
*
|
|
250
|
+
* _.toInteger(3.2);
|
|
251
|
+
* // => 3
|
|
252
|
+
*
|
|
253
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
254
|
+
* // => 0
|
|
255
|
+
*
|
|
256
|
+
* _.toInteger(Infinity);
|
|
257
|
+
* // => 1.7976931348623157e+308
|
|
258
|
+
*
|
|
259
|
+
* _.toInteger('3.2');
|
|
260
|
+
* // => 3
|
|
261
|
+
*/
|
|
262
|
+
function toInteger(value) {
|
|
263
|
+
var result = toFinite_1(value),
|
|
264
|
+
remainder = result % 1;
|
|
265
|
+
|
|
266
|
+
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
var toInteger_1 = toInteger;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
273
|
+
* array of `object` property values corresponding to the property names
|
|
274
|
+
* of `props`.
|
|
275
|
+
*
|
|
276
|
+
* @private
|
|
277
|
+
* @param {Object} object The object to query.
|
|
278
|
+
* @param {Array} props The property names to get values for.
|
|
279
|
+
* @returns {Object} Returns the array of property values.
|
|
280
|
+
*/
|
|
281
|
+
function baseValues(object, props) {
|
|
282
|
+
return _arrayMap._arrayMap(props, function(key) {
|
|
283
|
+
return object[key];
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
var _baseValues = baseValues;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
291
|
+
* or max array length checks.
|
|
292
|
+
*
|
|
293
|
+
* @private
|
|
294
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
295
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
296
|
+
* @returns {Array} Returns the array of results.
|
|
297
|
+
*/
|
|
298
|
+
function baseTimes(n, iteratee) {
|
|
299
|
+
var index = -1,
|
|
300
|
+
result = Array(n);
|
|
301
|
+
|
|
302
|
+
while (++index < n) {
|
|
303
|
+
result[index] = iteratee(index);
|
|
304
|
+
}
|
|
305
|
+
return result;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
var _baseTimes = baseTimes;
|
|
309
|
+
|
|
310
|
+
/** Used as references for various `Number` constants. */
|
|
311
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
312
|
+
|
|
313
|
+
/** Used to detect unsigned integer values. */
|
|
314
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Checks if `value` is a valid array-like index.
|
|
318
|
+
*
|
|
319
|
+
* @private
|
|
320
|
+
* @param {*} value The value to check.
|
|
321
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
322
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
323
|
+
*/
|
|
324
|
+
function isIndex(value, length) {
|
|
325
|
+
var type = typeof value;
|
|
326
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
327
|
+
|
|
328
|
+
return !!length &&
|
|
329
|
+
(type == 'number' ||
|
|
330
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
331
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
var _isIndex = isIndex;
|
|
335
|
+
|
|
336
|
+
/** Used for built-in method references. */
|
|
337
|
+
var objectProto = Object.prototype;
|
|
338
|
+
|
|
339
|
+
/** Used to check objects for own properties. */
|
|
340
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
344
|
+
*
|
|
345
|
+
* @private
|
|
346
|
+
* @param {*} value The value to query.
|
|
347
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
348
|
+
* @returns {Array} Returns the array of property names.
|
|
349
|
+
*/
|
|
350
|
+
function arrayLikeKeys(value, inherited) {
|
|
351
|
+
var isArr = _arrayMap.isArray_1(value),
|
|
352
|
+
isArg = !isArr && InscreenSensor.isArguments_1(value),
|
|
353
|
+
isBuff = !isArr && !isArg && InscreenSensor.isBuffer_1(value),
|
|
354
|
+
isType = !isArr && !isArg && !isBuff && InscreenSensor.isTypedArray_1(value),
|
|
355
|
+
skipIndexes = isArr || isArg || isBuff || isType,
|
|
356
|
+
result = skipIndexes ? _baseTimes(value.length, String) : [],
|
|
357
|
+
length = result.length;
|
|
358
|
+
|
|
359
|
+
for (var key in value) {
|
|
360
|
+
if ((inherited || hasOwnProperty.call(value, key)) &&
|
|
361
|
+
!(skipIndexes && (
|
|
362
|
+
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
363
|
+
key == 'length' ||
|
|
364
|
+
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
365
|
+
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
366
|
+
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
367
|
+
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
368
|
+
// Skip index properties.
|
|
369
|
+
_isIndex(key, length)
|
|
370
|
+
))) {
|
|
371
|
+
result.push(key);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return result;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
var _arrayLikeKeys = arrayLikeKeys;
|
|
378
|
+
|
|
379
|
+
/** Used for built-in method references. */
|
|
380
|
+
var objectProto$1 = Object.prototype;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Checks if `value` is likely a prototype object.
|
|
384
|
+
*
|
|
385
|
+
* @private
|
|
386
|
+
* @param {*} value The value to check.
|
|
387
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
388
|
+
*/
|
|
389
|
+
function isPrototype(value) {
|
|
390
|
+
var Ctor = value && value.constructor,
|
|
391
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$1;
|
|
392
|
+
|
|
393
|
+
return value === proto;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
var _isPrototype = isPrototype;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
400
|
+
*
|
|
401
|
+
* @private
|
|
402
|
+
* @param {Function} func The function to wrap.
|
|
403
|
+
* @param {Function} transform The argument transform.
|
|
404
|
+
* @returns {Function} Returns the new function.
|
|
405
|
+
*/
|
|
406
|
+
function overArg(func, transform) {
|
|
407
|
+
return function(arg) {
|
|
408
|
+
return func(transform(arg));
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
var _overArg = overArg;
|
|
413
|
+
|
|
414
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
415
|
+
var nativeKeys = _overArg(Object.keys, Object);
|
|
416
|
+
|
|
417
|
+
var _nativeKeys = nativeKeys;
|
|
418
|
+
|
|
419
|
+
/** Used for built-in method references. */
|
|
420
|
+
var objectProto$2 = Object.prototype;
|
|
421
|
+
|
|
422
|
+
/** Used to check objects for own properties. */
|
|
423
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
427
|
+
*
|
|
428
|
+
* @private
|
|
429
|
+
* @param {Object} object The object to query.
|
|
430
|
+
* @returns {Array} Returns the array of property names.
|
|
431
|
+
*/
|
|
432
|
+
function baseKeys(object) {
|
|
433
|
+
if (!_isPrototype(object)) {
|
|
434
|
+
return _nativeKeys(object);
|
|
435
|
+
}
|
|
436
|
+
var result = [];
|
|
437
|
+
for (var key in Object(object)) {
|
|
438
|
+
if (hasOwnProperty$1.call(object, key) && key != 'constructor') {
|
|
439
|
+
result.push(key);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return result;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
var _baseKeys = baseKeys;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
449
|
+
*
|
|
450
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
451
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
452
|
+
* for more details.
|
|
453
|
+
*
|
|
454
|
+
* @static
|
|
455
|
+
* @since 0.1.0
|
|
456
|
+
* @memberOf _
|
|
457
|
+
* @category Object
|
|
458
|
+
* @param {Object} object The object to query.
|
|
459
|
+
* @returns {Array} Returns the array of property names.
|
|
460
|
+
* @example
|
|
461
|
+
*
|
|
462
|
+
* function Foo() {
|
|
463
|
+
* this.a = 1;
|
|
464
|
+
* this.b = 2;
|
|
465
|
+
* }
|
|
466
|
+
*
|
|
467
|
+
* Foo.prototype.c = 3;
|
|
468
|
+
*
|
|
469
|
+
* _.keys(new Foo);
|
|
470
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
471
|
+
*
|
|
472
|
+
* _.keys('hi');
|
|
473
|
+
* // => ['0', '1']
|
|
474
|
+
*/
|
|
475
|
+
function keys(object) {
|
|
476
|
+
return isArrayLike_1(object) ? _arrayLikeKeys(object) : _baseKeys(object);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
var keys_1 = keys;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Creates an array of the own enumerable string keyed property values of `object`.
|
|
483
|
+
*
|
|
484
|
+
* **Note:** Non-object values are coerced to objects.
|
|
485
|
+
*
|
|
486
|
+
* @static
|
|
487
|
+
* @since 0.1.0
|
|
488
|
+
* @memberOf _
|
|
489
|
+
* @category Object
|
|
490
|
+
* @param {Object} object The object to query.
|
|
491
|
+
* @returns {Array} Returns the array of property values.
|
|
492
|
+
* @example
|
|
493
|
+
*
|
|
494
|
+
* function Foo() {
|
|
495
|
+
* this.a = 1;
|
|
496
|
+
* this.b = 2;
|
|
497
|
+
* }
|
|
498
|
+
*
|
|
499
|
+
* Foo.prototype.c = 3;
|
|
500
|
+
*
|
|
501
|
+
* _.values(new Foo);
|
|
502
|
+
* // => [1, 2] (iteration order is not guaranteed)
|
|
503
|
+
*
|
|
504
|
+
* _.values('hi');
|
|
505
|
+
* // => ['h', 'i']
|
|
506
|
+
*/
|
|
507
|
+
function values(object) {
|
|
508
|
+
return object == null ? [] : _baseValues(object, keys_1(object));
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
var values_1 = values;
|
|
512
|
+
|
|
513
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
514
|
+
var nativeMax = Math.max;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Checks if `value` is in `collection`. If `collection` is a string, it's
|
|
518
|
+
* checked for a substring of `value`, otherwise
|
|
519
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
520
|
+
* is used for equality comparisons. If `fromIndex` is negative, it's used as
|
|
521
|
+
* the offset from the end of `collection`.
|
|
522
|
+
*
|
|
523
|
+
* @static
|
|
524
|
+
* @memberOf _
|
|
525
|
+
* @since 0.1.0
|
|
526
|
+
* @category Collection
|
|
527
|
+
* @param {Array|Object|string} collection The collection to inspect.
|
|
528
|
+
* @param {*} value The value to search for.
|
|
529
|
+
* @param {number} [fromIndex=0] The index to search from.
|
|
530
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
|
|
531
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
532
|
+
* @example
|
|
533
|
+
*
|
|
534
|
+
* _.includes([1, 2, 3], 1);
|
|
535
|
+
* // => true
|
|
536
|
+
*
|
|
537
|
+
* _.includes([1, 2, 3], 1, 2);
|
|
538
|
+
* // => false
|
|
539
|
+
*
|
|
540
|
+
* _.includes({ 'a': 1, 'b': 2 }, 1);
|
|
541
|
+
* // => true
|
|
542
|
+
*
|
|
543
|
+
* _.includes('abcd', 'bc');
|
|
544
|
+
* // => true
|
|
545
|
+
*/
|
|
546
|
+
function includes(collection, value, fromIndex, guard) {
|
|
547
|
+
collection = isArrayLike_1(collection) ? collection : values_1(collection);
|
|
548
|
+
fromIndex = (fromIndex && !guard) ? toInteger_1(fromIndex) : 0;
|
|
549
|
+
|
|
550
|
+
var length = collection.length;
|
|
551
|
+
if (fromIndex < 0) {
|
|
552
|
+
fromIndex = nativeMax(length + fromIndex, 0);
|
|
553
|
+
}
|
|
554
|
+
return isString_1(collection)
|
|
555
|
+
? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
|
|
556
|
+
: (!!length && _baseIndexOf(collection, value, fromIndex) > -1);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
var includes_1 = includes;
|
|
560
|
+
|
|
58
561
|
var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
59
562
|
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
60
563
|
|
|
@@ -684,7 +1187,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
684
1187
|
path = get_content_placement_url(item);
|
|
685
1188
|
}
|
|
686
1189
|
|
|
687
|
-
if (
|
|
1190
|
+
if (includes_1(prevUrl, path)) {
|
|
688
1191
|
content_placement_urls.push(path);
|
|
689
1192
|
}
|
|
690
1193
|
});
|
|
@@ -750,7 +1253,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
750
1253
|
slots.forEach(function (slot) {
|
|
751
1254
|
var pos = slot.getTargeting('pos');
|
|
752
1255
|
slot.clearTargeting();
|
|
753
|
-
keys._Object$keys(targeting).forEach(function (key) {
|
|
1256
|
+
keys$1._Object$keys(targeting).forEach(function (key) {
|
|
754
1257
|
slot.setTargeting(key, targeting[key]);
|
|
755
1258
|
});
|
|
756
1259
|
slot.setTargeting('pos', pos);
|
|
@@ -771,7 +1274,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
771
1274
|
//gets the slotId of the leaderboard ad to refresh
|
|
772
1275
|
leaderboardSlotId = slot.getSlotId().getDomId();
|
|
773
1276
|
slot.clearTargeting();
|
|
774
|
-
keys._Object$keys(targeting).forEach(function (key) {
|
|
1277
|
+
keys$1._Object$keys(targeting).forEach(function (key) {
|
|
775
1278
|
slot.setTargeting(key, targeting[key]);
|
|
776
1279
|
});
|
|
777
1280
|
slot.setTargeting('pos', pos);
|
|
@@ -789,7 +1292,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
789
1292
|
|
|
790
1293
|
if (props.checkSponsered) {
|
|
791
1294
|
return taxonomyMapping.some(function (item) {
|
|
792
|
-
return
|
|
1295
|
+
return includes_1(sponsoredTaxonomies, item._ref);
|
|
793
1296
|
});
|
|
794
1297
|
} else {
|
|
795
1298
|
return false;
|