@mjhls/mjh-framework 1.0.782-beta.0 → 1.0.782-dev4485
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 +170 -170
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +12 -10
- package/dist/cjs/AD300x250x600.js +12 -10
- package/dist/cjs/AD728x90.js +13 -11
- package/dist/cjs/ADFloatingFooter.js +14 -12
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +14 -12
- package/dist/cjs/{ADInfeed-5b042ade.js → ADInfeed-de972407.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +14 -12
- package/dist/cjs/ADSponsoredResources.js +14 -12
- package/dist/cjs/ADWebcast.js +14 -12
- package/dist/cjs/ADWelcome.js +18 -16
- package/dist/cjs/{ADlgInfeed-e92b6f9f.js → ADlgInfeed-6ab92047.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +16 -14
- package/dist/cjs/AdSlotsProvider.js +10 -8
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +11 -10
- package/dist/cjs/ArticleProgramLandingPage.js +26 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -20
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +194 -140
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/Beam.js +2 -1
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +66 -65
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +24 -20
- package/dist/cjs/Column3.js +37 -33
- package/dist/cjs/ConferenceArticleCard.js +35 -34
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +87 -82
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-b807d8fa.js → Dfp-c226037e.js} +21 -20
- package/dist/cjs/EventsDeck.js +140 -133
- package/dist/cjs/ExternalResources.js +49 -47
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +155 -150
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +131 -125
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +39 -37
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +50 -48
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +24 -21
- package/dist/cjs/MasterDeck.js +60 -58
- package/dist/cjs/MediaSeriesLanding.js +27 -24
- package/dist/cjs/NavDvm.js +70 -64
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +133 -127
- package/dist/cjs/NavNative.js +127 -118
- package/dist/cjs/NavNormal.js +43 -37
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +73 -71
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +22 -20
- package/dist/cjs/PubToc.js +10 -8
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +129 -213
- package/dist/cjs/QueueDeckExpanded.js +272 -271
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +50 -49
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/Segment.js +2 -1
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-5e6108e0.js} +40 -39
- package/dist/cjs/SideFooter.js +28 -26
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-fb784cc3.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +24 -22
- package/dist/cjs/TemplateNormal.js +38 -36
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +46 -41
- package/dist/cjs/VideoSeriesCard.js +25 -24
- package/dist/cjs/VideoSeriesFilter.js +11 -10
- package/dist/cjs/VideoSeriesLandingPage.js +27 -25
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +222 -223
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +56 -55
- package/dist/cjs/_set-species-f92c67c5.js +57 -0
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-533d476a.js} +6 -54
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-4ba0d3d5.js} +6 -5
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +133 -68
- package/dist/cjs/getRootDocGroup.js +2 -1
- package/dist/cjs/getSerializers.js +13 -12
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-7c425fbf.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-76417d82.js → index-2410ec98.js} +859 -836
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-8bf6c863.js → index-e08f00ce.js} +9 -8
- package/dist/cjs/{index.es-9110add6.js → index.es-13533f24.js} +11 -8
- 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-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +61 -57
- package/dist/cjs/{inherits-c9f99d47.js → inherits-87492b40.js} +1 -1
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-11ec04d2.js} +85 -53
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +9 -8
- package/dist/esm/AD300x250x600.js +9 -8
- package/dist/esm/AD728x90.js +10 -9
- package/dist/esm/ADFloatingFooter.js +11 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +11 -10
- package/dist/esm/{ADInfeed-eb7bdd41.js → ADInfeed-1cba8312.js} +5 -5
- package/dist/esm/ADSkyscraper.js +11 -10
- package/dist/esm/ADSponsoredResources.js +11 -10
- package/dist/esm/ADWebcast.js +11 -10
- package/dist/esm/ADWelcome.js +15 -14
- package/dist/esm/{ADlgInfeed-f2ac31d1.js → ADlgInfeed-fe7ad144.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +7 -6
- package/dist/esm/AdSlotsProvider.js +7 -6
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +22 -21
- package/dist/esm/ArticleSeriesLandingPage.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +171 -121
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
- package/dist/esm/Beam.js +2 -1
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +63 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +14 -13
- package/dist/esm/Column3.js +26 -25
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +64 -63
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-ebc4b22f.js → Dfp-c06b41fc.js} +10 -10
- package/dist/esm/EventsDeck.js +83 -83
- package/dist/esm/ExternalResources.js +41 -40
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +113 -112
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +98 -97
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +36 -35
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +41 -41
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +47 -46
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +18 -17
- package/dist/esm/MasterDeck.js +53 -52
- package/dist/esm/MediaSeriesLanding.js +17 -16
- package/dist/esm/NavDvm.js +45 -44
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +102 -101
- package/dist/esm/NavNative.js +89 -88
- package/dist/esm/NavNormal.js +23 -22
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +68 -67
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -18
- package/dist/esm/PubToc.js +7 -6
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +88 -176
- package/dist/esm/QueueDeckExpanded.js +253 -252
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +2 -1
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-19a24623.js} +29 -29
- package/dist/esm/SideFooter.js +23 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-2a4a7398.js} +25 -25
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TaxonomyDescription.js +18 -17
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +29 -28
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +8 -7
- package/dist/esm/VideoSeriesLandingPage.js +19 -18
- package/dist/esm/VideoSeriesListing.js +50 -50
- package/dist/esm/View.js +198 -203
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/_set-species-3f8319f5.js +52 -0
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-502f13b4.js} +5 -49
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e1c6b0f2.js} +3 -3
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +128 -63
- package/dist/esm/getRootDocGroup.js +2 -1
- package/dist/esm/getSerializers.js +13 -12
- package/dist/esm/{getTargeting-7211f12c.js → getTargeting-f22b76f5.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-a9e53f80.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-c1374f98.js → index-f41e3fe9.js} +790 -774
- package/dist/esm/{index.es-29c1cef5.js → index.es-7dda2f0a.js} +8 -6
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.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 +45 -44
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-0d8cda6e.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-aef58dbc.js} +81 -50
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/View.js
CHANGED
|
@@ -8,44 +8,45 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
|
-
import
|
|
17
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import 'react-bootstrap/Row';
|
|
20
20
|
import 'react-bootstrap/Col';
|
|
21
|
-
import { m as moment } from './moment-
|
|
21
|
+
import { m as moment } from './moment-12415288.js';
|
|
22
22
|
import { useRouter } from 'next/router';
|
|
23
23
|
import './isSymbol-1981418f.js';
|
|
24
24
|
import './debounce-9207d8ee.js';
|
|
25
25
|
import './toNumber-2f7a84cd.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
29
|
-
import './index-
|
|
30
|
-
import './index-
|
|
31
|
-
import { m as
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
29
|
+
import './index-51a80699.js';
|
|
30
|
+
import './index-c5fd0af5.js';
|
|
31
|
+
import { m as main_39 } from './main-aef58dbc.js';
|
|
32
32
|
import './entities-7cc3bf45.js';
|
|
33
33
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
34
34
|
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
35
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
35
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
|
|
36
|
+
import './_set-species-3f8319f5.js';
|
|
36
37
|
import './Segment.js';
|
|
37
38
|
import './Beam.js';
|
|
38
39
|
import DFPAdSlot from './AdSlot.js';
|
|
39
|
-
import { B as BlockContent } from './BlockContent-
|
|
40
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
40
41
|
import './index-c7e2ac95.js';
|
|
41
42
|
import './smoothscroll-0cd4c7a6.js';
|
|
42
43
|
import './GroupDeck.js';
|
|
43
44
|
import 'react-bootstrap';
|
|
44
45
|
import './iconBase-602d52fe.js';
|
|
45
|
-
import './index.esm-
|
|
46
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
46
|
+
import './index.esm-3fdda599.js';
|
|
47
|
+
import { r as renderAuthor, g as getSerializers } from './index-f41e3fe9.js';
|
|
47
48
|
import './util-7700fc59.js';
|
|
48
|
-
import './brightcove-react-player-loader.es-
|
|
49
|
+
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
49
50
|
import Head from 'next/head';
|
|
50
51
|
import 'react-share';
|
|
51
52
|
import SocialShare from './SocialShare.js';
|
|
@@ -57,13 +58,13 @@ import Form from 'react-bootstrap/Form';
|
|
|
57
58
|
import FormControl from 'react-bootstrap/FormControl';
|
|
58
59
|
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
59
60
|
import 'react-bootstrap/Dropdown';
|
|
60
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-
|
|
61
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
61
62
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
62
63
|
import './index-db3bb315.js';
|
|
63
64
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
64
65
|
import getQuery from './getQuery.js';
|
|
65
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
66
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
66
|
+
import { S as SeriesSlider } from './SeriesSlider-19a24623.js';
|
|
67
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-f22b76f5.js';
|
|
67
68
|
import getKeywords from './getKeywords.js';
|
|
68
69
|
import urlFor from './urlFor.js';
|
|
69
70
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -145,17 +146,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
145
146
|
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
return
|
|
149
|
+
return React.createElement(
|
|
149
150
|
'a',
|
|
150
151
|
{
|
|
151
152
|
href: url,
|
|
152
153
|
className: 'doc-group',
|
|
153
154
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
154
|
-
thumbnailUrl &&
|
|
155
|
-
!thumbnailUrl &&
|
|
156
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
155
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
156
|
+
!thumbnailUrl && React.createElement('p', {
|
|
157
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
157
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
158
|
-
|
|
159
|
+
main_39 && !thumbnailUrl && React.createElement(
|
|
159
160
|
'style',
|
|
160
161
|
{ jsx: 'true' },
|
|
161
162
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -295,38 +296,38 @@ var ISI = function ISI(props) {
|
|
|
295
296
|
}, 300);
|
|
296
297
|
}
|
|
297
298
|
};
|
|
298
|
-
return
|
|
299
|
-
|
|
299
|
+
return React.createElement(
|
|
300
|
+
React.Fragment,
|
|
300
301
|
null,
|
|
301
|
-
|
|
302
|
+
React.createElement(
|
|
302
303
|
'div',
|
|
303
304
|
{ id: 'isi', ref: isi },
|
|
304
|
-
|
|
305
|
+
React.createElement(
|
|
305
306
|
'div',
|
|
306
307
|
{ id: 'isiContent' },
|
|
307
|
-
|
|
308
|
+
React.createElement(
|
|
308
309
|
'div',
|
|
309
310
|
{ onClick: function onClick() {
|
|
310
311
|
return setActive(function (prev) {
|
|
311
312
|
return !prev;
|
|
312
313
|
});
|
|
313
314
|
}, id: 'isiToggle' },
|
|
314
|
-
active ?
|
|
315
|
+
active ? React.createElement(
|
|
315
316
|
'p',
|
|
316
317
|
null,
|
|
317
318
|
'Close ',
|
|
318
|
-
|
|
319
|
-
) :
|
|
319
|
+
React.createElement(FaMinus, null)
|
|
320
|
+
) : React.createElement(
|
|
320
321
|
'p',
|
|
321
322
|
null,
|
|
322
323
|
'See More ',
|
|
323
|
-
|
|
324
|
+
React.createElement(FaPlus, null)
|
|
324
325
|
)
|
|
325
326
|
),
|
|
326
327
|
children
|
|
327
328
|
)
|
|
328
329
|
),
|
|
329
|
-
|
|
330
|
+
React.createElement(
|
|
330
331
|
'style',
|
|
331
332
|
{ jsx: true },
|
|
332
333
|
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 12rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s ease , margin-top .3s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
@@ -334,7 +335,7 @@ var ISI = function ISI(props) {
|
|
|
334
335
|
);
|
|
335
336
|
};
|
|
336
337
|
|
|
337
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
338
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
338
339
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
339
340
|
styleInject(css);
|
|
340
341
|
|
|
@@ -348,33 +349,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
348
349
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
349
350
|
return null;
|
|
350
351
|
}
|
|
351
|
-
return
|
|
352
|
+
return React.createElement(
|
|
352
353
|
'div',
|
|
353
354
|
{ className: styles.mediaContainer },
|
|
354
355
|
articles.map(function (article, index) {
|
|
355
|
-
return
|
|
356
|
+
return React.createElement(
|
|
356
357
|
'div',
|
|
357
358
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
358
|
-
|
|
359
|
+
React.createElement(
|
|
359
360
|
'a',
|
|
360
361
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
361
|
-
article.thumbnail ?
|
|
362
|
+
article.thumbnail ? React.createElement('img', {
|
|
362
363
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
363
364
|
src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
|
|
364
365
|
alt: article.title
|
|
365
|
-
}) :
|
|
366
|
-
|
|
366
|
+
}) : React.createElement(
|
|
367
|
+
React.Fragment,
|
|
367
368
|
null,
|
|
368
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
369
|
+
fallbackImage && showRelatedArticleFallbackImage && React.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
369
370
|
)
|
|
370
371
|
),
|
|
371
|
-
|
|
372
|
+
React.createElement(
|
|
372
373
|
'div',
|
|
373
374
|
{ className: styles.mediaBody },
|
|
374
|
-
|
|
375
|
+
React.createElement(
|
|
375
376
|
'a',
|
|
376
377
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
377
|
-
|
|
378
|
+
React.createElement(
|
|
378
379
|
'div',
|
|
379
380
|
{ className: styles.cardTitle },
|
|
380
381
|
article.title
|
|
@@ -491,8 +492,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
491
492
|
containerHeight = props.containerHeight,
|
|
492
493
|
_props$refreshFlag = props.refreshFlag,
|
|
493
494
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
494
|
-
disqusConfig = props.disqusConfig
|
|
495
|
-
|
|
495
|
+
disqusConfig = props.disqusConfig,
|
|
496
|
+
showDisqus = props.showDisqus;
|
|
496
497
|
|
|
497
498
|
var targeting = getTargeting(props);
|
|
498
499
|
var onChangeArticle = props.onChangeArticle;
|
|
@@ -568,7 +569,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
568
569
|
};
|
|
569
570
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
570
571
|
if (biography) {
|
|
571
|
-
return
|
|
572
|
+
return React.createElement(BlockContent, _extends({
|
|
572
573
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
573
574
|
blocks: [biography]
|
|
574
575
|
}, client.config()));
|
|
@@ -578,9 +579,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
578
579
|
var url = article.url.current;
|
|
579
580
|
|
|
580
581
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
581
|
-
return
|
|
582
|
+
return React.createElement(ISIContent, null);
|
|
582
583
|
} else if (nationalPage === url && ISIContent) {
|
|
583
|
-
return
|
|
584
|
+
return React.createElement(ISIContent, { national: true });
|
|
584
585
|
}
|
|
585
586
|
return null;
|
|
586
587
|
};
|
|
@@ -611,19 +612,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
611
612
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
612
613
|
}
|
|
613
614
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
614
|
-
return
|
|
615
|
+
return React.createElement(
|
|
615
616
|
'div',
|
|
616
617
|
null,
|
|
617
618
|
relatedLinks.map(function (relatedLink, index) {
|
|
618
|
-
return
|
|
619
|
+
return React.createElement(
|
|
619
620
|
'span',
|
|
620
621
|
{ key: index, className: 'related-link' },
|
|
621
|
-
|
|
622
|
+
React.createElement(
|
|
622
623
|
'a',
|
|
623
624
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
624
625
|
relatedLink.label
|
|
625
626
|
),
|
|
626
|
-
|
|
627
|
+
React.createElement(
|
|
627
628
|
'style',
|
|
628
629
|
{ jsx: 'true' },
|
|
629
630
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -638,23 +639,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
638
639
|
};
|
|
639
640
|
|
|
640
641
|
var RelatedContent = function RelatedContent() {
|
|
641
|
-
return
|
|
642
|
+
return React.createElement(
|
|
642
643
|
'section',
|
|
643
644
|
{ id: 'related-content-section', className: 'my-1' },
|
|
644
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
645
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
645
646
|
'p',
|
|
646
647
|
{ className: 'mb-0' },
|
|
647
|
-
|
|
648
|
+
React.createElement(
|
|
648
649
|
'b',
|
|
649
650
|
null,
|
|
650
651
|
'Related Content:'
|
|
651
652
|
)
|
|
652
653
|
),
|
|
653
|
-
|
|
654
|
-
|
|
654
|
+
React.createElement(RelevantTopics, null),
|
|
655
|
+
React.createElement(
|
|
655
656
|
'div',
|
|
656
657
|
{ className: 'pt-2' },
|
|
657
|
-
|
|
658
|
+
React.createElement(RelatedArticle, {
|
|
658
659
|
articles: article.relatedArticle,
|
|
659
660
|
client: client,
|
|
660
661
|
fallbackImage: props.Settings.logo,
|
|
@@ -665,28 +666,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
665
666
|
};
|
|
666
667
|
|
|
667
668
|
var form = function form() {
|
|
668
|
-
return
|
|
669
|
-
|
|
669
|
+
return React.createElement(
|
|
670
|
+
React.Fragment,
|
|
670
671
|
null,
|
|
671
|
-
|
|
672
|
+
React.createElement(
|
|
672
673
|
Head,
|
|
673
674
|
null,
|
|
674
|
-
|
|
675
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
675
676
|
),
|
|
676
|
-
|
|
677
|
+
React.createElement(
|
|
677
678
|
'div',
|
|
678
679
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
679
|
-
|
|
680
|
+
React.createElement(
|
|
680
681
|
Form,
|
|
681
682
|
{
|
|
682
683
|
inline: true,
|
|
683
684
|
onSubmit: function onSubmit(e) {
|
|
684
685
|
e.preventDefault();
|
|
685
686
|
} },
|
|
686
|
-
|
|
687
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
687
688
|
return setPasswordKey(e.target.value);
|
|
688
689
|
}, placeholder: 'Password' }),
|
|
689
|
-
|
|
690
|
+
React.createElement(
|
|
690
691
|
Button,
|
|
691
692
|
{
|
|
692
693
|
variant: 'primary',
|
|
@@ -736,31 +737,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
736
737
|
setContextualADFlag(true);
|
|
737
738
|
}
|
|
738
739
|
};
|
|
739
|
-
return
|
|
740
|
-
|
|
740
|
+
return React.createElement(
|
|
741
|
+
React.Fragment,
|
|
741
742
|
null,
|
|
742
|
-
|
|
743
|
+
React.createElement(BlockContent, _extends({
|
|
743
744
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
744
745
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
745
746
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
746
747
|
}, client.config())),
|
|
747
|
-
|
|
748
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
749
|
-
|
|
748
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
749
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
750
|
+
React.createElement(
|
|
750
751
|
'div',
|
|
751
752
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
752
|
-
|
|
753
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
753
754
|
refreshFlag: refreshFlag
|
|
754
755
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
755
756
|
}))
|
|
756
757
|
),
|
|
757
|
-
|
|
758
|
-
|
|
758
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
759
|
+
React.createElement(
|
|
759
760
|
'div',
|
|
760
761
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
761
|
-
|
|
762
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
762
763
|
),
|
|
763
|
-
|
|
764
|
+
React.createElement(BlockContent, _extends({
|
|
764
765
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
765
766
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
766
767
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -785,27 +786,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
785
786
|
if (seriesInfo.hasVideo) {
|
|
786
787
|
_selectedIndex = seriesInfo.videoIndex;
|
|
787
788
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
React__default.Fragment,
|
|
789
|
+
return React.createElement(
|
|
790
|
+
React.Fragment,
|
|
791
791
|
null,
|
|
792
|
-
|
|
792
|
+
React.createElement(BlockContent, _extends({
|
|
793
793
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
794
794
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
795
795
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
796
796
|
}, client.config())),
|
|
797
|
-
contextualADFlag &&
|
|
798
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
799
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
797
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
798
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
799
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
800
800
|
'div',
|
|
801
801
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
802
|
-
|
|
802
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
803
803
|
refreshFlag: refreshFlag
|
|
804
804
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
805
805
|
}))
|
|
806
806
|
),
|
|
807
|
-
contextualADFlag &&
|
|
808
|
-
|
|
807
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
808
|
+
React.createElement(BlockContent, _extends({
|
|
809
809
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
810
810
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
811
811
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -835,44 +835,43 @@ var Article = forwardRef(function (props, ref) {
|
|
|
835
835
|
}
|
|
836
836
|
};
|
|
837
837
|
|
|
838
|
-
return
|
|
839
|
-
|
|
838
|
+
return React.createElement(
|
|
839
|
+
React.Fragment,
|
|
840
840
|
null,
|
|
841
|
-
|
|
841
|
+
React.createElement(BlockContent, _extends({
|
|
842
842
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
843
843
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
844
844
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
845
845
|
}, client.config())),
|
|
846
|
-
|
|
847
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
848
|
-
|
|
846
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
847
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
848
|
+
React.createElement(
|
|
849
849
|
'div',
|
|
850
850
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
851
|
-
|
|
851
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
852
852
|
),
|
|
853
|
-
|
|
853
|
+
React.createElement(BlockContent, _extends({
|
|
854
854
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
855
855
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
856
856
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
857
857
|
}, client.config()))
|
|
858
858
|
);
|
|
859
859
|
} else {
|
|
860
|
-
|
|
861
860
|
var _selectedIndex3 = indexes[1] + 1;
|
|
862
861
|
if (seriesInfo.hasVideo) {
|
|
863
862
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
864
863
|
}
|
|
865
864
|
|
|
866
|
-
return
|
|
865
|
+
return React.createElement(
|
|
867
866
|
'div',
|
|
868
867
|
null,
|
|
869
|
-
|
|
868
|
+
React.createElement(BlockContent, _extends({
|
|
870
869
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
871
870
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
872
871
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
873
872
|
}, client.config())),
|
|
874
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
875
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
873
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
874
|
+
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
876
875
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
877
876
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
878
877
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -958,10 +957,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
958
957
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
959
958
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
960
959
|
|
|
961
|
-
return
|
|
962
|
-
|
|
960
|
+
return React.createElement(
|
|
961
|
+
React.Fragment,
|
|
963
962
|
null,
|
|
964
|
-
|
|
963
|
+
React.createElement(
|
|
965
964
|
VisibilitySensor,
|
|
966
965
|
{
|
|
967
966
|
partialVisibility: true,
|
|
@@ -974,61 +973,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
974
973
|
});
|
|
975
974
|
}
|
|
976
975
|
} },
|
|
977
|
-
|
|
976
|
+
React.createElement(
|
|
978
977
|
'div',
|
|
979
978
|
{ id: 'article__block', ref: ref },
|
|
980
|
-
|
|
979
|
+
React.createElement(
|
|
981
980
|
'div',
|
|
982
981
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
983
982
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
984
|
-
!isVideoSeries &&
|
|
983
|
+
!isVideoSeries && React.createElement(
|
|
985
984
|
'div',
|
|
986
985
|
null,
|
|
987
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
986
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React.createElement(
|
|
988
987
|
'p',
|
|
989
988
|
{ style: { fontSize: '14px' } },
|
|
990
989
|
article.documentGroup.name,
|
|
991
990
|
' - Episode ',
|
|
992
991
|
episodeNumber
|
|
993
992
|
),
|
|
994
|
-
|
|
993
|
+
React.createElement(
|
|
995
994
|
'h1',
|
|
996
995
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
997
996
|
title
|
|
998
997
|
)
|
|
999
998
|
),
|
|
1000
|
-
|
|
999
|
+
React.createElement(
|
|
1001
1000
|
'div',
|
|
1002
1001
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1003
|
-
|
|
1002
|
+
React.createElement(
|
|
1004
1003
|
'style',
|
|
1005
1004
|
{ jsx: 'true' },
|
|
1006
1005
|
'\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 '
|
|
1007
1006
|
),
|
|
1008
|
-
|
|
1007
|
+
React.createElement(
|
|
1009
1008
|
'div',
|
|
1010
1009
|
{ className: 'left-wrap' },
|
|
1011
|
-
!isVideoSeries && showPublished &&
|
|
1010
|
+
!isVideoSeries && showPublished && React.createElement(
|
|
1012
1011
|
'div',
|
|
1013
1012
|
null,
|
|
1014
1013
|
moment(published).format('LL')
|
|
1015
1014
|
)
|
|
1016
1015
|
/* Show Published date */
|
|
1017
1016
|
,
|
|
1018
|
-
|
|
1017
|
+
React.createElement(
|
|
1019
1018
|
'div',
|
|
1020
1019
|
{ className: 'mb-3' },
|
|
1021
1020
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1022
|
-
return
|
|
1021
|
+
return React.createElement(
|
|
1023
1022
|
'span',
|
|
1024
1023
|
{ key: index },
|
|
1025
1024
|
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())
|
|
1026
1025
|
);
|
|
1027
1026
|
}),
|
|
1028
|
-
|
|
1027
|
+
React.createElement(
|
|
1029
1028
|
'div',
|
|
1030
1029
|
null,
|
|
1031
|
-
source &&
|
|
1030
|
+
source && React.createElement(
|
|
1032
1031
|
'p',
|
|
1033
1032
|
{
|
|
1034
1033
|
style: {
|
|
@@ -1043,13 +1042,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1043
1042
|
source
|
|
1044
1043
|
)
|
|
1045
1044
|
),
|
|
1046
|
-
issue &&
|
|
1045
|
+
issue && React.createElement(
|
|
1047
1046
|
'div',
|
|
1048
1047
|
{ className: 'volume-issue' },
|
|
1049
|
-
issue.publication && issue.publication.name &&
|
|
1048
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
1050
1049
|
'span',
|
|
1051
1050
|
{ className: 'mb-0' },
|
|
1052
|
-
|
|
1051
|
+
React.createElement(
|
|
1053
1052
|
'b',
|
|
1054
1053
|
null,
|
|
1055
1054
|
issue.publication.name
|
|
@@ -1057,34 +1056,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1057
1056
|
',',
|
|
1058
1057
|
' '
|
|
1059
1058
|
),
|
|
1060
|
-
issue.name &&
|
|
1059
|
+
issue.name && React.createElement(
|
|
1061
1060
|
'span',
|
|
1062
1061
|
{ className: 'mb-0' },
|
|
1063
1062
|
issue.name,
|
|
1064
1063
|
', '
|
|
1065
1064
|
),
|
|
1066
|
-
issue.volume &&
|
|
1065
|
+
issue.volume && React.createElement(
|
|
1067
1066
|
'span',
|
|
1068
1067
|
null,
|
|
1069
1068
|
'Volume ' + issue.volume,
|
|
1070
1069
|
','
|
|
1071
1070
|
),
|
|
1072
|
-
issue.issueNumber &&
|
|
1071
|
+
issue.issueNumber && React.createElement(
|
|
1073
1072
|
'span',
|
|
1074
1073
|
null,
|
|
1075
1074
|
' Issue ' + issue.issueNumber
|
|
1076
1075
|
)
|
|
1077
1076
|
),
|
|
1078
|
-
pageNumber &&
|
|
1077
|
+
pageNumber && React.createElement(
|
|
1079
1078
|
'div',
|
|
1080
1079
|
{ className: 'article-pageNumber' },
|
|
1081
1080
|
'Pages: ' + pageNumber
|
|
1082
1081
|
)
|
|
1083
1082
|
),
|
|
1084
|
-
!isVideoSeries &&
|
|
1083
|
+
!isVideoSeries && React.createElement(
|
|
1085
1084
|
'p',
|
|
1086
1085
|
null,
|
|
1087
|
-
|
|
1086
|
+
React.createElement(SocialShare, {
|
|
1088
1087
|
shareUrl: shareUrl,
|
|
1089
1088
|
shareTitle: shareTitle,
|
|
1090
1089
|
shareVia: shareVia,
|
|
@@ -1100,37 +1099,37 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1100
1099
|
})
|
|
1101
1100
|
)
|
|
1102
1101
|
),
|
|
1103
|
-
|
|
1102
|
+
React.createElement(
|
|
1104
1103
|
'div',
|
|
1105
1104
|
null,
|
|
1106
|
-
|
|
1105
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1107
1106
|
)
|
|
1108
1107
|
),
|
|
1109
|
-
!isVideoSeries && summary && display_summary &&
|
|
1108
|
+
!isVideoSeries && summary && display_summary && React.createElement(
|
|
1110
1109
|
'p',
|
|
1111
1110
|
null,
|
|
1112
|
-
|
|
1111
|
+
React.createElement(
|
|
1113
1112
|
'em',
|
|
1114
1113
|
null,
|
|
1115
1114
|
summary
|
|
1116
1115
|
)
|
|
1117
1116
|
),
|
|
1118
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1117
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React.createElement(
|
|
1119
1118
|
'div',
|
|
1120
1119
|
null,
|
|
1121
|
-
thumbnail &&
|
|
1120
|
+
thumbnail && React.createElement(
|
|
1122
1121
|
'div',
|
|
1123
1122
|
{ style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
1124
|
-
|
|
1123
|
+
React.createElement('img', { style: { maxWidth: '100%', maxHeight: '300px' }, src: urlFor(props.client, thumbnail) })
|
|
1125
1124
|
),
|
|
1126
|
-
|
|
1125
|
+
React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1127
1126
|
),
|
|
1128
|
-
|
|
1127
|
+
React.createElement(
|
|
1129
1128
|
'div',
|
|
1130
1129
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1131
|
-
|
|
1130
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1132
1131
|
if (index === 0) {
|
|
1133
|
-
return
|
|
1132
|
+
return React.createElement(
|
|
1134
1133
|
'div',
|
|
1135
1134
|
{
|
|
1136
1135
|
key: index,
|
|
@@ -1147,24 +1146,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1147
1146
|
}
|
|
1148
1147
|
})
|
|
1149
1148
|
),
|
|
1150
|
-
|
|
1149
|
+
React.createElement(
|
|
1151
1150
|
'div',
|
|
1152
1151
|
{ className: 'block-content mt-3' },
|
|
1153
1152
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
1154
|
+
React.createElement(
|
|
1156
1155
|
'noscript',
|
|
1157
1156
|
null,
|
|
1158
|
-
|
|
1157
|
+
React.createElement(
|
|
1159
1158
|
'div',
|
|
1160
1159
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1161
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1160
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
1162
1161
|
'a',
|
|
1163
1162
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1164
1163
|
'Previous ',
|
|
1165
1164
|
props.article.seriesDetail.type
|
|
1166
1165
|
),
|
|
1167
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1166
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
1168
1167
|
'a',
|
|
1169
1168
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1170
1169
|
'Next ',
|
|
@@ -1172,20 +1171,20 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1172
1171
|
)
|
|
1173
1172
|
)
|
|
1174
1173
|
),
|
|
1175
|
-
issue && issue.url &&
|
|
1174
|
+
issue && issue.url && React.createElement(
|
|
1176
1175
|
'a',
|
|
1177
1176
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1178
|
-
|
|
1177
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1179
1178
|
'Download Issue : ',
|
|
1180
1179
|
issue.name
|
|
1181
1180
|
)
|
|
1182
1181
|
),
|
|
1183
|
-
|
|
1184
|
-
showRelatedArticles && !showIsi &&
|
|
1185
|
-
disqusConfig &&
|
|
1182
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1183
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null),
|
|
1184
|
+
disqusConfig && showDisqus && React.createElement(
|
|
1186
1185
|
'div',
|
|
1187
1186
|
{ id: 'disqusContainer' },
|
|
1188
|
-
|
|
1187
|
+
React.createElement(DiscussionEmbed, {
|
|
1189
1188
|
shortname: disqusConfig.shortname,
|
|
1190
1189
|
config: {
|
|
1191
1190
|
url: disqusConfig.url,
|
|
@@ -1198,30 +1197,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1198
1197
|
renderIsiContent(props.article)
|
|
1199
1198
|
)
|
|
1200
1199
|
),
|
|
1201
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1200
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1202
1201
|
ISI,
|
|
1203
1202
|
null,
|
|
1204
|
-
|
|
1203
|
+
React.createElement(BlockContent, {
|
|
1205
1204
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1206
1205
|
blocks: isi
|
|
1207
1206
|
})
|
|
1208
1207
|
),
|
|
1209
|
-
|
|
1208
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1210
1209
|
if (index > 0) {
|
|
1211
|
-
return
|
|
1210
|
+
return React.createElement(
|
|
1212
1211
|
'div',
|
|
1213
1212
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1214
1213
|
ad.component
|
|
1215
1214
|
);
|
|
1216
1215
|
}
|
|
1217
1216
|
}),
|
|
1218
|
-
|
|
1217
|
+
React.createElement(
|
|
1219
1218
|
'noscript',
|
|
1220
1219
|
null,
|
|
1221
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1220
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1222
1221
|
'div',
|
|
1223
1222
|
{ style: { textAlign: 'center' } },
|
|
1224
|
-
|
|
1223
|
+
React.createElement(
|
|
1225
1224
|
'a',
|
|
1226
1225
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1227
1226
|
'Related Article ',
|
|
@@ -1229,7 +1228,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1229
1228
|
)
|
|
1230
1229
|
)
|
|
1231
1230
|
),
|
|
1232
|
-
props.infiniteScroll &&
|
|
1231
|
+
props.infiniteScroll && React.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1233
1232
|
);
|
|
1234
1233
|
};
|
|
1235
1234
|
|
|
@@ -1302,7 +1301,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1302
1301
|
return item.url.current === path;
|
|
1303
1302
|
});
|
|
1304
1303
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1305
|
-
if (!
|
|
1304
|
+
if (!main_39) {
|
|
1306
1305
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1307
1306
|
if (window.googletag && googletag.pubadsReady) {
|
|
1308
1307
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1319,7 +1318,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1319
1318
|
});
|
|
1320
1319
|
}
|
|
1321
1320
|
//Refresh leaderboard ad on mobile
|
|
1322
|
-
if (
|
|
1321
|
+
if (main_39) {
|
|
1323
1322
|
var leaderboardSlotId = '';
|
|
1324
1323
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1325
1324
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1466,14 +1465,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1466
1465
|
refreshAD(path);
|
|
1467
1466
|
};
|
|
1468
1467
|
|
|
1469
|
-
return
|
|
1468
|
+
return React.createElement(
|
|
1470
1469
|
InfiniteScroll,
|
|
1471
1470
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1472
1471
|
queueData.map(function (article, index) {
|
|
1473
|
-
return
|
|
1474
|
-
|
|
1472
|
+
return React.createElement(
|
|
1473
|
+
React.Fragment,
|
|
1475
1474
|
null,
|
|
1476
|
-
|
|
1475
|
+
React.createElement(Article, _extends({
|
|
1477
1476
|
key: index
|
|
1478
1477
|
}, props, {
|
|
1479
1478
|
containerHeight: containerHeight,
|
|
@@ -1497,6 +1496,9 @@ var View = function View(props) {
|
|
|
1497
1496
|
var router = useRouter();
|
|
1498
1497
|
var shareOptions = props.shareOptions,
|
|
1499
1498
|
article = props.article,
|
|
1499
|
+
_props$article = props.article,
|
|
1500
|
+
hideComments = _props$article.hideComments,
|
|
1501
|
+
content_placement = _props$article.content_placement,
|
|
1500
1502
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1501
1503
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1502
1504
|
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
@@ -1511,12 +1513,12 @@ var View = function View(props) {
|
|
|
1511
1513
|
canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag,
|
|
1512
1514
|
_props$infiniteScroll = props.infiniteScrollFlag,
|
|
1513
1515
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1514
|
-
var _props$
|
|
1515
|
-
_props$
|
|
1516
|
-
passwordLock = _props$
|
|
1517
|
-
description = _props$
|
|
1518
|
-
title = _props$
|
|
1519
|
-
seriesShareOptions = _props$
|
|
1516
|
+
var _props$article2 = props.article,
|
|
1517
|
+
_props$article2$passw = _props$article2.passwordLock,
|
|
1518
|
+
passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw,
|
|
1519
|
+
description = _props$article2.description,
|
|
1520
|
+
title = _props$article2.title,
|
|
1521
|
+
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1520
1522
|
|
|
1521
1523
|
var _useState = useState(0),
|
|
1522
1524
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1569,7 +1571,11 @@ var View = function View(props) {
|
|
|
1569
1571
|
|
|
1570
1572
|
var isVideoSeries = checkVideoSeries(props.article);
|
|
1571
1573
|
var isArticleSeries = checkArticleSeries(props.article);
|
|
1572
|
-
var
|
|
1574
|
+
var commentsEnabledInTaxonomy = Array.isArray(content_placement) && content_placement.some(function (t) {
|
|
1575
|
+
return t.showComments === true;
|
|
1576
|
+
});
|
|
1577
|
+
var showDisqus = commentsEnabledInTaxonomy || hideComments === false;
|
|
1578
|
+
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && (!article.documentGroup || !article.documentGroup.isSeries) && !showDisqus;
|
|
1573
1579
|
|
|
1574
1580
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1575
1581
|
description = null;
|
|
@@ -1609,74 +1615,63 @@ var View = function View(props) {
|
|
|
1609
1615
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1610
1616
|
}
|
|
1611
1617
|
|
|
1612
|
-
return
|
|
1613
|
-
|
|
1618
|
+
return React.createElement(
|
|
1619
|
+
React.Fragment,
|
|
1614
1620
|
null,
|
|
1615
|
-
|
|
1621
|
+
React.createElement(
|
|
1616
1622
|
Head,
|
|
1617
1623
|
null,
|
|
1618
|
-
|
|
1624
|
+
React.createElement(
|
|
1619
1625
|
'title',
|
|
1620
1626
|
{ key: 'title' },
|
|
1621
1627
|
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 : '')
|
|
1622
1628
|
),
|
|
1623
|
-
meta_description &&
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1628
|
-
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1629
|
-
React__default.createElement('meta', {
|
|
1629
|
+
meta_description && React.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1630
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1631
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1632
|
+
React.createElement('meta', {
|
|
1630
1633
|
property: 'og:url',
|
|
1631
1634
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1632
1635
|
key: 'og:url'
|
|
1633
1636
|
}),
|
|
1634
|
-
|
|
1637
|
+
React.createElement('meta', {
|
|
1635
1638
|
property: 'og:title',
|
|
1636
1639
|
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 : ''),
|
|
1637
1640
|
key: 'og:title'
|
|
1638
1641
|
}),
|
|
1639
|
-
|
|
1642
|
+
React.createElement('meta', {
|
|
1640
1643
|
property: 'og:image',
|
|
1641
1644
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1642
1645
|
key: 'og:image'
|
|
1643
1646
|
}),
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
key: 'og:description'
|
|
1649
|
-
}),
|
|
1650
|
-
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1651
|
-
React__default.createElement('meta', {
|
|
1647
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1648
|
+
React.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1649
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1650
|
+
React.createElement('meta', {
|
|
1652
1651
|
name: 'twitter:title',
|
|
1653
1652
|
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 : ''),
|
|
1654
1653
|
key: 'twitter:title'
|
|
1655
1654
|
}),
|
|
1656
|
-
|
|
1655
|
+
React.createElement('meta', {
|
|
1657
1656
|
name: 'twitter:image',
|
|
1658
1657
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1659
1658
|
key: 'twitter:image'
|
|
1660
1659
|
}),
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
content: meta_description,
|
|
1665
|
-
key: 'twitter:description'
|
|
1666
|
-
}),
|
|
1667
|
-
canonicalTag && React__default.createElement('link', {
|
|
1660
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1661
|
+
React.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1662
|
+
canonicalTag && React.createElement('link', {
|
|
1668
1663
|
rel: 'canonical',
|
|
1669
1664
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1670
1665
|
key: 'canonical'
|
|
1671
1666
|
}),
|
|
1672
|
-
|
|
1667
|
+
React.createElement(
|
|
1673
1668
|
'noscript',
|
|
1674
1669
|
null,
|
|
1675
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1676
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1670
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1671
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1677
1672
|
)
|
|
1678
1673
|
),
|
|
1679
|
-
!needInfiniteScroll ?
|
|
1674
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1680
1675
|
infiniteScroll: true,
|
|
1681
1676
|
showRelatedArticles: showRelatedArticles,
|
|
1682
1677
|
canonicalTag: canonicalTag,
|