@mjhls/mjh-framework 1.0.862 → 1.0.863-author-details-v1
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 +1 -1
- 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-25d48cc2.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-a535a768.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 +14103 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -49
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +244 -208
- 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 +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +31 -30
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-391fd124.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- 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 +47 -46
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -46
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -55
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +738 -882
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- 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 +2770 -65
- 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 +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-19548e2a.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 +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +33 -32
- package/dist/cjs/View.js +94 -90
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- 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/{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 +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-a9a871f0.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-3c2fa34e.js → index-04a5a4a2.js} +175 -174
- package/dist/cjs/{index-0e4427c8.js → index-2cf30c83.js} +5 -470
- package/dist/cjs/{index-f86bb269.js → index-6367b7bf.js} +35 -35
- 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-e2e62963.js +89 -0
- 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-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-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-56a3db8b.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-53edb995.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 +14124 -51
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- 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 -554
- package/dist/esm/AuthWrapper.js +264 -228
- 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 +20 -20
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +69 -68
- package/dist/esm/{Dfp-be030f2a.js → Dfp-2f9796e1.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- 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 +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- 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 +64 -63
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +752 -896
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +103 -103
- 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 +2818 -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 +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-7d89f4d9.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-47815365.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 +25 -25
- 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 +250 -246
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- 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-4abff0b1.js} +3 -3
- 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 +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-bd800589.js} +2 -2
- 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-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- package/dist/esm/{index-fce5c5b6.js → index-cf54da7f.js} +571 -570
- package/dist/esm/{index-5cc7b406.js → index-f7fb1e25.js} +7 -472
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- 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-747e7d25.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-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 +1 -1
- 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/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
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-fce5c5b6.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-b6f49411.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-c6222053.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_40 } from './main-747e7d25.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-cf54da7f.js';
|
|
50
|
+
import './util-7700fc59.js';
|
|
51
|
+
import './brightcove-react-player-loader.es-4abff0b1.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-7d89f4d9.js';
|
|
71
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-bd800589.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_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
160
161
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
161
|
-
|
|
162
|
+
main_40 && !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 '
|
|
@@ -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
|
|
@@ -511,7 +512,7 @@ function generateSchema(props) {
|
|
|
511
512
|
}
|
|
512
513
|
|
|
513
514
|
var Schema = function Schema(props) {
|
|
514
|
-
return
|
|
515
|
+
return React.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
|
|
515
516
|
};
|
|
516
517
|
|
|
517
518
|
var Article = forwardRef(function (props, ref) {
|
|
@@ -580,6 +581,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
580
581
|
videoAccountIDs = props.videoAccountIDs,
|
|
581
582
|
drupalLeadSettings = props.drupalLeadSettings,
|
|
582
583
|
currentPage = props.currentPage,
|
|
584
|
+
_props$showAuthorDeta = props.showAuthorDetails,
|
|
585
|
+
showAuthorDetails = _props$showAuthorDeta === undefined ? true : _props$showAuthorDeta,
|
|
583
586
|
_props$article = props.article,
|
|
584
587
|
title = _props$article.title,
|
|
585
588
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -617,9 +620,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
617
620
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
618
621
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
619
622
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
620
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
621
|
-
props.active
|
|
622
|
-
|
|
623
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
624
|
+
active = props.active,
|
|
625
|
+
containerHeight = props.containerHeight,
|
|
623
626
|
_props$refreshFlag = props.refreshFlag,
|
|
624
627
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
625
628
|
disqusConfig = props.disqusConfig,
|
|
@@ -679,9 +682,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
679
682
|
setArticleBody = _useState10[1];
|
|
680
683
|
|
|
681
684
|
var _useState11 = useState(true),
|
|
682
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
683
|
-
_useState12[0]
|
|
684
|
-
|
|
685
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
686
|
+
previewAd = _useState12[0],
|
|
687
|
+
setPreviewAd = _useState12[1];
|
|
685
688
|
|
|
686
689
|
useEffect(function () {
|
|
687
690
|
var path = window && window.location && window.location.search;
|
|
@@ -702,7 +705,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
702
705
|
};
|
|
703
706
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
704
707
|
if (biography) {
|
|
705
|
-
return
|
|
708
|
+
return React.createElement(BlockContent, _extends({
|
|
706
709
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
707
710
|
blocks: [biography]
|
|
708
711
|
}, client.config()));
|
|
@@ -712,9 +715,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
712
715
|
var url = article.url.current;
|
|
713
716
|
|
|
714
717
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
715
|
-
return
|
|
718
|
+
return React.createElement(ISIContent, null);
|
|
716
719
|
} else if (nationalPage === url && ISIContent) {
|
|
717
|
-
return
|
|
720
|
+
return React.createElement(ISIContent, { national: true });
|
|
718
721
|
}
|
|
719
722
|
return null;
|
|
720
723
|
};
|
|
@@ -748,19 +751,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
748
751
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
749
752
|
}
|
|
750
753
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
751
|
-
return
|
|
754
|
+
return React.createElement(
|
|
752
755
|
'div',
|
|
753
756
|
null,
|
|
754
757
|
relatedLinks.map(function (relatedLink, index) {
|
|
755
|
-
return
|
|
758
|
+
return React.createElement(
|
|
756
759
|
'span',
|
|
757
760
|
{ key: index, className: 'related-link' },
|
|
758
|
-
|
|
761
|
+
React.createElement(
|
|
759
762
|
'a',
|
|
760
763
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
761
764
|
relatedLink.label
|
|
762
765
|
),
|
|
763
|
-
|
|
766
|
+
React.createElement(
|
|
764
767
|
'style',
|
|
765
768
|
{ jsx: 'true' },
|
|
766
769
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -775,23 +778,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
775
778
|
};
|
|
776
779
|
|
|
777
780
|
var RelatedContent = function RelatedContent() {
|
|
778
|
-
return
|
|
781
|
+
return React.createElement(
|
|
779
782
|
'section',
|
|
780
783
|
{ id: 'related-content-section', className: 'my-1' },
|
|
781
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
784
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
782
785
|
'p',
|
|
783
786
|
{ className: 'mb-0' },
|
|
784
|
-
|
|
787
|
+
React.createElement(
|
|
785
788
|
'b',
|
|
786
789
|
null,
|
|
787
790
|
'Related Content:'
|
|
788
791
|
)
|
|
789
792
|
),
|
|
790
|
-
|
|
791
|
-
|
|
793
|
+
React.createElement(RelevantTopics, null),
|
|
794
|
+
React.createElement(
|
|
792
795
|
'div',
|
|
793
796
|
{ className: 'pt-2' },
|
|
794
|
-
|
|
797
|
+
React.createElement(RelatedArticle, {
|
|
795
798
|
articles: article.relatedArticle,
|
|
796
799
|
client: client,
|
|
797
800
|
fallbackImage: props.Settings.logo,
|
|
@@ -802,28 +805,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
802
805
|
};
|
|
803
806
|
|
|
804
807
|
var form = function form() {
|
|
805
|
-
return
|
|
806
|
-
|
|
808
|
+
return React.createElement(
|
|
809
|
+
React.Fragment,
|
|
807
810
|
null,
|
|
808
|
-
|
|
811
|
+
React.createElement(
|
|
809
812
|
Head,
|
|
810
813
|
null,
|
|
811
|
-
|
|
814
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
812
815
|
),
|
|
813
|
-
|
|
816
|
+
React.createElement(
|
|
814
817
|
'div',
|
|
815
818
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
816
|
-
|
|
819
|
+
React.createElement(
|
|
817
820
|
Form,
|
|
818
821
|
{
|
|
819
822
|
inline: true,
|
|
820
823
|
onSubmit: function onSubmit(e) {
|
|
821
824
|
e.preventDefault();
|
|
822
825
|
} },
|
|
823
|
-
|
|
826
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
824
827
|
return setPasswordKey(e.target.value);
|
|
825
828
|
}, placeholder: 'Password' }),
|
|
826
|
-
|
|
829
|
+
React.createElement(
|
|
827
830
|
Button,
|
|
828
831
|
{
|
|
829
832
|
variant: 'primary',
|
|
@@ -873,31 +876,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
873
876
|
setContextualADFlag(true);
|
|
874
877
|
}
|
|
875
878
|
};
|
|
876
|
-
return
|
|
877
|
-
|
|
879
|
+
return React.createElement(
|
|
880
|
+
React.Fragment,
|
|
878
881
|
null,
|
|
879
|
-
|
|
882
|
+
React.createElement(BlockContent, _extends({
|
|
880
883
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
881
884
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
882
885
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
883
886
|
}, client.config())),
|
|
884
|
-
|
|
885
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
886
|
-
|
|
887
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
888
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
889
|
+
React.createElement(
|
|
887
890
|
'div',
|
|
888
891
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
889
|
-
|
|
892
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
890
893
|
refreshFlag: refreshFlag
|
|
891
894
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
892
895
|
}))
|
|
893
896
|
),
|
|
894
|
-
|
|
895
|
-
|
|
897
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
898
|
+
React.createElement(
|
|
896
899
|
'div',
|
|
897
900
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
898
|
-
|
|
901
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
899
902
|
),
|
|
900
|
-
|
|
903
|
+
React.createElement(BlockContent, _extends({
|
|
901
904
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
902
905
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
903
906
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -922,26 +925,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
922
925
|
if (seriesInfo.hasVideo) {
|
|
923
926
|
_selectedIndex = seriesInfo.videoIndex;
|
|
924
927
|
}
|
|
925
|
-
return
|
|
926
|
-
|
|
928
|
+
return React.createElement(
|
|
929
|
+
React.Fragment,
|
|
927
930
|
null,
|
|
928
|
-
|
|
931
|
+
React.createElement(BlockContent, _extends({
|
|
929
932
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
930
933
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
931
934
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
932
935
|
}, client.config())),
|
|
933
|
-
contextualADFlag &&
|
|
934
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
935
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
936
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
937
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
938
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
936
939
|
'div',
|
|
937
940
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
938
|
-
|
|
941
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
939
942
|
refreshFlag: refreshFlag
|
|
940
943
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
941
944
|
}))
|
|
942
945
|
),
|
|
943
|
-
contextualADFlag &&
|
|
944
|
-
|
|
946
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
947
|
+
React.createElement(BlockContent, _extends({
|
|
945
948
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
946
949
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
947
950
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -971,22 +974,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
971
974
|
}
|
|
972
975
|
};
|
|
973
976
|
|
|
974
|
-
return
|
|
975
|
-
|
|
977
|
+
return React.createElement(
|
|
978
|
+
React.Fragment,
|
|
976
979
|
null,
|
|
977
|
-
|
|
980
|
+
React.createElement(BlockContent, _extends({
|
|
978
981
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
979
982
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
980
983
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
981
984
|
}, client.config())),
|
|
982
|
-
|
|
983
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
984
|
-
|
|
985
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
986
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
987
|
+
React.createElement(
|
|
985
988
|
'div',
|
|
986
989
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
987
|
-
|
|
990
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
988
991
|
),
|
|
989
|
-
|
|
992
|
+
React.createElement(BlockContent, _extends({
|
|
990
993
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
991
994
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
992
995
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -998,16 +1001,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
998
1001
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
999
1002
|
}
|
|
1000
1003
|
|
|
1001
|
-
return
|
|
1004
|
+
return React.createElement(
|
|
1002
1005
|
'div',
|
|
1003
1006
|
null,
|
|
1004
|
-
|
|
1007
|
+
React.createElement(BlockContent, _extends({
|
|
1005
1008
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1006
1009
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1007
1010
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1008
1011
|
}, client.config())),
|
|
1009
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
1010
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1012
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1013
|
+
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
1011
1014
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1012
1015
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1013
1016
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1052,8 +1055,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1052
1055
|
shareSubject = shareOptions.shareSubject,
|
|
1053
1056
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1054
1057
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1055
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1056
|
-
shareOptions.shareSiteTitle;
|
|
1058
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
1059
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
1057
1060
|
|
|
1058
1061
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1059
1062
|
var shareTitle = article.title;
|
|
@@ -1093,10 +1096,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1093
1096
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1094
1097
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1095
1098
|
|
|
1096
|
-
return
|
|
1097
|
-
|
|
1099
|
+
return React.createElement(
|
|
1100
|
+
React.Fragment,
|
|
1098
1101
|
null,
|
|
1099
|
-
|
|
1102
|
+
React.createElement(
|
|
1100
1103
|
VisibilitySensor,
|
|
1101
1104
|
{
|
|
1102
1105
|
partialVisibility: true,
|
|
@@ -1109,44 +1112,44 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1109
1112
|
});
|
|
1110
1113
|
}
|
|
1111
1114
|
} },
|
|
1112
|
-
|
|
1115
|
+
React.createElement(
|
|
1113
1116
|
'div',
|
|
1114
1117
|
{ id: 'article__block', ref: ref },
|
|
1115
|
-
|
|
1118
|
+
React.createElement(
|
|
1116
1119
|
'div',
|
|
1117
1120
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1118
1121
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1119
|
-
!isVideoSeries &&
|
|
1122
|
+
!isVideoSeries && React.createElement(
|
|
1120
1123
|
'div',
|
|
1121
1124
|
null,
|
|
1122
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1125
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React.createElement(
|
|
1123
1126
|
'p',
|
|
1124
1127
|
{ style: { fontSize: '14px' } },
|
|
1125
1128
|
article.documentGroup.name,
|
|
1126
1129
|
' - Episode ',
|
|
1127
1130
|
episodeNumber
|
|
1128
1131
|
),
|
|
1129
|
-
|
|
1132
|
+
React.createElement(
|
|
1130
1133
|
'h1',
|
|
1131
1134
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1132
1135
|
title
|
|
1133
1136
|
)
|
|
1134
1137
|
),
|
|
1135
|
-
|
|
1138
|
+
React.createElement(
|
|
1136
1139
|
'div',
|
|
1137
1140
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1138
|
-
|
|
1141
|
+
React.createElement(
|
|
1139
1142
|
'style',
|
|
1140
1143
|
{ jsx: 'true' },
|
|
1141
1144
|
'\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
1145
|
),
|
|
1143
|
-
|
|
1146
|
+
React.createElement(
|
|
1144
1147
|
'div',
|
|
1145
1148
|
{ className: 'left-wrap' },
|
|
1146
|
-
!isVideoSeries && showPublished &&
|
|
1149
|
+
!isVideoSeries && showPublished && React.createElement(
|
|
1147
1150
|
'div',
|
|
1148
1151
|
null,
|
|
1149
|
-
|
|
1152
|
+
React.createElement(
|
|
1150
1153
|
'time',
|
|
1151
1154
|
{
|
|
1152
1155
|
'class': 'meta-date',
|
|
@@ -1156,20 +1159,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1156
1159
|
)
|
|
1157
1160
|
/* Show Published date */
|
|
1158
1161
|
,
|
|
1159
|
-
|
|
1162
|
+
React.createElement(
|
|
1160
1163
|
'div',
|
|
1161
1164
|
{ className: 'mb-3' },
|
|
1162
1165
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1163
|
-
return
|
|
1166
|
+
return React.createElement(
|
|
1164
1167
|
'span',
|
|
1165
1168
|
{ key: index },
|
|
1166
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
1169
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }), showAuthorDetails)
|
|
1167
1170
|
);
|
|
1168
1171
|
}),
|
|
1169
|
-
|
|
1172
|
+
React.createElement(
|
|
1170
1173
|
'div',
|
|
1171
1174
|
null,
|
|
1172
|
-
source &&
|
|
1175
|
+
source && React.createElement(
|
|
1173
1176
|
'p',
|
|
1174
1177
|
{
|
|
1175
1178
|
style: {
|
|
@@ -1184,13 +1187,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1184
1187
|
source
|
|
1185
1188
|
)
|
|
1186
1189
|
),
|
|
1187
|
-
issue &&
|
|
1190
|
+
issue && React.createElement(
|
|
1188
1191
|
'div',
|
|
1189
1192
|
{ className: 'volume-issue' },
|
|
1190
|
-
issue.publication && issue.publication.name &&
|
|
1193
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
1191
1194
|
'span',
|
|
1192
1195
|
{ className: 'mb-0' },
|
|
1193
|
-
|
|
1196
|
+
React.createElement(
|
|
1194
1197
|
'b',
|
|
1195
1198
|
null,
|
|
1196
1199
|
issue.publication.name
|
|
@@ -1198,34 +1201,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1198
1201
|
',',
|
|
1199
1202
|
' '
|
|
1200
1203
|
),
|
|
1201
|
-
issue.name &&
|
|
1204
|
+
issue.name && React.createElement(
|
|
1202
1205
|
'span',
|
|
1203
1206
|
{ className: 'mb-0' },
|
|
1204
1207
|
issue.name,
|
|
1205
1208
|
', '
|
|
1206
1209
|
),
|
|
1207
|
-
issue.volume &&
|
|
1210
|
+
issue.volume && React.createElement(
|
|
1208
1211
|
'span',
|
|
1209
1212
|
null,
|
|
1210
1213
|
'Volume ' + issue.volume,
|
|
1211
1214
|
','
|
|
1212
1215
|
),
|
|
1213
|
-
issue.issueNumber &&
|
|
1216
|
+
issue.issueNumber && React.createElement(
|
|
1214
1217
|
'span',
|
|
1215
1218
|
null,
|
|
1216
1219
|
' Issue ' + issue.issueNumber
|
|
1217
1220
|
)
|
|
1218
1221
|
),
|
|
1219
|
-
pageNumber &&
|
|
1222
|
+
pageNumber && React.createElement(
|
|
1220
1223
|
'div',
|
|
1221
1224
|
{ className: 'article-pageNumber' },
|
|
1222
1225
|
'Pages: ' + pageNumber
|
|
1223
1226
|
)
|
|
1224
1227
|
),
|
|
1225
|
-
!isVideoSeries && showSocialShare &&
|
|
1228
|
+
!isVideoSeries && showSocialShare && React.createElement(
|
|
1226
1229
|
'p',
|
|
1227
1230
|
null,
|
|
1228
|
-
|
|
1231
|
+
React.createElement(SocialShare, {
|
|
1229
1232
|
shareUrl: shareUrl,
|
|
1230
1233
|
shareTitle: shareTitle,
|
|
1231
1234
|
shareVia: shareVia,
|
|
@@ -1241,27 +1244,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1241
1244
|
})
|
|
1242
1245
|
)
|
|
1243
1246
|
),
|
|
1244
|
-
|
|
1247
|
+
React.createElement(
|
|
1245
1248
|
'div',
|
|
1246
1249
|
null,
|
|
1247
|
-
|
|
1250
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1248
1251
|
)
|
|
1249
1252
|
),
|
|
1250
|
-
!isVideoSeries && summary && display_summary &&
|
|
1253
|
+
!isVideoSeries && summary && display_summary && React.createElement(
|
|
1251
1254
|
'p',
|
|
1252
1255
|
null,
|
|
1253
|
-
|
|
1256
|
+
React.createElement(
|
|
1254
1257
|
'em',
|
|
1255
1258
|
null,
|
|
1256
1259
|
summary
|
|
1257
1260
|
)
|
|
1258
1261
|
),
|
|
1259
|
-
|
|
1262
|
+
React.createElement(
|
|
1260
1263
|
'div',
|
|
1261
1264
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1262
|
-
|
|
1265
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1263
1266
|
if (index === 0) {
|
|
1264
|
-
return
|
|
1267
|
+
return React.createElement(
|
|
1265
1268
|
'div',
|
|
1266
1269
|
{
|
|
1267
1270
|
key: index,
|
|
@@ -1278,24 +1281,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1278
1281
|
}
|
|
1279
1282
|
})
|
|
1280
1283
|
),
|
|
1281
|
-
|
|
1284
|
+
React.createElement(
|
|
1282
1285
|
'div',
|
|
1283
1286
|
{ className: 'block-content mt-3' },
|
|
1284
1287
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1285
|
-
|
|
1286
|
-
|
|
1288
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
1289
|
+
React.createElement(
|
|
1287
1290
|
'noscript',
|
|
1288
1291
|
null,
|
|
1289
|
-
|
|
1292
|
+
React.createElement(
|
|
1290
1293
|
'div',
|
|
1291
1294
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1292
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1295
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
1293
1296
|
'a',
|
|
1294
1297
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1295
1298
|
'Previous ',
|
|
1296
1299
|
props.article.seriesDetail.type
|
|
1297
1300
|
),
|
|
1298
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1301
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
1299
1302
|
'a',
|
|
1300
1303
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1301
1304
|
'Next ',
|
|
@@ -1303,26 +1306,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1303
1306
|
)
|
|
1304
1307
|
)
|
|
1305
1308
|
),
|
|
1306
|
-
issue && issue.url &&
|
|
1309
|
+
issue && issue.url && React.createElement(
|
|
1307
1310
|
'a',
|
|
1308
1311
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1309
|
-
|
|
1312
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1310
1313
|
'Download Issue : ',
|
|
1311
1314
|
issue.name
|
|
1312
1315
|
)
|
|
1313
1316
|
),
|
|
1314
|
-
|
|
1315
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1317
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1318
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React.createElement(
|
|
1316
1319
|
'div',
|
|
1317
1320
|
null,
|
|
1318
1321
|
false ,
|
|
1319
|
-
|
|
1322
|
+
React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1320
1323
|
),
|
|
1321
|
-
showRelatedArticles && !showIsi &&
|
|
1322
|
-
disqusConfig && showDisqus &&
|
|
1324
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null),
|
|
1325
|
+
disqusConfig && showDisqus && React.createElement(
|
|
1323
1326
|
'div',
|
|
1324
1327
|
{ id: 'disqusContainer' },
|
|
1325
|
-
|
|
1328
|
+
React.createElement(DiscussionEmbed, {
|
|
1326
1329
|
shortname: disqusConfig.shortname,
|
|
1327
1330
|
config: {
|
|
1328
1331
|
url: disqusConfig.url,
|
|
@@ -1335,30 +1338,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1335
1338
|
renderIsiContent(props.article)
|
|
1336
1339
|
)
|
|
1337
1340
|
),
|
|
1338
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1341
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1339
1342
|
ISI,
|
|
1340
1343
|
null,
|
|
1341
|
-
|
|
1344
|
+
React.createElement(BlockContent, {
|
|
1342
1345
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1343
1346
|
blocks: isi
|
|
1344
1347
|
})
|
|
1345
1348
|
),
|
|
1346
|
-
|
|
1349
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1347
1350
|
if (index > 0) {
|
|
1348
|
-
return
|
|
1351
|
+
return React.createElement(
|
|
1349
1352
|
'div',
|
|
1350
1353
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1351
1354
|
ad.component
|
|
1352
1355
|
);
|
|
1353
1356
|
}
|
|
1354
1357
|
}),
|
|
1355
|
-
|
|
1358
|
+
React.createElement(
|
|
1356
1359
|
'noscript',
|
|
1357
1360
|
null,
|
|
1358
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1361
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1359
1362
|
'div',
|
|
1360
1363
|
{ style: { textAlign: 'center' } },
|
|
1361
|
-
|
|
1364
|
+
React.createElement(
|
|
1362
1365
|
'a',
|
|
1363
1366
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1364
1367
|
'Related Article ',
|
|
@@ -1366,8 +1369,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1366
1369
|
)
|
|
1367
1370
|
)
|
|
1368
1371
|
),
|
|
1369
|
-
props.infiniteScroll &&
|
|
1370
|
-
|
|
1372
|
+
props.infiniteScroll && React.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1373
|
+
React.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1371
1374
|
);
|
|
1372
1375
|
};
|
|
1373
1376
|
|
|
@@ -1382,7 +1385,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1382
1385
|
}
|
|
1383
1386
|
});
|
|
1384
1387
|
|
|
1385
|
-
var _this
|
|
1388
|
+
var _this = undefined;
|
|
1386
1389
|
|
|
1387
1390
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1388
1391
|
var router = useRouter();
|
|
@@ -1391,9 +1394,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1391
1394
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1392
1395
|
Ads = props.Ads,
|
|
1393
1396
|
_props$maxListLength = props.maxListLength,
|
|
1394
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1395
|
-
props.sponsoredTaxonomies
|
|
1396
|
-
|
|
1397
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1398
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1399
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1397
1400
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1398
1401
|
_props$authorPrefix = props.authorPrefix,
|
|
1399
1402
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1442,7 +1445,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1442
1445
|
return item.url.current === path;
|
|
1443
1446
|
});
|
|
1444
1447
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1445
|
-
if (!
|
|
1448
|
+
if (!main_40) {
|
|
1446
1449
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1447
1450
|
if (window.googletag && googletag.pubadsReady) {
|
|
1448
1451
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1459,7 +1462,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1459
1462
|
});
|
|
1460
1463
|
}
|
|
1461
1464
|
//Refresh leaderboard ad on mobile
|
|
1462
|
-
if (
|
|
1465
|
+
if (main_40) {
|
|
1463
1466
|
var leaderboardSlotId = '';
|
|
1464
1467
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1465
1468
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1563,7 +1566,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1563
1566
|
return _context.stop();
|
|
1564
1567
|
}
|
|
1565
1568
|
}
|
|
1566
|
-
}, _callee, _this
|
|
1569
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1567
1570
|
}));
|
|
1568
1571
|
|
|
1569
1572
|
return function loadmore() {
|
|
@@ -1641,14 +1644,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1641
1644
|
refreshAD(path);
|
|
1642
1645
|
};
|
|
1643
1646
|
|
|
1644
|
-
return
|
|
1647
|
+
return React.createElement(
|
|
1645
1648
|
InfiniteScroll,
|
|
1646
1649
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1647
1650
|
queueData.map(function (article, index) {
|
|
1648
|
-
return
|
|
1649
|
-
|
|
1651
|
+
return React.createElement(
|
|
1652
|
+
React.Fragment,
|
|
1650
1653
|
null,
|
|
1651
|
-
|
|
1654
|
+
React.createElement(Article, _extends({
|
|
1652
1655
|
key: index
|
|
1653
1656
|
}, props, {
|
|
1654
1657
|
containerHeight: containerHeight,
|
|
@@ -1666,7 +1669,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1666
1669
|
);
|
|
1667
1670
|
};
|
|
1668
1671
|
|
|
1669
|
-
var _this = undefined;
|
|
1672
|
+
var _this$1 = undefined;
|
|
1670
1673
|
|
|
1671
1674
|
var View = function View(props) {
|
|
1672
1675
|
var router = useRouter();
|
|
@@ -1676,9 +1679,9 @@ var View = function View(props) {
|
|
|
1676
1679
|
hideComments = _props$article.hideComments,
|
|
1677
1680
|
content_placement = _props$article.content_placement,
|
|
1678
1681
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1679
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1680
|
-
props.sponsoredTaxonomies
|
|
1681
|
-
|
|
1682
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1683
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1684
|
+
Ads = props.Ads,
|
|
1682
1685
|
setCustomDimensions = props.setCustomDimensions,
|
|
1683
1686
|
statusCode = props.statusCode,
|
|
1684
1687
|
prevUrl = props.prevUrl,
|
|
@@ -1691,9 +1694,9 @@ var View = function View(props) {
|
|
|
1691
1694
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1692
1695
|
var _props$article2 = props.article,
|
|
1693
1696
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1694
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1695
|
-
_props$article2.description
|
|
1696
|
-
|
|
1697
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1698
|
+
description = _props$article2.description,
|
|
1699
|
+
title = _props$article2.title,
|
|
1697
1700
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1698
1701
|
|
|
1699
1702
|
var _useState = useState(0),
|
|
@@ -1746,6 +1749,7 @@ var View = function View(props) {
|
|
|
1746
1749
|
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
1750
|
|
|
1748
1751
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1752
|
+
description = null;
|
|
1749
1753
|
title = null;
|
|
1750
1754
|
}
|
|
1751
1755
|
|
|
@@ -1789,63 +1793,63 @@ var View = function View(props) {
|
|
|
1789
1793
|
|
|
1790
1794
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1791
1795
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1796
|
+
return React.createElement(
|
|
1797
|
+
React.Fragment,
|
|
1794
1798
|
null,
|
|
1795
|
-
|
|
1799
|
+
React.createElement(
|
|
1796
1800
|
Head,
|
|
1797
1801
|
null,
|
|
1798
|
-
|
|
1802
|
+
React.createElement(
|
|
1799
1803
|
'title',
|
|
1800
1804
|
{ key: 'title' },
|
|
1801
1805
|
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
1806
|
),
|
|
1803
|
-
metaDescriptionSanity ?
|
|
1804
|
-
|
|
1805
|
-
passwordLock &&
|
|
1806
|
-
|
|
1807
|
+
metaDescriptionSanity ? React.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1808
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1809
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1810
|
+
React.createElement('meta', {
|
|
1807
1811
|
property: 'og:url',
|
|
1808
1812
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1809
1813
|
key: 'og:url'
|
|
1810
1814
|
}),
|
|
1811
|
-
|
|
1815
|
+
React.createElement('meta', {
|
|
1812
1816
|
property: 'og:title',
|
|
1813
1817
|
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
1818
|
key: 'og:title'
|
|
1815
1819
|
}),
|
|
1816
|
-
|
|
1820
|
+
React.createElement('meta', {
|
|
1817
1821
|
property: 'og:image',
|
|
1818
1822
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1819
1823
|
key: 'og:image'
|
|
1820
1824
|
}),
|
|
1821
|
-
|
|
1822
|
-
metaDescriptionSanity ?
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1826
|
+
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 }),
|
|
1827
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1828
|
+
React.createElement('meta', {
|
|
1825
1829
|
name: 'twitter:title',
|
|
1826
1830
|
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
1831
|
key: 'twitter:title'
|
|
1828
1832
|
}),
|
|
1829
|
-
|
|
1833
|
+
React.createElement('meta', {
|
|
1830
1834
|
name: 'twitter:image',
|
|
1831
1835
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1832
1836
|
key: 'twitter:image'
|
|
1833
1837
|
}),
|
|
1834
|
-
|
|
1835
|
-
metaDescriptionSanity ?
|
|
1836
|
-
canonicalTag &&
|
|
1838
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1839
|
+
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 }),
|
|
1840
|
+
canonicalTag && React.createElement('link', {
|
|
1837
1841
|
rel: 'canonical',
|
|
1838
1842
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1839
1843
|
key: 'canonical'
|
|
1840
1844
|
}),
|
|
1841
|
-
|
|
1845
|
+
React.createElement(
|
|
1842
1846
|
'noscript',
|
|
1843
1847
|
null,
|
|
1844
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1845
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1848
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1849
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1846
1850
|
)
|
|
1847
1851
|
),
|
|
1848
|
-
!needInfiniteScroll ?
|
|
1852
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1849
1853
|
infiniteScroll: true,
|
|
1850
1854
|
showRelatedArticles: showRelatedArticles,
|
|
1851
1855
|
canonicalTag: canonicalTag,
|
|
@@ -1982,7 +1986,7 @@ View.returnGetInitialProps = function () {
|
|
|
1982
1986
|
return _context.stop();
|
|
1983
1987
|
}
|
|
1984
1988
|
}
|
|
1985
|
-
}, _callee, _this);
|
|
1989
|
+
}, _callee, _this$1);
|
|
1986
1990
|
}));
|
|
1987
1991
|
|
|
1988
1992
|
return function (_x, _x2, _x3, _x4, _x5) {
|