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