@mjhls/mjh-framework 1.0.535 → 1.0.537
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 +172 -172
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +5 -5
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +10 -10
- package/dist/cjs/Auth.js +256 -507
- package/dist/cjs/{BlockContent-f942392e.js → BlockContent-77f81ffc.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +15 -15
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-fbe32b96.js → Dfp-fcdeabc4.js} +1 -1
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +6 -6
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +11 -11
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +16 -16
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +11 -11
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +1210 -14
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +4 -4
- package/dist/cjs/View.js +38 -38
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +355 -6
- package/dist/cjs/getSerializers.js +437 -449
- package/dist/cjs/{getTargeting-b15993cb.js → getTargeting-3d208b98.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
- package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
- package/dist/cjs/index.js +13 -14
- package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +5 -5
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +10 -10
- package/dist/esm/Auth.js +248 -499
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +15 -15
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-ae9336e2.js → Dfp-81a052c2.js} +1 -1
- package/dist/esm/EventsDeck.js +22 -22
- package/dist/esm/ExternalResources.js +6 -6
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +16 -16
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +11 -11
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1208 -12
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/View.js +13 -13
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +355 -6
- package/dist/esm/getSerializers.js +437 -449
- package/dist/esm/{getTargeting-1a0bd08d.js → getTargeting-1f2c61e3.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
- package/dist/esm/index.js +12 -13
- package/dist/esm/{main-7255814e.js → main-d7ee6151.js} +34 -65
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- /package/dist/cjs/{ADInfeed-3404200f.js → ADInfeed-d8e47444.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2611e1a9.js → ADlgInfeed-947c3a47.js} +0 -0
- /package/dist/esm/{ADInfeed-27674dc6.js → ADInfeed-2eb234ae.js} +0 -0
- /package/dist/esm/{ADlgInfeed-43060a77.js → ADlgInfeed-17c13711.js} +0 -0
|
@@ -5,20 +5,20 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import { _ as _Array$from } from './from-2c0a5f49.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import { _ as _extends } from './extends-6e00b262.js';
|
|
8
|
+
import { _ as _extends$1 } from './extends-6e00b262.js';
|
|
9
9
|
import './web.dom.iterable-46c95e52.js';
|
|
10
10
|
import './typeof-5f046efd.js';
|
|
11
11
|
import './_is-array-dd5523d6.js';
|
|
12
12
|
import React__default, { useState, useEffect } from 'react';
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
13
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import Router, { useRouter } from 'next/router';
|
|
16
16
|
import './isSymbol-b7b7434f.js';
|
|
17
17
|
import './debounce-048d9cb6.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import { i as imageUrlBuilder } from './index-
|
|
19
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
20
20
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
21
|
-
import { b as main_16, c as
|
|
21
|
+
import { b as main_16, c as main_35 } from './main-d7ee6151.js';
|
|
22
22
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
24
24
|
import './stringify-e30bc114.js';
|
|
@@ -26,7 +26,7 @@ import './asyncToGenerator-0379e924.js';
|
|
|
26
26
|
import './_set-species-6f64f1c1.js';
|
|
27
27
|
import { B as Beam, S as Segment } from './beam-a25bd8fd.js';
|
|
28
28
|
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import { B as BlockContent } from './BlockContent-
|
|
29
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
30
30
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
31
31
|
import GroupDeck from './GroupDeck.js';
|
|
32
32
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Row, Col } from 'react-bootstrap';
|
|
@@ -98,18 +98,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
98
98
|
);
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
var isArray = Array.isArray;
|
|
102
|
+
var keyList = Object.keys;
|
|
103
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
104
104
|
|
|
105
105
|
var fastDeepEqual = function equal(a, b) {
|
|
106
106
|
if (a === b) return true;
|
|
107
107
|
|
|
108
108
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
109
|
-
|
|
109
|
+
var arrA = isArray(a)
|
|
110
|
+
, arrB = isArray(b)
|
|
111
|
+
, i
|
|
112
|
+
, length
|
|
113
|
+
, key;
|
|
110
114
|
|
|
111
|
-
|
|
112
|
-
if (Array.isArray(a)) {
|
|
115
|
+
if (arrA && arrB) {
|
|
113
116
|
length = a.length;
|
|
114
117
|
if (length != b.length) return false;
|
|
115
118
|
for (i = length; i-- !== 0;)
|
|
@@ -117,29 +120,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
117
120
|
return true;
|
|
118
121
|
}
|
|
119
122
|
|
|
123
|
+
if (arrA != arrB) return false;
|
|
120
124
|
|
|
125
|
+
var dateA = a instanceof Date
|
|
126
|
+
, dateB = b instanceof Date;
|
|
127
|
+
if (dateA != dateB) return false;
|
|
128
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
121
129
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (
|
|
130
|
+
var regexpA = a instanceof RegExp
|
|
131
|
+
, regexpB = b instanceof RegExp;
|
|
132
|
+
if (regexpA != regexpB) return false;
|
|
133
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
125
134
|
|
|
126
|
-
keys =
|
|
135
|
+
var keys = keyList(a);
|
|
127
136
|
length = keys.length;
|
|
128
|
-
|
|
137
|
+
|
|
138
|
+
if (length !== keyList(b).length)
|
|
139
|
+
return false;
|
|
129
140
|
|
|
130
141
|
for (i = length; i-- !== 0;)
|
|
131
|
-
if (!
|
|
142
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
132
143
|
|
|
133
144
|
for (i = length; i-- !== 0;) {
|
|
134
|
-
|
|
135
|
-
|
|
145
|
+
key = keys[i];
|
|
136
146
|
if (!equal(a[key], b[key])) return false;
|
|
137
147
|
}
|
|
138
148
|
|
|
139
149
|
return true;
|
|
140
150
|
}
|
|
141
151
|
|
|
142
|
-
// true if both NaN, false otherwise
|
|
143
152
|
return a!==a && b!==b;
|
|
144
153
|
};
|
|
145
154
|
|
|
@@ -1562,235 +1571,199 @@ module.exports = exports['default'];
|
|
|
1562
1571
|
|
|
1563
1572
|
var youTubePlayer = unwrapExports(dist);
|
|
1564
1573
|
|
|
1565
|
-
function
|
|
1566
|
-
|
|
1567
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1568
|
-
|
|
1569
|
-
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); } }
|
|
1570
|
-
|
|
1571
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
+
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; }; }();
|
|
1572
1575
|
|
|
1573
|
-
|
|
1576
|
+
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; };
|
|
1574
1577
|
|
|
1575
|
-
function
|
|
1576
|
-
|
|
1577
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1578
|
-
|
|
1579
|
-
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; } }
|
|
1580
|
-
|
|
1581
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1582
|
-
|
|
1583
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1584
|
-
|
|
1585
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1586
1579
|
|
|
1587
|
-
function
|
|
1580
|
+
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; }
|
|
1588
1581
|
|
|
1589
|
-
function
|
|
1582
|
+
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; }
|
|
1590
1583
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
*
|
|
1594
|
-
*
|
|
1595
|
-
* @param {Object}
|
|
1596
|
-
* @param {Object} props
|
|
1584
|
+
/**
|
|
1585
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
+
*
|
|
1587
|
+
* @param {Object} prevProps
|
|
1588
|
+
* @param {Object} props
|
|
1597
1589
|
*/
|
|
1598
|
-
|
|
1599
1590
|
function shouldUpdateVideo(prevProps, props) {
|
|
1600
1591
|
// A changing video should always trigger an update
|
|
1601
1592
|
if (prevProps.videoId !== props.videoId) {
|
|
1602
1593
|
return true;
|
|
1603
|
-
}
|
|
1604
|
-
// update.
|
|
1605
|
-
|
|
1594
|
+
}
|
|
1606
1595
|
|
|
1596
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1597
|
+
// update.
|
|
1607
1598
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1608
1599
|
var vars = props.opts.playerVars || {};
|
|
1600
|
+
|
|
1609
1601
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1610
1602
|
}
|
|
1611
|
-
/**
|
|
1612
|
-
* Neutralize 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
|
-
*/
|
|
1618
|
-
|
|
1619
1603
|
|
|
1604
|
+
/**
|
|
1605
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1606
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1607
|
+
* player reset is necessary.
|
|
1608
|
+
*
|
|
1609
|
+
* @param {Object} opts
|
|
1610
|
+
*/
|
|
1620
1611
|
function filterResetOptions(opts) {
|
|
1621
|
-
return
|
|
1622
|
-
playerVars:
|
|
1612
|
+
return _extends({}, opts, {
|
|
1613
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1623
1614
|
autoplay: 0,
|
|
1624
1615
|
start: 0,
|
|
1625
1616
|
end: 0
|
|
1626
1617
|
})
|
|
1627
1618
|
});
|
|
1628
1619
|
}
|
|
1629
|
-
/**
|
|
1630
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1631
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1632
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1633
|
-
* those.
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object} prevProps
|
|
1636
|
-
* @param {Object} props
|
|
1637
|
-
*/
|
|
1638
|
-
|
|
1639
1620
|
|
|
1621
|
+
/**
|
|
1622
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
+
* those.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {Object} prevProps
|
|
1628
|
+
* @param {Object} props
|
|
1629
|
+
*/
|
|
1640
1630
|
function shouldResetPlayer(prevProps, props) {
|
|
1641
1631
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1642
1632
|
}
|
|
1643
|
-
/**
|
|
1644
|
-
* Check whether a props change should result in an id or className update.
|
|
1645
|
-
*
|
|
1646
|
-
* @param {Object} prevProps
|
|
1647
|
-
* @param {Object} props
|
|
1648
|
-
*/
|
|
1649
|
-
|
|
1650
1633
|
|
|
1634
|
+
/**
|
|
1635
|
+
* Check whether a props change should result in an id or className update.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1639
|
+
*/
|
|
1651
1640
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1652
1641
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1653
1642
|
}
|
|
1654
1643
|
|
|
1655
|
-
var YouTube =
|
|
1644
|
+
var YouTube = function (_React$Component) {
|
|
1656
1645
|
_inherits(YouTube, _React$Component);
|
|
1657
1646
|
|
|
1658
|
-
var _super = _createSuper(YouTube);
|
|
1659
|
-
|
|
1660
|
-
/**
|
|
1661
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1662
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1663
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1664
|
-
*/
|
|
1665
1647
|
function YouTube(props) {
|
|
1666
|
-
var _this;
|
|
1667
|
-
|
|
1668
1648
|
_classCallCheck(this, YouTube);
|
|
1669
1649
|
|
|
1670
|
-
_this =
|
|
1650
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1671
1651
|
|
|
1672
|
-
|
|
1652
|
+
_this.onPlayerReady = function (event) {
|
|
1673
1653
|
return _this.props.onReady(event);
|
|
1674
|
-
}
|
|
1654
|
+
};
|
|
1675
1655
|
|
|
1676
|
-
|
|
1656
|
+
_this.onPlayerError = function (event) {
|
|
1677
1657
|
return _this.props.onError(event);
|
|
1678
|
-
}
|
|
1658
|
+
};
|
|
1679
1659
|
|
|
1680
|
-
|
|
1660
|
+
_this.onPlayerStateChange = function (event) {
|
|
1681
1661
|
_this.props.onStateChange(event);
|
|
1682
|
-
|
|
1683
1662
|
switch (event.data) {
|
|
1663
|
+
|
|
1684
1664
|
case YouTube.PlayerState.ENDED:
|
|
1685
1665
|
_this.props.onEnd(event);
|
|
1686
|
-
|
|
1687
1666
|
break;
|
|
1688
1667
|
|
|
1689
1668
|
case YouTube.PlayerState.PLAYING:
|
|
1690
1669
|
_this.props.onPlay(event);
|
|
1691
|
-
|
|
1692
1670
|
break;
|
|
1693
1671
|
|
|
1694
1672
|
case YouTube.PlayerState.PAUSED:
|
|
1695
1673
|
_this.props.onPause(event);
|
|
1696
|
-
|
|
1697
1674
|
break;
|
|
1698
1675
|
}
|
|
1699
|
-
}
|
|
1676
|
+
};
|
|
1700
1677
|
|
|
1701
|
-
|
|
1678
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1702
1679
|
return _this.props.onPlaybackRateChange(event);
|
|
1703
|
-
}
|
|
1680
|
+
};
|
|
1704
1681
|
|
|
1705
|
-
|
|
1682
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1706
1683
|
return _this.props.onPlaybackQualityChange(event);
|
|
1707
|
-
}
|
|
1684
|
+
};
|
|
1708
1685
|
|
|
1709
|
-
|
|
1686
|
+
_this.createPlayer = function () {
|
|
1710
1687
|
// do not attempt to create a player server-side, it won't work
|
|
1711
|
-
if (typeof document === 'undefined') return;
|
|
1712
|
-
|
|
1713
|
-
var playerOpts =
|
|
1688
|
+
if (typeof document === 'undefined') return;
|
|
1689
|
+
// create player
|
|
1690
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1714
1691
|
// preload the `videoId` video if one is already given
|
|
1715
1692
|
videoId: _this.props.videoId
|
|
1716
1693
|
});
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1694
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1695
|
+
// attach event handlers
|
|
1720
1696
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1721
|
-
|
|
1722
1697
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1723
|
-
|
|
1724
1698
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1725
|
-
|
|
1726
1699
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1727
|
-
|
|
1728
1700
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1729
|
-
}
|
|
1701
|
+
};
|
|
1730
1702
|
|
|
1731
|
-
|
|
1703
|
+
_this.resetPlayer = function () {
|
|
1732
1704
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1733
|
-
}
|
|
1705
|
+
};
|
|
1734
1706
|
|
|
1735
|
-
|
|
1707
|
+
_this.updatePlayer = function () {
|
|
1736
1708
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1737
1709
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1738
1710
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1739
1711
|
});
|
|
1740
|
-
}
|
|
1712
|
+
};
|
|
1741
1713
|
|
|
1742
|
-
|
|
1714
|
+
_this.updateVideo = function () {
|
|
1743
1715
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1744
1716
|
_this.internalPlayer.stopVideo();
|
|
1745
|
-
|
|
1746
1717
|
return;
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1718
|
+
}
|
|
1749
1719
|
|
|
1720
|
+
// set queueing options
|
|
1750
1721
|
var autoplay = false;
|
|
1751
1722
|
var opts = {
|
|
1752
1723
|
videoId: _this.props.videoId
|
|
1753
1724
|
};
|
|
1754
|
-
|
|
1755
1725
|
if ('playerVars' in _this.props.opts) {
|
|
1756
1726
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1757
|
-
|
|
1758
1727
|
if ('start' in _this.props.opts.playerVars) {
|
|
1759
1728
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1760
1729
|
}
|
|
1761
|
-
|
|
1762
1730
|
if ('end' in _this.props.opts.playerVars) {
|
|
1763
1731
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1764
1732
|
}
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1733
|
+
}
|
|
1767
1734
|
|
|
1735
|
+
// if autoplay is enabled loadVideoById
|
|
1768
1736
|
if (autoplay) {
|
|
1769
1737
|
_this.internalPlayer.loadVideoById(opts);
|
|
1770
|
-
|
|
1771
1738
|
return;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1739
|
+
}
|
|
1740
|
+
// default behaviour just cues the video
|
|
1775
1741
|
_this.internalPlayer.cueVideoById(opts);
|
|
1776
|
-
}
|
|
1742
|
+
};
|
|
1777
1743
|
|
|
1778
|
-
|
|
1744
|
+
_this.refContainer = function (container) {
|
|
1779
1745
|
_this.container = container;
|
|
1780
|
-
}
|
|
1746
|
+
};
|
|
1781
1747
|
|
|
1782
1748
|
_this.container = null;
|
|
1783
1749
|
_this.internalPlayer = null;
|
|
1784
1750
|
return _this;
|
|
1785
1751
|
}
|
|
1786
1752
|
|
|
1753
|
+
/**
|
|
1754
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1755
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1756
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1757
|
+
*/
|
|
1758
|
+
|
|
1759
|
+
|
|
1787
1760
|
_createClass(YouTube, [{
|
|
1788
|
-
key:
|
|
1761
|
+
key: 'componentDidMount',
|
|
1789
1762
|
value: function componentDidMount() {
|
|
1790
1763
|
this.createPlayer();
|
|
1791
1764
|
}
|
|
1792
1765
|
}, {
|
|
1793
|
-
key:
|
|
1766
|
+
key: 'componentDidUpdate',
|
|
1794
1767
|
value: function componentDidUpdate(prevProps) {
|
|
1795
1768
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1796
1769
|
this.updatePlayer();
|
|
@@ -1805,58 +1778,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1805
1778
|
}
|
|
1806
1779
|
}
|
|
1807
1780
|
}, {
|
|
1808
|
-
key:
|
|
1781
|
+
key: 'componentWillUnmount',
|
|
1809
1782
|
value: function componentWillUnmount() {
|
|
1810
|
-
/**
|
|
1811
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1812
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1813
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1814
|
-
* this method isn't quick enough to reset the container element.
|
|
1783
|
+
/**
|
|
1784
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1785
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1786
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1787
|
+
* this method isn't quick enough to reset the container element.
|
|
1815
1788
|
*/
|
|
1816
1789
|
this.internalPlayer.destroy();
|
|
1817
1790
|
}
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1794
|
+
*
|
|
1795
|
+
* @param {Object} event
|
|
1796
|
+
* @param {Object} target - player object
|
|
1797
|
+
*/
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1802
|
+
*
|
|
1803
|
+
* @param {Object} event
|
|
1804
|
+
* @param {Integer} data - error type
|
|
1805
|
+
* @param {Object} target - player object
|
|
1806
|
+
*/
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1811
|
+
*
|
|
1812
|
+
* @param {Object} event
|
|
1813
|
+
* @param {Integer} data - status change type
|
|
1814
|
+
* @param {Object} target - actual YT player
|
|
1815
|
+
*/
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Object} event
|
|
1822
|
+
* @param {Float} data - playback rate
|
|
1823
|
+
* @param {Object} target - actual YT player
|
|
1824
|
+
*/
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1829
|
+
*
|
|
1830
|
+
* @param {Object} event
|
|
1831
|
+
* @param {String} data - playback quality
|
|
1832
|
+
* @param {Object} target - actual YT player
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1848
|
+
* React should update this automatically but since the Youtube Player API
|
|
1849
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1850
|
+
*/
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1855
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1856
|
+
* Youtube Player API methods to update the video.
|
|
1823
1857
|
*/
|
|
1824
1858
|
|
|
1825
1859
|
}, {
|
|
1826
|
-
key:
|
|
1860
|
+
key: 'render',
|
|
1827
1861
|
value: function render() {
|
|
1828
|
-
return
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
id: this.props.id,
|
|
1832
|
-
|
|
1833
|
-
ref: this.refContainer
|
|
1834
|
-
}));
|
|
1862
|
+
return React__default.createElement(
|
|
1863
|
+
'div',
|
|
1864
|
+
{ className: this.props.containerClassName },
|
|
1865
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1866
|
+
);
|
|
1835
1867
|
}
|
|
1836
1868
|
}]);
|
|
1837
1869
|
|
|
1838
1870
|
return YouTube;
|
|
1839
1871
|
}(React__default.Component);
|
|
1840
1872
|
|
|
1841
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1842
|
-
UNSTARTED: -1,
|
|
1843
|
-
ENDED: 0,
|
|
1844
|
-
PLAYING: 1,
|
|
1845
|
-
PAUSED: 2,
|
|
1846
|
-
BUFFERING: 3,
|
|
1847
|
-
CUED: 5
|
|
1848
|
-
});
|
|
1849
|
-
|
|
1850
1873
|
YouTube.propTypes = {
|
|
1851
1874
|
videoId: PropTypes.string,
|
|
1875
|
+
|
|
1852
1876
|
// custom ID for player element
|
|
1853
1877
|
id: PropTypes.string,
|
|
1878
|
+
|
|
1854
1879
|
// custom class name for player element
|
|
1855
1880
|
className: PropTypes.string,
|
|
1856
1881
|
// custom class name for player container element
|
|
1857
1882
|
containerClassName: PropTypes.string,
|
|
1883
|
+
|
|
1858
1884
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1859
1885
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1886
|
+
|
|
1860
1887
|
// event subscriptions
|
|
1861
1888
|
onReady: PropTypes.func,
|
|
1862
1889
|
onError: PropTypes.func,
|
|
@@ -1868,7 +1895,6 @@ YouTube.propTypes = {
|
|
|
1868
1895
|
onPlaybackQualityChange: PropTypes.func
|
|
1869
1896
|
};
|
|
1870
1897
|
YouTube.defaultProps = {
|
|
1871
|
-
videoId: null,
|
|
1872
1898
|
id: null,
|
|
1873
1899
|
className: null,
|
|
1874
1900
|
opts: {},
|
|
@@ -1882,6 +1908,14 @@ YouTube.defaultProps = {
|
|
|
1882
1908
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1883
1909
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1884
1910
|
};
|
|
1911
|
+
YouTube.PlayerState = {
|
|
1912
|
+
UNSTARTED: -1,
|
|
1913
|
+
ENDED: 0,
|
|
1914
|
+
PLAYING: 1,
|
|
1915
|
+
PAUSED: 2,
|
|
1916
|
+
BUFFERING: 3,
|
|
1917
|
+
CUED: 5
|
|
1918
|
+
};
|
|
1885
1919
|
|
|
1886
1920
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1887
1921
|
var url = _ref.url;
|
|
@@ -2142,7 +2176,7 @@ var Media = function Media(_ref) {
|
|
|
2142
2176
|
React__default.createElement(
|
|
2143
2177
|
'a',
|
|
2144
2178
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2145
|
-
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2179
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2146
2180
|
caption && React__default.createElement(
|
|
2147
2181
|
Figure$1.Caption,
|
|
2148
2182
|
{ className: 'media-caption' },
|
|
@@ -2153,7 +2187,7 @@ var Media = function Media(_ref) {
|
|
|
2153
2187
|
} else if (caption && caption !== '') {
|
|
2154
2188
|
return React__default.createElement(
|
|
2155
2189
|
'a',
|
|
2156
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2190
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2157
2191
|
href: uploadDoc.asset.url + '?dl='
|
|
2158
2192
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2159
2193
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2716,17 +2750,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2716
2750
|
|
|
2717
2751
|
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; }
|
|
2718
2752
|
|
|
2719
|
-
function
|
|
2720
|
-
|
|
2721
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2753
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2722
2754
|
|
|
2723
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2755
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2724
2756
|
|
|
2725
|
-
function
|
|
2726
|
-
|
|
2727
|
-
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; }
|
|
2728
|
-
|
|
2729
|
-
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; }
|
|
2757
|
+
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; }
|
|
2730
2758
|
|
|
2731
2759
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2732
2760
|
|
|
@@ -2856,12 +2884,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2856
2884
|
|
|
2857
2885
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2858
2886
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2859
|
-
|
|
2860
|
-
var
|
|
2861
|
-
|
|
2887
|
+
var _iteratorNormalCompletion = true;
|
|
2888
|
+
var _didIteratorError = false;
|
|
2889
|
+
var _iteratorError = undefined;
|
|
2862
2890
|
|
|
2863
2891
|
try {
|
|
2864
|
-
for (_iterator.
|
|
2892
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2865
2893
|
var p = _step.value;
|
|
2866
2894
|
|
|
2867
2895
|
if (props$1[p]) {
|
|
@@ -2876,9 +2904,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2876
2904
|
}
|
|
2877
2905
|
}
|
|
2878
2906
|
} catch (err) {
|
|
2879
|
-
|
|
2907
|
+
_didIteratorError = true;
|
|
2908
|
+
_iteratorError = err;
|
|
2880
2909
|
} finally {
|
|
2881
|
-
|
|
2910
|
+
try {
|
|
2911
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2912
|
+
_iterator["return"]();
|
|
2913
|
+
}
|
|
2914
|
+
} finally {
|
|
2915
|
+
if (_didIteratorError) {
|
|
2916
|
+
throw _iteratorError;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2882
2919
|
}
|
|
2883
2920
|
|
|
2884
2921
|
return config;
|
|
@@ -3025,16 +3062,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3025
3062
|
|
|
3026
3063
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3027
3064
|
|
|
3028
|
-
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); }; }
|
|
3029
|
-
|
|
3030
3065
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3031
3066
|
|
|
3032
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3033
|
-
|
|
3034
|
-
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; } }
|
|
3035
|
-
|
|
3036
3067
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3037
3068
|
|
|
3069
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3070
|
+
|
|
3038
3071
|
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); }
|
|
3039
3072
|
|
|
3040
3073
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3043,12 +3076,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3043
3076
|
|
|
3044
3077
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3045
3078
|
|
|
3046
|
-
var Player =
|
|
3079
|
+
var Player =
|
|
3080
|
+
/*#__PURE__*/
|
|
3081
|
+
function (_Component) {
|
|
3047
3082
|
_inherits(Player, _Component);
|
|
3048
3083
|
|
|
3049
|
-
var _super = _createSuper(Player);
|
|
3050
|
-
|
|
3051
3084
|
function Player() {
|
|
3085
|
+
var _getPrototypeOf2;
|
|
3086
|
+
|
|
3052
3087
|
var _this;
|
|
3053
3088
|
|
|
3054
3089
|
_classCallCheck(this, Player);
|
|
@@ -3057,7 +3092,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3057
3092
|
_args[_key] = arguments[_key];
|
|
3058
3093
|
}
|
|
3059
3094
|
|
|
3060
|
-
_this =
|
|
3095
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3061
3096
|
|
|
3062
3097
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3063
3098
|
|
|
@@ -3382,7 +3417,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3382
3417
|
return null;
|
|
3383
3418
|
}
|
|
3384
3419
|
|
|
3385
|
-
return
|
|
3420
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3386
3421
|
ref: this.ref,
|
|
3387
3422
|
onReady: this.handleReady,
|
|
3388
3423
|
onPlay: this.handlePlay,
|
|
@@ -3443,16 +3478,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3443
3478
|
|
|
3444
3479
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3445
3480
|
|
|
3446
|
-
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); }; }
|
|
3447
|
-
|
|
3448
3481
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3449
3482
|
|
|
3450
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3451
|
-
|
|
3452
|
-
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; } }
|
|
3453
|
-
|
|
3454
3483
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3455
3484
|
|
|
3485
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3486
|
+
|
|
3456
3487
|
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); }
|
|
3457
3488
|
|
|
3458
3489
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3464,12 +3495,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3464
3495
|
function createSinglePlayer(activePlayer) {
|
|
3465
3496
|
var _class, _temp;
|
|
3466
3497
|
|
|
3467
|
-
return _temp = _class =
|
|
3498
|
+
return _temp = _class =
|
|
3499
|
+
/*#__PURE__*/
|
|
3500
|
+
function (_Component) {
|
|
3468
3501
|
_inherits(SinglePlayer, _Component);
|
|
3469
3502
|
|
|
3470
|
-
var _super = _createSuper(SinglePlayer);
|
|
3471
|
-
|
|
3472
3503
|
function SinglePlayer() {
|
|
3504
|
+
var _getPrototypeOf2;
|
|
3505
|
+
|
|
3473
3506
|
var _this;
|
|
3474
3507
|
|
|
3475
3508
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3478,7 +3511,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3478
3511
|
args[_key] = arguments[_key];
|
|
3479
3512
|
}
|
|
3480
3513
|
|
|
3481
|
-
_this =
|
|
3514
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3482
3515
|
|
|
3483
3516
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3484
3517
|
|
|
@@ -3546,12 +3579,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3546
3579
|
height = _this$props.height,
|
|
3547
3580
|
Wrapper = _this$props.wrapper;
|
|
3548
3581
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3549
|
-
return
|
|
3582
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3550
3583
|
style: _objectSpread({}, style, {
|
|
3551
3584
|
width: width,
|
|
3552
3585
|
height: height
|
|
3553
3586
|
})
|
|
3554
|
-
}, otherProps),
|
|
3587
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3555
3588
|
ref: this.ref,
|
|
3556
3589
|
activePlayer: activePlayer,
|
|
3557
3590
|
config: this.config
|
|
@@ -3597,31 +3630,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3597
3630
|
|
|
3598
3631
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3599
3632
|
|
|
3600
|
-
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); }; }
|
|
3601
|
-
|
|
3602
3633
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3603
3634
|
|
|
3604
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3605
|
-
|
|
3606
|
-
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; } }
|
|
3607
|
-
|
|
3608
3635
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3609
3636
|
|
|
3637
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3638
|
+
|
|
3610
3639
|
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); }
|
|
3611
3640
|
|
|
3612
3641
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3613
3642
|
|
|
3614
3643
|
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; }
|
|
3615
3644
|
|
|
3616
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3617
|
-
|
|
3618
|
-
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."); }
|
|
3619
|
-
|
|
3620
|
-
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); }
|
|
3645
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3621
3646
|
|
|
3622
|
-
function
|
|
3647
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3623
3648
|
|
|
3624
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3649
|
+
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; }
|
|
3625
3650
|
|
|
3626
3651
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3627
3652
|
|
|
@@ -3646,12 +3671,14 @@ function parsePlaylist(url) {
|
|
|
3646
3671
|
return {};
|
|
3647
3672
|
}
|
|
3648
3673
|
|
|
3649
|
-
var YouTube =
|
|
3674
|
+
var YouTube =
|
|
3675
|
+
/*#__PURE__*/
|
|
3676
|
+
function (_Component) {
|
|
3650
3677
|
_inherits(YouTube, _Component);
|
|
3651
3678
|
|
|
3652
|
-
var _super = _createSuper(YouTube);
|
|
3653
|
-
|
|
3654
3679
|
function YouTube() {
|
|
3680
|
+
var _getPrototypeOf2;
|
|
3681
|
+
|
|
3655
3682
|
var _this;
|
|
3656
3683
|
|
|
3657
3684
|
_classCallCheck(this, YouTube);
|
|
@@ -3660,7 +3687,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3660
3687
|
args[_key] = arguments[_key];
|
|
3661
3688
|
}
|
|
3662
3689
|
|
|
3663
|
-
_this =
|
|
3690
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3664
3691
|
|
|
3665
3692
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3666
3693
|
|
|
@@ -3848,9 +3875,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3848
3875
|
height: '100%',
|
|
3849
3876
|
display: display
|
|
3850
3877
|
};
|
|
3851
|
-
return
|
|
3878
|
+
return _react["default"].createElement("div", {
|
|
3852
3879
|
style: style
|
|
3853
|
-
},
|
|
3880
|
+
}, _react["default"].createElement("div", {
|
|
3854
3881
|
ref: this.ref
|
|
3855
3882
|
}));
|
|
3856
3883
|
}
|
|
@@ -3906,16 +3933,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3906
3933
|
|
|
3907
3934
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3908
3935
|
|
|
3909
|
-
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); }; }
|
|
3910
|
-
|
|
3911
3936
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3912
3937
|
|
|
3913
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3914
|
-
|
|
3915
|
-
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; } }
|
|
3916
|
-
|
|
3917
3938
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3918
3939
|
|
|
3940
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3941
|
+
|
|
3919
3942
|
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); }
|
|
3920
3943
|
|
|
3921
3944
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3924,14 +3947,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3924
3947
|
|
|
3925
3948
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3926
3949
|
var SDK_GLOBAL = 'SC';
|
|
3927
|
-
var MATCH_URL = /(
|
|
3950
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3928
3951
|
|
|
3929
|
-
var SoundCloud =
|
|
3952
|
+
var SoundCloud =
|
|
3953
|
+
/*#__PURE__*/
|
|
3954
|
+
function (_Component) {
|
|
3930
3955
|
_inherits(SoundCloud, _Component);
|
|
3931
3956
|
|
|
3932
|
-
var _super = _createSuper(SoundCloud);
|
|
3933
|
-
|
|
3934
3957
|
function SoundCloud() {
|
|
3958
|
+
var _getPrototypeOf2;
|
|
3959
|
+
|
|
3935
3960
|
var _this;
|
|
3936
3961
|
|
|
3937
3962
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3940,7 +3965,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3940
3965
|
args[_key] = arguments[_key];
|
|
3941
3966
|
}
|
|
3942
3967
|
|
|
3943
|
-
_this =
|
|
3968
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3944
3969
|
|
|
3945
3970
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3946
3971
|
|
|
@@ -4061,7 +4086,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4061
4086
|
height: '100%',
|
|
4062
4087
|
display: display
|
|
4063
4088
|
};
|
|
4064
|
-
return
|
|
4089
|
+
return _react["default"].createElement("iframe", {
|
|
4065
4090
|
ref: this.ref,
|
|
4066
4091
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4067
4092
|
style: style,
|
|
@@ -4123,16 +4148,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4123
4148
|
|
|
4124
4149
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4125
4150
|
|
|
4126
|
-
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); }; }
|
|
4127
|
-
|
|
4128
4151
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4129
4152
|
|
|
4130
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4131
|
-
|
|
4132
|
-
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; } }
|
|
4133
|
-
|
|
4134
4153
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4135
4154
|
|
|
4155
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4156
|
+
|
|
4136
4157
|
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); }
|
|
4137
4158
|
|
|
4138
4159
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4144,12 +4165,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4144
4165
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4145
4166
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4146
4167
|
|
|
4147
|
-
var Vimeo =
|
|
4168
|
+
var Vimeo =
|
|
4169
|
+
/*#__PURE__*/
|
|
4170
|
+
function (_Component) {
|
|
4148
4171
|
_inherits(Vimeo, _Component);
|
|
4149
4172
|
|
|
4150
|
-
var _super = _createSuper(Vimeo);
|
|
4151
|
-
|
|
4152
4173
|
function Vimeo() {
|
|
4174
|
+
var _getPrototypeOf2;
|
|
4175
|
+
|
|
4153
4176
|
var _this;
|
|
4154
4177
|
|
|
4155
4178
|
_classCallCheck(this, Vimeo);
|
|
@@ -4158,7 +4181,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4158
4181
|
args[_key] = arguments[_key];
|
|
4159
4182
|
}
|
|
4160
4183
|
|
|
4161
|
-
_this =
|
|
4184
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4162
4185
|
|
|
4163
4186
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4164
4187
|
|
|
@@ -4315,7 +4338,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4315
4338
|
overflow: 'hidden',
|
|
4316
4339
|
display: display
|
|
4317
4340
|
};
|
|
4318
|
-
return
|
|
4341
|
+
return _react["default"].createElement("div", {
|
|
4319
4342
|
key: this.props.url,
|
|
4320
4343
|
ref: this.ref,
|
|
4321
4344
|
style: style
|
|
@@ -4375,16 +4398,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4375
4398
|
|
|
4376
4399
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4377
4400
|
|
|
4378
|
-
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); }; }
|
|
4379
|
-
|
|
4380
4401
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4381
4402
|
|
|
4382
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4383
|
-
|
|
4384
|
-
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; } }
|
|
4385
|
-
|
|
4386
4403
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4387
4404
|
|
|
4405
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4406
|
+
|
|
4388
4407
|
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); }
|
|
4389
4408
|
|
|
4390
4409
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4397,12 +4416,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4397
4416
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4398
4417
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4399
4418
|
|
|
4400
|
-
var Facebook =
|
|
4419
|
+
var Facebook =
|
|
4420
|
+
/*#__PURE__*/
|
|
4421
|
+
function (_Component) {
|
|
4401
4422
|
_inherits(Facebook, _Component);
|
|
4402
4423
|
|
|
4403
|
-
var _super = _createSuper(Facebook);
|
|
4404
|
-
|
|
4405
4424
|
function Facebook() {
|
|
4425
|
+
var _getPrototypeOf2;
|
|
4426
|
+
|
|
4406
4427
|
var _this;
|
|
4407
4428
|
|
|
4408
4429
|
_classCallCheck(this, Facebook);
|
|
@@ -4411,7 +4432,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4411
4432
|
args[_key] = arguments[_key];
|
|
4412
4433
|
}
|
|
4413
4434
|
|
|
4414
|
-
_this =
|
|
4435
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4415
4436
|
|
|
4416
4437
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4417
4438
|
|
|
@@ -4527,7 +4548,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4527
4548
|
width: '100%',
|
|
4528
4549
|
height: '100%'
|
|
4529
4550
|
};
|
|
4530
|
-
return
|
|
4551
|
+
return _react["default"].createElement("div", {
|
|
4531
4552
|
style: style,
|
|
4532
4553
|
id: this.playerID,
|
|
4533
4554
|
className: "fb-video",
|
|
@@ -4587,16 +4608,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4587
4608
|
|
|
4588
4609
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4589
4610
|
|
|
4590
|
-
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); }; }
|
|
4591
|
-
|
|
4592
4611
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4593
4612
|
|
|
4594
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4595
|
-
|
|
4596
|
-
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; } }
|
|
4597
|
-
|
|
4598
4613
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4599
4614
|
|
|
4615
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4616
|
+
|
|
4600
4617
|
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); }
|
|
4601
4618
|
|
|
4602
4619
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4607,12 +4624,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4607
4624
|
var SDK_GLOBAL = 'playerjs';
|
|
4608
4625
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4609
4626
|
|
|
4610
|
-
var Streamable =
|
|
4627
|
+
var Streamable =
|
|
4628
|
+
/*#__PURE__*/
|
|
4629
|
+
function (_Component) {
|
|
4611
4630
|
_inherits(Streamable, _Component);
|
|
4612
4631
|
|
|
4613
|
-
var _super = _createSuper(Streamable);
|
|
4614
|
-
|
|
4615
4632
|
function Streamable() {
|
|
4633
|
+
var _getPrototypeOf2;
|
|
4634
|
+
|
|
4616
4635
|
var _this;
|
|
4617
4636
|
|
|
4618
4637
|
_classCallCheck(this, Streamable);
|
|
@@ -4621,7 +4640,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4621
4640
|
args[_key] = arguments[_key];
|
|
4622
4641
|
}
|
|
4623
4642
|
|
|
4624
|
-
_this =
|
|
4643
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4625
4644
|
|
|
4626
4645
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4627
4646
|
|
|
@@ -4741,7 +4760,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4741
4760
|
width: '100%',
|
|
4742
4761
|
height: '100%'
|
|
4743
4762
|
};
|
|
4744
|
-
return
|
|
4763
|
+
return _react["default"].createElement("iframe", {
|
|
4745
4764
|
ref: this.ref,
|
|
4746
4765
|
src: "https://streamable.com/o/".concat(id),
|
|
4747
4766
|
frameBorder: "0",
|
|
@@ -4802,16 +4821,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4802
4821
|
|
|
4803
4822
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4804
4823
|
|
|
4805
|
-
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); }; }
|
|
4806
|
-
|
|
4807
4824
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4808
4825
|
|
|
4809
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4810
|
-
|
|
4811
|
-
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; } }
|
|
4812
|
-
|
|
4813
4826
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4814
4827
|
|
|
4828
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4829
|
+
|
|
4815
4830
|
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); }
|
|
4816
4831
|
|
|
4817
4832
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4822,48 +4837,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4822
4837
|
var SDK_GLOBAL = 'Wistia';
|
|
4823
4838
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4824
4839
|
|
|
4825
|
-
var Wistia =
|
|
4840
|
+
var Wistia =
|
|
4841
|
+
/*#__PURE__*/
|
|
4842
|
+
function (_Component) {
|
|
4826
4843
|
_inherits(Wistia, _Component);
|
|
4827
4844
|
|
|
4828
|
-
var _super = _createSuper(Wistia);
|
|
4829
|
-
|
|
4830
4845
|
function Wistia() {
|
|
4846
|
+
var _getPrototypeOf2;
|
|
4847
|
+
|
|
4831
4848
|
var _this;
|
|
4832
4849
|
|
|
4833
4850
|
_classCallCheck(this, Wistia);
|
|
4834
4851
|
|
|
4835
|
-
for (var _len = arguments.length,
|
|
4836
|
-
|
|
4852
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4853
|
+
args[_key] = arguments[_key];
|
|
4837
4854
|
}
|
|
4838
4855
|
|
|
4839
|
-
_this =
|
|
4856
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4840
4857
|
|
|
4841
4858
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4842
4859
|
|
|
4843
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4844
|
-
var _this$props;
|
|
4845
|
-
|
|
4846
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4847
|
-
});
|
|
4848
|
-
|
|
4849
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4850
|
-
var _this$props2;
|
|
4851
|
-
|
|
4852
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4853
|
-
});
|
|
4854
|
-
|
|
4855
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4856
|
-
var _this$props3;
|
|
4857
|
-
|
|
4858
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4859
|
-
});
|
|
4860
|
-
|
|
4861
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4862
|
-
var _this$props4;
|
|
4863
|
-
|
|
4864
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4865
|
-
});
|
|
4866
|
-
|
|
4867
4860
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4868
4861
|
_this.callPlayer('mute');
|
|
4869
4862
|
});
|
|
@@ -4885,13 +4878,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4885
4878
|
value: function load(url) {
|
|
4886
4879
|
var _this2 = this;
|
|
4887
4880
|
|
|
4888
|
-
var _this$
|
|
4889
|
-
playing = _this$
|
|
4890
|
-
muted = _this$
|
|
4891
|
-
controls = _this$
|
|
4892
|
-
_onReady = _this$
|
|
4893
|
-
|
|
4894
|
-
|
|
4881
|
+
var _this$props = this.props,
|
|
4882
|
+
playing = _this$props.playing,
|
|
4883
|
+
muted = _this$props.muted,
|
|
4884
|
+
controls = _this$props.controls,
|
|
4885
|
+
_onReady = _this$props.onReady,
|
|
4886
|
+
onPlay = _this$props.onPlay,
|
|
4887
|
+
onPause = _this$props.onPause,
|
|
4888
|
+
onSeek = _this$props.onSeek,
|
|
4889
|
+
onEnded = _this$props.onEnded,
|
|
4890
|
+
config = _this$props.config,
|
|
4891
|
+
onError = _this$props.onError;
|
|
4895
4892
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4896
4893
|
window._wq = window._wq || [];
|
|
4897
4894
|
|
|
@@ -4908,28 +4905,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4908
4905
|
|
|
4909
4906
|
_this2.unbind();
|
|
4910
4907
|
|
|
4911
|
-
_this2.player.bind('play',
|
|
4908
|
+
_this2.player.bind('play', onPlay);
|
|
4912
4909
|
|
|
4913
|
-
_this2.player.bind('pause',
|
|
4910
|
+
_this2.player.bind('pause', onPause);
|
|
4914
4911
|
|
|
4915
|
-
_this2.player.bind('seek',
|
|
4912
|
+
_this2.player.bind('seek', onSeek);
|
|
4916
4913
|
|
|
4917
|
-
_this2.player.bind('end',
|
|
4914
|
+
_this2.player.bind('end', onEnded);
|
|
4918
4915
|
|
|
4919
4916
|
_onReady();
|
|
4920
4917
|
}
|
|
4921
4918
|
});
|
|
4922
4919
|
}, onError);
|
|
4923
4920
|
}
|
|
4924
|
-
}, {
|
|
4925
|
-
key: "unbind",
|
|
4926
|
-
value: function unbind() {
|
|
4927
|
-
this.player.unbind('play', this.onPlay);
|
|
4928
|
-
this.player.unbind('pause', this.onPause);
|
|
4929
|
-
this.player.unbind('seek', this.onSeek);
|
|
4930
|
-
this.player.unbind('end', this.onEnded);
|
|
4931
|
-
} // Proxy methods to prevent listener leaks
|
|
4932
|
-
|
|
4933
4921
|
}, {
|
|
4934
4922
|
key: "play",
|
|
4935
4923
|
value: function play() {
|
|
@@ -4940,6 +4928,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4940
4928
|
value: function pause() {
|
|
4941
4929
|
this.callPlayer('pause');
|
|
4942
4930
|
}
|
|
4931
|
+
}, {
|
|
4932
|
+
key: "unbind",
|
|
4933
|
+
value: function unbind() {
|
|
4934
|
+
var _this$props2 = this.props,
|
|
4935
|
+
onPlay = _this$props2.onPlay,
|
|
4936
|
+
onPause = _this$props2.onPause,
|
|
4937
|
+
onSeek = _this$props2.onSeek,
|
|
4938
|
+
onEnded = _this$props2.onEnded;
|
|
4939
|
+
this.player.unbind('play', onPlay);
|
|
4940
|
+
this.player.unbind('pause', onPause);
|
|
4941
|
+
this.player.unbind('seek', onSeek);
|
|
4942
|
+
this.player.unbind('end', onEnded);
|
|
4943
|
+
}
|
|
4943
4944
|
}, {
|
|
4944
4945
|
key: "stop",
|
|
4945
4946
|
value: function stop() {
|
|
@@ -4985,7 +4986,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4985
4986
|
width: '100%',
|
|
4986
4987
|
height: '100%'
|
|
4987
4988
|
};
|
|
4988
|
-
return
|
|
4989
|
+
return _react["default"].createElement("div", {
|
|
4989
4990
|
key: id,
|
|
4990
4991
|
className: className,
|
|
4991
4992
|
style: style
|
|
@@ -5045,16 +5046,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5045
5046
|
|
|
5046
5047
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5047
5048
|
|
|
5048
|
-
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); }; }
|
|
5049
|
-
|
|
5050
5049
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5051
5050
|
|
|
5052
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5053
|
-
|
|
5054
|
-
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; } }
|
|
5055
|
-
|
|
5056
5051
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5057
5052
|
|
|
5053
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5054
|
+
|
|
5058
5055
|
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); }
|
|
5059
5056
|
|
|
5060
5057
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5067,12 +5064,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5067
5064
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5068
5065
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5069
5066
|
|
|
5070
|
-
var Twitch =
|
|
5067
|
+
var Twitch =
|
|
5068
|
+
/*#__PURE__*/
|
|
5069
|
+
function (_Component) {
|
|
5071
5070
|
_inherits(Twitch, _Component);
|
|
5072
5071
|
|
|
5073
|
-
var _super = _createSuper(Twitch);
|
|
5074
|
-
|
|
5075
5072
|
function Twitch() {
|
|
5073
|
+
var _getPrototypeOf2;
|
|
5074
|
+
|
|
5076
5075
|
var _this;
|
|
5077
5076
|
|
|
5078
5077
|
_classCallCheck(this, Twitch);
|
|
@@ -5081,7 +5080,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5081
5080
|
args[_key] = arguments[_key];
|
|
5082
5081
|
}
|
|
5083
5082
|
|
|
5084
|
-
_this =
|
|
5083
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5085
5084
|
|
|
5086
5085
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5087
5086
|
|
|
@@ -5202,7 +5201,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5202
5201
|
width: '100%',
|
|
5203
5202
|
height: '100%'
|
|
5204
5203
|
};
|
|
5205
|
-
return
|
|
5204
|
+
return _react["default"].createElement("div", {
|
|
5206
5205
|
style: style,
|
|
5207
5206
|
id: this.playerID
|
|
5208
5207
|
});
|
|
@@ -5255,15 +5254,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5255
5254
|
|
|
5256
5255
|
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; }
|
|
5257
5256
|
|
|
5258
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5259
|
-
|
|
5260
|
-
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."); }
|
|
5261
|
-
|
|
5262
|
-
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); }
|
|
5257
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5263
5258
|
|
|
5264
|
-
function
|
|
5259
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5265
5260
|
|
|
5266
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5261
|
+
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; }
|
|
5267
5262
|
|
|
5268
5263
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5269
5264
|
|
|
@@ -5273,16 +5268,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5273
5268
|
|
|
5274
5269
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5275
5270
|
|
|
5276
|
-
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); }; }
|
|
5277
|
-
|
|
5278
5271
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5279
5272
|
|
|
5280
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5281
|
-
|
|
5282
|
-
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; } }
|
|
5283
|
-
|
|
5284
5273
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5285
5274
|
|
|
5275
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5276
|
+
|
|
5286
5277
|
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); }
|
|
5287
5278
|
|
|
5288
5279
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5294,12 +5285,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5294
5285
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5295
5286
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5296
5287
|
|
|
5297
|
-
var DailyMotion =
|
|
5288
|
+
var DailyMotion =
|
|
5289
|
+
/*#__PURE__*/
|
|
5290
|
+
function (_Component) {
|
|
5298
5291
|
_inherits(DailyMotion, _Component);
|
|
5299
5292
|
|
|
5300
|
-
var _super = _createSuper(DailyMotion);
|
|
5301
|
-
|
|
5302
5293
|
function DailyMotion() {
|
|
5294
|
+
var _getPrototypeOf2;
|
|
5295
|
+
|
|
5303
5296
|
var _this;
|
|
5304
5297
|
|
|
5305
5298
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5308,7 +5301,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5308
5301
|
args[_key] = arguments[_key];
|
|
5309
5302
|
}
|
|
5310
5303
|
|
|
5311
|
-
_this =
|
|
5304
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5312
5305
|
|
|
5313
5306
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5314
5307
|
|
|
@@ -5437,9 +5430,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5437
5430
|
height: '100%',
|
|
5438
5431
|
display: display
|
|
5439
5432
|
};
|
|
5440
|
-
return
|
|
5433
|
+
return _react["default"].createElement("div", {
|
|
5441
5434
|
style: style
|
|
5442
|
-
},
|
|
5435
|
+
}, _react["default"].createElement("div", {
|
|
5443
5436
|
ref: this.ref
|
|
5444
5437
|
}));
|
|
5445
5438
|
}
|
|
@@ -5497,16 +5490,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5497
5490
|
|
|
5498
5491
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5499
5492
|
|
|
5500
|
-
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); }; }
|
|
5501
|
-
|
|
5502
5493
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5503
5494
|
|
|
5504
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5505
|
-
|
|
5506
|
-
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; } }
|
|
5507
|
-
|
|
5508
5495
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5509
5496
|
|
|
5497
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5498
|
+
|
|
5510
5499
|
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); }
|
|
5511
5500
|
|
|
5512
5501
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5517,12 +5506,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5517
5506
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5518
5507
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5519
5508
|
|
|
5520
|
-
var Mixcloud =
|
|
5509
|
+
var Mixcloud =
|
|
5510
|
+
/*#__PURE__*/
|
|
5511
|
+
function (_Component) {
|
|
5521
5512
|
_inherits(Mixcloud, _Component);
|
|
5522
5513
|
|
|
5523
|
-
var _super = _createSuper(Mixcloud);
|
|
5524
|
-
|
|
5525
5514
|
function Mixcloud() {
|
|
5515
|
+
var _getPrototypeOf2;
|
|
5516
|
+
|
|
5526
5517
|
var _this;
|
|
5527
5518
|
|
|
5528
5519
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5531,7 +5522,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5531
5522
|
args[_key] = arguments[_key];
|
|
5532
5523
|
}
|
|
5533
5524
|
|
|
5534
|
-
_this =
|
|
5525
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5535
5526
|
|
|
5536
5527
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5537
5528
|
|
|
@@ -5634,7 +5625,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5634
5625
|
})); // We have to give the iframe a key here to prevent a
|
|
5635
5626
|
// weird dialog appearing when loading a new track
|
|
5636
5627
|
|
|
5637
|
-
return
|
|
5628
|
+
return _react["default"].createElement("iframe", {
|
|
5638
5629
|
key: id,
|
|
5639
5630
|
ref: this.ref,
|
|
5640
5631
|
style: style,
|
|
@@ -5694,33 +5685,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5694
5685
|
|
|
5695
5686
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5696
5687
|
|
|
5697
|
-
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); }; }
|
|
5698
|
-
|
|
5699
5688
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5700
5689
|
|
|
5701
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5702
|
-
|
|
5703
|
-
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; } }
|
|
5704
|
-
|
|
5705
5690
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5706
5691
|
|
|
5692
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5693
|
+
|
|
5707
5694
|
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); }
|
|
5708
5695
|
|
|
5709
5696
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5710
5697
|
|
|
5711
5698
|
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; }
|
|
5712
5699
|
|
|
5713
|
-
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; } } }; }
|
|
5714
|
-
|
|
5715
|
-
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); }
|
|
5716
|
-
|
|
5717
|
-
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; }
|
|
5718
|
-
|
|
5719
5700
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5720
5701
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5721
5702
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5722
5703
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5723
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5704
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5724
5705
|
var HLS_GLOBAL = 'Hls';
|
|
5725
5706
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5726
5707
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5729,11 +5710,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5729
5710
|
|
|
5730
5711
|
function canPlay(url) {
|
|
5731
5712
|
if (url instanceof Array) {
|
|
5732
|
-
var
|
|
5733
|
-
|
|
5713
|
+
var _iteratorNormalCompletion = true;
|
|
5714
|
+
var _didIteratorError = false;
|
|
5715
|
+
var _iteratorError = undefined;
|
|
5734
5716
|
|
|
5735
5717
|
try {
|
|
5736
|
-
for (_iterator.
|
|
5718
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5737
5719
|
var item = _step.value;
|
|
5738
5720
|
|
|
5739
5721
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5745,9 +5727,18 @@ function canPlay(url) {
|
|
|
5745
5727
|
}
|
|
5746
5728
|
}
|
|
5747
5729
|
} catch (err) {
|
|
5748
|
-
|
|
5730
|
+
_didIteratorError = true;
|
|
5731
|
+
_iteratorError = err;
|
|
5749
5732
|
} finally {
|
|
5750
|
-
|
|
5733
|
+
try {
|
|
5734
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5735
|
+
_iterator["return"]();
|
|
5736
|
+
}
|
|
5737
|
+
} finally {
|
|
5738
|
+
if (_didIteratorError) {
|
|
5739
|
+
throw _iteratorError;
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5751
5742
|
}
|
|
5752
5743
|
|
|
5753
5744
|
return false;
|
|
@@ -5771,12 +5762,14 @@ function canEnablePIP(url) {
|
|
|
5771
5762
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5772
5763
|
}
|
|
5773
5764
|
|
|
5774
|
-
var FilePlayer =
|
|
5765
|
+
var FilePlayer =
|
|
5766
|
+
/*#__PURE__*/
|
|
5767
|
+
function (_Component) {
|
|
5775
5768
|
_inherits(FilePlayer, _Component);
|
|
5776
5769
|
|
|
5777
|
-
var _super = _createSuper(FilePlayer);
|
|
5778
|
-
|
|
5779
5770
|
function FilePlayer() {
|
|
5771
|
+
var _getPrototypeOf2;
|
|
5772
|
+
|
|
5780
5773
|
var _this;
|
|
5781
5774
|
|
|
5782
5775
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5785,7 +5778,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5785
5778
|
_args[_key] = arguments[_key];
|
|
5786
5779
|
}
|
|
5787
5780
|
|
|
5788
|
-
_this =
|
|
5781
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5789
5782
|
|
|
5790
5783
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5791
5784
|
var _this$props;
|
|
@@ -5872,19 +5865,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5872
5865
|
|
|
5873
5866
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5874
5867
|
if (typeof source === 'string') {
|
|
5875
|
-
return
|
|
5868
|
+
return _react["default"].createElement("source", {
|
|
5876
5869
|
key: index,
|
|
5877
5870
|
src: source
|
|
5878
5871
|
});
|
|
5879
5872
|
}
|
|
5880
5873
|
|
|
5881
|
-
return
|
|
5874
|
+
return _react["default"].createElement("source", _extends({
|
|
5882
5875
|
key: index
|
|
5883
5876
|
}, source));
|
|
5884
5877
|
});
|
|
5885
5878
|
|
|
5886
5879
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5887
|
-
return
|
|
5880
|
+
return _react["default"].createElement("track", _extends({
|
|
5888
5881
|
key: index
|
|
5889
5882
|
}, track));
|
|
5890
5883
|
});
|
|
@@ -5922,10 +5915,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5922
5915
|
key: "componentWillUnmount",
|
|
5923
5916
|
value: function componentWillUnmount() {
|
|
5924
5917
|
this.removeListeners(this.player);
|
|
5925
|
-
|
|
5926
|
-
if (this.hls) {
|
|
5927
|
-
this.hls.destroy();
|
|
5928
|
-
}
|
|
5929
5918
|
}
|
|
5930
5919
|
}, {
|
|
5931
5920
|
key: "addListeners",
|
|
@@ -6056,6 +6045,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6056
6045
|
value: function stop() {
|
|
6057
6046
|
this.player.removeAttribute('src');
|
|
6058
6047
|
|
|
6048
|
+
if (this.hls) {
|
|
6049
|
+
this.hls.destroy();
|
|
6050
|
+
}
|
|
6051
|
+
|
|
6059
6052
|
if (this.dash) {
|
|
6060
6053
|
this.dash.reset();
|
|
6061
6054
|
}
|
|
@@ -6167,7 +6160,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6167
6160
|
width: width === 'auto' ? width : '100%',
|
|
6168
6161
|
height: height === 'auto' ? height : '100%'
|
|
6169
6162
|
};
|
|
6170
|
-
return
|
|
6163
|
+
return _react["default"].createElement(Element, _extends({
|
|
6171
6164
|
ref: this.ref,
|
|
6172
6165
|
src: this.getSource(url),
|
|
6173
6166
|
style: style,
|
|
@@ -6257,16 +6250,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6257
6250
|
|
|
6258
6251
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6259
6252
|
|
|
6260
|
-
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); }; }
|
|
6261
|
-
|
|
6262
6253
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6263
6254
|
|
|
6264
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6265
|
-
|
|
6266
|
-
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; } }
|
|
6267
|
-
|
|
6268
6255
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6269
6256
|
|
|
6257
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6258
|
+
|
|
6270
6259
|
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); }
|
|
6271
6260
|
|
|
6272
6261
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6275,12 +6264,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6275
6264
|
|
|
6276
6265
|
var ICON_SIZE = '64px';
|
|
6277
6266
|
|
|
6278
|
-
var Preview =
|
|
6267
|
+
var Preview =
|
|
6268
|
+
/*#__PURE__*/
|
|
6269
|
+
function (_Component) {
|
|
6279
6270
|
_inherits(Preview, _Component);
|
|
6280
6271
|
|
|
6281
|
-
var _super = _createSuper(Preview);
|
|
6282
|
-
|
|
6283
6272
|
function Preview() {
|
|
6273
|
+
var _getPrototypeOf2;
|
|
6274
|
+
|
|
6284
6275
|
var _this;
|
|
6285
6276
|
|
|
6286
6277
|
_classCallCheck(this, Preview);
|
|
@@ -6289,7 +6280,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6289
6280
|
args[_key] = arguments[_key];
|
|
6290
6281
|
}
|
|
6291
6282
|
|
|
6292
|
-
_this =
|
|
6283
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6293
6284
|
|
|
6294
6285
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6295
6286
|
|
|
@@ -6387,15 +6378,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6387
6378
|
}
|
|
6388
6379
|
};
|
|
6389
6380
|
|
|
6390
|
-
var defaultPlayIcon =
|
|
6381
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6391
6382
|
style: styles.shadow,
|
|
6392
6383
|
className: "react-player__shadow"
|
|
6393
|
-
},
|
|
6384
|
+
}, _react["default"].createElement("div", {
|
|
6394
6385
|
style: styles.playIcon,
|
|
6395
6386
|
className: "react-player__play-icon"
|
|
6396
6387
|
}));
|
|
6397
6388
|
|
|
6398
|
-
return
|
|
6389
|
+
return _react["default"].createElement("div", {
|
|
6399
6390
|
style: styles.preview,
|
|
6400
6391
|
className: "react-player__preview",
|
|
6401
6392
|
onClick: onClick
|
|
@@ -6432,12 +6423,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6432
6423
|
|
|
6433
6424
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6434
6425
|
|
|
6435
|
-
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; } } }; }
|
|
6436
|
-
|
|
6437
|
-
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); }
|
|
6438
|
-
|
|
6439
|
-
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; }
|
|
6440
|
-
|
|
6441
6426
|
var PRELOAD_PLAYERS = [{
|
|
6442
6427
|
Player: YouTube_1.YouTube,
|
|
6443
6428
|
configKey: 'youtube',
|
|
@@ -6458,16 +6443,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6458
6443
|
|
|
6459
6444
|
function renderPreloadPlayers(url, controls, config) {
|
|
6460
6445
|
var players = [];
|
|
6461
|
-
|
|
6462
|
-
var
|
|
6463
|
-
|
|
6446
|
+
var _iteratorNormalCompletion = true;
|
|
6447
|
+
var _didIteratorError = false;
|
|
6448
|
+
var _iteratorError = undefined;
|
|
6464
6449
|
|
|
6465
6450
|
try {
|
|
6466
|
-
for (_iterator.
|
|
6451
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6467
6452
|
var player = _step.value;
|
|
6468
6453
|
|
|
6469
6454
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6470
|
-
players.push(
|
|
6455
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6471
6456
|
key: player.Player.displayName,
|
|
6472
6457
|
activePlayer: player.Player,
|
|
6473
6458
|
url: player.url,
|
|
@@ -6479,9 +6464,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6479
6464
|
}
|
|
6480
6465
|
}
|
|
6481
6466
|
} catch (err) {
|
|
6482
|
-
|
|
6467
|
+
_didIteratorError = true;
|
|
6468
|
+
_iteratorError = err;
|
|
6483
6469
|
} finally {
|
|
6484
|
-
|
|
6470
|
+
try {
|
|
6471
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6472
|
+
_iterator["return"]();
|
|
6473
|
+
}
|
|
6474
|
+
} finally {
|
|
6475
|
+
if (_didIteratorError) {
|
|
6476
|
+
throw _iteratorError;
|
|
6477
|
+
}
|
|
6478
|
+
}
|
|
6485
6479
|
}
|
|
6486
6480
|
|
|
6487
6481
|
return players;
|
|
@@ -6605,17 +6599,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6605
6599
|
|
|
6606
6600
|
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); }
|
|
6607
6601
|
|
|
6608
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6609
|
-
|
|
6610
|
-
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."); }
|
|
6611
|
-
|
|
6612
|
-
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); }
|
|
6602
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6613
6603
|
|
|
6614
|
-
function
|
|
6604
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6615
6605
|
|
|
6616
|
-
function
|
|
6606
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6617
6607
|
|
|
6618
|
-
function
|
|
6608
|
+
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; } }
|
|
6619
6609
|
|
|
6620
6610
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6621
6611
|
|
|
@@ -6623,16 +6613,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6623
6613
|
|
|
6624
6614
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6625
6615
|
|
|
6626
|
-
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); }; }
|
|
6627
|
-
|
|
6628
6616
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6629
6617
|
|
|
6630
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6631
|
-
|
|
6632
|
-
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; } }
|
|
6633
|
-
|
|
6634
6618
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6635
6619
|
|
|
6620
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6621
|
+
|
|
6636
6622
|
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); }
|
|
6637
6623
|
|
|
6638
6624
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6642,12 +6628,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6642
6628
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6643
6629
|
var customPlayers = [];
|
|
6644
6630
|
|
|
6645
|
-
var ReactPlayer =
|
|
6631
|
+
var ReactPlayer =
|
|
6632
|
+
/*#__PURE__*/
|
|
6633
|
+
function (_Component) {
|
|
6646
6634
|
_inherits(ReactPlayer, _Component);
|
|
6647
6635
|
|
|
6648
|
-
var _super = _createSuper(ReactPlayer);
|
|
6649
|
-
|
|
6650
6636
|
function ReactPlayer() {
|
|
6637
|
+
var _getPrototypeOf2;
|
|
6638
|
+
|
|
6651
6639
|
var _this;
|
|
6652
6640
|
|
|
6653
6641
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6656,7 +6644,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6656
6644
|
args[_key] = arguments[_key];
|
|
6657
6645
|
}
|
|
6658
6646
|
|
|
6659
|
-
_this =
|
|
6647
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6660
6648
|
|
|
6661
6649
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6662
6650
|
|
|
@@ -6767,7 +6755,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6767
6755
|
key: "renderActivePlayer",
|
|
6768
6756
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6769
6757
|
if (!url) return null;
|
|
6770
|
-
return
|
|
6758
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6771
6759
|
key: activePlayer.displayName,
|
|
6772
6760
|
ref: this.activePlayerRef,
|
|
6773
6761
|
config: this.config,
|
|
@@ -6804,14 +6792,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6804
6792
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6805
6793
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6806
6794
|
|
|
6807
|
-
var preview =
|
|
6795
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6808
6796
|
url: url,
|
|
6809
6797
|
light: light,
|
|
6810
6798
|
playIcon: playIcon,
|
|
6811
6799
|
onClick: this.handleClickPreview
|
|
6812
6800
|
});
|
|
6813
6801
|
|
|
6814
|
-
return
|
|
6802
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6815
6803
|
ref: this.wrapperRef,
|
|
6816
6804
|
style: _objectSpread({}, style, {
|
|
6817
6805
|
width: width,
|
|
@@ -7359,7 +7347,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7359
7347
|
{ className: 'mb-3' },
|
|
7360
7348
|
nodes.videos[series - 1].title
|
|
7361
7349
|
),
|
|
7362
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7350
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7363
7351
|
),
|
|
7364
7352
|
React__default.createElement(
|
|
7365
7353
|
'style',
|
|
@@ -7487,7 +7475,7 @@ var Poll = function Poll(_ref) {
|
|
|
7487
7475
|
);
|
|
7488
7476
|
};
|
|
7489
7477
|
|
|
7490
|
-
var numberOfPaginations =
|
|
7478
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7491
7479
|
|
|
7492
7480
|
var Quiz = function Quiz(_ref) {
|
|
7493
7481
|
var quizzes = _ref.quizzes,
|
|
@@ -7600,7 +7588,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7600
7588
|
var renderPagination = function renderPagination() {
|
|
7601
7589
|
return React__default.createElement(
|
|
7602
7590
|
Pagination,
|
|
7603
|
-
{ className: 'p-0 m-0', size:
|
|
7591
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7604
7592
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7605
7593
|
return changePage('first');
|
|
7606
7594
|
}, disabled: currentPage === 1 }),
|
|
@@ -7934,7 +7922,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7934
7922
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7935
7923
|
React__default.createElement(
|
|
7936
7924
|
'a',
|
|
7937
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7925
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7938
7926
|
React__default.createElement(
|
|
7939
7927
|
'div',
|
|
7940
7928
|
{ className: 'multi-figure-image-container' },
|