@mjhls/mjh-framework 1.0.993 → 1.0.994-CypressV2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +6 -5
- package/dist/cjs/AD300x250x600.js +6 -5
- package/dist/cjs/AD728x90.js +7 -6
- package/dist/cjs/ADFloatingFooter.js +9 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +9 -8
- package/dist/cjs/{ADInfeed-ef933a08.js → ADInfeed-e87afe8a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +9 -8
- package/dist/cjs/ADSponsoredResources.js +9 -8
- package/dist/cjs/ADWebcast.js +9 -8
- package/dist/cjs/ADWelcome.js +13 -12
- package/dist/cjs/{ADlgInfeed-0e931f24.js → ADlgInfeed-b5a3d436.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +10 -9
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlgoliaSearch.js +904 -1451
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +15 -14
- package/dist/cjs/ArticleSeriesLandingPage.js +12 -11
- package/dist/cjs/ArticleSeriesListing.js +30 -29
- package/dist/cjs/Auth.js +85 -114
- package/dist/cjs/AuthWrapper.js +43 -113
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +62 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +28 -27
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +50 -49
- package/dist/cjs/CypressTesting.js +54 -0
- package/dist/cjs/DeckContent.js +59 -58
- package/dist/cjs/DeckQueue.js +58 -57
- package/dist/cjs/DeckQueuePaginated.js +47 -46
- package/dist/cjs/{Dfp-67646058.js → Dfp-9be904d5.js} +18 -17
- package/dist/cjs/EventsDeck.js +90 -90
- package/dist/cjs/ExternalResources.js +35 -34
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +135 -134
- package/dist/cjs/GridContentPaginated.js +122 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +121 -121
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +29 -28
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-6c00b878.js} +172 -212
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +20 -19
- package/dist/cjs/LeftNav.js +18 -17
- package/dist/cjs/MasterDeck.js +40 -39
- package/dist/cjs/MasterDeckPaginated.js +30 -29
- package/dist/cjs/MediaSeriesCard-2e5cd247.js +81 -0
- package/dist/cjs/MediaSeriesLanding.js +51 -49
- package/dist/cjs/MediaSeriesLandingPaginated.js +49 -47
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-4799de4b.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-6359861a.js → Pagination-2a3d0103.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +51 -49
- package/dist/cjs/PartnerDetailListingPaginated.js +71 -47
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +235 -0
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +14 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-5ccf9b13.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +246 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +223 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +19 -18
- package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-594b19eb.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-d2ab3d62.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +12 -11
- package/dist/cjs/TemplateNormal.js +28 -27
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{MediaSeriesCard-2645b00a.js → Tooltip-f075b7ef.js} +621 -777
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +29 -28
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +12 -11
- package/dist/cjs/VideoSeriesListing.js +47 -46
- package/dist/cjs/View.js +342 -322
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-a195642e.js} +2 -2
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +7 -6
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
- package/dist/cjs/{index-669d70bd.js → index-f95a3c0f.js} +500 -487
- package/dist/cjs/{index-7435b964.js → index-fc2f1ca2.js} +6 -471
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-1461604c.js} +14 -14
- package/dist/cjs/index.js +105 -102
- package/dist/cjs/{main-6054981e.js → main-f1c77adb.js} +22 -17
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -2
- package/dist/esm/AD300x250x600.js +3 -2
- package/dist/esm/AD728x90.js +3 -2
- package/dist/esm/ADFloatingFooter.js +3 -2
- package/dist/esm/ADGutter.js +3 -2
- package/dist/esm/ADSkyscraper.js +3 -2
- package/dist/esm/ADSponsoredResources.js +3 -2
- package/dist/esm/ADWebcast.js +3 -2
- package/dist/esm/ADWelcome.js +3 -2
- package/dist/esm/AdSlot.js +3 -2
- package/dist/esm/AdSlotsProvider.js +3 -2
- package/dist/esm/AlgoliaSearch.js +518 -1065
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -3
- package/dist/esm/ArticleSeriesLandingPage.js +5 -4
- package/dist/esm/ArticleSeriesListing.js +3 -2
- package/dist/esm/Auth.js +11 -40
- package/dist/esm/AuthWrapper.js +16 -86
- package/dist/esm/CMEDeck.js +3 -2
- package/dist/esm/Column3.js +3 -2
- package/dist/esm/ContentCardPaginated.js +5 -4
- package/dist/esm/CypressTesting.js +48 -0
- package/dist/esm/DeckContent.js +4 -3
- package/dist/esm/DeckQueue.js +3 -2
- package/dist/esm/DeckQueuePaginated.js +4 -3
- package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/ExternalResources.js +5 -4
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +5 -4
- package/dist/esm/GridContentPaginated.js +6 -5
- package/dist/esm/HamMagazine.js +20 -20
- package/dist/esm/HorizontalArticleListing.js +4 -3
- package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-f84174cb.js} +117 -157
- package/dist/esm/IssueLanding.js +6 -5
- package/dist/esm/LeftNav.js +3 -2
- package/dist/esm/MasterDeck.js +5 -4
- package/dist/esm/MasterDeckPaginated.js +6 -5
- package/dist/esm/MediaSeriesCard-afb517a5.js +75 -0
- package/dist/esm/MediaSeriesLanding.js +14 -12
- package/dist/esm/MediaSeriesLandingPaginated.js +14 -12
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +8 -6
- package/dist/esm/PartnerDetailListingPaginated.js +38 -14
- package/dist/esm/PodcastsLanding.js +228 -0
- package/dist/esm/PubSection.js +5 -4
- package/dist/esm/QueueDeckExpanded.js +5 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +6 -5
- package/dist/esm/SeriesListingDeck.js +4 -3
- package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-f771e20d.js} +1 -1
- package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-165b4ae7.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +4 -3
- package/dist/esm/TemplateNormal.js +4 -3
- package/dist/esm/{MediaSeriesCard-2a9ff7f3.js → Tooltip-95655b44.js} +68 -223
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -3
- package/dist/esm/VideoSeriesLandingPage.js +5 -4
- package/dist/esm/VideoSeriesListing.js +3 -2
- package/dist/esm/View.js +128 -108
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +4 -3
- package/dist/esm/{index-4d0371dc.js → index-04817712.js} +22 -9
- package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
- package/dist/esm/index.js +13 -10
- package/dist/esm/{main-9f6806ea.js → main-1894c974.js} +9 -4
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/package.json +3 -3
- package/dist/cjs/index-b95410f0.js +0 -54
- package/dist/esm/index-174b5baf.js +0 -52
- /package/dist/esm/{ADInfeed-f946441a.js → ADInfeed-5765a73a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-012e6f16.js → ADlgInfeed-5e36f317.js} +0 -0
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var reactBootstrap = require('react-bootstrap');
|
|
6
6
|
var urlFor = require('./urlFor.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-fc2f1ca2.js');
|
|
8
8
|
var Router = require('next/router');
|
|
9
9
|
var index$1 = require('./index-187c967e.js');
|
|
10
10
|
var PropTypes = require('prop-types');
|
|
@@ -12,14 +12,14 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
|
12
12
|
var util = require('./util-93a37fd0.js');
|
|
13
13
|
require('./Beam.js');
|
|
14
14
|
var Segment = require('./Segment.js');
|
|
15
|
-
var main = require('./main-
|
|
16
|
-
var BlockContent = require('./BlockContent-
|
|
15
|
+
var main = require('./main-f1c77adb.js');
|
|
16
|
+
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
17
17
|
var _extends = require('./extends-7c86182f.js');
|
|
18
18
|
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
19
|
-
var index$2 = require('./index-
|
|
19
|
+
var index$2 = require('./index-eadd5035.js');
|
|
20
20
|
var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
21
21
|
var _typeof$1 = require('./typeof-567e31ff.js');
|
|
22
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
22
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
23
23
|
var stringify = require('./stringify-f7a37a8d.js');
|
|
24
24
|
var Modal = require('react-bootstrap/Modal');
|
|
25
25
|
var Button = require('react-bootstrap/Button');
|
|
@@ -66,7 +66,7 @@ var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
|
66
66
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
67
67
|
var pageNumber = selectedIndex + 1;
|
|
68
68
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
69
|
-
Router__default[
|
|
69
|
+
Router__default['default'].push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
var Slideshow$1 = function Slideshow(_ref) {
|
|
@@ -96,27 +96,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
96
96
|
if (pageview) pageview(router.asPath);
|
|
97
97
|
}, [router]);
|
|
98
98
|
|
|
99
|
-
return React__default[
|
|
99
|
+
return React__default['default'].createElement(
|
|
100
100
|
'div',
|
|
101
101
|
{ className: 'mt-3 mb-3' },
|
|
102
|
-
React__default[
|
|
102
|
+
React__default['default'].createElement(
|
|
103
103
|
reactBootstrap.Carousel,
|
|
104
104
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
105
105
|
return onChangeSlide(selectedIndex, router);
|
|
106
106
|
}, interval: null },
|
|
107
107
|
slides && slides.map(function (slide) {
|
|
108
|
-
return React__default[
|
|
108
|
+
return React__default['default'].createElement(
|
|
109
109
|
reactBootstrap.Carousel.Item,
|
|
110
110
|
{ key: slide._key },
|
|
111
|
-
React__default[
|
|
111
|
+
React__default['default'].createElement(
|
|
112
112
|
'picture',
|
|
113
113
|
null,
|
|
114
|
-
React__default[
|
|
115
|
-
React__default[
|
|
116
|
-
React__default[
|
|
117
|
-
React__default[
|
|
114
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
115
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
116
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
117
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
118
118
|
),
|
|
119
|
-
slide.caption && React__default[
|
|
119
|
+
slide.caption && React__default['default'].createElement(
|
|
120
120
|
'p',
|
|
121
121
|
{ className: 'p-2' },
|
|
122
122
|
slide.caption
|
|
@@ -1648,11 +1648,13 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1648
1648
|
|
|
1649
1649
|
function filterResetOptions(opts) {
|
|
1650
1650
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1651
|
-
|
|
1651
|
+
height: 0,
|
|
1652
|
+
width: 0,
|
|
1653
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1652
1654
|
autoplay: 0,
|
|
1653
1655
|
start: 0,
|
|
1654
1656
|
end: 0
|
|
1655
|
-
}
|
|
1657
|
+
})
|
|
1656
1658
|
});
|
|
1657
1659
|
}
|
|
1658
1660
|
/**
|
|
@@ -1667,7 +1669,7 @@ function filterResetOptions(opts) {
|
|
|
1667
1669
|
|
|
1668
1670
|
|
|
1669
1671
|
function shouldResetPlayer(prevProps, props) {
|
|
1670
|
-
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1672
|
+
return prevProps.videoId !== props.videoId || !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1671
1673
|
}
|
|
1672
1674
|
/**
|
|
1673
1675
|
* Check whether a props change should result in an id or className update.
|
|
@@ -1678,7 +1680,7 @@ function shouldResetPlayer(prevProps, props) {
|
|
|
1678
1680
|
|
|
1679
1681
|
|
|
1680
1682
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1681
|
-
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1683
|
+
return prevProps.id !== props.id || prevProps.className !== props.className || prevProps.opts.width !== props.opts.width || prevProps.opts.height !== props.opts.height || prevProps.title !== props.title;
|
|
1682
1684
|
}
|
|
1683
1685
|
|
|
1684
1686
|
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1765,6 +1767,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1765
1767
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1766
1768
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1767
1769
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1770
|
+
if (_this.props.opts && _this.props.opts.width) iframe.setAttribute('width', _this.props.opts.width);else iframe.removeAttribute('width');
|
|
1771
|
+
if (_this.props.opts && _this.props.opts.height) iframe.setAttribute('height', _this.props.opts.height);else iframe.removeAttribute('height');
|
|
1772
|
+
if (typeof _this.props.title === 'string') iframe.setAttribute('title', _this.props.title);else iframe.setAttribute('title', 'YouTube video player');
|
|
1768
1773
|
});
|
|
1769
1774
|
});
|
|
1770
1775
|
|
|
@@ -1858,18 +1863,19 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1858
1863
|
}, {
|
|
1859
1864
|
key: "render",
|
|
1860
1865
|
value: function render() {
|
|
1861
|
-
return /*#__PURE__*/React__default[
|
|
1866
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1862
1867
|
className: this.props.containerClassName
|
|
1863
|
-
}, /*#__PURE__*/React__default[
|
|
1868
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1864
1869
|
id: this.props.id,
|
|
1865
1870
|
className: this.props.className,
|
|
1866
|
-
ref: this.refContainer
|
|
1871
|
+
ref: this.refContainer,
|
|
1872
|
+
loading: this.props.loading
|
|
1867
1873
|
}));
|
|
1868
1874
|
}
|
|
1869
1875
|
}]);
|
|
1870
1876
|
|
|
1871
1877
|
return YouTube;
|
|
1872
|
-
}(React__default[
|
|
1878
|
+
}(React__default['default'].Component);
|
|
1873
1879
|
|
|
1874
1880
|
_defineProperty(YouTube, "PlayerState", {
|
|
1875
1881
|
UNSTARTED: -1,
|
|
@@ -1881,29 +1887,34 @@ _defineProperty(YouTube, "PlayerState", {
|
|
|
1881
1887
|
});
|
|
1882
1888
|
|
|
1883
1889
|
YouTube.propTypes = {
|
|
1884
|
-
videoId: PropTypes__default[
|
|
1890
|
+
videoId: PropTypes__default['default'].string,
|
|
1885
1891
|
// custom ID for player element
|
|
1886
|
-
id: PropTypes__default[
|
|
1892
|
+
id: PropTypes__default['default'].string,
|
|
1887
1893
|
// custom class name for player element
|
|
1888
|
-
className: PropTypes__default[
|
|
1894
|
+
className: PropTypes__default['default'].string,
|
|
1889
1895
|
// custom class name for player container element
|
|
1890
|
-
containerClassName: PropTypes__default[
|
|
1896
|
+
containerClassName: PropTypes__default['default'].string,
|
|
1897
|
+
// custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
|
|
1898
|
+
title: PropTypes__default['default'].string,
|
|
1899
|
+
// custom loading for player element
|
|
1900
|
+
loading: PropTypes__default['default'].oneOf(['lazy', 'eager', 'auto']),
|
|
1891
1901
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1892
|
-
opts: PropTypes__default[
|
|
1902
|
+
opts: PropTypes__default['default'].objectOf(PropTypes__default['default'].any),
|
|
1893
1903
|
// event subscriptions
|
|
1894
|
-
onReady: PropTypes__default[
|
|
1895
|
-
onError: PropTypes__default[
|
|
1896
|
-
onPlay: PropTypes__default[
|
|
1897
|
-
onPause: PropTypes__default[
|
|
1898
|
-
onEnd: PropTypes__default[
|
|
1899
|
-
onStateChange: PropTypes__default[
|
|
1900
|
-
onPlaybackRateChange: PropTypes__default[
|
|
1901
|
-
onPlaybackQualityChange: PropTypes__default[
|
|
1904
|
+
onReady: PropTypes__default['default'].func,
|
|
1905
|
+
onError: PropTypes__default['default'].func,
|
|
1906
|
+
onPlay: PropTypes__default['default'].func,
|
|
1907
|
+
onPause: PropTypes__default['default'].func,
|
|
1908
|
+
onEnd: PropTypes__default['default'].func,
|
|
1909
|
+
onStateChange: PropTypes__default['default'].func,
|
|
1910
|
+
onPlaybackRateChange: PropTypes__default['default'].func,
|
|
1911
|
+
onPlaybackQualityChange: PropTypes__default['default'].func
|
|
1902
1912
|
};
|
|
1903
1913
|
YouTube.defaultProps = {
|
|
1904
1914
|
videoId: null,
|
|
1905
1915
|
id: null,
|
|
1906
1916
|
className: null,
|
|
1917
|
+
loading: null,
|
|
1907
1918
|
opts: {},
|
|
1908
1919
|
containerClassName: '',
|
|
1909
1920
|
onReady: function onReady() {},
|
|
@@ -1913,7 +1924,8 @@ YouTube.defaultProps = {
|
|
|
1913
1924
|
onEnd: function onEnd() {},
|
|
1914
1925
|
onStateChange: function onStateChange() {},
|
|
1915
1926
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1916
|
-
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1927
|
+
onPlaybackQualityChange: function onPlaybackQualityChange() {},
|
|
1928
|
+
title: null
|
|
1917
1929
|
};
|
|
1918
1930
|
|
|
1919
1931
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
@@ -2016,11 +2028,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2016
2028
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2017
2029
|
};
|
|
2018
2030
|
|
|
2019
|
-
return React__default[
|
|
2031
|
+
return React__default['default'].createElement(
|
|
2020
2032
|
'div',
|
|
2021
2033
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
React__default[
|
|
2023
|
-
React__default[
|
|
2034
|
+
React__default['default'].createElement(YouTube, { className: 'fluid-iframe', loading: 'lazy', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2035
|
+
React__default['default'].createElement(
|
|
2024
2036
|
'style',
|
|
2025
2037
|
{ jsx: 'true' },
|
|
2026
2038
|
'\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 '
|
|
@@ -2033,20 +2045,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2045
|
content = _ref.content,
|
|
2034
2046
|
getSerializers = _ref.getSerializers;
|
|
2035
2047
|
|
|
2036
|
-
return React__default[
|
|
2048
|
+
return React__default['default'].createElement(
|
|
2037
2049
|
'article',
|
|
2038
2050
|
{ className: 'sidebar' },
|
|
2039
|
-
React__default[
|
|
2051
|
+
React__default['default'].createElement(
|
|
2040
2052
|
'div',
|
|
2041
2053
|
null,
|
|
2042
|
-
React__default[
|
|
2054
|
+
React__default['default'].createElement(
|
|
2043
2055
|
'h3',
|
|
2044
2056
|
null,
|
|
2045
2057
|
caption
|
|
2046
2058
|
),
|
|
2047
|
-
React__default[
|
|
2059
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2060
|
),
|
|
2049
|
-
React__default[
|
|
2061
|
+
React__default['default'].createElement(
|
|
2050
2062
|
'style',
|
|
2051
2063
|
{ jsx: 'true' },
|
|
2052
2064
|
'\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 '
|
|
@@ -2057,18 +2069,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2069
|
var TableShow = function TableShow(_ref) {
|
|
2058
2070
|
var rows = _ref.rows;
|
|
2059
2071
|
|
|
2060
|
-
return React__default[
|
|
2072
|
+
return React__default['default'].createElement(
|
|
2061
2073
|
reactBootstrap.Table,
|
|
2062
2074
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
React__default[
|
|
2075
|
+
React__default['default'].createElement(
|
|
2064
2076
|
'tbody',
|
|
2065
2077
|
null,
|
|
2066
2078
|
rows && rows.map(function (row) {
|
|
2067
|
-
return React__default[
|
|
2079
|
+
return React__default['default'].createElement(
|
|
2068
2080
|
'tr',
|
|
2069
2081
|
{ key: row._key },
|
|
2070
2082
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell && React__default[
|
|
2083
|
+
return cell && React__default['default'].createElement(
|
|
2072
2084
|
'td',
|
|
2073
2085
|
{ key: index },
|
|
2074
2086
|
cell
|
|
@@ -2166,25 +2178,25 @@ var Media = function Media(_ref) {
|
|
|
2166
2178
|
margin: imageMargin
|
|
2167
2179
|
};
|
|
2168
2180
|
|
|
2169
|
-
return React__default[
|
|
2181
|
+
return React__default['default'].createElement(
|
|
2170
2182
|
reactBootstrap.Figure,
|
|
2171
2183
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2172
|
-
React__default[
|
|
2184
|
+
React__default['default'].createElement(
|
|
2173
2185
|
'a',
|
|
2174
2186
|
{ href: urlForFile.urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2175
|
-
React__default[
|
|
2187
|
+
React__default['default'].createElement(
|
|
2176
2188
|
index$2.LazyLoad,
|
|
2177
2189
|
{ once: true },
|
|
2178
|
-
React__default[
|
|
2190
|
+
React__default['default'].createElement(
|
|
2179
2191
|
'picture',
|
|
2180
2192
|
null,
|
|
2181
|
-
React__default[
|
|
2182
|
-
React__default[
|
|
2183
|
-
React__default[
|
|
2184
|
-
React__default[
|
|
2193
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2194
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2195
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2196
|
+
React__default['default'].createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
2197
|
)
|
|
2186
2198
|
),
|
|
2187
|
-
caption && React__default[
|
|
2199
|
+
caption && React__default['default'].createElement(
|
|
2188
2200
|
reactBootstrap.Figure.Caption,
|
|
2189
2201
|
{ className: 'media-caption' },
|
|
2190
2202
|
caption
|
|
@@ -2192,7 +2204,7 @@ var Media = function Media(_ref) {
|
|
|
2192
2204
|
)
|
|
2193
2205
|
);
|
|
2194
2206
|
} else if (caption && caption !== '') {
|
|
2195
|
-
return React__default[
|
|
2207
|
+
return React__default['default'].createElement(
|
|
2196
2208
|
'a',
|
|
2197
2209
|
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2210
|
href: urlForFile.urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2212,10 +2224,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2224
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2213
2225
|
|
|
2214
2226
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2215
|
-
return React__default[
|
|
2227
|
+
return React__default['default'].createElement(
|
|
2216
2228
|
'div',
|
|
2217
2229
|
{ className: 'd-block text-center mb-3' },
|
|
2218
|
-
React__default[
|
|
2230
|
+
React__default['default'].createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2219
2231
|
);
|
|
2220
2232
|
};
|
|
2221
2233
|
|
|
@@ -2225,7 +2237,7 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2225
2237
|
handlePollAnswer = _ref.handlePollAnswer;
|
|
2226
2238
|
|
|
2227
2239
|
var choiceArray = choices.map(function (choice) {
|
|
2228
|
-
return React__default[
|
|
2240
|
+
return React__default['default'].createElement(Form__default['default'].Check, {
|
|
2229
2241
|
inline: true,
|
|
2230
2242
|
label: choice.choiceText,
|
|
2231
2243
|
value: choice.choiceText,
|
|
@@ -2235,19 +2247,19 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2235
2247
|
onClick: handlePollAnswer
|
|
2236
2248
|
});
|
|
2237
2249
|
});
|
|
2238
|
-
return React__default[
|
|
2250
|
+
return React__default['default'].createElement(
|
|
2239
2251
|
'div',
|
|
2240
2252
|
{
|
|
2241
2253
|
key: 'inline-radio',
|
|
2242
2254
|
className: 'radioContainer' },
|
|
2243
|
-
React__default[
|
|
2255
|
+
React__default['default'].createElement(
|
|
2244
2256
|
'h2',
|
|
2245
2257
|
{
|
|
2246
2258
|
className: 'radioLabelText'
|
|
2247
2259
|
},
|
|
2248
2260
|
question
|
|
2249
2261
|
),
|
|
2250
|
-
React__default[
|
|
2262
|
+
React__default['default'].createElement(
|
|
2251
2263
|
'div',
|
|
2252
2264
|
{
|
|
2253
2265
|
className: 'multiChoiceDiv'
|
|
@@ -2262,19 +2274,19 @@ var PopupPollTextInput = function PopupPollTextInput(_ref) {
|
|
|
2262
2274
|
textAnswer = _ref.textAnswer,
|
|
2263
2275
|
handleTextAnswer = _ref.handleTextAnswer;
|
|
2264
2276
|
|
|
2265
|
-
return React__default[
|
|
2277
|
+
return React__default['default'].createElement(
|
|
2266
2278
|
'div',
|
|
2267
2279
|
{
|
|
2268
2280
|
className: 'textInputDiv'
|
|
2269
2281
|
},
|
|
2270
|
-
React__default[
|
|
2282
|
+
React__default['default'].createElement(
|
|
2271
2283
|
'h2',
|
|
2272
2284
|
{
|
|
2273
2285
|
className: 'textInputQuestion'
|
|
2274
2286
|
},
|
|
2275
2287
|
textInputQuestion
|
|
2276
2288
|
),
|
|
2277
|
-
React__default[
|
|
2289
|
+
React__default['default'].createElement(Form__default['default'].Control, {
|
|
2278
2290
|
type: 'text',
|
|
2279
2291
|
className: 'textInput',
|
|
2280
2292
|
value: textAnswer,
|
|
@@ -2384,32 +2396,32 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2384
2396
|
var pollArray = [];
|
|
2385
2397
|
pollItems.forEach(function (item, ind) {
|
|
2386
2398
|
if (item.format === 'multiChoice') {
|
|
2387
|
-
pollArray.push(React__default[
|
|
2399
|
+
pollArray.push(React__default['default'].createElement(PopupMultiChoice, { question: item.question, choices: item.choices, handlePollAnswer: handlePollAnswer, key: ind }));
|
|
2388
2400
|
}
|
|
2389
2401
|
if (item.format === 'textInput') {
|
|
2390
|
-
pollArray.push(React__default[
|
|
2402
|
+
pollArray.push(React__default['default'].createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2391
2403
|
}
|
|
2392
2404
|
});
|
|
2393
2405
|
|
|
2394
|
-
return React__default[
|
|
2406
|
+
return React__default['default'].createElement(
|
|
2395
2407
|
'div',
|
|
2396
2408
|
{ className: 'modalDiv', id: 'modalDiv' },
|
|
2397
|
-
React__default[
|
|
2398
|
-
Modal__default[
|
|
2409
|
+
React__default['default'].createElement(
|
|
2410
|
+
Modal__default['default'].Dialog,
|
|
2399
2411
|
null,
|
|
2400
|
-
React__default[
|
|
2401
|
-
Modal__default[
|
|
2412
|
+
React__default['default'].createElement(
|
|
2413
|
+
Modal__default['default'].Body,
|
|
2402
2414
|
null,
|
|
2403
|
-
React__default[
|
|
2404
|
-
Form__default[
|
|
2415
|
+
React__default['default'].createElement(
|
|
2416
|
+
Form__default['default'],
|
|
2405
2417
|
{ onSubmit: handleSubmit, className: 'modalForm' },
|
|
2406
2418
|
pollArray,
|
|
2407
|
-
textInputRender && !multiChoiceRender ? React__default[
|
|
2408
|
-
Button__default[
|
|
2419
|
+
textInputRender && !multiChoiceRender ? React__default['default'].createElement(
|
|
2420
|
+
Button__default['default'],
|
|
2409
2421
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !textAnswer },
|
|
2410
2422
|
'Submit'
|
|
2411
|
-
) : React__default[
|
|
2412
|
-
Button__default[
|
|
2423
|
+
) : React__default['default'].createElement(
|
|
2424
|
+
Button__default['default'],
|
|
2413
2425
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
2414
2426
|
'Submit'
|
|
2415
2427
|
)
|
|
@@ -2572,10 +2584,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2572
2584
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2573
2585
|
};
|
|
2574
2586
|
|
|
2575
|
-
return React__default[
|
|
2587
|
+
return React__default['default'].createElement(
|
|
2576
2588
|
'div',
|
|
2577
2589
|
null,
|
|
2578
|
-
isPollingTime ? React__default[
|
|
2590
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2579
2591
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2580
2592
|
, { pollItems: pollItems
|
|
2581
2593
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2589,7 +2601,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2589
2601
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2590
2602
|
, multiChoiceRender: multiChoiceRender
|
|
2591
2603
|
}) : null,
|
|
2592
|
-
vidLoaded && React__default[
|
|
2604
|
+
vidLoaded && React__default['default'].createElement(
|
|
2593
2605
|
'video',
|
|
2594
2606
|
{
|
|
2595
2607
|
poster: thumbnail || '',
|
|
@@ -2607,7 +2619,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2607
2619
|
onPlay: function onPlay(e) {
|
|
2608
2620
|
return handleOnPlay(e);
|
|
2609
2621
|
} },
|
|
2610
|
-
React__default[
|
|
2622
|
+
React__default['default'].createElement('source', { src: url, type: 'video/mp4' }),
|
|
2611
2623
|
'Your browser does not support the video tag.'
|
|
2612
2624
|
)
|
|
2613
2625
|
);
|
|
@@ -2858,10 +2870,10 @@ var Video = function Video(_ref) {
|
|
|
2858
2870
|
|
|
2859
2871
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2860
2872
|
if (videoID) {
|
|
2861
|
-
return React__default[
|
|
2873
|
+
return React__default['default'].createElement(
|
|
2862
2874
|
'div',
|
|
2863
2875
|
null,
|
|
2864
|
-
isPollingTime ? React__default[
|
|
2876
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2865
2877
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2866
2878
|
, { pollItems: pollItems
|
|
2867
2879
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2875,7 +2887,7 @@ var Video = function Video(_ref) {
|
|
|
2875
2887
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2876
2888
|
, multiChoiceRender: multiChoiceRender
|
|
2877
2889
|
}) : null,
|
|
2878
|
-
React__default[
|
|
2890
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2879
2891
|
onSuccess: onVideoSuccess,
|
|
2880
2892
|
onFailure: onVideoFailure,
|
|
2881
2893
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2883,17 +2895,17 @@ var Video = function Video(_ref) {
|
|
|
2883
2895
|
playerId: accountIDs.brightcove.playerId,
|
|
2884
2896
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2885
2897
|
}),
|
|
2886
|
-
React__default[
|
|
2898
|
+
React__default['default'].createElement(
|
|
2887
2899
|
'style',
|
|
2888
2900
|
{ jsx: 'true' },
|
|
2889
2901
|
'\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 '
|
|
2890
2902
|
)
|
|
2891
2903
|
);
|
|
2892
2904
|
} else if (playlistID) {
|
|
2893
|
-
return React__default[
|
|
2905
|
+
return React__default['default'].createElement(
|
|
2894
2906
|
'div',
|
|
2895
2907
|
null,
|
|
2896
|
-
isPollingTime ? React__default[
|
|
2908
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2897
2909
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2898
2910
|
, { pollItems: pollItems
|
|
2899
2911
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2907,7 +2919,7 @@ var Video = function Video(_ref) {
|
|
|
2907
2919
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2908
2920
|
, multiChoiceRender: multiChoiceRender
|
|
2909
2921
|
}) : null,
|
|
2910
|
-
React__default[
|
|
2922
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2911
2923
|
accountId: accountIDs.brightcove.accountId,
|
|
2912
2924
|
playlistId: playlistID,
|
|
2913
2925
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2915,18 +2927,18 @@ var Video = function Video(_ref) {
|
|
|
2915
2927
|
onFailure: onVideoFailure,
|
|
2916
2928
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2917
2929
|
}),
|
|
2918
|
-
React__default[
|
|
2930
|
+
React__default['default'].createElement(
|
|
2919
2931
|
'style',
|
|
2920
2932
|
{ jsx: 'true' },
|
|
2921
2933
|
'\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 '
|
|
2922
2934
|
)
|
|
2923
2935
|
);
|
|
2924
2936
|
} else if (experienceID) {
|
|
2925
|
-
return React__default[
|
|
2937
|
+
return React__default['default'].createElement(
|
|
2926
2938
|
'div',
|
|
2927
2939
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2928
|
-
React__default[
|
|
2929
|
-
isPollingTime ? React__default[
|
|
2940
|
+
React__default['default'].createElement('div', { 'data-experience': experienceID }),
|
|
2941
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2930
2942
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2931
2943
|
, { pollItems: pollItems
|
|
2932
2944
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2946,10 +2958,10 @@ var Video = function Video(_ref) {
|
|
|
2946
2958
|
}
|
|
2947
2959
|
|
|
2948
2960
|
if (source === 'mp4') {
|
|
2949
|
-
return React__default[
|
|
2961
|
+
return React__default['default'].createElement(
|
|
2950
2962
|
'div',
|
|
2951
2963
|
null,
|
|
2952
|
-
React__default[
|
|
2964
|
+
React__default['default'].createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true, polls: polls, modalTimes: modalTimes, targetingUrl: targeting.document_url[0] })
|
|
2953
2965
|
);
|
|
2954
2966
|
}
|
|
2955
2967
|
|
|
@@ -2964,7 +2976,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2964
2976
|
});
|
|
2965
2977
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2966
2978
|
|
|
2967
|
-
var _propTypes = _interopRequireDefault(PropTypes__default[
|
|
2979
|
+
var _propTypes = _interopRequireDefault(PropTypes__default['default']);
|
|
2968
2980
|
|
|
2969
2981
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2970
2982
|
|
|
@@ -3554,7 +3566,7 @@ function isEqual(a, b) {
|
|
|
3554
3566
|
return true;
|
|
3555
3567
|
}
|
|
3556
3568
|
|
|
3557
|
-
if ((0, React__default[
|
|
3569
|
+
if ((0, React__default['default'].isValidElement)(a) && (0, React__default['default'].isValidElement)(b)) {
|
|
3558
3570
|
return true;
|
|
3559
3571
|
}
|
|
3560
3572
|
|
|
@@ -3616,7 +3628,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3616
3628
|
});
|
|
3617
3629
|
exports["default"] = void 0;
|
|
3618
3630
|
|
|
3619
|
-
var _react = _interopRequireWildcard(React__default[
|
|
3631
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
3620
3632
|
|
|
3621
3633
|
|
|
3622
3634
|
|
|
@@ -4026,7 +4038,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4026
4038
|
});
|
|
4027
4039
|
exports["default"] = createSinglePlayer;
|
|
4028
4040
|
|
|
4029
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4041
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4030
4042
|
|
|
4031
4043
|
|
|
4032
4044
|
|
|
@@ -4184,7 +4196,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4184
4196
|
});
|
|
4185
4197
|
exports["default"] = exports.YouTube = void 0;
|
|
4186
4198
|
|
|
4187
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4199
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4188
4200
|
|
|
4189
4201
|
|
|
4190
4202
|
|
|
@@ -4493,7 +4505,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4493
4505
|
});
|
|
4494
4506
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4495
4507
|
|
|
4496
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4508
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4497
4509
|
|
|
4498
4510
|
|
|
4499
4511
|
|
|
@@ -4710,7 +4722,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4710
4722
|
});
|
|
4711
4723
|
exports["default"] = exports.Vimeo = void 0;
|
|
4712
4724
|
|
|
4713
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4725
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4714
4726
|
|
|
4715
4727
|
|
|
4716
4728
|
|
|
@@ -4966,7 +4978,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4966
4978
|
});
|
|
4967
4979
|
exports["default"] = exports.Facebook = void 0;
|
|
4968
4980
|
|
|
4969
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4981
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4970
4982
|
|
|
4971
4983
|
|
|
4972
4984
|
|
|
@@ -5178,7 +5190,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5178
5190
|
});
|
|
5179
5191
|
exports["default"] = exports.Streamable = void 0;
|
|
5180
5192
|
|
|
5181
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5193
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5182
5194
|
|
|
5183
5195
|
|
|
5184
5196
|
|
|
@@ -5389,7 +5401,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5389
5401
|
});
|
|
5390
5402
|
exports["default"] = exports.Wistia = void 0;
|
|
5391
5403
|
|
|
5392
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5404
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5393
5405
|
|
|
5394
5406
|
|
|
5395
5407
|
|
|
@@ -5632,7 +5644,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5632
5644
|
});
|
|
5633
5645
|
exports["default"] = exports.Twitch = void 0;
|
|
5634
5646
|
|
|
5635
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5647
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5636
5648
|
|
|
5637
5649
|
|
|
5638
5650
|
|
|
@@ -5848,7 +5860,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5848
5860
|
});
|
|
5849
5861
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5850
5862
|
|
|
5851
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5863
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5852
5864
|
|
|
5853
5865
|
|
|
5854
5866
|
|
|
@@ -6084,7 +6096,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6084
6096
|
});
|
|
6085
6097
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6086
6098
|
|
|
6087
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6099
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6088
6100
|
|
|
6089
6101
|
|
|
6090
6102
|
|
|
@@ -6283,7 +6295,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6283
6295
|
});
|
|
6284
6296
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6285
6297
|
|
|
6286
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6298
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6287
6299
|
|
|
6288
6300
|
|
|
6289
6301
|
|
|
@@ -6850,7 +6862,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6850
6862
|
});
|
|
6851
6863
|
exports["default"] = void 0;
|
|
6852
6864
|
|
|
6853
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6865
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6854
6866
|
|
|
6855
6867
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6856
6868
|
|
|
@@ -7029,7 +7041,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7029
7041
|
});
|
|
7030
7042
|
exports["default"] = renderPreloadPlayers;
|
|
7031
7043
|
|
|
7032
|
-
var _react = _interopRequireDefault(React__default[
|
|
7044
|
+
var _react = _interopRequireDefault(React__default['default']);
|
|
7033
7045
|
|
|
7034
7046
|
var _Player = _interopRequireDefault(Player_1);
|
|
7035
7047
|
|
|
@@ -7168,7 +7180,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7168
7180
|
});
|
|
7169
7181
|
exports["default"] = void 0;
|
|
7170
7182
|
|
|
7171
|
-
var _react = _interopRequireWildcard(React__default[
|
|
7183
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
7172
7184
|
|
|
7173
7185
|
|
|
7174
7186
|
|
|
@@ -7484,7 +7496,7 @@ var Audio = function Audio(_ref) {
|
|
|
7484
7496
|
var audioSource = node && node.uploadAudio ? node.uploadAudio.asset.url : '';
|
|
7485
7497
|
var reportPlay = function reportPlay() {
|
|
7486
7498
|
console.log('Reporting audio playback play to GA');
|
|
7487
|
-
ReactGA__default[
|
|
7499
|
+
ReactGA__default['default'].event({
|
|
7488
7500
|
category: 'User',
|
|
7489
7501
|
action: 'Audio Play',
|
|
7490
7502
|
label: 'Play: ' + audioSource
|
|
@@ -7494,7 +7506,7 @@ var Audio = function Audio(_ref) {
|
|
|
7494
7506
|
};
|
|
7495
7507
|
var reportPause = function reportPause() {
|
|
7496
7508
|
console.log('Reporting audio playback pause to GA');
|
|
7497
|
-
ReactGA__default[
|
|
7509
|
+
ReactGA__default['default'].event({
|
|
7498
7510
|
category: 'User',
|
|
7499
7511
|
action: 'Audio Pause',
|
|
7500
7512
|
label: 'Pause: ' + audioSource
|
|
@@ -7504,7 +7516,7 @@ var Audio = function Audio(_ref) {
|
|
|
7504
7516
|
};
|
|
7505
7517
|
var reportEnd = function reportEnd() {
|
|
7506
7518
|
console.log('Reporting audio playback end to GA');
|
|
7507
|
-
ReactGA__default[
|
|
7519
|
+
ReactGA__default['default'].event({
|
|
7508
7520
|
category: 'User',
|
|
7509
7521
|
action: 'Audio Playback End',
|
|
7510
7522
|
label: 'Playback End: ' + audioSource
|
|
@@ -7513,10 +7525,10 @@ var Audio = function Audio(_ref) {
|
|
|
7513
7525
|
}));
|
|
7514
7526
|
};
|
|
7515
7527
|
if (node.uploadAudio) {
|
|
7516
|
-
return React__default[
|
|
7528
|
+
return React__default['default'].createElement(
|
|
7517
7529
|
'div',
|
|
7518
7530
|
{ className: 'audio d-block text-center mb-3' },
|
|
7519
|
-
React__default[
|
|
7531
|
+
React__default['default'].createElement(
|
|
7520
7532
|
'audio',
|
|
7521
7533
|
{
|
|
7522
7534
|
controls: true, controlsList: 'nodownload',
|
|
@@ -7525,14 +7537,14 @@ var Audio = function Audio(_ref) {
|
|
|
7525
7537
|
onPause: reportPause,
|
|
7526
7538
|
onEnded: reportEnd
|
|
7527
7539
|
},
|
|
7528
|
-
React__default[
|
|
7529
|
-
React__default[
|
|
7540
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7541
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7530
7542
|
'Your browser does not support the audio element.'
|
|
7531
7543
|
),
|
|
7532
|
-
node.caption && React__default[
|
|
7544
|
+
node.caption && React__default['default'].createElement(
|
|
7533
7545
|
'p',
|
|
7534
7546
|
{ style: { fontSize: '.9rem' } },
|
|
7535
|
-
React__default[
|
|
7547
|
+
React__default['default'].createElement(
|
|
7536
7548
|
'em',
|
|
7537
7549
|
null,
|
|
7538
7550
|
node.caption
|
|
@@ -7542,15 +7554,15 @@ var Audio = function Audio(_ref) {
|
|
|
7542
7554
|
} else if (node.audioFilePth) {
|
|
7543
7555
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7544
7556
|
if (hostname === 'embeds.audioboom.com') {
|
|
7545
|
-
return React__default[
|
|
7557
|
+
return React__default['default'].createElement(
|
|
7546
7558
|
'div',
|
|
7547
7559
|
null,
|
|
7548
|
-
React__default[
|
|
7560
|
+
React__default['default'].createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7549
7561
|
' ',
|
|
7550
|
-
node.caption && React__default[
|
|
7562
|
+
node.caption && React__default['default'].createElement(
|
|
7551
7563
|
'p',
|
|
7552
7564
|
{ style: { fontSize: '.9rem' } },
|
|
7553
|
-
React__default[
|
|
7565
|
+
React__default['default'].createElement(
|
|
7554
7566
|
'em',
|
|
7555
7567
|
null,
|
|
7556
7568
|
node.caption
|
|
@@ -7558,10 +7570,10 @@ var Audio = function Audio(_ref) {
|
|
|
7558
7570
|
)
|
|
7559
7571
|
);
|
|
7560
7572
|
}
|
|
7561
|
-
return React__default[
|
|
7573
|
+
return React__default['default'].createElement(
|
|
7562
7574
|
'div',
|
|
7563
7575
|
{ className: 'audio' },
|
|
7564
|
-
React__default[
|
|
7576
|
+
React__default['default'].createElement(ReactPlayer, { url: node.audioFilePth,
|
|
7565
7577
|
onPlay: reportPlay,
|
|
7566
7578
|
onPause: reportPause,
|
|
7567
7579
|
onEnded: reportEnd,
|
|
@@ -7569,10 +7581,10 @@ var Audio = function Audio(_ref) {
|
|
|
7569
7581
|
width: '100%',
|
|
7570
7582
|
height: '100%'
|
|
7571
7583
|
}),
|
|
7572
|
-
node.caption && React__default[
|
|
7584
|
+
node.caption && React__default['default'].createElement(
|
|
7573
7585
|
'p',
|
|
7574
7586
|
{ style: { fontSize: '.9rem' } },
|
|
7575
|
-
React__default[
|
|
7587
|
+
React__default['default'].createElement(
|
|
7576
7588
|
'em',
|
|
7577
7589
|
null,
|
|
7578
7590
|
node.caption
|
|
@@ -7591,34 +7603,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7591
7603
|
var showAuthorDetails = arguments[7];
|
|
7592
7604
|
|
|
7593
7605
|
if (authorName && authorURL) {
|
|
7594
|
-
return React__default[
|
|
7606
|
+
return React__default['default'].createElement(
|
|
7595
7607
|
'span',
|
|
7596
7608
|
null,
|
|
7597
|
-
React__default[
|
|
7609
|
+
React__default['default'].createElement(
|
|
7598
7610
|
'a',
|
|
7599
7611
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7600
7612
|
authorName
|
|
7601
7613
|
),
|
|
7602
|
-
showAuthorDetails && React__default[
|
|
7614
|
+
showAuthorDetails && React__default['default'].createElement(
|
|
7603
7615
|
reactBootstrap.Card,
|
|
7604
7616
|
{ className: 'author-details-card-' + index },
|
|
7605
|
-
React__default[
|
|
7617
|
+
React__default['default'].createElement(
|
|
7606
7618
|
reactBootstrap.Row,
|
|
7607
7619
|
null,
|
|
7608
|
-
profileImage && React__default[
|
|
7620
|
+
profileImage && React__default['default'].createElement(
|
|
7609
7621
|
reactBootstrap.Col,
|
|
7610
7622
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7611
|
-
React__default[
|
|
7623
|
+
React__default['default'].createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7612
7624
|
),
|
|
7613
|
-
React__default[
|
|
7625
|
+
React__default['default'].createElement(
|
|
7614
7626
|
reactBootstrap.Col,
|
|
7615
7627
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7616
|
-
React__default[
|
|
7628
|
+
React__default['default'].createElement(
|
|
7617
7629
|
'div',
|
|
7618
7630
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7619
7631
|
authorName
|
|
7620
7632
|
),
|
|
7621
|
-
React__default[
|
|
7633
|
+
React__default['default'].createElement(
|
|
7622
7634
|
'p',
|
|
7623
7635
|
null,
|
|
7624
7636
|
biography
|
|
@@ -7626,7 +7638,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7626
7638
|
)
|
|
7627
7639
|
)
|
|
7628
7640
|
),
|
|
7629
|
-
React__default[
|
|
7641
|
+
React__default['default'].createElement(
|
|
7630
7642
|
'style',
|
|
7631
7643
|
{ jsx: 'true' },
|
|
7632
7644
|
'\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 '
|
|
@@ -7634,7 +7646,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7634
7646
|
length !== index + 1 && ', '
|
|
7635
7647
|
);
|
|
7636
7648
|
} else if (authorName) {
|
|
7637
|
-
return React__default[
|
|
7649
|
+
return React__default['default'].createElement(
|
|
7638
7650
|
'span',
|
|
7639
7651
|
{ key: index },
|
|
7640
7652
|
authorName,
|
|
@@ -7906,44 +7918,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7906
7918
|
}
|
|
7907
7919
|
};
|
|
7908
7920
|
|
|
7909
|
-
return React__default[
|
|
7921
|
+
return React__default['default'].createElement(
|
|
7910
7922
|
'div',
|
|
7911
7923
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7912
|
-
React__default[
|
|
7924
|
+
React__default['default'].createElement(
|
|
7913
7925
|
'div',
|
|
7914
7926
|
{ className: 'mt-2 mb-5' },
|
|
7915
|
-
series && React__default[
|
|
7927
|
+
series && React__default['default'].createElement(
|
|
7916
7928
|
'div',
|
|
7917
7929
|
{ style: { fontSize: '0.9rem' } },
|
|
7918
7930
|
article.title,
|
|
7919
7931
|
' - Episode ',
|
|
7920
7932
|
series
|
|
7921
7933
|
),
|
|
7922
|
-
Videos[series - 1] && React__default[
|
|
7934
|
+
Videos[series - 1] && React__default['default'].createElement(
|
|
7923
7935
|
'h1',
|
|
7924
7936
|
{ className: 'mb-3' },
|
|
7925
7937
|
Videos[series - 1].title
|
|
7926
7938
|
),
|
|
7927
|
-
React__default[
|
|
7939
|
+
React__default['default'].createElement(
|
|
7928
7940
|
'div',
|
|
7929
7941
|
null,
|
|
7930
7942
|
moment.moment(article.published).format('LL')
|
|
7931
7943
|
),
|
|
7932
|
-
React__default[
|
|
7944
|
+
React__default['default'].createElement(
|
|
7933
7945
|
'div',
|
|
7934
7946
|
{ className: 'mb-3' },
|
|
7935
7947
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7936
|
-
return React__default[
|
|
7948
|
+
return React__default['default'].createElement(
|
|
7937
7949
|
'span',
|
|
7938
7950
|
{ key: index },
|
|
7939
7951
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7940
7952
|
);
|
|
7941
7953
|
})
|
|
7942
7954
|
),
|
|
7943
|
-
React__default[
|
|
7955
|
+
React__default['default'].createElement(
|
|
7944
7956
|
'p',
|
|
7945
7957
|
null,
|
|
7946
|
-
React__default[
|
|
7958
|
+
React__default['default'].createElement(SocialShare, {
|
|
7947
7959
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7948
7960
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7949
7961
|
shareVia: meta.shareVia,
|
|
@@ -7958,21 +7970,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7958
7970
|
hideFacebook: meta.hideFBShare
|
|
7959
7971
|
})
|
|
7960
7972
|
),
|
|
7961
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default[
|
|
7973
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default['default'].createElement(
|
|
7962
7974
|
'p',
|
|
7963
7975
|
{ className: 'mb-3' },
|
|
7964
|
-
React__default[
|
|
7976
|
+
React__default['default'].createElement(
|
|
7965
7977
|
'em',
|
|
7966
7978
|
null,
|
|
7967
7979
|
Videos[series - 1].intro
|
|
7968
7980
|
)
|
|
7969
7981
|
)
|
|
7970
7982
|
),
|
|
7971
|
-
React__default[
|
|
7983
|
+
React__default['default'].createElement(
|
|
7972
7984
|
'div',
|
|
7973
7985
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7974
|
-
vidUrl && vidType == 'youtube' && React__default[
|
|
7986
|
+
vidUrl && vidType == 'youtube' && React__default['default'].createElement(YouTube, {
|
|
7975
7987
|
className: 'fluid-iframe',
|
|
7988
|
+
loading: 'lazy',
|
|
7976
7989
|
videoId: index$1.getYoutubeId(vidUrl),
|
|
7977
7990
|
opts: opts,
|
|
7978
7991
|
onReady: handleOnReady,
|
|
@@ -7982,10 +7995,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7982
7995
|
return handleOnEnd(e);
|
|
7983
7996
|
}
|
|
7984
7997
|
}),
|
|
7985
|
-
vidUrl && vidType == 'mp4' && React__default[
|
|
7986
|
-
vidUrl && vidType == 'brightcove' && React__default[
|
|
7987
|
-
React__default[
|
|
7988
|
-
series && React__default[
|
|
7998
|
+
vidUrl && vidType == 'mp4' && React__default['default'].createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7999
|
+
vidUrl && vidType == 'brightcove' && React__default['default'].createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
8000
|
+
React__default['default'].createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
8001
|
+
series && React__default['default'].createElement(
|
|
7989
8002
|
'div',
|
|
7990
8003
|
{
|
|
7991
8004
|
className: 'vid-series',
|
|
@@ -7995,10 +8008,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7995
8008
|
maxHeight: '100%',
|
|
7996
8009
|
paddingBottom: '0'
|
|
7997
8010
|
} },
|
|
7998
|
-
React__default[
|
|
8011
|
+
React__default['default'].createElement(
|
|
7999
8012
|
'p',
|
|
8000
8013
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
8001
|
-
React__default[
|
|
8014
|
+
React__default['default'].createElement(
|
|
8002
8015
|
'b',
|
|
8003
8016
|
{ style: { fontSize: '1.25em' } },
|
|
8004
8017
|
'Now Playing:'
|
|
@@ -8006,16 +8019,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8006
8019
|
' ',
|
|
8007
8020
|
seriesData[series ? series - 1 : 0].title
|
|
8008
8021
|
),
|
|
8009
|
-
vidUrl && React__default[
|
|
8022
|
+
vidUrl && React__default['default'].createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
8010
8023
|
)
|
|
8011
8024
|
),
|
|
8012
|
-
React__default[
|
|
8013
|
-
React__default[
|
|
8025
|
+
React__default['default'].createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
8026
|
+
React__default['default'].createElement(
|
|
8014
8027
|
'div',
|
|
8015
8028
|
{ className: 'vid-text' },
|
|
8016
|
-
Videos[series - 1] && Videos[series - 1].text && React__default[
|
|
8029
|
+
Videos[series - 1] && Videos[series - 1].text && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
8017
8030
|
),
|
|
8018
|
-
React__default[
|
|
8031
|
+
React__default['default'].createElement(
|
|
8019
8032
|
'style',
|
|
8020
8033
|
{ jsx: 'true' },
|
|
8021
8034
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8068,67 +8081,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8068
8081
|
return acc;
|
|
8069
8082
|
}
|
|
8070
8083
|
}, 0);
|
|
8071
|
-
return React__default[
|
|
8072
|
-
React__default[
|
|
8084
|
+
return React__default['default'].createElement(
|
|
8085
|
+
React__default['default'].Fragment,
|
|
8073
8086
|
null,
|
|
8074
|
-
question && React__default[
|
|
8087
|
+
question && React__default['default'].createElement(
|
|
8075
8088
|
'p',
|
|
8076
8089
|
{ className: 'font-weight-bold' },
|
|
8077
8090
|
question
|
|
8078
8091
|
),
|
|
8079
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8092
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8080
8093
|
'form',
|
|
8081
8094
|
{ onSubmit: function onSubmit(e) {
|
|
8082
8095
|
return onSubmitPoll(e);
|
|
8083
8096
|
} },
|
|
8084
8097
|
choices && choices.map(function (choice) {
|
|
8085
|
-
return React__default[
|
|
8098
|
+
return React__default['default'].createElement(
|
|
8086
8099
|
'div',
|
|
8087
8100
|
{ key: choice._key },
|
|
8088
|
-
React__default[
|
|
8101
|
+
React__default['default'].createElement(
|
|
8089
8102
|
'label',
|
|
8090
8103
|
{ className: 'pl-2' },
|
|
8091
|
-
React__default[
|
|
8104
|
+
React__default['default'].createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8092
8105
|
return setSelectedChoice(e.target.value);
|
|
8093
8106
|
} }),
|
|
8094
8107
|
' ' + choice.choiceText
|
|
8095
8108
|
)
|
|
8096
8109
|
);
|
|
8097
8110
|
}),
|
|
8098
|
-
React__default[
|
|
8111
|
+
React__default['default'].createElement(
|
|
8099
8112
|
reactBootstrap.Button,
|
|
8100
8113
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8101
8114
|
'Vote'
|
|
8102
8115
|
)
|
|
8103
8116
|
),
|
|
8104
|
-
React__default[
|
|
8117
|
+
React__default['default'].createElement(
|
|
8105
8118
|
'div',
|
|
8106
8119
|
{ className: 'progress-container' },
|
|
8107
8120
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8108
8121
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8109
|
-
return React__default[
|
|
8122
|
+
return React__default['default'].createElement(
|
|
8110
8123
|
'div',
|
|
8111
8124
|
{ key: choice._key, className: 'mb-3' },
|
|
8112
|
-
React__default[
|
|
8125
|
+
React__default['default'].createElement(
|
|
8113
8126
|
'div',
|
|
8114
8127
|
{ className: 'correct-answer' },
|
|
8115
|
-
React__default[
|
|
8128
|
+
React__default['default'].createElement(
|
|
8116
8129
|
'div',
|
|
8117
8130
|
null,
|
|
8118
8131
|
choice.choiceText
|
|
8119
8132
|
),
|
|
8120
|
-
choice.choiceAnswer === true && React__default[
|
|
8133
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8121
8134
|
'div',
|
|
8122
8135
|
null,
|
|
8123
|
-
React__default[
|
|
8136
|
+
React__default['default'].createElement(
|
|
8124
8137
|
'span',
|
|
8125
8138
|
{ style: { color: 'limegreen' } },
|
|
8126
8139
|
'Correct!'
|
|
8127
8140
|
)
|
|
8128
8141
|
)
|
|
8129
8142
|
),
|
|
8130
|
-
React__default[
|
|
8131
|
-
React__default[
|
|
8143
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8144
|
+
React__default['default'].createElement(
|
|
8132
8145
|
'span',
|
|
8133
8146
|
{ className: 'float-right' },
|
|
8134
8147
|
percentage,
|
|
@@ -8139,14 +8152,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8139
8152
|
);
|
|
8140
8153
|
})
|
|
8141
8154
|
),
|
|
8142
|
-
showAnswer && React__default[
|
|
8155
|
+
showAnswer && React__default['default'].createElement(
|
|
8143
8156
|
'h4',
|
|
8144
8157
|
{ className: 'text-center small p-3' },
|
|
8145
8158
|
'Total Votes: ',
|
|
8146
8159
|
choicesTotalCount
|
|
8147
8160
|
),
|
|
8148
|
-
showAnswer && response && React__default[
|
|
8149
|
-
React__default[
|
|
8161
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8162
|
+
React__default['default'].createElement(
|
|
8150
8163
|
'style',
|
|
8151
8164
|
{ jsx: 'true' },
|
|
8152
8165
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8245,67 +8258,67 @@ var Poll = function Poll(_ref) {
|
|
|
8245
8258
|
return acc;
|
|
8246
8259
|
}
|
|
8247
8260
|
}, 0);
|
|
8248
|
-
return React__default[
|
|
8249
|
-
React__default[
|
|
8261
|
+
return React__default['default'].createElement(
|
|
8262
|
+
React__default['default'].Fragment,
|
|
8250
8263
|
null,
|
|
8251
|
-
question && React__default[
|
|
8264
|
+
question && React__default['default'].createElement(
|
|
8252
8265
|
'p',
|
|
8253
8266
|
{ className: 'font-weight-bold' },
|
|
8254
8267
|
question
|
|
8255
8268
|
),
|
|
8256
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8269
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8257
8270
|
'form',
|
|
8258
8271
|
{ onSubmit: function onSubmit(e) {
|
|
8259
8272
|
return onSubmitPoll(e);
|
|
8260
8273
|
} },
|
|
8261
8274
|
choices && choices.map(function (choice) {
|
|
8262
|
-
return React__default[
|
|
8275
|
+
return React__default['default'].createElement(
|
|
8263
8276
|
'div',
|
|
8264
8277
|
{ key: choice._key },
|
|
8265
|
-
React__default[
|
|
8278
|
+
React__default['default'].createElement(
|
|
8266
8279
|
'label',
|
|
8267
8280
|
{ className: 'pl-2' },
|
|
8268
|
-
React__default[
|
|
8281
|
+
React__default['default'].createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8269
8282
|
return setSelectedChoice(e.target.value);
|
|
8270
8283
|
} }),
|
|
8271
8284
|
' ' + choice.choiceText
|
|
8272
8285
|
)
|
|
8273
8286
|
);
|
|
8274
8287
|
}),
|
|
8275
|
-
React__default[
|
|
8288
|
+
React__default['default'].createElement(
|
|
8276
8289
|
reactBootstrap.Button,
|
|
8277
8290
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8278
8291
|
'Vote'
|
|
8279
8292
|
)
|
|
8280
8293
|
),
|
|
8281
|
-
React__default[
|
|
8294
|
+
React__default['default'].createElement(
|
|
8282
8295
|
'div',
|
|
8283
8296
|
{ className: 'progress-container' },
|
|
8284
8297
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8285
8298
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8286
|
-
return React__default[
|
|
8299
|
+
return React__default['default'].createElement(
|
|
8287
8300
|
'div',
|
|
8288
8301
|
{ key: choice._key, className: 'mb-3' },
|
|
8289
|
-
React__default[
|
|
8302
|
+
React__default['default'].createElement(
|
|
8290
8303
|
'div',
|
|
8291
8304
|
{ className: 'correct-answer' },
|
|
8292
|
-
React__default[
|
|
8305
|
+
React__default['default'].createElement(
|
|
8293
8306
|
'div',
|
|
8294
8307
|
null,
|
|
8295
8308
|
choice.choiceText
|
|
8296
8309
|
),
|
|
8297
|
-
choice.choiceAnswer === true && React__default[
|
|
8310
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8298
8311
|
'div',
|
|
8299
8312
|
null,
|
|
8300
|
-
React__default[
|
|
8313
|
+
React__default['default'].createElement(
|
|
8301
8314
|
'span',
|
|
8302
8315
|
{ style: { color: 'limegreen' } },
|
|
8303
8316
|
'Correct!'
|
|
8304
8317
|
)
|
|
8305
8318
|
)
|
|
8306
8319
|
),
|
|
8307
|
-
React__default[
|
|
8308
|
-
React__default[
|
|
8320
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8321
|
+
React__default['default'].createElement(
|
|
8309
8322
|
'span',
|
|
8310
8323
|
{ className: 'float-right' },
|
|
8311
8324
|
percentage,
|
|
@@ -8316,14 +8329,14 @@ var Poll = function Poll(_ref) {
|
|
|
8316
8329
|
);
|
|
8317
8330
|
})
|
|
8318
8331
|
),
|
|
8319
|
-
showAnswer && React__default[
|
|
8332
|
+
showAnswer && React__default['default'].createElement(
|
|
8320
8333
|
'h4',
|
|
8321
8334
|
{ className: 'text-center small p-3' },
|
|
8322
8335
|
'Total Votes: ',
|
|
8323
8336
|
choicesTotalCount
|
|
8324
8337
|
),
|
|
8325
|
-
showAnswer && response && React__default[
|
|
8326
|
-
React__default[
|
|
8338
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8339
|
+
React__default['default'].createElement(
|
|
8327
8340
|
'style',
|
|
8328
8341
|
{ jsx: 'true' },
|
|
8329
8342
|
'\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 '
|
|
@@ -8467,34 +8480,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
8467
8480
|
};
|
|
8468
8481
|
|
|
8469
8482
|
var renderPagination = function renderPagination() {
|
|
8470
|
-
return React__default[
|
|
8471
|
-
Pagination__default[
|
|
8483
|
+
return React__default['default'].createElement(
|
|
8484
|
+
Pagination__default['default'],
|
|
8472
8485
|
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
8473
|
-
React__default[
|
|
8486
|
+
React__default['default'].createElement(Pagination__default['default'].First, { onClick: function onClick() {
|
|
8474
8487
|
return changePage('first');
|
|
8475
8488
|
}, disabled: currentPage === 1 }),
|
|
8476
|
-
React__default[
|
|
8489
|
+
React__default['default'].createElement(Pagination__default['default'].Prev, { onClick: function onClick() {
|
|
8477
8490
|
return changePage('prev');
|
|
8478
8491
|
}, disabled: currentPage === 1 }),
|
|
8479
|
-
React__default[
|
|
8492
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
8480
8493
|
return renderNewPages('prev');
|
|
8481
8494
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8482
8495
|
pages.map(function (page) {
|
|
8483
|
-
return React__default[
|
|
8484
|
-
Pagination__default[
|
|
8496
|
+
return React__default['default'].createElement(
|
|
8497
|
+
Pagination__default['default'].Item,
|
|
8485
8498
|
{ key: page, active: page === parseInt(currentPage), onClick: function onClick() {
|
|
8486
8499
|
return changePage(page);
|
|
8487
8500
|
} },
|
|
8488
8501
|
page
|
|
8489
8502
|
);
|
|
8490
8503
|
}),
|
|
8491
|
-
React__default[
|
|
8504
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
8492
8505
|
return renderNewPages('next');
|
|
8493
8506
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8494
|
-
React__default[
|
|
8507
|
+
React__default['default'].createElement(Pagination__default['default'].Next, { onClick: function onClick() {
|
|
8495
8508
|
return changePage('next');
|
|
8496
8509
|
}, disabled: currentPage === pageCount }),
|
|
8497
|
-
React__default[
|
|
8510
|
+
React__default['default'].createElement(Pagination__default['default'].Last, { onClick: function onClick() {
|
|
8498
8511
|
return changePage('last');
|
|
8499
8512
|
}, disabled: currentPage === pageCount })
|
|
8500
8513
|
);
|
|
@@ -8605,49 +8618,49 @@ var Quiz = function Quiz(_ref) {
|
|
|
8605
8618
|
}
|
|
8606
8619
|
};
|
|
8607
8620
|
|
|
8608
|
-
return React__default[
|
|
8609
|
-
React__default[
|
|
8621
|
+
return React__default['default'].createElement(
|
|
8622
|
+
React__default['default'].Fragment,
|
|
8610
8623
|
null,
|
|
8611
|
-
quizzes[currentPage - 1] && React__default[
|
|
8612
|
-
React__default[
|
|
8624
|
+
quizzes[currentPage - 1] && React__default['default'].createElement(
|
|
8625
|
+
React__default['default'].Fragment,
|
|
8613
8626
|
null,
|
|
8614
|
-
React__default[
|
|
8615
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default[
|
|
8627
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8628
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default['default'].createElement(
|
|
8616
8629
|
'form',
|
|
8617
8630
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8618
8631
|
return e.preventDefault();
|
|
8619
8632
|
} },
|
|
8620
8633
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8621
|
-
return React__default[
|
|
8634
|
+
return React__default['default'].createElement(
|
|
8622
8635
|
'div',
|
|
8623
8636
|
{ key: answer._key },
|
|
8624
|
-
React__default[
|
|
8637
|
+
React__default['default'].createElement(
|
|
8625
8638
|
'label',
|
|
8626
8639
|
{ className: 'pl-2' },
|
|
8627
|
-
quizzes[currentPage - 1].multiAnswer ? React__default[
|
|
8640
|
+
quizzes[currentPage - 1].multiAnswer ? React__default['default'].createElement('input', { type: 'checkbox', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }) : React__default['default'].createElement('input', { type: 'radio', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }),
|
|
8628
8641
|
' ' + answer.answerText
|
|
8629
8642
|
)
|
|
8630
8643
|
);
|
|
8631
8644
|
})
|
|
8632
8645
|
)
|
|
8633
8646
|
),
|
|
8634
|
-
!showAnswer && React__default[
|
|
8635
|
-
Button__default[
|
|
8647
|
+
!showAnswer && React__default['default'].createElement(
|
|
8648
|
+
Button__default['default'],
|
|
8636
8649
|
{ onClick: function onClick(e) {
|
|
8637
8650
|
return checkAnswers(e);
|
|
8638
8651
|
}, variant: 'info', block: true },
|
|
8639
8652
|
'Please click here for answer'
|
|
8640
8653
|
),
|
|
8641
|
-
quizzes[currentPage - 1] && showAnswer && React__default[
|
|
8642
|
-
React__default[
|
|
8654
|
+
quizzes[currentPage - 1] && showAnswer && React__default['default'].createElement(
|
|
8655
|
+
React__default['default'].Fragment,
|
|
8643
8656
|
null,
|
|
8644
|
-
quizzes[currentPage - 1].answer && React__default[
|
|
8657
|
+
quizzes[currentPage - 1].answer && React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8645
8658
|
),
|
|
8646
|
-
React__default[
|
|
8647
|
-
firstRender && React__default[
|
|
8648
|
-
React__default[
|
|
8659
|
+
React__default['default'].createElement('br', null),
|
|
8660
|
+
firstRender && React__default['default'].createElement(
|
|
8661
|
+
React__default['default'].Fragment,
|
|
8649
8662
|
null,
|
|
8650
|
-
pageCount > 1 && currentPage && React__default[
|
|
8663
|
+
pageCount > 1 && currentPage && React__default['default'].createElement(
|
|
8651
8664
|
'div',
|
|
8652
8665
|
{ className: 'd-flex justify-content-center' },
|
|
8653
8666
|
renderPagination()
|
|
@@ -8659,15 +8672,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8659
8672
|
var Leads = function Leads(_ref) {
|
|
8660
8673
|
var url = _ref.url;
|
|
8661
8674
|
|
|
8662
|
-
return React__default[
|
|
8675
|
+
return React__default['default'].createElement(
|
|
8663
8676
|
'div',
|
|
8664
8677
|
{ className: 'd-block text-center mb-3' },
|
|
8665
|
-
React__default[
|
|
8678
|
+
React__default['default'].createElement(
|
|
8666
8679
|
'style',
|
|
8667
8680
|
{ jsx: 'true' },
|
|
8668
8681
|
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8669
8682
|
),
|
|
8670
|
-
url && React__default[
|
|
8683
|
+
url && React__default['default'].createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8671
8684
|
);
|
|
8672
8685
|
};
|
|
8673
8686
|
|
|
@@ -8709,49 +8722,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8709
8722
|
if (pageview) pageview(href);
|
|
8710
8723
|
};
|
|
8711
8724
|
|
|
8712
|
-
return React__default[
|
|
8725
|
+
return React__default['default'].createElement(
|
|
8713
8726
|
'div',
|
|
8714
8727
|
{ className: 'mt-3 mb-4' },
|
|
8715
|
-
React__default[
|
|
8728
|
+
React__default['default'].createElement(
|
|
8716
8729
|
reactBootstrap.Carousel,
|
|
8717
8730
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8718
8731
|
slides && slides.map(function (slide) {
|
|
8719
8732
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8720
|
-
return React__default[
|
|
8733
|
+
return React__default['default'].createElement(
|
|
8721
8734
|
reactBootstrap.Carousel.Item,
|
|
8722
8735
|
{ key: slide._key },
|
|
8723
|
-
React__default[
|
|
8736
|
+
React__default['default'].createElement(
|
|
8724
8737
|
'a',
|
|
8725
8738
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8726
|
-
React__default[
|
|
8739
|
+
React__default['default'].createElement(
|
|
8727
8740
|
'div',
|
|
8728
8741
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8729
|
-
React__default[
|
|
8742
|
+
React__default['default'].createElement(
|
|
8730
8743
|
'picture',
|
|
8731
8744
|
null,
|
|
8732
|
-
React__default[
|
|
8733
|
-
React__default[
|
|
8734
|
-
React__default[
|
|
8735
|
-
React__default[
|
|
8745
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8746
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8747
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8748
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8736
8749
|
)
|
|
8737
8750
|
)
|
|
8738
8751
|
),
|
|
8739
|
-
React__default[
|
|
8752
|
+
React__default['default'].createElement(
|
|
8740
8753
|
'div',
|
|
8741
8754
|
{ className: 'p-2' },
|
|
8742
|
-
slide.slideshowImage.caption && React__default[
|
|
8755
|
+
slide.slideshowImage.caption && React__default['default'].createElement(
|
|
8743
8756
|
'h3',
|
|
8744
8757
|
{ style: { padding: '0px' } },
|
|
8745
8758
|
slide.slideshowImage.caption
|
|
8746
8759
|
),
|
|
8747
|
-
slide.description && React__default[
|
|
8760
|
+
slide.description && React__default['default'].createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8748
8761
|
)
|
|
8749
8762
|
);
|
|
8750
8763
|
}
|
|
8751
8764
|
return null;
|
|
8752
8765
|
})
|
|
8753
8766
|
),
|
|
8754
|
-
React__default[
|
|
8767
|
+
React__default['default'].createElement(
|
|
8755
8768
|
'style',
|
|
8756
8769
|
{ jsx: 'true' },
|
|
8757
8770
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\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 '
|
|
@@ -8770,10 +8783,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8770
8783
|
sizes = _props$node.sizes,
|
|
8771
8784
|
sizeMapping = _props$node.sizeMapping;
|
|
8772
8785
|
|
|
8773
|
-
return React__default[
|
|
8786
|
+
return React__default['default'].createElement(
|
|
8774
8787
|
'div',
|
|
8775
8788
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8776
|
-
React__default[
|
|
8789
|
+
React__default['default'].createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8777
8790
|
);
|
|
8778
8791
|
};
|
|
8779
8792
|
|
|
@@ -8784,15 +8797,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8784
8797
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8785
8798
|
|
|
8786
8799
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8787
|
-
return React__default[
|
|
8800
|
+
return React__default['default'].createElement(
|
|
8788
8801
|
'section',
|
|
8789
8802
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8790
|
-
Caption && React__default[
|
|
8803
|
+
Caption && React__default['default'].createElement(
|
|
8791
8804
|
'h4',
|
|
8792
8805
|
{ className: 'formstack-caption' },
|
|
8793
8806
|
Caption
|
|
8794
8807
|
),
|
|
8795
|
-
React__default[
|
|
8808
|
+
React__default['default'].createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8796
8809
|
);
|
|
8797
8810
|
};
|
|
8798
8811
|
|
|
@@ -8808,36 +8821,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8808
8821
|
}
|
|
8809
8822
|
});
|
|
8810
8823
|
if (medias && medias.length > 0) {
|
|
8811
|
-
return React__default[
|
|
8824
|
+
return React__default['default'].createElement(
|
|
8812
8825
|
'div',
|
|
8813
8826
|
{ className: 'multi-media-container' },
|
|
8814
|
-
React__default[
|
|
8815
|
-
Row__default[
|
|
8827
|
+
React__default['default'].createElement(
|
|
8828
|
+
Row__default['default'],
|
|
8816
8829
|
{ noGutters: true },
|
|
8817
8830
|
medias.map(function (media) {
|
|
8818
|
-
return React__default[
|
|
8819
|
-
Col__default[
|
|
8831
|
+
return React__default['default'].createElement(
|
|
8832
|
+
Col__default['default'],
|
|
8820
8833
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8821
|
-
React__default[
|
|
8834
|
+
React__default['default'].createElement(
|
|
8822
8835
|
'a',
|
|
8823
8836
|
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile.urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8824
8837
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8825
|
-
React__default[
|
|
8838
|
+
React__default['default'].createElement(
|
|
8826
8839
|
'div',
|
|
8827
8840
|
{ className: 'multi-media-image-container' },
|
|
8828
|
-
imageBox && React__default[
|
|
8841
|
+
imageBox && React__default['default'].createElement(
|
|
8829
8842
|
index$2.LazyLoad,
|
|
8830
8843
|
{ once: true },
|
|
8831
|
-
React__default[
|
|
8844
|
+
React__default['default'].createElement(
|
|
8832
8845
|
'picture',
|
|
8833
8846
|
null,
|
|
8834
|
-
React__default[
|
|
8835
|
-
React__default[
|
|
8836
|
-
React__default[
|
|
8837
|
-
React__default[
|
|
8847
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8848
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8849
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8850
|
+
React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8838
8851
|
)
|
|
8839
8852
|
),
|
|
8840
|
-
media.caption && React__default[
|
|
8853
|
+
media.caption && React__default['default'].createElement(
|
|
8841
8854
|
'span',
|
|
8842
8855
|
{ className: 'multi-media-caption' },
|
|
8843
8856
|
media.caption
|
|
@@ -8847,7 +8860,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8847
8860
|
);
|
|
8848
8861
|
})
|
|
8849
8862
|
),
|
|
8850
|
-
React__default[
|
|
8863
|
+
React__default['default'].createElement(
|
|
8851
8864
|
'style',
|
|
8852
8865
|
{ jsx: 'true' },
|
|
8853
8866
|
'\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 '
|
|
@@ -8894,7 +8907,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8894
8907
|
}
|
|
8895
8908
|
};
|
|
8896
8909
|
|
|
8897
|
-
_this.wraperRef = React__default[
|
|
8910
|
+
_this.wraperRef = React__default['default'].createRef();
|
|
8898
8911
|
_this.visible = false;
|
|
8899
8912
|
return _this;
|
|
8900
8913
|
}
|
|
@@ -8922,7 +8935,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8922
8935
|
_props$id = _props.id,
|
|
8923
8936
|
id = _props$id === undefined ? '' : _props$id;
|
|
8924
8937
|
|
|
8925
|
-
return React__default[
|
|
8938
|
+
return React__default['default'].createElement(
|
|
8926
8939
|
'div',
|
|
8927
8940
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8928
8941
|
this.props.children
|
|
@@ -8931,7 +8944,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8931
8944
|
}]);
|
|
8932
8945
|
|
|
8933
8946
|
return InscreenSensor;
|
|
8934
|
-
}(React__default[
|
|
8947
|
+
}(React__default['default'].Component);
|
|
8935
8948
|
|
|
8936
8949
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8937
8950
|
var nodes = _ref.nodes,
|
|
@@ -9042,33 +9055,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9042
9055
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9043
9056
|
var showReading = show ? 'showReading' : '';
|
|
9044
9057
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9045
|
-
return React__default[
|
|
9058
|
+
return React__default['default'].createElement(
|
|
9046
9059
|
'div',
|
|
9047
9060
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9048
|
-
React__default[
|
|
9061
|
+
React__default['default'].createElement(
|
|
9049
9062
|
'a',
|
|
9050
9063
|
{ onClick: function onClick(e) {
|
|
9051
9064
|
return articleCardClickHandler(e);
|
|
9052
9065
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9053
|
-
React__default[
|
|
9066
|
+
React__default['default'].createElement(
|
|
9054
9067
|
'div',
|
|
9055
9068
|
{ className: 'prevNext-thumbnail' },
|
|
9056
|
-
React__default[
|
|
9057
|
-
React__default[
|
|
9069
|
+
React__default['default'].createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
9070
|
+
React__default['default'].createElement(
|
|
9058
9071
|
'div',
|
|
9059
9072
|
{ className: 'prevNext-reading ' + showReading },
|
|
9060
9073
|
articleLabel
|
|
9061
9074
|
)
|
|
9062
9075
|
),
|
|
9063
|
-
React__default[
|
|
9076
|
+
React__default['default'].createElement(
|
|
9064
9077
|
'div',
|
|
9065
9078
|
{ className: 'prevNext-summary' },
|
|
9066
|
-
React__default[
|
|
9079
|
+
React__default['default'].createElement(
|
|
9067
9080
|
'div',
|
|
9068
9081
|
{ className: 'prevNext-publishDate' },
|
|
9069
9082
|
moment.moment(article.published).format('LL')
|
|
9070
9083
|
),
|
|
9071
|
-
React__default[
|
|
9084
|
+
React__default['default'].createElement(
|
|
9072
9085
|
'h2',
|
|
9073
9086
|
{ className: 'prevNext-title' },
|
|
9074
9087
|
article.title
|
|
@@ -9117,7 +9130,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9117
9130
|
|
|
9118
9131
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9119
9132
|
if (biography) {
|
|
9120
|
-
return React__default[
|
|
9133
|
+
return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9121
9134
|
}
|
|
9122
9135
|
};
|
|
9123
9136
|
|
|
@@ -9275,40 +9288,40 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9275
9288
|
setSensorVisible(false);
|
|
9276
9289
|
};
|
|
9277
9290
|
|
|
9278
|
-
return React__default[
|
|
9279
|
-
React__default[
|
|
9291
|
+
return React__default['default'].createElement(
|
|
9292
|
+
React__default['default'].Fragment,
|
|
9280
9293
|
null,
|
|
9281
|
-
React__default[
|
|
9294
|
+
React__default['default'].createElement(
|
|
9282
9295
|
'div',
|
|
9283
9296
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9284
|
-
React__default[
|
|
9297
|
+
React__default['default'].createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9285
9298
|
return handleArrowClick();
|
|
9286
9299
|
} })
|
|
9287
9300
|
),
|
|
9288
|
-
React__default[
|
|
9289
|
-
React__default[
|
|
9301
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' }),
|
|
9302
|
+
React__default['default'].createElement(
|
|
9290
9303
|
'div',
|
|
9291
9304
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9292
|
-
React__default[
|
|
9305
|
+
React__default['default'].createElement(
|
|
9293
9306
|
'h5',
|
|
9294
9307
|
{ className: 'objective-title' },
|
|
9295
9308
|
nodes.seriesTitle
|
|
9296
9309
|
),
|
|
9297
|
-
React__default[
|
|
9310
|
+
React__default['default'].createElement(
|
|
9298
9311
|
'div',
|
|
9299
9312
|
{ className: 'prevNextWrapper' },
|
|
9300
9313
|
PrevNextCards(false, -1)
|
|
9301
9314
|
)
|
|
9302
9315
|
),
|
|
9303
|
-
React__default[
|
|
9304
|
-
React__default[
|
|
9316
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' }),
|
|
9317
|
+
React__default['default'].createElement(
|
|
9305
9318
|
'div',
|
|
9306
9319
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
9307
9320
|
Articles.map(function (article, index) {
|
|
9308
|
-
return React__default[
|
|
9321
|
+
return React__default['default'].createElement(
|
|
9309
9322
|
'div',
|
|
9310
9323
|
{ key: article.title },
|
|
9311
|
-
React__default[
|
|
9324
|
+
React__default['default'].createElement(
|
|
9312
9325
|
InscreenSensor,
|
|
9313
9326
|
{
|
|
9314
9327
|
visible: sensorVisible,
|
|
@@ -9326,82 +9339,82 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9326
9339
|
}
|
|
9327
9340
|
}
|
|
9328
9341
|
} },
|
|
9329
|
-
React__default[
|
|
9330
|
-
Head__default[
|
|
9342
|
+
React__default['default'].createElement(
|
|
9343
|
+
Head__default['default'],
|
|
9331
9344
|
null,
|
|
9332
|
-
currentTitle !== null && React__default[
|
|
9345
|
+
currentTitle !== null && React__default['default'].createElement(
|
|
9333
9346
|
'title',
|
|
9334
9347
|
{ key: 'title' },
|
|
9335
9348
|
currentTitle
|
|
9336
9349
|
),
|
|
9337
|
-
currentSummary !== null && React__default[
|
|
9338
|
-
currentURL !== null && React__default[
|
|
9339
|
-
currentTitle !== null && React__default[
|
|
9340
|
-
currentThumbnail !== null && React__default[
|
|
9341
|
-
currentSummary !== null && React__default[
|
|
9342
|
-
currentTitle !== null && React__default[
|
|
9343
|
-
currentThumbnail !== null && React__default[
|
|
9344
|
-
currentSummary !== null && React__default[
|
|
9350
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
9351
|
+
currentURL !== null && React__default['default'].createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
9352
|
+
currentTitle !== null && React__default['default'].createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
9353
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
9354
|
+
currentSummary !== null && React__default['default'].createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
9355
|
+
currentTitle !== null && React__default['default'].createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
9356
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
9357
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
9345
9358
|
),
|
|
9346
|
-
React__default[
|
|
9359
|
+
React__default['default'].createElement(
|
|
9347
9360
|
'article',
|
|
9348
9361
|
{ className: 'article-wrapper' },
|
|
9349
|
-
React__default[
|
|
9362
|
+
React__default['default'].createElement(
|
|
9350
9363
|
'div',
|
|
9351
9364
|
{ className: 'article-publishDate' },
|
|
9352
9365
|
moment.moment(article.published).format('LL')
|
|
9353
9366
|
),
|
|
9354
|
-
React__default[
|
|
9367
|
+
React__default['default'].createElement(
|
|
9355
9368
|
'div',
|
|
9356
9369
|
{ className: 'author-details-wrapper' },
|
|
9357
9370
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
9358
|
-
return React__default[
|
|
9371
|
+
return React__default['default'].createElement(
|
|
9359
9372
|
'span',
|
|
9360
9373
|
{ key: index },
|
|
9361
9374
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
9362
9375
|
);
|
|
9363
9376
|
})
|
|
9364
9377
|
),
|
|
9365
|
-
React__default[
|
|
9378
|
+
React__default['default'].createElement(
|
|
9366
9379
|
'h2',
|
|
9367
9380
|
{ className: 'article-title' },
|
|
9368
9381
|
article.title
|
|
9369
9382
|
),
|
|
9370
|
-
React__default[
|
|
9383
|
+
React__default['default'].createElement(
|
|
9371
9384
|
'div',
|
|
9372
9385
|
{ className: 'mt-2 mb-2' },
|
|
9373
|
-
React__default[
|
|
9386
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
9374
9387
|
serializers: getSerializers,
|
|
9375
9388
|
videoAccountIDs: accountIDs,
|
|
9376
9389
|
blocks: article.text,
|
|
9377
9390
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
9378
9391
|
}, client.config())),
|
|
9379
|
-
React__default[
|
|
9392
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' })
|
|
9380
9393
|
),
|
|
9381
|
-
Articles.length > 1 && React__default[
|
|
9382
|
-
React__default[
|
|
9394
|
+
Articles.length > 1 && React__default['default'].createElement(
|
|
9395
|
+
React__default['default'].Fragment,
|
|
9383
9396
|
null,
|
|
9384
|
-
React__default[
|
|
9397
|
+
React__default['default'].createElement(
|
|
9385
9398
|
'div',
|
|
9386
9399
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9387
|
-
React__default[
|
|
9400
|
+
React__default['default'].createElement(
|
|
9388
9401
|
'h5',
|
|
9389
9402
|
{ className: 'objective-title' },
|
|
9390
9403
|
nodes.seriesTitle
|
|
9391
9404
|
),
|
|
9392
|
-
React__default[
|
|
9405
|
+
React__default['default'].createElement(
|
|
9393
9406
|
'div',
|
|
9394
9407
|
{ className: 'prevNextWrapper' },
|
|
9395
9408
|
PrevNextCards(true, index)
|
|
9396
9409
|
)
|
|
9397
9410
|
),
|
|
9398
|
-
React__default[
|
|
9411
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' })
|
|
9399
9412
|
)
|
|
9400
9413
|
)
|
|
9401
9414
|
)
|
|
9402
9415
|
);
|
|
9403
9416
|
}),
|
|
9404
|
-
React__default[
|
|
9417
|
+
React__default['default'].createElement(
|
|
9405
9418
|
'style',
|
|
9406
9419
|
{ jsx: 'true' },
|
|
9407
9420
|
'\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 '
|
|
@@ -9431,11 +9444,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
9431
9444
|
};
|
|
9432
9445
|
}, [handleClickOutside]);
|
|
9433
9446
|
|
|
9434
|
-
return React__default[
|
|
9447
|
+
return React__default['default'].createElement(
|
|
9435
9448
|
'div',
|
|
9436
9449
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9437
|
-
React__default[
|
|
9438
|
-
React__default[
|
|
9450
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
9451
|
+
React__default['default'].createElement(
|
|
9439
9452
|
'style',
|
|
9440
9453
|
{ jsx: 'true' },
|
|
9441
9454
|
'\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 '
|
|
@@ -9449,7 +9462,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9449
9462
|
}
|
|
9450
9463
|
};
|
|
9451
9464
|
|
|
9452
|
-
var FigureImage$1 = React__default[
|
|
9465
|
+
var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
9453
9466
|
var node = _ref2.node,
|
|
9454
9467
|
client = _ref2.client,
|
|
9455
9468
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9457,13 +9470,13 @@ var FigureImage$1 = React__default["default"].memo(function (_ref2) {
|
|
|
9457
9470
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9458
9471
|
|
|
9459
9472
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9460
|
-
return React__default[
|
|
9473
|
+
return React__default['default'].createElement(
|
|
9461
9474
|
'picture',
|
|
9462
9475
|
null,
|
|
9463
|
-
React__default[
|
|
9464
|
-
React__default[
|
|
9465
|
-
React__default[
|
|
9466
|
-
React__default[
|
|
9476
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9477
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9478
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9479
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9467
9480
|
style: figureImageStyle,
|
|
9468
9481
|
className: 'figure-image',
|
|
9469
9482
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9514,30 +9527,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9514
9527
|
|
|
9515
9528
|
var renderTooltip = function renderTooltip(props) {
|
|
9516
9529
|
if (infoBox[0].title) {
|
|
9517
|
-
return React__default[
|
|
9518
|
-
Popover__default[
|
|
9530
|
+
return React__default['default'].createElement(
|
|
9531
|
+
Popover__default['default'],
|
|
9519
9532
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9520
|
-
React__default[
|
|
9521
|
-
Popover__default[
|
|
9533
|
+
React__default['default'].createElement(
|
|
9534
|
+
Popover__default['default'].Title,
|
|
9522
9535
|
{ as: 'h3' },
|
|
9523
9536
|
infoBox[0].title
|
|
9524
9537
|
),
|
|
9525
|
-
React__default[
|
|
9526
|
-
Popover__default[
|
|
9538
|
+
React__default['default'].createElement(
|
|
9539
|
+
Popover__default['default'].Content,
|
|
9527
9540
|
null,
|
|
9528
|
-
React__default[
|
|
9541
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9529
9542
|
)
|
|
9530
9543
|
);
|
|
9531
9544
|
} else {
|
|
9532
|
-
return React__default[
|
|
9533
|
-
Tooltip__default[
|
|
9545
|
+
return React__default['default'].createElement(
|
|
9546
|
+
Tooltip__default['default'],
|
|
9534
9547
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9535
|
-
React__default[
|
|
9548
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9536
9549
|
);
|
|
9537
9550
|
}
|
|
9538
9551
|
};
|
|
9539
9552
|
|
|
9540
|
-
var FigureImageWOverLay = React__default[
|
|
9553
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
9541
9554
|
var node = _ref3.node,
|
|
9542
9555
|
client = _ref3.client,
|
|
9543
9556
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9547,13 +9560,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9547
9560
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9548
9561
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9549
9562
|
var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9550
|
-
return React__default[
|
|
9563
|
+
return React__default['default'].createElement(
|
|
9551
9564
|
'picture',
|
|
9552
9565
|
null,
|
|
9553
|
-
React__default[
|
|
9554
|
-
React__default[
|
|
9555
|
-
React__default[
|
|
9556
|
-
main.main_42 && link ? React__default[
|
|
9566
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9567
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9568
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9569
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
9557
9570
|
style: figureImageStyle,
|
|
9558
9571
|
className: 'figure-image',
|
|
9559
9572
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9562,10 +9575,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9562
9575
|
onClick: function onClick() {
|
|
9563
9576
|
return handleClickFigure(node, client);
|
|
9564
9577
|
}
|
|
9565
|
-
})) : React__default[
|
|
9566
|
-
OverlayTrigger__default[
|
|
9578
|
+
})) : React__default['default'].createElement(
|
|
9579
|
+
OverlayTrigger__default['default'],
|
|
9567
9580
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9568
|
-
React__default[
|
|
9581
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9569
9582
|
style: figureImageStyle,
|
|
9570
9583
|
className: 'figure-image',
|
|
9571
9584
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9619,13 +9632,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9619
9632
|
|
|
9620
9633
|
var FigureCaption = React.useCallback(function () {
|
|
9621
9634
|
if (imgcaption && imgcaption.length > 0) {
|
|
9622
|
-
return React__default[
|
|
9635
|
+
return React__default['default'].createElement(
|
|
9623
9636
|
'div',
|
|
9624
9637
|
{ className: 'figure-caption' },
|
|
9625
|
-
React__default[
|
|
9638
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9626
9639
|
);
|
|
9627
9640
|
} else if (caption) {
|
|
9628
|
-
return React__default[
|
|
9641
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9629
9642
|
} else return null;
|
|
9630
9643
|
}, [caption, imgcaption]);
|
|
9631
9644
|
|
|
@@ -9642,24 +9655,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9642
9655
|
setShowLightbox(true);
|
|
9643
9656
|
}, [node, client]);
|
|
9644
9657
|
|
|
9645
|
-
return React__default[
|
|
9646
|
-
React__default[
|
|
9658
|
+
return React__default['default'].createElement(
|
|
9659
|
+
React__default['default'].Fragment,
|
|
9647
9660
|
null,
|
|
9648
|
-
infoBox.length >= 1 ? React__default[
|
|
9649
|
-
Figure__default[
|
|
9661
|
+
infoBox.length >= 1 ? React__default['default'].createElement(
|
|
9662
|
+
Figure__default['default'],
|
|
9650
9663
|
{ className: '' + class_name, style: figureStyle },
|
|
9651
|
-
link ? React__default[
|
|
9664
|
+
link ? React__default['default'].createElement(
|
|
9652
9665
|
'a',
|
|
9653
9666
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9654
|
-
React__default[
|
|
9655
|
-
React__default[
|
|
9656
|
-
) : React__default[
|
|
9657
|
-
React__default[
|
|
9667
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9668
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9669
|
+
) : React__default['default'].createElement(
|
|
9670
|
+
React__default['default'].Fragment,
|
|
9658
9671
|
null,
|
|
9659
|
-
React__default[
|
|
9660
|
-
React__default[
|
|
9672
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9673
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9661
9674
|
),
|
|
9662
|
-
React__default[
|
|
9675
|
+
React__default['default'].createElement(LightBox, {
|
|
9663
9676
|
showLightbox: showLightbox,
|
|
9664
9677
|
lightboxImgSrc: lightboxImgSrc,
|
|
9665
9678
|
closeLightbox: function closeLightbox() {
|
|
@@ -9667,21 +9680,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9667
9680
|
setShowLightbox(false);
|
|
9668
9681
|
}
|
|
9669
9682
|
})
|
|
9670
|
-
) : React__default[
|
|
9671
|
-
Figure__default[
|
|
9683
|
+
) : React__default['default'].createElement(
|
|
9684
|
+
Figure__default['default'],
|
|
9672
9685
|
{ className: '' + class_name, style: figureStyle },
|
|
9673
|
-
link ? React__default[
|
|
9686
|
+
link ? React__default['default'].createElement(
|
|
9674
9687
|
'a',
|
|
9675
9688
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9676
|
-
React__default[
|
|
9677
|
-
React__default[
|
|
9678
|
-
) : React__default[
|
|
9679
|
-
React__default[
|
|
9689
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9690
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9691
|
+
) : React__default['default'].createElement(
|
|
9692
|
+
React__default['default'].Fragment,
|
|
9680
9693
|
null,
|
|
9681
|
-
React__default[
|
|
9682
|
-
React__default[
|
|
9694
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9695
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9683
9696
|
),
|
|
9684
|
-
React__default[
|
|
9697
|
+
React__default['default'].createElement(LightBox, {
|
|
9685
9698
|
showLightbox: showLightbox,
|
|
9686
9699
|
lightboxImgSrc: lightboxImgSrc,
|
|
9687
9700
|
closeLightbox: function closeLightbox() {
|
|
@@ -9690,7 +9703,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9690
9703
|
}
|
|
9691
9704
|
})
|
|
9692
9705
|
),
|
|
9693
|
-
React__default[
|
|
9706
|
+
React__default['default'].createElement(
|
|
9694
9707
|
'style',
|
|
9695
9708
|
{ jsx: 'true' },
|
|
9696
9709
|
'\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 '
|
|
@@ -9698,7 +9711,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9698
9711
|
);
|
|
9699
9712
|
};
|
|
9700
9713
|
|
|
9701
|
-
var Figure = React__default[
|
|
9714
|
+
var Figure = React__default['default'].memo(FigureComponent, compareProps);
|
|
9702
9715
|
|
|
9703
9716
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9704
9717
|
React.useEffect(function () {
|
|
@@ -9715,7 +9728,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9715
9728
|
}, [ref]);
|
|
9716
9729
|
}
|
|
9717
9730
|
|
|
9718
|
-
var FigureImage = React__default[
|
|
9731
|
+
var FigureImage = React__default['default'].memo(function (_ref) {
|
|
9719
9732
|
var imagesCount = _ref.imagesCount,
|
|
9720
9733
|
image = _ref.image,
|
|
9721
9734
|
client = _ref.client,
|
|
@@ -9723,13 +9736,13 @@ var FigureImage = React__default["default"].memo(function (_ref) {
|
|
|
9723
9736
|
link = _ref.link,
|
|
9724
9737
|
handleClickFigure = _ref.handleClickFigure;
|
|
9725
9738
|
|
|
9726
|
-
return React__default[
|
|
9739
|
+
return React__default['default'].createElement(
|
|
9727
9740
|
'picture',
|
|
9728
9741
|
null,
|
|
9729
|
-
React__default[
|
|
9730
|
-
React__default[
|
|
9731
|
-
React__default[
|
|
9732
|
-
React__default[
|
|
9742
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9743
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9744
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9745
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9733
9746
|
'images-count': imagesCount,
|
|
9734
9747
|
className: 'multi-figure-image',
|
|
9735
9748
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9766,13 +9779,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9766
9779
|
imgcaption = _ref2.imgcaption;
|
|
9767
9780
|
|
|
9768
9781
|
if (imgcaption && imgcaption.length > 0) {
|
|
9769
|
-
return React__default[
|
|
9782
|
+
return React__default['default'].createElement(
|
|
9770
9783
|
'div',
|
|
9771
9784
|
{ className: 'multi-figure-caption' },
|
|
9772
|
-
React__default[
|
|
9785
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9773
9786
|
);
|
|
9774
9787
|
} else if (caption) {
|
|
9775
|
-
return React__default[
|
|
9788
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9776
9789
|
} else return null;
|
|
9777
9790
|
};
|
|
9778
9791
|
|
|
@@ -9781,7 +9794,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9781
9794
|
setOpenImg(true);
|
|
9782
9795
|
}, [client]);
|
|
9783
9796
|
|
|
9784
|
-
var FigureImageWOverLay = React__default[
|
|
9797
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
9785
9798
|
var imagesCount = _ref3.imagesCount,
|
|
9786
9799
|
image = _ref3.image,
|
|
9787
9800
|
client = _ref3.client,
|
|
@@ -9791,13 +9804,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9791
9804
|
|
|
9792
9805
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9793
9806
|
var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9794
|
-
return React__default[
|
|
9807
|
+
return React__default['default'].createElement(
|
|
9795
9808
|
'picture',
|
|
9796
9809
|
null,
|
|
9797
|
-
React__default[
|
|
9798
|
-
React__default[
|
|
9799
|
-
React__default[
|
|
9800
|
-
main.main_42 && link ? React__default[
|
|
9810
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9811
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9812
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9813
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
9801
9814
|
'images-count': imagesCount,
|
|
9802
9815
|
className: 'multi-figure-image',
|
|
9803
9816
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9806,10 +9819,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9806
9819
|
onClick: function onClick() {
|
|
9807
9820
|
return handleClickFigure(image, client);
|
|
9808
9821
|
}
|
|
9809
|
-
})) : React__default[
|
|
9810
|
-
OverlayTrigger__default[
|
|
9822
|
+
})) : React__default['default'].createElement(
|
|
9823
|
+
OverlayTrigger__default['default'],
|
|
9811
9824
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9812
|
-
React__default[
|
|
9825
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9813
9826
|
'images-count': imagesCount,
|
|
9814
9827
|
className: 'multi-figure-image',
|
|
9815
9828
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9825,102 +9838,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9825
9838
|
|
|
9826
9839
|
var renderTooltip = function renderTooltip(image) {
|
|
9827
9840
|
if (image.infoBox[0].title) {
|
|
9828
|
-
return React__default[
|
|
9829
|
-
Popover__default[
|
|
9841
|
+
return React__default['default'].createElement(
|
|
9842
|
+
Popover__default['default'],
|
|
9830
9843
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9831
|
-
React__default[
|
|
9832
|
-
Popover__default[
|
|
9844
|
+
React__default['default'].createElement(
|
|
9845
|
+
Popover__default['default'].Title,
|
|
9833
9846
|
{ as: 'h3' },
|
|
9834
9847
|
image.infoBox[0].title
|
|
9835
9848
|
),
|
|
9836
|
-
React__default[
|
|
9837
|
-
Popover__default[
|
|
9849
|
+
React__default['default'].createElement(
|
|
9850
|
+
Popover__default['default'].Content,
|
|
9838
9851
|
null,
|
|
9839
|
-
React__default[
|
|
9852
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9840
9853
|
)
|
|
9841
9854
|
);
|
|
9842
9855
|
} else {
|
|
9843
|
-
return React__default[
|
|
9844
|
-
Tooltip__default[
|
|
9856
|
+
return React__default['default'].createElement(
|
|
9857
|
+
Tooltip__default['default'],
|
|
9845
9858
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9846
|
-
React__default[
|
|
9859
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9847
9860
|
);
|
|
9848
9861
|
}
|
|
9849
9862
|
};
|
|
9850
9863
|
|
|
9851
9864
|
if (images && images.length > 0) {
|
|
9852
|
-
return React__default[
|
|
9865
|
+
return React__default['default'].createElement(
|
|
9853
9866
|
'div',
|
|
9854
9867
|
{ className: 'multi-figure-container' },
|
|
9855
|
-
React__default[
|
|
9856
|
-
Row__default[
|
|
9868
|
+
React__default['default'].createElement(
|
|
9869
|
+
Row__default['default'],
|
|
9857
9870
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9858
9871
|
images.map(function (image, index) {
|
|
9859
9872
|
if (image.infoBox) {
|
|
9860
|
-
return React__default[
|
|
9861
|
-
Col__default[
|
|
9873
|
+
return React__default['default'].createElement(
|
|
9874
|
+
Col__default['default'],
|
|
9862
9875
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9863
|
-
image.link ? React__default[
|
|
9876
|
+
image.link ? React__default['default'].createElement(
|
|
9864
9877
|
'a',
|
|
9865
9878
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9866
|
-
React__default[
|
|
9879
|
+
React__default['default'].createElement(
|
|
9867
9880
|
'div',
|
|
9868
9881
|
{ className: 'multi-figure-image-container' },
|
|
9869
|
-
React__default[
|
|
9882
|
+
React__default['default'].createElement(
|
|
9870
9883
|
index$2.LazyLoad,
|
|
9871
9884
|
{ once: true },
|
|
9872
|
-
React__default[
|
|
9885
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9873
9886
|
),
|
|
9874
|
-
React__default[
|
|
9887
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9875
9888
|
)
|
|
9876
|
-
) : React__default[
|
|
9889
|
+
) : React__default['default'].createElement(
|
|
9877
9890
|
'div',
|
|
9878
9891
|
{ className: 'multi-figure-image-container' },
|
|
9879
|
-
React__default[
|
|
9892
|
+
React__default['default'].createElement(
|
|
9880
9893
|
index$2.LazyLoad,
|
|
9881
9894
|
{ once: true },
|
|
9882
|
-
React__default[
|
|
9895
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9883
9896
|
),
|
|
9884
|
-
React__default[
|
|
9897
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9885
9898
|
)
|
|
9886
9899
|
);
|
|
9887
9900
|
} else {
|
|
9888
|
-
return React__default[
|
|
9889
|
-
Col__default[
|
|
9901
|
+
return React__default['default'].createElement(
|
|
9902
|
+
Col__default['default'],
|
|
9890
9903
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9891
|
-
image.link ? React__default[
|
|
9904
|
+
image.link ? React__default['default'].createElement(
|
|
9892
9905
|
'a',
|
|
9893
9906
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9894
|
-
React__default[
|
|
9907
|
+
React__default['default'].createElement(
|
|
9895
9908
|
'div',
|
|
9896
9909
|
{ className: 'multi-figure-image-container' },
|
|
9897
|
-
React__default[
|
|
9910
|
+
React__default['default'].createElement(
|
|
9898
9911
|
index$2.LazyLoad,
|
|
9899
9912
|
{ once: true },
|
|
9900
|
-
React__default[
|
|
9913
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9901
9914
|
),
|
|
9902
|
-
React__default[
|
|
9915
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9903
9916
|
)
|
|
9904
|
-
) : React__default[
|
|
9917
|
+
) : React__default['default'].createElement(
|
|
9905
9918
|
'div',
|
|
9906
9919
|
{ className: 'multi-figure-image-container' },
|
|
9907
|
-
React__default[
|
|
9920
|
+
React__default['default'].createElement(
|
|
9908
9921
|
index$2.LazyLoad,
|
|
9909
9922
|
{ once: true },
|
|
9910
|
-
React__default[
|
|
9923
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9911
9924
|
),
|
|
9912
|
-
React__default[
|
|
9925
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9913
9926
|
)
|
|
9914
9927
|
);
|
|
9915
9928
|
}
|
|
9916
9929
|
})
|
|
9917
9930
|
),
|
|
9918
|
-
React__default[
|
|
9931
|
+
React__default['default'].createElement(
|
|
9919
9932
|
'div',
|
|
9920
9933
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9921
|
-
React__default[
|
|
9934
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9922
9935
|
),
|
|
9923
|
-
React__default[
|
|
9936
|
+
React__default['default'].createElement(
|
|
9924
9937
|
'style',
|
|
9925
9938
|
{ jsx: 'true' },
|
|
9926
9939
|
'\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 cursor: pointer;\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 '
|
|
@@ -9969,23 +9982,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9969
9982
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9970
9983
|
}, []);
|
|
9971
9984
|
|
|
9972
|
-
return React__default[
|
|
9973
|
-
React__default[
|
|
9985
|
+
return React__default['default'].createElement(
|
|
9986
|
+
React__default['default'].Fragment,
|
|
9974
9987
|
null,
|
|
9975
|
-
React__default[
|
|
9976
|
-
Head__default[
|
|
9988
|
+
React__default['default'].createElement(
|
|
9989
|
+
Head__default['default'],
|
|
9977
9990
|
null,
|
|
9978
|
-
React__default[
|
|
9991
|
+
React__default['default'].createElement('script', {
|
|
9979
9992
|
dangerouslySetInnerHTML: {
|
|
9980
9993
|
__html: 'history.scrollRestoration = "manual"'
|
|
9981
9994
|
}
|
|
9982
9995
|
})
|
|
9983
9996
|
),
|
|
9984
|
-
React__default[
|
|
9997
|
+
React__default['default'].createElement(
|
|
9985
9998
|
'div',
|
|
9986
9999
|
{ id: elementId },
|
|
9987
|
-
React__default[
|
|
9988
|
-
React__default[
|
|
10000
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
10001
|
+
React__default['default'].createElement(
|
|
9989
10002
|
'style',
|
|
9990
10003
|
{ jsx: 'true' },
|
|
9991
10004
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -10039,11 +10052,11 @@ var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
|
10039
10052
|
|
|
10040
10053
|
|
|
10041
10054
|
|
|
10042
|
-
var _react2 = _interopRequireDefault(React__default[
|
|
10055
|
+
var _react2 = _interopRequireDefault(React__default['default']);
|
|
10043
10056
|
|
|
10044
10057
|
|
|
10045
10058
|
|
|
10046
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default[
|
|
10059
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
|
|
10047
10060
|
|
|
10048
10061
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10049
10062
|
var noop = function noop() {};
|
|
@@ -10198,7 +10211,7 @@ var ScriptTag = function (_Component) {
|
|
|
10198
10211
|
};
|
|
10199
10212
|
|
|
10200
10213
|
return ScriptTag;
|
|
10201
|
-
}(React__default[
|
|
10214
|
+
}(React__default['default'].Component);
|
|
10202
10215
|
|
|
10203
10216
|
ScriptTag.propTypes = {
|
|
10204
10217
|
/**
|
|
@@ -10290,11 +10303,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10290
10303
|
}, [anonymousID]);
|
|
10291
10304
|
|
|
10292
10305
|
if (iframeSrc) {
|
|
10293
|
-
return React__default[
|
|
10306
|
+
return React__default['default'].createElement(
|
|
10294
10307
|
'section',
|
|
10295
10308
|
{ className: 'form-assembly' },
|
|
10296
|
-
iframeSrc && React__default[
|
|
10297
|
-
React__default[
|
|
10309
|
+
iframeSrc && React__default['default'].createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10310
|
+
React__default['default'].createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10298
10311
|
);
|
|
10299
10312
|
}
|
|
10300
10313
|
|
|
@@ -10331,27 +10344,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
10331
10344
|
return window.removeEventListener('resize', handleResize);
|
|
10332
10345
|
};
|
|
10333
10346
|
}, []);
|
|
10334
|
-
return React__default[
|
|
10347
|
+
return React__default['default'].createElement(
|
|
10335
10348
|
'div',
|
|
10336
10349
|
{ className: 'blockTableHolder', ref: holder },
|
|
10337
|
-
React__default[
|
|
10350
|
+
React__default['default'].createElement(
|
|
10338
10351
|
'div',
|
|
10339
10352
|
{ className: 'blockTable' },
|
|
10340
10353
|
rows && rows.map(function (row) {
|
|
10341
|
-
return React__default[
|
|
10354
|
+
return React__default['default'].createElement(
|
|
10342
10355
|
'div',
|
|
10343
10356
|
{ className: 'blockTableRow' },
|
|
10344
10357
|
row.cells && row.cells.map(function (cell) {
|
|
10345
|
-
return React__default[
|
|
10358
|
+
return React__default['default'].createElement(
|
|
10346
10359
|
'div',
|
|
10347
10360
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10348
|
-
React__default[
|
|
10361
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10349
10362
|
);
|
|
10350
10363
|
})
|
|
10351
10364
|
);
|
|
10352
10365
|
})
|
|
10353
10366
|
),
|
|
10354
|
-
React__default[
|
|
10367
|
+
React__default['default'].createElement(
|
|
10355
10368
|
'style',
|
|
10356
10369
|
{ jsx: true },
|
|
10357
10370
|
'\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 '
|
|
@@ -10365,7 +10378,7 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10365
10378
|
_props$node.needSegmentSupport;
|
|
10366
10379
|
|
|
10367
10380
|
|
|
10368
|
-
return React__default[
|
|
10381
|
+
return React__default['default'].createElement('div', { id: FormID });
|
|
10369
10382
|
};
|
|
10370
10383
|
|
|
10371
10384
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -10425,7 +10438,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10425
10438
|
if (href && href.charAt(0) === '#') {
|
|
10426
10439
|
var elementId = href.slice(1);
|
|
10427
10440
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10428
|
-
return React__default[
|
|
10441
|
+
return React__default['default'].createElement(
|
|
10429
10442
|
'a',
|
|
10430
10443
|
{ onClick: function onClick() {
|
|
10431
10444
|
return ScrollToElement(elementId);
|
|
@@ -10435,11 +10448,11 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10435
10448
|
}
|
|
10436
10449
|
|
|
10437
10450
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite.checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
10438
|
-
return href ? linkRel.trim().length > 0 ? React__default[
|
|
10451
|
+
return href ? linkRel.trim().length > 0 ? React__default['default'].createElement(
|
|
10439
10452
|
'a',
|
|
10440
10453
|
_extends._extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10441
10454
|
children
|
|
10442
|
-
) : React__default[
|
|
10455
|
+
) : React__default['default'].createElement(
|
|
10443
10456
|
'a',
|
|
10444
10457
|
_extends._extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10445
10458
|
children
|
|
@@ -10504,12 +10517,12 @@ var getSerializers = function getSerializers() {
|
|
|
10504
10517
|
var node = _ref.node;
|
|
10505
10518
|
var url = node.url;
|
|
10506
10519
|
|
|
10507
|
-
return React__default[
|
|
10520
|
+
return React__default['default'].createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
10508
10521
|
},
|
|
10509
10522
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
10510
10523
|
var node = _ref2.node;
|
|
10511
10524
|
|
|
10512
|
-
return React__default[
|
|
10525
|
+
return React__default['default'].createElement(YouTubeGallery, {
|
|
10513
10526
|
nodes: node,
|
|
10514
10527
|
article: article,
|
|
10515
10528
|
meta: meta,
|
|
@@ -10523,7 +10536,7 @@ var getSerializers = function getSerializers() {
|
|
|
10523
10536
|
articleSeries: function articleSeries(_ref3) {
|
|
10524
10537
|
var node = _ref3.node;
|
|
10525
10538
|
|
|
10526
|
-
return React__default[
|
|
10539
|
+
return React__default['default'].createElement(ArticleSeries, {
|
|
10527
10540
|
nodes: node,
|
|
10528
10541
|
accountIDs: videoAccountIDs || {},
|
|
10529
10542
|
pageview: pageview,
|
|
@@ -10536,61 +10549,61 @@ var getSerializers = function getSerializers() {
|
|
|
10536
10549
|
figure: function figure(_ref4) {
|
|
10537
10550
|
var node = _ref4.node;
|
|
10538
10551
|
|
|
10539
|
-
return React__default[
|
|
10552
|
+
return React__default['default'].createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10540
10553
|
},
|
|
10541
10554
|
multifigure: function multifigure(_ref5) {
|
|
10542
10555
|
var node = _ref5.node;
|
|
10543
10556
|
|
|
10544
|
-
return React__default[
|
|
10557
|
+
return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10545
10558
|
},
|
|
10546
10559
|
slideshow: function slideshow(_ref6) {
|
|
10547
10560
|
var node = _ref6.node;
|
|
10548
10561
|
var slides = node.slides;
|
|
10549
10562
|
|
|
10550
|
-
return React__default[
|
|
10563
|
+
return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10551
10564
|
},
|
|
10552
10565
|
sidebar: function sidebar(_ref7) {
|
|
10553
10566
|
var node = _ref7.node;
|
|
10554
10567
|
var caption = node.caption,
|
|
10555
10568
|
content = node.content;
|
|
10556
10569
|
|
|
10557
|
-
return React__default[
|
|
10570
|
+
return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10558
10571
|
},
|
|
10559
10572
|
datatable: function datatable(_ref8) {
|
|
10560
10573
|
var node = _ref8.node;
|
|
10561
10574
|
var table = node.table;
|
|
10562
10575
|
|
|
10563
|
-
return React__default[
|
|
10576
|
+
return React__default['default'].createElement(TableShow, { rows: table.rows });
|
|
10564
10577
|
},
|
|
10565
10578
|
media: function media(_ref9) {
|
|
10566
10579
|
var node = _ref9.node;
|
|
10567
10580
|
|
|
10568
|
-
return React__default[
|
|
10581
|
+
return React__default['default'].createElement(Media, { node: node, client: client });
|
|
10569
10582
|
},
|
|
10570
10583
|
iframe: function iframe(_ref10) {
|
|
10571
10584
|
var node = _ref10.node;
|
|
10572
10585
|
|
|
10573
|
-
return React__default[
|
|
10586
|
+
return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10574
10587
|
},
|
|
10575
10588
|
video: function video(_ref11) {
|
|
10576
10589
|
var node = _ref11.node;
|
|
10577
10590
|
|
|
10578
|
-
return React__default[
|
|
10591
|
+
return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10579
10592
|
},
|
|
10580
10593
|
audio: function audio(_ref12) {
|
|
10581
10594
|
var node = _ref12.node;
|
|
10582
10595
|
|
|
10583
|
-
return React__default[
|
|
10596
|
+
return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10584
10597
|
},
|
|
10585
10598
|
poll: function poll(_ref13) {
|
|
10586
10599
|
var node = _ref13.node;
|
|
10587
10600
|
|
|
10588
|
-
return React__default[
|
|
10601
|
+
return React__default['default'].createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10589
10602
|
},
|
|
10590
10603
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10591
10604
|
var node = _ref14.node;
|
|
10592
10605
|
|
|
10593
|
-
return React__default[
|
|
10606
|
+
return React__default['default'].createElement(Poll, {
|
|
10594
10607
|
node: node,
|
|
10595
10608
|
client: client,
|
|
10596
10609
|
pageview: pageview,
|
|
@@ -10604,35 +10617,35 @@ var getSerializers = function getSerializers() {
|
|
|
10604
10617
|
var node = _ref15.node;
|
|
10605
10618
|
var quizzes = node.quizzes;
|
|
10606
10619
|
|
|
10607
|
-
return React__default[
|
|
10620
|
+
return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10608
10621
|
},
|
|
10609
10622
|
leads: function leads(_ref16) {
|
|
10610
10623
|
var node = _ref16.node;
|
|
10611
10624
|
var leadID = node.leadID;
|
|
10612
10625
|
|
|
10613
10626
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10614
|
-
return React__default[
|
|
10627
|
+
return React__default['default'].createElement(Leads, { url: url });
|
|
10615
10628
|
},
|
|
10616
10629
|
slideshows: function slideshows(_ref17) {
|
|
10617
10630
|
var node = _ref17.node;
|
|
10618
10631
|
|
|
10619
|
-
return React__default[
|
|
10632
|
+
return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10620
10633
|
},
|
|
10621
10634
|
nativeAd: function nativeAd(_ref18) {
|
|
10622
10635
|
var node = _ref18.node;
|
|
10623
10636
|
|
|
10624
|
-
return React__default[
|
|
10637
|
+
return React__default['default'].createElement(NativeAd, { node: node });
|
|
10625
10638
|
},
|
|
10626
10639
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10627
10640
|
var node = _ref19.node;
|
|
10628
10641
|
|
|
10629
|
-
return React__default[
|
|
10642
|
+
return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10630
10643
|
},
|
|
10631
10644
|
hrtag: function hrtag() {
|
|
10632
|
-
return React__default[
|
|
10645
|
+
return React__default['default'].createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10633
10646
|
},
|
|
10634
10647
|
brtag: function brtag() {
|
|
10635
|
-
return React__default[
|
|
10648
|
+
return React__default['default'].createElement('br', { className: 'line-break' });
|
|
10636
10649
|
},
|
|
10637
10650
|
formstack: function formstack(_ref20) {
|
|
10638
10651
|
var node = _ref20.node;
|
|
@@ -10640,30 +10653,30 @@ var getSerializers = function getSerializers() {
|
|
|
10640
10653
|
Caption = node.Caption,
|
|
10641
10654
|
needSegmentSupport = node.needSegmentSupport;
|
|
10642
10655
|
|
|
10643
|
-
return React__default[
|
|
10656
|
+
return React__default['default'].createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10644
10657
|
},
|
|
10645
10658
|
formassembly: FormAssembly,
|
|
10646
10659
|
digiohSmartTag: DigiohSmartTag,
|
|
10647
10660
|
multimedia: function multimedia(_ref21) {
|
|
10648
10661
|
var node = _ref21.node;
|
|
10649
10662
|
|
|
10650
|
-
return React__default[
|
|
10663
|
+
return React__default['default'].createElement(MultiMedia, { node: node, client: client });
|
|
10651
10664
|
},
|
|
10652
10665
|
blockTable: function blockTable(_ref22) {
|
|
10653
10666
|
var node = _ref22.node;
|
|
10654
|
-
return React__default[
|
|
10667
|
+
return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10655
10668
|
}
|
|
10656
10669
|
},
|
|
10657
10670
|
marks: {
|
|
10658
10671
|
superscript: function superscript(props) {
|
|
10659
|
-
return React__default[
|
|
10672
|
+
return React__default['default'].createElement(
|
|
10660
10673
|
'sup',
|
|
10661
10674
|
null,
|
|
10662
10675
|
props.children
|
|
10663
10676
|
);
|
|
10664
10677
|
},
|
|
10665
10678
|
subscript: function subscript(props) {
|
|
10666
|
-
return React__default[
|
|
10679
|
+
return React__default['default'].createElement(
|
|
10667
10680
|
'sub',
|
|
10668
10681
|
null,
|
|
10669
10682
|
props.children
|
|
@@ -10673,11 +10686,11 @@ var getSerializers = function getSerializers() {
|
|
|
10673
10686
|
var children = props.children,
|
|
10674
10687
|
mark = props.mark;
|
|
10675
10688
|
|
|
10676
|
-
return React__default[
|
|
10689
|
+
return React__default['default'].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
10677
10690
|
},
|
|
10678
10691
|
alignleft: function alignleft(_ref23) {
|
|
10679
10692
|
var children = _ref23.children;
|
|
10680
|
-
return React__default[
|
|
10693
|
+
return React__default['default'].createElement(
|
|
10681
10694
|
'div',
|
|
10682
10695
|
{ style: { textAlign: 'left' } },
|
|
10683
10696
|
children
|
|
@@ -10685,7 +10698,7 @@ var getSerializers = function getSerializers() {
|
|
|
10685
10698
|
},
|
|
10686
10699
|
alignright: function alignright(_ref24) {
|
|
10687
10700
|
var children = _ref24.children;
|
|
10688
|
-
return React__default[
|
|
10701
|
+
return React__default['default'].createElement(
|
|
10689
10702
|
'div',
|
|
10690
10703
|
{ style: { textAlign: 'right' } },
|
|
10691
10704
|
children
|
|
@@ -10693,7 +10706,7 @@ var getSerializers = function getSerializers() {
|
|
|
10693
10706
|
},
|
|
10694
10707
|
aligncenter: function aligncenter(_ref25) {
|
|
10695
10708
|
var children = _ref25.children;
|
|
10696
|
-
return React__default[
|
|
10709
|
+
return React__default['default'].createElement(
|
|
10697
10710
|
'div',
|
|
10698
10711
|
{ style: { textAlign: 'center' } },
|
|
10699
10712
|
children
|
|
@@ -10701,7 +10714,7 @@ var getSerializers = function getSerializers() {
|
|
|
10701
10714
|
},
|
|
10702
10715
|
alignjustify: function alignjustify(_ref26) {
|
|
10703
10716
|
var children = _ref26.children;
|
|
10704
|
-
return React__default[
|
|
10717
|
+
return React__default['default'].createElement(
|
|
10705
10718
|
'div',
|
|
10706
10719
|
{ style: { textAlign: 'justify' } },
|
|
10707
10720
|
children
|
|
@@ -10711,7 +10724,7 @@ var getSerializers = function getSerializers() {
|
|
|
10711
10724
|
var children = props.children,
|
|
10712
10725
|
color = props.mark.color;
|
|
10713
10726
|
|
|
10714
|
-
return React__default[
|
|
10727
|
+
return React__default['default'].createElement(
|
|
10715
10728
|
'span',
|
|
10716
10729
|
{ style: { color: color ? color.hex : null } },
|
|
10717
10730
|
children
|