@mjhls/mjh-framework 1.0.810-disable-social-share-v2 → 1.0.810
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/TaxonomyCard.js +3 -2
- 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 -62
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getQuery.js +2 -2
- 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 +38 -37
- 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 -222
- 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/getQuery.js +2 -2
- 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,43 +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
|
-
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
|
-
|
|
427
389
|
var Article = forwardRef(function (props, ref) {
|
|
428
390
|
var onVote = function () {
|
|
429
391
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -481,10 +443,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
481
443
|
_props$hideFBShare = props.hideFBShare,
|
|
482
444
|
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
483
445
|
_props$hidePinterestS = props.hidePinterestShare,
|
|
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;
|
|
446
|
+
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS;
|
|
488
447
|
var client = props.client,
|
|
489
448
|
pageview = props.pageview,
|
|
490
449
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -536,14 +495,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
536
495
|
showDisqus = props.showDisqus;
|
|
537
496
|
|
|
538
497
|
var targeting = getTargeting(props);
|
|
539
|
-
|
|
540
|
-
if (showSocialShare) {
|
|
541
|
-
showSocialShare = getSocialShareDisableFlag(props.article);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
console.log('SHOW SOCIAL SHARE', showSocialShare, article);
|
|
498
|
+
var onChangeArticle = props.onChangeArticle;
|
|
545
499
|
|
|
546
500
|
//If sponsored flag, disable contextual ads
|
|
501
|
+
|
|
547
502
|
if (sponsoredFlag) {
|
|
548
503
|
article.contextualVideoAD = false;
|
|
549
504
|
article.contextualAD = false;
|
|
@@ -613,7 +568,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
613
568
|
};
|
|
614
569
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
615
570
|
if (biography) {
|
|
616
|
-
return
|
|
571
|
+
return React__default.createElement(BlockContent, _extends({
|
|
617
572
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
618
573
|
blocks: [biography]
|
|
619
574
|
}, client.config()));
|
|
@@ -623,9 +578,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
623
578
|
var url = article.url.current;
|
|
624
579
|
|
|
625
580
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
626
|
-
return
|
|
581
|
+
return React__default.createElement(ISIContent, null);
|
|
627
582
|
} else if (nationalPage === url && ISIContent) {
|
|
628
|
-
return
|
|
583
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
629
584
|
}
|
|
630
585
|
return null;
|
|
631
586
|
};
|
|
@@ -656,19 +611,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
656
611
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
657
612
|
}
|
|
658
613
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
659
|
-
return
|
|
614
|
+
return React__default.createElement(
|
|
660
615
|
'div',
|
|
661
616
|
null,
|
|
662
617
|
relatedLinks.map(function (relatedLink, index) {
|
|
663
|
-
return
|
|
618
|
+
return React__default.createElement(
|
|
664
619
|
'span',
|
|
665
620
|
{ key: index, className: 'related-link' },
|
|
666
|
-
|
|
621
|
+
React__default.createElement(
|
|
667
622
|
'a',
|
|
668
623
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
669
624
|
relatedLink.label
|
|
670
625
|
),
|
|
671
|
-
|
|
626
|
+
React__default.createElement(
|
|
672
627
|
'style',
|
|
673
628
|
{ jsx: 'true' },
|
|
674
629
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -683,23 +638,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
683
638
|
};
|
|
684
639
|
|
|
685
640
|
var RelatedContent = function RelatedContent() {
|
|
686
|
-
return
|
|
641
|
+
return React__default.createElement(
|
|
687
642
|
'section',
|
|
688
643
|
{ id: 'related-content-section', className: 'my-1' },
|
|
689
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
644
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
690
645
|
'p',
|
|
691
646
|
{ className: 'mb-0' },
|
|
692
|
-
|
|
647
|
+
React__default.createElement(
|
|
693
648
|
'b',
|
|
694
649
|
null,
|
|
695
650
|
'Related Content:'
|
|
696
651
|
)
|
|
697
652
|
),
|
|
698
|
-
|
|
699
|
-
|
|
653
|
+
React__default.createElement(RelevantTopics, null),
|
|
654
|
+
React__default.createElement(
|
|
700
655
|
'div',
|
|
701
656
|
{ className: 'pt-2' },
|
|
702
|
-
|
|
657
|
+
React__default.createElement(RelatedArticle, {
|
|
703
658
|
articles: article.relatedArticle,
|
|
704
659
|
client: client,
|
|
705
660
|
fallbackImage: props.Settings.logo,
|
|
@@ -710,28 +665,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
710
665
|
};
|
|
711
666
|
|
|
712
667
|
var form = function form() {
|
|
713
|
-
return
|
|
714
|
-
|
|
668
|
+
return React__default.createElement(
|
|
669
|
+
React__default.Fragment,
|
|
715
670
|
null,
|
|
716
|
-
|
|
671
|
+
React__default.createElement(
|
|
717
672
|
Head,
|
|
718
673
|
null,
|
|
719
|
-
|
|
674
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
720
675
|
),
|
|
721
|
-
|
|
676
|
+
React__default.createElement(
|
|
722
677
|
'div',
|
|
723
678
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
724
|
-
|
|
679
|
+
React__default.createElement(
|
|
725
680
|
Form,
|
|
726
681
|
{
|
|
727
682
|
inline: true,
|
|
728
683
|
onSubmit: function onSubmit(e) {
|
|
729
684
|
e.preventDefault();
|
|
730
685
|
} },
|
|
731
|
-
|
|
686
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
732
687
|
return setPasswordKey(e.target.value);
|
|
733
688
|
}, placeholder: 'Password' }),
|
|
734
|
-
|
|
689
|
+
React__default.createElement(
|
|
735
690
|
Button,
|
|
736
691
|
{
|
|
737
692
|
variant: 'primary',
|
|
@@ -781,31 +736,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
781
736
|
setContextualADFlag(true);
|
|
782
737
|
}
|
|
783
738
|
};
|
|
784
|
-
return
|
|
785
|
-
|
|
739
|
+
return React__default.createElement(
|
|
740
|
+
React__default.Fragment,
|
|
786
741
|
null,
|
|
787
|
-
|
|
742
|
+
React__default.createElement(BlockContent, _extends({
|
|
788
743
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
789
744
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
790
745
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
791
746
|
}, client.config())),
|
|
792
|
-
|
|
793
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
794
|
-
|
|
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(
|
|
795
750
|
'div',
|
|
796
751
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
797
|
-
|
|
752
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
798
753
|
refreshFlag: refreshFlag
|
|
799
754
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
800
755
|
}))
|
|
801
756
|
),
|
|
802
|
-
|
|
803
|
-
|
|
757
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
758
|
+
React__default.createElement(
|
|
804
759
|
'div',
|
|
805
760
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
806
|
-
|
|
761
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
807
762
|
),
|
|
808
|
-
|
|
763
|
+
React__default.createElement(BlockContent, _extends({
|
|
809
764
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
810
765
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
811
766
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -830,26 +785,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
830
785
|
if (seriesInfo.hasVideo) {
|
|
831
786
|
_selectedIndex = seriesInfo.videoIndex;
|
|
832
787
|
}
|
|
833
|
-
return
|
|
834
|
-
|
|
788
|
+
return React__default.createElement(
|
|
789
|
+
React__default.Fragment,
|
|
835
790
|
null,
|
|
836
|
-
|
|
791
|
+
React__default.createElement(BlockContent, _extends({
|
|
837
792
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
838
793
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
839
794
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
840
795
|
}, client.config())),
|
|
841
|
-
contextualADFlag &&
|
|
842
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
843
|
-
(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(
|
|
844
799
|
'div',
|
|
845
800
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
846
|
-
|
|
801
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
847
802
|
refreshFlag: refreshFlag
|
|
848
803
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
849
804
|
}))
|
|
850
805
|
),
|
|
851
|
-
contextualADFlag &&
|
|
852
|
-
|
|
806
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
807
|
+
React__default.createElement(BlockContent, _extends({
|
|
853
808
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
854
809
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
855
810
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -879,22 +834,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
879
834
|
}
|
|
880
835
|
};
|
|
881
836
|
|
|
882
|
-
return
|
|
883
|
-
|
|
837
|
+
return React__default.createElement(
|
|
838
|
+
React__default.Fragment,
|
|
884
839
|
null,
|
|
885
|
-
|
|
840
|
+
React__default.createElement(BlockContent, _extends({
|
|
886
841
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
887
842
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
888
843
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
889
844
|
}, client.config())),
|
|
890
|
-
|
|
891
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
892
|
-
|
|
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(
|
|
893
848
|
'div',
|
|
894
849
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
895
|
-
|
|
850
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
896
851
|
),
|
|
897
|
-
|
|
852
|
+
React__default.createElement(BlockContent, _extends({
|
|
898
853
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
899
854
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
900
855
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -906,16 +861,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
906
861
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
907
862
|
}
|
|
908
863
|
|
|
909
|
-
return
|
|
864
|
+
return React__default.createElement(
|
|
910
865
|
'div',
|
|
911
866
|
null,
|
|
912
|
-
|
|
867
|
+
React__default.createElement(BlockContent, _extends({
|
|
913
868
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
914
869
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
915
870
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
916
871
|
}, client.config())),
|
|
917
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
918
|
-
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({
|
|
919
874
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
920
875
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
921
876
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1001,10 +956,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1001
956
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1002
957
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1003
958
|
|
|
1004
|
-
return
|
|
1005
|
-
|
|
959
|
+
return React__default.createElement(
|
|
960
|
+
React__default.Fragment,
|
|
1006
961
|
null,
|
|
1007
|
-
|
|
962
|
+
React__default.createElement(
|
|
1008
963
|
VisibilitySensor,
|
|
1009
964
|
{
|
|
1010
965
|
partialVisibility: true,
|
|
@@ -1017,61 +972,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1017
972
|
});
|
|
1018
973
|
}
|
|
1019
974
|
} },
|
|
1020
|
-
|
|
975
|
+
React__default.createElement(
|
|
1021
976
|
'div',
|
|
1022
977
|
{ id: 'article__block', ref: ref },
|
|
1023
|
-
|
|
978
|
+
React__default.createElement(
|
|
1024
979
|
'div',
|
|
1025
980
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1026
981
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1027
|
-
!isVideoSeries &&
|
|
982
|
+
!isVideoSeries && React__default.createElement(
|
|
1028
983
|
'div',
|
|
1029
984
|
null,
|
|
1030
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
985
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1031
986
|
'p',
|
|
1032
987
|
{ style: { fontSize: '14px' } },
|
|
1033
988
|
article.documentGroup.name,
|
|
1034
989
|
' - Episode ',
|
|
1035
990
|
episodeNumber
|
|
1036
991
|
),
|
|
1037
|
-
|
|
992
|
+
React__default.createElement(
|
|
1038
993
|
'h1',
|
|
1039
994
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1040
995
|
title
|
|
1041
996
|
)
|
|
1042
997
|
),
|
|
1043
|
-
|
|
998
|
+
React__default.createElement(
|
|
1044
999
|
'div',
|
|
1045
1000
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1046
|
-
|
|
1001
|
+
React__default.createElement(
|
|
1047
1002
|
'style',
|
|
1048
1003
|
{ jsx: 'true' },
|
|
1049
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 '
|
|
1050
1005
|
),
|
|
1051
|
-
|
|
1006
|
+
React__default.createElement(
|
|
1052
1007
|
'div',
|
|
1053
1008
|
{ className: 'left-wrap' },
|
|
1054
|
-
!isVideoSeries && showPublished &&
|
|
1009
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1055
1010
|
'div',
|
|
1056
1011
|
null,
|
|
1057
1012
|
moment(published).format('LL')
|
|
1058
1013
|
)
|
|
1059
1014
|
/* Show Published date */
|
|
1060
1015
|
,
|
|
1061
|
-
|
|
1016
|
+
React__default.createElement(
|
|
1062
1017
|
'div',
|
|
1063
1018
|
{ className: 'mb-3' },
|
|
1064
1019
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1065
|
-
return
|
|
1020
|
+
return React__default.createElement(
|
|
1066
1021
|
'span',
|
|
1067
1022
|
{ key: index },
|
|
1068
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())
|
|
1069
1024
|
);
|
|
1070
1025
|
}),
|
|
1071
|
-
|
|
1026
|
+
React__default.createElement(
|
|
1072
1027
|
'div',
|
|
1073
1028
|
null,
|
|
1074
|
-
source &&
|
|
1029
|
+
source && React__default.createElement(
|
|
1075
1030
|
'p',
|
|
1076
1031
|
{
|
|
1077
1032
|
style: {
|
|
@@ -1086,13 +1041,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1086
1041
|
source
|
|
1087
1042
|
)
|
|
1088
1043
|
),
|
|
1089
|
-
issue &&
|
|
1044
|
+
issue && React__default.createElement(
|
|
1090
1045
|
'div',
|
|
1091
1046
|
{ className: 'volume-issue' },
|
|
1092
|
-
issue.publication && issue.publication.name &&
|
|
1047
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1093
1048
|
'span',
|
|
1094
1049
|
{ className: 'mb-0' },
|
|
1095
|
-
|
|
1050
|
+
React__default.createElement(
|
|
1096
1051
|
'b',
|
|
1097
1052
|
null,
|
|
1098
1053
|
issue.publication.name
|
|
@@ -1100,34 +1055,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1100
1055
|
',',
|
|
1101
1056
|
' '
|
|
1102
1057
|
),
|
|
1103
|
-
issue.name &&
|
|
1058
|
+
issue.name && React__default.createElement(
|
|
1104
1059
|
'span',
|
|
1105
1060
|
{ className: 'mb-0' },
|
|
1106
1061
|
issue.name,
|
|
1107
1062
|
', '
|
|
1108
1063
|
),
|
|
1109
|
-
issue.volume &&
|
|
1064
|
+
issue.volume && React__default.createElement(
|
|
1110
1065
|
'span',
|
|
1111
1066
|
null,
|
|
1112
1067
|
'Volume ' + issue.volume,
|
|
1113
1068
|
','
|
|
1114
1069
|
),
|
|
1115
|
-
issue.issueNumber &&
|
|
1070
|
+
issue.issueNumber && React__default.createElement(
|
|
1116
1071
|
'span',
|
|
1117
1072
|
null,
|
|
1118
1073
|
' Issue ' + issue.issueNumber
|
|
1119
1074
|
)
|
|
1120
1075
|
),
|
|
1121
|
-
pageNumber &&
|
|
1076
|
+
pageNumber && React__default.createElement(
|
|
1122
1077
|
'div',
|
|
1123
1078
|
{ className: 'article-pageNumber' },
|
|
1124
1079
|
'Pages: ' + pageNumber
|
|
1125
1080
|
)
|
|
1126
1081
|
),
|
|
1127
|
-
!isVideoSeries &&
|
|
1082
|
+
!isVideoSeries && React__default.createElement(
|
|
1128
1083
|
'p',
|
|
1129
1084
|
null,
|
|
1130
|
-
|
|
1085
|
+
React__default.createElement(SocialShare, {
|
|
1131
1086
|
shareUrl: shareUrl,
|
|
1132
1087
|
shareTitle: shareTitle,
|
|
1133
1088
|
shareVia: shareVia,
|
|
@@ -1139,32 +1094,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1139
1094
|
twitterSiteName: twitterSiteName,
|
|
1140
1095
|
disableMeta: true,
|
|
1141
1096
|
hidePinterest: hidePinterestShare,
|
|
1142
|
-
hideFacebook: hideFBShare
|
|
1143
|
-
showSocialShare: showSocialShare
|
|
1097
|
+
hideFacebook: hideFBShare
|
|
1144
1098
|
})
|
|
1145
1099
|
)
|
|
1146
1100
|
),
|
|
1147
|
-
|
|
1101
|
+
React__default.createElement(
|
|
1148
1102
|
'div',
|
|
1149
1103
|
null,
|
|
1150
|
-
|
|
1104
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1151
1105
|
)
|
|
1152
1106
|
),
|
|
1153
|
-
!isVideoSeries && summary && display_summary &&
|
|
1107
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1154
1108
|
'p',
|
|
1155
1109
|
null,
|
|
1156
|
-
|
|
1110
|
+
React__default.createElement(
|
|
1157
1111
|
'em',
|
|
1158
1112
|
null,
|
|
1159
1113
|
summary
|
|
1160
1114
|
)
|
|
1161
1115
|
),
|
|
1162
|
-
|
|
1116
|
+
React__default.createElement(
|
|
1163
1117
|
'div',
|
|
1164
1118
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1165
1119
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1166
1120
|
if (index === 0) {
|
|
1167
|
-
return
|
|
1121
|
+
return React__default.createElement(
|
|
1168
1122
|
'div',
|
|
1169
1123
|
{
|
|
1170
1124
|
key: index,
|
|
@@ -1181,24 +1135,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1181
1135
|
}
|
|
1182
1136
|
})
|
|
1183
1137
|
),
|
|
1184
|
-
|
|
1138
|
+
React__default.createElement(
|
|
1185
1139
|
'div',
|
|
1186
1140
|
{ className: 'block-content mt-3' },
|
|
1187
1141
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1188
|
-
|
|
1189
|
-
|
|
1142
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1143
|
+
React__default.createElement(
|
|
1190
1144
|
'noscript',
|
|
1191
1145
|
null,
|
|
1192
|
-
|
|
1146
|
+
React__default.createElement(
|
|
1193
1147
|
'div',
|
|
1194
1148
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1195
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1149
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1196
1150
|
'a',
|
|
1197
1151
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1198
1152
|
'Previous ',
|
|
1199
1153
|
props.article.seriesDetail.type
|
|
1200
1154
|
),
|
|
1201
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1155
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1202
1156
|
'a',
|
|
1203
1157
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1204
1158
|
'Next ',
|
|
@@ -1206,26 +1160,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1206
1160
|
)
|
|
1207
1161
|
)
|
|
1208
1162
|
),
|
|
1209
|
-
issue && issue.url &&
|
|
1163
|
+
issue && issue.url && React__default.createElement(
|
|
1210
1164
|
'a',
|
|
1211
1165
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1212
|
-
|
|
1166
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1213
1167
|
'Download Issue : ',
|
|
1214
1168
|
issue.name
|
|
1215
1169
|
)
|
|
1216
1170
|
),
|
|
1217
|
-
|
|
1218
|
-
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(
|
|
1219
1173
|
'div',
|
|
1220
1174
|
null,
|
|
1221
1175
|
false ,
|
|
1222
|
-
|
|
1176
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1223
1177
|
),
|
|
1224
|
-
showRelatedArticles && !showIsi &&
|
|
1225
|
-
disqusConfig && showDisqus &&
|
|
1178
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1179
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1226
1180
|
'div',
|
|
1227
1181
|
{ id: 'disqusContainer' },
|
|
1228
|
-
|
|
1182
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1229
1183
|
shortname: disqusConfig.shortname,
|
|
1230
1184
|
config: {
|
|
1231
1185
|
url: disqusConfig.url,
|
|
@@ -1238,30 +1192,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1238
1192
|
renderIsiContent(props.article)
|
|
1239
1193
|
)
|
|
1240
1194
|
),
|
|
1241
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1195
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1242
1196
|
ISI,
|
|
1243
1197
|
null,
|
|
1244
|
-
|
|
1198
|
+
React__default.createElement(BlockContent, {
|
|
1245
1199
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1246
1200
|
blocks: isi
|
|
1247
1201
|
})
|
|
1248
1202
|
),
|
|
1249
1203
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1250
1204
|
if (index > 0) {
|
|
1251
|
-
return
|
|
1205
|
+
return React__default.createElement(
|
|
1252
1206
|
'div',
|
|
1253
1207
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1254
1208
|
ad.component
|
|
1255
1209
|
);
|
|
1256
1210
|
}
|
|
1257
1211
|
}),
|
|
1258
|
-
|
|
1212
|
+
React__default.createElement(
|
|
1259
1213
|
'noscript',
|
|
1260
1214
|
null,
|
|
1261
|
-
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(
|
|
1262
1216
|
'div',
|
|
1263
1217
|
{ style: { textAlign: 'center' } },
|
|
1264
|
-
|
|
1218
|
+
React__default.createElement(
|
|
1265
1219
|
'a',
|
|
1266
1220
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1267
1221
|
'Related Article ',
|
|
@@ -1269,7 +1223,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1269
1223
|
)
|
|
1270
1224
|
)
|
|
1271
1225
|
),
|
|
1272
|
-
props.infiniteScroll &&
|
|
1226
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1273
1227
|
);
|
|
1274
1228
|
};
|
|
1275
1229
|
|
|
@@ -1473,7 +1427,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1473
1427
|
|
|
1474
1428
|
var changeMeta = function changeMeta(meta) {
|
|
1475
1429
|
document.title = meta.shareTitle;
|
|
1476
|
-
|
|
1430
|
+
document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
1477
1431
|
document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
1478
1432
|
document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
1479
1433
|
document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
@@ -1482,7 +1436,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1482
1436
|
document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
1483
1437
|
document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
1484
1438
|
document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
1485
|
-
|
|
1439
|
+
document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
|
|
1486
1440
|
if (canonicalTag) {
|
|
1487
1441
|
document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
|
|
1488
1442
|
}
|
|
@@ -1506,14 +1460,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1506
1460
|
refreshAD(path);
|
|
1507
1461
|
};
|
|
1508
1462
|
|
|
1509
|
-
return
|
|
1463
|
+
return React__default.createElement(
|
|
1510
1464
|
InfiniteScroll,
|
|
1511
1465
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1512
1466
|
queueData.map(function (article, index) {
|
|
1513
|
-
return
|
|
1514
|
-
|
|
1467
|
+
return React__default.createElement(
|
|
1468
|
+
React__default.Fragment,
|
|
1515
1469
|
null,
|
|
1516
|
-
|
|
1470
|
+
React__default.createElement(Article, _extends({
|
|
1517
1471
|
key: index
|
|
1518
1472
|
}, props, {
|
|
1519
1473
|
containerHeight: containerHeight,
|
|
@@ -1561,6 +1515,24 @@ var View = function View(props) {
|
|
|
1561
1515
|
var title = _props$article2.title,
|
|
1562
1516
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
1563
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
|
+
|
|
1564
1536
|
var _useState = useState(0),
|
|
1565
1537
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1566
1538
|
currentPage = _useState2[0],
|
|
@@ -1655,63 +1627,63 @@ var View = function View(props) {
|
|
|
1655
1627
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1656
1628
|
}
|
|
1657
1629
|
|
|
1658
|
-
return
|
|
1659
|
-
|
|
1630
|
+
return React__default.createElement(
|
|
1631
|
+
React__default.Fragment,
|
|
1660
1632
|
null,
|
|
1661
|
-
|
|
1633
|
+
React__default.createElement(
|
|
1662
1634
|
Head,
|
|
1663
1635
|
null,
|
|
1664
|
-
|
|
1636
|
+
React__default.createElement(
|
|
1665
1637
|
'title',
|
|
1666
1638
|
{ key: 'title' },
|
|
1667
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 : '')
|
|
1668
1640
|
),
|
|
1669
|
-
meta_description &&
|
|
1670
|
-
|
|
1671
|
-
passwordLock &&
|
|
1672
|
-
|
|
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', {
|
|
1673
1645
|
property: 'og:url',
|
|
1674
1646
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1675
1647
|
key: 'og:url'
|
|
1676
1648
|
}),
|
|
1677
|
-
|
|
1649
|
+
React__default.createElement('meta', {
|
|
1678
1650
|
property: 'og:title',
|
|
1679
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 : ''),
|
|
1680
1652
|
key: 'og:title'
|
|
1681
1653
|
}),
|
|
1682
|
-
|
|
1654
|
+
React__default.createElement('meta', {
|
|
1683
1655
|
property: 'og:image',
|
|
1684
1656
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1685
1657
|
key: 'og:image'
|
|
1686
1658
|
}),
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
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', {
|
|
1691
1663
|
name: 'twitter:title',
|
|
1692
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 : ''),
|
|
1693
1665
|
key: 'twitter:title'
|
|
1694
1666
|
}),
|
|
1695
|
-
|
|
1667
|
+
React__default.createElement('meta', {
|
|
1696
1668
|
name: 'twitter:image',
|
|
1697
1669
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1698
1670
|
key: 'twitter:image'
|
|
1699
1671
|
}),
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
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', {
|
|
1703
1675
|
rel: 'canonical',
|
|
1704
1676
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1705
1677
|
key: 'canonical'
|
|
1706
1678
|
}),
|
|
1707
|
-
|
|
1679
|
+
React__default.createElement(
|
|
1708
1680
|
'noscript',
|
|
1709
1681
|
null,
|
|
1710
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1711
|
-
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 })
|
|
1712
1684
|
)
|
|
1713
1685
|
),
|
|
1714
|
-
!needInfiniteScroll ?
|
|
1686
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props, { showSocialShare: showSocialShare })) : React__default.createElement(ArticleQueue, _extends({
|
|
1715
1687
|
infiniteScroll: true,
|
|
1716
1688
|
showRelatedArticles: showRelatedArticles,
|
|
1717
1689
|
canonicalTag: canonicalTag,
|