@mjhls/mjh-framework 1.0.842-beta.0 → 1.0.843
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-55587a4e.js → ADInfeed-6810812f.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-5c3d8260.js → ADlgInfeed-12b1f200.js} +1 -1
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +12 -905
- package/dist/cjs/AlgoliaSearch.js +391 -264
- 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 +61 -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 +37 -1133
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +22 -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 +1064 -1087
- 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-8bbc989f.js → SeriesSlider-dad08884.js} +11 -11
- package/dist/cjs/SideFooter.js +10 -10
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-ad15dd61.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 +61 -61
- 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-ac18d02c.js → index-52c2d039.js} +518 -502
- 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 +44 -43
- package/dist/cjs/{inherits-452ff02c.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-bb665cdc.js → ADInfeed-9e41b90e.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-2897d78f.js → ADlgInfeed-519eade4.js} +1 -1
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +15 -15
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +159 -32
- 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 +61 -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 +36 -1131
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +22 -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 +1064 -1087
- 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-a866bb21.js → SeriesSlider-5ba2e521.js} +11 -11
- package/dist/esm/SideFooter.js +10 -10
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-9cc36413.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 +37 -37
- 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-4877b617.js → asyncToGenerator-e1a2f43a.js} +6 -6
- 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-8dbb97f3.js → index-4f60bd57.js} +518 -502
- 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-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 +44 -43
- 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 -111
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- 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 = require('./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,28 +15,28 @@ 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
29
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
30
|
-
var BlockContent = require('./BlockContent-
|
|
30
|
+
var BlockContent = require('./BlockContent-bac780ac.js');
|
|
31
31
|
var index$3 = require('./index-187c967e.js');
|
|
32
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
33
33
|
var reactBootstrap = require('react-bootstrap');
|
|
34
|
-
var index_esm = require('./index.esm-
|
|
34
|
+
var index_esm = require('./index.esm-974f47d9.js');
|
|
35
35
|
var util = require('./util-f2c1b65b.js');
|
|
36
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
36
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-05029198.js');
|
|
37
37
|
var Head = _interopDefault(require('next/head'));
|
|
38
38
|
var SocialShare = require('./SocialShare.js');
|
|
39
|
-
var _objectToArray = require('./_object-to-array-
|
|
39
|
+
var _objectToArray = require('./_object-to-array-c3aeb51d.js');
|
|
40
40
|
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
41
|
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
42
|
|
|
@@ -104,21 +104,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
// do not edit .js files directly - edit src/index.jst
|
|
108
|
+
|
|
109
|
+
|
|
110
110
|
|
|
111
111
|
var fastDeepEqual = function equal(a, b) {
|
|
112
112
|
if (a === b) return true;
|
|
113
113
|
|
|
114
114
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
115
|
-
|
|
116
|
-
, arrB = isArray(b)
|
|
117
|
-
, i
|
|
118
|
-
, length
|
|
119
|
-
, key;
|
|
115
|
+
if (a.constructor !== b.constructor) return false;
|
|
120
116
|
|
|
121
|
-
|
|
117
|
+
var length, i, keys;
|
|
118
|
+
if (Array.isArray(a)) {
|
|
122
119
|
length = a.length;
|
|
123
120
|
if (length != b.length) return false;
|
|
124
121
|
for (i = length; i-- !== 0;)
|
|
@@ -126,35 +123,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
126
123
|
return true;
|
|
127
124
|
}
|
|
128
125
|
|
|
129
|
-
if (arrA != arrB) return false;
|
|
130
126
|
|
|
131
|
-
var dateA = a instanceof Date
|
|
132
|
-
, dateB = b instanceof Date;
|
|
133
|
-
if (dateA != dateB) return false;
|
|
134
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
135
127
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (
|
|
139
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
128
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
129
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
130
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
140
131
|
|
|
141
|
-
|
|
132
|
+
keys = Object.keys(a);
|
|
142
133
|
length = keys.length;
|
|
143
|
-
|
|
144
|
-
if (length !== keyList(b).length)
|
|
145
|
-
return false;
|
|
134
|
+
if (length !== Object.keys(b).length) return false;
|
|
146
135
|
|
|
147
136
|
for (i = length; i-- !== 0;)
|
|
148
|
-
if (!
|
|
137
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
149
138
|
|
|
150
139
|
for (i = length; i-- !== 0;) {
|
|
151
|
-
key = keys[i];
|
|
140
|
+
var key = keys[i];
|
|
141
|
+
|
|
152
142
|
if (!equal(a[key], b[key])) return false;
|
|
153
143
|
}
|
|
154
144
|
|
|
155
145
|
return true;
|
|
156
146
|
}
|
|
157
147
|
|
|
148
|
+
// true if both NaN, false otherwise
|
|
158
149
|
return a!==a && b!==b;
|
|
159
150
|
};
|
|
160
151
|
|
|
@@ -1577,199 +1568,239 @@ module.exports = exports['default'];
|
|
|
1577
1568
|
|
|
1578
1569
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1579
1570
|
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
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; };
|
|
1571
|
+
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); }
|
|
1583
1572
|
|
|
1584
1573
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1585
1574
|
|
|
1586
|
-
function
|
|
1575
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1576
|
+
|
|
1577
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1578
|
+
|
|
1579
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1580
|
+
|
|
1581
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1582
|
+
|
|
1583
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1584
|
+
|
|
1585
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1586
|
+
|
|
1587
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1588
|
+
|
|
1589
|
+
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; } }
|
|
1590
|
+
|
|
1591
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1592
|
+
|
|
1593
|
+
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; }
|
|
1587
1594
|
|
|
1588
|
-
function
|
|
1595
|
+
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; }
|
|
1589
1596
|
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
*
|
|
1593
|
-
*
|
|
1594
|
-
* @param {Object}
|
|
1597
|
+
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; }
|
|
1598
|
+
/**
|
|
1599
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1600
|
+
*
|
|
1601
|
+
* @param {Object} prevProps
|
|
1602
|
+
* @param {Object} props
|
|
1595
1603
|
*/
|
|
1604
|
+
|
|
1596
1605
|
function shouldUpdateVideo(prevProps, props) {
|
|
1597
1606
|
// A changing video should always trigger an update
|
|
1598
1607
|
if (prevProps.videoId !== props.videoId) {
|
|
1599
1608
|
return true;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1609
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
1610
|
// update.
|
|
1611
|
+
|
|
1612
|
+
|
|
1604
1613
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1605
1614
|
var vars = props.opts.playerVars || {};
|
|
1606
|
-
|
|
1607
1615
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1608
1616
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
*
|
|
1612
|
-
*
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Object} opts
|
|
1617
|
+
/**
|
|
1618
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1619
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1620
|
+
* player reset is necessary.
|
|
1621
|
+
*
|
|
1622
|
+
* @param {Object} opts
|
|
1616
1623
|
*/
|
|
1624
|
+
|
|
1625
|
+
|
|
1617
1626
|
function filterResetOptions(opts) {
|
|
1618
|
-
return
|
|
1619
|
-
playerVars:
|
|
1627
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1628
|
+
playerVars: _objectSpread({
|
|
1620
1629
|
autoplay: 0,
|
|
1621
1630
|
start: 0,
|
|
1622
1631
|
end: 0
|
|
1623
|
-
})
|
|
1632
|
+
}, opts.playerVars)
|
|
1624
1633
|
});
|
|
1625
1634
|
}
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
*
|
|
1629
|
-
*
|
|
1630
|
-
*
|
|
1631
|
-
*
|
|
1632
|
-
*
|
|
1633
|
-
* @param {Object}
|
|
1634
|
-
* @param {Object} props
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1637
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1638
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1639
|
+
* those.
|
|
1640
|
+
*
|
|
1641
|
+
* @param {Object} prevProps
|
|
1642
|
+
* @param {Object} props
|
|
1635
1643
|
*/
|
|
1644
|
+
|
|
1645
|
+
|
|
1636
1646
|
function shouldResetPlayer(prevProps, props) {
|
|
1637
1647
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1638
1648
|
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
* @param {Object}
|
|
1644
|
-
* @param {Object} props
|
|
1649
|
+
/**
|
|
1650
|
+
* Check whether a props change should result in an id or className update.
|
|
1651
|
+
*
|
|
1652
|
+
* @param {Object} prevProps
|
|
1653
|
+
* @param {Object} props
|
|
1645
1654
|
*/
|
|
1655
|
+
|
|
1656
|
+
|
|
1646
1657
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1647
1658
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1648
1659
|
}
|
|
1649
1660
|
|
|
1650
|
-
var YouTube = function (_React$Component) {
|
|
1661
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1651
1662
|
_inherits(YouTube, _React$Component);
|
|
1652
1663
|
|
|
1664
|
+
var _super = _createSuper(YouTube);
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1668
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1669
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1670
|
+
*/
|
|
1653
1671
|
function YouTube(props) {
|
|
1672
|
+
var _this;
|
|
1673
|
+
|
|
1654
1674
|
_classCallCheck(this, YouTube);
|
|
1655
1675
|
|
|
1656
|
-
|
|
1676
|
+
_this = _super.call(this, props);
|
|
1657
1677
|
|
|
1658
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1659
1679
|
return _this.props.onReady(event);
|
|
1660
|
-
};
|
|
1680
|
+
});
|
|
1661
1681
|
|
|
1662
|
-
_this
|
|
1682
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1663
1683
|
return _this.props.onError(event);
|
|
1664
|
-
};
|
|
1684
|
+
});
|
|
1665
1685
|
|
|
1666
|
-
_this
|
|
1686
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1667
1687
|
_this.props.onStateChange(event);
|
|
1668
|
-
switch (event.data) {
|
|
1669
1688
|
|
|
1689
|
+
switch (event.data) {
|
|
1670
1690
|
case YouTube.PlayerState.ENDED:
|
|
1671
1691
|
_this.props.onEnd(event);
|
|
1692
|
+
|
|
1672
1693
|
break;
|
|
1673
1694
|
|
|
1674
1695
|
case YouTube.PlayerState.PLAYING:
|
|
1675
1696
|
_this.props.onPlay(event);
|
|
1697
|
+
|
|
1676
1698
|
break;
|
|
1677
1699
|
|
|
1678
1700
|
case YouTube.PlayerState.PAUSED:
|
|
1679
1701
|
_this.props.onPause(event);
|
|
1702
|
+
|
|
1680
1703
|
break;
|
|
1681
1704
|
}
|
|
1682
|
-
};
|
|
1705
|
+
});
|
|
1683
1706
|
|
|
1684
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1685
1708
|
return _this.props.onPlaybackRateChange(event);
|
|
1686
|
-
};
|
|
1709
|
+
});
|
|
1687
1710
|
|
|
1688
|
-
_this
|
|
1711
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1689
1712
|
return _this.props.onPlaybackQualityChange(event);
|
|
1690
|
-
};
|
|
1713
|
+
});
|
|
1691
1714
|
|
|
1692
|
-
_this
|
|
1715
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1693
1716
|
// do not attempt to create a player server-side, it won't work
|
|
1694
|
-
if (typeof document === 'undefined') return;
|
|
1695
|
-
|
|
1696
|
-
var playerOpts =
|
|
1717
|
+
if (typeof document === 'undefined') return; // create player
|
|
1718
|
+
|
|
1719
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1697
1720
|
// preload the `videoId` video if one is already given
|
|
1698
1721
|
videoId: _this.props.videoId
|
|
1699
1722
|
});
|
|
1700
|
-
|
|
1701
|
-
// attach event handlers
|
|
1723
|
+
|
|
1724
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1725
|
+
|
|
1702
1726
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1727
|
+
|
|
1703
1728
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1729
|
+
|
|
1704
1730
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1731
|
+
|
|
1705
1732
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1733
|
+
|
|
1706
1734
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1707
|
-
};
|
|
1735
|
+
});
|
|
1708
1736
|
|
|
1709
|
-
_this
|
|
1737
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1710
1738
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1711
|
-
};
|
|
1739
|
+
});
|
|
1712
1740
|
|
|
1713
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1714
1742
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1715
1743
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1716
1744
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1717
1745
|
});
|
|
1718
|
-
};
|
|
1746
|
+
});
|
|
1719
1747
|
|
|
1720
|
-
_this
|
|
1748
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1749
|
+
return _this.internalPlayer;
|
|
1750
|
+
});
|
|
1751
|
+
|
|
1752
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1721
1753
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1722
1754
|
_this.internalPlayer.stopVideo();
|
|
1755
|
+
|
|
1723
1756
|
return;
|
|
1724
|
-
}
|
|
1757
|
+
} // set queueing options
|
|
1758
|
+
|
|
1725
1759
|
|
|
1726
|
-
// set queueing options
|
|
1727
1760
|
var autoplay = false;
|
|
1728
1761
|
var opts = {
|
|
1729
1762
|
videoId: _this.props.videoId
|
|
1730
1763
|
};
|
|
1764
|
+
|
|
1731
1765
|
if ('playerVars' in _this.props.opts) {
|
|
1732
1766
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1767
|
+
|
|
1733
1768
|
if ('start' in _this.props.opts.playerVars) {
|
|
1734
1769
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1735
1770
|
}
|
|
1771
|
+
|
|
1736
1772
|
if ('end' in _this.props.opts.playerVars) {
|
|
1737
1773
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1738
1774
|
}
|
|
1739
|
-
}
|
|
1775
|
+
} // if autoplay is enabled loadVideoById
|
|
1776
|
+
|
|
1740
1777
|
|
|
1741
|
-
// if autoplay is enabled loadVideoById
|
|
1742
1778
|
if (autoplay) {
|
|
1743
1779
|
_this.internalPlayer.loadVideoById(opts);
|
|
1780
|
+
|
|
1744
1781
|
return;
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1782
|
+
} // default behaviour just cues the video
|
|
1783
|
+
|
|
1784
|
+
|
|
1747
1785
|
_this.internalPlayer.cueVideoById(opts);
|
|
1748
|
-
};
|
|
1786
|
+
});
|
|
1749
1787
|
|
|
1750
|
-
_this
|
|
1788
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1751
1789
|
_this.container = container;
|
|
1752
|
-
};
|
|
1790
|
+
});
|
|
1753
1791
|
|
|
1754
1792
|
_this.container = null;
|
|
1755
1793
|
_this.internalPlayer = null;
|
|
1756
1794
|
return _this;
|
|
1757
1795
|
}
|
|
1758
1796
|
|
|
1759
|
-
/**
|
|
1760
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1761
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1762
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1763
|
-
*/
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
1797
|
_createClass(YouTube, [{
|
|
1767
|
-
key:
|
|
1798
|
+
key: "componentDidMount",
|
|
1768
1799
|
value: function componentDidMount() {
|
|
1769
1800
|
this.createPlayer();
|
|
1770
1801
|
}
|
|
1771
1802
|
}, {
|
|
1772
|
-
key:
|
|
1803
|
+
key: "componentDidUpdate",
|
|
1773
1804
|
value: function componentDidUpdate(prevProps) {
|
|
1774
1805
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1775
1806
|
this.updatePlayer();
|
|
@@ -1784,112 +1815,58 @@ var YouTube = function (_React$Component) {
|
|
|
1784
1815
|
}
|
|
1785
1816
|
}
|
|
1786
1817
|
}, {
|
|
1787
|
-
key:
|
|
1818
|
+
key: "componentWillUnmount",
|
|
1788
1819
|
value: function componentWillUnmount() {
|
|
1789
|
-
/**
|
|
1790
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1791
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1792
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1793
|
-
* this method isn't quick enough to reset the container element.
|
|
1820
|
+
/**
|
|
1821
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1822
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1823
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1824
|
+
* this method isn't quick enough to reset the container element.
|
|
1794
1825
|
*/
|
|
1795
1826
|
this.internalPlayer.destroy();
|
|
1796
1827
|
}
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
*
|
|
1800
|
-
*
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} target - player object
|
|
1803
|
-
*/
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1808
|
-
*
|
|
1809
|
-
* @param {Object} event
|
|
1810
|
-
* @param {Integer} data - error type
|
|
1811
|
-
* @param {Object} target - player object
|
|
1812
|
-
*/
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
/**
|
|
1816
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1817
|
-
*
|
|
1818
|
-
* @param {Object} event
|
|
1819
|
-
* @param {Integer} data - status change type
|
|
1820
|
-
* @param {Object} target - actual YT player
|
|
1821
|
-
*/
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1826
|
-
*
|
|
1827
|
-
* @param {Object} event
|
|
1828
|
-
* @param {Float} data - playback rate
|
|
1829
|
-
* @param {Object} target - actual YT player
|
|
1830
|
-
*/
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1835
|
-
*
|
|
1836
|
-
* @param {Object} event
|
|
1837
|
-
* @param {String} data - playback quality
|
|
1838
|
-
* @param {Object} target - actual YT player
|
|
1839
|
-
*/
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1844
|
-
*/
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1849
|
-
*/
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1854
|
-
* React should update this automatically but since the Youtube Player API
|
|
1855
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1856
|
-
*/
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
/**
|
|
1860
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1861
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1862
|
-
* Youtube Player API methods to update the video.
|
|
1828
|
+
/**
|
|
1829
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1830
|
+
*
|
|
1831
|
+
* @param {Object} event
|
|
1832
|
+
* @param {Object} target - player object
|
|
1863
1833
|
*/
|
|
1864
1834
|
|
|
1865
1835
|
}, {
|
|
1866
|
-
key:
|
|
1836
|
+
key: "render",
|
|
1867
1837
|
value: function render() {
|
|
1868
|
-
return React__default.createElement(
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1838
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1839
|
+
className: this.props.containerClassName
|
|
1840
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1841
|
+
id: this.props.id,
|
|
1842
|
+
className: this.props.className,
|
|
1843
|
+
ref: this.refContainer
|
|
1844
|
+
}));
|
|
1873
1845
|
}
|
|
1874
1846
|
}]);
|
|
1875
1847
|
|
|
1876
1848
|
return YouTube;
|
|
1877
1849
|
}(React__default.Component);
|
|
1878
1850
|
|
|
1851
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1852
|
+
UNSTARTED: -1,
|
|
1853
|
+
ENDED: 0,
|
|
1854
|
+
PLAYING: 1,
|
|
1855
|
+
PAUSED: 2,
|
|
1856
|
+
BUFFERING: 3,
|
|
1857
|
+
CUED: 5
|
|
1858
|
+
});
|
|
1859
|
+
|
|
1879
1860
|
YouTube.propTypes = {
|
|
1880
1861
|
videoId: PropTypes__default.string,
|
|
1881
|
-
|
|
1882
1862
|
// custom ID for player element
|
|
1883
1863
|
id: PropTypes__default.string,
|
|
1884
|
-
|
|
1885
1864
|
// custom class name for player element
|
|
1886
1865
|
className: PropTypes__default.string,
|
|
1887
1866
|
// custom class name for player container element
|
|
1888
1867
|
containerClassName: PropTypes__default.string,
|
|
1889
|
-
|
|
1890
1868
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1891
1869
|
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1892
|
-
|
|
1893
1870
|
// event subscriptions
|
|
1894
1871
|
onReady: PropTypes__default.func,
|
|
1895
1872
|
onError: PropTypes__default.func,
|
|
@@ -1901,6 +1878,7 @@ YouTube.propTypes = {
|
|
|
1901
1878
|
onPlaybackQualityChange: PropTypes__default.func
|
|
1902
1879
|
};
|
|
1903
1880
|
YouTube.defaultProps = {
|
|
1881
|
+
videoId: null,
|
|
1904
1882
|
id: null,
|
|
1905
1883
|
className: null,
|
|
1906
1884
|
opts: {},
|
|
@@ -1914,14 +1892,6 @@ YouTube.defaultProps = {
|
|
|
1914
1892
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1915
1893
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1916
1894
|
};
|
|
1917
|
-
YouTube.PlayerState = {
|
|
1918
|
-
UNSTARTED: -1,
|
|
1919
|
-
ENDED: 0,
|
|
1920
|
-
PLAYING: 1,
|
|
1921
|
-
PAUSED: 2,
|
|
1922
|
-
BUFFERING: 3,
|
|
1923
|
-
CUED: 5
|
|
1924
|
-
};
|
|
1925
1895
|
|
|
1926
1896
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1927
1897
|
var url = _ref.url,
|
|
@@ -1960,8 +1930,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1960
1930
|
var duration = player.getDuration();
|
|
1961
1931
|
var queue = Math.floor(duration / 10);
|
|
1962
1932
|
var segment = Math.floor(current / queue);
|
|
1963
|
-
Beam.report_beam_video('Ready', main.
|
|
1964
|
-
Segment.report_video_event('Video Ready', main.
|
|
1933
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
|
|
1934
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
|
|
1965
1935
|
};
|
|
1966
1936
|
|
|
1967
1937
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1971,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
1941
|
var segment = Math.floor(current / queue);
|
|
1972
1942
|
|
|
1973
1943
|
if (!queueProgress.includes(segment)) {
|
|
1974
|
-
Beam.report_beam_video('Segment', main.
|
|
1975
|
-
Segment.report_video_event('Video Segment', main.
|
|
1944
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
|
|
1976
1946
|
queueProgress.push(segment);
|
|
1977
1947
|
}
|
|
1978
1948
|
};
|
|
@@ -1985,8 +1955,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
1955
|
var queue = Math.floor(duration / 10);
|
|
1986
1956
|
var segment = Math.floor(current / queue);
|
|
1987
1957
|
|
|
1988
|
-
Beam.report_beam_video('Play', main.
|
|
1989
|
-
Segment.report_video_event('Video Play', main.
|
|
1958
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment);
|
|
1959
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
|
|
1990
1960
|
|
|
1991
1961
|
if (!playReported) {
|
|
1992
1962
|
setPlayReported(true);
|
|
@@ -2005,8 +1975,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2005
1975
|
var queue = Math.floor(duration / 10);
|
|
2006
1976
|
var segment = Math.floor(current / queue);
|
|
2007
1977
|
|
|
2008
|
-
Beam.report_beam_video('End', main.
|
|
2009
|
-
Segment.report_video_event('Video End', main.
|
|
1978
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment);
|
|
2010
1980
|
setEndReported(true);
|
|
2011
1981
|
clearInterval(intervalID);
|
|
2012
1982
|
}
|
|
@@ -2019,8 +1989,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2019
1989
|
var queue = Math.floor(duration / 10);
|
|
2020
1990
|
var segment = Math.floor(current / queue);
|
|
2021
1991
|
|
|
2022
|
-
Beam.report_beam_video('Pause', main.
|
|
2023
|
-
Segment.report_video_event('Video Pause', main.
|
|
1992
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
|
|
1993
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2024
1994
|
};
|
|
2025
1995
|
|
|
2026
1996
|
return React__default.createElement(
|
|
@@ -2188,7 +2158,7 @@ var Media = function Media(_ref) {
|
|
|
2188
2158
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2189
2159
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2190
2160
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2191
|
-
React__default.createElement('img', _extends
|
|
2161
|
+
React__default.createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2192
2162
|
)
|
|
2193
2163
|
),
|
|
2194
2164
|
caption && React__default.createElement(
|
|
@@ -2201,7 +2171,7 @@ var Media = function Media(_ref) {
|
|
|
2201
2171
|
} else if (caption && caption !== '') {
|
|
2202
2172
|
return React__default.createElement(
|
|
2203
2173
|
'a',
|
|
2204
|
-
_extends
|
|
2174
|
+
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2205
2175
|
href: uploadDoc.asset.url + '?dl='
|
|
2206
2176
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2207
2177
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2256,8 +2226,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2256
2226
|
var duration = player.duration;
|
|
2257
2227
|
var queue = Math.floor(duration / 10);
|
|
2258
2228
|
var segment = Math.floor(current / queue);
|
|
2259
|
-
Beam.report_beam_video('Ready', main.
|
|
2260
|
-
Segment.report_video_event('Video Ready', main.
|
|
2229
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'MP4');
|
|
2230
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'MP4');
|
|
2261
2231
|
};
|
|
2262
2232
|
|
|
2263
2233
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2266,8 +2236,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2236
|
var queue = Math.floor(duration / 10);
|
|
2267
2237
|
var segment = Math.floor(current / queue);
|
|
2268
2238
|
if (!queueProgress.includes(segment)) {
|
|
2269
|
-
Beam.report_beam_video('Segment', main.
|
|
2270
|
-
Segment.report_video_event('Video Segment', main.
|
|
2239
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'MP4');
|
|
2240
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'MP4');
|
|
2271
2241
|
queueProgress.push(segment);
|
|
2272
2242
|
}
|
|
2273
2243
|
};
|
|
@@ -2279,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2249
|
var duration = player.duration;
|
|
2280
2250
|
var queue = Math.floor(duration / 10);
|
|
2281
2251
|
var segment = Math.floor(current / queue);
|
|
2282
|
-
Beam.report_beam_video('Play', main.
|
|
2283
|
-
Segment.report_video_event('Video Play', main.
|
|
2252
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'MP4');
|
|
2284
2254
|
|
|
2285
2255
|
if (!playReported) {
|
|
2286
2256
|
event.persist();
|
|
@@ -2300,8 +2270,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2300
2270
|
var queue = Math.floor(duration / 10);
|
|
2301
2271
|
var segment = Math.floor(current / queue);
|
|
2302
2272
|
|
|
2303
|
-
Beam.report_beam_video('End', main.
|
|
2304
|
-
Segment.report_video_event('Video End', main.
|
|
2273
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment, 'MP4');
|
|
2274
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'MP4');
|
|
2305
2275
|
setEndReported(true);
|
|
2306
2276
|
clearInterval(intervalID);
|
|
2307
2277
|
}
|
|
@@ -2313,8 +2283,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2313
2283
|
var duration = player.duration - current;
|
|
2314
2284
|
var queue = Math.floor(duration / 10);
|
|
2315
2285
|
var segment = Math.floor(current / queue);
|
|
2316
|
-
Beam.report_beam_video('Pause', main.
|
|
2317
|
-
Segment.report_video_event('Video Pause', main.
|
|
2286
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2287
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2318
2288
|
};
|
|
2319
2289
|
|
|
2320
2290
|
return React__default.createElement(
|
|
@@ -2375,7 +2345,7 @@ var Video = function Video(_ref) {
|
|
|
2375
2345
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2376
2346
|
//console.log('success:', success.ref)
|
|
2377
2347
|
var player = success.ref;
|
|
2378
|
-
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2348
|
+
if (_typeof$2._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2379
2349
|
player.ima3.settings.debug = true;
|
|
2380
2350
|
if (targeting.content_placement && targeting.document_url) {
|
|
2381
2351
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2403,8 +2373,8 @@ var Video = function Video(_ref) {
|
|
|
2403
2373
|
player.pause();
|
|
2404
2374
|
}
|
|
2405
2375
|
|
|
2406
|
-
Beam.report_beam_video('Ready', main.
|
|
2407
|
-
Segment.report_video_event('Video Ready', main.
|
|
2376
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2408
2378
|
});
|
|
2409
2379
|
|
|
2410
2380
|
// play
|
|
@@ -2413,8 +2383,8 @@ var Video = function Video(_ref) {
|
|
|
2413
2383
|
var current = player.currentTime();
|
|
2414
2384
|
var queue = Math.floor(duration / 10);
|
|
2415
2385
|
var segment = Math.floor(current / queue);
|
|
2416
|
-
Beam.report_beam_video('Play', main.
|
|
2417
|
-
Segment.report_video_event('Video Play', main.
|
|
2386
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2418
2388
|
});
|
|
2419
2389
|
|
|
2420
2390
|
// pause
|
|
@@ -2423,8 +2393,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2393
|
var current = player.currentTime();
|
|
2424
2394
|
var queue = Math.floor(duration / 10);
|
|
2425
2395
|
var segment = Math.floor(current / queue);
|
|
2426
|
-
Beam.report_beam_video('Pause', main.
|
|
2427
|
-
Segment.report_video_event('Video Pause', main.
|
|
2396
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2397
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2428
2398
|
});
|
|
2429
2399
|
|
|
2430
2400
|
// end
|
|
@@ -2433,8 +2403,8 @@ var Video = function Video(_ref) {
|
|
|
2433
2403
|
var current = player.currentTime();
|
|
2434
2404
|
var queue = Math.floor(duration / 10);
|
|
2435
2405
|
var segment = Math.floor(current / queue);
|
|
2436
|
-
Beam.report_beam_video('End', main.
|
|
2437
|
-
Segment.report_video_event('Video End', main.
|
|
2406
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2407
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2438
2408
|
autoplayNextVideo(evt);
|
|
2439
2409
|
});
|
|
2440
2410
|
|
|
@@ -2445,8 +2415,8 @@ var Video = function Video(_ref) {
|
|
|
2445
2415
|
var queue = Math.floor(duration / 10);
|
|
2446
2416
|
var segment = Math.floor(current / queue);
|
|
2447
2417
|
if (!queueProgress.includes(segment)) {
|
|
2448
|
-
Beam.report_beam_video('Segment', main.
|
|
2449
|
-
Segment.report_video_event('Video Segment', main.
|
|
2418
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2419
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2450
2420
|
queueProgress.push(segment);
|
|
2451
2421
|
}
|
|
2452
2422
|
});
|
|
@@ -2457,8 +2427,8 @@ var Video = function Video(_ref) {
|
|
|
2457
2427
|
var id = player.ads.ad.id;
|
|
2458
2428
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2459
2429
|
|
|
2460
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2461
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2430
|
+
Beam.report_beam_ad('AD Started', main.main_18, '', '', '', '', '', adType, duration, id);
|
|
2431
|
+
Segment.report_ad_event('Video Ad Started', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2462
2432
|
});
|
|
2463
2433
|
|
|
2464
2434
|
// ad ended
|
|
@@ -2466,8 +2436,8 @@ var Video = function Video(_ref) {
|
|
|
2466
2436
|
var duration = player.ads.ad.duration;
|
|
2467
2437
|
var id = player.ads.ad.id;
|
|
2468
2438
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2469
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2470
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2439
|
+
Beam.report_beam_ad('AD Ended', main.main_18, '', '', '', '', '', adType, duration, id);
|
|
2440
|
+
Segment.report_ad_event('Video Ad Ended', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2471
2441
|
});
|
|
2472
2442
|
};
|
|
2473
2443
|
|
|
@@ -2897,11 +2867,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2897
2867
|
|
|
2898
2868
|
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; }
|
|
2899
2869
|
|
|
2900
|
-
function
|
|
2870
|
+
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; } } }; }
|
|
2901
2871
|
|
|
2902
|
-
function
|
|
2872
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2903
2873
|
|
|
2904
|
-
function
|
|
2874
|
+
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."); }
|
|
2875
|
+
|
|
2876
|
+
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); }
|
|
2877
|
+
|
|
2878
|
+
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; }
|
|
2879
|
+
|
|
2880
|
+
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; }
|
|
2905
2881
|
|
|
2906
2882
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2907
2883
|
|
|
@@ -3031,12 +3007,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3031
3007
|
|
|
3032
3008
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3033
3009
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3034
|
-
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3010
|
+
|
|
3011
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3012
|
+
_step;
|
|
3037
3013
|
|
|
3038
3014
|
try {
|
|
3039
|
-
for (
|
|
3015
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3040
3016
|
var p = _step.value;
|
|
3041
3017
|
|
|
3042
3018
|
if (props$1[p]) {
|
|
@@ -3051,18 +3027,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3051
3027
|
}
|
|
3052
3028
|
}
|
|
3053
3029
|
} catch (err) {
|
|
3054
|
-
|
|
3055
|
-
_iteratorError = err;
|
|
3030
|
+
_iterator.e(err);
|
|
3056
3031
|
} finally {
|
|
3057
|
-
|
|
3058
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3059
|
-
_iterator["return"]();
|
|
3060
|
-
}
|
|
3061
|
-
} finally {
|
|
3062
|
-
if (_didIteratorError) {
|
|
3063
|
-
throw _iteratorError;
|
|
3064
|
-
}
|
|
3065
|
-
}
|
|
3032
|
+
_iterator.f();
|
|
3066
3033
|
}
|
|
3067
3034
|
|
|
3068
3035
|
return config;
|
|
@@ -3209,12 +3176,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3209
3176
|
|
|
3210
3177
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3211
3178
|
|
|
3212
|
-
function
|
|
3179
|
+
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); }; }
|
|
3213
3180
|
|
|
3214
|
-
function
|
|
3181
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3215
3182
|
|
|
3216
3183
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3217
3184
|
|
|
3185
|
+
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; } }
|
|
3186
|
+
|
|
3187
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3188
|
+
|
|
3218
3189
|
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); }
|
|
3219
3190
|
|
|
3220
3191
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3223,14 +3194,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3223
3194
|
|
|
3224
3195
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3225
3196
|
|
|
3226
|
-
var Player =
|
|
3227
|
-
/*#__PURE__*/
|
|
3228
|
-
function (_Component) {
|
|
3197
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3229
3198
|
_inherits(Player, _Component);
|
|
3230
3199
|
|
|
3231
|
-
|
|
3232
|
-
var _getPrototypeOf2;
|
|
3200
|
+
var _super = _createSuper(Player);
|
|
3233
3201
|
|
|
3202
|
+
function Player() {
|
|
3234
3203
|
var _this;
|
|
3235
3204
|
|
|
3236
3205
|
_classCallCheck(this, Player);
|
|
@@ -3239,7 +3208,7 @@ function (_Component) {
|
|
|
3239
3208
|
_args[_key] = arguments[_key];
|
|
3240
3209
|
}
|
|
3241
3210
|
|
|
3242
|
-
_this =
|
|
3211
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3243
3212
|
|
|
3244
3213
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3245
3214
|
|
|
@@ -3564,7 +3533,7 @@ function (_Component) {
|
|
|
3564
3533
|
return null;
|
|
3565
3534
|
}
|
|
3566
3535
|
|
|
3567
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3536
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3568
3537
|
ref: this.ref,
|
|
3569
3538
|
onReady: this.handleReady,
|
|
3570
3539
|
onPlay: this.handlePlay,
|
|
@@ -3625,12 +3594,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3625
3594
|
|
|
3626
3595
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3627
3596
|
|
|
3628
|
-
function
|
|
3597
|
+
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); }; }
|
|
3629
3598
|
|
|
3630
|
-
function
|
|
3599
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3631
3600
|
|
|
3632
3601
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3633
3602
|
|
|
3603
|
+
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; } }
|
|
3604
|
+
|
|
3605
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3606
|
+
|
|
3634
3607
|
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); }
|
|
3635
3608
|
|
|
3636
3609
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3642,14 +3615,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3642
3615
|
function createSinglePlayer(activePlayer) {
|
|
3643
3616
|
var _class, _temp;
|
|
3644
3617
|
|
|
3645
|
-
return _temp = _class =
|
|
3646
|
-
/*#__PURE__*/
|
|
3647
|
-
function (_Component) {
|
|
3618
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3648
3619
|
_inherits(SinglePlayer, _Component);
|
|
3649
3620
|
|
|
3650
|
-
|
|
3651
|
-
var _getPrototypeOf2;
|
|
3621
|
+
var _super = _createSuper(SinglePlayer);
|
|
3652
3622
|
|
|
3623
|
+
function SinglePlayer() {
|
|
3653
3624
|
var _this;
|
|
3654
3625
|
|
|
3655
3626
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3658,7 +3629,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3658
3629
|
args[_key] = arguments[_key];
|
|
3659
3630
|
}
|
|
3660
3631
|
|
|
3661
|
-
_this =
|
|
3632
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3662
3633
|
|
|
3663
3634
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3664
3635
|
|
|
@@ -3726,12 +3697,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3726
3697
|
height = _this$props.height,
|
|
3727
3698
|
Wrapper = _this$props.wrapper;
|
|
3728
3699
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3729
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3700
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3730
3701
|
style: _objectSpread({}, style, {
|
|
3731
3702
|
width: width,
|
|
3732
3703
|
height: height
|
|
3733
3704
|
})
|
|
3734
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3705
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3735
3706
|
ref: this.ref,
|
|
3736
3707
|
activePlayer: activePlayer,
|
|
3737
3708
|
config: this.config
|
|
@@ -3777,23 +3748,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3777
3748
|
|
|
3778
3749
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3779
3750
|
|
|
3780
|
-
function
|
|
3751
|
+
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); }; }
|
|
3781
3752
|
|
|
3782
|
-
function
|
|
3753
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3783
3754
|
|
|
3784
3755
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3785
3756
|
|
|
3757
|
+
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; } }
|
|
3758
|
+
|
|
3759
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3760
|
+
|
|
3786
3761
|
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); }
|
|
3787
3762
|
|
|
3788
3763
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3789
3764
|
|
|
3790
3765
|
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; }
|
|
3791
3766
|
|
|
3792
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3767
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3793
3768
|
|
|
3794
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3769
|
+
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."); }
|
|
3795
3770
|
|
|
3796
|
-
function
|
|
3771
|
+
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); }
|
|
3772
|
+
|
|
3773
|
+
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; }
|
|
3774
|
+
|
|
3775
|
+
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; }
|
|
3797
3776
|
|
|
3798
3777
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3799
3778
|
|
|
@@ -3818,14 +3797,12 @@ function parsePlaylist(url) {
|
|
|
3818
3797
|
return {};
|
|
3819
3798
|
}
|
|
3820
3799
|
|
|
3821
|
-
var YouTube =
|
|
3822
|
-
/*#__PURE__*/
|
|
3823
|
-
function (_Component) {
|
|
3800
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3824
3801
|
_inherits(YouTube, _Component);
|
|
3825
3802
|
|
|
3826
|
-
|
|
3827
|
-
var _getPrototypeOf2;
|
|
3803
|
+
var _super = _createSuper(YouTube);
|
|
3828
3804
|
|
|
3805
|
+
function YouTube() {
|
|
3829
3806
|
var _this;
|
|
3830
3807
|
|
|
3831
3808
|
_classCallCheck(this, YouTube);
|
|
@@ -3834,7 +3811,7 @@ function (_Component) {
|
|
|
3834
3811
|
args[_key] = arguments[_key];
|
|
3835
3812
|
}
|
|
3836
3813
|
|
|
3837
|
-
_this =
|
|
3814
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3838
3815
|
|
|
3839
3816
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3840
3817
|
|
|
@@ -4022,9 +3999,9 @@ function (_Component) {
|
|
|
4022
3999
|
height: '100%',
|
|
4023
4000
|
display: display
|
|
4024
4001
|
};
|
|
4025
|
-
return _react["default"].createElement("div", {
|
|
4002
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4026
4003
|
style: style
|
|
4027
|
-
}, _react["default"].createElement("div", {
|
|
4004
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4028
4005
|
ref: this.ref
|
|
4029
4006
|
}));
|
|
4030
4007
|
}
|
|
@@ -4080,12 +4057,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4080
4057
|
|
|
4081
4058
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4082
4059
|
|
|
4083
|
-
function
|
|
4060
|
+
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); }; }
|
|
4084
4061
|
|
|
4085
|
-
function
|
|
4062
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4086
4063
|
|
|
4087
4064
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4088
4065
|
|
|
4066
|
+
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; } }
|
|
4067
|
+
|
|
4068
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4069
|
+
|
|
4089
4070
|
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); }
|
|
4090
4071
|
|
|
4091
4072
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4094,16 +4075,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4094
4075
|
|
|
4095
4076
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4096
4077
|
var SDK_GLOBAL = 'SC';
|
|
4097
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4078
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4098
4079
|
|
|
4099
|
-
var SoundCloud =
|
|
4100
|
-
/*#__PURE__*/
|
|
4101
|
-
function (_Component) {
|
|
4080
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4102
4081
|
_inherits(SoundCloud, _Component);
|
|
4103
4082
|
|
|
4104
|
-
|
|
4105
|
-
var _getPrototypeOf2;
|
|
4083
|
+
var _super = _createSuper(SoundCloud);
|
|
4106
4084
|
|
|
4085
|
+
function SoundCloud() {
|
|
4107
4086
|
var _this;
|
|
4108
4087
|
|
|
4109
4088
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4112,7 +4091,7 @@ function (_Component) {
|
|
|
4112
4091
|
args[_key] = arguments[_key];
|
|
4113
4092
|
}
|
|
4114
4093
|
|
|
4115
|
-
_this =
|
|
4094
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4116
4095
|
|
|
4117
4096
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4118
4097
|
|
|
@@ -4233,7 +4212,7 @@ function (_Component) {
|
|
|
4233
4212
|
height: '100%',
|
|
4234
4213
|
display: display
|
|
4235
4214
|
};
|
|
4236
|
-
return _react["default"].createElement("iframe", {
|
|
4215
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4237
4216
|
ref: this.ref,
|
|
4238
4217
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4239
4218
|
style: style,
|
|
@@ -4295,12 +4274,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4295
4274
|
|
|
4296
4275
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4297
4276
|
|
|
4298
|
-
function
|
|
4277
|
+
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); }; }
|
|
4299
4278
|
|
|
4300
|
-
function
|
|
4279
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4301
4280
|
|
|
4302
4281
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4303
4282
|
|
|
4283
|
+
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; } }
|
|
4284
|
+
|
|
4285
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4286
|
+
|
|
4304
4287
|
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); }
|
|
4305
4288
|
|
|
4306
4289
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4312,14 +4295,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4312
4295
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4313
4296
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4314
4297
|
|
|
4315
|
-
var Vimeo =
|
|
4316
|
-
/*#__PURE__*/
|
|
4317
|
-
function (_Component) {
|
|
4298
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4318
4299
|
_inherits(Vimeo, _Component);
|
|
4319
4300
|
|
|
4320
|
-
|
|
4321
|
-
var _getPrototypeOf2;
|
|
4301
|
+
var _super = _createSuper(Vimeo);
|
|
4322
4302
|
|
|
4303
|
+
function Vimeo() {
|
|
4323
4304
|
var _this;
|
|
4324
4305
|
|
|
4325
4306
|
_classCallCheck(this, Vimeo);
|
|
@@ -4328,7 +4309,7 @@ function (_Component) {
|
|
|
4328
4309
|
args[_key] = arguments[_key];
|
|
4329
4310
|
}
|
|
4330
4311
|
|
|
4331
|
-
_this =
|
|
4312
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4332
4313
|
|
|
4333
4314
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4334
4315
|
|
|
@@ -4485,7 +4466,7 @@ function (_Component) {
|
|
|
4485
4466
|
overflow: 'hidden',
|
|
4486
4467
|
display: display
|
|
4487
4468
|
};
|
|
4488
|
-
return _react["default"].createElement("div", {
|
|
4469
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4489
4470
|
key: this.props.url,
|
|
4490
4471
|
ref: this.ref,
|
|
4491
4472
|
style: style
|
|
@@ -4545,12 +4526,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4545
4526
|
|
|
4546
4527
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4547
4528
|
|
|
4548
|
-
function
|
|
4529
|
+
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); }; }
|
|
4549
4530
|
|
|
4550
|
-
function
|
|
4531
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4551
4532
|
|
|
4552
4533
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4553
4534
|
|
|
4535
|
+
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; } }
|
|
4536
|
+
|
|
4537
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4538
|
+
|
|
4554
4539
|
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); }
|
|
4555
4540
|
|
|
4556
4541
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4563,14 +4548,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4563
4548
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4564
4549
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4565
4550
|
|
|
4566
|
-
var Facebook =
|
|
4567
|
-
/*#__PURE__*/
|
|
4568
|
-
function (_Component) {
|
|
4551
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4569
4552
|
_inherits(Facebook, _Component);
|
|
4570
4553
|
|
|
4571
|
-
|
|
4572
|
-
var _getPrototypeOf2;
|
|
4554
|
+
var _super = _createSuper(Facebook);
|
|
4573
4555
|
|
|
4556
|
+
function Facebook() {
|
|
4574
4557
|
var _this;
|
|
4575
4558
|
|
|
4576
4559
|
_classCallCheck(this, Facebook);
|
|
@@ -4579,7 +4562,7 @@ function (_Component) {
|
|
|
4579
4562
|
args[_key] = arguments[_key];
|
|
4580
4563
|
}
|
|
4581
4564
|
|
|
4582
|
-
_this =
|
|
4565
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4583
4566
|
|
|
4584
4567
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4585
4568
|
|
|
@@ -4695,7 +4678,7 @@ function (_Component) {
|
|
|
4695
4678
|
width: '100%',
|
|
4696
4679
|
height: '100%'
|
|
4697
4680
|
};
|
|
4698
|
-
return _react["default"].createElement("div", {
|
|
4681
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4699
4682
|
style: style,
|
|
4700
4683
|
id: this.playerID,
|
|
4701
4684
|
className: "fb-video",
|
|
@@ -4755,12 +4738,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4755
4738
|
|
|
4756
4739
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4757
4740
|
|
|
4758
|
-
function
|
|
4741
|
+
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); }; }
|
|
4759
4742
|
|
|
4760
|
-
function
|
|
4743
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4761
4744
|
|
|
4762
4745
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4763
4746
|
|
|
4747
|
+
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; } }
|
|
4748
|
+
|
|
4749
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4750
|
+
|
|
4764
4751
|
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); }
|
|
4765
4752
|
|
|
4766
4753
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4771,14 +4758,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4771
4758
|
var SDK_GLOBAL = 'playerjs';
|
|
4772
4759
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4773
4760
|
|
|
4774
|
-
var Streamable =
|
|
4775
|
-
/*#__PURE__*/
|
|
4776
|
-
function (_Component) {
|
|
4761
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4777
4762
|
_inherits(Streamable, _Component);
|
|
4778
4763
|
|
|
4779
|
-
|
|
4780
|
-
var _getPrototypeOf2;
|
|
4764
|
+
var _super = _createSuper(Streamable);
|
|
4781
4765
|
|
|
4766
|
+
function Streamable() {
|
|
4782
4767
|
var _this;
|
|
4783
4768
|
|
|
4784
4769
|
_classCallCheck(this, Streamable);
|
|
@@ -4787,7 +4772,7 @@ function (_Component) {
|
|
|
4787
4772
|
args[_key] = arguments[_key];
|
|
4788
4773
|
}
|
|
4789
4774
|
|
|
4790
|
-
_this =
|
|
4775
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4791
4776
|
|
|
4792
4777
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4793
4778
|
|
|
@@ -4907,7 +4892,7 @@ function (_Component) {
|
|
|
4907
4892
|
width: '100%',
|
|
4908
4893
|
height: '100%'
|
|
4909
4894
|
};
|
|
4910
|
-
return _react["default"].createElement("iframe", {
|
|
4895
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4911
4896
|
ref: this.ref,
|
|
4912
4897
|
src: "https://streamable.com/o/".concat(id),
|
|
4913
4898
|
frameBorder: "0",
|
|
@@ -4968,12 +4953,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4968
4953
|
|
|
4969
4954
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4970
4955
|
|
|
4971
|
-
function
|
|
4956
|
+
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); }; }
|
|
4972
4957
|
|
|
4973
|
-
function
|
|
4958
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4974
4959
|
|
|
4975
4960
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4976
4961
|
|
|
4962
|
+
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; } }
|
|
4963
|
+
|
|
4964
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4965
|
+
|
|
4977
4966
|
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); }
|
|
4978
4967
|
|
|
4979
4968
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4984,26 +4973,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4984
4973
|
var SDK_GLOBAL = 'Wistia';
|
|
4985
4974
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4986
4975
|
|
|
4987
|
-
var Wistia =
|
|
4988
|
-
/*#__PURE__*/
|
|
4989
|
-
function (_Component) {
|
|
4976
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4990
4977
|
_inherits(Wistia, _Component);
|
|
4991
4978
|
|
|
4992
|
-
|
|
4993
|
-
var _getPrototypeOf2;
|
|
4979
|
+
var _super = _createSuper(Wistia);
|
|
4994
4980
|
|
|
4981
|
+
function Wistia() {
|
|
4995
4982
|
var _this;
|
|
4996
4983
|
|
|
4997
4984
|
_classCallCheck(this, Wistia);
|
|
4998
4985
|
|
|
4999
|
-
for (var _len = arguments.length,
|
|
5000
|
-
|
|
4986
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4987
|
+
_args[_key] = arguments[_key];
|
|
5001
4988
|
}
|
|
5002
4989
|
|
|
5003
|
-
_this =
|
|
4990
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5004
4991
|
|
|
5005
4992
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5006
4993
|
|
|
4994
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4995
|
+
var _this$props;
|
|
4996
|
+
|
|
4997
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4998
|
+
});
|
|
4999
|
+
|
|
5000
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5001
|
+
var _this$props2;
|
|
5002
|
+
|
|
5003
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5004
|
+
});
|
|
5005
|
+
|
|
5006
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5007
|
+
var _this$props3;
|
|
5008
|
+
|
|
5009
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5010
|
+
});
|
|
5011
|
+
|
|
5012
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5013
|
+
var _this$props4;
|
|
5014
|
+
|
|
5015
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5016
|
+
});
|
|
5017
|
+
|
|
5007
5018
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5008
5019
|
_this.callPlayer('mute');
|
|
5009
5020
|
});
|
|
@@ -5025,17 +5036,13 @@ function (_Component) {
|
|
|
5025
5036
|
value: function load(url) {
|
|
5026
5037
|
var _this2 = this;
|
|
5027
5038
|
|
|
5028
|
-
var _this$
|
|
5029
|
-
playing = _this$
|
|
5030
|
-
muted = _this$
|
|
5031
|
-
controls = _this$
|
|
5032
|
-
_onReady = _this$
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
onSeek = _this$props.onSeek,
|
|
5036
|
-
onEnded = _this$props.onEnded,
|
|
5037
|
-
config = _this$props.config,
|
|
5038
|
-
onError = _this$props.onError;
|
|
5039
|
+
var _this$props5 = this.props,
|
|
5040
|
+
playing = _this$props5.playing,
|
|
5041
|
+
muted = _this$props5.muted,
|
|
5042
|
+
controls = _this$props5.controls,
|
|
5043
|
+
_onReady = _this$props5.onReady,
|
|
5044
|
+
config = _this$props5.config,
|
|
5045
|
+
onError = _this$props5.onError;
|
|
5039
5046
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5040
5047
|
window._wq = window._wq || [];
|
|
5041
5048
|
|
|
@@ -5052,19 +5059,28 @@ function (_Component) {
|
|
|
5052
5059
|
|
|
5053
5060
|
_this2.unbind();
|
|
5054
5061
|
|
|
5055
|
-
_this2.player.bind('play', onPlay);
|
|
5062
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5056
5063
|
|
|
5057
|
-
_this2.player.bind('pause', onPause);
|
|
5064
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5058
5065
|
|
|
5059
|
-
_this2.player.bind('seek', onSeek);
|
|
5066
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5060
5067
|
|
|
5061
|
-
_this2.player.bind('end', onEnded);
|
|
5068
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5062
5069
|
|
|
5063
5070
|
_onReady();
|
|
5064
5071
|
}
|
|
5065
5072
|
});
|
|
5066
5073
|
}, onError);
|
|
5067
5074
|
}
|
|
5075
|
+
}, {
|
|
5076
|
+
key: "unbind",
|
|
5077
|
+
value: function unbind() {
|
|
5078
|
+
this.player.unbind('play', this.onPlay);
|
|
5079
|
+
this.player.unbind('pause', this.onPause);
|
|
5080
|
+
this.player.unbind('seek', this.onSeek);
|
|
5081
|
+
this.player.unbind('end', this.onEnded);
|
|
5082
|
+
} // Proxy methods to prevent listener leaks
|
|
5083
|
+
|
|
5068
5084
|
}, {
|
|
5069
5085
|
key: "play",
|
|
5070
5086
|
value: function play() {
|
|
@@ -5075,19 +5091,6 @@ function (_Component) {
|
|
|
5075
5091
|
value: function pause() {
|
|
5076
5092
|
this.callPlayer('pause');
|
|
5077
5093
|
}
|
|
5078
|
-
}, {
|
|
5079
|
-
key: "unbind",
|
|
5080
|
-
value: function unbind() {
|
|
5081
|
-
var _this$props2 = this.props,
|
|
5082
|
-
onPlay = _this$props2.onPlay,
|
|
5083
|
-
onPause = _this$props2.onPause,
|
|
5084
|
-
onSeek = _this$props2.onSeek,
|
|
5085
|
-
onEnded = _this$props2.onEnded;
|
|
5086
|
-
this.player.unbind('play', onPlay);
|
|
5087
|
-
this.player.unbind('pause', onPause);
|
|
5088
|
-
this.player.unbind('seek', onSeek);
|
|
5089
|
-
this.player.unbind('end', onEnded);
|
|
5090
|
-
}
|
|
5091
5094
|
}, {
|
|
5092
5095
|
key: "stop",
|
|
5093
5096
|
value: function stop() {
|
|
@@ -5133,7 +5136,7 @@ function (_Component) {
|
|
|
5133
5136
|
width: '100%',
|
|
5134
5137
|
height: '100%'
|
|
5135
5138
|
};
|
|
5136
|
-
return _react["default"].createElement("div", {
|
|
5139
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5137
5140
|
key: id,
|
|
5138
5141
|
className: className,
|
|
5139
5142
|
style: style
|
|
@@ -5193,12 +5196,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5193
5196
|
|
|
5194
5197
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5195
5198
|
|
|
5196
|
-
function
|
|
5199
|
+
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); }; }
|
|
5197
5200
|
|
|
5198
|
-
function
|
|
5201
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5199
5202
|
|
|
5200
5203
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5201
5204
|
|
|
5205
|
+
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; } }
|
|
5206
|
+
|
|
5207
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5208
|
+
|
|
5202
5209
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5203
5210
|
|
|
5204
5211
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5211,14 +5218,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5211
5218
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5212
5219
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5213
5220
|
|
|
5214
|
-
var Twitch =
|
|
5215
|
-
/*#__PURE__*/
|
|
5216
|
-
function (_Component) {
|
|
5221
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5217
5222
|
_inherits(Twitch, _Component);
|
|
5218
5223
|
|
|
5219
|
-
|
|
5220
|
-
var _getPrototypeOf2;
|
|
5224
|
+
var _super = _createSuper(Twitch);
|
|
5221
5225
|
|
|
5226
|
+
function Twitch() {
|
|
5222
5227
|
var _this;
|
|
5223
5228
|
|
|
5224
5229
|
_classCallCheck(this, Twitch);
|
|
@@ -5227,7 +5232,7 @@ function (_Component) {
|
|
|
5227
5232
|
args[_key] = arguments[_key];
|
|
5228
5233
|
}
|
|
5229
5234
|
|
|
5230
|
-
_this =
|
|
5235
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5231
5236
|
|
|
5232
5237
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5233
5238
|
|
|
@@ -5348,7 +5353,7 @@ function (_Component) {
|
|
|
5348
5353
|
width: '100%',
|
|
5349
5354
|
height: '100%'
|
|
5350
5355
|
};
|
|
5351
|
-
return _react["default"].createElement("div", {
|
|
5356
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5352
5357
|
style: style,
|
|
5353
5358
|
id: this.playerID
|
|
5354
5359
|
});
|
|
@@ -5401,11 +5406,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5401
5406
|
|
|
5402
5407
|
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; }
|
|
5403
5408
|
|
|
5404
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5409
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5410
|
+
|
|
5411
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5405
5412
|
|
|
5406
|
-
function
|
|
5413
|
+
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); }
|
|
5407
5414
|
|
|
5408
|
-
function
|
|
5415
|
+
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; }
|
|
5416
|
+
|
|
5417
|
+
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; }
|
|
5409
5418
|
|
|
5410
5419
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5411
5420
|
|
|
@@ -5415,12 +5424,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5415
5424
|
|
|
5416
5425
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5417
5426
|
|
|
5418
|
-
function
|
|
5427
|
+
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); }; }
|
|
5419
5428
|
|
|
5420
|
-
function
|
|
5429
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5421
5430
|
|
|
5422
5431
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
5432
|
|
|
5433
|
+
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; } }
|
|
5434
|
+
|
|
5435
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5436
|
+
|
|
5424
5437
|
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); }
|
|
5425
5438
|
|
|
5426
5439
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5432,14 +5445,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5432
5445
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5433
5446
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5434
5447
|
|
|
5435
|
-
var DailyMotion =
|
|
5436
|
-
/*#__PURE__*/
|
|
5437
|
-
function (_Component) {
|
|
5448
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5438
5449
|
_inherits(DailyMotion, _Component);
|
|
5439
5450
|
|
|
5440
|
-
|
|
5441
|
-
var _getPrototypeOf2;
|
|
5451
|
+
var _super = _createSuper(DailyMotion);
|
|
5442
5452
|
|
|
5453
|
+
function DailyMotion() {
|
|
5443
5454
|
var _this;
|
|
5444
5455
|
|
|
5445
5456
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5448,7 +5459,7 @@ function (_Component) {
|
|
|
5448
5459
|
args[_key] = arguments[_key];
|
|
5449
5460
|
}
|
|
5450
5461
|
|
|
5451
|
-
_this =
|
|
5462
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5452
5463
|
|
|
5453
5464
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5454
5465
|
|
|
@@ -5577,9 +5588,9 @@ function (_Component) {
|
|
|
5577
5588
|
height: '100%',
|
|
5578
5589
|
display: display
|
|
5579
5590
|
};
|
|
5580
|
-
return _react["default"].createElement("div", {
|
|
5591
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5581
5592
|
style: style
|
|
5582
|
-
}, _react["default"].createElement("div", {
|
|
5593
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5583
5594
|
ref: this.ref
|
|
5584
5595
|
}));
|
|
5585
5596
|
}
|
|
@@ -5637,12 +5648,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5637
5648
|
|
|
5638
5649
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5639
5650
|
|
|
5640
|
-
function
|
|
5651
|
+
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); }; }
|
|
5641
5652
|
|
|
5642
|
-
function
|
|
5653
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5643
5654
|
|
|
5644
5655
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5645
5656
|
|
|
5657
|
+
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; } }
|
|
5658
|
+
|
|
5659
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5660
|
+
|
|
5646
5661
|
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); }
|
|
5647
5662
|
|
|
5648
5663
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5653,14 +5668,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5653
5668
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5654
5669
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5655
5670
|
|
|
5656
|
-
var Mixcloud =
|
|
5657
|
-
/*#__PURE__*/
|
|
5658
|
-
function (_Component) {
|
|
5671
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5659
5672
|
_inherits(Mixcloud, _Component);
|
|
5660
5673
|
|
|
5661
|
-
|
|
5662
|
-
var _getPrototypeOf2;
|
|
5674
|
+
var _super = _createSuper(Mixcloud);
|
|
5663
5675
|
|
|
5676
|
+
function Mixcloud() {
|
|
5664
5677
|
var _this;
|
|
5665
5678
|
|
|
5666
5679
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5669,7 +5682,7 @@ function (_Component) {
|
|
|
5669
5682
|
args[_key] = arguments[_key];
|
|
5670
5683
|
}
|
|
5671
5684
|
|
|
5672
|
-
_this =
|
|
5685
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5673
5686
|
|
|
5674
5687
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5675
5688
|
|
|
@@ -5772,7 +5785,7 @@ function (_Component) {
|
|
|
5772
5785
|
})); // We have to give the iframe a key here to prevent a
|
|
5773
5786
|
// weird dialog appearing when loading a new track
|
|
5774
5787
|
|
|
5775
|
-
return _react["default"].createElement("iframe", {
|
|
5788
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5776
5789
|
key: id,
|
|
5777
5790
|
ref: this.ref,
|
|
5778
5791
|
style: style,
|
|
@@ -5832,23 +5845,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5832
5845
|
|
|
5833
5846
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5834
5847
|
|
|
5835
|
-
function
|
|
5848
|
+
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); }; }
|
|
5836
5849
|
|
|
5837
|
-
function
|
|
5850
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5838
5851
|
|
|
5839
5852
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5840
5853
|
|
|
5854
|
+
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; } }
|
|
5855
|
+
|
|
5856
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5857
|
+
|
|
5841
5858
|
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); }
|
|
5842
5859
|
|
|
5843
5860
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5844
5861
|
|
|
5845
5862
|
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; }
|
|
5846
5863
|
|
|
5864
|
+
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; } } }; }
|
|
5865
|
+
|
|
5866
|
+
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); }
|
|
5867
|
+
|
|
5868
|
+
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; }
|
|
5869
|
+
|
|
5847
5870
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5848
5871
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5849
5872
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5850
5873
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5851
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5874
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5852
5875
|
var HLS_GLOBAL = 'Hls';
|
|
5853
5876
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5854
5877
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5857,12 +5880,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5857
5880
|
|
|
5858
5881
|
function canPlay(url) {
|
|
5859
5882
|
if (url instanceof Array) {
|
|
5860
|
-
var
|
|
5861
|
-
|
|
5862
|
-
var _iteratorError = undefined;
|
|
5883
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5884
|
+
_step;
|
|
5863
5885
|
|
|
5864
5886
|
try {
|
|
5865
|
-
for (
|
|
5887
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5866
5888
|
var item = _step.value;
|
|
5867
5889
|
|
|
5868
5890
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5874,18 +5896,9 @@ function canPlay(url) {
|
|
|
5874
5896
|
}
|
|
5875
5897
|
}
|
|
5876
5898
|
} catch (err) {
|
|
5877
|
-
|
|
5878
|
-
_iteratorError = err;
|
|
5899
|
+
_iterator.e(err);
|
|
5879
5900
|
} finally {
|
|
5880
|
-
|
|
5881
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5882
|
-
_iterator["return"]();
|
|
5883
|
-
}
|
|
5884
|
-
} finally {
|
|
5885
|
-
if (_didIteratorError) {
|
|
5886
|
-
throw _iteratorError;
|
|
5887
|
-
}
|
|
5888
|
-
}
|
|
5901
|
+
_iterator.f();
|
|
5889
5902
|
}
|
|
5890
5903
|
|
|
5891
5904
|
return false;
|
|
@@ -5909,14 +5922,12 @@ function canEnablePIP(url) {
|
|
|
5909
5922
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5910
5923
|
}
|
|
5911
5924
|
|
|
5912
|
-
var FilePlayer =
|
|
5913
|
-
/*#__PURE__*/
|
|
5914
|
-
function (_Component) {
|
|
5925
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5915
5926
|
_inherits(FilePlayer, _Component);
|
|
5916
5927
|
|
|
5917
|
-
|
|
5918
|
-
var _getPrototypeOf2;
|
|
5928
|
+
var _super = _createSuper(FilePlayer);
|
|
5919
5929
|
|
|
5930
|
+
function FilePlayer() {
|
|
5920
5931
|
var _this;
|
|
5921
5932
|
|
|
5922
5933
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5925,7 +5936,7 @@ function (_Component) {
|
|
|
5925
5936
|
_args[_key] = arguments[_key];
|
|
5926
5937
|
}
|
|
5927
5938
|
|
|
5928
|
-
_this =
|
|
5939
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5929
5940
|
|
|
5930
5941
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5931
5942
|
var _this$props;
|
|
@@ -6012,19 +6023,19 @@ function (_Component) {
|
|
|
6012
6023
|
|
|
6013
6024
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6014
6025
|
if (typeof source === 'string') {
|
|
6015
|
-
return _react["default"].createElement("source", {
|
|
6026
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6016
6027
|
key: index,
|
|
6017
6028
|
src: source
|
|
6018
6029
|
});
|
|
6019
6030
|
}
|
|
6020
6031
|
|
|
6021
|
-
return _react["default"].createElement("source", _extends({
|
|
6032
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6022
6033
|
key: index
|
|
6023
6034
|
}, source));
|
|
6024
6035
|
});
|
|
6025
6036
|
|
|
6026
6037
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6027
|
-
return _react["default"].createElement("track", _extends({
|
|
6038
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6028
6039
|
key: index
|
|
6029
6040
|
}, track));
|
|
6030
6041
|
});
|
|
@@ -6062,6 +6073,10 @@ function (_Component) {
|
|
|
6062
6073
|
key: "componentWillUnmount",
|
|
6063
6074
|
value: function componentWillUnmount() {
|
|
6064
6075
|
this.removeListeners(this.player);
|
|
6076
|
+
|
|
6077
|
+
if (this.hls) {
|
|
6078
|
+
this.hls.destroy();
|
|
6079
|
+
}
|
|
6065
6080
|
}
|
|
6066
6081
|
}, {
|
|
6067
6082
|
key: "addListeners",
|
|
@@ -6192,10 +6207,6 @@ function (_Component) {
|
|
|
6192
6207
|
value: function stop() {
|
|
6193
6208
|
this.player.removeAttribute('src');
|
|
6194
6209
|
|
|
6195
|
-
if (this.hls) {
|
|
6196
|
-
this.hls.destroy();
|
|
6197
|
-
}
|
|
6198
|
-
|
|
6199
6210
|
if (this.dash) {
|
|
6200
6211
|
this.dash.reset();
|
|
6201
6212
|
}
|
|
@@ -6307,7 +6318,7 @@ function (_Component) {
|
|
|
6307
6318
|
width: width === 'auto' ? width : '100%',
|
|
6308
6319
|
height: height === 'auto' ? height : '100%'
|
|
6309
6320
|
};
|
|
6310
|
-
return _react["default"].createElement(Element, _extends({
|
|
6321
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6311
6322
|
ref: this.ref,
|
|
6312
6323
|
src: this.getSource(url),
|
|
6313
6324
|
style: style,
|
|
@@ -6397,12 +6408,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6397
6408
|
|
|
6398
6409
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6399
6410
|
|
|
6400
|
-
function
|
|
6411
|
+
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); }; }
|
|
6401
6412
|
|
|
6402
|
-
function
|
|
6413
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6403
6414
|
|
|
6404
6415
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6405
6416
|
|
|
6417
|
+
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; } }
|
|
6418
|
+
|
|
6419
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6420
|
+
|
|
6406
6421
|
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); }
|
|
6407
6422
|
|
|
6408
6423
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6411,14 +6426,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6411
6426
|
|
|
6412
6427
|
var ICON_SIZE = '64px';
|
|
6413
6428
|
|
|
6414
|
-
var Preview =
|
|
6415
|
-
/*#__PURE__*/
|
|
6416
|
-
function (_Component) {
|
|
6429
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6417
6430
|
_inherits(Preview, _Component);
|
|
6418
6431
|
|
|
6419
|
-
|
|
6420
|
-
var _getPrototypeOf2;
|
|
6432
|
+
var _super = _createSuper(Preview);
|
|
6421
6433
|
|
|
6434
|
+
function Preview() {
|
|
6422
6435
|
var _this;
|
|
6423
6436
|
|
|
6424
6437
|
_classCallCheck(this, Preview);
|
|
@@ -6427,7 +6440,7 @@ function (_Component) {
|
|
|
6427
6440
|
args[_key] = arguments[_key];
|
|
6428
6441
|
}
|
|
6429
6442
|
|
|
6430
|
-
_this =
|
|
6443
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6431
6444
|
|
|
6432
6445
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6433
6446
|
|
|
@@ -6525,15 +6538,15 @@ function (_Component) {
|
|
|
6525
6538
|
}
|
|
6526
6539
|
};
|
|
6527
6540
|
|
|
6528
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6541
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6529
6542
|
style: styles.shadow,
|
|
6530
6543
|
className: "react-player__shadow"
|
|
6531
|
-
}, _react["default"].createElement("div", {
|
|
6544
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6532
6545
|
style: styles.playIcon,
|
|
6533
6546
|
className: "react-player__play-icon"
|
|
6534
6547
|
}));
|
|
6535
6548
|
|
|
6536
|
-
return _react["default"].createElement("div", {
|
|
6549
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6537
6550
|
style: styles.preview,
|
|
6538
6551
|
className: "react-player__preview",
|
|
6539
6552
|
onClick: onClick
|
|
@@ -6570,6 +6583,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6570
6583
|
|
|
6571
6584
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6572
6585
|
|
|
6586
|
+
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; } } }; }
|
|
6587
|
+
|
|
6588
|
+
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); }
|
|
6589
|
+
|
|
6590
|
+
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; }
|
|
6591
|
+
|
|
6573
6592
|
var PRELOAD_PLAYERS = [{
|
|
6574
6593
|
Player: YouTube_1.YouTube,
|
|
6575
6594
|
configKey: 'youtube',
|
|
@@ -6590,16 +6609,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6590
6609
|
|
|
6591
6610
|
function renderPreloadPlayers(url, controls, config) {
|
|
6592
6611
|
var players = [];
|
|
6593
|
-
|
|
6594
|
-
var
|
|
6595
|
-
|
|
6612
|
+
|
|
6613
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6614
|
+
_step;
|
|
6596
6615
|
|
|
6597
6616
|
try {
|
|
6598
|
-
for (
|
|
6617
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6599
6618
|
var player = _step.value;
|
|
6600
6619
|
|
|
6601
6620
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6602
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6621
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6603
6622
|
key: player.Player.displayName,
|
|
6604
6623
|
activePlayer: player.Player,
|
|
6605
6624
|
url: player.url,
|
|
@@ -6611,18 +6630,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6611
6630
|
}
|
|
6612
6631
|
}
|
|
6613
6632
|
} catch (err) {
|
|
6614
|
-
|
|
6615
|
-
_iteratorError = err;
|
|
6633
|
+
_iterator.e(err);
|
|
6616
6634
|
} finally {
|
|
6617
|
-
|
|
6618
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6619
|
-
_iterator["return"]();
|
|
6620
|
-
}
|
|
6621
|
-
} finally {
|
|
6622
|
-
if (_didIteratorError) {
|
|
6623
|
-
throw _iteratorError;
|
|
6624
|
-
}
|
|
6625
|
-
}
|
|
6635
|
+
_iterator.f();
|
|
6626
6636
|
}
|
|
6627
6637
|
|
|
6628
6638
|
return players;
|
|
@@ -6746,13 +6756,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6746
6756
|
|
|
6747
6757
|
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); }
|
|
6748
6758
|
|
|
6749
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6759
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6760
|
+
|
|
6761
|
+
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."); }
|
|
6762
|
+
|
|
6763
|
+
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); }
|
|
6750
6764
|
|
|
6751
|
-
function
|
|
6765
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6752
6766
|
|
|
6753
|
-
function
|
|
6767
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6754
6768
|
|
|
6755
|
-
function
|
|
6769
|
+
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; }
|
|
6756
6770
|
|
|
6757
6771
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6758
6772
|
|
|
@@ -6760,12 +6774,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6760
6774
|
|
|
6761
6775
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6762
6776
|
|
|
6763
|
-
function
|
|
6777
|
+
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); }; }
|
|
6764
6778
|
|
|
6765
|
-
function
|
|
6779
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6766
6780
|
|
|
6767
6781
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6768
6782
|
|
|
6783
|
+
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; } }
|
|
6784
|
+
|
|
6785
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6786
|
+
|
|
6769
6787
|
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); }
|
|
6770
6788
|
|
|
6771
6789
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6775,14 +6793,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6775
6793
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6776
6794
|
var customPlayers = [];
|
|
6777
6795
|
|
|
6778
|
-
var ReactPlayer =
|
|
6779
|
-
/*#__PURE__*/
|
|
6780
|
-
function (_Component) {
|
|
6796
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6781
6797
|
_inherits(ReactPlayer, _Component);
|
|
6782
6798
|
|
|
6783
|
-
|
|
6784
|
-
var _getPrototypeOf2;
|
|
6799
|
+
var _super = _createSuper(ReactPlayer);
|
|
6785
6800
|
|
|
6801
|
+
function ReactPlayer() {
|
|
6786
6802
|
var _this;
|
|
6787
6803
|
|
|
6788
6804
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6791,7 +6807,7 @@ function (_Component) {
|
|
|
6791
6807
|
args[_key] = arguments[_key];
|
|
6792
6808
|
}
|
|
6793
6809
|
|
|
6794
|
-
_this =
|
|
6810
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6795
6811
|
|
|
6796
6812
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6797
6813
|
|
|
@@ -6902,7 +6918,7 @@ function (_Component) {
|
|
|
6902
6918
|
key: "renderActivePlayer",
|
|
6903
6919
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6904
6920
|
if (!url) return null;
|
|
6905
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6921
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6906
6922
|
key: activePlayer.displayName,
|
|
6907
6923
|
ref: this.activePlayerRef,
|
|
6908
6924
|
config: this.config,
|
|
@@ -6939,14 +6955,14 @@ function (_Component) {
|
|
|
6939
6955
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6940
6956
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6941
6957
|
|
|
6942
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6958
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6943
6959
|
url: url,
|
|
6944
6960
|
light: light,
|
|
6945
6961
|
playIcon: playIcon,
|
|
6946
6962
|
onClick: this.handleClickPreview
|
|
6947
6963
|
});
|
|
6948
6964
|
|
|
6949
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6965
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6950
6966
|
ref: this.wrapperRef,
|
|
6951
6967
|
style: _objectSpread({}, style, {
|
|
6952
6968
|
width: width,
|
|
@@ -7268,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7268
7284
|
var duration = player.getDuration();
|
|
7269
7285
|
var queue = Math.floor(duration / 10);
|
|
7270
7286
|
var segment = Math.floor(current / queue);
|
|
7271
|
-
Beam.report_beam_video('Ready', main.
|
|
7272
|
-
Segment.report_video_event('Video Ready', main.
|
|
7287
|
+
Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
|
|
7273
7289
|
//autoplay
|
|
7274
7290
|
|
|
7275
7291
|
//Small pause before starting next video
|
|
@@ -7289,8 +7305,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7289
7305
|
var queue = Math.floor(duration / 10);
|
|
7290
7306
|
var segment = Math.floor(current / queue);
|
|
7291
7307
|
|
|
7292
|
-
Beam.report_beam_video('End', main.
|
|
7293
|
-
Segment.report_video_event('Video End', main.
|
|
7308
|
+
Beam.report_beam_video('End', main.main_18, duration, current, segment);
|
|
7309
|
+
Segment.report_video_event('Video End', main.main_18, duration, current, segment);
|
|
7294
7310
|
setEndReported(true);
|
|
7295
7311
|
clearInterval(intervalID);
|
|
7296
7312
|
}
|
|
@@ -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
|
if (!queueProgress.includes(segment)) {
|
|
7343
|
-
Beam.report_beam_video('Segment', main.
|
|
7344
|
-
Segment.report_video_event('Video Segment', main.
|
|
7359
|
+
Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
|
|
7360
|
+
Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
|
|
7345
7361
|
queueProgress.push(segment);
|
|
7346
7362
|
}
|
|
7347
7363
|
};
|
|
@@ -7354,8 +7370,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7354
7370
|
var queue = Math.floor(duration / 10);
|
|
7355
7371
|
var segment = Math.floor(current / queue);
|
|
7356
7372
|
|
|
7357
|
-
Beam.report_beam_video('Play', main.
|
|
7358
|
-
Segment.report_video_event('Video Play', main.
|
|
7373
|
+
Beam.report_beam_video('Play', main.main_18, duration, current, segment);
|
|
7374
|
+
Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
|
|
7359
7375
|
|
|
7360
7376
|
if (!playReported) {
|
|
7361
7377
|
setPlayReported(true);
|
|
@@ -7373,8 +7389,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7373
7389
|
var queue = Math.floor(duration / 10);
|
|
7374
7390
|
var segment = Math.floor(current / queue);
|
|
7375
7391
|
|
|
7376
|
-
Beam.report_beam_video('Pause', main.
|
|
7377
|
-
Segment.report_video_event('Video Pause', main.
|
|
7392
|
+
Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
|
|
7393
|
+
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
7378
7394
|
};
|
|
7379
7395
|
|
|
7380
7396
|
// Youtube Options
|
|
@@ -7492,7 +7508,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7492
7508
|
React__default.createElement(
|
|
7493
7509
|
'div',
|
|
7494
7510
|
{ className: 'vid-text' },
|
|
7495
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends
|
|
7511
|
+
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()))
|
|
7496
7512
|
),
|
|
7497
7513
|
React__default.createElement(
|
|
7498
7514
|
'style',
|
|
@@ -7810,7 +7826,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7810
7826
|
);
|
|
7811
7827
|
};
|
|
7812
7828
|
|
|
7813
|
-
var numberOfPaginations = main.
|
|
7829
|
+
var numberOfPaginations = main.main_42 ? 4 : 10;
|
|
7814
7830
|
|
|
7815
7831
|
var Quiz = function Quiz(_ref) {
|
|
7816
7832
|
var quizzes = _ref.quizzes,
|
|
@@ -7930,7 +7946,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7930
7946
|
var renderPagination = function renderPagination() {
|
|
7931
7947
|
return React__default.createElement(
|
|
7932
7948
|
Pagination,
|
|
7933
|
-
{ className: 'p-0 m-0', size: main.
|
|
7949
|
+
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
7934
7950
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7935
7951
|
return changePage('first');
|
|
7936
7952
|
}, disabled: currentPage === 1 }),
|
|
@@ -8250,7 +8266,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8250
8266
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8251
8267
|
React__default.createElement(
|
|
8252
8268
|
'a',
|
|
8253
|
-
_extends
|
|
8269
|
+
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8254
8270
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8255
8271
|
React__default.createElement(
|
|
8256
8272
|
'div',
|
|
@@ -8545,7 +8561,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8545
8561
|
|
|
8546
8562
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8547
8563
|
if (biography) {
|
|
8548
|
-
return React__default.createElement(BlockContent.BlockContent, _extends
|
|
8564
|
+
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8549
8565
|
}
|
|
8550
8566
|
};
|
|
8551
8567
|
|
|
@@ -8631,7 +8647,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8631
8647
|
//console.log('useLayoutEffect')
|
|
8632
8648
|
if (!firstLoad) {
|
|
8633
8649
|
setUpArrowClicked(false);
|
|
8634
|
-
if (main.
|
|
8650
|
+
if (main.main_43) {
|
|
8635
8651
|
grabLoadedAds();
|
|
8636
8652
|
} else {
|
|
8637
8653
|
scrollToArticle();
|
|
@@ -8655,7 +8671,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8655
8671
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8656
8672
|
if (pageview) pageview(path);
|
|
8657
8673
|
|
|
8658
|
-
if (!main.
|
|
8674
|
+
if (!main.main_43) {
|
|
8659
8675
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8660
8676
|
if (window.googletag && googletag.pubadsReady) {
|
|
8661
8677
|
index.lib_3.refresh();
|
|
@@ -8663,7 +8679,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8663
8679
|
});
|
|
8664
8680
|
}
|
|
8665
8681
|
//Refresh leaderboard ad on mobile
|
|
8666
|
-
if (main.
|
|
8682
|
+
if (main.main_43) {
|
|
8667
8683
|
var leaderboardSlotId = '';
|
|
8668
8684
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8669
8685
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8732,7 +8748,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8732
8748
|
React__default.createElement(
|
|
8733
8749
|
'div',
|
|
8734
8750
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8735
|
-
main.
|
|
8751
|
+
main.main_43 && Ads.map(function (ad, index) {
|
|
8736
8752
|
if (index === 0) {
|
|
8737
8753
|
return React__default.createElement(
|
|
8738
8754
|
'div',
|
|
@@ -8823,7 +8839,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8823
8839
|
React__default.createElement(
|
|
8824
8840
|
'div',
|
|
8825
8841
|
{ className: 'mt-2 mb-2' },
|
|
8826
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
8842
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8827
8843
|
serializers: getSerializers,
|
|
8828
8844
|
videoAccountIDs: accountIDs,
|
|
8829
8845
|
blocks: article.text,
|
|
@@ -8854,7 +8870,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8854
8870
|
React__default.createElement(
|
|
8855
8871
|
'div',
|
|
8856
8872
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8857
|
-
main.
|
|
8873
|
+
main.main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8858
8874
|
if (innerIndex === 0) {
|
|
8859
8875
|
return React__default.createElement(
|
|
8860
8876
|
'div',
|
|
@@ -8941,7 +8957,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8941
8957
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8942
8958
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8943
8959
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8944
|
-
React__default.createElement('img', _extends
|
|
8960
|
+
React__default.createElement('img', _extends._extends({
|
|
8945
8961
|
style: figureImageStyle,
|
|
8946
8962
|
className: 'figure-image',
|
|
8947
8963
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9117,7 +9133,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9117
9133
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9118
9134
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9119
9135
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9120
|
-
React__default.createElement('img', _extends
|
|
9136
|
+
React__default.createElement('img', _extends._extends({
|
|
9121
9137
|
'images-count': imagesCount,
|
|
9122
9138
|
className: 'multi-figure-image',
|
|
9123
9139
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9182,7 +9198,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9182
9198
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9183
9199
|
image.link ? React__default.createElement(
|
|
9184
9200
|
'a',
|
|
9185
|
-
_extends
|
|
9201
|
+
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9186
9202
|
React__default.createElement(
|
|
9187
9203
|
'div',
|
|
9188
9204
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9265,7 +9281,7 @@ exports.__esModule = true;
|
|
|
9265
9281
|
|
|
9266
9282
|
|
|
9267
9283
|
|
|
9268
|
-
var _extends3 = _interopRequireDefault(_extends
|
|
9284
|
+
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9269
9285
|
|
|
9270
9286
|
|
|
9271
9287
|
|
|
@@ -9578,7 +9594,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9578
9594
|
return React__default.createElement(
|
|
9579
9595
|
'div',
|
|
9580
9596
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9581
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
9597
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9582
9598
|
);
|
|
9583
9599
|
})
|
|
9584
9600
|
);
|