@mjhls/mjh-framework 1.0.734-beta-0.2 → 1.0.735
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 +10 -9
- 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 +31 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +31 -32
- package/dist/cjs/{ADInfeed-d1d7e784.js → ADInfeed-5fe7fd9d.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -32
- package/dist/cjs/ADSponsoredResources.js +31 -32
- package/dist/cjs/ADWebcast.js +31 -32
- package/dist/cjs/ADWelcome.js +35 -36
- package/dist/cjs/{ADlgInfeed-b6116a72.js → ADlgInfeed-a62d2f9b.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +17 -16
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +55 -54
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +816 -330
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +58 -55
- package/dist/cjs/ConferenceArticleCard.js +23 -22
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -94
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-ce7ac168.js → Dfp-80146e98.js} +31 -30
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +77 -76
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +183 -183
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +136 -131
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +69 -68
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +41 -40
- package/dist/cjs/LeftNav.js +38 -36
- package/dist/cjs/MasterDeck.js +74 -77
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +144 -139
- package/dist/cjs/NavNative.js +124 -116
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +106 -105
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +38 -37
- package/dist/cjs/PubToc.js +17 -16
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +78 -74
- package/dist/cjs/QueueDeckExpanded.js +294 -298
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +25 -24
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -35
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TaxonomyDescription.js +52 -51
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -70
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +48 -47
- package/dist/cjs/VideoSeriesListing.js +75 -74
- package/dist/cjs/View.js +250 -316
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
- package/dist/cjs/getQuery.js +2 -1
- package/dist/cjs/getRelatedArticle.js +19 -19
- package/dist/cjs/getSerializers.js +42 -42
- package/dist/cjs/{getTargeting-5eef5b58.js → getTargeting-497b581d.js} +5 -7
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-41222a33.js → index-5260126b.js} +487 -476
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/{index-39beccb3.js → index-d48b231c.js} +29 -24
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +159 -156
- package/dist/cjs/{inherits-513d81cd.js → inherits-2eb23889.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
- package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -27
- package/dist/esm/AD300x250x600.js +25 -27
- package/dist/esm/AD728x90.js +28 -30
- package/dist/esm/ADFloatingFooter.js +27 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +27 -29
- package/dist/esm/{ADInfeed-0299bf7e.js → ADInfeed-3a9eef39.js} +9 -9
- package/dist/esm/ADSkyscraper.js +27 -29
- package/dist/esm/ADSponsoredResources.js +27 -29
- package/dist/esm/ADWebcast.js +27 -29
- package/dist/esm/ADWelcome.js +31 -33
- package/dist/esm/{ADlgInfeed-7b627388.js → ADlgInfeed-8d63ff91.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +51 -51
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +797 -315
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-e9a07597.js → Dfp-8bfbd310.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +70 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +141 -145
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +65 -65
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +67 -71
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +115 -115
- package/dist/esm/NavNative.js +92 -92
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +34 -34
- package/dist/esm/PubToc.js +13 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +274 -278
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +60 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +39 -39
- package/dist/esm/VideoSeriesListing.js +68 -68
- package/dist/esm/View.js +237 -307
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
- package/dist/esm/{_set-species-3f8319f5.js → _set-species-494ed292.js} +4 -4
- package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
- package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-2bd4099a.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
- package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
- package/dist/esm/getQuery.js +2 -1
- package/dist/esm/getRelatedArticle.js +13 -13
- package/dist/esm/getSerializers.js +42 -42
- package/dist/esm/{getTargeting-9413f34a.js → getTargeting-2d402d66.js} +5 -7
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-3849e3fe.js → index-3f5c03b2.js} +29 -24
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- package/dist/esm/{index-196b1669.js → index-d6ad9248.js} +421 -417
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +126 -126
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
- package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/View.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
|
|
2
|
+
import { _ as _extends, a as _Object$assign } from './extends-31d65aba.js';
|
|
3
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
5
|
+
import Head from 'next/head';
|
|
6
|
+
import { useRouter } from 'next/router';
|
|
7
|
+
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
8
|
+
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
9
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
+
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
11
|
+
import { m as main_40 } from './main-1450d277.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 { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-d6ad9248.js';
|
|
17
|
+
import SocialShare from './SocialShare.js';
|
|
18
|
+
import DFPAdSlot from './AdSlot.js';
|
|
19
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
20
|
+
import getKeywords from './getKeywords.js';
|
|
21
|
+
import urlFor from './urlFor.js';
|
|
22
|
+
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
23
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
24
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
25
|
+
import './index-752d1dae.js';
|
|
26
|
+
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
27
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
28
|
+
import { l as lib_3 } from './index-888f9253.js';
|
|
29
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
30
|
+
import getQuery from './getQuery.js';
|
|
31
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
1
32
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
33
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
34
|
+
import './_to-object-97770c52.js';
|
|
35
|
+
import './web.dom.iterable-035980f3.js';
|
|
4
36
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
37
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
38
|
+
import './_set-species-494ed292.js';
|
|
39
|
+
import './_iter-detect-48516cd3.js';
|
|
8
40
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-fb9b6e8f.js';
|
|
12
|
-
import './define-property-8af5f002.js';
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React__default, { useState, useRef, useEffect } from 'react';
|
|
17
|
-
import { l as lib_3 } from './index-a9e53f80.js';
|
|
18
41
|
import 'prop-types';
|
|
19
|
-
import '
|
|
20
|
-
import 'react-bootstrap
|
|
21
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
22
|
-
import { useRouter } from 'next/router';
|
|
23
|
-
import './isSymbol-807e927e.js';
|
|
24
|
-
import './debounce-1a993acf.js';
|
|
25
|
-
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
26
|
-
import 'react-dom';
|
|
27
|
-
import './index-3849e3fe.js';
|
|
28
|
-
import './index-5f9f807a.js';
|
|
29
|
-
import { m as main_36 } from './main-e4a934b2.js';
|
|
30
|
-
import './entities-7cc3bf45.js';
|
|
31
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
32
|
-
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
33
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
|
|
34
|
-
import './_set-species-3f8319f5.js';
|
|
35
|
-
import './Segment.js';
|
|
36
|
-
import './Beam.js';
|
|
37
|
-
import DFPAdSlot from './AdSlot.js';
|
|
38
|
-
import { B as BlockContent } from './BlockContent-c409aca5.js';
|
|
42
|
+
import './index-3f5c03b2.js';
|
|
43
|
+
import 'react-bootstrap';
|
|
39
44
|
import './index-c7e2ac95.js';
|
|
40
|
-
import './
|
|
45
|
+
import './util-3ab476bf.js';
|
|
46
|
+
import './Beam.js';
|
|
47
|
+
import './Segment.js';
|
|
48
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
41
49
|
import './GroupDeck.js';
|
|
42
|
-
import '
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-196b1669.js';
|
|
46
|
-
import './util-7700fc59.js';
|
|
47
|
-
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
48
|
-
import './_object-to-array-7e804fce.js';
|
|
50
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
51
|
+
import './_is-array-674f71ec.js';
|
|
52
|
+
import './_object-to-array-8f409e54.js';
|
|
49
53
|
import 'react-bootstrap/Pagination';
|
|
50
|
-
import
|
|
51
|
-
import
|
|
54
|
+
import './entities-932b50cf.js';
|
|
55
|
+
import 'react-bootstrap/Row';
|
|
56
|
+
import 'react-bootstrap/Col';
|
|
57
|
+
import './inherits-5906fbea.js';
|
|
58
|
+
import './_object-sap-fd3054d0.js';
|
|
59
|
+
import './define-property-ec6d528d.js';
|
|
60
|
+
import './index.esm-3fdda599.js';
|
|
61
|
+
import './iconBase-602d52fe.js';
|
|
52
62
|
import 'react-bootstrap/Figure';
|
|
53
|
-
import Form from 'react-bootstrap/Form';
|
|
54
63
|
import 'react-share';
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import 'react-bootstrap/Dropdown';
|
|
59
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
|
|
60
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
64
|
+
import './debounce-1a993acf.js';
|
|
65
|
+
import './isSymbol-807e927e.js';
|
|
66
|
+
import 'react-dom';
|
|
61
67
|
import './index-db3bb315.js';
|
|
62
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
63
|
-
import getQuery from './getQuery.js';
|
|
64
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-9413f34a.js';
|
|
65
|
-
import getKeywords from './getKeywords.js';
|
|
66
|
-
import urlFor from './urlFor.js';
|
|
67
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
68
|
|
|
69
69
|
var getArticleSummary = function getArticleSummary(article) {
|
|
70
70
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -133,17 +133,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
133
133
|
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
return
|
|
136
|
+
return React.createElement(
|
|
137
137
|
'a',
|
|
138
138
|
{
|
|
139
139
|
href: url,
|
|
140
140
|
className: 'doc-group',
|
|
141
141
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
142
|
-
thumbnailUrl &&
|
|
143
|
-
!thumbnailUrl &&
|
|
144
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
142
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
143
|
+
!thumbnailUrl && React.createElement('p', {
|
|
144
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
145
145
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
146
|
-
|
|
146
|
+
main_40 && !thumbnailUrl && React.createElement(
|
|
147
147
|
'style',
|
|
148
148
|
{ jsx: 'true' },
|
|
149
149
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -211,38 +211,38 @@ var ISI = function ISI(props) {
|
|
|
211
211
|
isi.current.style.overflowY = '';
|
|
212
212
|
}
|
|
213
213
|
}, [active]);
|
|
214
|
-
return
|
|
215
|
-
|
|
214
|
+
return React.createElement(
|
|
215
|
+
React.Fragment,
|
|
216
216
|
null,
|
|
217
|
-
|
|
217
|
+
React.createElement(
|
|
218
218
|
'div',
|
|
219
219
|
{ id: 'isi', ref: isi },
|
|
220
|
-
|
|
220
|
+
React.createElement(
|
|
221
221
|
'div',
|
|
222
222
|
{ id: 'isiContent' },
|
|
223
|
-
|
|
223
|
+
React.createElement(
|
|
224
224
|
'div',
|
|
225
225
|
{ onClick: function onClick() {
|
|
226
226
|
return setActive(function (prev) {
|
|
227
227
|
return !prev;
|
|
228
228
|
});
|
|
229
229
|
}, id: 'isiToggle' },
|
|
230
|
-
active ?
|
|
230
|
+
active ? React.createElement(
|
|
231
231
|
'p',
|
|
232
232
|
null,
|
|
233
233
|
'Close ',
|
|
234
|
-
|
|
235
|
-
) :
|
|
234
|
+
React.createElement(FaMinus, null)
|
|
235
|
+
) : React.createElement(
|
|
236
236
|
'p',
|
|
237
237
|
null,
|
|
238
238
|
'See More ',
|
|
239
|
-
|
|
239
|
+
React.createElement(FaPlus, null)
|
|
240
240
|
)
|
|
241
241
|
),
|
|
242
242
|
children
|
|
243
243
|
)
|
|
244
244
|
),
|
|
245
|
-
|
|
245
|
+
React.createElement(
|
|
246
246
|
'style',
|
|
247
247
|
{ jsx: true },
|
|
248
248
|
'\n #isi {\n position: fixed;\n z-index: 99999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\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 '
|
|
@@ -264,33 +264,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
264
264
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
265
265
|
return null;
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return React.createElement(
|
|
268
268
|
'div',
|
|
269
269
|
{ className: styles.mediaContainer },
|
|
270
270
|
articles.map(function (article, index) {
|
|
271
|
-
return
|
|
271
|
+
return React.createElement(
|
|
272
272
|
'div',
|
|
273
273
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
274
|
-
|
|
274
|
+
React.createElement(
|
|
275
275
|
'a',
|
|
276
276
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
277
|
-
article.thumbnail ?
|
|
277
|
+
article.thumbnail ? React.createElement('img', {
|
|
278
278
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
279
279
|
src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
|
|
280
280
|
alt: article.title
|
|
281
|
-
}) :
|
|
282
|
-
|
|
281
|
+
}) : React.createElement(
|
|
282
|
+
React.Fragment,
|
|
283
283
|
null,
|
|
284
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
284
|
+
fallbackImage && showRelatedArticleFallbackImage && React.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
285
285
|
)
|
|
286
286
|
),
|
|
287
|
-
|
|
287
|
+
React.createElement(
|
|
288
288
|
'div',
|
|
289
289
|
{ className: styles.mediaBody },
|
|
290
|
-
|
|
290
|
+
React.createElement(
|
|
291
291
|
'a',
|
|
292
292
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
293
|
-
|
|
293
|
+
React.createElement(
|
|
294
294
|
'h4',
|
|
295
295
|
{ className: styles.cardTitle },
|
|
296
296
|
article.title
|
|
@@ -455,9 +455,9 @@ var Article = function Article(props) {
|
|
|
455
455
|
setArticleBody = _useState10[1];
|
|
456
456
|
|
|
457
457
|
var _useState11 = useState(true),
|
|
458
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
459
|
-
|
|
460
|
-
setPreviewAd = _useState12[1];
|
|
458
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
459
|
+
_useState12[0];
|
|
460
|
+
var setPreviewAd = _useState12[1];
|
|
461
461
|
|
|
462
462
|
useEffect(function () {
|
|
463
463
|
var path = window && window.location && window.location.search;
|
|
@@ -478,7 +478,7 @@ var Article = function Article(props) {
|
|
|
478
478
|
};
|
|
479
479
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
480
480
|
if (biography) {
|
|
481
|
-
return
|
|
481
|
+
return React.createElement(BlockContent, _extends({
|
|
482
482
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
483
483
|
blocks: [biography]
|
|
484
484
|
}, client.config()));
|
|
@@ -488,9 +488,9 @@ var Article = function Article(props) {
|
|
|
488
488
|
var url = article.url.current;
|
|
489
489
|
|
|
490
490
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
491
|
-
return
|
|
491
|
+
return React.createElement(ISIContent, null);
|
|
492
492
|
} else if (nationalPage === url && ISIContent) {
|
|
493
|
-
return
|
|
493
|
+
return React.createElement(ISIContent, { national: true });
|
|
494
494
|
}
|
|
495
495
|
return null;
|
|
496
496
|
};
|
|
@@ -521,19 +521,19 @@ var Article = function Article(props) {
|
|
|
521
521
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
522
522
|
}
|
|
523
523
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
524
|
-
return
|
|
524
|
+
return React.createElement(
|
|
525
525
|
'div',
|
|
526
526
|
null,
|
|
527
527
|
relatedLinks.map(function (relatedLink, index) {
|
|
528
|
-
return
|
|
528
|
+
return React.createElement(
|
|
529
529
|
'span',
|
|
530
530
|
{ key: index, className: 'related-link' },
|
|
531
|
-
|
|
531
|
+
React.createElement(
|
|
532
532
|
'a',
|
|
533
533
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
534
534
|
relatedLink.label
|
|
535
535
|
),
|
|
536
|
-
|
|
536
|
+
React.createElement(
|
|
537
537
|
'style',
|
|
538
538
|
{ jsx: 'true' },
|
|
539
539
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -548,23 +548,23 @@ var Article = function Article(props) {
|
|
|
548
548
|
};
|
|
549
549
|
|
|
550
550
|
var RelatedContent = function RelatedContent() {
|
|
551
|
-
return
|
|
551
|
+
return React.createElement(
|
|
552
552
|
'section',
|
|
553
553
|
{ id: 'related-content-section', className: 'my-1' },
|
|
554
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
554
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
555
555
|
'p',
|
|
556
556
|
{ className: 'mb-0' },
|
|
557
|
-
|
|
557
|
+
React.createElement(
|
|
558
558
|
'b',
|
|
559
559
|
null,
|
|
560
560
|
'Related Content:'
|
|
561
561
|
)
|
|
562
562
|
),
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
React.createElement(RelevantTopics, null),
|
|
564
|
+
React.createElement(
|
|
565
565
|
'div',
|
|
566
566
|
{ className: 'pt-2' },
|
|
567
|
-
|
|
567
|
+
React.createElement(RelatedArticle, {
|
|
568
568
|
articles: article.relatedArticle,
|
|
569
569
|
client: client,
|
|
570
570
|
fallbackImage: props.Settings.logo,
|
|
@@ -575,28 +575,28 @@ var Article = function Article(props) {
|
|
|
575
575
|
};
|
|
576
576
|
|
|
577
577
|
var form = function form() {
|
|
578
|
-
return
|
|
579
|
-
|
|
578
|
+
return React.createElement(
|
|
579
|
+
React.Fragment,
|
|
580
580
|
null,
|
|
581
|
-
|
|
581
|
+
React.createElement(
|
|
582
582
|
Head,
|
|
583
583
|
null,
|
|
584
|
-
|
|
584
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
585
585
|
),
|
|
586
|
-
|
|
586
|
+
React.createElement(
|
|
587
587
|
'div',
|
|
588
588
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
589
|
-
|
|
589
|
+
React.createElement(
|
|
590
590
|
Form,
|
|
591
591
|
{
|
|
592
592
|
inline: true,
|
|
593
593
|
onSubmit: function onSubmit(e) {
|
|
594
594
|
e.preventDefault();
|
|
595
595
|
} },
|
|
596
|
-
|
|
596
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
597
597
|
return setPasswordKey(e.target.value);
|
|
598
598
|
}, placeholder: 'Password' }),
|
|
599
|
-
|
|
599
|
+
React.createElement(
|
|
600
600
|
Button,
|
|
601
601
|
{
|
|
602
602
|
variant: 'primary',
|
|
@@ -643,30 +643,30 @@ var Article = function Article(props) {
|
|
|
643
643
|
setContextualADFlag(true);
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
return
|
|
647
|
-
|
|
646
|
+
return React.createElement(
|
|
647
|
+
React.Fragment,
|
|
648
648
|
null,
|
|
649
|
-
|
|
649
|
+
React.createElement(BlockContent, _extends({
|
|
650
650
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
651
651
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
652
652
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
653
653
|
}, client.config())),
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
655
|
+
React.createElement(
|
|
656
656
|
'div',
|
|
657
657
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
658
|
-
|
|
658
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
659
659
|
refreshFlag: refreshFlag
|
|
660
660
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
661
661
|
}))
|
|
662
662
|
),
|
|
663
|
-
|
|
664
|
-
|
|
663
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
664
|
+
React.createElement(
|
|
665
665
|
'div',
|
|
666
666
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
667
|
-
|
|
667
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
668
668
|
),
|
|
669
|
-
|
|
669
|
+
React.createElement(BlockContent, _extends({
|
|
670
670
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
671
671
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
672
672
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -689,25 +689,25 @@ var Article = function Article(props) {
|
|
|
689
689
|
});
|
|
690
690
|
var _selectedIndex = indexes[1] + 1;
|
|
691
691
|
|
|
692
|
-
return
|
|
693
|
-
|
|
692
|
+
return React.createElement(
|
|
693
|
+
React.Fragment,
|
|
694
694
|
null,
|
|
695
|
-
|
|
695
|
+
React.createElement(BlockContent, _extends({
|
|
696
696
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
697
697
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
698
698
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
699
699
|
}, client.config())),
|
|
700
|
-
contextualADFlag &&
|
|
701
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
700
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
701
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
702
702
|
'div',
|
|
703
703
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
704
|
-
|
|
704
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
705
705
|
refreshFlag: refreshFlag
|
|
706
706
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
707
707
|
}))
|
|
708
708
|
),
|
|
709
|
-
contextualADFlag &&
|
|
710
|
-
|
|
709
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
710
|
+
React.createElement(BlockContent, _extends({
|
|
711
711
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
712
712
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
713
713
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -735,28 +735,28 @@ var Article = function Article(props) {
|
|
|
735
735
|
}
|
|
736
736
|
};
|
|
737
737
|
|
|
738
|
-
return
|
|
739
|
-
|
|
738
|
+
return React.createElement(
|
|
739
|
+
React.Fragment,
|
|
740
740
|
null,
|
|
741
|
-
|
|
741
|
+
React.createElement(BlockContent, _extends({
|
|
742
742
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
743
743
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
744
744
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
745
745
|
}, client.config())),
|
|
746
|
-
|
|
747
|
-
|
|
746
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
747
|
+
React.createElement(
|
|
748
748
|
'div',
|
|
749
749
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
750
|
-
|
|
750
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
751
751
|
),
|
|
752
|
-
|
|
752
|
+
React.createElement(BlockContent, _extends({
|
|
753
753
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
754
754
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
755
755
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
756
756
|
}, client.config()))
|
|
757
757
|
);
|
|
758
758
|
} else {
|
|
759
|
-
return
|
|
759
|
+
return React.createElement(BlockContent, _extends({
|
|
760
760
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting, article),
|
|
761
761
|
blocks: articleBody,
|
|
762
762
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -769,8 +769,8 @@ var Article = function Article(props) {
|
|
|
769
769
|
shareSubject = shareOptions.shareSubject,
|
|
770
770
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
771
771
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
772
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
773
|
-
|
|
772
|
+
shareBaseUrl = shareOptions.shareBaseUrl;
|
|
773
|
+
shareOptions.shareSiteTitle;
|
|
774
774
|
|
|
775
775
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
776
776
|
var shareTitle = article.title;
|
|
@@ -794,10 +794,10 @@ var Article = function Article(props) {
|
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
return
|
|
798
|
-
|
|
797
|
+
return React.createElement(
|
|
798
|
+
React.Fragment,
|
|
799
799
|
null,
|
|
800
|
-
|
|
800
|
+
React.createElement(
|
|
801
801
|
InscreenSensor,
|
|
802
802
|
{
|
|
803
803
|
offSetTop: 120,
|
|
@@ -810,49 +810,49 @@ var Article = function Article(props) {
|
|
|
810
810
|
setVisibleFlag(true);
|
|
811
811
|
}
|
|
812
812
|
} },
|
|
813
|
-
|
|
813
|
+
React.createElement(
|
|
814
814
|
'div',
|
|
815
815
|
null,
|
|
816
|
-
|
|
816
|
+
React.createElement(
|
|
817
817
|
'div',
|
|
818
818
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
819
|
-
|
|
819
|
+
React.createElement(
|
|
820
820
|
'h1',
|
|
821
821
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
822
822
|
title
|
|
823
823
|
),
|
|
824
|
-
|
|
824
|
+
React.createElement(
|
|
825
825
|
'div',
|
|
826
826
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
827
|
-
|
|
827
|
+
React.createElement(
|
|
828
828
|
'style',
|
|
829
829
|
{ jsx: 'true' },
|
|
830
830
|
'\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 '
|
|
831
831
|
),
|
|
832
|
-
|
|
832
|
+
React.createElement(
|
|
833
833
|
'div',
|
|
834
834
|
{ className: 'left-wrap' },
|
|
835
|
-
showPublished &&
|
|
835
|
+
showPublished && React.createElement(
|
|
836
836
|
'div',
|
|
837
837
|
null,
|
|
838
838
|
moment(published).format('LL')
|
|
839
839
|
)
|
|
840
840
|
/* Show Published date */
|
|
841
841
|
,
|
|
842
|
-
|
|
842
|
+
React.createElement(
|
|
843
843
|
'div',
|
|
844
844
|
{ className: 'mb-3' },
|
|
845
845
|
authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
846
|
-
return
|
|
846
|
+
return React.createElement(
|
|
847
847
|
'span',
|
|
848
848
|
{ key: index },
|
|
849
849
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
850
850
|
);
|
|
851
851
|
}),
|
|
852
|
-
|
|
852
|
+
React.createElement(
|
|
853
853
|
'div',
|
|
854
854
|
null,
|
|
855
|
-
source &&
|
|
855
|
+
source && React.createElement(
|
|
856
856
|
'p',
|
|
857
857
|
{
|
|
858
858
|
style: {
|
|
@@ -867,13 +867,13 @@ var Article = function Article(props) {
|
|
|
867
867
|
source
|
|
868
868
|
)
|
|
869
869
|
),
|
|
870
|
-
issue &&
|
|
870
|
+
issue && React.createElement(
|
|
871
871
|
'div',
|
|
872
872
|
{ className: 'volume-issue' },
|
|
873
|
-
issue.publication && issue.publication.name &&
|
|
873
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
874
874
|
'span',
|
|
875
875
|
{ className: 'mb-0' },
|
|
876
|
-
|
|
876
|
+
React.createElement(
|
|
877
877
|
'b',
|
|
878
878
|
null,
|
|
879
879
|
issue.publication.name
|
|
@@ -881,34 +881,34 @@ var Article = function Article(props) {
|
|
|
881
881
|
',',
|
|
882
882
|
' '
|
|
883
883
|
),
|
|
884
|
-
issue.name &&
|
|
884
|
+
issue.name && React.createElement(
|
|
885
885
|
'span',
|
|
886
886
|
{ className: 'mb-0' },
|
|
887
887
|
issue.name,
|
|
888
888
|
', '
|
|
889
889
|
),
|
|
890
|
-
issue.volume &&
|
|
890
|
+
issue.volume && React.createElement(
|
|
891
891
|
'span',
|
|
892
892
|
null,
|
|
893
893
|
'Volume ' + issue.volume,
|
|
894
894
|
','
|
|
895
895
|
),
|
|
896
|
-
issue.issueNumber &&
|
|
896
|
+
issue.issueNumber && React.createElement(
|
|
897
897
|
'span',
|
|
898
898
|
null,
|
|
899
899
|
' Issue ' + issue.issueNumber
|
|
900
900
|
)
|
|
901
901
|
),
|
|
902
|
-
pageNumber &&
|
|
902
|
+
pageNumber && React.createElement(
|
|
903
903
|
'div',
|
|
904
904
|
{ className: 'article-pageNumber' },
|
|
905
905
|
'Page Number: ' + pageNumber
|
|
906
906
|
)
|
|
907
907
|
),
|
|
908
|
-
|
|
908
|
+
React.createElement(
|
|
909
909
|
'p',
|
|
910
910
|
null,
|
|
911
|
-
|
|
911
|
+
React.createElement(SocialShare, {
|
|
912
912
|
shareUrl: shareUrl,
|
|
913
913
|
shareTitle: shareTitle,
|
|
914
914
|
shareVia: shareVia,
|
|
@@ -924,27 +924,27 @@ var Article = function Article(props) {
|
|
|
924
924
|
})
|
|
925
925
|
)
|
|
926
926
|
),
|
|
927
|
-
|
|
927
|
+
React.createElement(
|
|
928
928
|
'div',
|
|
929
929
|
null,
|
|
930
|
-
|
|
930
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
931
931
|
)
|
|
932
932
|
),
|
|
933
|
-
summary &&
|
|
933
|
+
summary && React.createElement(
|
|
934
934
|
'p',
|
|
935
935
|
null,
|
|
936
|
-
|
|
936
|
+
React.createElement(
|
|
937
937
|
'em',
|
|
938
938
|
null,
|
|
939
939
|
summary
|
|
940
940
|
)
|
|
941
941
|
),
|
|
942
|
-
|
|
942
|
+
React.createElement(
|
|
943
943
|
'div',
|
|
944
944
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
945
|
-
|
|
945
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
946
946
|
if (index === 0) {
|
|
947
|
-
return
|
|
947
|
+
return React.createElement(
|
|
948
948
|
'div',
|
|
949
949
|
{
|
|
950
950
|
key: index,
|
|
@@ -961,24 +961,24 @@ var Article = function Article(props) {
|
|
|
961
961
|
}
|
|
962
962
|
})
|
|
963
963
|
),
|
|
964
|
-
|
|
964
|
+
React.createElement(
|
|
965
965
|
'div',
|
|
966
966
|
{ className: 'block-content mt-3' },
|
|
967
967
|
renderBlockContent(article),
|
|
968
|
-
|
|
969
|
-
|
|
968
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
969
|
+
React.createElement(
|
|
970
970
|
'noscript',
|
|
971
971
|
null,
|
|
972
|
-
|
|
972
|
+
React.createElement(
|
|
973
973
|
'div',
|
|
974
974
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
975
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
975
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
976
976
|
'a',
|
|
977
977
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
978
978
|
'Previous ',
|
|
979
979
|
props.article.seriesDetail.type
|
|
980
980
|
),
|
|
981
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
981
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
982
982
|
'a',
|
|
983
983
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
984
984
|
'Next ',
|
|
@@ -986,44 +986,44 @@ var Article = function Article(props) {
|
|
|
986
986
|
)
|
|
987
987
|
)
|
|
988
988
|
),
|
|
989
|
-
issue && issue.url &&
|
|
989
|
+
issue && issue.url && React.createElement(
|
|
990
990
|
'a',
|
|
991
991
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
992
|
-
|
|
992
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
993
993
|
'Download Issue : ',
|
|
994
994
|
issue.name
|
|
995
995
|
)
|
|
996
996
|
),
|
|
997
|
-
|
|
998
|
-
showRelatedArticles && !showIsi &&
|
|
997
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
998
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null)
|
|
999
999
|
),
|
|
1000
1000
|
renderIsiContent(props.article)
|
|
1001
1001
|
),
|
|
1002
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1002
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1003
1003
|
ISI,
|
|
1004
1004
|
null,
|
|
1005
|
-
|
|
1005
|
+
React.createElement(BlockContent, {
|
|
1006
1006
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1007
1007
|
blocks: isi
|
|
1008
1008
|
})
|
|
1009
1009
|
)
|
|
1010
1010
|
),
|
|
1011
|
-
|
|
1011
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1012
1012
|
if (index > 0) {
|
|
1013
|
-
return
|
|
1013
|
+
return React.createElement(
|
|
1014
1014
|
'div',
|
|
1015
1015
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1016
1016
|
ad.component
|
|
1017
1017
|
);
|
|
1018
1018
|
}
|
|
1019
1019
|
}),
|
|
1020
|
-
|
|
1020
|
+
React.createElement(
|
|
1021
1021
|
'noscript',
|
|
1022
1022
|
null,
|
|
1023
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1023
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1024
1024
|
'div',
|
|
1025
1025
|
{ style: { textAlign: 'center' } },
|
|
1026
|
-
|
|
1026
|
+
React.createElement(
|
|
1027
1027
|
'a',
|
|
1028
1028
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1029
1029
|
'Related Article ',
|
|
@@ -1031,7 +1031,7 @@ var Article = function Article(props) {
|
|
|
1031
1031
|
)
|
|
1032
1032
|
)
|
|
1033
1033
|
),
|
|
1034
|
-
|
|
1034
|
+
React.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1035
1035
|
);
|
|
1036
1036
|
};
|
|
1037
1037
|
|
|
@@ -1053,9 +1053,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1053
1053
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1054
1054
|
Ads = props.Ads,
|
|
1055
1055
|
_props$maxListLength = props.maxListLength,
|
|
1056
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1057
|
-
|
|
1058
|
-
_props$cpModification = props.cpModificationRequired,
|
|
1056
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength;
|
|
1057
|
+
props.sponsoredTaxonomies;
|
|
1058
|
+
var _props$cpModification = props.cpModificationRequired,
|
|
1059
1059
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1060
1060
|
_props$authorPrefix = props.authorPrefix,
|
|
1061
1061
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
@@ -1081,7 +1081,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1081
1081
|
});
|
|
1082
1082
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1083
1083
|
|
|
1084
|
-
if (!
|
|
1084
|
+
if (!main_40) {
|
|
1085
1085
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1086
1086
|
if (window.googletag && googletag.pubadsReady) {
|
|
1087
1087
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1099,7 +1099,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
1101
|
//Refresh leaderboard ad on mobile
|
|
1102
|
-
if (
|
|
1102
|
+
if (main_40) {
|
|
1103
1103
|
var leaderboardSlotId = '';
|
|
1104
1104
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1105
1105
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1283,11 +1283,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
};
|
|
1285
1285
|
|
|
1286
|
-
return
|
|
1286
|
+
return React.createElement(
|
|
1287
1287
|
InfiniteScroll,
|
|
1288
1288
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1289
1289
|
queueData.map(function (article, index) {
|
|
1290
|
-
return
|
|
1290
|
+
return React.createElement(Article, _extends({
|
|
1291
1291
|
key: index
|
|
1292
1292
|
}, props, {
|
|
1293
1293
|
onChangeArticle: onChangeArticle,
|
|
@@ -1309,9 +1309,9 @@ var View = function View(props) {
|
|
|
1309
1309
|
var shareOptions = props.shareOptions,
|
|
1310
1310
|
article = props.article,
|
|
1311
1311
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1312
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1313
|
-
|
|
1314
|
-
Ads = props.Ads,
|
|
1312
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag;
|
|
1313
|
+
props.sponsoredTaxonomies;
|
|
1314
|
+
var Ads = props.Ads,
|
|
1315
1315
|
setCustomDimensions = props.setCustomDimensions,
|
|
1316
1316
|
statusCode = props.statusCode,
|
|
1317
1317
|
prevUrl = props.prevUrl,
|
|
@@ -1321,13 +1321,12 @@ var View = function View(props) {
|
|
|
1321
1321
|
_props$canonicalTag = props.canonicalTag,
|
|
1322
1322
|
canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag,
|
|
1323
1323
|
_props$infiniteScroll = props.infiniteScrollFlag,
|
|
1324
|
-
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll
|
|
1325
|
-
rootDocumentGroup = props.rootDocumentGroup;
|
|
1324
|
+
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1326
1325
|
var _props$article = props.article,
|
|
1327
1326
|
_props$article$passwo = _props$article.passwordLock,
|
|
1328
|
-
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo
|
|
1329
|
-
|
|
1330
|
-
title = _props$article.title,
|
|
1327
|
+
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo;
|
|
1328
|
+
_props$article.description;
|
|
1329
|
+
var title = _props$article.title,
|
|
1331
1330
|
seriesShareOptions = _props$article.seriesShareOptions;
|
|
1332
1331
|
|
|
1333
1332
|
var _useState = useState(0),
|
|
@@ -1384,7 +1383,6 @@ var View = function View(props) {
|
|
|
1384
1383
|
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi;
|
|
1385
1384
|
|
|
1386
1385
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1387
|
-
description = null;
|
|
1388
1386
|
title = null;
|
|
1389
1387
|
}
|
|
1390
1388
|
|
|
@@ -1414,74 +1412,74 @@ var View = function View(props) {
|
|
|
1414
1412
|
setCurrentPage(0);
|
|
1415
1413
|
}
|
|
1416
1414
|
}, [router]);
|
|
1417
|
-
return
|
|
1418
|
-
|
|
1415
|
+
return React.createElement(
|
|
1416
|
+
React.Fragment,
|
|
1419
1417
|
null,
|
|
1420
|
-
|
|
1418
|
+
React.createElement(
|
|
1421
1419
|
Head,
|
|
1422
1420
|
null,
|
|
1423
|
-
|
|
1421
|
+
React.createElement(
|
|
1424
1422
|
'title',
|
|
1425
1423
|
{ key: 'title' },
|
|
1426
1424
|
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 : '') + ' | ' + props.cache.siteSettingCache.name
|
|
1427
1425
|
),
|
|
1428
|
-
shareOptions.shareSummary &&
|
|
1426
|
+
shareOptions.shareSummary && React.createElement('meta', {
|
|
1429
1427
|
name: 'description',
|
|
1430
1428
|
key: 'description',
|
|
1431
1429
|
content: seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : article.seo && article.seo.meta_description ? '' + article.seo.meta_description + (currentPage > 0 ? ' | Page ' + currentPage : '') : shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? 'Page ' + currentPage : '') }),
|
|
1432
|
-
|
|
1433
|
-
passwordLock &&
|
|
1434
|
-
|
|
1430
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1431
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1432
|
+
React.createElement('meta', {
|
|
1435
1433
|
property: 'og:url',
|
|
1436
1434
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1437
1435
|
key: 'og:url'
|
|
1438
1436
|
}),
|
|
1439
|
-
|
|
1437
|
+
React.createElement('meta', {
|
|
1440
1438
|
property: 'og:title',
|
|
1441
1439
|
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 : ''),
|
|
1442
1440
|
key: 'og:title'
|
|
1443
1441
|
}),
|
|
1444
|
-
|
|
1442
|
+
React.createElement('meta', {
|
|
1445
1443
|
property: 'og:image',
|
|
1446
1444
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1447
1445
|
key: 'og:image'
|
|
1448
1446
|
}),
|
|
1449
|
-
|
|
1450
|
-
|
|
1447
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1448
|
+
React.createElement('meta', {
|
|
1451
1449
|
property: 'og:description',
|
|
1452
1450
|
content: seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1453
1451
|
key: 'og:description'
|
|
1454
1452
|
}),
|
|
1455
|
-
|
|
1456
|
-
|
|
1453
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1454
|
+
React.createElement('meta', {
|
|
1457
1455
|
name: 'twitter:title',
|
|
1458
1456
|
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 : ''),
|
|
1459
1457
|
key: 'twitter:title'
|
|
1460
1458
|
}),
|
|
1461
|
-
|
|
1459
|
+
React.createElement('meta', {
|
|
1462
1460
|
name: 'twitter:image',
|
|
1463
1461
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1464
1462
|
key: 'twitter:image'
|
|
1465
1463
|
}),
|
|
1466
|
-
|
|
1467
|
-
|
|
1464
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1465
|
+
React.createElement('meta', {
|
|
1468
1466
|
name: 'twitter:description',
|
|
1469
1467
|
content: seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1470
1468
|
key: 'twitter:description'
|
|
1471
1469
|
}),
|
|
1472
|
-
canonicalTag &&
|
|
1470
|
+
canonicalTag && React.createElement('link', {
|
|
1473
1471
|
rel: 'canonical',
|
|
1474
1472
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1475
1473
|
key: 'canonical'
|
|
1476
1474
|
}),
|
|
1477
|
-
|
|
1475
|
+
React.createElement(
|
|
1478
1476
|
'noscript',
|
|
1479
1477
|
null,
|
|
1480
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1481
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1478
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1479
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1482
1480
|
)
|
|
1483
1481
|
),
|
|
1484
|
-
!needInfiniteScroll ?
|
|
1482
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1485
1483
|
infiniteScroll: true,
|
|
1486
1484
|
showRelatedArticles: showRelatedArticles,
|
|
1487
1485
|
canonicalTag: canonicalTag,
|
|
@@ -1493,90 +1491,22 @@ var View = function View(props) {
|
|
|
1493
1491
|
);
|
|
1494
1492
|
};
|
|
1495
1493
|
|
|
1496
|
-
//
|
|
1494
|
+
//This should be called in /view/[url] getInitialProps to fetch the article data and related articles. This will also set the sponsoredFlag to true if any taxonomies have disabled ads.
|
|
1497
1495
|
View.returnGetInitialProps = function () {
|
|
1498
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function
|
|
1496
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(url, prevUrl, seriesVid, client, sao) {
|
|
1499
1497
|
var context = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
1500
1498
|
|
|
1501
|
-
var article,
|
|
1499
|
+
var article, relatedArticleQuery, statusCode, _context$query$series, seriesArticle, sponsoredFlag;
|
|
1502
1500
|
|
|
1503
|
-
return regenerator.wrap(function
|
|
1501
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
1504
1502
|
while (1) {
|
|
1505
|
-
switch (
|
|
1503
|
+
switch (_context.prev = _context.next) {
|
|
1506
1504
|
case 0:
|
|
1507
|
-
|
|
1505
|
+
_context.next = 2;
|
|
1508
1506
|
return client.fetch(getQuery('article'), { url: url });
|
|
1509
1507
|
|
|
1510
1508
|
case 2:
|
|
1511
|
-
article =
|
|
1512
|
-
|
|
1513
|
-
// Recursive Function to get root document group
|
|
1514
|
-
getRootDoc = function () {
|
|
1515
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(id) {
|
|
1516
|
-
var query, rootDoc;
|
|
1517
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
1518
|
-
while (1) {
|
|
1519
|
-
switch (_context.prev = _context.next) {
|
|
1520
|
-
case 0:
|
|
1521
|
-
query = '*[_type == \'documentGroup\' && !(_id in path("drafts.**")) && _id == \'' + id + '\'][0]';
|
|
1522
|
-
_context.next = 3;
|
|
1523
|
-
return client.fetch(query);
|
|
1524
|
-
|
|
1525
|
-
case 3:
|
|
1526
|
-
rootDoc = _context.sent;
|
|
1527
|
-
|
|
1528
|
-
if (!(rootDoc && rootDoc.parent)) {
|
|
1529
|
-
_context.next = 9;
|
|
1530
|
-
break;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
_context.next = 7;
|
|
1534
|
-
return getRootDoc(rootDoc.parent._ref);
|
|
1535
|
-
|
|
1536
|
-
case 7:
|
|
1537
|
-
_context.next = 10;
|
|
1538
|
-
break;
|
|
1539
|
-
|
|
1540
|
-
case 9:
|
|
1541
|
-
article.rootDocumentGroup = rootDoc.identifier.current;
|
|
1542
|
-
|
|
1543
|
-
case 10:
|
|
1544
|
-
case 'end':
|
|
1545
|
-
return _context.stop();
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
}, _callee, _this$1);
|
|
1549
|
-
}));
|
|
1550
|
-
|
|
1551
|
-
return function getRootDoc(_x7) {
|
|
1552
|
-
return _ref2.apply(this, arguments);
|
|
1553
|
-
};
|
|
1554
|
-
}();
|
|
1555
|
-
|
|
1556
|
-
// Calling recursive function if parentDocumentGroup has id
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
if (!(article && article.parentDocumentGroup && article.parentDocumentGroup._id)) {
|
|
1560
|
-
_context2.next = 11;
|
|
1561
|
-
break;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
if (!article.parentDocumentGroup.parent) {
|
|
1565
|
-
_context2.next = 10;
|
|
1566
|
-
break;
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
_context2.next = 8;
|
|
1570
|
-
return getRootDoc(article.parentDocumentGroup.parent._ref);
|
|
1571
|
-
|
|
1572
|
-
case 8:
|
|
1573
|
-
_context2.next = 11;
|
|
1574
|
-
break;
|
|
1575
|
-
|
|
1576
|
-
case 10:
|
|
1577
|
-
article.rootDocumentGroup = article.parentDocumentGroup.identifier.current;
|
|
1578
|
-
|
|
1579
|
-
case 11:
|
|
1509
|
+
article = _context.sent;
|
|
1580
1510
|
relatedArticleQuery = getQuery('related');
|
|
1581
1511
|
|
|
1582
1512
|
article.seriesDetail = getSeriesDetail(article, seriesVid);
|
|
@@ -1633,28 +1563,28 @@ View.returnGetInitialProps = function () {
|
|
|
1633
1563
|
}
|
|
1634
1564
|
|
|
1635
1565
|
if (!article.disableRelatedContent) {
|
|
1636
|
-
|
|
1566
|
+
_context.next = 16;
|
|
1637
1567
|
break;
|
|
1638
1568
|
}
|
|
1639
1569
|
|
|
1640
1570
|
article.relatedArticle = null;
|
|
1641
|
-
|
|
1571
|
+
_context.next = 20;
|
|
1642
1572
|
break;
|
|
1643
1573
|
|
|
1644
|
-
case
|
|
1574
|
+
case 16:
|
|
1645
1575
|
if (!article) {
|
|
1646
|
-
|
|
1576
|
+
_context.next = 20;
|
|
1647
1577
|
break;
|
|
1648
1578
|
}
|
|
1649
1579
|
|
|
1650
|
-
|
|
1580
|
+
_context.next = 19;
|
|
1651
1581
|
return getRelatedArticle(context, client, article, prevUrl, '0..2');
|
|
1652
1582
|
|
|
1653
|
-
case
|
|
1654
|
-
article.relatedArticle =
|
|
1583
|
+
case 19:
|
|
1584
|
+
article.relatedArticle = _context.sent;
|
|
1655
1585
|
|
|
1656
|
-
case
|
|
1657
|
-
return
|
|
1586
|
+
case 20:
|
|
1587
|
+
return _context.abrupt('return', {
|
|
1658
1588
|
url: url,
|
|
1659
1589
|
sao: sao,
|
|
1660
1590
|
statusCode: statusCode,
|
|
@@ -1664,12 +1594,12 @@ View.returnGetInitialProps = function () {
|
|
|
1664
1594
|
sponsoredFlag: sponsoredFlag
|
|
1665
1595
|
});
|
|
1666
1596
|
|
|
1667
|
-
case
|
|
1597
|
+
case 21:
|
|
1668
1598
|
case 'end':
|
|
1669
|
-
return
|
|
1599
|
+
return _context.stop();
|
|
1670
1600
|
}
|
|
1671
1601
|
}
|
|
1672
|
-
},
|
|
1602
|
+
}, _callee, _this$1);
|
|
1673
1603
|
}));
|
|
1674
1604
|
|
|
1675
1605
|
return function (_x, _x2, _x3, _x4, _x5) {
|