@mjhls/mjh-framework 1.0.992-nofollow-v5 → 1.0.992-publication-test
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/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -5
- package/dist/cjs/AD300x250x600.js +5 -5
- package/dist/cjs/AD728x90.js +6 -6
- package/dist/cjs/ADFloatingFooter.js +8 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -8
- package/dist/cjs/{ADInfeed-f316b66a.js → ADInfeed-e87afe8a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -8
- package/dist/cjs/ADSponsoredResources.js +8 -8
- package/dist/cjs/ADWebcast.js +8 -8
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-2003306e.js → ADlgInfeed-b5a3d436.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +5 -5
- package/dist/cjs/AlgoliaSearch.js +866 -1047
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +14 -15
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- package/dist/cjs/Auth.js +85 -114
- package/dist/cjs/AuthWrapper.js +24 -24
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +18 -17
- package/dist/cjs/Column3.js +29 -28
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -49
- package/dist/cjs/DeckContent.js +58 -58
- package/dist/cjs/DeckQueue.js +57 -57
- package/dist/cjs/DeckQueuePaginated.js +46 -46
- package/dist/cjs/{Dfp-c313a700.js → Dfp-9be904d5.js} +17 -17
- package/dist/cjs/EventsDeck.js +93 -120
- package/dist/cjs/ExternalResources.js +37 -38
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -134
- package/dist/cjs/GridContentPaginated.js +121 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +112 -112
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +28 -29
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-17fdaf3b.js → ImageSlider-6c00b878.js} +72 -72
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +19 -20
- package/dist/cjs/LeftNav.js +20 -29
- package/dist/cjs/MasterDeck.js +39 -39
- package/dist/cjs/MasterDeckPaginated.js +29 -29
- package/dist/cjs/{MediaSeriesCard-2dcd6741.js → MediaSeriesCard-a9755b4a.js} +522 -563
- package/dist/cjs/MediaSeriesLanding.js +35 -36
- package/dist/cjs/MediaSeriesLandingPaginated.js +34 -35
- package/dist/cjs/NavDvm.js +62 -93
- package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
- package/dist/cjs/NavMagazine.js +108 -126
- package/dist/cjs/NavNative.js +99 -118
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-6359861a.js → Pagination-2a3d0103.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +52 -68
- package/dist/cjs/PartnerDetailListingPaginated.js +47 -58
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-5ccf9b13.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +245 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-594b19eb.js} +22 -22
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-b7faaedc.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +47 -51
- package/dist/cjs/TaxonomyDescription.js +11 -12
- package/dist/cjs/TemplateNormal.js +29 -28
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +28 -29
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +46 -46
- package/dist/cjs/View.js +221 -222
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-a195642e.js} +2 -2
- package/dist/cjs/defineProperty-9673846a.js +34 -0
- package/dist/cjs/getQuery.js +6 -2
- package/dist/cjs/getRelatedArticle.js +1 -0
- package/dist/cjs/getSerializers.js +6 -7
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-64fe6bc7.js → index-5e63adb9.js} +492 -484
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
- package/dist/cjs/{index-d2a6ef75.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-2bb721c8.js} +18 -19
- package/dist/cjs/index.js +102 -102
- package/dist/cjs/{main-6054981e.js → main-f1c77adb.js} +22 -17
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +482 -663
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +2 -3
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +11 -40
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column2.js +4 -3
- package/dist/esm/Column3.js +3 -2
- package/dist/esm/ContentCardPaginated.js +3 -3
- package/dist/esm/DeckContent.js +2 -2
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +2 -2
- package/dist/esm/EventsDeck.js +4 -31
- package/dist/esm/ExternalResources.js +6 -7
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/GridContentPaginated.js +4 -4
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/HorizontalArticleListing.js +2 -3
- package/dist/esm/IssueLanding.js +4 -5
- package/dist/esm/LeftNav.js +4 -13
- package/dist/esm/MasterDeck.js +3 -3
- package/dist/esm/MasterDeckPaginated.js +4 -4
- package/dist/esm/{MediaSeriesCard-75712dc0.js → MediaSeriesCard-f68f8e63.js} +67 -108
- package/dist/esm/MediaSeriesLanding.js +5 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +6 -7
- package/dist/esm/NavDvm.js +6 -37
- package/dist/esm/{NavFooter-3272e9cd.js → NavFooter-e27bd93b.js} +4 -9
- package/dist/esm/NavMagazine.js +6 -24
- package/dist/esm/NavNative.js +5 -24
- package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +11 -27
- package/dist/esm/PartnerDetailListingPaginated.js +9 -20
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-f771e20d.js} +1 -1
- package/dist/esm/SideFooter.js +6 -5
- package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-4b56cd8c.js} +2 -2
- package/dist/esm/TaxonomyCard.js +3 -7
- package/dist/esm/TaxonomyDescription.js +2 -3
- package/dist/esm/TemplateNormal.js +6 -5
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -3
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +3 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/defineProperty-8c30428f.js +32 -0
- package/dist/esm/getQuery.js +6 -2
- package/dist/esm/getRelatedArticle.js +1 -0
- package/dist/esm/getSerializers.js +2 -3
- package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
- package/dist/esm/{index-19ae7235.js → index-e0aeabc5.js} +12 -4
- package/dist/esm/{index.esm-07c37a92.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/index.js +10 -10
- package/dist/esm/{main-9f6806ea.js → main-1894c974.js} +9 -4
- package/package.json +2 -2
- package/dist/cjs/NavFooter-880e9d87.js +0 -71
- package/dist/cjs/checkSisterSite-b29833b2.js +0 -19
- package/dist/esm/checkSisterSite-baa4fb6b.js +0 -17
- /package/dist/esm/{ADInfeed-777bb0b3.js → ADInfeed-5765a73a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-e7fd1bb6.js → ADlgInfeed-5e36f317.js} +0 -0
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var reactBootstrap = require('react-bootstrap');
|
|
6
6
|
var urlFor = require('./urlFor.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-fc2f1ca2.js');
|
|
8
8
|
var Router = require('next/router');
|
|
9
9
|
var index$1 = require('./index-187c967e.js');
|
|
10
10
|
var PropTypes = require('prop-types');
|
|
@@ -12,14 +12,14 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
|
12
12
|
var util = require('./util-93a37fd0.js');
|
|
13
13
|
require('./Beam.js');
|
|
14
14
|
var Segment = require('./Segment.js');
|
|
15
|
-
var main = require('./main-
|
|
16
|
-
var BlockContent = require('./BlockContent-
|
|
15
|
+
var main = require('./main-f1c77adb.js');
|
|
16
|
+
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
17
17
|
var _extends = require('./extends-7c86182f.js');
|
|
18
18
|
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
19
|
-
var index$2 = require('./index-
|
|
19
|
+
var index$2 = require('./index-eadd5035.js');
|
|
20
20
|
var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
21
21
|
var _typeof$1 = require('./typeof-567e31ff.js');
|
|
22
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
22
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
23
23
|
var stringify = require('./stringify-f7a37a8d.js');
|
|
24
24
|
var Modal = require('react-bootstrap/Modal');
|
|
25
25
|
var Button = require('react-bootstrap/Button');
|
|
@@ -43,7 +43,6 @@ var Figure$1 = require('react-bootstrap/Figure');
|
|
|
43
43
|
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
44
44
|
var Tooltip = require('react-bootstrap/Tooltip');
|
|
45
45
|
var Popover = require('react-bootstrap/Popover');
|
|
46
|
-
var checkSisterSite = require('./checkSisterSite-b29833b2.js');
|
|
47
46
|
|
|
48
47
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
49
48
|
|
|
@@ -66,7 +65,7 @@ var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
|
66
65
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
67
66
|
var pageNumber = selectedIndex + 1;
|
|
68
67
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
69
|
-
Router__default[
|
|
68
|
+
Router__default['default'].push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
70
69
|
};
|
|
71
70
|
|
|
72
71
|
var Slideshow$1 = function Slideshow(_ref) {
|
|
@@ -96,27 +95,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
96
95
|
if (pageview) pageview(router.asPath);
|
|
97
96
|
}, [router]);
|
|
98
97
|
|
|
99
|
-
return React__default[
|
|
98
|
+
return React__default['default'].createElement(
|
|
100
99
|
'div',
|
|
101
100
|
{ className: 'mt-3 mb-3' },
|
|
102
|
-
React__default[
|
|
101
|
+
React__default['default'].createElement(
|
|
103
102
|
reactBootstrap.Carousel,
|
|
104
103
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
105
104
|
return onChangeSlide(selectedIndex, router);
|
|
106
105
|
}, interval: null },
|
|
107
106
|
slides && slides.map(function (slide) {
|
|
108
|
-
return React__default[
|
|
107
|
+
return React__default['default'].createElement(
|
|
109
108
|
reactBootstrap.Carousel.Item,
|
|
110
109
|
{ key: slide._key },
|
|
111
|
-
React__default[
|
|
110
|
+
React__default['default'].createElement(
|
|
112
111
|
'picture',
|
|
113
112
|
null,
|
|
114
|
-
React__default[
|
|
115
|
-
React__default[
|
|
116
|
-
React__default[
|
|
117
|
-
React__default[
|
|
113
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
114
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
115
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
116
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
118
117
|
),
|
|
119
|
-
slide.caption && React__default[
|
|
118
|
+
slide.caption && React__default['default'].createElement(
|
|
120
119
|
'p',
|
|
121
120
|
{ className: 'p-2' },
|
|
122
121
|
slide.caption
|
|
@@ -1858,9 +1857,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1858
1857
|
}, {
|
|
1859
1858
|
key: "render",
|
|
1860
1859
|
value: function render() {
|
|
1861
|
-
return /*#__PURE__*/React__default[
|
|
1860
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1862
1861
|
className: this.props.containerClassName
|
|
1863
|
-
}, /*#__PURE__*/React__default[
|
|
1862
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1864
1863
|
id: this.props.id,
|
|
1865
1864
|
className: this.props.className,
|
|
1866
1865
|
ref: this.refContainer
|
|
@@ -1869,7 +1868,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1869
1868
|
}]);
|
|
1870
1869
|
|
|
1871
1870
|
return YouTube;
|
|
1872
|
-
}(React__default[
|
|
1871
|
+
}(React__default['default'].Component);
|
|
1873
1872
|
|
|
1874
1873
|
_defineProperty(YouTube, "PlayerState", {
|
|
1875
1874
|
UNSTARTED: -1,
|
|
@@ -1881,24 +1880,24 @@ _defineProperty(YouTube, "PlayerState", {
|
|
|
1881
1880
|
});
|
|
1882
1881
|
|
|
1883
1882
|
YouTube.propTypes = {
|
|
1884
|
-
videoId: PropTypes__default[
|
|
1883
|
+
videoId: PropTypes__default['default'].string,
|
|
1885
1884
|
// custom ID for player element
|
|
1886
|
-
id: PropTypes__default[
|
|
1885
|
+
id: PropTypes__default['default'].string,
|
|
1887
1886
|
// custom class name for player element
|
|
1888
|
-
className: PropTypes__default[
|
|
1887
|
+
className: PropTypes__default['default'].string,
|
|
1889
1888
|
// custom class name for player container element
|
|
1890
|
-
containerClassName: PropTypes__default[
|
|
1889
|
+
containerClassName: PropTypes__default['default'].string,
|
|
1891
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1892
|
-
opts: PropTypes__default[
|
|
1891
|
+
opts: PropTypes__default['default'].objectOf(PropTypes__default['default'].any),
|
|
1893
1892
|
// event subscriptions
|
|
1894
|
-
onReady: PropTypes__default[
|
|
1895
|
-
onError: PropTypes__default[
|
|
1896
|
-
onPlay: PropTypes__default[
|
|
1897
|
-
onPause: PropTypes__default[
|
|
1898
|
-
onEnd: PropTypes__default[
|
|
1899
|
-
onStateChange: PropTypes__default[
|
|
1900
|
-
onPlaybackRateChange: PropTypes__default[
|
|
1901
|
-
onPlaybackQualityChange: PropTypes__default[
|
|
1893
|
+
onReady: PropTypes__default['default'].func,
|
|
1894
|
+
onError: PropTypes__default['default'].func,
|
|
1895
|
+
onPlay: PropTypes__default['default'].func,
|
|
1896
|
+
onPause: PropTypes__default['default'].func,
|
|
1897
|
+
onEnd: PropTypes__default['default'].func,
|
|
1898
|
+
onStateChange: PropTypes__default['default'].func,
|
|
1899
|
+
onPlaybackRateChange: PropTypes__default['default'].func,
|
|
1900
|
+
onPlaybackQualityChange: PropTypes__default['default'].func
|
|
1902
1901
|
};
|
|
1903
1902
|
YouTube.defaultProps = {
|
|
1904
1903
|
videoId: null,
|
|
@@ -2016,11 +2015,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2016
2015
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2017
2016
|
};
|
|
2018
2017
|
|
|
2019
|
-
return React__default[
|
|
2018
|
+
return React__default['default'].createElement(
|
|
2020
2019
|
'div',
|
|
2021
2020
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
React__default[
|
|
2023
|
-
React__default[
|
|
2021
|
+
React__default['default'].createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2022
|
+
React__default['default'].createElement(
|
|
2024
2023
|
'style',
|
|
2025
2024
|
{ jsx: 'true' },
|
|
2026
2025
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2033,20 +2032,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2032
|
content = _ref.content,
|
|
2034
2033
|
getSerializers = _ref.getSerializers;
|
|
2035
2034
|
|
|
2036
|
-
return React__default[
|
|
2035
|
+
return React__default['default'].createElement(
|
|
2037
2036
|
'article',
|
|
2038
2037
|
{ className: 'sidebar' },
|
|
2039
|
-
React__default[
|
|
2038
|
+
React__default['default'].createElement(
|
|
2040
2039
|
'div',
|
|
2041
2040
|
null,
|
|
2042
|
-
React__default[
|
|
2041
|
+
React__default['default'].createElement(
|
|
2043
2042
|
'h3',
|
|
2044
2043
|
null,
|
|
2045
2044
|
caption
|
|
2046
2045
|
),
|
|
2047
|
-
React__default[
|
|
2046
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2047
|
),
|
|
2049
|
-
React__default[
|
|
2048
|
+
React__default['default'].createElement(
|
|
2050
2049
|
'style',
|
|
2051
2050
|
{ jsx: 'true' },
|
|
2052
2051
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2057,18 +2056,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2056
|
var TableShow = function TableShow(_ref) {
|
|
2058
2057
|
var rows = _ref.rows;
|
|
2059
2058
|
|
|
2060
|
-
return React__default[
|
|
2059
|
+
return React__default['default'].createElement(
|
|
2061
2060
|
reactBootstrap.Table,
|
|
2062
2061
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
React__default[
|
|
2062
|
+
React__default['default'].createElement(
|
|
2064
2063
|
'tbody',
|
|
2065
2064
|
null,
|
|
2066
2065
|
rows && rows.map(function (row) {
|
|
2067
|
-
return React__default[
|
|
2066
|
+
return React__default['default'].createElement(
|
|
2068
2067
|
'tr',
|
|
2069
2068
|
{ key: row._key },
|
|
2070
2069
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell && React__default[
|
|
2070
|
+
return cell && React__default['default'].createElement(
|
|
2072
2071
|
'td',
|
|
2073
2072
|
{ key: index },
|
|
2074
2073
|
cell
|
|
@@ -2166,25 +2165,25 @@ var Media = function Media(_ref) {
|
|
|
2166
2165
|
margin: imageMargin
|
|
2167
2166
|
};
|
|
2168
2167
|
|
|
2169
|
-
return React__default[
|
|
2168
|
+
return React__default['default'].createElement(
|
|
2170
2169
|
reactBootstrap.Figure,
|
|
2171
2170
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2172
|
-
React__default[
|
|
2171
|
+
React__default['default'].createElement(
|
|
2173
2172
|
'a',
|
|
2174
2173
|
{ href: urlForFile.urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2175
|
-
React__default[
|
|
2174
|
+
React__default['default'].createElement(
|
|
2176
2175
|
index$2.LazyLoad,
|
|
2177
2176
|
{ once: true },
|
|
2178
|
-
React__default[
|
|
2177
|
+
React__default['default'].createElement(
|
|
2179
2178
|
'picture',
|
|
2180
2179
|
null,
|
|
2181
|
-
React__default[
|
|
2182
|
-
React__default[
|
|
2183
|
-
React__default[
|
|
2184
|
-
React__default[
|
|
2180
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2181
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2182
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2183
|
+
React__default['default'].createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
2184
|
)
|
|
2186
2185
|
),
|
|
2187
|
-
caption && React__default[
|
|
2186
|
+
caption && React__default['default'].createElement(
|
|
2188
2187
|
reactBootstrap.Figure.Caption,
|
|
2189
2188
|
{ className: 'media-caption' },
|
|
2190
2189
|
caption
|
|
@@ -2192,7 +2191,7 @@ var Media = function Media(_ref) {
|
|
|
2192
2191
|
)
|
|
2193
2192
|
);
|
|
2194
2193
|
} else if (caption && caption !== '') {
|
|
2195
|
-
return React__default[
|
|
2194
|
+
return React__default['default'].createElement(
|
|
2196
2195
|
'a',
|
|
2197
2196
|
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2197
|
href: urlForFile.urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2212,10 +2211,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2211
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2213
2212
|
|
|
2214
2213
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2215
|
-
return React__default[
|
|
2214
|
+
return React__default['default'].createElement(
|
|
2216
2215
|
'div',
|
|
2217
2216
|
{ className: 'd-block text-center mb-3' },
|
|
2218
|
-
React__default[
|
|
2217
|
+
React__default['default'].createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2219
2218
|
);
|
|
2220
2219
|
};
|
|
2221
2220
|
|
|
@@ -2225,7 +2224,7 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2225
2224
|
handlePollAnswer = _ref.handlePollAnswer;
|
|
2226
2225
|
|
|
2227
2226
|
var choiceArray = choices.map(function (choice) {
|
|
2228
|
-
return React__default[
|
|
2227
|
+
return React__default['default'].createElement(Form__default['default'].Check, {
|
|
2229
2228
|
inline: true,
|
|
2230
2229
|
label: choice.choiceText,
|
|
2231
2230
|
value: choice.choiceText,
|
|
@@ -2235,19 +2234,19 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2235
2234
|
onClick: handlePollAnswer
|
|
2236
2235
|
});
|
|
2237
2236
|
});
|
|
2238
|
-
return React__default[
|
|
2237
|
+
return React__default['default'].createElement(
|
|
2239
2238
|
'div',
|
|
2240
2239
|
{
|
|
2241
2240
|
key: 'inline-radio',
|
|
2242
2241
|
className: 'radioContainer' },
|
|
2243
|
-
React__default[
|
|
2242
|
+
React__default['default'].createElement(
|
|
2244
2243
|
'h2',
|
|
2245
2244
|
{
|
|
2246
2245
|
className: 'radioLabelText'
|
|
2247
2246
|
},
|
|
2248
2247
|
question
|
|
2249
2248
|
),
|
|
2250
|
-
React__default[
|
|
2249
|
+
React__default['default'].createElement(
|
|
2251
2250
|
'div',
|
|
2252
2251
|
{
|
|
2253
2252
|
className: 'multiChoiceDiv'
|
|
@@ -2262,19 +2261,19 @@ var PopupPollTextInput = function PopupPollTextInput(_ref) {
|
|
|
2262
2261
|
textAnswer = _ref.textAnswer,
|
|
2263
2262
|
handleTextAnswer = _ref.handleTextAnswer;
|
|
2264
2263
|
|
|
2265
|
-
return React__default[
|
|
2264
|
+
return React__default['default'].createElement(
|
|
2266
2265
|
'div',
|
|
2267
2266
|
{
|
|
2268
2267
|
className: 'textInputDiv'
|
|
2269
2268
|
},
|
|
2270
|
-
React__default[
|
|
2269
|
+
React__default['default'].createElement(
|
|
2271
2270
|
'h2',
|
|
2272
2271
|
{
|
|
2273
2272
|
className: 'textInputQuestion'
|
|
2274
2273
|
},
|
|
2275
2274
|
textInputQuestion
|
|
2276
2275
|
),
|
|
2277
|
-
React__default[
|
|
2276
|
+
React__default['default'].createElement(Form__default['default'].Control, {
|
|
2278
2277
|
type: 'text',
|
|
2279
2278
|
className: 'textInput',
|
|
2280
2279
|
value: textAnswer,
|
|
@@ -2384,32 +2383,32 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2384
2383
|
var pollArray = [];
|
|
2385
2384
|
pollItems.forEach(function (item, ind) {
|
|
2386
2385
|
if (item.format === 'multiChoice') {
|
|
2387
|
-
pollArray.push(React__default[
|
|
2386
|
+
pollArray.push(React__default['default'].createElement(PopupMultiChoice, { question: item.question, choices: item.choices, handlePollAnswer: handlePollAnswer, key: ind }));
|
|
2388
2387
|
}
|
|
2389
2388
|
if (item.format === 'textInput') {
|
|
2390
|
-
pollArray.push(React__default[
|
|
2389
|
+
pollArray.push(React__default['default'].createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2391
2390
|
}
|
|
2392
2391
|
});
|
|
2393
2392
|
|
|
2394
|
-
return React__default[
|
|
2393
|
+
return React__default['default'].createElement(
|
|
2395
2394
|
'div',
|
|
2396
2395
|
{ className: 'modalDiv', id: 'modalDiv' },
|
|
2397
|
-
React__default[
|
|
2398
|
-
Modal__default[
|
|
2396
|
+
React__default['default'].createElement(
|
|
2397
|
+
Modal__default['default'].Dialog,
|
|
2399
2398
|
null,
|
|
2400
|
-
React__default[
|
|
2401
|
-
Modal__default[
|
|
2399
|
+
React__default['default'].createElement(
|
|
2400
|
+
Modal__default['default'].Body,
|
|
2402
2401
|
null,
|
|
2403
|
-
React__default[
|
|
2404
|
-
Form__default[
|
|
2402
|
+
React__default['default'].createElement(
|
|
2403
|
+
Form__default['default'],
|
|
2405
2404
|
{ onSubmit: handleSubmit, className: 'modalForm' },
|
|
2406
2405
|
pollArray,
|
|
2407
|
-
textInputRender && !multiChoiceRender ? React__default[
|
|
2408
|
-
Button__default[
|
|
2406
|
+
textInputRender && !multiChoiceRender ? React__default['default'].createElement(
|
|
2407
|
+
Button__default['default'],
|
|
2409
2408
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !textAnswer },
|
|
2410
2409
|
'Submit'
|
|
2411
|
-
) : React__default[
|
|
2412
|
-
Button__default[
|
|
2410
|
+
) : React__default['default'].createElement(
|
|
2411
|
+
Button__default['default'],
|
|
2413
2412
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
2414
2413
|
'Submit'
|
|
2415
2414
|
)
|
|
@@ -2572,10 +2571,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2572
2571
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2573
2572
|
};
|
|
2574
2573
|
|
|
2575
|
-
return React__default[
|
|
2574
|
+
return React__default['default'].createElement(
|
|
2576
2575
|
'div',
|
|
2577
2576
|
null,
|
|
2578
|
-
isPollingTime ? React__default[
|
|
2577
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2579
2578
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2580
2579
|
, { pollItems: pollItems
|
|
2581
2580
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2589,7 +2588,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2589
2588
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2590
2589
|
, multiChoiceRender: multiChoiceRender
|
|
2591
2590
|
}) : null,
|
|
2592
|
-
vidLoaded && React__default[
|
|
2591
|
+
vidLoaded && React__default['default'].createElement(
|
|
2593
2592
|
'video',
|
|
2594
2593
|
{
|
|
2595
2594
|
poster: thumbnail || '',
|
|
@@ -2607,7 +2606,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2607
2606
|
onPlay: function onPlay(e) {
|
|
2608
2607
|
return handleOnPlay(e);
|
|
2609
2608
|
} },
|
|
2610
|
-
React__default[
|
|
2609
|
+
React__default['default'].createElement('source', { src: url, type: 'video/mp4' }),
|
|
2611
2610
|
'Your browser does not support the video tag.'
|
|
2612
2611
|
)
|
|
2613
2612
|
);
|
|
@@ -2858,10 +2857,10 @@ var Video = function Video(_ref) {
|
|
|
2858
2857
|
|
|
2859
2858
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2860
2859
|
if (videoID) {
|
|
2861
|
-
return React__default[
|
|
2860
|
+
return React__default['default'].createElement(
|
|
2862
2861
|
'div',
|
|
2863
2862
|
null,
|
|
2864
|
-
isPollingTime ? React__default[
|
|
2863
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2865
2864
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2866
2865
|
, { pollItems: pollItems
|
|
2867
2866
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2875,7 +2874,7 @@ var Video = function Video(_ref) {
|
|
|
2875
2874
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2876
2875
|
, multiChoiceRender: multiChoiceRender
|
|
2877
2876
|
}) : null,
|
|
2878
|
-
React__default[
|
|
2877
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2879
2878
|
onSuccess: onVideoSuccess,
|
|
2880
2879
|
onFailure: onVideoFailure,
|
|
2881
2880
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2883,17 +2882,17 @@ var Video = function Video(_ref) {
|
|
|
2883
2882
|
playerId: accountIDs.brightcove.playerId,
|
|
2884
2883
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2885
2884
|
}),
|
|
2886
|
-
React__default[
|
|
2885
|
+
React__default['default'].createElement(
|
|
2887
2886
|
'style',
|
|
2888
2887
|
{ jsx: 'true' },
|
|
2889
2888
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2890
2889
|
)
|
|
2891
2890
|
);
|
|
2892
2891
|
} else if (playlistID) {
|
|
2893
|
-
return React__default[
|
|
2892
|
+
return React__default['default'].createElement(
|
|
2894
2893
|
'div',
|
|
2895
2894
|
null,
|
|
2896
|
-
isPollingTime ? React__default[
|
|
2895
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2897
2896
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2898
2897
|
, { pollItems: pollItems
|
|
2899
2898
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2907,7 +2906,7 @@ var Video = function Video(_ref) {
|
|
|
2907
2906
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2908
2907
|
, multiChoiceRender: multiChoiceRender
|
|
2909
2908
|
}) : null,
|
|
2910
|
-
React__default[
|
|
2909
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2911
2910
|
accountId: accountIDs.brightcove.accountId,
|
|
2912
2911
|
playlistId: playlistID,
|
|
2913
2912
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2915,18 +2914,18 @@ var Video = function Video(_ref) {
|
|
|
2915
2914
|
onFailure: onVideoFailure,
|
|
2916
2915
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2917
2916
|
}),
|
|
2918
|
-
React__default[
|
|
2917
|
+
React__default['default'].createElement(
|
|
2919
2918
|
'style',
|
|
2920
2919
|
{ jsx: 'true' },
|
|
2921
2920
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2922
2921
|
)
|
|
2923
2922
|
);
|
|
2924
2923
|
} else if (experienceID) {
|
|
2925
|
-
return React__default[
|
|
2924
|
+
return React__default['default'].createElement(
|
|
2926
2925
|
'div',
|
|
2927
2926
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2928
|
-
React__default[
|
|
2929
|
-
isPollingTime ? React__default[
|
|
2927
|
+
React__default['default'].createElement('div', { 'data-experience': experienceID }),
|
|
2928
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2930
2929
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2931
2930
|
, { pollItems: pollItems
|
|
2932
2931
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2946,10 +2945,10 @@ var Video = function Video(_ref) {
|
|
|
2946
2945
|
}
|
|
2947
2946
|
|
|
2948
2947
|
if (source === 'mp4') {
|
|
2949
|
-
return React__default[
|
|
2948
|
+
return React__default['default'].createElement(
|
|
2950
2949
|
'div',
|
|
2951
2950
|
null,
|
|
2952
|
-
React__default[
|
|
2951
|
+
React__default['default'].createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true, polls: polls, modalTimes: modalTimes, targetingUrl: targeting.document_url[0] })
|
|
2953
2952
|
);
|
|
2954
2953
|
}
|
|
2955
2954
|
|
|
@@ -2964,7 +2963,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2964
2963
|
});
|
|
2965
2964
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2966
2965
|
|
|
2967
|
-
var _propTypes = _interopRequireDefault(PropTypes__default[
|
|
2966
|
+
var _propTypes = _interopRequireDefault(PropTypes__default['default']);
|
|
2968
2967
|
|
|
2969
2968
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2970
2969
|
|
|
@@ -3554,7 +3553,7 @@ function isEqual(a, b) {
|
|
|
3554
3553
|
return true;
|
|
3555
3554
|
}
|
|
3556
3555
|
|
|
3557
|
-
if ((0, React__default[
|
|
3556
|
+
if ((0, React__default['default'].isValidElement)(a) && (0, React__default['default'].isValidElement)(b)) {
|
|
3558
3557
|
return true;
|
|
3559
3558
|
}
|
|
3560
3559
|
|
|
@@ -3616,7 +3615,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3616
3615
|
});
|
|
3617
3616
|
exports["default"] = void 0;
|
|
3618
3617
|
|
|
3619
|
-
var _react = _interopRequireWildcard(React__default[
|
|
3618
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
3620
3619
|
|
|
3621
3620
|
|
|
3622
3621
|
|
|
@@ -4026,7 +4025,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4026
4025
|
});
|
|
4027
4026
|
exports["default"] = createSinglePlayer;
|
|
4028
4027
|
|
|
4029
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4028
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4030
4029
|
|
|
4031
4030
|
|
|
4032
4031
|
|
|
@@ -4184,7 +4183,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4184
4183
|
});
|
|
4185
4184
|
exports["default"] = exports.YouTube = void 0;
|
|
4186
4185
|
|
|
4187
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4186
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4188
4187
|
|
|
4189
4188
|
|
|
4190
4189
|
|
|
@@ -4493,7 +4492,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4493
4492
|
});
|
|
4494
4493
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4495
4494
|
|
|
4496
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4495
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4497
4496
|
|
|
4498
4497
|
|
|
4499
4498
|
|
|
@@ -4710,7 +4709,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4710
4709
|
});
|
|
4711
4710
|
exports["default"] = exports.Vimeo = void 0;
|
|
4712
4711
|
|
|
4713
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4712
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4714
4713
|
|
|
4715
4714
|
|
|
4716
4715
|
|
|
@@ -4966,7 +4965,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4966
4965
|
});
|
|
4967
4966
|
exports["default"] = exports.Facebook = void 0;
|
|
4968
4967
|
|
|
4969
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4968
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4970
4969
|
|
|
4971
4970
|
|
|
4972
4971
|
|
|
@@ -5178,7 +5177,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5178
5177
|
});
|
|
5179
5178
|
exports["default"] = exports.Streamable = void 0;
|
|
5180
5179
|
|
|
5181
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5180
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5182
5181
|
|
|
5183
5182
|
|
|
5184
5183
|
|
|
@@ -5389,7 +5388,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5389
5388
|
});
|
|
5390
5389
|
exports["default"] = exports.Wistia = void 0;
|
|
5391
5390
|
|
|
5392
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5391
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5393
5392
|
|
|
5394
5393
|
|
|
5395
5394
|
|
|
@@ -5632,7 +5631,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5632
5631
|
});
|
|
5633
5632
|
exports["default"] = exports.Twitch = void 0;
|
|
5634
5633
|
|
|
5635
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5634
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5636
5635
|
|
|
5637
5636
|
|
|
5638
5637
|
|
|
@@ -5848,7 +5847,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5848
5847
|
});
|
|
5849
5848
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5850
5849
|
|
|
5851
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5850
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5852
5851
|
|
|
5853
5852
|
|
|
5854
5853
|
|
|
@@ -6084,7 +6083,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6084
6083
|
});
|
|
6085
6084
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6086
6085
|
|
|
6087
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6086
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6088
6087
|
|
|
6089
6088
|
|
|
6090
6089
|
|
|
@@ -6283,7 +6282,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6283
6282
|
});
|
|
6284
6283
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6285
6284
|
|
|
6286
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6285
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6287
6286
|
|
|
6288
6287
|
|
|
6289
6288
|
|
|
@@ -6850,7 +6849,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6850
6849
|
});
|
|
6851
6850
|
exports["default"] = void 0;
|
|
6852
6851
|
|
|
6853
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6852
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6854
6853
|
|
|
6855
6854
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6856
6855
|
|
|
@@ -7029,7 +7028,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7029
7028
|
});
|
|
7030
7029
|
exports["default"] = renderPreloadPlayers;
|
|
7031
7030
|
|
|
7032
|
-
var _react = _interopRequireDefault(React__default[
|
|
7031
|
+
var _react = _interopRequireDefault(React__default['default']);
|
|
7033
7032
|
|
|
7034
7033
|
var _Player = _interopRequireDefault(Player_1);
|
|
7035
7034
|
|
|
@@ -7168,7 +7167,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7168
7167
|
});
|
|
7169
7168
|
exports["default"] = void 0;
|
|
7170
7169
|
|
|
7171
|
-
var _react = _interopRequireWildcard(React__default[
|
|
7170
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
7172
7171
|
|
|
7173
7172
|
|
|
7174
7173
|
|
|
@@ -7484,7 +7483,7 @@ var Audio = function Audio(_ref) {
|
|
|
7484
7483
|
var audioSource = node && node.uploadAudio ? node.uploadAudio.asset.url : '';
|
|
7485
7484
|
var reportPlay = function reportPlay() {
|
|
7486
7485
|
console.log('Reporting audio playback play to GA');
|
|
7487
|
-
ReactGA__default[
|
|
7486
|
+
ReactGA__default['default'].event({
|
|
7488
7487
|
category: 'User',
|
|
7489
7488
|
action: 'Audio Play',
|
|
7490
7489
|
label: 'Play: ' + audioSource
|
|
@@ -7494,7 +7493,7 @@ var Audio = function Audio(_ref) {
|
|
|
7494
7493
|
};
|
|
7495
7494
|
var reportPause = function reportPause() {
|
|
7496
7495
|
console.log('Reporting audio playback pause to GA');
|
|
7497
|
-
ReactGA__default[
|
|
7496
|
+
ReactGA__default['default'].event({
|
|
7498
7497
|
category: 'User',
|
|
7499
7498
|
action: 'Audio Pause',
|
|
7500
7499
|
label: 'Pause: ' + audioSource
|
|
@@ -7504,7 +7503,7 @@ var Audio = function Audio(_ref) {
|
|
|
7504
7503
|
};
|
|
7505
7504
|
var reportEnd = function reportEnd() {
|
|
7506
7505
|
console.log('Reporting audio playback end to GA');
|
|
7507
|
-
ReactGA__default[
|
|
7506
|
+
ReactGA__default['default'].event({
|
|
7508
7507
|
category: 'User',
|
|
7509
7508
|
action: 'Audio Playback End',
|
|
7510
7509
|
label: 'Playback End: ' + audioSource
|
|
@@ -7513,10 +7512,10 @@ var Audio = function Audio(_ref) {
|
|
|
7513
7512
|
}));
|
|
7514
7513
|
};
|
|
7515
7514
|
if (node.uploadAudio) {
|
|
7516
|
-
return React__default[
|
|
7515
|
+
return React__default['default'].createElement(
|
|
7517
7516
|
'div',
|
|
7518
7517
|
{ className: 'audio d-block text-center mb-3' },
|
|
7519
|
-
React__default[
|
|
7518
|
+
React__default['default'].createElement(
|
|
7520
7519
|
'audio',
|
|
7521
7520
|
{
|
|
7522
7521
|
controls: true, controlsList: 'nodownload',
|
|
@@ -7525,14 +7524,14 @@ var Audio = function Audio(_ref) {
|
|
|
7525
7524
|
onPause: reportPause,
|
|
7526
7525
|
onEnded: reportEnd
|
|
7527
7526
|
},
|
|
7528
|
-
React__default[
|
|
7529
|
-
React__default[
|
|
7527
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7528
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7530
7529
|
'Your browser does not support the audio element.'
|
|
7531
7530
|
),
|
|
7532
|
-
node.caption && React__default[
|
|
7531
|
+
node.caption && React__default['default'].createElement(
|
|
7533
7532
|
'p',
|
|
7534
7533
|
{ style: { fontSize: '.9rem' } },
|
|
7535
|
-
React__default[
|
|
7534
|
+
React__default['default'].createElement(
|
|
7536
7535
|
'em',
|
|
7537
7536
|
null,
|
|
7538
7537
|
node.caption
|
|
@@ -7542,15 +7541,15 @@ var Audio = function Audio(_ref) {
|
|
|
7542
7541
|
} else if (node.audioFilePth) {
|
|
7543
7542
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7544
7543
|
if (hostname === 'embeds.audioboom.com') {
|
|
7545
|
-
return React__default[
|
|
7544
|
+
return React__default['default'].createElement(
|
|
7546
7545
|
'div',
|
|
7547
7546
|
null,
|
|
7548
|
-
React__default[
|
|
7547
|
+
React__default['default'].createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7549
7548
|
' ',
|
|
7550
|
-
node.caption && React__default[
|
|
7549
|
+
node.caption && React__default['default'].createElement(
|
|
7551
7550
|
'p',
|
|
7552
7551
|
{ style: { fontSize: '.9rem' } },
|
|
7553
|
-
React__default[
|
|
7552
|
+
React__default['default'].createElement(
|
|
7554
7553
|
'em',
|
|
7555
7554
|
null,
|
|
7556
7555
|
node.caption
|
|
@@ -7558,10 +7557,10 @@ var Audio = function Audio(_ref) {
|
|
|
7558
7557
|
)
|
|
7559
7558
|
);
|
|
7560
7559
|
}
|
|
7561
|
-
return React__default[
|
|
7560
|
+
return React__default['default'].createElement(
|
|
7562
7561
|
'div',
|
|
7563
7562
|
{ className: 'audio' },
|
|
7564
|
-
React__default[
|
|
7563
|
+
React__default['default'].createElement(ReactPlayer, { url: node.audioFilePth,
|
|
7565
7564
|
onPlay: reportPlay,
|
|
7566
7565
|
onPause: reportPause,
|
|
7567
7566
|
onEnded: reportEnd,
|
|
@@ -7569,10 +7568,10 @@ var Audio = function Audio(_ref) {
|
|
|
7569
7568
|
width: '100%',
|
|
7570
7569
|
height: '100%'
|
|
7571
7570
|
}),
|
|
7572
|
-
node.caption && React__default[
|
|
7571
|
+
node.caption && React__default['default'].createElement(
|
|
7573
7572
|
'p',
|
|
7574
7573
|
{ style: { fontSize: '.9rem' } },
|
|
7575
|
-
React__default[
|
|
7574
|
+
React__default['default'].createElement(
|
|
7576
7575
|
'em',
|
|
7577
7576
|
null,
|
|
7578
7577
|
node.caption
|
|
@@ -7591,34 +7590,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7591
7590
|
var showAuthorDetails = arguments[7];
|
|
7592
7591
|
|
|
7593
7592
|
if (authorName && authorURL) {
|
|
7594
|
-
return React__default[
|
|
7593
|
+
return React__default['default'].createElement(
|
|
7595
7594
|
'span',
|
|
7596
7595
|
null,
|
|
7597
|
-
React__default[
|
|
7596
|
+
React__default['default'].createElement(
|
|
7598
7597
|
'a',
|
|
7599
7598
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7600
7599
|
authorName
|
|
7601
7600
|
),
|
|
7602
|
-
showAuthorDetails && React__default[
|
|
7601
|
+
showAuthorDetails && React__default['default'].createElement(
|
|
7603
7602
|
reactBootstrap.Card,
|
|
7604
7603
|
{ className: 'author-details-card-' + index },
|
|
7605
|
-
React__default[
|
|
7604
|
+
React__default['default'].createElement(
|
|
7606
7605
|
reactBootstrap.Row,
|
|
7607
7606
|
null,
|
|
7608
|
-
profileImage && React__default[
|
|
7607
|
+
profileImage && React__default['default'].createElement(
|
|
7609
7608
|
reactBootstrap.Col,
|
|
7610
7609
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7611
|
-
React__default[
|
|
7610
|
+
React__default['default'].createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7612
7611
|
),
|
|
7613
|
-
React__default[
|
|
7612
|
+
React__default['default'].createElement(
|
|
7614
7613
|
reactBootstrap.Col,
|
|
7615
7614
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7616
|
-
React__default[
|
|
7615
|
+
React__default['default'].createElement(
|
|
7617
7616
|
'div',
|
|
7618
7617
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7619
7618
|
authorName
|
|
7620
7619
|
),
|
|
7621
|
-
React__default[
|
|
7620
|
+
React__default['default'].createElement(
|
|
7622
7621
|
'p',
|
|
7623
7622
|
null,
|
|
7624
7623
|
biography
|
|
@@ -7626,7 +7625,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7626
7625
|
)
|
|
7627
7626
|
)
|
|
7628
7627
|
),
|
|
7629
|
-
React__default[
|
|
7628
|
+
React__default['default'].createElement(
|
|
7630
7629
|
'style',
|
|
7631
7630
|
{ jsx: 'true' },
|
|
7632
7631
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7634,7 +7633,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7634
7633
|
length !== index + 1 && ', '
|
|
7635
7634
|
);
|
|
7636
7635
|
} else if (authorName) {
|
|
7637
|
-
return React__default[
|
|
7636
|
+
return React__default['default'].createElement(
|
|
7638
7637
|
'span',
|
|
7639
7638
|
{ key: index },
|
|
7640
7639
|
authorName,
|
|
@@ -7906,44 +7905,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7906
7905
|
}
|
|
7907
7906
|
};
|
|
7908
7907
|
|
|
7909
|
-
return React__default[
|
|
7908
|
+
return React__default['default'].createElement(
|
|
7910
7909
|
'div',
|
|
7911
7910
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7912
|
-
React__default[
|
|
7911
|
+
React__default['default'].createElement(
|
|
7913
7912
|
'div',
|
|
7914
7913
|
{ className: 'mt-2 mb-5' },
|
|
7915
|
-
series && React__default[
|
|
7914
|
+
series && React__default['default'].createElement(
|
|
7916
7915
|
'div',
|
|
7917
7916
|
{ style: { fontSize: '0.9rem' } },
|
|
7918
7917
|
article.title,
|
|
7919
7918
|
' - Episode ',
|
|
7920
7919
|
series
|
|
7921
7920
|
),
|
|
7922
|
-
Videos[series - 1] && React__default[
|
|
7921
|
+
Videos[series - 1] && React__default['default'].createElement(
|
|
7923
7922
|
'h1',
|
|
7924
7923
|
{ className: 'mb-3' },
|
|
7925
7924
|
Videos[series - 1].title
|
|
7926
7925
|
),
|
|
7927
|
-
React__default[
|
|
7926
|
+
React__default['default'].createElement(
|
|
7928
7927
|
'div',
|
|
7929
7928
|
null,
|
|
7930
7929
|
moment.moment(article.published).format('LL')
|
|
7931
7930
|
),
|
|
7932
|
-
React__default[
|
|
7931
|
+
React__default['default'].createElement(
|
|
7933
7932
|
'div',
|
|
7934
7933
|
{ className: 'mb-3' },
|
|
7935
7934
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7936
|
-
return React__default[
|
|
7935
|
+
return React__default['default'].createElement(
|
|
7937
7936
|
'span',
|
|
7938
7937
|
{ key: index },
|
|
7939
7938
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7940
7939
|
);
|
|
7941
7940
|
})
|
|
7942
7941
|
),
|
|
7943
|
-
React__default[
|
|
7942
|
+
React__default['default'].createElement(
|
|
7944
7943
|
'p',
|
|
7945
7944
|
null,
|
|
7946
|
-
React__default[
|
|
7945
|
+
React__default['default'].createElement(SocialShare, {
|
|
7947
7946
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7948
7947
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7949
7948
|
shareVia: meta.shareVia,
|
|
@@ -7958,20 +7957,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7958
7957
|
hideFacebook: meta.hideFBShare
|
|
7959
7958
|
})
|
|
7960
7959
|
),
|
|
7961
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default[
|
|
7960
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default['default'].createElement(
|
|
7962
7961
|
'p',
|
|
7963
7962
|
{ className: 'mb-3' },
|
|
7964
|
-
React__default[
|
|
7963
|
+
React__default['default'].createElement(
|
|
7965
7964
|
'em',
|
|
7966
7965
|
null,
|
|
7967
7966
|
Videos[series - 1].intro
|
|
7968
7967
|
)
|
|
7969
7968
|
)
|
|
7970
7969
|
),
|
|
7971
|
-
React__default[
|
|
7970
|
+
React__default['default'].createElement(
|
|
7972
7971
|
'div',
|
|
7973
7972
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7974
|
-
vidUrl && vidType == 'youtube' && React__default[
|
|
7973
|
+
vidUrl && vidType == 'youtube' && React__default['default'].createElement(YouTube, {
|
|
7975
7974
|
className: 'fluid-iframe',
|
|
7976
7975
|
videoId: index$1.getYoutubeId(vidUrl),
|
|
7977
7976
|
opts: opts,
|
|
@@ -7982,10 +7981,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7982
7981
|
return handleOnEnd(e);
|
|
7983
7982
|
}
|
|
7984
7983
|
}),
|
|
7985
|
-
vidUrl && vidType == 'mp4' && React__default[
|
|
7986
|
-
vidUrl && vidType == 'brightcove' && React__default[
|
|
7987
|
-
React__default[
|
|
7988
|
-
series && React__default[
|
|
7984
|
+
vidUrl && vidType == 'mp4' && React__default['default'].createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7985
|
+
vidUrl && vidType == 'brightcove' && React__default['default'].createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7986
|
+
React__default['default'].createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7987
|
+
series && React__default['default'].createElement(
|
|
7989
7988
|
'div',
|
|
7990
7989
|
{
|
|
7991
7990
|
className: 'vid-series',
|
|
@@ -7995,10 +7994,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7995
7994
|
maxHeight: '100%',
|
|
7996
7995
|
paddingBottom: '0'
|
|
7997
7996
|
} },
|
|
7998
|
-
React__default[
|
|
7997
|
+
React__default['default'].createElement(
|
|
7999
7998
|
'p',
|
|
8000
7999
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
8001
|
-
React__default[
|
|
8000
|
+
React__default['default'].createElement(
|
|
8002
8001
|
'b',
|
|
8003
8002
|
{ style: { fontSize: '1.25em' } },
|
|
8004
8003
|
'Now Playing:'
|
|
@@ -8006,16 +8005,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8006
8005
|
' ',
|
|
8007
8006
|
seriesData[series ? series - 1 : 0].title
|
|
8008
8007
|
),
|
|
8009
|
-
vidUrl && React__default[
|
|
8008
|
+
vidUrl && React__default['default'].createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
8010
8009
|
)
|
|
8011
8010
|
),
|
|
8012
|
-
React__default[
|
|
8013
|
-
React__default[
|
|
8011
|
+
React__default['default'].createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
8012
|
+
React__default['default'].createElement(
|
|
8014
8013
|
'div',
|
|
8015
8014
|
{ className: 'vid-text' },
|
|
8016
|
-
Videos[series - 1] && Videos[series - 1].text && React__default[
|
|
8015
|
+
Videos[series - 1] && Videos[series - 1].text && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
8017
8016
|
),
|
|
8018
|
-
React__default[
|
|
8017
|
+
React__default['default'].createElement(
|
|
8019
8018
|
'style',
|
|
8020
8019
|
{ jsx: 'true' },
|
|
8021
8020
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8068,67 +8067,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8068
8067
|
return acc;
|
|
8069
8068
|
}
|
|
8070
8069
|
}, 0);
|
|
8071
|
-
return React__default[
|
|
8072
|
-
React__default[
|
|
8070
|
+
return React__default['default'].createElement(
|
|
8071
|
+
React__default['default'].Fragment,
|
|
8073
8072
|
null,
|
|
8074
|
-
question && React__default[
|
|
8073
|
+
question && React__default['default'].createElement(
|
|
8075
8074
|
'p',
|
|
8076
8075
|
{ className: 'font-weight-bold' },
|
|
8077
8076
|
question
|
|
8078
8077
|
),
|
|
8079
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8078
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8080
8079
|
'form',
|
|
8081
8080
|
{ onSubmit: function onSubmit(e) {
|
|
8082
8081
|
return onSubmitPoll(e);
|
|
8083
8082
|
} },
|
|
8084
8083
|
choices && choices.map(function (choice) {
|
|
8085
|
-
return React__default[
|
|
8084
|
+
return React__default['default'].createElement(
|
|
8086
8085
|
'div',
|
|
8087
8086
|
{ key: choice._key },
|
|
8088
|
-
React__default[
|
|
8087
|
+
React__default['default'].createElement(
|
|
8089
8088
|
'label',
|
|
8090
8089
|
{ className: 'pl-2' },
|
|
8091
|
-
React__default[
|
|
8090
|
+
React__default['default'].createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8092
8091
|
return setSelectedChoice(e.target.value);
|
|
8093
8092
|
} }),
|
|
8094
8093
|
' ' + choice.choiceText
|
|
8095
8094
|
)
|
|
8096
8095
|
);
|
|
8097
8096
|
}),
|
|
8098
|
-
React__default[
|
|
8097
|
+
React__default['default'].createElement(
|
|
8099
8098
|
reactBootstrap.Button,
|
|
8100
8099
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8101
8100
|
'Vote'
|
|
8102
8101
|
)
|
|
8103
8102
|
),
|
|
8104
|
-
React__default[
|
|
8103
|
+
React__default['default'].createElement(
|
|
8105
8104
|
'div',
|
|
8106
8105
|
{ className: 'progress-container' },
|
|
8107
8106
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8108
8107
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8109
|
-
return React__default[
|
|
8108
|
+
return React__default['default'].createElement(
|
|
8110
8109
|
'div',
|
|
8111
8110
|
{ key: choice._key, className: 'mb-3' },
|
|
8112
|
-
React__default[
|
|
8111
|
+
React__default['default'].createElement(
|
|
8113
8112
|
'div',
|
|
8114
8113
|
{ className: 'correct-answer' },
|
|
8115
|
-
React__default[
|
|
8114
|
+
React__default['default'].createElement(
|
|
8116
8115
|
'div',
|
|
8117
8116
|
null,
|
|
8118
8117
|
choice.choiceText
|
|
8119
8118
|
),
|
|
8120
|
-
choice.choiceAnswer === true && React__default[
|
|
8119
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8121
8120
|
'div',
|
|
8122
8121
|
null,
|
|
8123
|
-
React__default[
|
|
8122
|
+
React__default['default'].createElement(
|
|
8124
8123
|
'span',
|
|
8125
8124
|
{ style: { color: 'limegreen' } },
|
|
8126
8125
|
'Correct!'
|
|
8127
8126
|
)
|
|
8128
8127
|
)
|
|
8129
8128
|
),
|
|
8130
|
-
React__default[
|
|
8131
|
-
React__default[
|
|
8129
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8130
|
+
React__default['default'].createElement(
|
|
8132
8131
|
'span',
|
|
8133
8132
|
{ className: 'float-right' },
|
|
8134
8133
|
percentage,
|
|
@@ -8139,14 +8138,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8139
8138
|
);
|
|
8140
8139
|
})
|
|
8141
8140
|
),
|
|
8142
|
-
showAnswer && React__default[
|
|
8141
|
+
showAnswer && React__default['default'].createElement(
|
|
8143
8142
|
'h4',
|
|
8144
8143
|
{ className: 'text-center small p-3' },
|
|
8145
8144
|
'Total Votes: ',
|
|
8146
8145
|
choicesTotalCount
|
|
8147
8146
|
),
|
|
8148
|
-
showAnswer && response && React__default[
|
|
8149
|
-
React__default[
|
|
8147
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8148
|
+
React__default['default'].createElement(
|
|
8150
8149
|
'style',
|
|
8151
8150
|
{ jsx: 'true' },
|
|
8152
8151
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8245,67 +8244,67 @@ var Poll = function Poll(_ref) {
|
|
|
8245
8244
|
return acc;
|
|
8246
8245
|
}
|
|
8247
8246
|
}, 0);
|
|
8248
|
-
return React__default[
|
|
8249
|
-
React__default[
|
|
8247
|
+
return React__default['default'].createElement(
|
|
8248
|
+
React__default['default'].Fragment,
|
|
8250
8249
|
null,
|
|
8251
|
-
question && React__default[
|
|
8250
|
+
question && React__default['default'].createElement(
|
|
8252
8251
|
'p',
|
|
8253
8252
|
{ className: 'font-weight-bold' },
|
|
8254
8253
|
question
|
|
8255
8254
|
),
|
|
8256
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8255
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8257
8256
|
'form',
|
|
8258
8257
|
{ onSubmit: function onSubmit(e) {
|
|
8259
8258
|
return onSubmitPoll(e);
|
|
8260
8259
|
} },
|
|
8261
8260
|
choices && choices.map(function (choice) {
|
|
8262
|
-
return React__default[
|
|
8261
|
+
return React__default['default'].createElement(
|
|
8263
8262
|
'div',
|
|
8264
8263
|
{ key: choice._key },
|
|
8265
|
-
React__default[
|
|
8264
|
+
React__default['default'].createElement(
|
|
8266
8265
|
'label',
|
|
8267
8266
|
{ className: 'pl-2' },
|
|
8268
|
-
React__default[
|
|
8267
|
+
React__default['default'].createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8269
8268
|
return setSelectedChoice(e.target.value);
|
|
8270
8269
|
} }),
|
|
8271
8270
|
' ' + choice.choiceText
|
|
8272
8271
|
)
|
|
8273
8272
|
);
|
|
8274
8273
|
}),
|
|
8275
|
-
React__default[
|
|
8274
|
+
React__default['default'].createElement(
|
|
8276
8275
|
reactBootstrap.Button,
|
|
8277
8276
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8278
8277
|
'Vote'
|
|
8279
8278
|
)
|
|
8280
8279
|
),
|
|
8281
|
-
React__default[
|
|
8280
|
+
React__default['default'].createElement(
|
|
8282
8281
|
'div',
|
|
8283
8282
|
{ className: 'progress-container' },
|
|
8284
8283
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8285
8284
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8286
|
-
return React__default[
|
|
8285
|
+
return React__default['default'].createElement(
|
|
8287
8286
|
'div',
|
|
8288
8287
|
{ key: choice._key, className: 'mb-3' },
|
|
8289
|
-
React__default[
|
|
8288
|
+
React__default['default'].createElement(
|
|
8290
8289
|
'div',
|
|
8291
8290
|
{ className: 'correct-answer' },
|
|
8292
|
-
React__default[
|
|
8291
|
+
React__default['default'].createElement(
|
|
8293
8292
|
'div',
|
|
8294
8293
|
null,
|
|
8295
8294
|
choice.choiceText
|
|
8296
8295
|
),
|
|
8297
|
-
choice.choiceAnswer === true && React__default[
|
|
8296
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8298
8297
|
'div',
|
|
8299
8298
|
null,
|
|
8300
|
-
React__default[
|
|
8299
|
+
React__default['default'].createElement(
|
|
8301
8300
|
'span',
|
|
8302
8301
|
{ style: { color: 'limegreen' } },
|
|
8303
8302
|
'Correct!'
|
|
8304
8303
|
)
|
|
8305
8304
|
)
|
|
8306
8305
|
),
|
|
8307
|
-
React__default[
|
|
8308
|
-
React__default[
|
|
8306
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8307
|
+
React__default['default'].createElement(
|
|
8309
8308
|
'span',
|
|
8310
8309
|
{ className: 'float-right' },
|
|
8311
8310
|
percentage,
|
|
@@ -8316,14 +8315,14 @@ var Poll = function Poll(_ref) {
|
|
|
8316
8315
|
);
|
|
8317
8316
|
})
|
|
8318
8317
|
),
|
|
8319
|
-
showAnswer && React__default[
|
|
8318
|
+
showAnswer && React__default['default'].createElement(
|
|
8320
8319
|
'h4',
|
|
8321
8320
|
{ className: 'text-center small p-3' },
|
|
8322
8321
|
'Total Votes: ',
|
|
8323
8322
|
choicesTotalCount
|
|
8324
8323
|
),
|
|
8325
|
-
showAnswer && response && React__default[
|
|
8326
|
-
React__default[
|
|
8324
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8325
|
+
React__default['default'].createElement(
|
|
8327
8326
|
'style',
|
|
8328
8327
|
{ jsx: 'true' },
|
|
8329
8328
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8467,34 +8466,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
8467
8466
|
};
|
|
8468
8467
|
|
|
8469
8468
|
var renderPagination = function renderPagination() {
|
|
8470
|
-
return React__default[
|
|
8471
|
-
Pagination__default[
|
|
8469
|
+
return React__default['default'].createElement(
|
|
8470
|
+
Pagination__default['default'],
|
|
8472
8471
|
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
8473
|
-
React__default[
|
|
8472
|
+
React__default['default'].createElement(Pagination__default['default'].First, { onClick: function onClick() {
|
|
8474
8473
|
return changePage('first');
|
|
8475
8474
|
}, disabled: currentPage === 1 }),
|
|
8476
|
-
React__default[
|
|
8475
|
+
React__default['default'].createElement(Pagination__default['default'].Prev, { onClick: function onClick() {
|
|
8477
8476
|
return changePage('prev');
|
|
8478
8477
|
}, disabled: currentPage === 1 }),
|
|
8479
|
-
React__default[
|
|
8478
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
8480
8479
|
return renderNewPages('prev');
|
|
8481
8480
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8482
8481
|
pages.map(function (page) {
|
|
8483
|
-
return React__default[
|
|
8484
|
-
Pagination__default[
|
|
8482
|
+
return React__default['default'].createElement(
|
|
8483
|
+
Pagination__default['default'].Item,
|
|
8485
8484
|
{ key: page, active: page === parseInt(currentPage), onClick: function onClick() {
|
|
8486
8485
|
return changePage(page);
|
|
8487
8486
|
} },
|
|
8488
8487
|
page
|
|
8489
8488
|
);
|
|
8490
8489
|
}),
|
|
8491
|
-
React__default[
|
|
8490
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
8492
8491
|
return renderNewPages('next');
|
|
8493
8492
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8494
|
-
React__default[
|
|
8493
|
+
React__default['default'].createElement(Pagination__default['default'].Next, { onClick: function onClick() {
|
|
8495
8494
|
return changePage('next');
|
|
8496
8495
|
}, disabled: currentPage === pageCount }),
|
|
8497
|
-
React__default[
|
|
8496
|
+
React__default['default'].createElement(Pagination__default['default'].Last, { onClick: function onClick() {
|
|
8498
8497
|
return changePage('last');
|
|
8499
8498
|
}, disabled: currentPage === pageCount })
|
|
8500
8499
|
);
|
|
@@ -8605,49 +8604,49 @@ var Quiz = function Quiz(_ref) {
|
|
|
8605
8604
|
}
|
|
8606
8605
|
};
|
|
8607
8606
|
|
|
8608
|
-
return React__default[
|
|
8609
|
-
React__default[
|
|
8607
|
+
return React__default['default'].createElement(
|
|
8608
|
+
React__default['default'].Fragment,
|
|
8610
8609
|
null,
|
|
8611
|
-
quizzes[currentPage - 1] && React__default[
|
|
8612
|
-
React__default[
|
|
8610
|
+
quizzes[currentPage - 1] && React__default['default'].createElement(
|
|
8611
|
+
React__default['default'].Fragment,
|
|
8613
8612
|
null,
|
|
8614
|
-
React__default[
|
|
8615
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default[
|
|
8613
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8614
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default['default'].createElement(
|
|
8616
8615
|
'form',
|
|
8617
8616
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8618
8617
|
return e.preventDefault();
|
|
8619
8618
|
} },
|
|
8620
8619
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8621
|
-
return React__default[
|
|
8620
|
+
return React__default['default'].createElement(
|
|
8622
8621
|
'div',
|
|
8623
8622
|
{ key: answer._key },
|
|
8624
|
-
React__default[
|
|
8623
|
+
React__default['default'].createElement(
|
|
8625
8624
|
'label',
|
|
8626
8625
|
{ className: 'pl-2' },
|
|
8627
|
-
quizzes[currentPage - 1].multiAnswer ? React__default[
|
|
8626
|
+
quizzes[currentPage - 1].multiAnswer ? React__default['default'].createElement('input', { type: 'checkbox', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }) : React__default['default'].createElement('input', { type: 'radio', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }),
|
|
8628
8627
|
' ' + answer.answerText
|
|
8629
8628
|
)
|
|
8630
8629
|
);
|
|
8631
8630
|
})
|
|
8632
8631
|
)
|
|
8633
8632
|
),
|
|
8634
|
-
!showAnswer && React__default[
|
|
8635
|
-
Button__default[
|
|
8633
|
+
!showAnswer && React__default['default'].createElement(
|
|
8634
|
+
Button__default['default'],
|
|
8636
8635
|
{ onClick: function onClick(e) {
|
|
8637
8636
|
return checkAnswers(e);
|
|
8638
8637
|
}, variant: 'info', block: true },
|
|
8639
8638
|
'Please click here for answer'
|
|
8640
8639
|
),
|
|
8641
|
-
quizzes[currentPage - 1] && showAnswer && React__default[
|
|
8642
|
-
React__default[
|
|
8640
|
+
quizzes[currentPage - 1] && showAnswer && React__default['default'].createElement(
|
|
8641
|
+
React__default['default'].Fragment,
|
|
8643
8642
|
null,
|
|
8644
|
-
quizzes[currentPage - 1].answer && React__default[
|
|
8643
|
+
quizzes[currentPage - 1].answer && React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8645
8644
|
),
|
|
8646
|
-
React__default[
|
|
8647
|
-
firstRender && React__default[
|
|
8648
|
-
React__default[
|
|
8645
|
+
React__default['default'].createElement('br', null),
|
|
8646
|
+
firstRender && React__default['default'].createElement(
|
|
8647
|
+
React__default['default'].Fragment,
|
|
8649
8648
|
null,
|
|
8650
|
-
pageCount > 1 && currentPage && React__default[
|
|
8649
|
+
pageCount > 1 && currentPage && React__default['default'].createElement(
|
|
8651
8650
|
'div',
|
|
8652
8651
|
{ className: 'd-flex justify-content-center' },
|
|
8653
8652
|
renderPagination()
|
|
@@ -8659,15 +8658,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8659
8658
|
var Leads = function Leads(_ref) {
|
|
8660
8659
|
var url = _ref.url;
|
|
8661
8660
|
|
|
8662
|
-
return React__default[
|
|
8661
|
+
return React__default['default'].createElement(
|
|
8663
8662
|
'div',
|
|
8664
8663
|
{ className: 'd-block text-center mb-3' },
|
|
8665
|
-
React__default[
|
|
8664
|
+
React__default['default'].createElement(
|
|
8666
8665
|
'style',
|
|
8667
8666
|
{ jsx: 'true' },
|
|
8668
8667
|
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8669
8668
|
),
|
|
8670
|
-
url && React__default[
|
|
8669
|
+
url && React__default['default'].createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8671
8670
|
);
|
|
8672
8671
|
};
|
|
8673
8672
|
|
|
@@ -8709,49 +8708,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8709
8708
|
if (pageview) pageview(href);
|
|
8710
8709
|
};
|
|
8711
8710
|
|
|
8712
|
-
return React__default[
|
|
8711
|
+
return React__default['default'].createElement(
|
|
8713
8712
|
'div',
|
|
8714
8713
|
{ className: 'mt-3 mb-4' },
|
|
8715
|
-
React__default[
|
|
8714
|
+
React__default['default'].createElement(
|
|
8716
8715
|
reactBootstrap.Carousel,
|
|
8717
8716
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8718
8717
|
slides && slides.map(function (slide) {
|
|
8719
8718
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8720
|
-
return React__default[
|
|
8719
|
+
return React__default['default'].createElement(
|
|
8721
8720
|
reactBootstrap.Carousel.Item,
|
|
8722
8721
|
{ key: slide._key },
|
|
8723
|
-
React__default[
|
|
8722
|
+
React__default['default'].createElement(
|
|
8724
8723
|
'a',
|
|
8725
8724
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8726
|
-
React__default[
|
|
8725
|
+
React__default['default'].createElement(
|
|
8727
8726
|
'div',
|
|
8728
8727
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8729
|
-
React__default[
|
|
8728
|
+
React__default['default'].createElement(
|
|
8730
8729
|
'picture',
|
|
8731
8730
|
null,
|
|
8732
|
-
React__default[
|
|
8733
|
-
React__default[
|
|
8734
|
-
React__default[
|
|
8735
|
-
React__default[
|
|
8731
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8732
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8733
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8734
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8736
8735
|
)
|
|
8737
8736
|
)
|
|
8738
8737
|
),
|
|
8739
|
-
React__default[
|
|
8738
|
+
React__default['default'].createElement(
|
|
8740
8739
|
'div',
|
|
8741
8740
|
{ className: 'p-2' },
|
|
8742
|
-
slide.slideshowImage.caption && React__default[
|
|
8741
|
+
slide.slideshowImage.caption && React__default['default'].createElement(
|
|
8743
8742
|
'h3',
|
|
8744
8743
|
{ style: { padding: '0px' } },
|
|
8745
8744
|
slide.slideshowImage.caption
|
|
8746
8745
|
),
|
|
8747
|
-
slide.description && React__default[
|
|
8746
|
+
slide.description && React__default['default'].createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8748
8747
|
)
|
|
8749
8748
|
);
|
|
8750
8749
|
}
|
|
8751
8750
|
return null;
|
|
8752
8751
|
})
|
|
8753
8752
|
),
|
|
8754
|
-
React__default[
|
|
8753
|
+
React__default['default'].createElement(
|
|
8755
8754
|
'style',
|
|
8756
8755
|
{ jsx: 'true' },
|
|
8757
8756
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8770,10 +8769,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8770
8769
|
sizes = _props$node.sizes,
|
|
8771
8770
|
sizeMapping = _props$node.sizeMapping;
|
|
8772
8771
|
|
|
8773
|
-
return React__default[
|
|
8772
|
+
return React__default['default'].createElement(
|
|
8774
8773
|
'div',
|
|
8775
8774
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8776
|
-
React__default[
|
|
8775
|
+
React__default['default'].createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8777
8776
|
);
|
|
8778
8777
|
};
|
|
8779
8778
|
|
|
@@ -8784,15 +8783,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8784
8783
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8785
8784
|
|
|
8786
8785
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8787
|
-
return React__default[
|
|
8786
|
+
return React__default['default'].createElement(
|
|
8788
8787
|
'section',
|
|
8789
8788
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8790
|
-
Caption && React__default[
|
|
8789
|
+
Caption && React__default['default'].createElement(
|
|
8791
8790
|
'h4',
|
|
8792
8791
|
{ className: 'formstack-caption' },
|
|
8793
8792
|
Caption
|
|
8794
8793
|
),
|
|
8795
|
-
React__default[
|
|
8794
|
+
React__default['default'].createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8796
8795
|
);
|
|
8797
8796
|
};
|
|
8798
8797
|
|
|
@@ -8808,36 +8807,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8808
8807
|
}
|
|
8809
8808
|
});
|
|
8810
8809
|
if (medias && medias.length > 0) {
|
|
8811
|
-
return React__default[
|
|
8810
|
+
return React__default['default'].createElement(
|
|
8812
8811
|
'div',
|
|
8813
8812
|
{ className: 'multi-media-container' },
|
|
8814
|
-
React__default[
|
|
8815
|
-
Row__default[
|
|
8813
|
+
React__default['default'].createElement(
|
|
8814
|
+
Row__default['default'],
|
|
8816
8815
|
{ noGutters: true },
|
|
8817
8816
|
medias.map(function (media) {
|
|
8818
|
-
return React__default[
|
|
8819
|
-
Col__default[
|
|
8817
|
+
return React__default['default'].createElement(
|
|
8818
|
+
Col__default['default'],
|
|
8820
8819
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8821
|
-
React__default[
|
|
8820
|
+
React__default['default'].createElement(
|
|
8822
8821
|
'a',
|
|
8823
8822
|
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile.urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8824
8823
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8825
|
-
React__default[
|
|
8824
|
+
React__default['default'].createElement(
|
|
8826
8825
|
'div',
|
|
8827
8826
|
{ className: 'multi-media-image-container' },
|
|
8828
|
-
imageBox && React__default[
|
|
8827
|
+
imageBox && React__default['default'].createElement(
|
|
8829
8828
|
index$2.LazyLoad,
|
|
8830
8829
|
{ once: true },
|
|
8831
|
-
React__default[
|
|
8830
|
+
React__default['default'].createElement(
|
|
8832
8831
|
'picture',
|
|
8833
8832
|
null,
|
|
8834
|
-
React__default[
|
|
8835
|
-
React__default[
|
|
8836
|
-
React__default[
|
|
8837
|
-
React__default[
|
|
8833
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8834
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8835
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8836
|
+
React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8838
8837
|
)
|
|
8839
8838
|
),
|
|
8840
|
-
media.caption && React__default[
|
|
8839
|
+
media.caption && React__default['default'].createElement(
|
|
8841
8840
|
'span',
|
|
8842
8841
|
{ className: 'multi-media-caption' },
|
|
8843
8842
|
media.caption
|
|
@@ -8847,7 +8846,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8847
8846
|
);
|
|
8848
8847
|
})
|
|
8849
8848
|
),
|
|
8850
|
-
React__default[
|
|
8849
|
+
React__default['default'].createElement(
|
|
8851
8850
|
'style',
|
|
8852
8851
|
{ jsx: 'true' },
|
|
8853
8852
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8894,7 +8893,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8894
8893
|
}
|
|
8895
8894
|
};
|
|
8896
8895
|
|
|
8897
|
-
_this.wraperRef = React__default[
|
|
8896
|
+
_this.wraperRef = React__default['default'].createRef();
|
|
8898
8897
|
_this.visible = false;
|
|
8899
8898
|
return _this;
|
|
8900
8899
|
}
|
|
@@ -8922,7 +8921,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8922
8921
|
_props$id = _props.id,
|
|
8923
8922
|
id = _props$id === undefined ? '' : _props$id;
|
|
8924
8923
|
|
|
8925
|
-
return React__default[
|
|
8924
|
+
return React__default['default'].createElement(
|
|
8926
8925
|
'div',
|
|
8927
8926
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8928
8927
|
this.props.children
|
|
@@ -8931,7 +8930,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8931
8930
|
}]);
|
|
8932
8931
|
|
|
8933
8932
|
return InscreenSensor;
|
|
8934
|
-
}(React__default[
|
|
8933
|
+
}(React__default['default'].Component);
|
|
8935
8934
|
|
|
8936
8935
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8937
8936
|
var nodes = _ref.nodes,
|
|
@@ -9042,33 +9041,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9042
9041
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9043
9042
|
var showReading = show ? 'showReading' : '';
|
|
9044
9043
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9045
|
-
return React__default[
|
|
9044
|
+
return React__default['default'].createElement(
|
|
9046
9045
|
'div',
|
|
9047
9046
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9048
|
-
React__default[
|
|
9047
|
+
React__default['default'].createElement(
|
|
9049
9048
|
'a',
|
|
9050
9049
|
{ onClick: function onClick(e) {
|
|
9051
9050
|
return articleCardClickHandler(e);
|
|
9052
9051
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9053
|
-
React__default[
|
|
9052
|
+
React__default['default'].createElement(
|
|
9054
9053
|
'div',
|
|
9055
9054
|
{ className: 'prevNext-thumbnail' },
|
|
9056
|
-
React__default[
|
|
9057
|
-
React__default[
|
|
9055
|
+
React__default['default'].createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
9056
|
+
React__default['default'].createElement(
|
|
9058
9057
|
'div',
|
|
9059
9058
|
{ className: 'prevNext-reading ' + showReading },
|
|
9060
9059
|
articleLabel
|
|
9061
9060
|
)
|
|
9062
9061
|
),
|
|
9063
|
-
React__default[
|
|
9062
|
+
React__default['default'].createElement(
|
|
9064
9063
|
'div',
|
|
9065
9064
|
{ className: 'prevNext-summary' },
|
|
9066
|
-
React__default[
|
|
9065
|
+
React__default['default'].createElement(
|
|
9067
9066
|
'div',
|
|
9068
9067
|
{ className: 'prevNext-publishDate' },
|
|
9069
9068
|
moment.moment(article.published).format('LL')
|
|
9070
9069
|
),
|
|
9071
|
-
React__default[
|
|
9070
|
+
React__default['default'].createElement(
|
|
9072
9071
|
'h2',
|
|
9073
9072
|
{ className: 'prevNext-title' },
|
|
9074
9073
|
article.title
|
|
@@ -9117,7 +9116,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9117
9116
|
|
|
9118
9117
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9119
9118
|
if (biography) {
|
|
9120
|
-
return React__default[
|
|
9119
|
+
return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9121
9120
|
}
|
|
9122
9121
|
};
|
|
9123
9122
|
|
|
@@ -9275,40 +9274,40 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9275
9274
|
setSensorVisible(false);
|
|
9276
9275
|
};
|
|
9277
9276
|
|
|
9278
|
-
return React__default[
|
|
9279
|
-
React__default[
|
|
9277
|
+
return React__default['default'].createElement(
|
|
9278
|
+
React__default['default'].Fragment,
|
|
9280
9279
|
null,
|
|
9281
|
-
React__default[
|
|
9280
|
+
React__default['default'].createElement(
|
|
9282
9281
|
'div',
|
|
9283
9282
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9284
|
-
React__default[
|
|
9283
|
+
React__default['default'].createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9285
9284
|
return handleArrowClick();
|
|
9286
9285
|
} })
|
|
9287
9286
|
),
|
|
9288
|
-
React__default[
|
|
9289
|
-
React__default[
|
|
9287
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' }),
|
|
9288
|
+
React__default['default'].createElement(
|
|
9290
9289
|
'div',
|
|
9291
9290
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9292
|
-
React__default[
|
|
9291
|
+
React__default['default'].createElement(
|
|
9293
9292
|
'h5',
|
|
9294
9293
|
{ className: 'objective-title' },
|
|
9295
9294
|
nodes.seriesTitle
|
|
9296
9295
|
),
|
|
9297
|
-
React__default[
|
|
9296
|
+
React__default['default'].createElement(
|
|
9298
9297
|
'div',
|
|
9299
9298
|
{ className: 'prevNextWrapper' },
|
|
9300
9299
|
PrevNextCards(false, -1)
|
|
9301
9300
|
)
|
|
9302
9301
|
),
|
|
9303
|
-
React__default[
|
|
9304
|
-
React__default[
|
|
9302
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' }),
|
|
9303
|
+
React__default['default'].createElement(
|
|
9305
9304
|
'div',
|
|
9306
9305
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
9307
9306
|
Articles.map(function (article, index) {
|
|
9308
|
-
return React__default[
|
|
9307
|
+
return React__default['default'].createElement(
|
|
9309
9308
|
'div',
|
|
9310
9309
|
{ key: article.title },
|
|
9311
|
-
React__default[
|
|
9310
|
+
React__default['default'].createElement(
|
|
9312
9311
|
InscreenSensor,
|
|
9313
9312
|
{
|
|
9314
9313
|
visible: sensorVisible,
|
|
@@ -9326,82 +9325,82 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9326
9325
|
}
|
|
9327
9326
|
}
|
|
9328
9327
|
} },
|
|
9329
|
-
React__default[
|
|
9330
|
-
Head__default[
|
|
9328
|
+
React__default['default'].createElement(
|
|
9329
|
+
Head__default['default'],
|
|
9331
9330
|
null,
|
|
9332
|
-
currentTitle !== null && React__default[
|
|
9331
|
+
currentTitle !== null && React__default['default'].createElement(
|
|
9333
9332
|
'title',
|
|
9334
9333
|
{ key: 'title' },
|
|
9335
9334
|
currentTitle
|
|
9336
9335
|
),
|
|
9337
|
-
currentSummary !== null && React__default[
|
|
9338
|
-
currentURL !== null && React__default[
|
|
9339
|
-
currentTitle !== null && React__default[
|
|
9340
|
-
currentThumbnail !== null && React__default[
|
|
9341
|
-
currentSummary !== null && React__default[
|
|
9342
|
-
currentTitle !== null && React__default[
|
|
9343
|
-
currentThumbnail !== null && React__default[
|
|
9344
|
-
currentSummary !== null && React__default[
|
|
9336
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
9337
|
+
currentURL !== null && React__default['default'].createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
9338
|
+
currentTitle !== null && React__default['default'].createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
9339
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
9340
|
+
currentSummary !== null && React__default['default'].createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
9341
|
+
currentTitle !== null && React__default['default'].createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
9342
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
9343
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
9345
9344
|
),
|
|
9346
|
-
React__default[
|
|
9345
|
+
React__default['default'].createElement(
|
|
9347
9346
|
'article',
|
|
9348
9347
|
{ className: 'article-wrapper' },
|
|
9349
|
-
React__default[
|
|
9348
|
+
React__default['default'].createElement(
|
|
9350
9349
|
'div',
|
|
9351
9350
|
{ className: 'article-publishDate' },
|
|
9352
9351
|
moment.moment(article.published).format('LL')
|
|
9353
9352
|
),
|
|
9354
|
-
React__default[
|
|
9353
|
+
React__default['default'].createElement(
|
|
9355
9354
|
'div',
|
|
9356
9355
|
{ className: 'author-details-wrapper' },
|
|
9357
9356
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
9358
|
-
return React__default[
|
|
9357
|
+
return React__default['default'].createElement(
|
|
9359
9358
|
'span',
|
|
9360
9359
|
{ key: index },
|
|
9361
9360
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
9362
9361
|
);
|
|
9363
9362
|
})
|
|
9364
9363
|
),
|
|
9365
|
-
React__default[
|
|
9364
|
+
React__default['default'].createElement(
|
|
9366
9365
|
'h2',
|
|
9367
9366
|
{ className: 'article-title' },
|
|
9368
9367
|
article.title
|
|
9369
9368
|
),
|
|
9370
|
-
React__default[
|
|
9369
|
+
React__default['default'].createElement(
|
|
9371
9370
|
'div',
|
|
9372
9371
|
{ className: 'mt-2 mb-2' },
|
|
9373
|
-
React__default[
|
|
9372
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
9374
9373
|
serializers: getSerializers,
|
|
9375
9374
|
videoAccountIDs: accountIDs,
|
|
9376
9375
|
blocks: article.text,
|
|
9377
9376
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
9378
9377
|
}, client.config())),
|
|
9379
|
-
React__default[
|
|
9378
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' })
|
|
9380
9379
|
),
|
|
9381
|
-
Articles.length > 1 && React__default[
|
|
9382
|
-
React__default[
|
|
9380
|
+
Articles.length > 1 && React__default['default'].createElement(
|
|
9381
|
+
React__default['default'].Fragment,
|
|
9383
9382
|
null,
|
|
9384
|
-
React__default[
|
|
9383
|
+
React__default['default'].createElement(
|
|
9385
9384
|
'div',
|
|
9386
9385
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9387
|
-
React__default[
|
|
9386
|
+
React__default['default'].createElement(
|
|
9388
9387
|
'h5',
|
|
9389
9388
|
{ className: 'objective-title' },
|
|
9390
9389
|
nodes.seriesTitle
|
|
9391
9390
|
),
|
|
9392
|
-
React__default[
|
|
9391
|
+
React__default['default'].createElement(
|
|
9393
9392
|
'div',
|
|
9394
9393
|
{ className: 'prevNextWrapper' },
|
|
9395
9394
|
PrevNextCards(true, index)
|
|
9396
9395
|
)
|
|
9397
9396
|
),
|
|
9398
|
-
React__default[
|
|
9397
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' })
|
|
9399
9398
|
)
|
|
9400
9399
|
)
|
|
9401
9400
|
)
|
|
9402
9401
|
);
|
|
9403
9402
|
}),
|
|
9404
|
-
React__default[
|
|
9403
|
+
React__default['default'].createElement(
|
|
9405
9404
|
'style',
|
|
9406
9405
|
{ jsx: 'true' },
|
|
9407
9406
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -9431,11 +9430,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
9431
9430
|
};
|
|
9432
9431
|
}, [handleClickOutside]);
|
|
9433
9432
|
|
|
9434
|
-
return React__default[
|
|
9433
|
+
return React__default['default'].createElement(
|
|
9435
9434
|
'div',
|
|
9436
9435
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9437
|
-
React__default[
|
|
9438
|
-
React__default[
|
|
9436
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
9437
|
+
React__default['default'].createElement(
|
|
9439
9438
|
'style',
|
|
9440
9439
|
{ jsx: 'true' },
|
|
9441
9440
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9449,7 +9448,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9449
9448
|
}
|
|
9450
9449
|
};
|
|
9451
9450
|
|
|
9452
|
-
var FigureImage$1 = React__default[
|
|
9451
|
+
var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
9453
9452
|
var node = _ref2.node,
|
|
9454
9453
|
client = _ref2.client,
|
|
9455
9454
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9457,13 +9456,13 @@ var FigureImage$1 = React__default["default"].memo(function (_ref2) {
|
|
|
9457
9456
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9458
9457
|
|
|
9459
9458
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9460
|
-
return React__default[
|
|
9459
|
+
return React__default['default'].createElement(
|
|
9461
9460
|
'picture',
|
|
9462
9461
|
null,
|
|
9463
|
-
React__default[
|
|
9464
|
-
React__default[
|
|
9465
|
-
React__default[
|
|
9466
|
-
React__default[
|
|
9462
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9463
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9464
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9465
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9467
9466
|
style: figureImageStyle,
|
|
9468
9467
|
className: 'figure-image',
|
|
9469
9468
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9514,30 +9513,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9514
9513
|
|
|
9515
9514
|
var renderTooltip = function renderTooltip(props) {
|
|
9516
9515
|
if (infoBox[0].title) {
|
|
9517
|
-
return React__default[
|
|
9518
|
-
Popover__default[
|
|
9516
|
+
return React__default['default'].createElement(
|
|
9517
|
+
Popover__default['default'],
|
|
9519
9518
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9520
|
-
React__default[
|
|
9521
|
-
Popover__default[
|
|
9519
|
+
React__default['default'].createElement(
|
|
9520
|
+
Popover__default['default'].Title,
|
|
9522
9521
|
{ as: 'h3' },
|
|
9523
9522
|
infoBox[0].title
|
|
9524
9523
|
),
|
|
9525
|
-
React__default[
|
|
9526
|
-
Popover__default[
|
|
9524
|
+
React__default['default'].createElement(
|
|
9525
|
+
Popover__default['default'].Content,
|
|
9527
9526
|
null,
|
|
9528
|
-
React__default[
|
|
9527
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9529
9528
|
)
|
|
9530
9529
|
);
|
|
9531
9530
|
} else {
|
|
9532
|
-
return React__default[
|
|
9533
|
-
Tooltip__default[
|
|
9531
|
+
return React__default['default'].createElement(
|
|
9532
|
+
Tooltip__default['default'],
|
|
9534
9533
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9535
|
-
React__default[
|
|
9534
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9536
9535
|
);
|
|
9537
9536
|
}
|
|
9538
9537
|
};
|
|
9539
9538
|
|
|
9540
|
-
var FigureImageWOverLay = React__default[
|
|
9539
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
9541
9540
|
var node = _ref3.node,
|
|
9542
9541
|
client = _ref3.client,
|
|
9543
9542
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9547,13 +9546,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9547
9546
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9548
9547
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9549
9548
|
var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9550
|
-
return React__default[
|
|
9549
|
+
return React__default['default'].createElement(
|
|
9551
9550
|
'picture',
|
|
9552
9551
|
null,
|
|
9553
|
-
React__default[
|
|
9554
|
-
React__default[
|
|
9555
|
-
React__default[
|
|
9556
|
-
main.main_42 && link ? React__default[
|
|
9552
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9553
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9554
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9555
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
9557
9556
|
style: figureImageStyle,
|
|
9558
9557
|
className: 'figure-image',
|
|
9559
9558
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9562,10 +9561,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9562
9561
|
onClick: function onClick() {
|
|
9563
9562
|
return handleClickFigure(node, client);
|
|
9564
9563
|
}
|
|
9565
|
-
})) : React__default[
|
|
9566
|
-
OverlayTrigger__default[
|
|
9564
|
+
})) : React__default['default'].createElement(
|
|
9565
|
+
OverlayTrigger__default['default'],
|
|
9567
9566
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9568
|
-
React__default[
|
|
9567
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9569
9568
|
style: figureImageStyle,
|
|
9570
9569
|
className: 'figure-image',
|
|
9571
9570
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9619,13 +9618,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9619
9618
|
|
|
9620
9619
|
var FigureCaption = React.useCallback(function () {
|
|
9621
9620
|
if (imgcaption && imgcaption.length > 0) {
|
|
9622
|
-
return React__default[
|
|
9621
|
+
return React__default['default'].createElement(
|
|
9623
9622
|
'div',
|
|
9624
9623
|
{ className: 'figure-caption' },
|
|
9625
|
-
React__default[
|
|
9624
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9626
9625
|
);
|
|
9627
9626
|
} else if (caption) {
|
|
9628
|
-
return React__default[
|
|
9627
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9629
9628
|
} else return null;
|
|
9630
9629
|
}, [caption, imgcaption]);
|
|
9631
9630
|
|
|
@@ -9642,24 +9641,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9642
9641
|
setShowLightbox(true);
|
|
9643
9642
|
}, [node, client]);
|
|
9644
9643
|
|
|
9645
|
-
return React__default[
|
|
9646
|
-
React__default[
|
|
9644
|
+
return React__default['default'].createElement(
|
|
9645
|
+
React__default['default'].Fragment,
|
|
9647
9646
|
null,
|
|
9648
|
-
infoBox.length >= 1 ? React__default[
|
|
9649
|
-
Figure__default[
|
|
9647
|
+
infoBox.length >= 1 ? React__default['default'].createElement(
|
|
9648
|
+
Figure__default['default'],
|
|
9650
9649
|
{ className: '' + class_name, style: figureStyle },
|
|
9651
|
-
link ? React__default[
|
|
9650
|
+
link ? React__default['default'].createElement(
|
|
9652
9651
|
'a',
|
|
9653
9652
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9654
|
-
React__default[
|
|
9655
|
-
React__default[
|
|
9656
|
-
) : React__default[
|
|
9657
|
-
React__default[
|
|
9653
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9654
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9655
|
+
) : React__default['default'].createElement(
|
|
9656
|
+
React__default['default'].Fragment,
|
|
9658
9657
|
null,
|
|
9659
|
-
React__default[
|
|
9660
|
-
React__default[
|
|
9658
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9659
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9661
9660
|
),
|
|
9662
|
-
React__default[
|
|
9661
|
+
React__default['default'].createElement(LightBox, {
|
|
9663
9662
|
showLightbox: showLightbox,
|
|
9664
9663
|
lightboxImgSrc: lightboxImgSrc,
|
|
9665
9664
|
closeLightbox: function closeLightbox() {
|
|
@@ -9667,21 +9666,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9667
9666
|
setShowLightbox(false);
|
|
9668
9667
|
}
|
|
9669
9668
|
})
|
|
9670
|
-
) : React__default[
|
|
9671
|
-
Figure__default[
|
|
9669
|
+
) : React__default['default'].createElement(
|
|
9670
|
+
Figure__default['default'],
|
|
9672
9671
|
{ className: '' + class_name, style: figureStyle },
|
|
9673
|
-
link ? React__default[
|
|
9672
|
+
link ? React__default['default'].createElement(
|
|
9674
9673
|
'a',
|
|
9675
9674
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9676
|
-
React__default[
|
|
9677
|
-
React__default[
|
|
9678
|
-
) : React__default[
|
|
9679
|
-
React__default[
|
|
9675
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9676
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9677
|
+
) : React__default['default'].createElement(
|
|
9678
|
+
React__default['default'].Fragment,
|
|
9680
9679
|
null,
|
|
9681
|
-
React__default[
|
|
9682
|
-
React__default[
|
|
9680
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9681
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9683
9682
|
),
|
|
9684
|
-
React__default[
|
|
9683
|
+
React__default['default'].createElement(LightBox, {
|
|
9685
9684
|
showLightbox: showLightbox,
|
|
9686
9685
|
lightboxImgSrc: lightboxImgSrc,
|
|
9687
9686
|
closeLightbox: function closeLightbox() {
|
|
@@ -9690,7 +9689,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9690
9689
|
}
|
|
9691
9690
|
})
|
|
9692
9691
|
),
|
|
9693
|
-
React__default[
|
|
9692
|
+
React__default['default'].createElement(
|
|
9694
9693
|
'style',
|
|
9695
9694
|
{ jsx: 'true' },
|
|
9696
9695
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -9698,7 +9697,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9698
9697
|
);
|
|
9699
9698
|
};
|
|
9700
9699
|
|
|
9701
|
-
var Figure = React__default[
|
|
9700
|
+
var Figure = React__default['default'].memo(FigureComponent, compareProps);
|
|
9702
9701
|
|
|
9703
9702
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9704
9703
|
React.useEffect(function () {
|
|
@@ -9715,7 +9714,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9715
9714
|
}, [ref]);
|
|
9716
9715
|
}
|
|
9717
9716
|
|
|
9718
|
-
var FigureImage = React__default[
|
|
9717
|
+
var FigureImage = React__default['default'].memo(function (_ref) {
|
|
9719
9718
|
var imagesCount = _ref.imagesCount,
|
|
9720
9719
|
image = _ref.image,
|
|
9721
9720
|
client = _ref.client,
|
|
@@ -9723,13 +9722,13 @@ var FigureImage = React__default["default"].memo(function (_ref) {
|
|
|
9723
9722
|
link = _ref.link,
|
|
9724
9723
|
handleClickFigure = _ref.handleClickFigure;
|
|
9725
9724
|
|
|
9726
|
-
return React__default[
|
|
9725
|
+
return React__default['default'].createElement(
|
|
9727
9726
|
'picture',
|
|
9728
9727
|
null,
|
|
9729
|
-
React__default[
|
|
9730
|
-
React__default[
|
|
9731
|
-
React__default[
|
|
9732
|
-
React__default[
|
|
9728
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9729
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9730
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9731
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9733
9732
|
'images-count': imagesCount,
|
|
9734
9733
|
className: 'multi-figure-image',
|
|
9735
9734
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9766,13 +9765,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9766
9765
|
imgcaption = _ref2.imgcaption;
|
|
9767
9766
|
|
|
9768
9767
|
if (imgcaption && imgcaption.length > 0) {
|
|
9769
|
-
return React__default[
|
|
9768
|
+
return React__default['default'].createElement(
|
|
9770
9769
|
'div',
|
|
9771
9770
|
{ className: 'multi-figure-caption' },
|
|
9772
|
-
React__default[
|
|
9771
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9773
9772
|
);
|
|
9774
9773
|
} else if (caption) {
|
|
9775
|
-
return React__default[
|
|
9774
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9776
9775
|
} else return null;
|
|
9777
9776
|
};
|
|
9778
9777
|
|
|
@@ -9781,7 +9780,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9781
9780
|
setOpenImg(true);
|
|
9782
9781
|
}, [client]);
|
|
9783
9782
|
|
|
9784
|
-
var FigureImageWOverLay = React__default[
|
|
9783
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
9785
9784
|
var imagesCount = _ref3.imagesCount,
|
|
9786
9785
|
image = _ref3.image,
|
|
9787
9786
|
client = _ref3.client,
|
|
@@ -9791,13 +9790,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9791
9790
|
|
|
9792
9791
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9793
9792
|
var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9794
|
-
return React__default[
|
|
9793
|
+
return React__default['default'].createElement(
|
|
9795
9794
|
'picture',
|
|
9796
9795
|
null,
|
|
9797
|
-
React__default[
|
|
9798
|
-
React__default[
|
|
9799
|
-
React__default[
|
|
9800
|
-
main.main_42 && link ? React__default[
|
|
9796
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9797
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9798
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9799
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
9801
9800
|
'images-count': imagesCount,
|
|
9802
9801
|
className: 'multi-figure-image',
|
|
9803
9802
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9806,10 +9805,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9806
9805
|
onClick: function onClick() {
|
|
9807
9806
|
return handleClickFigure(image, client);
|
|
9808
9807
|
}
|
|
9809
|
-
})) : React__default[
|
|
9810
|
-
OverlayTrigger__default[
|
|
9808
|
+
})) : React__default['default'].createElement(
|
|
9809
|
+
OverlayTrigger__default['default'],
|
|
9811
9810
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9812
|
-
React__default[
|
|
9811
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9813
9812
|
'images-count': imagesCount,
|
|
9814
9813
|
className: 'multi-figure-image',
|
|
9815
9814
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9825,102 +9824,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9825
9824
|
|
|
9826
9825
|
var renderTooltip = function renderTooltip(image) {
|
|
9827
9826
|
if (image.infoBox[0].title) {
|
|
9828
|
-
return React__default[
|
|
9829
|
-
Popover__default[
|
|
9827
|
+
return React__default['default'].createElement(
|
|
9828
|
+
Popover__default['default'],
|
|
9830
9829
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9831
|
-
React__default[
|
|
9832
|
-
Popover__default[
|
|
9830
|
+
React__default['default'].createElement(
|
|
9831
|
+
Popover__default['default'].Title,
|
|
9833
9832
|
{ as: 'h3' },
|
|
9834
9833
|
image.infoBox[0].title
|
|
9835
9834
|
),
|
|
9836
|
-
React__default[
|
|
9837
|
-
Popover__default[
|
|
9835
|
+
React__default['default'].createElement(
|
|
9836
|
+
Popover__default['default'].Content,
|
|
9838
9837
|
null,
|
|
9839
|
-
React__default[
|
|
9838
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9840
9839
|
)
|
|
9841
9840
|
);
|
|
9842
9841
|
} else {
|
|
9843
|
-
return React__default[
|
|
9844
|
-
Tooltip__default[
|
|
9842
|
+
return React__default['default'].createElement(
|
|
9843
|
+
Tooltip__default['default'],
|
|
9845
9844
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9846
|
-
React__default[
|
|
9845
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9847
9846
|
);
|
|
9848
9847
|
}
|
|
9849
9848
|
};
|
|
9850
9849
|
|
|
9851
9850
|
if (images && images.length > 0) {
|
|
9852
|
-
return React__default[
|
|
9851
|
+
return React__default['default'].createElement(
|
|
9853
9852
|
'div',
|
|
9854
9853
|
{ className: 'multi-figure-container' },
|
|
9855
|
-
React__default[
|
|
9856
|
-
Row__default[
|
|
9854
|
+
React__default['default'].createElement(
|
|
9855
|
+
Row__default['default'],
|
|
9857
9856
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9858
9857
|
images.map(function (image, index) {
|
|
9859
9858
|
if (image.infoBox) {
|
|
9860
|
-
return React__default[
|
|
9861
|
-
Col__default[
|
|
9859
|
+
return React__default['default'].createElement(
|
|
9860
|
+
Col__default['default'],
|
|
9862
9861
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9863
|
-
image.link ? React__default[
|
|
9862
|
+
image.link ? React__default['default'].createElement(
|
|
9864
9863
|
'a',
|
|
9865
9864
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9866
|
-
React__default[
|
|
9865
|
+
React__default['default'].createElement(
|
|
9867
9866
|
'div',
|
|
9868
9867
|
{ className: 'multi-figure-image-container' },
|
|
9869
|
-
React__default[
|
|
9868
|
+
React__default['default'].createElement(
|
|
9870
9869
|
index$2.LazyLoad,
|
|
9871
9870
|
{ once: true },
|
|
9872
|
-
React__default[
|
|
9871
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9873
9872
|
),
|
|
9874
|
-
React__default[
|
|
9873
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9875
9874
|
)
|
|
9876
|
-
) : React__default[
|
|
9875
|
+
) : React__default['default'].createElement(
|
|
9877
9876
|
'div',
|
|
9878
9877
|
{ className: 'multi-figure-image-container' },
|
|
9879
|
-
React__default[
|
|
9878
|
+
React__default['default'].createElement(
|
|
9880
9879
|
index$2.LazyLoad,
|
|
9881
9880
|
{ once: true },
|
|
9882
|
-
React__default[
|
|
9881
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9883
9882
|
),
|
|
9884
|
-
React__default[
|
|
9883
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9885
9884
|
)
|
|
9886
9885
|
);
|
|
9887
9886
|
} else {
|
|
9888
|
-
return React__default[
|
|
9889
|
-
Col__default[
|
|
9887
|
+
return React__default['default'].createElement(
|
|
9888
|
+
Col__default['default'],
|
|
9890
9889
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9891
|
-
image.link ? React__default[
|
|
9890
|
+
image.link ? React__default['default'].createElement(
|
|
9892
9891
|
'a',
|
|
9893
9892
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9894
|
-
React__default[
|
|
9893
|
+
React__default['default'].createElement(
|
|
9895
9894
|
'div',
|
|
9896
9895
|
{ className: 'multi-figure-image-container' },
|
|
9897
|
-
React__default[
|
|
9896
|
+
React__default['default'].createElement(
|
|
9898
9897
|
index$2.LazyLoad,
|
|
9899
9898
|
{ once: true },
|
|
9900
|
-
React__default[
|
|
9899
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9901
9900
|
),
|
|
9902
|
-
React__default[
|
|
9901
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9903
9902
|
)
|
|
9904
|
-
) : React__default[
|
|
9903
|
+
) : React__default['default'].createElement(
|
|
9905
9904
|
'div',
|
|
9906
9905
|
{ className: 'multi-figure-image-container' },
|
|
9907
|
-
React__default[
|
|
9906
|
+
React__default['default'].createElement(
|
|
9908
9907
|
index$2.LazyLoad,
|
|
9909
9908
|
{ once: true },
|
|
9910
|
-
React__default[
|
|
9909
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9911
9910
|
),
|
|
9912
|
-
React__default[
|
|
9911
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9913
9912
|
)
|
|
9914
9913
|
);
|
|
9915
9914
|
}
|
|
9916
9915
|
})
|
|
9917
9916
|
),
|
|
9918
|
-
React__default[
|
|
9917
|
+
React__default['default'].createElement(
|
|
9919
9918
|
'div',
|
|
9920
9919
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9921
|
-
React__default[
|
|
9920
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9922
9921
|
),
|
|
9923
|
-
React__default[
|
|
9922
|
+
React__default['default'].createElement(
|
|
9924
9923
|
'style',
|
|
9925
9924
|
{ jsx: 'true' },
|
|
9926
9925
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9969,23 +9968,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9969
9968
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9970
9969
|
}, []);
|
|
9971
9970
|
|
|
9972
|
-
return React__default[
|
|
9973
|
-
React__default[
|
|
9971
|
+
return React__default['default'].createElement(
|
|
9972
|
+
React__default['default'].Fragment,
|
|
9974
9973
|
null,
|
|
9975
|
-
React__default[
|
|
9976
|
-
Head__default[
|
|
9974
|
+
React__default['default'].createElement(
|
|
9975
|
+
Head__default['default'],
|
|
9977
9976
|
null,
|
|
9978
|
-
React__default[
|
|
9977
|
+
React__default['default'].createElement('script', {
|
|
9979
9978
|
dangerouslySetInnerHTML: {
|
|
9980
9979
|
__html: 'history.scrollRestoration = "manual"'
|
|
9981
9980
|
}
|
|
9982
9981
|
})
|
|
9983
9982
|
),
|
|
9984
|
-
React__default[
|
|
9983
|
+
React__default['default'].createElement(
|
|
9985
9984
|
'div',
|
|
9986
9985
|
{ id: elementId },
|
|
9987
|
-
React__default[
|
|
9988
|
-
React__default[
|
|
9986
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9987
|
+
React__default['default'].createElement(
|
|
9989
9988
|
'style',
|
|
9990
9989
|
{ jsx: 'true' },
|
|
9991
9990
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -10039,11 +10038,11 @@ var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
|
10039
10038
|
|
|
10040
10039
|
|
|
10041
10040
|
|
|
10042
|
-
var _react2 = _interopRequireDefault(React__default[
|
|
10041
|
+
var _react2 = _interopRequireDefault(React__default['default']);
|
|
10043
10042
|
|
|
10044
10043
|
|
|
10045
10044
|
|
|
10046
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default[
|
|
10045
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
|
|
10047
10046
|
|
|
10048
10047
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10049
10048
|
var noop = function noop() {};
|
|
@@ -10198,7 +10197,7 @@ var ScriptTag = function (_Component) {
|
|
|
10198
10197
|
};
|
|
10199
10198
|
|
|
10200
10199
|
return ScriptTag;
|
|
10201
|
-
}(React__default[
|
|
10200
|
+
}(React__default['default'].Component);
|
|
10202
10201
|
|
|
10203
10202
|
ScriptTag.propTypes = {
|
|
10204
10203
|
/**
|
|
@@ -10290,11 +10289,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10290
10289
|
}, [anonymousID]);
|
|
10291
10290
|
|
|
10292
10291
|
if (iframeSrc) {
|
|
10293
|
-
return React__default[
|
|
10292
|
+
return React__default['default'].createElement(
|
|
10294
10293
|
'section',
|
|
10295
10294
|
{ className: 'form-assembly' },
|
|
10296
|
-
iframeSrc && React__default[
|
|
10297
|
-
React__default[
|
|
10295
|
+
iframeSrc && React__default['default'].createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10296
|
+
React__default['default'].createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10298
10297
|
);
|
|
10299
10298
|
}
|
|
10300
10299
|
|
|
@@ -10331,27 +10330,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
10331
10330
|
return window.removeEventListener('resize', handleResize);
|
|
10332
10331
|
};
|
|
10333
10332
|
}, []);
|
|
10334
|
-
return React__default[
|
|
10333
|
+
return React__default['default'].createElement(
|
|
10335
10334
|
'div',
|
|
10336
10335
|
{ className: 'blockTableHolder', ref: holder },
|
|
10337
|
-
React__default[
|
|
10336
|
+
React__default['default'].createElement(
|
|
10338
10337
|
'div',
|
|
10339
10338
|
{ className: 'blockTable' },
|
|
10340
10339
|
rows && rows.map(function (row) {
|
|
10341
|
-
return React__default[
|
|
10340
|
+
return React__default['default'].createElement(
|
|
10342
10341
|
'div',
|
|
10343
10342
|
{ className: 'blockTableRow' },
|
|
10344
10343
|
row.cells && row.cells.map(function (cell) {
|
|
10345
|
-
return React__default[
|
|
10344
|
+
return React__default['default'].createElement(
|
|
10346
10345
|
'div',
|
|
10347
10346
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10348
|
-
React__default[
|
|
10347
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10349
10348
|
);
|
|
10350
10349
|
})
|
|
10351
10350
|
);
|
|
10352
10351
|
})
|
|
10353
10352
|
),
|
|
10354
|
-
React__default[
|
|
10353
|
+
React__default['default'].createElement(
|
|
10355
10354
|
'style',
|
|
10356
10355
|
{ jsx: true },
|
|
10357
10356
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -10365,9 +10364,11 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10365
10364
|
_props$node.needSegmentSupport;
|
|
10366
10365
|
|
|
10367
10366
|
|
|
10368
|
-
return React__default[
|
|
10367
|
+
return React__default['default'].createElement('div', { id: FormID });
|
|
10369
10368
|
};
|
|
10370
10369
|
|
|
10370
|
+
var siteArray = ['aestheticauthority.com', 'cannapatientcare.com', 'chiefhealthcareexecutive.com', 'genetherapylive.com', 'giantsofcancercare.com', 'medicalworldnews.com', 'pbmi.com', 'pharmacytimes.org', 'gotoper.com', 'education.gotoper.com', 'mjhlifesciences.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
10371
|
+
|
|
10371
10372
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
10372
10373
|
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
10373
10374
|
return true;
|
|
@@ -10409,8 +10410,15 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10409
10410
|
}
|
|
10410
10411
|
}, []);
|
|
10411
10412
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10413
|
+
var checkBaseUrl = function checkBaseUrl(url) {
|
|
10414
|
+
if (url.includes('http://') || url.includes('https://')) {
|
|
10415
|
+
//to remove http:// or https:// to check URLs
|
|
10416
|
+
url = url.replace('www.', '').split('/').slice(2, 3).join('/');
|
|
10417
|
+
}
|
|
10418
|
+
return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
|
|
10419
|
+
};
|
|
10412
10420
|
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10413
|
-
if (url && !isExernalUrl || url &&
|
|
10421
|
+
if (url && !isExernalUrl || url && checkBaseUrl(url)) {
|
|
10414
10422
|
//if not external url, nofollow is disabled
|
|
10415
10423
|
return '';
|
|
10416
10424
|
} else if (url && (nofollow || nofollow == undefined)) {
|
|
@@ -10425,7 +10433,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10425
10433
|
if (href && href.charAt(0) === '#') {
|
|
10426
10434
|
var elementId = href.slice(1);
|
|
10427
10435
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10428
|
-
return React__default[
|
|
10436
|
+
return React__default['default'].createElement(
|
|
10429
10437
|
'a',
|
|
10430
10438
|
{ onClick: function onClick() {
|
|
10431
10439
|
return ScrollToElement(elementId);
|
|
@@ -10434,12 +10442,12 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10434
10442
|
);
|
|
10435
10443
|
}
|
|
10436
10444
|
|
|
10437
|
-
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !
|
|
10438
|
-
return href ? linkRel.trim().length > 0 ? React__default[
|
|
10445
|
+
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkBaseUrl(href) ? 'noreferrer noopener' : '');
|
|
10446
|
+
return href ? linkRel.trim().length > 0 ? React__default['default'].createElement(
|
|
10439
10447
|
'a',
|
|
10440
10448
|
_extends._extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10441
10449
|
children
|
|
10442
|
-
) : React__default[
|
|
10450
|
+
) : React__default['default'].createElement(
|
|
10443
10451
|
'a',
|
|
10444
10452
|
_extends._extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10445
10453
|
children
|
|
@@ -10504,12 +10512,12 @@ var getSerializers = function getSerializers() {
|
|
|
10504
10512
|
var node = _ref.node;
|
|
10505
10513
|
var url = node.url;
|
|
10506
10514
|
|
|
10507
|
-
return React__default[
|
|
10515
|
+
return React__default['default'].createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
10508
10516
|
},
|
|
10509
10517
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
10510
10518
|
var node = _ref2.node;
|
|
10511
10519
|
|
|
10512
|
-
return React__default[
|
|
10520
|
+
return React__default['default'].createElement(YouTubeGallery, {
|
|
10513
10521
|
nodes: node,
|
|
10514
10522
|
article: article,
|
|
10515
10523
|
meta: meta,
|
|
@@ -10523,7 +10531,7 @@ var getSerializers = function getSerializers() {
|
|
|
10523
10531
|
articleSeries: function articleSeries(_ref3) {
|
|
10524
10532
|
var node = _ref3.node;
|
|
10525
10533
|
|
|
10526
|
-
return React__default[
|
|
10534
|
+
return React__default['default'].createElement(ArticleSeries, {
|
|
10527
10535
|
nodes: node,
|
|
10528
10536
|
accountIDs: videoAccountIDs || {},
|
|
10529
10537
|
pageview: pageview,
|
|
@@ -10536,61 +10544,61 @@ var getSerializers = function getSerializers() {
|
|
|
10536
10544
|
figure: function figure(_ref4) {
|
|
10537
10545
|
var node = _ref4.node;
|
|
10538
10546
|
|
|
10539
|
-
return React__default[
|
|
10547
|
+
return React__default['default'].createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10540
10548
|
},
|
|
10541
10549
|
multifigure: function multifigure(_ref5) {
|
|
10542
10550
|
var node = _ref5.node;
|
|
10543
10551
|
|
|
10544
|
-
return React__default[
|
|
10552
|
+
return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10545
10553
|
},
|
|
10546
10554
|
slideshow: function slideshow(_ref6) {
|
|
10547
10555
|
var node = _ref6.node;
|
|
10548
10556
|
var slides = node.slides;
|
|
10549
10557
|
|
|
10550
|
-
return React__default[
|
|
10558
|
+
return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10551
10559
|
},
|
|
10552
10560
|
sidebar: function sidebar(_ref7) {
|
|
10553
10561
|
var node = _ref7.node;
|
|
10554
10562
|
var caption = node.caption,
|
|
10555
10563
|
content = node.content;
|
|
10556
10564
|
|
|
10557
|
-
return React__default[
|
|
10565
|
+
return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10558
10566
|
},
|
|
10559
10567
|
datatable: function datatable(_ref8) {
|
|
10560
10568
|
var node = _ref8.node;
|
|
10561
10569
|
var table = node.table;
|
|
10562
10570
|
|
|
10563
|
-
return React__default[
|
|
10571
|
+
return React__default['default'].createElement(TableShow, { rows: table.rows });
|
|
10564
10572
|
},
|
|
10565
10573
|
media: function media(_ref9) {
|
|
10566
10574
|
var node = _ref9.node;
|
|
10567
10575
|
|
|
10568
|
-
return React__default[
|
|
10576
|
+
return React__default['default'].createElement(Media, { node: node, client: client });
|
|
10569
10577
|
},
|
|
10570
10578
|
iframe: function iframe(_ref10) {
|
|
10571
10579
|
var node = _ref10.node;
|
|
10572
10580
|
|
|
10573
|
-
return React__default[
|
|
10581
|
+
return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10574
10582
|
},
|
|
10575
10583
|
video: function video(_ref11) {
|
|
10576
10584
|
var node = _ref11.node;
|
|
10577
10585
|
|
|
10578
|
-
return React__default[
|
|
10586
|
+
return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10579
10587
|
},
|
|
10580
10588
|
audio: function audio(_ref12) {
|
|
10581
10589
|
var node = _ref12.node;
|
|
10582
10590
|
|
|
10583
|
-
return React__default[
|
|
10591
|
+
return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10584
10592
|
},
|
|
10585
10593
|
poll: function poll(_ref13) {
|
|
10586
10594
|
var node = _ref13.node;
|
|
10587
10595
|
|
|
10588
|
-
return React__default[
|
|
10596
|
+
return React__default['default'].createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10589
10597
|
},
|
|
10590
10598
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10591
10599
|
var node = _ref14.node;
|
|
10592
10600
|
|
|
10593
|
-
return React__default[
|
|
10601
|
+
return React__default['default'].createElement(Poll, {
|
|
10594
10602
|
node: node,
|
|
10595
10603
|
client: client,
|
|
10596
10604
|
pageview: pageview,
|
|
@@ -10604,35 +10612,35 @@ var getSerializers = function getSerializers() {
|
|
|
10604
10612
|
var node = _ref15.node;
|
|
10605
10613
|
var quizzes = node.quizzes;
|
|
10606
10614
|
|
|
10607
|
-
return React__default[
|
|
10615
|
+
return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10608
10616
|
},
|
|
10609
10617
|
leads: function leads(_ref16) {
|
|
10610
10618
|
var node = _ref16.node;
|
|
10611
10619
|
var leadID = node.leadID;
|
|
10612
10620
|
|
|
10613
10621
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10614
|
-
return React__default[
|
|
10622
|
+
return React__default['default'].createElement(Leads, { url: url });
|
|
10615
10623
|
},
|
|
10616
10624
|
slideshows: function slideshows(_ref17) {
|
|
10617
10625
|
var node = _ref17.node;
|
|
10618
10626
|
|
|
10619
|
-
return React__default[
|
|
10627
|
+
return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10620
10628
|
},
|
|
10621
10629
|
nativeAd: function nativeAd(_ref18) {
|
|
10622
10630
|
var node = _ref18.node;
|
|
10623
10631
|
|
|
10624
|
-
return React__default[
|
|
10632
|
+
return React__default['default'].createElement(NativeAd, { node: node });
|
|
10625
10633
|
},
|
|
10626
10634
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10627
10635
|
var node = _ref19.node;
|
|
10628
10636
|
|
|
10629
|
-
return React__default[
|
|
10637
|
+
return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10630
10638
|
},
|
|
10631
10639
|
hrtag: function hrtag() {
|
|
10632
|
-
return React__default[
|
|
10640
|
+
return React__default['default'].createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10633
10641
|
},
|
|
10634
10642
|
brtag: function brtag() {
|
|
10635
|
-
return React__default[
|
|
10643
|
+
return React__default['default'].createElement('br', { className: 'line-break' });
|
|
10636
10644
|
},
|
|
10637
10645
|
formstack: function formstack(_ref20) {
|
|
10638
10646
|
var node = _ref20.node;
|
|
@@ -10640,30 +10648,30 @@ var getSerializers = function getSerializers() {
|
|
|
10640
10648
|
Caption = node.Caption,
|
|
10641
10649
|
needSegmentSupport = node.needSegmentSupport;
|
|
10642
10650
|
|
|
10643
|
-
return React__default[
|
|
10651
|
+
return React__default['default'].createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10644
10652
|
},
|
|
10645
10653
|
formassembly: FormAssembly,
|
|
10646
10654
|
digiohSmartTag: DigiohSmartTag,
|
|
10647
10655
|
multimedia: function multimedia(_ref21) {
|
|
10648
10656
|
var node = _ref21.node;
|
|
10649
10657
|
|
|
10650
|
-
return React__default[
|
|
10658
|
+
return React__default['default'].createElement(MultiMedia, { node: node, client: client });
|
|
10651
10659
|
},
|
|
10652
10660
|
blockTable: function blockTable(_ref22) {
|
|
10653
10661
|
var node = _ref22.node;
|
|
10654
|
-
return React__default[
|
|
10662
|
+
return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10655
10663
|
}
|
|
10656
10664
|
},
|
|
10657
10665
|
marks: {
|
|
10658
10666
|
superscript: function superscript(props) {
|
|
10659
|
-
return React__default[
|
|
10667
|
+
return React__default['default'].createElement(
|
|
10660
10668
|
'sup',
|
|
10661
10669
|
null,
|
|
10662
10670
|
props.children
|
|
10663
10671
|
);
|
|
10664
10672
|
},
|
|
10665
10673
|
subscript: function subscript(props) {
|
|
10666
|
-
return React__default[
|
|
10674
|
+
return React__default['default'].createElement(
|
|
10667
10675
|
'sub',
|
|
10668
10676
|
null,
|
|
10669
10677
|
props.children
|
|
@@ -10673,11 +10681,11 @@ var getSerializers = function getSerializers() {
|
|
|
10673
10681
|
var children = props.children,
|
|
10674
10682
|
mark = props.mark;
|
|
10675
10683
|
|
|
10676
|
-
return React__default[
|
|
10684
|
+
return React__default['default'].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
10677
10685
|
},
|
|
10678
10686
|
alignleft: function alignleft(_ref23) {
|
|
10679
10687
|
var children = _ref23.children;
|
|
10680
|
-
return React__default[
|
|
10688
|
+
return React__default['default'].createElement(
|
|
10681
10689
|
'div',
|
|
10682
10690
|
{ style: { textAlign: 'left' } },
|
|
10683
10691
|
children
|
|
@@ -10685,7 +10693,7 @@ var getSerializers = function getSerializers() {
|
|
|
10685
10693
|
},
|
|
10686
10694
|
alignright: function alignright(_ref24) {
|
|
10687
10695
|
var children = _ref24.children;
|
|
10688
|
-
return React__default[
|
|
10696
|
+
return React__default['default'].createElement(
|
|
10689
10697
|
'div',
|
|
10690
10698
|
{ style: { textAlign: 'right' } },
|
|
10691
10699
|
children
|
|
@@ -10693,7 +10701,7 @@ var getSerializers = function getSerializers() {
|
|
|
10693
10701
|
},
|
|
10694
10702
|
aligncenter: function aligncenter(_ref25) {
|
|
10695
10703
|
var children = _ref25.children;
|
|
10696
|
-
return React__default[
|
|
10704
|
+
return React__default['default'].createElement(
|
|
10697
10705
|
'div',
|
|
10698
10706
|
{ style: { textAlign: 'center' } },
|
|
10699
10707
|
children
|
|
@@ -10701,7 +10709,7 @@ var getSerializers = function getSerializers() {
|
|
|
10701
10709
|
},
|
|
10702
10710
|
alignjustify: function alignjustify(_ref26) {
|
|
10703
10711
|
var children = _ref26.children;
|
|
10704
|
-
return React__default[
|
|
10712
|
+
return React__default['default'].createElement(
|
|
10705
10713
|
'div',
|
|
10706
10714
|
{ style: { textAlign: 'justify' } },
|
|
10707
10715
|
children
|
|
@@ -10711,7 +10719,7 @@ var getSerializers = function getSerializers() {
|
|
|
10711
10719
|
var children = props.children,
|
|
10712
10720
|
color = props.mark.color;
|
|
10713
10721
|
|
|
10714
|
-
return React__default[
|
|
10722
|
+
return React__default['default'].createElement(
|
|
10715
10723
|
'span',
|
|
10716
10724
|
{ style: { color: color ? color.hex : null } },
|
|
10717
10725
|
children
|