@mjhls/mjh-framework 1.0.833-d4d-52-1 → 1.0.834-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-912f52c2.js → ADInfeed-8d621d3c.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-98acbab8.js → ADlgInfeed-0e26bccb.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 +626 -655
- 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 +155 -159
- 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 +57 -58
- 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 +848 -839
- 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 +69 -70
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- 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 +285 -285
- 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-10bc3826.js → SeriesSlider-d16a5ae5.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-97dd19a5.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 +24 -25
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +25 -26
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +279 -203
- 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-b10010e9.js → index-a0bdcb69.js} +829 -852
- 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 +58 -62
- package/dist/cjs/{inherits-0c7830c5.js → inherits-9953db94.js} +4 -4
- 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 +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-813279c7.js → ADInfeed-b566ce41.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-8ba1523a.js → ADlgInfeed-5eb7281d.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +256 -284
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +120 -169
- package/dist/esm/AuthWrapper.js +257 -298
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- 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 +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +142 -142
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +100 -100
- 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 +34 -34
- 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 -55
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +54 -54
- package/dist/esm/MediaSeriesLanding.js +571 -559
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- 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 +66 -66
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +95 -95
- package/dist/esm/QueueDeckExpanded.js +251 -251
- 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/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-31dcb72b.js → SeriesSlider-8dc17b11.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-db5ba548.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +260 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getSerializers.js +11 -11
- 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-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-b3bd543b.js → index-d9cf292f.js} +788 -804
- 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 +50 -51
- 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 +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,56 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
var _toObject = require('./_to-object-329a650b.js');
|
|
5
7
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
6
|
-
var _extends = require('./extends-0a918631.js');
|
|
7
|
-
var inherits = require('./inherits-
|
|
8
|
-
var _typeof$1 = require('./typeof-
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-9953db94.js');
|
|
10
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
9
11
|
var React = require('react');
|
|
10
|
-
var
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
11
14
|
var PropTypes = require('prop-types');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
15
19
|
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
16
21
|
var urlFor = require('./urlFor.js');
|
|
17
|
-
var index$2 = require('./index-
|
|
18
|
-
var main = require('./main-
|
|
22
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
19
24
|
var entities = require('./entities-310b46ee.js');
|
|
20
25
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
21
26
|
var Segment = require('./Segment.js');
|
|
22
27
|
var Beam = require('./Beam.js');
|
|
23
28
|
var AdSlot = require('./AdSlot.js');
|
|
24
|
-
var BlockContent = require('./BlockContent-
|
|
25
|
-
var index$
|
|
29
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
30
|
+
var index$3 = require('./index-187c967e.js');
|
|
26
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
27
32
|
var reactBootstrap = require('react-bootstrap');
|
|
28
|
-
var index_esm = require('./index.esm-
|
|
33
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
29
34
|
var util = require('./util-f2c1b65b.js');
|
|
30
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
31
|
-
var Head = require('next/head');
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
36
|
+
var Head = _interopDefault(require('next/head'));
|
|
32
37
|
var SocialShare = require('./SocialShare.js');
|
|
33
38
|
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
34
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
35
|
-
var Button = require('react-bootstrap/Button');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
|
|
38
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
39
|
-
|
|
40
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
42
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
43
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
44
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
45
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
46
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
47
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
48
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
39
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
40
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
49
42
|
|
|
50
43
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
51
44
|
var pageNumber = selectedIndex + 1;
|
|
52
45
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
53
|
-
Router__default
|
|
46
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
54
47
|
};
|
|
55
48
|
|
|
56
49
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -80,20 +73,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
80
73
|
if (pageview) pageview(router.asPath);
|
|
81
74
|
}, [router]);
|
|
82
75
|
|
|
83
|
-
return React__default
|
|
76
|
+
return React__default.createElement(
|
|
84
77
|
'div',
|
|
85
78
|
{ className: 'mt-3 mb-3' },
|
|
86
|
-
React__default
|
|
79
|
+
React__default.createElement(
|
|
87
80
|
reactBootstrap.Carousel,
|
|
88
81
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
89
82
|
return onChangeSlide(selectedIndex, router);
|
|
90
83
|
}, interval: null },
|
|
91
84
|
slides && slides.map(function (slide) {
|
|
92
|
-
return React__default
|
|
85
|
+
return React__default.createElement(
|
|
93
86
|
reactBootstrap.Carousel.Item,
|
|
94
87
|
{ key: slide._key },
|
|
95
|
-
React__default
|
|
96
|
-
slide.caption && React__default
|
|
88
|
+
React__default.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
89
|
+
slide.caption && React__default.createElement(
|
|
97
90
|
'p',
|
|
98
91
|
{ className: 'p-2' },
|
|
99
92
|
slide.caption
|
|
@@ -104,18 +97,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
104
97
|
);
|
|
105
98
|
};
|
|
106
99
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
100
|
+
var isArray = Array.isArray;
|
|
101
|
+
var keyList = Object.keys;
|
|
102
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
110
103
|
|
|
111
104
|
var fastDeepEqual = function equal(a, b) {
|
|
112
105
|
if (a === b) return true;
|
|
113
106
|
|
|
114
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
115
|
-
|
|
108
|
+
var arrA = isArray(a)
|
|
109
|
+
, arrB = isArray(b)
|
|
110
|
+
, i
|
|
111
|
+
, length
|
|
112
|
+
, key;
|
|
116
113
|
|
|
117
|
-
|
|
118
|
-
if (Array.isArray(a)) {
|
|
114
|
+
if (arrA && arrB) {
|
|
119
115
|
length = a.length;
|
|
120
116
|
if (length != b.length) return false;
|
|
121
117
|
for (i = length; i-- !== 0;)
|
|
@@ -123,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
123
119
|
return true;
|
|
124
120
|
}
|
|
125
121
|
|
|
122
|
+
if (arrA != arrB) return false;
|
|
126
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();
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
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();
|
|
131
133
|
|
|
132
|
-
keys =
|
|
134
|
+
var keys = keyList(a);
|
|
133
135
|
length = keys.length;
|
|
134
|
-
|
|
136
|
+
|
|
137
|
+
if (length !== keyList(b).length)
|
|
138
|
+
return false;
|
|
135
139
|
|
|
136
140
|
for (i = length; i-- !== 0;)
|
|
137
|
-
if (!
|
|
141
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
138
142
|
|
|
139
143
|
for (i = length; i-- !== 0;) {
|
|
140
|
-
|
|
141
|
-
|
|
144
|
+
key = keys[i];
|
|
142
145
|
if (!equal(a[key], b[key])) return false;
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
return true;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
// true if both NaN, false otherwise
|
|
149
151
|
return a!==a && b!==b;
|
|
150
152
|
};
|
|
151
153
|
|
|
@@ -1568,239 +1570,199 @@ module.exports = exports['default'];
|
|
|
1568
1570
|
|
|
1569
1571
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1570
1572
|
|
|
1571
|
-
function
|
|
1572
|
-
|
|
1573
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1574
|
-
|
|
1575
|
-
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); } }
|
|
1576
|
-
|
|
1577
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1578
|
-
|
|
1579
|
-
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); }
|
|
1580
|
-
|
|
1581
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1582
|
-
|
|
1583
|
-
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); }; }
|
|
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; }; }();
|
|
1584
1574
|
|
|
1585
|
-
function
|
|
1586
|
-
|
|
1587
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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; };
|
|
1588
1576
|
|
|
1589
|
-
function
|
|
1577
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1590
1578
|
|
|
1591
|
-
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; }
|
|
1592
1580
|
|
|
1593
|
-
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; }
|
|
1594
1582
|
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* @param {Object} prevProps
|
|
1602
|
-
* @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
|
|
1603
1588
|
*/
|
|
1604
|
-
|
|
1605
1589
|
function shouldUpdateVideo(prevProps, props) {
|
|
1606
1590
|
// A changing video should always trigger an update
|
|
1607
1591
|
if (prevProps.videoId !== props.videoId) {
|
|
1608
1592
|
return true;
|
|
1609
|
-
}
|
|
1610
|
-
// update.
|
|
1611
|
-
|
|
1593
|
+
}
|
|
1612
1594
|
|
|
1595
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
|
+
// update.
|
|
1613
1597
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1614
1598
|
var vars = props.opts.playerVars || {};
|
|
1599
|
+
|
|
1615
1600
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1616
1601
|
}
|
|
1617
|
-
/**
|
|
1618
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1619
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1620
|
-
* player reset is necessary.
|
|
1621
|
-
*
|
|
1622
|
-
* @param {Object} opts
|
|
1623
|
-
*/
|
|
1624
|
-
|
|
1625
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
|
+
*/
|
|
1626
1610
|
function filterResetOptions(opts) {
|
|
1627
|
-
return
|
|
1628
|
-
playerVars:
|
|
1611
|
+
return _extends({}, opts, {
|
|
1612
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1629
1613
|
autoplay: 0,
|
|
1630
1614
|
start: 0,
|
|
1631
1615
|
end: 0
|
|
1632
1616
|
})
|
|
1633
1617
|
});
|
|
1634
1618
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1637
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1638
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1639
|
-
* those.
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object} prevProps
|
|
1642
|
-
* @param {Object} props
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
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
|
+
*/
|
|
1646
1629
|
function shouldResetPlayer(prevProps, props) {
|
|
1647
1630
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1648
1631
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* Check whether a props change should result in an id or className update.
|
|
1651
|
-
*
|
|
1652
|
-
* @param {Object} prevProps
|
|
1653
|
-
* @param {Object} props
|
|
1654
|
-
*/
|
|
1655
|
-
|
|
1656
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
|
+
*/
|
|
1657
1639
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1658
1640
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1659
1641
|
}
|
|
1660
1642
|
|
|
1661
|
-
var YouTube =
|
|
1643
|
+
var YouTube = function (_React$Component) {
|
|
1662
1644
|
_inherits(YouTube, _React$Component);
|
|
1663
1645
|
|
|
1664
|
-
var _super = _createSuper(YouTube);
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1668
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1669
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1670
|
-
*/
|
|
1671
1646
|
function YouTube(props) {
|
|
1672
|
-
var _this;
|
|
1673
|
-
|
|
1674
1647
|
_classCallCheck(this, YouTube);
|
|
1675
1648
|
|
|
1676
|
-
_this =
|
|
1649
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1677
1650
|
|
|
1678
|
-
|
|
1651
|
+
_this.onPlayerReady = function (event) {
|
|
1679
1652
|
return _this.props.onReady(event);
|
|
1680
|
-
}
|
|
1653
|
+
};
|
|
1681
1654
|
|
|
1682
|
-
|
|
1655
|
+
_this.onPlayerError = function (event) {
|
|
1683
1656
|
return _this.props.onError(event);
|
|
1684
|
-
}
|
|
1657
|
+
};
|
|
1685
1658
|
|
|
1686
|
-
|
|
1659
|
+
_this.onPlayerStateChange = function (event) {
|
|
1687
1660
|
_this.props.onStateChange(event);
|
|
1688
|
-
|
|
1689
1661
|
switch (event.data) {
|
|
1662
|
+
|
|
1690
1663
|
case YouTube.PlayerState.ENDED:
|
|
1691
1664
|
_this.props.onEnd(event);
|
|
1692
|
-
|
|
1693
1665
|
break;
|
|
1694
1666
|
|
|
1695
1667
|
case YouTube.PlayerState.PLAYING:
|
|
1696
1668
|
_this.props.onPlay(event);
|
|
1697
|
-
|
|
1698
1669
|
break;
|
|
1699
1670
|
|
|
1700
1671
|
case YouTube.PlayerState.PAUSED:
|
|
1701
1672
|
_this.props.onPause(event);
|
|
1702
|
-
|
|
1703
1673
|
break;
|
|
1704
1674
|
}
|
|
1705
|
-
}
|
|
1675
|
+
};
|
|
1706
1676
|
|
|
1707
|
-
|
|
1677
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1708
1678
|
return _this.props.onPlaybackRateChange(event);
|
|
1709
|
-
}
|
|
1679
|
+
};
|
|
1710
1680
|
|
|
1711
|
-
|
|
1681
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1712
1682
|
return _this.props.onPlaybackQualityChange(event);
|
|
1713
|
-
}
|
|
1683
|
+
};
|
|
1714
1684
|
|
|
1715
|
-
|
|
1685
|
+
_this.createPlayer = function () {
|
|
1716
1686
|
// do not attempt to create a player server-side, it won't work
|
|
1717
|
-
if (typeof document === 'undefined') return;
|
|
1718
|
-
|
|
1719
|
-
var playerOpts =
|
|
1687
|
+
if (typeof document === 'undefined') return;
|
|
1688
|
+
// create player
|
|
1689
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1720
1690
|
// preload the `videoId` video if one is already given
|
|
1721
1691
|
videoId: _this.props.videoId
|
|
1722
1692
|
});
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1693
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1694
|
+
// attach event handlers
|
|
1726
1695
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1727
|
-
|
|
1728
1696
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1729
|
-
|
|
1730
1697
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1731
|
-
|
|
1732
1698
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1733
|
-
|
|
1734
1699
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1735
|
-
}
|
|
1700
|
+
};
|
|
1736
1701
|
|
|
1737
|
-
|
|
1702
|
+
_this.resetPlayer = function () {
|
|
1738
1703
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1739
|
-
}
|
|
1704
|
+
};
|
|
1740
1705
|
|
|
1741
|
-
|
|
1706
|
+
_this.updatePlayer = function () {
|
|
1742
1707
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1743
1708
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1744
1709
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1745
1710
|
});
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1749
|
-
return _this.internalPlayer;
|
|
1750
|
-
});
|
|
1711
|
+
};
|
|
1751
1712
|
|
|
1752
|
-
|
|
1713
|
+
_this.updateVideo = function () {
|
|
1753
1714
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1754
1715
|
_this.internalPlayer.stopVideo();
|
|
1755
|
-
|
|
1756
1716
|
return;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1717
|
+
}
|
|
1759
1718
|
|
|
1719
|
+
// set queueing options
|
|
1760
1720
|
var autoplay = false;
|
|
1761
1721
|
var opts = {
|
|
1762
1722
|
videoId: _this.props.videoId
|
|
1763
1723
|
};
|
|
1764
|
-
|
|
1765
1724
|
if ('playerVars' in _this.props.opts) {
|
|
1766
1725
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1767
|
-
|
|
1768
1726
|
if ('start' in _this.props.opts.playerVars) {
|
|
1769
1727
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1770
1728
|
}
|
|
1771
|
-
|
|
1772
1729
|
if ('end' in _this.props.opts.playerVars) {
|
|
1773
1730
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1774
1731
|
}
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1732
|
+
}
|
|
1777
1733
|
|
|
1734
|
+
// if autoplay is enabled loadVideoById
|
|
1778
1735
|
if (autoplay) {
|
|
1779
1736
|
_this.internalPlayer.loadVideoById(opts);
|
|
1780
|
-
|
|
1781
1737
|
return;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
|
|
1738
|
+
}
|
|
1739
|
+
// default behaviour just cues the video
|
|
1785
1740
|
_this.internalPlayer.cueVideoById(opts);
|
|
1786
|
-
}
|
|
1741
|
+
};
|
|
1787
1742
|
|
|
1788
|
-
|
|
1743
|
+
_this.refContainer = function (container) {
|
|
1789
1744
|
_this.container = container;
|
|
1790
|
-
}
|
|
1745
|
+
};
|
|
1791
1746
|
|
|
1792
1747
|
_this.container = null;
|
|
1793
1748
|
_this.internalPlayer = null;
|
|
1794
1749
|
return _this;
|
|
1795
1750
|
}
|
|
1796
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
|
+
|
|
1797
1759
|
_createClass(YouTube, [{
|
|
1798
|
-
key:
|
|
1760
|
+
key: 'componentDidMount',
|
|
1799
1761
|
value: function componentDidMount() {
|
|
1800
1762
|
this.createPlayer();
|
|
1801
1763
|
}
|
|
1802
1764
|
}, {
|
|
1803
|
-
key:
|
|
1765
|
+
key: 'componentDidUpdate',
|
|
1804
1766
|
value: function componentDidUpdate(prevProps) {
|
|
1805
1767
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1806
1768
|
this.updatePlayer();
|
|
@@ -1815,70 +1777,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1815
1777
|
}
|
|
1816
1778
|
}
|
|
1817
1779
|
}, {
|
|
1818
|
-
key:
|
|
1780
|
+
key: 'componentWillUnmount',
|
|
1819
1781
|
value: function componentWillUnmount() {
|
|
1820
|
-
/**
|
|
1821
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1822
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1823
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1824
|
-
* 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.
|
|
1825
1787
|
*/
|
|
1826
1788
|
this.internalPlayer.destroy();
|
|
1827
1789
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
*
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
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.
|
|
1833
1856
|
*/
|
|
1834
1857
|
|
|
1835
1858
|
}, {
|
|
1836
|
-
key:
|
|
1859
|
+
key: 'render',
|
|
1837
1860
|
value: function render() {
|
|
1838
|
-
return
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
id: this.props.id,
|
|
1842
|
-
|
|
1843
|
-
ref: this.refContainer
|
|
1844
|
-
}));
|
|
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
|
+
);
|
|
1845
1866
|
}
|
|
1846
1867
|
}]);
|
|
1847
1868
|
|
|
1848
1869
|
return YouTube;
|
|
1849
|
-
}(React__default
|
|
1850
|
-
|
|
1851
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1852
|
-
UNSTARTED: -1,
|
|
1853
|
-
ENDED: 0,
|
|
1854
|
-
PLAYING: 1,
|
|
1855
|
-
PAUSED: 2,
|
|
1856
|
-
BUFFERING: 3,
|
|
1857
|
-
CUED: 5
|
|
1858
|
-
});
|
|
1870
|
+
}(React__default.Component);
|
|
1859
1871
|
|
|
1860
1872
|
YouTube.propTypes = {
|
|
1861
|
-
videoId: PropTypes__default
|
|
1873
|
+
videoId: PropTypes__default.string,
|
|
1874
|
+
|
|
1862
1875
|
// custom ID for player element
|
|
1863
|
-
id: PropTypes__default
|
|
1876
|
+
id: PropTypes__default.string,
|
|
1877
|
+
|
|
1864
1878
|
// custom class name for player element
|
|
1865
|
-
className: PropTypes__default
|
|
1879
|
+
className: PropTypes__default.string,
|
|
1866
1880
|
// custom class name for player container element
|
|
1867
|
-
containerClassName: PropTypes__default
|
|
1881
|
+
containerClassName: PropTypes__default.string,
|
|
1882
|
+
|
|
1868
1883
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1869
|
-
opts: PropTypes__default
|
|
1884
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1885
|
+
|
|
1870
1886
|
// event subscriptions
|
|
1871
|
-
onReady: PropTypes__default
|
|
1872
|
-
onError: PropTypes__default
|
|
1873
|
-
onPlay: PropTypes__default
|
|
1874
|
-
onPause: PropTypes__default
|
|
1875
|
-
onEnd: PropTypes__default
|
|
1876
|
-
onStateChange: PropTypes__default
|
|
1877
|
-
onPlaybackRateChange: PropTypes__default
|
|
1878
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1887
|
+
onReady: PropTypes__default.func,
|
|
1888
|
+
onError: PropTypes__default.func,
|
|
1889
|
+
onPlay: PropTypes__default.func,
|
|
1890
|
+
onPause: PropTypes__default.func,
|
|
1891
|
+
onEnd: PropTypes__default.func,
|
|
1892
|
+
onStateChange: PropTypes__default.func,
|
|
1893
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1894
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1879
1895
|
};
|
|
1880
1896
|
YouTube.defaultProps = {
|
|
1881
|
-
videoId: null,
|
|
1882
1897
|
id: null,
|
|
1883
1898
|
className: null,
|
|
1884
1899
|
opts: {},
|
|
@@ -1892,12 +1907,20 @@ YouTube.defaultProps = {
|
|
|
1892
1907
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1893
1908
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1894
1909
|
};
|
|
1910
|
+
YouTube.PlayerState = {
|
|
1911
|
+
UNSTARTED: -1,
|
|
1912
|
+
ENDED: 0,
|
|
1913
|
+
PLAYING: 1,
|
|
1914
|
+
PAUSED: 2,
|
|
1915
|
+
BUFFERING: 3,
|
|
1916
|
+
CUED: 5
|
|
1917
|
+
};
|
|
1895
1918
|
|
|
1896
1919
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1897
1920
|
var url = _ref.url,
|
|
1898
1921
|
autoplay = _ref.autoplay;
|
|
1899
1922
|
|
|
1900
|
-
var id = index$
|
|
1923
|
+
var id = index$3.getYoutubeId(url);
|
|
1901
1924
|
|
|
1902
1925
|
var _useState = React.useState(false),
|
|
1903
1926
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1993,11 +2016,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1993
2016
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1994
2017
|
};
|
|
1995
2018
|
|
|
1996
|
-
return React__default
|
|
2019
|
+
return React__default.createElement(
|
|
1997
2020
|
'div',
|
|
1998
2021
|
{ id: 'fluid-video-container' },
|
|
1999
|
-
React__default
|
|
2000
|
-
React__default
|
|
2022
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2023
|
+
React__default.createElement(
|
|
2001
2024
|
'style',
|
|
2002
2025
|
{ jsx: 'true' },
|
|
2003
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 '
|
|
@@ -2010,20 +2033,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2010
2033
|
content = _ref.content,
|
|
2011
2034
|
getSerializers = _ref.getSerializers;
|
|
2012
2035
|
|
|
2013
|
-
return React__default
|
|
2036
|
+
return React__default.createElement(
|
|
2014
2037
|
'article',
|
|
2015
2038
|
{ className: 'sidebar' },
|
|
2016
|
-
React__default
|
|
2039
|
+
React__default.createElement(
|
|
2017
2040
|
'div',
|
|
2018
2041
|
null,
|
|
2019
|
-
React__default
|
|
2042
|
+
React__default.createElement(
|
|
2020
2043
|
'h3',
|
|
2021
2044
|
null,
|
|
2022
2045
|
caption
|
|
2023
2046
|
),
|
|
2024
|
-
React__default
|
|
2047
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2025
2048
|
),
|
|
2026
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2027
2050
|
'style',
|
|
2028
2051
|
{ jsx: 'true' },
|
|
2029
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 '
|
|
@@ -2034,18 +2057,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2034
2057
|
var TableShow = function TableShow(_ref) {
|
|
2035
2058
|
var rows = _ref.rows;
|
|
2036
2059
|
|
|
2037
|
-
return React__default
|
|
2060
|
+
return React__default.createElement(
|
|
2038
2061
|
reactBootstrap.Table,
|
|
2039
2062
|
{ bordered: true, hover: true, responsive: true },
|
|
2040
|
-
React__default
|
|
2063
|
+
React__default.createElement(
|
|
2041
2064
|
'tbody',
|
|
2042
2065
|
null,
|
|
2043
2066
|
rows && rows.map(function (row) {
|
|
2044
|
-
return React__default
|
|
2067
|
+
return React__default.createElement(
|
|
2045
2068
|
'tr',
|
|
2046
2069
|
{ key: row._key },
|
|
2047
2070
|
row.cells && row.cells.map(function (cell, index) {
|
|
2048
|
-
return cell && React__default
|
|
2071
|
+
return cell && React__default.createElement(
|
|
2049
2072
|
'td',
|
|
2050
2073
|
{ key: index },
|
|
2051
2074
|
cell
|
|
@@ -2143,18 +2166,18 @@ var Media = function Media(_ref) {
|
|
|
2143
2166
|
margin: imageMargin
|
|
2144
2167
|
};
|
|
2145
2168
|
|
|
2146
|
-
return React__default
|
|
2169
|
+
return React__default.createElement(
|
|
2147
2170
|
reactBootstrap.Figure,
|
|
2148
2171
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2149
|
-
React__default
|
|
2172
|
+
React__default.createElement(
|
|
2150
2173
|
'a',
|
|
2151
2174
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2152
|
-
React__default
|
|
2175
|
+
React__default.createElement(
|
|
2153
2176
|
index$2.LazyLoad,
|
|
2154
2177
|
{ once: true },
|
|
2155
|
-
React__default
|
|
2178
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2156
2179
|
),
|
|
2157
|
-
caption && React__default
|
|
2180
|
+
caption && React__default.createElement(
|
|
2158
2181
|
reactBootstrap.Figure.Caption,
|
|
2159
2182
|
{ className: 'media-caption' },
|
|
2160
2183
|
caption
|
|
@@ -2162,9 +2185,9 @@ var Media = function Media(_ref) {
|
|
|
2162
2185
|
)
|
|
2163
2186
|
);
|
|
2164
2187
|
} else if (caption && caption !== '') {
|
|
2165
|
-
return React__default
|
|
2188
|
+
return React__default.createElement(
|
|
2166
2189
|
'a',
|
|
2167
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2190
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2168
2191
|
href: uploadDoc.asset.url + '?dl='
|
|
2169
2192
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2170
2193
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2182,10 +2205,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2182
2205
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2183
2206
|
|
|
2184
2207
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2185
|
-
return React__default
|
|
2208
|
+
return React__default.createElement(
|
|
2186
2209
|
'div',
|
|
2187
2210
|
{ className: 'd-block text-center mb-3' },
|
|
2188
|
-
React__default
|
|
2211
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2189
2212
|
);
|
|
2190
2213
|
};
|
|
2191
2214
|
|
|
@@ -2280,10 +2303,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2280
2303
|
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2281
2304
|
};
|
|
2282
2305
|
|
|
2283
|
-
return React__default
|
|
2306
|
+
return React__default.createElement(
|
|
2284
2307
|
'div',
|
|
2285
2308
|
null,
|
|
2286
|
-
vidLoaded && React__default
|
|
2309
|
+
vidLoaded && React__default.createElement(
|
|
2287
2310
|
'video',
|
|
2288
2311
|
{
|
|
2289
2312
|
poster: thumbnail || '',
|
|
@@ -2301,7 +2324,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2301
2324
|
onPlay: function onPlay(e) {
|
|
2302
2325
|
return handleOnPlay(e);
|
|
2303
2326
|
} },
|
|
2304
|
-
React__default
|
|
2327
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2305
2328
|
'Your browser does not support the video tag.'
|
|
2306
2329
|
)
|
|
2307
2330
|
);
|
|
@@ -2436,53 +2459,53 @@ var Video = function Video(_ref) {
|
|
|
2436
2459
|
|
|
2437
2460
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2438
2461
|
if (videoID) {
|
|
2439
|
-
return React__default
|
|
2462
|
+
return React__default.createElement(
|
|
2440
2463
|
'div',
|
|
2441
2464
|
null,
|
|
2442
|
-
React__default
|
|
2465
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2443
2466
|
onSuccess: onVideoSuccess,
|
|
2444
2467
|
accountId: accountIDs.brightcove.accountId,
|
|
2445
2468
|
videoId: videoID,
|
|
2446
2469
|
playerId: accountIDs.brightcove.playerId,
|
|
2447
2470
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2448
2471
|
}),
|
|
2449
|
-
React__default
|
|
2472
|
+
React__default.createElement(
|
|
2450
2473
|
'style',
|
|
2451
2474
|
{ jsx: 'true' },
|
|
2452
2475
|
'\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
2476
|
)
|
|
2454
2477
|
);
|
|
2455
2478
|
} else if (playlistID) {
|
|
2456
|
-
return React__default
|
|
2479
|
+
return React__default.createElement(
|
|
2457
2480
|
'div',
|
|
2458
2481
|
null,
|
|
2459
|
-
React__default
|
|
2482
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2460
2483
|
accountId: accountIDs.brightcove.accountId,
|
|
2461
2484
|
playlistId: playlistID,
|
|
2462
2485
|
playerId: accountIDs.brightcove.playerId,
|
|
2463
2486
|
onSuccess: onVideoSuccess,
|
|
2464
2487
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2465
2488
|
}),
|
|
2466
|
-
React__default
|
|
2489
|
+
React__default.createElement(
|
|
2467
2490
|
'style',
|
|
2468
2491
|
{ jsx: 'true' },
|
|
2469
2492
|
'\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
2493
|
)
|
|
2471
2494
|
);
|
|
2472
2495
|
} else if (experienceID) {
|
|
2473
|
-
return React__default
|
|
2496
|
+
return React__default.createElement(
|
|
2474
2497
|
'div',
|
|
2475
2498
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2476
|
-
videoLoaded && React__default
|
|
2499
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2477
2500
|
);
|
|
2478
2501
|
}
|
|
2479
2502
|
return null;
|
|
2480
2503
|
}
|
|
2481
2504
|
if (source === 'mp4') {
|
|
2482
|
-
return React__default
|
|
2505
|
+
return React__default.createElement(
|
|
2483
2506
|
'div',
|
|
2484
2507
|
null,
|
|
2485
|
-
React__default
|
|
2508
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2486
2509
|
);
|
|
2487
2510
|
}
|
|
2488
2511
|
|
|
@@ -2497,7 +2520,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2497
2520
|
});
|
|
2498
2521
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2499
2522
|
|
|
2500
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2523
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2501
2524
|
|
|
2502
2525
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2503
2526
|
|
|
@@ -2860,17 +2883,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2860
2883
|
|
|
2861
2884
|
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
2885
|
|
|
2863
|
-
function
|
|
2886
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2864
2887
|
|
|
2865
|
-
function
|
|
2888
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2866
2889
|
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2869
|
-
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); }
|
|
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; }
|
|
2890
|
+
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
2891
|
|
|
2875
2892
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2876
2893
|
|
|
@@ -3000,12 +3017,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3000
3017
|
|
|
3001
3018
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3002
3019
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3003
|
-
|
|
3004
|
-
var
|
|
3005
|
-
|
|
3020
|
+
var _iteratorNormalCompletion = true;
|
|
3021
|
+
var _didIteratorError = false;
|
|
3022
|
+
var _iteratorError = undefined;
|
|
3006
3023
|
|
|
3007
3024
|
try {
|
|
3008
|
-
for (_iterator.
|
|
3025
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3009
3026
|
var p = _step.value;
|
|
3010
3027
|
|
|
3011
3028
|
if (props$1[p]) {
|
|
@@ -3020,9 +3037,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3020
3037
|
}
|
|
3021
3038
|
}
|
|
3022
3039
|
} catch (err) {
|
|
3023
|
-
|
|
3040
|
+
_didIteratorError = true;
|
|
3041
|
+
_iteratorError = err;
|
|
3024
3042
|
} finally {
|
|
3025
|
-
|
|
3043
|
+
try {
|
|
3044
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3045
|
+
_iterator["return"]();
|
|
3046
|
+
}
|
|
3047
|
+
} finally {
|
|
3048
|
+
if (_didIteratorError) {
|
|
3049
|
+
throw _iteratorError;
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3026
3052
|
}
|
|
3027
3053
|
|
|
3028
3054
|
return config;
|
|
@@ -3087,7 +3113,7 @@ function isEqual(a, b) {
|
|
|
3087
3113
|
return true;
|
|
3088
3114
|
}
|
|
3089
3115
|
|
|
3090
|
-
if ((0, React__default
|
|
3116
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3091
3117
|
return true;
|
|
3092
3118
|
}
|
|
3093
3119
|
|
|
@@ -3149,7 +3175,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3149
3175
|
});
|
|
3150
3176
|
exports["default"] = void 0;
|
|
3151
3177
|
|
|
3152
|
-
var _react = _interopRequireWildcard(React__default
|
|
3178
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3153
3179
|
|
|
3154
3180
|
|
|
3155
3181
|
|
|
@@ -3169,16 +3195,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3169
3195
|
|
|
3170
3196
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3171
3197
|
|
|
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
3198
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3175
3199
|
|
|
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
3200
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
3201
|
|
|
3202
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3203
|
+
|
|
3182
3204
|
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
3205
|
|
|
3184
3206
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3187,12 +3209,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3187
3209
|
|
|
3188
3210
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3189
3211
|
|
|
3190
|
-
var Player =
|
|
3212
|
+
var Player =
|
|
3213
|
+
/*#__PURE__*/
|
|
3214
|
+
function (_Component) {
|
|
3191
3215
|
_inherits(Player, _Component);
|
|
3192
3216
|
|
|
3193
|
-
var _super = _createSuper(Player);
|
|
3194
|
-
|
|
3195
3217
|
function Player() {
|
|
3218
|
+
var _getPrototypeOf2;
|
|
3219
|
+
|
|
3196
3220
|
var _this;
|
|
3197
3221
|
|
|
3198
3222
|
_classCallCheck(this, Player);
|
|
@@ -3201,7 +3225,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3201
3225
|
_args[_key] = arguments[_key];
|
|
3202
3226
|
}
|
|
3203
3227
|
|
|
3204
|
-
_this =
|
|
3228
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3205
3229
|
|
|
3206
3230
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3207
3231
|
|
|
@@ -3526,7 +3550,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3526
3550
|
return null;
|
|
3527
3551
|
}
|
|
3528
3552
|
|
|
3529
|
-
return
|
|
3553
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3530
3554
|
ref: this.ref,
|
|
3531
3555
|
onReady: this.handleReady,
|
|
3532
3556
|
onPlay: this.handlePlay,
|
|
@@ -3559,7 +3583,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3559
3583
|
});
|
|
3560
3584
|
exports["default"] = createSinglePlayer;
|
|
3561
3585
|
|
|
3562
|
-
var _react = _interopRequireWildcard(React__default
|
|
3586
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3563
3587
|
|
|
3564
3588
|
|
|
3565
3589
|
|
|
@@ -3587,16 +3611,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3587
3611
|
|
|
3588
3612
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3589
3613
|
|
|
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
3614
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3593
3615
|
|
|
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
3616
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
3617
|
|
|
3618
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3619
|
+
|
|
3600
3620
|
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
3621
|
|
|
3602
3622
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3608,12 +3628,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3608
3628
|
function createSinglePlayer(activePlayer) {
|
|
3609
3629
|
var _class, _temp;
|
|
3610
3630
|
|
|
3611
|
-
return _temp = _class =
|
|
3631
|
+
return _temp = _class =
|
|
3632
|
+
/*#__PURE__*/
|
|
3633
|
+
function (_Component) {
|
|
3612
3634
|
_inherits(SinglePlayer, _Component);
|
|
3613
3635
|
|
|
3614
|
-
var _super = _createSuper(SinglePlayer);
|
|
3615
|
-
|
|
3616
3636
|
function SinglePlayer() {
|
|
3637
|
+
var _getPrototypeOf2;
|
|
3638
|
+
|
|
3617
3639
|
var _this;
|
|
3618
3640
|
|
|
3619
3641
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3622,7 +3644,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3622
3644
|
args[_key] = arguments[_key];
|
|
3623
3645
|
}
|
|
3624
3646
|
|
|
3625
|
-
_this =
|
|
3647
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3626
3648
|
|
|
3627
3649
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3628
3650
|
|
|
@@ -3690,12 +3712,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3690
3712
|
height = _this$props.height,
|
|
3691
3713
|
Wrapper = _this$props.wrapper;
|
|
3692
3714
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3693
|
-
return
|
|
3715
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3694
3716
|
style: _objectSpread({}, style, {
|
|
3695
3717
|
width: width,
|
|
3696
3718
|
height: height
|
|
3697
3719
|
})
|
|
3698
|
-
}, otherProps),
|
|
3720
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3699
3721
|
ref: this.ref,
|
|
3700
3722
|
activePlayer: activePlayer,
|
|
3701
3723
|
config: this.config
|
|
@@ -3717,7 +3739,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3717
3739
|
});
|
|
3718
3740
|
exports["default"] = exports.YouTube = void 0;
|
|
3719
3741
|
|
|
3720
|
-
var _react = _interopRequireWildcard(React__default
|
|
3742
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3721
3743
|
|
|
3722
3744
|
|
|
3723
3745
|
|
|
@@ -3741,31 +3763,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3741
3763
|
|
|
3742
3764
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3743
3765
|
|
|
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
3766
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3747
3767
|
|
|
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
3768
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
3769
|
|
|
3770
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3771
|
+
|
|
3754
3772
|
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
3773
|
|
|
3756
3774
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3757
3775
|
|
|
3758
3776
|
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
3777
|
|
|
3760
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3778
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3761
3779
|
|
|
3762
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3780
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3763
3781
|
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3766
|
-
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; }
|
|
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; }
|
|
3782
|
+
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
3783
|
|
|
3770
3784
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3771
3785
|
|
|
@@ -3790,12 +3804,14 @@ function parsePlaylist(url) {
|
|
|
3790
3804
|
return {};
|
|
3791
3805
|
}
|
|
3792
3806
|
|
|
3793
|
-
var YouTube =
|
|
3807
|
+
var YouTube =
|
|
3808
|
+
/*#__PURE__*/
|
|
3809
|
+
function (_Component) {
|
|
3794
3810
|
_inherits(YouTube, _Component);
|
|
3795
3811
|
|
|
3796
|
-
var _super = _createSuper(YouTube);
|
|
3797
|
-
|
|
3798
3812
|
function YouTube() {
|
|
3813
|
+
var _getPrototypeOf2;
|
|
3814
|
+
|
|
3799
3815
|
var _this;
|
|
3800
3816
|
|
|
3801
3817
|
_classCallCheck(this, YouTube);
|
|
@@ -3804,7 +3820,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3804
3820
|
args[_key] = arguments[_key];
|
|
3805
3821
|
}
|
|
3806
3822
|
|
|
3807
|
-
_this =
|
|
3823
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3808
3824
|
|
|
3809
3825
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3810
3826
|
|
|
@@ -3992,9 +4008,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3992
4008
|
height: '100%',
|
|
3993
4009
|
display: display
|
|
3994
4010
|
};
|
|
3995
|
-
return
|
|
4011
|
+
return _react["default"].createElement("div", {
|
|
3996
4012
|
style: style
|
|
3997
|
-
},
|
|
4013
|
+
}, _react["default"].createElement("div", {
|
|
3998
4014
|
ref: this.ref
|
|
3999
4015
|
}));
|
|
4000
4016
|
}
|
|
@@ -4026,7 +4042,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4026
4042
|
});
|
|
4027
4043
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4028
4044
|
|
|
4029
|
-
var _react = _interopRequireWildcard(React__default
|
|
4045
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4030
4046
|
|
|
4031
4047
|
|
|
4032
4048
|
|
|
@@ -4050,16 +4066,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4050
4066
|
|
|
4051
4067
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4052
4068
|
|
|
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
4069
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4056
4070
|
|
|
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
4071
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
4072
|
|
|
4073
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4074
|
+
|
|
4063
4075
|
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
4076
|
|
|
4065
4077
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4068,14 +4080,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4068
4080
|
|
|
4069
4081
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4070
4082
|
var SDK_GLOBAL = 'SC';
|
|
4071
|
-
var MATCH_URL = /(
|
|
4083
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4072
4084
|
|
|
4073
|
-
var SoundCloud =
|
|
4085
|
+
var SoundCloud =
|
|
4086
|
+
/*#__PURE__*/
|
|
4087
|
+
function (_Component) {
|
|
4074
4088
|
_inherits(SoundCloud, _Component);
|
|
4075
4089
|
|
|
4076
|
-
var _super = _createSuper(SoundCloud);
|
|
4077
|
-
|
|
4078
4090
|
function SoundCloud() {
|
|
4091
|
+
var _getPrototypeOf2;
|
|
4092
|
+
|
|
4079
4093
|
var _this;
|
|
4080
4094
|
|
|
4081
4095
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4084,7 +4098,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4084
4098
|
args[_key] = arguments[_key];
|
|
4085
4099
|
}
|
|
4086
4100
|
|
|
4087
|
-
_this =
|
|
4101
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4088
4102
|
|
|
4089
4103
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4090
4104
|
|
|
@@ -4205,7 +4219,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4205
4219
|
height: '100%',
|
|
4206
4220
|
display: display
|
|
4207
4221
|
};
|
|
4208
|
-
return
|
|
4222
|
+
return _react["default"].createElement("iframe", {
|
|
4209
4223
|
ref: this.ref,
|
|
4210
4224
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4211
4225
|
style: style,
|
|
@@ -4243,7 +4257,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4243
4257
|
});
|
|
4244
4258
|
exports["default"] = exports.Vimeo = void 0;
|
|
4245
4259
|
|
|
4246
|
-
var _react = _interopRequireWildcard(React__default
|
|
4260
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4247
4261
|
|
|
4248
4262
|
|
|
4249
4263
|
|
|
@@ -4267,16 +4281,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4267
4281
|
|
|
4268
4282
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4269
4283
|
|
|
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
4284
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4273
4285
|
|
|
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
4286
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
4287
|
|
|
4288
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4289
|
+
|
|
4280
4290
|
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
4291
|
|
|
4282
4292
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4288,12 +4298,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4288
4298
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4289
4299
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4290
4300
|
|
|
4291
|
-
var Vimeo =
|
|
4301
|
+
var Vimeo =
|
|
4302
|
+
/*#__PURE__*/
|
|
4303
|
+
function (_Component) {
|
|
4292
4304
|
_inherits(Vimeo, _Component);
|
|
4293
4305
|
|
|
4294
|
-
var _super = _createSuper(Vimeo);
|
|
4295
|
-
|
|
4296
4306
|
function Vimeo() {
|
|
4307
|
+
var _getPrototypeOf2;
|
|
4308
|
+
|
|
4297
4309
|
var _this;
|
|
4298
4310
|
|
|
4299
4311
|
_classCallCheck(this, Vimeo);
|
|
@@ -4302,7 +4314,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4302
4314
|
args[_key] = arguments[_key];
|
|
4303
4315
|
}
|
|
4304
4316
|
|
|
4305
|
-
_this =
|
|
4317
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4306
4318
|
|
|
4307
4319
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4308
4320
|
|
|
@@ -4459,7 +4471,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4459
4471
|
overflow: 'hidden',
|
|
4460
4472
|
display: display
|
|
4461
4473
|
};
|
|
4462
|
-
return
|
|
4474
|
+
return _react["default"].createElement("div", {
|
|
4463
4475
|
key: this.props.url,
|
|
4464
4476
|
ref: this.ref,
|
|
4465
4477
|
style: style
|
|
@@ -4499,7 +4511,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4499
4511
|
});
|
|
4500
4512
|
exports["default"] = exports.Facebook = void 0;
|
|
4501
4513
|
|
|
4502
|
-
var _react = _interopRequireWildcard(React__default
|
|
4514
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4503
4515
|
|
|
4504
4516
|
|
|
4505
4517
|
|
|
@@ -4519,16 +4531,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4519
4531
|
|
|
4520
4532
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4521
4533
|
|
|
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
4534
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4525
4535
|
|
|
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
4536
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
4537
|
|
|
4538
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4539
|
+
|
|
4532
4540
|
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
4541
|
|
|
4534
4542
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4541,12 +4549,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4541
4549
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4542
4550
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4543
4551
|
|
|
4544
|
-
var Facebook =
|
|
4552
|
+
var Facebook =
|
|
4553
|
+
/*#__PURE__*/
|
|
4554
|
+
function (_Component) {
|
|
4545
4555
|
_inherits(Facebook, _Component);
|
|
4546
4556
|
|
|
4547
|
-
var _super = _createSuper(Facebook);
|
|
4548
|
-
|
|
4549
4557
|
function Facebook() {
|
|
4558
|
+
var _getPrototypeOf2;
|
|
4559
|
+
|
|
4550
4560
|
var _this;
|
|
4551
4561
|
|
|
4552
4562
|
_classCallCheck(this, Facebook);
|
|
@@ -4555,7 +4565,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4555
4565
|
args[_key] = arguments[_key];
|
|
4556
4566
|
}
|
|
4557
4567
|
|
|
4558
|
-
_this =
|
|
4568
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4559
4569
|
|
|
4560
4570
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4561
4571
|
|
|
@@ -4671,7 +4681,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4671
4681
|
width: '100%',
|
|
4672
4682
|
height: '100%'
|
|
4673
4683
|
};
|
|
4674
|
-
return
|
|
4684
|
+
return _react["default"].createElement("div", {
|
|
4675
4685
|
style: style,
|
|
4676
4686
|
id: this.playerID,
|
|
4677
4687
|
className: "fb-video",
|
|
@@ -4711,7 +4721,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4711
4721
|
});
|
|
4712
4722
|
exports["default"] = exports.Streamable = void 0;
|
|
4713
4723
|
|
|
4714
|
-
var _react = _interopRequireWildcard(React__default
|
|
4724
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4715
4725
|
|
|
4716
4726
|
|
|
4717
4727
|
|
|
@@ -4731,16 +4741,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4731
4741
|
|
|
4732
4742
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4733
4743
|
|
|
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
4744
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4737
4745
|
|
|
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
4746
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
4747
|
|
|
4748
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4749
|
+
|
|
4744
4750
|
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
4751
|
|
|
4746
4752
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4751,12 +4757,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4751
4757
|
var SDK_GLOBAL = 'playerjs';
|
|
4752
4758
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4753
4759
|
|
|
4754
|
-
var Streamable =
|
|
4760
|
+
var Streamable =
|
|
4761
|
+
/*#__PURE__*/
|
|
4762
|
+
function (_Component) {
|
|
4755
4763
|
_inherits(Streamable, _Component);
|
|
4756
4764
|
|
|
4757
|
-
var _super = _createSuper(Streamable);
|
|
4758
|
-
|
|
4759
4765
|
function Streamable() {
|
|
4766
|
+
var _getPrototypeOf2;
|
|
4767
|
+
|
|
4760
4768
|
var _this;
|
|
4761
4769
|
|
|
4762
4770
|
_classCallCheck(this, Streamable);
|
|
@@ -4765,7 +4773,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4765
4773
|
args[_key] = arguments[_key];
|
|
4766
4774
|
}
|
|
4767
4775
|
|
|
4768
|
-
_this =
|
|
4776
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4769
4777
|
|
|
4770
4778
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4771
4779
|
|
|
@@ -4885,7 +4893,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4885
4893
|
width: '100%',
|
|
4886
4894
|
height: '100%'
|
|
4887
4895
|
};
|
|
4888
|
-
return
|
|
4896
|
+
return _react["default"].createElement("iframe", {
|
|
4889
4897
|
ref: this.ref,
|
|
4890
4898
|
src: "https://streamable.com/o/".concat(id),
|
|
4891
4899
|
frameBorder: "0",
|
|
@@ -4922,7 +4930,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4922
4930
|
});
|
|
4923
4931
|
exports["default"] = exports.Wistia = void 0;
|
|
4924
4932
|
|
|
4925
|
-
var _react = _interopRequireWildcard(React__default
|
|
4933
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4926
4934
|
|
|
4927
4935
|
|
|
4928
4936
|
|
|
@@ -4946,16 +4954,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4946
4954
|
|
|
4947
4955
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4948
4956
|
|
|
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
4957
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4952
4958
|
|
|
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
4959
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
4960
|
|
|
4961
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4962
|
+
|
|
4959
4963
|
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
4964
|
|
|
4961
4965
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4966,48 +4970,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4966
4970
|
var SDK_GLOBAL = 'Wistia';
|
|
4967
4971
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4968
4972
|
|
|
4969
|
-
var Wistia =
|
|
4973
|
+
var Wistia =
|
|
4974
|
+
/*#__PURE__*/
|
|
4975
|
+
function (_Component) {
|
|
4970
4976
|
_inherits(Wistia, _Component);
|
|
4971
4977
|
|
|
4972
|
-
var _super = _createSuper(Wistia);
|
|
4973
|
-
|
|
4974
4978
|
function Wistia() {
|
|
4979
|
+
var _getPrototypeOf2;
|
|
4980
|
+
|
|
4975
4981
|
var _this;
|
|
4976
4982
|
|
|
4977
4983
|
_classCallCheck(this, Wistia);
|
|
4978
4984
|
|
|
4979
|
-
for (var _len = arguments.length,
|
|
4980
|
-
|
|
4985
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4986
|
+
args[_key] = arguments[_key];
|
|
4981
4987
|
}
|
|
4982
4988
|
|
|
4983
|
-
_this =
|
|
4989
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4984
4990
|
|
|
4985
4991
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4986
4992
|
|
|
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
4993
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5012
4994
|
_this.callPlayer('mute');
|
|
5013
4995
|
});
|
|
@@ -5029,13 +5011,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5029
5011
|
value: function load(url) {
|
|
5030
5012
|
var _this2 = this;
|
|
5031
5013
|
|
|
5032
|
-
var _this$
|
|
5033
|
-
playing = _this$
|
|
5034
|
-
muted = _this$
|
|
5035
|
-
controls = _this$
|
|
5036
|
-
_onReady = _this$
|
|
5037
|
-
|
|
5038
|
-
|
|
5014
|
+
var _this$props = this.props,
|
|
5015
|
+
playing = _this$props.playing,
|
|
5016
|
+
muted = _this$props.muted,
|
|
5017
|
+
controls = _this$props.controls,
|
|
5018
|
+
_onReady = _this$props.onReady,
|
|
5019
|
+
onPlay = _this$props.onPlay,
|
|
5020
|
+
onPause = _this$props.onPause,
|
|
5021
|
+
onSeek = _this$props.onSeek,
|
|
5022
|
+
onEnded = _this$props.onEnded,
|
|
5023
|
+
config = _this$props.config,
|
|
5024
|
+
onError = _this$props.onError;
|
|
5039
5025
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5040
5026
|
window._wq = window._wq || [];
|
|
5041
5027
|
|
|
@@ -5052,28 +5038,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5052
5038
|
|
|
5053
5039
|
_this2.unbind();
|
|
5054
5040
|
|
|
5055
|
-
_this2.player.bind('play',
|
|
5041
|
+
_this2.player.bind('play', onPlay);
|
|
5056
5042
|
|
|
5057
|
-
_this2.player.bind('pause',
|
|
5043
|
+
_this2.player.bind('pause', onPause);
|
|
5058
5044
|
|
|
5059
|
-
_this2.player.bind('seek',
|
|
5045
|
+
_this2.player.bind('seek', onSeek);
|
|
5060
5046
|
|
|
5061
|
-
_this2.player.bind('end',
|
|
5047
|
+
_this2.player.bind('end', onEnded);
|
|
5062
5048
|
|
|
5063
5049
|
_onReady();
|
|
5064
5050
|
}
|
|
5065
5051
|
});
|
|
5066
5052
|
}, onError);
|
|
5067
5053
|
}
|
|
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
5054
|
}, {
|
|
5078
5055
|
key: "play",
|
|
5079
5056
|
value: function play() {
|
|
@@ -5084,6 +5061,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5084
5061
|
value: function pause() {
|
|
5085
5062
|
this.callPlayer('pause');
|
|
5086
5063
|
}
|
|
5064
|
+
}, {
|
|
5065
|
+
key: "unbind",
|
|
5066
|
+
value: function unbind() {
|
|
5067
|
+
var _this$props2 = this.props,
|
|
5068
|
+
onPlay = _this$props2.onPlay,
|
|
5069
|
+
onPause = _this$props2.onPause,
|
|
5070
|
+
onSeek = _this$props2.onSeek,
|
|
5071
|
+
onEnded = _this$props2.onEnded;
|
|
5072
|
+
this.player.unbind('play', onPlay);
|
|
5073
|
+
this.player.unbind('pause', onPause);
|
|
5074
|
+
this.player.unbind('seek', onSeek);
|
|
5075
|
+
this.player.unbind('end', onEnded);
|
|
5076
|
+
}
|
|
5087
5077
|
}, {
|
|
5088
5078
|
key: "stop",
|
|
5089
5079
|
value: function stop() {
|
|
@@ -5129,7 +5119,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5129
5119
|
width: '100%',
|
|
5130
5120
|
height: '100%'
|
|
5131
5121
|
};
|
|
5132
|
-
return
|
|
5122
|
+
return _react["default"].createElement("div", {
|
|
5133
5123
|
key: id,
|
|
5134
5124
|
className: className,
|
|
5135
5125
|
style: style
|
|
@@ -5165,7 +5155,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5165
5155
|
});
|
|
5166
5156
|
exports["default"] = exports.Twitch = void 0;
|
|
5167
5157
|
|
|
5168
|
-
var _react = _interopRequireWildcard(React__default
|
|
5158
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5169
5159
|
|
|
5170
5160
|
|
|
5171
5161
|
|
|
@@ -5189,16 +5179,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5189
5179
|
|
|
5190
5180
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5191
5181
|
|
|
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
5182
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5195
5183
|
|
|
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
5184
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
5185
|
|
|
5186
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5187
|
+
|
|
5202
5188
|
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
5189
|
|
|
5204
5190
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5211,12 +5197,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5211
5197
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5212
5198
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5213
5199
|
|
|
5214
|
-
var Twitch =
|
|
5200
|
+
var Twitch =
|
|
5201
|
+
/*#__PURE__*/
|
|
5202
|
+
function (_Component) {
|
|
5215
5203
|
_inherits(Twitch, _Component);
|
|
5216
5204
|
|
|
5217
|
-
var _super = _createSuper(Twitch);
|
|
5218
|
-
|
|
5219
5205
|
function Twitch() {
|
|
5206
|
+
var _getPrototypeOf2;
|
|
5207
|
+
|
|
5220
5208
|
var _this;
|
|
5221
5209
|
|
|
5222
5210
|
_classCallCheck(this, Twitch);
|
|
@@ -5225,7 +5213,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5225
5213
|
args[_key] = arguments[_key];
|
|
5226
5214
|
}
|
|
5227
5215
|
|
|
5228
|
-
_this =
|
|
5216
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5229
5217
|
|
|
5230
5218
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5231
5219
|
|
|
@@ -5346,7 +5334,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5346
5334
|
width: '100%',
|
|
5347
5335
|
height: '100%'
|
|
5348
5336
|
};
|
|
5349
|
-
return
|
|
5337
|
+
return _react["default"].createElement("div", {
|
|
5350
5338
|
style: style,
|
|
5351
5339
|
id: this.playerID
|
|
5352
5340
|
});
|
|
@@ -5381,7 +5369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5381
5369
|
});
|
|
5382
5370
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5383
5371
|
|
|
5384
|
-
var _react = _interopRequireWildcard(React__default
|
|
5372
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5385
5373
|
|
|
5386
5374
|
|
|
5387
5375
|
|
|
@@ -5399,15 +5387,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5399
5387
|
|
|
5400
5388
|
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
5389
|
|
|
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."); }
|
|
5390
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5405
5391
|
|
|
5406
|
-
function
|
|
5392
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5407
5393
|
|
|
5408
|
-
function
|
|
5409
|
-
|
|
5410
|
-
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; }
|
|
5394
|
+
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
5395
|
|
|
5412
5396
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5413
5397
|
|
|
@@ -5417,16 +5401,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5417
5401
|
|
|
5418
5402
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5419
5403
|
|
|
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
5404
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5423
5405
|
|
|
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
5406
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
5407
|
|
|
5408
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5409
|
+
|
|
5430
5410
|
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
5411
|
|
|
5432
5412
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5438,12 +5418,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5438
5418
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5439
5419
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5440
5420
|
|
|
5441
|
-
var DailyMotion =
|
|
5421
|
+
var DailyMotion =
|
|
5422
|
+
/*#__PURE__*/
|
|
5423
|
+
function (_Component) {
|
|
5442
5424
|
_inherits(DailyMotion, _Component);
|
|
5443
5425
|
|
|
5444
|
-
var _super = _createSuper(DailyMotion);
|
|
5445
|
-
|
|
5446
5426
|
function DailyMotion() {
|
|
5427
|
+
var _getPrototypeOf2;
|
|
5428
|
+
|
|
5447
5429
|
var _this;
|
|
5448
5430
|
|
|
5449
5431
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5452,7 +5434,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5452
5434
|
args[_key] = arguments[_key];
|
|
5453
5435
|
}
|
|
5454
5436
|
|
|
5455
|
-
_this =
|
|
5437
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5456
5438
|
|
|
5457
5439
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5458
5440
|
|
|
@@ -5581,9 +5563,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5581
5563
|
height: '100%',
|
|
5582
5564
|
display: display
|
|
5583
5565
|
};
|
|
5584
|
-
return
|
|
5566
|
+
return _react["default"].createElement("div", {
|
|
5585
5567
|
style: style
|
|
5586
|
-
},
|
|
5568
|
+
}, _react["default"].createElement("div", {
|
|
5587
5569
|
ref: this.ref
|
|
5588
5570
|
}));
|
|
5589
5571
|
}
|
|
@@ -5617,7 +5599,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5617
5599
|
});
|
|
5618
5600
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5619
5601
|
|
|
5620
|
-
var _react = _interopRequireWildcard(React__default
|
|
5602
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5621
5603
|
|
|
5622
5604
|
|
|
5623
5605
|
|
|
@@ -5641,16 +5623,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5641
5623
|
|
|
5642
5624
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5643
5625
|
|
|
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
5626
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5647
5627
|
|
|
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
5628
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
5629
|
|
|
5630
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5631
|
+
|
|
5654
5632
|
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
5633
|
|
|
5656
5634
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5661,12 +5639,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5661
5639
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5662
5640
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5663
5641
|
|
|
5664
|
-
var Mixcloud =
|
|
5642
|
+
var Mixcloud =
|
|
5643
|
+
/*#__PURE__*/
|
|
5644
|
+
function (_Component) {
|
|
5665
5645
|
_inherits(Mixcloud, _Component);
|
|
5666
5646
|
|
|
5667
|
-
var _super = _createSuper(Mixcloud);
|
|
5668
|
-
|
|
5669
5647
|
function Mixcloud() {
|
|
5648
|
+
var _getPrototypeOf2;
|
|
5649
|
+
|
|
5670
5650
|
var _this;
|
|
5671
5651
|
|
|
5672
5652
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5675,7 +5655,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5675
5655
|
args[_key] = arguments[_key];
|
|
5676
5656
|
}
|
|
5677
5657
|
|
|
5678
|
-
_this =
|
|
5658
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5679
5659
|
|
|
5680
5660
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5681
5661
|
|
|
@@ -5778,7 +5758,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5778
5758
|
})); // We have to give the iframe a key here to prevent a
|
|
5779
5759
|
// weird dialog appearing when loading a new track
|
|
5780
5760
|
|
|
5781
|
-
return
|
|
5761
|
+
return _react["default"].createElement("iframe", {
|
|
5782
5762
|
key: id,
|
|
5783
5763
|
ref: this.ref,
|
|
5784
5764
|
style: style,
|
|
@@ -5816,7 +5796,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5816
5796
|
});
|
|
5817
5797
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5818
5798
|
|
|
5819
|
-
var _react = _interopRequireWildcard(React__default
|
|
5799
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5820
5800
|
|
|
5821
5801
|
|
|
5822
5802
|
|
|
@@ -5838,33 +5818,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5838
5818
|
|
|
5839
5819
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5840
5820
|
|
|
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
5821
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5844
5822
|
|
|
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
5823
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
5824
|
|
|
5825
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5826
|
+
|
|
5851
5827
|
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
5828
|
|
|
5853
5829
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5854
5830
|
|
|
5855
5831
|
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
5832
|
|
|
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
5833
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5864
5834
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5865
5835
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5866
5836
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5867
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5837
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5868
5838
|
var HLS_GLOBAL = 'Hls';
|
|
5869
5839
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5870
5840
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5873,11 +5843,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5873
5843
|
|
|
5874
5844
|
function canPlay(url) {
|
|
5875
5845
|
if (url instanceof Array) {
|
|
5876
|
-
var
|
|
5877
|
-
|
|
5846
|
+
var _iteratorNormalCompletion = true;
|
|
5847
|
+
var _didIteratorError = false;
|
|
5848
|
+
var _iteratorError = undefined;
|
|
5878
5849
|
|
|
5879
5850
|
try {
|
|
5880
|
-
for (_iterator.
|
|
5851
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5881
5852
|
var item = _step.value;
|
|
5882
5853
|
|
|
5883
5854
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5889,9 +5860,18 @@ function canPlay(url) {
|
|
|
5889
5860
|
}
|
|
5890
5861
|
}
|
|
5891
5862
|
} catch (err) {
|
|
5892
|
-
|
|
5863
|
+
_didIteratorError = true;
|
|
5864
|
+
_iteratorError = err;
|
|
5893
5865
|
} finally {
|
|
5894
|
-
|
|
5866
|
+
try {
|
|
5867
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5868
|
+
_iterator["return"]();
|
|
5869
|
+
}
|
|
5870
|
+
} finally {
|
|
5871
|
+
if (_didIteratorError) {
|
|
5872
|
+
throw _iteratorError;
|
|
5873
|
+
}
|
|
5874
|
+
}
|
|
5895
5875
|
}
|
|
5896
5876
|
|
|
5897
5877
|
return false;
|
|
@@ -5915,12 +5895,14 @@ function canEnablePIP(url) {
|
|
|
5915
5895
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5916
5896
|
}
|
|
5917
5897
|
|
|
5918
|
-
var FilePlayer =
|
|
5898
|
+
var FilePlayer =
|
|
5899
|
+
/*#__PURE__*/
|
|
5900
|
+
function (_Component) {
|
|
5919
5901
|
_inherits(FilePlayer, _Component);
|
|
5920
5902
|
|
|
5921
|
-
var _super = _createSuper(FilePlayer);
|
|
5922
|
-
|
|
5923
5903
|
function FilePlayer() {
|
|
5904
|
+
var _getPrototypeOf2;
|
|
5905
|
+
|
|
5924
5906
|
var _this;
|
|
5925
5907
|
|
|
5926
5908
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5929,7 +5911,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5929
5911
|
_args[_key] = arguments[_key];
|
|
5930
5912
|
}
|
|
5931
5913
|
|
|
5932
|
-
_this =
|
|
5914
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5933
5915
|
|
|
5934
5916
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5935
5917
|
var _this$props;
|
|
@@ -6016,19 +5998,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6016
5998
|
|
|
6017
5999
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6018
6000
|
if (typeof source === 'string') {
|
|
6019
|
-
return
|
|
6001
|
+
return _react["default"].createElement("source", {
|
|
6020
6002
|
key: index,
|
|
6021
6003
|
src: source
|
|
6022
6004
|
});
|
|
6023
6005
|
}
|
|
6024
6006
|
|
|
6025
|
-
return
|
|
6007
|
+
return _react["default"].createElement("source", _extends({
|
|
6026
6008
|
key: index
|
|
6027
6009
|
}, source));
|
|
6028
6010
|
});
|
|
6029
6011
|
|
|
6030
6012
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6031
|
-
return
|
|
6013
|
+
return _react["default"].createElement("track", _extends({
|
|
6032
6014
|
key: index
|
|
6033
6015
|
}, track));
|
|
6034
6016
|
});
|
|
@@ -6066,10 +6048,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6066
6048
|
key: "componentWillUnmount",
|
|
6067
6049
|
value: function componentWillUnmount() {
|
|
6068
6050
|
this.removeListeners(this.player);
|
|
6069
|
-
|
|
6070
|
-
if (this.hls) {
|
|
6071
|
-
this.hls.destroy();
|
|
6072
|
-
}
|
|
6073
6051
|
}
|
|
6074
6052
|
}, {
|
|
6075
6053
|
key: "addListeners",
|
|
@@ -6200,6 +6178,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6200
6178
|
value: function stop() {
|
|
6201
6179
|
this.player.removeAttribute('src');
|
|
6202
6180
|
|
|
6181
|
+
if (this.hls) {
|
|
6182
|
+
this.hls.destroy();
|
|
6183
|
+
}
|
|
6184
|
+
|
|
6203
6185
|
if (this.dash) {
|
|
6204
6186
|
this.dash.reset();
|
|
6205
6187
|
}
|
|
@@ -6311,7 +6293,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6311
6293
|
width: width === 'auto' ? width : '100%',
|
|
6312
6294
|
height: height === 'auto' ? height : '100%'
|
|
6313
6295
|
};
|
|
6314
|
-
return
|
|
6296
|
+
return _react["default"].createElement(Element, _extends({
|
|
6315
6297
|
ref: this.ref,
|
|
6316
6298
|
src: this.getSource(url),
|
|
6317
6299
|
style: style,
|
|
@@ -6383,7 +6365,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6383
6365
|
});
|
|
6384
6366
|
exports["default"] = void 0;
|
|
6385
6367
|
|
|
6386
|
-
var _react = _interopRequireWildcard(React__default
|
|
6368
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6387
6369
|
|
|
6388
6370
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6389
6371
|
|
|
@@ -6401,16 +6383,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6401
6383
|
|
|
6402
6384
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6403
6385
|
|
|
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
6386
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6407
6387
|
|
|
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
6388
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
6389
|
|
|
6390
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6391
|
+
|
|
6414
6392
|
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
6393
|
|
|
6416
6394
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6419,12 +6397,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6419
6397
|
|
|
6420
6398
|
var ICON_SIZE = '64px';
|
|
6421
6399
|
|
|
6422
|
-
var Preview =
|
|
6400
|
+
var Preview =
|
|
6401
|
+
/*#__PURE__*/
|
|
6402
|
+
function (_Component) {
|
|
6423
6403
|
_inherits(Preview, _Component);
|
|
6424
6404
|
|
|
6425
|
-
var _super = _createSuper(Preview);
|
|
6426
|
-
|
|
6427
6405
|
function Preview() {
|
|
6406
|
+
var _getPrototypeOf2;
|
|
6407
|
+
|
|
6428
6408
|
var _this;
|
|
6429
6409
|
|
|
6430
6410
|
_classCallCheck(this, Preview);
|
|
@@ -6433,7 +6413,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6433
6413
|
args[_key] = arguments[_key];
|
|
6434
6414
|
}
|
|
6435
6415
|
|
|
6436
|
-
_this =
|
|
6416
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6437
6417
|
|
|
6438
6418
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6439
6419
|
|
|
@@ -6531,15 +6511,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6531
6511
|
}
|
|
6532
6512
|
};
|
|
6533
6513
|
|
|
6534
|
-
var defaultPlayIcon =
|
|
6514
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6535
6515
|
style: styles.shadow,
|
|
6536
6516
|
className: "react-player__shadow"
|
|
6537
|
-
},
|
|
6517
|
+
}, _react["default"].createElement("div", {
|
|
6538
6518
|
style: styles.playIcon,
|
|
6539
6519
|
className: "react-player__play-icon"
|
|
6540
6520
|
}));
|
|
6541
6521
|
|
|
6542
|
-
return
|
|
6522
|
+
return _react["default"].createElement("div", {
|
|
6543
6523
|
style: styles.preview,
|
|
6544
6524
|
className: "react-player__preview",
|
|
6545
6525
|
onClick: onClick
|
|
@@ -6562,7 +6542,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6562
6542
|
});
|
|
6563
6543
|
exports["default"] = renderPreloadPlayers;
|
|
6564
6544
|
|
|
6565
|
-
var _react = _interopRequireDefault(React__default
|
|
6545
|
+
var _react = _interopRequireDefault(React__default);
|
|
6566
6546
|
|
|
6567
6547
|
var _Player = _interopRequireDefault(Player_1);
|
|
6568
6548
|
|
|
@@ -6576,12 +6556,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6576
6556
|
|
|
6577
6557
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6578
6558
|
|
|
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
6559
|
var PRELOAD_PLAYERS = [{
|
|
6586
6560
|
Player: YouTube_1.YouTube,
|
|
6587
6561
|
configKey: 'youtube',
|
|
@@ -6602,16 +6576,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6602
6576
|
|
|
6603
6577
|
function renderPreloadPlayers(url, controls, config) {
|
|
6604
6578
|
var players = [];
|
|
6605
|
-
|
|
6606
|
-
var
|
|
6607
|
-
|
|
6579
|
+
var _iteratorNormalCompletion = true;
|
|
6580
|
+
var _didIteratorError = false;
|
|
6581
|
+
var _iteratorError = undefined;
|
|
6608
6582
|
|
|
6609
6583
|
try {
|
|
6610
|
-
for (_iterator.
|
|
6584
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6611
6585
|
var player = _step.value;
|
|
6612
6586
|
|
|
6613
6587
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6614
|
-
players.push(
|
|
6588
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6615
6589
|
key: player.Player.displayName,
|
|
6616
6590
|
activePlayer: player.Player,
|
|
6617
6591
|
url: player.url,
|
|
@@ -6623,9 +6597,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6623
6597
|
}
|
|
6624
6598
|
}
|
|
6625
6599
|
} catch (err) {
|
|
6626
|
-
|
|
6600
|
+
_didIteratorError = true;
|
|
6601
|
+
_iteratorError = err;
|
|
6627
6602
|
} finally {
|
|
6628
|
-
|
|
6603
|
+
try {
|
|
6604
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6605
|
+
_iterator["return"]();
|
|
6606
|
+
}
|
|
6607
|
+
} finally {
|
|
6608
|
+
if (_didIteratorError) {
|
|
6609
|
+
throw _iteratorError;
|
|
6610
|
+
}
|
|
6611
|
+
}
|
|
6629
6612
|
}
|
|
6630
6613
|
|
|
6631
6614
|
return players;
|
|
@@ -6701,7 +6684,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6701
6684
|
});
|
|
6702
6685
|
exports["default"] = void 0;
|
|
6703
6686
|
|
|
6704
|
-
var _react = _interopRequireWildcard(React__default
|
|
6687
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6705
6688
|
|
|
6706
6689
|
|
|
6707
6690
|
|
|
@@ -6749,17 +6732,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6749
6732
|
|
|
6750
6733
|
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
6734
|
|
|
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); }
|
|
6735
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6757
6736
|
|
|
6758
|
-
function
|
|
6737
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6759
6738
|
|
|
6760
|
-
function
|
|
6739
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6761
6740
|
|
|
6762
|
-
function
|
|
6741
|
+
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
6742
|
|
|
6764
6743
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6765
6744
|
|
|
@@ -6767,16 +6746,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6767
6746
|
|
|
6768
6747
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6769
6748
|
|
|
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
6749
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6773
6750
|
|
|
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
6751
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
6752
|
|
|
6753
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6754
|
+
|
|
6780
6755
|
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
6756
|
|
|
6782
6757
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6786,12 +6761,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6786
6761
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6787
6762
|
var customPlayers = [];
|
|
6788
6763
|
|
|
6789
|
-
var ReactPlayer =
|
|
6764
|
+
var ReactPlayer =
|
|
6765
|
+
/*#__PURE__*/
|
|
6766
|
+
function (_Component) {
|
|
6790
6767
|
_inherits(ReactPlayer, _Component);
|
|
6791
6768
|
|
|
6792
|
-
var _super = _createSuper(ReactPlayer);
|
|
6793
|
-
|
|
6794
6769
|
function ReactPlayer() {
|
|
6770
|
+
var _getPrototypeOf2;
|
|
6771
|
+
|
|
6795
6772
|
var _this;
|
|
6796
6773
|
|
|
6797
6774
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6800,7 +6777,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6800
6777
|
args[_key] = arguments[_key];
|
|
6801
6778
|
}
|
|
6802
6779
|
|
|
6803
|
-
_this =
|
|
6780
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6804
6781
|
|
|
6805
6782
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6806
6783
|
|
|
@@ -6911,7 +6888,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6911
6888
|
key: "renderActivePlayer",
|
|
6912
6889
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6913
6890
|
if (!url) return null;
|
|
6914
|
-
return
|
|
6891
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6915
6892
|
key: activePlayer.displayName,
|
|
6916
6893
|
ref: this.activePlayerRef,
|
|
6917
6894
|
config: this.config,
|
|
@@ -6948,14 +6925,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6948
6925
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6949
6926
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6950
6927
|
|
|
6951
|
-
var preview =
|
|
6928
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6952
6929
|
url: url,
|
|
6953
6930
|
light: light,
|
|
6954
6931
|
playIcon: playIcon,
|
|
6955
6932
|
onClick: this.handleClickPreview
|
|
6956
6933
|
});
|
|
6957
6934
|
|
|
6958
|
-
return
|
|
6935
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6959
6936
|
ref: this.wrapperRef,
|
|
6960
6937
|
style: _objectSpread({}, style, {
|
|
6961
6938
|
width: width,
|
|
@@ -7015,20 +6992,20 @@ var Audio = function Audio(_ref) {
|
|
|
7015
6992
|
var node = _ref.node;
|
|
7016
6993
|
|
|
7017
6994
|
if (node.uploadAudio) {
|
|
7018
|
-
return React__default
|
|
6995
|
+
return React__default.createElement(
|
|
7019
6996
|
'div',
|
|
7020
6997
|
{ className: 'audio d-block text-center mb-3' },
|
|
7021
|
-
React__default
|
|
6998
|
+
React__default.createElement(
|
|
7022
6999
|
'audio',
|
|
7023
7000
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7024
|
-
React__default
|
|
7025
|
-
React__default
|
|
7001
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7002
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7026
7003
|
'Your browser does not support the audio element.'
|
|
7027
7004
|
),
|
|
7028
|
-
node.caption && React__default
|
|
7005
|
+
node.caption && React__default.createElement(
|
|
7029
7006
|
'p',
|
|
7030
7007
|
{ style: { fontSize: '.9rem' } },
|
|
7031
|
-
React__default
|
|
7008
|
+
React__default.createElement(
|
|
7032
7009
|
'em',
|
|
7033
7010
|
null,
|
|
7034
7011
|
node.caption
|
|
@@ -7038,15 +7015,15 @@ var Audio = function Audio(_ref) {
|
|
|
7038
7015
|
} else if (node.audioFilePth) {
|
|
7039
7016
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7040
7017
|
if (hostname === 'embeds.audioboom.com') {
|
|
7041
|
-
return React__default
|
|
7018
|
+
return React__default.createElement(
|
|
7042
7019
|
'div',
|
|
7043
7020
|
null,
|
|
7044
|
-
React__default
|
|
7021
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7045
7022
|
' ',
|
|
7046
|
-
node.caption && React__default
|
|
7023
|
+
node.caption && React__default.createElement(
|
|
7047
7024
|
'p',
|
|
7048
7025
|
{ style: { fontSize: '.9rem' } },
|
|
7049
|
-
React__default
|
|
7026
|
+
React__default.createElement(
|
|
7050
7027
|
'em',
|
|
7051
7028
|
null,
|
|
7052
7029
|
node.caption
|
|
@@ -7054,14 +7031,14 @@ var Audio = function Audio(_ref) {
|
|
|
7054
7031
|
)
|
|
7055
7032
|
);
|
|
7056
7033
|
}
|
|
7057
|
-
return React__default
|
|
7034
|
+
return React__default.createElement(
|
|
7058
7035
|
'div',
|
|
7059
7036
|
{ className: 'audio' },
|
|
7060
|
-
React__default
|
|
7061
|
-
node.caption && React__default
|
|
7037
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7038
|
+
node.caption && React__default.createElement(
|
|
7062
7039
|
'p',
|
|
7063
7040
|
{ style: { fontSize: '.9rem' } },
|
|
7064
|
-
React__default
|
|
7041
|
+
React__default.createElement(
|
|
7065
7042
|
'em',
|
|
7066
7043
|
null,
|
|
7067
7044
|
node.caption
|
|
@@ -7079,34 +7056,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7079
7056
|
var profileImage = arguments[6];
|
|
7080
7057
|
|
|
7081
7058
|
if (authorName && authorURL) {
|
|
7082
|
-
return React__default
|
|
7059
|
+
return React__default.createElement(
|
|
7083
7060
|
'span',
|
|
7084
7061
|
null,
|
|
7085
|
-
React__default
|
|
7062
|
+
React__default.createElement(
|
|
7086
7063
|
'a',
|
|
7087
7064
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7088
7065
|
authorName
|
|
7089
7066
|
),
|
|
7090
|
-
React__default
|
|
7067
|
+
React__default.createElement(
|
|
7091
7068
|
reactBootstrap.Card,
|
|
7092
7069
|
{ className: 'author-details-card-' + index },
|
|
7093
|
-
React__default
|
|
7070
|
+
React__default.createElement(
|
|
7094
7071
|
reactBootstrap.Row,
|
|
7095
7072
|
null,
|
|
7096
|
-
profileImage && React__default
|
|
7073
|
+
profileImage && React__default.createElement(
|
|
7097
7074
|
reactBootstrap.Col,
|
|
7098
7075
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7099
|
-
React__default
|
|
7076
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7100
7077
|
),
|
|
7101
|
-
React__default
|
|
7078
|
+
React__default.createElement(
|
|
7102
7079
|
reactBootstrap.Col,
|
|
7103
7080
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7104
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7105
7082
|
'div',
|
|
7106
7083
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7107
7084
|
authorName
|
|
7108
7085
|
),
|
|
7109
|
-
React__default
|
|
7086
|
+
React__default.createElement(
|
|
7110
7087
|
'p',
|
|
7111
7088
|
null,
|
|
7112
7089
|
biography
|
|
@@ -7114,7 +7091,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7114
7091
|
)
|
|
7115
7092
|
)
|
|
7116
7093
|
),
|
|
7117
|
-
React__default
|
|
7094
|
+
React__default.createElement(
|
|
7118
7095
|
'style',
|
|
7119
7096
|
{ jsx: 'true' },
|
|
7120
7097
|
'\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 +7099,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7122
7099
|
length !== index + 1 && ' , '
|
|
7123
7100
|
);
|
|
7124
7101
|
} else if (authorName) {
|
|
7125
|
-
return React__default
|
|
7102
|
+
return React__default.createElement(
|
|
7126
7103
|
'span',
|
|
7127
7104
|
{ key: index },
|
|
7128
7105
|
authorName,
|
|
@@ -7224,7 +7201,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7224
7201
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7225
7202
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7226
7203
|
} else {
|
|
7227
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7204
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7228
7205
|
}
|
|
7229
7206
|
}
|
|
7230
7207
|
});
|
|
@@ -7284,7 +7261,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7261
|
//Small pause before starting next video
|
|
7285
7262
|
setTimeout(function () {
|
|
7286
7263
|
//Youtube API to start video playing automatically
|
|
7287
|
-
var id = index$
|
|
7264
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7288
7265
|
event.target.loadVideoById(id);
|
|
7289
7266
|
}, 1500);
|
|
7290
7267
|
};
|
|
@@ -7394,44 +7371,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7394
7371
|
}
|
|
7395
7372
|
};
|
|
7396
7373
|
|
|
7397
|
-
return React__default
|
|
7374
|
+
return React__default.createElement(
|
|
7398
7375
|
'div',
|
|
7399
7376
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7400
|
-
React__default
|
|
7377
|
+
React__default.createElement(
|
|
7401
7378
|
'div',
|
|
7402
7379
|
{ className: 'mt-2 mb-5' },
|
|
7403
|
-
series && React__default
|
|
7380
|
+
series && React__default.createElement(
|
|
7404
7381
|
'div',
|
|
7405
7382
|
{ style: { fontSize: '0.9rem' } },
|
|
7406
7383
|
article.title,
|
|
7407
7384
|
' - Episode ',
|
|
7408
7385
|
series
|
|
7409
7386
|
),
|
|
7410
|
-
Videos[series - 1] && React__default
|
|
7387
|
+
Videos[series - 1] && React__default.createElement(
|
|
7411
7388
|
'h1',
|
|
7412
7389
|
{ className: 'mb-3' },
|
|
7413
7390
|
Videos[series - 1].title
|
|
7414
7391
|
),
|
|
7415
|
-
React__default
|
|
7392
|
+
React__default.createElement(
|
|
7416
7393
|
'div',
|
|
7417
7394
|
null,
|
|
7418
7395
|
moment.moment(article.published).format('LL')
|
|
7419
7396
|
),
|
|
7420
|
-
React__default
|
|
7397
|
+
React__default.createElement(
|
|
7421
7398
|
'div',
|
|
7422
7399
|
{ className: 'mb-3' },
|
|
7423
7400
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7424
|
-
return React__default
|
|
7401
|
+
return React__default.createElement(
|
|
7425
7402
|
'span',
|
|
7426
7403
|
{ key: index },
|
|
7427
7404
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7428
7405
|
);
|
|
7429
7406
|
})
|
|
7430
7407
|
),
|
|
7431
|
-
React__default
|
|
7408
|
+
React__default.createElement(
|
|
7432
7409
|
'p',
|
|
7433
7410
|
null,
|
|
7434
|
-
React__default
|
|
7411
|
+
React__default.createElement(SocialShare, {
|
|
7435
7412
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7436
7413
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7437
7414
|
shareVia: meta.shareVia,
|
|
@@ -7446,22 +7423,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7446
7423
|
hideFacebook: meta.hideFBShare
|
|
7447
7424
|
})
|
|
7448
7425
|
),
|
|
7449
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7426
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7450
7427
|
'p',
|
|
7451
7428
|
{ className: 'mb-3' },
|
|
7452
|
-
React__default
|
|
7429
|
+
React__default.createElement(
|
|
7453
7430
|
'em',
|
|
7454
7431
|
null,
|
|
7455
7432
|
Videos[series - 1].intro
|
|
7456
7433
|
)
|
|
7457
7434
|
)
|
|
7458
7435
|
),
|
|
7459
|
-
React__default
|
|
7436
|
+
React__default.createElement(
|
|
7460
7437
|
'div',
|
|
7461
7438
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7462
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7439
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7463
7440
|
className: 'fluid-iframe',
|
|
7464
|
-
videoId: index$
|
|
7441
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7465
7442
|
opts: opts,
|
|
7466
7443
|
onReady: handleOnReady,
|
|
7467
7444
|
onPlay: handleOnPlay,
|
|
@@ -7470,10 +7447,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7447
|
return handleOnEnd(e);
|
|
7471
7448
|
}
|
|
7472
7449
|
}),
|
|
7473
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7474
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7475
|
-
React__default
|
|
7476
|
-
series && React__default
|
|
7450
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7451
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7452
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7453
|
+
series && React__default.createElement(
|
|
7477
7454
|
'div',
|
|
7478
7455
|
{
|
|
7479
7456
|
className: 'vid-series',
|
|
@@ -7483,10 +7460,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7483
7460
|
maxHeight: '100%',
|
|
7484
7461
|
paddingBottom: '0'
|
|
7485
7462
|
} },
|
|
7486
|
-
React__default
|
|
7463
|
+
React__default.createElement(
|
|
7487
7464
|
'p',
|
|
7488
7465
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7489
|
-
React__default
|
|
7466
|
+
React__default.createElement(
|
|
7490
7467
|
'b',
|
|
7491
7468
|
{ style: { fontSize: '1.25em' } },
|
|
7492
7469
|
'Now Playing:'
|
|
@@ -7494,16 +7471,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7494
7471
|
' ',
|
|
7495
7472
|
seriesData[series ? series - 1 : 0].title
|
|
7496
7473
|
),
|
|
7497
|
-
vidUrl && React__default
|
|
7474
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7498
7475
|
)
|
|
7499
7476
|
),
|
|
7500
|
-
React__default
|
|
7501
|
-
React__default
|
|
7477
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7478
|
+
React__default.createElement(
|
|
7502
7479
|
'div',
|
|
7503
7480
|
{ className: 'vid-text' },
|
|
7504
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7481
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7505
7482
|
),
|
|
7506
|
-
React__default
|
|
7483
|
+
React__default.createElement(
|
|
7507
7484
|
'style',
|
|
7508
7485
|
{ jsx: 'true' },
|
|
7509
7486
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7556,67 +7533,67 @@ var Poll = function Poll(_ref) {
|
|
|
7556
7533
|
return acc;
|
|
7557
7534
|
}
|
|
7558
7535
|
}, 0);
|
|
7559
|
-
return React__default
|
|
7560
|
-
React__default
|
|
7536
|
+
return React__default.createElement(
|
|
7537
|
+
React__default.Fragment,
|
|
7561
7538
|
null,
|
|
7562
|
-
question && React__default
|
|
7539
|
+
question && React__default.createElement(
|
|
7563
7540
|
'p',
|
|
7564
7541
|
{ className: 'font-weight-bold' },
|
|
7565
7542
|
question
|
|
7566
7543
|
),
|
|
7567
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7544
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7568
7545
|
'form',
|
|
7569
7546
|
{ onSubmit: function onSubmit(e) {
|
|
7570
7547
|
return onSubmitPoll(e);
|
|
7571
7548
|
} },
|
|
7572
7549
|
choices && choices.map(function (choice) {
|
|
7573
|
-
return React__default
|
|
7550
|
+
return React__default.createElement(
|
|
7574
7551
|
'div',
|
|
7575
7552
|
{ key: choice._key },
|
|
7576
|
-
React__default
|
|
7553
|
+
React__default.createElement(
|
|
7577
7554
|
'label',
|
|
7578
7555
|
{ className: 'pl-2' },
|
|
7579
|
-
React__default
|
|
7556
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7580
7557
|
return setSelectedChoice(e.target.value);
|
|
7581
7558
|
} }),
|
|
7582
7559
|
' ' + choice.choiceText
|
|
7583
7560
|
)
|
|
7584
7561
|
);
|
|
7585
7562
|
}),
|
|
7586
|
-
React__default
|
|
7563
|
+
React__default.createElement(
|
|
7587
7564
|
reactBootstrap.Button,
|
|
7588
7565
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7589
7566
|
'Vote'
|
|
7590
7567
|
)
|
|
7591
7568
|
),
|
|
7592
|
-
React__default
|
|
7569
|
+
React__default.createElement(
|
|
7593
7570
|
'div',
|
|
7594
7571
|
{ className: 'progress-container' },
|
|
7595
7572
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7596
7573
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7597
|
-
return React__default
|
|
7574
|
+
return React__default.createElement(
|
|
7598
7575
|
'div',
|
|
7599
7576
|
{ key: choice._key, className: 'mb-3' },
|
|
7600
|
-
React__default
|
|
7577
|
+
React__default.createElement(
|
|
7601
7578
|
'div',
|
|
7602
7579
|
{ className: 'correct-answer' },
|
|
7603
|
-
React__default
|
|
7580
|
+
React__default.createElement(
|
|
7604
7581
|
'div',
|
|
7605
7582
|
null,
|
|
7606
7583
|
choice.choiceText
|
|
7607
7584
|
),
|
|
7608
|
-
choice.choiceAnswer === true && React__default
|
|
7585
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7609
7586
|
'div',
|
|
7610
7587
|
null,
|
|
7611
|
-
React__default
|
|
7588
|
+
React__default.createElement(
|
|
7612
7589
|
'span',
|
|
7613
7590
|
{ style: { color: 'limegreen' } },
|
|
7614
7591
|
'Correct!'
|
|
7615
7592
|
)
|
|
7616
7593
|
)
|
|
7617
7594
|
),
|
|
7618
|
-
React__default
|
|
7619
|
-
React__default
|
|
7595
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7596
|
+
React__default.createElement(
|
|
7620
7597
|
'span',
|
|
7621
7598
|
{ className: 'float-right' },
|
|
7622
7599
|
percentage,
|
|
@@ -7627,14 +7604,14 @@ var Poll = function Poll(_ref) {
|
|
|
7627
7604
|
);
|
|
7628
7605
|
})
|
|
7629
7606
|
),
|
|
7630
|
-
showAnswer && React__default
|
|
7607
|
+
showAnswer && React__default.createElement(
|
|
7631
7608
|
'h4',
|
|
7632
7609
|
{ className: 'text-center small p-3' },
|
|
7633
7610
|
'Total Votes: ',
|
|
7634
7611
|
choicesTotalCount
|
|
7635
7612
|
),
|
|
7636
|
-
showAnswer && response && React__default
|
|
7637
|
-
React__default
|
|
7613
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7614
|
+
React__default.createElement(
|
|
7638
7615
|
'style',
|
|
7639
7616
|
{ jsx: 'true' },
|
|
7640
7617
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7733,67 +7710,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7733
7710
|
return acc;
|
|
7734
7711
|
}
|
|
7735
7712
|
}, 0);
|
|
7736
|
-
return React__default
|
|
7737
|
-
React__default
|
|
7713
|
+
return React__default.createElement(
|
|
7714
|
+
React__default.Fragment,
|
|
7738
7715
|
null,
|
|
7739
|
-
question && React__default
|
|
7716
|
+
question && React__default.createElement(
|
|
7740
7717
|
'p',
|
|
7741
7718
|
{ className: 'font-weight-bold' },
|
|
7742
7719
|
question
|
|
7743
7720
|
),
|
|
7744
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7721
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7745
7722
|
'form',
|
|
7746
7723
|
{ onSubmit: function onSubmit(e) {
|
|
7747
7724
|
return onSubmitPoll(e);
|
|
7748
7725
|
} },
|
|
7749
7726
|
choices && choices.map(function (choice) {
|
|
7750
|
-
return React__default
|
|
7727
|
+
return React__default.createElement(
|
|
7751
7728
|
'div',
|
|
7752
7729
|
{ key: choice._key },
|
|
7753
|
-
React__default
|
|
7730
|
+
React__default.createElement(
|
|
7754
7731
|
'label',
|
|
7755
7732
|
{ className: 'pl-2' },
|
|
7756
|
-
React__default
|
|
7733
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7757
7734
|
return setSelectedChoice(e.target.value);
|
|
7758
7735
|
} }),
|
|
7759
7736
|
' ' + choice.choiceText
|
|
7760
7737
|
)
|
|
7761
7738
|
);
|
|
7762
7739
|
}),
|
|
7763
|
-
React__default
|
|
7740
|
+
React__default.createElement(
|
|
7764
7741
|
reactBootstrap.Button,
|
|
7765
7742
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7766
7743
|
'Vote'
|
|
7767
7744
|
)
|
|
7768
7745
|
),
|
|
7769
|
-
React__default
|
|
7746
|
+
React__default.createElement(
|
|
7770
7747
|
'div',
|
|
7771
7748
|
{ className: 'progress-container' },
|
|
7772
7749
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7773
7750
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7774
|
-
return React__default
|
|
7751
|
+
return React__default.createElement(
|
|
7775
7752
|
'div',
|
|
7776
7753
|
{ key: choice._key, className: 'mb-3' },
|
|
7777
|
-
React__default
|
|
7754
|
+
React__default.createElement(
|
|
7778
7755
|
'div',
|
|
7779
7756
|
{ className: 'correct-answer' },
|
|
7780
|
-
React__default
|
|
7757
|
+
React__default.createElement(
|
|
7781
7758
|
'div',
|
|
7782
7759
|
null,
|
|
7783
7760
|
choice.choiceText
|
|
7784
7761
|
),
|
|
7785
|
-
choice.choiceAnswer === true && React__default
|
|
7762
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7786
7763
|
'div',
|
|
7787
7764
|
null,
|
|
7788
|
-
React__default
|
|
7765
|
+
React__default.createElement(
|
|
7789
7766
|
'span',
|
|
7790
7767
|
{ style: { color: 'limegreen' } },
|
|
7791
7768
|
'Correct!'
|
|
7792
7769
|
)
|
|
7793
7770
|
)
|
|
7794
7771
|
),
|
|
7795
|
-
React__default
|
|
7796
|
-
React__default
|
|
7772
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7773
|
+
React__default.createElement(
|
|
7797
7774
|
'span',
|
|
7798
7775
|
{ className: 'float-right' },
|
|
7799
7776
|
percentage,
|
|
@@ -7804,14 +7781,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7804
7781
|
);
|
|
7805
7782
|
})
|
|
7806
7783
|
),
|
|
7807
|
-
showAnswer && React__default
|
|
7784
|
+
showAnswer && React__default.createElement(
|
|
7808
7785
|
'h4',
|
|
7809
7786
|
{ className: 'text-center small p-3' },
|
|
7810
7787
|
'Total Votes: ',
|
|
7811
7788
|
choicesTotalCount
|
|
7812
7789
|
),
|
|
7813
|
-
showAnswer && response && React__default
|
|
7814
|
-
React__default
|
|
7790
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7791
|
+
React__default.createElement(
|
|
7815
7792
|
'style',
|
|
7816
7793
|
{ jsx: 'true' },
|
|
7817
7794
|
'\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 +7796,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7819
7796
|
);
|
|
7820
7797
|
};
|
|
7821
7798
|
|
|
7822
|
-
var numberOfPaginations = main.
|
|
7799
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7823
7800
|
|
|
7824
7801
|
var Quiz = function Quiz(_ref) {
|
|
7825
7802
|
var quizzes = _ref.quizzes,
|
|
@@ -7937,34 +7914,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7937
7914
|
};
|
|
7938
7915
|
|
|
7939
7916
|
var renderPagination = function renderPagination() {
|
|
7940
|
-
return React__default
|
|
7941
|
-
|
|
7942
|
-
{ className: 'p-0 m-0', size: main.
|
|
7943
|
-
React__default
|
|
7917
|
+
return React__default.createElement(
|
|
7918
|
+
Pagination,
|
|
7919
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7920
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7944
7921
|
return changePage('first');
|
|
7945
7922
|
}, disabled: currentPage === 1 }),
|
|
7946
|
-
React__default
|
|
7923
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7947
7924
|
return changePage('prev');
|
|
7948
7925
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
React__default
|
|
7926
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7950
7927
|
return renderNewPages('prev');
|
|
7951
7928
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7952
7929
|
pages.map(function (page) {
|
|
7953
|
-
return React__default
|
|
7954
|
-
|
|
7930
|
+
return React__default.createElement(
|
|
7931
|
+
Pagination.Item,
|
|
7955
7932
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7956
7933
|
return changePage(page);
|
|
7957
7934
|
} },
|
|
7958
7935
|
page
|
|
7959
7936
|
);
|
|
7960
7937
|
}),
|
|
7961
|
-
React__default
|
|
7938
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7962
7939
|
return renderNewPages('next');
|
|
7963
7940
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7964
|
-
React__default
|
|
7941
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7965
7942
|
return changePage('next');
|
|
7966
7943
|
}, disabled: currentPage === pageCount }),
|
|
7967
|
-
React__default
|
|
7944
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7968
7945
|
return changePage('last');
|
|
7969
7946
|
}, disabled: currentPage === pageCount })
|
|
7970
7947
|
);
|
|
@@ -8047,51 +8024,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8047
8024
|
}
|
|
8048
8025
|
};
|
|
8049
8026
|
|
|
8050
|
-
return React__default
|
|
8051
|
-
React__default
|
|
8027
|
+
return React__default.createElement(
|
|
8028
|
+
React__default.Fragment,
|
|
8052
8029
|
null,
|
|
8053
|
-
quizzes[currentPage - 1] && React__default
|
|
8054
|
-
React__default
|
|
8030
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8031
|
+
React__default.Fragment,
|
|
8055
8032
|
null,
|
|
8056
|
-
React__default
|
|
8057
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8033
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8034
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8058
8035
|
'form',
|
|
8059
8036
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8060
8037
|
return e.preventDefault();
|
|
8061
8038
|
} },
|
|
8062
8039
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8063
|
-
return React__default
|
|
8040
|
+
return React__default.createElement(
|
|
8064
8041
|
'div',
|
|
8065
8042
|
{ key: answer._key },
|
|
8066
|
-
React__default
|
|
8043
|
+
React__default.createElement(
|
|
8067
8044
|
'label',
|
|
8068
8045
|
{ className: 'pl-2' },
|
|
8069
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8046
|
+
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
8047
|
' ' + answer.answerText
|
|
8071
8048
|
)
|
|
8072
8049
|
);
|
|
8073
8050
|
})
|
|
8074
8051
|
)
|
|
8075
8052
|
),
|
|
8076
|
-
!showAnswer && React__default
|
|
8077
|
-
|
|
8053
|
+
!showAnswer && React__default.createElement(
|
|
8054
|
+
Button,
|
|
8078
8055
|
{ onClick: function onClick() {
|
|
8079
8056
|
return checkAnswers();
|
|
8080
8057
|
}, variant: 'info', block: true },
|
|
8081
8058
|
'Please click here for answer'
|
|
8082
8059
|
),
|
|
8083
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8084
|
-
React__default
|
|
8060
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8061
|
+
React__default.Fragment,
|
|
8085
8062
|
null,
|
|
8086
|
-
React__default
|
|
8063
|
+
React__default.createElement(
|
|
8087
8064
|
'h4',
|
|
8088
8065
|
null,
|
|
8089
8066
|
'Answer:'
|
|
8090
8067
|
),
|
|
8091
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8068
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8092
8069
|
),
|
|
8093
|
-
React__default
|
|
8094
|
-
pageCount > 1 && React__default
|
|
8070
|
+
React__default.createElement('br', null),
|
|
8071
|
+
pageCount > 1 && React__default.createElement(
|
|
8095
8072
|
'div',
|
|
8096
8073
|
{ className: 'd-flex justify-content-center' },
|
|
8097
8074
|
renderPagination()
|
|
@@ -8102,10 +8079,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8102
8079
|
var Leads = function Leads(_ref) {
|
|
8103
8080
|
var url = _ref.url;
|
|
8104
8081
|
|
|
8105
|
-
return React__default
|
|
8082
|
+
return React__default.createElement(
|
|
8106
8083
|
'div',
|
|
8107
8084
|
{ className: 'd-block text-center mb-3' },
|
|
8108
|
-
url && React__default
|
|
8085
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8109
8086
|
);
|
|
8110
8087
|
};
|
|
8111
8088
|
|
|
@@ -8148,42 +8125,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8148
8125
|
}
|
|
8149
8126
|
};
|
|
8150
8127
|
|
|
8151
|
-
return React__default
|
|
8128
|
+
return React__default.createElement(
|
|
8152
8129
|
'div',
|
|
8153
8130
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8154
|
-
React__default
|
|
8131
|
+
React__default.createElement(
|
|
8155
8132
|
reactBootstrap.Carousel,
|
|
8156
8133
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8157
8134
|
slides && slides.map(function (slide) {
|
|
8158
8135
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8159
|
-
return React__default
|
|
8136
|
+
return React__default.createElement(
|
|
8160
8137
|
reactBootstrap.Carousel.Item,
|
|
8161
8138
|
{ key: slide._key },
|
|
8162
|
-
React__default
|
|
8139
|
+
React__default.createElement(
|
|
8163
8140
|
'a',
|
|
8164
8141
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8165
|
-
React__default
|
|
8142
|
+
React__default.createElement(
|
|
8166
8143
|
index$2.LazyLoad,
|
|
8167
8144
|
null,
|
|
8168
|
-
React__default
|
|
8145
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8169
8146
|
)
|
|
8170
8147
|
),
|
|
8171
|
-
React__default
|
|
8148
|
+
React__default.createElement(
|
|
8172
8149
|
'div',
|
|
8173
8150
|
{ className: 'p-2' },
|
|
8174
|
-
slide.slideshowImage.caption && React__default
|
|
8151
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8175
8152
|
'h3',
|
|
8176
8153
|
{ style: { padding: '0px' } },
|
|
8177
8154
|
slide.slideshowImage.caption
|
|
8178
8155
|
),
|
|
8179
|
-
slide.description && React__default
|
|
8156
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8180
8157
|
)
|
|
8181
8158
|
);
|
|
8182
8159
|
}
|
|
8183
8160
|
return null;
|
|
8184
8161
|
})
|
|
8185
8162
|
),
|
|
8186
|
-
React__default
|
|
8163
|
+
React__default.createElement(
|
|
8187
8164
|
'style',
|
|
8188
8165
|
{ jsx: 'true' },
|
|
8189
8166
|
'\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 '
|
|
@@ -8202,10 +8179,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8202
8179
|
sizes = _props$node.sizes,
|
|
8203
8180
|
sizeMapping = _props$node.sizeMapping;
|
|
8204
8181
|
|
|
8205
|
-
return React__default
|
|
8182
|
+
return React__default.createElement(
|
|
8206
8183
|
'div',
|
|
8207
8184
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8208
|
-
React__default
|
|
8185
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8209
8186
|
);
|
|
8210
8187
|
};
|
|
8211
8188
|
|
|
@@ -8216,15 +8193,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8216
8193
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8217
8194
|
|
|
8218
8195
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8219
|
-
return React__default
|
|
8196
|
+
return React__default.createElement(
|
|
8220
8197
|
'section',
|
|
8221
8198
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8222
|
-
Caption && React__default
|
|
8199
|
+
Caption && React__default.createElement(
|
|
8223
8200
|
'h4',
|
|
8224
8201
|
{ className: 'formstack-caption' },
|
|
8225
8202
|
Caption
|
|
8226
8203
|
),
|
|
8227
|
-
React__default
|
|
8204
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8228
8205
|
);
|
|
8229
8206
|
};
|
|
8230
8207
|
|
|
@@ -8240,29 +8217,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8240
8217
|
}
|
|
8241
8218
|
});
|
|
8242
8219
|
if (medias && medias.length > 0) {
|
|
8243
|
-
return React__default
|
|
8220
|
+
return React__default.createElement(
|
|
8244
8221
|
'div',
|
|
8245
8222
|
{ className: 'multi-media-container' },
|
|
8246
|
-
React__default
|
|
8247
|
-
|
|
8223
|
+
React__default.createElement(
|
|
8224
|
+
Row,
|
|
8248
8225
|
{ noGutters: true },
|
|
8249
8226
|
medias.map(function (media) {
|
|
8250
|
-
return React__default
|
|
8251
|
-
|
|
8227
|
+
return React__default.createElement(
|
|
8228
|
+
Col,
|
|
8252
8229
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8253
|
-
React__default
|
|
8230
|
+
React__default.createElement(
|
|
8254
8231
|
'a',
|
|
8255
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8232
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8256
8233
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8257
|
-
React__default
|
|
8234
|
+
React__default.createElement(
|
|
8258
8235
|
'div',
|
|
8259
8236
|
{ className: 'multi-media-image-container' },
|
|
8260
|
-
imageBox && React__default
|
|
8237
|
+
imageBox && React__default.createElement(
|
|
8261
8238
|
index$2.LazyLoad,
|
|
8262
8239
|
{ once: true },
|
|
8263
|
-
React__default
|
|
8240
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8264
8241
|
),
|
|
8265
|
-
media.caption && React__default
|
|
8242
|
+
media.caption && React__default.createElement(
|
|
8266
8243
|
'span',
|
|
8267
8244
|
{ className: 'multi-media-caption' },
|
|
8268
8245
|
media.caption
|
|
@@ -8272,7 +8249,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8272
8249
|
);
|
|
8273
8250
|
})
|
|
8274
8251
|
),
|
|
8275
|
-
React__default
|
|
8252
|
+
React__default.createElement(
|
|
8276
8253
|
'style',
|
|
8277
8254
|
{ jsx: 'true' },
|
|
8278
8255
|
'\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 '
|
|
@@ -8283,12 +8260,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8283
8260
|
};
|
|
8284
8261
|
|
|
8285
8262
|
var InscreenSensor = function (_React$Component) {
|
|
8286
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8263
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8287
8264
|
|
|
8288
8265
|
function InscreenSensor(props) {
|
|
8289
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8266
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8290
8267
|
|
|
8291
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8268
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8292
8269
|
|
|
8293
8270
|
_this.scrollHandler = function () {
|
|
8294
8271
|
var visible = _this.checkInside();
|
|
@@ -8319,12 +8296,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8319
8296
|
}
|
|
8320
8297
|
};
|
|
8321
8298
|
|
|
8322
|
-
_this.wraperRef = React__default
|
|
8299
|
+
_this.wraperRef = React__default.createRef();
|
|
8323
8300
|
_this.visible = false;
|
|
8324
8301
|
return _this;
|
|
8325
8302
|
}
|
|
8326
8303
|
|
|
8327
|
-
inherits._createClass(InscreenSensor, [{
|
|
8304
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8328
8305
|
key: 'componentDidMount',
|
|
8329
8306
|
value: function componentDidMount() {
|
|
8330
8307
|
this.visible = this.checkInside();
|
|
@@ -8347,7 +8324,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8347
8324
|
_props$id = _props.id,
|
|
8348
8325
|
id = _props$id === undefined ? '' : _props$id;
|
|
8349
8326
|
|
|
8350
|
-
return React__default
|
|
8327
|
+
return React__default.createElement(
|
|
8351
8328
|
'div',
|
|
8352
8329
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8353
8330
|
this.props.children
|
|
@@ -8356,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8356
8333
|
}]);
|
|
8357
8334
|
|
|
8358
8335
|
return InscreenSensor;
|
|
8359
|
-
}(React__default
|
|
8336
|
+
}(React__default.Component);
|
|
8360
8337
|
|
|
8361
8338
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8362
8339
|
var nodes = _ref.nodes,
|
|
@@ -8465,33 +8442,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8465
8442
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8466
8443
|
var showReading = show ? 'showReading' : '';
|
|
8467
8444
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8468
|
-
return React__default
|
|
8445
|
+
return React__default.createElement(
|
|
8469
8446
|
'div',
|
|
8470
8447
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8471
|
-
React__default
|
|
8448
|
+
React__default.createElement(
|
|
8472
8449
|
'a',
|
|
8473
8450
|
{ onClick: function onClick(e) {
|
|
8474
8451
|
return articleCardClickHandler(e);
|
|
8475
8452
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8476
|
-
React__default
|
|
8453
|
+
React__default.createElement(
|
|
8477
8454
|
'div',
|
|
8478
8455
|
{ className: 'prevNext-thumbnail' },
|
|
8479
|
-
React__default
|
|
8480
|
-
React__default
|
|
8456
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8457
|
+
React__default.createElement(
|
|
8481
8458
|
'div',
|
|
8482
8459
|
{ className: 'prevNext-reading ' + showReading },
|
|
8483
8460
|
articleLabel
|
|
8484
8461
|
)
|
|
8485
8462
|
),
|
|
8486
|
-
React__default
|
|
8463
|
+
React__default.createElement(
|
|
8487
8464
|
'div',
|
|
8488
8465
|
{ className: 'prevNext-summary' },
|
|
8489
|
-
React__default
|
|
8466
|
+
React__default.createElement(
|
|
8490
8467
|
'div',
|
|
8491
8468
|
{ className: 'prevNext-publishDate' },
|
|
8492
8469
|
moment.moment(article.published).format('LL')
|
|
8493
8470
|
),
|
|
8494
|
-
React__default
|
|
8471
|
+
React__default.createElement(
|
|
8495
8472
|
'h2',
|
|
8496
8473
|
{ className: 'prevNext-title' },
|
|
8497
8474
|
article.title
|
|
@@ -8540,7 +8517,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8540
8517
|
|
|
8541
8518
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8542
8519
|
if (biography) {
|
|
8543
|
-
return React__default
|
|
8520
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8544
8521
|
}
|
|
8545
8522
|
};
|
|
8546
8523
|
|
|
@@ -8626,7 +8603,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8626
8603
|
//console.log('useLayoutEffect')
|
|
8627
8604
|
if (!firstLoad) {
|
|
8628
8605
|
setUpArrowClicked(false);
|
|
8629
|
-
if (main.
|
|
8606
|
+
if (main.main_36) {
|
|
8630
8607
|
grabLoadedAds();
|
|
8631
8608
|
} else {
|
|
8632
8609
|
scrollToArticle();
|
|
@@ -8650,7 +8627,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8650
8627
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8651
8628
|
if (pageview) pageview(path);
|
|
8652
8629
|
|
|
8653
|
-
if (!main.
|
|
8630
|
+
if (!main.main_36) {
|
|
8654
8631
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8655
8632
|
if (window.googletag && googletag.pubadsReady) {
|
|
8656
8633
|
index.lib_3.refresh();
|
|
@@ -8658,7 +8635,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8658
8635
|
});
|
|
8659
8636
|
}
|
|
8660
8637
|
//Refresh leaderboard ad on mobile
|
|
8661
|
-
if (main.
|
|
8638
|
+
if (main.main_36) {
|
|
8662
8639
|
var leaderboardSlotId = '';
|
|
8663
8640
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8664
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8698,38 +8675,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8698
8675
|
setSensorVisible(false);
|
|
8699
8676
|
};
|
|
8700
8677
|
|
|
8701
|
-
return React__default
|
|
8702
|
-
React__default
|
|
8678
|
+
return React__default.createElement(
|
|
8679
|
+
React__default.Fragment,
|
|
8703
8680
|
null,
|
|
8704
|
-
React__default
|
|
8681
|
+
React__default.createElement(
|
|
8705
8682
|
'div',
|
|
8706
8683
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8707
|
-
React__default
|
|
8684
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8708
8685
|
return handleArrowClick();
|
|
8709
8686
|
} })
|
|
8710
8687
|
),
|
|
8711
|
-
React__default
|
|
8712
|
-
React__default
|
|
8688
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8689
|
+
React__default.createElement(
|
|
8713
8690
|
'div',
|
|
8714
8691
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8715
|
-
React__default
|
|
8692
|
+
React__default.createElement(
|
|
8716
8693
|
'h5',
|
|
8717
8694
|
{ className: 'objective-title' },
|
|
8718
8695
|
nodes.seriesTitle
|
|
8719
8696
|
),
|
|
8720
|
-
React__default
|
|
8697
|
+
React__default.createElement(
|
|
8721
8698
|
'div',
|
|
8722
8699
|
{ className: 'prevNextWrapper' },
|
|
8723
8700
|
PrevNextCards(false, -1)
|
|
8724
8701
|
)
|
|
8725
8702
|
),
|
|
8726
|
-
React__default
|
|
8727
|
-
React__default
|
|
8703
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8704
|
+
React__default.createElement(
|
|
8728
8705
|
'div',
|
|
8729
8706
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8730
|
-
main.
|
|
8707
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8731
8708
|
if (index === 0) {
|
|
8732
|
-
return React__default
|
|
8709
|
+
return React__default.createElement(
|
|
8733
8710
|
'div',
|
|
8734
8711
|
{
|
|
8735
8712
|
key: 'addid-1',
|
|
@@ -8749,14 +8726,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8749
8726
|
}
|
|
8750
8727
|
})
|
|
8751
8728
|
),
|
|
8752
|
-
React__default
|
|
8729
|
+
React__default.createElement(
|
|
8753
8730
|
'div',
|
|
8754
8731
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8755
8732
|
Articles.map(function (article, index) {
|
|
8756
|
-
return React__default
|
|
8733
|
+
return React__default.createElement(
|
|
8757
8734
|
'div',
|
|
8758
8735
|
{ key: article.title },
|
|
8759
|
-
React__default
|
|
8736
|
+
React__default.createElement(
|
|
8760
8737
|
InscreenSensor,
|
|
8761
8738
|
{
|
|
8762
8739
|
visible: sensorVisible,
|
|
@@ -8774,84 +8751,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8774
8751
|
}
|
|
8775
8752
|
}
|
|
8776
8753
|
} },
|
|
8777
|
-
React__default
|
|
8778
|
-
|
|
8754
|
+
React__default.createElement(
|
|
8755
|
+
Head,
|
|
8779
8756
|
null,
|
|
8780
|
-
currentTitle !== null && React__default
|
|
8757
|
+
currentTitle !== null && React__default.createElement(
|
|
8781
8758
|
'title',
|
|
8782
8759
|
{ key: 'title' },
|
|
8783
8760
|
currentTitle
|
|
8784
8761
|
),
|
|
8785
|
-
currentSummary !== null && React__default
|
|
8786
|
-
currentURL !== null && React__default
|
|
8787
|
-
currentTitle !== null && React__default
|
|
8788
|
-
currentThumbnail !== null && React__default
|
|
8789
|
-
currentSummary !== null && React__default
|
|
8790
|
-
currentTitle !== null && React__default
|
|
8791
|
-
currentThumbnail !== null && React__default
|
|
8792
|
-
currentSummary !== null && React__default
|
|
8762
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8763
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8764
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8765
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8766
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8767
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8768
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8769
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8793
8770
|
),
|
|
8794
|
-
React__default
|
|
8771
|
+
React__default.createElement(
|
|
8795
8772
|
'article',
|
|
8796
8773
|
{ className: 'article-wrapper' },
|
|
8797
|
-
React__default
|
|
8774
|
+
React__default.createElement(
|
|
8798
8775
|
'div',
|
|
8799
8776
|
{ className: 'article-publishDate' },
|
|
8800
8777
|
moment.moment(article.published).format('LL')
|
|
8801
8778
|
),
|
|
8802
|
-
React__default
|
|
8779
|
+
React__default.createElement(
|
|
8803
8780
|
'div',
|
|
8804
8781
|
{ className: 'author-details-wrapper' },
|
|
8805
8782
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8806
|
-
return React__default
|
|
8783
|
+
return React__default.createElement(
|
|
8807
8784
|
'span',
|
|
8808
8785
|
{ key: index },
|
|
8809
8786
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8810
8787
|
);
|
|
8811
8788
|
})
|
|
8812
8789
|
),
|
|
8813
|
-
React__default
|
|
8790
|
+
React__default.createElement(
|
|
8814
8791
|
'h2',
|
|
8815
8792
|
{ className: 'article-title' },
|
|
8816
8793
|
article.title
|
|
8817
8794
|
),
|
|
8818
|
-
React__default
|
|
8795
|
+
React__default.createElement(
|
|
8819
8796
|
'div',
|
|
8820
8797
|
{ className: 'mt-2 mb-2' },
|
|
8821
|
-
React__default
|
|
8798
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8822
8799
|
serializers: getSerializers,
|
|
8823
8800
|
videoAccountIDs: accountIDs,
|
|
8824
8801
|
blocks: article.text,
|
|
8825
8802
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8826
8803
|
}, client.config())),
|
|
8827
|
-
React__default
|
|
8804
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8828
8805
|
),
|
|
8829
|
-
Articles.length > 1 && React__default
|
|
8830
|
-
React__default
|
|
8806
|
+
Articles.length > 1 && React__default.createElement(
|
|
8807
|
+
React__default.Fragment,
|
|
8831
8808
|
null,
|
|
8832
|
-
React__default
|
|
8809
|
+
React__default.createElement(
|
|
8833
8810
|
'div',
|
|
8834
8811
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8835
|
-
React__default
|
|
8812
|
+
React__default.createElement(
|
|
8836
8813
|
'h5',
|
|
8837
8814
|
{ className: 'objective-title' },
|
|
8838
8815
|
nodes.seriesTitle
|
|
8839
8816
|
),
|
|
8840
|
-
React__default
|
|
8817
|
+
React__default.createElement(
|
|
8841
8818
|
'div',
|
|
8842
8819
|
{ className: 'prevNextWrapper' },
|
|
8843
8820
|
PrevNextCards(true, index)
|
|
8844
8821
|
)
|
|
8845
8822
|
),
|
|
8846
|
-
React__default
|
|
8823
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8847
8824
|
)
|
|
8848
8825
|
),
|
|
8849
|
-
React__default
|
|
8826
|
+
React__default.createElement(
|
|
8850
8827
|
'div',
|
|
8851
8828
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8852
|
-
main.
|
|
8829
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8853
8830
|
if (innerIndex === 0) {
|
|
8854
|
-
return React__default
|
|
8831
|
+
return React__default.createElement(
|
|
8855
8832
|
'div',
|
|
8856
8833
|
{
|
|
8857
8834
|
key: 'addid-' + (index + 2),
|
|
@@ -8874,7 +8851,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8874
8851
|
)
|
|
8875
8852
|
);
|
|
8876
8853
|
}),
|
|
8877
|
-
React__default
|
|
8854
|
+
React__default.createElement(
|
|
8878
8855
|
'style',
|
|
8879
8856
|
{ jsx: 'true' },
|
|
8880
8857
|
'\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 '
|
|
@@ -8904,11 +8881,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8904
8881
|
};
|
|
8905
8882
|
}, [handleClickOutside]);
|
|
8906
8883
|
|
|
8907
|
-
return React__default
|
|
8884
|
+
return React__default.createElement(
|
|
8908
8885
|
'div',
|
|
8909
8886
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8910
|
-
React__default
|
|
8911
|
-
React__default
|
|
8887
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8888
|
+
React__default.createElement(
|
|
8912
8889
|
'style',
|
|
8913
8890
|
{ jsx: 'true' },
|
|
8914
8891
|
'\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 '
|
|
@@ -8922,7 +8899,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8922
8899
|
}
|
|
8923
8900
|
};
|
|
8924
8901
|
|
|
8925
|
-
var FigureImage = React__default
|
|
8902
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8926
8903
|
var node = _ref2.node,
|
|
8927
8904
|
client = _ref2.client,
|
|
8928
8905
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8930,13 +8907,13 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8930
8907
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8931
8908
|
|
|
8932
8909
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8933
|
-
return React__default
|
|
8910
|
+
return React__default.createElement(
|
|
8934
8911
|
'picture',
|
|
8935
8912
|
null,
|
|
8936
|
-
React__default
|
|
8937
|
-
React__default
|
|
8938
|
-
React__default
|
|
8939
|
-
React__default
|
|
8913
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8914
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8915
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8916
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8940
8917
|
style: figureImageStyle,
|
|
8941
8918
|
className: 'figure-image',
|
|
8942
8919
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9024,13 +9001,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9024
9001
|
|
|
9025
9002
|
var FigureCaption = React.useCallback(function () {
|
|
9026
9003
|
if (imgcaption && imgcaption.length > 0) {
|
|
9027
|
-
return React__default
|
|
9004
|
+
return React__default.createElement(
|
|
9028
9005
|
'div',
|
|
9029
9006
|
{ className: 'figure-caption' },
|
|
9030
|
-
React__default
|
|
9007
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9031
9008
|
);
|
|
9032
9009
|
} else if (caption) {
|
|
9033
|
-
return React__default
|
|
9010
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9034
9011
|
} else return null;
|
|
9035
9012
|
}, [caption, imgcaption]);
|
|
9036
9013
|
|
|
@@ -9047,24 +9024,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9047
9024
|
setShowLightbox(true);
|
|
9048
9025
|
}, [node, client]);
|
|
9049
9026
|
|
|
9050
|
-
return React__default
|
|
9051
|
-
React__default
|
|
9027
|
+
return React__default.createElement(
|
|
9028
|
+
React__default.Fragment,
|
|
9052
9029
|
null,
|
|
9053
|
-
React__default
|
|
9054
|
-
|
|
9030
|
+
React__default.createElement(
|
|
9031
|
+
Figure$1,
|
|
9055
9032
|
{ className: '' + class_name, style: figureStyle },
|
|
9056
|
-
link ? React__default
|
|
9033
|
+
link ? React__default.createElement(
|
|
9057
9034
|
'a',
|
|
9058
9035
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9059
|
-
React__default
|
|
9060
|
-
React__default
|
|
9061
|
-
) : React__default
|
|
9062
|
-
React__default
|
|
9036
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9037
|
+
React__default.createElement(FigureCaption, null)
|
|
9038
|
+
) : React__default.createElement(
|
|
9039
|
+
React__default.Fragment,
|
|
9063
9040
|
null,
|
|
9064
|
-
React__default
|
|
9065
|
-
React__default
|
|
9041
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9042
|
+
React__default.createElement(FigureCaption, null)
|
|
9066
9043
|
),
|
|
9067
|
-
React__default
|
|
9044
|
+
React__default.createElement(LightBox, {
|
|
9068
9045
|
showLightbox: showLightbox,
|
|
9069
9046
|
lightboxImgSrc: lightboxImgSrc,
|
|
9070
9047
|
closeLightbox: function closeLightbox() {
|
|
@@ -9073,7 +9050,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9073
9050
|
}
|
|
9074
9051
|
})
|
|
9075
9052
|
),
|
|
9076
|
-
React__default
|
|
9053
|
+
React__default.createElement(
|
|
9077
9054
|
'style',
|
|
9078
9055
|
{ jsx: 'true' },
|
|
9079
9056
|
'\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 '
|
|
@@ -9081,7 +9058,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9081
9058
|
);
|
|
9082
9059
|
};
|
|
9083
9060
|
|
|
9084
|
-
var Figure = React__default
|
|
9061
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9085
9062
|
|
|
9086
9063
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9087
9064
|
React.useEffect(function () {
|
|
@@ -9122,47 +9099,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9122
9099
|
imgcaption = _ref.imgcaption;
|
|
9123
9100
|
|
|
9124
9101
|
if (imgcaption && imgcaption.length > 0) {
|
|
9125
|
-
return React__default
|
|
9102
|
+
return React__default.createElement(
|
|
9126
9103
|
'div',
|
|
9127
9104
|
{ className: 'multi-figure-caption' },
|
|
9128
|
-
React__default
|
|
9105
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9129
9106
|
);
|
|
9130
9107
|
} else if (caption) {
|
|
9131
|
-
return React__default
|
|
9108
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9132
9109
|
} else return null;
|
|
9133
9110
|
};
|
|
9134
9111
|
|
|
9135
9112
|
if (images && images.length > 0) {
|
|
9136
|
-
return React__default
|
|
9113
|
+
return React__default.createElement(
|
|
9137
9114
|
'div',
|
|
9138
9115
|
{ className: 'multi-figure-container' },
|
|
9139
|
-
React__default
|
|
9140
|
-
|
|
9116
|
+
React__default.createElement(
|
|
9117
|
+
Row,
|
|
9141
9118
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9142
9119
|
images.map(function (image, index) {
|
|
9143
|
-
return React__default
|
|
9144
|
-
|
|
9120
|
+
return React__default.createElement(
|
|
9121
|
+
Col,
|
|
9145
9122
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9146
|
-
image.link ? React__default
|
|
9123
|
+
image.link ? React__default.createElement(
|
|
9147
9124
|
'a',
|
|
9148
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9149
|
-
React__default
|
|
9125
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9126
|
+
React__default.createElement(
|
|
9150
9127
|
'div',
|
|
9151
9128
|
{ className: 'multi-figure-image-container' },
|
|
9152
|
-
React__default
|
|
9129
|
+
React__default.createElement(
|
|
9153
9130
|
index$2.LazyLoad,
|
|
9154
9131
|
{ once: true },
|
|
9155
|
-
React__default
|
|
9132
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9156
9133
|
),
|
|
9157
|
-
React__default
|
|
9134
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9158
9135
|
)
|
|
9159
|
-
) : React__default
|
|
9136
|
+
) : React__default.createElement(
|
|
9160
9137
|
'div',
|
|
9161
9138
|
{ className: 'multi-figure-image-container' },
|
|
9162
|
-
React__default
|
|
9139
|
+
React__default.createElement(
|
|
9163
9140
|
index$2.LazyLoad,
|
|
9164
9141
|
{ once: true },
|
|
9165
|
-
React__default
|
|
9142
|
+
React__default.createElement('img', {
|
|
9166
9143
|
'images-count': images.length,
|
|
9167
9144
|
className: 'multi-figure-image',
|
|
9168
9145
|
src: urlFor({ source: image.asset, client: client }),
|
|
@@ -9173,17 +9150,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9173
9150
|
}
|
|
9174
9151
|
})
|
|
9175
9152
|
),
|
|
9176
|
-
React__default
|
|
9153
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9177
9154
|
)
|
|
9178
9155
|
);
|
|
9179
9156
|
})
|
|
9180
9157
|
),
|
|
9181
|
-
React__default
|
|
9158
|
+
React__default.createElement(
|
|
9182
9159
|
'div',
|
|
9183
9160
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9184
|
-
React__default
|
|
9161
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9185
9162
|
),
|
|
9186
|
-
React__default
|
|
9163
|
+
React__default.createElement(
|
|
9187
9164
|
'style',
|
|
9188
9165
|
{ jsx: 'true' },
|
|
9189
9166
|
'\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 }\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 '
|
|
@@ -9205,10 +9182,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9205
9182
|
|
|
9206
9183
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9207
9184
|
|
|
9208
|
-
return React__default
|
|
9185
|
+
return React__default.createElement(
|
|
9209
9186
|
'div',
|
|
9210
9187
|
{ id: elementId },
|
|
9211
|
-
React__default
|
|
9188
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9212
9189
|
);
|
|
9213
9190
|
};
|
|
9214
9191
|
|
|
@@ -9237,7 +9214,7 @@ exports.__esModule = true;
|
|
|
9237
9214
|
|
|
9238
9215
|
|
|
9239
9216
|
|
|
9240
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9217
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9241
9218
|
|
|
9242
9219
|
|
|
9243
9220
|
|
|
@@ -9245,23 +9222,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9245
9222
|
|
|
9246
9223
|
|
|
9247
9224
|
|
|
9248
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9225
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9249
9226
|
|
|
9250
9227
|
|
|
9251
9228
|
|
|
9252
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9229
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9253
9230
|
|
|
9254
9231
|
|
|
9255
9232
|
|
|
9256
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9233
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9257
9234
|
|
|
9258
9235
|
|
|
9259
9236
|
|
|
9260
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9237
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9261
9238
|
|
|
9262
9239
|
|
|
9263
9240
|
|
|
9264
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9241
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9265
9242
|
|
|
9266
9243
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9267
9244
|
var noop = function noop() {};
|
|
@@ -9416,7 +9393,7 @@ var ScriptTag = function (_Component) {
|
|
|
9416
9393
|
};
|
|
9417
9394
|
|
|
9418
9395
|
return ScriptTag;
|
|
9419
|
-
}(React__default
|
|
9396
|
+
}(React__default.Component);
|
|
9420
9397
|
|
|
9421
9398
|
ScriptTag.propTypes = {
|
|
9422
9399
|
/**
|
|
@@ -9495,11 +9472,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9495
9472
|
}, []);
|
|
9496
9473
|
|
|
9497
9474
|
if (iframeSrc) {
|
|
9498
|
-
return React__default
|
|
9475
|
+
return React__default.createElement(
|
|
9499
9476
|
'section',
|
|
9500
9477
|
{ className: 'form-assembly' },
|
|
9501
|
-
React__default
|
|
9502
|
-
React__default
|
|
9478
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9479
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9503
9480
|
);
|
|
9504
9481
|
}
|
|
9505
9482
|
|
|
@@ -9536,27 +9513,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9536
9513
|
return window.removeEventListener('resize', handleResize);
|
|
9537
9514
|
};
|
|
9538
9515
|
}, []);
|
|
9539
|
-
return React__default
|
|
9516
|
+
return React__default.createElement(
|
|
9540
9517
|
'div',
|
|
9541
9518
|
{ className: 'blockTableHolder', ref: holder },
|
|
9542
|
-
React__default
|
|
9519
|
+
React__default.createElement(
|
|
9543
9520
|
'div',
|
|
9544
9521
|
{ className: 'blockTable' },
|
|
9545
9522
|
rows && rows.map(function (row) {
|
|
9546
|
-
return React__default
|
|
9523
|
+
return React__default.createElement(
|
|
9547
9524
|
'div',
|
|
9548
9525
|
{ className: 'blockTableRow' },
|
|
9549
9526
|
row.cells && row.cells.map(function (cell) {
|
|
9550
|
-
return React__default
|
|
9527
|
+
return React__default.createElement(
|
|
9551
9528
|
'div',
|
|
9552
9529
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9553
|
-
React__default
|
|
9530
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9554
9531
|
);
|
|
9555
9532
|
})
|
|
9556
9533
|
);
|
|
9557
9534
|
})
|
|
9558
9535
|
),
|
|
9559
|
-
React__default
|
|
9536
|
+
React__default.createElement(
|
|
9560
9537
|
'style',
|
|
9561
9538
|
{ jsx: true },
|
|
9562
9539
|
'\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 '
|
|
@@ -9635,12 +9612,12 @@ var getSerializers = function getSerializers() {
|
|
|
9635
9612
|
var node = _ref.node;
|
|
9636
9613
|
var url = node.url;
|
|
9637
9614
|
|
|
9638
|
-
return React__default
|
|
9615
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9639
9616
|
},
|
|
9640
9617
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9641
9618
|
var node = _ref2.node;
|
|
9642
9619
|
|
|
9643
|
-
return React__default
|
|
9620
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9644
9621
|
nodes: node,
|
|
9645
9622
|
article: article,
|
|
9646
9623
|
meta: meta,
|
|
@@ -9654,7 +9631,7 @@ var getSerializers = function getSerializers() {
|
|
|
9654
9631
|
articleSeries: function articleSeries(_ref3) {
|
|
9655
9632
|
var node = _ref3.node;
|
|
9656
9633
|
|
|
9657
|
-
return React__default
|
|
9634
|
+
return React__default.createElement(ArticleSeries, {
|
|
9658
9635
|
nodes: node,
|
|
9659
9636
|
accountIDs: videoAccountIDs || {},
|
|
9660
9637
|
pageview: pageview,
|
|
@@ -9667,61 +9644,61 @@ var getSerializers = function getSerializers() {
|
|
|
9667
9644
|
figure: function figure(_ref4) {
|
|
9668
9645
|
var node = _ref4.node;
|
|
9669
9646
|
|
|
9670
|
-
return React__default
|
|
9647
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9671
9648
|
},
|
|
9672
9649
|
multifigure: function multifigure(_ref5) {
|
|
9673
9650
|
var node = _ref5.node;
|
|
9674
9651
|
|
|
9675
|
-
return React__default
|
|
9652
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9676
9653
|
},
|
|
9677
9654
|
slideshow: function slideshow(_ref6) {
|
|
9678
9655
|
var node = _ref6.node;
|
|
9679
9656
|
var slides = node.slides;
|
|
9680
9657
|
|
|
9681
|
-
return React__default
|
|
9658
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9682
9659
|
},
|
|
9683
9660
|
sidebar: function sidebar(_ref7) {
|
|
9684
9661
|
var node = _ref7.node;
|
|
9685
9662
|
var caption = node.caption,
|
|
9686
9663
|
content = node.content;
|
|
9687
9664
|
|
|
9688
|
-
return React__default
|
|
9665
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9689
9666
|
},
|
|
9690
9667
|
datatable: function datatable(_ref8) {
|
|
9691
9668
|
var node = _ref8.node;
|
|
9692
9669
|
var table = node.table;
|
|
9693
9670
|
|
|
9694
|
-
return React__default
|
|
9671
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9695
9672
|
},
|
|
9696
9673
|
media: function media(_ref9) {
|
|
9697
9674
|
var node = _ref9.node;
|
|
9698
9675
|
|
|
9699
|
-
return React__default
|
|
9676
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9700
9677
|
},
|
|
9701
9678
|
iframe: function iframe(_ref10) {
|
|
9702
9679
|
var node = _ref10.node;
|
|
9703
9680
|
|
|
9704
|
-
return React__default
|
|
9681
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9705
9682
|
},
|
|
9706
9683
|
video: function video(_ref11) {
|
|
9707
9684
|
var node = _ref11.node;
|
|
9708
9685
|
|
|
9709
|
-
return React__default
|
|
9686
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9710
9687
|
},
|
|
9711
9688
|
audio: function audio(_ref12) {
|
|
9712
9689
|
var node = _ref12.node;
|
|
9713
9690
|
|
|
9714
|
-
return React__default
|
|
9691
|
+
return React__default.createElement(Audio, { node: node });
|
|
9715
9692
|
},
|
|
9716
9693
|
poll: function poll(_ref13) {
|
|
9717
9694
|
var node = _ref13.node;
|
|
9718
9695
|
|
|
9719
|
-
return React__default
|
|
9696
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9720
9697
|
},
|
|
9721
9698
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9722
9699
|
var node = _ref14.node;
|
|
9723
9700
|
|
|
9724
|
-
return React__default
|
|
9701
|
+
return React__default.createElement(Poll$1, {
|
|
9725
9702
|
node: node,
|
|
9726
9703
|
client: client,
|
|
9727
9704
|
pageview: pageview,
|
|
@@ -9735,35 +9712,35 @@ var getSerializers = function getSerializers() {
|
|
|
9735
9712
|
var node = _ref15.node;
|
|
9736
9713
|
var quizzes = node.quizzes;
|
|
9737
9714
|
|
|
9738
|
-
return React__default
|
|
9715
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9739
9716
|
},
|
|
9740
9717
|
leads: function leads(_ref16) {
|
|
9741
9718
|
var node = _ref16.node;
|
|
9742
9719
|
var leadID = node.leadID;
|
|
9743
9720
|
|
|
9744
9721
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9745
|
-
return React__default
|
|
9722
|
+
return React__default.createElement(Leads, { url: url });
|
|
9746
9723
|
},
|
|
9747
9724
|
slideshows: function slideshows(_ref17) {
|
|
9748
9725
|
var node = _ref17.node;
|
|
9749
9726
|
|
|
9750
|
-
return React__default
|
|
9727
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9751
9728
|
},
|
|
9752
9729
|
nativeAd: function nativeAd(_ref18) {
|
|
9753
9730
|
var node = _ref18.node;
|
|
9754
9731
|
|
|
9755
|
-
return React__default
|
|
9732
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9756
9733
|
},
|
|
9757
9734
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9758
9735
|
var node = _ref19.node;
|
|
9759
9736
|
|
|
9760
|
-
return React__default
|
|
9737
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9761
9738
|
},
|
|
9762
9739
|
hrtag: function hrtag() {
|
|
9763
|
-
return React__default
|
|
9740
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9764
9741
|
},
|
|
9765
9742
|
brtag: function brtag() {
|
|
9766
|
-
return React__default
|
|
9743
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9767
9744
|
},
|
|
9768
9745
|
formstack: function formstack(_ref20) {
|
|
9769
9746
|
var node = _ref20.node;
|
|
@@ -9771,29 +9748,29 @@ var getSerializers = function getSerializers() {
|
|
|
9771
9748
|
Caption = node.Caption,
|
|
9772
9749
|
needSegmentSupport = node.needSegmentSupport;
|
|
9773
9750
|
|
|
9774
|
-
return React__default
|
|
9751
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9775
9752
|
},
|
|
9776
9753
|
formassembly: FormAssembly,
|
|
9777
9754
|
multimedia: function multimedia(_ref21) {
|
|
9778
9755
|
var node = _ref21.node;
|
|
9779
9756
|
|
|
9780
|
-
return React__default
|
|
9757
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9781
9758
|
},
|
|
9782
9759
|
blockTable: function blockTable(_ref22) {
|
|
9783
9760
|
var node = _ref22.node;
|
|
9784
|
-
return React__default
|
|
9761
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9785
9762
|
}
|
|
9786
9763
|
},
|
|
9787
9764
|
marks: {
|
|
9788
9765
|
superscript: function superscript(props) {
|
|
9789
|
-
return React__default
|
|
9766
|
+
return React__default.createElement(
|
|
9790
9767
|
'sup',
|
|
9791
9768
|
null,
|
|
9792
9769
|
props.children
|
|
9793
9770
|
);
|
|
9794
9771
|
},
|
|
9795
9772
|
subscript: function subscript(props) {
|
|
9796
|
-
return React__default
|
|
9773
|
+
return React__default.createElement(
|
|
9797
9774
|
'sub',
|
|
9798
9775
|
null,
|
|
9799
9776
|
props.children
|
|
@@ -9809,7 +9786,7 @@ var getSerializers = function getSerializers() {
|
|
|
9809
9786
|
if (href && href.charAt(0) === '#') {
|
|
9810
9787
|
var elementId = href.slice(1);
|
|
9811
9788
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9812
|
-
return React__default
|
|
9789
|
+
return React__default.createElement(
|
|
9813
9790
|
'a',
|
|
9814
9791
|
{ onClick: function onClick() {
|
|
9815
9792
|
return ScrollToElement(elementId);
|
|
@@ -9819,7 +9796,7 @@ var getSerializers = function getSerializers() {
|
|
|
9819
9796
|
}
|
|
9820
9797
|
|
|
9821
9798
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9822
|
-
return React__default
|
|
9799
|
+
return React__default.createElement(
|
|
9823
9800
|
'a',
|
|
9824
9801
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9825
9802
|
children
|
|
@@ -9827,7 +9804,7 @@ var getSerializers = function getSerializers() {
|
|
|
9827
9804
|
},
|
|
9828
9805
|
alignleft: function alignleft(_ref23) {
|
|
9829
9806
|
var children = _ref23.children;
|
|
9830
|
-
return React__default
|
|
9807
|
+
return React__default.createElement(
|
|
9831
9808
|
'div',
|
|
9832
9809
|
{ style: { textAlign: 'left' } },
|
|
9833
9810
|
children
|
|
@@ -9835,7 +9812,7 @@ var getSerializers = function getSerializers() {
|
|
|
9835
9812
|
},
|
|
9836
9813
|
alignright: function alignright(_ref24) {
|
|
9837
9814
|
var children = _ref24.children;
|
|
9838
|
-
return React__default
|
|
9815
|
+
return React__default.createElement(
|
|
9839
9816
|
'div',
|
|
9840
9817
|
{ style: { textAlign: 'right' } },
|
|
9841
9818
|
children
|
|
@@ -9843,7 +9820,7 @@ var getSerializers = function getSerializers() {
|
|
|
9843
9820
|
},
|
|
9844
9821
|
aligncenter: function aligncenter(_ref25) {
|
|
9845
9822
|
var children = _ref25.children;
|
|
9846
|
-
return React__default
|
|
9823
|
+
return React__default.createElement(
|
|
9847
9824
|
'div',
|
|
9848
9825
|
{ style: { textAlign: 'center' } },
|
|
9849
9826
|
children
|
|
@@ -9851,7 +9828,7 @@ var getSerializers = function getSerializers() {
|
|
|
9851
9828
|
},
|
|
9852
9829
|
alignjustify: function alignjustify(_ref26) {
|
|
9853
9830
|
var children = _ref26.children;
|
|
9854
|
-
return React__default
|
|
9831
|
+
return React__default.createElement(
|
|
9855
9832
|
'div',
|
|
9856
9833
|
{ style: { textAlign: 'justify' } },
|
|
9857
9834
|
children
|
|
@@ -9861,7 +9838,7 @@ var getSerializers = function getSerializers() {
|
|
|
9861
9838
|
var children = props.children,
|
|
9862
9839
|
color = props.mark.color;
|
|
9863
9840
|
|
|
9864
|
-
return React__default
|
|
9841
|
+
return React__default.createElement(
|
|
9865
9842
|
'span',
|
|
9866
9843
|
{ style: { color: color ? color.hex : null } },
|
|
9867
9844
|
children
|