@mjhls/mjh-framework 1.0.763 → 1.0.764-beta.0
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 +3 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -28
- package/dist/cjs/AD300x250x600.js +28 -28
- package/dist/cjs/AD728x90.js +31 -31
- package/dist/cjs/ADFloatingFooter.js +30 -30
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +30 -30
- package/dist/cjs/{ADInfeed-32dc37f4.js → ADInfeed-89761278.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -30
- package/dist/cjs/ADSponsoredResources.js +30 -30
- package/dist/cjs/ADWebcast.js +30 -30
- package/dist/cjs/ADWelcome.js +31 -31
- package/dist/cjs/{ADlgInfeed-a8dc2b08.js → ADlgInfeed-853ddc3d.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +33 -33
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +56 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -39
- package/dist/cjs/ArticleSeriesListing.js +60 -60
- package/dist/cjs/Auth.js +335 -821
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +84 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -35
- package/dist/cjs/Column3.js +57 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +95 -98
- package/dist/cjs/DeckQueue.js +88 -90
- package/dist/cjs/{Dfp-80146e98.js → Dfp-b807d8fa.js} +32 -32
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +78 -78
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +179 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +131 -136
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -70
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +41 -41
- package/dist/cjs/LeftNav.js +37 -38
- package/dist/cjs/MasterDeck.js +71 -71
- package/dist/cjs/MediaSeriesLanding.js +121 -0
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +447 -122
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +107 -107
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +40 -40
- package/dist/cjs/PubToc.js +16 -17
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +293 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SeriesListingDeck.js +171 -0
- package/dist/cjs/SeriesSlider-e761f83b.js +307 -0
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +53 -53
- package/dist/cjs/TemplateNormal.js +74 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +72 -75
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +47 -47
- package/dist/cjs/VideoSeriesListing.js +77 -77
- package/dist/cjs/View.js +359 -273
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-eb287781.js → debounce-529c8d06.js} +3 -66
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/eq-bb2843ed.js +79 -0
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/{get-68c52cb1.js → get-adbb11e3.js} +3 -75
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +13 -424
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +44 -43
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-33d0daca.js → index-a1a9f1f7.js} +902 -925
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +162 -161
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/toNumber-36d1e7e5.js +69 -0
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +26 -25
- package/dist/esm/AD300x250x600.js +26 -25
- package/dist/esm/AD728x90.js +29 -28
- package/dist/esm/ADFloatingFooter.js +28 -27
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -27
- package/dist/esm/{ADInfeed-6315ccfc.js → ADInfeed-1e0d374f.js} +9 -9
- package/dist/esm/ADSkyscraper.js +28 -27
- package/dist/esm/ADSponsoredResources.js +28 -27
- package/dist/esm/ADWebcast.js +28 -27
- package/dist/esm/ADWelcome.js +29 -28
- package/dist/esm/{ADlgInfeed-4e05a45c.js → ADlgInfeed-c089deab.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +25 -24
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -52
- package/dist/esm/ArticleSeriesLandingPage.js +37 -36
- package/dist/esm/ArticleSeriesListing.js +55 -54
- package/dist/esm/Auth.js +322 -804
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +28 -27
- package/dist/esm/Column3.js +51 -49
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +78 -77
- package/dist/esm/DeckQueue.js +67 -65
- package/dist/esm/{Dfp-8bfbd310.js → Dfp-ebc4b22f.js} +22 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +72 -71
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +142 -140
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +39 -38
- package/dist/esm/LeftNav.js +34 -33
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +116 -0
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +425 -92
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -103
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -37
- package/dist/esm/PubToc.js +13 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +274 -273
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +166 -0
- package/dist/esm/SeriesSlider-4bfc8f53.js +302 -0
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +33 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +48 -47
- package/dist/esm/TemplateNormal.js +69 -67
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +62 -61
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +41 -40
- package/dist/esm/VideoSeriesListing.js +71 -70
- package/dist/esm/View.js +343 -253
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-1a993acf.js → debounce-9207d8ee.js} +2 -65
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/eq-b470f743.js +76 -0
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/{get-5ee14cda.js → get-1e515072.js} +2 -74
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +13 -424
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +44 -43
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-47730283.js → index-929b89ed.js} +844 -860
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +131 -127
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{isSymbol-807e927e.js → isSymbol-1981418f.js} +1 -1
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/toNumber-2f7a84cd.js +67 -0
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
package/dist/esm/View.js
CHANGED
|
@@ -1,71 +1,73 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
|
|
2
|
-
import { _ as _extends, a as _Object$assign } from './extends-31d65aba.js';
|
|
3
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
|
-
import React, { useState, useRef, useEffect } from 'react';
|
|
5
|
-
import Head from 'next/head';
|
|
6
|
-
import { useRouter } from 'next/router';
|
|
7
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
8
|
-
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
9
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
-
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
11
|
-
import { m as main_40 } from './main-1450d277.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 { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-47730283.js';
|
|
17
|
-
import SocialShare from './SocialShare.js';
|
|
18
|
-
import DFPAdSlot from './AdSlot.js';
|
|
19
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
20
|
-
import getKeywords from './getKeywords.js';
|
|
21
|
-
import urlFor from './urlFor.js';
|
|
22
|
-
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
23
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
24
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
25
|
-
import './index-752d1dae.js';
|
|
26
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
27
|
-
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
28
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
29
|
-
import { l as lib_3 } from './index-888f9253.js';
|
|
30
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
31
|
-
import getQuery from './getQuery.js';
|
|
32
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
33
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
34
|
-
import './
|
|
35
|
-
import './
|
|
36
|
-
import './web.dom.iterable-035980f3.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
37
4
|
import './_library-528f1934.js';
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
41
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-fb9b6e8f.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React__default, { useState, useRef, useEffect } from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-a9e53f80.js';
|
|
42
18
|
import 'prop-types';
|
|
43
|
-
import './index-3f5c03b2.js';
|
|
44
|
-
import 'react-bootstrap';
|
|
45
|
-
import './index-c7e2ac95.js';
|
|
46
|
-
import './util-3ab476bf.js';
|
|
47
|
-
import './Beam.js';
|
|
48
|
-
import './Segment.js';
|
|
49
|
-
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
50
|
-
import './GroupDeck.js';
|
|
51
|
-
import './smoothscroll-fa4e3f8c.js';
|
|
52
|
-
import './_is-array-674f71ec.js';
|
|
53
|
-
import './_object-to-array-8f409e54.js';
|
|
54
|
-
import 'react-bootstrap/Pagination';
|
|
55
|
-
import './entities-932b50cf.js';
|
|
56
19
|
import 'react-bootstrap/Row';
|
|
57
20
|
import 'react-bootstrap/Col';
|
|
58
|
-
import './
|
|
59
|
-
import '
|
|
60
|
-
import './
|
|
61
|
-
import './
|
|
21
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
22
|
+
import { useRouter } from 'next/router';
|
|
23
|
+
import './isSymbol-1981418f.js';
|
|
24
|
+
import './debounce-9207d8ee.js';
|
|
25
|
+
import './toNumber-2f7a84cd.js';
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import './index-73819142.js';
|
|
29
|
+
import './index-5f9f807a.js';
|
|
30
|
+
import { m as main_36 } from './main-e4a934b2.js';
|
|
31
|
+
import './entities-7cc3bf45.js';
|
|
32
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
33
|
+
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
34
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
|
|
35
|
+
import './_set-species-3f8319f5.js';
|
|
36
|
+
import './Segment.js';
|
|
37
|
+
import './Beam.js';
|
|
38
|
+
import DFPAdSlot from './AdSlot.js';
|
|
39
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
40
|
+
import './index-c7e2ac95.js';
|
|
41
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
42
|
+
import './GroupDeck.js';
|
|
43
|
+
import 'react-bootstrap';
|
|
62
44
|
import './iconBase-602d52fe.js';
|
|
63
|
-
import '
|
|
45
|
+
import './index.esm-29e48d38.js';
|
|
46
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-929b89ed.js';
|
|
47
|
+
import './util-7700fc59.js';
|
|
48
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
49
|
+
import Head from 'next/head';
|
|
64
50
|
import 'react-share';
|
|
65
|
-
import './
|
|
66
|
-
import './
|
|
67
|
-
import 'react-
|
|
68
|
-
import '
|
|
51
|
+
import SocialShare from './SocialShare.js';
|
|
52
|
+
import './_object-to-array-7e804fce.js';
|
|
53
|
+
import 'react-bootstrap/Pagination';
|
|
54
|
+
import Button from 'react-bootstrap/Button';
|
|
55
|
+
import 'react-bootstrap/Figure';
|
|
56
|
+
import Form from 'react-bootstrap/Form';
|
|
57
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
58
|
+
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
59
|
+
import 'react-bootstrap/Dropdown';
|
|
60
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
|
|
61
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
62
|
+
import 'nookies';
|
|
63
|
+
import getQuery from './getQuery.js';
|
|
64
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
65
|
+
import { S as SeriesSlider } from './SeriesSlider-4bfc8f53.js';
|
|
66
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-7211f12c.js';
|
|
67
|
+
import getKeywords from './getKeywords.js';
|
|
68
|
+
import urlFor from './urlFor.js';
|
|
69
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
69
71
|
|
|
70
72
|
var getArticleSummary = function getArticleSummary(article) {
|
|
71
73
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -122,7 +124,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
122
124
|
var article = _ref.article,
|
|
123
125
|
client = _ref.client;
|
|
124
126
|
|
|
125
|
-
if (!article.documentGroup || article.documentGroup.isShow === false) {
|
|
127
|
+
if (!article.documentGroup || article.documentGroup.isShow === false || article.documentGroup.isSeries) {
|
|
126
128
|
return null;
|
|
127
129
|
}
|
|
128
130
|
|
|
@@ -134,17 +136,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
134
136
|
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
return
|
|
139
|
+
return React__default.createElement(
|
|
138
140
|
'a',
|
|
139
141
|
{
|
|
140
142
|
href: url,
|
|
141
143
|
className: 'doc-group',
|
|
142
144
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
143
|
-
thumbnailUrl &&
|
|
144
|
-
!thumbnailUrl &&
|
|
145
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
145
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
146
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
147
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
|
|
146
148
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
147
|
-
|
|
149
|
+
main_36 && !thumbnailUrl && React__default.createElement(
|
|
148
150
|
'style',
|
|
149
151
|
{ jsx: 'true' },
|
|
150
152
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -284,38 +286,38 @@ var ISI = function ISI(props) {
|
|
|
284
286
|
}, 300);
|
|
285
287
|
}
|
|
286
288
|
};
|
|
287
|
-
return
|
|
288
|
-
|
|
289
|
+
return React__default.createElement(
|
|
290
|
+
React__default.Fragment,
|
|
289
291
|
null,
|
|
290
|
-
|
|
292
|
+
React__default.createElement(
|
|
291
293
|
'div',
|
|
292
294
|
{ id: 'isi', ref: isi },
|
|
293
|
-
|
|
295
|
+
React__default.createElement(
|
|
294
296
|
'div',
|
|
295
297
|
{ id: 'isiContent' },
|
|
296
|
-
|
|
298
|
+
React__default.createElement(
|
|
297
299
|
'div',
|
|
298
300
|
{ onClick: function onClick() {
|
|
299
301
|
return setActive(function (prev) {
|
|
300
302
|
return !prev;
|
|
301
303
|
});
|
|
302
304
|
}, id: 'isiToggle' },
|
|
303
|
-
active ?
|
|
305
|
+
active ? React__default.createElement(
|
|
304
306
|
'p',
|
|
305
307
|
null,
|
|
306
308
|
'Close ',
|
|
307
|
-
|
|
308
|
-
) :
|
|
309
|
+
React__default.createElement(FaMinus, null)
|
|
310
|
+
) : React__default.createElement(
|
|
309
311
|
'p',
|
|
310
312
|
null,
|
|
311
313
|
'See More ',
|
|
312
|
-
|
|
314
|
+
React__default.createElement(FaPlus, null)
|
|
313
315
|
)
|
|
314
316
|
),
|
|
315
317
|
children
|
|
316
318
|
)
|
|
317
319
|
),
|
|
318
|
-
|
|
320
|
+
React__default.createElement(
|
|
319
321
|
'style',
|
|
320
322
|
{ jsx: true },
|
|
321
323
|
'\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 '
|
|
@@ -337,33 +339,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
337
339
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
338
340
|
return null;
|
|
339
341
|
}
|
|
340
|
-
return
|
|
342
|
+
return React__default.createElement(
|
|
341
343
|
'div',
|
|
342
344
|
{ className: styles.mediaContainer },
|
|
343
345
|
articles.map(function (article, index) {
|
|
344
|
-
return
|
|
346
|
+
return React__default.createElement(
|
|
345
347
|
'div',
|
|
346
348
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
347
|
-
|
|
349
|
+
React__default.createElement(
|
|
348
350
|
'a',
|
|
349
351
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
350
|
-
article.thumbnail ?
|
|
352
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
351
353
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
352
354
|
src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
|
|
353
355
|
alt: article.title
|
|
354
|
-
}) :
|
|
355
|
-
|
|
356
|
+
}) : React__default.createElement(
|
|
357
|
+
React__default.Fragment,
|
|
356
358
|
null,
|
|
357
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
359
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
358
360
|
)
|
|
359
361
|
),
|
|
360
|
-
|
|
362
|
+
React__default.createElement(
|
|
361
363
|
'div',
|
|
362
364
|
{ className: styles.mediaBody },
|
|
363
|
-
|
|
365
|
+
React__default.createElement(
|
|
364
366
|
'a',
|
|
365
367
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
366
|
-
|
|
368
|
+
React__default.createElement(
|
|
367
369
|
'div',
|
|
368
370
|
{ className: styles.cardTitle },
|
|
369
371
|
article.title
|
|
@@ -531,9 +533,9 @@ var Article = function Article(props) {
|
|
|
531
533
|
setArticleBody = _useState10[1];
|
|
532
534
|
|
|
533
535
|
var _useState11 = useState(true),
|
|
534
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
535
|
-
_useState12[0]
|
|
536
|
-
|
|
536
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
537
|
+
previewAd = _useState12[0],
|
|
538
|
+
setPreviewAd = _useState12[1];
|
|
537
539
|
|
|
538
540
|
useEffect(function () {
|
|
539
541
|
var path = window && window.location && window.location.search;
|
|
@@ -554,7 +556,7 @@ var Article = function Article(props) {
|
|
|
554
556
|
};
|
|
555
557
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
556
558
|
if (biography) {
|
|
557
|
-
return
|
|
559
|
+
return React__default.createElement(BlockContent, _extends({
|
|
558
560
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
559
561
|
blocks: [biography]
|
|
560
562
|
}, client.config()));
|
|
@@ -564,9 +566,9 @@ var Article = function Article(props) {
|
|
|
564
566
|
var url = article.url.current;
|
|
565
567
|
|
|
566
568
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
567
|
-
return
|
|
569
|
+
return React__default.createElement(ISIContent, null);
|
|
568
570
|
} else if (nationalPage === url && ISIContent) {
|
|
569
|
-
return
|
|
571
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
570
572
|
}
|
|
571
573
|
return null;
|
|
572
574
|
};
|
|
@@ -597,19 +599,19 @@ var Article = function Article(props) {
|
|
|
597
599
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
598
600
|
}
|
|
599
601
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
600
|
-
return
|
|
602
|
+
return React__default.createElement(
|
|
601
603
|
'div',
|
|
602
604
|
null,
|
|
603
605
|
relatedLinks.map(function (relatedLink, index) {
|
|
604
|
-
return
|
|
606
|
+
return React__default.createElement(
|
|
605
607
|
'span',
|
|
606
608
|
{ key: index, className: 'related-link' },
|
|
607
|
-
|
|
609
|
+
React__default.createElement(
|
|
608
610
|
'a',
|
|
609
611
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
610
612
|
relatedLink.label
|
|
611
613
|
),
|
|
612
|
-
|
|
614
|
+
React__default.createElement(
|
|
613
615
|
'style',
|
|
614
616
|
{ jsx: 'true' },
|
|
615
617
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -624,23 +626,23 @@ var Article = function Article(props) {
|
|
|
624
626
|
};
|
|
625
627
|
|
|
626
628
|
var RelatedContent = function RelatedContent() {
|
|
627
|
-
return
|
|
629
|
+
return React__default.createElement(
|
|
628
630
|
'section',
|
|
629
631
|
{ id: 'related-content-section', className: 'my-1' },
|
|
630
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
632
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
631
633
|
'p',
|
|
632
634
|
{ className: 'mb-0' },
|
|
633
|
-
|
|
635
|
+
React__default.createElement(
|
|
634
636
|
'b',
|
|
635
637
|
null,
|
|
636
638
|
'Related Content:'
|
|
637
639
|
)
|
|
638
640
|
),
|
|
639
|
-
|
|
640
|
-
|
|
641
|
+
React__default.createElement(RelevantTopics, null),
|
|
642
|
+
React__default.createElement(
|
|
641
643
|
'div',
|
|
642
644
|
{ className: 'pt-2' },
|
|
643
|
-
|
|
645
|
+
React__default.createElement(RelatedArticle, {
|
|
644
646
|
articles: article.relatedArticle,
|
|
645
647
|
client: client,
|
|
646
648
|
fallbackImage: props.Settings.logo,
|
|
@@ -651,28 +653,28 @@ var Article = function Article(props) {
|
|
|
651
653
|
};
|
|
652
654
|
|
|
653
655
|
var form = function form() {
|
|
654
|
-
return
|
|
655
|
-
|
|
656
|
+
return React__default.createElement(
|
|
657
|
+
React__default.Fragment,
|
|
656
658
|
null,
|
|
657
|
-
|
|
659
|
+
React__default.createElement(
|
|
658
660
|
Head,
|
|
659
661
|
null,
|
|
660
|
-
|
|
662
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
661
663
|
),
|
|
662
|
-
|
|
664
|
+
React__default.createElement(
|
|
663
665
|
'div',
|
|
664
666
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
665
|
-
|
|
667
|
+
React__default.createElement(
|
|
666
668
|
Form,
|
|
667
669
|
{
|
|
668
670
|
inline: true,
|
|
669
671
|
onSubmit: function onSubmit(e) {
|
|
670
672
|
e.preventDefault();
|
|
671
673
|
} },
|
|
672
|
-
|
|
674
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
673
675
|
return setPasswordKey(e.target.value);
|
|
674
676
|
}, placeholder: 'Password' }),
|
|
675
|
-
|
|
677
|
+
React__default.createElement(
|
|
676
678
|
Button,
|
|
677
679
|
{
|
|
678
680
|
variant: 'primary',
|
|
@@ -694,9 +696,8 @@ var Article = function Article(props) {
|
|
|
694
696
|
var _payload = payload,
|
|
695
697
|
body = _payload.body;
|
|
696
698
|
|
|
697
|
-
|
|
698
699
|
var indexes = findIndex(body);
|
|
699
|
-
|
|
700
|
+
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
700
701
|
if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && payload.contextualVideoAD) {
|
|
701
702
|
payload = _extends({}, payload, {
|
|
702
703
|
contextualAD: _extends({}, payload.contextualAD, {
|
|
@@ -706,7 +707,10 @@ var Article = function Article(props) {
|
|
|
706
707
|
slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
|
|
707
708
|
})
|
|
708
709
|
});
|
|
709
|
-
var
|
|
710
|
+
var _selectedIndex = indexes[1] + 1;
|
|
711
|
+
if (seriesInfo.hasVideo) {
|
|
712
|
+
_selectedIndex = seriesInfo.videoIndex;
|
|
713
|
+
}
|
|
710
714
|
|
|
711
715
|
var checkIsVideoAdFound = function checkIsVideoAdFound(isFound) {
|
|
712
716
|
if (!isFound) {
|
|
@@ -719,32 +723,33 @@ var Article = function Article(props) {
|
|
|
719
723
|
setContextualADFlag(true);
|
|
720
724
|
}
|
|
721
725
|
};
|
|
722
|
-
return
|
|
723
|
-
|
|
726
|
+
return React__default.createElement(
|
|
727
|
+
React__default.Fragment,
|
|
724
728
|
null,
|
|
725
|
-
|
|
729
|
+
React__default.createElement(BlockContent, _extends({
|
|
726
730
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
727
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0,
|
|
731
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
728
732
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
729
733
|
}, client.config())),
|
|
730
|
-
|
|
731
|
-
|
|
734
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
735
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
736
|
+
React__default.createElement(
|
|
732
737
|
'div',
|
|
733
738
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
734
|
-
|
|
739
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
735
740
|
refreshFlag: refreshFlag
|
|
736
741
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
737
742
|
}))
|
|
738
743
|
),
|
|
739
|
-
|
|
740
|
-
|
|
744
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
745
|
+
React__default.createElement(
|
|
741
746
|
'div',
|
|
742
747
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
743
|
-
|
|
748
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
744
749
|
),
|
|
745
|
-
|
|
750
|
+
React__default.createElement(BlockContent, _extends({
|
|
746
751
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
747
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
752
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
748
753
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
749
754
|
}, client.config()))
|
|
750
755
|
);
|
|
@@ -763,29 +768,33 @@ var Article = function Article(props) {
|
|
|
763
768
|
}, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : { viewport: [0, 0], sizes: ['fluid', [300, 100]] }
|
|
764
769
|
})
|
|
765
770
|
});
|
|
766
|
-
var
|
|
771
|
+
var _selectedIndex2 = indexes[1] + 1;
|
|
772
|
+
if (seriesInfo.hasVideo) {
|
|
773
|
+
_selectedIndex2 = seriesInfo.videoIndex;
|
|
774
|
+
}
|
|
767
775
|
|
|
768
|
-
return
|
|
769
|
-
|
|
776
|
+
return React__default.createElement(
|
|
777
|
+
React__default.Fragment,
|
|
770
778
|
null,
|
|
771
|
-
|
|
779
|
+
React__default.createElement(BlockContent, _extends({
|
|
772
780
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
773
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0,
|
|
781
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
774
782
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
775
783
|
}, client.config())),
|
|
776
|
-
contextualADFlag &&
|
|
777
|
-
|
|
784
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
785
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
786
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
778
787
|
'div',
|
|
779
788
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
780
|
-
|
|
789
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
781
790
|
refreshFlag: refreshFlag
|
|
782
791
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
783
792
|
}))
|
|
784
793
|
),
|
|
785
|
-
contextualADFlag &&
|
|
786
|
-
|
|
794
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
795
|
+
React__default.createElement(BlockContent, _extends({
|
|
787
796
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
788
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
797
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
789
798
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
790
799
|
}, client.config()))
|
|
791
800
|
);
|
|
@@ -795,8 +804,10 @@ var Article = function Article(props) {
|
|
|
795
804
|
slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
|
|
796
805
|
})
|
|
797
806
|
});
|
|
798
|
-
var
|
|
799
|
-
|
|
807
|
+
var _selectedIndex3 = indexes[1] + 1;
|
|
808
|
+
if (seriesInfo.hasVideo) {
|
|
809
|
+
_selectedIndex3 = seriesInfo.videoIndex;
|
|
810
|
+
}
|
|
800
811
|
var _checkIsAdFound2 = function _checkIsAdFound2(isFound) {
|
|
801
812
|
if (!isFound) {
|
|
802
813
|
var parent = document.getElementById('contextual-video-ad-' + payload._id);
|
|
@@ -811,32 +822,43 @@ var Article = function Article(props) {
|
|
|
811
822
|
}
|
|
812
823
|
};
|
|
813
824
|
|
|
814
|
-
return
|
|
815
|
-
|
|
825
|
+
return React__default.createElement(
|
|
826
|
+
React__default.Fragment,
|
|
816
827
|
null,
|
|
817
|
-
|
|
828
|
+
React__default.createElement(BlockContent, _extends({
|
|
818
829
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
819
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0,
|
|
830
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))),
|
|
820
831
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
821
832
|
}, client.config())),
|
|
822
|
-
|
|
823
|
-
|
|
833
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
834
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
835
|
+
React__default.createElement(
|
|
824
836
|
'div',
|
|
825
837
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
826
|
-
|
|
838
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
827
839
|
),
|
|
828
|
-
|
|
840
|
+
React__default.createElement(BlockContent, _extends({
|
|
829
841
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
830
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(
|
|
842
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
831
843
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
832
844
|
}, client.config()))
|
|
833
845
|
);
|
|
834
846
|
} else {
|
|
835
|
-
return
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
847
|
+
return React__default.createElement(
|
|
848
|
+
'div',
|
|
849
|
+
null,
|
|
850
|
+
React__default.createElement(BlockContent, _extends({
|
|
851
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
852
|
+
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(selectedIndex))) : articleBody,
|
|
853
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
854
|
+
}, client.config())),
|
|
855
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
856
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
857
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
858
|
+
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
859
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
860
|
+
}, client.config()))
|
|
861
|
+
);
|
|
840
862
|
}
|
|
841
863
|
};
|
|
842
864
|
|
|
@@ -854,14 +876,30 @@ var Article = function Article(props) {
|
|
|
854
876
|
|
|
855
877
|
return false;
|
|
856
878
|
};
|
|
879
|
+
var checkIfMediaSeriesHasVideo = function checkIfMediaSeriesHasVideo(article) {
|
|
880
|
+
var seriesInfo = { hasVideo: false, videoIndex: 0 };
|
|
881
|
+
if (!article || !article.body) {
|
|
882
|
+
return false;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
for (var i = 0; i < article.body.length; i++) {
|
|
886
|
+
var block = article.body[i];
|
|
887
|
+
if (block._type == 'video' || block._type == 'youtube') {
|
|
888
|
+
seriesInfo.hasVideo = true;
|
|
889
|
+
seriesInfo.videoIndex = i + 1;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
return seriesInfo;
|
|
894
|
+
};
|
|
857
895
|
|
|
858
896
|
var detail = function detail() {
|
|
859
897
|
var shareVia = shareOptions.shareVia,
|
|
860
898
|
shareSubject = shareOptions.shareSubject,
|
|
861
899
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
862
900
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
863
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
864
|
-
shareOptions.shareSiteTitle;
|
|
901
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
902
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
865
903
|
|
|
866
904
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
867
905
|
var shareTitle = article.title;
|
|
@@ -884,13 +922,26 @@ var Article = function Article(props) {
|
|
|
884
922
|
return null;
|
|
885
923
|
};
|
|
886
924
|
}
|
|
925
|
+
var fetchCurrentEpisode = function fetchCurrentEpisode(sliderData, article) {
|
|
926
|
+
if (!sliderData) return null;
|
|
927
|
+
var episode = null;
|
|
928
|
+
sliderData.forEach(function (seriesArticle, index) {
|
|
929
|
+
console.warn(seriesArticle.title, article.title, 'TITLESL:KJSDF:LKSJDF');
|
|
930
|
+
if (seriesArticle.title === article.title) {
|
|
931
|
+
episode = index + 1;
|
|
932
|
+
}
|
|
933
|
+
});
|
|
934
|
+
return episode;
|
|
935
|
+
};
|
|
887
936
|
|
|
937
|
+
var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
|
|
888
938
|
var isVideoSeries = checkIfVideoSeries(article);
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
939
|
+
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
940
|
+
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
941
|
+
return React__default.createElement(
|
|
942
|
+
React__default.Fragment,
|
|
892
943
|
null,
|
|
893
|
-
|
|
944
|
+
React__default.createElement(
|
|
894
945
|
InscreenSensor,
|
|
895
946
|
{
|
|
896
947
|
offSetTop: 120,
|
|
@@ -903,50 +954,61 @@ var Article = function Article(props) {
|
|
|
903
954
|
setVisibleFlag(true);
|
|
904
955
|
}
|
|
905
956
|
} },
|
|
906
|
-
|
|
957
|
+
React__default.createElement(
|
|
907
958
|
'div',
|
|
908
959
|
{ id: 'article__block' },
|
|
909
|
-
|
|
960
|
+
React__default.createElement(
|
|
910
961
|
'div',
|
|
911
962
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
912
963
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
913
|
-
!isVideoSeries &&
|
|
914
|
-
'
|
|
915
|
-
|
|
916
|
-
|
|
964
|
+
!isVideoSeries && React__default.createElement(
|
|
965
|
+
'div',
|
|
966
|
+
null,
|
|
967
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
968
|
+
'p',
|
|
969
|
+
{ style: { fontSize: '14px' } },
|
|
970
|
+
article.documentGroup.name,
|
|
971
|
+
' - Episode ',
|
|
972
|
+
episodeNumber
|
|
973
|
+
),
|
|
974
|
+
React__default.createElement(
|
|
975
|
+
'h1',
|
|
976
|
+
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
977
|
+
title
|
|
978
|
+
)
|
|
917
979
|
),
|
|
918
|
-
|
|
980
|
+
React__default.createElement(
|
|
919
981
|
'div',
|
|
920
982
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
921
|
-
|
|
983
|
+
React__default.createElement(
|
|
922
984
|
'style',
|
|
923
985
|
{ jsx: 'true' },
|
|
924
986
|
'\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 '
|
|
925
987
|
),
|
|
926
|
-
|
|
988
|
+
React__default.createElement(
|
|
927
989
|
'div',
|
|
928
990
|
{ className: 'left-wrap' },
|
|
929
|
-
!isVideoSeries && showPublished &&
|
|
991
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
930
992
|
'div',
|
|
931
993
|
null,
|
|
932
994
|
moment(published).format('LL')
|
|
933
995
|
)
|
|
934
996
|
/* Show Published date */
|
|
935
997
|
,
|
|
936
|
-
|
|
998
|
+
React__default.createElement(
|
|
937
999
|
'div',
|
|
938
1000
|
{ className: 'mb-3' },
|
|
939
1001
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
940
|
-
return
|
|
1002
|
+
return React__default.createElement(
|
|
941
1003
|
'span',
|
|
942
1004
|
{ key: index },
|
|
943
1005
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
944
1006
|
);
|
|
945
1007
|
}),
|
|
946
|
-
|
|
1008
|
+
React__default.createElement(
|
|
947
1009
|
'div',
|
|
948
1010
|
null,
|
|
949
|
-
source &&
|
|
1011
|
+
source && React__default.createElement(
|
|
950
1012
|
'p',
|
|
951
1013
|
{
|
|
952
1014
|
style: {
|
|
@@ -961,13 +1023,13 @@ var Article = function Article(props) {
|
|
|
961
1023
|
source
|
|
962
1024
|
)
|
|
963
1025
|
),
|
|
964
|
-
issue &&
|
|
1026
|
+
issue && React__default.createElement(
|
|
965
1027
|
'div',
|
|
966
1028
|
{ className: 'volume-issue' },
|
|
967
|
-
issue.publication && issue.publication.name &&
|
|
1029
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
968
1030
|
'span',
|
|
969
1031
|
{ className: 'mb-0' },
|
|
970
|
-
|
|
1032
|
+
React__default.createElement(
|
|
971
1033
|
'b',
|
|
972
1034
|
null,
|
|
973
1035
|
issue.publication.name
|
|
@@ -975,34 +1037,34 @@ var Article = function Article(props) {
|
|
|
975
1037
|
',',
|
|
976
1038
|
' '
|
|
977
1039
|
),
|
|
978
|
-
issue.name &&
|
|
1040
|
+
issue.name && React__default.createElement(
|
|
979
1041
|
'span',
|
|
980
1042
|
{ className: 'mb-0' },
|
|
981
1043
|
issue.name,
|
|
982
1044
|
', '
|
|
983
1045
|
),
|
|
984
|
-
issue.volume &&
|
|
1046
|
+
issue.volume && React__default.createElement(
|
|
985
1047
|
'span',
|
|
986
1048
|
null,
|
|
987
1049
|
'Volume ' + issue.volume,
|
|
988
1050
|
','
|
|
989
1051
|
),
|
|
990
|
-
issue.issueNumber &&
|
|
1052
|
+
issue.issueNumber && React__default.createElement(
|
|
991
1053
|
'span',
|
|
992
1054
|
null,
|
|
993
1055
|
' Issue ' + issue.issueNumber
|
|
994
1056
|
)
|
|
995
1057
|
),
|
|
996
|
-
pageNumber &&
|
|
1058
|
+
pageNumber && React__default.createElement(
|
|
997
1059
|
'div',
|
|
998
1060
|
{ className: 'article-pageNumber' },
|
|
999
1061
|
'Pages: ' + pageNumber
|
|
1000
1062
|
)
|
|
1001
1063
|
),
|
|
1002
|
-
!isVideoSeries &&
|
|
1064
|
+
!isVideoSeries && React__default.createElement(
|
|
1003
1065
|
'p',
|
|
1004
1066
|
null,
|
|
1005
|
-
|
|
1067
|
+
React__default.createElement(SocialShare, {
|
|
1006
1068
|
shareUrl: shareUrl,
|
|
1007
1069
|
shareTitle: shareTitle,
|
|
1008
1070
|
shareVia: shareVia,
|
|
@@ -1018,27 +1080,37 @@ var Article = function Article(props) {
|
|
|
1018
1080
|
})
|
|
1019
1081
|
)
|
|
1020
1082
|
),
|
|
1021
|
-
|
|
1083
|
+
React__default.createElement(
|
|
1022
1084
|
'div',
|
|
1023
1085
|
null,
|
|
1024
|
-
|
|
1086
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1025
1087
|
)
|
|
1026
1088
|
),
|
|
1027
|
-
!isVideoSeries && summary && display_summary &&
|
|
1089
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1028
1090
|
'p',
|
|
1029
1091
|
null,
|
|
1030
|
-
|
|
1092
|
+
React__default.createElement(
|
|
1031
1093
|
'em',
|
|
1032
1094
|
null,
|
|
1033
1095
|
summary
|
|
1034
1096
|
)
|
|
1035
1097
|
),
|
|
1036
|
-
|
|
1098
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1099
|
+
'div',
|
|
1100
|
+
null,
|
|
1101
|
+
thumbnail && React__default.createElement(
|
|
1102
|
+
'div',
|
|
1103
|
+
{ style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
1104
|
+
React__default.createElement('img', { style: { maxWidth: '100%' }, src: urlFor(props.client, thumbnail) })
|
|
1105
|
+
),
|
|
1106
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1107
|
+
),
|
|
1108
|
+
React__default.createElement(
|
|
1037
1109
|
'div',
|
|
1038
1110
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1039
|
-
|
|
1111
|
+
main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1040
1112
|
if (index === 0) {
|
|
1041
|
-
return
|
|
1113
|
+
return React__default.createElement(
|
|
1042
1114
|
'div',
|
|
1043
1115
|
{
|
|
1044
1116
|
key: index,
|
|
@@ -1055,24 +1127,24 @@ var Article = function Article(props) {
|
|
|
1055
1127
|
}
|
|
1056
1128
|
})
|
|
1057
1129
|
),
|
|
1058
|
-
|
|
1130
|
+
React__default.createElement(
|
|
1059
1131
|
'div',
|
|
1060
1132
|
{ className: 'block-content mt-3' },
|
|
1061
1133
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1062
|
-
|
|
1063
|
-
|
|
1134
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1135
|
+
React__default.createElement(
|
|
1064
1136
|
'noscript',
|
|
1065
1137
|
null,
|
|
1066
|
-
|
|
1138
|
+
React__default.createElement(
|
|
1067
1139
|
'div',
|
|
1068
1140
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1069
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1141
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1070
1142
|
'a',
|
|
1071
1143
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1072
1144
|
'Previous ',
|
|
1073
1145
|
props.article.seriesDetail.type
|
|
1074
1146
|
),
|
|
1075
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1147
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1076
1148
|
'a',
|
|
1077
1149
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1078
1150
|
'Next ',
|
|
@@ -1080,20 +1152,20 @@ var Article = function Article(props) {
|
|
|
1080
1152
|
)
|
|
1081
1153
|
)
|
|
1082
1154
|
),
|
|
1083
|
-
issue && issue.url &&
|
|
1155
|
+
issue && issue.url && React__default.createElement(
|
|
1084
1156
|
'a',
|
|
1085
1157
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1086
|
-
|
|
1158
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1087
1159
|
'Download Issue : ',
|
|
1088
1160
|
issue.name
|
|
1089
1161
|
)
|
|
1090
1162
|
),
|
|
1091
|
-
|
|
1092
|
-
showRelatedArticles && !showIsi &&
|
|
1093
|
-
disqusConfig &&
|
|
1163
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1164
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1165
|
+
disqusConfig && React__default.createElement(
|
|
1094
1166
|
'div',
|
|
1095
1167
|
{ id: 'disqusContainer' },
|
|
1096
|
-
|
|
1168
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1097
1169
|
shortname: disqusConfig.shortname,
|
|
1098
1170
|
config: {
|
|
1099
1171
|
url: disqusConfig.url,
|
|
@@ -1105,31 +1177,31 @@ var Article = function Article(props) {
|
|
|
1105
1177
|
),
|
|
1106
1178
|
renderIsiContent(props.article)
|
|
1107
1179
|
),
|
|
1108
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1180
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1109
1181
|
ISI,
|
|
1110
1182
|
null,
|
|
1111
|
-
|
|
1183
|
+
React__default.createElement(BlockContent, {
|
|
1112
1184
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1113
1185
|
blocks: isi
|
|
1114
1186
|
})
|
|
1115
1187
|
)
|
|
1116
1188
|
),
|
|
1117
|
-
|
|
1189
|
+
main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1118
1190
|
if (index > 0) {
|
|
1119
|
-
return
|
|
1191
|
+
return React__default.createElement(
|
|
1120
1192
|
'div',
|
|
1121
1193
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1122
1194
|
ad.component
|
|
1123
1195
|
);
|
|
1124
1196
|
}
|
|
1125
1197
|
}),
|
|
1126
|
-
|
|
1198
|
+
React__default.createElement(
|
|
1127
1199
|
'noscript',
|
|
1128
1200
|
null,
|
|
1129
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1201
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1130
1202
|
'div',
|
|
1131
1203
|
{ style: { textAlign: 'center' } },
|
|
1132
|
-
|
|
1204
|
+
React__default.createElement(
|
|
1133
1205
|
'a',
|
|
1134
1206
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1135
1207
|
'Related Article ',
|
|
@@ -1137,7 +1209,7 @@ var Article = function Article(props) {
|
|
|
1137
1209
|
)
|
|
1138
1210
|
)
|
|
1139
1211
|
),
|
|
1140
|
-
props.infiniteScroll &&
|
|
1212
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1141
1213
|
);
|
|
1142
1214
|
};
|
|
1143
1215
|
|
|
@@ -1159,9 +1231,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1159
1231
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1160
1232
|
Ads = props.Ads,
|
|
1161
1233
|
_props$maxListLength = props.maxListLength,
|
|
1162
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1163
|
-
props.sponsoredTaxonomies
|
|
1164
|
-
|
|
1234
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1235
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1236
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1165
1237
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1166
1238
|
_props$authorPrefix = props.authorPrefix,
|
|
1167
1239
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1187,7 +1259,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1187
1259
|
});
|
|
1188
1260
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1189
1261
|
|
|
1190
|
-
if (!
|
|
1262
|
+
if (!main_36) {
|
|
1191
1263
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1192
1264
|
if (window.googletag && googletag.pubadsReady) {
|
|
1193
1265
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1205,7 +1277,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1205
1277
|
});
|
|
1206
1278
|
}
|
|
1207
1279
|
//Refresh leaderboard ad on mobile
|
|
1208
|
-
if (
|
|
1280
|
+
if (main_36) {
|
|
1209
1281
|
var leaderboardSlotId = '';
|
|
1210
1282
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1211
1283
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1389,11 +1461,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1389
1461
|
}
|
|
1390
1462
|
};
|
|
1391
1463
|
|
|
1392
|
-
return
|
|
1464
|
+
return React__default.createElement(
|
|
1393
1465
|
InfiniteScroll,
|
|
1394
1466
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1395
1467
|
queueData.map(function (article, index) {
|
|
1396
|
-
return
|
|
1468
|
+
return React__default.createElement(Article, _extends({
|
|
1397
1469
|
key: index
|
|
1398
1470
|
}, props, {
|
|
1399
1471
|
onChangeArticle: onChangeArticle,
|
|
@@ -1415,9 +1487,9 @@ var View = function View(props) {
|
|
|
1415
1487
|
var shareOptions = props.shareOptions,
|
|
1416
1488
|
article = props.article,
|
|
1417
1489
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1418
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1419
|
-
props.sponsoredTaxonomies
|
|
1420
|
-
|
|
1490
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1491
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1492
|
+
Ads = props.Ads,
|
|
1421
1493
|
setCustomDimensions = props.setCustomDimensions,
|
|
1422
1494
|
statusCode = props.statusCode,
|
|
1423
1495
|
prevUrl = props.prevUrl,
|
|
@@ -1430,9 +1502,9 @@ var View = function View(props) {
|
|
|
1430
1502
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1431
1503
|
var _props$article = props.article,
|
|
1432
1504
|
_props$article$passwo = _props$article.passwordLock,
|
|
1433
|
-
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo
|
|
1434
|
-
_props$article.description
|
|
1435
|
-
|
|
1505
|
+
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo,
|
|
1506
|
+
description = _props$article.description,
|
|
1507
|
+
title = _props$article.title,
|
|
1436
1508
|
seriesShareOptions = _props$article.seriesShareOptions;
|
|
1437
1509
|
|
|
1438
1510
|
var _useState = useState(0),
|
|
@@ -1486,9 +1558,10 @@ var View = function View(props) {
|
|
|
1486
1558
|
|
|
1487
1559
|
var isVideoSeries = checkVideoSeries(props.article);
|
|
1488
1560
|
var isArticleSeries = checkArticleSeries(props.article);
|
|
1489
|
-
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi;
|
|
1561
|
+
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && (!article.documentGroup || !article.documentGroup.isSeries);
|
|
1490
1562
|
|
|
1491
1563
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1564
|
+
description = null;
|
|
1492
1565
|
title = null;
|
|
1493
1566
|
}
|
|
1494
1567
|
|
|
@@ -1525,74 +1598,74 @@ var View = function View(props) {
|
|
|
1525
1598
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1526
1599
|
}
|
|
1527
1600
|
|
|
1528
|
-
return
|
|
1529
|
-
|
|
1601
|
+
return React__default.createElement(
|
|
1602
|
+
React__default.Fragment,
|
|
1530
1603
|
null,
|
|
1531
|
-
|
|
1604
|
+
React__default.createElement(
|
|
1532
1605
|
Head,
|
|
1533
1606
|
null,
|
|
1534
|
-
|
|
1607
|
+
React__default.createElement(
|
|
1535
1608
|
'title',
|
|
1536
1609
|
{ key: 'title' },
|
|
1537
1610
|
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 : '')
|
|
1538
1611
|
),
|
|
1539
|
-
meta_description &&
|
|
1612
|
+
meta_description && React__default.createElement('meta', {
|
|
1540
1613
|
name: 'description',
|
|
1541
1614
|
key: 'description',
|
|
1542
1615
|
content: meta_description }),
|
|
1543
|
-
|
|
1544
|
-
passwordLock &&
|
|
1545
|
-
|
|
1616
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1617
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1618
|
+
React__default.createElement('meta', {
|
|
1546
1619
|
property: 'og:url',
|
|
1547
1620
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1548
1621
|
key: 'og:url'
|
|
1549
1622
|
}),
|
|
1550
|
-
|
|
1623
|
+
React__default.createElement('meta', {
|
|
1551
1624
|
property: 'og:title',
|
|
1552
1625
|
content: 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 : ''),
|
|
1553
1626
|
key: 'og:title'
|
|
1554
1627
|
}),
|
|
1555
|
-
|
|
1628
|
+
React__default.createElement('meta', {
|
|
1556
1629
|
property: 'og:image',
|
|
1557
1630
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1558
1631
|
key: 'og:image'
|
|
1559
1632
|
}),
|
|
1560
|
-
|
|
1561
|
-
|
|
1633
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1634
|
+
React__default.createElement('meta', {
|
|
1562
1635
|
property: 'og:description',
|
|
1563
1636
|
content: meta_description,
|
|
1564
1637
|
key: 'og:description'
|
|
1565
1638
|
}),
|
|
1566
|
-
|
|
1567
|
-
|
|
1639
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1640
|
+
React__default.createElement('meta', {
|
|
1568
1641
|
name: 'twitter:title',
|
|
1569
1642
|
content: 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 : ''),
|
|
1570
1643
|
key: 'twitter:title'
|
|
1571
1644
|
}),
|
|
1572
|
-
|
|
1645
|
+
React__default.createElement('meta', {
|
|
1573
1646
|
name: 'twitter:image',
|
|
1574
1647
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1575
1648
|
key: 'twitter:image'
|
|
1576
1649
|
}),
|
|
1577
|
-
|
|
1578
|
-
|
|
1650
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1651
|
+
React__default.createElement('meta', {
|
|
1579
1652
|
name: 'twitter:description',
|
|
1580
1653
|
content: meta_description,
|
|
1581
1654
|
key: 'twitter:description'
|
|
1582
1655
|
}),
|
|
1583
|
-
canonicalTag &&
|
|
1656
|
+
canonicalTag && React__default.createElement('link', {
|
|
1584
1657
|
rel: 'canonical',
|
|
1585
1658
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1586
1659
|
key: 'canonical'
|
|
1587
1660
|
}),
|
|
1588
|
-
|
|
1661
|
+
React__default.createElement(
|
|
1589
1662
|
'noscript',
|
|
1590
1663
|
null,
|
|
1591
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1592
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1664
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1665
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1593
1666
|
)
|
|
1594
1667
|
),
|
|
1595
|
-
!needInfiniteScroll ?
|
|
1668
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1596
1669
|
infiniteScroll: true,
|
|
1597
1670
|
showRelatedArticles: showRelatedArticles,
|
|
1598
1671
|
canonicalTag: canonicalTag,
|
|
@@ -1609,7 +1682,7 @@ View.returnGetInitialProps = function () {
|
|
|
1609
1682
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(url, prevUrl, seriesVid, client, sao) {
|
|
1610
1683
|
var context = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1611
1684
|
|
|
1612
|
-
var article, relatedArticleQuery, statusCode, _context$query$series, seriesArticle, sponsoredFlag;
|
|
1685
|
+
var article, relatedArticleQuery, sliderData, statusCode, sliderArticles, _context$query$series, seriesArticle, sponsoredFlag;
|
|
1613
1686
|
|
|
1614
1687
|
return regenerator.wrap(function _callee$(_context) {
|
|
1615
1688
|
while (1) {
|
|
@@ -1623,11 +1696,27 @@ View.returnGetInitialProps = function () {
|
|
|
1623
1696
|
relatedArticleQuery = getQuery('related');
|
|
1624
1697
|
|
|
1625
1698
|
article.seriesDetail = getSeriesDetail(article, seriesVid);
|
|
1699
|
+
sliderData = [];
|
|
1626
1700
|
statusCode = 200;
|
|
1627
1701
|
|
|
1628
1702
|
if (!article || !article._id || !article.body) {
|
|
1629
1703
|
statusCode = 404;
|
|
1630
1704
|
}
|
|
1705
|
+
|
|
1706
|
+
if (!(article.documentGroup && article.documentGroup.isSeries)) {
|
|
1707
|
+
_context.next = 13;
|
|
1708
|
+
break;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
_context.next = 11;
|
|
1712
|
+
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 desc) {\n title,\n thumbnail,\n url,\n published\n }');
|
|
1713
|
+
|
|
1714
|
+
case 11:
|
|
1715
|
+
sliderArticles = _context.sent;
|
|
1716
|
+
|
|
1717
|
+
sliderData = sliderArticles;
|
|
1718
|
+
|
|
1719
|
+
case 13:
|
|
1631
1720
|
_context$query$series = context.query.seriesArticle, seriesArticle = _context$query$series === undefined ? false : _context$query$series;
|
|
1632
1721
|
|
|
1633
1722
|
if ((seriesArticle || seriesVid) && article.body) {
|
|
@@ -1676,27 +1765,27 @@ View.returnGetInitialProps = function () {
|
|
|
1676
1765
|
}
|
|
1677
1766
|
|
|
1678
1767
|
if (!article.disableRelatedContent) {
|
|
1679
|
-
_context.next =
|
|
1768
|
+
_context.next = 23;
|
|
1680
1769
|
break;
|
|
1681
1770
|
}
|
|
1682
1771
|
|
|
1683
1772
|
article.relatedArticle = null;
|
|
1684
|
-
_context.next =
|
|
1773
|
+
_context.next = 27;
|
|
1685
1774
|
break;
|
|
1686
1775
|
|
|
1687
|
-
case
|
|
1776
|
+
case 23:
|
|
1688
1777
|
if (!article) {
|
|
1689
|
-
_context.next =
|
|
1778
|
+
_context.next = 27;
|
|
1690
1779
|
break;
|
|
1691
1780
|
}
|
|
1692
1781
|
|
|
1693
|
-
_context.next =
|
|
1782
|
+
_context.next = 26;
|
|
1694
1783
|
return getRelatedArticle(context, client, article, prevUrl, '0..2');
|
|
1695
1784
|
|
|
1696
|
-
case
|
|
1785
|
+
case 26:
|
|
1697
1786
|
article.relatedArticle = _context.sent;
|
|
1698
1787
|
|
|
1699
|
-
case
|
|
1788
|
+
case 27:
|
|
1700
1789
|
return _context.abrupt('return', {
|
|
1701
1790
|
url: url,
|
|
1702
1791
|
sao: sao,
|
|
@@ -1704,10 +1793,11 @@ View.returnGetInitialProps = function () {
|
|
|
1704
1793
|
prevUrl: prevUrl,
|
|
1705
1794
|
relatedArticleQuery: relatedArticleQuery,
|
|
1706
1795
|
article: article,
|
|
1796
|
+
sliderData: sliderData,
|
|
1707
1797
|
sponsoredFlag: sponsoredFlag
|
|
1708
1798
|
});
|
|
1709
1799
|
|
|
1710
|
-
case
|
|
1800
|
+
case 28:
|
|
1711
1801
|
case 'end':
|
|
1712
1802
|
return _context.stop();
|
|
1713
1803
|
}
|