@mjhls/mjh-framework 1.0.833 → 1.0.834-beta.0
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 +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-8b336c67.js → ADInfeed-8d621d3c.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-aedd5e18.js → ADlgInfeed-0e26bccb.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -36
- package/dist/cjs/AdSlotsProvider.js +911 -20
- package/dist/cjs/AlgoliaSearch.js +1068 -1087
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +58 -59
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/AuthWrapper.js +269 -311
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +185 -189
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +140 -145
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +94 -95
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1125 -1116
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -152
- package/dist/cjs/NavNative.js +139 -147
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +107 -108
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +42 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +135 -139
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +21 -22
- package/dist/cjs/RelatedContent.js +54 -55
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-1b636577.js → SeriesSlider-d16a5ae5.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-97dd19a5.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +54 -55
- package/dist/cjs/TemplateNormal.js +74 -75
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +29 -30
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +33 -34
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +78 -79
- package/dist/cjs/View.js +346 -266
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-021d644c.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-3fa73acd.js → index-a0bdcb69.js} +960 -983
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +163 -167
- package/dist/cjs/{inherits-c2065b95.js → inherits-9953db94.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-28b1e946.js → ADInfeed-b566ce41.js} +11 -11
- package/dist/esm/ADSkyscraper.js +29 -29
- package/dist/esm/ADSponsoredResources.js +29 -29
- package/dist/esm/ADWebcast.js +29 -29
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-0b474b02.js → ADlgInfeed-5eb7281d.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +909 -17
- package/dist/esm/AlgoliaSearch.js +718 -736
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +55 -55
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +57 -57
- package/dist/esm/Auth.js +445 -665
- package/dist/esm/AuthWrapper.js +267 -308
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +98 -98
- package/dist/esm/DeckQueue.js +83 -83
- package/dist/esm/{Dfp-43f121ff.js → Dfp-b7236041.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +171 -171
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +116 -116
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -68
- package/dist/esm/HorizontalHero.js +22 -22
- package/dist/esm/IssueContentDeck.js +61 -61
- package/dist/esm/IssueDeck.js +65 -65
- package/dist/esm/IssueLanding.js +91 -91
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +851 -839
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +53 -53
- package/dist/esm/PublicationLanding.js +122 -122
- package/dist/esm/QueueDeckExpanded.js +275 -275
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-f9325e75.js → SeriesSlider-8dc17b11.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db5ba548.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -54
- package/dist/esm/TaxonomyDescription.js +49 -49
- package/dist/esm/TemplateNormal.js +70 -70
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -42
- package/dist/esm/VideoSeriesListing.js +74 -74
- package/dist/esm/View.js +330 -246
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-82e86707.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-1654b705.js → index-d9cf292f.js} +923 -939
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +136 -137
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
package/dist/esm/View.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
|
-
import { _ as _extends, a as _Object$assign } from './extends-60e0e1c6.js';
|
|
3
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
4
|
-
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
5
|
-
import Head from 'next/head';
|
|
6
|
-
import { useRouter } from 'next/router';
|
|
7
|
-
import { _ as _JSON$stringify } from './stringify-59c8f690.js';
|
|
8
|
-
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
9
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
-
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
11
|
-
import { m as main_43 } from './main-b5c5aac1.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-f40c2564.js';
|
|
17
|
-
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-1654b705.js';
|
|
19
|
-
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-f9325e75.js';
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-68291ce9.js';
|
|
22
|
-
import getKeywords from './getKeywords.js';
|
|
23
|
-
import urlFor from './urlFor.js';
|
|
24
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
25
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
26
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
|
-
import './index-35bdcc81.js';
|
|
28
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
29
|
-
import { _ as _Object$keys } from './keys-7a3adabf.js';
|
|
30
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
31
|
-
import { l as lib_3 } from './index-2446af28.js';
|
|
32
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
33
|
-
import getQuery from './getQuery.js';
|
|
34
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
35
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
36
|
-
import './
|
|
37
|
-
import './
|
|
38
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
39
4
|
import './_library-528f1934.js';
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends, a as _Object$assign } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React__default, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
43
19
|
import 'prop-types';
|
|
44
|
-
import '
|
|
20
|
+
import 'react-bootstrap/Row';
|
|
21
|
+
import 'react-bootstrap/Col';
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
|
+
import { useRouter } from 'next/router';
|
|
24
|
+
import './isSymbol-1981418f.js';
|
|
25
|
+
import './debounce-9207d8ee.js';
|
|
26
|
+
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
45
28
|
import 'react-dom';
|
|
46
|
-
import '
|
|
47
|
-
import '
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
50
|
-
import './
|
|
29
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
30
|
+
import './index-73819142.js';
|
|
31
|
+
import urlFor from './urlFor.js';
|
|
32
|
+
import './index-5f7e79e7.js';
|
|
33
|
+
import { m as main_36 } from './main-e4a934b2.js';
|
|
34
|
+
import './entities-7cc3bf45.js';
|
|
35
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
36
|
+
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
37
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
51
38
|
import './Segment.js';
|
|
52
|
-
import './
|
|
39
|
+
import './Beam.js';
|
|
40
|
+
import DFPAdSlot from './AdSlot.js';
|
|
41
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
42
|
+
import './index-c7e2ac95.js';
|
|
43
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
53
44
|
import './GroupDeck.js';
|
|
54
|
-
import '
|
|
55
|
-
import './_is-array-3e99e06e.js';
|
|
56
|
-
import './_object-to-array-0f197f89.js';
|
|
57
|
-
import 'react-bootstrap/Pagination';
|
|
58
|
-
import './entities-932b50cf.js';
|
|
59
|
-
import 'react-bootstrap/Row';
|
|
60
|
-
import 'react-bootstrap/Col';
|
|
61
|
-
import './inherits-a41fe93f.js';
|
|
62
|
-
import './_object-sap-f353c2a9.js';
|
|
63
|
-
import './define-property-fe54dc9f.js';
|
|
64
|
-
import './index.esm-3fdda599.js';
|
|
45
|
+
import 'react-bootstrap';
|
|
65
46
|
import './iconBase-602d52fe.js';
|
|
47
|
+
import './index.esm-29e48d38.js';
|
|
48
|
+
import { r as renderAuthor, g as getSerializers } from './index-d9cf292f.js';
|
|
49
|
+
import './util-7700fc59.js';
|
|
50
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
51
|
+
import Head from 'next/head';
|
|
52
|
+
import 'react-share';
|
|
53
|
+
import SocialShare from './SocialShare.js';
|
|
54
|
+
import './_object-to-array-7e804fce.js';
|
|
55
|
+
import 'react-bootstrap/Pagination';
|
|
56
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
66
57
|
import 'react-bootstrap/Figure';
|
|
67
|
-
import '
|
|
68
|
-
import '
|
|
69
|
-
import './
|
|
70
|
-
import '
|
|
58
|
+
import Form from 'react-bootstrap/Form';
|
|
59
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
60
|
+
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
61
|
+
import 'react-bootstrap/Dropdown';
|
|
62
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
|
|
63
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
71
64
|
import './index-db3bb315.js';
|
|
65
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
66
|
+
import getQuery from './getQuery.js';
|
|
67
|
+
import { S as SeriesSlider } from './SeriesSlider-8dc17b11.js';
|
|
68
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-82e86707.js';
|
|
69
|
+
import getKeywords from './getKeywords.js';
|
|
70
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
71
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
72
72
|
|
|
73
73
|
var getArticleSummary = function getArticleSummary(article) {
|
|
74
74
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -146,17 +146,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
146
146
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
return
|
|
149
|
+
return React__default.createElement(
|
|
150
150
|
'a',
|
|
151
151
|
{
|
|
152
152
|
href: url,
|
|
153
153
|
className: 'doc-group',
|
|
154
154
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
155
|
-
thumbnailUrl &&
|
|
156
|
-
!thumbnailUrl &&
|
|
157
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
155
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
156
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
157
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
|
|
158
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
159
|
-
|
|
159
|
+
main_36 && !thumbnailUrl && React__default.createElement(
|
|
160
160
|
'style',
|
|
161
161
|
{ jsx: 'true' },
|
|
162
162
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -296,38 +296,38 @@ var ISI = function ISI(props) {
|
|
|
296
296
|
}, 300);
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
return
|
|
300
|
-
|
|
299
|
+
return React__default.createElement(
|
|
300
|
+
React__default.Fragment,
|
|
301
301
|
null,
|
|
302
|
-
|
|
302
|
+
React__default.createElement(
|
|
303
303
|
'div',
|
|
304
304
|
{ id: 'isi', ref: isi },
|
|
305
|
-
|
|
305
|
+
React__default.createElement(
|
|
306
306
|
'div',
|
|
307
307
|
{ id: 'isiContent' },
|
|
308
|
-
|
|
308
|
+
React__default.createElement(
|
|
309
309
|
'div',
|
|
310
310
|
{ onClick: function onClick() {
|
|
311
311
|
return setActive(function (prev) {
|
|
312
312
|
return !prev;
|
|
313
313
|
});
|
|
314
314
|
}, id: 'isiToggle' },
|
|
315
|
-
active ?
|
|
315
|
+
active ? React__default.createElement(
|
|
316
316
|
'p',
|
|
317
317
|
null,
|
|
318
318
|
'Close ',
|
|
319
|
-
|
|
320
|
-
) :
|
|
319
|
+
React__default.createElement(FaMinus, null)
|
|
320
|
+
) : React__default.createElement(
|
|
321
321
|
'p',
|
|
322
322
|
null,
|
|
323
323
|
'See More ',
|
|
324
|
-
|
|
324
|
+
React__default.createElement(FaPlus, null)
|
|
325
325
|
)
|
|
326
326
|
),
|
|
327
327
|
children
|
|
328
328
|
)
|
|
329
329
|
),
|
|
330
|
-
|
|
330
|
+
React__default.createElement(
|
|
331
331
|
'style',
|
|
332
332
|
{ jsx: true },
|
|
333
333
|
'\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 '
|
|
@@ -335,7 +335,7 @@ var ISI = function ISI(props) {
|
|
|
335
335
|
);
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
338
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
339
339
|
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" };
|
|
340
340
|
styleInject(css);
|
|
341
341
|
|
|
@@ -349,33 +349,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
349
349
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
350
350
|
return null;
|
|
351
351
|
}
|
|
352
|
-
return
|
|
352
|
+
return React__default.createElement(
|
|
353
353
|
'div',
|
|
354
354
|
{ className: styles.mediaContainer },
|
|
355
355
|
articles.map(function (article, index) {
|
|
356
|
-
return
|
|
356
|
+
return React__default.createElement(
|
|
357
357
|
'div',
|
|
358
358
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
359
|
-
|
|
359
|
+
React__default.createElement(
|
|
360
360
|
'a',
|
|
361
361
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
362
|
-
article.thumbnail ?
|
|
362
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
363
363
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
364
364
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
365
365
|
alt: article.title
|
|
366
|
-
}) :
|
|
367
|
-
|
|
366
|
+
}) : React__default.createElement(
|
|
367
|
+
React__default.Fragment,
|
|
368
368
|
null,
|
|
369
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
369
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
370
370
|
)
|
|
371
371
|
),
|
|
372
|
-
|
|
372
|
+
React__default.createElement(
|
|
373
373
|
'div',
|
|
374
374
|
{ className: styles.mediaBody },
|
|
375
|
-
|
|
375
|
+
React__default.createElement(
|
|
376
376
|
'a',
|
|
377
377
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
378
|
-
|
|
378
|
+
React__default.createElement(
|
|
379
379
|
'div',
|
|
380
380
|
{ className: styles.cardTitle },
|
|
381
381
|
article.title
|
|
@@ -432,6 +432,85 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
432
432
|
return showSocialShare;
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
+
function toPlainText() {
|
|
436
|
+
var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
437
|
+
|
|
438
|
+
return blocks
|
|
439
|
+
// loop through each block
|
|
440
|
+
.map(function (block) {
|
|
441
|
+
// if it's not a text block with children,
|
|
442
|
+
// return nothing
|
|
443
|
+
if (block._type !== 'block' || !block.children) {
|
|
444
|
+
return '';
|
|
445
|
+
}
|
|
446
|
+
// loop through the children spans, and join the
|
|
447
|
+
// text strings
|
|
448
|
+
return block.children.map(function (child) {
|
|
449
|
+
return child.text;
|
|
450
|
+
}).join('');
|
|
451
|
+
})
|
|
452
|
+
// join the paragraphs leaving split by two linebreaks
|
|
453
|
+
.join('\n\n');
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
function generateSchema(props) {
|
|
457
|
+
var _props$article = props.article,
|
|
458
|
+
title = _props$article.title,
|
|
459
|
+
body = _props$article.body,
|
|
460
|
+
summary = _props$article.summary,
|
|
461
|
+
url = _props$article.url,
|
|
462
|
+
content_placement = _props$article.content_placement,
|
|
463
|
+
authorDetails = _props$article.authorDetails,
|
|
464
|
+
thumbnail = _props$article.thumbnail,
|
|
465
|
+
published = _props$article.published,
|
|
466
|
+
_updatedAt = _props$article._updatedAt,
|
|
467
|
+
seoTag = _props$article.seoTag,
|
|
468
|
+
_props$Website = props.Website,
|
|
469
|
+
liveDomain = _props$Website.liveDomain,
|
|
470
|
+
websiteTitle = _props$Website.title,
|
|
471
|
+
logo = _props$Website.logo,
|
|
472
|
+
client = props.client;
|
|
473
|
+
|
|
474
|
+
var isAuthorFound = authorDetails && authorDetails.length > 0 && authorDetails[0].displayName;
|
|
475
|
+
var articleSection = content_placement && content_placement.map(function (cp) {
|
|
476
|
+
return cp.name;
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
if (title && thumbnail && published && websiteTitle && liveDomain && logo && isAuthorFound) {
|
|
480
|
+
return {
|
|
481
|
+
'@context': 'https://schema.org',
|
|
482
|
+
'@type': 'NewsArticle',
|
|
483
|
+
mainEntityOfPage: 'https://' + liveDomain + '/view/' + url.current,
|
|
484
|
+
headline: title,
|
|
485
|
+
description: summary,
|
|
486
|
+
articleBody: toPlainText(body),
|
|
487
|
+
inLanguage: 'en-US',
|
|
488
|
+
image: urlFor({ source: thumbnail, client: client }),
|
|
489
|
+
keywords: seoTag.join(),
|
|
490
|
+
articleSection: articleSection,
|
|
491
|
+
author: {
|
|
492
|
+
'@type': 'Person',
|
|
493
|
+
name: authorDetails[0].displayName
|
|
494
|
+
},
|
|
495
|
+
publisher: {
|
|
496
|
+
'@type': 'Organization',
|
|
497
|
+
name: websiteTitle,
|
|
498
|
+
logo: {
|
|
499
|
+
'@type': 'ImageObject',
|
|
500
|
+
url: 'https://' + liveDomain + logo
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
datePublished: published,
|
|
504
|
+
dateModified: _updatedAt
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
return null;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
var Schema = function Schema(props) {
|
|
511
|
+
return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
|
|
512
|
+
};
|
|
513
|
+
|
|
435
514
|
var Article = forwardRef(function (props, ref) {
|
|
436
515
|
var onVote = function () {
|
|
437
516
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -535,9 +614,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
535
614
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
536
615
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
537
616
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
538
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
539
|
-
props.active
|
|
540
|
-
|
|
617
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
618
|
+
active = props.active,
|
|
619
|
+
containerHeight = props.containerHeight,
|
|
541
620
|
_props$refreshFlag = props.refreshFlag,
|
|
542
621
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
543
622
|
disqusConfig = props.disqusConfig,
|
|
@@ -597,9 +676,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
597
676
|
setArticleBody = _useState10[1];
|
|
598
677
|
|
|
599
678
|
var _useState11 = useState(true),
|
|
600
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
601
|
-
_useState12[0]
|
|
602
|
-
|
|
679
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
680
|
+
previewAd = _useState12[0],
|
|
681
|
+
setPreviewAd = _useState12[1];
|
|
603
682
|
|
|
604
683
|
useEffect(function () {
|
|
605
684
|
var path = window && window.location && window.location.search;
|
|
@@ -620,7 +699,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
620
699
|
};
|
|
621
700
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
622
701
|
if (biography) {
|
|
623
|
-
return
|
|
702
|
+
return React__default.createElement(BlockContent, _extends({
|
|
624
703
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
625
704
|
blocks: [biography]
|
|
626
705
|
}, client.config()));
|
|
@@ -630,9 +709,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
630
709
|
var url = article.url.current;
|
|
631
710
|
|
|
632
711
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
633
|
-
return
|
|
712
|
+
return React__default.createElement(ISIContent, null);
|
|
634
713
|
} else if (nationalPage === url && ISIContent) {
|
|
635
|
-
return
|
|
714
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
636
715
|
}
|
|
637
716
|
return null;
|
|
638
717
|
};
|
|
@@ -643,7 +722,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
643
722
|
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
644
723
|
documentGroupMapping.forEach(function (documentGroup) {
|
|
645
724
|
if (documentGroup.parent) {
|
|
646
|
-
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
|
|
725
|
+
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
|
|
726
|
+
label: documentGroup.name,
|
|
727
|
+
href: cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.parent.identifier && documentGroup.parent.identifier.current && !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path
|
|
728
|
+
}]);
|
|
647
729
|
}
|
|
648
730
|
});
|
|
649
731
|
}
|
|
@@ -663,19 +745,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
663
745
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
664
746
|
}
|
|
665
747
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
666
|
-
return
|
|
748
|
+
return React__default.createElement(
|
|
667
749
|
'div',
|
|
668
750
|
null,
|
|
669
751
|
relatedLinks.map(function (relatedLink, index) {
|
|
670
|
-
return
|
|
752
|
+
return React__default.createElement(
|
|
671
753
|
'span',
|
|
672
754
|
{ key: index, className: 'related-link' },
|
|
673
|
-
|
|
755
|
+
React__default.createElement(
|
|
674
756
|
'a',
|
|
675
757
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
676
758
|
relatedLink.label
|
|
677
759
|
),
|
|
678
|
-
|
|
760
|
+
React__default.createElement(
|
|
679
761
|
'style',
|
|
680
762
|
{ jsx: 'true' },
|
|
681
763
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -690,23 +772,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
690
772
|
};
|
|
691
773
|
|
|
692
774
|
var RelatedContent = function RelatedContent() {
|
|
693
|
-
return
|
|
775
|
+
return React__default.createElement(
|
|
694
776
|
'section',
|
|
695
777
|
{ id: 'related-content-section', className: 'my-1' },
|
|
696
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
778
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
697
779
|
'p',
|
|
698
780
|
{ className: 'mb-0' },
|
|
699
|
-
|
|
781
|
+
React__default.createElement(
|
|
700
782
|
'b',
|
|
701
783
|
null,
|
|
702
784
|
'Related Content:'
|
|
703
785
|
)
|
|
704
786
|
),
|
|
705
|
-
|
|
706
|
-
|
|
787
|
+
React__default.createElement(RelevantTopics, null),
|
|
788
|
+
React__default.createElement(
|
|
707
789
|
'div',
|
|
708
790
|
{ className: 'pt-2' },
|
|
709
|
-
|
|
791
|
+
React__default.createElement(RelatedArticle, {
|
|
710
792
|
articles: article.relatedArticle,
|
|
711
793
|
client: client,
|
|
712
794
|
fallbackImage: props.Settings.logo,
|
|
@@ -717,29 +799,29 @@ var Article = forwardRef(function (props, ref) {
|
|
|
717
799
|
};
|
|
718
800
|
|
|
719
801
|
var form = function form() {
|
|
720
|
-
return
|
|
721
|
-
|
|
802
|
+
return React__default.createElement(
|
|
803
|
+
React__default.Fragment,
|
|
722
804
|
null,
|
|
723
|
-
|
|
805
|
+
React__default.createElement(
|
|
724
806
|
Head,
|
|
725
807
|
null,
|
|
726
|
-
|
|
808
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
727
809
|
),
|
|
728
|
-
|
|
810
|
+
React__default.createElement(
|
|
729
811
|
'div',
|
|
730
812
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
731
|
-
|
|
813
|
+
React__default.createElement(
|
|
732
814
|
Form,
|
|
733
815
|
{
|
|
734
816
|
inline: true,
|
|
735
817
|
onSubmit: function onSubmit(e) {
|
|
736
818
|
e.preventDefault();
|
|
737
819
|
} },
|
|
738
|
-
|
|
820
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
739
821
|
return setPasswordKey(e.target.value);
|
|
740
822
|
}, placeholder: 'Password' }),
|
|
741
|
-
|
|
742
|
-
Button,
|
|
823
|
+
React__default.createElement(
|
|
824
|
+
Button$1,
|
|
743
825
|
{
|
|
744
826
|
variant: 'primary',
|
|
745
827
|
onClick: function onClick() {
|
|
@@ -788,31 +870,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
788
870
|
setContextualADFlag(true);
|
|
789
871
|
}
|
|
790
872
|
};
|
|
791
|
-
return
|
|
792
|
-
|
|
873
|
+
return React__default.createElement(
|
|
874
|
+
React__default.Fragment,
|
|
793
875
|
null,
|
|
794
|
-
|
|
876
|
+
React__default.createElement(BlockContent, _extends({
|
|
795
877
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
796
878
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
797
879
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
798
880
|
}, client.config())),
|
|
799
|
-
|
|
800
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
801
|
-
|
|
881
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
882
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
883
|
+
React__default.createElement(
|
|
802
884
|
'div',
|
|
803
885
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
804
|
-
|
|
886
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
805
887
|
refreshFlag: refreshFlag
|
|
806
888
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
807
889
|
}))
|
|
808
890
|
),
|
|
809
|
-
|
|
810
|
-
|
|
891
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
892
|
+
React__default.createElement(
|
|
811
893
|
'div',
|
|
812
894
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
813
|
-
|
|
895
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
814
896
|
),
|
|
815
|
-
|
|
897
|
+
React__default.createElement(BlockContent, _extends({
|
|
816
898
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
817
899
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
818
900
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -837,26 +919,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
837
919
|
if (seriesInfo.hasVideo) {
|
|
838
920
|
_selectedIndex = seriesInfo.videoIndex;
|
|
839
921
|
}
|
|
840
|
-
return
|
|
841
|
-
|
|
922
|
+
return React__default.createElement(
|
|
923
|
+
React__default.Fragment,
|
|
842
924
|
null,
|
|
843
|
-
|
|
925
|
+
React__default.createElement(BlockContent, _extends({
|
|
844
926
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
845
927
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
846
928
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
847
929
|
}, client.config())),
|
|
848
|
-
contextualADFlag &&
|
|
849
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
850
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
930
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
931
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
932
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
851
933
|
'div',
|
|
852
934
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
853
|
-
|
|
935
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
854
936
|
refreshFlag: refreshFlag
|
|
855
937
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
856
938
|
}))
|
|
857
939
|
),
|
|
858
|
-
contextualADFlag &&
|
|
859
|
-
|
|
940
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
941
|
+
React__default.createElement(BlockContent, _extends({
|
|
860
942
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
861
943
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
862
944
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -886,22 +968,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
886
968
|
}
|
|
887
969
|
};
|
|
888
970
|
|
|
889
|
-
return
|
|
890
|
-
|
|
971
|
+
return React__default.createElement(
|
|
972
|
+
React__default.Fragment,
|
|
891
973
|
null,
|
|
892
|
-
|
|
974
|
+
React__default.createElement(BlockContent, _extends({
|
|
893
975
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
894
976
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
895
977
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
896
978
|
}, client.config())),
|
|
897
|
-
|
|
898
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
899
|
-
|
|
979
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
980
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
981
|
+
React__default.createElement(
|
|
900
982
|
'div',
|
|
901
983
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
902
|
-
|
|
984
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
903
985
|
),
|
|
904
|
-
|
|
986
|
+
React__default.createElement(BlockContent, _extends({
|
|
905
987
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
906
988
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
907
989
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -913,16 +995,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
913
995
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
914
996
|
}
|
|
915
997
|
|
|
916
|
-
return
|
|
998
|
+
return React__default.createElement(
|
|
917
999
|
'div',
|
|
918
1000
|
null,
|
|
919
|
-
|
|
1001
|
+
React__default.createElement(BlockContent, _extends({
|
|
920
1002
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
921
1003
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
922
1004
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
923
1005
|
}, client.config())),
|
|
924
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
925
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1006
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1007
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
926
1008
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
927
1009
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
928
1010
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -967,8 +1049,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
967
1049
|
shareSubject = shareOptions.shareSubject,
|
|
968
1050
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
969
1051
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
970
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
971
|
-
shareOptions.shareSiteTitle;
|
|
1052
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
1053
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
972
1054
|
|
|
973
1055
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
974
1056
|
var shareTitle = article.title;
|
|
@@ -1008,10 +1090,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1008
1090
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1009
1091
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1010
1092
|
|
|
1011
|
-
return
|
|
1012
|
-
|
|
1093
|
+
return React__default.createElement(
|
|
1094
|
+
React__default.Fragment,
|
|
1013
1095
|
null,
|
|
1014
|
-
|
|
1096
|
+
React__default.createElement(
|
|
1015
1097
|
VisibilitySensor,
|
|
1016
1098
|
{
|
|
1017
1099
|
partialVisibility: true,
|
|
@@ -1024,61 +1106,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1024
1106
|
});
|
|
1025
1107
|
}
|
|
1026
1108
|
} },
|
|
1027
|
-
|
|
1109
|
+
React__default.createElement(
|
|
1028
1110
|
'div',
|
|
1029
1111
|
{ id: 'article__block', ref: ref },
|
|
1030
|
-
|
|
1112
|
+
React__default.createElement(
|
|
1031
1113
|
'div',
|
|
1032
1114
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1033
1115
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1034
|
-
!isVideoSeries &&
|
|
1116
|
+
!isVideoSeries && React__default.createElement(
|
|
1035
1117
|
'div',
|
|
1036
1118
|
null,
|
|
1037
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1119
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1038
1120
|
'p',
|
|
1039
1121
|
{ style: { fontSize: '14px' } },
|
|
1040
1122
|
article.documentGroup.name,
|
|
1041
1123
|
' - Episode ',
|
|
1042
1124
|
episodeNumber
|
|
1043
1125
|
),
|
|
1044
|
-
|
|
1126
|
+
React__default.createElement(
|
|
1045
1127
|
'h1',
|
|
1046
1128
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1047
1129
|
title
|
|
1048
1130
|
)
|
|
1049
1131
|
),
|
|
1050
|
-
|
|
1132
|
+
React__default.createElement(
|
|
1051
1133
|
'div',
|
|
1052
1134
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1053
|
-
|
|
1135
|
+
React__default.createElement(
|
|
1054
1136
|
'style',
|
|
1055
1137
|
{ jsx: 'true' },
|
|
1056
1138
|
'\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 '
|
|
1057
1139
|
),
|
|
1058
|
-
|
|
1140
|
+
React__default.createElement(
|
|
1059
1141
|
'div',
|
|
1060
1142
|
{ className: 'left-wrap' },
|
|
1061
|
-
!isVideoSeries && showPublished &&
|
|
1143
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1062
1144
|
'div',
|
|
1063
1145
|
null,
|
|
1064
1146
|
moment(published).format('LL')
|
|
1065
1147
|
)
|
|
1066
1148
|
/* Show Published date */
|
|
1067
1149
|
,
|
|
1068
|
-
|
|
1150
|
+
React__default.createElement(
|
|
1069
1151
|
'div',
|
|
1070
1152
|
{ className: 'mb-3' },
|
|
1071
1153
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1072
|
-
return
|
|
1154
|
+
return React__default.createElement(
|
|
1073
1155
|
'span',
|
|
1074
1156
|
{ key: index },
|
|
1075
1157
|
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 }))
|
|
1076
1158
|
);
|
|
1077
1159
|
}),
|
|
1078
|
-
|
|
1160
|
+
React__default.createElement(
|
|
1079
1161
|
'div',
|
|
1080
1162
|
null,
|
|
1081
|
-
source &&
|
|
1163
|
+
source && React__default.createElement(
|
|
1082
1164
|
'p',
|
|
1083
1165
|
{
|
|
1084
1166
|
style: {
|
|
@@ -1093,13 +1175,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1093
1175
|
source
|
|
1094
1176
|
)
|
|
1095
1177
|
),
|
|
1096
|
-
issue &&
|
|
1178
|
+
issue && React__default.createElement(
|
|
1097
1179
|
'div',
|
|
1098
1180
|
{ className: 'volume-issue' },
|
|
1099
|
-
issue.publication && issue.publication.name &&
|
|
1181
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1100
1182
|
'span',
|
|
1101
1183
|
{ className: 'mb-0' },
|
|
1102
|
-
|
|
1184
|
+
React__default.createElement(
|
|
1103
1185
|
'b',
|
|
1104
1186
|
null,
|
|
1105
1187
|
issue.publication.name
|
|
@@ -1107,34 +1189,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1107
1189
|
',',
|
|
1108
1190
|
' '
|
|
1109
1191
|
),
|
|
1110
|
-
issue.name &&
|
|
1192
|
+
issue.name && React__default.createElement(
|
|
1111
1193
|
'span',
|
|
1112
1194
|
{ className: 'mb-0' },
|
|
1113
1195
|
issue.name,
|
|
1114
1196
|
', '
|
|
1115
1197
|
),
|
|
1116
|
-
issue.volume &&
|
|
1198
|
+
issue.volume && React__default.createElement(
|
|
1117
1199
|
'span',
|
|
1118
1200
|
null,
|
|
1119
1201
|
'Volume ' + issue.volume,
|
|
1120
1202
|
','
|
|
1121
1203
|
),
|
|
1122
|
-
issue.issueNumber &&
|
|
1204
|
+
issue.issueNumber && React__default.createElement(
|
|
1123
1205
|
'span',
|
|
1124
1206
|
null,
|
|
1125
1207
|
' Issue ' + issue.issueNumber
|
|
1126
1208
|
)
|
|
1127
1209
|
),
|
|
1128
|
-
pageNumber &&
|
|
1210
|
+
pageNumber && React__default.createElement(
|
|
1129
1211
|
'div',
|
|
1130
1212
|
{ className: 'article-pageNumber' },
|
|
1131
1213
|
'Pages: ' + pageNumber
|
|
1132
1214
|
)
|
|
1133
1215
|
),
|
|
1134
|
-
!isVideoSeries && showSocialShare &&
|
|
1216
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1135
1217
|
'p',
|
|
1136
1218
|
null,
|
|
1137
|
-
|
|
1219
|
+
React__default.createElement(SocialShare, {
|
|
1138
1220
|
shareUrl: shareUrl,
|
|
1139
1221
|
shareTitle: shareTitle,
|
|
1140
1222
|
shareVia: shareVia,
|
|
@@ -1150,27 +1232,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1150
1232
|
})
|
|
1151
1233
|
)
|
|
1152
1234
|
),
|
|
1153
|
-
|
|
1235
|
+
React__default.createElement(
|
|
1154
1236
|
'div',
|
|
1155
1237
|
null,
|
|
1156
|
-
|
|
1238
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1157
1239
|
)
|
|
1158
1240
|
),
|
|
1159
|
-
!isVideoSeries && summary && display_summary &&
|
|
1241
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1160
1242
|
'p',
|
|
1161
1243
|
null,
|
|
1162
|
-
|
|
1244
|
+
React__default.createElement(
|
|
1163
1245
|
'em',
|
|
1164
1246
|
null,
|
|
1165
1247
|
summary
|
|
1166
1248
|
)
|
|
1167
1249
|
),
|
|
1168
|
-
|
|
1250
|
+
React__default.createElement(
|
|
1169
1251
|
'div',
|
|
1170
1252
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1171
|
-
|
|
1253
|
+
main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1172
1254
|
if (index === 0) {
|
|
1173
|
-
return
|
|
1255
|
+
return React__default.createElement(
|
|
1174
1256
|
'div',
|
|
1175
1257
|
{
|
|
1176
1258
|
key: index,
|
|
@@ -1187,24 +1269,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1187
1269
|
}
|
|
1188
1270
|
})
|
|
1189
1271
|
),
|
|
1190
|
-
|
|
1272
|
+
React__default.createElement(
|
|
1191
1273
|
'div',
|
|
1192
1274
|
{ className: 'block-content mt-3' },
|
|
1193
1275
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1194
|
-
|
|
1195
|
-
|
|
1276
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1277
|
+
React__default.createElement(
|
|
1196
1278
|
'noscript',
|
|
1197
1279
|
null,
|
|
1198
|
-
|
|
1280
|
+
React__default.createElement(
|
|
1199
1281
|
'div',
|
|
1200
1282
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1201
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1283
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1202
1284
|
'a',
|
|
1203
1285
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1204
1286
|
'Previous ',
|
|
1205
1287
|
props.article.seriesDetail.type
|
|
1206
1288
|
),
|
|
1207
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1289
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1208
1290
|
'a',
|
|
1209
1291
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1210
1292
|
'Next ',
|
|
@@ -1212,26 +1294,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1212
1294
|
)
|
|
1213
1295
|
)
|
|
1214
1296
|
),
|
|
1215
|
-
issue && issue.url &&
|
|
1297
|
+
issue && issue.url && React__default.createElement(
|
|
1216
1298
|
'a',
|
|
1217
1299
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1218
|
-
|
|
1300
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1219
1301
|
'Download Issue : ',
|
|
1220
1302
|
issue.name
|
|
1221
1303
|
)
|
|
1222
1304
|
),
|
|
1223
|
-
|
|
1224
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1305
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1306
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1225
1307
|
'div',
|
|
1226
1308
|
null,
|
|
1227
1309
|
false ,
|
|
1228
|
-
|
|
1310
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1229
1311
|
),
|
|
1230
|
-
showRelatedArticles && !showIsi &&
|
|
1231
|
-
disqusConfig && showDisqus &&
|
|
1312
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1313
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1232
1314
|
'div',
|
|
1233
1315
|
{ id: 'disqusContainer' },
|
|
1234
|
-
|
|
1316
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1235
1317
|
shortname: disqusConfig.shortname,
|
|
1236
1318
|
config: {
|
|
1237
1319
|
url: disqusConfig.url,
|
|
@@ -1244,30 +1326,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1244
1326
|
renderIsiContent(props.article)
|
|
1245
1327
|
)
|
|
1246
1328
|
),
|
|
1247
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1329
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1248
1330
|
ISI,
|
|
1249
1331
|
null,
|
|
1250
|
-
|
|
1332
|
+
React__default.createElement(BlockContent, {
|
|
1251
1333
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1252
1334
|
blocks: isi
|
|
1253
1335
|
})
|
|
1254
1336
|
),
|
|
1255
|
-
|
|
1337
|
+
main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1256
1338
|
if (index > 0) {
|
|
1257
|
-
return
|
|
1339
|
+
return React__default.createElement(
|
|
1258
1340
|
'div',
|
|
1259
1341
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1260
1342
|
ad.component
|
|
1261
1343
|
);
|
|
1262
1344
|
}
|
|
1263
1345
|
}),
|
|
1264
|
-
|
|
1346
|
+
React__default.createElement(
|
|
1265
1347
|
'noscript',
|
|
1266
1348
|
null,
|
|
1267
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1349
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1268
1350
|
'div',
|
|
1269
1351
|
{ style: { textAlign: 'center' } },
|
|
1270
|
-
|
|
1352
|
+
React__default.createElement(
|
|
1271
1353
|
'a',
|
|
1272
1354
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1273
1355
|
'Related Article ',
|
|
@@ -1275,7 +1357,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1275
1357
|
)
|
|
1276
1358
|
)
|
|
1277
1359
|
),
|
|
1278
|
-
props.infiniteScroll &&
|
|
1360
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1361
|
+
React__default.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1279
1362
|
);
|
|
1280
1363
|
};
|
|
1281
1364
|
|
|
@@ -1290,16 +1373,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1290
1373
|
}
|
|
1291
1374
|
});
|
|
1292
1375
|
|
|
1293
|
-
var _this
|
|
1376
|
+
var _this = undefined;
|
|
1294
1377
|
|
|
1295
1378
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1296
1379
|
var _props$prevUrl = props.prevUrl,
|
|
1297
1380
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1298
1381
|
Ads = props.Ads,
|
|
1299
1382
|
_props$maxListLength = props.maxListLength,
|
|
1300
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1301
|
-
props.sponsoredTaxonomies
|
|
1302
|
-
|
|
1383
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1384
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1385
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1303
1386
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1304
1387
|
_props$authorPrefix = props.authorPrefix,
|
|
1305
1388
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1348,7 +1431,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1348
1431
|
return item.url.current === path;
|
|
1349
1432
|
});
|
|
1350
1433
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1351
|
-
if (!
|
|
1434
|
+
if (!main_36) {
|
|
1352
1435
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1353
1436
|
if (window.googletag && googletag.pubadsReady) {
|
|
1354
1437
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1365,7 +1448,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1365
1448
|
});
|
|
1366
1449
|
}
|
|
1367
1450
|
//Refresh leaderboard ad on mobile
|
|
1368
|
-
if (
|
|
1451
|
+
if (main_36) {
|
|
1369
1452
|
var leaderboardSlotId = '';
|
|
1370
1453
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1371
1454
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1469,7 +1552,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1469
1552
|
return _context.stop();
|
|
1470
1553
|
}
|
|
1471
1554
|
}
|
|
1472
|
-
}, _callee, _this
|
|
1555
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1473
1556
|
}));
|
|
1474
1557
|
|
|
1475
1558
|
return function loadmore() {
|
|
@@ -1514,14 +1597,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1514
1597
|
refreshAD(path);
|
|
1515
1598
|
};
|
|
1516
1599
|
|
|
1517
|
-
return
|
|
1600
|
+
return React__default.createElement(
|
|
1518
1601
|
InfiniteScroll,
|
|
1519
1602
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1520
1603
|
queueData.map(function (article, index) {
|
|
1521
|
-
return
|
|
1522
|
-
|
|
1604
|
+
return React__default.createElement(
|
|
1605
|
+
React__default.Fragment,
|
|
1523
1606
|
null,
|
|
1524
|
-
|
|
1607
|
+
React__default.createElement(Article, _extends({
|
|
1525
1608
|
key: index
|
|
1526
1609
|
}, props, {
|
|
1527
1610
|
containerHeight: containerHeight,
|
|
@@ -1539,7 +1622,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1539
1622
|
);
|
|
1540
1623
|
};
|
|
1541
1624
|
|
|
1542
|
-
var _this = undefined;
|
|
1625
|
+
var _this$1 = undefined;
|
|
1543
1626
|
|
|
1544
1627
|
var View = function View(props) {
|
|
1545
1628
|
var router = useRouter();
|
|
@@ -1549,9 +1632,9 @@ var View = function View(props) {
|
|
|
1549
1632
|
hideComments = _props$article.hideComments,
|
|
1550
1633
|
content_placement = _props$article.content_placement,
|
|
1551
1634
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1552
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1553
|
-
props.sponsoredTaxonomies
|
|
1554
|
-
|
|
1635
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1636
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1637
|
+
Ads = props.Ads,
|
|
1555
1638
|
setCustomDimensions = props.setCustomDimensions,
|
|
1556
1639
|
statusCode = props.statusCode,
|
|
1557
1640
|
prevUrl = props.prevUrl,
|
|
@@ -1564,9 +1647,9 @@ var View = function View(props) {
|
|
|
1564
1647
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1565
1648
|
var _props$article2 = props.article,
|
|
1566
1649
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1567
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1568
|
-
_props$article2.description
|
|
1569
|
-
|
|
1650
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1651
|
+
description = _props$article2.description,
|
|
1652
|
+
title = _props$article2.title,
|
|
1570
1653
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1571
1654
|
|
|
1572
1655
|
var _useState = useState(0),
|
|
@@ -1627,6 +1710,7 @@ var View = function View(props) {
|
|
|
1627
1710
|
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && (!article.documentGroup || !article.documentGroup.isSeries) && !showDisqus;
|
|
1628
1711
|
|
|
1629
1712
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1713
|
+
description = null;
|
|
1630
1714
|
title = null;
|
|
1631
1715
|
}
|
|
1632
1716
|
|
|
@@ -1663,63 +1747,63 @@ var View = function View(props) {
|
|
|
1663
1747
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1664
1748
|
}
|
|
1665
1749
|
|
|
1666
|
-
return
|
|
1667
|
-
|
|
1750
|
+
return React__default.createElement(
|
|
1751
|
+
React__default.Fragment,
|
|
1668
1752
|
null,
|
|
1669
|
-
|
|
1753
|
+
React__default.createElement(
|
|
1670
1754
|
Head,
|
|
1671
1755
|
null,
|
|
1672
|
-
|
|
1756
|
+
React__default.createElement(
|
|
1673
1757
|
'title',
|
|
1674
1758
|
{ key: 'title' },
|
|
1675
1759
|
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 : '')
|
|
1676
1760
|
),
|
|
1677
|
-
meta_description &&
|
|
1678
|
-
|
|
1679
|
-
passwordLock &&
|
|
1680
|
-
|
|
1761
|
+
meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1762
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1763
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1764
|
+
React__default.createElement('meta', {
|
|
1681
1765
|
property: 'og:url',
|
|
1682
1766
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1683
1767
|
key: 'og:url'
|
|
1684
1768
|
}),
|
|
1685
|
-
|
|
1769
|
+
React__default.createElement('meta', {
|
|
1686
1770
|
property: 'og:title',
|
|
1687
1771
|
content: seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1688
1772
|
key: 'og:title'
|
|
1689
1773
|
}),
|
|
1690
|
-
|
|
1774
|
+
React__default.createElement('meta', {
|
|
1691
1775
|
property: 'og:image',
|
|
1692
1776
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1693
1777
|
key: 'og:image'
|
|
1694
1778
|
}),
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1779
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1780
|
+
React__default.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1781
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1782
|
+
React__default.createElement('meta', {
|
|
1699
1783
|
name: 'twitter:title',
|
|
1700
1784
|
content: seriesShareOptions && seriesShareOptions.seriesTitle ? '' + seriesShareOptions.seriesTitle + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1701
1785
|
key: 'twitter:title'
|
|
1702
1786
|
}),
|
|
1703
|
-
|
|
1787
|
+
React__default.createElement('meta', {
|
|
1704
1788
|
name: 'twitter:image',
|
|
1705
1789
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1706
1790
|
key: 'twitter:image'
|
|
1707
1791
|
}),
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
canonicalTag &&
|
|
1792
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1793
|
+
React__default.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1794
|
+
canonicalTag && React__default.createElement('link', {
|
|
1711
1795
|
rel: 'canonical',
|
|
1712
1796
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1713
1797
|
key: 'canonical'
|
|
1714
1798
|
}),
|
|
1715
|
-
|
|
1799
|
+
React__default.createElement(
|
|
1716
1800
|
'noscript',
|
|
1717
1801
|
null,
|
|
1718
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1719
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1802
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1803
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1720
1804
|
)
|
|
1721
1805
|
),
|
|
1722
|
-
!needInfiniteScroll ?
|
|
1806
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1723
1807
|
infiniteScroll: true,
|
|
1724
1808
|
showRelatedArticles: showRelatedArticles,
|
|
1725
1809
|
canonicalTag: canonicalTag,
|
|
@@ -1856,7 +1940,7 @@ View.returnGetInitialProps = function () {
|
|
|
1856
1940
|
return _context.stop();
|
|
1857
1941
|
}
|
|
1858
1942
|
}
|
|
1859
|
-
}, _callee, _this);
|
|
1943
|
+
}, _callee, _this$1);
|
|
1860
1944
|
}));
|
|
1861
1945
|
|
|
1862
1946
|
return function (_x, _x2, _x3, _x4, _x5) {
|