@mjhls/mjh-framework 1.0.810-disable-social-test → 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 +193 -221
- 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,13 +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 is not disabled for entire site, check article taxonomy, docgroup, authors for showSocialShare === false
|
|
541
|
-
if (showSocialShare) {
|
|
542
|
-
showSocialShare = getSocialShareDisableFlag(props.article);
|
|
543
|
-
}
|
|
498
|
+
var onChangeArticle = props.onChangeArticle;
|
|
544
499
|
|
|
545
500
|
//If sponsored flag, disable contextual ads
|
|
501
|
+
|
|
546
502
|
if (sponsoredFlag) {
|
|
547
503
|
article.contextualVideoAD = false;
|
|
548
504
|
article.contextualAD = false;
|
|
@@ -612,7 +568,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
612
568
|
};
|
|
613
569
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
614
570
|
if (biography) {
|
|
615
|
-
return
|
|
571
|
+
return React__default.createElement(BlockContent, _extends({
|
|
616
572
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
617
573
|
blocks: [biography]
|
|
618
574
|
}, client.config()));
|
|
@@ -622,9 +578,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
622
578
|
var url = article.url.current;
|
|
623
579
|
|
|
624
580
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
625
|
-
return
|
|
581
|
+
return React__default.createElement(ISIContent, null);
|
|
626
582
|
} else if (nationalPage === url && ISIContent) {
|
|
627
|
-
return
|
|
583
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
628
584
|
}
|
|
629
585
|
return null;
|
|
630
586
|
};
|
|
@@ -655,19 +611,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
655
611
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
656
612
|
}
|
|
657
613
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
658
|
-
return
|
|
614
|
+
return React__default.createElement(
|
|
659
615
|
'div',
|
|
660
616
|
null,
|
|
661
617
|
relatedLinks.map(function (relatedLink, index) {
|
|
662
|
-
return
|
|
618
|
+
return React__default.createElement(
|
|
663
619
|
'span',
|
|
664
620
|
{ key: index, className: 'related-link' },
|
|
665
|
-
|
|
621
|
+
React__default.createElement(
|
|
666
622
|
'a',
|
|
667
623
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
668
624
|
relatedLink.label
|
|
669
625
|
),
|
|
670
|
-
|
|
626
|
+
React__default.createElement(
|
|
671
627
|
'style',
|
|
672
628
|
{ jsx: 'true' },
|
|
673
629
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -682,23 +638,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
682
638
|
};
|
|
683
639
|
|
|
684
640
|
var RelatedContent = function RelatedContent() {
|
|
685
|
-
return
|
|
641
|
+
return React__default.createElement(
|
|
686
642
|
'section',
|
|
687
643
|
{ id: 'related-content-section', className: 'my-1' },
|
|
688
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
644
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
689
645
|
'p',
|
|
690
646
|
{ className: 'mb-0' },
|
|
691
|
-
|
|
647
|
+
React__default.createElement(
|
|
692
648
|
'b',
|
|
693
649
|
null,
|
|
694
650
|
'Related Content:'
|
|
695
651
|
)
|
|
696
652
|
),
|
|
697
|
-
|
|
698
|
-
|
|
653
|
+
React__default.createElement(RelevantTopics, null),
|
|
654
|
+
React__default.createElement(
|
|
699
655
|
'div',
|
|
700
656
|
{ className: 'pt-2' },
|
|
701
|
-
|
|
657
|
+
React__default.createElement(RelatedArticle, {
|
|
702
658
|
articles: article.relatedArticle,
|
|
703
659
|
client: client,
|
|
704
660
|
fallbackImage: props.Settings.logo,
|
|
@@ -709,28 +665,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
709
665
|
};
|
|
710
666
|
|
|
711
667
|
var form = function form() {
|
|
712
|
-
return
|
|
713
|
-
|
|
668
|
+
return React__default.createElement(
|
|
669
|
+
React__default.Fragment,
|
|
714
670
|
null,
|
|
715
|
-
|
|
671
|
+
React__default.createElement(
|
|
716
672
|
Head,
|
|
717
673
|
null,
|
|
718
|
-
|
|
674
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
719
675
|
),
|
|
720
|
-
|
|
676
|
+
React__default.createElement(
|
|
721
677
|
'div',
|
|
722
678
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
723
|
-
|
|
679
|
+
React__default.createElement(
|
|
724
680
|
Form,
|
|
725
681
|
{
|
|
726
682
|
inline: true,
|
|
727
683
|
onSubmit: function onSubmit(e) {
|
|
728
684
|
e.preventDefault();
|
|
729
685
|
} },
|
|
730
|
-
|
|
686
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
731
687
|
return setPasswordKey(e.target.value);
|
|
732
688
|
}, placeholder: 'Password' }),
|
|
733
|
-
|
|
689
|
+
React__default.createElement(
|
|
734
690
|
Button,
|
|
735
691
|
{
|
|
736
692
|
variant: 'primary',
|
|
@@ -780,31 +736,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
780
736
|
setContextualADFlag(true);
|
|
781
737
|
}
|
|
782
738
|
};
|
|
783
|
-
return
|
|
784
|
-
|
|
739
|
+
return React__default.createElement(
|
|
740
|
+
React__default.Fragment,
|
|
785
741
|
null,
|
|
786
|
-
|
|
742
|
+
React__default.createElement(BlockContent, _extends({
|
|
787
743
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
788
744
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
789
745
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
790
746
|
}, client.config())),
|
|
791
|
-
|
|
792
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
793
|
-
|
|
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(
|
|
794
750
|
'div',
|
|
795
751
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
796
|
-
|
|
752
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
797
753
|
refreshFlag: refreshFlag
|
|
798
754
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
799
755
|
}))
|
|
800
756
|
),
|
|
801
|
-
|
|
802
|
-
|
|
757
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
758
|
+
React__default.createElement(
|
|
803
759
|
'div',
|
|
804
760
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
805
|
-
|
|
761
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
806
762
|
),
|
|
807
|
-
|
|
763
|
+
React__default.createElement(BlockContent, _extends({
|
|
808
764
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
809
765
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
810
766
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -829,26 +785,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
829
785
|
if (seriesInfo.hasVideo) {
|
|
830
786
|
_selectedIndex = seriesInfo.videoIndex;
|
|
831
787
|
}
|
|
832
|
-
return
|
|
833
|
-
|
|
788
|
+
return React__default.createElement(
|
|
789
|
+
React__default.Fragment,
|
|
834
790
|
null,
|
|
835
|
-
|
|
791
|
+
React__default.createElement(BlockContent, _extends({
|
|
836
792
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
837
793
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
838
794
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
839
795
|
}, client.config())),
|
|
840
|
-
contextualADFlag &&
|
|
841
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
842
|
-
(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(
|
|
843
799
|
'div',
|
|
844
800
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
845
|
-
|
|
801
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
846
802
|
refreshFlag: refreshFlag
|
|
847
803
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
848
804
|
}))
|
|
849
805
|
),
|
|
850
|
-
contextualADFlag &&
|
|
851
|
-
|
|
806
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
807
|
+
React__default.createElement(BlockContent, _extends({
|
|
852
808
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
853
809
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
854
810
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -878,22 +834,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
878
834
|
}
|
|
879
835
|
};
|
|
880
836
|
|
|
881
|
-
return
|
|
882
|
-
|
|
837
|
+
return React__default.createElement(
|
|
838
|
+
React__default.Fragment,
|
|
883
839
|
null,
|
|
884
|
-
|
|
840
|
+
React__default.createElement(BlockContent, _extends({
|
|
885
841
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
886
842
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
887
843
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
888
844
|
}, client.config())),
|
|
889
|
-
|
|
890
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
891
|
-
|
|
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(
|
|
892
848
|
'div',
|
|
893
849
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
894
|
-
|
|
850
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
895
851
|
),
|
|
896
|
-
|
|
852
|
+
React__default.createElement(BlockContent, _extends({
|
|
897
853
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
898
854
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
899
855
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -905,16 +861,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
905
861
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
906
862
|
}
|
|
907
863
|
|
|
908
|
-
return
|
|
864
|
+
return React__default.createElement(
|
|
909
865
|
'div',
|
|
910
866
|
null,
|
|
911
|
-
|
|
867
|
+
React__default.createElement(BlockContent, _extends({
|
|
912
868
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
913
869
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
914
870
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
915
871
|
}, client.config())),
|
|
916
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
917
|
-
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({
|
|
918
874
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
919
875
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
920
876
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1000,10 +956,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1000
956
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1001
957
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1002
958
|
|
|
1003
|
-
return
|
|
1004
|
-
|
|
959
|
+
return React__default.createElement(
|
|
960
|
+
React__default.Fragment,
|
|
1005
961
|
null,
|
|
1006
|
-
|
|
962
|
+
React__default.createElement(
|
|
1007
963
|
VisibilitySensor,
|
|
1008
964
|
{
|
|
1009
965
|
partialVisibility: true,
|
|
@@ -1016,61 +972,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1016
972
|
});
|
|
1017
973
|
}
|
|
1018
974
|
} },
|
|
1019
|
-
|
|
975
|
+
React__default.createElement(
|
|
1020
976
|
'div',
|
|
1021
977
|
{ id: 'article__block', ref: ref },
|
|
1022
|
-
|
|
978
|
+
React__default.createElement(
|
|
1023
979
|
'div',
|
|
1024
980
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1025
981
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1026
|
-
!isVideoSeries &&
|
|
982
|
+
!isVideoSeries && React__default.createElement(
|
|
1027
983
|
'div',
|
|
1028
984
|
null,
|
|
1029
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
985
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1030
986
|
'p',
|
|
1031
987
|
{ style: { fontSize: '14px' } },
|
|
1032
988
|
article.documentGroup.name,
|
|
1033
989
|
' - Episode ',
|
|
1034
990
|
episodeNumber
|
|
1035
991
|
),
|
|
1036
|
-
|
|
992
|
+
React__default.createElement(
|
|
1037
993
|
'h1',
|
|
1038
994
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1039
995
|
title
|
|
1040
996
|
)
|
|
1041
997
|
),
|
|
1042
|
-
|
|
998
|
+
React__default.createElement(
|
|
1043
999
|
'div',
|
|
1044
1000
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1045
|
-
|
|
1001
|
+
React__default.createElement(
|
|
1046
1002
|
'style',
|
|
1047
1003
|
{ jsx: 'true' },
|
|
1048
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 '
|
|
1049
1005
|
),
|
|
1050
|
-
|
|
1006
|
+
React__default.createElement(
|
|
1051
1007
|
'div',
|
|
1052
1008
|
{ className: 'left-wrap' },
|
|
1053
|
-
!isVideoSeries && showPublished &&
|
|
1009
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1054
1010
|
'div',
|
|
1055
1011
|
null,
|
|
1056
1012
|
moment(published).format('LL')
|
|
1057
1013
|
)
|
|
1058
1014
|
/* Show Published date */
|
|
1059
1015
|
,
|
|
1060
|
-
|
|
1016
|
+
React__default.createElement(
|
|
1061
1017
|
'div',
|
|
1062
1018
|
{ className: 'mb-3' },
|
|
1063
1019
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1064
|
-
return
|
|
1020
|
+
return React__default.createElement(
|
|
1065
1021
|
'span',
|
|
1066
1022
|
{ key: index },
|
|
1067
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())
|
|
1068
1024
|
);
|
|
1069
1025
|
}),
|
|
1070
|
-
|
|
1026
|
+
React__default.createElement(
|
|
1071
1027
|
'div',
|
|
1072
1028
|
null,
|
|
1073
|
-
source &&
|
|
1029
|
+
source && React__default.createElement(
|
|
1074
1030
|
'p',
|
|
1075
1031
|
{
|
|
1076
1032
|
style: {
|
|
@@ -1085,13 +1041,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1085
1041
|
source
|
|
1086
1042
|
)
|
|
1087
1043
|
),
|
|
1088
|
-
issue &&
|
|
1044
|
+
issue && React__default.createElement(
|
|
1089
1045
|
'div',
|
|
1090
1046
|
{ className: 'volume-issue' },
|
|
1091
|
-
issue.publication && issue.publication.name &&
|
|
1047
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1092
1048
|
'span',
|
|
1093
1049
|
{ className: 'mb-0' },
|
|
1094
|
-
|
|
1050
|
+
React__default.createElement(
|
|
1095
1051
|
'b',
|
|
1096
1052
|
null,
|
|
1097
1053
|
issue.publication.name
|
|
@@ -1099,34 +1055,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1099
1055
|
',',
|
|
1100
1056
|
' '
|
|
1101
1057
|
),
|
|
1102
|
-
issue.name &&
|
|
1058
|
+
issue.name && React__default.createElement(
|
|
1103
1059
|
'span',
|
|
1104
1060
|
{ className: 'mb-0' },
|
|
1105
1061
|
issue.name,
|
|
1106
1062
|
', '
|
|
1107
1063
|
),
|
|
1108
|
-
issue.volume &&
|
|
1064
|
+
issue.volume && React__default.createElement(
|
|
1109
1065
|
'span',
|
|
1110
1066
|
null,
|
|
1111
1067
|
'Volume ' + issue.volume,
|
|
1112
1068
|
','
|
|
1113
1069
|
),
|
|
1114
|
-
issue.issueNumber &&
|
|
1070
|
+
issue.issueNumber && React__default.createElement(
|
|
1115
1071
|
'span',
|
|
1116
1072
|
null,
|
|
1117
1073
|
' Issue ' + issue.issueNumber
|
|
1118
1074
|
)
|
|
1119
1075
|
),
|
|
1120
|
-
pageNumber &&
|
|
1076
|
+
pageNumber && React__default.createElement(
|
|
1121
1077
|
'div',
|
|
1122
1078
|
{ className: 'article-pageNumber' },
|
|
1123
1079
|
'Pages: ' + pageNumber
|
|
1124
1080
|
)
|
|
1125
1081
|
),
|
|
1126
|
-
!isVideoSeries &&
|
|
1082
|
+
!isVideoSeries && React__default.createElement(
|
|
1127
1083
|
'p',
|
|
1128
1084
|
null,
|
|
1129
|
-
|
|
1085
|
+
React__default.createElement(SocialShare, {
|
|
1130
1086
|
shareUrl: shareUrl,
|
|
1131
1087
|
shareTitle: shareTitle,
|
|
1132
1088
|
shareVia: shareVia,
|
|
@@ -1142,27 +1098,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1142
1098
|
})
|
|
1143
1099
|
)
|
|
1144
1100
|
),
|
|
1145
|
-
|
|
1101
|
+
React__default.createElement(
|
|
1146
1102
|
'div',
|
|
1147
1103
|
null,
|
|
1148
|
-
|
|
1104
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1149
1105
|
)
|
|
1150
1106
|
),
|
|
1151
|
-
!isVideoSeries && summary && display_summary &&
|
|
1107
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1152
1108
|
'p',
|
|
1153
1109
|
null,
|
|
1154
|
-
|
|
1110
|
+
React__default.createElement(
|
|
1155
1111
|
'em',
|
|
1156
1112
|
null,
|
|
1157
1113
|
summary
|
|
1158
1114
|
)
|
|
1159
1115
|
),
|
|
1160
|
-
|
|
1116
|
+
React__default.createElement(
|
|
1161
1117
|
'div',
|
|
1162
1118
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1163
1119
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1164
1120
|
if (index === 0) {
|
|
1165
|
-
return
|
|
1121
|
+
return React__default.createElement(
|
|
1166
1122
|
'div',
|
|
1167
1123
|
{
|
|
1168
1124
|
key: index,
|
|
@@ -1179,24 +1135,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1179
1135
|
}
|
|
1180
1136
|
})
|
|
1181
1137
|
),
|
|
1182
|
-
|
|
1138
|
+
React__default.createElement(
|
|
1183
1139
|
'div',
|
|
1184
1140
|
{ className: 'block-content mt-3' },
|
|
1185
1141
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1186
|
-
|
|
1187
|
-
|
|
1142
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1143
|
+
React__default.createElement(
|
|
1188
1144
|
'noscript',
|
|
1189
1145
|
null,
|
|
1190
|
-
|
|
1146
|
+
React__default.createElement(
|
|
1191
1147
|
'div',
|
|
1192
1148
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1193
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1149
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1194
1150
|
'a',
|
|
1195
1151
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1196
1152
|
'Previous ',
|
|
1197
1153
|
props.article.seriesDetail.type
|
|
1198
1154
|
),
|
|
1199
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1155
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1200
1156
|
'a',
|
|
1201
1157
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1202
1158
|
'Next ',
|
|
@@ -1204,26 +1160,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1204
1160
|
)
|
|
1205
1161
|
)
|
|
1206
1162
|
),
|
|
1207
|
-
issue && issue.url &&
|
|
1163
|
+
issue && issue.url && React__default.createElement(
|
|
1208
1164
|
'a',
|
|
1209
1165
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1210
|
-
|
|
1166
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1211
1167
|
'Download Issue : ',
|
|
1212
1168
|
issue.name
|
|
1213
1169
|
)
|
|
1214
1170
|
),
|
|
1215
|
-
|
|
1216
|
-
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(
|
|
1217
1173
|
'div',
|
|
1218
1174
|
null,
|
|
1219
1175
|
false ,
|
|
1220
|
-
|
|
1176
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1221
1177
|
),
|
|
1222
|
-
showRelatedArticles && !showIsi &&
|
|
1223
|
-
disqusConfig && showDisqus &&
|
|
1178
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1179
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1224
1180
|
'div',
|
|
1225
1181
|
{ id: 'disqusContainer' },
|
|
1226
|
-
|
|
1182
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1227
1183
|
shortname: disqusConfig.shortname,
|
|
1228
1184
|
config: {
|
|
1229
1185
|
url: disqusConfig.url,
|
|
@@ -1236,30 +1192,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1236
1192
|
renderIsiContent(props.article)
|
|
1237
1193
|
)
|
|
1238
1194
|
),
|
|
1239
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1195
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1240
1196
|
ISI,
|
|
1241
1197
|
null,
|
|
1242
|
-
|
|
1198
|
+
React__default.createElement(BlockContent, {
|
|
1243
1199
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1244
1200
|
blocks: isi
|
|
1245
1201
|
})
|
|
1246
1202
|
),
|
|
1247
1203
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1248
1204
|
if (index > 0) {
|
|
1249
|
-
return
|
|
1205
|
+
return React__default.createElement(
|
|
1250
1206
|
'div',
|
|
1251
1207
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1252
1208
|
ad.component
|
|
1253
1209
|
);
|
|
1254
1210
|
}
|
|
1255
1211
|
}),
|
|
1256
|
-
|
|
1212
|
+
React__default.createElement(
|
|
1257
1213
|
'noscript',
|
|
1258
1214
|
null,
|
|
1259
|
-
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(
|
|
1260
1216
|
'div',
|
|
1261
1217
|
{ style: { textAlign: 'center' } },
|
|
1262
|
-
|
|
1218
|
+
React__default.createElement(
|
|
1263
1219
|
'a',
|
|
1264
1220
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1265
1221
|
'Related Article ',
|
|
@@ -1267,7 +1223,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1267
1223
|
)
|
|
1268
1224
|
)
|
|
1269
1225
|
),
|
|
1270
|
-
props.infiniteScroll &&
|
|
1226
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1271
1227
|
);
|
|
1272
1228
|
};
|
|
1273
1229
|
|
|
@@ -1471,8 +1427,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1471
1427
|
|
|
1472
1428
|
var changeMeta = function changeMeta(meta) {
|
|
1473
1429
|
document.title = meta.shareTitle;
|
|
1474
|
-
|
|
1475
|
-
if (document.querySelector('meta[name="description"]')) document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
1430
|
+
document.querySelector('meta[name="description"]').setAttribute('content', meta.shareSummary);
|
|
1476
1431
|
document.querySelector('meta[name="keywords"]').setAttribute('content', meta.shareKeywords);
|
|
1477
1432
|
document.querySelector('meta[property="og:url"]').setAttribute('content', meta.shareUrl);
|
|
1478
1433
|
document.querySelector('meta[property="og:title"]').setAttribute('content', meta.shareTitle);
|
|
@@ -1481,8 +1436,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1481
1436
|
document.querySelector('meta[name="twitter:title"]').setAttribute('content', meta.shareTitle);
|
|
1482
1437
|
document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
|
|
1483
1438
|
document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
|
|
1484
|
-
|
|
1485
|
-
if (document.querySelector('meta[name="twitter:description"]')) document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
|
|
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,
|