@mjhls/mjh-framework 1.0.834-beta.0 → 1.0.834
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +13 -13
- package/dist/cjs/AD300x250x600.js +13 -13
- package/dist/cjs/AD728x90.js +14 -14
- package/dist/cjs/ADFloatingFooter.js +12 -12
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +12 -12
- package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-7b3f64e1.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +12 -12
- package/dist/cjs/ADSponsoredResources.js +12 -12
- package/dist/cjs/ADWebcast.js +12 -12
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-17a6e476.js} +1 -1
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +14 -14
- package/dist/cjs/AdSlotsProvider.js +12 -905
- package/dist/cjs/AlgoliaSearch.js +76 -48
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +10 -10
- package/dist/cjs/ArticleProgramLandingPage.js +27 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +18 -18
- package/dist/cjs/Auth.js +465 -245
- package/dist/cjs/AuthWrapper.js +283 -242
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-0c464248.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-bac780ac.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +8 -8
- package/dist/cjs/Column3.js +16 -16
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-ac0c1cc6.js} +7 -7
- package/dist/cjs/EventsDeck.js +33 -33
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +8 -8
- package/dist/cjs/GridContent.js +28 -28
- package/dist/cjs/GridHero.js +8 -8
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/HamMagazine.js +25 -25
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -25
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +8 -8
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +59 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +12 -12
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +208 -209
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +24 -24
- package/dist/cjs/NavNative.js +21 -21
- package/dist/cjs/OncliveHero.js +2 -3
- package/dist/cjs/OncliveLargeHero.js +8 -8
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +31 -31
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +36 -36
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +15 -15
- package/dist/cjs/{SeriesSlider-d16a5ae5.js → SeriesSlider-abd231e9.js} +11 -11
- package/dist/cjs/SideFooter.js +10 -10
- package/dist/cjs/{SocialSearchComponent-97dd19a5.js → SocialSearchComponent-bef9a9d8.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +4 -4
- package/dist/cjs/TaxonomyDescription.js +25 -25
- package/dist/cjs/TemplateNormal.js +18 -18
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +12 -12
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +27 -27
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +18 -18
- package/dist/cjs/View.js +62 -142
- package/dist/cjs/YahooHero.js +8 -8
- package/dist/cjs/YoutubeGroup.js +18 -18
- package/dist/cjs/{_is-array-754e012d.js → _is-array-39ff55dd.js} +1 -1
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-ef35661e.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b231f928.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-c3aeb51d.js} +1 -1
- package/dist/cjs/{_to-object-329a650b.js → _to-object-7a3ce269.js} +2 -2
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-8ae2191c.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-05029198.js} +4 -3
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-6cd7682d.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-6191c8ee.js} +1 -1
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-fc002cec.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-03c4c82e.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-ab94a594.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-acc1318d.js} +1 -1
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-98ab97f7.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-a0bdcb69.js → index-0f62d00b.js} +517 -501
- package/dist/cjs/{index-e2e62963.js → index-53e27416.js} +25 -9
- package/dist/cjs/{index-3294d3bc.js → index-79eed652.js} +39 -40
- package/dist/cjs/{index-be0c82be.js → index-ff69979f.js} +28 -22
- package/dist/cjs/{index.es-9110add6.js → index.es-e9d84959.js} +23 -5
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/{index.esm-4d410430.js → index.esm-bf016399.js} +2 -3
- package/dist/cjs/index.js +42 -41
- package/dist/cjs/{inherits-9953db94.js → inherits-bfdb22af.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-62e097ca.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-b5e0d5f6.js} +127 -30
- package/dist/cjs/main-bc7d4bf8.js +972 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-41819145.js} +4 -4
- package/dist/cjs/{stringify-7c5aff47.js → stringify-7ccc8524.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-4fdb72e2.js} +4 -4
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-f2f8744b.js} +39 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-e83d4a26.js} +4 -4
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-c30d203c.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-68e3aaf2.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +13 -13
- package/dist/esm/AD300x250x600.js +13 -13
- package/dist/esm/AD728x90.js +14 -14
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +12 -12
- package/dist/esm/{ADInfeed-b566ce41.js → ADInfeed-77c2092d.js} +1 -1
- package/dist/esm/ADSkyscraper.js +12 -12
- package/dist/esm/ADSponsoredResources.js +12 -12
- package/dist/esm/ADWebcast.js +12 -12
- package/dist/esm/ADWelcome.js +12 -12
- package/dist/esm/{ADlgInfeed-5eb7281d.js → ADlgInfeed-12d2ac78.js} +1 -1
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +14 -14
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +75 -47
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +10 -10
- package/dist/esm/ArticleProgramLandingPage.js +26 -26
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +464 -244
- package/dist/esm/AuthWrapper.js +283 -242
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5cab1f6b.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-ea93e8f7.js} +1 -1
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +8 -8
- package/dist/esm/Column3.js +16 -16
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +19 -19
- package/dist/esm/{Dfp-b7236041.js → Dfp-4b94fbd4.js} +7 -7
- package/dist/esm/EventsDeck.js +33 -33
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +8 -8
- package/dist/esm/GridContent.js +28 -28
- package/dist/esm/GridHero.js +8 -8
- package/dist/esm/GroupDeck.js +8 -8
- package/dist/esm/HamMagazine.js +25 -25
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -25
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +8 -8
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +59 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +12 -12
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +364 -365
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +24 -24
- package/dist/esm/NavNative.js +21 -21
- package/dist/esm/OncliveHero.js +2 -3
- package/dist/esm/OncliveLargeHero.js +8 -8
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +30 -30
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +36 -36
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-8dc17b11.js → SeriesSlider-d9cf4ffb.js} +11 -11
- package/dist/esm/SideFooter.js +10 -10
- package/dist/esm/{SocialSearchComponent-db5ba548.js → SocialSearchComponent-4f7d1c5b.js} +7 -7
- package/dist/esm/TaxonomyCard.js +4 -4
- package/dist/esm/TaxonomyDescription.js +25 -25
- package/dist/esm/TemplateNormal.js +18 -18
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoProgramLandingPage.js +26 -26
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +18 -18
- package/dist/esm/View.js +38 -118
- package/dist/esm/YahooHero.js +8 -8
- package/dist/esm/YoutubeGroup.js +18 -18
- package/dist/esm/{_is-array-58e95429.js → _is-array-328b85b7.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-0fa1c752.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-1b84e2bf.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c8f72bf1.js} +1 -1
- package/dist/esm/{_to-object-a4107da3.js → _to-object-cedb5b78.js} +2 -2
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-e1a2f43a.js} +5 -5
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e761d404.js} +4 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-227107e6.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-89969f66.js} +1 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-2f35af22.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-eb9699c0.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-1577cb76.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-be71a29a.js} +1 -1
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/getRelatedArticle.js +6 -6
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-93bb872d.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-ef6d5dcf.js → index-511bdaa5.js} +39 -40
- package/dist/esm/{index-aaa2dae0.js → index-637e8f49.js} +25 -10
- package/dist/esm/{index-d9cf292f.js → index-eca81448.js} +517 -501
- package/dist/esm/{index-73819142.js → index-f7fdcc91.js} +28 -22
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/{index.esm-fd746768.js → index.esm-ed50151c.js} +2 -3
- package/dist/esm/index.js +42 -41
- package/dist/esm/{inherits-cf8dde54.js → inherits-2cf82c38.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-526daf0a.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-a818d390.js} +127 -30
- package/dist/esm/main-ae902629.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-f0edf3d6.js} +4 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-d1b9276a.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-81605212.js} +4 -4
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-e3dcad26.js} +39 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-ad2c7a21.js} +4 -4
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-cf90f7e6.js} +4 -4
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-ace8ed30.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/main-e4a934b2.js +0 -851
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _export, a as _core } from './_to-object-
|
|
3
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-
|
|
4
|
-
import { _ as _extends
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
6
|
-
import { _ as _typeof } from './typeof-
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-cedb5b78.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-81605212.js';
|
|
4
|
+
import { _ as _extends, b as _extends$1 } from './extends-be71a29a.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2cf82c38.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-ad2c7a21.js';
|
|
7
7
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
8
|
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
14
|
import urlFor from './urlFor.js';
|
|
15
15
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
-
import { d as
|
|
16
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-ae902629.js';
|
|
17
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-f0edf3d6.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import { B as BlockContent } from './BlockContent-
|
|
22
|
+
import { B as BlockContent } from './BlockContent-ea93e8f7.js';
|
|
23
23
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
24
24
|
import GroupDeck from './GroupDeck.js';
|
|
25
25
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
26
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
26
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
27
27
|
import { u as util } from './util-7700fc59.js';
|
|
28
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e761d404.js';
|
|
29
29
|
import Head from 'next/head';
|
|
30
30
|
import SocialShare from './SocialShare.js';
|
|
31
|
-
import { _ as _objectToArray } from './_object-to-array-
|
|
31
|
+
import { _ as _objectToArray } from './_object-to-array-c8f72bf1.js';
|
|
32
32
|
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
33
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
34
|
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
@@ -90,21 +90,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
// do not edit .js files directly - edit src/index.jst
|
|
94
|
+
|
|
95
|
+
|
|
96
96
|
|
|
97
97
|
var fastDeepEqual = function equal(a, b) {
|
|
98
98
|
if (a === b) return true;
|
|
99
99
|
|
|
100
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
101
|
-
|
|
102
|
-
, arrB = isArray(b)
|
|
103
|
-
, i
|
|
104
|
-
, length
|
|
105
|
-
, key;
|
|
101
|
+
if (a.constructor !== b.constructor) return false;
|
|
106
102
|
|
|
107
|
-
|
|
103
|
+
var length, i, keys;
|
|
104
|
+
if (Array.isArray(a)) {
|
|
108
105
|
length = a.length;
|
|
109
106
|
if (length != b.length) return false;
|
|
110
107
|
for (i = length; i-- !== 0;)
|
|
@@ -112,35 +109,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
112
109
|
return true;
|
|
113
110
|
}
|
|
114
111
|
|
|
115
|
-
if (arrA != arrB) return false;
|
|
116
112
|
|
|
117
|
-
var dateA = a instanceof Date
|
|
118
|
-
, dateB = b instanceof Date;
|
|
119
|
-
if (dateA != dateB) return false;
|
|
120
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
121
113
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (
|
|
125
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
114
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
115
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
116
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
126
117
|
|
|
127
|
-
|
|
118
|
+
keys = Object.keys(a);
|
|
128
119
|
length = keys.length;
|
|
129
|
-
|
|
130
|
-
if (length !== keyList(b).length)
|
|
131
|
-
return false;
|
|
120
|
+
if (length !== Object.keys(b).length) return false;
|
|
132
121
|
|
|
133
122
|
for (i = length; i-- !== 0;)
|
|
134
|
-
if (!
|
|
123
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
135
124
|
|
|
136
125
|
for (i = length; i-- !== 0;) {
|
|
137
|
-
key = keys[i];
|
|
126
|
+
var key = keys[i];
|
|
127
|
+
|
|
138
128
|
if (!equal(a[key], b[key])) return false;
|
|
139
129
|
}
|
|
140
130
|
|
|
141
131
|
return true;
|
|
142
132
|
}
|
|
143
133
|
|
|
134
|
+
// true if both NaN, false otherwise
|
|
144
135
|
return a!==a && b!==b;
|
|
145
136
|
};
|
|
146
137
|
|
|
@@ -1563,199 +1554,239 @@ module.exports = exports['default'];
|
|
|
1563
1554
|
|
|
1564
1555
|
var youTubePlayer = unwrapExports(dist);
|
|
1565
1556
|
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
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; };
|
|
1557
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1569
1558
|
|
|
1570
1559
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1571
1560
|
|
|
1572
|
-
function
|
|
1561
|
+
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); } }
|
|
1562
|
+
|
|
1563
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1564
|
+
|
|
1565
|
+
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); }
|
|
1566
|
+
|
|
1567
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1568
|
+
|
|
1569
|
+
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); }; }
|
|
1570
|
+
|
|
1571
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1572
|
+
|
|
1573
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1574
|
+
|
|
1575
|
+
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; } }
|
|
1576
|
+
|
|
1577
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1578
|
+
|
|
1579
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1573
1580
|
|
|
1574
|
-
function
|
|
1581
|
+
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; }
|
|
1575
1582
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
*
|
|
1579
|
-
*
|
|
1580
|
-
* @param {Object}
|
|
1583
|
+
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; }
|
|
1584
|
+
/**
|
|
1585
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
+
*
|
|
1587
|
+
* @param {Object} prevProps
|
|
1588
|
+
* @param {Object} props
|
|
1581
1589
|
*/
|
|
1590
|
+
|
|
1582
1591
|
function shouldUpdateVideo(prevProps, props) {
|
|
1583
1592
|
// A changing video should always trigger an update
|
|
1584
1593
|
if (prevProps.videoId !== props.videoId) {
|
|
1585
1594
|
return true;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1589
1596
|
// update.
|
|
1597
|
+
|
|
1598
|
+
|
|
1590
1599
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1591
1600
|
var vars = props.opts.playerVars || {};
|
|
1592
|
-
|
|
1593
1601
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1594
1602
|
}
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
*
|
|
1598
|
-
*
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* @param {Object} opts
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1602
1609
|
*/
|
|
1610
|
+
|
|
1611
|
+
|
|
1603
1612
|
function filterResetOptions(opts) {
|
|
1604
|
-
return
|
|
1605
|
-
playerVars:
|
|
1613
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1614
|
+
playerVars: _objectSpread({
|
|
1606
1615
|
autoplay: 0,
|
|
1607
1616
|
start: 0,
|
|
1608
1617
|
end: 0
|
|
1609
|
-
})
|
|
1618
|
+
}, opts.playerVars)
|
|
1610
1619
|
});
|
|
1611
1620
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
*
|
|
1615
|
-
*
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1619
|
-
* @param {Object}
|
|
1620
|
-
* @param {Object} props
|
|
1621
|
+
/**
|
|
1622
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
+
* those.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {Object} prevProps
|
|
1628
|
+
* @param {Object} props
|
|
1621
1629
|
*/
|
|
1630
|
+
|
|
1631
|
+
|
|
1622
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1623
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1624
1634
|
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object}
|
|
1630
|
-
* @param {Object} props
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a props change should result in an id or className update.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1631
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1632
1643
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1633
1644
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1634
1645
|
}
|
|
1635
1646
|
|
|
1636
|
-
var YouTube = function (_React$Component) {
|
|
1647
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1637
1648
|
_inherits(YouTube, _React$Component);
|
|
1638
1649
|
|
|
1650
|
+
var _super = _createSuper(YouTube);
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
+
*/
|
|
1639
1657
|
function YouTube(props) {
|
|
1658
|
+
var _this;
|
|
1659
|
+
|
|
1640
1660
|
_classCallCheck(this, YouTube);
|
|
1641
1661
|
|
|
1642
|
-
|
|
1662
|
+
_this = _super.call(this, props);
|
|
1643
1663
|
|
|
1644
|
-
_this
|
|
1664
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1645
1665
|
return _this.props.onReady(event);
|
|
1646
|
-
};
|
|
1666
|
+
});
|
|
1647
1667
|
|
|
1648
|
-
_this
|
|
1668
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1649
1669
|
return _this.props.onError(event);
|
|
1650
|
-
};
|
|
1670
|
+
});
|
|
1651
1671
|
|
|
1652
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1653
1673
|
_this.props.onStateChange(event);
|
|
1654
|
-
switch (event.data) {
|
|
1655
1674
|
|
|
1675
|
+
switch (event.data) {
|
|
1656
1676
|
case YouTube.PlayerState.ENDED:
|
|
1657
1677
|
_this.props.onEnd(event);
|
|
1678
|
+
|
|
1658
1679
|
break;
|
|
1659
1680
|
|
|
1660
1681
|
case YouTube.PlayerState.PLAYING:
|
|
1661
1682
|
_this.props.onPlay(event);
|
|
1683
|
+
|
|
1662
1684
|
break;
|
|
1663
1685
|
|
|
1664
1686
|
case YouTube.PlayerState.PAUSED:
|
|
1665
1687
|
_this.props.onPause(event);
|
|
1688
|
+
|
|
1666
1689
|
break;
|
|
1667
1690
|
}
|
|
1668
|
-
};
|
|
1691
|
+
});
|
|
1669
1692
|
|
|
1670
|
-
_this
|
|
1693
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1671
1694
|
return _this.props.onPlaybackRateChange(event);
|
|
1672
|
-
};
|
|
1695
|
+
});
|
|
1673
1696
|
|
|
1674
|
-
_this
|
|
1697
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1675
1698
|
return _this.props.onPlaybackQualityChange(event);
|
|
1676
|
-
};
|
|
1699
|
+
});
|
|
1677
1700
|
|
|
1678
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1679
1702
|
// do not attempt to create a player server-side, it won't work
|
|
1680
|
-
if (typeof document === 'undefined') return;
|
|
1681
|
-
|
|
1682
|
-
var playerOpts =
|
|
1703
|
+
if (typeof document === 'undefined') return; // create player
|
|
1704
|
+
|
|
1705
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1683
1706
|
// preload the `videoId` video if one is already given
|
|
1684
1707
|
videoId: _this.props.videoId
|
|
1685
1708
|
});
|
|
1686
|
-
|
|
1687
|
-
// attach event handlers
|
|
1709
|
+
|
|
1710
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1711
|
+
|
|
1688
1712
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
+
|
|
1689
1714
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
+
|
|
1690
1716
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
+
|
|
1691
1718
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
+
|
|
1692
1720
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1693
|
-
};
|
|
1721
|
+
});
|
|
1694
1722
|
|
|
1695
|
-
_this
|
|
1723
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1696
1724
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1697
|
-
};
|
|
1725
|
+
});
|
|
1698
1726
|
|
|
1699
|
-
_this
|
|
1727
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1700
1728
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1701
1729
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1702
1730
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1703
1731
|
});
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
+
return _this.internalPlayer;
|
|
1736
|
+
});
|
|
1737
|
+
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1707
1739
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1708
1740
|
_this.internalPlayer.stopVideo();
|
|
1741
|
+
|
|
1709
1742
|
return;
|
|
1710
|
-
}
|
|
1743
|
+
} // set queueing options
|
|
1744
|
+
|
|
1711
1745
|
|
|
1712
|
-
// set queueing options
|
|
1713
1746
|
var autoplay = false;
|
|
1714
1747
|
var opts = {
|
|
1715
1748
|
videoId: _this.props.videoId
|
|
1716
1749
|
};
|
|
1750
|
+
|
|
1717
1751
|
if ('playerVars' in _this.props.opts) {
|
|
1718
1752
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
+
|
|
1719
1754
|
if ('start' in _this.props.opts.playerVars) {
|
|
1720
1755
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1721
1756
|
}
|
|
1757
|
+
|
|
1722
1758
|
if ('end' in _this.props.opts.playerVars) {
|
|
1723
1759
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1724
1760
|
}
|
|
1725
|
-
}
|
|
1761
|
+
} // if autoplay is enabled loadVideoById
|
|
1762
|
+
|
|
1726
1763
|
|
|
1727
|
-
// if autoplay is enabled loadVideoById
|
|
1728
1764
|
if (autoplay) {
|
|
1729
1765
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
+
|
|
1730
1767
|
return;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1768
|
+
} // default behaviour just cues the video
|
|
1769
|
+
|
|
1770
|
+
|
|
1733
1771
|
_this.internalPlayer.cueVideoById(opts);
|
|
1734
|
-
};
|
|
1772
|
+
});
|
|
1735
1773
|
|
|
1736
|
-
_this
|
|
1774
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1737
1775
|
_this.container = container;
|
|
1738
|
-
};
|
|
1776
|
+
});
|
|
1739
1777
|
|
|
1740
1778
|
_this.container = null;
|
|
1741
1779
|
_this.internalPlayer = null;
|
|
1742
1780
|
return _this;
|
|
1743
1781
|
}
|
|
1744
1782
|
|
|
1745
|
-
/**
|
|
1746
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1747
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1748
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1749
|
-
*/
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
1783
|
_createClass(YouTube, [{
|
|
1753
|
-
key:
|
|
1784
|
+
key: "componentDidMount",
|
|
1754
1785
|
value: function componentDidMount() {
|
|
1755
1786
|
this.createPlayer();
|
|
1756
1787
|
}
|
|
1757
1788
|
}, {
|
|
1758
|
-
key:
|
|
1789
|
+
key: "componentDidUpdate",
|
|
1759
1790
|
value: function componentDidUpdate(prevProps) {
|
|
1760
1791
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1761
1792
|
this.updatePlayer();
|
|
@@ -1770,112 +1801,58 @@ var YouTube = function (_React$Component) {
|
|
|
1770
1801
|
}
|
|
1771
1802
|
}
|
|
1772
1803
|
}, {
|
|
1773
|
-
key:
|
|
1804
|
+
key: "componentWillUnmount",
|
|
1774
1805
|
value: function componentWillUnmount() {
|
|
1775
|
-
/**
|
|
1776
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1777
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1778
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1779
|
-
* this method isn't quick enough to reset the container element.
|
|
1806
|
+
/**
|
|
1807
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1808
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
+
* this method isn't quick enough to reset the container element.
|
|
1780
1811
|
*/
|
|
1781
1812
|
this.internalPlayer.destroy();
|
|
1782
1813
|
}
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
*
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1788
|
-
* @param {Object} target - player object
|
|
1789
|
-
*/
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
/**
|
|
1793
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} event
|
|
1796
|
-
* @param {Integer} data - error type
|
|
1797
|
-
* @param {Object} target - player object
|
|
1798
|
-
*/
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1803
|
-
*
|
|
1804
|
-
* @param {Object} event
|
|
1805
|
-
* @param {Integer} data - status change type
|
|
1806
|
-
* @param {Object} target - actual YT player
|
|
1807
|
-
*/
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
/**
|
|
1811
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1812
|
-
*
|
|
1813
|
-
* @param {Object} event
|
|
1814
|
-
* @param {Float} data - playback rate
|
|
1815
|
-
* @param {Object} target - actual YT player
|
|
1816
|
-
*/
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
/**
|
|
1820
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1821
|
-
*
|
|
1822
|
-
* @param {Object} event
|
|
1823
|
-
* @param {String} data - playback quality
|
|
1824
|
-
* @param {Object} target - actual YT player
|
|
1825
|
-
*/
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
/**
|
|
1829
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1830
|
-
*/
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1835
|
-
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1840
|
-
* React should update this automatically but since the Youtube Player API
|
|
1841
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1847
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1848
|
-
* Youtube Player API methods to update the video.
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Object} target - player object
|
|
1849
1819
|
*/
|
|
1850
1820
|
|
|
1851
1821
|
}, {
|
|
1852
|
-
key:
|
|
1822
|
+
key: "render",
|
|
1853
1823
|
value: function render() {
|
|
1854
|
-
return React__default.createElement(
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1824
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1825
|
+
className: this.props.containerClassName
|
|
1826
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1827
|
+
id: this.props.id,
|
|
1828
|
+
className: this.props.className,
|
|
1829
|
+
ref: this.refContainer
|
|
1830
|
+
}));
|
|
1859
1831
|
}
|
|
1860
1832
|
}]);
|
|
1861
1833
|
|
|
1862
1834
|
return YouTube;
|
|
1863
1835
|
}(React__default.Component);
|
|
1864
1836
|
|
|
1837
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
+
UNSTARTED: -1,
|
|
1839
|
+
ENDED: 0,
|
|
1840
|
+
PLAYING: 1,
|
|
1841
|
+
PAUSED: 2,
|
|
1842
|
+
BUFFERING: 3,
|
|
1843
|
+
CUED: 5
|
|
1844
|
+
});
|
|
1845
|
+
|
|
1865
1846
|
YouTube.propTypes = {
|
|
1866
1847
|
videoId: PropTypes.string,
|
|
1867
|
-
|
|
1868
1848
|
// custom ID for player element
|
|
1869
1849
|
id: PropTypes.string,
|
|
1870
|
-
|
|
1871
1850
|
// custom class name for player element
|
|
1872
1851
|
className: PropTypes.string,
|
|
1873
1852
|
// custom class name for player container element
|
|
1874
1853
|
containerClassName: PropTypes.string,
|
|
1875
|
-
|
|
1876
1854
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1877
1855
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1878
|
-
|
|
1879
1856
|
// event subscriptions
|
|
1880
1857
|
onReady: PropTypes.func,
|
|
1881
1858
|
onError: PropTypes.func,
|
|
@@ -1887,6 +1864,7 @@ YouTube.propTypes = {
|
|
|
1887
1864
|
onPlaybackQualityChange: PropTypes.func
|
|
1888
1865
|
};
|
|
1889
1866
|
YouTube.defaultProps = {
|
|
1867
|
+
videoId: null,
|
|
1890
1868
|
id: null,
|
|
1891
1869
|
className: null,
|
|
1892
1870
|
opts: {},
|
|
@@ -1900,14 +1878,6 @@ YouTube.defaultProps = {
|
|
|
1900
1878
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1901
1879
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1902
1880
|
};
|
|
1903
|
-
YouTube.PlayerState = {
|
|
1904
|
-
UNSTARTED: -1,
|
|
1905
|
-
ENDED: 0,
|
|
1906
|
-
PLAYING: 1,
|
|
1907
|
-
PAUSED: 2,
|
|
1908
|
-
BUFFERING: 3,
|
|
1909
|
-
CUED: 5
|
|
1910
|
-
};
|
|
1911
1881
|
|
|
1912
1882
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1913
1883
|
var url = _ref.url,
|
|
@@ -1946,8 +1916,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1946
1916
|
var duration = player.getDuration();
|
|
1947
1917
|
var queue = Math.floor(duration / 10);
|
|
1948
1918
|
var segment = Math.floor(current / queue);
|
|
1949
|
-
Beam.report_beam_video('Ready',
|
|
1950
|
-
Segment.report_video_event('Video Ready',
|
|
1919
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1920
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1951
1921
|
};
|
|
1952
1922
|
|
|
1953
1923
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1957,8 +1927,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1957
1927
|
var segment = Math.floor(current / queue);
|
|
1958
1928
|
|
|
1959
1929
|
if (!queueProgress.includes(segment)) {
|
|
1960
|
-
Beam.report_beam_video('Segment',
|
|
1961
|
-
Segment.report_video_event('Video Segment',
|
|
1930
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1931
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1962
1932
|
queueProgress.push(segment);
|
|
1963
1933
|
}
|
|
1964
1934
|
};
|
|
@@ -1971,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
1941
|
var queue = Math.floor(duration / 10);
|
|
1972
1942
|
var segment = Math.floor(current / queue);
|
|
1973
1943
|
|
|
1974
|
-
Beam.report_beam_video('Play',
|
|
1975
|
-
Segment.report_video_event('Video Play',
|
|
1944
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1976
1946
|
|
|
1977
1947
|
if (!playReported) {
|
|
1978
1948
|
setPlayReported(true);
|
|
@@ -1991,8 +1961,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1991
1961
|
var queue = Math.floor(duration / 10);
|
|
1992
1962
|
var segment = Math.floor(current / queue);
|
|
1993
1963
|
|
|
1994
|
-
Beam.report_beam_video('End',
|
|
1995
|
-
Segment.report_video_event('Video End',
|
|
1964
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1965
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
1996
1966
|
setEndReported(true);
|
|
1997
1967
|
clearInterval(intervalID);
|
|
1998
1968
|
}
|
|
@@ -2005,8 +1975,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2005
1975
|
var queue = Math.floor(duration / 10);
|
|
2006
1976
|
var segment = Math.floor(current / queue);
|
|
2007
1977
|
|
|
2008
|
-
Beam.report_beam_video('Pause',
|
|
2009
|
-
Segment.report_video_event('Video Pause',
|
|
1978
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2010
1980
|
};
|
|
2011
1981
|
|
|
2012
1982
|
return React__default.createElement(
|
|
@@ -2168,7 +2138,7 @@ var Media = function Media(_ref) {
|
|
|
2168
2138
|
React__default.createElement(
|
|
2169
2139
|
LazyLoad,
|
|
2170
2140
|
{ once: true },
|
|
2171
|
-
React__default.createElement(Figure$1.Image, _extends
|
|
2141
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2172
2142
|
),
|
|
2173
2143
|
caption && React__default.createElement(
|
|
2174
2144
|
Figure$1.Caption,
|
|
@@ -2180,7 +2150,7 @@ var Media = function Media(_ref) {
|
|
|
2180
2150
|
} else if (caption && caption !== '') {
|
|
2181
2151
|
return React__default.createElement(
|
|
2182
2152
|
'a',
|
|
2183
|
-
_extends
|
|
2153
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2184
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
2185
2155
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2186
2156
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2235,8 +2205,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2235
2205
|
var duration = player.duration;
|
|
2236
2206
|
var queue = Math.floor(duration / 10);
|
|
2237
2207
|
var segment = Math.floor(current / queue);
|
|
2238
|
-
Beam.report_beam_video('Ready',
|
|
2239
|
-
Segment.report_video_event('Video Ready',
|
|
2208
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2209
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2240
2210
|
};
|
|
2241
2211
|
|
|
2242
2212
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2245,8 +2215,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2215
|
var queue = Math.floor(duration / 10);
|
|
2246
2216
|
var segment = Math.floor(current / queue);
|
|
2247
2217
|
if (!queueProgress.includes(segment)) {
|
|
2248
|
-
Beam.report_beam_video('Segment',
|
|
2249
|
-
Segment.report_video_event('Video Segment',
|
|
2218
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2219
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2250
2220
|
queueProgress.push(segment);
|
|
2251
2221
|
}
|
|
2252
2222
|
};
|
|
@@ -2258,8 +2228,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2258
2228
|
var duration = player.duration;
|
|
2259
2229
|
var queue = Math.floor(duration / 10);
|
|
2260
2230
|
var segment = Math.floor(current / queue);
|
|
2261
|
-
Beam.report_beam_video('Play',
|
|
2262
|
-
Segment.report_video_event('Video Play',
|
|
2231
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2232
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2263
2233
|
|
|
2264
2234
|
if (!playReported) {
|
|
2265
2235
|
event.persist();
|
|
@@ -2279,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2249
|
var queue = Math.floor(duration / 10);
|
|
2280
2250
|
var segment = Math.floor(current / queue);
|
|
2281
2251
|
|
|
2282
|
-
Beam.report_beam_video('End',
|
|
2283
|
-
Segment.report_video_event('Video End',
|
|
2252
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2284
2254
|
setEndReported(true);
|
|
2285
2255
|
clearInterval(intervalID);
|
|
2286
2256
|
}
|
|
@@ -2292,8 +2262,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2292
2262
|
var duration = player.duration - current;
|
|
2293
2263
|
var queue = Math.floor(duration / 10);
|
|
2294
2264
|
var segment = Math.floor(current / queue);
|
|
2295
|
-
Beam.report_beam_video('Pause',
|
|
2296
|
-
Segment.report_video_event('Video Pause',
|
|
2265
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2297
2267
|
};
|
|
2298
2268
|
|
|
2299
2269
|
return React__default.createElement(
|
|
@@ -2354,7 +2324,7 @@ var Video = function Video(_ref) {
|
|
|
2354
2324
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2355
2325
|
//console.log('success:', success.ref)
|
|
2356
2326
|
var player = success.ref;
|
|
2357
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2327
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2358
2328
|
player.ima3.settings.debug = true;
|
|
2359
2329
|
if (targeting.content_placement && targeting.document_url) {
|
|
2360
2330
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2382,8 +2352,8 @@ var Video = function Video(_ref) {
|
|
|
2382
2352
|
player.pause();
|
|
2383
2353
|
}
|
|
2384
2354
|
|
|
2385
|
-
Beam.report_beam_video('Ready',
|
|
2386
|
-
Segment.report_video_event('Video Ready',
|
|
2355
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2356
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
2357
|
});
|
|
2388
2358
|
|
|
2389
2359
|
// play
|
|
@@ -2392,8 +2362,8 @@ var Video = function Video(_ref) {
|
|
|
2392
2362
|
var current = player.currentTime();
|
|
2393
2363
|
var queue = Math.floor(duration / 10);
|
|
2394
2364
|
var segment = Math.floor(current / queue);
|
|
2395
|
-
Beam.report_beam_video('Play',
|
|
2396
|
-
Segment.report_video_event('Video Play',
|
|
2365
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2366
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2397
2367
|
});
|
|
2398
2368
|
|
|
2399
2369
|
// pause
|
|
@@ -2402,8 +2372,8 @@ var Video = function Video(_ref) {
|
|
|
2402
2372
|
var current = player.currentTime();
|
|
2403
2373
|
var queue = Math.floor(duration / 10);
|
|
2404
2374
|
var segment = Math.floor(current / queue);
|
|
2405
|
-
Beam.report_beam_video('Pause',
|
|
2406
|
-
Segment.report_video_event('Video Pause',
|
|
2375
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2376
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2407
2377
|
});
|
|
2408
2378
|
|
|
2409
2379
|
// end
|
|
@@ -2412,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2412
2382
|
var current = player.currentTime();
|
|
2413
2383
|
var queue = Math.floor(duration / 10);
|
|
2414
2384
|
var segment = Math.floor(current / queue);
|
|
2415
|
-
Beam.report_beam_video('End',
|
|
2416
|
-
Segment.report_video_event('Video End',
|
|
2385
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2417
2387
|
autoplayNextVideo(evt);
|
|
2418
2388
|
});
|
|
2419
2389
|
|
|
@@ -2424,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2424
2394
|
var queue = Math.floor(duration / 10);
|
|
2425
2395
|
var segment = Math.floor(current / queue);
|
|
2426
2396
|
if (!queueProgress.includes(segment)) {
|
|
2427
|
-
Beam.report_beam_video('Segment',
|
|
2428
|
-
Segment.report_video_event('Video Segment',
|
|
2397
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2429
2399
|
queueProgress.push(segment);
|
|
2430
2400
|
}
|
|
2431
2401
|
});
|
|
@@ -2436,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2436
2406
|
var id = player.ads.ad.id;
|
|
2437
2407
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2438
2408
|
|
|
2439
|
-
Beam.report_beam_ad('AD Started',
|
|
2440
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2409
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2410
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2441
2411
|
});
|
|
2442
2412
|
|
|
2443
2413
|
// ad ended
|
|
@@ -2445,8 +2415,8 @@ var Video = function Video(_ref) {
|
|
|
2445
2415
|
var duration = player.ads.ad.duration;
|
|
2446
2416
|
var id = player.ads.ad.id;
|
|
2447
2417
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2448
|
-
Beam.report_beam_ad('AD Ended',
|
|
2449
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2418
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2419
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2450
2420
|
});
|
|
2451
2421
|
};
|
|
2452
2422
|
|
|
@@ -2876,11 +2846,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2876
2846
|
|
|
2877
2847
|
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; }
|
|
2878
2848
|
|
|
2879
|
-
function
|
|
2849
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2880
2850
|
|
|
2881
|
-
function
|
|
2851
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2882
2852
|
|
|
2883
|
-
function
|
|
2853
|
+
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."); }
|
|
2854
|
+
|
|
2855
|
+
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); }
|
|
2856
|
+
|
|
2857
|
+
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; }
|
|
2858
|
+
|
|
2859
|
+
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; }
|
|
2884
2860
|
|
|
2885
2861
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2886
2862
|
|
|
@@ -3010,12 +2986,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3010
2986
|
|
|
3011
2987
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3012
2988
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3013
|
-
|
|
3014
|
-
var
|
|
3015
|
-
|
|
2989
|
+
|
|
2990
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2991
|
+
_step;
|
|
3016
2992
|
|
|
3017
2993
|
try {
|
|
3018
|
-
for (
|
|
2994
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3019
2995
|
var p = _step.value;
|
|
3020
2996
|
|
|
3021
2997
|
if (props$1[p]) {
|
|
@@ -3030,18 +3006,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3030
3006
|
}
|
|
3031
3007
|
}
|
|
3032
3008
|
} catch (err) {
|
|
3033
|
-
|
|
3034
|
-
_iteratorError = err;
|
|
3009
|
+
_iterator.e(err);
|
|
3035
3010
|
} finally {
|
|
3036
|
-
|
|
3037
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3038
|
-
_iterator["return"]();
|
|
3039
|
-
}
|
|
3040
|
-
} finally {
|
|
3041
|
-
if (_didIteratorError) {
|
|
3042
|
-
throw _iteratorError;
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
3011
|
+
_iterator.f();
|
|
3045
3012
|
}
|
|
3046
3013
|
|
|
3047
3014
|
return config;
|
|
@@ -3188,12 +3155,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3188
3155
|
|
|
3189
3156
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3190
3157
|
|
|
3191
|
-
function
|
|
3158
|
+
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); }; }
|
|
3192
3159
|
|
|
3193
|
-
function
|
|
3160
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3194
3161
|
|
|
3195
3162
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3196
3163
|
|
|
3164
|
+
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; } }
|
|
3165
|
+
|
|
3166
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
|
+
|
|
3197
3168
|
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); }
|
|
3198
3169
|
|
|
3199
3170
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3202,14 +3173,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3202
3173
|
|
|
3203
3174
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3204
3175
|
|
|
3205
|
-
var Player =
|
|
3206
|
-
/*#__PURE__*/
|
|
3207
|
-
function (_Component) {
|
|
3176
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3208
3177
|
_inherits(Player, _Component);
|
|
3209
3178
|
|
|
3210
|
-
|
|
3211
|
-
var _getPrototypeOf2;
|
|
3179
|
+
var _super = _createSuper(Player);
|
|
3212
3180
|
|
|
3181
|
+
function Player() {
|
|
3213
3182
|
var _this;
|
|
3214
3183
|
|
|
3215
3184
|
_classCallCheck(this, Player);
|
|
@@ -3218,7 +3187,7 @@ function (_Component) {
|
|
|
3218
3187
|
_args[_key] = arguments[_key];
|
|
3219
3188
|
}
|
|
3220
3189
|
|
|
3221
|
-
_this =
|
|
3190
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3222
3191
|
|
|
3223
3192
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3224
3193
|
|
|
@@ -3543,7 +3512,7 @@ function (_Component) {
|
|
|
3543
3512
|
return null;
|
|
3544
3513
|
}
|
|
3545
3514
|
|
|
3546
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3515
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3547
3516
|
ref: this.ref,
|
|
3548
3517
|
onReady: this.handleReady,
|
|
3549
3518
|
onPlay: this.handlePlay,
|
|
@@ -3604,12 +3573,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3604
3573
|
|
|
3605
3574
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3606
3575
|
|
|
3607
|
-
function
|
|
3576
|
+
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); }; }
|
|
3608
3577
|
|
|
3609
|
-
function
|
|
3578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3610
3579
|
|
|
3611
3580
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3612
3581
|
|
|
3582
|
+
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; } }
|
|
3583
|
+
|
|
3584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
|
+
|
|
3613
3586
|
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); }
|
|
3614
3587
|
|
|
3615
3588
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3621,14 +3594,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3621
3594
|
function createSinglePlayer(activePlayer) {
|
|
3622
3595
|
var _class, _temp;
|
|
3623
3596
|
|
|
3624
|
-
return _temp = _class =
|
|
3625
|
-
/*#__PURE__*/
|
|
3626
|
-
function (_Component) {
|
|
3597
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3627
3598
|
_inherits(SinglePlayer, _Component);
|
|
3628
3599
|
|
|
3629
|
-
|
|
3630
|
-
var _getPrototypeOf2;
|
|
3600
|
+
var _super = _createSuper(SinglePlayer);
|
|
3631
3601
|
|
|
3602
|
+
function SinglePlayer() {
|
|
3632
3603
|
var _this;
|
|
3633
3604
|
|
|
3634
3605
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3637,7 +3608,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3637
3608
|
args[_key] = arguments[_key];
|
|
3638
3609
|
}
|
|
3639
3610
|
|
|
3640
|
-
_this =
|
|
3611
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3641
3612
|
|
|
3642
3613
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3643
3614
|
|
|
@@ -3705,12 +3676,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3705
3676
|
height = _this$props.height,
|
|
3706
3677
|
Wrapper = _this$props.wrapper;
|
|
3707
3678
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3708
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3679
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3709
3680
|
style: _objectSpread({}, style, {
|
|
3710
3681
|
width: width,
|
|
3711
3682
|
height: height
|
|
3712
3683
|
})
|
|
3713
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3684
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3714
3685
|
ref: this.ref,
|
|
3715
3686
|
activePlayer: activePlayer,
|
|
3716
3687
|
config: this.config
|
|
@@ -3756,23 +3727,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3756
3727
|
|
|
3757
3728
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3758
3729
|
|
|
3759
|
-
function
|
|
3730
|
+
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); }; }
|
|
3760
3731
|
|
|
3761
|
-
function
|
|
3732
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3762
3733
|
|
|
3763
3734
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3764
3735
|
|
|
3736
|
+
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; } }
|
|
3737
|
+
|
|
3738
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
|
+
|
|
3765
3740
|
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); }
|
|
3766
3741
|
|
|
3767
3742
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3768
3743
|
|
|
3769
3744
|
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; }
|
|
3770
3745
|
|
|
3771
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3746
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3772
3747
|
|
|
3773
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3748
|
+
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."); }
|
|
3774
3749
|
|
|
3775
|
-
function
|
|
3750
|
+
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); }
|
|
3751
|
+
|
|
3752
|
+
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; }
|
|
3753
|
+
|
|
3754
|
+
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; }
|
|
3776
3755
|
|
|
3777
3756
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3778
3757
|
|
|
@@ -3797,14 +3776,12 @@ function parsePlaylist(url) {
|
|
|
3797
3776
|
return {};
|
|
3798
3777
|
}
|
|
3799
3778
|
|
|
3800
|
-
var YouTube =
|
|
3801
|
-
/*#__PURE__*/
|
|
3802
|
-
function (_Component) {
|
|
3779
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3803
3780
|
_inherits(YouTube, _Component);
|
|
3804
3781
|
|
|
3805
|
-
|
|
3806
|
-
var _getPrototypeOf2;
|
|
3782
|
+
var _super = _createSuper(YouTube);
|
|
3807
3783
|
|
|
3784
|
+
function YouTube() {
|
|
3808
3785
|
var _this;
|
|
3809
3786
|
|
|
3810
3787
|
_classCallCheck(this, YouTube);
|
|
@@ -3813,7 +3790,7 @@ function (_Component) {
|
|
|
3813
3790
|
args[_key] = arguments[_key];
|
|
3814
3791
|
}
|
|
3815
3792
|
|
|
3816
|
-
_this =
|
|
3793
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3817
3794
|
|
|
3818
3795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3819
3796
|
|
|
@@ -4001,9 +3978,9 @@ function (_Component) {
|
|
|
4001
3978
|
height: '100%',
|
|
4002
3979
|
display: display
|
|
4003
3980
|
};
|
|
4004
|
-
return _react["default"].createElement("div", {
|
|
3981
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4005
3982
|
style: style
|
|
4006
|
-
}, _react["default"].createElement("div", {
|
|
3983
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4007
3984
|
ref: this.ref
|
|
4008
3985
|
}));
|
|
4009
3986
|
}
|
|
@@ -4059,12 +4036,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4059
4036
|
|
|
4060
4037
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4061
4038
|
|
|
4062
|
-
function
|
|
4039
|
+
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); }; }
|
|
4063
4040
|
|
|
4064
|
-
function
|
|
4041
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4065
4042
|
|
|
4066
4043
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4067
4044
|
|
|
4045
|
+
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; } }
|
|
4046
|
+
|
|
4047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
|
+
|
|
4068
4049
|
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); }
|
|
4069
4050
|
|
|
4070
4051
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4073,16 +4054,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4073
4054
|
|
|
4074
4055
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4075
4056
|
var SDK_GLOBAL = 'SC';
|
|
4076
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4057
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4077
4058
|
|
|
4078
|
-
var SoundCloud =
|
|
4079
|
-
/*#__PURE__*/
|
|
4080
|
-
function (_Component) {
|
|
4059
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4081
4060
|
_inherits(SoundCloud, _Component);
|
|
4082
4061
|
|
|
4083
|
-
|
|
4084
|
-
var _getPrototypeOf2;
|
|
4062
|
+
var _super = _createSuper(SoundCloud);
|
|
4085
4063
|
|
|
4064
|
+
function SoundCloud() {
|
|
4086
4065
|
var _this;
|
|
4087
4066
|
|
|
4088
4067
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4091,7 +4070,7 @@ function (_Component) {
|
|
|
4091
4070
|
args[_key] = arguments[_key];
|
|
4092
4071
|
}
|
|
4093
4072
|
|
|
4094
|
-
_this =
|
|
4073
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4095
4074
|
|
|
4096
4075
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4097
4076
|
|
|
@@ -4212,7 +4191,7 @@ function (_Component) {
|
|
|
4212
4191
|
height: '100%',
|
|
4213
4192
|
display: display
|
|
4214
4193
|
};
|
|
4215
|
-
return _react["default"].createElement("iframe", {
|
|
4194
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4216
4195
|
ref: this.ref,
|
|
4217
4196
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4218
4197
|
style: style,
|
|
@@ -4274,12 +4253,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4274
4253
|
|
|
4275
4254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4276
4255
|
|
|
4277
|
-
function
|
|
4256
|
+
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
4257
|
|
|
4279
|
-
function
|
|
4258
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4280
4259
|
|
|
4281
4260
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4282
4261
|
|
|
4262
|
+
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; } }
|
|
4263
|
+
|
|
4264
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
|
+
|
|
4283
4266
|
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); }
|
|
4284
4267
|
|
|
4285
4268
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4291,14 +4274,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4291
4274
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4292
4275
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4293
4276
|
|
|
4294
|
-
var Vimeo =
|
|
4295
|
-
/*#__PURE__*/
|
|
4296
|
-
function (_Component) {
|
|
4277
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4297
4278
|
_inherits(Vimeo, _Component);
|
|
4298
4279
|
|
|
4299
|
-
|
|
4300
|
-
var _getPrototypeOf2;
|
|
4280
|
+
var _super = _createSuper(Vimeo);
|
|
4301
4281
|
|
|
4282
|
+
function Vimeo() {
|
|
4302
4283
|
var _this;
|
|
4303
4284
|
|
|
4304
4285
|
_classCallCheck(this, Vimeo);
|
|
@@ -4307,7 +4288,7 @@ function (_Component) {
|
|
|
4307
4288
|
args[_key] = arguments[_key];
|
|
4308
4289
|
}
|
|
4309
4290
|
|
|
4310
|
-
_this =
|
|
4291
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4311
4292
|
|
|
4312
4293
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4313
4294
|
|
|
@@ -4464,7 +4445,7 @@ function (_Component) {
|
|
|
4464
4445
|
overflow: 'hidden',
|
|
4465
4446
|
display: display
|
|
4466
4447
|
};
|
|
4467
|
-
return _react["default"].createElement("div", {
|
|
4448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4468
4449
|
key: this.props.url,
|
|
4469
4450
|
ref: this.ref,
|
|
4470
4451
|
style: style
|
|
@@ -4524,12 +4505,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4524
4505
|
|
|
4525
4506
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4526
4507
|
|
|
4527
|
-
function
|
|
4508
|
+
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); }; }
|
|
4528
4509
|
|
|
4529
|
-
function
|
|
4510
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4530
4511
|
|
|
4531
4512
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4532
4513
|
|
|
4514
|
+
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; } }
|
|
4515
|
+
|
|
4516
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
|
+
|
|
4533
4518
|
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); }
|
|
4534
4519
|
|
|
4535
4520
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4542,14 +4527,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4542
4527
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4543
4528
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4544
4529
|
|
|
4545
|
-
var Facebook =
|
|
4546
|
-
/*#__PURE__*/
|
|
4547
|
-
function (_Component) {
|
|
4530
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4548
4531
|
_inherits(Facebook, _Component);
|
|
4549
4532
|
|
|
4550
|
-
|
|
4551
|
-
var _getPrototypeOf2;
|
|
4533
|
+
var _super = _createSuper(Facebook);
|
|
4552
4534
|
|
|
4535
|
+
function Facebook() {
|
|
4553
4536
|
var _this;
|
|
4554
4537
|
|
|
4555
4538
|
_classCallCheck(this, Facebook);
|
|
@@ -4558,7 +4541,7 @@ function (_Component) {
|
|
|
4558
4541
|
args[_key] = arguments[_key];
|
|
4559
4542
|
}
|
|
4560
4543
|
|
|
4561
|
-
_this =
|
|
4544
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4562
4545
|
|
|
4563
4546
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4564
4547
|
|
|
@@ -4674,7 +4657,7 @@ function (_Component) {
|
|
|
4674
4657
|
width: '100%',
|
|
4675
4658
|
height: '100%'
|
|
4676
4659
|
};
|
|
4677
|
-
return _react["default"].createElement("div", {
|
|
4660
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4678
4661
|
style: style,
|
|
4679
4662
|
id: this.playerID,
|
|
4680
4663
|
className: "fb-video",
|
|
@@ -4734,12 +4717,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4734
4717
|
|
|
4735
4718
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4736
4719
|
|
|
4737
|
-
function
|
|
4720
|
+
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); }; }
|
|
4738
4721
|
|
|
4739
|
-
function
|
|
4722
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4740
4723
|
|
|
4741
4724
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4742
4725
|
|
|
4726
|
+
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; } }
|
|
4727
|
+
|
|
4728
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
|
+
|
|
4743
4730
|
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); }
|
|
4744
4731
|
|
|
4745
4732
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4750,14 +4737,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4750
4737
|
var SDK_GLOBAL = 'playerjs';
|
|
4751
4738
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4752
4739
|
|
|
4753
|
-
var Streamable =
|
|
4754
|
-
/*#__PURE__*/
|
|
4755
|
-
function (_Component) {
|
|
4740
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4756
4741
|
_inherits(Streamable, _Component);
|
|
4757
4742
|
|
|
4758
|
-
|
|
4759
|
-
var _getPrototypeOf2;
|
|
4743
|
+
var _super = _createSuper(Streamable);
|
|
4760
4744
|
|
|
4745
|
+
function Streamable() {
|
|
4761
4746
|
var _this;
|
|
4762
4747
|
|
|
4763
4748
|
_classCallCheck(this, Streamable);
|
|
@@ -4766,7 +4751,7 @@ function (_Component) {
|
|
|
4766
4751
|
args[_key] = arguments[_key];
|
|
4767
4752
|
}
|
|
4768
4753
|
|
|
4769
|
-
_this =
|
|
4754
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4770
4755
|
|
|
4771
4756
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4772
4757
|
|
|
@@ -4886,7 +4871,7 @@ function (_Component) {
|
|
|
4886
4871
|
width: '100%',
|
|
4887
4872
|
height: '100%'
|
|
4888
4873
|
};
|
|
4889
|
-
return _react["default"].createElement("iframe", {
|
|
4874
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4890
4875
|
ref: this.ref,
|
|
4891
4876
|
src: "https://streamable.com/o/".concat(id),
|
|
4892
4877
|
frameBorder: "0",
|
|
@@ -4947,12 +4932,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4947
4932
|
|
|
4948
4933
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4949
4934
|
|
|
4950
|
-
function
|
|
4935
|
+
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); }; }
|
|
4951
4936
|
|
|
4952
|
-
function
|
|
4937
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4953
4938
|
|
|
4954
4939
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4955
4940
|
|
|
4941
|
+
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; } }
|
|
4942
|
+
|
|
4943
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
|
+
|
|
4956
4945
|
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); }
|
|
4957
4946
|
|
|
4958
4947
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4963,26 +4952,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4963
4952
|
var SDK_GLOBAL = 'Wistia';
|
|
4964
4953
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4965
4954
|
|
|
4966
|
-
var Wistia =
|
|
4967
|
-
/*#__PURE__*/
|
|
4968
|
-
function (_Component) {
|
|
4955
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4969
4956
|
_inherits(Wistia, _Component);
|
|
4970
4957
|
|
|
4971
|
-
|
|
4972
|
-
var _getPrototypeOf2;
|
|
4958
|
+
var _super = _createSuper(Wistia);
|
|
4973
4959
|
|
|
4960
|
+
function Wistia() {
|
|
4974
4961
|
var _this;
|
|
4975
4962
|
|
|
4976
4963
|
_classCallCheck(this, Wistia);
|
|
4977
4964
|
|
|
4978
|
-
for (var _len = arguments.length,
|
|
4979
|
-
|
|
4965
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4966
|
+
_args[_key] = arguments[_key];
|
|
4980
4967
|
}
|
|
4981
4968
|
|
|
4982
|
-
_this =
|
|
4969
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4983
4970
|
|
|
4984
4971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4985
4972
|
|
|
4973
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4974
|
+
var _this$props;
|
|
4975
|
+
|
|
4976
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4980
|
+
var _this$props2;
|
|
4981
|
+
|
|
4982
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4983
|
+
});
|
|
4984
|
+
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4986
|
+
var _this$props3;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4992
|
+
var _this$props4;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4986
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4987
4998
|
_this.callPlayer('mute');
|
|
4988
4999
|
});
|
|
@@ -5004,17 +5015,13 @@ function (_Component) {
|
|
|
5004
5015
|
value: function load(url) {
|
|
5005
5016
|
var _this2 = this;
|
|
5006
5017
|
|
|
5007
|
-
var _this$
|
|
5008
|
-
playing = _this$
|
|
5009
|
-
muted = _this$
|
|
5010
|
-
controls = _this$
|
|
5011
|
-
_onReady = _this$
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
onSeek = _this$props.onSeek,
|
|
5015
|
-
onEnded = _this$props.onEnded,
|
|
5016
|
-
config = _this$props.config,
|
|
5017
|
-
onError = _this$props.onError;
|
|
5018
|
+
var _this$props5 = this.props,
|
|
5019
|
+
playing = _this$props5.playing,
|
|
5020
|
+
muted = _this$props5.muted,
|
|
5021
|
+
controls = _this$props5.controls,
|
|
5022
|
+
_onReady = _this$props5.onReady,
|
|
5023
|
+
config = _this$props5.config,
|
|
5024
|
+
onError = _this$props5.onError;
|
|
5018
5025
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5019
5026
|
window._wq = window._wq || [];
|
|
5020
5027
|
|
|
@@ -5031,19 +5038,28 @@ function (_Component) {
|
|
|
5031
5038
|
|
|
5032
5039
|
_this2.unbind();
|
|
5033
5040
|
|
|
5034
|
-
_this2.player.bind('play', onPlay);
|
|
5041
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5035
5042
|
|
|
5036
|
-
_this2.player.bind('pause', onPause);
|
|
5043
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5037
5044
|
|
|
5038
|
-
_this2.player.bind('seek', onSeek);
|
|
5045
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5039
5046
|
|
|
5040
|
-
_this2.player.bind('end', onEnded);
|
|
5047
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5041
5048
|
|
|
5042
5049
|
_onReady();
|
|
5043
5050
|
}
|
|
5044
5051
|
});
|
|
5045
5052
|
}, onError);
|
|
5046
5053
|
}
|
|
5054
|
+
}, {
|
|
5055
|
+
key: "unbind",
|
|
5056
|
+
value: function unbind() {
|
|
5057
|
+
this.player.unbind('play', this.onPlay);
|
|
5058
|
+
this.player.unbind('pause', this.onPause);
|
|
5059
|
+
this.player.unbind('seek', this.onSeek);
|
|
5060
|
+
this.player.unbind('end', this.onEnded);
|
|
5061
|
+
} // Proxy methods to prevent listener leaks
|
|
5062
|
+
|
|
5047
5063
|
}, {
|
|
5048
5064
|
key: "play",
|
|
5049
5065
|
value: function play() {
|
|
@@ -5054,19 +5070,6 @@ function (_Component) {
|
|
|
5054
5070
|
value: function pause() {
|
|
5055
5071
|
this.callPlayer('pause');
|
|
5056
5072
|
}
|
|
5057
|
-
}, {
|
|
5058
|
-
key: "unbind",
|
|
5059
|
-
value: function unbind() {
|
|
5060
|
-
var _this$props2 = this.props,
|
|
5061
|
-
onPlay = _this$props2.onPlay,
|
|
5062
|
-
onPause = _this$props2.onPause,
|
|
5063
|
-
onSeek = _this$props2.onSeek,
|
|
5064
|
-
onEnded = _this$props2.onEnded;
|
|
5065
|
-
this.player.unbind('play', onPlay);
|
|
5066
|
-
this.player.unbind('pause', onPause);
|
|
5067
|
-
this.player.unbind('seek', onSeek);
|
|
5068
|
-
this.player.unbind('end', onEnded);
|
|
5069
|
-
}
|
|
5070
5073
|
}, {
|
|
5071
5074
|
key: "stop",
|
|
5072
5075
|
value: function stop() {
|
|
@@ -5112,7 +5115,7 @@ function (_Component) {
|
|
|
5112
5115
|
width: '100%',
|
|
5113
5116
|
height: '100%'
|
|
5114
5117
|
};
|
|
5115
|
-
return _react["default"].createElement("div", {
|
|
5118
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5116
5119
|
key: id,
|
|
5117
5120
|
className: className,
|
|
5118
5121
|
style: style
|
|
@@ -5172,12 +5175,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5172
5175
|
|
|
5173
5176
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5174
5177
|
|
|
5175
|
-
function
|
|
5178
|
+
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); }; }
|
|
5176
5179
|
|
|
5177
|
-
function
|
|
5180
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5178
5181
|
|
|
5179
5182
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5180
5183
|
|
|
5184
|
+
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; } }
|
|
5185
|
+
|
|
5186
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
|
+
|
|
5181
5188
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5182
5189
|
|
|
5183
5190
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5190,14 +5197,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5190
5197
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5191
5198
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5192
5199
|
|
|
5193
|
-
var Twitch =
|
|
5194
|
-
/*#__PURE__*/
|
|
5195
|
-
function (_Component) {
|
|
5200
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5196
5201
|
_inherits(Twitch, _Component);
|
|
5197
5202
|
|
|
5198
|
-
|
|
5199
|
-
var _getPrototypeOf2;
|
|
5203
|
+
var _super = _createSuper(Twitch);
|
|
5200
5204
|
|
|
5205
|
+
function Twitch() {
|
|
5201
5206
|
var _this;
|
|
5202
5207
|
|
|
5203
5208
|
_classCallCheck(this, Twitch);
|
|
@@ -5206,7 +5211,7 @@ function (_Component) {
|
|
|
5206
5211
|
args[_key] = arguments[_key];
|
|
5207
5212
|
}
|
|
5208
5213
|
|
|
5209
|
-
_this =
|
|
5214
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5210
5215
|
|
|
5211
5216
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5212
5217
|
|
|
@@ -5327,7 +5332,7 @@ function (_Component) {
|
|
|
5327
5332
|
width: '100%',
|
|
5328
5333
|
height: '100%'
|
|
5329
5334
|
};
|
|
5330
|
-
return _react["default"].createElement("div", {
|
|
5335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5331
5336
|
style: style,
|
|
5332
5337
|
id: this.playerID
|
|
5333
5338
|
});
|
|
@@ -5380,11 +5385,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5380
5385
|
|
|
5381
5386
|
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; }
|
|
5382
5387
|
|
|
5383
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5388
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5389
|
+
|
|
5390
|
+
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."); }
|
|
5384
5391
|
|
|
5385
|
-
function
|
|
5392
|
+
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); }
|
|
5386
5393
|
|
|
5387
|
-
function
|
|
5394
|
+
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; }
|
|
5395
|
+
|
|
5396
|
+
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; }
|
|
5388
5397
|
|
|
5389
5398
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5390
5399
|
|
|
@@ -5394,12 +5403,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5394
5403
|
|
|
5395
5404
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5396
5405
|
|
|
5397
|
-
function
|
|
5406
|
+
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); }; }
|
|
5398
5407
|
|
|
5399
|
-
function
|
|
5408
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5400
5409
|
|
|
5401
5410
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5402
5411
|
|
|
5412
|
+
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; } }
|
|
5413
|
+
|
|
5414
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
|
+
|
|
5403
5416
|
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); }
|
|
5404
5417
|
|
|
5405
5418
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5411,14 +5424,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5411
5424
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5412
5425
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5413
5426
|
|
|
5414
|
-
var DailyMotion =
|
|
5415
|
-
/*#__PURE__*/
|
|
5416
|
-
function (_Component) {
|
|
5427
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5417
5428
|
_inherits(DailyMotion, _Component);
|
|
5418
5429
|
|
|
5419
|
-
|
|
5420
|
-
var _getPrototypeOf2;
|
|
5430
|
+
var _super = _createSuper(DailyMotion);
|
|
5421
5431
|
|
|
5432
|
+
function DailyMotion() {
|
|
5422
5433
|
var _this;
|
|
5423
5434
|
|
|
5424
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5427,7 +5438,7 @@ function (_Component) {
|
|
|
5427
5438
|
args[_key] = arguments[_key];
|
|
5428
5439
|
}
|
|
5429
5440
|
|
|
5430
|
-
_this =
|
|
5441
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5431
5442
|
|
|
5432
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5433
5444
|
|
|
@@ -5556,9 +5567,9 @@ function (_Component) {
|
|
|
5556
5567
|
height: '100%',
|
|
5557
5568
|
display: display
|
|
5558
5569
|
};
|
|
5559
|
-
return _react["default"].createElement("div", {
|
|
5570
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5560
5571
|
style: style
|
|
5561
|
-
}, _react["default"].createElement("div", {
|
|
5572
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5562
5573
|
ref: this.ref
|
|
5563
5574
|
}));
|
|
5564
5575
|
}
|
|
@@ -5616,12 +5627,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5616
5627
|
|
|
5617
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5618
5629
|
|
|
5619
|
-
function
|
|
5630
|
+
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); }; }
|
|
5620
5631
|
|
|
5621
|
-
function
|
|
5632
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5622
5633
|
|
|
5623
5634
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5624
5635
|
|
|
5636
|
+
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; } }
|
|
5637
|
+
|
|
5638
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
|
+
|
|
5625
5640
|
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); }
|
|
5626
5641
|
|
|
5627
5642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5632,14 +5647,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5632
5647
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5633
5648
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5634
5649
|
|
|
5635
|
-
var Mixcloud =
|
|
5636
|
-
/*#__PURE__*/
|
|
5637
|
-
function (_Component) {
|
|
5650
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5638
5651
|
_inherits(Mixcloud, _Component);
|
|
5639
5652
|
|
|
5640
|
-
|
|
5641
|
-
var _getPrototypeOf2;
|
|
5653
|
+
var _super = _createSuper(Mixcloud);
|
|
5642
5654
|
|
|
5655
|
+
function Mixcloud() {
|
|
5643
5656
|
var _this;
|
|
5644
5657
|
|
|
5645
5658
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5648,7 +5661,7 @@ function (_Component) {
|
|
|
5648
5661
|
args[_key] = arguments[_key];
|
|
5649
5662
|
}
|
|
5650
5663
|
|
|
5651
|
-
_this =
|
|
5664
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5652
5665
|
|
|
5653
5666
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5654
5667
|
|
|
@@ -5751,7 +5764,7 @@ function (_Component) {
|
|
|
5751
5764
|
})); // We have to give the iframe a key here to prevent a
|
|
5752
5765
|
// weird dialog appearing when loading a new track
|
|
5753
5766
|
|
|
5754
|
-
return _react["default"].createElement("iframe", {
|
|
5767
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5755
5768
|
key: id,
|
|
5756
5769
|
ref: this.ref,
|
|
5757
5770
|
style: style,
|
|
@@ -5811,23 +5824,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5811
5824
|
|
|
5812
5825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5813
5826
|
|
|
5814
|
-
function
|
|
5827
|
+
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); }; }
|
|
5815
5828
|
|
|
5816
|
-
function
|
|
5829
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5817
5830
|
|
|
5818
5831
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5819
5832
|
|
|
5833
|
+
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; } }
|
|
5834
|
+
|
|
5835
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
|
+
|
|
5820
5837
|
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); }
|
|
5821
5838
|
|
|
5822
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5823
5840
|
|
|
5824
5841
|
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; }
|
|
5825
5842
|
|
|
5843
|
+
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; } } }; }
|
|
5844
|
+
|
|
5845
|
+
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); }
|
|
5846
|
+
|
|
5847
|
+
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; }
|
|
5848
|
+
|
|
5826
5849
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5827
5850
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5828
5851
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5829
5852
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5830
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5853
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5831
5854
|
var HLS_GLOBAL = 'Hls';
|
|
5832
5855
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5833
5856
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5836,12 +5859,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5836
5859
|
|
|
5837
5860
|
function canPlay(url) {
|
|
5838
5861
|
if (url instanceof Array) {
|
|
5839
|
-
var
|
|
5840
|
-
|
|
5841
|
-
var _iteratorError = undefined;
|
|
5862
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5863
|
+
_step;
|
|
5842
5864
|
|
|
5843
5865
|
try {
|
|
5844
|
-
for (
|
|
5866
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5845
5867
|
var item = _step.value;
|
|
5846
5868
|
|
|
5847
5869
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5853,18 +5875,9 @@ function canPlay(url) {
|
|
|
5853
5875
|
}
|
|
5854
5876
|
}
|
|
5855
5877
|
} catch (err) {
|
|
5856
|
-
|
|
5857
|
-
_iteratorError = err;
|
|
5878
|
+
_iterator.e(err);
|
|
5858
5879
|
} finally {
|
|
5859
|
-
|
|
5860
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5861
|
-
_iterator["return"]();
|
|
5862
|
-
}
|
|
5863
|
-
} finally {
|
|
5864
|
-
if (_didIteratorError) {
|
|
5865
|
-
throw _iteratorError;
|
|
5866
|
-
}
|
|
5867
|
-
}
|
|
5880
|
+
_iterator.f();
|
|
5868
5881
|
}
|
|
5869
5882
|
|
|
5870
5883
|
return false;
|
|
@@ -5888,14 +5901,12 @@ function canEnablePIP(url) {
|
|
|
5888
5901
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5889
5902
|
}
|
|
5890
5903
|
|
|
5891
|
-
var FilePlayer =
|
|
5892
|
-
/*#__PURE__*/
|
|
5893
|
-
function (_Component) {
|
|
5904
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5894
5905
|
_inherits(FilePlayer, _Component);
|
|
5895
5906
|
|
|
5896
|
-
|
|
5897
|
-
var _getPrototypeOf2;
|
|
5907
|
+
var _super = _createSuper(FilePlayer);
|
|
5898
5908
|
|
|
5909
|
+
function FilePlayer() {
|
|
5899
5910
|
var _this;
|
|
5900
5911
|
|
|
5901
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5904,7 +5915,7 @@ function (_Component) {
|
|
|
5904
5915
|
_args[_key] = arguments[_key];
|
|
5905
5916
|
}
|
|
5906
5917
|
|
|
5907
|
-
_this =
|
|
5918
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5908
5919
|
|
|
5909
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5910
5921
|
var _this$props;
|
|
@@ -5991,19 +6002,19 @@ function (_Component) {
|
|
|
5991
6002
|
|
|
5992
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5993
6004
|
if (typeof source === 'string') {
|
|
5994
|
-
return _react["default"].createElement("source", {
|
|
6005
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5995
6006
|
key: index,
|
|
5996
6007
|
src: source
|
|
5997
6008
|
});
|
|
5998
6009
|
}
|
|
5999
6010
|
|
|
6000
|
-
return _react["default"].createElement("source", _extends({
|
|
6011
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6001
6012
|
key: index
|
|
6002
6013
|
}, source));
|
|
6003
6014
|
});
|
|
6004
6015
|
|
|
6005
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6006
|
-
return _react["default"].createElement("track", _extends({
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6007
6018
|
key: index
|
|
6008
6019
|
}, track));
|
|
6009
6020
|
});
|
|
@@ -6041,6 +6052,10 @@ function (_Component) {
|
|
|
6041
6052
|
key: "componentWillUnmount",
|
|
6042
6053
|
value: function componentWillUnmount() {
|
|
6043
6054
|
this.removeListeners(this.player);
|
|
6055
|
+
|
|
6056
|
+
if (this.hls) {
|
|
6057
|
+
this.hls.destroy();
|
|
6058
|
+
}
|
|
6044
6059
|
}
|
|
6045
6060
|
}, {
|
|
6046
6061
|
key: "addListeners",
|
|
@@ -6171,10 +6186,6 @@ function (_Component) {
|
|
|
6171
6186
|
value: function stop() {
|
|
6172
6187
|
this.player.removeAttribute('src');
|
|
6173
6188
|
|
|
6174
|
-
if (this.hls) {
|
|
6175
|
-
this.hls.destroy();
|
|
6176
|
-
}
|
|
6177
|
-
|
|
6178
6189
|
if (this.dash) {
|
|
6179
6190
|
this.dash.reset();
|
|
6180
6191
|
}
|
|
@@ -6286,7 +6297,7 @@ function (_Component) {
|
|
|
6286
6297
|
width: width === 'auto' ? width : '100%',
|
|
6287
6298
|
height: height === 'auto' ? height : '100%'
|
|
6288
6299
|
};
|
|
6289
|
-
return _react["default"].createElement(Element, _extends({
|
|
6300
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6290
6301
|
ref: this.ref,
|
|
6291
6302
|
src: this.getSource(url),
|
|
6292
6303
|
style: style,
|
|
@@ -6376,12 +6387,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6376
6387
|
|
|
6377
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6378
6389
|
|
|
6379
|
-
function
|
|
6390
|
+
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); }; }
|
|
6380
6391
|
|
|
6381
|
-
function
|
|
6392
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6382
6393
|
|
|
6383
6394
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6384
6395
|
|
|
6396
|
+
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; } }
|
|
6397
|
+
|
|
6398
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
|
+
|
|
6385
6400
|
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); }
|
|
6386
6401
|
|
|
6387
6402
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6390,14 +6405,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6390
6405
|
|
|
6391
6406
|
var ICON_SIZE = '64px';
|
|
6392
6407
|
|
|
6393
|
-
var Preview =
|
|
6394
|
-
/*#__PURE__*/
|
|
6395
|
-
function (_Component) {
|
|
6408
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6396
6409
|
_inherits(Preview, _Component);
|
|
6397
6410
|
|
|
6398
|
-
|
|
6399
|
-
var _getPrototypeOf2;
|
|
6411
|
+
var _super = _createSuper(Preview);
|
|
6400
6412
|
|
|
6413
|
+
function Preview() {
|
|
6401
6414
|
var _this;
|
|
6402
6415
|
|
|
6403
6416
|
_classCallCheck(this, Preview);
|
|
@@ -6406,7 +6419,7 @@ function (_Component) {
|
|
|
6406
6419
|
args[_key] = arguments[_key];
|
|
6407
6420
|
}
|
|
6408
6421
|
|
|
6409
|
-
_this =
|
|
6422
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6410
6423
|
|
|
6411
6424
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6412
6425
|
|
|
@@ -6504,15 +6517,15 @@ function (_Component) {
|
|
|
6504
6517
|
}
|
|
6505
6518
|
};
|
|
6506
6519
|
|
|
6507
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6520
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6508
6521
|
style: styles.shadow,
|
|
6509
6522
|
className: "react-player__shadow"
|
|
6510
|
-
}, _react["default"].createElement("div", {
|
|
6523
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6511
6524
|
style: styles.playIcon,
|
|
6512
6525
|
className: "react-player__play-icon"
|
|
6513
6526
|
}));
|
|
6514
6527
|
|
|
6515
|
-
return _react["default"].createElement("div", {
|
|
6528
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6516
6529
|
style: styles.preview,
|
|
6517
6530
|
className: "react-player__preview",
|
|
6518
6531
|
onClick: onClick
|
|
@@ -6549,6 +6562,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6549
6562
|
|
|
6550
6563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6551
6564
|
|
|
6565
|
+
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; } } }; }
|
|
6566
|
+
|
|
6567
|
+
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); }
|
|
6568
|
+
|
|
6569
|
+
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; }
|
|
6570
|
+
|
|
6552
6571
|
var PRELOAD_PLAYERS = [{
|
|
6553
6572
|
Player: YouTube_1.YouTube,
|
|
6554
6573
|
configKey: 'youtube',
|
|
@@ -6569,16 +6588,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6569
6588
|
|
|
6570
6589
|
function renderPreloadPlayers(url, controls, config) {
|
|
6571
6590
|
var players = [];
|
|
6572
|
-
|
|
6573
|
-
var
|
|
6574
|
-
|
|
6591
|
+
|
|
6592
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6593
|
+
_step;
|
|
6575
6594
|
|
|
6576
6595
|
try {
|
|
6577
|
-
for (
|
|
6596
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6578
6597
|
var player = _step.value;
|
|
6579
6598
|
|
|
6580
6599
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6581
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6600
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6582
6601
|
key: player.Player.displayName,
|
|
6583
6602
|
activePlayer: player.Player,
|
|
6584
6603
|
url: player.url,
|
|
@@ -6590,18 +6609,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6590
6609
|
}
|
|
6591
6610
|
}
|
|
6592
6611
|
} catch (err) {
|
|
6593
|
-
|
|
6594
|
-
_iteratorError = err;
|
|
6612
|
+
_iterator.e(err);
|
|
6595
6613
|
} finally {
|
|
6596
|
-
|
|
6597
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6598
|
-
_iterator["return"]();
|
|
6599
|
-
}
|
|
6600
|
-
} finally {
|
|
6601
|
-
if (_didIteratorError) {
|
|
6602
|
-
throw _iteratorError;
|
|
6603
|
-
}
|
|
6604
|
-
}
|
|
6614
|
+
_iterator.f();
|
|
6605
6615
|
}
|
|
6606
6616
|
|
|
6607
6617
|
return players;
|
|
@@ -6725,13 +6735,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6725
6735
|
|
|
6726
6736
|
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); }
|
|
6727
6737
|
|
|
6728
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6738
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6739
|
+
|
|
6740
|
+
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."); }
|
|
6741
|
+
|
|
6742
|
+
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); }
|
|
6729
6743
|
|
|
6730
|
-
function
|
|
6744
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6731
6745
|
|
|
6732
|
-
function
|
|
6746
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6733
6747
|
|
|
6734
|
-
function
|
|
6748
|
+
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; }
|
|
6735
6749
|
|
|
6736
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6737
6751
|
|
|
@@ -6739,12 +6753,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6739
6753
|
|
|
6740
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6741
6755
|
|
|
6742
|
-
function
|
|
6756
|
+
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); }; }
|
|
6743
6757
|
|
|
6744
|
-
function
|
|
6758
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6745
6759
|
|
|
6746
6760
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6747
6761
|
|
|
6762
|
+
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; } }
|
|
6763
|
+
|
|
6764
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
|
+
|
|
6748
6766
|
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); }
|
|
6749
6767
|
|
|
6750
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6754,14 +6772,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6754
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6755
6773
|
var customPlayers = [];
|
|
6756
6774
|
|
|
6757
|
-
var ReactPlayer =
|
|
6758
|
-
/*#__PURE__*/
|
|
6759
|
-
function (_Component) {
|
|
6775
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6760
6776
|
_inherits(ReactPlayer, _Component);
|
|
6761
6777
|
|
|
6762
|
-
|
|
6763
|
-
var _getPrototypeOf2;
|
|
6778
|
+
var _super = _createSuper(ReactPlayer);
|
|
6764
6779
|
|
|
6780
|
+
function ReactPlayer() {
|
|
6765
6781
|
var _this;
|
|
6766
6782
|
|
|
6767
6783
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6770,7 +6786,7 @@ function (_Component) {
|
|
|
6770
6786
|
args[_key] = arguments[_key];
|
|
6771
6787
|
}
|
|
6772
6788
|
|
|
6773
|
-
_this =
|
|
6789
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6774
6790
|
|
|
6775
6791
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6776
6792
|
|
|
@@ -6881,7 +6897,7 @@ function (_Component) {
|
|
|
6881
6897
|
key: "renderActivePlayer",
|
|
6882
6898
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6883
6899
|
if (!url) return null;
|
|
6884
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6900
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6885
6901
|
key: activePlayer.displayName,
|
|
6886
6902
|
ref: this.activePlayerRef,
|
|
6887
6903
|
config: this.config,
|
|
@@ -6918,14 +6934,14 @@ function (_Component) {
|
|
|
6918
6934
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6919
6935
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6920
6936
|
|
|
6921
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6937
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6922
6938
|
url: url,
|
|
6923
6939
|
light: light,
|
|
6924
6940
|
playIcon: playIcon,
|
|
6925
6941
|
onClick: this.handleClickPreview
|
|
6926
6942
|
});
|
|
6927
6943
|
|
|
6928
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6944
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6929
6945
|
ref: this.wrapperRef,
|
|
6930
6946
|
style: _objectSpread({}, style, {
|
|
6931
6947
|
width: width,
|
|
@@ -7247,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7247
7263
|
var duration = player.getDuration();
|
|
7248
7264
|
var queue = Math.floor(duration / 10);
|
|
7249
7265
|
var segment = Math.floor(current / queue);
|
|
7250
|
-
Beam.report_beam_video('Ready',
|
|
7251
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7252
7268
|
//autoplay
|
|
7253
7269
|
|
|
7254
7270
|
//Small pause before starting next video
|
|
@@ -7268,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7268
7284
|
var queue = Math.floor(duration / 10);
|
|
7269
7285
|
var segment = Math.floor(current / queue);
|
|
7270
7286
|
|
|
7271
|
-
Beam.report_beam_video('End',
|
|
7272
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7273
7289
|
setEndReported(true);
|
|
7274
7290
|
clearInterval(intervalID);
|
|
7275
7291
|
}
|
|
@@ -7319,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7319
7335
|
var queue = Math.floor(duration / 10);
|
|
7320
7336
|
var segment = Math.floor(current / queue);
|
|
7321
7337
|
if (!queueProgress.includes(segment)) {
|
|
7322
|
-
Beam.report_beam_video('Segment',
|
|
7323
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7324
7340
|
queueProgress.push(segment);
|
|
7325
7341
|
}
|
|
7326
7342
|
};
|
|
@@ -7333,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7333
7349
|
var queue = Math.floor(duration / 10);
|
|
7334
7350
|
var segment = Math.floor(current / queue);
|
|
7335
7351
|
|
|
7336
|
-
Beam.report_beam_video('Play',
|
|
7337
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7338
7354
|
|
|
7339
7355
|
if (!playReported) {
|
|
7340
7356
|
setPlayReported(true);
|
|
@@ -7352,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7368
|
var queue = Math.floor(duration / 10);
|
|
7353
7369
|
var segment = Math.floor(current / queue);
|
|
7354
7370
|
|
|
7355
|
-
Beam.report_beam_video('Pause',
|
|
7356
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7357
7373
|
};
|
|
7358
7374
|
|
|
7359
7375
|
// Youtube Options
|
|
@@ -7471,7 +7487,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7471
7487
|
React__default.createElement(
|
|
7472
7488
|
'div',
|
|
7473
7489
|
{ className: 'vid-text' },
|
|
7474
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7490
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7475
7491
|
),
|
|
7476
7492
|
React__default.createElement(
|
|
7477
7493
|
'style',
|
|
@@ -7789,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7789
7805
|
);
|
|
7790
7806
|
};
|
|
7791
7807
|
|
|
7792
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7793
7809
|
|
|
7794
7810
|
var Quiz = function Quiz(_ref) {
|
|
7795
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7909,7 +7925,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7909
7925
|
var renderPagination = function renderPagination() {
|
|
7910
7926
|
return React__default.createElement(
|
|
7911
7927
|
Pagination$1,
|
|
7912
|
-
{ className: 'p-0 m-0', size:
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7913
7929
|
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7914
7930
|
return changePage('first');
|
|
7915
7931
|
}, disabled: currentPage === 1 }),
|
|
@@ -8222,7 +8238,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8222
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8223
8239
|
React__default.createElement(
|
|
8224
8240
|
'a',
|
|
8225
|
-
_extends
|
|
8241
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8226
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8227
8243
|
React__default.createElement(
|
|
8228
8244
|
'div',
|
|
@@ -8510,7 +8526,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8510
8526
|
|
|
8511
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8512
8528
|
if (biography) {
|
|
8513
|
-
return React__default.createElement(BlockContent, _extends
|
|
8529
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8514
8530
|
}
|
|
8515
8531
|
};
|
|
8516
8532
|
|
|
@@ -8596,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8596
8612
|
//console.log('useLayoutEffect')
|
|
8597
8613
|
if (!firstLoad) {
|
|
8598
8614
|
setUpArrowClicked(false);
|
|
8599
|
-
if (
|
|
8615
|
+
if (main_43) {
|
|
8600
8616
|
grabLoadedAds();
|
|
8601
8617
|
} else {
|
|
8602
8618
|
scrollToArticle();
|
|
@@ -8620,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8620
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8621
8637
|
if (pageview) pageview(path);
|
|
8622
8638
|
|
|
8623
|
-
if (!
|
|
8639
|
+
if (!main_43) {
|
|
8624
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8625
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8626
8642
|
lib_3.refresh();
|
|
@@ -8628,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8628
8644
|
});
|
|
8629
8645
|
}
|
|
8630
8646
|
//Refresh leaderboard ad on mobile
|
|
8631
|
-
if (
|
|
8647
|
+
if (main_43) {
|
|
8632
8648
|
var leaderboardSlotId = '';
|
|
8633
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8634
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8697,7 +8713,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8697
8713
|
React__default.createElement(
|
|
8698
8714
|
'div',
|
|
8699
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8700
|
-
|
|
8716
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8701
8717
|
if (index === 0) {
|
|
8702
8718
|
return React__default.createElement(
|
|
8703
8719
|
'div',
|
|
@@ -8788,7 +8804,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8788
8804
|
React__default.createElement(
|
|
8789
8805
|
'div',
|
|
8790
8806
|
{ className: 'mt-2 mb-2' },
|
|
8791
|
-
React__default.createElement(BlockContent, _extends
|
|
8807
|
+
React__default.createElement(BlockContent, _extends({
|
|
8792
8808
|
serializers: getSerializers,
|
|
8793
8809
|
videoAccountIDs: accountIDs,
|
|
8794
8810
|
blocks: article.text,
|
|
@@ -8819,7 +8835,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8819
8835
|
React__default.createElement(
|
|
8820
8836
|
'div',
|
|
8821
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8822
|
-
|
|
8838
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8823
8839
|
if (innerIndex === 0) {
|
|
8824
8840
|
return React__default.createElement(
|
|
8825
8841
|
'div',
|
|
@@ -8906,7 +8922,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8906
8922
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8907
8923
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8908
8924
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8909
|
-
React__default.createElement('img', _extends
|
|
8925
|
+
React__default.createElement('img', _extends({
|
|
8910
8926
|
style: figureImageStyle,
|
|
8911
8927
|
className: 'figure-image',
|
|
8912
8928
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9115,7 +9131,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9115
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9116
9132
|
image.link ? React__default.createElement(
|
|
9117
9133
|
'a',
|
|
9118
|
-
_extends
|
|
9134
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9119
9135
|
React__default.createElement(
|
|
9120
9136
|
'div',
|
|
9121
9137
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9207,7 +9223,7 @@ exports.__esModule = true;
|
|
|
9207
9223
|
|
|
9208
9224
|
|
|
9209
9225
|
|
|
9210
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9211
9227
|
|
|
9212
9228
|
|
|
9213
9229
|
|
|
@@ -9520,7 +9536,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9520
9536
|
return React__default.createElement(
|
|
9521
9537
|
'div',
|
|
9522
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9523
|
-
React__default.createElement(BlockContent, _extends
|
|
9539
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9524
9540
|
);
|
|
9525
9541
|
})
|
|
9526
9542
|
);
|