@mjhls/mjh-framework 1.0.901-ris-export-v1 → 1.0.901
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -22
- package/dist/cjs/AD300x250x600.js +21 -22
- package/dist/cjs/AD728x90.js +24 -25
- package/dist/cjs/ADFloatingFooter.js +20 -21
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -21
- package/dist/cjs/{ADInfeed-af3fdbc3.js → ADInfeed-ebe59b1b.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -21
- package/dist/cjs/ADSponsoredResources.js +20 -21
- package/dist/cjs/ADWebcast.js +20 -21
- package/dist/cjs/ADWelcome.js +17 -18
- package/dist/cjs/{ADlgInfeed-ea8f6de8.js → ADlgInfeed-b6a730a6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -20
- package/dist/cjs/AdSlotsProvider.js +11 -12
- package/dist/cjs/AlgoliaSearch.js +31 -14294
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +48 -48
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -30
- package/dist/cjs/ArticleSeriesListing.js +30 -31
- package/dist/cjs/Auth.js +346 -482
- package/dist/cjs/AuthWrapper.js +14 -1767
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -23
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -31
- package/dist/cjs/ConferenceArticleCard.js +25 -25
- package/dist/cjs/ContentCardPaginated.js +37 -37
- package/dist/cjs/DeckContent.js +39 -40
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -33
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +12 -13
- package/dist/cjs/EventsDeck.js +43 -43
- package/dist/cjs/ExternalResources.js +45 -45
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -46
- package/dist/cjs/GridContentPaginated.js +47 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -46
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +83 -83
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -20
- package/dist/cjs/MasterDeck.js +38 -39
- package/dist/cjs/MasterDeckPaginated.js +41 -41
- package/dist/cjs/{MediaSeriesCard-06462033.js → MediaSeriesCard-9597476b.js} +800 -1003
- package/dist/cjs/MediaSeriesLanding.js +55 -56
- package/dist/cjs/MediaSeriesLandingPaginated.js +60 -60
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +39 -39
- package/dist/cjs/NavNative.js +39 -39
- 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 +90 -0
- package/dist/cjs/PartnerDetailListing.js +60 -61
- package/dist/cjs/PartnerDetailListingPaginated.js +60 -60
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PubSection.js +32 -33
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +53 -57
- package/dist/cjs/QueueDeckExpanded.js +35 -36
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +38 -38
- package/dist/cjs/RelatedTopicsDropdown.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 +17 -18
- package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-88e59074.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-af6ddcc0.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +44 -44
- package/dist/cjs/TemplateNormal.js +45 -46
- 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 +50 -50
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -36
- package/dist/cjs/VideoSeriesListing.js +30 -31
- package/dist/cjs/View.js +100 -160
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +21 -21
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +68 -132
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-253ffce5.js} +11 -11
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index-82ca8a61.js → index-ce6e0b8f.js} +156 -406
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-48e0f0d8.js} +1 -1
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +143 -145
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -25
- package/dist/esm/AD300x250x600.js +24 -25
- package/dist/esm/AD728x90.js +27 -28
- package/dist/esm/ADFloatingFooter.js +26 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +26 -27
- package/dist/esm/{ADInfeed-64ff1fde.js → ADInfeed-6c0ed45b.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -27
- package/dist/esm/ADSponsoredResources.js +26 -27
- package/dist/esm/ADWebcast.js +26 -27
- package/dist/esm/ADWelcome.js +27 -28
- package/dist/esm/{ADlgInfeed-a731f9c2.js → ADlgInfeed-e9e1808e.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +12 -13
- package/dist/esm/AlgoliaSearch.js +55 -14318
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +35 -36
- package/dist/esm/ArticleSeriesListing.js +54 -55
- package/dist/esm/Auth.js +417 -553
- package/dist/esm/AuthWrapper.js +27 -1781
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-37ebc2bd.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +49 -50
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +72 -72
- package/dist/esm/DeckContent.js +84 -85
- package/dist/esm/DeckQueue.js +67 -68
- package/dist/esm/DeckQueuePaginated.js +63 -63
- package/dist/esm/{Dfp-102f0beb.js → Dfp-23281963.js} +20 -21
- package/dist/esm/EventsDeck.js +103 -103
- package/dist/esm/ExternalResources.js +71 -71
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +142 -143
- package/dist/esm/GridContentPaginated.js +134 -134
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +113 -113
- 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 +68 -68
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-522a2cd0.js +1375 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +91 -91
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +32 -33
- package/dist/esm/MasterDeck.js +71 -72
- package/dist/esm/MasterDeckPaginated.js +63 -63
- package/dist/esm/{MediaSeriesCard-aa554993.js → MediaSeriesCard-df80c347.js} +800 -1003
- package/dist/esm/MediaSeriesLanding.js +80 -81
- package/dist/esm/MediaSeriesLandingPaginated.js +83 -83
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +121 -121
- package/dist/esm/NavNative.js +110 -110
- 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 +82 -0
- package/dist/esm/PartnerDetailListing.js +92 -93
- package/dist/esm/PartnerDetailListingPaginated.js +91 -91
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -38
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-d79db241.js} +23 -23
- package/dist/esm/PublicationLanding.js +100 -104
- package/dist/esm/QueueDeckExpanded.js +273 -274
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -253
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- 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 +30 -31
- package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-0a8cfca0.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-32ee0f63.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +65 -66
- 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 +62 -62
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -41
- package/dist/esm/VideoSeriesListing.js +70 -71
- package/dist/esm/View.js +254 -314
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-a4230287.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +69 -133
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-36031a00.js → getTargeting-62414a48.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-17d14c85.js → index-5f19922f.js} +550 -801
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-d1125763.js} +1 -1
- package/dist/esm/index.js +138 -140
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-91a2c374.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-43ca42fe.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-f1b7564e.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +112 -113
- package/dist/cjs/ImageSlider-6c00b878.js +0 -2813
- package/dist/cjs/Pagination-42f92f7c.js +0 -97
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/Pagination-484b86c5.js +0 -90
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
package/dist/esm/View.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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-17d14c85.js';
|
|
19
|
-
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-98ad6d97.js';
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-36031a00.js';
|
|
22
|
-
import getKeywords from './getKeywords.js';
|
|
23
|
-
import urlFor from './urlFor.js';
|
|
24
|
-
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
25
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-1bd8a0a8.js';
|
|
26
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
|
-
import './index-755f2cc2.js';
|
|
28
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
29
|
-
import Schema from './Schema.js';
|
|
30
|
-
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
31
|
-
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
32
|
-
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
33
|
-
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
34
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
35
|
-
import getQuery from './getQuery.js';
|
|
36
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
37
|
-
import './core.get-iterator-method-ea258bb1.js';
|
|
38
|
-
import './web.dom.iterable-ab4dea5c.js';
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
39
3
|
import './_library-528f1934.js';
|
|
40
|
-
import './_iter-detect-
|
|
41
|
-
import './
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
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
16
|
import 'prop-types';
|
|
43
|
-
import '
|
|
17
|
+
import 'react-bootstrap/Row';
|
|
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';
|
|
44
25
|
import 'react-dom';
|
|
45
|
-
import '
|
|
46
|
-
import '
|
|
47
|
-
import './index-
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
26
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
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 { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
50
35
|
import './Segment.js';
|
|
51
|
-
import './
|
|
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';
|
|
52
42
|
import './GroupDeck.js';
|
|
53
|
-
import '
|
|
54
|
-
import './
|
|
55
|
-
import './
|
|
43
|
+
import 'react-bootstrap';
|
|
44
|
+
import './iconBase-602d52fe.js';
|
|
45
|
+
import './index.esm-55f22b35.js';
|
|
46
|
+
import { r as renderAuthor, g as getSerializers } from './index-5f19922f.js';
|
|
47
|
+
import './util-7700fc59.js';
|
|
48
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
49
|
+
import Head from 'next/head';
|
|
50
|
+
import 'react-share';
|
|
51
|
+
import SocialShare from './SocialShare.js';
|
|
52
|
+
import './_object-to-array-c54dd835.js';
|
|
56
53
|
import 'react-bootstrap/Pagination';
|
|
57
|
-
import './entities-6d9154b4.js';
|
|
58
|
-
import 'react-bootstrap/Row';
|
|
59
|
-
import 'react-bootstrap/Col';
|
|
60
|
-
import './inherits-a6ba2ec4.js';
|
|
61
|
-
import './_object-sap-7cee6f84.js';
|
|
62
|
-
import './define-property-5f1bda73.js';
|
|
63
|
-
import './index.esm-eb1e8e80.js';
|
|
64
|
-
import './iconBase-ccc56b97.js';
|
|
65
54
|
import 'react-bootstrap/Figure';
|
|
66
55
|
import 'react-bootstrap/OverlayTrigger';
|
|
67
56
|
import 'react-bootstrap/Tooltip';
|
|
68
57
|
import 'react-bootstrap/Popover';
|
|
69
|
-
import '
|
|
70
|
-
import '
|
|
71
|
-
import '
|
|
72
|
-
import './
|
|
58
|
+
import 'react-script-tag';
|
|
59
|
+
import Form from 'react-bootstrap/Form';
|
|
60
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
61
|
+
import { _ as _Object$keys } from './keys-69989821.js';
|
|
62
|
+
import 'react-bootstrap/Dropdown';
|
|
63
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-d1125763.js';
|
|
64
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
73
65
|
import './index-db3bb315.js';
|
|
66
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
67
|
+
import getQuery from './getQuery.js';
|
|
68
|
+
import { S as SeriesSlider } from './SeriesSlider-0a8cfca0.js';
|
|
69
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-62414a48.js';
|
|
70
|
+
import getKeywords from './getKeywords.js';
|
|
71
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
72
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
73
|
+
import Schema from './Schema.js';
|
|
74
74
|
|
|
75
75
|
var getArticleSummary = function getArticleSummary(article) {
|
|
76
76
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -148,17 +148,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
148
148
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
return
|
|
151
|
+
return React.createElement(
|
|
152
152
|
'a',
|
|
153
153
|
{
|
|
154
154
|
href: url,
|
|
155
155
|
className: 'doc-group',
|
|
156
156
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
157
|
-
thumbnailUrl &&
|
|
158
|
-
!thumbnailUrl &&
|
|
159
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
157
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
158
|
+
!thumbnailUrl && React.createElement('p', {
|
|
159
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
160
160
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
161
|
-
|
|
161
|
+
main_40 && !thumbnailUrl && React.createElement(
|
|
162
162
|
'style',
|
|
163
163
|
{ jsx: 'true' },
|
|
164
164
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -298,38 +298,38 @@ var ISI = function ISI(props) {
|
|
|
298
298
|
}, 300);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
|
-
return
|
|
302
|
-
|
|
301
|
+
return React.createElement(
|
|
302
|
+
React.Fragment,
|
|
303
303
|
null,
|
|
304
|
-
|
|
304
|
+
React.createElement(
|
|
305
305
|
'div',
|
|
306
306
|
{ id: 'isi', ref: isi },
|
|
307
|
-
|
|
307
|
+
React.createElement(
|
|
308
308
|
'div',
|
|
309
309
|
{ id: 'isiContent' },
|
|
310
|
-
|
|
310
|
+
React.createElement(
|
|
311
311
|
'div',
|
|
312
312
|
{ onClick: function onClick() {
|
|
313
313
|
return setActive(function (prev) {
|
|
314
314
|
return !prev;
|
|
315
315
|
});
|
|
316
316
|
}, id: 'isiToggle' },
|
|
317
|
-
active ?
|
|
317
|
+
active ? React.createElement(
|
|
318
318
|
'p',
|
|
319
319
|
null,
|
|
320
320
|
'Close ',
|
|
321
|
-
|
|
322
|
-
) :
|
|
321
|
+
React.createElement(FaMinus, null)
|
|
322
|
+
) : React.createElement(
|
|
323
323
|
'p',
|
|
324
324
|
null,
|
|
325
325
|
'See More ',
|
|
326
|
-
|
|
326
|
+
React.createElement(FaPlus, null)
|
|
327
327
|
)
|
|
328
328
|
),
|
|
329
329
|
children
|
|
330
330
|
)
|
|
331
331
|
),
|
|
332
|
-
|
|
332
|
+
React.createElement(
|
|
333
333
|
'style',
|
|
334
334
|
{ jsx: true },
|
|
335
335
|
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 12rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s ease , margin-top .3s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
@@ -337,7 +337,7 @@ var ISI = function ISI(props) {
|
|
|
337
337
|
);
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
340
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
341
341
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
342
342
|
styleInject(css);
|
|
343
343
|
|
|
@@ -351,34 +351,34 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
351
351
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
352
352
|
return null;
|
|
353
353
|
}
|
|
354
|
-
return
|
|
354
|
+
return React.createElement(
|
|
355
355
|
'div',
|
|
356
356
|
{ className: styles.mediaContainer },
|
|
357
357
|
articles.map(function (article, index) {
|
|
358
358
|
if (article && article.url && article.url.current) {
|
|
359
|
-
return
|
|
359
|
+
return React.createElement(
|
|
360
360
|
'div',
|
|
361
361
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
362
|
-
|
|
362
|
+
React.createElement(
|
|
363
363
|
'a',
|
|
364
364
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
365
|
-
article.thumbnail ?
|
|
365
|
+
article.thumbnail ? React.createElement('img', {
|
|
366
366
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
367
367
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
368
368
|
alt: article.title
|
|
369
|
-
}) :
|
|
370
|
-
|
|
369
|
+
}) : React.createElement(
|
|
370
|
+
React.Fragment,
|
|
371
371
|
null,
|
|
372
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
372
|
+
fallbackImage && showRelatedArticleFallbackImage && React.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
373
373
|
)
|
|
374
374
|
),
|
|
375
|
-
|
|
375
|
+
React.createElement(
|
|
376
376
|
'div',
|
|
377
377
|
{ className: styles.mediaBody },
|
|
378
|
-
|
|
378
|
+
React.createElement(
|
|
379
379
|
'a',
|
|
380
380
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
381
|
-
|
|
381
|
+
React.createElement(
|
|
382
382
|
'div',
|
|
383
383
|
{ className: styles.cardTitle },
|
|
384
384
|
article.title
|
|
@@ -436,12 +436,6 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
436
436
|
return showSocialShare;
|
|
437
437
|
};
|
|
438
438
|
|
|
439
|
-
var FileSaver_min = createCommonjsModule(function (module, exports) {
|
|
440
|
-
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
});
|
|
444
|
-
|
|
445
439
|
var Article = forwardRef(function (props, ref) {
|
|
446
440
|
var onVote = function () {
|
|
447
441
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -547,15 +541,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
547
541
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
548
542
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
549
543
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
550
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
551
|
-
props.active
|
|
552
|
-
|
|
544
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
545
|
+
active = props.active,
|
|
546
|
+
containerHeight = props.containerHeight,
|
|
553
547
|
_props$refreshFlag = props.refreshFlag,
|
|
554
548
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
555
549
|
disqusConfig = props.disqusConfig,
|
|
556
|
-
showDisqus = props.showDisqus
|
|
557
|
-
_props$downloadCitati = props.downloadCitation,
|
|
558
|
-
downloadCitation = _props$downloadCitati === undefined ? false : _props$downloadCitati;
|
|
550
|
+
showDisqus = props.showDisqus;
|
|
559
551
|
|
|
560
552
|
var targeting = getTargeting(props);
|
|
561
553
|
|
|
@@ -611,9 +603,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
611
603
|
setArticleBody = _useState10[1];
|
|
612
604
|
|
|
613
605
|
var _useState11 = useState(true),
|
|
614
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
615
|
-
_useState12[0]
|
|
616
|
-
|
|
606
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
607
|
+
previewAd = _useState12[0],
|
|
608
|
+
setPreviewAd = _useState12[1];
|
|
617
609
|
|
|
618
610
|
useEffect(function () {
|
|
619
611
|
var path = window && window.location && window.location.search;
|
|
@@ -634,7 +626,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
634
626
|
};
|
|
635
627
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
636
628
|
if (biography) {
|
|
637
|
-
return
|
|
629
|
+
return React.createElement(BlockContent, _extends({
|
|
638
630
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
639
631
|
blocks: [biography]
|
|
640
632
|
}, client.config()));
|
|
@@ -644,54 +636,12 @@ var Article = forwardRef(function (props, ref) {
|
|
|
644
636
|
var url = article.url.current;
|
|
645
637
|
|
|
646
638
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
647
|
-
return
|
|
639
|
+
return React.createElement(ISIContent, null);
|
|
648
640
|
} else if (nationalPage === url && ISIContent) {
|
|
649
|
-
return
|
|
641
|
+
return React.createElement(ISIContent, { national: true });
|
|
650
642
|
}
|
|
651
643
|
return null;
|
|
652
644
|
};
|
|
653
|
-
var generateRIS = function generateRIS() {
|
|
654
|
-
var fileContent = 'TY - JOUR\n';
|
|
655
|
-
if (issue) {
|
|
656
|
-
if (article.title) {
|
|
657
|
-
fileContent += 'TI - ' + article.title + '\n'; //Title - TI
|
|
658
|
-
fileContent += 'T1 - ' + article.title + '\n'; //Title - T1
|
|
659
|
-
}
|
|
660
|
-
if (issue.publication && issue.publication.name) {
|
|
661
|
-
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
662
|
-
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
663
|
-
fileContent += 'JO - ' + issue.publication.name + '\n'; //Journal Name - JO
|
|
664
|
-
}
|
|
665
|
-
if (article.summary) fileContent += 'N2 - ' + article.summary + '\n'; //Abstract - N2
|
|
666
|
-
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
667
|
-
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
668
|
-
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
669
|
-
if (issue.volume) fileContent += 'VL - ' + issue.volume + '\n'; //Volume - VL
|
|
670
|
-
if (issue.url) fileContent += 'L1 - ' + issue.url + '\n'; //Link to PDF - L1
|
|
671
|
-
if (shareOptions && shareOptions.shareBaseUrl) {
|
|
672
|
-
fileContent += 'L2 - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Link to Full-text - L2
|
|
673
|
-
fileContent += 'UR - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Doc URL - UR
|
|
674
|
-
}
|
|
675
|
-
if (props.Website) fileContent += 'LK - https://' + props.Website.liveDomain + '\n'; //Website Link - LK
|
|
676
|
-
if (pageNumber) {
|
|
677
|
-
if (pageNumber.includes('-')) {
|
|
678
|
-
fileContent += 'SP - ' + pageNumber.split('-')[0] + '\n'; //Start Page - SP
|
|
679
|
-
fileContent += 'EP - ' + pageNumber.split('-')[1] + '\n'; //End Page - EP
|
|
680
|
-
} else {
|
|
681
|
-
fileContent += 'SP - ' + pageNumber + '\n';
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
if (article.published) fileContent += 'Y1 - ' + moment(published).format('DD-MMMM-YYYY') + '\n'; //Primary Date - Y1
|
|
685
|
-
fileContent += 'Y2 - ' + moment().format('DD-MMMM-YYYY') + '\n'; //Access Date - Y2
|
|
686
|
-
}
|
|
687
|
-
fileContent += 'ER -\n'; //End of Record
|
|
688
|
-
return fileContent;
|
|
689
|
-
};
|
|
690
|
-
var downloadRIS = function downloadRIS() {
|
|
691
|
-
var fileContent = generateRIS();
|
|
692
|
-
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
693
|
-
FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
|
|
694
|
-
};
|
|
695
645
|
|
|
696
646
|
var RelevantTopics = function RelevantTopics() {
|
|
697
647
|
if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
|
|
@@ -722,23 +672,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
722
672
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
723
673
|
}
|
|
724
674
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
725
|
-
return
|
|
675
|
+
return React.createElement(
|
|
726
676
|
'div',
|
|
727
677
|
null,
|
|
728
678
|
relatedLinks.map(function (relatedLink, index) {
|
|
729
679
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
730
|
-
return
|
|
680
|
+
return React.createElement(
|
|
731
681
|
'span',
|
|
732
682
|
{ key: index, className: 'related-link' },
|
|
733
|
-
|
|
683
|
+
React.createElement(
|
|
734
684
|
'a',
|
|
735
685
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
736
686
|
relatedLink.label
|
|
737
687
|
),
|
|
738
|
-
|
|
688
|
+
React.createElement(
|
|
739
689
|
'style',
|
|
740
690
|
{ jsx: 'true' },
|
|
741
|
-
'\n
|
|
691
|
+
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
742
692
|
)
|
|
743
693
|
);
|
|
744
694
|
}
|
|
@@ -751,23 +701,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
751
701
|
};
|
|
752
702
|
|
|
753
703
|
var RelatedContent = function RelatedContent() {
|
|
754
|
-
return
|
|
704
|
+
return React.createElement(
|
|
755
705
|
'section',
|
|
756
706
|
{ id: 'related-content-section', className: 'my-1' },
|
|
757
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
707
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
758
708
|
'p',
|
|
759
709
|
{ className: 'mb-0' },
|
|
760
|
-
|
|
710
|
+
React.createElement(
|
|
761
711
|
'b',
|
|
762
712
|
null,
|
|
763
713
|
'Related Content:'
|
|
764
714
|
)
|
|
765
715
|
),
|
|
766
|
-
|
|
767
|
-
|
|
716
|
+
React.createElement(RelevantTopics, null),
|
|
717
|
+
React.createElement(
|
|
768
718
|
'div',
|
|
769
719
|
{ className: 'pt-2' },
|
|
770
|
-
|
|
720
|
+
React.createElement(RelatedArticle, {
|
|
771
721
|
articles: article.relatedArticle,
|
|
772
722
|
client: client,
|
|
773
723
|
fallbackImage: props.Settings.logo,
|
|
@@ -778,28 +728,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
778
728
|
};
|
|
779
729
|
|
|
780
730
|
var form = function form() {
|
|
781
|
-
return
|
|
782
|
-
|
|
731
|
+
return React.createElement(
|
|
732
|
+
React.Fragment,
|
|
783
733
|
null,
|
|
784
|
-
|
|
734
|
+
React.createElement(
|
|
785
735
|
Head,
|
|
786
736
|
null,
|
|
787
|
-
|
|
737
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
788
738
|
),
|
|
789
|
-
|
|
739
|
+
React.createElement(
|
|
790
740
|
'div',
|
|
791
741
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
792
|
-
|
|
742
|
+
React.createElement(
|
|
793
743
|
Form,
|
|
794
744
|
{
|
|
795
745
|
inline: true,
|
|
796
746
|
onSubmit: function onSubmit(e) {
|
|
797
747
|
e.preventDefault();
|
|
798
748
|
} },
|
|
799
|
-
|
|
749
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
800
750
|
return setPasswordKey(e.target.value);
|
|
801
751
|
}, placeholder: 'Password' }),
|
|
802
|
-
|
|
752
|
+
React.createElement(
|
|
803
753
|
Button,
|
|
804
754
|
{
|
|
805
755
|
variant: 'primary',
|
|
@@ -849,31 +799,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
849
799
|
setContextualADFlag(true);
|
|
850
800
|
}
|
|
851
801
|
};
|
|
852
|
-
return
|
|
853
|
-
|
|
802
|
+
return React.createElement(
|
|
803
|
+
React.Fragment,
|
|
854
804
|
null,
|
|
855
|
-
|
|
805
|
+
React.createElement(BlockContent, _extends({
|
|
856
806
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
857
807
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
858
808
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
859
809
|
}, client.config())),
|
|
860
|
-
|
|
861
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
862
|
-
|
|
810
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
811
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
812
|
+
React.createElement(
|
|
863
813
|
'div',
|
|
864
814
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
865
|
-
|
|
815
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
866
816
|
refreshFlag: refreshFlag
|
|
867
817
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
868
818
|
}))
|
|
869
819
|
),
|
|
870
|
-
|
|
871
|
-
|
|
820
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
821
|
+
React.createElement(
|
|
872
822
|
'div',
|
|
873
823
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
874
|
-
|
|
824
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
875
825
|
),
|
|
876
|
-
|
|
826
|
+
React.createElement(BlockContent, _extends({
|
|
877
827
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
878
828
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
879
829
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -898,26 +848,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
898
848
|
if (seriesInfo.hasVideo) {
|
|
899
849
|
_selectedIndex = seriesInfo.videoIndex;
|
|
900
850
|
}
|
|
901
|
-
return
|
|
902
|
-
|
|
851
|
+
return React.createElement(
|
|
852
|
+
React.Fragment,
|
|
903
853
|
null,
|
|
904
|
-
|
|
854
|
+
React.createElement(BlockContent, _extends({
|
|
905
855
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
906
856
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
907
857
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
908
858
|
}, client.config())),
|
|
909
|
-
contextualADFlag &&
|
|
910
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
911
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
859
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
860
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
861
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
912
862
|
'div',
|
|
913
863
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
914
|
-
|
|
864
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
915
865
|
refreshFlag: refreshFlag
|
|
916
866
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
917
867
|
}))
|
|
918
868
|
),
|
|
919
|
-
contextualADFlag &&
|
|
920
|
-
|
|
869
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
870
|
+
React.createElement(BlockContent, _extends({
|
|
921
871
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
922
872
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
923
873
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -947,22 +897,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
947
897
|
}
|
|
948
898
|
};
|
|
949
899
|
|
|
950
|
-
return
|
|
951
|
-
|
|
900
|
+
return React.createElement(
|
|
901
|
+
React.Fragment,
|
|
952
902
|
null,
|
|
953
|
-
|
|
903
|
+
React.createElement(BlockContent, _extends({
|
|
954
904
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
955
905
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
956
906
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
957
907
|
}, client.config())),
|
|
958
|
-
|
|
959
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
960
|
-
|
|
908
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
909
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
910
|
+
React.createElement(
|
|
961
911
|
'div',
|
|
962
912
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
963
|
-
|
|
913
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
964
914
|
),
|
|
965
|
-
|
|
915
|
+
React.createElement(BlockContent, _extends({
|
|
966
916
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
967
917
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
968
918
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -974,16 +924,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
974
924
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
975
925
|
}
|
|
976
926
|
|
|
977
|
-
return
|
|
927
|
+
return React.createElement(
|
|
978
928
|
'div',
|
|
979
929
|
null,
|
|
980
|
-
|
|
930
|
+
React.createElement(BlockContent, _extends({
|
|
981
931
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
982
932
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
983
933
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
984
934
|
}, client.config())),
|
|
985
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
986
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
935
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
936
|
+
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
987
937
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
988
938
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
989
939
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1028,14 +978,14 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1028
978
|
shareSubject = shareOptions.shareSubject,
|
|
1029
979
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1030
980
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1031
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1032
|
-
shareOptions.shareSiteTitle;
|
|
981
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
982
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
1033
983
|
|
|
1034
984
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1035
985
|
var shareTitle = article.title;
|
|
1036
986
|
var shareSummary = article.summary;
|
|
1037
987
|
var shareImage = thumbnail && thumbnail.asset ? urlFor({ client: props.client, source: thumbnail.asset }) : shareImageDefault;
|
|
1038
|
-
var siteName = props.
|
|
988
|
+
var siteName = props.website && props.website.title ? props.website.title : '';
|
|
1039
989
|
var shareKeywords = getKeywords(props.article).join(',');
|
|
1040
990
|
|
|
1041
991
|
var meta = {
|
|
@@ -1069,10 +1019,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1069
1019
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1070
1020
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1071
1021
|
|
|
1072
|
-
return
|
|
1073
|
-
|
|
1022
|
+
return React.createElement(
|
|
1023
|
+
React.Fragment,
|
|
1074
1024
|
null,
|
|
1075
|
-
|
|
1025
|
+
React.createElement(
|
|
1076
1026
|
VisibilitySensor,
|
|
1077
1027
|
{
|
|
1078
1028
|
partialVisibility: true,
|
|
@@ -1088,44 +1038,44 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1088
1038
|
});
|
|
1089
1039
|
}
|
|
1090
1040
|
} },
|
|
1091
|
-
|
|
1041
|
+
React.createElement(
|
|
1092
1042
|
'div',
|
|
1093
1043
|
{ id: 'article__block', ref: ref },
|
|
1094
|
-
|
|
1044
|
+
React.createElement(
|
|
1095
1045
|
'div',
|
|
1096
1046
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1097
1047
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1098
|
-
!isVideoSeries &&
|
|
1048
|
+
!isVideoSeries && React.createElement(
|
|
1099
1049
|
'div',
|
|
1100
1050
|
null,
|
|
1101
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1051
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React.createElement(
|
|
1102
1052
|
'p',
|
|
1103
1053
|
{ style: { fontSize: '14px' } },
|
|
1104
1054
|
article.documentGroup.name,
|
|
1105
1055
|
' - Episode ',
|
|
1106
1056
|
episodeNumber
|
|
1107
1057
|
),
|
|
1108
|
-
|
|
1058
|
+
React.createElement(
|
|
1109
1059
|
'h1',
|
|
1110
1060
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1111
1061
|
title
|
|
1112
1062
|
)
|
|
1113
1063
|
),
|
|
1114
|
-
|
|
1064
|
+
React.createElement(
|
|
1115
1065
|
'div',
|
|
1116
1066
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1117
|
-
|
|
1067
|
+
React.createElement(
|
|
1118
1068
|
'style',
|
|
1119
1069
|
{ jsx: 'true' },
|
|
1120
1070
|
'\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 '
|
|
1121
1071
|
),
|
|
1122
|
-
|
|
1072
|
+
React.createElement(
|
|
1123
1073
|
'div',
|
|
1124
1074
|
{ className: 'left-wrap' },
|
|
1125
|
-
!isVideoSeries && showPublished &&
|
|
1075
|
+
!isVideoSeries && showPublished && React.createElement(
|
|
1126
1076
|
'div',
|
|
1127
1077
|
null,
|
|
1128
|
-
|
|
1078
|
+
React.createElement(
|
|
1129
1079
|
'time',
|
|
1130
1080
|
{
|
|
1131
1081
|
className: 'meta-date',
|
|
@@ -1135,20 +1085,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1135
1085
|
)
|
|
1136
1086
|
/* Show Published date */
|
|
1137
1087
|
,
|
|
1138
|
-
|
|
1088
|
+
React.createElement(
|
|
1139
1089
|
'div',
|
|
1140
1090
|
{ className: 'mb-3' },
|
|
1141
1091
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1142
|
-
return
|
|
1092
|
+
return React.createElement(
|
|
1143
1093
|
'span',
|
|
1144
1094
|
{ key: index },
|
|
1145
1095
|
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)
|
|
1146
1096
|
);
|
|
1147
1097
|
}),
|
|
1148
|
-
|
|
1098
|
+
React.createElement(
|
|
1149
1099
|
'div',
|
|
1150
1100
|
null,
|
|
1151
|
-
source &&
|
|
1101
|
+
source && React.createElement(
|
|
1152
1102
|
'p',
|
|
1153
1103
|
{
|
|
1154
1104
|
style: {
|
|
@@ -1163,13 +1113,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1163
1113
|
source
|
|
1164
1114
|
)
|
|
1165
1115
|
),
|
|
1166
|
-
issue &&
|
|
1116
|
+
issue && React.createElement(
|
|
1167
1117
|
'div',
|
|
1168
1118
|
{ className: 'volume-issue' },
|
|
1169
|
-
issue.publication && issue.publication.name &&
|
|
1119
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
1170
1120
|
'span',
|
|
1171
1121
|
{ className: 'mb-0' },
|
|
1172
|
-
|
|
1122
|
+
React.createElement(
|
|
1173
1123
|
'b',
|
|
1174
1124
|
null,
|
|
1175
1125
|
issue.publication.name
|
|
@@ -1177,34 +1127,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1177
1127
|
',',
|
|
1178
1128
|
' '
|
|
1179
1129
|
),
|
|
1180
|
-
issue.name &&
|
|
1130
|
+
issue.name && React.createElement(
|
|
1181
1131
|
'span',
|
|
1182
1132
|
{ className: 'mb-0' },
|
|
1183
1133
|
issue.name,
|
|
1184
1134
|
', '
|
|
1185
1135
|
),
|
|
1186
|
-
issue.volume &&
|
|
1136
|
+
issue.volume && React.createElement(
|
|
1187
1137
|
'span',
|
|
1188
1138
|
null,
|
|
1189
1139
|
'Volume ' + issue.volume,
|
|
1190
1140
|
','
|
|
1191
1141
|
),
|
|
1192
|
-
issue.issueNumber &&
|
|
1142
|
+
issue.issueNumber && React.createElement(
|
|
1193
1143
|
'span',
|
|
1194
1144
|
null,
|
|
1195
1145
|
' Issue ' + issue.issueNumber
|
|
1196
1146
|
)
|
|
1197
1147
|
),
|
|
1198
|
-
pageNumber &&
|
|
1148
|
+
pageNumber && React.createElement(
|
|
1199
1149
|
'div',
|
|
1200
1150
|
{ className: 'article-pageNumber' },
|
|
1201
1151
|
'Pages: ' + pageNumber
|
|
1202
1152
|
)
|
|
1203
1153
|
),
|
|
1204
|
-
!isVideoSeries && showSocialShare &&
|
|
1154
|
+
!isVideoSeries && showSocialShare && React.createElement(
|
|
1205
1155
|
'p',
|
|
1206
1156
|
null,
|
|
1207
|
-
|
|
1157
|
+
React.createElement(SocialShare, {
|
|
1208
1158
|
shareUrl: shareUrl,
|
|
1209
1159
|
shareTitle: shareTitle,
|
|
1210
1160
|
shareVia: shareVia,
|
|
@@ -1220,27 +1170,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1220
1170
|
})
|
|
1221
1171
|
)
|
|
1222
1172
|
),
|
|
1223
|
-
|
|
1173
|
+
React.createElement(
|
|
1224
1174
|
'div',
|
|
1225
1175
|
null,
|
|
1226
|
-
|
|
1176
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1227
1177
|
)
|
|
1228
1178
|
),
|
|
1229
|
-
!isVideoSeries && summary && display_summary &&
|
|
1179
|
+
!isVideoSeries && summary && display_summary && React.createElement(
|
|
1230
1180
|
'p',
|
|
1231
1181
|
null,
|
|
1232
|
-
|
|
1182
|
+
React.createElement(
|
|
1233
1183
|
'em',
|
|
1234
1184
|
null,
|
|
1235
1185
|
summary
|
|
1236
1186
|
)
|
|
1237
1187
|
),
|
|
1238
|
-
|
|
1188
|
+
React.createElement(
|
|
1239
1189
|
'div',
|
|
1240
1190
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1241
|
-
|
|
1191
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1242
1192
|
if (index === 0) {
|
|
1243
|
-
return
|
|
1193
|
+
return React.createElement(
|
|
1244
1194
|
'div',
|
|
1245
1195
|
{
|
|
1246
1196
|
key: index,
|
|
@@ -1257,24 +1207,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1257
1207
|
}
|
|
1258
1208
|
})
|
|
1259
1209
|
),
|
|
1260
|
-
|
|
1210
|
+
React.createElement(
|
|
1261
1211
|
'div',
|
|
1262
1212
|
{ className: 'block-content mt-3' },
|
|
1263
1213
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1264
|
-
|
|
1265
|
-
|
|
1214
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
1215
|
+
React.createElement(
|
|
1266
1216
|
'noscript',
|
|
1267
1217
|
null,
|
|
1268
|
-
|
|
1218
|
+
React.createElement(
|
|
1269
1219
|
'div',
|
|
1270
1220
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1271
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1221
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
1272
1222
|
'a',
|
|
1273
1223
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1274
1224
|
'Previous ',
|
|
1275
1225
|
props.article.seriesDetail.type
|
|
1276
1226
|
),
|
|
1277
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1227
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
1278
1228
|
'a',
|
|
1279
1229
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1280
1230
|
'Next ',
|
|
@@ -1282,37 +1232,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1282
1232
|
)
|
|
1283
1233
|
)
|
|
1284
1234
|
),
|
|
1285
|
-
|
|
1286
|
-
'
|
|
1287
|
-
{
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
return downloadRIS();
|
|
1292
|
-
} },
|
|
1293
|
-
'Download RIS'
|
|
1294
|
-
),
|
|
1295
|
-
issue && issue.url && React__default.createElement(
|
|
1296
|
-
'a',
|
|
1297
|
-
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1298
|
-
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1299
|
-
'Download Issue : ',
|
|
1300
|
-
issue.name
|
|
1301
|
-
)
|
|
1235
|
+
issue && issue.url && React.createElement(
|
|
1236
|
+
'a',
|
|
1237
|
+
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1238
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1239
|
+
'Download Issue : ',
|
|
1240
|
+
issue.name
|
|
1302
1241
|
)
|
|
1303
1242
|
),
|
|
1304
|
-
|
|
1305
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1243
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1244
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React.createElement(
|
|
1306
1245
|
'div',
|
|
1307
1246
|
null,
|
|
1308
1247
|
false ,
|
|
1309
|
-
|
|
1248
|
+
React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1310
1249
|
),
|
|
1311
|
-
showRelatedArticles && !showIsi &&
|
|
1312
|
-
disqusConfig && showDisqus &&
|
|
1250
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null),
|
|
1251
|
+
disqusConfig && showDisqus && React.createElement(
|
|
1313
1252
|
'div',
|
|
1314
1253
|
{ id: 'disqusContainer' },
|
|
1315
|
-
|
|
1254
|
+
React.createElement(DiscussionEmbed, {
|
|
1316
1255
|
shortname: disqusConfig.shortname,
|
|
1317
1256
|
config: {
|
|
1318
1257
|
url: disqusConfig.url,
|
|
@@ -1325,30 +1264,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1325
1264
|
renderIsiContent(props.article)
|
|
1326
1265
|
)
|
|
1327
1266
|
),
|
|
1328
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1267
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1329
1268
|
ISI,
|
|
1330
1269
|
null,
|
|
1331
|
-
|
|
1270
|
+
React.createElement(BlockContent, {
|
|
1332
1271
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1333
1272
|
blocks: isi
|
|
1334
1273
|
})
|
|
1335
1274
|
),
|
|
1336
|
-
|
|
1275
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1337
1276
|
if (index > 0) {
|
|
1338
|
-
return
|
|
1277
|
+
return React.createElement(
|
|
1339
1278
|
'div',
|
|
1340
1279
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1341
1280
|
ad.component
|
|
1342
1281
|
);
|
|
1343
1282
|
}
|
|
1344
1283
|
}),
|
|
1345
|
-
|
|
1284
|
+
React.createElement(
|
|
1346
1285
|
'noscript',
|
|
1347
1286
|
null,
|
|
1348
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1287
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1349
1288
|
'div',
|
|
1350
1289
|
{ style: { textAlign: 'center' } },
|
|
1351
|
-
|
|
1290
|
+
React.createElement(
|
|
1352
1291
|
'a',
|
|
1353
1292
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1354
1293
|
'Related Article ',
|
|
@@ -1356,8 +1295,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1356
1295
|
)
|
|
1357
1296
|
)
|
|
1358
1297
|
),
|
|
1359
|
-
props.infiniteScroll &&
|
|
1360
|
-
|
|
1298
|
+
props.infiniteScroll && React.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1299
|
+
React.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1361
1300
|
);
|
|
1362
1301
|
};
|
|
1363
1302
|
|
|
@@ -1372,7 +1311,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1372
1311
|
}
|
|
1373
1312
|
});
|
|
1374
1313
|
|
|
1375
|
-
var _this
|
|
1314
|
+
var _this = undefined;
|
|
1376
1315
|
|
|
1377
1316
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1378
1317
|
var router = useRouter();
|
|
@@ -1381,9 +1320,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1381
1320
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1382
1321
|
Ads = props.Ads,
|
|
1383
1322
|
_props$maxListLength = props.maxListLength,
|
|
1384
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1385
|
-
props.sponsoredTaxonomies
|
|
1386
|
-
|
|
1323
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1324
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1325
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1387
1326
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1388
1327
|
_props$authorPrefix = props.authorPrefix,
|
|
1389
1328
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1432,7 +1371,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1432
1371
|
return item.url.current === path;
|
|
1433
1372
|
});
|
|
1434
1373
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1435
|
-
if (!
|
|
1374
|
+
if (!main_40) {
|
|
1436
1375
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1437
1376
|
if (window.googletag && googletag.pubadsReady) {
|
|
1438
1377
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1449,7 +1388,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1449
1388
|
});
|
|
1450
1389
|
}
|
|
1451
1390
|
//Refresh leaderboard ad on mobile
|
|
1452
|
-
if (
|
|
1391
|
+
if (main_40) {
|
|
1453
1392
|
var leaderboardSlotId = '';
|
|
1454
1393
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1455
1394
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1553,7 +1492,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1553
1492
|
return _context.stop();
|
|
1554
1493
|
}
|
|
1555
1494
|
}
|
|
1556
|
-
}, _callee, _this
|
|
1495
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1557
1496
|
}));
|
|
1558
1497
|
|
|
1559
1498
|
return function loadmore() {
|
|
@@ -1631,14 +1570,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1631
1570
|
refreshAD(path);
|
|
1632
1571
|
};
|
|
1633
1572
|
|
|
1634
|
-
return
|
|
1573
|
+
return React.createElement(
|
|
1635
1574
|
InfiniteScroll,
|
|
1636
1575
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1637
1576
|
queueData.map(function (article, index) {
|
|
1638
|
-
return
|
|
1639
|
-
|
|
1577
|
+
return React.createElement(
|
|
1578
|
+
React.Fragment,
|
|
1640
1579
|
{ key: index },
|
|
1641
|
-
|
|
1580
|
+
React.createElement(Article, _extends({}, props, {
|
|
1642
1581
|
containerHeight: containerHeight,
|
|
1643
1582
|
onChangeArticle: onChangeArticle,
|
|
1644
1583
|
authorPrfix: authorPrefix,
|
|
@@ -1654,7 +1593,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1654
1593
|
);
|
|
1655
1594
|
};
|
|
1656
1595
|
|
|
1657
|
-
var _this = undefined;
|
|
1596
|
+
var _this$1 = undefined;
|
|
1658
1597
|
|
|
1659
1598
|
var View = function View(props) {
|
|
1660
1599
|
var router = useRouter();
|
|
@@ -1664,9 +1603,9 @@ var View = function View(props) {
|
|
|
1664
1603
|
hideComments = _props$article.hideComments,
|
|
1665
1604
|
content_placement = _props$article.content_placement,
|
|
1666
1605
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1667
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1668
|
-
props.sponsoredTaxonomies
|
|
1669
|
-
|
|
1606
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1607
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1608
|
+
Ads = props.Ads,
|
|
1670
1609
|
setCustomDimensions = props.setCustomDimensions,
|
|
1671
1610
|
statusCode = props.statusCode,
|
|
1672
1611
|
prevUrl = props.prevUrl,
|
|
@@ -1679,9 +1618,9 @@ var View = function View(props) {
|
|
|
1679
1618
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1680
1619
|
var _props$article2 = props.article,
|
|
1681
1620
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1682
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1683
|
-
_props$article2.description
|
|
1684
|
-
|
|
1621
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1622
|
+
description = _props$article2.description,
|
|
1623
|
+
title = _props$article2.title,
|
|
1685
1624
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1686
1625
|
|
|
1687
1626
|
var _useState = useState(0),
|
|
@@ -1737,6 +1676,7 @@ var View = function View(props) {
|
|
|
1737
1676
|
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;
|
|
1738
1677
|
|
|
1739
1678
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1679
|
+
description = null;
|
|
1740
1680
|
title = null;
|
|
1741
1681
|
}
|
|
1742
1682
|
|
|
@@ -1780,63 +1720,63 @@ var View = function View(props) {
|
|
|
1780
1720
|
|
|
1781
1721
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1782
1722
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1783
|
-
return
|
|
1784
|
-
|
|
1723
|
+
return React.createElement(
|
|
1724
|
+
React.Fragment,
|
|
1785
1725
|
null,
|
|
1786
|
-
|
|
1726
|
+
React.createElement(
|
|
1787
1727
|
Head,
|
|
1788
1728
|
null,
|
|
1789
|
-
|
|
1729
|
+
React.createElement(
|
|
1790
1730
|
'title',
|
|
1791
1731
|
{ key: 'title' },
|
|
1792
1732
|
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 : '')
|
|
1793
1733
|
),
|
|
1794
|
-
metaDescriptionSanity ?
|
|
1795
|
-
|
|
1796
|
-
passwordLock &&
|
|
1797
|
-
|
|
1734
|
+
metaDescriptionSanity ? React.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1735
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1736
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1737
|
+
React.createElement('meta', {
|
|
1798
1738
|
property: 'og:url',
|
|
1799
1739
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1800
1740
|
key: 'og:url'
|
|
1801
1741
|
}),
|
|
1802
|
-
|
|
1742
|
+
React.createElement('meta', {
|
|
1803
1743
|
property: 'og:title',
|
|
1804
1744
|
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 : ''),
|
|
1805
1745
|
key: 'og:title'
|
|
1806
1746
|
}),
|
|
1807
|
-
|
|
1747
|
+
React.createElement('meta', {
|
|
1808
1748
|
property: 'og:image',
|
|
1809
1749
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1810
1750
|
key: 'og:image'
|
|
1811
1751
|
}),
|
|
1812
|
-
|
|
1813
|
-
metaDescriptionSanity ?
|
|
1814
|
-
|
|
1815
|
-
|
|
1752
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1753
|
+
metaDescriptionSanity ? React.createElement('meta', { property: 'og:description', key: 'og:description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { property: 'og:description', key: 'og:description', content: meta_description }),
|
|
1754
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1755
|
+
React.createElement('meta', {
|
|
1816
1756
|
name: 'twitter:title',
|
|
1817
1757
|
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 : ''),
|
|
1818
1758
|
key: 'twitter:title'
|
|
1819
1759
|
}),
|
|
1820
|
-
|
|
1760
|
+
React.createElement('meta', {
|
|
1821
1761
|
name: 'twitter:image',
|
|
1822
1762
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1823
1763
|
key: 'twitter:image'
|
|
1824
1764
|
}),
|
|
1825
|
-
|
|
1826
|
-
metaDescriptionSanity ?
|
|
1827
|
-
canonicalTag &&
|
|
1765
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1766
|
+
metaDescriptionSanity ? React.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: metaDescriptionSanity }) : meta_description && React.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: meta_description }),
|
|
1767
|
+
canonicalTag && React.createElement('link', {
|
|
1828
1768
|
rel: 'canonical',
|
|
1829
1769
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1830
1770
|
key: 'canonical'
|
|
1831
1771
|
}),
|
|
1832
|
-
|
|
1772
|
+
React.createElement(
|
|
1833
1773
|
'noscript',
|
|
1834
1774
|
null,
|
|
1835
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1836
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1775
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1776
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1837
1777
|
)
|
|
1838
1778
|
),
|
|
1839
|
-
!needInfiniteScroll ?
|
|
1779
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1840
1780
|
infiniteScroll: true,
|
|
1841
1781
|
showRelatedArticles: showRelatedArticles,
|
|
1842
1782
|
canonicalTag: canonicalTag,
|
|
@@ -1973,7 +1913,7 @@ View.returnGetInitialProps = function () {
|
|
|
1973
1913
|
return _context.stop();
|
|
1974
1914
|
}
|
|
1975
1915
|
}
|
|
1976
|
-
}, _callee, _this);
|
|
1916
|
+
}, _callee, _this$1);
|
|
1977
1917
|
}));
|
|
1978
1918
|
|
|
1979
1919
|
return function (_x, _x2, _x3, _x4, _x5) {
|