@mjhls/mjh-framework 1.0.837 → 1.0.838
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 +168 -168
- 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 +17 -14098
- 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/AuthWrapper.js +1 -1
- 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 +36 -37
- 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 -307
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- 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 +26 -26
- 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-cbab9f0f.js → SeriesSlider-e3e8ead7.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +9 -10
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-a100d6e5.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-0a582ba9.js → index-55dd328c.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-44f3e2d0.js → index.esm-c1e16606.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-28b1e946.js → ADInfeed-4a09242b.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-0b474b02.js → ADlgInfeed-0bff9a62.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/AuthWrapper.js +26 -26
- 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 +124 -125
- 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 +51 -52
- 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 +433 -332
- 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/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 +75 -75
- 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-5c62a578.js → SeriesSlider-ae17159f.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db963c3e.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +29 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +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 +170 -171
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-05c216d6.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-66ffc224.js → index-490e778a.js} +365 -365
- 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.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-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.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 +110 -110
- 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-8b336c67.js → ADInfeed-eb4ce360.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-aedd5e18.js → ADlgInfeed-8a05b63f.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-60e0e1c6.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-490e778a.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-ae17159f.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-05c216d6.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-a41fe93f.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: client, source: article.documentGroup.thumbnail });
|
|
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: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
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
|
|
@@ -620,7 +619,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
620
619
|
};
|
|
621
620
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
622
621
|
if (biography) {
|
|
623
|
-
return
|
|
622
|
+
return React__default.createElement(BlockContent, _extends({
|
|
624
623
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
625
624
|
blocks: [biography]
|
|
626
625
|
}, client.config()));
|
|
@@ -630,9 +629,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
630
629
|
var url = article.url.current;
|
|
631
630
|
|
|
632
631
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
633
|
-
return
|
|
632
|
+
return React__default.createElement(ISIContent, null);
|
|
634
633
|
} else if (nationalPage === url && ISIContent) {
|
|
635
|
-
return
|
|
634
|
+
return React__default.createElement(ISIContent, { national: true });
|
|
636
635
|
}
|
|
637
636
|
return null;
|
|
638
637
|
};
|
|
@@ -666,19 +665,19 @@ var Article = forwardRef(function (props, ref) {
|
|
|
666
665
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
667
666
|
}
|
|
668
667
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
669
|
-
return
|
|
668
|
+
return React__default.createElement(
|
|
670
669
|
'div',
|
|
671
670
|
null,
|
|
672
671
|
relatedLinks.map(function (relatedLink, index) {
|
|
673
|
-
return
|
|
672
|
+
return React__default.createElement(
|
|
674
673
|
'span',
|
|
675
674
|
{ key: index, className: 'related-link' },
|
|
676
|
-
|
|
675
|
+
React__default.createElement(
|
|
677
676
|
'a',
|
|
678
677
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
679
678
|
relatedLink.label
|
|
680
679
|
),
|
|
681
|
-
|
|
680
|
+
React__default.createElement(
|
|
682
681
|
'style',
|
|
683
682
|
{ jsx: 'true' },
|
|
684
683
|
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
@@ -693,23 +692,23 @@ var Article = forwardRef(function (props, ref) {
|
|
|
693
692
|
};
|
|
694
693
|
|
|
695
694
|
var RelatedContent = function RelatedContent() {
|
|
696
|
-
return
|
|
695
|
+
return React__default.createElement(
|
|
697
696
|
'section',
|
|
698
697
|
{ id: 'related-content-section', className: 'my-1' },
|
|
699
|
-
(article.relatedArticle || RelevantTopics()) &&
|
|
698
|
+
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
700
699
|
'p',
|
|
701
700
|
{ className: 'mb-0' },
|
|
702
|
-
|
|
701
|
+
React__default.createElement(
|
|
703
702
|
'b',
|
|
704
703
|
null,
|
|
705
704
|
'Related Content:'
|
|
706
705
|
)
|
|
707
706
|
),
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
React__default.createElement(RelevantTopics, null),
|
|
708
|
+
React__default.createElement(
|
|
710
709
|
'div',
|
|
711
710
|
{ className: 'pt-2' },
|
|
712
|
-
|
|
711
|
+
React__default.createElement(RelatedArticle, {
|
|
713
712
|
articles: article.relatedArticle,
|
|
714
713
|
client: client,
|
|
715
714
|
fallbackImage: props.Settings.logo,
|
|
@@ -720,28 +719,28 @@ var Article = forwardRef(function (props, ref) {
|
|
|
720
719
|
};
|
|
721
720
|
|
|
722
721
|
var form = function form() {
|
|
723
|
-
return
|
|
724
|
-
|
|
722
|
+
return React__default.createElement(
|
|
723
|
+
React__default.Fragment,
|
|
725
724
|
null,
|
|
726
|
-
|
|
725
|
+
React__default.createElement(
|
|
727
726
|
Head,
|
|
728
727
|
null,
|
|
729
|
-
|
|
728
|
+
React__default.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
730
729
|
),
|
|
731
|
-
|
|
730
|
+
React__default.createElement(
|
|
732
731
|
'div',
|
|
733
732
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
734
|
-
|
|
733
|
+
React__default.createElement(
|
|
735
734
|
Form,
|
|
736
735
|
{
|
|
737
736
|
inline: true,
|
|
738
737
|
onSubmit: function onSubmit(e) {
|
|
739
738
|
e.preventDefault();
|
|
740
739
|
} },
|
|
741
|
-
|
|
740
|
+
React__default.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
742
741
|
return setPasswordKey(e.target.value);
|
|
743
742
|
}, placeholder: 'Password' }),
|
|
744
|
-
|
|
743
|
+
React__default.createElement(
|
|
745
744
|
Button,
|
|
746
745
|
{
|
|
747
746
|
variant: 'primary',
|
|
@@ -791,31 +790,31 @@ var Article = forwardRef(function (props, ref) {
|
|
|
791
790
|
setContextualADFlag(true);
|
|
792
791
|
}
|
|
793
792
|
};
|
|
794
|
-
return
|
|
795
|
-
|
|
793
|
+
return React__default.createElement(
|
|
794
|
+
React__default.Fragment,
|
|
796
795
|
null,
|
|
797
|
-
|
|
796
|
+
React__default.createElement(BlockContent, _extends({
|
|
798
797
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
799
798
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
800
799
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
801
800
|
}, client.config())),
|
|
802
|
-
|
|
803
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
804
|
-
|
|
801
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
802
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
803
|
+
React__default.createElement(
|
|
805
804
|
'div',
|
|
806
805
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
807
|
-
|
|
806
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
808
807
|
refreshFlag: refreshFlag
|
|
809
808
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
810
809
|
}))
|
|
811
810
|
),
|
|
812
|
-
|
|
813
|
-
|
|
811
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
812
|
+
React__default.createElement(
|
|
814
813
|
'div',
|
|
815
814
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
816
|
-
|
|
815
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
817
816
|
),
|
|
818
|
-
|
|
817
|
+
React__default.createElement(BlockContent, _extends({
|
|
819
818
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
820
819
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
821
820
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -840,26 +839,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
840
839
|
if (seriesInfo.hasVideo) {
|
|
841
840
|
_selectedIndex = seriesInfo.videoIndex;
|
|
842
841
|
}
|
|
843
|
-
return
|
|
844
|
-
|
|
842
|
+
return React__default.createElement(
|
|
843
|
+
React__default.Fragment,
|
|
845
844
|
null,
|
|
846
|
-
|
|
845
|
+
React__default.createElement(BlockContent, _extends({
|
|
847
846
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
848
847
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
849
848
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
850
849
|
}, client.config())),
|
|
851
|
-
contextualADFlag &&
|
|
852
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
853
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
850
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
851
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
852
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
854
853
|
'div',
|
|
855
854
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
856
|
-
|
|
855
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
857
856
|
refreshFlag: refreshFlag
|
|
858
857
|
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
859
858
|
}))
|
|
860
859
|
),
|
|
861
|
-
contextualADFlag &&
|
|
862
|
-
|
|
860
|
+
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
861
|
+
React__default.createElement(BlockContent, _extends({
|
|
863
862
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
864
863
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
865
864
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -889,22 +888,22 @@ var Article = forwardRef(function (props, ref) {
|
|
|
889
888
|
}
|
|
890
889
|
};
|
|
891
890
|
|
|
892
|
-
return
|
|
893
|
-
|
|
891
|
+
return React__default.createElement(
|
|
892
|
+
React__default.Fragment,
|
|
894
893
|
null,
|
|
895
|
-
|
|
894
|
+
React__default.createElement(BlockContent, _extends({
|
|
896
895
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
897
896
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
898
897
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
899
898
|
}, client.config())),
|
|
900
|
-
|
|
901
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
902
|
-
|
|
899
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
900
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
901
|
+
React__default.createElement(
|
|
903
902
|
'div',
|
|
904
903
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
905
|
-
|
|
904
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
906
905
|
),
|
|
907
|
-
|
|
906
|
+
React__default.createElement(BlockContent, _extends({
|
|
908
907
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
909
908
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
910
909
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -916,16 +915,16 @@ var Article = forwardRef(function (props, ref) {
|
|
|
916
915
|
_selectedIndex3 = seriesInfo.videoIndex;
|
|
917
916
|
}
|
|
918
917
|
|
|
919
|
-
return
|
|
918
|
+
return React__default.createElement(
|
|
920
919
|
'div',
|
|
921
920
|
null,
|
|
922
|
-
|
|
921
|
+
React__default.createElement(BlockContent, _extends({
|
|
923
922
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
924
923
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
925
924
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
926
925
|
}, client.config())),
|
|
927
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo &&
|
|
928
|
-
article.documentGroup && article.documentGroup.isSeries &&
|
|
926
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
927
|
+
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
929
928
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
930
929
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
931
930
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -1011,10 +1010,10 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1011
1010
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
1012
1011
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1013
1012
|
|
|
1014
|
-
return
|
|
1015
|
-
|
|
1013
|
+
return React__default.createElement(
|
|
1014
|
+
React__default.Fragment,
|
|
1016
1015
|
null,
|
|
1017
|
-
|
|
1016
|
+
React__default.createElement(
|
|
1018
1017
|
VisibilitySensor,
|
|
1019
1018
|
{
|
|
1020
1019
|
partialVisibility: true,
|
|
@@ -1027,61 +1026,61 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1027
1026
|
});
|
|
1028
1027
|
}
|
|
1029
1028
|
} },
|
|
1030
|
-
|
|
1029
|
+
React__default.createElement(
|
|
1031
1030
|
'div',
|
|
1032
1031
|
{ id: 'article__block', ref: ref },
|
|
1033
|
-
|
|
1032
|
+
React__default.createElement(
|
|
1034
1033
|
'div',
|
|
1035
1034
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1036
1035
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1037
|
-
!isVideoSeries &&
|
|
1036
|
+
!isVideoSeries && React__default.createElement(
|
|
1038
1037
|
'div',
|
|
1039
1038
|
null,
|
|
1040
|
-
isMediaSeries && article.documentGroup && article.documentGroup.name &&
|
|
1039
|
+
isMediaSeries && article.documentGroup && article.documentGroup.name && React__default.createElement(
|
|
1041
1040
|
'p',
|
|
1042
1041
|
{ style: { fontSize: '14px' } },
|
|
1043
1042
|
article.documentGroup.name,
|
|
1044
1043
|
' - Episode ',
|
|
1045
1044
|
episodeNumber
|
|
1046
1045
|
),
|
|
1047
|
-
|
|
1046
|
+
React__default.createElement(
|
|
1048
1047
|
'h1',
|
|
1049
1048
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
1050
1049
|
title
|
|
1051
1050
|
)
|
|
1052
1051
|
),
|
|
1053
|
-
|
|
1052
|
+
React__default.createElement(
|
|
1054
1053
|
'div',
|
|
1055
1054
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
1056
|
-
|
|
1055
|
+
React__default.createElement(
|
|
1057
1056
|
'style',
|
|
1058
1057
|
{ jsx: 'true' },
|
|
1059
1058
|
'\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 '
|
|
1060
1059
|
),
|
|
1061
|
-
|
|
1060
|
+
React__default.createElement(
|
|
1062
1061
|
'div',
|
|
1063
1062
|
{ className: 'left-wrap' },
|
|
1064
|
-
!isVideoSeries && showPublished &&
|
|
1063
|
+
!isVideoSeries && showPublished && React__default.createElement(
|
|
1065
1064
|
'div',
|
|
1066
1065
|
null,
|
|
1067
1066
|
moment(published).format('LL')
|
|
1068
1067
|
)
|
|
1069
1068
|
/* Show Published date */
|
|
1070
1069
|
,
|
|
1071
|
-
|
|
1070
|
+
React__default.createElement(
|
|
1072
1071
|
'div',
|
|
1073
1072
|
{ className: 'mb-3' },
|
|
1074
1073
|
!isVideoSeries && authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
1075
|
-
return
|
|
1074
|
+
return React__default.createElement(
|
|
1076
1075
|
'span',
|
|
1077
1076
|
{ key: index },
|
|
1078
1077
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
1079
1078
|
);
|
|
1080
1079
|
}),
|
|
1081
|
-
|
|
1080
|
+
React__default.createElement(
|
|
1082
1081
|
'div',
|
|
1083
1082
|
null,
|
|
1084
|
-
source &&
|
|
1083
|
+
source && React__default.createElement(
|
|
1085
1084
|
'p',
|
|
1086
1085
|
{
|
|
1087
1086
|
style: {
|
|
@@ -1096,13 +1095,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1096
1095
|
source
|
|
1097
1096
|
)
|
|
1098
1097
|
),
|
|
1099
|
-
issue &&
|
|
1098
|
+
issue && React__default.createElement(
|
|
1100
1099
|
'div',
|
|
1101
1100
|
{ className: 'volume-issue' },
|
|
1102
|
-
issue.publication && issue.publication.name &&
|
|
1101
|
+
issue.publication && issue.publication.name && React__default.createElement(
|
|
1103
1102
|
'span',
|
|
1104
1103
|
{ className: 'mb-0' },
|
|
1105
|
-
|
|
1104
|
+
React__default.createElement(
|
|
1106
1105
|
'b',
|
|
1107
1106
|
null,
|
|
1108
1107
|
issue.publication.name
|
|
@@ -1110,34 +1109,34 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1110
1109
|
',',
|
|
1111
1110
|
' '
|
|
1112
1111
|
),
|
|
1113
|
-
issue.name &&
|
|
1112
|
+
issue.name && React__default.createElement(
|
|
1114
1113
|
'span',
|
|
1115
1114
|
{ className: 'mb-0' },
|
|
1116
1115
|
issue.name,
|
|
1117
1116
|
', '
|
|
1118
1117
|
),
|
|
1119
|
-
issue.volume &&
|
|
1118
|
+
issue.volume && React__default.createElement(
|
|
1120
1119
|
'span',
|
|
1121
1120
|
null,
|
|
1122
1121
|
'Volume ' + issue.volume,
|
|
1123
1122
|
','
|
|
1124
1123
|
),
|
|
1125
|
-
issue.issueNumber &&
|
|
1124
|
+
issue.issueNumber && React__default.createElement(
|
|
1126
1125
|
'span',
|
|
1127
1126
|
null,
|
|
1128
1127
|
' Issue ' + issue.issueNumber
|
|
1129
1128
|
)
|
|
1130
1129
|
),
|
|
1131
|
-
pageNumber &&
|
|
1130
|
+
pageNumber && React__default.createElement(
|
|
1132
1131
|
'div',
|
|
1133
1132
|
{ className: 'article-pageNumber' },
|
|
1134
1133
|
'Pages: ' + pageNumber
|
|
1135
1134
|
)
|
|
1136
1135
|
),
|
|
1137
|
-
!isVideoSeries && showSocialShare &&
|
|
1136
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1138
1137
|
'p',
|
|
1139
1138
|
null,
|
|
1140
|
-
|
|
1139
|
+
React__default.createElement(SocialShare, {
|
|
1141
1140
|
shareUrl: shareUrl,
|
|
1142
1141
|
shareTitle: shareTitle,
|
|
1143
1142
|
shareVia: shareVia,
|
|
@@ -1153,27 +1152,27 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1153
1152
|
})
|
|
1154
1153
|
)
|
|
1155
1154
|
),
|
|
1156
|
-
|
|
1155
|
+
React__default.createElement(
|
|
1157
1156
|
'div',
|
|
1158
1157
|
null,
|
|
1159
|
-
|
|
1158
|
+
React__default.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
1160
1159
|
)
|
|
1161
1160
|
),
|
|
1162
|
-
!isVideoSeries && summary && display_summary &&
|
|
1161
|
+
!isVideoSeries && summary && display_summary && React__default.createElement(
|
|
1163
1162
|
'p',
|
|
1164
1163
|
null,
|
|
1165
|
-
|
|
1164
|
+
React__default.createElement(
|
|
1166
1165
|
'em',
|
|
1167
1166
|
null,
|
|
1168
1167
|
summary
|
|
1169
1168
|
)
|
|
1170
1169
|
),
|
|
1171
|
-
|
|
1170
|
+
React__default.createElement(
|
|
1172
1171
|
'div',
|
|
1173
1172
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1174
1173
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1175
1174
|
if (index === 0) {
|
|
1176
|
-
return
|
|
1175
|
+
return React__default.createElement(
|
|
1177
1176
|
'div',
|
|
1178
1177
|
{
|
|
1179
1178
|
key: index,
|
|
@@ -1190,24 +1189,24 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1190
1189
|
}
|
|
1191
1190
|
})
|
|
1192
1191
|
),
|
|
1193
|
-
|
|
1192
|
+
React__default.createElement(
|
|
1194
1193
|
'div',
|
|
1195
1194
|
{ className: 'block-content mt-3' },
|
|
1196
1195
|
!isVideoSeries && renderBlockContent(article, meta),
|
|
1197
|
-
|
|
1198
|
-
|
|
1196
|
+
React__default.createElement('div', { className: 'clearfix' }),
|
|
1197
|
+
React__default.createElement(
|
|
1199
1198
|
'noscript',
|
|
1200
1199
|
null,
|
|
1201
|
-
|
|
1200
|
+
React__default.createElement(
|
|
1202
1201
|
'div',
|
|
1203
1202
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
1204
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1203
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement(
|
|
1205
1204
|
'a',
|
|
1206
1205
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
1207
1206
|
'Previous ',
|
|
1208
1207
|
props.article.seriesDetail.type
|
|
1209
1208
|
),
|
|
1210
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1209
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement(
|
|
1211
1210
|
'a',
|
|
1212
1211
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
1213
1212
|
'Next ',
|
|
@@ -1215,26 +1214,26 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1215
1214
|
)
|
|
1216
1215
|
)
|
|
1217
1216
|
),
|
|
1218
|
-
issue && issue.url &&
|
|
1217
|
+
issue && issue.url && React__default.createElement(
|
|
1219
1218
|
'a',
|
|
1220
1219
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1221
|
-
|
|
1220
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1222
1221
|
'Download Issue : ',
|
|
1223
1222
|
issue.name
|
|
1224
1223
|
)
|
|
1225
1224
|
),
|
|
1226
|
-
|
|
1227
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo &&
|
|
1225
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1226
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1228
1227
|
'div',
|
|
1229
1228
|
null,
|
|
1230
1229
|
false ,
|
|
1231
|
-
|
|
1230
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1232
1231
|
),
|
|
1233
|
-
showRelatedArticles && !showIsi &&
|
|
1234
|
-
disqusConfig && showDisqus &&
|
|
1232
|
+
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1233
|
+
disqusConfig && showDisqus && React__default.createElement(
|
|
1235
1234
|
'div',
|
|
1236
1235
|
{ id: 'disqusContainer' },
|
|
1237
|
-
|
|
1236
|
+
React__default.createElement(DiscussionEmbed, {
|
|
1238
1237
|
shortname: disqusConfig.shortname,
|
|
1239
1238
|
config: {
|
|
1240
1239
|
url: disqusConfig.url,
|
|
@@ -1247,30 +1246,30 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1247
1246
|
renderIsiContent(props.article)
|
|
1248
1247
|
)
|
|
1249
1248
|
),
|
|
1250
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1249
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
1251
1250
|
ISI,
|
|
1252
1251
|
null,
|
|
1253
|
-
|
|
1252
|
+
React__default.createElement(BlockContent, {
|
|
1254
1253
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1255
1254
|
blocks: isi
|
|
1256
1255
|
})
|
|
1257
1256
|
),
|
|
1258
1257
|
main_43 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1259
1258
|
if (index > 0) {
|
|
1260
|
-
return
|
|
1259
|
+
return React__default.createElement(
|
|
1261
1260
|
'div',
|
|
1262
1261
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1263
1262
|
ad.component
|
|
1264
1263
|
);
|
|
1265
1264
|
}
|
|
1266
1265
|
}),
|
|
1267
|
-
|
|
1266
|
+
React__default.createElement(
|
|
1268
1267
|
'noscript',
|
|
1269
1268
|
null,
|
|
1270
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1269
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React__default.createElement(
|
|
1271
1270
|
'div',
|
|
1272
1271
|
{ style: { textAlign: 'center' } },
|
|
1273
|
-
|
|
1272
|
+
React__default.createElement(
|
|
1274
1273
|
'a',
|
|
1275
1274
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1276
1275
|
'Related Article ',
|
|
@@ -1278,7 +1277,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1278
1277
|
)
|
|
1279
1278
|
)
|
|
1280
1279
|
),
|
|
1281
|
-
props.infiniteScroll &&
|
|
1280
|
+
props.infiniteScroll && React__default.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1282
1281
|
);
|
|
1283
1282
|
};
|
|
1284
1283
|
|
|
@@ -1517,14 +1516,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1517
1516
|
refreshAD(path);
|
|
1518
1517
|
};
|
|
1519
1518
|
|
|
1520
|
-
return
|
|
1519
|
+
return React__default.createElement(
|
|
1521
1520
|
InfiniteScroll,
|
|
1522
1521
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1523
1522
|
queueData.map(function (article, index) {
|
|
1524
|
-
return
|
|
1525
|
-
|
|
1523
|
+
return React__default.createElement(
|
|
1524
|
+
React__default.Fragment,
|
|
1526
1525
|
null,
|
|
1527
|
-
|
|
1526
|
+
React__default.createElement(Article, _extends({
|
|
1528
1527
|
key: index
|
|
1529
1528
|
}, props, {
|
|
1530
1529
|
containerHeight: containerHeight,
|
|
@@ -1666,63 +1665,63 @@ var View = function View(props) {
|
|
|
1666
1665
|
meta_description = seriesShareOptions && seriesShareOptions.seriesSummary ? '' + seriesShareOptions.seriesSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '';
|
|
1667
1666
|
}
|
|
1668
1667
|
|
|
1669
|
-
return
|
|
1670
|
-
|
|
1668
|
+
return React__default.createElement(
|
|
1669
|
+
React__default.Fragment,
|
|
1671
1670
|
null,
|
|
1672
|
-
|
|
1671
|
+
React__default.createElement(
|
|
1673
1672
|
Head,
|
|
1674
1673
|
null,
|
|
1675
|
-
|
|
1674
|
+
React__default.createElement(
|
|
1676
1675
|
'title',
|
|
1677
1676
|
{ key: 'title' },
|
|
1678
1677
|
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 : '')
|
|
1679
1678
|
),
|
|
1680
|
-
meta_description &&
|
|
1681
|
-
|
|
1682
|
-
passwordLock &&
|
|
1683
|
-
|
|
1679
|
+
meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
1680
|
+
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1681
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1682
|
+
React__default.createElement('meta', {
|
|
1684
1683
|
property: 'og:url',
|
|
1685
1684
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1686
1685
|
key: 'og:url'
|
|
1687
1686
|
}),
|
|
1688
|
-
|
|
1687
|
+
React__default.createElement('meta', {
|
|
1689
1688
|
property: 'og:title',
|
|
1690
1689
|
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 : ''),
|
|
1691
1690
|
key: 'og:title'
|
|
1692
1691
|
}),
|
|
1693
|
-
|
|
1692
|
+
React__default.createElement('meta', {
|
|
1694
1693
|
property: 'og:image',
|
|
1695
1694
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1696
1695
|
key: 'og:image'
|
|
1697
1696
|
}),
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1697
|
+
React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1698
|
+
React__default.createElement('meta', { property: 'og:description', content: meta_description, key: 'og:description' }),
|
|
1699
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1700
|
+
React__default.createElement('meta', {
|
|
1702
1701
|
name: 'twitter:title',
|
|
1703
1702
|
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 : ''),
|
|
1704
1703
|
key: 'twitter:title'
|
|
1705
1704
|
}),
|
|
1706
|
-
|
|
1705
|
+
React__default.createElement('meta', {
|
|
1707
1706
|
name: 'twitter:image',
|
|
1708
1707
|
content: seriesShareOptions && seriesShareOptions.seriesThumbnail ? seriesShareOptions.seriesThumbnail : shareOptions.shareImage,
|
|
1709
1708
|
key: 'twitter:image'
|
|
1710
1709
|
}),
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
canonicalTag &&
|
|
1710
|
+
React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1711
|
+
React__default.createElement('meta', { name: 'twitter:description', content: meta_description, key: 'twitter:description' }),
|
|
1712
|
+
canonicalTag && React__default.createElement('link', {
|
|
1714
1713
|
rel: 'canonical',
|
|
1715
1714
|
href: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
1716
1715
|
key: 'canonical'
|
|
1717
1716
|
}),
|
|
1718
|
-
|
|
1717
|
+
React__default.createElement(
|
|
1719
1718
|
'noscript',
|
|
1720
1719
|
null,
|
|
1721
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1722
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1720
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1721
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1723
1722
|
)
|
|
1724
1723
|
),
|
|
1725
|
-
!needInfiniteScroll ?
|
|
1724
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
1726
1725
|
infiniteScroll: true,
|
|
1727
1726
|
showRelatedArticles: showRelatedArticles,
|
|
1728
1727
|
canonicalTag: canonicalTag,
|