@mjhls/mjh-framework 1.0.1003 → 1.0.1005-ce-test-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +6 -5
- package/dist/cjs/AD300x250x600.js +6 -5
- package/dist/cjs/AD728x90.js +7 -6
- package/dist/cjs/ADFloatingFooter.js +9 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +9 -8
- package/dist/cjs/{ADInfeed-ef933a08.js → ADInfeed-e87afe8a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +9 -8
- package/dist/cjs/ADSponsoredResources.js +9 -8
- package/dist/cjs/ADWebcast.js +9 -8
- package/dist/cjs/ADWelcome.js +13 -12
- package/dist/cjs/{ADlgInfeed-0e931f24.js → ADlgInfeed-b5a3d436.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +10 -9
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlgoliaSearch.js +902 -1451
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +18 -16
- package/dist/cjs/ArticleSeriesLandingPage.js +12 -11
- package/dist/cjs/ArticleSeriesListing.js +30 -29
- package/dist/cjs/Auth.js +85 -114
- package/dist/cjs/AuthWrapper.js +43 -113
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CEDeckSupabase.js +441 -0
- package/dist/cjs/CMEDeck.js +62 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +28 -27
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +50 -49
- package/dist/cjs/DeckContent.js +59 -58
- package/dist/cjs/DeckQueue.js +58 -57
- package/dist/cjs/DeckQueuePaginated.js +47 -46
- package/dist/cjs/{Dfp-67646058.js → Dfp-9be904d5.js} +18 -17
- package/dist/cjs/EventsDeck.js +93 -120
- package/dist/cjs/ExternalResources.js +38 -36
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +135 -134
- package/dist/cjs/GridContentPaginated.js +122 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +105 -105
- 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 +32 -30
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-6c00b878.js} +172 -212
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +23 -21
- package/dist/cjs/LeftNav.js +18 -17
- package/dist/cjs/MasterDeck.js +40 -39
- package/dist/cjs/MasterDeckPaginated.js +30 -29
- package/dist/cjs/{MediaSeriesCard-78f709ca.js → MediaSeriesCard-594c5edf.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +40 -38
- package/dist/cjs/MediaSeriesLandingPaginated.js +39 -37
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-4799de4b.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-6359861a.js → Pagination-2a3d0103.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +54 -51
- package/dist/cjs/PartnerDetailListingPaginated.js +53 -50
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +25 -23
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +14 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-5ccf9b13.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +246 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +223 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +19 -18
- package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-594b19eb.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-d2ab3d62.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +15 -13
- package/dist/cjs/TemplateNormal.js +28 -27
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-71754b2a.js → Tooltip-f075b7ef.js} +621 -704
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +32 -30
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +12 -11
- package/dist/cjs/VideoSeriesListing.js +47 -46
- package/dist/cjs/View.js +231 -224
- 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/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +10 -8
- package/dist/cjs/getTIData.js +61 -0
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-e4f1fe32.js → index-144b90c4.js} +637 -575
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
- package/dist/cjs/{index-7435b964.js → index-fc2f1ca2.js} +6 -471
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-1461604c.js} +14 -14
- package/dist/cjs/index.js +106 -102
- package/dist/cjs/{main-6054981e.js → main-f1c77adb.js} +22 -17
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -2
- package/dist/esm/AD300x250x600.js +3 -2
- package/dist/esm/AD728x90.js +3 -2
- package/dist/esm/ADFloatingFooter.js +3 -2
- package/dist/esm/ADGutter.js +3 -2
- package/dist/esm/ADSkyscraper.js +3 -2
- package/dist/esm/ADSponsoredResources.js +3 -2
- package/dist/esm/ADWebcast.js +3 -2
- package/dist/esm/ADWelcome.js +3 -2
- package/dist/esm/AdSlot.js +3 -2
- package/dist/esm/AdSlotsProvider.js +3 -2
- package/dist/esm/AlgoliaSearch.js +516 -1065
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +7 -5
- package/dist/esm/ArticleSeriesLandingPage.js +5 -4
- package/dist/esm/ArticleSeriesListing.js +3 -2
- package/dist/esm/Auth.js +11 -40
- package/dist/esm/AuthWrapper.js +16 -86
- package/dist/esm/CEDeckSupabase.js +435 -0
- package/dist/esm/CMEDeck.js +3 -2
- package/dist/esm/Column3.js +3 -2
- package/dist/esm/ContentCardPaginated.js +5 -4
- package/dist/esm/DeckContent.js +4 -3
- package/dist/esm/DeckQueue.js +3 -2
- package/dist/esm/DeckQueuePaginated.js +4 -3
- package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
- package/dist/esm/EventsDeck.js +4 -31
- package/dist/esm/ExternalResources.js +8 -6
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +5 -4
- package/dist/esm/GridContentPaginated.js +6 -5
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +7 -5
- package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-f84174cb.js} +117 -157
- package/dist/esm/IssueLanding.js +9 -7
- package/dist/esm/LeftNav.js +3 -2
- package/dist/esm/MasterDeck.js +5 -4
- package/dist/esm/MasterDeckPaginated.js +6 -5
- package/dist/esm/{MediaSeriesCard-db0176b5.js → MediaSeriesCard-f56c8274.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +11 -9
- package/dist/esm/MediaSeriesLandingPaginated.js +12 -10
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +11 -8
- package/dist/esm/PartnerDetailListingPaginated.js +12 -9
- package/dist/esm/PodcastsLanding.js +9 -7
- package/dist/esm/PubSection.js +5 -4
- package/dist/esm/QueueDeckExpanded.js +5 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +6 -5
- package/dist/esm/SeriesListingDeck.js +4 -3
- package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-f771e20d.js} +1 -1
- package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-165b4ae7.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +7 -5
- package/dist/esm/TemplateNormal.js +4 -3
- package/dist/esm/{Tooltip-8307d9d1.js → Tooltip-95655b44.js} +67 -150
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +7 -5
- package/dist/esm/VideoSeriesLandingPage.js +5 -4
- package/dist/esm/VideoSeriesListing.js +3 -2
- package/dist/esm/View.js +14 -7
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/defineProperty-8c30428f.js +32 -0
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +7 -5
- package/dist/esm/getTIData.js +59 -0
- package/dist/esm/{index-3bb56969.js → index-5d8b0a9d.js} +161 -99
- package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
- package/dist/esm/index.js +14 -10
- package/dist/esm/{main-9f6806ea.js → main-1894c974.js} +9 -4
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/package.json +3 -2
- package/dist/cjs/index-b95410f0.js +0 -54
- package/dist/esm/index-174b5baf.js +0 -52
- /package/dist/esm/{ADInfeed-f946441a.js → ADInfeed-5765a73a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-012e6f16.js → ADlgInfeed-5e36f317.js} +0 -0
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var reactBootstrap = require('react-bootstrap');
|
|
6
6
|
var urlFor = require('./urlFor.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-fc2f1ca2.js');
|
|
8
8
|
var Router = require('next/router');
|
|
9
9
|
var index$1 = require('./index-187c967e.js');
|
|
10
10
|
var PropTypes = require('prop-types');
|
|
@@ -12,15 +12,18 @@ 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
|
+
var core_getIteratorMethod = require('./core.get-iterator-method-5643aa10.js');
|
|
25
|
+
var _objectToArray = require('./_object-to-array-ce86cae7.js');
|
|
26
|
+
var keys = require('./keys-e982b3fa.js');
|
|
24
27
|
var Modal = require('react-bootstrap/Modal');
|
|
25
28
|
var Button = require('react-bootstrap/Button');
|
|
26
29
|
var Form = require('react-bootstrap/Form');
|
|
@@ -28,8 +31,6 @@ var ReactGA = require('react-ga');
|
|
|
28
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
29
32
|
var moment = require('./moment-aca40de1.js');
|
|
30
33
|
var SocialShare = require('./SocialShare.js');
|
|
31
|
-
var core_getIteratorMethod = require('./core.get-iterator-method-5643aa10.js');
|
|
32
|
-
var _objectToArray = require('./_object-to-array-ce86cae7.js');
|
|
33
34
|
var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
|
|
34
35
|
var Pagination = require('react-bootstrap/Pagination');
|
|
35
36
|
var entities = require('./entities-df1aed86.js');
|
|
@@ -66,7 +67,7 @@ var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
|
66
67
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
67
68
|
var pageNumber = selectedIndex + 1;
|
|
68
69
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
69
|
-
Router__default[
|
|
70
|
+
Router__default['default'].push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
var Slideshow$1 = function Slideshow(_ref) {
|
|
@@ -96,27 +97,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
96
97
|
if (pageview) pageview(router.asPath);
|
|
97
98
|
}, [router]);
|
|
98
99
|
|
|
99
|
-
return React__default[
|
|
100
|
+
return React__default['default'].createElement(
|
|
100
101
|
'div',
|
|
101
102
|
{ className: 'mt-3 mb-3' },
|
|
102
|
-
React__default[
|
|
103
|
+
React__default['default'].createElement(
|
|
103
104
|
reactBootstrap.Carousel,
|
|
104
105
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
105
106
|
return onChangeSlide(selectedIndex, router);
|
|
106
107
|
}, interval: null },
|
|
107
108
|
slides && slides.map(function (slide) {
|
|
108
|
-
return React__default[
|
|
109
|
+
return React__default['default'].createElement(
|
|
109
110
|
reactBootstrap.Carousel.Item,
|
|
110
111
|
{ key: slide._key },
|
|
111
|
-
React__default[
|
|
112
|
+
React__default['default'].createElement(
|
|
112
113
|
'picture',
|
|
113
114
|
null,
|
|
114
|
-
React__default[
|
|
115
|
-
React__default[
|
|
116
|
-
React__default[
|
|
117
|
-
React__default[
|
|
115
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
116
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
117
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
118
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
118
119
|
),
|
|
119
|
-
slide.caption && React__default[
|
|
120
|
+
slide.caption && React__default['default'].createElement(
|
|
120
121
|
'p',
|
|
121
122
|
{ className: 'p-2' },
|
|
122
123
|
slide.caption
|
|
@@ -1648,11 +1649,13 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1648
1649
|
|
|
1649
1650
|
function filterResetOptions(opts) {
|
|
1650
1651
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1651
|
-
|
|
1652
|
+
height: 0,
|
|
1653
|
+
width: 0,
|
|
1654
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1652
1655
|
autoplay: 0,
|
|
1653
1656
|
start: 0,
|
|
1654
1657
|
end: 0
|
|
1655
|
-
}
|
|
1658
|
+
})
|
|
1656
1659
|
});
|
|
1657
1660
|
}
|
|
1658
1661
|
/**
|
|
@@ -1667,7 +1670,7 @@ function filterResetOptions(opts) {
|
|
|
1667
1670
|
|
|
1668
1671
|
|
|
1669
1672
|
function shouldResetPlayer(prevProps, props) {
|
|
1670
|
-
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1673
|
+
return prevProps.videoId !== props.videoId || !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1671
1674
|
}
|
|
1672
1675
|
/**
|
|
1673
1676
|
* Check whether a props change should result in an id or className update.
|
|
@@ -1678,7 +1681,7 @@ function shouldResetPlayer(prevProps, props) {
|
|
|
1678
1681
|
|
|
1679
1682
|
|
|
1680
1683
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1681
|
-
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1684
|
+
return prevProps.id !== props.id || prevProps.className !== props.className || prevProps.opts.width !== props.opts.width || prevProps.opts.height !== props.opts.height || prevProps.title !== props.title;
|
|
1682
1685
|
}
|
|
1683
1686
|
|
|
1684
1687
|
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1765,6 +1768,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1765
1768
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1766
1769
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1767
1770
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1771
|
+
if (_this.props.opts && _this.props.opts.width) iframe.setAttribute('width', _this.props.opts.width);else iframe.removeAttribute('width');
|
|
1772
|
+
if (_this.props.opts && _this.props.opts.height) iframe.setAttribute('height', _this.props.opts.height);else iframe.removeAttribute('height');
|
|
1773
|
+
if (typeof _this.props.title === 'string') iframe.setAttribute('title', _this.props.title);else iframe.setAttribute('title', 'YouTube video player');
|
|
1768
1774
|
});
|
|
1769
1775
|
});
|
|
1770
1776
|
|
|
@@ -1858,18 +1864,19 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1858
1864
|
}, {
|
|
1859
1865
|
key: "render",
|
|
1860
1866
|
value: function render() {
|
|
1861
|
-
return /*#__PURE__*/React__default[
|
|
1867
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1862
1868
|
className: this.props.containerClassName
|
|
1863
|
-
}, /*#__PURE__*/React__default[
|
|
1869
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1864
1870
|
id: this.props.id,
|
|
1865
1871
|
className: this.props.className,
|
|
1866
|
-
ref: this.refContainer
|
|
1872
|
+
ref: this.refContainer,
|
|
1873
|
+
loading: this.props.loading
|
|
1867
1874
|
}));
|
|
1868
1875
|
}
|
|
1869
1876
|
}]);
|
|
1870
1877
|
|
|
1871
1878
|
return YouTube;
|
|
1872
|
-
}(React__default[
|
|
1879
|
+
}(React__default['default'].Component);
|
|
1873
1880
|
|
|
1874
1881
|
_defineProperty(YouTube, "PlayerState", {
|
|
1875
1882
|
UNSTARTED: -1,
|
|
@@ -1881,29 +1888,34 @@ _defineProperty(YouTube, "PlayerState", {
|
|
|
1881
1888
|
});
|
|
1882
1889
|
|
|
1883
1890
|
YouTube.propTypes = {
|
|
1884
|
-
videoId: PropTypes__default[
|
|
1891
|
+
videoId: PropTypes__default['default'].string,
|
|
1885
1892
|
// custom ID for player element
|
|
1886
|
-
id: PropTypes__default[
|
|
1893
|
+
id: PropTypes__default['default'].string,
|
|
1887
1894
|
// custom class name for player element
|
|
1888
|
-
className: PropTypes__default[
|
|
1895
|
+
className: PropTypes__default['default'].string,
|
|
1889
1896
|
// custom class name for player container element
|
|
1890
|
-
containerClassName: PropTypes__default[
|
|
1897
|
+
containerClassName: PropTypes__default['default'].string,
|
|
1898
|
+
// custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
|
|
1899
|
+
title: PropTypes__default['default'].string,
|
|
1900
|
+
// custom loading for player element
|
|
1901
|
+
loading: PropTypes__default['default'].oneOf(['lazy', 'eager', 'auto']),
|
|
1891
1902
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1892
|
-
opts: PropTypes__default[
|
|
1903
|
+
opts: PropTypes__default['default'].objectOf(PropTypes__default['default'].any),
|
|
1893
1904
|
// 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[
|
|
1905
|
+
onReady: PropTypes__default['default'].func,
|
|
1906
|
+
onError: PropTypes__default['default'].func,
|
|
1907
|
+
onPlay: PropTypes__default['default'].func,
|
|
1908
|
+
onPause: PropTypes__default['default'].func,
|
|
1909
|
+
onEnd: PropTypes__default['default'].func,
|
|
1910
|
+
onStateChange: PropTypes__default['default'].func,
|
|
1911
|
+
onPlaybackRateChange: PropTypes__default['default'].func,
|
|
1912
|
+
onPlaybackQualityChange: PropTypes__default['default'].func
|
|
1902
1913
|
};
|
|
1903
1914
|
YouTube.defaultProps = {
|
|
1904
1915
|
videoId: null,
|
|
1905
1916
|
id: null,
|
|
1906
1917
|
className: null,
|
|
1918
|
+
loading: null,
|
|
1907
1919
|
opts: {},
|
|
1908
1920
|
containerClassName: '',
|
|
1909
1921
|
onReady: function onReady() {},
|
|
@@ -1913,7 +1925,8 @@ YouTube.defaultProps = {
|
|
|
1913
1925
|
onEnd: function onEnd() {},
|
|
1914
1926
|
onStateChange: function onStateChange() {},
|
|
1915
1927
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1916
|
-
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1928
|
+
onPlaybackQualityChange: function onPlaybackQualityChange() {},
|
|
1929
|
+
title: null
|
|
1917
1930
|
};
|
|
1918
1931
|
|
|
1919
1932
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
@@ -2016,11 +2029,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2016
2029
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2017
2030
|
};
|
|
2018
2031
|
|
|
2019
|
-
return React__default[
|
|
2032
|
+
return React__default['default'].createElement(
|
|
2020
2033
|
'div',
|
|
2021
2034
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
React__default[
|
|
2023
|
-
React__default[
|
|
2035
|
+
React__default['default'].createElement(YouTube, { className: 'fluid-iframe', loading: 'lazy', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2036
|
+
React__default['default'].createElement(
|
|
2024
2037
|
'style',
|
|
2025
2038
|
{ jsx: 'true' },
|
|
2026
2039
|
'\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 +2046,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2046
|
content = _ref.content,
|
|
2034
2047
|
getSerializers = _ref.getSerializers;
|
|
2035
2048
|
|
|
2036
|
-
return React__default[
|
|
2049
|
+
return React__default['default'].createElement(
|
|
2037
2050
|
'article',
|
|
2038
2051
|
{ className: 'sidebar' },
|
|
2039
|
-
React__default[
|
|
2052
|
+
React__default['default'].createElement(
|
|
2040
2053
|
'div',
|
|
2041
2054
|
null,
|
|
2042
|
-
React__default[
|
|
2055
|
+
React__default['default'].createElement(
|
|
2043
2056
|
'h3',
|
|
2044
2057
|
null,
|
|
2045
2058
|
caption
|
|
2046
2059
|
),
|
|
2047
|
-
React__default[
|
|
2060
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2061
|
),
|
|
2049
|
-
React__default[
|
|
2062
|
+
React__default['default'].createElement(
|
|
2050
2063
|
'style',
|
|
2051
2064
|
{ jsx: 'true' },
|
|
2052
2065
|
'\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 +2070,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2070
|
var TableShow = function TableShow(_ref) {
|
|
2058
2071
|
var rows = _ref.rows;
|
|
2059
2072
|
|
|
2060
|
-
return React__default[
|
|
2073
|
+
return React__default['default'].createElement(
|
|
2061
2074
|
reactBootstrap.Table,
|
|
2062
2075
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
React__default[
|
|
2076
|
+
React__default['default'].createElement(
|
|
2064
2077
|
'tbody',
|
|
2065
2078
|
null,
|
|
2066
2079
|
rows && rows.map(function (row) {
|
|
2067
|
-
return React__default[
|
|
2080
|
+
return React__default['default'].createElement(
|
|
2068
2081
|
'tr',
|
|
2069
2082
|
{ key: row._key },
|
|
2070
2083
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell && React__default[
|
|
2084
|
+
return cell && React__default['default'].createElement(
|
|
2072
2085
|
'td',
|
|
2073
2086
|
{ key: index },
|
|
2074
2087
|
cell
|
|
@@ -2166,25 +2179,25 @@ var Media = function Media(_ref) {
|
|
|
2166
2179
|
margin: imageMargin
|
|
2167
2180
|
};
|
|
2168
2181
|
|
|
2169
|
-
return React__default[
|
|
2182
|
+
return React__default['default'].createElement(
|
|
2170
2183
|
reactBootstrap.Figure,
|
|
2171
2184
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2172
|
-
React__default[
|
|
2185
|
+
React__default['default'].createElement(
|
|
2173
2186
|
'a',
|
|
2174
2187
|
{ href: urlForFile.urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2175
|
-
React__default[
|
|
2188
|
+
React__default['default'].createElement(
|
|
2176
2189
|
index$2.LazyLoad,
|
|
2177
2190
|
{ once: true },
|
|
2178
|
-
React__default[
|
|
2191
|
+
React__default['default'].createElement(
|
|
2179
2192
|
'picture',
|
|
2180
2193
|
null,
|
|
2181
|
-
React__default[
|
|
2182
|
-
React__default[
|
|
2183
|
-
React__default[
|
|
2184
|
-
React__default[
|
|
2194
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2195
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2196
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2197
|
+
React__default['default'].createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
2198
|
)
|
|
2186
2199
|
),
|
|
2187
|
-
caption && React__default[
|
|
2200
|
+
caption && React__default['default'].createElement(
|
|
2188
2201
|
reactBootstrap.Figure.Caption,
|
|
2189
2202
|
{ className: 'media-caption' },
|
|
2190
2203
|
caption
|
|
@@ -2192,7 +2205,7 @@ var Media = function Media(_ref) {
|
|
|
2192
2205
|
)
|
|
2193
2206
|
);
|
|
2194
2207
|
} else if (caption && caption !== '') {
|
|
2195
|
-
return React__default[
|
|
2208
|
+
return React__default['default'].createElement(
|
|
2196
2209
|
'a',
|
|
2197
2210
|
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2211
|
href: urlForFile.urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2212,42 +2225,60 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2225
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2213
2226
|
|
|
2214
2227
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2215
|
-
return React__default[
|
|
2228
|
+
return React__default['default'].createElement(
|
|
2216
2229
|
'div',
|
|
2217
2230
|
{ className: 'd-block text-center mb-3' },
|
|
2218
|
-
React__default[
|
|
2231
|
+
React__default['default'].createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2219
2232
|
);
|
|
2220
2233
|
};
|
|
2221
2234
|
|
|
2235
|
+
// https://github.com/tc39/proposal-object-values-entries
|
|
2236
|
+
|
|
2237
|
+
var $values = _objectToArray._objectToArray(false);
|
|
2238
|
+
|
|
2239
|
+
core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
2240
|
+
values: function values(it) {
|
|
2241
|
+
return $values(it);
|
|
2242
|
+
}
|
|
2243
|
+
});
|
|
2244
|
+
|
|
2245
|
+
var values$1 = core_getIteratorMethod._core.Object.values;
|
|
2246
|
+
|
|
2247
|
+
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
2248
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
2249
|
+
});
|
|
2250
|
+
|
|
2251
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
2252
|
+
|
|
2222
2253
|
var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
2223
2254
|
var question = _ref.question,
|
|
2224
2255
|
choices = _ref.choices,
|
|
2225
2256
|
handlePollAnswer = _ref.handlePollAnswer;
|
|
2226
2257
|
|
|
2227
2258
|
var choiceArray = choices.map(function (choice) {
|
|
2228
|
-
return React__default[
|
|
2259
|
+
return React__default['default'].createElement(Form__default['default'].Check, {
|
|
2229
2260
|
inline: true,
|
|
2230
2261
|
label: choice.choiceText,
|
|
2231
2262
|
value: choice.choiceText,
|
|
2232
|
-
name:
|
|
2263
|
+
name: question,
|
|
2233
2264
|
type: 'radio',
|
|
2234
2265
|
className: 'radioButton',
|
|
2235
2266
|
onClick: handlePollAnswer
|
|
2236
2267
|
});
|
|
2237
2268
|
});
|
|
2238
|
-
return React__default[
|
|
2269
|
+
return React__default['default'].createElement(
|
|
2239
2270
|
'div',
|
|
2240
2271
|
{
|
|
2241
2272
|
key: 'inline-radio',
|
|
2242
2273
|
className: 'radioContainer' },
|
|
2243
|
-
React__default[
|
|
2274
|
+
React__default['default'].createElement(
|
|
2244
2275
|
'h2',
|
|
2245
2276
|
{
|
|
2246
2277
|
className: 'radioLabelText'
|
|
2247
2278
|
},
|
|
2248
2279
|
question
|
|
2249
2280
|
),
|
|
2250
|
-
React__default[
|
|
2281
|
+
React__default['default'].createElement(
|
|
2251
2282
|
'div',
|
|
2252
2283
|
{
|
|
2253
2284
|
className: 'multiChoiceDiv'
|
|
@@ -2262,19 +2293,19 @@ var PopupPollTextInput = function PopupPollTextInput(_ref) {
|
|
|
2262
2293
|
textAnswer = _ref.textAnswer,
|
|
2263
2294
|
handleTextAnswer = _ref.handleTextAnswer;
|
|
2264
2295
|
|
|
2265
|
-
return React__default[
|
|
2296
|
+
return React__default['default'].createElement(
|
|
2266
2297
|
'div',
|
|
2267
2298
|
{
|
|
2268
2299
|
className: 'textInputDiv'
|
|
2269
2300
|
},
|
|
2270
|
-
React__default[
|
|
2301
|
+
React__default['default'].createElement(
|
|
2271
2302
|
'h2',
|
|
2272
2303
|
{
|
|
2273
2304
|
className: 'textInputQuestion'
|
|
2274
2305
|
},
|
|
2275
2306
|
textInputQuestion
|
|
2276
2307
|
),
|
|
2277
|
-
React__default[
|
|
2308
|
+
React__default['default'].createElement(Form__default['default'].Control, {
|
|
2278
2309
|
type: 'text',
|
|
2279
2310
|
className: 'textInput',
|
|
2280
2311
|
value: textAnswer,
|
|
@@ -2299,10 +2330,15 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2299
2330
|
pollAnswer = _useState2[0],
|
|
2300
2331
|
setPollAnswer = _useState2[1];
|
|
2301
2332
|
|
|
2302
|
-
var _useState3 = React.useState(
|
|
2333
|
+
var _useState3 = React.useState({}),
|
|
2303
2334
|
_useState4 = slicedToArray._slicedToArray(_useState3, 2),
|
|
2304
|
-
|
|
2305
|
-
|
|
2335
|
+
multiItemPollAnswers = _useState4[0],
|
|
2336
|
+
setMultiItemPollAnswers = _useState4[1];
|
|
2337
|
+
|
|
2338
|
+
var _useState5 = React.useState(''),
|
|
2339
|
+
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
2340
|
+
textAnswer = _useState6[0],
|
|
2341
|
+
setTextAnswer = _useState6[1];
|
|
2306
2342
|
|
|
2307
2343
|
React.useEffect(function () {
|
|
2308
2344
|
var modal = document.getElementById('modalDiv');
|
|
@@ -2317,101 +2353,129 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2317
2353
|
setPollAnswer(e.target.value);
|
|
2318
2354
|
};
|
|
2319
2355
|
|
|
2356
|
+
var handleMultiItemPollAnswers = function handleMultiItemPollAnswers(e) {
|
|
2357
|
+
var question = e.target.name;
|
|
2358
|
+
var answer = e.target.value;
|
|
2359
|
+
var tempObj = {};
|
|
2360
|
+
tempObj[question] = answer;
|
|
2361
|
+
setMultiItemPollAnswers(function (prev) {
|
|
2362
|
+
return _extends._extends({}, prev, tempObj);
|
|
2363
|
+
});
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2320
2366
|
var handleSubmit = function handleSubmit(e) {
|
|
2321
2367
|
var currentDate = new Date(Date.now()).toUTCString();
|
|
2322
2368
|
// eslint-disable-next-line no-undef
|
|
2323
2369
|
var anonymousID = typeof analytics !== 'undefined' && typeof analytics.user === 'function' && analytics.user() && analytics.user().anonymousId();
|
|
2370
|
+
var formData = {};
|
|
2371
|
+
|
|
2324
2372
|
pollItems.forEach(function (item) {
|
|
2325
|
-
|
|
2326
|
-
if (item.format === 'multiChoice') submitAnswer = pollAnswer;
|
|
2327
|
-
if (item.format === 'textInput') submitAnswer = textAnswer;
|
|
2328
|
-
var formData = {
|
|
2373
|
+
formData = {
|
|
2329
2374
|
uuid: anonymousID,
|
|
2330
2375
|
url: pollUrl,
|
|
2331
2376
|
date: currentDate,
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
};
|
|
2335
|
-
var requestOptions = {
|
|
2336
|
-
method: 'POST',
|
|
2337
|
-
headers: { 'content-type': 'application/json' },
|
|
2338
|
-
body: stringify._JSON$stringify({ data: formData })
|
|
2377
|
+
questionsArray: keys._Object$keys(multiItemPollAnswers),
|
|
2378
|
+
answersArray: _Object$values(multiItemPollAnswers)
|
|
2339
2379
|
};
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2380
|
+
item.question ? formData.question = item.question : null;
|
|
2381
|
+
pollAnswer && item.format === 'multiChoice' ? formData.answer = pollAnswer : pollAnswer && item.format === 'textInput' ? formData.answer = textAnswer : null;
|
|
2382
|
+
keys._Object$keys(multiItemPollAnswers).length > 0 ? formData.multiItemQandA = multiItemPollAnswers : null;
|
|
2383
|
+
});
|
|
2384
|
+
var requestOptions = {
|
|
2385
|
+
method: 'POST',
|
|
2386
|
+
headers: { 'content-type': 'application/json' },
|
|
2387
|
+
body: stringify._JSON$stringify({ data: formData })
|
|
2388
|
+
};
|
|
2389
|
+
var insertData = function () {
|
|
2390
|
+
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
2391
|
+
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
2392
|
+
while (1) {
|
|
2393
|
+
switch (_context.prev = _context.next) {
|
|
2394
|
+
case 0:
|
|
2395
|
+
_context.prev = 0;
|
|
2396
|
+
_context.next = 3;
|
|
2397
|
+
return fetch('/api/popup_polls', requestOptions).then(function (res) {
|
|
2398
|
+
return res.json();
|
|
2399
|
+
}).then(function (res) {
|
|
2400
|
+
return console.log(res);
|
|
2401
|
+
});
|
|
2402
|
+
|
|
2403
|
+
case 3:
|
|
2404
|
+
_context.next = 8;
|
|
2405
|
+
break;
|
|
2406
|
+
|
|
2407
|
+
case 5:
|
|
2408
|
+
_context.prev = 5;
|
|
2409
|
+
_context.t0 = _context['catch'](0);
|
|
2410
|
+
|
|
2411
|
+
if (_context.t0) console.log('There was an error in insertData in PopupPollModal.js: ' + _context.t0);
|
|
2412
|
+
|
|
2413
|
+
case 8:
|
|
2414
|
+
case 'end':
|
|
2415
|
+
return _context.stop();
|
|
2368
2416
|
}
|
|
2369
|
-
}
|
|
2370
|
-
})
|
|
2417
|
+
}
|
|
2418
|
+
}, _callee, _this, [[0, 5]]);
|
|
2419
|
+
}));
|
|
2371
2420
|
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
});
|
|
2421
|
+
return function insertData() {
|
|
2422
|
+
return _ref.apply(this, arguments);
|
|
2423
|
+
};
|
|
2424
|
+
}();
|
|
2425
|
+
// console.log('formData', formData)
|
|
2426
|
+
insertData();
|
|
2379
2427
|
restartPlayer();
|
|
2380
|
-
// setIsPollingTime(false)
|
|
2381
2428
|
e.preventDefault();
|
|
2382
2429
|
};
|
|
2383
2430
|
|
|
2384
2431
|
var pollArray = [];
|
|
2432
|
+
|
|
2385
2433
|
pollItems.forEach(function (item, ind) {
|
|
2386
|
-
if (item.
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2434
|
+
if (!item.atStart) {
|
|
2435
|
+
if (item.format === 'multiChoice') {
|
|
2436
|
+
pollArray.push(React__default['default'].createElement(PopupMultiChoice, { question: item.question, choices: item.choices, handlePollAnswer: handlePollAnswer, key: ind }));
|
|
2437
|
+
}
|
|
2438
|
+
if (item.format === 'textInput') {
|
|
2439
|
+
pollArray.push(React__default['default'].createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2440
|
+
}
|
|
2441
|
+
} else {
|
|
2442
|
+
if (item.pollItems[0] && item.pollItems[0].format === 'multiChoice') {
|
|
2443
|
+
pollArray.push(React__default['default'].createElement(PopupMultiChoice, { question: item.pollItems[0].question, choices: item.pollItems[0].choices, handlePollAnswer: handleMultiItemPollAnswers, key: ind }));
|
|
2444
|
+
}
|
|
2445
|
+
if (item.pollItems[0] && item.pollItems[0].format === 'textInput') {
|
|
2446
|
+
pollArray.push(React__default['default'].createElement(PopupPollTextInput, { textInputQuestion: item.pollItems[0].question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2447
|
+
}
|
|
2391
2448
|
}
|
|
2392
2449
|
});
|
|
2393
2450
|
|
|
2394
|
-
return React__default[
|
|
2451
|
+
return React__default['default'].createElement(
|
|
2395
2452
|
'div',
|
|
2396
2453
|
{ className: 'modalDiv', id: 'modalDiv' },
|
|
2397
|
-
React__default[
|
|
2398
|
-
Modal__default[
|
|
2399
|
-
null,
|
|
2400
|
-
React__default[
|
|
2401
|
-
|
|
2454
|
+
React__default['default'].createElement(
|
|
2455
|
+
Modal__default['default'].Dialog,
|
|
2456
|
+
{ className: pollItems.length > 1 ? 'modal-dialog-overflow' : null, scrollable: pollItems.length > 1 },
|
|
2457
|
+
props.closeable && React__default['default'].createElement(Modal__default['default'].Header, { closeButton: true, onClick: function onClick() {
|
|
2458
|
+
return restartPlayer();
|
|
2459
|
+
} }),
|
|
2460
|
+
React__default['default'].createElement(
|
|
2461
|
+
Modal__default['default'].Body,
|
|
2402
2462
|
null,
|
|
2403
|
-
React__default[
|
|
2404
|
-
Form__default[
|
|
2463
|
+
React__default['default'].createElement(
|
|
2464
|
+
Form__default['default'],
|
|
2405
2465
|
{ onSubmit: handleSubmit, className: 'modalForm' },
|
|
2406
2466
|
pollArray,
|
|
2407
|
-
textInputRender && !multiChoiceRender ? React__default[
|
|
2408
|
-
Button__default[
|
|
2467
|
+
textInputRender && !multiChoiceRender ? React__default['default'].createElement(
|
|
2468
|
+
Button__default['default'],
|
|
2409
2469
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !textAnswer },
|
|
2410
2470
|
'Submit'
|
|
2411
|
-
) : React__default[
|
|
2412
|
-
Button__default[
|
|
2471
|
+
) : !textInputRender && multiChoiceRender ? React__default['default'].createElement(
|
|
2472
|
+
Button__default['default'],
|
|
2413
2473
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
2414
2474
|
'Submit'
|
|
2475
|
+
) : React__default['default'].createElement(
|
|
2476
|
+
Button__default['default'],
|
|
2477
|
+
{ className: 'submitButton', type: 'submit', variant: 'success' },
|
|
2478
|
+
'Submit'
|
|
2415
2479
|
)
|
|
2416
2480
|
)
|
|
2417
2481
|
)
|
|
@@ -2572,10 +2636,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2572
2636
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2573
2637
|
};
|
|
2574
2638
|
|
|
2575
|
-
return React__default[
|
|
2639
|
+
return React__default['default'].createElement(
|
|
2576
2640
|
'div',
|
|
2577
2641
|
null,
|
|
2578
|
-
isPollingTime ? React__default[
|
|
2642
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2579
2643
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2580
2644
|
, { pollItems: pollItems
|
|
2581
2645
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2589,7 +2653,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2589
2653
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2590
2654
|
, multiChoiceRender: multiChoiceRender
|
|
2591
2655
|
}) : null,
|
|
2592
|
-
vidLoaded && React__default[
|
|
2656
|
+
vidLoaded && React__default['default'].createElement(
|
|
2593
2657
|
'video',
|
|
2594
2658
|
{
|
|
2595
2659
|
poster: thumbnail || '',
|
|
@@ -2607,7 +2671,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2607
2671
|
onPlay: function onPlay(e) {
|
|
2608
2672
|
return handleOnPlay(e);
|
|
2609
2673
|
} },
|
|
2610
|
-
React__default[
|
|
2674
|
+
React__default['default'].createElement('source', { src: url, type: 'video/mp4' }),
|
|
2611
2675
|
'Your browser does not support the video tag.'
|
|
2612
2676
|
)
|
|
2613
2677
|
);
|
|
@@ -2630,6 +2694,7 @@ var Video = function Video(_ref) {
|
|
|
2630
2694
|
experienceID = node.experienceID;
|
|
2631
2695
|
|
|
2632
2696
|
var polls = void 0;
|
|
2697
|
+
|
|
2633
2698
|
if (node.polls) polls = node.polls;
|
|
2634
2699
|
|
|
2635
2700
|
var _useState = React.useState(false),
|
|
@@ -2674,10 +2739,16 @@ var Video = function Video(_ref) {
|
|
|
2674
2739
|
return minutes * 60 + seconds;
|
|
2675
2740
|
};
|
|
2676
2741
|
var modalTimes = [];
|
|
2742
|
+
var initPolls = [];
|
|
2743
|
+
var nonInitPolls = [];
|
|
2677
2744
|
if (polls) {
|
|
2678
2745
|
polls.forEach(function (pollObj) {
|
|
2679
|
-
return modalTimes.push(convertTime(pollObj.timestamp));
|
|
2746
|
+
return pollObj.timestamp !== '0:00' && pollObj.timestamp !== '00:00' ? modalTimes.push(convertTime(pollObj.timestamp)) : null;
|
|
2747
|
+
});
|
|
2748
|
+
polls.forEach(function (pollObj) {
|
|
2749
|
+
return pollObj.atStart ? initPolls.push(pollObj) : nonInitPolls.push(pollObj);
|
|
2680
2750
|
});
|
|
2751
|
+
if (nonInitPolls.length > 0) polls = nonInitPolls;
|
|
2681
2752
|
}
|
|
2682
2753
|
|
|
2683
2754
|
var restartPlayer = function restartPlayer() {
|
|
@@ -2752,7 +2823,14 @@ var Video = function Video(_ref) {
|
|
|
2752
2823
|
return _ref2.apply(this, arguments);
|
|
2753
2824
|
};
|
|
2754
2825
|
}();
|
|
2755
|
-
|
|
2826
|
+
// console.log('initPolls', initPolls)
|
|
2827
|
+
if (initPolls.length > 0) {
|
|
2828
|
+
player.pause();
|
|
2829
|
+
setPollItems(initPolls);
|
|
2830
|
+
setPollUrl(targeting.document_url[0]);
|
|
2831
|
+
setIsPollingTime(true);
|
|
2832
|
+
initPolls = [];
|
|
2833
|
+
}
|
|
2756
2834
|
if (autoplay) {
|
|
2757
2835
|
autoPlayVideo();
|
|
2758
2836
|
}
|
|
@@ -2760,20 +2838,15 @@ var Video = function Video(_ref) {
|
|
|
2760
2838
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2761
2839
|
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2762
2840
|
});
|
|
2763
|
-
|
|
2764
|
-
// const convertTime = (timeStr) => {
|
|
2765
|
-
// const minutes = parseInt(timeStr.slice(0, 2))
|
|
2766
|
-
// const seconds = parseInt(timeStr.slice(3))
|
|
2767
|
-
// return minutes * 60 + seconds
|
|
2768
|
-
// }
|
|
2769
|
-
// const modalTimes = []
|
|
2770
|
-
// polls.forEach(pollObj => modalTimes.push(convertTime(pollObj.timestamp)))
|
|
2841
|
+
|
|
2771
2842
|
player.on('play', function (evt) {
|
|
2843
|
+
console.log('in player.on');
|
|
2772
2844
|
var duration = player.mediainfo.duration;
|
|
2773
2845
|
var current = player.currentTime();
|
|
2774
2846
|
var queue = Math.floor(duration / 10);
|
|
2775
2847
|
var segment = Math.floor(current / queue);
|
|
2776
|
-
|
|
2848
|
+
|
|
2849
|
+
if (polls && initPolls.length === 0) {
|
|
2777
2850
|
var vidPlayer = this;
|
|
2778
2851
|
intId = setInterval(function () {
|
|
2779
2852
|
var ct = player.currentTime();
|
|
@@ -2858,10 +2931,10 @@ var Video = function Video(_ref) {
|
|
|
2858
2931
|
|
|
2859
2932
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2860
2933
|
if (videoID) {
|
|
2861
|
-
return React__default[
|
|
2934
|
+
return React__default['default'].createElement(
|
|
2862
2935
|
'div',
|
|
2863
2936
|
null,
|
|
2864
|
-
isPollingTime ? React__default[
|
|
2937
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2865
2938
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2866
2939
|
, { pollItems: pollItems
|
|
2867
2940
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2874,8 +2947,10 @@ var Video = function Video(_ref) {
|
|
|
2874
2947
|
, textInputRender: textInputRender
|
|
2875
2948
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2876
2949
|
, multiChoiceRender: multiChoiceRender
|
|
2950
|
+
// eslint-disable-next-line react/jsx-indent-props
|
|
2951
|
+
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
2877
2952
|
}) : null,
|
|
2878
|
-
React__default[
|
|
2953
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2879
2954
|
onSuccess: onVideoSuccess,
|
|
2880
2955
|
onFailure: onVideoFailure,
|
|
2881
2956
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2883,17 +2958,17 @@ var Video = function Video(_ref) {
|
|
|
2883
2958
|
playerId: accountIDs.brightcove.playerId,
|
|
2884
2959
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2885
2960
|
}),
|
|
2886
|
-
React__default[
|
|
2961
|
+
React__default['default'].createElement(
|
|
2887
2962
|
'style',
|
|
2888
2963
|
{ jsx: 'true' },
|
|
2889
2964
|
'\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
2965
|
)
|
|
2891
2966
|
);
|
|
2892
2967
|
} else if (playlistID) {
|
|
2893
|
-
return React__default[
|
|
2968
|
+
return React__default['default'].createElement(
|
|
2894
2969
|
'div',
|
|
2895
2970
|
null,
|
|
2896
|
-
isPollingTime ? React__default[
|
|
2971
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2897
2972
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2898
2973
|
, { pollItems: pollItems
|
|
2899
2974
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2906,8 +2981,10 @@ var Video = function Video(_ref) {
|
|
|
2906
2981
|
, textInputRender: textInputRender
|
|
2907
2982
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2908
2983
|
, multiChoiceRender: multiChoiceRender
|
|
2984
|
+
// eslint-disable-next-line react/jsx-indent-props
|
|
2985
|
+
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
2909
2986
|
}) : null,
|
|
2910
|
-
React__default[
|
|
2987
|
+
React__default['default'].createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2911
2988
|
accountId: accountIDs.brightcove.accountId,
|
|
2912
2989
|
playlistId: playlistID,
|
|
2913
2990
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2915,18 +2992,18 @@ var Video = function Video(_ref) {
|
|
|
2915
2992
|
onFailure: onVideoFailure,
|
|
2916
2993
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2917
2994
|
}),
|
|
2918
|
-
React__default[
|
|
2995
|
+
React__default['default'].createElement(
|
|
2919
2996
|
'style',
|
|
2920
2997
|
{ jsx: 'true' },
|
|
2921
2998
|
'\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
2999
|
)
|
|
2923
3000
|
);
|
|
2924
3001
|
} else if (experienceID) {
|
|
2925
|
-
return React__default[
|
|
3002
|
+
return React__default['default'].createElement(
|
|
2926
3003
|
'div',
|
|
2927
3004
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2928
|
-
React__default[
|
|
2929
|
-
isPollingTime ? React__default[
|
|
3005
|
+
React__default['default'].createElement('div', { 'data-experience': experienceID }),
|
|
3006
|
+
isPollingTime ? React__default['default'].createElement(PopupPollModal
|
|
2930
3007
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2931
3008
|
, { pollItems: pollItems
|
|
2932
3009
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2939,6 +3016,9 @@ var Video = function Video(_ref) {
|
|
|
2939
3016
|
, textInputRender: textInputRender
|
|
2940
3017
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2941
3018
|
, multiChoiceRender: multiChoiceRender
|
|
3019
|
+
// eslint-disable-next-line react/jsx-indent-props
|
|
3020
|
+
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
3021
|
+
|
|
2942
3022
|
}) : null
|
|
2943
3023
|
);
|
|
2944
3024
|
}
|
|
@@ -2946,10 +3026,10 @@ var Video = function Video(_ref) {
|
|
|
2946
3026
|
}
|
|
2947
3027
|
|
|
2948
3028
|
if (source === 'mp4') {
|
|
2949
|
-
return React__default[
|
|
3029
|
+
return React__default['default'].createElement(
|
|
2950
3030
|
'div',
|
|
2951
3031
|
null,
|
|
2952
|
-
React__default[
|
|
3032
|
+
React__default['default'].createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true, polls: polls, modalTimes: modalTimes, targetingUrl: targeting.document_url[0] })
|
|
2953
3033
|
);
|
|
2954
3034
|
}
|
|
2955
3035
|
|
|
@@ -2964,7 +3044,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2964
3044
|
});
|
|
2965
3045
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2966
3046
|
|
|
2967
|
-
var _propTypes = _interopRequireDefault(PropTypes__default[
|
|
3047
|
+
var _propTypes = _interopRequireDefault(PropTypes__default['default']);
|
|
2968
3048
|
|
|
2969
3049
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2970
3050
|
|
|
@@ -3554,7 +3634,7 @@ function isEqual(a, b) {
|
|
|
3554
3634
|
return true;
|
|
3555
3635
|
}
|
|
3556
3636
|
|
|
3557
|
-
if ((0, React__default[
|
|
3637
|
+
if ((0, React__default['default'].isValidElement)(a) && (0, React__default['default'].isValidElement)(b)) {
|
|
3558
3638
|
return true;
|
|
3559
3639
|
}
|
|
3560
3640
|
|
|
@@ -3616,7 +3696,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3616
3696
|
});
|
|
3617
3697
|
exports["default"] = void 0;
|
|
3618
3698
|
|
|
3619
|
-
var _react = _interopRequireWildcard(React__default[
|
|
3699
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
3620
3700
|
|
|
3621
3701
|
|
|
3622
3702
|
|
|
@@ -4026,7 +4106,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4026
4106
|
});
|
|
4027
4107
|
exports["default"] = createSinglePlayer;
|
|
4028
4108
|
|
|
4029
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4109
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4030
4110
|
|
|
4031
4111
|
|
|
4032
4112
|
|
|
@@ -4184,7 +4264,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4184
4264
|
});
|
|
4185
4265
|
exports["default"] = exports.YouTube = void 0;
|
|
4186
4266
|
|
|
4187
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4267
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4188
4268
|
|
|
4189
4269
|
|
|
4190
4270
|
|
|
@@ -4493,7 +4573,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4493
4573
|
});
|
|
4494
4574
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4495
4575
|
|
|
4496
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4576
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4497
4577
|
|
|
4498
4578
|
|
|
4499
4579
|
|
|
@@ -4710,7 +4790,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4710
4790
|
});
|
|
4711
4791
|
exports["default"] = exports.Vimeo = void 0;
|
|
4712
4792
|
|
|
4713
|
-
var _react = _interopRequireWildcard(React__default[
|
|
4793
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4714
4794
|
|
|
4715
4795
|
|
|
4716
4796
|
|
|
@@ -4966,7 +5046,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4966
5046
|
});
|
|
4967
5047
|
exports["default"] = exports.Facebook = void 0;
|
|
4968
5048
|
|
|
4969
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5049
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
4970
5050
|
|
|
4971
5051
|
|
|
4972
5052
|
|
|
@@ -5178,7 +5258,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5178
5258
|
});
|
|
5179
5259
|
exports["default"] = exports.Streamable = void 0;
|
|
5180
5260
|
|
|
5181
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5261
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5182
5262
|
|
|
5183
5263
|
|
|
5184
5264
|
|
|
@@ -5389,7 +5469,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5389
5469
|
});
|
|
5390
5470
|
exports["default"] = exports.Wistia = void 0;
|
|
5391
5471
|
|
|
5392
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5472
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5393
5473
|
|
|
5394
5474
|
|
|
5395
5475
|
|
|
@@ -5632,7 +5712,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5632
5712
|
});
|
|
5633
5713
|
exports["default"] = exports.Twitch = void 0;
|
|
5634
5714
|
|
|
5635
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5715
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5636
5716
|
|
|
5637
5717
|
|
|
5638
5718
|
|
|
@@ -5848,7 +5928,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5848
5928
|
});
|
|
5849
5929
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5850
5930
|
|
|
5851
|
-
var _react = _interopRequireWildcard(React__default[
|
|
5931
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
5852
5932
|
|
|
5853
5933
|
|
|
5854
5934
|
|
|
@@ -6084,7 +6164,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6084
6164
|
});
|
|
6085
6165
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6086
6166
|
|
|
6087
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6167
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6088
6168
|
|
|
6089
6169
|
|
|
6090
6170
|
|
|
@@ -6283,7 +6363,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6283
6363
|
});
|
|
6284
6364
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6285
6365
|
|
|
6286
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6366
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6287
6367
|
|
|
6288
6368
|
|
|
6289
6369
|
|
|
@@ -6850,7 +6930,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6850
6930
|
});
|
|
6851
6931
|
exports["default"] = void 0;
|
|
6852
6932
|
|
|
6853
|
-
var _react = _interopRequireWildcard(React__default[
|
|
6933
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
6854
6934
|
|
|
6855
6935
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6856
6936
|
|
|
@@ -7029,7 +7109,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7029
7109
|
});
|
|
7030
7110
|
exports["default"] = renderPreloadPlayers;
|
|
7031
7111
|
|
|
7032
|
-
var _react = _interopRequireDefault(React__default[
|
|
7112
|
+
var _react = _interopRequireDefault(React__default['default']);
|
|
7033
7113
|
|
|
7034
7114
|
var _Player = _interopRequireDefault(Player_1);
|
|
7035
7115
|
|
|
@@ -7168,7 +7248,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7168
7248
|
});
|
|
7169
7249
|
exports["default"] = void 0;
|
|
7170
7250
|
|
|
7171
|
-
var _react = _interopRequireWildcard(React__default[
|
|
7251
|
+
var _react = _interopRequireWildcard(React__default['default']);
|
|
7172
7252
|
|
|
7173
7253
|
|
|
7174
7254
|
|
|
@@ -7484,7 +7564,7 @@ var Audio = function Audio(_ref) {
|
|
|
7484
7564
|
var audioSource = node && node.uploadAudio ? node.uploadAudio.asset.url : '';
|
|
7485
7565
|
var reportPlay = function reportPlay() {
|
|
7486
7566
|
console.log('Reporting audio playback play to GA');
|
|
7487
|
-
ReactGA__default[
|
|
7567
|
+
ReactGA__default['default'].event({
|
|
7488
7568
|
category: 'User',
|
|
7489
7569
|
action: 'Audio Play',
|
|
7490
7570
|
label: 'Play: ' + audioSource
|
|
@@ -7494,7 +7574,7 @@ var Audio = function Audio(_ref) {
|
|
|
7494
7574
|
};
|
|
7495
7575
|
var reportPause = function reportPause() {
|
|
7496
7576
|
console.log('Reporting audio playback pause to GA');
|
|
7497
|
-
ReactGA__default[
|
|
7577
|
+
ReactGA__default['default'].event({
|
|
7498
7578
|
category: 'User',
|
|
7499
7579
|
action: 'Audio Pause',
|
|
7500
7580
|
label: 'Pause: ' + audioSource
|
|
@@ -7504,7 +7584,7 @@ var Audio = function Audio(_ref) {
|
|
|
7504
7584
|
};
|
|
7505
7585
|
var reportEnd = function reportEnd() {
|
|
7506
7586
|
console.log('Reporting audio playback end to GA');
|
|
7507
|
-
ReactGA__default[
|
|
7587
|
+
ReactGA__default['default'].event({
|
|
7508
7588
|
category: 'User',
|
|
7509
7589
|
action: 'Audio Playback End',
|
|
7510
7590
|
label: 'Playback End: ' + audioSource
|
|
@@ -7513,10 +7593,10 @@ var Audio = function Audio(_ref) {
|
|
|
7513
7593
|
}));
|
|
7514
7594
|
};
|
|
7515
7595
|
if (node.uploadAudio) {
|
|
7516
|
-
return React__default[
|
|
7596
|
+
return React__default['default'].createElement(
|
|
7517
7597
|
'div',
|
|
7518
7598
|
{ className: 'audio d-block text-center mb-3' },
|
|
7519
|
-
React__default[
|
|
7599
|
+
React__default['default'].createElement(
|
|
7520
7600
|
'audio',
|
|
7521
7601
|
{
|
|
7522
7602
|
controls: true, controlsList: 'nodownload',
|
|
@@ -7525,14 +7605,14 @@ var Audio = function Audio(_ref) {
|
|
|
7525
7605
|
onPause: reportPause,
|
|
7526
7606
|
onEnded: reportEnd
|
|
7527
7607
|
},
|
|
7528
|
-
React__default[
|
|
7529
|
-
React__default[
|
|
7608
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7609
|
+
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7530
7610
|
'Your browser does not support the audio element.'
|
|
7531
7611
|
),
|
|
7532
|
-
node.caption && React__default[
|
|
7612
|
+
node.caption && React__default['default'].createElement(
|
|
7533
7613
|
'p',
|
|
7534
7614
|
{ style: { fontSize: '.9rem' } },
|
|
7535
|
-
React__default[
|
|
7615
|
+
React__default['default'].createElement(
|
|
7536
7616
|
'em',
|
|
7537
7617
|
null,
|
|
7538
7618
|
node.caption
|
|
@@ -7542,15 +7622,15 @@ var Audio = function Audio(_ref) {
|
|
|
7542
7622
|
} else if (node.audioFilePth) {
|
|
7543
7623
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7544
7624
|
if (hostname === 'embeds.audioboom.com') {
|
|
7545
|
-
return React__default[
|
|
7625
|
+
return React__default['default'].createElement(
|
|
7546
7626
|
'div',
|
|
7547
7627
|
null,
|
|
7548
|
-
React__default[
|
|
7628
|
+
React__default['default'].createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7549
7629
|
' ',
|
|
7550
|
-
node.caption && React__default[
|
|
7630
|
+
node.caption && React__default['default'].createElement(
|
|
7551
7631
|
'p',
|
|
7552
7632
|
{ style: { fontSize: '.9rem' } },
|
|
7553
|
-
React__default[
|
|
7633
|
+
React__default['default'].createElement(
|
|
7554
7634
|
'em',
|
|
7555
7635
|
null,
|
|
7556
7636
|
node.caption
|
|
@@ -7558,10 +7638,10 @@ var Audio = function Audio(_ref) {
|
|
|
7558
7638
|
)
|
|
7559
7639
|
);
|
|
7560
7640
|
}
|
|
7561
|
-
return React__default[
|
|
7641
|
+
return React__default['default'].createElement(
|
|
7562
7642
|
'div',
|
|
7563
7643
|
{ className: 'audio' },
|
|
7564
|
-
React__default[
|
|
7644
|
+
React__default['default'].createElement(ReactPlayer, { url: node.audioFilePth,
|
|
7565
7645
|
onPlay: reportPlay,
|
|
7566
7646
|
onPause: reportPause,
|
|
7567
7647
|
onEnded: reportEnd,
|
|
@@ -7569,10 +7649,10 @@ var Audio = function Audio(_ref) {
|
|
|
7569
7649
|
width: '100%',
|
|
7570
7650
|
height: '100%'
|
|
7571
7651
|
}),
|
|
7572
|
-
node.caption && React__default[
|
|
7652
|
+
node.caption && React__default['default'].createElement(
|
|
7573
7653
|
'p',
|
|
7574
7654
|
{ style: { fontSize: '.9rem' } },
|
|
7575
|
-
React__default[
|
|
7655
|
+
React__default['default'].createElement(
|
|
7576
7656
|
'em',
|
|
7577
7657
|
null,
|
|
7578
7658
|
node.caption
|
|
@@ -7591,34 +7671,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7591
7671
|
var showAuthorDetails = arguments[7];
|
|
7592
7672
|
|
|
7593
7673
|
if (authorName && authorURL) {
|
|
7594
|
-
return React__default[
|
|
7674
|
+
return React__default['default'].createElement(
|
|
7595
7675
|
'span',
|
|
7596
7676
|
null,
|
|
7597
|
-
React__default[
|
|
7677
|
+
React__default['default'].createElement(
|
|
7598
7678
|
'a',
|
|
7599
7679
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7600
7680
|
authorName
|
|
7601
7681
|
),
|
|
7602
|
-
showAuthorDetails && React__default[
|
|
7682
|
+
showAuthorDetails && React__default['default'].createElement(
|
|
7603
7683
|
reactBootstrap.Card,
|
|
7604
7684
|
{ className: 'author-details-card-' + index },
|
|
7605
|
-
React__default[
|
|
7685
|
+
React__default['default'].createElement(
|
|
7606
7686
|
reactBootstrap.Row,
|
|
7607
7687
|
null,
|
|
7608
|
-
profileImage && React__default[
|
|
7688
|
+
profileImage && React__default['default'].createElement(
|
|
7609
7689
|
reactBootstrap.Col,
|
|
7610
7690
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7611
|
-
React__default[
|
|
7691
|
+
React__default['default'].createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7612
7692
|
),
|
|
7613
|
-
React__default[
|
|
7693
|
+
React__default['default'].createElement(
|
|
7614
7694
|
reactBootstrap.Col,
|
|
7615
7695
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7616
|
-
React__default[
|
|
7696
|
+
React__default['default'].createElement(
|
|
7617
7697
|
'div',
|
|
7618
7698
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7619
7699
|
authorName
|
|
7620
7700
|
),
|
|
7621
|
-
React__default[
|
|
7701
|
+
React__default['default'].createElement(
|
|
7622
7702
|
'p',
|
|
7623
7703
|
null,
|
|
7624
7704
|
biography
|
|
@@ -7626,7 +7706,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7626
7706
|
)
|
|
7627
7707
|
)
|
|
7628
7708
|
),
|
|
7629
|
-
React__default[
|
|
7709
|
+
React__default['default'].createElement(
|
|
7630
7710
|
'style',
|
|
7631
7711
|
{ jsx: 'true' },
|
|
7632
7712
|
'\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 +7714,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7634
7714
|
length !== index + 1 && ', '
|
|
7635
7715
|
);
|
|
7636
7716
|
} else if (authorName) {
|
|
7637
|
-
return React__default[
|
|
7717
|
+
return React__default['default'].createElement(
|
|
7638
7718
|
'span',
|
|
7639
7719
|
{ key: index },
|
|
7640
7720
|
authorName,
|
|
@@ -7906,44 +7986,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7906
7986
|
}
|
|
7907
7987
|
};
|
|
7908
7988
|
|
|
7909
|
-
return React__default[
|
|
7989
|
+
return React__default['default'].createElement(
|
|
7910
7990
|
'div',
|
|
7911
7991
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7912
|
-
React__default[
|
|
7992
|
+
React__default['default'].createElement(
|
|
7913
7993
|
'div',
|
|
7914
7994
|
{ className: 'mt-2 mb-5' },
|
|
7915
|
-
series && React__default[
|
|
7995
|
+
series && React__default['default'].createElement(
|
|
7916
7996
|
'div',
|
|
7917
7997
|
{ style: { fontSize: '0.9rem' } },
|
|
7918
7998
|
article.title,
|
|
7919
7999
|
' - Episode ',
|
|
7920
8000
|
series
|
|
7921
8001
|
),
|
|
7922
|
-
Videos[series - 1] && React__default[
|
|
8002
|
+
Videos[series - 1] && React__default['default'].createElement(
|
|
7923
8003
|
'h1',
|
|
7924
8004
|
{ className: 'mb-3' },
|
|
7925
8005
|
Videos[series - 1].title
|
|
7926
8006
|
),
|
|
7927
|
-
React__default[
|
|
8007
|
+
React__default['default'].createElement(
|
|
7928
8008
|
'div',
|
|
7929
8009
|
null,
|
|
7930
8010
|
moment.moment(article.published).format('LL')
|
|
7931
8011
|
),
|
|
7932
|
-
React__default[
|
|
8012
|
+
React__default['default'].createElement(
|
|
7933
8013
|
'div',
|
|
7934
8014
|
{ className: 'mb-3' },
|
|
7935
8015
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7936
|
-
return React__default[
|
|
8016
|
+
return React__default['default'].createElement(
|
|
7937
8017
|
'span',
|
|
7938
8018
|
{ key: index },
|
|
7939
8019
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7940
8020
|
);
|
|
7941
8021
|
})
|
|
7942
8022
|
),
|
|
7943
|
-
React__default[
|
|
8023
|
+
React__default['default'].createElement(
|
|
7944
8024
|
'p',
|
|
7945
8025
|
null,
|
|
7946
|
-
React__default[
|
|
8026
|
+
React__default['default'].createElement(SocialShare, {
|
|
7947
8027
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7948
8028
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7949
8029
|
shareVia: meta.shareVia,
|
|
@@ -7958,20 +8038,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7958
8038
|
hideFacebook: meta.hideFBShare
|
|
7959
8039
|
})
|
|
7960
8040
|
),
|
|
7961
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default[
|
|
8041
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default['default'].createElement(
|
|
7962
8042
|
'p',
|
|
7963
8043
|
{ className: 'mb-3' },
|
|
7964
|
-
React__default[
|
|
8044
|
+
React__default['default'].createElement(
|
|
7965
8045
|
'em',
|
|
7966
8046
|
null,
|
|
7967
8047
|
Videos[series - 1].intro
|
|
7968
8048
|
)
|
|
7969
8049
|
)
|
|
7970
8050
|
),
|
|
7971
|
-
React__default[
|
|
8051
|
+
React__default['default'].createElement(
|
|
7972
8052
|
'div',
|
|
7973
8053
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7974
|
-
vidUrl && vidType == 'youtube' && React__default[
|
|
8054
|
+
vidUrl && vidType == 'youtube' && React__default['default'].createElement(YouTube, {
|
|
7975
8055
|
className: 'fluid-iframe',
|
|
7976
8056
|
loading: 'lazy',
|
|
7977
8057
|
videoId: index$1.getYoutubeId(vidUrl),
|
|
@@ -7983,10 +8063,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7983
8063
|
return handleOnEnd(e);
|
|
7984
8064
|
}
|
|
7985
8065
|
}),
|
|
7986
|
-
vidUrl && vidType == 'mp4' && React__default[
|
|
7987
|
-
vidUrl && vidType == 'brightcove' && React__default[
|
|
7988
|
-
React__default[
|
|
7989
|
-
series && React__default[
|
|
8066
|
+
vidUrl && vidType == 'mp4' && React__default['default'].createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
8067
|
+
vidUrl && vidType == 'brightcove' && React__default['default'].createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
8068
|
+
React__default['default'].createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
8069
|
+
series && React__default['default'].createElement(
|
|
7990
8070
|
'div',
|
|
7991
8071
|
{
|
|
7992
8072
|
className: 'vid-series',
|
|
@@ -7996,10 +8076,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7996
8076
|
maxHeight: '100%',
|
|
7997
8077
|
paddingBottom: '0'
|
|
7998
8078
|
} },
|
|
7999
|
-
React__default[
|
|
8079
|
+
React__default['default'].createElement(
|
|
8000
8080
|
'p',
|
|
8001
8081
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
8002
|
-
React__default[
|
|
8082
|
+
React__default['default'].createElement(
|
|
8003
8083
|
'b',
|
|
8004
8084
|
{ style: { fontSize: '1.25em' } },
|
|
8005
8085
|
'Now Playing:'
|
|
@@ -8007,16 +8087,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8007
8087
|
' ',
|
|
8008
8088
|
seriesData[series ? series - 1 : 0].title
|
|
8009
8089
|
),
|
|
8010
|
-
vidUrl && React__default[
|
|
8090
|
+
vidUrl && React__default['default'].createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
8011
8091
|
)
|
|
8012
8092
|
),
|
|
8013
|
-
React__default[
|
|
8014
|
-
React__default[
|
|
8093
|
+
React__default['default'].createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
8094
|
+
React__default['default'].createElement(
|
|
8015
8095
|
'div',
|
|
8016
8096
|
{ className: 'vid-text' },
|
|
8017
|
-
Videos[series - 1] && Videos[series - 1].text && React__default[
|
|
8097
|
+
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()))
|
|
8018
8098
|
),
|
|
8019
|
-
React__default[
|
|
8099
|
+
React__default['default'].createElement(
|
|
8020
8100
|
'style',
|
|
8021
8101
|
{ jsx: 'true' },
|
|
8022
8102
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8069,67 +8149,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8069
8149
|
return acc;
|
|
8070
8150
|
}
|
|
8071
8151
|
}, 0);
|
|
8072
|
-
return React__default[
|
|
8073
|
-
React__default[
|
|
8152
|
+
return React__default['default'].createElement(
|
|
8153
|
+
React__default['default'].Fragment,
|
|
8074
8154
|
null,
|
|
8075
|
-
question && React__default[
|
|
8155
|
+
question && React__default['default'].createElement(
|
|
8076
8156
|
'p',
|
|
8077
8157
|
{ className: 'font-weight-bold' },
|
|
8078
8158
|
question
|
|
8079
8159
|
),
|
|
8080
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8160
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8081
8161
|
'form',
|
|
8082
8162
|
{ onSubmit: function onSubmit(e) {
|
|
8083
8163
|
return onSubmitPoll(e);
|
|
8084
8164
|
} },
|
|
8085
8165
|
choices && choices.map(function (choice) {
|
|
8086
|
-
return React__default[
|
|
8166
|
+
return React__default['default'].createElement(
|
|
8087
8167
|
'div',
|
|
8088
8168
|
{ key: choice._key },
|
|
8089
|
-
React__default[
|
|
8169
|
+
React__default['default'].createElement(
|
|
8090
8170
|
'label',
|
|
8091
8171
|
{ className: 'pl-2' },
|
|
8092
|
-
React__default[
|
|
8172
|
+
React__default['default'].createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8093
8173
|
return setSelectedChoice(e.target.value);
|
|
8094
8174
|
} }),
|
|
8095
8175
|
' ' + choice.choiceText
|
|
8096
8176
|
)
|
|
8097
8177
|
);
|
|
8098
8178
|
}),
|
|
8099
|
-
React__default[
|
|
8179
|
+
React__default['default'].createElement(
|
|
8100
8180
|
reactBootstrap.Button,
|
|
8101
8181
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8102
8182
|
'Vote'
|
|
8103
8183
|
)
|
|
8104
8184
|
),
|
|
8105
|
-
React__default[
|
|
8185
|
+
React__default['default'].createElement(
|
|
8106
8186
|
'div',
|
|
8107
8187
|
{ className: 'progress-container' },
|
|
8108
8188
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8109
8189
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8110
|
-
return React__default[
|
|
8190
|
+
return React__default['default'].createElement(
|
|
8111
8191
|
'div',
|
|
8112
8192
|
{ key: choice._key, className: 'mb-3' },
|
|
8113
|
-
React__default[
|
|
8193
|
+
React__default['default'].createElement(
|
|
8114
8194
|
'div',
|
|
8115
8195
|
{ className: 'correct-answer' },
|
|
8116
|
-
React__default[
|
|
8196
|
+
React__default['default'].createElement(
|
|
8117
8197
|
'div',
|
|
8118
8198
|
null,
|
|
8119
8199
|
choice.choiceText
|
|
8120
8200
|
),
|
|
8121
|
-
choice.choiceAnswer === true && React__default[
|
|
8201
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8122
8202
|
'div',
|
|
8123
8203
|
null,
|
|
8124
|
-
React__default[
|
|
8204
|
+
React__default['default'].createElement(
|
|
8125
8205
|
'span',
|
|
8126
8206
|
{ style: { color: 'limegreen' } },
|
|
8127
8207
|
'Correct!'
|
|
8128
8208
|
)
|
|
8129
8209
|
)
|
|
8130
8210
|
),
|
|
8131
|
-
React__default[
|
|
8132
|
-
React__default[
|
|
8211
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8212
|
+
React__default['default'].createElement(
|
|
8133
8213
|
'span',
|
|
8134
8214
|
{ className: 'float-right' },
|
|
8135
8215
|
percentage,
|
|
@@ -8140,14 +8220,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8140
8220
|
);
|
|
8141
8221
|
})
|
|
8142
8222
|
),
|
|
8143
|
-
showAnswer && React__default[
|
|
8223
|
+
showAnswer && React__default['default'].createElement(
|
|
8144
8224
|
'h4',
|
|
8145
8225
|
{ className: 'text-center small p-3' },
|
|
8146
8226
|
'Total Votes: ',
|
|
8147
8227
|
choicesTotalCount
|
|
8148
8228
|
),
|
|
8149
|
-
showAnswer && response && React__default[
|
|
8150
|
-
React__default[
|
|
8229
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8230
|
+
React__default['default'].createElement(
|
|
8151
8231
|
'style',
|
|
8152
8232
|
{ jsx: 'true' },
|
|
8153
8233
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8155,24 +8235,6 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8155
8235
|
);
|
|
8156
8236
|
};
|
|
8157
8237
|
|
|
8158
|
-
// https://github.com/tc39/proposal-object-values-entries
|
|
8159
|
-
|
|
8160
|
-
var $values = _objectToArray._objectToArray(false);
|
|
8161
|
-
|
|
8162
|
-
core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
8163
|
-
values: function values(it) {
|
|
8164
|
-
return $values(it);
|
|
8165
|
-
}
|
|
8166
|
-
});
|
|
8167
|
-
|
|
8168
|
-
var values$1 = core_getIteratorMethod._core.Object.values;
|
|
8169
|
-
|
|
8170
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
8171
|
-
module.exports = { "default": values$1, __esModule: true };
|
|
8172
|
-
});
|
|
8173
|
-
|
|
8174
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
8175
|
-
|
|
8176
8238
|
var Poll = function Poll(_ref) {
|
|
8177
8239
|
var node = _ref.node;
|
|
8178
8240
|
_ref.client;
|
|
@@ -8246,67 +8308,67 @@ var Poll = function Poll(_ref) {
|
|
|
8246
8308
|
return acc;
|
|
8247
8309
|
}
|
|
8248
8310
|
}, 0);
|
|
8249
|
-
return React__default[
|
|
8250
|
-
React__default[
|
|
8311
|
+
return React__default['default'].createElement(
|
|
8312
|
+
React__default['default'].Fragment,
|
|
8251
8313
|
null,
|
|
8252
|
-
question && React__default[
|
|
8314
|
+
question && React__default['default'].createElement(
|
|
8253
8315
|
'p',
|
|
8254
8316
|
{ className: 'font-weight-bold' },
|
|
8255
8317
|
question
|
|
8256
8318
|
),
|
|
8257
|
-
!showAnswer && choices && choices.length > 0 && React__default[
|
|
8319
|
+
!showAnswer && choices && choices.length > 0 && React__default['default'].createElement(
|
|
8258
8320
|
'form',
|
|
8259
8321
|
{ onSubmit: function onSubmit(e) {
|
|
8260
8322
|
return onSubmitPoll(e);
|
|
8261
8323
|
} },
|
|
8262
8324
|
choices && choices.map(function (choice) {
|
|
8263
|
-
return React__default[
|
|
8325
|
+
return React__default['default'].createElement(
|
|
8264
8326
|
'div',
|
|
8265
8327
|
{ key: choice._key },
|
|
8266
|
-
React__default[
|
|
8328
|
+
React__default['default'].createElement(
|
|
8267
8329
|
'label',
|
|
8268
8330
|
{ className: 'pl-2' },
|
|
8269
|
-
React__default[
|
|
8331
|
+
React__default['default'].createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8270
8332
|
return setSelectedChoice(e.target.value);
|
|
8271
8333
|
} }),
|
|
8272
8334
|
' ' + choice.choiceText
|
|
8273
8335
|
)
|
|
8274
8336
|
);
|
|
8275
8337
|
}),
|
|
8276
|
-
React__default[
|
|
8338
|
+
React__default['default'].createElement(
|
|
8277
8339
|
reactBootstrap.Button,
|
|
8278
8340
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8279
8341
|
'Vote'
|
|
8280
8342
|
)
|
|
8281
8343
|
),
|
|
8282
|
-
React__default[
|
|
8344
|
+
React__default['default'].createElement(
|
|
8283
8345
|
'div',
|
|
8284
8346
|
{ className: 'progress-container' },
|
|
8285
8347
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8286
8348
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8287
|
-
return React__default[
|
|
8349
|
+
return React__default['default'].createElement(
|
|
8288
8350
|
'div',
|
|
8289
8351
|
{ key: choice._key, className: 'mb-3' },
|
|
8290
|
-
React__default[
|
|
8352
|
+
React__default['default'].createElement(
|
|
8291
8353
|
'div',
|
|
8292
8354
|
{ className: 'correct-answer' },
|
|
8293
|
-
React__default[
|
|
8355
|
+
React__default['default'].createElement(
|
|
8294
8356
|
'div',
|
|
8295
8357
|
null,
|
|
8296
8358
|
choice.choiceText
|
|
8297
8359
|
),
|
|
8298
|
-
choice.choiceAnswer === true && React__default[
|
|
8360
|
+
choice.choiceAnswer === true && React__default['default'].createElement(
|
|
8299
8361
|
'div',
|
|
8300
8362
|
null,
|
|
8301
|
-
React__default[
|
|
8363
|
+
React__default['default'].createElement(
|
|
8302
8364
|
'span',
|
|
8303
8365
|
{ style: { color: 'limegreen' } },
|
|
8304
8366
|
'Correct!'
|
|
8305
8367
|
)
|
|
8306
8368
|
)
|
|
8307
8369
|
),
|
|
8308
|
-
React__default[
|
|
8309
|
-
React__default[
|
|
8370
|
+
React__default['default'].createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
8371
|
+
React__default['default'].createElement(
|
|
8310
8372
|
'span',
|
|
8311
8373
|
{ className: 'float-right' },
|
|
8312
8374
|
percentage,
|
|
@@ -8317,14 +8379,14 @@ var Poll = function Poll(_ref) {
|
|
|
8317
8379
|
);
|
|
8318
8380
|
})
|
|
8319
8381
|
),
|
|
8320
|
-
showAnswer && React__default[
|
|
8382
|
+
showAnswer && React__default['default'].createElement(
|
|
8321
8383
|
'h4',
|
|
8322
8384
|
{ className: 'text-center small p-3' },
|
|
8323
8385
|
'Total Votes: ',
|
|
8324
8386
|
choicesTotalCount
|
|
8325
8387
|
),
|
|
8326
|
-
showAnswer && response && React__default[
|
|
8327
|
-
React__default[
|
|
8388
|
+
showAnswer && response && React__default['default'].createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8389
|
+
React__default['default'].createElement(
|
|
8328
8390
|
'style',
|
|
8329
8391
|
{ jsx: 'true' },
|
|
8330
8392
|
'\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 '
|
|
@@ -8468,34 +8530,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
8468
8530
|
};
|
|
8469
8531
|
|
|
8470
8532
|
var renderPagination = function renderPagination() {
|
|
8471
|
-
return React__default[
|
|
8472
|
-
Pagination__default[
|
|
8533
|
+
return React__default['default'].createElement(
|
|
8534
|
+
Pagination__default['default'],
|
|
8473
8535
|
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
8474
|
-
React__default[
|
|
8536
|
+
React__default['default'].createElement(Pagination__default['default'].First, { onClick: function onClick() {
|
|
8475
8537
|
return changePage('first');
|
|
8476
8538
|
}, disabled: currentPage === 1 }),
|
|
8477
|
-
React__default[
|
|
8539
|
+
React__default['default'].createElement(Pagination__default['default'].Prev, { onClick: function onClick() {
|
|
8478
8540
|
return changePage('prev');
|
|
8479
8541
|
}, disabled: currentPage === 1 }),
|
|
8480
|
-
React__default[
|
|
8542
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
8481
8543
|
return renderNewPages('prev');
|
|
8482
8544
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8483
8545
|
pages.map(function (page) {
|
|
8484
|
-
return React__default[
|
|
8485
|
-
Pagination__default[
|
|
8546
|
+
return React__default['default'].createElement(
|
|
8547
|
+
Pagination__default['default'].Item,
|
|
8486
8548
|
{ key: page, active: page === parseInt(currentPage), onClick: function onClick() {
|
|
8487
8549
|
return changePage(page);
|
|
8488
8550
|
} },
|
|
8489
8551
|
page
|
|
8490
8552
|
);
|
|
8491
8553
|
}),
|
|
8492
|
-
React__default[
|
|
8554
|
+
React__default['default'].createElement(Pagination__default['default'].Ellipsis, { onClick: function onClick() {
|
|
8493
8555
|
return renderNewPages('next');
|
|
8494
8556
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8495
|
-
React__default[
|
|
8557
|
+
React__default['default'].createElement(Pagination__default['default'].Next, { onClick: function onClick() {
|
|
8496
8558
|
return changePage('next');
|
|
8497
8559
|
}, disabled: currentPage === pageCount }),
|
|
8498
|
-
React__default[
|
|
8560
|
+
React__default['default'].createElement(Pagination__default['default'].Last, { onClick: function onClick() {
|
|
8499
8561
|
return changePage('last');
|
|
8500
8562
|
}, disabled: currentPage === pageCount })
|
|
8501
8563
|
);
|
|
@@ -8606,49 +8668,49 @@ var Quiz = function Quiz(_ref) {
|
|
|
8606
8668
|
}
|
|
8607
8669
|
};
|
|
8608
8670
|
|
|
8609
|
-
return React__default[
|
|
8610
|
-
React__default[
|
|
8671
|
+
return React__default['default'].createElement(
|
|
8672
|
+
React__default['default'].Fragment,
|
|
8611
8673
|
null,
|
|
8612
|
-
quizzes[currentPage - 1] && React__default[
|
|
8613
|
-
React__default[
|
|
8674
|
+
quizzes[currentPage - 1] && React__default['default'].createElement(
|
|
8675
|
+
React__default['default'].Fragment,
|
|
8614
8676
|
null,
|
|
8615
|
-
React__default[
|
|
8616
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default[
|
|
8677
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8678
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default['default'].createElement(
|
|
8617
8679
|
'form',
|
|
8618
8680
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8619
8681
|
return e.preventDefault();
|
|
8620
8682
|
} },
|
|
8621
8683
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8622
|
-
return React__default[
|
|
8684
|
+
return React__default['default'].createElement(
|
|
8623
8685
|
'div',
|
|
8624
8686
|
{ key: answer._key },
|
|
8625
|
-
React__default[
|
|
8687
|
+
React__default['default'].createElement(
|
|
8626
8688
|
'label',
|
|
8627
8689
|
{ className: 'pl-2' },
|
|
8628
|
-
quizzes[currentPage - 1].multiAnswer ? React__default[
|
|
8690
|
+
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 }),
|
|
8629
8691
|
' ' + answer.answerText
|
|
8630
8692
|
)
|
|
8631
8693
|
);
|
|
8632
8694
|
})
|
|
8633
8695
|
)
|
|
8634
8696
|
),
|
|
8635
|
-
!showAnswer && React__default[
|
|
8636
|
-
Button__default[
|
|
8697
|
+
!showAnswer && React__default['default'].createElement(
|
|
8698
|
+
Button__default['default'],
|
|
8637
8699
|
{ onClick: function onClick(e) {
|
|
8638
8700
|
return checkAnswers(e);
|
|
8639
8701
|
}, variant: 'info', block: true },
|
|
8640
8702
|
'Please click here for answer'
|
|
8641
8703
|
),
|
|
8642
|
-
quizzes[currentPage - 1] && showAnswer && React__default[
|
|
8643
|
-
React__default[
|
|
8704
|
+
quizzes[currentPage - 1] && showAnswer && React__default['default'].createElement(
|
|
8705
|
+
React__default['default'].Fragment,
|
|
8644
8706
|
null,
|
|
8645
|
-
quizzes[currentPage - 1].answer && React__default[
|
|
8707
|
+
quizzes[currentPage - 1].answer && React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8646
8708
|
),
|
|
8647
|
-
React__default[
|
|
8648
|
-
firstRender && React__default[
|
|
8649
|
-
React__default[
|
|
8709
|
+
React__default['default'].createElement('br', null),
|
|
8710
|
+
firstRender && React__default['default'].createElement(
|
|
8711
|
+
React__default['default'].Fragment,
|
|
8650
8712
|
null,
|
|
8651
|
-
pageCount > 1 && currentPage && React__default[
|
|
8713
|
+
pageCount > 1 && currentPage && React__default['default'].createElement(
|
|
8652
8714
|
'div',
|
|
8653
8715
|
{ className: 'd-flex justify-content-center' },
|
|
8654
8716
|
renderPagination()
|
|
@@ -8660,15 +8722,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8660
8722
|
var Leads = function Leads(_ref) {
|
|
8661
8723
|
var url = _ref.url;
|
|
8662
8724
|
|
|
8663
|
-
return React__default[
|
|
8725
|
+
return React__default['default'].createElement(
|
|
8664
8726
|
'div',
|
|
8665
8727
|
{ className: 'd-block text-center mb-3' },
|
|
8666
|
-
React__default[
|
|
8728
|
+
React__default['default'].createElement(
|
|
8667
8729
|
'style',
|
|
8668
8730
|
{ jsx: 'true' },
|
|
8669
8731
|
'\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 '
|
|
8670
8732
|
),
|
|
8671
|
-
url && React__default[
|
|
8733
|
+
url && React__default['default'].createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8672
8734
|
);
|
|
8673
8735
|
};
|
|
8674
8736
|
|
|
@@ -8710,49 +8772,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8710
8772
|
if (pageview) pageview(href);
|
|
8711
8773
|
};
|
|
8712
8774
|
|
|
8713
|
-
return React__default[
|
|
8775
|
+
return React__default['default'].createElement(
|
|
8714
8776
|
'div',
|
|
8715
8777
|
{ className: 'mt-3 mb-4' },
|
|
8716
|
-
React__default[
|
|
8778
|
+
React__default['default'].createElement(
|
|
8717
8779
|
reactBootstrap.Carousel,
|
|
8718
8780
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8719
8781
|
slides && slides.map(function (slide) {
|
|
8720
8782
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8721
|
-
return React__default[
|
|
8783
|
+
return React__default['default'].createElement(
|
|
8722
8784
|
reactBootstrap.Carousel.Item,
|
|
8723
8785
|
{ key: slide._key },
|
|
8724
|
-
React__default[
|
|
8786
|
+
React__default['default'].createElement(
|
|
8725
8787
|
'a',
|
|
8726
8788
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8727
|
-
React__default[
|
|
8789
|
+
React__default['default'].createElement(
|
|
8728
8790
|
'div',
|
|
8729
8791
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8730
|
-
React__default[
|
|
8792
|
+
React__default['default'].createElement(
|
|
8731
8793
|
'picture',
|
|
8732
8794
|
null,
|
|
8733
|
-
React__default[
|
|
8734
|
-
React__default[
|
|
8735
|
-
React__default[
|
|
8736
|
-
React__default[
|
|
8795
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8796
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8797
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8798
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8737
8799
|
)
|
|
8738
8800
|
)
|
|
8739
8801
|
),
|
|
8740
|
-
React__default[
|
|
8802
|
+
React__default['default'].createElement(
|
|
8741
8803
|
'div',
|
|
8742
8804
|
{ className: 'p-2' },
|
|
8743
|
-
slide.slideshowImage.caption && React__default[
|
|
8805
|
+
slide.slideshowImage.caption && React__default['default'].createElement(
|
|
8744
8806
|
'h3',
|
|
8745
8807
|
{ style: { padding: '0px' } },
|
|
8746
8808
|
slide.slideshowImage.caption
|
|
8747
8809
|
),
|
|
8748
|
-
slide.description && React__default[
|
|
8810
|
+
slide.description && React__default['default'].createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8749
8811
|
)
|
|
8750
8812
|
);
|
|
8751
8813
|
}
|
|
8752
8814
|
return null;
|
|
8753
8815
|
})
|
|
8754
8816
|
),
|
|
8755
|
-
React__default[
|
|
8817
|
+
React__default['default'].createElement(
|
|
8756
8818
|
'style',
|
|
8757
8819
|
{ jsx: 'true' },
|
|
8758
8820
|
'\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 '
|
|
@@ -8771,10 +8833,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8771
8833
|
sizes = _props$node.sizes,
|
|
8772
8834
|
sizeMapping = _props$node.sizeMapping;
|
|
8773
8835
|
|
|
8774
|
-
return React__default[
|
|
8836
|
+
return React__default['default'].createElement(
|
|
8775
8837
|
'div',
|
|
8776
8838
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8777
|
-
React__default[
|
|
8839
|
+
React__default['default'].createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8778
8840
|
);
|
|
8779
8841
|
};
|
|
8780
8842
|
|
|
@@ -8785,15 +8847,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8785
8847
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8786
8848
|
|
|
8787
8849
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8788
|
-
return React__default[
|
|
8850
|
+
return React__default['default'].createElement(
|
|
8789
8851
|
'section',
|
|
8790
8852
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8791
|
-
Caption && React__default[
|
|
8853
|
+
Caption && React__default['default'].createElement(
|
|
8792
8854
|
'h4',
|
|
8793
8855
|
{ className: 'formstack-caption' },
|
|
8794
8856
|
Caption
|
|
8795
8857
|
),
|
|
8796
|
-
React__default[
|
|
8858
|
+
React__default['default'].createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8797
8859
|
);
|
|
8798
8860
|
};
|
|
8799
8861
|
|
|
@@ -8809,36 +8871,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8809
8871
|
}
|
|
8810
8872
|
});
|
|
8811
8873
|
if (medias && medias.length > 0) {
|
|
8812
|
-
return React__default[
|
|
8874
|
+
return React__default['default'].createElement(
|
|
8813
8875
|
'div',
|
|
8814
8876
|
{ className: 'multi-media-container' },
|
|
8815
|
-
React__default[
|
|
8816
|
-
Row__default[
|
|
8877
|
+
React__default['default'].createElement(
|
|
8878
|
+
Row__default['default'],
|
|
8817
8879
|
{ noGutters: true },
|
|
8818
8880
|
medias.map(function (media) {
|
|
8819
|
-
return React__default[
|
|
8820
|
-
Col__default[
|
|
8881
|
+
return React__default['default'].createElement(
|
|
8882
|
+
Col__default['default'],
|
|
8821
8883
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8822
|
-
React__default[
|
|
8884
|
+
React__default['default'].createElement(
|
|
8823
8885
|
'a',
|
|
8824
8886
|
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile.urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8825
8887
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8826
|
-
React__default[
|
|
8888
|
+
React__default['default'].createElement(
|
|
8827
8889
|
'div',
|
|
8828
8890
|
{ className: 'multi-media-image-container' },
|
|
8829
|
-
imageBox && React__default[
|
|
8891
|
+
imageBox && React__default['default'].createElement(
|
|
8830
8892
|
index$2.LazyLoad,
|
|
8831
8893
|
{ once: true },
|
|
8832
|
-
React__default[
|
|
8894
|
+
React__default['default'].createElement(
|
|
8833
8895
|
'picture',
|
|
8834
8896
|
null,
|
|
8835
|
-
React__default[
|
|
8836
|
-
React__default[
|
|
8837
|
-
React__default[
|
|
8838
|
-
React__default[
|
|
8897
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8898
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8899
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8900
|
+
React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8839
8901
|
)
|
|
8840
8902
|
),
|
|
8841
|
-
media.caption && React__default[
|
|
8903
|
+
media.caption && React__default['default'].createElement(
|
|
8842
8904
|
'span',
|
|
8843
8905
|
{ className: 'multi-media-caption' },
|
|
8844
8906
|
media.caption
|
|
@@ -8848,7 +8910,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8848
8910
|
);
|
|
8849
8911
|
})
|
|
8850
8912
|
),
|
|
8851
|
-
React__default[
|
|
8913
|
+
React__default['default'].createElement(
|
|
8852
8914
|
'style',
|
|
8853
8915
|
{ jsx: 'true' },
|
|
8854
8916
|
'\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 '
|
|
@@ -8895,7 +8957,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8895
8957
|
}
|
|
8896
8958
|
};
|
|
8897
8959
|
|
|
8898
|
-
_this.wraperRef = React__default[
|
|
8960
|
+
_this.wraperRef = React__default['default'].createRef();
|
|
8899
8961
|
_this.visible = false;
|
|
8900
8962
|
return _this;
|
|
8901
8963
|
}
|
|
@@ -8923,7 +8985,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8923
8985
|
_props$id = _props.id,
|
|
8924
8986
|
id = _props$id === undefined ? '' : _props$id;
|
|
8925
8987
|
|
|
8926
|
-
return React__default[
|
|
8988
|
+
return React__default['default'].createElement(
|
|
8927
8989
|
'div',
|
|
8928
8990
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8929
8991
|
this.props.children
|
|
@@ -8932,7 +8994,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8932
8994
|
}]);
|
|
8933
8995
|
|
|
8934
8996
|
return InscreenSensor;
|
|
8935
|
-
}(React__default[
|
|
8997
|
+
}(React__default['default'].Component);
|
|
8936
8998
|
|
|
8937
8999
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8938
9000
|
var nodes = _ref.nodes,
|
|
@@ -9043,33 +9105,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9043
9105
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9044
9106
|
var showReading = show ? 'showReading' : '';
|
|
9045
9107
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9046
|
-
return React__default[
|
|
9108
|
+
return React__default['default'].createElement(
|
|
9047
9109
|
'div',
|
|
9048
9110
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9049
|
-
React__default[
|
|
9111
|
+
React__default['default'].createElement(
|
|
9050
9112
|
'a',
|
|
9051
9113
|
{ onClick: function onClick(e) {
|
|
9052
9114
|
return articleCardClickHandler(e);
|
|
9053
9115
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9054
|
-
React__default[
|
|
9116
|
+
React__default['default'].createElement(
|
|
9055
9117
|
'div',
|
|
9056
9118
|
{ className: 'prevNext-thumbnail' },
|
|
9057
|
-
React__default[
|
|
9058
|
-
React__default[
|
|
9119
|
+
React__default['default'].createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
9120
|
+
React__default['default'].createElement(
|
|
9059
9121
|
'div',
|
|
9060
9122
|
{ className: 'prevNext-reading ' + showReading },
|
|
9061
9123
|
articleLabel
|
|
9062
9124
|
)
|
|
9063
9125
|
),
|
|
9064
|
-
React__default[
|
|
9126
|
+
React__default['default'].createElement(
|
|
9065
9127
|
'div',
|
|
9066
9128
|
{ className: 'prevNext-summary' },
|
|
9067
|
-
React__default[
|
|
9129
|
+
React__default['default'].createElement(
|
|
9068
9130
|
'div',
|
|
9069
9131
|
{ className: 'prevNext-publishDate' },
|
|
9070
9132
|
moment.moment(article.published).format('LL')
|
|
9071
9133
|
),
|
|
9072
|
-
React__default[
|
|
9134
|
+
React__default['default'].createElement(
|
|
9073
9135
|
'h2',
|
|
9074
9136
|
{ className: 'prevNext-title' },
|
|
9075
9137
|
article.title
|
|
@@ -9118,7 +9180,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9118
9180
|
|
|
9119
9181
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9120
9182
|
if (biography) {
|
|
9121
|
-
return React__default[
|
|
9183
|
+
return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9122
9184
|
}
|
|
9123
9185
|
};
|
|
9124
9186
|
|
|
@@ -9276,40 +9338,40 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9276
9338
|
setSensorVisible(false);
|
|
9277
9339
|
};
|
|
9278
9340
|
|
|
9279
|
-
return React__default[
|
|
9280
|
-
React__default[
|
|
9341
|
+
return React__default['default'].createElement(
|
|
9342
|
+
React__default['default'].Fragment,
|
|
9281
9343
|
null,
|
|
9282
|
-
React__default[
|
|
9344
|
+
React__default['default'].createElement(
|
|
9283
9345
|
'div',
|
|
9284
9346
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9285
|
-
React__default[
|
|
9347
|
+
React__default['default'].createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9286
9348
|
return handleArrowClick();
|
|
9287
9349
|
} })
|
|
9288
9350
|
),
|
|
9289
|
-
React__default[
|
|
9290
|
-
React__default[
|
|
9351
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' }),
|
|
9352
|
+
React__default['default'].createElement(
|
|
9291
9353
|
'div',
|
|
9292
9354
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9293
|
-
React__default[
|
|
9355
|
+
React__default['default'].createElement(
|
|
9294
9356
|
'h5',
|
|
9295
9357
|
{ className: 'objective-title' },
|
|
9296
9358
|
nodes.seriesTitle
|
|
9297
9359
|
),
|
|
9298
|
-
React__default[
|
|
9360
|
+
React__default['default'].createElement(
|
|
9299
9361
|
'div',
|
|
9300
9362
|
{ className: 'prevNextWrapper' },
|
|
9301
9363
|
PrevNextCards(false, -1)
|
|
9302
9364
|
)
|
|
9303
9365
|
),
|
|
9304
|
-
React__default[
|
|
9305
|
-
React__default[
|
|
9366
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' }),
|
|
9367
|
+
React__default['default'].createElement(
|
|
9306
9368
|
'div',
|
|
9307
9369
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
9308
9370
|
Articles.map(function (article, index) {
|
|
9309
|
-
return React__default[
|
|
9371
|
+
return React__default['default'].createElement(
|
|
9310
9372
|
'div',
|
|
9311
9373
|
{ key: article.title },
|
|
9312
|
-
React__default[
|
|
9374
|
+
React__default['default'].createElement(
|
|
9313
9375
|
InscreenSensor,
|
|
9314
9376
|
{
|
|
9315
9377
|
visible: sensorVisible,
|
|
@@ -9327,82 +9389,82 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9327
9389
|
}
|
|
9328
9390
|
}
|
|
9329
9391
|
} },
|
|
9330
|
-
React__default[
|
|
9331
|
-
Head__default[
|
|
9392
|
+
React__default['default'].createElement(
|
|
9393
|
+
Head__default['default'],
|
|
9332
9394
|
null,
|
|
9333
|
-
currentTitle !== null && React__default[
|
|
9395
|
+
currentTitle !== null && React__default['default'].createElement(
|
|
9334
9396
|
'title',
|
|
9335
9397
|
{ key: 'title' },
|
|
9336
9398
|
currentTitle
|
|
9337
9399
|
),
|
|
9338
|
-
currentSummary !== null && React__default[
|
|
9339
|
-
currentURL !== null && React__default[
|
|
9340
|
-
currentTitle !== null && React__default[
|
|
9341
|
-
currentThumbnail !== null && React__default[
|
|
9342
|
-
currentSummary !== null && React__default[
|
|
9343
|
-
currentTitle !== null && React__default[
|
|
9344
|
-
currentThumbnail !== null && React__default[
|
|
9345
|
-
currentSummary !== null && React__default[
|
|
9400
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
9401
|
+
currentURL !== null && React__default['default'].createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
9402
|
+
currentTitle !== null && React__default['default'].createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
9403
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
9404
|
+
currentSummary !== null && React__default['default'].createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
9405
|
+
currentTitle !== null && React__default['default'].createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
9406
|
+
currentThumbnail !== null && React__default['default'].createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
9407
|
+
currentSummary !== null && React__default['default'].createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
9346
9408
|
),
|
|
9347
|
-
React__default[
|
|
9409
|
+
React__default['default'].createElement(
|
|
9348
9410
|
'article',
|
|
9349
9411
|
{ className: 'article-wrapper' },
|
|
9350
|
-
React__default[
|
|
9412
|
+
React__default['default'].createElement(
|
|
9351
9413
|
'div',
|
|
9352
9414
|
{ className: 'article-publishDate' },
|
|
9353
9415
|
moment.moment(article.published).format('LL')
|
|
9354
9416
|
),
|
|
9355
|
-
React__default[
|
|
9417
|
+
React__default['default'].createElement(
|
|
9356
9418
|
'div',
|
|
9357
9419
|
{ className: 'author-details-wrapper' },
|
|
9358
9420
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
9359
|
-
return React__default[
|
|
9421
|
+
return React__default['default'].createElement(
|
|
9360
9422
|
'span',
|
|
9361
9423
|
{ key: index },
|
|
9362
9424
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
9363
9425
|
);
|
|
9364
9426
|
})
|
|
9365
9427
|
),
|
|
9366
|
-
React__default[
|
|
9428
|
+
React__default['default'].createElement(
|
|
9367
9429
|
'h2',
|
|
9368
9430
|
{ className: 'article-title' },
|
|
9369
9431
|
article.title
|
|
9370
9432
|
),
|
|
9371
|
-
React__default[
|
|
9433
|
+
React__default['default'].createElement(
|
|
9372
9434
|
'div',
|
|
9373
9435
|
{ className: 'mt-2 mb-2' },
|
|
9374
|
-
React__default[
|
|
9436
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
9375
9437
|
serializers: getSerializers,
|
|
9376
9438
|
videoAccountIDs: accountIDs,
|
|
9377
9439
|
blocks: article.text,
|
|
9378
9440
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
9379
9441
|
}, client.config())),
|
|
9380
|
-
React__default[
|
|
9442
|
+
React__default['default'].createElement('hr', { className: 'article-seperater my-4' })
|
|
9381
9443
|
),
|
|
9382
|
-
Articles.length > 1 && React__default[
|
|
9383
|
-
React__default[
|
|
9444
|
+
Articles.length > 1 && React__default['default'].createElement(
|
|
9445
|
+
React__default['default'].Fragment,
|
|
9384
9446
|
null,
|
|
9385
|
-
React__default[
|
|
9447
|
+
React__default['default'].createElement(
|
|
9386
9448
|
'div',
|
|
9387
9449
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9388
|
-
React__default[
|
|
9450
|
+
React__default['default'].createElement(
|
|
9389
9451
|
'h5',
|
|
9390
9452
|
{ className: 'objective-title' },
|
|
9391
9453
|
nodes.seriesTitle
|
|
9392
9454
|
),
|
|
9393
|
-
React__default[
|
|
9455
|
+
React__default['default'].createElement(
|
|
9394
9456
|
'div',
|
|
9395
9457
|
{ className: 'prevNextWrapper' },
|
|
9396
9458
|
PrevNextCards(true, index)
|
|
9397
9459
|
)
|
|
9398
9460
|
),
|
|
9399
|
-
React__default[
|
|
9461
|
+
React__default['default'].createElement('hr', { className: 'article-seperater' })
|
|
9400
9462
|
)
|
|
9401
9463
|
)
|
|
9402
9464
|
)
|
|
9403
9465
|
);
|
|
9404
9466
|
}),
|
|
9405
|
-
React__default[
|
|
9467
|
+
React__default['default'].createElement(
|
|
9406
9468
|
'style',
|
|
9407
9469
|
{ jsx: 'true' },
|
|
9408
9470
|
'\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 '
|
|
@@ -9432,11 +9494,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
9432
9494
|
};
|
|
9433
9495
|
}, [handleClickOutside]);
|
|
9434
9496
|
|
|
9435
|
-
return React__default[
|
|
9497
|
+
return React__default['default'].createElement(
|
|
9436
9498
|
'div',
|
|
9437
9499
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9438
|
-
React__default[
|
|
9439
|
-
React__default[
|
|
9500
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
9501
|
+
React__default['default'].createElement(
|
|
9440
9502
|
'style',
|
|
9441
9503
|
{ jsx: 'true' },
|
|
9442
9504
|
'\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 '
|
|
@@ -9450,7 +9512,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9450
9512
|
}
|
|
9451
9513
|
};
|
|
9452
9514
|
|
|
9453
|
-
var FigureImage$1 = React__default[
|
|
9515
|
+
var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
9454
9516
|
var node = _ref2.node,
|
|
9455
9517
|
client = _ref2.client,
|
|
9456
9518
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9458,13 +9520,13 @@ var FigureImage$1 = React__default["default"].memo(function (_ref2) {
|
|
|
9458
9520
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9459
9521
|
|
|
9460
9522
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9461
|
-
return React__default[
|
|
9523
|
+
return React__default['default'].createElement(
|
|
9462
9524
|
'picture',
|
|
9463
9525
|
null,
|
|
9464
|
-
React__default[
|
|
9465
|
-
React__default[
|
|
9466
|
-
React__default[
|
|
9467
|
-
React__default[
|
|
9526
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9527
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9528
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9529
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9468
9530
|
style: figureImageStyle,
|
|
9469
9531
|
className: 'figure-image',
|
|
9470
9532
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9515,30 +9577,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9515
9577
|
|
|
9516
9578
|
var renderTooltip = function renderTooltip(props) {
|
|
9517
9579
|
if (infoBox[0].title) {
|
|
9518
|
-
return React__default[
|
|
9519
|
-
Popover__default[
|
|
9580
|
+
return React__default['default'].createElement(
|
|
9581
|
+
Popover__default['default'],
|
|
9520
9582
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9521
|
-
React__default[
|
|
9522
|
-
Popover__default[
|
|
9583
|
+
React__default['default'].createElement(
|
|
9584
|
+
Popover__default['default'].Title,
|
|
9523
9585
|
{ as: 'h3' },
|
|
9524
9586
|
infoBox[0].title
|
|
9525
9587
|
),
|
|
9526
|
-
React__default[
|
|
9527
|
-
Popover__default[
|
|
9588
|
+
React__default['default'].createElement(
|
|
9589
|
+
Popover__default['default'].Content,
|
|
9528
9590
|
null,
|
|
9529
|
-
React__default[
|
|
9591
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9530
9592
|
)
|
|
9531
9593
|
);
|
|
9532
9594
|
} else {
|
|
9533
|
-
return React__default[
|
|
9534
|
-
Tooltip__default[
|
|
9595
|
+
return React__default['default'].createElement(
|
|
9596
|
+
Tooltip__default['default'],
|
|
9535
9597
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9536
|
-
React__default[
|
|
9598
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9537
9599
|
);
|
|
9538
9600
|
}
|
|
9539
9601
|
};
|
|
9540
9602
|
|
|
9541
|
-
var FigureImageWOverLay = React__default[
|
|
9603
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
9542
9604
|
var node = _ref3.node,
|
|
9543
9605
|
client = _ref3.client,
|
|
9544
9606
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9548,13 +9610,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9548
9610
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9549
9611
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9550
9612
|
var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9551
|
-
return React__default[
|
|
9613
|
+
return React__default['default'].createElement(
|
|
9552
9614
|
'picture',
|
|
9553
9615
|
null,
|
|
9554
|
-
React__default[
|
|
9555
|
-
React__default[
|
|
9556
|
-
React__default[
|
|
9557
|
-
main.main_42 && link ? React__default[
|
|
9616
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9617
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9618
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9619
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
9558
9620
|
style: figureImageStyle,
|
|
9559
9621
|
className: 'figure-image',
|
|
9560
9622
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9563,10 +9625,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9563
9625
|
onClick: function onClick() {
|
|
9564
9626
|
return handleClickFigure(node, client);
|
|
9565
9627
|
}
|
|
9566
|
-
})) : React__default[
|
|
9567
|
-
OverlayTrigger__default[
|
|
9628
|
+
})) : React__default['default'].createElement(
|
|
9629
|
+
OverlayTrigger__default['default'],
|
|
9568
9630
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9569
|
-
React__default[
|
|
9631
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9570
9632
|
style: figureImageStyle,
|
|
9571
9633
|
className: 'figure-image',
|
|
9572
9634
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9620,13 +9682,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9620
9682
|
|
|
9621
9683
|
var FigureCaption = React.useCallback(function () {
|
|
9622
9684
|
if (imgcaption && imgcaption.length > 0) {
|
|
9623
|
-
return React__default[
|
|
9685
|
+
return React__default['default'].createElement(
|
|
9624
9686
|
'div',
|
|
9625
9687
|
{ className: 'figure-caption' },
|
|
9626
|
-
React__default[
|
|
9688
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9627
9689
|
);
|
|
9628
9690
|
} else if (caption) {
|
|
9629
|
-
return React__default[
|
|
9691
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9630
9692
|
} else return null;
|
|
9631
9693
|
}, [caption, imgcaption]);
|
|
9632
9694
|
|
|
@@ -9643,24 +9705,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9643
9705
|
setShowLightbox(true);
|
|
9644
9706
|
}, [node, client]);
|
|
9645
9707
|
|
|
9646
|
-
return React__default[
|
|
9647
|
-
React__default[
|
|
9708
|
+
return React__default['default'].createElement(
|
|
9709
|
+
React__default['default'].Fragment,
|
|
9648
9710
|
null,
|
|
9649
|
-
infoBox.length >= 1 ? React__default[
|
|
9650
|
-
Figure__default[
|
|
9711
|
+
infoBox.length >= 1 ? React__default['default'].createElement(
|
|
9712
|
+
Figure__default['default'],
|
|
9651
9713
|
{ className: '' + class_name, style: figureStyle },
|
|
9652
|
-
link ? React__default[
|
|
9714
|
+
link ? React__default['default'].createElement(
|
|
9653
9715
|
'a',
|
|
9654
9716
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9655
|
-
React__default[
|
|
9656
|
-
React__default[
|
|
9657
|
-
) : React__default[
|
|
9658
|
-
React__default[
|
|
9717
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9718
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9719
|
+
) : React__default['default'].createElement(
|
|
9720
|
+
React__default['default'].Fragment,
|
|
9659
9721
|
null,
|
|
9660
|
-
React__default[
|
|
9661
|
-
React__default[
|
|
9722
|
+
React__default['default'].createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9723
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9662
9724
|
),
|
|
9663
|
-
React__default[
|
|
9725
|
+
React__default['default'].createElement(LightBox, {
|
|
9664
9726
|
showLightbox: showLightbox,
|
|
9665
9727
|
lightboxImgSrc: lightboxImgSrc,
|
|
9666
9728
|
closeLightbox: function closeLightbox() {
|
|
@@ -9668,21 +9730,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9668
9730
|
setShowLightbox(false);
|
|
9669
9731
|
}
|
|
9670
9732
|
})
|
|
9671
|
-
) : React__default[
|
|
9672
|
-
Figure__default[
|
|
9733
|
+
) : React__default['default'].createElement(
|
|
9734
|
+
Figure__default['default'],
|
|
9673
9735
|
{ className: '' + class_name, style: figureStyle },
|
|
9674
|
-
link ? React__default[
|
|
9736
|
+
link ? React__default['default'].createElement(
|
|
9675
9737
|
'a',
|
|
9676
9738
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9677
|
-
React__default[
|
|
9678
|
-
React__default[
|
|
9679
|
-
) : React__default[
|
|
9680
|
-
React__default[
|
|
9739
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9740
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9741
|
+
) : React__default['default'].createElement(
|
|
9742
|
+
React__default['default'].Fragment,
|
|
9681
9743
|
null,
|
|
9682
|
-
React__default[
|
|
9683
|
-
React__default[
|
|
9744
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9745
|
+
React__default['default'].createElement(FigureCaption, null)
|
|
9684
9746
|
),
|
|
9685
|
-
React__default[
|
|
9747
|
+
React__default['default'].createElement(LightBox, {
|
|
9686
9748
|
showLightbox: showLightbox,
|
|
9687
9749
|
lightboxImgSrc: lightboxImgSrc,
|
|
9688
9750
|
closeLightbox: function closeLightbox() {
|
|
@@ -9691,7 +9753,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9691
9753
|
}
|
|
9692
9754
|
})
|
|
9693
9755
|
),
|
|
9694
|
-
React__default[
|
|
9756
|
+
React__default['default'].createElement(
|
|
9695
9757
|
'style',
|
|
9696
9758
|
{ jsx: 'true' },
|
|
9697
9759
|
'\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 '
|
|
@@ -9699,7 +9761,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9699
9761
|
);
|
|
9700
9762
|
};
|
|
9701
9763
|
|
|
9702
|
-
var Figure = React__default[
|
|
9764
|
+
var Figure = React__default['default'].memo(FigureComponent, compareProps);
|
|
9703
9765
|
|
|
9704
9766
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9705
9767
|
React.useEffect(function () {
|
|
@@ -9716,7 +9778,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9716
9778
|
}, [ref]);
|
|
9717
9779
|
}
|
|
9718
9780
|
|
|
9719
|
-
var FigureImage = React__default[
|
|
9781
|
+
var FigureImage = React__default['default'].memo(function (_ref) {
|
|
9720
9782
|
var imagesCount = _ref.imagesCount,
|
|
9721
9783
|
image = _ref.image,
|
|
9722
9784
|
client = _ref.client,
|
|
@@ -9724,13 +9786,13 @@ var FigureImage = React__default["default"].memo(function (_ref) {
|
|
|
9724
9786
|
link = _ref.link,
|
|
9725
9787
|
handleClickFigure = _ref.handleClickFigure;
|
|
9726
9788
|
|
|
9727
|
-
return React__default[
|
|
9789
|
+
return React__default['default'].createElement(
|
|
9728
9790
|
'picture',
|
|
9729
9791
|
null,
|
|
9730
|
-
React__default[
|
|
9731
|
-
React__default[
|
|
9732
|
-
React__default[
|
|
9733
|
-
React__default[
|
|
9792
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9793
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9794
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9795
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9734
9796
|
'images-count': imagesCount,
|
|
9735
9797
|
className: 'multi-figure-image',
|
|
9736
9798
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9767,13 +9829,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9767
9829
|
imgcaption = _ref2.imgcaption;
|
|
9768
9830
|
|
|
9769
9831
|
if (imgcaption && imgcaption.length > 0) {
|
|
9770
|
-
return React__default[
|
|
9832
|
+
return React__default['default'].createElement(
|
|
9771
9833
|
'div',
|
|
9772
9834
|
{ className: 'multi-figure-caption' },
|
|
9773
|
-
React__default[
|
|
9835
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9774
9836
|
);
|
|
9775
9837
|
} else if (caption) {
|
|
9776
|
-
return React__default[
|
|
9838
|
+
return React__default['default'].createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9777
9839
|
} else return null;
|
|
9778
9840
|
};
|
|
9779
9841
|
|
|
@@ -9782,7 +9844,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9782
9844
|
setOpenImg(true);
|
|
9783
9845
|
}, [client]);
|
|
9784
9846
|
|
|
9785
|
-
var FigureImageWOverLay = React__default[
|
|
9847
|
+
var FigureImageWOverLay = React__default['default'].memo(function (_ref3) {
|
|
9786
9848
|
var imagesCount = _ref3.imagesCount,
|
|
9787
9849
|
image = _ref3.image,
|
|
9788
9850
|
client = _ref3.client,
|
|
@@ -9792,13 +9854,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9792
9854
|
|
|
9793
9855
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9794
9856
|
var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9795
|
-
return React__default[
|
|
9857
|
+
return React__default['default'].createElement(
|
|
9796
9858
|
'picture',
|
|
9797
9859
|
null,
|
|
9798
|
-
React__default[
|
|
9799
|
-
React__default[
|
|
9800
|
-
React__default[
|
|
9801
|
-
main.main_42 && link ? React__default[
|
|
9860
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9861
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9862
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9863
|
+
main.main_42 && link ? React__default['default'].createElement('img', _extends._extends({
|
|
9802
9864
|
'images-count': imagesCount,
|
|
9803
9865
|
className: 'multi-figure-image',
|
|
9804
9866
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9807,10 +9869,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9807
9869
|
onClick: function onClick() {
|
|
9808
9870
|
return handleClickFigure(image, client);
|
|
9809
9871
|
}
|
|
9810
|
-
})) : React__default[
|
|
9811
|
-
OverlayTrigger__default[
|
|
9872
|
+
})) : React__default['default'].createElement(
|
|
9873
|
+
OverlayTrigger__default['default'],
|
|
9812
9874
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9813
|
-
React__default[
|
|
9875
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9814
9876
|
'images-count': imagesCount,
|
|
9815
9877
|
className: 'multi-figure-image',
|
|
9816
9878
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9826,102 +9888,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9826
9888
|
|
|
9827
9889
|
var renderTooltip = function renderTooltip(image) {
|
|
9828
9890
|
if (image.infoBox[0].title) {
|
|
9829
|
-
return React__default[
|
|
9830
|
-
Popover__default[
|
|
9891
|
+
return React__default['default'].createElement(
|
|
9892
|
+
Popover__default['default'],
|
|
9831
9893
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9832
|
-
React__default[
|
|
9833
|
-
Popover__default[
|
|
9894
|
+
React__default['default'].createElement(
|
|
9895
|
+
Popover__default['default'].Title,
|
|
9834
9896
|
{ as: 'h3' },
|
|
9835
9897
|
image.infoBox[0].title
|
|
9836
9898
|
),
|
|
9837
|
-
React__default[
|
|
9838
|
-
Popover__default[
|
|
9899
|
+
React__default['default'].createElement(
|
|
9900
|
+
Popover__default['default'].Content,
|
|
9839
9901
|
null,
|
|
9840
|
-
React__default[
|
|
9902
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9841
9903
|
)
|
|
9842
9904
|
);
|
|
9843
9905
|
} else {
|
|
9844
|
-
return React__default[
|
|
9845
|
-
Tooltip__default[
|
|
9906
|
+
return React__default['default'].createElement(
|
|
9907
|
+
Tooltip__default['default'],
|
|
9846
9908
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9847
|
-
React__default[
|
|
9909
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9848
9910
|
);
|
|
9849
9911
|
}
|
|
9850
9912
|
};
|
|
9851
9913
|
|
|
9852
9914
|
if (images && images.length > 0) {
|
|
9853
|
-
return React__default[
|
|
9915
|
+
return React__default['default'].createElement(
|
|
9854
9916
|
'div',
|
|
9855
9917
|
{ className: 'multi-figure-container' },
|
|
9856
|
-
React__default[
|
|
9857
|
-
Row__default[
|
|
9918
|
+
React__default['default'].createElement(
|
|
9919
|
+
Row__default['default'],
|
|
9858
9920
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9859
9921
|
images.map(function (image, index) {
|
|
9860
9922
|
if (image.infoBox) {
|
|
9861
|
-
return React__default[
|
|
9862
|
-
Col__default[
|
|
9923
|
+
return React__default['default'].createElement(
|
|
9924
|
+
Col__default['default'],
|
|
9863
9925
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9864
|
-
image.link ? React__default[
|
|
9926
|
+
image.link ? React__default['default'].createElement(
|
|
9865
9927
|
'a',
|
|
9866
9928
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9867
|
-
React__default[
|
|
9929
|
+
React__default['default'].createElement(
|
|
9868
9930
|
'div',
|
|
9869
9931
|
{ className: 'multi-figure-image-container' },
|
|
9870
|
-
React__default[
|
|
9932
|
+
React__default['default'].createElement(
|
|
9871
9933
|
index$2.LazyLoad,
|
|
9872
9934
|
{ once: true },
|
|
9873
|
-
React__default[
|
|
9935
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9874
9936
|
),
|
|
9875
|
-
React__default[
|
|
9937
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9876
9938
|
)
|
|
9877
|
-
) : React__default[
|
|
9939
|
+
) : React__default['default'].createElement(
|
|
9878
9940
|
'div',
|
|
9879
9941
|
{ className: 'multi-figure-image-container' },
|
|
9880
|
-
React__default[
|
|
9942
|
+
React__default['default'].createElement(
|
|
9881
9943
|
index$2.LazyLoad,
|
|
9882
9944
|
{ once: true },
|
|
9883
|
-
React__default[
|
|
9945
|
+
React__default['default'].createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9884
9946
|
),
|
|
9885
|
-
React__default[
|
|
9947
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9886
9948
|
)
|
|
9887
9949
|
);
|
|
9888
9950
|
} else {
|
|
9889
|
-
return React__default[
|
|
9890
|
-
Col__default[
|
|
9951
|
+
return React__default['default'].createElement(
|
|
9952
|
+
Col__default['default'],
|
|
9891
9953
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9892
|
-
image.link ? React__default[
|
|
9954
|
+
image.link ? React__default['default'].createElement(
|
|
9893
9955
|
'a',
|
|
9894
9956
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9895
|
-
React__default[
|
|
9957
|
+
React__default['default'].createElement(
|
|
9896
9958
|
'div',
|
|
9897
9959
|
{ className: 'multi-figure-image-container' },
|
|
9898
|
-
React__default[
|
|
9960
|
+
React__default['default'].createElement(
|
|
9899
9961
|
index$2.LazyLoad,
|
|
9900
9962
|
{ once: true },
|
|
9901
|
-
React__default[
|
|
9963
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9902
9964
|
),
|
|
9903
|
-
React__default[
|
|
9965
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9904
9966
|
)
|
|
9905
|
-
) : React__default[
|
|
9967
|
+
) : React__default['default'].createElement(
|
|
9906
9968
|
'div',
|
|
9907
9969
|
{ className: 'multi-figure-image-container' },
|
|
9908
|
-
React__default[
|
|
9970
|
+
React__default['default'].createElement(
|
|
9909
9971
|
index$2.LazyLoad,
|
|
9910
9972
|
{ once: true },
|
|
9911
|
-
React__default[
|
|
9973
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9912
9974
|
),
|
|
9913
|
-
React__default[
|
|
9975
|
+
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9914
9976
|
)
|
|
9915
9977
|
);
|
|
9916
9978
|
}
|
|
9917
9979
|
})
|
|
9918
9980
|
),
|
|
9919
|
-
React__default[
|
|
9981
|
+
React__default['default'].createElement(
|
|
9920
9982
|
'div',
|
|
9921
9983
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9922
|
-
React__default[
|
|
9984
|
+
React__default['default'].createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9923
9985
|
),
|
|
9924
|
-
React__default[
|
|
9986
|
+
React__default['default'].createElement(
|
|
9925
9987
|
'style',
|
|
9926
9988
|
{ jsx: 'true' },
|
|
9927
9989
|
'\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 '
|
|
@@ -9970,23 +10032,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9970
10032
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9971
10033
|
}, []);
|
|
9972
10034
|
|
|
9973
|
-
return React__default[
|
|
9974
|
-
React__default[
|
|
10035
|
+
return React__default['default'].createElement(
|
|
10036
|
+
React__default['default'].Fragment,
|
|
9975
10037
|
null,
|
|
9976
|
-
React__default[
|
|
9977
|
-
Head__default[
|
|
10038
|
+
React__default['default'].createElement(
|
|
10039
|
+
Head__default['default'],
|
|
9978
10040
|
null,
|
|
9979
|
-
React__default[
|
|
10041
|
+
React__default['default'].createElement('script', {
|
|
9980
10042
|
dangerouslySetInnerHTML: {
|
|
9981
10043
|
__html: 'history.scrollRestoration = "manual"'
|
|
9982
10044
|
}
|
|
9983
10045
|
})
|
|
9984
10046
|
),
|
|
9985
|
-
React__default[
|
|
10047
|
+
React__default['default'].createElement(
|
|
9986
10048
|
'div',
|
|
9987
10049
|
{ id: elementId },
|
|
9988
|
-
React__default[
|
|
9989
|
-
React__default[
|
|
10050
|
+
React__default['default'].createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
10051
|
+
React__default['default'].createElement(
|
|
9990
10052
|
'style',
|
|
9991
10053
|
{ jsx: 'true' },
|
|
9992
10054
|
'\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 '
|
|
@@ -10040,11 +10102,11 @@ var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
|
10040
10102
|
|
|
10041
10103
|
|
|
10042
10104
|
|
|
10043
|
-
var _react2 = _interopRequireDefault(React__default[
|
|
10105
|
+
var _react2 = _interopRequireDefault(React__default['default']);
|
|
10044
10106
|
|
|
10045
10107
|
|
|
10046
10108
|
|
|
10047
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default[
|
|
10109
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
|
|
10048
10110
|
|
|
10049
10111
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10050
10112
|
var noop = function noop() {};
|
|
@@ -10199,7 +10261,7 @@ var ScriptTag = function (_Component) {
|
|
|
10199
10261
|
};
|
|
10200
10262
|
|
|
10201
10263
|
return ScriptTag;
|
|
10202
|
-
}(React__default[
|
|
10264
|
+
}(React__default['default'].Component);
|
|
10203
10265
|
|
|
10204
10266
|
ScriptTag.propTypes = {
|
|
10205
10267
|
/**
|
|
@@ -10291,11 +10353,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10291
10353
|
}, [anonymousID]);
|
|
10292
10354
|
|
|
10293
10355
|
if (iframeSrc) {
|
|
10294
|
-
return React__default[
|
|
10356
|
+
return React__default['default'].createElement(
|
|
10295
10357
|
'section',
|
|
10296
10358
|
{ className: 'form-assembly' },
|
|
10297
|
-
iframeSrc && React__default[
|
|
10298
|
-
React__default[
|
|
10359
|
+
iframeSrc && React__default['default'].createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10360
|
+
React__default['default'].createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10299
10361
|
);
|
|
10300
10362
|
}
|
|
10301
10363
|
|
|
@@ -10332,27 +10394,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
10332
10394
|
return window.removeEventListener('resize', handleResize);
|
|
10333
10395
|
};
|
|
10334
10396
|
}, []);
|
|
10335
|
-
return React__default[
|
|
10397
|
+
return React__default['default'].createElement(
|
|
10336
10398
|
'div',
|
|
10337
10399
|
{ className: 'blockTableHolder', ref: holder },
|
|
10338
|
-
React__default[
|
|
10400
|
+
React__default['default'].createElement(
|
|
10339
10401
|
'div',
|
|
10340
10402
|
{ className: 'blockTable' },
|
|
10341
10403
|
rows && rows.map(function (row) {
|
|
10342
|
-
return React__default[
|
|
10404
|
+
return React__default['default'].createElement(
|
|
10343
10405
|
'div',
|
|
10344
10406
|
{ className: 'blockTableRow' },
|
|
10345
10407
|
row.cells && row.cells.map(function (cell) {
|
|
10346
|
-
return React__default[
|
|
10408
|
+
return React__default['default'].createElement(
|
|
10347
10409
|
'div',
|
|
10348
10410
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10349
|
-
React__default[
|
|
10411
|
+
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10350
10412
|
);
|
|
10351
10413
|
})
|
|
10352
10414
|
);
|
|
10353
10415
|
})
|
|
10354
10416
|
),
|
|
10355
|
-
React__default[
|
|
10417
|
+
React__default['default'].createElement(
|
|
10356
10418
|
'style',
|
|
10357
10419
|
{ jsx: true },
|
|
10358
10420
|
'\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 '
|
|
@@ -10366,7 +10428,7 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10366
10428
|
_props$node.needSegmentSupport;
|
|
10367
10429
|
|
|
10368
10430
|
|
|
10369
|
-
return React__default[
|
|
10431
|
+
return React__default['default'].createElement('div', { id: FormID });
|
|
10370
10432
|
};
|
|
10371
10433
|
|
|
10372
10434
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -10426,7 +10488,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10426
10488
|
if (href && href.charAt(0) === '#') {
|
|
10427
10489
|
var elementId = href.slice(1);
|
|
10428
10490
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10429
|
-
return React__default[
|
|
10491
|
+
return React__default['default'].createElement(
|
|
10430
10492
|
'a',
|
|
10431
10493
|
{ onClick: function onClick() {
|
|
10432
10494
|
return ScrollToElement(elementId);
|
|
@@ -10436,11 +10498,11 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10436
10498
|
}
|
|
10437
10499
|
|
|
10438
10500
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite.checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
10439
|
-
return href ? linkRel.trim().length > 0 ? React__default[
|
|
10501
|
+
return href ? linkRel.trim().length > 0 ? React__default['default'].createElement(
|
|
10440
10502
|
'a',
|
|
10441
10503
|
_extends._extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10442
10504
|
children
|
|
10443
|
-
) : React__default[
|
|
10505
|
+
) : React__default['default'].createElement(
|
|
10444
10506
|
'a',
|
|
10445
10507
|
_extends._extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10446
10508
|
children
|
|
@@ -10505,12 +10567,12 @@ var getSerializers = function getSerializers() {
|
|
|
10505
10567
|
var node = _ref.node;
|
|
10506
10568
|
var url = node.url;
|
|
10507
10569
|
|
|
10508
|
-
return React__default[
|
|
10570
|
+
return React__default['default'].createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
10509
10571
|
},
|
|
10510
10572
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
10511
10573
|
var node = _ref2.node;
|
|
10512
10574
|
|
|
10513
|
-
return React__default[
|
|
10575
|
+
return React__default['default'].createElement(YouTubeGallery, {
|
|
10514
10576
|
nodes: node,
|
|
10515
10577
|
article: article,
|
|
10516
10578
|
meta: meta,
|
|
@@ -10524,7 +10586,7 @@ var getSerializers = function getSerializers() {
|
|
|
10524
10586
|
articleSeries: function articleSeries(_ref3) {
|
|
10525
10587
|
var node = _ref3.node;
|
|
10526
10588
|
|
|
10527
|
-
return React__default[
|
|
10589
|
+
return React__default['default'].createElement(ArticleSeries, {
|
|
10528
10590
|
nodes: node,
|
|
10529
10591
|
accountIDs: videoAccountIDs || {},
|
|
10530
10592
|
pageview: pageview,
|
|
@@ -10537,61 +10599,61 @@ var getSerializers = function getSerializers() {
|
|
|
10537
10599
|
figure: function figure(_ref4) {
|
|
10538
10600
|
var node = _ref4.node;
|
|
10539
10601
|
|
|
10540
|
-
return React__default[
|
|
10602
|
+
return React__default['default'].createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10541
10603
|
},
|
|
10542
10604
|
multifigure: function multifigure(_ref5) {
|
|
10543
10605
|
var node = _ref5.node;
|
|
10544
10606
|
|
|
10545
|
-
return React__default[
|
|
10607
|
+
return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10546
10608
|
},
|
|
10547
10609
|
slideshow: function slideshow(_ref6) {
|
|
10548
10610
|
var node = _ref6.node;
|
|
10549
10611
|
var slides = node.slides;
|
|
10550
10612
|
|
|
10551
|
-
return React__default[
|
|
10613
|
+
return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10552
10614
|
},
|
|
10553
10615
|
sidebar: function sidebar(_ref7) {
|
|
10554
10616
|
var node = _ref7.node;
|
|
10555
10617
|
var caption = node.caption,
|
|
10556
10618
|
content = node.content;
|
|
10557
10619
|
|
|
10558
|
-
return React__default[
|
|
10620
|
+
return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10559
10621
|
},
|
|
10560
10622
|
datatable: function datatable(_ref8) {
|
|
10561
10623
|
var node = _ref8.node;
|
|
10562
10624
|
var table = node.table;
|
|
10563
10625
|
|
|
10564
|
-
return React__default[
|
|
10626
|
+
return React__default['default'].createElement(TableShow, { rows: table.rows });
|
|
10565
10627
|
},
|
|
10566
10628
|
media: function media(_ref9) {
|
|
10567
10629
|
var node = _ref9.node;
|
|
10568
10630
|
|
|
10569
|
-
return React__default[
|
|
10631
|
+
return React__default['default'].createElement(Media, { node: node, client: client });
|
|
10570
10632
|
},
|
|
10571
10633
|
iframe: function iframe(_ref10) {
|
|
10572
10634
|
var node = _ref10.node;
|
|
10573
10635
|
|
|
10574
|
-
return React__default[
|
|
10636
|
+
return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10575
10637
|
},
|
|
10576
10638
|
video: function video(_ref11) {
|
|
10577
10639
|
var node = _ref11.node;
|
|
10578
10640
|
|
|
10579
|
-
return React__default[
|
|
10641
|
+
return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10580
10642
|
},
|
|
10581
10643
|
audio: function audio(_ref12) {
|
|
10582
10644
|
var node = _ref12.node;
|
|
10583
10645
|
|
|
10584
|
-
return React__default[
|
|
10646
|
+
return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10585
10647
|
},
|
|
10586
10648
|
poll: function poll(_ref13) {
|
|
10587
10649
|
var node = _ref13.node;
|
|
10588
10650
|
|
|
10589
|
-
return React__default[
|
|
10651
|
+
return React__default['default'].createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10590
10652
|
},
|
|
10591
10653
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10592
10654
|
var node = _ref14.node;
|
|
10593
10655
|
|
|
10594
|
-
return React__default[
|
|
10656
|
+
return React__default['default'].createElement(Poll, {
|
|
10595
10657
|
node: node,
|
|
10596
10658
|
client: client,
|
|
10597
10659
|
pageview: pageview,
|
|
@@ -10605,35 +10667,35 @@ var getSerializers = function getSerializers() {
|
|
|
10605
10667
|
var node = _ref15.node;
|
|
10606
10668
|
var quizzes = node.quizzes;
|
|
10607
10669
|
|
|
10608
|
-
return React__default[
|
|
10670
|
+
return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10609
10671
|
},
|
|
10610
10672
|
leads: function leads(_ref16) {
|
|
10611
10673
|
var node = _ref16.node;
|
|
10612
10674
|
var leadID = node.leadID;
|
|
10613
10675
|
|
|
10614
10676
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10615
|
-
return React__default[
|
|
10677
|
+
return React__default['default'].createElement(Leads, { url: url });
|
|
10616
10678
|
},
|
|
10617
10679
|
slideshows: function slideshows(_ref17) {
|
|
10618
10680
|
var node = _ref17.node;
|
|
10619
10681
|
|
|
10620
|
-
return React__default[
|
|
10682
|
+
return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10621
10683
|
},
|
|
10622
10684
|
nativeAd: function nativeAd(_ref18) {
|
|
10623
10685
|
var node = _ref18.node;
|
|
10624
10686
|
|
|
10625
|
-
return React__default[
|
|
10687
|
+
return React__default['default'].createElement(NativeAd, { node: node });
|
|
10626
10688
|
},
|
|
10627
10689
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10628
10690
|
var node = _ref19.node;
|
|
10629
10691
|
|
|
10630
|
-
return React__default[
|
|
10692
|
+
return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10631
10693
|
},
|
|
10632
10694
|
hrtag: function hrtag() {
|
|
10633
|
-
return React__default[
|
|
10695
|
+
return React__default['default'].createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10634
10696
|
},
|
|
10635
10697
|
brtag: function brtag() {
|
|
10636
|
-
return React__default[
|
|
10698
|
+
return React__default['default'].createElement('br', { className: 'line-break' });
|
|
10637
10699
|
},
|
|
10638
10700
|
formstack: function formstack(_ref20) {
|
|
10639
10701
|
var node = _ref20.node;
|
|
@@ -10641,30 +10703,30 @@ var getSerializers = function getSerializers() {
|
|
|
10641
10703
|
Caption = node.Caption,
|
|
10642
10704
|
needSegmentSupport = node.needSegmentSupport;
|
|
10643
10705
|
|
|
10644
|
-
return React__default[
|
|
10706
|
+
return React__default['default'].createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10645
10707
|
},
|
|
10646
10708
|
formassembly: FormAssembly,
|
|
10647
10709
|
digiohSmartTag: DigiohSmartTag,
|
|
10648
10710
|
multimedia: function multimedia(_ref21) {
|
|
10649
10711
|
var node = _ref21.node;
|
|
10650
10712
|
|
|
10651
|
-
return React__default[
|
|
10713
|
+
return React__default['default'].createElement(MultiMedia, { node: node, client: client });
|
|
10652
10714
|
},
|
|
10653
10715
|
blockTable: function blockTable(_ref22) {
|
|
10654
10716
|
var node = _ref22.node;
|
|
10655
|
-
return React__default[
|
|
10717
|
+
return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10656
10718
|
}
|
|
10657
10719
|
},
|
|
10658
10720
|
marks: {
|
|
10659
10721
|
superscript: function superscript(props) {
|
|
10660
|
-
return React__default[
|
|
10722
|
+
return React__default['default'].createElement(
|
|
10661
10723
|
'sup',
|
|
10662
10724
|
null,
|
|
10663
10725
|
props.children
|
|
10664
10726
|
);
|
|
10665
10727
|
},
|
|
10666
10728
|
subscript: function subscript(props) {
|
|
10667
|
-
return React__default[
|
|
10729
|
+
return React__default['default'].createElement(
|
|
10668
10730
|
'sub',
|
|
10669
10731
|
null,
|
|
10670
10732
|
props.children
|
|
@@ -10674,11 +10736,11 @@ var getSerializers = function getSerializers() {
|
|
|
10674
10736
|
var children = props.children,
|
|
10675
10737
|
mark = props.mark;
|
|
10676
10738
|
|
|
10677
|
-
return React__default[
|
|
10739
|
+
return React__default['default'].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
10678
10740
|
},
|
|
10679
10741
|
alignleft: function alignleft(_ref23) {
|
|
10680
10742
|
var children = _ref23.children;
|
|
10681
|
-
return React__default[
|
|
10743
|
+
return React__default['default'].createElement(
|
|
10682
10744
|
'div',
|
|
10683
10745
|
{ style: { textAlign: 'left' } },
|
|
10684
10746
|
children
|
|
@@ -10686,7 +10748,7 @@ var getSerializers = function getSerializers() {
|
|
|
10686
10748
|
},
|
|
10687
10749
|
alignright: function alignright(_ref24) {
|
|
10688
10750
|
var children = _ref24.children;
|
|
10689
|
-
return React__default[
|
|
10751
|
+
return React__default['default'].createElement(
|
|
10690
10752
|
'div',
|
|
10691
10753
|
{ style: { textAlign: 'right' } },
|
|
10692
10754
|
children
|
|
@@ -10694,7 +10756,7 @@ var getSerializers = function getSerializers() {
|
|
|
10694
10756
|
},
|
|
10695
10757
|
aligncenter: function aligncenter(_ref25) {
|
|
10696
10758
|
var children = _ref25.children;
|
|
10697
|
-
return React__default[
|
|
10759
|
+
return React__default['default'].createElement(
|
|
10698
10760
|
'div',
|
|
10699
10761
|
{ style: { textAlign: 'center' } },
|
|
10700
10762
|
children
|
|
@@ -10702,7 +10764,7 @@ var getSerializers = function getSerializers() {
|
|
|
10702
10764
|
},
|
|
10703
10765
|
alignjustify: function alignjustify(_ref26) {
|
|
10704
10766
|
var children = _ref26.children;
|
|
10705
|
-
return React__default[
|
|
10767
|
+
return React__default['default'].createElement(
|
|
10706
10768
|
'div',
|
|
10707
10769
|
{ style: { textAlign: 'justify' } },
|
|
10708
10770
|
children
|
|
@@ -10712,7 +10774,7 @@ var getSerializers = function getSerializers() {
|
|
|
10712
10774
|
var children = props.children,
|
|
10713
10775
|
color = props.mark.color;
|
|
10714
10776
|
|
|
10715
|
-
return React__default[
|
|
10777
|
+
return React__default['default'].createElement(
|
|
10716
10778
|
'span',
|
|
10717
10779
|
{ style: { color: color ? color.hex : null } },
|
|
10718
10780
|
children
|