@mjhls/mjh-framework 1.0.850 → 1.0.852
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +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-fb136f1d.js → ADInfeed-5f236872.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-d303d27e.js → ADlgInfeed-7b915591.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 +62 -60
- 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 +83 -81
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +233 -238
- 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 +75 -73
- 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 +69 -67
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +72 -73
- package/dist/cjs/MediaSeriesLanding.js +991 -980
- 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 +111 -109
- 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-cbab9f0f.js → SeriesSlider-dad08884.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-ad15dd61.js} +32 -36
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +58 -56
- 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 +77 -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 +262 -270
- 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 +48 -45
- package/dist/cjs/{getTargeting-faf37284.js → getTargeting-608e1fd1.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- 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-a67ab93e.js → index-a7a90204.js} +704 -526
- 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 +166 -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-df562a07.js → ADInfeed-dec9975c.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-53992119.js → ADlgInfeed-1ea41fb6.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 +59 -56
- 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 +77 -74
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +198 -198
- 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 +72 -69
- 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 +66 -63
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +69 -69
- package/dist/esm/MediaSeriesLanding.js +632 -618
- 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 +108 -105
- 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-5c62a578.js → SeriesSlider-5ba2e521.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-9cc36413.js} +26 -26
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -54
- package/dist/esm/TaxonomyDescription.js +53 -50
- 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 +70 -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 +254 -258
- 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 +48 -45
- package/dist/esm/{getTargeting-c3401fa7.js → getTargeting-37cb4051.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-27e2c06e.js → index-03da2fcc.js} +667 -482
- 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-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 +139 -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,77 @@
|
|
|
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-27e2c06e.js';
|
|
19
|
-
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-5c62a578.js';
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-c3401fa7.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 Button$1 from 'react-bootstrap/Button';
|
|
42
|
+
import { B as BlockContent } from './BlockContent-ea93e8f7.js';
|
|
43
|
+
import './index-c7e2ac95.js';
|
|
44
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
53
45
|
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';
|
|
46
|
+
import 'react-bootstrap';
|
|
65
47
|
import './iconBase-602d52fe.js';
|
|
48
|
+
import './index.esm-3fdda599.js';
|
|
49
|
+
import { r as renderAuthor, g as getSerializers } from './index-03da2fcc.js';
|
|
50
|
+
import './util-7700fc59.js';
|
|
51
|
+
import './brightcove-react-player-loader.es-e761d404.js';
|
|
52
|
+
import Head from 'next/head';
|
|
53
|
+
import 'react-share';
|
|
54
|
+
import SocialShare from './SocialShare.js';
|
|
55
|
+
import './_object-to-array-c8f72bf1.js';
|
|
56
|
+
import 'react-bootstrap/Pagination';
|
|
66
57
|
import 'react-bootstrap/Figure';
|
|
67
|
-
import '
|
|
68
|
-
import '
|
|
69
|
-
import '
|
|
70
|
-
import '
|
|
58
|
+
import 'react-bootstrap/OverlayTrigger';
|
|
59
|
+
import 'react-bootstrap/Tooltip';
|
|
60
|
+
import 'react-bootstrap/Popover';
|
|
61
|
+
import Form from 'react-bootstrap/Form';
|
|
62
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
63
|
+
import { _ as _Object$keys } from './keys-526daf0a.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';
|
|
71
67
|
import './index-db3bb315.js';
|
|
68
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
69
|
+
import getQuery from './getQuery.js';
|
|
70
|
+
import { S as SeriesSlider } from './SeriesSlider-5ba2e521.js';
|
|
71
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-37cb4051.js';
|
|
72
|
+
import getKeywords from './getKeywords.js';
|
|
73
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
74
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
72
75
|
|
|
73
76
|
var getArticleSummary = function getArticleSummary(article) {
|
|
74
77
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -146,17 +149,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
146
149
|
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
return
|
|
152
|
+
return React__default.createElement(
|
|
150
153
|
'a',
|
|
151
154
|
{
|
|
152
155
|
href: url,
|
|
153
156
|
className: 'doc-group',
|
|
154
157
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
155
|
-
thumbnailUrl &&
|
|
156
|
-
!thumbnailUrl &&
|
|
158
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
159
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
157
160
|
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
158
161
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
159
|
-
main_43 && !thumbnailUrl &&
|
|
162
|
+
main_43 && !thumbnailUrl && React__default.createElement(
|
|
160
163
|
'style',
|
|
161
164
|
{ jsx: 'true' },
|
|
162
165
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -296,38 +299,38 @@ var ISI = function ISI(props) {
|
|
|
296
299
|
}, 300);
|
|
297
300
|
}
|
|
298
301
|
};
|
|
299
|
-
return
|
|
300
|
-
|
|
302
|
+
return React__default.createElement(
|
|
303
|
+
React__default.Fragment,
|
|
301
304
|
null,
|
|
302
|
-
|
|
305
|
+
React__default.createElement(
|
|
303
306
|
'div',
|
|
304
307
|
{ id: 'isi', ref: isi },
|
|
305
|
-
|
|
308
|
+
React__default.createElement(
|
|
306
309
|
'div',
|
|
307
310
|
{ id: 'isiContent' },
|
|
308
|
-
|
|
311
|
+
React__default.createElement(
|
|
309
312
|
'div',
|
|
310
313
|
{ onClick: function onClick() {
|
|
311
314
|
return setActive(function (prev) {
|
|
312
315
|
return !prev;
|
|
313
316
|
});
|
|
314
317
|
}, id: 'isiToggle' },
|
|
315
|
-
active ?
|
|
318
|
+
active ? React__default.createElement(
|
|
316
319
|
'p',
|
|
317
320
|
null,
|
|
318
321
|
'Close ',
|
|
319
|
-
|
|
320
|
-
) :
|
|
322
|
+
React__default.createElement(FaMinus, null)
|
|
323
|
+
) : React__default.createElement(
|
|
321
324
|
'p',
|
|
322
325
|
null,
|
|
323
326
|
'See More ',
|
|
324
|
-
|
|
327
|
+
React__default.createElement(FaPlus, null)
|
|
325
328
|
)
|
|
326
329
|
),
|
|
327
330
|
children
|
|
328
331
|
)
|
|
329
332
|
),
|
|
330
|
-
|
|
333
|
+
React__default.createElement(
|
|
331
334
|
'style',
|
|
332
335
|
{ jsx: true },
|
|
333
336
|
'\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 +352,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
349
352
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
350
353
|
return null;
|
|
351
354
|
}
|
|
352
|
-
return
|
|
355
|
+
return React__default.createElement(
|
|
353
356
|
'div',
|
|
354
357
|
{ className: styles.mediaContainer },
|
|
355
358
|
articles.map(function (article, index) {
|
|
356
|
-
return
|
|
359
|
+
return React__default.createElement(
|
|
357
360
|
'div',
|
|
358
361
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
359
|
-
|
|
362
|
+
React__default.createElement(
|
|
360
363
|
'a',
|
|
361
364
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
362
|
-
article.thumbnail ?
|
|
365
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
363
366
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
364
367
|
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
365
368
|
alt: article.title
|
|
366
|
-
}) :
|
|
367
|
-
|
|
369
|
+
}) : React__default.createElement(
|
|
370
|
+
React__default.Fragment,
|
|
368
371
|
null,
|
|
369
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
372
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
370
373
|
)
|
|
371
374
|
),
|
|
372
|
-
|
|
375
|
+
React__default.createElement(
|
|
373
376
|
'div',
|
|
374
377
|
{ className: styles.mediaBody },
|
|
375
|
-
|
|
378
|
+
React__default.createElement(
|
|
376
379
|
'a',
|
|
377
380
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
378
|
-
|
|
381
|
+
React__default.createElement(
|
|
379
382
|
'div',
|
|
380
383
|
{ className: styles.cardTitle },
|
|
381
384
|
article.title
|
|
@@ -509,7 +512,7 @@ function generateSchema(props) {
|
|
|
509
512
|
}
|
|
510
513
|
|
|
511
514
|
var Schema = function Schema(props) {
|
|
512
|
-
return
|
|
515
|
+
return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
|
|
513
516
|
};
|
|
514
517
|
|
|
515
518
|
var Article = forwardRef(function (props, ref) {
|
|
@@ -615,9 +618,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
615
618
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
616
619
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
617
620
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
618
|
-
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh
|
|
619
|
-
props.active
|
|
620
|
-
|
|
621
|
+
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
622
|
+
active = props.active,
|
|
623
|
+
containerHeight = props.containerHeight,
|
|
621
624
|
_props$refreshFlag = props.refreshFlag,
|
|
622
625
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
623
626
|
disqusConfig = props.disqusConfig,
|
|
@@ -677,9 +680,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
677
680
|
setArticleBody = _useState10[1];
|
|
678
681
|
|
|
679
682
|
var _useState11 = useState(true),
|
|
680
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
681
|
-
_useState12[0]
|
|
682
|
-
|
|
683
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
684
|
+
previewAd = _useState12[0],
|
|
685
|
+
setPreviewAd = _useState12[1];
|
|
683
686
|
|
|
684
687
|
useEffect(function () {
|
|
685
688
|
var path = window && window.location && window.location.search;
|
|
@@ -700,7 +703,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
700
703
|
};
|
|
701
704
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
702
705
|
if (biography) {
|
|
703
|
-
return
|
|
706
|
+
return React__default.createElement(BlockContent, _extends({
|
|
704
707
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
705
708
|
blocks: [biography]
|
|
706
709
|
}, client.config()));
|
|
@@ -710,9 +713,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
710
713
|
var url = article.url.current;
|
|
711
714
|
|
|
712
715
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
713
|
-
return
|
|
716
|
+
return React__default.createElement(ISIContent, null);
|
|
714
717
|
} else if (nationalPage === url && ISIContent) {
|
|
715
|
-
return
|
|
718
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
716
719
|
}
|
|
717
720
|
return null;
|
|
718
721
|
};
|
|
@@ -746,19 +749,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
746
749
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
747
750
|
}
|
|
748
751
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
749
|
-
return
|
|
752
|
+
return React__default.createElement(
|
|
750
753
|
'div',
|
|
751
754
|
null,
|
|
752
755
|
relatedLinks.map(function (relatedLink, index) {
|
|
753
|
-
return
|
|
756
|
+
return React__default.createElement(
|
|
754
757
|
'span',
|
|
755
758
|
{ key: index, className: 'related-link' },
|
|
756
|
-
|
|
759
|
+
React__default.createElement(
|
|
757
760
|
'a',
|
|
758
761
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
759
762
|
relatedLink.label
|
|
760
763
|
),
|
|
761
|
-
|
|
764
|
+
React__default.createElement(
|
|
762
765
|
'style',
|
|
763
766
|
{ jsx: 'true' },
|
|
764
767
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -773,23 +776,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
773
776
|
};
|
|
774
777
|
|
|
775
778
|
var RelatedContent = function RelatedContent() {
|
|
776
|
-
return
|
|
779
|
+
return React__default.createElement(
|
|
777
780
|
'section',
|
|
778
781
|
{ id: 'related-content-section', className: 'my-1' },
|
|
779
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
782
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
780
783
|
'p',
|
|
781
784
|
{ className: 'mb-0' },
|
|
782
|
-
|
|
785
|
+
React__default.createElement(
|
|
783
786
|
'b',
|
|
784
787
|
null,
|
|
785
788
|
'Related Content:'
|
|
786
789
|
)
|
|
787
790
|
),
|
|
788
|
-
|
|
789
|
-
|
|
791
|
+
React__default.createElement(RelevantTopics, null),
|
|
792
|
+
React__default.createElement(
|
|
790
793
|
'div',
|
|
791
794
|
{ className: 'pt-2' },
|
|
792
|
-
|
|
795
|
+
React__default.createElement(RelatedArticle, {
|
|
793
796
|
articles: article.relatedArticle,
|
|
794
797
|
client: client,
|
|
795
798
|
fallbackImage: props.Settings.logo,
|
|
@@ -800,29 +803,29 @@ var Article = forwardRef(function (props, ref) {
|
|
|
800
803
|
};
|
|
801
804
|
|
|
802
805
|
var form = function form() {
|
|
803
|
-
return
|
|
804
|
-
|
|
806
|
+
return React__default.createElement(
|
|
807
|
+
React__default.Fragment,
|
|
805
808
|
null,
|
|
806
|
-
|
|
809
|
+
React__default.createElement(
|
|
807
810
|
Head,
|
|
808
811
|
null,
|
|
809
|
-
|
|
812
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
810
813
|
),
|
|
811
|
-
|
|
814
|
+
React__default.createElement(
|
|
812
815
|
'div',
|
|
813
816
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
814
|
-
|
|
817
|
+
React__default.createElement(
|
|
815
818
|
Form,
|
|
816
819
|
{
|
|
817
820
|
inline: true,
|
|
818
821
|
onSubmit: function onSubmit(e) {
|
|
819
822
|
e.preventDefault();
|
|
820
823
|
} },
|
|
821
|
-
|
|
824
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
822
825
|
return setPasswordKey(e.target.value);
|
|
823
826
|
}, placeholder: 'Password' }),
|
|
824
|
-
|
|
825
|
-
Button,
|
|
827
|
+
React__default.createElement(
|
|
828
|
+
Button$1,
|
|
826
829
|
{
|
|
827
830
|
variant: 'primary',
|
|
828
831
|
onClick: function onClick() {
|
|
@@ -871,31 +874,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
871
874
|
setContextualADFlag(true);
|
|
872
875
|
}
|
|
873
876
|
};
|
|
874
|
-
return
|
|
875
|
-
|
|
877
|
+
return React__default.createElement(
|
|
878
|
+
React__default.Fragment,
|
|
876
879
|
null,
|
|
877
|
-
|
|
880
|
+
React__default.createElement(BlockContent, _extends({
|
|
878
881
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
879
882
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
880
883
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
881
884
|
}, client.config())),
|
|
882
|
-
|
|
883
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
884
|
-
|
|
885
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
886
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
887
|
+
React__default.createElement(
|
|
885
888
|
'div',
|
|
886
889
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
887
|
-
|
|
890
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
888
891
|
refreshFlag: refreshFlag
|
|
889
892
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
890
893
|
}))
|
|
891
894
|
),
|
|
892
|
-
|
|
893
|
-
|
|
895
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
896
|
+
React__default.createElement(
|
|
894
897
|
'div',
|
|
895
898
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
896
|
-
|
|
899
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
897
900
|
),
|
|
898
|
-
|
|
901
|
+
React__default.createElement(BlockContent, _extends({
|
|
899
902
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
900
903
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
901
904
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -920,26 +923,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
920
923
|
if (seriesInfo.hasVideo) {
|
|
921
924
|
_selectedIndex = seriesInfo.videoIndex;
|
|
922
925
|
}
|
|
923
|
-
return
|
|
924
|
-
|
|
926
|
+
return React__default.createElement(
|
|
927
|
+
React__default.Fragment,
|
|
925
928
|
null,
|
|
926
|
-
|
|
929
|
+
React__default.createElement(BlockContent, _extends({
|
|
927
930
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
928
931
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
929
932
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
930
933
|
}, client.config())),
|
|
931
|
-
contextualADFlag &&
|
|
932
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
933
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
934
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
935
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
936
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
934
937
|
'div',
|
|
935
938
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
936
|
-
|
|
939
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
937
940
|
refreshFlag: refreshFlag
|
|
938
941
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
939
942
|
}))
|
|
940
943
|
),
|
|
941
|
-
contextualADFlag &&
|
|
942
|
-
|
|
944
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
945
|
+
React__default.createElement(BlockContent, _extends({
|
|
943
946
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
944
947
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
945
948
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -969,22 +972,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
969
972
|
}
|
|
970
973
|
};
|
|
971
974
|
|
|
972
|
-
return
|
|
973
|
-
|
|
975
|
+
return React__default.createElement(
|
|
976
|
+
React__default.Fragment,
|
|
974
977
|
null,
|
|
975
|
-
|
|
978
|
+
React__default.createElement(BlockContent, _extends({
|
|
976
979
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
977
980
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
978
981
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
979
982
|
}, client.config())),
|
|
980
|
-
|
|
981
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
982
|
-
|
|
983
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
984
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
985
|
+
React__default.createElement(
|
|
983
986
|
'div',
|
|
984
987
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
985
|
-
|
|
988
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
986
989
|
),
|
|
987
|
-
|
|
990
|
+
React__default.createElement(BlockContent, _extends({
|
|
988
991
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
989
992
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
990
993
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -996,16 +999,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
996
999
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
997
1000
|
}
|
|
998
1001
|
|
|
999
|
-
return
|
|
1002
|
+
return React__default.createElement(
|
|
1000
1003
|
'div',
|
|
1001
1004
|
null,
|
|
1002
|
-
|
|
1005
|
+
React__default.createElement(BlockContent, _extends({
|
|
1003
1006
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1004
1007
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1005
1008
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1006
1009
|
}, client.config())),
|
|
1007
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
1008
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
1010
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1011
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1009
1012
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1010
1013
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1011
1014
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1050,8 +1053,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1050
1053
|
shareSubject = shareOptions.shareSubject,
|
|
1051
1054
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
1052
1055
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
1053
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
1054
|
-
shareOptions.shareSiteTitle;
|
|
1056
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
1057
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
1055
1058
|
|
|
1056
1059
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
1057
1060
|
var shareTitle = article.title;
|
|
@@ -1091,10 +1094,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1091
1094
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1092
1095
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1093
1096
|
|
|
1094
|
-
return
|
|
1095
|
-
|
|
1097
|
+
return React__default.createElement(
|
|
1098
|
+
React__default.Fragment,
|
|
1096
1099
|
null,
|
|
1097
|
-
|
|
1100
|
+
React__default.createElement(
|
|
1098
1101
|
VisibilitySensor,
|
|
1099
1102
|
{
|
|
1100
1103
|
partialVisibility: true,
|
|
@@ -1107,61 +1110,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1107
1110
|
});
|
|
1108
1111
|
}
|
|
1109
1112
|
} },
|
|
1110
|
-
|
|
1113
|
+
React__default.createElement(
|
|
1111
1114
|
'div',
|
|
1112
1115
|
{ id: 'article__block', ref: ref },
|
|
1113
|
-
|
|
1116
|
+
React__default.createElement(
|
|
1114
1117
|
'div',
|
|
1115
1118
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1116
1119
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1117
|
-
!isVideoSeries &&
|
|
1120
|
+
!isVideoSeries && React__default.createElement(
|
|
1118
1121
|
'div',
|
|
1119
1122
|
null,
|
|
1120
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1123
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1121
1124
|
'p',
|
|
1122
1125
|
{ style: { fontSize: '14px' } },
|
|
1123
1126
|
article.documentGroup.name,
|
|
1124
1127
|
' - Episode ',
|
|
1125
1128
|
episodeNumber
|
|
1126
1129
|
),
|
|
1127
|
-
|
|
1130
|
+
React__default.createElement(
|
|
1128
1131
|
'h1',
|
|
1129
1132
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1130
1133
|
title
|
|
1131
1134
|
)
|
|
1132
1135
|
),
|
|
1133
|
-
|
|
1136
|
+
React__default.createElement(
|
|
1134
1137
|
'div',
|
|
1135
1138
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1136
|
-
|
|
1139
|
+
React__default.createElement(
|
|
1137
1140
|
'style',
|
|
1138
1141
|
{ jsx: 'true' },
|
|
1139
1142
|
'\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 '
|
|
1140
1143
|
),
|
|
1141
|
-
|
|
1144
|
+
React__default.createElement(
|
|
1142
1145
|
'div',
|
|
1143
1146
|
{ className: 'left-wrap' },
|
|
1144
|
-
!isVideoSeries && showPublished &&
|
|
1147
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1145
1148
|
'div',
|
|
1146
1149
|
null,
|
|
1147
1150
|
moment(published).format('LL')
|
|
1148
1151
|
)
|
|
1149
1152
|
/* Show Published date */
|
|
1150
1153
|
,
|
|
1151
|
-
|
|
1154
|
+
React__default.createElement(
|
|
1152
1155
|
'div',
|
|
1153
1156
|
{ className: 'mb-3' },
|
|
1154
1157
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1155
|
-
return
|
|
1158
|
+
return React__default.createElement(
|
|
1156
1159
|
'span',
|
|
1157
1160
|
{ key: index },
|
|
1158
1161
|
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 }))
|
|
1159
1162
|
);
|
|
1160
1163
|
}),
|
|
1161
|
-
|
|
1164
|
+
React__default.createElement(
|
|
1162
1165
|
'div',
|
|
1163
1166
|
null,
|
|
1164
|
-
source &&
|
|
1167
|
+
source && React__default.createElement(
|
|
1165
1168
|
'p',
|
|
1166
1169
|
{
|
|
1167
1170
|
style: {
|
|
@@ -1176,13 +1179,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1176
1179
|
source
|
|
1177
1180
|
)
|
|
1178
1181
|
),
|
|
1179
|
-
issue &&
|
|
1182
|
+
issue && React__default.createElement(
|
|
1180
1183
|
'div',
|
|
1181
1184
|
{ className: 'volume-issue' },
|
|
1182
|
-
issue.publication && issue.publication.name &&
|
|
1185
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1183
1186
|
'span',
|
|
1184
1187
|
{ className: 'mb-0' },
|
|
1185
|
-
|
|
1188
|
+
React__default.createElement(
|
|
1186
1189
|
'b',
|
|
1187
1190
|
null,
|
|
1188
1191
|
issue.publication.name
|
|
@@ -1190,34 +1193,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1190
1193
|
',',
|
|
1191
1194
|
' '
|
|
1192
1195
|
),
|
|
1193
|
-
issue.name &&
|
|
1196
|
+
issue.name && React__default.createElement(
|
|
1194
1197
|
'span',
|
|
1195
1198
|
{ className: 'mb-0' },
|
|
1196
1199
|
issue.name,
|
|
1197
1200
|
', '
|
|
1198
1201
|
),
|
|
1199
|
-
issue.volume &&
|
|
1202
|
+
issue.volume && React__default.createElement(
|
|
1200
1203
|
'span',
|
|
1201
1204
|
null,
|
|
1202
1205
|
'Volume ' + issue.volume,
|
|
1203
1206
|
','
|
|
1204
1207
|
),
|
|
1205
|
-
issue.issueNumber &&
|
|
1208
|
+
issue.issueNumber && React__default.createElement(
|
|
1206
1209
|
'span',
|
|
1207
1210
|
null,
|
|
1208
1211
|
' Issue ' + issue.issueNumber
|
|
1209
1212
|
)
|
|
1210
1213
|
),
|
|
1211
|
-
pageNumber &&
|
|
1214
|
+
pageNumber && React__default.createElement(
|
|
1212
1215
|
'div',
|
|
1213
1216
|
{ className: 'article-pageNumber' },
|
|
1214
1217
|
'Pages: ' + pageNumber
|
|
1215
1218
|
)
|
|
1216
1219
|
),
|
|
1217
|
-
!isVideoSeries && showSocialShare &&
|
|
1220
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1218
1221
|
'p',
|
|
1219
1222
|
null,
|
|
1220
|
-
|
|
1223
|
+
React__default.createElement(SocialShare, {
|
|
1221
1224
|
shareUrl: shareUrl,
|
|
1222
1225
|
shareTitle: shareTitle,
|
|
1223
1226
|
shareVia: shareVia,
|
|
@@ -1233,27 +1236,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1233
1236
|
})
|
|
1234
1237
|
)
|
|
1235
1238
|
),
|
|
1236
|
-
|
|
1239
|
+
React__default.createElement(
|
|
1237
1240
|
'div',
|
|
1238
1241
|
null,
|
|
1239
|
-
|
|
1242
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1240
1243
|
)
|
|
1241
1244
|
),
|
|
1242
|
-
!isVideoSeries && summary && display_summary &&
|
|
1245
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1243
1246
|
'p',
|
|
1244
1247
|
null,
|
|
1245
|
-
|
|
1248
|
+
React__default.createElement(
|
|
1246
1249
|
'em',
|
|
1247
1250
|
null,
|
|
1248
1251
|
summary
|
|
1249
1252
|
)
|
|
1250
1253
|
),
|
|
1251
|
-
|
|
1254
|
+
React__default.createElement(
|
|
1252
1255
|
'div',
|
|
1253
1256
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1254
1257
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1255
1258
|
if (index === 0) {
|
|
1256
|
-
return
|
|
1259
|
+
return React__default.createElement(
|
|
1257
1260
|
'div',
|
|
1258
1261
|
{
|
|
1259
1262
|
key: index,
|
|
@@ -1270,24 +1273,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1270
1273
|
}
|
|
1271
1274
|
})
|
|
1272
1275
|
),
|
|
1273
|
-
|
|
1276
|
+
React__default.createElement(
|
|
1274
1277
|
'div',
|
|
1275
1278
|
{ className: 'block-content mt-3' },
|
|
1276
1279
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1277
|
-
|
|
1278
|
-
|
|
1280
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1281
|
+
React__default.createElement(
|
|
1279
1282
|
'noscript',
|
|
1280
1283
|
null,
|
|
1281
|
-
|
|
1284
|
+
React__default.createElement(
|
|
1282
1285
|
'div',
|
|
1283
1286
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1284
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1287
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1285
1288
|
'a',
|
|
1286
1289
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1287
1290
|
'Previous ',
|
|
1288
1291
|
props.article.seriesDetail.type
|
|
1289
1292
|
),
|
|
1290
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1293
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1291
1294
|
'a',
|
|
1292
1295
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1293
1296
|
'Next ',
|
|
@@ -1295,26 +1298,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1295
1298
|
)
|
|
1296
1299
|
)
|
|
1297
1300
|
),
|
|
1298
|
-
issue && issue.url &&
|
|
1301
|
+
issue && issue.url && React__default.createElement(
|
|
1299
1302
|
'a',
|
|
1300
1303
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1301
|
-
|
|
1304
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1302
1305
|
'Download Issue : ',
|
|
1303
1306
|
issue.name
|
|
1304
1307
|
)
|
|
1305
1308
|
),
|
|
1306
|
-
|
|
1307
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1309
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1310
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1308
1311
|
'div',
|
|
1309
1312
|
null,
|
|
1310
1313
|
false ,
|
|
1311
|
-
|
|
1314
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1312
1315
|
),
|
|
1313
|
-
showRelatedArticles && !showIsi &&
|
|
1314
|
-
disqusConfig && showDisqus &&
|
|
1316
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1317
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1315
1318
|
'div',
|
|
1316
1319
|
{ id: 'disqusContainer' },
|
|
1317
|
-
|
|
1320
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1318
1321
|
shortname: disqusConfig.shortname,
|
|
1319
1322
|
config: {
|
|
1320
1323
|
url: disqusConfig.url,
|
|
@@ -1327,30 +1330,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1327
1330
|
renderIsiContent(props.article)
|
|
1328
1331
|
)
|
|
1329
1332
|
),
|
|
1330
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1333
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1331
1334
|
ISI,
|
|
1332
1335
|
null,
|
|
1333
|
-
|
|
1336
|
+
React__default.createElement(BlockContent, {
|
|
1334
1337
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1335
1338
|
blocks: isi
|
|
1336
1339
|
})
|
|
1337
1340
|
),
|
|
1338
1341
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1339
1342
|
if (index > 0) {
|
|
1340
|
-
return
|
|
1343
|
+
return React__default.createElement(
|
|
1341
1344
|
'div',
|
|
1342
1345
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1343
1346
|
ad.component
|
|
1344
1347
|
);
|
|
1345
1348
|
}
|
|
1346
1349
|
}),
|
|
1347
|
-
|
|
1350
|
+
React__default.createElement(
|
|
1348
1351
|
'noscript',
|
|
1349
1352
|
null,
|
|
1350
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1353
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1351
1354
|
'div',
|
|
1352
1355
|
{ style: { textAlign: 'center' } },
|
|
1353
|
-
|
|
1356
|
+
React__default.createElement(
|
|
1354
1357
|
'a',
|
|
1355
1358
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1356
1359
|
'Related Article ',
|
|
@@ -1358,8 +1361,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1358
1361
|
)
|
|
1359
1362
|
)
|
|
1360
1363
|
),
|
|
1361
|
-
props.infiniteScroll &&
|
|
1362
|
-
|
|
1364
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' }),
|
|
1365
|
+
React__default.createElement(Schema, { article: props.article, Website: props.Website, client: props.client })
|
|
1363
1366
|
);
|
|
1364
1367
|
};
|
|
1365
1368
|
|
|
@@ -1374,7 +1377,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1374
1377
|
}
|
|
1375
1378
|
});
|
|
1376
1379
|
|
|
1377
|
-
var _this
|
|
1380
|
+
var _this = undefined;
|
|
1378
1381
|
|
|
1379
1382
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1380
1383
|
var router = useRouter();
|
|
@@ -1383,9 +1386,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1383
1386
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1384
1387
|
Ads = props.Ads,
|
|
1385
1388
|
_props$maxListLength = props.maxListLength,
|
|
1386
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1387
|
-
props.sponsoredTaxonomies
|
|
1388
|
-
|
|
1389
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1390
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1391
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1389
1392
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1390
1393
|
_props$authorPrefix = props.authorPrefix,
|
|
1391
1394
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1555,7 +1558,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1555
1558
|
return _context.stop();
|
|
1556
1559
|
}
|
|
1557
1560
|
}
|
|
1558
|
-
}, _callee, _this
|
|
1561
|
+
}, _callee, _this, [[3, 9], [15, 21]]);
|
|
1559
1562
|
}));
|
|
1560
1563
|
|
|
1561
1564
|
return function loadmore() {
|
|
@@ -1633,14 +1636,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1633
1636
|
refreshAD(path);
|
|
1634
1637
|
};
|
|
1635
1638
|
|
|
1636
|
-
return
|
|
1639
|
+
return React__default.createElement(
|
|
1637
1640
|
InfiniteScroll,
|
|
1638
1641
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1639
1642
|
queueData.map(function (article, index) {
|
|
1640
|
-
return
|
|
1641
|
-
|
|
1643
|
+
return React__default.createElement(
|
|
1644
|
+
React__default.Fragment,
|
|
1642
1645
|
null,
|
|
1643
|
-
|
|
1646
|
+
React__default.createElement(Article, _extends({
|
|
1644
1647
|
key: index
|
|
1645
1648
|
}, props, {
|
|
1646
1649
|
containerHeight: containerHeight,
|
|
@@ -1658,7 +1661,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1658
1661
|
);
|
|
1659
1662
|
};
|
|
1660
1663
|
|
|
1661
|
-
var _this = undefined;
|
|
1664
|
+
var _this$1 = undefined;
|
|
1662
1665
|
|
|
1663
1666
|
var View = function View(props) {
|
|
1664
1667
|
var router = useRouter();
|
|
@@ -1668,9 +1671,9 @@ var View = function View(props) {
|
|
|
1668
1671
|
hideComments = _props$article.hideComments,
|
|
1669
1672
|
content_placement = _props$article.content_placement,
|
|
1670
1673
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1671
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1672
|
-
props.sponsoredTaxonomies
|
|
1673
|
-
|
|
1674
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1675
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1676
|
+
Ads = props.Ads,
|
|
1674
1677
|
setCustomDimensions = props.setCustomDimensions,
|
|
1675
1678
|
statusCode = props.statusCode,
|
|
1676
1679
|
prevUrl = props.prevUrl,
|
|
@@ -1683,9 +1686,9 @@ var View = function View(props) {
|
|
|
1683
1686
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1684
1687
|
var _props$article2 = props.article,
|
|
1685
1688
|
_props$article2$passw = _props$article2.passwordLock,
|
|
1686
|
-
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw
|
|
1687
|
-
_props$article2.description
|
|
1688
|
-
|
|
1689
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1690
|
+
description = _props$article2.description,
|
|
1691
|
+
title = _props$article2.title,
|
|
1689
1692
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1690
1693
|
|
|
1691
1694
|
var _useState = useState(0),
|
|
@@ -1711,41 +1714,34 @@ var View = function View(props) {
|
|
|
1711
1714
|
}
|
|
1712
1715
|
}, []);
|
|
1713
1716
|
|
|
1714
|
-
|
|
1715
|
-
|
|
1717
|
+
var isVideoSeries = false;
|
|
1718
|
+
//check for certain serializers that need to disable infinite scroll
|
|
1719
|
+
var checkBodyForDisableInfiniteScroll = function checkBodyForDisableInfiniteScroll(article) {
|
|
1716
1720
|
if (!article || !article.body) {
|
|
1717
1721
|
return false;
|
|
1718
1722
|
}
|
|
1719
1723
|
for (var i = 0; i < article.body.length; i++) {
|
|
1720
|
-
|
|
1721
|
-
if (typeof row.videos !== 'undefined') {
|
|
1724
|
+
if (article.body[i]._type === 'articleSeries' || article.body[i]._type === 'slideshows') {
|
|
1722
1725
|
return true;
|
|
1723
1726
|
}
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
var checkArticleSeries = function checkArticleSeries(article) {
|
|
1729
|
-
if (!article || !article.body) {
|
|
1730
|
-
return false;
|
|
1731
|
-
}
|
|
1732
|
-
for (var i = 0; i < article.body.length; i++) {
|
|
1733
|
-
if (article.body[i]._type === 'articleSeries') {
|
|
1727
|
+
var row = article.body[i];
|
|
1728
|
+
if (typeof row.videos !== 'undefined') {
|
|
1729
|
+
isVideoSeries = true;
|
|
1734
1730
|
return true;
|
|
1735
1731
|
}
|
|
1736
1732
|
}
|
|
1737
1733
|
return false;
|
|
1738
1734
|
};
|
|
1739
1735
|
|
|
1740
|
-
var
|
|
1741
|
-
var isArticleSeries = checkArticleSeries(props.article);
|
|
1736
|
+
var disableInfiniteScroll = checkBodyForDisableInfiniteScroll(props.article);
|
|
1742
1737
|
var commentsEnabledInTaxonomy = Array.isArray(content_placement) && content_placement.some(function (t) {
|
|
1743
1738
|
return t.showComments === true;
|
|
1744
1739
|
});
|
|
1745
1740
|
var showDisqus = commentsEnabledInTaxonomy || hideComments === false;
|
|
1746
|
-
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !
|
|
1741
|
+
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;
|
|
1747
1742
|
|
|
1748
1743
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1744
|
+
description = null;
|
|
1749
1745
|
title = null;
|
|
1750
1746
|
}
|
|
1751
1747
|
|
|
@@ -1789,63 +1785,63 @@ var View = function View(props) {
|
|
|
1789
1785
|
|
|
1790
1786
|
var metaDescriptionSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaDescription;
|
|
1791
1787
|
var metaTitleSanity = seoLinks && seoLinks.length == 1 && seoLinks[0].metaTitle;
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1788
|
+
return React__default.createElement(
|
|
1789
|
+
React__default.Fragment,
|
|
1794
1790
|
null,
|
|
1795
|
-
|
|
1791
|
+
React__default.createElement(
|
|
1796
1792
|
Head,
|
|
1797
1793
|
null,
|
|
1798
|
-
|
|
1794
|
+
React__default.createElement(
|
|
1799
1795
|
'title',
|
|
1800
1796
|
{ key: 'title' },
|
|
1801
1797
|
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 : '')
|
|
1802
1798
|
),
|
|
1803
|
-
metaDescriptionSanity ?
|
|
1804
|
-
|
|
1805
|
-
passwordLock &&
|
|
1806
|
-
|
|
1799
|
+
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1800
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1801
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1802
|
+
React__default.createElement('meta', {
|
|
1807
1803
|
property: 'og:url',
|
|
1808
1804
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1809
1805
|
key: 'og:url'
|
|
1810
1806
|
}),
|
|
1811
|
-
|
|
1807
|
+
React__default.createElement('meta', {
|
|
1812
1808
|
property: 'og:title',
|
|
1813
1809
|
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 : ''),
|
|
1814
1810
|
key: 'og:title'
|
|
1815
1811
|
}),
|
|
1816
|
-
|
|
1812
|
+
React__default.createElement('meta', {
|
|
1817
1813
|
property: 'og:image',
|
|
1818
1814
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1819
1815
|
key: 'og:image'
|
|
1820
1816
|
}),
|
|
1821
|
-
|
|
1822
|
-
metaDescriptionSanity ?
|
|
1823
|
-
|
|
1824
|
-
|
|
1817
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1818
|
+
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 }),
|
|
1819
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1820
|
+
React__default.createElement('meta', {
|
|
1825
1821
|
name: 'twitter:title',
|
|
1826
1822
|
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 : ''),
|
|
1827
1823
|
key: 'twitter:title'
|
|
1828
1824
|
}),
|
|
1829
|
-
|
|
1825
|
+
React__default.createElement('meta', {
|
|
1830
1826
|
name: 'twitter:image',
|
|
1831
1827
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1832
1828
|
key: 'twitter:image'
|
|
1833
1829
|
}),
|
|
1834
|
-
|
|
1835
|
-
metaDescriptionSanity ?
|
|
1836
|
-
canonicalTag &&
|
|
1830
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1831
|
+
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 }),
|
|
1832
|
+
canonicalTag && React__default.createElement('link', {
|
|
1837
1833
|
rel: 'canonical',
|
|
1838
1834
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1839
1835
|
key: 'canonical'
|
|
1840
1836
|
}),
|
|
1841
|
-
|
|
1837
|
+
React__default.createElement(
|
|
1842
1838
|
'noscript',
|
|
1843
1839
|
null,
|
|
1844
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1845
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1840
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1841
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1846
1842
|
)
|
|
1847
1843
|
),
|
|
1848
|
-
!needInfiniteScroll ?
|
|
1844
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1849
1845
|
infiniteScroll: true,
|
|
1850
1846
|
showRelatedArticles: showRelatedArticles,
|
|
1851
1847
|
canonicalTag: canonicalTag,
|
|
@@ -1982,7 +1978,7 @@ View.returnGetInitialProps = function () {
|
|
|
1982
1978
|
return _context.stop();
|
|
1983
1979
|
}
|
|
1984
1980
|
}
|
|
1985
|
-
}, _callee, _this);
|
|
1981
|
+
}, _callee, _this$1);
|
|
1986
1982
|
}));
|
|
1987
1983
|
|
|
1988
1984
|
return function (_x, _x2, _x3, _x4, _x5) {
|