@mjhls/mjh-framework 1.0.771-full-path-docgroup-v2 → 1.0.772
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 +16 -16
- package/dist/cjs/AD300x250x600.js +16 -16
- package/dist/cjs/AD728x90.js +17 -17
- package/dist/cjs/ADFloatingFooter.js +15 -15
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +15 -15
- package/dist/cjs/{ADInfeed-38240eb1.js → ADInfeed-d1eceaf2.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +15 -15
- package/dist/cjs/ADSponsoredResources.js +15 -15
- package/dist/cjs/ADWebcast.js +15 -15
- package/dist/cjs/ADWelcome.js +15 -15
- package/dist/cjs/{ADlgInfeed-795bcf35.js → ADlgInfeed-24c693d8.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -5
- package/dist/cjs/AdSlot.js +17 -17
- 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 +25 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +25 -25
- package/dist/cjs/ArticleSeriesListing.js +17 -17
- 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 +15 -15
- package/dist/cjs/Column2.js +12 -12
- package/dist/cjs/Column3.js +21 -21
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +32 -32
- package/dist/cjs/DeckQueue.js +21 -21
- package/dist/cjs/{Dfp-b63b5e5f.js → Dfp-a17e00fa.js} +8 -8
- package/dist/cjs/EventsDeck.js +36 -36
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +31 -31
- 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 +25 -25
- 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 +50 -50
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +15 -15
- package/dist/cjs/MasterDeck.js +33 -33
- package/dist/cjs/MediaSeriesLanding.js +20 -17
- package/dist/cjs/NavDvm.js +8 -8
- package/dist/cjs/NavMagazine.js +22 -22
- package/dist/cjs/NavNative.js +27 -27
- 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 +29 -29
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +21 -21
- 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 +23 -23
- 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 +112 -38
- package/dist/cjs/{SeriesSlider-7dbeaa51.js → SeriesSlider-560c7162.js} +13 -13
- package/dist/cjs/SideFooter.js +14 -14
- package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-45c54bed.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +25 -25
- package/dist/cjs/TemplateNormal.js +20 -20
- 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 +25 -25
- package/dist/cjs/VideoSeriesCard.js +8 -8
- package/dist/cjs/VideoSeriesFilter.js +8 -8
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +17 -17
- package/dist/cjs/View.js +101 -175
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +19 -19
- 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-d4a2369b.js → debounce-529c8d06.js} +2 -2
- 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/{eq-5fc26c07.js → eq-bb2843ed.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-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +10 -12
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-3cdc6e1d.js → getTargeting-497b581d.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-f86bb269.js → index-4d74ffd6.js} +4 -4
- package/dist/cjs/{index-873750c4.js → index-9475e5ae.js} +85 -85
- package/dist/cjs/{index-efca863c.js → index-d48b231c.js} +5 -5
- package/dist/cjs/index.js +37 -37
- 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/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- 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 +16 -16
- package/dist/esm/AD300x250x600.js +16 -16
- package/dist/esm/AD728x90.js +17 -17
- package/dist/esm/ADFloatingFooter.js +15 -15
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +15 -15
- package/dist/esm/{ADInfeed-de396be9.js → ADInfeed-c12cd1ce.js} +1 -1
- package/dist/esm/ADSkyscraper.js +15 -15
- package/dist/esm/ADSponsoredResources.js +15 -15
- package/dist/esm/ADWebcast.js +15 -15
- package/dist/esm/ADWelcome.js +15 -15
- package/dist/esm/{ADlgInfeed-a6f8b5fa.js → ADlgInfeed-246a8787.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +17 -17
- 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 +25 -25
- package/dist/esm/ArticleSeriesLandingPage.js +25 -25
- package/dist/esm/ArticleSeriesListing.js +17 -17
- 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 +15 -15
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +21 -21
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +32 -32
- package/dist/esm/DeckQueue.js +21 -21
- package/dist/esm/{Dfp-723aab19.js → Dfp-988dbcaa.js} +8 -8
- package/dist/esm/EventsDeck.js +36 -36
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +7 -7
- package/dist/esm/GridContent.js +31 -31
- 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 +25 -25
- 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 +50 -50
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +15 -15
- package/dist/esm/MasterDeck.js +33 -33
- package/dist/esm/MediaSeriesLanding.js +20 -17
- package/dist/esm/NavDvm.js +8 -8
- package/dist/esm/NavMagazine.js +22 -22
- package/dist/esm/NavNative.js +27 -27
- 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 +29 -29
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +21 -21
- 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 +23 -23
- 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 +112 -38
- package/dist/esm/{SeriesSlider-c324917a.js → SeriesSlider-5279b68a.js} +13 -13
- package/dist/esm/SideFooter.js +14 -14
- package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-c3216d1a.js} +6 -6
- package/dist/esm/TaxonomyCard.js +5 -5
- package/dist/esm/TaxonomyDescription.js +25 -25
- package/dist/esm/TemplateNormal.js +20 -20
- 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 +25 -25
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +8 -8
- package/dist/esm/VideoSeriesLandingPage.js +25 -25
- package/dist/esm/VideoSeriesListing.js +17 -17
- package/dist/esm/View.js +101 -175
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +19 -19
- 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-533d9748.js → debounce-9207d8ee.js} +2 -2
- 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/{eq-bdcbf886.js → eq-b470f743.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-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +10 -12
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +25 -25
- 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-79cfd25c.js → index-ccb770c7.js} +4 -4
- package/dist/esm/{index-da683e94.js → index-da6ed052.js} +85 -85
- package/dist/esm/index.js +37 -37
- package/dist/esm/{inherits-f71787cf.js → inherits-5906fbea.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.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/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- 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
package/dist/esm/View.js
CHANGED
|
@@ -1,47 +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-
|
|
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
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 { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
16
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-da6ed052.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
18
|
import DFPAdSlot from './AdSlot.js';
|
|
19
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
20
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
19
|
+
import { S as SeriesSlider } from './SeriesSlider-5279b68a.js';
|
|
20
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
21
21
|
import getKeywords from './getKeywords.js';
|
|
22
22
|
import urlFor from './urlFor.js';
|
|
23
|
-
import { _ as _typeof } from './typeof-
|
|
23
|
+
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
24
24
|
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
25
25
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
26
26
|
import './index-752d1dae.js';
|
|
27
27
|
import { DiscussionEmbed } from 'disqus-react';
|
|
28
|
-
import { _ as _Object$keys } from './keys-
|
|
28
|
+
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
29
29
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
30
30
|
import { l as lib_3 } from './index-888f9253.js';
|
|
31
31
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
32
32
|
import getQuery from './getQuery.js';
|
|
33
33
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
34
34
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
35
|
-
import './es6.string.iterator-
|
|
36
|
-
import './_to-object-
|
|
37
|
-
import './web.dom.iterable-
|
|
35
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
36
|
+
import './_to-object-97770c52.js';
|
|
37
|
+
import './web.dom.iterable-035980f3.js';
|
|
38
38
|
import './_library-528f1934.js';
|
|
39
|
-
import './core.get-iterator-method-
|
|
40
|
-
import './_set-species-
|
|
41
|
-
import './_iter-detect-
|
|
42
|
-
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';
|
|
43
43
|
import 'prop-types';
|
|
44
|
-
import './index-
|
|
44
|
+
import './index-3f5c03b2.js';
|
|
45
45
|
import 'react-bootstrap';
|
|
46
46
|
import './index-c7e2ac95.js';
|
|
47
47
|
import './util-3ab476bf.js';
|
|
@@ -50,22 +50,22 @@ import './Segment.js';
|
|
|
50
50
|
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
51
51
|
import './GroupDeck.js';
|
|
52
52
|
import './smoothscroll-fa4e3f8c.js';
|
|
53
|
-
import './_is-array-
|
|
54
|
-
import './_object-to-array-
|
|
53
|
+
import './_is-array-674f71ec.js';
|
|
54
|
+
import './_object-to-array-8f409e54.js';
|
|
55
55
|
import 'react-bootstrap/Pagination';
|
|
56
56
|
import './entities-932b50cf.js';
|
|
57
57
|
import 'react-bootstrap/Row';
|
|
58
58
|
import 'react-bootstrap/Col';
|
|
59
|
-
import './inherits-
|
|
60
|
-
import './_object-sap-
|
|
61
|
-
import './define-property-
|
|
59
|
+
import './inherits-5906fbea.js';
|
|
60
|
+
import './_object-sap-fd3054d0.js';
|
|
61
|
+
import './define-property-ec6d528d.js';
|
|
62
62
|
import './index.esm-3fdda599.js';
|
|
63
63
|
import './iconBase-602d52fe.js';
|
|
64
64
|
import 'react-bootstrap/Figure';
|
|
65
65
|
import 'react-share';
|
|
66
|
-
import './debounce-
|
|
67
|
-
import './isSymbol-
|
|
68
|
-
import './toNumber-
|
|
66
|
+
import './debounce-9207d8ee.js';
|
|
67
|
+
import './isSymbol-1981418f.js';
|
|
68
|
+
import './toNumber-2f7a84cd.js';
|
|
69
69
|
import 'react-dom';
|
|
70
70
|
import './index-db3bb315.js';
|
|
71
71
|
|
|
@@ -81,15 +81,31 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
|
|
|
81
81
|
if (!docGroup) {
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
|
-
var url =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
var url = void 0;
|
|
85
|
+
|
|
86
|
+
if (docGroup.path && docGroup.path.includes('/') && (!docGroup.parent || !docGroup.parent.parent)) {
|
|
87
|
+
return '/' + docGroup.path;
|
|
88
|
+
}
|
|
89
|
+
// Checking if Parent has Parent
|
|
90
|
+
if (docGroup.path && docGroup.path.includes('/') && docGroup.parent && docGroup.parent.parent) {
|
|
91
|
+
if (docGroup.path.includes(docGroup.parent.identifier.current)) {
|
|
92
|
+
return '/' + docGroup.parent.parent.identifier.current + '/' + docGroup.path;
|
|
93
|
+
} else {
|
|
94
|
+
return '/' + docGroup.parent.parent.identifier.current + '/' + docGroup.parent.identifier.current + '/' + docGroup.path;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (docGroup.parent) {
|
|
99
|
+
url = '/' + docGroup.parent.identifier.current;
|
|
100
|
+
if (docGroup.parent.parent && docGroup.parent.parent.name) {
|
|
101
|
+
url = '/' + docGroup.parent.parent.identifier.current + url;
|
|
89
102
|
}
|
|
90
|
-
parent = parent.parent ? parent.parent : false;
|
|
91
103
|
}
|
|
92
|
-
|
|
104
|
+
|
|
105
|
+
if (!docGroup.thumbnail) ;
|
|
106
|
+
url = url + '/' + docGroup.path;
|
|
107
|
+
|
|
108
|
+
return url;
|
|
93
109
|
};
|
|
94
110
|
|
|
95
111
|
var getDocumentGroupName = function getDocumentGroupName(docGroup) {
|
|
@@ -137,9 +153,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
137
153
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
138
154
|
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
139
155
|
!thumbnailUrl && React.createElement('p', {
|
|
140
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
156
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
141
157
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
142
|
-
|
|
158
|
+
main_40 && !thumbnailUrl && React.createElement(
|
|
143
159
|
'style',
|
|
144
160
|
{ jsx: 'true' },
|
|
145
161
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -318,7 +334,7 @@ var ISI = function ISI(props) {
|
|
|
318
334
|
);
|
|
319
335
|
};
|
|
320
336
|
|
|
321
|
-
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";
|
|
337
|
+
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";
|
|
322
338
|
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" };
|
|
323
339
|
styleInject(css);
|
|
324
340
|
|
|
@@ -428,7 +444,6 @@ var Article = function Article(props) {
|
|
|
428
444
|
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
429
445
|
_props$hidePinterestS = props.hidePinterestShare,
|
|
430
446
|
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS;
|
|
431
|
-
props.useFullDocumentGroupPath;
|
|
432
447
|
var client = props.client,
|
|
433
448
|
pageview = props.pageview,
|
|
434
449
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -701,9 +716,9 @@ var Article = function Article(props) {
|
|
|
701
716
|
slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
|
|
702
717
|
})
|
|
703
718
|
});
|
|
704
|
-
var
|
|
719
|
+
var selectedIndex = indexes[1] + 1;
|
|
705
720
|
if (seriesInfo.hasVideo) {
|
|
706
|
-
|
|
721
|
+
selectedIndex = seriesInfo.videoIndex;
|
|
707
722
|
}
|
|
708
723
|
|
|
709
724
|
var checkIsVideoAdFound = function checkIsVideoAdFound(isFound) {
|
|
@@ -722,7 +737,7 @@ var Article = function Article(props) {
|
|
|
722
737
|
null,
|
|
723
738
|
React.createElement(BlockContent, _extends({
|
|
724
739
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
725
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0,
|
|
740
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
726
741
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
727
742
|
}, client.config())),
|
|
728
743
|
React.createElement('span', { className: 'clearfix' }),
|
|
@@ -743,7 +758,7 @@ var Article = function Article(props) {
|
|
|
743
758
|
),
|
|
744
759
|
React.createElement(BlockContent, _extends({
|
|
745
760
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
746
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
761
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
747
762
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
748
763
|
}, client.config()))
|
|
749
764
|
);
|
|
@@ -762,9 +777,9 @@ var Article = function Article(props) {
|
|
|
762
777
|
}, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : { viewport: [0, 0], sizes: ['fluid', [300, 100]] }
|
|
763
778
|
})
|
|
764
779
|
});
|
|
765
|
-
var
|
|
780
|
+
var _selectedIndex = indexes[1] + 1;
|
|
766
781
|
if (seriesInfo.hasVideo) {
|
|
767
|
-
|
|
782
|
+
_selectedIndex = seriesInfo.videoIndex;
|
|
768
783
|
}
|
|
769
784
|
|
|
770
785
|
return React.createElement(
|
|
@@ -772,7 +787,7 @@ var Article = function Article(props) {
|
|
|
772
787
|
null,
|
|
773
788
|
React.createElement(BlockContent, _extends({
|
|
774
789
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
775
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0,
|
|
790
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
776
791
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
777
792
|
}, client.config())),
|
|
778
793
|
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
@@ -788,7 +803,7 @@ var Article = function Article(props) {
|
|
|
788
803
|
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
789
804
|
React.createElement(BlockContent, _extends({
|
|
790
805
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
791
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
806
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
792
807
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
793
808
|
}, client.config()))
|
|
794
809
|
);
|
|
@@ -798,9 +813,9 @@ var Article = function Article(props) {
|
|
|
798
813
|
slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
|
|
799
814
|
})
|
|
800
815
|
});
|
|
801
|
-
var
|
|
816
|
+
var _selectedIndex2 = indexes[1] + 1;
|
|
802
817
|
if (seriesInfo.hasVideo) {
|
|
803
|
-
|
|
818
|
+
_selectedIndex2 = seriesInfo.videoIndex;
|
|
804
819
|
}
|
|
805
820
|
var _checkIsAdFound2 = function _checkIsAdFound2(isFound) {
|
|
806
821
|
if (!isFound) {
|
|
@@ -821,7 +836,7 @@ var Article = function Article(props) {
|
|
|
821
836
|
null,
|
|
822
837
|
React.createElement(BlockContent, _extends({
|
|
823
838
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
824
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0,
|
|
839
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
825
840
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
826
841
|
}, client.config())),
|
|
827
842
|
React.createElement('span', { className: 'clearfix' }),
|
|
@@ -833,23 +848,29 @@ var Article = function Article(props) {
|
|
|
833
848
|
),
|
|
834
849
|
React.createElement(BlockContent, _extends({
|
|
835
850
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
836
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
851
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
837
852
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
838
853
|
}, client.config()))
|
|
839
854
|
);
|
|
840
855
|
} else {
|
|
856
|
+
|
|
857
|
+
var _selectedIndex3 = indexes[1] + 1;
|
|
858
|
+
if (seriesInfo.hasVideo) {
|
|
859
|
+
_selectedIndex3 = seriesInfo.videoIndex;
|
|
860
|
+
}
|
|
861
|
+
|
|
841
862
|
return React.createElement(
|
|
842
863
|
'div',
|
|
843
864
|
null,
|
|
844
865
|
React.createElement(BlockContent, _extends({
|
|
845
866
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
846
|
-
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(
|
|
867
|
+
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
847
868
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
848
869
|
}, client.config())),
|
|
849
870
|
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
850
871
|
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
851
872
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
852
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
873
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
853
874
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
854
875
|
}, client.config()))
|
|
855
876
|
);
|
|
@@ -921,7 +942,7 @@ var Article = function Article(props) {
|
|
|
921
942
|
var episode = null;
|
|
922
943
|
sliderData.forEach(function (seriesArticle, index) {
|
|
923
944
|
if (seriesArticle.title === article.title) {
|
|
924
|
-
episode =
|
|
945
|
+
episode = index + 1;
|
|
925
946
|
}
|
|
926
947
|
});
|
|
927
948
|
return episode;
|
|
@@ -1101,7 +1122,7 @@ var Article = function Article(props) {
|
|
|
1101
1122
|
React.createElement(
|
|
1102
1123
|
'div',
|
|
1103
1124
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1104
|
-
|
|
1125
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1105
1126
|
if (index === 0) {
|
|
1106
1127
|
return React.createElement(
|
|
1107
1128
|
'div',
|
|
@@ -1179,7 +1200,7 @@ var Article = function Article(props) {
|
|
|
1179
1200
|
})
|
|
1180
1201
|
)
|
|
1181
1202
|
),
|
|
1182
|
-
|
|
1203
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1183
1204
|
if (index > 0) {
|
|
1184
1205
|
return React.createElement(
|
|
1185
1206
|
'div',
|
|
@@ -1217,66 +1238,7 @@ var Article = function Article(props) {
|
|
|
1217
1238
|
}
|
|
1218
1239
|
};
|
|
1219
1240
|
|
|
1220
|
-
var _this
|
|
1221
|
-
|
|
1222
|
-
//consortium > woments-health-equality > internal
|
|
1223
|
-
var get_doc_group_path = function () {
|
|
1224
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(id, client) {
|
|
1225
|
-
var childPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
1226
|
-
var query, docGroup, path, parent_id;
|
|
1227
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
1228
|
-
while (1) {
|
|
1229
|
-
switch (_context.prev = _context.next) {
|
|
1230
|
-
case 0:
|
|
1231
|
-
query = '*[_type == \'documentGroup\' && _id == \'' + id + '\'][0]';
|
|
1232
|
-
_context.next = 3;
|
|
1233
|
-
return client.fetch(query);
|
|
1234
|
-
|
|
1235
|
-
case 3:
|
|
1236
|
-
docGroup = _context.sent;
|
|
1237
|
-
|
|
1238
|
-
if (!(!docGroup || docGroup.length <= 0)) {
|
|
1239
|
-
_context.next = 6;
|
|
1240
|
-
break;
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
return _context.abrupt('return', '');
|
|
1244
|
-
|
|
1245
|
-
case 6:
|
|
1246
|
-
path = childPath && childPath.includes(docGroup.identifier.current) ? '' : docGroup.identifier.current;
|
|
1247
|
-
|
|
1248
|
-
if (!docGroup.parent) {
|
|
1249
|
-
_context.next = 15;
|
|
1250
|
-
break;
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
parent_id = docGroup.parent._ref;
|
|
1254
|
-
_context.next = 11;
|
|
1255
|
-
return get_doc_group_path(parent_id, client, path);
|
|
1256
|
-
|
|
1257
|
-
case 11:
|
|
1258
|
-
_context.t0 = _context.sent;
|
|
1259
|
-
_context.t1 = _context.t0 + '/';
|
|
1260
|
-
_context.t2 = path;
|
|
1261
|
-
return _context.abrupt('return', _context.t1 + _context.t2);
|
|
1262
|
-
|
|
1263
|
-
case 15:
|
|
1264
|
-
return _context.abrupt('return', path);
|
|
1265
|
-
|
|
1266
|
-
case 16:
|
|
1267
|
-
case 'end':
|
|
1268
|
-
return _context.stop();
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
}, _callee, _this$2);
|
|
1272
|
-
}));
|
|
1273
|
-
|
|
1274
|
-
return function get_doc_group_path(_x, _x2) {
|
|
1275
|
-
return _ref.apply(this, arguments);
|
|
1276
|
-
};
|
|
1277
|
-
}();
|
|
1278
|
-
|
|
1279
|
-
var _this$1 = undefined;
|
|
1241
|
+
var _this = undefined;
|
|
1280
1242
|
|
|
1281
1243
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1282
1244
|
var _props$prevUrl = props.prevUrl,
|
|
@@ -1290,9 +1252,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1290
1252
|
_props$authorPrefix = props.authorPrefix,
|
|
1291
1253
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
1292
1254
|
showRelatedArticles = props.showRelatedArticles,
|
|
1293
|
-
canonicalTag = props.canonicalTag
|
|
1294
|
-
_props$useFullDocumen = props.useFullDocumentGroupPath,
|
|
1295
|
-
useFullDocumentGroupPath = _props$useFullDocumen === undefined ? false : _props$useFullDocumen;
|
|
1255
|
+
canonicalTag = props.canonicalTag;
|
|
1296
1256
|
|
|
1297
1257
|
|
|
1298
1258
|
var firstArticle = function firstArticle() {
|
|
@@ -1313,7 +1273,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1313
1273
|
});
|
|
1314
1274
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1315
1275
|
|
|
1316
|
-
if (!
|
|
1276
|
+
if (!main_40) {
|
|
1317
1277
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1318
1278
|
if (window.googletag && googletag.pubadsReady) {
|
|
1319
1279
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1331,7 +1291,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1331
1291
|
});
|
|
1332
1292
|
}
|
|
1333
1293
|
//Refresh leaderboard ad on mobile
|
|
1334
|
-
if (
|
|
1294
|
+
if (main_40) {
|
|
1335
1295
|
var leaderboardSlotId = '';
|
|
1336
1296
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1337
1297
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1394,13 +1354,13 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1394
1354
|
|
|
1395
1355
|
var loadmore = function () {
|
|
1396
1356
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
1397
|
-
var index, article,
|
|
1357
|
+
var index, article, startingIndex, endingIndex, targeting;
|
|
1398
1358
|
return regenerator.wrap(function _callee$(_context) {
|
|
1399
1359
|
while (1) {
|
|
1400
1360
|
switch (_context.prev = _context.next) {
|
|
1401
1361
|
case 0:
|
|
1402
1362
|
if (!(queueData && queueData.length < maxListLength)) {
|
|
1403
|
-
_context.next =
|
|
1363
|
+
_context.next = 27;
|
|
1404
1364
|
break;
|
|
1405
1365
|
}
|
|
1406
1366
|
|
|
@@ -1423,55 +1383,40 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1423
1383
|
|
|
1424
1384
|
case 12:
|
|
1425
1385
|
if (!(article && article._id)) {
|
|
1426
|
-
_context.next =
|
|
1427
|
-
break;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
if (!(useFullDocumentGroupPath && article.documentGroup)) {
|
|
1431
|
-
_context.next = 19;
|
|
1386
|
+
_context.next = 27;
|
|
1432
1387
|
break;
|
|
1433
1388
|
}
|
|
1434
1389
|
|
|
1435
|
-
_context.next = 16;
|
|
1436
|
-
return get_doc_group_path(article.documentGroup._id, props.client);
|
|
1437
|
-
|
|
1438
|
-
case 16:
|
|
1439
|
-
newDocPath = _context.sent;
|
|
1440
|
-
|
|
1441
|
-
if (newDocPath.indexOf('/') === 0) newDocPath = newDocPath.substring(1);
|
|
1442
|
-
article.documentGroup.path = newDocPath;
|
|
1443
|
-
|
|
1444
|
-
case 19:
|
|
1445
1390
|
//query next 4 related article without repeating previous 4 related articles
|
|
1446
1391
|
startingIndex = queueData.length + 1;
|
|
1447
1392
|
endingIndex = startingIndex + 2;
|
|
1448
|
-
_context.prev =
|
|
1449
|
-
_context.next =
|
|
1393
|
+
_context.prev = 15;
|
|
1394
|
+
_context.next = 18;
|
|
1450
1395
|
return getRelatedArticle(null, props.client, props.article, prevUrl, startingIndex + '..' + endingIndex);
|
|
1451
1396
|
|
|
1452
|
-
case
|
|
1397
|
+
case 18:
|
|
1453
1398
|
article.relatedArticle = _context.sent;
|
|
1454
|
-
_context.next =
|
|
1399
|
+
_context.next = 24;
|
|
1455
1400
|
break;
|
|
1456
1401
|
|
|
1457
|
-
case
|
|
1458
|
-
_context.prev =
|
|
1459
|
-
_context.t1 = _context['catch'](
|
|
1402
|
+
case 21:
|
|
1403
|
+
_context.prev = 21;
|
|
1404
|
+
_context.t1 = _context['catch'](15);
|
|
1460
1405
|
|
|
1461
1406
|
console.error(_context.t1);
|
|
1462
1407
|
|
|
1463
|
-
case
|
|
1408
|
+
case 24:
|
|
1464
1409
|
targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
|
|
1465
1410
|
|
|
1466
1411
|
article.Ads = Ads.getRightItems(targeting);
|
|
1467
1412
|
setQueueData([].concat(_toConsumableArray(queueData), [article]));
|
|
1468
1413
|
|
|
1469
|
-
case
|
|
1414
|
+
case 27:
|
|
1470
1415
|
case 'end':
|
|
1471
1416
|
return _context.stop();
|
|
1472
1417
|
}
|
|
1473
1418
|
}
|
|
1474
|
-
}, _callee, _this
|
|
1419
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1475
1420
|
}));
|
|
1476
1421
|
|
|
1477
1422
|
return function loadmore() {
|
|
@@ -1549,7 +1494,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1549
1494
|
);
|
|
1550
1495
|
};
|
|
1551
1496
|
|
|
1552
|
-
var _this = undefined;
|
|
1497
|
+
var _this$1 = undefined;
|
|
1553
1498
|
|
|
1554
1499
|
var View = function View(props) {
|
|
1555
1500
|
var router = useRouter();
|
|
@@ -1568,9 +1513,7 @@ var View = function View(props) {
|
|
|
1568
1513
|
_props$canonicalTag = props.canonicalTag,
|
|
1569
1514
|
canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag,
|
|
1570
1515
|
_props$infiniteScroll = props.infiniteScrollFlag,
|
|
1571
|
-
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll
|
|
1572
|
-
_props$useFullDocumen = props.useFullDocumentGroupPath,
|
|
1573
|
-
useFullDocumentGroupPath = _props$useFullDocumen === undefined ? false : _props$useFullDocumen;
|
|
1516
|
+
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1574
1517
|
var _props$article = props.article,
|
|
1575
1518
|
_props$article$passwo = _props$article.passwordLock,
|
|
1576
1519
|
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo;
|
|
@@ -1742,8 +1685,7 @@ var View = function View(props) {
|
|
|
1742
1685
|
checkSponsered: true,
|
|
1743
1686
|
Ads: props.WAds,
|
|
1744
1687
|
onVote: function onVote() {},
|
|
1745
|
-
sponsoredTaxonomies: []
|
|
1746
|
-
useFullDocumentGroupPath: useFullDocumentGroupPath
|
|
1688
|
+
sponsoredTaxonomies: []
|
|
1747
1689
|
}, props))
|
|
1748
1690
|
);
|
|
1749
1691
|
};
|
|
@@ -1752,9 +1694,8 @@ var View = function View(props) {
|
|
|
1752
1694
|
View.returnGetInitialProps = function () {
|
|
1753
1695
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(url, prevUrl, seriesVid, client, sao) {
|
|
1754
1696
|
var context = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1755
|
-
var useFullDocumentGroupPath = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
|
1756
1697
|
|
|
1757
|
-
var article, relatedArticleQuery, sliderData, statusCode, sliderArticles, _context$query$series, seriesArticle, sponsoredFlag
|
|
1698
|
+
var article, relatedArticleQuery, sliderData, statusCode, sliderArticles, _context$query$series, seriesArticle, sponsoredFlag;
|
|
1758
1699
|
|
|
1759
1700
|
return regenerator.wrap(function _callee$(_context) {
|
|
1760
1701
|
while (1) {
|
|
@@ -1781,7 +1722,7 @@ View.returnGetInitialProps = function () {
|
|
|
1781
1722
|
}
|
|
1782
1723
|
|
|
1783
1724
|
_context.next = 11;
|
|
1784
|
-
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published
|
|
1725
|
+
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && is_visible == true\n && passwordLock != true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }');
|
|
1785
1726
|
|
|
1786
1727
|
case 11:
|
|
1787
1728
|
sliderArticles = _context.sent;
|
|
@@ -1858,21 +1799,6 @@ View.returnGetInitialProps = function () {
|
|
|
1858
1799
|
article.relatedArticle = _context.sent;
|
|
1859
1800
|
|
|
1860
1801
|
case 27:
|
|
1861
|
-
if (!(useFullDocumentGroupPath && article.documentGroup)) {
|
|
1862
|
-
_context.next = 33;
|
|
1863
|
-
break;
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
_context.next = 30;
|
|
1867
|
-
return get_doc_group_path(article.documentGroup._id, client);
|
|
1868
|
-
|
|
1869
|
-
case 30:
|
|
1870
|
-
newDocPath = _context.sent;
|
|
1871
|
-
|
|
1872
|
-
if (newDocPath.indexOf('/') === 0) newDocPath = newDocPath.substring(1);
|
|
1873
|
-
article.documentGroup.path = newDocPath;
|
|
1874
|
-
|
|
1875
|
-
case 33:
|
|
1876
1802
|
return _context.abrupt('return', {
|
|
1877
1803
|
url: url,
|
|
1878
1804
|
sao: sao,
|
|
@@ -1884,12 +1810,12 @@ View.returnGetInitialProps = function () {
|
|
|
1884
1810
|
sponsoredFlag: sponsoredFlag
|
|
1885
1811
|
});
|
|
1886
1812
|
|
|
1887
|
-
case
|
|
1813
|
+
case 28:
|
|
1888
1814
|
case 'end':
|
|
1889
1815
|
return _context.stop();
|
|
1890
1816
|
}
|
|
1891
1817
|
}
|
|
1892
|
-
}, _callee, _this);
|
|
1818
|
+
}, _callee, _this$1);
|
|
1893
1819
|
}));
|
|
1894
1820
|
|
|
1895
1821
|
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
|
|