@mjhls/mjh-framework 1.0.883 → 1.0.884-beta.1
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 +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +10 -10
- package/dist/cjs/ADFooter.js +3 -3
- package/dist/cjs/ADGutter.js +10 -10
- package/dist/cjs/{ADInfeed-4f661172.js → ADInfeed-2e48af77.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +10 -10
- package/dist/cjs/ADSponsoredResources.js +10 -10
- package/dist/cjs/ADWebcast.js +10 -10
- package/dist/cjs/ADWelcome.js +10 -10
- package/dist/cjs/{ADlgInfeed-6242e5b5.js → ADlgInfeed-c39c7131.js} +1 -1
- package/dist/cjs/AccordionPanel.js +4 -4
- package/dist/cjs/AdSlot.js +10 -10
- package/dist/cjs/AdSlotsProvider.js +903 -10
- package/dist/cjs/AlgoliaSearch.js +264 -391
- package/dist/cjs/AlphabeticList.js +6 -6
- package/dist/cjs/ArticleCarousel.js +6 -6
- package/dist/cjs/ArticleProgramLandingPage.js +28 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +16 -16
- package/dist/cjs/Auth.js +1297 -469
- package/dist/cjs/AuthWrapper.js +390 -1697
- package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
- package/dist/cjs/Beam.js +5 -5
- package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +3 -3
- package/dist/cjs/CMEDeck.js +12 -12
- package/dist/cjs/Column2.js +6 -6
- package/dist/cjs/Column3.js +14 -14
- package/dist/cjs/ConferenceArticleCard.js +20 -20
- package/dist/cjs/ContentCardPaginated.js +409 -0
- package/dist/cjs/DeckContent.js +30 -30
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/DeckQueuePaginated.js +340 -0
- package/dist/cjs/{Dfp-ab12cd55.js → Dfp-f492f985.js} +8 -8
- package/dist/cjs/EventsDeck.js +31 -31
- package/dist/cjs/ExternalResources.js +25 -25
- package/dist/cjs/Feature.js +6 -6
- package/dist/cjs/ForbesHero.js +6 -6
- package/dist/cjs/GridContent.js +30 -142
- package/dist/cjs/GridContentPaginated.js +699 -0
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +6 -6
- package/dist/cjs/HamMagazine.js +23 -23
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +24 -24
- package/dist/cjs/HorizontalHero.js +6 -6
- package/dist/cjs/ImageSlider-38f25e66.js +3989 -0
- package/dist/cjs/IssueContentDeck.js +6 -6
- package/dist/cjs/IssueDeck.js +8 -8
- package/dist/cjs/IssueLanding.js +58 -58
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +10 -10
- package/dist/cjs/MasterDeck.js +30 -30
- package/dist/cjs/MasterDeckPaginated.js +444 -0
- package/dist/cjs/MediaSeriesCard-8d27612b.js +9411 -0
- package/dist/cjs/MediaSeriesLanding.js +57 -9538
- package/dist/cjs/MediaSeriesLandingPaginated.js +522 -0
- package/dist/cjs/NavDvm.js +5 -5
- package/dist/cjs/NavMagazine.js +22 -22
- package/dist/cjs/NavNative.js +19 -19
- package/dist/cjs/OncliveHero.js +6 -5
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +3 -3
- package/dist/cjs/Pagination-2f76381b.js +51 -0
- package/dist/cjs/PartnerDetailListing.js +41 -2939
- package/dist/cjs/PartnerDetailListingPaginated.js +312 -0
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +3 -3
- package/dist/cjs/PubSection.js +19 -19
- package/dist/cjs/PubToc.js +5 -5
- package/dist/cjs/PublicationDeck.js +5 -5
- package/dist/cjs/PublicationFeature-28c549f2.js +126 -0
- package/dist/cjs/PublicationLanding.js +34 -34
- package/dist/cjs/QueueDeckExpanded.js +21 -21
- package/dist/cjs/QueueDeckExpandedPaginated.js +1378 -0
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +33 -33
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +3 -3
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +10 -10
- package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
- package/dist/cjs/SideFooter.js +8 -8
- package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +6 -6
- package/dist/cjs/TaxonomyDescription.js +24 -24
- package/dist/cjs/TemplateNormal.js +16 -16
- package/dist/cjs/ThumbnailCard.js +5 -5
- package/dist/cjs/Ustream.js +10 -10
- package/dist/cjs/VerticalHero.js +5 -5
- package/dist/cjs/VideoProgramLandingPage.js +27 -27
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +16 -16
- package/dist/cjs/View.js +63 -63
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +14 -14
- package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
- package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
- package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
- package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
- package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
- package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
- package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
- package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-fb0c6568.js → entities-310b46ee.js} +0 -4
- package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/getRelatedArticle.js +4 -4
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +24 -24
- package/dist/cjs/getSeriesDetail.js +3 -0
- package/dist/cjs/{getTargeting-41f2f52d.js → getTargeting-8874437b.js} +11 -11
- package/dist/cjs/getTargeting.js +5 -5
- package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
- package/dist/cjs/{index-27377172.js → index-54adcbc3.js} +498 -514
- package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
- package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
- package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
- package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +43 -43
- package/dist/cjs/{inherits-337c73a7.js → inherits-12d44cca.js} +8 -8
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
- package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
- package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
- package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
- package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +11 -11
- package/dist/esm/AD300x250x600.js +11 -11
- package/dist/esm/AD728x90.js +12 -12
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +3 -3
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-7db96917.js → ADInfeed-d767ebe2.js} +3 -3
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +10 -10
- package/dist/esm/{ADlgInfeed-a3931e68.js → ADlgInfeed-cee95aa2.js} +1 -1
- package/dist/esm/AccordionPanel.js +4 -4
- package/dist/esm/AdSlot.js +10 -10
- package/dist/esm/AdSlotsProvider.js +905 -13
- package/dist/esm/AlgoliaSearch.js +32 -159
- package/dist/esm/AlphabeticList.js +6 -6
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +25 -25
- package/dist/esm/ArticleSeriesLandingPage.js +22 -22
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +1297 -469
- package/dist/esm/AuthWrapper.js +385 -1692
- package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +5 -5
- package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/Breadcrumbs.js +3 -3
- package/dist/esm/CMEDeck.js +12 -12
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/ContentCardPaginated.js +403 -0
- package/dist/esm/DeckContent.js +45 -45
- package/dist/esm/DeckQueue.js +37 -37
- package/dist/esm/DeckQueuePaginated.js +334 -0
- package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
- package/dist/esm/EventsDeck.js +57 -57
- package/dist/esm/ExternalResources.js +27 -27
- package/dist/esm/Feature.js +6 -6
- package/dist/esm/ForbesHero.js +6 -6
- package/dist/esm/GridContent.js +64 -176
- package/dist/esm/GridContentPaginated.js +693 -0
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +6 -6
- package/dist/esm/HamMagazine.js +26 -26
- package/dist/esm/Hero.js +5 -5
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +24 -24
- package/dist/esm/HorizontalHero.js +6 -6
- package/dist/esm/ImageSlider-a3154b97.js +3980 -0
- package/dist/esm/IssueContentDeck.js +20 -20
- package/dist/esm/IssueDeck.js +30 -30
- package/dist/esm/IssueLanding.js +58 -58
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +10 -10
- package/dist/esm/MasterDeck.js +33 -33
- package/dist/esm/MasterDeckPaginated.js +438 -0
- package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
- package/dist/esm/MediaSeriesLanding.js +53 -9533
- package/dist/esm/MediaSeriesLandingPaginated.js +517 -0
- package/dist/esm/NavDvm.js +8 -8
- package/dist/esm/NavMagazine.js +25 -25
- package/dist/esm/NavNative.js +24 -24
- package/dist/esm/OncliveHero.js +6 -5
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +3 -3
- package/dist/esm/Pagination-c0db7ca1.js +46 -0
- package/dist/esm/PartnerDetailListing.js +39 -2936
- package/dist/esm/PartnerDetailListingPaginated.js +307 -0
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +3 -3
- package/dist/esm/PubSection.js +19 -19
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationFeature-fa24dedb.js +121 -0
- package/dist/esm/PublicationLanding.js +56 -56
- package/dist/esm/QueueDeckExpanded.js +21 -21
- package/dist/esm/QueueDeckExpandedPaginated.js +1372 -0
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +33 -33
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +10 -10
- package/dist/esm/{SeriesSlider-88c4133d.js → SeriesSlider-ce19fa25.js} +11 -11
- package/dist/esm/SideFooter.js +8 -8
- package/dist/esm/{SocialSearchComponent-7f3d6531.js → SocialSearchComponent-dca69151.js} +10 -10
- package/dist/esm/TaxonomyCard.js +22 -22
- package/dist/esm/TaxonomyDescription.js +24 -24
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +5 -5
- package/dist/esm/Ustream.js +10 -10
- package/dist/esm/VerticalHero.js +5 -5
- package/dist/esm/VideoProgramLandingPage.js +30 -30
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +5 -5
- package/dist/esm/VideoSeriesLandingPage.js +22 -22
- package/dist/esm/VideoSeriesListing.js +19 -19
- package/dist/esm/View.js +38 -38
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +14 -14
- package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
- package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
- package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
- package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-7bf8bc4d.js} +3 -3
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
- package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
- package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
- package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
- package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-731f3fdb.js → entities-7cc3bf45.js} +0 -4
- package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/getRelatedArticle.js +4 -4
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +24 -24
- package/dist/esm/getSeriesDetail.js +3 -0
- package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +5 -5
- package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
- package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
- package/dist/esm/{index-afb3bbc2.js → index-d1476645.js} +517 -533
- package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
- package/dist/esm/index.js +48 -48
- package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
- package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
- package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
- package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
- package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
- package/package.json +112 -111
- package/dist/cjs/main-bc7d4bf8.js +0 -972
- package/dist/esm/main-ede573ee.js +0 -961
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
-
var core_getIteratorMethod = require('./core.get-iterator-method-
|
|
7
|
-
var toConsumableArray = require('./toConsumableArray-
|
|
8
|
-
var _extends = require('./extends-
|
|
9
|
-
var inherits$1 = require('./inherits-
|
|
10
|
-
var _typeof
|
|
6
|
+
var core_getIteratorMethod = require('./core.get-iterator-method-f3c44602.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-c9b8a0d0.js');
|
|
8
|
+
var _extends$1 = require('./extends-eed4f016.js');
|
|
9
|
+
var inherits$1 = require('./inherits-12d44cca.js');
|
|
10
|
+
var _typeof = require('./typeof-5f52cf64.js');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var React__default = _interopDefault(React);
|
|
13
13
|
var index = require('./index-98e01cb9.js');
|
|
@@ -15,29 +15,29 @@ var PropTypes = require('prop-types');
|
|
|
15
15
|
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
16
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
17
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
-
var moment = require('./moment-
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
19
|
var Router = require('next/router');
|
|
20
20
|
var Router__default = _interopDefault(Router);
|
|
21
|
-
var slicedToArray = require('./slicedToArray-
|
|
21
|
+
var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
22
22
|
var urlFor = require('./urlFor.js');
|
|
23
23
|
var index$2 = require('./index-96b3db50.js');
|
|
24
|
-
var main = require('./main-
|
|
25
|
-
var entities = require('./entities-
|
|
26
|
-
var asyncToGenerator = require('./asyncToGenerator-
|
|
24
|
+
var main = require('./main-02daeefe.js');
|
|
25
|
+
var entities = require('./entities-310b46ee.js');
|
|
26
|
+
var asyncToGenerator = require('./asyncToGenerator-df19209d.js');
|
|
27
27
|
var Segment = require('./Segment.js');
|
|
28
28
|
require('./Beam.js');
|
|
29
29
|
var AdSlot = require('./AdSlot.js');
|
|
30
30
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
31
|
-
var BlockContent = require('./BlockContent-
|
|
31
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
32
32
|
var index$3 = require('./index-187c967e.js');
|
|
33
33
|
var GroupDeck = require('./GroupDeck.js');
|
|
34
34
|
var reactBootstrap = require('react-bootstrap');
|
|
35
|
-
var index_esm = require('./index.esm-
|
|
35
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
36
36
|
var util = require('./util-f2c1b65b.js');
|
|
37
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
37
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
38
38
|
var Head = _interopDefault(require('next/head'));
|
|
39
39
|
var SocialShare = require('./SocialShare.js');
|
|
40
|
-
var _objectToArray = require('./_object-to-array-
|
|
40
|
+
var _objectToArray = require('./_object-to-array-9bac8737.js');
|
|
41
41
|
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
42
42
|
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
43
43
|
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
@@ -108,18 +108,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
108
108
|
);
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
var isArray = Array.isArray;
|
|
112
|
+
var keyList = Object.keys;
|
|
113
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
114
114
|
|
|
115
115
|
var fastDeepEqual = function equal(a, b) {
|
|
116
116
|
if (a === b) return true;
|
|
117
117
|
|
|
118
118
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
119
|
-
|
|
119
|
+
var arrA = isArray(a)
|
|
120
|
+
, arrB = isArray(b)
|
|
121
|
+
, i
|
|
122
|
+
, length
|
|
123
|
+
, key;
|
|
120
124
|
|
|
121
|
-
|
|
122
|
-
if (Array.isArray(a)) {
|
|
125
|
+
if (arrA && arrB) {
|
|
123
126
|
length = a.length;
|
|
124
127
|
if (length != b.length) return false;
|
|
125
128
|
for (i = length; i-- !== 0;)
|
|
@@ -127,29 +130,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
127
130
|
return true;
|
|
128
131
|
}
|
|
129
132
|
|
|
133
|
+
if (arrA != arrB) return false;
|
|
130
134
|
|
|
135
|
+
var dateA = a instanceof Date
|
|
136
|
+
, dateB = b instanceof Date;
|
|
137
|
+
if (dateA != dateB) return false;
|
|
138
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
131
139
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
140
|
+
var regexpA = a instanceof RegExp
|
|
141
|
+
, regexpB = b instanceof RegExp;
|
|
142
|
+
if (regexpA != regexpB) return false;
|
|
143
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
135
144
|
|
|
136
|
-
keys =
|
|
145
|
+
var keys = keyList(a);
|
|
137
146
|
length = keys.length;
|
|
138
|
-
|
|
147
|
+
|
|
148
|
+
if (length !== keyList(b).length)
|
|
149
|
+
return false;
|
|
139
150
|
|
|
140
151
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
152
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
142
153
|
|
|
143
154
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
|
|
145
|
-
|
|
155
|
+
key = keys[i];
|
|
146
156
|
if (!equal(a[key], b[key])) return false;
|
|
147
157
|
}
|
|
148
158
|
|
|
149
159
|
return true;
|
|
150
160
|
}
|
|
151
161
|
|
|
152
|
-
// true if both NaN, false otherwise
|
|
153
162
|
return a!==a && b!==b;
|
|
154
163
|
};
|
|
155
164
|
|
|
@@ -1572,239 +1581,199 @@ module.exports = exports['default'];
|
|
|
1572
1581
|
|
|
1573
1582
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1574
1583
|
|
|
1575
|
-
function
|
|
1576
|
-
|
|
1577
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
|
-
|
|
1579
|
-
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); } }
|
|
1580
|
-
|
|
1581
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1582
|
-
|
|
1583
|
-
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); }
|
|
1584
|
-
|
|
1585
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1586
|
-
|
|
1587
|
-
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); }; }
|
|
1588
|
-
|
|
1589
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1590
|
-
|
|
1591
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1584
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1592
1585
|
|
|
1593
|
-
function
|
|
1586
|
+
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; };
|
|
1594
1587
|
|
|
1595
|
-
function
|
|
1588
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1596
1589
|
|
|
1597
|
-
function
|
|
1590
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1598
1591
|
|
|
1599
|
-
function
|
|
1592
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1600
1593
|
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
* @param {Object}
|
|
1606
|
-
* @param {Object} props
|
|
1594
|
+
/**
|
|
1595
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {Object} prevProps
|
|
1598
|
+
* @param {Object} props
|
|
1607
1599
|
*/
|
|
1608
|
-
|
|
1609
1600
|
function shouldUpdateVideo(prevProps, props) {
|
|
1610
1601
|
// A changing video should always trigger an update
|
|
1611
1602
|
if (prevProps.videoId !== props.videoId) {
|
|
1612
1603
|
return true;
|
|
1613
|
-
}
|
|
1614
|
-
// update.
|
|
1615
|
-
|
|
1604
|
+
}
|
|
1616
1605
|
|
|
1606
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1607
|
+
// update.
|
|
1617
1608
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1618
1609
|
var vars = props.opts.playerVars || {};
|
|
1610
|
+
|
|
1619
1611
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1620
1612
|
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1623
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1624
|
-
* player reset is necessary.
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object} opts
|
|
1627
|
-
*/
|
|
1628
|
-
|
|
1629
1613
|
|
|
1614
|
+
/**
|
|
1615
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1616
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
+
* player reset is necessary.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} opts
|
|
1620
|
+
*/
|
|
1630
1621
|
function filterResetOptions(opts) {
|
|
1631
|
-
return
|
|
1632
|
-
playerVars:
|
|
1622
|
+
return _extends({}, opts, {
|
|
1623
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1633
1624
|
autoplay: 0,
|
|
1634
1625
|
start: 0,
|
|
1635
1626
|
end: 0
|
|
1636
|
-
}
|
|
1627
|
+
})
|
|
1637
1628
|
});
|
|
1638
1629
|
}
|
|
1639
|
-
/**
|
|
1640
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1641
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1642
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1643
|
-
* those.
|
|
1644
|
-
*
|
|
1645
|
-
* @param {Object} prevProps
|
|
1646
|
-
* @param {Object} props
|
|
1647
|
-
*/
|
|
1648
|
-
|
|
1649
1630
|
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
+
* those.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1639
|
+
*/
|
|
1650
1640
|
function shouldResetPlayer(prevProps, props) {
|
|
1651
1641
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1652
1642
|
}
|
|
1653
|
-
/**
|
|
1654
|
-
* Check whether a props change should result in an id or className update.
|
|
1655
|
-
*
|
|
1656
|
-
* @param {Object} prevProps
|
|
1657
|
-
* @param {Object} props
|
|
1658
|
-
*/
|
|
1659
|
-
|
|
1660
1643
|
|
|
1644
|
+
/**
|
|
1645
|
+
* Check whether a props change should result in an id or className update.
|
|
1646
|
+
*
|
|
1647
|
+
* @param {Object} prevProps
|
|
1648
|
+
* @param {Object} props
|
|
1649
|
+
*/
|
|
1661
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1662
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1663
1652
|
}
|
|
1664
1653
|
|
|
1665
|
-
var YouTube =
|
|
1654
|
+
var YouTube = function (_React$Component) {
|
|
1666
1655
|
_inherits(YouTube, _React$Component);
|
|
1667
1656
|
|
|
1668
|
-
var _super = _createSuper(YouTube);
|
|
1669
|
-
|
|
1670
|
-
/**
|
|
1671
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1672
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1673
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1674
|
-
*/
|
|
1675
1657
|
function YouTube(props) {
|
|
1676
|
-
var _this;
|
|
1677
|
-
|
|
1678
1658
|
_classCallCheck(this, YouTube);
|
|
1679
1659
|
|
|
1680
|
-
_this =
|
|
1660
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerReady = function (event) {
|
|
1683
1663
|
return _this.props.onReady(event);
|
|
1684
|
-
}
|
|
1664
|
+
};
|
|
1685
1665
|
|
|
1686
|
-
|
|
1666
|
+
_this.onPlayerError = function (event) {
|
|
1687
1667
|
return _this.props.onError(event);
|
|
1688
|
-
}
|
|
1668
|
+
};
|
|
1689
1669
|
|
|
1690
|
-
|
|
1670
|
+
_this.onPlayerStateChange = function (event) {
|
|
1691
1671
|
_this.props.onStateChange(event);
|
|
1692
|
-
|
|
1693
1672
|
switch (event.data) {
|
|
1673
|
+
|
|
1694
1674
|
case YouTube.PlayerState.ENDED:
|
|
1695
1675
|
_this.props.onEnd(event);
|
|
1696
|
-
|
|
1697
1676
|
break;
|
|
1698
1677
|
|
|
1699
1678
|
case YouTube.PlayerState.PLAYING:
|
|
1700
1679
|
_this.props.onPlay(event);
|
|
1701
|
-
|
|
1702
1680
|
break;
|
|
1703
1681
|
|
|
1704
1682
|
case YouTube.PlayerState.PAUSED:
|
|
1705
1683
|
_this.props.onPause(event);
|
|
1706
|
-
|
|
1707
1684
|
break;
|
|
1708
1685
|
}
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1712
1689
|
return _this.props.onPlaybackRateChange(event);
|
|
1713
|
-
}
|
|
1690
|
+
};
|
|
1714
1691
|
|
|
1715
|
-
|
|
1692
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1716
1693
|
return _this.props.onPlaybackQualityChange(event);
|
|
1717
|
-
}
|
|
1694
|
+
};
|
|
1718
1695
|
|
|
1719
|
-
|
|
1696
|
+
_this.createPlayer = function () {
|
|
1720
1697
|
// do not attempt to create a player server-side, it won't work
|
|
1721
|
-
if (typeof document === 'undefined') return;
|
|
1722
|
-
|
|
1723
|
-
var playerOpts =
|
|
1698
|
+
if (typeof document === 'undefined') return;
|
|
1699
|
+
// create player
|
|
1700
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1724
1701
|
// preload the `videoId` video if one is already given
|
|
1725
1702
|
videoId: _this.props.videoId
|
|
1726
1703
|
});
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1704
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1705
|
+
// attach event handlers
|
|
1730
1706
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1731
|
-
|
|
1732
1707
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1733
|
-
|
|
1734
1708
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1735
|
-
|
|
1736
1709
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1737
|
-
|
|
1738
1710
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1739
|
-
}
|
|
1711
|
+
};
|
|
1740
1712
|
|
|
1741
|
-
|
|
1713
|
+
_this.resetPlayer = function () {
|
|
1742
1714
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1743
|
-
}
|
|
1715
|
+
};
|
|
1744
1716
|
|
|
1745
|
-
|
|
1717
|
+
_this.updatePlayer = function () {
|
|
1746
1718
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1747
1719
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1748
1720
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1749
1721
|
});
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1753
|
-
return _this.internalPlayer;
|
|
1754
|
-
});
|
|
1722
|
+
};
|
|
1755
1723
|
|
|
1756
|
-
|
|
1724
|
+
_this.updateVideo = function () {
|
|
1757
1725
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1758
1726
|
_this.internalPlayer.stopVideo();
|
|
1759
|
-
|
|
1760
1727
|
return;
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1728
|
+
}
|
|
1763
1729
|
|
|
1730
|
+
// set queueing options
|
|
1764
1731
|
var autoplay = false;
|
|
1765
1732
|
var opts = {
|
|
1766
1733
|
videoId: _this.props.videoId
|
|
1767
1734
|
};
|
|
1768
|
-
|
|
1769
1735
|
if ('playerVars' in _this.props.opts) {
|
|
1770
1736
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1771
|
-
|
|
1772
1737
|
if ('start' in _this.props.opts.playerVars) {
|
|
1773
1738
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1774
1739
|
}
|
|
1775
|
-
|
|
1776
1740
|
if ('end' in _this.props.opts.playerVars) {
|
|
1777
1741
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1778
1742
|
}
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1743
|
+
}
|
|
1781
1744
|
|
|
1745
|
+
// if autoplay is enabled loadVideoById
|
|
1782
1746
|
if (autoplay) {
|
|
1783
1747
|
_this.internalPlayer.loadVideoById(opts);
|
|
1784
|
-
|
|
1785
1748
|
return;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
|
|
1749
|
+
}
|
|
1750
|
+
// default behaviour just cues the video
|
|
1789
1751
|
_this.internalPlayer.cueVideoById(opts);
|
|
1790
|
-
}
|
|
1752
|
+
};
|
|
1791
1753
|
|
|
1792
|
-
|
|
1754
|
+
_this.refContainer = function (container) {
|
|
1793
1755
|
_this.container = container;
|
|
1794
|
-
}
|
|
1756
|
+
};
|
|
1795
1757
|
|
|
1796
1758
|
_this.container = null;
|
|
1797
1759
|
_this.internalPlayer = null;
|
|
1798
1760
|
return _this;
|
|
1799
1761
|
}
|
|
1800
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1765
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1766
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1767
|
+
*/
|
|
1768
|
+
|
|
1769
|
+
|
|
1801
1770
|
_createClass(YouTube, [{
|
|
1802
|
-
key:
|
|
1771
|
+
key: 'componentDidMount',
|
|
1803
1772
|
value: function componentDidMount() {
|
|
1804
1773
|
this.createPlayer();
|
|
1805
1774
|
}
|
|
1806
1775
|
}, {
|
|
1807
|
-
key:
|
|
1776
|
+
key: 'componentDidUpdate',
|
|
1808
1777
|
value: function componentDidUpdate(prevProps) {
|
|
1809
1778
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1810
1779
|
this.updatePlayer();
|
|
@@ -1819,58 +1788,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1819
1788
|
}
|
|
1820
1789
|
}
|
|
1821
1790
|
}, {
|
|
1822
|
-
key:
|
|
1791
|
+
key: 'componentWillUnmount',
|
|
1823
1792
|
value: function componentWillUnmount() {
|
|
1824
|
-
/**
|
|
1825
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1826
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1827
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1828
|
-
* this method isn't quick enough to reset the container element.
|
|
1793
|
+
/**
|
|
1794
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1795
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1796
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1797
|
+
* this method isn't quick enough to reset the container element.
|
|
1829
1798
|
*/
|
|
1830
1799
|
this.internalPlayer.destroy();
|
|
1831
1800
|
}
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
*
|
|
1835
|
-
*
|
|
1836
|
-
*
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1804
|
+
*
|
|
1805
|
+
* @param {Object} event
|
|
1806
|
+
* @param {Object} target - player object
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1812
|
+
*
|
|
1813
|
+
* @param {Object} event
|
|
1814
|
+
* @param {Integer} data - error type
|
|
1815
|
+
* @param {Object} target - player object
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {Integer} data - status change type
|
|
1824
|
+
* @param {Object} target - actual YT player
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1830
|
+
*
|
|
1831
|
+
* @param {Object} event
|
|
1832
|
+
* @param {Float} data - playback rate
|
|
1833
|
+
* @param {Object} target - actual YT player
|
|
1834
|
+
*/
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1839
|
+
*
|
|
1840
|
+
* @param {Object} event
|
|
1841
|
+
* @param {String} data - playback quality
|
|
1842
|
+
* @param {Object} target - actual YT player
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1853
|
+
*/
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1858
|
+
* React should update this automatically but since the Youtube Player API
|
|
1859
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1860
|
+
*/
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1865
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1866
|
+
* Youtube Player API methods to update the video.
|
|
1837
1867
|
*/
|
|
1838
1868
|
|
|
1839
1869
|
}, {
|
|
1840
|
-
key:
|
|
1870
|
+
key: 'render',
|
|
1841
1871
|
value: function render() {
|
|
1842
|
-
return
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
id: this.props.id,
|
|
1846
|
-
|
|
1847
|
-
ref: this.refContainer
|
|
1848
|
-
}));
|
|
1872
|
+
return React__default.createElement(
|
|
1873
|
+
'div',
|
|
1874
|
+
{ className: this.props.containerClassName },
|
|
1875
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1876
|
+
);
|
|
1849
1877
|
}
|
|
1850
1878
|
}]);
|
|
1851
1879
|
|
|
1852
1880
|
return YouTube;
|
|
1853
1881
|
}(React__default.Component);
|
|
1854
1882
|
|
|
1855
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1856
|
-
UNSTARTED: -1,
|
|
1857
|
-
ENDED: 0,
|
|
1858
|
-
PLAYING: 1,
|
|
1859
|
-
PAUSED: 2,
|
|
1860
|
-
BUFFERING: 3,
|
|
1861
|
-
CUED: 5
|
|
1862
|
-
});
|
|
1863
|
-
|
|
1864
1883
|
YouTube.propTypes = {
|
|
1865
1884
|
videoId: PropTypes__default.string,
|
|
1885
|
+
|
|
1866
1886
|
// custom ID for player element
|
|
1867
1887
|
id: PropTypes__default.string,
|
|
1888
|
+
|
|
1868
1889
|
// custom class name for player element
|
|
1869
1890
|
className: PropTypes__default.string,
|
|
1870
1891
|
// custom class name for player container element
|
|
1871
1892
|
containerClassName: PropTypes__default.string,
|
|
1893
|
+
|
|
1872
1894
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1873
1895
|
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1896
|
+
|
|
1874
1897
|
// event subscriptions
|
|
1875
1898
|
onReady: PropTypes__default.func,
|
|
1876
1899
|
onError: PropTypes__default.func,
|
|
@@ -1882,7 +1905,6 @@ YouTube.propTypes = {
|
|
|
1882
1905
|
onPlaybackQualityChange: PropTypes__default.func
|
|
1883
1906
|
};
|
|
1884
1907
|
YouTube.defaultProps = {
|
|
1885
|
-
videoId: null,
|
|
1886
1908
|
id: null,
|
|
1887
1909
|
className: null,
|
|
1888
1910
|
opts: {},
|
|
@@ -1896,6 +1918,14 @@ YouTube.defaultProps = {
|
|
|
1896
1918
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1897
1919
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1898
1920
|
};
|
|
1921
|
+
YouTube.PlayerState = {
|
|
1922
|
+
UNSTARTED: -1,
|
|
1923
|
+
ENDED: 0,
|
|
1924
|
+
PLAYING: 1,
|
|
1925
|
+
PAUSED: 2,
|
|
1926
|
+
BUFFERING: 3,
|
|
1927
|
+
CUED: 5
|
|
1928
|
+
};
|
|
1899
1929
|
|
|
1900
1930
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1901
1931
|
var url = _ref.url,
|
|
@@ -1935,7 +1965,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1935
1965
|
var queue = Math.floor(duration / 10);
|
|
1936
1966
|
var segment = Math.floor(current / queue);
|
|
1937
1967
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1938
|
-
Segment.report_video_event('Video Ready', main.
|
|
1968
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1939
1969
|
};
|
|
1940
1970
|
|
|
1941
1971
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1946,7 +1976,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1946
1976
|
|
|
1947
1977
|
if (!queueProgress.includes(segment)) {
|
|
1948
1978
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1949
|
-
Segment.report_video_event('Video Segment', main.
|
|
1979
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1950
1980
|
queueProgress.push(segment);
|
|
1951
1981
|
}
|
|
1952
1982
|
};
|
|
@@ -1960,7 +1990,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1960
1990
|
var segment = Math.floor(current / queue);
|
|
1961
1991
|
|
|
1962
1992
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1963
|
-
Segment.report_video_event('Video Play', main.
|
|
1993
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1964
1994
|
|
|
1965
1995
|
if (!playReported) {
|
|
1966
1996
|
setPlayReported(true);
|
|
@@ -1980,7 +2010,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1980
2010
|
var segment = Math.floor(current / queue);
|
|
1981
2011
|
|
|
1982
2012
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1983
|
-
Segment.report_video_event('Video End', main.
|
|
2013
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1984
2014
|
setEndReported(true);
|
|
1985
2015
|
clearInterval(intervalID);
|
|
1986
2016
|
}
|
|
@@ -1994,7 +2024,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1994
2024
|
var segment = Math.floor(current / queue);
|
|
1995
2025
|
|
|
1996
2026
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1997
|
-
Segment.report_video_event('Video Pause', main.
|
|
2027
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1998
2028
|
};
|
|
1999
2029
|
|
|
2000
2030
|
return React__default.createElement(
|
|
@@ -2183,7 +2213,7 @@ var Media = function Media(_ref) {
|
|
|
2183
2213
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2184
2214
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2185
2215
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2186
|
-
React__default.createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2216
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2187
2217
|
)
|
|
2188
2218
|
),
|
|
2189
2219
|
caption && React__default.createElement(
|
|
@@ -2196,7 +2226,7 @@ var Media = function Media(_ref) {
|
|
|
2196
2226
|
} else if (caption && caption !== '') {
|
|
2197
2227
|
return React__default.createElement(
|
|
2198
2228
|
'a',
|
|
2199
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2229
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2200
2230
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2201
2231
|
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2202
2232
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2252,7 +2282,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2252
2282
|
var queue = Math.floor(duration / 10);
|
|
2253
2283
|
var segment = Math.floor(current / queue);
|
|
2254
2284
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2255
|
-
Segment.report_video_event('Video Ready', main.
|
|
2285
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2256
2286
|
};
|
|
2257
2287
|
|
|
2258
2288
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2262,7 +2292,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2292
|
var segment = Math.floor(current / queue);
|
|
2263
2293
|
if (!queueProgress.includes(segment)) {
|
|
2264
2294
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2265
|
-
Segment.report_video_event('Video Segment', main.
|
|
2295
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2266
2296
|
queueProgress.push(segment);
|
|
2267
2297
|
}
|
|
2268
2298
|
};
|
|
@@ -2275,7 +2305,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2275
2305
|
var queue = Math.floor(duration / 10);
|
|
2276
2306
|
var segment = Math.floor(current / queue);
|
|
2277
2307
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2278
|
-
Segment.report_video_event('Video Play', main.
|
|
2308
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2279
2309
|
|
|
2280
2310
|
if (!playReported) {
|
|
2281
2311
|
event.persist();
|
|
@@ -2296,7 +2326,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2296
2326
|
var segment = Math.floor(current / queue);
|
|
2297
2327
|
|
|
2298
2328
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2299
|
-
Segment.report_video_event('Video End', main.
|
|
2329
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2300
2330
|
setEndReported(true);
|
|
2301
2331
|
clearInterval(intervalID);
|
|
2302
2332
|
}
|
|
@@ -2309,7 +2339,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2309
2339
|
var queue = Math.floor(duration / 10);
|
|
2310
2340
|
var segment = Math.floor(current / queue);
|
|
2311
2341
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2312
|
-
Segment.report_video_event('Video Pause', main.
|
|
2342
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2313
2343
|
};
|
|
2314
2344
|
|
|
2315
2345
|
return React__default.createElement(
|
|
@@ -2375,7 +2405,7 @@ var Video = function Video(_ref) {
|
|
|
2375
2405
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2376
2406
|
//console.log('success:', success.ref)
|
|
2377
2407
|
var player = success.ref;
|
|
2378
|
-
if (_typeof
|
|
2408
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2379
2409
|
player.ima3.settings.debug = true;
|
|
2380
2410
|
if (targeting.content_placement && targeting.document_url) {
|
|
2381
2411
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2430,7 +2460,7 @@ var Video = function Video(_ref) {
|
|
|
2430
2460
|
}
|
|
2431
2461
|
|
|
2432
2462
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2433
|
-
Segment.report_video_event('Video Ready', main.
|
|
2463
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2434
2464
|
});
|
|
2435
2465
|
|
|
2436
2466
|
// play
|
|
@@ -2440,7 +2470,7 @@ var Video = function Video(_ref) {
|
|
|
2440
2470
|
var queue = Math.floor(duration / 10);
|
|
2441
2471
|
var segment = Math.floor(current / queue);
|
|
2442
2472
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2443
|
-
Segment.report_video_event('Video Play', main.
|
|
2473
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2444
2474
|
});
|
|
2445
2475
|
|
|
2446
2476
|
// pause
|
|
@@ -2450,7 +2480,7 @@ var Video = function Video(_ref) {
|
|
|
2450
2480
|
var queue = Math.floor(duration / 10);
|
|
2451
2481
|
var segment = Math.floor(current / queue);
|
|
2452
2482
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2453
|
-
Segment.report_video_event('Video Pause', main.
|
|
2483
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2454
2484
|
});
|
|
2455
2485
|
|
|
2456
2486
|
// end
|
|
@@ -2460,7 +2490,7 @@ var Video = function Video(_ref) {
|
|
|
2460
2490
|
var queue = Math.floor(duration / 10);
|
|
2461
2491
|
var segment = Math.floor(current / queue);
|
|
2462
2492
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2463
|
-
Segment.report_video_event('Video End', main.
|
|
2493
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2464
2494
|
autoplayNextVideo(evt);
|
|
2465
2495
|
});
|
|
2466
2496
|
|
|
@@ -2472,7 +2502,7 @@ var Video = function Video(_ref) {
|
|
|
2472
2502
|
var segment = Math.floor(current / queue);
|
|
2473
2503
|
if (!queueProgress.includes(segment)) {
|
|
2474
2504
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2475
|
-
Segment.report_video_event('Video Segment', main.
|
|
2505
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2476
2506
|
queueProgress.push(segment);
|
|
2477
2507
|
}
|
|
2478
2508
|
});
|
|
@@ -2484,7 +2514,7 @@ var Video = function Video(_ref) {
|
|
|
2484
2514
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2485
2515
|
|
|
2486
2516
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2487
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2517
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2488
2518
|
});
|
|
2489
2519
|
|
|
2490
2520
|
// ad ended
|
|
@@ -2493,7 +2523,7 @@ var Video = function Video(_ref) {
|
|
|
2493
2523
|
var id = player.ads.ad.id;
|
|
2494
2524
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2495
2525
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2496
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2526
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2497
2527
|
});
|
|
2498
2528
|
};
|
|
2499
2529
|
|
|
@@ -2924,17 +2954,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2924
2954
|
|
|
2925
2955
|
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; }
|
|
2926
2956
|
|
|
2927
|
-
function
|
|
2957
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2928
2958
|
|
|
2929
|
-
function
|
|
2959
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2930
2960
|
|
|
2931
|
-
function
|
|
2932
|
-
|
|
2933
|
-
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); }
|
|
2934
|
-
|
|
2935
|
-
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; }
|
|
2936
|
-
|
|
2937
|
-
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; }
|
|
2961
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2938
2962
|
|
|
2939
2963
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2940
2964
|
|
|
@@ -3064,12 +3088,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3064
3088
|
|
|
3065
3089
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3066
3090
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3067
|
-
|
|
3068
|
-
var
|
|
3069
|
-
|
|
3091
|
+
var _iteratorNormalCompletion = true;
|
|
3092
|
+
var _didIteratorError = false;
|
|
3093
|
+
var _iteratorError = undefined;
|
|
3070
3094
|
|
|
3071
3095
|
try {
|
|
3072
|
-
for (_iterator.
|
|
3096
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3073
3097
|
var p = _step.value;
|
|
3074
3098
|
|
|
3075
3099
|
if (props$1[p]) {
|
|
@@ -3084,9 +3108,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3084
3108
|
}
|
|
3085
3109
|
}
|
|
3086
3110
|
} catch (err) {
|
|
3087
|
-
|
|
3111
|
+
_didIteratorError = true;
|
|
3112
|
+
_iteratorError = err;
|
|
3088
3113
|
} finally {
|
|
3089
|
-
|
|
3114
|
+
try {
|
|
3115
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3116
|
+
_iterator["return"]();
|
|
3117
|
+
}
|
|
3118
|
+
} finally {
|
|
3119
|
+
if (_didIteratorError) {
|
|
3120
|
+
throw _iteratorError;
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3090
3123
|
}
|
|
3091
3124
|
|
|
3092
3125
|
return config;
|
|
@@ -3233,16 +3266,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3233
3266
|
|
|
3234
3267
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3235
3268
|
|
|
3236
|
-
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); }; }
|
|
3237
|
-
|
|
3238
3269
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3239
3270
|
|
|
3240
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3241
|
-
|
|
3242
|
-
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; } }
|
|
3243
|
-
|
|
3244
3271
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3245
3272
|
|
|
3273
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3274
|
+
|
|
3246
3275
|
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); }
|
|
3247
3276
|
|
|
3248
3277
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3251,12 +3280,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3251
3280
|
|
|
3252
3281
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3253
3282
|
|
|
3254
|
-
var Player =
|
|
3283
|
+
var Player =
|
|
3284
|
+
/*#__PURE__*/
|
|
3285
|
+
function (_Component) {
|
|
3255
3286
|
_inherits(Player, _Component);
|
|
3256
3287
|
|
|
3257
|
-
var _super = _createSuper(Player);
|
|
3258
|
-
|
|
3259
3288
|
function Player() {
|
|
3289
|
+
var _getPrototypeOf2;
|
|
3290
|
+
|
|
3260
3291
|
var _this;
|
|
3261
3292
|
|
|
3262
3293
|
_classCallCheck(this, Player);
|
|
@@ -3265,7 +3296,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3265
3296
|
_args[_key] = arguments[_key];
|
|
3266
3297
|
}
|
|
3267
3298
|
|
|
3268
|
-
_this =
|
|
3299
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3269
3300
|
|
|
3270
3301
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3271
3302
|
|
|
@@ -3590,7 +3621,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3590
3621
|
return null;
|
|
3591
3622
|
}
|
|
3592
3623
|
|
|
3593
|
-
return
|
|
3624
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3594
3625
|
ref: this.ref,
|
|
3595
3626
|
onReady: this.handleReady,
|
|
3596
3627
|
onPlay: this.handlePlay,
|
|
@@ -3651,16 +3682,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3651
3682
|
|
|
3652
3683
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3653
3684
|
|
|
3654
|
-
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); }; }
|
|
3655
|
-
|
|
3656
3685
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3657
3686
|
|
|
3658
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3659
|
-
|
|
3660
|
-
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; } }
|
|
3661
|
-
|
|
3662
3687
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3663
3688
|
|
|
3689
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3690
|
+
|
|
3664
3691
|
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); }
|
|
3665
3692
|
|
|
3666
3693
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3672,12 +3699,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3672
3699
|
function createSinglePlayer(activePlayer) {
|
|
3673
3700
|
var _class, _temp;
|
|
3674
3701
|
|
|
3675
|
-
return _temp = _class =
|
|
3702
|
+
return _temp = _class =
|
|
3703
|
+
/*#__PURE__*/
|
|
3704
|
+
function (_Component) {
|
|
3676
3705
|
_inherits(SinglePlayer, _Component);
|
|
3677
3706
|
|
|
3678
|
-
var _super = _createSuper(SinglePlayer);
|
|
3679
|
-
|
|
3680
3707
|
function SinglePlayer() {
|
|
3708
|
+
var _getPrototypeOf2;
|
|
3709
|
+
|
|
3681
3710
|
var _this;
|
|
3682
3711
|
|
|
3683
3712
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3686,7 +3715,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3686
3715
|
args[_key] = arguments[_key];
|
|
3687
3716
|
}
|
|
3688
3717
|
|
|
3689
|
-
_this =
|
|
3718
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3690
3719
|
|
|
3691
3720
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3692
3721
|
|
|
@@ -3754,12 +3783,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3754
3783
|
height = _this$props.height,
|
|
3755
3784
|
Wrapper = _this$props.wrapper;
|
|
3756
3785
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3757
|
-
return
|
|
3786
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3758
3787
|
style: _objectSpread({}, style, {
|
|
3759
3788
|
width: width,
|
|
3760
3789
|
height: height
|
|
3761
3790
|
})
|
|
3762
|
-
}, otherProps),
|
|
3791
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3763
3792
|
ref: this.ref,
|
|
3764
3793
|
activePlayer: activePlayer,
|
|
3765
3794
|
config: this.config
|
|
@@ -3805,31 +3834,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3805
3834
|
|
|
3806
3835
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3807
3836
|
|
|
3808
|
-
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); }; }
|
|
3809
|
-
|
|
3810
3837
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3811
3838
|
|
|
3812
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3813
|
-
|
|
3814
|
-
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; } }
|
|
3815
|
-
|
|
3816
3839
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3817
3840
|
|
|
3841
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3842
|
+
|
|
3818
3843
|
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); }
|
|
3819
3844
|
|
|
3820
3845
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3821
3846
|
|
|
3822
3847
|
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; }
|
|
3823
3848
|
|
|
3824
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3849
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3825
3850
|
|
|
3826
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3851
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3827
3852
|
|
|
3828
|
-
function
|
|
3829
|
-
|
|
3830
|
-
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; }
|
|
3831
|
-
|
|
3832
|
-
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; }
|
|
3853
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3833
3854
|
|
|
3834
3855
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3835
3856
|
|
|
@@ -3854,12 +3875,14 @@ function parsePlaylist(url) {
|
|
|
3854
3875
|
return {};
|
|
3855
3876
|
}
|
|
3856
3877
|
|
|
3857
|
-
var YouTube =
|
|
3878
|
+
var YouTube =
|
|
3879
|
+
/*#__PURE__*/
|
|
3880
|
+
function (_Component) {
|
|
3858
3881
|
_inherits(YouTube, _Component);
|
|
3859
3882
|
|
|
3860
|
-
var _super = _createSuper(YouTube);
|
|
3861
|
-
|
|
3862
3883
|
function YouTube() {
|
|
3884
|
+
var _getPrototypeOf2;
|
|
3885
|
+
|
|
3863
3886
|
var _this;
|
|
3864
3887
|
|
|
3865
3888
|
_classCallCheck(this, YouTube);
|
|
@@ -3868,7 +3891,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3868
3891
|
args[_key] = arguments[_key];
|
|
3869
3892
|
}
|
|
3870
3893
|
|
|
3871
|
-
_this =
|
|
3894
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3872
3895
|
|
|
3873
3896
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3874
3897
|
|
|
@@ -4056,9 +4079,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4056
4079
|
height: '100%',
|
|
4057
4080
|
display: display
|
|
4058
4081
|
};
|
|
4059
|
-
return
|
|
4082
|
+
return _react["default"].createElement("div", {
|
|
4060
4083
|
style: style
|
|
4061
|
-
},
|
|
4084
|
+
}, _react["default"].createElement("div", {
|
|
4062
4085
|
ref: this.ref
|
|
4063
4086
|
}));
|
|
4064
4087
|
}
|
|
@@ -4114,16 +4137,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4114
4137
|
|
|
4115
4138
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4116
4139
|
|
|
4117
|
-
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); }; }
|
|
4118
|
-
|
|
4119
4140
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4120
4141
|
|
|
4121
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4122
|
-
|
|
4123
|
-
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; } }
|
|
4124
|
-
|
|
4125
4142
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4126
4143
|
|
|
4144
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4145
|
+
|
|
4127
4146
|
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); }
|
|
4128
4147
|
|
|
4129
4148
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4132,14 +4151,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4132
4151
|
|
|
4133
4152
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4134
4153
|
var SDK_GLOBAL = 'SC';
|
|
4135
|
-
var MATCH_URL = /(
|
|
4154
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4136
4155
|
|
|
4137
|
-
var SoundCloud =
|
|
4156
|
+
var SoundCloud =
|
|
4157
|
+
/*#__PURE__*/
|
|
4158
|
+
function (_Component) {
|
|
4138
4159
|
_inherits(SoundCloud, _Component);
|
|
4139
4160
|
|
|
4140
|
-
var _super = _createSuper(SoundCloud);
|
|
4141
|
-
|
|
4142
4161
|
function SoundCloud() {
|
|
4162
|
+
var _getPrototypeOf2;
|
|
4163
|
+
|
|
4143
4164
|
var _this;
|
|
4144
4165
|
|
|
4145
4166
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4148,7 +4169,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4148
4169
|
args[_key] = arguments[_key];
|
|
4149
4170
|
}
|
|
4150
4171
|
|
|
4151
|
-
_this =
|
|
4172
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4152
4173
|
|
|
4153
4174
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4154
4175
|
|
|
@@ -4269,7 +4290,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4269
4290
|
height: '100%',
|
|
4270
4291
|
display: display
|
|
4271
4292
|
};
|
|
4272
|
-
return
|
|
4293
|
+
return _react["default"].createElement("iframe", {
|
|
4273
4294
|
ref: this.ref,
|
|
4274
4295
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4275
4296
|
style: style,
|
|
@@ -4331,16 +4352,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4331
4352
|
|
|
4332
4353
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4333
4354
|
|
|
4334
|
-
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); }; }
|
|
4335
|
-
|
|
4336
4355
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4337
4356
|
|
|
4338
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4339
|
-
|
|
4340
|
-
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; } }
|
|
4341
|
-
|
|
4342
4357
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4343
4358
|
|
|
4359
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4360
|
+
|
|
4344
4361
|
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); }
|
|
4345
4362
|
|
|
4346
4363
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4352,12 +4369,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4352
4369
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4353
4370
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4354
4371
|
|
|
4355
|
-
var Vimeo =
|
|
4372
|
+
var Vimeo =
|
|
4373
|
+
/*#__PURE__*/
|
|
4374
|
+
function (_Component) {
|
|
4356
4375
|
_inherits(Vimeo, _Component);
|
|
4357
4376
|
|
|
4358
|
-
var _super = _createSuper(Vimeo);
|
|
4359
|
-
|
|
4360
4377
|
function Vimeo() {
|
|
4378
|
+
var _getPrototypeOf2;
|
|
4379
|
+
|
|
4361
4380
|
var _this;
|
|
4362
4381
|
|
|
4363
4382
|
_classCallCheck(this, Vimeo);
|
|
@@ -4366,7 +4385,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4366
4385
|
args[_key] = arguments[_key];
|
|
4367
4386
|
}
|
|
4368
4387
|
|
|
4369
|
-
_this =
|
|
4388
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4370
4389
|
|
|
4371
4390
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4372
4391
|
|
|
@@ -4523,7 +4542,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4523
4542
|
overflow: 'hidden',
|
|
4524
4543
|
display: display
|
|
4525
4544
|
};
|
|
4526
|
-
return
|
|
4545
|
+
return _react["default"].createElement("div", {
|
|
4527
4546
|
key: this.props.url,
|
|
4528
4547
|
ref: this.ref,
|
|
4529
4548
|
style: style
|
|
@@ -4583,16 +4602,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4583
4602
|
|
|
4584
4603
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4585
4604
|
|
|
4586
|
-
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); }; }
|
|
4587
|
-
|
|
4588
4605
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4589
4606
|
|
|
4590
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4591
|
-
|
|
4592
|
-
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; } }
|
|
4593
|
-
|
|
4594
4607
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4595
4608
|
|
|
4609
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4610
|
+
|
|
4596
4611
|
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); }
|
|
4597
4612
|
|
|
4598
4613
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4605,12 +4620,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4605
4620
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4606
4621
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4607
4622
|
|
|
4608
|
-
var Facebook =
|
|
4623
|
+
var Facebook =
|
|
4624
|
+
/*#__PURE__*/
|
|
4625
|
+
function (_Component) {
|
|
4609
4626
|
_inherits(Facebook, _Component);
|
|
4610
4627
|
|
|
4611
|
-
var _super = _createSuper(Facebook);
|
|
4612
|
-
|
|
4613
4628
|
function Facebook() {
|
|
4629
|
+
var _getPrototypeOf2;
|
|
4630
|
+
|
|
4614
4631
|
var _this;
|
|
4615
4632
|
|
|
4616
4633
|
_classCallCheck(this, Facebook);
|
|
@@ -4619,7 +4636,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4619
4636
|
args[_key] = arguments[_key];
|
|
4620
4637
|
}
|
|
4621
4638
|
|
|
4622
|
-
_this =
|
|
4639
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4623
4640
|
|
|
4624
4641
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4625
4642
|
|
|
@@ -4735,7 +4752,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4735
4752
|
width: '100%',
|
|
4736
4753
|
height: '100%'
|
|
4737
4754
|
};
|
|
4738
|
-
return
|
|
4755
|
+
return _react["default"].createElement("div", {
|
|
4739
4756
|
style: style,
|
|
4740
4757
|
id: this.playerID,
|
|
4741
4758
|
className: "fb-video",
|
|
@@ -4795,16 +4812,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4795
4812
|
|
|
4796
4813
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4797
4814
|
|
|
4798
|
-
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); }; }
|
|
4799
|
-
|
|
4800
4815
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4801
4816
|
|
|
4802
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4803
|
-
|
|
4804
|
-
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; } }
|
|
4805
|
-
|
|
4806
4817
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4807
4818
|
|
|
4819
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4820
|
+
|
|
4808
4821
|
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); }
|
|
4809
4822
|
|
|
4810
4823
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4815,12 +4828,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4815
4828
|
var SDK_GLOBAL = 'playerjs';
|
|
4816
4829
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4817
4830
|
|
|
4818
|
-
var Streamable =
|
|
4831
|
+
var Streamable =
|
|
4832
|
+
/*#__PURE__*/
|
|
4833
|
+
function (_Component) {
|
|
4819
4834
|
_inherits(Streamable, _Component);
|
|
4820
4835
|
|
|
4821
|
-
var _super = _createSuper(Streamable);
|
|
4822
|
-
|
|
4823
4836
|
function Streamable() {
|
|
4837
|
+
var _getPrototypeOf2;
|
|
4838
|
+
|
|
4824
4839
|
var _this;
|
|
4825
4840
|
|
|
4826
4841
|
_classCallCheck(this, Streamable);
|
|
@@ -4829,7 +4844,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4829
4844
|
args[_key] = arguments[_key];
|
|
4830
4845
|
}
|
|
4831
4846
|
|
|
4832
|
-
_this =
|
|
4847
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4833
4848
|
|
|
4834
4849
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4835
4850
|
|
|
@@ -4949,7 +4964,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4949
4964
|
width: '100%',
|
|
4950
4965
|
height: '100%'
|
|
4951
4966
|
};
|
|
4952
|
-
return
|
|
4967
|
+
return _react["default"].createElement("iframe", {
|
|
4953
4968
|
ref: this.ref,
|
|
4954
4969
|
src: "https://streamable.com/o/".concat(id),
|
|
4955
4970
|
frameBorder: "0",
|
|
@@ -5010,16 +5025,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5010
5025
|
|
|
5011
5026
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5012
5027
|
|
|
5013
|
-
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); }; }
|
|
5014
|
-
|
|
5015
5028
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5016
5029
|
|
|
5017
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5018
|
-
|
|
5019
|
-
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; } }
|
|
5020
|
-
|
|
5021
5030
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5022
5031
|
|
|
5032
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5033
|
+
|
|
5023
5034
|
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); }
|
|
5024
5035
|
|
|
5025
5036
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5030,48 +5041,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5030
5041
|
var SDK_GLOBAL = 'Wistia';
|
|
5031
5042
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5032
5043
|
|
|
5033
|
-
var Wistia =
|
|
5044
|
+
var Wistia =
|
|
5045
|
+
/*#__PURE__*/
|
|
5046
|
+
function (_Component) {
|
|
5034
5047
|
_inherits(Wistia, _Component);
|
|
5035
5048
|
|
|
5036
|
-
var _super = _createSuper(Wistia);
|
|
5037
|
-
|
|
5038
5049
|
function Wistia() {
|
|
5050
|
+
var _getPrototypeOf2;
|
|
5051
|
+
|
|
5039
5052
|
var _this;
|
|
5040
5053
|
|
|
5041
5054
|
_classCallCheck(this, Wistia);
|
|
5042
5055
|
|
|
5043
|
-
for (var _len = arguments.length,
|
|
5044
|
-
|
|
5056
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5057
|
+
args[_key] = arguments[_key];
|
|
5045
5058
|
}
|
|
5046
5059
|
|
|
5047
|
-
_this =
|
|
5060
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5048
5061
|
|
|
5049
5062
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5050
5063
|
|
|
5051
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5052
|
-
var _this$props;
|
|
5053
|
-
|
|
5054
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5055
|
-
});
|
|
5056
|
-
|
|
5057
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5058
|
-
var _this$props2;
|
|
5059
|
-
|
|
5060
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5061
|
-
});
|
|
5062
|
-
|
|
5063
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5064
|
-
var _this$props3;
|
|
5065
|
-
|
|
5066
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5067
|
-
});
|
|
5068
|
-
|
|
5069
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5070
|
-
var _this$props4;
|
|
5071
|
-
|
|
5072
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5073
|
-
});
|
|
5074
|
-
|
|
5075
5064
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5076
5065
|
_this.callPlayer('mute');
|
|
5077
5066
|
});
|
|
@@ -5093,13 +5082,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5093
5082
|
value: function load(url) {
|
|
5094
5083
|
var _this2 = this;
|
|
5095
5084
|
|
|
5096
|
-
var _this$
|
|
5097
|
-
playing = _this$
|
|
5098
|
-
muted = _this$
|
|
5099
|
-
controls = _this$
|
|
5100
|
-
_onReady = _this$
|
|
5101
|
-
|
|
5102
|
-
|
|
5085
|
+
var _this$props = this.props,
|
|
5086
|
+
playing = _this$props.playing,
|
|
5087
|
+
muted = _this$props.muted,
|
|
5088
|
+
controls = _this$props.controls,
|
|
5089
|
+
_onReady = _this$props.onReady,
|
|
5090
|
+
onPlay = _this$props.onPlay,
|
|
5091
|
+
onPause = _this$props.onPause,
|
|
5092
|
+
onSeek = _this$props.onSeek,
|
|
5093
|
+
onEnded = _this$props.onEnded,
|
|
5094
|
+
config = _this$props.config,
|
|
5095
|
+
onError = _this$props.onError;
|
|
5103
5096
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5104
5097
|
window._wq = window._wq || [];
|
|
5105
5098
|
|
|
@@ -5116,28 +5109,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5116
5109
|
|
|
5117
5110
|
_this2.unbind();
|
|
5118
5111
|
|
|
5119
|
-
_this2.player.bind('play',
|
|
5112
|
+
_this2.player.bind('play', onPlay);
|
|
5120
5113
|
|
|
5121
|
-
_this2.player.bind('pause',
|
|
5114
|
+
_this2.player.bind('pause', onPause);
|
|
5122
5115
|
|
|
5123
|
-
_this2.player.bind('seek',
|
|
5116
|
+
_this2.player.bind('seek', onSeek);
|
|
5124
5117
|
|
|
5125
|
-
_this2.player.bind('end',
|
|
5118
|
+
_this2.player.bind('end', onEnded);
|
|
5126
5119
|
|
|
5127
5120
|
_onReady();
|
|
5128
5121
|
}
|
|
5129
5122
|
});
|
|
5130
5123
|
}, onError);
|
|
5131
5124
|
}
|
|
5132
|
-
}, {
|
|
5133
|
-
key: "unbind",
|
|
5134
|
-
value: function unbind() {
|
|
5135
|
-
this.player.unbind('play', this.onPlay);
|
|
5136
|
-
this.player.unbind('pause', this.onPause);
|
|
5137
|
-
this.player.unbind('seek', this.onSeek);
|
|
5138
|
-
this.player.unbind('end', this.onEnded);
|
|
5139
|
-
} // Proxy methods to prevent listener leaks
|
|
5140
|
-
|
|
5141
5125
|
}, {
|
|
5142
5126
|
key: "play",
|
|
5143
5127
|
value: function play() {
|
|
@@ -5148,6 +5132,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5148
5132
|
value: function pause() {
|
|
5149
5133
|
this.callPlayer('pause');
|
|
5150
5134
|
}
|
|
5135
|
+
}, {
|
|
5136
|
+
key: "unbind",
|
|
5137
|
+
value: function unbind() {
|
|
5138
|
+
var _this$props2 = this.props,
|
|
5139
|
+
onPlay = _this$props2.onPlay,
|
|
5140
|
+
onPause = _this$props2.onPause,
|
|
5141
|
+
onSeek = _this$props2.onSeek,
|
|
5142
|
+
onEnded = _this$props2.onEnded;
|
|
5143
|
+
this.player.unbind('play', onPlay);
|
|
5144
|
+
this.player.unbind('pause', onPause);
|
|
5145
|
+
this.player.unbind('seek', onSeek);
|
|
5146
|
+
this.player.unbind('end', onEnded);
|
|
5147
|
+
}
|
|
5151
5148
|
}, {
|
|
5152
5149
|
key: "stop",
|
|
5153
5150
|
value: function stop() {
|
|
@@ -5193,7 +5190,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5193
5190
|
width: '100%',
|
|
5194
5191
|
height: '100%'
|
|
5195
5192
|
};
|
|
5196
|
-
return
|
|
5193
|
+
return _react["default"].createElement("div", {
|
|
5197
5194
|
key: id,
|
|
5198
5195
|
className: className,
|
|
5199
5196
|
style: style
|
|
@@ -5253,16 +5250,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5253
5250
|
|
|
5254
5251
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5255
5252
|
|
|
5256
|
-
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); }; }
|
|
5257
|
-
|
|
5258
5253
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5259
5254
|
|
|
5260
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5261
|
-
|
|
5262
|
-
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; } }
|
|
5263
|
-
|
|
5264
5255
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5265
5256
|
|
|
5257
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5258
|
+
|
|
5266
5259
|
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); }
|
|
5267
5260
|
|
|
5268
5261
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5275,12 +5268,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5275
5268
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5276
5269
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5277
5270
|
|
|
5278
|
-
var Twitch =
|
|
5271
|
+
var Twitch =
|
|
5272
|
+
/*#__PURE__*/
|
|
5273
|
+
function (_Component) {
|
|
5279
5274
|
_inherits(Twitch, _Component);
|
|
5280
5275
|
|
|
5281
|
-
var _super = _createSuper(Twitch);
|
|
5282
|
-
|
|
5283
5276
|
function Twitch() {
|
|
5277
|
+
var _getPrototypeOf2;
|
|
5278
|
+
|
|
5284
5279
|
var _this;
|
|
5285
5280
|
|
|
5286
5281
|
_classCallCheck(this, Twitch);
|
|
@@ -5289,7 +5284,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5289
5284
|
args[_key] = arguments[_key];
|
|
5290
5285
|
}
|
|
5291
5286
|
|
|
5292
|
-
_this =
|
|
5287
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5293
5288
|
|
|
5294
5289
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5295
5290
|
|
|
@@ -5410,7 +5405,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5410
5405
|
width: '100%',
|
|
5411
5406
|
height: '100%'
|
|
5412
5407
|
};
|
|
5413
|
-
return
|
|
5408
|
+
return _react["default"].createElement("div", {
|
|
5414
5409
|
style: style,
|
|
5415
5410
|
id: this.playerID
|
|
5416
5411
|
});
|
|
@@ -5463,15 +5458,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5463
5458
|
|
|
5464
5459
|
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; }
|
|
5465
5460
|
|
|
5466
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5467
|
-
|
|
5468
|
-
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."); }
|
|
5461
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5469
5462
|
|
|
5470
|
-
function
|
|
5463
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5471
5464
|
|
|
5472
|
-
function
|
|
5473
|
-
|
|
5474
|
-
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; }
|
|
5465
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5475
5466
|
|
|
5476
5467
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5477
5468
|
|
|
@@ -5481,16 +5472,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5481
5472
|
|
|
5482
5473
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5483
5474
|
|
|
5484
|
-
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); }; }
|
|
5485
|
-
|
|
5486
5475
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5487
5476
|
|
|
5488
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5489
|
-
|
|
5490
|
-
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; } }
|
|
5491
|
-
|
|
5492
5477
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5493
5478
|
|
|
5479
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5480
|
+
|
|
5494
5481
|
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); }
|
|
5495
5482
|
|
|
5496
5483
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5502,12 +5489,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5502
5489
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5503
5490
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5504
5491
|
|
|
5505
|
-
var DailyMotion =
|
|
5492
|
+
var DailyMotion =
|
|
5493
|
+
/*#__PURE__*/
|
|
5494
|
+
function (_Component) {
|
|
5506
5495
|
_inherits(DailyMotion, _Component);
|
|
5507
5496
|
|
|
5508
|
-
var _super = _createSuper(DailyMotion);
|
|
5509
|
-
|
|
5510
5497
|
function DailyMotion() {
|
|
5498
|
+
var _getPrototypeOf2;
|
|
5499
|
+
|
|
5511
5500
|
var _this;
|
|
5512
5501
|
|
|
5513
5502
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5516,7 +5505,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5516
5505
|
args[_key] = arguments[_key];
|
|
5517
5506
|
}
|
|
5518
5507
|
|
|
5519
|
-
_this =
|
|
5508
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5520
5509
|
|
|
5521
5510
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5522
5511
|
|
|
@@ -5645,9 +5634,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5645
5634
|
height: '100%',
|
|
5646
5635
|
display: display
|
|
5647
5636
|
};
|
|
5648
|
-
return
|
|
5637
|
+
return _react["default"].createElement("div", {
|
|
5649
5638
|
style: style
|
|
5650
|
-
},
|
|
5639
|
+
}, _react["default"].createElement("div", {
|
|
5651
5640
|
ref: this.ref
|
|
5652
5641
|
}));
|
|
5653
5642
|
}
|
|
@@ -5705,16 +5694,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5705
5694
|
|
|
5706
5695
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5707
5696
|
|
|
5708
|
-
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); }; }
|
|
5709
|
-
|
|
5710
5697
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5711
5698
|
|
|
5712
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5713
|
-
|
|
5714
|
-
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; } }
|
|
5715
|
-
|
|
5716
5699
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5717
5700
|
|
|
5701
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5702
|
+
|
|
5718
5703
|
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); }
|
|
5719
5704
|
|
|
5720
5705
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5725,12 +5710,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5725
5710
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5726
5711
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5727
5712
|
|
|
5728
|
-
var Mixcloud =
|
|
5713
|
+
var Mixcloud =
|
|
5714
|
+
/*#__PURE__*/
|
|
5715
|
+
function (_Component) {
|
|
5729
5716
|
_inherits(Mixcloud, _Component);
|
|
5730
5717
|
|
|
5731
|
-
var _super = _createSuper(Mixcloud);
|
|
5732
|
-
|
|
5733
5718
|
function Mixcloud() {
|
|
5719
|
+
var _getPrototypeOf2;
|
|
5720
|
+
|
|
5734
5721
|
var _this;
|
|
5735
5722
|
|
|
5736
5723
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5739,7 +5726,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5739
5726
|
args[_key] = arguments[_key];
|
|
5740
5727
|
}
|
|
5741
5728
|
|
|
5742
|
-
_this =
|
|
5729
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5743
5730
|
|
|
5744
5731
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5745
5732
|
|
|
@@ -5842,7 +5829,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5842
5829
|
})); // We have to give the iframe a key here to prevent a
|
|
5843
5830
|
// weird dialog appearing when loading a new track
|
|
5844
5831
|
|
|
5845
|
-
return
|
|
5832
|
+
return _react["default"].createElement("iframe", {
|
|
5846
5833
|
key: id,
|
|
5847
5834
|
ref: this.ref,
|
|
5848
5835
|
style: style,
|
|
@@ -5902,33 +5889,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5902
5889
|
|
|
5903
5890
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5904
5891
|
|
|
5905
|
-
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); }; }
|
|
5906
|
-
|
|
5907
5892
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5908
5893
|
|
|
5909
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5910
|
-
|
|
5911
|
-
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; } }
|
|
5912
|
-
|
|
5913
5894
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5914
5895
|
|
|
5896
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5897
|
+
|
|
5915
5898
|
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); }
|
|
5916
5899
|
|
|
5917
5900
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5918
5901
|
|
|
5919
5902
|
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; }
|
|
5920
5903
|
|
|
5921
|
-
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; } } }; }
|
|
5922
|
-
|
|
5923
|
-
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); }
|
|
5924
|
-
|
|
5925
|
-
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; }
|
|
5926
|
-
|
|
5927
5904
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5928
5905
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5929
5906
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5930
5907
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5931
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5908
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5932
5909
|
var HLS_GLOBAL = 'Hls';
|
|
5933
5910
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5934
5911
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5937,11 +5914,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5937
5914
|
|
|
5938
5915
|
function canPlay(url) {
|
|
5939
5916
|
if (url instanceof Array) {
|
|
5940
|
-
var
|
|
5941
|
-
|
|
5917
|
+
var _iteratorNormalCompletion = true;
|
|
5918
|
+
var _didIteratorError = false;
|
|
5919
|
+
var _iteratorError = undefined;
|
|
5942
5920
|
|
|
5943
5921
|
try {
|
|
5944
|
-
for (_iterator.
|
|
5922
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5945
5923
|
var item = _step.value;
|
|
5946
5924
|
|
|
5947
5925
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5953,9 +5931,18 @@ function canPlay(url) {
|
|
|
5953
5931
|
}
|
|
5954
5932
|
}
|
|
5955
5933
|
} catch (err) {
|
|
5956
|
-
|
|
5934
|
+
_didIteratorError = true;
|
|
5935
|
+
_iteratorError = err;
|
|
5957
5936
|
} finally {
|
|
5958
|
-
|
|
5937
|
+
try {
|
|
5938
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5939
|
+
_iterator["return"]();
|
|
5940
|
+
}
|
|
5941
|
+
} finally {
|
|
5942
|
+
if (_didIteratorError) {
|
|
5943
|
+
throw _iteratorError;
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5959
5946
|
}
|
|
5960
5947
|
|
|
5961
5948
|
return false;
|
|
@@ -5979,12 +5966,14 @@ function canEnablePIP(url) {
|
|
|
5979
5966
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5980
5967
|
}
|
|
5981
5968
|
|
|
5982
|
-
var FilePlayer =
|
|
5969
|
+
var FilePlayer =
|
|
5970
|
+
/*#__PURE__*/
|
|
5971
|
+
function (_Component) {
|
|
5983
5972
|
_inherits(FilePlayer, _Component);
|
|
5984
5973
|
|
|
5985
|
-
var _super = _createSuper(FilePlayer);
|
|
5986
|
-
|
|
5987
5974
|
function FilePlayer() {
|
|
5975
|
+
var _getPrototypeOf2;
|
|
5976
|
+
|
|
5988
5977
|
var _this;
|
|
5989
5978
|
|
|
5990
5979
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5993,7 +5982,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5993
5982
|
_args[_key] = arguments[_key];
|
|
5994
5983
|
}
|
|
5995
5984
|
|
|
5996
|
-
_this =
|
|
5985
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5997
5986
|
|
|
5998
5987
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5999
5988
|
var _this$props;
|
|
@@ -6080,19 +6069,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6080
6069
|
|
|
6081
6070
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6082
6071
|
if (typeof source === 'string') {
|
|
6083
|
-
return
|
|
6072
|
+
return _react["default"].createElement("source", {
|
|
6084
6073
|
key: index,
|
|
6085
6074
|
src: source
|
|
6086
6075
|
});
|
|
6087
6076
|
}
|
|
6088
6077
|
|
|
6089
|
-
return
|
|
6078
|
+
return _react["default"].createElement("source", _extends({
|
|
6090
6079
|
key: index
|
|
6091
6080
|
}, source));
|
|
6092
6081
|
});
|
|
6093
6082
|
|
|
6094
6083
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6095
|
-
return
|
|
6084
|
+
return _react["default"].createElement("track", _extends({
|
|
6096
6085
|
key: index
|
|
6097
6086
|
}, track));
|
|
6098
6087
|
});
|
|
@@ -6130,10 +6119,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6130
6119
|
key: "componentWillUnmount",
|
|
6131
6120
|
value: function componentWillUnmount() {
|
|
6132
6121
|
this.removeListeners(this.player);
|
|
6133
|
-
|
|
6134
|
-
if (this.hls) {
|
|
6135
|
-
this.hls.destroy();
|
|
6136
|
-
}
|
|
6137
6122
|
}
|
|
6138
6123
|
}, {
|
|
6139
6124
|
key: "addListeners",
|
|
@@ -6264,6 +6249,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6264
6249
|
value: function stop() {
|
|
6265
6250
|
this.player.removeAttribute('src');
|
|
6266
6251
|
|
|
6252
|
+
if (this.hls) {
|
|
6253
|
+
this.hls.destroy();
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6267
6256
|
if (this.dash) {
|
|
6268
6257
|
this.dash.reset();
|
|
6269
6258
|
}
|
|
@@ -6375,7 +6364,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6375
6364
|
width: width === 'auto' ? width : '100%',
|
|
6376
6365
|
height: height === 'auto' ? height : '100%'
|
|
6377
6366
|
};
|
|
6378
|
-
return
|
|
6367
|
+
return _react["default"].createElement(Element, _extends({
|
|
6379
6368
|
ref: this.ref,
|
|
6380
6369
|
src: this.getSource(url),
|
|
6381
6370
|
style: style,
|
|
@@ -6465,16 +6454,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6465
6454
|
|
|
6466
6455
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6467
6456
|
|
|
6468
|
-
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); }; }
|
|
6469
|
-
|
|
6470
6457
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6471
6458
|
|
|
6472
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6473
|
-
|
|
6474
|
-
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; } }
|
|
6475
|
-
|
|
6476
6459
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6477
6460
|
|
|
6461
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6462
|
+
|
|
6478
6463
|
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); }
|
|
6479
6464
|
|
|
6480
6465
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6483,12 +6468,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6483
6468
|
|
|
6484
6469
|
var ICON_SIZE = '64px';
|
|
6485
6470
|
|
|
6486
|
-
var Preview =
|
|
6471
|
+
var Preview =
|
|
6472
|
+
/*#__PURE__*/
|
|
6473
|
+
function (_Component) {
|
|
6487
6474
|
_inherits(Preview, _Component);
|
|
6488
6475
|
|
|
6489
|
-
var _super = _createSuper(Preview);
|
|
6490
|
-
|
|
6491
6476
|
function Preview() {
|
|
6477
|
+
var _getPrototypeOf2;
|
|
6478
|
+
|
|
6492
6479
|
var _this;
|
|
6493
6480
|
|
|
6494
6481
|
_classCallCheck(this, Preview);
|
|
@@ -6497,7 +6484,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6497
6484
|
args[_key] = arguments[_key];
|
|
6498
6485
|
}
|
|
6499
6486
|
|
|
6500
|
-
_this =
|
|
6487
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6501
6488
|
|
|
6502
6489
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6503
6490
|
|
|
@@ -6595,15 +6582,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6595
6582
|
}
|
|
6596
6583
|
};
|
|
6597
6584
|
|
|
6598
|
-
var defaultPlayIcon =
|
|
6585
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6599
6586
|
style: styles.shadow,
|
|
6600
6587
|
className: "react-player__shadow"
|
|
6601
|
-
},
|
|
6588
|
+
}, _react["default"].createElement("div", {
|
|
6602
6589
|
style: styles.playIcon,
|
|
6603
6590
|
className: "react-player__play-icon"
|
|
6604
6591
|
}));
|
|
6605
6592
|
|
|
6606
|
-
return
|
|
6593
|
+
return _react["default"].createElement("div", {
|
|
6607
6594
|
style: styles.preview,
|
|
6608
6595
|
className: "react-player__preview",
|
|
6609
6596
|
onClick: onClick
|
|
@@ -6640,12 +6627,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6640
6627
|
|
|
6641
6628
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6642
6629
|
|
|
6643
|
-
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; } } }; }
|
|
6644
|
-
|
|
6645
|
-
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); }
|
|
6646
|
-
|
|
6647
|
-
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; }
|
|
6648
|
-
|
|
6649
6630
|
var PRELOAD_PLAYERS = [{
|
|
6650
6631
|
Player: YouTube_1.YouTube,
|
|
6651
6632
|
configKey: 'youtube',
|
|
@@ -6666,16 +6647,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6666
6647
|
|
|
6667
6648
|
function renderPreloadPlayers(url, controls, config) {
|
|
6668
6649
|
var players = [];
|
|
6669
|
-
|
|
6670
|
-
var
|
|
6671
|
-
|
|
6650
|
+
var _iteratorNormalCompletion = true;
|
|
6651
|
+
var _didIteratorError = false;
|
|
6652
|
+
var _iteratorError = undefined;
|
|
6672
6653
|
|
|
6673
6654
|
try {
|
|
6674
|
-
for (_iterator.
|
|
6655
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6675
6656
|
var player = _step.value;
|
|
6676
6657
|
|
|
6677
6658
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6678
|
-
players.push(
|
|
6659
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6679
6660
|
key: player.Player.displayName,
|
|
6680
6661
|
activePlayer: player.Player,
|
|
6681
6662
|
url: player.url,
|
|
@@ -6687,9 +6668,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6687
6668
|
}
|
|
6688
6669
|
}
|
|
6689
6670
|
} catch (err) {
|
|
6690
|
-
|
|
6671
|
+
_didIteratorError = true;
|
|
6672
|
+
_iteratorError = err;
|
|
6691
6673
|
} finally {
|
|
6692
|
-
|
|
6674
|
+
try {
|
|
6675
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6676
|
+
_iterator["return"]();
|
|
6677
|
+
}
|
|
6678
|
+
} finally {
|
|
6679
|
+
if (_didIteratorError) {
|
|
6680
|
+
throw _iteratorError;
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6693
6683
|
}
|
|
6694
6684
|
|
|
6695
6685
|
return players;
|
|
@@ -6813,17 +6803,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6813
6803
|
|
|
6814
6804
|
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); }
|
|
6815
6805
|
|
|
6816
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6817
|
-
|
|
6818
|
-
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."); }
|
|
6819
|
-
|
|
6820
|
-
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); }
|
|
6806
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6821
6807
|
|
|
6822
|
-
function
|
|
6808
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6823
6809
|
|
|
6824
|
-
function
|
|
6810
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6825
6811
|
|
|
6826
|
-
function
|
|
6812
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6827
6813
|
|
|
6828
6814
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6829
6815
|
|
|
@@ -6831,16 +6817,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6831
6817
|
|
|
6832
6818
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6833
6819
|
|
|
6834
|
-
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); }; }
|
|
6835
|
-
|
|
6836
6820
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6837
6821
|
|
|
6838
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6839
|
-
|
|
6840
|
-
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; } }
|
|
6841
|
-
|
|
6842
6822
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6843
6823
|
|
|
6824
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6825
|
+
|
|
6844
6826
|
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); }
|
|
6845
6827
|
|
|
6846
6828
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6850,12 +6832,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6850
6832
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6851
6833
|
var customPlayers = [];
|
|
6852
6834
|
|
|
6853
|
-
var ReactPlayer =
|
|
6835
|
+
var ReactPlayer =
|
|
6836
|
+
/*#__PURE__*/
|
|
6837
|
+
function (_Component) {
|
|
6854
6838
|
_inherits(ReactPlayer, _Component);
|
|
6855
6839
|
|
|
6856
|
-
var _super = _createSuper(ReactPlayer);
|
|
6857
|
-
|
|
6858
6840
|
function ReactPlayer() {
|
|
6841
|
+
var _getPrototypeOf2;
|
|
6842
|
+
|
|
6859
6843
|
var _this;
|
|
6860
6844
|
|
|
6861
6845
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6864,7 +6848,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6864
6848
|
args[_key] = arguments[_key];
|
|
6865
6849
|
}
|
|
6866
6850
|
|
|
6867
|
-
_this =
|
|
6851
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6868
6852
|
|
|
6869
6853
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6870
6854
|
|
|
@@ -6975,7 +6959,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6975
6959
|
key: "renderActivePlayer",
|
|
6976
6960
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6977
6961
|
if (!url) return null;
|
|
6978
|
-
return
|
|
6962
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6979
6963
|
key: activePlayer.displayName,
|
|
6980
6964
|
ref: this.activePlayerRef,
|
|
6981
6965
|
config: this.config,
|
|
@@ -7012,14 +6996,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
7012
6996
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
7013
6997
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
7014
6998
|
|
|
7015
|
-
var preview =
|
|
6999
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
7016
7000
|
url: url,
|
|
7017
7001
|
light: light,
|
|
7018
7002
|
playIcon: playIcon,
|
|
7019
7003
|
onClick: this.handleClickPreview
|
|
7020
7004
|
});
|
|
7021
7005
|
|
|
7022
|
-
return
|
|
7006
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
7023
7007
|
ref: this.wrapperRef,
|
|
7024
7008
|
style: _objectSpread({}, style, {
|
|
7025
7009
|
width: width,
|
|
@@ -7343,7 +7327,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7343
7327
|
var queue = Math.floor(duration / 10);
|
|
7344
7328
|
var segment = Math.floor(current / queue);
|
|
7345
7329
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7346
|
-
Segment.report_video_event('Video Ready', main.
|
|
7330
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7347
7331
|
//autoplay
|
|
7348
7332
|
|
|
7349
7333
|
//Small pause before starting next video
|
|
@@ -7364,7 +7348,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7364
7348
|
var segment = Math.floor(current / queue);
|
|
7365
7349
|
|
|
7366
7350
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7367
|
-
Segment.report_video_event('Video End', main.
|
|
7351
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7368
7352
|
setEndReported(true);
|
|
7369
7353
|
clearInterval(intervalID);
|
|
7370
7354
|
}
|
|
@@ -7415,7 +7399,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7415
7399
|
var segment = Math.floor(current / queue);
|
|
7416
7400
|
if (!queueProgress.includes(segment)) {
|
|
7417
7401
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7418
|
-
Segment.report_video_event('Video Segment', main.
|
|
7402
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7419
7403
|
queueProgress.push(segment);
|
|
7420
7404
|
}
|
|
7421
7405
|
};
|
|
@@ -7429,7 +7413,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7429
7413
|
var segment = Math.floor(current / queue);
|
|
7430
7414
|
|
|
7431
7415
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7432
|
-
Segment.report_video_event('Video Play', main.
|
|
7416
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7433
7417
|
|
|
7434
7418
|
if (!playReported) {
|
|
7435
7419
|
setPlayReported(true);
|
|
@@ -7448,7 +7432,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7448
7432
|
var segment = Math.floor(current / queue);
|
|
7449
7433
|
|
|
7450
7434
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7451
|
-
Segment.report_video_event('Video Pause', main.
|
|
7435
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7452
7436
|
};
|
|
7453
7437
|
|
|
7454
7438
|
// Youtube Options
|
|
@@ -7566,7 +7550,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7566
7550
|
React__default.createElement(
|
|
7567
7551
|
'div',
|
|
7568
7552
|
{ className: 'vid-text' },
|
|
7569
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7553
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7570
7554
|
),
|
|
7571
7555
|
React__default.createElement(
|
|
7572
7556
|
'style',
|
|
@@ -7884,7 +7868,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7884
7868
|
);
|
|
7885
7869
|
};
|
|
7886
7870
|
|
|
7887
|
-
var numberOfPaginations = main.
|
|
7871
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7888
7872
|
|
|
7889
7873
|
var Quiz = function Quiz(_ref) {
|
|
7890
7874
|
var quizzes = _ref.quizzes,
|
|
@@ -8004,7 +7988,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
8004
7988
|
var renderPagination = function renderPagination() {
|
|
8005
7989
|
return React__default.createElement(
|
|
8006
7990
|
Pagination,
|
|
8007
|
-
{ className: 'p-0 m-0', size: main.
|
|
7991
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
8008
7992
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8009
7993
|
return changePage('first');
|
|
8010
7994
|
}, disabled: currentPage === 1 }),
|
|
@@ -8330,7 +8314,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8330
8314
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8331
8315
|
React__default.createElement(
|
|
8332
8316
|
'a',
|
|
8333
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8317
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8334
8318
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8335
8319
|
React__default.createElement(
|
|
8336
8320
|
'div',
|
|
@@ -8625,7 +8609,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8625
8609
|
|
|
8626
8610
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8627
8611
|
if (biography) {
|
|
8628
|
-
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8612
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8629
8613
|
}
|
|
8630
8614
|
};
|
|
8631
8615
|
|
|
@@ -8711,7 +8695,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8711
8695
|
//console.log('useLayoutEffect')
|
|
8712
8696
|
if (!firstLoad) {
|
|
8713
8697
|
setUpArrowClicked(false);
|
|
8714
|
-
if (main.
|
|
8698
|
+
if (main.main_36) {
|
|
8715
8699
|
grabLoadedAds();
|
|
8716
8700
|
} else {
|
|
8717
8701
|
scrollToArticle();
|
|
@@ -8735,7 +8719,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8735
8719
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8736
8720
|
if (pageview) pageview(path);
|
|
8737
8721
|
|
|
8738
|
-
if (!main.
|
|
8722
|
+
if (!main.main_36) {
|
|
8739
8723
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8740
8724
|
if (window.googletag && googletag.pubadsReady) {
|
|
8741
8725
|
index.lib_3.refresh();
|
|
@@ -8743,7 +8727,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8743
8727
|
});
|
|
8744
8728
|
}
|
|
8745
8729
|
//Refresh leaderboard ad on mobile
|
|
8746
|
-
if (main.
|
|
8730
|
+
if (main.main_36) {
|
|
8747
8731
|
var leaderboardSlotId = '';
|
|
8748
8732
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8749
8733
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8812,7 +8796,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8812
8796
|
React__default.createElement(
|
|
8813
8797
|
'div',
|
|
8814
8798
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8815
|
-
main.
|
|
8799
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8816
8800
|
if (index === 0) {
|
|
8817
8801
|
return React__default.createElement(
|
|
8818
8802
|
'div',
|
|
@@ -8903,7 +8887,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8903
8887
|
React__default.createElement(
|
|
8904
8888
|
'div',
|
|
8905
8889
|
{ className: 'mt-2 mb-2' },
|
|
8906
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8890
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8907
8891
|
serializers: getSerializers,
|
|
8908
8892
|
videoAccountIDs: accountIDs,
|
|
8909
8893
|
blocks: article.text,
|
|
@@ -8934,7 +8918,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8934
8918
|
React__default.createElement(
|
|
8935
8919
|
'div',
|
|
8936
8920
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8937
|
-
main.
|
|
8921
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8938
8922
|
if (innerIndex === 0) {
|
|
8939
8923
|
return React__default.createElement(
|
|
8940
8924
|
'div',
|
|
@@ -9021,7 +9005,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
9021
9005
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9022
9006
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9023
9007
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9024
|
-
React__default.createElement('img', _extends._extends({
|
|
9008
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9025
9009
|
style: figureImageStyle,
|
|
9026
9010
|
className: 'figure-image',
|
|
9027
9011
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9089,7 +9073,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9089
9073
|
} else {
|
|
9090
9074
|
return React__default.createElement(
|
|
9091
9075
|
Tooltip,
|
|
9092
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9076
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9093
9077
|
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9094
9078
|
);
|
|
9095
9079
|
}
|
|
@@ -9103,32 +9087,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9103
9087
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9104
9088
|
|
|
9105
9089
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9106
|
-
var triggerAction = main.
|
|
9107
|
-
var placementLocation = main.
|
|
9090
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9091
|
+
var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9108
9092
|
return React__default.createElement(
|
|
9109
9093
|
'picture',
|
|
9110
9094
|
null,
|
|
9111
9095
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9112
9096
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9113
9097
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9114
|
-
main.
|
|
9098
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9115
9099
|
style: figureImageStyle,
|
|
9116
9100
|
className: 'figure-image',
|
|
9117
9101
|
src: urlFor({ source: node, client: client }),
|
|
9118
9102
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9119
|
-
}, !link && !main.
|
|
9103
|
+
}, !link && !main.main_35 && {
|
|
9120
9104
|
onClick: function onClick() {
|
|
9121
9105
|
return handleClickFigure(node, client);
|
|
9122
9106
|
}
|
|
9123
9107
|
})) : React__default.createElement(
|
|
9124
9108
|
OverlayTrigger,
|
|
9125
9109
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9126
|
-
React__default.createElement('img', _extends._extends({
|
|
9110
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9127
9111
|
style: figureImageStyle,
|
|
9128
9112
|
className: 'figure-image',
|
|
9129
9113
|
src: urlFor({ source: node, client: client }),
|
|
9130
9114
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9131
|
-
}, !link && !main.
|
|
9115
|
+
}, !link && !main.main_35 && {
|
|
9132
9116
|
onClick: function onClick() {
|
|
9133
9117
|
return handleClickFigure(node, client);
|
|
9134
9118
|
}
|
|
@@ -9287,7 +9271,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9287
9271
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9288
9272
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9289
9273
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9290
|
-
React__default.createElement('img', _extends._extends({
|
|
9274
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9291
9275
|
'images-count': imagesCount,
|
|
9292
9276
|
className: 'multi-figure-image',
|
|
9293
9277
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9347,32 +9331,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9347
9331
|
link = _ref3.link,
|
|
9348
9332
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9349
9333
|
|
|
9350
|
-
var triggerAction = main.
|
|
9351
|
-
var placementLocation = main.
|
|
9334
|
+
var triggerAction = main.main_35 ? 'click' : 'hover';
|
|
9335
|
+
var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9352
9336
|
return React__default.createElement(
|
|
9353
9337
|
'picture',
|
|
9354
9338
|
null,
|
|
9355
9339
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9356
9340
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9357
9341
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9358
|
-
main.
|
|
9342
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9359
9343
|
'images-count': imagesCount,
|
|
9360
9344
|
className: 'multi-figure-image',
|
|
9361
9345
|
src: urlFor({ source: image, client: client }),
|
|
9362
9346
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9363
|
-
}, !link && !main.
|
|
9347
|
+
}, !link && !main.main_35 && {
|
|
9364
9348
|
onClick: function onClick() {
|
|
9365
9349
|
return handleClickFigure(image, client);
|
|
9366
9350
|
}
|
|
9367
9351
|
})) : React__default.createElement(
|
|
9368
9352
|
OverlayTrigger,
|
|
9369
9353
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9370
|
-
React__default.createElement('img', _extends._extends({
|
|
9354
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9371
9355
|
'images-count': imagesCount,
|
|
9372
9356
|
className: 'multi-figure-image',
|
|
9373
9357
|
src: urlFor({ source: image, client: client }),
|
|
9374
9358
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9375
|
-
}, !link && !main.
|
|
9359
|
+
}, !link && !main.main_35 && {
|
|
9376
9360
|
onClick: function onClick() {
|
|
9377
9361
|
return handleClickFigure(image, client);
|
|
9378
9362
|
}
|
|
@@ -9400,7 +9384,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9400
9384
|
} else {
|
|
9401
9385
|
return React__default.createElement(
|
|
9402
9386
|
Tooltip,
|
|
9403
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9387
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9404
9388
|
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9405
9389
|
);
|
|
9406
9390
|
}
|
|
@@ -9420,7 +9404,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9420
9404
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9421
9405
|
image.link ? React__default.createElement(
|
|
9422
9406
|
'a',
|
|
9423
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9407
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9424
9408
|
React__default.createElement(
|
|
9425
9409
|
'div',
|
|
9426
9410
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9448,7 +9432,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9448
9432
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9449
9433
|
image.link ? React__default.createElement(
|
|
9450
9434
|
'a',
|
|
9451
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9435
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9452
9436
|
React__default.createElement(
|
|
9453
9437
|
'div',
|
|
9454
9438
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9577,7 +9561,7 @@ exports.__esModule = true;
|
|
|
9577
9561
|
|
|
9578
9562
|
|
|
9579
9563
|
|
|
9580
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9564
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9581
9565
|
|
|
9582
9566
|
|
|
9583
9567
|
|
|
@@ -9890,7 +9874,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9890
9874
|
return React__default.createElement(
|
|
9891
9875
|
'div',
|
|
9892
9876
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9893
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9877
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9894
9878
|
);
|
|
9895
9879
|
})
|
|
9896
9880
|
);
|
|
@@ -10168,7 +10152,7 @@ var getSerializers = function getSerializers() {
|
|
|
10168
10152
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10169
10153
|
return href ? React__default.createElement(
|
|
10170
10154
|
'a',
|
|
10171
|
-
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10155
|
+
_extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10172
10156
|
children
|
|
10173
10157
|
) : children;
|
|
10174
10158
|
},
|