@mjhls/mjh-framework 1.0.921 → 1.0.923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -21
- package/dist/cjs/AD300x250x600.js +21 -21
- package/dist/cjs/AD728x90.js +24 -24
- package/dist/cjs/ADFloatingFooter.js +20 -20
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -20
- package/dist/cjs/{ADInfeed-51a39495.js → ADInfeed-a4d973da.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -20
- package/dist/cjs/ADSponsoredResources.js +20 -20
- package/dist/cjs/ADWebcast.js +20 -20
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-12db4509.js → ADlgInfeed-def2c25d.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -19
- package/dist/cjs/AdSlotsProvider.js +11 -11
- package/dist/cjs/AlgoliaSearch.js +18 -18
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +49 -48
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -29
- package/dist/cjs/ArticleSeriesListing.js +30 -30
- package/dist/cjs/Auth.js +346 -482
- package/dist/cjs/AuthWrapper.js +9 -586
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -22
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -30
- package/dist/cjs/ConferenceArticleCard.js +25 -25
- package/dist/cjs/ContentCardPaginated.js +37 -37
- package/dist/cjs/DeckContent.js +39 -39
- package/dist/cjs/DeckQueue.js +29 -29
- package/dist/cjs/DeckQueuePaginated.js +33 -33
- package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-bcaa7e3f.js} +12 -12
- package/dist/cjs/EventsDeck.js +43 -43
- package/dist/cjs/ExternalResources.js +46 -45
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -45
- package/dist/cjs/GridContentPaginated.js +46 -46
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -46
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +84 -83
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +38 -38
- package/dist/cjs/MasterDeckPaginated.js +41 -41
- package/dist/cjs/{MediaSeriesCard-d237146e.js → MediaSeriesCard-be3f9e36.js} +446 -646
- package/dist/cjs/MediaSeriesLanding.js +55 -54
- package/dist/cjs/MediaSeriesLandingPaginated.js +61 -60
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +39 -39
- package/dist/cjs/NavNative.js +39 -39
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-885dcfbd.js → Pagination-a2807e27.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +59 -59
- package/dist/cjs/PartnerDetailListingPaginated.js +59 -59
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PubSection.js +32 -32
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-be5f3503.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +54 -54
- package/dist/cjs/QueueDeckExpanded.js +35 -35
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +38 -38
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +25 -8
- package/dist/cjs/SeriesListingDeck.js +17 -17
- package/dist/cjs/{SeriesSlider-f9128638.js → SeriesSlider-88e59074.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-af6ddcc0.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +45 -44
- package/dist/cjs/TemplateNormal.js +45 -45
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +51 -50
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -35
- package/dist/cjs/VideoSeriesListing.js +30 -30
- package/dist/cjs/View.js +94 -92
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +21 -21
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +69 -133
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +45 -44
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-1359b868.js} +11 -11
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-0e4427c8.js → index-44481153.js} +21 -40
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/{index-e6ba0197.js → index-faf269e6.js} +157 -407
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-48e0f0d8.js} +1 -1
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +143 -143
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +26 -26
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +26 -26
- package/dist/esm/{ADInfeed-bba8b026.js → ADInfeed-7ba4f982.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -26
- package/dist/esm/ADSponsoredResources.js +26 -26
- package/dist/esm/ADWebcast.js +26 -26
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-a45afa1d.js → ADlgInfeed-8eb5060f.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlgoliaSearch.js +49 -49
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +55 -54
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +416 -552
- package/dist/esm/AuthWrapper.js +27 -605
- package/dist/esm/{AuthorComponent-defe68b6.js → AuthorComponent-37ebc2bd.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +49 -49
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +72 -72
- package/dist/esm/DeckContent.js +84 -84
- package/dist/esm/DeckQueue.js +67 -67
- package/dist/esm/DeckQueuePaginated.js +63 -63
- package/dist/esm/{Dfp-4b99f79d.js → Dfp-23281963.js} +20 -20
- package/dist/esm/EventsDeck.js +103 -103
- package/dist/esm/ExternalResources.js +72 -71
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +142 -142
- package/dist/esm/GridContentPaginated.js +133 -133
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +113 -113
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-522a2cd0.js +1375 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +92 -91
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +71 -71
- package/dist/esm/MasterDeckPaginated.js +63 -63
- package/dist/esm/{MediaSeriesCard-131f2659.js → MediaSeriesCard-b6034225.js} +707 -907
- package/dist/esm/MediaSeriesLanding.js +80 -79
- package/dist/esm/MediaSeriesLandingPaginated.js +84 -83
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +121 -121
- package/dist/esm/NavNative.js +110 -110
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-59436882.js → Pagination-185dfca0.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +93 -93
- package/dist/esm/PartnerDetailListingPaginated.js +91 -91
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-03500094.js → PublicationFeature-d79db241.js} +23 -23
- package/dist/esm/PublicationLanding.js +101 -101
- package/dist/esm/QueueDeckExpanded.js +273 -273
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -253
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +25 -8
- package/dist/esm/SeriesListingDeck.js +30 -30
- package/dist/esm/{SeriesSlider-98b7a870.js → SeriesSlider-0a8cfca0.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-1d8a9f59.js → SocialSearchComponent-32ee0f63.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +49 -48
- package/dist/esm/TemplateNormal.js +65 -65
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +29 -29
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +63 -62
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -40
- package/dist/esm/VideoSeriesListing.js +70 -70
- package/dist/esm/View.js +251 -249
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-893ab020.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-f089461c.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-169d6272.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-50a6b9a3.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-b4dfe691.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-e903ff31.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-99e66838.js → define-property-6d26cb48.js} +6 -6
- package/dist/esm/{defineProperty-8fa0bc8d.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-dc6a71fd.js → extends-a4230287.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +69 -133
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +45 -44
- package/dist/esm/{getTargeting-0cdf8983.js → getTargeting-ba1ffe43.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-1819118a.js} +24 -43
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-01c66814.js → index-93fc4be2.js} +551 -802
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-d1125763.js} +1 -1
- package/dist/esm/index.js +138 -138
- package/dist/esm/{inherits-8a801a18.js → inherits-91a2c374.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-425c8ab0.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-43ca42fe.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-ca2c8b8d.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-7b1c0e23.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-83d9eb10.js → typeof-f1b7564e.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{urlForFile-413f5ddb.js → urlForFile-d2a27665.js} +1 -1
- package/dist/esm/{ustream-api-41166338.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +114 -114
- package/dist/cjs/ImageSlider-a7fb6218.js +0 -182
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/esm/ImageSlider-eab2fe41.js +0 -176
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-c21932b3.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
package/dist/esm/View.js
CHANGED
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
2
|
-
import { _ as _extends, a as _Object$assign } from './extends-dc6a71fd.js';
|
|
3
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
4
|
-
import React__default, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
5
|
-
import Head from 'next/head';
|
|
6
|
-
import { useRouter } from 'next/router';
|
|
7
|
-
import { _ as _JSON$stringify } from './stringify-c21932b3.js';
|
|
8
|
-
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
9
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
11
|
-
import { m as main_43 } from './main-1894c974.js';
|
|
12
|
-
import 'react-bootstrap/Dropdown';
|
|
13
|
-
import Form from 'react-bootstrap/Form';
|
|
14
|
-
import FormControl from 'react-bootstrap/FormControl';
|
|
15
|
-
import Button from 'react-bootstrap/Button';
|
|
16
|
-
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
|
-
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-01c66814.js';
|
|
19
|
-
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-98b7a870.js';
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-0cdf8983.js';
|
|
22
|
-
import getKeywords from './getKeywords.js';
|
|
23
|
-
import urlFor from './urlFor.js';
|
|
24
|
-
import { u as urlForFile } from './urlForFile-413f5ddb.js';
|
|
25
|
-
import { _ as _typeof } from './typeof-83d9eb10.js';
|
|
26
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-1bd8a0a8.js';
|
|
27
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
28
|
-
import './index-755f2cc2.js';
|
|
29
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
30
|
-
import Schema from './Schema.js';
|
|
31
|
-
import FileSaver from 'file-saver';
|
|
32
|
-
import { _ as _Object$keys } from './keys-425c8ab0.js';
|
|
33
|
-
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
34
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
35
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
36
|
-
import getQuery from './getQuery.js';
|
|
37
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
38
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
39
|
-
import './core.get-iterator-method-
|
|
40
|
-
import './web.dom.iterable-fdf034f5.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
41
3
|
import './_library-528f1934.js';
|
|
42
|
-
import './_iter-detect-
|
|
43
|
-
import './
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends, a as _Object$assign } from './extends-a4230287.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-91a2c374.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import { _ as _typeof } from './typeof-f1b7564e.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
15
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
44
16
|
import 'prop-types';
|
|
45
|
-
import '
|
|
17
|
+
import 'react-bootstrap/Row';
|
|
18
|
+
import 'react-bootstrap/Col';
|
|
19
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
20
|
+
import { useRouter } from 'next/router';
|
|
21
|
+
import './isSymbol-1981418f.js';
|
|
22
|
+
import './debounce-9207d8ee.js';
|
|
23
|
+
import './toNumber-2f7a84cd.js';
|
|
24
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
46
25
|
import 'react-dom';
|
|
47
|
-
import '
|
|
48
|
-
import '
|
|
49
|
-
import './index-
|
|
50
|
-
import './
|
|
51
|
-
import './
|
|
26
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
27
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
28
|
+
import './index-51a80699.js';
|
|
29
|
+
import urlFor from './urlFor.js';
|
|
30
|
+
import './index-6c12bdd5.js';
|
|
31
|
+
import { m as main_40 } from './main-43ca42fe.js';
|
|
32
|
+
import './entities-7cc3bf45.js';
|
|
33
|
+
import { _ as _JSON$stringify } from './stringify-70b72959.js';
|
|
34
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
52
35
|
import './Segment.js';
|
|
53
|
-
import './
|
|
36
|
+
import './Beam.js';
|
|
37
|
+
import DFPAdSlot from './AdSlot.js';
|
|
38
|
+
import Button from 'react-bootstrap/Button';
|
|
39
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
40
|
+
import './index-c7e2ac95.js';
|
|
41
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
54
42
|
import './GroupDeck.js';
|
|
55
|
-
import '
|
|
56
|
-
import './
|
|
57
|
-
import './
|
|
43
|
+
import 'react-bootstrap';
|
|
44
|
+
import './iconBase-602d52fe.js';
|
|
45
|
+
import './index.esm-55f22b35.js';
|
|
46
|
+
import { r as renderAuthor, g as getSerializers } from './index-93fc4be2.js';
|
|
47
|
+
import './util-7700fc59.js';
|
|
48
|
+
import { u as urlForFile } from './urlForFile-d2a27665.js';
|
|
49
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
50
|
+
import Head from 'next/head';
|
|
51
|
+
import 'react-share';
|
|
52
|
+
import SocialShare from './SocialShare.js';
|
|
53
|
+
import './_object-to-array-c54dd835.js';
|
|
58
54
|
import 'react-bootstrap/Pagination';
|
|
59
|
-
import './entities-932b50cf.js';
|
|
60
|
-
import 'react-bootstrap/Row';
|
|
61
|
-
import 'react-bootstrap/Col';
|
|
62
|
-
import './inherits-8a801a18.js';
|
|
63
|
-
import './_object-sap-169d6272.js';
|
|
64
|
-
import './define-property-99e66838.js';
|
|
65
|
-
import './index.esm-eb1e8e80.js';
|
|
66
|
-
import './iconBase-ccc56b97.js';
|
|
67
55
|
import 'react-bootstrap/Figure';
|
|
68
56
|
import 'react-bootstrap/OverlayTrigger';
|
|
69
57
|
import 'react-bootstrap/Tooltip';
|
|
70
58
|
import 'react-bootstrap/Popover';
|
|
71
|
-
import '
|
|
72
|
-
import '
|
|
73
|
-
import '
|
|
59
|
+
import 'react-script-tag';
|
|
60
|
+
import Form from 'react-bootstrap/Form';
|
|
61
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
62
|
+
import { _ as _Object$keys } from './keys-69989821.js';
|
|
63
|
+
import 'react-bootstrap/Dropdown';
|
|
64
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-d1125763.js';
|
|
65
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
74
66
|
import './index-db3bb315.js';
|
|
67
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
68
|
+
import getQuery from './getQuery.js';
|
|
69
|
+
import { S as SeriesSlider } from './SeriesSlider-0a8cfca0.js';
|
|
70
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-ba1ffe43.js';
|
|
71
|
+
import getKeywords from './getKeywords.js';
|
|
72
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
73
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
74
|
+
import Schema from './Schema.js';
|
|
75
|
+
import FileSaver from 'file-saver';
|
|
75
76
|
|
|
76
77
|
var getArticleSummary = function getArticleSummary(article) {
|
|
77
78
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -149,17 +150,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
149
150
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
return
|
|
153
|
+
return React.createElement(
|
|
153
154
|
'a',
|
|
154
155
|
{
|
|
155
156
|
href: url,
|
|
156
157
|
className: 'doc-group',
|
|
157
158
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
158
|
-
thumbnailUrl &&
|
|
159
|
-
!thumbnailUrl &&
|
|
160
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
159
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
160
|
+
!thumbnailUrl && React.createElement('p', {
|
|
161
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
161
162
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
162
|
-
|
|
163
|
+
main_40 && !thumbnailUrl && React.createElement(
|
|
163
164
|
'style',
|
|
164
165
|
{ jsx: 'true' },
|
|
165
166
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -299,38 +300,38 @@ var ISI = function ISI(props) {
|
|
|
299
300
|
}, 300);
|
|
300
301
|
}
|
|
301
302
|
};
|
|
302
|
-
return
|
|
303
|
-
|
|
303
|
+
return React.createElement(
|
|
304
|
+
React.Fragment,
|
|
304
305
|
null,
|
|
305
|
-
|
|
306
|
+
React.createElement(
|
|
306
307
|
'div',
|
|
307
308
|
{ id: 'isi', ref: isi },
|
|
308
|
-
|
|
309
|
+
React.createElement(
|
|
309
310
|
'div',
|
|
310
311
|
{ id: 'isiContent' },
|
|
311
|
-
|
|
312
|
+
React.createElement(
|
|
312
313
|
'div',
|
|
313
314
|
{ onClick: function onClick() {
|
|
314
315
|
return setActive(function (prev) {
|
|
315
316
|
return !prev;
|
|
316
317
|
});
|
|
317
318
|
}, id: 'isiToggle' },
|
|
318
|
-
active ?
|
|
319
|
+
active ? React.createElement(
|
|
319
320
|
'p',
|
|
320
321
|
null,
|
|
321
322
|
'Close ',
|
|
322
|
-
|
|
323
|
-
) :
|
|
323
|
+
React.createElement(FaMinus, null)
|
|
324
|
+
) : React.createElement(
|
|
324
325
|
'p',
|
|
325
326
|
null,
|
|
326
327
|
'See More ',
|
|
327
|
-
|
|
328
|
+
React.createElement(FaPlus, null)
|
|
328
329
|
)
|
|
329
330
|
),
|
|
330
331
|
children
|
|
331
332
|
)
|
|
332
333
|
),
|
|
333
|
-
|
|
334
|
+
React.createElement(
|
|
334
335
|
'style',
|
|
335
336
|
{ jsx: true },
|
|
336
337
|
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 12rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s ease , margin-top .3s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
@@ -338,7 +339,7 @@ var ISI = function ISI(props) {
|
|
|
338
339
|
);
|
|
339
340
|
};
|
|
340
341
|
|
|
341
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
342
|
+
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";
|
|
342
343
|
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" };
|
|
343
344
|
styleInject(css);
|
|
344
345
|
|
|
@@ -352,34 +353,34 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
352
353
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
353
354
|
return null;
|
|
354
355
|
}
|
|
355
|
-
return
|
|
356
|
+
return React.createElement(
|
|
356
357
|
'div',
|
|
357
358
|
{ className: styles.mediaContainer },
|
|
358
359
|
articles.map(function (article, index) {
|
|
359
360
|
if (article && article.url && article.url.current) {
|
|
360
|
-
return
|
|
361
|
+
return React.createElement(
|
|
361
362
|
'div',
|
|
362
363
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
363
|
-
|
|
364
|
+
React.createElement(
|
|
364
365
|
'a',
|
|
365
366
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
366
|
-
article.thumbnail ?
|
|
367
|
+
article.thumbnail ? React.createElement('img', {
|
|
367
368
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
368
369
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
369
370
|
alt: article.title
|
|
370
|
-
}) :
|
|
371
|
-
|
|
371
|
+
}) : React.createElement(
|
|
372
|
+
React.Fragment,
|
|
372
373
|
null,
|
|
373
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
374
|
+
fallbackImage && showRelatedArticleFallbackImage && React.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
374
375
|
)
|
|
375
376
|
),
|
|
376
|
-
|
|
377
|
+
React.createElement(
|
|
377
378
|
'div',
|
|
378
379
|
{ className: styles.mediaBody },
|
|
379
|
-
|
|
380
|
+
React.createElement(
|
|
380
381
|
'a',
|
|
381
382
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
382
|
-
|
|
383
|
+
React.createElement(
|
|
383
384
|
'div',
|
|
384
385
|
{ className: styles.cardTitle },
|
|
385
386
|
article.title
|
|
@@ -542,9 +543,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
542
543
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
543
544
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
544
545
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
545
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
546
|
-
props.active
|
|
547
|
-
|
|
546
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
547
|
+
active = props.active,
|
|
548
|
+
containerHeight = props.containerHeight,
|
|
548
549
|
_props$refreshFlag = props.refreshFlag,
|
|
549
550
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
550
551
|
disqusConfig = props.disqusConfig,
|
|
@@ -620,9 +621,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
620
621
|
setArticleBody = _useState10[1];
|
|
621
622
|
|
|
622
623
|
var _useState11 = useState(true),
|
|
623
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
624
|
-
_useState12[0]
|
|
625
|
-
|
|
624
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
625
|
+
previewAd = _useState12[0],
|
|
626
|
+
setPreviewAd = _useState12[1];
|
|
626
627
|
|
|
627
628
|
useEffect(function () {
|
|
628
629
|
var path = window && window.location && window.location.search;
|
|
@@ -643,7 +644,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
643
644
|
};
|
|
644
645
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
645
646
|
if (biography) {
|
|
646
|
-
return
|
|
647
|
+
return React.createElement(BlockContent, _extends({
|
|
647
648
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
648
649
|
blocks: [biography]
|
|
649
650
|
}, client.config()));
|
|
@@ -653,9 +654,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
653
654
|
var url = article.url.current;
|
|
654
655
|
|
|
655
656
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
656
|
-
return
|
|
657
|
+
return React.createElement(ISIContent, null);
|
|
657
658
|
} else if (nationalPage === url && ISIContent) {
|
|
658
|
-
return
|
|
659
|
+
return React.createElement(ISIContent, { national: true });
|
|
659
660
|
}
|
|
660
661
|
return null;
|
|
661
662
|
};
|
|
@@ -748,20 +749,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
748
749
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
749
750
|
}
|
|
750
751
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
751
|
-
return
|
|
752
|
+
return React.createElement(
|
|
752
753
|
'div',
|
|
753
754
|
null,
|
|
754
755
|
relatedLinks.map(function (relatedLink, index) {
|
|
755
756
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
756
|
-
return
|
|
757
|
+
return React.createElement(
|
|
757
758
|
'span',
|
|
758
759
|
{ key: index, className: 'related-link' },
|
|
759
|
-
|
|
760
|
+
React.createElement(
|
|
760
761
|
'a',
|
|
761
762
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
762
763
|
relatedLink.label
|
|
763
764
|
),
|
|
764
|
-
|
|
765
|
+
React.createElement(
|
|
765
766
|
'style',
|
|
766
767
|
{ jsx: 'true' },
|
|
767
768
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -777,23 +778,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
777
778
|
};
|
|
778
779
|
|
|
779
780
|
var RelatedContent = function RelatedContent() {
|
|
780
|
-
return
|
|
781
|
+
return React.createElement(
|
|
781
782
|
'section',
|
|
782
783
|
{ id: 'related-content-section', className: 'my-1' },
|
|
783
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
784
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
784
785
|
'p',
|
|
785
786
|
{ className: 'mb-0' },
|
|
786
|
-
|
|
787
|
+
React.createElement(
|
|
787
788
|
'b',
|
|
788
789
|
null,
|
|
789
790
|
'Related Content:'
|
|
790
791
|
)
|
|
791
792
|
),
|
|
792
|
-
|
|
793
|
-
|
|
793
|
+
React.createElement(RelevantTopics, null),
|
|
794
|
+
React.createElement(
|
|
794
795
|
'div',
|
|
795
796
|
{ className: 'pt-2' },
|
|
796
|
-
|
|
797
|
+
React.createElement(RelatedArticle, {
|
|
797
798
|
articles: article.relatedArticle,
|
|
798
799
|
client: client,
|
|
799
800
|
fallbackImage: props.Settings.logo,
|
|
@@ -804,28 +805,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
804
805
|
};
|
|
805
806
|
|
|
806
807
|
var form = function form() {
|
|
807
|
-
return
|
|
808
|
-
|
|
808
|
+
return React.createElement(
|
|
809
|
+
React.Fragment,
|
|
809
810
|
null,
|
|
810
|
-
|
|
811
|
+
React.createElement(
|
|
811
812
|
Head,
|
|
812
813
|
null,
|
|
813
|
-
|
|
814
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
814
815
|
),
|
|
815
|
-
|
|
816
|
+
React.createElement(
|
|
816
817
|
'div',
|
|
817
818
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
818
|
-
|
|
819
|
+
React.createElement(
|
|
819
820
|
Form,
|
|
820
821
|
{
|
|
821
822
|
inline: true,
|
|
822
823
|
onSubmit: function onSubmit(e) {
|
|
823
824
|
e.preventDefault();
|
|
824
825
|
} },
|
|
825
|
-
|
|
826
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
826
827
|
return setPasswordKey(e.target.value);
|
|
827
828
|
}, placeholder: 'Password' }),
|
|
828
|
-
|
|
829
|
+
React.createElement(
|
|
829
830
|
Button,
|
|
830
831
|
{
|
|
831
832
|
variant: 'primary',
|
|
@@ -875,31 +876,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
875
876
|
setContextualADFlag(true);
|
|
876
877
|
}
|
|
877
878
|
};
|
|
878
|
-
return
|
|
879
|
-
|
|
879
|
+
return React.createElement(
|
|
880
|
+
React.Fragment,
|
|
880
881
|
null,
|
|
881
|
-
|
|
882
|
+
React.createElement(BlockContent, _extends({
|
|
882
883
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
883
884
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
884
885
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
885
886
|
}, client.config())),
|
|
886
|
-
|
|
887
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
888
|
-
|
|
887
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
888
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
889
|
+
React.createElement(
|
|
889
890
|
'div',
|
|
890
891
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
891
|
-
|
|
892
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
892
893
|
refreshFlag: refreshFlag
|
|
893
894
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
894
895
|
}))
|
|
895
896
|
),
|
|
896
|
-
|
|
897
|
-
|
|
897
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
898
|
+
React.createElement(
|
|
898
899
|
'div',
|
|
899
900
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
900
|
-
|
|
901
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
901
902
|
),
|
|
902
|
-
|
|
903
|
+
React.createElement(BlockContent, _extends({
|
|
903
904
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
904
905
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
905
906
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -924,26 +925,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
924
925
|
if (seriesInfo.hasVideo) {
|
|
925
926
|
_selectedIndex = seriesInfo.videoIndex;
|
|
926
927
|
}
|
|
927
|
-
return
|
|
928
|
-
|
|
928
|
+
return React.createElement(
|
|
929
|
+
React.Fragment,
|
|
929
930
|
null,
|
|
930
|
-
|
|
931
|
+
React.createElement(BlockContent, _extends({
|
|
931
932
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
932
933
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
933
934
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
934
935
|
}, client.config())),
|
|
935
|
-
contextualADFlag &&
|
|
936
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
937
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
936
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
937
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
938
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
938
939
|
'div',
|
|
939
940
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
940
|
-
|
|
941
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
941
942
|
refreshFlag: refreshFlag
|
|
942
943
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
943
944
|
}))
|
|
944
945
|
),
|
|
945
|
-
contextualADFlag &&
|
|
946
|
-
|
|
946
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
947
|
+
React.createElement(BlockContent, _extends({
|
|
947
948
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
948
949
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
949
950
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -973,22 +974,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
973
974
|
}
|
|
974
975
|
};
|
|
975
976
|
|
|
976
|
-
return
|
|
977
|
-
|
|
977
|
+
return React.createElement(
|
|
978
|
+
React.Fragment,
|
|
978
979
|
null,
|
|
979
|
-
|
|
980
|
+
React.createElement(BlockContent, _extends({
|
|
980
981
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
981
982
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
982
983
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
983
984
|
}, client.config())),
|
|
984
|
-
|
|
985
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
986
|
-
|
|
985
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
986
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
987
|
+
React.createElement(
|
|
987
988
|
'div',
|
|
988
989
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
989
|
-
|
|
990
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
990
991
|
),
|
|
991
|
-
|
|
992
|
+
React.createElement(BlockContent, _extends({
|
|
992
993
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
993
994
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
994
995
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1000,16 +1001,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1000
1001
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
1001
1002
|
}
|
|
1002
1003
|
|
|
1003
|
-
return
|
|
1004
|
+
return React.createElement(
|
|
1004
1005
|
'div',
|
|
1005
1006
|
null,
|
|
1006
|
-
|
|
1007
|
+
React.createElement(BlockContent, _extends({
|
|
1007
1008
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1008
1009
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1009
1010
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1010
1011
|
}, client.config())),
|
|
1011
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
1012
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1012
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1013
|
+
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
1013
1014
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1014
1015
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1015
1016
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1067,8 +1068,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1067
1068
|
shareSubject = shareOptions.shareSubject,
|
|
1068
1069
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1069
1070
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1070
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1071
|
-
shareOptions.shareSiteTitle;
|
|
1071
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
1072
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
1072
1073
|
|
|
1073
1074
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1074
1075
|
var shareTitle = article.title;
|
|
@@ -1108,10 +1109,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1108
1109
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1109
1110
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1110
1111
|
var isFormAssembly = checkIfFormAssembly(article);
|
|
1111
|
-
return
|
|
1112
|
-
|
|
1112
|
+
return React.createElement(
|
|
1113
|
+
React.Fragment,
|
|
1113
1114
|
null,
|
|
1114
|
-
|
|
1115
|
+
React.createElement(
|
|
1115
1116
|
VisibilitySensor,
|
|
1116
1117
|
{
|
|
1117
1118
|
partialVisibility: true,
|
|
@@ -1127,44 +1128,44 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1127
1128
|
});
|
|
1128
1129
|
}
|
|
1129
1130
|
} },
|
|
1130
|
-
|
|
1131
|
+
React.createElement(
|
|
1131
1132
|
'div',
|
|
1132
1133
|
{ id: 'article__block', ref: ref },
|
|
1133
|
-
|
|
1134
|
+
React.createElement(
|
|
1134
1135
|
'div',
|
|
1135
1136
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1136
1137
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1137
|
-
!isVideoSeries &&
|
|
1138
|
+
!isVideoSeries && React.createElement(
|
|
1138
1139
|
'div',
|
|
1139
1140
|
null,
|
|
1140
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1141
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React.createElement(
|
|
1141
1142
|
'p',
|
|
1142
1143
|
{ style: { fontSize: '14px' } },
|
|
1143
1144
|
article.documentGroup.name,
|
|
1144
1145
|
' - Episode ',
|
|
1145
1146
|
episodeNumber
|
|
1146
1147
|
),
|
|
1147
|
-
|
|
1148
|
+
React.createElement(
|
|
1148
1149
|
'h1',
|
|
1149
1150
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1150
1151
|
title
|
|
1151
1152
|
)
|
|
1152
1153
|
),
|
|
1153
|
-
|
|
1154
|
+
React.createElement(
|
|
1154
1155
|
'div',
|
|
1155
1156
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1156
|
-
|
|
1157
|
+
React.createElement(
|
|
1157
1158
|
'style',
|
|
1158
1159
|
{ jsx: 'true' },
|
|
1159
1160
|
'\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n '
|
|
1160
1161
|
),
|
|
1161
|
-
|
|
1162
|
+
React.createElement(
|
|
1162
1163
|
'div',
|
|
1163
1164
|
{ className: 'left-wrap' },
|
|
1164
|
-
!isVideoSeries && !isFormAssembly && showPublished &&
|
|
1165
|
+
!isVideoSeries && !isFormAssembly && showPublished && React.createElement(
|
|
1165
1166
|
'div',
|
|
1166
1167
|
null,
|
|
1167
|
-
|
|
1168
|
+
React.createElement(
|
|
1168
1169
|
'time',
|
|
1169
1170
|
{
|
|
1170
1171
|
className: 'meta-date',
|
|
@@ -1174,20 +1175,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1174
1175
|
)
|
|
1175
1176
|
/* Show Published date */
|
|
1176
1177
|
,
|
|
1177
|
-
|
|
1178
|
+
React.createElement(
|
|
1178
1179
|
'div',
|
|
1179
1180
|
{ className: 'mb-3' },
|
|
1180
1181
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1181
|
-
return
|
|
1182
|
+
return React.createElement(
|
|
1182
1183
|
'span',
|
|
1183
1184
|
{ key: index },
|
|
1184
1185
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }), showAuthorDetails)
|
|
1185
1186
|
);
|
|
1186
1187
|
}),
|
|
1187
|
-
|
|
1188
|
+
React.createElement(
|
|
1188
1189
|
'div',
|
|
1189
1190
|
null,
|
|
1190
|
-
source &&
|
|
1191
|
+
source && React.createElement(
|
|
1191
1192
|
'p',
|
|
1192
1193
|
{
|
|
1193
1194
|
style: {
|
|
@@ -1202,13 +1203,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1202
1203
|
source
|
|
1203
1204
|
)
|
|
1204
1205
|
),
|
|
1205
|
-
issue &&
|
|
1206
|
+
issue && React.createElement(
|
|
1206
1207
|
'div',
|
|
1207
1208
|
{ className: 'volume-issue' },
|
|
1208
|
-
issue.publication && issue.publication.name &&
|
|
1209
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
1209
1210
|
'span',
|
|
1210
1211
|
{ className: 'mb-0' },
|
|
1211
|
-
|
|
1212
|
+
React.createElement(
|
|
1212
1213
|
'b',
|
|
1213
1214
|
null,
|
|
1214
1215
|
issue.publication.name
|
|
@@ -1216,34 +1217,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1216
1217
|
',',
|
|
1217
1218
|
' '
|
|
1218
1219
|
),
|
|
1219
|
-
issue.name &&
|
|
1220
|
+
issue.name && React.createElement(
|
|
1220
1221
|
'span',
|
|
1221
1222
|
{ className: 'mb-0' },
|
|
1222
1223
|
issue.name,
|
|
1223
1224
|
', '
|
|
1224
1225
|
),
|
|
1225
|
-
issue.volume &&
|
|
1226
|
+
issue.volume && React.createElement(
|
|
1226
1227
|
'span',
|
|
1227
1228
|
null,
|
|
1228
1229
|
'Volume ' + issue.volume,
|
|
1229
1230
|
','
|
|
1230
1231
|
),
|
|
1231
|
-
issue.issueNumber &&
|
|
1232
|
+
issue.issueNumber && React.createElement(
|
|
1232
1233
|
'span',
|
|
1233
1234
|
null,
|
|
1234
1235
|
' Issue ' + issue.issueNumber
|
|
1235
1236
|
)
|
|
1236
1237
|
),
|
|
1237
|
-
pageNumber &&
|
|
1238
|
+
pageNumber && React.createElement(
|
|
1238
1239
|
'div',
|
|
1239
1240
|
{ className: 'article-pageNumber' },
|
|
1240
1241
|
'Pages: ' + pageNumber
|
|
1241
1242
|
)
|
|
1242
1243
|
),
|
|
1243
|
-
!isVideoSeries && showSocialShare &&
|
|
1244
|
+
!isVideoSeries && showSocialShare && React.createElement(
|
|
1244
1245
|
'p',
|
|
1245
1246
|
null,
|
|
1246
|
-
|
|
1247
|
+
React.createElement(SocialShare, {
|
|
1247
1248
|
shareUrl: shareUrl,
|
|
1248
1249
|
shareTitle: shareTitle,
|
|
1249
1250
|
shareVia: shareVia,
|
|
@@ -1259,27 +1260,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1259
1260
|
})
|
|
1260
1261
|
)
|
|
1261
1262
|
),
|
|
1262
|
-
|
|
1263
|
+
React.createElement(
|
|
1263
1264
|
'div',
|
|
1264
1265
|
null,
|
|
1265
|
-
|
|
1266
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1266
1267
|
)
|
|
1267
1268
|
),
|
|
1268
|
-
!isVideoSeries && summary && display_summary &&
|
|
1269
|
+
!isVideoSeries && summary && display_summary && React.createElement(
|
|
1269
1270
|
'p',
|
|
1270
1271
|
null,
|
|
1271
|
-
|
|
1272
|
+
React.createElement(
|
|
1272
1273
|
'em',
|
|
1273
1274
|
null,
|
|
1274
1275
|
summary
|
|
1275
1276
|
)
|
|
1276
1277
|
),
|
|
1277
|
-
|
|
1278
|
+
React.createElement(
|
|
1278
1279
|
'div',
|
|
1279
1280
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1280
|
-
|
|
1281
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1281
1282
|
if (index === 0) {
|
|
1282
|
-
return
|
|
1283
|
+
return React.createElement(
|
|
1283
1284
|
'div',
|
|
1284
1285
|
{
|
|
1285
1286
|
key: index,
|
|
@@ -1296,24 +1297,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1296
1297
|
}
|
|
1297
1298
|
})
|
|
1298
1299
|
),
|
|
1299
|
-
|
|
1300
|
+
React.createElement(
|
|
1300
1301
|
'div',
|
|
1301
1302
|
{ className: 'block-content mt-3' },
|
|
1302
1303
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1303
|
-
|
|
1304
|
-
|
|
1304
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
1305
|
+
React.createElement(
|
|
1305
1306
|
'noscript',
|
|
1306
1307
|
null,
|
|
1307
|
-
|
|
1308
|
+
React.createElement(
|
|
1308
1309
|
'div',
|
|
1309
1310
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1310
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1311
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
1311
1312
|
'a',
|
|
1312
1313
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1313
1314
|
'Previous ',
|
|
1314
1315
|
props.article.seriesDetail.type
|
|
1315
1316
|
),
|
|
1316
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1317
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
1317
1318
|
'a',
|
|
1318
1319
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1319
1320
|
'Next ',
|
|
@@ -1321,37 +1322,37 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1321
1322
|
)
|
|
1322
1323
|
)
|
|
1323
1324
|
),
|
|
1324
|
-
|
|
1325
|
+
React.createElement(
|
|
1325
1326
|
'div',
|
|
1326
1327
|
{ className: 'downloads-container' },
|
|
1327
|
-
issue && downloadCitation &&
|
|
1328
|
+
issue && downloadCitation && React.createElement(
|
|
1328
1329
|
Button,
|
|
1329
1330
|
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1330
1331
|
return downloadRIS();
|
|
1331
1332
|
} },
|
|
1332
1333
|
'Download RIS'
|
|
1333
1334
|
),
|
|
1334
|
-
issue && issue.pdf &&
|
|
1335
|
+
issue && issue.pdf && React.createElement(
|
|
1335
1336
|
'a',
|
|
1336
1337
|
{ rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
1337
|
-
|
|
1338
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1338
1339
|
'Download Issue : ',
|
|
1339
1340
|
issue.name
|
|
1340
1341
|
)
|
|
1341
1342
|
)
|
|
1342
1343
|
),
|
|
1343
|
-
|
|
1344
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1344
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1345
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React.createElement(
|
|
1345
1346
|
'div',
|
|
1346
1347
|
null,
|
|
1347
1348
|
false ,
|
|
1348
|
-
|
|
1349
|
+
React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1349
1350
|
),
|
|
1350
|
-
showRelatedArticles && !showIsi &&
|
|
1351
|
-
disqusConfig && showDisqus &&
|
|
1351
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null),
|
|
1352
|
+
disqusConfig && showDisqus && React.createElement(
|
|
1352
1353
|
'div',
|
|
1353
1354
|
{ id: 'disqusContainer' },
|
|
1354
|
-
|
|
1355
|
+
React.createElement(DiscussionEmbed, {
|
|
1355
1356
|
shortname: disqusConfig.shortname,
|
|
1356
1357
|
config: {
|
|
1357
1358
|
url: disqusConfig.url,
|
|
@@ -1364,30 +1365,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1364
1365
|
renderIsiContent(props.article)
|
|
1365
1366
|
)
|
|
1366
1367
|
),
|
|
1367
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1368
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1368
1369
|
ISI,
|
|
1369
1370
|
null,
|
|
1370
|
-
|
|
1371
|
+
React.createElement(BlockContent, {
|
|
1371
1372
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1372
1373
|
blocks: isi
|
|
1373
1374
|
})
|
|
1374
1375
|
),
|
|
1375
|
-
|
|
1376
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1376
1377
|
if (index > 0) {
|
|
1377
|
-
return
|
|
1378
|
+
return React.createElement(
|
|
1378
1379
|
'div',
|
|
1379
1380
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1380
1381
|
ad.component
|
|
1381
1382
|
);
|
|
1382
1383
|
}
|
|
1383
1384
|
}),
|
|
1384
|
-
|
|
1385
|
+
React.createElement(
|
|
1385
1386
|
'noscript',
|
|
1386
1387
|
null,
|
|
1387
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1388
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1388
1389
|
'div',
|
|
1389
1390
|
{ style: { textAlign: 'center' } },
|
|
1390
|
-
|
|
1391
|
+
React.createElement(
|
|
1391
1392
|
'a',
|
|
1392
1393
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1393
1394
|
'Related Article ',
|
|
@@ -1395,8 +1396,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1395
1396
|
)
|
|
1396
1397
|
)
|
|
1397
1398
|
),
|
|
1398
|
-
props.infiniteScroll &&
|
|
1399
|
-
|
|
1399
|
+
props.infiniteScroll && React.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1400
|
+
React.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1400
1401
|
);
|
|
1401
1402
|
};
|
|
1402
1403
|
|
|
@@ -1411,7 +1412,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1411
1412
|
}
|
|
1412
1413
|
});
|
|
1413
1414
|
|
|
1414
|
-
var _this
|
|
1415
|
+
var _this = undefined;
|
|
1415
1416
|
|
|
1416
1417
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1417
1418
|
var router = useRouter();
|
|
@@ -1420,9 +1421,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1420
1421
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1421
1422
|
Ads = props.Ads,
|
|
1422
1423
|
_props$maxListLength = props.maxListLength,
|
|
1423
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1424
|
-
props.sponsoredTaxonomies
|
|
1425
|
-
|
|
1424
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1425
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1426
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1426
1427
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1427
1428
|
_props$authorPrefix = props.authorPrefix,
|
|
1428
1429
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1471,7 +1472,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1471
1472
|
return item.url.current === path;
|
|
1472
1473
|
});
|
|
1473
1474
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1474
|
-
if (!
|
|
1475
|
+
if (!main_40) {
|
|
1475
1476
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1476
1477
|
if (window.googletag && googletag.pubadsReady) {
|
|
1477
1478
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1488,7 +1489,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1488
1489
|
});
|
|
1489
1490
|
}
|
|
1490
1491
|
//Refresh leaderboard ad on mobile
|
|
1491
|
-
if (
|
|
1492
|
+
if (main_40) {
|
|
1492
1493
|
var leaderboardSlotId = '';
|
|
1493
1494
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1494
1495
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1592,7 +1593,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1592
1593
|
return _context.stop();
|
|
1593
1594
|
}
|
|
1594
1595
|
}
|
|
1595
|
-
}, _callee, _this
|
|
1596
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1596
1597
|
}));
|
|
1597
1598
|
|
|
1598
1599
|
return function loadmore() {
|
|
@@ -1670,14 +1671,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1670
1671
|
refreshAD(path);
|
|
1671
1672
|
};
|
|
1672
1673
|
|
|
1673
|
-
return
|
|
1674
|
+
return React.createElement(
|
|
1674
1675
|
InfiniteScroll,
|
|
1675
1676
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1676
1677
|
queueData.map(function (article, index) {
|
|
1677
|
-
return
|
|
1678
|
-
|
|
1678
|
+
return React.createElement(
|
|
1679
|
+
React.Fragment,
|
|
1679
1680
|
{ key: index },
|
|
1680
|
-
|
|
1681
|
+
React.createElement(Article, _extends({}, props, {
|
|
1681
1682
|
containerHeight: containerHeight,
|
|
1682
1683
|
onChangeArticle: onChangeArticle,
|
|
1683
1684
|
authorPrfix: authorPrefix,
|
|
@@ -1693,7 +1694,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1693
1694
|
);
|
|
1694
1695
|
};
|
|
1695
1696
|
|
|
1696
|
-
var _this = undefined;
|
|
1697
|
+
var _this$1 = undefined;
|
|
1697
1698
|
|
|
1698
1699
|
var View = function View(props) {
|
|
1699
1700
|
var router = useRouter();
|
|
@@ -1703,9 +1704,9 @@ var View = function View(props) {
|
|
|
1703
1704
|
hideComments = _props$article.hideComments,
|
|
1704
1705
|
content_placement = _props$article.content_placement,
|
|
1705
1706
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1706
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1707
|
-
props.sponsoredTaxonomies
|
|
1708
|
-
|
|
1707
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1708
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1709
|
+
Ads = props.Ads,
|
|
1709
1710
|
setCustomDimensions = props.setCustomDimensions,
|
|
1710
1711
|
statusCode = props.statusCode,
|
|
1711
1712
|
prevUrl = props.prevUrl,
|
|
@@ -1718,9 +1719,9 @@ var View = function View(props) {
|
|
|
1718
1719
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1719
1720
|
var _props$article2 = props.article,
|
|
1720
1721
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1721
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1722
|
-
_props$article2.description
|
|
1723
|
-
|
|
1722
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1723
|
+
description = _props$article2.description,
|
|
1724
|
+
title = _props$article2.title,
|
|
1724
1725
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1725
1726
|
|
|
1726
1727
|
var _useState = useState(0),
|
|
@@ -1756,7 +1757,7 @@ var View = function View(props) {
|
|
|
1756
1757
|
return false;
|
|
1757
1758
|
}
|
|
1758
1759
|
for (var i = 0; i < article.body.length; i++) {
|
|
1759
|
-
if (article.body[i]._type === 'articleSeries' || article.body[i]._type === 'slideshows') {
|
|
1760
|
+
if (article.body[i]._type === 'articleSeries' || article.body[i]._type === 'slideshows' || article.body[i]._type === 'quiz') {
|
|
1760
1761
|
return true;
|
|
1761
1762
|
}
|
|
1762
1763
|
var row = article.body[i];
|
|
@@ -1776,6 +1777,7 @@ var View = function View(props) {
|
|
|
1776
1777
|
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !disableInfiniteScroll && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && (!article.documentGroup || !article.documentGroup.isSeries) && !showDisqus;
|
|
1777
1778
|
|
|
1778
1779
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1780
|
+
description = null;
|
|
1779
1781
|
title = null;
|
|
1780
1782
|
}
|
|
1781
1783
|
|
|
@@ -1819,63 +1821,63 @@ var View = function View(props) {
|
|
|
1819
1821
|
|
|
1820
1822
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1821
1823
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1822
|
-
return
|
|
1823
|
-
|
|
1824
|
+
return React.createElement(
|
|
1825
|
+
React.Fragment,
|
|
1824
1826
|
null,
|
|
1825
|
-
|
|
1827
|
+
React.createElement(
|
|
1826
1828
|
Head,
|
|
1827
1829
|
null,
|
|
1828
|
-
|
|
1830
|
+
React.createElement(
|
|
1829
1831
|
'title',
|
|
1830
1832
|
{ key: 'title' },
|
|
1831
1833
|
metaTitleSanity ? '' + metaTitleSanity + (currentPage > 0 ? ' | Page ' + currentPage : '') : seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article && article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + article.title + (currentPage > 0 ? ' | Page ' + currentPage : '')
|
|
1832
1834
|
),
|
|
1833
|
-
metaDescriptionSanity ?
|
|
1834
|
-
|
|
1835
|
-
passwordLock &&
|
|
1836
|
-
|
|
1835
|
+
metaDescriptionSanity ? React.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1836
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1837
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1838
|
+
React.createElement('meta', {
|
|
1837
1839
|
property: 'og:url',
|
|
1838
1840
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1839
1841
|
key: 'og:url'
|
|
1840
1842
|
}),
|
|
1841
|
-
|
|
1843
|
+
React.createElement('meta', {
|
|
1842
1844
|
property: 'og:title',
|
|
1843
1845
|
content: metaTitleSanity ? '' + metaTitleSanity + (currentPage > 0 ? ' | Page ' + currentPage : '') : seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1844
1846
|
key: 'og:title'
|
|
1845
1847
|
}),
|
|
1846
|
-
|
|
1848
|
+
React.createElement('meta', {
|
|
1847
1849
|
property: 'og:image',
|
|
1848
1850
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1849
1851
|
key: 'og:image'
|
|
1850
1852
|
}),
|
|
1851
|
-
|
|
1852
|
-
metaDescriptionSanity ?
|
|
1853
|
-
|
|
1854
|
-
|
|
1853
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1854
|
+
metaDescriptionSanity ? React.createElement('meta', { property: 'og:description', key: 'og:description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { property: 'og:description', key: 'og:description', content: meta_description }),
|
|
1855
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1856
|
+
React.createElement('meta', {
|
|
1855
1857
|
name: 'twitter:title',
|
|
1856
1858
|
content: metaTitleSanity ? '' + metaTitleSanity + (currentPage > 0 ? ' | Page ' + currentPage : '') : seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1857
1859
|
key: 'twitter:title'
|
|
1858
1860
|
}),
|
|
1859
|
-
|
|
1861
|
+
React.createElement('meta', {
|
|
1860
1862
|
name: 'twitter:image',
|
|
1861
1863
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1862
1864
|
key: 'twitter:image'
|
|
1863
1865
|
}),
|
|
1864
|
-
|
|
1865
|
-
metaDescriptionSanity ?
|
|
1866
|
-
canonicalTag &&
|
|
1866
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1867
|
+
metaDescriptionSanity ? React.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: meta_description }),
|
|
1868
|
+
canonicalTag && React.createElement('link', {
|
|
1867
1869
|
rel: 'canonical',
|
|
1868
1870
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1869
1871
|
key: 'canonical'
|
|
1870
1872
|
}),
|
|
1871
|
-
|
|
1873
|
+
React.createElement(
|
|
1872
1874
|
'noscript',
|
|
1873
1875
|
null,
|
|
1874
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1875
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1876
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1877
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1876
1878
|
)
|
|
1877
1879
|
),
|
|
1878
|
-
!needInfiniteScroll ?
|
|
1880
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1879
1881
|
infiniteScroll: true,
|
|
1880
1882
|
showRelatedArticles: showRelatedArticles,
|
|
1881
1883
|
canonicalTag: canonicalTag,
|
|
@@ -2012,7 +2014,7 @@ View.returnGetInitialProps = function () {
|
|
|
2012
2014
|
return _context.stop();
|
|
2013
2015
|
}
|
|
2014
2016
|
}
|
|
2015
|
-
}, _callee, _this);
|
|
2017
|
+
}, _callee, _this$1);
|
|
2016
2018
|
}));
|
|
2017
2019
|
|
|
2018
2020
|
return function (_x, _x2, _x3, _x4, _x5) {
|