@mjhls/mjh-framework 1.0.876 → 1.0.877
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 +1 -1
- package/dist/cjs/AD300x250.js +2 -3
- package/dist/cjs/AD300x250x600.js +2 -3
- package/dist/cjs/AD728x90.js +2 -3
- package/dist/cjs/ADFloatingFooter.js +2 -3
- package/dist/cjs/ADGutter.js +2 -3
- package/dist/cjs/ADSkyscraper.js +2 -3
- package/dist/cjs/ADSponsoredResources.js +2 -3
- package/dist/cjs/ADWebcast.js +2 -3
- package/dist/cjs/ADWelcome.js +2 -3
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +5 -6
- package/dist/cjs/AdSlotsProvider.js +2 -3
- package/dist/cjs/AlgoliaSearch.js +17 -14098
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -5
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/Beam.js +2 -2
- package/dist/cjs/CMEDeck.js +2 -3
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -6
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -5
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +5 -6
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -37
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +12 -13
- package/dist/cjs/MediaSeriesLanding.js +406 -306
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -8
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Segment.js +0 -1
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-f9128638.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-4942ddfc.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +9 -10
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-6a2a3e03.js → index-2a2528f6.js} +28 -28
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +14 -15
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -7
- package/dist/esm/AD300x250x600.js +6 -7
- package/dist/esm/AD728x90.js +7 -8
- package/dist/esm/ADFloatingFooter.js +9 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -10
- package/dist/esm/{ADInfeed-6c6093ae.js → ADInfeed-c7b8f6be.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -10
- package/dist/esm/ADSponsoredResources.js +9 -10
- package/dist/esm/ADWebcast.js +9 -10
- package/dist/esm/ADWelcome.js +13 -14
- package/dist/esm/{ADlgInfeed-5d7386e8.js → ADlgInfeed-1aea5403.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +8 -9
- package/dist/esm/AdSlotsProvider.js +4 -5
- package/dist/esm/AlgoliaSearch.js +40 -14121
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -18
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -32
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-defe68b6.js} +10 -10
- package/dist/esm/Beam.js +2 -2
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -58
- package/dist/esm/DeckQueue.js +42 -43
- package/dist/esm/{Dfp-4ca12f2e.js → Dfp-4b99f79d.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -36
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +124 -125
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -32
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +51 -52
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +46 -47
- package/dist/esm/MediaSeriesLanding.js +432 -332
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +66 -67
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -15
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +246 -247
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +0 -1
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-485f514e.js → SeriesSlider-98b7a870.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a5b11613.js → SocialSearchComponent-9458fac6.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +29 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -25
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -13
- package/dist/esm/VideoSeriesListing.js +47 -48
- package/dist/esm/View.js +173 -174
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-ff2c9409.js → getTargeting-3792eba9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-5bbd1562.js → index-1d312e35.js} +444 -444
- package/dist/esm/{index-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +39 -40
- package/dist/esm/{main-b5c5aac1.js → main-1894c974.js} +20 -20
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -111
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- /package/dist/cjs/{ADInfeed-b9e5ff3f.js → ADInfeed-3c44e465.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-3cdefebd.js → ADlgInfeed-0c03dac2.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { _ as _extends, b as _extends$1 } from './extends-dc6a71fd.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
3
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-ca2c8b8d.js';
|
|
4
4
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
5
5
|
import urlFor from './urlFor.js';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
6
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
7
|
import Router, { useRouter } from 'next/router';
|
|
8
8
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import { u as util } from './util-3ab476bf.js';
|
|
12
|
-
import
|
|
12
|
+
import './Beam.js';
|
|
13
13
|
import Segment from './Segment.js';
|
|
14
|
-
import {
|
|
15
|
-
import { B as BlockContent } from './BlockContent-
|
|
16
|
-
import { L as LazyLoad } from './index-
|
|
14
|
+
import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
|
|
15
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
17
|
import { _ as _typeof$1 } from './typeof-83d9eb10.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
19
19
|
import GroupDeck from './GroupDeck.js';
|
|
20
20
|
import { m as moment } from './moment-bc12cb97.js';
|
|
21
21
|
import SocialShare from './SocialShare.js';
|
|
@@ -30,7 +30,7 @@ import Row$1 from 'react-bootstrap/Row';
|
|
|
30
30
|
import Col$1 from 'react-bootstrap/Col';
|
|
31
31
|
import Head from 'next/head';
|
|
32
32
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-8a801a18.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
36
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
@@ -69,27 +69,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React__default.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React__default.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React__default.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React__default.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -1831,9 +1831,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1831
1831
|
}, {
|
|
1832
1832
|
key: "render",
|
|
1833
1833
|
value: function render() {
|
|
1834
|
-
return /*#__PURE__*/
|
|
1834
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1835
1835
|
className: this.props.containerClassName
|
|
1836
|
-
}, /*#__PURE__*/
|
|
1836
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1837
1837
|
id: this.props.id,
|
|
1838
1838
|
className: this.props.className,
|
|
1839
1839
|
ref: this.refContainer
|
|
@@ -1842,7 +1842,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1842
1842
|
}]);
|
|
1843
1843
|
|
|
1844
1844
|
return YouTube;
|
|
1845
|
-
}(
|
|
1845
|
+
}(React__default.Component);
|
|
1846
1846
|
|
|
1847
1847
|
_defineProperty(YouTube, "PlayerState", {
|
|
1848
1848
|
UNSTARTED: -1,
|
|
@@ -1926,7 +1926,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1926
1926
|
var duration = player.getDuration();
|
|
1927
1927
|
var queue = Math.floor(duration / 10);
|
|
1928
1928
|
var segment = Math.floor(current / queue);
|
|
1929
|
-
Beam.report_beam_video('Ready',
|
|
1929
|
+
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1930
1930
|
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1931
1931
|
};
|
|
1932
1932
|
|
|
@@ -1937,7 +1937,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1937
|
var segment = Math.floor(current / queue);
|
|
1938
1938
|
|
|
1939
1939
|
if (!queueProgress.includes(segment)) {
|
|
1940
|
-
Beam.report_beam_video('Segment',
|
|
1940
|
+
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1941
1941
|
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1942
1942
|
queueProgress.push(segment);
|
|
1943
1943
|
}
|
|
@@ -1951,7 +1951,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1951
1951
|
var queue = Math.floor(duration / 10);
|
|
1952
1952
|
var segment = Math.floor(current / queue);
|
|
1953
1953
|
|
|
1954
|
-
Beam.report_beam_video('Play',
|
|
1954
|
+
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1955
1955
|
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1956
1956
|
|
|
1957
1957
|
if (!playReported) {
|
|
@@ -1971,7 +1971,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
1971
|
var queue = Math.floor(duration / 10);
|
|
1972
1972
|
var segment = Math.floor(current / queue);
|
|
1973
1973
|
|
|
1974
|
-
Beam.report_beam_video('End',
|
|
1974
|
+
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1975
1975
|
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
1976
1976
|
setEndReported(true);
|
|
1977
1977
|
clearInterval(intervalID);
|
|
@@ -1985,15 +1985,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
1985
|
var queue = Math.floor(duration / 10);
|
|
1986
1986
|
var segment = Math.floor(current / queue);
|
|
1987
1987
|
|
|
1988
|
-
Beam.report_beam_video('Pause',
|
|
1988
|
+
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1989
1989
|
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
1990
1990
|
};
|
|
1991
1991
|
|
|
1992
|
-
return
|
|
1992
|
+
return React__default.createElement(
|
|
1993
1993
|
'div',
|
|
1994
1994
|
{ id: 'fluid-video-container' },
|
|
1995
|
-
|
|
1996
|
-
|
|
1995
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1996
|
+
React__default.createElement(
|
|
1997
1997
|
'style',
|
|
1998
1998
|
{ jsx: 'true' },
|
|
1999
1999
|
'\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 '
|
|
@@ -2006,20 +2006,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2006
2006
|
content = _ref.content,
|
|
2007
2007
|
getSerializers = _ref.getSerializers;
|
|
2008
2008
|
|
|
2009
|
-
return
|
|
2009
|
+
return React__default.createElement(
|
|
2010
2010
|
'article',
|
|
2011
2011
|
{ className: 'sidebar' },
|
|
2012
|
-
|
|
2012
|
+
React__default.createElement(
|
|
2013
2013
|
'div',
|
|
2014
2014
|
null,
|
|
2015
|
-
|
|
2015
|
+
React__default.createElement(
|
|
2016
2016
|
'h3',
|
|
2017
2017
|
null,
|
|
2018
2018
|
caption
|
|
2019
2019
|
),
|
|
2020
|
-
|
|
2020
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2021
2021
|
),
|
|
2022
|
-
|
|
2022
|
+
React__default.createElement(
|
|
2023
2023
|
'style',
|
|
2024
2024
|
{ jsx: 'true' },
|
|
2025
2025
|
'\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 '
|
|
@@ -2030,18 +2030,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2030
|
var TableShow = function TableShow(_ref) {
|
|
2031
2031
|
var rows = _ref.rows;
|
|
2032
2032
|
|
|
2033
|
-
return
|
|
2033
|
+
return React__default.createElement(
|
|
2034
2034
|
Table,
|
|
2035
2035
|
{ bordered: true, hover: true, responsive: true },
|
|
2036
|
-
|
|
2036
|
+
React__default.createElement(
|
|
2037
2037
|
'tbody',
|
|
2038
2038
|
null,
|
|
2039
2039
|
rows && rows.map(function (row) {
|
|
2040
|
-
return
|
|
2040
|
+
return React__default.createElement(
|
|
2041
2041
|
'tr',
|
|
2042
2042
|
{ key: row._key },
|
|
2043
2043
|
row.cells && row.cells.map(function (cell, index) {
|
|
2044
|
-
return cell &&
|
|
2044
|
+
return cell && React__default.createElement(
|
|
2045
2045
|
'td',
|
|
2046
2046
|
{ key: index },
|
|
2047
2047
|
cell
|
|
@@ -2160,25 +2160,25 @@ var Media = function Media(_ref) {
|
|
|
2160
2160
|
margin: imageMargin
|
|
2161
2161
|
};
|
|
2162
2162
|
|
|
2163
|
-
return
|
|
2163
|
+
return React__default.createElement(
|
|
2164
2164
|
Figure$1,
|
|
2165
2165
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2166
|
-
|
|
2166
|
+
React__default.createElement(
|
|
2167
2167
|
'a',
|
|
2168
2168
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2169
|
-
|
|
2169
|
+
React__default.createElement(
|
|
2170
2170
|
LazyLoad,
|
|
2171
2171
|
{ once: true },
|
|
2172
|
-
|
|
2172
|
+
React__default.createElement(
|
|
2173
2173
|
'picture',
|
|
2174
2174
|
null,
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2175
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2176
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2177
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2178
|
+
React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2179
2179
|
)
|
|
2180
2180
|
),
|
|
2181
|
-
caption &&
|
|
2181
|
+
caption && React__default.createElement(
|
|
2182
2182
|
Figure$1.Caption,
|
|
2183
2183
|
{ className: 'media-caption' },
|
|
2184
2184
|
caption
|
|
@@ -2186,7 +2186,7 @@ var Media = function Media(_ref) {
|
|
|
2186
2186
|
)
|
|
2187
2187
|
);
|
|
2188
2188
|
} else if (caption && caption !== '') {
|
|
2189
|
-
return
|
|
2189
|
+
return React__default.createElement(
|
|
2190
2190
|
'a',
|
|
2191
2191
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2192
2192
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2206,10 +2206,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2206
2206
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2207
2207
|
|
|
2208
2208
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2209
|
-
return
|
|
2209
|
+
return React__default.createElement(
|
|
2210
2210
|
'div',
|
|
2211
2211
|
{ className: 'd-block text-center mb-3' },
|
|
2212
|
-
|
|
2212
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2213
2213
|
);
|
|
2214
2214
|
};
|
|
2215
2215
|
|
|
@@ -2243,7 +2243,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2243
2243
|
var duration = player.duration;
|
|
2244
2244
|
var queue = Math.floor(duration / 10);
|
|
2245
2245
|
var segment = Math.floor(current / queue);
|
|
2246
|
-
Beam.report_beam_video('Ready',
|
|
2246
|
+
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2247
2247
|
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2248
2248
|
};
|
|
2249
2249
|
|
|
@@ -2253,7 +2253,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2253
2253
|
var queue = Math.floor(duration / 10);
|
|
2254
2254
|
var segment = Math.floor(current / queue);
|
|
2255
2255
|
if (!queueProgress.includes(segment)) {
|
|
2256
|
-
Beam.report_beam_video('Segment',
|
|
2256
|
+
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2257
2257
|
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2258
2258
|
queueProgress.push(segment);
|
|
2259
2259
|
}
|
|
@@ -2266,7 +2266,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2266
|
var duration = player.duration;
|
|
2267
2267
|
var queue = Math.floor(duration / 10);
|
|
2268
2268
|
var segment = Math.floor(current / queue);
|
|
2269
|
-
Beam.report_beam_video('Play',
|
|
2269
|
+
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2270
2270
|
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2271
2271
|
|
|
2272
2272
|
if (!playReported) {
|
|
@@ -2287,7 +2287,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2287
2287
|
var queue = Math.floor(duration / 10);
|
|
2288
2288
|
var segment = Math.floor(current / queue);
|
|
2289
2289
|
|
|
2290
|
-
Beam.report_beam_video('End',
|
|
2290
|
+
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2291
2291
|
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2292
2292
|
setEndReported(true);
|
|
2293
2293
|
clearInterval(intervalID);
|
|
@@ -2300,14 +2300,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2300
2300
|
var duration = player.duration - current;
|
|
2301
2301
|
var queue = Math.floor(duration / 10);
|
|
2302
2302
|
var segment = Math.floor(current / queue);
|
|
2303
|
-
Beam.report_beam_video('Pause',
|
|
2303
|
+
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2304
2304
|
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2305
2305
|
};
|
|
2306
2306
|
|
|
2307
|
-
return
|
|
2307
|
+
return React__default.createElement(
|
|
2308
2308
|
'div',
|
|
2309
2309
|
null,
|
|
2310
|
-
vidLoaded &&
|
|
2310
|
+
vidLoaded && React__default.createElement(
|
|
2311
2311
|
'video',
|
|
2312
2312
|
{
|
|
2313
2313
|
poster: thumbnail || '',
|
|
@@ -2325,7 +2325,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2325
2325
|
onPlay: function onPlay(e) {
|
|
2326
2326
|
return handleOnPlay(e);
|
|
2327
2327
|
} },
|
|
2328
|
-
|
|
2328
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2329
2329
|
'Your browser does not support the video tag.'
|
|
2330
2330
|
)
|
|
2331
2331
|
);
|
|
@@ -2390,7 +2390,7 @@ var Video = function Video(_ref) {
|
|
|
2390
2390
|
player.pause();
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
2393
|
-
Beam.report_beam_video('Ready',
|
|
2393
|
+
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2394
2394
|
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2395
2395
|
});
|
|
2396
2396
|
|
|
@@ -2400,7 +2400,7 @@ var Video = function Video(_ref) {
|
|
|
2400
2400
|
var current = player.currentTime();
|
|
2401
2401
|
var queue = Math.floor(duration / 10);
|
|
2402
2402
|
var segment = Math.floor(current / queue);
|
|
2403
|
-
Beam.report_beam_video('Play',
|
|
2403
|
+
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2404
2404
|
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2405
2405
|
});
|
|
2406
2406
|
|
|
@@ -2410,7 +2410,7 @@ var Video = function Video(_ref) {
|
|
|
2410
2410
|
var current = player.currentTime();
|
|
2411
2411
|
var queue = Math.floor(duration / 10);
|
|
2412
2412
|
var segment = Math.floor(current / queue);
|
|
2413
|
-
Beam.report_beam_video('Pause',
|
|
2413
|
+
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2414
2414
|
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
2415
|
});
|
|
2416
2416
|
|
|
@@ -2420,7 +2420,7 @@ var Video = function Video(_ref) {
|
|
|
2420
2420
|
var current = player.currentTime();
|
|
2421
2421
|
var queue = Math.floor(duration / 10);
|
|
2422
2422
|
var segment = Math.floor(current / queue);
|
|
2423
|
-
Beam.report_beam_video('End',
|
|
2423
|
+
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2424
2424
|
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
2425
|
autoplayNextVideo(evt);
|
|
2426
2426
|
});
|
|
@@ -2432,7 +2432,7 @@ var Video = function Video(_ref) {
|
|
|
2432
2432
|
var queue = Math.floor(duration / 10);
|
|
2433
2433
|
var segment = Math.floor(current / queue);
|
|
2434
2434
|
if (!queueProgress.includes(segment)) {
|
|
2435
|
-
Beam.report_beam_video('Segment',
|
|
2435
|
+
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2436
2436
|
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2437
2437
|
queueProgress.push(segment);
|
|
2438
2438
|
}
|
|
@@ -2441,72 +2441,72 @@ var Video = function Video(_ref) {
|
|
|
2441
2441
|
// ad impression
|
|
2442
2442
|
player.on('ads-ad-started', function (evt) {
|
|
2443
2443
|
var duration = player.ads.ad.duration;
|
|
2444
|
-
|
|
2444
|
+
player.ads.ad.id;
|
|
2445
2445
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2446
2446
|
|
|
2447
|
-
Beam.report_beam_ad('AD Started',
|
|
2447
|
+
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2448
2448
|
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2449
2449
|
});
|
|
2450
2450
|
|
|
2451
2451
|
// ad ended
|
|
2452
2452
|
player.on('ads-ad-ended', function (evt) {
|
|
2453
2453
|
var duration = player.ads.ad.duration;
|
|
2454
|
-
|
|
2454
|
+
player.ads.ad.id;
|
|
2455
2455
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2456
|
-
Beam.report_beam_ad('AD Ended',
|
|
2456
|
+
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2457
2457
|
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2458
2458
|
});
|
|
2459
2459
|
};
|
|
2460
2460
|
|
|
2461
2461
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2462
2462
|
if (videoID) {
|
|
2463
|
-
return
|
|
2463
|
+
return React__default.createElement(
|
|
2464
2464
|
'div',
|
|
2465
2465
|
null,
|
|
2466
|
-
|
|
2466
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2467
2467
|
onSuccess: onVideoSuccess,
|
|
2468
2468
|
accountId: accountIDs.brightcove.accountId,
|
|
2469
2469
|
videoId: videoID,
|
|
2470
2470
|
playerId: accountIDs.brightcove.playerId,
|
|
2471
2471
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2472
2472
|
}),
|
|
2473
|
-
|
|
2473
|
+
React__default.createElement(
|
|
2474
2474
|
'style',
|
|
2475
2475
|
{ jsx: 'true' },
|
|
2476
2476
|
'\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 '
|
|
2477
2477
|
)
|
|
2478
2478
|
);
|
|
2479
2479
|
} else if (playlistID) {
|
|
2480
|
-
return
|
|
2480
|
+
return React__default.createElement(
|
|
2481
2481
|
'div',
|
|
2482
2482
|
null,
|
|
2483
|
-
|
|
2483
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2484
2484
|
accountId: accountIDs.brightcove.accountId,
|
|
2485
2485
|
playlistId: playlistID,
|
|
2486
2486
|
playerId: accountIDs.brightcove.playerId,
|
|
2487
2487
|
onSuccess: onVideoSuccess,
|
|
2488
2488
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2489
2489
|
}),
|
|
2490
|
-
|
|
2490
|
+
React__default.createElement(
|
|
2491
2491
|
'style',
|
|
2492
2492
|
{ jsx: 'true' },
|
|
2493
2493
|
'\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 '
|
|
2494
2494
|
)
|
|
2495
2495
|
);
|
|
2496
2496
|
} else if (experienceID) {
|
|
2497
|
-
return
|
|
2497
|
+
return React__default.createElement(
|
|
2498
2498
|
'div',
|
|
2499
2499
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2500
|
-
videoLoaded &&
|
|
2500
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2501
2501
|
);
|
|
2502
2502
|
}
|
|
2503
2503
|
return null;
|
|
2504
2504
|
}
|
|
2505
2505
|
if (source === 'mp4') {
|
|
2506
|
-
return
|
|
2506
|
+
return React__default.createElement(
|
|
2507
2507
|
'div',
|
|
2508
2508
|
null,
|
|
2509
|
-
|
|
2509
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2510
2510
|
);
|
|
2511
2511
|
}
|
|
2512
2512
|
|
|
@@ -3111,7 +3111,7 @@ function isEqual(a, b) {
|
|
|
3111
3111
|
return true;
|
|
3112
3112
|
}
|
|
3113
3113
|
|
|
3114
|
-
if ((0,
|
|
3114
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3115
3115
|
return true;
|
|
3116
3116
|
}
|
|
3117
3117
|
|
|
@@ -3173,7 +3173,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3173
3173
|
});
|
|
3174
3174
|
exports["default"] = void 0;
|
|
3175
3175
|
|
|
3176
|
-
var _react = _interopRequireWildcard(
|
|
3176
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3177
3177
|
|
|
3178
3178
|
|
|
3179
3179
|
|
|
@@ -3583,7 +3583,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3583
3583
|
});
|
|
3584
3584
|
exports["default"] = createSinglePlayer;
|
|
3585
3585
|
|
|
3586
|
-
var _react = _interopRequireWildcard(
|
|
3586
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3587
3587
|
|
|
3588
3588
|
|
|
3589
3589
|
|
|
@@ -3741,7 +3741,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3741
3741
|
});
|
|
3742
3742
|
exports["default"] = exports.YouTube = void 0;
|
|
3743
3743
|
|
|
3744
|
-
var _react = _interopRequireWildcard(
|
|
3744
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3745
3745
|
|
|
3746
3746
|
|
|
3747
3747
|
|
|
@@ -4050,7 +4050,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4050
4050
|
});
|
|
4051
4051
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4052
4052
|
|
|
4053
|
-
var _react = _interopRequireWildcard(
|
|
4053
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4054
4054
|
|
|
4055
4055
|
|
|
4056
4056
|
|
|
@@ -4267,7 +4267,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4267
4267
|
});
|
|
4268
4268
|
exports["default"] = exports.Vimeo = void 0;
|
|
4269
4269
|
|
|
4270
|
-
var _react = _interopRequireWildcard(
|
|
4270
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4271
4271
|
|
|
4272
4272
|
|
|
4273
4273
|
|
|
@@ -4523,7 +4523,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4523
4523
|
});
|
|
4524
4524
|
exports["default"] = exports.Facebook = void 0;
|
|
4525
4525
|
|
|
4526
|
-
var _react = _interopRequireWildcard(
|
|
4526
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4527
4527
|
|
|
4528
4528
|
|
|
4529
4529
|
|
|
@@ -4735,7 +4735,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4735
4735
|
});
|
|
4736
4736
|
exports["default"] = exports.Streamable = void 0;
|
|
4737
4737
|
|
|
4738
|
-
var _react = _interopRequireWildcard(
|
|
4738
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4739
4739
|
|
|
4740
4740
|
|
|
4741
4741
|
|
|
@@ -4946,7 +4946,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4946
4946
|
});
|
|
4947
4947
|
exports["default"] = exports.Wistia = void 0;
|
|
4948
4948
|
|
|
4949
|
-
var _react = _interopRequireWildcard(
|
|
4949
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4950
4950
|
|
|
4951
4951
|
|
|
4952
4952
|
|
|
@@ -5189,7 +5189,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5189
5189
|
});
|
|
5190
5190
|
exports["default"] = exports.Twitch = void 0;
|
|
5191
5191
|
|
|
5192
|
-
var _react = _interopRequireWildcard(
|
|
5192
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5193
5193
|
|
|
5194
5194
|
|
|
5195
5195
|
|
|
@@ -5405,7 +5405,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5405
5405
|
});
|
|
5406
5406
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5407
5407
|
|
|
5408
|
-
var _react = _interopRequireWildcard(
|
|
5408
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5409
5409
|
|
|
5410
5410
|
|
|
5411
5411
|
|
|
@@ -5641,7 +5641,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5641
5641
|
});
|
|
5642
5642
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5643
5643
|
|
|
5644
|
-
var _react = _interopRequireWildcard(
|
|
5644
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5645
5645
|
|
|
5646
5646
|
|
|
5647
5647
|
|
|
@@ -5840,7 +5840,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5840
5840
|
});
|
|
5841
5841
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5842
5842
|
|
|
5843
|
-
var _react = _interopRequireWildcard(
|
|
5843
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5844
5844
|
|
|
5845
5845
|
|
|
5846
5846
|
|
|
@@ -6407,7 +6407,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6407
6407
|
});
|
|
6408
6408
|
exports["default"] = void 0;
|
|
6409
6409
|
|
|
6410
|
-
var _react = _interopRequireWildcard(
|
|
6410
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6411
6411
|
|
|
6412
6412
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6413
6413
|
|
|
@@ -6586,7 +6586,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6586
6586
|
});
|
|
6587
6587
|
exports["default"] = renderPreloadPlayers;
|
|
6588
6588
|
|
|
6589
|
-
var _react = _interopRequireDefault(
|
|
6589
|
+
var _react = _interopRequireDefault(React__default);
|
|
6590
6590
|
|
|
6591
6591
|
var _Player = _interopRequireDefault(Player_1);
|
|
6592
6592
|
|
|
@@ -6725,7 +6725,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6725
6725
|
});
|
|
6726
6726
|
exports["default"] = void 0;
|
|
6727
6727
|
|
|
6728
|
-
var _react = _interopRequireWildcard(
|
|
6728
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6729
6729
|
|
|
6730
6730
|
|
|
6731
6731
|
|
|
@@ -7039,20 +7039,20 @@ var Audio = function Audio(_ref) {
|
|
|
7039
7039
|
var node = _ref.node;
|
|
7040
7040
|
|
|
7041
7041
|
if (node.uploadAudio) {
|
|
7042
|
-
return
|
|
7042
|
+
return React__default.createElement(
|
|
7043
7043
|
'div',
|
|
7044
7044
|
{ className: 'audio d-block text-center mb-3' },
|
|
7045
|
-
|
|
7045
|
+
React__default.createElement(
|
|
7046
7046
|
'audio',
|
|
7047
7047
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7048
|
-
|
|
7049
|
-
|
|
7048
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7049
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7050
7050
|
'Your browser does not support the audio element.'
|
|
7051
7051
|
),
|
|
7052
|
-
node.caption &&
|
|
7052
|
+
node.caption && React__default.createElement(
|
|
7053
7053
|
'p',
|
|
7054
7054
|
{ style: { fontSize: '.9rem' } },
|
|
7055
|
-
|
|
7055
|
+
React__default.createElement(
|
|
7056
7056
|
'em',
|
|
7057
7057
|
null,
|
|
7058
7058
|
node.caption
|
|
@@ -7062,15 +7062,15 @@ var Audio = function Audio(_ref) {
|
|
|
7062
7062
|
} else if (node.audioFilePth) {
|
|
7063
7063
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7064
7064
|
if (hostname === 'embeds.audioboom.com') {
|
|
7065
|
-
return
|
|
7065
|
+
return React__default.createElement(
|
|
7066
7066
|
'div',
|
|
7067
7067
|
null,
|
|
7068
|
-
|
|
7068
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7069
7069
|
' ',
|
|
7070
|
-
node.caption &&
|
|
7070
|
+
node.caption && React__default.createElement(
|
|
7071
7071
|
'p',
|
|
7072
7072
|
{ style: { fontSize: '.9rem' } },
|
|
7073
|
-
|
|
7073
|
+
React__default.createElement(
|
|
7074
7074
|
'em',
|
|
7075
7075
|
null,
|
|
7076
7076
|
node.caption
|
|
@@ -7078,14 +7078,14 @@ var Audio = function Audio(_ref) {
|
|
|
7078
7078
|
)
|
|
7079
7079
|
);
|
|
7080
7080
|
}
|
|
7081
|
-
return
|
|
7081
|
+
return React__default.createElement(
|
|
7082
7082
|
'div',
|
|
7083
7083
|
{ className: 'audio' },
|
|
7084
|
-
|
|
7085
|
-
node.caption &&
|
|
7084
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7085
|
+
node.caption && React__default.createElement(
|
|
7086
7086
|
'p',
|
|
7087
7087
|
{ style: { fontSize: '.9rem' } },
|
|
7088
|
-
|
|
7088
|
+
React__default.createElement(
|
|
7089
7089
|
'em',
|
|
7090
7090
|
null,
|
|
7091
7091
|
node.caption
|
|
@@ -7104,34 +7104,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7104
7104
|
var showAuthorDetails = arguments[7];
|
|
7105
7105
|
|
|
7106
7106
|
if (authorName && authorURL) {
|
|
7107
|
-
return
|
|
7107
|
+
return React__default.createElement(
|
|
7108
7108
|
'span',
|
|
7109
7109
|
null,
|
|
7110
|
-
|
|
7110
|
+
React__default.createElement(
|
|
7111
7111
|
'a',
|
|
7112
7112
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7113
7113
|
authorName
|
|
7114
7114
|
),
|
|
7115
|
-
showAuthorDetails &&
|
|
7115
|
+
showAuthorDetails && React__default.createElement(
|
|
7116
7116
|
Card,
|
|
7117
7117
|
{ className: 'author-details-card-' + index },
|
|
7118
|
-
|
|
7118
|
+
React__default.createElement(
|
|
7119
7119
|
Row,
|
|
7120
7120
|
null,
|
|
7121
|
-
profileImage &&
|
|
7121
|
+
profileImage && React__default.createElement(
|
|
7122
7122
|
Col,
|
|
7123
7123
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7124
|
-
|
|
7124
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7125
7125
|
),
|
|
7126
|
-
|
|
7126
|
+
React__default.createElement(
|
|
7127
7127
|
Col,
|
|
7128
7128
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7129
|
-
|
|
7129
|
+
React__default.createElement(
|
|
7130
7130
|
'div',
|
|
7131
7131
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7132
7132
|
authorName
|
|
7133
7133
|
),
|
|
7134
|
-
|
|
7134
|
+
React__default.createElement(
|
|
7135
7135
|
'p',
|
|
7136
7136
|
null,
|
|
7137
7137
|
biography
|
|
@@ -7139,7 +7139,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7139
7139
|
)
|
|
7140
7140
|
)
|
|
7141
7141
|
),
|
|
7142
|
-
|
|
7142
|
+
React__default.createElement(
|
|
7143
7143
|
'style',
|
|
7144
7144
|
{ jsx: 'true' },
|
|
7145
7145
|
'\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 '
|
|
@@ -7147,7 +7147,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7147
7147
|
length !== index + 1 && ', '
|
|
7148
7148
|
);
|
|
7149
7149
|
} else if (authorName) {
|
|
7150
|
-
return
|
|
7150
|
+
return React__default.createElement(
|
|
7151
7151
|
'span',
|
|
7152
7152
|
{ key: index },
|
|
7153
7153
|
authorName,
|
|
@@ -7302,7 +7302,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7302
7302
|
var duration = player.getDuration();
|
|
7303
7303
|
var queue = Math.floor(duration / 10);
|
|
7304
7304
|
var segment = Math.floor(current / queue);
|
|
7305
|
-
Beam.report_beam_video('Ready',
|
|
7305
|
+
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7306
7306
|
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7307
7307
|
//autoplay
|
|
7308
7308
|
|
|
@@ -7323,7 +7323,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7323
7323
|
var queue = Math.floor(duration / 10);
|
|
7324
7324
|
var segment = Math.floor(current / queue);
|
|
7325
7325
|
|
|
7326
|
-
Beam.report_beam_video('End',
|
|
7326
|
+
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7327
7327
|
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7328
7328
|
setEndReported(true);
|
|
7329
7329
|
clearInterval(intervalID);
|
|
@@ -7374,7 +7374,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7374
7374
|
var queue = Math.floor(duration / 10);
|
|
7375
7375
|
var segment = Math.floor(current / queue);
|
|
7376
7376
|
if (!queueProgress.includes(segment)) {
|
|
7377
|
-
Beam.report_beam_video('Segment',
|
|
7377
|
+
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7378
7378
|
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7379
7379
|
queueProgress.push(segment);
|
|
7380
7380
|
}
|
|
@@ -7388,7 +7388,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7388
7388
|
var queue = Math.floor(duration / 10);
|
|
7389
7389
|
var segment = Math.floor(current / queue);
|
|
7390
7390
|
|
|
7391
|
-
Beam.report_beam_video('Play',
|
|
7391
|
+
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7392
7392
|
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7393
7393
|
|
|
7394
7394
|
if (!playReported) {
|
|
@@ -7407,7 +7407,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7407
7407
|
var queue = Math.floor(duration / 10);
|
|
7408
7408
|
var segment = Math.floor(current / queue);
|
|
7409
7409
|
|
|
7410
|
-
Beam.report_beam_video('Pause',
|
|
7410
|
+
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7411
7411
|
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7412
7412
|
};
|
|
7413
7413
|
|
|
@@ -7419,44 +7419,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7419
7419
|
}
|
|
7420
7420
|
};
|
|
7421
7421
|
|
|
7422
|
-
return
|
|
7422
|
+
return React__default.createElement(
|
|
7423
7423
|
'div',
|
|
7424
7424
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7425
|
-
|
|
7425
|
+
React__default.createElement(
|
|
7426
7426
|
'div',
|
|
7427
7427
|
{ className: 'mt-2 mb-5' },
|
|
7428
|
-
series &&
|
|
7428
|
+
series && React__default.createElement(
|
|
7429
7429
|
'div',
|
|
7430
7430
|
{ style: { fontSize: '0.9rem' } },
|
|
7431
7431
|
article.title,
|
|
7432
7432
|
' - Episode ',
|
|
7433
7433
|
series
|
|
7434
7434
|
),
|
|
7435
|
-
Videos[series - 1] &&
|
|
7435
|
+
Videos[series - 1] && React__default.createElement(
|
|
7436
7436
|
'h1',
|
|
7437
7437
|
{ className: 'mb-3' },
|
|
7438
7438
|
Videos[series - 1].title
|
|
7439
7439
|
),
|
|
7440
|
-
|
|
7440
|
+
React__default.createElement(
|
|
7441
7441
|
'div',
|
|
7442
7442
|
null,
|
|
7443
7443
|
moment(article.published).format('LL')
|
|
7444
7444
|
),
|
|
7445
|
-
|
|
7445
|
+
React__default.createElement(
|
|
7446
7446
|
'div',
|
|
7447
7447
|
{ className: 'mb-3' },
|
|
7448
7448
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7449
|
-
return
|
|
7449
|
+
return React__default.createElement(
|
|
7450
7450
|
'span',
|
|
7451
7451
|
{ key: index },
|
|
7452
7452
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7453
7453
|
);
|
|
7454
7454
|
})
|
|
7455
7455
|
),
|
|
7456
|
-
|
|
7456
|
+
React__default.createElement(
|
|
7457
7457
|
'p',
|
|
7458
7458
|
null,
|
|
7459
|
-
|
|
7459
|
+
React__default.createElement(SocialShare, {
|
|
7460
7460
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7461
7461
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7462
7462
|
shareVia: meta.shareVia,
|
|
@@ -7471,20 +7471,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7471
7471
|
hideFacebook: meta.hideFBShare
|
|
7472
7472
|
})
|
|
7473
7473
|
),
|
|
7474
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7474
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7475
7475
|
'p',
|
|
7476
7476
|
{ className: 'mb-3' },
|
|
7477
|
-
|
|
7477
|
+
React__default.createElement(
|
|
7478
7478
|
'em',
|
|
7479
7479
|
null,
|
|
7480
7480
|
Videos[series - 1].intro
|
|
7481
7481
|
)
|
|
7482
7482
|
)
|
|
7483
7483
|
),
|
|
7484
|
-
|
|
7484
|
+
React__default.createElement(
|
|
7485
7485
|
'div',
|
|
7486
7486
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7487
|
-
vidUrl && vidType == 'youtube' &&
|
|
7487
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7488
7488
|
className: 'fluid-iframe',
|
|
7489
7489
|
videoId: getYoutubeId(vidUrl),
|
|
7490
7490
|
opts: opts,
|
|
@@ -7495,10 +7495,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7495
|
return handleOnEnd(e);
|
|
7496
7496
|
}
|
|
7497
7497
|
}),
|
|
7498
|
-
vidUrl && vidType == 'mp4' &&
|
|
7499
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7500
|
-
|
|
7501
|
-
series &&
|
|
7498
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7499
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7500
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7501
|
+
series && React__default.createElement(
|
|
7502
7502
|
'div',
|
|
7503
7503
|
{
|
|
7504
7504
|
className: 'vid-series',
|
|
@@ -7508,10 +7508,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7508
7508
|
maxHeight: '100%',
|
|
7509
7509
|
paddingBottom: '0'
|
|
7510
7510
|
} },
|
|
7511
|
-
|
|
7511
|
+
React__default.createElement(
|
|
7512
7512
|
'p',
|
|
7513
7513
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7514
|
-
|
|
7514
|
+
React__default.createElement(
|
|
7515
7515
|
'b',
|
|
7516
7516
|
{ style: { fontSize: '1.25em' } },
|
|
7517
7517
|
'Now Playing:'
|
|
@@ -7519,16 +7519,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7519
7519
|
' ',
|
|
7520
7520
|
seriesData[series ? series - 1 : 0].title
|
|
7521
7521
|
),
|
|
7522
|
-
vidUrl &&
|
|
7522
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7523
7523
|
)
|
|
7524
7524
|
),
|
|
7525
|
-
|
|
7526
|
-
|
|
7525
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7526
|
+
React__default.createElement(
|
|
7527
7527
|
'div',
|
|
7528
7528
|
{ className: 'vid-text' },
|
|
7529
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7529
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7530
7530
|
),
|
|
7531
|
-
|
|
7531
|
+
React__default.createElement(
|
|
7532
7532
|
'style',
|
|
7533
7533
|
{ jsx: 'true' },
|
|
7534
7534
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7581,67 +7581,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7581
7581
|
return acc;
|
|
7582
7582
|
}
|
|
7583
7583
|
}, 0);
|
|
7584
|
-
return
|
|
7585
|
-
|
|
7584
|
+
return React__default.createElement(
|
|
7585
|
+
React__default.Fragment,
|
|
7586
7586
|
null,
|
|
7587
|
-
question &&
|
|
7587
|
+
question && React__default.createElement(
|
|
7588
7588
|
'p',
|
|
7589
7589
|
{ className: 'font-weight-bold' },
|
|
7590
7590
|
question
|
|
7591
7591
|
),
|
|
7592
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7592
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7593
7593
|
'form',
|
|
7594
7594
|
{ onSubmit: function onSubmit(e) {
|
|
7595
7595
|
return onSubmitPoll(e);
|
|
7596
7596
|
} },
|
|
7597
7597
|
choices && choices.map(function (choice) {
|
|
7598
|
-
return
|
|
7598
|
+
return React__default.createElement(
|
|
7599
7599
|
'div',
|
|
7600
7600
|
{ key: choice._key },
|
|
7601
|
-
|
|
7601
|
+
React__default.createElement(
|
|
7602
7602
|
'label',
|
|
7603
7603
|
{ className: 'pl-2' },
|
|
7604
|
-
|
|
7604
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7605
7605
|
return setSelectedChoice(e.target.value);
|
|
7606
7606
|
} }),
|
|
7607
7607
|
' ' + choice.choiceText
|
|
7608
7608
|
)
|
|
7609
7609
|
);
|
|
7610
7610
|
}),
|
|
7611
|
-
|
|
7611
|
+
React__default.createElement(
|
|
7612
7612
|
Button,
|
|
7613
7613
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7614
7614
|
'Vote'
|
|
7615
7615
|
)
|
|
7616
7616
|
),
|
|
7617
|
-
|
|
7617
|
+
React__default.createElement(
|
|
7618
7618
|
'div',
|
|
7619
7619
|
{ className: 'progress-container' },
|
|
7620
7620
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7621
7621
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7622
|
-
return
|
|
7622
|
+
return React__default.createElement(
|
|
7623
7623
|
'div',
|
|
7624
7624
|
{ key: choice._key, className: 'mb-3' },
|
|
7625
|
-
|
|
7625
|
+
React__default.createElement(
|
|
7626
7626
|
'div',
|
|
7627
7627
|
{ className: 'correct-answer' },
|
|
7628
|
-
|
|
7628
|
+
React__default.createElement(
|
|
7629
7629
|
'div',
|
|
7630
7630
|
null,
|
|
7631
7631
|
choice.choiceText
|
|
7632
7632
|
),
|
|
7633
|
-
choice.choiceAnswer === true &&
|
|
7633
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7634
7634
|
'div',
|
|
7635
7635
|
null,
|
|
7636
|
-
|
|
7636
|
+
React__default.createElement(
|
|
7637
7637
|
'span',
|
|
7638
7638
|
{ style: { color: 'limegreen' } },
|
|
7639
7639
|
'Correct!'
|
|
7640
7640
|
)
|
|
7641
7641
|
)
|
|
7642
7642
|
),
|
|
7643
|
-
|
|
7644
|
-
|
|
7643
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7644
|
+
React__default.createElement(
|
|
7645
7645
|
'span',
|
|
7646
7646
|
{ className: 'float-right' },
|
|
7647
7647
|
percentage,
|
|
@@ -7652,14 +7652,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7652
7652
|
);
|
|
7653
7653
|
})
|
|
7654
7654
|
),
|
|
7655
|
-
showAnswer &&
|
|
7655
|
+
showAnswer && React__default.createElement(
|
|
7656
7656
|
'h4',
|
|
7657
7657
|
{ className: 'text-center small p-3' },
|
|
7658
7658
|
'Total Votes: ',
|
|
7659
7659
|
choicesTotalCount
|
|
7660
7660
|
),
|
|
7661
|
-
showAnswer && response &&
|
|
7662
|
-
|
|
7661
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7662
|
+
React__default.createElement(
|
|
7663
7663
|
'style',
|
|
7664
7664
|
{ jsx: 'true' },
|
|
7665
7665
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7758,67 +7758,67 @@ var Poll = function Poll(_ref) {
|
|
|
7758
7758
|
return acc;
|
|
7759
7759
|
}
|
|
7760
7760
|
}, 0);
|
|
7761
|
-
return
|
|
7762
|
-
|
|
7761
|
+
return React__default.createElement(
|
|
7762
|
+
React__default.Fragment,
|
|
7763
7763
|
null,
|
|
7764
|
-
question &&
|
|
7764
|
+
question && React__default.createElement(
|
|
7765
7765
|
'p',
|
|
7766
7766
|
{ className: 'font-weight-bold' },
|
|
7767
7767
|
question
|
|
7768
7768
|
),
|
|
7769
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7769
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7770
7770
|
'form',
|
|
7771
7771
|
{ onSubmit: function onSubmit(e) {
|
|
7772
7772
|
return onSubmitPoll(e);
|
|
7773
7773
|
} },
|
|
7774
7774
|
choices && choices.map(function (choice) {
|
|
7775
|
-
return
|
|
7775
|
+
return React__default.createElement(
|
|
7776
7776
|
'div',
|
|
7777
7777
|
{ key: choice._key },
|
|
7778
|
-
|
|
7778
|
+
React__default.createElement(
|
|
7779
7779
|
'label',
|
|
7780
7780
|
{ className: 'pl-2' },
|
|
7781
|
-
|
|
7781
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7782
7782
|
return setSelectedChoice(e.target.value);
|
|
7783
7783
|
} }),
|
|
7784
7784
|
' ' + choice.choiceText
|
|
7785
7785
|
)
|
|
7786
7786
|
);
|
|
7787
7787
|
}),
|
|
7788
|
-
|
|
7788
|
+
React__default.createElement(
|
|
7789
7789
|
Button,
|
|
7790
7790
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7791
7791
|
'Vote'
|
|
7792
7792
|
)
|
|
7793
7793
|
),
|
|
7794
|
-
|
|
7794
|
+
React__default.createElement(
|
|
7795
7795
|
'div',
|
|
7796
7796
|
{ className: 'progress-container' },
|
|
7797
7797
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7798
7798
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7799
|
-
return
|
|
7799
|
+
return React__default.createElement(
|
|
7800
7800
|
'div',
|
|
7801
7801
|
{ key: choice._key, className: 'mb-3' },
|
|
7802
|
-
|
|
7802
|
+
React__default.createElement(
|
|
7803
7803
|
'div',
|
|
7804
7804
|
{ className: 'correct-answer' },
|
|
7805
|
-
|
|
7805
|
+
React__default.createElement(
|
|
7806
7806
|
'div',
|
|
7807
7807
|
null,
|
|
7808
7808
|
choice.choiceText
|
|
7809
7809
|
),
|
|
7810
|
-
choice.choiceAnswer === true &&
|
|
7810
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7811
7811
|
'div',
|
|
7812
7812
|
null,
|
|
7813
|
-
|
|
7813
|
+
React__default.createElement(
|
|
7814
7814
|
'span',
|
|
7815
7815
|
{ style: { color: 'limegreen' } },
|
|
7816
7816
|
'Correct!'
|
|
7817
7817
|
)
|
|
7818
7818
|
)
|
|
7819
7819
|
),
|
|
7820
|
-
|
|
7821
|
-
|
|
7820
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7821
|
+
React__default.createElement(
|
|
7822
7822
|
'span',
|
|
7823
7823
|
{ className: 'float-right' },
|
|
7824
7824
|
percentage,
|
|
@@ -7829,14 +7829,14 @@ var Poll = function Poll(_ref) {
|
|
|
7829
7829
|
);
|
|
7830
7830
|
})
|
|
7831
7831
|
),
|
|
7832
|
-
showAnswer &&
|
|
7832
|
+
showAnswer && React__default.createElement(
|
|
7833
7833
|
'h4',
|
|
7834
7834
|
{ className: 'text-center small p-3' },
|
|
7835
7835
|
'Total Votes: ',
|
|
7836
7836
|
choicesTotalCount
|
|
7837
7837
|
),
|
|
7838
|
-
showAnswer && response &&
|
|
7839
|
-
|
|
7838
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7839
|
+
React__default.createElement(
|
|
7840
7840
|
'style',
|
|
7841
7841
|
{ jsx: 'true' },
|
|
7842
7842
|
'\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 '
|
|
@@ -7962,20 +7962,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7962
7962
|
};
|
|
7963
7963
|
|
|
7964
7964
|
var renderPagination = function renderPagination() {
|
|
7965
|
-
return
|
|
7965
|
+
return React__default.createElement(
|
|
7966
7966
|
Pagination,
|
|
7967
7967
|
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7968
|
-
|
|
7968
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7969
7969
|
return changePage('first');
|
|
7970
7970
|
}, disabled: currentPage === 1 }),
|
|
7971
|
-
|
|
7971
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7972
7972
|
return changePage('prev');
|
|
7973
7973
|
}, disabled: currentPage === 1 }),
|
|
7974
|
-
|
|
7974
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7975
7975
|
return renderNewPages('prev');
|
|
7976
7976
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7977
7977
|
pages.map(function (page) {
|
|
7978
|
-
return
|
|
7978
|
+
return React__default.createElement(
|
|
7979
7979
|
Pagination.Item,
|
|
7980
7980
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7981
7981
|
return changePage(page);
|
|
@@ -7983,13 +7983,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7983
7983
|
page
|
|
7984
7984
|
);
|
|
7985
7985
|
}),
|
|
7986
|
-
|
|
7986
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7987
7987
|
return renderNewPages('next');
|
|
7988
7988
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7989
|
-
|
|
7989
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7990
7990
|
return changePage('next');
|
|
7991
7991
|
}, disabled: currentPage === pageCount }),
|
|
7992
|
-
|
|
7992
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7993
7993
|
return changePage('last');
|
|
7994
7994
|
}, disabled: currentPage === pageCount })
|
|
7995
7995
|
);
|
|
@@ -8072,51 +8072,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8072
8072
|
}
|
|
8073
8073
|
};
|
|
8074
8074
|
|
|
8075
|
-
return
|
|
8076
|
-
|
|
8075
|
+
return React__default.createElement(
|
|
8076
|
+
React__default.Fragment,
|
|
8077
8077
|
null,
|
|
8078
|
-
quizzes[currentPage - 1] &&
|
|
8079
|
-
|
|
8078
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8079
|
+
React__default.Fragment,
|
|
8080
8080
|
null,
|
|
8081
|
-
|
|
8082
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8081
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8082
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8083
8083
|
'form',
|
|
8084
8084
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8085
8085
|
return e.preventDefault();
|
|
8086
8086
|
} },
|
|
8087
8087
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8088
|
-
return
|
|
8088
|
+
return React__default.createElement(
|
|
8089
8089
|
'div',
|
|
8090
8090
|
{ key: answer._key },
|
|
8091
|
-
|
|
8091
|
+
React__default.createElement(
|
|
8092
8092
|
'label',
|
|
8093
8093
|
{ className: 'pl-2' },
|
|
8094
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8094
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8095
8095
|
' ' + answer.answerText
|
|
8096
8096
|
)
|
|
8097
8097
|
);
|
|
8098
8098
|
})
|
|
8099
8099
|
)
|
|
8100
8100
|
),
|
|
8101
|
-
!showAnswer &&
|
|
8101
|
+
!showAnswer && React__default.createElement(
|
|
8102
8102
|
Button$1,
|
|
8103
8103
|
{ onClick: function onClick() {
|
|
8104
8104
|
return checkAnswers();
|
|
8105
8105
|
}, variant: 'info', block: true },
|
|
8106
8106
|
'Please click here for answer'
|
|
8107
8107
|
),
|
|
8108
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8109
|
-
|
|
8108
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8109
|
+
React__default.Fragment,
|
|
8110
8110
|
null,
|
|
8111
|
-
|
|
8111
|
+
React__default.createElement(
|
|
8112
8112
|
'h4',
|
|
8113
8113
|
null,
|
|
8114
8114
|
'Answer:'
|
|
8115
8115
|
),
|
|
8116
|
-
quizzes[currentPage - 1].answer &&
|
|
8116
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8117
8117
|
),
|
|
8118
|
-
|
|
8119
|
-
pageCount > 1 &&
|
|
8118
|
+
React__default.createElement('br', null),
|
|
8119
|
+
pageCount > 1 && React__default.createElement(
|
|
8120
8120
|
'div',
|
|
8121
8121
|
{ className: 'd-flex justify-content-center' },
|
|
8122
8122
|
renderPagination()
|
|
@@ -8127,15 +8127,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8127
8127
|
var Leads = function Leads(_ref) {
|
|
8128
8128
|
var url = _ref.url;
|
|
8129
8129
|
|
|
8130
|
-
return
|
|
8130
|
+
return React__default.createElement(
|
|
8131
8131
|
'div',
|
|
8132
8132
|
{ className: 'd-block text-center mb-3' },
|
|
8133
|
-
|
|
8133
|
+
React__default.createElement(
|
|
8134
8134
|
'style',
|
|
8135
8135
|
{ jsx: 'true' },
|
|
8136
8136
|
'\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 '
|
|
8137
8137
|
),
|
|
8138
|
-
url &&
|
|
8138
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8139
8139
|
);
|
|
8140
8140
|
};
|
|
8141
8141
|
|
|
@@ -8175,53 +8175,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8175
8175
|
setCarouselIndex(selectedIndex);
|
|
8176
8176
|
};
|
|
8177
8177
|
|
|
8178
|
-
return
|
|
8178
|
+
return React__default.createElement(
|
|
8179
8179
|
'div',
|
|
8180
8180
|
{ className: 'mt-3 mb-4' },
|
|
8181
|
-
|
|
8181
|
+
React__default.createElement(
|
|
8182
8182
|
Carousel,
|
|
8183
8183
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8184
8184
|
slides && slides.map(function (slide) {
|
|
8185
8185
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8186
|
-
return
|
|
8186
|
+
return React__default.createElement(
|
|
8187
8187
|
Carousel.Item,
|
|
8188
8188
|
{ key: slide._key },
|
|
8189
|
-
|
|
8189
|
+
React__default.createElement(
|
|
8190
8190
|
'a',
|
|
8191
8191
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8192
|
-
|
|
8192
|
+
React__default.createElement(
|
|
8193
8193
|
'div',
|
|
8194
8194
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8195
|
-
|
|
8195
|
+
React__default.createElement(
|
|
8196
8196
|
LazyLoad,
|
|
8197
8197
|
null,
|
|
8198
|
-
|
|
8198
|
+
React__default.createElement(
|
|
8199
8199
|
'picture',
|
|
8200
8200
|
null,
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8201
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8202
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8203
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8204
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8205
8205
|
)
|
|
8206
8206
|
)
|
|
8207
8207
|
)
|
|
8208
8208
|
),
|
|
8209
|
-
|
|
8209
|
+
React__default.createElement(
|
|
8210
8210
|
'div',
|
|
8211
8211
|
{ className: 'p-2' },
|
|
8212
|
-
slide.slideshowImage.caption &&
|
|
8212
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8213
8213
|
'h3',
|
|
8214
8214
|
{ style: { padding: '0px' } },
|
|
8215
8215
|
slide.slideshowImage.caption
|
|
8216
8216
|
),
|
|
8217
|
-
slide.description &&
|
|
8217
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8218
8218
|
)
|
|
8219
8219
|
);
|
|
8220
8220
|
}
|
|
8221
8221
|
return null;
|
|
8222
8222
|
})
|
|
8223
8223
|
),
|
|
8224
|
-
|
|
8224
|
+
React__default.createElement(
|
|
8225
8225
|
'style',
|
|
8226
8226
|
{ jsx: 'true' },
|
|
8227
8227
|
'\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 '
|
|
@@ -8240,10 +8240,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8240
8240
|
sizes = _props$node.sizes,
|
|
8241
8241
|
sizeMapping = _props$node.sizeMapping;
|
|
8242
8242
|
|
|
8243
|
-
return
|
|
8243
|
+
return React__default.createElement(
|
|
8244
8244
|
'div',
|
|
8245
8245
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8246
|
-
|
|
8246
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8247
8247
|
);
|
|
8248
8248
|
};
|
|
8249
8249
|
|
|
@@ -8254,15 +8254,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8254
8254
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8255
8255
|
|
|
8256
8256
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8257
|
-
return
|
|
8257
|
+
return React__default.createElement(
|
|
8258
8258
|
'section',
|
|
8259
8259
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8260
|
-
Caption &&
|
|
8260
|
+
Caption && React__default.createElement(
|
|
8261
8261
|
'h4',
|
|
8262
8262
|
{ className: 'formstack-caption' },
|
|
8263
8263
|
Caption
|
|
8264
8264
|
),
|
|
8265
|
-
|
|
8265
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8266
8266
|
);
|
|
8267
8267
|
};
|
|
8268
8268
|
|
|
@@ -8278,36 +8278,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8278
8278
|
}
|
|
8279
8279
|
});
|
|
8280
8280
|
if (medias && medias.length > 0) {
|
|
8281
|
-
return
|
|
8281
|
+
return React__default.createElement(
|
|
8282
8282
|
'div',
|
|
8283
8283
|
{ className: 'multi-media-container' },
|
|
8284
|
-
|
|
8284
|
+
React__default.createElement(
|
|
8285
8285
|
Row$1,
|
|
8286
8286
|
{ noGutters: true },
|
|
8287
8287
|
medias.map(function (media) {
|
|
8288
|
-
return
|
|
8288
|
+
return React__default.createElement(
|
|
8289
8289
|
Col$1,
|
|
8290
8290
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8291
|
-
|
|
8291
|
+
React__default.createElement(
|
|
8292
8292
|
'a',
|
|
8293
8293
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8294
8294
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8295
|
-
|
|
8295
|
+
React__default.createElement(
|
|
8296
8296
|
'div',
|
|
8297
8297
|
{ className: 'multi-media-image-container' },
|
|
8298
|
-
imageBox &&
|
|
8298
|
+
imageBox && React__default.createElement(
|
|
8299
8299
|
LazyLoad,
|
|
8300
8300
|
{ once: true },
|
|
8301
|
-
|
|
8301
|
+
React__default.createElement(
|
|
8302
8302
|
'picture',
|
|
8303
8303
|
null,
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8304
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8305
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8306
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8307
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8308
8308
|
)
|
|
8309
8309
|
),
|
|
8310
|
-
media.caption &&
|
|
8310
|
+
media.caption && React__default.createElement(
|
|
8311
8311
|
'span',
|
|
8312
8312
|
{ className: 'multi-media-caption' },
|
|
8313
8313
|
media.caption
|
|
@@ -8317,7 +8317,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8317
8317
|
);
|
|
8318
8318
|
})
|
|
8319
8319
|
),
|
|
8320
|
-
|
|
8320
|
+
React__default.createElement(
|
|
8321
8321
|
'style',
|
|
8322
8322
|
{ jsx: 'true' },
|
|
8323
8323
|
'\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 '
|
|
@@ -8364,7 +8364,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8364
8364
|
}
|
|
8365
8365
|
};
|
|
8366
8366
|
|
|
8367
|
-
_this.wraperRef =
|
|
8367
|
+
_this.wraperRef = React__default.createRef();
|
|
8368
8368
|
_this.visible = false;
|
|
8369
8369
|
return _this;
|
|
8370
8370
|
}
|
|
@@ -8392,7 +8392,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8392
8392
|
_props$id = _props.id,
|
|
8393
8393
|
id = _props$id === undefined ? '' : _props$id;
|
|
8394
8394
|
|
|
8395
|
-
return
|
|
8395
|
+
return React__default.createElement(
|
|
8396
8396
|
'div',
|
|
8397
8397
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8398
8398
|
this.props.children
|
|
@@ -8401,7 +8401,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8401
8401
|
}]);
|
|
8402
8402
|
|
|
8403
8403
|
return InscreenSensor;
|
|
8404
|
-
}(
|
|
8404
|
+
}(React__default.Component);
|
|
8405
8405
|
|
|
8406
8406
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8407
8407
|
var nodes = _ref.nodes,
|
|
@@ -8510,33 +8510,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8510
8510
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8511
8511
|
var showReading = show ? 'showReading' : '';
|
|
8512
8512
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8513
|
-
return
|
|
8513
|
+
return React__default.createElement(
|
|
8514
8514
|
'div',
|
|
8515
8515
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8516
|
-
|
|
8516
|
+
React__default.createElement(
|
|
8517
8517
|
'a',
|
|
8518
8518
|
{ onClick: function onClick(e) {
|
|
8519
8519
|
return articleCardClickHandler(e);
|
|
8520
8520
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8521
|
-
|
|
8521
|
+
React__default.createElement(
|
|
8522
8522
|
'div',
|
|
8523
8523
|
{ className: 'prevNext-thumbnail' },
|
|
8524
|
-
|
|
8525
|
-
|
|
8524
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8525
|
+
React__default.createElement(
|
|
8526
8526
|
'div',
|
|
8527
8527
|
{ className: 'prevNext-reading ' + showReading },
|
|
8528
8528
|
articleLabel
|
|
8529
8529
|
)
|
|
8530
8530
|
),
|
|
8531
|
-
|
|
8531
|
+
React__default.createElement(
|
|
8532
8532
|
'div',
|
|
8533
8533
|
{ className: 'prevNext-summary' },
|
|
8534
|
-
|
|
8534
|
+
React__default.createElement(
|
|
8535
8535
|
'div',
|
|
8536
8536
|
{ className: 'prevNext-publishDate' },
|
|
8537
8537
|
moment(article.published).format('LL')
|
|
8538
8538
|
),
|
|
8539
|
-
|
|
8539
|
+
React__default.createElement(
|
|
8540
8540
|
'h2',
|
|
8541
8541
|
{ className: 'prevNext-title' },
|
|
8542
8542
|
article.title
|
|
@@ -8585,7 +8585,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8585
8585
|
|
|
8586
8586
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8587
8587
|
if (biography) {
|
|
8588
|
-
return
|
|
8588
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8589
8589
|
}
|
|
8590
8590
|
};
|
|
8591
8591
|
|
|
@@ -8743,38 +8743,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8743
8743
|
setSensorVisible(false);
|
|
8744
8744
|
};
|
|
8745
8745
|
|
|
8746
|
-
return
|
|
8747
|
-
|
|
8746
|
+
return React__default.createElement(
|
|
8747
|
+
React__default.Fragment,
|
|
8748
8748
|
null,
|
|
8749
|
-
|
|
8749
|
+
React__default.createElement(
|
|
8750
8750
|
'div',
|
|
8751
8751
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8752
|
-
|
|
8752
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8753
8753
|
return handleArrowClick();
|
|
8754
8754
|
} })
|
|
8755
8755
|
),
|
|
8756
|
-
|
|
8757
|
-
|
|
8756
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8757
|
+
React__default.createElement(
|
|
8758
8758
|
'div',
|
|
8759
8759
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8760
|
-
|
|
8760
|
+
React__default.createElement(
|
|
8761
8761
|
'h5',
|
|
8762
8762
|
{ className: 'objective-title' },
|
|
8763
8763
|
nodes.seriesTitle
|
|
8764
8764
|
),
|
|
8765
|
-
|
|
8765
|
+
React__default.createElement(
|
|
8766
8766
|
'div',
|
|
8767
8767
|
{ className: 'prevNextWrapper' },
|
|
8768
8768
|
PrevNextCards(false, -1)
|
|
8769
8769
|
)
|
|
8770
8770
|
),
|
|
8771
|
-
|
|
8772
|
-
|
|
8771
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8772
|
+
React__default.createElement(
|
|
8773
8773
|
'div',
|
|
8774
8774
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8775
8775
|
main_43 && Ads.map(function (ad, index) {
|
|
8776
8776
|
if (index === 0) {
|
|
8777
|
-
return
|
|
8777
|
+
return React__default.createElement(
|
|
8778
8778
|
'div',
|
|
8779
8779
|
{
|
|
8780
8780
|
key: 'addid-1',
|
|
@@ -8794,14 +8794,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8794
8794
|
}
|
|
8795
8795
|
})
|
|
8796
8796
|
),
|
|
8797
|
-
|
|
8797
|
+
React__default.createElement(
|
|
8798
8798
|
'div',
|
|
8799
8799
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8800
8800
|
Articles.map(function (article, index) {
|
|
8801
|
-
return
|
|
8801
|
+
return React__default.createElement(
|
|
8802
8802
|
'div',
|
|
8803
8803
|
{ key: article.title },
|
|
8804
|
-
|
|
8804
|
+
React__default.createElement(
|
|
8805
8805
|
InscreenSensor,
|
|
8806
8806
|
{
|
|
8807
8807
|
visible: sensorVisible,
|
|
@@ -8819,84 +8819,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8819
8819
|
}
|
|
8820
8820
|
}
|
|
8821
8821
|
} },
|
|
8822
|
-
|
|
8822
|
+
React__default.createElement(
|
|
8823
8823
|
Head,
|
|
8824
8824
|
null,
|
|
8825
|
-
currentTitle !== null &&
|
|
8825
|
+
currentTitle !== null && React__default.createElement(
|
|
8826
8826
|
'title',
|
|
8827
8827
|
{ key: 'title' },
|
|
8828
8828
|
currentTitle
|
|
8829
8829
|
),
|
|
8830
|
-
currentSummary !== null &&
|
|
8831
|
-
currentURL !== null &&
|
|
8832
|
-
currentTitle !== null &&
|
|
8833
|
-
currentThumbnail !== null &&
|
|
8834
|
-
currentSummary !== null &&
|
|
8835
|
-
currentTitle !== null &&
|
|
8836
|
-
currentThumbnail !== null &&
|
|
8837
|
-
currentSummary !== null &&
|
|
8830
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8831
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8832
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8833
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8834
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8835
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8836
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8837
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8838
8838
|
),
|
|
8839
|
-
|
|
8839
|
+
React__default.createElement(
|
|
8840
8840
|
'article',
|
|
8841
8841
|
{ className: 'article-wrapper' },
|
|
8842
|
-
|
|
8842
|
+
React__default.createElement(
|
|
8843
8843
|
'div',
|
|
8844
8844
|
{ className: 'article-publishDate' },
|
|
8845
8845
|
moment(article.published).format('LL')
|
|
8846
8846
|
),
|
|
8847
|
-
|
|
8847
|
+
React__default.createElement(
|
|
8848
8848
|
'div',
|
|
8849
8849
|
{ className: 'author-details-wrapper' },
|
|
8850
8850
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8851
|
-
return
|
|
8851
|
+
return React__default.createElement(
|
|
8852
8852
|
'span',
|
|
8853
8853
|
{ key: index },
|
|
8854
8854
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8855
8855
|
);
|
|
8856
8856
|
})
|
|
8857
8857
|
),
|
|
8858
|
-
|
|
8858
|
+
React__default.createElement(
|
|
8859
8859
|
'h2',
|
|
8860
8860
|
{ className: 'article-title' },
|
|
8861
8861
|
article.title
|
|
8862
8862
|
),
|
|
8863
|
-
|
|
8863
|
+
React__default.createElement(
|
|
8864
8864
|
'div',
|
|
8865
8865
|
{ className: 'mt-2 mb-2' },
|
|
8866
|
-
|
|
8866
|
+
React__default.createElement(BlockContent, _extends({
|
|
8867
8867
|
serializers: getSerializers,
|
|
8868
8868
|
videoAccountIDs: accountIDs,
|
|
8869
8869
|
blocks: article.text,
|
|
8870
8870
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8871
8871
|
}, client.config())),
|
|
8872
|
-
|
|
8872
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8873
8873
|
),
|
|
8874
|
-
Articles.length > 1 &&
|
|
8875
|
-
|
|
8874
|
+
Articles.length > 1 && React__default.createElement(
|
|
8875
|
+
React__default.Fragment,
|
|
8876
8876
|
null,
|
|
8877
|
-
|
|
8877
|
+
React__default.createElement(
|
|
8878
8878
|
'div',
|
|
8879
8879
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8880
|
-
|
|
8880
|
+
React__default.createElement(
|
|
8881
8881
|
'h5',
|
|
8882
8882
|
{ className: 'objective-title' },
|
|
8883
8883
|
nodes.seriesTitle
|
|
8884
8884
|
),
|
|
8885
|
-
|
|
8885
|
+
React__default.createElement(
|
|
8886
8886
|
'div',
|
|
8887
8887
|
{ className: 'prevNextWrapper' },
|
|
8888
8888
|
PrevNextCards(true, index)
|
|
8889
8889
|
)
|
|
8890
8890
|
),
|
|
8891
|
-
|
|
8891
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8892
8892
|
)
|
|
8893
8893
|
),
|
|
8894
|
-
|
|
8894
|
+
React__default.createElement(
|
|
8895
8895
|
'div',
|
|
8896
8896
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8897
8897
|
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8898
8898
|
if (innerIndex === 0) {
|
|
8899
|
-
return
|
|
8899
|
+
return React__default.createElement(
|
|
8900
8900
|
'div',
|
|
8901
8901
|
{
|
|
8902
8902
|
key: 'addid-' + (index + 2),
|
|
@@ -8919,7 +8919,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8919
8919
|
)
|
|
8920
8920
|
);
|
|
8921
8921
|
}),
|
|
8922
|
-
|
|
8922
|
+
React__default.createElement(
|
|
8923
8923
|
'style',
|
|
8924
8924
|
{ jsx: 'true' },
|
|
8925
8925
|
'\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 '
|
|
@@ -8949,11 +8949,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8949
8949
|
};
|
|
8950
8950
|
}, [handleClickOutside]);
|
|
8951
8951
|
|
|
8952
|
-
return
|
|
8952
|
+
return React__default.createElement(
|
|
8953
8953
|
'div',
|
|
8954
8954
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8955
|
-
|
|
8956
|
-
|
|
8955
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8956
|
+
React__default.createElement(
|
|
8957
8957
|
'style',
|
|
8958
8958
|
{ jsx: 'true' },
|
|
8959
8959
|
'\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 '
|
|
@@ -8967,7 +8967,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8967
8967
|
}
|
|
8968
8968
|
};
|
|
8969
8969
|
|
|
8970
|
-
var FigureImage$1 =
|
|
8970
|
+
var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
8971
8971
|
var node = _ref2.node,
|
|
8972
8972
|
client = _ref2.client,
|
|
8973
8973
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8975,13 +8975,13 @@ var FigureImage$1 = React.memo(function (_ref2) {
|
|
|
8975
8975
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8976
8976
|
|
|
8977
8977
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8978
|
-
return
|
|
8978
|
+
return React__default.createElement(
|
|
8979
8979
|
'picture',
|
|
8980
8980
|
null,
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8981
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8982
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8983
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8984
|
+
React__default.createElement('img', _extends({
|
|
8985
8985
|
style: figureImageStyle,
|
|
8986
8986
|
className: 'figure-image',
|
|
8987
8987
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9032,30 +9032,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9032
9032
|
|
|
9033
9033
|
var renderTooltip = function renderTooltip(props) {
|
|
9034
9034
|
if (infoBox[0].title) {
|
|
9035
|
-
return
|
|
9035
|
+
return React__default.createElement(
|
|
9036
9036
|
Popover,
|
|
9037
9037
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9038
|
-
|
|
9038
|
+
React__default.createElement(
|
|
9039
9039
|
Popover.Title,
|
|
9040
9040
|
{ as: 'h3' },
|
|
9041
9041
|
infoBox[0].title
|
|
9042
9042
|
),
|
|
9043
|
-
|
|
9043
|
+
React__default.createElement(
|
|
9044
9044
|
Popover.Content,
|
|
9045
9045
|
null,
|
|
9046
|
-
|
|
9046
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9047
9047
|
)
|
|
9048
9048
|
);
|
|
9049
9049
|
} else {
|
|
9050
|
-
return
|
|
9050
|
+
return React__default.createElement(
|
|
9051
9051
|
Tooltip,
|
|
9052
9052
|
_extends({ id: 'button-tooltip' }, props),
|
|
9053
|
-
|
|
9053
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9054
9054
|
);
|
|
9055
9055
|
}
|
|
9056
9056
|
};
|
|
9057
9057
|
|
|
9058
|
-
var FigureImageWOverLay =
|
|
9058
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9059
9059
|
var node = _ref3.node,
|
|
9060
9060
|
client = _ref3.client,
|
|
9061
9061
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9065,13 +9065,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9065
9065
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9066
9066
|
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9067
9067
|
var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9068
|
-
return
|
|
9068
|
+
return React__default.createElement(
|
|
9069
9069
|
'picture',
|
|
9070
9070
|
null,
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
main_42 && link ?
|
|
9071
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9072
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9073
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9074
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9075
9075
|
style: figureImageStyle,
|
|
9076
9076
|
className: 'figure-image',
|
|
9077
9077
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9080,10 +9080,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9080
9080
|
onClick: function onClick() {
|
|
9081
9081
|
return handleClickFigure(node, client);
|
|
9082
9082
|
}
|
|
9083
|
-
})) :
|
|
9083
|
+
})) : React__default.createElement(
|
|
9084
9084
|
OverlayTrigger,
|
|
9085
9085
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9086
|
-
|
|
9086
|
+
React__default.createElement('img', _extends({
|
|
9087
9087
|
style: figureImageStyle,
|
|
9088
9088
|
className: 'figure-image',
|
|
9089
9089
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9137,13 +9137,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9137
9137
|
|
|
9138
9138
|
var FigureCaption = useCallback(function () {
|
|
9139
9139
|
if (imgcaption && imgcaption.length > 0) {
|
|
9140
|
-
return
|
|
9140
|
+
return React__default.createElement(
|
|
9141
9141
|
'div',
|
|
9142
9142
|
{ className: 'figure-caption' },
|
|
9143
|
-
|
|
9143
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9144
9144
|
);
|
|
9145
9145
|
} else if (caption) {
|
|
9146
|
-
return
|
|
9146
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9147
9147
|
} else return null;
|
|
9148
9148
|
}, [caption, imgcaption]);
|
|
9149
9149
|
|
|
@@ -9160,24 +9160,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9160
9160
|
setShowLightbox(true);
|
|
9161
9161
|
}, [node, client]);
|
|
9162
9162
|
|
|
9163
|
-
return
|
|
9164
|
-
|
|
9163
|
+
return React__default.createElement(
|
|
9164
|
+
React__default.Fragment,
|
|
9165
9165
|
null,
|
|
9166
|
-
infoBox.length >= 1 ?
|
|
9166
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9167
9167
|
Figure$2,
|
|
9168
9168
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
|
-
link ?
|
|
9169
|
+
link ? React__default.createElement(
|
|
9170
9170
|
'a',
|
|
9171
9171
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
) :
|
|
9175
|
-
|
|
9172
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9173
|
+
React__default.createElement(FigureCaption, null)
|
|
9174
|
+
) : React__default.createElement(
|
|
9175
|
+
React__default.Fragment,
|
|
9176
9176
|
null,
|
|
9177
|
-
|
|
9178
|
-
|
|
9177
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9178
|
+
React__default.createElement(FigureCaption, null)
|
|
9179
9179
|
),
|
|
9180
|
-
|
|
9180
|
+
React__default.createElement(LightBox, {
|
|
9181
9181
|
showLightbox: showLightbox,
|
|
9182
9182
|
lightboxImgSrc: lightboxImgSrc,
|
|
9183
9183
|
closeLightbox: function closeLightbox() {
|
|
@@ -9185,21 +9185,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9185
9185
|
setShowLightbox(false);
|
|
9186
9186
|
}
|
|
9187
9187
|
})
|
|
9188
|
-
) :
|
|
9188
|
+
) : React__default.createElement(
|
|
9189
9189
|
Figure$2,
|
|
9190
9190
|
{ className: '' + class_name, style: figureStyle },
|
|
9191
|
-
link ?
|
|
9191
|
+
link ? React__default.createElement(
|
|
9192
9192
|
'a',
|
|
9193
9193
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
) :
|
|
9197
|
-
|
|
9194
|
+
React__default.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9195
|
+
React__default.createElement(FigureCaption, null)
|
|
9196
|
+
) : React__default.createElement(
|
|
9197
|
+
React__default.Fragment,
|
|
9198
9198
|
null,
|
|
9199
|
-
|
|
9200
|
-
|
|
9199
|
+
React__default.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9200
|
+
React__default.createElement(FigureCaption, null)
|
|
9201
9201
|
),
|
|
9202
|
-
|
|
9202
|
+
React__default.createElement(LightBox, {
|
|
9203
9203
|
showLightbox: showLightbox,
|
|
9204
9204
|
lightboxImgSrc: lightboxImgSrc,
|
|
9205
9205
|
closeLightbox: function closeLightbox() {
|
|
@@ -9208,7 +9208,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9208
9208
|
}
|
|
9209
9209
|
})
|
|
9210
9210
|
),
|
|
9211
|
-
|
|
9211
|
+
React__default.createElement(
|
|
9212
9212
|
'style',
|
|
9213
9213
|
{ jsx: 'true' },
|
|
9214
9214
|
'\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 '
|
|
@@ -9216,7 +9216,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9216
9216
|
);
|
|
9217
9217
|
};
|
|
9218
9218
|
|
|
9219
|
-
var Figure =
|
|
9219
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9220
9220
|
|
|
9221
9221
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9222
9222
|
useEffect(function () {
|
|
@@ -9233,7 +9233,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9233
9233
|
}, [ref]);
|
|
9234
9234
|
}
|
|
9235
9235
|
|
|
9236
|
-
var FigureImage =
|
|
9236
|
+
var FigureImage = React__default.memo(function (_ref) {
|
|
9237
9237
|
var imagesCount = _ref.imagesCount,
|
|
9238
9238
|
image = _ref.image,
|
|
9239
9239
|
client = _ref.client,
|
|
@@ -9241,13 +9241,13 @@ var FigureImage = React.memo(function (_ref) {
|
|
|
9241
9241
|
link = _ref.link,
|
|
9242
9242
|
handleClickFigure = _ref.handleClickFigure;
|
|
9243
9243
|
|
|
9244
|
-
return
|
|
9244
|
+
return React__default.createElement(
|
|
9245
9245
|
'picture',
|
|
9246
9246
|
null,
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9247
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9248
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9249
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9250
|
+
React__default.createElement('img', _extends({
|
|
9251
9251
|
'images-count': imagesCount,
|
|
9252
9252
|
className: 'multi-figure-image',
|
|
9253
9253
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9284,13 +9284,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9284
9284
|
imgcaption = _ref2.imgcaption;
|
|
9285
9285
|
|
|
9286
9286
|
if (imgcaption && imgcaption.length > 0) {
|
|
9287
|
-
return
|
|
9287
|
+
return React__default.createElement(
|
|
9288
9288
|
'div',
|
|
9289
9289
|
{ className: 'multi-figure-caption' },
|
|
9290
|
-
|
|
9290
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9291
9291
|
);
|
|
9292
9292
|
} else if (caption) {
|
|
9293
|
-
return
|
|
9293
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9294
9294
|
} else return null;
|
|
9295
9295
|
};
|
|
9296
9296
|
|
|
@@ -9299,7 +9299,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9299
9299
|
setOpenImg(true);
|
|
9300
9300
|
}, [client]);
|
|
9301
9301
|
|
|
9302
|
-
var FigureImageWOverLay =
|
|
9302
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9303
9303
|
var imagesCount = _ref3.imagesCount,
|
|
9304
9304
|
image = _ref3.image,
|
|
9305
9305
|
client = _ref3.client,
|
|
@@ -9309,13 +9309,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9309
9309
|
|
|
9310
9310
|
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9311
9311
|
var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9312
|
-
return
|
|
9312
|
+
return React__default.createElement(
|
|
9313
9313
|
'picture',
|
|
9314
9314
|
null,
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
main_42 && link ?
|
|
9315
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9316
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9317
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9318
|
+
main_42 && link ? React__default.createElement('img', _extends({
|
|
9319
9319
|
'images-count': imagesCount,
|
|
9320
9320
|
className: 'multi-figure-image',
|
|
9321
9321
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9324,10 +9324,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9324
9324
|
onClick: function onClick() {
|
|
9325
9325
|
return handleClickFigure(image, client);
|
|
9326
9326
|
}
|
|
9327
|
-
})) :
|
|
9327
|
+
})) : React__default.createElement(
|
|
9328
9328
|
OverlayTrigger,
|
|
9329
9329
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9330
|
-
|
|
9330
|
+
React__default.createElement('img', _extends({
|
|
9331
9331
|
'images-count': imagesCount,
|
|
9332
9332
|
className: 'multi-figure-image',
|
|
9333
9333
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9343,102 +9343,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9343
9343
|
|
|
9344
9344
|
var renderTooltip = function renderTooltip(image) {
|
|
9345
9345
|
if (image.infoBox[0].title) {
|
|
9346
|
-
return
|
|
9346
|
+
return React__default.createElement(
|
|
9347
9347
|
Popover,
|
|
9348
9348
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9349
|
-
|
|
9349
|
+
React__default.createElement(
|
|
9350
9350
|
Popover.Title,
|
|
9351
9351
|
{ as: 'h3' },
|
|
9352
9352
|
image.infoBox[0].title
|
|
9353
9353
|
),
|
|
9354
|
-
|
|
9354
|
+
React__default.createElement(
|
|
9355
9355
|
Popover.Content,
|
|
9356
9356
|
null,
|
|
9357
|
-
|
|
9357
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9358
9358
|
)
|
|
9359
9359
|
);
|
|
9360
9360
|
} else {
|
|
9361
|
-
return
|
|
9361
|
+
return React__default.createElement(
|
|
9362
9362
|
Tooltip,
|
|
9363
9363
|
_extends({ id: 'button-tooltip' }, props),
|
|
9364
|
-
|
|
9364
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9365
9365
|
);
|
|
9366
9366
|
}
|
|
9367
9367
|
};
|
|
9368
9368
|
|
|
9369
9369
|
if (images && images.length > 0) {
|
|
9370
|
-
return
|
|
9370
|
+
return React__default.createElement(
|
|
9371
9371
|
'div',
|
|
9372
9372
|
{ className: 'multi-figure-container' },
|
|
9373
|
-
|
|
9373
|
+
React__default.createElement(
|
|
9374
9374
|
Row$1,
|
|
9375
9375
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9376
9376
|
images.map(function (image, index) {
|
|
9377
9377
|
if (image.infoBox) {
|
|
9378
|
-
return
|
|
9378
|
+
return React__default.createElement(
|
|
9379
9379
|
Col$1,
|
|
9380
9380
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9381
|
-
image.link ?
|
|
9381
|
+
image.link ? React__default.createElement(
|
|
9382
9382
|
'a',
|
|
9383
9383
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9384
|
-
|
|
9384
|
+
React__default.createElement(
|
|
9385
9385
|
'div',
|
|
9386
9386
|
{ className: 'multi-figure-image-container' },
|
|
9387
|
-
|
|
9387
|
+
React__default.createElement(
|
|
9388
9388
|
LazyLoad,
|
|
9389
9389
|
{ once: true },
|
|
9390
|
-
|
|
9390
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9391
9391
|
),
|
|
9392
|
-
|
|
9392
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9393
9393
|
)
|
|
9394
|
-
) :
|
|
9394
|
+
) : React__default.createElement(
|
|
9395
9395
|
'div',
|
|
9396
9396
|
{ className: 'multi-figure-image-container' },
|
|
9397
|
-
|
|
9397
|
+
React__default.createElement(
|
|
9398
9398
|
LazyLoad,
|
|
9399
9399
|
{ once: true },
|
|
9400
|
-
|
|
9400
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9401
9401
|
),
|
|
9402
|
-
|
|
9402
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9403
9403
|
)
|
|
9404
9404
|
);
|
|
9405
9405
|
} else {
|
|
9406
|
-
return
|
|
9406
|
+
return React__default.createElement(
|
|
9407
9407
|
Col$1,
|
|
9408
9408
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9409
|
-
image.link ?
|
|
9409
|
+
image.link ? React__default.createElement(
|
|
9410
9410
|
'a',
|
|
9411
9411
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9412
|
-
|
|
9412
|
+
React__default.createElement(
|
|
9413
9413
|
'div',
|
|
9414
9414
|
{ className: 'multi-figure-image-container' },
|
|
9415
|
-
|
|
9415
|
+
React__default.createElement(
|
|
9416
9416
|
LazyLoad,
|
|
9417
9417
|
{ once: true },
|
|
9418
|
-
|
|
9418
|
+
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9419
9419
|
),
|
|
9420
|
-
|
|
9420
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9421
9421
|
)
|
|
9422
|
-
) :
|
|
9422
|
+
) : React__default.createElement(
|
|
9423
9423
|
'div',
|
|
9424
9424
|
{ className: 'multi-figure-image-container' },
|
|
9425
|
-
|
|
9425
|
+
React__default.createElement(
|
|
9426
9426
|
LazyLoad,
|
|
9427
9427
|
{ once: true },
|
|
9428
|
-
|
|
9428
|
+
React__default.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9429
9429
|
),
|
|
9430
|
-
|
|
9430
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9431
9431
|
)
|
|
9432
9432
|
);
|
|
9433
9433
|
}
|
|
9434
9434
|
})
|
|
9435
9435
|
),
|
|
9436
|
-
|
|
9436
|
+
React__default.createElement(
|
|
9437
9437
|
'div',
|
|
9438
9438
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9439
|
-
|
|
9439
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9440
9440
|
),
|
|
9441
|
-
|
|
9441
|
+
React__default.createElement(
|
|
9442
9442
|
'style',
|
|
9443
9443
|
{ jsx: 'true' },
|
|
9444
9444
|
'\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 '
|
|
@@ -9487,23 +9487,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9487
9487
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9488
9488
|
}, []);
|
|
9489
9489
|
|
|
9490
|
-
return
|
|
9491
|
-
|
|
9490
|
+
return React__default.createElement(
|
|
9491
|
+
React__default.Fragment,
|
|
9492
9492
|
null,
|
|
9493
|
-
|
|
9493
|
+
React__default.createElement(
|
|
9494
9494
|
Head,
|
|
9495
9495
|
null,
|
|
9496
|
-
|
|
9496
|
+
React__default.createElement('script', {
|
|
9497
9497
|
dangerouslySetInnerHTML: {
|
|
9498
9498
|
__html: 'history.scrollRestoration = "manual"'
|
|
9499
9499
|
}
|
|
9500
9500
|
})
|
|
9501
9501
|
),
|
|
9502
|
-
|
|
9502
|
+
React__default.createElement(
|
|
9503
9503
|
'div',
|
|
9504
9504
|
{ id: elementId },
|
|
9505
|
-
|
|
9506
|
-
|
|
9505
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9506
|
+
React__default.createElement(
|
|
9507
9507
|
'style',
|
|
9508
9508
|
{ jsx: 'true' },
|
|
9509
9509
|
'\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 '
|
|
@@ -9557,7 +9557,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9557
9557
|
|
|
9558
9558
|
|
|
9559
9559
|
|
|
9560
|
-
var _react2 = _interopRequireDefault(
|
|
9560
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9561
9561
|
|
|
9562
9562
|
|
|
9563
9563
|
|
|
@@ -9716,7 +9716,7 @@ var ScriptTag = function (_Component) {
|
|
|
9716
9716
|
};
|
|
9717
9717
|
|
|
9718
9718
|
return ScriptTag;
|
|
9719
|
-
}(
|
|
9719
|
+
}(React__default.Component);
|
|
9720
9720
|
|
|
9721
9721
|
ScriptTag.propTypes = {
|
|
9722
9722
|
/**
|
|
@@ -9795,11 +9795,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9795
9795
|
}, []);
|
|
9796
9796
|
|
|
9797
9797
|
if (iframeSrc) {
|
|
9798
|
-
return
|
|
9798
|
+
return React__default.createElement(
|
|
9799
9799
|
'section',
|
|
9800
9800
|
{ className: 'form-assembly' },
|
|
9801
|
-
|
|
9802
|
-
|
|
9801
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9802
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9803
9803
|
);
|
|
9804
9804
|
}
|
|
9805
9805
|
|
|
@@ -9836,27 +9836,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9836
9836
|
return window.removeEventListener('resize', handleResize);
|
|
9837
9837
|
};
|
|
9838
9838
|
}, []);
|
|
9839
|
-
return
|
|
9839
|
+
return React__default.createElement(
|
|
9840
9840
|
'div',
|
|
9841
9841
|
{ className: 'blockTableHolder', ref: holder },
|
|
9842
|
-
|
|
9842
|
+
React__default.createElement(
|
|
9843
9843
|
'div',
|
|
9844
9844
|
{ className: 'blockTable' },
|
|
9845
9845
|
rows && rows.map(function (row) {
|
|
9846
|
-
return
|
|
9846
|
+
return React__default.createElement(
|
|
9847
9847
|
'div',
|
|
9848
9848
|
{ className: 'blockTableRow' },
|
|
9849
9849
|
row.cells && row.cells.map(function (cell) {
|
|
9850
|
-
return
|
|
9850
|
+
return React__default.createElement(
|
|
9851
9851
|
'div',
|
|
9852
9852
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9853
|
-
|
|
9853
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9854
9854
|
);
|
|
9855
9855
|
})
|
|
9856
9856
|
);
|
|
9857
9857
|
})
|
|
9858
9858
|
),
|
|
9859
|
-
|
|
9859
|
+
React__default.createElement(
|
|
9860
9860
|
'style',
|
|
9861
9861
|
{ jsx: true },
|
|
9862
9862
|
'\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 '
|
|
@@ -9935,12 +9935,12 @@ var getSerializers = function getSerializers() {
|
|
|
9935
9935
|
var node = _ref.node;
|
|
9936
9936
|
var url = node.url;
|
|
9937
9937
|
|
|
9938
|
-
return
|
|
9938
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9939
9939
|
},
|
|
9940
9940
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9941
9941
|
var node = _ref2.node;
|
|
9942
9942
|
|
|
9943
|
-
return
|
|
9943
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9944
9944
|
nodes: node,
|
|
9945
9945
|
article: article,
|
|
9946
9946
|
meta: meta,
|
|
@@ -9954,7 +9954,7 @@ var getSerializers = function getSerializers() {
|
|
|
9954
9954
|
articleSeries: function articleSeries(_ref3) {
|
|
9955
9955
|
var node = _ref3.node;
|
|
9956
9956
|
|
|
9957
|
-
return
|
|
9957
|
+
return React__default.createElement(ArticleSeries, {
|
|
9958
9958
|
nodes: node,
|
|
9959
9959
|
accountIDs: videoAccountIDs || {},
|
|
9960
9960
|
pageview: pageview,
|
|
@@ -9967,61 +9967,61 @@ var getSerializers = function getSerializers() {
|
|
|
9967
9967
|
figure: function figure(_ref4) {
|
|
9968
9968
|
var node = _ref4.node;
|
|
9969
9969
|
|
|
9970
|
-
return
|
|
9970
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9971
9971
|
},
|
|
9972
9972
|
multifigure: function multifigure(_ref5) {
|
|
9973
9973
|
var node = _ref5.node;
|
|
9974
9974
|
|
|
9975
|
-
return
|
|
9975
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9976
9976
|
},
|
|
9977
9977
|
slideshow: function slideshow(_ref6) {
|
|
9978
9978
|
var node = _ref6.node;
|
|
9979
9979
|
var slides = node.slides;
|
|
9980
9980
|
|
|
9981
|
-
return
|
|
9981
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9982
9982
|
},
|
|
9983
9983
|
sidebar: function sidebar(_ref7) {
|
|
9984
9984
|
var node = _ref7.node;
|
|
9985
9985
|
var caption = node.caption,
|
|
9986
9986
|
content = node.content;
|
|
9987
9987
|
|
|
9988
|
-
return
|
|
9988
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
9989
9989
|
},
|
|
9990
9990
|
datatable: function datatable(_ref8) {
|
|
9991
9991
|
var node = _ref8.node;
|
|
9992
9992
|
var table = node.table;
|
|
9993
9993
|
|
|
9994
|
-
return
|
|
9994
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9995
9995
|
},
|
|
9996
9996
|
media: function media(_ref9) {
|
|
9997
9997
|
var node = _ref9.node;
|
|
9998
9998
|
|
|
9999
|
-
return
|
|
9999
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10000
10000
|
},
|
|
10001
10001
|
iframe: function iframe(_ref10) {
|
|
10002
10002
|
var node = _ref10.node;
|
|
10003
10003
|
|
|
10004
|
-
return
|
|
10004
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10005
10005
|
},
|
|
10006
10006
|
video: function video(_ref11) {
|
|
10007
10007
|
var node = _ref11.node;
|
|
10008
10008
|
|
|
10009
|
-
return
|
|
10009
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10010
10010
|
},
|
|
10011
10011
|
audio: function audio(_ref12) {
|
|
10012
10012
|
var node = _ref12.node;
|
|
10013
10013
|
|
|
10014
|
-
return
|
|
10014
|
+
return React__default.createElement(Audio, { node: node });
|
|
10015
10015
|
},
|
|
10016
10016
|
poll: function poll(_ref13) {
|
|
10017
10017
|
var node = _ref13.node;
|
|
10018
10018
|
|
|
10019
|
-
return
|
|
10019
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10020
10020
|
},
|
|
10021
10021
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10022
10022
|
var node = _ref14.node;
|
|
10023
10023
|
|
|
10024
|
-
return
|
|
10024
|
+
return React__default.createElement(Poll, {
|
|
10025
10025
|
node: node,
|
|
10026
10026
|
client: client,
|
|
10027
10027
|
pageview: pageview,
|
|
@@ -10035,35 +10035,35 @@ var getSerializers = function getSerializers() {
|
|
|
10035
10035
|
var node = _ref15.node;
|
|
10036
10036
|
var quizzes = node.quizzes;
|
|
10037
10037
|
|
|
10038
|
-
return
|
|
10038
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10039
10039
|
},
|
|
10040
10040
|
leads: function leads(_ref16) {
|
|
10041
10041
|
var node = _ref16.node;
|
|
10042
10042
|
var leadID = node.leadID;
|
|
10043
10043
|
|
|
10044
10044
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10045
|
-
return
|
|
10045
|
+
return React__default.createElement(Leads, { url: url });
|
|
10046
10046
|
},
|
|
10047
10047
|
slideshows: function slideshows(_ref17) {
|
|
10048
10048
|
var node = _ref17.node;
|
|
10049
10049
|
|
|
10050
|
-
return
|
|
10050
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10051
10051
|
},
|
|
10052
10052
|
nativeAd: function nativeAd(_ref18) {
|
|
10053
10053
|
var node = _ref18.node;
|
|
10054
10054
|
|
|
10055
|
-
return
|
|
10055
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10056
10056
|
},
|
|
10057
10057
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10058
10058
|
var node = _ref19.node;
|
|
10059
10059
|
|
|
10060
|
-
return
|
|
10060
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10061
10061
|
},
|
|
10062
10062
|
hrtag: function hrtag() {
|
|
10063
|
-
return
|
|
10063
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10064
10064
|
},
|
|
10065
10065
|
brtag: function brtag() {
|
|
10066
|
-
return
|
|
10066
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10067
10067
|
},
|
|
10068
10068
|
formstack: function formstack(_ref20) {
|
|
10069
10069
|
var node = _ref20.node;
|
|
@@ -10071,29 +10071,29 @@ var getSerializers = function getSerializers() {
|
|
|
10071
10071
|
Caption = node.Caption,
|
|
10072
10072
|
needSegmentSupport = node.needSegmentSupport;
|
|
10073
10073
|
|
|
10074
|
-
return
|
|
10074
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10075
10075
|
},
|
|
10076
10076
|
formassembly: FormAssembly,
|
|
10077
10077
|
multimedia: function multimedia(_ref21) {
|
|
10078
10078
|
var node = _ref21.node;
|
|
10079
10079
|
|
|
10080
|
-
return
|
|
10080
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10081
10081
|
},
|
|
10082
10082
|
blockTable: function blockTable(_ref22) {
|
|
10083
10083
|
var node = _ref22.node;
|
|
10084
|
-
return
|
|
10084
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10085
10085
|
}
|
|
10086
10086
|
},
|
|
10087
10087
|
marks: {
|
|
10088
10088
|
superscript: function superscript(props) {
|
|
10089
|
-
return
|
|
10089
|
+
return React__default.createElement(
|
|
10090
10090
|
'sup',
|
|
10091
10091
|
null,
|
|
10092
10092
|
props.children
|
|
10093
10093
|
);
|
|
10094
10094
|
},
|
|
10095
10095
|
subscript: function subscript(props) {
|
|
10096
|
-
return
|
|
10096
|
+
return React__default.createElement(
|
|
10097
10097
|
'sub',
|
|
10098
10098
|
null,
|
|
10099
10099
|
props.children
|
|
@@ -10110,7 +10110,7 @@ var getSerializers = function getSerializers() {
|
|
|
10110
10110
|
if (href && href.charAt(0) === '#') {
|
|
10111
10111
|
var elementId = href.slice(1);
|
|
10112
10112
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10113
|
-
return
|
|
10113
|
+
return React__default.createElement(
|
|
10114
10114
|
'a',
|
|
10115
10115
|
{ onClick: function onClick() {
|
|
10116
10116
|
return ScrollToElement(elementId);
|
|
@@ -10120,7 +10120,7 @@ var getSerializers = function getSerializers() {
|
|
|
10120
10120
|
}
|
|
10121
10121
|
|
|
10122
10122
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10123
|
-
return href ?
|
|
10123
|
+
return href ? React__default.createElement(
|
|
10124
10124
|
'a',
|
|
10125
10125
|
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10126
10126
|
children
|
|
@@ -10128,7 +10128,7 @@ var getSerializers = function getSerializers() {
|
|
|
10128
10128
|
},
|
|
10129
10129
|
alignleft: function alignleft(_ref23) {
|
|
10130
10130
|
var children = _ref23.children;
|
|
10131
|
-
return
|
|
10131
|
+
return React__default.createElement(
|
|
10132
10132
|
'div',
|
|
10133
10133
|
{ style: { textAlign: 'left' } },
|
|
10134
10134
|
children
|
|
@@ -10136,7 +10136,7 @@ var getSerializers = function getSerializers() {
|
|
|
10136
10136
|
},
|
|
10137
10137
|
alignright: function alignright(_ref24) {
|
|
10138
10138
|
var children = _ref24.children;
|
|
10139
|
-
return
|
|
10139
|
+
return React__default.createElement(
|
|
10140
10140
|
'div',
|
|
10141
10141
|
{ style: { textAlign: 'right' } },
|
|
10142
10142
|
children
|
|
@@ -10144,7 +10144,7 @@ var getSerializers = function getSerializers() {
|
|
|
10144
10144
|
},
|
|
10145
10145
|
aligncenter: function aligncenter(_ref25) {
|
|
10146
10146
|
var children = _ref25.children;
|
|
10147
|
-
return
|
|
10147
|
+
return React__default.createElement(
|
|
10148
10148
|
'div',
|
|
10149
10149
|
{ style: { textAlign: 'center' } },
|
|
10150
10150
|
children
|
|
@@ -10152,7 +10152,7 @@ var getSerializers = function getSerializers() {
|
|
|
10152
10152
|
},
|
|
10153
10153
|
alignjustify: function alignjustify(_ref26) {
|
|
10154
10154
|
var children = _ref26.children;
|
|
10155
|
-
return
|
|
10155
|
+
return React__default.createElement(
|
|
10156
10156
|
'div',
|
|
10157
10157
|
{ style: { textAlign: 'justify' } },
|
|
10158
10158
|
children
|
|
@@ -10162,7 +10162,7 @@ var getSerializers = function getSerializers() {
|
|
|
10162
10162
|
var children = props.children,
|
|
10163
10163
|
color = props.mark.color;
|
|
10164
10164
|
|
|
10165
|
-
return
|
|
10165
|
+
return React__default.createElement(
|
|
10166
10166
|
'span',
|
|
10167
10167
|
{ style: { color: color ? color.hex : null } },
|
|
10168
10168
|
children
|