@mjhls/mjh-framework 1.0.817 → 1.0.818
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 +14100 -19
- 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 +36 -26
- 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 +308 -408
- 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 +8 -7
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +5 -4
- package/dist/cjs/PublicationLanding.js +29 -29
- 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-2db54929.js → SeriesSlider-c022ce04.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-8041a4eb.js +99 -0
- package/dist/cjs/{index-70971c54.js → index-e5fd35c7.js} +3 -3
- 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-f7d00a9a.js → ADInfeed-7aaa47e1.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-db64f46d.js → ADlgInfeed-78f95e78.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 +116 -106
- 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 +63 -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 +78 -78
- 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-c8477bf3.js → SeriesSlider-8414085b.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-a30e3b71.js → index-04c4d8d6.js} +343 -343
- 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-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-7cf51090.js → ADInfeed-1ac86856.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-bf24708d.js → ADlgInfeed-2ee46b09.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-7aaa47e1.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-78f95e78.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 { i as imageUrlBuilder } from './index-0dbff1d1.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';
|
|
@@ -231,7 +232,7 @@ var GridContent = function (_React$Component) {
|
|
|
231
232
|
var rightItems = _this.props.rightItems;
|
|
232
233
|
|
|
233
234
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
234
|
-
return
|
|
235
|
+
return React.createElement(
|
|
235
236
|
'div',
|
|
236
237
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
237
238
|
rightItems[i].component
|
|
@@ -239,15 +240,15 @@ var GridContent = function (_React$Component) {
|
|
|
239
240
|
}, _this.renderManualPagination = function () {
|
|
240
241
|
var currentPage = _this.state.currentPage;
|
|
241
242
|
|
|
242
|
-
return
|
|
243
|
+
return React.createElement(
|
|
243
244
|
'div',
|
|
244
245
|
{ className: 'd-flex justify-content-between' },
|
|
245
|
-
currentPage && currentPage > 1 &&
|
|
246
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
246
247
|
'a',
|
|
247
248
|
{ href: '?page=' + (currentPage - 1) },
|
|
248
249
|
'<< Previous'
|
|
249
250
|
),
|
|
250
|
-
|
|
251
|
+
React.createElement(
|
|
251
252
|
'a',
|
|
252
253
|
{ href: '?page=' + (currentPage + 1) },
|
|
253
254
|
'Next >>'
|
|
@@ -266,62 +267,62 @@ var GridContent = function (_React$Component) {
|
|
|
266
267
|
var numberOfItemsBeforeAd = 6;
|
|
267
268
|
var numberOfItemsBeforeVideo = 3;
|
|
268
269
|
if (variant === 'stack') {
|
|
269
|
-
return
|
|
270
|
+
return React.createElement(
|
|
270
271
|
Row,
|
|
271
272
|
null,
|
|
272
273
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
273
274
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
274
|
-
return
|
|
275
|
+
return React.createElement(
|
|
275
276
|
Col,
|
|
276
277
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
277
|
-
|
|
278
|
+
React.createElement(
|
|
278
279
|
Card,
|
|
279
280
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
280
|
-
|
|
281
|
+
React.createElement(
|
|
281
282
|
Row,
|
|
282
283
|
{ style: { flexDirection: 'row' } },
|
|
283
|
-
|
|
284
|
+
React.createElement(
|
|
284
285
|
Col,
|
|
285
286
|
{ md: 12, lg: 4 },
|
|
286
|
-
|
|
287
|
+
React.createElement(
|
|
287
288
|
'a',
|
|
288
289
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
289
|
-
|
|
290
|
+
React.createElement(
|
|
290
291
|
LazyLoad,
|
|
291
292
|
{ height: _this2.props.imageHeight },
|
|
292
|
-
|
|
293
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
293
294
|
)
|
|
294
295
|
)
|
|
295
296
|
),
|
|
296
|
-
|
|
297
|
+
React.createElement(
|
|
297
298
|
Col,
|
|
298
299
|
null,
|
|
299
|
-
|
|
300
|
+
React.createElement(
|
|
300
301
|
Card.Body,
|
|
301
302
|
{ style: { padding: '20px' } },
|
|
302
|
-
|
|
303
|
+
React.createElement(
|
|
303
304
|
Card.Title,
|
|
304
305
|
null,
|
|
305
|
-
|
|
306
|
+
React.createElement(
|
|
306
307
|
'a',
|
|
307
308
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
308
309
|
row.title
|
|
309
310
|
)
|
|
310
311
|
),
|
|
311
|
-
_this2.props.showPublished && row.published &&
|
|
312
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
312
313
|
Card.Subtitle,
|
|
313
314
|
{ style: { marginTop: 0 } },
|
|
314
315
|
moment(row.published).format('MMMM DD, YYYY')
|
|
315
316
|
),
|
|
316
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
317
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
317
318
|
LazyLoad,
|
|
318
319
|
{ height: 50 },
|
|
319
|
-
|
|
320
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
320
321
|
),
|
|
321
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
322
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
322
323
|
LazyLoad,
|
|
323
324
|
{ height: 50 },
|
|
324
|
-
|
|
325
|
+
React.createElement(
|
|
325
326
|
'p',
|
|
326
327
|
{
|
|
327
328
|
className: 'article-category',
|
|
@@ -336,7 +337,7 @@ var GridContent = function (_React$Component) {
|
|
|
336
337
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
337
338
|
)
|
|
338
339
|
),
|
|
339
|
-
|
|
340
|
+
React.createElement(
|
|
340
341
|
Card.Text,
|
|
341
342
|
null,
|
|
342
343
|
clean_html_1(row.summary)
|
|
@@ -346,13 +347,13 @@ var GridContent = function (_React$Component) {
|
|
|
346
347
|
)
|
|
347
348
|
)
|
|
348
349
|
);
|
|
349
|
-
}) :
|
|
350
|
+
}) : React.createElement(
|
|
350
351
|
'div',
|
|
351
352
|
null,
|
|
352
|
-
|
|
353
|
+
React.createElement(
|
|
353
354
|
'h5',
|
|
354
355
|
null,
|
|
355
|
-
|
|
356
|
+
React.createElement(
|
|
356
357
|
'em',
|
|
357
358
|
null,
|
|
358
359
|
'New content coming soon, please check back later.'
|
|
@@ -463,7 +464,7 @@ var GridContent = function (_React$Component) {
|
|
|
463
464
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
464
465
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
465
466
|
var featureCount = 0;
|
|
466
|
-
return
|
|
467
|
+
return React.createElement(
|
|
467
468
|
'div',
|
|
468
469
|
{ className: 'grid-container' },
|
|
469
470
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -473,58 +474,58 @@ var GridContent = function (_React$Component) {
|
|
|
473
474
|
if (row._type === 'feature') {
|
|
474
475
|
featureCount++;
|
|
475
476
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
476
|
-
return
|
|
477
|
-
|
|
477
|
+
return React.createElement(
|
|
478
|
+
React.Fragment,
|
|
478
479
|
{ key: itemCounter },
|
|
479
|
-
|
|
480
|
+
React.createElement(
|
|
480
481
|
VisibilitySensor,
|
|
481
482
|
{
|
|
482
483
|
partialVisibility: true,
|
|
483
484
|
onChange: function onChange(isVisible) {
|
|
484
485
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
485
486
|
} },
|
|
486
|
-
|
|
487
|
+
React.createElement(
|
|
487
488
|
'div',
|
|
488
489
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
489
|
-
|
|
490
|
+
React.createElement(
|
|
490
491
|
Card,
|
|
491
492
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
492
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
493
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
493
494
|
'a',
|
|
494
495
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
495
|
-
|
|
496
|
+
React.createElement(
|
|
496
497
|
LazyLoad,
|
|
497
498
|
{ height: _this2.props.imageHeight },
|
|
498
|
-
|
|
499
|
+
React.createElement(Card.Img, {
|
|
499
500
|
variant: 'top',
|
|
500
501
|
src: _this2.renderCardImage(row, page),
|
|
501
502
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
502
503
|
})
|
|
503
504
|
)
|
|
504
505
|
),
|
|
505
|
-
|
|
506
|
+
React.createElement(
|
|
506
507
|
Card.Body,
|
|
507
508
|
null,
|
|
508
|
-
|
|
509
|
+
React.createElement(
|
|
509
510
|
'a',
|
|
510
511
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
511
|
-
|
|
512
|
+
React.createElement(
|
|
512
513
|
Card.Title,
|
|
513
514
|
null,
|
|
514
515
|
row.title
|
|
515
516
|
)
|
|
516
517
|
),
|
|
517
|
-
_this2.props.showPublished && row.published &&
|
|
518
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
518
519
|
Card.Subtitle,
|
|
519
520
|
{ style: { marginTop: 0 } },
|
|
520
521
|
moment(row.published).format('MMMM DD, YYYY')
|
|
521
522
|
),
|
|
522
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
523
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
523
524
|
LazyLoad,
|
|
524
525
|
{ height: 50 },
|
|
525
|
-
|
|
526
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
526
527
|
),
|
|
527
|
-
|
|
528
|
+
React.createElement(
|
|
528
529
|
Card.Text,
|
|
529
530
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
530
531
|
clean_html_1(row.summary)
|
|
@@ -533,62 +534,62 @@ var GridContent = function (_React$Component) {
|
|
|
533
534
|
)
|
|
534
535
|
)
|
|
535
536
|
),
|
|
536
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
537
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
537
538
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
538
539
|
);
|
|
539
540
|
} else {
|
|
540
|
-
return
|
|
541
|
-
|
|
541
|
+
return React.createElement(
|
|
542
|
+
React.Fragment,
|
|
542
543
|
{ key: itemCounter },
|
|
543
|
-
|
|
544
|
+
React.createElement(
|
|
544
545
|
VisibilitySensor,
|
|
545
546
|
{
|
|
546
547
|
partialVisibility: true,
|
|
547
548
|
onChange: function onChange(isVisible) {
|
|
548
549
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
549
550
|
} },
|
|
550
|
-
|
|
551
|
+
React.createElement(
|
|
551
552
|
'div',
|
|
552
553
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
553
|
-
|
|
554
|
+
React.createElement(
|
|
554
555
|
Card,
|
|
555
556
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
556
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
557
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
557
558
|
'a',
|
|
558
559
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
559
|
-
|
|
560
|
+
React.createElement(
|
|
560
561
|
LazyLoad,
|
|
561
562
|
{ height: _this2.props.imageHeight },
|
|
562
|
-
|
|
563
|
+
React.createElement(Card.Img, {
|
|
563
564
|
variant: 'top',
|
|
564
565
|
src: _this2.renderCardImage(row, page),
|
|
565
566
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
566
567
|
})
|
|
567
568
|
)
|
|
568
569
|
),
|
|
569
|
-
|
|
570
|
+
React.createElement(
|
|
570
571
|
Card.Body,
|
|
571
572
|
null,
|
|
572
|
-
|
|
573
|
+
React.createElement(
|
|
573
574
|
'a',
|
|
574
575
|
{ href: row.url.current },
|
|
575
|
-
|
|
576
|
+
React.createElement(
|
|
576
577
|
Card.Title,
|
|
577
578
|
null,
|
|
578
579
|
row.title
|
|
579
580
|
)
|
|
580
581
|
),
|
|
581
|
-
_this2.props.showPublished && row.published &&
|
|
582
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
582
583
|
Card.Subtitle,
|
|
583
584
|
{ style: { marginTop: 0 } },
|
|
584
585
|
moment(row.published).format('MMMM DD, YYYY')
|
|
585
586
|
),
|
|
586
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
587
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
587
588
|
LazyLoad,
|
|
588
589
|
{ height: 50 },
|
|
589
|
-
|
|
590
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
590
591
|
),
|
|
591
|
-
|
|
592
|
+
React.createElement(
|
|
592
593
|
Card.Text,
|
|
593
594
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
594
595
|
clean_html_1(row.summary)
|
|
@@ -597,71 +598,71 @@ var GridContent = function (_React$Component) {
|
|
|
597
598
|
)
|
|
598
599
|
)
|
|
599
600
|
),
|
|
600
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
601
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
601
602
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
602
603
|
);
|
|
603
604
|
}
|
|
604
605
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
605
|
-
return
|
|
606
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
606
607
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
607
|
-
return
|
|
608
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
608
609
|
}
|
|
609
610
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
610
|
-
return
|
|
611
|
-
|
|
611
|
+
return React.createElement(
|
|
612
|
+
React.Fragment,
|
|
612
613
|
{ key: itemCounter },
|
|
613
|
-
|
|
614
|
+
React.createElement(
|
|
614
615
|
VisibilitySensor,
|
|
615
616
|
{
|
|
616
617
|
onChange: function onChange(isVisible) {
|
|
617
618
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
618
619
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
619
620
|
} },
|
|
620
|
-
|
|
621
|
+
React.createElement(
|
|
621
622
|
'div',
|
|
622
623
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
623
|
-
|
|
624
|
+
React.createElement(
|
|
624
625
|
Card,
|
|
625
626
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
626
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
627
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
627
628
|
'a',
|
|
628
629
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
629
|
-
|
|
630
|
+
React.createElement(
|
|
630
631
|
LazyLoad,
|
|
631
632
|
{ height: _this2.props.imageHeight },
|
|
632
|
-
|
|
633
|
+
React.createElement(Card.Img, {
|
|
633
634
|
variant: 'top',
|
|
634
635
|
src: _this2.renderCardImage(row, page),
|
|
635
636
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
636
637
|
})
|
|
637
638
|
)
|
|
638
639
|
),
|
|
639
|
-
|
|
640
|
+
React.createElement(
|
|
640
641
|
Card.Body,
|
|
641
642
|
null,
|
|
642
|
-
|
|
643
|
+
React.createElement(
|
|
643
644
|
'a',
|
|
644
645
|
{ href: linkHref },
|
|
645
|
-
|
|
646
|
+
React.createElement(
|
|
646
647
|
Card.Title,
|
|
647
648
|
null,
|
|
648
649
|
row.title
|
|
649
650
|
)
|
|
650
651
|
),
|
|
651
|
-
_this2.props.showPublished && row.published &&
|
|
652
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
652
653
|
Card.Subtitle,
|
|
653
654
|
{ style: { marginTop: 0 } },
|
|
654
655
|
moment(row.published).format('MMMM DD, YYYY')
|
|
655
656
|
),
|
|
656
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
657
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
657
658
|
LazyLoad,
|
|
658
659
|
{ height: 50 },
|
|
659
|
-
|
|
660
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
660
661
|
),
|
|
661
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
662
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
662
663
|
LazyLoad,
|
|
663
664
|
{ height: 50 },
|
|
664
|
-
|
|
665
|
+
React.createElement(
|
|
665
666
|
'p',
|
|
666
667
|
{
|
|
667
668
|
className: 'article-category',
|
|
@@ -676,7 +677,7 @@ var GridContent = function (_React$Component) {
|
|
|
676
677
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
677
678
|
)
|
|
678
679
|
),
|
|
679
|
-
|
|
680
|
+
React.createElement(
|
|
680
681
|
Card.Text,
|
|
681
682
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
682
683
|
clean_html_1(row.summary)
|
|
@@ -685,17 +686,17 @@ var GridContent = function (_React$Component) {
|
|
|
685
686
|
)
|
|
686
687
|
)
|
|
687
688
|
),
|
|
688
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
689
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
689
690
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
690
691
|
);
|
|
691
692
|
} else return null;
|
|
692
|
-
}) :
|
|
693
|
+
}) : React.createElement(
|
|
693
694
|
'div',
|
|
694
695
|
null,
|
|
695
|
-
|
|
696
|
+
React.createElement(
|
|
696
697
|
'h5',
|
|
697
698
|
null,
|
|
698
|
-
|
|
699
|
+
React.createElement(
|
|
699
700
|
'em',
|
|
700
701
|
null,
|
|
701
702
|
'New content coming soon, please check back later.'
|
|
@@ -720,29 +721,29 @@ var GridContent = function (_React$Component) {
|
|
|
720
721
|
brandInsight = _props.brandInsight;
|
|
721
722
|
|
|
722
723
|
|
|
723
|
-
return
|
|
724
|
+
return React.createElement(
|
|
724
725
|
'div',
|
|
725
726
|
{ className: 'contentDeck' },
|
|
726
|
-
autoScroll ?
|
|
727
|
+
autoScroll ? React.createElement(
|
|
727
728
|
InfiniteScroll,
|
|
728
729
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
729
|
-
|
|
730
|
+
React.createElement(
|
|
730
731
|
Container,
|
|
731
732
|
null,
|
|
732
733
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
733
734
|
)
|
|
734
|
-
) :
|
|
735
|
-
|
|
735
|
+
) : React.createElement(
|
|
736
|
+
React.Fragment,
|
|
736
737
|
null,
|
|
737
|
-
|
|
738
|
+
React.createElement(
|
|
738
739
|
Container,
|
|
739
740
|
null,
|
|
740
741
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
741
742
|
),
|
|
742
|
-
|
|
743
|
+
React.createElement(
|
|
743
744
|
'div',
|
|
744
745
|
{ style: { padding: '0px 10px' } },
|
|
745
|
-
this.state.scrolling ?
|
|
746
|
+
this.state.scrolling ? React.createElement(
|
|
746
747
|
'button',
|
|
747
748
|
{
|
|
748
749
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -750,17 +751,17 @@ var GridContent = function (_React$Component) {
|
|
|
750
751
|
_this3.loadMore();
|
|
751
752
|
} },
|
|
752
753
|
'Load More'
|
|
753
|
-
) :
|
|
754
|
+
) : React.createElement(
|
|
754
755
|
'p',
|
|
755
756
|
{ style: { textAlign: 'center' } },
|
|
756
|
-
|
|
757
|
+
React.createElement(
|
|
757
758
|
'b',
|
|
758
759
|
null,
|
|
759
760
|
'End of data'
|
|
760
761
|
)
|
|
761
762
|
)
|
|
762
763
|
),
|
|
763
|
-
|
|
764
|
+
React.createElement(
|
|
764
765
|
'noscript',
|
|
765
766
|
null,
|
|
766
767
|
this.renderManualPagination()
|
|
@@ -771,8 +772,8 @@ var GridContent = function (_React$Component) {
|
|
|
771
772
|
}]);
|
|
772
773
|
|
|
773
774
|
return GridContent;
|
|
774
|
-
}(
|
|
775
|
+
}(React.Component);
|
|
775
776
|
|
|
776
|
-
var GridContent$1 =
|
|
777
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
777
778
|
|
|
778
779
|
export default GridContent$1;
|