@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
|
@@ -2,7 +2,7 @@ import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallba
|
|
|
2
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
|
|
4
4
|
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
6
6
|
import Router, { useRouter } from 'next/router';
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -10,11 +10,11 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
|
|
|
10
10
|
import { u as util } from './util-8ed16d48.js';
|
|
11
11
|
import './Beam.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { e as
|
|
13
|
+
import { e as main_18, b as main_42, m as main_43 } from './main-9f6806ea.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
|
-
import { _ as _extends } from './extends-
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
16
16
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
17
|
-
import { L as LazyLoad } from './index-
|
|
17
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
18
18
|
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
19
19
|
import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
|
|
20
20
|
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
@@ -35,12 +35,13 @@ import DFPAdSlot from './AdSlot.js';
|
|
|
35
35
|
import Row$1 from 'react-bootstrap/Row';
|
|
36
36
|
import Col$1 from 'react-bootstrap/Col';
|
|
37
37
|
import Head from 'next/head';
|
|
38
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-
|
|
39
|
-
import { c as IoIosArrowDropupCircle } from './index.esm-
|
|
38
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a6ba2ec4.js';
|
|
39
|
+
import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
|
|
40
40
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
41
41
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
42
42
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
43
43
|
import Popover from 'react-bootstrap/Popover';
|
|
44
|
+
import { s as siteArray } from './websiteList-db717575.js';
|
|
44
45
|
|
|
45
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
46
47
|
var pageNumber = selectedIndex + 1;
|
|
@@ -1933,7 +1934,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1933
1934
|
var queue = Math.floor(duration / 10);
|
|
1934
1935
|
var segment = Math.floor(current / queue);
|
|
1935
1936
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1936
|
-
Segment.report_video_event('Video Ready',
|
|
1937
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1937
1938
|
};
|
|
1938
1939
|
|
|
1939
1940
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1944,7 +1945,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1944
1945
|
|
|
1945
1946
|
if (!queueProgress.includes(segment)) {
|
|
1946
1947
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1947
|
-
Segment.report_video_event('Video Segment',
|
|
1948
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1948
1949
|
queueProgress.push(segment);
|
|
1949
1950
|
}
|
|
1950
1951
|
};
|
|
@@ -1958,7 +1959,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1958
1959
|
var segment = Math.floor(current / queue);
|
|
1959
1960
|
|
|
1960
1961
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1961
|
-
Segment.report_video_event('Video Play',
|
|
1962
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1962
1963
|
|
|
1963
1964
|
if (!playReported) {
|
|
1964
1965
|
setPlayReported(true);
|
|
@@ -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('End', deviceType, duration, current, segment)
|
|
1981
|
-
Segment.report_video_event('Video End',
|
|
1982
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
1982
1983
|
setEndReported(true);
|
|
1983
1984
|
clearInterval(intervalID);
|
|
1984
1985
|
}
|
|
@@ -1992,7 +1993,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1992
1993
|
var segment = Math.floor(current / queue);
|
|
1993
1994
|
|
|
1994
1995
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1995
|
-
Segment.report_video_event('Video Pause',
|
|
1996
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
1996
1997
|
};
|
|
1997
1998
|
|
|
1998
1999
|
return React__default.createElement(
|
|
@@ -2468,7 +2469,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2468
2469
|
var queue = Math.floor(duration / 10);
|
|
2469
2470
|
var segment = Math.floor(current / queue);
|
|
2470
2471
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2471
|
-
Segment.report_video_event('Video Ready',
|
|
2472
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2472
2473
|
};
|
|
2473
2474
|
|
|
2474
2475
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2478,7 +2479,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2478
2479
|
var segment = Math.floor(current / queue);
|
|
2479
2480
|
if (!queueProgress.includes(segment)) {
|
|
2480
2481
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2481
|
-
Segment.report_video_event('Video Segment',
|
|
2482
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2482
2483
|
queueProgress.push(segment);
|
|
2483
2484
|
}
|
|
2484
2485
|
};
|
|
@@ -2491,7 +2492,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2491
2492
|
var queue = Math.floor(duration / 10);
|
|
2492
2493
|
var segment = Math.floor(current / queue);
|
|
2493
2494
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2494
|
-
Segment.report_video_event('Video Play',
|
|
2495
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2495
2496
|
if (!playReported) {
|
|
2496
2497
|
event.persist();
|
|
2497
2498
|
setPlayReported(true);
|
|
@@ -2534,7 +2535,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2534
2535
|
var segment = Math.floor(current / queue);
|
|
2535
2536
|
clearInterval(intId);
|
|
2536
2537
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2537
|
-
Segment.report_video_event('Video End',
|
|
2538
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2538
2539
|
setEndReported(true);
|
|
2539
2540
|
clearInterval(intervalID);
|
|
2540
2541
|
}
|
|
@@ -2548,7 +2549,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2548
2549
|
var segment = Math.floor(current / queue);
|
|
2549
2550
|
clearInterval(intId);
|
|
2550
2551
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2551
|
-
Segment.report_video_event('Video Pause',
|
|
2552
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2552
2553
|
};
|
|
2553
2554
|
|
|
2554
2555
|
return React__default.createElement(
|
|
@@ -2737,7 +2738,7 @@ var Video = function Video(_ref) {
|
|
|
2737
2738
|
}
|
|
2738
2739
|
|
|
2739
2740
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2740
|
-
Segment.report_video_event('Video Ready',
|
|
2741
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2741
2742
|
});
|
|
2742
2743
|
// let intId
|
|
2743
2744
|
// const convertTime = (timeStr) => {
|
|
@@ -2772,7 +2773,7 @@ var Video = function Video(_ref) {
|
|
|
2772
2773
|
}, 1000);
|
|
2773
2774
|
}
|
|
2774
2775
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2775
|
-
Segment.report_video_event('Video Play',
|
|
2776
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2776
2777
|
});
|
|
2777
2778
|
|
|
2778
2779
|
// pause
|
|
@@ -2783,7 +2784,7 @@ var Video = function Video(_ref) {
|
|
|
2783
2784
|
var segment = Math.floor(current / queue);
|
|
2784
2785
|
clearInterval(intId);
|
|
2785
2786
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2786
|
-
Segment.report_video_event('Video Pause',
|
|
2787
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2787
2788
|
});
|
|
2788
2789
|
|
|
2789
2790
|
// end
|
|
@@ -2794,7 +2795,7 @@ var Video = function Video(_ref) {
|
|
|
2794
2795
|
var segment = Math.floor(current / queue);
|
|
2795
2796
|
clearInterval(intId);
|
|
2796
2797
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2797
|
-
Segment.report_video_event('Video End',
|
|
2798
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2798
2799
|
// This is for old series format
|
|
2799
2800
|
autoplayNextVideo(evt);
|
|
2800
2801
|
if (nextVideo) {
|
|
@@ -2810,7 +2811,7 @@ var Video = function Video(_ref) {
|
|
|
2810
2811
|
var segment = Math.floor(current / queue);
|
|
2811
2812
|
if (!queueProgress.includes(segment)) {
|
|
2812
2813
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2813
|
-
Segment.report_video_event('Video Segment',
|
|
2814
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2814
2815
|
queueProgress.push(segment);
|
|
2815
2816
|
}
|
|
2816
2817
|
});
|
|
@@ -2822,7 +2823,7 @@ var Video = function Video(_ref) {
|
|
|
2822
2823
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2823
2824
|
|
|
2824
2825
|
// Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2825
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2826
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2826
2827
|
});
|
|
2827
2828
|
|
|
2828
2829
|
// ad ended
|
|
@@ -2831,7 +2832,7 @@ var Video = function Video(_ref) {
|
|
|
2831
2832
|
// const id = player.ads.ad.id
|
|
2832
2833
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2833
2834
|
// Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2834
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2835
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2835
2836
|
});
|
|
2836
2837
|
};
|
|
2837
2838
|
|
|
@@ -7769,7 +7770,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7769
7770
|
var queue = Math.floor(duration / 10);
|
|
7770
7771
|
var segment = Math.floor(current / queue);
|
|
7771
7772
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7772
|
-
Segment.report_video_event('Video Ready',
|
|
7773
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7773
7774
|
//autoplay
|
|
7774
7775
|
|
|
7775
7776
|
//Small pause before starting next video
|
|
@@ -7790,7 +7791,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7790
7791
|
var segment = Math.floor(current / queue);
|
|
7791
7792
|
|
|
7792
7793
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7793
|
-
Segment.report_video_event('Video End',
|
|
7794
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7794
7795
|
setEndReported(true);
|
|
7795
7796
|
clearInterval(intervalID);
|
|
7796
7797
|
}
|
|
@@ -7841,7 +7842,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7841
7842
|
var segment = Math.floor(current / queue);
|
|
7842
7843
|
if (!queueProgress.includes(segment)) {
|
|
7843
7844
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7844
|
-
Segment.report_video_event('Video Segment',
|
|
7845
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7845
7846
|
queueProgress.push(segment);
|
|
7846
7847
|
}
|
|
7847
7848
|
};
|
|
@@ -7855,7 +7856,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7855
7856
|
var segment = Math.floor(current / queue);
|
|
7856
7857
|
|
|
7857
7858
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7858
|
-
Segment.report_video_event('Video Play',
|
|
7859
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7859
7860
|
|
|
7860
7861
|
if (!playReported) {
|
|
7861
7862
|
setPlayReported(true);
|
|
@@ -7874,7 +7875,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7874
7875
|
var segment = Math.floor(current / queue);
|
|
7875
7876
|
|
|
7876
7877
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7877
|
-
Segment.report_video_event('Video Pause',
|
|
7878
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7878
7879
|
};
|
|
7879
7880
|
|
|
7880
7881
|
// Youtube Options
|
|
@@ -8310,7 +8311,7 @@ var Poll = function Poll(_ref) {
|
|
|
8310
8311
|
);
|
|
8311
8312
|
};
|
|
8312
8313
|
|
|
8313
|
-
var numberOfPaginations =
|
|
8314
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
8314
8315
|
|
|
8315
8316
|
var Quiz = function Quiz(_ref) {
|
|
8316
8317
|
var quizzes = _ref.quizzes,
|
|
@@ -8448,7 +8449,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
8448
8449
|
var renderPagination = function renderPagination() {
|
|
8449
8450
|
return React__default.createElement(
|
|
8450
8451
|
Pagination,
|
|
8451
|
-
{ className: 'p-0 m-0', size:
|
|
8452
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
8452
8453
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8453
8454
|
return changePage('first');
|
|
8454
8455
|
}, disabled: currentPage === 1 }),
|
|
@@ -9182,7 +9183,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9182
9183
|
//console.log('useLayoutEffect')
|
|
9183
9184
|
if (!firstLoad) {
|
|
9184
9185
|
setUpArrowClicked(false);
|
|
9185
|
-
if (
|
|
9186
|
+
if (main_43) {
|
|
9186
9187
|
grabLoadedAds();
|
|
9187
9188
|
} else {
|
|
9188
9189
|
scrollToArticle();
|
|
@@ -9206,7 +9207,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9206
9207
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
9207
9208
|
if (pageview) pageview(path);
|
|
9208
9209
|
|
|
9209
|
-
if (!
|
|
9210
|
+
if (!main_43) {
|
|
9210
9211
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9211
9212
|
if (window.googletag && googletag.pubadsReady) {
|
|
9212
9213
|
lib_3.refresh();
|
|
@@ -9214,7 +9215,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9214
9215
|
});
|
|
9215
9216
|
}
|
|
9216
9217
|
//Refresh leaderboard ad on mobile
|
|
9217
|
-
if (
|
|
9218
|
+
if (main_43) {
|
|
9218
9219
|
var leaderboardSlotId = '';
|
|
9219
9220
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9220
9221
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -9524,20 +9525,20 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9524
9525
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9525
9526
|
|
|
9526
9527
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9527
|
-
var triggerAction =
|
|
9528
|
-
var placementLocation =
|
|
9528
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9529
|
+
var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9529
9530
|
return React__default.createElement(
|
|
9530
9531
|
'picture',
|
|
9531
9532
|
null,
|
|
9532
9533
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9533
9534
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9534
9535
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9535
|
-
|
|
9536
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9536
9537
|
style: figureImageStyle,
|
|
9537
9538
|
className: 'figure-image',
|
|
9538
9539
|
src: urlFor({ source: node, client: client }),
|
|
9539
9540
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9540
|
-
}, !link && !
|
|
9541
|
+
}, !link && !main_42 && {
|
|
9541
9542
|
onClick: function onClick() {
|
|
9542
9543
|
return handleClickFigure(node, client);
|
|
9543
9544
|
}
|
|
@@ -9549,7 +9550,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9549
9550
|
className: 'figure-image',
|
|
9550
9551
|
src: urlFor({ source: node, client: client }),
|
|
9551
9552
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9552
|
-
}, !link && !
|
|
9553
|
+
}, !link && !main_42 && {
|
|
9553
9554
|
onClick: function onClick() {
|
|
9554
9555
|
return handleClickFigure(node, client);
|
|
9555
9556
|
}
|
|
@@ -9768,20 +9769,20 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9768
9769
|
link = _ref3.link,
|
|
9769
9770
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9770
9771
|
|
|
9771
|
-
var triggerAction =
|
|
9772
|
-
var placementLocation =
|
|
9772
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9773
|
+
var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9773
9774
|
return React__default.createElement(
|
|
9774
9775
|
'picture',
|
|
9775
9776
|
null,
|
|
9776
9777
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9777
9778
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9778
9779
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9779
|
-
|
|
9780
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9780
9781
|
'images-count': imagesCount,
|
|
9781
9782
|
className: 'multi-figure-image',
|
|
9782
9783
|
src: urlFor({ source: image, client: client }),
|
|
9783
9784
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9784
|
-
}, !link && !
|
|
9785
|
+
}, !link && !main_42 && {
|
|
9785
9786
|
onClick: function onClick() {
|
|
9786
9787
|
return handleClickFigure(image, client);
|
|
9787
9788
|
}
|
|
@@ -9793,7 +9794,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9793
9794
|
className: 'multi-figure-image',
|
|
9794
9795
|
src: urlFor({ source: image, client: client }),
|
|
9795
9796
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9796
|
-
}, !link && !
|
|
9797
|
+
}, !link && !main_42 && {
|
|
9797
9798
|
onClick: function onClick() {
|
|
9798
9799
|
return handleClickFigure(image, client);
|
|
9799
9800
|
}
|
|
@@ -9973,6 +9974,258 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9973
9974
|
);
|
|
9974
9975
|
};
|
|
9975
9976
|
|
|
9977
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9978
|
+
|
|
9979
|
+
exports.__esModule = true;
|
|
9980
|
+
|
|
9981
|
+
exports.default = function (obj, keys) {
|
|
9982
|
+
var target = {};
|
|
9983
|
+
|
|
9984
|
+
for (var i in obj) {
|
|
9985
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9986
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9987
|
+
target[i] = obj[i];
|
|
9988
|
+
}
|
|
9989
|
+
|
|
9990
|
+
return target;
|
|
9991
|
+
};
|
|
9992
|
+
});
|
|
9993
|
+
|
|
9994
|
+
unwrapExports(objectWithoutProperties);
|
|
9995
|
+
|
|
9996
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9997
|
+
|
|
9998
|
+
exports.__esModule = true;
|
|
9999
|
+
|
|
10000
|
+
|
|
10001
|
+
|
|
10002
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
10003
|
+
|
|
10004
|
+
|
|
10005
|
+
|
|
10006
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
10007
|
+
|
|
10008
|
+
|
|
10009
|
+
|
|
10010
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
10011
|
+
|
|
10012
|
+
|
|
10013
|
+
|
|
10014
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
10015
|
+
|
|
10016
|
+
|
|
10017
|
+
|
|
10018
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
10019
|
+
|
|
10020
|
+
|
|
10021
|
+
|
|
10022
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
10023
|
+
|
|
10024
|
+
|
|
10025
|
+
|
|
10026
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
10027
|
+
|
|
10028
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10029
|
+
var noop = function noop() {};
|
|
10030
|
+
|
|
10031
|
+
var ScriptTag = function (_Component) {
|
|
10032
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
10033
|
+
|
|
10034
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
10035
|
+
if (node) {
|
|
10036
|
+
node.parentNode.removeChild(node);
|
|
10037
|
+
}
|
|
10038
|
+
};
|
|
10039
|
+
|
|
10040
|
+
function ScriptTag(props, context) {
|
|
10041
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
10042
|
+
|
|
10043
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
10044
|
+
|
|
10045
|
+
_this.domRef = null;
|
|
10046
|
+
_this.state = {
|
|
10047
|
+
isHydrated: props.isHydrating,
|
|
10048
|
+
additionalNode: null,
|
|
10049
|
+
removeAdditionalNode: null
|
|
10050
|
+
};
|
|
10051
|
+
return _this;
|
|
10052
|
+
}
|
|
10053
|
+
|
|
10054
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
10055
|
+
var _props = this.props,
|
|
10056
|
+
onError = _props.onError,
|
|
10057
|
+
onLoad = _props.onLoad,
|
|
10058
|
+
nonce = _props.nonce;
|
|
10059
|
+
|
|
10060
|
+
// Create a new HTML script element
|
|
10061
|
+
|
|
10062
|
+
var newElement = document.createElement("script");
|
|
10063
|
+
|
|
10064
|
+
// Copy all attribute values
|
|
10065
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
10066
|
+
var attr = this.domRef.attributes[i];
|
|
10067
|
+
if (attr.nodeName === 'nonce') {
|
|
10068
|
+
// The browser clears the nonce value - grab from props
|
|
10069
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
10070
|
+
} else {
|
|
10071
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
10072
|
+
}
|
|
10073
|
+
}
|
|
10074
|
+
|
|
10075
|
+
// Copy the inner script
|
|
10076
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
10077
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
10078
|
+
}
|
|
10079
|
+
|
|
10080
|
+
// Bind event listeners
|
|
10081
|
+
newElement.addEventListener('load', onLoad);
|
|
10082
|
+
newElement.addEventListener('error', onError);
|
|
10083
|
+
|
|
10084
|
+
// Append the new script tag
|
|
10085
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
10086
|
+
return newElement;
|
|
10087
|
+
};
|
|
10088
|
+
|
|
10089
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
10090
|
+
var isHydrated = this.state.isHydrated;
|
|
10091
|
+
|
|
10092
|
+
if (isHydrated) {
|
|
10093
|
+
// was rendered on server, don't replace elements when hydrating
|
|
10094
|
+
return;
|
|
10095
|
+
}
|
|
10096
|
+
|
|
10097
|
+
this.setState({
|
|
10098
|
+
additionalNode: this.appendAdditionalElement(),
|
|
10099
|
+
removeAdditionalNode: null
|
|
10100
|
+
});
|
|
10101
|
+
};
|
|
10102
|
+
|
|
10103
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
10104
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
10105
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
10106
|
+
|
|
10107
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
10108
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
10109
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
10110
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
10111
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
10112
|
+
var _props2 = this.props,
|
|
10113
|
+
src = _props2.src,
|
|
10114
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
10115
|
+
|
|
10116
|
+
if (src && src === nextProps.src) {
|
|
10117
|
+
// The 'src' attribute has not changed
|
|
10118
|
+
return;
|
|
10119
|
+
}
|
|
10120
|
+
|
|
10121
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
10122
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
10123
|
+
return;
|
|
10124
|
+
}
|
|
10125
|
+
|
|
10126
|
+
this.setState({
|
|
10127
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
10128
|
+
additionalNode: null
|
|
10129
|
+
});
|
|
10130
|
+
};
|
|
10131
|
+
|
|
10132
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
10133
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
10134
|
+
};
|
|
10135
|
+
|
|
10136
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
10137
|
+
var _state = this.state,
|
|
10138
|
+
additionalNode = _state.additionalNode,
|
|
10139
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
10140
|
+
|
|
10141
|
+
if (additionalNode === null) {
|
|
10142
|
+
this.setState({
|
|
10143
|
+
additionalNode: this.appendAdditionalElement()
|
|
10144
|
+
});
|
|
10145
|
+
}
|
|
10146
|
+
|
|
10147
|
+
if (removeAdditionalNode !== null) {
|
|
10148
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
10149
|
+
this.setState({
|
|
10150
|
+
removeAdditionalNode: null
|
|
10151
|
+
});
|
|
10152
|
+
}
|
|
10153
|
+
};
|
|
10154
|
+
|
|
10155
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
10156
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
10157
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
10158
|
+
};
|
|
10159
|
+
|
|
10160
|
+
ScriptTag.prototype.render = function render() {
|
|
10161
|
+
var _this2 = this;
|
|
10162
|
+
|
|
10163
|
+
var additionalNode = this.state.additionalNode;
|
|
10164
|
+
|
|
10165
|
+
if (additionalNode !== null) {
|
|
10166
|
+
return null;
|
|
10167
|
+
}
|
|
10168
|
+
|
|
10169
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
10170
|
+
// eslint-disable-next-line no-unused-vars
|
|
10171
|
+
var _props3 = this.props;
|
|
10172
|
+
_props3.isHydrating;
|
|
10173
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
10174
|
+
|
|
10175
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
10176
|
+
return _this2.domRef = tag;
|
|
10177
|
+
} }));
|
|
10178
|
+
};
|
|
10179
|
+
|
|
10180
|
+
return ScriptTag;
|
|
10181
|
+
}(React__default.Component);
|
|
10182
|
+
|
|
10183
|
+
ScriptTag.propTypes = {
|
|
10184
|
+
/**
|
|
10185
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
10186
|
+
*/
|
|
10187
|
+
isHydrating: _propTypes2.default.bool,
|
|
10188
|
+
|
|
10189
|
+
// Standard <script> tag props
|
|
10190
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
10191
|
+
crossOrigin: _propTypes2.default.string,
|
|
10192
|
+
defer: _propTypes2.default.bool,
|
|
10193
|
+
integrity: _propTypes2.default.string,
|
|
10194
|
+
nonce: _propTypes2.default.string,
|
|
10195
|
+
src: _propTypes2.default.string,
|
|
10196
|
+
text: _propTypes2.default.string,
|
|
10197
|
+
type: _propTypes2.default.string,
|
|
10198
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
10199
|
+
|
|
10200
|
+
// globals
|
|
10201
|
+
onError: _propTypes2.default.func,
|
|
10202
|
+
onLoad: _propTypes2.default.func
|
|
10203
|
+
};
|
|
10204
|
+
ScriptTag.defaultProps = {
|
|
10205
|
+
isHydrating: false,
|
|
10206
|
+
onError: noop,
|
|
10207
|
+
onLoad: noop
|
|
10208
|
+
};
|
|
10209
|
+
exports.default = ScriptTag;
|
|
10210
|
+
});
|
|
10211
|
+
|
|
10212
|
+
unwrapExports(ScriptTag_1);
|
|
10213
|
+
|
|
10214
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
10215
|
+
|
|
10216
|
+
exports.__esModule = true;
|
|
10217
|
+
|
|
10218
|
+
|
|
10219
|
+
|
|
10220
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
10221
|
+
|
|
10222
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10223
|
+
|
|
10224
|
+
exports.default = _ScriptTag2.default;
|
|
10225
|
+
});
|
|
10226
|
+
|
|
10227
|
+
var ScriptTag = unwrapExports(lib);
|
|
10228
|
+
|
|
9976
10229
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9977
10230
|
|
|
9978
10231
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -10021,7 +10274,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10021
10274
|
'section',
|
|
10022
10275
|
{ className: 'form-assembly' },
|
|
10023
10276
|
iframeSrc && React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10024
|
-
React__default.createElement(
|
|
10277
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10025
10278
|
);
|
|
10026
10279
|
}
|
|
10027
10280
|
|
|
@@ -10095,8 +10348,6 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10095
10348
|
return React__default.createElement('div', { id: FormID });
|
|
10096
10349
|
};
|
|
10097
10350
|
|
|
10098
|
-
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'];
|
|
10099
|
-
|
|
10100
10351
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
10101
10352
|
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
10102
10353
|
return true;
|