@mjhls/mjh-framework 1.0.440 → 1.0.442
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 +116 -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 +1903 -1935
- 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 +109 -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 +1768 -1823
- 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
|
@@ -6,26 +6,26 @@ import './_iter-detect-7c281f0a.js';
|
|
|
6
6
|
import { _ as _toConsumableArray } from './toConsumableArray-c5e2fde8.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
8
|
import { _ as _extends } from './extends-92072fff.js';
|
|
9
|
-
import
|
|
10
|
-
import { l as lib_3 } from './debounce-
|
|
9
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
10
|
+
import { l as lib_3 } from './debounce-42a7f724.js';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import 'react-bootstrap/Card';
|
|
13
13
|
import { m as moment } from './moment-12415288.js';
|
|
14
14
|
import { useRouter } from 'next/router';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-27d0bae9.js';
|
|
16
16
|
import 'react-dom';
|
|
17
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
18
|
-
import { i as imageUrlBuilder } from './index-
|
|
19
|
-
import { L as LazyLoad } from './index-
|
|
20
|
-
import { m as
|
|
17
|
+
import { V as VisibilitySensor } from './visibility-sensor-87d6b78c.js';
|
|
18
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
19
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
20
|
+
import { m as main_36 } from './main-cf4930f0.js';
|
|
21
21
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
22
22
|
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
23
|
-
import './AdSlot-
|
|
23
|
+
import './AdSlot-362a1c30.js';
|
|
24
24
|
import './promise-2592a80a.js';
|
|
25
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
25
|
+
import { A as ADInfeed } from './ADInfeed-dff74bbe.js';
|
|
26
26
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
27
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
28
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
27
|
+
import { A as ADlgInfeed } from './ADlgInfeed-7b29db85.js';
|
|
28
|
+
import { A as AuthorComponent } from './AuthorComponent-4f5f15ed.js';
|
|
29
29
|
import { Container, Media } from 'react-bootstrap';
|
|
30
30
|
|
|
31
31
|
var urlFor = function urlFor(source, builder) {
|
|
@@ -203,7 +203,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
203
203
|
|
|
204
204
|
var featureCount = 0;
|
|
205
205
|
|
|
206
|
-
return
|
|
206
|
+
return React.createElement(
|
|
207
207
|
'div',
|
|
208
208
|
null,
|
|
209
209
|
data && data.length > 0 ? data.map(function (article, index) {
|
|
@@ -213,7 +213,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
213
213
|
if (article._type === 'feature') {
|
|
214
214
|
featureCount++;
|
|
215
215
|
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
216
|
-
return
|
|
216
|
+
return React.createElement(
|
|
217
217
|
VisibilitySensor,
|
|
218
218
|
{
|
|
219
219
|
key: article._id ? article._id : index,
|
|
@@ -221,55 +221,55 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
221
221
|
onChange: function onChange(isVisible) {
|
|
222
222
|
isVisible && changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
223
223
|
} },
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
React.createElement(
|
|
225
|
+
React.Fragment,
|
|
226
226
|
null,
|
|
227
|
-
|
|
227
|
+
React.createElement(
|
|
228
228
|
Media,
|
|
229
229
|
{
|
|
230
230
|
key: article._id ? article._id : index,
|
|
231
231
|
className: 'feature-media',
|
|
232
232
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
233
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
233
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
234
234
|
'a',
|
|
235
235
|
{ href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
236
|
-
|
|
236
|
+
React.createElement(
|
|
237
237
|
LazyLoad,
|
|
238
238
|
{ height: imageHeight },
|
|
239
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
239
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
240
240
|
)
|
|
241
241
|
),
|
|
242
|
-
|
|
242
|
+
React.createElement(
|
|
243
243
|
Media.Body,
|
|
244
244
|
null,
|
|
245
|
-
|
|
245
|
+
React.createElement(
|
|
246
246
|
'a',
|
|
247
247
|
{ href: article.url.current, target: '_blank' },
|
|
248
|
-
article.title &&
|
|
248
|
+
article.title && React.createElement(
|
|
249
249
|
'h4',
|
|
250
250
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
251
251
|
article.title
|
|
252
252
|
)
|
|
253
253
|
),
|
|
254
|
-
showPublished && article.published &&
|
|
254
|
+
showPublished && article.published && React.createElement(
|
|
255
255
|
'p',
|
|
256
256
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
257
257
|
moment(article.published).format('MMMM DD, YYYY')
|
|
258
258
|
),
|
|
259
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
259
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
260
260
|
LazyLoad,
|
|
261
261
|
{ height: 50 },
|
|
262
|
-
|
|
262
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
263
263
|
),
|
|
264
|
-
article.source &&
|
|
264
|
+
article.source && React.createElement(
|
|
265
265
|
'div',
|
|
266
266
|
{ className: 'mb-1 sanityDisplayLabel' },
|
|
267
267
|
article.source
|
|
268
268
|
),
|
|
269
|
-
|
|
269
|
+
React.createElement(
|
|
270
270
|
'div',
|
|
271
271
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
272
|
-
showCategory && article.contentCategory &&
|
|
272
|
+
showCategory && article.contentCategory && React.createElement(
|
|
273
273
|
'p',
|
|
274
274
|
{
|
|
275
275
|
className: 'article-category',
|
|
@@ -283,7 +283,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
283
283
|
} },
|
|
284
284
|
article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
|
|
285
285
|
),
|
|
286
|
-
article.issueSection && article.issueSection.name &&
|
|
286
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
287
287
|
'p',
|
|
288
288
|
{
|
|
289
289
|
className: 'issueSection',
|
|
@@ -299,7 +299,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
299
299
|
article.issueSection.name
|
|
300
300
|
)
|
|
301
301
|
),
|
|
302
|
-
article.summary &&
|
|
302
|
+
article.summary && React.createElement(
|
|
303
303
|
'p',
|
|
304
304
|
{ className: 'pt-2 card-text' },
|
|
305
305
|
clean_html_1(article.summary)
|
|
@@ -309,7 +309,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
309
309
|
)
|
|
310
310
|
);
|
|
311
311
|
} else {
|
|
312
|
-
return
|
|
312
|
+
return React.createElement(
|
|
313
313
|
VisibilitySensor,
|
|
314
314
|
{
|
|
315
315
|
key: article._id ? article._id : index,
|
|
@@ -317,55 +317,55 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
317
317
|
onChange: function onChange(isVisible) {
|
|
318
318
|
isVisible && changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
319
319
|
} },
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
React.createElement(
|
|
321
|
+
React.Fragment,
|
|
322
322
|
null,
|
|
323
|
-
|
|
323
|
+
React.createElement(
|
|
324
324
|
Media,
|
|
325
325
|
{
|
|
326
326
|
key: article._id ? article._id : index,
|
|
327
327
|
className: 'feature-media',
|
|
328
328
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
329
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
329
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
330
330
|
'a',
|
|
331
331
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
332
|
-
|
|
332
|
+
React.createElement(
|
|
333
333
|
LazyLoad,
|
|
334
334
|
{ height: imageHeight },
|
|
335
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
335
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
336
336
|
)
|
|
337
337
|
),
|
|
338
|
-
|
|
338
|
+
React.createElement(
|
|
339
339
|
Media.Body,
|
|
340
340
|
null,
|
|
341
|
-
|
|
341
|
+
React.createElement(
|
|
342
342
|
'a',
|
|
343
343
|
{ href: article.url.current },
|
|
344
|
-
article.title &&
|
|
344
|
+
article.title && React.createElement(
|
|
345
345
|
'h4',
|
|
346
346
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
347
347
|
article.title
|
|
348
348
|
)
|
|
349
349
|
),
|
|
350
|
-
showPublished && article.published &&
|
|
350
|
+
showPublished && article.published && React.createElement(
|
|
351
351
|
'p',
|
|
352
352
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
353
353
|
moment(article.published).format('MMMM DD, YYYY')
|
|
354
354
|
),
|
|
355
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
355
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
356
356
|
LazyLoad,
|
|
357
357
|
{ height: 50 },
|
|
358
|
-
|
|
358
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
359
359
|
),
|
|
360
|
-
article.source &&
|
|
360
|
+
article.source && React.createElement(
|
|
361
361
|
'div',
|
|
362
362
|
{ className: 'mb-1 sanityDisplayLabel' },
|
|
363
363
|
article.source
|
|
364
364
|
),
|
|
365
|
-
|
|
365
|
+
React.createElement(
|
|
366
366
|
'div',
|
|
367
367
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
368
|
-
showCategory && article.contentCategory &&
|
|
368
|
+
showCategory && article.contentCategory && React.createElement(
|
|
369
369
|
'p',
|
|
370
370
|
{
|
|
371
371
|
className: 'article-category',
|
|
@@ -379,7 +379,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
379
379
|
} },
|
|
380
380
|
article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
|
|
381
381
|
),
|
|
382
|
-
article.issueSection && article.issueSection.name &&
|
|
382
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
383
383
|
'p',
|
|
384
384
|
{
|
|
385
385
|
className: 'issueSection',
|
|
@@ -395,7 +395,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
395
395
|
article.issueSection.name
|
|
396
396
|
)
|
|
397
397
|
),
|
|
398
|
-
article.summary &&
|
|
398
|
+
article.summary && React.createElement(
|
|
399
399
|
'p',
|
|
400
400
|
{ className: 'pt-2 card-text' },
|
|
401
401
|
clean_html_1(article.summary)
|
|
@@ -406,74 +406,74 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
406
406
|
);
|
|
407
407
|
}
|
|
408
408
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
409
|
-
return
|
|
409
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
410
410
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
411
|
-
return
|
|
411
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
412
412
|
}
|
|
413
|
-
if (
|
|
413
|
+
if (main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
414
414
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
418
|
-
return
|
|
418
|
+
return React.createElement(
|
|
419
419
|
VisibilitySensor,
|
|
420
420
|
{
|
|
421
421
|
key: article._id ? article._id : index,
|
|
422
422
|
onChange: function onChange(isVisible) {
|
|
423
423
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
424
424
|
} },
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
React.createElement(
|
|
426
|
+
React.Fragment,
|
|
427
427
|
null,
|
|
428
|
-
|
|
428
|
+
React.createElement(
|
|
429
429
|
Media,
|
|
430
430
|
{
|
|
431
431
|
key: article._id ? article._id : index,
|
|
432
432
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
433
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
433
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
434
434
|
'a',
|
|
435
435
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
436
|
-
|
|
436
|
+
React.createElement(
|
|
437
437
|
LazyLoad,
|
|
438
438
|
{ height: imageHeight },
|
|
439
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
439
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
440
440
|
)
|
|
441
441
|
),
|
|
442
|
-
|
|
442
|
+
React.createElement(
|
|
443
443
|
Media.Body,
|
|
444
444
|
null,
|
|
445
|
-
|
|
445
|
+
React.createElement(
|
|
446
446
|
'a',
|
|
447
447
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
448
|
-
article.title &&
|
|
448
|
+
article.title && React.createElement(
|
|
449
449
|
'h4',
|
|
450
450
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
451
451
|
article.title
|
|
452
452
|
)
|
|
453
453
|
),
|
|
454
|
-
showPublished && article.published &&
|
|
454
|
+
showPublished && article.published && React.createElement(
|
|
455
455
|
'p',
|
|
456
456
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
457
457
|
moment(article.published).format('MMMM DD, YYYY')
|
|
458
458
|
),
|
|
459
|
-
|
|
459
|
+
React.createElement(
|
|
460
460
|
'div',
|
|
461
461
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
462
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
462
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
463
463
|
LazyLoad,
|
|
464
464
|
{ height: 50 },
|
|
465
|
-
|
|
465
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
466
466
|
)
|
|
467
467
|
),
|
|
468
|
-
article.source &&
|
|
468
|
+
article.source && React.createElement(
|
|
469
469
|
'div',
|
|
470
470
|
{ className: 'mb-1 sanityDisplayLabel' },
|
|
471
471
|
article.source
|
|
472
472
|
),
|
|
473
|
-
|
|
473
|
+
React.createElement(
|
|
474
474
|
'div',
|
|
475
475
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
476
|
-
showCategory && article.contentCategory &&
|
|
476
|
+
showCategory && article.contentCategory && React.createElement(
|
|
477
477
|
'p',
|
|
478
478
|
{
|
|
479
479
|
className: 'article-category',
|
|
@@ -487,7 +487,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
487
487
|
} },
|
|
488
488
|
article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
|
|
489
489
|
),
|
|
490
|
-
article.issueSection && article.issueSection.name &&
|
|
490
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
491
491
|
'p',
|
|
492
492
|
{
|
|
493
493
|
className: 'issueSection',
|
|
@@ -503,7 +503,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
503
503
|
article.issueSection.name
|
|
504
504
|
)
|
|
505
505
|
),
|
|
506
|
-
article.summary &&
|
|
506
|
+
article.summary && React.createElement(
|
|
507
507
|
'p',
|
|
508
508
|
{ className: 'pt-2 card-text' },
|
|
509
509
|
clean_html_1(article.summary)
|
|
@@ -513,20 +513,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
513
513
|
)
|
|
514
514
|
);
|
|
515
515
|
} else return null;
|
|
516
|
-
}) :
|
|
516
|
+
}) : React.createElement(
|
|
517
517
|
'div',
|
|
518
518
|
null,
|
|
519
|
-
|
|
519
|
+
React.createElement(
|
|
520
520
|
'h5',
|
|
521
521
|
null,
|
|
522
|
-
|
|
522
|
+
React.createElement(
|
|
523
523
|
'em',
|
|
524
524
|
null,
|
|
525
525
|
'New content coming soon, please check back later.'
|
|
526
526
|
)
|
|
527
527
|
)
|
|
528
528
|
),
|
|
529
|
-
|
|
529
|
+
React.createElement(
|
|
530
530
|
'style',
|
|
531
531
|
{ jsx: 'true' },
|
|
532
532
|
'\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: fit-content;\n padding: 5px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
|
|
@@ -536,7 +536,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
536
536
|
|
|
537
537
|
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
538
538
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
539
|
-
return
|
|
539
|
+
return React.createElement(
|
|
540
540
|
'div',
|
|
541
541
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
542
542
|
rightItems[i].component
|
|
@@ -544,15 +544,15 @@ var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, right
|
|
|
544
544
|
};
|
|
545
545
|
|
|
546
546
|
var renderManualPagination = function renderManualPagination(currentPage) {
|
|
547
|
-
return
|
|
547
|
+
return React.createElement(
|
|
548
548
|
'div',
|
|
549
549
|
{ className: 'd-flex justify-content-between' },
|
|
550
|
-
currentPage && currentPage > 1 &&
|
|
550
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
551
551
|
'a',
|
|
552
552
|
{ href: '?page=' + (currentPage - 1) },
|
|
553
553
|
'<< Previous'
|
|
554
554
|
),
|
|
555
|
-
|
|
555
|
+
React.createElement(
|
|
556
556
|
'a',
|
|
557
557
|
{ href: '?page=' + (currentPage + 1) },
|
|
558
558
|
'Next >>'
|
|
@@ -634,6 +634,23 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
634
634
|
var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : 10;
|
|
635
635
|
|
|
636
636
|
var prevValues = usePrevious(values);
|
|
637
|
+
|
|
638
|
+
//check for change in filter parameters from client side and refresh the page
|
|
639
|
+
useEffect(function () {
|
|
640
|
+
if (initialData && data !== initialData && initialData.length >= 0) {
|
|
641
|
+
setData(initialData);
|
|
642
|
+
setCurrentPage(initialCurrentPage ? initialCurrentPage : 1);
|
|
643
|
+
setValues({
|
|
644
|
+
from: params ? params.from : 0,
|
|
645
|
+
to: params ? params.to : 0,
|
|
646
|
+
page: 1
|
|
647
|
+
});
|
|
648
|
+
if (initialData.length > 0) {
|
|
649
|
+
setScrolling(true);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}, [initialData]);
|
|
653
|
+
|
|
637
654
|
useEffect(function () {
|
|
638
655
|
if (lgInfeedAd && window && window.innerWidth >= 1200) {
|
|
639
656
|
setDesktopView(true);
|
|
@@ -660,40 +677,40 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
660
677
|
}
|
|
661
678
|
};
|
|
662
679
|
|
|
663
|
-
return
|
|
680
|
+
return React.createElement(
|
|
664
681
|
'div',
|
|
665
682
|
null,
|
|
666
|
-
autoScroll ?
|
|
667
|
-
|
|
683
|
+
autoScroll ? React.createElement(
|
|
684
|
+
React.Fragment,
|
|
668
685
|
null,
|
|
669
|
-
|
|
686
|
+
React.createElement(
|
|
670
687
|
InfiniteScroll,
|
|
671
688
|
{ dataLength: data && data.length, next: function next() {
|
|
672
689
|
return loadMore(values, setValues, per);
|
|
673
690
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
674
|
-
|
|
691
|
+
React.createElement(
|
|
675
692
|
Container,
|
|
676
693
|
null,
|
|
677
694
|
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, dektopView)
|
|
678
695
|
)
|
|
679
696
|
),
|
|
680
|
-
|
|
697
|
+
React.createElement(
|
|
681
698
|
'noscript',
|
|
682
699
|
null,
|
|
683
700
|
renderManualPagination(currentPage)
|
|
684
701
|
)
|
|
685
|
-
) :
|
|
686
|
-
|
|
702
|
+
) : React.createElement(
|
|
703
|
+
React.Fragment,
|
|
687
704
|
null,
|
|
688
|
-
|
|
705
|
+
React.createElement(
|
|
689
706
|
Container,
|
|
690
707
|
null,
|
|
691
708
|
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, dektopView)
|
|
692
709
|
),
|
|
693
|
-
|
|
710
|
+
React.createElement(
|
|
694
711
|
'div',
|
|
695
712
|
{ style: { padding: '0px 10px' } },
|
|
696
|
-
scrolling ?
|
|
713
|
+
scrolling ? React.createElement(
|
|
697
714
|
'button',
|
|
698
715
|
{
|
|
699
716
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -701,17 +718,17 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
701
718
|
loadMore(values, setValues, per);
|
|
702
719
|
} },
|
|
703
720
|
'Load More'
|
|
704
|
-
) :
|
|
721
|
+
) : React.createElement(
|
|
705
722
|
'p',
|
|
706
723
|
{ style: { textAlign: 'center' } },
|
|
707
|
-
|
|
724
|
+
React.createElement(
|
|
708
725
|
'b',
|
|
709
726
|
null,
|
|
710
727
|
'End of data'
|
|
711
728
|
)
|
|
712
729
|
)
|
|
713
730
|
),
|
|
714
|
-
|
|
731
|
+
React.createElement(
|
|
715
732
|
'noscript',
|
|
716
733
|
null,
|
|
717
734
|
renderManualPagination(currentPage)
|