@mjhls/mjh-framework 1.0.1069-poll-refresh → 1.0.1069
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-98ee4120.js → ADInfeed-3a68b356.js} +6 -6
- 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-55df7d69.js → ADlgInfeed-d88a0250.js} +4 -4
- 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 +869 -1354
- 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/AuthWrapper.js +24 -24
- 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/CEDeckSupabase.js +68 -67
- package/dist/cjs/CMEDeck.js +62 -61
- package/dist/cjs/Column1.js +6 -6
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +27 -26
- 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/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 +111 -111
- package/dist/cjs/Header.js +25 -25
- 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-984a697b.js → ImageSlider-294d3fc0.js} +72 -72
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +21 -20
- 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-cc3efe31.js → MediaSeriesCard-b842b86f.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +37 -36
- package/dist/cjs/MediaSeriesLandingPaginated.js +36 -35
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-b7b16d48.js → NavFooter-fa5fae05.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 +50 -49
- package/dist/cjs/PartnerDetailListingPaginated.js +49 -48
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +23 -22
- 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-e945bd55.js → PublicationFeature-03de3225.js} +29 -29
- package/dist/cjs/PublicationLanding.js +75 -75
- 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-086a8319.js → SeriesSlider-621d0cbb.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-d7e5d3a6.js → SocialSearchComponent-f874175b.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/{Tooltip-96fe6ef6.js → Tooltip-f075b7ef.js} +506 -547
- 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 +235 -234
- 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/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +7 -6
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-1d889cb9.js → index-6900cba9.js} +557 -598
- 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-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-2ea9e9ff.js → index.esm-f51609ab.js} +14 -14
- package/dist/cjs/index.js +101 -100
- package/dist/cjs/{main-ae8472f3.js → main-1ec1de84.js} +22 -17
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- 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/{ADInfeed-6d0c0856.js → ADInfeed-74cc728c.js} +1 -1
- 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/{ADlgInfeed-93bc2250.js → ADlgInfeed-b6217567.js} +1 -1
- package/dist/esm/AdSlot.js +3 -2
- package/dist/esm/AdSlotsProvider.js +3 -2
- package/dist/esm/AlgoliaSearch.js +485 -970
- 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/CEDeckSupabase.js +3 -2
- package/dist/esm/CMEDeck.js +3 -2
- package/dist/esm/Column3.js +3 -2
- package/dist/esm/ContentCardPaginated.js +5 -4
- 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 +2 -2
- package/dist/esm/HorizontalArticleListing.js +4 -3
- 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-9fc03f02.js → MediaSeriesCard-ba6a0d3b.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +8 -7
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
- 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 +6 -5
- package/dist/esm/PartnerDetailListingPaginated.js +7 -6
- package/dist/esm/PodcastsLanding.js +7 -6
- 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-a6b1d617.js → SeriesSlider-07be99e0.js} +1 -1
- package/dist/esm/{SocialSearchComponent-6065bff2.js → SocialSearchComponent-020f9e81.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +4 -3
- package/dist/esm/TemplateNormal.js +4 -3
- package/dist/esm/{Tooltip-bc98d17e.js → Tooltip-95655b44.js} +66 -107
- 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 +5 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +4 -3
- package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
- package/dist/esm/{index-1898a1cf.js → index-c10c03a2.js} +84 -125
- package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
- package/dist/esm/index.js +9 -8
- package/dist/esm/{main-754d4992.js → main-f97773b2.js} +9 -4
- package/package.json +1 -1
|
@@ -4,21 +4,21 @@ 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');
|
|
11
11
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./Beam.js');
|
|
13
13
|
var Segment = require('./Segment.js');
|
|
14
|
-
var main = require('./main-
|
|
15
|
-
var BlockContent = require('./BlockContent-
|
|
14
|
+
var main = require('./main-1ec1de84.js');
|
|
15
|
+
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
16
16
|
var _extends = require('./extends-be0d85bc.js');
|
|
17
17
|
var urlForFile = require('./urlForFile-5084fc48.js');
|
|
18
|
-
var index$2 = require('./index-
|
|
18
|
+
var index$2 = require('./index-eadd5035.js');
|
|
19
19
|
var asyncToGenerator = require('./asyncToGenerator-65df6bf8.js');
|
|
20
20
|
var _typeof$1 = require('./typeof-220bbf73.js');
|
|
21
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
21
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
22
22
|
var stringify = require('./stringify-f7a37a8d.js');
|
|
23
23
|
var core_getIteratorMethod = require('./core.get-iterator-method-5643aa10.js');
|
|
24
24
|
var _objectToArray = require('./_object-to-array-9337ba83.js');
|
|
@@ -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
|
|
@@ -2447,9 +2447,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
2447
2447
|
}, {
|
|
2448
2448
|
key: "render",
|
|
2449
2449
|
value: function render() {
|
|
2450
|
-
return /*#__PURE__*/React__default[
|
|
2450
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
2451
2451
|
className: this.props.containerClassName
|
|
2452
|
-
}, /*#__PURE__*/React__default[
|
|
2452
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
2453
2453
|
id: this.props.id,
|
|
2454
2454
|
className: this.props.className,
|
|
2455
2455
|
ref: this.refContainer,
|
|
@@ -2459,7 +2459,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
2459
2459
|
}]);
|
|
2460
2460
|
|
|
2461
2461
|
return YouTube;
|
|
2462
|
-
}(React__default[
|
|
2462
|
+
}(React__default['default'].Component);
|
|
2463
2463
|
|
|
2464
2464
|
_defineProperty(YouTube, "PlayerState", {
|
|
2465
2465
|
UNSTARTED: -1,
|
|
@@ -2471,28 +2471,28 @@ _defineProperty(YouTube, "PlayerState", {
|
|
|
2471
2471
|
});
|
|
2472
2472
|
|
|
2473
2473
|
YouTube.propTypes = {
|
|
2474
|
-
videoId: PropTypes__default[
|
|
2474
|
+
videoId: PropTypes__default['default'].string,
|
|
2475
2475
|
// custom ID for player element
|
|
2476
|
-
id: PropTypes__default[
|
|
2476
|
+
id: PropTypes__default['default'].string,
|
|
2477
2477
|
// custom class name for player element
|
|
2478
|
-
className: PropTypes__default[
|
|
2478
|
+
className: PropTypes__default['default'].string,
|
|
2479
2479
|
// custom class name for player container element
|
|
2480
|
-
containerClassName: PropTypes__default[
|
|
2480
|
+
containerClassName: PropTypes__default['default'].string,
|
|
2481
2481
|
// custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
|
|
2482
|
-
title: PropTypes__default[
|
|
2482
|
+
title: PropTypes__default['default'].string,
|
|
2483
2483
|
// custom loading for player element
|
|
2484
|
-
loading: PropTypes__default[
|
|
2484
|
+
loading: PropTypes__default['default'].oneOf(['lazy', 'eager', 'auto']),
|
|
2485
2485
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
2486
|
-
opts: PropTypes__default[
|
|
2486
|
+
opts: PropTypes__default['default'].objectOf(PropTypes__default['default'].any),
|
|
2487
2487
|
// event subscriptions
|
|
2488
|
-
onReady: PropTypes__default[
|
|
2489
|
-
onError: PropTypes__default[
|
|
2490
|
-
onPlay: PropTypes__default[
|
|
2491
|
-
onPause: PropTypes__default[
|
|
2492
|
-
onEnd: PropTypes__default[
|
|
2493
|
-
onStateChange: PropTypes__default[
|
|
2494
|
-
onPlaybackRateChange: PropTypes__default[
|
|
2495
|
-
onPlaybackQualityChange: PropTypes__default[
|
|
2488
|
+
onReady: PropTypes__default['default'].func,
|
|
2489
|
+
onError: PropTypes__default['default'].func,
|
|
2490
|
+
onPlay: PropTypes__default['default'].func,
|
|
2491
|
+
onPause: PropTypes__default['default'].func,
|
|
2492
|
+
onEnd: PropTypes__default['default'].func,
|
|
2493
|
+
onStateChange: PropTypes__default['default'].func,
|
|
2494
|
+
onPlaybackRateChange: PropTypes__default['default'].func,
|
|
2495
|
+
onPlaybackQualityChange: PropTypes__default['default'].func
|
|
2496
2496
|
};
|
|
2497
2497
|
YouTube.defaultProps = {
|
|
2498
2498
|
videoId: null,
|
|
@@ -2612,11 +2612,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2612
2612
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
return React__default[
|
|
2615
|
+
return React__default['default'].createElement(
|
|
2616
2616
|
'div',
|
|
2617
2617
|
{ id: 'fluid-video-container' },
|
|
2618
|
-
React__default[
|
|
2619
|
-
React__default[
|
|
2618
|
+
React__default['default'].createElement(YouTube, { className: 'fluid-iframe', loading: 'lazy', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2619
|
+
React__default['default'].createElement(
|
|
2620
2620
|
'style',
|
|
2621
2621
|
{ jsx: 'true' },
|
|
2622
2622
|
'\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 '
|
|
@@ -2629,20 +2629,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2629
2629
|
content = _ref.content,
|
|
2630
2630
|
getSerializers = _ref.getSerializers;
|
|
2631
2631
|
|
|
2632
|
-
return React__default[
|
|
2632
|
+
return React__default['default'].createElement(
|
|
2633
2633
|
'article',
|
|
2634
2634
|
{ className: 'sidebar' },
|
|
2635
|
-
React__default[
|
|
2635
|
+
React__default['default'].createElement(
|
|
2636
2636
|
'div',
|
|
2637
2637
|
null,
|
|
2638
|
-
React__default[
|
|
2638
|
+
React__default['default'].createElement(
|
|
2639
2639
|
'h3',
|
|
2640
2640
|
null,
|
|
2641
2641
|
caption
|
|
2642
2642
|
),
|
|
2643
|
-
React__default[
|
|
2643
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2644
2644
|
),
|
|
2645
|
-
React__default[
|
|
2645
|
+
React__default['default'].createElement(
|
|
2646
2646
|
'style',
|
|
2647
2647
|
{ jsx: 'true' },
|
|
2648
2648
|
'\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 '
|
|
@@ -2653,18 +2653,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2653
2653
|
var TableShow = function TableShow(_ref) {
|
|
2654
2654
|
var rows = _ref.rows;
|
|
2655
2655
|
|
|
2656
|
-
return React__default[
|
|
2656
|
+
return React__default['default'].createElement(
|
|
2657
2657
|
reactBootstrap.Table,
|
|
2658
2658
|
{ bordered: true, hover: true, responsive: true },
|
|
2659
|
-
React__default[
|
|
2659
|
+
React__default['default'].createElement(
|
|
2660
2660
|
'tbody',
|
|
2661
2661
|
null,
|
|
2662
2662
|
rows && rows.map(function (row) {
|
|
2663
|
-
return React__default[
|
|
2663
|
+
return React__default['default'].createElement(
|
|
2664
2664
|
'tr',
|
|
2665
2665
|
{ key: row._key },
|
|
2666
2666
|
row.cells && row.cells.map(function (cell, index) {
|
|
2667
|
-
return cell && React__default[
|
|
2667
|
+
return cell && React__default['default'].createElement(
|
|
2668
2668
|
'td',
|
|
2669
2669
|
{ key: index },
|
|
2670
2670
|
cell
|
|
@@ -2764,25 +2764,25 @@ var Media = function Media(_ref) {
|
|
|
2764
2764
|
margin: imageMargin
|
|
2765
2765
|
};
|
|
2766
2766
|
|
|
2767
|
-
return React__default[
|
|
2767
|
+
return React__default['default'].createElement(
|
|
2768
2768
|
reactBootstrap.Figure,
|
|
2769
2769
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2770
|
-
React__default[
|
|
2770
|
+
React__default['default'].createElement(
|
|
2771
2771
|
'a',
|
|
2772
2772
|
{ href: urlForFile.urlForFile({ asset: uploadDoc.asset }, baseUrl), target: blank ? '_blank' : '_self' },
|
|
2773
|
-
React__default[
|
|
2773
|
+
React__default['default'].createElement(
|
|
2774
2774
|
index$2.LazyLoad,
|
|
2775
2775
|
{ once: true },
|
|
2776
|
-
React__default[
|
|
2776
|
+
React__default['default'].createElement(
|
|
2777
2777
|
'picture',
|
|
2778
2778
|
null,
|
|
2779
|
-
React__default[
|
|
2780
|
-
React__default[
|
|
2781
|
-
React__default[
|
|
2782
|
-
React__default[
|
|
2779
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2780
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2781
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2782
|
+
React__default['default'].createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2783
2783
|
)
|
|
2784
2784
|
),
|
|
2785
|
-
caption && React__default[
|
|
2785
|
+
caption && React__default['default'].createElement(
|
|
2786
2786
|
reactBootstrap.Figure.Caption,
|
|
2787
2787
|
{ className: 'media-caption' },
|
|
2788
2788
|
caption
|
|
@@ -2790,7 +2790,7 @@ var Media = function Media(_ref) {
|
|
|
2790
2790
|
)
|
|
2791
2791
|
);
|
|
2792
2792
|
} else if (caption && caption !== '') {
|
|
2793
|
-
return React__default[
|
|
2793
|
+
return React__default['default'].createElement(
|
|
2794
2794
|
'a',
|
|
2795
2795
|
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2796
2796
|
href: urlForFile.urlForFile({ asset: uploadDoc.asset }, baseUrl) + '?dl='
|
|
@@ -2810,10 +2810,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2810
2810
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2811
2811
|
|
|
2812
2812
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2813
|
-
return React__default[
|
|
2813
|
+
return React__default['default'].createElement(
|
|
2814
2814
|
'div',
|
|
2815
2815
|
{ className: 'd-block text-center mb-3' },
|
|
2816
|
-
React__default[
|
|
2816
|
+
React__default['default'].createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: true, webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2817
2817
|
);
|
|
2818
2818
|
};
|
|
2819
2819
|
|
|
@@ -2841,30 +2841,30 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2841
2841
|
handlePollAnswer = _ref.handlePollAnswer;
|
|
2842
2842
|
|
|
2843
2843
|
var choiceArray = choices.map(function (choice) {
|
|
2844
|
-
return React__default[
|
|
2844
|
+
return React__default['default'].createElement(
|
|
2845
2845
|
'div',
|
|
2846
2846
|
{ className: 'radioButton form-check form-check-inline' },
|
|
2847
|
-
React__default[
|
|
2848
|
-
React__default[
|
|
2847
|
+
React__default['default'].createElement('input', { name: question, value: choice.choiceText, id: choice.choiceText + ',' + question, type: 'radio', onClick: handlePollAnswer }),
|
|
2848
|
+
React__default['default'].createElement(
|
|
2849
2849
|
'label',
|
|
2850
2850
|
{ className: 'form-check-label', 'for': choice.choiceText + ',' + question, style: { cursor: 'pointer' } },
|
|
2851
2851
|
choice.choiceText
|
|
2852
2852
|
)
|
|
2853
2853
|
);
|
|
2854
2854
|
});
|
|
2855
|
-
return React__default[
|
|
2855
|
+
return React__default['default'].createElement(
|
|
2856
2856
|
'div',
|
|
2857
2857
|
{
|
|
2858
2858
|
key: 'inline-radio',
|
|
2859
2859
|
className: 'radioContainer' },
|
|
2860
|
-
React__default[
|
|
2860
|
+
React__default['default'].createElement(
|
|
2861
2861
|
'h2',
|
|
2862
2862
|
{
|
|
2863
2863
|
className: 'radioLabelText'
|
|
2864
2864
|
},
|
|
2865
2865
|
question
|
|
2866
2866
|
),
|
|
2867
|
-
React__default[
|
|
2867
|
+
React__default['default'].createElement(
|
|
2868
2868
|
'div',
|
|
2869
2869
|
{
|
|
2870
2870
|
className: 'multiChoiceDiv'
|
|
@@ -2879,19 +2879,19 @@ var PopupPollTextInput = function PopupPollTextInput(_ref) {
|
|
|
2879
2879
|
textAnswer = _ref.textAnswer,
|
|
2880
2880
|
handleTextAnswer = _ref.handleTextAnswer;
|
|
2881
2881
|
|
|
2882
|
-
return React__default[
|
|
2882
|
+
return React__default['default'].createElement(
|
|
2883
2883
|
'div',
|
|
2884
2884
|
{
|
|
2885
2885
|
className: 'textInputDiv'
|
|
2886
2886
|
},
|
|
2887
|
-
React__default[
|
|
2887
|
+
React__default['default'].createElement(
|
|
2888
2888
|
'h2',
|
|
2889
2889
|
{
|
|
2890
2890
|
className: 'textInputQuestion'
|
|
2891
2891
|
},
|
|
2892
2892
|
textInputQuestion
|
|
2893
2893
|
),
|
|
2894
|
-
React__default[
|
|
2894
|
+
React__default['default'].createElement(Form__default['default'].Control, {
|
|
2895
2895
|
type: 'text',
|
|
2896
2896
|
className: 'textInput',
|
|
2897
2897
|
value: textAnswer,
|
|
@@ -3019,47 +3019,47 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
3019
3019
|
pollItems.forEach(function (item, ind) {
|
|
3020
3020
|
if (!item.atStart) {
|
|
3021
3021
|
if (item.format === 'multiChoice') {
|
|
3022
|
-
pollArray.push(React__default[
|
|
3022
|
+
pollArray.push(React__default['default'].createElement(PopupMultiChoice, { question: item.question, choices: item.choices, handlePollAnswer: handlePollAnswer, key: ind }));
|
|
3023
3023
|
}
|
|
3024
3024
|
if (item.format === 'textInput') {
|
|
3025
|
-
pollArray.push(React__default[
|
|
3025
|
+
pollArray.push(React__default['default'].createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
3026
3026
|
}
|
|
3027
3027
|
} else {
|
|
3028
3028
|
if (item.pollItems[0] && item.pollItems[0].format === 'multiChoice') {
|
|
3029
|
-
pollArray.push(React__default[
|
|
3029
|
+
pollArray.push(React__default['default'].createElement(PopupMultiChoice, { question: item.pollItems[0].question, choices: item.pollItems[0].choices, handlePollAnswer: handleMultiItemPollAnswers, key: ind }));
|
|
3030
3030
|
}
|
|
3031
3031
|
if (item.pollItems[0] && item.pollItems[0].format === 'textInput') {
|
|
3032
|
-
pollArray.push(React__default[
|
|
3032
|
+
pollArray.push(React__default['default'].createElement(PopupPollTextInput, { textInputQuestion: item.pollItems[0].question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
3033
3033
|
}
|
|
3034
3034
|
}
|
|
3035
3035
|
});
|
|
3036
3036
|
|
|
3037
|
-
return React__default[
|
|
3037
|
+
return React__default['default'].createElement(
|
|
3038
3038
|
'div',
|
|
3039
3039
|
{ className: 'modalDiv', id: 'modalDiv' },
|
|
3040
|
-
React__default[
|
|
3041
|
-
Modal__default[
|
|
3040
|
+
React__default['default'].createElement(
|
|
3041
|
+
Modal__default['default'].Dialog,
|
|
3042
3042
|
{ className: pollItems.length > 1 ? 'modal-dialog-overflow' : null, scrollable: pollItems.length > 1 },
|
|
3043
|
-
props.closeable && React__default[
|
|
3043
|
+
props.closeable && React__default['default'].createElement(Modal__default['default'].Header, { closeButton: true, onClick: function onClick() {
|
|
3044
3044
|
return restartPlayer();
|
|
3045
3045
|
} }),
|
|
3046
|
-
React__default[
|
|
3047
|
-
Modal__default[
|
|
3046
|
+
React__default['default'].createElement(
|
|
3047
|
+
Modal__default['default'].Body,
|
|
3048
3048
|
null,
|
|
3049
|
-
React__default[
|
|
3050
|
-
Form__default[
|
|
3049
|
+
React__default['default'].createElement(
|
|
3050
|
+
Form__default['default'],
|
|
3051
3051
|
{ onSubmit: handleSubmit, className: 'modalForm' },
|
|
3052
3052
|
pollArray,
|
|
3053
|
-
textInputRender && !multiChoiceRender ? React__default[
|
|
3054
|
-
Button__default[
|
|
3053
|
+
textInputRender && !multiChoiceRender ? React__default['default'].createElement(
|
|
3054
|
+
Button__default['default'],
|
|
3055
3055
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !textAnswer },
|
|
3056
3056
|
'Submit'
|
|
3057
|
-
) : !textInputRender && multiChoiceRender ? React__default[
|
|
3058
|
-
Button__default[
|
|
3057
|
+
) : !textInputRender && multiChoiceRender ? React__default['default'].createElement(
|
|
3058
|
+
Button__default['default'],
|
|
3059
3059
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
3060
3060
|
'Submit'
|
|
3061
|
-
) : React__default[
|
|
3062
|
-
Button__default[
|
|
3061
|
+
) : React__default['default'].createElement(
|
|
3062
|
+
Button__default['default'],
|
|
3063
3063
|
{ className: 'submitButton', type: 'submit', variant: 'success' },
|
|
3064
3064
|
'Submit'
|
|
3065
3065
|
)
|
|
@@ -3222,10 +3222,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
3222
3222
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
3223
3223
|
};
|
|
3224
3224
|
|
|
3225
|
-
return React__default[
|
|
3225
|
+
return React__default['default'].createElement(
|
|
3226
3226
|
'div',
|
|
3227
3227
|
null,
|
|
3228
|
-
isPollingTime ? React__default[
|
|
3228
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
3229
3229
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3230
3230
|
, { pollItems: pollItems
|
|
3231
3231
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -3239,7 +3239,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
3239
3239
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3240
3240
|
, multiChoiceRender: multiChoiceRender
|
|
3241
3241
|
}) : null,
|
|
3242
|
-
vidLoaded && React__default[
|
|
3242
|
+
vidLoaded && React__default['default'].createElement(
|
|
3243
3243
|
'video',
|
|
3244
3244
|
{
|
|
3245
3245
|
poster: thumbnail || '',
|
|
@@ -3257,7 +3257,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
3257
3257
|
onPlay: function onPlay(e) {
|
|
3258
3258
|
return handleOnPlay(e);
|
|
3259
3259
|
} },
|
|
3260
|
-
React__default[
|
|
3260
|
+
React__default['default'].createElement('source', { src: url, type: 'video/mp4' }),
|
|
3261
3261
|
'Your browser does not support the video tag.'
|
|
3262
3262
|
)
|
|
3263
3263
|
);
|
|
@@ -3517,10 +3517,10 @@ var Video = function Video(_ref) {
|
|
|
3517
3517
|
|
|
3518
3518
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
3519
3519
|
if (videoID) {
|
|
3520
|
-
return React__default[
|
|
3520
|
+
return React__default['default'].createElement(
|
|
3521
3521
|
'div',
|
|
3522
3522
|
null,
|
|
3523
|
-
isPollingTime ? React__default[
|
|
3523
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
3524
3524
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3525
3525
|
, { pollItems: pollItems
|
|
3526
3526
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -3536,7 +3536,7 @@ var Video = function Video(_ref) {
|
|
|
3536
3536
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3537
3537
|
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
3538
3538
|
}) : null,
|
|
3539
|
-
React__default[
|
|
3539
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
3540
3540
|
onSuccess: onVideoSuccess,
|
|
3541
3541
|
onFailure: onVideoFailure,
|
|
3542
3542
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -3544,17 +3544,17 @@ var Video = function Video(_ref) {
|
|
|
3544
3544
|
playerId: accountIDs.brightcove.playerId,
|
|
3545
3545
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
3546
3546
|
}),
|
|
3547
|
-
React__default[
|
|
3547
|
+
React__default['default'].createElement(
|
|
3548
3548
|
'style',
|
|
3549
3549
|
{ jsx: 'true' },
|
|
3550
3550
|
'\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 '
|
|
3551
3551
|
)
|
|
3552
3552
|
);
|
|
3553
3553
|
} else if (playlistID) {
|
|
3554
|
-
return React__default[
|
|
3554
|
+
return React__default['default'].createElement(
|
|
3555
3555
|
'div',
|
|
3556
3556
|
null,
|
|
3557
|
-
isPollingTime ? React__default[
|
|
3557
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
3558
3558
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3559
3559
|
, { pollItems: pollItems
|
|
3560
3560
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -3570,7 +3570,7 @@ var Video = function Video(_ref) {
|
|
|
3570
3570
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3571
3571
|
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
3572
3572
|
}) : null,
|
|
3573
|
-
React__default[
|
|
3573
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
3574
3574
|
accountId: accountIDs.brightcove.accountId,
|
|
3575
3575
|
playlistId: playlistID,
|
|
3576
3576
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -3578,18 +3578,18 @@ var Video = function Video(_ref) {
|
|
|
3578
3578
|
onFailure: onVideoFailure,
|
|
3579
3579
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
3580
3580
|
}),
|
|
3581
|
-
React__default[
|
|
3581
|
+
React__default['default'].createElement(
|
|
3582
3582
|
'style',
|
|
3583
3583
|
{ jsx: 'true' },
|
|
3584
3584
|
'\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 '
|
|
3585
3585
|
)
|
|
3586
3586
|
);
|
|
3587
3587
|
} else if (experienceID) {
|
|
3588
|
-
return React__default[
|
|
3588
|
+
return React__default['default'].createElement(
|
|
3589
3589
|
'div',
|
|
3590
3590
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
3591
|
-
React__default[
|
|
3592
|
-
isPollingTime ? React__default[
|
|
3591
|
+
React__default['default'].createElement('div', { 'data-experience': experienceID }),
|
|
3592
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
3593
3593
|
// eslint-disable-next-line react/jsx-indent-props
|
|
3594
3594
|
, { pollItems: pollItems
|
|
3595
3595
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -3612,10 +3612,10 @@ var Video = function Video(_ref) {
|
|
|
3612
3612
|
}
|
|
3613
3613
|
|
|
3614
3614
|
if (source === 'mp4') {
|
|
3615
|
-
return React__default[
|
|
3615
|
+
return React__default['default'].createElement(
|
|
3616
3616
|
'div',
|
|
3617
3617
|
null,
|
|
3618
|
-
React__default[
|
|
3618
|
+
React__default['default'].createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true, polls: polls, modalTimes: modalTimes, targetingUrl: targeting.document_url[0] })
|
|
3619
3619
|
);
|
|
3620
3620
|
}
|
|
3621
3621
|
|
|
@@ -3630,7 +3630,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3630
3630
|
});
|
|
3631
3631
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
3632
3632
|
|
|
3633
|
-
var _propTypes = _interopRequireDefault(PropTypes__default[
|
|
3633
|
+
var _propTypes = _interopRequireDefault(PropTypes__default['default']);
|
|
3634
3634
|
|
|
3635
3635
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
3636
3636
|
|
|
@@ -4220,7 +4220,7 @@ function isEqual(a, b) {
|
|
|
4220
4220
|
return true;
|
|
4221
4221
|
}
|
|
4222
4222
|
|
|
4223
|
-
if ((0, React__default[
|
|
4223
|
+
if ((0, React__default['default'].isValidElement)(a) && (0, React__default['default'].isValidElement)(b)) {
|
|
4224
4224
|
return true;
|
|
4225
4225
|
}
|
|
4226
4226
|
|
|
@@ -4282,7 +4282,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4282
4282
|
});
|
|
4283
4283
|
exports["default"] = void 0;
|
|
4284
4284
|
|
|
4285
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4285
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4286
4286
|
|
|
4287
4287
|
|
|
4288
4288
|
|
|
@@ -4692,7 +4692,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4692
4692
|
});
|
|
4693
4693
|
exports["default"] = createSinglePlayer;
|
|
4694
4694
|
|
|
4695
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4695
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4696
4696
|
|
|
4697
4697
|
|
|
4698
4698
|
|
|
@@ -4850,7 +4850,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4850
4850
|
});
|
|
4851
4851
|
exports["default"] = exports.YouTube = void 0;
|
|
4852
4852
|
|
|
4853
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4853
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4854
4854
|
|
|
4855
4855
|
|
|
4856
4856
|
|
|
@@ -5159,7 +5159,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5159
5159
|
});
|
|
5160
5160
|
exports["default"] = exports.SoundCloud = void 0;
|
|
5161
5161
|
|
|
5162
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5162
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5163
5163
|
|
|
5164
5164
|
|
|
5165
5165
|
|
|
@@ -5376,7 +5376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5376
5376
|
});
|
|
5377
5377
|
exports["default"] = exports.Vimeo = void 0;
|
|
5378
5378
|
|
|
5379
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5379
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5380
5380
|
|
|
5381
5381
|
|
|
5382
5382
|
|
|
@@ -5632,7 +5632,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5632
5632
|
});
|
|
5633
5633
|
exports["default"] = exports.Facebook = void 0;
|
|
5634
5634
|
|
|
5635
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5635
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5636
5636
|
|
|
5637
5637
|
|
|
5638
5638
|
|
|
@@ -5844,7 +5844,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5844
5844
|
});
|
|
5845
5845
|
exports["default"] = exports.Streamable = void 0;
|
|
5846
5846
|
|
|
5847
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5847
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5848
5848
|
|
|
5849
5849
|
|
|
5850
5850
|
|
|
@@ -6055,7 +6055,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6055
6055
|
});
|
|
6056
6056
|
exports["default"] = exports.Wistia = void 0;
|
|
6057
6057
|
|
|
6058
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6058
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6059
6059
|
|
|
6060
6060
|
|
|
6061
6061
|
|
|
@@ -6298,7 +6298,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6298
6298
|
});
|
|
6299
6299
|
exports["default"] = exports.Twitch = void 0;
|
|
6300
6300
|
|
|
6301
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6301
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6302
6302
|
|
|
6303
6303
|
|
|
6304
6304
|
|
|
@@ -6514,7 +6514,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6514
6514
|
});
|
|
6515
6515
|
exports["default"] = exports.DailyMotion = void 0;
|
|
6516
6516
|
|
|
6517
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6517
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6518
6518
|
|
|
6519
6519
|
|
|
6520
6520
|
|
|
@@ -6750,7 +6750,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6750
6750
|
});
|
|
6751
6751
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6752
6752
|
|
|
6753
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6753
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6754
6754
|
|
|
6755
6755
|
|
|
6756
6756
|
|
|
@@ -6949,7 +6949,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6949
6949
|
});
|
|
6950
6950
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6951
6951
|
|
|
6952
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6952
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6953
6953
|
|
|
6954
6954
|
|
|
6955
6955
|
|
|
@@ -7516,7 +7516,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7516
7516
|
});
|
|
7517
7517
|
exports["default"] = void 0;
|
|
7518
7518
|
|
|
7519
|
-
var _react = _interopRequireWildcard(React__default[
|
|
7519
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
7520
7520
|
|
|
7521
7521
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
7522
7522
|
|
|
@@ -7695,7 +7695,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7695
7695
|
});
|
|
7696
7696
|
exports["default"] = renderPreloadPlayers;
|
|
7697
7697
|
|
|
7698
|
-
var _react = _interopRequireDefault(React__default[
|
|
7698
|
+
var _react = _interopRequireDefault(React__default['default']);
|
|
7699
7699
|
|
|
7700
7700
|
var _Player = _interopRequireDefault(Player_1);
|
|
7701
7701
|
|
|
@@ -7834,7 +7834,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7834
7834
|
});
|
|
7835
7835
|
exports["default"] = void 0;
|
|
7836
7836
|
|
|
7837
|
-
var _react = _interopRequireWildcard(React__default[
|
|
7837
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
7838
7838
|
|
|
7839
7839
|
|
|
7840
7840
|
|
|
@@ -8150,7 +8150,7 @@ var Audio = function Audio(_ref) {
|
|
|
8150
8150
|
var audioSource = node && node.uploadAudio ? node.uploadAudio.asset.url : '';
|
|
8151
8151
|
var reportPlay = function reportPlay() {
|
|
8152
8152
|
console.log('Reporting audio playback play to GA');
|
|
8153
|
-
ReactGA__default[
|
|
8153
|
+
ReactGA__default['default'].event({
|
|
8154
8154
|
category: 'User',
|
|
8155
8155
|
action: 'Audio Play',
|
|
8156
8156
|
label: 'Play: ' + audioSource
|
|
@@ -8160,7 +8160,7 @@ var Audio = function Audio(_ref) {
|
|
|
8160
8160
|
};
|
|
8161
8161
|
var reportPause = function reportPause() {
|
|
8162
8162
|
console.log('Reporting audio playback pause to GA');
|
|
8163
|
-
ReactGA__default[
|
|
8163
|
+
ReactGA__default['default'].event({
|
|
8164
8164
|
category: 'User',
|
|
8165
8165
|
action: 'Audio Pause',
|
|
8166
8166
|
label: 'Pause: ' + audioSource
|
|
@@ -8170,7 +8170,7 @@ var Audio = function Audio(_ref) {
|
|
|
8170
8170
|
};
|
|
8171
8171
|
var reportEnd = function reportEnd() {
|
|
8172
8172
|
console.log('Reporting audio playback end to GA');
|
|
8173
|
-
ReactGA__default[
|
|
8173
|
+
ReactGA__default['default'].event({
|
|
8174
8174
|
category: 'User',
|
|
8175
8175
|
action: 'Audio Playback End',
|
|
8176
8176
|
label: 'Playback End: ' + audioSource
|
|
@@ -8179,10 +8179,10 @@ var Audio = function Audio(_ref) {
|
|
|
8179
8179
|
}));
|
|
8180
8180
|
};
|
|
8181
8181
|
if (node.uploadAudio) {
|
|
8182
|
-
return React__default[
|
|
8182
|
+
return React__default['default'].createElement(
|
|
8183
8183
|
'div',
|
|
8184
8184
|
{ className: 'audio d-block text-center mb-3' },
|
|
8185
|
-
React__default[
|
|
8185
|
+
React__default['default'].createElement(
|
|
8186
8186
|
'audio',
|
|
8187
8187
|
{
|
|
8188
8188
|
controls: true, controlsList: 'nodownload',
|
|
@@ -8191,14 +8191,14 @@ var Audio = function Audio(_ref) {
|
|
|
8191
8191
|
onPause: reportPause,
|
|
8192
8192
|
onEnded: reportEnd
|
|
8193
8193
|
},
|
|
8194
|
-
React__default[
|
|
8195
|
-
React__default[
|
|
8194
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
8195
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
8196
8196
|
'Your browser does not support the audio element.'
|
|
8197
8197
|
),
|
|
8198
|
-
node.caption && React__default[
|
|
8198
|
+
node.caption && React__default['default'].createElement(
|
|
8199
8199
|
'p',
|
|
8200
8200
|
{ style: { fontSize: '.9rem' } },
|
|
8201
|
-
React__default[
|
|
8201
|
+
React__default['default'].createElement(
|
|
8202
8202
|
'em',
|
|
8203
8203
|
null,
|
|
8204
8204
|
node.caption
|
|
@@ -8208,15 +8208,15 @@ var Audio = function Audio(_ref) {
|
|
|
8208
8208
|
} else if (node.audioFilePth) {
|
|
8209
8209
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
8210
8210
|
if (hostname === 'embeds.audioboom.com') {
|
|
8211
|
-
return React__default[
|
|
8211
|
+
return React__default['default'].createElement(
|
|
8212
8212
|
'div',
|
|
8213
8213
|
null,
|
|
8214
|
-
React__default[
|
|
8214
|
+
React__default['default'].createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
8215
8215
|
' ',
|
|
8216
|
-
node.caption && React__default[
|
|
8216
|
+
node.caption && React__default['default'].createElement(
|
|
8217
8217
|
'p',
|
|
8218
8218
|
{ style: { fontSize: '.9rem' } },
|
|
8219
|
-
React__default[
|
|
8219
|
+
React__default['default'].createElement(
|
|
8220
8220
|
'em',
|
|
8221
8221
|
null,
|
|
8222
8222
|
node.caption
|
|
@@ -8224,10 +8224,10 @@ var Audio = function Audio(_ref) {
|
|
|
8224
8224
|
)
|
|
8225
8225
|
);
|
|
8226
8226
|
}
|
|
8227
|
-
return React__default[
|
|
8227
|
+
return React__default['default'].createElement(
|
|
8228
8228
|
'div',
|
|
8229
8229
|
{ className: 'audio' },
|
|
8230
|
-
React__default[
|
|
8230
|
+
React__default['default'].createElement(ReactPlayer, { url: node.audioFilePth,
|
|
8231
8231
|
onPlay: reportPlay,
|
|
8232
8232
|
onPause: reportPause,
|
|
8233
8233
|
onEnded: reportEnd,
|
|
@@ -8235,10 +8235,10 @@ var Audio = function Audio(_ref) {
|
|
|
8235
8235
|
width: '100%',
|
|
8236
8236
|
height: '100%'
|
|
8237
8237
|
}),
|
|
8238
|
-
node.caption && React__default[
|
|
8238
|
+
node.caption && React__default['default'].createElement(
|
|
8239
8239
|
'p',
|
|
8240
8240
|
{ style: { fontSize: '.9rem' } },
|
|
8241
|
-
React__default[
|
|
8241
|
+
React__default['default'].createElement(
|
|
8242
8242
|
'em',
|
|
8243
8243
|
null,
|
|
8244
8244
|
node.caption
|
|
@@ -8257,34 +8257,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8257
8257
|
var showAuthorDetails = arguments[7];
|
|
8258
8258
|
|
|
8259
8259
|
if (authorName && authorURL) {
|
|
8260
|
-
return React__default[
|
|
8260
|
+
return React__default['default'].createElement(
|
|
8261
8261
|
'span',
|
|
8262
8262
|
null,
|
|
8263
|
-
React__default[
|
|
8263
|
+
React__default['default'].createElement(
|
|
8264
8264
|
'a',
|
|
8265
8265
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
8266
8266
|
authorName
|
|
8267
8267
|
),
|
|
8268
|
-
showAuthorDetails && React__default[
|
|
8268
|
+
showAuthorDetails && React__default['default'].createElement(
|
|
8269
8269
|
reactBootstrap.Card,
|
|
8270
8270
|
{ className: 'author-details-card-' + index },
|
|
8271
|
-
React__default[
|
|
8271
|
+
React__default['default'].createElement(
|
|
8272
8272
|
reactBootstrap.Row,
|
|
8273
8273
|
null,
|
|
8274
|
-
profileImage && React__default[
|
|
8274
|
+
profileImage && React__default['default'].createElement(
|
|
8275
8275
|
reactBootstrap.Col,
|
|
8276
8276
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
8277
|
-
React__default[
|
|
8277
|
+
React__default['default'].createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
8278
8278
|
),
|
|
8279
|
-
React__default[
|
|
8279
|
+
React__default['default'].createElement(
|
|
8280
8280
|
reactBootstrap.Col,
|
|
8281
8281
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
8282
|
-
React__default[
|
|
8282
|
+
React__default['default'].createElement(
|
|
8283
8283
|
'div',
|
|
8284
8284
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
8285
8285
|
authorName
|
|
8286
8286
|
),
|
|
8287
|
-
React__default[
|
|
8287
|
+
React__default['default'].createElement(
|
|
8288
8288
|
'p',
|
|
8289
8289
|
null,
|
|
8290
8290
|
biography
|
|
@@ -8292,7 +8292,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8292
8292
|
)
|
|
8293
8293
|
)
|
|
8294
8294
|
),
|
|
8295
|
-
React__default[
|
|
8295
|
+
React__default['default'].createElement(
|
|
8296
8296
|
'style',
|
|
8297
8297
|
{ jsx: 'true' },
|
|
8298
8298
|
'\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 '
|
|
@@ -8300,7 +8300,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8300
8300
|
length !== index + 1 && ', '
|
|
8301
8301
|
);
|
|
8302
8302
|
} else if (authorName) {
|
|
8303
|
-
return React__default[
|
|
8303
|
+
return React__default['default'].createElement(
|
|
8304
8304
|
'span',
|
|
8305
8305
|
{ key: index },
|
|
8306
8306
|
authorName,
|
|
@@ -8572,44 +8572,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8572
8572
|
}
|
|
8573
8573
|
};
|
|
8574
8574
|
|
|
8575
|
-
return React__default[
|
|
8575
|
+
return React__default['default'].createElement(
|
|
8576
8576
|
'div',
|
|
8577
8577
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
8578
|
-
React__default[
|
|
8578
|
+
React__default['default'].createElement(
|
|
8579
8579
|
'div',
|
|
8580
8580
|
{ className: 'mt-2 mb-5' },
|
|
8581
|
-
series && React__default[
|
|
8581
|
+
series && React__default['default'].createElement(
|
|
8582
8582
|
'div',
|
|
8583
8583
|
{ style: { fontSize: '0.9rem' } },
|
|
8584
8584
|
article.title,
|
|
8585
8585
|
' - Episode ',
|
|
8586
8586
|
series
|
|
8587
8587
|
),
|
|
8588
|
-
Videos[series - 1] && React__default[
|
|
8588
|
+
Videos[series - 1] && React__default['default'].createElement(
|
|
8589
8589
|
'h1',
|
|
8590
8590
|
{ className: 'mb-3' },
|
|
8591
8591
|
Videos[series - 1].title
|
|
8592
8592
|
),
|
|
8593
|
-
React__default[
|
|
8593
|
+
React__default['default'].createElement(
|
|
8594
8594
|
'div',
|
|
8595
8595
|
null,
|
|
8596
8596
|
moment.moment(article.published).format('LL')
|
|
8597
8597
|
),
|
|
8598
|
-
React__default[
|
|
8598
|
+
React__default['default'].createElement(
|
|
8599
8599
|
'div',
|
|
8600
8600
|
{ className: 'mb-3' },
|
|
8601
8601
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8602
|
-
return React__default[
|
|
8602
|
+
return React__default['default'].createElement(
|
|
8603
8603
|
'span',
|
|
8604
8604
|
{ key: index },
|
|
8605
8605
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
8606
8606
|
);
|
|
8607
8607
|
})
|
|
8608
8608
|
),
|
|
8609
|
-
React__default[
|
|
8609
|
+
React__default['default'].createElement(
|
|
8610
8610
|
'p',
|
|
8611
8611
|
null,
|
|
8612
|
-
React__default[
|
|
8612
|
+
React__default['default'].createElement(SocialShare, {
|
|
8613
8613
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
8614
8614
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
8615
8615
|
shareVia: meta.shareVia,
|
|
@@ -8624,20 +8624,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8624
8624
|
hideFacebook: meta.hideFBShare
|
|
8625
8625
|
})
|
|
8626
8626
|
),
|
|
8627
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default[
|
|
8627
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default['default'].createElement(
|
|
8628
8628
|
'p',
|
|
8629
8629
|
{ className: 'mb-3' },
|
|
8630
|
-
React__default[
|
|
8630
|
+
React__default['default'].createElement(
|
|
8631
8631
|
'em',
|
|
8632
8632
|
null,
|
|
8633
8633
|
Videos[series - 1].intro
|
|
8634
8634
|
)
|
|
8635
8635
|
)
|
|
8636
8636
|
),
|
|
8637
|
-
React__default[
|
|
8637
|
+
React__default['default'].createElement(
|
|
8638
8638
|
'div',
|
|
8639
8639
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
8640
|
-
vidUrl && vidType == 'youtube' && React__default[
|
|
8640
|
+
vidUrl && vidType == 'youtube' && React__default['default'].createElement(YouTube, {
|
|
8641
8641
|
className: 'fluid-iframe',
|
|
8642
8642
|
loading: 'lazy',
|
|
8643
8643
|
videoId: index$1.getYoutubeId(vidUrl),
|
|
@@ -8649,10 +8649,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8649
8649
|
return handleOnEnd(e);
|
|
8650
8650
|
}
|
|
8651
8651
|
}),
|
|
8652
|
-
vidUrl && vidType == 'mp4' && React__default[
|
|
8653
|
-
vidUrl && vidType == 'brightcove' && React__default[
|
|
8654
|
-
React__default[
|
|
8655
|
-
series && React__default[
|
|
8652
|
+
vidUrl && vidType == 'mp4' && React__default['default'].createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
8653
|
+
vidUrl && vidType == 'brightcove' && React__default['default'].createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
8654
|
+
React__default['default'].createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
8655
|
+
series && React__default['default'].createElement(
|
|
8656
8656
|
'div',
|
|
8657
8657
|
{
|
|
8658
8658
|
className: 'vid-series',
|
|
@@ -8662,10 +8662,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8662
8662
|
maxHeight: '100%',
|
|
8663
8663
|
paddingBottom: '0'
|
|
8664
8664
|
} },
|
|
8665
|
-
React__default[
|
|
8665
|
+
React__default['default'].createElement(
|
|
8666
8666
|
'p',
|
|
8667
8667
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
8668
|
-
React__default[
|
|
8668
|
+
React__default['default'].createElement(
|
|
8669
8669
|
'b',
|
|
8670
8670
|
{ style: { fontSize: '1.25em' } },
|
|
8671
8671
|
'Now Playing:'
|
|
@@ -8673,16 +8673,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8673
8673
|
' ',
|
|
8674
8674
|
seriesData[series ? series - 1 : 0].title
|
|
8675
8675
|
),
|
|
8676
|
-
vidUrl && React__default[
|
|
8676
|
+
vidUrl && React__default['default'].createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
8677
8677
|
)
|
|
8678
8678
|
),
|
|
8679
|
-
React__default[
|
|
8680
|
-
React__default[
|
|
8679
|
+
React__default['default'].createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
8680
|
+
React__default['default'].createElement(
|
|
8681
8681
|
'div',
|
|
8682
8682
|
{ className: 'vid-text' },
|
|
8683
|
-
Videos[series - 1] && Videos[series - 1].text && React__default[
|
|
8683
|
+
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()))
|
|
8684
8684
|
),
|
|
8685
|
-
React__default[
|
|
8685
|
+
React__default['default'].createElement(
|
|
8686
8686
|
'style',
|
|
8687
8687
|
{ jsx: 'true' },
|
|
8688
8688
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8715,7 +8715,6 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8715
8715
|
_node$showResults = node.showResults,
|
|
8716
8716
|
showResults = _node$showResults === undefined ? false : _node$showResults;
|
|
8717
8717
|
|
|
8718
|
-
var inputRef = React.useRef([]);
|
|
8719
8718
|
|
|
8720
8719
|
var onSubmitPoll = function onSubmitPoll(e, setShowAnswer) {
|
|
8721
8720
|
e.preventDefault();
|
|
@@ -8736,104 +8735,88 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8736
8735
|
return acc;
|
|
8737
8736
|
}
|
|
8738
8737
|
}, 0);
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
} else {
|
|
8744
|
-
inputRef.current[e.currentTarget.dataset['index']].checked = true;
|
|
8745
|
-
setSelectedChoice(inputRef.current[e.currentTarget.dataset['index']].value);
|
|
8746
|
-
}
|
|
8747
|
-
};
|
|
8748
|
-
|
|
8749
|
-
return React__default["default"].createElement(
|
|
8750
|
-
'div',
|
|
8751
|
-
{ className: 'pollHolder' },
|
|
8752
|
-
question && React__default["default"].createElement(
|
|
8738
|
+
return React__default['default'].createElement(
|
|
8739
|
+
React__default['default'].Fragment,
|
|
8740
|
+
null,
|
|
8741
|
+
question && React__default['default'].createElement(
|
|
8753
8742
|
'p',
|
|
8754
8743
|
{ className: 'font-weight-bold' },
|
|
8755
8744
|
question
|
|
8756
8745
|
),
|
|
8757
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8746
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8758
8747
|
'form',
|
|
8759
|
-
{
|
|
8748
|
+
{ onSubmit: function onSubmit(e) {
|
|
8760
8749
|
return onSubmitPoll(e);
|
|
8761
8750
|
} },
|
|
8762
|
-
choices && choices.map(function (choice
|
|
8763
|
-
return React__default[
|
|
8751
|
+
choices && choices.map(function (choice) {
|
|
8752
|
+
return React__default['default'].createElement(
|
|
8764
8753
|
'div',
|
|
8765
|
-
{ key: choice._key
|
|
8766
|
-
|
|
8767
|
-
} },
|
|
8768
|
-
React__default["default"].createElement(
|
|
8754
|
+
{ key: choice._key },
|
|
8755
|
+
React__default['default'].createElement(
|
|
8769
8756
|
'label',
|
|
8770
8757
|
{ className: 'pl-2' },
|
|
8771
|
-
React__default[
|
|
8772
|
-
return
|
|
8773
|
-
}
|
|
8758
|
+
React__default['default'].createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8759
|
+
return setSelectedChoice(e.target.value);
|
|
8760
|
+
} }),
|
|
8774
8761
|
' ' + choice.choiceText
|
|
8775
8762
|
)
|
|
8776
8763
|
);
|
|
8777
8764
|
}),
|
|
8778
|
-
React__default[
|
|
8765
|
+
React__default['default'].createElement(
|
|
8779
8766
|
reactBootstrap.Button,
|
|
8780
|
-
{ disabled: !selectedChoice,
|
|
8767
|
+
{ disabled: !selectedChoice, type: 'submit' },
|
|
8781
8768
|
'Vote'
|
|
8782
8769
|
)
|
|
8783
8770
|
),
|
|
8784
|
-
|
|
8771
|
+
React__default['default'].createElement(
|
|
8785
8772
|
'div',
|
|
8786
|
-
{ className: 'progress-container
|
|
8773
|
+
{ className: 'progress-container' },
|
|
8787
8774
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8788
8775
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8789
|
-
return React__default[
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
'div',
|
|
8794
|
-
null,
|
|
8795
|
-
React__default["default"].createElement(
|
|
8796
|
-
'span',
|
|
8797
|
-
{ style: { color: 'limegreen' } },
|
|
8798
|
-
'Correct!'
|
|
8799
|
-
)
|
|
8800
|
-
),
|
|
8801
|
-
React__default["default"].createElement(
|
|
8776
|
+
return React__default['default'].createElement(
|
|
8777
|
+
'div',
|
|
8778
|
+
{ key: choice._key, className: 'mb-3' },
|
|
8779
|
+
React__default['default'].createElement(
|
|
8802
8780
|
'div',
|
|
8803
|
-
{
|
|
8804
|
-
React__default[
|
|
8781
|
+
{ className: 'correct-answer' },
|
|
8782
|
+
React__default['default'].createElement(
|
|
8805
8783
|
'div',
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
'
|
|
8815
|
-
|
|
8816
|
-
percentage,
|
|
8817
|
-
'% (',
|
|
8818
|
-
choice.choiceCount ? choice.choiceCount : 0,
|
|
8819
|
-
' Votes)'
|
|
8784
|
+
null,
|
|
8785
|
+
choice.choiceText
|
|
8786
|
+
),
|
|
8787
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8788
|
+
'div',
|
|
8789
|
+
null,
|
|
8790
|
+
React__default['default'].createElement(
|
|
8791
|
+
'span',
|
|
8792
|
+
{ style: { color: 'limegreen' } },
|
|
8793
|
+
'Correct!'
|
|
8820
8794
|
)
|
|
8821
8795
|
)
|
|
8796
|
+
),
|
|
8797
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8798
|
+
React__default['default'].createElement(
|
|
8799
|
+
'span',
|
|
8800
|
+
{ className: 'float-right' },
|
|
8801
|
+
percentage,
|
|
8802
|
+
'% (',
|
|
8803
|
+
choice.choiceCount ? choice.choiceCount : 0,
|
|
8804
|
+
' Votes)'
|
|
8822
8805
|
)
|
|
8823
8806
|
);
|
|
8824
|
-
})
|
|
8825
|
-
showAnswer && React__default["default"].createElement(
|
|
8826
|
-
'h4',
|
|
8827
|
-
{ className: 'text-center small p-3' },
|
|
8828
|
-
'Total Votes: ',
|
|
8829
|
-
choicesTotalCount
|
|
8830
|
-
)
|
|
8807
|
+
})
|
|
8831
8808
|
),
|
|
8832
|
-
showAnswer &&
|
|
8833
|
-
|
|
8809
|
+
showAnswer && React__default['default'].createElement(
|
|
8810
|
+
'h4',
|
|
8811
|
+
{ className: 'text-center small p-3' },
|
|
8812
|
+
'Total Votes: ',
|
|
8813
|
+
choicesTotalCount
|
|
8814
|
+
),
|
|
8815
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8816
|
+
React__default['default'].createElement(
|
|
8834
8817
|
'style',
|
|
8835
8818
|
{ jsx: 'true' },
|
|
8836
|
-
'\n .
|
|
8819
|
+
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
8837
8820
|
)
|
|
8838
8821
|
);
|
|
8839
8822
|
};
|
|
@@ -8847,7 +8830,7 @@ var Poll = function Poll(_ref) {
|
|
|
8847
8830
|
_ref.showVotes;
|
|
8848
8831
|
var getSerializers = _ref.getSerializers;
|
|
8849
8832
|
|
|
8850
|
-
var _useState = React.useState(
|
|
8833
|
+
var _useState = React.useState(null),
|
|
8851
8834
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8852
8835
|
selectedChoice = _useState2[0],
|
|
8853
8836
|
setSelectedChoice = _useState2[1];
|
|
@@ -8863,7 +8846,6 @@ var Poll = function Poll(_ref) {
|
|
|
8863
8846
|
_node$showResults = node.showResults,
|
|
8864
8847
|
showResults = _node$showResults === undefined ? false : _node$showResults;
|
|
8865
8848
|
|
|
8866
|
-
var inputRef = React.useRef([]);
|
|
8867
8849
|
|
|
8868
8850
|
var onSubmitPoll = function onSubmitPoll(e, setShowAnswer) {
|
|
8869
8851
|
e.preventDefault();
|
|
@@ -8912,111 +8894,88 @@ var Poll = function Poll(_ref) {
|
|
|
8912
8894
|
return acc;
|
|
8913
8895
|
}
|
|
8914
8896
|
}, 0);
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
var updateChoices = selectedChoice.filter(function (choice) {
|
|
8920
|
-
if (inputRef.current[e.currentTarget.dataset['index']].value !== choice) {
|
|
8921
|
-
return choice;
|
|
8922
|
-
}
|
|
8923
|
-
});
|
|
8924
|
-
setSelectedChoice(updateChoices);
|
|
8925
|
-
} else {
|
|
8926
|
-
inputRef.current[e.currentTarget.dataset['index']].checked = true;
|
|
8927
|
-
|
|
8928
|
-
setSelectedChoice.apply(undefined, [inputRef.current[e.currentTarget.dataset['index']].value].concat(toConsumableArray._toConsumableArray(selectedChoice)));
|
|
8929
|
-
}
|
|
8930
|
-
};
|
|
8931
|
-
|
|
8932
|
-
return React__default["default"].createElement(
|
|
8933
|
-
'div',
|
|
8934
|
-
{ className: 'pollHolder' },
|
|
8935
|
-
question && React__default["default"].createElement(
|
|
8897
|
+
return React__default['default'].createElement(
|
|
8898
|
+
React__default['default'].Fragment,
|
|
8899
|
+
null,
|
|
8900
|
+
question && React__default['default'].createElement(
|
|
8936
8901
|
'p',
|
|
8937
8902
|
{ className: 'font-weight-bold' },
|
|
8938
8903
|
question
|
|
8939
8904
|
),
|
|
8940
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8905
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8941
8906
|
'form',
|
|
8942
|
-
{
|
|
8907
|
+
{ onSubmit: function onSubmit(e) {
|
|
8943
8908
|
return onSubmitPoll(e);
|
|
8944
8909
|
} },
|
|
8945
|
-
choices && choices.map(function (choice
|
|
8946
|
-
return React__default[
|
|
8910
|
+
choices && choices.map(function (choice) {
|
|
8911
|
+
return React__default['default'].createElement(
|
|
8947
8912
|
'div',
|
|
8948
|
-
{ key: choice._key
|
|
8949
|
-
|
|
8950
|
-
} },
|
|
8951
|
-
React__default["default"].createElement(
|
|
8913
|
+
{ key: choice._key },
|
|
8914
|
+
React__default['default'].createElement(
|
|
8952
8915
|
'label',
|
|
8953
8916
|
{ className: 'pl-2' },
|
|
8954
|
-
React__default[
|
|
8955
|
-
return
|
|
8956
|
-
}
|
|
8917
|
+
React__default['default'].createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8918
|
+
return setSelectedChoice(e.target.value);
|
|
8919
|
+
} }),
|
|
8957
8920
|
' ' + choice.choiceText
|
|
8958
8921
|
)
|
|
8959
8922
|
);
|
|
8960
8923
|
}),
|
|
8961
|
-
React__default[
|
|
8924
|
+
React__default['default'].createElement(
|
|
8962
8925
|
reactBootstrap.Button,
|
|
8963
|
-
{ disabled: !selectedChoice,
|
|
8926
|
+
{ disabled: !selectedChoice, type: 'submit' },
|
|
8964
8927
|
'Vote'
|
|
8965
8928
|
)
|
|
8966
8929
|
),
|
|
8967
|
-
|
|
8930
|
+
React__default['default'].createElement(
|
|
8968
8931
|
'div',
|
|
8969
|
-
{ className: 'progress-container
|
|
8932
|
+
{ className: 'progress-container' },
|
|
8970
8933
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8971
8934
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8972
|
-
return React__default[
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
'div',
|
|
8977
|
-
null,
|
|
8978
|
-
React__default["default"].createElement(
|
|
8979
|
-
'span',
|
|
8980
|
-
{ style: { color: 'limegreen' } },
|
|
8981
|
-
'Correct!'
|
|
8982
|
-
)
|
|
8983
|
-
),
|
|
8984
|
-
React__default["default"].createElement(
|
|
8935
|
+
return React__default['default'].createElement(
|
|
8936
|
+
'div',
|
|
8937
|
+
{ key: choice._key, className: 'mb-3' },
|
|
8938
|
+
React__default['default'].createElement(
|
|
8985
8939
|
'div',
|
|
8986
|
-
{
|
|
8987
|
-
React__default[
|
|
8940
|
+
{ className: 'correct-answer' },
|
|
8941
|
+
React__default['default'].createElement(
|
|
8988
8942
|
'div',
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
'
|
|
8998
|
-
|
|
8999
|
-
percentage,
|
|
9000
|
-
'% (',
|
|
9001
|
-
choice.choiceCount ? choice.choiceCount : 0,
|
|
9002
|
-
' Votes)'
|
|
8943
|
+
null,
|
|
8944
|
+
choice.choiceText
|
|
8945
|
+
),
|
|
8946
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8947
|
+
'div',
|
|
8948
|
+
null,
|
|
8949
|
+
React__default['default'].createElement(
|
|
8950
|
+
'span',
|
|
8951
|
+
{ style: { color: 'limegreen' } },
|
|
8952
|
+
'Correct!'
|
|
9003
8953
|
)
|
|
9004
8954
|
)
|
|
8955
|
+
),
|
|
8956
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8957
|
+
React__default['default'].createElement(
|
|
8958
|
+
'span',
|
|
8959
|
+
{ className: 'float-right' },
|
|
8960
|
+
percentage,
|
|
8961
|
+
'% (',
|
|
8962
|
+
choice.choiceCount ? choice.choiceCount : 0,
|
|
8963
|
+
' Votes)'
|
|
9005
8964
|
)
|
|
9006
8965
|
);
|
|
9007
|
-
})
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
8966
|
+
})
|
|
8967
|
+
),
|
|
8968
|
+
showAnswer && React__default['default'].createElement(
|
|
8969
|
+
'h4',
|
|
8970
|
+
{ className: 'text-center small p-3' },
|
|
8971
|
+
'Total Votes: ',
|
|
8972
|
+
choicesTotalCount
|
|
9014
8973
|
),
|
|
9015
|
-
showAnswer && response && React__default[
|
|
9016
|
-
React__default[
|
|
8974
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8975
|
+
React__default['default'].createElement(
|
|
9017
8976
|
'style',
|
|
9018
8977
|
{ jsx: 'true' },
|
|
9019
|
-
'\n .
|
|
8978
|
+
'\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 '
|
|
9020
8979
|
)
|
|
9021
8980
|
);
|
|
9022
8981
|
};
|
|
@@ -9157,34 +9116,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
9157
9116
|
};
|
|
9158
9117
|
|
|
9159
9118
|
var renderPagination = function renderPagination() {
|
|
9160
|
-
return React__default[
|
|
9161
|
-
Pagination__default[
|
|
9119
|
+
return React__default['default'].createElement(
|
|
9120
|
+
Pagination__default['default'],
|
|
9162
9121
|
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
9163
|
-
React__default[
|
|
9122
|
+
React__default['default'].createElement(Pagination__default['default'].First, { onClick: function onClick() {
|
|
9164
9123
|
return changePage('first');
|
|
9165
9124
|
}, disabled: currentPage === 1 }),
|
|
9166
|
-
React__default[
|
|
9125
|
+
React__default['default'].createElement(Pagination__default['default'].Prev, { onClick: function onClick() {
|
|
9167
9126
|
return changePage('prev');
|
|
9168
9127
|
}, disabled: currentPage === 1 }),
|
|
9169
|
-
React__default[
|
|
9128
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
9170
9129
|
return renderNewPages('prev');
|
|
9171
9130
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
9172
9131
|
pages.map(function (page) {
|
|
9173
|
-
return React__default[
|
|
9174
|
-
Pagination__default[
|
|
9132
|
+
return React__default['default'].createElement(
|
|
9133
|
+
Pagination__default['default'].Item,
|
|
9175
9134
|
{ key: page, active: page === parseInt(currentPage), onClick: function onClick() {
|
|
9176
9135
|
return changePage(page);
|
|
9177
9136
|
} },
|
|
9178
9137
|
page
|
|
9179
9138
|
);
|
|
9180
9139
|
}),
|
|
9181
|
-
React__default[
|
|
9140
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
9182
9141
|
return renderNewPages('next');
|
|
9183
9142
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
9184
|
-
React__default[
|
|
9143
|
+
React__default['default'].createElement(Pagination__default['default'].Next, { onClick: function onClick() {
|
|
9185
9144
|
return changePage('next');
|
|
9186
9145
|
}, disabled: currentPage === pageCount }),
|
|
9187
|
-
React__default[
|
|
9146
|
+
React__default['default'].createElement(Pagination__default['default'].Last, { onClick: function onClick() {
|
|
9188
9147
|
return changePage('last');
|
|
9189
9148
|
}, disabled: currentPage === pageCount })
|
|
9190
9149
|
);
|
|
@@ -9295,49 +9254,49 @@ var Quiz = function Quiz(_ref) {
|
|
|
9295
9254
|
}
|
|
9296
9255
|
};
|
|
9297
9256
|
|
|
9298
|
-
return React__default[
|
|
9299
|
-
React__default[
|
|
9257
|
+
return React__default['default'].createElement(
|
|
9258
|
+
React__default['default'].Fragment,
|
|
9300
9259
|
null,
|
|
9301
|
-
quizzes[currentPage - 1] && React__default[
|
|
9302
|
-
React__default[
|
|
9260
|
+
quizzes[currentPage - 1] && React__default['default'].createElement(
|
|
9261
|
+
React__default['default'].Fragment,
|
|
9303
9262
|
null,
|
|
9304
|
-
React__default[
|
|
9305
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default[
|
|
9263
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
9264
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default['default'].createElement(
|
|
9306
9265
|
'form',
|
|
9307
9266
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
9308
9267
|
return e.preventDefault();
|
|
9309
9268
|
} },
|
|
9310
9269
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
9311
|
-
return React__default[
|
|
9270
|
+
return React__default['default'].createElement(
|
|
9312
9271
|
'div',
|
|
9313
9272
|
{ key: answer._key },
|
|
9314
|
-
React__default[
|
|
9273
|
+
React__default['default'].createElement(
|
|
9315
9274
|
'label',
|
|
9316
9275
|
{ className: 'pl-2' },
|
|
9317
|
-
quizzes[currentPage - 1].multiAnswer ? React__default[
|
|
9276
|
+
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 }),
|
|
9318
9277
|
' ' + answer.answerText
|
|
9319
9278
|
)
|
|
9320
9279
|
);
|
|
9321
9280
|
})
|
|
9322
9281
|
)
|
|
9323
9282
|
),
|
|
9324
|
-
!showAnswer && React__default[
|
|
9325
|
-
Button__default[
|
|
9283
|
+
!showAnswer && React__default['default'].createElement(
|
|
9284
|
+
Button__default['default'],
|
|
9326
9285
|
{ onClick: function onClick(e) {
|
|
9327
9286
|
return checkAnswers(e);
|
|
9328
9287
|
}, variant: 'info', block: true },
|
|
9329
9288
|
'Please click here for answer'
|
|
9330
9289
|
),
|
|
9331
|
-
quizzes[currentPage - 1] && showAnswer && React__default[
|
|
9332
|
-
React__default[
|
|
9290
|
+
quizzes[currentPage - 1] && showAnswer && React__default['default'].createElement(
|
|
9291
|
+
React__default['default'].Fragment,
|
|
9333
9292
|
null,
|
|
9334
|
-
quizzes[currentPage - 1].answer && React__default[
|
|
9293
|
+
quizzes[currentPage - 1].answer && React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
9335
9294
|
),
|
|
9336
|
-
React__default[
|
|
9337
|
-
firstRender && React__default[
|
|
9338
|
-
React__default[
|
|
9295
|
+
React__default['default'].createElement('br', null),
|
|
9296
|
+
firstRender && React__default['default'].createElement(
|
|
9297
|
+
React__default['default'].Fragment,
|
|
9339
9298
|
null,
|
|
9340
|
-
pageCount > 1 && currentPage && React__default[
|
|
9299
|
+
pageCount > 1 && currentPage && React__default['default'].createElement(
|
|
9341
9300
|
'div',
|
|
9342
9301
|
{ className: 'd-flex justify-content-center' },
|
|
9343
9302
|
renderPagination()
|
|
@@ -9349,15 +9308,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
9349
9308
|
var Leads = function Leads(_ref) {
|
|
9350
9309
|
var url = _ref.url;
|
|
9351
9310
|
|
|
9352
|
-
return React__default[
|
|
9311
|
+
return React__default['default'].createElement(
|
|
9353
9312
|
'div',
|
|
9354
9313
|
{ className: 'd-block text-center mb-3' },
|
|
9355
|
-
React__default[
|
|
9314
|
+
React__default['default'].createElement(
|
|
9356
9315
|
'style',
|
|
9357
9316
|
{ jsx: 'true' },
|
|
9358
9317
|
'\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 '
|
|
9359
9318
|
),
|
|
9360
|
-
url && React__default[
|
|
9319
|
+
url && React__default['default'].createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
9361
9320
|
);
|
|
9362
9321
|
};
|
|
9363
9322
|
|
|
@@ -9399,49 +9358,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
9399
9358
|
if (pageview) pageview(href);
|
|
9400
9359
|
};
|
|
9401
9360
|
|
|
9402
|
-
return React__default[
|
|
9361
|
+
return React__default['default'].createElement(
|
|
9403
9362
|
'div',
|
|
9404
9363
|
{ className: 'mt-3 mb-4' },
|
|
9405
|
-
React__default[
|
|
9364
|
+
React__default['default'].createElement(
|
|
9406
9365
|
reactBootstrap.Carousel,
|
|
9407
9366
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
9408
9367
|
slides && slides.map(function (slide) {
|
|
9409
9368
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
9410
|
-
return React__default[
|
|
9369
|
+
return React__default['default'].createElement(
|
|
9411
9370
|
reactBootstrap.Carousel.Item,
|
|
9412
9371
|
{ key: slide._key },
|
|
9413
|
-
React__default[
|
|
9372
|
+
React__default['default'].createElement(
|
|
9414
9373
|
'a',
|
|
9415
9374
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
9416
|
-
React__default[
|
|
9375
|
+
React__default['default'].createElement(
|
|
9417
9376
|
'div',
|
|
9418
9377
|
{ style: { textAlign: 'center' }, className: '' },
|
|
9419
|
-
React__default[
|
|
9378
|
+
React__default['default'].createElement(
|
|
9420
9379
|
'picture',
|
|
9421
9380
|
null,
|
|
9422
|
-
React__default[
|
|
9423
|
-
React__default[
|
|
9424
|
-
React__default[
|
|
9425
|
-
React__default[
|
|
9381
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9382
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9383
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9384
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
9426
9385
|
)
|
|
9427
9386
|
)
|
|
9428
9387
|
),
|
|
9429
|
-
React__default[
|
|
9388
|
+
React__default['default'].createElement(
|
|
9430
9389
|
'div',
|
|
9431
9390
|
{ className: 'p-2' },
|
|
9432
|
-
slide.slideshowImage.caption && React__default[
|
|
9391
|
+
slide.slideshowImage.caption && React__default['default'].createElement(
|
|
9433
9392
|
'h3',
|
|
9434
9393
|
{ style: { padding: '0px' } },
|
|
9435
9394
|
slide.slideshowImage.caption
|
|
9436
9395
|
),
|
|
9437
|
-
slide.description && React__default[
|
|
9396
|
+
slide.description && React__default['default'].createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
9438
9397
|
)
|
|
9439
9398
|
);
|
|
9440
9399
|
}
|
|
9441
9400
|
return null;
|
|
9442
9401
|
})
|
|
9443
9402
|
),
|
|
9444
|
-
React__default[
|
|
9403
|
+
React__default['default'].createElement(
|
|
9445
9404
|
'style',
|
|
9446
9405
|
{ jsx: 'true' },
|
|
9447
9406
|
'\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 '
|
|
@@ -9460,10 +9419,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
9460
9419
|
sizes = _props$node.sizes,
|
|
9461
9420
|
sizeMapping = _props$node.sizeMapping;
|
|
9462
9421
|
|
|
9463
|
-
return React__default[
|
|
9422
|
+
return React__default['default'].createElement(
|
|
9464
9423
|
'div',
|
|
9465
9424
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
9466
|
-
React__default[
|
|
9425
|
+
React__default['default'].createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
9467
9426
|
);
|
|
9468
9427
|
};
|
|
9469
9428
|
|
|
@@ -9474,15 +9433,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
9474
9433
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
9475
9434
|
|
|
9476
9435
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
9477
|
-
return React__default[
|
|
9436
|
+
return React__default['default'].createElement(
|
|
9478
9437
|
'section',
|
|
9479
9438
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
9480
|
-
Caption && React__default[
|
|
9439
|
+
Caption && React__default['default'].createElement(
|
|
9481
9440
|
'h4',
|
|
9482
9441
|
{ className: 'formstack-caption' },
|
|
9483
9442
|
Caption
|
|
9484
9443
|
),
|
|
9485
|
-
React__default[
|
|
9444
|
+
React__default['default'].createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
9486
9445
|
);
|
|
9487
9446
|
};
|
|
9488
9447
|
|
|
@@ -9501,36 +9460,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
9501
9460
|
var baseUrl = client ? client.config().baseUrl : '';
|
|
9502
9461
|
|
|
9503
9462
|
if (medias && medias.length > 0) {
|
|
9504
|
-
return React__default[
|
|
9463
|
+
return React__default['default'].createElement(
|
|
9505
9464
|
'div',
|
|
9506
9465
|
{ className: 'multi-media-container' },
|
|
9507
|
-
React__default[
|
|
9508
|
-
Row__default[
|
|
9466
|
+
React__default['default'].createElement(
|
|
9467
|
+
Row__default['default'],
|
|
9509
9468
|
{ noGutters: true },
|
|
9510
9469
|
medias.map(function (media) {
|
|
9511
|
-
return React__default[
|
|
9512
|
-
Col__default[
|
|
9470
|
+
return React__default['default'].createElement(
|
|
9471
|
+
Col__default['default'],
|
|
9513
9472
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
9514
|
-
React__default[
|
|
9473
|
+
React__default['default'].createElement(
|
|
9515
9474
|
'a',
|
|
9516
9475
|
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile.urlForFile({ asset: media.upload_doc.asset }, baseUrl), target: media.blank ? '_blank' : '_self' }, {
|
|
9517
9476
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
9518
|
-
React__default[
|
|
9477
|
+
React__default['default'].createElement(
|
|
9519
9478
|
'div',
|
|
9520
9479
|
{ className: 'multi-media-image-container' },
|
|
9521
|
-
imageBox && React__default[
|
|
9480
|
+
imageBox && React__default['default'].createElement(
|
|
9522
9481
|
index$2.LazyLoad,
|
|
9523
9482
|
{ once: true },
|
|
9524
|
-
React__default[
|
|
9483
|
+
React__default['default'].createElement(
|
|
9525
9484
|
'picture',
|
|
9526
9485
|
null,
|
|
9527
|
-
React__default[
|
|
9528
|
-
React__default[
|
|
9529
|
-
React__default[
|
|
9530
|
-
React__default[
|
|
9486
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9487
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9488
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9489
|
+
React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
9531
9490
|
)
|
|
9532
9491
|
),
|
|
9533
|
-
media.caption && React__default[
|
|
9492
|
+
media.caption && React__default['default'].createElement(
|
|
9534
9493
|
'span',
|
|
9535
9494
|
{ className: 'multi-media-caption' },
|
|
9536
9495
|
media.caption
|
|
@@ -9540,7 +9499,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
9540
9499
|
);
|
|
9541
9500
|
})
|
|
9542
9501
|
),
|
|
9543
|
-
React__default[
|
|
9502
|
+
React__default['default'].createElement(
|
|
9544
9503
|
'style',
|
|
9545
9504
|
{ jsx: 'true' },
|
|
9546
9505
|
'\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 '
|
|
@@ -9587,7 +9546,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
9587
9546
|
}
|
|
9588
9547
|
};
|
|
9589
9548
|
|
|
9590
|
-
_this.wraperRef = React__default[
|
|
9549
|
+
_this.wraperRef = React__default['default'].createRef();
|
|
9591
9550
|
_this.visible = false;
|
|
9592
9551
|
return _this;
|
|
9593
9552
|
}
|
|
@@ -9615,7 +9574,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
9615
9574
|
_props$id = _props.id,
|
|
9616
9575
|
id = _props$id === undefined ? '' : _props$id;
|
|
9617
9576
|
|
|
9618
|
-
return React__default[
|
|
9577
|
+
return React__default['default'].createElement(
|
|
9619
9578
|
'div',
|
|
9620
9579
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
9621
9580
|
this.props.children
|
|
@@ -9624,7 +9583,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
9624
9583
|
}]);
|
|
9625
9584
|
|
|
9626
9585
|
return InscreenSensor;
|
|
9627
|
-
}(React__default[
|
|
9586
|
+
}(React__default['default'].Component);
|
|
9628
9587
|
|
|
9629
9588
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
9630
9589
|
var nodes = _ref.nodes,
|
|
@@ -9735,33 +9694,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9735
9694
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9736
9695
|
var showReading = show ? 'showReading' : '';
|
|
9737
9696
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9738
|
-
return React__default[
|
|
9697
|
+
return React__default['default'].createElement(
|
|
9739
9698
|
'div',
|
|
9740
9699
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9741
|
-
React__default[
|
|
9700
|
+
React__default['default'].createElement(
|
|
9742
9701
|
'a',
|
|
9743
9702
|
{ onClick: function onClick(e) {
|
|
9744
9703
|
return articleCardClickHandler(e);
|
|
9745
9704
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9746
|
-
React__default[
|
|
9705
|
+
React__default['default'].createElement(
|
|
9747
9706
|
'div',
|
|
9748
9707
|
{ className: 'prevNext-thumbnail' },
|
|
9749
|
-
React__default[
|
|
9750
|
-
React__default[
|
|
9708
|
+
React__default['default'].createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
9709
|
+
React__default['default'].createElement(
|
|
9751
9710
|
'div',
|
|
9752
9711
|
{ className: 'prevNext-reading ' + showReading },
|
|
9753
9712
|
articleLabel
|
|
9754
9713
|
)
|
|
9755
9714
|
),
|
|
9756
|
-
React__default[
|
|
9715
|
+
React__default['default'].createElement(
|
|
9757
9716
|
'div',
|
|
9758
9717
|
{ className: 'prevNext-summary' },
|
|
9759
|
-
React__default[
|
|
9718
|
+
React__default['default'].createElement(
|
|
9760
9719
|
'div',
|
|
9761
9720
|
{ className: 'prevNext-publishDate' },
|
|
9762
9721
|
moment.moment(article.published).format('LL')
|
|
9763
9722
|
),
|
|
9764
|
-
React__default[
|
|
9723
|
+
React__default['default'].createElement(
|
|
9765
9724
|
'h2',
|
|
9766
9725
|
{ className: 'prevNext-title' },
|
|
9767
9726
|
article.title
|
|
@@ -9810,7 +9769,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9810
9769
|
|
|
9811
9770
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9812
9771
|
if (biography) {
|
|
9813
|
-
return React__default[
|
|
9772
|
+
return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9814
9773
|
}
|
|
9815
9774
|
};
|
|
9816
9775
|
|
|
@@ -9968,40 +9927,40 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9968
9927
|
setSensorVisible(false);
|
|
9969
9928
|
};
|
|
9970
9929
|
|
|
9971
|
-
return React__default[
|
|
9972
|
-
React__default[
|
|
9930
|
+
return React__default['default'].createElement(
|
|
9931
|
+
React__default['default'].Fragment,
|
|
9973
9932
|
null,
|
|
9974
|
-
React__default[
|
|
9933
|
+
React__default['default'].createElement(
|
|
9975
9934
|
'div',
|
|
9976
9935
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9977
|
-
React__default[
|
|
9936
|
+
React__default['default'].createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9978
9937
|
return handleArrowClick();
|
|
9979
9938
|
} })
|
|
9980
9939
|
),
|
|
9981
|
-
React__default[
|
|
9982
|
-
React__default[
|
|
9940
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' }),
|
|
9941
|
+
React__default['default'].createElement(
|
|
9983
9942
|
'div',
|
|
9984
9943
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9985
|
-
React__default[
|
|
9944
|
+
React__default['default'].createElement(
|
|
9986
9945
|
'h5',
|
|
9987
9946
|
{ className: 'objective-title' },
|
|
9988
9947
|
nodes.seriesTitle
|
|
9989
9948
|
),
|
|
9990
|
-
React__default[
|
|
9949
|
+
React__default['default'].createElement(
|
|
9991
9950
|
'div',
|
|
9992
9951
|
{ className: 'prevNextWrapper' },
|
|
9993
9952
|
PrevNextCards(false, -1)
|
|
9994
9953
|
)
|
|
9995
9954
|
),
|
|
9996
|
-
React__default[
|
|
9997
|
-
React__default[
|
|
9955
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' }),
|
|
9956
|
+
React__default['default'].createElement(
|
|
9998
9957
|
'div',
|
|
9999
9958
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
10000
9959
|
Articles.map(function (article, index) {
|
|
10001
|
-
return React__default[
|
|
9960
|
+
return React__default['default'].createElement(
|
|
10002
9961
|
'div',
|
|
10003
9962
|
{ key: article.title },
|
|
10004
|
-
React__default[
|
|
9963
|
+
React__default['default'].createElement(
|
|
10005
9964
|
InscreenSensor,
|
|
10006
9965
|
{
|
|
10007
9966
|
visible: sensorVisible,
|
|
@@ -10019,82 +9978,82 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
10019
9978
|
}
|
|
10020
9979
|
}
|
|
10021
9980
|
} },
|
|
10022
|
-
React__default[
|
|
10023
|
-
Head__default[
|
|
9981
|
+
React__default['default'].createElement(
|
|
9982
|
+
Head__default['default'],
|
|
10024
9983
|
null,
|
|
10025
|
-
currentTitle !== null && React__default[
|
|
9984
|
+
currentTitle !== null && React__default['default'].createElement(
|
|
10026
9985
|
'title',
|
|
10027
9986
|
{ key: 'title' },
|
|
10028
9987
|
currentTitle
|
|
10029
9988
|
),
|
|
10030
|
-
currentSummary !== null && React__default[
|
|
10031
|
-
currentURL !== null && React__default[
|
|
10032
|
-
currentTitle !== null && React__default[
|
|
10033
|
-
currentThumbnail !== null && React__default[
|
|
10034
|
-
currentSummary !== null && React__default[
|
|
10035
|
-
currentTitle !== null && React__default[
|
|
10036
|
-
currentThumbnail !== null && React__default[
|
|
10037
|
-
currentSummary !== null && React__default[
|
|
9989
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
9990
|
+
currentURL !== null && React__default['default'].createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
9991
|
+
currentTitle !== null && React__default['default'].createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
9992
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
9993
|
+
currentSummary !== null && React__default['default'].createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
9994
|
+
currentTitle !== null && React__default['default'].createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
9995
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
9996
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
10038
9997
|
),
|
|
10039
|
-
React__default[
|
|
9998
|
+
React__default['default'].createElement(
|
|
10040
9999
|
'article',
|
|
10041
10000
|
{ className: 'article-wrapper' },
|
|
10042
|
-
React__default[
|
|
10001
|
+
React__default['default'].createElement(
|
|
10043
10002
|
'div',
|
|
10044
10003
|
{ className: 'article-publishDate' },
|
|
10045
10004
|
moment.moment(article.published).format('LL')
|
|
10046
10005
|
),
|
|
10047
|
-
React__default[
|
|
10006
|
+
React__default['default'].createElement(
|
|
10048
10007
|
'div',
|
|
10049
10008
|
{ className: 'author-details-wrapper' },
|
|
10050
10009
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
10051
|
-
return React__default[
|
|
10010
|
+
return React__default['default'].createElement(
|
|
10052
10011
|
'span',
|
|
10053
10012
|
{ key: index },
|
|
10054
10013
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
10055
10014
|
);
|
|
10056
10015
|
})
|
|
10057
10016
|
),
|
|
10058
|
-
React__default[
|
|
10017
|
+
React__default['default'].createElement(
|
|
10059
10018
|
'h2',
|
|
10060
10019
|
{ className: 'article-title' },
|
|
10061
10020
|
article.title
|
|
10062
10021
|
),
|
|
10063
|
-
React__default[
|
|
10022
|
+
React__default['default'].createElement(
|
|
10064
10023
|
'div',
|
|
10065
10024
|
{ className: 'mt-2 mb-2' },
|
|
10066
|
-
React__default[
|
|
10025
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
10067
10026
|
serializers: getSerializers,
|
|
10068
10027
|
videoAccountIDs: accountIDs,
|
|
10069
10028
|
blocks: article.text,
|
|
10070
10029
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
10071
10030
|
}, client.config())),
|
|
10072
|
-
React__default[
|
|
10031
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' })
|
|
10073
10032
|
),
|
|
10074
|
-
Articles.length > 1 && React__default[
|
|
10075
|
-
React__default[
|
|
10033
|
+
Articles.length > 1 && React__default['default'].createElement(
|
|
10034
|
+
React__default['default'].Fragment,
|
|
10076
10035
|
null,
|
|
10077
|
-
React__default[
|
|
10036
|
+
React__default['default'].createElement(
|
|
10078
10037
|
'div',
|
|
10079
10038
|
{ className: 'objective-prevNext-Wrapper' },
|
|
10080
|
-
React__default[
|
|
10039
|
+
React__default['default'].createElement(
|
|
10081
10040
|
'h5',
|
|
10082
10041
|
{ className: 'objective-title' },
|
|
10083
10042
|
nodes.seriesTitle
|
|
10084
10043
|
),
|
|
10085
|
-
React__default[
|
|
10044
|
+
React__default['default'].createElement(
|
|
10086
10045
|
'div',
|
|
10087
10046
|
{ className: 'prevNextWrapper' },
|
|
10088
10047
|
PrevNextCards(true, index)
|
|
10089
10048
|
)
|
|
10090
10049
|
),
|
|
10091
|
-
React__default[
|
|
10050
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' })
|
|
10092
10051
|
)
|
|
10093
10052
|
)
|
|
10094
10053
|
)
|
|
10095
10054
|
);
|
|
10096
10055
|
}),
|
|
10097
|
-
React__default[
|
|
10056
|
+
React__default['default'].createElement(
|
|
10098
10057
|
'style',
|
|
10099
10058
|
{ jsx: 'true' },
|
|
10100
10059
|
'\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 '
|
|
@@ -10124,11 +10083,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
10124
10083
|
};
|
|
10125
10084
|
}, [handleClickOutside]);
|
|
10126
10085
|
|
|
10127
|
-
return React__default[
|
|
10086
|
+
return React__default['default'].createElement(
|
|
10128
10087
|
'div',
|
|
10129
10088
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (!disableLightBox && showLightbox ? 'open' : 'close') },
|
|
10130
|
-
React__default[
|
|
10131
|
-
React__default[
|
|
10089
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
10090
|
+
React__default['default'].createElement(
|
|
10132
10091
|
'style',
|
|
10133
10092
|
{ jsx: 'true' },
|
|
10134
10093
|
'\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 '
|
|
@@ -10142,7 +10101,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
10142
10101
|
}
|
|
10143
10102
|
};
|
|
10144
10103
|
|
|
10145
|
-
var FigureImage$1 = React__default[
|
|
10104
|
+
var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
10146
10105
|
var node = _ref2.node,
|
|
10147
10106
|
client = _ref2.client,
|
|
10148
10107
|
imgAlt = _ref2.imgAlt,
|
|
@@ -10150,13 +10109,13 @@ var FigureImage$1 = React__default["default"].memo(function (_ref2) {
|
|
|
10150
10109
|
handleClickFigure = _ref2.handleClickFigure;
|
|
10151
10110
|
|
|
10152
10111
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
10153
|
-
return React__default[
|
|
10112
|
+
return React__default['default'].createElement(
|
|
10154
10113
|
'picture',
|
|
10155
10114
|
null,
|
|
10156
|
-
React__default[
|
|
10157
|
-
React__default[
|
|
10158
|
-
React__default[
|
|
10159
|
-
React__default[
|
|
10115
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
10116
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
10117
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
10118
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
10160
10119
|
style: figureImageStyle,
|
|
10161
10120
|
className: 'figure-image',
|
|
10162
10121
|
src: urlFor({ source: node, client: client }),
|
|
@@ -10208,30 +10167,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10208
10167
|
|
|
10209
10168
|
var renderTooltip = function renderTooltip(props) {
|
|
10210
10169
|
if (infoBox[0].title) {
|
|
10211
|
-
return React__default[
|
|
10212
|
-
Popover__default[
|
|
10170
|
+
return React__default['default'].createElement(
|
|
10171
|
+
Popover__default['default'],
|
|
10213
10172
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
10214
|
-
React__default[
|
|
10215
|
-
Popover__default[
|
|
10173
|
+
React__default['default'].createElement(
|
|
10174
|
+
Popover__default['default'].Title,
|
|
10216
10175
|
{ as: 'h3' },
|
|
10217
10176
|
infoBox[0].title
|
|
10218
10177
|
),
|
|
10219
|
-
React__default[
|
|
10220
|
-
Popover__default[
|
|
10178
|
+
React__default['default'].createElement(
|
|
10179
|
+
Popover__default['default'].Content,
|
|
10221
10180
|
null,
|
|
10222
|
-
React__default[
|
|
10181
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
10223
10182
|
)
|
|
10224
10183
|
);
|
|
10225
10184
|
} else {
|
|
10226
|
-
return React__default[
|
|
10227
|
-
Tooltip__default[
|
|
10185
|
+
return React__default['default'].createElement(
|
|
10186
|
+
Tooltip__default['default'],
|
|
10228
10187
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
10229
|
-
React__default[
|
|
10188
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
10230
10189
|
);
|
|
10231
10190
|
}
|
|
10232
10191
|
};
|
|
10233
10192
|
|
|
10234
|
-
var FigureImageWOverLay = React__default[
|
|
10193
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
10235
10194
|
var node = _ref3.node,
|
|
10236
10195
|
client = _ref3.client,
|
|
10237
10196
|
imgAlt = _ref3.imgAlt,
|
|
@@ -10241,13 +10200,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10241
10200
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
10242
10201
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
10243
10202
|
var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
10244
|
-
return React__default[
|
|
10203
|
+
return React__default['default'].createElement(
|
|
10245
10204
|
'picture',
|
|
10246
10205
|
null,
|
|
10247
|
-
React__default[
|
|
10248
|
-
React__default[
|
|
10249
|
-
React__default[
|
|
10250
|
-
main.main_42 && link ? React__default[
|
|
10206
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
10207
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
10208
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
10209
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
10251
10210
|
style: figureImageStyle,
|
|
10252
10211
|
className: 'figure-image',
|
|
10253
10212
|
src: urlFor({ source: node, client: client }),
|
|
@@ -10256,10 +10215,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10256
10215
|
onClick: function onClick() {
|
|
10257
10216
|
return handleClickFigure(node, client);
|
|
10258
10217
|
}
|
|
10259
|
-
})) : React__default[
|
|
10260
|
-
OverlayTrigger__default[
|
|
10218
|
+
})) : React__default['default'].createElement(
|
|
10219
|
+
OverlayTrigger__default['default'],
|
|
10261
10220
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
10262
|
-
React__default[
|
|
10221
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
10263
10222
|
style: figureImageStyle,
|
|
10264
10223
|
className: 'figure-image',
|
|
10265
10224
|
src: urlFor({ source: node, client: client }),
|
|
@@ -10313,13 +10272,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10313
10272
|
|
|
10314
10273
|
var FigureCaption = React.useCallback(function () {
|
|
10315
10274
|
if (imgcaption && imgcaption.length > 0) {
|
|
10316
|
-
return React__default[
|
|
10275
|
+
return React__default['default'].createElement(
|
|
10317
10276
|
'div',
|
|
10318
10277
|
{ className: 'figure-caption' },
|
|
10319
|
-
React__default[
|
|
10278
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
10320
10279
|
);
|
|
10321
10280
|
} else if (caption) {
|
|
10322
|
-
return React__default[
|
|
10281
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
10323
10282
|
} else return null;
|
|
10324
10283
|
}, [caption, imgcaption]);
|
|
10325
10284
|
|
|
@@ -10336,24 +10295,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10336
10295
|
setShowLightbox(true);
|
|
10337
10296
|
}, [node, client]);
|
|
10338
10297
|
|
|
10339
|
-
return React__default[
|
|
10340
|
-
React__default[
|
|
10298
|
+
return React__default['default'].createElement(
|
|
10299
|
+
React__default['default'].Fragment,
|
|
10341
10300
|
null,
|
|
10342
|
-
infoBox.length >= 1 ? React__default[
|
|
10343
|
-
Figure__default[
|
|
10301
|
+
infoBox.length >= 1 ? React__default['default'].createElement(
|
|
10302
|
+
Figure__default['default'],
|
|
10344
10303
|
{ className: '' + class_name, style: figureStyle },
|
|
10345
|
-
link ? React__default[
|
|
10304
|
+
link ? React__default['default'].createElement(
|
|
10346
10305
|
'a',
|
|
10347
10306
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
10348
|
-
React__default[
|
|
10349
|
-
React__default[
|
|
10350
|
-
) : React__default[
|
|
10351
|
-
React__default[
|
|
10307
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
10308
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
10309
|
+
) : React__default['default'].createElement(
|
|
10310
|
+
React__default['default'].Fragment,
|
|
10352
10311
|
null,
|
|
10353
|
-
React__default[
|
|
10354
|
-
React__default[
|
|
10312
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
10313
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
10355
10314
|
),
|
|
10356
|
-
React__default[
|
|
10315
|
+
React__default['default'].createElement(LightBox, {
|
|
10357
10316
|
showLightbox: showLightbox,
|
|
10358
10317
|
lightboxImgSrc: lightboxImgSrc,
|
|
10359
10318
|
disableLightBox: disableLightBox,
|
|
@@ -10362,21 +10321,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10362
10321
|
setShowLightbox(false);
|
|
10363
10322
|
}
|
|
10364
10323
|
})
|
|
10365
|
-
) : React__default[
|
|
10366
|
-
Figure__default[
|
|
10324
|
+
) : React__default['default'].createElement(
|
|
10325
|
+
Figure__default['default'],
|
|
10367
10326
|
{ className: '' + class_name, style: figureStyle },
|
|
10368
|
-
link ? React__default[
|
|
10327
|
+
link ? React__default['default'].createElement(
|
|
10369
10328
|
'a',
|
|
10370
10329
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
10371
|
-
React__default[
|
|
10372
|
-
React__default[
|
|
10373
|
-
) : React__default[
|
|
10374
|
-
React__default[
|
|
10330
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
10331
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
10332
|
+
) : React__default['default'].createElement(
|
|
10333
|
+
React__default['default'].Fragment,
|
|
10375
10334
|
null,
|
|
10376
|
-
React__default[
|
|
10377
|
-
React__default[
|
|
10335
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
10336
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
10378
10337
|
),
|
|
10379
|
-
React__default[
|
|
10338
|
+
React__default['default'].createElement(LightBox, {
|
|
10380
10339
|
showLightbox: showLightbox,
|
|
10381
10340
|
lightboxImgSrc: lightboxImgSrc,
|
|
10382
10341
|
disableLightBox: disableLightBox,
|
|
@@ -10386,7 +10345,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10386
10345
|
}
|
|
10387
10346
|
})
|
|
10388
10347
|
),
|
|
10389
|
-
React__default[
|
|
10348
|
+
React__default['default'].createElement(
|
|
10390
10349
|
'style',
|
|
10391
10350
|
{ jsx: 'true' },
|
|
10392
10351
|
'\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 '
|
|
@@ -10394,7 +10353,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
10394
10353
|
);
|
|
10395
10354
|
};
|
|
10396
10355
|
|
|
10397
|
-
var Figure = React__default[
|
|
10356
|
+
var Figure = React__default['default'].memo(FigureComponent, compareProps);
|
|
10398
10357
|
|
|
10399
10358
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
10400
10359
|
React.useEffect(function () {
|
|
@@ -10411,7 +10370,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
10411
10370
|
}, [ref]);
|
|
10412
10371
|
}
|
|
10413
10372
|
|
|
10414
|
-
var FigureImage = React__default[
|
|
10373
|
+
var FigureImage = React__default['default'].memo(function (_ref) {
|
|
10415
10374
|
var imagesCount = _ref.imagesCount,
|
|
10416
10375
|
image = _ref.image,
|
|
10417
10376
|
client = _ref.client,
|
|
@@ -10419,13 +10378,13 @@ var FigureImage = React__default["default"].memo(function (_ref) {
|
|
|
10419
10378
|
link = _ref.link,
|
|
10420
10379
|
handleClickFigure = _ref.handleClickFigure;
|
|
10421
10380
|
|
|
10422
|
-
return React__default[
|
|
10381
|
+
return React__default['default'].createElement(
|
|
10423
10382
|
'picture',
|
|
10424
10383
|
null,
|
|
10425
|
-
React__default[
|
|
10426
|
-
React__default[
|
|
10427
|
-
React__default[
|
|
10428
|
-
React__default[
|
|
10384
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
10385
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
10386
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
10387
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
10429
10388
|
'images-count': imagesCount,
|
|
10430
10389
|
className: 'multi-figure-image',
|
|
10431
10390
|
src: urlFor({ source: image, client: client }),
|
|
@@ -10462,13 +10421,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
10462
10421
|
imgcaption = _ref2.imgcaption;
|
|
10463
10422
|
|
|
10464
10423
|
if (imgcaption && imgcaption.length > 0) {
|
|
10465
|
-
return React__default[
|
|
10424
|
+
return React__default['default'].createElement(
|
|
10466
10425
|
'div',
|
|
10467
10426
|
{ className: 'multi-figure-caption' },
|
|
10468
|
-
React__default[
|
|
10427
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
10469
10428
|
);
|
|
10470
10429
|
} else if (caption) {
|
|
10471
|
-
return React__default[
|
|
10430
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
10472
10431
|
} else return null;
|
|
10473
10432
|
};
|
|
10474
10433
|
|
|
@@ -10477,7 +10436,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
10477
10436
|
setOpenImg(true);
|
|
10478
10437
|
}, [client]);
|
|
10479
10438
|
|
|
10480
|
-
var FigureImageWOverLay = React__default[
|
|
10439
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
10481
10440
|
var imagesCount = _ref3.imagesCount,
|
|
10482
10441
|
image = _ref3.image,
|
|
10483
10442
|
client = _ref3.client,
|
|
@@ -10487,13 +10446,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
10487
10446
|
|
|
10488
10447
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
10489
10448
|
var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
10490
|
-
return React__default[
|
|
10449
|
+
return React__default['default'].createElement(
|
|
10491
10450
|
'picture',
|
|
10492
10451
|
null,
|
|
10493
|
-
React__default[
|
|
10494
|
-
React__default[
|
|
10495
|
-
React__default[
|
|
10496
|
-
main.main_42 && link ? React__default[
|
|
10452
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
10453
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
10454
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
10455
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
10497
10456
|
'images-count': imagesCount,
|
|
10498
10457
|
className: 'multi-figure-image',
|
|
10499
10458
|
src: urlFor({ source: image, client: client }),
|
|
@@ -10502,10 +10461,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
10502
10461
|
onClick: function onClick() {
|
|
10503
10462
|
return handleClickFigure(image, client);
|
|
10504
10463
|
}
|
|
10505
|
-
})) : React__default[
|
|
10506
|
-
OverlayTrigger__default[
|
|
10464
|
+
})) : React__default['default'].createElement(
|
|
10465
|
+
OverlayTrigger__default['default'],
|
|
10507
10466
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
10508
|
-
React__default[
|
|
10467
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
10509
10468
|
'images-count': imagesCount,
|
|
10510
10469
|
className: 'multi-figure-image',
|
|
10511
10470
|
src: urlFor({ source: image, client: client }),
|
|
@@ -10521,102 +10480,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
10521
10480
|
|
|
10522
10481
|
var renderTooltip = function renderTooltip(image) {
|
|
10523
10482
|
if (image.infoBox[0].title) {
|
|
10524
|
-
return React__default[
|
|
10525
|
-
Popover__default[
|
|
10483
|
+
return React__default['default'].createElement(
|
|
10484
|
+
Popover__default['default'],
|
|
10526
10485
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
10527
|
-
React__default[
|
|
10528
|
-
Popover__default[
|
|
10486
|
+
React__default['default'].createElement(
|
|
10487
|
+
Popover__default['default'].Title,
|
|
10529
10488
|
{ as: 'h3' },
|
|
10530
10489
|
image.infoBox[0].title
|
|
10531
10490
|
),
|
|
10532
|
-
React__default[
|
|
10533
|
-
Popover__default[
|
|
10491
|
+
React__default['default'].createElement(
|
|
10492
|
+
Popover__default['default'].Content,
|
|
10534
10493
|
null,
|
|
10535
|
-
React__default[
|
|
10494
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
10536
10495
|
)
|
|
10537
10496
|
);
|
|
10538
10497
|
} else {
|
|
10539
|
-
return React__default[
|
|
10540
|
-
Tooltip__default[
|
|
10498
|
+
return React__default['default'].createElement(
|
|
10499
|
+
Tooltip__default['default'],
|
|
10541
10500
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
10542
|
-
React__default[
|
|
10501
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
10543
10502
|
);
|
|
10544
10503
|
}
|
|
10545
10504
|
};
|
|
10546
10505
|
|
|
10547
10506
|
if (images && images.length > 0) {
|
|
10548
|
-
return React__default[
|
|
10507
|
+
return React__default['default'].createElement(
|
|
10549
10508
|
'div',
|
|
10550
10509
|
{ className: 'multi-figure-container' },
|
|
10551
|
-
React__default[
|
|
10552
|
-
Row__default[
|
|
10510
|
+
React__default['default'].createElement(
|
|
10511
|
+
Row__default['default'],
|
|
10553
10512
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
10554
10513
|
images.map(function (image, index) {
|
|
10555
10514
|
if (image.infoBox) {
|
|
10556
|
-
return React__default[
|
|
10557
|
-
Col__default[
|
|
10515
|
+
return React__default['default'].createElement(
|
|
10516
|
+
Col__default['default'],
|
|
10558
10517
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
10559
|
-
image.link ? React__default[
|
|
10518
|
+
image.link ? React__default['default'].createElement(
|
|
10560
10519
|
'a',
|
|
10561
10520
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
10562
|
-
React__default[
|
|
10521
|
+
React__default['default'].createElement(
|
|
10563
10522
|
'div',
|
|
10564
10523
|
{ className: 'multi-figure-image-container' },
|
|
10565
|
-
React__default[
|
|
10524
|
+
React__default['default'].createElement(
|
|
10566
10525
|
index$2.LazyLoad,
|
|
10567
10526
|
{ once: true },
|
|
10568
|
-
React__default[
|
|
10527
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
10569
10528
|
),
|
|
10570
|
-
React__default[
|
|
10529
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
10571
10530
|
)
|
|
10572
|
-
) : React__default[
|
|
10531
|
+
) : React__default['default'].createElement(
|
|
10573
10532
|
'div',
|
|
10574
10533
|
{ className: 'multi-figure-image-container' },
|
|
10575
|
-
React__default[
|
|
10534
|
+
React__default['default'].createElement(
|
|
10576
10535
|
index$2.LazyLoad,
|
|
10577
10536
|
{ once: true },
|
|
10578
|
-
React__default[
|
|
10537
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
10579
10538
|
),
|
|
10580
|
-
React__default[
|
|
10539
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
10581
10540
|
)
|
|
10582
10541
|
);
|
|
10583
10542
|
} else {
|
|
10584
|
-
return React__default[
|
|
10585
|
-
Col__default[
|
|
10543
|
+
return React__default['default'].createElement(
|
|
10544
|
+
Col__default['default'],
|
|
10586
10545
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
10587
|
-
image.link ? React__default[
|
|
10546
|
+
image.link ? React__default['default'].createElement(
|
|
10588
10547
|
'a',
|
|
10589
10548
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
10590
|
-
React__default[
|
|
10549
|
+
React__default['default'].createElement(
|
|
10591
10550
|
'div',
|
|
10592
10551
|
{ className: 'multi-figure-image-container' },
|
|
10593
|
-
React__default[
|
|
10552
|
+
React__default['default'].createElement(
|
|
10594
10553
|
index$2.LazyLoad,
|
|
10595
10554
|
{ once: true },
|
|
10596
|
-
React__default[
|
|
10555
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
10597
10556
|
),
|
|
10598
|
-
React__default[
|
|
10557
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
10599
10558
|
)
|
|
10600
|
-
) : React__default[
|
|
10559
|
+
) : React__default['default'].createElement(
|
|
10601
10560
|
'div',
|
|
10602
10561
|
{ className: 'multi-figure-image-container' },
|
|
10603
|
-
React__default[
|
|
10562
|
+
React__default['default'].createElement(
|
|
10604
10563
|
index$2.LazyLoad,
|
|
10605
10564
|
{ once: true },
|
|
10606
|
-
React__default[
|
|
10565
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
10607
10566
|
),
|
|
10608
|
-
React__default[
|
|
10567
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
10609
10568
|
)
|
|
10610
10569
|
);
|
|
10611
10570
|
}
|
|
10612
10571
|
})
|
|
10613
10572
|
),
|
|
10614
|
-
React__default[
|
|
10573
|
+
React__default['default'].createElement(
|
|
10615
10574
|
'div',
|
|
10616
10575
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
10617
|
-
React__default[
|
|
10576
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
10618
10577
|
),
|
|
10619
|
-
React__default[
|
|
10578
|
+
React__default['default'].createElement(
|
|
10620
10579
|
'style',
|
|
10621
10580
|
{ jsx: 'true' },
|
|
10622
10581
|
'\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 '
|
|
@@ -10665,23 +10624,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
10665
10624
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
10666
10625
|
}, []);
|
|
10667
10626
|
|
|
10668
|
-
return React__default[
|
|
10669
|
-
React__default[
|
|
10627
|
+
return React__default['default'].createElement(
|
|
10628
|
+
React__default['default'].Fragment,
|
|
10670
10629
|
null,
|
|
10671
|
-
React__default[
|
|
10672
|
-
Head__default[
|
|
10630
|
+
React__default['default'].createElement(
|
|
10631
|
+
Head__default['default'],
|
|
10673
10632
|
null,
|
|
10674
|
-
React__default[
|
|
10633
|
+
React__default['default'].createElement('script', {
|
|
10675
10634
|
dangerouslySetInnerHTML: {
|
|
10676
10635
|
__html: 'history.scrollRestoration = "manual"'
|
|
10677
10636
|
}
|
|
10678
10637
|
})
|
|
10679
10638
|
),
|
|
10680
|
-
React__default[
|
|
10639
|
+
React__default['default'].createElement(
|
|
10681
10640
|
'div',
|
|
10682
10641
|
{ id: elementId },
|
|
10683
|
-
React__default[
|
|
10684
|
-
React__default[
|
|
10642
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
10643
|
+
React__default['default'].createElement(
|
|
10685
10644
|
'style',
|
|
10686
10645
|
{ jsx: 'true' },
|
|
10687
10646
|
'\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 '
|
|
@@ -10735,11 +10694,11 @@ var _inherits3 = _interopRequireDefault(inherits$2.inherits);
|
|
|
10735
10694
|
|
|
10736
10695
|
|
|
10737
10696
|
|
|
10738
|
-
var _react2 = _interopRequireDefault(React__default[
|
|
10697
|
+
var _react2 = _interopRequireDefault(React__default['default']);
|
|
10739
10698
|
|
|
10740
10699
|
|
|
10741
10700
|
|
|
10742
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default[
|
|
10701
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
|
|
10743
10702
|
|
|
10744
10703
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10745
10704
|
var noop = function noop() {};
|
|
@@ -10894,7 +10853,7 @@ var ScriptTag = function (_Component) {
|
|
|
10894
10853
|
};
|
|
10895
10854
|
|
|
10896
10855
|
return ScriptTag;
|
|
10897
|
-
}(React__default[
|
|
10856
|
+
}(React__default['default'].Component);
|
|
10898
10857
|
|
|
10899
10858
|
ScriptTag.propTypes = {
|
|
10900
10859
|
/**
|
|
@@ -10986,11 +10945,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10986
10945
|
}, [anonymousID]);
|
|
10987
10946
|
|
|
10988
10947
|
if (iframeSrc) {
|
|
10989
|
-
return React__default[
|
|
10948
|
+
return React__default['default'].createElement(
|
|
10990
10949
|
'section',
|
|
10991
10950
|
{ className: 'form-assembly' },
|
|
10992
|
-
iframeSrc && React__default[
|
|
10993
|
-
React__default[
|
|
10951
|
+
iframeSrc && React__default['default'].createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10952
|
+
React__default['default'].createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10994
10953
|
);
|
|
10995
10954
|
}
|
|
10996
10955
|
|
|
@@ -11047,27 +11006,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
11047
11006
|
}
|
|
11048
11007
|
};
|
|
11049
11008
|
|
|
11050
|
-
return React__default[
|
|
11009
|
+
return React__default['default'].createElement(
|
|
11051
11010
|
'div',
|
|
11052
11011
|
{ className: 'blockTableHolder', ref: holder },
|
|
11053
|
-
React__default[
|
|
11012
|
+
React__default['default'].createElement(
|
|
11054
11013
|
'div',
|
|
11055
11014
|
{ className: 'blockTable' },
|
|
11056
11015
|
rows && rows.map(function (row, index) {
|
|
11057
|
-
return React__default[
|
|
11016
|
+
return React__default['default'].createElement(
|
|
11058
11017
|
'div',
|
|
11059
11018
|
{ key: 'tr-' + index, className: 'blockTableRow', style: index == rows.length - 1 ? styles.blockTableRowLast : styles.blockTableRow },
|
|
11060
11019
|
row.cells && row.cells.map(function (cell, cellIndex) {
|
|
11061
|
-
return React__default[
|
|
11020
|
+
return React__default['default'].createElement(
|
|
11062
11021
|
'div',
|
|
11063
11022
|
{ key: 'cell-' + cellIndex, className: 'blockTableCell', style: cellIndex == row.cells.length - 1 ? _extends._extends({ width: (100 / row.cells.length).toFixed(2) + '%' }, styles.blockTableCellLast) : _extends._extends({ width: (100 / row.cells.length).toFixed(2) + '%' }, styles.blockTableCell) },
|
|
11064
|
-
React__default[
|
|
11023
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
11065
11024
|
);
|
|
11066
11025
|
})
|
|
11067
11026
|
);
|
|
11068
11027
|
})
|
|
11069
11028
|
),
|
|
11070
|
-
React__default[
|
|
11029
|
+
React__default['default'].createElement(
|
|
11071
11030
|
'style',
|
|
11072
11031
|
{ jsx: true },
|
|
11073
11032
|
'\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -11081,7 +11040,7 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
11081
11040
|
_props$node.needSegmentSupport;
|
|
11082
11041
|
|
|
11083
11042
|
|
|
11084
|
-
return React__default[
|
|
11043
|
+
return React__default['default'].createElement('div', { className: 'digiohWrapper', id: FormID });
|
|
11085
11044
|
};
|
|
11086
11045
|
|
|
11087
11046
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -11141,7 +11100,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11141
11100
|
if (href && href.charAt(0) === '#') {
|
|
11142
11101
|
var elementId = href.slice(1);
|
|
11143
11102
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
11144
|
-
return React__default[
|
|
11103
|
+
return React__default['default'].createElement(
|
|
11145
11104
|
'a',
|
|
11146
11105
|
{ onClick: function onClick() {
|
|
11147
11106
|
return ScrollToElement(elementId);
|
|
@@ -11151,11 +11110,11 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11151
11110
|
}
|
|
11152
11111
|
|
|
11153
11112
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite.checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
11154
|
-
return href ? linkRel.trim().length > 0 ? React__default[
|
|
11113
|
+
return href ? linkRel.trim().length > 0 ? React__default['default'].createElement(
|
|
11155
11114
|
'a',
|
|
11156
11115
|
_extends._extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
11157
11116
|
children
|
|
11158
|
-
) : React__default[
|
|
11117
|
+
) : React__default['default'].createElement(
|
|
11159
11118
|
'a',
|
|
11160
11119
|
_extends._extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
11161
11120
|
children
|
|
@@ -11220,12 +11179,12 @@ var getSerializers = function getSerializers() {
|
|
|
11220
11179
|
var node = _ref.node;
|
|
11221
11180
|
var url = node.url;
|
|
11222
11181
|
|
|
11223
|
-
return React__default[
|
|
11182
|
+
return React__default['default'].createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
11224
11183
|
},
|
|
11225
11184
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
11226
11185
|
var node = _ref2.node;
|
|
11227
11186
|
|
|
11228
|
-
return React__default[
|
|
11187
|
+
return React__default['default'].createElement(YouTubeGallery, {
|
|
11229
11188
|
nodes: node,
|
|
11230
11189
|
article: article,
|
|
11231
11190
|
meta: meta,
|
|
@@ -11239,7 +11198,7 @@ var getSerializers = function getSerializers() {
|
|
|
11239
11198
|
articleSeries: function articleSeries(_ref3) {
|
|
11240
11199
|
var node = _ref3.node;
|
|
11241
11200
|
|
|
11242
|
-
return React__default[
|
|
11201
|
+
return React__default['default'].createElement(ArticleSeries, {
|
|
11243
11202
|
nodes: node,
|
|
11244
11203
|
accountIDs: videoAccountIDs || {},
|
|
11245
11204
|
pageview: pageview,
|
|
@@ -11252,61 +11211,61 @@ var getSerializers = function getSerializers() {
|
|
|
11252
11211
|
figure: function figure(_ref4) {
|
|
11253
11212
|
var node = _ref4.node;
|
|
11254
11213
|
|
|
11255
|
-
return React__default[
|
|
11214
|
+
return React__default['default'].createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
11256
11215
|
},
|
|
11257
11216
|
multifigure: function multifigure(_ref5) {
|
|
11258
11217
|
var node = _ref5.node;
|
|
11259
11218
|
|
|
11260
|
-
return React__default[
|
|
11219
|
+
return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
11261
11220
|
},
|
|
11262
11221
|
slideshow: function slideshow(_ref6) {
|
|
11263
11222
|
var node = _ref6.node;
|
|
11264
11223
|
var slides = node.slides;
|
|
11265
11224
|
|
|
11266
|
-
return React__default[
|
|
11225
|
+
return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
11267
11226
|
},
|
|
11268
11227
|
sidebar: function sidebar(_ref7) {
|
|
11269
11228
|
var node = _ref7.node;
|
|
11270
11229
|
var caption = node.caption,
|
|
11271
11230
|
content = node.content;
|
|
11272
11231
|
|
|
11273
|
-
return React__default[
|
|
11232
|
+
return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
11274
11233
|
},
|
|
11275
11234
|
datatable: function datatable(_ref8) {
|
|
11276
11235
|
var node = _ref8.node;
|
|
11277
11236
|
var table = node.table;
|
|
11278
11237
|
|
|
11279
|
-
return React__default[
|
|
11238
|
+
return React__default['default'].createElement(TableShow, { rows: table.rows });
|
|
11280
11239
|
},
|
|
11281
11240
|
media: function media(_ref9) {
|
|
11282
11241
|
var node = _ref9.node;
|
|
11283
11242
|
|
|
11284
|
-
return React__default[
|
|
11243
|
+
return React__default['default'].createElement(Media, { node: node, client: client });
|
|
11285
11244
|
},
|
|
11286
11245
|
iframe: function iframe(_ref10) {
|
|
11287
11246
|
var node = _ref10.node;
|
|
11288
11247
|
|
|
11289
|
-
return React__default[
|
|
11248
|
+
return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
11290
11249
|
},
|
|
11291
11250
|
video: function video(_ref11) {
|
|
11292
11251
|
var node = _ref11.node;
|
|
11293
11252
|
|
|
11294
|
-
return React__default[
|
|
11253
|
+
return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
11295
11254
|
},
|
|
11296
11255
|
audio: function audio(_ref12) {
|
|
11297
11256
|
var node = _ref12.node;
|
|
11298
11257
|
|
|
11299
|
-
return React__default[
|
|
11258
|
+
return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
11300
11259
|
},
|
|
11301
11260
|
poll: function poll(_ref13) {
|
|
11302
11261
|
var node = _ref13.node;
|
|
11303
11262
|
|
|
11304
|
-
return React__default[
|
|
11263
|
+
return React__default['default'].createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
11305
11264
|
},
|
|
11306
11265
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
11307
11266
|
var node = _ref14.node;
|
|
11308
11267
|
|
|
11309
|
-
return React__default[
|
|
11268
|
+
return React__default['default'].createElement(Poll, {
|
|
11310
11269
|
node: node,
|
|
11311
11270
|
client: client,
|
|
11312
11271
|
pageview: pageview,
|
|
@@ -11320,35 +11279,35 @@ var getSerializers = function getSerializers() {
|
|
|
11320
11279
|
var node = _ref15.node;
|
|
11321
11280
|
var quizzes = node.quizzes;
|
|
11322
11281
|
|
|
11323
|
-
return React__default[
|
|
11282
|
+
return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
11324
11283
|
},
|
|
11325
11284
|
leads: function leads(_ref16) {
|
|
11326
11285
|
var node = _ref16.node;
|
|
11327
11286
|
var leadID = node.leadID;
|
|
11328
11287
|
|
|
11329
11288
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
11330
|
-
return React__default[
|
|
11289
|
+
return React__default['default'].createElement(Leads, { url: url });
|
|
11331
11290
|
},
|
|
11332
11291
|
slideshows: function slideshows(_ref17) {
|
|
11333
11292
|
var node = _ref17.node;
|
|
11334
11293
|
|
|
11335
|
-
return React__default[
|
|
11294
|
+
return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
11336
11295
|
},
|
|
11337
11296
|
nativeAd: function nativeAd(_ref18) {
|
|
11338
11297
|
var node = _ref18.node;
|
|
11339
11298
|
|
|
11340
|
-
return React__default[
|
|
11299
|
+
return React__default['default'].createElement(NativeAd, { node: node });
|
|
11341
11300
|
},
|
|
11342
11301
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
11343
11302
|
var node = _ref19.node;
|
|
11344
11303
|
|
|
11345
|
-
return React__default[
|
|
11304
|
+
return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
11346
11305
|
},
|
|
11347
11306
|
hrtag: function hrtag() {
|
|
11348
|
-
return React__default[
|
|
11307
|
+
return React__default['default'].createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
11349
11308
|
},
|
|
11350
11309
|
brtag: function brtag() {
|
|
11351
|
-
return React__default[
|
|
11310
|
+
return React__default['default'].createElement('br', { className: 'line-break' });
|
|
11352
11311
|
},
|
|
11353
11312
|
formstack: function formstack(_ref20) {
|
|
11354
11313
|
var node = _ref20.node;
|
|
@@ -11356,30 +11315,30 @@ var getSerializers = function getSerializers() {
|
|
|
11356
11315
|
Caption = node.Caption,
|
|
11357
11316
|
needSegmentSupport = node.needSegmentSupport;
|
|
11358
11317
|
|
|
11359
|
-
return React__default[
|
|
11318
|
+
return React__default['default'].createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
11360
11319
|
},
|
|
11361
11320
|
formassembly: FormAssembly,
|
|
11362
11321
|
digiohSmartTag: DigiohSmartTag,
|
|
11363
11322
|
multimedia: function multimedia(_ref21) {
|
|
11364
11323
|
var node = _ref21.node;
|
|
11365
11324
|
|
|
11366
|
-
return React__default[
|
|
11325
|
+
return React__default['default'].createElement(MultiMedia, { node: node, client: client });
|
|
11367
11326
|
},
|
|
11368
11327
|
blockTable: function blockTable(_ref22) {
|
|
11369
11328
|
var node = _ref22.node;
|
|
11370
|
-
return React__default[
|
|
11329
|
+
return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
11371
11330
|
}
|
|
11372
11331
|
},
|
|
11373
11332
|
marks: {
|
|
11374
11333
|
superscript: function superscript(props) {
|
|
11375
|
-
return React__default[
|
|
11334
|
+
return React__default['default'].createElement(
|
|
11376
11335
|
'sup',
|
|
11377
11336
|
null,
|
|
11378
11337
|
props.children
|
|
11379
11338
|
);
|
|
11380
11339
|
},
|
|
11381
11340
|
subscript: function subscript(props) {
|
|
11382
|
-
return React__default[
|
|
11341
|
+
return React__default['default'].createElement(
|
|
11383
11342
|
'sub',
|
|
11384
11343
|
null,
|
|
11385
11344
|
props.children
|
|
@@ -11389,11 +11348,11 @@ var getSerializers = function getSerializers() {
|
|
|
11389
11348
|
var children = props.children,
|
|
11390
11349
|
mark = props.mark;
|
|
11391
11350
|
|
|
11392
|
-
return React__default[
|
|
11351
|
+
return React__default['default'].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
11393
11352
|
},
|
|
11394
11353
|
alignleft: function alignleft(_ref23) {
|
|
11395
11354
|
var children = _ref23.children;
|
|
11396
|
-
return React__default[
|
|
11355
|
+
return React__default['default'].createElement(
|
|
11397
11356
|
'div',
|
|
11398
11357
|
{ style: { textAlign: 'left' } },
|
|
11399
11358
|
children
|
|
@@ -11401,7 +11360,7 @@ var getSerializers = function getSerializers() {
|
|
|
11401
11360
|
},
|
|
11402
11361
|
alignright: function alignright(_ref24) {
|
|
11403
11362
|
var children = _ref24.children;
|
|
11404
|
-
return React__default[
|
|
11363
|
+
return React__default['default'].createElement(
|
|
11405
11364
|
'div',
|
|
11406
11365
|
{ style: { textAlign: 'right' } },
|
|
11407
11366
|
children
|
|
@@ -11409,7 +11368,7 @@ var getSerializers = function getSerializers() {
|
|
|
11409
11368
|
},
|
|
11410
11369
|
aligncenter: function aligncenter(_ref25) {
|
|
11411
11370
|
var children = _ref25.children;
|
|
11412
|
-
return React__default[
|
|
11371
|
+
return React__default['default'].createElement(
|
|
11413
11372
|
'div',
|
|
11414
11373
|
{ style: { textAlign: 'center' } },
|
|
11415
11374
|
children
|
|
@@ -11417,7 +11376,7 @@ var getSerializers = function getSerializers() {
|
|
|
11417
11376
|
},
|
|
11418
11377
|
alignjustify: function alignjustify(_ref26) {
|
|
11419
11378
|
var children = _ref26.children;
|
|
11420
|
-
return React__default[
|
|
11379
|
+
return React__default['default'].createElement(
|
|
11421
11380
|
'div',
|
|
11422
11381
|
{ style: { textAlign: 'justify' } },
|
|
11423
11382
|
children
|
|
@@ -11427,7 +11386,7 @@ var getSerializers = function getSerializers() {
|
|
|
11427
11386
|
var children = props.children,
|
|
11428
11387
|
color = props.mark.color;
|
|
11429
11388
|
|
|
11430
|
-
return React__default[
|
|
11389
|
+
return React__default['default'].createElement(
|
|
11431
11390
|
'span',
|
|
11432
11391
|
{ style: { color: color ? color.hex : null } },
|
|
11433
11392
|
children
|