@mjhls/mjh-framework 1.0.842-beta.0 → 1.0.843
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +13 -13
- package/dist/cjs/AD300x250x600.js +13 -13
- package/dist/cjs/AD728x90.js +14 -14
- package/dist/cjs/ADFloatingFooter.js +12 -12
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +12 -12
- package/dist/cjs/{ADInfeed-55587a4e.js → ADInfeed-6810812f.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +12 -12
- package/dist/cjs/ADSponsoredResources.js +12 -12
- package/dist/cjs/ADWebcast.js +12 -12
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-5c3d8260.js → ADlgInfeed-12b1f200.js} +1 -1
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +12 -905
- package/dist/cjs/AlgoliaSearch.js +391 -264
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +10 -10
- package/dist/cjs/ArticleProgramLandingPage.js +27 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +18 -18
- package/dist/cjs/Auth.js +465 -245
- package/dist/cjs/AuthWrapper.js +283 -242
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-0c464248.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-bac780ac.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +8 -8
- package/dist/cjs/Column3.js +16 -16
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-ac0c1cc6.js} +7 -7
- package/dist/cjs/EventsDeck.js +33 -33
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +8 -8
- package/dist/cjs/GridContent.js +28 -28
- package/dist/cjs/GridHero.js +8 -8
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/HamMagazine.js +25 -25
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -25
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +8 -8
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +61 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +12 -12
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +208 -209
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +24 -24
- package/dist/cjs/NavNative.js +21 -21
- package/dist/cjs/OncliveHero.js +2 -3
- package/dist/cjs/OncliveLargeHero.js +8 -8
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +37 -1133
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +22 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +36 -36
- package/dist/cjs/QueueDeckExpanded.js +1064 -1087
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +15 -15
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-dad08884.js} +11 -11
- package/dist/cjs/SideFooter.js +10 -10
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-ad15dd61.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +4 -4
- package/dist/cjs/TaxonomyDescription.js +25 -25
- package/dist/cjs/TemplateNormal.js +18 -18
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +12 -12
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +27 -27
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +18 -18
- package/dist/cjs/View.js +61 -61
- package/dist/cjs/YahooHero.js +8 -8
- package/dist/cjs/YoutubeGroup.js +18 -18
- package/dist/cjs/{_is-array-754e012d.js → _is-array-39ff55dd.js} +1 -1
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-ef35661e.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b231f928.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-c3aeb51d.js} +1 -1
- package/dist/cjs/{_to-object-329a650b.js → _to-object-7a3ce269.js} +2 -2
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-8ae2191c.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-05029198.js} +4 -3
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-6cd7682d.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-6191c8ee.js} +1 -1
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-fc002cec.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-03c4c82e.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-ab94a594.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-acc1318d.js} +1 -1
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-98ab97f7.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-ac18d02c.js → index-52c2d039.js} +518 -502
- package/dist/cjs/{index-e2e62963.js → index-53e27416.js} +25 -9
- package/dist/cjs/{index-3294d3bc.js → index-79eed652.js} +39 -40
- package/dist/cjs/{index-be0c82be.js → index-ff69979f.js} +28 -22
- package/dist/cjs/{index.es-9110add6.js → index.es-e9d84959.js} +23 -5
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/{index.esm-4d410430.js → index.esm-bf016399.js} +2 -3
- package/dist/cjs/index.js +44 -43
- package/dist/cjs/{inherits-452ff02c.js → inherits-bfdb22af.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-62e097ca.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-b5e0d5f6.js} +127 -30
- package/dist/cjs/main-bc7d4bf8.js +972 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-41819145.js} +4 -4
- package/dist/cjs/{stringify-7c5aff47.js → stringify-7ccc8524.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-4fdb72e2.js} +4 -4
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-f2f8744b.js} +39 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-e83d4a26.js} +4 -4
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-c30d203c.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-68e3aaf2.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +13 -13
- package/dist/esm/AD300x250x600.js +13 -13
- package/dist/esm/AD728x90.js +14 -14
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +12 -12
- package/dist/esm/{ADInfeed-bb665cdc.js → ADInfeed-9e41b90e.js} +1 -1
- package/dist/esm/ADSkyscraper.js +12 -12
- package/dist/esm/ADSponsoredResources.js +12 -12
- package/dist/esm/ADWebcast.js +12 -12
- package/dist/esm/ADWelcome.js +12 -12
- package/dist/esm/{ADlgInfeed-2897d78f.js → ADlgInfeed-519eade4.js} +1 -1
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +15 -15
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +159 -32
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +10 -10
- package/dist/esm/ArticleProgramLandingPage.js +26 -26
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +464 -244
- package/dist/esm/AuthWrapper.js +283 -242
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5cab1f6b.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-ea93e8f7.js} +1 -1
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +8 -8
- package/dist/esm/Column3.js +16 -16
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +19 -19
- package/dist/esm/{Dfp-b7236041.js → Dfp-4b94fbd4.js} +7 -7
- package/dist/esm/EventsDeck.js +33 -33
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +8 -8
- package/dist/esm/GridContent.js +28 -28
- package/dist/esm/GridHero.js +8 -8
- package/dist/esm/GroupDeck.js +8 -8
- package/dist/esm/HamMagazine.js +25 -25
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -25
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +8 -8
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +61 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +12 -12
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +364 -365
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +24 -24
- package/dist/esm/NavNative.js +21 -21
- package/dist/esm/OncliveHero.js +2 -3
- package/dist/esm/OncliveLargeHero.js +8 -8
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +36 -1131
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +22 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +36 -36
- package/dist/esm/QueueDeckExpanded.js +1064 -1087
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-5ba2e521.js} +11 -11
- package/dist/esm/SideFooter.js +10 -10
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-9cc36413.js} +7 -7
- package/dist/esm/TaxonomyCard.js +4 -4
- package/dist/esm/TaxonomyDescription.js +25 -25
- package/dist/esm/TemplateNormal.js +18 -18
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoProgramLandingPage.js +26 -26
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +18 -18
- package/dist/esm/View.js +37 -37
- package/dist/esm/YahooHero.js +8 -8
- package/dist/esm/YoutubeGroup.js +18 -18
- package/dist/esm/{_is-array-58e95429.js → _is-array-328b85b7.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-0fa1c752.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-1b84e2bf.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c8f72bf1.js} +1 -1
- package/dist/esm/{_to-object-a4107da3.js → _to-object-cedb5b78.js} +2 -2
- package/dist/esm/{asyncToGenerator-4877b617.js → asyncToGenerator-e1a2f43a.js} +6 -6
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e761d404.js} +4 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-227107e6.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-89969f66.js} +1 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-2f35af22.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-eb9699c0.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-1577cb76.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-be71a29a.js} +1 -1
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/getRelatedArticle.js +6 -6
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-93bb872d.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-8dbb97f3.js → index-4f60bd57.js} +518 -502
- package/dist/esm/{index-ef6d5dcf.js → index-511bdaa5.js} +39 -40
- package/dist/esm/{index-aaa2dae0.js → index-637e8f49.js} +25 -10
- package/dist/esm/{index-73819142.js → index-f7fdcc91.js} +28 -22
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/{index.esm-fd746768.js → index.esm-ed50151c.js} +2 -3
- package/dist/esm/index.js +44 -43
- package/dist/esm/{inherits-cf8dde54.js → inherits-2cf82c38.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-526daf0a.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-a818d390.js} +127 -30
- package/dist/esm/main-ae902629.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-f0edf3d6.js} +4 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-d1b9276a.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-81605212.js} +4 -4
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-e3dcad26.js} +39 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-ad2c7a21.js} +4 -4
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-cf90f7e6.js} +4 -4
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-ace8ed30.js} +2 -2
- package/package.json +110 -111
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
|
@@ -1,35 +1,35 @@
|
|
|
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
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-ea93e8f7.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e761d404.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as _objectToArray } from './_object-to-array-
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-c8f72bf1.js';
|
|
33
33
|
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
34
|
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
@@ -97,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
115
112
|
length = a.length;
|
|
116
113
|
if (length != b.length) return false;
|
|
117
114
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
116
|
return true;
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
119
|
|
|
124
|
-
var dateA = a instanceof Date
|
|
125
|
-
, dateB = b instanceof Date;
|
|
126
|
-
if (dateA != dateB) return false;
|
|
127
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
128
120
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
124
|
|
|
134
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
135
126
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
128
|
|
|
140
129
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
145
135
|
if (!equal(a[key], b[key])) return false;
|
|
146
136
|
}
|
|
147
137
|
|
|
148
138
|
return true;
|
|
149
139
|
}
|
|
150
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
151
142
|
return a!==a && b!==b;
|
|
152
143
|
};
|
|
153
144
|
|
|
@@ -1570,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
1570
1561
|
|
|
1571
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1563
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1564
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1576
1565
|
|
|
1577
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1567
|
|
|
1579
|
-
function
|
|
1568
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1569
|
+
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1573
|
+
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1583
|
+
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1580
1587
|
|
|
1581
|
-
function
|
|
1588
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1582
1589
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1590
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1588
1596
|
*/
|
|
1597
|
+
|
|
1589
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1599
|
// A changing video should always trigger an update
|
|
1591
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1601
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
1597
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1607
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1609
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1609
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
1610
1619
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
1613
1622
|
autoplay: 0,
|
|
1614
1623
|
start: 0,
|
|
1615
1624
|
end: 0
|
|
1616
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
1617
1626
|
});
|
|
1618
1627
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1628
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
1629
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1641
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
1638
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
1639
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1652
|
}
|
|
1642
1653
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1655
|
_inherits(YouTube, _React$Component);
|
|
1645
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
1646
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
1647
1667
|
_classCallCheck(this, YouTube);
|
|
1648
1668
|
|
|
1649
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
1650
1670
|
|
|
1651
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1672
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1673
|
+
});
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1676
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1680
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
1663
1683
|
case YouTube.PlayerState.ENDED:
|
|
1664
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
1665
1686
|
break;
|
|
1666
1687
|
|
|
1667
1688
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
1669
1691
|
break;
|
|
1670
1692
|
|
|
1671
1693
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
1673
1696
|
break;
|
|
1674
1697
|
}
|
|
1675
|
-
};
|
|
1698
|
+
});
|
|
1676
1699
|
|
|
1677
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1709
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1713
|
// preload the `videoId` video if one is already given
|
|
1691
1714
|
videoId: _this.props.videoId
|
|
1692
1715
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
1695
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
1696
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
1697
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
1698
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
1699
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1728
|
+
});
|
|
1701
1729
|
|
|
1702
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1738
|
});
|
|
1711
|
-
};
|
|
1739
|
+
});
|
|
1712
1740
|
|
|
1713
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1716
1749
|
return;
|
|
1717
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1718
1752
|
|
|
1719
|
-
// set queueing options
|
|
1720
1753
|
var autoplay = false;
|
|
1721
1754
|
var opts = {
|
|
1722
1755
|
videoId: _this.props.videoId
|
|
1723
1756
|
};
|
|
1757
|
+
|
|
1724
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1726
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1763
|
}
|
|
1764
|
+
|
|
1729
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1767
|
}
|
|
1732
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1733
1770
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1771
|
if (autoplay) {
|
|
1736
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1737
1774
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1740
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1779
|
+
});
|
|
1742
1780
|
|
|
1743
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1782
|
_this.container = container;
|
|
1745
|
-
};
|
|
1783
|
+
});
|
|
1746
1784
|
|
|
1747
1785
|
_this.container = null;
|
|
1748
1786
|
_this.internalPlayer = null;
|
|
1749
1787
|
return _this;
|
|
1750
1788
|
}
|
|
1751
1789
|
|
|
1752
|
-
/**
|
|
1753
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
-
*/
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
1790
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1761
1792
|
value: function componentDidMount() {
|
|
1762
1793
|
this.createPlayer();
|
|
1763
1794
|
}
|
|
1764
1795
|
}, {
|
|
1765
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1766
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1799
|
this.updatePlayer();
|
|
@@ -1777,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1808
|
}
|
|
1778
1809
|
}
|
|
1779
1810
|
}, {
|
|
1780
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1781
1812
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1784
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1818
|
*/
|
|
1788
1819
|
this.internalPlayer.destroy();
|
|
1789
1820
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} target - player object
|
|
1796
|
-
*/
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} event
|
|
1803
|
-
* @param {Integer} data - error type
|
|
1804
|
-
* @param {Object} target - player object
|
|
1805
|
-
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
-
*
|
|
1811
|
-
* @param {Object} event
|
|
1812
|
-
* @param {Integer} data - status change type
|
|
1813
|
-
* @param {Object} target - actual YT player
|
|
1814
|
-
*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
-
*
|
|
1820
|
-
* @param {Object} event
|
|
1821
|
-
* @param {Float} data - playback rate
|
|
1822
|
-
* @param {Object} target - actual YT player
|
|
1823
|
-
*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
-
*
|
|
1829
|
-
* @param {Object} event
|
|
1830
|
-
* @param {String} data - playback quality
|
|
1831
|
-
* @param {Object} target - actual YT player
|
|
1832
|
-
*/
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
-
*/
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
-
* React should update this automatically but since the Youtube Player API
|
|
1848
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
-
*/
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1856
1826
|
*/
|
|
1857
1827
|
|
|
1858
1828
|
}, {
|
|
1859
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1860
1830
|
value: function render() {
|
|
1861
|
-
return React__default.createElement(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1831
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1866
1838
|
}
|
|
1867
1839
|
}]);
|
|
1868
1840
|
|
|
1869
1841
|
return YouTube;
|
|
1870
1842
|
}(React__default.Component);
|
|
1871
1843
|
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1852
|
+
|
|
1872
1853
|
YouTube.propTypes = {
|
|
1873
1854
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1855
|
// custom ID for player element
|
|
1876
1856
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1857
|
// custom class name for player element
|
|
1879
1858
|
className: PropTypes.string,
|
|
1880
1859
|
// custom class name for player container element
|
|
1881
1860
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1863
|
// event subscriptions
|
|
1887
1864
|
onReady: PropTypes.func,
|
|
1888
1865
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1894
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1872
|
};
|
|
1896
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1897
1875
|
id: null,
|
|
1898
1876
|
className: null,
|
|
1899
1877
|
opts: {},
|
|
@@ -1907,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1907
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1887
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1888
|
|
|
1919
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1890
|
var url = _ref.url,
|
|
@@ -1953,8 +1923,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1923
|
var duration = player.getDuration();
|
|
1954
1924
|
var queue = Math.floor(duration / 10);
|
|
1955
1925
|
var segment = Math.floor(current / queue);
|
|
1956
|
-
Beam.report_beam_video('Ready',
|
|
1957
|
-
Segment.report_video_event('Video Ready',
|
|
1926
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1927
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1958
1928
|
};
|
|
1959
1929
|
|
|
1960
1930
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,8 +1934,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1934
|
var segment = Math.floor(current / queue);
|
|
1965
1935
|
|
|
1966
1936
|
if (!queueProgress.includes(segment)) {
|
|
1967
|
-
Beam.report_beam_video('Segment',
|
|
1968
|
-
Segment.report_video_event('Video Segment',
|
|
1937
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1938
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1969
1939
|
queueProgress.push(segment);
|
|
1970
1940
|
}
|
|
1971
1941
|
};
|
|
@@ -1978,8 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1948
|
var queue = Math.floor(duration / 10);
|
|
1979
1949
|
var segment = Math.floor(current / queue);
|
|
1980
1950
|
|
|
1981
|
-
Beam.report_beam_video('Play',
|
|
1982
|
-
Segment.report_video_event('Video Play',
|
|
1951
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1952
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1983
1953
|
|
|
1984
1954
|
if (!playReported) {
|
|
1985
1955
|
setPlayReported(true);
|
|
@@ -1998,8 +1968,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1968
|
var queue = Math.floor(duration / 10);
|
|
1999
1969
|
var segment = Math.floor(current / queue);
|
|
2000
1970
|
|
|
2001
|
-
Beam.report_beam_video('End',
|
|
2002
|
-
Segment.report_video_event('Video End',
|
|
1971
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1972
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2003
1973
|
setEndReported(true);
|
|
2004
1974
|
clearInterval(intervalID);
|
|
2005
1975
|
}
|
|
@@ -2012,8 +1982,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1982
|
var queue = Math.floor(duration / 10);
|
|
2013
1983
|
var segment = Math.floor(current / queue);
|
|
2014
1984
|
|
|
2015
|
-
Beam.report_beam_video('Pause',
|
|
2016
|
-
Segment.report_video_event('Video Pause',
|
|
1985
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1986
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2017
1987
|
};
|
|
2018
1988
|
|
|
2019
1989
|
return React__default.createElement(
|
|
@@ -2181,7 +2151,7 @@ var Media = function Media(_ref) {
|
|
|
2181
2151
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2182
2152
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2183
2153
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2184
|
-
React__default.createElement('img', _extends
|
|
2154
|
+
React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
2155
|
)
|
|
2186
2156
|
),
|
|
2187
2157
|
caption && React__default.createElement(
|
|
@@ -2194,7 +2164,7 @@ var Media = function Media(_ref) {
|
|
|
2194
2164
|
} else if (caption && caption !== '') {
|
|
2195
2165
|
return React__default.createElement(
|
|
2196
2166
|
'a',
|
|
2197
|
-
_extends
|
|
2167
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2168
|
href: uploadDoc.asset.url + '?dl='
|
|
2199
2169
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2200
2170
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2249,8 +2219,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2219
|
var duration = player.duration;
|
|
2250
2220
|
var queue = Math.floor(duration / 10);
|
|
2251
2221
|
var segment = Math.floor(current / queue);
|
|
2252
|
-
Beam.report_beam_video('Ready',
|
|
2253
|
-
Segment.report_video_event('Video Ready',
|
|
2222
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2223
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2254
2224
|
};
|
|
2255
2225
|
|
|
2256
2226
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2259,8 +2229,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2259
2229
|
var queue = Math.floor(duration / 10);
|
|
2260
2230
|
var segment = Math.floor(current / queue);
|
|
2261
2231
|
if (!queueProgress.includes(segment)) {
|
|
2262
|
-
Beam.report_beam_video('Segment',
|
|
2263
|
-
Segment.report_video_event('Video Segment',
|
|
2232
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2233
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2264
2234
|
queueProgress.push(segment);
|
|
2265
2235
|
}
|
|
2266
2236
|
};
|
|
@@ -2272,8 +2242,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2272
2242
|
var duration = player.duration;
|
|
2273
2243
|
var queue = Math.floor(duration / 10);
|
|
2274
2244
|
var segment = Math.floor(current / queue);
|
|
2275
|
-
Beam.report_beam_video('Play',
|
|
2276
|
-
Segment.report_video_event('Video Play',
|
|
2245
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2246
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2277
2247
|
|
|
2278
2248
|
if (!playReported) {
|
|
2279
2249
|
event.persist();
|
|
@@ -2293,8 +2263,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2293
2263
|
var queue = Math.floor(duration / 10);
|
|
2294
2264
|
var segment = Math.floor(current / queue);
|
|
2295
2265
|
|
|
2296
|
-
Beam.report_beam_video('End',
|
|
2297
|
-
Segment.report_video_event('Video End',
|
|
2266
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2267
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2298
2268
|
setEndReported(true);
|
|
2299
2269
|
clearInterval(intervalID);
|
|
2300
2270
|
}
|
|
@@ -2306,8 +2276,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2306
2276
|
var duration = player.duration - current;
|
|
2307
2277
|
var queue = Math.floor(duration / 10);
|
|
2308
2278
|
var segment = Math.floor(current / queue);
|
|
2309
|
-
Beam.report_beam_video('Pause',
|
|
2310
|
-
Segment.report_video_event('Video Pause',
|
|
2279
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2280
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2311
2281
|
};
|
|
2312
2282
|
|
|
2313
2283
|
return React__default.createElement(
|
|
@@ -2368,7 +2338,7 @@ var Video = function Video(_ref) {
|
|
|
2368
2338
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2369
2339
|
//console.log('success:', success.ref)
|
|
2370
2340
|
var player = success.ref;
|
|
2371
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2341
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2372
2342
|
player.ima3.settings.debug = true;
|
|
2373
2343
|
if (targeting.content_placement && targeting.document_url) {
|
|
2374
2344
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2396,8 +2366,8 @@ var Video = function Video(_ref) {
|
|
|
2396
2366
|
player.pause();
|
|
2397
2367
|
}
|
|
2398
2368
|
|
|
2399
|
-
Beam.report_beam_video('Ready',
|
|
2400
|
-
Segment.report_video_event('Video Ready',
|
|
2369
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2370
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2401
2371
|
});
|
|
2402
2372
|
|
|
2403
2373
|
// play
|
|
@@ -2406,8 +2376,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2376
|
var current = player.currentTime();
|
|
2407
2377
|
var queue = Math.floor(duration / 10);
|
|
2408
2378
|
var segment = Math.floor(current / queue);
|
|
2409
|
-
Beam.report_beam_video('Play',
|
|
2410
|
-
Segment.report_video_event('Video Play',
|
|
2379
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2380
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2381
|
});
|
|
2412
2382
|
|
|
2413
2383
|
// pause
|
|
@@ -2416,8 +2386,8 @@ var Video = function Video(_ref) {
|
|
|
2416
2386
|
var current = player.currentTime();
|
|
2417
2387
|
var queue = Math.floor(duration / 10);
|
|
2418
2388
|
var segment = Math.floor(current / queue);
|
|
2419
|
-
Beam.report_beam_video('Pause',
|
|
2420
|
-
Segment.report_video_event('Video Pause',
|
|
2389
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2390
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2421
2391
|
});
|
|
2422
2392
|
|
|
2423
2393
|
// end
|
|
@@ -2426,8 +2396,8 @@ var Video = function Video(_ref) {
|
|
|
2426
2396
|
var current = player.currentTime();
|
|
2427
2397
|
var queue = Math.floor(duration / 10);
|
|
2428
2398
|
var segment = Math.floor(current / queue);
|
|
2429
|
-
Beam.report_beam_video('End',
|
|
2430
|
-
Segment.report_video_event('Video End',
|
|
2399
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2400
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2431
2401
|
autoplayNextVideo(evt);
|
|
2432
2402
|
});
|
|
2433
2403
|
|
|
@@ -2438,8 +2408,8 @@ var Video = function Video(_ref) {
|
|
|
2438
2408
|
var queue = Math.floor(duration / 10);
|
|
2439
2409
|
var segment = Math.floor(current / queue);
|
|
2440
2410
|
if (!queueProgress.includes(segment)) {
|
|
2441
|
-
Beam.report_beam_video('Segment',
|
|
2442
|
-
Segment.report_video_event('Video Segment',
|
|
2411
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2412
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2443
2413
|
queueProgress.push(segment);
|
|
2444
2414
|
}
|
|
2445
2415
|
});
|
|
@@ -2450,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2450
2420
|
var id = player.ads.ad.id;
|
|
2451
2421
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2452
2422
|
|
|
2453
|
-
Beam.report_beam_ad('AD Started',
|
|
2454
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2423
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2424
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2455
2425
|
});
|
|
2456
2426
|
|
|
2457
2427
|
// ad ended
|
|
@@ -2459,8 +2429,8 @@ var Video = function Video(_ref) {
|
|
|
2459
2429
|
var duration = player.ads.ad.duration;
|
|
2460
2430
|
var id = player.ads.ad.id;
|
|
2461
2431
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2462
|
-
Beam.report_beam_ad('AD Ended',
|
|
2463
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2432
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2433
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2464
2434
|
});
|
|
2465
2435
|
};
|
|
2466
2436
|
|
|
@@ -2890,11 +2860,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2890
2860
|
|
|
2891
2861
|
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; }
|
|
2892
2862
|
|
|
2893
|
-
function
|
|
2863
|
+
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; } } }; }
|
|
2894
2864
|
|
|
2895
|
-
function
|
|
2865
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2896
2866
|
|
|
2897
|
-
function
|
|
2867
|
+
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."); }
|
|
2868
|
+
|
|
2869
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2870
|
+
|
|
2871
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2872
|
+
|
|
2873
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2898
2874
|
|
|
2899
2875
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2876
|
|
|
@@ -3024,12 +3000,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
3000
|
|
|
3025
3001
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
3002
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3003
|
+
|
|
3004
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3005
|
+
_step;
|
|
3030
3006
|
|
|
3031
3007
|
try {
|
|
3032
|
-
for (
|
|
3008
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3033
3009
|
var p = _step.value;
|
|
3034
3010
|
|
|
3035
3011
|
if (props$1[p]) {
|
|
@@ -3044,18 +3020,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3020
|
}
|
|
3045
3021
|
}
|
|
3046
3022
|
} catch (err) {
|
|
3047
|
-
|
|
3048
|
-
_iteratorError = err;
|
|
3023
|
+
_iterator.e(err);
|
|
3049
3024
|
} finally {
|
|
3050
|
-
|
|
3051
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
-
_iterator["return"]();
|
|
3053
|
-
}
|
|
3054
|
-
} finally {
|
|
3055
|
-
if (_didIteratorError) {
|
|
3056
|
-
throw _iteratorError;
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3025
|
+
_iterator.f();
|
|
3059
3026
|
}
|
|
3060
3027
|
|
|
3061
3028
|
return config;
|
|
@@ -3202,12 +3169,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3202
3169
|
|
|
3203
3170
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3204
3171
|
|
|
3205
|
-
function
|
|
3172
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3206
3173
|
|
|
3207
|
-
function
|
|
3174
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3208
3175
|
|
|
3209
3176
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
3177
|
|
|
3178
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3179
|
+
|
|
3180
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
|
+
|
|
3211
3182
|
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); }
|
|
3212
3183
|
|
|
3213
3184
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3216,14 +3187,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3216
3187
|
|
|
3217
3188
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3218
3189
|
|
|
3219
|
-
var Player =
|
|
3220
|
-
/*#__PURE__*/
|
|
3221
|
-
function (_Component) {
|
|
3190
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3222
3191
|
_inherits(Player, _Component);
|
|
3223
3192
|
|
|
3224
|
-
|
|
3225
|
-
var _getPrototypeOf2;
|
|
3193
|
+
var _super = _createSuper(Player);
|
|
3226
3194
|
|
|
3195
|
+
function Player() {
|
|
3227
3196
|
var _this;
|
|
3228
3197
|
|
|
3229
3198
|
_classCallCheck(this, Player);
|
|
@@ -3232,7 +3201,7 @@ function (_Component) {
|
|
|
3232
3201
|
_args[_key] = arguments[_key];
|
|
3233
3202
|
}
|
|
3234
3203
|
|
|
3235
|
-
_this =
|
|
3204
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3236
3205
|
|
|
3237
3206
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3238
3207
|
|
|
@@ -3557,7 +3526,7 @@ function (_Component) {
|
|
|
3557
3526
|
return null;
|
|
3558
3527
|
}
|
|
3559
3528
|
|
|
3560
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3529
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3561
3530
|
ref: this.ref,
|
|
3562
3531
|
onReady: this.handleReady,
|
|
3563
3532
|
onPlay: this.handlePlay,
|
|
@@ -3618,12 +3587,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3618
3587
|
|
|
3619
3588
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3620
3589
|
|
|
3621
|
-
function
|
|
3590
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3622
3591
|
|
|
3623
|
-
function
|
|
3592
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3624
3593
|
|
|
3625
3594
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
3595
|
|
|
3596
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3597
|
+
|
|
3598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
|
+
|
|
3627
3600
|
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); }
|
|
3628
3601
|
|
|
3629
3602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3635,14 +3608,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3635
3608
|
function createSinglePlayer(activePlayer) {
|
|
3636
3609
|
var _class, _temp;
|
|
3637
3610
|
|
|
3638
|
-
return _temp = _class =
|
|
3639
|
-
/*#__PURE__*/
|
|
3640
|
-
function (_Component) {
|
|
3611
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3641
3612
|
_inherits(SinglePlayer, _Component);
|
|
3642
3613
|
|
|
3643
|
-
|
|
3644
|
-
var _getPrototypeOf2;
|
|
3614
|
+
var _super = _createSuper(SinglePlayer);
|
|
3645
3615
|
|
|
3616
|
+
function SinglePlayer() {
|
|
3646
3617
|
var _this;
|
|
3647
3618
|
|
|
3648
3619
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3651,7 +3622,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3651
3622
|
args[_key] = arguments[_key];
|
|
3652
3623
|
}
|
|
3653
3624
|
|
|
3654
|
-
_this =
|
|
3625
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3655
3626
|
|
|
3656
3627
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3657
3628
|
|
|
@@ -3719,12 +3690,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3719
3690
|
height = _this$props.height,
|
|
3720
3691
|
Wrapper = _this$props.wrapper;
|
|
3721
3692
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3722
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3693
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3723
3694
|
style: _objectSpread({}, style, {
|
|
3724
3695
|
width: width,
|
|
3725
3696
|
height: height
|
|
3726
3697
|
})
|
|
3727
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3698
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3728
3699
|
ref: this.ref,
|
|
3729
3700
|
activePlayer: activePlayer,
|
|
3730
3701
|
config: this.config
|
|
@@ -3770,23 +3741,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3770
3741
|
|
|
3771
3742
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3772
3743
|
|
|
3773
|
-
function
|
|
3744
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3774
3745
|
|
|
3775
|
-
function
|
|
3746
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3776
3747
|
|
|
3777
3748
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
3749
|
|
|
3750
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3751
|
+
|
|
3752
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
|
+
|
|
3779
3754
|
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); }
|
|
3780
3755
|
|
|
3781
3756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3782
3757
|
|
|
3783
3758
|
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; }
|
|
3784
3759
|
|
|
3785
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3760
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3786
3761
|
|
|
3787
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3762
|
+
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."); }
|
|
3788
3763
|
|
|
3789
|
-
function
|
|
3764
|
+
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); }
|
|
3765
|
+
|
|
3766
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3767
|
+
|
|
3768
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3790
3769
|
|
|
3791
3770
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3792
3771
|
|
|
@@ -3811,14 +3790,12 @@ function parsePlaylist(url) {
|
|
|
3811
3790
|
return {};
|
|
3812
3791
|
}
|
|
3813
3792
|
|
|
3814
|
-
var YouTube =
|
|
3815
|
-
/*#__PURE__*/
|
|
3816
|
-
function (_Component) {
|
|
3793
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3817
3794
|
_inherits(YouTube, _Component);
|
|
3818
3795
|
|
|
3819
|
-
|
|
3820
|
-
var _getPrototypeOf2;
|
|
3796
|
+
var _super = _createSuper(YouTube);
|
|
3821
3797
|
|
|
3798
|
+
function YouTube() {
|
|
3822
3799
|
var _this;
|
|
3823
3800
|
|
|
3824
3801
|
_classCallCheck(this, YouTube);
|
|
@@ -3827,7 +3804,7 @@ function (_Component) {
|
|
|
3827
3804
|
args[_key] = arguments[_key];
|
|
3828
3805
|
}
|
|
3829
3806
|
|
|
3830
|
-
_this =
|
|
3807
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3831
3808
|
|
|
3832
3809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3833
3810
|
|
|
@@ -4015,9 +3992,9 @@ function (_Component) {
|
|
|
4015
3992
|
height: '100%',
|
|
4016
3993
|
display: display
|
|
4017
3994
|
};
|
|
4018
|
-
return _react["default"].createElement("div", {
|
|
3995
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3996
|
style: style
|
|
4020
|
-
}, _react["default"].createElement("div", {
|
|
3997
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4021
3998
|
ref: this.ref
|
|
4022
3999
|
}));
|
|
4023
4000
|
}
|
|
@@ -4073,12 +4050,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4073
4050
|
|
|
4074
4051
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4075
4052
|
|
|
4076
|
-
function
|
|
4053
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4077
4054
|
|
|
4078
|
-
function
|
|
4055
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4079
4056
|
|
|
4080
4057
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
4058
|
|
|
4059
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4060
|
+
|
|
4061
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
|
+
|
|
4082
4063
|
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); }
|
|
4083
4064
|
|
|
4084
4065
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4087,16 +4068,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4087
4068
|
|
|
4088
4069
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4089
4070
|
var SDK_GLOBAL = 'SC';
|
|
4090
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4071
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4091
4072
|
|
|
4092
|
-
var SoundCloud =
|
|
4093
|
-
/*#__PURE__*/
|
|
4094
|
-
function (_Component) {
|
|
4073
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4095
4074
|
_inherits(SoundCloud, _Component);
|
|
4096
4075
|
|
|
4097
|
-
|
|
4098
|
-
var _getPrototypeOf2;
|
|
4076
|
+
var _super = _createSuper(SoundCloud);
|
|
4099
4077
|
|
|
4078
|
+
function SoundCloud() {
|
|
4100
4079
|
var _this;
|
|
4101
4080
|
|
|
4102
4081
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4105,7 +4084,7 @@ function (_Component) {
|
|
|
4105
4084
|
args[_key] = arguments[_key];
|
|
4106
4085
|
}
|
|
4107
4086
|
|
|
4108
|
-
_this =
|
|
4087
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4109
4088
|
|
|
4110
4089
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4111
4090
|
|
|
@@ -4226,7 +4205,7 @@ function (_Component) {
|
|
|
4226
4205
|
height: '100%',
|
|
4227
4206
|
display: display
|
|
4228
4207
|
};
|
|
4229
|
-
return _react["default"].createElement("iframe", {
|
|
4208
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4230
4209
|
ref: this.ref,
|
|
4231
4210
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4232
4211
|
style: style,
|
|
@@ -4288,12 +4267,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4288
4267
|
|
|
4289
4268
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4290
4269
|
|
|
4291
|
-
function
|
|
4270
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4292
4271
|
|
|
4293
|
-
function
|
|
4272
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4294
4273
|
|
|
4295
4274
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
4275
|
|
|
4276
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4277
|
+
|
|
4278
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
|
+
|
|
4297
4280
|
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); }
|
|
4298
4281
|
|
|
4299
4282
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4305,14 +4288,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4305
4288
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4306
4289
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4307
4290
|
|
|
4308
|
-
var Vimeo =
|
|
4309
|
-
/*#__PURE__*/
|
|
4310
|
-
function (_Component) {
|
|
4291
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4311
4292
|
_inherits(Vimeo, _Component);
|
|
4312
4293
|
|
|
4313
|
-
|
|
4314
|
-
var _getPrototypeOf2;
|
|
4294
|
+
var _super = _createSuper(Vimeo);
|
|
4315
4295
|
|
|
4296
|
+
function Vimeo() {
|
|
4316
4297
|
var _this;
|
|
4317
4298
|
|
|
4318
4299
|
_classCallCheck(this, Vimeo);
|
|
@@ -4321,7 +4302,7 @@ function (_Component) {
|
|
|
4321
4302
|
args[_key] = arguments[_key];
|
|
4322
4303
|
}
|
|
4323
4304
|
|
|
4324
|
-
_this =
|
|
4305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4325
4306
|
|
|
4326
4307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4327
4308
|
|
|
@@ -4478,7 +4459,7 @@ function (_Component) {
|
|
|
4478
4459
|
overflow: 'hidden',
|
|
4479
4460
|
display: display
|
|
4480
4461
|
};
|
|
4481
|
-
return _react["default"].createElement("div", {
|
|
4462
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4482
4463
|
key: this.props.url,
|
|
4483
4464
|
ref: this.ref,
|
|
4484
4465
|
style: style
|
|
@@ -4538,12 +4519,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4538
4519
|
|
|
4539
4520
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4540
4521
|
|
|
4541
|
-
function
|
|
4522
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4542
4523
|
|
|
4543
|
-
function
|
|
4524
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4544
4525
|
|
|
4545
4526
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
4527
|
|
|
4528
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4529
|
+
|
|
4530
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
|
+
|
|
4547
4532
|
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); }
|
|
4548
4533
|
|
|
4549
4534
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4556,14 +4541,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4556
4541
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4557
4542
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4558
4543
|
|
|
4559
|
-
var Facebook =
|
|
4560
|
-
/*#__PURE__*/
|
|
4561
|
-
function (_Component) {
|
|
4544
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4562
4545
|
_inherits(Facebook, _Component);
|
|
4563
4546
|
|
|
4564
|
-
|
|
4565
|
-
var _getPrototypeOf2;
|
|
4547
|
+
var _super = _createSuper(Facebook);
|
|
4566
4548
|
|
|
4549
|
+
function Facebook() {
|
|
4567
4550
|
var _this;
|
|
4568
4551
|
|
|
4569
4552
|
_classCallCheck(this, Facebook);
|
|
@@ -4572,7 +4555,7 @@ function (_Component) {
|
|
|
4572
4555
|
args[_key] = arguments[_key];
|
|
4573
4556
|
}
|
|
4574
4557
|
|
|
4575
|
-
_this =
|
|
4558
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4576
4559
|
|
|
4577
4560
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4578
4561
|
|
|
@@ -4688,7 +4671,7 @@ function (_Component) {
|
|
|
4688
4671
|
width: '100%',
|
|
4689
4672
|
height: '100%'
|
|
4690
4673
|
};
|
|
4691
|
-
return _react["default"].createElement("div", {
|
|
4674
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4692
4675
|
style: style,
|
|
4693
4676
|
id: this.playerID,
|
|
4694
4677
|
className: "fb-video",
|
|
@@ -4748,12 +4731,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4748
4731
|
|
|
4749
4732
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4750
4733
|
|
|
4751
|
-
function
|
|
4734
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4752
4735
|
|
|
4753
|
-
function
|
|
4736
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4754
4737
|
|
|
4755
4738
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
4739
|
|
|
4740
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4741
|
+
|
|
4742
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
|
+
|
|
4757
4744
|
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); }
|
|
4758
4745
|
|
|
4759
4746
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4764,14 +4751,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4764
4751
|
var SDK_GLOBAL = 'playerjs';
|
|
4765
4752
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4766
4753
|
|
|
4767
|
-
var Streamable =
|
|
4768
|
-
/*#__PURE__*/
|
|
4769
|
-
function (_Component) {
|
|
4754
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4770
4755
|
_inherits(Streamable, _Component);
|
|
4771
4756
|
|
|
4772
|
-
|
|
4773
|
-
var _getPrototypeOf2;
|
|
4757
|
+
var _super = _createSuper(Streamable);
|
|
4774
4758
|
|
|
4759
|
+
function Streamable() {
|
|
4775
4760
|
var _this;
|
|
4776
4761
|
|
|
4777
4762
|
_classCallCheck(this, Streamable);
|
|
@@ -4780,7 +4765,7 @@ function (_Component) {
|
|
|
4780
4765
|
args[_key] = arguments[_key];
|
|
4781
4766
|
}
|
|
4782
4767
|
|
|
4783
|
-
_this =
|
|
4768
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4784
4769
|
|
|
4785
4770
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4786
4771
|
|
|
@@ -4900,7 +4885,7 @@ function (_Component) {
|
|
|
4900
4885
|
width: '100%',
|
|
4901
4886
|
height: '100%'
|
|
4902
4887
|
};
|
|
4903
|
-
return _react["default"].createElement("iframe", {
|
|
4888
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4904
4889
|
ref: this.ref,
|
|
4905
4890
|
src: "https://streamable.com/o/".concat(id),
|
|
4906
4891
|
frameBorder: "0",
|
|
@@ -4961,12 +4946,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4961
4946
|
|
|
4962
4947
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4963
4948
|
|
|
4964
|
-
function
|
|
4949
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4965
4950
|
|
|
4966
|
-
function
|
|
4951
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4967
4952
|
|
|
4968
4953
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
4954
|
|
|
4955
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4956
|
+
|
|
4957
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
|
+
|
|
4970
4959
|
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); }
|
|
4971
4960
|
|
|
4972
4961
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4977,26 +4966,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4977
4966
|
var SDK_GLOBAL = 'Wistia';
|
|
4978
4967
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4979
4968
|
|
|
4980
|
-
var Wistia =
|
|
4981
|
-
/*#__PURE__*/
|
|
4982
|
-
function (_Component) {
|
|
4969
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4983
4970
|
_inherits(Wistia, _Component);
|
|
4984
4971
|
|
|
4985
|
-
|
|
4986
|
-
var _getPrototypeOf2;
|
|
4972
|
+
var _super = _createSuper(Wistia);
|
|
4987
4973
|
|
|
4974
|
+
function Wistia() {
|
|
4988
4975
|
var _this;
|
|
4989
4976
|
|
|
4990
4977
|
_classCallCheck(this, Wistia);
|
|
4991
4978
|
|
|
4992
|
-
for (var _len = arguments.length,
|
|
4993
|
-
|
|
4979
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4980
|
+
_args[_key] = arguments[_key];
|
|
4994
4981
|
}
|
|
4995
4982
|
|
|
4996
|
-
_this =
|
|
4983
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4997
4984
|
|
|
4998
4985
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4999
4986
|
|
|
4987
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4988
|
+
var _this$props;
|
|
4989
|
+
|
|
4990
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4991
|
+
});
|
|
4992
|
+
|
|
4993
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4994
|
+
var _this$props2;
|
|
4995
|
+
|
|
4996
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4997
|
+
});
|
|
4998
|
+
|
|
4999
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5000
|
+
var _this$props3;
|
|
5001
|
+
|
|
5002
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5003
|
+
});
|
|
5004
|
+
|
|
5005
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5006
|
+
var _this$props4;
|
|
5007
|
+
|
|
5008
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5009
|
+
});
|
|
5010
|
+
|
|
5000
5011
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5001
5012
|
_this.callPlayer('mute');
|
|
5002
5013
|
});
|
|
@@ -5018,17 +5029,13 @@ function (_Component) {
|
|
|
5018
5029
|
value: function load(url) {
|
|
5019
5030
|
var _this2 = this;
|
|
5020
5031
|
|
|
5021
|
-
var _this$
|
|
5022
|
-
playing = _this$
|
|
5023
|
-
muted = _this$
|
|
5024
|
-
controls = _this$
|
|
5025
|
-
_onReady = _this$
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
onSeek = _this$props.onSeek,
|
|
5029
|
-
onEnded = _this$props.onEnded,
|
|
5030
|
-
config = _this$props.config,
|
|
5031
|
-
onError = _this$props.onError;
|
|
5032
|
+
var _this$props5 = this.props,
|
|
5033
|
+
playing = _this$props5.playing,
|
|
5034
|
+
muted = _this$props5.muted,
|
|
5035
|
+
controls = _this$props5.controls,
|
|
5036
|
+
_onReady = _this$props5.onReady,
|
|
5037
|
+
config = _this$props5.config,
|
|
5038
|
+
onError = _this$props5.onError;
|
|
5032
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5033
5040
|
window._wq = window._wq || [];
|
|
5034
5041
|
|
|
@@ -5045,19 +5052,28 @@ function (_Component) {
|
|
|
5045
5052
|
|
|
5046
5053
|
_this2.unbind();
|
|
5047
5054
|
|
|
5048
|
-
_this2.player.bind('play', onPlay);
|
|
5055
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5049
5056
|
|
|
5050
|
-
_this2.player.bind('pause', onPause);
|
|
5057
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5051
5058
|
|
|
5052
|
-
_this2.player.bind('seek', onSeek);
|
|
5059
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5053
5060
|
|
|
5054
|
-
_this2.player.bind('end', onEnded);
|
|
5061
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5055
5062
|
|
|
5056
5063
|
_onReady();
|
|
5057
5064
|
}
|
|
5058
5065
|
});
|
|
5059
5066
|
}, onError);
|
|
5060
5067
|
}
|
|
5068
|
+
}, {
|
|
5069
|
+
key: "unbind",
|
|
5070
|
+
value: function unbind() {
|
|
5071
|
+
this.player.unbind('play', this.onPlay);
|
|
5072
|
+
this.player.unbind('pause', this.onPause);
|
|
5073
|
+
this.player.unbind('seek', this.onSeek);
|
|
5074
|
+
this.player.unbind('end', this.onEnded);
|
|
5075
|
+
} // Proxy methods to prevent listener leaks
|
|
5076
|
+
|
|
5061
5077
|
}, {
|
|
5062
5078
|
key: "play",
|
|
5063
5079
|
value: function play() {
|
|
@@ -5068,19 +5084,6 @@ function (_Component) {
|
|
|
5068
5084
|
value: function pause() {
|
|
5069
5085
|
this.callPlayer('pause');
|
|
5070
5086
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
var _this$props2 = this.props,
|
|
5075
|
-
onPlay = _this$props2.onPlay,
|
|
5076
|
-
onPause = _this$props2.onPause,
|
|
5077
|
-
onSeek = _this$props2.onSeek,
|
|
5078
|
-
onEnded = _this$props2.onEnded;
|
|
5079
|
-
this.player.unbind('play', onPlay);
|
|
5080
|
-
this.player.unbind('pause', onPause);
|
|
5081
|
-
this.player.unbind('seek', onSeek);
|
|
5082
|
-
this.player.unbind('end', onEnded);
|
|
5083
|
-
}
|
|
5084
5087
|
}, {
|
|
5085
5088
|
key: "stop",
|
|
5086
5089
|
value: function stop() {
|
|
@@ -5126,7 +5129,7 @@ function (_Component) {
|
|
|
5126
5129
|
width: '100%',
|
|
5127
5130
|
height: '100%'
|
|
5128
5131
|
};
|
|
5129
|
-
return _react["default"].createElement("div", {
|
|
5132
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5130
5133
|
key: id,
|
|
5131
5134
|
className: className,
|
|
5132
5135
|
style: style
|
|
@@ -5186,12 +5189,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5186
5189
|
|
|
5187
5190
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5188
5191
|
|
|
5189
|
-
function
|
|
5192
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5190
5193
|
|
|
5191
|
-
function
|
|
5194
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5192
5195
|
|
|
5193
5196
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
5197
|
|
|
5198
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5199
|
+
|
|
5200
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
|
+
|
|
5195
5202
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5196
5203
|
|
|
5197
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5204,14 +5211,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5204
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5205
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5206
5213
|
|
|
5207
|
-
var Twitch =
|
|
5208
|
-
/*#__PURE__*/
|
|
5209
|
-
function (_Component) {
|
|
5214
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5210
5215
|
_inherits(Twitch, _Component);
|
|
5211
5216
|
|
|
5212
|
-
|
|
5213
|
-
var _getPrototypeOf2;
|
|
5217
|
+
var _super = _createSuper(Twitch);
|
|
5214
5218
|
|
|
5219
|
+
function Twitch() {
|
|
5215
5220
|
var _this;
|
|
5216
5221
|
|
|
5217
5222
|
_classCallCheck(this, Twitch);
|
|
@@ -5220,7 +5225,7 @@ function (_Component) {
|
|
|
5220
5225
|
args[_key] = arguments[_key];
|
|
5221
5226
|
}
|
|
5222
5227
|
|
|
5223
|
-
_this =
|
|
5228
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5224
5229
|
|
|
5225
5230
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5226
5231
|
|
|
@@ -5341,7 +5346,7 @@ function (_Component) {
|
|
|
5341
5346
|
width: '100%',
|
|
5342
5347
|
height: '100%'
|
|
5343
5348
|
};
|
|
5344
|
-
return _react["default"].createElement("div", {
|
|
5349
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5345
5350
|
style: style,
|
|
5346
5351
|
id: this.playerID
|
|
5347
5352
|
});
|
|
@@ -5394,11 +5399,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5394
5399
|
|
|
5395
5400
|
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; }
|
|
5396
5401
|
|
|
5397
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5402
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5403
|
+
|
|
5404
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5398
5405
|
|
|
5399
|
-
function
|
|
5406
|
+
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); }
|
|
5400
5407
|
|
|
5401
|
-
function
|
|
5408
|
+
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; }
|
|
5409
|
+
|
|
5410
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5402
5411
|
|
|
5403
5412
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5404
5413
|
|
|
@@ -5408,12 +5417,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5408
5417
|
|
|
5409
5418
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5410
5419
|
|
|
5411
|
-
function
|
|
5420
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5412
5421
|
|
|
5413
|
-
function
|
|
5422
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5414
5423
|
|
|
5415
5424
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
5425
|
|
|
5426
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5427
|
+
|
|
5428
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
|
+
|
|
5417
5430
|
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); }
|
|
5418
5431
|
|
|
5419
5432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5425,14 +5438,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5425
5438
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5426
5439
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5427
5440
|
|
|
5428
|
-
var DailyMotion =
|
|
5429
|
-
/*#__PURE__*/
|
|
5430
|
-
function (_Component) {
|
|
5441
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5431
5442
|
_inherits(DailyMotion, _Component);
|
|
5432
5443
|
|
|
5433
|
-
|
|
5434
|
-
var _getPrototypeOf2;
|
|
5444
|
+
var _super = _createSuper(DailyMotion);
|
|
5435
5445
|
|
|
5446
|
+
function DailyMotion() {
|
|
5436
5447
|
var _this;
|
|
5437
5448
|
|
|
5438
5449
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5441,7 +5452,7 @@ function (_Component) {
|
|
|
5441
5452
|
args[_key] = arguments[_key];
|
|
5442
5453
|
}
|
|
5443
5454
|
|
|
5444
|
-
_this =
|
|
5455
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5445
5456
|
|
|
5446
5457
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5447
5458
|
|
|
@@ -5570,9 +5581,9 @@ function (_Component) {
|
|
|
5570
5581
|
height: '100%',
|
|
5571
5582
|
display: display
|
|
5572
5583
|
};
|
|
5573
|
-
return _react["default"].createElement("div", {
|
|
5584
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5585
|
style: style
|
|
5575
|
-
}, _react["default"].createElement("div", {
|
|
5586
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5576
5587
|
ref: this.ref
|
|
5577
5588
|
}));
|
|
5578
5589
|
}
|
|
@@ -5630,12 +5641,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5630
5641
|
|
|
5631
5642
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5632
5643
|
|
|
5633
|
-
function
|
|
5644
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5634
5645
|
|
|
5635
|
-
function
|
|
5646
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5636
5647
|
|
|
5637
5648
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
5649
|
|
|
5650
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5651
|
+
|
|
5652
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
|
+
|
|
5639
5654
|
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); }
|
|
5640
5655
|
|
|
5641
5656
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5646,14 +5661,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5646
5661
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5647
5662
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5648
5663
|
|
|
5649
|
-
var Mixcloud =
|
|
5650
|
-
/*#__PURE__*/
|
|
5651
|
-
function (_Component) {
|
|
5664
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5652
5665
|
_inherits(Mixcloud, _Component);
|
|
5653
5666
|
|
|
5654
|
-
|
|
5655
|
-
var _getPrototypeOf2;
|
|
5667
|
+
var _super = _createSuper(Mixcloud);
|
|
5656
5668
|
|
|
5669
|
+
function Mixcloud() {
|
|
5657
5670
|
var _this;
|
|
5658
5671
|
|
|
5659
5672
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5662,7 +5675,7 @@ function (_Component) {
|
|
|
5662
5675
|
args[_key] = arguments[_key];
|
|
5663
5676
|
}
|
|
5664
5677
|
|
|
5665
|
-
_this =
|
|
5678
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5666
5679
|
|
|
5667
5680
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5668
5681
|
|
|
@@ -5765,7 +5778,7 @@ function (_Component) {
|
|
|
5765
5778
|
})); // We have to give the iframe a key here to prevent a
|
|
5766
5779
|
// weird dialog appearing when loading a new track
|
|
5767
5780
|
|
|
5768
|
-
return _react["default"].createElement("iframe", {
|
|
5781
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5769
5782
|
key: id,
|
|
5770
5783
|
ref: this.ref,
|
|
5771
5784
|
style: style,
|
|
@@ -5825,23 +5838,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5825
5838
|
|
|
5826
5839
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5827
5840
|
|
|
5828
|
-
function
|
|
5841
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5829
5842
|
|
|
5830
|
-
function
|
|
5843
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5831
5844
|
|
|
5832
5845
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
5846
|
|
|
5847
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5848
|
+
|
|
5849
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
|
+
|
|
5834
5851
|
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); }
|
|
5835
5852
|
|
|
5836
5853
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5837
5854
|
|
|
5838
5855
|
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; }
|
|
5839
5856
|
|
|
5857
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5858
|
+
|
|
5859
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5860
|
+
|
|
5861
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5862
|
+
|
|
5840
5863
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5841
5864
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5842
5865
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5843
5866
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5844
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5867
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5845
5868
|
var HLS_GLOBAL = 'Hls';
|
|
5846
5869
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5847
5870
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5850,12 +5873,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5850
5873
|
|
|
5851
5874
|
function canPlay(url) {
|
|
5852
5875
|
if (url instanceof Array) {
|
|
5853
|
-
var
|
|
5854
|
-
|
|
5855
|
-
var _iteratorError = undefined;
|
|
5876
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5877
|
+
_step;
|
|
5856
5878
|
|
|
5857
5879
|
try {
|
|
5858
|
-
for (
|
|
5880
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5859
5881
|
var item = _step.value;
|
|
5860
5882
|
|
|
5861
5883
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5867,18 +5889,9 @@ function canPlay(url) {
|
|
|
5867
5889
|
}
|
|
5868
5890
|
}
|
|
5869
5891
|
} catch (err) {
|
|
5870
|
-
|
|
5871
|
-
_iteratorError = err;
|
|
5892
|
+
_iterator.e(err);
|
|
5872
5893
|
} finally {
|
|
5873
|
-
|
|
5874
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
-
_iterator["return"]();
|
|
5876
|
-
}
|
|
5877
|
-
} finally {
|
|
5878
|
-
if (_didIteratorError) {
|
|
5879
|
-
throw _iteratorError;
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5894
|
+
_iterator.f();
|
|
5882
5895
|
}
|
|
5883
5896
|
|
|
5884
5897
|
return false;
|
|
@@ -5902,14 +5915,12 @@ function canEnablePIP(url) {
|
|
|
5902
5915
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5903
5916
|
}
|
|
5904
5917
|
|
|
5905
|
-
var FilePlayer =
|
|
5906
|
-
/*#__PURE__*/
|
|
5907
|
-
function (_Component) {
|
|
5918
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5908
5919
|
_inherits(FilePlayer, _Component);
|
|
5909
5920
|
|
|
5910
|
-
|
|
5911
|
-
var _getPrototypeOf2;
|
|
5921
|
+
var _super = _createSuper(FilePlayer);
|
|
5912
5922
|
|
|
5923
|
+
function FilePlayer() {
|
|
5913
5924
|
var _this;
|
|
5914
5925
|
|
|
5915
5926
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5918,7 +5929,7 @@ function (_Component) {
|
|
|
5918
5929
|
_args[_key] = arguments[_key];
|
|
5919
5930
|
}
|
|
5920
5931
|
|
|
5921
|
-
_this =
|
|
5932
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5922
5933
|
|
|
5923
5934
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5924
5935
|
var _this$props;
|
|
@@ -6005,19 +6016,19 @@ function (_Component) {
|
|
|
6005
6016
|
|
|
6006
6017
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6007
6018
|
if (typeof source === 'string') {
|
|
6008
|
-
return _react["default"].createElement("source", {
|
|
6019
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6009
6020
|
key: index,
|
|
6010
6021
|
src: source
|
|
6011
6022
|
});
|
|
6012
6023
|
}
|
|
6013
6024
|
|
|
6014
|
-
return _react["default"].createElement("source", _extends({
|
|
6025
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6015
6026
|
key: index
|
|
6016
6027
|
}, source));
|
|
6017
6028
|
});
|
|
6018
6029
|
|
|
6019
6030
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6020
|
-
return _react["default"].createElement("track", _extends({
|
|
6031
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6021
6032
|
key: index
|
|
6022
6033
|
}, track));
|
|
6023
6034
|
});
|
|
@@ -6055,6 +6066,10 @@ function (_Component) {
|
|
|
6055
6066
|
key: "componentWillUnmount",
|
|
6056
6067
|
value: function componentWillUnmount() {
|
|
6057
6068
|
this.removeListeners(this.player);
|
|
6069
|
+
|
|
6070
|
+
if (this.hls) {
|
|
6071
|
+
this.hls.destroy();
|
|
6072
|
+
}
|
|
6058
6073
|
}
|
|
6059
6074
|
}, {
|
|
6060
6075
|
key: "addListeners",
|
|
@@ -6185,10 +6200,6 @@ function (_Component) {
|
|
|
6185
6200
|
value: function stop() {
|
|
6186
6201
|
this.player.removeAttribute('src');
|
|
6187
6202
|
|
|
6188
|
-
if (this.hls) {
|
|
6189
|
-
this.hls.destroy();
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
6203
|
if (this.dash) {
|
|
6193
6204
|
this.dash.reset();
|
|
6194
6205
|
}
|
|
@@ -6300,7 +6311,7 @@ function (_Component) {
|
|
|
6300
6311
|
width: width === 'auto' ? width : '100%',
|
|
6301
6312
|
height: height === 'auto' ? height : '100%'
|
|
6302
6313
|
};
|
|
6303
|
-
return _react["default"].createElement(Element, _extends({
|
|
6314
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6304
6315
|
ref: this.ref,
|
|
6305
6316
|
src: this.getSource(url),
|
|
6306
6317
|
style: style,
|
|
@@ -6390,12 +6401,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6390
6401
|
|
|
6391
6402
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6392
6403
|
|
|
6393
|
-
function
|
|
6404
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6394
6405
|
|
|
6395
|
-
function
|
|
6406
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6396
6407
|
|
|
6397
6408
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
6409
|
|
|
6410
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6411
|
+
|
|
6412
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
|
+
|
|
6399
6414
|
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); }
|
|
6400
6415
|
|
|
6401
6416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6404,14 +6419,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6404
6419
|
|
|
6405
6420
|
var ICON_SIZE = '64px';
|
|
6406
6421
|
|
|
6407
|
-
var Preview =
|
|
6408
|
-
/*#__PURE__*/
|
|
6409
|
-
function (_Component) {
|
|
6422
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6410
6423
|
_inherits(Preview, _Component);
|
|
6411
6424
|
|
|
6412
|
-
|
|
6413
|
-
var _getPrototypeOf2;
|
|
6425
|
+
var _super = _createSuper(Preview);
|
|
6414
6426
|
|
|
6427
|
+
function Preview() {
|
|
6415
6428
|
var _this;
|
|
6416
6429
|
|
|
6417
6430
|
_classCallCheck(this, Preview);
|
|
@@ -6420,7 +6433,7 @@ function (_Component) {
|
|
|
6420
6433
|
args[_key] = arguments[_key];
|
|
6421
6434
|
}
|
|
6422
6435
|
|
|
6423
|
-
_this =
|
|
6436
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6424
6437
|
|
|
6425
6438
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6426
6439
|
|
|
@@ -6518,15 +6531,15 @@ function (_Component) {
|
|
|
6518
6531
|
}
|
|
6519
6532
|
};
|
|
6520
6533
|
|
|
6521
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6534
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6535
|
style: styles.shadow,
|
|
6523
6536
|
className: "react-player__shadow"
|
|
6524
|
-
}, _react["default"].createElement("div", {
|
|
6537
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6538
|
style: styles.playIcon,
|
|
6526
6539
|
className: "react-player__play-icon"
|
|
6527
6540
|
}));
|
|
6528
6541
|
|
|
6529
|
-
return _react["default"].createElement("div", {
|
|
6542
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6530
6543
|
style: styles.preview,
|
|
6531
6544
|
className: "react-player__preview",
|
|
6532
6545
|
onClick: onClick
|
|
@@ -6563,6 +6576,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6563
6576
|
|
|
6564
6577
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6565
6578
|
|
|
6579
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6580
|
+
|
|
6581
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6582
|
+
|
|
6583
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6584
|
+
|
|
6566
6585
|
var PRELOAD_PLAYERS = [{
|
|
6567
6586
|
Player: YouTube_1.YouTube,
|
|
6568
6587
|
configKey: 'youtube',
|
|
@@ -6583,16 +6602,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6583
6602
|
|
|
6584
6603
|
function renderPreloadPlayers(url, controls, config) {
|
|
6585
6604
|
var players = [];
|
|
6586
|
-
|
|
6587
|
-
var
|
|
6588
|
-
|
|
6605
|
+
|
|
6606
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6607
|
+
_step;
|
|
6589
6608
|
|
|
6590
6609
|
try {
|
|
6591
|
-
for (
|
|
6610
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6592
6611
|
var player = _step.value;
|
|
6593
6612
|
|
|
6594
6613
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6595
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6614
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6596
6615
|
key: player.Player.displayName,
|
|
6597
6616
|
activePlayer: player.Player,
|
|
6598
6617
|
url: player.url,
|
|
@@ -6604,18 +6623,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6604
6623
|
}
|
|
6605
6624
|
}
|
|
6606
6625
|
} catch (err) {
|
|
6607
|
-
|
|
6608
|
-
_iteratorError = err;
|
|
6626
|
+
_iterator.e(err);
|
|
6609
6627
|
} finally {
|
|
6610
|
-
|
|
6611
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
-
_iterator["return"]();
|
|
6613
|
-
}
|
|
6614
|
-
} finally {
|
|
6615
|
-
if (_didIteratorError) {
|
|
6616
|
-
throw _iteratorError;
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6628
|
+
_iterator.f();
|
|
6619
6629
|
}
|
|
6620
6630
|
|
|
6621
6631
|
return players;
|
|
@@ -6739,13 +6749,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6739
6749
|
|
|
6740
6750
|
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); }
|
|
6741
6751
|
|
|
6742
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6752
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6753
|
+
|
|
6754
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6755
|
+
|
|
6756
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6743
6757
|
|
|
6744
|
-
function
|
|
6758
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6745
6759
|
|
|
6746
|
-
function
|
|
6760
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6747
6761
|
|
|
6748
|
-
function
|
|
6762
|
+
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; }
|
|
6749
6763
|
|
|
6750
6764
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
6765
|
|
|
@@ -6753,12 +6767,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
6767
|
|
|
6754
6768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
6769
|
|
|
6756
|
-
function
|
|
6770
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6757
6771
|
|
|
6758
|
-
function
|
|
6772
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
6773
|
|
|
6760
6774
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
6775
|
|
|
6776
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6777
|
+
|
|
6778
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
|
+
|
|
6762
6780
|
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); }
|
|
6763
6781
|
|
|
6764
6782
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6768,14 +6786,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6768
6786
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6769
6787
|
var customPlayers = [];
|
|
6770
6788
|
|
|
6771
|
-
var ReactPlayer =
|
|
6772
|
-
/*#__PURE__*/
|
|
6773
|
-
function (_Component) {
|
|
6789
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6774
6790
|
_inherits(ReactPlayer, _Component);
|
|
6775
6791
|
|
|
6776
|
-
|
|
6777
|
-
var _getPrototypeOf2;
|
|
6792
|
+
var _super = _createSuper(ReactPlayer);
|
|
6778
6793
|
|
|
6794
|
+
function ReactPlayer() {
|
|
6779
6795
|
var _this;
|
|
6780
6796
|
|
|
6781
6797
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6784,7 +6800,7 @@ function (_Component) {
|
|
|
6784
6800
|
args[_key] = arguments[_key];
|
|
6785
6801
|
}
|
|
6786
6802
|
|
|
6787
|
-
_this =
|
|
6803
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6788
6804
|
|
|
6789
6805
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6790
6806
|
|
|
@@ -6895,7 +6911,7 @@ function (_Component) {
|
|
|
6895
6911
|
key: "renderActivePlayer",
|
|
6896
6912
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6897
6913
|
if (!url) return null;
|
|
6898
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6914
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6899
6915
|
key: activePlayer.displayName,
|
|
6900
6916
|
ref: this.activePlayerRef,
|
|
6901
6917
|
config: this.config,
|
|
@@ -6932,14 +6948,14 @@ function (_Component) {
|
|
|
6932
6948
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6933
6949
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6934
6950
|
|
|
6935
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6951
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6936
6952
|
url: url,
|
|
6937
6953
|
light: light,
|
|
6938
6954
|
playIcon: playIcon,
|
|
6939
6955
|
onClick: this.handleClickPreview
|
|
6940
6956
|
});
|
|
6941
6957
|
|
|
6942
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6958
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6943
6959
|
ref: this.wrapperRef,
|
|
6944
6960
|
style: _objectSpread({}, style, {
|
|
6945
6961
|
width: width,
|
|
@@ -7261,8 +7277,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7261
7277
|
var duration = player.getDuration();
|
|
7262
7278
|
var queue = Math.floor(duration / 10);
|
|
7263
7279
|
var segment = Math.floor(current / queue);
|
|
7264
|
-
Beam.report_beam_video('Ready',
|
|
7265
|
-
Segment.report_video_event('Video Ready',
|
|
7280
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7281
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7266
7282
|
//autoplay
|
|
7267
7283
|
|
|
7268
7284
|
//Small pause before starting next video
|
|
@@ -7282,8 +7298,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7282
7298
|
var queue = Math.floor(duration / 10);
|
|
7283
7299
|
var segment = Math.floor(current / queue);
|
|
7284
7300
|
|
|
7285
|
-
Beam.report_beam_video('End',
|
|
7286
|
-
Segment.report_video_event('Video End',
|
|
7301
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7302
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7287
7303
|
setEndReported(true);
|
|
7288
7304
|
clearInterval(intervalID);
|
|
7289
7305
|
}
|
|
@@ -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
|
if (!queueProgress.includes(segment)) {
|
|
7336
|
-
Beam.report_beam_video('Segment',
|
|
7337
|
-
Segment.report_video_event('Video Segment',
|
|
7352
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7338
7354
|
queueProgress.push(segment);
|
|
7339
7355
|
}
|
|
7340
7356
|
};
|
|
@@ -7347,8 +7363,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7363
|
var queue = Math.floor(duration / 10);
|
|
7348
7364
|
var segment = Math.floor(current / queue);
|
|
7349
7365
|
|
|
7350
|
-
Beam.report_beam_video('Play',
|
|
7351
|
-
Segment.report_video_event('Video Play',
|
|
7366
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7367
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7352
7368
|
|
|
7353
7369
|
if (!playReported) {
|
|
7354
7370
|
setPlayReported(true);
|
|
@@ -7366,8 +7382,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7382
|
var queue = Math.floor(duration / 10);
|
|
7367
7383
|
var segment = Math.floor(current / queue);
|
|
7368
7384
|
|
|
7369
|
-
Beam.report_beam_video('Pause',
|
|
7370
|
-
Segment.report_video_event('Video Pause',
|
|
7385
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7386
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7371
7387
|
};
|
|
7372
7388
|
|
|
7373
7389
|
// Youtube Options
|
|
@@ -7485,7 +7501,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7485
7501
|
React__default.createElement(
|
|
7486
7502
|
'div',
|
|
7487
7503
|
{ className: 'vid-text' },
|
|
7488
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7504
|
+
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()))
|
|
7489
7505
|
),
|
|
7490
7506
|
React__default.createElement(
|
|
7491
7507
|
'style',
|
|
@@ -7803,7 +7819,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7803
7819
|
);
|
|
7804
7820
|
};
|
|
7805
7821
|
|
|
7806
|
-
var numberOfPaginations =
|
|
7822
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7807
7823
|
|
|
7808
7824
|
var Quiz = function Quiz(_ref) {
|
|
7809
7825
|
var quizzes = _ref.quizzes,
|
|
@@ -7923,7 +7939,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7923
7939
|
var renderPagination = function renderPagination() {
|
|
7924
7940
|
return React__default.createElement(
|
|
7925
7941
|
Pagination$1,
|
|
7926
|
-
{ className: 'p-0 m-0', size:
|
|
7942
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7927
7943
|
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7928
7944
|
return changePage('first');
|
|
7929
7945
|
}, disabled: currentPage === 1 }),
|
|
@@ -8243,7 +8259,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8243
8259
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8244
8260
|
React__default.createElement(
|
|
8245
8261
|
'a',
|
|
8246
|
-
_extends
|
|
8262
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8247
8263
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8248
8264
|
React__default.createElement(
|
|
8249
8265
|
'div',
|
|
@@ -8538,7 +8554,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8538
8554
|
|
|
8539
8555
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8540
8556
|
if (biography) {
|
|
8541
|
-
return React__default.createElement(BlockContent, _extends
|
|
8557
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8542
8558
|
}
|
|
8543
8559
|
};
|
|
8544
8560
|
|
|
@@ -8624,7 +8640,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8624
8640
|
//console.log('useLayoutEffect')
|
|
8625
8641
|
if (!firstLoad) {
|
|
8626
8642
|
setUpArrowClicked(false);
|
|
8627
|
-
if (
|
|
8643
|
+
if (main_43) {
|
|
8628
8644
|
grabLoadedAds();
|
|
8629
8645
|
} else {
|
|
8630
8646
|
scrollToArticle();
|
|
@@ -8648,7 +8664,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8648
8664
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8649
8665
|
if (pageview) pageview(path);
|
|
8650
8666
|
|
|
8651
|
-
if (!
|
|
8667
|
+
if (!main_43) {
|
|
8652
8668
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8653
8669
|
if (window.googletag && googletag.pubadsReady) {
|
|
8654
8670
|
lib_3.refresh();
|
|
@@ -8656,7 +8672,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8672
|
});
|
|
8657
8673
|
}
|
|
8658
8674
|
//Refresh leaderboard ad on mobile
|
|
8659
|
-
if (
|
|
8675
|
+
if (main_43) {
|
|
8660
8676
|
var leaderboardSlotId = '';
|
|
8661
8677
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8662
8678
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8725,7 +8741,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8725
8741
|
React__default.createElement(
|
|
8726
8742
|
'div',
|
|
8727
8743
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8728
|
-
|
|
8744
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8729
8745
|
if (index === 0) {
|
|
8730
8746
|
return React__default.createElement(
|
|
8731
8747
|
'div',
|
|
@@ -8816,7 +8832,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8816
8832
|
React__default.createElement(
|
|
8817
8833
|
'div',
|
|
8818
8834
|
{ className: 'mt-2 mb-2' },
|
|
8819
|
-
React__default.createElement(BlockContent, _extends
|
|
8835
|
+
React__default.createElement(BlockContent, _extends({
|
|
8820
8836
|
serializers: getSerializers,
|
|
8821
8837
|
videoAccountIDs: accountIDs,
|
|
8822
8838
|
blocks: article.text,
|
|
@@ -8847,7 +8863,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8847
8863
|
React__default.createElement(
|
|
8848
8864
|
'div',
|
|
8849
8865
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8850
|
-
|
|
8866
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8851
8867
|
if (innerIndex === 0) {
|
|
8852
8868
|
return React__default.createElement(
|
|
8853
8869
|
'div',
|
|
@@ -8934,7 +8950,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8934
8950
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8935
8951
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8936
8952
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8937
|
-
React__default.createElement('img', _extends
|
|
8953
|
+
React__default.createElement('img', _extends({
|
|
8938
8954
|
style: figureImageStyle,
|
|
8939
8955
|
className: 'figure-image',
|
|
8940
8956
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9110,7 +9126,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9110
9126
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9111
9127
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9112
9128
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9113
|
-
React__default.createElement('img', _extends
|
|
9129
|
+
React__default.createElement('img', _extends({
|
|
9114
9130
|
'images-count': imagesCount,
|
|
9115
9131
|
className: 'multi-figure-image',
|
|
9116
9132
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9175,7 +9191,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9175
9191
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9176
9192
|
image.link ? React__default.createElement(
|
|
9177
9193
|
'a',
|
|
9178
|
-
_extends
|
|
9194
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9179
9195
|
React__default.createElement(
|
|
9180
9196
|
'div',
|
|
9181
9197
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9258,7 +9274,7 @@ exports.__esModule = true;
|
|
|
9258
9274
|
|
|
9259
9275
|
|
|
9260
9276
|
|
|
9261
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9277
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9262
9278
|
|
|
9263
9279
|
|
|
9264
9280
|
|
|
@@ -9571,7 +9587,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9571
9587
|
return React__default.createElement(
|
|
9572
9588
|
'div',
|
|
9573
9589
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9574
|
-
React__default.createElement(BlockContent, _extends
|
|
9590
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9575
9591
|
);
|
|
9576
9592
|
})
|
|
9577
9593
|
);
|