@mjhls/mjh-framework 1.0.529 → 1.0.530
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 +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +7 -8
- package/dist/cjs/AD300x250x600.js +7 -8
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-393c6084.js → ADInfeed-d8e47444.js} +9 -11
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-dd4e103e.js → ADlgInfeed-947c3a47.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -15
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleQueue.js +114 -117
- package/dist/cjs/Auth.js +344 -232
- package/dist/cjs/{AuthorComponent-5bb8f868.js → AuthorComponent-cb8b8128.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-77f81ffc.js} +24 -26
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +18 -19
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +73 -77
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-a06d722a.js → Dfp-fcdeabc4.js} +20 -22
- package/dist/cjs/EventsDeck.js +89 -96
- package/dist/cjs/ExternalResources.js +42 -43
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/{Figure-85d19c5f.js → Figure-eeac313a.js} +20 -21
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +145 -149
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +33 -34
- package/dist/cjs/HamMagazine.js +104 -109
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/{InscreenSensor-1f9f7db4.js → InscreenSensor-3aec8492.js} +7 -8
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +18 -19
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +52 -53
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +107 -112
- package/dist/cjs/NavNative.js +66 -71
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +130 -132
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +44 -48
- package/dist/cjs/QueueDeckExpanded.js +187 -187
- package/dist/cjs/RelatedContent.js +18 -19
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +17 -18
- package/dist/cjs/{SocialNavFooter-d9ab4d17.js → SocialNavFooter-9a07520f.js} +17 -18
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +38 -39
- package/dist/cjs/View.js +160 -165
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +42 -43
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +652 -674
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-3d208b98.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-637d3f1e.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-8a3fb0bc.js → index-fa0fb52c.js} +10 -13
- package/dist/cjs/{index-44481153.js → index-fa3cec70.js} +14 -14
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2ea63d18.js → index.esm-25423c2f.js} +6 -3
- package/dist/cjs/{index.esm-c8d2c195.js → index.esm-c0d8b44b.js} +9 -4
- package/dist/cjs/{index.esm-d7e04264.js → index.esm-fcdbd2c6.js} +15 -6
- package/dist/cjs/index.js +32 -32
- package/dist/cjs/{inherits-4a2f1cc3.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-c50facd7.js → main-88348b15.js} +53 -89
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-cd0d9d3b.js} +11 -13
- package/dist/cjs/{typeof-583cdc4b.js → typeof-1869832c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +5 -5
- package/dist/esm/AD300x250x600.js +5 -5
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-1dd2344b.js → ADInfeed-2eb234ae.js} +5 -5
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWebcast.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-cecd5e76.js → ADlgInfeed-17c13711.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +100 -100
- package/dist/esm/Auth.js +326 -210
- package/dist/esm/{AuthorComponent-f67cb027.js → AuthorComponent-158226c9.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +14 -14
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +54 -54
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-0557840a.js → Dfp-81a052c2.js} +10 -10
- package/dist/esm/EventsDeck.js +47 -47
- package/dist/esm/ExternalResources.js +36 -36
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/{Figure-0b6d360c.js → Figure-bc2b95d7.js} +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +107 -107
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +30 -30
- package/dist/esm/HamMagazine.js +77 -77
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/{InscreenSensor-3e1fe82a.js → InscreenSensor-280b2b10.js} +5 -5
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +16 -16
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +82 -82
- package/dist/esm/NavNative.js +48 -48
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +69 -69
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +25 -25
- package/dist/esm/QueueDeckExpanded.js +168 -168
- package/dist/esm/RelatedContent.js +15 -15
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialNavFooter-1a531144.js → SocialNavFooter-4fb16720.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TemplateNormal.js +28 -28
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +130 -130
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +33 -33
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +614 -631
- package/dist/esm/{index-1819118a.js → index-3f4dd6f2.js} +9 -7
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-d3249151.js → index.esm-9d6faf80.js} +9 -4
- package/dist/esm/{index.esm-be9486fc.js → index.esm-a7ad65ba.js} +6 -3
- package/dist/esm/{index.esm-4b1810e3.js → index.esm-b97cf389.js} +15 -6
- package/dist/esm/index.js +26 -26
- package/dist/esm/{inherits-2758cc14.js → inherits-b8e4c697.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-b722e2e2.js → main-d7ee6151.js} +52 -87
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-7e72fee0.js → typeof-5f046efd.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
require('./_to-object-329a650b.js');
|
|
5
7
|
require('./core.get-iterator-method-41e87ec1.js');
|
|
@@ -7,20 +9,22 @@ require('./_library-dd23b178.js');
|
|
|
7
9
|
require('./_iter-detect-4d0352f8.js');
|
|
8
10
|
var from = require('./from-ea347372.js');
|
|
9
11
|
require('./_object-pie-68c5bcbc.js');
|
|
10
|
-
var _extends = require('./extends-60837c34.js');
|
|
12
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
11
13
|
require('./web.dom.iterable-43c3e277.js');
|
|
12
|
-
require('./typeof-
|
|
14
|
+
require('./typeof-1869832c.js');
|
|
13
15
|
require('./_is-array-754e012d.js');
|
|
14
16
|
var React = require('react');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
+
var React__default = _interopDefault(React);
|
|
18
|
+
var index = require('./index-fa3cec70.js');
|
|
19
|
+
var PropTypes = _interopDefault(require('prop-types'));
|
|
17
20
|
var Router = require('next/router');
|
|
21
|
+
var Router__default = _interopDefault(Router);
|
|
18
22
|
require('./isSymbol-488934a7.js');
|
|
19
23
|
require('./debounce-32e57002.js');
|
|
20
24
|
require('react-dom');
|
|
21
|
-
var index = require('./index-
|
|
22
|
-
var index$2 = require('./index-
|
|
23
|
-
var main = require('./main-
|
|
25
|
+
var index$1 = require('./index-be0c82be.js');
|
|
26
|
+
var index$2 = require('./index-fa0fb52c.js');
|
|
27
|
+
var main = require('./main-88348b15.js');
|
|
24
28
|
var entities = require('./entities-310b46ee.js');
|
|
25
29
|
var slicedToArray = require('./slicedToArray-8063ee51.js');
|
|
26
30
|
require('./stringify-7c5aff47.js');
|
|
@@ -28,24 +32,15 @@ require('./asyncToGenerator-8e707718.js');
|
|
|
28
32
|
require('./_set-species-4458e975.js');
|
|
29
33
|
var Segment = require('./beam-d22818d3.js');
|
|
30
34
|
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var BlockContent = require('./BlockContent-
|
|
35
|
+
var BlockContent = require('./BlockContent-77f81ffc.js');
|
|
32
36
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
33
37
|
var GroupDeck = require('./GroupDeck.js');
|
|
34
38
|
var reactBootstrap = require('react-bootstrap');
|
|
35
|
-
var Button = require('react-bootstrap/Button');
|
|
39
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
36
40
|
var util = require('./util-f2c1b65b.js');
|
|
37
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-
|
|
38
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
39
|
-
var dynamic = require('next/dynamic');
|
|
40
|
-
|
|
41
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
42
|
-
|
|
43
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
44
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
45
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
46
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
47
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
48
|
-
var dynamic__default = /*#__PURE__*/_interopDefaultLegacy(dynamic);
|
|
41
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
42
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
43
|
+
var dynamic = _interopDefault(require('next/dynamic'));
|
|
49
44
|
|
|
50
45
|
var urlFor = function urlFor(source, builder) {
|
|
51
46
|
return builder.image(source).auto('format');
|
|
@@ -54,7 +49,7 @@ var urlFor = function urlFor(source, builder) {
|
|
|
54
49
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
55
50
|
var pageNumber = selectedIndex + 1;
|
|
56
51
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
57
|
-
Router__default
|
|
52
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
58
53
|
};
|
|
59
54
|
|
|
60
55
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -69,7 +64,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
64
|
carouselIndex = _useState2[0],
|
|
70
65
|
setCarouselIndex = _useState2[1];
|
|
71
66
|
|
|
72
|
-
var builder = index.imageUrlBuilder(client);
|
|
67
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
73
68
|
|
|
74
69
|
React.useEffect(function () {
|
|
75
70
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -82,24 +77,24 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
82
77
|
}, [router]);
|
|
83
78
|
|
|
84
79
|
React.useEffect(function () {
|
|
85
|
-
index
|
|
80
|
+
index.lib_3.refresh();
|
|
86
81
|
if (pageview) pageview(router.asPath);
|
|
87
82
|
}, [router]);
|
|
88
83
|
|
|
89
|
-
return React__default
|
|
84
|
+
return React__default.createElement(
|
|
90
85
|
'div',
|
|
91
86
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
87
|
+
React__default.createElement(
|
|
93
88
|
reactBootstrap.Carousel,
|
|
94
89
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
90
|
return onChangeSlide(selectedIndex, router);
|
|
96
91
|
}, interval: null },
|
|
97
92
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
93
|
+
return React__default.createElement(
|
|
99
94
|
reactBootstrap.Carousel.Item,
|
|
100
95
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
102
|
-
slide.caption && React__default
|
|
96
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
97
|
+
slide.caption && React__default.createElement(
|
|
103
98
|
'p',
|
|
104
99
|
{ className: 'p-2' },
|
|
105
100
|
slide.caption
|
|
@@ -110,18 +105,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
110
105
|
);
|
|
111
106
|
};
|
|
112
107
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
var isArray = Array.isArray;
|
|
109
|
+
var keyList = Object.keys;
|
|
110
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
116
111
|
|
|
117
112
|
var fastDeepEqual = function equal(a, b) {
|
|
118
113
|
if (a === b) return true;
|
|
119
114
|
|
|
120
115
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
121
|
-
|
|
116
|
+
var arrA = isArray(a)
|
|
117
|
+
, arrB = isArray(b)
|
|
118
|
+
, i
|
|
119
|
+
, length
|
|
120
|
+
, key;
|
|
122
121
|
|
|
123
|
-
|
|
124
|
-
if (Array.isArray(a)) {
|
|
122
|
+
if (arrA && arrB) {
|
|
125
123
|
length = a.length;
|
|
126
124
|
if (length != b.length) return false;
|
|
127
125
|
for (i = length; i-- !== 0;)
|
|
@@ -129,29 +127,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
129
127
|
return true;
|
|
130
128
|
}
|
|
131
129
|
|
|
130
|
+
if (arrA != arrB) return false;
|
|
132
131
|
|
|
132
|
+
var dateA = a instanceof Date
|
|
133
|
+
, dateB = b instanceof Date;
|
|
134
|
+
if (dateA != dateB) return false;
|
|
135
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
133
136
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (
|
|
137
|
+
var regexpA = a instanceof RegExp
|
|
138
|
+
, regexpB = b instanceof RegExp;
|
|
139
|
+
if (regexpA != regexpB) return false;
|
|
140
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
137
141
|
|
|
138
|
-
keys =
|
|
142
|
+
var keys = keyList(a);
|
|
139
143
|
length = keys.length;
|
|
140
|
-
|
|
144
|
+
|
|
145
|
+
if (length !== keyList(b).length)
|
|
146
|
+
return false;
|
|
141
147
|
|
|
142
148
|
for (i = length; i-- !== 0;)
|
|
143
|
-
if (!
|
|
149
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
144
150
|
|
|
145
151
|
for (i = length; i-- !== 0;) {
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
key = keys[i];
|
|
148
153
|
if (!equal(a[key], b[key])) return false;
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
return true;
|
|
152
157
|
}
|
|
153
158
|
|
|
154
|
-
// true if both NaN, false otherwise
|
|
155
159
|
return a!==a && b!==b;
|
|
156
160
|
};
|
|
157
161
|
|
|
@@ -1574,239 +1578,199 @@ module.exports = exports['default'];
|
|
|
1574
1578
|
|
|
1575
1579
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1576
1580
|
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1580
|
-
|
|
1581
|
-
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); } }
|
|
1582
|
-
|
|
1583
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1584
|
-
|
|
1585
|
-
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); }
|
|
1586
|
-
|
|
1587
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1588
|
-
|
|
1589
|
-
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); }; }
|
|
1590
|
-
|
|
1591
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1592
|
-
|
|
1593
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
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; }; }();
|
|
1594
1582
|
|
|
1595
|
-
function
|
|
1583
|
+
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; };
|
|
1596
1584
|
|
|
1597
|
-
function
|
|
1585
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1598
1586
|
|
|
1599
|
-
function
|
|
1587
|
+
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; }
|
|
1600
1588
|
|
|
1601
|
-
function
|
|
1589
|
+
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; }
|
|
1602
1590
|
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object}
|
|
1608
|
-
* @param {Object} props
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1609
1596
|
*/
|
|
1610
|
-
|
|
1611
1597
|
function shouldUpdateVideo(prevProps, props) {
|
|
1612
1598
|
// A changing video should always trigger an update
|
|
1613
1599
|
if (prevProps.videoId !== props.videoId) {
|
|
1614
1600
|
return true;
|
|
1615
|
-
}
|
|
1616
|
-
// update.
|
|
1617
|
-
|
|
1601
|
+
}
|
|
1618
1602
|
|
|
1603
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1604
|
+
// update.
|
|
1619
1605
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1620
1606
|
var vars = props.opts.playerVars || {};
|
|
1607
|
+
|
|
1621
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1622
1609
|
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1625
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1626
|
-
* player reset is necessary.
|
|
1627
|
-
*
|
|
1628
|
-
* @param {Object} opts
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
1610
|
|
|
1611
|
+
/**
|
|
1612
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1613
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1614
|
+
* player reset is necessary.
|
|
1615
|
+
*
|
|
1616
|
+
* @param {Object} opts
|
|
1617
|
+
*/
|
|
1632
1618
|
function filterResetOptions(opts) {
|
|
1633
|
-
return
|
|
1634
|
-
playerVars:
|
|
1619
|
+
return _extends({}, opts, {
|
|
1620
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1635
1621
|
autoplay: 0,
|
|
1636
1622
|
start: 0,
|
|
1637
1623
|
end: 0
|
|
1638
1624
|
})
|
|
1639
1625
|
});
|
|
1640
1626
|
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1643
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1644
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1645
|
-
* those.
|
|
1646
|
-
*
|
|
1647
|
-
* @param {Object} prevProps
|
|
1648
|
-
* @param {Object} props
|
|
1649
|
-
*/
|
|
1650
|
-
|
|
1651
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1636
|
+
*/
|
|
1652
1637
|
function shouldResetPlayer(prevProps, props) {
|
|
1653
1638
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1654
1639
|
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Check whether a props change should result in an id or className update.
|
|
1657
|
-
*
|
|
1658
|
-
* @param {Object} prevProps
|
|
1659
|
-
* @param {Object} props
|
|
1660
|
-
*/
|
|
1661
|
-
|
|
1662
1640
|
|
|
1641
|
+
/**
|
|
1642
|
+
* Check whether a props change should result in an id or className update.
|
|
1643
|
+
*
|
|
1644
|
+
* @param {Object} prevProps
|
|
1645
|
+
* @param {Object} props
|
|
1646
|
+
*/
|
|
1663
1647
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1664
1648
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1665
1649
|
}
|
|
1666
1650
|
|
|
1667
|
-
var YouTube =
|
|
1651
|
+
var YouTube = function (_React$Component) {
|
|
1668
1652
|
_inherits(YouTube, _React$Component);
|
|
1669
1653
|
|
|
1670
|
-
var _super = _createSuper(YouTube);
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1674
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1675
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1676
|
-
*/
|
|
1677
1654
|
function YouTube(props) {
|
|
1678
|
-
var _this;
|
|
1679
|
-
|
|
1680
1655
|
_classCallCheck(this, YouTube);
|
|
1681
1656
|
|
|
1682
|
-
_this =
|
|
1657
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1683
1658
|
|
|
1684
|
-
|
|
1659
|
+
_this.onPlayerReady = function (event) {
|
|
1685
1660
|
return _this.props.onReady(event);
|
|
1686
|
-
}
|
|
1661
|
+
};
|
|
1687
1662
|
|
|
1688
|
-
|
|
1663
|
+
_this.onPlayerError = function (event) {
|
|
1689
1664
|
return _this.props.onError(event);
|
|
1690
|
-
}
|
|
1665
|
+
};
|
|
1691
1666
|
|
|
1692
|
-
|
|
1667
|
+
_this.onPlayerStateChange = function (event) {
|
|
1693
1668
|
_this.props.onStateChange(event);
|
|
1694
|
-
|
|
1695
1669
|
switch (event.data) {
|
|
1670
|
+
|
|
1696
1671
|
case YouTube.PlayerState.ENDED:
|
|
1697
1672
|
_this.props.onEnd(event);
|
|
1698
|
-
|
|
1699
1673
|
break;
|
|
1700
1674
|
|
|
1701
1675
|
case YouTube.PlayerState.PLAYING:
|
|
1702
1676
|
_this.props.onPlay(event);
|
|
1703
|
-
|
|
1704
1677
|
break;
|
|
1705
1678
|
|
|
1706
1679
|
case YouTube.PlayerState.PAUSED:
|
|
1707
1680
|
_this.props.onPause(event);
|
|
1708
|
-
|
|
1709
1681
|
break;
|
|
1710
1682
|
}
|
|
1711
|
-
}
|
|
1683
|
+
};
|
|
1712
1684
|
|
|
1713
|
-
|
|
1685
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1714
1686
|
return _this.props.onPlaybackRateChange(event);
|
|
1715
|
-
}
|
|
1687
|
+
};
|
|
1716
1688
|
|
|
1717
|
-
|
|
1689
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1718
1690
|
return _this.props.onPlaybackQualityChange(event);
|
|
1719
|
-
}
|
|
1691
|
+
};
|
|
1720
1692
|
|
|
1721
|
-
|
|
1693
|
+
_this.createPlayer = function () {
|
|
1722
1694
|
// do not attempt to create a player server-side, it won't work
|
|
1723
|
-
if (typeof document === 'undefined') return;
|
|
1724
|
-
|
|
1725
|
-
var playerOpts =
|
|
1695
|
+
if (typeof document === 'undefined') return;
|
|
1696
|
+
// create player
|
|
1697
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1726
1698
|
// preload the `videoId` video if one is already given
|
|
1727
1699
|
videoId: _this.props.videoId
|
|
1728
1700
|
});
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1701
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1702
|
+
// attach event handlers
|
|
1732
1703
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1733
|
-
|
|
1734
1704
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1735
|
-
|
|
1736
1705
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1737
|
-
|
|
1738
1706
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1739
|
-
|
|
1740
1707
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1741
|
-
}
|
|
1708
|
+
};
|
|
1742
1709
|
|
|
1743
|
-
|
|
1710
|
+
_this.resetPlayer = function () {
|
|
1744
1711
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1745
|
-
}
|
|
1712
|
+
};
|
|
1746
1713
|
|
|
1747
|
-
|
|
1714
|
+
_this.updatePlayer = function () {
|
|
1748
1715
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1749
1716
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1750
1717
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1751
1718
|
});
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1755
|
-
return _this.internalPlayer;
|
|
1756
|
-
});
|
|
1719
|
+
};
|
|
1757
1720
|
|
|
1758
|
-
|
|
1721
|
+
_this.updateVideo = function () {
|
|
1759
1722
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1760
1723
|
_this.internalPlayer.stopVideo();
|
|
1761
|
-
|
|
1762
1724
|
return;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1725
|
+
}
|
|
1765
1726
|
|
|
1727
|
+
// set queueing options
|
|
1766
1728
|
var autoplay = false;
|
|
1767
1729
|
var opts = {
|
|
1768
1730
|
videoId: _this.props.videoId
|
|
1769
1731
|
};
|
|
1770
|
-
|
|
1771
1732
|
if ('playerVars' in _this.props.opts) {
|
|
1772
1733
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1773
|
-
|
|
1774
1734
|
if ('start' in _this.props.opts.playerVars) {
|
|
1775
1735
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1776
1736
|
}
|
|
1777
|
-
|
|
1778
1737
|
if ('end' in _this.props.opts.playerVars) {
|
|
1779
1738
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1780
1739
|
}
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1740
|
+
}
|
|
1783
1741
|
|
|
1742
|
+
// if autoplay is enabled loadVideoById
|
|
1784
1743
|
if (autoplay) {
|
|
1785
1744
|
_this.internalPlayer.loadVideoById(opts);
|
|
1786
|
-
|
|
1787
1745
|
return;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1746
|
+
}
|
|
1747
|
+
// default behaviour just cues the video
|
|
1791
1748
|
_this.internalPlayer.cueVideoById(opts);
|
|
1792
|
-
}
|
|
1749
|
+
};
|
|
1793
1750
|
|
|
1794
|
-
|
|
1751
|
+
_this.refContainer = function (container) {
|
|
1795
1752
|
_this.container = container;
|
|
1796
|
-
}
|
|
1753
|
+
};
|
|
1797
1754
|
|
|
1798
1755
|
_this.container = null;
|
|
1799
1756
|
_this.internalPlayer = null;
|
|
1800
1757
|
return _this;
|
|
1801
1758
|
}
|
|
1802
1759
|
|
|
1760
|
+
/**
|
|
1761
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1762
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1763
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1764
|
+
*/
|
|
1765
|
+
|
|
1766
|
+
|
|
1803
1767
|
_createClass(YouTube, [{
|
|
1804
|
-
key:
|
|
1768
|
+
key: 'componentDidMount',
|
|
1805
1769
|
value: function componentDidMount() {
|
|
1806
1770
|
this.createPlayer();
|
|
1807
1771
|
}
|
|
1808
1772
|
}, {
|
|
1809
|
-
key:
|
|
1773
|
+
key: 'componentDidUpdate',
|
|
1810
1774
|
value: function componentDidUpdate(prevProps) {
|
|
1811
1775
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1812
1776
|
this.updatePlayer();
|
|
@@ -1821,70 +1785,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1821
1785
|
}
|
|
1822
1786
|
}
|
|
1823
1787
|
}, {
|
|
1824
|
-
key:
|
|
1788
|
+
key: 'componentWillUnmount',
|
|
1825
1789
|
value: function componentWillUnmount() {
|
|
1826
|
-
/**
|
|
1827
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1828
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1829
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1830
|
-
* this method isn't quick enough to reset the container element.
|
|
1790
|
+
/**
|
|
1791
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1792
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1793
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1794
|
+
* this method isn't quick enough to reset the container element.
|
|
1831
1795
|
*/
|
|
1832
1796
|
this.internalPlayer.destroy();
|
|
1833
1797
|
}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1801
|
+
*
|
|
1802
|
+
* @param {Object} event
|
|
1803
|
+
* @param {Object} target - player object
|
|
1804
|
+
*/
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1809
|
+
*
|
|
1810
|
+
* @param {Object} event
|
|
1811
|
+
* @param {Integer} data - error type
|
|
1812
|
+
* @param {Object} target - player object
|
|
1813
|
+
*/
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1818
|
+
*
|
|
1819
|
+
* @param {Object} event
|
|
1820
|
+
* @param {Integer} data - status change type
|
|
1821
|
+
* @param {Object} target - actual YT player
|
|
1822
|
+
*/
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1827
|
+
*
|
|
1828
|
+
* @param {Object} event
|
|
1829
|
+
* @param {Float} data - playback rate
|
|
1830
|
+
* @param {Object} target - actual YT player
|
|
1831
|
+
*/
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1836
|
+
*
|
|
1837
|
+
* @param {Object} event
|
|
1838
|
+
* @param {String} data - playback quality
|
|
1839
|
+
* @param {Object} target - actual YT player
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1850
|
+
*/
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1855
|
+
* React should update this automatically but since the Youtube Player API
|
|
1856
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1857
|
+
*/
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1862
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1863
|
+
* Youtube Player API methods to update the video.
|
|
1839
1864
|
*/
|
|
1840
1865
|
|
|
1841
1866
|
}, {
|
|
1842
|
-
key:
|
|
1867
|
+
key: 'render',
|
|
1843
1868
|
value: function render() {
|
|
1844
|
-
return
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
id: this.props.id,
|
|
1848
|
-
|
|
1849
|
-
ref: this.refContainer
|
|
1850
|
-
}));
|
|
1869
|
+
return React__default.createElement(
|
|
1870
|
+
'div',
|
|
1871
|
+
{ className: this.props.containerClassName },
|
|
1872
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1873
|
+
);
|
|
1851
1874
|
}
|
|
1852
1875
|
}]);
|
|
1853
1876
|
|
|
1854
1877
|
return YouTube;
|
|
1855
|
-
}(React__default
|
|
1856
|
-
|
|
1857
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1858
|
-
UNSTARTED: -1,
|
|
1859
|
-
ENDED: 0,
|
|
1860
|
-
PLAYING: 1,
|
|
1861
|
-
PAUSED: 2,
|
|
1862
|
-
BUFFERING: 3,
|
|
1863
|
-
CUED: 5
|
|
1864
|
-
});
|
|
1878
|
+
}(React__default.Component);
|
|
1865
1879
|
|
|
1866
1880
|
YouTube.propTypes = {
|
|
1867
|
-
videoId:
|
|
1881
|
+
videoId: PropTypes.string,
|
|
1882
|
+
|
|
1868
1883
|
// custom ID for player element
|
|
1869
|
-
id:
|
|
1884
|
+
id: PropTypes.string,
|
|
1885
|
+
|
|
1870
1886
|
// custom class name for player element
|
|
1871
|
-
className:
|
|
1887
|
+
className: PropTypes.string,
|
|
1872
1888
|
// custom class name for player container element
|
|
1873
|
-
containerClassName:
|
|
1889
|
+
containerClassName: PropTypes.string,
|
|
1890
|
+
|
|
1874
1891
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1875
|
-
opts:
|
|
1892
|
+
opts: PropTypes.objectOf(PropTypes.any),
|
|
1893
|
+
|
|
1876
1894
|
// event subscriptions
|
|
1877
|
-
onReady:
|
|
1878
|
-
onError:
|
|
1879
|
-
onPlay:
|
|
1880
|
-
onPause:
|
|
1881
|
-
onEnd:
|
|
1882
|
-
onStateChange:
|
|
1883
|
-
onPlaybackRateChange:
|
|
1884
|
-
onPlaybackQualityChange:
|
|
1895
|
+
onReady: PropTypes.func,
|
|
1896
|
+
onError: PropTypes.func,
|
|
1897
|
+
onPlay: PropTypes.func,
|
|
1898
|
+
onPause: PropTypes.func,
|
|
1899
|
+
onEnd: PropTypes.func,
|
|
1900
|
+
onStateChange: PropTypes.func,
|
|
1901
|
+
onPlaybackRateChange: PropTypes.func,
|
|
1902
|
+
onPlaybackQualityChange: PropTypes.func
|
|
1885
1903
|
};
|
|
1886
1904
|
YouTube.defaultProps = {
|
|
1887
|
-
videoId: null,
|
|
1888
1905
|
id: null,
|
|
1889
1906
|
className: null,
|
|
1890
1907
|
opts: {},
|
|
@@ -1898,6 +1915,14 @@ YouTube.defaultProps = {
|
|
|
1898
1915
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1899
1916
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1900
1917
|
};
|
|
1918
|
+
YouTube.PlayerState = {
|
|
1919
|
+
UNSTARTED: -1,
|
|
1920
|
+
ENDED: 0,
|
|
1921
|
+
PLAYING: 1,
|
|
1922
|
+
PAUSED: 2,
|
|
1923
|
+
BUFFERING: 3,
|
|
1924
|
+
CUED: 5
|
|
1925
|
+
};
|
|
1901
1926
|
|
|
1902
1927
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1903
1928
|
var url = _ref.url;
|
|
@@ -1997,11 +2022,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1997
2022
|
Segment.Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
1998
2023
|
};
|
|
1999
2024
|
|
|
2000
|
-
return React__default
|
|
2025
|
+
return React__default.createElement(
|
|
2001
2026
|
'div',
|
|
2002
2027
|
{ id: 'fluid-video-container' },
|
|
2003
|
-
React__default
|
|
2004
|
-
React__default
|
|
2028
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2029
|
+
React__default.createElement(
|
|
2005
2030
|
'style',
|
|
2006
2031
|
{ jsx: 'true' },
|
|
2007
2032
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2014,20 +2039,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2014
2039
|
content = _ref.content,
|
|
2015
2040
|
getSerializers = _ref.getSerializers;
|
|
2016
2041
|
|
|
2017
|
-
return React__default
|
|
2042
|
+
return React__default.createElement(
|
|
2018
2043
|
'article',
|
|
2019
2044
|
{ className: 'sidebar' },
|
|
2020
|
-
React__default
|
|
2045
|
+
React__default.createElement(
|
|
2021
2046
|
'div',
|
|
2022
2047
|
null,
|
|
2023
|
-
React__default
|
|
2048
|
+
React__default.createElement(
|
|
2024
2049
|
'h3',
|
|
2025
2050
|
null,
|
|
2026
2051
|
caption
|
|
2027
2052
|
),
|
|
2028
|
-
React__default
|
|
2053
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2029
2054
|
),
|
|
2030
|
-
React__default
|
|
2055
|
+
React__default.createElement(
|
|
2031
2056
|
'style',
|
|
2032
2057
|
{ jsx: 'true' },
|
|
2033
2058
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2038,18 +2063,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2038
2063
|
var TableShow = function TableShow(_ref) {
|
|
2039
2064
|
var rows = _ref.rows;
|
|
2040
2065
|
|
|
2041
|
-
return React__default
|
|
2066
|
+
return React__default.createElement(
|
|
2042
2067
|
reactBootstrap.Table,
|
|
2043
2068
|
{ bordered: true, hover: true, responsive: true },
|
|
2044
|
-
React__default
|
|
2069
|
+
React__default.createElement(
|
|
2045
2070
|
'tbody',
|
|
2046
2071
|
null,
|
|
2047
2072
|
rows && rows.map(function (row) {
|
|
2048
|
-
return React__default
|
|
2073
|
+
return React__default.createElement(
|
|
2049
2074
|
'tr',
|
|
2050
2075
|
{ key: row._key },
|
|
2051
2076
|
row.cells && row.cells.map(function (cell, index) {
|
|
2052
|
-
return cell && React__default
|
|
2077
|
+
return cell && React__default.createElement(
|
|
2053
2078
|
'td',
|
|
2054
2079
|
{ key: index },
|
|
2055
2080
|
cell
|
|
@@ -2077,7 +2102,7 @@ var Media = function Media(_ref) {
|
|
|
2077
2102
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2078
2103
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2079
2104
|
|
|
2080
|
-
var builder = index.imageUrlBuilder(client);
|
|
2105
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2081
2106
|
|
|
2082
2107
|
var urlFor = function urlFor(source) {
|
|
2083
2108
|
return builder.image(source).auto('format');
|
|
@@ -2152,14 +2177,14 @@ var Media = function Media(_ref) {
|
|
|
2152
2177
|
margin: imageMargin
|
|
2153
2178
|
};
|
|
2154
2179
|
|
|
2155
|
-
return React__default
|
|
2180
|
+
return React__default.createElement(
|
|
2156
2181
|
reactBootstrap.Figure,
|
|
2157
2182
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2158
|
-
React__default
|
|
2183
|
+
React__default.createElement(
|
|
2159
2184
|
'a',
|
|
2160
2185
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2161
|
-
React__default
|
|
2162
|
-
caption && React__default
|
|
2186
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2187
|
+
caption && React__default.createElement(
|
|
2163
2188
|
reactBootstrap.Figure.Caption,
|
|
2164
2189
|
{ className: 'media-caption' },
|
|
2165
2190
|
caption
|
|
@@ -2167,9 +2192,9 @@ var Media = function Media(_ref) {
|
|
|
2167
2192
|
)
|
|
2168
2193
|
);
|
|
2169
2194
|
} else if (caption && caption !== '') {
|
|
2170
|
-
return React__default
|
|
2195
|
+
return React__default.createElement(
|
|
2171
2196
|
'a',
|
|
2172
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2197
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2173
2198
|
href: uploadDoc.asset.url + '?dl='
|
|
2174
2199
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2175
2200
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2184,10 +2209,10 @@ var Media = function Media(_ref) {
|
|
|
2184
2209
|
var IFrame = function IFrame(_ref) {
|
|
2185
2210
|
var url = _ref.url;
|
|
2186
2211
|
|
|
2187
|
-
return React__default
|
|
2212
|
+
return React__default.createElement(
|
|
2188
2213
|
'div',
|
|
2189
2214
|
{ className: 'd-block text-center mb-3' },
|
|
2190
|
-
React__default
|
|
2215
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2191
2216
|
);
|
|
2192
2217
|
};
|
|
2193
2218
|
|
|
@@ -2300,54 +2325,54 @@ var Video = function Video(_ref) {
|
|
|
2300
2325
|
|
|
2301
2326
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2302
2327
|
if (videoID) {
|
|
2303
|
-
return React__default
|
|
2328
|
+
return React__default.createElement(
|
|
2304
2329
|
'div',
|
|
2305
2330
|
null,
|
|
2306
|
-
React__default
|
|
2331
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2307
2332
|
onSuccess: onVideoSuccess,
|
|
2308
2333
|
accountId: accountIDs.brightcove.accountId,
|
|
2309
2334
|
videoId: videoID,
|
|
2310
2335
|
playerId: accountIDs.brightcove.playerId,
|
|
2311
2336
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2312
2337
|
}),
|
|
2313
|
-
React__default
|
|
2338
|
+
React__default.createElement(
|
|
2314
2339
|
'style',
|
|
2315
2340
|
{ jsx: 'true' },
|
|
2316
2341
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2317
2342
|
)
|
|
2318
2343
|
);
|
|
2319
2344
|
} else if (playlistID) {
|
|
2320
|
-
return React__default
|
|
2345
|
+
return React__default.createElement(
|
|
2321
2346
|
'div',
|
|
2322
2347
|
null,
|
|
2323
|
-
React__default
|
|
2348
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2324
2349
|
accountId: accountIDs.brightcove.accountId,
|
|
2325
2350
|
playlistId: playlistID,
|
|
2326
2351
|
playerId: accountIDs.brightcove.playerId,
|
|
2327
2352
|
onSuccess: onVideoSuccess,
|
|
2328
2353
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2329
2354
|
}),
|
|
2330
|
-
React__default
|
|
2355
|
+
React__default.createElement(
|
|
2331
2356
|
'style',
|
|
2332
2357
|
{ jsx: 'true' },
|
|
2333
2358
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2334
2359
|
)
|
|
2335
2360
|
);
|
|
2336
2361
|
} else if (experienceID) {
|
|
2337
|
-
return React__default
|
|
2362
|
+
return React__default.createElement(
|
|
2338
2363
|
'div',
|
|
2339
2364
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2340
|
-
React__default
|
|
2365
|
+
React__default.createElement(
|
|
2341
2366
|
'div',
|
|
2342
2367
|
{ style: { paddingTop: '56.25%' } },
|
|
2343
|
-
React__default
|
|
2368
|
+
React__default.createElement('iframe', {
|
|
2344
2369
|
src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html',
|
|
2345
2370
|
allowFullScreen: 'true',
|
|
2346
2371
|
webkitallowfullscreen: 'true',
|
|
2347
2372
|
mozallowfullscreen: 'true',
|
|
2348
2373
|
style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
|
|
2349
2374
|
}),
|
|
2350
|
-
React__default
|
|
2375
|
+
React__default.createElement(
|
|
2351
2376
|
'style',
|
|
2352
2377
|
{ jsx: 'true' },
|
|
2353
2378
|
'\n .brightcove-playlist iframe {\n height: 100% !important;\n }\n '
|
|
@@ -2369,7 +2394,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2369
2394
|
});
|
|
2370
2395
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2371
2396
|
|
|
2372
|
-
var _propTypes = _interopRequireDefault(
|
|
2397
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
2373
2398
|
|
|
2374
2399
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2375
2400
|
|
|
@@ -2732,17 +2757,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2732
2757
|
|
|
2733
2758
|
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; }
|
|
2734
2759
|
|
|
2735
|
-
function
|
|
2736
|
-
|
|
2737
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2738
|
-
|
|
2739
|
-
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."); }
|
|
2740
|
-
|
|
2741
|
-
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); }
|
|
2760
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2742
2761
|
|
|
2743
|
-
function
|
|
2762
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2744
2763
|
|
|
2745
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2764
|
+
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; }
|
|
2746
2765
|
|
|
2747
2766
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2748
2767
|
|
|
@@ -2872,12 +2891,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2872
2891
|
|
|
2873
2892
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2874
2893
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2875
|
-
|
|
2876
|
-
var
|
|
2877
|
-
|
|
2894
|
+
var _iteratorNormalCompletion = true;
|
|
2895
|
+
var _didIteratorError = false;
|
|
2896
|
+
var _iteratorError = undefined;
|
|
2878
2897
|
|
|
2879
2898
|
try {
|
|
2880
|
-
for (_iterator.
|
|
2899
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2881
2900
|
var p = _step.value;
|
|
2882
2901
|
|
|
2883
2902
|
if (props$1[p]) {
|
|
@@ -2892,9 +2911,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2892
2911
|
}
|
|
2893
2912
|
}
|
|
2894
2913
|
} catch (err) {
|
|
2895
|
-
|
|
2914
|
+
_didIteratorError = true;
|
|
2915
|
+
_iteratorError = err;
|
|
2896
2916
|
} finally {
|
|
2897
|
-
|
|
2917
|
+
try {
|
|
2918
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2919
|
+
_iterator["return"]();
|
|
2920
|
+
}
|
|
2921
|
+
} finally {
|
|
2922
|
+
if (_didIteratorError) {
|
|
2923
|
+
throw _iteratorError;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2898
2926
|
}
|
|
2899
2927
|
|
|
2900
2928
|
return config;
|
|
@@ -2959,7 +2987,7 @@ function isEqual(a, b) {
|
|
|
2959
2987
|
return true;
|
|
2960
2988
|
}
|
|
2961
2989
|
|
|
2962
|
-
if ((0, React__default
|
|
2990
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2963
2991
|
return true;
|
|
2964
2992
|
}
|
|
2965
2993
|
|
|
@@ -3021,7 +3049,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3021
3049
|
});
|
|
3022
3050
|
exports["default"] = void 0;
|
|
3023
3051
|
|
|
3024
|
-
var _react = _interopRequireWildcard(React__default
|
|
3052
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3025
3053
|
|
|
3026
3054
|
|
|
3027
3055
|
|
|
@@ -3041,16 +3069,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3041
3069
|
|
|
3042
3070
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3043
3071
|
|
|
3044
|
-
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); }; }
|
|
3045
|
-
|
|
3046
3072
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3047
3073
|
|
|
3048
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3049
|
-
|
|
3050
|
-
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; } }
|
|
3051
|
-
|
|
3052
3074
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3053
3075
|
|
|
3076
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3077
|
+
|
|
3054
3078
|
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); }
|
|
3055
3079
|
|
|
3056
3080
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3059,12 +3083,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3059
3083
|
|
|
3060
3084
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3061
3085
|
|
|
3062
|
-
var Player =
|
|
3086
|
+
var Player =
|
|
3087
|
+
/*#__PURE__*/
|
|
3088
|
+
function (_Component) {
|
|
3063
3089
|
_inherits(Player, _Component);
|
|
3064
3090
|
|
|
3065
|
-
var _super = _createSuper(Player);
|
|
3066
|
-
|
|
3067
3091
|
function Player() {
|
|
3092
|
+
var _getPrototypeOf2;
|
|
3093
|
+
|
|
3068
3094
|
var _this;
|
|
3069
3095
|
|
|
3070
3096
|
_classCallCheck(this, Player);
|
|
@@ -3073,7 +3099,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3073
3099
|
_args[_key] = arguments[_key];
|
|
3074
3100
|
}
|
|
3075
3101
|
|
|
3076
|
-
_this =
|
|
3102
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3077
3103
|
|
|
3078
3104
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3079
3105
|
|
|
@@ -3398,7 +3424,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3398
3424
|
return null;
|
|
3399
3425
|
}
|
|
3400
3426
|
|
|
3401
|
-
return
|
|
3427
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3402
3428
|
ref: this.ref,
|
|
3403
3429
|
onReady: this.handleReady,
|
|
3404
3430
|
onPlay: this.handlePlay,
|
|
@@ -3431,7 +3457,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3431
3457
|
});
|
|
3432
3458
|
exports["default"] = createSinglePlayer;
|
|
3433
3459
|
|
|
3434
|
-
var _react = _interopRequireWildcard(React__default
|
|
3460
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3435
3461
|
|
|
3436
3462
|
|
|
3437
3463
|
|
|
@@ -3459,16 +3485,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3459
3485
|
|
|
3460
3486
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3461
3487
|
|
|
3462
|
-
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); }; }
|
|
3463
|
-
|
|
3464
3488
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3465
3489
|
|
|
3466
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3467
|
-
|
|
3468
|
-
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; } }
|
|
3469
|
-
|
|
3470
3490
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3471
3491
|
|
|
3492
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3493
|
+
|
|
3472
3494
|
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); }
|
|
3473
3495
|
|
|
3474
3496
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3480,12 +3502,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3480
3502
|
function createSinglePlayer(activePlayer) {
|
|
3481
3503
|
var _class, _temp;
|
|
3482
3504
|
|
|
3483
|
-
return _temp = _class =
|
|
3505
|
+
return _temp = _class =
|
|
3506
|
+
/*#__PURE__*/
|
|
3507
|
+
function (_Component) {
|
|
3484
3508
|
_inherits(SinglePlayer, _Component);
|
|
3485
3509
|
|
|
3486
|
-
var _super = _createSuper(SinglePlayer);
|
|
3487
|
-
|
|
3488
3510
|
function SinglePlayer() {
|
|
3511
|
+
var _getPrototypeOf2;
|
|
3512
|
+
|
|
3489
3513
|
var _this;
|
|
3490
3514
|
|
|
3491
3515
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3494,7 +3518,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3494
3518
|
args[_key] = arguments[_key];
|
|
3495
3519
|
}
|
|
3496
3520
|
|
|
3497
|
-
_this =
|
|
3521
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3498
3522
|
|
|
3499
3523
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3500
3524
|
|
|
@@ -3562,12 +3586,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3562
3586
|
height = _this$props.height,
|
|
3563
3587
|
Wrapper = _this$props.wrapper;
|
|
3564
3588
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3565
|
-
return
|
|
3589
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3566
3590
|
style: _objectSpread({}, style, {
|
|
3567
3591
|
width: width,
|
|
3568
3592
|
height: height
|
|
3569
3593
|
})
|
|
3570
|
-
}, otherProps),
|
|
3594
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3571
3595
|
ref: this.ref,
|
|
3572
3596
|
activePlayer: activePlayer,
|
|
3573
3597
|
config: this.config
|
|
@@ -3589,7 +3613,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3589
3613
|
});
|
|
3590
3614
|
exports["default"] = exports.YouTube = void 0;
|
|
3591
3615
|
|
|
3592
|
-
var _react = _interopRequireWildcard(React__default
|
|
3616
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3593
3617
|
|
|
3594
3618
|
|
|
3595
3619
|
|
|
@@ -3613,31 +3637,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3613
3637
|
|
|
3614
3638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3615
3639
|
|
|
3616
|
-
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); }; }
|
|
3617
|
-
|
|
3618
3640
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3619
3641
|
|
|
3620
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3621
|
-
|
|
3622
|
-
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; } }
|
|
3623
|
-
|
|
3624
3642
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3625
3643
|
|
|
3644
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3645
|
+
|
|
3626
3646
|
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); }
|
|
3627
3647
|
|
|
3628
3648
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3629
3649
|
|
|
3630
3650
|
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; }
|
|
3631
3651
|
|
|
3632
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3633
|
-
|
|
3634
|
-
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."); }
|
|
3635
|
-
|
|
3636
|
-
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); }
|
|
3652
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3637
3653
|
|
|
3638
|
-
function
|
|
3654
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3639
3655
|
|
|
3640
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3656
|
+
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; }
|
|
3641
3657
|
|
|
3642
3658
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3643
3659
|
|
|
@@ -3662,12 +3678,14 @@ function parsePlaylist(url) {
|
|
|
3662
3678
|
return {};
|
|
3663
3679
|
}
|
|
3664
3680
|
|
|
3665
|
-
var YouTube =
|
|
3681
|
+
var YouTube =
|
|
3682
|
+
/*#__PURE__*/
|
|
3683
|
+
function (_Component) {
|
|
3666
3684
|
_inherits(YouTube, _Component);
|
|
3667
3685
|
|
|
3668
|
-
var _super = _createSuper(YouTube);
|
|
3669
|
-
|
|
3670
3686
|
function YouTube() {
|
|
3687
|
+
var _getPrototypeOf2;
|
|
3688
|
+
|
|
3671
3689
|
var _this;
|
|
3672
3690
|
|
|
3673
3691
|
_classCallCheck(this, YouTube);
|
|
@@ -3676,7 +3694,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3676
3694
|
args[_key] = arguments[_key];
|
|
3677
3695
|
}
|
|
3678
3696
|
|
|
3679
|
-
_this =
|
|
3697
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3680
3698
|
|
|
3681
3699
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3682
3700
|
|
|
@@ -3864,9 +3882,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3864
3882
|
height: '100%',
|
|
3865
3883
|
display: display
|
|
3866
3884
|
};
|
|
3867
|
-
return
|
|
3885
|
+
return _react["default"].createElement("div", {
|
|
3868
3886
|
style: style
|
|
3869
|
-
},
|
|
3887
|
+
}, _react["default"].createElement("div", {
|
|
3870
3888
|
ref: this.ref
|
|
3871
3889
|
}));
|
|
3872
3890
|
}
|
|
@@ -3898,7 +3916,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3898
3916
|
});
|
|
3899
3917
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3900
3918
|
|
|
3901
|
-
var _react = _interopRequireWildcard(React__default
|
|
3919
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3902
3920
|
|
|
3903
3921
|
|
|
3904
3922
|
|
|
@@ -3922,16 +3940,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3922
3940
|
|
|
3923
3941
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3924
3942
|
|
|
3925
|
-
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); }; }
|
|
3926
|
-
|
|
3927
3943
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3928
3944
|
|
|
3929
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3930
|
-
|
|
3931
|
-
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; } }
|
|
3932
|
-
|
|
3933
3945
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3934
3946
|
|
|
3947
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3948
|
+
|
|
3935
3949
|
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); }
|
|
3936
3950
|
|
|
3937
3951
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3940,14 +3954,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3940
3954
|
|
|
3941
3955
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3942
3956
|
var SDK_GLOBAL = 'SC';
|
|
3943
|
-
var MATCH_URL = /(
|
|
3957
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3944
3958
|
|
|
3945
|
-
var SoundCloud =
|
|
3959
|
+
var SoundCloud =
|
|
3960
|
+
/*#__PURE__*/
|
|
3961
|
+
function (_Component) {
|
|
3946
3962
|
_inherits(SoundCloud, _Component);
|
|
3947
3963
|
|
|
3948
|
-
var _super = _createSuper(SoundCloud);
|
|
3949
|
-
|
|
3950
3964
|
function SoundCloud() {
|
|
3965
|
+
var _getPrototypeOf2;
|
|
3966
|
+
|
|
3951
3967
|
var _this;
|
|
3952
3968
|
|
|
3953
3969
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3956,7 +3972,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3956
3972
|
args[_key] = arguments[_key];
|
|
3957
3973
|
}
|
|
3958
3974
|
|
|
3959
|
-
_this =
|
|
3975
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3960
3976
|
|
|
3961
3977
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3962
3978
|
|
|
@@ -4077,7 +4093,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4077
4093
|
height: '100%',
|
|
4078
4094
|
display: display
|
|
4079
4095
|
};
|
|
4080
|
-
return
|
|
4096
|
+
return _react["default"].createElement("iframe", {
|
|
4081
4097
|
ref: this.ref,
|
|
4082
4098
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4083
4099
|
style: style,
|
|
@@ -4115,7 +4131,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4115
4131
|
});
|
|
4116
4132
|
exports["default"] = exports.Vimeo = void 0;
|
|
4117
4133
|
|
|
4118
|
-
var _react = _interopRequireWildcard(React__default
|
|
4134
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4119
4135
|
|
|
4120
4136
|
|
|
4121
4137
|
|
|
@@ -4139,16 +4155,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4139
4155
|
|
|
4140
4156
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4141
4157
|
|
|
4142
|
-
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); }; }
|
|
4143
|
-
|
|
4144
4158
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4145
4159
|
|
|
4146
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4147
|
-
|
|
4148
|
-
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; } }
|
|
4149
|
-
|
|
4150
4160
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4151
4161
|
|
|
4162
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4163
|
+
|
|
4152
4164
|
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); }
|
|
4153
4165
|
|
|
4154
4166
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4160,12 +4172,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4160
4172
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4161
4173
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4162
4174
|
|
|
4163
|
-
var Vimeo =
|
|
4175
|
+
var Vimeo =
|
|
4176
|
+
/*#__PURE__*/
|
|
4177
|
+
function (_Component) {
|
|
4164
4178
|
_inherits(Vimeo, _Component);
|
|
4165
4179
|
|
|
4166
|
-
var _super = _createSuper(Vimeo);
|
|
4167
|
-
|
|
4168
4180
|
function Vimeo() {
|
|
4181
|
+
var _getPrototypeOf2;
|
|
4182
|
+
|
|
4169
4183
|
var _this;
|
|
4170
4184
|
|
|
4171
4185
|
_classCallCheck(this, Vimeo);
|
|
@@ -4174,7 +4188,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4174
4188
|
args[_key] = arguments[_key];
|
|
4175
4189
|
}
|
|
4176
4190
|
|
|
4177
|
-
_this =
|
|
4191
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4178
4192
|
|
|
4179
4193
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4180
4194
|
|
|
@@ -4331,7 +4345,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4331
4345
|
overflow: 'hidden',
|
|
4332
4346
|
display: display
|
|
4333
4347
|
};
|
|
4334
|
-
return
|
|
4348
|
+
return _react["default"].createElement("div", {
|
|
4335
4349
|
key: this.props.url,
|
|
4336
4350
|
ref: this.ref,
|
|
4337
4351
|
style: style
|
|
@@ -4371,7 +4385,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4371
4385
|
});
|
|
4372
4386
|
exports["default"] = exports.Facebook = void 0;
|
|
4373
4387
|
|
|
4374
|
-
var _react = _interopRequireWildcard(React__default
|
|
4388
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4375
4389
|
|
|
4376
4390
|
|
|
4377
4391
|
|
|
@@ -4391,16 +4405,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4391
4405
|
|
|
4392
4406
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4393
4407
|
|
|
4394
|
-
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); }; }
|
|
4395
|
-
|
|
4396
4408
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4397
4409
|
|
|
4398
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4399
|
-
|
|
4400
|
-
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; } }
|
|
4401
|
-
|
|
4402
4410
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4403
4411
|
|
|
4412
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4413
|
+
|
|
4404
4414
|
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); }
|
|
4405
4415
|
|
|
4406
4416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4413,12 +4423,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4413
4423
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4414
4424
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4415
4425
|
|
|
4416
|
-
var Facebook =
|
|
4426
|
+
var Facebook =
|
|
4427
|
+
/*#__PURE__*/
|
|
4428
|
+
function (_Component) {
|
|
4417
4429
|
_inherits(Facebook, _Component);
|
|
4418
4430
|
|
|
4419
|
-
var _super = _createSuper(Facebook);
|
|
4420
|
-
|
|
4421
4431
|
function Facebook() {
|
|
4432
|
+
var _getPrototypeOf2;
|
|
4433
|
+
|
|
4422
4434
|
var _this;
|
|
4423
4435
|
|
|
4424
4436
|
_classCallCheck(this, Facebook);
|
|
@@ -4427,7 +4439,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4427
4439
|
args[_key] = arguments[_key];
|
|
4428
4440
|
}
|
|
4429
4441
|
|
|
4430
|
-
_this =
|
|
4442
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4431
4443
|
|
|
4432
4444
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4433
4445
|
|
|
@@ -4543,7 +4555,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4543
4555
|
width: '100%',
|
|
4544
4556
|
height: '100%'
|
|
4545
4557
|
};
|
|
4546
|
-
return
|
|
4558
|
+
return _react["default"].createElement("div", {
|
|
4547
4559
|
style: style,
|
|
4548
4560
|
id: this.playerID,
|
|
4549
4561
|
className: "fb-video",
|
|
@@ -4583,7 +4595,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4583
4595
|
});
|
|
4584
4596
|
exports["default"] = exports.Streamable = void 0;
|
|
4585
4597
|
|
|
4586
|
-
var _react = _interopRequireWildcard(React__default
|
|
4598
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4587
4599
|
|
|
4588
4600
|
|
|
4589
4601
|
|
|
@@ -4603,16 +4615,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4603
4615
|
|
|
4604
4616
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4605
4617
|
|
|
4606
|
-
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); }; }
|
|
4607
|
-
|
|
4608
4618
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4609
4619
|
|
|
4610
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4611
|
-
|
|
4612
|
-
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; } }
|
|
4613
|
-
|
|
4614
4620
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4615
4621
|
|
|
4622
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4623
|
+
|
|
4616
4624
|
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); }
|
|
4617
4625
|
|
|
4618
4626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4623,12 +4631,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4623
4631
|
var SDK_GLOBAL = 'playerjs';
|
|
4624
4632
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4625
4633
|
|
|
4626
|
-
var Streamable =
|
|
4634
|
+
var Streamable =
|
|
4635
|
+
/*#__PURE__*/
|
|
4636
|
+
function (_Component) {
|
|
4627
4637
|
_inherits(Streamable, _Component);
|
|
4628
4638
|
|
|
4629
|
-
var _super = _createSuper(Streamable);
|
|
4630
|
-
|
|
4631
4639
|
function Streamable() {
|
|
4640
|
+
var _getPrototypeOf2;
|
|
4641
|
+
|
|
4632
4642
|
var _this;
|
|
4633
4643
|
|
|
4634
4644
|
_classCallCheck(this, Streamable);
|
|
@@ -4637,7 +4647,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4637
4647
|
args[_key] = arguments[_key];
|
|
4638
4648
|
}
|
|
4639
4649
|
|
|
4640
|
-
_this =
|
|
4650
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4641
4651
|
|
|
4642
4652
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4643
4653
|
|
|
@@ -4757,7 +4767,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4757
4767
|
width: '100%',
|
|
4758
4768
|
height: '100%'
|
|
4759
4769
|
};
|
|
4760
|
-
return
|
|
4770
|
+
return _react["default"].createElement("iframe", {
|
|
4761
4771
|
ref: this.ref,
|
|
4762
4772
|
src: "https://streamable.com/o/".concat(id),
|
|
4763
4773
|
frameBorder: "0",
|
|
@@ -4794,7 +4804,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4794
4804
|
});
|
|
4795
4805
|
exports["default"] = exports.Wistia = void 0;
|
|
4796
4806
|
|
|
4797
|
-
var _react = _interopRequireWildcard(React__default
|
|
4807
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4798
4808
|
|
|
4799
4809
|
|
|
4800
4810
|
|
|
@@ -4818,16 +4828,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4818
4828
|
|
|
4819
4829
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4820
4830
|
|
|
4821
|
-
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); }; }
|
|
4822
|
-
|
|
4823
4831
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4824
4832
|
|
|
4825
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4826
|
-
|
|
4827
|
-
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; } }
|
|
4828
|
-
|
|
4829
4833
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4830
4834
|
|
|
4835
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4836
|
+
|
|
4831
4837
|
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); }
|
|
4832
4838
|
|
|
4833
4839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4838,48 +4844,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4838
4844
|
var SDK_GLOBAL = 'Wistia';
|
|
4839
4845
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4840
4846
|
|
|
4841
|
-
var Wistia =
|
|
4847
|
+
var Wistia =
|
|
4848
|
+
/*#__PURE__*/
|
|
4849
|
+
function (_Component) {
|
|
4842
4850
|
_inherits(Wistia, _Component);
|
|
4843
4851
|
|
|
4844
|
-
var _super = _createSuper(Wistia);
|
|
4845
|
-
|
|
4846
4852
|
function Wistia() {
|
|
4853
|
+
var _getPrototypeOf2;
|
|
4854
|
+
|
|
4847
4855
|
var _this;
|
|
4848
4856
|
|
|
4849
4857
|
_classCallCheck(this, Wistia);
|
|
4850
4858
|
|
|
4851
|
-
for (var _len = arguments.length,
|
|
4852
|
-
|
|
4859
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4860
|
+
args[_key] = arguments[_key];
|
|
4853
4861
|
}
|
|
4854
4862
|
|
|
4855
|
-
_this =
|
|
4863
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4856
4864
|
|
|
4857
4865
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4858
4866
|
|
|
4859
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4860
|
-
var _this$props;
|
|
4861
|
-
|
|
4862
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4863
|
-
});
|
|
4864
|
-
|
|
4865
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4866
|
-
var _this$props2;
|
|
4867
|
-
|
|
4868
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4869
|
-
});
|
|
4870
|
-
|
|
4871
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4872
|
-
var _this$props3;
|
|
4873
|
-
|
|
4874
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4875
|
-
});
|
|
4876
|
-
|
|
4877
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4878
|
-
var _this$props4;
|
|
4879
|
-
|
|
4880
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4881
|
-
});
|
|
4882
|
-
|
|
4883
4867
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4884
4868
|
_this.callPlayer('mute');
|
|
4885
4869
|
});
|
|
@@ -4901,13 +4885,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4901
4885
|
value: function load(url) {
|
|
4902
4886
|
var _this2 = this;
|
|
4903
4887
|
|
|
4904
|
-
var _this$
|
|
4905
|
-
playing = _this$
|
|
4906
|
-
muted = _this$
|
|
4907
|
-
controls = _this$
|
|
4908
|
-
_onReady = _this$
|
|
4909
|
-
|
|
4910
|
-
|
|
4888
|
+
var _this$props = this.props,
|
|
4889
|
+
playing = _this$props.playing,
|
|
4890
|
+
muted = _this$props.muted,
|
|
4891
|
+
controls = _this$props.controls,
|
|
4892
|
+
_onReady = _this$props.onReady,
|
|
4893
|
+
onPlay = _this$props.onPlay,
|
|
4894
|
+
onPause = _this$props.onPause,
|
|
4895
|
+
onSeek = _this$props.onSeek,
|
|
4896
|
+
onEnded = _this$props.onEnded,
|
|
4897
|
+
config = _this$props.config,
|
|
4898
|
+
onError = _this$props.onError;
|
|
4911
4899
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4912
4900
|
window._wq = window._wq || [];
|
|
4913
4901
|
|
|
@@ -4924,28 +4912,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4924
4912
|
|
|
4925
4913
|
_this2.unbind();
|
|
4926
4914
|
|
|
4927
|
-
_this2.player.bind('play',
|
|
4915
|
+
_this2.player.bind('play', onPlay);
|
|
4928
4916
|
|
|
4929
|
-
_this2.player.bind('pause',
|
|
4917
|
+
_this2.player.bind('pause', onPause);
|
|
4930
4918
|
|
|
4931
|
-
_this2.player.bind('seek',
|
|
4919
|
+
_this2.player.bind('seek', onSeek);
|
|
4932
4920
|
|
|
4933
|
-
_this2.player.bind('end',
|
|
4921
|
+
_this2.player.bind('end', onEnded);
|
|
4934
4922
|
|
|
4935
4923
|
_onReady();
|
|
4936
4924
|
}
|
|
4937
4925
|
});
|
|
4938
4926
|
}, onError);
|
|
4939
4927
|
}
|
|
4940
|
-
}, {
|
|
4941
|
-
key: "unbind",
|
|
4942
|
-
value: function unbind() {
|
|
4943
|
-
this.player.unbind('play', this.onPlay);
|
|
4944
|
-
this.player.unbind('pause', this.onPause);
|
|
4945
|
-
this.player.unbind('seek', this.onSeek);
|
|
4946
|
-
this.player.unbind('end', this.onEnded);
|
|
4947
|
-
} // Proxy methods to prevent listener leaks
|
|
4948
|
-
|
|
4949
4928
|
}, {
|
|
4950
4929
|
key: "play",
|
|
4951
4930
|
value: function play() {
|
|
@@ -4956,6 +4935,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4956
4935
|
value: function pause() {
|
|
4957
4936
|
this.callPlayer('pause');
|
|
4958
4937
|
}
|
|
4938
|
+
}, {
|
|
4939
|
+
key: "unbind",
|
|
4940
|
+
value: function unbind() {
|
|
4941
|
+
var _this$props2 = this.props,
|
|
4942
|
+
onPlay = _this$props2.onPlay,
|
|
4943
|
+
onPause = _this$props2.onPause,
|
|
4944
|
+
onSeek = _this$props2.onSeek,
|
|
4945
|
+
onEnded = _this$props2.onEnded;
|
|
4946
|
+
this.player.unbind('play', onPlay);
|
|
4947
|
+
this.player.unbind('pause', onPause);
|
|
4948
|
+
this.player.unbind('seek', onSeek);
|
|
4949
|
+
this.player.unbind('end', onEnded);
|
|
4950
|
+
}
|
|
4959
4951
|
}, {
|
|
4960
4952
|
key: "stop",
|
|
4961
4953
|
value: function stop() {
|
|
@@ -5001,7 +4993,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5001
4993
|
width: '100%',
|
|
5002
4994
|
height: '100%'
|
|
5003
4995
|
};
|
|
5004
|
-
return
|
|
4996
|
+
return _react["default"].createElement("div", {
|
|
5005
4997
|
key: id,
|
|
5006
4998
|
className: className,
|
|
5007
4999
|
style: style
|
|
@@ -5037,7 +5029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5037
5029
|
});
|
|
5038
5030
|
exports["default"] = exports.Twitch = void 0;
|
|
5039
5031
|
|
|
5040
|
-
var _react = _interopRequireWildcard(React__default
|
|
5032
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5041
5033
|
|
|
5042
5034
|
|
|
5043
5035
|
|
|
@@ -5061,16 +5053,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5061
5053
|
|
|
5062
5054
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5063
5055
|
|
|
5064
|
-
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); }; }
|
|
5065
|
-
|
|
5066
5056
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5067
5057
|
|
|
5068
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5069
|
-
|
|
5070
|
-
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; } }
|
|
5071
|
-
|
|
5072
5058
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5073
5059
|
|
|
5060
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5061
|
+
|
|
5074
5062
|
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); }
|
|
5075
5063
|
|
|
5076
5064
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5083,12 +5071,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5083
5071
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5084
5072
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5085
5073
|
|
|
5086
|
-
var Twitch =
|
|
5074
|
+
var Twitch =
|
|
5075
|
+
/*#__PURE__*/
|
|
5076
|
+
function (_Component) {
|
|
5087
5077
|
_inherits(Twitch, _Component);
|
|
5088
5078
|
|
|
5089
|
-
var _super = _createSuper(Twitch);
|
|
5090
|
-
|
|
5091
5079
|
function Twitch() {
|
|
5080
|
+
var _getPrototypeOf2;
|
|
5081
|
+
|
|
5092
5082
|
var _this;
|
|
5093
5083
|
|
|
5094
5084
|
_classCallCheck(this, Twitch);
|
|
@@ -5097,7 +5087,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5097
5087
|
args[_key] = arguments[_key];
|
|
5098
5088
|
}
|
|
5099
5089
|
|
|
5100
|
-
_this =
|
|
5090
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5101
5091
|
|
|
5102
5092
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5103
5093
|
|
|
@@ -5218,7 +5208,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5218
5208
|
width: '100%',
|
|
5219
5209
|
height: '100%'
|
|
5220
5210
|
};
|
|
5221
|
-
return
|
|
5211
|
+
return _react["default"].createElement("div", {
|
|
5222
5212
|
style: style,
|
|
5223
5213
|
id: this.playerID
|
|
5224
5214
|
});
|
|
@@ -5253,7 +5243,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5253
5243
|
});
|
|
5254
5244
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5255
5245
|
|
|
5256
|
-
var _react = _interopRequireWildcard(React__default
|
|
5246
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5257
5247
|
|
|
5258
5248
|
|
|
5259
5249
|
|
|
@@ -5271,15 +5261,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5271
5261
|
|
|
5272
5262
|
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; }
|
|
5273
5263
|
|
|
5274
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5275
|
-
|
|
5276
|
-
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."); }
|
|
5264
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5277
5265
|
|
|
5278
|
-
function
|
|
5266
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5279
5267
|
|
|
5280
|
-
function
|
|
5281
|
-
|
|
5282
|
-
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; }
|
|
5268
|
+
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; }
|
|
5283
5269
|
|
|
5284
5270
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5285
5271
|
|
|
@@ -5289,16 +5275,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5289
5275
|
|
|
5290
5276
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5291
5277
|
|
|
5292
|
-
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); }; }
|
|
5293
|
-
|
|
5294
5278
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5295
5279
|
|
|
5296
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5297
|
-
|
|
5298
|
-
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; } }
|
|
5299
|
-
|
|
5300
5280
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5301
5281
|
|
|
5282
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5283
|
+
|
|
5302
5284
|
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); }
|
|
5303
5285
|
|
|
5304
5286
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5310,12 +5292,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5310
5292
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5311
5293
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5312
5294
|
|
|
5313
|
-
var DailyMotion =
|
|
5295
|
+
var DailyMotion =
|
|
5296
|
+
/*#__PURE__*/
|
|
5297
|
+
function (_Component) {
|
|
5314
5298
|
_inherits(DailyMotion, _Component);
|
|
5315
5299
|
|
|
5316
|
-
var _super = _createSuper(DailyMotion);
|
|
5317
|
-
|
|
5318
5300
|
function DailyMotion() {
|
|
5301
|
+
var _getPrototypeOf2;
|
|
5302
|
+
|
|
5319
5303
|
var _this;
|
|
5320
5304
|
|
|
5321
5305
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5324,7 +5308,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5324
5308
|
args[_key] = arguments[_key];
|
|
5325
5309
|
}
|
|
5326
5310
|
|
|
5327
|
-
_this =
|
|
5311
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5328
5312
|
|
|
5329
5313
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5330
5314
|
|
|
@@ -5453,9 +5437,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5453
5437
|
height: '100%',
|
|
5454
5438
|
display: display
|
|
5455
5439
|
};
|
|
5456
|
-
return
|
|
5440
|
+
return _react["default"].createElement("div", {
|
|
5457
5441
|
style: style
|
|
5458
|
-
},
|
|
5442
|
+
}, _react["default"].createElement("div", {
|
|
5459
5443
|
ref: this.ref
|
|
5460
5444
|
}));
|
|
5461
5445
|
}
|
|
@@ -5489,7 +5473,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5489
5473
|
});
|
|
5490
5474
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5491
5475
|
|
|
5492
|
-
var _react = _interopRequireWildcard(React__default
|
|
5476
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5493
5477
|
|
|
5494
5478
|
|
|
5495
5479
|
|
|
@@ -5513,16 +5497,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5513
5497
|
|
|
5514
5498
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5515
5499
|
|
|
5516
|
-
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); }; }
|
|
5517
|
-
|
|
5518
5500
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5519
5501
|
|
|
5520
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5521
|
-
|
|
5522
|
-
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; } }
|
|
5523
|
-
|
|
5524
5502
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5525
5503
|
|
|
5504
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5505
|
+
|
|
5526
5506
|
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); }
|
|
5527
5507
|
|
|
5528
5508
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5533,12 +5513,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5533
5513
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5534
5514
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5535
5515
|
|
|
5536
|
-
var Mixcloud =
|
|
5516
|
+
var Mixcloud =
|
|
5517
|
+
/*#__PURE__*/
|
|
5518
|
+
function (_Component) {
|
|
5537
5519
|
_inherits(Mixcloud, _Component);
|
|
5538
5520
|
|
|
5539
|
-
var _super = _createSuper(Mixcloud);
|
|
5540
|
-
|
|
5541
5521
|
function Mixcloud() {
|
|
5522
|
+
var _getPrototypeOf2;
|
|
5523
|
+
|
|
5542
5524
|
var _this;
|
|
5543
5525
|
|
|
5544
5526
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5547,7 +5529,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5547
5529
|
args[_key] = arguments[_key];
|
|
5548
5530
|
}
|
|
5549
5531
|
|
|
5550
|
-
_this =
|
|
5532
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5551
5533
|
|
|
5552
5534
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5553
5535
|
|
|
@@ -5650,7 +5632,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5650
5632
|
})); // We have to give the iframe a key here to prevent a
|
|
5651
5633
|
// weird dialog appearing when loading a new track
|
|
5652
5634
|
|
|
5653
|
-
return
|
|
5635
|
+
return _react["default"].createElement("iframe", {
|
|
5654
5636
|
key: id,
|
|
5655
5637
|
ref: this.ref,
|
|
5656
5638
|
style: style,
|
|
@@ -5688,7 +5670,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5688
5670
|
});
|
|
5689
5671
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5690
5672
|
|
|
5691
|
-
var _react = _interopRequireWildcard(React__default
|
|
5673
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5692
5674
|
|
|
5693
5675
|
|
|
5694
5676
|
|
|
@@ -5710,33 +5692,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5710
5692
|
|
|
5711
5693
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5712
5694
|
|
|
5713
|
-
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); }; }
|
|
5714
|
-
|
|
5715
5695
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5716
5696
|
|
|
5717
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5718
|
-
|
|
5719
|
-
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; } }
|
|
5720
|
-
|
|
5721
5697
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5722
5698
|
|
|
5699
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5700
|
+
|
|
5723
5701
|
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); }
|
|
5724
5702
|
|
|
5725
5703
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5726
5704
|
|
|
5727
5705
|
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; }
|
|
5728
5706
|
|
|
5729
|
-
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; } } }; }
|
|
5730
|
-
|
|
5731
|
-
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); }
|
|
5732
|
-
|
|
5733
|
-
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; }
|
|
5734
|
-
|
|
5735
5707
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5736
5708
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5737
5709
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5738
5710
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5739
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5711
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5740
5712
|
var HLS_GLOBAL = 'Hls';
|
|
5741
5713
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5742
5714
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5745,11 +5717,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5745
5717
|
|
|
5746
5718
|
function canPlay(url) {
|
|
5747
5719
|
if (url instanceof Array) {
|
|
5748
|
-
var
|
|
5749
|
-
|
|
5720
|
+
var _iteratorNormalCompletion = true;
|
|
5721
|
+
var _didIteratorError = false;
|
|
5722
|
+
var _iteratorError = undefined;
|
|
5750
5723
|
|
|
5751
5724
|
try {
|
|
5752
|
-
for (_iterator.
|
|
5725
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5753
5726
|
var item = _step.value;
|
|
5754
5727
|
|
|
5755
5728
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5761,9 +5734,18 @@ function canPlay(url) {
|
|
|
5761
5734
|
}
|
|
5762
5735
|
}
|
|
5763
5736
|
} catch (err) {
|
|
5764
|
-
|
|
5737
|
+
_didIteratorError = true;
|
|
5738
|
+
_iteratorError = err;
|
|
5765
5739
|
} finally {
|
|
5766
|
-
|
|
5740
|
+
try {
|
|
5741
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5742
|
+
_iterator["return"]();
|
|
5743
|
+
}
|
|
5744
|
+
} finally {
|
|
5745
|
+
if (_didIteratorError) {
|
|
5746
|
+
throw _iteratorError;
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5767
5749
|
}
|
|
5768
5750
|
|
|
5769
5751
|
return false;
|
|
@@ -5787,12 +5769,14 @@ function canEnablePIP(url) {
|
|
|
5787
5769
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5788
5770
|
}
|
|
5789
5771
|
|
|
5790
|
-
var FilePlayer =
|
|
5772
|
+
var FilePlayer =
|
|
5773
|
+
/*#__PURE__*/
|
|
5774
|
+
function (_Component) {
|
|
5791
5775
|
_inherits(FilePlayer, _Component);
|
|
5792
5776
|
|
|
5793
|
-
var _super = _createSuper(FilePlayer);
|
|
5794
|
-
|
|
5795
5777
|
function FilePlayer() {
|
|
5778
|
+
var _getPrototypeOf2;
|
|
5779
|
+
|
|
5796
5780
|
var _this;
|
|
5797
5781
|
|
|
5798
5782
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5801,7 +5785,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5801
5785
|
_args[_key] = arguments[_key];
|
|
5802
5786
|
}
|
|
5803
5787
|
|
|
5804
|
-
_this =
|
|
5788
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5805
5789
|
|
|
5806
5790
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5807
5791
|
var _this$props;
|
|
@@ -5888,19 +5872,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5888
5872
|
|
|
5889
5873
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5890
5874
|
if (typeof source === 'string') {
|
|
5891
|
-
return
|
|
5875
|
+
return _react["default"].createElement("source", {
|
|
5892
5876
|
key: index,
|
|
5893
5877
|
src: source
|
|
5894
5878
|
});
|
|
5895
5879
|
}
|
|
5896
5880
|
|
|
5897
|
-
return
|
|
5881
|
+
return _react["default"].createElement("source", _extends({
|
|
5898
5882
|
key: index
|
|
5899
5883
|
}, source));
|
|
5900
5884
|
});
|
|
5901
5885
|
|
|
5902
5886
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5903
|
-
return
|
|
5887
|
+
return _react["default"].createElement("track", _extends({
|
|
5904
5888
|
key: index
|
|
5905
5889
|
}, track));
|
|
5906
5890
|
});
|
|
@@ -5938,10 +5922,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5938
5922
|
key: "componentWillUnmount",
|
|
5939
5923
|
value: function componentWillUnmount() {
|
|
5940
5924
|
this.removeListeners(this.player);
|
|
5941
|
-
|
|
5942
|
-
if (this.hls) {
|
|
5943
|
-
this.hls.destroy();
|
|
5944
|
-
}
|
|
5945
5925
|
}
|
|
5946
5926
|
}, {
|
|
5947
5927
|
key: "addListeners",
|
|
@@ -6072,6 +6052,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6072
6052
|
value: function stop() {
|
|
6073
6053
|
this.player.removeAttribute('src');
|
|
6074
6054
|
|
|
6055
|
+
if (this.hls) {
|
|
6056
|
+
this.hls.destroy();
|
|
6057
|
+
}
|
|
6058
|
+
|
|
6075
6059
|
if (this.dash) {
|
|
6076
6060
|
this.dash.reset();
|
|
6077
6061
|
}
|
|
@@ -6183,7 +6167,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6183
6167
|
width: width === 'auto' ? width : '100%',
|
|
6184
6168
|
height: height === 'auto' ? height : '100%'
|
|
6185
6169
|
};
|
|
6186
|
-
return
|
|
6170
|
+
return _react["default"].createElement(Element, _extends({
|
|
6187
6171
|
ref: this.ref,
|
|
6188
6172
|
src: this.getSource(url),
|
|
6189
6173
|
style: style,
|
|
@@ -6255,7 +6239,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6255
6239
|
});
|
|
6256
6240
|
exports["default"] = void 0;
|
|
6257
6241
|
|
|
6258
|
-
var _react = _interopRequireWildcard(React__default
|
|
6242
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6259
6243
|
|
|
6260
6244
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6261
6245
|
|
|
@@ -6273,16 +6257,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6273
6257
|
|
|
6274
6258
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6275
6259
|
|
|
6276
|
-
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); }; }
|
|
6277
|
-
|
|
6278
6260
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6279
6261
|
|
|
6280
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6281
|
-
|
|
6282
|
-
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; } }
|
|
6283
|
-
|
|
6284
6262
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6285
6263
|
|
|
6264
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6265
|
+
|
|
6286
6266
|
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); }
|
|
6287
6267
|
|
|
6288
6268
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6291,12 +6271,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6291
6271
|
|
|
6292
6272
|
var ICON_SIZE = '64px';
|
|
6293
6273
|
|
|
6294
|
-
var Preview =
|
|
6274
|
+
var Preview =
|
|
6275
|
+
/*#__PURE__*/
|
|
6276
|
+
function (_Component) {
|
|
6295
6277
|
_inherits(Preview, _Component);
|
|
6296
6278
|
|
|
6297
|
-
var _super = _createSuper(Preview);
|
|
6298
|
-
|
|
6299
6279
|
function Preview() {
|
|
6280
|
+
var _getPrototypeOf2;
|
|
6281
|
+
|
|
6300
6282
|
var _this;
|
|
6301
6283
|
|
|
6302
6284
|
_classCallCheck(this, Preview);
|
|
@@ -6305,7 +6287,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6305
6287
|
args[_key] = arguments[_key];
|
|
6306
6288
|
}
|
|
6307
6289
|
|
|
6308
|
-
_this =
|
|
6290
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6309
6291
|
|
|
6310
6292
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6311
6293
|
|
|
@@ -6403,15 +6385,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6403
6385
|
}
|
|
6404
6386
|
};
|
|
6405
6387
|
|
|
6406
|
-
var defaultPlayIcon =
|
|
6388
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6407
6389
|
style: styles.shadow,
|
|
6408
6390
|
className: "react-player__shadow"
|
|
6409
|
-
},
|
|
6391
|
+
}, _react["default"].createElement("div", {
|
|
6410
6392
|
style: styles.playIcon,
|
|
6411
6393
|
className: "react-player__play-icon"
|
|
6412
6394
|
}));
|
|
6413
6395
|
|
|
6414
|
-
return
|
|
6396
|
+
return _react["default"].createElement("div", {
|
|
6415
6397
|
style: styles.preview,
|
|
6416
6398
|
className: "react-player__preview",
|
|
6417
6399
|
onClick: onClick
|
|
@@ -6434,7 +6416,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6434
6416
|
});
|
|
6435
6417
|
exports["default"] = renderPreloadPlayers;
|
|
6436
6418
|
|
|
6437
|
-
var _react = _interopRequireDefault(React__default
|
|
6419
|
+
var _react = _interopRequireDefault(React__default);
|
|
6438
6420
|
|
|
6439
6421
|
var _Player = _interopRequireDefault(Player_1);
|
|
6440
6422
|
|
|
@@ -6448,12 +6430,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6448
6430
|
|
|
6449
6431
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6450
6432
|
|
|
6451
|
-
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; } } }; }
|
|
6452
|
-
|
|
6453
|
-
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); }
|
|
6454
|
-
|
|
6455
|
-
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; }
|
|
6456
|
-
|
|
6457
6433
|
var PRELOAD_PLAYERS = [{
|
|
6458
6434
|
Player: YouTube_1.YouTube,
|
|
6459
6435
|
configKey: 'youtube',
|
|
@@ -6474,16 +6450,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6474
6450
|
|
|
6475
6451
|
function renderPreloadPlayers(url, controls, config) {
|
|
6476
6452
|
var players = [];
|
|
6477
|
-
|
|
6478
|
-
var
|
|
6479
|
-
|
|
6453
|
+
var _iteratorNormalCompletion = true;
|
|
6454
|
+
var _didIteratorError = false;
|
|
6455
|
+
var _iteratorError = undefined;
|
|
6480
6456
|
|
|
6481
6457
|
try {
|
|
6482
|
-
for (_iterator.
|
|
6458
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6483
6459
|
var player = _step.value;
|
|
6484
6460
|
|
|
6485
6461
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6486
|
-
players.push(
|
|
6462
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6487
6463
|
key: player.Player.displayName,
|
|
6488
6464
|
activePlayer: player.Player,
|
|
6489
6465
|
url: player.url,
|
|
@@ -6495,9 +6471,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6495
6471
|
}
|
|
6496
6472
|
}
|
|
6497
6473
|
} catch (err) {
|
|
6498
|
-
|
|
6474
|
+
_didIteratorError = true;
|
|
6475
|
+
_iteratorError = err;
|
|
6499
6476
|
} finally {
|
|
6500
|
-
|
|
6477
|
+
try {
|
|
6478
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6479
|
+
_iterator["return"]();
|
|
6480
|
+
}
|
|
6481
|
+
} finally {
|
|
6482
|
+
if (_didIteratorError) {
|
|
6483
|
+
throw _iteratorError;
|
|
6484
|
+
}
|
|
6485
|
+
}
|
|
6501
6486
|
}
|
|
6502
6487
|
|
|
6503
6488
|
return players;
|
|
@@ -6573,7 +6558,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6573
6558
|
});
|
|
6574
6559
|
exports["default"] = void 0;
|
|
6575
6560
|
|
|
6576
|
-
var _react = _interopRequireWildcard(React__default
|
|
6561
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6577
6562
|
|
|
6578
6563
|
|
|
6579
6564
|
|
|
@@ -6621,17 +6606,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6621
6606
|
|
|
6622
6607
|
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); }
|
|
6623
6608
|
|
|
6624
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6625
|
-
|
|
6626
|
-
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."); }
|
|
6627
|
-
|
|
6628
|
-
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); }
|
|
6609
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6629
6610
|
|
|
6630
|
-
function
|
|
6611
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6631
6612
|
|
|
6632
|
-
function
|
|
6613
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6633
6614
|
|
|
6634
|
-
function
|
|
6615
|
+
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; } }
|
|
6635
6616
|
|
|
6636
6617
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6637
6618
|
|
|
@@ -6639,16 +6620,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6639
6620
|
|
|
6640
6621
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6641
6622
|
|
|
6642
|
-
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); }; }
|
|
6643
|
-
|
|
6644
6623
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6645
6624
|
|
|
6646
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6647
|
-
|
|
6648
|
-
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; } }
|
|
6649
|
-
|
|
6650
6625
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6651
6626
|
|
|
6627
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6628
|
+
|
|
6652
6629
|
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); }
|
|
6653
6630
|
|
|
6654
6631
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6658,12 +6635,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6658
6635
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6659
6636
|
var customPlayers = [];
|
|
6660
6637
|
|
|
6661
|
-
var ReactPlayer =
|
|
6638
|
+
var ReactPlayer =
|
|
6639
|
+
/*#__PURE__*/
|
|
6640
|
+
function (_Component) {
|
|
6662
6641
|
_inherits(ReactPlayer, _Component);
|
|
6663
6642
|
|
|
6664
|
-
var _super = _createSuper(ReactPlayer);
|
|
6665
|
-
|
|
6666
6643
|
function ReactPlayer() {
|
|
6644
|
+
var _getPrototypeOf2;
|
|
6645
|
+
|
|
6667
6646
|
var _this;
|
|
6668
6647
|
|
|
6669
6648
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6672,7 +6651,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6672
6651
|
args[_key] = arguments[_key];
|
|
6673
6652
|
}
|
|
6674
6653
|
|
|
6675
|
-
_this =
|
|
6654
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6676
6655
|
|
|
6677
6656
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6678
6657
|
|
|
@@ -6783,7 +6762,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6783
6762
|
key: "renderActivePlayer",
|
|
6784
6763
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6785
6764
|
if (!url) return null;
|
|
6786
|
-
return
|
|
6765
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6787
6766
|
key: activePlayer.displayName,
|
|
6788
6767
|
ref: this.activePlayerRef,
|
|
6789
6768
|
config: this.config,
|
|
@@ -6820,14 +6799,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6820
6799
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6821
6800
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6822
6801
|
|
|
6823
|
-
var preview =
|
|
6802
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6824
6803
|
url: url,
|
|
6825
6804
|
light: light,
|
|
6826
6805
|
playIcon: playIcon,
|
|
6827
6806
|
onClick: this.handleClickPreview
|
|
6828
6807
|
});
|
|
6829
6808
|
|
|
6830
|
-
return
|
|
6809
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6831
6810
|
ref: this.wrapperRef,
|
|
6832
6811
|
style: _objectSpread({}, style, {
|
|
6833
6812
|
width: width,
|
|
@@ -6887,20 +6866,20 @@ var Audio = function Audio(_ref) {
|
|
|
6887
6866
|
var node = _ref.node;
|
|
6888
6867
|
|
|
6889
6868
|
if (node.uploadAudio) {
|
|
6890
|
-
return React__default
|
|
6869
|
+
return React__default.createElement(
|
|
6891
6870
|
'div',
|
|
6892
6871
|
{ className: 'audio d-block text-center mb-3' },
|
|
6893
|
-
React__default
|
|
6872
|
+
React__default.createElement(
|
|
6894
6873
|
'audio',
|
|
6895
6874
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6896
|
-
React__default
|
|
6897
|
-
React__default
|
|
6875
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6876
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6898
6877
|
'Your browser does not support the audio element.'
|
|
6899
6878
|
),
|
|
6900
|
-
node.caption && React__default
|
|
6879
|
+
node.caption && React__default.createElement(
|
|
6901
6880
|
'p',
|
|
6902
6881
|
{ style: { fontSize: '.9rem' } },
|
|
6903
|
-
React__default
|
|
6882
|
+
React__default.createElement(
|
|
6904
6883
|
'em',
|
|
6905
6884
|
null,
|
|
6906
6885
|
node.caption
|
|
@@ -6910,15 +6889,15 @@ var Audio = function Audio(_ref) {
|
|
|
6910
6889
|
} else if (node.audioFilePth) {
|
|
6911
6890
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6912
6891
|
if (hostname === 'embeds.audioboom.com') {
|
|
6913
|
-
return React__default
|
|
6892
|
+
return React__default.createElement(
|
|
6914
6893
|
'div',
|
|
6915
6894
|
null,
|
|
6916
|
-
React__default
|
|
6895
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6917
6896
|
' ',
|
|
6918
|
-
node.caption && React__default
|
|
6897
|
+
node.caption && React__default.createElement(
|
|
6919
6898
|
'p',
|
|
6920
6899
|
{ style: { fontSize: '.9rem' } },
|
|
6921
|
-
React__default
|
|
6900
|
+
React__default.createElement(
|
|
6922
6901
|
'em',
|
|
6923
6902
|
null,
|
|
6924
6903
|
node.caption
|
|
@@ -6926,14 +6905,14 @@ var Audio = function Audio(_ref) {
|
|
|
6926
6905
|
)
|
|
6927
6906
|
);
|
|
6928
6907
|
}
|
|
6929
|
-
return React__default
|
|
6908
|
+
return React__default.createElement(
|
|
6930
6909
|
'div',
|
|
6931
6910
|
{ className: 'audio' },
|
|
6932
|
-
React__default
|
|
6933
|
-
node.caption && React__default
|
|
6911
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6912
|
+
node.caption && React__default.createElement(
|
|
6934
6913
|
'p',
|
|
6935
6914
|
{ style: { fontSize: '.9rem' } },
|
|
6936
|
-
React__default
|
|
6915
|
+
React__default.createElement(
|
|
6937
6916
|
'em',
|
|
6938
6917
|
null,
|
|
6939
6918
|
node.caption
|
|
@@ -7034,10 +7013,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7034
7013
|
Segment.Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
7035
7014
|
};
|
|
7036
7015
|
|
|
7037
|
-
return React__default
|
|
7016
|
+
return React__default.createElement(
|
|
7038
7017
|
'div',
|
|
7039
7018
|
null,
|
|
7040
|
-
vidLoaded && React__default
|
|
7019
|
+
vidLoaded && React__default.createElement(
|
|
7041
7020
|
'video',
|
|
7042
7021
|
{
|
|
7043
7022
|
poster: thumbnail || '',
|
|
@@ -7055,7 +7034,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7055
7034
|
onPlay: function onPlay(e) {
|
|
7056
7035
|
return handleOnPlay(e);
|
|
7057
7036
|
} },
|
|
7058
|
-
React__default
|
|
7037
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7059
7038
|
'Your browser does not support the video tag.'
|
|
7060
7039
|
)
|
|
7061
7040
|
);
|
|
@@ -7071,7 +7050,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7071
7050
|
return null;
|
|
7072
7051
|
}
|
|
7073
7052
|
|
|
7074
|
-
var builder = index.imageUrlBuilder(client);
|
|
7053
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7075
7054
|
function urlFor(source) {
|
|
7076
7055
|
return builder.image(source);
|
|
7077
7056
|
}
|
|
@@ -7316,13 +7295,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7316
7295
|
}
|
|
7317
7296
|
};
|
|
7318
7297
|
|
|
7319
|
-
return React__default
|
|
7298
|
+
return React__default.createElement(
|
|
7320
7299
|
'div',
|
|
7321
7300
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7322
|
-
React__default
|
|
7301
|
+
React__default.createElement(
|
|
7323
7302
|
'div',
|
|
7324
7303
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7325
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7304
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7326
7305
|
className: 'fluid-iframe',
|
|
7327
7306
|
videoId: smoothscroll.getYoutubeId(vidUrl),
|
|
7328
7307
|
opts: opts,
|
|
@@ -7333,10 +7312,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7333
7312
|
return handleOnEnd(e);
|
|
7334
7313
|
}
|
|
7335
7314
|
}),
|
|
7336
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7337
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7338
|
-
React__default
|
|
7339
|
-
series && React__default
|
|
7315
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7316
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7317
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7318
|
+
series && React__default.createElement(
|
|
7340
7319
|
'div',
|
|
7341
7320
|
{
|
|
7342
7321
|
className: 'vid-series',
|
|
@@ -7346,10 +7325,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7346
7325
|
maxHeight: '100%',
|
|
7347
7326
|
paddingBottom: '0'
|
|
7348
7327
|
} },
|
|
7349
|
-
React__default
|
|
7328
|
+
React__default.createElement(
|
|
7350
7329
|
'p',
|
|
7351
7330
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7352
|
-
React__default
|
|
7331
|
+
React__default.createElement(
|
|
7353
7332
|
'b',
|
|
7354
7333
|
{ style: { fontSize: '1.25em' } },
|
|
7355
7334
|
'Now Playing:'
|
|
@@ -7357,27 +7336,27 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7357
7336
|
' ',
|
|
7358
7337
|
seriesData[series ? series - 1 : 0].title
|
|
7359
7338
|
),
|
|
7360
|
-
vidUrl && React__default
|
|
7339
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client })
|
|
7361
7340
|
)
|
|
7362
7341
|
),
|
|
7363
|
-
React__default
|
|
7364
|
-
React__default
|
|
7342
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7343
|
+
React__default.createElement(
|
|
7365
7344
|
'div',
|
|
7366
7345
|
{ className: 'mt-2 mb-5' },
|
|
7367
|
-
series && React__default
|
|
7346
|
+
series && React__default.createElement(
|
|
7368
7347
|
'h3',
|
|
7369
7348
|
null,
|
|
7370
7349
|
'Episode ',
|
|
7371
7350
|
series
|
|
7372
7351
|
),
|
|
7373
|
-
nodes.videos[series - 1] && React__default
|
|
7352
|
+
nodes.videos[series - 1] && React__default.createElement(
|
|
7374
7353
|
'h2',
|
|
7375
7354
|
{ className: 'mb-3' },
|
|
7376
7355
|
nodes.videos[series - 1].title
|
|
7377
7356
|
),
|
|
7378
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default
|
|
7357
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7379
7358
|
),
|
|
7380
|
-
React__default
|
|
7359
|
+
React__default.createElement(
|
|
7381
7360
|
'style',
|
|
7382
7361
|
{ jsx: 'true' },
|
|
7383
7362
|
'\n \n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n\n span.btn {\n margin: 0 1rem;\n }\n \n \n '
|
|
@@ -7430,54 +7409,54 @@ var Poll = function Poll(_ref) {
|
|
|
7430
7409
|
return acc;
|
|
7431
7410
|
}
|
|
7432
7411
|
}, 0);
|
|
7433
|
-
return React__default
|
|
7434
|
-
React__default
|
|
7412
|
+
return React__default.createElement(
|
|
7413
|
+
React__default.Fragment,
|
|
7435
7414
|
null,
|
|
7436
|
-
question && React__default
|
|
7415
|
+
question && React__default.createElement(
|
|
7437
7416
|
'p',
|
|
7438
7417
|
{ className: 'font-weight-bold' },
|
|
7439
7418
|
question
|
|
7440
7419
|
),
|
|
7441
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7420
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7442
7421
|
'form',
|
|
7443
7422
|
{ onSubmit: function onSubmit(e) {
|
|
7444
7423
|
return onSubmitPoll(e);
|
|
7445
7424
|
} },
|
|
7446
7425
|
choices && choices.map(function (choice) {
|
|
7447
|
-
return React__default
|
|
7426
|
+
return React__default.createElement(
|
|
7448
7427
|
'div',
|
|
7449
7428
|
{ key: choice._key },
|
|
7450
|
-
React__default
|
|
7429
|
+
React__default.createElement(
|
|
7451
7430
|
'label',
|
|
7452
7431
|
{ className: 'pl-2' },
|
|
7453
|
-
React__default
|
|
7432
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7454
7433
|
return setSelectedChoice(e.target.value);
|
|
7455
7434
|
} }),
|
|
7456
7435
|
' ' + choice.choiceText
|
|
7457
7436
|
)
|
|
7458
7437
|
);
|
|
7459
7438
|
}),
|
|
7460
|
-
React__default
|
|
7439
|
+
React__default.createElement(
|
|
7461
7440
|
reactBootstrap.Button,
|
|
7462
7441
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7463
7442
|
'Vote'
|
|
7464
7443
|
)
|
|
7465
7444
|
),
|
|
7466
|
-
React__default
|
|
7445
|
+
React__default.createElement(
|
|
7467
7446
|
'div',
|
|
7468
7447
|
{ className: 'progress-container' },
|
|
7469
7448
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7470
7449
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7471
|
-
return React__default
|
|
7450
|
+
return React__default.createElement(
|
|
7472
7451
|
'div',
|
|
7473
7452
|
{ key: choice._key, className: 'mb-3' },
|
|
7474
|
-
React__default
|
|
7453
|
+
React__default.createElement(
|
|
7475
7454
|
'span',
|
|
7476
7455
|
null,
|
|
7477
7456
|
choice.choiceText
|
|
7478
7457
|
),
|
|
7479
|
-
React__default
|
|
7480
|
-
React__default
|
|
7458
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7459
|
+
React__default.createElement(
|
|
7481
7460
|
'span',
|
|
7482
7461
|
{ className: 'float-right' },
|
|
7483
7462
|
percentage,
|
|
@@ -7488,14 +7467,14 @@ var Poll = function Poll(_ref) {
|
|
|
7488
7467
|
);
|
|
7489
7468
|
})
|
|
7490
7469
|
),
|
|
7491
|
-
showAnswer && React__default
|
|
7470
|
+
showAnswer && React__default.createElement(
|
|
7492
7471
|
'h4',
|
|
7493
7472
|
{ className: 'text-center small p-3' },
|
|
7494
7473
|
'Total Votes: ',
|
|
7495
7474
|
choicesTotalCount
|
|
7496
7475
|
),
|
|
7497
|
-
showAnswer && response && React__default
|
|
7498
|
-
React__default
|
|
7476
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7477
|
+
React__default.createElement(
|
|
7499
7478
|
'style',
|
|
7500
7479
|
{ jsx: 'true' },
|
|
7501
7480
|
'\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7503,7 +7482,7 @@ var Poll = function Poll(_ref) {
|
|
|
7503
7482
|
);
|
|
7504
7483
|
};
|
|
7505
7484
|
|
|
7506
|
-
var numberOfPaginations = main.
|
|
7485
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7507
7486
|
|
|
7508
7487
|
var Quiz = function Quiz(_ref) {
|
|
7509
7488
|
var quizzes = _ref.quizzes,
|
|
@@ -7560,7 +7539,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7560
7539
|
setEndIndex(numberOfPaginations - 1);
|
|
7561
7540
|
newPath = window.location.pathname;
|
|
7562
7541
|
window.history.pushState(null, null, newPath);
|
|
7563
|
-
index
|
|
7542
|
+
index.lib_3.refresh();
|
|
7564
7543
|
if (pageview) pageview(newPath);
|
|
7565
7544
|
break;
|
|
7566
7545
|
case 'last':
|
|
@@ -7569,7 +7548,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7569
7548
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7570
7549
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7571
7550
|
window.history.pushState(null, null, newPath);
|
|
7572
|
-
index
|
|
7551
|
+
index.lib_3.refresh();
|
|
7573
7552
|
if (pageview) pageview(newPath);
|
|
7574
7553
|
break;
|
|
7575
7554
|
case 'next':
|
|
@@ -7580,7 +7559,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7580
7559
|
}
|
|
7581
7560
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7582
7561
|
window.history.pushState(null, null, newPath);
|
|
7583
|
-
index
|
|
7562
|
+
index.lib_3.refresh();
|
|
7584
7563
|
if (pageview) pageview(newPath);
|
|
7585
7564
|
break;
|
|
7586
7565
|
case 'prev':
|
|
@@ -7591,14 +7570,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7591
7570
|
}
|
|
7592
7571
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7593
7572
|
window.history.pushState(null, null, newPath);
|
|
7594
|
-
index
|
|
7573
|
+
index.lib_3.refresh();
|
|
7595
7574
|
if (pageview) pageview(newPath);
|
|
7596
7575
|
break;
|
|
7597
7576
|
default:
|
|
7598
7577
|
setCurrentPage(control);
|
|
7599
7578
|
newPath = window.location.pathname + '?page=' + control;
|
|
7600
7579
|
window.history.pushState(null, null, newPath);
|
|
7601
|
-
index
|
|
7580
|
+
index.lib_3.refresh();
|
|
7602
7581
|
if (pageview) pageview(newPath);
|
|
7603
7582
|
}
|
|
7604
7583
|
};
|
|
@@ -7614,62 +7593,62 @@ var Quiz = function Quiz(_ref) {
|
|
|
7614
7593
|
};
|
|
7615
7594
|
|
|
7616
7595
|
var renderPagination = function renderPagination() {
|
|
7617
|
-
return React__default
|
|
7618
|
-
|
|
7619
|
-
{ className: 'p-0 m-0', size: main.
|
|
7620
|
-
React__default
|
|
7596
|
+
return React__default.createElement(
|
|
7597
|
+
Pagination,
|
|
7598
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7599
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7621
7600
|
return changePage('first');
|
|
7622
7601
|
}, disabled: currentPage === 1 }),
|
|
7623
|
-
React__default
|
|
7602
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7624
7603
|
return changePage('prev');
|
|
7625
7604
|
}, disabled: currentPage === 1 }),
|
|
7626
|
-
React__default
|
|
7605
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7627
7606
|
return renderNewPages('prev');
|
|
7628
7607
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7629
7608
|
pages.map(function (page) {
|
|
7630
|
-
return React__default
|
|
7631
|
-
|
|
7609
|
+
return React__default.createElement(
|
|
7610
|
+
Pagination.Item,
|
|
7632
7611
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7633
7612
|
return changePage(page);
|
|
7634
7613
|
} },
|
|
7635
7614
|
page
|
|
7636
7615
|
);
|
|
7637
7616
|
}),
|
|
7638
|
-
React__default
|
|
7617
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7639
7618
|
return renderNewPages('next');
|
|
7640
7619
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7641
|
-
React__default
|
|
7620
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7642
7621
|
return changePage('next');
|
|
7643
7622
|
}, disabled: currentPage === pageCount }),
|
|
7644
|
-
React__default
|
|
7623
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7645
7624
|
return changePage('last');
|
|
7646
7625
|
}, disabled: currentPage === pageCount })
|
|
7647
7626
|
);
|
|
7648
7627
|
};
|
|
7649
7628
|
|
|
7650
|
-
return React__default
|
|
7651
|
-
React__default
|
|
7629
|
+
return React__default.createElement(
|
|
7630
|
+
React__default.Fragment,
|
|
7652
7631
|
null,
|
|
7653
|
-
quizzes[currentPage - 1] && React__default
|
|
7654
|
-
!showAnswer && React__default
|
|
7655
|
-
|
|
7632
|
+
quizzes[currentPage - 1] && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7633
|
+
!showAnswer && React__default.createElement(
|
|
7634
|
+
Button,
|
|
7656
7635
|
{ onClick: function onClick() {
|
|
7657
7636
|
return setShowAnswer(true);
|
|
7658
7637
|
}, variant: 'info', block: true },
|
|
7659
7638
|
'Please click here for answer'
|
|
7660
7639
|
),
|
|
7661
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
7662
|
-
React__default
|
|
7640
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7641
|
+
React__default.Fragment,
|
|
7663
7642
|
null,
|
|
7664
|
-
React__default
|
|
7643
|
+
React__default.createElement(
|
|
7665
7644
|
'h4',
|
|
7666
7645
|
null,
|
|
7667
7646
|
'Answer:'
|
|
7668
7647
|
),
|
|
7669
|
-
React__default
|
|
7648
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7670
7649
|
),
|
|
7671
|
-
React__default
|
|
7672
|
-
pageCount > 1 && React__default
|
|
7650
|
+
React__default.createElement('br', null),
|
|
7651
|
+
pageCount > 1 && React__default.createElement(
|
|
7673
7652
|
'div',
|
|
7674
7653
|
{ className: 'd-flex justify-content-center' },
|
|
7675
7654
|
renderPagination()
|
|
@@ -7680,15 +7659,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
7680
7659
|
var Leads = function Leads(_ref) {
|
|
7681
7660
|
var url = _ref.url;
|
|
7682
7661
|
|
|
7683
|
-
return React__default
|
|
7662
|
+
return React__default.createElement(
|
|
7684
7663
|
'div',
|
|
7685
7664
|
{ className: 'd-block text-center mb-3' },
|
|
7686
|
-
url && React__default
|
|
7665
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7687
7666
|
);
|
|
7688
7667
|
};
|
|
7689
7668
|
|
|
7690
7669
|
var urlFor$1 = function urlFor(source, client) {
|
|
7691
|
-
var builder = index.imageUrlBuilder(client);
|
|
7670
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7692
7671
|
return builder.image(source).auto('format');
|
|
7693
7672
|
};
|
|
7694
7673
|
|
|
@@ -7717,7 +7696,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7717
7696
|
// }, [router])
|
|
7718
7697
|
|
|
7719
7698
|
React.useEffect(function () {
|
|
7720
|
-
index
|
|
7699
|
+
index.lib_3.refresh();
|
|
7721
7700
|
if (pageview) pageview(router.asPath);
|
|
7722
7701
|
}, [router]);
|
|
7723
7702
|
|
|
@@ -7727,42 +7706,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7727
7706
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
7728
7707
|
};
|
|
7729
7708
|
|
|
7730
|
-
return React__default
|
|
7709
|
+
return React__default.createElement(
|
|
7731
7710
|
'div',
|
|
7732
7711
|
{ className: 'mt-3 mb-4' },
|
|
7733
|
-
React__default
|
|
7712
|
+
React__default.createElement(
|
|
7734
7713
|
reactBootstrap.Carousel,
|
|
7735
7714
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
7736
7715
|
slides && slides.map(function (slide) {
|
|
7737
7716
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
7738
|
-
return React__default
|
|
7717
|
+
return React__default.createElement(
|
|
7739
7718
|
reactBootstrap.Carousel.Item,
|
|
7740
7719
|
{ key: slide._key },
|
|
7741
|
-
React__default
|
|
7720
|
+
React__default.createElement(
|
|
7742
7721
|
'a',
|
|
7743
7722
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
7744
|
-
React__default
|
|
7723
|
+
React__default.createElement(
|
|
7745
7724
|
index$2.LazyLoad,
|
|
7746
7725
|
null,
|
|
7747
|
-
React__default
|
|
7726
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
7748
7727
|
)
|
|
7749
7728
|
),
|
|
7750
|
-
React__default
|
|
7729
|
+
React__default.createElement(
|
|
7751
7730
|
'div',
|
|
7752
7731
|
{ className: 'p-2' },
|
|
7753
|
-
slide.slideshowImage.caption && React__default
|
|
7732
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
7754
7733
|
'h3',
|
|
7755
7734
|
{ style: { padding: '0px' } },
|
|
7756
7735
|
slide.slideshowImage.caption
|
|
7757
7736
|
),
|
|
7758
|
-
slide.description && React__default
|
|
7737
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
7759
7738
|
)
|
|
7760
7739
|
);
|
|
7761
7740
|
}
|
|
7762
7741
|
return null;
|
|
7763
7742
|
})
|
|
7764
7743
|
),
|
|
7765
|
-
React__default
|
|
7744
|
+
React__default.createElement(
|
|
7766
7745
|
'style',
|
|
7767
7746
|
{ jsx: 'true' },
|
|
7768
7747
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -7781,15 +7760,15 @@ var NativeAd = function NativeAd(props) {
|
|
|
7781
7760
|
sizes = _props$node.sizes,
|
|
7782
7761
|
sizeMapping = _props$node.sizeMapping;
|
|
7783
7762
|
|
|
7784
|
-
return React__default
|
|
7763
|
+
return React__default.createElement(
|
|
7785
7764
|
'div',
|
|
7786
7765
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
7787
|
-
React__default
|
|
7766
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
7788
7767
|
);
|
|
7789
7768
|
};
|
|
7790
7769
|
|
|
7791
7770
|
var urlFor$2 = function urlFor(source, client) {
|
|
7792
|
-
var builder = index.imageUrlBuilder(client);
|
|
7771
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7793
7772
|
return builder.image(source).auto('format');
|
|
7794
7773
|
};
|
|
7795
7774
|
|
|
@@ -7799,24 +7778,24 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7799
7778
|
|
|
7800
7779
|
|
|
7801
7780
|
if (images && images.length > 0) {
|
|
7802
|
-
return React__default
|
|
7781
|
+
return React__default.createElement(
|
|
7803
7782
|
'div',
|
|
7804
7783
|
{ className: 'multi-figure-container' },
|
|
7805
|
-
React__default
|
|
7784
|
+
React__default.createElement(
|
|
7806
7785
|
reactBootstrap.Row,
|
|
7807
7786
|
{ noGutters: true },
|
|
7808
7787
|
images.map(function (image, index) {
|
|
7809
|
-
return React__default
|
|
7788
|
+
return React__default.createElement(
|
|
7810
7789
|
reactBootstrap.Col,
|
|
7811
7790
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7812
|
-
React__default
|
|
7791
|
+
React__default.createElement(
|
|
7813
7792
|
'a',
|
|
7814
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7815
|
-
React__default
|
|
7793
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7794
|
+
React__default.createElement(
|
|
7816
7795
|
'div',
|
|
7817
7796
|
{ className: 'multi-figure-image-container' },
|
|
7818
|
-
React__default
|
|
7819
|
-
image.caption && React__default
|
|
7797
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$2(image.asset, client).url(), alt: image.alt }),
|
|
7798
|
+
image.caption && React__default.createElement(
|
|
7820
7799
|
'span',
|
|
7821
7800
|
{ className: 'multi-figure-caption' },
|
|
7822
7801
|
image.caption
|
|
@@ -7826,7 +7805,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7826
7805
|
);
|
|
7827
7806
|
})
|
|
7828
7807
|
),
|
|
7829
|
-
React__default
|
|
7808
|
+
React__default.createElement(
|
|
7830
7809
|
'style',
|
|
7831
7810
|
{ jsx: 'true' },
|
|
7832
7811
|
'\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -7848,15 +7827,15 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
7848
7827
|
|
|
7849
7828
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
7850
7829
|
|
|
7851
|
-
return React__default
|
|
7830
|
+
return React__default.createElement(
|
|
7852
7831
|
'div',
|
|
7853
7832
|
{ id: elementId },
|
|
7854
|
-
React__default
|
|
7833
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
7855
7834
|
);
|
|
7856
7835
|
};
|
|
7857
7836
|
|
|
7858
|
-
var Figure =
|
|
7859
|
-
return Promise.resolve().then(function () { return require('./Figure-
|
|
7837
|
+
var Figure = dynamic(function () {
|
|
7838
|
+
return Promise.resolve().then(function () { return require('./Figure-eeac313a.js'); });
|
|
7860
7839
|
}, { ssr: false });
|
|
7861
7840
|
|
|
7862
7841
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
@@ -7905,14 +7884,13 @@ var getSerializers = function getSerializers() {
|
|
|
7905
7884
|
pageview = props[1],
|
|
7906
7885
|
videoAccountIDs = props[2],
|
|
7907
7886
|
onVote = props[3],
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
_props$ = props[7],
|
|
7887
|
+
drupalLeadSettings = props[4],
|
|
7888
|
+
currentPage = props[5],
|
|
7889
|
+
_props$ = props[6],
|
|
7912
7890
|
autoplay = _props$ === undefined ? false : _props$,
|
|
7913
|
-
_props$2 = props[
|
|
7891
|
+
_props$2 = props[7],
|
|
7914
7892
|
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
7915
|
-
articleId = props[
|
|
7893
|
+
articleId = props[8];
|
|
7916
7894
|
|
|
7917
7895
|
return {
|
|
7918
7896
|
types: {
|
|
@@ -7924,112 +7902,112 @@ var getSerializers = function getSerializers() {
|
|
|
7924
7902
|
var node = _ref.node;
|
|
7925
7903
|
var url = node.url;
|
|
7926
7904
|
|
|
7927
|
-
return React__default
|
|
7905
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
7928
7906
|
},
|
|
7929
7907
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
7930
7908
|
var node = _ref2.node;
|
|
7931
7909
|
|
|
7932
|
-
return React__default
|
|
7910
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
7933
7911
|
},
|
|
7934
7912
|
figure: function figure(_ref3) {
|
|
7935
7913
|
var node = _ref3.node;
|
|
7936
7914
|
|
|
7937
|
-
return React__default
|
|
7915
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag });
|
|
7938
7916
|
},
|
|
7939
7917
|
multifigure: function multifigure(_ref4) {
|
|
7940
7918
|
var node = _ref4.node;
|
|
7941
7919
|
|
|
7942
|
-
return React__default
|
|
7920
|
+
return React__default.createElement(MultiFigure, { node: node, client: client });
|
|
7943
7921
|
},
|
|
7944
7922
|
slideshow: function slideshow(_ref5) {
|
|
7945
7923
|
var node = _ref5.node;
|
|
7946
7924
|
var slides = node.slides;
|
|
7947
7925
|
|
|
7948
|
-
return React__default
|
|
7926
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
7949
7927
|
},
|
|
7950
7928
|
sidebar: function sidebar(_ref6) {
|
|
7951
7929
|
var node = _ref6.node;
|
|
7952
7930
|
var caption = node.caption,
|
|
7953
7931
|
content = node.content;
|
|
7954
7932
|
|
|
7955
|
-
return React__default
|
|
7933
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
7956
7934
|
},
|
|
7957
7935
|
datatable: function datatable(_ref7) {
|
|
7958
7936
|
var node = _ref7.node;
|
|
7959
7937
|
var table = node.table;
|
|
7960
7938
|
|
|
7961
|
-
return React__default
|
|
7939
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
7962
7940
|
},
|
|
7963
7941
|
media: function media(_ref8) {
|
|
7964
7942
|
var node = _ref8.node;
|
|
7965
7943
|
|
|
7966
|
-
return React__default
|
|
7944
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
7967
7945
|
},
|
|
7968
7946
|
iframe: function iframe(_ref9) {
|
|
7969
7947
|
var node = _ref9.node;
|
|
7970
7948
|
|
|
7971
|
-
return React__default
|
|
7949
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
7972
7950
|
},
|
|
7973
7951
|
video: function video(_ref10) {
|
|
7974
7952
|
var node = _ref10.node;
|
|
7975
7953
|
|
|
7976
|
-
return React__default
|
|
7954
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {} });
|
|
7977
7955
|
},
|
|
7978
7956
|
audio: function audio(_ref11) {
|
|
7979
7957
|
var node = _ref11.node;
|
|
7980
7958
|
|
|
7981
|
-
return React__default
|
|
7959
|
+
return React__default.createElement(Audio, { node: node });
|
|
7982
7960
|
},
|
|
7983
7961
|
poll: function poll(_ref12) {
|
|
7984
7962
|
var node = _ref12.node;
|
|
7985
7963
|
|
|
7986
|
-
return React__default
|
|
7964
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, onVote: onVote, getSerializers: getSerializers(props) });
|
|
7987
7965
|
},
|
|
7988
7966
|
quiz: function quiz(_ref13) {
|
|
7989
7967
|
var node = _ref13.node;
|
|
7990
7968
|
var quizzes = node.quizzes;
|
|
7991
7969
|
|
|
7992
|
-
return React__default
|
|
7970
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
7993
7971
|
},
|
|
7994
7972
|
leads: function leads(_ref14) {
|
|
7995
7973
|
var node = _ref14.node;
|
|
7996
7974
|
var leadID = node.leadID;
|
|
7997
7975
|
|
|
7998
7976
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
7999
|
-
return React__default
|
|
7977
|
+
return React__default.createElement(Leads, { url: url });
|
|
8000
7978
|
},
|
|
8001
7979
|
slideshows: function slideshows(_ref15) {
|
|
8002
7980
|
var node = _ref15.node;
|
|
8003
7981
|
|
|
8004
|
-
return React__default
|
|
7982
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
8005
7983
|
},
|
|
8006
7984
|
nativeAd: function nativeAd(_ref16) {
|
|
8007
7985
|
var node = _ref16.node;
|
|
8008
7986
|
|
|
8009
|
-
return React__default
|
|
7987
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
8010
7988
|
},
|
|
8011
7989
|
html_anchor_links: function html_anchor_links(_ref17) {
|
|
8012
7990
|
var node = _ref17.node;
|
|
8013
7991
|
|
|
8014
|
-
return React__default
|
|
7992
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
8015
7993
|
},
|
|
8016
7994
|
hrtag: function hrtag() {
|
|
8017
|
-
return React__default
|
|
7995
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
8018
7996
|
},
|
|
8019
7997
|
brtag: function brtag() {
|
|
8020
|
-
return React__default
|
|
7998
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
8021
7999
|
}
|
|
8022
8000
|
},
|
|
8023
8001
|
marks: {
|
|
8024
8002
|
superscript: function superscript(props) {
|
|
8025
|
-
return React__default
|
|
8003
|
+
return React__default.createElement(
|
|
8026
8004
|
'sup',
|
|
8027
8005
|
null,
|
|
8028
8006
|
props.children
|
|
8029
8007
|
);
|
|
8030
8008
|
},
|
|
8031
8009
|
subscript: function subscript(props) {
|
|
8032
|
-
return React__default
|
|
8010
|
+
return React__default.createElement(
|
|
8033
8011
|
'sub',
|
|
8034
8012
|
null,
|
|
8035
8013
|
props.children
|
|
@@ -8045,7 +8023,7 @@ var getSerializers = function getSerializers() {
|
|
|
8045
8023
|
if (href && href.charAt(0) === '#') {
|
|
8046
8024
|
var elementId = href.slice(1);
|
|
8047
8025
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
8048
|
-
return React__default
|
|
8026
|
+
return React__default.createElement(
|
|
8049
8027
|
'a',
|
|
8050
8028
|
{ onClick: function onClick() {
|
|
8051
8029
|
return ScrollToElement(elementId);
|
|
@@ -8055,7 +8033,7 @@ var getSerializers = function getSerializers() {
|
|
|
8055
8033
|
}
|
|
8056
8034
|
|
|
8057
8035
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
8058
|
-
return React__default
|
|
8036
|
+
return React__default.createElement(
|
|
8059
8037
|
'a',
|
|
8060
8038
|
{ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
8061
8039
|
children
|
|
@@ -8063,7 +8041,7 @@ var getSerializers = function getSerializers() {
|
|
|
8063
8041
|
},
|
|
8064
8042
|
alignleft: function alignleft(_ref18) {
|
|
8065
8043
|
var children = _ref18.children;
|
|
8066
|
-
return React__default
|
|
8044
|
+
return React__default.createElement(
|
|
8067
8045
|
'div',
|
|
8068
8046
|
{ style: { textAlign: 'left' } },
|
|
8069
8047
|
children
|
|
@@ -8071,7 +8049,7 @@ var getSerializers = function getSerializers() {
|
|
|
8071
8049
|
},
|
|
8072
8050
|
alignright: function alignright(_ref19) {
|
|
8073
8051
|
var children = _ref19.children;
|
|
8074
|
-
return React__default
|
|
8052
|
+
return React__default.createElement(
|
|
8075
8053
|
'div',
|
|
8076
8054
|
{ style: { textAlign: 'right' } },
|
|
8077
8055
|
children
|
|
@@ -8079,7 +8057,7 @@ var getSerializers = function getSerializers() {
|
|
|
8079
8057
|
},
|
|
8080
8058
|
aligncenter: function aligncenter(_ref20) {
|
|
8081
8059
|
var children = _ref20.children;
|
|
8082
|
-
return React__default
|
|
8060
|
+
return React__default.createElement(
|
|
8083
8061
|
'div',
|
|
8084
8062
|
{ style: { textAlign: 'center' } },
|
|
8085
8063
|
children
|
|
@@ -8087,7 +8065,7 @@ var getSerializers = function getSerializers() {
|
|
|
8087
8065
|
},
|
|
8088
8066
|
alignjustify: function alignjustify(_ref21) {
|
|
8089
8067
|
var children = _ref21.children;
|
|
8090
|
-
return React__default
|
|
8068
|
+
return React__default.createElement(
|
|
8091
8069
|
'div',
|
|
8092
8070
|
{ style: { textAlign: 'justify' } },
|
|
8093
8071
|
children
|