@mjhls/mjh-framework 1.0.990 → 1.0.992-next-update
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +7 -8
- package/dist/cjs/AD300x250x600.js +7 -8
- package/dist/cjs/AD728x90.js +8 -9
- package/dist/cjs/ADFloatingFooter.js +9 -10
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +9 -10
- package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-eedb4b70.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +9 -10
- package/dist/cjs/ADSponsoredResources.js +9 -10
- package/dist/cjs/ADWebcast.js +9 -10
- package/dist/cjs/ADWelcome.js +13 -14
- package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-d5cc88dc.js} +3 -3
- package/dist/cjs/AccordionPanel.js +19 -19
- package/dist/cjs/AdSlot.js +10 -11
- package/dist/cjs/AdSlotsProvider.js +7 -8
- package/dist/cjs/AlgoliaSearch.js +1579 -896
- package/dist/cjs/AlphabeticList.js +13 -13
- package/dist/cjs/ArticleCarousel.js +6 -7
- package/dist/cjs/ArticleProgramLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesLandingPage.js +13 -14
- package/dist/cjs/ArticleSeriesListing.js +33 -34
- package/dist/cjs/Auth.js +134 -102
- package/dist/cjs/AuthWrapper.js +42 -36
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +65 -62
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +29 -30
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +55 -58
- package/dist/cjs/DeckContent.js +61 -62
- package/dist/cjs/DeckQueue.js +60 -61
- package/dist/cjs/DeckQueuePaginated.js +52 -55
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-e06695e9.js} +17 -18
- package/dist/cjs/EventsDeck.js +91 -91
- package/dist/cjs/ExternalResources.js +38 -40
- package/dist/cjs/Feature.js +18 -18
- package/dist/cjs/ForbesHero.js +25 -26
- package/dist/cjs/GridContent.js +139 -140
- package/dist/cjs/GridContentPaginated.js +129 -132
- package/dist/cjs/GridHero.js +26 -27
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +111 -111
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +32 -34
- package/dist/cjs/HorizontalHero.js +19 -19
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-17fdaf3b.js} +72 -72
- package/dist/cjs/IssueContentDeck.js +49 -50
- package/dist/cjs/IssueDeck.js +49 -50
- package/dist/cjs/IssueLanding.js +23 -24
- package/dist/cjs/LeftNav.js +18 -19
- package/dist/cjs/MasterDeck.js +41 -42
- package/dist/cjs/MasterDeckPaginated.js +34 -36
- package/dist/cjs/MediaSeriesCard-5d34eaa3.js +9668 -0
- package/dist/cjs/MediaSeriesLanding.js +41 -41
- package/dist/cjs/MediaSeriesLandingPaginated.js +41 -42
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-1fda6732.js} +11 -11
- package/dist/cjs/NavMagazine.js +111 -111
- package/dist/cjs/NavNative.js +100 -100
- package/dist/cjs/OncliveHero.js +12 -12
- package/dist/cjs/OncliveLargeHero.js +49 -50
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/Pagination-15fb574b.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +53 -54
- package/dist/cjs/PartnerDetailListingPaginated.js +50 -53
- package/dist/cjs/PdfDownload.js +6 -6
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +14 -15
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -45
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-831b844f.js} +29 -29
- package/dist/cjs/PublicationLanding.js +74 -75
- package/dist/cjs/QueueDeckExpanded.js +248 -249
- package/dist/cjs/QueueDeckExpandedPaginated.js +228 -231
- package/dist/cjs/RecentNews.js +17 -17
- package/dist/cjs/RelatedContent.js +14 -15
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +2 -2
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +49 -0
- package/dist/cjs/SeriesListingDeck.js +20 -21
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-812c18c1.js} +27 -27
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-97f282c9.js} +33 -33
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +45 -46
- package/dist/cjs/TaxonomyDescription.js +15 -17
- package/dist/cjs/TemplateNormal.js +31 -32
- package/dist/cjs/ThumbnailCard.js +10 -11
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +33 -34
- package/dist/cjs/VideoSeriesCard.js +13 -14
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +13 -14
- package/dist/cjs/VideoSeriesListing.js +50 -51
- package/dist/cjs/View.js +326 -276
- package/dist/cjs/YahooHero.js +22 -23
- package/dist/cjs/YoutubeGroup.js +38 -39
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/{extends-7c86182f.js → extends-4ba5ae64.js} +0 -1
- package/dist/cjs/getSerializers.js +10 -12
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-04f873fc.js} +1 -1
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/{iconBase-be4097c0.js → iconBase-a4e2124e.js} +19 -35
- package/dist/cjs/{index-eadd5035.js → index-4d9f51e0.js} +48 -34
- package/dist/cjs/{index-869cab56.js → index-83306c50.js} +517 -769
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/{index-fc2f1ca2.js → index-d4111f6f.js} +501 -15
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/index.esm-12304a8c.js +13 -0
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-137096ed.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-cc867b2a.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-e9b0af76.js} +15 -15
- package/dist/cjs/index.js +109 -111
- package/dist/cjs/{inherits-de66ea16.js → inherits-34f12d98.js} +0 -3
- package/dist/cjs/lib-deff1680.js +1178 -0
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-3750ed83.js} +114 -30
- package/dist/cjs/setPrototypeOf-a9283c41.js +47 -0
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD.js +2 -2
- package/dist/esm/AD300x250.js +5 -6
- package/dist/esm/AD300x250x600.js +5 -6
- package/dist/esm/AD728x90.js +6 -7
- package/dist/esm/ADFloatingFooter.js +4 -5
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +4 -5
- package/dist/esm/ADSkyscraper.js +4 -5
- package/dist/esm/ADSponsoredResources.js +4 -5
- package/dist/esm/ADWebcast.js +4 -5
- package/dist/esm/ADWelcome.js +4 -5
- package/dist/esm/AccordionPanel.js +3 -3
- package/dist/esm/AdSlot.js +4 -5
- package/dist/esm/AdSlotsProvider.js +5 -6
- package/dist/esm/AlgoliaSearch.js +1189 -506
- package/dist/esm/AlphabeticList.js +2 -2
- package/dist/esm/ArticleCarousel.js +4 -5
- package/dist/esm/ArticleProgramLandingPage.js +10 -11
- package/dist/esm/ArticleSeriesLandingPage.js +7 -8
- package/dist/esm/ArticleSeriesListing.js +8 -9
- package/dist/esm/Auth.js +61 -30
- package/dist/esm/AuthWrapper.js +19 -13
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +9 -6
- package/dist/esm/Column1.js +1 -2
- package/dist/esm/Column2.js +2 -3
- package/dist/esm/Column3.js +7 -9
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +12 -15
- package/dist/esm/DeckContent.js +8 -9
- package/dist/esm/DeckQueue.js +7 -8
- package/dist/esm/DeckQueuePaginated.js +11 -14
- package/dist/esm/{Dfp-102f0beb.js → Dfp-d5e18fc5.js} +2 -3
- package/dist/esm/EventsDeck.js +4 -4
- package/dist/esm/ExternalResources.js +10 -12
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -3
- package/dist/esm/GridContent.js +12 -13
- package/dist/esm/GridContentPaginated.js +16 -19
- package/dist/esm/GridHero.js +2 -3
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +12 -13
- package/dist/esm/Header.js +1 -2
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +9 -11
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +2 -3
- package/dist/esm/IssueDeck.js +3 -4
- package/dist/esm/IssueLanding.js +11 -12
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +4 -6
- package/dist/esm/MasterDeck.js +7 -8
- package/dist/esm/MasterDeckPaginated.js +11 -13
- package/dist/esm/MediaSeriesCard-f3a44438.js +9640 -0
- package/dist/esm/MediaSeriesLanding.js +14 -14
- package/dist/esm/MediaSeriesLandingPaginated.js +16 -17
- package/dist/esm/NavDvm.js +1 -2
- package/dist/esm/NavMagazine.js +10 -11
- package/dist/esm/NavNative.js +7 -8
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -3
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/Pagination-a77c57b0.js +90 -0
- package/dist/esm/PartnerDetailListing.js +12 -13
- package/dist/esm/PartnerDetailListingPaginated.js +14 -17
- package/dist/esm/PdfDownload.js +3 -3
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +7 -8
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +2 -3
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-d0c5fe6b.js} +1 -1
- package/dist/esm/PublicationLanding.js +3 -4
- package/dist/esm/QueueDeckExpanded.js +9 -10
- package/dist/esm/QueueDeckExpandedPaginated.js +13 -16
- package/dist/esm/RecentNews.js +3 -3
- package/dist/esm/RelatedContent.js +2 -3
- package/dist/esm/RelatedTopicsDropdown.js +1 -1
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +2 -2
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +51 -2
- package/dist/esm/SeriesListingDeck.js +7 -8
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-8de9942e.js} +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-315749c5.js} +7 -7
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +4 -5
- package/dist/esm/TaxonomyDescription.js +9 -11
- package/dist/esm/TemplateNormal.js +10 -11
- package/dist/esm/ThumbnailCard.js +2 -3
- package/dist/esm/Ustream.js +7 -7
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +10 -11
- package/dist/esm/VideoSeriesCard.js +2 -3
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +8 -9
- package/dist/esm/VideoSeriesListing.js +8 -9
- package/dist/esm/View.js +112 -61
- package/dist/esm/YahooHero.js +2 -3
- package/dist/esm/YoutubeGroup.js +8 -9
- package/dist/esm/{extends-6d8e3924.js → extends-aaefe9f6.js} +1 -1
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +8 -10
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-c71ce138.js} +1 -1
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{iconBase-ccc56b97.js → iconBase-8570c2e3.js} +18 -16
- package/dist/esm/{index-4959f8e7.js → index-1a58463b.js} +45 -297
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/{index-f0fc23eb.js → index-7b29897f.js} +496 -10
- package/dist/esm/{index-755f2cc2.js → index-b62a3b3b.js} +44 -29
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-062ce475.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-7481c415.js} +2 -2
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-7ea6376b.js} +1 -1
- package/dist/esm/index.esm-7f72be8a.js +10 -0
- package/dist/esm/index.js +20 -22
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-5d6082b1.js} +1 -1
- package/dist/esm/lib-11a0f0a8.js +1166 -0
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-30cb6e77.js} +107 -23
- package/dist/esm/setPrototypeOf-11d471fa.js +43 -0
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +16 -25
- package/dist/cjs/MediaSeriesCard-90875937.js +0 -9505
- package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/index.esm-c1e16606.js +0 -13
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/esm/MediaSeriesCard-767d6d90.js +0 -9495
- package/dist/esm/Pagination-cd21f8c2.js +0 -82
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/index.esm-9b042655.js +0 -10
- package/dist/esm/main-1894c974.js +0 -961
- /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-519f60cb.js} +0 -0
- /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-db2466b4.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-7b29897f.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 lib_18, b as lib_44, l as lib_45 } from './lib-11a0f0a8.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
|
-
import { _ as _extends
|
|
15
|
+
import { _ as _extends } from './extends-aaefe9f6.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-b62a3b3b.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,8 +35,8 @@ 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
|
|
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 } from './inherits-5d6082b1.js';
|
|
39
|
+
import { c as IoIosArrowDropupCircle } from './index.esm-7ea6376b.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';
|
|
@@ -1933,7 +1933,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1933
1933
|
var queue = Math.floor(duration / 10);
|
|
1934
1934
|
var segment = Math.floor(current / queue);
|
|
1935
1935
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1936
|
-
Segment.report_video_event('Video Ready',
|
|
1936
|
+
Segment.report_video_event('Video Ready', lib_18, duration, current, segment);
|
|
1937
1937
|
};
|
|
1938
1938
|
|
|
1939
1939
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1944,7 +1944,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1944
1944
|
|
|
1945
1945
|
if (!queueProgress.includes(segment)) {
|
|
1946
1946
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1947
|
-
Segment.report_video_event('Video Segment',
|
|
1947
|
+
Segment.report_video_event('Video Segment', lib_18, duration, current, segment);
|
|
1948
1948
|
queueProgress.push(segment);
|
|
1949
1949
|
}
|
|
1950
1950
|
};
|
|
@@ -1958,7 +1958,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1958
1958
|
var segment = Math.floor(current / queue);
|
|
1959
1959
|
|
|
1960
1960
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1961
|
-
Segment.report_video_event('Video Play',
|
|
1961
|
+
Segment.report_video_event('Video Play', lib_18, duration, current, segment);
|
|
1962
1962
|
|
|
1963
1963
|
if (!playReported) {
|
|
1964
1964
|
setPlayReported(true);
|
|
@@ -1978,7 +1978,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1978
|
var segment = Math.floor(current / queue);
|
|
1979
1979
|
|
|
1980
1980
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1981
|
-
Segment.report_video_event('Video End',
|
|
1981
|
+
Segment.report_video_event('Video End', lib_18, duration, current, segment);
|
|
1982
1982
|
setEndReported(true);
|
|
1983
1983
|
clearInterval(intervalID);
|
|
1984
1984
|
}
|
|
@@ -1992,7 +1992,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1992
1992
|
var segment = Math.floor(current / queue);
|
|
1993
1993
|
|
|
1994
1994
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1995
|
-
Segment.report_video_event('Video Pause',
|
|
1995
|
+
Segment.report_video_event('Video Pause', lib_18, duration, current, segment);
|
|
1996
1996
|
};
|
|
1997
1997
|
|
|
1998
1998
|
return React__default.createElement(
|
|
@@ -2218,7 +2218,7 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2218
2218
|
'div',
|
|
2219
2219
|
{
|
|
2220
2220
|
key: 'inline-radio',
|
|
2221
|
-
className: '
|
|
2221
|
+
className: 'radioContainer' },
|
|
2222
2222
|
React__default.createElement(
|
|
2223
2223
|
'h2',
|
|
2224
2224
|
{
|
|
@@ -2468,7 +2468,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2468
2468
|
var queue = Math.floor(duration / 10);
|
|
2469
2469
|
var segment = Math.floor(current / queue);
|
|
2470
2470
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2471
|
-
Segment.report_video_event('Video Ready',
|
|
2471
|
+
Segment.report_video_event('Video Ready', lib_18, duration, current, segment, 'MP4');
|
|
2472
2472
|
};
|
|
2473
2473
|
|
|
2474
2474
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2478,7 +2478,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2478
2478
|
var segment = Math.floor(current / queue);
|
|
2479
2479
|
if (!queueProgress.includes(segment)) {
|
|
2480
2480
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2481
|
-
Segment.report_video_event('Video Segment',
|
|
2481
|
+
Segment.report_video_event('Video Segment', lib_18, duration, current, segment, 'MP4');
|
|
2482
2482
|
queueProgress.push(segment);
|
|
2483
2483
|
}
|
|
2484
2484
|
};
|
|
@@ -2491,7 +2491,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2491
2491
|
var queue = Math.floor(duration / 10);
|
|
2492
2492
|
var segment = Math.floor(current / queue);
|
|
2493
2493
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2494
|
-
Segment.report_video_event('Video Play',
|
|
2494
|
+
Segment.report_video_event('Video Play', lib_18, duration, current, segment, 'MP4');
|
|
2495
2495
|
if (!playReported) {
|
|
2496
2496
|
event.persist();
|
|
2497
2497
|
setPlayReported(true);
|
|
@@ -2534,7 +2534,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2534
2534
|
var segment = Math.floor(current / queue);
|
|
2535
2535
|
clearInterval(intId);
|
|
2536
2536
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2537
|
-
Segment.report_video_event('Video End',
|
|
2537
|
+
Segment.report_video_event('Video End', lib_18, duration, current, segment, 'MP4');
|
|
2538
2538
|
setEndReported(true);
|
|
2539
2539
|
clearInterval(intervalID);
|
|
2540
2540
|
}
|
|
@@ -2548,7 +2548,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2548
2548
|
var segment = Math.floor(current / queue);
|
|
2549
2549
|
clearInterval(intId);
|
|
2550
2550
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2551
|
-
Segment.report_video_event('Video Pause',
|
|
2551
|
+
Segment.report_video_event('Video Pause', lib_18, duration, current, segment, 'MP4');
|
|
2552
2552
|
};
|
|
2553
2553
|
|
|
2554
2554
|
return React__default.createElement(
|
|
@@ -2737,7 +2737,7 @@ var Video = function Video(_ref) {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
|
|
2739
2739
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2740
|
-
Segment.report_video_event('Video Ready',
|
|
2740
|
+
Segment.report_video_event('Video Ready', lib_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2741
2741
|
});
|
|
2742
2742
|
// let intId
|
|
2743
2743
|
// const convertTime = (timeStr) => {
|
|
@@ -2772,7 +2772,7 @@ var Video = function Video(_ref) {
|
|
|
2772
2772
|
}, 1000);
|
|
2773
2773
|
}
|
|
2774
2774
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2775
|
-
Segment.report_video_event('Video Play',
|
|
2775
|
+
Segment.report_video_event('Video Play', lib_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2776
2776
|
});
|
|
2777
2777
|
|
|
2778
2778
|
// pause
|
|
@@ -2783,7 +2783,7 @@ var Video = function Video(_ref) {
|
|
|
2783
2783
|
var segment = Math.floor(current / queue);
|
|
2784
2784
|
clearInterval(intId);
|
|
2785
2785
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2786
|
-
Segment.report_video_event('Video Pause',
|
|
2786
|
+
Segment.report_video_event('Video Pause', lib_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2787
2787
|
});
|
|
2788
2788
|
|
|
2789
2789
|
// end
|
|
@@ -2794,7 +2794,7 @@ var Video = function Video(_ref) {
|
|
|
2794
2794
|
var segment = Math.floor(current / queue);
|
|
2795
2795
|
clearInterval(intId);
|
|
2796
2796
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2797
|
-
Segment.report_video_event('Video End',
|
|
2797
|
+
Segment.report_video_event('Video End', lib_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2798
2798
|
// This is for old series format
|
|
2799
2799
|
autoplayNextVideo(evt);
|
|
2800
2800
|
if (nextVideo) {
|
|
@@ -2810,7 +2810,7 @@ var Video = function Video(_ref) {
|
|
|
2810
2810
|
var segment = Math.floor(current / queue);
|
|
2811
2811
|
if (!queueProgress.includes(segment)) {
|
|
2812
2812
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2813
|
-
Segment.report_video_event('Video Segment',
|
|
2813
|
+
Segment.report_video_event('Video Segment', lib_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2814
2814
|
queueProgress.push(segment);
|
|
2815
2815
|
}
|
|
2816
2816
|
});
|
|
@@ -2822,7 +2822,7 @@ var Video = function Video(_ref) {
|
|
|
2822
2822
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2823
2823
|
|
|
2824
2824
|
// Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2825
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2825
|
+
Segment.report_ad_event('Video Ad Started', lib_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2826
2826
|
});
|
|
2827
2827
|
|
|
2828
2828
|
// ad ended
|
|
@@ -2831,7 +2831,7 @@ var Video = function Video(_ref) {
|
|
|
2831
2831
|
// const id = player.ads.ad.id
|
|
2832
2832
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2833
2833
|
// Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2834
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2834
|
+
Segment.report_ad_event('Video Ad Ended', lib_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2835
2835
|
});
|
|
2836
2836
|
};
|
|
2837
2837
|
|
|
@@ -7769,7 +7769,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7769
7769
|
var queue = Math.floor(duration / 10);
|
|
7770
7770
|
var segment = Math.floor(current / queue);
|
|
7771
7771
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7772
|
-
Segment.report_video_event('Video Ready',
|
|
7772
|
+
Segment.report_video_event('Video Ready', lib_18, duration, current, segment);
|
|
7773
7773
|
//autoplay
|
|
7774
7774
|
|
|
7775
7775
|
//Small pause before starting next video
|
|
@@ -7790,7 +7790,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7790
7790
|
var segment = Math.floor(current / queue);
|
|
7791
7791
|
|
|
7792
7792
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7793
|
-
Segment.report_video_event('Video End',
|
|
7793
|
+
Segment.report_video_event('Video End', lib_18, duration, current, segment);
|
|
7794
7794
|
setEndReported(true);
|
|
7795
7795
|
clearInterval(intervalID);
|
|
7796
7796
|
}
|
|
@@ -7841,7 +7841,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7841
7841
|
var segment = Math.floor(current / queue);
|
|
7842
7842
|
if (!queueProgress.includes(segment)) {
|
|
7843
7843
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7844
|
-
Segment.report_video_event('Video Segment',
|
|
7844
|
+
Segment.report_video_event('Video Segment', lib_18, duration, current, segment);
|
|
7845
7845
|
queueProgress.push(segment);
|
|
7846
7846
|
}
|
|
7847
7847
|
};
|
|
@@ -7855,7 +7855,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7855
7855
|
var segment = Math.floor(current / queue);
|
|
7856
7856
|
|
|
7857
7857
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7858
|
-
Segment.report_video_event('Video Play',
|
|
7858
|
+
Segment.report_video_event('Video Play', lib_18, duration, current, segment);
|
|
7859
7859
|
|
|
7860
7860
|
if (!playReported) {
|
|
7861
7861
|
setPlayReported(true);
|
|
@@ -7874,7 +7874,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7874
7874
|
var segment = Math.floor(current / queue);
|
|
7875
7875
|
|
|
7876
7876
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7877
|
-
Segment.report_video_event('Video Pause',
|
|
7877
|
+
Segment.report_video_event('Video Pause', lib_18, duration, current, segment);
|
|
7878
7878
|
};
|
|
7879
7879
|
|
|
7880
7880
|
// Youtube Options
|
|
@@ -8310,7 +8310,7 @@ var Poll = function Poll(_ref) {
|
|
|
8310
8310
|
);
|
|
8311
8311
|
};
|
|
8312
8312
|
|
|
8313
|
-
var numberOfPaginations =
|
|
8313
|
+
var numberOfPaginations = lib_44 ? 4 : 10;
|
|
8314
8314
|
|
|
8315
8315
|
var Quiz = function Quiz(_ref) {
|
|
8316
8316
|
var quizzes = _ref.quizzes,
|
|
@@ -8448,7 +8448,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
8448
8448
|
var renderPagination = function renderPagination() {
|
|
8449
8449
|
return React__default.createElement(
|
|
8450
8450
|
Pagination,
|
|
8451
|
-
{ className: 'p-0 m-0', size:
|
|
8451
|
+
{ className: 'p-0 m-0', size: lib_44 && 'sm' },
|
|
8452
8452
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8453
8453
|
return changePage('first');
|
|
8454
8454
|
}, disabled: currentPage === 1 }),
|
|
@@ -9182,7 +9182,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9182
9182
|
//console.log('useLayoutEffect')
|
|
9183
9183
|
if (!firstLoad) {
|
|
9184
9184
|
setUpArrowClicked(false);
|
|
9185
|
-
if (
|
|
9185
|
+
if (lib_45) {
|
|
9186
9186
|
grabLoadedAds();
|
|
9187
9187
|
} else {
|
|
9188
9188
|
scrollToArticle();
|
|
@@ -9206,7 +9206,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9206
9206
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
9207
9207
|
if (pageview) pageview(path);
|
|
9208
9208
|
|
|
9209
|
-
if (!
|
|
9209
|
+
if (!lib_45) {
|
|
9210
9210
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9211
9211
|
if (window.googletag && googletag.pubadsReady) {
|
|
9212
9212
|
lib_3.refresh();
|
|
@@ -9214,7 +9214,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9214
9214
|
});
|
|
9215
9215
|
}
|
|
9216
9216
|
//Refresh leaderboard ad on mobile
|
|
9217
|
-
if (
|
|
9217
|
+
if (lib_45) {
|
|
9218
9218
|
var leaderboardSlotId = '';
|
|
9219
9219
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9220
9220
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -9524,20 +9524,20 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9524
9524
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9525
9525
|
|
|
9526
9526
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9527
|
-
var triggerAction =
|
|
9528
|
-
var placementLocation =
|
|
9527
|
+
var triggerAction = lib_44 ? 'click' : 'hover';
|
|
9528
|
+
var placementLocation = lib_44 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9529
9529
|
return React__default.createElement(
|
|
9530
9530
|
'picture',
|
|
9531
9531
|
null,
|
|
9532
9532
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9533
9533
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9534
9534
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9535
|
-
|
|
9535
|
+
lib_44 && link ? React__default.createElement('img', _extends({
|
|
9536
9536
|
style: figureImageStyle,
|
|
9537
9537
|
className: 'figure-image',
|
|
9538
9538
|
src: urlFor({ source: node, client: client }),
|
|
9539
9539
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9540
|
-
}, !link && !
|
|
9540
|
+
}, !link && !lib_44 && {
|
|
9541
9541
|
onClick: function onClick() {
|
|
9542
9542
|
return handleClickFigure(node, client);
|
|
9543
9543
|
}
|
|
@@ -9549,7 +9549,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9549
9549
|
className: 'figure-image',
|
|
9550
9550
|
src: urlFor({ source: node, client: client }),
|
|
9551
9551
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9552
|
-
}, !link && !
|
|
9552
|
+
}, !link && !lib_44 && {
|
|
9553
9553
|
onClick: function onClick() {
|
|
9554
9554
|
return handleClickFigure(node, client);
|
|
9555
9555
|
}
|
|
@@ -9768,20 +9768,20 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9768
9768
|
link = _ref3.link,
|
|
9769
9769
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9770
9770
|
|
|
9771
|
-
var triggerAction =
|
|
9772
|
-
var placementLocation =
|
|
9771
|
+
var triggerAction = lib_44 ? 'click' : 'hover';
|
|
9772
|
+
var placementLocation = lib_44 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9773
9773
|
return React__default.createElement(
|
|
9774
9774
|
'picture',
|
|
9775
9775
|
null,
|
|
9776
9776
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9777
9777
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9778
9778
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9779
|
-
|
|
9779
|
+
lib_44 && link ? React__default.createElement('img', _extends({
|
|
9780
9780
|
'images-count': imagesCount,
|
|
9781
9781
|
className: 'multi-figure-image',
|
|
9782
9782
|
src: urlFor({ source: image, client: client }),
|
|
9783
9783
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9784
|
-
}, !link && !
|
|
9784
|
+
}, !link && !lib_44 && {
|
|
9785
9785
|
onClick: function onClick() {
|
|
9786
9786
|
return handleClickFigure(image, client);
|
|
9787
9787
|
}
|
|
@@ -9793,7 +9793,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9793
9793
|
className: 'multi-figure-image',
|
|
9794
9794
|
src: urlFor({ source: image, client: client }),
|
|
9795
9795
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9796
|
-
}, !link && !
|
|
9796
|
+
}, !link && !lib_44 && {
|
|
9797
9797
|
onClick: function onClick() {
|
|
9798
9798
|
return handleClickFigure(image, client);
|
|
9799
9799
|
}
|
|
@@ -9973,258 +9973,6 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9973
9973
|
);
|
|
9974
9974
|
};
|
|
9975
9975
|
|
|
9976
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9977
|
-
|
|
9978
|
-
exports.__esModule = true;
|
|
9979
|
-
|
|
9980
|
-
exports.default = function (obj, keys) {
|
|
9981
|
-
var target = {};
|
|
9982
|
-
|
|
9983
|
-
for (var i in obj) {
|
|
9984
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9985
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9986
|
-
target[i] = obj[i];
|
|
9987
|
-
}
|
|
9988
|
-
|
|
9989
|
-
return target;
|
|
9990
|
-
};
|
|
9991
|
-
});
|
|
9992
|
-
|
|
9993
|
-
unwrapExports(objectWithoutProperties);
|
|
9994
|
-
|
|
9995
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9996
|
-
|
|
9997
|
-
exports.__esModule = true;
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
var _extends3 = _interopRequireDefault(_extends$1);
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
10026
|
-
|
|
10027
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10028
|
-
var noop = function noop() {};
|
|
10029
|
-
|
|
10030
|
-
var ScriptTag = function (_Component) {
|
|
10031
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
10032
|
-
|
|
10033
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
10034
|
-
if (node) {
|
|
10035
|
-
node.parentNode.removeChild(node);
|
|
10036
|
-
}
|
|
10037
|
-
};
|
|
10038
|
-
|
|
10039
|
-
function ScriptTag(props, context) {
|
|
10040
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
10041
|
-
|
|
10042
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
10043
|
-
|
|
10044
|
-
_this.domRef = null;
|
|
10045
|
-
_this.state = {
|
|
10046
|
-
isHydrated: props.isHydrating,
|
|
10047
|
-
additionalNode: null,
|
|
10048
|
-
removeAdditionalNode: null
|
|
10049
|
-
};
|
|
10050
|
-
return _this;
|
|
10051
|
-
}
|
|
10052
|
-
|
|
10053
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
10054
|
-
var _props = this.props,
|
|
10055
|
-
onError = _props.onError,
|
|
10056
|
-
onLoad = _props.onLoad,
|
|
10057
|
-
nonce = _props.nonce;
|
|
10058
|
-
|
|
10059
|
-
// Create a new HTML script element
|
|
10060
|
-
|
|
10061
|
-
var newElement = document.createElement("script");
|
|
10062
|
-
|
|
10063
|
-
// Copy all attribute values
|
|
10064
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
10065
|
-
var attr = this.domRef.attributes[i];
|
|
10066
|
-
if (attr.nodeName === 'nonce') {
|
|
10067
|
-
// The browser clears the nonce value - grab from props
|
|
10068
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
10069
|
-
} else {
|
|
10070
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
10071
|
-
}
|
|
10072
|
-
}
|
|
10073
|
-
|
|
10074
|
-
// Copy the inner script
|
|
10075
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
10076
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
10077
|
-
}
|
|
10078
|
-
|
|
10079
|
-
// Bind event listeners
|
|
10080
|
-
newElement.addEventListener('load', onLoad);
|
|
10081
|
-
newElement.addEventListener('error', onError);
|
|
10082
|
-
|
|
10083
|
-
// Append the new script tag
|
|
10084
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
10085
|
-
return newElement;
|
|
10086
|
-
};
|
|
10087
|
-
|
|
10088
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
10089
|
-
var isHydrated = this.state.isHydrated;
|
|
10090
|
-
|
|
10091
|
-
if (isHydrated) {
|
|
10092
|
-
// was rendered on server, don't replace elements when hydrating
|
|
10093
|
-
return;
|
|
10094
|
-
}
|
|
10095
|
-
|
|
10096
|
-
this.setState({
|
|
10097
|
-
additionalNode: this.appendAdditionalElement(),
|
|
10098
|
-
removeAdditionalNode: null
|
|
10099
|
-
});
|
|
10100
|
-
};
|
|
10101
|
-
|
|
10102
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
10103
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
10104
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
10105
|
-
|
|
10106
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
10107
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
10108
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
10109
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
10110
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
10111
|
-
var _props2 = this.props,
|
|
10112
|
-
src = _props2.src,
|
|
10113
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
10114
|
-
|
|
10115
|
-
if (src && src === nextProps.src) {
|
|
10116
|
-
// The 'src' attribute has not changed
|
|
10117
|
-
return;
|
|
10118
|
-
}
|
|
10119
|
-
|
|
10120
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
10121
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
10122
|
-
return;
|
|
10123
|
-
}
|
|
10124
|
-
|
|
10125
|
-
this.setState({
|
|
10126
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
10127
|
-
additionalNode: null
|
|
10128
|
-
});
|
|
10129
|
-
};
|
|
10130
|
-
|
|
10131
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
10132
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
10133
|
-
};
|
|
10134
|
-
|
|
10135
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
10136
|
-
var _state = this.state,
|
|
10137
|
-
additionalNode = _state.additionalNode,
|
|
10138
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
10139
|
-
|
|
10140
|
-
if (additionalNode === null) {
|
|
10141
|
-
this.setState({
|
|
10142
|
-
additionalNode: this.appendAdditionalElement()
|
|
10143
|
-
});
|
|
10144
|
-
}
|
|
10145
|
-
|
|
10146
|
-
if (removeAdditionalNode !== null) {
|
|
10147
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
10148
|
-
this.setState({
|
|
10149
|
-
removeAdditionalNode: null
|
|
10150
|
-
});
|
|
10151
|
-
}
|
|
10152
|
-
};
|
|
10153
|
-
|
|
10154
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
10155
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
10156
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
10157
|
-
};
|
|
10158
|
-
|
|
10159
|
-
ScriptTag.prototype.render = function render() {
|
|
10160
|
-
var _this2 = this;
|
|
10161
|
-
|
|
10162
|
-
var additionalNode = this.state.additionalNode;
|
|
10163
|
-
|
|
10164
|
-
if (additionalNode !== null) {
|
|
10165
|
-
return null;
|
|
10166
|
-
}
|
|
10167
|
-
|
|
10168
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
10169
|
-
// eslint-disable-next-line no-unused-vars
|
|
10170
|
-
var _props3 = this.props;
|
|
10171
|
-
_props3.isHydrating;
|
|
10172
|
-
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
10173
|
-
|
|
10174
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
10175
|
-
return _this2.domRef = tag;
|
|
10176
|
-
} }));
|
|
10177
|
-
};
|
|
10178
|
-
|
|
10179
|
-
return ScriptTag;
|
|
10180
|
-
}(React__default.Component);
|
|
10181
|
-
|
|
10182
|
-
ScriptTag.propTypes = {
|
|
10183
|
-
/**
|
|
10184
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
10185
|
-
*/
|
|
10186
|
-
isHydrating: _propTypes2.default.bool,
|
|
10187
|
-
|
|
10188
|
-
// Standard <script> tag props
|
|
10189
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
10190
|
-
crossOrigin: _propTypes2.default.string,
|
|
10191
|
-
defer: _propTypes2.default.bool,
|
|
10192
|
-
integrity: _propTypes2.default.string,
|
|
10193
|
-
nonce: _propTypes2.default.string,
|
|
10194
|
-
src: _propTypes2.default.string,
|
|
10195
|
-
text: _propTypes2.default.string,
|
|
10196
|
-
type: _propTypes2.default.string,
|
|
10197
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
10198
|
-
|
|
10199
|
-
// globals
|
|
10200
|
-
onError: _propTypes2.default.func,
|
|
10201
|
-
onLoad: _propTypes2.default.func
|
|
10202
|
-
};
|
|
10203
|
-
ScriptTag.defaultProps = {
|
|
10204
|
-
isHydrating: false,
|
|
10205
|
-
onError: noop,
|
|
10206
|
-
onLoad: noop
|
|
10207
|
-
};
|
|
10208
|
-
exports.default = ScriptTag;
|
|
10209
|
-
});
|
|
10210
|
-
|
|
10211
|
-
unwrapExports(ScriptTag_1);
|
|
10212
|
-
|
|
10213
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
10214
|
-
|
|
10215
|
-
exports.__esModule = true;
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
10220
|
-
|
|
10221
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10222
|
-
|
|
10223
|
-
exports.default = _ScriptTag2.default;
|
|
10224
|
-
});
|
|
10225
|
-
|
|
10226
|
-
var ScriptTag = unwrapExports(lib);
|
|
10227
|
-
|
|
10228
9976
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
10229
9977
|
|
|
10230
9978
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -10273,7 +10021,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10273
10021
|
'section',
|
|
10274
10022
|
{ className: 'form-assembly' },
|
|
10275
10023
|
iframeSrc && React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10276
|
-
React__default.createElement(
|
|
10024
|
+
React__default.createElement('script', { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10277
10025
|
);
|
|
10278
10026
|
}
|
|
10279
10027
|
|