@mjhls/mjh-framework 1.0.881 → 1.0.883-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +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 +25 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -22
- 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/DeckContent.js +30 -30
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/DeckQueuePaginated.js +339 -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 +27 -27
- 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/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 +443 -0
- package/dist/cjs/MediaSeriesCard-c6a6bfd3.js +9411 -0
- package/dist/cjs/MediaSeriesLanding.js +53 -9534
- package/dist/cjs/MediaSeriesLandingPaginated.js +521 -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-f3ef7bc1.js +59 -0
- package/dist/cjs/PartnerDetailListing.js +1233 -160
- 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/PublicationLanding.js +34 -34
- package/dist/cjs/QueueDeckExpanded.js +21 -21
- package/dist/cjs/QueueDeckExpandedPaginated.js +1377 -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 +25 -25
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +23 -23
- 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 +5 -5
- package/dist/cjs/getRelatedArticle.js +4 -4
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +24 -24
- 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-d3451292.js → index-396089c0.js} +510 -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 +41 -43
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-337c73a7.js → inherits-cba9c846.js} +7 -7
- 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/DeckContent.js +45 -45
- package/dist/esm/DeckQueue.js +37 -37
- package/dist/esm/DeckQueuePaginated.js +333 -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 +71 -71
- 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/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 +437 -0
- package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
- package/dist/esm/MediaSeriesLanding.js +53 -9533
- package/dist/esm/MediaSeriesLandingPaginated.js +516 -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-a24855d4.js +54 -0
- package/dist/esm/PartnerDetailListing.js +1234 -161
- 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/PublicationLanding.js +56 -56
- package/dist/esm/QueueDeckExpanded.js +21 -21
- package/dist/esm/QueueDeckExpandedPaginated.js +1371 -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/{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-cf149780.js → index-d1476645.js} +529 -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 +46 -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 -112
- 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-cba9c846.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(
|
|
@@ -2367,10 +2397,15 @@ var Video = function Video(_ref) {
|
|
|
2367
2397
|
setVideoLoaded(true);
|
|
2368
2398
|
}
|
|
2369
2399
|
}, []);
|
|
2400
|
+
|
|
2401
|
+
var onVideoFailure = function onVideoFailure(err) {
|
|
2402
|
+
console.log('could not load video', err);
|
|
2403
|
+
};
|
|
2404
|
+
|
|
2370
2405
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2371
2406
|
//console.log('success:', success.ref)
|
|
2372
2407
|
var player = success.ref;
|
|
2373
|
-
if (_typeof
|
|
2408
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2374
2409
|
player.ima3.settings.debug = true;
|
|
2375
2410
|
if (targeting.content_placement && targeting.document_url) {
|
|
2376
2411
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2425,7 +2460,7 @@ var Video = function Video(_ref) {
|
|
|
2425
2460
|
}
|
|
2426
2461
|
|
|
2427
2462
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2428
|
-
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);
|
|
2429
2464
|
});
|
|
2430
2465
|
|
|
2431
2466
|
// play
|
|
@@ -2435,7 +2470,7 @@ var Video = function Video(_ref) {
|
|
|
2435
2470
|
var queue = Math.floor(duration / 10);
|
|
2436
2471
|
var segment = Math.floor(current / queue);
|
|
2437
2472
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2438
|
-
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);
|
|
2439
2474
|
});
|
|
2440
2475
|
|
|
2441
2476
|
// pause
|
|
@@ -2445,7 +2480,7 @@ var Video = function Video(_ref) {
|
|
|
2445
2480
|
var queue = Math.floor(duration / 10);
|
|
2446
2481
|
var segment = Math.floor(current / queue);
|
|
2447
2482
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2448
|
-
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);
|
|
2449
2484
|
});
|
|
2450
2485
|
|
|
2451
2486
|
// end
|
|
@@ -2455,7 +2490,7 @@ var Video = function Video(_ref) {
|
|
|
2455
2490
|
var queue = Math.floor(duration / 10);
|
|
2456
2491
|
var segment = Math.floor(current / queue);
|
|
2457
2492
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2458
|
-
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);
|
|
2459
2494
|
autoplayNextVideo(evt);
|
|
2460
2495
|
});
|
|
2461
2496
|
|
|
@@ -2467,7 +2502,7 @@ var Video = function Video(_ref) {
|
|
|
2467
2502
|
var segment = Math.floor(current / queue);
|
|
2468
2503
|
if (!queueProgress.includes(segment)) {
|
|
2469
2504
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2470
|
-
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);
|
|
2471
2506
|
queueProgress.push(segment);
|
|
2472
2507
|
}
|
|
2473
2508
|
});
|
|
@@ -2479,7 +2514,7 @@ var Video = function Video(_ref) {
|
|
|
2479
2514
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2480
2515
|
|
|
2481
2516
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2482
|
-
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);
|
|
2483
2518
|
});
|
|
2484
2519
|
|
|
2485
2520
|
// ad ended
|
|
@@ -2488,7 +2523,7 @@ var Video = function Video(_ref) {
|
|
|
2488
2523
|
var id = player.ads.ad.id;
|
|
2489
2524
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2490
2525
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2491
|
-
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);
|
|
2492
2527
|
});
|
|
2493
2528
|
};
|
|
2494
2529
|
|
|
@@ -2499,6 +2534,7 @@ var Video = function Video(_ref) {
|
|
|
2499
2534
|
null,
|
|
2500
2535
|
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2501
2536
|
onSuccess: onVideoSuccess,
|
|
2537
|
+
onFailure: onVideoFailure,
|
|
2502
2538
|
accountId: accountIDs.brightcove.accountId,
|
|
2503
2539
|
videoId: videoID,
|
|
2504
2540
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2918,17 +2954,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2918
2954
|
|
|
2919
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; }
|
|
2920
2956
|
|
|
2921
|
-
function
|
|
2922
|
-
|
|
2923
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2924
|
-
|
|
2925
|
-
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."); }
|
|
2957
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2926
2958
|
|
|
2927
|
-
function
|
|
2959
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2928
2960
|
|
|
2929
|
-
function
|
|
2930
|
-
|
|
2931
|
-
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; }
|
|
2932
2962
|
|
|
2933
2963
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2934
2964
|
|
|
@@ -3058,12 +3088,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3058
3088
|
|
|
3059
3089
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3060
3090
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3061
|
-
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3091
|
+
var _iteratorNormalCompletion = true;
|
|
3092
|
+
var _didIteratorError = false;
|
|
3093
|
+
var _iteratorError = undefined;
|
|
3064
3094
|
|
|
3065
3095
|
try {
|
|
3066
|
-
for (_iterator.
|
|
3096
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3067
3097
|
var p = _step.value;
|
|
3068
3098
|
|
|
3069
3099
|
if (props$1[p]) {
|
|
@@ -3078,9 +3108,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3078
3108
|
}
|
|
3079
3109
|
}
|
|
3080
3110
|
} catch (err) {
|
|
3081
|
-
|
|
3111
|
+
_didIteratorError = true;
|
|
3112
|
+
_iteratorError = err;
|
|
3082
3113
|
} finally {
|
|
3083
|
-
|
|
3114
|
+
try {
|
|
3115
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3116
|
+
_iterator["return"]();
|
|
3117
|
+
}
|
|
3118
|
+
} finally {
|
|
3119
|
+
if (_didIteratorError) {
|
|
3120
|
+
throw _iteratorError;
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3084
3123
|
}
|
|
3085
3124
|
|
|
3086
3125
|
return config;
|
|
@@ -3227,16 +3266,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3227
3266
|
|
|
3228
3267
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3229
3268
|
|
|
3230
|
-
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); }; }
|
|
3231
|
-
|
|
3232
3269
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3233
3270
|
|
|
3234
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3235
|
-
|
|
3236
|
-
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; } }
|
|
3237
|
-
|
|
3238
3271
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3239
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
|
+
|
|
3240
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); }
|
|
3241
3276
|
|
|
3242
3277
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3245,12 +3280,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3245
3280
|
|
|
3246
3281
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3247
3282
|
|
|
3248
|
-
var Player =
|
|
3283
|
+
var Player =
|
|
3284
|
+
/*#__PURE__*/
|
|
3285
|
+
function (_Component) {
|
|
3249
3286
|
_inherits(Player, _Component);
|
|
3250
3287
|
|
|
3251
|
-
var _super = _createSuper(Player);
|
|
3252
|
-
|
|
3253
3288
|
function Player() {
|
|
3289
|
+
var _getPrototypeOf2;
|
|
3290
|
+
|
|
3254
3291
|
var _this;
|
|
3255
3292
|
|
|
3256
3293
|
_classCallCheck(this, Player);
|
|
@@ -3259,7 +3296,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3259
3296
|
_args[_key] = arguments[_key];
|
|
3260
3297
|
}
|
|
3261
3298
|
|
|
3262
|
-
_this =
|
|
3299
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3263
3300
|
|
|
3264
3301
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3265
3302
|
|
|
@@ -3584,7 +3621,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3584
3621
|
return null;
|
|
3585
3622
|
}
|
|
3586
3623
|
|
|
3587
|
-
return
|
|
3624
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3588
3625
|
ref: this.ref,
|
|
3589
3626
|
onReady: this.handleReady,
|
|
3590
3627
|
onPlay: this.handlePlay,
|
|
@@ -3645,16 +3682,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3645
3682
|
|
|
3646
3683
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3647
3684
|
|
|
3648
|
-
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); }; }
|
|
3649
|
-
|
|
3650
3685
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3651
3686
|
|
|
3652
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3653
|
-
|
|
3654
|
-
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; } }
|
|
3655
|
-
|
|
3656
3687
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3657
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
|
+
|
|
3658
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); }
|
|
3659
3692
|
|
|
3660
3693
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3666,12 +3699,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3666
3699
|
function createSinglePlayer(activePlayer) {
|
|
3667
3700
|
var _class, _temp;
|
|
3668
3701
|
|
|
3669
|
-
return _temp = _class =
|
|
3702
|
+
return _temp = _class =
|
|
3703
|
+
/*#__PURE__*/
|
|
3704
|
+
function (_Component) {
|
|
3670
3705
|
_inherits(SinglePlayer, _Component);
|
|
3671
3706
|
|
|
3672
|
-
var _super = _createSuper(SinglePlayer);
|
|
3673
|
-
|
|
3674
3707
|
function SinglePlayer() {
|
|
3708
|
+
var _getPrototypeOf2;
|
|
3709
|
+
|
|
3675
3710
|
var _this;
|
|
3676
3711
|
|
|
3677
3712
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3680,7 +3715,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3680
3715
|
args[_key] = arguments[_key];
|
|
3681
3716
|
}
|
|
3682
3717
|
|
|
3683
|
-
_this =
|
|
3718
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3684
3719
|
|
|
3685
3720
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3686
3721
|
|
|
@@ -3748,12 +3783,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3748
3783
|
height = _this$props.height,
|
|
3749
3784
|
Wrapper = _this$props.wrapper;
|
|
3750
3785
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3751
|
-
return
|
|
3786
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3752
3787
|
style: _objectSpread({}, style, {
|
|
3753
3788
|
width: width,
|
|
3754
3789
|
height: height
|
|
3755
3790
|
})
|
|
3756
|
-
}, otherProps),
|
|
3791
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3757
3792
|
ref: this.ref,
|
|
3758
3793
|
activePlayer: activePlayer,
|
|
3759
3794
|
config: this.config
|
|
@@ -3799,31 +3834,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3799
3834
|
|
|
3800
3835
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3801
3836
|
|
|
3802
|
-
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); }; }
|
|
3803
|
-
|
|
3804
3837
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3805
3838
|
|
|
3806
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3807
|
-
|
|
3808
|
-
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; } }
|
|
3809
|
-
|
|
3810
3839
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3811
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
|
+
|
|
3812
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); }
|
|
3813
3844
|
|
|
3814
3845
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3815
3846
|
|
|
3816
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; }
|
|
3817
3848
|
|
|
3818
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3849
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3819
3850
|
|
|
3820
|
-
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"); }
|
|
3821
3852
|
|
|
3822
|
-
function
|
|
3823
|
-
|
|
3824
|
-
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; }
|
|
3825
|
-
|
|
3826
|
-
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; }
|
|
3827
3854
|
|
|
3828
3855
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3829
3856
|
|
|
@@ -3848,12 +3875,14 @@ function parsePlaylist(url) {
|
|
|
3848
3875
|
return {};
|
|
3849
3876
|
}
|
|
3850
3877
|
|
|
3851
|
-
var YouTube =
|
|
3878
|
+
var YouTube =
|
|
3879
|
+
/*#__PURE__*/
|
|
3880
|
+
function (_Component) {
|
|
3852
3881
|
_inherits(YouTube, _Component);
|
|
3853
3882
|
|
|
3854
|
-
var _super = _createSuper(YouTube);
|
|
3855
|
-
|
|
3856
3883
|
function YouTube() {
|
|
3884
|
+
var _getPrototypeOf2;
|
|
3885
|
+
|
|
3857
3886
|
var _this;
|
|
3858
3887
|
|
|
3859
3888
|
_classCallCheck(this, YouTube);
|
|
@@ -3862,7 +3891,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3862
3891
|
args[_key] = arguments[_key];
|
|
3863
3892
|
}
|
|
3864
3893
|
|
|
3865
|
-
_this =
|
|
3894
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3866
3895
|
|
|
3867
3896
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3868
3897
|
|
|
@@ -4050,9 +4079,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4050
4079
|
height: '100%',
|
|
4051
4080
|
display: display
|
|
4052
4081
|
};
|
|
4053
|
-
return
|
|
4082
|
+
return _react["default"].createElement("div", {
|
|
4054
4083
|
style: style
|
|
4055
|
-
},
|
|
4084
|
+
}, _react["default"].createElement("div", {
|
|
4056
4085
|
ref: this.ref
|
|
4057
4086
|
}));
|
|
4058
4087
|
}
|
|
@@ -4108,16 +4137,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4108
4137
|
|
|
4109
4138
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4110
4139
|
|
|
4111
|
-
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); }; }
|
|
4112
|
-
|
|
4113
4140
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4114
4141
|
|
|
4115
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4116
|
-
|
|
4117
|
-
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; } }
|
|
4118
|
-
|
|
4119
4142
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4120
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
|
+
|
|
4121
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); }
|
|
4122
4147
|
|
|
4123
4148
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4126,14 +4151,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4126
4151
|
|
|
4127
4152
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4128
4153
|
var SDK_GLOBAL = 'SC';
|
|
4129
|
-
var MATCH_URL = /(
|
|
4154
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4130
4155
|
|
|
4131
|
-
var SoundCloud =
|
|
4156
|
+
var SoundCloud =
|
|
4157
|
+
/*#__PURE__*/
|
|
4158
|
+
function (_Component) {
|
|
4132
4159
|
_inherits(SoundCloud, _Component);
|
|
4133
4160
|
|
|
4134
|
-
var _super = _createSuper(SoundCloud);
|
|
4135
|
-
|
|
4136
4161
|
function SoundCloud() {
|
|
4162
|
+
var _getPrototypeOf2;
|
|
4163
|
+
|
|
4137
4164
|
var _this;
|
|
4138
4165
|
|
|
4139
4166
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4142,7 +4169,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4142
4169
|
args[_key] = arguments[_key];
|
|
4143
4170
|
}
|
|
4144
4171
|
|
|
4145
|
-
_this =
|
|
4172
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4146
4173
|
|
|
4147
4174
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4148
4175
|
|
|
@@ -4263,7 +4290,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4263
4290
|
height: '100%',
|
|
4264
4291
|
display: display
|
|
4265
4292
|
};
|
|
4266
|
-
return
|
|
4293
|
+
return _react["default"].createElement("iframe", {
|
|
4267
4294
|
ref: this.ref,
|
|
4268
4295
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4269
4296
|
style: style,
|
|
@@ -4325,16 +4352,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4325
4352
|
|
|
4326
4353
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4327
4354
|
|
|
4328
|
-
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); }; }
|
|
4329
|
-
|
|
4330
4355
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4331
4356
|
|
|
4332
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4333
|
-
|
|
4334
|
-
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; } }
|
|
4335
|
-
|
|
4336
4357
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4337
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
|
+
|
|
4338
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); }
|
|
4339
4362
|
|
|
4340
4363
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4346,12 +4369,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4346
4369
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4347
4370
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4348
4371
|
|
|
4349
|
-
var Vimeo =
|
|
4372
|
+
var Vimeo =
|
|
4373
|
+
/*#__PURE__*/
|
|
4374
|
+
function (_Component) {
|
|
4350
4375
|
_inherits(Vimeo, _Component);
|
|
4351
4376
|
|
|
4352
|
-
var _super = _createSuper(Vimeo);
|
|
4353
|
-
|
|
4354
4377
|
function Vimeo() {
|
|
4378
|
+
var _getPrototypeOf2;
|
|
4379
|
+
|
|
4355
4380
|
var _this;
|
|
4356
4381
|
|
|
4357
4382
|
_classCallCheck(this, Vimeo);
|
|
@@ -4360,7 +4385,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4360
4385
|
args[_key] = arguments[_key];
|
|
4361
4386
|
}
|
|
4362
4387
|
|
|
4363
|
-
_this =
|
|
4388
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4364
4389
|
|
|
4365
4390
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4366
4391
|
|
|
@@ -4517,7 +4542,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4517
4542
|
overflow: 'hidden',
|
|
4518
4543
|
display: display
|
|
4519
4544
|
};
|
|
4520
|
-
return
|
|
4545
|
+
return _react["default"].createElement("div", {
|
|
4521
4546
|
key: this.props.url,
|
|
4522
4547
|
ref: this.ref,
|
|
4523
4548
|
style: style
|
|
@@ -4577,16 +4602,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4577
4602
|
|
|
4578
4603
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4579
4604
|
|
|
4580
|
-
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); }; }
|
|
4581
|
-
|
|
4582
4605
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4583
4606
|
|
|
4584
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4585
|
-
|
|
4586
|
-
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; } }
|
|
4587
|
-
|
|
4588
4607
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4589
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
|
+
|
|
4590
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); }
|
|
4591
4612
|
|
|
4592
4613
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4599,12 +4620,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4599
4620
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4600
4621
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4601
4622
|
|
|
4602
|
-
var Facebook =
|
|
4623
|
+
var Facebook =
|
|
4624
|
+
/*#__PURE__*/
|
|
4625
|
+
function (_Component) {
|
|
4603
4626
|
_inherits(Facebook, _Component);
|
|
4604
4627
|
|
|
4605
|
-
var _super = _createSuper(Facebook);
|
|
4606
|
-
|
|
4607
4628
|
function Facebook() {
|
|
4629
|
+
var _getPrototypeOf2;
|
|
4630
|
+
|
|
4608
4631
|
var _this;
|
|
4609
4632
|
|
|
4610
4633
|
_classCallCheck(this, Facebook);
|
|
@@ -4613,7 +4636,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4613
4636
|
args[_key] = arguments[_key];
|
|
4614
4637
|
}
|
|
4615
4638
|
|
|
4616
|
-
_this =
|
|
4639
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4617
4640
|
|
|
4618
4641
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4619
4642
|
|
|
@@ -4729,7 +4752,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4729
4752
|
width: '100%',
|
|
4730
4753
|
height: '100%'
|
|
4731
4754
|
};
|
|
4732
|
-
return
|
|
4755
|
+
return _react["default"].createElement("div", {
|
|
4733
4756
|
style: style,
|
|
4734
4757
|
id: this.playerID,
|
|
4735
4758
|
className: "fb-video",
|
|
@@ -4789,16 +4812,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4789
4812
|
|
|
4790
4813
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4791
4814
|
|
|
4792
|
-
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); }; }
|
|
4793
|
-
|
|
4794
4815
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4795
4816
|
|
|
4796
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4797
|
-
|
|
4798
|
-
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; } }
|
|
4799
|
-
|
|
4800
4817
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4801
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
|
+
|
|
4802
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); }
|
|
4803
4822
|
|
|
4804
4823
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4809,12 +4828,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4809
4828
|
var SDK_GLOBAL = 'playerjs';
|
|
4810
4829
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4811
4830
|
|
|
4812
|
-
var Streamable =
|
|
4831
|
+
var Streamable =
|
|
4832
|
+
/*#__PURE__*/
|
|
4833
|
+
function (_Component) {
|
|
4813
4834
|
_inherits(Streamable, _Component);
|
|
4814
4835
|
|
|
4815
|
-
var _super = _createSuper(Streamable);
|
|
4816
|
-
|
|
4817
4836
|
function Streamable() {
|
|
4837
|
+
var _getPrototypeOf2;
|
|
4838
|
+
|
|
4818
4839
|
var _this;
|
|
4819
4840
|
|
|
4820
4841
|
_classCallCheck(this, Streamable);
|
|
@@ -4823,7 +4844,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4823
4844
|
args[_key] = arguments[_key];
|
|
4824
4845
|
}
|
|
4825
4846
|
|
|
4826
|
-
_this =
|
|
4847
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4827
4848
|
|
|
4828
4849
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4829
4850
|
|
|
@@ -4943,7 +4964,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4943
4964
|
width: '100%',
|
|
4944
4965
|
height: '100%'
|
|
4945
4966
|
};
|
|
4946
|
-
return
|
|
4967
|
+
return _react["default"].createElement("iframe", {
|
|
4947
4968
|
ref: this.ref,
|
|
4948
4969
|
src: "https://streamable.com/o/".concat(id),
|
|
4949
4970
|
frameBorder: "0",
|
|
@@ -5004,16 +5025,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5004
5025
|
|
|
5005
5026
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5006
5027
|
|
|
5007
|
-
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); }; }
|
|
5008
|
-
|
|
5009
5028
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5010
5029
|
|
|
5011
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5012
|
-
|
|
5013
|
-
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; } }
|
|
5014
|
-
|
|
5015
5030
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5016
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
|
+
|
|
5017
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); }
|
|
5018
5035
|
|
|
5019
5036
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5024,48 +5041,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5024
5041
|
var SDK_GLOBAL = 'Wistia';
|
|
5025
5042
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5026
5043
|
|
|
5027
|
-
var Wistia =
|
|
5044
|
+
var Wistia =
|
|
5045
|
+
/*#__PURE__*/
|
|
5046
|
+
function (_Component) {
|
|
5028
5047
|
_inherits(Wistia, _Component);
|
|
5029
5048
|
|
|
5030
|
-
var _super = _createSuper(Wistia);
|
|
5031
|
-
|
|
5032
5049
|
function Wistia() {
|
|
5050
|
+
var _getPrototypeOf2;
|
|
5051
|
+
|
|
5033
5052
|
var _this;
|
|
5034
5053
|
|
|
5035
5054
|
_classCallCheck(this, Wistia);
|
|
5036
5055
|
|
|
5037
|
-
for (var _len = arguments.length,
|
|
5038
|
-
|
|
5056
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5057
|
+
args[_key] = arguments[_key];
|
|
5039
5058
|
}
|
|
5040
5059
|
|
|
5041
|
-
_this =
|
|
5060
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5042
5061
|
|
|
5043
5062
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5044
5063
|
|
|
5045
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5046
|
-
var _this$props;
|
|
5047
|
-
|
|
5048
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5049
|
-
});
|
|
5050
|
-
|
|
5051
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5052
|
-
var _this$props2;
|
|
5053
|
-
|
|
5054
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5055
|
-
});
|
|
5056
|
-
|
|
5057
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5058
|
-
var _this$props3;
|
|
5059
|
-
|
|
5060
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5061
|
-
});
|
|
5062
|
-
|
|
5063
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5064
|
-
var _this$props4;
|
|
5065
|
-
|
|
5066
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5067
|
-
});
|
|
5068
|
-
|
|
5069
5064
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5070
5065
|
_this.callPlayer('mute');
|
|
5071
5066
|
});
|
|
@@ -5087,13 +5082,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5087
5082
|
value: function load(url) {
|
|
5088
5083
|
var _this2 = this;
|
|
5089
5084
|
|
|
5090
|
-
var _this$
|
|
5091
|
-
playing = _this$
|
|
5092
|
-
muted = _this$
|
|
5093
|
-
controls = _this$
|
|
5094
|
-
_onReady = _this$
|
|
5095
|
-
|
|
5096
|
-
|
|
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;
|
|
5097
5096
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5098
5097
|
window._wq = window._wq || [];
|
|
5099
5098
|
|
|
@@ -5110,28 +5109,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5110
5109
|
|
|
5111
5110
|
_this2.unbind();
|
|
5112
5111
|
|
|
5113
|
-
_this2.player.bind('play',
|
|
5112
|
+
_this2.player.bind('play', onPlay);
|
|
5114
5113
|
|
|
5115
|
-
_this2.player.bind('pause',
|
|
5114
|
+
_this2.player.bind('pause', onPause);
|
|
5116
5115
|
|
|
5117
|
-
_this2.player.bind('seek',
|
|
5116
|
+
_this2.player.bind('seek', onSeek);
|
|
5118
5117
|
|
|
5119
|
-
_this2.player.bind('end',
|
|
5118
|
+
_this2.player.bind('end', onEnded);
|
|
5120
5119
|
|
|
5121
5120
|
_onReady();
|
|
5122
5121
|
}
|
|
5123
5122
|
});
|
|
5124
5123
|
}, onError);
|
|
5125
5124
|
}
|
|
5126
|
-
}, {
|
|
5127
|
-
key: "unbind",
|
|
5128
|
-
value: function unbind() {
|
|
5129
|
-
this.player.unbind('play', this.onPlay);
|
|
5130
|
-
this.player.unbind('pause', this.onPause);
|
|
5131
|
-
this.player.unbind('seek', this.onSeek);
|
|
5132
|
-
this.player.unbind('end', this.onEnded);
|
|
5133
|
-
} // Proxy methods to prevent listener leaks
|
|
5134
|
-
|
|
5135
5125
|
}, {
|
|
5136
5126
|
key: "play",
|
|
5137
5127
|
value: function play() {
|
|
@@ -5142,6 +5132,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5142
5132
|
value: function pause() {
|
|
5143
5133
|
this.callPlayer('pause');
|
|
5144
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
|
+
}
|
|
5145
5148
|
}, {
|
|
5146
5149
|
key: "stop",
|
|
5147
5150
|
value: function stop() {
|
|
@@ -5187,7 +5190,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5187
5190
|
width: '100%',
|
|
5188
5191
|
height: '100%'
|
|
5189
5192
|
};
|
|
5190
|
-
return
|
|
5193
|
+
return _react["default"].createElement("div", {
|
|
5191
5194
|
key: id,
|
|
5192
5195
|
className: className,
|
|
5193
5196
|
style: style
|
|
@@ -5247,16 +5250,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5247
5250
|
|
|
5248
5251
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5249
5252
|
|
|
5250
|
-
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); }; }
|
|
5251
|
-
|
|
5252
5253
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5253
5254
|
|
|
5254
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5255
|
-
|
|
5256
|
-
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; } }
|
|
5257
|
-
|
|
5258
5255
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5259
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
|
+
|
|
5260
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); }
|
|
5261
5260
|
|
|
5262
5261
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5269,12 +5268,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5269
5268
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5270
5269
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5271
5270
|
|
|
5272
|
-
var Twitch =
|
|
5271
|
+
var Twitch =
|
|
5272
|
+
/*#__PURE__*/
|
|
5273
|
+
function (_Component) {
|
|
5273
5274
|
_inherits(Twitch, _Component);
|
|
5274
5275
|
|
|
5275
|
-
var _super = _createSuper(Twitch);
|
|
5276
|
-
|
|
5277
5276
|
function Twitch() {
|
|
5277
|
+
var _getPrototypeOf2;
|
|
5278
|
+
|
|
5278
5279
|
var _this;
|
|
5279
5280
|
|
|
5280
5281
|
_classCallCheck(this, Twitch);
|
|
@@ -5283,7 +5284,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5283
5284
|
args[_key] = arguments[_key];
|
|
5284
5285
|
}
|
|
5285
5286
|
|
|
5286
|
-
_this =
|
|
5287
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5287
5288
|
|
|
5288
5289
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5289
5290
|
|
|
@@ -5404,7 +5405,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5404
5405
|
width: '100%',
|
|
5405
5406
|
height: '100%'
|
|
5406
5407
|
};
|
|
5407
|
-
return
|
|
5408
|
+
return _react["default"].createElement("div", {
|
|
5408
5409
|
style: style,
|
|
5409
5410
|
id: this.playerID
|
|
5410
5411
|
});
|
|
@@ -5457,15 +5458,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5457
5458
|
|
|
5458
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; }
|
|
5459
5460
|
|
|
5460
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5461
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5461
5462
|
|
|
5462
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5463
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5463
5464
|
|
|
5464
|
-
function
|
|
5465
|
-
|
|
5466
|
-
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; }
|
|
5467
|
-
|
|
5468
|
-
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; }
|
|
5469
5466
|
|
|
5470
5467
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5471
5468
|
|
|
@@ -5475,16 +5472,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5475
5472
|
|
|
5476
5473
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5477
5474
|
|
|
5478
|
-
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); }; }
|
|
5479
|
-
|
|
5480
5475
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5481
5476
|
|
|
5482
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5483
|
-
|
|
5484
|
-
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; } }
|
|
5485
|
-
|
|
5486
5477
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5487
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
|
+
|
|
5488
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); }
|
|
5489
5482
|
|
|
5490
5483
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5496,12 +5489,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5496
5489
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5497
5490
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5498
5491
|
|
|
5499
|
-
var DailyMotion =
|
|
5492
|
+
var DailyMotion =
|
|
5493
|
+
/*#__PURE__*/
|
|
5494
|
+
function (_Component) {
|
|
5500
5495
|
_inherits(DailyMotion, _Component);
|
|
5501
5496
|
|
|
5502
|
-
var _super = _createSuper(DailyMotion);
|
|
5503
|
-
|
|
5504
5497
|
function DailyMotion() {
|
|
5498
|
+
var _getPrototypeOf2;
|
|
5499
|
+
|
|
5505
5500
|
var _this;
|
|
5506
5501
|
|
|
5507
5502
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5510,7 +5505,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5510
5505
|
args[_key] = arguments[_key];
|
|
5511
5506
|
}
|
|
5512
5507
|
|
|
5513
|
-
_this =
|
|
5508
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5514
5509
|
|
|
5515
5510
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5516
5511
|
|
|
@@ -5639,9 +5634,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5639
5634
|
height: '100%',
|
|
5640
5635
|
display: display
|
|
5641
5636
|
};
|
|
5642
|
-
return
|
|
5637
|
+
return _react["default"].createElement("div", {
|
|
5643
5638
|
style: style
|
|
5644
|
-
},
|
|
5639
|
+
}, _react["default"].createElement("div", {
|
|
5645
5640
|
ref: this.ref
|
|
5646
5641
|
}));
|
|
5647
5642
|
}
|
|
@@ -5699,16 +5694,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5699
5694
|
|
|
5700
5695
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5701
5696
|
|
|
5702
|
-
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); }; }
|
|
5703
|
-
|
|
5704
5697
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5705
5698
|
|
|
5706
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5707
|
-
|
|
5708
|
-
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; } }
|
|
5709
|
-
|
|
5710
5699
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5711
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
|
+
|
|
5712
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); }
|
|
5713
5704
|
|
|
5714
5705
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5719,12 +5710,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5719
5710
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5720
5711
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5721
5712
|
|
|
5722
|
-
var Mixcloud =
|
|
5713
|
+
var Mixcloud =
|
|
5714
|
+
/*#__PURE__*/
|
|
5715
|
+
function (_Component) {
|
|
5723
5716
|
_inherits(Mixcloud, _Component);
|
|
5724
5717
|
|
|
5725
|
-
var _super = _createSuper(Mixcloud);
|
|
5726
|
-
|
|
5727
5718
|
function Mixcloud() {
|
|
5719
|
+
var _getPrototypeOf2;
|
|
5720
|
+
|
|
5728
5721
|
var _this;
|
|
5729
5722
|
|
|
5730
5723
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5733,7 +5726,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5733
5726
|
args[_key] = arguments[_key];
|
|
5734
5727
|
}
|
|
5735
5728
|
|
|
5736
|
-
_this =
|
|
5729
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5737
5730
|
|
|
5738
5731
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5739
5732
|
|
|
@@ -5836,7 +5829,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5836
5829
|
})); // We have to give the iframe a key here to prevent a
|
|
5837
5830
|
// weird dialog appearing when loading a new track
|
|
5838
5831
|
|
|
5839
|
-
return
|
|
5832
|
+
return _react["default"].createElement("iframe", {
|
|
5840
5833
|
key: id,
|
|
5841
5834
|
ref: this.ref,
|
|
5842
5835
|
style: style,
|
|
@@ -5896,33 +5889,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5896
5889
|
|
|
5897
5890
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5898
5891
|
|
|
5899
|
-
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); }; }
|
|
5900
|
-
|
|
5901
5892
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5902
5893
|
|
|
5903
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5904
|
-
|
|
5905
|
-
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; } }
|
|
5906
|
-
|
|
5907
5894
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5908
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
|
+
|
|
5909
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); }
|
|
5910
5899
|
|
|
5911
5900
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5912
5901
|
|
|
5913
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; }
|
|
5914
5903
|
|
|
5915
|
-
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; } } }; }
|
|
5916
|
-
|
|
5917
|
-
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); }
|
|
5918
|
-
|
|
5919
|
-
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; }
|
|
5920
|
-
|
|
5921
5904
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5922
5905
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5923
5906
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5924
5907
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5925
|
-
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';
|
|
5926
5909
|
var HLS_GLOBAL = 'Hls';
|
|
5927
5910
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5928
5911
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5931,11 +5914,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5931
5914
|
|
|
5932
5915
|
function canPlay(url) {
|
|
5933
5916
|
if (url instanceof Array) {
|
|
5934
|
-
var
|
|
5935
|
-
|
|
5917
|
+
var _iteratorNormalCompletion = true;
|
|
5918
|
+
var _didIteratorError = false;
|
|
5919
|
+
var _iteratorError = undefined;
|
|
5936
5920
|
|
|
5937
5921
|
try {
|
|
5938
|
-
for (_iterator.
|
|
5922
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5939
5923
|
var item = _step.value;
|
|
5940
5924
|
|
|
5941
5925
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5947,9 +5931,18 @@ function canPlay(url) {
|
|
|
5947
5931
|
}
|
|
5948
5932
|
}
|
|
5949
5933
|
} catch (err) {
|
|
5950
|
-
|
|
5934
|
+
_didIteratorError = true;
|
|
5935
|
+
_iteratorError = err;
|
|
5951
5936
|
} finally {
|
|
5952
|
-
|
|
5937
|
+
try {
|
|
5938
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5939
|
+
_iterator["return"]();
|
|
5940
|
+
}
|
|
5941
|
+
} finally {
|
|
5942
|
+
if (_didIteratorError) {
|
|
5943
|
+
throw _iteratorError;
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5953
5946
|
}
|
|
5954
5947
|
|
|
5955
5948
|
return false;
|
|
@@ -5973,12 +5966,14 @@ function canEnablePIP(url) {
|
|
|
5973
5966
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5974
5967
|
}
|
|
5975
5968
|
|
|
5976
|
-
var FilePlayer =
|
|
5969
|
+
var FilePlayer =
|
|
5970
|
+
/*#__PURE__*/
|
|
5971
|
+
function (_Component) {
|
|
5977
5972
|
_inherits(FilePlayer, _Component);
|
|
5978
5973
|
|
|
5979
|
-
var _super = _createSuper(FilePlayer);
|
|
5980
|
-
|
|
5981
5974
|
function FilePlayer() {
|
|
5975
|
+
var _getPrototypeOf2;
|
|
5976
|
+
|
|
5982
5977
|
var _this;
|
|
5983
5978
|
|
|
5984
5979
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5987,7 +5982,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5987
5982
|
_args[_key] = arguments[_key];
|
|
5988
5983
|
}
|
|
5989
5984
|
|
|
5990
|
-
_this =
|
|
5985
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5991
5986
|
|
|
5992
5987
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5993
5988
|
var _this$props;
|
|
@@ -6074,19 +6069,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6074
6069
|
|
|
6075
6070
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6076
6071
|
if (typeof source === 'string') {
|
|
6077
|
-
return
|
|
6072
|
+
return _react["default"].createElement("source", {
|
|
6078
6073
|
key: index,
|
|
6079
6074
|
src: source
|
|
6080
6075
|
});
|
|
6081
6076
|
}
|
|
6082
6077
|
|
|
6083
|
-
return
|
|
6078
|
+
return _react["default"].createElement("source", _extends({
|
|
6084
6079
|
key: index
|
|
6085
6080
|
}, source));
|
|
6086
6081
|
});
|
|
6087
6082
|
|
|
6088
6083
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6089
|
-
return
|
|
6084
|
+
return _react["default"].createElement("track", _extends({
|
|
6090
6085
|
key: index
|
|
6091
6086
|
}, track));
|
|
6092
6087
|
});
|
|
@@ -6124,10 +6119,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6124
6119
|
key: "componentWillUnmount",
|
|
6125
6120
|
value: function componentWillUnmount() {
|
|
6126
6121
|
this.removeListeners(this.player);
|
|
6127
|
-
|
|
6128
|
-
if (this.hls) {
|
|
6129
|
-
this.hls.destroy();
|
|
6130
|
-
}
|
|
6131
6122
|
}
|
|
6132
6123
|
}, {
|
|
6133
6124
|
key: "addListeners",
|
|
@@ -6258,6 +6249,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6258
6249
|
value: function stop() {
|
|
6259
6250
|
this.player.removeAttribute('src');
|
|
6260
6251
|
|
|
6252
|
+
if (this.hls) {
|
|
6253
|
+
this.hls.destroy();
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6261
6256
|
if (this.dash) {
|
|
6262
6257
|
this.dash.reset();
|
|
6263
6258
|
}
|
|
@@ -6369,7 +6364,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6369
6364
|
width: width === 'auto' ? width : '100%',
|
|
6370
6365
|
height: height === 'auto' ? height : '100%'
|
|
6371
6366
|
};
|
|
6372
|
-
return
|
|
6367
|
+
return _react["default"].createElement(Element, _extends({
|
|
6373
6368
|
ref: this.ref,
|
|
6374
6369
|
src: this.getSource(url),
|
|
6375
6370
|
style: style,
|
|
@@ -6459,16 +6454,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6459
6454
|
|
|
6460
6455
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6461
6456
|
|
|
6462
|
-
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); }; }
|
|
6463
|
-
|
|
6464
6457
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6465
6458
|
|
|
6466
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6467
|
-
|
|
6468
|
-
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; } }
|
|
6469
|
-
|
|
6470
6459
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6471
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
|
+
|
|
6472
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); }
|
|
6473
6464
|
|
|
6474
6465
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6477,12 +6468,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6477
6468
|
|
|
6478
6469
|
var ICON_SIZE = '64px';
|
|
6479
6470
|
|
|
6480
|
-
var Preview =
|
|
6471
|
+
var Preview =
|
|
6472
|
+
/*#__PURE__*/
|
|
6473
|
+
function (_Component) {
|
|
6481
6474
|
_inherits(Preview, _Component);
|
|
6482
6475
|
|
|
6483
|
-
var _super = _createSuper(Preview);
|
|
6484
|
-
|
|
6485
6476
|
function Preview() {
|
|
6477
|
+
var _getPrototypeOf2;
|
|
6478
|
+
|
|
6486
6479
|
var _this;
|
|
6487
6480
|
|
|
6488
6481
|
_classCallCheck(this, Preview);
|
|
@@ -6491,7 +6484,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6491
6484
|
args[_key] = arguments[_key];
|
|
6492
6485
|
}
|
|
6493
6486
|
|
|
6494
|
-
_this =
|
|
6487
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6495
6488
|
|
|
6496
6489
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6497
6490
|
|
|
@@ -6589,15 +6582,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6589
6582
|
}
|
|
6590
6583
|
};
|
|
6591
6584
|
|
|
6592
|
-
var defaultPlayIcon =
|
|
6585
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6593
6586
|
style: styles.shadow,
|
|
6594
6587
|
className: "react-player__shadow"
|
|
6595
|
-
},
|
|
6588
|
+
}, _react["default"].createElement("div", {
|
|
6596
6589
|
style: styles.playIcon,
|
|
6597
6590
|
className: "react-player__play-icon"
|
|
6598
6591
|
}));
|
|
6599
6592
|
|
|
6600
|
-
return
|
|
6593
|
+
return _react["default"].createElement("div", {
|
|
6601
6594
|
style: styles.preview,
|
|
6602
6595
|
className: "react-player__preview",
|
|
6603
6596
|
onClick: onClick
|
|
@@ -6634,12 +6627,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6634
6627
|
|
|
6635
6628
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6636
6629
|
|
|
6637
|
-
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; } } }; }
|
|
6638
|
-
|
|
6639
|
-
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); }
|
|
6640
|
-
|
|
6641
|
-
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; }
|
|
6642
|
-
|
|
6643
6630
|
var PRELOAD_PLAYERS = [{
|
|
6644
6631
|
Player: YouTube_1.YouTube,
|
|
6645
6632
|
configKey: 'youtube',
|
|
@@ -6660,16 +6647,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6660
6647
|
|
|
6661
6648
|
function renderPreloadPlayers(url, controls, config) {
|
|
6662
6649
|
var players = [];
|
|
6663
|
-
|
|
6664
|
-
var
|
|
6665
|
-
|
|
6650
|
+
var _iteratorNormalCompletion = true;
|
|
6651
|
+
var _didIteratorError = false;
|
|
6652
|
+
var _iteratorError = undefined;
|
|
6666
6653
|
|
|
6667
6654
|
try {
|
|
6668
|
-
for (_iterator.
|
|
6655
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6669
6656
|
var player = _step.value;
|
|
6670
6657
|
|
|
6671
6658
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6672
|
-
players.push(
|
|
6659
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6673
6660
|
key: player.Player.displayName,
|
|
6674
6661
|
activePlayer: player.Player,
|
|
6675
6662
|
url: player.url,
|
|
@@ -6681,9 +6668,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6681
6668
|
}
|
|
6682
6669
|
}
|
|
6683
6670
|
} catch (err) {
|
|
6684
|
-
|
|
6671
|
+
_didIteratorError = true;
|
|
6672
|
+
_iteratorError = err;
|
|
6685
6673
|
} finally {
|
|
6686
|
-
|
|
6674
|
+
try {
|
|
6675
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6676
|
+
_iterator["return"]();
|
|
6677
|
+
}
|
|
6678
|
+
} finally {
|
|
6679
|
+
if (_didIteratorError) {
|
|
6680
|
+
throw _iteratorError;
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6687
6683
|
}
|
|
6688
6684
|
|
|
6689
6685
|
return players;
|
|
@@ -6807,17 +6803,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6807
6803
|
|
|
6808
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); }
|
|
6809
6805
|
|
|
6810
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6811
|
-
|
|
6812
|
-
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."); }
|
|
6813
|
-
|
|
6814
|
-
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(); }
|
|
6815
6807
|
|
|
6816
|
-
function
|
|
6808
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6817
6809
|
|
|
6818
|
-
function
|
|
6810
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6819
6811
|
|
|
6820
|
-
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; } }
|
|
6821
6813
|
|
|
6822
6814
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6823
6815
|
|
|
@@ -6825,16 +6817,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6825
6817
|
|
|
6826
6818
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6827
6819
|
|
|
6828
|
-
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); }; }
|
|
6829
|
-
|
|
6830
6820
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6831
6821
|
|
|
6832
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6833
|
-
|
|
6834
|
-
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; } }
|
|
6835
|
-
|
|
6836
6822
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6837
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
|
+
|
|
6838
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); }
|
|
6839
6827
|
|
|
6840
6828
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6844,12 +6832,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6844
6832
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6845
6833
|
var customPlayers = [];
|
|
6846
6834
|
|
|
6847
|
-
var ReactPlayer =
|
|
6835
|
+
var ReactPlayer =
|
|
6836
|
+
/*#__PURE__*/
|
|
6837
|
+
function (_Component) {
|
|
6848
6838
|
_inherits(ReactPlayer, _Component);
|
|
6849
6839
|
|
|
6850
|
-
var _super = _createSuper(ReactPlayer);
|
|
6851
|
-
|
|
6852
6840
|
function ReactPlayer() {
|
|
6841
|
+
var _getPrototypeOf2;
|
|
6842
|
+
|
|
6853
6843
|
var _this;
|
|
6854
6844
|
|
|
6855
6845
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6858,7 +6848,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6858
6848
|
args[_key] = arguments[_key];
|
|
6859
6849
|
}
|
|
6860
6850
|
|
|
6861
|
-
_this =
|
|
6851
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6862
6852
|
|
|
6863
6853
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6864
6854
|
|
|
@@ -6969,7 +6959,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6969
6959
|
key: "renderActivePlayer",
|
|
6970
6960
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6971
6961
|
if (!url) return null;
|
|
6972
|
-
return
|
|
6962
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6973
6963
|
key: activePlayer.displayName,
|
|
6974
6964
|
ref: this.activePlayerRef,
|
|
6975
6965
|
config: this.config,
|
|
@@ -7006,14 +6996,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
7006
6996
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
7007
6997
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
7008
6998
|
|
|
7009
|
-
var preview =
|
|
6999
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
7010
7000
|
url: url,
|
|
7011
7001
|
light: light,
|
|
7012
7002
|
playIcon: playIcon,
|
|
7013
7003
|
onClick: this.handleClickPreview
|
|
7014
7004
|
});
|
|
7015
7005
|
|
|
7016
|
-
return
|
|
7006
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
7017
7007
|
ref: this.wrapperRef,
|
|
7018
7008
|
style: _objectSpread({}, style, {
|
|
7019
7009
|
width: width,
|
|
@@ -7337,7 +7327,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7337
7327
|
var queue = Math.floor(duration / 10);
|
|
7338
7328
|
var segment = Math.floor(current / queue);
|
|
7339
7329
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7340
|
-
Segment.report_video_event('Video Ready', main.
|
|
7330
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7341
7331
|
//autoplay
|
|
7342
7332
|
|
|
7343
7333
|
//Small pause before starting next video
|
|
@@ -7358,7 +7348,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7358
7348
|
var segment = Math.floor(current / queue);
|
|
7359
7349
|
|
|
7360
7350
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7361
|
-
Segment.report_video_event('Video End', main.
|
|
7351
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7362
7352
|
setEndReported(true);
|
|
7363
7353
|
clearInterval(intervalID);
|
|
7364
7354
|
}
|
|
@@ -7409,7 +7399,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7409
7399
|
var segment = Math.floor(current / queue);
|
|
7410
7400
|
if (!queueProgress.includes(segment)) {
|
|
7411
7401
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7412
|
-
Segment.report_video_event('Video Segment', main.
|
|
7402
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7413
7403
|
queueProgress.push(segment);
|
|
7414
7404
|
}
|
|
7415
7405
|
};
|
|
@@ -7423,7 +7413,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7423
7413
|
var segment = Math.floor(current / queue);
|
|
7424
7414
|
|
|
7425
7415
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7426
|
-
Segment.report_video_event('Video Play', main.
|
|
7416
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7427
7417
|
|
|
7428
7418
|
if (!playReported) {
|
|
7429
7419
|
setPlayReported(true);
|
|
@@ -7442,7 +7432,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7442
7432
|
var segment = Math.floor(current / queue);
|
|
7443
7433
|
|
|
7444
7434
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7445
|
-
Segment.report_video_event('Video Pause', main.
|
|
7435
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7446
7436
|
};
|
|
7447
7437
|
|
|
7448
7438
|
// Youtube Options
|
|
@@ -7560,7 +7550,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7560
7550
|
React__default.createElement(
|
|
7561
7551
|
'div',
|
|
7562
7552
|
{ className: 'vid-text' },
|
|
7563
|
-
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()))
|
|
7564
7554
|
),
|
|
7565
7555
|
React__default.createElement(
|
|
7566
7556
|
'style',
|
|
@@ -7878,7 +7868,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7878
7868
|
);
|
|
7879
7869
|
};
|
|
7880
7870
|
|
|
7881
|
-
var numberOfPaginations = main.
|
|
7871
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7882
7872
|
|
|
7883
7873
|
var Quiz = function Quiz(_ref) {
|
|
7884
7874
|
var quizzes = _ref.quizzes,
|
|
@@ -7998,7 +7988,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7998
7988
|
var renderPagination = function renderPagination() {
|
|
7999
7989
|
return React__default.createElement(
|
|
8000
7990
|
Pagination,
|
|
8001
|
-
{ className: 'p-0 m-0', size: main.
|
|
7991
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
8002
7992
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8003
7993
|
return changePage('first');
|
|
8004
7994
|
}, disabled: currentPage === 1 }),
|
|
@@ -8324,7 +8314,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8324
8314
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8325
8315
|
React__default.createElement(
|
|
8326
8316
|
'a',
|
|
8327
|
-
_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' }, {
|
|
8328
8318
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8329
8319
|
React__default.createElement(
|
|
8330
8320
|
'div',
|
|
@@ -8619,7 +8609,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8619
8609
|
|
|
8620
8610
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8621
8611
|
if (biography) {
|
|
8622
|
-
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()));
|
|
8623
8613
|
}
|
|
8624
8614
|
};
|
|
8625
8615
|
|
|
@@ -8705,7 +8695,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8705
8695
|
//console.log('useLayoutEffect')
|
|
8706
8696
|
if (!firstLoad) {
|
|
8707
8697
|
setUpArrowClicked(false);
|
|
8708
|
-
if (main.
|
|
8698
|
+
if (main.main_36) {
|
|
8709
8699
|
grabLoadedAds();
|
|
8710
8700
|
} else {
|
|
8711
8701
|
scrollToArticle();
|
|
@@ -8729,7 +8719,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8729
8719
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8730
8720
|
if (pageview) pageview(path);
|
|
8731
8721
|
|
|
8732
|
-
if (!main.
|
|
8722
|
+
if (!main.main_36) {
|
|
8733
8723
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8734
8724
|
if (window.googletag && googletag.pubadsReady) {
|
|
8735
8725
|
index.lib_3.refresh();
|
|
@@ -8737,7 +8727,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8737
8727
|
});
|
|
8738
8728
|
}
|
|
8739
8729
|
//Refresh leaderboard ad on mobile
|
|
8740
|
-
if (main.
|
|
8730
|
+
if (main.main_36) {
|
|
8741
8731
|
var leaderboardSlotId = '';
|
|
8742
8732
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8743
8733
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8806,7 +8796,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8806
8796
|
React__default.createElement(
|
|
8807
8797
|
'div',
|
|
8808
8798
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8809
|
-
main.
|
|
8799
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8810
8800
|
if (index === 0) {
|
|
8811
8801
|
return React__default.createElement(
|
|
8812
8802
|
'div',
|
|
@@ -8897,7 +8887,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8897
8887
|
React__default.createElement(
|
|
8898
8888
|
'div',
|
|
8899
8889
|
{ className: 'mt-2 mb-2' },
|
|
8900
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8890
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8901
8891
|
serializers: getSerializers,
|
|
8902
8892
|
videoAccountIDs: accountIDs,
|
|
8903
8893
|
blocks: article.text,
|
|
@@ -8928,7 +8918,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8928
8918
|
React__default.createElement(
|
|
8929
8919
|
'div',
|
|
8930
8920
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8931
|
-
main.
|
|
8921
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8932
8922
|
if (innerIndex === 0) {
|
|
8933
8923
|
return React__default.createElement(
|
|
8934
8924
|
'div',
|
|
@@ -9015,7 +9005,7 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
9015
9005
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9016
9006
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9017
9007
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9018
|
-
React__default.createElement('img', _extends._extends({
|
|
9008
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9019
9009
|
style: figureImageStyle,
|
|
9020
9010
|
className: 'figure-image',
|
|
9021
9011
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9083,7 +9073,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9083
9073
|
} else {
|
|
9084
9074
|
return React__default.createElement(
|
|
9085
9075
|
Tooltip,
|
|
9086
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9076
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9087
9077
|
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9088
9078
|
);
|
|
9089
9079
|
}
|
|
@@ -9097,32 +9087,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9097
9087
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9098
9088
|
|
|
9099
9089
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9100
|
-
var triggerAction = main.
|
|
9101
|
-
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';
|
|
9102
9092
|
return React__default.createElement(
|
|
9103
9093
|
'picture',
|
|
9104
9094
|
null,
|
|
9105
9095
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9106
9096
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9107
9097
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9108
|
-
main.
|
|
9098
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9109
9099
|
style: figureImageStyle,
|
|
9110
9100
|
className: 'figure-image',
|
|
9111
9101
|
src: urlFor({ source: node, client: client }),
|
|
9112
9102
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9113
|
-
}, !link && !main.
|
|
9103
|
+
}, !link && !main.main_35 && {
|
|
9114
9104
|
onClick: function onClick() {
|
|
9115
9105
|
return handleClickFigure(node, client);
|
|
9116
9106
|
}
|
|
9117
9107
|
})) : React__default.createElement(
|
|
9118
9108
|
OverlayTrigger,
|
|
9119
9109
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9120
|
-
React__default.createElement('img', _extends._extends({
|
|
9110
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9121
9111
|
style: figureImageStyle,
|
|
9122
9112
|
className: 'figure-image',
|
|
9123
9113
|
src: urlFor({ source: node, client: client }),
|
|
9124
9114
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9125
|
-
}, !link && !main.
|
|
9115
|
+
}, !link && !main.main_35 && {
|
|
9126
9116
|
onClick: function onClick() {
|
|
9127
9117
|
return handleClickFigure(node, client);
|
|
9128
9118
|
}
|
|
@@ -9281,7 +9271,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9281
9271
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9282
9272
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9283
9273
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9284
|
-
React__default.createElement('img', _extends._extends({
|
|
9274
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9285
9275
|
'images-count': imagesCount,
|
|
9286
9276
|
className: 'multi-figure-image',
|
|
9287
9277
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9341,32 +9331,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9341
9331
|
link = _ref3.link,
|
|
9342
9332
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9343
9333
|
|
|
9344
|
-
var triggerAction = main.
|
|
9345
|
-
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';
|
|
9346
9336
|
return React__default.createElement(
|
|
9347
9337
|
'picture',
|
|
9348
9338
|
null,
|
|
9349
9339
|
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9350
9340
|
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9351
9341
|
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9352
|
-
main.
|
|
9342
|
+
main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
|
|
9353
9343
|
'images-count': imagesCount,
|
|
9354
9344
|
className: 'multi-figure-image',
|
|
9355
9345
|
src: urlFor({ source: image, client: client }),
|
|
9356
9346
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9357
|
-
}, !link && !main.
|
|
9347
|
+
}, !link && !main.main_35 && {
|
|
9358
9348
|
onClick: function onClick() {
|
|
9359
9349
|
return handleClickFigure(image, client);
|
|
9360
9350
|
}
|
|
9361
9351
|
})) : React__default.createElement(
|
|
9362
9352
|
OverlayTrigger,
|
|
9363
9353
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9364
|
-
React__default.createElement('img', _extends._extends({
|
|
9354
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9365
9355
|
'images-count': imagesCount,
|
|
9366
9356
|
className: 'multi-figure-image',
|
|
9367
9357
|
src: urlFor({ source: image, client: client }),
|
|
9368
9358
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9369
|
-
}, !link && !main.
|
|
9359
|
+
}, !link && !main.main_35 && {
|
|
9370
9360
|
onClick: function onClick() {
|
|
9371
9361
|
return handleClickFigure(image, client);
|
|
9372
9362
|
}
|
|
@@ -9394,7 +9384,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9394
9384
|
} else {
|
|
9395
9385
|
return React__default.createElement(
|
|
9396
9386
|
Tooltip,
|
|
9397
|
-
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9387
|
+
_extends$1._extends({ id: 'button-tooltip' }, props),
|
|
9398
9388
|
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9399
9389
|
);
|
|
9400
9390
|
}
|
|
@@ -9414,7 +9404,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9414
9404
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9415
9405
|
image.link ? React__default.createElement(
|
|
9416
9406
|
'a',
|
|
9417
|
-
_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' } }),
|
|
9418
9408
|
React__default.createElement(
|
|
9419
9409
|
'div',
|
|
9420
9410
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9442,7 +9432,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9442
9432
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9443
9433
|
image.link ? React__default.createElement(
|
|
9444
9434
|
'a',
|
|
9445
|
-
_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' } }),
|
|
9446
9436
|
React__default.createElement(
|
|
9447
9437
|
'div',
|
|
9448
9438
|
{ className: 'multi-figure-image-container' },
|
|
@@ -9571,7 +9561,7 @@ exports.__esModule = true;
|
|
|
9571
9561
|
|
|
9572
9562
|
|
|
9573
9563
|
|
|
9574
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9564
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9575
9565
|
|
|
9576
9566
|
|
|
9577
9567
|
|
|
@@ -9884,7 +9874,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
9884
9874
|
return React__default.createElement(
|
|
9885
9875
|
'div',
|
|
9886
9876
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9887
|
-
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()))
|
|
9888
9878
|
);
|
|
9889
9879
|
})
|
|
9890
9880
|
);
|
|
@@ -9961,6 +9951,12 @@ var getSerializers = function getSerializers() {
|
|
|
9961
9951
|
|
|
9962
9952
|
return {
|
|
9963
9953
|
types: {
|
|
9954
|
+
undefined: function undefined$1() {
|
|
9955
|
+
return null;
|
|
9956
|
+
},
|
|
9957
|
+
null: function _null() {
|
|
9958
|
+
return null;
|
|
9959
|
+
},
|
|
9964
9960
|
block: function block(props) {
|
|
9965
9961
|
props = convertEntities(props);
|
|
9966
9962
|
return BlockContent.BlockContent.defaultSerializers.types.block(props);
|
|
@@ -10156,7 +10152,7 @@ var getSerializers = function getSerializers() {
|
|
|
10156
10152
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10157
10153
|
return href ? React__default.createElement(
|
|
10158
10154
|
'a',
|
|
10159
|
-
_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 } }),
|
|
10160
10156
|
children
|
|
10161
10157
|
) : children;
|
|
10162
10158
|
},
|