@mjhls/mjh-framework 1.0.866-d4d665.2 → 1.0.866
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 +23 -24
- package/dist/cjs/AD300x250x600.js +23 -24
- package/dist/cjs/AD728x90.js +26 -27
- package/dist/cjs/ADFloatingFooter.js +22 -23
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +22 -23
- package/dist/cjs/{ADInfeed-799275aa.js → ADInfeed-f8324b70.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +22 -23
- package/dist/cjs/ADSponsoredResources.js +22 -23
- package/dist/cjs/ADWebcast.js +22 -23
- package/dist/cjs/ADWelcome.js +19 -20
- package/dist/cjs/{ADlgInfeed-591d014e.js → ADlgInfeed-98d7c699.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +23 -24
- package/dist/cjs/AdSlotsProvider.js +13 -14
- package/dist/cjs/AlgoliaSearch.js +30 -14121
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +15 -15
- package/dist/cjs/ArticleProgramLandingPage.js +49 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -33
- package/dist/cjs/ArticleSeriesListing.js +33 -34
- package/dist/cjs/Auth.js +519 -348
- package/dist/cjs/AuthWrapper.js +20 -20
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -25
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +32 -33
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +42 -43
- package/dist/cjs/DeckQueue.js +31 -32
- package/dist/cjs/{Dfp-391fd124.js → Dfp-3f0ed4c8.js} +14 -15
- package/dist/cjs/EventsDeck.js +45 -45
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +47 -48
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +37 -37
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -48
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +17 -17
- package/dist/cjs/IssueLanding.js +84 -85
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +21 -22
- package/dist/cjs/MasterDeck.js +41 -42
- package/dist/cjs/MediaSeriesLanding.js +713 -613
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +41 -41
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +67 -2796
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +34 -35
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +55 -55
- package/dist/cjs/QueueDeckExpanded.js +40 -41
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +35 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -21
- package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-e3e8ead7.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +17 -17
- package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +45 -46
- package/dist/cjs/TemplateNormal.js +47 -48
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +51 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -39
- package/dist/cjs/VideoSeriesListing.js +33 -34
- package/dist/cjs/View.js +90 -92
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +23 -23
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-a195642e.js} +5 -4
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +14 -14
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -46
- package/dist/cjs/{getTargeting-21103688.js → getTargeting-32d1c2e4.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-2cf30c83.js → index-0e4427c8.js} +470 -5
- package/dist/cjs/{index-4990e6c9.js → index-32097c80.js} +175 -175
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-5be2866f.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +140 -140
- package/dist/cjs/{inherits-0c7830c5.js → inherits-c2065b95.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-66a6a284.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +26 -27
- package/dist/esm/AD300x250x600.js +26 -27
- package/dist/esm/AD728x90.js +29 -30
- package/dist/esm/ADFloatingFooter.js +28 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -29
- package/dist/esm/{ADInfeed-4b8902ae.js → ADInfeed-a71a3972.js} +9 -9
- package/dist/esm/ADSkyscraper.js +28 -29
- package/dist/esm/ADSponsoredResources.js +28 -29
- package/dist/esm/ADWebcast.js +28 -29
- package/dist/esm/ADWelcome.js +29 -30
- package/dist/esm/{ADlgInfeed-5193b48f.js → ADlgInfeed-d94f1437.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +26 -27
- package/dist/esm/AdSlotsProvider.js +14 -15
- package/dist/esm/AlgoliaSearch.js +52 -14143
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +18 -18
- package/dist/esm/ArticleProgramLandingPage.js +55 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -38
- package/dist/esm/ArticleSeriesListing.js +56 -57
- package/dist/esm/Auth.js +589 -418
- package/dist/esm/AuthWrapper.js +45 -45
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -80
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +51 -52
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +86 -87
- package/dist/esm/DeckQueue.js +68 -69
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-be030f2a.js} +22 -23
- package/dist/esm/EventsDeck.js +105 -105
- package/dist/esm/ExternalResources.js +72 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +163 -164
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -70
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +92 -93
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -35
- package/dist/esm/MasterDeck.js +73 -74
- package/dist/esm/MediaSeriesLanding.js +725 -625
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +123 -123
- package/dist/esm/NavNative.js +112 -112
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +114 -2842
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -40
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +102 -102
- package/dist/esm/QueueDeckExpanded.js +277 -278
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -33
- package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-ae17159f.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-db963c3e.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +49 -50
- package/dist/esm/TemplateNormal.js +67 -68
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +63 -64
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -43
- package/dist/esm/VideoSeriesListing.js +72 -73
- package/dist/esm/View.js +246 -248
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +48 -48
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-57a70a56.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -46
- package/dist/esm/{getTargeting-88d69971.js → getTargeting-cf2724e3.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-f7fb1e25.js → index-5cc7b406.js} +472 -7
- package/dist/esm/{index-bec35c6c.js → index-5e84f9cd.js} +573 -573
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-d2f90501.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index.es-7dda2f0a.js → index.es-a6137319.js} +25 -9
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +136 -136
- package/dist/esm/{inherits-75d45541.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{moment-12415288.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +111 -111
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-f0677b9d.js +0 -99
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-11ec04d2.js +0 -894
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-b68072f5.js +0 -94
- package/dist/esm/main-aef58dbc.js +0 -882
- package/dist/esm/stringify-4330ccdc.js +0 -15
package/dist/esm/View.js
CHANGED
|
@@ -1,77 +1,76 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
|
+
import { _ as _extends, a as _Object$assign } from './extends-60e0e1c6.js';
|
|
3
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-be2f7a22.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-59c8f690.js';
|
|
8
|
+
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.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-d4165069.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-5e84f9cd.js';
|
|
19
|
+
import DFPAdSlot from './AdSlot.js';
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-ae17159f.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-cf2724e3.js';
|
|
22
|
+
import getKeywords from './getKeywords.js';
|
|
23
|
+
import urlFor from './urlFor.js';
|
|
24
|
+
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
25
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-d4932dea.js';
|
|
26
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
|
+
import './index-755f2cc2.js';
|
|
28
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
29
|
+
import { _ as _Object$keys } from './keys-7a3adabf.js';
|
|
30
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
31
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
32
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
33
|
+
import getQuery from './getQuery.js';
|
|
34
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
1
35
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
36
|
+
import './es6.string.iterator-bc33758b.js';
|
|
37
|
+
import './_to-object-b50e61c3.js';
|
|
38
|
+
import './web.dom.iterable-4109ff68.js';
|
|
4
39
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends, a as _Object$assign } from './extends-6f2fcc99.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-75d45541.js';
|
|
12
|
-
import './define-property-8af5f002.js';
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
-
import './events-6c3a7a63.js';
|
|
18
|
-
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
40
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
41
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
42
|
+
import './_object-pie-133f504a.js';
|
|
19
43
|
import 'prop-types';
|
|
20
|
-
import '
|
|
21
|
-
import 'react-bootstrap/Col';
|
|
22
|
-
import { m as moment } from './moment-12415288.js';
|
|
23
|
-
import { useRouter } from 'next/router';
|
|
24
|
-
import './isSymbol-1981418f.js';
|
|
25
|
-
import './debounce-9207d8ee.js';
|
|
26
|
-
import './toNumber-2f7a84cd.js';
|
|
27
|
-
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
44
|
+
import './index-0dbff1d1.js';
|
|
28
45
|
import 'react-dom';
|
|
29
|
-
import
|
|
30
|
-
import '
|
|
31
|
-
import urlFor from './urlFor.js';
|
|
32
|
-
import './index-6c12bdd5.js';
|
|
33
|
-
import { m as main_39 } from './main-aef58dbc.js';
|
|
34
|
-
import './entities-7cc3bf45.js';
|
|
35
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
36
|
-
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
37
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
38
|
-
import './Segment.js';
|
|
39
|
-
import './Beam.js';
|
|
40
|
-
import DFPAdSlot from './AdSlot.js';
|
|
41
|
-
import Button from 'react-bootstrap/Button';
|
|
42
|
-
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
46
|
+
import 'react-share';
|
|
47
|
+
import 'react-bootstrap';
|
|
43
48
|
import './index-c7e2ac95.js';
|
|
44
|
-
import './
|
|
49
|
+
import './util-3ab476bf.js';
|
|
50
|
+
import './Beam.js';
|
|
51
|
+
import './Segment.js';
|
|
52
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
45
53
|
import './GroupDeck.js';
|
|
46
|
-
import '
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
49
|
-
import { r as renderAuthor, g as getSerializers } from './index-bec35c6c.js';
|
|
50
|
-
import './util-7700fc59.js';
|
|
51
|
-
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
52
|
-
import Head from 'next/head';
|
|
53
|
-
import 'react-share';
|
|
54
|
-
import SocialShare from './SocialShare.js';
|
|
55
|
-
import './_object-to-array-7e804fce.js';
|
|
54
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
55
|
+
import './_is-array-3e99e06e.js';
|
|
56
|
+
import './_object-to-array-0f197f89.js';
|
|
56
57
|
import 'react-bootstrap/Pagination';
|
|
58
|
+
import './entities-932b50cf.js';
|
|
59
|
+
import 'react-bootstrap/Row';
|
|
60
|
+
import 'react-bootstrap/Col';
|
|
61
|
+
import './inherits-a41fe93f.js';
|
|
62
|
+
import './_object-sap-f353c2a9.js';
|
|
63
|
+
import './define-property-fe54dc9f.js';
|
|
64
|
+
import './index.esm-f6156a57.js';
|
|
65
|
+
import './iconBase-ccc56b97.js';
|
|
57
66
|
import 'react-bootstrap/Figure';
|
|
58
67
|
import 'react-bootstrap/OverlayTrigger';
|
|
59
68
|
import 'react-bootstrap/Tooltip';
|
|
60
69
|
import 'react-bootstrap/Popover';
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import 'react-bootstrap/Dropdown';
|
|
65
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
66
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
70
|
+
import './debounce-533d9748.js';
|
|
71
|
+
import './isSymbol-a7e9aafe.js';
|
|
72
|
+
import './toNumber-5aeba6e7.js';
|
|
67
73
|
import './index-db3bb315.js';
|
|
68
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
69
|
-
import getQuery from './getQuery.js';
|
|
70
|
-
import { S as SeriesSlider } from './SeriesSlider-b8cc1baa.js';
|
|
71
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-88d69971.js';
|
|
72
|
-
import getKeywords from './getKeywords.js';
|
|
73
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
74
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
75
74
|
|
|
76
75
|
var getArticleSummary = function getArticleSummary(article) {
|
|
77
76
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -149,17 +148,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
149
148
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
150
149
|
}
|
|
151
150
|
|
|
152
|
-
return
|
|
151
|
+
return React__default.createElement(
|
|
153
152
|
'a',
|
|
154
153
|
{
|
|
155
154
|
href: url,
|
|
156
155
|
className: 'doc-group',
|
|
157
156
|
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' :
|
|
157
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
158
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
159
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
161
160
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
162
|
-
|
|
161
|
+
main_43 && !thumbnailUrl && React__default.createElement(
|
|
163
162
|
'style',
|
|
164
163
|
{ jsx: 'true' },
|
|
165
164
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -299,38 +298,38 @@ var ISI = function ISI(props) {
|
|
|
299
298
|
}, 300);
|
|
300
299
|
}
|
|
301
300
|
};
|
|
302
|
-
return
|
|
303
|
-
|
|
301
|
+
return React__default.createElement(
|
|
302
|
+
React__default.Fragment,
|
|
304
303
|
null,
|
|
305
|
-
|
|
304
|
+
React__default.createElement(
|
|
306
305
|
'div',
|
|
307
306
|
{ id: 'isi', ref: isi },
|
|
308
|
-
|
|
307
|
+
React__default.createElement(
|
|
309
308
|
'div',
|
|
310
309
|
{ id: 'isiContent' },
|
|
311
|
-
|
|
310
|
+
React__default.createElement(
|
|
312
311
|
'div',
|
|
313
312
|
{ onClick: function onClick() {
|
|
314
313
|
return setActive(function (prev) {
|
|
315
314
|
return !prev;
|
|
316
315
|
});
|
|
317
316
|
}, id: 'isiToggle' },
|
|
318
|
-
active ?
|
|
317
|
+
active ? React__default.createElement(
|
|
319
318
|
'p',
|
|
320
319
|
null,
|
|
321
320
|
'Close ',
|
|
322
|
-
|
|
323
|
-
) :
|
|
321
|
+
React__default.createElement(FaMinus, null)
|
|
322
|
+
) : React__default.createElement(
|
|
324
323
|
'p',
|
|
325
324
|
null,
|
|
326
325
|
'See More ',
|
|
327
|
-
|
|
326
|
+
React__default.createElement(FaPlus, null)
|
|
328
327
|
)
|
|
329
328
|
),
|
|
330
329
|
children
|
|
331
330
|
)
|
|
332
331
|
),
|
|
333
|
-
|
|
332
|
+
React__default.createElement(
|
|
334
333
|
'style',
|
|
335
334
|
{ jsx: true },
|
|
336
335
|
'\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 +337,7 @@ var ISI = function ISI(props) {
|
|
|
338
337
|
);
|
|
339
338
|
};
|
|
340
339
|
|
|
341
|
-
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";
|
|
340
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
342
341
|
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
342
|
styleInject(css);
|
|
344
343
|
|
|
@@ -352,33 +351,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
352
351
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
353
352
|
return null;
|
|
354
353
|
}
|
|
355
|
-
return
|
|
354
|
+
return React__default.createElement(
|
|
356
355
|
'div',
|
|
357
356
|
{ className: styles.mediaContainer },
|
|
358
357
|
articles.map(function (article, index) {
|
|
359
|
-
return
|
|
358
|
+
return React__default.createElement(
|
|
360
359
|
'div',
|
|
361
360
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
362
|
-
|
|
361
|
+
React__default.createElement(
|
|
363
362
|
'a',
|
|
364
363
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
365
|
-
article.thumbnail ?
|
|
364
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
366
365
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
367
366
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
368
367
|
alt: article.title
|
|
369
|
-
}) :
|
|
370
|
-
|
|
368
|
+
}) : React__default.createElement(
|
|
369
|
+
React__default.Fragment,
|
|
371
370
|
null,
|
|
372
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
371
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
373
372
|
)
|
|
374
373
|
),
|
|
375
|
-
|
|
374
|
+
React__default.createElement(
|
|
376
375
|
'div',
|
|
377
376
|
{ className: styles.mediaBody },
|
|
378
|
-
|
|
377
|
+
React__default.createElement(
|
|
379
378
|
'a',
|
|
380
379
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
381
|
-
|
|
380
|
+
React__default.createElement(
|
|
382
381
|
'div',
|
|
383
382
|
{ className: styles.cardTitle },
|
|
384
383
|
article.title
|
|
@@ -513,7 +512,7 @@ function generateSchema(props) {
|
|
|
513
512
|
}
|
|
514
513
|
|
|
515
514
|
var Schema = function Schema(props) {
|
|
516
|
-
return
|
|
515
|
+
return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
|
|
517
516
|
};
|
|
518
517
|
|
|
519
518
|
var Article = forwardRef(function (props, ref) {
|
|
@@ -619,9 +618,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
619
618
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
620
619
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
621
620
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
622
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
623
|
-
|
|
624
|
-
containerHeight = props.containerHeight,
|
|
621
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh;
|
|
622
|
+
props.active;
|
|
623
|
+
var containerHeight = props.containerHeight,
|
|
625
624
|
_props$refreshFlag = props.refreshFlag,
|
|
626
625
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
627
626
|
disqusConfig = props.disqusConfig,
|
|
@@ -681,9 +680,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
681
680
|
setArticleBody = _useState10[1];
|
|
682
681
|
|
|
683
682
|
var _useState11 = useState(true),
|
|
684
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
685
|
-
|
|
686
|
-
setPreviewAd = _useState12[1];
|
|
683
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
684
|
+
_useState12[0];
|
|
685
|
+
var setPreviewAd = _useState12[1];
|
|
687
686
|
|
|
688
687
|
useEffect(function () {
|
|
689
688
|
var path = window && window.location && window.location.search;
|
|
@@ -704,7 +703,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
704
703
|
};
|
|
705
704
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
706
705
|
if (biography) {
|
|
707
|
-
return
|
|
706
|
+
return React__default.createElement(BlockContent, _extends({
|
|
708
707
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
709
708
|
blocks: [biography]
|
|
710
709
|
}, client.config()));
|
|
@@ -714,9 +713,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
714
713
|
var url = article.url.current;
|
|
715
714
|
|
|
716
715
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
717
|
-
return
|
|
716
|
+
return React__default.createElement(ISIContent, null);
|
|
718
717
|
} else if (nationalPage === url && ISIContent) {
|
|
719
|
-
return
|
|
718
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
720
719
|
}
|
|
721
720
|
return null;
|
|
722
721
|
};
|
|
@@ -750,19 +749,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
750
749
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
751
750
|
}
|
|
752
751
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
753
|
-
return
|
|
752
|
+
return React__default.createElement(
|
|
754
753
|
'div',
|
|
755
754
|
null,
|
|
756
755
|
relatedLinks.map(function (relatedLink, index) {
|
|
757
|
-
return
|
|
756
|
+
return React__default.createElement(
|
|
758
757
|
'span',
|
|
759
758
|
{ key: index, className: 'related-link' },
|
|
760
|
-
|
|
759
|
+
React__default.createElement(
|
|
761
760
|
'a',
|
|
762
761
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
763
762
|
relatedLink.label
|
|
764
763
|
),
|
|
765
|
-
|
|
764
|
+
React__default.createElement(
|
|
766
765
|
'style',
|
|
767
766
|
{ jsx: 'true' },
|
|
768
767
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -777,23 +776,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
777
776
|
};
|
|
778
777
|
|
|
779
778
|
var RelatedContent = function RelatedContent() {
|
|
780
|
-
return
|
|
779
|
+
return React__default.createElement(
|
|
781
780
|
'section',
|
|
782
781
|
{ id: 'related-content-section', className: 'my-1' },
|
|
783
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
782
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
784
783
|
'p',
|
|
785
784
|
{ className: 'mb-0' },
|
|
786
|
-
|
|
785
|
+
React__default.createElement(
|
|
787
786
|
'b',
|
|
788
787
|
null,
|
|
789
788
|
'Related Content:'
|
|
790
789
|
)
|
|
791
790
|
),
|
|
792
|
-
|
|
793
|
-
|
|
791
|
+
React__default.createElement(RelevantTopics, null),
|
|
792
|
+
React__default.createElement(
|
|
794
793
|
'div',
|
|
795
794
|
{ className: 'pt-2' },
|
|
796
|
-
|
|
795
|
+
React__default.createElement(RelatedArticle, {
|
|
797
796
|
articles: article.relatedArticle,
|
|
798
797
|
client: client,
|
|
799
798
|
fallbackImage: props.Settings.logo,
|
|
@@ -804,28 +803,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
804
803
|
};
|
|
805
804
|
|
|
806
805
|
var form = function form() {
|
|
807
|
-
return
|
|
808
|
-
|
|
806
|
+
return React__default.createElement(
|
|
807
|
+
React__default.Fragment,
|
|
809
808
|
null,
|
|
810
|
-
|
|
809
|
+
React__default.createElement(
|
|
811
810
|
Head,
|
|
812
811
|
null,
|
|
813
|
-
|
|
812
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
814
813
|
),
|
|
815
|
-
|
|
814
|
+
React__default.createElement(
|
|
816
815
|
'div',
|
|
817
816
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
818
|
-
|
|
817
|
+
React__default.createElement(
|
|
819
818
|
Form,
|
|
820
819
|
{
|
|
821
820
|
inline: true,
|
|
822
821
|
onSubmit: function onSubmit(e) {
|
|
823
822
|
e.preventDefault();
|
|
824
823
|
} },
|
|
825
|
-
|
|
824
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
826
825
|
return setPasswordKey(e.target.value);
|
|
827
826
|
}, placeholder: 'Password' }),
|
|
828
|
-
|
|
827
|
+
React__default.createElement(
|
|
829
828
|
Button,
|
|
830
829
|
{
|
|
831
830
|
variant: 'primary',
|
|
@@ -875,31 +874,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
875
874
|
setContextualADFlag(true);
|
|
876
875
|
}
|
|
877
876
|
};
|
|
878
|
-
return
|
|
879
|
-
|
|
877
|
+
return React__default.createElement(
|
|
878
|
+
React__default.Fragment,
|
|
880
879
|
null,
|
|
881
|
-
|
|
880
|
+
React__default.createElement(BlockContent, _extends({
|
|
882
881
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
883
882
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
884
883
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
885
884
|
}, client.config())),
|
|
886
|
-
|
|
887
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
888
|
-
|
|
885
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
886
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
887
|
+
React__default.createElement(
|
|
889
888
|
'div',
|
|
890
889
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
891
|
-
|
|
890
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
892
891
|
refreshFlag: refreshFlag
|
|
893
892
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
894
893
|
}))
|
|
895
894
|
),
|
|
896
|
-
|
|
897
|
-
|
|
895
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
896
|
+
React__default.createElement(
|
|
898
897
|
'div',
|
|
899
898
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
900
|
-
|
|
899
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
901
900
|
),
|
|
902
|
-
|
|
901
|
+
React__default.createElement(BlockContent, _extends({
|
|
903
902
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
904
903
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
905
904
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -924,26 +923,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
924
923
|
if (seriesInfo.hasVideo) {
|
|
925
924
|
_selectedIndex = seriesInfo.videoIndex;
|
|
926
925
|
}
|
|
927
|
-
return
|
|
928
|
-
|
|
926
|
+
return React__default.createElement(
|
|
927
|
+
React__default.Fragment,
|
|
929
928
|
null,
|
|
930
|
-
|
|
929
|
+
React__default.createElement(BlockContent, _extends({
|
|
931
930
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
932
931
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
933
932
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
934
933
|
}, client.config())),
|
|
935
|
-
contextualADFlag &&
|
|
936
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
937
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
934
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
935
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
936
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
938
937
|
'div',
|
|
939
938
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
940
|
-
|
|
939
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
941
940
|
refreshFlag: refreshFlag
|
|
942
941
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
943
942
|
}))
|
|
944
943
|
),
|
|
945
|
-
contextualADFlag &&
|
|
946
|
-
|
|
944
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
945
|
+
React__default.createElement(BlockContent, _extends({
|
|
947
946
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
948
947
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
949
948
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -973,22 +972,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
973
972
|
}
|
|
974
973
|
};
|
|
975
974
|
|
|
976
|
-
return
|
|
977
|
-
|
|
975
|
+
return React__default.createElement(
|
|
976
|
+
React__default.Fragment,
|
|
978
977
|
null,
|
|
979
|
-
|
|
978
|
+
React__default.createElement(BlockContent, _extends({
|
|
980
979
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
981
980
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
982
981
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
983
982
|
}, client.config())),
|
|
984
|
-
|
|
985
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
986
|
-
|
|
983
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
984
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
985
|
+
React__default.createElement(
|
|
987
986
|
'div',
|
|
988
987
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
989
|
-
|
|
988
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
990
989
|
),
|
|
991
|
-
|
|
990
|
+
React__default.createElement(BlockContent, _extends({
|
|
992
991
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
993
992
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
994
993
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1000,16 +999,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1000
999
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
1001
1000
|
}
|
|
1002
1001
|
|
|
1003
|
-
return
|
|
1002
|
+
return React__default.createElement(
|
|
1004
1003
|
'div',
|
|
1005
1004
|
null,
|
|
1006
|
-
|
|
1005
|
+
React__default.createElement(BlockContent, _extends({
|
|
1007
1006
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1008
1007
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1009
1008
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1010
1009
|
}, client.config())),
|
|
1011
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
1012
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1010
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1011
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1013
1012
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1014
1013
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1015
1014
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1054,8 +1053,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1054
1053
|
shareSubject = shareOptions.shareSubject,
|
|
1055
1054
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1056
1055
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1057
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1058
|
-
|
|
1056
|
+
shareBaseUrl = shareOptions.shareBaseUrl;
|
|
1057
|
+
shareOptions.shareSiteTitle;
|
|
1059
1058
|
|
|
1060
1059
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1061
1060
|
var shareTitle = article.title;
|
|
@@ -1095,10 +1094,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1095
1094
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1096
1095
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1097
1096
|
|
|
1098
|
-
return
|
|
1099
|
-
|
|
1097
|
+
return React__default.createElement(
|
|
1098
|
+
React__default.Fragment,
|
|
1100
1099
|
null,
|
|
1101
|
-
|
|
1100
|
+
React__default.createElement(
|
|
1102
1101
|
VisibilitySensor,
|
|
1103
1102
|
{
|
|
1104
1103
|
partialVisibility: true,
|
|
@@ -1111,44 +1110,44 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1111
1110
|
});
|
|
1112
1111
|
}
|
|
1113
1112
|
} },
|
|
1114
|
-
|
|
1113
|
+
React__default.createElement(
|
|
1115
1114
|
'div',
|
|
1116
1115
|
{ id: 'article__block', ref: ref },
|
|
1117
|
-
|
|
1116
|
+
React__default.createElement(
|
|
1118
1117
|
'div',
|
|
1119
1118
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1120
1119
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1121
|
-
!isVideoSeries &&
|
|
1120
|
+
!isVideoSeries && React__default.createElement(
|
|
1122
1121
|
'div',
|
|
1123
1122
|
null,
|
|
1124
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1123
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1125
1124
|
'p',
|
|
1126
1125
|
{ style: { fontSize: '14px' } },
|
|
1127
1126
|
article.documentGroup.name,
|
|
1128
1127
|
' - Episode ',
|
|
1129
1128
|
episodeNumber
|
|
1130
1129
|
),
|
|
1131
|
-
|
|
1130
|
+
React__default.createElement(
|
|
1132
1131
|
'h1',
|
|
1133
1132
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1134
1133
|
title
|
|
1135
1134
|
)
|
|
1136
1135
|
),
|
|
1137
|
-
|
|
1136
|
+
React__default.createElement(
|
|
1138
1137
|
'div',
|
|
1139
1138
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1140
|
-
|
|
1139
|
+
React__default.createElement(
|
|
1141
1140
|
'style',
|
|
1142
1141
|
{ jsx: 'true' },
|
|
1143
1142
|
'\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 '
|
|
1144
1143
|
),
|
|
1145
|
-
|
|
1144
|
+
React__default.createElement(
|
|
1146
1145
|
'div',
|
|
1147
1146
|
{ className: 'left-wrap' },
|
|
1148
|
-
!isVideoSeries && showPublished &&
|
|
1147
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1149
1148
|
'div',
|
|
1150
1149
|
null,
|
|
1151
|
-
|
|
1150
|
+
React__default.createElement(
|
|
1152
1151
|
'time',
|
|
1153
1152
|
{
|
|
1154
1153
|
'class': 'meta-date',
|
|
@@ -1158,20 +1157,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1158
1157
|
)
|
|
1159
1158
|
/* Show Published date */
|
|
1160
1159
|
,
|
|
1161
|
-
|
|
1160
|
+
React__default.createElement(
|
|
1162
1161
|
'div',
|
|
1163
1162
|
{ className: 'mb-3' },
|
|
1164
1163
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1165
|
-
return
|
|
1164
|
+
return React__default.createElement(
|
|
1166
1165
|
'span',
|
|
1167
1166
|
{ key: index },
|
|
1168
1167
|
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 }))
|
|
1169
1168
|
);
|
|
1170
1169
|
}),
|
|
1171
|
-
|
|
1170
|
+
React__default.createElement(
|
|
1172
1171
|
'div',
|
|
1173
1172
|
null,
|
|
1174
|
-
source &&
|
|
1173
|
+
source && React__default.createElement(
|
|
1175
1174
|
'p',
|
|
1176
1175
|
{
|
|
1177
1176
|
style: {
|
|
@@ -1186,13 +1185,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1186
1185
|
source
|
|
1187
1186
|
)
|
|
1188
1187
|
),
|
|
1189
|
-
issue &&
|
|
1188
|
+
issue && React__default.createElement(
|
|
1190
1189
|
'div',
|
|
1191
1190
|
{ className: 'volume-issue' },
|
|
1192
|
-
issue.publication && issue.publication.name &&
|
|
1191
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1193
1192
|
'span',
|
|
1194
1193
|
{ className: 'mb-0' },
|
|
1195
|
-
|
|
1194
|
+
React__default.createElement(
|
|
1196
1195
|
'b',
|
|
1197
1196
|
null,
|
|
1198
1197
|
issue.publication.name
|
|
@@ -1200,34 +1199,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1200
1199
|
',',
|
|
1201
1200
|
' '
|
|
1202
1201
|
),
|
|
1203
|
-
issue.name &&
|
|
1202
|
+
issue.name && React__default.createElement(
|
|
1204
1203
|
'span',
|
|
1205
1204
|
{ className: 'mb-0' },
|
|
1206
1205
|
issue.name,
|
|
1207
1206
|
', '
|
|
1208
1207
|
),
|
|
1209
|
-
issue.volume &&
|
|
1208
|
+
issue.volume && React__default.createElement(
|
|
1210
1209
|
'span',
|
|
1211
1210
|
null,
|
|
1212
1211
|
'Volume ' + issue.volume,
|
|
1213
1212
|
','
|
|
1214
1213
|
),
|
|
1215
|
-
issue.issueNumber &&
|
|
1214
|
+
issue.issueNumber && React__default.createElement(
|
|
1216
1215
|
'span',
|
|
1217
1216
|
null,
|
|
1218
1217
|
' Issue ' + issue.issueNumber
|
|
1219
1218
|
)
|
|
1220
1219
|
),
|
|
1221
|
-
pageNumber &&
|
|
1220
|
+
pageNumber && React__default.createElement(
|
|
1222
1221
|
'div',
|
|
1223
1222
|
{ className: 'article-pageNumber' },
|
|
1224
1223
|
'Pages: ' + pageNumber
|
|
1225
1224
|
)
|
|
1226
1225
|
),
|
|
1227
|
-
!isVideoSeries && showSocialShare &&
|
|
1226
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1228
1227
|
'p',
|
|
1229
1228
|
null,
|
|
1230
|
-
|
|
1229
|
+
React__default.createElement(SocialShare, {
|
|
1231
1230
|
shareUrl: shareUrl,
|
|
1232
1231
|
shareTitle: shareTitle,
|
|
1233
1232
|
shareVia: shareVia,
|
|
@@ -1243,27 +1242,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1243
1242
|
})
|
|
1244
1243
|
)
|
|
1245
1244
|
),
|
|
1246
|
-
|
|
1245
|
+
React__default.createElement(
|
|
1247
1246
|
'div',
|
|
1248
1247
|
null,
|
|
1249
|
-
|
|
1248
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1250
1249
|
)
|
|
1251
1250
|
),
|
|
1252
|
-
!isVideoSeries && summary && display_summary &&
|
|
1251
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1253
1252
|
'p',
|
|
1254
1253
|
null,
|
|
1255
|
-
|
|
1254
|
+
React__default.createElement(
|
|
1256
1255
|
'em',
|
|
1257
1256
|
null,
|
|
1258
1257
|
summary
|
|
1259
1258
|
)
|
|
1260
1259
|
),
|
|
1261
|
-
|
|
1260
|
+
React__default.createElement(
|
|
1262
1261
|
'div',
|
|
1263
1262
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1264
|
-
|
|
1263
|
+
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1265
1264
|
if (index === 0) {
|
|
1266
|
-
return
|
|
1265
|
+
return React__default.createElement(
|
|
1267
1266
|
'div',
|
|
1268
1267
|
{
|
|
1269
1268
|
key: index,
|
|
@@ -1280,24 +1279,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1280
1279
|
}
|
|
1281
1280
|
})
|
|
1282
1281
|
),
|
|
1283
|
-
|
|
1282
|
+
React__default.createElement(
|
|
1284
1283
|
'div',
|
|
1285
1284
|
{ className: 'block-content mt-3' },
|
|
1286
1285
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1287
|
-
|
|
1288
|
-
|
|
1286
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1287
|
+
React__default.createElement(
|
|
1289
1288
|
'noscript',
|
|
1290
1289
|
null,
|
|
1291
|
-
|
|
1290
|
+
React__default.createElement(
|
|
1292
1291
|
'div',
|
|
1293
1292
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1294
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1293
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1295
1294
|
'a',
|
|
1296
1295
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1297
1296
|
'Previous ',
|
|
1298
1297
|
props.article.seriesDetail.type
|
|
1299
1298
|
),
|
|
1300
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1299
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1301
1300
|
'a',
|
|
1302
1301
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1303
1302
|
'Next ',
|
|
@@ -1305,26 +1304,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1305
1304
|
)
|
|
1306
1305
|
)
|
|
1307
1306
|
),
|
|
1308
|
-
issue && issue.url &&
|
|
1307
|
+
issue && issue.url && React__default.createElement(
|
|
1309
1308
|
'a',
|
|
1310
1309
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1311
|
-
|
|
1310
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1312
1311
|
'Download Issue : ',
|
|
1313
1312
|
issue.name
|
|
1314
1313
|
)
|
|
1315
1314
|
),
|
|
1316
|
-
|
|
1317
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1315
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1316
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1318
1317
|
'div',
|
|
1319
1318
|
null,
|
|
1320
1319
|
false ,
|
|
1321
|
-
|
|
1320
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1322
1321
|
),
|
|
1323
|
-
showRelatedArticles && !showIsi &&
|
|
1324
|
-
disqusConfig && showDisqus &&
|
|
1322
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1323
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1325
1324
|
'div',
|
|
1326
1325
|
{ id: 'disqusContainer' },
|
|
1327
|
-
|
|
1326
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1328
1327
|
shortname: disqusConfig.shortname,
|
|
1329
1328
|
config: {
|
|
1330
1329
|
url: disqusConfig.url,
|
|
@@ -1337,30 +1336,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1337
1336
|
renderIsiContent(props.article)
|
|
1338
1337
|
)
|
|
1339
1338
|
),
|
|
1340
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1339
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1341
1340
|
ISI,
|
|
1342
1341
|
null,
|
|
1343
|
-
|
|
1342
|
+
React__default.createElement(BlockContent, {
|
|
1344
1343
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1345
1344
|
blocks: isi
|
|
1346
1345
|
})
|
|
1347
1346
|
),
|
|
1348
|
-
|
|
1347
|
+
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1349
1348
|
if (index > 0) {
|
|
1350
|
-
return
|
|
1349
|
+
return React__default.createElement(
|
|
1351
1350
|
'div',
|
|
1352
1351
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1353
1352
|
ad.component
|
|
1354
1353
|
);
|
|
1355
1354
|
}
|
|
1356
1355
|
}),
|
|
1357
|
-
|
|
1356
|
+
React__default.createElement(
|
|
1358
1357
|
'noscript',
|
|
1359
1358
|
null,
|
|
1360
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1359
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1361
1360
|
'div',
|
|
1362
1361
|
{ style: { textAlign: 'center' } },
|
|
1363
|
-
|
|
1362
|
+
React__default.createElement(
|
|
1364
1363
|
'a',
|
|
1365
1364
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1366
1365
|
'Related Article ',
|
|
@@ -1368,8 +1367,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1368
1367
|
)
|
|
1369
1368
|
)
|
|
1370
1369
|
),
|
|
1371
|
-
props.infiniteScroll &&
|
|
1372
|
-
|
|
1370
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1371
|
+
React__default.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1373
1372
|
);
|
|
1374
1373
|
};
|
|
1375
1374
|
|
|
@@ -1384,7 +1383,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1384
1383
|
}
|
|
1385
1384
|
});
|
|
1386
1385
|
|
|
1387
|
-
var _this = undefined;
|
|
1386
|
+
var _this$1 = undefined;
|
|
1388
1387
|
|
|
1389
1388
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1390
1389
|
var router = useRouter();
|
|
@@ -1393,9 +1392,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1393
1392
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1394
1393
|
Ads = props.Ads,
|
|
1395
1394
|
_props$maxListLength = props.maxListLength,
|
|
1396
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1397
|
-
|
|
1398
|
-
_props$cpModification = props.cpModificationRequired,
|
|
1395
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength;
|
|
1396
|
+
props.sponsoredTaxonomies;
|
|
1397
|
+
var _props$cpModification = props.cpModificationRequired,
|
|
1399
1398
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1400
1399
|
_props$authorPrefix = props.authorPrefix,
|
|
1401
1400
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1444,7 +1443,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1444
1443
|
return item.url.current === path;
|
|
1445
1444
|
});
|
|
1446
1445
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1447
|
-
if (!
|
|
1446
|
+
if (!main_43) {
|
|
1448
1447
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1449
1448
|
if (window.googletag && googletag.pubadsReady) {
|
|
1450
1449
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1461,7 +1460,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1461
1460
|
});
|
|
1462
1461
|
}
|
|
1463
1462
|
//Refresh leaderboard ad on mobile
|
|
1464
|
-
if (
|
|
1463
|
+
if (main_43) {
|
|
1465
1464
|
var leaderboardSlotId = '';
|
|
1466
1465
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1467
1466
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1565,7 +1564,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1565
1564
|
return _context.stop();
|
|
1566
1565
|
}
|
|
1567
1566
|
}
|
|
1568
|
-
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1567
|
+
}, _callee, _this$1, [[3, 9], [15, 21]]);
|
|
1569
1568
|
}));
|
|
1570
1569
|
|
|
1571
1570
|
return function loadmore() {
|
|
@@ -1643,14 +1642,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1643
1642
|
refreshAD(path);
|
|
1644
1643
|
};
|
|
1645
1644
|
|
|
1646
|
-
return
|
|
1645
|
+
return React__default.createElement(
|
|
1647
1646
|
InfiniteScroll,
|
|
1648
1647
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1649
1648
|
queueData.map(function (article, index) {
|
|
1650
|
-
return
|
|
1651
|
-
|
|
1649
|
+
return React__default.createElement(
|
|
1650
|
+
React__default.Fragment,
|
|
1652
1651
|
null,
|
|
1653
|
-
|
|
1652
|
+
React__default.createElement(Article, _extends({
|
|
1654
1653
|
key: index
|
|
1655
1654
|
}, props, {
|
|
1656
1655
|
containerHeight: containerHeight,
|
|
@@ -1668,7 +1667,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1668
1667
|
);
|
|
1669
1668
|
};
|
|
1670
1669
|
|
|
1671
|
-
var _this
|
|
1670
|
+
var _this = undefined;
|
|
1672
1671
|
|
|
1673
1672
|
var View = function View(props) {
|
|
1674
1673
|
var router = useRouter();
|
|
@@ -1678,9 +1677,9 @@ var View = function View(props) {
|
|
|
1678
1677
|
hideComments = _props$article.hideComments,
|
|
1679
1678
|
content_placement = _props$article.content_placement,
|
|
1680
1679
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1681
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1682
|
-
|
|
1683
|
-
Ads = props.Ads,
|
|
1680
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag;
|
|
1681
|
+
props.sponsoredTaxonomies;
|
|
1682
|
+
var Ads = props.Ads,
|
|
1684
1683
|
setCustomDimensions = props.setCustomDimensions,
|
|
1685
1684
|
statusCode = props.statusCode,
|
|
1686
1685
|
prevUrl = props.prevUrl,
|
|
@@ -1693,9 +1692,9 @@ var View = function View(props) {
|
|
|
1693
1692
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1694
1693
|
var _props$article2 = props.article,
|
|
1695
1694
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1696
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1697
|
-
|
|
1698
|
-
title = _props$article2.title,
|
|
1695
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw;
|
|
1696
|
+
_props$article2.description;
|
|
1697
|
+
var title = _props$article2.title,
|
|
1699
1698
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1700
1699
|
|
|
1701
1700
|
var _useState = useState(0),
|
|
@@ -1748,7 +1747,6 @@ var View = function View(props) {
|
|
|
1748
1747
|
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;
|
|
1749
1748
|
|
|
1750
1749
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1751
|
-
description = null;
|
|
1752
1750
|
title = null;
|
|
1753
1751
|
}
|
|
1754
1752
|
|
|
@@ -1792,63 +1790,63 @@ var View = function View(props) {
|
|
|
1792
1790
|
|
|
1793
1791
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1794
1792
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1795
|
-
return
|
|
1796
|
-
|
|
1793
|
+
return React__default.createElement(
|
|
1794
|
+
React__default.Fragment,
|
|
1797
1795
|
null,
|
|
1798
|
-
|
|
1796
|
+
React__default.createElement(
|
|
1799
1797
|
Head,
|
|
1800
1798
|
null,
|
|
1801
|
-
|
|
1799
|
+
React__default.createElement(
|
|
1802
1800
|
'title',
|
|
1803
1801
|
{ key: 'title' },
|
|
1804
1802
|
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 : '')
|
|
1805
1803
|
),
|
|
1806
|
-
metaDescriptionSanity ?
|
|
1807
|
-
|
|
1808
|
-
passwordLock &&
|
|
1809
|
-
|
|
1804
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1805
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1806
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1807
|
+
React__default.createElement('meta', {
|
|
1810
1808
|
property: 'og:url',
|
|
1811
1809
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1812
1810
|
key: 'og:url'
|
|
1813
1811
|
}),
|
|
1814
|
-
|
|
1812
|
+
React__default.createElement('meta', {
|
|
1815
1813
|
property: 'og:title',
|
|
1816
1814
|
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 : ''),
|
|
1817
1815
|
key: 'og:title'
|
|
1818
1816
|
}),
|
|
1819
|
-
|
|
1817
|
+
React__default.createElement('meta', {
|
|
1820
1818
|
property: 'og:image',
|
|
1821
1819
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1822
1820
|
key: 'og:image'
|
|
1823
1821
|
}),
|
|
1824
|
-
|
|
1825
|
-
metaDescriptionSanity ?
|
|
1826
|
-
|
|
1827
|
-
|
|
1822
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1823
|
+
metaDescriptionSanity ? React__default.createElement('meta', { property: 'og:description', key: 'og:description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { property: 'og:description', key: 'og:description', content: meta_description }),
|
|
1824
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1825
|
+
React__default.createElement('meta', {
|
|
1828
1826
|
name: 'twitter:title',
|
|
1829
1827
|
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 : ''),
|
|
1830
1828
|
key: 'twitter:title'
|
|
1831
1829
|
}),
|
|
1832
|
-
|
|
1830
|
+
React__default.createElement('meta', {
|
|
1833
1831
|
name: 'twitter:image',
|
|
1834
1832
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1835
1833
|
key: 'twitter:image'
|
|
1836
1834
|
}),
|
|
1837
|
-
|
|
1838
|
-
metaDescriptionSanity ?
|
|
1839
|
-
canonicalTag &&
|
|
1835
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1836
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: meta_description }),
|
|
1837
|
+
canonicalTag && React__default.createElement('link', {
|
|
1840
1838
|
rel: 'canonical',
|
|
1841
1839
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1842
1840
|
key: 'canonical'
|
|
1843
1841
|
}),
|
|
1844
|
-
|
|
1842
|
+
React__default.createElement(
|
|
1845
1843
|
'noscript',
|
|
1846
1844
|
null,
|
|
1847
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1848
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1845
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1846
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1849
1847
|
)
|
|
1850
1848
|
),
|
|
1851
|
-
!needInfiniteScroll ?
|
|
1849
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1852
1850
|
infiniteScroll: true,
|
|
1853
1851
|
showRelatedArticles: showRelatedArticles,
|
|
1854
1852
|
canonicalTag: canonicalTag,
|
|
@@ -1985,7 +1983,7 @@ View.returnGetInitialProps = function () {
|
|
|
1985
1983
|
return _context.stop();
|
|
1986
1984
|
}
|
|
1987
1985
|
}
|
|
1988
|
-
}, _callee, _this
|
|
1986
|
+
}, _callee, _this);
|
|
1989
1987
|
}));
|
|
1990
1988
|
|
|
1991
1989
|
return function (_x, _x2, _x3, _x4, _x5) {
|