@mjhls/mjh-framework 1.0.672 → 1.0.673-article-series
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 +1 -1
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-bc591de7.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +12 -11
- package/dist/cjs/ADWebcast.js +12 -11
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-4b713637.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +9 -8
- package/dist/cjs/ArticleSeriesListing.js +38 -37
- package/dist/cjs/Auth.js +430 -593
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +19 -18
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +77 -73
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-fa2c6aad.js} +21 -20
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +44 -43
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +153 -149
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +40 -39
- package/dist/cjs/HamMagazine.js +119 -114
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +69 -64
- package/dist/cjs/IssueDeck.js +64 -59
- package/dist/cjs/IssueLanding.js +18 -17
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +121 -116
- package/dist/cjs/NavNative.js +103 -95
- package/dist/cjs/NavNormal.js +41 -36
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +1269 -71
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +63 -58
- package/dist/cjs/PublicationLanding.js +52 -48
- package/dist/cjs/QueueDeckExpanded.js +219 -219
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +22 -21
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-962b1344.js → SocialSearchComponent-fde6c921.js} +36 -32
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TemplateNormal.js +36 -35
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesCard.js +25 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +52 -51
- package/dist/cjs/View.js +183 -179
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +53 -52
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getRelatedArticle.js +354 -5
- package/dist/cjs/getSerializers.js +9 -9
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-c190d704.js → index-06016cad.js} +361 -351
- package/dist/cjs/{index-2d0a4911.js → index-44481153.js} +9 -8
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
- package/dist/cjs/{index.esm-fe549f9c.js → index.esm-dd489d02.js} +20 -20
- package/dist/cjs/index.js +31 -32
- package/dist/cjs/{inherits-513d81cd.js → inherits-87492b40.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-b6c96c8d.js → main-9499b3ef.js} +48 -43
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-9140aa7d.js → ADInfeed-d1777980.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-7656ecd1.js → ADlgInfeed-84282fe8.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +411 -578
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-d05b5b23.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +13 -13
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +53 -53
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-939e8fcf.js} +10 -10
- package/dist/esm/EventsDeck.js +66 -66
- package/dist/esm/ExternalResources.js +37 -37
- package/dist/esm/Feature.js +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +110 -110
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +35 -35
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +90 -90
- package/dist/esm/NavNative.js +70 -70
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +13 -14
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1263 -67
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +28 -28
- package/dist/esm/QueueDeckExpanded.js +199 -199
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +16 -16
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-75527dfe.js → SocialSearchComponent-a13fc98b.js} +23 -23
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesCard.js +16 -16
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesListing.js +45 -45
- package/dist/esm/View.js +165 -165
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +9 -9
- package/dist/esm/{index-93ec3c59.js → index-1819118a.js} +3 -3
- package/dist/esm/{index-983cedab.js → index-45bca0c4.js} +303 -299
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
- package/dist/esm/{index.esm-73e847d2.js → index.esm-902766e0.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +26 -27
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-596840e8.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-0465b2a0.js → main-edbd70ac.js} +48 -44
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/GridContent.js
CHANGED
|
@@ -8,28 +8,28 @@ import './core.get-iterator-method-54d2e411.js';
|
|
|
8
8
|
import './_object-pie-71ac75a4.js';
|
|
9
9
|
import { _ as _extends } from './extends-cc5da797.js';
|
|
10
10
|
import './_object-sap-4d59d5bd.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-596840e8.js';
|
|
12
12
|
import './define-property-de3fc946.js';
|
|
13
13
|
import './web.dom.iterable-8956f9a5.js';
|
|
14
|
-
import './typeof-
|
|
14
|
+
import './typeof-ee095d0c.js';
|
|
15
15
|
import './_is-array-49698029.js';
|
|
16
|
-
import
|
|
17
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import Container from 'react-bootstrap/Container';
|
|
20
20
|
import Row from 'react-bootstrap/Row';
|
|
21
21
|
import Col from 'react-bootstrap/Col';
|
|
22
22
|
import Card from 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
23
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
24
24
|
import { withRouter } from 'next/router';
|
|
25
25
|
import './isSymbol-807e927e.js';
|
|
26
26
|
import { d as debounce_1 } from './debounce-1a993acf.js';
|
|
27
|
-
import { I as InfiniteScroll } from './index.es-
|
|
27
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
28
28
|
import 'react-dom';
|
|
29
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
29
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
30
30
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
31
|
-
import { L as LazyLoad } from './index-
|
|
32
|
-
import { m as
|
|
31
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
32
|
+
import { m as main_40 } from './main-edbd70ac.js';
|
|
33
33
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
34
34
|
import './stringify-008c8802.js';
|
|
35
35
|
import './slicedToArray-7021e5df.js';
|
|
@@ -37,13 +37,13 @@ import './asyncToGenerator-7c654f36.js';
|
|
|
37
37
|
import './_set-species-cede29f8.js';
|
|
38
38
|
import './beam-681a9749.js';
|
|
39
39
|
import './AdSlot.js';
|
|
40
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
41
|
-
import { l as lodash } from './lodash-
|
|
42
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
40
|
+
import { A as ADInfeed } from './ADInfeed-d1777980.js';
|
|
41
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
42
|
+
import { A as ADlgInfeed } from './ADlgInfeed-84282fe8.js';
|
|
43
43
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
44
44
|
import { g as get_1 } from './get-5ee14cda.js';
|
|
45
45
|
import './AD.js';
|
|
46
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
46
|
+
import { A as AuthorComponent } from './AuthorComponent-23afa074.js';
|
|
47
47
|
|
|
48
48
|
var GridContent = function (_React$Component) {
|
|
49
49
|
_inherits(GridContent, _React$Component);
|
|
@@ -229,7 +229,7 @@ var GridContent = function (_React$Component) {
|
|
|
229
229
|
var rightItems = _this.props.rightItems;
|
|
230
230
|
|
|
231
231
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
232
|
-
return
|
|
232
|
+
return React.createElement(
|
|
233
233
|
'div',
|
|
234
234
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
235
235
|
rightItems[i].component
|
|
@@ -237,15 +237,15 @@ var GridContent = function (_React$Component) {
|
|
|
237
237
|
}, _this.renderManualPagination = function () {
|
|
238
238
|
var currentPage = _this.state.currentPage;
|
|
239
239
|
|
|
240
|
-
return
|
|
240
|
+
return React.createElement(
|
|
241
241
|
'div',
|
|
242
242
|
{ className: 'd-flex justify-content-between' },
|
|
243
|
-
currentPage && currentPage > 1 &&
|
|
243
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
244
244
|
'a',
|
|
245
245
|
{ href: '?page=' + (currentPage - 1) },
|
|
246
246
|
'<< Previous'
|
|
247
247
|
),
|
|
248
|
-
|
|
248
|
+
React.createElement(
|
|
249
249
|
'a',
|
|
250
250
|
{ href: '?page=' + (currentPage + 1) },
|
|
251
251
|
'Next >>'
|
|
@@ -264,62 +264,62 @@ var GridContent = function (_React$Component) {
|
|
|
264
264
|
var numberOfItemsBeforeAd = 6;
|
|
265
265
|
var numberOfItemsBeforeVideo = 3;
|
|
266
266
|
if (variant === 'stack') {
|
|
267
|
-
return
|
|
267
|
+
return React.createElement(
|
|
268
268
|
Row,
|
|
269
269
|
null,
|
|
270
270
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
271
271
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
272
|
-
return
|
|
272
|
+
return React.createElement(
|
|
273
273
|
Col,
|
|
274
274
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
275
|
-
|
|
275
|
+
React.createElement(
|
|
276
276
|
Card,
|
|
277
277
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
278
|
-
|
|
278
|
+
React.createElement(
|
|
279
279
|
Row,
|
|
280
280
|
{ style: { flexDirection: 'row' } },
|
|
281
|
-
|
|
281
|
+
React.createElement(
|
|
282
282
|
Col,
|
|
283
283
|
{ md: 12, lg: 4 },
|
|
284
|
-
|
|
284
|
+
React.createElement(
|
|
285
285
|
'a',
|
|
286
286
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
287
|
-
|
|
287
|
+
React.createElement(
|
|
288
288
|
LazyLoad,
|
|
289
289
|
{ height: _this2.props.imageHeight },
|
|
290
|
-
|
|
290
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
291
291
|
)
|
|
292
292
|
)
|
|
293
293
|
),
|
|
294
|
-
|
|
294
|
+
React.createElement(
|
|
295
295
|
Col,
|
|
296
296
|
null,
|
|
297
|
-
|
|
297
|
+
React.createElement(
|
|
298
298
|
Card.Body,
|
|
299
299
|
{ style: { padding: '20px' } },
|
|
300
|
-
|
|
300
|
+
React.createElement(
|
|
301
301
|
Card.Title,
|
|
302
302
|
null,
|
|
303
|
-
|
|
303
|
+
React.createElement(
|
|
304
304
|
'a',
|
|
305
305
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
306
306
|
row.title
|
|
307
307
|
)
|
|
308
308
|
),
|
|
309
|
-
_this2.props.showPublished && row.published &&
|
|
309
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
310
310
|
Card.Subtitle,
|
|
311
311
|
{ style: { marginTop: 0 } },
|
|
312
312
|
moment(row.published).format('MMMM DD, YYYY')
|
|
313
313
|
),
|
|
314
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
314
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
315
315
|
LazyLoad,
|
|
316
316
|
{ height: 50 },
|
|
317
|
-
|
|
317
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
318
318
|
),
|
|
319
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
319
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
320
320
|
LazyLoad,
|
|
321
321
|
{ height: 50 },
|
|
322
|
-
|
|
322
|
+
React.createElement(
|
|
323
323
|
'p',
|
|
324
324
|
{
|
|
325
325
|
className: 'article-category',
|
|
@@ -334,7 +334,7 @@ var GridContent = function (_React$Component) {
|
|
|
334
334
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
335
335
|
)
|
|
336
336
|
),
|
|
337
|
-
|
|
337
|
+
React.createElement(
|
|
338
338
|
Card.Text,
|
|
339
339
|
null,
|
|
340
340
|
clean_html_1(row.summary)
|
|
@@ -344,13 +344,13 @@ var GridContent = function (_React$Component) {
|
|
|
344
344
|
)
|
|
345
345
|
)
|
|
346
346
|
);
|
|
347
|
-
}) :
|
|
347
|
+
}) : React.createElement(
|
|
348
348
|
'div',
|
|
349
349
|
null,
|
|
350
|
-
|
|
350
|
+
React.createElement(
|
|
351
351
|
'h5',
|
|
352
352
|
null,
|
|
353
|
-
|
|
353
|
+
React.createElement(
|
|
354
354
|
'em',
|
|
355
355
|
null,
|
|
356
356
|
'New content coming soon, please check back later.'
|
|
@@ -455,7 +455,7 @@ var GridContent = function (_React$Component) {
|
|
|
455
455
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
456
456
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
457
457
|
var featureCount = 0;
|
|
458
|
-
return
|
|
458
|
+
return React.createElement(
|
|
459
459
|
'div',
|
|
460
460
|
{ className: 'grid-container' },
|
|
461
461
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -465,58 +465,58 @@ var GridContent = function (_React$Component) {
|
|
|
465
465
|
if (row._type === 'feature') {
|
|
466
466
|
featureCount++;
|
|
467
467
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
468
|
-
return
|
|
469
|
-
|
|
468
|
+
return React.createElement(
|
|
469
|
+
React.Fragment,
|
|
470
470
|
{ key: itemCounter },
|
|
471
|
-
|
|
471
|
+
React.createElement(
|
|
472
472
|
VisibilitySensor,
|
|
473
473
|
{
|
|
474
474
|
partialVisibility: true,
|
|
475
475
|
onChange: function onChange(isVisible) {
|
|
476
476
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
477
477
|
} },
|
|
478
|
-
|
|
478
|
+
React.createElement(
|
|
479
479
|
'div',
|
|
480
480
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
481
|
-
|
|
481
|
+
React.createElement(
|
|
482
482
|
Card,
|
|
483
483
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
484
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
484
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
485
485
|
'a',
|
|
486
486
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
487
|
-
|
|
487
|
+
React.createElement(
|
|
488
488
|
LazyLoad,
|
|
489
489
|
{ height: _this2.props.imageHeight },
|
|
490
|
-
|
|
490
|
+
React.createElement(Card.Img, {
|
|
491
491
|
variant: 'top',
|
|
492
492
|
src: _this2.renderCardImage(row, page),
|
|
493
493
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
494
494
|
})
|
|
495
495
|
)
|
|
496
496
|
),
|
|
497
|
-
|
|
497
|
+
React.createElement(
|
|
498
498
|
Card.Body,
|
|
499
499
|
null,
|
|
500
|
-
|
|
500
|
+
React.createElement(
|
|
501
501
|
'a',
|
|
502
502
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
503
|
-
|
|
503
|
+
React.createElement(
|
|
504
504
|
Card.Title,
|
|
505
505
|
null,
|
|
506
506
|
row.title
|
|
507
507
|
)
|
|
508
508
|
),
|
|
509
|
-
_this2.props.showPublished && row.published &&
|
|
509
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
510
510
|
Card.Subtitle,
|
|
511
511
|
{ style: { marginTop: 0 } },
|
|
512
512
|
moment(row.published).format('MMMM DD, YYYY')
|
|
513
513
|
),
|
|
514
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
514
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
515
515
|
LazyLoad,
|
|
516
516
|
{ height: 50 },
|
|
517
|
-
|
|
517
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
518
518
|
),
|
|
519
|
-
|
|
519
|
+
React.createElement(
|
|
520
520
|
Card.Text,
|
|
521
521
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
522
522
|
clean_html_1(row.summary)
|
|
@@ -525,62 +525,62 @@ var GridContent = function (_React$Component) {
|
|
|
525
525
|
)
|
|
526
526
|
)
|
|
527
527
|
),
|
|
528
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
529
|
-
|
|
528
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
529
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
530
530
|
);
|
|
531
531
|
} else {
|
|
532
|
-
return
|
|
533
|
-
|
|
532
|
+
return React.createElement(
|
|
533
|
+
React.Fragment,
|
|
534
534
|
{ key: itemCounter },
|
|
535
|
-
|
|
535
|
+
React.createElement(
|
|
536
536
|
VisibilitySensor,
|
|
537
537
|
{
|
|
538
538
|
partialVisibility: true,
|
|
539
539
|
onChange: function onChange(isVisible) {
|
|
540
540
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
541
541
|
} },
|
|
542
|
-
|
|
542
|
+
React.createElement(
|
|
543
543
|
'div',
|
|
544
544
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
545
|
-
|
|
545
|
+
React.createElement(
|
|
546
546
|
Card,
|
|
547
547
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
548
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
548
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
549
549
|
'a',
|
|
550
550
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
551
|
-
|
|
551
|
+
React.createElement(
|
|
552
552
|
LazyLoad,
|
|
553
553
|
{ height: _this2.props.imageHeight },
|
|
554
|
-
|
|
554
|
+
React.createElement(Card.Img, {
|
|
555
555
|
variant: 'top',
|
|
556
556
|
src: _this2.renderCardImage(row, page),
|
|
557
557
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
558
558
|
})
|
|
559
559
|
)
|
|
560
560
|
),
|
|
561
|
-
|
|
561
|
+
React.createElement(
|
|
562
562
|
Card.Body,
|
|
563
563
|
null,
|
|
564
|
-
|
|
564
|
+
React.createElement(
|
|
565
565
|
'a',
|
|
566
566
|
{ href: row.url.current },
|
|
567
|
-
|
|
567
|
+
React.createElement(
|
|
568
568
|
Card.Title,
|
|
569
569
|
null,
|
|
570
570
|
row.title
|
|
571
571
|
)
|
|
572
572
|
),
|
|
573
|
-
_this2.props.showPublished && row.published &&
|
|
573
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
574
574
|
Card.Subtitle,
|
|
575
575
|
{ style: { marginTop: 0 } },
|
|
576
576
|
moment(row.published).format('MMMM DD, YYYY')
|
|
577
577
|
),
|
|
578
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
578
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
579
579
|
LazyLoad,
|
|
580
580
|
{ height: 50 },
|
|
581
|
-
|
|
581
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
582
582
|
),
|
|
583
|
-
|
|
583
|
+
React.createElement(
|
|
584
584
|
Card.Text,
|
|
585
585
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
586
586
|
clean_html_1(row.summary)
|
|
@@ -589,71 +589,71 @@ var GridContent = function (_React$Component) {
|
|
|
589
589
|
)
|
|
590
590
|
)
|
|
591
591
|
),
|
|
592
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
593
|
-
|
|
592
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
593
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
596
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
597
|
-
return
|
|
597
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
598
598
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
599
|
-
return
|
|
599
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
600
600
|
}
|
|
601
601
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
602
|
-
return
|
|
603
|
-
|
|
602
|
+
return React.createElement(
|
|
603
|
+
React.Fragment,
|
|
604
604
|
{ key: itemCounter },
|
|
605
|
-
|
|
605
|
+
React.createElement(
|
|
606
606
|
VisibilitySensor,
|
|
607
607
|
{
|
|
608
608
|
onChange: function onChange(isVisible) {
|
|
609
609
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
610
610
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
611
611
|
} },
|
|
612
|
-
|
|
612
|
+
React.createElement(
|
|
613
613
|
'div',
|
|
614
614
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
615
|
-
|
|
615
|
+
React.createElement(
|
|
616
616
|
Card,
|
|
617
617
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
618
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
618
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
619
619
|
'a',
|
|
620
620
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
621
|
-
|
|
621
|
+
React.createElement(
|
|
622
622
|
LazyLoad,
|
|
623
623
|
{ height: _this2.props.imageHeight },
|
|
624
|
-
|
|
624
|
+
React.createElement(Card.Img, {
|
|
625
625
|
variant: 'top',
|
|
626
626
|
src: _this2.renderCardImage(row, page),
|
|
627
627
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
628
628
|
})
|
|
629
629
|
)
|
|
630
630
|
),
|
|
631
|
-
|
|
631
|
+
React.createElement(
|
|
632
632
|
Card.Body,
|
|
633
633
|
null,
|
|
634
|
-
|
|
634
|
+
React.createElement(
|
|
635
635
|
'a',
|
|
636
636
|
{ href: linkHref },
|
|
637
|
-
|
|
637
|
+
React.createElement(
|
|
638
638
|
Card.Title,
|
|
639
639
|
null,
|
|
640
640
|
row.title
|
|
641
641
|
)
|
|
642
642
|
),
|
|
643
|
-
_this2.props.showPublished && row.published &&
|
|
643
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
644
644
|
Card.Subtitle,
|
|
645
645
|
{ style: { marginTop: 0 } },
|
|
646
646
|
moment(row.published).format('MMMM DD, YYYY')
|
|
647
647
|
),
|
|
648
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
648
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
649
649
|
LazyLoad,
|
|
650
650
|
{ height: 50 },
|
|
651
|
-
|
|
651
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
652
652
|
),
|
|
653
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
653
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
654
654
|
LazyLoad,
|
|
655
655
|
{ height: 50 },
|
|
656
|
-
|
|
656
|
+
React.createElement(
|
|
657
657
|
'p',
|
|
658
658
|
{
|
|
659
659
|
className: 'article-category',
|
|
@@ -668,7 +668,7 @@ var GridContent = function (_React$Component) {
|
|
|
668
668
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
669
669
|
)
|
|
670
670
|
),
|
|
671
|
-
|
|
671
|
+
React.createElement(
|
|
672
672
|
Card.Text,
|
|
673
673
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
674
674
|
clean_html_1(row.summary)
|
|
@@ -677,17 +677,17 @@ var GridContent = function (_React$Component) {
|
|
|
677
677
|
)
|
|
678
678
|
)
|
|
679
679
|
),
|
|
680
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
681
|
-
|
|
680
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
681
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
682
682
|
);
|
|
683
683
|
} else return null;
|
|
684
|
-
}) :
|
|
684
|
+
}) : React.createElement(
|
|
685
685
|
'div',
|
|
686
686
|
null,
|
|
687
|
-
|
|
687
|
+
React.createElement(
|
|
688
688
|
'h5',
|
|
689
689
|
null,
|
|
690
|
-
|
|
690
|
+
React.createElement(
|
|
691
691
|
'em',
|
|
692
692
|
null,
|
|
693
693
|
'New content coming soon, please check back later.'
|
|
@@ -712,29 +712,29 @@ var GridContent = function (_React$Component) {
|
|
|
712
712
|
brandInsight = _props.brandInsight;
|
|
713
713
|
|
|
714
714
|
|
|
715
|
-
return
|
|
715
|
+
return React.createElement(
|
|
716
716
|
'div',
|
|
717
717
|
{ className: 'contentDeck' },
|
|
718
|
-
autoScroll ?
|
|
718
|
+
autoScroll ? React.createElement(
|
|
719
719
|
InfiniteScroll,
|
|
720
720
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
721
|
-
|
|
721
|
+
React.createElement(
|
|
722
722
|
Container,
|
|
723
723
|
null,
|
|
724
724
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
725
725
|
)
|
|
726
|
-
) :
|
|
727
|
-
|
|
726
|
+
) : React.createElement(
|
|
727
|
+
React.Fragment,
|
|
728
728
|
null,
|
|
729
|
-
|
|
729
|
+
React.createElement(
|
|
730
730
|
Container,
|
|
731
731
|
null,
|
|
732
732
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
733
733
|
),
|
|
734
|
-
|
|
734
|
+
React.createElement(
|
|
735
735
|
'div',
|
|
736
736
|
{ style: { padding: '0px 10px' } },
|
|
737
|
-
this.state.scrolling ?
|
|
737
|
+
this.state.scrolling ? React.createElement(
|
|
738
738
|
'button',
|
|
739
739
|
{
|
|
740
740
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -742,17 +742,17 @@ var GridContent = function (_React$Component) {
|
|
|
742
742
|
_this3.loadMore();
|
|
743
743
|
} },
|
|
744
744
|
'Load More'
|
|
745
|
-
) :
|
|
745
|
+
) : React.createElement(
|
|
746
746
|
'p',
|
|
747
747
|
{ style: { textAlign: 'center' } },
|
|
748
|
-
|
|
748
|
+
React.createElement(
|
|
749
749
|
'b',
|
|
750
750
|
null,
|
|
751
751
|
'End of data'
|
|
752
752
|
)
|
|
753
753
|
)
|
|
754
754
|
),
|
|
755
|
-
|
|
755
|
+
React.createElement(
|
|
756
756
|
'noscript',
|
|
757
757
|
null,
|
|
758
758
|
this.renderManualPagination()
|
|
@@ -763,8 +763,8 @@ var GridContent = function (_React$Component) {
|
|
|
763
763
|
}]);
|
|
764
764
|
|
|
765
765
|
return GridContent;
|
|
766
|
-
}(
|
|
766
|
+
}(React.Component);
|
|
767
767
|
|
|
768
|
-
var GridContent$1 =
|
|
768
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
769
769
|
|
|
770
770
|
export default GridContent$1;
|