@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
|
@@ -9,22 +9,22 @@ require('./_library-dd23b178.js');
|
|
|
9
9
|
require('./_iter-detect-4d0352f8.js');
|
|
10
10
|
var from = require('./from-ea347372.js');
|
|
11
11
|
require('./_object-pie-68c5bcbc.js');
|
|
12
|
-
var _extends = require('./extends-60837c34.js');
|
|
12
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
13
13
|
require('./web.dom.iterable-43c3e277.js');
|
|
14
14
|
require('./typeof-1869832c.js');
|
|
15
15
|
require('./_is-array-754e012d.js');
|
|
16
16
|
var React = require('react');
|
|
17
17
|
var React__default = _interopDefault(React);
|
|
18
|
-
var index = require('./index-
|
|
18
|
+
var index = require('./index-fa3cec70.js');
|
|
19
19
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
20
20
|
var Router = require('next/router');
|
|
21
21
|
var Router__default = _interopDefault(Router);
|
|
22
22
|
require('./isSymbol-488934a7.js');
|
|
23
23
|
require('./debounce-32e57002.js');
|
|
24
24
|
require('react-dom');
|
|
25
|
-
var index$1 = require('./index-
|
|
25
|
+
var index$1 = require('./index-be0c82be.js');
|
|
26
26
|
var index$2 = require('./index-fa0fb52c.js');
|
|
27
|
-
var main = require('./main-
|
|
27
|
+
var main = require('./main-88348b15.js');
|
|
28
28
|
var entities = require('./entities-310b46ee.js');
|
|
29
29
|
var slicedToArray = require('./slicedToArray-8063ee51.js');
|
|
30
30
|
require('./stringify-7c5aff47.js');
|
|
@@ -32,7 +32,7 @@ require('./asyncToGenerator-8e707718.js');
|
|
|
32
32
|
require('./_set-species-4458e975.js');
|
|
33
33
|
var Segment = require('./beam-d22818d3.js');
|
|
34
34
|
var AdSlot = require('./AdSlot.js');
|
|
35
|
-
var BlockContent = require('./BlockContent-
|
|
35
|
+
var BlockContent = require('./BlockContent-77f81ffc.js');
|
|
36
36
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
37
37
|
var GroupDeck = require('./GroupDeck.js');
|
|
38
38
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -104,18 +104,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
var isArray = Array.isArray;
|
|
108
|
+
var keyList = Object.keys;
|
|
109
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
110
110
|
|
|
111
111
|
var fastDeepEqual = function equal(a, b) {
|
|
112
112
|
if (a === b) return true;
|
|
113
113
|
|
|
114
114
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
115
|
-
|
|
115
|
+
var arrA = isArray(a)
|
|
116
|
+
, arrB = isArray(b)
|
|
117
|
+
, i
|
|
118
|
+
, length
|
|
119
|
+
, key;
|
|
116
120
|
|
|
117
|
-
|
|
118
|
-
if (Array.isArray(a)) {
|
|
121
|
+
if (arrA && arrB) {
|
|
119
122
|
length = a.length;
|
|
120
123
|
if (length != b.length) return false;
|
|
121
124
|
for (i = length; i-- !== 0;)
|
|
@@ -123,29 +126,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
123
126
|
return true;
|
|
124
127
|
}
|
|
125
128
|
|
|
129
|
+
if (arrA != arrB) return false;
|
|
126
130
|
|
|
131
|
+
var dateA = a instanceof Date
|
|
132
|
+
, dateB = b instanceof Date;
|
|
133
|
+
if (dateA != dateB) return false;
|
|
134
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
127
135
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
136
|
+
var regexpA = a instanceof RegExp
|
|
137
|
+
, regexpB = b instanceof RegExp;
|
|
138
|
+
if (regexpA != regexpB) return false;
|
|
139
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
131
140
|
|
|
132
|
-
keys =
|
|
141
|
+
var keys = keyList(a);
|
|
133
142
|
length = keys.length;
|
|
134
|
-
|
|
143
|
+
|
|
144
|
+
if (length !== keyList(b).length)
|
|
145
|
+
return false;
|
|
135
146
|
|
|
136
147
|
for (i = length; i-- !== 0;)
|
|
137
|
-
if (!
|
|
148
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
138
149
|
|
|
139
150
|
for (i = length; i-- !== 0;) {
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
key = keys[i];
|
|
142
152
|
if (!equal(a[key], b[key])) return false;
|
|
143
153
|
}
|
|
144
154
|
|
|
145
155
|
return true;
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
// true if both NaN, false otherwise
|
|
149
158
|
return a!==a && b!==b;
|
|
150
159
|
};
|
|
151
160
|
|
|
@@ -1568,235 +1577,199 @@ module.exports = exports['default'];
|
|
|
1568
1577
|
|
|
1569
1578
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1570
1579
|
|
|
1571
|
-
function
|
|
1572
|
-
|
|
1573
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1574
|
-
|
|
1575
|
-
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); } }
|
|
1576
|
-
|
|
1577
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1580
|
+
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; }; }();
|
|
1578
1581
|
|
|
1579
|
-
|
|
1582
|
+
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; };
|
|
1580
1583
|
|
|
1581
|
-
function
|
|
1582
|
-
|
|
1583
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1584
|
-
|
|
1585
|
-
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; } }
|
|
1586
|
-
|
|
1587
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1588
|
-
|
|
1589
|
-
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); }
|
|
1590
|
-
|
|
1591
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1584
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1592
1585
|
|
|
1593
|
-
function
|
|
1586
|
+
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; }
|
|
1594
1587
|
|
|
1595
|
-
function
|
|
1588
|
+
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; }
|
|
1596
1589
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* @param {Object}
|
|
1602
|
-
* @param {Object} props
|
|
1590
|
+
/**
|
|
1591
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {Object} prevProps
|
|
1594
|
+
* @param {Object} props
|
|
1603
1595
|
*/
|
|
1604
|
-
|
|
1605
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1606
1597
|
// A changing video should always trigger an update
|
|
1607
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1608
1599
|
return true;
|
|
1609
|
-
}
|
|
1610
|
-
// update.
|
|
1611
|
-
|
|
1600
|
+
}
|
|
1612
1601
|
|
|
1602
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
// update.
|
|
1613
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1614
1605
|
var vars = props.opts.playerVars || {};
|
|
1606
|
+
|
|
1615
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1616
1608
|
}
|
|
1617
|
-
/**
|
|
1618
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1619
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1620
|
-
* player reset is necessary.
|
|
1621
|
-
*
|
|
1622
|
-
* @param {Object} opts
|
|
1623
|
-
*/
|
|
1624
|
-
|
|
1625
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1616
|
+
*/
|
|
1626
1617
|
function filterResetOptions(opts) {
|
|
1627
|
-
return
|
|
1628
|
-
playerVars:
|
|
1618
|
+
return _extends({}, opts, {
|
|
1619
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1629
1620
|
autoplay: 0,
|
|
1630
1621
|
start: 0,
|
|
1631
1622
|
end: 0
|
|
1632
1623
|
})
|
|
1633
1624
|
});
|
|
1634
1625
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1637
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1638
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1639
|
-
* those.
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object} prevProps
|
|
1642
|
-
* @param {Object} props
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1629
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1630
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1631
|
+
* those.
|
|
1632
|
+
*
|
|
1633
|
+
* @param {Object} prevProps
|
|
1634
|
+
* @param {Object} props
|
|
1635
|
+
*/
|
|
1646
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1647
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1648
1638
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* Check whether a props change should result in an id or className update.
|
|
1651
|
-
*
|
|
1652
|
-
* @param {Object} prevProps
|
|
1653
|
-
* @param {Object} props
|
|
1654
|
-
*/
|
|
1655
|
-
|
|
1656
1639
|
|
|
1640
|
+
/**
|
|
1641
|
+
* Check whether a props change should result in an id or className update.
|
|
1642
|
+
*
|
|
1643
|
+
* @param {Object} prevProps
|
|
1644
|
+
* @param {Object} props
|
|
1645
|
+
*/
|
|
1657
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1658
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1659
1648
|
}
|
|
1660
1649
|
|
|
1661
|
-
var YouTube =
|
|
1650
|
+
var YouTube = function (_React$Component) {
|
|
1662
1651
|
_inherits(YouTube, _React$Component);
|
|
1663
1652
|
|
|
1664
|
-
var _super = _createSuper(YouTube);
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1668
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1669
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1670
|
-
*/
|
|
1671
1653
|
function YouTube(props) {
|
|
1672
|
-
var _this;
|
|
1673
|
-
|
|
1674
1654
|
_classCallCheck(this, YouTube);
|
|
1675
1655
|
|
|
1676
|
-
_this =
|
|
1656
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerReady = function (event) {
|
|
1679
1659
|
return _this.props.onReady(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerError = function (event) {
|
|
1683
1663
|
return _this.props.onError(event);
|
|
1684
|
-
}
|
|
1664
|
+
};
|
|
1685
1665
|
|
|
1686
|
-
|
|
1666
|
+
_this.onPlayerStateChange = function (event) {
|
|
1687
1667
|
_this.props.onStateChange(event);
|
|
1688
|
-
|
|
1689
1668
|
switch (event.data) {
|
|
1669
|
+
|
|
1690
1670
|
case YouTube.PlayerState.ENDED:
|
|
1691
1671
|
_this.props.onEnd(event);
|
|
1692
|
-
|
|
1693
1672
|
break;
|
|
1694
1673
|
|
|
1695
1674
|
case YouTube.PlayerState.PLAYING:
|
|
1696
1675
|
_this.props.onPlay(event);
|
|
1697
|
-
|
|
1698
1676
|
break;
|
|
1699
1677
|
|
|
1700
1678
|
case YouTube.PlayerState.PAUSED:
|
|
1701
1679
|
_this.props.onPause(event);
|
|
1702
|
-
|
|
1703
1680
|
break;
|
|
1704
1681
|
}
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackRateChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1712
1689
|
return _this.props.onPlaybackQualityChange(event);
|
|
1713
|
-
}
|
|
1690
|
+
};
|
|
1714
1691
|
|
|
1715
|
-
|
|
1692
|
+
_this.createPlayer = function () {
|
|
1716
1693
|
// do not attempt to create a player server-side, it won't work
|
|
1717
|
-
if (typeof document === 'undefined') return;
|
|
1718
|
-
|
|
1719
|
-
var playerOpts =
|
|
1694
|
+
if (typeof document === 'undefined') return;
|
|
1695
|
+
// create player
|
|
1696
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1720
1697
|
// preload the `videoId` video if one is already given
|
|
1721
1698
|
videoId: _this.props.videoId
|
|
1722
1699
|
});
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1700
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1701
|
+
// attach event handlers
|
|
1726
1702
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1727
|
-
|
|
1728
1703
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1729
|
-
|
|
1730
1704
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1731
|
-
|
|
1732
1705
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1733
|
-
|
|
1734
1706
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.resetPlayer = function () {
|
|
1738
1710
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1739
|
-
}
|
|
1711
|
+
};
|
|
1740
1712
|
|
|
1741
|
-
|
|
1713
|
+
_this.updatePlayer = function () {
|
|
1742
1714
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1743
1715
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1744
1716
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1745
1717
|
});
|
|
1746
|
-
}
|
|
1718
|
+
};
|
|
1747
1719
|
|
|
1748
|
-
|
|
1720
|
+
_this.updateVideo = function () {
|
|
1749
1721
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1750
1722
|
_this.internalPlayer.stopVideo();
|
|
1751
|
-
|
|
1752
1723
|
return;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1724
|
+
}
|
|
1755
1725
|
|
|
1726
|
+
// set queueing options
|
|
1756
1727
|
var autoplay = false;
|
|
1757
1728
|
var opts = {
|
|
1758
1729
|
videoId: _this.props.videoId
|
|
1759
1730
|
};
|
|
1760
|
-
|
|
1761
1731
|
if ('playerVars' in _this.props.opts) {
|
|
1762
1732
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
-
|
|
1764
1733
|
if ('start' in _this.props.opts.playerVars) {
|
|
1765
1734
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1766
1735
|
}
|
|
1767
|
-
|
|
1768
1736
|
if ('end' in _this.props.opts.playerVars) {
|
|
1769
1737
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1770
1738
|
}
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1739
|
+
}
|
|
1773
1740
|
|
|
1741
|
+
// if autoplay is enabled loadVideoById
|
|
1774
1742
|
if (autoplay) {
|
|
1775
1743
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
-
|
|
1777
1744
|
return;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1745
|
+
}
|
|
1746
|
+
// default behaviour just cues the video
|
|
1781
1747
|
_this.internalPlayer.cueVideoById(opts);
|
|
1782
|
-
}
|
|
1748
|
+
};
|
|
1783
1749
|
|
|
1784
|
-
|
|
1750
|
+
_this.refContainer = function (container) {
|
|
1785
1751
|
_this.container = container;
|
|
1786
|
-
}
|
|
1752
|
+
};
|
|
1787
1753
|
|
|
1788
1754
|
_this.container = null;
|
|
1789
1755
|
_this.internalPlayer = null;
|
|
1790
1756
|
return _this;
|
|
1791
1757
|
}
|
|
1792
1758
|
|
|
1759
|
+
/**
|
|
1760
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1761
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1762
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1763
|
+
*/
|
|
1764
|
+
|
|
1765
|
+
|
|
1793
1766
|
_createClass(YouTube, [{
|
|
1794
|
-
key:
|
|
1767
|
+
key: 'componentDidMount',
|
|
1795
1768
|
value: function componentDidMount() {
|
|
1796
1769
|
this.createPlayer();
|
|
1797
1770
|
}
|
|
1798
1771
|
}, {
|
|
1799
|
-
key:
|
|
1772
|
+
key: 'componentDidUpdate',
|
|
1800
1773
|
value: function componentDidUpdate(prevProps) {
|
|
1801
1774
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1802
1775
|
this.updatePlayer();
|
|
@@ -1811,58 +1784,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1784
|
}
|
|
1812
1785
|
}
|
|
1813
1786
|
}, {
|
|
1814
|
-
key:
|
|
1787
|
+
key: 'componentWillUnmount',
|
|
1815
1788
|
value: function componentWillUnmount() {
|
|
1816
|
-
/**
|
|
1817
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1818
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
-
* this method isn't quick enough to reset the container element.
|
|
1789
|
+
/**
|
|
1790
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1791
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1792
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1793
|
+
* this method isn't quick enough to reset the container element.
|
|
1821
1794
|
*/
|
|
1822
1795
|
this.internalPlayer.destroy();
|
|
1823
1796
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1800
|
+
*
|
|
1801
|
+
* @param {Object} event
|
|
1802
|
+
* @param {Object} target - player object
|
|
1803
|
+
*/
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1808
|
+
*
|
|
1809
|
+
* @param {Object} event
|
|
1810
|
+
* @param {Integer} data - error type
|
|
1811
|
+
* @param {Object} target - player object
|
|
1812
|
+
*/
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1817
|
+
*
|
|
1818
|
+
* @param {Object} event
|
|
1819
|
+
* @param {Integer} data - status change type
|
|
1820
|
+
* @param {Object} target - actual YT player
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {Float} data - playback rate
|
|
1829
|
+
* @param {Object} target - actual YT player
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1835
|
+
*
|
|
1836
|
+
* @param {Object} event
|
|
1837
|
+
* @param {String} data - playback quality
|
|
1838
|
+
* @param {Object} target - actual YT player
|
|
1839
|
+
*/
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1844
|
+
*/
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1854
|
+
* React should update this automatically but since the Youtube Player API
|
|
1855
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1856
|
+
*/
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1861
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1862
|
+
* Youtube Player API methods to update the video.
|
|
1829
1863
|
*/
|
|
1830
1864
|
|
|
1831
1865
|
}, {
|
|
1832
|
-
key:
|
|
1866
|
+
key: 'render',
|
|
1833
1867
|
value: function render() {
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
id: this.props.id,
|
|
1838
|
-
|
|
1839
|
-
ref: this.refContainer
|
|
1840
|
-
}));
|
|
1868
|
+
return React__default.createElement(
|
|
1869
|
+
'div',
|
|
1870
|
+
{ className: this.props.containerClassName },
|
|
1871
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1872
|
+
);
|
|
1841
1873
|
}
|
|
1842
1874
|
}]);
|
|
1843
1875
|
|
|
1844
1876
|
return YouTube;
|
|
1845
1877
|
}(React__default.Component);
|
|
1846
1878
|
|
|
1847
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
-
UNSTARTED: -1,
|
|
1849
|
-
ENDED: 0,
|
|
1850
|
-
PLAYING: 1,
|
|
1851
|
-
PAUSED: 2,
|
|
1852
|
-
BUFFERING: 3,
|
|
1853
|
-
CUED: 5
|
|
1854
|
-
});
|
|
1855
|
-
|
|
1856
1879
|
YouTube.propTypes = {
|
|
1857
1880
|
videoId: PropTypes.string,
|
|
1881
|
+
|
|
1858
1882
|
// custom ID for player element
|
|
1859
1883
|
id: PropTypes.string,
|
|
1884
|
+
|
|
1860
1885
|
// custom class name for player element
|
|
1861
1886
|
className: PropTypes.string,
|
|
1862
1887
|
// custom class name for player container element
|
|
1863
1888
|
containerClassName: PropTypes.string,
|
|
1889
|
+
|
|
1864
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1865
1891
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1892
|
+
|
|
1866
1893
|
// event subscriptions
|
|
1867
1894
|
onReady: PropTypes.func,
|
|
1868
1895
|
onError: PropTypes.func,
|
|
@@ -1874,7 +1901,6 @@ YouTube.propTypes = {
|
|
|
1874
1901
|
onPlaybackQualityChange: PropTypes.func
|
|
1875
1902
|
};
|
|
1876
1903
|
YouTube.defaultProps = {
|
|
1877
|
-
videoId: null,
|
|
1878
1904
|
id: null,
|
|
1879
1905
|
className: null,
|
|
1880
1906
|
opts: {},
|
|
@@ -1888,6 +1914,14 @@ YouTube.defaultProps = {
|
|
|
1888
1914
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1889
1915
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1890
1916
|
};
|
|
1917
|
+
YouTube.PlayerState = {
|
|
1918
|
+
UNSTARTED: -1,
|
|
1919
|
+
ENDED: 0,
|
|
1920
|
+
PLAYING: 1,
|
|
1921
|
+
PAUSED: 2,
|
|
1922
|
+
BUFFERING: 3,
|
|
1923
|
+
CUED: 5
|
|
1924
|
+
};
|
|
1891
1925
|
|
|
1892
1926
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1893
1927
|
var url = _ref.url;
|
|
@@ -2148,7 +2182,7 @@ var Media = function Media(_ref) {
|
|
|
2148
2182
|
React__default.createElement(
|
|
2149
2183
|
'a',
|
|
2150
2184
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2151
|
-
React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2185
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2152
2186
|
caption && React__default.createElement(
|
|
2153
2187
|
reactBootstrap.Figure.Caption,
|
|
2154
2188
|
{ className: 'media-caption' },
|
|
@@ -2159,7 +2193,7 @@ var Media = function Media(_ref) {
|
|
|
2159
2193
|
} else if (caption && caption !== '') {
|
|
2160
2194
|
return React__default.createElement(
|
|
2161
2195
|
'a',
|
|
2162
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2196
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2163
2197
|
href: uploadDoc.asset.url + '?dl='
|
|
2164
2198
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2165
2199
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2722,17 +2756,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2722
2756
|
|
|
2723
2757
|
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; }
|
|
2724
2758
|
|
|
2725
|
-
function
|
|
2726
|
-
|
|
2727
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2759
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2728
2760
|
|
|
2729
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2761
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2730
2762
|
|
|
2731
|
-
function
|
|
2732
|
-
|
|
2733
|
-
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; }
|
|
2734
|
-
|
|
2735
|
-
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; }
|
|
2763
|
+
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; }
|
|
2736
2764
|
|
|
2737
2765
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2738
2766
|
|
|
@@ -2862,12 +2890,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2862
2890
|
|
|
2863
2891
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2864
2892
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2865
|
-
|
|
2866
|
-
var
|
|
2867
|
-
|
|
2893
|
+
var _iteratorNormalCompletion = true;
|
|
2894
|
+
var _didIteratorError = false;
|
|
2895
|
+
var _iteratorError = undefined;
|
|
2868
2896
|
|
|
2869
2897
|
try {
|
|
2870
|
-
for (_iterator.
|
|
2898
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2871
2899
|
var p = _step.value;
|
|
2872
2900
|
|
|
2873
2901
|
if (props$1[p]) {
|
|
@@ -2882,9 +2910,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2882
2910
|
}
|
|
2883
2911
|
}
|
|
2884
2912
|
} catch (err) {
|
|
2885
|
-
|
|
2913
|
+
_didIteratorError = true;
|
|
2914
|
+
_iteratorError = err;
|
|
2886
2915
|
} finally {
|
|
2887
|
-
|
|
2916
|
+
try {
|
|
2917
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2918
|
+
_iterator["return"]();
|
|
2919
|
+
}
|
|
2920
|
+
} finally {
|
|
2921
|
+
if (_didIteratorError) {
|
|
2922
|
+
throw _iteratorError;
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2888
2925
|
}
|
|
2889
2926
|
|
|
2890
2927
|
return config;
|
|
@@ -3031,16 +3068,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3031
3068
|
|
|
3032
3069
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3033
3070
|
|
|
3034
|
-
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); }; }
|
|
3035
|
-
|
|
3036
3071
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3037
3072
|
|
|
3038
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3039
|
-
|
|
3040
|
-
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; } }
|
|
3041
|
-
|
|
3042
3073
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3043
3074
|
|
|
3075
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3076
|
+
|
|
3044
3077
|
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); }
|
|
3045
3078
|
|
|
3046
3079
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3049,12 +3082,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3049
3082
|
|
|
3050
3083
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3051
3084
|
|
|
3052
|
-
var Player =
|
|
3085
|
+
var Player =
|
|
3086
|
+
/*#__PURE__*/
|
|
3087
|
+
function (_Component) {
|
|
3053
3088
|
_inherits(Player, _Component);
|
|
3054
3089
|
|
|
3055
|
-
var _super = _createSuper(Player);
|
|
3056
|
-
|
|
3057
3090
|
function Player() {
|
|
3091
|
+
var _getPrototypeOf2;
|
|
3092
|
+
|
|
3058
3093
|
var _this;
|
|
3059
3094
|
|
|
3060
3095
|
_classCallCheck(this, Player);
|
|
@@ -3063,7 +3098,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3063
3098
|
_args[_key] = arguments[_key];
|
|
3064
3099
|
}
|
|
3065
3100
|
|
|
3066
|
-
_this =
|
|
3101
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3067
3102
|
|
|
3068
3103
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3069
3104
|
|
|
@@ -3388,7 +3423,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3388
3423
|
return null;
|
|
3389
3424
|
}
|
|
3390
3425
|
|
|
3391
|
-
return
|
|
3426
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3392
3427
|
ref: this.ref,
|
|
3393
3428
|
onReady: this.handleReady,
|
|
3394
3429
|
onPlay: this.handlePlay,
|
|
@@ -3449,16 +3484,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3449
3484
|
|
|
3450
3485
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3451
3486
|
|
|
3452
|
-
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); }; }
|
|
3453
|
-
|
|
3454
3487
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3455
3488
|
|
|
3456
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3457
|
-
|
|
3458
|
-
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; } }
|
|
3459
|
-
|
|
3460
3489
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3461
3490
|
|
|
3491
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3492
|
+
|
|
3462
3493
|
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); }
|
|
3463
3494
|
|
|
3464
3495
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3470,12 +3501,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3470
3501
|
function createSinglePlayer(activePlayer) {
|
|
3471
3502
|
var _class, _temp;
|
|
3472
3503
|
|
|
3473
|
-
return _temp = _class =
|
|
3504
|
+
return _temp = _class =
|
|
3505
|
+
/*#__PURE__*/
|
|
3506
|
+
function (_Component) {
|
|
3474
3507
|
_inherits(SinglePlayer, _Component);
|
|
3475
3508
|
|
|
3476
|
-
var _super = _createSuper(SinglePlayer);
|
|
3477
|
-
|
|
3478
3509
|
function SinglePlayer() {
|
|
3510
|
+
var _getPrototypeOf2;
|
|
3511
|
+
|
|
3479
3512
|
var _this;
|
|
3480
3513
|
|
|
3481
3514
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3484,7 +3517,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3484
3517
|
args[_key] = arguments[_key];
|
|
3485
3518
|
}
|
|
3486
3519
|
|
|
3487
|
-
_this =
|
|
3520
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3488
3521
|
|
|
3489
3522
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3490
3523
|
|
|
@@ -3552,12 +3585,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3552
3585
|
height = _this$props.height,
|
|
3553
3586
|
Wrapper = _this$props.wrapper;
|
|
3554
3587
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3555
|
-
return
|
|
3588
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3556
3589
|
style: _objectSpread({}, style, {
|
|
3557
3590
|
width: width,
|
|
3558
3591
|
height: height
|
|
3559
3592
|
})
|
|
3560
|
-
}, otherProps),
|
|
3593
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3561
3594
|
ref: this.ref,
|
|
3562
3595
|
activePlayer: activePlayer,
|
|
3563
3596
|
config: this.config
|
|
@@ -3603,31 +3636,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3603
3636
|
|
|
3604
3637
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3605
3638
|
|
|
3606
|
-
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); }; }
|
|
3607
|
-
|
|
3608
3639
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3609
3640
|
|
|
3610
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3611
|
-
|
|
3612
|
-
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; } }
|
|
3613
|
-
|
|
3614
3641
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3615
3642
|
|
|
3643
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3644
|
+
|
|
3616
3645
|
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); }
|
|
3617
3646
|
|
|
3618
3647
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3619
3648
|
|
|
3620
3649
|
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; }
|
|
3621
3650
|
|
|
3622
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3623
|
-
|
|
3624
|
-
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."); }
|
|
3625
|
-
|
|
3626
|
-
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); }
|
|
3651
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3627
3652
|
|
|
3628
|
-
function
|
|
3653
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3629
3654
|
|
|
3630
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3655
|
+
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; }
|
|
3631
3656
|
|
|
3632
3657
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3633
3658
|
|
|
@@ -3652,12 +3677,14 @@ function parsePlaylist(url) {
|
|
|
3652
3677
|
return {};
|
|
3653
3678
|
}
|
|
3654
3679
|
|
|
3655
|
-
var YouTube =
|
|
3680
|
+
var YouTube =
|
|
3681
|
+
/*#__PURE__*/
|
|
3682
|
+
function (_Component) {
|
|
3656
3683
|
_inherits(YouTube, _Component);
|
|
3657
3684
|
|
|
3658
|
-
var _super = _createSuper(YouTube);
|
|
3659
|
-
|
|
3660
3685
|
function YouTube() {
|
|
3686
|
+
var _getPrototypeOf2;
|
|
3687
|
+
|
|
3661
3688
|
var _this;
|
|
3662
3689
|
|
|
3663
3690
|
_classCallCheck(this, YouTube);
|
|
@@ -3666,7 +3693,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3666
3693
|
args[_key] = arguments[_key];
|
|
3667
3694
|
}
|
|
3668
3695
|
|
|
3669
|
-
_this =
|
|
3696
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3670
3697
|
|
|
3671
3698
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3672
3699
|
|
|
@@ -3854,9 +3881,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3854
3881
|
height: '100%',
|
|
3855
3882
|
display: display
|
|
3856
3883
|
};
|
|
3857
|
-
return
|
|
3884
|
+
return _react["default"].createElement("div", {
|
|
3858
3885
|
style: style
|
|
3859
|
-
},
|
|
3886
|
+
}, _react["default"].createElement("div", {
|
|
3860
3887
|
ref: this.ref
|
|
3861
3888
|
}));
|
|
3862
3889
|
}
|
|
@@ -3912,16 +3939,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3912
3939
|
|
|
3913
3940
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3914
3941
|
|
|
3915
|
-
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); }; }
|
|
3916
|
-
|
|
3917
3942
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3918
3943
|
|
|
3919
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3920
|
-
|
|
3921
|
-
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; } }
|
|
3922
|
-
|
|
3923
3944
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3924
3945
|
|
|
3946
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3947
|
+
|
|
3925
3948
|
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); }
|
|
3926
3949
|
|
|
3927
3950
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3930,14 +3953,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3930
3953
|
|
|
3931
3954
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3932
3955
|
var SDK_GLOBAL = 'SC';
|
|
3933
|
-
var MATCH_URL = /(
|
|
3956
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3934
3957
|
|
|
3935
|
-
var SoundCloud =
|
|
3958
|
+
var SoundCloud =
|
|
3959
|
+
/*#__PURE__*/
|
|
3960
|
+
function (_Component) {
|
|
3936
3961
|
_inherits(SoundCloud, _Component);
|
|
3937
3962
|
|
|
3938
|
-
var _super = _createSuper(SoundCloud);
|
|
3939
|
-
|
|
3940
3963
|
function SoundCloud() {
|
|
3964
|
+
var _getPrototypeOf2;
|
|
3965
|
+
|
|
3941
3966
|
var _this;
|
|
3942
3967
|
|
|
3943
3968
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3946,7 +3971,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3946
3971
|
args[_key] = arguments[_key];
|
|
3947
3972
|
}
|
|
3948
3973
|
|
|
3949
|
-
_this =
|
|
3974
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3950
3975
|
|
|
3951
3976
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3952
3977
|
|
|
@@ -4067,7 +4092,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4067
4092
|
height: '100%',
|
|
4068
4093
|
display: display
|
|
4069
4094
|
};
|
|
4070
|
-
return
|
|
4095
|
+
return _react["default"].createElement("iframe", {
|
|
4071
4096
|
ref: this.ref,
|
|
4072
4097
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4073
4098
|
style: style,
|
|
@@ -4129,16 +4154,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4129
4154
|
|
|
4130
4155
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4131
4156
|
|
|
4132
|
-
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); }; }
|
|
4133
|
-
|
|
4134
4157
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4135
4158
|
|
|
4136
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4137
|
-
|
|
4138
|
-
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; } }
|
|
4139
|
-
|
|
4140
4159
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4141
4160
|
|
|
4161
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4162
|
+
|
|
4142
4163
|
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); }
|
|
4143
4164
|
|
|
4144
4165
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4150,12 +4171,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4150
4171
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4151
4172
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4152
4173
|
|
|
4153
|
-
var Vimeo =
|
|
4174
|
+
var Vimeo =
|
|
4175
|
+
/*#__PURE__*/
|
|
4176
|
+
function (_Component) {
|
|
4154
4177
|
_inherits(Vimeo, _Component);
|
|
4155
4178
|
|
|
4156
|
-
var _super = _createSuper(Vimeo);
|
|
4157
|
-
|
|
4158
4179
|
function Vimeo() {
|
|
4180
|
+
var _getPrototypeOf2;
|
|
4181
|
+
|
|
4159
4182
|
var _this;
|
|
4160
4183
|
|
|
4161
4184
|
_classCallCheck(this, Vimeo);
|
|
@@ -4164,7 +4187,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4164
4187
|
args[_key] = arguments[_key];
|
|
4165
4188
|
}
|
|
4166
4189
|
|
|
4167
|
-
_this =
|
|
4190
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4168
4191
|
|
|
4169
4192
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4170
4193
|
|
|
@@ -4321,7 +4344,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4321
4344
|
overflow: 'hidden',
|
|
4322
4345
|
display: display
|
|
4323
4346
|
};
|
|
4324
|
-
return
|
|
4347
|
+
return _react["default"].createElement("div", {
|
|
4325
4348
|
key: this.props.url,
|
|
4326
4349
|
ref: this.ref,
|
|
4327
4350
|
style: style
|
|
@@ -4381,16 +4404,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4381
4404
|
|
|
4382
4405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4383
4406
|
|
|
4384
|
-
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); }; }
|
|
4385
|
-
|
|
4386
4407
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4387
4408
|
|
|
4388
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4389
|
-
|
|
4390
|
-
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; } }
|
|
4391
|
-
|
|
4392
4409
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4393
4410
|
|
|
4411
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4412
|
+
|
|
4394
4413
|
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); }
|
|
4395
4414
|
|
|
4396
4415
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4403,12 +4422,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4403
4422
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4404
4423
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4405
4424
|
|
|
4406
|
-
var Facebook =
|
|
4425
|
+
var Facebook =
|
|
4426
|
+
/*#__PURE__*/
|
|
4427
|
+
function (_Component) {
|
|
4407
4428
|
_inherits(Facebook, _Component);
|
|
4408
4429
|
|
|
4409
|
-
var _super = _createSuper(Facebook);
|
|
4410
|
-
|
|
4411
4430
|
function Facebook() {
|
|
4431
|
+
var _getPrototypeOf2;
|
|
4432
|
+
|
|
4412
4433
|
var _this;
|
|
4413
4434
|
|
|
4414
4435
|
_classCallCheck(this, Facebook);
|
|
@@ -4417,7 +4438,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4417
4438
|
args[_key] = arguments[_key];
|
|
4418
4439
|
}
|
|
4419
4440
|
|
|
4420
|
-
_this =
|
|
4441
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4421
4442
|
|
|
4422
4443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4423
4444
|
|
|
@@ -4533,7 +4554,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4533
4554
|
width: '100%',
|
|
4534
4555
|
height: '100%'
|
|
4535
4556
|
};
|
|
4536
|
-
return
|
|
4557
|
+
return _react["default"].createElement("div", {
|
|
4537
4558
|
style: style,
|
|
4538
4559
|
id: this.playerID,
|
|
4539
4560
|
className: "fb-video",
|
|
@@ -4593,16 +4614,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4593
4614
|
|
|
4594
4615
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4595
4616
|
|
|
4596
|
-
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); }; }
|
|
4597
|
-
|
|
4598
4617
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4599
4618
|
|
|
4600
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4601
|
-
|
|
4602
|
-
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; } }
|
|
4603
|
-
|
|
4604
4619
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4605
4620
|
|
|
4621
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4622
|
+
|
|
4606
4623
|
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); }
|
|
4607
4624
|
|
|
4608
4625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4613,12 +4630,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4613
4630
|
var SDK_GLOBAL = 'playerjs';
|
|
4614
4631
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4615
4632
|
|
|
4616
|
-
var Streamable =
|
|
4633
|
+
var Streamable =
|
|
4634
|
+
/*#__PURE__*/
|
|
4635
|
+
function (_Component) {
|
|
4617
4636
|
_inherits(Streamable, _Component);
|
|
4618
4637
|
|
|
4619
|
-
var _super = _createSuper(Streamable);
|
|
4620
|
-
|
|
4621
4638
|
function Streamable() {
|
|
4639
|
+
var _getPrototypeOf2;
|
|
4640
|
+
|
|
4622
4641
|
var _this;
|
|
4623
4642
|
|
|
4624
4643
|
_classCallCheck(this, Streamable);
|
|
@@ -4627,7 +4646,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4627
4646
|
args[_key] = arguments[_key];
|
|
4628
4647
|
}
|
|
4629
4648
|
|
|
4630
|
-
_this =
|
|
4649
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4631
4650
|
|
|
4632
4651
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4633
4652
|
|
|
@@ -4747,7 +4766,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4747
4766
|
width: '100%',
|
|
4748
4767
|
height: '100%'
|
|
4749
4768
|
};
|
|
4750
|
-
return
|
|
4769
|
+
return _react["default"].createElement("iframe", {
|
|
4751
4770
|
ref: this.ref,
|
|
4752
4771
|
src: "https://streamable.com/o/".concat(id),
|
|
4753
4772
|
frameBorder: "0",
|
|
@@ -4808,16 +4827,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4808
4827
|
|
|
4809
4828
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4810
4829
|
|
|
4811
|
-
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); }; }
|
|
4812
|
-
|
|
4813
4830
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4814
4831
|
|
|
4815
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4816
|
-
|
|
4817
|
-
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; } }
|
|
4818
|
-
|
|
4819
4832
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4820
4833
|
|
|
4834
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4835
|
+
|
|
4821
4836
|
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); }
|
|
4822
4837
|
|
|
4823
4838
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4828,48 +4843,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4828
4843
|
var SDK_GLOBAL = 'Wistia';
|
|
4829
4844
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4830
4845
|
|
|
4831
|
-
var Wistia =
|
|
4846
|
+
var Wistia =
|
|
4847
|
+
/*#__PURE__*/
|
|
4848
|
+
function (_Component) {
|
|
4832
4849
|
_inherits(Wistia, _Component);
|
|
4833
4850
|
|
|
4834
|
-
var _super = _createSuper(Wistia);
|
|
4835
|
-
|
|
4836
4851
|
function Wistia() {
|
|
4852
|
+
var _getPrototypeOf2;
|
|
4853
|
+
|
|
4837
4854
|
var _this;
|
|
4838
4855
|
|
|
4839
4856
|
_classCallCheck(this, Wistia);
|
|
4840
4857
|
|
|
4841
|
-
for (var _len = arguments.length,
|
|
4842
|
-
|
|
4858
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4859
|
+
args[_key] = arguments[_key];
|
|
4843
4860
|
}
|
|
4844
4861
|
|
|
4845
|
-
_this =
|
|
4862
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4846
4863
|
|
|
4847
4864
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4848
4865
|
|
|
4849
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4850
|
-
var _this$props;
|
|
4851
|
-
|
|
4852
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4853
|
-
});
|
|
4854
|
-
|
|
4855
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4856
|
-
var _this$props2;
|
|
4857
|
-
|
|
4858
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4859
|
-
});
|
|
4860
|
-
|
|
4861
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4862
|
-
var _this$props3;
|
|
4863
|
-
|
|
4864
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4865
|
-
});
|
|
4866
|
-
|
|
4867
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4868
|
-
var _this$props4;
|
|
4869
|
-
|
|
4870
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4871
|
-
});
|
|
4872
|
-
|
|
4873
4866
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4874
4867
|
_this.callPlayer('mute');
|
|
4875
4868
|
});
|
|
@@ -4891,13 +4884,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4891
4884
|
value: function load(url) {
|
|
4892
4885
|
var _this2 = this;
|
|
4893
4886
|
|
|
4894
|
-
var _this$
|
|
4895
|
-
playing = _this$
|
|
4896
|
-
muted = _this$
|
|
4897
|
-
controls = _this$
|
|
4898
|
-
_onReady = _this$
|
|
4899
|
-
|
|
4900
|
-
|
|
4887
|
+
var _this$props = this.props,
|
|
4888
|
+
playing = _this$props.playing,
|
|
4889
|
+
muted = _this$props.muted,
|
|
4890
|
+
controls = _this$props.controls,
|
|
4891
|
+
_onReady = _this$props.onReady,
|
|
4892
|
+
onPlay = _this$props.onPlay,
|
|
4893
|
+
onPause = _this$props.onPause,
|
|
4894
|
+
onSeek = _this$props.onSeek,
|
|
4895
|
+
onEnded = _this$props.onEnded,
|
|
4896
|
+
config = _this$props.config,
|
|
4897
|
+
onError = _this$props.onError;
|
|
4901
4898
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4902
4899
|
window._wq = window._wq || [];
|
|
4903
4900
|
|
|
@@ -4914,28 +4911,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4914
4911
|
|
|
4915
4912
|
_this2.unbind();
|
|
4916
4913
|
|
|
4917
|
-
_this2.player.bind('play',
|
|
4914
|
+
_this2.player.bind('play', onPlay);
|
|
4918
4915
|
|
|
4919
|
-
_this2.player.bind('pause',
|
|
4916
|
+
_this2.player.bind('pause', onPause);
|
|
4920
4917
|
|
|
4921
|
-
_this2.player.bind('seek',
|
|
4918
|
+
_this2.player.bind('seek', onSeek);
|
|
4922
4919
|
|
|
4923
|
-
_this2.player.bind('end',
|
|
4920
|
+
_this2.player.bind('end', onEnded);
|
|
4924
4921
|
|
|
4925
4922
|
_onReady();
|
|
4926
4923
|
}
|
|
4927
4924
|
});
|
|
4928
4925
|
}, onError);
|
|
4929
4926
|
}
|
|
4930
|
-
}, {
|
|
4931
|
-
key: "unbind",
|
|
4932
|
-
value: function unbind() {
|
|
4933
|
-
this.player.unbind('play', this.onPlay);
|
|
4934
|
-
this.player.unbind('pause', this.onPause);
|
|
4935
|
-
this.player.unbind('seek', this.onSeek);
|
|
4936
|
-
this.player.unbind('end', this.onEnded);
|
|
4937
|
-
} // Proxy methods to prevent listener leaks
|
|
4938
|
-
|
|
4939
4927
|
}, {
|
|
4940
4928
|
key: "play",
|
|
4941
4929
|
value: function play() {
|
|
@@ -4946,6 +4934,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4946
4934
|
value: function pause() {
|
|
4947
4935
|
this.callPlayer('pause');
|
|
4948
4936
|
}
|
|
4937
|
+
}, {
|
|
4938
|
+
key: "unbind",
|
|
4939
|
+
value: function unbind() {
|
|
4940
|
+
var _this$props2 = this.props,
|
|
4941
|
+
onPlay = _this$props2.onPlay,
|
|
4942
|
+
onPause = _this$props2.onPause,
|
|
4943
|
+
onSeek = _this$props2.onSeek,
|
|
4944
|
+
onEnded = _this$props2.onEnded;
|
|
4945
|
+
this.player.unbind('play', onPlay);
|
|
4946
|
+
this.player.unbind('pause', onPause);
|
|
4947
|
+
this.player.unbind('seek', onSeek);
|
|
4948
|
+
this.player.unbind('end', onEnded);
|
|
4949
|
+
}
|
|
4949
4950
|
}, {
|
|
4950
4951
|
key: "stop",
|
|
4951
4952
|
value: function stop() {
|
|
@@ -4991,7 +4992,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4991
4992
|
width: '100%',
|
|
4992
4993
|
height: '100%'
|
|
4993
4994
|
};
|
|
4994
|
-
return
|
|
4995
|
+
return _react["default"].createElement("div", {
|
|
4995
4996
|
key: id,
|
|
4996
4997
|
className: className,
|
|
4997
4998
|
style: style
|
|
@@ -5051,16 +5052,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5051
5052
|
|
|
5052
5053
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5053
5054
|
|
|
5054
|
-
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); }; }
|
|
5055
|
-
|
|
5056
5055
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5057
5056
|
|
|
5058
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5059
|
-
|
|
5060
|
-
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; } }
|
|
5061
|
-
|
|
5062
5057
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5063
5058
|
|
|
5059
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5060
|
+
|
|
5064
5061
|
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); }
|
|
5065
5062
|
|
|
5066
5063
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5073,12 +5070,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5073
5070
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5074
5071
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5075
5072
|
|
|
5076
|
-
var Twitch =
|
|
5073
|
+
var Twitch =
|
|
5074
|
+
/*#__PURE__*/
|
|
5075
|
+
function (_Component) {
|
|
5077
5076
|
_inherits(Twitch, _Component);
|
|
5078
5077
|
|
|
5079
|
-
var _super = _createSuper(Twitch);
|
|
5080
|
-
|
|
5081
5078
|
function Twitch() {
|
|
5079
|
+
var _getPrototypeOf2;
|
|
5080
|
+
|
|
5082
5081
|
var _this;
|
|
5083
5082
|
|
|
5084
5083
|
_classCallCheck(this, Twitch);
|
|
@@ -5087,7 +5086,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5087
5086
|
args[_key] = arguments[_key];
|
|
5088
5087
|
}
|
|
5089
5088
|
|
|
5090
|
-
_this =
|
|
5089
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5091
5090
|
|
|
5092
5091
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5093
5092
|
|
|
@@ -5208,7 +5207,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5208
5207
|
width: '100%',
|
|
5209
5208
|
height: '100%'
|
|
5210
5209
|
};
|
|
5211
|
-
return
|
|
5210
|
+
return _react["default"].createElement("div", {
|
|
5212
5211
|
style: style,
|
|
5213
5212
|
id: this.playerID
|
|
5214
5213
|
});
|
|
@@ -5261,15 +5260,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5261
5260
|
|
|
5262
5261
|
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; }
|
|
5263
5262
|
|
|
5264
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5265
|
-
|
|
5266
|
-
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."); }
|
|
5267
|
-
|
|
5268
|
-
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); }
|
|
5263
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5269
5264
|
|
|
5270
|
-
function
|
|
5265
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5271
5266
|
|
|
5272
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5267
|
+
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; }
|
|
5273
5268
|
|
|
5274
5269
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5275
5270
|
|
|
@@ -5279,16 +5274,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5279
5274
|
|
|
5280
5275
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5281
5276
|
|
|
5282
|
-
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); }; }
|
|
5283
|
-
|
|
5284
5277
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5285
5278
|
|
|
5286
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5287
|
-
|
|
5288
|
-
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; } }
|
|
5289
|
-
|
|
5290
5279
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5291
5280
|
|
|
5281
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5282
|
+
|
|
5292
5283
|
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); }
|
|
5293
5284
|
|
|
5294
5285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5300,12 +5291,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5300
5291
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5301
5292
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5302
5293
|
|
|
5303
|
-
var DailyMotion =
|
|
5294
|
+
var DailyMotion =
|
|
5295
|
+
/*#__PURE__*/
|
|
5296
|
+
function (_Component) {
|
|
5304
5297
|
_inherits(DailyMotion, _Component);
|
|
5305
5298
|
|
|
5306
|
-
var _super = _createSuper(DailyMotion);
|
|
5307
|
-
|
|
5308
5299
|
function DailyMotion() {
|
|
5300
|
+
var _getPrototypeOf2;
|
|
5301
|
+
|
|
5309
5302
|
var _this;
|
|
5310
5303
|
|
|
5311
5304
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5314,7 +5307,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5314
5307
|
args[_key] = arguments[_key];
|
|
5315
5308
|
}
|
|
5316
5309
|
|
|
5317
|
-
_this =
|
|
5310
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5318
5311
|
|
|
5319
5312
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5320
5313
|
|
|
@@ -5443,9 +5436,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5443
5436
|
height: '100%',
|
|
5444
5437
|
display: display
|
|
5445
5438
|
};
|
|
5446
|
-
return
|
|
5439
|
+
return _react["default"].createElement("div", {
|
|
5447
5440
|
style: style
|
|
5448
|
-
},
|
|
5441
|
+
}, _react["default"].createElement("div", {
|
|
5449
5442
|
ref: this.ref
|
|
5450
5443
|
}));
|
|
5451
5444
|
}
|
|
@@ -5503,16 +5496,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5503
5496
|
|
|
5504
5497
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5505
5498
|
|
|
5506
|
-
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); }; }
|
|
5507
|
-
|
|
5508
5499
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5509
5500
|
|
|
5510
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5511
|
-
|
|
5512
|
-
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; } }
|
|
5513
|
-
|
|
5514
5501
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5515
5502
|
|
|
5503
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5504
|
+
|
|
5516
5505
|
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); }
|
|
5517
5506
|
|
|
5518
5507
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5523,12 +5512,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5523
5512
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5524
5513
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5525
5514
|
|
|
5526
|
-
var Mixcloud =
|
|
5515
|
+
var Mixcloud =
|
|
5516
|
+
/*#__PURE__*/
|
|
5517
|
+
function (_Component) {
|
|
5527
5518
|
_inherits(Mixcloud, _Component);
|
|
5528
5519
|
|
|
5529
|
-
var _super = _createSuper(Mixcloud);
|
|
5530
|
-
|
|
5531
5520
|
function Mixcloud() {
|
|
5521
|
+
var _getPrototypeOf2;
|
|
5522
|
+
|
|
5532
5523
|
var _this;
|
|
5533
5524
|
|
|
5534
5525
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5537,7 +5528,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5537
5528
|
args[_key] = arguments[_key];
|
|
5538
5529
|
}
|
|
5539
5530
|
|
|
5540
|
-
_this =
|
|
5531
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5541
5532
|
|
|
5542
5533
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5543
5534
|
|
|
@@ -5640,7 +5631,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5640
5631
|
})); // We have to give the iframe a key here to prevent a
|
|
5641
5632
|
// weird dialog appearing when loading a new track
|
|
5642
5633
|
|
|
5643
|
-
return
|
|
5634
|
+
return _react["default"].createElement("iframe", {
|
|
5644
5635
|
key: id,
|
|
5645
5636
|
ref: this.ref,
|
|
5646
5637
|
style: style,
|
|
@@ -5700,33 +5691,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5700
5691
|
|
|
5701
5692
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5702
5693
|
|
|
5703
|
-
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); }; }
|
|
5704
|
-
|
|
5705
5694
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5706
5695
|
|
|
5707
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5708
|
-
|
|
5709
|
-
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; } }
|
|
5710
|
-
|
|
5711
5696
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5712
5697
|
|
|
5698
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5699
|
+
|
|
5713
5700
|
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); }
|
|
5714
5701
|
|
|
5715
5702
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5716
5703
|
|
|
5717
5704
|
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; }
|
|
5718
5705
|
|
|
5719
|
-
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; } } }; }
|
|
5720
|
-
|
|
5721
|
-
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); }
|
|
5722
|
-
|
|
5723
|
-
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; }
|
|
5724
|
-
|
|
5725
5706
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5726
5707
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5727
5708
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5728
5709
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5729
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5710
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5730
5711
|
var HLS_GLOBAL = 'Hls';
|
|
5731
5712
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5732
5713
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5735,11 +5716,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5735
5716
|
|
|
5736
5717
|
function canPlay(url) {
|
|
5737
5718
|
if (url instanceof Array) {
|
|
5738
|
-
var
|
|
5739
|
-
|
|
5719
|
+
var _iteratorNormalCompletion = true;
|
|
5720
|
+
var _didIteratorError = false;
|
|
5721
|
+
var _iteratorError = undefined;
|
|
5740
5722
|
|
|
5741
5723
|
try {
|
|
5742
|
-
for (_iterator.
|
|
5724
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5743
5725
|
var item = _step.value;
|
|
5744
5726
|
|
|
5745
5727
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5751,9 +5733,18 @@ function canPlay(url) {
|
|
|
5751
5733
|
}
|
|
5752
5734
|
}
|
|
5753
5735
|
} catch (err) {
|
|
5754
|
-
|
|
5736
|
+
_didIteratorError = true;
|
|
5737
|
+
_iteratorError = err;
|
|
5755
5738
|
} finally {
|
|
5756
|
-
|
|
5739
|
+
try {
|
|
5740
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5741
|
+
_iterator["return"]();
|
|
5742
|
+
}
|
|
5743
|
+
} finally {
|
|
5744
|
+
if (_didIteratorError) {
|
|
5745
|
+
throw _iteratorError;
|
|
5746
|
+
}
|
|
5747
|
+
}
|
|
5757
5748
|
}
|
|
5758
5749
|
|
|
5759
5750
|
return false;
|
|
@@ -5777,12 +5768,14 @@ function canEnablePIP(url) {
|
|
|
5777
5768
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5778
5769
|
}
|
|
5779
5770
|
|
|
5780
|
-
var FilePlayer =
|
|
5771
|
+
var FilePlayer =
|
|
5772
|
+
/*#__PURE__*/
|
|
5773
|
+
function (_Component) {
|
|
5781
5774
|
_inherits(FilePlayer, _Component);
|
|
5782
5775
|
|
|
5783
|
-
var _super = _createSuper(FilePlayer);
|
|
5784
|
-
|
|
5785
5776
|
function FilePlayer() {
|
|
5777
|
+
var _getPrototypeOf2;
|
|
5778
|
+
|
|
5786
5779
|
var _this;
|
|
5787
5780
|
|
|
5788
5781
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5791,7 +5784,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5791
5784
|
_args[_key] = arguments[_key];
|
|
5792
5785
|
}
|
|
5793
5786
|
|
|
5794
|
-
_this =
|
|
5787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5795
5788
|
|
|
5796
5789
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5797
5790
|
var _this$props;
|
|
@@ -5878,19 +5871,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5878
5871
|
|
|
5879
5872
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5880
5873
|
if (typeof source === 'string') {
|
|
5881
|
-
return
|
|
5874
|
+
return _react["default"].createElement("source", {
|
|
5882
5875
|
key: index,
|
|
5883
5876
|
src: source
|
|
5884
5877
|
});
|
|
5885
5878
|
}
|
|
5886
5879
|
|
|
5887
|
-
return
|
|
5880
|
+
return _react["default"].createElement("source", _extends({
|
|
5888
5881
|
key: index
|
|
5889
5882
|
}, source));
|
|
5890
5883
|
});
|
|
5891
5884
|
|
|
5892
5885
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5893
|
-
return
|
|
5886
|
+
return _react["default"].createElement("track", _extends({
|
|
5894
5887
|
key: index
|
|
5895
5888
|
}, track));
|
|
5896
5889
|
});
|
|
@@ -5928,10 +5921,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5928
5921
|
key: "componentWillUnmount",
|
|
5929
5922
|
value: function componentWillUnmount() {
|
|
5930
5923
|
this.removeListeners(this.player);
|
|
5931
|
-
|
|
5932
|
-
if (this.hls) {
|
|
5933
|
-
this.hls.destroy();
|
|
5934
|
-
}
|
|
5935
5924
|
}
|
|
5936
5925
|
}, {
|
|
5937
5926
|
key: "addListeners",
|
|
@@ -6062,6 +6051,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6062
6051
|
value: function stop() {
|
|
6063
6052
|
this.player.removeAttribute('src');
|
|
6064
6053
|
|
|
6054
|
+
if (this.hls) {
|
|
6055
|
+
this.hls.destroy();
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6065
6058
|
if (this.dash) {
|
|
6066
6059
|
this.dash.reset();
|
|
6067
6060
|
}
|
|
@@ -6173,7 +6166,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6173
6166
|
width: width === 'auto' ? width : '100%',
|
|
6174
6167
|
height: height === 'auto' ? height : '100%'
|
|
6175
6168
|
};
|
|
6176
|
-
return
|
|
6169
|
+
return _react["default"].createElement(Element, _extends({
|
|
6177
6170
|
ref: this.ref,
|
|
6178
6171
|
src: this.getSource(url),
|
|
6179
6172
|
style: style,
|
|
@@ -6263,16 +6256,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6263
6256
|
|
|
6264
6257
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6265
6258
|
|
|
6266
|
-
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); }; }
|
|
6267
|
-
|
|
6268
6259
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6269
6260
|
|
|
6270
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6271
|
-
|
|
6272
|
-
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; } }
|
|
6273
|
-
|
|
6274
6261
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6275
6262
|
|
|
6263
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6264
|
+
|
|
6276
6265
|
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); }
|
|
6277
6266
|
|
|
6278
6267
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6281,12 +6270,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6281
6270
|
|
|
6282
6271
|
var ICON_SIZE = '64px';
|
|
6283
6272
|
|
|
6284
|
-
var Preview =
|
|
6273
|
+
var Preview =
|
|
6274
|
+
/*#__PURE__*/
|
|
6275
|
+
function (_Component) {
|
|
6285
6276
|
_inherits(Preview, _Component);
|
|
6286
6277
|
|
|
6287
|
-
var _super = _createSuper(Preview);
|
|
6288
|
-
|
|
6289
6278
|
function Preview() {
|
|
6279
|
+
var _getPrototypeOf2;
|
|
6280
|
+
|
|
6290
6281
|
var _this;
|
|
6291
6282
|
|
|
6292
6283
|
_classCallCheck(this, Preview);
|
|
@@ -6295,7 +6286,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6295
6286
|
args[_key] = arguments[_key];
|
|
6296
6287
|
}
|
|
6297
6288
|
|
|
6298
|
-
_this =
|
|
6289
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6299
6290
|
|
|
6300
6291
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6301
6292
|
|
|
@@ -6393,15 +6384,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6393
6384
|
}
|
|
6394
6385
|
};
|
|
6395
6386
|
|
|
6396
|
-
var defaultPlayIcon =
|
|
6387
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6397
6388
|
style: styles.shadow,
|
|
6398
6389
|
className: "react-player__shadow"
|
|
6399
|
-
},
|
|
6390
|
+
}, _react["default"].createElement("div", {
|
|
6400
6391
|
style: styles.playIcon,
|
|
6401
6392
|
className: "react-player__play-icon"
|
|
6402
6393
|
}));
|
|
6403
6394
|
|
|
6404
|
-
return
|
|
6395
|
+
return _react["default"].createElement("div", {
|
|
6405
6396
|
style: styles.preview,
|
|
6406
6397
|
className: "react-player__preview",
|
|
6407
6398
|
onClick: onClick
|
|
@@ -6438,12 +6429,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6438
6429
|
|
|
6439
6430
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6440
6431
|
|
|
6441
|
-
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; } } }; }
|
|
6442
|
-
|
|
6443
|
-
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); }
|
|
6444
|
-
|
|
6445
|
-
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; }
|
|
6446
|
-
|
|
6447
6432
|
var PRELOAD_PLAYERS = [{
|
|
6448
6433
|
Player: YouTube_1.YouTube,
|
|
6449
6434
|
configKey: 'youtube',
|
|
@@ -6464,16 +6449,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6464
6449
|
|
|
6465
6450
|
function renderPreloadPlayers(url, controls, config) {
|
|
6466
6451
|
var players = [];
|
|
6467
|
-
|
|
6468
|
-
var
|
|
6469
|
-
|
|
6452
|
+
var _iteratorNormalCompletion = true;
|
|
6453
|
+
var _didIteratorError = false;
|
|
6454
|
+
var _iteratorError = undefined;
|
|
6470
6455
|
|
|
6471
6456
|
try {
|
|
6472
|
-
for (_iterator.
|
|
6457
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6473
6458
|
var player = _step.value;
|
|
6474
6459
|
|
|
6475
6460
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6476
|
-
players.push(
|
|
6461
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6477
6462
|
key: player.Player.displayName,
|
|
6478
6463
|
activePlayer: player.Player,
|
|
6479
6464
|
url: player.url,
|
|
@@ -6485,9 +6470,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6485
6470
|
}
|
|
6486
6471
|
}
|
|
6487
6472
|
} catch (err) {
|
|
6488
|
-
|
|
6473
|
+
_didIteratorError = true;
|
|
6474
|
+
_iteratorError = err;
|
|
6489
6475
|
} finally {
|
|
6490
|
-
|
|
6476
|
+
try {
|
|
6477
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6478
|
+
_iterator["return"]();
|
|
6479
|
+
}
|
|
6480
|
+
} finally {
|
|
6481
|
+
if (_didIteratorError) {
|
|
6482
|
+
throw _iteratorError;
|
|
6483
|
+
}
|
|
6484
|
+
}
|
|
6491
6485
|
}
|
|
6492
6486
|
|
|
6493
6487
|
return players;
|
|
@@ -6611,17 +6605,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6611
6605
|
|
|
6612
6606
|
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); }
|
|
6613
6607
|
|
|
6614
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6615
|
-
|
|
6616
|
-
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."); }
|
|
6617
|
-
|
|
6618
|
-
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); }
|
|
6608
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6619
6609
|
|
|
6620
|
-
function
|
|
6610
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6621
6611
|
|
|
6622
|
-
function
|
|
6612
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6623
6613
|
|
|
6624
|
-
function
|
|
6614
|
+
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; } }
|
|
6625
6615
|
|
|
6626
6616
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6627
6617
|
|
|
@@ -6629,16 +6619,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6629
6619
|
|
|
6630
6620
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6631
6621
|
|
|
6632
|
-
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); }; }
|
|
6633
|
-
|
|
6634
6622
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6635
6623
|
|
|
6636
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6637
|
-
|
|
6638
|
-
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; } }
|
|
6639
|
-
|
|
6640
6624
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6641
6625
|
|
|
6626
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6627
|
+
|
|
6642
6628
|
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); }
|
|
6643
6629
|
|
|
6644
6630
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6648,12 +6634,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6648
6634
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6649
6635
|
var customPlayers = [];
|
|
6650
6636
|
|
|
6651
|
-
var ReactPlayer =
|
|
6637
|
+
var ReactPlayer =
|
|
6638
|
+
/*#__PURE__*/
|
|
6639
|
+
function (_Component) {
|
|
6652
6640
|
_inherits(ReactPlayer, _Component);
|
|
6653
6641
|
|
|
6654
|
-
var _super = _createSuper(ReactPlayer);
|
|
6655
|
-
|
|
6656
6642
|
function ReactPlayer() {
|
|
6643
|
+
var _getPrototypeOf2;
|
|
6644
|
+
|
|
6657
6645
|
var _this;
|
|
6658
6646
|
|
|
6659
6647
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6662,7 +6650,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6662
6650
|
args[_key] = arguments[_key];
|
|
6663
6651
|
}
|
|
6664
6652
|
|
|
6665
|
-
_this =
|
|
6653
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6666
6654
|
|
|
6667
6655
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6668
6656
|
|
|
@@ -6773,7 +6761,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6773
6761
|
key: "renderActivePlayer",
|
|
6774
6762
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6775
6763
|
if (!url) return null;
|
|
6776
|
-
return
|
|
6764
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6777
6765
|
key: activePlayer.displayName,
|
|
6778
6766
|
ref: this.activePlayerRef,
|
|
6779
6767
|
config: this.config,
|
|
@@ -6810,14 +6798,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6810
6798
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6811
6799
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6812
6800
|
|
|
6813
|
-
var preview =
|
|
6801
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6814
6802
|
url: url,
|
|
6815
6803
|
light: light,
|
|
6816
6804
|
playIcon: playIcon,
|
|
6817
6805
|
onClick: this.handleClickPreview
|
|
6818
6806
|
});
|
|
6819
6807
|
|
|
6820
|
-
return
|
|
6808
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6821
6809
|
ref: this.wrapperRef,
|
|
6822
6810
|
style: _objectSpread({}, style, {
|
|
6823
6811
|
width: width,
|
|
@@ -7365,7 +7353,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7365
7353
|
{ className: 'mb-3' },
|
|
7366
7354
|
nodes.videos[series - 1].title
|
|
7367
7355
|
),
|
|
7368
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7356
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7369
7357
|
),
|
|
7370
7358
|
React__default.createElement(
|
|
7371
7359
|
'style',
|
|
@@ -7493,7 +7481,7 @@ var Poll = function Poll(_ref) {
|
|
|
7493
7481
|
);
|
|
7494
7482
|
};
|
|
7495
7483
|
|
|
7496
|
-
var numberOfPaginations = main.
|
|
7484
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7497
7485
|
|
|
7498
7486
|
var Quiz = function Quiz(_ref) {
|
|
7499
7487
|
var quizzes = _ref.quizzes,
|
|
@@ -7606,7 +7594,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7606
7594
|
var renderPagination = function renderPagination() {
|
|
7607
7595
|
return React__default.createElement(
|
|
7608
7596
|
Pagination,
|
|
7609
|
-
{ className: 'p-0 m-0', size: main.
|
|
7597
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7610
7598
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7611
7599
|
return changePage('first');
|
|
7612
7600
|
}, disabled: currentPage === 1 }),
|
|
@@ -7940,7 +7928,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7940
7928
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7941
7929
|
React__default.createElement(
|
|
7942
7930
|
'a',
|
|
7943
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7931
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7944
7932
|
React__default.createElement(
|
|
7945
7933
|
'div',
|
|
7946
7934
|
{ className: 'multi-figure-image-container' },
|