@mjhls/mjh-framework 1.0.841-dv → 1.0.842-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-ad02bfab.js → ADInfeed-55587a4e.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-eb23fc9f.js → ADlgInfeed-5c3d8260.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -970
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +23 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +139 -192
- package/dist/cjs/AuthWrapper.js +259 -301
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +80 -84
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +56 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +57 -58
- package/dist/cjs/MediaSeriesLanding.js +847 -838
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1167 -72
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +18 -21
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +109 -113
- package/dist/cjs/QueueDeckExpanded.js +1110 -1087
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +40 -44
- package/dist/cjs/VideoSeriesCard.js +23 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +24 -25
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +200 -204
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-156bd4d6.js} +5 -6
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-021d644c.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-c1d8b5a1.js → index-ac18d02c.js} +852 -875
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index.es-13533f24.js → index.es-9110add6.js} +8 -11
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +60 -64
- package/dist/cjs/{inherits-0c7830c5.js → inherits-452ff02c.js} +1 -1
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-11ec04d2.js → main-02daeefe.js} +53 -85
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +8 -8
- package/dist/esm/AD300x250x600.js +8 -8
- package/dist/esm/AD728x90.js +9 -9
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-e8ab7008.js → ADInfeed-bb665cdc.js} +7 -7
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-882b23a8.js → ADlgInfeed-2897d78f.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +6 -6
- package/dist/esm/AdSlotsProvider.js +903 -11
- package/dist/esm/AlgoliaSearch.js +241 -368
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +21 -21
- package/dist/esm/ArticleSeriesLandingPage.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +121 -170
- package/dist/esm/AuthWrapper.js +257 -298
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +18 -18
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +77 -77
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +109 -109
- package/dist/esm/ExternalResources.js +42 -42
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +173 -173
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +101 -101
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +35 -35
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +55 -57
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -17
- package/dist/esm/MasterDeck.js +55 -55
- package/dist/esm/MediaSeriesLanding.js +573 -561
- package/dist/esm/NavDvm.js +47 -47
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -104
- package/dist/esm/NavNative.js +93 -93
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1166 -71
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -19
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +96 -96
- package/dist/esm/QueueDeckExpanded.js +1102 -1079
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +22 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +17 -17
- package/dist/esm/TemplateNormal.js +32 -32
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +19 -19
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +33 -33
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +18 -18
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +183 -183
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-4877b617.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/faundadb.js +2 -2
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +12 -12
- package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-1fd83450.js → index-8dbb97f3.js} +810 -826
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-7dda2f0a.js → index.es-29c1cef5.js} +6 -8
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +53 -54
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-aef58dbc.js → main-e4a934b2.js} +50 -81
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
3
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
-
import { _ as _extends, b as _extends$
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
6
|
-
import { _ as _typeof
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
14
|
import urlFor from './urlFor.js';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { d as main_16, b as
|
|
15
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
18
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
32
|
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
-
import Figure$
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
37
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -66,27 +66,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
66
66
|
if (pageview) pageview(router.asPath);
|
|
67
67
|
}, [router]);
|
|
68
68
|
|
|
69
|
-
return
|
|
69
|
+
return React__default.createElement(
|
|
70
70
|
'div',
|
|
71
71
|
{ className: 'mt-3 mb-3' },
|
|
72
|
-
|
|
72
|
+
React__default.createElement(
|
|
73
73
|
Carousel,
|
|
74
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
75
75
|
return onChangeSlide(selectedIndex, router);
|
|
76
76
|
}, interval: null },
|
|
77
77
|
slides && slides.map(function (slide) {
|
|
78
|
-
return
|
|
78
|
+
return React__default.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
|
|
81
|
+
React__default.createElement(
|
|
82
82
|
'picture',
|
|
83
83
|
null,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
88
|
),
|
|
89
|
-
slide.caption &&
|
|
89
|
+
slide.caption && React__default.createElement(
|
|
90
90
|
'p',
|
|
91
91
|
{ className: 'p-2' },
|
|
92
92
|
slide.caption
|
|
@@ -97,18 +97,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
var isArray = Array.isArray;
|
|
101
|
+
var keyList = Object.keys;
|
|
102
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
108
|
+
var arrA = isArray(a)
|
|
109
|
+
, arrB = isArray(b)
|
|
110
|
+
, i
|
|
111
|
+
, length
|
|
112
|
+
, key;
|
|
109
113
|
|
|
110
|
-
|
|
111
|
-
if (Array.isArray(a)) {
|
|
114
|
+
if (arrA && arrB) {
|
|
112
115
|
length = a.length;
|
|
113
116
|
if (length != b.length) return false;
|
|
114
117
|
for (i = length; i-- !== 0;)
|
|
@@ -116,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
116
119
|
return true;
|
|
117
120
|
}
|
|
118
121
|
|
|
122
|
+
if (arrA != arrB) return false;
|
|
119
123
|
|
|
124
|
+
var dateA = a instanceof Date
|
|
125
|
+
, dateB = b instanceof Date;
|
|
126
|
+
if (dateA != dateB) return false;
|
|
127
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
120
128
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (
|
|
129
|
+
var regexpA = a instanceof RegExp
|
|
130
|
+
, regexpB = b instanceof RegExp;
|
|
131
|
+
if (regexpA != regexpB) return false;
|
|
132
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
124
133
|
|
|
125
|
-
keys =
|
|
134
|
+
var keys = keyList(a);
|
|
126
135
|
length = keys.length;
|
|
127
|
-
|
|
136
|
+
|
|
137
|
+
if (length !== keyList(b).length)
|
|
138
|
+
return false;
|
|
128
139
|
|
|
129
140
|
for (i = length; i-- !== 0;)
|
|
130
|
-
if (!
|
|
141
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
131
142
|
|
|
132
143
|
for (i = length; i-- !== 0;) {
|
|
133
|
-
|
|
134
|
-
|
|
144
|
+
key = keys[i];
|
|
135
145
|
if (!equal(a[key], b[key])) return false;
|
|
136
146
|
}
|
|
137
147
|
|
|
138
148
|
return true;
|
|
139
149
|
}
|
|
140
150
|
|
|
141
|
-
// true if both NaN, false otherwise
|
|
142
151
|
return a!==a && b!==b;
|
|
143
152
|
};
|
|
144
153
|
|
|
@@ -1561,239 +1570,199 @@ module.exports = exports['default'];
|
|
|
1561
1570
|
|
|
1562
1571
|
var youTubePlayer = unwrapExports(dist);
|
|
1563
1572
|
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1566
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1567
|
-
|
|
1568
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1569
|
-
|
|
1570
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
-
|
|
1572
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1573
|
-
|
|
1574
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
-
|
|
1576
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1577
|
-
|
|
1578
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1573
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1579
1574
|
|
|
1580
|
-
function
|
|
1575
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1581
1576
|
|
|
1582
|
-
function
|
|
1577
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1583
1578
|
|
|
1584
|
-
function
|
|
1579
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1585
1580
|
|
|
1586
|
-
function
|
|
1581
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1587
1582
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
*
|
|
1593
|
-
*
|
|
1594
|
-
* @param {Object} prevProps
|
|
1595
|
-
* @param {Object} props
|
|
1583
|
+
/**
|
|
1584
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1585
|
+
*
|
|
1586
|
+
* @param {Object} prevProps
|
|
1587
|
+
* @param {Object} props
|
|
1596
1588
|
*/
|
|
1597
|
-
|
|
1598
1589
|
function shouldUpdateVideo(prevProps, props) {
|
|
1599
1590
|
// A changing video should always trigger an update
|
|
1600
1591
|
if (prevProps.videoId !== props.videoId) {
|
|
1601
1592
|
return true;
|
|
1602
|
-
}
|
|
1603
|
-
// update.
|
|
1604
|
-
|
|
1593
|
+
}
|
|
1605
1594
|
|
|
1595
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
|
+
// update.
|
|
1606
1597
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1607
1598
|
var vars = props.opts.playerVars || {};
|
|
1599
|
+
|
|
1608
1600
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1609
1601
|
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
-
* player reset is necessary.
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Object} opts
|
|
1616
|
-
*/
|
|
1617
|
-
|
|
1618
1602
|
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1609
|
+
*/
|
|
1619
1610
|
function filterResetOptions(opts) {
|
|
1620
|
-
return
|
|
1621
|
-
playerVars:
|
|
1611
|
+
return _extends({}, opts, {
|
|
1612
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1622
1613
|
autoplay: 0,
|
|
1623
1614
|
start: 0,
|
|
1624
1615
|
end: 0
|
|
1625
1616
|
})
|
|
1626
1617
|
});
|
|
1627
1618
|
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
-
* those.
|
|
1633
|
-
*
|
|
1634
|
-
* @param {Object} prevProps
|
|
1635
|
-
* @param {Object} props
|
|
1636
|
-
*/
|
|
1637
|
-
|
|
1638
1619
|
|
|
1620
|
+
/**
|
|
1621
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1622
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1623
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1624
|
+
* those.
|
|
1625
|
+
*
|
|
1626
|
+
* @param {Object} prevProps
|
|
1627
|
+
* @param {Object} props
|
|
1628
|
+
*/
|
|
1639
1629
|
function shouldResetPlayer(prevProps, props) {
|
|
1640
1630
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1641
1631
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a props change should result in an id or className update.
|
|
1644
|
-
*
|
|
1645
|
-
* @param {Object} prevProps
|
|
1646
|
-
* @param {Object} props
|
|
1647
|
-
*/
|
|
1648
|
-
|
|
1649
1632
|
|
|
1633
|
+
/**
|
|
1634
|
+
* Check whether a props change should result in an id or className update.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1638
|
+
*/
|
|
1650
1639
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1651
1640
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1652
1641
|
}
|
|
1653
1642
|
|
|
1654
|
-
var YouTube =
|
|
1643
|
+
var YouTube = function (_React$Component) {
|
|
1655
1644
|
_inherits(YouTube, _React$Component);
|
|
1656
1645
|
|
|
1657
|
-
var _super = _createSuper(YouTube);
|
|
1658
|
-
|
|
1659
|
-
/**
|
|
1660
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
-
*/
|
|
1664
1646
|
function YouTube(props) {
|
|
1665
|
-
var _this;
|
|
1666
|
-
|
|
1667
1647
|
_classCallCheck(this, YouTube);
|
|
1668
1648
|
|
|
1669
|
-
_this =
|
|
1649
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1670
1650
|
|
|
1671
|
-
|
|
1651
|
+
_this.onPlayerReady = function (event) {
|
|
1672
1652
|
return _this.props.onReady(event);
|
|
1673
|
-
}
|
|
1653
|
+
};
|
|
1674
1654
|
|
|
1675
|
-
|
|
1655
|
+
_this.onPlayerError = function (event) {
|
|
1676
1656
|
return _this.props.onError(event);
|
|
1677
|
-
}
|
|
1657
|
+
};
|
|
1678
1658
|
|
|
1679
|
-
|
|
1659
|
+
_this.onPlayerStateChange = function (event) {
|
|
1680
1660
|
_this.props.onStateChange(event);
|
|
1681
|
-
|
|
1682
1661
|
switch (event.data) {
|
|
1662
|
+
|
|
1683
1663
|
case YouTube.PlayerState.ENDED:
|
|
1684
1664
|
_this.props.onEnd(event);
|
|
1685
|
-
|
|
1686
1665
|
break;
|
|
1687
1666
|
|
|
1688
1667
|
case YouTube.PlayerState.PLAYING:
|
|
1689
1668
|
_this.props.onPlay(event);
|
|
1690
|
-
|
|
1691
1669
|
break;
|
|
1692
1670
|
|
|
1693
1671
|
case YouTube.PlayerState.PAUSED:
|
|
1694
1672
|
_this.props.onPause(event);
|
|
1695
|
-
|
|
1696
1673
|
break;
|
|
1697
1674
|
}
|
|
1698
|
-
}
|
|
1675
|
+
};
|
|
1699
1676
|
|
|
1700
|
-
|
|
1677
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1701
1678
|
return _this.props.onPlaybackRateChange(event);
|
|
1702
|
-
}
|
|
1679
|
+
};
|
|
1703
1680
|
|
|
1704
|
-
|
|
1681
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1705
1682
|
return _this.props.onPlaybackQualityChange(event);
|
|
1706
|
-
}
|
|
1683
|
+
};
|
|
1707
1684
|
|
|
1708
|
-
|
|
1685
|
+
_this.createPlayer = function () {
|
|
1709
1686
|
// do not attempt to create a player server-side, it won't work
|
|
1710
|
-
if (typeof document === 'undefined') return;
|
|
1711
|
-
|
|
1712
|
-
var playerOpts =
|
|
1687
|
+
if (typeof document === 'undefined') return;
|
|
1688
|
+
// create player
|
|
1689
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1713
1690
|
// preload the `videoId` video if one is already given
|
|
1714
1691
|
videoId: _this.props.videoId
|
|
1715
1692
|
});
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1693
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1694
|
+
// attach event handlers
|
|
1719
1695
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
-
|
|
1721
1696
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
-
|
|
1723
1697
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
-
|
|
1725
1698
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
-
|
|
1727
1699
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1728
|
-
}
|
|
1700
|
+
};
|
|
1729
1701
|
|
|
1730
|
-
|
|
1702
|
+
_this.resetPlayer = function () {
|
|
1731
1703
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1732
|
-
}
|
|
1704
|
+
};
|
|
1733
1705
|
|
|
1734
|
-
|
|
1706
|
+
_this.updatePlayer = function () {
|
|
1735
1707
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1736
1708
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1737
1709
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1738
1710
|
});
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
-
return _this.internalPlayer;
|
|
1743
|
-
});
|
|
1711
|
+
};
|
|
1744
1712
|
|
|
1745
|
-
|
|
1713
|
+
_this.updateVideo = function () {
|
|
1746
1714
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1747
1715
|
_this.internalPlayer.stopVideo();
|
|
1748
|
-
|
|
1749
1716
|
return;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1717
|
+
}
|
|
1752
1718
|
|
|
1719
|
+
// set queueing options
|
|
1753
1720
|
var autoplay = false;
|
|
1754
1721
|
var opts = {
|
|
1755
1722
|
videoId: _this.props.videoId
|
|
1756
1723
|
};
|
|
1757
|
-
|
|
1758
1724
|
if ('playerVars' in _this.props.opts) {
|
|
1759
1725
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
-
|
|
1761
1726
|
if ('start' in _this.props.opts.playerVars) {
|
|
1762
1727
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1763
1728
|
}
|
|
1764
|
-
|
|
1765
1729
|
if ('end' in _this.props.opts.playerVars) {
|
|
1766
1730
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1767
1731
|
}
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1732
|
+
}
|
|
1770
1733
|
|
|
1734
|
+
// if autoplay is enabled loadVideoById
|
|
1771
1735
|
if (autoplay) {
|
|
1772
1736
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
-
|
|
1774
1737
|
return;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1738
|
+
}
|
|
1739
|
+
// default behaviour just cues the video
|
|
1778
1740
|
_this.internalPlayer.cueVideoById(opts);
|
|
1779
|
-
}
|
|
1741
|
+
};
|
|
1780
1742
|
|
|
1781
|
-
|
|
1743
|
+
_this.refContainer = function (container) {
|
|
1782
1744
|
_this.container = container;
|
|
1783
|
-
}
|
|
1745
|
+
};
|
|
1784
1746
|
|
|
1785
1747
|
_this.container = null;
|
|
1786
1748
|
_this.internalPlayer = null;
|
|
1787
1749
|
return _this;
|
|
1788
1750
|
}
|
|
1789
1751
|
|
|
1752
|
+
/**
|
|
1753
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
+
*/
|
|
1757
|
+
|
|
1758
|
+
|
|
1790
1759
|
_createClass(YouTube, [{
|
|
1791
|
-
key:
|
|
1760
|
+
key: 'componentDidMount',
|
|
1792
1761
|
value: function componentDidMount() {
|
|
1793
1762
|
this.createPlayer();
|
|
1794
1763
|
}
|
|
1795
1764
|
}, {
|
|
1796
|
-
key:
|
|
1765
|
+
key: 'componentDidUpdate',
|
|
1797
1766
|
value: function componentDidUpdate(prevProps) {
|
|
1798
1767
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1799
1768
|
this.updatePlayer();
|
|
@@ -1808,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1808
1777
|
}
|
|
1809
1778
|
}
|
|
1810
1779
|
}, {
|
|
1811
|
-
key:
|
|
1780
|
+
key: 'componentWillUnmount',
|
|
1812
1781
|
value: function componentWillUnmount() {
|
|
1813
|
-
/**
|
|
1814
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1815
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
-
* this method isn't quick enough to reset the container element.
|
|
1782
|
+
/**
|
|
1783
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1784
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
+
* this method isn't quick enough to reset the container element.
|
|
1818
1787
|
*/
|
|
1819
1788
|
this.internalPlayer.destroy();
|
|
1820
1789
|
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1793
|
+
*
|
|
1794
|
+
* @param {Object} event
|
|
1795
|
+
* @param {Object} target - player object
|
|
1796
|
+
*/
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
+
*
|
|
1802
|
+
* @param {Object} event
|
|
1803
|
+
* @param {Integer} data - error type
|
|
1804
|
+
* @param {Object} target - player object
|
|
1805
|
+
*/
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
+
*
|
|
1811
|
+
* @param {Object} event
|
|
1812
|
+
* @param {Integer} data - status change type
|
|
1813
|
+
* @param {Object} target - actual YT player
|
|
1814
|
+
*/
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
+
*
|
|
1820
|
+
* @param {Object} event
|
|
1821
|
+
* @param {Float} data - playback rate
|
|
1822
|
+
* @param {Object} target - actual YT player
|
|
1823
|
+
*/
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
+
*
|
|
1829
|
+
* @param {Object} event
|
|
1830
|
+
* @param {String} data - playback quality
|
|
1831
|
+
* @param {Object} target - actual YT player
|
|
1832
|
+
*/
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
+
*/
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
+
* React should update this automatically but since the Youtube Player API
|
|
1848
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
+
* Youtube Player API methods to update the video.
|
|
1826
1856
|
*/
|
|
1827
1857
|
|
|
1828
1858
|
}, {
|
|
1829
|
-
key:
|
|
1859
|
+
key: 'render',
|
|
1830
1860
|
value: function render() {
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
id: this.props.id,
|
|
1835
|
-
|
|
1836
|
-
ref: this.refContainer
|
|
1837
|
-
}));
|
|
1861
|
+
return React__default.createElement(
|
|
1862
|
+
'div',
|
|
1863
|
+
{ className: this.props.containerClassName },
|
|
1864
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1865
|
+
);
|
|
1838
1866
|
}
|
|
1839
1867
|
}]);
|
|
1840
1868
|
|
|
1841
1869
|
return YouTube;
|
|
1842
|
-
}(
|
|
1843
|
-
|
|
1844
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
-
UNSTARTED: -1,
|
|
1846
|
-
ENDED: 0,
|
|
1847
|
-
PLAYING: 1,
|
|
1848
|
-
PAUSED: 2,
|
|
1849
|
-
BUFFERING: 3,
|
|
1850
|
-
CUED: 5
|
|
1851
|
-
});
|
|
1870
|
+
}(React__default.Component);
|
|
1852
1871
|
|
|
1853
1872
|
YouTube.propTypes = {
|
|
1854
1873
|
videoId: PropTypes.string,
|
|
1874
|
+
|
|
1855
1875
|
// custom ID for player element
|
|
1856
1876
|
id: PropTypes.string,
|
|
1877
|
+
|
|
1857
1878
|
// custom class name for player element
|
|
1858
1879
|
className: PropTypes.string,
|
|
1859
1880
|
// custom class name for player container element
|
|
1860
1881
|
containerClassName: PropTypes.string,
|
|
1882
|
+
|
|
1861
1883
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1862
1884
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
+
|
|
1863
1886
|
// event subscriptions
|
|
1864
1887
|
onReady: PropTypes.func,
|
|
1865
1888
|
onError: PropTypes.func,
|
|
@@ -1871,7 +1894,6 @@ YouTube.propTypes = {
|
|
|
1871
1894
|
onPlaybackQualityChange: PropTypes.func
|
|
1872
1895
|
};
|
|
1873
1896
|
YouTube.defaultProps = {
|
|
1874
|
-
videoId: null,
|
|
1875
1897
|
id: null,
|
|
1876
1898
|
className: null,
|
|
1877
1899
|
opts: {},
|
|
@@ -1885,6 +1907,14 @@ YouTube.defaultProps = {
|
|
|
1885
1907
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1886
1908
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1887
1909
|
};
|
|
1910
|
+
YouTube.PlayerState = {
|
|
1911
|
+
UNSTARTED: -1,
|
|
1912
|
+
ENDED: 0,
|
|
1913
|
+
PLAYING: 1,
|
|
1914
|
+
PAUSED: 2,
|
|
1915
|
+
BUFFERING: 3,
|
|
1916
|
+
CUED: 5
|
|
1917
|
+
};
|
|
1888
1918
|
|
|
1889
1919
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1890
1920
|
var url = _ref.url,
|
|
@@ -1986,11 +2016,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1986
2016
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1987
2017
|
};
|
|
1988
2018
|
|
|
1989
|
-
return
|
|
2019
|
+
return React__default.createElement(
|
|
1990
2020
|
'div',
|
|
1991
2021
|
{ id: 'fluid-video-container' },
|
|
1992
|
-
|
|
1993
|
-
|
|
2022
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2023
|
+
React__default.createElement(
|
|
1994
2024
|
'style',
|
|
1995
2025
|
{ jsx: 'true' },
|
|
1996
2026
|
'\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 '
|
|
@@ -2003,20 +2033,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2003
2033
|
content = _ref.content,
|
|
2004
2034
|
getSerializers = _ref.getSerializers;
|
|
2005
2035
|
|
|
2006
|
-
return
|
|
2036
|
+
return React__default.createElement(
|
|
2007
2037
|
'article',
|
|
2008
2038
|
{ className: 'sidebar' },
|
|
2009
|
-
|
|
2039
|
+
React__default.createElement(
|
|
2010
2040
|
'div',
|
|
2011
2041
|
null,
|
|
2012
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2013
2043
|
'h3',
|
|
2014
2044
|
null,
|
|
2015
2045
|
caption
|
|
2016
2046
|
),
|
|
2017
|
-
|
|
2047
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2018
2048
|
),
|
|
2019
|
-
|
|
2049
|
+
React__default.createElement(
|
|
2020
2050
|
'style',
|
|
2021
2051
|
{ jsx: 'true' },
|
|
2022
2052
|
'\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 '
|
|
@@ -2027,18 +2057,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2027
2057
|
var TableShow = function TableShow(_ref) {
|
|
2028
2058
|
var rows = _ref.rows;
|
|
2029
2059
|
|
|
2030
|
-
return
|
|
2060
|
+
return React__default.createElement(
|
|
2031
2061
|
Table,
|
|
2032
2062
|
{ bordered: true, hover: true, responsive: true },
|
|
2033
|
-
|
|
2063
|
+
React__default.createElement(
|
|
2034
2064
|
'tbody',
|
|
2035
2065
|
null,
|
|
2036
2066
|
rows && rows.map(function (row) {
|
|
2037
|
-
return
|
|
2067
|
+
return React__default.createElement(
|
|
2038
2068
|
'tr',
|
|
2039
2069
|
{ key: row._key },
|
|
2040
2070
|
row.cells && row.cells.map(function (cell, index) {
|
|
2041
|
-
return cell &&
|
|
2071
|
+
return cell && React__default.createElement(
|
|
2042
2072
|
'td',
|
|
2043
2073
|
{ key: index },
|
|
2044
2074
|
cell
|
|
@@ -2136,25 +2166,25 @@ var Media = function Media(_ref) {
|
|
|
2136
2166
|
margin: imageMargin
|
|
2137
2167
|
};
|
|
2138
2168
|
|
|
2139
|
-
return
|
|
2169
|
+
return React__default.createElement(
|
|
2140
2170
|
Figure$1,
|
|
2141
2171
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2142
|
-
|
|
2172
|
+
React__default.createElement(
|
|
2143
2173
|
'a',
|
|
2144
2174
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2145
|
-
|
|
2175
|
+
React__default.createElement(
|
|
2146
2176
|
LazyLoad,
|
|
2147
2177
|
{ once: true },
|
|
2148
|
-
|
|
2178
|
+
React__default.createElement(
|
|
2149
2179
|
'picture',
|
|
2150
2180
|
null,
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2181
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2182
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2183
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2184
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2155
2185
|
)
|
|
2156
2186
|
),
|
|
2157
|
-
caption &&
|
|
2187
|
+
caption && React__default.createElement(
|
|
2158
2188
|
Figure$1.Caption,
|
|
2159
2189
|
{ className: 'media-caption' },
|
|
2160
2190
|
caption
|
|
@@ -2162,9 +2192,9 @@ var Media = function Media(_ref) {
|
|
|
2162
2192
|
)
|
|
2163
2193
|
);
|
|
2164
2194
|
} else if (caption && caption !== '') {
|
|
2165
|
-
return
|
|
2195
|
+
return React__default.createElement(
|
|
2166
2196
|
'a',
|
|
2167
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2197
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2168
2198
|
href: uploadDoc.asset.url + '?dl='
|
|
2169
2199
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2170
2200
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2182,10 +2212,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2182
2212
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2183
2213
|
|
|
2184
2214
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2185
|
-
return
|
|
2215
|
+
return React__default.createElement(
|
|
2186
2216
|
'div',
|
|
2187
2217
|
{ className: 'd-block text-center mb-3' },
|
|
2188
|
-
|
|
2218
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2189
2219
|
);
|
|
2190
2220
|
};
|
|
2191
2221
|
|
|
@@ -2280,10 +2310,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2280
2310
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2281
2311
|
};
|
|
2282
2312
|
|
|
2283
|
-
return
|
|
2313
|
+
return React__default.createElement(
|
|
2284
2314
|
'div',
|
|
2285
2315
|
null,
|
|
2286
|
-
vidLoaded &&
|
|
2316
|
+
vidLoaded && React__default.createElement(
|
|
2287
2317
|
'video',
|
|
2288
2318
|
{
|
|
2289
2319
|
poster: thumbnail || '',
|
|
@@ -2301,7 +2331,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2301
2331
|
onPlay: function onPlay(e) {
|
|
2302
2332
|
return handleOnPlay(e);
|
|
2303
2333
|
} },
|
|
2304
|
-
|
|
2334
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2305
2335
|
'Your browser does not support the video tag.'
|
|
2306
2336
|
)
|
|
2307
2337
|
);
|
|
@@ -2338,7 +2368,7 @@ var Video = function Video(_ref) {
|
|
|
2338
2368
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2339
2369
|
//console.log('success:', success.ref)
|
|
2340
2370
|
var player = success.ref;
|
|
2341
|
-
if (_typeof
|
|
2371
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2342
2372
|
player.ima3.settings.debug = true;
|
|
2343
2373
|
if (targeting.content_placement && targeting.document_url) {
|
|
2344
2374
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2436,53 +2466,53 @@ var Video = function Video(_ref) {
|
|
|
2436
2466
|
|
|
2437
2467
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2438
2468
|
if (videoID) {
|
|
2439
|
-
return
|
|
2469
|
+
return React__default.createElement(
|
|
2440
2470
|
'div',
|
|
2441
2471
|
null,
|
|
2442
|
-
|
|
2472
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2443
2473
|
onSuccess: onVideoSuccess,
|
|
2444
2474
|
accountId: accountIDs.brightcove.accountId,
|
|
2445
2475
|
videoId: videoID,
|
|
2446
2476
|
playerId: accountIDs.brightcove.playerId,
|
|
2447
2477
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2448
2478
|
}),
|
|
2449
|
-
|
|
2479
|
+
React__default.createElement(
|
|
2450
2480
|
'style',
|
|
2451
2481
|
{ jsx: 'true' },
|
|
2452
2482
|
'\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 '
|
|
2453
2483
|
)
|
|
2454
2484
|
);
|
|
2455
2485
|
} else if (playlistID) {
|
|
2456
|
-
return
|
|
2486
|
+
return React__default.createElement(
|
|
2457
2487
|
'div',
|
|
2458
2488
|
null,
|
|
2459
|
-
|
|
2489
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2460
2490
|
accountId: accountIDs.brightcove.accountId,
|
|
2461
2491
|
playlistId: playlistID,
|
|
2462
2492
|
playerId: accountIDs.brightcove.playerId,
|
|
2463
2493
|
onSuccess: onVideoSuccess,
|
|
2464
2494
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2465
2495
|
}),
|
|
2466
|
-
|
|
2496
|
+
React__default.createElement(
|
|
2467
2497
|
'style',
|
|
2468
2498
|
{ jsx: 'true' },
|
|
2469
2499
|
'\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 '
|
|
2470
2500
|
)
|
|
2471
2501
|
);
|
|
2472
2502
|
} else if (experienceID) {
|
|
2473
|
-
return
|
|
2503
|
+
return React__default.createElement(
|
|
2474
2504
|
'div',
|
|
2475
2505
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2476
|
-
videoLoaded &&
|
|
2506
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2477
2507
|
);
|
|
2478
2508
|
}
|
|
2479
2509
|
return null;
|
|
2480
2510
|
}
|
|
2481
2511
|
if (source === 'mp4') {
|
|
2482
|
-
return
|
|
2512
|
+
return React__default.createElement(
|
|
2483
2513
|
'div',
|
|
2484
2514
|
null,
|
|
2485
|
-
|
|
2515
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2486
2516
|
);
|
|
2487
2517
|
}
|
|
2488
2518
|
|
|
@@ -2860,17 +2890,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2860
2890
|
|
|
2861
2891
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2862
2892
|
|
|
2863
|
-
function
|
|
2864
|
-
|
|
2865
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2893
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2866
2894
|
|
|
2867
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2895
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2868
2896
|
|
|
2869
|
-
function
|
|
2870
|
-
|
|
2871
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2872
|
-
|
|
2873
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2897
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2874
2898
|
|
|
2875
2899
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2876
2900
|
|
|
@@ -3000,12 +3024,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3000
3024
|
|
|
3001
3025
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3002
3026
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3003
|
-
|
|
3004
|
-
var
|
|
3005
|
-
|
|
3027
|
+
var _iteratorNormalCompletion = true;
|
|
3028
|
+
var _didIteratorError = false;
|
|
3029
|
+
var _iteratorError = undefined;
|
|
3006
3030
|
|
|
3007
3031
|
try {
|
|
3008
|
-
for (_iterator.
|
|
3032
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3009
3033
|
var p = _step.value;
|
|
3010
3034
|
|
|
3011
3035
|
if (props$1[p]) {
|
|
@@ -3020,9 +3044,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3020
3044
|
}
|
|
3021
3045
|
}
|
|
3022
3046
|
} catch (err) {
|
|
3023
|
-
|
|
3047
|
+
_didIteratorError = true;
|
|
3048
|
+
_iteratorError = err;
|
|
3024
3049
|
} finally {
|
|
3025
|
-
|
|
3050
|
+
try {
|
|
3051
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
+
_iterator["return"]();
|
|
3053
|
+
}
|
|
3054
|
+
} finally {
|
|
3055
|
+
if (_didIteratorError) {
|
|
3056
|
+
throw _iteratorError;
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3026
3059
|
}
|
|
3027
3060
|
|
|
3028
3061
|
return config;
|
|
@@ -3087,7 +3120,7 @@ function isEqual(a, b) {
|
|
|
3087
3120
|
return true;
|
|
3088
3121
|
}
|
|
3089
3122
|
|
|
3090
|
-
if ((0,
|
|
3123
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3091
3124
|
return true;
|
|
3092
3125
|
}
|
|
3093
3126
|
|
|
@@ -3149,7 +3182,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3149
3182
|
});
|
|
3150
3183
|
exports["default"] = void 0;
|
|
3151
3184
|
|
|
3152
|
-
var _react = _interopRequireWildcard(
|
|
3185
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3153
3186
|
|
|
3154
3187
|
|
|
3155
3188
|
|
|
@@ -3169,16 +3202,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3169
3202
|
|
|
3170
3203
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3171
3204
|
|
|
3172
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3173
|
-
|
|
3174
3205
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3175
3206
|
|
|
3176
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3177
|
-
|
|
3178
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3179
|
-
|
|
3180
3207
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
3208
|
|
|
3209
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
|
+
|
|
3182
3211
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3183
3212
|
|
|
3184
3213
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3187,12 +3216,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3187
3216
|
|
|
3188
3217
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3189
3218
|
|
|
3190
|
-
var Player =
|
|
3219
|
+
var Player =
|
|
3220
|
+
/*#__PURE__*/
|
|
3221
|
+
function (_Component) {
|
|
3191
3222
|
_inherits(Player, _Component);
|
|
3192
3223
|
|
|
3193
|
-
var _super = _createSuper(Player);
|
|
3194
|
-
|
|
3195
3224
|
function Player() {
|
|
3225
|
+
var _getPrototypeOf2;
|
|
3226
|
+
|
|
3196
3227
|
var _this;
|
|
3197
3228
|
|
|
3198
3229
|
_classCallCheck(this, Player);
|
|
@@ -3201,7 +3232,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3201
3232
|
_args[_key] = arguments[_key];
|
|
3202
3233
|
}
|
|
3203
3234
|
|
|
3204
|
-
_this =
|
|
3235
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3205
3236
|
|
|
3206
3237
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3207
3238
|
|
|
@@ -3526,7 +3557,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3526
3557
|
return null;
|
|
3527
3558
|
}
|
|
3528
3559
|
|
|
3529
|
-
return
|
|
3560
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3530
3561
|
ref: this.ref,
|
|
3531
3562
|
onReady: this.handleReady,
|
|
3532
3563
|
onPlay: this.handlePlay,
|
|
@@ -3559,7 +3590,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3559
3590
|
});
|
|
3560
3591
|
exports["default"] = createSinglePlayer;
|
|
3561
3592
|
|
|
3562
|
-
var _react = _interopRequireWildcard(
|
|
3593
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3563
3594
|
|
|
3564
3595
|
|
|
3565
3596
|
|
|
@@ -3587,16 +3618,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3587
3618
|
|
|
3588
3619
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3589
3620
|
|
|
3590
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3591
|
-
|
|
3592
3621
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3593
3622
|
|
|
3594
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3595
|
-
|
|
3596
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3597
|
-
|
|
3598
3623
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
3624
|
|
|
3625
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
|
+
|
|
3600
3627
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3601
3628
|
|
|
3602
3629
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3608,12 +3635,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3608
3635
|
function createSinglePlayer(activePlayer) {
|
|
3609
3636
|
var _class, _temp;
|
|
3610
3637
|
|
|
3611
|
-
return _temp = _class =
|
|
3638
|
+
return _temp = _class =
|
|
3639
|
+
/*#__PURE__*/
|
|
3640
|
+
function (_Component) {
|
|
3612
3641
|
_inherits(SinglePlayer, _Component);
|
|
3613
3642
|
|
|
3614
|
-
var _super = _createSuper(SinglePlayer);
|
|
3615
|
-
|
|
3616
3643
|
function SinglePlayer() {
|
|
3644
|
+
var _getPrototypeOf2;
|
|
3645
|
+
|
|
3617
3646
|
var _this;
|
|
3618
3647
|
|
|
3619
3648
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3622,7 +3651,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3622
3651
|
args[_key] = arguments[_key];
|
|
3623
3652
|
}
|
|
3624
3653
|
|
|
3625
|
-
_this =
|
|
3654
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3626
3655
|
|
|
3627
3656
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3628
3657
|
|
|
@@ -3690,12 +3719,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3690
3719
|
height = _this$props.height,
|
|
3691
3720
|
Wrapper = _this$props.wrapper;
|
|
3692
3721
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3693
|
-
return
|
|
3722
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3694
3723
|
style: _objectSpread({}, style, {
|
|
3695
3724
|
width: width,
|
|
3696
3725
|
height: height
|
|
3697
3726
|
})
|
|
3698
|
-
}, otherProps),
|
|
3727
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3699
3728
|
ref: this.ref,
|
|
3700
3729
|
activePlayer: activePlayer,
|
|
3701
3730
|
config: this.config
|
|
@@ -3717,7 +3746,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3717
3746
|
});
|
|
3718
3747
|
exports["default"] = exports.YouTube = void 0;
|
|
3719
3748
|
|
|
3720
|
-
var _react = _interopRequireWildcard(
|
|
3749
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3721
3750
|
|
|
3722
3751
|
|
|
3723
3752
|
|
|
@@ -3741,31 +3770,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3741
3770
|
|
|
3742
3771
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3743
3772
|
|
|
3744
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3745
|
-
|
|
3746
3773
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3747
3774
|
|
|
3748
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3749
|
-
|
|
3750
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3751
|
-
|
|
3752
3775
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
3776
|
|
|
3777
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
|
+
|
|
3754
3779
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3755
3780
|
|
|
3756
3781
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3757
3782
|
|
|
3758
3783
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3759
3784
|
|
|
3760
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3761
|
-
|
|
3762
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3785
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3763
3786
|
|
|
3764
|
-
function
|
|
3787
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3765
3788
|
|
|
3766
|
-
function
|
|
3767
|
-
|
|
3768
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3789
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3769
3790
|
|
|
3770
3791
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3771
3792
|
|
|
@@ -3790,12 +3811,14 @@ function parsePlaylist(url) {
|
|
|
3790
3811
|
return {};
|
|
3791
3812
|
}
|
|
3792
3813
|
|
|
3793
|
-
var YouTube =
|
|
3814
|
+
var YouTube =
|
|
3815
|
+
/*#__PURE__*/
|
|
3816
|
+
function (_Component) {
|
|
3794
3817
|
_inherits(YouTube, _Component);
|
|
3795
3818
|
|
|
3796
|
-
var _super = _createSuper(YouTube);
|
|
3797
|
-
|
|
3798
3819
|
function YouTube() {
|
|
3820
|
+
var _getPrototypeOf2;
|
|
3821
|
+
|
|
3799
3822
|
var _this;
|
|
3800
3823
|
|
|
3801
3824
|
_classCallCheck(this, YouTube);
|
|
@@ -3804,7 +3827,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3804
3827
|
args[_key] = arguments[_key];
|
|
3805
3828
|
}
|
|
3806
3829
|
|
|
3807
|
-
_this =
|
|
3830
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3808
3831
|
|
|
3809
3832
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3810
3833
|
|
|
@@ -3992,9 +4015,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3992
4015
|
height: '100%',
|
|
3993
4016
|
display: display
|
|
3994
4017
|
};
|
|
3995
|
-
return
|
|
4018
|
+
return _react["default"].createElement("div", {
|
|
3996
4019
|
style: style
|
|
3997
|
-
},
|
|
4020
|
+
}, _react["default"].createElement("div", {
|
|
3998
4021
|
ref: this.ref
|
|
3999
4022
|
}));
|
|
4000
4023
|
}
|
|
@@ -4026,7 +4049,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4026
4049
|
});
|
|
4027
4050
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4028
4051
|
|
|
4029
|
-
var _react = _interopRequireWildcard(
|
|
4052
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4030
4053
|
|
|
4031
4054
|
|
|
4032
4055
|
|
|
@@ -4050,16 +4073,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4050
4073
|
|
|
4051
4074
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4052
4075
|
|
|
4053
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4054
|
-
|
|
4055
4076
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4056
4077
|
|
|
4057
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4058
|
-
|
|
4059
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4060
|
-
|
|
4061
4078
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
4079
|
|
|
4080
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
|
+
|
|
4063
4082
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4064
4083
|
|
|
4065
4084
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4068,14 +4087,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4068
4087
|
|
|
4069
4088
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4070
4089
|
var SDK_GLOBAL = 'SC';
|
|
4071
|
-
var MATCH_URL = /(
|
|
4090
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4072
4091
|
|
|
4073
|
-
var SoundCloud =
|
|
4092
|
+
var SoundCloud =
|
|
4093
|
+
/*#__PURE__*/
|
|
4094
|
+
function (_Component) {
|
|
4074
4095
|
_inherits(SoundCloud, _Component);
|
|
4075
4096
|
|
|
4076
|
-
var _super = _createSuper(SoundCloud);
|
|
4077
|
-
|
|
4078
4097
|
function SoundCloud() {
|
|
4098
|
+
var _getPrototypeOf2;
|
|
4099
|
+
|
|
4079
4100
|
var _this;
|
|
4080
4101
|
|
|
4081
4102
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4084,7 +4105,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4084
4105
|
args[_key] = arguments[_key];
|
|
4085
4106
|
}
|
|
4086
4107
|
|
|
4087
|
-
_this =
|
|
4108
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4088
4109
|
|
|
4089
4110
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4090
4111
|
|
|
@@ -4205,7 +4226,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4205
4226
|
height: '100%',
|
|
4206
4227
|
display: display
|
|
4207
4228
|
};
|
|
4208
|
-
return
|
|
4229
|
+
return _react["default"].createElement("iframe", {
|
|
4209
4230
|
ref: this.ref,
|
|
4210
4231
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4211
4232
|
style: style,
|
|
@@ -4243,7 +4264,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4243
4264
|
});
|
|
4244
4265
|
exports["default"] = exports.Vimeo = void 0;
|
|
4245
4266
|
|
|
4246
|
-
var _react = _interopRequireWildcard(
|
|
4267
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4247
4268
|
|
|
4248
4269
|
|
|
4249
4270
|
|
|
@@ -4267,16 +4288,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4267
4288
|
|
|
4268
4289
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4269
4290
|
|
|
4270
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4271
|
-
|
|
4272
4291
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4273
4292
|
|
|
4274
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4275
|
-
|
|
4276
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4277
|
-
|
|
4278
4293
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
4294
|
|
|
4295
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
|
+
|
|
4280
4297
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4281
4298
|
|
|
4282
4299
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4288,12 +4305,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4288
4305
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4289
4306
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4290
4307
|
|
|
4291
|
-
var Vimeo =
|
|
4308
|
+
var Vimeo =
|
|
4309
|
+
/*#__PURE__*/
|
|
4310
|
+
function (_Component) {
|
|
4292
4311
|
_inherits(Vimeo, _Component);
|
|
4293
4312
|
|
|
4294
|
-
var _super = _createSuper(Vimeo);
|
|
4295
|
-
|
|
4296
4313
|
function Vimeo() {
|
|
4314
|
+
var _getPrototypeOf2;
|
|
4315
|
+
|
|
4297
4316
|
var _this;
|
|
4298
4317
|
|
|
4299
4318
|
_classCallCheck(this, Vimeo);
|
|
@@ -4302,7 +4321,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4302
4321
|
args[_key] = arguments[_key];
|
|
4303
4322
|
}
|
|
4304
4323
|
|
|
4305
|
-
_this =
|
|
4324
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4306
4325
|
|
|
4307
4326
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4308
4327
|
|
|
@@ -4459,7 +4478,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4459
4478
|
overflow: 'hidden',
|
|
4460
4479
|
display: display
|
|
4461
4480
|
};
|
|
4462
|
-
return
|
|
4481
|
+
return _react["default"].createElement("div", {
|
|
4463
4482
|
key: this.props.url,
|
|
4464
4483
|
ref: this.ref,
|
|
4465
4484
|
style: style
|
|
@@ -4499,7 +4518,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4499
4518
|
});
|
|
4500
4519
|
exports["default"] = exports.Facebook = void 0;
|
|
4501
4520
|
|
|
4502
|
-
var _react = _interopRequireWildcard(
|
|
4521
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4503
4522
|
|
|
4504
4523
|
|
|
4505
4524
|
|
|
@@ -4519,16 +4538,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4519
4538
|
|
|
4520
4539
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4521
4540
|
|
|
4522
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4523
|
-
|
|
4524
4541
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4525
4542
|
|
|
4526
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4527
|
-
|
|
4528
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4529
|
-
|
|
4530
4543
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
4544
|
|
|
4545
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
|
+
|
|
4532
4547
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4533
4548
|
|
|
4534
4549
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4541,12 +4556,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4541
4556
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4542
4557
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4543
4558
|
|
|
4544
|
-
var Facebook =
|
|
4559
|
+
var Facebook =
|
|
4560
|
+
/*#__PURE__*/
|
|
4561
|
+
function (_Component) {
|
|
4545
4562
|
_inherits(Facebook, _Component);
|
|
4546
4563
|
|
|
4547
|
-
var _super = _createSuper(Facebook);
|
|
4548
|
-
|
|
4549
4564
|
function Facebook() {
|
|
4565
|
+
var _getPrototypeOf2;
|
|
4566
|
+
|
|
4550
4567
|
var _this;
|
|
4551
4568
|
|
|
4552
4569
|
_classCallCheck(this, Facebook);
|
|
@@ -4555,7 +4572,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4555
4572
|
args[_key] = arguments[_key];
|
|
4556
4573
|
}
|
|
4557
4574
|
|
|
4558
|
-
_this =
|
|
4575
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4559
4576
|
|
|
4560
4577
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4561
4578
|
|
|
@@ -4671,7 +4688,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4671
4688
|
width: '100%',
|
|
4672
4689
|
height: '100%'
|
|
4673
4690
|
};
|
|
4674
|
-
return
|
|
4691
|
+
return _react["default"].createElement("div", {
|
|
4675
4692
|
style: style,
|
|
4676
4693
|
id: this.playerID,
|
|
4677
4694
|
className: "fb-video",
|
|
@@ -4711,7 +4728,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4711
4728
|
});
|
|
4712
4729
|
exports["default"] = exports.Streamable = void 0;
|
|
4713
4730
|
|
|
4714
|
-
var _react = _interopRequireWildcard(
|
|
4731
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4715
4732
|
|
|
4716
4733
|
|
|
4717
4734
|
|
|
@@ -4731,16 +4748,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4731
4748
|
|
|
4732
4749
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4733
4750
|
|
|
4734
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4735
|
-
|
|
4736
4751
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4737
4752
|
|
|
4738
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4739
|
-
|
|
4740
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4741
|
-
|
|
4742
4753
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
4754
|
|
|
4755
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
|
+
|
|
4744
4757
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4745
4758
|
|
|
4746
4759
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4751,12 +4764,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4751
4764
|
var SDK_GLOBAL = 'playerjs';
|
|
4752
4765
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4753
4766
|
|
|
4754
|
-
var Streamable =
|
|
4767
|
+
var Streamable =
|
|
4768
|
+
/*#__PURE__*/
|
|
4769
|
+
function (_Component) {
|
|
4755
4770
|
_inherits(Streamable, _Component);
|
|
4756
4771
|
|
|
4757
|
-
var _super = _createSuper(Streamable);
|
|
4758
|
-
|
|
4759
4772
|
function Streamable() {
|
|
4773
|
+
var _getPrototypeOf2;
|
|
4774
|
+
|
|
4760
4775
|
var _this;
|
|
4761
4776
|
|
|
4762
4777
|
_classCallCheck(this, Streamable);
|
|
@@ -4765,7 +4780,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4765
4780
|
args[_key] = arguments[_key];
|
|
4766
4781
|
}
|
|
4767
4782
|
|
|
4768
|
-
_this =
|
|
4783
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4769
4784
|
|
|
4770
4785
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4771
4786
|
|
|
@@ -4885,7 +4900,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4885
4900
|
width: '100%',
|
|
4886
4901
|
height: '100%'
|
|
4887
4902
|
};
|
|
4888
|
-
return
|
|
4903
|
+
return _react["default"].createElement("iframe", {
|
|
4889
4904
|
ref: this.ref,
|
|
4890
4905
|
src: "https://streamable.com/o/".concat(id),
|
|
4891
4906
|
frameBorder: "0",
|
|
@@ -4922,7 +4937,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4922
4937
|
});
|
|
4923
4938
|
exports["default"] = exports.Wistia = void 0;
|
|
4924
4939
|
|
|
4925
|
-
var _react = _interopRequireWildcard(
|
|
4940
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4926
4941
|
|
|
4927
4942
|
|
|
4928
4943
|
|
|
@@ -4946,16 +4961,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4946
4961
|
|
|
4947
4962
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4948
4963
|
|
|
4949
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4950
|
-
|
|
4951
4964
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4952
4965
|
|
|
4953
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4954
|
-
|
|
4955
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4956
|
-
|
|
4957
4966
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
4967
|
|
|
4968
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
|
+
|
|
4959
4970
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4960
4971
|
|
|
4961
4972
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4966,48 +4977,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4966
4977
|
var SDK_GLOBAL = 'Wistia';
|
|
4967
4978
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4968
4979
|
|
|
4969
|
-
var Wistia =
|
|
4980
|
+
var Wistia =
|
|
4981
|
+
/*#__PURE__*/
|
|
4982
|
+
function (_Component) {
|
|
4970
4983
|
_inherits(Wistia, _Component);
|
|
4971
4984
|
|
|
4972
|
-
var _super = _createSuper(Wistia);
|
|
4973
|
-
|
|
4974
4985
|
function Wistia() {
|
|
4986
|
+
var _getPrototypeOf2;
|
|
4987
|
+
|
|
4975
4988
|
var _this;
|
|
4976
4989
|
|
|
4977
4990
|
_classCallCheck(this, Wistia);
|
|
4978
4991
|
|
|
4979
|
-
for (var _len = arguments.length,
|
|
4980
|
-
|
|
4992
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4993
|
+
args[_key] = arguments[_key];
|
|
4981
4994
|
}
|
|
4982
4995
|
|
|
4983
|
-
_this =
|
|
4996
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4984
4997
|
|
|
4985
4998
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4986
4999
|
|
|
4987
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4988
|
-
var _this$props;
|
|
4989
|
-
|
|
4990
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4991
|
-
});
|
|
4992
|
-
|
|
4993
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4994
|
-
var _this$props2;
|
|
4995
|
-
|
|
4996
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4997
|
-
});
|
|
4998
|
-
|
|
4999
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5000
|
-
var _this$props3;
|
|
5001
|
-
|
|
5002
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5003
|
-
});
|
|
5004
|
-
|
|
5005
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5006
|
-
var _this$props4;
|
|
5007
|
-
|
|
5008
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5009
|
-
});
|
|
5010
|
-
|
|
5011
5000
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5012
5001
|
_this.callPlayer('mute');
|
|
5013
5002
|
});
|
|
@@ -5029,13 +5018,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5029
5018
|
value: function load(url) {
|
|
5030
5019
|
var _this2 = this;
|
|
5031
5020
|
|
|
5032
|
-
var _this$
|
|
5033
|
-
playing = _this$
|
|
5034
|
-
muted = _this$
|
|
5035
|
-
controls = _this$
|
|
5036
|
-
_onReady = _this$
|
|
5037
|
-
|
|
5038
|
-
|
|
5021
|
+
var _this$props = this.props,
|
|
5022
|
+
playing = _this$props.playing,
|
|
5023
|
+
muted = _this$props.muted,
|
|
5024
|
+
controls = _this$props.controls,
|
|
5025
|
+
_onReady = _this$props.onReady,
|
|
5026
|
+
onPlay = _this$props.onPlay,
|
|
5027
|
+
onPause = _this$props.onPause,
|
|
5028
|
+
onSeek = _this$props.onSeek,
|
|
5029
|
+
onEnded = _this$props.onEnded,
|
|
5030
|
+
config = _this$props.config,
|
|
5031
|
+
onError = _this$props.onError;
|
|
5039
5032
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5040
5033
|
window._wq = window._wq || [];
|
|
5041
5034
|
|
|
@@ -5052,28 +5045,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5052
5045
|
|
|
5053
5046
|
_this2.unbind();
|
|
5054
5047
|
|
|
5055
|
-
_this2.player.bind('play',
|
|
5048
|
+
_this2.player.bind('play', onPlay);
|
|
5056
5049
|
|
|
5057
|
-
_this2.player.bind('pause',
|
|
5050
|
+
_this2.player.bind('pause', onPause);
|
|
5058
5051
|
|
|
5059
|
-
_this2.player.bind('seek',
|
|
5052
|
+
_this2.player.bind('seek', onSeek);
|
|
5060
5053
|
|
|
5061
|
-
_this2.player.bind('end',
|
|
5054
|
+
_this2.player.bind('end', onEnded);
|
|
5062
5055
|
|
|
5063
5056
|
_onReady();
|
|
5064
5057
|
}
|
|
5065
5058
|
});
|
|
5066
5059
|
}, onError);
|
|
5067
5060
|
}
|
|
5068
|
-
}, {
|
|
5069
|
-
key: "unbind",
|
|
5070
|
-
value: function unbind() {
|
|
5071
|
-
this.player.unbind('play', this.onPlay);
|
|
5072
|
-
this.player.unbind('pause', this.onPause);
|
|
5073
|
-
this.player.unbind('seek', this.onSeek);
|
|
5074
|
-
this.player.unbind('end', this.onEnded);
|
|
5075
|
-
} // Proxy methods to prevent listener leaks
|
|
5076
|
-
|
|
5077
5061
|
}, {
|
|
5078
5062
|
key: "play",
|
|
5079
5063
|
value: function play() {
|
|
@@ -5084,6 +5068,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5084
5068
|
value: function pause() {
|
|
5085
5069
|
this.callPlayer('pause');
|
|
5086
5070
|
}
|
|
5071
|
+
}, {
|
|
5072
|
+
key: "unbind",
|
|
5073
|
+
value: function unbind() {
|
|
5074
|
+
var _this$props2 = this.props,
|
|
5075
|
+
onPlay = _this$props2.onPlay,
|
|
5076
|
+
onPause = _this$props2.onPause,
|
|
5077
|
+
onSeek = _this$props2.onSeek,
|
|
5078
|
+
onEnded = _this$props2.onEnded;
|
|
5079
|
+
this.player.unbind('play', onPlay);
|
|
5080
|
+
this.player.unbind('pause', onPause);
|
|
5081
|
+
this.player.unbind('seek', onSeek);
|
|
5082
|
+
this.player.unbind('end', onEnded);
|
|
5083
|
+
}
|
|
5087
5084
|
}, {
|
|
5088
5085
|
key: "stop",
|
|
5089
5086
|
value: function stop() {
|
|
@@ -5129,7 +5126,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5129
5126
|
width: '100%',
|
|
5130
5127
|
height: '100%'
|
|
5131
5128
|
};
|
|
5132
|
-
return
|
|
5129
|
+
return _react["default"].createElement("div", {
|
|
5133
5130
|
key: id,
|
|
5134
5131
|
className: className,
|
|
5135
5132
|
style: style
|
|
@@ -5165,7 +5162,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5165
5162
|
});
|
|
5166
5163
|
exports["default"] = exports.Twitch = void 0;
|
|
5167
5164
|
|
|
5168
|
-
var _react = _interopRequireWildcard(
|
|
5165
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5169
5166
|
|
|
5170
5167
|
|
|
5171
5168
|
|
|
@@ -5189,16 +5186,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5189
5186
|
|
|
5190
5187
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5191
5188
|
|
|
5192
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5193
|
-
|
|
5194
5189
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5195
5190
|
|
|
5196
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5197
|
-
|
|
5198
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5199
|
-
|
|
5200
5191
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
5192
|
|
|
5193
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
|
+
|
|
5202
5195
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5203
5196
|
|
|
5204
5197
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5211,12 +5204,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5211
5204
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5212
5205
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5213
5206
|
|
|
5214
|
-
var Twitch =
|
|
5207
|
+
var Twitch =
|
|
5208
|
+
/*#__PURE__*/
|
|
5209
|
+
function (_Component) {
|
|
5215
5210
|
_inherits(Twitch, _Component);
|
|
5216
5211
|
|
|
5217
|
-
var _super = _createSuper(Twitch);
|
|
5218
|
-
|
|
5219
5212
|
function Twitch() {
|
|
5213
|
+
var _getPrototypeOf2;
|
|
5214
|
+
|
|
5220
5215
|
var _this;
|
|
5221
5216
|
|
|
5222
5217
|
_classCallCheck(this, Twitch);
|
|
@@ -5225,7 +5220,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5225
5220
|
args[_key] = arguments[_key];
|
|
5226
5221
|
}
|
|
5227
5222
|
|
|
5228
|
-
_this =
|
|
5223
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5229
5224
|
|
|
5230
5225
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5231
5226
|
|
|
@@ -5346,7 +5341,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5346
5341
|
width: '100%',
|
|
5347
5342
|
height: '100%'
|
|
5348
5343
|
};
|
|
5349
|
-
return
|
|
5344
|
+
return _react["default"].createElement("div", {
|
|
5350
5345
|
style: style,
|
|
5351
5346
|
id: this.playerID
|
|
5352
5347
|
});
|
|
@@ -5381,7 +5376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5381
5376
|
});
|
|
5382
5377
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5383
5378
|
|
|
5384
|
-
var _react = _interopRequireWildcard(
|
|
5379
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5385
5380
|
|
|
5386
5381
|
|
|
5387
5382
|
|
|
@@ -5399,15 +5394,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5399
5394
|
|
|
5400
5395
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5401
5396
|
|
|
5402
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5403
|
-
|
|
5404
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5405
|
-
|
|
5406
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5397
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5407
5398
|
|
|
5408
|
-
function
|
|
5399
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5409
5400
|
|
|
5410
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5401
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5411
5402
|
|
|
5412
5403
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5413
5404
|
|
|
@@ -5417,16 +5408,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5417
5408
|
|
|
5418
5409
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5419
5410
|
|
|
5420
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5421
|
-
|
|
5422
5411
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5423
5412
|
|
|
5424
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5425
|
-
|
|
5426
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5427
|
-
|
|
5428
5413
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
5414
|
|
|
5415
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
|
+
|
|
5430
5417
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5431
5418
|
|
|
5432
5419
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5438,12 +5425,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5438
5425
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5439
5426
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5440
5427
|
|
|
5441
|
-
var DailyMotion =
|
|
5428
|
+
var DailyMotion =
|
|
5429
|
+
/*#__PURE__*/
|
|
5430
|
+
function (_Component) {
|
|
5442
5431
|
_inherits(DailyMotion, _Component);
|
|
5443
5432
|
|
|
5444
|
-
var _super = _createSuper(DailyMotion);
|
|
5445
|
-
|
|
5446
5433
|
function DailyMotion() {
|
|
5434
|
+
var _getPrototypeOf2;
|
|
5435
|
+
|
|
5447
5436
|
var _this;
|
|
5448
5437
|
|
|
5449
5438
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5452,7 +5441,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5452
5441
|
args[_key] = arguments[_key];
|
|
5453
5442
|
}
|
|
5454
5443
|
|
|
5455
|
-
_this =
|
|
5444
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5456
5445
|
|
|
5457
5446
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5458
5447
|
|
|
@@ -5581,9 +5570,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5581
5570
|
height: '100%',
|
|
5582
5571
|
display: display
|
|
5583
5572
|
};
|
|
5584
|
-
return
|
|
5573
|
+
return _react["default"].createElement("div", {
|
|
5585
5574
|
style: style
|
|
5586
|
-
},
|
|
5575
|
+
}, _react["default"].createElement("div", {
|
|
5587
5576
|
ref: this.ref
|
|
5588
5577
|
}));
|
|
5589
5578
|
}
|
|
@@ -5617,7 +5606,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5617
5606
|
});
|
|
5618
5607
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5619
5608
|
|
|
5620
|
-
var _react = _interopRequireWildcard(
|
|
5609
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5621
5610
|
|
|
5622
5611
|
|
|
5623
5612
|
|
|
@@ -5641,16 +5630,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5641
5630
|
|
|
5642
5631
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5643
5632
|
|
|
5644
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5645
|
-
|
|
5646
5633
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5647
5634
|
|
|
5648
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5649
|
-
|
|
5650
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5651
|
-
|
|
5652
5635
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
5636
|
|
|
5637
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
|
+
|
|
5654
5639
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5655
5640
|
|
|
5656
5641
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5661,12 +5646,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5661
5646
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5662
5647
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5663
5648
|
|
|
5664
|
-
var Mixcloud =
|
|
5649
|
+
var Mixcloud =
|
|
5650
|
+
/*#__PURE__*/
|
|
5651
|
+
function (_Component) {
|
|
5665
5652
|
_inherits(Mixcloud, _Component);
|
|
5666
5653
|
|
|
5667
|
-
var _super = _createSuper(Mixcloud);
|
|
5668
|
-
|
|
5669
5654
|
function Mixcloud() {
|
|
5655
|
+
var _getPrototypeOf2;
|
|
5656
|
+
|
|
5670
5657
|
var _this;
|
|
5671
5658
|
|
|
5672
5659
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5675,7 +5662,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5675
5662
|
args[_key] = arguments[_key];
|
|
5676
5663
|
}
|
|
5677
5664
|
|
|
5678
|
-
_this =
|
|
5665
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5679
5666
|
|
|
5680
5667
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5681
5668
|
|
|
@@ -5778,7 +5765,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5778
5765
|
})); // We have to give the iframe a key here to prevent a
|
|
5779
5766
|
// weird dialog appearing when loading a new track
|
|
5780
5767
|
|
|
5781
|
-
return
|
|
5768
|
+
return _react["default"].createElement("iframe", {
|
|
5782
5769
|
key: id,
|
|
5783
5770
|
ref: this.ref,
|
|
5784
5771
|
style: style,
|
|
@@ -5816,7 +5803,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5816
5803
|
});
|
|
5817
5804
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5818
5805
|
|
|
5819
|
-
var _react = _interopRequireWildcard(
|
|
5806
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5820
5807
|
|
|
5821
5808
|
|
|
5822
5809
|
|
|
@@ -5838,33 +5825,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5838
5825
|
|
|
5839
5826
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5840
5827
|
|
|
5841
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5842
|
-
|
|
5843
5828
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5844
5829
|
|
|
5845
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5846
|
-
|
|
5847
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5848
|
-
|
|
5849
5830
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
5831
|
|
|
5832
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
|
+
|
|
5851
5834
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5852
5835
|
|
|
5853
5836
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5854
5837
|
|
|
5855
5838
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5856
5839
|
|
|
5857
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5858
|
-
|
|
5859
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5860
|
-
|
|
5861
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5862
|
-
|
|
5863
5840
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5864
5841
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5865
5842
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5866
5843
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5867
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5844
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5868
5845
|
var HLS_GLOBAL = 'Hls';
|
|
5869
5846
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5870
5847
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5873,11 +5850,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5873
5850
|
|
|
5874
5851
|
function canPlay(url) {
|
|
5875
5852
|
if (url instanceof Array) {
|
|
5876
|
-
var
|
|
5877
|
-
|
|
5853
|
+
var _iteratorNormalCompletion = true;
|
|
5854
|
+
var _didIteratorError = false;
|
|
5855
|
+
var _iteratorError = undefined;
|
|
5878
5856
|
|
|
5879
5857
|
try {
|
|
5880
|
-
for (_iterator.
|
|
5858
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5881
5859
|
var item = _step.value;
|
|
5882
5860
|
|
|
5883
5861
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5889,9 +5867,18 @@ function canPlay(url) {
|
|
|
5889
5867
|
}
|
|
5890
5868
|
}
|
|
5891
5869
|
} catch (err) {
|
|
5892
|
-
|
|
5870
|
+
_didIteratorError = true;
|
|
5871
|
+
_iteratorError = err;
|
|
5893
5872
|
} finally {
|
|
5894
|
-
|
|
5873
|
+
try {
|
|
5874
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
+
_iterator["return"]();
|
|
5876
|
+
}
|
|
5877
|
+
} finally {
|
|
5878
|
+
if (_didIteratorError) {
|
|
5879
|
+
throw _iteratorError;
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5895
5882
|
}
|
|
5896
5883
|
|
|
5897
5884
|
return false;
|
|
@@ -5915,12 +5902,14 @@ function canEnablePIP(url) {
|
|
|
5915
5902
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5916
5903
|
}
|
|
5917
5904
|
|
|
5918
|
-
var FilePlayer =
|
|
5905
|
+
var FilePlayer =
|
|
5906
|
+
/*#__PURE__*/
|
|
5907
|
+
function (_Component) {
|
|
5919
5908
|
_inherits(FilePlayer, _Component);
|
|
5920
5909
|
|
|
5921
|
-
var _super = _createSuper(FilePlayer);
|
|
5922
|
-
|
|
5923
5910
|
function FilePlayer() {
|
|
5911
|
+
var _getPrototypeOf2;
|
|
5912
|
+
|
|
5924
5913
|
var _this;
|
|
5925
5914
|
|
|
5926
5915
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5929,7 +5918,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5929
5918
|
_args[_key] = arguments[_key];
|
|
5930
5919
|
}
|
|
5931
5920
|
|
|
5932
|
-
_this =
|
|
5921
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5933
5922
|
|
|
5934
5923
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5935
5924
|
var _this$props;
|
|
@@ -6016,19 +6005,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6016
6005
|
|
|
6017
6006
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6018
6007
|
if (typeof source === 'string') {
|
|
6019
|
-
return
|
|
6008
|
+
return _react["default"].createElement("source", {
|
|
6020
6009
|
key: index,
|
|
6021
6010
|
src: source
|
|
6022
6011
|
});
|
|
6023
6012
|
}
|
|
6024
6013
|
|
|
6025
|
-
return
|
|
6014
|
+
return _react["default"].createElement("source", _extends({
|
|
6026
6015
|
key: index
|
|
6027
6016
|
}, source));
|
|
6028
6017
|
});
|
|
6029
6018
|
|
|
6030
6019
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6031
|
-
return
|
|
6020
|
+
return _react["default"].createElement("track", _extends({
|
|
6032
6021
|
key: index
|
|
6033
6022
|
}, track));
|
|
6034
6023
|
});
|
|
@@ -6066,10 +6055,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6066
6055
|
key: "componentWillUnmount",
|
|
6067
6056
|
value: function componentWillUnmount() {
|
|
6068
6057
|
this.removeListeners(this.player);
|
|
6069
|
-
|
|
6070
|
-
if (this.hls) {
|
|
6071
|
-
this.hls.destroy();
|
|
6072
|
-
}
|
|
6073
6058
|
}
|
|
6074
6059
|
}, {
|
|
6075
6060
|
key: "addListeners",
|
|
@@ -6200,6 +6185,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6200
6185
|
value: function stop() {
|
|
6201
6186
|
this.player.removeAttribute('src');
|
|
6202
6187
|
|
|
6188
|
+
if (this.hls) {
|
|
6189
|
+
this.hls.destroy();
|
|
6190
|
+
}
|
|
6191
|
+
|
|
6203
6192
|
if (this.dash) {
|
|
6204
6193
|
this.dash.reset();
|
|
6205
6194
|
}
|
|
@@ -6311,7 +6300,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6311
6300
|
width: width === 'auto' ? width : '100%',
|
|
6312
6301
|
height: height === 'auto' ? height : '100%'
|
|
6313
6302
|
};
|
|
6314
|
-
return
|
|
6303
|
+
return _react["default"].createElement(Element, _extends({
|
|
6315
6304
|
ref: this.ref,
|
|
6316
6305
|
src: this.getSource(url),
|
|
6317
6306
|
style: style,
|
|
@@ -6383,7 +6372,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6383
6372
|
});
|
|
6384
6373
|
exports["default"] = void 0;
|
|
6385
6374
|
|
|
6386
|
-
var _react = _interopRequireWildcard(
|
|
6375
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6387
6376
|
|
|
6388
6377
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6389
6378
|
|
|
@@ -6401,16 +6390,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6401
6390
|
|
|
6402
6391
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6403
6392
|
|
|
6404
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6405
|
-
|
|
6406
6393
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6407
6394
|
|
|
6408
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6409
|
-
|
|
6410
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6411
|
-
|
|
6412
6395
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
6396
|
|
|
6397
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
|
+
|
|
6414
6399
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6415
6400
|
|
|
6416
6401
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6419,12 +6404,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6419
6404
|
|
|
6420
6405
|
var ICON_SIZE = '64px';
|
|
6421
6406
|
|
|
6422
|
-
var Preview =
|
|
6407
|
+
var Preview =
|
|
6408
|
+
/*#__PURE__*/
|
|
6409
|
+
function (_Component) {
|
|
6423
6410
|
_inherits(Preview, _Component);
|
|
6424
6411
|
|
|
6425
|
-
var _super = _createSuper(Preview);
|
|
6426
|
-
|
|
6427
6412
|
function Preview() {
|
|
6413
|
+
var _getPrototypeOf2;
|
|
6414
|
+
|
|
6428
6415
|
var _this;
|
|
6429
6416
|
|
|
6430
6417
|
_classCallCheck(this, Preview);
|
|
@@ -6433,7 +6420,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6433
6420
|
args[_key] = arguments[_key];
|
|
6434
6421
|
}
|
|
6435
6422
|
|
|
6436
|
-
_this =
|
|
6423
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6437
6424
|
|
|
6438
6425
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6439
6426
|
|
|
@@ -6531,15 +6518,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6531
6518
|
}
|
|
6532
6519
|
};
|
|
6533
6520
|
|
|
6534
|
-
var defaultPlayIcon =
|
|
6521
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6535
6522
|
style: styles.shadow,
|
|
6536
6523
|
className: "react-player__shadow"
|
|
6537
|
-
},
|
|
6524
|
+
}, _react["default"].createElement("div", {
|
|
6538
6525
|
style: styles.playIcon,
|
|
6539
6526
|
className: "react-player__play-icon"
|
|
6540
6527
|
}));
|
|
6541
6528
|
|
|
6542
|
-
return
|
|
6529
|
+
return _react["default"].createElement("div", {
|
|
6543
6530
|
style: styles.preview,
|
|
6544
6531
|
className: "react-player__preview",
|
|
6545
6532
|
onClick: onClick
|
|
@@ -6562,7 +6549,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6562
6549
|
});
|
|
6563
6550
|
exports["default"] = renderPreloadPlayers;
|
|
6564
6551
|
|
|
6565
|
-
var _react = _interopRequireDefault(
|
|
6552
|
+
var _react = _interopRequireDefault(React__default);
|
|
6566
6553
|
|
|
6567
6554
|
var _Player = _interopRequireDefault(Player_1);
|
|
6568
6555
|
|
|
@@ -6576,12 +6563,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6576
6563
|
|
|
6577
6564
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6578
6565
|
|
|
6579
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6580
|
-
|
|
6581
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6582
|
-
|
|
6583
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6584
|
-
|
|
6585
6566
|
var PRELOAD_PLAYERS = [{
|
|
6586
6567
|
Player: YouTube_1.YouTube,
|
|
6587
6568
|
configKey: 'youtube',
|
|
@@ -6602,16 +6583,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6602
6583
|
|
|
6603
6584
|
function renderPreloadPlayers(url, controls, config) {
|
|
6604
6585
|
var players = [];
|
|
6605
|
-
|
|
6606
|
-
var
|
|
6607
|
-
|
|
6586
|
+
var _iteratorNormalCompletion = true;
|
|
6587
|
+
var _didIteratorError = false;
|
|
6588
|
+
var _iteratorError = undefined;
|
|
6608
6589
|
|
|
6609
6590
|
try {
|
|
6610
|
-
for (_iterator.
|
|
6591
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6611
6592
|
var player = _step.value;
|
|
6612
6593
|
|
|
6613
6594
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6614
|
-
players.push(
|
|
6595
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6615
6596
|
key: player.Player.displayName,
|
|
6616
6597
|
activePlayer: player.Player,
|
|
6617
6598
|
url: player.url,
|
|
@@ -6623,9 +6604,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6623
6604
|
}
|
|
6624
6605
|
}
|
|
6625
6606
|
} catch (err) {
|
|
6626
|
-
|
|
6607
|
+
_didIteratorError = true;
|
|
6608
|
+
_iteratorError = err;
|
|
6627
6609
|
} finally {
|
|
6628
|
-
|
|
6610
|
+
try {
|
|
6611
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
+
_iterator["return"]();
|
|
6613
|
+
}
|
|
6614
|
+
} finally {
|
|
6615
|
+
if (_didIteratorError) {
|
|
6616
|
+
throw _iteratorError;
|
|
6617
|
+
}
|
|
6618
|
+
}
|
|
6629
6619
|
}
|
|
6630
6620
|
|
|
6631
6621
|
return players;
|
|
@@ -6701,7 +6691,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6701
6691
|
});
|
|
6702
6692
|
exports["default"] = void 0;
|
|
6703
6693
|
|
|
6704
|
-
var _react = _interopRequireWildcard(
|
|
6694
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6705
6695
|
|
|
6706
6696
|
|
|
6707
6697
|
|
|
@@ -6749,17 +6739,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6749
6739
|
|
|
6750
6740
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6751
6741
|
|
|
6752
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6753
|
-
|
|
6754
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6755
|
-
|
|
6756
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6742
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6757
6743
|
|
|
6758
|
-
function
|
|
6744
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6759
6745
|
|
|
6760
|
-
function
|
|
6746
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6761
6747
|
|
|
6762
|
-
function
|
|
6748
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6763
6749
|
|
|
6764
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6765
6751
|
|
|
@@ -6767,16 +6753,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6767
6753
|
|
|
6768
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6769
6755
|
|
|
6770
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6771
|
-
|
|
6772
6756
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6773
6757
|
|
|
6774
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6775
|
-
|
|
6776
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6777
|
-
|
|
6778
6758
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
6759
|
|
|
6760
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
|
+
|
|
6780
6762
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6781
6763
|
|
|
6782
6764
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6786,12 +6768,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6786
6768
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6787
6769
|
var customPlayers = [];
|
|
6788
6770
|
|
|
6789
|
-
var ReactPlayer =
|
|
6771
|
+
var ReactPlayer =
|
|
6772
|
+
/*#__PURE__*/
|
|
6773
|
+
function (_Component) {
|
|
6790
6774
|
_inherits(ReactPlayer, _Component);
|
|
6791
6775
|
|
|
6792
|
-
var _super = _createSuper(ReactPlayer);
|
|
6793
|
-
|
|
6794
6776
|
function ReactPlayer() {
|
|
6777
|
+
var _getPrototypeOf2;
|
|
6778
|
+
|
|
6795
6779
|
var _this;
|
|
6796
6780
|
|
|
6797
6781
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6800,7 +6784,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6800
6784
|
args[_key] = arguments[_key];
|
|
6801
6785
|
}
|
|
6802
6786
|
|
|
6803
|
-
_this =
|
|
6787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6804
6788
|
|
|
6805
6789
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6806
6790
|
|
|
@@ -6911,7 +6895,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6911
6895
|
key: "renderActivePlayer",
|
|
6912
6896
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6913
6897
|
if (!url) return null;
|
|
6914
|
-
return
|
|
6898
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6915
6899
|
key: activePlayer.displayName,
|
|
6916
6900
|
ref: this.activePlayerRef,
|
|
6917
6901
|
config: this.config,
|
|
@@ -6948,14 +6932,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6948
6932
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6949
6933
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6950
6934
|
|
|
6951
|
-
var preview =
|
|
6935
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6952
6936
|
url: url,
|
|
6953
6937
|
light: light,
|
|
6954
6938
|
playIcon: playIcon,
|
|
6955
6939
|
onClick: this.handleClickPreview
|
|
6956
6940
|
});
|
|
6957
6941
|
|
|
6958
|
-
return
|
|
6942
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6959
6943
|
ref: this.wrapperRef,
|
|
6960
6944
|
style: _objectSpread({}, style, {
|
|
6961
6945
|
width: width,
|
|
@@ -7015,20 +6999,20 @@ var Audio = function Audio(_ref) {
|
|
|
7015
6999
|
var node = _ref.node;
|
|
7016
7000
|
|
|
7017
7001
|
if (node.uploadAudio) {
|
|
7018
|
-
return
|
|
7002
|
+
return React__default.createElement(
|
|
7019
7003
|
'div',
|
|
7020
7004
|
{ className: 'audio d-block text-center mb-3' },
|
|
7021
|
-
|
|
7005
|
+
React__default.createElement(
|
|
7022
7006
|
'audio',
|
|
7023
7007
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7024
|
-
|
|
7025
|
-
|
|
7008
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7009
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7026
7010
|
'Your browser does not support the audio element.'
|
|
7027
7011
|
),
|
|
7028
|
-
node.caption &&
|
|
7012
|
+
node.caption && React__default.createElement(
|
|
7029
7013
|
'p',
|
|
7030
7014
|
{ style: { fontSize: '.9rem' } },
|
|
7031
|
-
|
|
7015
|
+
React__default.createElement(
|
|
7032
7016
|
'em',
|
|
7033
7017
|
null,
|
|
7034
7018
|
node.caption
|
|
@@ -7038,15 +7022,15 @@ var Audio = function Audio(_ref) {
|
|
|
7038
7022
|
} else if (node.audioFilePth) {
|
|
7039
7023
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7040
7024
|
if (hostname === 'embeds.audioboom.com') {
|
|
7041
|
-
return
|
|
7025
|
+
return React__default.createElement(
|
|
7042
7026
|
'div',
|
|
7043
7027
|
null,
|
|
7044
|
-
|
|
7028
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7045
7029
|
' ',
|
|
7046
|
-
node.caption &&
|
|
7030
|
+
node.caption && React__default.createElement(
|
|
7047
7031
|
'p',
|
|
7048
7032
|
{ style: { fontSize: '.9rem' } },
|
|
7049
|
-
|
|
7033
|
+
React__default.createElement(
|
|
7050
7034
|
'em',
|
|
7051
7035
|
null,
|
|
7052
7036
|
node.caption
|
|
@@ -7054,14 +7038,14 @@ var Audio = function Audio(_ref) {
|
|
|
7054
7038
|
)
|
|
7055
7039
|
);
|
|
7056
7040
|
}
|
|
7057
|
-
return
|
|
7041
|
+
return React__default.createElement(
|
|
7058
7042
|
'div',
|
|
7059
7043
|
{ className: 'audio' },
|
|
7060
|
-
|
|
7061
|
-
node.caption &&
|
|
7044
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7045
|
+
node.caption && React__default.createElement(
|
|
7062
7046
|
'p',
|
|
7063
7047
|
{ style: { fontSize: '.9rem' } },
|
|
7064
|
-
|
|
7048
|
+
React__default.createElement(
|
|
7065
7049
|
'em',
|
|
7066
7050
|
null,
|
|
7067
7051
|
node.caption
|
|
@@ -7079,34 +7063,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7079
7063
|
var profileImage = arguments[6];
|
|
7080
7064
|
|
|
7081
7065
|
if (authorName && authorURL) {
|
|
7082
|
-
return
|
|
7066
|
+
return React__default.createElement(
|
|
7083
7067
|
'span',
|
|
7084
7068
|
null,
|
|
7085
|
-
|
|
7069
|
+
React__default.createElement(
|
|
7086
7070
|
'a',
|
|
7087
7071
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7088
7072
|
authorName
|
|
7089
7073
|
),
|
|
7090
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7091
7075
|
Card,
|
|
7092
7076
|
{ className: 'author-details-card-' + index },
|
|
7093
|
-
|
|
7077
|
+
React__default.createElement(
|
|
7094
7078
|
Row,
|
|
7095
7079
|
null,
|
|
7096
|
-
profileImage &&
|
|
7080
|
+
profileImage && React__default.createElement(
|
|
7097
7081
|
Col,
|
|
7098
7082
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7099
|
-
|
|
7083
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7100
7084
|
),
|
|
7101
|
-
|
|
7085
|
+
React__default.createElement(
|
|
7102
7086
|
Col,
|
|
7103
7087
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7104
|
-
|
|
7088
|
+
React__default.createElement(
|
|
7105
7089
|
'div',
|
|
7106
7090
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7107
7091
|
authorName
|
|
7108
7092
|
),
|
|
7109
|
-
|
|
7093
|
+
React__default.createElement(
|
|
7110
7094
|
'p',
|
|
7111
7095
|
null,
|
|
7112
7096
|
biography
|
|
@@ -7114,7 +7098,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7114
7098
|
)
|
|
7115
7099
|
)
|
|
7116
7100
|
),
|
|
7117
|
-
|
|
7101
|
+
React__default.createElement(
|
|
7118
7102
|
'style',
|
|
7119
7103
|
{ jsx: 'true' },
|
|
7120
7104
|
'\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 '
|
|
@@ -7122,7 +7106,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7122
7106
|
length !== index + 1 && ' , '
|
|
7123
7107
|
);
|
|
7124
7108
|
} else if (authorName) {
|
|
7125
|
-
return
|
|
7109
|
+
return React__default.createElement(
|
|
7126
7110
|
'span',
|
|
7127
7111
|
{ key: index },
|
|
7128
7112
|
authorName,
|
|
@@ -7394,44 +7378,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7394
7378
|
}
|
|
7395
7379
|
};
|
|
7396
7380
|
|
|
7397
|
-
return
|
|
7381
|
+
return React__default.createElement(
|
|
7398
7382
|
'div',
|
|
7399
7383
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7400
|
-
|
|
7384
|
+
React__default.createElement(
|
|
7401
7385
|
'div',
|
|
7402
7386
|
{ className: 'mt-2 mb-5' },
|
|
7403
|
-
series &&
|
|
7387
|
+
series && React__default.createElement(
|
|
7404
7388
|
'div',
|
|
7405
7389
|
{ style: { fontSize: '0.9rem' } },
|
|
7406
7390
|
article.title,
|
|
7407
7391
|
' - Episode ',
|
|
7408
7392
|
series
|
|
7409
7393
|
),
|
|
7410
|
-
Videos[series - 1] &&
|
|
7394
|
+
Videos[series - 1] && React__default.createElement(
|
|
7411
7395
|
'h1',
|
|
7412
7396
|
{ className: 'mb-3' },
|
|
7413
7397
|
Videos[series - 1].title
|
|
7414
7398
|
),
|
|
7415
|
-
|
|
7399
|
+
React__default.createElement(
|
|
7416
7400
|
'div',
|
|
7417
7401
|
null,
|
|
7418
7402
|
moment(article.published).format('LL')
|
|
7419
7403
|
),
|
|
7420
|
-
|
|
7404
|
+
React__default.createElement(
|
|
7421
7405
|
'div',
|
|
7422
7406
|
{ className: 'mb-3' },
|
|
7423
7407
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7424
|
-
return
|
|
7408
|
+
return React__default.createElement(
|
|
7425
7409
|
'span',
|
|
7426
7410
|
{ key: index },
|
|
7427
7411
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7428
7412
|
);
|
|
7429
7413
|
})
|
|
7430
7414
|
),
|
|
7431
|
-
|
|
7415
|
+
React__default.createElement(
|
|
7432
7416
|
'p',
|
|
7433
7417
|
null,
|
|
7434
|
-
|
|
7418
|
+
React__default.createElement(SocialShare, {
|
|
7435
7419
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7436
7420
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7437
7421
|
shareVia: meta.shareVia,
|
|
@@ -7446,20 +7430,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7446
7430
|
hideFacebook: meta.hideFBShare
|
|
7447
7431
|
})
|
|
7448
7432
|
),
|
|
7449
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7433
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7450
7434
|
'p',
|
|
7451
7435
|
{ className: 'mb-3' },
|
|
7452
|
-
|
|
7436
|
+
React__default.createElement(
|
|
7453
7437
|
'em',
|
|
7454
7438
|
null,
|
|
7455
7439
|
Videos[series - 1].intro
|
|
7456
7440
|
)
|
|
7457
7441
|
)
|
|
7458
7442
|
),
|
|
7459
|
-
|
|
7443
|
+
React__default.createElement(
|
|
7460
7444
|
'div',
|
|
7461
7445
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7462
|
-
vidUrl && vidType == 'youtube' &&
|
|
7446
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7463
7447
|
className: 'fluid-iframe',
|
|
7464
7448
|
videoId: getYoutubeId(vidUrl),
|
|
7465
7449
|
opts: opts,
|
|
@@ -7470,10 +7454,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7454
|
return handleOnEnd(e);
|
|
7471
7455
|
}
|
|
7472
7456
|
}),
|
|
7473
|
-
vidUrl && vidType == 'mp4' &&
|
|
7474
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7475
|
-
|
|
7476
|
-
series &&
|
|
7457
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7458
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7459
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7460
|
+
series && React__default.createElement(
|
|
7477
7461
|
'div',
|
|
7478
7462
|
{
|
|
7479
7463
|
className: 'vid-series',
|
|
@@ -7483,10 +7467,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7483
7467
|
maxHeight: '100%',
|
|
7484
7468
|
paddingBottom: '0'
|
|
7485
7469
|
} },
|
|
7486
|
-
|
|
7470
|
+
React__default.createElement(
|
|
7487
7471
|
'p',
|
|
7488
7472
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7489
|
-
|
|
7473
|
+
React__default.createElement(
|
|
7490
7474
|
'b',
|
|
7491
7475
|
{ style: { fontSize: '1.25em' } },
|
|
7492
7476
|
'Now Playing:'
|
|
@@ -7494,16 +7478,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7494
7478
|
' ',
|
|
7495
7479
|
seriesData[series ? series - 1 : 0].title
|
|
7496
7480
|
),
|
|
7497
|
-
vidUrl &&
|
|
7481
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7498
7482
|
)
|
|
7499
7483
|
),
|
|
7500
|
-
|
|
7501
|
-
|
|
7484
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7485
|
+
React__default.createElement(
|
|
7502
7486
|
'div',
|
|
7503
7487
|
{ className: 'vid-text' },
|
|
7504
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7488
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7505
7489
|
),
|
|
7506
|
-
|
|
7490
|
+
React__default.createElement(
|
|
7507
7491
|
'style',
|
|
7508
7492
|
{ jsx: 'true' },
|
|
7509
7493
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7556,67 +7540,67 @@ var Poll = function Poll(_ref) {
|
|
|
7556
7540
|
return acc;
|
|
7557
7541
|
}
|
|
7558
7542
|
}, 0);
|
|
7559
|
-
return
|
|
7560
|
-
|
|
7543
|
+
return React__default.createElement(
|
|
7544
|
+
React__default.Fragment,
|
|
7561
7545
|
null,
|
|
7562
|
-
question &&
|
|
7546
|
+
question && React__default.createElement(
|
|
7563
7547
|
'p',
|
|
7564
7548
|
{ className: 'font-weight-bold' },
|
|
7565
7549
|
question
|
|
7566
7550
|
),
|
|
7567
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7551
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7568
7552
|
'form',
|
|
7569
7553
|
{ onSubmit: function onSubmit(e) {
|
|
7570
7554
|
return onSubmitPoll(e);
|
|
7571
7555
|
} },
|
|
7572
7556
|
choices && choices.map(function (choice) {
|
|
7573
|
-
return
|
|
7557
|
+
return React__default.createElement(
|
|
7574
7558
|
'div',
|
|
7575
7559
|
{ key: choice._key },
|
|
7576
|
-
|
|
7560
|
+
React__default.createElement(
|
|
7577
7561
|
'label',
|
|
7578
7562
|
{ className: 'pl-2' },
|
|
7579
|
-
|
|
7563
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7580
7564
|
return setSelectedChoice(e.target.value);
|
|
7581
7565
|
} }),
|
|
7582
7566
|
' ' + choice.choiceText
|
|
7583
7567
|
)
|
|
7584
7568
|
);
|
|
7585
7569
|
}),
|
|
7586
|
-
|
|
7570
|
+
React__default.createElement(
|
|
7587
7571
|
Button,
|
|
7588
7572
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7589
7573
|
'Vote'
|
|
7590
7574
|
)
|
|
7591
7575
|
),
|
|
7592
|
-
|
|
7576
|
+
React__default.createElement(
|
|
7593
7577
|
'div',
|
|
7594
7578
|
{ className: 'progress-container' },
|
|
7595
7579
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7596
7580
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7597
|
-
return
|
|
7581
|
+
return React__default.createElement(
|
|
7598
7582
|
'div',
|
|
7599
7583
|
{ key: choice._key, className: 'mb-3' },
|
|
7600
|
-
|
|
7584
|
+
React__default.createElement(
|
|
7601
7585
|
'div',
|
|
7602
7586
|
{ className: 'correct-answer' },
|
|
7603
|
-
|
|
7587
|
+
React__default.createElement(
|
|
7604
7588
|
'div',
|
|
7605
7589
|
null,
|
|
7606
7590
|
choice.choiceText
|
|
7607
7591
|
),
|
|
7608
|
-
choice.choiceAnswer === true &&
|
|
7592
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7609
7593
|
'div',
|
|
7610
7594
|
null,
|
|
7611
|
-
|
|
7595
|
+
React__default.createElement(
|
|
7612
7596
|
'span',
|
|
7613
7597
|
{ style: { color: 'limegreen' } },
|
|
7614
7598
|
'Correct!'
|
|
7615
7599
|
)
|
|
7616
7600
|
)
|
|
7617
7601
|
),
|
|
7618
|
-
|
|
7619
|
-
|
|
7602
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7603
|
+
React__default.createElement(
|
|
7620
7604
|
'span',
|
|
7621
7605
|
{ className: 'float-right' },
|
|
7622
7606
|
percentage,
|
|
@@ -7627,14 +7611,14 @@ var Poll = function Poll(_ref) {
|
|
|
7627
7611
|
);
|
|
7628
7612
|
})
|
|
7629
7613
|
),
|
|
7630
|
-
showAnswer &&
|
|
7614
|
+
showAnswer && React__default.createElement(
|
|
7631
7615
|
'h4',
|
|
7632
7616
|
{ className: 'text-center small p-3' },
|
|
7633
7617
|
'Total Votes: ',
|
|
7634
7618
|
choicesTotalCount
|
|
7635
7619
|
),
|
|
7636
|
-
showAnswer && response &&
|
|
7637
|
-
|
|
7620
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7621
|
+
React__default.createElement(
|
|
7638
7622
|
'style',
|
|
7639
7623
|
{ jsx: 'true' },
|
|
7640
7624
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7733,67 +7717,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7733
7717
|
return acc;
|
|
7734
7718
|
}
|
|
7735
7719
|
}, 0);
|
|
7736
|
-
return
|
|
7737
|
-
|
|
7720
|
+
return React__default.createElement(
|
|
7721
|
+
React__default.Fragment,
|
|
7738
7722
|
null,
|
|
7739
|
-
question &&
|
|
7723
|
+
question && React__default.createElement(
|
|
7740
7724
|
'p',
|
|
7741
7725
|
{ className: 'font-weight-bold' },
|
|
7742
7726
|
question
|
|
7743
7727
|
),
|
|
7744
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7728
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7745
7729
|
'form',
|
|
7746
7730
|
{ onSubmit: function onSubmit(e) {
|
|
7747
7731
|
return onSubmitPoll(e);
|
|
7748
7732
|
} },
|
|
7749
7733
|
choices && choices.map(function (choice) {
|
|
7750
|
-
return
|
|
7734
|
+
return React__default.createElement(
|
|
7751
7735
|
'div',
|
|
7752
7736
|
{ key: choice._key },
|
|
7753
|
-
|
|
7737
|
+
React__default.createElement(
|
|
7754
7738
|
'label',
|
|
7755
7739
|
{ className: 'pl-2' },
|
|
7756
|
-
|
|
7740
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7757
7741
|
return setSelectedChoice(e.target.value);
|
|
7758
7742
|
} }),
|
|
7759
7743
|
' ' + choice.choiceText
|
|
7760
7744
|
)
|
|
7761
7745
|
);
|
|
7762
7746
|
}),
|
|
7763
|
-
|
|
7747
|
+
React__default.createElement(
|
|
7764
7748
|
Button,
|
|
7765
7749
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7766
7750
|
'Vote'
|
|
7767
7751
|
)
|
|
7768
7752
|
),
|
|
7769
|
-
|
|
7753
|
+
React__default.createElement(
|
|
7770
7754
|
'div',
|
|
7771
7755
|
{ className: 'progress-container' },
|
|
7772
7756
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7773
7757
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7774
|
-
return
|
|
7758
|
+
return React__default.createElement(
|
|
7775
7759
|
'div',
|
|
7776
7760
|
{ key: choice._key, className: 'mb-3' },
|
|
7777
|
-
|
|
7761
|
+
React__default.createElement(
|
|
7778
7762
|
'div',
|
|
7779
7763
|
{ className: 'correct-answer' },
|
|
7780
|
-
|
|
7764
|
+
React__default.createElement(
|
|
7781
7765
|
'div',
|
|
7782
7766
|
null,
|
|
7783
7767
|
choice.choiceText
|
|
7784
7768
|
),
|
|
7785
|
-
choice.choiceAnswer === true &&
|
|
7769
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7786
7770
|
'div',
|
|
7787
7771
|
null,
|
|
7788
|
-
|
|
7772
|
+
React__default.createElement(
|
|
7789
7773
|
'span',
|
|
7790
7774
|
{ style: { color: 'limegreen' } },
|
|
7791
7775
|
'Correct!'
|
|
7792
7776
|
)
|
|
7793
7777
|
)
|
|
7794
7778
|
),
|
|
7795
|
-
|
|
7796
|
-
|
|
7779
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7780
|
+
React__default.createElement(
|
|
7797
7781
|
'span',
|
|
7798
7782
|
{ className: 'float-right' },
|
|
7799
7783
|
percentage,
|
|
@@ -7804,14 +7788,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7804
7788
|
);
|
|
7805
7789
|
})
|
|
7806
7790
|
),
|
|
7807
|
-
showAnswer &&
|
|
7791
|
+
showAnswer && React__default.createElement(
|
|
7808
7792
|
'h4',
|
|
7809
7793
|
{ className: 'text-center small p-3' },
|
|
7810
7794
|
'Total Votes: ',
|
|
7811
7795
|
choicesTotalCount
|
|
7812
7796
|
),
|
|
7813
|
-
showAnswer && response &&
|
|
7814
|
-
|
|
7797
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7798
|
+
React__default.createElement(
|
|
7815
7799
|
'style',
|
|
7816
7800
|
{ jsx: 'true' },
|
|
7817
7801
|
'\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 '
|
|
@@ -7819,7 +7803,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7819
7803
|
);
|
|
7820
7804
|
};
|
|
7821
7805
|
|
|
7822
|
-
var numberOfPaginations =
|
|
7806
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7823
7807
|
|
|
7824
7808
|
var Quiz = function Quiz(_ref) {
|
|
7825
7809
|
var quizzes = _ref.quizzes,
|
|
@@ -7937,34 +7921,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7937
7921
|
};
|
|
7938
7922
|
|
|
7939
7923
|
var renderPagination = function renderPagination() {
|
|
7940
|
-
return
|
|
7941
|
-
Pagination,
|
|
7942
|
-
{ className: 'p-0 m-0', size:
|
|
7943
|
-
|
|
7924
|
+
return React__default.createElement(
|
|
7925
|
+
Pagination$1,
|
|
7926
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7927
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7944
7928
|
return changePage('first');
|
|
7945
7929
|
}, disabled: currentPage === 1 }),
|
|
7946
|
-
|
|
7930
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7947
7931
|
return changePage('prev');
|
|
7948
7932
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7933
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7950
7934
|
return renderNewPages('prev');
|
|
7951
7935
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7952
7936
|
pages.map(function (page) {
|
|
7953
|
-
return
|
|
7954
|
-
Pagination.Item,
|
|
7937
|
+
return React__default.createElement(
|
|
7938
|
+
Pagination$1.Item,
|
|
7955
7939
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7956
7940
|
return changePage(page);
|
|
7957
7941
|
} },
|
|
7958
7942
|
page
|
|
7959
7943
|
);
|
|
7960
7944
|
}),
|
|
7961
|
-
|
|
7945
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7962
7946
|
return renderNewPages('next');
|
|
7963
7947
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7964
|
-
|
|
7948
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7965
7949
|
return changePage('next');
|
|
7966
7950
|
}, disabled: currentPage === pageCount }),
|
|
7967
|
-
|
|
7951
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7968
7952
|
return changePage('last');
|
|
7969
7953
|
}, disabled: currentPage === pageCount })
|
|
7970
7954
|
);
|
|
@@ -8047,51 +8031,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8047
8031
|
}
|
|
8048
8032
|
};
|
|
8049
8033
|
|
|
8050
|
-
return
|
|
8051
|
-
|
|
8034
|
+
return React__default.createElement(
|
|
8035
|
+
React__default.Fragment,
|
|
8052
8036
|
null,
|
|
8053
|
-
quizzes[currentPage - 1] &&
|
|
8054
|
-
|
|
8037
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8038
|
+
React__default.Fragment,
|
|
8055
8039
|
null,
|
|
8056
|
-
|
|
8057
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8040
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8041
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8058
8042
|
'form',
|
|
8059
8043
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8060
8044
|
return e.preventDefault();
|
|
8061
8045
|
} },
|
|
8062
8046
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8063
|
-
return
|
|
8047
|
+
return React__default.createElement(
|
|
8064
8048
|
'div',
|
|
8065
8049
|
{ key: answer._key },
|
|
8066
|
-
|
|
8050
|
+
React__default.createElement(
|
|
8067
8051
|
'label',
|
|
8068
8052
|
{ className: 'pl-2' },
|
|
8069
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8053
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8070
8054
|
' ' + answer.answerText
|
|
8071
8055
|
)
|
|
8072
8056
|
);
|
|
8073
8057
|
})
|
|
8074
8058
|
)
|
|
8075
8059
|
),
|
|
8076
|
-
!showAnswer &&
|
|
8060
|
+
!showAnswer && React__default.createElement(
|
|
8077
8061
|
Button$1,
|
|
8078
8062
|
{ onClick: function onClick() {
|
|
8079
8063
|
return checkAnswers();
|
|
8080
8064
|
}, variant: 'info', block: true },
|
|
8081
8065
|
'Please click here for answer'
|
|
8082
8066
|
),
|
|
8083
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8084
|
-
|
|
8067
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8068
|
+
React__default.Fragment,
|
|
8085
8069
|
null,
|
|
8086
|
-
|
|
8070
|
+
React__default.createElement(
|
|
8087
8071
|
'h4',
|
|
8088
8072
|
null,
|
|
8089
8073
|
'Answer:'
|
|
8090
8074
|
),
|
|
8091
|
-
quizzes[currentPage - 1].answer &&
|
|
8075
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8092
8076
|
),
|
|
8093
|
-
|
|
8094
|
-
pageCount > 1 &&
|
|
8077
|
+
React__default.createElement('br', null),
|
|
8078
|
+
pageCount > 1 && React__default.createElement(
|
|
8095
8079
|
'div',
|
|
8096
8080
|
{ className: 'd-flex justify-content-center' },
|
|
8097
8081
|
renderPagination()
|
|
@@ -8102,10 +8086,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8102
8086
|
var Leads = function Leads(_ref) {
|
|
8103
8087
|
var url = _ref.url;
|
|
8104
8088
|
|
|
8105
|
-
return
|
|
8089
|
+
return React__default.createElement(
|
|
8106
8090
|
'div',
|
|
8107
8091
|
{ className: 'd-block text-center mb-3' },
|
|
8108
|
-
url &&
|
|
8092
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8109
8093
|
);
|
|
8110
8094
|
};
|
|
8111
8095
|
|
|
@@ -8148,49 +8132,49 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8148
8132
|
}
|
|
8149
8133
|
};
|
|
8150
8134
|
|
|
8151
|
-
return
|
|
8135
|
+
return React__default.createElement(
|
|
8152
8136
|
'div',
|
|
8153
8137
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8154
|
-
|
|
8138
|
+
React__default.createElement(
|
|
8155
8139
|
Carousel,
|
|
8156
8140
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8157
8141
|
slides && slides.map(function (slide) {
|
|
8158
8142
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8159
|
-
return
|
|
8143
|
+
return React__default.createElement(
|
|
8160
8144
|
Carousel.Item,
|
|
8161
8145
|
{ key: slide._key },
|
|
8162
|
-
|
|
8146
|
+
React__default.createElement(
|
|
8163
8147
|
'a',
|
|
8164
8148
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8165
|
-
|
|
8149
|
+
React__default.createElement(
|
|
8166
8150
|
LazyLoad,
|
|
8167
8151
|
null,
|
|
8168
|
-
|
|
8152
|
+
React__default.createElement(
|
|
8169
8153
|
'picture',
|
|
8170
8154
|
null,
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8155
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8156
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8157
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8158
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8175
8159
|
)
|
|
8176
8160
|
)
|
|
8177
8161
|
),
|
|
8178
|
-
|
|
8162
|
+
React__default.createElement(
|
|
8179
8163
|
'div',
|
|
8180
8164
|
{ className: 'p-2' },
|
|
8181
|
-
slide.slideshowImage.caption &&
|
|
8165
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8182
8166
|
'h3',
|
|
8183
8167
|
{ style: { padding: '0px' } },
|
|
8184
8168
|
slide.slideshowImage.caption
|
|
8185
8169
|
),
|
|
8186
|
-
slide.description &&
|
|
8170
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8187
8171
|
)
|
|
8188
8172
|
);
|
|
8189
8173
|
}
|
|
8190
8174
|
return null;
|
|
8191
8175
|
})
|
|
8192
8176
|
),
|
|
8193
|
-
|
|
8177
|
+
React__default.createElement(
|
|
8194
8178
|
'style',
|
|
8195
8179
|
{ jsx: 'true' },
|
|
8196
8180
|
'\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 '
|
|
@@ -8209,10 +8193,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8209
8193
|
sizes = _props$node.sizes,
|
|
8210
8194
|
sizeMapping = _props$node.sizeMapping;
|
|
8211
8195
|
|
|
8212
|
-
return
|
|
8196
|
+
return React__default.createElement(
|
|
8213
8197
|
'div',
|
|
8214
8198
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8215
|
-
|
|
8199
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8216
8200
|
);
|
|
8217
8201
|
};
|
|
8218
8202
|
|
|
@@ -8223,15 +8207,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8223
8207
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8224
8208
|
|
|
8225
8209
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8226
|
-
return
|
|
8210
|
+
return React__default.createElement(
|
|
8227
8211
|
'section',
|
|
8228
8212
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8229
|
-
Caption &&
|
|
8213
|
+
Caption && React__default.createElement(
|
|
8230
8214
|
'h4',
|
|
8231
8215
|
{ className: 'formstack-caption' },
|
|
8232
8216
|
Caption
|
|
8233
8217
|
),
|
|
8234
|
-
|
|
8218
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8235
8219
|
);
|
|
8236
8220
|
};
|
|
8237
8221
|
|
|
@@ -8247,36 +8231,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8247
8231
|
}
|
|
8248
8232
|
});
|
|
8249
8233
|
if (medias && medias.length > 0) {
|
|
8250
|
-
return
|
|
8234
|
+
return React__default.createElement(
|
|
8251
8235
|
'div',
|
|
8252
8236
|
{ className: 'multi-media-container' },
|
|
8253
|
-
|
|
8237
|
+
React__default.createElement(
|
|
8254
8238
|
Row$1,
|
|
8255
8239
|
{ noGutters: true },
|
|
8256
8240
|
medias.map(function (media) {
|
|
8257
|
-
return
|
|
8241
|
+
return React__default.createElement(
|
|
8258
8242
|
Col$1,
|
|
8259
8243
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8260
|
-
|
|
8244
|
+
React__default.createElement(
|
|
8261
8245
|
'a',
|
|
8262
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8246
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8263
8247
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8264
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8265
8249
|
'div',
|
|
8266
8250
|
{ className: 'multi-media-image-container' },
|
|
8267
|
-
imageBox &&
|
|
8251
|
+
imageBox && React__default.createElement(
|
|
8268
8252
|
LazyLoad,
|
|
8269
8253
|
{ once: true },
|
|
8270
|
-
|
|
8254
|
+
React__default.createElement(
|
|
8271
8255
|
'picture',
|
|
8272
8256
|
null,
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8257
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8258
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8259
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8260
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8277
8261
|
)
|
|
8278
8262
|
),
|
|
8279
|
-
media.caption &&
|
|
8263
|
+
media.caption && React__default.createElement(
|
|
8280
8264
|
'span',
|
|
8281
8265
|
{ className: 'multi-media-caption' },
|
|
8282
8266
|
media.caption
|
|
@@ -8286,7 +8270,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8286
8270
|
);
|
|
8287
8271
|
})
|
|
8288
8272
|
),
|
|
8289
|
-
|
|
8273
|
+
React__default.createElement(
|
|
8290
8274
|
'style',
|
|
8291
8275
|
{ jsx: 'true' },
|
|
8292
8276
|
'\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 '
|
|
@@ -8333,7 +8317,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8333
8317
|
}
|
|
8334
8318
|
};
|
|
8335
8319
|
|
|
8336
|
-
_this.wraperRef =
|
|
8320
|
+
_this.wraperRef = React__default.createRef();
|
|
8337
8321
|
_this.visible = false;
|
|
8338
8322
|
return _this;
|
|
8339
8323
|
}
|
|
@@ -8361,7 +8345,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8361
8345
|
_props$id = _props.id,
|
|
8362
8346
|
id = _props$id === undefined ? '' : _props$id;
|
|
8363
8347
|
|
|
8364
|
-
return
|
|
8348
|
+
return React__default.createElement(
|
|
8365
8349
|
'div',
|
|
8366
8350
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8367
8351
|
this.props.children
|
|
@@ -8370,7 +8354,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8370
8354
|
}]);
|
|
8371
8355
|
|
|
8372
8356
|
return InscreenSensor;
|
|
8373
|
-
}(
|
|
8357
|
+
}(React__default.Component);
|
|
8374
8358
|
|
|
8375
8359
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8376
8360
|
var nodes = _ref.nodes,
|
|
@@ -8479,33 +8463,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8479
8463
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8480
8464
|
var showReading = show ? 'showReading' : '';
|
|
8481
8465
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8482
|
-
return
|
|
8466
|
+
return React__default.createElement(
|
|
8483
8467
|
'div',
|
|
8484
8468
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8485
|
-
|
|
8469
|
+
React__default.createElement(
|
|
8486
8470
|
'a',
|
|
8487
8471
|
{ onClick: function onClick(e) {
|
|
8488
8472
|
return articleCardClickHandler(e);
|
|
8489
8473
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8490
|
-
|
|
8474
|
+
React__default.createElement(
|
|
8491
8475
|
'div',
|
|
8492
8476
|
{ className: 'prevNext-thumbnail' },
|
|
8493
|
-
|
|
8494
|
-
|
|
8477
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8478
|
+
React__default.createElement(
|
|
8495
8479
|
'div',
|
|
8496
8480
|
{ className: 'prevNext-reading ' + showReading },
|
|
8497
8481
|
articleLabel
|
|
8498
8482
|
)
|
|
8499
8483
|
),
|
|
8500
|
-
|
|
8484
|
+
React__default.createElement(
|
|
8501
8485
|
'div',
|
|
8502
8486
|
{ className: 'prevNext-summary' },
|
|
8503
|
-
|
|
8487
|
+
React__default.createElement(
|
|
8504
8488
|
'div',
|
|
8505
8489
|
{ className: 'prevNext-publishDate' },
|
|
8506
8490
|
moment(article.published).format('LL')
|
|
8507
8491
|
),
|
|
8508
|
-
|
|
8492
|
+
React__default.createElement(
|
|
8509
8493
|
'h2',
|
|
8510
8494
|
{ className: 'prevNext-title' },
|
|
8511
8495
|
article.title
|
|
@@ -8554,7 +8538,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8554
8538
|
|
|
8555
8539
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8556
8540
|
if (biography) {
|
|
8557
|
-
return
|
|
8541
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8558
8542
|
}
|
|
8559
8543
|
};
|
|
8560
8544
|
|
|
@@ -8640,7 +8624,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8640
8624
|
//console.log('useLayoutEffect')
|
|
8641
8625
|
if (!firstLoad) {
|
|
8642
8626
|
setUpArrowClicked(false);
|
|
8643
|
-
if (
|
|
8627
|
+
if (main_36) {
|
|
8644
8628
|
grabLoadedAds();
|
|
8645
8629
|
} else {
|
|
8646
8630
|
scrollToArticle();
|
|
@@ -8664,7 +8648,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8664
8648
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8665
8649
|
if (pageview) pageview(path);
|
|
8666
8650
|
|
|
8667
|
-
if (!
|
|
8651
|
+
if (!main_36) {
|
|
8668
8652
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8669
8653
|
if (window.googletag && googletag.pubadsReady) {
|
|
8670
8654
|
lib_3.refresh();
|
|
@@ -8672,7 +8656,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8672
8656
|
});
|
|
8673
8657
|
}
|
|
8674
8658
|
//Refresh leaderboard ad on mobile
|
|
8675
|
-
if (
|
|
8659
|
+
if (main_36) {
|
|
8676
8660
|
var leaderboardSlotId = '';
|
|
8677
8661
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8678
8662
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8712,38 +8696,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8712
8696
|
setSensorVisible(false);
|
|
8713
8697
|
};
|
|
8714
8698
|
|
|
8715
|
-
return
|
|
8716
|
-
|
|
8699
|
+
return React__default.createElement(
|
|
8700
|
+
React__default.Fragment,
|
|
8717
8701
|
null,
|
|
8718
|
-
|
|
8702
|
+
React__default.createElement(
|
|
8719
8703
|
'div',
|
|
8720
8704
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8721
|
-
|
|
8705
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8722
8706
|
return handleArrowClick();
|
|
8723
8707
|
} })
|
|
8724
8708
|
),
|
|
8725
|
-
|
|
8726
|
-
|
|
8709
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8710
|
+
React__default.createElement(
|
|
8727
8711
|
'div',
|
|
8728
8712
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8729
|
-
|
|
8713
|
+
React__default.createElement(
|
|
8730
8714
|
'h5',
|
|
8731
8715
|
{ className: 'objective-title' },
|
|
8732
8716
|
nodes.seriesTitle
|
|
8733
8717
|
),
|
|
8734
|
-
|
|
8718
|
+
React__default.createElement(
|
|
8735
8719
|
'div',
|
|
8736
8720
|
{ className: 'prevNextWrapper' },
|
|
8737
8721
|
PrevNextCards(false, -1)
|
|
8738
8722
|
)
|
|
8739
8723
|
),
|
|
8740
|
-
|
|
8741
|
-
|
|
8724
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8725
|
+
React__default.createElement(
|
|
8742
8726
|
'div',
|
|
8743
8727
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8744
|
-
|
|
8728
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8745
8729
|
if (index === 0) {
|
|
8746
|
-
return
|
|
8730
|
+
return React__default.createElement(
|
|
8747
8731
|
'div',
|
|
8748
8732
|
{
|
|
8749
8733
|
key: 'addid-1',
|
|
@@ -8763,14 +8747,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8763
8747
|
}
|
|
8764
8748
|
})
|
|
8765
8749
|
),
|
|
8766
|
-
|
|
8750
|
+
React__default.createElement(
|
|
8767
8751
|
'div',
|
|
8768
8752
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8769
8753
|
Articles.map(function (article, index) {
|
|
8770
|
-
return
|
|
8754
|
+
return React__default.createElement(
|
|
8771
8755
|
'div',
|
|
8772
8756
|
{ key: article.title },
|
|
8773
|
-
|
|
8757
|
+
React__default.createElement(
|
|
8774
8758
|
InscreenSensor,
|
|
8775
8759
|
{
|
|
8776
8760
|
visible: sensorVisible,
|
|
@@ -8788,84 +8772,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8788
8772
|
}
|
|
8789
8773
|
}
|
|
8790
8774
|
} },
|
|
8791
|
-
|
|
8775
|
+
React__default.createElement(
|
|
8792
8776
|
Head,
|
|
8793
8777
|
null,
|
|
8794
|
-
currentTitle !== null &&
|
|
8778
|
+
currentTitle !== null && React__default.createElement(
|
|
8795
8779
|
'title',
|
|
8796
8780
|
{ key: 'title' },
|
|
8797
8781
|
currentTitle
|
|
8798
8782
|
),
|
|
8799
|
-
currentSummary !== null &&
|
|
8800
|
-
currentURL !== null &&
|
|
8801
|
-
currentTitle !== null &&
|
|
8802
|
-
currentThumbnail !== null &&
|
|
8803
|
-
currentSummary !== null &&
|
|
8804
|
-
currentTitle !== null &&
|
|
8805
|
-
currentThumbnail !== null &&
|
|
8806
|
-
currentSummary !== null &&
|
|
8783
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8784
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8785
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8786
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8787
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8788
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8789
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8790
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8807
8791
|
),
|
|
8808
|
-
|
|
8792
|
+
React__default.createElement(
|
|
8809
8793
|
'article',
|
|
8810
8794
|
{ className: 'article-wrapper' },
|
|
8811
|
-
|
|
8795
|
+
React__default.createElement(
|
|
8812
8796
|
'div',
|
|
8813
8797
|
{ className: 'article-publishDate' },
|
|
8814
8798
|
moment(article.published).format('LL')
|
|
8815
8799
|
),
|
|
8816
|
-
|
|
8800
|
+
React__default.createElement(
|
|
8817
8801
|
'div',
|
|
8818
8802
|
{ className: 'author-details-wrapper' },
|
|
8819
8803
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8820
|
-
return
|
|
8804
|
+
return React__default.createElement(
|
|
8821
8805
|
'span',
|
|
8822
8806
|
{ key: index },
|
|
8823
8807
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8824
8808
|
);
|
|
8825
8809
|
})
|
|
8826
8810
|
),
|
|
8827
|
-
|
|
8811
|
+
React__default.createElement(
|
|
8828
8812
|
'h2',
|
|
8829
8813
|
{ className: 'article-title' },
|
|
8830
8814
|
article.title
|
|
8831
8815
|
),
|
|
8832
|
-
|
|
8816
|
+
React__default.createElement(
|
|
8833
8817
|
'div',
|
|
8834
8818
|
{ className: 'mt-2 mb-2' },
|
|
8835
|
-
|
|
8819
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8836
8820
|
serializers: getSerializers,
|
|
8837
8821
|
videoAccountIDs: accountIDs,
|
|
8838
8822
|
blocks: article.text,
|
|
8839
8823
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8840
8824
|
}, client.config())),
|
|
8841
|
-
|
|
8825
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8842
8826
|
),
|
|
8843
|
-
Articles.length > 1 &&
|
|
8844
|
-
|
|
8827
|
+
Articles.length > 1 && React__default.createElement(
|
|
8828
|
+
React__default.Fragment,
|
|
8845
8829
|
null,
|
|
8846
|
-
|
|
8830
|
+
React__default.createElement(
|
|
8847
8831
|
'div',
|
|
8848
8832
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8849
|
-
|
|
8833
|
+
React__default.createElement(
|
|
8850
8834
|
'h5',
|
|
8851
8835
|
{ className: 'objective-title' },
|
|
8852
8836
|
nodes.seriesTitle
|
|
8853
8837
|
),
|
|
8854
|
-
|
|
8838
|
+
React__default.createElement(
|
|
8855
8839
|
'div',
|
|
8856
8840
|
{ className: 'prevNextWrapper' },
|
|
8857
8841
|
PrevNextCards(true, index)
|
|
8858
8842
|
)
|
|
8859
8843
|
),
|
|
8860
|
-
|
|
8844
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8861
8845
|
)
|
|
8862
8846
|
),
|
|
8863
|
-
|
|
8847
|
+
React__default.createElement(
|
|
8864
8848
|
'div',
|
|
8865
8849
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8866
|
-
|
|
8850
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8867
8851
|
if (innerIndex === 0) {
|
|
8868
|
-
return
|
|
8852
|
+
return React__default.createElement(
|
|
8869
8853
|
'div',
|
|
8870
8854
|
{
|
|
8871
8855
|
key: 'addid-' + (index + 2),
|
|
@@ -8888,7 +8872,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8888
8872
|
)
|
|
8889
8873
|
);
|
|
8890
8874
|
}),
|
|
8891
|
-
|
|
8875
|
+
React__default.createElement(
|
|
8892
8876
|
'style',
|
|
8893
8877
|
{ jsx: 'true' },
|
|
8894
8878
|
'\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 '
|
|
@@ -8918,11 +8902,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8918
8902
|
};
|
|
8919
8903
|
}, [handleClickOutside]);
|
|
8920
8904
|
|
|
8921
|
-
return
|
|
8905
|
+
return React__default.createElement(
|
|
8922
8906
|
'div',
|
|
8923
8907
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8924
|
-
|
|
8925
|
-
|
|
8908
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8909
|
+
React__default.createElement(
|
|
8926
8910
|
'style',
|
|
8927
8911
|
{ jsx: 'true' },
|
|
8928
8912
|
'\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 '
|
|
@@ -8936,7 +8920,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8936
8920
|
}
|
|
8937
8921
|
};
|
|
8938
8922
|
|
|
8939
|
-
var FigureImage =
|
|
8923
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8940
8924
|
var node = _ref2.node,
|
|
8941
8925
|
client = _ref2.client,
|
|
8942
8926
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8944,13 +8928,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8944
8928
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8945
8929
|
|
|
8946
8930
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8947
|
-
return
|
|
8931
|
+
return React__default.createElement(
|
|
8948
8932
|
'picture',
|
|
8949
8933
|
null,
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8934
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8935
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8936
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8937
|
+
React__default.createElement('img', _extends$1({
|
|
8954
8938
|
style: figureImageStyle,
|
|
8955
8939
|
className: 'figure-image',
|
|
8956
8940
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9038,13 +9022,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9038
9022
|
|
|
9039
9023
|
var FigureCaption = useCallback(function () {
|
|
9040
9024
|
if (imgcaption && imgcaption.length > 0) {
|
|
9041
|
-
return
|
|
9025
|
+
return React__default.createElement(
|
|
9042
9026
|
'div',
|
|
9043
9027
|
{ className: 'figure-caption' },
|
|
9044
|
-
|
|
9028
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9045
9029
|
);
|
|
9046
9030
|
} else if (caption) {
|
|
9047
|
-
return
|
|
9031
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9048
9032
|
} else return null;
|
|
9049
9033
|
}, [caption, imgcaption]);
|
|
9050
9034
|
|
|
@@ -9061,24 +9045,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9061
9045
|
setShowLightbox(true);
|
|
9062
9046
|
}, [node, client]);
|
|
9063
9047
|
|
|
9064
|
-
return
|
|
9065
|
-
|
|
9048
|
+
return React__default.createElement(
|
|
9049
|
+
React__default.Fragment,
|
|
9066
9050
|
null,
|
|
9067
|
-
|
|
9068
|
-
Figure$
|
|
9051
|
+
React__default.createElement(
|
|
9052
|
+
Figure$1$1,
|
|
9069
9053
|
{ className: '' + class_name, style: figureStyle },
|
|
9070
|
-
link ?
|
|
9054
|
+
link ? React__default.createElement(
|
|
9071
9055
|
'a',
|
|
9072
9056
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
) :
|
|
9076
|
-
|
|
9057
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9058
|
+
React__default.createElement(FigureCaption, null)
|
|
9059
|
+
) : React__default.createElement(
|
|
9060
|
+
React__default.Fragment,
|
|
9077
9061
|
null,
|
|
9078
|
-
|
|
9079
|
-
|
|
9062
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9063
|
+
React__default.createElement(FigureCaption, null)
|
|
9080
9064
|
),
|
|
9081
|
-
|
|
9065
|
+
React__default.createElement(LightBox, {
|
|
9082
9066
|
showLightbox: showLightbox,
|
|
9083
9067
|
lightboxImgSrc: lightboxImgSrc,
|
|
9084
9068
|
closeLightbox: function closeLightbox() {
|
|
@@ -9087,7 +9071,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9087
9071
|
}
|
|
9088
9072
|
})
|
|
9089
9073
|
),
|
|
9090
|
-
|
|
9074
|
+
React__default.createElement(
|
|
9091
9075
|
'style',
|
|
9092
9076
|
{ jsx: 'true' },
|
|
9093
9077
|
'\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 '
|
|
@@ -9095,7 +9079,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9095
9079
|
);
|
|
9096
9080
|
};
|
|
9097
9081
|
|
|
9098
|
-
var Figure =
|
|
9082
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9099
9083
|
|
|
9100
9084
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9101
9085
|
useEffect(function () {
|
|
@@ -9112,7 +9096,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9112
9096
|
}, [ref]);
|
|
9113
9097
|
}
|
|
9114
9098
|
|
|
9115
|
-
var FigureImage$1 =
|
|
9099
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9116
9100
|
var imagesCount = _ref.imagesCount,
|
|
9117
9101
|
image = _ref.image,
|
|
9118
9102
|
client = _ref.client,
|
|
@@ -9120,13 +9104,13 @@ var FigureImage$1 = React.memo(function (_ref) {
|
|
|
9120
9104
|
link = _ref.link,
|
|
9121
9105
|
handleClickFigure = _ref.handleClickFigure;
|
|
9122
9106
|
|
|
9123
|
-
return
|
|
9107
|
+
return React__default.createElement(
|
|
9124
9108
|
'picture',
|
|
9125
9109
|
null,
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9110
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9111
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9112
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9113
|
+
React__default.createElement('img', _extends$1({
|
|
9130
9114
|
'images-count': imagesCount,
|
|
9131
9115
|
className: 'multi-figure-image',
|
|
9132
9116
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9163,13 +9147,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9163
9147
|
imgcaption = _ref2.imgcaption;
|
|
9164
9148
|
|
|
9165
9149
|
if (imgcaption && imgcaption.length > 0) {
|
|
9166
|
-
return
|
|
9150
|
+
return React__default.createElement(
|
|
9167
9151
|
'div',
|
|
9168
9152
|
{ className: 'multi-figure-caption' },
|
|
9169
|
-
|
|
9153
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9170
9154
|
);
|
|
9171
9155
|
} else if (caption) {
|
|
9172
|
-
return
|
|
9156
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9173
9157
|
} else return null;
|
|
9174
9158
|
};
|
|
9175
9159
|
|
|
@@ -9179,48 +9163,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9179
9163
|
}, [client]);
|
|
9180
9164
|
|
|
9181
9165
|
if (images && images.length > 0) {
|
|
9182
|
-
return
|
|
9166
|
+
return React__default.createElement(
|
|
9183
9167
|
'div',
|
|
9184
9168
|
{ className: 'multi-figure-container' },
|
|
9185
|
-
|
|
9169
|
+
React__default.createElement(
|
|
9186
9170
|
Row$1,
|
|
9187
9171
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9188
9172
|
images.map(function (image, index) {
|
|
9189
|
-
return
|
|
9173
|
+
return React__default.createElement(
|
|
9190
9174
|
Col$1,
|
|
9191
9175
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9192
|
-
image.link ?
|
|
9176
|
+
image.link ? React__default.createElement(
|
|
9193
9177
|
'a',
|
|
9194
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9195
|
-
|
|
9178
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9179
|
+
React__default.createElement(
|
|
9196
9180
|
'div',
|
|
9197
9181
|
{ className: 'multi-figure-image-container' },
|
|
9198
|
-
|
|
9182
|
+
React__default.createElement(
|
|
9199
9183
|
LazyLoad,
|
|
9200
9184
|
{ once: true },
|
|
9201
|
-
|
|
9185
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9202
9186
|
),
|
|
9203
|
-
|
|
9187
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9204
9188
|
)
|
|
9205
|
-
) :
|
|
9189
|
+
) : React__default.createElement(
|
|
9206
9190
|
'div',
|
|
9207
9191
|
{ className: 'multi-figure-image-container' },
|
|
9208
|
-
|
|
9192
|
+
React__default.createElement(
|
|
9209
9193
|
LazyLoad,
|
|
9210
9194
|
{ once: true },
|
|
9211
|
-
|
|
9195
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9212
9196
|
),
|
|
9213
|
-
|
|
9197
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9214
9198
|
)
|
|
9215
9199
|
);
|
|
9216
9200
|
})
|
|
9217
9201
|
),
|
|
9218
|
-
|
|
9202
|
+
React__default.createElement(
|
|
9219
9203
|
'div',
|
|
9220
9204
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9221
|
-
|
|
9205
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9222
9206
|
),
|
|
9223
|
-
|
|
9207
|
+
React__default.createElement(
|
|
9224
9208
|
'style',
|
|
9225
9209
|
{ jsx: 'true' },
|
|
9226
9210
|
'\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 '
|
|
@@ -9242,10 +9226,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9242
9226
|
|
|
9243
9227
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9244
9228
|
|
|
9245
|
-
return
|
|
9229
|
+
return React__default.createElement(
|
|
9246
9230
|
'div',
|
|
9247
9231
|
{ id: elementId },
|
|
9248
|
-
|
|
9232
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9249
9233
|
);
|
|
9250
9234
|
};
|
|
9251
9235
|
|
|
@@ -9274,7 +9258,7 @@ exports.__esModule = true;
|
|
|
9274
9258
|
|
|
9275
9259
|
|
|
9276
9260
|
|
|
9277
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9261
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9278
9262
|
|
|
9279
9263
|
|
|
9280
9264
|
|
|
@@ -9294,7 +9278,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9294
9278
|
|
|
9295
9279
|
|
|
9296
9280
|
|
|
9297
|
-
var _react2 = _interopRequireDefault(
|
|
9281
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9298
9282
|
|
|
9299
9283
|
|
|
9300
9284
|
|
|
@@ -9453,7 +9437,7 @@ var ScriptTag = function (_Component) {
|
|
|
9453
9437
|
};
|
|
9454
9438
|
|
|
9455
9439
|
return ScriptTag;
|
|
9456
|
-
}(
|
|
9440
|
+
}(React__default.Component);
|
|
9457
9441
|
|
|
9458
9442
|
ScriptTag.propTypes = {
|
|
9459
9443
|
/**
|
|
@@ -9532,11 +9516,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9532
9516
|
}, []);
|
|
9533
9517
|
|
|
9534
9518
|
if (iframeSrc) {
|
|
9535
|
-
return
|
|
9519
|
+
return React__default.createElement(
|
|
9536
9520
|
'section',
|
|
9537
9521
|
{ className: 'form-assembly' },
|
|
9538
|
-
|
|
9539
|
-
|
|
9522
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9523
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9540
9524
|
);
|
|
9541
9525
|
}
|
|
9542
9526
|
|
|
@@ -9573,27 +9557,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9573
9557
|
return window.removeEventListener('resize', handleResize);
|
|
9574
9558
|
};
|
|
9575
9559
|
}, []);
|
|
9576
|
-
return
|
|
9560
|
+
return React__default.createElement(
|
|
9577
9561
|
'div',
|
|
9578
9562
|
{ className: 'blockTableHolder', ref: holder },
|
|
9579
|
-
|
|
9563
|
+
React__default.createElement(
|
|
9580
9564
|
'div',
|
|
9581
9565
|
{ className: 'blockTable' },
|
|
9582
9566
|
rows && rows.map(function (row) {
|
|
9583
|
-
return
|
|
9567
|
+
return React__default.createElement(
|
|
9584
9568
|
'div',
|
|
9585
9569
|
{ className: 'blockTableRow' },
|
|
9586
9570
|
row.cells && row.cells.map(function (cell) {
|
|
9587
|
-
return
|
|
9571
|
+
return React__default.createElement(
|
|
9588
9572
|
'div',
|
|
9589
9573
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9590
|
-
|
|
9574
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9591
9575
|
);
|
|
9592
9576
|
})
|
|
9593
9577
|
);
|
|
9594
9578
|
})
|
|
9595
9579
|
),
|
|
9596
|
-
|
|
9580
|
+
React__default.createElement(
|
|
9597
9581
|
'style',
|
|
9598
9582
|
{ jsx: true },
|
|
9599
9583
|
'\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 '
|
|
@@ -9672,12 +9656,12 @@ var getSerializers = function getSerializers() {
|
|
|
9672
9656
|
var node = _ref.node;
|
|
9673
9657
|
var url = node.url;
|
|
9674
9658
|
|
|
9675
|
-
return
|
|
9659
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9676
9660
|
},
|
|
9677
9661
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9678
9662
|
var node = _ref2.node;
|
|
9679
9663
|
|
|
9680
|
-
return
|
|
9664
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9681
9665
|
nodes: node,
|
|
9682
9666
|
article: article,
|
|
9683
9667
|
meta: meta,
|
|
@@ -9691,7 +9675,7 @@ var getSerializers = function getSerializers() {
|
|
|
9691
9675
|
articleSeries: function articleSeries(_ref3) {
|
|
9692
9676
|
var node = _ref3.node;
|
|
9693
9677
|
|
|
9694
|
-
return
|
|
9678
|
+
return React__default.createElement(ArticleSeries, {
|
|
9695
9679
|
nodes: node,
|
|
9696
9680
|
accountIDs: videoAccountIDs || {},
|
|
9697
9681
|
pageview: pageview,
|
|
@@ -9704,61 +9688,61 @@ var getSerializers = function getSerializers() {
|
|
|
9704
9688
|
figure: function figure(_ref4) {
|
|
9705
9689
|
var node = _ref4.node;
|
|
9706
9690
|
|
|
9707
|
-
return
|
|
9691
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9708
9692
|
},
|
|
9709
9693
|
multifigure: function multifigure(_ref5) {
|
|
9710
9694
|
var node = _ref5.node;
|
|
9711
9695
|
|
|
9712
|
-
return
|
|
9696
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9713
9697
|
},
|
|
9714
9698
|
slideshow: function slideshow(_ref6) {
|
|
9715
9699
|
var node = _ref6.node;
|
|
9716
9700
|
var slides = node.slides;
|
|
9717
9701
|
|
|
9718
|
-
return
|
|
9702
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9719
9703
|
},
|
|
9720
9704
|
sidebar: function sidebar(_ref7) {
|
|
9721
9705
|
var node = _ref7.node;
|
|
9722
9706
|
var caption = node.caption,
|
|
9723
9707
|
content = node.content;
|
|
9724
9708
|
|
|
9725
|
-
return
|
|
9709
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9726
9710
|
},
|
|
9727
9711
|
datatable: function datatable(_ref8) {
|
|
9728
9712
|
var node = _ref8.node;
|
|
9729
9713
|
var table = node.table;
|
|
9730
9714
|
|
|
9731
|
-
return
|
|
9715
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9732
9716
|
},
|
|
9733
9717
|
media: function media(_ref9) {
|
|
9734
9718
|
var node = _ref9.node;
|
|
9735
9719
|
|
|
9736
|
-
return
|
|
9720
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9737
9721
|
},
|
|
9738
9722
|
iframe: function iframe(_ref10) {
|
|
9739
9723
|
var node = _ref10.node;
|
|
9740
9724
|
|
|
9741
|
-
return
|
|
9725
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9742
9726
|
},
|
|
9743
9727
|
video: function video(_ref11) {
|
|
9744
9728
|
var node = _ref11.node;
|
|
9745
9729
|
|
|
9746
|
-
return
|
|
9730
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9747
9731
|
},
|
|
9748
9732
|
audio: function audio(_ref12) {
|
|
9749
9733
|
var node = _ref12.node;
|
|
9750
9734
|
|
|
9751
|
-
return
|
|
9735
|
+
return React__default.createElement(Audio, { node: node });
|
|
9752
9736
|
},
|
|
9753
9737
|
poll: function poll(_ref13) {
|
|
9754
9738
|
var node = _ref13.node;
|
|
9755
9739
|
|
|
9756
|
-
return
|
|
9740
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9757
9741
|
},
|
|
9758
9742
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9759
9743
|
var node = _ref14.node;
|
|
9760
9744
|
|
|
9761
|
-
return
|
|
9745
|
+
return React__default.createElement(Poll$1, {
|
|
9762
9746
|
node: node,
|
|
9763
9747
|
client: client,
|
|
9764
9748
|
pageview: pageview,
|
|
@@ -9772,35 +9756,35 @@ var getSerializers = function getSerializers() {
|
|
|
9772
9756
|
var node = _ref15.node;
|
|
9773
9757
|
var quizzes = node.quizzes;
|
|
9774
9758
|
|
|
9775
|
-
return
|
|
9759
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9776
9760
|
},
|
|
9777
9761
|
leads: function leads(_ref16) {
|
|
9778
9762
|
var node = _ref16.node;
|
|
9779
9763
|
var leadID = node.leadID;
|
|
9780
9764
|
|
|
9781
9765
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9782
|
-
return
|
|
9766
|
+
return React__default.createElement(Leads, { url: url });
|
|
9783
9767
|
},
|
|
9784
9768
|
slideshows: function slideshows(_ref17) {
|
|
9785
9769
|
var node = _ref17.node;
|
|
9786
9770
|
|
|
9787
|
-
return
|
|
9771
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9788
9772
|
},
|
|
9789
9773
|
nativeAd: function nativeAd(_ref18) {
|
|
9790
9774
|
var node = _ref18.node;
|
|
9791
9775
|
|
|
9792
|
-
return
|
|
9776
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9793
9777
|
},
|
|
9794
9778
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9795
9779
|
var node = _ref19.node;
|
|
9796
9780
|
|
|
9797
|
-
return
|
|
9781
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9798
9782
|
},
|
|
9799
9783
|
hrtag: function hrtag() {
|
|
9800
|
-
return
|
|
9784
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9801
9785
|
},
|
|
9802
9786
|
brtag: function brtag() {
|
|
9803
|
-
return
|
|
9787
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9804
9788
|
},
|
|
9805
9789
|
formstack: function formstack(_ref20) {
|
|
9806
9790
|
var node = _ref20.node;
|
|
@@ -9808,29 +9792,29 @@ var getSerializers = function getSerializers() {
|
|
|
9808
9792
|
Caption = node.Caption,
|
|
9809
9793
|
needSegmentSupport = node.needSegmentSupport;
|
|
9810
9794
|
|
|
9811
|
-
return
|
|
9795
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9812
9796
|
},
|
|
9813
9797
|
formassembly: FormAssembly,
|
|
9814
9798
|
multimedia: function multimedia(_ref21) {
|
|
9815
9799
|
var node = _ref21.node;
|
|
9816
9800
|
|
|
9817
|
-
return
|
|
9801
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9818
9802
|
},
|
|
9819
9803
|
blockTable: function blockTable(_ref22) {
|
|
9820
9804
|
var node = _ref22.node;
|
|
9821
|
-
return
|
|
9805
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9822
9806
|
}
|
|
9823
9807
|
},
|
|
9824
9808
|
marks: {
|
|
9825
9809
|
superscript: function superscript(props) {
|
|
9826
|
-
return
|
|
9810
|
+
return React__default.createElement(
|
|
9827
9811
|
'sup',
|
|
9828
9812
|
null,
|
|
9829
9813
|
props.children
|
|
9830
9814
|
);
|
|
9831
9815
|
},
|
|
9832
9816
|
subscript: function subscript(props) {
|
|
9833
|
-
return
|
|
9817
|
+
return React__default.createElement(
|
|
9834
9818
|
'sub',
|
|
9835
9819
|
null,
|
|
9836
9820
|
props.children
|
|
@@ -9846,7 +9830,7 @@ var getSerializers = function getSerializers() {
|
|
|
9846
9830
|
if (href && href.charAt(0) === '#') {
|
|
9847
9831
|
var elementId = href.slice(1);
|
|
9848
9832
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9849
|
-
return
|
|
9833
|
+
return React__default.createElement(
|
|
9850
9834
|
'a',
|
|
9851
9835
|
{ onClick: function onClick() {
|
|
9852
9836
|
return ScrollToElement(elementId);
|
|
@@ -9856,7 +9840,7 @@ var getSerializers = function getSerializers() {
|
|
|
9856
9840
|
}
|
|
9857
9841
|
|
|
9858
9842
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9859
|
-
return
|
|
9843
|
+
return React__default.createElement(
|
|
9860
9844
|
'a',
|
|
9861
9845
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9862
9846
|
children
|
|
@@ -9864,7 +9848,7 @@ var getSerializers = function getSerializers() {
|
|
|
9864
9848
|
},
|
|
9865
9849
|
alignleft: function alignleft(_ref23) {
|
|
9866
9850
|
var children = _ref23.children;
|
|
9867
|
-
return
|
|
9851
|
+
return React__default.createElement(
|
|
9868
9852
|
'div',
|
|
9869
9853
|
{ style: { textAlign: 'left' } },
|
|
9870
9854
|
children
|
|
@@ -9872,7 +9856,7 @@ var getSerializers = function getSerializers() {
|
|
|
9872
9856
|
},
|
|
9873
9857
|
alignright: function alignright(_ref24) {
|
|
9874
9858
|
var children = _ref24.children;
|
|
9875
|
-
return
|
|
9859
|
+
return React__default.createElement(
|
|
9876
9860
|
'div',
|
|
9877
9861
|
{ style: { textAlign: 'right' } },
|
|
9878
9862
|
children
|
|
@@ -9880,7 +9864,7 @@ var getSerializers = function getSerializers() {
|
|
|
9880
9864
|
},
|
|
9881
9865
|
aligncenter: function aligncenter(_ref25) {
|
|
9882
9866
|
var children = _ref25.children;
|
|
9883
|
-
return
|
|
9867
|
+
return React__default.createElement(
|
|
9884
9868
|
'div',
|
|
9885
9869
|
{ style: { textAlign: 'center' } },
|
|
9886
9870
|
children
|
|
@@ -9888,7 +9872,7 @@ var getSerializers = function getSerializers() {
|
|
|
9888
9872
|
},
|
|
9889
9873
|
alignjustify: function alignjustify(_ref26) {
|
|
9890
9874
|
var children = _ref26.children;
|
|
9891
|
-
return
|
|
9875
|
+
return React__default.createElement(
|
|
9892
9876
|
'div',
|
|
9893
9877
|
{ style: { textAlign: 'justify' } },
|
|
9894
9878
|
children
|
|
@@ -9898,7 +9882,7 @@ var getSerializers = function getSerializers() {
|
|
|
9898
9882
|
var children = props.children,
|
|
9899
9883
|
color = props.mark.color;
|
|
9900
9884
|
|
|
9901
|
-
return
|
|
9885
|
+
return React__default.createElement(
|
|
9902
9886
|
'span',
|
|
9903
9887
|
{ style: { color: color ? color.hex : null } },
|
|
9904
9888
|
children
|