@mjhls/mjh-framework 1.0.992-next-update → 1.0.992-nofollow-v2
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +5 -4
- package/dist/cjs/AD300x250x600.js +5 -4
- package/dist/cjs/AD728x90.js +6 -5
- package/dist/cjs/ADFloatingFooter.js +4 -3
- package/dist/cjs/ADGutter.js +4 -3
- package/dist/cjs/ADSkyscraper.js +4 -3
- package/dist/cjs/ADSponsoredResources.js +4 -3
- package/dist/cjs/ADWebcast.js +4 -3
- package/dist/cjs/ADWelcome.js +4 -3
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +4 -3
- package/dist/cjs/AdSlotsProvider.js +5 -4
- package/dist/cjs/AlgoliaSearch.js +49 -427
- package/dist/cjs/AlphabeticList.js +1 -1
- package/dist/cjs/ArticleCarousel.js +4 -3
- package/dist/cjs/ArticleProgramLandingPage.js +11 -9
- package/dist/cjs/ArticleSeriesLandingPage.js +7 -6
- package/dist/cjs/ArticleSeriesListing.js +8 -7
- package/dist/cjs/Auth.js +1 -1
- package/dist/cjs/CMEDeck.js +4 -3
- package/dist/cjs/Column2.js +4 -4
- package/dist/cjs/Column3.js +9 -8
- package/dist/cjs/ContentCardPaginated.js +13 -11
- package/dist/cjs/DeckContent.js +8 -7
- package/dist/cjs/DeckQueue.js +7 -6
- package/dist/cjs/DeckQueuePaginated.js +12 -10
- package/dist/cjs/{Dfp-e06695e9.js → Dfp-c313a700.js} +2 -1
- package/dist/cjs/EventsDeck.js +32 -5
- package/dist/cjs/ExternalResources.js +15 -11
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +2 -1
- package/dist/cjs/GridContent.js +12 -11
- package/dist/cjs/GridContentPaginated.js +17 -15
- package/dist/cjs/GridHero.js +2 -1
- package/dist/cjs/HamMagazine.js +20 -19
- package/dist/cjs/HorizontalArticleListing.js +11 -8
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -1
- package/dist/cjs/IssueDeck.js +3 -2
- package/dist/cjs/IssueLanding.js +12 -10
- package/dist/cjs/LeftNav.js +17 -6
- package/dist/cjs/MasterDeck.js +7 -6
- package/dist/cjs/MasterDeckPaginated.js +11 -10
- package/dist/cjs/MediaSeriesCard-c12acd53.js +9568 -0
- package/dist/cjs/MediaSeriesLanding.js +14 -13
- package/dist/cjs/MediaSeriesLandingPaginated.js +16 -15
- package/dist/cjs/NavDvm.js +38 -6
- package/dist/cjs/{NavFooter-1fda6732.js → NavFooter-01974617.js} +9 -4
- package/dist/cjs/NavMagazine.js +31 -12
- package/dist/cjs/NavNative.js +29 -9
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +2 -1
- package/dist/cjs/{Pagination-15fb574b.js → Pagination-6359861a.js} +1 -1
- package/dist/cjs/PartnerDetailListing.js +36 -18
- package/dist/cjs/PartnerDetailListingPaginated.js +31 -17
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +7 -6
- package/dist/cjs/PublicationDeck.js +2 -1
- package/dist/cjs/{PublicationFeature-831b844f.js → PublicationFeature-a989a2b3.js} +1 -1
- package/dist/cjs/PublicationLanding.js +3 -2
- package/dist/cjs/QueueDeckExpanded.js +9 -8
- package/dist/cjs/QueueDeckExpandedPaginated.js +14 -12
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -1
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/SeriesListingDeck.js +7 -6
- package/dist/cjs/{SeriesSlider-812c18c1.js → SeriesSlider-18fc6e71.js} +7 -7
- package/dist/cjs/SideFooter.js +7 -7
- package/dist/cjs/{SocialSearchComponent-97f282c9.js → SocialSearchComponent-934ee7cb.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +12 -6
- package/dist/cjs/TaxonomyDescription.js +11 -8
- package/dist/cjs/TemplateNormal.js +13 -12
- package/dist/cjs/ThumbnailCard.js +2 -1
- package/dist/cjs/Ustream.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +11 -9
- package/dist/cjs/VideoSeriesCard.js +2 -1
- package/dist/cjs/VideoSeriesLandingPage.js +8 -7
- package/dist/cjs/VideoSeriesListing.js +8 -7
- package/dist/cjs/View.js +19 -17
- package/dist/cjs/YahooHero.js +2 -1
- package/dist/cjs/YoutubeGroup.js +8 -7
- package/dist/cjs/checkSisterSite-537617d0.js +12 -0
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-4ba5ae64.js → extends-7c86182f.js} +1 -0
- package/dist/cjs/getSerializers.js +11 -8
- package/dist/cjs/{getTargeting-04f873fc.js → getTargeting-ba942d9a.js} +1 -1
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/{iconBase-a4e2124e.js → iconBase-be4097c0.js} +33 -19
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-4d9f51e0.js → index-65621b6c.js} +30 -44
- package/dist/cjs/{index-83306c50.js → index-bf53fcae.js} +298 -47
- package/dist/cjs/{index-d4111f6f.js → index-d2a6ef75.js} +11 -497
- package/dist/cjs/{index.esm-e9b0af76.js → index.esm-819f093e.js} +7 -6
- package/dist/cjs/index.esm-c1e16606.js +13 -0
- package/dist/cjs/{index.esm-137096ed.js → index.esm-d51c9ac6.js} +1 -1
- package/dist/cjs/{index.esm-cc867b2a.js → index.esm-d81454e7.js} +1 -1
- package/dist/cjs/index.js +23 -21
- package/dist/cjs/{inherits-34f12d98.js → inherits-de66ea16.js} +3 -0
- package/dist/cjs/{lib-deff1680.js → main-6054981e.js} +461 -671
- package/dist/cjs/{react-social-icons-3750ed83.js → react-social-icons-2c5c389a.js} +23 -107
- package/dist/cjs/websiteList-e5ddc626.js +5 -0
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +5 -4
- package/dist/esm/AD300x250x600.js +5 -4
- package/dist/esm/AD728x90.js +6 -5
- package/dist/esm/ADFloatingFooter.js +4 -3
- package/dist/esm/ADGutter.js +4 -3
- package/dist/esm/ADSkyscraper.js +4 -3
- package/dist/esm/ADSponsoredResources.js +4 -3
- package/dist/esm/ADWebcast.js +4 -3
- package/dist/esm/ADWelcome.js +4 -3
- package/dist/esm/AccordionPanel.js +2 -2
- package/dist/esm/AdSlot.js +4 -3
- package/dist/esm/AdSlotsProvider.js +5 -4
- package/dist/esm/AlgoliaSearch.js +16 -394
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +4 -3
- package/dist/esm/ArticleProgramLandingPage.js +11 -9
- package/dist/esm/ArticleSeriesLandingPage.js +7 -6
- package/dist/esm/ArticleSeriesListing.js +8 -7
- package/dist/esm/Auth.js +1 -1
- package/dist/esm/CMEDeck.js +4 -3
- package/dist/esm/Column2.js +4 -4
- package/dist/esm/Column3.js +9 -8
- package/dist/esm/ContentCardPaginated.js +13 -11
- package/dist/esm/DeckContent.js +8 -7
- package/dist/esm/DeckQueue.js +7 -6
- package/dist/esm/DeckQueuePaginated.js +12 -10
- package/dist/esm/{Dfp-d5e18fc5.js → Dfp-102f0beb.js} +2 -1
- package/dist/esm/EventsDeck.js +31 -4
- package/dist/esm/ExternalResources.js +15 -11
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +2 -1
- package/dist/esm/GridContent.js +12 -11
- package/dist/esm/GridContentPaginated.js +17 -15
- package/dist/esm/GridHero.js +2 -1
- package/dist/esm/HamMagazine.js +20 -19
- package/dist/esm/HorizontalArticleListing.js +11 -8
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -1
- package/dist/esm/IssueDeck.js +3 -2
- package/dist/esm/IssueLanding.js +12 -10
- package/dist/esm/LeftNav.js +17 -6
- package/dist/esm/MasterDeck.js +7 -6
- package/dist/esm/MasterDeckPaginated.js +11 -10
- package/dist/esm/{MediaSeriesCard-f3a44438.js → MediaSeriesCard-d53a35cd.js} +4773 -4855
- package/dist/esm/MediaSeriesLanding.js +14 -13
- package/dist/esm/MediaSeriesLandingPaginated.js +16 -15
- package/dist/esm/NavDvm.js +38 -6
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-2f731a45.js} +9 -4
- package/dist/esm/NavMagazine.js +31 -12
- package/dist/esm/NavNative.js +29 -9
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +2 -1
- package/dist/esm/{Pagination-a77c57b0.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +36 -18
- package/dist/esm/PartnerDetailListingPaginated.js +31 -17
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PubSection.js +7 -6
- package/dist/esm/PublicationDeck.js +2 -1
- package/dist/esm/{PublicationFeature-d0c5fe6b.js → PublicationFeature-d88e76b9.js} +1 -1
- package/dist/esm/PublicationLanding.js +3 -2
- package/dist/esm/QueueDeckExpanded.js +9 -8
- package/dist/esm/QueueDeckExpandedPaginated.js +14 -12
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/SeriesListingDeck.js +7 -6
- package/dist/esm/{SeriesSlider-8de9942e.js → SeriesSlider-5728e349.js} +7 -7
- package/dist/esm/SideFooter.js +7 -7
- package/dist/esm/{SocialSearchComponent-315749c5.js → SocialSearchComponent-f261257b.js} +7 -7
- package/dist/esm/TaxonomyCard.js +12 -6
- package/dist/esm/TaxonomyDescription.js +11 -8
- package/dist/esm/TemplateNormal.js +13 -12
- package/dist/esm/ThumbnailCard.js +2 -1
- package/dist/esm/Ustream.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +11 -9
- package/dist/esm/VideoSeriesCard.js +2 -1
- package/dist/esm/VideoSeriesLandingPage.js +8 -7
- package/dist/esm/VideoSeriesListing.js +8 -7
- package/dist/esm/View.js +19 -17
- package/dist/esm/YahooHero.js +2 -1
- package/dist/esm/YoutubeGroup.js +8 -7
- package/dist/esm/checkSisterSite-b5022f21.js +10 -0
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-aaefe9f6.js → extends-6d8e3924.js} +1 -1
- package/dist/esm/getSerializers.js +11 -8
- package/dist/esm/{getTargeting-c71ce138.js → getTargeting-9bd28724.js} +1 -1
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{iconBase-8570c2e3.js → iconBase-ccc56b97.js} +16 -18
- package/dist/esm/{index-b62a3b3b.js → index-755f2cc2.js} +29 -44
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-1a58463b.js → index-db652c86.js} +297 -46
- package/dist/esm/{index-7b29897f.js → index-f0fc23eb.js} +10 -496
- package/dist/esm/{index.esm-7481c415.js → index.esm-04d7cac5.js} +7 -6
- package/dist/esm/{index.esm-062ce475.js → index.esm-1bd8a0a8.js} +1 -1
- package/dist/esm/index.esm-9b042655.js +10 -0
- package/dist/esm/{index.esm-7ea6376b.js → index.esm-eb1e8e80.js} +1 -1
- package/dist/esm/index.js +23 -21
- package/dist/esm/{inherits-5d6082b1.js → inherits-a6ba2ec4.js} +1 -1
- package/dist/esm/{lib-11a0f0a8.js → main-9f6806ea.js} +455 -665
- package/dist/esm/{react-social-icons-30cb6e77.js → react-social-icons-9be47857.js} +23 -107
- package/dist/esm/websiteList-db717575.js +3 -0
- package/package.json +26 -17
- package/dist/cjs/MediaSeriesCard-5d34eaa3.js +0 -9668
- package/dist/cjs/defineProperty-9673846a.js +0 -34
- package/dist/cjs/index.esm-12304a8c.js +0 -13
- package/dist/cjs/setPrototypeOf-a9283c41.js +0 -47
- package/dist/esm/defineProperty-8c30428f.js +0 -32
- package/dist/esm/index.esm-7f72be8a.js +0 -10
- package/dist/esm/setPrototypeOf-11d471fa.js +0 -43
- /package/dist/cjs/{ADInfeed-eedb4b70.js → ADInfeed-f316b66a.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-d5cc88dc.js → ADlgInfeed-2003306e.js} +0 -0
- /package/dist/esm/{ADInfeed-519f60cb.js → ADInfeed-777bb0b3.js} +0 -0
- /package/dist/esm/{ADlgInfeed-db2466b4.js → ADlgInfeed-e7fd1bb6.js} +0 -0
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var reactBootstrap = require('react-bootstrap');
|
|
6
6
|
var urlFor = require('./urlFor.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-d2a6ef75.js');
|
|
8
8
|
var Router = require('next/router');
|
|
9
9
|
var index$1 = require('./index-187c967e.js');
|
|
10
10
|
var PropTypes = require('prop-types');
|
|
@@ -12,11 +12,11 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
|
12
12
|
var util = require('./util-93a37fd0.js');
|
|
13
13
|
require('./Beam.js');
|
|
14
14
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
15
|
+
var main = require('./main-6054981e.js');
|
|
16
16
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
17
|
-
var _extends = require('./extends-
|
|
17
|
+
var _extends = require('./extends-7c86182f.js');
|
|
18
18
|
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
19
|
-
var index$2 = require('./index-
|
|
19
|
+
var index$2 = require('./index-65621b6c.js');
|
|
20
20
|
var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
21
21
|
var _typeof$1 = require('./typeof-567e31ff.js');
|
|
22
22
|
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-4c7825a1.js');
|
|
@@ -37,12 +37,13 @@ var AdSlot = require('./AdSlot.js');
|
|
|
37
37
|
var Row = require('react-bootstrap/Row');
|
|
38
38
|
var Col = require('react-bootstrap/Col');
|
|
39
39
|
var Head = require('next/head');
|
|
40
|
-
var inherits = require('./inherits-
|
|
41
|
-
var index_esm = require('./index.esm-
|
|
40
|
+
var inherits = require('./inherits-de66ea16.js');
|
|
41
|
+
var index_esm = require('./index.esm-d81454e7.js');
|
|
42
42
|
var Figure$1 = require('react-bootstrap/Figure');
|
|
43
43
|
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
44
44
|
var Tooltip = require('react-bootstrap/Tooltip');
|
|
45
45
|
var Popover = require('react-bootstrap/Popover');
|
|
46
|
+
var websiteList = require('./websiteList-e5ddc626.js');
|
|
46
47
|
|
|
47
48
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
48
49
|
|
|
@@ -1953,7 +1954,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1954
|
var queue = Math.floor(duration / 10);
|
|
1954
1955
|
var segment = Math.floor(current / queue);
|
|
1955
1956
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1956
|
-
Segment.report_video_event('Video Ready',
|
|
1957
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
|
|
1957
1958
|
};
|
|
1958
1959
|
|
|
1959
1960
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,7 +1965,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1965
|
|
|
1965
1966
|
if (!queueProgress.includes(segment)) {
|
|
1966
1967
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1967
|
-
Segment.report_video_event('Video Segment',
|
|
1968
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
|
|
1968
1969
|
queueProgress.push(segment);
|
|
1969
1970
|
}
|
|
1970
1971
|
};
|
|
@@ -1978,7 +1979,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1979
|
var segment = Math.floor(current / queue);
|
|
1979
1980
|
|
|
1980
1981
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1981
|
-
Segment.report_video_event('Video Play',
|
|
1982
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
|
|
1982
1983
|
|
|
1983
1984
|
if (!playReported) {
|
|
1984
1985
|
setPlayReported(true);
|
|
@@ -1998,7 +1999,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1999
|
var segment = Math.floor(current / queue);
|
|
1999
2000
|
|
|
2000
2001
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
2001
|
-
Segment.report_video_event('Video End',
|
|
2002
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment);
|
|
2002
2003
|
setEndReported(true);
|
|
2003
2004
|
clearInterval(intervalID);
|
|
2004
2005
|
}
|
|
@@ -2012,7 +2013,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
2013
|
var segment = Math.floor(current / queue);
|
|
2013
2014
|
|
|
2014
2015
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
2015
|
-
Segment.report_video_event('Video Pause',
|
|
2016
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2016
2017
|
};
|
|
2017
2018
|
|
|
2018
2019
|
return React__default["default"].createElement(
|
|
@@ -2488,7 +2489,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2488
2489
|
var queue = Math.floor(duration / 10);
|
|
2489
2490
|
var segment = Math.floor(current / queue);
|
|
2490
2491
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2491
|
-
Segment.report_video_event('Video Ready',
|
|
2492
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'MP4');
|
|
2492
2493
|
};
|
|
2493
2494
|
|
|
2494
2495
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2498,7 +2499,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2498
2499
|
var segment = Math.floor(current / queue);
|
|
2499
2500
|
if (!queueProgress.includes(segment)) {
|
|
2500
2501
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2501
|
-
Segment.report_video_event('Video Segment',
|
|
2502
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'MP4');
|
|
2502
2503
|
queueProgress.push(segment);
|
|
2503
2504
|
}
|
|
2504
2505
|
};
|
|
@@ -2511,7 +2512,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2511
2512
|
var queue = Math.floor(duration / 10);
|
|
2512
2513
|
var segment = Math.floor(current / queue);
|
|
2513
2514
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2514
|
-
Segment.report_video_event('Video Play',
|
|
2515
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'MP4');
|
|
2515
2516
|
if (!playReported) {
|
|
2516
2517
|
event.persist();
|
|
2517
2518
|
setPlayReported(true);
|
|
@@ -2554,7 +2555,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2554
2555
|
var segment = Math.floor(current / queue);
|
|
2555
2556
|
clearInterval(intId);
|
|
2556
2557
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2557
|
-
Segment.report_video_event('Video End',
|
|
2558
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'MP4');
|
|
2558
2559
|
setEndReported(true);
|
|
2559
2560
|
clearInterval(intervalID);
|
|
2560
2561
|
}
|
|
@@ -2568,7 +2569,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2568
2569
|
var segment = Math.floor(current / queue);
|
|
2569
2570
|
clearInterval(intId);
|
|
2570
2571
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2571
|
-
Segment.report_video_event('Video Pause',
|
|
2572
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2572
2573
|
};
|
|
2573
2574
|
|
|
2574
2575
|
return React__default["default"].createElement(
|
|
@@ -2757,7 +2758,7 @@ var Video = function Video(_ref) {
|
|
|
2757
2758
|
}
|
|
2758
2759
|
|
|
2759
2760
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2760
|
-
Segment.report_video_event('Video Ready',
|
|
2761
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2761
2762
|
});
|
|
2762
2763
|
// let intId
|
|
2763
2764
|
// const convertTime = (timeStr) => {
|
|
@@ -2792,7 +2793,7 @@ var Video = function Video(_ref) {
|
|
|
2792
2793
|
}, 1000);
|
|
2793
2794
|
}
|
|
2794
2795
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2795
|
-
Segment.report_video_event('Video Play',
|
|
2796
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2796
2797
|
});
|
|
2797
2798
|
|
|
2798
2799
|
// pause
|
|
@@ -2803,7 +2804,7 @@ var Video = function Video(_ref) {
|
|
|
2803
2804
|
var segment = Math.floor(current / queue);
|
|
2804
2805
|
clearInterval(intId);
|
|
2805
2806
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2806
|
-
Segment.report_video_event('Video Pause',
|
|
2807
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2807
2808
|
});
|
|
2808
2809
|
|
|
2809
2810
|
// end
|
|
@@ -2814,7 +2815,7 @@ var Video = function Video(_ref) {
|
|
|
2814
2815
|
var segment = Math.floor(current / queue);
|
|
2815
2816
|
clearInterval(intId);
|
|
2816
2817
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2817
|
-
Segment.report_video_event('Video End',
|
|
2818
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2818
2819
|
// This is for old series format
|
|
2819
2820
|
autoplayNextVideo(evt);
|
|
2820
2821
|
if (nextVideo) {
|
|
@@ -2830,7 +2831,7 @@ var Video = function Video(_ref) {
|
|
|
2830
2831
|
var segment = Math.floor(current / queue);
|
|
2831
2832
|
if (!queueProgress.includes(segment)) {
|
|
2832
2833
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2833
|
-
Segment.report_video_event('Video Segment',
|
|
2834
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2834
2835
|
queueProgress.push(segment);
|
|
2835
2836
|
}
|
|
2836
2837
|
});
|
|
@@ -2842,7 +2843,7 @@ var Video = function Video(_ref) {
|
|
|
2842
2843
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2843
2844
|
|
|
2844
2845
|
// Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2845
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2846
|
+
Segment.report_ad_event('Video Ad Started', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2846
2847
|
});
|
|
2847
2848
|
|
|
2848
2849
|
// ad ended
|
|
@@ -2851,7 +2852,7 @@ var Video = function Video(_ref) {
|
|
|
2851
2852
|
// const id = player.ads.ad.id
|
|
2852
2853
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2853
2854
|
// Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2854
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2855
|
+
Segment.report_ad_event('Video Ad Ended', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2855
2856
|
});
|
|
2856
2857
|
};
|
|
2857
2858
|
|
|
@@ -7789,7 +7790,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7789
7790
|
var queue = Math.floor(duration / 10);
|
|
7790
7791
|
var segment = Math.floor(current / queue);
|
|
7791
7792
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7792
|
-
Segment.report_video_event('Video Ready',
|
|
7793
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
|
|
7793
7794
|
//autoplay
|
|
7794
7795
|
|
|
7795
7796
|
//Small pause before starting next video
|
|
@@ -7810,7 +7811,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7810
7811
|
var segment = Math.floor(current / queue);
|
|
7811
7812
|
|
|
7812
7813
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7813
|
-
Segment.report_video_event('Video End',
|
|
7814
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment);
|
|
7814
7815
|
setEndReported(true);
|
|
7815
7816
|
clearInterval(intervalID);
|
|
7816
7817
|
}
|
|
@@ -7861,7 +7862,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7861
7862
|
var segment = Math.floor(current / queue);
|
|
7862
7863
|
if (!queueProgress.includes(segment)) {
|
|
7863
7864
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7864
|
-
Segment.report_video_event('Video Segment',
|
|
7865
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
|
|
7865
7866
|
queueProgress.push(segment);
|
|
7866
7867
|
}
|
|
7867
7868
|
};
|
|
@@ -7875,7 +7876,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7875
7876
|
var segment = Math.floor(current / queue);
|
|
7876
7877
|
|
|
7877
7878
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7878
|
-
Segment.report_video_event('Video Play',
|
|
7879
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
|
|
7879
7880
|
|
|
7880
7881
|
if (!playReported) {
|
|
7881
7882
|
setPlayReported(true);
|
|
@@ -7894,7 +7895,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7894
7895
|
var segment = Math.floor(current / queue);
|
|
7895
7896
|
|
|
7896
7897
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7897
|
-
Segment.report_video_event('Video Pause',
|
|
7898
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
7898
7899
|
};
|
|
7899
7900
|
|
|
7900
7901
|
// Youtube Options
|
|
@@ -8330,7 +8331,7 @@ var Poll = function Poll(_ref) {
|
|
|
8330
8331
|
);
|
|
8331
8332
|
};
|
|
8332
8333
|
|
|
8333
|
-
var numberOfPaginations =
|
|
8334
|
+
var numberOfPaginations = main.main_42 ? 4 : 10;
|
|
8334
8335
|
|
|
8335
8336
|
var Quiz = function Quiz(_ref) {
|
|
8336
8337
|
var quizzes = _ref.quizzes,
|
|
@@ -8468,7 +8469,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
8468
8469
|
var renderPagination = function renderPagination() {
|
|
8469
8470
|
return React__default["default"].createElement(
|
|
8470
8471
|
Pagination__default["default"],
|
|
8471
|
-
{ className: 'p-0 m-0', size:
|
|
8472
|
+
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
8472
8473
|
React__default["default"].createElement(Pagination__default["default"].First, { onClick: function onClick() {
|
|
8473
8474
|
return changePage('first');
|
|
8474
8475
|
}, disabled: currentPage === 1 }),
|
|
@@ -9202,7 +9203,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9202
9203
|
//console.log('useLayoutEffect')
|
|
9203
9204
|
if (!firstLoad) {
|
|
9204
9205
|
setUpArrowClicked(false);
|
|
9205
|
-
if (
|
|
9206
|
+
if (main.main_43) {
|
|
9206
9207
|
grabLoadedAds();
|
|
9207
9208
|
} else {
|
|
9208
9209
|
scrollToArticle();
|
|
@@ -9226,7 +9227,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9226
9227
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
9227
9228
|
if (pageview) pageview(path);
|
|
9228
9229
|
|
|
9229
|
-
if (!
|
|
9230
|
+
if (!main.main_43) {
|
|
9230
9231
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
9231
9232
|
if (window.googletag && googletag.pubadsReady) {
|
|
9232
9233
|
index.lib_3.refresh();
|
|
@@ -9234,7 +9235,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9234
9235
|
});
|
|
9235
9236
|
}
|
|
9236
9237
|
//Refresh leaderboard ad on mobile
|
|
9237
|
-
if (
|
|
9238
|
+
if (main.main_43) {
|
|
9238
9239
|
var leaderboardSlotId = '';
|
|
9239
9240
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
9240
9241
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -9544,20 +9545,20 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9544
9545
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9545
9546
|
|
|
9546
9547
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9547
|
-
var triggerAction =
|
|
9548
|
-
var placementLocation =
|
|
9548
|
+
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9549
|
+
var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9549
9550
|
return React__default["default"].createElement(
|
|
9550
9551
|
'picture',
|
|
9551
9552
|
null,
|
|
9552
9553
|
React__default["default"].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9553
9554
|
React__default["default"].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9554
9555
|
React__default["default"].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9555
|
-
|
|
9556
|
+
main.main_42 && link ? React__default["default"].createElement('img', _extends._extends({
|
|
9556
9557
|
style: figureImageStyle,
|
|
9557
9558
|
className: 'figure-image',
|
|
9558
9559
|
src: urlFor({ source: node, client: client }),
|
|
9559
9560
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9560
|
-
}, !link && !
|
|
9561
|
+
}, !link && !main.main_42 && {
|
|
9561
9562
|
onClick: function onClick() {
|
|
9562
9563
|
return handleClickFigure(node, client);
|
|
9563
9564
|
}
|
|
@@ -9569,7 +9570,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9569
9570
|
className: 'figure-image',
|
|
9570
9571
|
src: urlFor({ source: node, client: client }),
|
|
9571
9572
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9572
|
-
}, !link && !
|
|
9573
|
+
}, !link && !main.main_42 && {
|
|
9573
9574
|
onClick: function onClick() {
|
|
9574
9575
|
return handleClickFigure(node, client);
|
|
9575
9576
|
}
|
|
@@ -9788,20 +9789,20 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9788
9789
|
link = _ref3.link,
|
|
9789
9790
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9790
9791
|
|
|
9791
|
-
var triggerAction =
|
|
9792
|
-
var placementLocation =
|
|
9792
|
+
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9793
|
+
var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9793
9794
|
return React__default["default"].createElement(
|
|
9794
9795
|
'picture',
|
|
9795
9796
|
null,
|
|
9796
9797
|
React__default["default"].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9797
9798
|
React__default["default"].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9798
9799
|
React__default["default"].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9799
|
-
|
|
9800
|
+
main.main_42 && link ? React__default["default"].createElement('img', _extends._extends({
|
|
9800
9801
|
'images-count': imagesCount,
|
|
9801
9802
|
className: 'multi-figure-image',
|
|
9802
9803
|
src: urlFor({ source: image, client: client }),
|
|
9803
9804
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9804
|
-
}, !link && !
|
|
9805
|
+
}, !link && !main.main_42 && {
|
|
9805
9806
|
onClick: function onClick() {
|
|
9806
9807
|
return handleClickFigure(image, client);
|
|
9807
9808
|
}
|
|
@@ -9813,7 +9814,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9813
9814
|
className: 'multi-figure-image',
|
|
9814
9815
|
src: urlFor({ source: image, client: client }),
|
|
9815
9816
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9816
|
-
}, !link && !
|
|
9817
|
+
}, !link && !main.main_42 && {
|
|
9817
9818
|
onClick: function onClick() {
|
|
9818
9819
|
return handleClickFigure(image, client);
|
|
9819
9820
|
}
|
|
@@ -9993,6 +9994,258 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9993
9994
|
);
|
|
9994
9995
|
};
|
|
9995
9996
|
|
|
9997
|
+
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9998
|
+
|
|
9999
|
+
exports.__esModule = true;
|
|
10000
|
+
|
|
10001
|
+
exports.default = function (obj, keys) {
|
|
10002
|
+
var target = {};
|
|
10003
|
+
|
|
10004
|
+
for (var i in obj) {
|
|
10005
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
10006
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
10007
|
+
target[i] = obj[i];
|
|
10008
|
+
}
|
|
10009
|
+
|
|
10010
|
+
return target;
|
|
10011
|
+
};
|
|
10012
|
+
});
|
|
10013
|
+
|
|
10014
|
+
_commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
10015
|
+
|
|
10016
|
+
var ScriptTag_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
10017
|
+
|
|
10018
|
+
exports.__esModule = true;
|
|
10019
|
+
|
|
10020
|
+
|
|
10021
|
+
|
|
10022
|
+
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
10023
|
+
|
|
10024
|
+
|
|
10025
|
+
|
|
10026
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
10027
|
+
|
|
10028
|
+
|
|
10029
|
+
|
|
10030
|
+
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
10031
|
+
|
|
10032
|
+
|
|
10033
|
+
|
|
10034
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
10035
|
+
|
|
10036
|
+
|
|
10037
|
+
|
|
10038
|
+
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
10039
|
+
|
|
10040
|
+
|
|
10041
|
+
|
|
10042
|
+
var _react2 = _interopRequireDefault(React__default["default"]);
|
|
10043
|
+
|
|
10044
|
+
|
|
10045
|
+
|
|
10046
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default["default"]);
|
|
10047
|
+
|
|
10048
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10049
|
+
var noop = function noop() {};
|
|
10050
|
+
|
|
10051
|
+
var ScriptTag = function (_Component) {
|
|
10052
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
10053
|
+
|
|
10054
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
10055
|
+
if (node) {
|
|
10056
|
+
node.parentNode.removeChild(node);
|
|
10057
|
+
}
|
|
10058
|
+
};
|
|
10059
|
+
|
|
10060
|
+
function ScriptTag(props, context) {
|
|
10061
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
10062
|
+
|
|
10063
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
10064
|
+
|
|
10065
|
+
_this.domRef = null;
|
|
10066
|
+
_this.state = {
|
|
10067
|
+
isHydrated: props.isHydrating,
|
|
10068
|
+
additionalNode: null,
|
|
10069
|
+
removeAdditionalNode: null
|
|
10070
|
+
};
|
|
10071
|
+
return _this;
|
|
10072
|
+
}
|
|
10073
|
+
|
|
10074
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
10075
|
+
var _props = this.props,
|
|
10076
|
+
onError = _props.onError,
|
|
10077
|
+
onLoad = _props.onLoad,
|
|
10078
|
+
nonce = _props.nonce;
|
|
10079
|
+
|
|
10080
|
+
// Create a new HTML script element
|
|
10081
|
+
|
|
10082
|
+
var newElement = document.createElement("script");
|
|
10083
|
+
|
|
10084
|
+
// Copy all attribute values
|
|
10085
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
10086
|
+
var attr = this.domRef.attributes[i];
|
|
10087
|
+
if (attr.nodeName === 'nonce') {
|
|
10088
|
+
// The browser clears the nonce value - grab from props
|
|
10089
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
10090
|
+
} else {
|
|
10091
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
10092
|
+
}
|
|
10093
|
+
}
|
|
10094
|
+
|
|
10095
|
+
// Copy the inner script
|
|
10096
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
10097
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
10098
|
+
}
|
|
10099
|
+
|
|
10100
|
+
// Bind event listeners
|
|
10101
|
+
newElement.addEventListener('load', onLoad);
|
|
10102
|
+
newElement.addEventListener('error', onError);
|
|
10103
|
+
|
|
10104
|
+
// Append the new script tag
|
|
10105
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
10106
|
+
return newElement;
|
|
10107
|
+
};
|
|
10108
|
+
|
|
10109
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
10110
|
+
var isHydrated = this.state.isHydrated;
|
|
10111
|
+
|
|
10112
|
+
if (isHydrated) {
|
|
10113
|
+
// was rendered on server, don't replace elements when hydrating
|
|
10114
|
+
return;
|
|
10115
|
+
}
|
|
10116
|
+
|
|
10117
|
+
this.setState({
|
|
10118
|
+
additionalNode: this.appendAdditionalElement(),
|
|
10119
|
+
removeAdditionalNode: null
|
|
10120
|
+
});
|
|
10121
|
+
};
|
|
10122
|
+
|
|
10123
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
10124
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
10125
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
10126
|
+
|
|
10127
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
10128
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
10129
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
10130
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
10131
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
10132
|
+
var _props2 = this.props,
|
|
10133
|
+
src = _props2.src,
|
|
10134
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
10135
|
+
|
|
10136
|
+
if (src && src === nextProps.src) {
|
|
10137
|
+
// The 'src' attribute has not changed
|
|
10138
|
+
return;
|
|
10139
|
+
}
|
|
10140
|
+
|
|
10141
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
10142
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
10143
|
+
return;
|
|
10144
|
+
}
|
|
10145
|
+
|
|
10146
|
+
this.setState({
|
|
10147
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
10148
|
+
additionalNode: null
|
|
10149
|
+
});
|
|
10150
|
+
};
|
|
10151
|
+
|
|
10152
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
10153
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
10154
|
+
};
|
|
10155
|
+
|
|
10156
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
10157
|
+
var _state = this.state,
|
|
10158
|
+
additionalNode = _state.additionalNode,
|
|
10159
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
10160
|
+
|
|
10161
|
+
if (additionalNode === null) {
|
|
10162
|
+
this.setState({
|
|
10163
|
+
additionalNode: this.appendAdditionalElement()
|
|
10164
|
+
});
|
|
10165
|
+
}
|
|
10166
|
+
|
|
10167
|
+
if (removeAdditionalNode !== null) {
|
|
10168
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
10169
|
+
this.setState({
|
|
10170
|
+
removeAdditionalNode: null
|
|
10171
|
+
});
|
|
10172
|
+
}
|
|
10173
|
+
};
|
|
10174
|
+
|
|
10175
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
10176
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
10177
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
10178
|
+
};
|
|
10179
|
+
|
|
10180
|
+
ScriptTag.prototype.render = function render() {
|
|
10181
|
+
var _this2 = this;
|
|
10182
|
+
|
|
10183
|
+
var additionalNode = this.state.additionalNode;
|
|
10184
|
+
|
|
10185
|
+
if (additionalNode !== null) {
|
|
10186
|
+
return null;
|
|
10187
|
+
}
|
|
10188
|
+
|
|
10189
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
10190
|
+
// eslint-disable-next-line no-unused-vars
|
|
10191
|
+
var _props3 = this.props;
|
|
10192
|
+
_props3.isHydrating;
|
|
10193
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
10194
|
+
|
|
10195
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
10196
|
+
return _this2.domRef = tag;
|
|
10197
|
+
} }));
|
|
10198
|
+
};
|
|
10199
|
+
|
|
10200
|
+
return ScriptTag;
|
|
10201
|
+
}(React__default["default"].Component);
|
|
10202
|
+
|
|
10203
|
+
ScriptTag.propTypes = {
|
|
10204
|
+
/**
|
|
10205
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
10206
|
+
*/
|
|
10207
|
+
isHydrating: _propTypes2.default.bool,
|
|
10208
|
+
|
|
10209
|
+
// Standard <script> tag props
|
|
10210
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
10211
|
+
crossOrigin: _propTypes2.default.string,
|
|
10212
|
+
defer: _propTypes2.default.bool,
|
|
10213
|
+
integrity: _propTypes2.default.string,
|
|
10214
|
+
nonce: _propTypes2.default.string,
|
|
10215
|
+
src: _propTypes2.default.string,
|
|
10216
|
+
text: _propTypes2.default.string,
|
|
10217
|
+
type: _propTypes2.default.string,
|
|
10218
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
10219
|
+
|
|
10220
|
+
// globals
|
|
10221
|
+
onError: _propTypes2.default.func,
|
|
10222
|
+
onLoad: _propTypes2.default.func
|
|
10223
|
+
};
|
|
10224
|
+
ScriptTag.defaultProps = {
|
|
10225
|
+
isHydrating: false,
|
|
10226
|
+
onError: noop,
|
|
10227
|
+
onLoad: noop
|
|
10228
|
+
};
|
|
10229
|
+
exports.default = ScriptTag;
|
|
10230
|
+
});
|
|
10231
|
+
|
|
10232
|
+
_commonjsHelpers.unwrapExports(ScriptTag_1);
|
|
10233
|
+
|
|
10234
|
+
var lib = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
10235
|
+
|
|
10236
|
+
exports.__esModule = true;
|
|
10237
|
+
|
|
10238
|
+
|
|
10239
|
+
|
|
10240
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
10241
|
+
|
|
10242
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10243
|
+
|
|
10244
|
+
exports.default = _ScriptTag2.default;
|
|
10245
|
+
});
|
|
10246
|
+
|
|
10247
|
+
var ScriptTag = _commonjsHelpers.unwrapExports(lib);
|
|
10248
|
+
|
|
9996
10249
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9997
10250
|
|
|
9998
10251
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -10041,7 +10294,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10041
10294
|
'section',
|
|
10042
10295
|
{ className: 'form-assembly' },
|
|
10043
10296
|
iframeSrc && React__default["default"].createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10044
|
-
React__default["default"].createElement(
|
|
10297
|
+
React__default["default"].createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10045
10298
|
);
|
|
10046
10299
|
}
|
|
10047
10300
|
|
|
@@ -10115,8 +10368,6 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10115
10368
|
return React__default["default"].createElement('div', { id: FormID });
|
|
10116
10369
|
};
|
|
10117
10370
|
|
|
10118
|
-
var siteArray = ['aestheticauthority.com', 'cannapatientcare.com', 'chiefhealthcareexecutive.com', 'genetherapylive.com', 'giantsofcancercare.com', 'medicalworldnews.com', 'pbmi.com', 'pharmacytimes.org', 'gotoper.com', 'education.gotoper.com', 'mjhlifesciences.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
10119
|
-
|
|
10120
10371
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
10121
10372
|
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
10122
10373
|
return true;
|
|
@@ -10163,7 +10414,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10163
10414
|
//to remove http:// or https:// to check URLs
|
|
10164
10415
|
url = url.replace('www.', '').split('/').slice(2, 3).join('/');
|
|
10165
10416
|
}
|
|
10166
|
-
return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
|
|
10417
|
+
return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || websiteList.siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
|
|
10167
10418
|
};
|
|
10168
10419
|
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10169
10420
|
if (url && !isExernalUrl || url && checkBaseUrl(url)) {
|