@mjhls/mjh-framework 1.0.843 → 1.0.844-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +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-6810812f.js → ADInfeed-9b50464b.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-12b1f200.js → ADlgInfeed-65e48ce7.js} +1 -1
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +14 -14
- package/dist/cjs/AdSlotsProvider.js +905 -12
- package/dist/cjs/AlgoliaSearch.js +264 -391
- 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 +451 -471
- package/dist/cjs/AuthWrapper.js +242 -283
- package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-bb831b74.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.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-ac0c1cc6.js → Dfp-26baccf1.js} +7 -7
- package/dist/cjs/EventsDeck.js +33 -33
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +8 -8
- package/dist/cjs/GridContent.js +28 -28
- package/dist/cjs/GridHero.js +8 -8
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/HamMagazine.js +25 -25
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -25
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +8 -8
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +59 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +12 -12
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +209 -208
- 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 +3 -2
- package/dist/cjs/OncliveLargeHero.js +8 -8
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +1133 -35
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +36 -36
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +15 -15
- package/dist/cjs/{SeriesSlider-dad08884.js → SeriesSlider-8bbc989f.js} +11 -11
- package/dist/cjs/SideFooter.js +10 -10
- package/dist/cjs/{SocialSearchComponent-ad15dd61.js → SocialSearchComponent-cea213aa.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 +63 -63
- package/dist/cjs/YahooHero.js +8 -8
- package/dist/cjs/YoutubeGroup.js +18 -18
- package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
- package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
- package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
- package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
- package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
- package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +11 -424
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-98ab97f7.js → getTargeting-021d644c.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
- package/dist/cjs/{index-52c2d039.js → index-45f8b70b.js} +540 -531
- package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
- package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
- package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
- package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +45 -46
- package/dist/cjs/{inherits-bfdb22af.js → inherits-452ff02c.js} +8 -8
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
- package/dist/cjs/{typeof-e83d4a26.js → typeof-725500bc.js} +4 -4
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.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-9e41b90e.js → ADInfeed-99535410.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-519eade4.js → ADlgInfeed-0d359144.js} +1 -1
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +14 -14
- package/dist/esm/AdSlotsProvider.js +907 -15
- package/dist/esm/AlgoliaSearch.js +32 -159
- 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 +445 -465
- package/dist/esm/AuthWrapper.js +242 -283
- package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.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-4b94fbd4.js → Dfp-b7236041.js} +7 -7
- package/dist/esm/EventsDeck.js +33 -33
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +8 -8
- package/dist/esm/GridContent.js +28 -28
- package/dist/esm/GridHero.js +8 -8
- package/dist/esm/GroupDeck.js +8 -8
- package/dist/esm/HamMagazine.js +25 -25
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -25
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +8 -8
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +59 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +12 -12
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +365 -364
- 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 +3 -2
- package/dist/esm/OncliveLargeHero.js +8 -8
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +1131 -34
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +36 -36
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-5ba2e521.js → SeriesSlider-a866bb21.js} +11 -11
- package/dist/esm/SideFooter.js +10 -10
- package/dist/esm/{SocialSearchComponent-9cc36413.js → SocialSearchComponent-03c3e869.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 +39 -39
- package/dist/esm/YahooHero.js +8 -8
- package/dist/esm/YoutubeGroup.js +18 -18
- package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
- package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
- package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
- package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
- package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +11 -424
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-93bb872d.js → getTargeting-82e86707.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
- package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
- package/dist/esm/{index-4f60bd57.js → index-ea86ff20.js} +540 -531
- package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
- package/dist/esm/index.js +44 -45
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-2cf82c38.js → inherits-cf8dde54.js} +5 -5
- package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
- package/dist/esm/{typeof-ad2c7a21.js → typeof-6435ba1c.js} +4 -4
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/main-bc7d4bf8.js +0 -972
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/main-ae902629.js +0 -961
|
@@ -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 = require('./extends-
|
|
9
|
-
var inherits$1 = require('./inherits-
|
|
10
|
-
var _typeof
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-452ff02c.js');
|
|
10
|
+
var _typeof = require('./typeof-725500bc.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-575fe24c.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-02daeefe.js');
|
|
24
24
|
var entities = require('./entities-310b46ee.js');
|
|
25
|
-
var slicedToArray = require('./slicedToArray-
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.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-091a991f.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-90433435.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-156bd4d6.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-5762f850.js');
|
|
40
40
|
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
41
|
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
42
|
|
|
@@ -104,18 +104,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
var isArray = Array.isArray;
|
|
108
|
+
var keyList = Object.keys;
|
|
109
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
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
|
-
|
|
115
|
+
var arrA = isArray(a)
|
|
116
|
+
, arrB = isArray(b)
|
|
117
|
+
, i
|
|
118
|
+
, length
|
|
119
|
+
, key;
|
|
116
120
|
|
|
117
|
-
|
|
118
|
-
if (Array.isArray(a)) {
|
|
121
|
+
if (arrA && arrB) {
|
|
119
122
|
length = a.length;
|
|
120
123
|
if (length != b.length) return false;
|
|
121
124
|
for (i = length; i-- !== 0;)
|
|
@@ -123,29 +126,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
123
126
|
return true;
|
|
124
127
|
}
|
|
125
128
|
|
|
129
|
+
if (arrA != arrB) return false;
|
|
126
130
|
|
|
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();
|
|
127
135
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
136
|
+
var regexpA = a instanceof RegExp
|
|
137
|
+
, regexpB = b instanceof RegExp;
|
|
138
|
+
if (regexpA != regexpB) return false;
|
|
139
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
131
140
|
|
|
132
|
-
keys =
|
|
141
|
+
var keys = keyList(a);
|
|
133
142
|
length = keys.length;
|
|
134
|
-
|
|
143
|
+
|
|
144
|
+
if (length !== keyList(b).length)
|
|
145
|
+
return false;
|
|
135
146
|
|
|
136
147
|
for (i = length; i-- !== 0;)
|
|
137
|
-
if (!
|
|
148
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
138
149
|
|
|
139
150
|
for (i = length; i-- !== 0;) {
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
key = keys[i];
|
|
142
152
|
if (!equal(a[key], b[key])) return false;
|
|
143
153
|
}
|
|
144
154
|
|
|
145
155
|
return true;
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
// true if both NaN, false otherwise
|
|
149
158
|
return a!==a && b!==b;
|
|
150
159
|
};
|
|
151
160
|
|
|
@@ -1568,239 +1577,199 @@ module.exports = exports['default'];
|
|
|
1568
1577
|
|
|
1569
1578
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1570
1579
|
|
|
1571
|
-
function
|
|
1580
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1572
1581
|
|
|
1573
|
-
function
|
|
1574
|
-
|
|
1575
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1576
|
-
|
|
1577
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1578
|
-
|
|
1579
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
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; };
|
|
1580
1583
|
|
|
1581
|
-
function
|
|
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); }
|
|
1584
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1592
1585
|
|
|
1593
|
-
function
|
|
1586
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1594
1587
|
|
|
1595
|
-
function
|
|
1588
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1596
1589
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* @param {Object}
|
|
1602
|
-
* @param {Object} props
|
|
1590
|
+
/**
|
|
1591
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {Object} prevProps
|
|
1594
|
+
* @param {Object} props
|
|
1603
1595
|
*/
|
|
1604
|
-
|
|
1605
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1606
1597
|
// A changing video should always trigger an update
|
|
1607
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1608
1599
|
return true;
|
|
1609
|
-
}
|
|
1610
|
-
// update.
|
|
1611
|
-
|
|
1600
|
+
}
|
|
1612
1601
|
|
|
1602
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
// update.
|
|
1613
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1614
1605
|
var vars = props.opts.playerVars || {};
|
|
1606
|
+
|
|
1615
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1616
1608
|
}
|
|
1617
|
-
/**
|
|
1618
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1619
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1620
|
-
* player reset is necessary.
|
|
1621
|
-
*
|
|
1622
|
-
* @param {Object} opts
|
|
1623
|
-
*/
|
|
1624
|
-
|
|
1625
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1616
|
+
*/
|
|
1626
1617
|
function filterResetOptions(opts) {
|
|
1627
|
-
return
|
|
1628
|
-
playerVars:
|
|
1618
|
+
return _extends({}, opts, {
|
|
1619
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1629
1620
|
autoplay: 0,
|
|
1630
1621
|
start: 0,
|
|
1631
1622
|
end: 0
|
|
1632
|
-
}
|
|
1623
|
+
})
|
|
1633
1624
|
});
|
|
1634
1625
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1637
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1638
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1639
|
-
* those.
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object} prevProps
|
|
1642
|
-
* @param {Object} props
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1629
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1630
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1631
|
+
* those.
|
|
1632
|
+
*
|
|
1633
|
+
* @param {Object} prevProps
|
|
1634
|
+
* @param {Object} props
|
|
1635
|
+
*/
|
|
1646
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1647
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1648
1638
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* Check whether a props change should result in an id or className update.
|
|
1651
|
-
*
|
|
1652
|
-
* @param {Object} prevProps
|
|
1653
|
-
* @param {Object} props
|
|
1654
|
-
*/
|
|
1655
|
-
|
|
1656
1639
|
|
|
1640
|
+
/**
|
|
1641
|
+
* Check whether a props change should result in an id or className update.
|
|
1642
|
+
*
|
|
1643
|
+
* @param {Object} prevProps
|
|
1644
|
+
* @param {Object} props
|
|
1645
|
+
*/
|
|
1657
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1658
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1659
1648
|
}
|
|
1660
1649
|
|
|
1661
|
-
var YouTube =
|
|
1650
|
+
var YouTube = function (_React$Component) {
|
|
1662
1651
|
_inherits(YouTube, _React$Component);
|
|
1663
1652
|
|
|
1664
|
-
var _super = _createSuper(YouTube);
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1668
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1669
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1670
|
-
*/
|
|
1671
1653
|
function YouTube(props) {
|
|
1672
|
-
var _this;
|
|
1673
|
-
|
|
1674
1654
|
_classCallCheck(this, YouTube);
|
|
1675
1655
|
|
|
1676
|
-
_this =
|
|
1656
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerReady = function (event) {
|
|
1679
1659
|
return _this.props.onReady(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerError = function (event) {
|
|
1683
1663
|
return _this.props.onError(event);
|
|
1684
|
-
}
|
|
1664
|
+
};
|
|
1685
1665
|
|
|
1686
|
-
|
|
1666
|
+
_this.onPlayerStateChange = function (event) {
|
|
1687
1667
|
_this.props.onStateChange(event);
|
|
1688
|
-
|
|
1689
1668
|
switch (event.data) {
|
|
1669
|
+
|
|
1690
1670
|
case YouTube.PlayerState.ENDED:
|
|
1691
1671
|
_this.props.onEnd(event);
|
|
1692
|
-
|
|
1693
1672
|
break;
|
|
1694
1673
|
|
|
1695
1674
|
case YouTube.PlayerState.PLAYING:
|
|
1696
1675
|
_this.props.onPlay(event);
|
|
1697
|
-
|
|
1698
1676
|
break;
|
|
1699
1677
|
|
|
1700
1678
|
case YouTube.PlayerState.PAUSED:
|
|
1701
1679
|
_this.props.onPause(event);
|
|
1702
|
-
|
|
1703
1680
|
break;
|
|
1704
1681
|
}
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackRateChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1712
1689
|
return _this.props.onPlaybackQualityChange(event);
|
|
1713
|
-
}
|
|
1690
|
+
};
|
|
1714
1691
|
|
|
1715
|
-
|
|
1692
|
+
_this.createPlayer = function () {
|
|
1716
1693
|
// do not attempt to create a player server-side, it won't work
|
|
1717
|
-
if (typeof document === 'undefined') return;
|
|
1718
|
-
|
|
1719
|
-
var playerOpts =
|
|
1694
|
+
if (typeof document === 'undefined') return;
|
|
1695
|
+
// create player
|
|
1696
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1720
1697
|
// preload the `videoId` video if one is already given
|
|
1721
1698
|
videoId: _this.props.videoId
|
|
1722
1699
|
});
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1700
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1701
|
+
// attach event handlers
|
|
1726
1702
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1727
|
-
|
|
1728
1703
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1729
|
-
|
|
1730
1704
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1731
|
-
|
|
1732
1705
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1733
|
-
|
|
1734
1706
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.resetPlayer = function () {
|
|
1738
1710
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1739
|
-
}
|
|
1711
|
+
};
|
|
1740
1712
|
|
|
1741
|
-
|
|
1713
|
+
_this.updatePlayer = function () {
|
|
1742
1714
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1743
1715
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1744
1716
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1745
1717
|
});
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1749
|
-
return _this.internalPlayer;
|
|
1750
|
-
});
|
|
1718
|
+
};
|
|
1751
1719
|
|
|
1752
|
-
|
|
1720
|
+
_this.updateVideo = function () {
|
|
1753
1721
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1754
1722
|
_this.internalPlayer.stopVideo();
|
|
1755
|
-
|
|
1756
1723
|
return;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1724
|
+
}
|
|
1759
1725
|
|
|
1726
|
+
// set queueing options
|
|
1760
1727
|
var autoplay = false;
|
|
1761
1728
|
var opts = {
|
|
1762
1729
|
videoId: _this.props.videoId
|
|
1763
1730
|
};
|
|
1764
|
-
|
|
1765
1731
|
if ('playerVars' in _this.props.opts) {
|
|
1766
1732
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1767
|
-
|
|
1768
1733
|
if ('start' in _this.props.opts.playerVars) {
|
|
1769
1734
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1770
1735
|
}
|
|
1771
|
-
|
|
1772
1736
|
if ('end' in _this.props.opts.playerVars) {
|
|
1773
1737
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1774
1738
|
}
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1739
|
+
}
|
|
1777
1740
|
|
|
1741
|
+
// if autoplay is enabled loadVideoById
|
|
1778
1742
|
if (autoplay) {
|
|
1779
1743
|
_this.internalPlayer.loadVideoById(opts);
|
|
1780
|
-
|
|
1781
1744
|
return;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
|
|
1745
|
+
}
|
|
1746
|
+
// default behaviour just cues the video
|
|
1785
1747
|
_this.internalPlayer.cueVideoById(opts);
|
|
1786
|
-
}
|
|
1748
|
+
};
|
|
1787
1749
|
|
|
1788
|
-
|
|
1750
|
+
_this.refContainer = function (container) {
|
|
1789
1751
|
_this.container = container;
|
|
1790
|
-
}
|
|
1752
|
+
};
|
|
1791
1753
|
|
|
1792
1754
|
_this.container = null;
|
|
1793
1755
|
_this.internalPlayer = null;
|
|
1794
1756
|
return _this;
|
|
1795
1757
|
}
|
|
1796
1758
|
|
|
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
|
+
|
|
1797
1766
|
_createClass(YouTube, [{
|
|
1798
|
-
key:
|
|
1767
|
+
key: 'componentDidMount',
|
|
1799
1768
|
value: function componentDidMount() {
|
|
1800
1769
|
this.createPlayer();
|
|
1801
1770
|
}
|
|
1802
1771
|
}, {
|
|
1803
|
-
key:
|
|
1772
|
+
key: 'componentDidUpdate',
|
|
1804
1773
|
value: function componentDidUpdate(prevProps) {
|
|
1805
1774
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1806
1775
|
this.updatePlayer();
|
|
@@ -1815,58 +1784,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1815
1784
|
}
|
|
1816
1785
|
}
|
|
1817
1786
|
}, {
|
|
1818
|
-
key:
|
|
1787
|
+
key: 'componentWillUnmount',
|
|
1819
1788
|
value: function componentWillUnmount() {
|
|
1820
|
-
/**
|
|
1821
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1822
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1823
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1824
|
-
* this method isn't quick enough to reset the container element.
|
|
1789
|
+
/**
|
|
1790
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
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.
|
|
1825
1794
|
*/
|
|
1826
1795
|
this.internalPlayer.destroy();
|
|
1827
1796
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
*
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1800
|
+
*
|
|
1801
|
+
* @param {Object} event
|
|
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.
|
|
1833
1863
|
*/
|
|
1834
1864
|
|
|
1835
1865
|
}, {
|
|
1836
|
-
key:
|
|
1866
|
+
key: 'render',
|
|
1837
1867
|
value: function render() {
|
|
1838
|
-
return
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
id: this.props.id,
|
|
1842
|
-
|
|
1843
|
-
ref: this.refContainer
|
|
1844
|
-
}));
|
|
1868
|
+
return React__default.createElement(
|
|
1869
|
+
'div',
|
|
1870
|
+
{ className: this.props.containerClassName },
|
|
1871
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1872
|
+
);
|
|
1845
1873
|
}
|
|
1846
1874
|
}]);
|
|
1847
1875
|
|
|
1848
1876
|
return YouTube;
|
|
1849
1877
|
}(React__default.Component);
|
|
1850
1878
|
|
|
1851
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1852
|
-
UNSTARTED: -1,
|
|
1853
|
-
ENDED: 0,
|
|
1854
|
-
PLAYING: 1,
|
|
1855
|
-
PAUSED: 2,
|
|
1856
|
-
BUFFERING: 3,
|
|
1857
|
-
CUED: 5
|
|
1858
|
-
});
|
|
1859
|
-
|
|
1860
1879
|
YouTube.propTypes = {
|
|
1861
1880
|
videoId: PropTypes__default.string,
|
|
1881
|
+
|
|
1862
1882
|
// custom ID for player element
|
|
1863
1883
|
id: PropTypes__default.string,
|
|
1884
|
+
|
|
1864
1885
|
// custom class name for player element
|
|
1865
1886
|
className: PropTypes__default.string,
|
|
1866
1887
|
// custom class name for player container element
|
|
1867
1888
|
containerClassName: PropTypes__default.string,
|
|
1889
|
+
|
|
1868
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1869
1891
|
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1892
|
+
|
|
1870
1893
|
// event subscriptions
|
|
1871
1894
|
onReady: PropTypes__default.func,
|
|
1872
1895
|
onError: PropTypes__default.func,
|
|
@@ -1878,7 +1901,6 @@ YouTube.propTypes = {
|
|
|
1878
1901
|
onPlaybackQualityChange: PropTypes__default.func
|
|
1879
1902
|
};
|
|
1880
1903
|
YouTube.defaultProps = {
|
|
1881
|
-
videoId: null,
|
|
1882
1904
|
id: null,
|
|
1883
1905
|
className: null,
|
|
1884
1906
|
opts: {},
|
|
@@ -1892,6 +1914,14 @@ YouTube.defaultProps = {
|
|
|
1892
1914
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1893
1915
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1894
1916
|
};
|
|
1917
|
+
YouTube.PlayerState = {
|
|
1918
|
+
UNSTARTED: -1,
|
|
1919
|
+
ENDED: 0,
|
|
1920
|
+
PLAYING: 1,
|
|
1921
|
+
PAUSED: 2,
|
|
1922
|
+
BUFFERING: 3,
|
|
1923
|
+
CUED: 5
|
|
1924
|
+
};
|
|
1895
1925
|
|
|
1896
1926
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1897
1927
|
var url = _ref.url,
|
|
@@ -1930,8 +1960,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1930
1960
|
var duration = player.getDuration();
|
|
1931
1961
|
var queue = Math.floor(duration / 10);
|
|
1932
1962
|
var segment = Math.floor(current / queue);
|
|
1933
|
-
Beam.report_beam_video('Ready', main.
|
|
1934
|
-
Segment.report_video_event('Video Ready', main.
|
|
1963
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
1964
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1935
1965
|
};
|
|
1936
1966
|
|
|
1937
1967
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1941,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1941
1971
|
var segment = Math.floor(current / queue);
|
|
1942
1972
|
|
|
1943
1973
|
if (!queueProgress.includes(segment)) {
|
|
1944
|
-
Beam.report_beam_video('Segment', main.
|
|
1945
|
-
Segment.report_video_event('Video Segment', main.
|
|
1974
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
1975
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1946
1976
|
queueProgress.push(segment);
|
|
1947
1977
|
}
|
|
1948
1978
|
};
|
|
@@ -1955,8 +1985,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1955
1985
|
var queue = Math.floor(duration / 10);
|
|
1956
1986
|
var segment = Math.floor(current / queue);
|
|
1957
1987
|
|
|
1958
|
-
Beam.report_beam_video('Play', main.
|
|
1959
|
-
Segment.report_video_event('Video Play', main.
|
|
1988
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
1989
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1960
1990
|
|
|
1961
1991
|
if (!playReported) {
|
|
1962
1992
|
setPlayReported(true);
|
|
@@ -1975,8 +2005,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1975
2005
|
var queue = Math.floor(duration / 10);
|
|
1976
2006
|
var segment = Math.floor(current / queue);
|
|
1977
2007
|
|
|
1978
|
-
Beam.report_beam_video('End', main.
|
|
1979
|
-
Segment.report_video_event('Video End', main.
|
|
2008
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
2009
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1980
2010
|
setEndReported(true);
|
|
1981
2011
|
clearInterval(intervalID);
|
|
1982
2012
|
}
|
|
@@ -1989,8 +2019,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1989
2019
|
var queue = Math.floor(duration / 10);
|
|
1990
2020
|
var segment = Math.floor(current / queue);
|
|
1991
2021
|
|
|
1992
|
-
Beam.report_beam_video('Pause', main.
|
|
1993
|
-
Segment.report_video_event('Video Pause', main.
|
|
2022
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
2023
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1994
2024
|
};
|
|
1995
2025
|
|
|
1996
2026
|
return React__default.createElement(
|
|
@@ -2158,7 +2188,7 @@ var Media = function Media(_ref) {
|
|
|
2158
2188
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2159
2189
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2160
2190
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2161
|
-
React__default.createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2191
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2162
2192
|
)
|
|
2163
2193
|
),
|
|
2164
2194
|
caption && React__default.createElement(
|
|
@@ -2171,7 +2201,7 @@ var Media = function Media(_ref) {
|
|
|
2171
2201
|
} else if (caption && caption !== '') {
|
|
2172
2202
|
return React__default.createElement(
|
|
2173
2203
|
'a',
|
|
2174
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2204
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2175
2205
|
href: uploadDoc.asset.url + '?dl='
|
|
2176
2206
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2177
2207
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2226,8 +2256,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2226
2256
|
var duration = player.duration;
|
|
2227
2257
|
var queue = Math.floor(duration / 10);
|
|
2228
2258
|
var segment = Math.floor(current / queue);
|
|
2229
|
-
Beam.report_beam_video('Ready', main.
|
|
2230
|
-
Segment.report_video_event('Video Ready', main.
|
|
2259
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2260
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2231
2261
|
};
|
|
2232
2262
|
|
|
2233
2263
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2236,8 +2266,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2236
2266
|
var queue = Math.floor(duration / 10);
|
|
2237
2267
|
var segment = Math.floor(current / queue);
|
|
2238
2268
|
if (!queueProgress.includes(segment)) {
|
|
2239
|
-
Beam.report_beam_video('Segment', main.
|
|
2240
|
-
Segment.report_video_event('Video Segment', main.
|
|
2269
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2270
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2241
2271
|
queueProgress.push(segment);
|
|
2242
2272
|
}
|
|
2243
2273
|
};
|
|
@@ -2249,8 +2279,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2279
|
var duration = player.duration;
|
|
2250
2280
|
var queue = Math.floor(duration / 10);
|
|
2251
2281
|
var segment = Math.floor(current / queue);
|
|
2252
|
-
Beam.report_beam_video('Play', main.
|
|
2253
|
-
Segment.report_video_event('Video Play', main.
|
|
2282
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
|
|
2283
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2254
2284
|
|
|
2255
2285
|
if (!playReported) {
|
|
2256
2286
|
event.persist();
|
|
@@ -2270,8 +2300,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2270
2300
|
var queue = Math.floor(duration / 10);
|
|
2271
2301
|
var segment = Math.floor(current / queue);
|
|
2272
2302
|
|
|
2273
|
-
Beam.report_beam_video('End', main.
|
|
2274
|
-
Segment.report_video_event('Video End', main.
|
|
2303
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
|
|
2304
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2275
2305
|
setEndReported(true);
|
|
2276
2306
|
clearInterval(intervalID);
|
|
2277
2307
|
}
|
|
@@ -2283,8 +2313,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2283
2313
|
var duration = player.duration - current;
|
|
2284
2314
|
var queue = Math.floor(duration / 10);
|
|
2285
2315
|
var segment = Math.floor(current / queue);
|
|
2286
|
-
Beam.report_beam_video('Pause', main.
|
|
2287
|
-
Segment.report_video_event('Video Pause', main.
|
|
2316
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2317
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2288
2318
|
};
|
|
2289
2319
|
|
|
2290
2320
|
return React__default.createElement(
|
|
@@ -2345,7 +2375,7 @@ var Video = function Video(_ref) {
|
|
|
2345
2375
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2346
2376
|
//console.log('success:', success.ref)
|
|
2347
2377
|
var player = success.ref;
|
|
2348
|
-
if (_typeof
|
|
2378
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2349
2379
|
player.ima3.settings.debug = true;
|
|
2350
2380
|
if (targeting.content_placement && targeting.document_url) {
|
|
2351
2381
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2373,8 +2403,8 @@ var Video = function Video(_ref) {
|
|
|
2373
2403
|
player.pause();
|
|
2374
2404
|
}
|
|
2375
2405
|
|
|
2376
|
-
Beam.report_beam_video('Ready', main.
|
|
2377
|
-
Segment.report_video_event('Video Ready', main.
|
|
2406
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2407
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2378
2408
|
});
|
|
2379
2409
|
|
|
2380
2410
|
// play
|
|
@@ -2383,8 +2413,8 @@ var Video = function Video(_ref) {
|
|
|
2383
2413
|
var current = player.currentTime();
|
|
2384
2414
|
var queue = Math.floor(duration / 10);
|
|
2385
2415
|
var segment = Math.floor(current / queue);
|
|
2386
|
-
Beam.report_beam_video('Play', main.
|
|
2387
|
-
Segment.report_video_event('Video Play', main.
|
|
2416
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2417
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2388
2418
|
});
|
|
2389
2419
|
|
|
2390
2420
|
// pause
|
|
@@ -2393,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2393
2423
|
var current = player.currentTime();
|
|
2394
2424
|
var queue = Math.floor(duration / 10);
|
|
2395
2425
|
var segment = Math.floor(current / queue);
|
|
2396
|
-
Beam.report_beam_video('Pause', main.
|
|
2397
|
-
Segment.report_video_event('Video Pause', main.
|
|
2426
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2427
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
2428
|
});
|
|
2399
2429
|
|
|
2400
2430
|
// end
|
|
@@ -2403,8 +2433,8 @@ var Video = function Video(_ref) {
|
|
|
2403
2433
|
var current = player.currentTime();
|
|
2404
2434
|
var queue = Math.floor(duration / 10);
|
|
2405
2435
|
var segment = Math.floor(current / queue);
|
|
2406
|
-
Beam.report_beam_video('End', main.
|
|
2407
|
-
Segment.report_video_event('Video End', main.
|
|
2436
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2437
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2408
2438
|
autoplayNextVideo(evt);
|
|
2409
2439
|
});
|
|
2410
2440
|
|
|
@@ -2415,8 +2445,8 @@ var Video = function Video(_ref) {
|
|
|
2415
2445
|
var queue = Math.floor(duration / 10);
|
|
2416
2446
|
var segment = Math.floor(current / queue);
|
|
2417
2447
|
if (!queueProgress.includes(segment)) {
|
|
2418
|
-
Beam.report_beam_video('Segment', main.
|
|
2419
|
-
Segment.report_video_event('Video Segment', main.
|
|
2448
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2449
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2420
2450
|
queueProgress.push(segment);
|
|
2421
2451
|
}
|
|
2422
2452
|
});
|
|
@@ -2427,8 +2457,8 @@ var Video = function Video(_ref) {
|
|
|
2427
2457
|
var id = player.ads.ad.id;
|
|
2428
2458
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2429
2459
|
|
|
2430
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2431
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2460
|
+
Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2461
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2432
2462
|
});
|
|
2433
2463
|
|
|
2434
2464
|
// ad ended
|
|
@@ -2436,8 +2466,8 @@ var Video = function Video(_ref) {
|
|
|
2436
2466
|
var duration = player.ads.ad.duration;
|
|
2437
2467
|
var id = player.ads.ad.id;
|
|
2438
2468
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2439
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2440
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2469
|
+
Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2470
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2441
2471
|
});
|
|
2442
2472
|
};
|
|
2443
2473
|
|
|
@@ -2867,17 +2897,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2867
2897
|
|
|
2868
2898
|
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; }
|
|
2869
2899
|
|
|
2870
|
-
function
|
|
2871
|
-
|
|
2872
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2873
|
-
|
|
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); }
|
|
2900
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2877
2901
|
|
|
2878
|
-
function
|
|
2902
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2879
2903
|
|
|
2880
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2904
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2881
2905
|
|
|
2882
2906
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2883
2907
|
|
|
@@ -3007,12 +3031,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3007
3031
|
|
|
3008
3032
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3009
3033
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3010
|
-
|
|
3011
|
-
var
|
|
3012
|
-
|
|
3034
|
+
var _iteratorNormalCompletion = true;
|
|
3035
|
+
var _didIteratorError = false;
|
|
3036
|
+
var _iteratorError = undefined;
|
|
3013
3037
|
|
|
3014
3038
|
try {
|
|
3015
|
-
for (_iterator.
|
|
3039
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3016
3040
|
var p = _step.value;
|
|
3017
3041
|
|
|
3018
3042
|
if (props$1[p]) {
|
|
@@ -3027,9 +3051,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3027
3051
|
}
|
|
3028
3052
|
}
|
|
3029
3053
|
} catch (err) {
|
|
3030
|
-
|
|
3054
|
+
_didIteratorError = true;
|
|
3055
|
+
_iteratorError = err;
|
|
3031
3056
|
} finally {
|
|
3032
|
-
|
|
3057
|
+
try {
|
|
3058
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3059
|
+
_iterator["return"]();
|
|
3060
|
+
}
|
|
3061
|
+
} finally {
|
|
3062
|
+
if (_didIteratorError) {
|
|
3063
|
+
throw _iteratorError;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3033
3066
|
}
|
|
3034
3067
|
|
|
3035
3068
|
return config;
|
|
@@ -3176,16 +3209,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3176
3209
|
|
|
3177
3210
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3178
3211
|
|
|
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); }; }
|
|
3180
|
-
|
|
3181
3212
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3182
3213
|
|
|
3183
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3214
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3188
3215
|
|
|
3216
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3217
|
+
|
|
3189
3218
|
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); }
|
|
3190
3219
|
|
|
3191
3220
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3194,12 +3223,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3194
3223
|
|
|
3195
3224
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3196
3225
|
|
|
3197
|
-
var Player =
|
|
3226
|
+
var Player =
|
|
3227
|
+
/*#__PURE__*/
|
|
3228
|
+
function (_Component) {
|
|
3198
3229
|
_inherits(Player, _Component);
|
|
3199
3230
|
|
|
3200
|
-
var _super = _createSuper(Player);
|
|
3201
|
-
|
|
3202
3231
|
function Player() {
|
|
3232
|
+
var _getPrototypeOf2;
|
|
3233
|
+
|
|
3203
3234
|
var _this;
|
|
3204
3235
|
|
|
3205
3236
|
_classCallCheck(this, Player);
|
|
@@ -3208,7 +3239,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3208
3239
|
_args[_key] = arguments[_key];
|
|
3209
3240
|
}
|
|
3210
3241
|
|
|
3211
|
-
_this =
|
|
3242
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3212
3243
|
|
|
3213
3244
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3214
3245
|
|
|
@@ -3533,7 +3564,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3533
3564
|
return null;
|
|
3534
3565
|
}
|
|
3535
3566
|
|
|
3536
|
-
return
|
|
3567
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3537
3568
|
ref: this.ref,
|
|
3538
3569
|
onReady: this.handleReady,
|
|
3539
3570
|
onPlay: this.handlePlay,
|
|
@@ -3594,16 +3625,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3594
3625
|
|
|
3595
3626
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3596
3627
|
|
|
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); }; }
|
|
3598
|
-
|
|
3599
3628
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3600
3629
|
|
|
3601
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3630
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3606
3631
|
|
|
3632
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3633
|
+
|
|
3607
3634
|
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); }
|
|
3608
3635
|
|
|
3609
3636
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3615,12 +3642,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3615
3642
|
function createSinglePlayer(activePlayer) {
|
|
3616
3643
|
var _class, _temp;
|
|
3617
3644
|
|
|
3618
|
-
return _temp = _class =
|
|
3645
|
+
return _temp = _class =
|
|
3646
|
+
/*#__PURE__*/
|
|
3647
|
+
function (_Component) {
|
|
3619
3648
|
_inherits(SinglePlayer, _Component);
|
|
3620
3649
|
|
|
3621
|
-
var _super = _createSuper(SinglePlayer);
|
|
3622
|
-
|
|
3623
3650
|
function SinglePlayer() {
|
|
3651
|
+
var _getPrototypeOf2;
|
|
3652
|
+
|
|
3624
3653
|
var _this;
|
|
3625
3654
|
|
|
3626
3655
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3629,7 +3658,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3629
3658
|
args[_key] = arguments[_key];
|
|
3630
3659
|
}
|
|
3631
3660
|
|
|
3632
|
-
_this =
|
|
3661
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3633
3662
|
|
|
3634
3663
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3635
3664
|
|
|
@@ -3697,12 +3726,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3697
3726
|
height = _this$props.height,
|
|
3698
3727
|
Wrapper = _this$props.wrapper;
|
|
3699
3728
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3700
|
-
return
|
|
3729
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3701
3730
|
style: _objectSpread({}, style, {
|
|
3702
3731
|
width: width,
|
|
3703
3732
|
height: height
|
|
3704
3733
|
})
|
|
3705
|
-
}, otherProps),
|
|
3734
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3706
3735
|
ref: this.ref,
|
|
3707
3736
|
activePlayer: activePlayer,
|
|
3708
3737
|
config: this.config
|
|
@@ -3748,31 +3777,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3748
3777
|
|
|
3749
3778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3750
3779
|
|
|
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); }; }
|
|
3752
|
-
|
|
3753
3780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3754
3781
|
|
|
3755
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3760
3783
|
|
|
3784
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3785
|
+
|
|
3761
3786
|
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); }
|
|
3762
3787
|
|
|
3763
3788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3764
3789
|
|
|
3765
3790
|
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; }
|
|
3766
3791
|
|
|
3767
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3768
|
-
|
|
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."); }
|
|
3792
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3770
3793
|
|
|
3771
|
-
function
|
|
3794
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3772
3795
|
|
|
3773
|
-
function
|
|
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; }
|
|
3796
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3776
3797
|
|
|
3777
3798
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3778
3799
|
|
|
@@ -3797,12 +3818,14 @@ function parsePlaylist(url) {
|
|
|
3797
3818
|
return {};
|
|
3798
3819
|
}
|
|
3799
3820
|
|
|
3800
|
-
var YouTube =
|
|
3821
|
+
var YouTube =
|
|
3822
|
+
/*#__PURE__*/
|
|
3823
|
+
function (_Component) {
|
|
3801
3824
|
_inherits(YouTube, _Component);
|
|
3802
3825
|
|
|
3803
|
-
var _super = _createSuper(YouTube);
|
|
3804
|
-
|
|
3805
3826
|
function YouTube() {
|
|
3827
|
+
var _getPrototypeOf2;
|
|
3828
|
+
|
|
3806
3829
|
var _this;
|
|
3807
3830
|
|
|
3808
3831
|
_classCallCheck(this, YouTube);
|
|
@@ -3811,7 +3834,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3811
3834
|
args[_key] = arguments[_key];
|
|
3812
3835
|
}
|
|
3813
3836
|
|
|
3814
|
-
_this =
|
|
3837
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3815
3838
|
|
|
3816
3839
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3817
3840
|
|
|
@@ -3999,9 +4022,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3999
4022
|
height: '100%',
|
|
4000
4023
|
display: display
|
|
4001
4024
|
};
|
|
4002
|
-
return
|
|
4025
|
+
return _react["default"].createElement("div", {
|
|
4003
4026
|
style: style
|
|
4004
|
-
},
|
|
4027
|
+
}, _react["default"].createElement("div", {
|
|
4005
4028
|
ref: this.ref
|
|
4006
4029
|
}));
|
|
4007
4030
|
}
|
|
@@ -4057,16 +4080,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4057
4080
|
|
|
4058
4081
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4059
4082
|
|
|
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); }; }
|
|
4061
|
-
|
|
4062
4083
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4063
4084
|
|
|
4064
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4085
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4069
4086
|
|
|
4087
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4088
|
+
|
|
4070
4089
|
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); }
|
|
4071
4090
|
|
|
4072
4091
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4075,14 +4094,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4075
4094
|
|
|
4076
4095
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4077
4096
|
var SDK_GLOBAL = 'SC';
|
|
4078
|
-
var MATCH_URL = /(
|
|
4097
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4079
4098
|
|
|
4080
|
-
var SoundCloud =
|
|
4099
|
+
var SoundCloud =
|
|
4100
|
+
/*#__PURE__*/
|
|
4101
|
+
function (_Component) {
|
|
4081
4102
|
_inherits(SoundCloud, _Component);
|
|
4082
4103
|
|
|
4083
|
-
var _super = _createSuper(SoundCloud);
|
|
4084
|
-
|
|
4085
4104
|
function SoundCloud() {
|
|
4105
|
+
var _getPrototypeOf2;
|
|
4106
|
+
|
|
4086
4107
|
var _this;
|
|
4087
4108
|
|
|
4088
4109
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4091,7 +4112,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4091
4112
|
args[_key] = arguments[_key];
|
|
4092
4113
|
}
|
|
4093
4114
|
|
|
4094
|
-
_this =
|
|
4115
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4095
4116
|
|
|
4096
4117
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4097
4118
|
|
|
@@ -4212,7 +4233,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4212
4233
|
height: '100%',
|
|
4213
4234
|
display: display
|
|
4214
4235
|
};
|
|
4215
|
-
return
|
|
4236
|
+
return _react["default"].createElement("iframe", {
|
|
4216
4237
|
ref: this.ref,
|
|
4217
4238
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4218
4239
|
style: style,
|
|
@@ -4274,16 +4295,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4274
4295
|
|
|
4275
4296
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4276
4297
|
|
|
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); }; }
|
|
4278
|
-
|
|
4279
4298
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4280
4299
|
|
|
4281
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4300
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4286
4301
|
|
|
4302
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4303
|
+
|
|
4287
4304
|
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); }
|
|
4288
4305
|
|
|
4289
4306
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4295,12 +4312,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4295
4312
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4296
4313
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4297
4314
|
|
|
4298
|
-
var Vimeo =
|
|
4315
|
+
var Vimeo =
|
|
4316
|
+
/*#__PURE__*/
|
|
4317
|
+
function (_Component) {
|
|
4299
4318
|
_inherits(Vimeo, _Component);
|
|
4300
4319
|
|
|
4301
|
-
var _super = _createSuper(Vimeo);
|
|
4302
|
-
|
|
4303
4320
|
function Vimeo() {
|
|
4321
|
+
var _getPrototypeOf2;
|
|
4322
|
+
|
|
4304
4323
|
var _this;
|
|
4305
4324
|
|
|
4306
4325
|
_classCallCheck(this, Vimeo);
|
|
@@ -4309,7 +4328,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4309
4328
|
args[_key] = arguments[_key];
|
|
4310
4329
|
}
|
|
4311
4330
|
|
|
4312
|
-
_this =
|
|
4331
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4313
4332
|
|
|
4314
4333
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4315
4334
|
|
|
@@ -4466,7 +4485,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4466
4485
|
overflow: 'hidden',
|
|
4467
4486
|
display: display
|
|
4468
4487
|
};
|
|
4469
|
-
return
|
|
4488
|
+
return _react["default"].createElement("div", {
|
|
4470
4489
|
key: this.props.url,
|
|
4471
4490
|
ref: this.ref,
|
|
4472
4491
|
style: style
|
|
@@ -4526,16 +4545,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4526
4545
|
|
|
4527
4546
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4528
4547
|
|
|
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); }; }
|
|
4530
|
-
|
|
4531
4548
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4532
4549
|
|
|
4533
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4550
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4538
4551
|
|
|
4552
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4553
|
+
|
|
4539
4554
|
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); }
|
|
4540
4555
|
|
|
4541
4556
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4548,12 +4563,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4548
4563
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4549
4564
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4550
4565
|
|
|
4551
|
-
var Facebook =
|
|
4566
|
+
var Facebook =
|
|
4567
|
+
/*#__PURE__*/
|
|
4568
|
+
function (_Component) {
|
|
4552
4569
|
_inherits(Facebook, _Component);
|
|
4553
4570
|
|
|
4554
|
-
var _super = _createSuper(Facebook);
|
|
4555
|
-
|
|
4556
4571
|
function Facebook() {
|
|
4572
|
+
var _getPrototypeOf2;
|
|
4573
|
+
|
|
4557
4574
|
var _this;
|
|
4558
4575
|
|
|
4559
4576
|
_classCallCheck(this, Facebook);
|
|
@@ -4562,7 +4579,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4562
4579
|
args[_key] = arguments[_key];
|
|
4563
4580
|
}
|
|
4564
4581
|
|
|
4565
|
-
_this =
|
|
4582
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4566
4583
|
|
|
4567
4584
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4568
4585
|
|
|
@@ -4678,7 +4695,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4678
4695
|
width: '100%',
|
|
4679
4696
|
height: '100%'
|
|
4680
4697
|
};
|
|
4681
|
-
return
|
|
4698
|
+
return _react["default"].createElement("div", {
|
|
4682
4699
|
style: style,
|
|
4683
4700
|
id: this.playerID,
|
|
4684
4701
|
className: "fb-video",
|
|
@@ -4738,16 +4755,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4738
4755
|
|
|
4739
4756
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4740
4757
|
|
|
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); }; }
|
|
4742
|
-
|
|
4743
4758
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4744
4759
|
|
|
4745
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4760
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4750
4761
|
|
|
4762
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4763
|
+
|
|
4751
4764
|
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); }
|
|
4752
4765
|
|
|
4753
4766
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4758,12 +4771,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4758
4771
|
var SDK_GLOBAL = 'playerjs';
|
|
4759
4772
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4760
4773
|
|
|
4761
|
-
var Streamable =
|
|
4774
|
+
var Streamable =
|
|
4775
|
+
/*#__PURE__*/
|
|
4776
|
+
function (_Component) {
|
|
4762
4777
|
_inherits(Streamable, _Component);
|
|
4763
4778
|
|
|
4764
|
-
var _super = _createSuper(Streamable);
|
|
4765
|
-
|
|
4766
4779
|
function Streamable() {
|
|
4780
|
+
var _getPrototypeOf2;
|
|
4781
|
+
|
|
4767
4782
|
var _this;
|
|
4768
4783
|
|
|
4769
4784
|
_classCallCheck(this, Streamable);
|
|
@@ -4772,7 +4787,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4772
4787
|
args[_key] = arguments[_key];
|
|
4773
4788
|
}
|
|
4774
4789
|
|
|
4775
|
-
_this =
|
|
4790
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4776
4791
|
|
|
4777
4792
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4778
4793
|
|
|
@@ -4892,7 +4907,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4892
4907
|
width: '100%',
|
|
4893
4908
|
height: '100%'
|
|
4894
4909
|
};
|
|
4895
|
-
return
|
|
4910
|
+
return _react["default"].createElement("iframe", {
|
|
4896
4911
|
ref: this.ref,
|
|
4897
4912
|
src: "https://streamable.com/o/".concat(id),
|
|
4898
4913
|
frameBorder: "0",
|
|
@@ -4953,16 +4968,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4953
4968
|
|
|
4954
4969
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4955
4970
|
|
|
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); }; }
|
|
4957
|
-
|
|
4958
4971
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4959
4972
|
|
|
4960
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4973
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4965
4974
|
|
|
4975
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4976
|
+
|
|
4966
4977
|
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); }
|
|
4967
4978
|
|
|
4968
4979
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4973,48 +4984,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4973
4984
|
var SDK_GLOBAL = 'Wistia';
|
|
4974
4985
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4975
4986
|
|
|
4976
|
-
var Wistia =
|
|
4987
|
+
var Wistia =
|
|
4988
|
+
/*#__PURE__*/
|
|
4989
|
+
function (_Component) {
|
|
4977
4990
|
_inherits(Wistia, _Component);
|
|
4978
4991
|
|
|
4979
|
-
var _super = _createSuper(Wistia);
|
|
4980
|
-
|
|
4981
4992
|
function Wistia() {
|
|
4993
|
+
var _getPrototypeOf2;
|
|
4994
|
+
|
|
4982
4995
|
var _this;
|
|
4983
4996
|
|
|
4984
4997
|
_classCallCheck(this, Wistia);
|
|
4985
4998
|
|
|
4986
|
-
for (var _len = arguments.length,
|
|
4987
|
-
|
|
4999
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5000
|
+
args[_key] = arguments[_key];
|
|
4988
5001
|
}
|
|
4989
5002
|
|
|
4990
|
-
_this =
|
|
5003
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4991
5004
|
|
|
4992
5005
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4993
5006
|
|
|
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
|
-
|
|
5018
5007
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5019
5008
|
_this.callPlayer('mute');
|
|
5020
5009
|
});
|
|
@@ -5036,13 +5025,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5036
5025
|
value: function load(url) {
|
|
5037
5026
|
var _this2 = this;
|
|
5038
5027
|
|
|
5039
|
-
var _this$
|
|
5040
|
-
playing = _this$
|
|
5041
|
-
muted = _this$
|
|
5042
|
-
controls = _this$
|
|
5043
|
-
_onReady = _this$
|
|
5044
|
-
|
|
5045
|
-
|
|
5028
|
+
var _this$props = this.props,
|
|
5029
|
+
playing = _this$props.playing,
|
|
5030
|
+
muted = _this$props.muted,
|
|
5031
|
+
controls = _this$props.controls,
|
|
5032
|
+
_onReady = _this$props.onReady,
|
|
5033
|
+
onPlay = _this$props.onPlay,
|
|
5034
|
+
onPause = _this$props.onPause,
|
|
5035
|
+
onSeek = _this$props.onSeek,
|
|
5036
|
+
onEnded = _this$props.onEnded,
|
|
5037
|
+
config = _this$props.config,
|
|
5038
|
+
onError = _this$props.onError;
|
|
5046
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5047
5040
|
window._wq = window._wq || [];
|
|
5048
5041
|
|
|
@@ -5059,28 +5052,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5059
5052
|
|
|
5060
5053
|
_this2.unbind();
|
|
5061
5054
|
|
|
5062
|
-
_this2.player.bind('play',
|
|
5055
|
+
_this2.player.bind('play', onPlay);
|
|
5063
5056
|
|
|
5064
|
-
_this2.player.bind('pause',
|
|
5057
|
+
_this2.player.bind('pause', onPause);
|
|
5065
5058
|
|
|
5066
|
-
_this2.player.bind('seek',
|
|
5059
|
+
_this2.player.bind('seek', onSeek);
|
|
5067
5060
|
|
|
5068
|
-
_this2.player.bind('end',
|
|
5061
|
+
_this2.player.bind('end', onEnded);
|
|
5069
5062
|
|
|
5070
5063
|
_onReady();
|
|
5071
5064
|
}
|
|
5072
5065
|
});
|
|
5073
5066
|
}, onError);
|
|
5074
5067
|
}
|
|
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
|
-
|
|
5084
5068
|
}, {
|
|
5085
5069
|
key: "play",
|
|
5086
5070
|
value: function play() {
|
|
@@ -5091,6 +5075,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5091
5075
|
value: function pause() {
|
|
5092
5076
|
this.callPlayer('pause');
|
|
5093
5077
|
}
|
|
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
|
+
}
|
|
5094
5091
|
}, {
|
|
5095
5092
|
key: "stop",
|
|
5096
5093
|
value: function stop() {
|
|
@@ -5136,7 +5133,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5136
5133
|
width: '100%',
|
|
5137
5134
|
height: '100%'
|
|
5138
5135
|
};
|
|
5139
|
-
return
|
|
5136
|
+
return _react["default"].createElement("div", {
|
|
5140
5137
|
key: id,
|
|
5141
5138
|
className: className,
|
|
5142
5139
|
style: style
|
|
@@ -5196,16 +5193,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5196
5193
|
|
|
5197
5194
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5198
5195
|
|
|
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); }; }
|
|
5200
|
-
|
|
5201
5196
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5202
5197
|
|
|
5203
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5198
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5208
5199
|
|
|
5200
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5201
|
+
|
|
5209
5202
|
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); }
|
|
5210
5203
|
|
|
5211
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5218,12 +5211,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5218
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5219
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5220
5213
|
|
|
5221
|
-
var Twitch =
|
|
5214
|
+
var Twitch =
|
|
5215
|
+
/*#__PURE__*/
|
|
5216
|
+
function (_Component) {
|
|
5222
5217
|
_inherits(Twitch, _Component);
|
|
5223
5218
|
|
|
5224
|
-
var _super = _createSuper(Twitch);
|
|
5225
|
-
|
|
5226
5219
|
function Twitch() {
|
|
5220
|
+
var _getPrototypeOf2;
|
|
5221
|
+
|
|
5227
5222
|
var _this;
|
|
5228
5223
|
|
|
5229
5224
|
_classCallCheck(this, Twitch);
|
|
@@ -5232,7 +5227,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5232
5227
|
args[_key] = arguments[_key];
|
|
5233
5228
|
}
|
|
5234
5229
|
|
|
5235
|
-
_this =
|
|
5230
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5236
5231
|
|
|
5237
5232
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5238
5233
|
|
|
@@ -5353,7 +5348,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5353
5348
|
width: '100%',
|
|
5354
5349
|
height: '100%'
|
|
5355
5350
|
};
|
|
5356
|
-
return
|
|
5351
|
+
return _react["default"].createElement("div", {
|
|
5357
5352
|
style: style,
|
|
5358
5353
|
id: this.playerID
|
|
5359
5354
|
});
|
|
@@ -5406,15 +5401,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5406
5401
|
|
|
5407
5402
|
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; }
|
|
5408
5403
|
|
|
5409
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
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."); }
|
|
5412
|
-
|
|
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); }
|
|
5404
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5414
5405
|
|
|
5415
|
-
function
|
|
5406
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5416
5407
|
|
|
5417
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5408
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5418
5409
|
|
|
5419
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5420
5411
|
|
|
@@ -5424,16 +5415,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5424
5415
|
|
|
5425
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5426
5417
|
|
|
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); }; }
|
|
5428
|
-
|
|
5429
5418
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5430
5419
|
|
|
5431
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5420
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5436
5421
|
|
|
5422
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
|
+
|
|
5437
5424
|
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); }
|
|
5438
5425
|
|
|
5439
5426
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5445,12 +5432,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5445
5432
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5446
5433
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5447
5434
|
|
|
5448
|
-
var DailyMotion =
|
|
5435
|
+
var DailyMotion =
|
|
5436
|
+
/*#__PURE__*/
|
|
5437
|
+
function (_Component) {
|
|
5449
5438
|
_inherits(DailyMotion, _Component);
|
|
5450
5439
|
|
|
5451
|
-
var _super = _createSuper(DailyMotion);
|
|
5452
|
-
|
|
5453
5440
|
function DailyMotion() {
|
|
5441
|
+
var _getPrototypeOf2;
|
|
5442
|
+
|
|
5454
5443
|
var _this;
|
|
5455
5444
|
|
|
5456
5445
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5459,7 +5448,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5459
5448
|
args[_key] = arguments[_key];
|
|
5460
5449
|
}
|
|
5461
5450
|
|
|
5462
|
-
_this =
|
|
5451
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5463
5452
|
|
|
5464
5453
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5465
5454
|
|
|
@@ -5588,9 +5577,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5588
5577
|
height: '100%',
|
|
5589
5578
|
display: display
|
|
5590
5579
|
};
|
|
5591
|
-
return
|
|
5580
|
+
return _react["default"].createElement("div", {
|
|
5592
5581
|
style: style
|
|
5593
|
-
},
|
|
5582
|
+
}, _react["default"].createElement("div", {
|
|
5594
5583
|
ref: this.ref
|
|
5595
5584
|
}));
|
|
5596
5585
|
}
|
|
@@ -5648,16 +5637,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5648
5637
|
|
|
5649
5638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5650
5639
|
|
|
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); }; }
|
|
5652
|
-
|
|
5653
5640
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5654
5641
|
|
|
5655
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5642
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5660
5643
|
|
|
5644
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5645
|
+
|
|
5661
5646
|
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); }
|
|
5662
5647
|
|
|
5663
5648
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5668,12 +5653,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5668
5653
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5669
5654
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5670
5655
|
|
|
5671
|
-
var Mixcloud =
|
|
5656
|
+
var Mixcloud =
|
|
5657
|
+
/*#__PURE__*/
|
|
5658
|
+
function (_Component) {
|
|
5672
5659
|
_inherits(Mixcloud, _Component);
|
|
5673
5660
|
|
|
5674
|
-
var _super = _createSuper(Mixcloud);
|
|
5675
|
-
|
|
5676
5661
|
function Mixcloud() {
|
|
5662
|
+
var _getPrototypeOf2;
|
|
5663
|
+
|
|
5677
5664
|
var _this;
|
|
5678
5665
|
|
|
5679
5666
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5682,7 +5669,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5682
5669
|
args[_key] = arguments[_key];
|
|
5683
5670
|
}
|
|
5684
5671
|
|
|
5685
|
-
_this =
|
|
5672
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5686
5673
|
|
|
5687
5674
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5688
5675
|
|
|
@@ -5785,7 +5772,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5785
5772
|
})); // We have to give the iframe a key here to prevent a
|
|
5786
5773
|
// weird dialog appearing when loading a new track
|
|
5787
5774
|
|
|
5788
|
-
return
|
|
5775
|
+
return _react["default"].createElement("iframe", {
|
|
5789
5776
|
key: id,
|
|
5790
5777
|
ref: this.ref,
|
|
5791
5778
|
style: style,
|
|
@@ -5845,33 +5832,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5845
5832
|
|
|
5846
5833
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5847
5834
|
|
|
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); }; }
|
|
5849
|
-
|
|
5850
5835
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5851
5836
|
|
|
5852
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5837
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5857
5838
|
|
|
5839
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5840
|
+
|
|
5858
5841
|
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); }
|
|
5859
5842
|
|
|
5860
5843
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5861
5844
|
|
|
5862
5845
|
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; }
|
|
5863
5846
|
|
|
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
|
-
|
|
5870
5847
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5871
5848
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5872
5849
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5873
5850
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5874
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5851
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5875
5852
|
var HLS_GLOBAL = 'Hls';
|
|
5876
5853
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5877
5854
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5880,11 +5857,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5880
5857
|
|
|
5881
5858
|
function canPlay(url) {
|
|
5882
5859
|
if (url instanceof Array) {
|
|
5883
|
-
var
|
|
5884
|
-
|
|
5860
|
+
var _iteratorNormalCompletion = true;
|
|
5861
|
+
var _didIteratorError = false;
|
|
5862
|
+
var _iteratorError = undefined;
|
|
5885
5863
|
|
|
5886
5864
|
try {
|
|
5887
|
-
for (_iterator.
|
|
5865
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5888
5866
|
var item = _step.value;
|
|
5889
5867
|
|
|
5890
5868
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5896,9 +5874,18 @@ function canPlay(url) {
|
|
|
5896
5874
|
}
|
|
5897
5875
|
}
|
|
5898
5876
|
} catch (err) {
|
|
5899
|
-
|
|
5877
|
+
_didIteratorError = true;
|
|
5878
|
+
_iteratorError = err;
|
|
5900
5879
|
} finally {
|
|
5901
|
-
|
|
5880
|
+
try {
|
|
5881
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5882
|
+
_iterator["return"]();
|
|
5883
|
+
}
|
|
5884
|
+
} finally {
|
|
5885
|
+
if (_didIteratorError) {
|
|
5886
|
+
throw _iteratorError;
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5902
5889
|
}
|
|
5903
5890
|
|
|
5904
5891
|
return false;
|
|
@@ -5922,12 +5909,14 @@ function canEnablePIP(url) {
|
|
|
5922
5909
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5923
5910
|
}
|
|
5924
5911
|
|
|
5925
|
-
var FilePlayer =
|
|
5912
|
+
var FilePlayer =
|
|
5913
|
+
/*#__PURE__*/
|
|
5914
|
+
function (_Component) {
|
|
5926
5915
|
_inherits(FilePlayer, _Component);
|
|
5927
5916
|
|
|
5928
|
-
var _super = _createSuper(FilePlayer);
|
|
5929
|
-
|
|
5930
5917
|
function FilePlayer() {
|
|
5918
|
+
var _getPrototypeOf2;
|
|
5919
|
+
|
|
5931
5920
|
var _this;
|
|
5932
5921
|
|
|
5933
5922
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5936,7 +5925,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5936
5925
|
_args[_key] = arguments[_key];
|
|
5937
5926
|
}
|
|
5938
5927
|
|
|
5939
|
-
_this =
|
|
5928
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5940
5929
|
|
|
5941
5930
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5942
5931
|
var _this$props;
|
|
@@ -6023,19 +6012,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6023
6012
|
|
|
6024
6013
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6025
6014
|
if (typeof source === 'string') {
|
|
6026
|
-
return
|
|
6015
|
+
return _react["default"].createElement("source", {
|
|
6027
6016
|
key: index,
|
|
6028
6017
|
src: source
|
|
6029
6018
|
});
|
|
6030
6019
|
}
|
|
6031
6020
|
|
|
6032
|
-
return
|
|
6021
|
+
return _react["default"].createElement("source", _extends({
|
|
6033
6022
|
key: index
|
|
6034
6023
|
}, source));
|
|
6035
6024
|
});
|
|
6036
6025
|
|
|
6037
6026
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6038
|
-
return
|
|
6027
|
+
return _react["default"].createElement("track", _extends({
|
|
6039
6028
|
key: index
|
|
6040
6029
|
}, track));
|
|
6041
6030
|
});
|
|
@@ -6073,10 +6062,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6073
6062
|
key: "componentWillUnmount",
|
|
6074
6063
|
value: function componentWillUnmount() {
|
|
6075
6064
|
this.removeListeners(this.player);
|
|
6076
|
-
|
|
6077
|
-
if (this.hls) {
|
|
6078
|
-
this.hls.destroy();
|
|
6079
|
-
}
|
|
6080
6065
|
}
|
|
6081
6066
|
}, {
|
|
6082
6067
|
key: "addListeners",
|
|
@@ -6207,6 +6192,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6207
6192
|
value: function stop() {
|
|
6208
6193
|
this.player.removeAttribute('src');
|
|
6209
6194
|
|
|
6195
|
+
if (this.hls) {
|
|
6196
|
+
this.hls.destroy();
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6210
6199
|
if (this.dash) {
|
|
6211
6200
|
this.dash.reset();
|
|
6212
6201
|
}
|
|
@@ -6318,7 +6307,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6318
6307
|
width: width === 'auto' ? width : '100%',
|
|
6319
6308
|
height: height === 'auto' ? height : '100%'
|
|
6320
6309
|
};
|
|
6321
|
-
return
|
|
6310
|
+
return _react["default"].createElement(Element, _extends({
|
|
6322
6311
|
ref: this.ref,
|
|
6323
6312
|
src: this.getSource(url),
|
|
6324
6313
|
style: style,
|
|
@@ -6408,16 +6397,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6408
6397
|
|
|
6409
6398
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6410
6399
|
|
|
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); }; }
|
|
6412
|
-
|
|
6413
6400
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6414
6401
|
|
|
6415
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6402
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6420
6403
|
|
|
6404
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6405
|
+
|
|
6421
6406
|
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); }
|
|
6422
6407
|
|
|
6423
6408
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6426,12 +6411,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6426
6411
|
|
|
6427
6412
|
var ICON_SIZE = '64px';
|
|
6428
6413
|
|
|
6429
|
-
var Preview =
|
|
6414
|
+
var Preview =
|
|
6415
|
+
/*#__PURE__*/
|
|
6416
|
+
function (_Component) {
|
|
6430
6417
|
_inherits(Preview, _Component);
|
|
6431
6418
|
|
|
6432
|
-
var _super = _createSuper(Preview);
|
|
6433
|
-
|
|
6434
6419
|
function Preview() {
|
|
6420
|
+
var _getPrototypeOf2;
|
|
6421
|
+
|
|
6435
6422
|
var _this;
|
|
6436
6423
|
|
|
6437
6424
|
_classCallCheck(this, Preview);
|
|
@@ -6440,7 +6427,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6440
6427
|
args[_key] = arguments[_key];
|
|
6441
6428
|
}
|
|
6442
6429
|
|
|
6443
|
-
_this =
|
|
6430
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6444
6431
|
|
|
6445
6432
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6446
6433
|
|
|
@@ -6538,15 +6525,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6538
6525
|
}
|
|
6539
6526
|
};
|
|
6540
6527
|
|
|
6541
|
-
var defaultPlayIcon =
|
|
6528
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6542
6529
|
style: styles.shadow,
|
|
6543
6530
|
className: "react-player__shadow"
|
|
6544
|
-
},
|
|
6531
|
+
}, _react["default"].createElement("div", {
|
|
6545
6532
|
style: styles.playIcon,
|
|
6546
6533
|
className: "react-player__play-icon"
|
|
6547
6534
|
}));
|
|
6548
6535
|
|
|
6549
|
-
return
|
|
6536
|
+
return _react["default"].createElement("div", {
|
|
6550
6537
|
style: styles.preview,
|
|
6551
6538
|
className: "react-player__preview",
|
|
6552
6539
|
onClick: onClick
|
|
@@ -6583,12 +6570,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6583
6570
|
|
|
6584
6571
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6585
6572
|
|
|
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
|
-
|
|
6592
6573
|
var PRELOAD_PLAYERS = [{
|
|
6593
6574
|
Player: YouTube_1.YouTube,
|
|
6594
6575
|
configKey: 'youtube',
|
|
@@ -6609,16 +6590,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6609
6590
|
|
|
6610
6591
|
function renderPreloadPlayers(url, controls, config) {
|
|
6611
6592
|
var players = [];
|
|
6612
|
-
|
|
6613
|
-
var
|
|
6614
|
-
|
|
6593
|
+
var _iteratorNormalCompletion = true;
|
|
6594
|
+
var _didIteratorError = false;
|
|
6595
|
+
var _iteratorError = undefined;
|
|
6615
6596
|
|
|
6616
6597
|
try {
|
|
6617
|
-
for (_iterator.
|
|
6598
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6618
6599
|
var player = _step.value;
|
|
6619
6600
|
|
|
6620
6601
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6621
|
-
players.push(
|
|
6602
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6622
6603
|
key: player.Player.displayName,
|
|
6623
6604
|
activePlayer: player.Player,
|
|
6624
6605
|
url: player.url,
|
|
@@ -6630,9 +6611,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6630
6611
|
}
|
|
6631
6612
|
}
|
|
6632
6613
|
} catch (err) {
|
|
6633
|
-
|
|
6614
|
+
_didIteratorError = true;
|
|
6615
|
+
_iteratorError = err;
|
|
6634
6616
|
} finally {
|
|
6635
|
-
|
|
6617
|
+
try {
|
|
6618
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6619
|
+
_iterator["return"]();
|
|
6620
|
+
}
|
|
6621
|
+
} finally {
|
|
6622
|
+
if (_didIteratorError) {
|
|
6623
|
+
throw _iteratorError;
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6636
6626
|
}
|
|
6637
6627
|
|
|
6638
6628
|
return players;
|
|
@@ -6756,17 +6746,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6756
6746
|
|
|
6757
6747
|
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); }
|
|
6758
6748
|
|
|
6759
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
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."); }
|
|
6749
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6762
6750
|
|
|
6763
|
-
function
|
|
6751
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6764
6752
|
|
|
6765
|
-
function _iterableToArray(iter) { if (
|
|
6753
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6766
6754
|
|
|
6767
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6768
|
-
|
|
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; }
|
|
6755
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6770
6756
|
|
|
6771
6757
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6772
6758
|
|
|
@@ -6774,16 +6760,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6774
6760
|
|
|
6775
6761
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6776
6762
|
|
|
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); }; }
|
|
6778
|
-
|
|
6779
6763
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6780
6764
|
|
|
6781
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6765
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6786
6766
|
|
|
6767
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6768
|
+
|
|
6787
6769
|
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); }
|
|
6788
6770
|
|
|
6789
6771
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6793,12 +6775,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6793
6775
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6794
6776
|
var customPlayers = [];
|
|
6795
6777
|
|
|
6796
|
-
var ReactPlayer =
|
|
6778
|
+
var ReactPlayer =
|
|
6779
|
+
/*#__PURE__*/
|
|
6780
|
+
function (_Component) {
|
|
6797
6781
|
_inherits(ReactPlayer, _Component);
|
|
6798
6782
|
|
|
6799
|
-
var _super = _createSuper(ReactPlayer);
|
|
6800
|
-
|
|
6801
6783
|
function ReactPlayer() {
|
|
6784
|
+
var _getPrototypeOf2;
|
|
6785
|
+
|
|
6802
6786
|
var _this;
|
|
6803
6787
|
|
|
6804
6788
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6807,7 +6791,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6807
6791
|
args[_key] = arguments[_key];
|
|
6808
6792
|
}
|
|
6809
6793
|
|
|
6810
|
-
_this =
|
|
6794
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6811
6795
|
|
|
6812
6796
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6813
6797
|
|
|
@@ -6918,7 +6902,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6918
6902
|
key: "renderActivePlayer",
|
|
6919
6903
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6920
6904
|
if (!url) return null;
|
|
6921
|
-
return
|
|
6905
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6922
6906
|
key: activePlayer.displayName,
|
|
6923
6907
|
ref: this.activePlayerRef,
|
|
6924
6908
|
config: this.config,
|
|
@@ -6955,14 +6939,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6955
6939
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6956
6940
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6957
6941
|
|
|
6958
|
-
var preview =
|
|
6942
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6959
6943
|
url: url,
|
|
6960
6944
|
light: light,
|
|
6961
6945
|
playIcon: playIcon,
|
|
6962
6946
|
onClick: this.handleClickPreview
|
|
6963
6947
|
});
|
|
6964
6948
|
|
|
6965
|
-
return
|
|
6949
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6966
6950
|
ref: this.wrapperRef,
|
|
6967
6951
|
style: _objectSpread({}, style, {
|
|
6968
6952
|
width: width,
|
|
@@ -7284,8 +7268,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7268
|
var duration = player.getDuration();
|
|
7285
7269
|
var queue = Math.floor(duration / 10);
|
|
7286
7270
|
var segment = Math.floor(current / queue);
|
|
7287
|
-
Beam.report_beam_video('Ready', main.
|
|
7288
|
-
Segment.report_video_event('Video Ready', main.
|
|
7271
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
7272
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7289
7273
|
//autoplay
|
|
7290
7274
|
|
|
7291
7275
|
//Small pause before starting next video
|
|
@@ -7305,8 +7289,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7305
7289
|
var queue = Math.floor(duration / 10);
|
|
7306
7290
|
var segment = Math.floor(current / queue);
|
|
7307
7291
|
|
|
7308
|
-
Beam.report_beam_video('End', main.
|
|
7309
|
-
Segment.report_video_event('Video End', main.
|
|
7292
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
7293
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7310
7294
|
setEndReported(true);
|
|
7311
7295
|
clearInterval(intervalID);
|
|
7312
7296
|
}
|
|
@@ -7356,8 +7340,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7356
7340
|
var queue = Math.floor(duration / 10);
|
|
7357
7341
|
var segment = Math.floor(current / queue);
|
|
7358
7342
|
if (!queueProgress.includes(segment)) {
|
|
7359
|
-
Beam.report_beam_video('Segment', main.
|
|
7360
|
-
Segment.report_video_event('Video Segment', main.
|
|
7343
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
7344
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7361
7345
|
queueProgress.push(segment);
|
|
7362
7346
|
}
|
|
7363
7347
|
};
|
|
@@ -7370,8 +7354,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7370
7354
|
var queue = Math.floor(duration / 10);
|
|
7371
7355
|
var segment = Math.floor(current / queue);
|
|
7372
7356
|
|
|
7373
|
-
Beam.report_beam_video('Play', main.
|
|
7374
|
-
Segment.report_video_event('Video Play', main.
|
|
7357
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
7358
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7375
7359
|
|
|
7376
7360
|
if (!playReported) {
|
|
7377
7361
|
setPlayReported(true);
|
|
@@ -7389,8 +7373,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7389
7373
|
var queue = Math.floor(duration / 10);
|
|
7390
7374
|
var segment = Math.floor(current / queue);
|
|
7391
7375
|
|
|
7392
|
-
Beam.report_beam_video('Pause', main.
|
|
7393
|
-
Segment.report_video_event('Video Pause', main.
|
|
7376
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
7377
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7394
7378
|
};
|
|
7395
7379
|
|
|
7396
7380
|
// Youtube Options
|
|
@@ -7508,7 +7492,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7508
7492
|
React__default.createElement(
|
|
7509
7493
|
'div',
|
|
7510
7494
|
{ className: 'vid-text' },
|
|
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()))
|
|
7495
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7512
7496
|
),
|
|
7513
7497
|
React__default.createElement(
|
|
7514
7498
|
'style',
|
|
@@ -7826,7 +7810,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7826
7810
|
);
|
|
7827
7811
|
};
|
|
7828
7812
|
|
|
7829
|
-
var numberOfPaginations = main.
|
|
7813
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7830
7814
|
|
|
7831
7815
|
var Quiz = function Quiz(_ref) {
|
|
7832
7816
|
var quizzes = _ref.quizzes,
|
|
@@ -7946,7 +7930,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7946
7930
|
var renderPagination = function renderPagination() {
|
|
7947
7931
|
return React__default.createElement(
|
|
7948
7932
|
Pagination,
|
|
7949
|
-
{ className: 'p-0 m-0', size: main.
|
|
7933
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7950
7934
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7951
7935
|
return changePage('first');
|
|
7952
7936
|
}, disabled: currentPage === 1 }),
|
|
@@ -8123,7 +8107,6 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8123
8107
|
getSerializers = _ref.getSerializers;
|
|
8124
8108
|
|
|
8125
8109
|
var router = Router.useRouter();
|
|
8126
|
-
var carouselRef = React.useRef(null);
|
|
8127
8110
|
var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
|
|
8128
8111
|
|
|
8129
8112
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
@@ -8150,14 +8133,12 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8150
8133
|
var pageNumber = selectedIndex + 1;
|
|
8151
8134
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
8152
8135
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
8153
|
-
|
|
8154
|
-
carouselRef.current.scrollIntoView();
|
|
8155
|
-
}
|
|
8136
|
+
setCarouselIndex(selectedIndex);
|
|
8156
8137
|
};
|
|
8157
8138
|
|
|
8158
8139
|
return React__default.createElement(
|
|
8159
8140
|
'div',
|
|
8160
|
-
{
|
|
8141
|
+
{ className: 'mt-3 mb-4' },
|
|
8161
8142
|
React__default.createElement(
|
|
8162
8143
|
reactBootstrap.Carousel,
|
|
8163
8144
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
@@ -8170,15 +8151,24 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8170
8151
|
'a',
|
|
8171
8152
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8172
8153
|
React__default.createElement(
|
|
8173
|
-
|
|
8174
|
-
|
|
8154
|
+
'div',
|
|
8155
|
+
{ className: 'embed-responsive embed-responsive-slide' },
|
|
8175
8156
|
React__default.createElement(
|
|
8176
|
-
|
|
8157
|
+
index$2.LazyLoad,
|
|
8177
8158
|
null,
|
|
8178
|
-
React__default.createElement(
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8159
|
+
React__default.createElement(
|
|
8160
|
+
'picture',
|
|
8161
|
+
null,
|
|
8162
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8163
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8164
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8165
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8166
|
+
)
|
|
8167
|
+
),
|
|
8168
|
+
React__default.createElement(
|
|
8169
|
+
'style',
|
|
8170
|
+
{ jsx: 'true' },
|
|
8171
|
+
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8182
8172
|
)
|
|
8183
8173
|
)
|
|
8184
8174
|
),
|
|
@@ -8266,7 +8256,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8266
8256
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8267
8257
|
React__default.createElement(
|
|
8268
8258
|
'a',
|
|
8269
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8259
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8270
8260
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8271
8261
|
React__default.createElement(
|
|
8272
8262
|
'div',
|
|
@@ -8561,7 +8551,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8561
8551
|
|
|
8562
8552
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8563
8553
|
if (biography) {
|
|
8564
|
-
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8554
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8565
8555
|
}
|
|
8566
8556
|
};
|
|
8567
8557
|
|
|
@@ -8647,7 +8637,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8647
8637
|
//console.log('useLayoutEffect')
|
|
8648
8638
|
if (!firstLoad) {
|
|
8649
8639
|
setUpArrowClicked(false);
|
|
8650
|
-
if (main.
|
|
8640
|
+
if (main.main_36) {
|
|
8651
8641
|
grabLoadedAds();
|
|
8652
8642
|
} else {
|
|
8653
8643
|
scrollToArticle();
|
|
@@ -8671,7 +8661,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8661
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8672
8662
|
if (pageview) pageview(path);
|
|
8673
8663
|
|
|
8674
|
-
if (!main.
|
|
8664
|
+
if (!main.main_36) {
|
|
8675
8665
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8676
8666
|
if (window.googletag && googletag.pubadsReady) {
|
|
8677
8667
|
index.lib_3.refresh();
|
|
@@ -8679,7 +8669,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8679
8669
|
});
|
|
8680
8670
|
}
|
|
8681
8671
|
//Refresh leaderboard ad on mobile
|
|
8682
|
-
if (main.
|
|
8672
|
+
if (main.main_36) {
|
|
8683
8673
|
var leaderboardSlotId = '';
|
|
8684
8674
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8685
8675
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8748,7 +8738,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8748
8738
|
React__default.createElement(
|
|
8749
8739
|
'div',
|
|
8750
8740
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8751
|
-
main.
|
|
8741
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8752
8742
|
if (index === 0) {
|
|
8753
8743
|
return React__default.createElement(
|
|
8754
8744
|
'div',
|
|
@@ -8839,7 +8829,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8839
8829
|
React__default.createElement(
|
|
8840
8830
|
'div',
|
|
8841
8831
|
{ className: 'mt-2 mb-2' },
|
|
8842
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8832
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8843
8833
|
serializers: getSerializers,
|
|
8844
8834
|
videoAccountIDs: accountIDs,
|
|
8845
8835
|
blocks: article.text,
|
|
@@ -8870,7 +8860,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8870
8860
|
React__default.createElement(
|
|
8871
8861
|
'div',
|
|
8872
8862
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8873
|
-
main.
|
|
8863
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8874
8864
|
if (innerIndex === 0) {
|
|
8875
8865
|
return React__default.createElement(
|
|
8876
8866
|
'div',
|
|
@@ -8957,7 +8947,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8957
8947
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8958
8948
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8959
8949
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8960
|
-
React__default.createElement('img', _extends._extends({
|
|
8950
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8961
8951
|
style: figureImageStyle,
|
|
8962
8952
|
className: 'figure-image',
|
|
8963
8953
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9133,7 +9123,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9133
9123
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9134
9124
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9135
9125
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9136
|
-
React__default.createElement('img', _extends._extends({
|
|
9126
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9137
9127
|
'images-count': imagesCount,
|
|
9138
9128
|
className: 'multi-figure-image',
|
|
9139
9129
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9198,7 +9188,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9198
9188
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9199
9189
|
image.link ? React__default.createElement(
|
|
9200
9190
|
'a',
|
|
9201
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9191
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9202
9192
|
React__default.createElement(
|
|
9203
9193
|
'div',
|
|
9204
9194
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9249,10 +9239,29 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9249
9239
|
|
|
9250
9240
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9251
9241
|
|
|
9242
|
+
React.useEffect(function () {
|
|
9243
|
+
var timer = setTimeout(function () {
|
|
9244
|
+
var hash = window.location.hash;
|
|
9245
|
+
if (hash) {
|
|
9246
|
+
var _elementId = hash.slice(1);
|
|
9247
|
+
var element = document.getElementById(_elementId);
|
|
9248
|
+
element && element.scrollIntoView();
|
|
9249
|
+
}
|
|
9250
|
+
}, 3000);
|
|
9251
|
+
return function () {
|
|
9252
|
+
clearTimeout(timer);
|
|
9253
|
+
};
|
|
9254
|
+
}, []);
|
|
9255
|
+
|
|
9252
9256
|
return React__default.createElement(
|
|
9253
9257
|
'div',
|
|
9254
9258
|
{ id: elementId },
|
|
9255
|
-
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9259
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9260
|
+
React__default.createElement(
|
|
9261
|
+
'style',
|
|
9262
|
+
{ jsx: 'true' },
|
|
9263
|
+
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -100px;\n height: 100px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
9264
|
+
)
|
|
9256
9265
|
);
|
|
9257
9266
|
};
|
|
9258
9267
|
|
|
@@ -9281,7 +9290,7 @@ exports.__esModule = true;
|
|
|
9281
9290
|
|
|
9282
9291
|
|
|
9283
9292
|
|
|
9284
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9293
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9285
9294
|
|
|
9286
9295
|
|
|
9287
9296
|
|
|
@@ -9594,7 +9603,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9594
9603
|
return React__default.createElement(
|
|
9595
9604
|
'div',
|
|
9596
9605
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9597
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9606
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9598
9607
|
);
|
|
9599
9608
|
})
|
|
9600
9609
|
);
|