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