@mjhls/mjh-framework 1.0.934 → 1.0.935-segment-test
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 +22 -21
- package/dist/cjs/AD300x250x600.js +22 -21
- package/dist/cjs/AD728x90.js +25 -24
- package/dist/cjs/ADFloatingFooter.js +21 -20
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +21 -20
- package/dist/cjs/{ADInfeed-a4d973da.js → ADInfeed-44d43b8a.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +21 -20
- package/dist/cjs/ADSponsoredResources.js +21 -20
- package/dist/cjs/ADWebcast.js +21 -20
- package/dist/cjs/ADWelcome.js +18 -17
- package/dist/cjs/{ADlgInfeed-def2c25d.js → ADlgInfeed-24d739f6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +20 -19
- package/dist/cjs/AdSlotsProvider.js +12 -11
- package/dist/cjs/AlgoliaSearch.js +14178 -31
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -29
- package/dist/cjs/ArticleSeriesListing.js +31 -30
- package/dist/cjs/Auth.js +482 -346
- package/dist/cjs/AuthWrapper.js +1766 -13
- package/dist/cjs/{AuthorComponent-17e1c62b.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-9ebd251f.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +23 -22
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +31 -30
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +38 -37
- package/dist/cjs/DeckContent.js +32 -31
- package/dist/cjs/DeckQueue.js +30 -29
- package/dist/cjs/DeckQueuePaginated.js +34 -33
- package/dist/cjs/{Dfp-bcaa7e3f.js → Dfp-9be904d5.js} +13 -12
- package/dist/cjs/EventsDeck.js +26 -26
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +46 -45
- package/dist/cjs/GridContentPaginated.js +47 -46
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +27 -27
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +48 -48
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-6c00b878.js +2813 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +20 -19
- package/dist/cjs/MasterDeck.js +31 -30
- package/dist/cjs/MasterDeckPaginated.js +34 -33
- package/dist/cjs/{MediaSeriesCard-2e1f34e6.js → MediaSeriesCard-659279e0.js} +1002 -799
- package/dist/cjs/MediaSeriesLanding.js +52 -51
- package/dist/cjs/MediaSeriesLandingPaginated.js +58 -57
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +29 -29
- package/dist/cjs/NavNative.js +30 -30
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-a2807e27.js → Pagination-885dcfbd.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +63 -62
- package/dist/cjs/PartnerDetailListingPaginated.js +63 -62
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PubSection.js +33 -32
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-6f89fb97.js → PublicationFeature-5ccf9b13.js} +2 -2
- package/dist/cjs/PublicationLanding.js +31 -27
- package/dist/cjs/QueueDeckExpanded.js +36 -35
- package/dist/cjs/QueueDeckExpandedPaginated.js +39 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +18 -17
- package/dist/cjs/{SeriesSlider-88e59074.js → SeriesSlider-ba0c5d1a.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-af6ddcc0.js → SocialSearchComponent-b7faaedc.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +46 -45
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +36 -35
- package/dist/cjs/VideoSeriesListing.js +31 -30
- package/dist/cjs/View.js +461 -124
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-7df78678.js → extends-7c86182f.js} +8 -7
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +132 -68
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-1359b868.js → getTargeting-3c5754ac.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-cda68ef1.js → index-c991e29a.js} +410 -159
- package/dist/cjs/{index-b5eb3ff8.js → index-d48b231c.js} +11 -6
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-44481153.js → index-fc2f1ca2.js} +42 -488
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-f93506ac.js → index.esm-d51c9ac6.js} +1 -1
- package/dist/cjs/{index.esm-48e0f0d8.js → index.esm-d81454e7.js} +1 -1
- package/dist/cjs/index.js +147 -145
- package/dist/cjs/{inherits-420ee86f.js → inherits-de66ea16.js} +21 -18
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-ec08d471.js → typeof-567e31ff.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-ad96158c.js → urlForFile-29d3815a.js} +1 -1
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -24
- package/dist/esm/AD300x250x600.js +25 -24
- package/dist/esm/AD728x90.js +28 -27
- package/dist/esm/ADFloatingFooter.js +27 -26
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -26
- package/dist/esm/{ADInfeed-f3a93040.js → ADInfeed-7af1f934.js} +9 -9
- package/dist/esm/ADSkyscraper.js +27 -26
- package/dist/esm/ADSponsoredResources.js +27 -26
- package/dist/esm/ADWebcast.js +27 -26
- package/dist/esm/ADWelcome.js +28 -27
- package/dist/esm/{ADlgInfeed-c4814c4e.js → ADlgInfeed-ebcafb85.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -22
- package/dist/esm/AdSlotsProvider.js +13 -12
- package/dist/esm/AlgoliaSearch.js +14202 -55
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +36 -35
- package/dist/esm/ArticleSeriesListing.js +55 -54
- package/dist/esm/Auth.js +553 -417
- package/dist/esm/AuthWrapper.js +1780 -26
- package/dist/esm/{AuthorComponent-37ebc2bd.js → AuthorComponent-11adff02.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-1e73bd2c.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +78 -77
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +50 -49
- package/dist/esm/ConferenceArticleCard.js +23 -23
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +73 -72
- package/dist/esm/DeckContent.js +77 -76
- package/dist/esm/DeckQueue.js +68 -67
- package/dist/esm/DeckQueuePaginated.js +64 -63
- package/dist/esm/{Dfp-23281963.js → Dfp-102f0beb.js} +21 -20
- package/dist/esm/EventsDeck.js +86 -86
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +143 -142
- package/dist/esm/GridContentPaginated.js +134 -133
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +70 -70
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-f84174cb.js +2804 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +33 -32
- package/dist/esm/MasterDeck.js +64 -63
- package/dist/esm/MasterDeckPaginated.js +56 -55
- package/dist/esm/{MediaSeriesCard-4ba5bde7.js → MediaSeriesCard-06c6251a.js} +1002 -799
- package/dist/esm/MediaSeriesLanding.js +77 -76
- package/dist/esm/MediaSeriesLandingPaginated.js +81 -80
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +111 -111
- package/dist/esm/NavNative.js +101 -101
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-185dfca0.js → Pagination-59436882.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +96 -95
- package/dist/esm/PartnerDetailListingPaginated.js +94 -93
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +38 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-d79db241.js → PublicationFeature-d88e76b9.js} +23 -23
- package/dist/esm/PublicationLanding.js +78 -74
- package/dist/esm/QueueDeckExpanded.js +274 -273
- package/dist/esm/QueueDeckExpandedPaginated.js +254 -253
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +23 -23
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +31 -30
- package/dist/esm/{SeriesSlider-0a8cfca0.js → SeriesSlider-45adb8dc.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-32ee0f63.js → SocialSearchComponent-4b56cd8c.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +66 -65
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +29 -29
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +41 -40
- package/dist/esm/VideoSeriesListing.js +71 -70
- package/dist/esm/View.js +613 -276
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +48 -48
- package/dist/esm/{_is-array-4df618a6.js → _is-array-8d21b9e3.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-98db3b07.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-7cee6f84.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-2300e51b.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-958ef5fc.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-ea258bb1.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-5f1bda73.js +18 -0
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8c30428f.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-a4230287.js → extends-6d8e3924.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +133 -69
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-ba1ffe43.js → getTargeting-42f9b439.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-51a80699.js → index-3f5c03b2.js} +11 -6
- package/dist/esm/{index-85bb0372.js → index-6dc67bdb.js} +821 -569
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-1819118a.js → index-f0fc23eb.js} +44 -490
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-d1125763.js → index.esm-1bd8a0a8.js} +1 -1
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-55f22b35.js → index.esm-eb1e8e80.js} +1 -1
- package/dist/esm/index.js +173 -171
- package/dist/esm/{inherits-91a2c374.js → inherits-a6ba2ec4.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-31dcdb31.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-6ebcbfea.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-2b084bee.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-f7074d7c.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-f1b7564e.js → typeof-e9fc0c5d.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{urlForFile-d2a27665.js → urlForFile-b69adffc.js} +1 -1
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-d3714624.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-ab4dea5c.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/esm/ImageSlider-522a2cd0.js +0 -1375
- package/dist/esm/define-property-6d26cb48.js +0 -18
- package/dist/esm/main-43ca42fe.js +0 -886
- package/dist/esm/stringify-70b72959.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
package/dist/esm/View.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
+
import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-958ef5fc.js';
|
|
2
|
+
import { _ as _extends, a as _Object$assign } from './extends-6d8e3924.js';
|
|
3
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-6ebcbfea.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-2b084bee.js';
|
|
8
|
+
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
9
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
+
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
|
+
import { m as main_43 } from './main-1894c974.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-6dc67bdb.js';
|
|
19
|
+
import DFPAdSlot from './AdSlot.js';
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.js';
|
|
22
|
+
import getKeywords from './getKeywords.js';
|
|
23
|
+
import urlFor from './urlFor.js';
|
|
24
|
+
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
25
|
+
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
26
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-1bd8a0a8.js';
|
|
27
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
28
|
+
import './index-755f2cc2.js';
|
|
29
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
30
|
+
import Schema from './Schema.js';
|
|
31
|
+
import FileSaver from 'file-saver';
|
|
32
|
+
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
33
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
34
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
35
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
36
|
+
import getQuery from './getQuery.js';
|
|
37
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
1
38
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
39
|
+
import './core.get-iterator-method-ea258bb1.js';
|
|
40
|
+
import './web.dom.iterable-ab4dea5c.js';
|
|
3
41
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import
|
|
6
|
-
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends, a as _Object$assign } from './extends-a4230287.js';
|
|
8
|
-
import './_object-sap-8b8ea5a9.js';
|
|
9
|
-
import './inherits-91a2c374.js';
|
|
10
|
-
import './define-property-6d26cb48.js';
|
|
11
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
-
import { _ as _typeof } from './typeof-f1b7564e.js';
|
|
13
|
-
import './_is-array-4df618a6.js';
|
|
14
|
-
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
15
|
-
import { l as lib_3 } from './index-1819118a.js';
|
|
42
|
+
import './_iter-detect-98db3b07.js';
|
|
43
|
+
import './_object-pie-133f504a.js';
|
|
16
44
|
import 'prop-types';
|
|
17
|
-
import '
|
|
18
|
-
import 'react-bootstrap/Col';
|
|
19
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
20
|
-
import { useRouter } from 'next/router';
|
|
21
|
-
import './isSymbol-1981418f.js';
|
|
22
|
-
import './debounce-9207d8ee.js';
|
|
23
|
-
import './toNumber-2f7a84cd.js';
|
|
24
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
45
|
+
import './index-3f5c03b2.js';
|
|
25
46
|
import 'react-dom';
|
|
26
|
-
import
|
|
27
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
28
|
-
import './index-51a80699.js';
|
|
29
|
-
import urlFor from './urlFor.js';
|
|
30
|
-
import './index-6c12bdd5.js';
|
|
31
|
-
import { m as main_40 } from './main-43ca42fe.js';
|
|
32
|
-
import './entities-7cc3bf45.js';
|
|
33
|
-
import { _ as _JSON$stringify } from './stringify-70b72959.js';
|
|
34
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
35
|
-
import './Segment.js';
|
|
36
|
-
import './Beam.js';
|
|
37
|
-
import DFPAdSlot from './AdSlot.js';
|
|
38
|
-
import Button from 'react-bootstrap/Button';
|
|
39
|
-
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
40
|
-
import './index-c7e2ac95.js';
|
|
41
|
-
import './smoothscroll-0cd4c7a6.js';
|
|
42
|
-
import './GroupDeck.js';
|
|
47
|
+
import 'react-share';
|
|
43
48
|
import 'react-bootstrap';
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import
|
|
47
|
-
import './
|
|
48
|
-
import
|
|
49
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
49
|
+
import './index-c7e2ac95.js';
|
|
50
|
+
import './util-8ed16d48.js';
|
|
51
|
+
import './Beam.js';
|
|
52
|
+
import './Segment.js';
|
|
53
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
50
54
|
import 'react-bootstrap/Modal';
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import '
|
|
54
|
-
import
|
|
55
|
-
import './_object-to-array-c54dd835.js';
|
|
55
|
+
import './GroupDeck.js';
|
|
56
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
57
|
+
import './_is-array-8d21b9e3.js';
|
|
58
|
+
import './_object-to-array-2300e51b.js';
|
|
56
59
|
import 'react-bootstrap/Pagination';
|
|
60
|
+
import './entities-6d9154b4.js';
|
|
61
|
+
import 'react-bootstrap/Row';
|
|
62
|
+
import 'react-bootstrap/Col';
|
|
63
|
+
import './inherits-a6ba2ec4.js';
|
|
64
|
+
import './_object-sap-7cee6f84.js';
|
|
65
|
+
import './define-property-5f1bda73.js';
|
|
66
|
+
import './index.esm-eb1e8e80.js';
|
|
67
|
+
import './iconBase-ccc56b97.js';
|
|
57
68
|
import 'react-bootstrap/Figure';
|
|
58
69
|
import 'react-bootstrap/OverlayTrigger';
|
|
59
70
|
import 'react-bootstrap/Tooltip';
|
|
60
71
|
import 'react-bootstrap/Popover';
|
|
61
|
-
import '
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import '
|
|
65
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-d1125763.js';
|
|
66
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
72
|
+
import './debounce-533d9748.js';
|
|
73
|
+
import './isSymbol-a7e9aafe.js';
|
|
74
|
+
import './toNumber-5aeba6e7.js';
|
|
75
|
+
import './events-6c3a7a63.js';
|
|
67
76
|
import './index-db3bb315.js';
|
|
68
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
69
|
-
import getQuery from './getQuery.js';
|
|
70
|
-
import { S as SeriesSlider } from './SeriesSlider-0a8cfca0.js';
|
|
71
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-ba1ffe43.js';
|
|
72
|
-
import getKeywords from './getKeywords.js';
|
|
73
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
74
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
75
|
-
import Schema from './Schema.js';
|
|
76
|
-
import FileSaver from 'file-saver';
|
|
77
77
|
|
|
78
78
|
var getArticleSummary = function getArticleSummary(article) {
|
|
79
79
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -151,17 +151,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
151
151
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
return
|
|
154
|
+
return React__default.createElement(
|
|
155
155
|
'a',
|
|
156
156
|
{
|
|
157
157
|
href: url,
|
|
158
158
|
className: 'doc-group',
|
|
159
159
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
160
|
-
thumbnailUrl &&
|
|
161
|
-
!thumbnailUrl &&
|
|
162
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
160
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
161
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
162
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
163
163
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
164
|
-
|
|
164
|
+
main_43 && !thumbnailUrl && React__default.createElement(
|
|
165
165
|
'style',
|
|
166
166
|
{ jsx: 'true' },
|
|
167
167
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -301,38 +301,38 @@ var ISI = function ISI(props) {
|
|
|
301
301
|
}, 300);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
|
-
return
|
|
305
|
-
|
|
304
|
+
return React__default.createElement(
|
|
305
|
+
React__default.Fragment,
|
|
306
306
|
null,
|
|
307
|
-
|
|
307
|
+
React__default.createElement(
|
|
308
308
|
'div',
|
|
309
309
|
{ id: 'isi', ref: isi },
|
|
310
|
-
|
|
310
|
+
React__default.createElement(
|
|
311
311
|
'div',
|
|
312
312
|
{ id: 'isiContent' },
|
|
313
|
-
|
|
313
|
+
React__default.createElement(
|
|
314
314
|
'div',
|
|
315
315
|
{ onClick: function onClick() {
|
|
316
316
|
return setActive(function (prev) {
|
|
317
317
|
return !prev;
|
|
318
318
|
});
|
|
319
319
|
}, id: 'isiToggle' },
|
|
320
|
-
active ?
|
|
320
|
+
active ? React__default.createElement(
|
|
321
321
|
'p',
|
|
322
322
|
null,
|
|
323
323
|
'Close ',
|
|
324
|
-
|
|
325
|
-
) :
|
|
324
|
+
React__default.createElement(FaMinus, null)
|
|
325
|
+
) : React__default.createElement(
|
|
326
326
|
'p',
|
|
327
327
|
null,
|
|
328
328
|
'See More ',
|
|
329
|
-
|
|
329
|
+
React__default.createElement(FaPlus, null)
|
|
330
330
|
)
|
|
331
331
|
),
|
|
332
332
|
children
|
|
333
333
|
)
|
|
334
334
|
),
|
|
335
|
-
|
|
335
|
+
React__default.createElement(
|
|
336
336
|
'style',
|
|
337
337
|
{ jsx: true },
|
|
338
338
|
'\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 '
|
|
@@ -340,9 +340,9 @@ var ISI = function ISI(props) {
|
|
|
340
340
|
);
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
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";
|
|
344
|
-
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" };
|
|
345
|
-
styleInject(css);
|
|
343
|
+
var css$1 = ".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";
|
|
344
|
+
var styles$1 = { "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" };
|
|
345
|
+
styleInject(css$1);
|
|
346
346
|
|
|
347
347
|
var RelatedArticle = function RelatedArticle(_ref) {
|
|
348
348
|
var articles = _ref.articles,
|
|
@@ -354,36 +354,36 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
354
354
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
355
355
|
return null;
|
|
356
356
|
}
|
|
357
|
-
return
|
|
357
|
+
return React__default.createElement(
|
|
358
358
|
'div',
|
|
359
|
-
{ className: styles.mediaContainer },
|
|
359
|
+
{ className: styles$1.mediaContainer },
|
|
360
360
|
articles.map(function (article, index) {
|
|
361
361
|
if (article && article.url && article.url.current) {
|
|
362
|
-
return
|
|
362
|
+
return React__default.createElement(
|
|
363
363
|
'div',
|
|
364
|
-
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
365
|
-
|
|
364
|
+
{ id: 'related-card', key: index, className: styles$1.mediaCard },
|
|
365
|
+
React__default.createElement(
|
|
366
366
|
'a',
|
|
367
|
-
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
368
|
-
article.thumbnail ?
|
|
367
|
+
{ className: styles$1.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
368
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
369
369
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
370
370
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
371
371
|
alt: article.title
|
|
372
|
-
}) :
|
|
373
|
-
|
|
372
|
+
}) : React__default.createElement(
|
|
373
|
+
React__default.Fragment,
|
|
374
374
|
null,
|
|
375
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
375
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
376
376
|
)
|
|
377
377
|
),
|
|
378
|
-
|
|
378
|
+
React__default.createElement(
|
|
379
379
|
'div',
|
|
380
|
-
{ className: styles.mediaBody },
|
|
381
|
-
|
|
380
|
+
{ className: styles$1.mediaBody },
|
|
381
|
+
React__default.createElement(
|
|
382
382
|
'a',
|
|
383
383
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
384
|
-
|
|
384
|
+
React__default.createElement(
|
|
385
385
|
'div',
|
|
386
|
-
{ className: styles.cardTitle },
|
|
386
|
+
{ className: styles$1.cardTitle },
|
|
387
387
|
article.title
|
|
388
388
|
)
|
|
389
389
|
)
|
|
@@ -439,7 +439,336 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
439
439
|
return showSocialShare;
|
|
440
440
|
};
|
|
441
441
|
|
|
442
|
-
var
|
|
442
|
+
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}";
|
|
443
|
+
var styles = { "recommendTitle": "RecommendedArticles-module_recommendTitle__2kUji", "recommendContainer": "RecommendedArticles-module_recommendContainer__sZukI", "recommendTop": "RecommendedArticles-module_recommendTop__1_yqw", "recommendTopImg": "RecommendedArticles-module_recommendTopImg__1b9gu", "recommendTopBody": "RecommendedArticles-module_recommendTopBody__-13FI", "topTitle": "RecommendedArticles-module_topTitle__2EafN", "topBody": "RecommendedArticles-module_topBody__2_VNi", "topLink": "RecommendedArticles-module_topLink__2RnXu", "smContainer": "RecommendedArticles-module_smContainer__4byBO", "smImage": "RecommendedArticles-module_smImage__TYZGY", "title": "RecommendedArticles-module_title__3q1ud", "category": "RecommendedArticles-module_category__2jRto" };
|
|
444
|
+
styleInject(css);
|
|
445
|
+
|
|
446
|
+
var _this$2 = undefined;
|
|
447
|
+
|
|
448
|
+
var Recommended = function Recommended(props) {
|
|
449
|
+
var article = props.article,
|
|
450
|
+
client = props.client,
|
|
451
|
+
_props$index = props.index,
|
|
452
|
+
index = _props$index === undefined ? 0 : _props$index,
|
|
453
|
+
cpModificationRequired = props.cpModificationRequired;
|
|
454
|
+
|
|
455
|
+
var _useState = useState(false),
|
|
456
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
457
|
+
segmentLoaded = _useState2[0],
|
|
458
|
+
setSegmentLoaded = _useState2[1];
|
|
459
|
+
|
|
460
|
+
var _useState3 = useState([]),
|
|
461
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
462
|
+
articles = _useState4[0],
|
|
463
|
+
setArticles = _useState4[1];
|
|
464
|
+
|
|
465
|
+
var _useState5 = useState(false),
|
|
466
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
467
|
+
loaded = _useState6[0],
|
|
468
|
+
setLoaded = _useState6[1];
|
|
469
|
+
|
|
470
|
+
var starting = index * 5;
|
|
471
|
+
var contentMapping = {
|
|
472
|
+
videos: 'video',
|
|
473
|
+
articles: 'article',
|
|
474
|
+
podcasts: 'podcast'
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
var mainCategories = article.content_placement.filter(function (cp) {
|
|
478
|
+
return cp.usedForRecommendations === true;
|
|
479
|
+
}).map(function (cp) {
|
|
480
|
+
return cp.name;
|
|
481
|
+
}).sort();
|
|
482
|
+
|
|
483
|
+
useEffect(function () {
|
|
484
|
+
try {
|
|
485
|
+
if (!segmentLoaded) {
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (mainCategories.length > 0) {
|
|
489
|
+
//console.log(mainCategories)
|
|
490
|
+
analytics.track('Article Category Viewed', {
|
|
491
|
+
categories: _JSON$stringify(mainCategories)
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
var anonymousId = analytics.user().anonymousId();
|
|
495
|
+
// get users traits
|
|
496
|
+
var getSegmentProfile = function () {
|
|
497
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
498
|
+
var response, data, favoriteCategories, articlesQuery, videosQuery, podcastQuery, params, _ref2, _ref3, _articles, videos, podcasts;
|
|
499
|
+
|
|
500
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
501
|
+
while (1) {
|
|
502
|
+
switch (_context.prev = _context.next) {
|
|
503
|
+
case 0:
|
|
504
|
+
_context.next = 2;
|
|
505
|
+
return fetch('/api/getSegmentProfile', {
|
|
506
|
+
method: 'POST',
|
|
507
|
+
body: _JSON$stringify({ anonymousId: anonymousId })
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
case 2:
|
|
511
|
+
response = _context.sent;
|
|
512
|
+
_context.next = 5;
|
|
513
|
+
return response.json();
|
|
514
|
+
|
|
515
|
+
case 5:
|
|
516
|
+
data = _context.sent;
|
|
517
|
+
|
|
518
|
+
if (!(data && data.traits && data.traits.favorite_article_category)) {
|
|
519
|
+
_context.next = 20;
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
//console.log('%csegment user profile', 'font-size:1.5rem;color:#000000;padding:1rem;background-color:yellow;', data.traits)
|
|
524
|
+
favoriteCategories = JSON.parse(data.traits.favorite_article_category);
|
|
525
|
+
// grab 3 articles from sanity different from the one currently being read
|
|
526
|
+
|
|
527
|
+
articlesQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible\n && references(*[_type == \'contentCategory\' && name == \'Articles\']._id)\n && references(*[_type == \'taxonomy\' ' + favoriteCategories.map(function (cat) {
|
|
528
|
+
return ' && name == \'' + cat + '\' ';
|
|
529
|
+
}) + ']._id)\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 5) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
530
|
+
videosQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible\n && references(*[_type == \'contentCategory\' && name == \'Videos\']._id)\n && references(*[_type == \'taxonomy\' ' + favoriteCategories.map(function (cat) {
|
|
531
|
+
return ' && name == \'' + cat + '\' ';
|
|
532
|
+
}) + ']._id)\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 1) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
533
|
+
podcastQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible\n && references(*[_type == \'contentCategory\' && name == \'Podcasts\']._id)\n && references(*[_type == \'taxonomy\' ' + favoriteCategories.map(function (cat) {
|
|
534
|
+
return ' && name == \'' + cat + '\' ';
|
|
535
|
+
}) + ']._id)\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 2) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
536
|
+
params = {
|
|
537
|
+
id: article._id
|
|
538
|
+
};
|
|
539
|
+
_context.next = 14;
|
|
540
|
+
return _Promise.all([client.fetch(articlesQuery, params), client.fetch(videosQuery, params), client.fetch(podcastQuery, params)]);
|
|
541
|
+
|
|
542
|
+
case 14:
|
|
543
|
+
_ref2 = _context.sent;
|
|
544
|
+
_ref3 = _slicedToArray(_ref2, 3);
|
|
545
|
+
_articles = _ref3[0];
|
|
546
|
+
videos = _ref3[1];
|
|
547
|
+
podcasts = _ref3[2];
|
|
548
|
+
|
|
549
|
+
if (_articles) {
|
|
550
|
+
if (videos[0] && _articles[2]) {
|
|
551
|
+
_articles[2] = videos[0];
|
|
552
|
+
}
|
|
553
|
+
if (videos[1] && _articles[4]) {
|
|
554
|
+
_articles[4] = videos[1];
|
|
555
|
+
}
|
|
556
|
+
if (podcasts[0] && _articles[3]) {
|
|
557
|
+
_articles[3] = podcasts[0];
|
|
558
|
+
}
|
|
559
|
+
setArticles(_articles);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
case 20:
|
|
563
|
+
case 'end':
|
|
564
|
+
return _context.stop();
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}, _callee, _this$2);
|
|
568
|
+
}));
|
|
569
|
+
|
|
570
|
+
return function getSegmentProfile() {
|
|
571
|
+
return _ref.apply(this, arguments);
|
|
572
|
+
};
|
|
573
|
+
}();
|
|
574
|
+
|
|
575
|
+
getSegmentProfile();
|
|
576
|
+
} catch (err) {
|
|
577
|
+
console.log(err);
|
|
578
|
+
}
|
|
579
|
+
}, [segmentLoaded]);
|
|
580
|
+
|
|
581
|
+
useEffect(function () {
|
|
582
|
+
if (articles && articles.length > 0) {
|
|
583
|
+
setLoaded(true);
|
|
584
|
+
}
|
|
585
|
+
}, [articles]);
|
|
586
|
+
|
|
587
|
+
useEffect(function () {
|
|
588
|
+
try {
|
|
589
|
+
analytics.ready(function () {
|
|
590
|
+
setSegmentLoaded(function () {
|
|
591
|
+
return true;
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
} catch (err) {
|
|
595
|
+
console.log(err);
|
|
596
|
+
}
|
|
597
|
+
}, []);
|
|
598
|
+
|
|
599
|
+
return React__default.createElement(
|
|
600
|
+
'div',
|
|
601
|
+
{ id: 'recommended' },
|
|
602
|
+
loaded ? React__default.createElement(
|
|
603
|
+
React__default.Fragment,
|
|
604
|
+
null,
|
|
605
|
+
React__default.createElement(
|
|
606
|
+
'h4',
|
|
607
|
+
{ className: styles.recommendTitle },
|
|
608
|
+
'Recommended For You'
|
|
609
|
+
),
|
|
610
|
+
React__default.createElement(
|
|
611
|
+
'div',
|
|
612
|
+
{ className: styles.recommendContainer, id: 'recommendedContent' },
|
|
613
|
+
articles.map(function (article, index) {
|
|
614
|
+
if (index === 0) {
|
|
615
|
+
return React__default.createElement(
|
|
616
|
+
'div',
|
|
617
|
+
{ key: article._id + ('-' + index), className: styles.recommendTop },
|
|
618
|
+
React__default.createElement(
|
|
619
|
+
'div',
|
|
620
|
+
{ className: styles.recommendTopImg },
|
|
621
|
+
React__default.createElement(
|
|
622
|
+
'a',
|
|
623
|
+
{ href: '/view/' + article.url.current },
|
|
624
|
+
React__default.createElement('img', { src: urlFor({ source: article.thumbnail, client: client, imageHeight: 306, imageWidth: 544 }) })
|
|
625
|
+
)
|
|
626
|
+
),
|
|
627
|
+
React__default.createElement(
|
|
628
|
+
'div',
|
|
629
|
+
{ className: styles.recommendTopBody },
|
|
630
|
+
React__default.createElement(
|
|
631
|
+
'div',
|
|
632
|
+
{ className: styles.topTitle },
|
|
633
|
+
article.title
|
|
634
|
+
),
|
|
635
|
+
React__default.createElement(
|
|
636
|
+
'p',
|
|
637
|
+
{ className: styles.topBody },
|
|
638
|
+
article.summary
|
|
639
|
+
),
|
|
640
|
+
React__default.createElement(
|
|
641
|
+
'a',
|
|
642
|
+
{ href: '/view/' + article.url.current, className: styles.topLink },
|
|
643
|
+
'>> ',
|
|
644
|
+
'Read Article'
|
|
645
|
+
)
|
|
646
|
+
)
|
|
647
|
+
);
|
|
648
|
+
} else {
|
|
649
|
+
return React__default.createElement(
|
|
650
|
+
'div',
|
|
651
|
+
{ key: article._id + ('-' + index), className: styles.smContainer },
|
|
652
|
+
React__default.createElement(
|
|
653
|
+
'div',
|
|
654
|
+
{ className: styles.category },
|
|
655
|
+
contentMapping[article.contentCategory.name.toLowerCase()] ? contentMapping[article.contentCategory.name.toLowerCase()] : article.contentCategory.name
|
|
656
|
+
),
|
|
657
|
+
React__default.createElement(
|
|
658
|
+
'a',
|
|
659
|
+
{ href: '/view/' + article.url.current },
|
|
660
|
+
React__default.createElement(
|
|
661
|
+
'div',
|
|
662
|
+
{ className: styles.smImage },
|
|
663
|
+
React__default.createElement('img', { src: urlFor({ source: article.thumbnail, client: client, imageHeight: 270, imageWidth: 480 }) })
|
|
664
|
+
),
|
|
665
|
+
React__default.createElement(
|
|
666
|
+
'div',
|
|
667
|
+
{ className: styles.title },
|
|
668
|
+
article.title
|
|
669
|
+
)
|
|
670
|
+
)
|
|
671
|
+
);
|
|
672
|
+
}
|
|
673
|
+
})
|
|
674
|
+
)
|
|
675
|
+
) : React__default.createElement(
|
|
676
|
+
'section',
|
|
677
|
+
{ id: 'related-content-section', className: 'my-1' },
|
|
678
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
679
|
+
'p',
|
|
680
|
+
{ className: 'mb-0' },
|
|
681
|
+
React__default.createElement(
|
|
682
|
+
'b',
|
|
683
|
+
null,
|
|
684
|
+
'Related Content:'
|
|
685
|
+
)
|
|
686
|
+
),
|
|
687
|
+
React__default.createElement(RelevantTopics, { article: article, cpModificationRequired: cpModificationRequired, Settings: props.Settings }),
|
|
688
|
+
React__default.createElement(
|
|
689
|
+
'div',
|
|
690
|
+
{ className: 'pt-2' },
|
|
691
|
+
React__default.createElement(RelatedArticle, {
|
|
692
|
+
articles: article.relatedArticle,
|
|
693
|
+
client: client,
|
|
694
|
+
fallbackImage: props.Settings.logo,
|
|
695
|
+
showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage
|
|
696
|
+
})
|
|
697
|
+
)
|
|
698
|
+
)
|
|
699
|
+
);
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
var RelevantTopics = function RelevantTopics(props) {
|
|
703
|
+
var article = props.article,
|
|
704
|
+
cpModificationRequired = props.cpModificationRequired;
|
|
705
|
+
var content_placement = article.content_placement,
|
|
706
|
+
documentGroupMapping = article.documentGroupMapping,
|
|
707
|
+
issueGroup = article.issueGroup;
|
|
708
|
+
|
|
709
|
+
if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
|
|
710
|
+
var relatedLinks = [];
|
|
711
|
+
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
712
|
+
documentGroupMapping.forEach(function (documentGroup) {
|
|
713
|
+
if (documentGroup.isShow === false || documentGroup.excludeRelatedContents) {
|
|
714
|
+
return null;
|
|
715
|
+
}
|
|
716
|
+
if (documentGroup.parent) {
|
|
717
|
+
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
|
|
718
|
+
label: documentGroup.name,
|
|
719
|
+
href: cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.parent.identifier && documentGroup.parent.identifier.current && !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path
|
|
720
|
+
}]);
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
if (content_placement && content_placement.length > 0) {
|
|
725
|
+
content_placement.filter(function (item) {
|
|
726
|
+
return item.path !== 'news';
|
|
727
|
+
}).forEach(function (cp) {
|
|
728
|
+
if (cp.excludeRelatedContents) {
|
|
729
|
+
return null;
|
|
730
|
+
}
|
|
731
|
+
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
732
|
+
var href = '/' + cp_url;
|
|
733
|
+
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
if (issueGroup && issueGroup.name && issueGroup.identifier && issueGroup.identifier.current && issueGroup.parent && issueGroup.parent.identifier && issueGroup.parent.identifier.current) {
|
|
737
|
+
var _props$Settings$issue = props.Settings.issueMapping,
|
|
738
|
+
issueMapping = _props$Settings$issue === undefined ? '/publications' : _props$Settings$issue;
|
|
739
|
+
|
|
740
|
+
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
741
|
+
}
|
|
742
|
+
if (relatedLinks && relatedLinks.length > 0) {
|
|
743
|
+
return React__default.createElement(
|
|
744
|
+
'div',
|
|
745
|
+
null,
|
|
746
|
+
relatedLinks.map(function (relatedLink, index) {
|
|
747
|
+
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
748
|
+
return React__default.createElement(
|
|
749
|
+
'span',
|
|
750
|
+
{ key: relatedLink.label, className: 'related-link' },
|
|
751
|
+
React__default.createElement(
|
|
752
|
+
'a',
|
|
753
|
+
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
754
|
+
relatedLink.label
|
|
755
|
+
),
|
|
756
|
+
React__default.createElement(
|
|
757
|
+
'style',
|
|
758
|
+
{ jsx: 'true' },
|
|
759
|
+
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
760
|
+
)
|
|
761
|
+
);
|
|
762
|
+
}
|
|
763
|
+
})
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
return null;
|
|
767
|
+
}
|
|
768
|
+
return null;
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
443
772
|
var onVote = function () {
|
|
444
773
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
445
774
|
var response, result;
|
|
@@ -544,15 +873,17 @@ var Article = forwardRef(function (props, ref) {
|
|
|
544
873
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
545
874
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
546
875
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
547
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
548
|
-
|
|
549
|
-
containerHeight = props.containerHeight,
|
|
876
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh;
|
|
877
|
+
props.active;
|
|
878
|
+
var containerHeight = props.containerHeight,
|
|
550
879
|
_props$refreshFlag = props.refreshFlag,
|
|
551
880
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
552
881
|
disqusConfig = props.disqusConfig,
|
|
553
882
|
showDisqus = props.showDisqus,
|
|
554
883
|
_props$downloadCitati = props.downloadCitation,
|
|
555
|
-
downloadCitation = _props$downloadCitati === undefined ? false : _props$downloadCitati
|
|
884
|
+
downloadCitation = _props$downloadCitati === undefined ? false : _props$downloadCitati,
|
|
885
|
+
_props$useSegmentReco = props.useSegmentRecommendedArticles,
|
|
886
|
+
useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco;
|
|
556
887
|
var sliderData = props.sliderData;
|
|
557
888
|
|
|
558
889
|
|
|
@@ -627,9 +958,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
627
958
|
setArticleBody = _useState10[1];
|
|
628
959
|
|
|
629
960
|
var _useState11 = useState(true),
|
|
630
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
631
|
-
|
|
632
|
-
setPreviewAd = _useState12[1];
|
|
961
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
962
|
+
_useState12[0];
|
|
963
|
+
var setPreviewAd = _useState12[1];
|
|
633
964
|
|
|
634
965
|
useEffect(function () {
|
|
635
966
|
var path = window && window.location && window.location.search;
|
|
@@ -650,7 +981,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
650
981
|
};
|
|
651
982
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
652
983
|
if (biography) {
|
|
653
|
-
return
|
|
984
|
+
return React__default.createElement(BlockContent, _extends({
|
|
654
985
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
655
986
|
blocks: [biography]
|
|
656
987
|
}, client.config()));
|
|
@@ -660,9 +991,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
660
991
|
var url = article.url.current;
|
|
661
992
|
|
|
662
993
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
663
|
-
return
|
|
994
|
+
return React__default.createElement(ISIContent, null);
|
|
664
995
|
} else if (nationalPage === url && ISIContent) {
|
|
665
|
-
return
|
|
996
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
666
997
|
}
|
|
667
998
|
return null;
|
|
668
999
|
};
|
|
@@ -755,20 +1086,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
755
1086
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
756
1087
|
}
|
|
757
1088
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
758
|
-
return
|
|
1089
|
+
return React__default.createElement(
|
|
759
1090
|
'div',
|
|
760
1091
|
null,
|
|
761
1092
|
relatedLinks.map(function (relatedLink, index) {
|
|
762
1093
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
763
|
-
return
|
|
1094
|
+
return React__default.createElement(
|
|
764
1095
|
'span',
|
|
765
1096
|
{ key: index, className: 'related-link' },
|
|
766
|
-
|
|
1097
|
+
React__default.createElement(
|
|
767
1098
|
'a',
|
|
768
1099
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
769
1100
|
relatedLink.label
|
|
770
1101
|
),
|
|
771
|
-
|
|
1102
|
+
React__default.createElement(
|
|
772
1103
|
'style',
|
|
773
1104
|
{ jsx: 'true' },
|
|
774
1105
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -784,55 +1115,59 @@ var Article = forwardRef(function (props, ref) {
|
|
|
784
1115
|
};
|
|
785
1116
|
|
|
786
1117
|
var RelatedContent = function RelatedContent() {
|
|
787
|
-
return
|
|
788
|
-
'
|
|
789
|
-
|
|
790
|
-
(article.
|
|
791
|
-
'
|
|
792
|
-
{ className: '
|
|
793
|
-
|
|
794
|
-
'
|
|
795
|
-
|
|
796
|
-
|
|
1118
|
+
return React__default.createElement(
|
|
1119
|
+
'div',
|
|
1120
|
+
null,
|
|
1121
|
+
useSegmentRecommendedArticles ? React__default.createElement(Recommended, { client: client, article: article, index: props.index, Settings: props.Settings, showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage, cpModificationRequired: cpModificationRequired }) : React__default.createElement(
|
|
1122
|
+
'section',
|
|
1123
|
+
{ id: 'related-content-section', className: 'my-1' },
|
|
1124
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
1125
|
+
'p',
|
|
1126
|
+
{ className: 'mb-0' },
|
|
1127
|
+
React__default.createElement(
|
|
1128
|
+
'b',
|
|
1129
|
+
null,
|
|
1130
|
+
'Related Content:'
|
|
1131
|
+
)
|
|
1132
|
+
),
|
|
1133
|
+
React__default.createElement(RelevantTopics, null),
|
|
1134
|
+
React__default.createElement(
|
|
1135
|
+
'div',
|
|
1136
|
+
{ className: 'pt-2' },
|
|
1137
|
+
React__default.createElement(RelatedArticle, {
|
|
1138
|
+
articles: article.relatedArticle,
|
|
1139
|
+
client: client,
|
|
1140
|
+
fallbackImage: props.Settings.logo,
|
|
1141
|
+
showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage
|
|
1142
|
+
})
|
|
797
1143
|
)
|
|
798
|
-
),
|
|
799
|
-
React.createElement(RelevantTopics, null),
|
|
800
|
-
React.createElement(
|
|
801
|
-
'div',
|
|
802
|
-
{ className: 'pt-2' },
|
|
803
|
-
React.createElement(RelatedArticle, {
|
|
804
|
-
articles: article.relatedArticle,
|
|
805
|
-
client: client,
|
|
806
|
-
fallbackImage: props.Settings.logo,
|
|
807
|
-
showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage
|
|
808
|
-
})
|
|
809
1144
|
)
|
|
810
1145
|
);
|
|
811
1146
|
};
|
|
812
1147
|
|
|
813
1148
|
var form = function form() {
|
|
814
|
-
return
|
|
815
|
-
|
|
1149
|
+
return React__default.createElement(
|
|
1150
|
+
React__default.Fragment,
|
|
816
1151
|
null,
|
|
817
|
-
|
|
1152
|
+
React__default.createElement(
|
|
818
1153
|
Head,
|
|
819
1154
|
null,
|
|
820
|
-
|
|
1155
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
821
1156
|
),
|
|
822
|
-
|
|
1157
|
+
React__default.createElement(
|
|
823
1158
|
'div',
|
|
824
1159
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
825
|
-
|
|
1160
|
+
React__default.createElement(
|
|
826
1161
|
Form,
|
|
827
1162
|
{
|
|
828
1163
|
inline: true,
|
|
829
1164
|
onSubmit: function onSubmit(e) {
|
|
830
1165
|
e.preventDefault();
|
|
831
1166
|
} },
|
|
832
|
-
|
|
1167
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
833
1168
|
return setPasswordKey(e.target.value);
|
|
834
1169
|
}, placeholder: 'Password' }),
|
|
835
|
-
|
|
1170
|
+
React__default.createElement(
|
|
836
1171
|
Button,
|
|
837
1172
|
{
|
|
838
1173
|
variant: 'primary',
|
|
@@ -882,31 +1217,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
882
1217
|
setContextualADFlag(true);
|
|
883
1218
|
}
|
|
884
1219
|
};
|
|
885
|
-
return
|
|
886
|
-
|
|
1220
|
+
return React__default.createElement(
|
|
1221
|
+
React__default.Fragment,
|
|
887
1222
|
null,
|
|
888
|
-
|
|
1223
|
+
React__default.createElement(BlockContent, _extends({
|
|
889
1224
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
890
1225
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
891
1226
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
892
1227
|
}, client.config())),
|
|
893
|
-
|
|
894
|
-
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo &&
|
|
895
|
-
|
|
1228
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
1229
|
+
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1230
|
+
React__default.createElement(
|
|
896
1231
|
'div',
|
|
897
1232
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
898
|
-
|
|
1233
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
899
1234
|
refreshFlag: refreshFlag
|
|
900
1235
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
901
1236
|
}))
|
|
902
1237
|
),
|
|
903
|
-
|
|
904
|
-
|
|
1238
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
1239
|
+
React__default.createElement(
|
|
905
1240
|
'div',
|
|
906
1241
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
907
|
-
|
|
1242
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
908
1243
|
),
|
|
909
|
-
|
|
1244
|
+
React__default.createElement(BlockContent, _extends({
|
|
910
1245
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
911
1246
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
912
1247
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -931,26 +1266,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
931
1266
|
if (seriesInfo.hasVideo) {
|
|
932
1267
|
_selectedIndex = seriesInfo.videoIndex;
|
|
933
1268
|
}
|
|
934
|
-
return
|
|
935
|
-
|
|
1269
|
+
return React__default.createElement(
|
|
1270
|
+
React__default.Fragment,
|
|
936
1271
|
null,
|
|
937
|
-
|
|
1272
|
+
React__default.createElement(BlockContent, _extends({
|
|
938
1273
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
939
1274
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
940
1275
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
941
1276
|
}, client.config())),
|
|
942
|
-
contextualADFlag &&
|
|
943
|
-
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo &&
|
|
944
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
1277
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1278
|
+
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1279
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
945
1280
|
'div',
|
|
946
1281
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
947
|
-
|
|
1282
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
948
1283
|
refreshFlag: refreshFlag
|
|
949
1284
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
950
1285
|
}))
|
|
951
1286
|
),
|
|
952
|
-
contextualADFlag &&
|
|
953
|
-
|
|
1287
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1288
|
+
React__default.createElement(BlockContent, _extends({
|
|
954
1289
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
955
1290
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
956
1291
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -980,22 +1315,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
980
1315
|
}
|
|
981
1316
|
};
|
|
982
1317
|
|
|
983
|
-
return
|
|
984
|
-
|
|
1318
|
+
return React__default.createElement(
|
|
1319
|
+
React__default.Fragment,
|
|
985
1320
|
null,
|
|
986
|
-
|
|
1321
|
+
React__default.createElement(BlockContent, _extends({
|
|
987
1322
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
988
1323
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
989
1324
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
990
1325
|
}, client.config())),
|
|
991
|
-
|
|
992
|
-
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo &&
|
|
993
|
-
|
|
1326
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
1327
|
+
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1328
|
+
React__default.createElement(
|
|
994
1329
|
'div',
|
|
995
1330
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
996
|
-
|
|
1331
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
997
1332
|
),
|
|
998
|
-
|
|
1333
|
+
React__default.createElement(BlockContent, _extends({
|
|
999
1334
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1000
1335
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1001
1336
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1007,16 +1342,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1007
1342
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
1008
1343
|
}
|
|
1009
1344
|
|
|
1010
|
-
return
|
|
1345
|
+
return React__default.createElement(
|
|
1011
1346
|
'div',
|
|
1012
1347
|
null,
|
|
1013
|
-
|
|
1348
|
+
React__default.createElement(BlockContent, _extends({
|
|
1014
1349
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1015
1350
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1016
1351
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1017
1352
|
}, client.config())),
|
|
1018
|
-
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo &&
|
|
1019
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1353
|
+
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1354
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1020
1355
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1021
1356
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1022
1357
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1074,8 +1409,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1074
1409
|
shareSubject = shareOptions.shareSubject,
|
|
1075
1410
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1076
1411
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1077
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1078
|
-
|
|
1412
|
+
shareBaseUrl = shareOptions.shareBaseUrl;
|
|
1413
|
+
shareOptions.shareSiteTitle;
|
|
1079
1414
|
|
|
1080
1415
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1081
1416
|
var shareTitle = article.title;
|
|
@@ -1115,10 +1450,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1115
1450
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1116
1451
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1117
1452
|
var isFormAssembly = checkIfFormAssembly(article);
|
|
1118
|
-
return
|
|
1119
|
-
|
|
1453
|
+
return React__default.createElement(
|
|
1454
|
+
React__default.Fragment,
|
|
1120
1455
|
null,
|
|
1121
|
-
|
|
1456
|
+
React__default.createElement(
|
|
1122
1457
|
VisibilitySensor,
|
|
1123
1458
|
{
|
|
1124
1459
|
partialVisibility: true,
|
|
@@ -1134,44 +1469,44 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1134
1469
|
});
|
|
1135
1470
|
}
|
|
1136
1471
|
} },
|
|
1137
|
-
|
|
1472
|
+
React__default.createElement(
|
|
1138
1473
|
'div',
|
|
1139
1474
|
{ id: 'article__block', ref: ref },
|
|
1140
|
-
|
|
1475
|
+
React__default.createElement(
|
|
1141
1476
|
'div',
|
|
1142
1477
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1143
1478
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1144
|
-
!isVideoSeries &&
|
|
1479
|
+
!isVideoSeries && React__default.createElement(
|
|
1145
1480
|
'div',
|
|
1146
1481
|
null,
|
|
1147
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1482
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1148
1483
|
'p',
|
|
1149
1484
|
{ style: { fontSize: '14px' } },
|
|
1150
1485
|
article.documentGroup.name,
|
|
1151
1486
|
' - Episode ',
|
|
1152
1487
|
episodeNumber
|
|
1153
1488
|
),
|
|
1154
|
-
|
|
1489
|
+
React__default.createElement(
|
|
1155
1490
|
'h1',
|
|
1156
1491
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1157
1492
|
title
|
|
1158
1493
|
)
|
|
1159
1494
|
),
|
|
1160
|
-
|
|
1495
|
+
React__default.createElement(
|
|
1161
1496
|
'div',
|
|
1162
1497
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1163
|
-
|
|
1498
|
+
React__default.createElement(
|
|
1164
1499
|
'style',
|
|
1165
1500
|
{ jsx: 'true' },
|
|
1166
1501
|
'\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 '
|
|
1167
1502
|
),
|
|
1168
|
-
|
|
1503
|
+
React__default.createElement(
|
|
1169
1504
|
'div',
|
|
1170
1505
|
{ className: 'left-wrap' },
|
|
1171
|
-
!isVideoSeries && !isFormAssembly && showPublished &&
|
|
1506
|
+
!isVideoSeries && !isFormAssembly && showPublished && React__default.createElement(
|
|
1172
1507
|
'div',
|
|
1173
1508
|
null,
|
|
1174
|
-
|
|
1509
|
+
React__default.createElement(
|
|
1175
1510
|
'time',
|
|
1176
1511
|
{
|
|
1177
1512
|
className: 'meta-date',
|
|
@@ -1181,20 +1516,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1181
1516
|
)
|
|
1182
1517
|
/* Show Published date */
|
|
1183
1518
|
,
|
|
1184
|
-
|
|
1519
|
+
React__default.createElement(
|
|
1185
1520
|
'div',
|
|
1186
1521
|
{ className: 'mb-3' },
|
|
1187
1522
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1188
|
-
return
|
|
1523
|
+
return React__default.createElement(
|
|
1189
1524
|
'span',
|
|
1190
1525
|
{ key: index },
|
|
1191
1526
|
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)
|
|
1192
1527
|
);
|
|
1193
1528
|
}),
|
|
1194
|
-
|
|
1529
|
+
React__default.createElement(
|
|
1195
1530
|
'div',
|
|
1196
1531
|
null,
|
|
1197
|
-
source &&
|
|
1532
|
+
source && React__default.createElement(
|
|
1198
1533
|
'p',
|
|
1199
1534
|
{
|
|
1200
1535
|
style: {
|
|
@@ -1209,13 +1544,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1209
1544
|
source
|
|
1210
1545
|
)
|
|
1211
1546
|
),
|
|
1212
|
-
issue &&
|
|
1547
|
+
issue && React__default.createElement(
|
|
1213
1548
|
'div',
|
|
1214
1549
|
{ className: 'volume-issue' },
|
|
1215
|
-
issue.publication && issue.publication.name &&
|
|
1550
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1216
1551
|
'span',
|
|
1217
1552
|
{ className: 'mb-0' },
|
|
1218
|
-
|
|
1553
|
+
React__default.createElement(
|
|
1219
1554
|
'b',
|
|
1220
1555
|
null,
|
|
1221
1556
|
issue.publication.name
|
|
@@ -1223,34 +1558,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1223
1558
|
',',
|
|
1224
1559
|
' '
|
|
1225
1560
|
),
|
|
1226
|
-
issue.name &&
|
|
1561
|
+
issue.name && React__default.createElement(
|
|
1227
1562
|
'span',
|
|
1228
1563
|
{ className: 'mb-0' },
|
|
1229
1564
|
issue.name,
|
|
1230
1565
|
', '
|
|
1231
1566
|
),
|
|
1232
|
-
issue.volume &&
|
|
1567
|
+
issue.volume && React__default.createElement(
|
|
1233
1568
|
'span',
|
|
1234
1569
|
null,
|
|
1235
1570
|
'Volume ' + issue.volume,
|
|
1236
1571
|
','
|
|
1237
1572
|
),
|
|
1238
|
-
issue.issueNumber &&
|
|
1573
|
+
issue.issueNumber && React__default.createElement(
|
|
1239
1574
|
'span',
|
|
1240
1575
|
null,
|
|
1241
1576
|
' Issue ' + issue.issueNumber
|
|
1242
1577
|
)
|
|
1243
1578
|
),
|
|
1244
|
-
pageNumber &&
|
|
1579
|
+
pageNumber && React__default.createElement(
|
|
1245
1580
|
'div',
|
|
1246
1581
|
{ className: 'article-pageNumber' },
|
|
1247
1582
|
'Pages: ' + pageNumber
|
|
1248
1583
|
)
|
|
1249
1584
|
),
|
|
1250
|
-
!isVideoSeries && showSocialShare &&
|
|
1585
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1251
1586
|
'p',
|
|
1252
1587
|
null,
|
|
1253
|
-
|
|
1588
|
+
React__default.createElement(SocialShare, {
|
|
1254
1589
|
shareUrl: shareUrl,
|
|
1255
1590
|
shareTitle: shareTitle,
|
|
1256
1591
|
shareVia: shareVia,
|
|
@@ -1266,27 +1601,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1266
1601
|
})
|
|
1267
1602
|
)
|
|
1268
1603
|
),
|
|
1269
|
-
|
|
1604
|
+
React__default.createElement(
|
|
1270
1605
|
'div',
|
|
1271
1606
|
null,
|
|
1272
|
-
|
|
1607
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1273
1608
|
)
|
|
1274
1609
|
),
|
|
1275
|
-
!isVideoSeries && summary && display_summary &&
|
|
1610
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1276
1611
|
'p',
|
|
1277
1612
|
null,
|
|
1278
|
-
|
|
1613
|
+
React__default.createElement(
|
|
1279
1614
|
'em',
|
|
1280
1615
|
null,
|
|
1281
1616
|
summary
|
|
1282
1617
|
)
|
|
1283
1618
|
),
|
|
1284
|
-
|
|
1619
|
+
React__default.createElement(
|
|
1285
1620
|
'div',
|
|
1286
1621
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1287
|
-
|
|
1622
|
+
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1288
1623
|
if (index === 0) {
|
|
1289
|
-
return
|
|
1624
|
+
return React__default.createElement(
|
|
1290
1625
|
'div',
|
|
1291
1626
|
{
|
|
1292
1627
|
key: index,
|
|
@@ -1303,24 +1638,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1303
1638
|
}
|
|
1304
1639
|
})
|
|
1305
1640
|
),
|
|
1306
|
-
|
|
1641
|
+
React__default.createElement(
|
|
1307
1642
|
'div',
|
|
1308
1643
|
{ className: 'block-content mt-3' },
|
|
1309
1644
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1310
|
-
|
|
1311
|
-
|
|
1645
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1646
|
+
React__default.createElement(
|
|
1312
1647
|
'noscript',
|
|
1313
1648
|
null,
|
|
1314
|
-
|
|
1649
|
+
React__default.createElement(
|
|
1315
1650
|
'div',
|
|
1316
1651
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1317
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1652
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1318
1653
|
'a',
|
|
1319
1654
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1320
1655
|
'Previous ',
|
|
1321
1656
|
props.article.seriesDetail.type
|
|
1322
1657
|
),
|
|
1323
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1658
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1324
1659
|
'a',
|
|
1325
1660
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1326
1661
|
'Next ',
|
|
@@ -1328,37 +1663,37 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1328
1663
|
)
|
|
1329
1664
|
)
|
|
1330
1665
|
),
|
|
1331
|
-
|
|
1666
|
+
React__default.createElement(
|
|
1332
1667
|
'div',
|
|
1333
1668
|
{ className: 'downloads-container' },
|
|
1334
|
-
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) &&
|
|
1669
|
+
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1335
1670
|
Button,
|
|
1336
1671
|
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1337
1672
|
return downloadRIS();
|
|
1338
1673
|
} },
|
|
1339
1674
|
'Download RIS'
|
|
1340
1675
|
),
|
|
1341
|
-
issue && issue.pdf &&
|
|
1676
|
+
issue && issue.pdf && React__default.createElement(
|
|
1342
1677
|
'a',
|
|
1343
1678
|
{ rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
1344
|
-
|
|
1679
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1345
1680
|
'Download Issue : ',
|
|
1346
1681
|
issue.name
|
|
1347
1682
|
)
|
|
1348
1683
|
)
|
|
1349
1684
|
),
|
|
1350
|
-
|
|
1351
|
-
article.documentGroup && article.documentGroup.isSeries && sliderData && !seriesInfo.hasVideo &&
|
|
1685
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1686
|
+
article.documentGroup && article.documentGroup.isSeries && sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1352
1687
|
'div',
|
|
1353
1688
|
null,
|
|
1354
1689
|
false ,
|
|
1355
|
-
|
|
1690
|
+
React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1356
1691
|
),
|
|
1357
|
-
showRelatedArticles && !showIsi &&
|
|
1358
|
-
disqusConfig && showDisqus &&
|
|
1692
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1693
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1359
1694
|
'div',
|
|
1360
1695
|
{ id: 'disqusContainer' },
|
|
1361
|
-
|
|
1696
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1362
1697
|
shortname: disqusConfig.shortname,
|
|
1363
1698
|
config: {
|
|
1364
1699
|
url: disqusConfig.url,
|
|
@@ -1371,30 +1706,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1371
1706
|
renderIsiContent(props.article)
|
|
1372
1707
|
)
|
|
1373
1708
|
),
|
|
1374
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1709
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1375
1710
|
ISI,
|
|
1376
1711
|
null,
|
|
1377
|
-
|
|
1712
|
+
React__default.createElement(BlockContent, {
|
|
1378
1713
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1379
1714
|
blocks: isi
|
|
1380
1715
|
})
|
|
1381
1716
|
),
|
|
1382
|
-
|
|
1717
|
+
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1383
1718
|
if (index > 0) {
|
|
1384
|
-
return
|
|
1719
|
+
return React__default.createElement(
|
|
1385
1720
|
'div',
|
|
1386
1721
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1387
1722
|
ad.component
|
|
1388
1723
|
);
|
|
1389
1724
|
}
|
|
1390
1725
|
}),
|
|
1391
|
-
|
|
1726
|
+
React__default.createElement(
|
|
1392
1727
|
'noscript',
|
|
1393
1728
|
null,
|
|
1394
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1729
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1395
1730
|
'div',
|
|
1396
1731
|
{ style: { textAlign: 'center' } },
|
|
1397
|
-
|
|
1732
|
+
React__default.createElement(
|
|
1398
1733
|
'a',
|
|
1399
1734
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1400
1735
|
'Related Article ',
|
|
@@ -1402,8 +1737,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1402
1737
|
)
|
|
1403
1738
|
)
|
|
1404
1739
|
),
|
|
1405
|
-
props.infiniteScroll &&
|
|
1406
|
-
|
|
1740
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1741
|
+
React__default.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1407
1742
|
);
|
|
1408
1743
|
};
|
|
1409
1744
|
|
|
@@ -1416,9 +1751,11 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1416
1751
|
} else {
|
|
1417
1752
|
return detail();
|
|
1418
1753
|
}
|
|
1754
|
+
}), function (prevProps, nextProps) {
|
|
1755
|
+
return prevProps.article === nextProps.article;
|
|
1419
1756
|
});
|
|
1420
1757
|
|
|
1421
|
-
var _this = undefined;
|
|
1758
|
+
var _this$1 = undefined;
|
|
1422
1759
|
|
|
1423
1760
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1424
1761
|
var router = useRouter();
|
|
@@ -1427,9 +1764,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1427
1764
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1428
1765
|
Ads = props.Ads,
|
|
1429
1766
|
_props$maxListLength = props.maxListLength,
|
|
1430
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1431
|
-
|
|
1432
|
-
_props$cpModification = props.cpModificationRequired,
|
|
1767
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength;
|
|
1768
|
+
props.sponsoredTaxonomies;
|
|
1769
|
+
var _props$cpModification = props.cpModificationRequired,
|
|
1433
1770
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1434
1771
|
_props$authorPrefix = props.authorPrefix,
|
|
1435
1772
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1485,7 +1822,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1485
1822
|
return item.url.current === path;
|
|
1486
1823
|
});
|
|
1487
1824
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1488
|
-
if (!
|
|
1825
|
+
if (!main_43) {
|
|
1489
1826
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1490
1827
|
if (window.googletag && googletag.pubadsReady) {
|
|
1491
1828
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1502,7 +1839,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1502
1839
|
});
|
|
1503
1840
|
}
|
|
1504
1841
|
//Refresh leaderboard ad on mobile
|
|
1505
|
-
if (
|
|
1842
|
+
if (main_43) {
|
|
1506
1843
|
var leaderboardSlotId = '';
|
|
1507
1844
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1508
1845
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1606,7 +1943,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1606
1943
|
return _context.stop();
|
|
1607
1944
|
}
|
|
1608
1945
|
}
|
|
1609
|
-
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1946
|
+
}, _callee, _this$1, [[3, 9], [15, 21]]);
|
|
1610
1947
|
}));
|
|
1611
1948
|
|
|
1612
1949
|
return function loadmore() {
|
|
@@ -1684,14 +2021,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1684
2021
|
refreshAD(path);
|
|
1685
2022
|
};
|
|
1686
2023
|
|
|
1687
|
-
return
|
|
2024
|
+
return React__default.createElement(
|
|
1688
2025
|
InfiniteScroll,
|
|
1689
2026
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1690
2027
|
queueData.map(function (article, index) {
|
|
1691
|
-
return
|
|
1692
|
-
|
|
2028
|
+
return React__default.createElement(
|
|
2029
|
+
React__default.Fragment,
|
|
1693
2030
|
{ key: index },
|
|
1694
|
-
|
|
2031
|
+
React__default.createElement(Article, _extends({}, props, {
|
|
1695
2032
|
containerHeight: containerHeight,
|
|
1696
2033
|
onChangeArticle: onChangeArticle,
|
|
1697
2034
|
authorPrfix: authorPrefix,
|
|
@@ -1700,14 +2037,15 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1700
2037
|
active: active === article._id
|
|
1701
2038
|
// Passing queueData to check for single article
|
|
1702
2039
|
, queueData: queueData,
|
|
1703
|
-
showRelatedArticles: showRelatedArticles
|
|
2040
|
+
showRelatedArticles: showRelatedArticles,
|
|
2041
|
+
index: index
|
|
1704
2042
|
}))
|
|
1705
2043
|
);
|
|
1706
2044
|
})
|
|
1707
2045
|
);
|
|
1708
2046
|
};
|
|
1709
2047
|
|
|
1710
|
-
var _this
|
|
2048
|
+
var _this = undefined;
|
|
1711
2049
|
|
|
1712
2050
|
var View = function View(props) {
|
|
1713
2051
|
var router = useRouter();
|
|
@@ -1717,9 +2055,9 @@ var View = function View(props) {
|
|
|
1717
2055
|
hideComments = _props$article.hideComments,
|
|
1718
2056
|
content_placement = _props$article.content_placement,
|
|
1719
2057
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1720
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1721
|
-
|
|
1722
|
-
Ads = props.Ads,
|
|
2058
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag;
|
|
2059
|
+
props.sponsoredTaxonomies;
|
|
2060
|
+
var Ads = props.Ads,
|
|
1723
2061
|
setCustomDimensions = props.setCustomDimensions,
|
|
1724
2062
|
statusCode = props.statusCode,
|
|
1725
2063
|
prevUrl = props.prevUrl,
|
|
@@ -1732,9 +2070,9 @@ var View = function View(props) {
|
|
|
1732
2070
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1733
2071
|
var _props$article2 = props.article,
|
|
1734
2072
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1735
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1736
|
-
|
|
1737
|
-
title = _props$article2.title,
|
|
2073
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw;
|
|
2074
|
+
_props$article2.description;
|
|
2075
|
+
var title = _props$article2.title,
|
|
1738
2076
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1739
2077
|
|
|
1740
2078
|
var _useState = useState(0),
|
|
@@ -1790,7 +2128,6 @@ var View = function View(props) {
|
|
|
1790
2128
|
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;
|
|
1791
2129
|
|
|
1792
2130
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1793
|
-
description = null;
|
|
1794
2131
|
title = null;
|
|
1795
2132
|
}
|
|
1796
2133
|
|
|
@@ -1834,63 +2171,63 @@ var View = function View(props) {
|
|
|
1834
2171
|
|
|
1835
2172
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1836
2173
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1837
|
-
return
|
|
1838
|
-
|
|
2174
|
+
return React__default.createElement(
|
|
2175
|
+
React__default.Fragment,
|
|
1839
2176
|
null,
|
|
1840
|
-
|
|
2177
|
+
React__default.createElement(
|
|
1841
2178
|
Head,
|
|
1842
2179
|
null,
|
|
1843
|
-
|
|
2180
|
+
React__default.createElement(
|
|
1844
2181
|
'title',
|
|
1845
2182
|
{ key: 'title' },
|
|
1846
2183
|
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 : '')
|
|
1847
2184
|
),
|
|
1848
|
-
metaDescriptionSanity ?
|
|
1849
|
-
|
|
1850
|
-
passwordLock &&
|
|
1851
|
-
|
|
2185
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
2186
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
2187
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2188
|
+
React__default.createElement('meta', {
|
|
1852
2189
|
property: 'og:url',
|
|
1853
2190
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1854
2191
|
key: 'og:url'
|
|
1855
2192
|
}),
|
|
1856
|
-
|
|
2193
|
+
React__default.createElement('meta', {
|
|
1857
2194
|
property: 'og:title',
|
|
1858
2195
|
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 : ''),
|
|
1859
2196
|
key: 'og:title'
|
|
1860
2197
|
}),
|
|
1861
|
-
|
|
2198
|
+
React__default.createElement('meta', {
|
|
1862
2199
|
property: 'og:image',
|
|
1863
2200
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1864
2201
|
key: 'og:image'
|
|
1865
2202
|
}),
|
|
1866
|
-
|
|
1867
|
-
metaDescriptionSanity ?
|
|
1868
|
-
|
|
1869
|
-
|
|
2203
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
2204
|
+
metaDescriptionSanity ? React__default.createElement('meta', { property: 'og:description', key: 'og:description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { property: 'og:description', key: 'og:description', content: meta_description }),
|
|
2205
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
2206
|
+
React__default.createElement('meta', {
|
|
1870
2207
|
name: 'twitter:title',
|
|
1871
2208
|
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 : ''),
|
|
1872
2209
|
key: 'twitter:title'
|
|
1873
2210
|
}),
|
|
1874
|
-
|
|
2211
|
+
React__default.createElement('meta', {
|
|
1875
2212
|
name: 'twitter:image',
|
|
1876
2213
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1877
2214
|
key: 'twitter:image'
|
|
1878
2215
|
}),
|
|
1879
|
-
|
|
1880
|
-
metaDescriptionSanity ?
|
|
1881
|
-
canonicalTag &&
|
|
2216
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
2217
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: meta_description }),
|
|
2218
|
+
canonicalTag && React__default.createElement('link', {
|
|
1882
2219
|
rel: 'canonical',
|
|
1883
2220
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1884
2221
|
key: 'canonical'
|
|
1885
2222
|
}),
|
|
1886
|
-
|
|
2223
|
+
React__default.createElement(
|
|
1887
2224
|
'noscript',
|
|
1888
2225
|
null,
|
|
1889
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1890
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
2226
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
2227
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1891
2228
|
)
|
|
1892
2229
|
),
|
|
1893
|
-
!needInfiniteScroll ?
|
|
2230
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1894
2231
|
infiniteScroll: true,
|
|
1895
2232
|
showRelatedArticles: showRelatedArticles,
|
|
1896
2233
|
canonicalTag: canonicalTag,
|
|
@@ -2027,7 +2364,7 @@ View.returnGetInitialProps = function () {
|
|
|
2027
2364
|
return _context.stop();
|
|
2028
2365
|
}
|
|
2029
2366
|
}
|
|
2030
|
-
}, _callee, _this
|
|
2367
|
+
}, _callee, _this);
|
|
2031
2368
|
}));
|
|
2032
2369
|
|
|
2033
2370
|
return function (_x, _x2, _x3, _x4, _x5) {
|