@mjhls/mjh-framework 1.0.848 → 1.0.850-affiliatefix-v1
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 -69
- package/dist/cjs/AdSlotsProvider.js +5 -15
- package/dist/cjs/AlgoliaSearch.js +14 -37
- 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 +1564 -290
- 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 +45 -164
- 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 +120 -20
- package/dist/cjs/NavMagazine.js +6 -6
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +12 -7
- 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-cbab9f0f.js → SeriesSlider-34c6cc2b.js} +1 -1
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.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 +5 -7
- package/dist/cjs/View.js +7 -88
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-572bb6bc.js → index-060c5d65.js} +34 -91
- package/dist/cjs/{index-8041a4eb.js → index-50be6759.js} +15 -9
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +14 -13
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/cjs/typeof-1358762e.js +33 -0
- 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-f20eb524.js → ADInfeed-4bf3b2f9.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-c85a91b1.js → ADlgInfeed-a3377c4a.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -73
- package/dist/esm/AdSlotsProvider.js +8 -18
- package/dist/esm/AlgoliaSearch.js +224 -247
- 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 +1580 -306
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.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-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +49 -49
- package/dist/esm/DeckQueue.js +44 -44
- package/dist/esm/{Dfp-43f121ff.js → Dfp-2c43d2a0.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 +104 -222
- 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 +436 -336
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +89 -89
- package/dist/esm/NavNative.js +83 -83
- 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 +68 -63
- 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-5c62a578.js → SeriesSlider-5d5c08f4.js} +19 -19
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db963c3e.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 +49 -51
- package/dist/esm/View.js +168 -249
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +28 -28
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-aa0e654d.js → index-01d53c17.js} +366 -423
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-67e1773f.js → index-98ca9cec.js} +15 -9
- package/dist/esm/{index-2446af28.js → index-f0fc23eb.js} +3 -3
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-9d179b24.js → ADInfeed-859820d9.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-e1ba988c.js → ADlgInfeed-da3a36a6.js} +0 -0
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
|
-
import { B as BlockContent } from './BlockContent-
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
6
|
+
import { g as getSerializers } from './index-01d53c17.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -16,18 +16,18 @@ import './_iter-detect-7e5e5ce2.js';
|
|
|
16
16
|
import 'react-bootstrap';
|
|
17
17
|
import './urlFor.js';
|
|
18
18
|
import './index-0dbff1d1.js';
|
|
19
|
-
import './index.es-
|
|
19
|
+
import './index.es-a6137319.js';
|
|
20
20
|
import './moment-bc12cb97.js';
|
|
21
|
-
import './visibility-sensor-
|
|
21
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
22
22
|
import 'react-dom';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-f0fc23eb.js';
|
|
24
24
|
import './events-6c3a7a63.js';
|
|
25
25
|
import 'prop-types';
|
|
26
26
|
import 'next/router';
|
|
27
|
-
import './index-
|
|
28
|
-
import './main-
|
|
27
|
+
import './index-755f2cc2.js';
|
|
28
|
+
import './main-d4165069.js';
|
|
29
29
|
import './entities-932b50cf.js';
|
|
30
|
-
import './ADInfeed-
|
|
30
|
+
import './ADInfeed-4bf3b2f9.js';
|
|
31
31
|
import 'react-bootstrap/Card';
|
|
32
32
|
import './AdSlot.js';
|
|
33
33
|
import './debounce-533d9748.js';
|
|
@@ -38,9 +38,9 @@ import './stringify-59c8f690.js';
|
|
|
38
38
|
import './asyncToGenerator-7f8f9219.js';
|
|
39
39
|
import './_library-528f1934.js';
|
|
40
40
|
import './Segment.js';
|
|
41
|
-
import './AuthorComponent-
|
|
41
|
+
import './AuthorComponent-30aeba69.js';
|
|
42
42
|
import './lodash-f97fd99a.js';
|
|
43
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADlgInfeed-a3377c4a.js';
|
|
44
44
|
import './getContentCategory-15dcc413.js';
|
|
45
45
|
import './timeDifferenceCalc.js';
|
|
46
46
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -48,7 +48,7 @@ import './index-c7e2ac95.js';
|
|
|
48
48
|
import './util-3ab476bf.js';
|
|
49
49
|
import './typeof-a286cf0c.js';
|
|
50
50
|
import './_is-array-3e99e06e.js';
|
|
51
|
-
import './brightcove-react-player-loader.es-
|
|
51
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
52
52
|
import './GroupDeck.js';
|
|
53
53
|
import './smoothscroll-fa4e3f8c.js';
|
|
54
54
|
import './SocialShare.js';
|
|
@@ -62,8 +62,8 @@ import 'react-bootstrap/Col';
|
|
|
62
62
|
import './inherits-a41fe93f.js';
|
|
63
63
|
import './_object-sap-f353c2a9.js';
|
|
64
64
|
import './define-property-fe54dc9f.js';
|
|
65
|
-
import './index.esm-
|
|
66
|
-
import './iconBase-
|
|
65
|
+
import './index.esm-f6156a57.js';
|
|
66
|
+
import './iconBase-ccc56b97.js';
|
|
67
67
|
import 'react-bootstrap/Figure';
|
|
68
68
|
|
|
69
69
|
/* usage
|
|
@@ -120,22 +120,22 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
120
120
|
_props$imageWidth = props.imageWidth,
|
|
121
121
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
122
122
|
|
|
123
|
-
return
|
|
123
|
+
return React__default.createElement(
|
|
124
124
|
'div',
|
|
125
125
|
{ id: 'issueLanding' },
|
|
126
|
-
|
|
127
|
-
pubIssue.issue.source &&
|
|
126
|
+
React__default.createElement(Breadcrumbs, null),
|
|
127
|
+
pubIssue.issue.source && React__default.createElement(
|
|
128
128
|
'p',
|
|
129
129
|
{ className: 'badge badge-primary' },
|
|
130
130
|
pubIssue.issue.source
|
|
131
131
|
),
|
|
132
|
-
pubIssue.issue.description &&
|
|
133
|
-
|
|
132
|
+
pubIssue.issue.description && React__default.createElement(
|
|
133
|
+
React__default.Fragment,
|
|
134
134
|
null,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: pubIssue.issue.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
136
|
+
React__default.createElement('div', { style: { clear: 'both' } })
|
|
137
137
|
),
|
|
138
|
-
|
|
138
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
139
139
|
client: client,
|
|
140
140
|
mapping: settings.mapping,
|
|
141
141
|
dataRecord: pubIssue.issue.articles,
|
package/dist/esm/LeftNav.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
2
2
|
import ListGroup from 'react-bootstrap/ListGroup';
|
|
3
3
|
import ADWebcast from './ADWebcast.js';
|
|
4
4
|
import Segment from './Segment.js';
|
|
@@ -12,7 +12,7 @@ import './AdSlot.js';
|
|
|
12
12
|
import './extends-60e0e1c6.js';
|
|
13
13
|
import './_object-pie-133f504a.js';
|
|
14
14
|
import 'prop-types';
|
|
15
|
-
import './index-
|
|
15
|
+
import './index-f0fc23eb.js';
|
|
16
16
|
import './events-6c3a7a63.js';
|
|
17
17
|
import './debounce-533d9748.js';
|
|
18
18
|
import './isSymbol-a7e9aafe.js';
|
|
@@ -22,7 +22,7 @@ import './stringify-59c8f690.js';
|
|
|
22
22
|
import './asyncToGenerator-7f8f9219.js';
|
|
23
23
|
import './_library-528f1934.js';
|
|
24
24
|
import './_iter-detect-7e5e5ce2.js';
|
|
25
|
-
import './main-
|
|
25
|
+
import './main-d4165069.js';
|
|
26
26
|
|
|
27
27
|
var LeftNav = function LeftNav(props) {
|
|
28
28
|
var leftItems = props.leftItems,
|
|
@@ -66,21 +66,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
66
66
|
|
|
67
67
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
68
68
|
if (checkUrlIsExternal(subRow.url)) {
|
|
69
|
-
return
|
|
69
|
+
return React__default.createElement(
|
|
70
70
|
'a',
|
|
71
71
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
72
72
|
subRow.name
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
return
|
|
76
|
+
return React__default.createElement(
|
|
77
77
|
'a',
|
|
78
78
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
79
79
|
subRow.name
|
|
80
80
|
);
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
return
|
|
83
|
+
return React__default.createElement(
|
|
84
84
|
'section',
|
|
85
85
|
{ ref: leftNavRef },
|
|
86
86
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -88,27 +88,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
88
88
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
89
89
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
90
90
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
91
|
-
return
|
|
91
|
+
return React__default.createElement(
|
|
92
92
|
'div',
|
|
93
93
|
{ key: index },
|
|
94
|
-
|
|
94
|
+
React__default.createElement(ADWebcast, { webcastAd: row, refreshFlag: row.refreshFlag ? row.refreshFlag : false })
|
|
95
95
|
);
|
|
96
96
|
} else {
|
|
97
|
-
return
|
|
97
|
+
return React__default.createElement(
|
|
98
98
|
'nav',
|
|
99
99
|
{ key: index, 'aria-label': 'Secondary' },
|
|
100
|
-
|
|
100
|
+
React__default.createElement(
|
|
101
101
|
'div',
|
|
102
102
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
103
|
-
|
|
103
|
+
React__default.createElement(
|
|
104
104
|
'span',
|
|
105
105
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
106
106
|
row.name
|
|
107
107
|
),
|
|
108
|
-
row.url && SeeAll &&
|
|
108
|
+
row.url && SeeAll && React__default.createElement(
|
|
109
109
|
'span',
|
|
110
110
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
111
|
-
|
|
111
|
+
React__default.createElement(
|
|
112
112
|
'a',
|
|
113
113
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
114
114
|
'See All ',
|
|
@@ -116,11 +116,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
116
116
|
)
|
|
117
117
|
)
|
|
118
118
|
),
|
|
119
|
-
|
|
119
|
+
React__default.createElement(
|
|
120
120
|
'ul',
|
|
121
121
|
{ style: sideNavStyles },
|
|
122
122
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
123
|
-
return
|
|
123
|
+
return React__default.createElement(
|
|
124
124
|
ListGroup.Item,
|
|
125
125
|
{ as: 'li', key: subIndex + '_2' },
|
|
126
126
|
renderListGroupItem(subRow)
|
|
@@ -133,7 +133,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
133
133
|
);
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
var LeftNav$1 =
|
|
136
|
+
var LeftNav$1 = React__default.memo(LeftNav);
|
|
137
137
|
|
|
138
138
|
export default LeftNav$1;
|
|
139
139
|
export { LeftNav };
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -2,8 +2,8 @@ import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
|
2
2
|
import { _ as _Promise } from './asyncToGenerator-7f8f9219.js';
|
|
3
3
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
4
4
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
5
|
-
import
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import React__default from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
8
8
|
import 'react-bootstrap/Row';
|
|
9
9
|
import 'react-bootstrap/Col';
|
|
@@ -12,12 +12,12 @@ import './moment-bc12cb97.js';
|
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
13
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
14
14
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
16
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import './index-0dbff1d1.js';
|
|
18
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
19
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
20
|
-
import './main-
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-a3377c4a.js';
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-4bf3b2f9.js';
|
|
20
|
+
import './main-d4165069.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './es6.string.iterator-bc33758b.js';
|
|
23
23
|
import './_to-object-b50e61c3.js';
|
|
@@ -327,7 +327,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
return
|
|
330
|
+
return React__default.createElement(
|
|
331
331
|
'div',
|
|
332
332
|
null,
|
|
333
333
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -335,24 +335,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
335
335
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
336
336
|
|
|
337
337
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
338
|
-
return
|
|
338
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
339
339
|
// Returning view for infeed Ad
|
|
340
340
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
341
|
-
return
|
|
341
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
342
342
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
343
343
|
// Returning view for articles
|
|
344
|
-
return
|
|
344
|
+
return React__default.createElement(
|
|
345
345
|
VisibilitySensor,
|
|
346
346
|
{
|
|
347
347
|
key: row._id ? row._id : index,
|
|
348
348
|
onChange: function onChange(isVisible) {
|
|
349
349
|
isVisible && _this.changePageNumber(pageNumber);
|
|
350
350
|
} },
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
React__default.createElement(
|
|
352
|
+
React__default.Fragment,
|
|
353
353
|
{ key: index },
|
|
354
|
-
|
|
355
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
354
|
+
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
355
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
356
356
|
'div',
|
|
357
357
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
358
358
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -366,24 +366,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
366
366
|
data.map(function (row, index) {
|
|
367
367
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
368
368
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
369
|
-
return
|
|
369
|
+
return React__default.createElement(
|
|
370
370
|
VisibilitySensor,
|
|
371
371
|
{
|
|
372
372
|
key: row._id ? row._id : index,
|
|
373
373
|
onChange: function onChange(isVisible) {
|
|
374
374
|
isVisible && _this.changePageNumber(pageNumber);
|
|
375
375
|
} },
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
React__default.createElement(
|
|
377
|
+
React__default.Fragment,
|
|
378
378
|
{ key: index },
|
|
379
|
-
|
|
379
|
+
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
380
380
|
)
|
|
381
381
|
);
|
|
382
382
|
}
|
|
383
|
-
}) :
|
|
383
|
+
}) : React__default.createElement(
|
|
384
384
|
'div',
|
|
385
385
|
null,
|
|
386
|
-
|
|
386
|
+
React__default.createElement(
|
|
387
387
|
'em',
|
|
388
388
|
null,
|
|
389
389
|
'New content coming soon, please check back later.'
|
|
@@ -392,7 +392,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
392
392
|
);
|
|
393
393
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
394
394
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
395
|
-
return
|
|
395
|
+
return React__default.createElement(
|
|
396
396
|
'div',
|
|
397
397
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
398
398
|
rightItems[i].component
|
|
@@ -409,15 +409,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
409
409
|
return null;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
return
|
|
412
|
+
return React__default.createElement(
|
|
413
413
|
'div',
|
|
414
414
|
{ className: 'd-flex justify-content-between' },
|
|
415
|
-
currentPage && currentPage > 1 &&
|
|
415
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
416
416
|
'a',
|
|
417
417
|
{ href: '?page=' + (currentPage - 1) },
|
|
418
418
|
'<< Previous'
|
|
419
419
|
),
|
|
420
|
-
|
|
420
|
+
React__default.createElement(
|
|
421
421
|
'a',
|
|
422
422
|
{ href: '?page=' + (currentPage + 1) },
|
|
423
423
|
'Next >>'
|
|
@@ -481,38 +481,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
481
481
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
482
482
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
483
483
|
|
|
484
|
-
return
|
|
484
|
+
return React__default.createElement(
|
|
485
485
|
'div',
|
|
486
486
|
{ className: 'contentDeck' },
|
|
487
|
-
autoScroll ?
|
|
488
|
-
|
|
487
|
+
autoScroll ? React__default.createElement(
|
|
488
|
+
React__default.Fragment,
|
|
489
489
|
null,
|
|
490
|
-
|
|
490
|
+
React__default.createElement(
|
|
491
491
|
InfiniteScroll,
|
|
492
492
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
493
|
-
|
|
493
|
+
React__default.createElement(
|
|
494
494
|
Container,
|
|
495
495
|
null,
|
|
496
496
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
497
497
|
)
|
|
498
498
|
),
|
|
499
|
-
|
|
499
|
+
React__default.createElement(
|
|
500
500
|
'noscript',
|
|
501
501
|
null,
|
|
502
502
|
this.renderManualPagination()
|
|
503
503
|
)
|
|
504
|
-
) :
|
|
505
|
-
|
|
504
|
+
) : React__default.createElement(
|
|
505
|
+
React__default.Fragment,
|
|
506
506
|
null,
|
|
507
|
-
|
|
507
|
+
React__default.createElement(
|
|
508
508
|
Container,
|
|
509
509
|
null,
|
|
510
510
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
511
511
|
),
|
|
512
|
-
|
|
512
|
+
React__default.createElement(
|
|
513
513
|
'div',
|
|
514
514
|
{ style: { padding: '0px 10px' } },
|
|
515
|
-
this.state.scrolling &&
|
|
515
|
+
this.state.scrolling && React__default.createElement(
|
|
516
516
|
'button',
|
|
517
517
|
{
|
|
518
518
|
className: 'btn',
|
|
@@ -532,7 +532,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
532
532
|
'Load More'
|
|
533
533
|
)
|
|
534
534
|
),
|
|
535
|
-
|
|
535
|
+
React__default.createElement(
|
|
536
536
|
'noscript',
|
|
537
537
|
null,
|
|
538
538
|
this.renderManualPagination()
|
|
@@ -543,7 +543,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
543
543
|
}]);
|
|
544
544
|
|
|
545
545
|
return MasterDeck;
|
|
546
|
-
}(
|
|
546
|
+
}(React__default.Component);
|
|
547
547
|
|
|
548
548
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
549
549
|
|