@mjhls/mjh-framework 1.0.769-test-infinite-scroll → 1.0.769
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 +169 -169
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +15 -15
- package/dist/cjs/AD300x250x600.js +15 -15
- package/dist/cjs/AD728x90.js +20 -17
- package/dist/cjs/ADFloatingFooter.js +14 -14
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +14 -14
- package/dist/cjs/{ADInfeed-292b6640.js → ADInfeed-32dc37f4.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +14 -14
- package/dist/cjs/ADSponsoredResources.js +14 -14
- package/dist/cjs/ADWebcast.js +14 -14
- package/dist/cjs/ADWelcome.js +14 -14
- package/dist/cjs/{ADlgInfeed-5ab6ab43.js → ADlgInfeed-a8dc2b08.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -5
- package/dist/cjs/AdSlot.js +16 -16
- package/dist/cjs/AdSlotsProvider.js +11 -11
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +11 -11
- package/dist/cjs/ArticleProgramLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +16 -16
- package/dist/cjs/Auth.js +469 -207
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-5fa89df5.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-eca358e4.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +11 -11
- package/dist/cjs/Column3.js +19 -19
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/{Dfp-9adb8ae7.js → Dfp-80146e98.js} +7 -7
- package/dist/cjs/EventsDeck.js +36 -36
- package/dist/cjs/ExternalResources.js +25 -25
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +29 -29
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +9 -9
- package/dist/cjs/HamMagazine.js +22 -22
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +24 -24
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +7 -7
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +49 -49
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +14 -14
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +14 -14
- package/dist/cjs/NavDvm.js +8 -8
- package/dist/cjs/NavMagazine.js +22 -22
- package/dist/cjs/NavNative.js +20 -20
- package/dist/cjs/NavNormal.js +8 -8
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +28 -28
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +51 -51
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SeriesListingDeck.js +12 -12
- package/dist/cjs/{SeriesSlider-7dbeaa51.js → SeriesSlider-8b500128.js} +12 -12
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-45c54bed.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +24 -24
- package/dist/cjs/TemplateNormal.js +18 -18
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesCard.js +8 -8
- package/dist/cjs/VideoSeriesFilter.js +8 -8
- package/dist/cjs/VideoSeriesLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesListing.js +18 -18
- package/dist/cjs/View.js +130 -127
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +23 -23
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-63ae4740.js} +1 -1
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-2613ffa1.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-bec5fcf2.js} +2 -2
- package/dist/cjs/{_set-species-9f96b3af.js → _set-species-a8cfdb84.js} +4 -4
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-6d1a113d.js → asyncToGenerator-2edcb6ad.js} +27 -27
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{debounce-a93fa7fb.js → debounce-eb287781.js} +5 -40
- package/dist/cjs/{define-property-c88be878.js → define-property-aff11f8a.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-20d42c53.js} +5 -5
- package/dist/cjs/{extends-9d158713.js → extends-1e24fc8d.js} +7 -7
- package/dist/cjs/{get-f2a2369b.js → get-68c52cb1.js} +20 -20
- package/dist/cjs/getRelatedArticle.js +10 -12
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +24 -24
- package/dist/cjs/{getTargeting-3cdc6e1d.js → getTargeting-497b581d.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-50f1b226.js → index-33d0daca.js} +86 -85
- package/dist/cjs/{index-f86bb269.js → index-4d74ffd6.js} +4 -4
- package/dist/cjs/{index-efca863c.js → index-d48b231c.js} +5 -5
- package/dist/cjs/index.js +35 -35
- package/dist/cjs/{inherits-3ff1b657.js → inherits-2eb23889.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-95c064c9.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-4ef21f0f.js} +9 -57
- package/dist/cjs/{main-025fdc78.js → main-dc082238.js} +109 -184
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-db24842a.js} +14 -14
- package/dist/cjs/stringify-01cf47f7.js +17 -0
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-cf0865fc.js} +9 -9
- package/dist/cjs/{typeof-88a668c5.js → typeof-97065d40.js} +34 -34
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-4480325a.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +15 -15
- package/dist/esm/AD300x250x600.js +15 -15
- package/dist/esm/AD728x90.js +20 -17
- package/dist/esm/ADFloatingFooter.js +14 -14
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +14 -14
- package/dist/esm/{ADInfeed-c85750f6.js → ADInfeed-6315ccfc.js} +1 -1
- package/dist/esm/ADSkyscraper.js +14 -14
- package/dist/esm/ADSponsoredResources.js +14 -14
- package/dist/esm/ADWebcast.js +14 -14
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-af87d4d0.js → ADlgInfeed-4e05a45c.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +16 -16
- package/dist/esm/AdSlotsProvider.js +11 -11
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +11 -11
- package/dist/esm/ArticleProgramLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +16 -16
- package/dist/esm/Auth.js +470 -208
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-c7ff069f.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d8cd739c.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +19 -19
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +19 -19
- package/dist/esm/{Dfp-16d5afd7.js → Dfp-8bfbd310.js} +7 -7
- package/dist/esm/EventsDeck.js +36 -36
- package/dist/esm/ExternalResources.js +25 -25
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +7 -7
- package/dist/esm/GridContent.js +29 -29
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +9 -9
- package/dist/esm/HamMagazine.js +22 -22
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +24 -24
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +7 -7
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +49 -49
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +14 -14
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +14 -14
- package/dist/esm/NavDvm.js +8 -8
- package/dist/esm/NavMagazine.js +22 -22
- package/dist/esm/NavNative.js +20 -20
- package/dist/esm/NavNormal.js +8 -8
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +28 -28
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +51 -51
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-c324917a.js → SeriesSlider-00ad2992.js} +12 -12
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-c3216d1a.js} +6 -6
- package/dist/esm/TaxonomyCard.js +5 -5
- package/dist/esm/TaxonomyDescription.js +24 -24
- package/dist/esm/TemplateNormal.js +18 -18
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +7 -7
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +24 -24
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +8 -8
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +18 -18
- package/dist/esm/View.js +131 -128
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +23 -23
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-674f71ec.js} +1 -1
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-48516cd3.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-8f409e54.js} +2 -2
- package/dist/esm/{_set-species-807b5286.js → _set-species-494ed292.js} +4 -4
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-97770c52.js} +4 -4
- package/dist/esm/{asyncToGenerator-207adf34.js → asyncToGenerator-2bd4099a.js} +27 -27
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{debounce-d47ed3d5.js → debounce-1a993acf.js} +5 -40
- package/dist/esm/{define-property-fe54dc9f.js → define-property-ec6d528d.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-aa6068a3.js} +5 -5
- package/dist/esm/{extends-f076879e.js → extends-31d65aba.js} +7 -7
- package/dist/esm/{get-6bdcd759.js → get-5ee14cda.js} +20 -20
- package/dist/esm/getRelatedArticle.js +10 -12
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +24 -24
- package/dist/esm/{getTargeting-9e21a02f.js → getTargeting-2d402d66.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-0dbff1d1.js → index-3f5c03b2.js} +5 -5
- package/dist/esm/{index-821c8b90.js → index-47730283.js} +86 -86
- package/dist/esm/{index-79cfd25c.js → index-ccb770c7.js} +4 -4
- package/dist/esm/index.js +35 -35
- package/dist/esm/{inherits-f71787cf.js → inherits-5906fbea.js} +19 -19
- package/dist/esm/{isSymbol-a8e45de6.js → isSymbol-807e927e.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-a0b0c7a4.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ad27652f.js} +9 -57
- package/dist/esm/{main-b5c5aac1.js → main-1450d277.js} +103 -178
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-cdeaee08.js} +14 -14
- package/dist/esm/stringify-d4839bab.js +15 -0
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-fa2dcda7.js} +9 -9
- package/dist/esm/{typeof-a286cf0c.js → typeof-e9cea9e8.js} +34 -34
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-035980f3.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _extends } from './extends-
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
1
|
+
import { _ as _extends } from './extends-31d65aba.js';
|
|
2
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { l as lib_3 } from './index-888f9253.js';
|
|
5
5
|
import Container from 'react-bootstrap/Container';
|
|
@@ -8,29 +8,29 @@ import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
|
8
8
|
import { m as moment } from './moment-bc12cb97.js';
|
|
9
9
|
import { withRouter } from 'next/router';
|
|
10
10
|
import YoutubeGroup from './YoutubeGroup.js';
|
|
11
|
-
import { d as debounce_1 } from './debounce-
|
|
11
|
+
import { d as debounce_1 } from './debounce-1a993acf.js';
|
|
12
12
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
|
-
import './_to-object-
|
|
15
|
-
import './_object-pie-
|
|
16
|
-
import './es6.string.iterator-
|
|
17
|
-
import './_object-sap-
|
|
18
|
-
import './define-property-
|
|
19
|
-
import './typeof-
|
|
20
|
-
import './web.dom.iterable-
|
|
21
|
-
import './_is-array-
|
|
14
|
+
import './_to-object-97770c52.js';
|
|
15
|
+
import './_object-pie-33c40e79.js';
|
|
16
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
17
|
+
import './_object-sap-fd3054d0.js';
|
|
18
|
+
import './define-property-ec6d528d.js';
|
|
19
|
+
import './typeof-e9cea9e8.js';
|
|
20
|
+
import './web.dom.iterable-035980f3.js';
|
|
21
|
+
import './_is-array-674f71ec.js';
|
|
22
22
|
import './_library-528f1934.js';
|
|
23
23
|
import 'prop-types';
|
|
24
24
|
import 'react-dom';
|
|
25
25
|
import './iconBase-602d52fe.js';
|
|
26
|
-
import './slicedToArray-
|
|
27
|
-
import './core.get-iterator-method-
|
|
26
|
+
import './slicedToArray-cdeaee08.js';
|
|
27
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
28
28
|
import './index-c7e2ac95.js';
|
|
29
29
|
import './index-752d1dae.js';
|
|
30
30
|
import './smoothscroll-fa4e3f8c.js';
|
|
31
|
-
import './index-
|
|
32
|
-
import './main-
|
|
33
|
-
import './isSymbol-
|
|
31
|
+
import './index-3f5c03b2.js';
|
|
32
|
+
import './main-1450d277.js';
|
|
33
|
+
import './isSymbol-807e927e.js';
|
|
34
34
|
|
|
35
35
|
var VideoSeriesListing = function (_React$Component) {
|
|
36
36
|
_inherits(VideoSeriesListing, _React$Component);
|
|
@@ -222,10 +222,10 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
222
222
|
|
|
223
223
|
return React.createElement(
|
|
224
224
|
'div',
|
|
225
|
-
{ key: index,
|
|
225
|
+
{ key: index, counter: itemCounter++ },
|
|
226
226
|
React.createElement(
|
|
227
227
|
'div',
|
|
228
|
-
{ className: 'video-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.
|
|
228
|
+
{ className: 'video-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.3rem', borderBottom: '2px solid #d4a64d' } },
|
|
229
229
|
React.createElement(
|
|
230
230
|
'a',
|
|
231
231
|
{ href: '/' + _this.props.page + '/' + docSeries.url.current },
|
package/dist/esm/View.js
CHANGED
|
@@ -1,50 +1,47 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
2
|
-
import { _ as _extends, a as _Object$assign } from './extends-
|
|
3
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-
|
|
4
|
-
import React, { useState, useRef, useEffect
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
|
|
2
|
+
import { _ as _extends, a as _Object$assign } from './extends-31d65aba.js';
|
|
3
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { useRouter } from 'next/router';
|
|
7
|
-
import { _ as _JSON$stringify } from './stringify-
|
|
8
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
+
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
8
|
+
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
-
import { B as BlockContent } from './BlockContent-
|
|
11
|
-
import { m as
|
|
10
|
+
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
11
|
+
import { m as main_40 } from './main-1450d277.js';
|
|
12
12
|
import 'react-bootstrap/Dropdown';
|
|
13
13
|
import Form from 'react-bootstrap/Form';
|
|
14
14
|
import FormControl from 'react-bootstrap/FormControl';
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
|
-
import {
|
|
16
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-47730283.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-821c8b90.js';
|
|
19
18
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
19
|
+
import { S as SeriesSlider } from './SeriesSlider-00ad2992.js';
|
|
20
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
22
21
|
import getKeywords from './getKeywords.js';
|
|
23
22
|
import urlFor from './urlFor.js';
|
|
24
|
-
import { _ as _typeof } from './typeof-
|
|
23
|
+
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
25
24
|
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
26
25
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
26
|
import './index-752d1dae.js';
|
|
28
27
|
import { DiscussionEmbed } from 'disqus-react';
|
|
29
|
-
import { _ as _Object$keys } from './keys-
|
|
28
|
+
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
30
29
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
31
30
|
import { l as lib_3 } from './index-888f9253.js';
|
|
32
31
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
33
32
|
import getQuery from './getQuery.js';
|
|
34
33
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
35
34
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
36
|
-
import './es6.string.iterator-
|
|
37
|
-
import './_to-object-
|
|
38
|
-
import './web.dom.iterable-
|
|
35
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
36
|
+
import './_to-object-97770c52.js';
|
|
37
|
+
import './web.dom.iterable-035980f3.js';
|
|
39
38
|
import './_library-528f1934.js';
|
|
40
|
-
import './core.get-iterator-method-
|
|
41
|
-
import './_set-species-
|
|
42
|
-
import './_iter-detect-
|
|
43
|
-
import './_object-pie-
|
|
39
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
40
|
+
import './_set-species-494ed292.js';
|
|
41
|
+
import './_iter-detect-48516cd3.js';
|
|
42
|
+
import './_object-pie-33c40e79.js';
|
|
44
43
|
import 'prop-types';
|
|
45
|
-
import './index-
|
|
46
|
-
import 'react-dom';
|
|
47
|
-
import 'react-share';
|
|
44
|
+
import './index-3f5c03b2.js';
|
|
48
45
|
import 'react-bootstrap';
|
|
49
46
|
import './index-c7e2ac95.js';
|
|
50
47
|
import './util-3ab476bf.js';
|
|
@@ -53,20 +50,22 @@ import './Segment.js';
|
|
|
53
50
|
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
54
51
|
import './GroupDeck.js';
|
|
55
52
|
import './smoothscroll-fa4e3f8c.js';
|
|
56
|
-
import './_is-array-
|
|
57
|
-
import './_object-to-array-
|
|
53
|
+
import './_is-array-674f71ec.js';
|
|
54
|
+
import './_object-to-array-8f409e54.js';
|
|
58
55
|
import 'react-bootstrap/Pagination';
|
|
59
56
|
import './entities-932b50cf.js';
|
|
60
57
|
import 'react-bootstrap/Row';
|
|
61
58
|
import 'react-bootstrap/Col';
|
|
62
|
-
import './inherits-
|
|
63
|
-
import './_object-sap-
|
|
64
|
-
import './define-property-
|
|
59
|
+
import './inherits-5906fbea.js';
|
|
60
|
+
import './_object-sap-fd3054d0.js';
|
|
61
|
+
import './define-property-ec6d528d.js';
|
|
65
62
|
import './index.esm-3fdda599.js';
|
|
66
63
|
import './iconBase-602d52fe.js';
|
|
67
64
|
import 'react-bootstrap/Figure';
|
|
68
|
-
import '
|
|
69
|
-
import './
|
|
65
|
+
import 'react-share';
|
|
66
|
+
import './debounce-1a993acf.js';
|
|
67
|
+
import './isSymbol-807e927e.js';
|
|
68
|
+
import 'react-dom';
|
|
70
69
|
import './index-db3bb315.js';
|
|
71
70
|
|
|
72
71
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -144,9 +143,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
144
143
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
145
144
|
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
146
145
|
!thumbnailUrl && React.createElement('p', {
|
|
147
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
146
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
148
147
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
149
|
-
|
|
148
|
+
main_40 && !thumbnailUrl && React.createElement(
|
|
150
149
|
'style',
|
|
151
150
|
{ jsx: 'true' },
|
|
152
151
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -325,7 +324,7 @@ var ISI = function ISI(props) {
|
|
|
325
324
|
);
|
|
326
325
|
};
|
|
327
326
|
|
|
328
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
327
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
329
328
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
330
329
|
styleInject(css);
|
|
331
330
|
|
|
@@ -377,7 +376,7 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
377
376
|
);
|
|
378
377
|
};
|
|
379
378
|
|
|
380
|
-
var Article =
|
|
379
|
+
var Article = function Article(props) {
|
|
381
380
|
var onVote = function () {
|
|
382
381
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
383
382
|
var response, result;
|
|
@@ -477,14 +476,11 @@ var Article = forwardRef(function (props, ref) {
|
|
|
477
476
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
478
477
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
479
478
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
480
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
481
|
-
props.active;
|
|
482
|
-
var containerHeight = props.containerHeight,
|
|
479
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
483
480
|
_props$refreshFlag = props.refreshFlag,
|
|
484
481
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
485
482
|
disqusConfig = props.disqusConfig;
|
|
486
483
|
|
|
487
|
-
|
|
488
484
|
var targeting = getTargeting(props);
|
|
489
485
|
var onChangeArticle = props.onChangeArticle;
|
|
490
486
|
|
|
@@ -936,31 +932,29 @@ var Article = forwardRef(function (props, ref) {
|
|
|
936
932
|
return episode;
|
|
937
933
|
};
|
|
938
934
|
|
|
939
|
-
// pixels from bottom of window to change trigger visibility change
|
|
940
|
-
var triggerOffset = 10;
|
|
941
|
-
var isVideoSeries = checkIfVideoSeries(article);
|
|
942
935
|
var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
|
|
936
|
+
var isVideoSeries = checkIfVideoSeries(article);
|
|
943
937
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
944
938
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
945
939
|
return React.createElement(
|
|
946
940
|
React.Fragment,
|
|
947
941
|
null,
|
|
948
942
|
React.createElement(
|
|
949
|
-
|
|
943
|
+
InscreenSensor,
|
|
950
944
|
{
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
945
|
+
offSetTop: 120,
|
|
946
|
+
className: 'inscreen-wrapper',
|
|
947
|
+
id: 'article-' + title,
|
|
948
|
+
onChange: function onChange(visible) {
|
|
949
|
+
if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
|
|
950
|
+
onChangeArticle(url, visible, meta);
|
|
951
|
+
// Setting 'visibleFlag' to know that the article is visible.
|
|
952
|
+
setVisibleFlag(true);
|
|
959
953
|
}
|
|
960
954
|
} },
|
|
961
955
|
React.createElement(
|
|
962
956
|
'div',
|
|
963
|
-
{ id: 'article__block'
|
|
957
|
+
{ id: 'article__block' },
|
|
964
958
|
React.createElement(
|
|
965
959
|
'div',
|
|
966
960
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
@@ -1112,7 +1106,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1112
1106
|
React.createElement(
|
|
1113
1107
|
'div',
|
|
1114
1108
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1115
|
-
|
|
1109
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1116
1110
|
if (index === 0) {
|
|
1117
1111
|
return React.createElement(
|
|
1118
1112
|
'div',
|
|
@@ -1180,17 +1174,17 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1180
1174
|
)
|
|
1181
1175
|
),
|
|
1182
1176
|
renderIsiContent(props.article)
|
|
1177
|
+
),
|
|
1178
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1179
|
+
ISI,
|
|
1180
|
+
null,
|
|
1181
|
+
React.createElement(BlockContent, {
|
|
1182
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1183
|
+
blocks: isi
|
|
1184
|
+
})
|
|
1183
1185
|
)
|
|
1184
1186
|
),
|
|
1185
|
-
|
|
1186
|
-
ISI,
|
|
1187
|
-
null,
|
|
1188
|
-
React.createElement(BlockContent, {
|
|
1189
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1190
|
-
blocks: isi
|
|
1191
|
-
})
|
|
1192
|
-
),
|
|
1193
|
-
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1187
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1194
1188
|
if (index > 0) {
|
|
1195
1189
|
return React.createElement(
|
|
1196
1190
|
'div',
|
|
@@ -1226,9 +1220,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1226
1220
|
} else {
|
|
1227
1221
|
return detail();
|
|
1228
1222
|
}
|
|
1229
|
-
}
|
|
1223
|
+
};
|
|
1230
1224
|
|
|
1231
|
-
var _this
|
|
1225
|
+
var _this = undefined;
|
|
1232
1226
|
|
|
1233
1227
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1234
1228
|
var _props$prevUrl = props.prevUrl,
|
|
@@ -1244,25 +1238,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1244
1238
|
showRelatedArticles = props.showRelatedArticles,
|
|
1245
1239
|
canonicalTag = props.canonicalTag;
|
|
1246
1240
|
|
|
1247
|
-
var _useState = useState(0),
|
|
1248
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1249
|
-
containerHeight = _useState2[0],
|
|
1250
|
-
setContainerHeight = _useState2[1];
|
|
1251
|
-
|
|
1252
|
-
useEffect(function () {
|
|
1253
|
-
setContainerHeight(function () {
|
|
1254
|
-
return window.innerHeight;
|
|
1255
|
-
});
|
|
1256
|
-
var handleResize = function handleResize() {
|
|
1257
|
-
return setContainerHeight(function () {
|
|
1258
|
-
return window.innerHeight;
|
|
1259
|
-
});
|
|
1260
|
-
};
|
|
1261
|
-
window.addEventListener('resize', handleResize);
|
|
1262
|
-
return function () {
|
|
1263
|
-
return window.removeEventListener('resize', handleResize);
|
|
1264
|
-
};
|
|
1265
|
-
}, []);
|
|
1266
1241
|
|
|
1267
1242
|
var firstArticle = function firstArticle() {
|
|
1268
1243
|
var article = _Object$assign({}, props.article);
|
|
@@ -1271,27 +1246,24 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1271
1246
|
return article;
|
|
1272
1247
|
};
|
|
1273
1248
|
|
|
1274
|
-
var
|
|
1275
|
-
|
|
1276
|
-
queueData =
|
|
1277
|
-
setQueueData =
|
|
1278
|
-
|
|
1279
|
-
var _useState5 = useState(queueData[0]._id),
|
|
1280
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
1281
|
-
active = _useState6[0],
|
|
1282
|
-
setActive = _useState6[1];
|
|
1249
|
+
var _useState = useState([firstArticle()]),
|
|
1250
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1251
|
+
queueData = _useState2[0],
|
|
1252
|
+
setQueueData = _useState2[1];
|
|
1283
1253
|
|
|
1284
1254
|
var refreshAD = function refreshAD(path) {
|
|
1285
1255
|
var activeArticle = queueData.find(function (item) {
|
|
1286
1256
|
return item.url.current === path;
|
|
1287
1257
|
});
|
|
1288
1258
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1289
|
-
|
|
1259
|
+
|
|
1260
|
+
if (!main_40) {
|
|
1290
1261
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1291
1262
|
if (window.googletag && googletag.pubadsReady) {
|
|
1292
1263
|
var slots = googletag.pubads().getSlots();
|
|
1293
1264
|
slots.forEach(function (slot) {
|
|
1294
1265
|
var pos = slot.getTargeting('pos');
|
|
1266
|
+
|
|
1295
1267
|
slot.clearTargeting();
|
|
1296
1268
|
_Object$keys(targeting).forEach(function (key) {
|
|
1297
1269
|
slot.setTargeting(key, targeting[key]);
|
|
@@ -1303,7 +1275,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1303
1275
|
});
|
|
1304
1276
|
}
|
|
1305
1277
|
//Refresh leaderboard ad on mobile
|
|
1306
|
-
if (
|
|
1278
|
+
if (main_40) {
|
|
1307
1279
|
var leaderboardSlotId = '';
|
|
1308
1280
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1309
1281
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1326,6 +1298,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1326
1298
|
}
|
|
1327
1299
|
};
|
|
1328
1300
|
|
|
1301
|
+
var preVscroll = 0;
|
|
1302
|
+
var isScrollDown = true;
|
|
1303
|
+
|
|
1304
|
+
var scrollDirectionDetect = function scrollDirectionDetect(e) {
|
|
1305
|
+
var window = e.currentTarget;
|
|
1306
|
+
|
|
1307
|
+
if (preVscroll > window.scrollY) {
|
|
1308
|
+
isScrollDown = false;
|
|
1309
|
+
} else if (preVscroll < window.scrollY) {
|
|
1310
|
+
isScrollDown = true;
|
|
1311
|
+
}
|
|
1312
|
+
preVscroll = window.scrollY;
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
useEffect(function () {
|
|
1316
|
+
window.addEventListener('scroll', scrollDirectionDetect);
|
|
1317
|
+
return function () {
|
|
1318
|
+
return window.removeEventListener('scroll', scrollDirectionDetect);
|
|
1319
|
+
};
|
|
1320
|
+
});
|
|
1321
|
+
|
|
1329
1322
|
var hasVerticalScroll = function hasVerticalScroll() {
|
|
1330
1323
|
if (window.innerHeight) {
|
|
1331
1324
|
return document.body.offsetHeight > window.innerHeight;
|
|
@@ -1407,7 +1400,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1407
1400
|
return _context.stop();
|
|
1408
1401
|
}
|
|
1409
1402
|
}
|
|
1410
|
-
}, _callee, _this
|
|
1403
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1411
1404
|
}));
|
|
1412
1405
|
|
|
1413
1406
|
return function loadmore() {
|
|
@@ -1432,50 +1425,60 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1432
1425
|
}
|
|
1433
1426
|
};
|
|
1434
1427
|
|
|
1435
|
-
var onChangeArticle = function onChangeArticle(path, meta) {
|
|
1428
|
+
var onChangeArticle = function onChangeArticle(path, visibility, meta) {
|
|
1429
|
+
var currentPath = window && window.location && window.location.pathname ? window.location.pathname.replace('/view/', '') : '';
|
|
1436
1430
|
var newPath = '/view/' + path;
|
|
1437
|
-
|
|
1438
|
-
return item.url.current === path;
|
|
1439
|
-
});
|
|
1440
|
-
setActive(function () {
|
|
1441
|
-
return activeArticle._id;
|
|
1442
|
-
});
|
|
1431
|
+
|
|
1443
1432
|
// Change URL and do other changes
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
props.setCustomDimensions
|
|
1433
|
+
var doChanges = function doChanges() {
|
|
1434
|
+
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
1435
|
+
changeMeta(meta);
|
|
1436
|
+
if (props.setCustomDimensions) {
|
|
1437
|
+
var activeArticle = queueData.find(function (item) {
|
|
1438
|
+
return item.url.current === path;
|
|
1439
|
+
});
|
|
1440
|
+
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1441
|
+
}
|
|
1442
|
+
if (props.pageview) props.pageview(newPath);
|
|
1443
|
+
refreshAD(path);
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
if (currentPath !== path) {
|
|
1447
|
+
if (isScrollDown) {
|
|
1448
|
+
if (visibility === 'top') {
|
|
1449
|
+
doChanges();
|
|
1450
|
+
}
|
|
1451
|
+
} else {
|
|
1452
|
+
if (visibility === 'bottom') {
|
|
1453
|
+
doChanges();
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
if (visibility === 'small-top') {
|
|
1457
|
+
doChanges();
|
|
1458
|
+
}
|
|
1448
1459
|
}
|
|
1449
|
-
if (props.pageview) props.pageview(newPath);
|
|
1450
|
-
refreshAD(path);
|
|
1451
1460
|
};
|
|
1452
1461
|
|
|
1453
1462
|
return React.createElement(
|
|
1454
1463
|
InfiniteScroll,
|
|
1455
|
-
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '
|
|
1464
|
+
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1456
1465
|
queueData.map(function (article, index) {
|
|
1457
|
-
return React.createElement(
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
active: active === article._id
|
|
1469
|
-
// Passing queueData to check for single article
|
|
1470
|
-
, queueData: queueData,
|
|
1471
|
-
showRelatedArticles: showRelatedArticles
|
|
1472
|
-
}))
|
|
1473
|
-
);
|
|
1466
|
+
return React.createElement(Article, _extends({
|
|
1467
|
+
key: index
|
|
1468
|
+
}, props, {
|
|
1469
|
+
onChangeArticle: onChangeArticle,
|
|
1470
|
+
authorPrfix: authorPrefix,
|
|
1471
|
+
article: article,
|
|
1472
|
+
cpModificationRequired: cpModificationRequired
|
|
1473
|
+
// Passing queueData to check for single article
|
|
1474
|
+
, queueData: queueData,
|
|
1475
|
+
showRelatedArticles: showRelatedArticles
|
|
1476
|
+
}));
|
|
1474
1477
|
})
|
|
1475
1478
|
);
|
|
1476
1479
|
};
|
|
1477
1480
|
|
|
1478
|
-
var _this = undefined;
|
|
1481
|
+
var _this$1 = undefined;
|
|
1479
1482
|
|
|
1480
1483
|
var View = function View(props) {
|
|
1481
1484
|
var router = useRouter();
|
|
@@ -1796,7 +1799,7 @@ View.returnGetInitialProps = function () {
|
|
|
1796
1799
|
return _context.stop();
|
|
1797
1800
|
}
|
|
1798
1801
|
}
|
|
1799
|
-
}, _callee, _this);
|
|
1802
|
+
}, _callee, _this$1);
|
|
1800
1803
|
}));
|
|
1801
1804
|
|
|
1802
1805
|
return function (_x, _x2, _x3, _x4, _x5) {
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { m as moment } from './moment-bc12cb97.js';
|
|
3
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
4
4
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
5
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
5
|
+
import { A as AuthorComponent } from './AuthorComponent-c7ff069f.js';
|
|
6
6
|
import { L as LazyLoad } from './index-752d1dae.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
|
-
import './slicedToArray-
|
|
9
|
-
import './web.dom.iterable-
|
|
10
|
-
import './es6.string.iterator-
|
|
11
|
-
import './_to-object-
|
|
12
|
-
import './core.get-iterator-method-
|
|
8
|
+
import './slicedToArray-cdeaee08.js';
|
|
9
|
+
import './web.dom.iterable-035980f3.js';
|
|
10
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
11
|
+
import './_to-object-97770c52.js';
|
|
12
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
|