@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,12 +1,12 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import Row from 'react-bootstrap/Row';
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
-
import { L as LazyLoad } from './index-
|
|
8
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
9
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
10
10
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
12
12
|
|
|
@@ -50,43 +50,43 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
if (sortedRegPubs && sortedRegPubs.length || sortedLegacyPubs && sortedLegacyPubs.length) {
|
|
53
|
-
return
|
|
53
|
+
return React.createElement(
|
|
54
54
|
'div',
|
|
55
55
|
{ className: 'publication-wrapper', style: { paddingBottom: '150px' } },
|
|
56
|
-
sortedRegPubs && sortedRegPubs.length > 0 &&
|
|
56
|
+
sortedRegPubs && sortedRegPubs.length > 0 && React.createElement(
|
|
57
57
|
Row,
|
|
58
58
|
{ className: 'regular-publication-wrapper' },
|
|
59
59
|
sortedRegPubs.map(function (row, index) {
|
|
60
|
-
return row.identifier && row.identifier.current &&
|
|
60
|
+
return row.identifier && row.identifier.current && React.createElement(
|
|
61
61
|
Col,
|
|
62
62
|
{ xs: 6, sm: 6, md: 6, lg: 4, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
63
|
-
|
|
63
|
+
React.createElement(
|
|
64
64
|
Card,
|
|
65
65
|
{ className: 'block-card', style: { width: '200px' } },
|
|
66
|
-
|
|
66
|
+
React.createElement(
|
|
67
67
|
'a',
|
|
68
68
|
{ href: href + '/' + row.identifier.current },
|
|
69
|
-
row.childIssue && row.childIssue.thumbnail ?
|
|
69
|
+
row.childIssue && row.childIssue.thumbnail ? React.createElement(
|
|
70
70
|
LazyLoad,
|
|
71
71
|
{ height: imageHeight },
|
|
72
|
-
|
|
73
|
-
) :
|
|
74
|
-
|
|
72
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), style: { objectFit: 'contain', maxHeight: '200px', maxWidth: '200px' } })
|
|
73
|
+
) : React.createElement('p', { className: 'placeholder-tag' }),
|
|
74
|
+
React.createElement(
|
|
75
75
|
Card.Body,
|
|
76
76
|
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
77
|
-
|
|
77
|
+
React.createElement(
|
|
78
78
|
Card.Title,
|
|
79
79
|
null,
|
|
80
80
|
row.name
|
|
81
81
|
),
|
|
82
|
-
|
|
82
|
+
React.createElement(
|
|
83
83
|
Button,
|
|
84
84
|
{ style: { position: 'absolute', bottom: '1rem', margin: '0px', width: '78%' }, variant: 'secondary' },
|
|
85
85
|
'Browse Issues'
|
|
86
86
|
)
|
|
87
87
|
)
|
|
88
88
|
),
|
|
89
|
-
|
|
89
|
+
React.createElement(
|
|
90
90
|
'style',
|
|
91
91
|
{ jsx: 'true' },
|
|
92
92
|
'\n .lazyload-placeholder {\n padding: 0 1.25rem 2.75rem;\n }\n .placeholder-tag {\n min-height: 200px;\n }\n '
|
|
@@ -95,53 +95,53 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
95
95
|
);
|
|
96
96
|
})
|
|
97
97
|
),
|
|
98
|
-
sortedLegacyPubs && sortedLegacyPubs.length > 0 &&
|
|
99
|
-
|
|
98
|
+
sortedLegacyPubs && sortedLegacyPubs.length > 0 && React.createElement(
|
|
99
|
+
React.Fragment,
|
|
100
100
|
null,
|
|
101
|
-
|
|
101
|
+
React.createElement(
|
|
102
102
|
'div',
|
|
103
103
|
{ className: 'legacy-publication-title' },
|
|
104
|
-
|
|
104
|
+
React.createElement(
|
|
105
105
|
'h2',
|
|
106
106
|
null,
|
|
107
107
|
'Legacy'
|
|
108
108
|
),
|
|
109
|
-
|
|
109
|
+
React.createElement('hr', null)
|
|
110
110
|
),
|
|
111
|
-
|
|
111
|
+
React.createElement(
|
|
112
112
|
Row,
|
|
113
113
|
{ className: 'legacy-publication-wrapper' },
|
|
114
114
|
sortedLegacyPubs.map(function (row, index) {
|
|
115
|
-
return row.identifier && row.identifier.current &&
|
|
115
|
+
return row.identifier && row.identifier.current && React.createElement(
|
|
116
116
|
Col,
|
|
117
117
|
{ xs: 6, sm: 6, md: 6, lg: 4, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
118
|
-
|
|
118
|
+
React.createElement(
|
|
119
119
|
Card,
|
|
120
120
|
{ className: 'block-card', style: { width: '200px' } },
|
|
121
|
-
|
|
121
|
+
React.createElement(
|
|
122
122
|
'a',
|
|
123
123
|
{ href: href + '/' + row.identifier.current },
|
|
124
|
-
row.childIssue && row.childIssue.thumbnail ?
|
|
124
|
+
row.childIssue && row.childIssue.thumbnail ? React.createElement(
|
|
125
125
|
LazyLoad,
|
|
126
126
|
{ height: imageHeight },
|
|
127
|
-
|
|
128
|
-
) :
|
|
129
|
-
|
|
127
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), style: { objectFit: 'contain', maxHeight: '200px', maxWidth: '200px' } })
|
|
128
|
+
) : React.createElement('p', { className: 'placeholder-tag' }),
|
|
129
|
+
React.createElement(
|
|
130
130
|
Card.Body,
|
|
131
131
|
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
132
|
-
|
|
132
|
+
React.createElement(
|
|
133
133
|
Card.Title,
|
|
134
134
|
null,
|
|
135
135
|
row.name
|
|
136
136
|
),
|
|
137
|
-
|
|
137
|
+
React.createElement(
|
|
138
138
|
Button,
|
|
139
139
|
{ style: { position: 'absolute', bottom: '1rem', margin: '0px', width: '78%' }, variant: 'secondary' },
|
|
140
140
|
'Browse Issues'
|
|
141
141
|
)
|
|
142
142
|
)
|
|
143
143
|
),
|
|
144
|
-
|
|
144
|
+
React.createElement(
|
|
145
145
|
'style',
|
|
146
146
|
{ jsx: 'true' },
|
|
147
147
|
'\n .lazyload-placeholder {\n padding: 0 1.25rem 2.75rem;\n }\n .placeholder-tag {\n min-height: 200px;\n }\n '
|
|
@@ -153,13 +153,13 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
153
153
|
)
|
|
154
154
|
);
|
|
155
155
|
} else {
|
|
156
|
-
return
|
|
156
|
+
return React.createElement(
|
|
157
157
|
'div',
|
|
158
158
|
null,
|
|
159
|
-
|
|
159
|
+
React.createElement(
|
|
160
160
|
'h5',
|
|
161
161
|
null,
|
|
162
|
-
|
|
162
|
+
React.createElement(
|
|
163
163
|
'em',
|
|
164
164
|
{ className: 'pl-3' },
|
|
165
165
|
'New content coming soon, please check back later.'
|
|
@@ -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 >>'
|
|
@@ -660,40 +660,40 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
|
|
663
|
-
return
|
|
663
|
+
return React.createElement(
|
|
664
664
|
'div',
|
|
665
665
|
null,
|
|
666
|
-
autoScroll ?
|
|
667
|
-
|
|
666
|
+
autoScroll ? React.createElement(
|
|
667
|
+
React.Fragment,
|
|
668
668
|
null,
|
|
669
|
-
|
|
669
|
+
React.createElement(
|
|
670
670
|
InfiniteScroll,
|
|
671
671
|
{ dataLength: data && data.length, next: function next() {
|
|
672
672
|
return loadMore(values, setValues, per);
|
|
673
673
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
674
|
-
|
|
674
|
+
React.createElement(
|
|
675
675
|
Container,
|
|
676
676
|
null,
|
|
677
677
|
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, dektopView)
|
|
678
678
|
)
|
|
679
679
|
),
|
|
680
|
-
|
|
680
|
+
React.createElement(
|
|
681
681
|
'noscript',
|
|
682
682
|
null,
|
|
683
683
|
renderManualPagination(currentPage)
|
|
684
684
|
)
|
|
685
|
-
) :
|
|
686
|
-
|
|
685
|
+
) : React.createElement(
|
|
686
|
+
React.Fragment,
|
|
687
687
|
null,
|
|
688
|
-
|
|
688
|
+
React.createElement(
|
|
689
689
|
Container,
|
|
690
690
|
null,
|
|
691
691
|
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, dektopView)
|
|
692
692
|
),
|
|
693
|
-
|
|
693
|
+
React.createElement(
|
|
694
694
|
'div',
|
|
695
695
|
{ style: { padding: '0px 10px' } },
|
|
696
|
-
scrolling ?
|
|
696
|
+
scrolling ? React.createElement(
|
|
697
697
|
'button',
|
|
698
698
|
{
|
|
699
699
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -701,17 +701,17 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
701
701
|
loadMore(values, setValues, per);
|
|
702
702
|
} },
|
|
703
703
|
'Load More'
|
|
704
|
-
) :
|
|
704
|
+
) : React.createElement(
|
|
705
705
|
'p',
|
|
706
706
|
{ style: { textAlign: 'center' } },
|
|
707
|
-
|
|
707
|
+
React.createElement(
|
|
708
708
|
'b',
|
|
709
709
|
null,
|
|
710
710
|
'End of data'
|
|
711
711
|
)
|
|
712
712
|
)
|
|
713
713
|
),
|
|
714
|
-
|
|
714
|
+
React.createElement(
|
|
715
715
|
'noscript',
|
|
716
716
|
null,
|
|
717
717
|
renderManualPagination(currentPage)
|