@mjhls/mjh-framework 1.0.879 → 1.0.880
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 +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +14098 -17
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +5 -4
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -11
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-9be904d5.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +6 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +5 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +6 -5
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +37 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +13 -12
- package/dist/cjs/MediaSeriesLanding.js +306 -406
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/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 +26 -26
- package/dist/cjs/QueueDeckExpanded.js +5 -4
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +4 -3
- package/dist/cjs/{SeriesSlider-f9128638.js → SeriesSlider-ce3261cb.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-5ec44406.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 +13 -12
- 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-6d59cc5b.js → getTargeting-9d509319.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-aafe16dd.js → index-22bdde81.js} +3 -3
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.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-bba8b026.js → ADInfeed-8c5f8c58.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-a45afa1d.js → ADlgInfeed-2316e091.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 +14121 -40
- 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-defe68b6.js → AuthorComponent-46a745ba.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-4b99f79d.js → Dfp-4ca12f2e.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 +125 -124
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +32 -31
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +52 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +47 -46
- package/dist/esm/MediaSeriesLanding.js +332 -432
- 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/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -66
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +15 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +247 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-98b7a870.js → SeriesSlider-7a6c45ce.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-9458fac6.js → SocialSearchComponent-bdecba55.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 +30 -29
- 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 +177 -176
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +38 -38
- 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-3792eba9.js → getTargeting-ff2c9409.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index-e57e375a.js → index-c9bfc91f.js} +419 -419
- 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-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-1894c974.js → main-4136096f.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 +111 -111
- /package/dist/cjs/{ADInfeed-51a39495.js → ADInfeed-9a2e923a.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-12db4509.js → ADlgInfeed-957a1996.js} +0 -0
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
2
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-8a801a18.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-8c5f8c58.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-2316e091.js';
|
|
18
18
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
19
19
|
import { g as get_1 } from './get-3c308da4.js';
|
|
20
20
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
22
22
|
import urlFor from './urlFor.js';
|
|
23
|
-
import { m as main_43 } from './main-
|
|
23
|
+
import { m as main_43 } from './main-4136096f.js';
|
|
24
24
|
import './AD.js';
|
|
25
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
25
|
+
import { A as AuthorComponent } from './AuthorComponent-46a745ba.js';
|
|
26
26
|
import Button from 'react-bootstrap/Button';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
28
|
import './core.get-iterator-method-e903ff31.js';
|
|
@@ -34,6 +34,7 @@ import './typeof-83d9eb10.js';
|
|
|
34
34
|
import './web.dom.iterable-fdf034f5.js';
|
|
35
35
|
import './_is-array-893ab020.js';
|
|
36
36
|
import './_library-528f1934.js';
|
|
37
|
+
import './events-6c3a7a63.js';
|
|
37
38
|
import 'prop-types';
|
|
38
39
|
import 'react-dom';
|
|
39
40
|
import './slicedToArray-ca2c8b8d.js';
|
|
@@ -70,20 +71,20 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
70
71
|
thumbnail = data.thumbnail;
|
|
71
72
|
|
|
72
73
|
if (name && articles && articles.length > 0) {
|
|
73
|
-
return
|
|
74
|
+
return React.createElement(
|
|
74
75
|
'div',
|
|
75
76
|
{ className: 'publication-feature-container border rounded p-2' },
|
|
76
|
-
|
|
77
|
+
React.createElement(
|
|
77
78
|
Row,
|
|
78
79
|
null,
|
|
79
|
-
|
|
80
|
+
React.createElement(
|
|
80
81
|
Col,
|
|
81
82
|
{ xs: 12 },
|
|
82
|
-
|
|
83
|
+
React.createElement(
|
|
83
84
|
'h4',
|
|
84
85
|
null,
|
|
85
86
|
name,
|
|
86
|
-
month && year &&
|
|
87
|
+
month && year && React.createElement(
|
|
87
88
|
'span',
|
|
88
89
|
null,
|
|
89
90
|
' ',
|
|
@@ -94,42 +95,42 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
94
95
|
)
|
|
95
96
|
)
|
|
96
97
|
),
|
|
97
|
-
|
|
98
|
+
React.createElement(
|
|
98
99
|
Col,
|
|
99
100
|
{ xs: 12, sm: 4 },
|
|
100
|
-
|
|
101
|
+
React.createElement(
|
|
101
102
|
LazyLoad,
|
|
102
103
|
{ once: true },
|
|
103
|
-
|
|
104
|
+
React.createElement('img', { className: 'w-100 mb-2', src: thumbnail && thumbnail.asset && client ? urlFor({ client: client, source: thumbnail.asset }) : defaultImage, alt: name || '' })
|
|
104
105
|
)
|
|
105
106
|
),
|
|
106
|
-
|
|
107
|
+
React.createElement(
|
|
107
108
|
Col,
|
|
108
109
|
{ xs: 12, sm: 8 },
|
|
109
|
-
|
|
110
|
+
React.createElement(
|
|
110
111
|
Row,
|
|
111
112
|
null,
|
|
112
113
|
articles.map(function (article) {
|
|
113
|
-
return
|
|
114
|
+
return React.createElement(
|
|
114
115
|
Col,
|
|
115
116
|
{ key: article._id, xs: 12, sm: 6 },
|
|
116
|
-
article.issueSection && article.issueSection.name &&
|
|
117
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
117
118
|
'h6',
|
|
118
119
|
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
119
120
|
article.issueSection.name
|
|
120
121
|
),
|
|
121
|
-
article.title &&
|
|
122
|
-
|
|
122
|
+
article.title && React.createElement(
|
|
123
|
+
React.Fragment,
|
|
123
124
|
null,
|
|
124
|
-
article.url && article.url.current ?
|
|
125
|
+
article.url && article.url.current ? React.createElement(
|
|
125
126
|
'a',
|
|
126
127
|
{ href: '/view/' + article.url.current },
|
|
127
|
-
|
|
128
|
+
React.createElement(
|
|
128
129
|
'h6',
|
|
129
130
|
{ className: 'text-break' },
|
|
130
131
|
article.title
|
|
131
132
|
)
|
|
132
|
-
) :
|
|
133
|
+
) : React.createElement(
|
|
133
134
|
'h6',
|
|
134
135
|
{ className: 'text-break' },
|
|
135
136
|
article.title
|
|
@@ -139,10 +140,10 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
139
140
|
})
|
|
140
141
|
)
|
|
141
142
|
),
|
|
142
|
-
issueMapping && parentSlug && childSlug &&
|
|
143
|
+
issueMapping && parentSlug && childSlug && React.createElement(
|
|
143
144
|
Col,
|
|
144
145
|
{ xs: 12 },
|
|
145
|
-
|
|
146
|
+
React.createElement(
|
|
146
147
|
Button,
|
|
147
148
|
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
148
149
|
'More Articles ',
|
|
@@ -150,7 +151,7 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
150
151
|
)
|
|
151
152
|
)
|
|
152
153
|
),
|
|
153
|
-
|
|
154
|
+
React.createElement(
|
|
154
155
|
'style',
|
|
155
156
|
{ jsx: 'true' },
|
|
156
157
|
'\n .row {\n margin-top: -15px;\n margin-left: -15px;\n margin-right: 0;\n }\n .row > * {\n padding-top: 15px;\n padding-left: 15px;\n padding-right: 0;\n }\n '
|
|
@@ -332,7 +333,7 @@ var GridContent = function (_React$Component) {
|
|
|
332
333
|
var rightItems = _this.props.rightItems;
|
|
333
334
|
|
|
334
335
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
335
|
-
return
|
|
336
|
+
return React.createElement(
|
|
336
337
|
'div',
|
|
337
338
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
338
339
|
rightItems[i].component
|
|
@@ -340,15 +341,15 @@ var GridContent = function (_React$Component) {
|
|
|
340
341
|
}, _this.renderManualPagination = function () {
|
|
341
342
|
var currentPage = _this.state.currentPage;
|
|
342
343
|
|
|
343
|
-
return
|
|
344
|
+
return React.createElement(
|
|
344
345
|
'div',
|
|
345
346
|
{ className: 'd-flex justify-content-between' },
|
|
346
|
-
currentPage && currentPage > 1 &&
|
|
347
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
347
348
|
'a',
|
|
348
349
|
{ href: '?page=' + (currentPage - 1) },
|
|
349
350
|
'<< Previous'
|
|
350
351
|
),
|
|
351
|
-
|
|
352
|
+
React.createElement(
|
|
352
353
|
'a',
|
|
353
354
|
{ href: '?page=' + (currentPage + 1) },
|
|
354
355
|
'Next >>'
|
|
@@ -383,62 +384,62 @@ var GridContent = function (_React$Component) {
|
|
|
383
384
|
var numberOfItemsBeforeAd = 6;
|
|
384
385
|
var numberOfItemsBeforeVideo = 3;
|
|
385
386
|
if (variant === 'stack') {
|
|
386
|
-
return
|
|
387
|
+
return React.createElement(
|
|
387
388
|
Row,
|
|
388
389
|
null,
|
|
389
390
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
390
391
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
391
|
-
return
|
|
392
|
+
return React.createElement(
|
|
392
393
|
Col,
|
|
393
394
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
394
|
-
|
|
395
|
+
React.createElement(
|
|
395
396
|
Card,
|
|
396
397
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
397
|
-
|
|
398
|
+
React.createElement(
|
|
398
399
|
Row,
|
|
399
400
|
{ style: { flexDirection: 'row' } },
|
|
400
|
-
|
|
401
|
+
React.createElement(
|
|
401
402
|
Col,
|
|
402
403
|
{ md: 12, lg: 4 },
|
|
403
|
-
|
|
404
|
+
React.createElement(
|
|
404
405
|
'a',
|
|
405
406
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
406
|
-
|
|
407
|
+
React.createElement(
|
|
407
408
|
LazyLoad,
|
|
408
409
|
{ height: _this2.props.imageHeight },
|
|
409
|
-
|
|
410
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
410
411
|
)
|
|
411
412
|
)
|
|
412
413
|
),
|
|
413
|
-
|
|
414
|
+
React.createElement(
|
|
414
415
|
Col,
|
|
415
416
|
null,
|
|
416
|
-
|
|
417
|
+
React.createElement(
|
|
417
418
|
Card.Body,
|
|
418
419
|
{ style: { padding: '20px' } },
|
|
419
|
-
|
|
420
|
+
React.createElement(
|
|
420
421
|
Card.Title,
|
|
421
422
|
null,
|
|
422
|
-
|
|
423
|
+
React.createElement(
|
|
423
424
|
'a',
|
|
424
425
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
425
426
|
row.title
|
|
426
427
|
)
|
|
427
428
|
),
|
|
428
|
-
_this2.props.showPublished && row.published &&
|
|
429
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
429
430
|
Card.Subtitle,
|
|
430
431
|
{ style: { marginTop: 0 } },
|
|
431
432
|
moment(row.published).format('MMMM DD, YYYY')
|
|
432
433
|
),
|
|
433
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
434
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
434
435
|
LazyLoad,
|
|
435
436
|
{ height: 50 },
|
|
436
|
-
|
|
437
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
437
438
|
),
|
|
438
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
439
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
439
440
|
LazyLoad,
|
|
440
441
|
{ height: 50 },
|
|
441
|
-
|
|
442
|
+
React.createElement(
|
|
442
443
|
'p',
|
|
443
444
|
{
|
|
444
445
|
className: 'article-category',
|
|
@@ -453,7 +454,7 @@ var GridContent = function (_React$Component) {
|
|
|
453
454
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
454
455
|
)
|
|
455
456
|
),
|
|
456
|
-
|
|
457
|
+
React.createElement(
|
|
457
458
|
Card.Text,
|
|
458
459
|
null,
|
|
459
460
|
clean_html_1(row.summary)
|
|
@@ -463,13 +464,13 @@ var GridContent = function (_React$Component) {
|
|
|
463
464
|
)
|
|
464
465
|
)
|
|
465
466
|
);
|
|
466
|
-
}) :
|
|
467
|
+
}) : React.createElement(
|
|
467
468
|
'div',
|
|
468
469
|
null,
|
|
469
|
-
|
|
470
|
+
React.createElement(
|
|
470
471
|
'h5',
|
|
471
472
|
null,
|
|
472
|
-
|
|
473
|
+
React.createElement(
|
|
473
474
|
'em',
|
|
474
475
|
null,
|
|
475
476
|
'New content coming soon, please check back later.'
|
|
@@ -584,7 +585,7 @@ var GridContent = function (_React$Component) {
|
|
|
584
585
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
585
586
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
586
587
|
var featureCount = 0;
|
|
587
|
-
return
|
|
588
|
+
return React.createElement(
|
|
588
589
|
'div',
|
|
589
590
|
{ className: 'grid-container' },
|
|
590
591
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -594,58 +595,58 @@ var GridContent = function (_React$Component) {
|
|
|
594
595
|
if (row._type === 'feature') {
|
|
595
596
|
featureCount++;
|
|
596
597
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
597
|
-
return
|
|
598
|
-
|
|
598
|
+
return React.createElement(
|
|
599
|
+
React.Fragment,
|
|
599
600
|
{ key: itemCounter },
|
|
600
|
-
|
|
601
|
+
React.createElement(
|
|
601
602
|
VisibilitySensor,
|
|
602
603
|
{
|
|
603
604
|
partialVisibility: true,
|
|
604
605
|
onChange: function onChange(isVisible) {
|
|
605
606
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
606
607
|
} },
|
|
607
|
-
|
|
608
|
+
React.createElement(
|
|
608
609
|
'div',
|
|
609
610
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
610
|
-
|
|
611
|
+
React.createElement(
|
|
611
612
|
Card,
|
|
612
613
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
613
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
614
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
614
615
|
'a',
|
|
615
616
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
616
|
-
|
|
617
|
+
React.createElement(
|
|
617
618
|
LazyLoad,
|
|
618
619
|
{ height: _this2.props.imageHeight },
|
|
619
|
-
|
|
620
|
+
React.createElement(Card.Img, {
|
|
620
621
|
variant: 'top',
|
|
621
622
|
src: _this2.renderCardImage(row, page),
|
|
622
623
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
623
624
|
})
|
|
624
625
|
)
|
|
625
626
|
),
|
|
626
|
-
|
|
627
|
+
React.createElement(
|
|
627
628
|
Card.Body,
|
|
628
629
|
null,
|
|
629
|
-
|
|
630
|
+
React.createElement(
|
|
630
631
|
'a',
|
|
631
632
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
632
|
-
|
|
633
|
+
React.createElement(
|
|
633
634
|
Card.Title,
|
|
634
635
|
null,
|
|
635
636
|
row.title
|
|
636
637
|
)
|
|
637
638
|
),
|
|
638
|
-
_this2.props.showPublished && row.published &&
|
|
639
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
639
640
|
Card.Subtitle,
|
|
640
641
|
{ style: { marginTop: 0 } },
|
|
641
642
|
moment(row.published).format('MMMM DD, YYYY')
|
|
642
643
|
),
|
|
643
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
644
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
644
645
|
LazyLoad,
|
|
645
646
|
{ height: 50 },
|
|
646
|
-
|
|
647
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
647
648
|
),
|
|
648
|
-
|
|
649
|
+
React.createElement(
|
|
649
650
|
Card.Text,
|
|
650
651
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
651
652
|
clean_html_1(row.summary)
|
|
@@ -654,62 +655,62 @@ var GridContent = function (_React$Component) {
|
|
|
654
655
|
)
|
|
655
656
|
)
|
|
656
657
|
),
|
|
657
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
658
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
658
659
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
659
660
|
);
|
|
660
661
|
} else {
|
|
661
|
-
return
|
|
662
|
-
|
|
662
|
+
return React.createElement(
|
|
663
|
+
React.Fragment,
|
|
663
664
|
{ key: itemCounter },
|
|
664
|
-
|
|
665
|
+
React.createElement(
|
|
665
666
|
VisibilitySensor,
|
|
666
667
|
{
|
|
667
668
|
partialVisibility: true,
|
|
668
669
|
onChange: function onChange(isVisible) {
|
|
669
670
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
670
671
|
} },
|
|
671
|
-
|
|
672
|
+
React.createElement(
|
|
672
673
|
'div',
|
|
673
674
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
674
|
-
|
|
675
|
+
React.createElement(
|
|
675
676
|
Card,
|
|
676
677
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
677
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
678
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
678
679
|
'a',
|
|
679
680
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
680
|
-
|
|
681
|
+
React.createElement(
|
|
681
682
|
LazyLoad,
|
|
682
683
|
{ height: _this2.props.imageHeight },
|
|
683
|
-
|
|
684
|
+
React.createElement(Card.Img, {
|
|
684
685
|
variant: 'top',
|
|
685
686
|
src: _this2.renderCardImage(row, page),
|
|
686
687
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
687
688
|
})
|
|
688
689
|
)
|
|
689
690
|
),
|
|
690
|
-
|
|
691
|
+
React.createElement(
|
|
691
692
|
Card.Body,
|
|
692
693
|
null,
|
|
693
|
-
|
|
694
|
+
React.createElement(
|
|
694
695
|
'a',
|
|
695
696
|
{ href: row.url.current },
|
|
696
|
-
|
|
697
|
+
React.createElement(
|
|
697
698
|
Card.Title,
|
|
698
699
|
null,
|
|
699
700
|
row.title
|
|
700
701
|
)
|
|
701
702
|
),
|
|
702
|
-
_this2.props.showPublished && row.published &&
|
|
703
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
703
704
|
Card.Subtitle,
|
|
704
705
|
{ style: { marginTop: 0 } },
|
|
705
706
|
moment(row.published).format('MMMM DD, YYYY')
|
|
706
707
|
),
|
|
707
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
708
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
708
709
|
LazyLoad,
|
|
709
710
|
{ height: 50 },
|
|
710
|
-
|
|
711
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
711
712
|
),
|
|
712
|
-
|
|
713
|
+
React.createElement(
|
|
713
714
|
Card.Text,
|
|
714
715
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
715
716
|
clean_html_1(row.summary)
|
|
@@ -718,71 +719,71 @@ var GridContent = function (_React$Component) {
|
|
|
718
719
|
)
|
|
719
720
|
)
|
|
720
721
|
),
|
|
721
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
722
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
722
723
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
723
724
|
);
|
|
724
725
|
}
|
|
725
726
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
726
|
-
return
|
|
727
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
727
728
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
728
|
-
return
|
|
729
|
-
} else if (row._type === 'publication') return
|
|
729
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
730
|
+
} else if (row._type === 'publication') return React.createElement(PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
730
731
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
731
|
-
return
|
|
732
|
-
|
|
732
|
+
return React.createElement(
|
|
733
|
+
React.Fragment,
|
|
733
734
|
{ key: itemCounter },
|
|
734
|
-
|
|
735
|
+
React.createElement(
|
|
735
736
|
VisibilitySensor,
|
|
736
737
|
{
|
|
737
738
|
onChange: function onChange(isVisible) {
|
|
738
739
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
739
740
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
740
741
|
} },
|
|
741
|
-
|
|
742
|
+
React.createElement(
|
|
742
743
|
'div',
|
|
743
744
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
744
|
-
|
|
745
|
+
React.createElement(
|
|
745
746
|
Card,
|
|
746
747
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
747
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
748
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
748
749
|
'a',
|
|
749
750
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
750
|
-
|
|
751
|
+
React.createElement(
|
|
751
752
|
LazyLoad,
|
|
752
753
|
{ height: _this2.props.imageHeight },
|
|
753
|
-
|
|
754
|
+
React.createElement(Card.Img, {
|
|
754
755
|
variant: 'top',
|
|
755
756
|
src: _this2.renderCardImage(row, page),
|
|
756
757
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
757
758
|
})
|
|
758
759
|
)
|
|
759
760
|
),
|
|
760
|
-
|
|
761
|
+
React.createElement(
|
|
761
762
|
Card.Body,
|
|
762
763
|
null,
|
|
763
|
-
|
|
764
|
+
React.createElement(
|
|
764
765
|
'a',
|
|
765
766
|
{ href: linkHref },
|
|
766
|
-
|
|
767
|
+
React.createElement(
|
|
767
768
|
Card.Title,
|
|
768
769
|
null,
|
|
769
770
|
row.title
|
|
770
771
|
)
|
|
771
772
|
),
|
|
772
|
-
_this2.props.showPublished && row.published &&
|
|
773
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
773
774
|
Card.Subtitle,
|
|
774
775
|
{ style: { marginTop: 0 } },
|
|
775
776
|
moment(row.published).format('MMMM DD, YYYY')
|
|
776
777
|
),
|
|
777
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
778
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
778
779
|
LazyLoad,
|
|
779
780
|
{ height: 50 },
|
|
780
|
-
|
|
781
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
781
782
|
),
|
|
782
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
783
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
783
784
|
LazyLoad,
|
|
784
785
|
{ height: 50 },
|
|
785
|
-
|
|
786
|
+
React.createElement(
|
|
786
787
|
'p',
|
|
787
788
|
{
|
|
788
789
|
className: 'article-category',
|
|
@@ -797,7 +798,7 @@ var GridContent = function (_React$Component) {
|
|
|
797
798
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
798
799
|
)
|
|
799
800
|
),
|
|
800
|
-
|
|
801
|
+
React.createElement(
|
|
801
802
|
Card.Text,
|
|
802
803
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
803
804
|
clean_html_1(row.summary)
|
|
@@ -806,17 +807,17 @@ var GridContent = function (_React$Component) {
|
|
|
806
807
|
)
|
|
807
808
|
)
|
|
808
809
|
),
|
|
809
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
810
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
810
811
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
811
812
|
);
|
|
812
813
|
} else return null;
|
|
813
|
-
}) :
|
|
814
|
+
}) : React.createElement(
|
|
814
815
|
'div',
|
|
815
816
|
null,
|
|
816
|
-
|
|
817
|
+
React.createElement(
|
|
817
818
|
'h5',
|
|
818
819
|
null,
|
|
819
|
-
|
|
820
|
+
React.createElement(
|
|
820
821
|
'em',
|
|
821
822
|
null,
|
|
822
823
|
'New content coming soon, please check back later.'
|
|
@@ -841,29 +842,29 @@ var GridContent = function (_React$Component) {
|
|
|
841
842
|
brandInsight = _props.brandInsight;
|
|
842
843
|
|
|
843
844
|
|
|
844
|
-
return
|
|
845
|
+
return React.createElement(
|
|
845
846
|
'div',
|
|
846
847
|
{ className: 'contentDeck' },
|
|
847
|
-
autoScroll ?
|
|
848
|
+
autoScroll ? React.createElement(
|
|
848
849
|
InfiniteScroll,
|
|
849
850
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
850
|
-
|
|
851
|
+
React.createElement(
|
|
851
852
|
Container,
|
|
852
853
|
null,
|
|
853
854
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
854
855
|
)
|
|
855
|
-
) :
|
|
856
|
-
|
|
856
|
+
) : React.createElement(
|
|
857
|
+
React.Fragment,
|
|
857
858
|
null,
|
|
858
|
-
|
|
859
|
+
React.createElement(
|
|
859
860
|
Container,
|
|
860
861
|
null,
|
|
861
862
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
862
863
|
),
|
|
863
|
-
|
|
864
|
+
React.createElement(
|
|
864
865
|
'div',
|
|
865
866
|
{ style: { padding: '0px 10px' } },
|
|
866
|
-
this.state.scrolling ?
|
|
867
|
+
this.state.scrolling ? React.createElement(
|
|
867
868
|
'button',
|
|
868
869
|
{
|
|
869
870
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -871,17 +872,17 @@ var GridContent = function (_React$Component) {
|
|
|
871
872
|
_this3.loadMore();
|
|
872
873
|
} },
|
|
873
874
|
'Load More'
|
|
874
|
-
) :
|
|
875
|
+
) : React.createElement(
|
|
875
876
|
'p',
|
|
876
877
|
{ style: { textAlign: 'center' } },
|
|
877
|
-
|
|
878
|
+
React.createElement(
|
|
878
879
|
'b',
|
|
879
880
|
null,
|
|
880
881
|
'End of data'
|
|
881
882
|
)
|
|
882
883
|
)
|
|
883
884
|
),
|
|
884
|
-
|
|
885
|
+
React.createElement(
|
|
885
886
|
'noscript',
|
|
886
887
|
null,
|
|
887
888
|
this.renderManualPagination()
|
|
@@ -892,8 +893,8 @@ var GridContent = function (_React$Component) {
|
|
|
892
893
|
}]);
|
|
893
894
|
|
|
894
895
|
return GridContent;
|
|
895
|
-
}(
|
|
896
|
+
}(React.Component);
|
|
896
897
|
|
|
897
|
-
var GridContent$1 =
|
|
898
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
898
899
|
|
|
899
900
|
export default GridContent$1;
|