@mjhls/mjh-framework 1.0.672 → 1.0.673-article-series
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 +1 -1
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-bc591de7.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +12 -11
- package/dist/cjs/ADWebcast.js +12 -11
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-4b713637.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +9 -8
- package/dist/cjs/ArticleSeriesListing.js +38 -37
- package/dist/cjs/Auth.js +430 -593
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +19 -18
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +77 -73
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-fa2c6aad.js} +21 -20
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +44 -43
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +153 -149
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +40 -39
- package/dist/cjs/HamMagazine.js +119 -114
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +69 -64
- package/dist/cjs/IssueDeck.js +64 -59
- package/dist/cjs/IssueLanding.js +18 -17
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +121 -116
- package/dist/cjs/NavNative.js +103 -95
- package/dist/cjs/NavNormal.js +41 -36
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +1269 -71
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +63 -58
- package/dist/cjs/PublicationLanding.js +52 -48
- package/dist/cjs/QueueDeckExpanded.js +219 -219
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +22 -21
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-962b1344.js → SocialSearchComponent-fde6c921.js} +36 -32
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TemplateNormal.js +36 -35
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesCard.js +25 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +52 -51
- package/dist/cjs/View.js +183 -179
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +53 -52
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getRelatedArticle.js +354 -5
- package/dist/cjs/getSerializers.js +9 -9
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-c190d704.js → index-06016cad.js} +361 -351
- package/dist/cjs/{index-2d0a4911.js → index-44481153.js} +9 -8
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
- package/dist/cjs/{index.esm-fe549f9c.js → index.esm-dd489d02.js} +20 -20
- package/dist/cjs/index.js +31 -32
- package/dist/cjs/{inherits-513d81cd.js → inherits-87492b40.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-b6c96c8d.js → main-9499b3ef.js} +48 -43
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-9140aa7d.js → ADInfeed-d1777980.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-7656ecd1.js → ADlgInfeed-84282fe8.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +411 -578
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-d05b5b23.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +13 -13
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +53 -53
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-939e8fcf.js} +10 -10
- package/dist/esm/EventsDeck.js +66 -66
- package/dist/esm/ExternalResources.js +37 -37
- package/dist/esm/Feature.js +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +110 -110
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +35 -35
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +90 -90
- package/dist/esm/NavNative.js +70 -70
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +13 -14
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1263 -67
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +28 -28
- package/dist/esm/QueueDeckExpanded.js +199 -199
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +16 -16
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-75527dfe.js → SocialSearchComponent-a13fc98b.js} +23 -23
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesCard.js +16 -16
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesListing.js +45 -45
- package/dist/esm/View.js +165 -165
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +9 -9
- package/dist/esm/{index-93ec3c59.js → index-1819118a.js} +3 -3
- package/dist/esm/{index-983cedab.js → index-45bca0c4.js} +303 -299
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
- package/dist/esm/{index.esm-73e847d2.js → index.esm-902766e0.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +26 -27
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-596840e8.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-0465b2a0.js → main-edbd70ac.js} +48 -44
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/View.js
CHANGED
|
@@ -8,25 +8,25 @@ import './core.get-iterator-method-54d2e411.js';
|
|
|
8
8
|
import './_object-pie-71ac75a4.js';
|
|
9
9
|
import { _ as _extends, a as _Object$assign } from './extends-cc5da797.js';
|
|
10
10
|
import './_object-sap-4d59d5bd.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-596840e8.js';
|
|
12
12
|
import './define-property-de3fc946.js';
|
|
13
13
|
import './web.dom.iterable-8956f9a5.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-
|
|
14
|
+
import { _ as _typeof } from './typeof-ee095d0c.js';
|
|
15
15
|
import './_is-array-49698029.js';
|
|
16
|
-
import
|
|
17
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import 'react-bootstrap/Row';
|
|
20
20
|
import 'react-bootstrap/Col';
|
|
21
|
-
import { m as moment } from './moment-
|
|
21
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
22
22
|
import { useRouter } from 'next/router';
|
|
23
23
|
import './isSymbol-807e927e.js';
|
|
24
24
|
import './debounce-1a993acf.js';
|
|
25
|
-
import { I as InfiniteScroll } from './index.es-
|
|
25
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
26
26
|
import 'react-dom';
|
|
27
27
|
import './index-51a80699.js';
|
|
28
|
-
import './index-
|
|
29
|
-
import { m as
|
|
28
|
+
import './index-c5fd0af5.js';
|
|
29
|
+
import { m as main_40 } from './main-edbd70ac.js';
|
|
30
30
|
import './entities-7cc3bf45.js';
|
|
31
31
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
32
32
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
@@ -34,7 +34,7 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
|
|
|
34
34
|
import './_set-species-cede29f8.js';
|
|
35
35
|
import './beam-681a9749.js';
|
|
36
36
|
import DFPAdSlot from './AdSlot.js';
|
|
37
|
-
import { B as BlockContent } from './BlockContent-
|
|
37
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
38
38
|
import './smoothscroll-4b699764.js';
|
|
39
39
|
import './GroupDeck.js';
|
|
40
40
|
import 'react-bootstrap';
|
|
@@ -42,9 +42,9 @@ import './iconBase-602d52fe.js';
|
|
|
42
42
|
import Button from 'react-bootstrap/Button';
|
|
43
43
|
import { _ as _defineProperty } from './defineProperty-b798470d.js';
|
|
44
44
|
import Form from 'react-bootstrap/Form';
|
|
45
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
45
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-45bca0c4.js';
|
|
46
46
|
import './util-7700fc59.js';
|
|
47
|
-
import './brightcove-react-player-loader.es-
|
|
47
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
48
48
|
import 'react-bootstrap/Pagination';
|
|
49
49
|
import Head from 'next/head';
|
|
50
50
|
import 'react-share';
|
|
@@ -52,11 +52,11 @@ import SocialShare from './SocialShare.js';
|
|
|
52
52
|
import FormControl from 'react-bootstrap/FormControl';
|
|
53
53
|
import { _ as _Object$keys } from './keys-fc2d4c34.js';
|
|
54
54
|
import 'react-bootstrap/Dropdown';
|
|
55
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-
|
|
55
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
56
56
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
57
|
-
import '
|
|
58
|
-
import getQuery from './getQuery.js';
|
|
57
|
+
import './index-db3bb315.js';
|
|
59
58
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
59
|
+
import getQuery from './getQuery.js';
|
|
60
60
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2acdec91.js';
|
|
61
61
|
import getKeywords from './getKeywords.js';
|
|
62
62
|
import urlFor from './urlFor.js';
|
|
@@ -129,17 +129,17 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
129
129
|
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
return
|
|
132
|
+
return React.createElement(
|
|
133
133
|
'a',
|
|
134
134
|
{
|
|
135
135
|
href: url,
|
|
136
136
|
className: 'doc-group',
|
|
137
137
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
138
|
-
thumbnailUrl &&
|
|
139
|
-
!thumbnailUrl &&
|
|
140
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
138
|
+
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
139
|
+
!thumbnailUrl && React.createElement('p', {
|
|
140
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
141
141
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
142
|
-
|
|
142
|
+
main_40 && !thumbnailUrl && React.createElement(
|
|
143
143
|
'style',
|
|
144
144
|
{ jsx: 'true' },
|
|
145
145
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -207,38 +207,38 @@ var ISI = function ISI(props) {
|
|
|
207
207
|
isi.current.style.overflowY = '';
|
|
208
208
|
}
|
|
209
209
|
}, [active]);
|
|
210
|
-
return
|
|
211
|
-
|
|
210
|
+
return React.createElement(
|
|
211
|
+
React.Fragment,
|
|
212
212
|
null,
|
|
213
|
-
|
|
213
|
+
React.createElement(
|
|
214
214
|
'div',
|
|
215
215
|
{ id: 'isi', ref: isi },
|
|
216
|
-
|
|
216
|
+
React.createElement(
|
|
217
217
|
'div',
|
|
218
218
|
{ id: 'isiContent' },
|
|
219
|
-
|
|
219
|
+
React.createElement(
|
|
220
220
|
'div',
|
|
221
221
|
{ onClick: function onClick() {
|
|
222
222
|
return setActive(function (prev) {
|
|
223
223
|
return !prev;
|
|
224
224
|
});
|
|
225
225
|
}, id: 'isiToggle' },
|
|
226
|
-
active ?
|
|
226
|
+
active ? React.createElement(
|
|
227
227
|
'p',
|
|
228
228
|
null,
|
|
229
229
|
'Close ',
|
|
230
|
-
|
|
231
|
-
) :
|
|
230
|
+
React.createElement(FaMinus, null)
|
|
231
|
+
) : React.createElement(
|
|
232
232
|
'p',
|
|
233
233
|
null,
|
|
234
|
-
'
|
|
235
|
-
|
|
234
|
+
'See More ',
|
|
235
|
+
React.createElement(FaPlus, null)
|
|
236
236
|
)
|
|
237
237
|
),
|
|
238
238
|
children
|
|
239
239
|
)
|
|
240
240
|
),
|
|
241
|
-
|
|
241
|
+
React.createElement(
|
|
242
242
|
'style',
|
|
243
243
|
{ jsx: true },
|
|
244
244
|
'\n #isi {\n position: fixed;\n z-index: 99999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\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 '
|
|
@@ -257,29 +257,29 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
257
257
|
if (!articles || articles.length == 0 || !articles[0]) {
|
|
258
258
|
return null;
|
|
259
259
|
}
|
|
260
|
-
return
|
|
260
|
+
return React.createElement(
|
|
261
261
|
'div',
|
|
262
262
|
{ className: styles.mediaContainer },
|
|
263
263
|
articles.map(function (article, index) {
|
|
264
|
-
return
|
|
264
|
+
return React.createElement(
|
|
265
265
|
'div',
|
|
266
266
|
{ id: 'related-card', key: index, className: styles.mediaCard },
|
|
267
|
-
|
|
267
|
+
React.createElement(
|
|
268
268
|
'a',
|
|
269
269
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
270
|
-
article.thumbnail &&
|
|
270
|
+
article.thumbnail && React.createElement('img', {
|
|
271
271
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
272
272
|
src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
|
|
273
273
|
alt: article.title
|
|
274
274
|
})
|
|
275
275
|
),
|
|
276
|
-
|
|
276
|
+
React.createElement(
|
|
277
277
|
'div',
|
|
278
278
|
{ className: styles.mediaBody },
|
|
279
|
-
|
|
279
|
+
React.createElement(
|
|
280
280
|
'a',
|
|
281
281
|
{ href: '/view/' + (article.url ? article.url.current : '') },
|
|
282
|
-
|
|
282
|
+
React.createElement(
|
|
283
283
|
'h4',
|
|
284
284
|
{ className: styles.cardTitle },
|
|
285
285
|
article.title
|
|
@@ -451,7 +451,7 @@ var Article = function Article(props) {
|
|
|
451
451
|
};
|
|
452
452
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
453
453
|
if (biography) {
|
|
454
|
-
return
|
|
454
|
+
return React.createElement(BlockContent, _extends({
|
|
455
455
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
456
456
|
blocks: [biography]
|
|
457
457
|
}, client.config()));
|
|
@@ -461,22 +461,22 @@ var Article = function Article(props) {
|
|
|
461
461
|
var url = article.url.current;
|
|
462
462
|
|
|
463
463
|
if (regionalPages && ISIContent && regionalPages.includes(url)) {
|
|
464
|
-
return
|
|
464
|
+
return React.createElement(ISIContent, null);
|
|
465
465
|
} else if (nationalPage === url && ISIContent) {
|
|
466
|
-
return
|
|
466
|
+
return React.createElement(ISIContent, { national: true });
|
|
467
467
|
}
|
|
468
468
|
return null;
|
|
469
469
|
};
|
|
470
470
|
|
|
471
471
|
var RelevantTopics = function RelevantTopics() {
|
|
472
472
|
if (content_placement && content_placement.length > 0 || documentGroupMapping) {
|
|
473
|
-
return
|
|
473
|
+
return React.createElement(
|
|
474
474
|
'div',
|
|
475
475
|
{ style: { color: '#262626' } },
|
|
476
|
-
|
|
476
|
+
React.createElement(
|
|
477
477
|
'p',
|
|
478
478
|
{ className: 'mb-0' },
|
|
479
|
-
|
|
479
|
+
React.createElement(
|
|
480
480
|
'b',
|
|
481
481
|
null,
|
|
482
482
|
'Related Content:'
|
|
@@ -487,13 +487,13 @@ var Article = function Article(props) {
|
|
|
487
487
|
return null;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
return
|
|
491
|
-
|
|
490
|
+
return React.createElement(
|
|
491
|
+
React.Fragment,
|
|
492
492
|
null,
|
|
493
|
-
|
|
493
|
+
React.createElement(
|
|
494
494
|
'span',
|
|
495
495
|
{ className: '' },
|
|
496
|
-
|
|
496
|
+
React.createElement(
|
|
497
497
|
'a',
|
|
498
498
|
{
|
|
499
499
|
className: 'related-links',
|
|
@@ -508,13 +508,13 @@ var Article = function Article(props) {
|
|
|
508
508
|
content_placement && content_placement.length > 0 ? content_placement.map(function (cp, index) {
|
|
509
509
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
510
510
|
var href = '/' + cp_url;
|
|
511
|
-
return
|
|
512
|
-
|
|
511
|
+
return React.createElement(
|
|
512
|
+
React.Fragment,
|
|
513
513
|
{ key: index },
|
|
514
|
-
|
|
514
|
+
React.createElement(
|
|
515
515
|
'span',
|
|
516
516
|
null,
|
|
517
|
-
|
|
517
|
+
React.createElement(
|
|
518
518
|
'a',
|
|
519
519
|
{ className: 'related-links', key: index, href: href, style: { color: 'blue' } },
|
|
520
520
|
cp.name
|
|
@@ -529,28 +529,28 @@ var Article = function Article(props) {
|
|
|
529
529
|
};
|
|
530
530
|
|
|
531
531
|
var form = function form() {
|
|
532
|
-
return
|
|
533
|
-
|
|
532
|
+
return React.createElement(
|
|
533
|
+
React.Fragment,
|
|
534
534
|
null,
|
|
535
|
-
|
|
535
|
+
React.createElement(
|
|
536
536
|
Head,
|
|
537
537
|
null,
|
|
538
|
-
|
|
538
|
+
React.createElement('meta', { name: 'googlebot', content: 'noindex' })
|
|
539
539
|
),
|
|
540
|
-
|
|
540
|
+
React.createElement(
|
|
541
541
|
'div',
|
|
542
542
|
{ className: 'mt-5', style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
543
|
-
|
|
543
|
+
React.createElement(
|
|
544
544
|
Form,
|
|
545
545
|
{
|
|
546
546
|
inline: true,
|
|
547
547
|
onSubmit: function onSubmit(e) {
|
|
548
548
|
e.preventDefault();
|
|
549
549
|
} },
|
|
550
|
-
|
|
550
|
+
React.createElement(FormControl, { type: 'text', className: 'mr-sm-2', value: passwordKey, onChange: function onChange(e) {
|
|
551
551
|
return setPasswordKey(e.target.value);
|
|
552
552
|
}, placeholder: 'Password' }),
|
|
553
|
-
|
|
553
|
+
React.createElement(
|
|
554
554
|
Button,
|
|
555
555
|
{
|
|
556
556
|
variant: 'primary',
|
|
@@ -611,27 +611,27 @@ var Article = function Article(props) {
|
|
|
611
611
|
setContextualADFlag(true);
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
|
-
return
|
|
615
|
-
|
|
614
|
+
return React.createElement(
|
|
615
|
+
React.Fragment,
|
|
616
616
|
null,
|
|
617
|
-
|
|
617
|
+
React.createElement(BlockContent, _extends({
|
|
618
618
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
619
619
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
620
620
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
621
621
|
}, client.config())),
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
623
|
+
React.createElement(
|
|
624
624
|
'div',
|
|
625
625
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
626
|
-
|
|
626
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
|
|
627
627
|
),
|
|
628
|
-
|
|
629
|
-
|
|
628
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
629
|
+
React.createElement(
|
|
630
630
|
'div',
|
|
631
631
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
632
|
-
|
|
632
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
633
633
|
),
|
|
634
|
-
|
|
634
|
+
React.createElement(BlockContent, _extends({
|
|
635
635
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
636
636
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
637
637
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -683,22 +683,22 @@ var Article = function Article(props) {
|
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
685
|
|
|
686
|
-
return
|
|
687
|
-
|
|
686
|
+
return React.createElement(
|
|
687
|
+
React.Fragment,
|
|
688
688
|
null,
|
|
689
|
-
|
|
689
|
+
React.createElement(BlockContent, _extends({
|
|
690
690
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
691
691
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
692
692
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
693
693
|
}, client.config())),
|
|
694
|
-
contextualADFlag &&
|
|
695
|
-
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) &&
|
|
694
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
695
|
+
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
696
696
|
'div',
|
|
697
697
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
698
|
-
|
|
698
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
|
|
699
699
|
),
|
|
700
|
-
contextualADFlag &&
|
|
701
|
-
|
|
700
|
+
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
701
|
+
React.createElement(BlockContent, _extends({
|
|
702
702
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
703
703
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
704
704
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -726,28 +726,28 @@ var Article = function Article(props) {
|
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
728
|
|
|
729
|
-
return
|
|
730
|
-
|
|
729
|
+
return React.createElement(
|
|
730
|
+
React.Fragment,
|
|
731
731
|
null,
|
|
732
|
-
|
|
732
|
+
React.createElement(BlockContent, _extends({
|
|
733
733
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
734
734
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
735
735
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
736
736
|
}, client.config())),
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
React.createElement('span', { className: 'clearfix' }),
|
|
738
|
+
React.createElement(
|
|
739
739
|
'div',
|
|
740
740
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
741
|
-
|
|
741
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
742
742
|
),
|
|
743
|
-
|
|
743
|
+
React.createElement(BlockContent, _extends({
|
|
744
744
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
745
745
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
746
746
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
747
747
|
}, client.config()))
|
|
748
748
|
);
|
|
749
749
|
} else {
|
|
750
|
-
return
|
|
750
|
+
return React.createElement(BlockContent, _extends({
|
|
751
751
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
752
752
|
blocks: articleBody,
|
|
753
753
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
@@ -785,10 +785,10 @@ var Article = function Article(props) {
|
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
-
return
|
|
789
|
-
|
|
788
|
+
return React.createElement(
|
|
789
|
+
React.Fragment,
|
|
790
790
|
null,
|
|
791
|
-
|
|
791
|
+
React.createElement(
|
|
792
792
|
InscreenSensor,
|
|
793
793
|
{
|
|
794
794
|
offSetTop: 120,
|
|
@@ -801,49 +801,49 @@ var Article = function Article(props) {
|
|
|
801
801
|
setVisibleFlag(true);
|
|
802
802
|
}
|
|
803
803
|
} },
|
|
804
|
-
|
|
804
|
+
React.createElement(
|
|
805
805
|
'div',
|
|
806
806
|
null,
|
|
807
|
-
|
|
807
|
+
React.createElement(
|
|
808
808
|
'div',
|
|
809
809
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
810
|
-
|
|
810
|
+
React.createElement(
|
|
811
811
|
'h1',
|
|
812
812
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
813
813
|
title
|
|
814
814
|
),
|
|
815
|
-
|
|
815
|
+
React.createElement(
|
|
816
816
|
'div',
|
|
817
817
|
{ className: 'mb-3 doc-group-container', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end' } },
|
|
818
|
-
|
|
818
|
+
React.createElement(
|
|
819
819
|
'style',
|
|
820
820
|
{ jsx: 'true' },
|
|
821
821
|
'\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 '
|
|
822
822
|
),
|
|
823
|
-
|
|
823
|
+
React.createElement(
|
|
824
824
|
'div',
|
|
825
825
|
{ className: 'left-wrap' },
|
|
826
|
-
showPublished &&
|
|
826
|
+
showPublished && React.createElement(
|
|
827
827
|
'div',
|
|
828
828
|
null,
|
|
829
829
|
moment(published).format('LL')
|
|
830
830
|
)
|
|
831
831
|
/* Show Published date */
|
|
832
832
|
,
|
|
833
|
-
|
|
833
|
+
React.createElement(
|
|
834
834
|
'div',
|
|
835
835
|
{ className: 'mb-3' },
|
|
836
836
|
authorDetails && authorDetails.map(function (authorDetail, index) {
|
|
837
|
-
return
|
|
837
|
+
return React.createElement(
|
|
838
838
|
'span',
|
|
839
839
|
{ key: index },
|
|
840
840
|
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())
|
|
841
841
|
);
|
|
842
842
|
}),
|
|
843
|
-
|
|
843
|
+
React.createElement(
|
|
844
844
|
'div',
|
|
845
845
|
null,
|
|
846
|
-
source &&
|
|
846
|
+
source && React.createElement(
|
|
847
847
|
'p',
|
|
848
848
|
{
|
|
849
849
|
style: {
|
|
@@ -858,13 +858,13 @@ var Article = function Article(props) {
|
|
|
858
858
|
source
|
|
859
859
|
)
|
|
860
860
|
),
|
|
861
|
-
issue &&
|
|
861
|
+
issue && React.createElement(
|
|
862
862
|
'div',
|
|
863
863
|
{ className: 'volume-issue' },
|
|
864
|
-
issue.publication && issue.publication.name &&
|
|
864
|
+
issue.publication && issue.publication.name && React.createElement(
|
|
865
865
|
'span',
|
|
866
866
|
{ className: 'mb-0' },
|
|
867
|
-
|
|
867
|
+
React.createElement(
|
|
868
868
|
'b',
|
|
869
869
|
null,
|
|
870
870
|
issue.publication.name
|
|
@@ -872,34 +872,34 @@ var Article = function Article(props) {
|
|
|
872
872
|
',',
|
|
873
873
|
' '
|
|
874
874
|
),
|
|
875
|
-
issue.name &&
|
|
875
|
+
issue.name && React.createElement(
|
|
876
876
|
'span',
|
|
877
877
|
{ className: 'mb-0' },
|
|
878
878
|
issue.name,
|
|
879
879
|
', '
|
|
880
880
|
),
|
|
881
|
-
issue.volume &&
|
|
881
|
+
issue.volume && React.createElement(
|
|
882
882
|
'span',
|
|
883
883
|
null,
|
|
884
884
|
'Volume ' + issue.volume,
|
|
885
885
|
','
|
|
886
886
|
),
|
|
887
|
-
issue.issueNumber &&
|
|
887
|
+
issue.issueNumber && React.createElement(
|
|
888
888
|
'span',
|
|
889
889
|
null,
|
|
890
890
|
' Issue ' + issue.issueNumber
|
|
891
891
|
)
|
|
892
892
|
),
|
|
893
|
-
pageNumber &&
|
|
893
|
+
pageNumber && React.createElement(
|
|
894
894
|
'div',
|
|
895
895
|
{ className: 'article-pageNumber' },
|
|
896
896
|
'Page Number: ' + pageNumber
|
|
897
897
|
)
|
|
898
898
|
),
|
|
899
|
-
|
|
899
|
+
React.createElement(
|
|
900
900
|
'p',
|
|
901
901
|
null,
|
|
902
|
-
|
|
902
|
+
React.createElement(SocialShare, {
|
|
903
903
|
shareUrl: shareUrl,
|
|
904
904
|
shareTitle: shareTitle,
|
|
905
905
|
shareVia: shareVia,
|
|
@@ -915,27 +915,27 @@ var Article = function Article(props) {
|
|
|
915
915
|
})
|
|
916
916
|
)
|
|
917
917
|
),
|
|
918
|
-
|
|
918
|
+
React.createElement(
|
|
919
919
|
'div',
|
|
920
920
|
null,
|
|
921
|
-
|
|
921
|
+
React.createElement(DocumentGroup, { article: props.article, client: props.client })
|
|
922
922
|
)
|
|
923
923
|
),
|
|
924
|
-
summary &&
|
|
924
|
+
summary && React.createElement(
|
|
925
925
|
'p',
|
|
926
926
|
null,
|
|
927
|
-
|
|
927
|
+
React.createElement(
|
|
928
928
|
'em',
|
|
929
929
|
null,
|
|
930
930
|
summary
|
|
931
931
|
)
|
|
932
932
|
),
|
|
933
|
-
|
|
933
|
+
React.createElement(
|
|
934
934
|
'div',
|
|
935
935
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
936
|
-
|
|
936
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
937
937
|
if (index === 0) {
|
|
938
|
-
return
|
|
938
|
+
return React.createElement(
|
|
939
939
|
'div',
|
|
940
940
|
{
|
|
941
941
|
key: index,
|
|
@@ -952,24 +952,24 @@ var Article = function Article(props) {
|
|
|
952
952
|
}
|
|
953
953
|
})
|
|
954
954
|
),
|
|
955
|
-
|
|
955
|
+
React.createElement(
|
|
956
956
|
'div',
|
|
957
957
|
{ className: 'block-content mt-3' },
|
|
958
958
|
renderBlockContent(article),
|
|
959
|
-
|
|
960
|
-
|
|
959
|
+
React.createElement('div', { className: 'clearfix' }),
|
|
960
|
+
React.createElement(
|
|
961
961
|
'noscript',
|
|
962
962
|
null,
|
|
963
|
-
|
|
963
|
+
React.createElement(
|
|
964
964
|
'div',
|
|
965
965
|
{ style: { display: 'flex', justifyContent: 'center' }, className: 'series-links' },
|
|
966
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
966
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement(
|
|
967
967
|
'a',
|
|
968
968
|
{ className: 'mx-3', href: props.article.seriesDetail.prevUrl },
|
|
969
969
|
'Previous ',
|
|
970
970
|
props.article.seriesDetail.type
|
|
971
971
|
),
|
|
972
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
972
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement(
|
|
973
973
|
'a',
|
|
974
974
|
{ className: 'mx-3', href: props.article.seriesDetail.nextUrl },
|
|
975
975
|
'Next ',
|
|
@@ -977,57 +977,57 @@ var Article = function Article(props) {
|
|
|
977
977
|
)
|
|
978
978
|
)
|
|
979
979
|
),
|
|
980
|
-
issue && issue.url &&
|
|
980
|
+
issue && issue.url && React.createElement(
|
|
981
981
|
'a',
|
|
982
982
|
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
983
|
-
|
|
983
|
+
React.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
984
984
|
'Download Issue : ',
|
|
985
985
|
issue.name
|
|
986
986
|
)
|
|
987
987
|
),
|
|
988
|
-
|
|
989
|
-
showRelatedArticles && !showIsi &&
|
|
990
|
-
|
|
988
|
+
React.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
989
|
+
showRelatedArticles && !showIsi && React.createElement(
|
|
990
|
+
React.Fragment,
|
|
991
991
|
null,
|
|
992
|
-
|
|
992
|
+
React.createElement(
|
|
993
993
|
'div',
|
|
994
994
|
null,
|
|
995
|
-
|
|
995
|
+
React.createElement(RelevantTopics, null)
|
|
996
996
|
),
|
|
997
|
-
|
|
997
|
+
React.createElement(
|
|
998
998
|
'div',
|
|
999
999
|
{ className: 'pt-2' },
|
|
1000
|
-
|
|
1000
|
+
React.createElement(RelatedArticle, { articles: article.relatedArticle, client: client })
|
|
1001
1001
|
)
|
|
1002
1002
|
)
|
|
1003
1003
|
),
|
|
1004
1004
|
renderIsiContent(props.article)
|
|
1005
1005
|
),
|
|
1006
|
-
showIsi && Array.isArray(isi) && isi.length > 0 &&
|
|
1006
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1007
1007
|
ISI,
|
|
1008
1008
|
null,
|
|
1009
|
-
|
|
1009
|
+
React.createElement(BlockContent, {
|
|
1010
1010
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1011
1011
|
blocks: isi
|
|
1012
1012
|
})
|
|
1013
1013
|
)
|
|
1014
1014
|
),
|
|
1015
|
-
|
|
1015
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1016
1016
|
if (index > 0) {
|
|
1017
|
-
return
|
|
1017
|
+
return React.createElement(
|
|
1018
1018
|
'div',
|
|
1019
1019
|
{ key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
|
|
1020
1020
|
ad.component
|
|
1021
1021
|
);
|
|
1022
1022
|
}
|
|
1023
1023
|
}),
|
|
1024
|
-
|
|
1024
|
+
React.createElement(
|
|
1025
1025
|
'noscript',
|
|
1026
1026
|
null,
|
|
1027
|
-
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current &&
|
|
1027
|
+
props.infiniteScroll && props.article.relatedArticle && props.article.relatedArticle[0] && props.article.relatedArticle[0].url && props.article.relatedArticle[0].url.current && React.createElement(
|
|
1028
1028
|
'div',
|
|
1029
1029
|
{ style: { textAlign: 'center' } },
|
|
1030
|
-
|
|
1030
|
+
React.createElement(
|
|
1031
1031
|
'a',
|
|
1032
1032
|
{ href: '/view/' + props.article.relatedArticle[0].url.current },
|
|
1033
1033
|
'Related Article ',
|
|
@@ -1035,7 +1035,7 @@ var Article = function Article(props) {
|
|
|
1035
1035
|
)
|
|
1036
1036
|
)
|
|
1037
1037
|
),
|
|
1038
|
-
|
|
1038
|
+
React.createElement('hr', { className: 'article-seperater mb-5 mt-3' })
|
|
1039
1039
|
);
|
|
1040
1040
|
};
|
|
1041
1041
|
|
|
@@ -1085,7 +1085,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1085
1085
|
});
|
|
1086
1086
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1087
1087
|
|
|
1088
|
-
if (!
|
|
1088
|
+
if (!main_40) {
|
|
1089
1089
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1090
1090
|
if (window.googletag && googletag.pubadsReady) {
|
|
1091
1091
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1103,7 +1103,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
1105
|
//Refresh leaderboard ad on mobile
|
|
1106
|
-
if (
|
|
1106
|
+
if (main_40) {
|
|
1107
1107
|
var leaderboardSlotId = '';
|
|
1108
1108
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1109
1109
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1260,11 +1260,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
};
|
|
1262
1262
|
|
|
1263
|
-
return
|
|
1263
|
+
return React.createElement(
|
|
1264
1264
|
InfiniteScroll,
|
|
1265
1265
|
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1266
1266
|
queueData.map(function (article, index) {
|
|
1267
|
-
return
|
|
1267
|
+
return React.createElement(Article, _extends({
|
|
1268
1268
|
key: index
|
|
1269
1269
|
}, props, {
|
|
1270
1270
|
onChangeArticle: onChangeArticle,
|
|
@@ -1333,7 +1333,7 @@ var Articles = function Articles(props) {
|
|
|
1333
1333
|
index: 0
|
|
1334
1334
|
};
|
|
1335
1335
|
|
|
1336
|
-
return
|
|
1336
|
+
return React.createElement(ArticleQueue, _extends((_extends2 = {
|
|
1337
1337
|
client: client,
|
|
1338
1338
|
params: params,
|
|
1339
1339
|
relatedArticleQuery: relatedArticleQuery,
|
|
@@ -1457,58 +1457,58 @@ var View = function View(props) {
|
|
|
1457
1457
|
setCurrentPage(0);
|
|
1458
1458
|
}
|
|
1459
1459
|
}, [router]);
|
|
1460
|
-
return
|
|
1461
|
-
|
|
1460
|
+
return React.createElement(
|
|
1461
|
+
React.Fragment,
|
|
1462
1462
|
null,
|
|
1463
|
-
|
|
1463
|
+
React.createElement(
|
|
1464
1464
|
Head,
|
|
1465
1465
|
null,
|
|
1466
|
-
|
|
1466
|
+
React.createElement(
|
|
1467
1467
|
'title',
|
|
1468
1468
|
{ key: 'title' },
|
|
1469
1469
|
article && article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + article.title + (currentPage > 0 ? ' | Page ' + currentPage : '') + ' | ' + props.cache.siteSettingCache.name
|
|
1470
1470
|
),
|
|
1471
|
-
shareOptions.shareSummary &&
|
|
1471
|
+
shareOptions.shareSummary && React.createElement('meta', {
|
|
1472
1472
|
name: 'description',
|
|
1473
1473
|
key: 'description',
|
|
1474
1474
|
content: article.seo && article.seo.meta_description ? '' + article.seo.meta_description + (currentPage > 0 ? ' | Page ' + currentPage : '') : shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? 'Page ' + currentPage : '') }),
|
|
1475
|
-
|
|
1476
|
-
passwordLock &&
|
|
1477
|
-
|
|
1478
|
-
|
|
1475
|
+
React.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
1476
|
+
passwordLock && React.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
1477
|
+
React.createElement('meta', { property: 'og:url', content: shareOptions.shareUrl, key: 'og:url' }),
|
|
1478
|
+
React.createElement('meta', {
|
|
1479
1479
|
property: 'og:title',
|
|
1480
1480
|
content: article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1481
1481
|
key: 'og:title'
|
|
1482
1482
|
}),
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1483
|
+
React.createElement('meta', { property: 'og:image', content: shareOptions.shareImage, key: 'og:image' }),
|
|
1484
|
+
React.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
|
|
1485
|
+
React.createElement('meta', {
|
|
1486
1486
|
property: 'og:description',
|
|
1487
1487
|
content: shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1488
1488
|
key: 'og:description'
|
|
1489
1489
|
}),
|
|
1490
|
-
|
|
1491
|
-
|
|
1490
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
|
|
1491
|
+
React.createElement('meta', {
|
|
1492
1492
|
name: 'twitter:title',
|
|
1493
1493
|
content: article.seo && article.seo.seo_title ? '' + article.seo.seo_title + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + shareOptions.shareTitle + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1494
1494
|
key: 'twitter:title'
|
|
1495
1495
|
}),
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1496
|
+
React.createElement('meta', { name: 'twitter:image', content: shareOptions.shareImage, key: 'twitter:image' }),
|
|
1497
|
+
React.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
|
|
1498
|
+
React.createElement('meta', {
|
|
1499
1499
|
name: 'twitter:description',
|
|
1500
1500
|
content: shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? ' | Page ' + currentPage : ''),
|
|
1501
1501
|
key: 'twitter:description'
|
|
1502
1502
|
}),
|
|
1503
|
-
canonicalTag &&
|
|
1504
|
-
|
|
1503
|
+
canonicalTag && React.createElement('link', { rel: 'canonical', href: shareOptions.shareUrl, key: 'canonical' }),
|
|
1504
|
+
React.createElement(
|
|
1505
1505
|
'noscript',
|
|
1506
1506
|
null,
|
|
1507
|
-
props.article.seriesDetail && props.article.seriesDetail.prevUrl &&
|
|
1508
|
-
props.article.seriesDetail && props.article.seriesDetail.nextUrl &&
|
|
1507
|
+
props.article.seriesDetail && props.article.seriesDetail.prevUrl && React.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
|
|
1508
|
+
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
1509
1509
|
)
|
|
1510
1510
|
),
|
|
1511
|
-
!needInfiniteScroll ?
|
|
1511
|
+
!needInfiniteScroll ? React.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles }, props)) : React.createElement(Articles, _extends({ infiniteScroll: true, showRelatedArticles: showRelatedArticles, canonicalTag: canonicalTag }, props))
|
|
1512
1512
|
);
|
|
1513
1513
|
};
|
|
1514
1514
|
|