@mjhls/mjh-framework 1.0.711-beta.2 → 1.0.711-cors-proxy
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/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-5a561d7c.js → ADInfeed-71e2533d.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-c50f81d4.js → ADlgInfeed-2c6a814f.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +7 -6
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +12 -12
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +232 -144
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/BrowseVideosListing.js +29 -29
- package/dist/cjs/CMEDeck.js +63 -63
- 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-ce7ac168.js → Dfp-234d2d8e.js} +21 -20
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +47 -47
- 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 +43 -43
- 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 +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +19 -18
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +51 -50
- 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 +107 -99
- 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 +72 -72
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +64 -60
- package/dist/cjs/QueueDeckExpanded.js +270 -270
- 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-8dd468fd.js → SocialSearchComponent-87578cd1.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +23 -23
- 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 +24 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +56 -56
- package/dist/cjs/View.js +183 -180
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +51 -51
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getRelatedArticle.js +8 -8
- package/dist/cjs/getSerializers.js +12 -13
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/{index-9b8a57e5.js → index-ad961307.js} +811 -788
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-8bf6c863.js → index-e08f00ce.js} +9 -8
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- 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-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +31 -37
- package/dist/cjs/{inherits-c9f99d47.js → inherits-87492b40.js} +1 -1
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-95231a70.js} +50 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- 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-d4c94a16.js → ADInfeed-73a22dad.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-5b170d9e.js → ADlgInfeed-e5c107b7.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +9 -10
- package/dist/esm/ArticleSeriesListing.js +35 -36
- package/dist/esm/Auth.js +209 -125
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/BrowseVideosListing.js +26 -27
- package/dist/esm/CMEDeck.js +60 -60
- 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 +14 -14
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +54 -54
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-14e866d7.js → Dfp-f9463b48.js} +10 -10
- package/dist/esm/EventsDeck.js +66 -66
- package/dist/esm/ExternalResources.js +40 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +111 -111
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +37 -38
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +41 -41
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +16 -16
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +44 -44
- 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 +72 -72
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -68
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +35 -35
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +17 -17
- 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-8ac29f4f.js → SocialSearchComponent-91c19daa.js} +25 -25
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TaxonomyDescription.js +17 -18
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesListing.js +49 -50
- package/dist/esm/View.js +158 -159
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +36 -37
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +12 -13
- package/dist/esm/{index-4d1ed4ba.js → index-1a7c57c9.js} +748 -732
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-a9e53f80.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-ef6d5dcf.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.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 -30
- 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-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-4b699764.js} +51 -2
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
- package/dist/esm/urlFor.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/cjs/VideoProgramLandingPage.js +0 -247
- package/dist/cjs/VideoSeriesLandingPage.js +0 -177
- package/dist/cjs/index-187c967e.js +0 -54
- package/dist/esm/VideoProgramLandingPage.js +0 -242
- package/dist/esm/VideoSeriesLandingPage.js +0 -172
- package/dist/esm/index-c7e2ac95.js +0 -52
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-acfb8079.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-
|
|
30
|
-
import { i as imageUrlBuilder } from './index-
|
|
31
|
-
import { L as LazyLoad } from './index-
|
|
32
|
-
import { m as
|
|
29
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
30
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
31
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
32
|
+
import { m as main_40 } from './main-747e7d25.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';
|
|
@@ -38,13 +38,13 @@ import './_set-species-cede29f8.js';
|
|
|
38
38
|
import './Segment.js';
|
|
39
39
|
import './Beam.js';
|
|
40
40
|
import './AdSlot.js';
|
|
41
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
42
|
-
import { l as lodash } from './lodash-
|
|
43
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
41
|
+
import { A as ADInfeed } from './ADInfeed-73a22dad.js';
|
|
42
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
43
|
+
import { A as ADlgInfeed } from './ADlgInfeed-e5c107b7.js';
|
|
44
44
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
45
45
|
import { g as get_1 } from './get-5ee14cda.js';
|
|
46
46
|
import './AD.js';
|
|
47
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
47
|
+
import { A as AuthorComponent } from './AuthorComponent-23afa074.js';
|
|
48
48
|
|
|
49
49
|
var GridContent = function (_React$Component) {
|
|
50
50
|
_inherits(GridContent, _React$Component);
|
|
@@ -230,7 +230,7 @@ var GridContent = function (_React$Component) {
|
|
|
230
230
|
var rightItems = _this.props.rightItems;
|
|
231
231
|
|
|
232
232
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
233
|
-
return
|
|
233
|
+
return React.createElement(
|
|
234
234
|
'div',
|
|
235
235
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
236
236
|
rightItems[i].component
|
|
@@ -238,15 +238,15 @@ var GridContent = function (_React$Component) {
|
|
|
238
238
|
}, _this.renderManualPagination = function () {
|
|
239
239
|
var currentPage = _this.state.currentPage;
|
|
240
240
|
|
|
241
|
-
return
|
|
241
|
+
return React.createElement(
|
|
242
242
|
'div',
|
|
243
243
|
{ className: 'd-flex justify-content-between' },
|
|
244
|
-
currentPage && currentPage > 1 &&
|
|
244
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
245
245
|
'a',
|
|
246
246
|
{ href: '?page=' + (currentPage - 1) },
|
|
247
247
|
'<< Previous'
|
|
248
248
|
),
|
|
249
|
-
|
|
249
|
+
React.createElement(
|
|
250
250
|
'a',
|
|
251
251
|
{ href: '?page=' + (currentPage + 1) },
|
|
252
252
|
'Next >>'
|
|
@@ -265,62 +265,62 @@ var GridContent = function (_React$Component) {
|
|
|
265
265
|
var numberOfItemsBeforeAd = 6;
|
|
266
266
|
var numberOfItemsBeforeVideo = 3;
|
|
267
267
|
if (variant === 'stack') {
|
|
268
|
-
return
|
|
268
|
+
return React.createElement(
|
|
269
269
|
Row,
|
|
270
270
|
null,
|
|
271
271
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
272
272
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
273
|
-
return
|
|
273
|
+
return React.createElement(
|
|
274
274
|
Col,
|
|
275
275
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
276
|
-
|
|
276
|
+
React.createElement(
|
|
277
277
|
Card,
|
|
278
278
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
279
|
-
|
|
279
|
+
React.createElement(
|
|
280
280
|
Row,
|
|
281
281
|
{ style: { flexDirection: 'row' } },
|
|
282
|
-
|
|
282
|
+
React.createElement(
|
|
283
283
|
Col,
|
|
284
284
|
{ md: 12, lg: 4 },
|
|
285
|
-
|
|
285
|
+
React.createElement(
|
|
286
286
|
'a',
|
|
287
287
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
288
|
-
|
|
288
|
+
React.createElement(
|
|
289
289
|
LazyLoad,
|
|
290
290
|
{ height: _this2.props.imageHeight },
|
|
291
|
-
|
|
291
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
292
292
|
)
|
|
293
293
|
)
|
|
294
294
|
),
|
|
295
|
-
|
|
295
|
+
React.createElement(
|
|
296
296
|
Col,
|
|
297
297
|
null,
|
|
298
|
-
|
|
298
|
+
React.createElement(
|
|
299
299
|
Card.Body,
|
|
300
300
|
{ style: { padding: '20px' } },
|
|
301
|
-
|
|
301
|
+
React.createElement(
|
|
302
302
|
Card.Title,
|
|
303
303
|
null,
|
|
304
|
-
|
|
304
|
+
React.createElement(
|
|
305
305
|
'a',
|
|
306
306
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
307
307
|
row.title
|
|
308
308
|
)
|
|
309
309
|
),
|
|
310
|
-
_this2.props.showPublished && row.published &&
|
|
310
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
311
311
|
Card.Subtitle,
|
|
312
312
|
{ style: { marginTop: 0 } },
|
|
313
313
|
moment(row.published).format('MMMM DD, YYYY')
|
|
314
314
|
),
|
|
315
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
315
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
316
316
|
LazyLoad,
|
|
317
317
|
{ height: 50 },
|
|
318
|
-
|
|
318
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
319
319
|
),
|
|
320
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
320
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
321
321
|
LazyLoad,
|
|
322
322
|
{ height: 50 },
|
|
323
|
-
|
|
323
|
+
React.createElement(
|
|
324
324
|
'p',
|
|
325
325
|
{
|
|
326
326
|
className: 'article-category',
|
|
@@ -335,7 +335,7 @@ var GridContent = function (_React$Component) {
|
|
|
335
335
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
336
336
|
)
|
|
337
337
|
),
|
|
338
|
-
|
|
338
|
+
React.createElement(
|
|
339
339
|
Card.Text,
|
|
340
340
|
null,
|
|
341
341
|
clean_html_1(row.summary)
|
|
@@ -345,13 +345,13 @@ var GridContent = function (_React$Component) {
|
|
|
345
345
|
)
|
|
346
346
|
)
|
|
347
347
|
);
|
|
348
|
-
}) :
|
|
348
|
+
}) : React.createElement(
|
|
349
349
|
'div',
|
|
350
350
|
null,
|
|
351
|
-
|
|
351
|
+
React.createElement(
|
|
352
352
|
'h5',
|
|
353
353
|
null,
|
|
354
|
-
|
|
354
|
+
React.createElement(
|
|
355
355
|
'em',
|
|
356
356
|
null,
|
|
357
357
|
'New content coming soon, please check back later.'
|
|
@@ -460,7 +460,7 @@ var GridContent = function (_React$Component) {
|
|
|
460
460
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
461
461
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
462
462
|
var featureCount = 0;
|
|
463
|
-
return
|
|
463
|
+
return React.createElement(
|
|
464
464
|
'div',
|
|
465
465
|
{ className: 'grid-container' },
|
|
466
466
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -470,58 +470,58 @@ var GridContent = function (_React$Component) {
|
|
|
470
470
|
if (row._type === 'feature') {
|
|
471
471
|
featureCount++;
|
|
472
472
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
473
|
-
return
|
|
474
|
-
|
|
473
|
+
return React.createElement(
|
|
474
|
+
React.Fragment,
|
|
475
475
|
{ key: itemCounter },
|
|
476
|
-
|
|
476
|
+
React.createElement(
|
|
477
477
|
VisibilitySensor,
|
|
478
478
|
{
|
|
479
479
|
partialVisibility: true,
|
|
480
480
|
onChange: function onChange(isVisible) {
|
|
481
481
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
482
482
|
} },
|
|
483
|
-
|
|
483
|
+
React.createElement(
|
|
484
484
|
'div',
|
|
485
485
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
486
|
-
|
|
486
|
+
React.createElement(
|
|
487
487
|
Card,
|
|
488
488
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
489
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
489
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
490
490
|
'a',
|
|
491
491
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
492
|
-
|
|
492
|
+
React.createElement(
|
|
493
493
|
LazyLoad,
|
|
494
494
|
{ height: _this2.props.imageHeight },
|
|
495
|
-
|
|
495
|
+
React.createElement(Card.Img, {
|
|
496
496
|
variant: 'top',
|
|
497
497
|
src: _this2.renderCardImage(row, page),
|
|
498
498
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
499
499
|
})
|
|
500
500
|
)
|
|
501
501
|
),
|
|
502
|
-
|
|
502
|
+
React.createElement(
|
|
503
503
|
Card.Body,
|
|
504
504
|
null,
|
|
505
|
-
|
|
505
|
+
React.createElement(
|
|
506
506
|
'a',
|
|
507
507
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
508
|
-
|
|
508
|
+
React.createElement(
|
|
509
509
|
Card.Title,
|
|
510
510
|
null,
|
|
511
511
|
row.title
|
|
512
512
|
)
|
|
513
513
|
),
|
|
514
|
-
_this2.props.showPublished && row.published &&
|
|
514
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
515
515
|
Card.Subtitle,
|
|
516
516
|
{ style: { marginTop: 0 } },
|
|
517
517
|
moment(row.published).format('MMMM DD, YYYY')
|
|
518
518
|
),
|
|
519
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
519
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
520
520
|
LazyLoad,
|
|
521
521
|
{ height: 50 },
|
|
522
|
-
|
|
522
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
523
523
|
),
|
|
524
|
-
|
|
524
|
+
React.createElement(
|
|
525
525
|
Card.Text,
|
|
526
526
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
527
527
|
clean_html_1(row.summary)
|
|
@@ -530,62 +530,62 @@ var GridContent = function (_React$Component) {
|
|
|
530
530
|
)
|
|
531
531
|
)
|
|
532
532
|
),
|
|
533
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
534
|
-
|
|
533
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
534
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
535
535
|
);
|
|
536
536
|
} else {
|
|
537
|
-
return
|
|
538
|
-
|
|
537
|
+
return React.createElement(
|
|
538
|
+
React.Fragment,
|
|
539
539
|
{ key: itemCounter },
|
|
540
|
-
|
|
540
|
+
React.createElement(
|
|
541
541
|
VisibilitySensor,
|
|
542
542
|
{
|
|
543
543
|
partialVisibility: true,
|
|
544
544
|
onChange: function onChange(isVisible) {
|
|
545
545
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
546
546
|
} },
|
|
547
|
-
|
|
547
|
+
React.createElement(
|
|
548
548
|
'div',
|
|
549
549
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
550
|
-
|
|
550
|
+
React.createElement(
|
|
551
551
|
Card,
|
|
552
552
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
553
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
553
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
554
554
|
'a',
|
|
555
555
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
556
|
-
|
|
556
|
+
React.createElement(
|
|
557
557
|
LazyLoad,
|
|
558
558
|
{ height: _this2.props.imageHeight },
|
|
559
|
-
|
|
559
|
+
React.createElement(Card.Img, {
|
|
560
560
|
variant: 'top',
|
|
561
561
|
src: _this2.renderCardImage(row, page),
|
|
562
562
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
563
563
|
})
|
|
564
564
|
)
|
|
565
565
|
),
|
|
566
|
-
|
|
566
|
+
React.createElement(
|
|
567
567
|
Card.Body,
|
|
568
568
|
null,
|
|
569
|
-
|
|
569
|
+
React.createElement(
|
|
570
570
|
'a',
|
|
571
571
|
{ href: row.url.current },
|
|
572
|
-
|
|
572
|
+
React.createElement(
|
|
573
573
|
Card.Title,
|
|
574
574
|
null,
|
|
575
575
|
row.title
|
|
576
576
|
)
|
|
577
577
|
),
|
|
578
|
-
_this2.props.showPublished && row.published &&
|
|
578
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
579
579
|
Card.Subtitle,
|
|
580
580
|
{ style: { marginTop: 0 } },
|
|
581
581
|
moment(row.published).format('MMMM DD, YYYY')
|
|
582
582
|
),
|
|
583
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
583
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
584
584
|
LazyLoad,
|
|
585
585
|
{ height: 50 },
|
|
586
|
-
|
|
586
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
587
587
|
),
|
|
588
|
-
|
|
588
|
+
React.createElement(
|
|
589
589
|
Card.Text,
|
|
590
590
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
591
591
|
clean_html_1(row.summary)
|
|
@@ -594,71 +594,71 @@ var GridContent = function (_React$Component) {
|
|
|
594
594
|
)
|
|
595
595
|
)
|
|
596
596
|
),
|
|
597
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
598
|
-
|
|
597
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
598
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
599
599
|
);
|
|
600
600
|
}
|
|
601
601
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
602
|
-
return
|
|
602
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
603
603
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
604
|
-
return
|
|
604
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
605
605
|
}
|
|
606
606
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
607
|
-
return
|
|
608
|
-
|
|
607
|
+
return React.createElement(
|
|
608
|
+
React.Fragment,
|
|
609
609
|
{ key: itemCounter },
|
|
610
|
-
|
|
610
|
+
React.createElement(
|
|
611
611
|
VisibilitySensor,
|
|
612
612
|
{
|
|
613
613
|
onChange: function onChange(isVisible) {
|
|
614
614
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
615
615
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
616
616
|
} },
|
|
617
|
-
|
|
617
|
+
React.createElement(
|
|
618
618
|
'div',
|
|
619
619
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
620
|
-
|
|
620
|
+
React.createElement(
|
|
621
621
|
Card,
|
|
622
622
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
623
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
623
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
624
624
|
'a',
|
|
625
625
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
626
|
-
|
|
626
|
+
React.createElement(
|
|
627
627
|
LazyLoad,
|
|
628
628
|
{ height: _this2.props.imageHeight },
|
|
629
|
-
|
|
629
|
+
React.createElement(Card.Img, {
|
|
630
630
|
variant: 'top',
|
|
631
631
|
src: _this2.renderCardImage(row, page),
|
|
632
632
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
633
633
|
})
|
|
634
634
|
)
|
|
635
635
|
),
|
|
636
|
-
|
|
636
|
+
React.createElement(
|
|
637
637
|
Card.Body,
|
|
638
638
|
null,
|
|
639
|
-
|
|
639
|
+
React.createElement(
|
|
640
640
|
'a',
|
|
641
641
|
{ href: linkHref },
|
|
642
|
-
|
|
642
|
+
React.createElement(
|
|
643
643
|
Card.Title,
|
|
644
644
|
null,
|
|
645
645
|
row.title
|
|
646
646
|
)
|
|
647
647
|
),
|
|
648
|
-
_this2.props.showPublished && row.published &&
|
|
648
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
649
649
|
Card.Subtitle,
|
|
650
650
|
{ style: { marginTop: 0 } },
|
|
651
651
|
moment(row.published).format('MMMM DD, YYYY')
|
|
652
652
|
),
|
|
653
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
653
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
654
654
|
LazyLoad,
|
|
655
655
|
{ height: 50 },
|
|
656
|
-
|
|
656
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
657
657
|
),
|
|
658
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
658
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
659
659
|
LazyLoad,
|
|
660
660
|
{ height: 50 },
|
|
661
|
-
|
|
661
|
+
React.createElement(
|
|
662
662
|
'p',
|
|
663
663
|
{
|
|
664
664
|
className: 'article-category',
|
|
@@ -673,7 +673,7 @@ var GridContent = function (_React$Component) {
|
|
|
673
673
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
674
674
|
)
|
|
675
675
|
),
|
|
676
|
-
|
|
676
|
+
React.createElement(
|
|
677
677
|
Card.Text,
|
|
678
678
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
679
679
|
clean_html_1(row.summary)
|
|
@@ -682,17 +682,17 @@ var GridContent = function (_React$Component) {
|
|
|
682
682
|
)
|
|
683
683
|
)
|
|
684
684
|
),
|
|
685
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
686
|
-
|
|
685
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
686
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
687
687
|
);
|
|
688
688
|
} else return null;
|
|
689
|
-
}) :
|
|
689
|
+
}) : React.createElement(
|
|
690
690
|
'div',
|
|
691
691
|
null,
|
|
692
|
-
|
|
692
|
+
React.createElement(
|
|
693
693
|
'h5',
|
|
694
694
|
null,
|
|
695
|
-
|
|
695
|
+
React.createElement(
|
|
696
696
|
'em',
|
|
697
697
|
null,
|
|
698
698
|
'New content coming soon, please check back later.'
|
|
@@ -717,29 +717,29 @@ var GridContent = function (_React$Component) {
|
|
|
717
717
|
brandInsight = _props.brandInsight;
|
|
718
718
|
|
|
719
719
|
|
|
720
|
-
return
|
|
720
|
+
return React.createElement(
|
|
721
721
|
'div',
|
|
722
722
|
{ className: 'contentDeck' },
|
|
723
|
-
autoScroll ?
|
|
723
|
+
autoScroll ? React.createElement(
|
|
724
724
|
InfiniteScroll,
|
|
725
725
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
726
|
-
|
|
726
|
+
React.createElement(
|
|
727
727
|
Container,
|
|
728
728
|
null,
|
|
729
729
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
730
730
|
)
|
|
731
|
-
) :
|
|
732
|
-
|
|
731
|
+
) : React.createElement(
|
|
732
|
+
React.Fragment,
|
|
733
733
|
null,
|
|
734
|
-
|
|
734
|
+
React.createElement(
|
|
735
735
|
Container,
|
|
736
736
|
null,
|
|
737
737
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
738
738
|
),
|
|
739
|
-
|
|
739
|
+
React.createElement(
|
|
740
740
|
'div',
|
|
741
741
|
{ style: { padding: '0px 10px' } },
|
|
742
|
-
this.state.scrolling ?
|
|
742
|
+
this.state.scrolling ? React.createElement(
|
|
743
743
|
'button',
|
|
744
744
|
{
|
|
745
745
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -747,17 +747,17 @@ var GridContent = function (_React$Component) {
|
|
|
747
747
|
_this3.loadMore();
|
|
748
748
|
} },
|
|
749
749
|
'Load More'
|
|
750
|
-
) :
|
|
750
|
+
) : React.createElement(
|
|
751
751
|
'p',
|
|
752
752
|
{ style: { textAlign: 'center' } },
|
|
753
|
-
|
|
753
|
+
React.createElement(
|
|
754
754
|
'b',
|
|
755
755
|
null,
|
|
756
756
|
'End of data'
|
|
757
757
|
)
|
|
758
758
|
)
|
|
759
759
|
),
|
|
760
|
-
|
|
760
|
+
React.createElement(
|
|
761
761
|
'noscript',
|
|
762
762
|
null,
|
|
763
763
|
this.renderManualPagination()
|
|
@@ -768,8 +768,8 @@ var GridContent = function (_React$Component) {
|
|
|
768
768
|
}]);
|
|
769
769
|
|
|
770
770
|
return GridContent;
|
|
771
|
-
}(
|
|
771
|
+
}(React.Component);
|
|
772
772
|
|
|
773
|
-
var GridContent$1 =
|
|
773
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
774
774
|
|
|
775
775
|
export default GridContent$1;
|