@mjhls/mjh-framework 1.0.821 → 1.0.822
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 +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +14098 -17
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +5 -4
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -11
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +6 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +5 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +6 -5
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +37 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +13 -12
- package/dist/cjs/MediaSeriesLanding.js +306 -406
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +11 -7
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +5 -4
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +5 -4
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +4 -3
- package/dist/cjs/{SeriesSlider-028ab640.js → SeriesSlider-d54fa925.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +6 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +6 -5
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesListing.js +5 -4
- package/dist/cjs/View.js +10 -9
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +6 -5
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-be6168ad.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-7e0d91f8.js → index-179d21a3.js} +3 -3
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-9225638f.js → index.esm-3b9b8952.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +15 -14
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -6
- package/dist/esm/AD300x250x600.js +7 -6
- package/dist/esm/AD728x90.js +8 -7
- package/dist/esm/ADFloatingFooter.js +10 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -9
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-28b1e946.js} +5 -5
- package/dist/esm/ADSkyscraper.js +10 -9
- package/dist/esm/ADSponsoredResources.js +10 -9
- package/dist/esm/ADWebcast.js +10 -9
- package/dist/esm/ADWelcome.js +14 -13
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-0b474b02.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +6 -5
- package/dist/esm/AdSlotsProvider.js +5 -4
- package/dist/esm/AlgoliaSearch.js +14120 -39
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +18 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +32 -31
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +58 -57
- package/dist/esm/DeckQueue.js +43 -42
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +36 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +104 -103
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +32 -31
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +52 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +47 -46
- package/dist/esm/MediaSeriesLanding.js +331 -431
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +66 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +15 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +247 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-6551c52e.js → SeriesSlider-8f2aca58.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +14 -13
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +25 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +13 -12
- package/dist/esm/VideoSeriesListing.js +48 -47
- package/dist/esm/View.js +171 -170
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +9 -8
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-68291ce9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-3bcafffc.js → index-5cc7293b.js} +343 -343
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-e874e770.js → index.esm-d6f88d94.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +110 -110
- /package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-8b336c67.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-aedd5e18.js} +0 -0
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.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
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
10
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
11
11
|
import { m as moment } from './moment-bc12cb97.js';
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
|
-
import { L as LazyLoad } from './index-
|
|
13
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
14
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-28b1e946.js';
|
|
16
16
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
17
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
17
|
+
import { A as ADlgInfeed } from './ADlgInfeed-0b474b02.js';
|
|
18
18
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
19
19
|
import { g as get_1 } from './get-3c308da4.js';
|
|
20
20
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
22
22
|
import urlFor from './urlFor.js';
|
|
23
|
-
import { m as main_43 } from './main-
|
|
23
|
+
import { m as main_43 } from './main-b5c5aac1.js';
|
|
24
24
|
import './AD.js';
|
|
25
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
25
|
+
import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
|
|
26
26
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
27
27
|
import './es6.string.iterator-bc33758b.js';
|
|
28
28
|
import './_to-object-b50e61c3.js';
|
|
@@ -35,6 +35,7 @@ import './typeof-a286cf0c.js';
|
|
|
35
35
|
import './web.dom.iterable-4109ff68.js';
|
|
36
36
|
import './_is-array-3e99e06e.js';
|
|
37
37
|
import './_library-528f1934.js';
|
|
38
|
+
import './events-6c3a7a63.js';
|
|
38
39
|
import 'prop-types';
|
|
39
40
|
import 'react-dom';
|
|
40
41
|
import './slicedToArray-be2f7a22.js';
|
|
@@ -225,7 +226,7 @@ var GridContent = function (_React$Component) {
|
|
|
225
226
|
var rightItems = _this.props.rightItems;
|
|
226
227
|
|
|
227
228
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
228
|
-
return
|
|
229
|
+
return React.createElement(
|
|
229
230
|
'div',
|
|
230
231
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
231
232
|
rightItems[i].component
|
|
@@ -233,15 +234,15 @@ var GridContent = function (_React$Component) {
|
|
|
233
234
|
}, _this.renderManualPagination = function () {
|
|
234
235
|
var currentPage = _this.state.currentPage;
|
|
235
236
|
|
|
236
|
-
return
|
|
237
|
+
return React.createElement(
|
|
237
238
|
'div',
|
|
238
239
|
{ className: 'd-flex justify-content-between' },
|
|
239
|
-
currentPage && currentPage > 1 &&
|
|
240
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
240
241
|
'a',
|
|
241
242
|
{ href: '?page=' + (currentPage - 1) },
|
|
242
243
|
'<< Previous'
|
|
243
244
|
),
|
|
244
|
-
|
|
245
|
+
React.createElement(
|
|
245
246
|
'a',
|
|
246
247
|
{ href: '?page=' + (currentPage + 1) },
|
|
247
248
|
'Next >>'
|
|
@@ -260,62 +261,62 @@ var GridContent = function (_React$Component) {
|
|
|
260
261
|
var numberOfItemsBeforeAd = 6;
|
|
261
262
|
var numberOfItemsBeforeVideo = 3;
|
|
262
263
|
if (variant === 'stack') {
|
|
263
|
-
return
|
|
264
|
+
return React.createElement(
|
|
264
265
|
Row,
|
|
265
266
|
null,
|
|
266
267
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
267
268
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
268
|
-
return
|
|
269
|
+
return React.createElement(
|
|
269
270
|
Col,
|
|
270
271
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
271
|
-
|
|
272
|
+
React.createElement(
|
|
272
273
|
Card,
|
|
273
274
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
274
|
-
|
|
275
|
+
React.createElement(
|
|
275
276
|
Row,
|
|
276
277
|
{ style: { flexDirection: 'row' } },
|
|
277
|
-
|
|
278
|
+
React.createElement(
|
|
278
279
|
Col,
|
|
279
280
|
{ md: 12, lg: 4 },
|
|
280
|
-
|
|
281
|
+
React.createElement(
|
|
281
282
|
'a',
|
|
282
283
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
283
|
-
|
|
284
|
+
React.createElement(
|
|
284
285
|
LazyLoad,
|
|
285
286
|
{ height: _this2.props.imageHeight },
|
|
286
|
-
|
|
287
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
287
288
|
)
|
|
288
289
|
)
|
|
289
290
|
),
|
|
290
|
-
|
|
291
|
+
React.createElement(
|
|
291
292
|
Col,
|
|
292
293
|
null,
|
|
293
|
-
|
|
294
|
+
React.createElement(
|
|
294
295
|
Card.Body,
|
|
295
296
|
{ style: { padding: '20px' } },
|
|
296
|
-
|
|
297
|
+
React.createElement(
|
|
297
298
|
Card.Title,
|
|
298
299
|
null,
|
|
299
|
-
|
|
300
|
+
React.createElement(
|
|
300
301
|
'a',
|
|
301
302
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
302
303
|
row.title
|
|
303
304
|
)
|
|
304
305
|
),
|
|
305
|
-
_this2.props.showPublished && row.published &&
|
|
306
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
306
307
|
Card.Subtitle,
|
|
307
308
|
{ style: { marginTop: 0 } },
|
|
308
309
|
moment(row.published).format('MMMM DD, YYYY')
|
|
309
310
|
),
|
|
310
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
311
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
311
312
|
LazyLoad,
|
|
312
313
|
{ height: 50 },
|
|
313
|
-
|
|
314
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
314
315
|
),
|
|
315
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
316
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
316
317
|
LazyLoad,
|
|
317
318
|
{ height: 50 },
|
|
318
|
-
|
|
319
|
+
React.createElement(
|
|
319
320
|
'p',
|
|
320
321
|
{
|
|
321
322
|
className: 'article-category',
|
|
@@ -330,7 +331,7 @@ var GridContent = function (_React$Component) {
|
|
|
330
331
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
331
332
|
)
|
|
332
333
|
),
|
|
333
|
-
|
|
334
|
+
React.createElement(
|
|
334
335
|
Card.Text,
|
|
335
336
|
null,
|
|
336
337
|
clean_html_1(row.summary)
|
|
@@ -340,13 +341,13 @@ var GridContent = function (_React$Component) {
|
|
|
340
341
|
)
|
|
341
342
|
)
|
|
342
343
|
);
|
|
343
|
-
}) :
|
|
344
|
+
}) : React.createElement(
|
|
344
345
|
'div',
|
|
345
346
|
null,
|
|
346
|
-
|
|
347
|
+
React.createElement(
|
|
347
348
|
'h5',
|
|
348
349
|
null,
|
|
349
|
-
|
|
350
|
+
React.createElement(
|
|
350
351
|
'em',
|
|
351
352
|
null,
|
|
352
353
|
'New content coming soon, please check back later.'
|
|
@@ -457,7 +458,7 @@ var GridContent = function (_React$Component) {
|
|
|
457
458
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
458
459
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
459
460
|
var featureCount = 0;
|
|
460
|
-
return
|
|
461
|
+
return React.createElement(
|
|
461
462
|
'div',
|
|
462
463
|
{ className: 'grid-container' },
|
|
463
464
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -467,58 +468,58 @@ var GridContent = function (_React$Component) {
|
|
|
467
468
|
if (row._type === 'feature') {
|
|
468
469
|
featureCount++;
|
|
469
470
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
470
|
-
return
|
|
471
|
-
|
|
471
|
+
return React.createElement(
|
|
472
|
+
React.Fragment,
|
|
472
473
|
{ key: itemCounter },
|
|
473
|
-
|
|
474
|
+
React.createElement(
|
|
474
475
|
VisibilitySensor,
|
|
475
476
|
{
|
|
476
477
|
partialVisibility: true,
|
|
477
478
|
onChange: function onChange(isVisible) {
|
|
478
479
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
479
480
|
} },
|
|
480
|
-
|
|
481
|
+
React.createElement(
|
|
481
482
|
'div',
|
|
482
483
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
483
|
-
|
|
484
|
+
React.createElement(
|
|
484
485
|
Card,
|
|
485
486
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
486
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
487
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
487
488
|
'a',
|
|
488
489
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
489
|
-
|
|
490
|
+
React.createElement(
|
|
490
491
|
LazyLoad,
|
|
491
492
|
{ height: _this2.props.imageHeight },
|
|
492
|
-
|
|
493
|
+
React.createElement(Card.Img, {
|
|
493
494
|
variant: 'top',
|
|
494
495
|
src: _this2.renderCardImage(row, page),
|
|
495
496
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
496
497
|
})
|
|
497
498
|
)
|
|
498
499
|
),
|
|
499
|
-
|
|
500
|
+
React.createElement(
|
|
500
501
|
Card.Body,
|
|
501
502
|
null,
|
|
502
|
-
|
|
503
|
+
React.createElement(
|
|
503
504
|
'a',
|
|
504
505
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
505
|
-
|
|
506
|
+
React.createElement(
|
|
506
507
|
Card.Title,
|
|
507
508
|
null,
|
|
508
509
|
row.title
|
|
509
510
|
)
|
|
510
511
|
),
|
|
511
|
-
_this2.props.showPublished && row.published &&
|
|
512
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
512
513
|
Card.Subtitle,
|
|
513
514
|
{ style: { marginTop: 0 } },
|
|
514
515
|
moment(row.published).format('MMMM DD, YYYY')
|
|
515
516
|
),
|
|
516
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
517
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
517
518
|
LazyLoad,
|
|
518
519
|
{ height: 50 },
|
|
519
|
-
|
|
520
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
520
521
|
),
|
|
521
|
-
|
|
522
|
+
React.createElement(
|
|
522
523
|
Card.Text,
|
|
523
524
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
524
525
|
clean_html_1(row.summary)
|
|
@@ -527,62 +528,62 @@ var GridContent = function (_React$Component) {
|
|
|
527
528
|
)
|
|
528
529
|
)
|
|
529
530
|
),
|
|
530
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
531
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
531
532
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
532
533
|
);
|
|
533
534
|
} else {
|
|
534
|
-
return
|
|
535
|
-
|
|
535
|
+
return React.createElement(
|
|
536
|
+
React.Fragment,
|
|
536
537
|
{ key: itemCounter },
|
|
537
|
-
|
|
538
|
+
React.createElement(
|
|
538
539
|
VisibilitySensor,
|
|
539
540
|
{
|
|
540
541
|
partialVisibility: true,
|
|
541
542
|
onChange: function onChange(isVisible) {
|
|
542
543
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
543
544
|
} },
|
|
544
|
-
|
|
545
|
+
React.createElement(
|
|
545
546
|
'div',
|
|
546
547
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
547
|
-
|
|
548
|
+
React.createElement(
|
|
548
549
|
Card,
|
|
549
550
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
550
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
551
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
551
552
|
'a',
|
|
552
553
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
553
|
-
|
|
554
|
+
React.createElement(
|
|
554
555
|
LazyLoad,
|
|
555
556
|
{ height: _this2.props.imageHeight },
|
|
556
|
-
|
|
557
|
+
React.createElement(Card.Img, {
|
|
557
558
|
variant: 'top',
|
|
558
559
|
src: _this2.renderCardImage(row, page),
|
|
559
560
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
560
561
|
})
|
|
561
562
|
)
|
|
562
563
|
),
|
|
563
|
-
|
|
564
|
+
React.createElement(
|
|
564
565
|
Card.Body,
|
|
565
566
|
null,
|
|
566
|
-
|
|
567
|
+
React.createElement(
|
|
567
568
|
'a',
|
|
568
569
|
{ href: row.url.current },
|
|
569
|
-
|
|
570
|
+
React.createElement(
|
|
570
571
|
Card.Title,
|
|
571
572
|
null,
|
|
572
573
|
row.title
|
|
573
574
|
)
|
|
574
575
|
),
|
|
575
|
-
_this2.props.showPublished && row.published &&
|
|
576
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
576
577
|
Card.Subtitle,
|
|
577
578
|
{ style: { marginTop: 0 } },
|
|
578
579
|
moment(row.published).format('MMMM DD, YYYY')
|
|
579
580
|
),
|
|
580
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
581
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
581
582
|
LazyLoad,
|
|
582
583
|
{ height: 50 },
|
|
583
|
-
|
|
584
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
584
585
|
),
|
|
585
|
-
|
|
586
|
+
React.createElement(
|
|
586
587
|
Card.Text,
|
|
587
588
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
588
589
|
clean_html_1(row.summary)
|
|
@@ -591,71 +592,71 @@ var GridContent = function (_React$Component) {
|
|
|
591
592
|
)
|
|
592
593
|
)
|
|
593
594
|
),
|
|
594
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
595
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
595
596
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
596
597
|
);
|
|
597
598
|
}
|
|
598
599
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
599
|
-
return
|
|
600
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
600
601
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
601
|
-
return
|
|
602
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
602
603
|
}
|
|
603
604
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
604
|
-
return
|
|
605
|
-
|
|
605
|
+
return React.createElement(
|
|
606
|
+
React.Fragment,
|
|
606
607
|
{ key: itemCounter },
|
|
607
|
-
|
|
608
|
+
React.createElement(
|
|
608
609
|
VisibilitySensor,
|
|
609
610
|
{
|
|
610
611
|
onChange: function onChange(isVisible) {
|
|
611
612
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
612
613
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
613
614
|
} },
|
|
614
|
-
|
|
615
|
+
React.createElement(
|
|
615
616
|
'div',
|
|
616
617
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
617
|
-
|
|
618
|
+
React.createElement(
|
|
618
619
|
Card,
|
|
619
620
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
620
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
621
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
621
622
|
'a',
|
|
622
623
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
623
|
-
|
|
624
|
+
React.createElement(
|
|
624
625
|
LazyLoad,
|
|
625
626
|
{ height: _this2.props.imageHeight },
|
|
626
|
-
|
|
627
|
+
React.createElement(Card.Img, {
|
|
627
628
|
variant: 'top',
|
|
628
629
|
src: _this2.renderCardImage(row, page),
|
|
629
630
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
630
631
|
})
|
|
631
632
|
)
|
|
632
633
|
),
|
|
633
|
-
|
|
634
|
+
React.createElement(
|
|
634
635
|
Card.Body,
|
|
635
636
|
null,
|
|
636
|
-
|
|
637
|
+
React.createElement(
|
|
637
638
|
'a',
|
|
638
639
|
{ href: linkHref },
|
|
639
|
-
|
|
640
|
+
React.createElement(
|
|
640
641
|
Card.Title,
|
|
641
642
|
null,
|
|
642
643
|
row.title
|
|
643
644
|
)
|
|
644
645
|
),
|
|
645
|
-
_this2.props.showPublished && row.published &&
|
|
646
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
646
647
|
Card.Subtitle,
|
|
647
648
|
{ style: { marginTop: 0 } },
|
|
648
649
|
moment(row.published).format('MMMM DD, YYYY')
|
|
649
650
|
),
|
|
650
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
651
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
651
652
|
LazyLoad,
|
|
652
653
|
{ height: 50 },
|
|
653
|
-
|
|
654
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
654
655
|
),
|
|
655
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
656
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
656
657
|
LazyLoad,
|
|
657
658
|
{ height: 50 },
|
|
658
|
-
|
|
659
|
+
React.createElement(
|
|
659
660
|
'p',
|
|
660
661
|
{
|
|
661
662
|
className: 'article-category',
|
|
@@ -670,7 +671,7 @@ var GridContent = function (_React$Component) {
|
|
|
670
671
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
671
672
|
)
|
|
672
673
|
),
|
|
673
|
-
|
|
674
|
+
React.createElement(
|
|
674
675
|
Card.Text,
|
|
675
676
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
676
677
|
clean_html_1(row.summary)
|
|
@@ -679,17 +680,17 @@ var GridContent = function (_React$Component) {
|
|
|
679
680
|
)
|
|
680
681
|
)
|
|
681
682
|
),
|
|
682
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
683
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
683
684
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
684
685
|
);
|
|
685
686
|
} else return null;
|
|
686
|
-
}) :
|
|
687
|
+
}) : React.createElement(
|
|
687
688
|
'div',
|
|
688
689
|
null,
|
|
689
|
-
|
|
690
|
+
React.createElement(
|
|
690
691
|
'h5',
|
|
691
692
|
null,
|
|
692
|
-
|
|
693
|
+
React.createElement(
|
|
693
694
|
'em',
|
|
694
695
|
null,
|
|
695
696
|
'New content coming soon, please check back later.'
|
|
@@ -714,29 +715,29 @@ var GridContent = function (_React$Component) {
|
|
|
714
715
|
brandInsight = _props.brandInsight;
|
|
715
716
|
|
|
716
717
|
|
|
717
|
-
return
|
|
718
|
+
return React.createElement(
|
|
718
719
|
'div',
|
|
719
720
|
{ className: 'contentDeck' },
|
|
720
|
-
autoScroll ?
|
|
721
|
+
autoScroll ? React.createElement(
|
|
721
722
|
InfiniteScroll,
|
|
722
723
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
723
|
-
|
|
724
|
+
React.createElement(
|
|
724
725
|
Container,
|
|
725
726
|
null,
|
|
726
727
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
727
728
|
)
|
|
728
|
-
) :
|
|
729
|
-
|
|
729
|
+
) : React.createElement(
|
|
730
|
+
React.Fragment,
|
|
730
731
|
null,
|
|
731
|
-
|
|
732
|
+
React.createElement(
|
|
732
733
|
Container,
|
|
733
734
|
null,
|
|
734
735
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
735
736
|
),
|
|
736
|
-
|
|
737
|
+
React.createElement(
|
|
737
738
|
'div',
|
|
738
739
|
{ style: { padding: '0px 10px' } },
|
|
739
|
-
this.state.scrolling ?
|
|
740
|
+
this.state.scrolling ? React.createElement(
|
|
740
741
|
'button',
|
|
741
742
|
{
|
|
742
743
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -744,17 +745,17 @@ var GridContent = function (_React$Component) {
|
|
|
744
745
|
_this3.loadMore();
|
|
745
746
|
} },
|
|
746
747
|
'Load More'
|
|
747
|
-
) :
|
|
748
|
+
) : React.createElement(
|
|
748
749
|
'p',
|
|
749
750
|
{ style: { textAlign: 'center' } },
|
|
750
|
-
|
|
751
|
+
React.createElement(
|
|
751
752
|
'b',
|
|
752
753
|
null,
|
|
753
754
|
'End of data'
|
|
754
755
|
)
|
|
755
756
|
)
|
|
756
757
|
),
|
|
757
|
-
|
|
758
|
+
React.createElement(
|
|
758
759
|
'noscript',
|
|
759
760
|
null,
|
|
760
761
|
this.renderManualPagination()
|
|
@@ -765,8 +766,8 @@ var GridContent = function (_React$Component) {
|
|
|
765
766
|
}]);
|
|
766
767
|
|
|
767
768
|
return GridContent;
|
|
768
|
-
}(
|
|
769
|
+
}(React.Component);
|
|
769
770
|
|
|
770
|
-
var GridContent$1 =
|
|
771
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
771
772
|
|
|
772
773
|
export default GridContent$1;
|