@mjhls/mjh-framework 1.0.604 → 1.0.606
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 +172 -172
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +5 -5
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +14 -13
- package/dist/cjs/Auth.js +507 -256
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +9 -9
- package/dist/cjs/Column2.js +2 -0
- package/dist/cjs/Column3.js +6 -4
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +17 -16
- package/dist/cjs/DeckQueue.js +8 -7
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +24 -24
- package/dist/cjs/ExternalResources.js +9 -8
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +14 -13
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +11 -11
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +3 -3
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +18 -17
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +11 -11
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +17 -1212
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/PublicationLanding.js +34 -34
- package/dist/cjs/QueueDeckExpanded.js +13 -13
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +5 -3
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +4 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +6 -5
- package/dist/cjs/View.js +47 -73
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/define-property-f4d12f4e.js +20 -0
- package/dist/cjs/defineProperty-55548b25.js +34 -0
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +8 -7
- package/dist/cjs/{getTargeting-5db63100.js → getTargeting-5a0b8ee4.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-f745a50a.js → index-42a63635.js} +457 -445
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +18 -15
- package/dist/cjs/{inherits-14962339.js → inherits-dca612fa.js} +8 -22
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +5 -5
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +14 -13
- package/dist/esm/Auth.js +499 -248
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +9 -9
- package/dist/esm/Column2.js +2 -0
- package/dist/esm/Column3.js +6 -4
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +17 -16
- package/dist/esm/DeckQueue.js +8 -7
- package/dist/esm/{Dfp-380bef62.js → Dfp-40c70a33.js} +1 -1
- package/dist/esm/EventsDeck.js +24 -24
- package/dist/esm/ExternalResources.js +9 -8
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +14 -13
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +3 -3
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +18 -17
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +11 -11
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +15 -1210
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +34 -34
- package/dist/esm/QueueDeckExpanded.js +13 -13
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +5 -3
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +4 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +6 -5
- package/dist/esm/View.js +22 -48
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/define-property-99e9c0ad.js +18 -0
- package/dist/esm/defineProperty-fa14766d.js +32 -0
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +8 -7
- package/dist/esm/{getTargeting-36bcd238.js → getTargeting-962c9cf6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-599efdf0.js → index-f191d6d0.js} +457 -445
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +17 -14
- package/dist/esm/{inherits-e6718951.js → inherits-a15d91fe.js} +6 -19
- package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-df340285.js → ADInfeed-17a378db.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2110d08c.js → ADlgInfeed-070d911c.js} +0 -0
- /package/dist/esm/{ADInfeed-541eaae3.js → ADInfeed-0c1bcd33.js} +0 -0
- /package/dist/esm/{ADlgInfeed-25c3d142.js → ADlgInfeed-a2518bca.js} +0 -0
package/dist/esm/PdfDownload.js
CHANGED
|
@@ -8,7 +8,7 @@ var PdfDownload = function PdfDownload(props) {
|
|
|
8
8
|
{ className: 'pdf-download', style: { textAlign: 'center', padding: '1rem 0', borderTop: '1px solid #eee', marginTop: '1rem' } },
|
|
9
9
|
React__default.createElement(
|
|
10
10
|
'a',
|
|
11
|
-
{ href: props.issueInfo.asset.url, target: '_blank' },
|
|
11
|
+
{ rel: 'noopener', href: props.issueInfo.asset.url, target: '_blank' },
|
|
12
12
|
React__default.createElement(MdPictureAsPdf, { style: { fontSize: '65px', color: '#ff0000' } }),
|
|
13
13
|
React__default.createElement(
|
|
14
14
|
'span',
|
|
@@ -5,7 +5,7 @@ import Row from 'react-bootstrap/Row';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import { i as imageUrlBuilder } from './index-
|
|
8
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
10
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
@@ -369,39 +369,39 @@ module.exports = { "default": set, __esModule: true };
|
|
|
369
369
|
|
|
370
370
|
var _Set = unwrapExports(set$1);
|
|
371
371
|
|
|
372
|
-
/* usage & query
|
|
373
|
-
const Publication = (props) => {
|
|
374
|
-
const { cache, pub, year } = props
|
|
375
|
-
|
|
376
|
-
const targeting = {
|
|
377
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
378
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
return (
|
|
382
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
-
</Shell>
|
|
385
|
-
)
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
Publication.getInitialProps = async (ctx) => {
|
|
389
|
-
const { query } = ctx
|
|
390
|
-
const {
|
|
391
|
-
query: { year },
|
|
392
|
-
} = ctx
|
|
393
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
394
|
-
const builder = imageUrlBuilder(client)
|
|
395
|
-
const urlFor = (source) => {
|
|
396
|
-
return builder.image(source)
|
|
397
|
-
}
|
|
398
|
-
pub.issues.map((issue) => {
|
|
399
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
400
|
-
})
|
|
401
|
-
return { pub, year }
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export default Publication
|
|
372
|
+
/* usage & query
|
|
373
|
+
const Publication = (props) => {
|
|
374
|
+
const { cache, pub, year } = props
|
|
375
|
+
|
|
376
|
+
const targeting = {
|
|
377
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
378
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return (
|
|
382
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
+
</Shell>
|
|
385
|
+
)
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
Publication.getInitialProps = async (ctx) => {
|
|
389
|
+
const { query } = ctx
|
|
390
|
+
const {
|
|
391
|
+
query: { year },
|
|
392
|
+
} = ctx
|
|
393
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
394
|
+
const builder = imageUrlBuilder(client)
|
|
395
|
+
const urlFor = (source) => {
|
|
396
|
+
return builder.image(source)
|
|
397
|
+
}
|
|
398
|
+
pub.issues.map((issue) => {
|
|
399
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
400
|
+
})
|
|
401
|
+
return { pub, year }
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export default Publication
|
|
405
405
|
*/
|
|
406
406
|
|
|
407
407
|
var PublicationLanding = function PublicationLanding(props) {
|
|
@@ -525,7 +525,7 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
525
525
|
),
|
|
526
526
|
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
|
|
527
527
|
'a',
|
|
528
|
-
{ href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px', marginLeft: '1rem' } },
|
|
528
|
+
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px', marginLeft: '1rem' } },
|
|
529
529
|
'Download Issue'
|
|
530
530
|
)
|
|
531
531
|
)
|
|
@@ -8,19 +8,19 @@ import './_object-pie-33c40e79.js';
|
|
|
8
8
|
import { _ as _extends } from './extends-229166d5.js';
|
|
9
9
|
import './web.dom.iterable-5c830d3d.js';
|
|
10
10
|
import React__default, { useEffect, useState, useRef } from 'react';
|
|
11
|
-
import { l as lib_3 } from './index-
|
|
11
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import 'react-bootstrap/Card';
|
|
14
|
-
import { m as moment } from './moment-
|
|
14
|
+
import { m as moment } from './moment-12415288.js';
|
|
15
15
|
import { useRouter } from 'next/router';
|
|
16
16
|
import './isSymbol-47f5ff3b.js';
|
|
17
17
|
import './debounce-a0d9abca.js';
|
|
18
|
-
import { I as InfiniteScroll } from './index.es-
|
|
18
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
21
|
-
import { i as imageUrlBuilder } from './index-
|
|
21
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
22
22
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
23
|
-
import { m as
|
|
23
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
24
24
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
25
25
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
26
26
|
import './stringify-feadff37.js';
|
|
@@ -28,9 +28,9 @@ import './asyncToGenerator-d25aac66.js';
|
|
|
28
28
|
import './_set-species-75f77d40.js';
|
|
29
29
|
import './beam-c40d77ae.js';
|
|
30
30
|
import './AdSlot.js';
|
|
31
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
31
|
+
import { A as ADInfeed } from './ADInfeed-0c1bcd33.js';
|
|
32
32
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
33
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
33
|
+
import { A as ADlgInfeed } from './ADlgInfeed-a2518bca.js';
|
|
34
34
|
import { A as AuthorComponent } from './AuthorComponent-4ddf3533.js';
|
|
35
35
|
import { Container, Media } from 'react-bootstrap';
|
|
36
36
|
|
|
@@ -272,7 +272,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
272
272
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
273
273
|
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
274
274
|
'a',
|
|
275
|
-
{ href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
275
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
276
276
|
React__default.createElement(
|
|
277
277
|
LazyLoad,
|
|
278
278
|
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
@@ -293,7 +293,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
293
293
|
null,
|
|
294
294
|
React__default.createElement(
|
|
295
295
|
'a',
|
|
296
|
-
{ href: article.url.current, target: '_blank' },
|
|
296
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
297
297
|
article.title && React__default.createElement(
|
|
298
298
|
'h4',
|
|
299
299
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
@@ -504,7 +504,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
504
504
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
505
505
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
506
506
|
}
|
|
507
|
-
if (
|
|
507
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
508
508
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
509
509
|
}
|
|
510
510
|
|
|
@@ -666,7 +666,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
666
666
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
667
667
|
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
668
668
|
'a',
|
|
669
|
-
{ href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
669
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
670
670
|
React__default.createElement(
|
|
671
671
|
LazyLoad,
|
|
672
672
|
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
@@ -687,7 +687,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
687
687
|
null,
|
|
688
688
|
React__default.createElement(
|
|
689
689
|
'a',
|
|
690
|
-
{ href: article.url.current, target: '_blank' },
|
|
690
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
691
691
|
article.title && React__default.createElement(
|
|
692
692
|
'h4',
|
|
693
693
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
@@ -898,7 +898,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
898
898
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
899
899
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
901
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
902
902
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
903
903
|
}
|
|
904
904
|
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import './iconBase-602d52fe.js';
|
|
6
6
|
import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
|
|
7
7
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import 'react-bootstrap/Media';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
Sample query
|
|
9
|
-
let references = ''
|
|
10
|
-
if(article.taxonomyMapping.length > 0){
|
|
11
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
12
|
-
references = references + `references('${ref._ref}') `
|
|
13
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
14
|
-
references = references + ` && `
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
20
|
-
...,
|
|
21
|
-
title,
|
|
22
|
-
summary,
|
|
23
|
-
thumbnail,
|
|
24
|
-
url,
|
|
25
|
-
published,
|
|
26
|
-
authorMapping[]->,
|
|
27
|
-
contentCategory->
|
|
28
|
-
}`
|
|
29
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
30
|
-
|
|
31
|
-
Sample usage
|
|
32
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
/*
|
|
8
|
+
Sample query
|
|
9
|
+
let references = ''
|
|
10
|
+
if(article.taxonomyMapping.length > 0){
|
|
11
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
12
|
+
references = references + `references('${ref._ref}') `
|
|
13
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
14
|
+
references = references + ` && `
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
20
|
+
...,
|
|
21
|
+
title,
|
|
22
|
+
summary,
|
|
23
|
+
thumbnail,
|
|
24
|
+
url,
|
|
25
|
+
published,
|
|
26
|
+
authorMapping[]->,
|
|
27
|
+
contentCategory->
|
|
28
|
+
}`
|
|
29
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
30
|
+
|
|
31
|
+
Sample usage
|
|
32
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
33
|
+
|
|
34
|
+
|
|
35
35
|
*/
|
|
36
36
|
var RelatedContent = function RelatedContent(props) {
|
|
37
37
|
var client = props.client,
|
|
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -3,6 +3,7 @@ import './_to-object-b01e8612.js';
|
|
|
3
3
|
import './core.get-iterator-method-66cf57ee.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
|
+
import './define-property-99e9c0ad.js';
|
|
6
7
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
8
|
import React__default, { useRef, useEffect } from 'react';
|
|
8
9
|
import 'prop-types';
|
|
@@ -14,6 +15,7 @@ import { S as Segment } from './beam-c40d77ae.js';
|
|
|
14
15
|
import './_arrayMap-818441dd.js';
|
|
15
16
|
import { g as get_1 } from './get-58d2f7cc.js';
|
|
16
17
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
18
|
+
import { _ as _defineProperty } from './defineProperty-fa14766d.js';
|
|
17
19
|
|
|
18
20
|
var year = new Date().getFullYear();
|
|
19
21
|
|
|
@@ -21,7 +23,7 @@ var renderLink = function renderLink(row) {
|
|
|
21
23
|
if (row.blank) {
|
|
22
24
|
return React__default.createElement(
|
|
23
25
|
'a',
|
|
24
|
-
{ href: row.url, needsegmentsupport: row.needSegmentSupport ? 'true' : '', target: '_blank', rel
|
|
26
|
+
_defineProperty({ rel: 'noopener', href: row.url, needsegmentsupport: row.needSegmentSupport ? 'true' : '', target: '_blank' }, 'rel', 'noopener noreferrer'),
|
|
25
27
|
row.title
|
|
26
28
|
);
|
|
27
29
|
}
|
|
@@ -33,8 +35,8 @@ var renderLink = function renderLink(row) {
|
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
var SideFooter = function SideFooter(props) {
|
|
36
|
-
/*
|
|
37
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
38
|
+
/*
|
|
39
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
38
40
|
*/
|
|
39
41
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
40
42
|
socialLinks = _get.socialLinks,
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -9,9 +9,9 @@ import Row from 'react-bootstrap/Row';
|
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
10
10
|
import Card from 'react-bootstrap/Card';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
|
-
import { B as BlockContent } from './BlockContent-
|
|
14
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
15
15
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
16
16
|
|
|
17
17
|
var TaxonomyCard = function TaxonomyCard(props) {
|
|
@@ -3,9 +3,10 @@ import './_to-object-b01e8612.js';
|
|
|
3
3
|
import './core.get-iterator-method-66cf57ee.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
|
+
import './define-property-99e9c0ad.js';
|
|
6
7
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
8
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
9
|
+
import './index-93ec3c59.js';
|
|
9
10
|
import 'prop-types';
|
|
10
11
|
import Container from 'react-bootstrap/Container';
|
|
11
12
|
import 'react-bootstrap/Row';
|
|
@@ -13,7 +14,7 @@ import 'react-bootstrap/Col';
|
|
|
13
14
|
import { useRouter } from 'next/router';
|
|
14
15
|
import './isSymbol-47f5ff3b.js';
|
|
15
16
|
import './debounce-a0d9abca.js';
|
|
16
|
-
import './main-
|
|
17
|
+
import './main-7255814e.js';
|
|
17
18
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
18
19
|
import './stringify-feadff37.js';
|
|
19
20
|
import './asyncToGenerator-d25aac66.js';
|
|
@@ -28,6 +29,7 @@ import './iconBase-602d52fe.js';
|
|
|
28
29
|
import './index.esm-4b1d94b7.js';
|
|
29
30
|
import 'react-bootstrap/Button';
|
|
30
31
|
import { Column1 } from './Column1.js';
|
|
32
|
+
import './defineProperty-fa14766d.js';
|
|
31
33
|
import './SideFooter.js';
|
|
32
34
|
import './ConferenceBanner-8792ebd2.js';
|
|
33
35
|
import { Column2 } from './Column2.js';
|
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import 'react-dom';
|
|
5
|
-
import { i as imageUrlBuilder } from './index-
|
|
5
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
6
6
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
7
7
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
8
|
import Media from 'react-bootstrap/Media';
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_to-object-b01e8612.js';
|
|
|
3
3
|
import './core.get-iterator-method-66cf57ee.js';
|
|
4
4
|
import './web.dom.iterable-5c830d3d.js';
|
|
5
5
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
6
|
-
import { m as
|
|
6
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
8
8
|
import './iconBase-602d52fe.js';
|
|
9
9
|
import { d as IoIosOpen } from './index.esm-4b1d94b7.js';
|
|
@@ -64,7 +64,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
64
64
|
} catch (err) {}
|
|
65
65
|
}, []);
|
|
66
66
|
//return nothing if mobile
|
|
67
|
-
if (
|
|
67
|
+
if (main_39) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
70
|
return React__default.createElement(
|
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
|
|
6
6
|
var VerticalHero = function VerticalHero(props) {
|
|
7
7
|
var client = props.client;
|
|
@@ -5,7 +5,7 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
6
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import { m as moment } from './moment-
|
|
8
|
+
import { m as moment } from './moment-12415288.js';
|
|
9
9
|
import { withRouter } from 'next/router';
|
|
10
10
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
11
11
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25aac66.js';
|
|
@@ -5,22 +5,23 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_object-pie-33c40e79.js';
|
|
6
6
|
import { _ as _extends } from './extends-229166d5.js';
|
|
7
7
|
import './_object-sap-4793c75a.js';
|
|
8
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
8
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a15d91fe.js';
|
|
9
|
+
import './define-property-99e9c0ad.js';
|
|
9
10
|
import './web.dom.iterable-5c830d3d.js';
|
|
10
11
|
import './typeof-f11fd438.js';
|
|
11
12
|
import './_is-array-ced12663.js';
|
|
12
13
|
import React__default from 'react';
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
14
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
14
15
|
import 'prop-types';
|
|
15
16
|
import Container from 'react-bootstrap/Container';
|
|
16
|
-
import './moment-
|
|
17
|
+
import './moment-12415288.js';
|
|
17
18
|
import { withRouter } from 'next/router';
|
|
18
19
|
import './isSymbol-47f5ff3b.js';
|
|
19
20
|
import { d as debounce_1 } from './debounce-a0d9abca.js';
|
|
20
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
21
22
|
import 'react-dom';
|
|
22
23
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
23
|
-
import './index-
|
|
24
|
+
import './index-51a80699.js';
|
|
24
25
|
import './index-5f9f807a.js';
|
|
25
26
|
import './slicedToArray-a58d7edf.js';
|
|
26
27
|
import './smoothscroll-4b699764.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-b01e8612.js';
|
|
3
3
|
import './core.get-iterator-method-66cf57ee.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
@@ -7,24 +7,25 @@ import { _ as _toConsumableArray } from './toConsumableArray-2efd7c98.js';
|
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
8
|
import { _ as _extends, a as _Object$assign } from './extends-229166d5.js';
|
|
9
9
|
import './_object-sap-4793c75a.js';
|
|
10
|
-
import
|
|
10
|
+
import './inherits-a15d91fe.js';
|
|
11
|
+
import './define-property-99e9c0ad.js';
|
|
11
12
|
import './web.dom.iterable-5c830d3d.js';
|
|
12
13
|
import { _ as _typeof } from './typeof-f11fd438.js';
|
|
13
14
|
import './_is-array-ced12663.js';
|
|
14
15
|
import React__default, { useState, useEffect } from 'react';
|
|
15
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
16
17
|
import 'prop-types';
|
|
17
18
|
import 'react-bootstrap/Row';
|
|
18
19
|
import 'react-bootstrap/Col';
|
|
19
|
-
import { m as moment } from './moment-
|
|
20
|
+
import { m as moment } from './moment-12415288.js';
|
|
20
21
|
import { useRouter } from 'next/router';
|
|
21
22
|
import './isSymbol-47f5ff3b.js';
|
|
22
23
|
import './debounce-a0d9abca.js';
|
|
23
|
-
import { I as InfiniteScroll } from './index.es-
|
|
24
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
24
25
|
import 'react-dom';
|
|
25
|
-
import './index-
|
|
26
|
+
import './index-51a80699.js';
|
|
26
27
|
import './index-5f9f807a.js';
|
|
27
|
-
import { m as
|
|
28
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
28
29
|
import './entities-7cc3bf45.js';
|
|
29
30
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
30
31
|
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
@@ -32,15 +33,16 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25
|
|
|
32
33
|
import './_set-species-75f77d40.js';
|
|
33
34
|
import './beam-c40d77ae.js';
|
|
34
35
|
import DFPAdSlot from './AdSlot.js';
|
|
35
|
-
import { B as BlockContent } from './BlockContent-
|
|
36
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
36
37
|
import './smoothscroll-4b699764.js';
|
|
37
38
|
import './GroupDeck.js';
|
|
38
39
|
import 'react-bootstrap';
|
|
39
40
|
import Button from 'react-bootstrap/Button';
|
|
40
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
41
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-f191d6d0.js';
|
|
41
42
|
import './util-7700fc59.js';
|
|
42
43
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
43
44
|
import 'react-bootstrap/Pagination';
|
|
45
|
+
import { _ as _defineProperty } from './defineProperty-fa14766d.js';
|
|
44
46
|
import Head from 'next/head';
|
|
45
47
|
import 'react-share';
|
|
46
48
|
import SocialShare from './SocialShare.js';
|
|
@@ -50,10 +52,10 @@ import { _ as _Object$keys } from './keys-941eccc4.js';
|
|
|
50
52
|
import 'react-bootstrap/Dropdown';
|
|
51
53
|
import getKeywords from './getKeywords.js';
|
|
52
54
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
53
|
-
import '
|
|
54
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
55
|
+
import 'nookies';
|
|
55
56
|
import getQuery from './getQuery.js';
|
|
56
|
-
import
|
|
57
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
58
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-962c9cf6.js';
|
|
57
59
|
import urlFor from './urlFor.js';
|
|
58
60
|
|
|
59
61
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -130,9 +132,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
130
132
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
131
133
|
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
132
134
|
!thumbnailUrl && React__default.createElement('p', {
|
|
133
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
135
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
134
136
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
135
|
-
|
|
137
|
+
main_39 && !thumbnailUrl && React__default.createElement(
|
|
136
138
|
'style',
|
|
137
139
|
{ jsx: 'true' },
|
|
138
140
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -204,7 +206,7 @@ function styleInject(css, ref) {
|
|
|
204
206
|
}
|
|
205
207
|
}
|
|
206
208
|
|
|
207
|
-
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_mediaCard__3wQbn {\n width: 100%;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\n width: 100%;\n height: auto;\n\n max-height: 175px;\n object-fit: contain;\n margin-bottom: 1rem;\n }\n}\n";
|
|
209
|
+
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_mediaCard__3wQbn {\r\n width: 100%;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n width: 100%;\r\n height: auto;\r\n\r\n max-height: 175px;\r\n object-fit: contain;\r\n margin-bottom: 1rem;\r\n }\r\n}\r\n";
|
|
208
210
|
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" };
|
|
209
211
|
styleInject(css);
|
|
210
212
|
|
|
@@ -876,7 +878,7 @@ var Article = function Article(props) {
|
|
|
876
878
|
React__default.createElement(
|
|
877
879
|
'div',
|
|
878
880
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
879
|
-
|
|
881
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
880
882
|
if (index === 0) {
|
|
881
883
|
return React__default.createElement(
|
|
882
884
|
'div',
|
|
@@ -922,7 +924,7 @@ var Article = function Article(props) {
|
|
|
922
924
|
),
|
|
923
925
|
issue && issue.url && React__default.createElement(
|
|
924
926
|
'a',
|
|
925
|
-
{ href: issue.url, target: '_blank', title: 'Download issue' },
|
|
927
|
+
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
926
928
|
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
927
929
|
'Download Issue : ',
|
|
928
930
|
issue.name
|
|
@@ -943,7 +945,7 @@ var Article = function Article(props) {
|
|
|
943
945
|
renderIsiContent(props.article)
|
|
944
946
|
)
|
|
945
947
|
),
|
|
946
|
-
|
|
948
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
947
949
|
if (index > 0) {
|
|
948
950
|
return React__default.createElement(
|
|
949
951
|
'div',
|
|
@@ -981,34 +983,6 @@ var Article = function Article(props) {
|
|
|
981
983
|
}
|
|
982
984
|
};
|
|
983
985
|
|
|
984
|
-
var defineProperty = createCommonjsModule(function (module, exports) {
|
|
985
|
-
|
|
986
|
-
exports.__esModule = true;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
var _defineProperty2 = _interopRequireDefault(defineProperty$1);
|
|
991
|
-
|
|
992
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
993
|
-
|
|
994
|
-
exports.default = function (obj, key, value) {
|
|
995
|
-
if (key in obj) {
|
|
996
|
-
(0, _defineProperty2.default)(obj, key, {
|
|
997
|
-
value: value,
|
|
998
|
-
enumerable: true,
|
|
999
|
-
configurable: true,
|
|
1000
|
-
writable: true
|
|
1001
|
-
});
|
|
1002
|
-
} else {
|
|
1003
|
-
obj[key] = value;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
return obj;
|
|
1007
|
-
};
|
|
1008
|
-
});
|
|
1009
|
-
|
|
1010
|
-
var _defineProperty = unwrapExports(defineProperty);
|
|
1011
|
-
|
|
1012
986
|
var _this = undefined;
|
|
1013
987
|
|
|
1014
988
|
var ArticleQueue = function ArticleQueue(props) {
|
|
@@ -1043,7 +1017,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1043
1017
|
});
|
|
1044
1018
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1045
1019
|
|
|
1046
|
-
if (!
|
|
1020
|
+
if (!main_39) {
|
|
1047
1021
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1048
1022
|
if (window.googletag && googletag.pubadsReady) {
|
|
1049
1023
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1061,7 +1035,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1061
1035
|
});
|
|
1062
1036
|
}
|
|
1063
1037
|
//Refresh leaderboard ad on mobile
|
|
1064
|
-
if (
|
|
1038
|
+
if (main_39) {
|
|
1065
1039
|
var leaderboardSlotId = '';
|
|
1066
1040
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1067
1041
|
if (window.googletag && googletag.pubadsReady) {
|