@mjhls/mjh-framework 1.0.833 → 1.0.834
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/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +29 -30
- package/dist/cjs/AD300x250x600.js +29 -30
- package/dist/cjs/AD728x90.js +32 -33
- 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-7b3f64e1.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-17a6e476.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +33 -34
- package/dist/cjs/AdSlotsProvider.js +17 -19
- package/dist/cjs/AlgoliaSearch.js +1041 -1032
- 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 +285 -289
- package/dist/cjs/AuthWrapper.js +46 -47
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-0c464248.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-bac780ac.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 +58 -61
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-ac0c1cc6.js} +34 -35
- package/dist/cjs/EventsDeck.js +135 -142
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +182 -186
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +128 -133
- 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 +65 -66
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +72 -73
- package/dist/cjs/MediaSeriesLanding.js +986 -978
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +135 -140
- package/dist/cjs/NavNative.js +128 -136
- package/dist/cjs/OncliveHero.js +18 -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 +108 -112
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +21 -22
- package/dist/cjs/RelatedContent.js +26 -27
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- 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 +36 -36
- package/dist/cjs/{SeriesSlider-1b636577.js → SeriesSlider-abd231e9.js} +30 -31
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-bef9a9d8.js} +32 -36
- 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 +73 -74
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +28 -29
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- 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 +252 -252
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +57 -58
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-39ff55dd.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-ef35661e.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-b231f928.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-c3aeb51d.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-7a3ce269.js} +6 -6
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-8ae2191c.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-05029198.js} +6 -7
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-6cd7682d.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-6191c8ee.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-fc002cec.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-03c4c82e.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-ab94a594.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-acc1318d.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-98ab97f7.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-3fa73acd.js → index-0f62d00b.js} +481 -488
- package/dist/cjs/{index-8041a4eb.js → index-53e27416.js} +16 -10
- package/dist/cjs/{index-f86bb269.js → index-79eed652.js} +6 -6
- 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-efca863c.js → index-ff69979f.js} +8 -8
- package/dist/cjs/{index.es-f3e47207.js → index.es-e9d84959.js} +7 -8
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-bf016399.js} +17 -18
- package/dist/cjs/index.js +163 -166
- package/dist/cjs/{inherits-c2065b95.js → inherits-bfdb22af.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-62e097ca.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-b5e0d5f6.js} +1 -1
- package/dist/cjs/{main-025fdc78.js → main-bc7d4bf8.js} +72 -73
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-41819145.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7ccc8524.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-4fdb72e2.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-f2f8744b.js} +1 -1
- package/dist/cjs/{typeof-88a668c5.js → typeof-e83d4a26.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-c30d203c.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-68e3aaf2.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 +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-28b1e946.js → ADInfeed-77c2092d.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-12d2ac78.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +25 -25
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlgoliaSearch.js +690 -680
- 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 +270 -270
- package/dist/esm/AuthWrapper.js +44 -44
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-5cab1f6b.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-ea93e8f7.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 +55 -55
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +89 -89
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-43f121ff.js → Dfp-4b94fbd4.js} +22 -22
- package/dist/esm/EventsDeck.js +112 -112
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +168 -168
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +103 -103
- 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 +62 -62
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +69 -69
- package/dist/esm/MediaSeriesLanding.js +627 -616
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +105 -105
- 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 +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 +95 -95
- package/dist/esm/QueueDeckExpanded.js +273 -273
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- 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-d9cf4ffb.js} +22 -22
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-4f7d1c5b.js} +26 -26
- 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 +69 -69
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +25 -25
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- package/dist/esm/VideoSeriesCard.js +25 -25
- 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 +244 -240
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +42 -42
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-328b85b7.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-0fa1c752.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-1b84e2bf.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-c8f72bf1.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-cedb5b78.js} +7 -7
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-e1a2f43a.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-e761d404.js} +3 -3
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-227107e6.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-89969f66.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-2f35af22.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-eb9699c0.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-1577cb76.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-be71a29a.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-93bb872d.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-79cfd25c.js → index-511bdaa5.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-67e1773f.js → index-637e8f49.js} +16 -10
- package/dist/esm/{index-1654b705.js → index-eca81448.js} +442 -442
- package/dist/esm/{index-0dbff1d1.js → index-f7fdcc91.js} +8 -8
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-ed50151c.js} +15 -15
- package/dist/esm/index.js +136 -136
- package/dist/esm/{inherits-a41fe93f.js → inherits-2cf82c38.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-526daf0a.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-a818d390.js} +1 -1
- package/dist/esm/{main-b5c5aac1.js → main-ae902629.js} +72 -72
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-f0edf3d6.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-d1b9276a.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-81605212.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-e3dcad26.js} +1 -1
- package/dist/esm/{typeof-a286cf0c.js → typeof-ad2c7a21.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-cf90f7e6.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-ace8ed30.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- 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-cedb5b78.js';
|
|
3
|
+
import './es6.string.iterator-1577cb76.js';
|
|
39
4
|
import './_library-528f1934.js';
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
5
|
+
import './_iter-detect-0fa1c752.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-81605212.js';
|
|
7
|
+
import './core.get-iterator-method-227107e6.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends, a as _Object$assign } from './extends-be71a29a.js';
|
|
10
|
+
import './_object-sap-1b84e2bf.js';
|
|
11
|
+
import './inherits-2cf82c38.js';
|
|
12
|
+
import './define-property-2f35af22.js';
|
|
13
|
+
import './web.dom.iterable-ace8ed30.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-ad2c7a21.js';
|
|
15
|
+
import './_is-array-328b85b7.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-b6f49411.js';
|
|
23
|
+
import { useRouter } from 'next/router';
|
|
24
|
+
import './isSymbol-1981418f.js';
|
|
25
|
+
import './debounce-89969f66.js';
|
|
26
|
+
import './toNumber-e3dcad26.js';
|
|
27
|
+
import { I as InfiniteScroll } from './index.es-a6137319.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-f7fdcc91.js';
|
|
31
|
+
import urlFor from './urlFor.js';
|
|
32
|
+
import './index-5f7e79e7.js';
|
|
33
|
+
import { m as main_43 } from './main-ae902629.js';
|
|
34
|
+
import './entities-7cc3bf45.js';
|
|
35
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-f0edf3d6.js';
|
|
36
|
+
import { _ as _JSON$stringify } from './stringify-d1b9276a.js';
|
|
37
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-e1a2f43a.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-ea93e8f7.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-3fdda599.js';
|
|
48
|
+
import { r as renderAuthor, g as getSerializers } from './index-eca81448.js';
|
|
49
|
+
import './util-7700fc59.js';
|
|
50
|
+
import './brightcove-react-player-loader.es-e761d404.js';
|
|
51
|
+
import Head from 'next/head';
|
|
52
|
+
import 'react-share';
|
|
53
|
+
import SocialShare from './SocialShare.js';
|
|
54
|
+
import './_object-to-array-c8f72bf1.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-526daf0a.js';
|
|
61
|
+
import 'react-bootstrap/Dropdown';
|
|
62
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.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-d9cf4ffb.js';
|
|
68
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-93bb872d.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 &&
|
|
155
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
156
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
157
157
|
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
158
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
159
|
-
main_43 && !thumbnailUrl &&
|
|
159
|
+
main_43 && !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 '
|
|
@@ -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
|
|
@@ -535,9 +535,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
535
535
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
536
536
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
537
537
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
538
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
539
|
-
props.active
|
|
540
|
-
|
|
538
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
539
|
+
active = props.active,
|
|
540
|
+
containerHeight = props.containerHeight,
|
|
541
541
|
_props$refreshFlag = props.refreshFlag,
|
|
542
542
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
543
543
|
disqusConfig = props.disqusConfig,
|
|
@@ -597,9 +597,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
597
597
|
setArticleBody = _useState10[1];
|
|
598
598
|
|
|
599
599
|
var _useState11 = useState(true),
|
|
600
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
601
|
-
_useState12[0]
|
|
602
|
-
|
|
600
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
601
|
+
previewAd = _useState12[0],
|
|
602
|
+
setPreviewAd = _useState12[1];
|
|
603
603
|
|
|
604
604
|
useEffect(function () {
|
|
605
605
|
var path = window && window.location && window.location.search;
|
|
@@ -620,7 +620,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
620
620
|
};
|
|
621
621
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
622
622
|
if (biography) {
|
|
623
|
-
return
|
|
623
|
+
return React__default.createElement(BlockContent, _extends({
|
|
624
624
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
625
625
|
blocks: [biography]
|
|
626
626
|
}, client.config()));
|
|
@@ -630,9 +630,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
630
630
|
var url = article.url.current;
|
|
631
631
|
|
|
632
632
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
633
|
-
return
|
|
633
|
+
return React__default.createElement(ISIContent, null);
|
|
634
634
|
} else if (nationalPage === url && ISIContent) {
|
|
635
|
-
return
|
|
635
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
636
636
|
}
|
|
637
637
|
return null;
|
|
638
638
|
};
|
|
@@ -643,7 +643,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
643
643
|
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
644
644
|
documentGroupMapping.forEach(function (documentGroup) {
|
|
645
645
|
if (documentGroup.parent) {
|
|
646
|
-
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
|
|
646
|
+
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
|
|
647
|
+
label: documentGroup.name,
|
|
648
|
+
href: cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.parent.identifier && documentGroup.parent.identifier.current && !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path
|
|
649
|
+
}]);
|
|
647
650
|
}
|
|
648
651
|
});
|
|
649
652
|
}
|
|
@@ -663,19 +666,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
663
666
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
664
667
|
}
|
|
665
668
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
666
|
-
return
|
|
669
|
+
return React__default.createElement(
|
|
667
670
|
'div',
|
|
668
671
|
null,
|
|
669
672
|
relatedLinks.map(function (relatedLink, index) {
|
|
670
|
-
return
|
|
673
|
+
return React__default.createElement(
|
|
671
674
|
'span',
|
|
672
675
|
{ key: index, className: 'related-link' },
|
|
673
|
-
|
|
676
|
+
React__default.createElement(
|
|
674
677
|
'a',
|
|
675
678
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
676
679
|
relatedLink.label
|
|
677
680
|
),
|
|
678
|
-
|
|
681
|
+
React__default.createElement(
|
|
679
682
|
'style',
|
|
680
683
|
{ jsx: 'true' },
|
|
681
684
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -690,23 +693,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
690
693
|
};
|
|
691
694
|
|
|
692
695
|
var RelatedContent = function RelatedContent() {
|
|
693
|
-
return
|
|
696
|
+
return React__default.createElement(
|
|
694
697
|
'section',
|
|
695
698
|
{ id: 'related-content-section', className: 'my-1' },
|
|
696
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
699
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
697
700
|
'p',
|
|
698
701
|
{ className: 'mb-0' },
|
|
699
|
-
|
|
702
|
+
React__default.createElement(
|
|
700
703
|
'b',
|
|
701
704
|
null,
|
|
702
705
|
'Related Content:'
|
|
703
706
|
)
|
|
704
707
|
),
|
|
705
|
-
|
|
706
|
-
|
|
708
|
+
React__default.createElement(RelevantTopics, null),
|
|
709
|
+
React__default.createElement(
|
|
707
710
|
'div',
|
|
708
711
|
{ className: 'pt-2' },
|
|
709
|
-
|
|
712
|
+
React__default.createElement(RelatedArticle, {
|
|
710
713
|
articles: article.relatedArticle,
|
|
711
714
|
client: client,
|
|
712
715
|
fallbackImage: props.Settings.logo,
|
|
@@ -717,29 +720,29 @@ var Article = forwardRef(function (props, ref) {
|
|
|
717
720
|
};
|
|
718
721
|
|
|
719
722
|
var form = function form() {
|
|
720
|
-
return
|
|
721
|
-
|
|
723
|
+
return React__default.createElement(
|
|
724
|
+
React__default.Fragment,
|
|
722
725
|
null,
|
|
723
|
-
|
|
726
|
+
React__default.createElement(
|
|
724
727
|
Head,
|
|
725
728
|
null,
|
|
726
|
-
|
|
729
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
727
730
|
),
|
|
728
|
-
|
|
731
|
+
React__default.createElement(
|
|
729
732
|
'div',
|
|
730
733
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
731
|
-
|
|
734
|
+
React__default.createElement(
|
|
732
735
|
Form,
|
|
733
736
|
{
|
|
734
737
|
inline: true,
|
|
735
738
|
onSubmit: function onSubmit(e) {
|
|
736
739
|
e.preventDefault();
|
|
737
740
|
} },
|
|
738
|
-
|
|
741
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
739
742
|
return setPasswordKey(e.target.value);
|
|
740
743
|
}, placeholder: 'Password' }),
|
|
741
|
-
|
|
742
|
-
Button,
|
|
744
|
+
React__default.createElement(
|
|
745
|
+
Button$1,
|
|
743
746
|
{
|
|
744
747
|
variant: 'primary',
|
|
745
748
|
onClick: function onClick() {
|
|
@@ -788,31 +791,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
788
791
|
setContextualADFlag(true);
|
|
789
792
|
}
|
|
790
793
|
};
|
|
791
|
-
return
|
|
792
|
-
|
|
794
|
+
return React__default.createElement(
|
|
795
|
+
React__default.Fragment,
|
|
793
796
|
null,
|
|
794
|
-
|
|
797
|
+
React__default.createElement(BlockContent, _extends({
|
|
795
798
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
796
799
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
797
800
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
798
801
|
}, client.config())),
|
|
799
|
-
|
|
800
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
801
|
-
|
|
802
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
803
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
804
|
+
React__default.createElement(
|
|
802
805
|
'div',
|
|
803
806
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
804
|
-
|
|
807
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
805
808
|
refreshFlag: refreshFlag
|
|
806
809
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
807
810
|
}))
|
|
808
811
|
),
|
|
809
|
-
|
|
810
|
-
|
|
812
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
813
|
+
React__default.createElement(
|
|
811
814
|
'div',
|
|
812
815
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
813
|
-
|
|
816
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
814
817
|
),
|
|
815
|
-
|
|
818
|
+
React__default.createElement(BlockContent, _extends({
|
|
816
819
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
817
820
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
818
821
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -837,26 +840,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
837
840
|
if (seriesInfo.hasVideo) {
|
|
838
841
|
_selectedIndex = seriesInfo.videoIndex;
|
|
839
842
|
}
|
|
840
|
-
return
|
|
841
|
-
|
|
843
|
+
return React__default.createElement(
|
|
844
|
+
React__default.Fragment,
|
|
842
845
|
null,
|
|
843
|
-
|
|
846
|
+
React__default.createElement(BlockContent, _extends({
|
|
844
847
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
845
848
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
846
849
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
847
850
|
}, client.config())),
|
|
848
|
-
contextualADFlag &&
|
|
849
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
850
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
851
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
852
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
853
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
851
854
|
'div',
|
|
852
855
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
853
|
-
|
|
856
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
854
857
|
refreshFlag: refreshFlag
|
|
855
858
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
856
859
|
}))
|
|
857
860
|
),
|
|
858
|
-
contextualADFlag &&
|
|
859
|
-
|
|
861
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
862
|
+
React__default.createElement(BlockContent, _extends({
|
|
860
863
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
861
864
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
862
865
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -886,22 +889,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
886
889
|
}
|
|
887
890
|
};
|
|
888
891
|
|
|
889
|
-
return
|
|
890
|
-
|
|
892
|
+
return React__default.createElement(
|
|
893
|
+
React__default.Fragment,
|
|
891
894
|
null,
|
|
892
|
-
|
|
895
|
+
React__default.createElement(BlockContent, _extends({
|
|
893
896
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
894
897
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
895
898
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
896
899
|
}, client.config())),
|
|
897
|
-
|
|
898
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
899
|
-
|
|
900
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
901
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
902
|
+
React__default.createElement(
|
|
900
903
|
'div',
|
|
901
904
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
902
|
-
|
|
905
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
903
906
|
),
|
|
904
|
-
|
|
907
|
+
React__default.createElement(BlockContent, _extends({
|
|
905
908
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
906
909
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
907
910
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -913,16 +916,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
913
916
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
914
917
|
}
|
|
915
918
|
|
|
916
|
-
return
|
|
919
|
+
return React__default.createElement(
|
|
917
920
|
'div',
|
|
918
921
|
null,
|
|
919
|
-
|
|
922
|
+
React__default.createElement(BlockContent, _extends({
|
|
920
923
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
921
924
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
922
925
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
923
926
|
}, client.config())),
|
|
924
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
925
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
927
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
928
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
926
929
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
927
930
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
928
931
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -967,8 +970,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
967
970
|
shareSubject = shareOptions.shareSubject,
|
|
968
971
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
969
972
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
970
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
971
|
-
shareOptions.shareSiteTitle;
|
|
973
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
974
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
972
975
|
|
|
973
976
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
974
977
|
var shareTitle = article.title;
|
|
@@ -1008,10 +1011,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1008
1011
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1009
1012
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1010
1013
|
|
|
1011
|
-
return
|
|
1012
|
-
|
|
1014
|
+
return React__default.createElement(
|
|
1015
|
+
React__default.Fragment,
|
|
1013
1016
|
null,
|
|
1014
|
-
|
|
1017
|
+
React__default.createElement(
|
|
1015
1018
|
VisibilitySensor,
|
|
1016
1019
|
{
|
|
1017
1020
|
partialVisibility: true,
|
|
@@ -1024,61 +1027,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1024
1027
|
});
|
|
1025
1028
|
}
|
|
1026
1029
|
} },
|
|
1027
|
-
|
|
1030
|
+
React__default.createElement(
|
|
1028
1031
|
'div',
|
|
1029
1032
|
{ id: 'article__block', ref: ref },
|
|
1030
|
-
|
|
1033
|
+
React__default.createElement(
|
|
1031
1034
|
'div',
|
|
1032
1035
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1033
1036
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1034
|
-
!isVideoSeries &&
|
|
1037
|
+
!isVideoSeries && React__default.createElement(
|
|
1035
1038
|
'div',
|
|
1036
1039
|
null,
|
|
1037
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1040
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1038
1041
|
'p',
|
|
1039
1042
|
{ style: { fontSize: '14px' } },
|
|
1040
1043
|
article.documentGroup.name,
|
|
1041
1044
|
' - Episode ',
|
|
1042
1045
|
episodeNumber
|
|
1043
1046
|
),
|
|
1044
|
-
|
|
1047
|
+
React__default.createElement(
|
|
1045
1048
|
'h1',
|
|
1046
1049
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1047
1050
|
title
|
|
1048
1051
|
)
|
|
1049
1052
|
),
|
|
1050
|
-
|
|
1053
|
+
React__default.createElement(
|
|
1051
1054
|
'div',
|
|
1052
1055
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1053
|
-
|
|
1056
|
+
React__default.createElement(
|
|
1054
1057
|
'style',
|
|
1055
1058
|
{ jsx: 'true' },
|
|
1056
1059
|
'\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
1060
|
),
|
|
1058
|
-
|
|
1061
|
+
React__default.createElement(
|
|
1059
1062
|
'div',
|
|
1060
1063
|
{ className: 'left-wrap' },
|
|
1061
|
-
!isVideoSeries && showPublished &&
|
|
1064
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1062
1065
|
'div',
|
|
1063
1066
|
null,
|
|
1064
1067
|
moment(published).format('LL')
|
|
1065
1068
|
)
|
|
1066
1069
|
/* Show Published date */
|
|
1067
1070
|
,
|
|
1068
|
-
|
|
1071
|
+
React__default.createElement(
|
|
1069
1072
|
'div',
|
|
1070
1073
|
{ className: 'mb-3' },
|
|
1071
1074
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1072
|
-
return
|
|
1075
|
+
return React__default.createElement(
|
|
1073
1076
|
'span',
|
|
1074
1077
|
{ key: index },
|
|
1075
1078
|
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
1079
|
);
|
|
1077
1080
|
}),
|
|
1078
|
-
|
|
1081
|
+
React__default.createElement(
|
|
1079
1082
|
'div',
|
|
1080
1083
|
null,
|
|
1081
|
-
source &&
|
|
1084
|
+
source && React__default.createElement(
|
|
1082
1085
|
'p',
|
|
1083
1086
|
{
|
|
1084
1087
|
style: {
|
|
@@ -1093,13 +1096,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1093
1096
|
source
|
|
1094
1097
|
)
|
|
1095
1098
|
),
|
|
1096
|
-
issue &&
|
|
1099
|
+
issue && React__default.createElement(
|
|
1097
1100
|
'div',
|
|
1098
1101
|
{ className: 'volume-issue' },
|
|
1099
|
-
issue.publication && issue.publication.name &&
|
|
1102
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1100
1103
|
'span',
|
|
1101
1104
|
{ className: 'mb-0' },
|
|
1102
|
-
|
|
1105
|
+
React__default.createElement(
|
|
1103
1106
|
'b',
|
|
1104
1107
|
null,
|
|
1105
1108
|
issue.publication.name
|
|
@@ -1107,34 +1110,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1107
1110
|
',',
|
|
1108
1111
|
' '
|
|
1109
1112
|
),
|
|
1110
|
-
issue.name &&
|
|
1113
|
+
issue.name && React__default.createElement(
|
|
1111
1114
|
'span',
|
|
1112
1115
|
{ className: 'mb-0' },
|
|
1113
1116
|
issue.name,
|
|
1114
1117
|
', '
|
|
1115
1118
|
),
|
|
1116
|
-
issue.volume &&
|
|
1119
|
+
issue.volume && React__default.createElement(
|
|
1117
1120
|
'span',
|
|
1118
1121
|
null,
|
|
1119
1122
|
'Volume ' + issue.volume,
|
|
1120
1123
|
','
|
|
1121
1124
|
),
|
|
1122
|
-
issue.issueNumber &&
|
|
1125
|
+
issue.issueNumber && React__default.createElement(
|
|
1123
1126
|
'span',
|
|
1124
1127
|
null,
|
|
1125
1128
|
' Issue ' + issue.issueNumber
|
|
1126
1129
|
)
|
|
1127
1130
|
),
|
|
1128
|
-
pageNumber &&
|
|
1131
|
+
pageNumber && React__default.createElement(
|
|
1129
1132
|
'div',
|
|
1130
1133
|
{ className: 'article-pageNumber' },
|
|
1131
1134
|
'Pages: ' + pageNumber
|
|
1132
1135
|
)
|
|
1133
1136
|
),
|
|
1134
|
-
!isVideoSeries && showSocialShare &&
|
|
1137
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1135
1138
|
'p',
|
|
1136
1139
|
null,
|
|
1137
|
-
|
|
1140
|
+
React__default.createElement(SocialShare, {
|
|
1138
1141
|
shareUrl: shareUrl,
|
|
1139
1142
|
shareTitle: shareTitle,
|
|
1140
1143
|
shareVia: shareVia,
|
|
@@ -1150,27 +1153,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1150
1153
|
})
|
|
1151
1154
|
)
|
|
1152
1155
|
),
|
|
1153
|
-
|
|
1156
|
+
React__default.createElement(
|
|
1154
1157
|
'div',
|
|
1155
1158
|
null,
|
|
1156
|
-
|
|
1159
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1157
1160
|
)
|
|
1158
1161
|
),
|
|
1159
|
-
!isVideoSeries && summary && display_summary &&
|
|
1162
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1160
1163
|
'p',
|
|
1161
1164
|
null,
|
|
1162
|
-
|
|
1165
|
+
React__default.createElement(
|
|
1163
1166
|
'em',
|
|
1164
1167
|
null,
|
|
1165
1168
|
summary
|
|
1166
1169
|
)
|
|
1167
1170
|
),
|
|
1168
|
-
|
|
1171
|
+
React__default.createElement(
|
|
1169
1172
|
'div',
|
|
1170
1173
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1171
1174
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1172
1175
|
if (index === 0) {
|
|
1173
|
-
return
|
|
1176
|
+
return React__default.createElement(
|
|
1174
1177
|
'div',
|
|
1175
1178
|
{
|
|
1176
1179
|
key: index,
|
|
@@ -1187,24 +1190,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1187
1190
|
}
|
|
1188
1191
|
})
|
|
1189
1192
|
),
|
|
1190
|
-
|
|
1193
|
+
React__default.createElement(
|
|
1191
1194
|
'div',
|
|
1192
1195
|
{ className: 'block-content mt-3' },
|
|
1193
1196
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1194
|
-
|
|
1195
|
-
|
|
1197
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1198
|
+
React__default.createElement(
|
|
1196
1199
|
'noscript',
|
|
1197
1200
|
null,
|
|
1198
|
-
|
|
1201
|
+
React__default.createElement(
|
|
1199
1202
|
'div',
|
|
1200
1203
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1201
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1204
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1202
1205
|
'a',
|
|
1203
1206
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1204
1207
|
'Previous ',
|
|
1205
1208
|
props.article.seriesDetail.type
|
|
1206
1209
|
),
|
|
1207
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1210
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1208
1211
|
'a',
|
|
1209
1212
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1210
1213
|
'Next ',
|
|
@@ -1212,26 +1215,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1212
1215
|
)
|
|
1213
1216
|
)
|
|
1214
1217
|
),
|
|
1215
|
-
issue && issue.url &&
|
|
1218
|
+
issue && issue.url && React__default.createElement(
|
|
1216
1219
|
'a',
|
|
1217
1220
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1218
|
-
|
|
1221
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1219
1222
|
'Download Issue : ',
|
|
1220
1223
|
issue.name
|
|
1221
1224
|
)
|
|
1222
1225
|
),
|
|
1223
|
-
|
|
1224
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1226
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1227
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1225
1228
|
'div',
|
|
1226
1229
|
null,
|
|
1227
1230
|
false ,
|
|
1228
|
-
|
|
1231
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1229
1232
|
),
|
|
1230
|
-
showRelatedArticles && !showIsi &&
|
|
1231
|
-
disqusConfig && showDisqus &&
|
|
1233
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1234
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1232
1235
|
'div',
|
|
1233
1236
|
{ id: 'disqusContainer' },
|
|
1234
|
-
|
|
1237
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1235
1238
|
shortname: disqusConfig.shortname,
|
|
1236
1239
|
config: {
|
|
1237
1240
|
url: disqusConfig.url,
|
|
@@ -1244,30 +1247,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1244
1247
|
renderIsiContent(props.article)
|
|
1245
1248
|
)
|
|
1246
1249
|
),
|
|
1247
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1250
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1248
1251
|
ISI,
|
|
1249
1252
|
null,
|
|
1250
|
-
|
|
1253
|
+
React__default.createElement(BlockContent, {
|
|
1251
1254
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1252
1255
|
blocks: isi
|
|
1253
1256
|
})
|
|
1254
1257
|
),
|
|
1255
1258
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1256
1259
|
if (index > 0) {
|
|
1257
|
-
return
|
|
1260
|
+
return React__default.createElement(
|
|
1258
1261
|
'div',
|
|
1259
1262
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1260
1263
|
ad.component
|
|
1261
1264
|
);
|
|
1262
1265
|
}
|
|
1263
1266
|
}),
|
|
1264
|
-
|
|
1267
|
+
React__default.createElement(
|
|
1265
1268
|
'noscript',
|
|
1266
1269
|
null,
|
|
1267
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1270
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1268
1271
|
'div',
|
|
1269
1272
|
{ style: { textAlign: 'center' } },
|
|
1270
|
-
|
|
1273
|
+
React__default.createElement(
|
|
1271
1274
|
'a',
|
|
1272
1275
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1273
1276
|
'Related Article ',
|
|
@@ -1275,7 +1278,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1275
1278
|
)
|
|
1276
1279
|
)
|
|
1277
1280
|
),
|
|
1278
|
-
props.infiniteScroll &&
|
|
1281
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1279
1282
|
);
|
|
1280
1283
|
};
|
|
1281
1284
|
|
|
@@ -1290,16 +1293,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1290
1293
|
}
|
|
1291
1294
|
});
|
|
1292
1295
|
|
|
1293
|
-
var _this
|
|
1296
|
+
var _this = undefined;
|
|
1294
1297
|
|
|
1295
1298
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1296
1299
|
var _props$prevUrl = props.prevUrl,
|
|
1297
1300
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1298
1301
|
Ads = props.Ads,
|
|
1299
1302
|
_props$maxListLength = props.maxListLength,
|
|
1300
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1301
|
-
props.sponsoredTaxonomies
|
|
1302
|
-
|
|
1303
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1304
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1305
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1303
1306
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1304
1307
|
_props$authorPrefix = props.authorPrefix,
|
|
1305
1308
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1469,7 +1472,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1469
1472
|
return _context.stop();
|
|
1470
1473
|
}
|
|
1471
1474
|
}
|
|
1472
|
-
}, _callee, _this
|
|
1475
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1473
1476
|
}));
|
|
1474
1477
|
|
|
1475
1478
|
return function loadmore() {
|
|
@@ -1514,14 +1517,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1514
1517
|
refreshAD(path);
|
|
1515
1518
|
};
|
|
1516
1519
|
|
|
1517
|
-
return
|
|
1520
|
+
return React__default.createElement(
|
|
1518
1521
|
InfiniteScroll,
|
|
1519
1522
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1520
1523
|
queueData.map(function (article, index) {
|
|
1521
|
-
return
|
|
1522
|
-
|
|
1524
|
+
return React__default.createElement(
|
|
1525
|
+
React__default.Fragment,
|
|
1523
1526
|
null,
|
|
1524
|
-
|
|
1527
|
+
React__default.createElement(Article, _extends({
|
|
1525
1528
|
key: index
|
|
1526
1529
|
}, props, {
|
|
1527
1530
|
containerHeight: containerHeight,
|
|
@@ -1539,7 +1542,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1539
1542
|
);
|
|
1540
1543
|
};
|
|
1541
1544
|
|
|
1542
|
-
var _this = undefined;
|
|
1545
|
+
var _this$1 = undefined;
|
|
1543
1546
|
|
|
1544
1547
|
var View = function View(props) {
|
|
1545
1548
|
var router = useRouter();
|
|
@@ -1549,9 +1552,9 @@ var View = function View(props) {
|
|
|
1549
1552
|
hideComments = _props$article.hideComments,
|
|
1550
1553
|
content_placement = _props$article.content_placement,
|
|
1551
1554
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1552
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1553
|
-
props.sponsoredTaxonomies
|
|
1554
|
-
|
|
1555
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1556
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1557
|
+
Ads = props.Ads,
|
|
1555
1558
|
setCustomDimensions = props.setCustomDimensions,
|
|
1556
1559
|
statusCode = props.statusCode,
|
|
1557
1560
|
prevUrl = props.prevUrl,
|
|
@@ -1564,9 +1567,9 @@ var View = function View(props) {
|
|
|
1564
1567
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1565
1568
|
var _props$article2 = props.article,
|
|
1566
1569
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1567
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1568
|
-
_props$article2.description
|
|
1569
|
-
|
|
1570
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1571
|
+
description = _props$article2.description,
|
|
1572
|
+
title = _props$article2.title,
|
|
1570
1573
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1571
1574
|
|
|
1572
1575
|
var _useState = useState(0),
|
|
@@ -1627,6 +1630,7 @@ var View = function View(props) {
|
|
|
1627
1630
|
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
1631
|
|
|
1629
1632
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1633
|
+
description = null;
|
|
1630
1634
|
title = null;
|
|
1631
1635
|
}
|
|
1632
1636
|
|
|
@@ -1663,63 +1667,63 @@ var View = function View(props) {
|
|
|
1663
1667
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1664
1668
|
}
|
|
1665
1669
|
|
|
1666
|
-
return
|
|
1667
|
-
|
|
1670
|
+
return React__default.createElement(
|
|
1671
|
+
React__default.Fragment,
|
|
1668
1672
|
null,
|
|
1669
|
-
|
|
1673
|
+
React__default.createElement(
|
|
1670
1674
|
Head,
|
|
1671
1675
|
null,
|
|
1672
|
-
|
|
1676
|
+
React__default.createElement(
|
|
1673
1677
|
'title',
|
|
1674
1678
|
{ key: 'title' },
|
|
1675
1679
|
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
1680
|
),
|
|
1677
|
-
meta_description &&
|
|
1678
|
-
|
|
1679
|
-
passwordLock &&
|
|
1680
|
-
|
|
1681
|
+
meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1682
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1683
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1684
|
+
React__default.createElement('meta', {
|
|
1681
1685
|
property: 'og:url',
|
|
1682
1686
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1683
1687
|
key: 'og:url'
|
|
1684
1688
|
}),
|
|
1685
|
-
|
|
1689
|
+
React__default.createElement('meta', {
|
|
1686
1690
|
property: 'og:title',
|
|
1687
1691
|
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
1692
|
key: 'og:title'
|
|
1689
1693
|
}),
|
|
1690
|
-
|
|
1694
|
+
React__default.createElement('meta', {
|
|
1691
1695
|
property: 'og:image',
|
|
1692
1696
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1693
1697
|
key: 'og:image'
|
|
1694
1698
|
}),
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1700
|
+
React__default.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1701
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1702
|
+
React__default.createElement('meta', {
|
|
1699
1703
|
name: 'twitter:title',
|
|
1700
1704
|
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
1705
|
key: 'twitter:title'
|
|
1702
1706
|
}),
|
|
1703
|
-
|
|
1707
|
+
React__default.createElement('meta', {
|
|
1704
1708
|
name: 'twitter:image',
|
|
1705
1709
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1706
1710
|
key: 'twitter:image'
|
|
1707
1711
|
}),
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
canonicalTag &&
|
|
1712
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1713
|
+
React__default.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1714
|
+
canonicalTag && React__default.createElement('link', {
|
|
1711
1715
|
rel: 'canonical',
|
|
1712
1716
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1713
1717
|
key: 'canonical'
|
|
1714
1718
|
}),
|
|
1715
|
-
|
|
1719
|
+
React__default.createElement(
|
|
1716
1720
|
'noscript',
|
|
1717
1721
|
null,
|
|
1718
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1719
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1722
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1723
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1720
1724
|
)
|
|
1721
1725
|
),
|
|
1722
|
-
!needInfiniteScroll ?
|
|
1726
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1723
1727
|
infiniteScroll: true,
|
|
1724
1728
|
showRelatedArticles: showRelatedArticles,
|
|
1725
1729
|
canonicalTag: canonicalTag,
|
|
@@ -1856,7 +1860,7 @@ View.returnGetInitialProps = function () {
|
|
|
1856
1860
|
return _context.stop();
|
|
1857
1861
|
}
|
|
1858
1862
|
}
|
|
1859
|
-
}, _callee, _this);
|
|
1863
|
+
}, _callee, _this$1);
|
|
1860
1864
|
}));
|
|
1861
1865
|
|
|
1862
1866
|
return function (_x, _x2, _x3, _x4, _x5) {
|