@mjhls/mjh-framework 1.0.840-seomanager-v1 → 1.0.840
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/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +6 -2
- package/dist/cjs/AlgoliaSearch.js +37 -14
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +3 -3
- package/dist/cjs/Auth.js +2 -2
- package/dist/cjs/AuthWrapper.js +290 -1564
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/DeckContent.js +2 -2
- package/dist/cjs/DeckQueue.js +3 -3
- package/dist/cjs/EventsDeck.js +1 -1
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +164 -45
- package/dist/cjs/HamMagazine.js +6 -6
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +6 -6
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +3 -3
- package/dist/cjs/MediaSeriesLanding.js +20 -120
- package/dist/cjs/NavMagazine.js +6 -6
- package/dist/cjs/NavNative.js +3 -3
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +6 -6
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +3 -3
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/SeriesListingDeck.js +2 -2
- package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-cbab9f0f.js} +1 -1
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +7 -5
- package/dist/cjs/View.js +13 -55
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-060c5d65.js → index-0a582ba9.js} +75 -24
- package/dist/cjs/{index-50be6759.js → index-8041a4eb.js} +9 -15
- 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 +13 -14
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -6
- package/dist/esm/AD300x250x600.js +6 -6
- package/dist/esm/AD728x90.js +7 -7
- 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-4bf3b2f9.js → ADInfeed-28b1e946.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-a3377c4a.js → ADlgInfeed-0b474b02.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +9 -5
- package/dist/esm/AlgoliaSearch.js +247 -224
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesLandingPage.js +12 -12
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +72 -72
- package/dist/esm/AuthWrapper.js +306 -1580
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -23
- package/dist/esm/ConferenceArticleCard.js +13 -13
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +49 -49
- package/dist/esm/DeckQueue.js +44 -44
- package/dist/esm/{Dfp-2c43d2a0.js → Dfp-43f121ff.js} +10 -10
- package/dist/esm/EventsDeck.js +64 -64
- package/dist/esm/ExternalResources.js +35 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +222 -104
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +86 -86
- 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 +31 -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 +22 -22
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +38 -38
- package/dist/esm/MediaSeriesLanding.js +336 -436
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +89 -89
- package/dist/esm/NavNative.js +77 -77
- 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 +62 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +246 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +15 -15
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +19 -19
- package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-5c62a578.js} +19 -19
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -13
- 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 +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -24
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -12
- package/dist/esm/VideoSeriesListing.js +51 -49
- package/dist/esm/View.js +172 -214
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +28 -28
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/getSerializers.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-2446af28.js} +3 -3
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-01d53c17.js → index-66ffc224.js} +407 -356
- package/dist/esm/{index-98ca9cec.js → index-67e1773f.js} +9 -15
- 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 +39 -40
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-8b336c67.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-aedd5e18.js} +0 -0
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
9
|
import Card from 'react-bootstrap/Card';
|
|
10
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
10
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
11
11
|
import { m as moment } from './moment-bc12cb97.js';
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
|
-
import { L as LazyLoad } from './index-
|
|
13
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
14
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-28b1e946.js';
|
|
16
16
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
17
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
17
|
+
import { A as ADlgInfeed } from './ADlgInfeed-0b474b02.js';
|
|
18
18
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
19
19
|
import { g as get_1 } from './get-3c308da4.js';
|
|
20
20
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
22
22
|
import urlFor from './urlFor.js';
|
|
23
|
-
import { m as main_43 } from './main-
|
|
23
|
+
import { m as main_43 } from './main-b5c5aac1.js';
|
|
24
24
|
import './AD.js';
|
|
25
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
25
|
+
import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
|
|
26
|
+
import Button from 'react-bootstrap/Button';
|
|
26
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
27
28
|
import './es6.string.iterator-bc33758b.js';
|
|
28
29
|
import './_to-object-b50e61c3.js';
|
|
@@ -49,6 +50,119 @@ import './eq-bdcbf886.js';
|
|
|
49
50
|
import './toNumber-5aeba6e7.js';
|
|
50
51
|
import './index-0dbff1d1.js';
|
|
51
52
|
|
|
53
|
+
var PublicationFeature = function PublicationFeature(_ref) {
|
|
54
|
+
var data = _ref.data,
|
|
55
|
+
_ref$issueMapping = _ref.issueMapping,
|
|
56
|
+
issueMapping = _ref$issueMapping === undefined ? '/publications' : _ref$issueMapping,
|
|
57
|
+
defaultImage = _ref.defaultImage,
|
|
58
|
+
client = _ref.client;
|
|
59
|
+
|
|
60
|
+
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
61
|
+
var _data$parent = data.parent;
|
|
62
|
+
_data$parent = _data$parent === undefined ? {} : _data$parent;
|
|
63
|
+
var _data$parent$identifi = _data$parent.identifier;
|
|
64
|
+
_data$parent$identifi = _data$parent$identifi === undefined ? {} : _data$parent$identifi;
|
|
65
|
+
var parentSlug = _data$parent$identifi.current,
|
|
66
|
+
_data$identifier = data.identifier;
|
|
67
|
+
_data$identifier = _data$identifier === undefined ? {} : _data$identifier;
|
|
68
|
+
var childSlug = _data$identifier.current,
|
|
69
|
+
name = data.name,
|
|
70
|
+
articles = data.articles,
|
|
71
|
+
month = data.month,
|
|
72
|
+
year = data.year,
|
|
73
|
+
thumbnail = data.thumbnail;
|
|
74
|
+
|
|
75
|
+
if (name && articles && articles.length > 0) {
|
|
76
|
+
return React.createElement(
|
|
77
|
+
'div',
|
|
78
|
+
{ className: 'publication-feature-container border rounded p-2' },
|
|
79
|
+
React.createElement(
|
|
80
|
+
Row,
|
|
81
|
+
null,
|
|
82
|
+
React.createElement(
|
|
83
|
+
Col,
|
|
84
|
+
{ xs: 12 },
|
|
85
|
+
React.createElement(
|
|
86
|
+
'h4',
|
|
87
|
+
null,
|
|
88
|
+
name,
|
|
89
|
+
month && year && React.createElement(
|
|
90
|
+
'span',
|
|
91
|
+
null,
|
|
92
|
+
' ',
|
|
93
|
+
'| ',
|
|
94
|
+
months[parseInt(month, 10)],
|
|
95
|
+
' ',
|
|
96
|
+
year
|
|
97
|
+
)
|
|
98
|
+
)
|
|
99
|
+
),
|
|
100
|
+
React.createElement(
|
|
101
|
+
Col,
|
|
102
|
+
{ xs: 12, sm: 4 },
|
|
103
|
+
React.createElement(
|
|
104
|
+
LazyLoad,
|
|
105
|
+
{ once: true },
|
|
106
|
+
React.createElement('img', { className: 'w-100 mb-2', src: thumbnail && thumbnail.asset && client ? urlFor({ client: client, source: thumbnail.asset }) : defaultImage, alt: name || '' })
|
|
107
|
+
)
|
|
108
|
+
),
|
|
109
|
+
React.createElement(
|
|
110
|
+
Col,
|
|
111
|
+
{ xs: 12, sm: 8 },
|
|
112
|
+
React.createElement(
|
|
113
|
+
Row,
|
|
114
|
+
null,
|
|
115
|
+
articles.map(function (article) {
|
|
116
|
+
return React.createElement(
|
|
117
|
+
Col,
|
|
118
|
+
{ key: article._id, xs: 12, sm: 6 },
|
|
119
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
120
|
+
'h6',
|
|
121
|
+
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
122
|
+
article.issueSection.name
|
|
123
|
+
),
|
|
124
|
+
article.title && React.createElement(
|
|
125
|
+
React.Fragment,
|
|
126
|
+
null,
|
|
127
|
+
article.url && article.url.current ? React.createElement(
|
|
128
|
+
'a',
|
|
129
|
+
{ href: '/view/' + article.url.current },
|
|
130
|
+
React.createElement(
|
|
131
|
+
'h6',
|
|
132
|
+
{ className: 'text-break' },
|
|
133
|
+
article.title
|
|
134
|
+
)
|
|
135
|
+
) : React.createElement(
|
|
136
|
+
'h6',
|
|
137
|
+
{ className: 'text-break' },
|
|
138
|
+
article.title
|
|
139
|
+
)
|
|
140
|
+
)
|
|
141
|
+
);
|
|
142
|
+
})
|
|
143
|
+
)
|
|
144
|
+
),
|
|
145
|
+
issueMapping && parentSlug && childSlug && React.createElement(
|
|
146
|
+
Col,
|
|
147
|
+
{ xs: 12 },
|
|
148
|
+
React.createElement(
|
|
149
|
+
Button,
|
|
150
|
+
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
151
|
+
'More Articles ',
|
|
152
|
+
'>>'
|
|
153
|
+
)
|
|
154
|
+
)
|
|
155
|
+
),
|
|
156
|
+
React.createElement(
|
|
157
|
+
'style',
|
|
158
|
+
{ jsx: 'true' },
|
|
159
|
+
'\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 '
|
|
160
|
+
)
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
164
|
+
};
|
|
165
|
+
|
|
52
166
|
var GridContent = function (_React$Component) {
|
|
53
167
|
_inherits(GridContent, _React$Component);
|
|
54
168
|
|
|
@@ -221,7 +335,7 @@ var GridContent = function (_React$Component) {
|
|
|
221
335
|
var rightItems = _this.props.rightItems;
|
|
222
336
|
|
|
223
337
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
224
|
-
return
|
|
338
|
+
return React.createElement(
|
|
225
339
|
'div',
|
|
226
340
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
227
341
|
rightItems[i].component
|
|
@@ -229,15 +343,15 @@ var GridContent = function (_React$Component) {
|
|
|
229
343
|
}, _this.renderManualPagination = function () {
|
|
230
344
|
var currentPage = _this.state.currentPage;
|
|
231
345
|
|
|
232
|
-
return
|
|
346
|
+
return React.createElement(
|
|
233
347
|
'div',
|
|
234
348
|
{ className: 'd-flex justify-content-between' },
|
|
235
|
-
currentPage && currentPage > 1 &&
|
|
349
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
236
350
|
'a',
|
|
237
351
|
{ href: '?page=' + (currentPage - 1) },
|
|
238
352
|
'<< Previous'
|
|
239
353
|
),
|
|
240
|
-
|
|
354
|
+
React.createElement(
|
|
241
355
|
'a',
|
|
242
356
|
{ href: '?page=' + (currentPage + 1) },
|
|
243
357
|
'Next >>'
|
|
@@ -272,62 +386,62 @@ var GridContent = function (_React$Component) {
|
|
|
272
386
|
var numberOfItemsBeforeAd = 6;
|
|
273
387
|
var numberOfItemsBeforeVideo = 3;
|
|
274
388
|
if (variant === 'stack') {
|
|
275
|
-
return
|
|
389
|
+
return React.createElement(
|
|
276
390
|
Row,
|
|
277
391
|
null,
|
|
278
392
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
279
393
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
280
|
-
return
|
|
394
|
+
return React.createElement(
|
|
281
395
|
Col,
|
|
282
396
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
283
|
-
|
|
397
|
+
React.createElement(
|
|
284
398
|
Card,
|
|
285
399
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
286
|
-
|
|
400
|
+
React.createElement(
|
|
287
401
|
Row,
|
|
288
402
|
{ style: { flexDirection: 'row' } },
|
|
289
|
-
|
|
403
|
+
React.createElement(
|
|
290
404
|
Col,
|
|
291
405
|
{ md: 12, lg: 4 },
|
|
292
|
-
|
|
406
|
+
React.createElement(
|
|
293
407
|
'a',
|
|
294
408
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
295
|
-
|
|
409
|
+
React.createElement(
|
|
296
410
|
LazyLoad,
|
|
297
411
|
{ height: _this2.props.imageHeight },
|
|
298
|
-
|
|
412
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
299
413
|
)
|
|
300
414
|
)
|
|
301
415
|
),
|
|
302
|
-
|
|
416
|
+
React.createElement(
|
|
303
417
|
Col,
|
|
304
418
|
null,
|
|
305
|
-
|
|
419
|
+
React.createElement(
|
|
306
420
|
Card.Body,
|
|
307
421
|
{ style: { padding: '20px' } },
|
|
308
|
-
|
|
422
|
+
React.createElement(
|
|
309
423
|
Card.Title,
|
|
310
424
|
null,
|
|
311
|
-
|
|
425
|
+
React.createElement(
|
|
312
426
|
'a',
|
|
313
427
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
314
428
|
row.title
|
|
315
429
|
)
|
|
316
430
|
),
|
|
317
|
-
_this2.props.showPublished && row.published &&
|
|
431
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
318
432
|
Card.Subtitle,
|
|
319
433
|
{ style: { marginTop: 0 } },
|
|
320
434
|
moment(row.published).format('MMMM DD, YYYY')
|
|
321
435
|
),
|
|
322
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
436
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
323
437
|
LazyLoad,
|
|
324
438
|
{ height: 50 },
|
|
325
|
-
|
|
439
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
326
440
|
),
|
|
327
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
441
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
328
442
|
LazyLoad,
|
|
329
443
|
{ height: 50 },
|
|
330
|
-
|
|
444
|
+
React.createElement(
|
|
331
445
|
'p',
|
|
332
446
|
{
|
|
333
447
|
className: 'article-category',
|
|
@@ -342,7 +456,7 @@ var GridContent = function (_React$Component) {
|
|
|
342
456
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
343
457
|
)
|
|
344
458
|
),
|
|
345
|
-
|
|
459
|
+
React.createElement(
|
|
346
460
|
Card.Text,
|
|
347
461
|
null,
|
|
348
462
|
clean_html_1(row.summary)
|
|
@@ -352,13 +466,13 @@ var GridContent = function (_React$Component) {
|
|
|
352
466
|
)
|
|
353
467
|
)
|
|
354
468
|
);
|
|
355
|
-
}) :
|
|
469
|
+
}) : React.createElement(
|
|
356
470
|
'div',
|
|
357
471
|
null,
|
|
358
|
-
|
|
472
|
+
React.createElement(
|
|
359
473
|
'h5',
|
|
360
474
|
null,
|
|
361
|
-
|
|
475
|
+
React.createElement(
|
|
362
476
|
'em',
|
|
363
477
|
null,
|
|
364
478
|
'New content coming soon, please check back later.'
|
|
@@ -466,10 +580,14 @@ var GridContent = function (_React$Component) {
|
|
|
466
580
|
}
|
|
467
581
|
});
|
|
468
582
|
|
|
583
|
+
var publicationFeature = this.props.publicationFeature;
|
|
584
|
+
|
|
585
|
+
if (publicationFeature) posts = insert(posts, 3, publicationFeature);
|
|
586
|
+
|
|
469
587
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
470
588
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
471
589
|
var featureCount = 0;
|
|
472
|
-
return
|
|
590
|
+
return React.createElement(
|
|
473
591
|
'div',
|
|
474
592
|
{ className: 'grid-container' },
|
|
475
593
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -479,58 +597,58 @@ var GridContent = function (_React$Component) {
|
|
|
479
597
|
if (row._type === 'feature') {
|
|
480
598
|
featureCount++;
|
|
481
599
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
482
|
-
return
|
|
483
|
-
|
|
600
|
+
return React.createElement(
|
|
601
|
+
React.Fragment,
|
|
484
602
|
{ key: itemCounter },
|
|
485
|
-
|
|
603
|
+
React.createElement(
|
|
486
604
|
VisibilitySensor,
|
|
487
605
|
{
|
|
488
606
|
partialVisibility: true,
|
|
489
607
|
onChange: function onChange(isVisible) {
|
|
490
608
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
491
609
|
} },
|
|
492
|
-
|
|
610
|
+
React.createElement(
|
|
493
611
|
'div',
|
|
494
612
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
495
|
-
|
|
613
|
+
React.createElement(
|
|
496
614
|
Card,
|
|
497
615
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
498
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
616
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
499
617
|
'a',
|
|
500
618
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
501
|
-
|
|
619
|
+
React.createElement(
|
|
502
620
|
LazyLoad,
|
|
503
621
|
{ height: _this2.props.imageHeight },
|
|
504
|
-
|
|
622
|
+
React.createElement(Card.Img, {
|
|
505
623
|
variant: 'top',
|
|
506
624
|
src: _this2.renderCardImage(row, page),
|
|
507
625
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
508
626
|
})
|
|
509
627
|
)
|
|
510
628
|
),
|
|
511
|
-
|
|
629
|
+
React.createElement(
|
|
512
630
|
Card.Body,
|
|
513
631
|
null,
|
|
514
|
-
|
|
632
|
+
React.createElement(
|
|
515
633
|
'a',
|
|
516
634
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
517
|
-
|
|
635
|
+
React.createElement(
|
|
518
636
|
Card.Title,
|
|
519
637
|
null,
|
|
520
638
|
row.title
|
|
521
639
|
)
|
|
522
640
|
),
|
|
523
|
-
_this2.props.showPublished && row.published &&
|
|
641
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
524
642
|
Card.Subtitle,
|
|
525
643
|
{ style: { marginTop: 0 } },
|
|
526
644
|
moment(row.published).format('MMMM DD, YYYY')
|
|
527
645
|
),
|
|
528
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
646
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
529
647
|
LazyLoad,
|
|
530
648
|
{ height: 50 },
|
|
531
|
-
|
|
649
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
532
650
|
),
|
|
533
|
-
|
|
651
|
+
React.createElement(
|
|
534
652
|
Card.Text,
|
|
535
653
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
536
654
|
clean_html_1(row.summary)
|
|
@@ -539,62 +657,62 @@ var GridContent = function (_React$Component) {
|
|
|
539
657
|
)
|
|
540
658
|
)
|
|
541
659
|
),
|
|
542
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
660
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
543
661
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
544
662
|
);
|
|
545
663
|
} else {
|
|
546
|
-
return
|
|
547
|
-
|
|
664
|
+
return React.createElement(
|
|
665
|
+
React.Fragment,
|
|
548
666
|
{ key: itemCounter },
|
|
549
|
-
|
|
667
|
+
React.createElement(
|
|
550
668
|
VisibilitySensor,
|
|
551
669
|
{
|
|
552
670
|
partialVisibility: true,
|
|
553
671
|
onChange: function onChange(isVisible) {
|
|
554
672
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
555
673
|
} },
|
|
556
|
-
|
|
674
|
+
React.createElement(
|
|
557
675
|
'div',
|
|
558
676
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
559
|
-
|
|
677
|
+
React.createElement(
|
|
560
678
|
Card,
|
|
561
679
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
562
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
680
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
563
681
|
'a',
|
|
564
682
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
565
|
-
|
|
683
|
+
React.createElement(
|
|
566
684
|
LazyLoad,
|
|
567
685
|
{ height: _this2.props.imageHeight },
|
|
568
|
-
|
|
686
|
+
React.createElement(Card.Img, {
|
|
569
687
|
variant: 'top',
|
|
570
688
|
src: _this2.renderCardImage(row, page),
|
|
571
689
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
572
690
|
})
|
|
573
691
|
)
|
|
574
692
|
),
|
|
575
|
-
|
|
693
|
+
React.createElement(
|
|
576
694
|
Card.Body,
|
|
577
695
|
null,
|
|
578
|
-
|
|
696
|
+
React.createElement(
|
|
579
697
|
'a',
|
|
580
698
|
{ href: row.url.current },
|
|
581
|
-
|
|
699
|
+
React.createElement(
|
|
582
700
|
Card.Title,
|
|
583
701
|
null,
|
|
584
702
|
row.title
|
|
585
703
|
)
|
|
586
704
|
),
|
|
587
|
-
_this2.props.showPublished && row.published &&
|
|
705
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
588
706
|
Card.Subtitle,
|
|
589
707
|
{ style: { marginTop: 0 } },
|
|
590
708
|
moment(row.published).format('MMMM DD, YYYY')
|
|
591
709
|
),
|
|
592
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
710
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
593
711
|
LazyLoad,
|
|
594
712
|
{ height: 50 },
|
|
595
|
-
|
|
713
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
596
714
|
),
|
|
597
|
-
|
|
715
|
+
React.createElement(
|
|
598
716
|
Card.Text,
|
|
599
717
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
600
718
|
clean_html_1(row.summary)
|
|
@@ -603,71 +721,71 @@ var GridContent = function (_React$Component) {
|
|
|
603
721
|
)
|
|
604
722
|
)
|
|
605
723
|
),
|
|
606
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
724
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
607
725
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
608
726
|
);
|
|
609
727
|
}
|
|
610
728
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
611
|
-
return
|
|
729
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
612
730
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
613
|
-
return
|
|
614
|
-
}
|
|
731
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
732
|
+
} else if (row._type === 'publication') return React.createElement(PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
615
733
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
616
|
-
return
|
|
617
|
-
|
|
734
|
+
return React.createElement(
|
|
735
|
+
React.Fragment,
|
|
618
736
|
{ key: itemCounter },
|
|
619
|
-
|
|
737
|
+
React.createElement(
|
|
620
738
|
VisibilitySensor,
|
|
621
739
|
{
|
|
622
740
|
onChange: function onChange(isVisible) {
|
|
623
741
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
624
742
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
625
743
|
} },
|
|
626
|
-
|
|
744
|
+
React.createElement(
|
|
627
745
|
'div',
|
|
628
746
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
629
|
-
|
|
747
|
+
React.createElement(
|
|
630
748
|
Card,
|
|
631
749
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
632
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
750
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
633
751
|
'a',
|
|
634
752
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
635
|
-
|
|
753
|
+
React.createElement(
|
|
636
754
|
LazyLoad,
|
|
637
755
|
{ height: _this2.props.imageHeight },
|
|
638
|
-
|
|
756
|
+
React.createElement(Card.Img, {
|
|
639
757
|
variant: 'top',
|
|
640
758
|
src: _this2.renderCardImage(row, page),
|
|
641
759
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
642
760
|
})
|
|
643
761
|
)
|
|
644
762
|
),
|
|
645
|
-
|
|
763
|
+
React.createElement(
|
|
646
764
|
Card.Body,
|
|
647
765
|
null,
|
|
648
|
-
|
|
766
|
+
React.createElement(
|
|
649
767
|
'a',
|
|
650
768
|
{ href: linkHref },
|
|
651
|
-
|
|
769
|
+
React.createElement(
|
|
652
770
|
Card.Title,
|
|
653
771
|
null,
|
|
654
772
|
row.title
|
|
655
773
|
)
|
|
656
774
|
),
|
|
657
|
-
_this2.props.showPublished && row.published &&
|
|
775
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
658
776
|
Card.Subtitle,
|
|
659
777
|
{ style: { marginTop: 0 } },
|
|
660
778
|
moment(row.published).format('MMMM DD, YYYY')
|
|
661
779
|
),
|
|
662
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
780
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
663
781
|
LazyLoad,
|
|
664
782
|
{ height: 50 },
|
|
665
|
-
|
|
783
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
666
784
|
),
|
|
667
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
785
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
668
786
|
LazyLoad,
|
|
669
787
|
{ height: 50 },
|
|
670
|
-
|
|
788
|
+
React.createElement(
|
|
671
789
|
'p',
|
|
672
790
|
{
|
|
673
791
|
className: 'article-category',
|
|
@@ -682,7 +800,7 @@ var GridContent = function (_React$Component) {
|
|
|
682
800
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
683
801
|
)
|
|
684
802
|
),
|
|
685
|
-
|
|
803
|
+
React.createElement(
|
|
686
804
|
Card.Text,
|
|
687
805
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
688
806
|
clean_html_1(row.summary)
|
|
@@ -691,17 +809,17 @@ var GridContent = function (_React$Component) {
|
|
|
691
809
|
)
|
|
692
810
|
)
|
|
693
811
|
),
|
|
694
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
812
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
695
813
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
696
814
|
);
|
|
697
815
|
} else return null;
|
|
698
|
-
}) :
|
|
816
|
+
}) : React.createElement(
|
|
699
817
|
'div',
|
|
700
818
|
null,
|
|
701
|
-
|
|
819
|
+
React.createElement(
|
|
702
820
|
'h5',
|
|
703
821
|
null,
|
|
704
|
-
|
|
822
|
+
React.createElement(
|
|
705
823
|
'em',
|
|
706
824
|
null,
|
|
707
825
|
'New content coming soon, please check back later.'
|
|
@@ -726,29 +844,29 @@ var GridContent = function (_React$Component) {
|
|
|
726
844
|
brandInsight = _props.brandInsight;
|
|
727
845
|
|
|
728
846
|
|
|
729
|
-
return
|
|
847
|
+
return React.createElement(
|
|
730
848
|
'div',
|
|
731
849
|
{ className: 'contentDeck' },
|
|
732
|
-
autoScroll ?
|
|
850
|
+
autoScroll ? React.createElement(
|
|
733
851
|
InfiniteScroll,
|
|
734
852
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
735
|
-
|
|
853
|
+
React.createElement(
|
|
736
854
|
Container,
|
|
737
855
|
null,
|
|
738
856
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
739
857
|
)
|
|
740
|
-
) :
|
|
741
|
-
|
|
858
|
+
) : React.createElement(
|
|
859
|
+
React.Fragment,
|
|
742
860
|
null,
|
|
743
|
-
|
|
861
|
+
React.createElement(
|
|
744
862
|
Container,
|
|
745
863
|
null,
|
|
746
864
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
747
865
|
),
|
|
748
|
-
|
|
866
|
+
React.createElement(
|
|
749
867
|
'div',
|
|
750
868
|
{ style: { padding: '0px 10px' } },
|
|
751
|
-
this.state.scrolling ?
|
|
869
|
+
this.state.scrolling ? React.createElement(
|
|
752
870
|
'button',
|
|
753
871
|
{
|
|
754
872
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -756,17 +874,17 @@ var GridContent = function (_React$Component) {
|
|
|
756
874
|
_this3.loadMore();
|
|
757
875
|
} },
|
|
758
876
|
'Load More'
|
|
759
|
-
) :
|
|
877
|
+
) : React.createElement(
|
|
760
878
|
'p',
|
|
761
879
|
{ style: { textAlign: 'center' } },
|
|
762
|
-
|
|
880
|
+
React.createElement(
|
|
763
881
|
'b',
|
|
764
882
|
null,
|
|
765
883
|
'End of data'
|
|
766
884
|
)
|
|
767
885
|
)
|
|
768
886
|
),
|
|
769
|
-
|
|
887
|
+
React.createElement(
|
|
770
888
|
'noscript',
|
|
771
889
|
null,
|
|
772
890
|
this.renderManualPagination()
|
|
@@ -777,8 +895,8 @@ var GridContent = function (_React$Component) {
|
|
|
777
895
|
}]);
|
|
778
896
|
|
|
779
897
|
return GridContent;
|
|
780
|
-
}(
|
|
898
|
+
}(React.Component);
|
|
781
899
|
|
|
782
|
-
var GridContent$1 =
|
|
900
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
783
901
|
|
|
784
902
|
export default GridContent$1;
|