@mjhls/mjh-framework 1.0.810 → 1.0.811-gate-test
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 +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +14100 -19
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +5 -4
- package/dist/cjs/Auth.js +4 -321
- package/dist/cjs/AuthWrapper.js +725 -0
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -11
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +6 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +5 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +6 -5
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +34 -33
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +13 -12
- package/dist/cjs/MediaSeriesLanding.js +313 -421
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +8 -7
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +5 -4
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +5 -4
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +4 -3
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-c022ce04.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +6 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +6 -5
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesListing.js +5 -4
- package/dist/cjs/View.js +62 -34
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/faundadb.js +329 -0
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +6 -5
- package/dist/cjs/{getTargeting-fbbe92ba.js → getTargeting-c8081c76.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-a766f892.js → index-667c091e.js} +3 -3
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-9225638f.js → index.esm-3b9b8952.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +16 -14
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/cjs/md5-e1ca5797.js +323 -0
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -6
- package/dist/esm/AD300x250x600.js +7 -6
- package/dist/esm/AD728x90.js +8 -7
- package/dist/esm/ADFloatingFooter.js +10 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -9
- package/dist/esm/{ADInfeed-33e556f5.js → ADInfeed-6ed88032.js} +5 -5
- package/dist/esm/ADSkyscraper.js +10 -9
- package/dist/esm/ADSponsoredResources.js +10 -9
- package/dist/esm/ADWebcast.js +10 -9
- package/dist/esm/ADWelcome.js +14 -13
- package/dist/esm/{ADlgInfeed-1270c526.js → ADlgInfeed-e02d1d98.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +6 -5
- package/dist/esm/AdSlotsProvider.js +5 -4
- package/dist/esm/AlgoliaSearch.js +14120 -39
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +18 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +32 -31
- package/dist/esm/Auth.js +71 -388
- package/dist/esm/AuthWrapper.js +719 -0
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +58 -57
- package/dist/esm/DeckQueue.js +43 -42
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +36 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +104 -103
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +32 -31
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +43 -42
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +47 -46
- package/dist/esm/MediaSeriesLanding.js +336 -444
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +63 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +15 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +78 -78
- package/dist/esm/QueueDeckExpanded.js +247 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-8414085b.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +14 -13
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +25 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +13 -12
- package/dist/esm/VideoSeriesListing.js +48 -47
- package/dist/esm/View.js +221 -193
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/faundadb.js +321 -0
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +9 -8
- package/dist/esm/{getTargeting-0958ad0e.js → getTargeting-2302c1b4.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index-f354da27.js → index-d2fb744b.js} +339 -339
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-e874e770.js → index.esm-d6f88d94.js} +1 -1
- package/dist/esm/index.js +41 -39
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/md5-4e42248e.js +321 -0
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +111 -109
- /package/dist/cjs/{ADInfeed-d9976673.js → ADInfeed-77f334bb.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0610e1bb.js → ADlgInfeed-0664c67f.js} +0 -0
package/dist/esm/View.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
2
|
import { _ as _extends, a as _Object$assign } from './extends-f076879e.js';
|
|
3
3
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
4
|
-
import
|
|
4
|
+
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { useRouter } from 'next/router';
|
|
7
7
|
import { _ as _JSON$stringify } from './stringify-59c8f690.js';
|
|
8
8
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
-
import { B as BlockContent } from './BlockContent-
|
|
11
|
-
import { m as main_43 } from './main-
|
|
10
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
11
|
+
import { m as main_43 } from './main-b5c5aac1.js';
|
|
12
12
|
import 'react-bootstrap/Dropdown';
|
|
13
13
|
import Form from 'react-bootstrap/Form';
|
|
14
14
|
import FormControl from 'react-bootstrap/FormControl';
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-d2fb744b.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-8414085b.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2302c1b4.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
25
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-
|
|
25
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
26
26
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
|
-
import './index-
|
|
27
|
+
import './index-35bdcc81.js';
|
|
28
28
|
import { DiscussionEmbed } from 'disqus-react';
|
|
29
29
|
import { _ as _Object$keys } from './keys-7a3adabf.js';
|
|
30
|
-
import { I as InfiniteScroll } from './index.es-
|
|
31
|
-
import { l as lib_3 } from './index-
|
|
30
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
31
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
32
32
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
33
33
|
import getQuery from './getQuery.js';
|
|
34
34
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
@@ -49,7 +49,7 @@ import './index-c7e2ac95.js';
|
|
|
49
49
|
import './util-3ab476bf.js';
|
|
50
50
|
import './Beam.js';
|
|
51
51
|
import './Segment.js';
|
|
52
|
-
import './brightcove-react-player-loader.es-
|
|
52
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
53
53
|
import './GroupDeck.js';
|
|
54
54
|
import './smoothscroll-fa4e3f8c.js';
|
|
55
55
|
import './_is-array-3e99e06e.js';
|
|
@@ -61,12 +61,13 @@ import 'react-bootstrap/Col';
|
|
|
61
61
|
import './inherits-f71787cf.js';
|
|
62
62
|
import './_object-sap-f353c2a9.js';
|
|
63
63
|
import './define-property-fe54dc9f.js';
|
|
64
|
-
import './index.esm-
|
|
65
|
-
import './iconBase-
|
|
64
|
+
import './index.esm-3fdda599.js';
|
|
65
|
+
import './iconBase-602d52fe.js';
|
|
66
66
|
import 'react-bootstrap/Figure';
|
|
67
67
|
import './debounce-533d9748.js';
|
|
68
68
|
import './isSymbol-a7e9aafe.js';
|
|
69
69
|
import './toNumber-5aeba6e7.js';
|
|
70
|
+
import './events-6c3a7a63.js';
|
|
70
71
|
import './index-db3bb315.js';
|
|
71
72
|
|
|
72
73
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -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 &&
|
|
155
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
156
|
+
!thumbnailUrl && React.createElement('p', {
|
|
156
157
|
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
157
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
158
|
-
main_43 && !thumbnailUrl &&
|
|
159
|
+
main_43 && !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
|
|
@@ -386,6 +387,43 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
386
387
|
);
|
|
387
388
|
};
|
|
388
389
|
|
|
390
|
+
var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
391
|
+
//Need to check Taxonomy, DocumentGroup, and Authors for showSocialShare
|
|
392
|
+
var showSocialShare = true;
|
|
393
|
+
|
|
394
|
+
if (article.content_placement && article.content_placement.length > 0) {
|
|
395
|
+
//loop through each
|
|
396
|
+
article.content_placement.forEach(function (category) {
|
|
397
|
+
if (category.showSocialShare === false) {
|
|
398
|
+
showSocialShare = false;
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (article.authorDetails && article.authorDetails.length > 0) {
|
|
403
|
+
article.authorDetails.forEach(function (author) {
|
|
404
|
+
if (author.showSocialShare === false) {
|
|
405
|
+
showSocialShare = false;
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
if (article.documentGroup && article.documentGroup.length > 0) {
|
|
410
|
+
article.documentGroup.forEach(function (docGroup) {
|
|
411
|
+
if (docGroup.showSocialShare === false) {
|
|
412
|
+
showSocialShare = false;
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
if (article.documentGroupMapping && article.documentGroupMapping.length > 0) {
|
|
417
|
+
article.documentGroupMapping.forEach(function (docGroup) {
|
|
418
|
+
if (docGroup.showSocialShare === false) {
|
|
419
|
+
showSocialShare = false;
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return showSocialShare;
|
|
425
|
+
};
|
|
426
|
+
|
|
389
427
|
var Article = forwardRef(function (props, ref) {
|
|
390
428
|
var onVote = function () {
|
|
391
429
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -443,7 +481,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
443
481
|
_props$hideFBShare = props.hideFBShare,
|
|
444
482
|
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
445
483
|
_props$hidePinterestS = props.hidePinterestShare,
|
|
446
|
-
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS
|
|
484
|
+
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS,
|
|
485
|
+
onChangeArticle = props.onChangeArticle,
|
|
486
|
+
_props$showSocialShar = props.showSocialShare,
|
|
487
|
+
showSocialShare = _props$showSocialShar === undefined ? true : _props$showSocialShar;
|
|
447
488
|
var client = props.client,
|
|
448
489
|
pageview = props.pageview,
|
|
449
490
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -495,10 +536,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
495
536
|
showDisqus = props.showDisqus;
|
|
496
537
|
|
|
497
538
|
var targeting = getTargeting(props);
|
|
498
|
-
var onChangeArticle = props.onChangeArticle;
|
|
499
539
|
|
|
500
|
-
//
|
|
540
|
+
//if showSocialShare is not disabled for entire site, check article taxonomy, docgroup, authors for showSocialShare === false
|
|
541
|
+
if (showSocialShare) {
|
|
542
|
+
showSocialShare = getSocialShareDisableFlag(props.article);
|
|
543
|
+
}
|
|
501
544
|
|
|
545
|
+
//If sponsored flag, disable contextual ads
|
|
502
546
|
if (sponsoredFlag) {
|
|
503
547
|
article.contextualVideoAD = false;
|
|
504
548
|
article.contextualAD = false;
|
|
@@ -568,7 +612,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
568
612
|
};
|
|
569
613
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
570
614
|
if (biography) {
|
|
571
|
-
return
|
|
615
|
+
return React.createElement(BlockContent, _extends({
|
|
572
616
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
573
617
|
blocks: [biography]
|
|
574
618
|
}, client.config()));
|
|
@@ -578,9 +622,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
578
622
|
var url = article.url.current;
|
|
579
623
|
|
|
580
624
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
581
|
-
return
|
|
625
|
+
return React.createElement(ISIContent, null);
|
|
582
626
|
} else if (nationalPage === url && ISIContent) {
|
|
583
|
-
return
|
|
627
|
+
return React.createElement(ISIContent, { national: true });
|
|
584
628
|
}
|
|
585
629
|
return null;
|
|
586
630
|
};
|
|
@@ -611,19 +655,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
611
655
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
612
656
|
}
|
|
613
657
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
614
|
-
return
|
|
658
|
+
return React.createElement(
|
|
615
659
|
'div',
|
|
616
660
|
null,
|
|
617
661
|
relatedLinks.map(function (relatedLink, index) {
|
|
618
|
-
return
|
|
662
|
+
return React.createElement(
|
|
619
663
|
'span',
|
|
620
664
|
{ key: index, className: 'related-link' },
|
|
621
|
-
|
|
665
|
+
React.createElement(
|
|
622
666
|
'a',
|
|
623
667
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
624
668
|
relatedLink.label
|
|
625
669
|
),
|
|
626
|
-
|
|
670
|
+
React.createElement(
|
|
627
671
|
'style',
|
|
628
672
|
{ jsx: 'true' },
|
|
629
673
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -638,23 +682,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
638
682
|
};
|
|
639
683
|
|
|
640
684
|
var RelatedContent = function RelatedContent() {
|
|
641
|
-
return
|
|
685
|
+
return React.createElement(
|
|
642
686
|
'section',
|
|
643
687
|
{ id: 'related-content-section', className: 'my-1' },
|
|
644
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
688
|
+
(article.relatedArticle || RelevantTopics()) && React.createElement(
|
|
645
689
|
'p',
|
|
646
690
|
{ className: 'mb-0' },
|
|
647
|
-
|
|
691
|
+
React.createElement(
|
|
648
692
|
'b',
|
|
649
693
|
null,
|
|
650
694
|
'Related Content:'
|
|
651
695
|
)
|
|
652
696
|
),
|
|
653
|
-
|
|
654
|
-
|
|
697
|
+
React.createElement(RelevantTopics, null),
|
|
698
|
+
React.createElement(
|
|
655
699
|
'div',
|
|
656
700
|
{ className: 'pt-2' },
|
|
657
|
-
|
|
701
|
+
React.createElement(RelatedArticle, {
|
|
658
702
|
articles: article.relatedArticle,
|
|
659
703
|
client: client,
|
|
660
704
|
fallbackImage: props.Settings.logo,
|
|
@@ -665,28 +709,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
665
709
|
};
|
|
666
710
|
|
|
667
711
|
var form = function form() {
|
|
668
|
-
return
|
|
669
|
-
|
|
712
|
+
return React.createElement(
|
|
713
|
+
React.Fragment,
|
|
670
714
|
null,
|
|
671
|
-
|
|
715
|
+
React.createElement(
|
|
672
716
|
Head,
|
|
673
717
|
null,
|
|
674
|
-
|
|
718
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
675
719
|
),
|
|
676
|
-
|
|
720
|
+
React.createElement(
|
|
677
721
|
'div',
|
|
678
722
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
679
|
-
|
|
723
|
+
React.createElement(
|
|
680
724
|
Form,
|
|
681
725
|
{
|
|
682
726
|
inline: true,
|
|
683
727
|
onSubmit: function onSubmit(e) {
|
|
684
728
|
e.preventDefault();
|
|
685
729
|
} },
|
|
686
|
-
|
|
730
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
687
731
|
return setPasswordKey(e.target.value);
|
|
688
732
|
}, placeholder: 'Password' }),
|
|
689
|
-
|
|
733
|
+
React.createElement(
|
|
690
734
|
Button,
|
|
691
735
|
{
|
|
692
736
|
variant: 'primary',
|
|
@@ -736,31 +780,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
736
780
|
setContextualADFlag(true);
|
|
737
781
|
}
|
|
738
782
|
};
|
|
739
|
-
return
|
|
740
|
-
|
|
783
|
+
return React.createElement(
|
|
784
|
+
React.Fragment,
|
|
741
785
|
null,
|
|
742
|
-
|
|
786
|
+
React.createElement(BlockContent, _extends({
|
|
743
787
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
744
788
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
745
789
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
746
790
|
}, client.config())),
|
|
747
|
-
|
|
748
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
749
|
-
|
|
791
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
792
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
793
|
+
React.createElement(
|
|
750
794
|
'div',
|
|
751
795
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
752
|
-
|
|
796
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
753
797
|
refreshFlag: refreshFlag
|
|
754
798
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
755
799
|
}))
|
|
756
800
|
),
|
|
757
|
-
|
|
758
|
-
|
|
801
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
802
|
+
React.createElement(
|
|
759
803
|
'div',
|
|
760
804
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
761
|
-
|
|
805
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
762
806
|
),
|
|
763
|
-
|
|
807
|
+
React.createElement(BlockContent, _extends({
|
|
764
808
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
765
809
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
766
810
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -785,26 +829,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
785
829
|
if (seriesInfo.hasVideo) {
|
|
786
830
|
_selectedIndex = seriesInfo.videoIndex;
|
|
787
831
|
}
|
|
788
|
-
return
|
|
789
|
-
|
|
832
|
+
return React.createElement(
|
|
833
|
+
React.Fragment,
|
|
790
834
|
null,
|
|
791
|
-
|
|
835
|
+
React.createElement(BlockContent, _extends({
|
|
792
836
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
793
837
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
794
838
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
795
839
|
}, client.config())),
|
|
796
|
-
contextualADFlag &&
|
|
797
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
798
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
840
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
841
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
842
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
799
843
|
'div',
|
|
800
844
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
801
|
-
|
|
845
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
802
846
|
refreshFlag: refreshFlag
|
|
803
847
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
804
848
|
}))
|
|
805
849
|
),
|
|
806
|
-
contextualADFlag &&
|
|
807
|
-
|
|
850
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
851
|
+
React.createElement(BlockContent, _extends({
|
|
808
852
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
809
853
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
810
854
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -834,22 +878,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
834
878
|
}
|
|
835
879
|
};
|
|
836
880
|
|
|
837
|
-
return
|
|
838
|
-
|
|
881
|
+
return React.createElement(
|
|
882
|
+
React.Fragment,
|
|
839
883
|
null,
|
|
840
|
-
|
|
884
|
+
React.createElement(BlockContent, _extends({
|
|
841
885
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
842
886
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
843
887
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
844
888
|
}, client.config())),
|
|
845
|
-
|
|
846
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
847
|
-
|
|
889
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
890
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
891
|
+
React.createElement(
|
|
848
892
|
'div',
|
|
849
893
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
850
|
-
|
|
894
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
851
895
|
),
|
|
852
|
-
|
|
896
|
+
React.createElement(BlockContent, _extends({
|
|
853
897
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
854
898
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
855
899
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -861,16 +905,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
861
905
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
862
906
|
}
|
|
863
907
|
|
|
864
|
-
return
|
|
908
|
+
return React.createElement(
|
|
865
909
|
'div',
|
|
866
910
|
null,
|
|
867
|
-
|
|
911
|
+
React.createElement(BlockContent, _extends({
|
|
868
912
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
869
913
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
870
914
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
871
915
|
}, client.config())),
|
|
872
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
873
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
916
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
917
|
+
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
874
918
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
875
919
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
876
920
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -956,10 +1000,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
956
1000
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
957
1001
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
958
1002
|
|
|
959
|
-
return
|
|
960
|
-
|
|
1003
|
+
return React.createElement(
|
|
1004
|
+
React.Fragment,
|
|
961
1005
|
null,
|
|
962
|
-
|
|
1006
|
+
React.createElement(
|
|
963
1007
|
VisibilitySensor,
|
|
964
1008
|
{
|
|
965
1009
|
partialVisibility: true,
|
|
@@ -972,61 +1016,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
972
1016
|
});
|
|
973
1017
|
}
|
|
974
1018
|
} },
|
|
975
|
-
|
|
1019
|
+
React.createElement(
|
|
976
1020
|
'div',
|
|
977
1021
|
{ id: 'article__block', ref: ref },
|
|
978
|
-
|
|
1022
|
+
React.createElement(
|
|
979
1023
|
'div',
|
|
980
1024
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
981
1025
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
982
|
-
!isVideoSeries &&
|
|
1026
|
+
!isVideoSeries && React.createElement(
|
|
983
1027
|
'div',
|
|
984
1028
|
null,
|
|
985
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1029
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React.createElement(
|
|
986
1030
|
'p',
|
|
987
1031
|
{ style: { fontSize: '14px' } },
|
|
988
1032
|
article.documentGroup.name,
|
|
989
1033
|
' - Episode ',
|
|
990
1034
|
episodeNumber
|
|
991
1035
|
),
|
|
992
|
-
|
|
1036
|
+
React.createElement(
|
|
993
1037
|
'h1',
|
|
994
1038
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
995
1039
|
title
|
|
996
1040
|
)
|
|
997
1041
|
),
|
|
998
|
-
|
|
1042
|
+
React.createElement(
|
|
999
1043
|
'div',
|
|
1000
1044
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1001
|
-
|
|
1045
|
+
React.createElement(
|
|
1002
1046
|
'style',
|
|
1003
1047
|
{ jsx: 'true' },
|
|
1004
1048
|
'\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 '
|
|
1005
1049
|
),
|
|
1006
|
-
|
|
1050
|
+
React.createElement(
|
|
1007
1051
|
'div',
|
|
1008
1052
|
{ className: 'left-wrap' },
|
|
1009
|
-
!isVideoSeries && showPublished &&
|
|
1053
|
+
!isVideoSeries && showPublished && React.createElement(
|
|
1010
1054
|
'div',
|
|
1011
1055
|
null,
|
|
1012
1056
|
moment(published).format('LL')
|
|
1013
1057
|
)
|
|
1014
1058
|
/* Show Published date */
|
|
1015
1059
|
,
|
|
1016
|
-
|
|
1060
|
+
React.createElement(
|
|
1017
1061
|
'div',
|
|
1018
1062
|
{ className: 'mb-3' },
|
|
1019
1063
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1020
|
-
return
|
|
1064
|
+
return React.createElement(
|
|
1021
1065
|
'span',
|
|
1022
1066
|
{ key: index },
|
|
1023
1067
|
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())
|
|
1024
1068
|
);
|
|
1025
1069
|
}),
|
|
1026
|
-
|
|
1070
|
+
React.createElement(
|
|
1027
1071
|
'div',
|
|
1028
1072
|
null,
|
|
1029
|
-
source &&
|
|
1073
|
+
source && React.createElement(
|
|
1030
1074
|
'p',
|
|
1031
1075
|
{
|
|
1032
1076
|
style: {
|
|
@@ -1041,13 +1085,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1041
1085
|
source
|
|
1042
1086
|
)
|
|
1043
1087
|
),
|
|
1044
|
-
issue &&
|
|
1088
|
+
issue && React.createElement(
|
|
1045
1089
|
'div',
|
|
1046
1090
|
{ className: 'volume-issue' },
|
|
1047
|
-
issue.publication && issue.publication.name &&
|
|
1091
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
1048
1092
|
'span',
|
|
1049
1093
|
{ className: 'mb-0' },
|
|
1050
|
-
|
|
1094
|
+
React.createElement(
|
|
1051
1095
|
'b',
|
|
1052
1096
|
null,
|
|
1053
1097
|
issue.publication.name
|
|
@@ -1055,34 +1099,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1055
1099
|
',',
|
|
1056
1100
|
' '
|
|
1057
1101
|
),
|
|
1058
|
-
issue.name &&
|
|
1102
|
+
issue.name && React.createElement(
|
|
1059
1103
|
'span',
|
|
1060
1104
|
{ className: 'mb-0' },
|
|
1061
1105
|
issue.name,
|
|
1062
1106
|
', '
|
|
1063
1107
|
),
|
|
1064
|
-
issue.volume &&
|
|
1108
|
+
issue.volume && React.createElement(
|
|
1065
1109
|
'span',
|
|
1066
1110
|
null,
|
|
1067
1111
|
'Volume ' + issue.volume,
|
|
1068
1112
|
','
|
|
1069
1113
|
),
|
|
1070
|
-
issue.issueNumber &&
|
|
1114
|
+
issue.issueNumber && React.createElement(
|
|
1071
1115
|
'span',
|
|
1072
1116
|
null,
|
|
1073
1117
|
' Issue ' + issue.issueNumber
|
|
1074
1118
|
)
|
|
1075
1119
|
),
|
|
1076
|
-
pageNumber &&
|
|
1120
|
+
pageNumber && React.createElement(
|
|
1077
1121
|
'div',
|
|
1078
1122
|
{ className: 'article-pageNumber' },
|
|
1079
1123
|
'Pages: ' + pageNumber
|
|
1080
1124
|
)
|
|
1081
1125
|
),
|
|
1082
|
-
!isVideoSeries &&
|
|
1126
|
+
!isVideoSeries && showSocialShare && React.createElement(
|
|
1083
1127
|
'p',
|
|
1084
1128
|
null,
|
|
1085
|
-
|
|
1129
|
+
React.createElement(SocialShare, {
|
|
1086
1130
|
shareUrl: shareUrl,
|
|
1087
1131
|
shareTitle: shareTitle,
|
|
1088
1132
|
shareVia: shareVia,
|
|
@@ -1098,27 +1142,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1098
1142
|
})
|
|
1099
1143
|
)
|
|
1100
1144
|
),
|
|
1101
|
-
|
|
1145
|
+
React.createElement(
|
|
1102
1146
|
'div',
|
|
1103
1147
|
null,
|
|
1104
|
-
|
|
1148
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1105
1149
|
)
|
|
1106
1150
|
),
|
|
1107
|
-
!isVideoSeries && summary && display_summary &&
|
|
1151
|
+
!isVideoSeries && summary && display_summary && React.createElement(
|
|
1108
1152
|
'p',
|
|
1109
1153
|
null,
|
|
1110
|
-
|
|
1154
|
+
React.createElement(
|
|
1111
1155
|
'em',
|
|
1112
1156
|
null,
|
|
1113
1157
|
summary
|
|
1114
1158
|
)
|
|
1115
1159
|
),
|
|
1116
|
-
|
|
1160
|
+
React.createElement(
|
|
1117
1161
|
'div',
|
|
1118
1162
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1119
1163
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1120
1164
|
if (index === 0) {
|
|
1121
|
-
return
|
|
1165
|
+
return React.createElement(
|
|
1122
1166
|
'div',
|
|
1123
1167
|
{
|
|
1124
1168
|
key: index,
|
|
@@ -1135,24 +1179,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1135
1179
|
}
|
|
1136
1180
|
})
|
|
1137
1181
|
),
|
|
1138
|
-
|
|
1182
|
+
React.createElement(
|
|
1139
1183
|
'div',
|
|
1140
1184
|
{ className: 'block-content mt-3' },
|
|
1141
1185
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1142
|
-
|
|
1143
|
-
|
|
1186
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
1187
|
+
React.createElement(
|
|
1144
1188
|
'noscript',
|
|
1145
1189
|
null,
|
|
1146
|
-
|
|
1190
|
+
React.createElement(
|
|
1147
1191
|
'div',
|
|
1148
1192
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1149
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1193
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
1150
1194
|
'a',
|
|
1151
1195
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1152
1196
|
'Previous ',
|
|
1153
1197
|
props.article.seriesDetail.type
|
|
1154
1198
|
),
|
|
1155
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1199
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
1156
1200
|
'a',
|
|
1157
1201
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1158
1202
|
'Next ',
|
|
@@ -1160,26 +1204,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1160
1204
|
)
|
|
1161
1205
|
)
|
|
1162
1206
|
),
|
|
1163
|
-
issue && issue.url &&
|
|
1207
|
+
issue && issue.url && React.createElement(
|
|
1164
1208
|
'a',
|
|
1165
1209
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1166
|
-
|
|
1210
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1167
1211
|
'Download Issue : ',
|
|
1168
1212
|
issue.name
|
|
1169
1213
|
)
|
|
1170
1214
|
),
|
|
1171
|
-
|
|
1172
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1215
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1216
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React.createElement(
|
|
1173
1217
|
'div',
|
|
1174
1218
|
null,
|
|
1175
1219
|
false ,
|
|
1176
|
-
|
|
1220
|
+
React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1177
1221
|
),
|
|
1178
|
-
showRelatedArticles && !showIsi &&
|
|
1179
|
-
disqusConfig && showDisqus &&
|
|
1222
|
+
showRelatedArticles && !showIsi && React.createElement(RelatedContent, null),
|
|
1223
|
+
disqusConfig && showDisqus && React.createElement(
|
|
1180
1224
|
'div',
|
|
1181
1225
|
{ id: 'disqusContainer' },
|
|
1182
|
-
|
|
1226
|
+
React.createElement(DiscussionEmbed, {
|
|
1183
1227
|
shortname: disqusConfig.shortname,
|
|
1184
1228
|
config: {
|
|
1185
1229
|
url: disqusConfig.url,
|
|
@@ -1192,30 +1236,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1192
1236
|
renderIsiContent(props.article)
|
|
1193
1237
|
)
|
|
1194
1238
|
),
|
|
1195
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1239
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1196
1240
|
ISI,
|
|
1197
1241
|
null,
|
|
1198
|
-
|
|
1242
|
+
React.createElement(BlockContent, {
|
|
1199
1243
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1200
1244
|
blocks: isi
|
|
1201
1245
|
})
|
|
1202
1246
|
),
|
|
1203
1247
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1204
1248
|
if (index > 0) {
|
|
1205
|
-
return
|
|
1249
|
+
return React.createElement(
|
|
1206
1250
|
'div',
|
|
1207
1251
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1208
1252
|
ad.component
|
|
1209
1253
|
);
|
|
1210
1254
|
}
|
|
1211
1255
|
}),
|
|
1212
|
-
|
|
1256
|
+
React.createElement(
|
|
1213
1257
|
'noscript',
|
|
1214
1258
|
null,
|
|
1215
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1259
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1216
1260
|
'div',
|
|
1217
1261
|
{ style: { textAlign: 'center' } },
|
|
1218
|
-
|
|
1262
|
+
React.createElement(
|
|
1219
1263
|
'a',
|
|
1220
1264
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1221
1265
|
'Related Article ',
|
|
@@ -1223,7 +1267,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1223
1267
|
)
|
|
1224
1268
|
)
|
|
1225
1269
|
),
|
|
1226
|
-
props.infiniteScroll &&
|
|
1270
|
+
props.infiniteScroll && React.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1227
1271
|
);
|
|
1228
1272
|
};
|
|
1229
1273
|
|
|
@@ -1427,7 +1471,8 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1427
1471
|
|
|
1428
1472
|
var changeMeta = function changeMeta(meta) {
|
|
1429
1473
|
document.title = meta.shareTitle;
|
|
1430
|
-
|
|
1474
|
+
//this was throwing an error if there was no description, doing a check for the description meta
|
|
1475
|
+
if (document.querySelector('meta[name="description"]')) document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
1431
1476
|
document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
1432
1477
|
document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
1433
1478
|
document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
@@ -1436,7 +1481,8 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1436
1481
|
document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
1437
1482
|
document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
1438
1483
|
document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
1439
|
-
|
|
1484
|
+
//this was throwing an error if there was no description, doing a check for the description meta
|
|
1485
|
+
if (document.querySelector('meta[name="twitter:description"]')) document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
|
|
1440
1486
|
if (canonicalTag) {
|
|
1441
1487
|
document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
|
|
1442
1488
|
}
|
|
@@ -1460,14 +1506,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1460
1506
|
refreshAD(path);
|
|
1461
1507
|
};
|
|
1462
1508
|
|
|
1463
|
-
return
|
|
1509
|
+
return React.createElement(
|
|
1464
1510
|
InfiniteScroll,
|
|
1465
1511
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1466
1512
|
queueData.map(function (article, index) {
|
|
1467
|
-
return
|
|
1468
|
-
|
|
1513
|
+
return React.createElement(
|
|
1514
|
+
React.Fragment,
|
|
1469
1515
|
null,
|
|
1470
|
-
|
|
1516
|
+
React.createElement(Article, _extends({
|
|
1471
1517
|
key: index
|
|
1472
1518
|
}, props, {
|
|
1473
1519
|
containerHeight: containerHeight,
|
|
@@ -1515,24 +1561,6 @@ var View = function View(props) {
|
|
|
1515
1561
|
var title = _props$article2.title,
|
|
1516
1562
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1517
1563
|
|
|
1518
|
-
var showSocialShare = true;
|
|
1519
|
-
|
|
1520
|
-
if (props.article.documentGroup) {
|
|
1521
|
-
if (props.article.documentGroup.showSocialShare === false) {
|
|
1522
|
-
showSocialShare = false;
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
if (props.content_placement) {
|
|
1526
|
-
if (props.content_placement.showSocialShare === false) {
|
|
1527
|
-
showSocialShare = false;
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
if (props.authorDetails) {
|
|
1531
|
-
if (props.authorDetails.showSocialShare === false) {
|
|
1532
|
-
showSocialShare = false;
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
1564
|
var _useState = useState(0),
|
|
1537
1565
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1538
1566
|
currentPage = _useState2[0],
|
|
@@ -1627,63 +1655,63 @@ var View = function View(props) {
|
|
|
1627
1655
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1628
1656
|
}
|
|
1629
1657
|
|
|
1630
|
-
return
|
|
1631
|
-
|
|
1658
|
+
return React.createElement(
|
|
1659
|
+
React.Fragment,
|
|
1632
1660
|
null,
|
|
1633
|
-
|
|
1661
|
+
React.createElement(
|
|
1634
1662
|
Head,
|
|
1635
1663
|
null,
|
|
1636
|
-
|
|
1664
|
+
React.createElement(
|
|
1637
1665
|
'title',
|
|
1638
1666
|
{ key: 'title' },
|
|
1639
1667
|
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 : '')
|
|
1640
1668
|
),
|
|
1641
|
-
meta_description &&
|
|
1642
|
-
|
|
1643
|
-
passwordLock &&
|
|
1644
|
-
|
|
1669
|
+
meta_description && React.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1670
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1671
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1672
|
+
React.createElement('meta', {
|
|
1645
1673
|
property: 'og:url',
|
|
1646
1674
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1647
1675
|
key: 'og:url'
|
|
1648
1676
|
}),
|
|
1649
|
-
|
|
1677
|
+
React.createElement('meta', {
|
|
1650
1678
|
property: 'og:title',
|
|
1651
1679
|
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 : ''),
|
|
1652
1680
|
key: 'og:title'
|
|
1653
1681
|
}),
|
|
1654
|
-
|
|
1682
|
+
React.createElement('meta', {
|
|
1655
1683
|
property: 'og:image',
|
|
1656
1684
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1657
1685
|
key: 'og:image'
|
|
1658
1686
|
}),
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1687
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1688
|
+
React.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1689
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1690
|
+
React.createElement('meta', {
|
|
1663
1691
|
name: 'twitter:title',
|
|
1664
1692
|
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 : ''),
|
|
1665
1693
|
key: 'twitter:title'
|
|
1666
1694
|
}),
|
|
1667
|
-
|
|
1695
|
+
React.createElement('meta', {
|
|
1668
1696
|
name: 'twitter:image',
|
|
1669
1697
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1670
1698
|
key: 'twitter:image'
|
|
1671
1699
|
}),
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
canonicalTag &&
|
|
1700
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1701
|
+
React.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1702
|
+
canonicalTag && React.createElement('link', {
|
|
1675
1703
|
rel: 'canonical',
|
|
1676
1704
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1677
1705
|
key: 'canonical'
|
|
1678
1706
|
}),
|
|
1679
|
-
|
|
1707
|
+
React.createElement(
|
|
1680
1708
|
'noscript',
|
|
1681
1709
|
null,
|
|
1682
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1683
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1710
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1711
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1684
1712
|
)
|
|
1685
1713
|
),
|
|
1686
|
-
!needInfiniteScroll ?
|
|
1714
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React.createElement(ArticleQueue, _extends({
|
|
1687
1715
|
infiniteScroll: true,
|
|
1688
1716
|
showRelatedArticles: showRelatedArticles,
|
|
1689
1717
|
canonicalTag: canonicalTag,
|