@mjhls/mjh-framework 1.0.440 → 1.0.441
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 +172 -172
- package/dist/cjs/{ADInfeed-494f5e6b.js → ADInfeed-ae1f348d.js} +12 -10
- package/dist/cjs/{ADlgInfeed-be0e0bde.js → ADlgInfeed-f4c4a1bf.js} +8 -7
- package/dist/cjs/{AdSlot-4d22aad4.js → AdSlot-257d8d4e.js} +256 -15
- package/dist/cjs/{AuthorComponent-4706f297.js → AuthorComponent-b44bb44e.js} +13 -12
- package/dist/cjs/DeckContent.js +91 -87
- package/dist/cjs/DeckQueue.js +82 -78
- package/dist/cjs/{Dfp-2399639f.js → Dfp-d7639f4c.js} +22 -20
- package/dist/cjs/{Figure-9e886c5b.js → Figure-cc919c38.js} +20 -19
- package/dist/cjs/{GridContent-184cdd0f.js → GridContent-db383f73.js} +161 -157
- package/dist/cjs/GridContent.js +14 -14
- package/dist/cjs/GroupDeck.js +39 -38
- package/dist/cjs/IssueContentDeck.js +65 -60
- package/dist/cjs/IssueDeck.js +69 -64
- package/dist/cjs/MasterDeck.js +60 -59
- package/dist/cjs/{Normal-62915103.js → Normal-430e8e61.js} +523 -512
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/QueueDeckExpanded.js +99 -99
- package/dist/cjs/{TaxonomyCard-eb928f05.js → TaxonomyCard-fa09aac1.js} +77 -71
- package/dist/cjs/TaxonomyCard.js +4 -4
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/ThumbnailCard.js +17 -15
- package/dist/cjs/{Ustream-6aebd935.js → Ustream-46288bdf.js} +17 -16
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +40 -39
- package/dist/cjs/YoutubeGroup.js +49 -48
- package/dist/cjs/{debounce-b088070c.js → debounce-420ff8a8.js} +16 -12
- package/dist/cjs/{get-5aa7468c.js → get-7a75c563.js} +1 -1
- package/dist/cjs/{index-fa0fb52c.js → index-8a3fb0bc.js} +13 -10
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-ab3f2690.js → index.es-44c8e726.js} +9 -10
- package/dist/cjs/index.esm-340d3792.js +0 -3
- package/dist/cjs/index.js +1887 -1927
- package/dist/cjs/{inherits-e793003e.js → inherits-b4036c94.js} +4 -4
- package/dist/cjs/{main-bc4db521.js → main-d76cde9c.js} +52 -82
- package/dist/cjs/{react-social-icons-cd0d9d3b.js → react-social-icons-07939b41.js} +13 -11
- package/dist/cjs/{typeof-2747c582.js → typeof-0d86b91c.js} +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-a40ae0cd.js} +8 -6
- package/dist/esm/{ADInfeed-e5cefea5.js → ADInfeed-dff74bbe.js} +6 -6
- package/dist/esm/{ADlgInfeed-51a2801a.js → ADlgInfeed-7b29db85.js} +5 -5
- package/dist/esm/{AdSlot-78e48a2c.js → AdSlot-362a1c30.js} +246 -8
- package/dist/esm/{AuthorComponent-c9e46673.js → AuthorComponent-4f5f15ed.js} +10 -10
- package/dist/esm/DeckContent.js +62 -62
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-d5fe1252.js → Dfp-994cd0ab.js} +10 -10
- package/dist/esm/{Figure-cc1affbe.js → Figure-1c55ebf0.js} +17 -17
- package/dist/esm/{GridContent-b79201ad.js → GridContent-6b38c580.js} +111 -111
- package/dist/esm/GridContent.js +14 -14
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/IssueContentDeck.js +35 -35
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/MasterDeck.js +45 -45
- package/dist/esm/{Normal-6eba8168.js → Normal-6efd92da.js} +407 -407
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/QueueDeckExpanded.js +92 -92
- package/dist/esm/{TaxonomyCard-b29aa7ac.js → TaxonomyCard-b22a742f.js} +37 -37
- package/dist/esm/TaxonomyCard.js +4 -4
- package/dist/esm/TemplateNormal.js +6 -6
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/{Ustream-914ce145.js → Ustream-c4f281a3.js} +14 -14
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoSeriesListing.js +26 -26
- package/dist/esm/YoutubeGroup.js +37 -37
- package/dist/esm/{debounce-df468b0e.js → debounce-42a7f724.js} +9 -7
- package/dist/esm/{get-53653403.js → get-bc6cf9fb.js} +1 -1
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index.es-938a3a58.js → index.es-27d0bae9.js} +6 -8
- package/dist/esm/index.js +1752 -1815
- package/dist/esm/{inherits-dfba24f5.js → inherits-bbec2f34.js} +1 -1
- package/dist/esm/{main-7d1b3c98.js → main-cf4930f0.js} +50 -81
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-e4b50250.js → typeof-09bf9211.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-87d6b78c.js} +3 -3
- package/package.json +105 -103
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-c5e2fde8.js';
|
|
2
2
|
import { _ as _extends } from './extends-92072fff.js';
|
|
3
|
-
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-
|
|
4
|
-
import
|
|
5
|
-
import { d as debounce_1, l as lib_3 } from './debounce-
|
|
3
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-bbec2f34.js';
|
|
4
|
+
import React, { Suspense } from 'react';
|
|
5
|
+
import { d as debounce_1, l as lib_3 } from './debounce-42a7f724.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
9
|
import Card from 'react-bootstrap/Card';
|
|
10
10
|
import { m as moment } from './moment-12415288.js';
|
|
11
11
|
import { withRouter } from 'next/router';
|
|
12
|
-
import { I as InfiniteScroll } from './index.es-
|
|
13
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
14
|
-
import { i as imageUrlBuilder } from './index-
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { m as
|
|
12
|
+
import { I as InfiniteScroll } from './index.es-27d0bae9.js';
|
|
13
|
+
import { V as VisibilitySensor } from './visibility-sensor-87d6b78c.js';
|
|
14
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
16
|
+
import { m as main_36 } from './main-cf4930f0.js';
|
|
17
17
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
18
|
+
import { A as ADInfeed } from './ADInfeed-dff74bbe.js';
|
|
19
19
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
20
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
21
|
-
import { g as get_1 } from './get-
|
|
22
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
20
|
+
import { A as ADlgInfeed } from './ADlgInfeed-7b29db85.js';
|
|
21
|
+
import { g as get_1 } from './get-bc6cf9fb.js';
|
|
22
|
+
import { A as AuthorComponent } from './AuthorComponent-4f5f15ed.js';
|
|
23
23
|
|
|
24
|
-
var Dfp =
|
|
25
|
-
return import('./Dfp-
|
|
24
|
+
var Dfp = React.lazy(function () {
|
|
25
|
+
return import('./Dfp-994cd0ab.js');
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
var AD = function AD(props) {
|
|
29
29
|
if (typeof window === 'undefined') {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return React.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
null,
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
Suspense,
|
|
37
|
-
{ fallback:
|
|
37
|
+
{ fallback: React.createElement(
|
|
38
38
|
'div',
|
|
39
39
|
null,
|
|
40
40
|
'Loading...'
|
|
41
41
|
) },
|
|
42
|
-
|
|
42
|
+
React.createElement(Dfp, props)
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
45
|
};
|
|
@@ -224,7 +224,7 @@ var GridContent = function (_React$Component) {
|
|
|
224
224
|
var rightItems = _this.props.rightItems;
|
|
225
225
|
|
|
226
226
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
227
|
-
return
|
|
227
|
+
return React.createElement(
|
|
228
228
|
'div',
|
|
229
229
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
230
230
|
rightItems[i].component
|
|
@@ -232,15 +232,15 @@ var GridContent = function (_React$Component) {
|
|
|
232
232
|
}, _this.renderManualPagination = function () {
|
|
233
233
|
var currentPage = _this.state.currentPage;
|
|
234
234
|
|
|
235
|
-
return
|
|
235
|
+
return React.createElement(
|
|
236
236
|
'div',
|
|
237
237
|
{ className: 'd-flex justify-content-between' },
|
|
238
|
-
currentPage && currentPage > 1 &&
|
|
238
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
239
239
|
'a',
|
|
240
240
|
{ href: '?page=' + (currentPage - 1) },
|
|
241
241
|
'<< Previous'
|
|
242
242
|
),
|
|
243
|
-
|
|
243
|
+
React.createElement(
|
|
244
244
|
'a',
|
|
245
245
|
{ href: '?page=' + (currentPage + 1) },
|
|
246
246
|
'Next >>'
|
|
@@ -259,59 +259,59 @@ var GridContent = function (_React$Component) {
|
|
|
259
259
|
var numberOfItemsBeforeAd = 6;
|
|
260
260
|
var numberOfItemsBeforeVideo = 3;
|
|
261
261
|
if (variant === 'stack') {
|
|
262
|
-
return
|
|
262
|
+
return React.createElement(
|
|
263
263
|
Row,
|
|
264
264
|
null,
|
|
265
265
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
266
266
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
267
|
-
return
|
|
267
|
+
return React.createElement(
|
|
268
268
|
Col,
|
|
269
269
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
270
|
-
|
|
270
|
+
React.createElement(
|
|
271
271
|
Card,
|
|
272
272
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
273
|
-
|
|
273
|
+
React.createElement(
|
|
274
274
|
Row,
|
|
275
275
|
{ style: { flexDirection: 'row' } },
|
|
276
|
-
|
|
276
|
+
React.createElement(
|
|
277
277
|
Col,
|
|
278
278
|
{ md: 12, lg: 4 },
|
|
279
|
-
|
|
279
|
+
React.createElement(
|
|
280
280
|
'a',
|
|
281
281
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
282
|
-
|
|
282
|
+
React.createElement(
|
|
283
283
|
LazyLoad,
|
|
284
284
|
{ height: _this2.props.imageHeight },
|
|
285
|
-
|
|
285
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
286
286
|
)
|
|
287
287
|
)
|
|
288
288
|
),
|
|
289
|
-
|
|
289
|
+
React.createElement(
|
|
290
290
|
Col,
|
|
291
291
|
null,
|
|
292
|
-
|
|
292
|
+
React.createElement(
|
|
293
293
|
Card.Body,
|
|
294
294
|
{ style: { padding: '20px' } },
|
|
295
|
-
|
|
295
|
+
React.createElement(
|
|
296
296
|
Card.Title,
|
|
297
297
|
null,
|
|
298
|
-
|
|
298
|
+
React.createElement(
|
|
299
299
|
'a',
|
|
300
300
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
301
301
|
row.title
|
|
302
302
|
)
|
|
303
303
|
),
|
|
304
|
-
_this2.props.showPublished && row.published &&
|
|
304
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
305
305
|
Card.Subtitle,
|
|
306
306
|
{ style: { marginTop: 0 } },
|
|
307
307
|
moment(row.published).format('MMMM DD, YYYY')
|
|
308
308
|
),
|
|
309
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
309
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
310
310
|
LazyLoad,
|
|
311
311
|
{ height: 50 },
|
|
312
|
-
|
|
312
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
313
313
|
),
|
|
314
|
-
|
|
314
|
+
React.createElement(
|
|
315
315
|
Card.Text,
|
|
316
316
|
null,
|
|
317
317
|
clean_html_1(row.summary)
|
|
@@ -321,13 +321,13 @@ var GridContent = function (_React$Component) {
|
|
|
321
321
|
)
|
|
322
322
|
)
|
|
323
323
|
);
|
|
324
|
-
}) :
|
|
324
|
+
}) : React.createElement(
|
|
325
325
|
'div',
|
|
326
326
|
null,
|
|
327
|
-
|
|
327
|
+
React.createElement(
|
|
328
328
|
'h5',
|
|
329
329
|
null,
|
|
330
|
-
|
|
330
|
+
React.createElement(
|
|
331
331
|
'em',
|
|
332
332
|
null,
|
|
333
333
|
'New content coming soon, please check back later.'
|
|
@@ -412,7 +412,7 @@ var GridContent = function (_React$Component) {
|
|
|
412
412
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
413
413
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
414
414
|
var featureCount = 0;
|
|
415
|
-
return
|
|
415
|
+
return React.createElement(
|
|
416
416
|
'div',
|
|
417
417
|
{ className: 'grid-container' },
|
|
418
418
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -422,58 +422,58 @@ var GridContent = function (_React$Component) {
|
|
|
422
422
|
if (row._type === 'feature') {
|
|
423
423
|
featureCount++;
|
|
424
424
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
425
|
-
return
|
|
426
|
-
|
|
425
|
+
return React.createElement(
|
|
426
|
+
React.Fragment,
|
|
427
427
|
{ key: itemCounter },
|
|
428
|
-
|
|
428
|
+
React.createElement(
|
|
429
429
|
VisibilitySensor,
|
|
430
430
|
{
|
|
431
431
|
partialVisibility: true,
|
|
432
432
|
onChange: function onChange(isVisible) {
|
|
433
433
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
434
434
|
} },
|
|
435
|
-
|
|
435
|
+
React.createElement(
|
|
436
436
|
'div',
|
|
437
437
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
438
|
-
|
|
438
|
+
React.createElement(
|
|
439
439
|
Card,
|
|
440
440
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
441
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
441
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
442
442
|
'a',
|
|
443
443
|
{ href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
444
|
-
|
|
444
|
+
React.createElement(
|
|
445
445
|
LazyLoad,
|
|
446
446
|
{ height: _this2.props.imageHeight },
|
|
447
|
-
|
|
447
|
+
React.createElement(Card.Img, {
|
|
448
448
|
variant: 'top',
|
|
449
449
|
src: _this2.renderCardImage(row, page),
|
|
450
450
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
451
451
|
})
|
|
452
452
|
)
|
|
453
453
|
),
|
|
454
|
-
|
|
454
|
+
React.createElement(
|
|
455
455
|
Card.Body,
|
|
456
456
|
null,
|
|
457
|
-
|
|
457
|
+
React.createElement(
|
|
458
458
|
'a',
|
|
459
459
|
{ href: row.url.current, target: '_blank' },
|
|
460
|
-
|
|
460
|
+
React.createElement(
|
|
461
461
|
Card.Title,
|
|
462
462
|
null,
|
|
463
463
|
row.title
|
|
464
464
|
)
|
|
465
465
|
),
|
|
466
|
-
_this2.props.showPublished && row.published &&
|
|
466
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
467
467
|
Card.Subtitle,
|
|
468
468
|
{ style: { marginTop: 0 } },
|
|
469
469
|
moment(row.published).format('MMMM DD, YYYY')
|
|
470
470
|
),
|
|
471
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
471
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
472
472
|
LazyLoad,
|
|
473
473
|
{ height: 50 },
|
|
474
|
-
|
|
474
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
475
475
|
),
|
|
476
|
-
|
|
476
|
+
React.createElement(
|
|
477
477
|
Card.Text,
|
|
478
478
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
479
479
|
clean_html_1(row.summary)
|
|
@@ -482,62 +482,62 @@ var GridContent = function (_React$Component) {
|
|
|
482
482
|
)
|
|
483
483
|
)
|
|
484
484
|
),
|
|
485
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
486
|
-
|
|
485
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
486
|
+
main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
487
487
|
);
|
|
488
488
|
} else {
|
|
489
|
-
return
|
|
490
|
-
|
|
489
|
+
return React.createElement(
|
|
490
|
+
React.Fragment,
|
|
491
491
|
{ key: itemCounter },
|
|
492
|
-
|
|
492
|
+
React.createElement(
|
|
493
493
|
VisibilitySensor,
|
|
494
494
|
{
|
|
495
495
|
partialVisibility: true,
|
|
496
496
|
onChange: function onChange(isVisible) {
|
|
497
497
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
498
498
|
} },
|
|
499
|
-
|
|
499
|
+
React.createElement(
|
|
500
500
|
'div',
|
|
501
501
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
502
|
-
|
|
502
|
+
React.createElement(
|
|
503
503
|
Card,
|
|
504
504
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
505
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
505
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
506
506
|
'a',
|
|
507
507
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
508
|
-
|
|
508
|
+
React.createElement(
|
|
509
509
|
LazyLoad,
|
|
510
510
|
{ height: _this2.props.imageHeight },
|
|
511
|
-
|
|
511
|
+
React.createElement(Card.Img, {
|
|
512
512
|
variant: 'top',
|
|
513
513
|
src: _this2.renderCardImage(row, page),
|
|
514
514
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
515
515
|
})
|
|
516
516
|
)
|
|
517
517
|
),
|
|
518
|
-
|
|
518
|
+
React.createElement(
|
|
519
519
|
Card.Body,
|
|
520
520
|
null,
|
|
521
|
-
|
|
521
|
+
React.createElement(
|
|
522
522
|
'a',
|
|
523
523
|
{ href: row.url.current },
|
|
524
|
-
|
|
524
|
+
React.createElement(
|
|
525
525
|
Card.Title,
|
|
526
526
|
null,
|
|
527
527
|
row.title
|
|
528
528
|
)
|
|
529
529
|
),
|
|
530
|
-
_this2.props.showPublished && row.published &&
|
|
530
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
531
531
|
Card.Subtitle,
|
|
532
532
|
{ style: { marginTop: 0 } },
|
|
533
533
|
moment(row.published).format('MMMM DD, YYYY')
|
|
534
534
|
),
|
|
535
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
535
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
536
536
|
LazyLoad,
|
|
537
537
|
{ height: 50 },
|
|
538
|
-
|
|
538
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
539
539
|
),
|
|
540
|
-
|
|
540
|
+
React.createElement(
|
|
541
541
|
Card.Text,
|
|
542
542
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
543
543
|
clean_html_1(row.summary)
|
|
@@ -546,67 +546,67 @@ var GridContent = function (_React$Component) {
|
|
|
546
546
|
)
|
|
547
547
|
)
|
|
548
548
|
),
|
|
549
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
550
|
-
|
|
549
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
550
|
+
main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
551
551
|
);
|
|
552
552
|
}
|
|
553
553
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
554
|
-
return
|
|
554
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
555
555
|
} else if (row._type === 'BrandInsight' && row.adUnit) {
|
|
556
|
-
return
|
|
556
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
557
557
|
}
|
|
558
558
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
559
|
-
return
|
|
560
|
-
|
|
559
|
+
return React.createElement(
|
|
560
|
+
React.Fragment,
|
|
561
561
|
{ key: itemCounter },
|
|
562
|
-
|
|
562
|
+
React.createElement(
|
|
563
563
|
VisibilitySensor,
|
|
564
564
|
{
|
|
565
565
|
onChange: function onChange(isVisible) {
|
|
566
566
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
567
567
|
} },
|
|
568
|
-
|
|
568
|
+
React.createElement(
|
|
569
569
|
'div',
|
|
570
570
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
571
|
-
|
|
571
|
+
React.createElement(
|
|
572
572
|
Card,
|
|
573
573
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
574
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
574
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
575
575
|
'a',
|
|
576
576
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
577
|
-
|
|
577
|
+
React.createElement(
|
|
578
578
|
LazyLoad,
|
|
579
579
|
{ height: _this2.props.imageHeight },
|
|
580
|
-
|
|
580
|
+
React.createElement(Card.Img, {
|
|
581
581
|
variant: 'top',
|
|
582
582
|
src: _this2.renderCardImage(row, page),
|
|
583
583
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
584
584
|
})
|
|
585
585
|
)
|
|
586
586
|
),
|
|
587
|
-
|
|
587
|
+
React.createElement(
|
|
588
588
|
Card.Body,
|
|
589
589
|
null,
|
|
590
|
-
|
|
590
|
+
React.createElement(
|
|
591
591
|
'a',
|
|
592
592
|
{ href: linkHref },
|
|
593
|
-
|
|
593
|
+
React.createElement(
|
|
594
594
|
Card.Title,
|
|
595
595
|
null,
|
|
596
596
|
row.title
|
|
597
597
|
)
|
|
598
598
|
),
|
|
599
|
-
_this2.props.showPublished && row.published &&
|
|
599
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
600
600
|
Card.Subtitle,
|
|
601
601
|
{ style: { marginTop: 0 } },
|
|
602
602
|
moment(row.published).format('MMMM DD, YYYY')
|
|
603
603
|
),
|
|
604
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
604
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
605
605
|
LazyLoad,
|
|
606
606
|
{ height: 50 },
|
|
607
|
-
|
|
607
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
608
608
|
),
|
|
609
|
-
|
|
609
|
+
React.createElement(
|
|
610
610
|
Card.Text,
|
|
611
611
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
612
612
|
clean_html_1(row.summary)
|
|
@@ -615,17 +615,17 @@ var GridContent = function (_React$Component) {
|
|
|
615
615
|
)
|
|
616
616
|
)
|
|
617
617
|
),
|
|
618
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
619
|
-
|
|
618
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
619
|
+
main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
620
620
|
);
|
|
621
621
|
} else return null;
|
|
622
|
-
}) :
|
|
622
|
+
}) : React.createElement(
|
|
623
623
|
'div',
|
|
624
624
|
null,
|
|
625
|
-
|
|
625
|
+
React.createElement(
|
|
626
626
|
'h5',
|
|
627
627
|
null,
|
|
628
|
-
|
|
628
|
+
React.createElement(
|
|
629
629
|
'em',
|
|
630
630
|
null,
|
|
631
631
|
'New content coming soon, please check back later.'
|
|
@@ -650,29 +650,29 @@ var GridContent = function (_React$Component) {
|
|
|
650
650
|
brandInsight = _props.brandInsight;
|
|
651
651
|
|
|
652
652
|
|
|
653
|
-
return
|
|
653
|
+
return React.createElement(
|
|
654
654
|
'div',
|
|
655
655
|
{ className: 'contentDeck' },
|
|
656
|
-
autoScroll ?
|
|
656
|
+
autoScroll ? React.createElement(
|
|
657
657
|
InfiniteScroll,
|
|
658
658
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
659
|
-
|
|
659
|
+
React.createElement(
|
|
660
660
|
Container,
|
|
661
661
|
null,
|
|
662
662
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.desktopView)
|
|
663
663
|
)
|
|
664
|
-
) :
|
|
665
|
-
|
|
664
|
+
) : React.createElement(
|
|
665
|
+
React.Fragment,
|
|
666
666
|
null,
|
|
667
|
-
|
|
667
|
+
React.createElement(
|
|
668
668
|
Container,
|
|
669
669
|
null,
|
|
670
670
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.desktopView)
|
|
671
671
|
),
|
|
672
|
-
|
|
672
|
+
React.createElement(
|
|
673
673
|
'div',
|
|
674
674
|
{ style: { padding: '0px 10px' } },
|
|
675
|
-
this.state.scrolling ?
|
|
675
|
+
this.state.scrolling ? React.createElement(
|
|
676
676
|
'button',
|
|
677
677
|
{
|
|
678
678
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -680,17 +680,17 @@ var GridContent = function (_React$Component) {
|
|
|
680
680
|
_this3.loadMore();
|
|
681
681
|
} },
|
|
682
682
|
'Load More'
|
|
683
|
-
) :
|
|
683
|
+
) : React.createElement(
|
|
684
684
|
'p',
|
|
685
685
|
{ style: { textAlign: 'center' } },
|
|
686
|
-
|
|
686
|
+
React.createElement(
|
|
687
687
|
'b',
|
|
688
688
|
null,
|
|
689
689
|
'End of data'
|
|
690
690
|
)
|
|
691
691
|
)
|
|
692
692
|
),
|
|
693
|
-
|
|
693
|
+
React.createElement(
|
|
694
694
|
'noscript',
|
|
695
695
|
null,
|
|
696
696
|
this.renderManualPagination()
|
|
@@ -701,8 +701,8 @@ var GridContent = function (_React$Component) {
|
|
|
701
701
|
}]);
|
|
702
702
|
|
|
703
703
|
return GridContent;
|
|
704
|
-
}(
|
|
704
|
+
}(React.Component);
|
|
705
705
|
|
|
706
|
-
var GridContent$1 =
|
|
706
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
707
707
|
|
|
708
708
|
export { AD as A, GridContent$1 as G };
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -6,10 +6,10 @@ import './_iter-detect-7c281f0a.js';
|
|
|
6
6
|
import './toConsumableArray-c5e2fde8.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
8
|
import './extends-92072fff.js';
|
|
9
|
-
import './inherits-
|
|
10
|
-
import './typeof-
|
|
9
|
+
import './inherits-bbec2f34.js';
|
|
10
|
+
import './typeof-09bf9211.js';
|
|
11
11
|
import 'react';
|
|
12
|
-
import './debounce-
|
|
12
|
+
import './debounce-42a7f724.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import 'react-bootstrap/Container';
|
|
15
15
|
import 'react-bootstrap/Row';
|
|
@@ -17,19 +17,19 @@ import 'react-bootstrap/Col';
|
|
|
17
17
|
import 'react-bootstrap/Card';
|
|
18
18
|
import './moment-12415288.js';
|
|
19
19
|
import 'next/router';
|
|
20
|
-
import './index.es-
|
|
20
|
+
import './index.es-27d0bae9.js';
|
|
21
21
|
import 'react-dom';
|
|
22
|
-
import './visibility-sensor-
|
|
23
|
-
import './index-
|
|
24
|
-
import './index-
|
|
25
|
-
import './main-
|
|
22
|
+
import './visibility-sensor-87d6b78c.js';
|
|
23
|
+
import './index-73819142.js';
|
|
24
|
+
import './index-c5fd0af5.js';
|
|
25
|
+
import './main-cf4930f0.js';
|
|
26
26
|
import './entities-7cc3bf45.js';
|
|
27
27
|
import './slicedToArray-04e02710.js';
|
|
28
|
-
import './AdSlot-
|
|
28
|
+
import './AdSlot-362a1c30.js';
|
|
29
29
|
import './promise-2592a80a.js';
|
|
30
|
-
import './ADInfeed-
|
|
30
|
+
import './ADInfeed-dff74bbe.js';
|
|
31
31
|
import './lodash-17fdfebb.js';
|
|
32
|
-
import './ADlgInfeed-
|
|
33
|
-
import './get-
|
|
34
|
-
export { G as default } from './GridContent-
|
|
35
|
-
import './AuthorComponent-
|
|
32
|
+
import './ADlgInfeed-7b29db85.js';
|
|
33
|
+
import './get-bc6cf9fb.js';
|
|
34
|
+
export { G as default } from './GridContent-6b38c580.js';
|
|
35
|
+
import './AuthorComponent-4f5f15ed.js';
|