@mjhls/mjh-framework 1.0.809-disable-social-share-test → 1.0.809
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 +2 -3
- package/dist/cjs/AD300x250x600.js +2 -3
- package/dist/cjs/AD728x90.js +2 -3
- package/dist/cjs/ADFloatingFooter.js +2 -3
- package/dist/cjs/ADGutter.js +2 -3
- package/dist/cjs/ADSkyscraper.js +2 -3
- package/dist/cjs/ADSponsoredResources.js +2 -3
- package/dist/cjs/ADWebcast.js +2 -3
- package/dist/cjs/ADWelcome.js +2 -3
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +2 -3
- package/dist/cjs/AdSlotsProvider.js +2 -3
- package/dist/cjs/AlgoliaSearch.js +19 -14100
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -5
- package/dist/cjs/CMEDeck.js +2 -3
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -6
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -5
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +5 -6
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +33 -34
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +12 -13
- package/dist/cjs/MediaSeriesLanding.js +408 -308
- 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 +7 -8
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- 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 +3 -4
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-2db54929.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +34 -55
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-c8081c76.js → getTargeting-fbbe92ba.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-667c091e.js → index-a766f892.js} +3 -3
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +14 -15
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -7
- package/dist/esm/AD300x250x600.js +6 -7
- package/dist/esm/AD728x90.js +7 -8
- package/dist/esm/ADFloatingFooter.js +9 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -10
- package/dist/esm/{ADInfeed-6ed88032.js → ADInfeed-33e556f5.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -10
- package/dist/esm/ADSponsoredResources.js +9 -10
- package/dist/esm/ADWebcast.js +9 -10
- package/dist/esm/ADWelcome.js +13 -14
- package/dist/esm/{ADlgInfeed-e02d1d98.js → ADlgInfeed-1270c526.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -6
- package/dist/esm/AdSlotsProvider.js +4 -5
- package/dist/esm/AlgoliaSearch.js +39 -14120
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -18
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -32
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -58
- package/dist/esm/DeckQueue.js +42 -43
- package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -36
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +103 -104
- 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 +31 -32
- 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 +42 -43
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +46 -47
- package/dist/esm/MediaSeriesLanding.js +431 -331
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.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 +62 -63
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -15
- 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 +246 -247
- 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 +19 -20
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-c8477bf3.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db963c3e.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +30 -31
- 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 +24 -25
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -13
- package/dist/esm/VideoSeriesListing.js +47 -48
- package/dist/esm/View.js +194 -215
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-2302c1b4.js → getTargeting-0958ad0e.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-d2fb744b.js → index-f354da27.js} +339 -339
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +39 -40
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +109 -109
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- /package/dist/cjs/{ADInfeed-77f334bb.js → ADInfeed-d9976673.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0664c67f.js → ADlgInfeed-0610e1bb.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__default, { 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-c99c9a8d.js';
|
|
11
|
+
import { m as main_43 } from './main-d4165069.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-72fd8f8b.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-f354da27.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-c8477bf3.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-0958ad0e.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-d4932dea.js';
|
|
26
26
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
|
-
import './index-
|
|
27
|
+
import './index-755f2cc2.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-a6137319.js';
|
|
31
|
+
import { l as lib_3 } from './index-5cc7b406.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-57a70a56.js';
|
|
53
53
|
import './GroupDeck.js';
|
|
54
54
|
import './smoothscroll-fa4e3f8c.js';
|
|
55
55
|
import './_is-array-3e99e06e.js';
|
|
@@ -61,13 +61,12 @@ 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-f6156a57.js';
|
|
65
|
+
import './iconBase-ccc56b97.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';
|
|
71
70
|
import './index-db3bb315.js';
|
|
72
71
|
|
|
73
72
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -146,17 +145,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
146
145
|
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
|
|
147
146
|
}
|
|
148
147
|
|
|
149
|
-
return
|
|
148
|
+
return React__default.createElement(
|
|
150
149
|
'a',
|
|
151
150
|
{
|
|
152
151
|
href: url,
|
|
153
152
|
className: 'doc-group',
|
|
154
153
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
155
|
-
thumbnailUrl &&
|
|
156
|
-
!thumbnailUrl &&
|
|
154
|
+
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
155
|
+
!thumbnailUrl && React__default.createElement('p', {
|
|
157
156
|
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
158
157
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
159
|
-
main_43 && !thumbnailUrl &&
|
|
158
|
+
main_43 && !thumbnailUrl && React__default.createElement(
|
|
160
159
|
'style',
|
|
161
160
|
{ jsx: 'true' },
|
|
162
161
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -296,38 +295,38 @@ var ISI = function ISI(props) {
|
|
|
296
295
|
}, 300);
|
|
297
296
|
}
|
|
298
297
|
};
|
|
299
|
-
return
|
|
300
|
-
|
|
298
|
+
return React__default.createElement(
|
|
299
|
+
React__default.Fragment,
|
|
301
300
|
null,
|
|
302
|
-
|
|
301
|
+
React__default.createElement(
|
|
303
302
|
'div',
|
|
304
303
|
{ id: 'isi', ref: isi },
|
|
305
|
-
|
|
304
|
+
React__default.createElement(
|
|
306
305
|
'div',
|
|
307
306
|
{ id: 'isiContent' },
|
|
308
|
-
|
|
307
|
+
React__default.createElement(
|
|
309
308
|
'div',
|
|
310
309
|
{ onClick: function onClick() {
|
|
311
310
|
return setActive(function (prev) {
|
|
312
311
|
return !prev;
|
|
313
312
|
});
|
|
314
313
|
}, id: 'isiToggle' },
|
|
315
|
-
active ?
|
|
314
|
+
active ? React__default.createElement(
|
|
316
315
|
'p',
|
|
317
316
|
null,
|
|
318
317
|
'Close ',
|
|
319
|
-
|
|
320
|
-
) :
|
|
318
|
+
React__default.createElement(FaMinus, null)
|
|
319
|
+
) : React__default.createElement(
|
|
321
320
|
'p',
|
|
322
321
|
null,
|
|
323
322
|
'See More ',
|
|
324
|
-
|
|
323
|
+
React__default.createElement(FaPlus, null)
|
|
325
324
|
)
|
|
326
325
|
),
|
|
327
326
|
children
|
|
328
327
|
)
|
|
329
328
|
),
|
|
330
|
-
|
|
329
|
+
React__default.createElement(
|
|
331
330
|
'style',
|
|
332
331
|
{ jsx: true },
|
|
333
332
|
'\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 '
|
|
@@ -335,7 +334,7 @@ var ISI = function ISI(props) {
|
|
|
335
334
|
);
|
|
336
335
|
};
|
|
337
336
|
|
|
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";
|
|
337
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
339
338
|
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" };
|
|
340
339
|
styleInject(css);
|
|
341
340
|
|
|
@@ -349,33 +348,33 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
349
348
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
350
349
|
return null;
|
|
351
350
|
}
|
|
352
|
-
return
|
|
351
|
+
return React__default.createElement(
|
|
353
352
|
'div',
|
|
354
353
|
{ className: styles.mediaContainer },
|
|
355
354
|
articles.map(function (article, index) {
|
|
356
|
-
return
|
|
355
|
+
return React__default.createElement(
|
|
357
356
|
'div',
|
|
358
357
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
359
|
-
|
|
358
|
+
React__default.createElement(
|
|
360
359
|
'a',
|
|
361
360
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
362
|
-
article.thumbnail ?
|
|
361
|
+
article.thumbnail ? React__default.createElement('img', {
|
|
363
362
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
364
363
|
src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
|
|
365
364
|
alt: article.title
|
|
366
|
-
}) :
|
|
367
|
-
|
|
365
|
+
}) : React__default.createElement(
|
|
366
|
+
React__default.Fragment,
|
|
368
367
|
null,
|
|
369
|
-
fallbackImage && showRelatedArticleFallbackImage &&
|
|
368
|
+
fallbackImage && showRelatedArticleFallbackImage && React__default.createElement('img', { src: fallbackImage, alt: 'website logo', style: { objectFit: 'contain' } })
|
|
370
369
|
)
|
|
371
370
|
),
|
|
372
|
-
|
|
371
|
+
React__default.createElement(
|
|
373
372
|
'div',
|
|
374
373
|
{ className: styles.mediaBody },
|
|
375
|
-
|
|
374
|
+
React__default.createElement(
|
|
376
375
|
'a',
|
|
377
376
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
378
|
-
|
|
377
|
+
React__default.createElement(
|
|
379
378
|
'div',
|
|
380
379
|
{ className: styles.cardTitle },
|
|
381
380
|
article.title
|
|
@@ -387,36 +386,6 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
387
386
|
);
|
|
388
387
|
};
|
|
389
388
|
|
|
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
|
-
|
|
417
|
-
return showSocialShare;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
389
|
var Article = forwardRef(function (props, ref) {
|
|
421
390
|
var onVote = function () {
|
|
422
391
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -474,10 +443,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
474
443
|
_props$hideFBShare = props.hideFBShare,
|
|
475
444
|
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
476
445
|
_props$hidePinterestS = props.hidePinterestShare,
|
|
477
|
-
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS
|
|
478
|
-
onChangeArticle = props.onChangeArticle,
|
|
479
|
-
_props$showSocialShar = props.showSocialShare,
|
|
480
|
-
showSocialShare = _props$showSocialShar === undefined ? true : _props$showSocialShar;
|
|
446
|
+
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS;
|
|
481
447
|
var client = props.client,
|
|
482
448
|
pageview = props.pageview,
|
|
483
449
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -529,14 +495,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
529
495
|
showDisqus = props.showDisqus;
|
|
530
496
|
|
|
531
497
|
var targeting = getTargeting(props);
|
|
532
|
-
|
|
533
|
-
if (showSocialShare) {
|
|
534
|
-
showSocialShare = getSocialShareDisableFlag(props.article);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
console.log('SHOW SOCIAL SHARE', showSocialShare, article);
|
|
498
|
+
var onChangeArticle = props.onChangeArticle;
|
|
538
499
|
|
|
539
500
|
//If sponsored flag, disable contextual ads
|
|
501
|
+
|
|
540
502
|
if (sponsoredFlag) {
|
|
541
503
|
article.contextualVideoAD = false;
|
|
542
504
|
article.contextualAD = false;
|
|
@@ -606,7 +568,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
606
568
|
};
|
|
607
569
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
608
570
|
if (biography) {
|
|
609
|
-
return
|
|
571
|
+
return React__default.createElement(BlockContent, _extends({
|
|
610
572
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
611
573
|
blocks: [biography]
|
|
612
574
|
}, client.config()));
|
|
@@ -616,9 +578,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
616
578
|
var url = article.url.current;
|
|
617
579
|
|
|
618
580
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
619
|
-
return
|
|
581
|
+
return React__default.createElement(ISIContent, null);
|
|
620
582
|
} else if (nationalPage === url && ISIContent) {
|
|
621
|
-
return
|
|
583
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
622
584
|
}
|
|
623
585
|
return null;
|
|
624
586
|
};
|
|
@@ -649,19 +611,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
649
611
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
650
612
|
}
|
|
651
613
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
652
|
-
return
|
|
614
|
+
return React__default.createElement(
|
|
653
615
|
'div',
|
|
654
616
|
null,
|
|
655
617
|
relatedLinks.map(function (relatedLink, index) {
|
|
656
|
-
return
|
|
618
|
+
return React__default.createElement(
|
|
657
619
|
'span',
|
|
658
620
|
{ key: index, className: 'related-link' },
|
|
659
|
-
|
|
621
|
+
React__default.createElement(
|
|
660
622
|
'a',
|
|
661
623
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
662
624
|
relatedLink.label
|
|
663
625
|
),
|
|
664
|
-
|
|
626
|
+
React__default.createElement(
|
|
665
627
|
'style',
|
|
666
628
|
{ jsx: 'true' },
|
|
667
629
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -676,23 +638,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
676
638
|
};
|
|
677
639
|
|
|
678
640
|
var RelatedContent = function RelatedContent() {
|
|
679
|
-
return
|
|
641
|
+
return React__default.createElement(
|
|
680
642
|
'section',
|
|
681
643
|
{ id: 'related-content-section', className: 'my-1' },
|
|
682
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
644
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
683
645
|
'p',
|
|
684
646
|
{ className: 'mb-0' },
|
|
685
|
-
|
|
647
|
+
React__default.createElement(
|
|
686
648
|
'b',
|
|
687
649
|
null,
|
|
688
650
|
'Related Content:'
|
|
689
651
|
)
|
|
690
652
|
),
|
|
691
|
-
|
|
692
|
-
|
|
653
|
+
React__default.createElement(RelevantTopics, null),
|
|
654
|
+
React__default.createElement(
|
|
693
655
|
'div',
|
|
694
656
|
{ className: 'pt-2' },
|
|
695
|
-
|
|
657
|
+
React__default.createElement(RelatedArticle, {
|
|
696
658
|
articles: article.relatedArticle,
|
|
697
659
|
client: client,
|
|
698
660
|
fallbackImage: props.Settings.logo,
|
|
@@ -703,28 +665,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
703
665
|
};
|
|
704
666
|
|
|
705
667
|
var form = function form() {
|
|
706
|
-
return
|
|
707
|
-
|
|
668
|
+
return React__default.createElement(
|
|
669
|
+
React__default.Fragment,
|
|
708
670
|
null,
|
|
709
|
-
|
|
671
|
+
React__default.createElement(
|
|
710
672
|
Head,
|
|
711
673
|
null,
|
|
712
|
-
|
|
674
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
713
675
|
),
|
|
714
|
-
|
|
676
|
+
React__default.createElement(
|
|
715
677
|
'div',
|
|
716
678
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
717
|
-
|
|
679
|
+
React__default.createElement(
|
|
718
680
|
Form,
|
|
719
681
|
{
|
|
720
682
|
inline: true,
|
|
721
683
|
onSubmit: function onSubmit(e) {
|
|
722
684
|
e.preventDefault();
|
|
723
685
|
} },
|
|
724
|
-
|
|
686
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
725
687
|
return setPasswordKey(e.target.value);
|
|
726
688
|
}, placeholder: 'Password' }),
|
|
727
|
-
|
|
689
|
+
React__default.createElement(
|
|
728
690
|
Button,
|
|
729
691
|
{
|
|
730
692
|
variant: 'primary',
|
|
@@ -774,31 +736,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
774
736
|
setContextualADFlag(true);
|
|
775
737
|
}
|
|
776
738
|
};
|
|
777
|
-
return
|
|
778
|
-
|
|
739
|
+
return React__default.createElement(
|
|
740
|
+
React__default.Fragment,
|
|
779
741
|
null,
|
|
780
|
-
|
|
742
|
+
React__default.createElement(BlockContent, _extends({
|
|
781
743
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
782
744
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
783
745
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
784
746
|
}, client.config())),
|
|
785
|
-
|
|
786
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
787
|
-
|
|
747
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
748
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
749
|
+
React__default.createElement(
|
|
788
750
|
'div',
|
|
789
751
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
790
|
-
|
|
752
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
791
753
|
refreshFlag: refreshFlag
|
|
792
754
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
793
755
|
}))
|
|
794
756
|
),
|
|
795
|
-
|
|
796
|
-
|
|
757
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
758
|
+
React__default.createElement(
|
|
797
759
|
'div',
|
|
798
760
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
799
|
-
|
|
761
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
800
762
|
),
|
|
801
|
-
|
|
763
|
+
React__default.createElement(BlockContent, _extends({
|
|
802
764
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
803
765
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
804
766
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -823,26 +785,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
823
785
|
if (seriesInfo.hasVideo) {
|
|
824
786
|
_selectedIndex = seriesInfo.videoIndex;
|
|
825
787
|
}
|
|
826
|
-
return
|
|
827
|
-
|
|
788
|
+
return React__default.createElement(
|
|
789
|
+
React__default.Fragment,
|
|
828
790
|
null,
|
|
829
|
-
|
|
791
|
+
React__default.createElement(BlockContent, _extends({
|
|
830
792
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
831
793
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
832
794
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
833
795
|
}, client.config())),
|
|
834
|
-
contextualADFlag &&
|
|
835
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
836
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
796
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
797
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
798
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
837
799
|
'div',
|
|
838
800
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
839
|
-
|
|
801
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
840
802
|
refreshFlag: refreshFlag
|
|
841
803
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
842
804
|
}))
|
|
843
805
|
),
|
|
844
|
-
contextualADFlag &&
|
|
845
|
-
|
|
806
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
807
|
+
React__default.createElement(BlockContent, _extends({
|
|
846
808
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
847
809
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
848
810
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -872,22 +834,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
872
834
|
}
|
|
873
835
|
};
|
|
874
836
|
|
|
875
|
-
return
|
|
876
|
-
|
|
837
|
+
return React__default.createElement(
|
|
838
|
+
React__default.Fragment,
|
|
877
839
|
null,
|
|
878
|
-
|
|
840
|
+
React__default.createElement(BlockContent, _extends({
|
|
879
841
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
880
842
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
881
843
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
882
844
|
}, client.config())),
|
|
883
|
-
|
|
884
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
885
|
-
|
|
845
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
846
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
847
|
+
React__default.createElement(
|
|
886
848
|
'div',
|
|
887
849
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
888
|
-
|
|
850
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
889
851
|
),
|
|
890
|
-
|
|
852
|
+
React__default.createElement(BlockContent, _extends({
|
|
891
853
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
892
854
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
893
855
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -899,16 +861,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
899
861
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
900
862
|
}
|
|
901
863
|
|
|
902
|
-
return
|
|
864
|
+
return React__default.createElement(
|
|
903
865
|
'div',
|
|
904
866
|
null,
|
|
905
|
-
|
|
867
|
+
React__default.createElement(BlockContent, _extends({
|
|
906
868
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
907
869
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
908
870
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
909
871
|
}, client.config())),
|
|
910
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
911
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
872
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
873
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
912
874
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
913
875
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
914
876
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -994,10 +956,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
994
956
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
995
957
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
996
958
|
|
|
997
|
-
return
|
|
998
|
-
|
|
959
|
+
return React__default.createElement(
|
|
960
|
+
React__default.Fragment,
|
|
999
961
|
null,
|
|
1000
|
-
|
|
962
|
+
React__default.createElement(
|
|
1001
963
|
VisibilitySensor,
|
|
1002
964
|
{
|
|
1003
965
|
partialVisibility: true,
|
|
@@ -1010,61 +972,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1010
972
|
});
|
|
1011
973
|
}
|
|
1012
974
|
} },
|
|
1013
|
-
|
|
975
|
+
React__default.createElement(
|
|
1014
976
|
'div',
|
|
1015
977
|
{ id: 'article__block', ref: ref },
|
|
1016
|
-
|
|
978
|
+
React__default.createElement(
|
|
1017
979
|
'div',
|
|
1018
980
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1019
981
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1020
|
-
!isVideoSeries &&
|
|
982
|
+
!isVideoSeries && React__default.createElement(
|
|
1021
983
|
'div',
|
|
1022
984
|
null,
|
|
1023
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
985
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1024
986
|
'p',
|
|
1025
987
|
{ style: { fontSize: '14px' } },
|
|
1026
988
|
article.documentGroup.name,
|
|
1027
989
|
' - Episode ',
|
|
1028
990
|
episodeNumber
|
|
1029
991
|
),
|
|
1030
|
-
|
|
992
|
+
React__default.createElement(
|
|
1031
993
|
'h1',
|
|
1032
994
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1033
995
|
title
|
|
1034
996
|
)
|
|
1035
997
|
),
|
|
1036
|
-
|
|
998
|
+
React__default.createElement(
|
|
1037
999
|
'div',
|
|
1038
1000
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1039
|
-
|
|
1001
|
+
React__default.createElement(
|
|
1040
1002
|
'style',
|
|
1041
1003
|
{ jsx: 'true' },
|
|
1042
1004
|
'\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 '
|
|
1043
1005
|
),
|
|
1044
|
-
|
|
1006
|
+
React__default.createElement(
|
|
1045
1007
|
'div',
|
|
1046
1008
|
{ className: 'left-wrap' },
|
|
1047
|
-
!isVideoSeries && showPublished &&
|
|
1009
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1048
1010
|
'div',
|
|
1049
1011
|
null,
|
|
1050
1012
|
moment(published).format('LL')
|
|
1051
1013
|
)
|
|
1052
1014
|
/* Show Published date */
|
|
1053
1015
|
,
|
|
1054
|
-
|
|
1016
|
+
React__default.createElement(
|
|
1055
1017
|
'div',
|
|
1056
1018
|
{ className: 'mb-3' },
|
|
1057
1019
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1058
|
-
return
|
|
1020
|
+
return React__default.createElement(
|
|
1059
1021
|
'span',
|
|
1060
1022
|
{ key: index },
|
|
1061
1023
|
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())
|
|
1062
1024
|
);
|
|
1063
1025
|
}),
|
|
1064
|
-
|
|
1026
|
+
React__default.createElement(
|
|
1065
1027
|
'div',
|
|
1066
1028
|
null,
|
|
1067
|
-
source &&
|
|
1029
|
+
source && React__default.createElement(
|
|
1068
1030
|
'p',
|
|
1069
1031
|
{
|
|
1070
1032
|
style: {
|
|
@@ -1079,13 +1041,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1079
1041
|
source
|
|
1080
1042
|
)
|
|
1081
1043
|
),
|
|
1082
|
-
issue &&
|
|
1044
|
+
issue && React__default.createElement(
|
|
1083
1045
|
'div',
|
|
1084
1046
|
{ className: 'volume-issue' },
|
|
1085
|
-
issue.publication && issue.publication.name &&
|
|
1047
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1086
1048
|
'span',
|
|
1087
1049
|
{ className: 'mb-0' },
|
|
1088
|
-
|
|
1050
|
+
React__default.createElement(
|
|
1089
1051
|
'b',
|
|
1090
1052
|
null,
|
|
1091
1053
|
issue.publication.name
|
|
@@ -1093,34 +1055,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1093
1055
|
',',
|
|
1094
1056
|
' '
|
|
1095
1057
|
),
|
|
1096
|
-
issue.name &&
|
|
1058
|
+
issue.name && React__default.createElement(
|
|
1097
1059
|
'span',
|
|
1098
1060
|
{ className: 'mb-0' },
|
|
1099
1061
|
issue.name,
|
|
1100
1062
|
', '
|
|
1101
1063
|
),
|
|
1102
|
-
issue.volume &&
|
|
1064
|
+
issue.volume && React__default.createElement(
|
|
1103
1065
|
'span',
|
|
1104
1066
|
null,
|
|
1105
1067
|
'Volume ' + issue.volume,
|
|
1106
1068
|
','
|
|
1107
1069
|
),
|
|
1108
|
-
issue.issueNumber &&
|
|
1070
|
+
issue.issueNumber && React__default.createElement(
|
|
1109
1071
|
'span',
|
|
1110
1072
|
null,
|
|
1111
1073
|
' Issue ' + issue.issueNumber
|
|
1112
1074
|
)
|
|
1113
1075
|
),
|
|
1114
|
-
pageNumber &&
|
|
1076
|
+
pageNumber && React__default.createElement(
|
|
1115
1077
|
'div',
|
|
1116
1078
|
{ className: 'article-pageNumber' },
|
|
1117
1079
|
'Pages: ' + pageNumber
|
|
1118
1080
|
)
|
|
1119
1081
|
),
|
|
1120
|
-
!isVideoSeries &&
|
|
1082
|
+
!isVideoSeries && React__default.createElement(
|
|
1121
1083
|
'p',
|
|
1122
1084
|
null,
|
|
1123
|
-
|
|
1085
|
+
React__default.createElement(SocialShare, {
|
|
1124
1086
|
shareUrl: shareUrl,
|
|
1125
1087
|
shareTitle: shareTitle,
|
|
1126
1088
|
shareVia: shareVia,
|
|
@@ -1132,32 +1094,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1132
1094
|
twitterSiteName: twitterSiteName,
|
|
1133
1095
|
disableMeta: true,
|
|
1134
1096
|
hidePinterest: hidePinterestShare,
|
|
1135
|
-
hideFacebook: hideFBShare
|
|
1136
|
-
showSocialShare: showSocialShare
|
|
1097
|
+
hideFacebook: hideFBShare
|
|
1137
1098
|
})
|
|
1138
1099
|
)
|
|
1139
1100
|
),
|
|
1140
|
-
|
|
1101
|
+
React__default.createElement(
|
|
1141
1102
|
'div',
|
|
1142
1103
|
null,
|
|
1143
|
-
|
|
1104
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1144
1105
|
)
|
|
1145
1106
|
),
|
|
1146
|
-
!isVideoSeries && summary && display_summary &&
|
|
1107
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1147
1108
|
'p',
|
|
1148
1109
|
null,
|
|
1149
|
-
|
|
1110
|
+
React__default.createElement(
|
|
1150
1111
|
'em',
|
|
1151
1112
|
null,
|
|
1152
1113
|
summary
|
|
1153
1114
|
)
|
|
1154
1115
|
),
|
|
1155
|
-
|
|
1116
|
+
React__default.createElement(
|
|
1156
1117
|
'div',
|
|
1157
1118
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1158
1119
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1159
1120
|
if (index === 0) {
|
|
1160
|
-
return
|
|
1121
|
+
return React__default.createElement(
|
|
1161
1122
|
'div',
|
|
1162
1123
|
{
|
|
1163
1124
|
key: index,
|
|
@@ -1174,24 +1135,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1174
1135
|
}
|
|
1175
1136
|
})
|
|
1176
1137
|
),
|
|
1177
|
-
|
|
1138
|
+
React__default.createElement(
|
|
1178
1139
|
'div',
|
|
1179
1140
|
{ className: 'block-content mt-3' },
|
|
1180
1141
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1181
|
-
|
|
1182
|
-
|
|
1142
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1143
|
+
React__default.createElement(
|
|
1183
1144
|
'noscript',
|
|
1184
1145
|
null,
|
|
1185
|
-
|
|
1146
|
+
React__default.createElement(
|
|
1186
1147
|
'div',
|
|
1187
1148
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1188
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1149
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1189
1150
|
'a',
|
|
1190
1151
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1191
1152
|
'Previous ',
|
|
1192
1153
|
props.article.seriesDetail.type
|
|
1193
1154
|
),
|
|
1194
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1155
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1195
1156
|
'a',
|
|
1196
1157
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1197
1158
|
'Next ',
|
|
@@ -1199,26 +1160,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1199
1160
|
)
|
|
1200
1161
|
)
|
|
1201
1162
|
),
|
|
1202
|
-
issue && issue.url &&
|
|
1163
|
+
issue && issue.url && React__default.createElement(
|
|
1203
1164
|
'a',
|
|
1204
1165
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1205
|
-
|
|
1166
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1206
1167
|
'Download Issue : ',
|
|
1207
1168
|
issue.name
|
|
1208
1169
|
)
|
|
1209
1170
|
),
|
|
1210
|
-
|
|
1211
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1171
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1172
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1212
1173
|
'div',
|
|
1213
1174
|
null,
|
|
1214
1175
|
false ,
|
|
1215
|
-
|
|
1176
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1216
1177
|
),
|
|
1217
|
-
showRelatedArticles && !showIsi &&
|
|
1218
|
-
disqusConfig && showDisqus &&
|
|
1178
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1179
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1219
1180
|
'div',
|
|
1220
1181
|
{ id: 'disqusContainer' },
|
|
1221
|
-
|
|
1182
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1222
1183
|
shortname: disqusConfig.shortname,
|
|
1223
1184
|
config: {
|
|
1224
1185
|
url: disqusConfig.url,
|
|
@@ -1231,30 +1192,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1231
1192
|
renderIsiContent(props.article)
|
|
1232
1193
|
)
|
|
1233
1194
|
),
|
|
1234
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1195
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1235
1196
|
ISI,
|
|
1236
1197
|
null,
|
|
1237
|
-
|
|
1198
|
+
React__default.createElement(BlockContent, {
|
|
1238
1199
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1239
1200
|
blocks: isi
|
|
1240
1201
|
})
|
|
1241
1202
|
),
|
|
1242
1203
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1243
1204
|
if (index > 0) {
|
|
1244
|
-
return
|
|
1205
|
+
return React__default.createElement(
|
|
1245
1206
|
'div',
|
|
1246
1207
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1247
1208
|
ad.component
|
|
1248
1209
|
);
|
|
1249
1210
|
}
|
|
1250
1211
|
}),
|
|
1251
|
-
|
|
1212
|
+
React__default.createElement(
|
|
1252
1213
|
'noscript',
|
|
1253
1214
|
null,
|
|
1254
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1215
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1255
1216
|
'div',
|
|
1256
1217
|
{ style: { textAlign: 'center' } },
|
|
1257
|
-
|
|
1218
|
+
React__default.createElement(
|
|
1258
1219
|
'a',
|
|
1259
1220
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1260
1221
|
'Related Article ',
|
|
@@ -1262,7 +1223,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1262
1223
|
)
|
|
1263
1224
|
)
|
|
1264
1225
|
),
|
|
1265
|
-
props.infiniteScroll &&
|
|
1226
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1266
1227
|
);
|
|
1267
1228
|
};
|
|
1268
1229
|
|
|
@@ -1466,7 +1427,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1466
1427
|
|
|
1467
1428
|
var changeMeta = function changeMeta(meta) {
|
|
1468
1429
|
document.title = meta.shareTitle;
|
|
1469
|
-
|
|
1430
|
+
document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
1470
1431
|
document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
1471
1432
|
document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
1472
1433
|
document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
@@ -1475,7 +1436,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1475
1436
|
document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
1476
1437
|
document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
1477
1438
|
document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
1478
|
-
|
|
1439
|
+
document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
|
|
1479
1440
|
if (canonicalTag) {
|
|
1480
1441
|
document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
|
|
1481
1442
|
}
|
|
@@ -1499,14 +1460,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1499
1460
|
refreshAD(path);
|
|
1500
1461
|
};
|
|
1501
1462
|
|
|
1502
|
-
return
|
|
1463
|
+
return React__default.createElement(
|
|
1503
1464
|
InfiniteScroll,
|
|
1504
1465
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1505
1466
|
queueData.map(function (article, index) {
|
|
1506
|
-
return
|
|
1507
|
-
|
|
1467
|
+
return React__default.createElement(
|
|
1468
|
+
React__default.Fragment,
|
|
1508
1469
|
null,
|
|
1509
|
-
|
|
1470
|
+
React__default.createElement(Article, _extends({
|
|
1510
1471
|
key: index
|
|
1511
1472
|
}, props, {
|
|
1512
1473
|
containerHeight: containerHeight,
|
|
@@ -1554,6 +1515,24 @@ var View = function View(props) {
|
|
|
1554
1515
|
var title = _props$article2.title,
|
|
1555
1516
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1556
1517
|
|
|
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
|
+
|
|
1557
1536
|
var _useState = useState(0),
|
|
1558
1537
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1559
1538
|
currentPage = _useState2[0],
|
|
@@ -1648,63 +1627,63 @@ var View = function View(props) {
|
|
|
1648
1627
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1649
1628
|
}
|
|
1650
1629
|
|
|
1651
|
-
return
|
|
1652
|
-
|
|
1630
|
+
return React__default.createElement(
|
|
1631
|
+
React__default.Fragment,
|
|
1653
1632
|
null,
|
|
1654
|
-
|
|
1633
|
+
React__default.createElement(
|
|
1655
1634
|
Head,
|
|
1656
1635
|
null,
|
|
1657
|
-
|
|
1636
|
+
React__default.createElement(
|
|
1658
1637
|
'title',
|
|
1659
1638
|
{ key: 'title' },
|
|
1660
1639
|
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 : '')
|
|
1661
1640
|
),
|
|
1662
|
-
meta_description &&
|
|
1663
|
-
|
|
1664
|
-
passwordLock &&
|
|
1665
|
-
|
|
1641
|
+
meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1642
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1643
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1644
|
+
React__default.createElement('meta', {
|
|
1666
1645
|
property: 'og:url',
|
|
1667
1646
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1668
1647
|
key: 'og:url'
|
|
1669
1648
|
}),
|
|
1670
|
-
|
|
1649
|
+
React__default.createElement('meta', {
|
|
1671
1650
|
property: 'og:title',
|
|
1672
1651
|
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 : ''),
|
|
1673
1652
|
key: 'og:title'
|
|
1674
1653
|
}),
|
|
1675
|
-
|
|
1654
|
+
React__default.createElement('meta', {
|
|
1676
1655
|
property: 'og:image',
|
|
1677
1656
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1678
1657
|
key: 'og:image'
|
|
1679
1658
|
}),
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1659
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1660
|
+
React__default.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1661
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1662
|
+
React__default.createElement('meta', {
|
|
1684
1663
|
name: 'twitter:title',
|
|
1685
1664
|
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 : ''),
|
|
1686
1665
|
key: 'twitter:title'
|
|
1687
1666
|
}),
|
|
1688
|
-
|
|
1667
|
+
React__default.createElement('meta', {
|
|
1689
1668
|
name: 'twitter:image',
|
|
1690
1669
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1691
1670
|
key: 'twitter:image'
|
|
1692
1671
|
}),
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
canonicalTag &&
|
|
1672
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1673
|
+
React__default.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1674
|
+
canonicalTag && React__default.createElement('link', {
|
|
1696
1675
|
rel: 'canonical',
|
|
1697
1676
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1698
1677
|
key: 'canonical'
|
|
1699
1678
|
}),
|
|
1700
|
-
|
|
1679
|
+
React__default.createElement(
|
|
1701
1680
|
'noscript',
|
|
1702
1681
|
null,
|
|
1703
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1704
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1682
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1683
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1705
1684
|
)
|
|
1706
1685
|
),
|
|
1707
|
-
!needInfiniteScroll ?
|
|
1686
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props, { showSocialShare: showSocialShare })) : React__default.createElement(ArticleQueue, _extends({
|
|
1708
1687
|
infiniteScroll: true,
|
|
1709
1688
|
showRelatedArticles: showRelatedArticles,
|
|
1710
1689
|
canonicalTag: canonicalTag,
|