@mjhls/mjh-framework 1.0.818 → 1.0.819-ad-refresh
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 +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +2 -3
- package/dist/cjs/AD300x250x600.js +2 -3
- package/dist/cjs/AD728x90.js +2 -3
- package/dist/cjs/ADFloatingFooter.js +2 -3
- package/dist/cjs/ADGutter.js +2 -3
- package/dist/cjs/ADSkyscraper.js +2 -3
- package/dist/cjs/ADSponsoredResources.js +2 -3
- package/dist/cjs/ADWebcast.js +2 -3
- package/dist/cjs/ADWelcome.js +2 -3
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +4 -5
- package/dist/cjs/AdSlotsProvider.js +27 -6
- package/dist/cjs/AlgoliaSearch.js +19 -14100
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -5
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +2 -3
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -6
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -5
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +5 -6
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -37
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +12 -13
- package/dist/cjs/MediaSeriesLanding.js +408 -308
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -8
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-2db54929.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +9 -10
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-a100d6e5.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-e5fd35c7.js → index-48bd6cd5.js} +3 -3
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +14 -15
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -7
- package/dist/esm/AD300x250x600.js +6 -7
- package/dist/esm/AD728x90.js +7 -8
- package/dist/esm/ADFloatingFooter.js +9 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -10
- package/dist/esm/{ADInfeed-7aaa47e1.js → ADInfeed-4a09242b.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -10
- package/dist/esm/ADSponsoredResources.js +9 -10
- package/dist/esm/ADWebcast.js +9 -10
- package/dist/esm/ADWelcome.js +13 -14
- package/dist/esm/{ADlgInfeed-78f95e78.js → ADlgInfeed-0bff9a62.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +7 -8
- package/dist/esm/AdSlotsProvider.js +28 -8
- package/dist/esm/AlgoliaSearch.js +39 -14120
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -18
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -32
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -58
- package/dist/esm/DeckQueue.js +42 -43
- package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -36
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +103 -104
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -32
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +51 -52
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +46 -47
- package/dist/esm/MediaSeriesLanding.js +431 -331
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +62 -63
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -15
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +78 -78
- package/dist/esm/QueueDeckExpanded.js +246 -247
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-c8477bf3.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db963c3e.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +30 -31
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -25
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -13
- package/dist/esm/VideoSeriesListing.js +47 -48
- package/dist/esm/View.js +170 -171
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-05c216d6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-04c4d8d6.js → index-343d9c07.js} +343 -343
- package/dist/esm/{index-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +39 -40
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- /package/dist/cjs/{ADInfeed-1ac86856.js → ADInfeed-eb4ce360.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2ee46b09.js → ADlgInfeed-8a05b63f.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.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,12 +10,12 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
|
|
|
10
10
|
import { u as util } from './util-3ab476bf.js';
|
|
11
11
|
import Beam from './Beam.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { d as main_18, b as main_42, m as main_43 } from './main-
|
|
14
|
-
import { B as BlockContent } from './BlockContent-
|
|
13
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
15
15
|
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
|
-
import { L as LazyLoad } from './index-
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
17
|
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
19
19
|
import GroupDeck from './GroupDeck.js';
|
|
20
20
|
import { m as moment } from './moment-bc12cb97.js';
|
|
21
21
|
import SocialShare from './SocialShare.js';
|
|
@@ -30,7 +30,7 @@ import Row$1 from 'react-bootstrap/Row';
|
|
|
30
30
|
import Col$1 from 'react-bootstrap/Col';
|
|
31
31
|
import Head from 'next/head';
|
|
32
32
|
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-a41fe93f.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var urlFor$4 = function urlFor(source, builder) {
|
|
@@ -72,20 +72,20 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
72
72
|
if (pageview) pageview(router.asPath);
|
|
73
73
|
}, [router]);
|
|
74
74
|
|
|
75
|
-
return
|
|
75
|
+
return React__default.createElement(
|
|
76
76
|
'div',
|
|
77
77
|
{ className: 'mt-3 mb-3' },
|
|
78
|
-
|
|
78
|
+
React__default.createElement(
|
|
79
79
|
Carousel,
|
|
80
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
81
81
|
return onChangeSlide(selectedIndex, router);
|
|
82
82
|
}, interval: null },
|
|
83
83
|
slides && slides.map(function (slide) {
|
|
84
|
-
return
|
|
84
|
+
return React__default.createElement(
|
|
85
85
|
Carousel.Item,
|
|
86
86
|
{ key: slide._key },
|
|
87
|
-
|
|
88
|
-
slide.caption &&
|
|
87
|
+
React__default.createElement('img', { src: slide.asset && urlFor$4(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React__default.createElement(
|
|
89
89
|
'p',
|
|
90
90
|
{ className: 'p-2' },
|
|
91
91
|
slide.caption
|
|
@@ -1827,9 +1827,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1827
1827
|
}, {
|
|
1828
1828
|
key: "render",
|
|
1829
1829
|
value: function render() {
|
|
1830
|
-
return /*#__PURE__*/
|
|
1830
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1831
1831
|
className: this.props.containerClassName
|
|
1832
|
-
}, /*#__PURE__*/
|
|
1832
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1833
1833
|
id: this.props.id,
|
|
1834
1834
|
className: this.props.className,
|
|
1835
1835
|
ref: this.refContainer
|
|
@@ -1838,7 +1838,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1838
1838
|
}]);
|
|
1839
1839
|
|
|
1840
1840
|
return YouTube;
|
|
1841
|
-
}(
|
|
1841
|
+
}(React__default.Component);
|
|
1842
1842
|
|
|
1843
1843
|
_defineProperty(YouTube, "PlayerState", {
|
|
1844
1844
|
UNSTARTED: -1,
|
|
@@ -1985,11 +1985,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
1985
|
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
1986
1986
|
};
|
|
1987
1987
|
|
|
1988
|
-
return
|
|
1988
|
+
return React__default.createElement(
|
|
1989
1989
|
'div',
|
|
1990
1990
|
{ id: 'fluid-video-container' },
|
|
1991
|
-
|
|
1992
|
-
|
|
1991
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1992
|
+
React__default.createElement(
|
|
1993
1993
|
'style',
|
|
1994
1994
|
{ jsx: 'true' },
|
|
1995
1995
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2002,20 +2002,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2002
2002
|
content = _ref.content,
|
|
2003
2003
|
getSerializers = _ref.getSerializers;
|
|
2004
2004
|
|
|
2005
|
-
return
|
|
2005
|
+
return React__default.createElement(
|
|
2006
2006
|
'article',
|
|
2007
2007
|
{ className: 'sidebar' },
|
|
2008
|
-
|
|
2008
|
+
React__default.createElement(
|
|
2009
2009
|
'div',
|
|
2010
2010
|
null,
|
|
2011
|
-
|
|
2011
|
+
React__default.createElement(
|
|
2012
2012
|
'h3',
|
|
2013
2013
|
null,
|
|
2014
2014
|
caption
|
|
2015
2015
|
),
|
|
2016
|
-
|
|
2016
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2017
2017
|
),
|
|
2018
|
-
|
|
2018
|
+
React__default.createElement(
|
|
2019
2019
|
'style',
|
|
2020
2020
|
{ jsx: 'true' },
|
|
2021
2021
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2026,18 +2026,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2026
2026
|
var TableShow = function TableShow(_ref) {
|
|
2027
2027
|
var rows = _ref.rows;
|
|
2028
2028
|
|
|
2029
|
-
return
|
|
2029
|
+
return React__default.createElement(
|
|
2030
2030
|
Table,
|
|
2031
2031
|
{ bordered: true, hover: true, responsive: true },
|
|
2032
|
-
|
|
2032
|
+
React__default.createElement(
|
|
2033
2033
|
'tbody',
|
|
2034
2034
|
null,
|
|
2035
2035
|
rows && rows.map(function (row) {
|
|
2036
|
-
return
|
|
2036
|
+
return React__default.createElement(
|
|
2037
2037
|
'tr',
|
|
2038
2038
|
{ key: row._key },
|
|
2039
2039
|
row.cells && row.cells.map(function (cell, index) {
|
|
2040
|
-
return cell &&
|
|
2040
|
+
return cell && React__default.createElement(
|
|
2041
2041
|
'td',
|
|
2042
2042
|
{ key: index },
|
|
2043
2043
|
cell
|
|
@@ -2140,18 +2140,18 @@ var Media = function Media(_ref) {
|
|
|
2140
2140
|
margin: imageMargin
|
|
2141
2141
|
};
|
|
2142
2142
|
|
|
2143
|
-
return
|
|
2143
|
+
return React__default.createElement(
|
|
2144
2144
|
Figure$1,
|
|
2145
2145
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2146
|
-
|
|
2146
|
+
React__default.createElement(
|
|
2147
2147
|
'a',
|
|
2148
2148
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2149
|
-
|
|
2149
|
+
React__default.createElement(
|
|
2150
2150
|
LazyLoad,
|
|
2151
2151
|
{ once: true },
|
|
2152
|
-
|
|
2152
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2153
2153
|
),
|
|
2154
|
-
caption &&
|
|
2154
|
+
caption && React__default.createElement(
|
|
2155
2155
|
Figure$1.Caption,
|
|
2156
2156
|
{ className: 'media-caption' },
|
|
2157
2157
|
caption
|
|
@@ -2159,7 +2159,7 @@ var Media = function Media(_ref) {
|
|
|
2159
2159
|
)
|
|
2160
2160
|
);
|
|
2161
2161
|
} else if (caption && caption !== '') {
|
|
2162
|
-
return
|
|
2162
|
+
return React__default.createElement(
|
|
2163
2163
|
'a',
|
|
2164
2164
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2165
2165
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2179,10 +2179,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2179
2179
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2180
2180
|
|
|
2181
2181
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2182
|
-
return
|
|
2182
|
+
return React__default.createElement(
|
|
2183
2183
|
'div',
|
|
2184
2184
|
{ className: 'd-block text-center mb-3' },
|
|
2185
|
-
|
|
2185
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2186
2186
|
);
|
|
2187
2187
|
};
|
|
2188
2188
|
|
|
@@ -2277,10 +2277,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2277
2277
|
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2278
2278
|
};
|
|
2279
2279
|
|
|
2280
|
-
return
|
|
2280
|
+
return React__default.createElement(
|
|
2281
2281
|
'div',
|
|
2282
2282
|
null,
|
|
2283
|
-
vidLoaded &&
|
|
2283
|
+
vidLoaded && React__default.createElement(
|
|
2284
2284
|
'video',
|
|
2285
2285
|
{
|
|
2286
2286
|
poster: thumbnail || '',
|
|
@@ -2298,7 +2298,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2298
2298
|
onPlay: function onPlay(e) {
|
|
2299
2299
|
return handleOnPlay(e);
|
|
2300
2300
|
} },
|
|
2301
|
-
|
|
2301
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2302
2302
|
'Your browser does not support the video tag.'
|
|
2303
2303
|
)
|
|
2304
2304
|
);
|
|
@@ -2433,53 +2433,53 @@ var Video = function Video(_ref) {
|
|
|
2433
2433
|
|
|
2434
2434
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2435
2435
|
if (videoID) {
|
|
2436
|
-
return
|
|
2436
|
+
return React__default.createElement(
|
|
2437
2437
|
'div',
|
|
2438
2438
|
null,
|
|
2439
|
-
|
|
2439
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2440
2440
|
onSuccess: onVideoSuccess,
|
|
2441
2441
|
accountId: accountIDs.brightcove.accountId,
|
|
2442
2442
|
videoId: videoID,
|
|
2443
2443
|
playerId: accountIDs.brightcove.playerId,
|
|
2444
2444
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2445
2445
|
}),
|
|
2446
|
-
|
|
2446
|
+
React__default.createElement(
|
|
2447
2447
|
'style',
|
|
2448
2448
|
{ jsx: 'true' },
|
|
2449
2449
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2450
2450
|
)
|
|
2451
2451
|
);
|
|
2452
2452
|
} else if (playlistID) {
|
|
2453
|
-
return
|
|
2453
|
+
return React__default.createElement(
|
|
2454
2454
|
'div',
|
|
2455
2455
|
null,
|
|
2456
|
-
|
|
2456
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2457
2457
|
accountId: accountIDs.brightcove.accountId,
|
|
2458
2458
|
playlistId: playlistID,
|
|
2459
2459
|
playerId: accountIDs.brightcove.playerId,
|
|
2460
2460
|
onSuccess: onVideoSuccess,
|
|
2461
2461
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2462
2462
|
}),
|
|
2463
|
-
|
|
2463
|
+
React__default.createElement(
|
|
2464
2464
|
'style',
|
|
2465
2465
|
{ jsx: 'true' },
|
|
2466
2466
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2467
2467
|
)
|
|
2468
2468
|
);
|
|
2469
2469
|
} else if (experienceID) {
|
|
2470
|
-
return
|
|
2470
|
+
return React__default.createElement(
|
|
2471
2471
|
'div',
|
|
2472
2472
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2473
|
-
videoLoaded &&
|
|
2473
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2474
2474
|
);
|
|
2475
2475
|
}
|
|
2476
2476
|
return null;
|
|
2477
2477
|
}
|
|
2478
2478
|
if (source === 'mp4') {
|
|
2479
|
-
return
|
|
2479
|
+
return React__default.createElement(
|
|
2480
2480
|
'div',
|
|
2481
2481
|
null,
|
|
2482
|
-
|
|
2482
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2483
2483
|
);
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
@@ -3084,7 +3084,7 @@ function isEqual(a, b) {
|
|
|
3084
3084
|
return true;
|
|
3085
3085
|
}
|
|
3086
3086
|
|
|
3087
|
-
if ((0,
|
|
3087
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3088
3088
|
return true;
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
@@ -3146,7 +3146,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3146
3146
|
});
|
|
3147
3147
|
exports["default"] = void 0;
|
|
3148
3148
|
|
|
3149
|
-
var _react = _interopRequireWildcard(
|
|
3149
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3150
3150
|
|
|
3151
3151
|
|
|
3152
3152
|
|
|
@@ -3556,7 +3556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3556
3556
|
});
|
|
3557
3557
|
exports["default"] = createSinglePlayer;
|
|
3558
3558
|
|
|
3559
|
-
var _react = _interopRequireWildcard(
|
|
3559
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3560
3560
|
|
|
3561
3561
|
|
|
3562
3562
|
|
|
@@ -3714,7 +3714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3714
3714
|
});
|
|
3715
3715
|
exports["default"] = exports.YouTube = void 0;
|
|
3716
3716
|
|
|
3717
|
-
var _react = _interopRequireWildcard(
|
|
3717
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3718
3718
|
|
|
3719
3719
|
|
|
3720
3720
|
|
|
@@ -4023,7 +4023,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4023
4023
|
});
|
|
4024
4024
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4025
4025
|
|
|
4026
|
-
var _react = _interopRequireWildcard(
|
|
4026
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4027
4027
|
|
|
4028
4028
|
|
|
4029
4029
|
|
|
@@ -4240,7 +4240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4240
4240
|
});
|
|
4241
4241
|
exports["default"] = exports.Vimeo = void 0;
|
|
4242
4242
|
|
|
4243
|
-
var _react = _interopRequireWildcard(
|
|
4243
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4244
4244
|
|
|
4245
4245
|
|
|
4246
4246
|
|
|
@@ -4496,7 +4496,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4496
4496
|
});
|
|
4497
4497
|
exports["default"] = exports.Facebook = void 0;
|
|
4498
4498
|
|
|
4499
|
-
var _react = _interopRequireWildcard(
|
|
4499
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4500
4500
|
|
|
4501
4501
|
|
|
4502
4502
|
|
|
@@ -4708,7 +4708,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4708
4708
|
});
|
|
4709
4709
|
exports["default"] = exports.Streamable = void 0;
|
|
4710
4710
|
|
|
4711
|
-
var _react = _interopRequireWildcard(
|
|
4711
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4712
4712
|
|
|
4713
4713
|
|
|
4714
4714
|
|
|
@@ -4919,7 +4919,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4919
4919
|
});
|
|
4920
4920
|
exports["default"] = exports.Wistia = void 0;
|
|
4921
4921
|
|
|
4922
|
-
var _react = _interopRequireWildcard(
|
|
4922
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4923
4923
|
|
|
4924
4924
|
|
|
4925
4925
|
|
|
@@ -5162,7 +5162,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5162
5162
|
});
|
|
5163
5163
|
exports["default"] = exports.Twitch = void 0;
|
|
5164
5164
|
|
|
5165
|
-
var _react = _interopRequireWildcard(
|
|
5165
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5166
5166
|
|
|
5167
5167
|
|
|
5168
5168
|
|
|
@@ -5378,7 +5378,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5378
5378
|
});
|
|
5379
5379
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5380
5380
|
|
|
5381
|
-
var _react = _interopRequireWildcard(
|
|
5381
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5382
5382
|
|
|
5383
5383
|
|
|
5384
5384
|
|
|
@@ -5614,7 +5614,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5614
5614
|
});
|
|
5615
5615
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5616
5616
|
|
|
5617
|
-
var _react = _interopRequireWildcard(
|
|
5617
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5618
5618
|
|
|
5619
5619
|
|
|
5620
5620
|
|
|
@@ -5813,7 +5813,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5813
5813
|
});
|
|
5814
5814
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5815
5815
|
|
|
5816
|
-
var _react = _interopRequireWildcard(
|
|
5816
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5817
5817
|
|
|
5818
5818
|
|
|
5819
5819
|
|
|
@@ -6380,7 +6380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6380
6380
|
});
|
|
6381
6381
|
exports["default"] = void 0;
|
|
6382
6382
|
|
|
6383
|
-
var _react = _interopRequireWildcard(
|
|
6383
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6384
6384
|
|
|
6385
6385
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6386
6386
|
|
|
@@ -6559,7 +6559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6559
6559
|
});
|
|
6560
6560
|
exports["default"] = renderPreloadPlayers;
|
|
6561
6561
|
|
|
6562
|
-
var _react = _interopRequireDefault(
|
|
6562
|
+
var _react = _interopRequireDefault(React__default);
|
|
6563
6563
|
|
|
6564
6564
|
var _Player = _interopRequireDefault(Player_1);
|
|
6565
6565
|
|
|
@@ -6698,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6698
6698
|
});
|
|
6699
6699
|
exports["default"] = void 0;
|
|
6700
6700
|
|
|
6701
|
-
var _react = _interopRequireWildcard(
|
|
6701
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6702
6702
|
|
|
6703
6703
|
|
|
6704
6704
|
|
|
@@ -7012,20 +7012,20 @@ var Audio = function Audio(_ref) {
|
|
|
7012
7012
|
var node = _ref.node;
|
|
7013
7013
|
|
|
7014
7014
|
if (node.uploadAudio) {
|
|
7015
|
-
return
|
|
7015
|
+
return React__default.createElement(
|
|
7016
7016
|
'div',
|
|
7017
7017
|
{ className: 'audio d-block text-center mb-3' },
|
|
7018
|
-
|
|
7018
|
+
React__default.createElement(
|
|
7019
7019
|
'audio',
|
|
7020
7020
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7021
|
-
|
|
7022
|
-
|
|
7021
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7022
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7023
7023
|
'Your browser does not support the audio element.'
|
|
7024
7024
|
),
|
|
7025
|
-
node.caption &&
|
|
7025
|
+
node.caption && React__default.createElement(
|
|
7026
7026
|
'p',
|
|
7027
7027
|
{ style: { fontSize: '.9rem' } },
|
|
7028
|
-
|
|
7028
|
+
React__default.createElement(
|
|
7029
7029
|
'em',
|
|
7030
7030
|
null,
|
|
7031
7031
|
node.caption
|
|
@@ -7035,15 +7035,15 @@ var Audio = function Audio(_ref) {
|
|
|
7035
7035
|
} else if (node.audioFilePth) {
|
|
7036
7036
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7037
7037
|
if (hostname === 'embeds.audioboom.com') {
|
|
7038
|
-
return
|
|
7038
|
+
return React__default.createElement(
|
|
7039
7039
|
'div',
|
|
7040
7040
|
null,
|
|
7041
|
-
|
|
7041
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7042
7042
|
' ',
|
|
7043
|
-
node.caption &&
|
|
7043
|
+
node.caption && React__default.createElement(
|
|
7044
7044
|
'p',
|
|
7045
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7046
|
-
|
|
7046
|
+
React__default.createElement(
|
|
7047
7047
|
'em',
|
|
7048
7048
|
null,
|
|
7049
7049
|
node.caption
|
|
@@ -7051,14 +7051,14 @@ var Audio = function Audio(_ref) {
|
|
|
7051
7051
|
)
|
|
7052
7052
|
);
|
|
7053
7053
|
}
|
|
7054
|
-
return
|
|
7054
|
+
return React__default.createElement(
|
|
7055
7055
|
'div',
|
|
7056
7056
|
{ className: 'audio' },
|
|
7057
|
-
|
|
7058
|
-
node.caption &&
|
|
7057
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7058
|
+
node.caption && React__default.createElement(
|
|
7059
7059
|
'p',
|
|
7060
7060
|
{ style: { fontSize: '.9rem' } },
|
|
7061
|
-
|
|
7061
|
+
React__default.createElement(
|
|
7062
7062
|
'em',
|
|
7063
7063
|
null,
|
|
7064
7064
|
node.caption
|
|
@@ -7076,34 +7076,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7076
7076
|
var profileImage = arguments[6];
|
|
7077
7077
|
|
|
7078
7078
|
if (authorName && authorURL) {
|
|
7079
|
-
return
|
|
7079
|
+
return React__default.createElement(
|
|
7080
7080
|
'span',
|
|
7081
7081
|
null,
|
|
7082
|
-
|
|
7082
|
+
React__default.createElement(
|
|
7083
7083
|
'a',
|
|
7084
7084
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7085
7085
|
authorName
|
|
7086
7086
|
),
|
|
7087
|
-
|
|
7087
|
+
React__default.createElement(
|
|
7088
7088
|
Card,
|
|
7089
7089
|
{ className: 'author-details-card-' + index },
|
|
7090
|
-
|
|
7090
|
+
React__default.createElement(
|
|
7091
7091
|
Row,
|
|
7092
7092
|
null,
|
|
7093
|
-
profileImage &&
|
|
7093
|
+
profileImage && React__default.createElement(
|
|
7094
7094
|
Col,
|
|
7095
7095
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7096
|
-
|
|
7096
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7097
7097
|
),
|
|
7098
|
-
|
|
7098
|
+
React__default.createElement(
|
|
7099
7099
|
Col,
|
|
7100
7100
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7101
|
-
|
|
7101
|
+
React__default.createElement(
|
|
7102
7102
|
'div',
|
|
7103
7103
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7104
7104
|
authorName
|
|
7105
7105
|
),
|
|
7106
|
-
|
|
7106
|
+
React__default.createElement(
|
|
7107
7107
|
'p',
|
|
7108
7108
|
null,
|
|
7109
7109
|
biography
|
|
@@ -7111,7 +7111,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7111
7111
|
)
|
|
7112
7112
|
)
|
|
7113
7113
|
),
|
|
7114
|
-
|
|
7114
|
+
React__default.createElement(
|
|
7115
7115
|
'style',
|
|
7116
7116
|
{ jsx: 'true' },
|
|
7117
7117
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7119,7 +7119,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7119
7119
|
length !== index + 1 && ' , '
|
|
7120
7120
|
);
|
|
7121
7121
|
} else if (authorName) {
|
|
7122
|
-
return
|
|
7122
|
+
return React__default.createElement(
|
|
7123
7123
|
'span',
|
|
7124
7124
|
{ key: index },
|
|
7125
7125
|
authorName,
|
|
@@ -7396,44 +7396,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7396
7396
|
}
|
|
7397
7397
|
};
|
|
7398
7398
|
|
|
7399
|
-
return
|
|
7399
|
+
return React__default.createElement(
|
|
7400
7400
|
'div',
|
|
7401
7401
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7402
|
-
|
|
7402
|
+
React__default.createElement(
|
|
7403
7403
|
'div',
|
|
7404
7404
|
{ className: 'mt-2 mb-5' },
|
|
7405
|
-
series &&
|
|
7405
|
+
series && React__default.createElement(
|
|
7406
7406
|
'div',
|
|
7407
7407
|
{ style: { fontSize: '0.9rem' } },
|
|
7408
7408
|
article.title,
|
|
7409
7409
|
' - Episode ',
|
|
7410
7410
|
series
|
|
7411
7411
|
),
|
|
7412
|
-
Videos[series - 1] &&
|
|
7412
|
+
Videos[series - 1] && React__default.createElement(
|
|
7413
7413
|
'h1',
|
|
7414
7414
|
{ className: 'mb-3' },
|
|
7415
7415
|
Videos[series - 1].title
|
|
7416
7416
|
),
|
|
7417
|
-
|
|
7417
|
+
React__default.createElement(
|
|
7418
7418
|
'div',
|
|
7419
7419
|
null,
|
|
7420
7420
|
moment(article.published).format('LL')
|
|
7421
7421
|
),
|
|
7422
|
-
|
|
7422
|
+
React__default.createElement(
|
|
7423
7423
|
'div',
|
|
7424
7424
|
{ className: 'mb-3' },
|
|
7425
7425
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7426
|
-
return
|
|
7426
|
+
return React__default.createElement(
|
|
7427
7427
|
'span',
|
|
7428
7428
|
{ key: index },
|
|
7429
7429
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7430
7430
|
);
|
|
7431
7431
|
})
|
|
7432
7432
|
),
|
|
7433
|
-
|
|
7433
|
+
React__default.createElement(
|
|
7434
7434
|
'p',
|
|
7435
7435
|
null,
|
|
7436
|
-
|
|
7436
|
+
React__default.createElement(SocialShare, {
|
|
7437
7437
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7438
7438
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7439
7439
|
shareVia: meta.shareVia,
|
|
@@ -7448,20 +7448,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7448
7448
|
hideFacebook: meta.hideFBShare
|
|
7449
7449
|
})
|
|
7450
7450
|
),
|
|
7451
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7451
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7452
7452
|
'p',
|
|
7453
7453
|
{ className: 'mb-3' },
|
|
7454
|
-
|
|
7454
|
+
React__default.createElement(
|
|
7455
7455
|
'em',
|
|
7456
7456
|
null,
|
|
7457
7457
|
Videos[series - 1].intro
|
|
7458
7458
|
)
|
|
7459
7459
|
)
|
|
7460
7460
|
),
|
|
7461
|
-
|
|
7461
|
+
React__default.createElement(
|
|
7462
7462
|
'div',
|
|
7463
7463
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7464
|
-
vidUrl && vidType == 'youtube' &&
|
|
7464
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7465
7465
|
className: 'fluid-iframe',
|
|
7466
7466
|
videoId: getYoutubeId(vidUrl),
|
|
7467
7467
|
opts: opts,
|
|
@@ -7472,10 +7472,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7472
7472
|
return handleOnEnd(e);
|
|
7473
7473
|
}
|
|
7474
7474
|
}),
|
|
7475
|
-
vidUrl && vidType == 'mp4' &&
|
|
7476
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7477
|
-
|
|
7478
|
-
series &&
|
|
7475
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7476
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7477
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7478
|
+
series && React__default.createElement(
|
|
7479
7479
|
'div',
|
|
7480
7480
|
{
|
|
7481
7481
|
className: 'vid-series',
|
|
@@ -7485,10 +7485,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7485
7485
|
maxHeight: '100%',
|
|
7486
7486
|
paddingBottom: '0'
|
|
7487
7487
|
} },
|
|
7488
|
-
|
|
7488
|
+
React__default.createElement(
|
|
7489
7489
|
'p',
|
|
7490
7490
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7491
|
-
|
|
7491
|
+
React__default.createElement(
|
|
7492
7492
|
'b',
|
|
7493
7493
|
{ style: { fontSize: '1.25em' } },
|
|
7494
7494
|
'Now Playing:'
|
|
@@ -7496,16 +7496,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7496
7496
|
' ',
|
|
7497
7497
|
seriesData[series ? series - 1 : 0].title
|
|
7498
7498
|
),
|
|
7499
|
-
vidUrl &&
|
|
7499
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7500
7500
|
)
|
|
7501
7501
|
),
|
|
7502
|
-
|
|
7503
|
-
|
|
7502
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7503
|
+
React__default.createElement(
|
|
7504
7504
|
'div',
|
|
7505
7505
|
{ className: 'vid-text' },
|
|
7506
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7506
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7507
7507
|
),
|
|
7508
|
-
|
|
7508
|
+
React__default.createElement(
|
|
7509
7509
|
'style',
|
|
7510
7510
|
{ jsx: 'true' },
|
|
7511
7511
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7558,67 +7558,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7558
7558
|
return acc;
|
|
7559
7559
|
}
|
|
7560
7560
|
}, 0);
|
|
7561
|
-
return
|
|
7562
|
-
|
|
7561
|
+
return React__default.createElement(
|
|
7562
|
+
React__default.Fragment,
|
|
7563
7563
|
null,
|
|
7564
|
-
question &&
|
|
7564
|
+
question && React__default.createElement(
|
|
7565
7565
|
'p',
|
|
7566
7566
|
{ className: 'font-weight-bold' },
|
|
7567
7567
|
question
|
|
7568
7568
|
),
|
|
7569
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7569
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7570
7570
|
'form',
|
|
7571
7571
|
{ onSubmit: function onSubmit(e) {
|
|
7572
7572
|
return onSubmitPoll(e);
|
|
7573
7573
|
} },
|
|
7574
7574
|
choices && choices.map(function (choice) {
|
|
7575
|
-
return
|
|
7575
|
+
return React__default.createElement(
|
|
7576
7576
|
'div',
|
|
7577
7577
|
{ key: choice._key },
|
|
7578
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7579
7579
|
'label',
|
|
7580
7580
|
{ className: 'pl-2' },
|
|
7581
|
-
|
|
7581
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7582
7582
|
return setSelectedChoice(e.target.value);
|
|
7583
7583
|
} }),
|
|
7584
7584
|
' ' + choice.choiceText
|
|
7585
7585
|
)
|
|
7586
7586
|
);
|
|
7587
7587
|
}),
|
|
7588
|
-
|
|
7588
|
+
React__default.createElement(
|
|
7589
7589
|
Button,
|
|
7590
7590
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7591
7591
|
'Vote'
|
|
7592
7592
|
)
|
|
7593
7593
|
),
|
|
7594
|
-
|
|
7594
|
+
React__default.createElement(
|
|
7595
7595
|
'div',
|
|
7596
7596
|
{ className: 'progress-container' },
|
|
7597
7597
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7598
7598
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7599
|
-
return
|
|
7599
|
+
return React__default.createElement(
|
|
7600
7600
|
'div',
|
|
7601
7601
|
{ key: choice._key, className: 'mb-3' },
|
|
7602
|
-
|
|
7602
|
+
React__default.createElement(
|
|
7603
7603
|
'div',
|
|
7604
7604
|
{ className: 'correct-answer' },
|
|
7605
|
-
|
|
7605
|
+
React__default.createElement(
|
|
7606
7606
|
'div',
|
|
7607
7607
|
null,
|
|
7608
7608
|
choice.choiceText
|
|
7609
7609
|
),
|
|
7610
|
-
choice.choiceAnswer === true &&
|
|
7610
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7611
7611
|
'div',
|
|
7612
7612
|
null,
|
|
7613
|
-
|
|
7613
|
+
React__default.createElement(
|
|
7614
7614
|
'span',
|
|
7615
7615
|
{ style: { color: 'limegreen' } },
|
|
7616
7616
|
'Correct!'
|
|
7617
7617
|
)
|
|
7618
7618
|
)
|
|
7619
7619
|
),
|
|
7620
|
-
|
|
7621
|
-
|
|
7620
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7621
|
+
React__default.createElement(
|
|
7622
7622
|
'span',
|
|
7623
7623
|
{ className: 'float-right' },
|
|
7624
7624
|
percentage,
|
|
@@ -7629,14 +7629,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7629
7629
|
);
|
|
7630
7630
|
})
|
|
7631
7631
|
),
|
|
7632
|
-
showAnswer &&
|
|
7632
|
+
showAnswer && React__default.createElement(
|
|
7633
7633
|
'h4',
|
|
7634
7634
|
{ className: 'text-center small p-3' },
|
|
7635
7635
|
'Total Votes: ',
|
|
7636
7636
|
choicesTotalCount
|
|
7637
7637
|
),
|
|
7638
|
-
showAnswer && response &&
|
|
7639
|
-
|
|
7638
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7639
|
+
React__default.createElement(
|
|
7640
7640
|
'style',
|
|
7641
7641
|
{ jsx: 'true' },
|
|
7642
7642
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7735,67 +7735,67 @@ var Poll = function Poll(_ref) {
|
|
|
7735
7735
|
return acc;
|
|
7736
7736
|
}
|
|
7737
7737
|
}, 0);
|
|
7738
|
-
return
|
|
7739
|
-
|
|
7738
|
+
return React__default.createElement(
|
|
7739
|
+
React__default.Fragment,
|
|
7740
7740
|
null,
|
|
7741
|
-
question &&
|
|
7741
|
+
question && React__default.createElement(
|
|
7742
7742
|
'p',
|
|
7743
7743
|
{ className: 'font-weight-bold' },
|
|
7744
7744
|
question
|
|
7745
7745
|
),
|
|
7746
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7746
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7747
7747
|
'form',
|
|
7748
7748
|
{ onSubmit: function onSubmit(e) {
|
|
7749
7749
|
return onSubmitPoll(e);
|
|
7750
7750
|
} },
|
|
7751
7751
|
choices && choices.map(function (choice) {
|
|
7752
|
-
return
|
|
7752
|
+
return React__default.createElement(
|
|
7753
7753
|
'div',
|
|
7754
7754
|
{ key: choice._key },
|
|
7755
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7756
7756
|
'label',
|
|
7757
7757
|
{ className: 'pl-2' },
|
|
7758
|
-
|
|
7758
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7759
7759
|
return setSelectedChoice(e.target.value);
|
|
7760
7760
|
} }),
|
|
7761
7761
|
' ' + choice.choiceText
|
|
7762
7762
|
)
|
|
7763
7763
|
);
|
|
7764
7764
|
}),
|
|
7765
|
-
|
|
7765
|
+
React__default.createElement(
|
|
7766
7766
|
Button,
|
|
7767
7767
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7768
7768
|
'Vote'
|
|
7769
7769
|
)
|
|
7770
7770
|
),
|
|
7771
|
-
|
|
7771
|
+
React__default.createElement(
|
|
7772
7772
|
'div',
|
|
7773
7773
|
{ className: 'progress-container' },
|
|
7774
7774
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7775
7775
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7776
|
-
return
|
|
7776
|
+
return React__default.createElement(
|
|
7777
7777
|
'div',
|
|
7778
7778
|
{ key: choice._key, className: 'mb-3' },
|
|
7779
|
-
|
|
7779
|
+
React__default.createElement(
|
|
7780
7780
|
'div',
|
|
7781
7781
|
{ className: 'correct-answer' },
|
|
7782
|
-
|
|
7782
|
+
React__default.createElement(
|
|
7783
7783
|
'div',
|
|
7784
7784
|
null,
|
|
7785
7785
|
choice.choiceText
|
|
7786
7786
|
),
|
|
7787
|
-
choice.choiceAnswer === true &&
|
|
7787
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7788
7788
|
'div',
|
|
7789
7789
|
null,
|
|
7790
|
-
|
|
7790
|
+
React__default.createElement(
|
|
7791
7791
|
'span',
|
|
7792
7792
|
{ style: { color: 'limegreen' } },
|
|
7793
7793
|
'Correct!'
|
|
7794
7794
|
)
|
|
7795
7795
|
)
|
|
7796
7796
|
),
|
|
7797
|
-
|
|
7798
|
-
|
|
7797
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7798
|
+
React__default.createElement(
|
|
7799
7799
|
'span',
|
|
7800
7800
|
{ className: 'float-right' },
|
|
7801
7801
|
percentage,
|
|
@@ -7806,14 +7806,14 @@ var Poll = function Poll(_ref) {
|
|
|
7806
7806
|
);
|
|
7807
7807
|
})
|
|
7808
7808
|
),
|
|
7809
|
-
showAnswer &&
|
|
7809
|
+
showAnswer && React__default.createElement(
|
|
7810
7810
|
'h4',
|
|
7811
7811
|
{ className: 'text-center small p-3' },
|
|
7812
7812
|
'Total Votes: ',
|
|
7813
7813
|
choicesTotalCount
|
|
7814
7814
|
),
|
|
7815
|
-
showAnswer && response &&
|
|
7816
|
-
|
|
7815
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7816
|
+
React__default.createElement(
|
|
7817
7817
|
'style',
|
|
7818
7818
|
{ jsx: 'true' },
|
|
7819
7819
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7939,20 +7939,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7939
7939
|
};
|
|
7940
7940
|
|
|
7941
7941
|
var renderPagination = function renderPagination() {
|
|
7942
|
-
return
|
|
7942
|
+
return React__default.createElement(
|
|
7943
7943
|
Pagination,
|
|
7944
7944
|
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7945
|
-
|
|
7945
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7946
7946
|
return changePage('first');
|
|
7947
7947
|
}, disabled: currentPage === 1 }),
|
|
7948
|
-
|
|
7948
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7949
7949
|
return changePage('prev');
|
|
7950
7950
|
}, disabled: currentPage === 1 }),
|
|
7951
|
-
|
|
7951
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7952
7952
|
return renderNewPages('prev');
|
|
7953
7953
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7954
7954
|
pages.map(function (page) {
|
|
7955
|
-
return
|
|
7955
|
+
return React__default.createElement(
|
|
7956
7956
|
Pagination.Item,
|
|
7957
7957
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7958
7958
|
return changePage(page);
|
|
@@ -7960,13 +7960,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7960
7960
|
page
|
|
7961
7961
|
);
|
|
7962
7962
|
}),
|
|
7963
|
-
|
|
7963
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7964
7964
|
return renderNewPages('next');
|
|
7965
7965
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7966
|
-
|
|
7966
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7967
7967
|
return changePage('next');
|
|
7968
7968
|
}, disabled: currentPage === pageCount }),
|
|
7969
|
-
|
|
7969
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7970
7970
|
return changePage('last');
|
|
7971
7971
|
}, disabled: currentPage === pageCount })
|
|
7972
7972
|
);
|
|
@@ -8049,51 +8049,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8049
8049
|
}
|
|
8050
8050
|
};
|
|
8051
8051
|
|
|
8052
|
-
return
|
|
8053
|
-
|
|
8052
|
+
return React__default.createElement(
|
|
8053
|
+
React__default.Fragment,
|
|
8054
8054
|
null,
|
|
8055
|
-
quizzes[currentPage - 1] &&
|
|
8056
|
-
|
|
8055
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8056
|
+
React__default.Fragment,
|
|
8057
8057
|
null,
|
|
8058
|
-
|
|
8059
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8058
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8059
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8060
8060
|
'form',
|
|
8061
8061
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8062
8062
|
return e.preventDefault();
|
|
8063
8063
|
} },
|
|
8064
8064
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8065
|
-
return
|
|
8065
|
+
return React__default.createElement(
|
|
8066
8066
|
'div',
|
|
8067
8067
|
{ key: answer._key },
|
|
8068
|
-
|
|
8068
|
+
React__default.createElement(
|
|
8069
8069
|
'label',
|
|
8070
8070
|
{ className: 'pl-2' },
|
|
8071
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8071
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8072
8072
|
' ' + answer.answerText
|
|
8073
8073
|
)
|
|
8074
8074
|
);
|
|
8075
8075
|
})
|
|
8076
8076
|
)
|
|
8077
8077
|
),
|
|
8078
|
-
!showAnswer &&
|
|
8078
|
+
!showAnswer && React__default.createElement(
|
|
8079
8079
|
Button$1,
|
|
8080
8080
|
{ onClick: function onClick() {
|
|
8081
8081
|
return checkAnswers();
|
|
8082
8082
|
}, variant: 'info', block: true },
|
|
8083
8083
|
'Please click here for answer'
|
|
8084
8084
|
),
|
|
8085
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8086
|
-
|
|
8085
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8086
|
+
React__default.Fragment,
|
|
8087
8087
|
null,
|
|
8088
|
-
|
|
8088
|
+
React__default.createElement(
|
|
8089
8089
|
'h4',
|
|
8090
8090
|
null,
|
|
8091
8091
|
'Answer:'
|
|
8092
8092
|
),
|
|
8093
|
-
quizzes[currentPage - 1].answer &&
|
|
8093
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8094
8094
|
),
|
|
8095
|
-
|
|
8096
|
-
pageCount > 1 &&
|
|
8095
|
+
React__default.createElement('br', null),
|
|
8096
|
+
pageCount > 1 && React__default.createElement(
|
|
8097
8097
|
'div',
|
|
8098
8098
|
{ className: 'd-flex justify-content-center' },
|
|
8099
8099
|
renderPagination()
|
|
@@ -8104,10 +8104,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8104
8104
|
var Leads = function Leads(_ref) {
|
|
8105
8105
|
var url = _ref.url;
|
|
8106
8106
|
|
|
8107
|
-
return
|
|
8107
|
+
return React__default.createElement(
|
|
8108
8108
|
'div',
|
|
8109
8109
|
{ className: 'd-block text-center mb-3' },
|
|
8110
|
-
url &&
|
|
8110
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8111
8111
|
);
|
|
8112
8112
|
};
|
|
8113
8113
|
|
|
@@ -8155,42 +8155,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8155
8155
|
}
|
|
8156
8156
|
};
|
|
8157
8157
|
|
|
8158
|
-
return
|
|
8158
|
+
return React__default.createElement(
|
|
8159
8159
|
'div',
|
|
8160
8160
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8161
|
-
|
|
8161
|
+
React__default.createElement(
|
|
8162
8162
|
Carousel,
|
|
8163
8163
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8164
8164
|
slides && slides.map(function (slide) {
|
|
8165
8165
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8166
|
-
return
|
|
8166
|
+
return React__default.createElement(
|
|
8167
8167
|
Carousel.Item,
|
|
8168
8168
|
{ key: slide._key },
|
|
8169
|
-
|
|
8169
|
+
React__default.createElement(
|
|
8170
8170
|
'a',
|
|
8171
8171
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8172
|
-
|
|
8172
|
+
React__default.createElement(
|
|
8173
8173
|
LazyLoad,
|
|
8174
8174
|
null,
|
|
8175
|
-
|
|
8175
|
+
React__default.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8176
8176
|
)
|
|
8177
8177
|
),
|
|
8178
|
-
|
|
8178
|
+
React__default.createElement(
|
|
8179
8179
|
'div',
|
|
8180
8180
|
{ className: 'p-2' },
|
|
8181
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8182
8182
|
'h3',
|
|
8183
8183
|
{ style: { padding: '0px' } },
|
|
8184
8184
|
slide.slideshowImage.caption
|
|
8185
8185
|
),
|
|
8186
|
-
slide.description &&
|
|
8186
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8187
8187
|
)
|
|
8188
8188
|
);
|
|
8189
8189
|
}
|
|
8190
8190
|
return null;
|
|
8191
8191
|
})
|
|
8192
8192
|
),
|
|
8193
|
-
|
|
8193
|
+
React__default.createElement(
|
|
8194
8194
|
'style',
|
|
8195
8195
|
{ jsx: 'true' },
|
|
8196
8196
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8209,10 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8209
8209
|
sizes = _props$node.sizes,
|
|
8210
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8211
8211
|
|
|
8212
|
-
return
|
|
8212
|
+
return React__default.createElement(
|
|
8213
8213
|
'div',
|
|
8214
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8215
|
-
|
|
8215
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8216
8216
|
);
|
|
8217
8217
|
};
|
|
8218
8218
|
|
|
@@ -8223,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8223
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8224
8224
|
|
|
8225
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8226
|
-
return
|
|
8226
|
+
return React__default.createElement(
|
|
8227
8227
|
'section',
|
|
8228
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8229
|
-
Caption &&
|
|
8229
|
+
Caption && React__default.createElement(
|
|
8230
8230
|
'h4',
|
|
8231
8231
|
{ className: 'formstack-caption' },
|
|
8232
8232
|
Caption
|
|
8233
8233
|
),
|
|
8234
|
-
|
|
8234
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8235
8235
|
);
|
|
8236
8236
|
};
|
|
8237
8237
|
|
|
@@ -8251,29 +8251,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8251
8251
|
}
|
|
8252
8252
|
});
|
|
8253
8253
|
if (medias && medias.length > 0) {
|
|
8254
|
-
return
|
|
8254
|
+
return React__default.createElement(
|
|
8255
8255
|
'div',
|
|
8256
8256
|
{ className: 'multi-media-container' },
|
|
8257
|
-
|
|
8257
|
+
React__default.createElement(
|
|
8258
8258
|
Row$1,
|
|
8259
8259
|
{ noGutters: true },
|
|
8260
8260
|
medias.map(function (media) {
|
|
8261
|
-
return
|
|
8261
|
+
return React__default.createElement(
|
|
8262
8262
|
Col$1,
|
|
8263
8263
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8264
|
-
|
|
8264
|
+
React__default.createElement(
|
|
8265
8265
|
'a',
|
|
8266
8266
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8267
8267
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8268
|
-
|
|
8268
|
+
React__default.createElement(
|
|
8269
8269
|
'div',
|
|
8270
8270
|
{ className: 'multi-media-image-container' },
|
|
8271
|
-
imageBox &&
|
|
8271
|
+
imageBox && React__default.createElement(
|
|
8272
8272
|
LazyLoad,
|
|
8273
8273
|
{ once: true },
|
|
8274
|
-
|
|
8274
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8275
8275
|
),
|
|
8276
|
-
media.caption &&
|
|
8276
|
+
media.caption && React__default.createElement(
|
|
8277
8277
|
'span',
|
|
8278
8278
|
{ className: 'multi-media-caption' },
|
|
8279
8279
|
media.caption
|
|
@@ -8283,7 +8283,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8283
8283
|
);
|
|
8284
8284
|
})
|
|
8285
8285
|
),
|
|
8286
|
-
|
|
8286
|
+
React__default.createElement(
|
|
8287
8287
|
'style',
|
|
8288
8288
|
{ jsx: 'true' },
|
|
8289
8289
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8330,7 +8330,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8330
8330
|
}
|
|
8331
8331
|
};
|
|
8332
8332
|
|
|
8333
|
-
_this.wraperRef =
|
|
8333
|
+
_this.wraperRef = React__default.createRef();
|
|
8334
8334
|
_this.visible = false;
|
|
8335
8335
|
return _this;
|
|
8336
8336
|
}
|
|
@@ -8358,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8358
8358
|
_props$id = _props.id,
|
|
8359
8359
|
id = _props$id === undefined ? '' : _props$id;
|
|
8360
8360
|
|
|
8361
|
-
return
|
|
8361
|
+
return React__default.createElement(
|
|
8362
8362
|
'div',
|
|
8363
8363
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8364
8364
|
this.props.children
|
|
@@ -8367,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8367
8367
|
}]);
|
|
8368
8368
|
|
|
8369
8369
|
return InscreenSensor;
|
|
8370
|
-
}(
|
|
8370
|
+
}(React__default.Component);
|
|
8371
8371
|
|
|
8372
8372
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8373
8373
|
var nodes = _ref.nodes,
|
|
@@ -8480,33 +8480,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8480
8480
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8481
8481
|
var showReading = show ? 'showReading' : '';
|
|
8482
8482
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8483
|
-
return
|
|
8483
|
+
return React__default.createElement(
|
|
8484
8484
|
'div',
|
|
8485
8485
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8486
|
-
|
|
8486
|
+
React__default.createElement(
|
|
8487
8487
|
'a',
|
|
8488
8488
|
{ onClick: function onClick(e) {
|
|
8489
8489
|
return articleCardClickHandler(e);
|
|
8490
8490
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8491
|
-
|
|
8491
|
+
React__default.createElement(
|
|
8492
8492
|
'div',
|
|
8493
8493
|
{ className: 'prevNext-thumbnail' },
|
|
8494
|
-
|
|
8495
|
-
|
|
8494
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8495
|
+
React__default.createElement(
|
|
8496
8496
|
'div',
|
|
8497
8497
|
{ className: 'prevNext-reading ' + showReading },
|
|
8498
8498
|
articleLabel
|
|
8499
8499
|
)
|
|
8500
8500
|
),
|
|
8501
|
-
|
|
8501
|
+
React__default.createElement(
|
|
8502
8502
|
'div',
|
|
8503
8503
|
{ className: 'prevNext-summary' },
|
|
8504
|
-
|
|
8504
|
+
React__default.createElement(
|
|
8505
8505
|
'div',
|
|
8506
8506
|
{ className: 'prevNext-publishDate' },
|
|
8507
8507
|
moment(article.published).format('LL')
|
|
8508
8508
|
),
|
|
8509
|
-
|
|
8509
|
+
React__default.createElement(
|
|
8510
8510
|
'h2',
|
|
8511
8511
|
{ className: 'prevNext-title' },
|
|
8512
8512
|
article.title
|
|
@@ -8555,7 +8555,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8555
8555
|
|
|
8556
8556
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8557
8557
|
if (biography) {
|
|
8558
|
-
return
|
|
8558
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8559
8559
|
}
|
|
8560
8560
|
};
|
|
8561
8561
|
|
|
@@ -8713,38 +8713,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8713
8713
|
setSensorVisible(false);
|
|
8714
8714
|
};
|
|
8715
8715
|
|
|
8716
|
-
return
|
|
8717
|
-
|
|
8716
|
+
return React__default.createElement(
|
|
8717
|
+
React__default.Fragment,
|
|
8718
8718
|
null,
|
|
8719
|
-
|
|
8719
|
+
React__default.createElement(
|
|
8720
8720
|
'div',
|
|
8721
8721
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8722
|
-
|
|
8722
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8723
8723
|
return handleArrowClick();
|
|
8724
8724
|
} })
|
|
8725
8725
|
),
|
|
8726
|
-
|
|
8727
|
-
|
|
8726
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8727
|
+
React__default.createElement(
|
|
8728
8728
|
'div',
|
|
8729
8729
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8730
|
-
|
|
8730
|
+
React__default.createElement(
|
|
8731
8731
|
'h5',
|
|
8732
8732
|
{ className: 'objective-title' },
|
|
8733
8733
|
nodes.seriesTitle
|
|
8734
8734
|
),
|
|
8735
|
-
|
|
8735
|
+
React__default.createElement(
|
|
8736
8736
|
'div',
|
|
8737
8737
|
{ className: 'prevNextWrapper' },
|
|
8738
8738
|
PrevNextCards(false, -1)
|
|
8739
8739
|
)
|
|
8740
8740
|
),
|
|
8741
|
-
|
|
8742
|
-
|
|
8741
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8742
|
+
React__default.createElement(
|
|
8743
8743
|
'div',
|
|
8744
8744
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8745
8745
|
main_43 && Ads.map(function (ad, index) {
|
|
8746
8746
|
if (index === 0) {
|
|
8747
|
-
return
|
|
8747
|
+
return React__default.createElement(
|
|
8748
8748
|
'div',
|
|
8749
8749
|
{
|
|
8750
8750
|
key: 'addid-1',
|
|
@@ -8764,14 +8764,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8764
8764
|
}
|
|
8765
8765
|
})
|
|
8766
8766
|
),
|
|
8767
|
-
|
|
8767
|
+
React__default.createElement(
|
|
8768
8768
|
'div',
|
|
8769
8769
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8770
8770
|
Articles.map(function (article, index) {
|
|
8771
|
-
return
|
|
8771
|
+
return React__default.createElement(
|
|
8772
8772
|
'div',
|
|
8773
8773
|
{ key: article.title },
|
|
8774
|
-
|
|
8774
|
+
React__default.createElement(
|
|
8775
8775
|
InscreenSensor,
|
|
8776
8776
|
{
|
|
8777
8777
|
visible: sensorVisible,
|
|
@@ -8789,84 +8789,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8789
8789
|
}
|
|
8790
8790
|
}
|
|
8791
8791
|
} },
|
|
8792
|
-
|
|
8792
|
+
React__default.createElement(
|
|
8793
8793
|
Head,
|
|
8794
8794
|
null,
|
|
8795
|
-
currentTitle !== null &&
|
|
8795
|
+
currentTitle !== null && React__default.createElement(
|
|
8796
8796
|
'title',
|
|
8797
8797
|
{ key: 'title' },
|
|
8798
8798
|
currentTitle
|
|
8799
8799
|
),
|
|
8800
|
-
currentSummary !== null &&
|
|
8801
|
-
currentURL !== null &&
|
|
8802
|
-
currentTitle !== null &&
|
|
8803
|
-
currentThumbnail !== null &&
|
|
8804
|
-
currentSummary !== null &&
|
|
8805
|
-
currentTitle !== null &&
|
|
8806
|
-
currentThumbnail !== null &&
|
|
8807
|
-
currentSummary !== null &&
|
|
8800
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8801
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8802
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8803
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8804
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8805
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8806
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8807
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8808
8808
|
),
|
|
8809
|
-
|
|
8809
|
+
React__default.createElement(
|
|
8810
8810
|
'article',
|
|
8811
8811
|
{ className: 'article-wrapper' },
|
|
8812
|
-
|
|
8812
|
+
React__default.createElement(
|
|
8813
8813
|
'div',
|
|
8814
8814
|
{ className: 'article-publishDate' },
|
|
8815
8815
|
moment(article.published).format('LL')
|
|
8816
8816
|
),
|
|
8817
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8818
8818
|
'div',
|
|
8819
8819
|
{ className: 'author-details-wrapper' },
|
|
8820
8820
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8821
|
-
return
|
|
8821
|
+
return React__default.createElement(
|
|
8822
8822
|
'span',
|
|
8823
8823
|
{ key: index },
|
|
8824
8824
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8825
8825
|
);
|
|
8826
8826
|
})
|
|
8827
8827
|
),
|
|
8828
|
-
|
|
8828
|
+
React__default.createElement(
|
|
8829
8829
|
'h2',
|
|
8830
8830
|
{ className: 'article-title' },
|
|
8831
8831
|
article.title
|
|
8832
8832
|
),
|
|
8833
|
-
|
|
8833
|
+
React__default.createElement(
|
|
8834
8834
|
'div',
|
|
8835
8835
|
{ className: 'mt-2 mb-2' },
|
|
8836
|
-
|
|
8836
|
+
React__default.createElement(BlockContent, _extends({
|
|
8837
8837
|
serializers: getSerializers,
|
|
8838
8838
|
videoAccountIDs: accountIDs,
|
|
8839
8839
|
blocks: article.text,
|
|
8840
8840
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8841
8841
|
}, client.config())),
|
|
8842
|
-
|
|
8842
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8843
8843
|
),
|
|
8844
|
-
Articles.length > 1 &&
|
|
8845
|
-
|
|
8844
|
+
Articles.length > 1 && React__default.createElement(
|
|
8845
|
+
React__default.Fragment,
|
|
8846
8846
|
null,
|
|
8847
|
-
|
|
8847
|
+
React__default.createElement(
|
|
8848
8848
|
'div',
|
|
8849
8849
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8850
|
-
|
|
8850
|
+
React__default.createElement(
|
|
8851
8851
|
'h5',
|
|
8852
8852
|
{ className: 'objective-title' },
|
|
8853
8853
|
nodes.seriesTitle
|
|
8854
8854
|
),
|
|
8855
|
-
|
|
8855
|
+
React__default.createElement(
|
|
8856
8856
|
'div',
|
|
8857
8857
|
{ className: 'prevNextWrapper' },
|
|
8858
8858
|
PrevNextCards(true, index)
|
|
8859
8859
|
)
|
|
8860
8860
|
),
|
|
8861
|
-
|
|
8861
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8862
8862
|
)
|
|
8863
8863
|
),
|
|
8864
|
-
|
|
8864
|
+
React__default.createElement(
|
|
8865
8865
|
'div',
|
|
8866
8866
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8867
8867
|
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8868
8868
|
if (innerIndex === 0) {
|
|
8869
|
-
return
|
|
8869
|
+
return React__default.createElement(
|
|
8870
8870
|
'div',
|
|
8871
8871
|
{
|
|
8872
8872
|
key: 'addid-' + (index + 2),
|
|
@@ -8889,7 +8889,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8889
8889
|
)
|
|
8890
8890
|
);
|
|
8891
8891
|
}),
|
|
8892
|
-
|
|
8892
|
+
React__default.createElement(
|
|
8893
8893
|
'style',
|
|
8894
8894
|
{ jsx: 'true' },
|
|
8895
8895
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8919,11 +8919,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8919
8919
|
};
|
|
8920
8920
|
}, [handleClickOutside]);
|
|
8921
8921
|
|
|
8922
|
-
return
|
|
8922
|
+
return React__default.createElement(
|
|
8923
8923
|
'div',
|
|
8924
8924
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8925
|
-
|
|
8926
|
-
|
|
8925
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8926
|
+
React__default.createElement(
|
|
8927
8927
|
'style',
|
|
8928
8928
|
{ jsx: 'true' },
|
|
8929
8929
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8947,7 +8947,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8947
8947
|
}
|
|
8948
8948
|
};
|
|
8949
8949
|
|
|
8950
|
-
var FigureImage =
|
|
8950
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8951
8951
|
var node = _ref2.node,
|
|
8952
8952
|
client = _ref2.client,
|
|
8953
8953
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8955,13 +8955,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8955
8955
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8956
8956
|
|
|
8957
8957
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8958
|
-
return
|
|
8958
|
+
return React__default.createElement(
|
|
8959
8959
|
'picture',
|
|
8960
8960
|
null,
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8961
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8962
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8963
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8964
|
+
React__default.createElement('img', _extends({
|
|
8965
8965
|
style: figureImageStyle,
|
|
8966
8966
|
className: 'figure-image',
|
|
8967
8967
|
src: urlFor$1(node, client).url(),
|
|
@@ -9049,13 +9049,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9049
9049
|
|
|
9050
9050
|
var FigureCaption = useCallback(function () {
|
|
9051
9051
|
if (imgcaption && imgcaption.length > 0) {
|
|
9052
|
-
return
|
|
9052
|
+
return React__default.createElement(
|
|
9053
9053
|
'div',
|
|
9054
9054
|
{ className: 'figure-caption' },
|
|
9055
|
-
|
|
9055
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9056
9056
|
);
|
|
9057
9057
|
} else if (caption) {
|
|
9058
|
-
return
|
|
9058
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9059
9059
|
} else return null;
|
|
9060
9060
|
}, [caption, imgcaption]);
|
|
9061
9061
|
|
|
@@ -9072,24 +9072,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9072
9072
|
setShowLightbox(true);
|
|
9073
9073
|
}, [node, client]);
|
|
9074
9074
|
|
|
9075
|
-
return
|
|
9076
|
-
|
|
9075
|
+
return React__default.createElement(
|
|
9076
|
+
React__default.Fragment,
|
|
9077
9077
|
null,
|
|
9078
|
-
|
|
9078
|
+
React__default.createElement(
|
|
9079
9079
|
Figure$2,
|
|
9080
9080
|
{ className: '' + class_name, style: figureStyle },
|
|
9081
|
-
link ?
|
|
9081
|
+
link ? React__default.createElement(
|
|
9082
9082
|
'a',
|
|
9083
9083
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
) :
|
|
9087
|
-
|
|
9084
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9085
|
+
React__default.createElement(FigureCaption, null)
|
|
9086
|
+
) : React__default.createElement(
|
|
9087
|
+
React__default.Fragment,
|
|
9088
9088
|
null,
|
|
9089
|
-
|
|
9090
|
-
|
|
9089
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9090
|
+
React__default.createElement(FigureCaption, null)
|
|
9091
9091
|
),
|
|
9092
|
-
|
|
9092
|
+
React__default.createElement(LightBox, {
|
|
9093
9093
|
showLightbox: showLightbox,
|
|
9094
9094
|
lightboxImgSrc: lightboxImgSrc,
|
|
9095
9095
|
closeLightbox: function closeLightbox() {
|
|
@@ -9098,7 +9098,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9098
9098
|
}
|
|
9099
9099
|
})
|
|
9100
9100
|
),
|
|
9101
|
-
|
|
9101
|
+
React__default.createElement(
|
|
9102
9102
|
'style',
|
|
9103
9103
|
{ jsx: 'true' },
|
|
9104
9104
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -9106,7 +9106,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9106
9106
|
);
|
|
9107
9107
|
};
|
|
9108
9108
|
|
|
9109
|
-
var Figure =
|
|
9109
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9110
9110
|
|
|
9111
9111
|
var urlFor = function urlFor(source, client) {
|
|
9112
9112
|
var builder = imageUrlBuilder(client);
|
|
@@ -9152,47 +9152,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9152
9152
|
imgcaption = _ref.imgcaption;
|
|
9153
9153
|
|
|
9154
9154
|
if (imgcaption && imgcaption.length > 0) {
|
|
9155
|
-
return
|
|
9155
|
+
return React__default.createElement(
|
|
9156
9156
|
'div',
|
|
9157
9157
|
{ className: 'multi-figure-caption' },
|
|
9158
|
-
|
|
9158
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9159
9159
|
);
|
|
9160
9160
|
} else if (caption) {
|
|
9161
|
-
return
|
|
9161
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9162
9162
|
} else return null;
|
|
9163
9163
|
};
|
|
9164
9164
|
|
|
9165
9165
|
if (images && images.length > 0) {
|
|
9166
|
-
return
|
|
9166
|
+
return React__default.createElement(
|
|
9167
9167
|
'div',
|
|
9168
9168
|
{ className: 'multi-figure-container' },
|
|
9169
|
-
|
|
9169
|
+
React__default.createElement(
|
|
9170
9170
|
Row$1,
|
|
9171
9171
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9172
9172
|
images.map(function (image, index) {
|
|
9173
|
-
return
|
|
9173
|
+
return React__default.createElement(
|
|
9174
9174
|
Col$1,
|
|
9175
9175
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9176
|
-
image.link ?
|
|
9176
|
+
image.link ? React__default.createElement(
|
|
9177
9177
|
'a',
|
|
9178
9178
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9179
|
-
|
|
9179
|
+
React__default.createElement(
|
|
9180
9180
|
'div',
|
|
9181
9181
|
{ className: 'multi-figure-image-container' },
|
|
9182
|
-
|
|
9182
|
+
React__default.createElement(
|
|
9183
9183
|
LazyLoad,
|
|
9184
9184
|
{ once: true },
|
|
9185
|
-
|
|
9185
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9186
9186
|
),
|
|
9187
|
-
|
|
9187
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9188
9188
|
)
|
|
9189
|
-
) :
|
|
9189
|
+
) : React__default.createElement(
|
|
9190
9190
|
'div',
|
|
9191
9191
|
{ className: 'multi-figure-image-container' },
|
|
9192
|
-
|
|
9192
|
+
React__default.createElement(
|
|
9193
9193
|
LazyLoad,
|
|
9194
9194
|
{ once: true },
|
|
9195
|
-
|
|
9195
|
+
React__default.createElement('img', {
|
|
9196
9196
|
'images-count': images.length,
|
|
9197
9197
|
className: 'multi-figure-image',
|
|
9198
9198
|
src: urlFor(image.asset, client).url(),
|
|
@@ -9203,17 +9203,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9203
9203
|
}
|
|
9204
9204
|
})
|
|
9205
9205
|
),
|
|
9206
|
-
|
|
9206
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9207
9207
|
)
|
|
9208
9208
|
);
|
|
9209
9209
|
})
|
|
9210
9210
|
),
|
|
9211
|
-
|
|
9211
|
+
React__default.createElement(
|
|
9212
9212
|
'div',
|
|
9213
9213
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9214
|
-
|
|
9214
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9215
9215
|
),
|
|
9216
|
-
|
|
9216
|
+
React__default.createElement(
|
|
9217
9217
|
'style',
|
|
9218
9218
|
{ jsx: 'true' },
|
|
9219
9219
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9235,10 +9235,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9235
9235
|
|
|
9236
9236
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9237
9237
|
|
|
9238
|
-
return
|
|
9238
|
+
return React__default.createElement(
|
|
9239
9239
|
'div',
|
|
9240
9240
|
{ id: elementId },
|
|
9241
|
-
|
|
9241
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9242
9242
|
);
|
|
9243
9243
|
};
|
|
9244
9244
|
|
|
@@ -9287,7 +9287,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9287
9287
|
|
|
9288
9288
|
|
|
9289
9289
|
|
|
9290
|
-
var _react2 = _interopRequireDefault(
|
|
9290
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9291
9291
|
|
|
9292
9292
|
|
|
9293
9293
|
|
|
@@ -9446,7 +9446,7 @@ var ScriptTag = function (_Component) {
|
|
|
9446
9446
|
};
|
|
9447
9447
|
|
|
9448
9448
|
return ScriptTag;
|
|
9449
|
-
}(
|
|
9449
|
+
}(React__default.Component);
|
|
9450
9450
|
|
|
9451
9451
|
ScriptTag.propTypes = {
|
|
9452
9452
|
/**
|
|
@@ -9525,11 +9525,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9525
9525
|
}, []);
|
|
9526
9526
|
|
|
9527
9527
|
if (iframeSrc) {
|
|
9528
|
-
return
|
|
9528
|
+
return React__default.createElement(
|
|
9529
9529
|
'section',
|
|
9530
9530
|
{ className: 'form-assembly' },
|
|
9531
|
-
|
|
9532
|
-
|
|
9531
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9532
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9533
9533
|
);
|
|
9534
9534
|
}
|
|
9535
9535
|
|
|
@@ -9566,27 +9566,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9566
9566
|
return window.removeEventListener('resize', handleResize);
|
|
9567
9567
|
};
|
|
9568
9568
|
}, []);
|
|
9569
|
-
return
|
|
9569
|
+
return React__default.createElement(
|
|
9570
9570
|
'div',
|
|
9571
9571
|
{ className: 'blockTableHolder', ref: holder },
|
|
9572
|
-
|
|
9572
|
+
React__default.createElement(
|
|
9573
9573
|
'div',
|
|
9574
9574
|
{ className: 'blockTable' },
|
|
9575
9575
|
rows && rows.map(function (row) {
|
|
9576
|
-
return
|
|
9576
|
+
return React__default.createElement(
|
|
9577
9577
|
'div',
|
|
9578
9578
|
{ className: 'blockTableRow' },
|
|
9579
9579
|
row.cells && row.cells.map(function (cell) {
|
|
9580
|
-
return
|
|
9580
|
+
return React__default.createElement(
|
|
9581
9581
|
'div',
|
|
9582
9582
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9583
|
-
|
|
9583
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9584
9584
|
);
|
|
9585
9585
|
})
|
|
9586
9586
|
);
|
|
9587
9587
|
})
|
|
9588
9588
|
),
|
|
9589
|
-
|
|
9589
|
+
React__default.createElement(
|
|
9590
9590
|
'style',
|
|
9591
9591
|
{ jsx: true },
|
|
9592
9592
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9665,12 +9665,12 @@ var getSerializers = function getSerializers() {
|
|
|
9665
9665
|
var node = _ref.node;
|
|
9666
9666
|
var url = node.url;
|
|
9667
9667
|
|
|
9668
|
-
return
|
|
9668
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9669
9669
|
},
|
|
9670
9670
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9671
9671
|
var node = _ref2.node;
|
|
9672
9672
|
|
|
9673
|
-
return
|
|
9673
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9674
9674
|
nodes: node,
|
|
9675
9675
|
article: article,
|
|
9676
9676
|
meta: meta,
|
|
@@ -9684,7 +9684,7 @@ var getSerializers = function getSerializers() {
|
|
|
9684
9684
|
articleSeries: function articleSeries(_ref3) {
|
|
9685
9685
|
var node = _ref3.node;
|
|
9686
9686
|
|
|
9687
|
-
return
|
|
9687
|
+
return React__default.createElement(ArticleSeries, {
|
|
9688
9688
|
nodes: node,
|
|
9689
9689
|
accountIDs: videoAccountIDs || {},
|
|
9690
9690
|
pageview: pageview,
|
|
@@ -9697,61 +9697,61 @@ var getSerializers = function getSerializers() {
|
|
|
9697
9697
|
figure: function figure(_ref4) {
|
|
9698
9698
|
var node = _ref4.node;
|
|
9699
9699
|
|
|
9700
|
-
return
|
|
9700
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9701
9701
|
},
|
|
9702
9702
|
multifigure: function multifigure(_ref5) {
|
|
9703
9703
|
var node = _ref5.node;
|
|
9704
9704
|
|
|
9705
|
-
return
|
|
9705
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9706
9706
|
},
|
|
9707
9707
|
slideshow: function slideshow(_ref6) {
|
|
9708
9708
|
var node = _ref6.node;
|
|
9709
9709
|
var slides = node.slides;
|
|
9710
9710
|
|
|
9711
|
-
return
|
|
9711
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9712
9712
|
},
|
|
9713
9713
|
sidebar: function sidebar(_ref7) {
|
|
9714
9714
|
var node = _ref7.node;
|
|
9715
9715
|
var caption = node.caption,
|
|
9716
9716
|
content = node.content;
|
|
9717
9717
|
|
|
9718
|
-
return
|
|
9718
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9719
9719
|
},
|
|
9720
9720
|
datatable: function datatable(_ref8) {
|
|
9721
9721
|
var node = _ref8.node;
|
|
9722
9722
|
var table = node.table;
|
|
9723
9723
|
|
|
9724
|
-
return
|
|
9724
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9725
9725
|
},
|
|
9726
9726
|
media: function media(_ref9) {
|
|
9727
9727
|
var node = _ref9.node;
|
|
9728
9728
|
|
|
9729
|
-
return
|
|
9729
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9730
9730
|
},
|
|
9731
9731
|
iframe: function iframe(_ref10) {
|
|
9732
9732
|
var node = _ref10.node;
|
|
9733
9733
|
|
|
9734
|
-
return
|
|
9734
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9735
9735
|
},
|
|
9736
9736
|
video: function video(_ref11) {
|
|
9737
9737
|
var node = _ref11.node;
|
|
9738
9738
|
|
|
9739
|
-
return
|
|
9739
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9740
9740
|
},
|
|
9741
9741
|
audio: function audio(_ref12) {
|
|
9742
9742
|
var node = _ref12.node;
|
|
9743
9743
|
|
|
9744
|
-
return
|
|
9744
|
+
return React__default.createElement(Audio, { node: node });
|
|
9745
9745
|
},
|
|
9746
9746
|
poll: function poll(_ref13) {
|
|
9747
9747
|
var node = _ref13.node;
|
|
9748
9748
|
|
|
9749
|
-
return
|
|
9749
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9750
9750
|
},
|
|
9751
9751
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9752
9752
|
var node = _ref14.node;
|
|
9753
9753
|
|
|
9754
|
-
return
|
|
9754
|
+
return React__default.createElement(Poll, {
|
|
9755
9755
|
node: node,
|
|
9756
9756
|
client: client,
|
|
9757
9757
|
pageview: pageview,
|
|
@@ -9765,35 +9765,35 @@ var getSerializers = function getSerializers() {
|
|
|
9765
9765
|
var node = _ref15.node;
|
|
9766
9766
|
var quizzes = node.quizzes;
|
|
9767
9767
|
|
|
9768
|
-
return
|
|
9768
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9769
9769
|
},
|
|
9770
9770
|
leads: function leads(_ref16) {
|
|
9771
9771
|
var node = _ref16.node;
|
|
9772
9772
|
var leadID = node.leadID;
|
|
9773
9773
|
|
|
9774
9774
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9775
|
-
return
|
|
9775
|
+
return React__default.createElement(Leads, { url: url });
|
|
9776
9776
|
},
|
|
9777
9777
|
slideshows: function slideshows(_ref17) {
|
|
9778
9778
|
var node = _ref17.node;
|
|
9779
9779
|
|
|
9780
|
-
return
|
|
9780
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9781
9781
|
},
|
|
9782
9782
|
nativeAd: function nativeAd(_ref18) {
|
|
9783
9783
|
var node = _ref18.node;
|
|
9784
9784
|
|
|
9785
|
-
return
|
|
9785
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9786
9786
|
},
|
|
9787
9787
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9788
9788
|
var node = _ref19.node;
|
|
9789
9789
|
|
|
9790
|
-
return
|
|
9790
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9791
9791
|
},
|
|
9792
9792
|
hrtag: function hrtag() {
|
|
9793
|
-
return
|
|
9793
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9794
9794
|
},
|
|
9795
9795
|
brtag: function brtag() {
|
|
9796
|
-
return
|
|
9796
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9797
9797
|
},
|
|
9798
9798
|
formstack: function formstack(_ref20) {
|
|
9799
9799
|
var node = _ref20.node;
|
|
@@ -9801,29 +9801,29 @@ var getSerializers = function getSerializers() {
|
|
|
9801
9801
|
Caption = node.Caption,
|
|
9802
9802
|
needSegmentSupport = node.needSegmentSupport;
|
|
9803
9803
|
|
|
9804
|
-
return
|
|
9804
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9805
9805
|
},
|
|
9806
9806
|
formassembly: FormAssembly,
|
|
9807
9807
|
multimedia: function multimedia(_ref21) {
|
|
9808
9808
|
var node = _ref21.node;
|
|
9809
9809
|
|
|
9810
|
-
return
|
|
9810
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9811
9811
|
},
|
|
9812
9812
|
blockTable: function blockTable(_ref22) {
|
|
9813
9813
|
var node = _ref22.node;
|
|
9814
|
-
return
|
|
9814
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9815
9815
|
}
|
|
9816
9816
|
},
|
|
9817
9817
|
marks: {
|
|
9818
9818
|
superscript: function superscript(props) {
|
|
9819
|
-
return
|
|
9819
|
+
return React__default.createElement(
|
|
9820
9820
|
'sup',
|
|
9821
9821
|
null,
|
|
9822
9822
|
props.children
|
|
9823
9823
|
);
|
|
9824
9824
|
},
|
|
9825
9825
|
subscript: function subscript(props) {
|
|
9826
|
-
return
|
|
9826
|
+
return React__default.createElement(
|
|
9827
9827
|
'sub',
|
|
9828
9828
|
null,
|
|
9829
9829
|
props.children
|
|
@@ -9839,7 +9839,7 @@ var getSerializers = function getSerializers() {
|
|
|
9839
9839
|
if (href && href.charAt(0) === '#') {
|
|
9840
9840
|
var elementId = href.slice(1);
|
|
9841
9841
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9842
|
-
return
|
|
9842
|
+
return React__default.createElement(
|
|
9843
9843
|
'a',
|
|
9844
9844
|
{ onClick: function onClick() {
|
|
9845
9845
|
return ScrollToElement(elementId);
|
|
@@ -9849,7 +9849,7 @@ var getSerializers = function getSerializers() {
|
|
|
9849
9849
|
}
|
|
9850
9850
|
|
|
9851
9851
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9852
|
-
return
|
|
9852
|
+
return React__default.createElement(
|
|
9853
9853
|
'a',
|
|
9854
9854
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9855
9855
|
children
|
|
@@ -9857,7 +9857,7 @@ var getSerializers = function getSerializers() {
|
|
|
9857
9857
|
},
|
|
9858
9858
|
alignleft: function alignleft(_ref23) {
|
|
9859
9859
|
var children = _ref23.children;
|
|
9860
|
-
return
|
|
9860
|
+
return React__default.createElement(
|
|
9861
9861
|
'div',
|
|
9862
9862
|
{ style: { textAlign: 'left' } },
|
|
9863
9863
|
children
|
|
@@ -9865,7 +9865,7 @@ var getSerializers = function getSerializers() {
|
|
|
9865
9865
|
},
|
|
9866
9866
|
alignright: function alignright(_ref24) {
|
|
9867
9867
|
var children = _ref24.children;
|
|
9868
|
-
return
|
|
9868
|
+
return React__default.createElement(
|
|
9869
9869
|
'div',
|
|
9870
9870
|
{ style: { textAlign: 'right' } },
|
|
9871
9871
|
children
|
|
@@ -9873,7 +9873,7 @@ var getSerializers = function getSerializers() {
|
|
|
9873
9873
|
},
|
|
9874
9874
|
aligncenter: function aligncenter(_ref25) {
|
|
9875
9875
|
var children = _ref25.children;
|
|
9876
|
-
return
|
|
9876
|
+
return React__default.createElement(
|
|
9877
9877
|
'div',
|
|
9878
9878
|
{ style: { textAlign: 'center' } },
|
|
9879
9879
|
children
|
|
@@ -9881,7 +9881,7 @@ var getSerializers = function getSerializers() {
|
|
|
9881
9881
|
},
|
|
9882
9882
|
alignjustify: function alignjustify(_ref26) {
|
|
9883
9883
|
var children = _ref26.children;
|
|
9884
|
-
return
|
|
9884
|
+
return React__default.createElement(
|
|
9885
9885
|
'div',
|
|
9886
9886
|
{ style: { textAlign: 'justify' } },
|
|
9887
9887
|
children
|
|
@@ -9891,7 +9891,7 @@ var getSerializers = function getSerializers() {
|
|
|
9891
9891
|
var children = props.children,
|
|
9892
9892
|
color = props.mark.color;
|
|
9893
9893
|
|
|
9894
|
-
return
|
|
9894
|
+
return React__default.createElement(
|
|
9895
9895
|
'span',
|
|
9896
9896
|
{ style: { color: color ? color.hex : null } },
|
|
9897
9897
|
children
|