@mjhls/mjh-framework 1.0.819-ad-refresh → 1.0.819
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 +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +23 -23
- package/dist/cjs/AD300x250x600.js +23 -23
- package/dist/cjs/AD728x90.js +26 -26
- package/dist/cjs/ADFloatingFooter.js +22 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +22 -22
- package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-98f6bd26.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +22 -22
- package/dist/cjs/ADSponsoredResources.js +22 -22
- package/dist/cjs/ADWebcast.js +22 -22
- package/dist/cjs/ADWelcome.js +19 -19
- package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-6055cb1b.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +23 -23
- package/dist/cjs/AdSlotsProvider.js +15 -37
- package/dist/cjs/AlgoliaSearch.js +17 -17
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +47 -47
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -32
- package/dist/cjs/ArticleSeriesListing.js +32 -32
- 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 +24 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +32 -32
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +42 -42
- package/dist/cjs/DeckQueue.js +30 -30
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-82f75e49.js} +14 -14
- package/dist/cjs/EventsDeck.js +45 -45
- package/dist/cjs/ExternalResources.js +46 -46
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +11 -11
- package/dist/cjs/GridContent.js +46 -46
- package/dist/cjs/GridHero.js +12 -12
- package/dist/cjs/GroupDeck.js +13 -13
- package/dist/cjs/HamMagazine.js +37 -37
- package/dist/cjs/Hero.js +3 -3
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +44 -44
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +12 -12
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +82 -82
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +21 -21
- package/dist/cjs/MasterDeck.js +41 -41
- package/dist/cjs/MediaSeriesLanding.js +331 -342
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +41 -41
- package/dist/cjs/NavNormal.js +15 -15
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +12 -12
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +56 -56
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +33 -33
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +7 -7
- package/dist/cjs/PublicationLanding.js +58 -58
- package/dist/cjs/QueueDeckExpanded.js +37 -37
- package/dist/cjs/RecentNews.js +6 -6
- package/dist/cjs/RelatedContent.js +34 -34
- 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 +19 -19
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-b79e7df9.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +17 -17
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-560a666e.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +9 -9
- package/dist/cjs/TaxonomyDescription.js +44 -44
- package/dist/cjs/TemplateNormal.js +48 -48
- package/dist/cjs/ThumbnailCard.js +6 -6
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +37 -37
- package/dist/cjs/VideoSeriesListing.js +32 -32
- package/dist/cjs/View.js +91 -90
- package/dist/cjs/YahooHero.js +14 -14
- package/dist/cjs/YoutubeGroup.js +25 -25
- 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/{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 +43 -43
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-ea2ea5e7.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-48bd6cd5.js → index-35099a60.js} +171 -171
- 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-0e4427c8.js → index-e08f00ce.js} +3 -3
- 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-9225638f.js → index.esm-3b9b8952.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +136 -136
- 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 +26 -26
- package/dist/esm/AD300x250x600.js +26 -26
- package/dist/esm/AD728x90.js +29 -29
- package/dist/esm/ADFloatingFooter.js +28 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -28
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-ba59666b.js} +9 -9
- package/dist/esm/ADSkyscraper.js +28 -28
- package/dist/esm/ADSponsoredResources.js +28 -28
- package/dist/esm/ADWebcast.js +28 -28
- package/dist/esm/ADWelcome.js +29 -29
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-995322a1.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +26 -26
- package/dist/esm/AdSlotsProvider.js +16 -37
- package/dist/esm/AlgoliaSearch.js +42 -42
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -53
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +55 -55
- 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 +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +51 -51
- package/dist/esm/ConferenceArticleCard.js +34 -34
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +85 -85
- package/dist/esm/DeckQueue.js +67 -67
- package/dist/esm/{Dfp-be030f2a.js → Dfp-cde02d85.js} +22 -22
- package/dist/esm/EventsDeck.js +105 -105
- package/dist/esm/ExternalResources.js +72 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +141 -141
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +66 -66
- package/dist/esm/HorizontalHero.js +22 -22
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +90 -90
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +73 -73
- package/dist/esm/MediaSeriesLanding.js +621 -632
- 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/NavNormal.js +35 -35
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -104
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +105 -105
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +21 -21
- package/dist/esm/RelatedContent.js +47 -47
- 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 -32
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-1fa61a74.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-82ac7d6d.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +69 -69
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +62 -62
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +244 -243
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- 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/{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 +43 -43
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-831bc794.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-5cc7b406.js → index-acfb8079.js} +6 -6
- package/dist/esm/{index-79cfd25c.js → index-d2f90501.js} +45 -44
- package/dist/esm/{index-343d9c07.js → index-e887f3d1.js} +498 -498
- 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-e874e770.js → index.esm-d6f88d94.js} +1 -1
- package/dist/esm/index.js +131 -131
- 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 +110 -110
- 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,73 +1,73 @@
|
|
|
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-343d9c07.js';
|
|
19
|
-
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-c8477bf3.js';
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-05c216d6.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 { l as lib_3 } from './index-acfb8079.js';
|
|
43
18
|
import 'prop-types';
|
|
44
|
-
import '
|
|
19
|
+
import 'react-bootstrap/Row';
|
|
20
|
+
import 'react-bootstrap/Col';
|
|
21
|
+
import { m as moment } from './moment-12415288.js';
|
|
22
|
+
import { useRouter } from 'next/router';
|
|
23
|
+
import './isSymbol-1981418f.js';
|
|
24
|
+
import './debounce-9207d8ee.js';
|
|
25
|
+
import './toNumber-2f7a84cd.js';
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
45
27
|
import 'react-dom';
|
|
46
|
-
import '
|
|
47
|
-
import '
|
|
48
|
-
import './index-
|
|
49
|
-
import './
|
|
50
|
-
import './
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
29
|
+
import './index-51a80699.js';
|
|
30
|
+
import './index-6c12bdd5.js';
|
|
31
|
+
import { m as main_39 } from './main-aef58dbc.js';
|
|
32
|
+
import './entities-7cc3bf45.js';
|
|
33
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
34
|
+
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
35
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
51
36
|
import './Segment.js';
|
|
52
|
-
import './
|
|
37
|
+
import './Beam.js';
|
|
38
|
+
import DFPAdSlot from './AdSlot.js';
|
|
39
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
40
|
+
import './index-c7e2ac95.js';
|
|
41
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
53
42
|
import './GroupDeck.js';
|
|
54
|
-
import '
|
|
55
|
-
import './
|
|
56
|
-
import './
|
|
43
|
+
import 'react-bootstrap';
|
|
44
|
+
import './iconBase-602d52fe.js';
|
|
45
|
+
import './index.esm-3fdda599.js';
|
|
46
|
+
import { r as renderAuthor, g as getSerializers } from './index-e887f3d1.js';
|
|
47
|
+
import './util-7700fc59.js';
|
|
48
|
+
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
49
|
+
import Head from 'next/head';
|
|
50
|
+
import 'react-share';
|
|
51
|
+
import SocialShare from './SocialShare.js';
|
|
52
|
+
import './_object-to-array-7e804fce.js';
|
|
57
53
|
import 'react-bootstrap/Pagination';
|
|
58
|
-
import '
|
|
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';
|
|
54
|
+
import Button from 'react-bootstrap/Button';
|
|
66
55
|
import 'react-bootstrap/Figure';
|
|
67
|
-
import '
|
|
68
|
-
import '
|
|
69
|
-
import './
|
|
56
|
+
import Form from 'react-bootstrap/Form';
|
|
57
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
58
|
+
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
59
|
+
import 'react-bootstrap/Dropdown';
|
|
60
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
61
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
70
62
|
import './index-db3bb315.js';
|
|
63
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
64
|
+
import getQuery from './getQuery.js';
|
|
65
|
+
import { S as SeriesSlider } from './SeriesSlider-1fa61a74.js';
|
|
66
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-831bc794.js';
|
|
67
|
+
import getKeywords from './getKeywords.js';
|
|
68
|
+
import urlFor from './urlFor.js';
|
|
69
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
71
71
|
|
|
72
72
|
var getArticleSummary = function getArticleSummary(article) {
|
|
73
73
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -145,17 +145,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
145
145
|
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
return
|
|
148
|
+
return React.createElement(
|
|
149
149
|
'a',
|
|
150
150
|
{
|
|
151
151
|
href: url,
|
|
152
152
|
className: 'doc-group',
|
|
153
153
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
154
|
-
thumbnailUrl &&
|
|
155
|
-
!thumbnailUrl &&
|
|
156
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
154
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
155
|
+
!thumbnailUrl && React.createElement('p', {
|
|
156
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
157
157
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
158
|
-
|
|
158
|
+
main_39 && !thumbnailUrl && React.createElement(
|
|
159
159
|
'style',
|
|
160
160
|
{ jsx: 'true' },
|
|
161
161
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -295,38 +295,38 @@ var ISI = function ISI(props) {
|
|
|
295
295
|
}, 300);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
|
-
return
|
|
299
|
-
|
|
298
|
+
return React.createElement(
|
|
299
|
+
React.Fragment,
|
|
300
300
|
null,
|
|
301
|
-
|
|
301
|
+
React.createElement(
|
|
302
302
|
'div',
|
|
303
303
|
{ id: 'isi', ref: isi },
|
|
304
|
-
|
|
304
|
+
React.createElement(
|
|
305
305
|
'div',
|
|
306
306
|
{ id: 'isiContent' },
|
|
307
|
-
|
|
307
|
+
React.createElement(
|
|
308
308
|
'div',
|
|
309
309
|
{ onClick: function onClick() {
|
|
310
310
|
return setActive(function (prev) {
|
|
311
311
|
return !prev;
|
|
312
312
|
});
|
|
313
313
|
}, id: 'isiToggle' },
|
|
314
|
-
active ?
|
|
314
|
+
active ? React.createElement(
|
|
315
315
|
'p',
|
|
316
316
|
null,
|
|
317
317
|
'Close ',
|
|
318
|
-
|
|
319
|
-
) :
|
|
318
|
+
React.createElement(FaMinus, null)
|
|
319
|
+
) : React.createElement(
|
|
320
320
|
'p',
|
|
321
321
|
null,
|
|
322
322
|
'See More ',
|
|
323
|
-
|
|
323
|
+
React.createElement(FaPlus, null)
|
|
324
324
|
)
|
|
325
325
|
),
|
|
326
326
|
children
|
|
327
327
|
)
|
|
328
328
|
),
|
|
329
|
-
|
|
329
|
+
React.createElement(
|
|
330
330
|
'style',
|
|
331
331
|
{ jsx: true },
|
|
332
332
|
'\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 '
|
|
@@ -334,7 +334,7 @@ var ISI = function ISI(props) {
|
|
|
334
334
|
);
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
337
|
+
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";
|
|
338
338
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
339
339
|
styleInject(css);
|
|
340
340
|
|
|
@@ -348,33 +348,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
348
348
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
349
349
|
return null;
|
|
350
350
|
}
|
|
351
|
-
return
|
|
351
|
+
return React.createElement(
|
|
352
352
|
'div',
|
|
353
353
|
{ className: styles.mediaContainer },
|
|
354
354
|
articles.map(function (article, index) {
|
|
355
|
-
return
|
|
355
|
+
return React.createElement(
|
|
356
356
|
'div',
|
|
357
357
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
358
|
-
|
|
358
|
+
React.createElement(
|
|
359
359
|
'a',
|
|
360
360
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
361
|
-
article.thumbnail ?
|
|
361
|
+
article.thumbnail ? React.createElement('img', {
|
|
362
362
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
363
363
|
src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
|
|
364
364
|
alt: article.title
|
|
365
|
-
}) :
|
|
366
|
-
|
|
365
|
+
}) : React.createElement(
|
|
366
|
+
React.Fragment,
|
|
367
367
|
null,
|
|
368
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
368
|
+
fallbackImage && showRelatedArticleFallbackImage && React.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
369
369
|
)
|
|
370
370
|
),
|
|
371
|
-
|
|
371
|
+
React.createElement(
|
|
372
372
|
'div',
|
|
373
373
|
{ className: styles.mediaBody },
|
|
374
|
-
|
|
374
|
+
React.createElement(
|
|
375
375
|
'a',
|
|
376
376
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
377
|
-
|
|
377
|
+
React.createElement(
|
|
378
378
|
'div',
|
|
379
379
|
{ className: styles.cardTitle },
|
|
380
380
|
article.title
|
|
@@ -526,9 +526,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
526
526
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
527
527
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
528
528
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
529
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
530
|
-
props.active
|
|
531
|
-
|
|
529
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
530
|
+
active = props.active,
|
|
531
|
+
containerHeight = props.containerHeight,
|
|
532
532
|
_props$refreshFlag = props.refreshFlag,
|
|
533
533
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
534
534
|
disqusConfig = props.disqusConfig,
|
|
@@ -588,9 +588,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
588
588
|
setArticleBody = _useState10[1];
|
|
589
589
|
|
|
590
590
|
var _useState11 = useState(true),
|
|
591
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
592
|
-
_useState12[0]
|
|
593
|
-
|
|
591
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
592
|
+
previewAd = _useState12[0],
|
|
593
|
+
setPreviewAd = _useState12[1];
|
|
594
594
|
|
|
595
595
|
useEffect(function () {
|
|
596
596
|
var path = window && window.location && window.location.search;
|
|
@@ -611,7 +611,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
611
611
|
};
|
|
612
612
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
613
613
|
if (biography) {
|
|
614
|
-
return
|
|
614
|
+
return React.createElement(BlockContent, _extends({
|
|
615
615
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
616
616
|
blocks: [biography]
|
|
617
617
|
}, client.config()));
|
|
@@ -621,9 +621,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
621
621
|
var url = article.url.current;
|
|
622
622
|
|
|
623
623
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
624
|
-
return
|
|
624
|
+
return React.createElement(ISIContent, null);
|
|
625
625
|
} else if (nationalPage === url && ISIContent) {
|
|
626
|
-
return
|
|
626
|
+
return React.createElement(ISIContent, { national: true });
|
|
627
627
|
}
|
|
628
628
|
return null;
|
|
629
629
|
};
|
|
@@ -654,19 +654,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
654
654
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
655
655
|
}
|
|
656
656
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
657
|
-
return
|
|
657
|
+
return React.createElement(
|
|
658
658
|
'div',
|
|
659
659
|
null,
|
|
660
660
|
relatedLinks.map(function (relatedLink, index) {
|
|
661
|
-
return
|
|
661
|
+
return React.createElement(
|
|
662
662
|
'span',
|
|
663
663
|
{ key: index, className: 'related-link' },
|
|
664
|
-
|
|
664
|
+
React.createElement(
|
|
665
665
|
'a',
|
|
666
666
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
667
667
|
relatedLink.label
|
|
668
668
|
),
|
|
669
|
-
|
|
669
|
+
React.createElement(
|
|
670
670
|
'style',
|
|
671
671
|
{ jsx: 'true' },
|
|
672
672
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -681,23 +681,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
681
681
|
};
|
|
682
682
|
|
|
683
683
|
var RelatedContent = function RelatedContent() {
|
|
684
|
-
return
|
|
684
|
+
return React.createElement(
|
|
685
685
|
'section',
|
|
686
686
|
{ id: 'related-content-section', className: 'my-1' },
|
|
687
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
687
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
688
688
|
'p',
|
|
689
689
|
{ className: 'mb-0' },
|
|
690
|
-
|
|
690
|
+
React.createElement(
|
|
691
691
|
'b',
|
|
692
692
|
null,
|
|
693
693
|
'Related Content:'
|
|
694
694
|
)
|
|
695
695
|
),
|
|
696
|
-
|
|
697
|
-
|
|
696
|
+
React.createElement(RelevantTopics, null),
|
|
697
|
+
React.createElement(
|
|
698
698
|
'div',
|
|
699
699
|
{ className: 'pt-2' },
|
|
700
|
-
|
|
700
|
+
React.createElement(RelatedArticle, {
|
|
701
701
|
articles: article.relatedArticle,
|
|
702
702
|
client: client,
|
|
703
703
|
fallbackImage: props.Settings.logo,
|
|
@@ -708,28 +708,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
708
708
|
};
|
|
709
709
|
|
|
710
710
|
var form = function form() {
|
|
711
|
-
return
|
|
712
|
-
|
|
711
|
+
return React.createElement(
|
|
712
|
+
React.Fragment,
|
|
713
713
|
null,
|
|
714
|
-
|
|
714
|
+
React.createElement(
|
|
715
715
|
Head,
|
|
716
716
|
null,
|
|
717
|
-
|
|
717
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
718
718
|
),
|
|
719
|
-
|
|
719
|
+
React.createElement(
|
|
720
720
|
'div',
|
|
721
721
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
722
|
-
|
|
722
|
+
React.createElement(
|
|
723
723
|
Form,
|
|
724
724
|
{
|
|
725
725
|
inline: true,
|
|
726
726
|
onSubmit: function onSubmit(e) {
|
|
727
727
|
e.preventDefault();
|
|
728
728
|
} },
|
|
729
|
-
|
|
729
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
730
730
|
return setPasswordKey(e.target.value);
|
|
731
731
|
}, placeholder: 'Password' }),
|
|
732
|
-
|
|
732
|
+
React.createElement(
|
|
733
733
|
Button,
|
|
734
734
|
{
|
|
735
735
|
variant: 'primary',
|
|
@@ -779,31 +779,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
779
779
|
setContextualADFlag(true);
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
|
-
return
|
|
783
|
-
|
|
782
|
+
return React.createElement(
|
|
783
|
+
React.Fragment,
|
|
784
784
|
null,
|
|
785
|
-
|
|
785
|
+
React.createElement(BlockContent, _extends({
|
|
786
786
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
787
787
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
788
788
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
789
789
|
}, client.config())),
|
|
790
|
-
|
|
791
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
792
|
-
|
|
790
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
791
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
792
|
+
React.createElement(
|
|
793
793
|
'div',
|
|
794
794
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
795
|
-
|
|
795
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
796
796
|
refreshFlag: refreshFlag
|
|
797
797
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
798
798
|
}))
|
|
799
799
|
),
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
801
|
+
React.createElement(
|
|
802
802
|
'div',
|
|
803
803
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
804
|
-
|
|
804
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
805
805
|
),
|
|
806
|
-
|
|
806
|
+
React.createElement(BlockContent, _extends({
|
|
807
807
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
808
808
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
809
809
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -828,26 +828,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
828
828
|
if (seriesInfo.hasVideo) {
|
|
829
829
|
_selectedIndex = seriesInfo.videoIndex;
|
|
830
830
|
}
|
|
831
|
-
return
|
|
832
|
-
|
|
831
|
+
return React.createElement(
|
|
832
|
+
React.Fragment,
|
|
833
833
|
null,
|
|
834
|
-
|
|
834
|
+
React.createElement(BlockContent, _extends({
|
|
835
835
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
836
836
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
837
837
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
838
838
|
}, client.config())),
|
|
839
|
-
contextualADFlag &&
|
|
840
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
841
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
839
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
840
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
841
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
842
842
|
'div',
|
|
843
843
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
844
|
-
|
|
844
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
845
845
|
refreshFlag: refreshFlag
|
|
846
846
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
847
847
|
}))
|
|
848
848
|
),
|
|
849
|
-
contextualADFlag &&
|
|
850
|
-
|
|
849
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
850
|
+
React.createElement(BlockContent, _extends({
|
|
851
851
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
852
852
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
853
853
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -877,22 +877,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
|
|
880
|
-
return
|
|
881
|
-
|
|
880
|
+
return React.createElement(
|
|
881
|
+
React.Fragment,
|
|
882
882
|
null,
|
|
883
|
-
|
|
883
|
+
React.createElement(BlockContent, _extends({
|
|
884
884
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
885
885
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
886
886
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
887
887
|
}, client.config())),
|
|
888
|
-
|
|
889
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
890
|
-
|
|
888
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
889
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
890
|
+
React.createElement(
|
|
891
891
|
'div',
|
|
892
892
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
893
|
-
|
|
893
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
894
894
|
),
|
|
895
|
-
|
|
895
|
+
React.createElement(BlockContent, _extends({
|
|
896
896
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
897
897
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
898
898
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -904,16 +904,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
904
904
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
905
905
|
}
|
|
906
906
|
|
|
907
|
-
return
|
|
907
|
+
return React.createElement(
|
|
908
908
|
'div',
|
|
909
909
|
null,
|
|
910
|
-
|
|
910
|
+
React.createElement(BlockContent, _extends({
|
|
911
911
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
912
912
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
913
913
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
914
914
|
}, client.config())),
|
|
915
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
916
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
915
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
916
|
+
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
917
917
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
918
918
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
919
919
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -958,8 +958,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
958
958
|
shareSubject = shareOptions.shareSubject,
|
|
959
959
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
960
960
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
961
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
962
|
-
shareOptions.shareSiteTitle;
|
|
961
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
962
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
963
963
|
|
|
964
964
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
965
965
|
var shareTitle = article.title;
|
|
@@ -999,10 +999,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
999
999
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1000
1000
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1001
1001
|
|
|
1002
|
-
return
|
|
1003
|
-
|
|
1002
|
+
return React.createElement(
|
|
1003
|
+
React.Fragment,
|
|
1004
1004
|
null,
|
|
1005
|
-
|
|
1005
|
+
React.createElement(
|
|
1006
1006
|
VisibilitySensor,
|
|
1007
1007
|
{
|
|
1008
1008
|
partialVisibility: true,
|
|
@@ -1015,61 +1015,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
} },
|
|
1018
|
-
|
|
1018
|
+
React.createElement(
|
|
1019
1019
|
'div',
|
|
1020
1020
|
{ id: 'article__block', ref: ref },
|
|
1021
|
-
|
|
1021
|
+
React.createElement(
|
|
1022
1022
|
'div',
|
|
1023
1023
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1024
1024
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1025
|
-
!isVideoSeries &&
|
|
1025
|
+
!isVideoSeries && React.createElement(
|
|
1026
1026
|
'div',
|
|
1027
1027
|
null,
|
|
1028
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1028
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React.createElement(
|
|
1029
1029
|
'p',
|
|
1030
1030
|
{ style: { fontSize: '14px' } },
|
|
1031
1031
|
article.documentGroup.name,
|
|
1032
1032
|
' - Episode ',
|
|
1033
1033
|
episodeNumber
|
|
1034
1034
|
),
|
|
1035
|
-
|
|
1035
|
+
React.createElement(
|
|
1036
1036
|
'h1',
|
|
1037
1037
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1038
1038
|
title
|
|
1039
1039
|
)
|
|
1040
1040
|
),
|
|
1041
|
-
|
|
1041
|
+
React.createElement(
|
|
1042
1042
|
'div',
|
|
1043
1043
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1044
|
-
|
|
1044
|
+
React.createElement(
|
|
1045
1045
|
'style',
|
|
1046
1046
|
{ jsx: 'true' },
|
|
1047
1047
|
'\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 '
|
|
1048
1048
|
),
|
|
1049
|
-
|
|
1049
|
+
React.createElement(
|
|
1050
1050
|
'div',
|
|
1051
1051
|
{ className: 'left-wrap' },
|
|
1052
|
-
!isVideoSeries && showPublished &&
|
|
1052
|
+
!isVideoSeries && showPublished && React.createElement(
|
|
1053
1053
|
'div',
|
|
1054
1054
|
null,
|
|
1055
1055
|
moment(published).format('LL')
|
|
1056
1056
|
)
|
|
1057
1057
|
/* Show Published date */
|
|
1058
1058
|
,
|
|
1059
|
-
|
|
1059
|
+
React.createElement(
|
|
1060
1060
|
'div',
|
|
1061
1061
|
{ className: 'mb-3' },
|
|
1062
1062
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1063
|
-
return
|
|
1063
|
+
return React.createElement(
|
|
1064
1064
|
'span',
|
|
1065
1065
|
{ key: index },
|
|
1066
1066
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
1067
1067
|
);
|
|
1068
1068
|
}),
|
|
1069
|
-
|
|
1069
|
+
React.createElement(
|
|
1070
1070
|
'div',
|
|
1071
1071
|
null,
|
|
1072
|
-
source &&
|
|
1072
|
+
source && React.createElement(
|
|
1073
1073
|
'p',
|
|
1074
1074
|
{
|
|
1075
1075
|
style: {
|
|
@@ -1084,13 +1084,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1084
1084
|
source
|
|
1085
1085
|
)
|
|
1086
1086
|
),
|
|
1087
|
-
issue &&
|
|
1087
|
+
issue && React.createElement(
|
|
1088
1088
|
'div',
|
|
1089
1089
|
{ className: 'volume-issue' },
|
|
1090
|
-
issue.publication && issue.publication.name &&
|
|
1090
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
1091
1091
|
'span',
|
|
1092
1092
|
{ className: 'mb-0' },
|
|
1093
|
-
|
|
1093
|
+
React.createElement(
|
|
1094
1094
|
'b',
|
|
1095
1095
|
null,
|
|
1096
1096
|
issue.publication.name
|
|
@@ -1098,34 +1098,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1098
1098
|
',',
|
|
1099
1099
|
' '
|
|
1100
1100
|
),
|
|
1101
|
-
issue.name &&
|
|
1101
|
+
issue.name && React.createElement(
|
|
1102
1102
|
'span',
|
|
1103
1103
|
{ className: 'mb-0' },
|
|
1104
1104
|
issue.name,
|
|
1105
1105
|
', '
|
|
1106
1106
|
),
|
|
1107
|
-
issue.volume &&
|
|
1107
|
+
issue.volume && React.createElement(
|
|
1108
1108
|
'span',
|
|
1109
1109
|
null,
|
|
1110
1110
|
'Volume ' + issue.volume,
|
|
1111
1111
|
','
|
|
1112
1112
|
),
|
|
1113
|
-
issue.issueNumber &&
|
|
1113
|
+
issue.issueNumber && React.createElement(
|
|
1114
1114
|
'span',
|
|
1115
1115
|
null,
|
|
1116
1116
|
' Issue ' + issue.issueNumber
|
|
1117
1117
|
)
|
|
1118
1118
|
),
|
|
1119
|
-
pageNumber &&
|
|
1119
|
+
pageNumber && React.createElement(
|
|
1120
1120
|
'div',
|
|
1121
1121
|
{ className: 'article-pageNumber' },
|
|
1122
1122
|
'Pages: ' + pageNumber
|
|
1123
1123
|
)
|
|
1124
1124
|
),
|
|
1125
|
-
!isVideoSeries && showSocialShare &&
|
|
1125
|
+
!isVideoSeries && showSocialShare && React.createElement(
|
|
1126
1126
|
'p',
|
|
1127
1127
|
null,
|
|
1128
|
-
|
|
1128
|
+
React.createElement(SocialShare, {
|
|
1129
1129
|
shareUrl: shareUrl,
|
|
1130
1130
|
shareTitle: shareTitle,
|
|
1131
1131
|
shareVia: shareVia,
|
|
@@ -1141,27 +1141,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1141
1141
|
})
|
|
1142
1142
|
)
|
|
1143
1143
|
),
|
|
1144
|
-
|
|
1144
|
+
React.createElement(
|
|
1145
1145
|
'div',
|
|
1146
1146
|
null,
|
|
1147
|
-
|
|
1147
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1148
1148
|
)
|
|
1149
1149
|
),
|
|
1150
|
-
!isVideoSeries && summary && display_summary &&
|
|
1150
|
+
!isVideoSeries && summary && display_summary && React.createElement(
|
|
1151
1151
|
'p',
|
|
1152
1152
|
null,
|
|
1153
|
-
|
|
1153
|
+
React.createElement(
|
|
1154
1154
|
'em',
|
|
1155
1155
|
null,
|
|
1156
1156
|
summary
|
|
1157
1157
|
)
|
|
1158
1158
|
),
|
|
1159
|
-
|
|
1159
|
+
React.createElement(
|
|
1160
1160
|
'div',
|
|
1161
1161
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1162
|
-
|
|
1162
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1163
1163
|
if (index === 0) {
|
|
1164
|
-
return
|
|
1164
|
+
return React.createElement(
|
|
1165
1165
|
'div',
|
|
1166
1166
|
{
|
|
1167
1167
|
key: index,
|
|
@@ -1178,24 +1178,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
})
|
|
1180
1180
|
),
|
|
1181
|
-
|
|
1181
|
+
React.createElement(
|
|
1182
1182
|
'div',
|
|
1183
1183
|
{ className: 'block-content mt-3' },
|
|
1184
1184
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1185
|
-
|
|
1186
|
-
|
|
1185
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
1186
|
+
React.createElement(
|
|
1187
1187
|
'noscript',
|
|
1188
1188
|
null,
|
|
1189
|
-
|
|
1189
|
+
React.createElement(
|
|
1190
1190
|
'div',
|
|
1191
1191
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1192
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1192
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
1193
1193
|
'a',
|
|
1194
1194
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1195
1195
|
'Previous ',
|
|
1196
1196
|
props.article.seriesDetail.type
|
|
1197
1197
|
),
|
|
1198
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1198
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
1199
1199
|
'a',
|
|
1200
1200
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1201
1201
|
'Next ',
|
|
@@ -1203,26 +1203,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1203
1203
|
)
|
|
1204
1204
|
)
|
|
1205
1205
|
),
|
|
1206
|
-
issue && issue.url &&
|
|
1206
|
+
issue && issue.url && React.createElement(
|
|
1207
1207
|
'a',
|
|
1208
1208
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1209
|
-
|
|
1209
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1210
1210
|
'Download Issue : ',
|
|
1211
1211
|
issue.name
|
|
1212
1212
|
)
|
|
1213
1213
|
),
|
|
1214
|
-
|
|
1215
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1214
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1215
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React.createElement(
|
|
1216
1216
|
'div',
|
|
1217
1217
|
null,
|
|
1218
1218
|
false ,
|
|
1219
|
-
|
|
1219
|
+
React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1220
1220
|
),
|
|
1221
|
-
showRelatedArticles && !showIsi &&
|
|
1222
|
-
disqusConfig && showDisqus &&
|
|
1221
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null),
|
|
1222
|
+
disqusConfig && showDisqus && React.createElement(
|
|
1223
1223
|
'div',
|
|
1224
1224
|
{ id: 'disqusContainer' },
|
|
1225
|
-
|
|
1225
|
+
React.createElement(DiscussionEmbed, {
|
|
1226
1226
|
shortname: disqusConfig.shortname,
|
|
1227
1227
|
config: {
|
|
1228
1228
|
url: disqusConfig.url,
|
|
@@ -1235,30 +1235,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1235
1235
|
renderIsiContent(props.article)
|
|
1236
1236
|
)
|
|
1237
1237
|
),
|
|
1238
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1238
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1239
1239
|
ISI,
|
|
1240
1240
|
null,
|
|
1241
|
-
|
|
1241
|
+
React.createElement(BlockContent, {
|
|
1242
1242
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1243
1243
|
blocks: isi
|
|
1244
1244
|
})
|
|
1245
1245
|
),
|
|
1246
|
-
|
|
1246
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1247
1247
|
if (index > 0) {
|
|
1248
|
-
return
|
|
1248
|
+
return React.createElement(
|
|
1249
1249
|
'div',
|
|
1250
1250
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1251
1251
|
ad.component
|
|
1252
1252
|
);
|
|
1253
1253
|
}
|
|
1254
1254
|
}),
|
|
1255
|
-
|
|
1255
|
+
React.createElement(
|
|
1256
1256
|
'noscript',
|
|
1257
1257
|
null,
|
|
1258
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1258
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1259
1259
|
'div',
|
|
1260
1260
|
{ style: { textAlign: 'center' } },
|
|
1261
|
-
|
|
1261
|
+
React.createElement(
|
|
1262
1262
|
'a',
|
|
1263
1263
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1264
1264
|
'Related Article ',
|
|
@@ -1266,7 +1266,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1266
1266
|
)
|
|
1267
1267
|
)
|
|
1268
1268
|
),
|
|
1269
|
-
props.infiniteScroll &&
|
|
1269
|
+
props.infiniteScroll && React.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1270
1270
|
);
|
|
1271
1271
|
};
|
|
1272
1272
|
|
|
@@ -1281,16 +1281,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
|
|
1284
|
-
var _this
|
|
1284
|
+
var _this = undefined;
|
|
1285
1285
|
|
|
1286
1286
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1287
1287
|
var _props$prevUrl = props.prevUrl,
|
|
1288
1288
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1289
1289
|
Ads = props.Ads,
|
|
1290
1290
|
_props$maxListLength = props.maxListLength,
|
|
1291
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1292
|
-
props.sponsoredTaxonomies
|
|
1293
|
-
|
|
1291
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1292
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1293
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1294
1294
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1295
1295
|
_props$authorPrefix = props.authorPrefix,
|
|
1296
1296
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1339,7 +1339,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1339
1339
|
return item.url.current === path;
|
|
1340
1340
|
});
|
|
1341
1341
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1342
|
-
if (!
|
|
1342
|
+
if (!main_39) {
|
|
1343
1343
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1344
1344
|
if (window.googletag && googletag.pubadsReady) {
|
|
1345
1345
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1356,7 +1356,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
1358
|
//Refresh leaderboard ad on mobile
|
|
1359
|
-
if (
|
|
1359
|
+
if (main_39) {
|
|
1360
1360
|
var leaderboardSlotId = '';
|
|
1361
1361
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1362
1362
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1460,7 +1460,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1460
1460
|
return _context.stop();
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
}, _callee, _this
|
|
1463
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1464
1464
|
}));
|
|
1465
1465
|
|
|
1466
1466
|
return function loadmore() {
|
|
@@ -1505,14 +1505,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1505
1505
|
refreshAD(path);
|
|
1506
1506
|
};
|
|
1507
1507
|
|
|
1508
|
-
return
|
|
1508
|
+
return React.createElement(
|
|
1509
1509
|
InfiniteScroll,
|
|
1510
1510
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1511
1511
|
queueData.map(function (article, index) {
|
|
1512
|
-
return
|
|
1513
|
-
|
|
1512
|
+
return React.createElement(
|
|
1513
|
+
React.Fragment,
|
|
1514
1514
|
null,
|
|
1515
|
-
|
|
1515
|
+
React.createElement(Article, _extends({
|
|
1516
1516
|
key: index
|
|
1517
1517
|
}, props, {
|
|
1518
1518
|
containerHeight: containerHeight,
|
|
@@ -1530,7 +1530,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1530
1530
|
);
|
|
1531
1531
|
};
|
|
1532
1532
|
|
|
1533
|
-
var _this = undefined;
|
|
1533
|
+
var _this$1 = undefined;
|
|
1534
1534
|
|
|
1535
1535
|
var View = function View(props) {
|
|
1536
1536
|
var router = useRouter();
|
|
@@ -1540,9 +1540,9 @@ var View = function View(props) {
|
|
|
1540
1540
|
hideComments = _props$article.hideComments,
|
|
1541
1541
|
content_placement = _props$article.content_placement,
|
|
1542
1542
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1543
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1544
|
-
props.sponsoredTaxonomies
|
|
1545
|
-
|
|
1543
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1544
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1545
|
+
Ads = props.Ads,
|
|
1546
1546
|
setCustomDimensions = props.setCustomDimensions,
|
|
1547
1547
|
statusCode = props.statusCode,
|
|
1548
1548
|
prevUrl = props.prevUrl,
|
|
@@ -1555,9 +1555,9 @@ var View = function View(props) {
|
|
|
1555
1555
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1556
1556
|
var _props$article2 = props.article,
|
|
1557
1557
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1558
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1559
|
-
_props$article2.description
|
|
1560
|
-
|
|
1558
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1559
|
+
description = _props$article2.description,
|
|
1560
|
+
title = _props$article2.title,
|
|
1561
1561
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1562
1562
|
|
|
1563
1563
|
var _useState = useState(0),
|
|
@@ -1618,6 +1618,7 @@ var View = function View(props) {
|
|
|
1618
1618
|
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && (!article.documentGroup || !article.documentGroup.isSeries) && !showDisqus;
|
|
1619
1619
|
|
|
1620
1620
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1621
|
+
description = null;
|
|
1621
1622
|
title = null;
|
|
1622
1623
|
}
|
|
1623
1624
|
|
|
@@ -1654,63 +1655,63 @@ var View = function View(props) {
|
|
|
1654
1655
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1655
1656
|
}
|
|
1656
1657
|
|
|
1657
|
-
return
|
|
1658
|
-
|
|
1658
|
+
return React.createElement(
|
|
1659
|
+
React.Fragment,
|
|
1659
1660
|
null,
|
|
1660
|
-
|
|
1661
|
+
React.createElement(
|
|
1661
1662
|
Head,
|
|
1662
1663
|
null,
|
|
1663
|
-
|
|
1664
|
+
React.createElement(
|
|
1664
1665
|
'title',
|
|
1665
1666
|
{ key: 'title' },
|
|
1666
1667
|
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 : '')
|
|
1667
1668
|
),
|
|
1668
|
-
meta_description &&
|
|
1669
|
-
|
|
1670
|
-
passwordLock &&
|
|
1671
|
-
|
|
1669
|
+
meta_description && React.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1670
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1671
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1672
|
+
React.createElement('meta', {
|
|
1672
1673
|
property: 'og:url',
|
|
1673
1674
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1674
1675
|
key: 'og:url'
|
|
1675
1676
|
}),
|
|
1676
|
-
|
|
1677
|
+
React.createElement('meta', {
|
|
1677
1678
|
property: 'og:title',
|
|
1678
1679
|
content: seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1679
1680
|
key: 'og:title'
|
|
1680
1681
|
}),
|
|
1681
|
-
|
|
1682
|
+
React.createElement('meta', {
|
|
1682
1683
|
property: 'og:image',
|
|
1683
1684
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1684
1685
|
key: 'og:image'
|
|
1685
1686
|
}),
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1687
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1688
|
+
React.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1689
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1690
|
+
React.createElement('meta', {
|
|
1690
1691
|
name: 'twitter:title',
|
|
1691
1692
|
content: seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1692
1693
|
key: 'twitter:title'
|
|
1693
1694
|
}),
|
|
1694
|
-
|
|
1695
|
+
React.createElement('meta', {
|
|
1695
1696
|
name: 'twitter:image',
|
|
1696
1697
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1697
1698
|
key: 'twitter:image'
|
|
1698
1699
|
}),
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
canonicalTag &&
|
|
1700
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1701
|
+
React.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1702
|
+
canonicalTag && React.createElement('link', {
|
|
1702
1703
|
rel: 'canonical',
|
|
1703
1704
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1704
1705
|
key: 'canonical'
|
|
1705
1706
|
}),
|
|
1706
|
-
|
|
1707
|
+
React.createElement(
|
|
1707
1708
|
'noscript',
|
|
1708
1709
|
null,
|
|
1709
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1710
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1710
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1711
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1711
1712
|
)
|
|
1712
1713
|
),
|
|
1713
|
-
!needInfiniteScroll ?
|
|
1714
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1714
1715
|
infiniteScroll: true,
|
|
1715
1716
|
showRelatedArticles: showRelatedArticles,
|
|
1716
1717
|
canonicalTag: canonicalTag,
|
|
@@ -1847,7 +1848,7 @@ View.returnGetInitialProps = function () {
|
|
|
1847
1848
|
return _context.stop();
|
|
1848
1849
|
}
|
|
1849
1850
|
}
|
|
1850
|
-
}, _callee, _this);
|
|
1851
|
+
}, _callee, _this$1);
|
|
1851
1852
|
}));
|
|
1852
1853
|
|
|
1853
1854
|
return function (_x, _x2, _x3, _x4, _x5) {
|