@mjhls/mjh-framework 1.0.694-beta.0 → 1.0.694-beta.2
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +2 -2
- package/dist/cjs/AD300x250x600.js +2 -2
- package/dist/cjs/AD728x90.js +2 -2
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/CMEDeck.js +2 -2
- package/dist/cjs/Column2.js +2 -2
- package/dist/cjs/Column3.js +3 -3
- package/dist/cjs/DeckContent.js +3 -3
- package/dist/cjs/DeckQueue.js +3 -3
- package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-1a9e2305.js} +2 -2
- package/dist/cjs/ExternalResources.js +3 -3
- package/dist/cjs/GridContent.js +5 -5
- package/dist/cjs/IssueLanding.js +4 -4
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/PartnerDetailListing.js +5 -5
- package/dist/cjs/QueueDeckExpanded.js +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +178 -139
- package/dist/cjs/{debounce-eb287781.js → debounce-0106f44a.js} +1 -1
- package/dist/cjs/{get-68c52cb1.js → get-445b7179.js} +4 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +29 -57
- package/dist/cjs/getSerializers.js +3 -3
- package/dist/cjs/index.js +349 -13
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-488934a7.js} +2 -0
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +3 -3
- package/dist/esm/ADFloatingFooter.js +3 -3
- package/dist/esm/ADGutter.js +3 -3
- package/dist/esm/ADSkyscraper.js +3 -3
- package/dist/esm/ADSponsoredResources.js +3 -3
- package/dist/esm/ADWebcast.js +3 -3
- package/dist/esm/ADWelcome.js +3 -3
- package/dist/esm/AdSlot.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Auth.js +1 -1
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/CMEDeck.js +3 -3
- package/dist/esm/Column2.js +3 -3
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/DeckContent.js +4 -4
- package/dist/esm/DeckQueue.js +3 -3
- package/dist/esm/{Dfp-96b49def.js → Dfp-0fc96a5d.js} +2 -2
- package/dist/esm/ExternalResources.js +4 -4
- package/dist/esm/GridContent.js +6 -6
- package/dist/esm/HamMagazine.js +1 -1
- package/dist/esm/IssueLanding.js +5 -5
- package/dist/esm/LeftNav.js +3 -3
- package/dist/esm/MasterDeck.js +5 -5
- package/dist/esm/NavDvm.js +1 -1
- package/dist/esm/NavMagazine.js +1 -1
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/NavNormal.js +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -6
- package/dist/esm/QueueDeckExpanded.js +5 -5
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SideFooter.js +3 -3
- package/dist/esm/TemplateNormal.js +4 -4
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +179 -140
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-d0f08f8d.js} +1 -1
- package/dist/esm/{debounce-1a993acf.js → debounce-3ab4e0ad.js} +1 -1
- package/dist/esm/{get-5ee14cda.js → get-a36cf4c6.js} +2 -2
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +30 -58
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/index.js +349 -13
- package/dist/esm/{isSymbol-807e927e.js → isSymbol-5eb15258.js} +1 -1
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-2fe7211c.js → ADInfeed-4ef14853.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-14e17b43.js → ADlgInfeed-d42cc813.js} +0 -0
- /package/dist/cjs/{index-a5919bab.js → index-26569dcc.js} +0 -0
- /package/dist/esm/{ADInfeed-eae71d07.js → ADInfeed-ddbadcd3.js} +0 -0
- /package/dist/esm/{ADlgInfeed-c619fe64.js → ADlgInfeed-4d228100.js} +0 -0
- /package/dist/esm/{index-c376cd8e.js → index-42fd3adb.js} +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
7
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
8
|
require('./_to-object-329a650b.js');
|
|
7
9
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
8
10
|
require('./_library-dd23b178.js');
|
|
@@ -10,14 +12,15 @@ require('./_iter-detect-60b2f026.js');
|
|
|
10
12
|
require('./toConsumableArray-9a3476fe.js');
|
|
11
13
|
require('./core.get-iterator-method-f62321d4.js');
|
|
12
14
|
require('./_object-pie-68c5bcbc.js');
|
|
13
|
-
require('./extends-60837c34.js');
|
|
15
|
+
var _extends = require('./extends-60837c34.js');
|
|
14
16
|
require('./_object-sap-5e74ba08.js');
|
|
15
17
|
require('./inherits-513d81cd.js');
|
|
16
18
|
require('./define-property-f4d12f4e.js');
|
|
17
19
|
require('./web.dom.iterable-a0e279c1.js');
|
|
18
20
|
require('./typeof-725500bc.js');
|
|
19
21
|
require('./_is-array-754e012d.js');
|
|
20
|
-
require('react');
|
|
22
|
+
var React = require('react');
|
|
23
|
+
var React__default = _interopDefault(React);
|
|
21
24
|
require('./index-fa8ed292.js');
|
|
22
25
|
require('prop-types');
|
|
23
26
|
require('react-bootstrap/Container');
|
|
@@ -25,9 +28,10 @@ require('react-bootstrap/Row');
|
|
|
25
28
|
require('react-bootstrap/Col');
|
|
26
29
|
require('react-bootstrap/Card');
|
|
27
30
|
require('./moment-575fe24c.js');
|
|
28
|
-
require('next/router');
|
|
29
|
-
|
|
30
|
-
require('./
|
|
31
|
+
var Router = require('next/router');
|
|
32
|
+
var Router__default = _interopDefault(Router);
|
|
33
|
+
var isSymbol = require('./isSymbol-488934a7.js');
|
|
34
|
+
require('./debounce-0106f44a.js');
|
|
31
35
|
require('./index.es-9110add6.js');
|
|
32
36
|
require('react-dom');
|
|
33
37
|
require('./visibility-sensor-0c45a583.js');
|
|
@@ -37,24 +41,24 @@ require('./main-a4cb15bb.js');
|
|
|
37
41
|
require('./entities-310b46ee.js');
|
|
38
42
|
require('./stringify-7c5aff47.js');
|
|
39
43
|
require('./slicedToArray-8f385299.js');
|
|
40
|
-
require('./asyncToGenerator-533d476a.js');
|
|
44
|
+
var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
|
|
41
45
|
require('./_set-species-f92c67c5.js');
|
|
42
46
|
var Segment = require('./Segment.js');
|
|
43
47
|
var Beam = require('./Beam.js');
|
|
44
48
|
var AdSlot = require('./AdSlot.js');
|
|
45
|
-
require('./ADInfeed-
|
|
49
|
+
require('./ADInfeed-4ef14853.js');
|
|
46
50
|
var DeckContent = require('./DeckContent.js');
|
|
47
51
|
require('./lodash-fc2922d0.js');
|
|
48
|
-
require('./ADlgInfeed-
|
|
52
|
+
require('./ADlgInfeed-d42cc813.js');
|
|
49
53
|
require('./getContentCategory-f38a4c00.js');
|
|
50
|
-
require('./get-
|
|
54
|
+
var get = require('./get-445b7179.js');
|
|
51
55
|
var AD = require('./AD.js');
|
|
52
56
|
require('./AuthorComponent-bb831b74.js');
|
|
53
57
|
var GridContent = require('./GridContent.js');
|
|
54
58
|
var DeckQueue = require('./DeckQueue.js');
|
|
55
59
|
require('react-bootstrap/Media');
|
|
56
60
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
57
|
-
require('./BlockContent-091a991f.js');
|
|
61
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
58
62
|
require('./react-social-icons-f7f48f71.js');
|
|
59
63
|
var TaxonomyCard = require('./TaxonomyCard.js');
|
|
60
64
|
var RolesDeck = require('./RolesDeck.js');
|
|
@@ -83,11 +87,11 @@ require('react-bootstrap/Form');
|
|
|
83
87
|
require('./index-3294d3bc.js');
|
|
84
88
|
require('./js.cookie-a511c430.js');
|
|
85
89
|
var CMEDeck = require('./CMEDeck.js');
|
|
86
|
-
var getSerializers = require('./index-
|
|
90
|
+
var getSerializers = require('./index-26569dcc.js');
|
|
87
91
|
require('./util-f2c1b65b.js');
|
|
88
92
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
89
93
|
require('react-bootstrap/Pagination');
|
|
90
|
-
require('next/head');
|
|
94
|
+
var Head = _interopDefault(require('next/head'));
|
|
91
95
|
var ExternalResources = require('./ExternalResources.js');
|
|
92
96
|
var Column1 = require('./Column1.js');
|
|
93
97
|
var SideFooter = require('./SideFooter.js');
|
|
@@ -175,7 +179,338 @@ var urlFor = require('./urlFor.js');
|
|
|
175
179
|
require('./style-inject.es-dcee06b6.js');
|
|
176
180
|
var PartnerDetailListing = require('./PartnerDetailListing.js');
|
|
177
181
|
|
|
182
|
+
/** Built-in value references. */
|
|
183
|
+
var Uint8Array = isSymbol._root.Uint8Array;
|
|
184
|
+
|
|
185
|
+
/** Used to convert symbols to primitives and strings. */
|
|
186
|
+
var symbolProto = isSymbol._Symbol ? isSymbol._Symbol.prototype : undefined,
|
|
187
|
+
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
188
|
+
|
|
189
|
+
/** `Object#toString` result references. */
|
|
190
|
+
var argsTag = '[object Arguments]';
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The base implementation of `_.isArguments`.
|
|
194
|
+
*
|
|
195
|
+
* @private
|
|
196
|
+
* @param {*} value The value to check.
|
|
197
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
198
|
+
*/
|
|
199
|
+
function baseIsArguments(value) {
|
|
200
|
+
return isSymbol.isObjectLike_1(value) && isSymbol._baseGetTag(value) == argsTag;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
var _baseIsArguments = baseIsArguments;
|
|
204
|
+
|
|
205
|
+
/** Used for built-in method references. */
|
|
206
|
+
var objectProto = Object.prototype;
|
|
207
|
+
|
|
208
|
+
/** Used to check objects for own properties. */
|
|
209
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
210
|
+
|
|
211
|
+
/** Built-in value references. */
|
|
212
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Checks if `value` is likely an `arguments` object.
|
|
216
|
+
*
|
|
217
|
+
* @static
|
|
218
|
+
* @memberOf _
|
|
219
|
+
* @since 0.1.0
|
|
220
|
+
* @category Lang
|
|
221
|
+
* @param {*} value The value to check.
|
|
222
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
223
|
+
* else `false`.
|
|
224
|
+
* @example
|
|
225
|
+
*
|
|
226
|
+
* _.isArguments(function() { return arguments; }());
|
|
227
|
+
* // => true
|
|
228
|
+
*
|
|
229
|
+
* _.isArguments([1, 2, 3]);
|
|
230
|
+
* // => false
|
|
231
|
+
*/
|
|
232
|
+
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
233
|
+
return isSymbol.isObjectLike_1(value) && hasOwnProperty.call(value, 'callee') &&
|
|
234
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* This method returns `false`.
|
|
239
|
+
*
|
|
240
|
+
* @static
|
|
241
|
+
* @memberOf _
|
|
242
|
+
* @since 4.13.0
|
|
243
|
+
* @category Util
|
|
244
|
+
* @returns {boolean} Returns `false`.
|
|
245
|
+
* @example
|
|
246
|
+
*
|
|
247
|
+
* _.times(2, _.stubFalse);
|
|
248
|
+
* // => [false, false]
|
|
249
|
+
*/
|
|
250
|
+
function stubFalse() {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
var stubFalse_1 = stubFalse;
|
|
255
|
+
|
|
256
|
+
var isBuffer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
257
|
+
/** Detect free variable `exports`. */
|
|
258
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
259
|
+
|
|
260
|
+
/** Detect free variable `module`. */
|
|
261
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
262
|
+
|
|
263
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
264
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
265
|
+
|
|
266
|
+
/** Built-in value references. */
|
|
267
|
+
var Buffer = moduleExports ? isSymbol._root.Buffer : undefined;
|
|
268
|
+
|
|
269
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
270
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Checks if `value` is a buffer.
|
|
274
|
+
*
|
|
275
|
+
* @static
|
|
276
|
+
* @memberOf _
|
|
277
|
+
* @since 4.3.0
|
|
278
|
+
* @category Lang
|
|
279
|
+
* @param {*} value The value to check.
|
|
280
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
281
|
+
* @example
|
|
282
|
+
*
|
|
283
|
+
* _.isBuffer(new Buffer(2));
|
|
284
|
+
* // => true
|
|
285
|
+
*
|
|
286
|
+
* _.isBuffer(new Uint8Array(2));
|
|
287
|
+
* // => false
|
|
288
|
+
*/
|
|
289
|
+
var isBuffer = nativeIsBuffer || stubFalse_1;
|
|
290
|
+
|
|
291
|
+
module.exports = isBuffer;
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
var _nodeUtil = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
295
|
+
/** Detect free variable `exports`. */
|
|
296
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
297
|
+
|
|
298
|
+
/** Detect free variable `module`. */
|
|
299
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
300
|
+
|
|
301
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
302
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
303
|
+
|
|
304
|
+
/** Detect free variable `process` from Node.js. */
|
|
305
|
+
var freeProcess = moduleExports && isSymbol._freeGlobal.process;
|
|
306
|
+
|
|
307
|
+
/** Used to access faster Node.js helpers. */
|
|
308
|
+
var nodeUtil = (function() {
|
|
309
|
+
try {
|
|
310
|
+
// Use `util.types` for Node.js 10+.
|
|
311
|
+
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
312
|
+
|
|
313
|
+
if (types) {
|
|
314
|
+
return types;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// Legacy `process.binding('util')` for Node.js < 10.
|
|
318
|
+
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
319
|
+
} catch (e) {}
|
|
320
|
+
}());
|
|
321
|
+
|
|
322
|
+
module.exports = nodeUtil;
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
/* Node.js helper references. */
|
|
326
|
+
var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
|
|
327
|
+
|
|
328
|
+
/* Built-in method references that are verified to be native. */
|
|
329
|
+
var DataView = get._getNative(isSymbol._root, 'DataView');
|
|
330
|
+
|
|
331
|
+
var _DataView = DataView;
|
|
332
|
+
|
|
333
|
+
/* Built-in method references that are verified to be native. */
|
|
334
|
+
var Promise = get._getNative(isSymbol._root, 'Promise');
|
|
335
|
+
|
|
336
|
+
var _Promise = Promise;
|
|
337
|
+
|
|
338
|
+
/* Built-in method references that are verified to be native. */
|
|
339
|
+
var Set = get._getNative(isSymbol._root, 'Set');
|
|
340
|
+
|
|
341
|
+
var _Set = Set;
|
|
342
|
+
|
|
343
|
+
/* Built-in method references that are verified to be native. */
|
|
344
|
+
var WeakMap = get._getNative(isSymbol._root, 'WeakMap');
|
|
345
|
+
|
|
346
|
+
var _WeakMap = WeakMap;
|
|
347
|
+
|
|
348
|
+
/** `Object#toString` result references. */
|
|
349
|
+
var mapTag = '[object Map]',
|
|
350
|
+
objectTag = '[object Object]',
|
|
351
|
+
promiseTag = '[object Promise]',
|
|
352
|
+
setTag = '[object Set]',
|
|
353
|
+
weakMapTag = '[object WeakMap]';
|
|
354
|
+
|
|
355
|
+
var dataViewTag = '[object DataView]';
|
|
356
|
+
|
|
357
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
358
|
+
var dataViewCtorString = get._toSource(_DataView),
|
|
359
|
+
mapCtorString = get._toSource(get._Map),
|
|
360
|
+
promiseCtorString = get._toSource(_Promise),
|
|
361
|
+
setCtorString = get._toSource(_Set),
|
|
362
|
+
weakMapCtorString = get._toSource(_WeakMap);
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Gets the `toStringTag` of `value`.
|
|
366
|
+
*
|
|
367
|
+
* @private
|
|
368
|
+
* @param {*} value The value to query.
|
|
369
|
+
* @returns {string} Returns the `toStringTag`.
|
|
370
|
+
*/
|
|
371
|
+
var getTag = isSymbol._baseGetTag;
|
|
372
|
+
|
|
373
|
+
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
374
|
+
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
375
|
+
(get._Map && getTag(new get._Map) != mapTag) ||
|
|
376
|
+
(_Promise && getTag(_Promise.resolve()) != promiseTag) ||
|
|
377
|
+
(_Set && getTag(new _Set) != setTag) ||
|
|
378
|
+
(_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
|
|
379
|
+
getTag = function(value) {
|
|
380
|
+
var result = isSymbol._baseGetTag(value),
|
|
381
|
+
Ctor = result == objectTag ? value.constructor : undefined,
|
|
382
|
+
ctorString = Ctor ? get._toSource(Ctor) : '';
|
|
383
|
+
|
|
384
|
+
if (ctorString) {
|
|
385
|
+
switch (ctorString) {
|
|
386
|
+
case dataViewCtorString: return dataViewTag;
|
|
387
|
+
case mapCtorString: return mapTag;
|
|
388
|
+
case promiseCtorString: return promiseTag;
|
|
389
|
+
case setCtorString: return setTag;
|
|
390
|
+
case weakMapCtorString: return weakMapTag;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return result;
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
var _this = undefined;
|
|
398
|
+
|
|
399
|
+
var blocksToText = function blocksToText(blocks) {
|
|
400
|
+
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
401
|
+
|
|
402
|
+
var defaults = { nonTextBehavior: 'remove' };
|
|
403
|
+
var options = _extends._Object$assign({}, defaults, opts);
|
|
404
|
+
return blocks.map(function (block) {
|
|
405
|
+
if (block._type !== 'block' || !block.children) {
|
|
406
|
+
return options.nonTextBehavior === 'remove' ? '' : '[' + block._type + ' block]';
|
|
407
|
+
}
|
|
408
|
+
return block.children.map(function (child) {
|
|
409
|
+
return child.text;
|
|
410
|
+
}).join('');
|
|
411
|
+
}).join('\n\n');
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
var MetaHead = React__default.memo(function (props) {
|
|
415
|
+
var data = props.data;
|
|
416
|
+
|
|
417
|
+
console.log('inside memo*&********************************************************');
|
|
418
|
+
return React__default.createElement(
|
|
419
|
+
Head,
|
|
420
|
+
null,
|
|
421
|
+
React__default.createElement('meta', { name: 'description', content: blocksToText(data) })
|
|
422
|
+
);
|
|
423
|
+
}, function (prevProps, nextProps) {
|
|
424
|
+
return true;
|
|
425
|
+
// return isEqual(prevProps.data, nextProps.data)
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
var TaxonomyDescription = function TaxonomyDescription(_ref) {
|
|
429
|
+
var data = _ref.data,
|
|
430
|
+
client = _ref.client;
|
|
431
|
+
|
|
432
|
+
var router = Router.useRouter();
|
|
433
|
+
|
|
434
|
+
React.useEffect(function () {
|
|
435
|
+
if (router && router.asPath && document.querySelector('meta[name="description"]')) {
|
|
436
|
+
console.log('updating');
|
|
437
|
+
document.querySelector('meta[name="description"]').setAttribute('content', router.asPath);
|
|
438
|
+
}
|
|
439
|
+
}, [router]);
|
|
440
|
+
|
|
441
|
+
// const prevPath = usePrevious(router && router.asPath ? router.asPath : null)
|
|
442
|
+
// const currentPath = router && router.asPath ? router.asPath : null
|
|
443
|
+
// useEffect(() => {
|
|
444
|
+
// if (router && router.asPath) {
|
|
445
|
+
// const queryParms = router.asPath.split('?')[1]
|
|
446
|
+
// if (queryParms) {
|
|
447
|
+
// const pageNumber = queryParms.split('&').reduce((acc, item) => {
|
|
448
|
+
// if (item.startsWith('page=')) {
|
|
449
|
+
// if (item.split('=')[1]) {
|
|
450
|
+
// acc = item.split('=')[1]
|
|
451
|
+
// return acc
|
|
452
|
+
// }
|
|
453
|
+
// }
|
|
454
|
+
// }, '')
|
|
455
|
+
// if (pageNumber !== '') {
|
|
456
|
+
// let metaDescription = blocksToText(data)
|
|
457
|
+
// metaDescription = `${metaDescription}| Page ${pageNumber}`
|
|
458
|
+
// console.log({ metaDescription, pageNumber })
|
|
459
|
+
// document.querySelector('meta[name="description"]').setAttribute('content', metaDescription)
|
|
460
|
+
// }
|
|
461
|
+
// }
|
|
462
|
+
// }
|
|
463
|
+
// }, [router])
|
|
464
|
+
|
|
465
|
+
return data && data.length > 0 && React__default.createElement(
|
|
466
|
+
'section',
|
|
467
|
+
{ className: 'taxonomy-description' },
|
|
468
|
+
React__default.createElement(MetaHead, { data: data }),
|
|
469
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: data, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
470
|
+
);
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
TaxonomyDescription.getDescription = function () {
|
|
474
|
+
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
475
|
+
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
476
|
+
var client = arguments[1];
|
|
477
|
+
var query, summary;
|
|
478
|
+
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
479
|
+
while (1) {
|
|
480
|
+
switch (_context.prev = _context.next) {
|
|
481
|
+
case 0:
|
|
482
|
+
query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\'][0].summary';
|
|
483
|
+
summary = [];
|
|
484
|
+
_context.prev = 2;
|
|
485
|
+
_context.next = 5;
|
|
486
|
+
return client.fetch(query);
|
|
487
|
+
|
|
488
|
+
case 5:
|
|
489
|
+
summary = _context.sent;
|
|
490
|
+
_context.next = 11;
|
|
491
|
+
break;
|
|
492
|
+
|
|
493
|
+
case 8:
|
|
494
|
+
_context.prev = 8;
|
|
495
|
+
_context.t0 = _context['catch'](2);
|
|
496
|
+
|
|
497
|
+
console.error(_context.t0);
|
|
498
|
+
|
|
499
|
+
case 11:
|
|
500
|
+
return _context.abrupt('return', summary);
|
|
501
|
+
|
|
502
|
+
case 12:
|
|
503
|
+
case 'end':
|
|
504
|
+
return _context.stop();
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}, _callee, _this, [[2, 8]]);
|
|
508
|
+
}));
|
|
178
509
|
|
|
510
|
+
return function () {
|
|
511
|
+
return _ref2.apply(this, arguments);
|
|
512
|
+
};
|
|
513
|
+
}();
|
|
179
514
|
|
|
180
515
|
exports.Segment = Segment;
|
|
181
516
|
exports.Beam = Beam;
|
|
@@ -262,3 +597,4 @@ exports.View = View;
|
|
|
262
597
|
exports.getKeywords = getKeywords;
|
|
263
598
|
exports.urlFor = urlFor;
|
|
264
599
|
exports.PartnerDetailListing = PartnerDetailListing;
|
|
600
|
+
exports.TaxonomyDescription = TaxonomyDescription;
|
|
@@ -204,6 +204,8 @@ var isSymbol_1 = isSymbol;
|
|
|
204
204
|
|
|
205
205
|
exports._Symbol = _Symbol;
|
|
206
206
|
exports._baseGetTag = _baseGetTag;
|
|
207
|
+
exports._freeGlobal = _freeGlobal;
|
|
207
208
|
exports._root = _root;
|
|
209
|
+
exports.isObjectLike_1 = isObjectLike_1;
|
|
208
210
|
exports.isObject_1 = isObject_1;
|
|
209
211
|
exports.isSymbol_1 = isSymbol_1;
|
package/dist/esm/AD.js
CHANGED
package/dist/esm/AD300x250.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import { m as main_36 } from './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import { m as main_36 } from './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
package/dist/esm/AD728x90.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import { m as main_36 } from './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
package/dist/esm/ADGutter.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
package/dist/esm/ADSkyscraper.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
package/dist/esm/ADWebcast.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
package/dist/esm/ADWelcome.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
9
|
import './index-0e45a0b2.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import './debounce-3ab4e0ad.js';
|
|
13
13
|
import './main-5d1e4bd3.js';
|
|
14
14
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import './Segment.js';
|
|
19
19
|
import './Beam.js';
|
package/dist/esm/AdSlot.js
CHANGED
|
@@ -8,12 +8,12 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import React__default, { useState } from 'react';
|
|
9
9
|
import { a as lib_2 } from './index-0e45a0b2.js';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import './isSymbol-
|
|
12
|
-
import { d as debounce_1 } from './debounce-
|
|
11
|
+
import './isSymbol-5eb15258.js';
|
|
12
|
+
import { d as debounce_1 } from './debounce-3ab4e0ad.js';
|
|
13
13
|
import { b as main_16 } from './main-5d1e4bd3.js';
|
|
14
14
|
import './stringify-008c8802.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-
|
|
16
|
+
import './asyncToGenerator-d0f08f8d.js';
|
|
17
17
|
import './_set-species-cede29f8.js';
|
|
18
18
|
import Segment from './Segment.js';
|
|
19
19
|
import Beam from './Beam.js';
|
|
@@ -17,8 +17,8 @@ import 'prop-types';
|
|
|
17
17
|
import Container from 'react-bootstrap/Container';
|
|
18
18
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
19
19
|
import { withRouter } from 'next/router';
|
|
20
|
-
import './isSymbol-
|
|
21
|
-
import { d as debounce_1 } from './debounce-
|
|
20
|
+
import './isSymbol-5eb15258.js';
|
|
21
|
+
import { d as debounce_1 } from './debounce-3ab4e0ad.js';
|
|
22
22
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
package/dist/esm/Auth.js
CHANGED
|
@@ -11,7 +11,7 @@ import React__default, { useEffect, useState } from 'react';
|
|
|
11
11
|
import Router from 'next/router';
|
|
12
12
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
13
13
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-7021e5df.js';
|
|
14
|
-
import {
|
|
14
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d0f08f8d.js';
|
|
15
15
|
import './_set-species-cede29f8.js';
|
|
16
16
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
17
17
|
import { u as util } from './util-7700fc59.js';
|
package/dist/esm/Beam.js
CHANGED
|
@@ -6,7 +6,7 @@ import './_iter-detect-59409a32.js';
|
|
|
6
6
|
import './core.get-iterator-method-54d2e411.js';
|
|
7
7
|
import './web.dom.iterable-8956f9a5.js';
|
|
8
8
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
9
|
-
import {
|
|
9
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d0f08f8d.js';
|
|
10
10
|
import './_set-species-cede29f8.js';
|
|
11
11
|
import Segment from './Segment.js';
|
|
12
12
|
|
package/dist/esm/CMEDeck.js
CHANGED
|
@@ -13,14 +13,14 @@ import { l as lib_3 } from './index-0e45a0b2.js';
|
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import './moment-e2f9b20c.js';
|
|
15
15
|
import { useRouter } from 'next/router';
|
|
16
|
-
import './isSymbol-
|
|
17
|
-
import { d as debounce_1 } from './debounce-
|
|
16
|
+
import './isSymbol-5eb15258.js';
|
|
17
|
+
import { d as debounce_1 } from './debounce-3ab4e0ad.js';
|
|
18
18
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
21
21
|
import { m as main_36 } from './main-5d1e4bd3.js';
|
|
22
22
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
23
|
-
import {
|
|
23
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d0f08f8d.js';
|
|
24
24
|
import './_set-species-cede29f8.js';
|
|
25
25
|
import { Spinner, Container, Row, Col } from 'react-bootstrap';
|
|
26
26
|
|