@mjhls/mjh-framework 1.0.834-beta.0 → 1.0.834
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +13 -13
- package/dist/cjs/AD300x250x600.js +13 -13
- package/dist/cjs/AD728x90.js +14 -14
- package/dist/cjs/ADFloatingFooter.js +12 -12
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +12 -12
- package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-7b3f64e1.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +12 -12
- package/dist/cjs/ADSponsoredResources.js +12 -12
- package/dist/cjs/ADWebcast.js +12 -12
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-17a6e476.js} +1 -1
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +14 -14
- package/dist/cjs/AdSlotsProvider.js +12 -905
- package/dist/cjs/AlgoliaSearch.js +76 -48
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +10 -10
- package/dist/cjs/ArticleProgramLandingPage.js +27 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +18 -18
- package/dist/cjs/Auth.js +465 -245
- package/dist/cjs/AuthWrapper.js +283 -242
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-0c464248.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-bac780ac.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +8 -8
- package/dist/cjs/Column3.js +16 -16
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-ac0c1cc6.js} +7 -7
- package/dist/cjs/EventsDeck.js +33 -33
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +8 -8
- package/dist/cjs/GridContent.js +28 -28
- package/dist/cjs/GridHero.js +8 -8
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/HamMagazine.js +25 -25
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -25
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +8 -8
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +59 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +12 -12
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +208 -209
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +24 -24
- package/dist/cjs/NavNative.js +21 -21
- package/dist/cjs/OncliveHero.js +2 -3
- package/dist/cjs/OncliveLargeHero.js +8 -8
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +31 -31
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +36 -36
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +15 -15
- package/dist/cjs/{SeriesSlider-d16a5ae5.js → SeriesSlider-abd231e9.js} +11 -11
- package/dist/cjs/SideFooter.js +10 -10
- package/dist/cjs/{SocialSearchComponent-97dd19a5.js → SocialSearchComponent-bef9a9d8.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +4 -4
- package/dist/cjs/TaxonomyDescription.js +25 -25
- package/dist/cjs/TemplateNormal.js +18 -18
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +12 -12
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +27 -27
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +18 -18
- package/dist/cjs/View.js +62 -142
- package/dist/cjs/YahooHero.js +8 -8
- package/dist/cjs/YoutubeGroup.js +18 -18
- package/dist/cjs/{_is-array-754e012d.js → _is-array-39ff55dd.js} +1 -1
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-ef35661e.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b231f928.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-c3aeb51d.js} +1 -1
- package/dist/cjs/{_to-object-329a650b.js → _to-object-7a3ce269.js} +2 -2
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-8ae2191c.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-05029198.js} +4 -3
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-6cd7682d.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-6191c8ee.js} +1 -1
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-fc002cec.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-03c4c82e.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-ab94a594.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-acc1318d.js} +1 -1
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-98ab97f7.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-a0bdcb69.js → index-0f62d00b.js} +517 -501
- package/dist/cjs/{index-e2e62963.js → index-53e27416.js} +25 -9
- package/dist/cjs/{index-3294d3bc.js → index-79eed652.js} +39 -40
- package/dist/cjs/{index-be0c82be.js → index-ff69979f.js} +28 -22
- package/dist/cjs/{index.es-9110add6.js → index.es-e9d84959.js} +23 -5
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/{index.esm-4d410430.js → index.esm-bf016399.js} +2 -3
- package/dist/cjs/index.js +42 -41
- package/dist/cjs/{inherits-9953db94.js → inherits-bfdb22af.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-62e097ca.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-b5e0d5f6.js} +127 -30
- package/dist/cjs/main-bc7d4bf8.js +972 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-41819145.js} +4 -4
- package/dist/cjs/{stringify-7c5aff47.js → stringify-7ccc8524.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-4fdb72e2.js} +4 -4
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-f2f8744b.js} +39 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-e83d4a26.js} +4 -4
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-c30d203c.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-68e3aaf2.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +13 -13
- package/dist/esm/AD300x250x600.js +13 -13
- package/dist/esm/AD728x90.js +14 -14
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +12 -12
- package/dist/esm/{ADInfeed-b566ce41.js → ADInfeed-77c2092d.js} +1 -1
- package/dist/esm/ADSkyscraper.js +12 -12
- package/dist/esm/ADSponsoredResources.js +12 -12
- package/dist/esm/ADWebcast.js +12 -12
- package/dist/esm/ADWelcome.js +12 -12
- package/dist/esm/{ADlgInfeed-5eb7281d.js → ADlgInfeed-12d2ac78.js} +1 -1
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +14 -14
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +75 -47
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +10 -10
- package/dist/esm/ArticleProgramLandingPage.js +26 -26
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +464 -244
- package/dist/esm/AuthWrapper.js +283 -242
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5cab1f6b.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-ea93e8f7.js} +1 -1
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +8 -8
- package/dist/esm/Column3.js +16 -16
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +19 -19
- package/dist/esm/{Dfp-b7236041.js → Dfp-4b94fbd4.js} +7 -7
- package/dist/esm/EventsDeck.js +33 -33
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +8 -8
- package/dist/esm/GridContent.js +28 -28
- package/dist/esm/GridHero.js +8 -8
- package/dist/esm/GroupDeck.js +8 -8
- package/dist/esm/HamMagazine.js +25 -25
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -25
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +8 -8
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +59 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +12 -12
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +364 -365
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +24 -24
- package/dist/esm/NavNative.js +21 -21
- package/dist/esm/OncliveHero.js +2 -3
- package/dist/esm/OncliveLargeHero.js +8 -8
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +30 -30
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +36 -36
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-8dc17b11.js → SeriesSlider-d9cf4ffb.js} +11 -11
- package/dist/esm/SideFooter.js +10 -10
- package/dist/esm/{SocialSearchComponent-db5ba548.js → SocialSearchComponent-4f7d1c5b.js} +7 -7
- package/dist/esm/TaxonomyCard.js +4 -4
- package/dist/esm/TaxonomyDescription.js +25 -25
- package/dist/esm/TemplateNormal.js +18 -18
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoProgramLandingPage.js +26 -26
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +18 -18
- package/dist/esm/View.js +38 -118
- package/dist/esm/YahooHero.js +8 -8
- package/dist/esm/YoutubeGroup.js +18 -18
- package/dist/esm/{_is-array-58e95429.js → _is-array-328b85b7.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-0fa1c752.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-1b84e2bf.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c8f72bf1.js} +1 -1
- package/dist/esm/{_to-object-a4107da3.js → _to-object-cedb5b78.js} +2 -2
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-e1a2f43a.js} +5 -5
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e761d404.js} +4 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-227107e6.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-89969f66.js} +1 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-2f35af22.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-eb9699c0.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-1577cb76.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-be71a29a.js} +1 -1
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/getRelatedArticle.js +6 -6
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-93bb872d.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-ef6d5dcf.js → index-511bdaa5.js} +39 -40
- package/dist/esm/{index-aaa2dae0.js → index-637e8f49.js} +25 -10
- package/dist/esm/{index-d9cf292f.js → index-eca81448.js} +517 -501
- package/dist/esm/{index-73819142.js → index-f7fdcc91.js} +28 -22
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/{index.esm-fd746768.js → index.esm-ed50151c.js} +2 -3
- package/dist/esm/index.js +42 -41
- package/dist/esm/{inherits-cf8dde54.js → inherits-2cf82c38.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-526daf0a.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-a818d390.js} +127 -30
- package/dist/esm/main-ae902629.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-f0edf3d6.js} +4 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-d1b9276a.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-81605212.js} +4 -4
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-e3dcad26.js} +39 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-ad2c7a21.js} +4 -4
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-cf90f7e6.js} +4 -4
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-ace8ed30.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/main-e4a934b2.js +0 -851
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
-
var _toObject = require('./_to-object-
|
|
7
|
-
var toConsumableArray = require('./toConsumableArray-
|
|
8
|
-
var _extends
|
|
9
|
-
var inherits$1 = require('./inherits-
|
|
10
|
-
var _typeof$
|
|
6
|
+
var _toObject = require('./_to-object-7a3ce269.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-4fdb72e2.js');
|
|
8
|
+
var _extends = require('./extends-acc1318d.js');
|
|
9
|
+
var inherits$1 = require('./inherits-bfdb22af.js');
|
|
10
|
+
var _typeof$2 = require('./typeof-e83d4a26.js');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var React__default = _interopDefault(React);
|
|
13
13
|
var index = require('./index-98e01cb9.js');
|
|
@@ -15,27 +15,27 @@ var PropTypes = require('prop-types');
|
|
|
15
15
|
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
16
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
17
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
-
var moment = require('./moment-
|
|
18
|
+
var moment = require('./moment-ca3bd9fb.js');
|
|
19
19
|
var Router = require('next/router');
|
|
20
20
|
var Router__default = _interopDefault(Router);
|
|
21
21
|
var urlFor = require('./urlFor.js');
|
|
22
22
|
var index$2 = require('./index-96b3db50.js');
|
|
23
|
-
var main = require('./main-
|
|
23
|
+
var main = require('./main-bc7d4bf8.js');
|
|
24
24
|
var entities = require('./entities-310b46ee.js');
|
|
25
|
-
var slicedToArray = require('./slicedToArray-
|
|
25
|
+
var slicedToArray = require('./slicedToArray-41819145.js');
|
|
26
26
|
var Segment = require('./Segment.js');
|
|
27
27
|
var Beam = require('./Beam.js');
|
|
28
28
|
var AdSlot = require('./AdSlot.js');
|
|
29
|
-
var BlockContent = require('./BlockContent-
|
|
29
|
+
var BlockContent = require('./BlockContent-bac780ac.js');
|
|
30
30
|
var index$3 = require('./index-187c967e.js');
|
|
31
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
32
32
|
var reactBootstrap = require('react-bootstrap');
|
|
33
|
-
var index_esm = require('./index.esm-
|
|
33
|
+
var index_esm = require('./index.esm-974f47d9.js');
|
|
34
34
|
var util = require('./util-f2c1b65b.js');
|
|
35
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-05029198.js');
|
|
36
36
|
var Head = _interopDefault(require('next/head'));
|
|
37
37
|
var SocialShare = require('./SocialShare.js');
|
|
38
|
-
var _objectToArray = require('./_object-to-array-
|
|
38
|
+
var _objectToArray = require('./_object-to-array-c3aeb51d.js');
|
|
39
39
|
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
40
40
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
41
41
|
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
@@ -97,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
115
112
|
length = a.length;
|
|
116
113
|
if (length != b.length) return false;
|
|
117
114
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
116
|
return true;
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
119
|
|
|
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();
|
|
128
120
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
124
|
|
|
134
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
135
126
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
128
|
|
|
140
129
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
145
135
|
if (!equal(a[key], b[key])) return false;
|
|
146
136
|
}
|
|
147
137
|
|
|
148
138
|
return true;
|
|
149
139
|
}
|
|
150
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
151
142
|
return a!==a && b!==b;
|
|
152
143
|
};
|
|
153
144
|
|
|
@@ -1570,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
1570
1561
|
|
|
1571
1562
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1572
1563
|
|
|
1573
|
-
|
|
1574
|
-
|
|
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; };
|
|
1564
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1576
1565
|
|
|
1577
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1567
|
|
|
1579
|
-
function
|
|
1568
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1569
|
+
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1573
|
+
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
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; } }
|
|
1583
|
+
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1580
1587
|
|
|
1581
|
-
function
|
|
1588
|
+
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; }
|
|
1582
1589
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1590
|
+
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; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1588
1596
|
*/
|
|
1597
|
+
|
|
1589
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1599
|
// A changing video should always trigger an update
|
|
1591
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1601
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
1597
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1607
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1609
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1609
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
1610
1619
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
1613
1622
|
autoplay: 0,
|
|
1614
1623
|
start: 0,
|
|
1615
1624
|
end: 0
|
|
1616
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
1617
1626
|
});
|
|
1618
1627
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1628
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
1629
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1641
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
1638
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
1639
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1652
|
}
|
|
1642
1653
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1655
|
_inherits(YouTube, _React$Component);
|
|
1645
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
1646
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
1647
1667
|
_classCallCheck(this, YouTube);
|
|
1648
1668
|
|
|
1649
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
1650
1670
|
|
|
1651
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1672
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1673
|
+
});
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1676
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1680
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
1663
1683
|
case YouTube.PlayerState.ENDED:
|
|
1664
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
1665
1686
|
break;
|
|
1666
1687
|
|
|
1667
1688
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
1669
1691
|
break;
|
|
1670
1692
|
|
|
1671
1693
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
1673
1696
|
break;
|
|
1674
1697
|
}
|
|
1675
|
-
};
|
|
1698
|
+
});
|
|
1676
1699
|
|
|
1677
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1709
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1713
|
// preload the `videoId` video if one is already given
|
|
1691
1714
|
videoId: _this.props.videoId
|
|
1692
1715
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
1695
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
1696
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
1697
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
1698
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
1699
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1728
|
+
});
|
|
1701
1729
|
|
|
1702
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1738
|
});
|
|
1711
|
-
};
|
|
1739
|
+
});
|
|
1712
1740
|
|
|
1713
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1716
1749
|
return;
|
|
1717
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1718
1752
|
|
|
1719
|
-
// set queueing options
|
|
1720
1753
|
var autoplay = false;
|
|
1721
1754
|
var opts = {
|
|
1722
1755
|
videoId: _this.props.videoId
|
|
1723
1756
|
};
|
|
1757
|
+
|
|
1724
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1726
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1763
|
}
|
|
1764
|
+
|
|
1729
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1767
|
}
|
|
1732
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1733
1770
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1771
|
if (autoplay) {
|
|
1736
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1737
1774
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1740
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1779
|
+
});
|
|
1742
1780
|
|
|
1743
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1782
|
_this.container = container;
|
|
1745
|
-
};
|
|
1783
|
+
});
|
|
1746
1784
|
|
|
1747
1785
|
_this.container = null;
|
|
1748
1786
|
_this.internalPlayer = null;
|
|
1749
1787
|
return _this;
|
|
1750
1788
|
}
|
|
1751
1789
|
|
|
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
|
-
|
|
1759
1790
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1761
1792
|
value: function componentDidMount() {
|
|
1762
1793
|
this.createPlayer();
|
|
1763
1794
|
}
|
|
1764
1795
|
}, {
|
|
1765
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1766
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1799
|
this.updatePlayer();
|
|
@@ -1777,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1808
|
}
|
|
1778
1809
|
}
|
|
1779
1810
|
}, {
|
|
1780
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1781
1812
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
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.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1818
|
*/
|
|
1788
1819
|
this.internalPlayer.destroy();
|
|
1789
1820
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
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.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1856
1826
|
*/
|
|
1857
1827
|
|
|
1858
1828
|
}, {
|
|
1859
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1860
1830
|
value: function render() {
|
|
1861
|
-
return React__default.createElement(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1831
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1866
1838
|
}
|
|
1867
1839
|
}]);
|
|
1868
1840
|
|
|
1869
1841
|
return YouTube;
|
|
1870
1842
|
}(React__default.Component);
|
|
1871
1843
|
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1852
|
+
|
|
1872
1853
|
YouTube.propTypes = {
|
|
1873
1854
|
videoId: PropTypes__default.string,
|
|
1874
|
-
|
|
1875
1855
|
// custom ID for player element
|
|
1876
1856
|
id: PropTypes__default.string,
|
|
1877
|
-
|
|
1878
1857
|
// custom class name for player element
|
|
1879
1858
|
className: PropTypes__default.string,
|
|
1880
1859
|
// custom class name for player container element
|
|
1881
1860
|
containerClassName: PropTypes__default.string,
|
|
1882
|
-
|
|
1883
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1862
|
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1885
|
-
|
|
1886
1863
|
// event subscriptions
|
|
1887
1864
|
onReady: PropTypes__default.func,
|
|
1888
1865
|
onError: PropTypes__default.func,
|
|
@@ -1894,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1894
1871
|
onPlaybackQualityChange: PropTypes__default.func
|
|
1895
1872
|
};
|
|
1896
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1897
1875
|
id: null,
|
|
1898
1876
|
className: null,
|
|
1899
1877
|
opts: {},
|
|
@@ -1907,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1907
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1887
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1888
|
|
|
1919
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1890
|
var url = _ref.url,
|
|
@@ -1953,8 +1923,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1923
|
var duration = player.getDuration();
|
|
1954
1924
|
var queue = Math.floor(duration / 10);
|
|
1955
1925
|
var segment = Math.floor(current / queue);
|
|
1956
|
-
Beam.report_beam_video('Ready', main.
|
|
1957
|
-
Segment.report_video_event('Video Ready', main.
|
|
1926
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
|
|
1927
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
|
|
1958
1928
|
};
|
|
1959
1929
|
|
|
1960
1930
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,8 +1934,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1934
|
var segment = Math.floor(current / queue);
|
|
1965
1935
|
|
|
1966
1936
|
if (!queueProgress.includes(segment)) {
|
|
1967
|
-
Beam.report_beam_video('Segment', main.
|
|
1968
|
-
Segment.report_video_event('Video Segment', main.
|
|
1937
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
|
|
1938
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
|
|
1969
1939
|
queueProgress.push(segment);
|
|
1970
1940
|
}
|
|
1971
1941
|
};
|
|
@@ -1978,8 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1948
|
var queue = Math.floor(duration / 10);
|
|
1979
1949
|
var segment = Math.floor(current / queue);
|
|
1980
1950
|
|
|
1981
|
-
Beam.report_beam_video('Play', main.
|
|
1982
|
-
Segment.report_video_event('Video Play', main.
|
|
1951
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment);
|
|
1952
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
|
|
1983
1953
|
|
|
1984
1954
|
if (!playReported) {
|
|
1985
1955
|
setPlayReported(true);
|
|
@@ -1998,8 +1968,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1968
|
var queue = Math.floor(duration / 10);
|
|
1999
1969
|
var segment = Math.floor(current / queue);
|
|
2000
1970
|
|
|
2001
|
-
Beam.report_beam_video('End', main.
|
|
2002
|
-
Segment.report_video_event('Video End', main.
|
|
1971
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment);
|
|
1972
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment);
|
|
2003
1973
|
setEndReported(true);
|
|
2004
1974
|
clearInterval(intervalID);
|
|
2005
1975
|
}
|
|
@@ -2012,8 +1982,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1982
|
var queue = Math.floor(duration / 10);
|
|
2013
1983
|
var segment = Math.floor(current / queue);
|
|
2014
1984
|
|
|
2015
|
-
Beam.report_beam_video('Pause', main.
|
|
2016
|
-
Segment.report_video_event('Video Pause', main.
|
|
1985
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
|
|
1986
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2017
1987
|
};
|
|
2018
1988
|
|
|
2019
1989
|
return React__default.createElement(
|
|
@@ -2175,7 +2145,7 @@ var Media = function Media(_ref) {
|
|
|
2175
2145
|
React__default.createElement(
|
|
2176
2146
|
index$2.LazyLoad,
|
|
2177
2147
|
{ once: true },
|
|
2178
|
-
React__default.createElement(reactBootstrap.Figure.Image, _extends
|
|
2148
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2179
2149
|
),
|
|
2180
2150
|
caption && React__default.createElement(
|
|
2181
2151
|
reactBootstrap.Figure.Caption,
|
|
@@ -2187,7 +2157,7 @@ var Media = function Media(_ref) {
|
|
|
2187
2157
|
} else if (caption && caption !== '') {
|
|
2188
2158
|
return React__default.createElement(
|
|
2189
2159
|
'a',
|
|
2190
|
-
_extends
|
|
2160
|
+
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2191
2161
|
href: uploadDoc.asset.url + '?dl='
|
|
2192
2162
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2193
2163
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2242,8 +2212,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2242
2212
|
var duration = player.duration;
|
|
2243
2213
|
var queue = Math.floor(duration / 10);
|
|
2244
2214
|
var segment = Math.floor(current / queue);
|
|
2245
|
-
Beam.report_beam_video('Ready', main.
|
|
2246
|
-
Segment.report_video_event('Video Ready', main.
|
|
2215
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'MP4');
|
|
2216
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'MP4');
|
|
2247
2217
|
};
|
|
2248
2218
|
|
|
2249
2219
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2252,8 +2222,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2252
2222
|
var queue = Math.floor(duration / 10);
|
|
2253
2223
|
var segment = Math.floor(current / queue);
|
|
2254
2224
|
if (!queueProgress.includes(segment)) {
|
|
2255
|
-
Beam.report_beam_video('Segment', main.
|
|
2256
|
-
Segment.report_video_event('Video Segment', main.
|
|
2225
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'MP4');
|
|
2226
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'MP4');
|
|
2257
2227
|
queueProgress.push(segment);
|
|
2258
2228
|
}
|
|
2259
2229
|
};
|
|
@@ -2265,8 +2235,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2265
2235
|
var duration = player.duration;
|
|
2266
2236
|
var queue = Math.floor(duration / 10);
|
|
2267
2237
|
var segment = Math.floor(current / queue);
|
|
2268
|
-
Beam.report_beam_video('Play', main.
|
|
2269
|
-
Segment.report_video_event('Video Play', main.
|
|
2238
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'MP4');
|
|
2239
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'MP4');
|
|
2270
2240
|
|
|
2271
2241
|
if (!playReported) {
|
|
2272
2242
|
event.persist();
|
|
@@ -2286,8 +2256,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2286
2256
|
var queue = Math.floor(duration / 10);
|
|
2287
2257
|
var segment = Math.floor(current / queue);
|
|
2288
2258
|
|
|
2289
|
-
Beam.report_beam_video('End', main.
|
|
2290
|
-
Segment.report_video_event('Video End', main.
|
|
2259
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment, 'MP4');
|
|
2260
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'MP4');
|
|
2291
2261
|
setEndReported(true);
|
|
2292
2262
|
clearInterval(intervalID);
|
|
2293
2263
|
}
|
|
@@ -2299,8 +2269,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2299
2269
|
var duration = player.duration - current;
|
|
2300
2270
|
var queue = Math.floor(duration / 10);
|
|
2301
2271
|
var segment = Math.floor(current / queue);
|
|
2302
|
-
Beam.report_beam_video('Pause', main.
|
|
2303
|
-
Segment.report_video_event('Video Pause', main.
|
|
2272
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2273
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2304
2274
|
};
|
|
2305
2275
|
|
|
2306
2276
|
return React__default.createElement(
|
|
@@ -2361,7 +2331,7 @@ var Video = function Video(_ref) {
|
|
|
2361
2331
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2362
2332
|
//console.log('success:', success.ref)
|
|
2363
2333
|
var player = success.ref;
|
|
2364
|
-
if (_typeof$
|
|
2334
|
+
if (_typeof$2._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2365
2335
|
player.ima3.settings.debug = true;
|
|
2366
2336
|
if (targeting.content_placement && targeting.document_url) {
|
|
2367
2337
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2389,8 +2359,8 @@ var Video = function Video(_ref) {
|
|
|
2389
2359
|
player.pause();
|
|
2390
2360
|
}
|
|
2391
2361
|
|
|
2392
|
-
Beam.report_beam_video('Ready', main.
|
|
2393
|
-
Segment.report_video_event('Video Ready', main.
|
|
2362
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2363
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2394
2364
|
});
|
|
2395
2365
|
|
|
2396
2366
|
// play
|
|
@@ -2399,8 +2369,8 @@ var Video = function Video(_ref) {
|
|
|
2399
2369
|
var current = player.currentTime();
|
|
2400
2370
|
var queue = Math.floor(duration / 10);
|
|
2401
2371
|
var segment = Math.floor(current / queue);
|
|
2402
|
-
Beam.report_beam_video('Play', main.
|
|
2403
|
-
Segment.report_video_event('Video Play', main.
|
|
2372
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2373
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
2374
|
});
|
|
2405
2375
|
|
|
2406
2376
|
// pause
|
|
@@ -2409,8 +2379,8 @@ var Video = function Video(_ref) {
|
|
|
2409
2379
|
var current = player.currentTime();
|
|
2410
2380
|
var queue = Math.floor(duration / 10);
|
|
2411
2381
|
var segment = Math.floor(current / queue);
|
|
2412
|
-
Beam.report_beam_video('Pause', main.
|
|
2413
|
-
Segment.report_video_event('Video Pause', main.
|
|
2382
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2383
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2414
2384
|
});
|
|
2415
2385
|
|
|
2416
2386
|
// end
|
|
@@ -2419,8 +2389,8 @@ var Video = function Video(_ref) {
|
|
|
2419
2389
|
var current = player.currentTime();
|
|
2420
2390
|
var queue = Math.floor(duration / 10);
|
|
2421
2391
|
var segment = Math.floor(current / queue);
|
|
2422
|
-
Beam.report_beam_video('End', main.
|
|
2423
|
-
Segment.report_video_event('Video End', main.
|
|
2392
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2393
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
2394
|
autoplayNextVideo(evt);
|
|
2425
2395
|
});
|
|
2426
2396
|
|
|
@@ -2431,8 +2401,8 @@ var Video = function Video(_ref) {
|
|
|
2431
2401
|
var queue = Math.floor(duration / 10);
|
|
2432
2402
|
var segment = Math.floor(current / queue);
|
|
2433
2403
|
if (!queueProgress.includes(segment)) {
|
|
2434
|
-
Beam.report_beam_video('Segment', main.
|
|
2435
|
-
Segment.report_video_event('Video Segment', main.
|
|
2404
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2405
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2436
2406
|
queueProgress.push(segment);
|
|
2437
2407
|
}
|
|
2438
2408
|
});
|
|
@@ -2443,8 +2413,8 @@ var Video = function Video(_ref) {
|
|
|
2443
2413
|
var id = player.ads.ad.id;
|
|
2444
2414
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2445
2415
|
|
|
2446
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2447
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2416
|
+
Beam.report_beam_ad('AD Started', main.main_18, '', '', '', '', '', adType, duration, id);
|
|
2417
|
+
Segment.report_ad_event('Video Ad Started', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2448
2418
|
});
|
|
2449
2419
|
|
|
2450
2420
|
// ad ended
|
|
@@ -2452,8 +2422,8 @@ var Video = function Video(_ref) {
|
|
|
2452
2422
|
var duration = player.ads.ad.duration;
|
|
2453
2423
|
var id = player.ads.ad.id;
|
|
2454
2424
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2455
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2456
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2425
|
+
Beam.report_beam_ad('AD Ended', main.main_18, '', '', '', '', '', adType, duration, id);
|
|
2426
|
+
Segment.report_ad_event('Video Ad Ended', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2457
2427
|
});
|
|
2458
2428
|
};
|
|
2459
2429
|
|
|
@@ -2883,11 +2853,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2883
2853
|
|
|
2884
2854
|
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; }
|
|
2885
2855
|
|
|
2886
|
-
function
|
|
2856
|
+
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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2887
2857
|
|
|
2888
|
-
function
|
|
2858
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2889
2859
|
|
|
2890
|
-
function
|
|
2860
|
+
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."); }
|
|
2861
|
+
|
|
2862
|
+
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); }
|
|
2863
|
+
|
|
2864
|
+
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; }
|
|
2865
|
+
|
|
2866
|
+
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; }
|
|
2891
2867
|
|
|
2892
2868
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2893
2869
|
|
|
@@ -3017,12 +2993,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3017
2993
|
|
|
3018
2994
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3019
2995
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3020
|
-
|
|
3021
|
-
var
|
|
3022
|
-
|
|
2996
|
+
|
|
2997
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2998
|
+
_step;
|
|
3023
2999
|
|
|
3024
3000
|
try {
|
|
3025
|
-
for (
|
|
3001
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3026
3002
|
var p = _step.value;
|
|
3027
3003
|
|
|
3028
3004
|
if (props$1[p]) {
|
|
@@ -3037,18 +3013,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3037
3013
|
}
|
|
3038
3014
|
}
|
|
3039
3015
|
} catch (err) {
|
|
3040
|
-
|
|
3041
|
-
_iteratorError = err;
|
|
3016
|
+
_iterator.e(err);
|
|
3042
3017
|
} finally {
|
|
3043
|
-
|
|
3044
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3045
|
-
_iterator["return"]();
|
|
3046
|
-
}
|
|
3047
|
-
} finally {
|
|
3048
|
-
if (_didIteratorError) {
|
|
3049
|
-
throw _iteratorError;
|
|
3050
|
-
}
|
|
3051
|
-
}
|
|
3018
|
+
_iterator.f();
|
|
3052
3019
|
}
|
|
3053
3020
|
|
|
3054
3021
|
return config;
|
|
@@ -3195,12 +3162,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3195
3162
|
|
|
3196
3163
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3197
3164
|
|
|
3198
|
-
function
|
|
3165
|
+
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); }; }
|
|
3199
3166
|
|
|
3200
|
-
function
|
|
3167
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3201
3168
|
|
|
3202
3169
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3203
3170
|
|
|
3171
|
+
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; } }
|
|
3172
|
+
|
|
3173
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3174
|
+
|
|
3204
3175
|
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); }
|
|
3205
3176
|
|
|
3206
3177
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3209,14 +3180,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3209
3180
|
|
|
3210
3181
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3211
3182
|
|
|
3212
|
-
var Player =
|
|
3213
|
-
/*#__PURE__*/
|
|
3214
|
-
function (_Component) {
|
|
3183
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3215
3184
|
_inherits(Player, _Component);
|
|
3216
3185
|
|
|
3217
|
-
|
|
3218
|
-
var _getPrototypeOf2;
|
|
3186
|
+
var _super = _createSuper(Player);
|
|
3219
3187
|
|
|
3188
|
+
function Player() {
|
|
3220
3189
|
var _this;
|
|
3221
3190
|
|
|
3222
3191
|
_classCallCheck(this, Player);
|
|
@@ -3225,7 +3194,7 @@ function (_Component) {
|
|
|
3225
3194
|
_args[_key] = arguments[_key];
|
|
3226
3195
|
}
|
|
3227
3196
|
|
|
3228
|
-
_this =
|
|
3197
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3229
3198
|
|
|
3230
3199
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3231
3200
|
|
|
@@ -3550,7 +3519,7 @@ function (_Component) {
|
|
|
3550
3519
|
return null;
|
|
3551
3520
|
}
|
|
3552
3521
|
|
|
3553
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3522
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3554
3523
|
ref: this.ref,
|
|
3555
3524
|
onReady: this.handleReady,
|
|
3556
3525
|
onPlay: this.handlePlay,
|
|
@@ -3611,12 +3580,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3611
3580
|
|
|
3612
3581
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3613
3582
|
|
|
3614
|
-
function
|
|
3583
|
+
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); }; }
|
|
3615
3584
|
|
|
3616
|
-
function
|
|
3585
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3617
3586
|
|
|
3618
3587
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3619
3588
|
|
|
3589
|
+
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; } }
|
|
3590
|
+
|
|
3591
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3592
|
+
|
|
3620
3593
|
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); }
|
|
3621
3594
|
|
|
3622
3595
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3628,14 +3601,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3628
3601
|
function createSinglePlayer(activePlayer) {
|
|
3629
3602
|
var _class, _temp;
|
|
3630
3603
|
|
|
3631
|
-
return _temp = _class =
|
|
3632
|
-
/*#__PURE__*/
|
|
3633
|
-
function (_Component) {
|
|
3604
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3634
3605
|
_inherits(SinglePlayer, _Component);
|
|
3635
3606
|
|
|
3636
|
-
|
|
3637
|
-
var _getPrototypeOf2;
|
|
3607
|
+
var _super = _createSuper(SinglePlayer);
|
|
3638
3608
|
|
|
3609
|
+
function SinglePlayer() {
|
|
3639
3610
|
var _this;
|
|
3640
3611
|
|
|
3641
3612
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3644,7 +3615,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3644
3615
|
args[_key] = arguments[_key];
|
|
3645
3616
|
}
|
|
3646
3617
|
|
|
3647
|
-
_this =
|
|
3618
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3648
3619
|
|
|
3649
3620
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3650
3621
|
|
|
@@ -3712,12 +3683,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3712
3683
|
height = _this$props.height,
|
|
3713
3684
|
Wrapper = _this$props.wrapper;
|
|
3714
3685
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3715
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3686
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3716
3687
|
style: _objectSpread({}, style, {
|
|
3717
3688
|
width: width,
|
|
3718
3689
|
height: height
|
|
3719
3690
|
})
|
|
3720
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3691
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3721
3692
|
ref: this.ref,
|
|
3722
3693
|
activePlayer: activePlayer,
|
|
3723
3694
|
config: this.config
|
|
@@ -3763,23 +3734,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3763
3734
|
|
|
3764
3735
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3765
3736
|
|
|
3766
|
-
function
|
|
3737
|
+
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); }; }
|
|
3767
3738
|
|
|
3768
|
-
function
|
|
3739
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3769
3740
|
|
|
3770
3741
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3771
3742
|
|
|
3743
|
+
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; } }
|
|
3744
|
+
|
|
3745
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3746
|
+
|
|
3772
3747
|
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); }
|
|
3773
3748
|
|
|
3774
3749
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3775
3750
|
|
|
3776
3751
|
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; }
|
|
3777
3752
|
|
|
3778
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3753
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3779
3754
|
|
|
3780
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3755
|
+
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."); }
|
|
3781
3756
|
|
|
3782
|
-
function
|
|
3757
|
+
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); }
|
|
3758
|
+
|
|
3759
|
+
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; }
|
|
3760
|
+
|
|
3761
|
+
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; }
|
|
3783
3762
|
|
|
3784
3763
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3785
3764
|
|
|
@@ -3804,14 +3783,12 @@ function parsePlaylist(url) {
|
|
|
3804
3783
|
return {};
|
|
3805
3784
|
}
|
|
3806
3785
|
|
|
3807
|
-
var YouTube =
|
|
3808
|
-
/*#__PURE__*/
|
|
3809
|
-
function (_Component) {
|
|
3786
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3810
3787
|
_inherits(YouTube, _Component);
|
|
3811
3788
|
|
|
3812
|
-
|
|
3813
|
-
var _getPrototypeOf2;
|
|
3789
|
+
var _super = _createSuper(YouTube);
|
|
3814
3790
|
|
|
3791
|
+
function YouTube() {
|
|
3815
3792
|
var _this;
|
|
3816
3793
|
|
|
3817
3794
|
_classCallCheck(this, YouTube);
|
|
@@ -3820,7 +3797,7 @@ function (_Component) {
|
|
|
3820
3797
|
args[_key] = arguments[_key];
|
|
3821
3798
|
}
|
|
3822
3799
|
|
|
3823
|
-
_this =
|
|
3800
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3824
3801
|
|
|
3825
3802
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3826
3803
|
|
|
@@ -4008,9 +3985,9 @@ function (_Component) {
|
|
|
4008
3985
|
height: '100%',
|
|
4009
3986
|
display: display
|
|
4010
3987
|
};
|
|
4011
|
-
return _react["default"].createElement("div", {
|
|
3988
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4012
3989
|
style: style
|
|
4013
|
-
}, _react["default"].createElement("div", {
|
|
3990
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4014
3991
|
ref: this.ref
|
|
4015
3992
|
}));
|
|
4016
3993
|
}
|
|
@@ -4066,12 +4043,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4066
4043
|
|
|
4067
4044
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4068
4045
|
|
|
4069
|
-
function
|
|
4046
|
+
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); }; }
|
|
4070
4047
|
|
|
4071
|
-
function
|
|
4048
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4072
4049
|
|
|
4073
4050
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4074
4051
|
|
|
4052
|
+
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; } }
|
|
4053
|
+
|
|
4054
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4055
|
+
|
|
4075
4056
|
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); }
|
|
4076
4057
|
|
|
4077
4058
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4080,16 +4061,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4080
4061
|
|
|
4081
4062
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4082
4063
|
var SDK_GLOBAL = 'SC';
|
|
4083
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4064
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4084
4065
|
|
|
4085
|
-
var SoundCloud =
|
|
4086
|
-
/*#__PURE__*/
|
|
4087
|
-
function (_Component) {
|
|
4066
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4088
4067
|
_inherits(SoundCloud, _Component);
|
|
4089
4068
|
|
|
4090
|
-
|
|
4091
|
-
var _getPrototypeOf2;
|
|
4069
|
+
var _super = _createSuper(SoundCloud);
|
|
4092
4070
|
|
|
4071
|
+
function SoundCloud() {
|
|
4093
4072
|
var _this;
|
|
4094
4073
|
|
|
4095
4074
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4098,7 +4077,7 @@ function (_Component) {
|
|
|
4098
4077
|
args[_key] = arguments[_key];
|
|
4099
4078
|
}
|
|
4100
4079
|
|
|
4101
|
-
_this =
|
|
4080
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4102
4081
|
|
|
4103
4082
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4104
4083
|
|
|
@@ -4219,7 +4198,7 @@ function (_Component) {
|
|
|
4219
4198
|
height: '100%',
|
|
4220
4199
|
display: display
|
|
4221
4200
|
};
|
|
4222
|
-
return _react["default"].createElement("iframe", {
|
|
4201
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4223
4202
|
ref: this.ref,
|
|
4224
4203
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4225
4204
|
style: style,
|
|
@@ -4281,12 +4260,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4281
4260
|
|
|
4282
4261
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4283
4262
|
|
|
4284
|
-
function
|
|
4263
|
+
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); }; }
|
|
4285
4264
|
|
|
4286
|
-
function
|
|
4265
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4287
4266
|
|
|
4288
4267
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4289
4268
|
|
|
4269
|
+
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; } }
|
|
4270
|
+
|
|
4271
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4272
|
+
|
|
4290
4273
|
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); }
|
|
4291
4274
|
|
|
4292
4275
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4298,14 +4281,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4298
4281
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4299
4282
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4300
4283
|
|
|
4301
|
-
var Vimeo =
|
|
4302
|
-
/*#__PURE__*/
|
|
4303
|
-
function (_Component) {
|
|
4284
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4304
4285
|
_inherits(Vimeo, _Component);
|
|
4305
4286
|
|
|
4306
|
-
|
|
4307
|
-
var _getPrototypeOf2;
|
|
4287
|
+
var _super = _createSuper(Vimeo);
|
|
4308
4288
|
|
|
4289
|
+
function Vimeo() {
|
|
4309
4290
|
var _this;
|
|
4310
4291
|
|
|
4311
4292
|
_classCallCheck(this, Vimeo);
|
|
@@ -4314,7 +4295,7 @@ function (_Component) {
|
|
|
4314
4295
|
args[_key] = arguments[_key];
|
|
4315
4296
|
}
|
|
4316
4297
|
|
|
4317
|
-
_this =
|
|
4298
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4318
4299
|
|
|
4319
4300
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4320
4301
|
|
|
@@ -4471,7 +4452,7 @@ function (_Component) {
|
|
|
4471
4452
|
overflow: 'hidden',
|
|
4472
4453
|
display: display
|
|
4473
4454
|
};
|
|
4474
|
-
return _react["default"].createElement("div", {
|
|
4455
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4475
4456
|
key: this.props.url,
|
|
4476
4457
|
ref: this.ref,
|
|
4477
4458
|
style: style
|
|
@@ -4531,12 +4512,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4531
4512
|
|
|
4532
4513
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4533
4514
|
|
|
4534
|
-
function
|
|
4515
|
+
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); }; }
|
|
4535
4516
|
|
|
4536
|
-
function
|
|
4517
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4537
4518
|
|
|
4538
4519
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4539
4520
|
|
|
4521
|
+
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; } }
|
|
4522
|
+
|
|
4523
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4524
|
+
|
|
4540
4525
|
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); }
|
|
4541
4526
|
|
|
4542
4527
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4549,14 +4534,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4549
4534
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4550
4535
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4551
4536
|
|
|
4552
|
-
var Facebook =
|
|
4553
|
-
/*#__PURE__*/
|
|
4554
|
-
function (_Component) {
|
|
4537
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4555
4538
|
_inherits(Facebook, _Component);
|
|
4556
4539
|
|
|
4557
|
-
|
|
4558
|
-
var _getPrototypeOf2;
|
|
4540
|
+
var _super = _createSuper(Facebook);
|
|
4559
4541
|
|
|
4542
|
+
function Facebook() {
|
|
4560
4543
|
var _this;
|
|
4561
4544
|
|
|
4562
4545
|
_classCallCheck(this, Facebook);
|
|
@@ -4565,7 +4548,7 @@ function (_Component) {
|
|
|
4565
4548
|
args[_key] = arguments[_key];
|
|
4566
4549
|
}
|
|
4567
4550
|
|
|
4568
|
-
_this =
|
|
4551
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4569
4552
|
|
|
4570
4553
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4571
4554
|
|
|
@@ -4681,7 +4664,7 @@ function (_Component) {
|
|
|
4681
4664
|
width: '100%',
|
|
4682
4665
|
height: '100%'
|
|
4683
4666
|
};
|
|
4684
|
-
return _react["default"].createElement("div", {
|
|
4667
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4685
4668
|
style: style,
|
|
4686
4669
|
id: this.playerID,
|
|
4687
4670
|
className: "fb-video",
|
|
@@ -4741,12 +4724,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4741
4724
|
|
|
4742
4725
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4743
4726
|
|
|
4744
|
-
function
|
|
4727
|
+
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); }; }
|
|
4745
4728
|
|
|
4746
|
-
function
|
|
4729
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4747
4730
|
|
|
4748
4731
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4749
4732
|
|
|
4733
|
+
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; } }
|
|
4734
|
+
|
|
4735
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4736
|
+
|
|
4750
4737
|
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); }
|
|
4751
4738
|
|
|
4752
4739
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4757,14 +4744,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4757
4744
|
var SDK_GLOBAL = 'playerjs';
|
|
4758
4745
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4759
4746
|
|
|
4760
|
-
var Streamable =
|
|
4761
|
-
/*#__PURE__*/
|
|
4762
|
-
function (_Component) {
|
|
4747
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4763
4748
|
_inherits(Streamable, _Component);
|
|
4764
4749
|
|
|
4765
|
-
|
|
4766
|
-
var _getPrototypeOf2;
|
|
4750
|
+
var _super = _createSuper(Streamable);
|
|
4767
4751
|
|
|
4752
|
+
function Streamable() {
|
|
4768
4753
|
var _this;
|
|
4769
4754
|
|
|
4770
4755
|
_classCallCheck(this, Streamable);
|
|
@@ -4773,7 +4758,7 @@ function (_Component) {
|
|
|
4773
4758
|
args[_key] = arguments[_key];
|
|
4774
4759
|
}
|
|
4775
4760
|
|
|
4776
|
-
_this =
|
|
4761
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4777
4762
|
|
|
4778
4763
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4779
4764
|
|
|
@@ -4893,7 +4878,7 @@ function (_Component) {
|
|
|
4893
4878
|
width: '100%',
|
|
4894
4879
|
height: '100%'
|
|
4895
4880
|
};
|
|
4896
|
-
return _react["default"].createElement("iframe", {
|
|
4881
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4897
4882
|
ref: this.ref,
|
|
4898
4883
|
src: "https://streamable.com/o/".concat(id),
|
|
4899
4884
|
frameBorder: "0",
|
|
@@ -4954,12 +4939,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4954
4939
|
|
|
4955
4940
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4956
4941
|
|
|
4957
|
-
function
|
|
4942
|
+
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); }; }
|
|
4958
4943
|
|
|
4959
|
-
function
|
|
4944
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4960
4945
|
|
|
4961
4946
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4962
4947
|
|
|
4948
|
+
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; } }
|
|
4949
|
+
|
|
4950
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4951
|
+
|
|
4963
4952
|
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); }
|
|
4964
4953
|
|
|
4965
4954
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4970,26 +4959,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4970
4959
|
var SDK_GLOBAL = 'Wistia';
|
|
4971
4960
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4972
4961
|
|
|
4973
|
-
var Wistia =
|
|
4974
|
-
/*#__PURE__*/
|
|
4975
|
-
function (_Component) {
|
|
4962
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4976
4963
|
_inherits(Wistia, _Component);
|
|
4977
4964
|
|
|
4978
|
-
|
|
4979
|
-
var _getPrototypeOf2;
|
|
4965
|
+
var _super = _createSuper(Wistia);
|
|
4980
4966
|
|
|
4967
|
+
function Wistia() {
|
|
4981
4968
|
var _this;
|
|
4982
4969
|
|
|
4983
4970
|
_classCallCheck(this, Wistia);
|
|
4984
4971
|
|
|
4985
|
-
for (var _len = arguments.length,
|
|
4986
|
-
|
|
4972
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4973
|
+
_args[_key] = arguments[_key];
|
|
4987
4974
|
}
|
|
4988
4975
|
|
|
4989
|
-
_this =
|
|
4976
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4990
4977
|
|
|
4991
4978
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4992
4979
|
|
|
4980
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4981
|
+
var _this$props;
|
|
4982
|
+
|
|
4983
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4984
|
+
});
|
|
4985
|
+
|
|
4986
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4987
|
+
var _this$props2;
|
|
4988
|
+
|
|
4989
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4990
|
+
});
|
|
4991
|
+
|
|
4992
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4993
|
+
var _this$props3;
|
|
4994
|
+
|
|
4995
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4996
|
+
});
|
|
4997
|
+
|
|
4998
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4999
|
+
var _this$props4;
|
|
5000
|
+
|
|
5001
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5002
|
+
});
|
|
5003
|
+
|
|
4993
5004
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4994
5005
|
_this.callPlayer('mute');
|
|
4995
5006
|
});
|
|
@@ -5011,17 +5022,13 @@ function (_Component) {
|
|
|
5011
5022
|
value: function load(url) {
|
|
5012
5023
|
var _this2 = this;
|
|
5013
5024
|
|
|
5014
|
-
var _this$
|
|
5015
|
-
playing = _this$
|
|
5016
|
-
muted = _this$
|
|
5017
|
-
controls = _this$
|
|
5018
|
-
_onReady = _this$
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
onSeek = _this$props.onSeek,
|
|
5022
|
-
onEnded = _this$props.onEnded,
|
|
5023
|
-
config = _this$props.config,
|
|
5024
|
-
onError = _this$props.onError;
|
|
5025
|
+
var _this$props5 = this.props,
|
|
5026
|
+
playing = _this$props5.playing,
|
|
5027
|
+
muted = _this$props5.muted,
|
|
5028
|
+
controls = _this$props5.controls,
|
|
5029
|
+
_onReady = _this$props5.onReady,
|
|
5030
|
+
config = _this$props5.config,
|
|
5031
|
+
onError = _this$props5.onError;
|
|
5025
5032
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5026
5033
|
window._wq = window._wq || [];
|
|
5027
5034
|
|
|
@@ -5038,19 +5045,28 @@ function (_Component) {
|
|
|
5038
5045
|
|
|
5039
5046
|
_this2.unbind();
|
|
5040
5047
|
|
|
5041
|
-
_this2.player.bind('play', onPlay);
|
|
5048
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5042
5049
|
|
|
5043
|
-
_this2.player.bind('pause', onPause);
|
|
5050
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5044
5051
|
|
|
5045
|
-
_this2.player.bind('seek', onSeek);
|
|
5052
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5046
5053
|
|
|
5047
|
-
_this2.player.bind('end', onEnded);
|
|
5054
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5048
5055
|
|
|
5049
5056
|
_onReady();
|
|
5050
5057
|
}
|
|
5051
5058
|
});
|
|
5052
5059
|
}, onError);
|
|
5053
5060
|
}
|
|
5061
|
+
}, {
|
|
5062
|
+
key: "unbind",
|
|
5063
|
+
value: function unbind() {
|
|
5064
|
+
this.player.unbind('play', this.onPlay);
|
|
5065
|
+
this.player.unbind('pause', this.onPause);
|
|
5066
|
+
this.player.unbind('seek', this.onSeek);
|
|
5067
|
+
this.player.unbind('end', this.onEnded);
|
|
5068
|
+
} // Proxy methods to prevent listener leaks
|
|
5069
|
+
|
|
5054
5070
|
}, {
|
|
5055
5071
|
key: "play",
|
|
5056
5072
|
value: function play() {
|
|
@@ -5061,19 +5077,6 @@ function (_Component) {
|
|
|
5061
5077
|
value: function pause() {
|
|
5062
5078
|
this.callPlayer('pause');
|
|
5063
5079
|
}
|
|
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
|
-
}
|
|
5077
5080
|
}, {
|
|
5078
5081
|
key: "stop",
|
|
5079
5082
|
value: function stop() {
|
|
@@ -5119,7 +5122,7 @@ function (_Component) {
|
|
|
5119
5122
|
width: '100%',
|
|
5120
5123
|
height: '100%'
|
|
5121
5124
|
};
|
|
5122
|
-
return _react["default"].createElement("div", {
|
|
5125
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5123
5126
|
key: id,
|
|
5124
5127
|
className: className,
|
|
5125
5128
|
style: style
|
|
@@ -5179,12 +5182,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5179
5182
|
|
|
5180
5183
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5181
5184
|
|
|
5182
|
-
function
|
|
5185
|
+
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); }; }
|
|
5183
5186
|
|
|
5184
|
-
function
|
|
5187
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5185
5188
|
|
|
5186
5189
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5187
5190
|
|
|
5191
|
+
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; } }
|
|
5192
|
+
|
|
5193
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5194
|
+
|
|
5188
5195
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5189
5196
|
|
|
5190
5197
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5197,14 +5204,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5197
5204
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5198
5205
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5199
5206
|
|
|
5200
|
-
var Twitch =
|
|
5201
|
-
/*#__PURE__*/
|
|
5202
|
-
function (_Component) {
|
|
5207
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5203
5208
|
_inherits(Twitch, _Component);
|
|
5204
5209
|
|
|
5205
|
-
|
|
5206
|
-
var _getPrototypeOf2;
|
|
5210
|
+
var _super = _createSuper(Twitch);
|
|
5207
5211
|
|
|
5212
|
+
function Twitch() {
|
|
5208
5213
|
var _this;
|
|
5209
5214
|
|
|
5210
5215
|
_classCallCheck(this, Twitch);
|
|
@@ -5213,7 +5218,7 @@ function (_Component) {
|
|
|
5213
5218
|
args[_key] = arguments[_key];
|
|
5214
5219
|
}
|
|
5215
5220
|
|
|
5216
|
-
_this =
|
|
5221
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5217
5222
|
|
|
5218
5223
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5219
5224
|
|
|
@@ -5334,7 +5339,7 @@ function (_Component) {
|
|
|
5334
5339
|
width: '100%',
|
|
5335
5340
|
height: '100%'
|
|
5336
5341
|
};
|
|
5337
|
-
return _react["default"].createElement("div", {
|
|
5342
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5338
5343
|
style: style,
|
|
5339
5344
|
id: this.playerID
|
|
5340
5345
|
});
|
|
@@ -5387,11 +5392,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5387
5392
|
|
|
5388
5393
|
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; }
|
|
5389
5394
|
|
|
5390
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5395
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5396
|
+
|
|
5397
|
+
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."); }
|
|
5391
5398
|
|
|
5392
|
-
function
|
|
5399
|
+
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); }
|
|
5393
5400
|
|
|
5394
|
-
function
|
|
5401
|
+
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; }
|
|
5402
|
+
|
|
5403
|
+
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; }
|
|
5395
5404
|
|
|
5396
5405
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5397
5406
|
|
|
@@ -5401,12 +5410,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5401
5410
|
|
|
5402
5411
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5403
5412
|
|
|
5404
|
-
function
|
|
5413
|
+
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); }; }
|
|
5405
5414
|
|
|
5406
|
-
function
|
|
5415
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5407
5416
|
|
|
5408
5417
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5409
5418
|
|
|
5419
|
+
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; } }
|
|
5420
|
+
|
|
5421
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5422
|
+
|
|
5410
5423
|
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); }
|
|
5411
5424
|
|
|
5412
5425
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5418,14 +5431,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5418
5431
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5419
5432
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5420
5433
|
|
|
5421
|
-
var DailyMotion =
|
|
5422
|
-
/*#__PURE__*/
|
|
5423
|
-
function (_Component) {
|
|
5434
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5424
5435
|
_inherits(DailyMotion, _Component);
|
|
5425
5436
|
|
|
5426
|
-
|
|
5427
|
-
var _getPrototypeOf2;
|
|
5437
|
+
var _super = _createSuper(DailyMotion);
|
|
5428
5438
|
|
|
5439
|
+
function DailyMotion() {
|
|
5429
5440
|
var _this;
|
|
5430
5441
|
|
|
5431
5442
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5434,7 +5445,7 @@ function (_Component) {
|
|
|
5434
5445
|
args[_key] = arguments[_key];
|
|
5435
5446
|
}
|
|
5436
5447
|
|
|
5437
|
-
_this =
|
|
5448
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5438
5449
|
|
|
5439
5450
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5440
5451
|
|
|
@@ -5563,9 +5574,9 @@ function (_Component) {
|
|
|
5563
5574
|
height: '100%',
|
|
5564
5575
|
display: display
|
|
5565
5576
|
};
|
|
5566
|
-
return _react["default"].createElement("div", {
|
|
5577
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5567
5578
|
style: style
|
|
5568
|
-
}, _react["default"].createElement("div", {
|
|
5579
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5569
5580
|
ref: this.ref
|
|
5570
5581
|
}));
|
|
5571
5582
|
}
|
|
@@ -5623,12 +5634,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5623
5634
|
|
|
5624
5635
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5625
5636
|
|
|
5626
|
-
function
|
|
5637
|
+
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); }; }
|
|
5627
5638
|
|
|
5628
|
-
function
|
|
5639
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5629
5640
|
|
|
5630
5641
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5631
5642
|
|
|
5643
|
+
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; } }
|
|
5644
|
+
|
|
5645
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5646
|
+
|
|
5632
5647
|
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); }
|
|
5633
5648
|
|
|
5634
5649
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5639,14 +5654,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5639
5654
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5640
5655
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5641
5656
|
|
|
5642
|
-
var Mixcloud =
|
|
5643
|
-
/*#__PURE__*/
|
|
5644
|
-
function (_Component) {
|
|
5657
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5645
5658
|
_inherits(Mixcloud, _Component);
|
|
5646
5659
|
|
|
5647
|
-
|
|
5648
|
-
var _getPrototypeOf2;
|
|
5660
|
+
var _super = _createSuper(Mixcloud);
|
|
5649
5661
|
|
|
5662
|
+
function Mixcloud() {
|
|
5650
5663
|
var _this;
|
|
5651
5664
|
|
|
5652
5665
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5655,7 +5668,7 @@ function (_Component) {
|
|
|
5655
5668
|
args[_key] = arguments[_key];
|
|
5656
5669
|
}
|
|
5657
5670
|
|
|
5658
|
-
_this =
|
|
5671
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5659
5672
|
|
|
5660
5673
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5661
5674
|
|
|
@@ -5758,7 +5771,7 @@ function (_Component) {
|
|
|
5758
5771
|
})); // We have to give the iframe a key here to prevent a
|
|
5759
5772
|
// weird dialog appearing when loading a new track
|
|
5760
5773
|
|
|
5761
|
-
return _react["default"].createElement("iframe", {
|
|
5774
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5762
5775
|
key: id,
|
|
5763
5776
|
ref: this.ref,
|
|
5764
5777
|
style: style,
|
|
@@ -5818,23 +5831,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5818
5831
|
|
|
5819
5832
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5820
5833
|
|
|
5821
|
-
function
|
|
5834
|
+
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); }; }
|
|
5822
5835
|
|
|
5823
|
-
function
|
|
5836
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5824
5837
|
|
|
5825
5838
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5826
5839
|
|
|
5840
|
+
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; } }
|
|
5841
|
+
|
|
5842
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5843
|
+
|
|
5827
5844
|
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); }
|
|
5828
5845
|
|
|
5829
5846
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5830
5847
|
|
|
5831
5848
|
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; }
|
|
5832
5849
|
|
|
5850
|
+
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; } } }; }
|
|
5851
|
+
|
|
5852
|
+
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); }
|
|
5853
|
+
|
|
5854
|
+
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; }
|
|
5855
|
+
|
|
5833
5856
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5834
5857
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5835
5858
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5836
5859
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5837
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5860
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5838
5861
|
var HLS_GLOBAL = 'Hls';
|
|
5839
5862
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5840
5863
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5843,12 +5866,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5843
5866
|
|
|
5844
5867
|
function canPlay(url) {
|
|
5845
5868
|
if (url instanceof Array) {
|
|
5846
|
-
var
|
|
5847
|
-
|
|
5848
|
-
var _iteratorError = undefined;
|
|
5869
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5870
|
+
_step;
|
|
5849
5871
|
|
|
5850
5872
|
try {
|
|
5851
|
-
for (
|
|
5873
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5852
5874
|
var item = _step.value;
|
|
5853
5875
|
|
|
5854
5876
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5860,18 +5882,9 @@ function canPlay(url) {
|
|
|
5860
5882
|
}
|
|
5861
5883
|
}
|
|
5862
5884
|
} catch (err) {
|
|
5863
|
-
|
|
5864
|
-
_iteratorError = err;
|
|
5885
|
+
_iterator.e(err);
|
|
5865
5886
|
} finally {
|
|
5866
|
-
|
|
5867
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5868
|
-
_iterator["return"]();
|
|
5869
|
-
}
|
|
5870
|
-
} finally {
|
|
5871
|
-
if (_didIteratorError) {
|
|
5872
|
-
throw _iteratorError;
|
|
5873
|
-
}
|
|
5874
|
-
}
|
|
5887
|
+
_iterator.f();
|
|
5875
5888
|
}
|
|
5876
5889
|
|
|
5877
5890
|
return false;
|
|
@@ -5895,14 +5908,12 @@ function canEnablePIP(url) {
|
|
|
5895
5908
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5896
5909
|
}
|
|
5897
5910
|
|
|
5898
|
-
var FilePlayer =
|
|
5899
|
-
/*#__PURE__*/
|
|
5900
|
-
function (_Component) {
|
|
5911
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5901
5912
|
_inherits(FilePlayer, _Component);
|
|
5902
5913
|
|
|
5903
|
-
|
|
5904
|
-
var _getPrototypeOf2;
|
|
5914
|
+
var _super = _createSuper(FilePlayer);
|
|
5905
5915
|
|
|
5916
|
+
function FilePlayer() {
|
|
5906
5917
|
var _this;
|
|
5907
5918
|
|
|
5908
5919
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5911,7 +5922,7 @@ function (_Component) {
|
|
|
5911
5922
|
_args[_key] = arguments[_key];
|
|
5912
5923
|
}
|
|
5913
5924
|
|
|
5914
|
-
_this =
|
|
5925
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5915
5926
|
|
|
5916
5927
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5917
5928
|
var _this$props;
|
|
@@ -5998,19 +6009,19 @@ function (_Component) {
|
|
|
5998
6009
|
|
|
5999
6010
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6000
6011
|
if (typeof source === 'string') {
|
|
6001
|
-
return _react["default"].createElement("source", {
|
|
6012
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6002
6013
|
key: index,
|
|
6003
6014
|
src: source
|
|
6004
6015
|
});
|
|
6005
6016
|
}
|
|
6006
6017
|
|
|
6007
|
-
return _react["default"].createElement("source", _extends({
|
|
6018
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6008
6019
|
key: index
|
|
6009
6020
|
}, source));
|
|
6010
6021
|
});
|
|
6011
6022
|
|
|
6012
6023
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6013
|
-
return _react["default"].createElement("track", _extends({
|
|
6024
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6014
6025
|
key: index
|
|
6015
6026
|
}, track));
|
|
6016
6027
|
});
|
|
@@ -6048,6 +6059,10 @@ function (_Component) {
|
|
|
6048
6059
|
key: "componentWillUnmount",
|
|
6049
6060
|
value: function componentWillUnmount() {
|
|
6050
6061
|
this.removeListeners(this.player);
|
|
6062
|
+
|
|
6063
|
+
if (this.hls) {
|
|
6064
|
+
this.hls.destroy();
|
|
6065
|
+
}
|
|
6051
6066
|
}
|
|
6052
6067
|
}, {
|
|
6053
6068
|
key: "addListeners",
|
|
@@ -6178,10 +6193,6 @@ function (_Component) {
|
|
|
6178
6193
|
value: function stop() {
|
|
6179
6194
|
this.player.removeAttribute('src');
|
|
6180
6195
|
|
|
6181
|
-
if (this.hls) {
|
|
6182
|
-
this.hls.destroy();
|
|
6183
|
-
}
|
|
6184
|
-
|
|
6185
6196
|
if (this.dash) {
|
|
6186
6197
|
this.dash.reset();
|
|
6187
6198
|
}
|
|
@@ -6293,7 +6304,7 @@ function (_Component) {
|
|
|
6293
6304
|
width: width === 'auto' ? width : '100%',
|
|
6294
6305
|
height: height === 'auto' ? height : '100%'
|
|
6295
6306
|
};
|
|
6296
|
-
return _react["default"].createElement(Element, _extends({
|
|
6307
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6297
6308
|
ref: this.ref,
|
|
6298
6309
|
src: this.getSource(url),
|
|
6299
6310
|
style: style,
|
|
@@ -6383,12 +6394,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6383
6394
|
|
|
6384
6395
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6385
6396
|
|
|
6386
|
-
function
|
|
6397
|
+
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); }; }
|
|
6387
6398
|
|
|
6388
|
-
function
|
|
6399
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6389
6400
|
|
|
6390
6401
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6391
6402
|
|
|
6403
|
+
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; } }
|
|
6404
|
+
|
|
6405
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6406
|
+
|
|
6392
6407
|
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); }
|
|
6393
6408
|
|
|
6394
6409
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6397,14 +6412,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6397
6412
|
|
|
6398
6413
|
var ICON_SIZE = '64px';
|
|
6399
6414
|
|
|
6400
|
-
var Preview =
|
|
6401
|
-
/*#__PURE__*/
|
|
6402
|
-
function (_Component) {
|
|
6415
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6403
6416
|
_inherits(Preview, _Component);
|
|
6404
6417
|
|
|
6405
|
-
|
|
6406
|
-
var _getPrototypeOf2;
|
|
6418
|
+
var _super = _createSuper(Preview);
|
|
6407
6419
|
|
|
6420
|
+
function Preview() {
|
|
6408
6421
|
var _this;
|
|
6409
6422
|
|
|
6410
6423
|
_classCallCheck(this, Preview);
|
|
@@ -6413,7 +6426,7 @@ function (_Component) {
|
|
|
6413
6426
|
args[_key] = arguments[_key];
|
|
6414
6427
|
}
|
|
6415
6428
|
|
|
6416
|
-
_this =
|
|
6429
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6417
6430
|
|
|
6418
6431
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6419
6432
|
|
|
@@ -6511,15 +6524,15 @@ function (_Component) {
|
|
|
6511
6524
|
}
|
|
6512
6525
|
};
|
|
6513
6526
|
|
|
6514
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6527
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6515
6528
|
style: styles.shadow,
|
|
6516
6529
|
className: "react-player__shadow"
|
|
6517
|
-
}, _react["default"].createElement("div", {
|
|
6530
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6518
6531
|
style: styles.playIcon,
|
|
6519
6532
|
className: "react-player__play-icon"
|
|
6520
6533
|
}));
|
|
6521
6534
|
|
|
6522
|
-
return _react["default"].createElement("div", {
|
|
6535
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6523
6536
|
style: styles.preview,
|
|
6524
6537
|
className: "react-player__preview",
|
|
6525
6538
|
onClick: onClick
|
|
@@ -6556,6 +6569,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6556
6569
|
|
|
6557
6570
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6558
6571
|
|
|
6572
|
+
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; } } }; }
|
|
6573
|
+
|
|
6574
|
+
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); }
|
|
6575
|
+
|
|
6576
|
+
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; }
|
|
6577
|
+
|
|
6559
6578
|
var PRELOAD_PLAYERS = [{
|
|
6560
6579
|
Player: YouTube_1.YouTube,
|
|
6561
6580
|
configKey: 'youtube',
|
|
@@ -6576,16 +6595,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6576
6595
|
|
|
6577
6596
|
function renderPreloadPlayers(url, controls, config) {
|
|
6578
6597
|
var players = [];
|
|
6579
|
-
|
|
6580
|
-
var
|
|
6581
|
-
|
|
6598
|
+
|
|
6599
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6600
|
+
_step;
|
|
6582
6601
|
|
|
6583
6602
|
try {
|
|
6584
|
-
for (
|
|
6603
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6585
6604
|
var player = _step.value;
|
|
6586
6605
|
|
|
6587
6606
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6588
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6607
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6589
6608
|
key: player.Player.displayName,
|
|
6590
6609
|
activePlayer: player.Player,
|
|
6591
6610
|
url: player.url,
|
|
@@ -6597,18 +6616,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6597
6616
|
}
|
|
6598
6617
|
}
|
|
6599
6618
|
} catch (err) {
|
|
6600
|
-
|
|
6601
|
-
_iteratorError = err;
|
|
6619
|
+
_iterator.e(err);
|
|
6602
6620
|
} finally {
|
|
6603
|
-
|
|
6604
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6605
|
-
_iterator["return"]();
|
|
6606
|
-
}
|
|
6607
|
-
} finally {
|
|
6608
|
-
if (_didIteratorError) {
|
|
6609
|
-
throw _iteratorError;
|
|
6610
|
-
}
|
|
6611
|
-
}
|
|
6621
|
+
_iterator.f();
|
|
6612
6622
|
}
|
|
6613
6623
|
|
|
6614
6624
|
return players;
|
|
@@ -6732,13 +6742,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6732
6742
|
|
|
6733
6743
|
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); }
|
|
6734
6744
|
|
|
6735
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6745
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6746
|
+
|
|
6747
|
+
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."); }
|
|
6748
|
+
|
|
6749
|
+
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); }
|
|
6736
6750
|
|
|
6737
|
-
function
|
|
6751
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6738
6752
|
|
|
6739
|
-
function
|
|
6753
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6740
6754
|
|
|
6741
|
-
function
|
|
6755
|
+
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; }
|
|
6742
6756
|
|
|
6743
6757
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6744
6758
|
|
|
@@ -6746,12 +6760,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6746
6760
|
|
|
6747
6761
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6748
6762
|
|
|
6749
|
-
function
|
|
6763
|
+
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); }; }
|
|
6750
6764
|
|
|
6751
|
-
function
|
|
6765
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6752
6766
|
|
|
6753
6767
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6754
6768
|
|
|
6769
|
+
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; } }
|
|
6770
|
+
|
|
6771
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6772
|
+
|
|
6755
6773
|
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); }
|
|
6756
6774
|
|
|
6757
6775
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6761,14 +6779,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6761
6779
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6762
6780
|
var customPlayers = [];
|
|
6763
6781
|
|
|
6764
|
-
var ReactPlayer =
|
|
6765
|
-
/*#__PURE__*/
|
|
6766
|
-
function (_Component) {
|
|
6782
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6767
6783
|
_inherits(ReactPlayer, _Component);
|
|
6768
6784
|
|
|
6769
|
-
|
|
6770
|
-
var _getPrototypeOf2;
|
|
6785
|
+
var _super = _createSuper(ReactPlayer);
|
|
6771
6786
|
|
|
6787
|
+
function ReactPlayer() {
|
|
6772
6788
|
var _this;
|
|
6773
6789
|
|
|
6774
6790
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6777,7 +6793,7 @@ function (_Component) {
|
|
|
6777
6793
|
args[_key] = arguments[_key];
|
|
6778
6794
|
}
|
|
6779
6795
|
|
|
6780
|
-
_this =
|
|
6796
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6781
6797
|
|
|
6782
6798
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6783
6799
|
|
|
@@ -6888,7 +6904,7 @@ function (_Component) {
|
|
|
6888
6904
|
key: "renderActivePlayer",
|
|
6889
6905
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6890
6906
|
if (!url) return null;
|
|
6891
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6907
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6892
6908
|
key: activePlayer.displayName,
|
|
6893
6909
|
ref: this.activePlayerRef,
|
|
6894
6910
|
config: this.config,
|
|
@@ -6925,14 +6941,14 @@ function (_Component) {
|
|
|
6925
6941
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6926
6942
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6927
6943
|
|
|
6928
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6944
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6929
6945
|
url: url,
|
|
6930
6946
|
light: light,
|
|
6931
6947
|
playIcon: playIcon,
|
|
6932
6948
|
onClick: this.handleClickPreview
|
|
6933
6949
|
});
|
|
6934
6950
|
|
|
6935
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6951
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6936
6952
|
ref: this.wrapperRef,
|
|
6937
6953
|
style: _objectSpread({}, style, {
|
|
6938
6954
|
width: width,
|
|
@@ -7254,8 +7270,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7254
7270
|
var duration = player.getDuration();
|
|
7255
7271
|
var queue = Math.floor(duration / 10);
|
|
7256
7272
|
var segment = Math.floor(current / queue);
|
|
7257
|
-
Beam.report_beam_video('Ready', main.
|
|
7258
|
-
Segment.report_video_event('Video Ready', main.
|
|
7273
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
|
|
7274
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
|
|
7259
7275
|
//autoplay
|
|
7260
7276
|
|
|
7261
7277
|
//Small pause before starting next video
|
|
@@ -7275,8 +7291,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7275
7291
|
var queue = Math.floor(duration / 10);
|
|
7276
7292
|
var segment = Math.floor(current / queue);
|
|
7277
7293
|
|
|
7278
|
-
Beam.report_beam_video('End', main.
|
|
7279
|
-
Segment.report_video_event('Video End', main.
|
|
7294
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment);
|
|
7295
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment);
|
|
7280
7296
|
setEndReported(true);
|
|
7281
7297
|
clearInterval(intervalID);
|
|
7282
7298
|
}
|
|
@@ -7326,8 +7342,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7326
7342
|
var queue = Math.floor(duration / 10);
|
|
7327
7343
|
var segment = Math.floor(current / queue);
|
|
7328
7344
|
if (!queueProgress.includes(segment)) {
|
|
7329
|
-
Beam.report_beam_video('Segment', main.
|
|
7330
|
-
Segment.report_video_event('Video Segment', main.
|
|
7345
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
|
|
7346
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
|
|
7331
7347
|
queueProgress.push(segment);
|
|
7332
7348
|
}
|
|
7333
7349
|
};
|
|
@@ -7340,8 +7356,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7340
7356
|
var queue = Math.floor(duration / 10);
|
|
7341
7357
|
var segment = Math.floor(current / queue);
|
|
7342
7358
|
|
|
7343
|
-
Beam.report_beam_video('Play', main.
|
|
7344
|
-
Segment.report_video_event('Video Play', main.
|
|
7359
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment);
|
|
7360
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
|
|
7345
7361
|
|
|
7346
7362
|
if (!playReported) {
|
|
7347
7363
|
setPlayReported(true);
|
|
@@ -7359,8 +7375,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7359
7375
|
var queue = Math.floor(duration / 10);
|
|
7360
7376
|
var segment = Math.floor(current / queue);
|
|
7361
7377
|
|
|
7362
|
-
Beam.report_beam_video('Pause', main.
|
|
7363
|
-
Segment.report_video_event('Video Pause', main.
|
|
7378
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
|
|
7379
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
7364
7380
|
};
|
|
7365
7381
|
|
|
7366
7382
|
// Youtube Options
|
|
@@ -7478,7 +7494,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7494
|
React__default.createElement(
|
|
7479
7495
|
'div',
|
|
7480
7496
|
{ className: 'vid-text' },
|
|
7481
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends
|
|
7497
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7482
7498
|
),
|
|
7483
7499
|
React__default.createElement(
|
|
7484
7500
|
'style',
|
|
@@ -7796,7 +7812,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7796
7812
|
);
|
|
7797
7813
|
};
|
|
7798
7814
|
|
|
7799
|
-
var numberOfPaginations = main.
|
|
7815
|
+
var numberOfPaginations = main.main_42 ? 4 : 10;
|
|
7800
7816
|
|
|
7801
7817
|
var Quiz = function Quiz(_ref) {
|
|
7802
7818
|
var quizzes = _ref.quizzes,
|
|
@@ -7916,7 +7932,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7916
7932
|
var renderPagination = function renderPagination() {
|
|
7917
7933
|
return React__default.createElement(
|
|
7918
7934
|
Pagination,
|
|
7919
|
-
{ className: 'p-0 m-0', size: main.
|
|
7935
|
+
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
7920
7936
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7921
7937
|
return changePage('first');
|
|
7922
7938
|
}, disabled: currentPage === 1 }),
|
|
@@ -8229,7 +8245,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8229
8245
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8230
8246
|
React__default.createElement(
|
|
8231
8247
|
'a',
|
|
8232
|
-
_extends
|
|
8248
|
+
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8233
8249
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8234
8250
|
React__default.createElement(
|
|
8235
8251
|
'div',
|
|
@@ -8517,7 +8533,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8517
8533
|
|
|
8518
8534
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8519
8535
|
if (biography) {
|
|
8520
|
-
return React__default.createElement(BlockContent.BlockContent, _extends
|
|
8536
|
+
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8521
8537
|
}
|
|
8522
8538
|
};
|
|
8523
8539
|
|
|
@@ -8603,7 +8619,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8603
8619
|
//console.log('useLayoutEffect')
|
|
8604
8620
|
if (!firstLoad) {
|
|
8605
8621
|
setUpArrowClicked(false);
|
|
8606
|
-
if (main.
|
|
8622
|
+
if (main.main_43) {
|
|
8607
8623
|
grabLoadedAds();
|
|
8608
8624
|
} else {
|
|
8609
8625
|
scrollToArticle();
|
|
@@ -8627,7 +8643,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8627
8643
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8628
8644
|
if (pageview) pageview(path);
|
|
8629
8645
|
|
|
8630
|
-
if (!main.
|
|
8646
|
+
if (!main.main_43) {
|
|
8631
8647
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8632
8648
|
if (window.googletag && googletag.pubadsReady) {
|
|
8633
8649
|
index.lib_3.refresh();
|
|
@@ -8635,7 +8651,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8635
8651
|
});
|
|
8636
8652
|
}
|
|
8637
8653
|
//Refresh leaderboard ad on mobile
|
|
8638
|
-
if (main.
|
|
8654
|
+
if (main.main_43) {
|
|
8639
8655
|
var leaderboardSlotId = '';
|
|
8640
8656
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8641
8657
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8704,7 +8720,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8704
8720
|
React__default.createElement(
|
|
8705
8721
|
'div',
|
|
8706
8722
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8707
|
-
main.
|
|
8723
|
+
main.main_43 && Ads.map(function (ad, index) {
|
|
8708
8724
|
if (index === 0) {
|
|
8709
8725
|
return React__default.createElement(
|
|
8710
8726
|
'div',
|
|
@@ -8795,7 +8811,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8795
8811
|
React__default.createElement(
|
|
8796
8812
|
'div',
|
|
8797
8813
|
{ className: 'mt-2 mb-2' },
|
|
8798
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
8814
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8799
8815
|
serializers: getSerializers,
|
|
8800
8816
|
videoAccountIDs: accountIDs,
|
|
8801
8817
|
blocks: article.text,
|
|
@@ -8826,7 +8842,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8826
8842
|
React__default.createElement(
|
|
8827
8843
|
'div',
|
|
8828
8844
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8829
|
-
main.
|
|
8845
|
+
main.main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8830
8846
|
if (innerIndex === 0) {
|
|
8831
8847
|
return React__default.createElement(
|
|
8832
8848
|
'div',
|
|
@@ -8913,7 +8929,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8913
8929
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8914
8930
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8915
8931
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8916
|
-
React__default.createElement('img', _extends
|
|
8932
|
+
React__default.createElement('img', _extends._extends({
|
|
8917
8933
|
style: figureImageStyle,
|
|
8918
8934
|
className: 'figure-image',
|
|
8919
8935
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9122,7 +9138,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9122
9138
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9123
9139
|
image.link ? React__default.createElement(
|
|
9124
9140
|
'a',
|
|
9125
|
-
_extends
|
|
9141
|
+
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9126
9142
|
React__default.createElement(
|
|
9127
9143
|
'div',
|
|
9128
9144
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9214,7 +9230,7 @@ exports.__esModule = true;
|
|
|
9214
9230
|
|
|
9215
9231
|
|
|
9216
9232
|
|
|
9217
|
-
var _extends3 = _interopRequireDefault(_extends
|
|
9233
|
+
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9218
9234
|
|
|
9219
9235
|
|
|
9220
9236
|
|
|
@@ -9527,7 +9543,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9527
9543
|
return React__default.createElement(
|
|
9528
9544
|
'div',
|
|
9529
9545
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9530
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
9546
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9531
9547
|
);
|
|
9532
9548
|
})
|
|
9533
9549
|
);
|