@mjhls/mjh-framework 1.0.859-segment-targeting-v2 → 1.0.859
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/AdSlot.js +2 -3
- package/dist/cjs/AdSlotsProvider.js +1 -2
- package/dist/cjs/AlgoliaSearch.js +17 -14090
- package/dist/cjs/AlphabeticList.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesListing.js +3 -4
- package/dist/cjs/Auth.js +1 -1
- package/dist/cjs/AuthWrapper.js +6 -622
- package/dist/cjs/CMEDeck.js +1 -2
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -13
- package/dist/cjs/DeckQueue.js +3 -4
- package/dist/cjs/{Dfp-391fd124.js → Dfp-0bf098b5.js} +1 -2
- package/dist/cjs/EventsDeck.js +19 -19
- package/dist/cjs/ExternalResources.js +6 -6
- package/dist/cjs/GridContent.js +5 -6
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HorizontalArticleListing.js +5 -5
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +13 -14
- package/dist/cjs/MediaSeriesLanding.js +407 -462
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/PartnerDetailListing.js +1208 -11
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +27 -27
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Segment.js +21 -9
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-60fa1342.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyCard.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +5 -5
- package/dist/cjs/TemplateNormal.js +2 -3
- package/dist/cjs/VideoProgramLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesListing.js +3 -4
- package/dist/cjs/View.js +12 -18
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{extends-0a918631.js → extends-60837c34.js} +0 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/getSerializers.js +5 -5
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-3e45e4d4.js} +10 -10
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/{index-2cf30c83.js → index-44481153.js} +485 -39
- package/dist/cjs/{index-6367b7bf.js → index-99edf08a.js} +16 -15
- package/dist/cjs/{index-84332690.js → index-cf3e6aca.js} +8 -258
- package/dist/cjs/index.js +11 -12
- package/dist/cjs/{inherits-0c7830c5.js → inherits-87492b40.js} +0 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -3
- package/dist/esm/AD300x250x600.js +2 -3
- package/dist/esm/AD728x90.js +2 -3
- package/dist/esm/ADFloatingFooter.js +2 -3
- package/dist/esm/ADGutter.js +2 -3
- package/dist/esm/ADSkyscraper.js +2 -3
- package/dist/esm/ADSponsoredResources.js +2 -3
- package/dist/esm/ADWebcast.js +2 -3
- package/dist/esm/ADWelcome.js +2 -3
- package/dist/esm/AdSlot.js +2 -3
- package/dist/esm/AdSlotsProvider.js +1 -2
- package/dist/esm/AlgoliaSearch.js +16 -14089
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +5 -5
- package/dist/esm/ArticleSeriesLandingPage.js +5 -6
- package/dist/esm/ArticleSeriesListing.js +3 -4
- package/dist/esm/Auth.js +1 -1
- package/dist/esm/AuthWrapper.js +5 -622
- package/dist/esm/CMEDeck.js +1 -2
- package/dist/esm/Column3.js +2 -3
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/DeckContent.js +12 -13
- package/dist/esm/DeckQueue.js +3 -4
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-85c9513e.js} +1 -2
- package/dist/esm/EventsDeck.js +19 -19
- package/dist/esm/ExternalResources.js +6 -6
- package/dist/esm/GridContent.js +5 -6
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HorizontalArticleListing.js +5 -5
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -3
- package/dist/esm/MasterDeck.js +13 -14
- package/dist/esm/MediaSeriesLanding.js +132 -187
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/PartnerDetailListing.js +1207 -11
- package/dist/esm/PubSection.js +4 -5
- package/dist/esm/PublicationLanding.js +27 -27
- package/dist/esm/QueueDeckExpanded.js +4 -5
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Segment.js +21 -9
- package/dist/esm/SeriesListingDeck.js +3 -4
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-05ecb544.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +5 -5
- package/dist/esm/TemplateNormal.js +2 -3
- package/dist/esm/VideoProgramLandingPage.js +5 -5
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +5 -6
- package/dist/esm/VideoSeriesListing.js +3 -4
- package/dist/esm/View.js +12 -18
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{extends-6f2fcc99.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +5 -5
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-9cb7e014.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-f7fb1e25.js → index-1819118a.js} +484 -38
- package/dist/esm/{index-95d38271.js → index-9bed8450.js} +6 -257
- package/dist/esm/{index-c00b0bbb.js → index-fa2ffe86.js} +16 -15
- package/dist/esm/index.js +11 -12
- package/dist/esm/{inherits-75d45541.js → inherits-0d8cda6e.js} +1 -1
- package/package.json +110 -110
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-e2e62963.js +0 -89
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-aaa2dae0.js +0 -85
- /package/dist/cjs/{ADInfeed-87d1627b.js → ADInfeed-ff26342c.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0070c9c4.js → ADlgInfeed-ad4953d4.js} +0 -0
- /package/dist/esm/{ADInfeed-f7a68557.js → ADInfeed-422ad6e6.js} +0 -0
- /package/dist/esm/{ADlgInfeed-b0a8a43b.js → ADlgInfeed-f7468db8.js} +0 -0
package/dist/esm/PubSection.js
CHANGED
|
@@ -6,11 +6,10 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
9
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
10
|
import './web.dom.iterable-4439f05a.js';
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import './
|
|
13
|
-
import './index-f7fb1e25.js';
|
|
12
|
+
import './index-1819118a.js';
|
|
14
13
|
import 'prop-types';
|
|
15
14
|
import 'react-bootstrap/Card';
|
|
16
15
|
import './moment-b6f49411.js';
|
|
@@ -32,9 +31,9 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1
|
|
|
32
31
|
import './Segment.js';
|
|
33
32
|
import './Beam.js';
|
|
34
33
|
import './AdSlot.js';
|
|
35
|
-
import './ADInfeed-
|
|
34
|
+
import './ADInfeed-422ad6e6.js';
|
|
36
35
|
import './lodash-ec8c6b48.js';
|
|
37
|
-
import './ADlgInfeed-
|
|
36
|
+
import './ADlgInfeed-f7468db8.js';
|
|
38
37
|
import './getContentCategory-15dcc413.js';
|
|
39
38
|
import './AuthorComponent-8ffd4679.js';
|
|
40
39
|
import 'react-bootstrap';
|
|
@@ -6,7 +6,7 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
7
|
import { _ as _classof } from './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
9
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
10
|
import { _ as _iterStep } from './web.dom.iterable-4439f05a.js';
|
|
11
11
|
import { _ as _meta, a as _isArray } from './_is-array-58e95429.js';
|
|
12
12
|
import React, { useState, useEffect } from 'react';
|
|
@@ -373,32 +373,32 @@ module.exports = { "default": set, __esModule: true };
|
|
|
373
373
|
|
|
374
374
|
var _Set = unwrapExports(set$1);
|
|
375
375
|
|
|
376
|
-
/* usage & query
|
|
377
|
-
const Publication = (props) => {
|
|
378
|
-
const { cache, pub, year } = props
|
|
379
|
-
const targeting = {
|
|
380
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
-
}
|
|
383
|
-
return (
|
|
384
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
-
</Shell>
|
|
387
|
-
)
|
|
388
|
-
}
|
|
389
|
-
Publication.getInitialProps = async (ctx) => {
|
|
390
|
-
const { query } = ctx
|
|
391
|
-
const {
|
|
392
|
-
query: { year },
|
|
393
|
-
} = ctx
|
|
394
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
-
**import urlFor from framework**
|
|
396
|
-
pub.issues.map((issue) => {
|
|
397
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
398
|
-
})
|
|
399
|
-
return { pub, year }
|
|
400
|
-
}
|
|
401
|
-
export default Publication
|
|
376
|
+
/* usage & query
|
|
377
|
+
const Publication = (props) => {
|
|
378
|
+
const { cache, pub, year } = props
|
|
379
|
+
const targeting = {
|
|
380
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
+
}
|
|
383
|
+
return (
|
|
384
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
+
</Shell>
|
|
387
|
+
)
|
|
388
|
+
}
|
|
389
|
+
Publication.getInitialProps = async (ctx) => {
|
|
390
|
+
const { query } = ctx
|
|
391
|
+
const {
|
|
392
|
+
query: { year },
|
|
393
|
+
} = ctx
|
|
394
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
+
**import urlFor from framework**
|
|
396
|
+
pub.issues.map((issue) => {
|
|
397
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
398
|
+
})
|
|
399
|
+
return { pub, year }
|
|
400
|
+
}
|
|
401
|
+
export default Publication
|
|
402
402
|
*/
|
|
403
403
|
|
|
404
404
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -6,11 +6,10 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
9
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
10
|
import './web.dom.iterable-4439f05a.js';
|
|
11
11
|
import React, { useEffect, useState, useRef } from 'react';
|
|
12
|
-
import './
|
|
13
|
-
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
12
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
14
13
|
import 'prop-types';
|
|
15
14
|
import 'react-bootstrap/Card';
|
|
16
15
|
import { m as moment } from './moment-b6f49411.js';
|
|
@@ -32,9 +31,9 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
32
31
|
import './Segment.js';
|
|
33
32
|
import './Beam.js';
|
|
34
33
|
import './AdSlot.js';
|
|
35
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
34
|
+
import { A as ADInfeed } from './ADInfeed-422ad6e6.js';
|
|
36
35
|
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
37
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
36
|
+
import { A as ADlgInfeed } from './ADlgInfeed-f7468db8.js';
|
|
38
37
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
39
38
|
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
40
39
|
import { Container, Media } from 'react-bootstrap';
|
|
@@ -8,34 +8,34 @@ import urlFor from './urlFor.js';
|
|
|
8
8
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
9
9
|
import 'react-bootstrap/Media';
|
|
10
10
|
|
|
11
|
-
/*
|
|
12
|
-
Sample query
|
|
13
|
-
let references = ''
|
|
14
|
-
if(article.taxonomyMapping.length > 0){
|
|
15
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
16
|
-
references = references + `references('${ref._ref}') `
|
|
17
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
18
|
-
references = references + ` && `
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
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] {
|
|
24
|
-
...,
|
|
25
|
-
title,
|
|
26
|
-
summary,
|
|
27
|
-
thumbnail,
|
|
28
|
-
url,
|
|
29
|
-
published,
|
|
30
|
-
authorMapping[]->,
|
|
31
|
-
contentCategory->
|
|
32
|
-
}`
|
|
33
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
34
|
-
|
|
35
|
-
Sample usage
|
|
36
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
37
|
-
|
|
38
|
-
|
|
11
|
+
/*
|
|
12
|
+
Sample query
|
|
13
|
+
let references = ''
|
|
14
|
+
if(article.taxonomyMapping.length > 0){
|
|
15
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
16
|
+
references = references + `references('${ref._ref}') `
|
|
17
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
18
|
+
references = references + ` && `
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
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] {
|
|
24
|
+
...,
|
|
25
|
+
title,
|
|
26
|
+
summary,
|
|
27
|
+
thumbnail,
|
|
28
|
+
url,
|
|
29
|
+
published,
|
|
30
|
+
authorMapping[]->,
|
|
31
|
+
contentCategory->
|
|
32
|
+
}`
|
|
33
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
34
|
+
|
|
35
|
+
Sample usage
|
|
36
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
37
|
+
|
|
38
|
+
|
|
39
39
|
*/
|
|
40
40
|
var RelatedContent = function RelatedContent(props) {
|
|
41
41
|
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/Segment.js
CHANGED
|
@@ -110,7 +110,6 @@ var Segment = {
|
|
|
110
110
|
pageview: function pageview(domain) {
|
|
111
111
|
var _this2 = this;
|
|
112
112
|
|
|
113
|
-
var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
114
113
|
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
115
114
|
var result, beam_id, session_id;
|
|
116
115
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -134,17 +133,18 @@ var Segment = {
|
|
|
134
133
|
beam_id = result.beam_id ? result.beam_id : '';
|
|
135
134
|
session_id = result.session_id ? result.session_id : '';
|
|
136
135
|
|
|
136
|
+
analytics.page({
|
|
137
|
+
keywords: _this2.getMeta('keywords')
|
|
138
|
+
});
|
|
137
139
|
analytics.track('pageviews', {
|
|
138
140
|
beamid: beam_id,
|
|
139
141
|
sessionid: session_id,
|
|
140
|
-
category:
|
|
141
|
-
content_placement: properties.content_placement ? properties.content_placement : '',
|
|
142
|
-
document_group: properties.document_group ? properties.document_group : '',
|
|
142
|
+
category: '',
|
|
143
143
|
domain: domain,
|
|
144
144
|
keywords: _this2.getMeta('keywords')
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
-
case
|
|
147
|
+
case 10:
|
|
148
148
|
case 'end':
|
|
149
149
|
return _context2.stop();
|
|
150
150
|
}
|
|
@@ -203,9 +203,12 @@ var Segment = {
|
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
console.log('Segment ' + videoType, action, data);
|
|
206
|
+
analytics.page({
|
|
207
|
+
keywords: _this3.getMeta('keywords')
|
|
208
|
+
});
|
|
206
209
|
analytics.track(action, data);
|
|
207
210
|
|
|
208
|
-
case
|
|
211
|
+
case 13:
|
|
209
212
|
case 'end':
|
|
210
213
|
return _context3.stop();
|
|
211
214
|
}
|
|
@@ -261,9 +264,12 @@ var Segment = {
|
|
|
261
264
|
|
|
262
265
|
|
|
263
266
|
console.log('Segment ' + adType, action, data);
|
|
267
|
+
analytics.page({
|
|
268
|
+
keywords: _this4.getMeta('keywords')
|
|
269
|
+
});
|
|
264
270
|
analytics.track(action, data);
|
|
265
271
|
|
|
266
|
-
case
|
|
272
|
+
case 13:
|
|
267
273
|
case 'end':
|
|
268
274
|
return _context4.stop();
|
|
269
275
|
}
|
|
@@ -297,6 +303,9 @@ var Segment = {
|
|
|
297
303
|
beam_id = result.beam_id ? result.beam_id : '';
|
|
298
304
|
session_id = result.session_id ? result.session_id : '';
|
|
299
305
|
|
|
306
|
+
analytics.page({
|
|
307
|
+
keywords: _this5.getMeta('keywords')
|
|
308
|
+
});
|
|
300
309
|
analytics.track('Ad Clicked', {
|
|
301
310
|
beamid: beam_id,
|
|
302
311
|
sessionid: session_id,
|
|
@@ -312,7 +321,7 @@ var Segment = {
|
|
|
312
321
|
keywords: _this5.getMeta('keywords')
|
|
313
322
|
});
|
|
314
323
|
|
|
315
|
-
case
|
|
324
|
+
case 10:
|
|
316
325
|
case 'end':
|
|
317
326
|
return _context5.stop();
|
|
318
327
|
}
|
|
@@ -346,6 +355,9 @@ var Segment = {
|
|
|
346
355
|
beam_id = result.beam_id ? result.beam_id : '';
|
|
347
356
|
session_id = result.session_id ? result.session_id : '';
|
|
348
357
|
|
|
358
|
+
analytics.page({
|
|
359
|
+
keywords: _this6.getMeta('keywords')
|
|
360
|
+
});
|
|
349
361
|
analytics.track('Impression Viewed', {
|
|
350
362
|
beamid: beam_id,
|
|
351
363
|
sessionid: session_id,
|
|
@@ -361,7 +373,7 @@ var Segment = {
|
|
|
361
373
|
keywords: _this6.getMeta('keywords')
|
|
362
374
|
});
|
|
363
375
|
|
|
364
|
-
case
|
|
376
|
+
case 10:
|
|
365
377
|
case 'end':
|
|
366
378
|
return _context6.stop();
|
|
367
379
|
}
|
|
@@ -5,11 +5,10 @@ import './_iter-detect-5d49a330.js';
|
|
|
5
5
|
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
6
6
|
import './core.get-iterator-method-e1de7503.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import { _ as _extends } from './extends-
|
|
8
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
9
9
|
import './web.dom.iterable-4439f05a.js';
|
|
10
10
|
import React, { useState, useEffect, useRef } from 'react';
|
|
11
|
-
import './
|
|
12
|
-
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
11
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
13
12
|
import 'prop-types';
|
|
14
13
|
import { useRouter } from 'next/router';
|
|
15
14
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
@@ -22,7 +21,7 @@ import './main-747e7d25.js';
|
|
|
22
21
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
23
22
|
import './index-c7e2ac95.js';
|
|
24
23
|
import './smoothscroll-0cd4c7a6.js';
|
|
25
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
24
|
+
import { S as SeriesSlider } from './SeriesSlider-05ecb544.js';
|
|
26
25
|
|
|
27
26
|
var usePrevious = function usePrevious(value) {
|
|
28
27
|
var ref = useRef();
|
|
@@ -6,10 +6,10 @@ import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
|
6
6
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
7
7
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -34,8 +34,8 @@ var renderLink = function renderLink(row) {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
var SideFooter = function SideFooter(props) {
|
|
37
|
-
/*
|
|
38
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
37
|
+
/*
|
|
38
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
39
39
|
*/
|
|
40
40
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
41
41
|
socialLinks = _get.socialLinks,
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-a4107da3.js';
|
|
3
3
|
import './_object-pie-33c40e79.js';
|
|
4
|
-
import { _ as _extends } from './extends-
|
|
4
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
@@ -6,16 +6,15 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends, a as _Object$assign } from './extends-
|
|
9
|
+
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
14
|
import './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import './
|
|
18
|
-
import './index-f7fb1e25.js';
|
|
17
|
+
import './index-1819118a.js';
|
|
19
18
|
import 'prop-types';
|
|
20
19
|
import 'react-bootstrap/Row';
|
|
21
20
|
import 'react-bootstrap/Col';
|
|
@@ -44,7 +43,7 @@ import './GroupDeck.js';
|
|
|
44
43
|
import 'react-bootstrap';
|
|
45
44
|
import './iconBase-602d52fe.js';
|
|
46
45
|
import './index.esm-3fdda599.js';
|
|
47
|
-
import { g as getSerializers } from './index-
|
|
46
|
+
import { g as getSerializers } from './index-9bed8450.js';
|
|
48
47
|
import './util-7700fc59.js';
|
|
49
48
|
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
50
49
|
import Head from 'next/head';
|
|
@@ -56,6 +55,7 @@ import 'react-bootstrap/Figure';
|
|
|
56
55
|
import 'react-bootstrap/OverlayTrigger';
|
|
57
56
|
import 'react-bootstrap/Tooltip';
|
|
58
57
|
import 'react-bootstrap/Popover';
|
|
58
|
+
import 'react-script-tag';
|
|
59
59
|
|
|
60
60
|
var _this = undefined;
|
|
61
61
|
|
|
@@ -5,12 +5,11 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-5d49a330.js';
|
|
6
6
|
import './core.get-iterator-method-e1de7503.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import './extends-
|
|
8
|
+
import './extends-eb69e8ac.js';
|
|
9
9
|
import './define-property-8af5f002.js';
|
|
10
10
|
import './web.dom.iterable-4439f05a.js';
|
|
11
11
|
import React, { useState, useEffect } from 'react';
|
|
12
|
-
import './
|
|
13
|
-
import './index-f7fb1e25.js';
|
|
12
|
+
import './index-1819118a.js';
|
|
14
13
|
import 'prop-types';
|
|
15
14
|
import Container from 'react-bootstrap/Container';
|
|
16
15
|
import 'react-bootstrap/Row';
|
|
@@ -6,16 +6,15 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
9
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
14
|
import './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import './
|
|
18
|
-
import './index-f7fb1e25.js';
|
|
17
|
+
import './index-1819118a.js';
|
|
19
18
|
import 'prop-types';
|
|
20
19
|
import 'react-bootstrap/Container';
|
|
21
20
|
import 'react-bootstrap/Row';
|
|
@@ -49,7 +48,7 @@ import 'react-bootstrap';
|
|
|
49
48
|
import './iconBase-602d52fe.js';
|
|
50
49
|
import './index.esm-3fdda599.js';
|
|
51
50
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
52
|
-
import { g as getSerializers } from './index-
|
|
51
|
+
import { g as getSerializers } from './index-9bed8450.js';
|
|
53
52
|
import './util-7700fc59.js';
|
|
54
53
|
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
55
54
|
import 'next/head';
|
|
@@ -61,6 +60,7 @@ import 'react-bootstrap/Figure';
|
|
|
61
60
|
import 'react-bootstrap/OverlayTrigger';
|
|
62
61
|
import 'react-bootstrap/Tooltip';
|
|
63
62
|
import 'react-bootstrap/Popover';
|
|
63
|
+
import 'react-script-tag';
|
|
64
64
|
import Form from 'react-bootstrap/Form';
|
|
65
65
|
|
|
66
66
|
var _this = undefined;
|
|
@@ -15,7 +15,7 @@ import urlFor from './urlFor.js';
|
|
|
15
15
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
16
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
17
|
|
|
18
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\
|
|
18
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
|
|
19
19
|
var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
|
|
20
20
|
styleInject(css);
|
|
21
21
|
|
|
@@ -6,16 +6,15 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import './extends-
|
|
9
|
+
import './extends-eb69e8ac.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
14
|
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import './
|
|
18
|
-
import './index-f7fb1e25.js';
|
|
17
|
+
import './index-1819118a.js';
|
|
19
18
|
import 'prop-types';
|
|
20
19
|
import 'react-bootstrap/Container';
|
|
21
20
|
import 'react-bootstrap/Row';
|
|
@@ -39,9 +38,9 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1
|
|
|
39
38
|
import './Segment.js';
|
|
40
39
|
import './Beam.js';
|
|
41
40
|
import './AdSlot.js';
|
|
42
|
-
import './ADInfeed-
|
|
41
|
+
import './ADInfeed-422ad6e6.js';
|
|
43
42
|
import './lodash-ec8c6b48.js';
|
|
44
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADlgInfeed-f7468db8.js';
|
|
45
44
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
46
45
|
import MasterDeck from './MasterDeck.js';
|
|
47
46
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -4,16 +4,15 @@ import './es6.string.iterator-c990c18c.js';
|
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './core.get-iterator-method-e1de7503.js';
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends } from './extends-
|
|
7
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
8
8
|
import './_object-sap-964b6feb.js';
|
|
9
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
9
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-0d8cda6e.js';
|
|
10
10
|
import './define-property-8af5f002.js';
|
|
11
11
|
import './web.dom.iterable-4439f05a.js';
|
|
12
12
|
import './typeof-af9c50d8.js';
|
|
13
13
|
import './_is-array-58e95429.js';
|
|
14
14
|
import React from 'react';
|
|
15
|
-
import './
|
|
16
|
-
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
15
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
17
16
|
import 'prop-types';
|
|
18
17
|
import Container from 'react-bootstrap/Container';
|
|
19
18
|
import { m as moment } from './moment-b6f49411.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -6,16 +6,15 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends, a as _Object$assign } from './extends-
|
|
9
|
+
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
14
|
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
-
import './
|
|
18
|
-
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
17
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
19
18
|
import 'prop-types';
|
|
20
19
|
import 'react-bootstrap/Row';
|
|
21
20
|
import 'react-bootstrap/Col';
|
|
@@ -46,7 +45,7 @@ import './GroupDeck.js';
|
|
|
46
45
|
import 'react-bootstrap';
|
|
47
46
|
import './iconBase-602d52fe.js';
|
|
48
47
|
import './index.esm-3fdda599.js';
|
|
49
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
48
|
+
import { r as renderAuthor, g as getSerializers } from './index-9bed8450.js';
|
|
50
49
|
import './util-7700fc59.js';
|
|
51
50
|
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
52
51
|
import Head from 'next/head';
|
|
@@ -58,6 +57,7 @@ import 'react-bootstrap/Figure';
|
|
|
58
57
|
import 'react-bootstrap/OverlayTrigger';
|
|
59
58
|
import 'react-bootstrap/Tooltip';
|
|
60
59
|
import 'react-bootstrap/Popover';
|
|
60
|
+
import 'react-script-tag';
|
|
61
61
|
import Form from 'react-bootstrap/Form';
|
|
62
62
|
import FormControl from 'react-bootstrap/FormControl';
|
|
63
63
|
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
@@ -67,8 +67,8 @@ import getSeriesDetail from './getSeriesDetail.js';
|
|
|
67
67
|
import './index-db3bb315.js';
|
|
68
68
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
69
69
|
import getQuery from './getQuery.js';
|
|
70
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
71
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
70
|
+
import { S as SeriesSlider } from './SeriesSlider-05ecb544.js';
|
|
71
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-9cb7e014.js';
|
|
72
72
|
import getKeywords from './getKeywords.js';
|
|
73
73
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
74
74
|
import { DiscussionEmbed } from 'disqus-react';
|
|
@@ -338,7 +338,7 @@ var ISI = function ISI(props) {
|
|
|
338
338
|
);
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
341
|
+
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";
|
|
342
342
|
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" };
|
|
343
343
|
styleInject(css);
|
|
344
344
|
|
|
@@ -1104,10 +1104,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1104
1104
|
offset: { bottom: triggerOffset, top: containerHeight - 80 },
|
|
1105
1105
|
onChange: function onChange(isVisible) {
|
|
1106
1106
|
if (isVisible && queueData && queueData.length > 1) {
|
|
1107
|
-
|
|
1108
|
-
category: article && article.category ? article.category.name : ''
|
|
1109
|
-
});
|
|
1110
|
-
onChangeArticle(url, meta, pageviewProperties);
|
|
1107
|
+
onChangeArticle(url, meta);
|
|
1111
1108
|
setVisibleFlag(function () {
|
|
1112
1109
|
return true;
|
|
1113
1110
|
});
|
|
@@ -1622,7 +1619,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1622
1619
|
}
|
|
1623
1620
|
};
|
|
1624
1621
|
|
|
1625
|
-
var onChangeArticle = function onChangeArticle(path, meta
|
|
1622
|
+
var onChangeArticle = function onChangeArticle(path, meta) {
|
|
1626
1623
|
var newPath = '/view/' + path;
|
|
1627
1624
|
var activeArticle = queueData.find(function (item) {
|
|
1628
1625
|
return item.url.current === path;
|
|
@@ -1641,7 +1638,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1641
1638
|
if (props.setCustomDimensions) {
|
|
1642
1639
|
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1643
1640
|
}
|
|
1644
|
-
if (props.pageview) props.pageview(newPath
|
|
1641
|
+
if (props.pageview) props.pageview(newPath);
|
|
1645
1642
|
refreshAD(path);
|
|
1646
1643
|
};
|
|
1647
1644
|
|
|
@@ -1710,13 +1707,10 @@ var View = function View(props) {
|
|
|
1710
1707
|
useEffect(function () {
|
|
1711
1708
|
if (pageview && setCustomDimensions) {
|
|
1712
1709
|
var timer = void 0;
|
|
1713
|
-
var pageviewProperties = _extends({}, getTargeting(props), {
|
|
1714
|
-
category: article && article.category ? article.category.name : ''
|
|
1715
|
-
});
|
|
1716
1710
|
var waitAndExicute = function waitAndExicute() {
|
|
1717
1711
|
if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1718
1712
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1719
|
-
pageview(router.asPath
|
|
1713
|
+
pageview(router.asPath);
|
|
1720
1714
|
} else timer = setTimeout(waitAndExicute, 1000);
|
|
1721
1715
|
};
|
|
1722
1716
|
waitAndExicute();
|