@mjhls/mjh-framework 1.0.861 → 1.0.862
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 +23 -23
- package/dist/cjs/AD300x250x600.js +23 -23
- package/dist/cjs/AD728x90.js +26 -26
- package/dist/cjs/ADFloatingFooter.js +22 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +22 -22
- package/dist/cjs/{ADInfeed-ff26342c.js → ADInfeed-f8324b70.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +22 -22
- package/dist/cjs/ADSponsoredResources.js +22 -22
- package/dist/cjs/ADWebcast.js +22 -22
- package/dist/cjs/ADWelcome.js +19 -19
- package/dist/cjs/{ADlgInfeed-ad4953d4.js → ADlgInfeed-98d7c699.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +23 -23
- package/dist/cjs/AdSlotsProvider.js +13 -13
- package/dist/cjs/AlgoliaSearch.js +18 -18
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +49 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +31 -31
- package/dist/cjs/ArticleSeriesListing.js +32 -32
- package/dist/cjs/Auth.js +484 -348
- package/dist/cjs/AuthWrapper.js +588 -11
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +32 -32
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +41 -41
- package/dist/cjs/DeckQueue.js +30 -30
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-3f0ed4c8.js} +14 -14
- package/dist/cjs/EventsDeck.js +45 -45
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +46 -46
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +37 -37
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -47
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +84 -85
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +21 -21
- package/dist/cjs/MasterDeck.js +40 -40
- package/dist/cjs/MediaSeriesLanding.js +701 -502
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +41 -41
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +88 -1267
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +34 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +55 -55
- package/dist/cjs/QueueDeckExpanded.js +37 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +35 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +19 -19
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-e3e8ead7.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +17 -17
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +45 -46
- package/dist/cjs/TemplateNormal.js +47 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +51 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +37 -37
- package/dist/cjs/VideoSeriesListing.js +32 -32
- package/dist/cjs/View.js +90 -92
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +26 -26
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -46
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-32d1c2e4.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-44481153.js → index-0e4427c8.js} +40 -21
- package/dist/cjs/{index-87d0db67.js → index-3c2fa34e.js} +425 -175
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +141 -140
- package/dist/cjs/{inherits-87492b40.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +26 -26
- package/dist/esm/AD300x250x600.js +26 -26
- package/dist/esm/AD728x90.js +29 -29
- package/dist/esm/ADFloatingFooter.js +28 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -28
- package/dist/esm/{ADInfeed-422ad6e6.js → ADInfeed-a71a3972.js} +9 -9
- package/dist/esm/ADSkyscraper.js +28 -28
- package/dist/esm/ADSponsoredResources.js +28 -28
- package/dist/esm/ADWebcast.js +28 -28
- package/dist/esm/ADWelcome.js +29 -29
- package/dist/esm/{ADlgInfeed-f7468db8.js → ADlgInfeed-d94f1437.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +26 -26
- package/dist/esm/AdSlotsProvider.js +14 -14
- package/dist/esm/AlgoliaSearch.js +44 -44
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +55 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +554 -418
- package/dist/esm/AuthWrapper.js +607 -29
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +51 -51
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +86 -86
- package/dist/esm/DeckQueue.js +68 -68
- package/dist/esm/{Dfp-85c9513e.js → Dfp-be030f2a.js} +22 -22
- package/dist/esm/EventsDeck.js +105 -105
- package/dist/esm/ExternalResources.js +72 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +163 -163
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +114 -114
- 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 -69
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +92 -93
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +73 -73
- package/dist/esm/MediaSeriesLanding.js +986 -787
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +123 -123
- package/dist/esm/NavNative.js +112 -112
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +131 -1309
- package/dist/esm/PdfDownload.js +7 -7
- 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 +39 -39
- package/dist/esm/PublicationLanding.js +102 -102
- package/dist/esm/QueueDeckExpanded.js +275 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-ae17159f.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-47815365.js → SocialSearchComponent-db963c3e.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +49 -50
- package/dist/esm/TemplateNormal.js +67 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +63 -64
- 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 +72 -72
- package/dist/esm/View.js +246 -248
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -46
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-cf2724e3.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-1819118a.js → index-5cc7b406.js} +43 -24
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-20e503c9.js → index-fce5c5b6.js} +819 -568
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +137 -136
- package/dist/esm/{inherits-0d8cda6e.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +111 -110
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-747e7d25.js +0 -886
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
package/dist/esm/View.js
CHANGED
|
@@ -1,77 +1,76 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
|
+
import { _ as _extends, a as _Object$assign } from './extends-60e0e1c6.js';
|
|
3
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
4
|
+
import React__default, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
5
|
+
import Head from 'next/head';
|
|
6
|
+
import { useRouter } from 'next/router';
|
|
7
|
+
import { _ as _JSON$stringify } from './stringify-59c8f690.js';
|
|
8
|
+
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
9
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
11
|
+
import { m as main_43 } from './main-d4165069.js';
|
|
12
|
+
import 'react-bootstrap/Dropdown';
|
|
13
|
+
import Form from 'react-bootstrap/Form';
|
|
14
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
15
|
+
import Button from 'react-bootstrap/Button';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
|
+
import SocialShare from './SocialShare.js';
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-fce5c5b6.js';
|
|
19
|
+
import DFPAdSlot from './AdSlot.js';
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-ae17159f.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-cf2724e3.js';
|
|
22
|
+
import getKeywords from './getKeywords.js';
|
|
23
|
+
import urlFor from './urlFor.js';
|
|
24
|
+
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
25
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-d4932dea.js';
|
|
26
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
|
+
import './index-755f2cc2.js';
|
|
28
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
29
|
+
import { _ as _Object$keys } from './keys-7a3adabf.js';
|
|
30
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
31
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
32
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
33
|
+
import getQuery from './getQuery.js';
|
|
34
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
1
35
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
36
|
+
import './es6.string.iterator-bc33758b.js';
|
|
37
|
+
import './_to-object-b50e61c3.js';
|
|
38
|
+
import './web.dom.iterable-4109ff68.js';
|
|
4
39
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-0d8cda6e.js';
|
|
12
|
-
import './define-property-8af5f002.js';
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
-
import { l as lib_3 } from './index-1819118a.js';
|
|
40
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
41
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
42
|
+
import './_object-pie-133f504a.js';
|
|
18
43
|
import 'prop-types';
|
|
19
|
-
import '
|
|
20
|
-
import 'react-bootstrap/Col';
|
|
21
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
22
|
-
import { useRouter } from 'next/router';
|
|
23
|
-
import './isSymbol-1981418f.js';
|
|
24
|
-
import './debounce-9207d8ee.js';
|
|
25
|
-
import './toNumber-2f7a84cd.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
44
|
+
import './index-0dbff1d1.js';
|
|
27
45
|
import 'react-dom';
|
|
28
|
-
import
|
|
29
|
-
import '
|
|
30
|
-
import urlFor from './urlFor.js';
|
|
31
|
-
import './index-6c12bdd5.js';
|
|
32
|
-
import { m as main_40 } from './main-747e7d25.js';
|
|
33
|
-
import './entities-7cc3bf45.js';
|
|
34
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
35
|
-
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
36
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
37
|
-
import './Segment.js';
|
|
38
|
-
import './Beam.js';
|
|
39
|
-
import DFPAdSlot from './AdSlot.js';
|
|
40
|
-
import Button from 'react-bootstrap/Button';
|
|
41
|
-
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
46
|
+
import 'react-share';
|
|
47
|
+
import 'react-bootstrap';
|
|
42
48
|
import './index-c7e2ac95.js';
|
|
43
|
-
import './
|
|
49
|
+
import './util-3ab476bf.js';
|
|
50
|
+
import './Beam.js';
|
|
51
|
+
import './Segment.js';
|
|
52
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
44
53
|
import './GroupDeck.js';
|
|
45
|
-
import '
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import { r as renderAuthor, g as getSerializers } from './index-20e503c9.js';
|
|
49
|
-
import './util-7700fc59.js';
|
|
50
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
51
|
-
import Head from 'next/head';
|
|
52
|
-
import 'react-share';
|
|
53
|
-
import SocialShare from './SocialShare.js';
|
|
54
|
-
import './_object-to-array-7e804fce.js';
|
|
54
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
55
|
+
import './_is-array-3e99e06e.js';
|
|
56
|
+
import './_object-to-array-0f197f89.js';
|
|
55
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-f6156a57.js';
|
|
65
|
+
import './iconBase-ccc56b97.js';
|
|
56
66
|
import 'react-bootstrap/Figure';
|
|
57
67
|
import 'react-bootstrap/OverlayTrigger';
|
|
58
68
|
import 'react-bootstrap/Tooltip';
|
|
59
69
|
import 'react-bootstrap/Popover';
|
|
60
|
-
import '
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
64
|
-
import 'react-bootstrap/Dropdown';
|
|
65
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
66
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
70
|
+
import './debounce-533d9748.js';
|
|
71
|
+
import './isSymbol-a7e9aafe.js';
|
|
72
|
+
import './toNumber-5aeba6e7.js';
|
|
67
73
|
import './index-db3bb315.js';
|
|
68
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
69
|
-
import getQuery from './getQuery.js';
|
|
70
|
-
import { S as SeriesSlider } from './SeriesSlider-05ecb544.js';
|
|
71
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-9cb7e014.js';
|
|
72
|
-
import getKeywords from './getKeywords.js';
|
|
73
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
74
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
75
74
|
|
|
76
75
|
var getArticleSummary = function getArticleSummary(article) {
|
|
77
76
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -149,17 +148,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
149
148
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
150
149
|
}
|
|
151
150
|
|
|
152
|
-
return
|
|
151
|
+
return React__default.createElement(
|
|
153
152
|
'a',
|
|
154
153
|
{
|
|
155
154
|
href: url,
|
|
156
155
|
className: 'doc-group',
|
|
157
156
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
158
|
-
thumbnailUrl &&
|
|
159
|
-
!thumbnailUrl &&
|
|
160
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
157
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
158
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
159
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
161
160
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
162
|
-
|
|
161
|
+
main_43 && !thumbnailUrl && React__default.createElement(
|
|
163
162
|
'style',
|
|
164
163
|
{ jsx: 'true' },
|
|
165
164
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -299,38 +298,38 @@ var ISI = function ISI(props) {
|
|
|
299
298
|
}, 300);
|
|
300
299
|
}
|
|
301
300
|
};
|
|
302
|
-
return
|
|
303
|
-
|
|
301
|
+
return React__default.createElement(
|
|
302
|
+
React__default.Fragment,
|
|
304
303
|
null,
|
|
305
|
-
|
|
304
|
+
React__default.createElement(
|
|
306
305
|
'div',
|
|
307
306
|
{ id: 'isi', ref: isi },
|
|
308
|
-
|
|
307
|
+
React__default.createElement(
|
|
309
308
|
'div',
|
|
310
309
|
{ id: 'isiContent' },
|
|
311
|
-
|
|
310
|
+
React__default.createElement(
|
|
312
311
|
'div',
|
|
313
312
|
{ onClick: function onClick() {
|
|
314
313
|
return setActive(function (prev) {
|
|
315
314
|
return !prev;
|
|
316
315
|
});
|
|
317
316
|
}, id: 'isiToggle' },
|
|
318
|
-
active ?
|
|
317
|
+
active ? React__default.createElement(
|
|
319
318
|
'p',
|
|
320
319
|
null,
|
|
321
320
|
'Close ',
|
|
322
|
-
|
|
323
|
-
) :
|
|
321
|
+
React__default.createElement(FaMinus, null)
|
|
322
|
+
) : React__default.createElement(
|
|
324
323
|
'p',
|
|
325
324
|
null,
|
|
326
325
|
'See More ',
|
|
327
|
-
|
|
326
|
+
React__default.createElement(FaPlus, null)
|
|
328
327
|
)
|
|
329
328
|
),
|
|
330
329
|
children
|
|
331
330
|
)
|
|
332
331
|
),
|
|
333
|
-
|
|
332
|
+
React__default.createElement(
|
|
334
333
|
'style',
|
|
335
334
|
{ jsx: true },
|
|
336
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 '
|
|
@@ -338,7 +337,7 @@ var ISI = function ISI(props) {
|
|
|
338
337
|
);
|
|
339
338
|
};
|
|
340
339
|
|
|
341
|
-
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";
|
|
340
|
+
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";
|
|
342
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" };
|
|
343
342
|
styleInject(css);
|
|
344
343
|
|
|
@@ -352,33 +351,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
352
351
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
353
352
|
return null;
|
|
354
353
|
}
|
|
355
|
-
return
|
|
354
|
+
return React__default.createElement(
|
|
356
355
|
'div',
|
|
357
356
|
{ className: styles.mediaContainer },
|
|
358
357
|
articles.map(function (article, index) {
|
|
359
|
-
return
|
|
358
|
+
return React__default.createElement(
|
|
360
359
|
'div',
|
|
361
360
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
362
|
-
|
|
361
|
+
React__default.createElement(
|
|
363
362
|
'a',
|
|
364
363
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
365
|
-
article.thumbnail ?
|
|
364
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
366
365
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
367
366
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
368
367
|
alt: article.title
|
|
369
|
-
}) :
|
|
370
|
-
|
|
368
|
+
}) : React__default.createElement(
|
|
369
|
+
React__default.Fragment,
|
|
371
370
|
null,
|
|
372
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
371
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
373
372
|
)
|
|
374
373
|
),
|
|
375
|
-
|
|
374
|
+
React__default.createElement(
|
|
376
375
|
'div',
|
|
377
376
|
{ className: styles.mediaBody },
|
|
378
|
-
|
|
377
|
+
React__default.createElement(
|
|
379
378
|
'a',
|
|
380
379
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
381
|
-
|
|
380
|
+
React__default.createElement(
|
|
382
381
|
'div',
|
|
383
382
|
{ className: styles.cardTitle },
|
|
384
383
|
article.title
|
|
@@ -512,7 +511,7 @@ function generateSchema(props) {
|
|
|
512
511
|
}
|
|
513
512
|
|
|
514
513
|
var Schema = function Schema(props) {
|
|
515
|
-
return
|
|
514
|
+
return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
|
|
516
515
|
};
|
|
517
516
|
|
|
518
517
|
var Article = forwardRef(function (props, ref) {
|
|
@@ -618,9 +617,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
618
617
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
619
618
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
620
619
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
621
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
622
|
-
|
|
623
|
-
containerHeight = props.containerHeight,
|
|
620
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh;
|
|
621
|
+
props.active;
|
|
622
|
+
var containerHeight = props.containerHeight,
|
|
624
623
|
_props$refreshFlag = props.refreshFlag,
|
|
625
624
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
626
625
|
disqusConfig = props.disqusConfig,
|
|
@@ -680,9 +679,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
680
679
|
setArticleBody = _useState10[1];
|
|
681
680
|
|
|
682
681
|
var _useState11 = useState(true),
|
|
683
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
684
|
-
|
|
685
|
-
setPreviewAd = _useState12[1];
|
|
682
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
683
|
+
_useState12[0];
|
|
684
|
+
var setPreviewAd = _useState12[1];
|
|
686
685
|
|
|
687
686
|
useEffect(function () {
|
|
688
687
|
var path = window && window.location && window.location.search;
|
|
@@ -703,7 +702,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
703
702
|
};
|
|
704
703
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
705
704
|
if (biography) {
|
|
706
|
-
return
|
|
705
|
+
return React__default.createElement(BlockContent, _extends({
|
|
707
706
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
708
707
|
blocks: [biography]
|
|
709
708
|
}, client.config()));
|
|
@@ -713,9 +712,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
713
712
|
var url = article.url.current;
|
|
714
713
|
|
|
715
714
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
716
|
-
return
|
|
715
|
+
return React__default.createElement(ISIContent, null);
|
|
717
716
|
} else if (nationalPage === url && ISIContent) {
|
|
718
|
-
return
|
|
717
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
719
718
|
}
|
|
720
719
|
return null;
|
|
721
720
|
};
|
|
@@ -749,19 +748,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
749
748
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
750
749
|
}
|
|
751
750
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
752
|
-
return
|
|
751
|
+
return React__default.createElement(
|
|
753
752
|
'div',
|
|
754
753
|
null,
|
|
755
754
|
relatedLinks.map(function (relatedLink, index) {
|
|
756
|
-
return
|
|
755
|
+
return React__default.createElement(
|
|
757
756
|
'span',
|
|
758
757
|
{ key: index, className: 'related-link' },
|
|
759
|
-
|
|
758
|
+
React__default.createElement(
|
|
760
759
|
'a',
|
|
761
760
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
762
761
|
relatedLink.label
|
|
763
762
|
),
|
|
764
|
-
|
|
763
|
+
React__default.createElement(
|
|
765
764
|
'style',
|
|
766
765
|
{ jsx: 'true' },
|
|
767
766
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -776,23 +775,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
776
775
|
};
|
|
777
776
|
|
|
778
777
|
var RelatedContent = function RelatedContent() {
|
|
779
|
-
return
|
|
778
|
+
return React__default.createElement(
|
|
780
779
|
'section',
|
|
781
780
|
{ id: 'related-content-section', className: 'my-1' },
|
|
782
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
781
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
783
782
|
'p',
|
|
784
783
|
{ className: 'mb-0' },
|
|
785
|
-
|
|
784
|
+
React__default.createElement(
|
|
786
785
|
'b',
|
|
787
786
|
null,
|
|
788
787
|
'Related Content:'
|
|
789
788
|
)
|
|
790
789
|
),
|
|
791
|
-
|
|
792
|
-
|
|
790
|
+
React__default.createElement(RelevantTopics, null),
|
|
791
|
+
React__default.createElement(
|
|
793
792
|
'div',
|
|
794
793
|
{ className: 'pt-2' },
|
|
795
|
-
|
|
794
|
+
React__default.createElement(RelatedArticle, {
|
|
796
795
|
articles: article.relatedArticle,
|
|
797
796
|
client: client,
|
|
798
797
|
fallbackImage: props.Settings.logo,
|
|
@@ -803,28 +802,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
803
802
|
};
|
|
804
803
|
|
|
805
804
|
var form = function form() {
|
|
806
|
-
return
|
|
807
|
-
|
|
805
|
+
return React__default.createElement(
|
|
806
|
+
React__default.Fragment,
|
|
808
807
|
null,
|
|
809
|
-
|
|
808
|
+
React__default.createElement(
|
|
810
809
|
Head,
|
|
811
810
|
null,
|
|
812
|
-
|
|
811
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
813
812
|
),
|
|
814
|
-
|
|
813
|
+
React__default.createElement(
|
|
815
814
|
'div',
|
|
816
815
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
817
|
-
|
|
816
|
+
React__default.createElement(
|
|
818
817
|
Form,
|
|
819
818
|
{
|
|
820
819
|
inline: true,
|
|
821
820
|
onSubmit: function onSubmit(e) {
|
|
822
821
|
e.preventDefault();
|
|
823
822
|
} },
|
|
824
|
-
|
|
823
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
825
824
|
return setPasswordKey(e.target.value);
|
|
826
825
|
}, placeholder: 'Password' }),
|
|
827
|
-
|
|
826
|
+
React__default.createElement(
|
|
828
827
|
Button,
|
|
829
828
|
{
|
|
830
829
|
variant: 'primary',
|
|
@@ -874,31 +873,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
874
873
|
setContextualADFlag(true);
|
|
875
874
|
}
|
|
876
875
|
};
|
|
877
|
-
return
|
|
878
|
-
|
|
876
|
+
return React__default.createElement(
|
|
877
|
+
React__default.Fragment,
|
|
879
878
|
null,
|
|
880
|
-
|
|
879
|
+
React__default.createElement(BlockContent, _extends({
|
|
881
880
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
882
881
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
883
882
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
884
883
|
}, client.config())),
|
|
885
|
-
|
|
886
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
887
|
-
|
|
884
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
885
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
886
|
+
React__default.createElement(
|
|
888
887
|
'div',
|
|
889
888
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
890
|
-
|
|
889
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
891
890
|
refreshFlag: refreshFlag
|
|
892
891
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
893
892
|
}))
|
|
894
893
|
),
|
|
895
|
-
|
|
896
|
-
|
|
894
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
895
|
+
React__default.createElement(
|
|
897
896
|
'div',
|
|
898
897
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
899
|
-
|
|
898
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
900
899
|
),
|
|
901
|
-
|
|
900
|
+
React__default.createElement(BlockContent, _extends({
|
|
902
901
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
903
902
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
904
903
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -923,26 +922,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
923
922
|
if (seriesInfo.hasVideo) {
|
|
924
923
|
_selectedIndex = seriesInfo.videoIndex;
|
|
925
924
|
}
|
|
926
|
-
return
|
|
927
|
-
|
|
925
|
+
return React__default.createElement(
|
|
926
|
+
React__default.Fragment,
|
|
928
927
|
null,
|
|
929
|
-
|
|
928
|
+
React__default.createElement(BlockContent, _extends({
|
|
930
929
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
931
930
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
932
931
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
933
932
|
}, client.config())),
|
|
934
|
-
contextualADFlag &&
|
|
935
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
936
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
933
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
934
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
935
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
937
936
|
'div',
|
|
938
937
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
939
|
-
|
|
938
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
940
939
|
refreshFlag: refreshFlag
|
|
941
940
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
942
941
|
}))
|
|
943
942
|
),
|
|
944
|
-
contextualADFlag &&
|
|
945
|
-
|
|
943
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
944
|
+
React__default.createElement(BlockContent, _extends({
|
|
946
945
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
947
946
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
948
947
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -972,22 +971,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
972
971
|
}
|
|
973
972
|
};
|
|
974
973
|
|
|
975
|
-
return
|
|
976
|
-
|
|
974
|
+
return React__default.createElement(
|
|
975
|
+
React__default.Fragment,
|
|
977
976
|
null,
|
|
978
|
-
|
|
977
|
+
React__default.createElement(BlockContent, _extends({
|
|
979
978
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
980
979
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
981
980
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
982
981
|
}, client.config())),
|
|
983
|
-
|
|
984
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
985
|
-
|
|
982
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
983
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
984
|
+
React__default.createElement(
|
|
986
985
|
'div',
|
|
987
986
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
988
|
-
|
|
987
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
989
988
|
),
|
|
990
|
-
|
|
989
|
+
React__default.createElement(BlockContent, _extends({
|
|
991
990
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
992
991
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
993
992
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -999,16 +998,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
999
998
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
1000
999
|
}
|
|
1001
1000
|
|
|
1002
|
-
return
|
|
1001
|
+
return React__default.createElement(
|
|
1003
1002
|
'div',
|
|
1004
1003
|
null,
|
|
1005
|
-
|
|
1004
|
+
React__default.createElement(BlockContent, _extends({
|
|
1006
1005
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1007
1006
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1008
1007
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1009
1008
|
}, client.config())),
|
|
1010
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
1011
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1009
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1010
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1012
1011
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1013
1012
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1014
1013
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1053,8 +1052,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1053
1052
|
shareSubject = shareOptions.shareSubject,
|
|
1054
1053
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1055
1054
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1056
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1057
|
-
|
|
1055
|
+
shareBaseUrl = shareOptions.shareBaseUrl;
|
|
1056
|
+
shareOptions.shareSiteTitle;
|
|
1058
1057
|
|
|
1059
1058
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1060
1059
|
var shareTitle = article.title;
|
|
@@ -1094,10 +1093,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1094
1093
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1095
1094
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1096
1095
|
|
|
1097
|
-
return
|
|
1098
|
-
|
|
1096
|
+
return React__default.createElement(
|
|
1097
|
+
React__default.Fragment,
|
|
1099
1098
|
null,
|
|
1100
|
-
|
|
1099
|
+
React__default.createElement(
|
|
1101
1100
|
VisibilitySensor,
|
|
1102
1101
|
{
|
|
1103
1102
|
partialVisibility: true,
|
|
@@ -1110,44 +1109,44 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1110
1109
|
});
|
|
1111
1110
|
}
|
|
1112
1111
|
} },
|
|
1113
|
-
|
|
1112
|
+
React__default.createElement(
|
|
1114
1113
|
'div',
|
|
1115
1114
|
{ id: 'article__block', ref: ref },
|
|
1116
|
-
|
|
1115
|
+
React__default.createElement(
|
|
1117
1116
|
'div',
|
|
1118
1117
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1119
1118
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1120
|
-
!isVideoSeries &&
|
|
1119
|
+
!isVideoSeries && React__default.createElement(
|
|
1121
1120
|
'div',
|
|
1122
1121
|
null,
|
|
1123
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1122
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1124
1123
|
'p',
|
|
1125
1124
|
{ style: { fontSize: '14px' } },
|
|
1126
1125
|
article.documentGroup.name,
|
|
1127
1126
|
' - Episode ',
|
|
1128
1127
|
episodeNumber
|
|
1129
1128
|
),
|
|
1130
|
-
|
|
1129
|
+
React__default.createElement(
|
|
1131
1130
|
'h1',
|
|
1132
1131
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1133
1132
|
title
|
|
1134
1133
|
)
|
|
1135
1134
|
),
|
|
1136
|
-
|
|
1135
|
+
React__default.createElement(
|
|
1137
1136
|
'div',
|
|
1138
1137
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1139
|
-
|
|
1138
|
+
React__default.createElement(
|
|
1140
1139
|
'style',
|
|
1141
1140
|
{ jsx: 'true' },
|
|
1142
1141
|
'\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 '
|
|
1143
1142
|
),
|
|
1144
|
-
|
|
1143
|
+
React__default.createElement(
|
|
1145
1144
|
'div',
|
|
1146
1145
|
{ className: 'left-wrap' },
|
|
1147
|
-
!isVideoSeries && showPublished &&
|
|
1146
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1148
1147
|
'div',
|
|
1149
1148
|
null,
|
|
1150
|
-
|
|
1149
|
+
React__default.createElement(
|
|
1151
1150
|
'time',
|
|
1152
1151
|
{
|
|
1153
1152
|
'class': 'meta-date',
|
|
@@ -1157,20 +1156,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1157
1156
|
)
|
|
1158
1157
|
/* Show Published date */
|
|
1159
1158
|
,
|
|
1160
|
-
|
|
1159
|
+
React__default.createElement(
|
|
1161
1160
|
'div',
|
|
1162
1161
|
{ className: 'mb-3' },
|
|
1163
1162
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1164
|
-
return
|
|
1163
|
+
return React__default.createElement(
|
|
1165
1164
|
'span',
|
|
1166
1165
|
{ key: index },
|
|
1167
1166
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
1168
1167
|
);
|
|
1169
1168
|
}),
|
|
1170
|
-
|
|
1169
|
+
React__default.createElement(
|
|
1171
1170
|
'div',
|
|
1172
1171
|
null,
|
|
1173
|
-
source &&
|
|
1172
|
+
source && React__default.createElement(
|
|
1174
1173
|
'p',
|
|
1175
1174
|
{
|
|
1176
1175
|
style: {
|
|
@@ -1185,13 +1184,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1185
1184
|
source
|
|
1186
1185
|
)
|
|
1187
1186
|
),
|
|
1188
|
-
issue &&
|
|
1187
|
+
issue && React__default.createElement(
|
|
1189
1188
|
'div',
|
|
1190
1189
|
{ className: 'volume-issue' },
|
|
1191
|
-
issue.publication && issue.publication.name &&
|
|
1190
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1192
1191
|
'span',
|
|
1193
1192
|
{ className: 'mb-0' },
|
|
1194
|
-
|
|
1193
|
+
React__default.createElement(
|
|
1195
1194
|
'b',
|
|
1196
1195
|
null,
|
|
1197
1196
|
issue.publication.name
|
|
@@ -1199,34 +1198,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1199
1198
|
',',
|
|
1200
1199
|
' '
|
|
1201
1200
|
),
|
|
1202
|
-
issue.name &&
|
|
1201
|
+
issue.name && React__default.createElement(
|
|
1203
1202
|
'span',
|
|
1204
1203
|
{ className: 'mb-0' },
|
|
1205
1204
|
issue.name,
|
|
1206
1205
|
', '
|
|
1207
1206
|
),
|
|
1208
|
-
issue.volume &&
|
|
1207
|
+
issue.volume && React__default.createElement(
|
|
1209
1208
|
'span',
|
|
1210
1209
|
null,
|
|
1211
1210
|
'Volume ' + issue.volume,
|
|
1212
1211
|
','
|
|
1213
1212
|
),
|
|
1214
|
-
issue.issueNumber &&
|
|
1213
|
+
issue.issueNumber && React__default.createElement(
|
|
1215
1214
|
'span',
|
|
1216
1215
|
null,
|
|
1217
1216
|
' Issue ' + issue.issueNumber
|
|
1218
1217
|
)
|
|
1219
1218
|
),
|
|
1220
|
-
pageNumber &&
|
|
1219
|
+
pageNumber && React__default.createElement(
|
|
1221
1220
|
'div',
|
|
1222
1221
|
{ className: 'article-pageNumber' },
|
|
1223
1222
|
'Pages: ' + pageNumber
|
|
1224
1223
|
)
|
|
1225
1224
|
),
|
|
1226
|
-
!isVideoSeries && showSocialShare &&
|
|
1225
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1227
1226
|
'p',
|
|
1228
1227
|
null,
|
|
1229
|
-
|
|
1228
|
+
React__default.createElement(SocialShare, {
|
|
1230
1229
|
shareUrl: shareUrl,
|
|
1231
1230
|
shareTitle: shareTitle,
|
|
1232
1231
|
shareVia: shareVia,
|
|
@@ -1242,27 +1241,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1242
1241
|
})
|
|
1243
1242
|
)
|
|
1244
1243
|
),
|
|
1245
|
-
|
|
1244
|
+
React__default.createElement(
|
|
1246
1245
|
'div',
|
|
1247
1246
|
null,
|
|
1248
|
-
|
|
1247
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1249
1248
|
)
|
|
1250
1249
|
),
|
|
1251
|
-
!isVideoSeries && summary && display_summary &&
|
|
1250
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1252
1251
|
'p',
|
|
1253
1252
|
null,
|
|
1254
|
-
|
|
1253
|
+
React__default.createElement(
|
|
1255
1254
|
'em',
|
|
1256
1255
|
null,
|
|
1257
1256
|
summary
|
|
1258
1257
|
)
|
|
1259
1258
|
),
|
|
1260
|
-
|
|
1259
|
+
React__default.createElement(
|
|
1261
1260
|
'div',
|
|
1262
1261
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1263
|
-
|
|
1262
|
+
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1264
1263
|
if (index === 0) {
|
|
1265
|
-
return
|
|
1264
|
+
return React__default.createElement(
|
|
1266
1265
|
'div',
|
|
1267
1266
|
{
|
|
1268
1267
|
key: index,
|
|
@@ -1279,24 +1278,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1279
1278
|
}
|
|
1280
1279
|
})
|
|
1281
1280
|
),
|
|
1282
|
-
|
|
1281
|
+
React__default.createElement(
|
|
1283
1282
|
'div',
|
|
1284
1283
|
{ className: 'block-content mt-3' },
|
|
1285
1284
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1286
|
-
|
|
1287
|
-
|
|
1285
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1286
|
+
React__default.createElement(
|
|
1288
1287
|
'noscript',
|
|
1289
1288
|
null,
|
|
1290
|
-
|
|
1289
|
+
React__default.createElement(
|
|
1291
1290
|
'div',
|
|
1292
1291
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1293
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1292
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1294
1293
|
'a',
|
|
1295
1294
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1296
1295
|
'Previous ',
|
|
1297
1296
|
props.article.seriesDetail.type
|
|
1298
1297
|
),
|
|
1299
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1298
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1300
1299
|
'a',
|
|
1301
1300
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1302
1301
|
'Next ',
|
|
@@ -1304,26 +1303,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1304
1303
|
)
|
|
1305
1304
|
)
|
|
1306
1305
|
),
|
|
1307
|
-
issue && issue.url &&
|
|
1306
|
+
issue && issue.url && React__default.createElement(
|
|
1308
1307
|
'a',
|
|
1309
1308
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1310
|
-
|
|
1309
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1311
1310
|
'Download Issue : ',
|
|
1312
1311
|
issue.name
|
|
1313
1312
|
)
|
|
1314
1313
|
),
|
|
1315
|
-
|
|
1316
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1314
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1315
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1317
1316
|
'div',
|
|
1318
1317
|
null,
|
|
1319
1318
|
false ,
|
|
1320
|
-
|
|
1319
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1321
1320
|
),
|
|
1322
|
-
showRelatedArticles && !showIsi &&
|
|
1323
|
-
disqusConfig && showDisqus &&
|
|
1321
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1322
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1324
1323
|
'div',
|
|
1325
1324
|
{ id: 'disqusContainer' },
|
|
1326
|
-
|
|
1325
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1327
1326
|
shortname: disqusConfig.shortname,
|
|
1328
1327
|
config: {
|
|
1329
1328
|
url: disqusConfig.url,
|
|
@@ -1336,30 +1335,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1336
1335
|
renderIsiContent(props.article)
|
|
1337
1336
|
)
|
|
1338
1337
|
),
|
|
1339
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1338
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1340
1339
|
ISI,
|
|
1341
1340
|
null,
|
|
1342
|
-
|
|
1341
|
+
React__default.createElement(BlockContent, {
|
|
1343
1342
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1344
1343
|
blocks: isi
|
|
1345
1344
|
})
|
|
1346
1345
|
),
|
|
1347
|
-
|
|
1346
|
+
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1348
1347
|
if (index > 0) {
|
|
1349
|
-
return
|
|
1348
|
+
return React__default.createElement(
|
|
1350
1349
|
'div',
|
|
1351
1350
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1352
1351
|
ad.component
|
|
1353
1352
|
);
|
|
1354
1353
|
}
|
|
1355
1354
|
}),
|
|
1356
|
-
|
|
1355
|
+
React__default.createElement(
|
|
1357
1356
|
'noscript',
|
|
1358
1357
|
null,
|
|
1359
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1358
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1360
1359
|
'div',
|
|
1361
1360
|
{ style: { textAlign: 'center' } },
|
|
1362
|
-
|
|
1361
|
+
React__default.createElement(
|
|
1363
1362
|
'a',
|
|
1364
1363
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1365
1364
|
'Related Article ',
|
|
@@ -1367,8 +1366,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1367
1366
|
)
|
|
1368
1367
|
)
|
|
1369
1368
|
),
|
|
1370
|
-
props.infiniteScroll &&
|
|
1371
|
-
|
|
1369
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1370
|
+
React__default.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1372
1371
|
);
|
|
1373
1372
|
};
|
|
1374
1373
|
|
|
@@ -1383,7 +1382,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1383
1382
|
}
|
|
1384
1383
|
});
|
|
1385
1384
|
|
|
1386
|
-
var _this = undefined;
|
|
1385
|
+
var _this$1 = undefined;
|
|
1387
1386
|
|
|
1388
1387
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1389
1388
|
var router = useRouter();
|
|
@@ -1392,9 +1391,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1392
1391
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1393
1392
|
Ads = props.Ads,
|
|
1394
1393
|
_props$maxListLength = props.maxListLength,
|
|
1395
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1396
|
-
|
|
1397
|
-
_props$cpModification = props.cpModificationRequired,
|
|
1394
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength;
|
|
1395
|
+
props.sponsoredTaxonomies;
|
|
1396
|
+
var _props$cpModification = props.cpModificationRequired,
|
|
1398
1397
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1399
1398
|
_props$authorPrefix = props.authorPrefix,
|
|
1400
1399
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1443,7 +1442,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1443
1442
|
return item.url.current === path;
|
|
1444
1443
|
});
|
|
1445
1444
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1446
|
-
if (!
|
|
1445
|
+
if (!main_43) {
|
|
1447
1446
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1448
1447
|
if (window.googletag && googletag.pubadsReady) {
|
|
1449
1448
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1460,7 +1459,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1460
1459
|
});
|
|
1461
1460
|
}
|
|
1462
1461
|
//Refresh leaderboard ad on mobile
|
|
1463
|
-
if (
|
|
1462
|
+
if (main_43) {
|
|
1464
1463
|
var leaderboardSlotId = '';
|
|
1465
1464
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1466
1465
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1564,7 +1563,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1564
1563
|
return _context.stop();
|
|
1565
1564
|
}
|
|
1566
1565
|
}
|
|
1567
|
-
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1566
|
+
}, _callee, _this$1, [[3, 9], [15, 21]]);
|
|
1568
1567
|
}));
|
|
1569
1568
|
|
|
1570
1569
|
return function loadmore() {
|
|
@@ -1642,14 +1641,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1642
1641
|
refreshAD(path);
|
|
1643
1642
|
};
|
|
1644
1643
|
|
|
1645
|
-
return
|
|
1644
|
+
return React__default.createElement(
|
|
1646
1645
|
InfiniteScroll,
|
|
1647
1646
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1648
1647
|
queueData.map(function (article, index) {
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1648
|
+
return React__default.createElement(
|
|
1649
|
+
React__default.Fragment,
|
|
1651
1650
|
null,
|
|
1652
|
-
|
|
1651
|
+
React__default.createElement(Article, _extends({
|
|
1653
1652
|
key: index
|
|
1654
1653
|
}, props, {
|
|
1655
1654
|
containerHeight: containerHeight,
|
|
@@ -1667,7 +1666,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1667
1666
|
);
|
|
1668
1667
|
};
|
|
1669
1668
|
|
|
1670
|
-
var _this
|
|
1669
|
+
var _this = undefined;
|
|
1671
1670
|
|
|
1672
1671
|
var View = function View(props) {
|
|
1673
1672
|
var router = useRouter();
|
|
@@ -1677,9 +1676,9 @@ var View = function View(props) {
|
|
|
1677
1676
|
hideComments = _props$article.hideComments,
|
|
1678
1677
|
content_placement = _props$article.content_placement,
|
|
1679
1678
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1680
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1681
|
-
|
|
1682
|
-
Ads = props.Ads,
|
|
1679
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag;
|
|
1680
|
+
props.sponsoredTaxonomies;
|
|
1681
|
+
var Ads = props.Ads,
|
|
1683
1682
|
setCustomDimensions = props.setCustomDimensions,
|
|
1684
1683
|
statusCode = props.statusCode,
|
|
1685
1684
|
prevUrl = props.prevUrl,
|
|
@@ -1692,9 +1691,9 @@ var View = function View(props) {
|
|
|
1692
1691
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1693
1692
|
var _props$article2 = props.article,
|
|
1694
1693
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1695
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1696
|
-
|
|
1697
|
-
title = _props$article2.title,
|
|
1694
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw;
|
|
1695
|
+
_props$article2.description;
|
|
1696
|
+
var title = _props$article2.title,
|
|
1698
1697
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1699
1698
|
|
|
1700
1699
|
var _useState = useState(0),
|
|
@@ -1747,7 +1746,6 @@ var View = function View(props) {
|
|
|
1747
1746
|
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;
|
|
1748
1747
|
|
|
1749
1748
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1750
|
-
description = null;
|
|
1751
1749
|
title = null;
|
|
1752
1750
|
}
|
|
1753
1751
|
|
|
@@ -1791,63 +1789,63 @@ var View = function View(props) {
|
|
|
1791
1789
|
|
|
1792
1790
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1793
1791
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1794
|
-
return
|
|
1795
|
-
|
|
1792
|
+
return React__default.createElement(
|
|
1793
|
+
React__default.Fragment,
|
|
1796
1794
|
null,
|
|
1797
|
-
|
|
1795
|
+
React__default.createElement(
|
|
1798
1796
|
Head,
|
|
1799
1797
|
null,
|
|
1800
|
-
|
|
1798
|
+
React__default.createElement(
|
|
1801
1799
|
'title',
|
|
1802
1800
|
{ key: 'title' },
|
|
1803
1801
|
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 : '')
|
|
1804
1802
|
),
|
|
1805
|
-
metaDescriptionSanity ?
|
|
1806
|
-
|
|
1807
|
-
passwordLock &&
|
|
1808
|
-
|
|
1803
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1804
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1805
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1806
|
+
React__default.createElement('meta', {
|
|
1809
1807
|
property: 'og:url',
|
|
1810
1808
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1811
1809
|
key: 'og:url'
|
|
1812
1810
|
}),
|
|
1813
|
-
|
|
1811
|
+
React__default.createElement('meta', {
|
|
1814
1812
|
property: 'og:title',
|
|
1815
1813
|
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 : ''),
|
|
1816
1814
|
key: 'og:title'
|
|
1817
1815
|
}),
|
|
1818
|
-
|
|
1816
|
+
React__default.createElement('meta', {
|
|
1819
1817
|
property: 'og:image',
|
|
1820
1818
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1821
1819
|
key: 'og:image'
|
|
1822
1820
|
}),
|
|
1823
|
-
|
|
1824
|
-
metaDescriptionSanity ?
|
|
1825
|
-
|
|
1826
|
-
|
|
1821
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1822
|
+
metaDescriptionSanity ? React__default.createElement('meta', { property: 'og:description', key: 'og:description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { property: 'og:description', key: 'og:description', content: meta_description }),
|
|
1823
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1824
|
+
React__default.createElement('meta', {
|
|
1827
1825
|
name: 'twitter:title',
|
|
1828
1826
|
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 : ''),
|
|
1829
1827
|
key: 'twitter:title'
|
|
1830
1828
|
}),
|
|
1831
|
-
|
|
1829
|
+
React__default.createElement('meta', {
|
|
1832
1830
|
name: 'twitter:image',
|
|
1833
1831
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1834
1832
|
key: 'twitter:image'
|
|
1835
1833
|
}),
|
|
1836
|
-
|
|
1837
|
-
metaDescriptionSanity ?
|
|
1838
|
-
canonicalTag &&
|
|
1834
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1835
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'twitter:description', key: 'twitter:description', content: meta_description }),
|
|
1836
|
+
canonicalTag && React__default.createElement('link', {
|
|
1839
1837
|
rel: 'canonical',
|
|
1840
1838
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1841
1839
|
key: 'canonical'
|
|
1842
1840
|
}),
|
|
1843
|
-
|
|
1841
|
+
React__default.createElement(
|
|
1844
1842
|
'noscript',
|
|
1845
1843
|
null,
|
|
1846
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1847
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1844
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1845
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1848
1846
|
)
|
|
1849
1847
|
),
|
|
1850
|
-
!needInfiniteScroll ?
|
|
1848
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1851
1849
|
infiniteScroll: true,
|
|
1852
1850
|
showRelatedArticles: showRelatedArticles,
|
|
1853
1851
|
canonicalTag: canonicalTag,
|
|
@@ -1984,7 +1982,7 @@ View.returnGetInitialProps = function () {
|
|
|
1984
1982
|
return _context.stop();
|
|
1985
1983
|
}
|
|
1986
1984
|
}
|
|
1987
|
-
}, _callee, _this
|
|
1985
|
+
}, _callee, _this);
|
|
1988
1986
|
}));
|
|
1989
1987
|
|
|
1990
1988
|
return function (_x, _x2, _x3, _x4, _x5) {
|