@mjhls/mjh-framework 1.0.455 → 1.0.457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/ArticleQueue.js +31 -30
- package/dist/cjs/Auth.js +6 -6
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +2 -2
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +5 -5
- package/dist/cjs/DeckQueue.js +4 -4
- package/dist/cjs/EventsDeck.js +2 -2
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/{Figure-eeac313a.js → Figure-05b73e6a.js} +1 -1
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +6 -6
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/{InscreenSensor-bcdec6b0.js → InscreenSensor-f9989c04.js} +1 -1
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +5 -5
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +5 -5
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +66 -63
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +447 -435
- package/dist/cjs/{getTargeting-ec7dd217.js → getTargeting-3ced038f.js} +11 -24
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/{inherits-93684212.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-00905561.js} +6 -6
- package/dist/cjs/{moment-575fe24c.js → moment-3cf060f6.js} +5 -5
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/ArticleQueue.js +29 -28
- package/dist/esm/Auth.js +3 -3
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +2 -2
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +4 -4
- package/dist/esm/DeckQueue.js +3 -3
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/{Figure-bc2b95d7.js → Figure-23e3ecc0.js} +1 -1
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +5 -5
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +1 -1
- 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 +1 -1
- package/dist/esm/IssueLanding.js +5 -5
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +3 -3
- package/dist/esm/NavMagazine.js +1 -1
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +5 -5
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +42 -39
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +447 -435
- package/dist/esm/{getTargeting-02118961.js → getTargeting-8f4bd5db.js} +9 -22
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/index.js +7 -7
- package/dist/esm/{main-d7ee6151.js → main-adf6ec37.js} +6 -6
- package/dist/esm/{moment-e2f9b20c.js → moment-49ae13fa.js} +5 -5
- package/dist/esm/urlFor.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-5c1d1425.js → ADInfeed-5adbfbba.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-ce35bd57.js → ADlgInfeed-028da9eb.js} +0 -0
- /package/dist/esm/{ADInfeed-24924eab.js → ADInfeed-08192400.js} +0 -0
- /package/dist/esm/{ADlgInfeed-019d6cd9.js → ADlgInfeed-a90cf553.js} +0 -0
|
@@ -9,7 +9,7 @@ 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
|
|
12
|
+
var _extends = 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');
|
|
@@ -22,9 +22,9 @@ 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-b5eb3ff8.js');
|
|
26
26
|
var index$2 = require('./index-fa0fb52c.js');
|
|
27
|
-
var main = require('./main-
|
|
27
|
+
var main = require('./main-00905561.js');
|
|
28
28
|
var entities = require('./entities-310b46ee.js');
|
|
29
29
|
var slicedToArray = require('./slicedToArray-8063ee51.js');
|
|
30
30
|
require('./stringify-7c5aff47.js');
|
|
@@ -34,7 +34,7 @@ require('./promise-074978a7.js');
|
|
|
34
34
|
var Beam = require('./Beam.js');
|
|
35
35
|
require('./Segment.js');
|
|
36
36
|
var AdSlot = require('./AdSlot.js');
|
|
37
|
-
var BlockContent = require('./BlockContent-
|
|
37
|
+
var BlockContent = require('./BlockContent-f942392e.js');
|
|
38
38
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
39
39
|
var GroupDeck = require('./GroupDeck.js');
|
|
40
40
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -107,21 +107,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
107
107
|
);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
// do not edit .js files directly - edit src/index.jst
|
|
111
|
+
|
|
112
|
+
|
|
113
113
|
|
|
114
114
|
var fastDeepEqual = function equal(a, b) {
|
|
115
115
|
if (a === b) return true;
|
|
116
116
|
|
|
117
117
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
118
|
-
|
|
119
|
-
, arrB = isArray(b)
|
|
120
|
-
, i
|
|
121
|
-
, length
|
|
122
|
-
, key;
|
|
118
|
+
if (a.constructor !== b.constructor) return false;
|
|
123
119
|
|
|
124
|
-
|
|
120
|
+
var length, i, keys;
|
|
121
|
+
if (Array.isArray(a)) {
|
|
125
122
|
length = a.length;
|
|
126
123
|
if (length != b.length) return false;
|
|
127
124
|
for (i = length; i-- !== 0;)
|
|
@@ -129,35 +126,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
129
126
|
return true;
|
|
130
127
|
}
|
|
131
128
|
|
|
132
|
-
if (arrA != arrB) return false;
|
|
133
129
|
|
|
134
|
-
var dateA = a instanceof Date
|
|
135
|
-
, dateB = b instanceof Date;
|
|
136
|
-
if (dateA != dateB) return false;
|
|
137
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
138
130
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (
|
|
142
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
131
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
132
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
133
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
143
134
|
|
|
144
|
-
|
|
135
|
+
keys = Object.keys(a);
|
|
145
136
|
length = keys.length;
|
|
146
|
-
|
|
147
|
-
if (length !== keyList(b).length)
|
|
148
|
-
return false;
|
|
137
|
+
if (length !== Object.keys(b).length) return false;
|
|
149
138
|
|
|
150
139
|
for (i = length; i-- !== 0;)
|
|
151
|
-
if (!
|
|
140
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
152
141
|
|
|
153
142
|
for (i = length; i-- !== 0;) {
|
|
154
|
-
key = keys[i];
|
|
143
|
+
var key = keys[i];
|
|
144
|
+
|
|
155
145
|
if (!equal(a[key], b[key])) return false;
|
|
156
146
|
}
|
|
157
147
|
|
|
158
148
|
return true;
|
|
159
149
|
}
|
|
160
150
|
|
|
151
|
+
// true if both NaN, false otherwise
|
|
161
152
|
return a!==a && b!==b;
|
|
162
153
|
};
|
|
163
154
|
|
|
@@ -1580,199 +1571,235 @@ module.exports = exports['default'];
|
|
|
1580
1571
|
|
|
1581
1572
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1582
1573
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1574
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1586
1575
|
|
|
1587
1576
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1588
1577
|
|
|
1589
|
-
function
|
|
1578
|
+
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); } }
|
|
1579
|
+
|
|
1580
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1581
|
+
|
|
1582
|
+
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); }; }
|
|
1583
|
+
|
|
1584
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1585
|
+
|
|
1586
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1587
|
+
|
|
1588
|
+
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; } }
|
|
1589
|
+
|
|
1590
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1591
|
+
|
|
1592
|
+
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); }
|
|
1593
|
+
|
|
1594
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1595
|
+
|
|
1596
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1590
1597
|
|
|
1591
|
-
function
|
|
1598
|
+
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; }
|
|
1592
1599
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object}
|
|
1600
|
+
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; }
|
|
1601
|
+
/**
|
|
1602
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1603
|
+
*
|
|
1604
|
+
* @param {Object} prevProps
|
|
1605
|
+
* @param {Object} props
|
|
1598
1606
|
*/
|
|
1607
|
+
|
|
1599
1608
|
function shouldUpdateVideo(prevProps, props) {
|
|
1600
1609
|
// A changing video should always trigger an update
|
|
1601
1610
|
if (prevProps.videoId !== props.videoId) {
|
|
1602
1611
|
return true;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1612
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
1613
|
// update.
|
|
1614
|
+
|
|
1615
|
+
|
|
1607
1616
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1608
1617
|
var vars = props.opts.playerVars || {};
|
|
1609
|
-
|
|
1610
1618
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1611
1619
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
*
|
|
1615
|
-
*
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
* @param {Object} opts
|
|
1620
|
+
/**
|
|
1621
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1622
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1623
|
+
* player reset is necessary.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {Object} opts
|
|
1619
1626
|
*/
|
|
1627
|
+
|
|
1628
|
+
|
|
1620
1629
|
function filterResetOptions(opts) {
|
|
1621
|
-
return
|
|
1622
|
-
playerVars:
|
|
1630
|
+
return _objectSpread({}, opts, {
|
|
1631
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1623
1632
|
autoplay: 0,
|
|
1624
1633
|
start: 0,
|
|
1625
1634
|
end: 0
|
|
1626
1635
|
})
|
|
1627
1636
|
});
|
|
1628
1637
|
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
*
|
|
1632
|
-
*
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1638
|
+
/**
|
|
1639
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1640
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1641
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1642
|
+
* those.
|
|
1643
|
+
*
|
|
1644
|
+
* @param {Object} prevProps
|
|
1645
|
+
* @param {Object} props
|
|
1638
1646
|
*/
|
|
1647
|
+
|
|
1648
|
+
|
|
1639
1649
|
function shouldResetPlayer(prevProps, props) {
|
|
1640
1650
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1641
1651
|
}
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
*
|
|
1645
|
-
*
|
|
1646
|
-
* @param {Object}
|
|
1647
|
-
* @param {Object} props
|
|
1652
|
+
/**
|
|
1653
|
+
* Check whether a props change should result in an id or className update.
|
|
1654
|
+
*
|
|
1655
|
+
* @param {Object} prevProps
|
|
1656
|
+
* @param {Object} props
|
|
1648
1657
|
*/
|
|
1658
|
+
|
|
1659
|
+
|
|
1649
1660
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1650
1661
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1651
1662
|
}
|
|
1652
1663
|
|
|
1653
|
-
var YouTube = function (_React$Component) {
|
|
1664
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1654
1665
|
_inherits(YouTube, _React$Component);
|
|
1655
1666
|
|
|
1667
|
+
var _super = _createSuper(YouTube);
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1671
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1672
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1673
|
+
*/
|
|
1656
1674
|
function YouTube(props) {
|
|
1675
|
+
var _this;
|
|
1676
|
+
|
|
1657
1677
|
_classCallCheck(this, YouTube);
|
|
1658
1678
|
|
|
1659
|
-
|
|
1679
|
+
_this = _super.call(this, props);
|
|
1660
1680
|
|
|
1661
|
-
_this
|
|
1681
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1662
1682
|
return _this.props.onReady(event);
|
|
1663
|
-
};
|
|
1683
|
+
});
|
|
1664
1684
|
|
|
1665
|
-
_this
|
|
1685
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1666
1686
|
return _this.props.onError(event);
|
|
1667
|
-
};
|
|
1687
|
+
});
|
|
1668
1688
|
|
|
1669
|
-
_this
|
|
1689
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1670
1690
|
_this.props.onStateChange(event);
|
|
1671
|
-
switch (event.data) {
|
|
1672
1691
|
|
|
1692
|
+
switch (event.data) {
|
|
1673
1693
|
case YouTube.PlayerState.ENDED:
|
|
1674
1694
|
_this.props.onEnd(event);
|
|
1695
|
+
|
|
1675
1696
|
break;
|
|
1676
1697
|
|
|
1677
1698
|
case YouTube.PlayerState.PLAYING:
|
|
1678
1699
|
_this.props.onPlay(event);
|
|
1700
|
+
|
|
1679
1701
|
break;
|
|
1680
1702
|
|
|
1681
1703
|
case YouTube.PlayerState.PAUSED:
|
|
1682
1704
|
_this.props.onPause(event);
|
|
1705
|
+
|
|
1683
1706
|
break;
|
|
1684
1707
|
}
|
|
1685
|
-
};
|
|
1708
|
+
});
|
|
1686
1709
|
|
|
1687
|
-
_this
|
|
1710
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1688
1711
|
return _this.props.onPlaybackRateChange(event);
|
|
1689
|
-
};
|
|
1712
|
+
});
|
|
1690
1713
|
|
|
1691
|
-
_this
|
|
1714
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1692
1715
|
return _this.props.onPlaybackQualityChange(event);
|
|
1693
|
-
};
|
|
1716
|
+
});
|
|
1694
1717
|
|
|
1695
|
-
_this
|
|
1718
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1696
1719
|
// do not attempt to create a player server-side, it won't work
|
|
1697
|
-
if (typeof document === 'undefined') return;
|
|
1698
|
-
|
|
1699
|
-
var playerOpts =
|
|
1720
|
+
if (typeof document === 'undefined') return; // create player
|
|
1721
|
+
|
|
1722
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1700
1723
|
// preload the `videoId` video if one is already given
|
|
1701
1724
|
videoId: _this.props.videoId
|
|
1702
1725
|
});
|
|
1703
|
-
|
|
1704
|
-
// attach event handlers
|
|
1726
|
+
|
|
1727
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1728
|
+
|
|
1705
1729
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1730
|
+
|
|
1706
1731
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1732
|
+
|
|
1707
1733
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1734
|
+
|
|
1708
1735
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1736
|
+
|
|
1709
1737
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1710
|
-
};
|
|
1738
|
+
});
|
|
1711
1739
|
|
|
1712
|
-
_this
|
|
1740
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1713
1741
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1714
|
-
};
|
|
1742
|
+
});
|
|
1715
1743
|
|
|
1716
|
-
_this
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1717
1745
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1718
1746
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1719
1747
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1720
1748
|
});
|
|
1721
|
-
};
|
|
1749
|
+
});
|
|
1722
1750
|
|
|
1723
|
-
_this
|
|
1751
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1724
1752
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1725
1753
|
_this.internalPlayer.stopVideo();
|
|
1754
|
+
|
|
1726
1755
|
return;
|
|
1727
|
-
}
|
|
1756
|
+
} // set queueing options
|
|
1757
|
+
|
|
1728
1758
|
|
|
1729
|
-
// set queueing options
|
|
1730
1759
|
var autoplay = false;
|
|
1731
1760
|
var opts = {
|
|
1732
1761
|
videoId: _this.props.videoId
|
|
1733
1762
|
};
|
|
1763
|
+
|
|
1734
1764
|
if ('playerVars' in _this.props.opts) {
|
|
1735
1765
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1766
|
+
|
|
1736
1767
|
if ('start' in _this.props.opts.playerVars) {
|
|
1737
1768
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1738
1769
|
}
|
|
1770
|
+
|
|
1739
1771
|
if ('end' in _this.props.opts.playerVars) {
|
|
1740
1772
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1741
1773
|
}
|
|
1742
|
-
}
|
|
1774
|
+
} // if autoplay is enabled loadVideoById
|
|
1775
|
+
|
|
1743
1776
|
|
|
1744
|
-
// if autoplay is enabled loadVideoById
|
|
1745
1777
|
if (autoplay) {
|
|
1746
1778
|
_this.internalPlayer.loadVideoById(opts);
|
|
1779
|
+
|
|
1747
1780
|
return;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1781
|
+
} // default behaviour just cues the video
|
|
1782
|
+
|
|
1783
|
+
|
|
1750
1784
|
_this.internalPlayer.cueVideoById(opts);
|
|
1751
|
-
};
|
|
1785
|
+
});
|
|
1752
1786
|
|
|
1753
|
-
_this
|
|
1787
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1754
1788
|
_this.container = container;
|
|
1755
|
-
};
|
|
1789
|
+
});
|
|
1756
1790
|
|
|
1757
1791
|
_this.container = null;
|
|
1758
1792
|
_this.internalPlayer = null;
|
|
1759
1793
|
return _this;
|
|
1760
1794
|
}
|
|
1761
1795
|
|
|
1762
|
-
/**
|
|
1763
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1764
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1765
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1766
|
-
*/
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
1796
|
_createClass(YouTube, [{
|
|
1770
|
-
key:
|
|
1797
|
+
key: "componentDidMount",
|
|
1771
1798
|
value: function componentDidMount() {
|
|
1772
1799
|
this.createPlayer();
|
|
1773
1800
|
}
|
|
1774
1801
|
}, {
|
|
1775
|
-
key:
|
|
1802
|
+
key: "componentDidUpdate",
|
|
1776
1803
|
value: function componentDidUpdate(prevProps) {
|
|
1777
1804
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1778
1805
|
this.updatePlayer();
|
|
@@ -1787,112 +1814,58 @@ var YouTube = function (_React$Component) {
|
|
|
1787
1814
|
}
|
|
1788
1815
|
}
|
|
1789
1816
|
}, {
|
|
1790
|
-
key:
|
|
1817
|
+
key: "componentWillUnmount",
|
|
1791
1818
|
value: function componentWillUnmount() {
|
|
1792
|
-
/**
|
|
1793
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1794
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1795
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1796
|
-
* this method isn't quick enough to reset the container element.
|
|
1819
|
+
/**
|
|
1820
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1821
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1822
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1823
|
+
* this method isn't quick enough to reset the container element.
|
|
1797
1824
|
*/
|
|
1798
1825
|
this.internalPlayer.destroy();
|
|
1799
1826
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
*
|
|
1803
|
-
*
|
|
1804
|
-
*
|
|
1805
|
-
* @param {Object} target - player object
|
|
1806
|
-
*/
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1811
|
-
*
|
|
1812
|
-
* @param {Object} event
|
|
1813
|
-
* @param {Integer} data - error type
|
|
1814
|
-
* @param {Object} target - player object
|
|
1815
|
-
*/
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
/**
|
|
1819
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1820
|
-
*
|
|
1821
|
-
* @param {Object} event
|
|
1822
|
-
* @param {Integer} data - status change type
|
|
1823
|
-
* @param {Object} target - actual YT player
|
|
1824
|
-
*/
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
/**
|
|
1828
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1829
|
-
*
|
|
1830
|
-
* @param {Object} event
|
|
1831
|
-
* @param {Float} data - playback rate
|
|
1832
|
-
* @param {Object} target - actual YT player
|
|
1833
|
-
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1838
|
-
*
|
|
1839
|
-
* @param {Object} event
|
|
1840
|
-
* @param {String} data - playback quality
|
|
1841
|
-
* @param {Object} target - actual YT player
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1847
|
-
*/
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1852
|
-
*/
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1857
|
-
* React should update this automatically but since the Youtube Player API
|
|
1858
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1859
|
-
*/
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
/**
|
|
1863
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1864
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1865
|
-
* Youtube Player API methods to update the video.
|
|
1827
|
+
/**
|
|
1828
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1829
|
+
*
|
|
1830
|
+
* @param {Object} event
|
|
1831
|
+
* @param {Object} target - player object
|
|
1866
1832
|
*/
|
|
1867
1833
|
|
|
1868
1834
|
}, {
|
|
1869
|
-
key:
|
|
1835
|
+
key: "render",
|
|
1870
1836
|
value: function render() {
|
|
1871
|
-
return React__default.createElement(
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1837
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1838
|
+
className: this.props.containerClassName
|
|
1839
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1840
|
+
id: this.props.id,
|
|
1841
|
+
className: this.props.className,
|
|
1842
|
+
ref: this.refContainer
|
|
1843
|
+
}));
|
|
1876
1844
|
}
|
|
1877
1845
|
}]);
|
|
1878
1846
|
|
|
1879
1847
|
return YouTube;
|
|
1880
1848
|
}(React__default.Component);
|
|
1881
1849
|
|
|
1850
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1851
|
+
UNSTARTED: -1,
|
|
1852
|
+
ENDED: 0,
|
|
1853
|
+
PLAYING: 1,
|
|
1854
|
+
PAUSED: 2,
|
|
1855
|
+
BUFFERING: 3,
|
|
1856
|
+
CUED: 5
|
|
1857
|
+
});
|
|
1858
|
+
|
|
1882
1859
|
YouTube.propTypes = {
|
|
1883
1860
|
videoId: PropTypes.string,
|
|
1884
|
-
|
|
1885
1861
|
// custom ID for player element
|
|
1886
1862
|
id: PropTypes.string,
|
|
1887
|
-
|
|
1888
1863
|
// custom class name for player element
|
|
1889
1864
|
className: PropTypes.string,
|
|
1890
1865
|
// custom class name for player container element
|
|
1891
1866
|
containerClassName: PropTypes.string,
|
|
1892
|
-
|
|
1893
1867
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1894
1868
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1895
|
-
|
|
1896
1869
|
// event subscriptions
|
|
1897
1870
|
onReady: PropTypes.func,
|
|
1898
1871
|
onError: PropTypes.func,
|
|
@@ -1904,6 +1877,7 @@ YouTube.propTypes = {
|
|
|
1904
1877
|
onPlaybackQualityChange: PropTypes.func
|
|
1905
1878
|
};
|
|
1906
1879
|
YouTube.defaultProps = {
|
|
1880
|
+
videoId: null,
|
|
1907
1881
|
id: null,
|
|
1908
1882
|
className: null,
|
|
1909
1883
|
opts: {},
|
|
@@ -1917,14 +1891,6 @@ YouTube.defaultProps = {
|
|
|
1917
1891
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1918
1892
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1919
1893
|
};
|
|
1920
|
-
YouTube.PlayerState = {
|
|
1921
|
-
UNSTARTED: -1,
|
|
1922
|
-
ENDED: 0,
|
|
1923
|
-
PLAYING: 1,
|
|
1924
|
-
PAUSED: 2,
|
|
1925
|
-
BUFFERING: 3,
|
|
1926
|
-
CUED: 5
|
|
1927
|
-
};
|
|
1928
1894
|
|
|
1929
1895
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1930
1896
|
var url = _ref.url;
|
|
@@ -2180,7 +2146,7 @@ var Media = function Media(_ref) {
|
|
|
2180
2146
|
React__default.createElement(
|
|
2181
2147
|
'a',
|
|
2182
2148
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2183
|
-
React__default.createElement(reactBootstrap.Figure.Image, _extends
|
|
2149
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2184
2150
|
caption && React__default.createElement(
|
|
2185
2151
|
reactBootstrap.Figure.Caption,
|
|
2186
2152
|
{ className: 'media-caption' },
|
|
@@ -2191,7 +2157,7 @@ var Media = function Media(_ref) {
|
|
|
2191
2157
|
} else if (caption && caption !== '') {
|
|
2192
2158
|
return React__default.createElement(
|
|
2193
2159
|
'a',
|
|
2194
|
-
_extends
|
|
2160
|
+
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2195
2161
|
href: uploadDoc.asset.url + '?dl='
|
|
2196
2162
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2197
2163
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2747,11 +2713,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2747
2713
|
|
|
2748
2714
|
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; }
|
|
2749
2715
|
|
|
2750
|
-
function
|
|
2716
|
+
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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2717
|
+
|
|
2718
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2751
2719
|
|
|
2752
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2720
|
+
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."); }
|
|
2753
2721
|
|
|
2754
|
-
function
|
|
2722
|
+
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); }
|
|
2723
|
+
|
|
2724
|
+
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; }
|
|
2725
|
+
|
|
2726
|
+
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; }
|
|
2755
2727
|
|
|
2756
2728
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2757
2729
|
|
|
@@ -2881,12 +2853,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2881
2853
|
|
|
2882
2854
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2883
2855
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2884
|
-
|
|
2885
|
-
var
|
|
2886
|
-
|
|
2856
|
+
|
|
2857
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2858
|
+
_step;
|
|
2887
2859
|
|
|
2888
2860
|
try {
|
|
2889
|
-
for (
|
|
2861
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2890
2862
|
var p = _step.value;
|
|
2891
2863
|
|
|
2892
2864
|
if (props$1[p]) {
|
|
@@ -2901,18 +2873,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2901
2873
|
}
|
|
2902
2874
|
}
|
|
2903
2875
|
} catch (err) {
|
|
2904
|
-
|
|
2905
|
-
_iteratorError = err;
|
|
2876
|
+
_iterator.e(err);
|
|
2906
2877
|
} finally {
|
|
2907
|
-
|
|
2908
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2909
|
-
_iterator["return"]();
|
|
2910
|
-
}
|
|
2911
|
-
} finally {
|
|
2912
|
-
if (_didIteratorError) {
|
|
2913
|
-
throw _iteratorError;
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2878
|
+
_iterator.f();
|
|
2916
2879
|
}
|
|
2917
2880
|
|
|
2918
2881
|
return config;
|
|
@@ -3059,12 +3022,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3059
3022
|
|
|
3060
3023
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3061
3024
|
|
|
3062
|
-
function
|
|
3025
|
+
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); }; }
|
|
3063
3026
|
|
|
3064
|
-
function
|
|
3027
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3065
3028
|
|
|
3066
3029
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3067
3030
|
|
|
3031
|
+
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; } }
|
|
3032
|
+
|
|
3033
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3034
|
+
|
|
3068
3035
|
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); }
|
|
3069
3036
|
|
|
3070
3037
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3073,14 +3040,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3073
3040
|
|
|
3074
3041
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3075
3042
|
|
|
3076
|
-
var Player =
|
|
3077
|
-
/*#__PURE__*/
|
|
3078
|
-
function (_Component) {
|
|
3043
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3079
3044
|
_inherits(Player, _Component);
|
|
3080
3045
|
|
|
3081
|
-
|
|
3082
|
-
var _getPrototypeOf2;
|
|
3046
|
+
var _super = _createSuper(Player);
|
|
3083
3047
|
|
|
3048
|
+
function Player() {
|
|
3084
3049
|
var _this;
|
|
3085
3050
|
|
|
3086
3051
|
_classCallCheck(this, Player);
|
|
@@ -3089,7 +3054,7 @@ function (_Component) {
|
|
|
3089
3054
|
_args[_key] = arguments[_key];
|
|
3090
3055
|
}
|
|
3091
3056
|
|
|
3092
|
-
_this =
|
|
3057
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3093
3058
|
|
|
3094
3059
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3095
3060
|
|
|
@@ -3414,7 +3379,7 @@ function (_Component) {
|
|
|
3414
3379
|
return null;
|
|
3415
3380
|
}
|
|
3416
3381
|
|
|
3417
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3382
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3418
3383
|
ref: this.ref,
|
|
3419
3384
|
onReady: this.handleReady,
|
|
3420
3385
|
onPlay: this.handlePlay,
|
|
@@ -3475,12 +3440,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3475
3440
|
|
|
3476
3441
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3477
3442
|
|
|
3478
|
-
function
|
|
3443
|
+
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); }; }
|
|
3479
3444
|
|
|
3480
|
-
function
|
|
3445
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3481
3446
|
|
|
3482
3447
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3483
3448
|
|
|
3449
|
+
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; } }
|
|
3450
|
+
|
|
3451
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3452
|
+
|
|
3484
3453
|
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); }
|
|
3485
3454
|
|
|
3486
3455
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3492,14 +3461,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3492
3461
|
function createSinglePlayer(activePlayer) {
|
|
3493
3462
|
var _class, _temp;
|
|
3494
3463
|
|
|
3495
|
-
return _temp = _class =
|
|
3496
|
-
/*#__PURE__*/
|
|
3497
|
-
function (_Component) {
|
|
3464
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3498
3465
|
_inherits(SinglePlayer, _Component);
|
|
3499
3466
|
|
|
3500
|
-
|
|
3501
|
-
var _getPrototypeOf2;
|
|
3467
|
+
var _super = _createSuper(SinglePlayer);
|
|
3502
3468
|
|
|
3469
|
+
function SinglePlayer() {
|
|
3503
3470
|
var _this;
|
|
3504
3471
|
|
|
3505
3472
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3508,7 +3475,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3508
3475
|
args[_key] = arguments[_key];
|
|
3509
3476
|
}
|
|
3510
3477
|
|
|
3511
|
-
_this =
|
|
3478
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3512
3479
|
|
|
3513
3480
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3514
3481
|
|
|
@@ -3576,12 +3543,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3576
3543
|
height = _this$props.height,
|
|
3577
3544
|
Wrapper = _this$props.wrapper;
|
|
3578
3545
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3579
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3546
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3580
3547
|
style: _objectSpread({}, style, {
|
|
3581
3548
|
width: width,
|
|
3582
3549
|
height: height
|
|
3583
3550
|
})
|
|
3584
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3551
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3585
3552
|
ref: this.ref,
|
|
3586
3553
|
activePlayer: activePlayer,
|
|
3587
3554
|
config: this.config
|
|
@@ -3627,23 +3594,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3627
3594
|
|
|
3628
3595
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3629
3596
|
|
|
3630
|
-
function
|
|
3597
|
+
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); }; }
|
|
3631
3598
|
|
|
3632
|
-
function
|
|
3599
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3633
3600
|
|
|
3634
3601
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3635
3602
|
|
|
3603
|
+
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; } }
|
|
3604
|
+
|
|
3605
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3606
|
+
|
|
3636
3607
|
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); }
|
|
3637
3608
|
|
|
3638
3609
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3639
3610
|
|
|
3640
3611
|
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; }
|
|
3641
3612
|
|
|
3642
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3613
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3614
|
+
|
|
3615
|
+
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."); }
|
|
3616
|
+
|
|
3617
|
+
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); }
|
|
3643
3618
|
|
|
3644
|
-
function
|
|
3619
|
+
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; }
|
|
3645
3620
|
|
|
3646
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3621
|
+
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; }
|
|
3647
3622
|
|
|
3648
3623
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3649
3624
|
|
|
@@ -3668,14 +3643,12 @@ function parsePlaylist(url) {
|
|
|
3668
3643
|
return {};
|
|
3669
3644
|
}
|
|
3670
3645
|
|
|
3671
|
-
var YouTube =
|
|
3672
|
-
/*#__PURE__*/
|
|
3673
|
-
function (_Component) {
|
|
3646
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3674
3647
|
_inherits(YouTube, _Component);
|
|
3675
3648
|
|
|
3676
|
-
|
|
3677
|
-
var _getPrototypeOf2;
|
|
3649
|
+
var _super = _createSuper(YouTube);
|
|
3678
3650
|
|
|
3651
|
+
function YouTube() {
|
|
3679
3652
|
var _this;
|
|
3680
3653
|
|
|
3681
3654
|
_classCallCheck(this, YouTube);
|
|
@@ -3684,7 +3657,7 @@ function (_Component) {
|
|
|
3684
3657
|
args[_key] = arguments[_key];
|
|
3685
3658
|
}
|
|
3686
3659
|
|
|
3687
|
-
_this =
|
|
3660
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3688
3661
|
|
|
3689
3662
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3690
3663
|
|
|
@@ -3872,9 +3845,9 @@ function (_Component) {
|
|
|
3872
3845
|
height: '100%',
|
|
3873
3846
|
display: display
|
|
3874
3847
|
};
|
|
3875
|
-
return _react["default"].createElement("div", {
|
|
3848
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3876
3849
|
style: style
|
|
3877
|
-
}, _react["default"].createElement("div", {
|
|
3850
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3878
3851
|
ref: this.ref
|
|
3879
3852
|
}));
|
|
3880
3853
|
}
|
|
@@ -3930,12 +3903,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3930
3903
|
|
|
3931
3904
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3932
3905
|
|
|
3933
|
-
function
|
|
3906
|
+
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); }; }
|
|
3934
3907
|
|
|
3935
|
-
function
|
|
3908
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3936
3909
|
|
|
3937
3910
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3938
3911
|
|
|
3912
|
+
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; } }
|
|
3913
|
+
|
|
3914
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3915
|
+
|
|
3939
3916
|
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); }
|
|
3940
3917
|
|
|
3941
3918
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3944,16 +3921,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3944
3921
|
|
|
3945
3922
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3946
3923
|
var SDK_GLOBAL = 'SC';
|
|
3947
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3924
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3948
3925
|
|
|
3949
|
-
var SoundCloud =
|
|
3950
|
-
/*#__PURE__*/
|
|
3951
|
-
function (_Component) {
|
|
3926
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3952
3927
|
_inherits(SoundCloud, _Component);
|
|
3953
3928
|
|
|
3954
|
-
|
|
3955
|
-
var _getPrototypeOf2;
|
|
3929
|
+
var _super = _createSuper(SoundCloud);
|
|
3956
3930
|
|
|
3931
|
+
function SoundCloud() {
|
|
3957
3932
|
var _this;
|
|
3958
3933
|
|
|
3959
3934
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3962,7 +3937,7 @@ function (_Component) {
|
|
|
3962
3937
|
args[_key] = arguments[_key];
|
|
3963
3938
|
}
|
|
3964
3939
|
|
|
3965
|
-
_this =
|
|
3940
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3966
3941
|
|
|
3967
3942
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3968
3943
|
|
|
@@ -4083,7 +4058,7 @@ function (_Component) {
|
|
|
4083
4058
|
height: '100%',
|
|
4084
4059
|
display: display
|
|
4085
4060
|
};
|
|
4086
|
-
return _react["default"].createElement("iframe", {
|
|
4061
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4087
4062
|
ref: this.ref,
|
|
4088
4063
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4089
4064
|
style: style,
|
|
@@ -4145,12 +4120,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4145
4120
|
|
|
4146
4121
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4147
4122
|
|
|
4148
|
-
function
|
|
4123
|
+
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); }; }
|
|
4149
4124
|
|
|
4150
|
-
function
|
|
4125
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4151
4126
|
|
|
4152
4127
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4153
4128
|
|
|
4129
|
+
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; } }
|
|
4130
|
+
|
|
4131
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4132
|
+
|
|
4154
4133
|
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); }
|
|
4155
4134
|
|
|
4156
4135
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4162,14 +4141,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4162
4141
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4163
4142
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4164
4143
|
|
|
4165
|
-
var Vimeo =
|
|
4166
|
-
/*#__PURE__*/
|
|
4167
|
-
function (_Component) {
|
|
4144
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4168
4145
|
_inherits(Vimeo, _Component);
|
|
4169
4146
|
|
|
4170
|
-
|
|
4171
|
-
var _getPrototypeOf2;
|
|
4147
|
+
var _super = _createSuper(Vimeo);
|
|
4172
4148
|
|
|
4149
|
+
function Vimeo() {
|
|
4173
4150
|
var _this;
|
|
4174
4151
|
|
|
4175
4152
|
_classCallCheck(this, Vimeo);
|
|
@@ -4178,7 +4155,7 @@ function (_Component) {
|
|
|
4178
4155
|
args[_key] = arguments[_key];
|
|
4179
4156
|
}
|
|
4180
4157
|
|
|
4181
|
-
_this =
|
|
4158
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4182
4159
|
|
|
4183
4160
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4184
4161
|
|
|
@@ -4335,7 +4312,7 @@ function (_Component) {
|
|
|
4335
4312
|
overflow: 'hidden',
|
|
4336
4313
|
display: display
|
|
4337
4314
|
};
|
|
4338
|
-
return _react["default"].createElement("div", {
|
|
4315
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4339
4316
|
key: this.props.url,
|
|
4340
4317
|
ref: this.ref,
|
|
4341
4318
|
style: style
|
|
@@ -4395,12 +4372,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4395
4372
|
|
|
4396
4373
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4397
4374
|
|
|
4398
|
-
function
|
|
4375
|
+
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); }; }
|
|
4399
4376
|
|
|
4400
|
-
function
|
|
4377
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4401
4378
|
|
|
4402
4379
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4403
4380
|
|
|
4381
|
+
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; } }
|
|
4382
|
+
|
|
4383
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4384
|
+
|
|
4404
4385
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4405
4386
|
|
|
4406
4387
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4413,14 +4394,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4413
4394
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4414
4395
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4415
4396
|
|
|
4416
|
-
var Facebook =
|
|
4417
|
-
/*#__PURE__*/
|
|
4418
|
-
function (_Component) {
|
|
4397
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4419
4398
|
_inherits(Facebook, _Component);
|
|
4420
4399
|
|
|
4421
|
-
|
|
4422
|
-
var _getPrototypeOf2;
|
|
4400
|
+
var _super = _createSuper(Facebook);
|
|
4423
4401
|
|
|
4402
|
+
function Facebook() {
|
|
4424
4403
|
var _this;
|
|
4425
4404
|
|
|
4426
4405
|
_classCallCheck(this, Facebook);
|
|
@@ -4429,7 +4408,7 @@ function (_Component) {
|
|
|
4429
4408
|
args[_key] = arguments[_key];
|
|
4430
4409
|
}
|
|
4431
4410
|
|
|
4432
|
-
_this =
|
|
4411
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4433
4412
|
|
|
4434
4413
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4435
4414
|
|
|
@@ -4545,7 +4524,7 @@ function (_Component) {
|
|
|
4545
4524
|
width: '100%',
|
|
4546
4525
|
height: '100%'
|
|
4547
4526
|
};
|
|
4548
|
-
return _react["default"].createElement("div", {
|
|
4527
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4549
4528
|
style: style,
|
|
4550
4529
|
id: this.playerID,
|
|
4551
4530
|
className: "fb-video",
|
|
@@ -4605,12 +4584,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4605
4584
|
|
|
4606
4585
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4607
4586
|
|
|
4608
|
-
function
|
|
4587
|
+
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); }; }
|
|
4609
4588
|
|
|
4610
|
-
function
|
|
4589
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4611
4590
|
|
|
4612
4591
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4613
4592
|
|
|
4593
|
+
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; } }
|
|
4594
|
+
|
|
4595
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4596
|
+
|
|
4614
4597
|
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); }
|
|
4615
4598
|
|
|
4616
4599
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4621,14 +4604,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4621
4604
|
var SDK_GLOBAL = 'playerjs';
|
|
4622
4605
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4623
4606
|
|
|
4624
|
-
var Streamable =
|
|
4625
|
-
/*#__PURE__*/
|
|
4626
|
-
function (_Component) {
|
|
4607
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4627
4608
|
_inherits(Streamable, _Component);
|
|
4628
4609
|
|
|
4629
|
-
|
|
4630
|
-
var _getPrototypeOf2;
|
|
4610
|
+
var _super = _createSuper(Streamable);
|
|
4631
4611
|
|
|
4612
|
+
function Streamable() {
|
|
4632
4613
|
var _this;
|
|
4633
4614
|
|
|
4634
4615
|
_classCallCheck(this, Streamable);
|
|
@@ -4637,7 +4618,7 @@ function (_Component) {
|
|
|
4637
4618
|
args[_key] = arguments[_key];
|
|
4638
4619
|
}
|
|
4639
4620
|
|
|
4640
|
-
_this =
|
|
4621
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4641
4622
|
|
|
4642
4623
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4643
4624
|
|
|
@@ -4757,7 +4738,7 @@ function (_Component) {
|
|
|
4757
4738
|
width: '100%',
|
|
4758
4739
|
height: '100%'
|
|
4759
4740
|
};
|
|
4760
|
-
return _react["default"].createElement("iframe", {
|
|
4741
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4761
4742
|
ref: this.ref,
|
|
4762
4743
|
src: "https://streamable.com/o/".concat(id),
|
|
4763
4744
|
frameBorder: "0",
|
|
@@ -4818,12 +4799,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4818
4799
|
|
|
4819
4800
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4820
4801
|
|
|
4821
|
-
function
|
|
4802
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4822
4803
|
|
|
4823
|
-
function
|
|
4804
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4824
4805
|
|
|
4825
4806
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4826
4807
|
|
|
4808
|
+
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; } }
|
|
4809
|
+
|
|
4810
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4811
|
+
|
|
4827
4812
|
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); }
|
|
4828
4813
|
|
|
4829
4814
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4834,26 +4819,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4834
4819
|
var SDK_GLOBAL = 'Wistia';
|
|
4835
4820
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4836
4821
|
|
|
4837
|
-
var Wistia =
|
|
4838
|
-
/*#__PURE__*/
|
|
4839
|
-
function (_Component) {
|
|
4822
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4840
4823
|
_inherits(Wistia, _Component);
|
|
4841
4824
|
|
|
4842
|
-
|
|
4843
|
-
var _getPrototypeOf2;
|
|
4825
|
+
var _super = _createSuper(Wistia);
|
|
4844
4826
|
|
|
4827
|
+
function Wistia() {
|
|
4845
4828
|
var _this;
|
|
4846
4829
|
|
|
4847
4830
|
_classCallCheck(this, Wistia);
|
|
4848
4831
|
|
|
4849
|
-
for (var _len = arguments.length,
|
|
4850
|
-
|
|
4832
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4833
|
+
_args[_key] = arguments[_key];
|
|
4851
4834
|
}
|
|
4852
4835
|
|
|
4853
|
-
_this =
|
|
4836
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4854
4837
|
|
|
4855
4838
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4856
4839
|
|
|
4840
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4841
|
+
var _this$props;
|
|
4842
|
+
|
|
4843
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4844
|
+
});
|
|
4845
|
+
|
|
4846
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4847
|
+
var _this$props2;
|
|
4848
|
+
|
|
4849
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4850
|
+
});
|
|
4851
|
+
|
|
4852
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4853
|
+
var _this$props3;
|
|
4854
|
+
|
|
4855
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4856
|
+
});
|
|
4857
|
+
|
|
4858
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4859
|
+
var _this$props4;
|
|
4860
|
+
|
|
4861
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4862
|
+
});
|
|
4863
|
+
|
|
4857
4864
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4858
4865
|
_this.callPlayer('mute');
|
|
4859
4866
|
});
|
|
@@ -4875,17 +4882,13 @@ function (_Component) {
|
|
|
4875
4882
|
value: function load(url) {
|
|
4876
4883
|
var _this2 = this;
|
|
4877
4884
|
|
|
4878
|
-
var _this$
|
|
4879
|
-
playing = _this$
|
|
4880
|
-
muted = _this$
|
|
4881
|
-
controls = _this$
|
|
4882
|
-
_onReady = _this$
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
onSeek = _this$props.onSeek,
|
|
4886
|
-
onEnded = _this$props.onEnded,
|
|
4887
|
-
config = _this$props.config,
|
|
4888
|
-
onError = _this$props.onError;
|
|
4885
|
+
var _this$props5 = this.props,
|
|
4886
|
+
playing = _this$props5.playing,
|
|
4887
|
+
muted = _this$props5.muted,
|
|
4888
|
+
controls = _this$props5.controls,
|
|
4889
|
+
_onReady = _this$props5.onReady,
|
|
4890
|
+
config = _this$props5.config,
|
|
4891
|
+
onError = _this$props5.onError;
|
|
4889
4892
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4890
4893
|
window._wq = window._wq || [];
|
|
4891
4894
|
|
|
@@ -4902,19 +4905,28 @@ function (_Component) {
|
|
|
4902
4905
|
|
|
4903
4906
|
_this2.unbind();
|
|
4904
4907
|
|
|
4905
|
-
_this2.player.bind('play', onPlay);
|
|
4908
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4906
4909
|
|
|
4907
|
-
_this2.player.bind('pause', onPause);
|
|
4910
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4908
4911
|
|
|
4909
|
-
_this2.player.bind('seek', onSeek);
|
|
4912
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4910
4913
|
|
|
4911
|
-
_this2.player.bind('end', onEnded);
|
|
4914
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4912
4915
|
|
|
4913
4916
|
_onReady();
|
|
4914
4917
|
}
|
|
4915
4918
|
});
|
|
4916
4919
|
}, onError);
|
|
4917
4920
|
}
|
|
4921
|
+
}, {
|
|
4922
|
+
key: "unbind",
|
|
4923
|
+
value: function unbind() {
|
|
4924
|
+
this.player.unbind('play', this.onPlay);
|
|
4925
|
+
this.player.unbind('pause', this.onPause);
|
|
4926
|
+
this.player.unbind('seek', this.onSeek);
|
|
4927
|
+
this.player.unbind('end', this.onEnded);
|
|
4928
|
+
} // Proxy methods to prevent listener leaks
|
|
4929
|
+
|
|
4918
4930
|
}, {
|
|
4919
4931
|
key: "play",
|
|
4920
4932
|
value: function play() {
|
|
@@ -4925,19 +4937,6 @@ function (_Component) {
|
|
|
4925
4937
|
value: function pause() {
|
|
4926
4938
|
this.callPlayer('pause');
|
|
4927
4939
|
}
|
|
4928
|
-
}, {
|
|
4929
|
-
key: "unbind",
|
|
4930
|
-
value: function unbind() {
|
|
4931
|
-
var _this$props2 = this.props,
|
|
4932
|
-
onPlay = _this$props2.onPlay,
|
|
4933
|
-
onPause = _this$props2.onPause,
|
|
4934
|
-
onSeek = _this$props2.onSeek,
|
|
4935
|
-
onEnded = _this$props2.onEnded;
|
|
4936
|
-
this.player.unbind('play', onPlay);
|
|
4937
|
-
this.player.unbind('pause', onPause);
|
|
4938
|
-
this.player.unbind('seek', onSeek);
|
|
4939
|
-
this.player.unbind('end', onEnded);
|
|
4940
|
-
}
|
|
4941
4940
|
}, {
|
|
4942
4941
|
key: "stop",
|
|
4943
4942
|
value: function stop() {
|
|
@@ -4983,7 +4982,7 @@ function (_Component) {
|
|
|
4983
4982
|
width: '100%',
|
|
4984
4983
|
height: '100%'
|
|
4985
4984
|
};
|
|
4986
|
-
return _react["default"].createElement("div", {
|
|
4985
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4987
4986
|
key: id,
|
|
4988
4987
|
className: className,
|
|
4989
4988
|
style: style
|
|
@@ -5043,12 +5042,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5043
5042
|
|
|
5044
5043
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5045
5044
|
|
|
5046
|
-
function
|
|
5045
|
+
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); }; }
|
|
5047
5046
|
|
|
5048
|
-
function
|
|
5047
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5049
5048
|
|
|
5050
5049
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5051
5050
|
|
|
5051
|
+
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; } }
|
|
5052
|
+
|
|
5053
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5054
|
+
|
|
5052
5055
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5053
5056
|
|
|
5054
5057
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5061,14 +5064,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5061
5064
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5062
5065
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5063
5066
|
|
|
5064
|
-
var Twitch =
|
|
5065
|
-
/*#__PURE__*/
|
|
5066
|
-
function (_Component) {
|
|
5067
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5067
5068
|
_inherits(Twitch, _Component);
|
|
5068
5069
|
|
|
5069
|
-
|
|
5070
|
-
var _getPrototypeOf2;
|
|
5070
|
+
var _super = _createSuper(Twitch);
|
|
5071
5071
|
|
|
5072
|
+
function Twitch() {
|
|
5072
5073
|
var _this;
|
|
5073
5074
|
|
|
5074
5075
|
_classCallCheck(this, Twitch);
|
|
@@ -5077,7 +5078,7 @@ function (_Component) {
|
|
|
5077
5078
|
args[_key] = arguments[_key];
|
|
5078
5079
|
}
|
|
5079
5080
|
|
|
5080
|
-
_this =
|
|
5081
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5081
5082
|
|
|
5082
5083
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5083
5084
|
|
|
@@ -5198,7 +5199,7 @@ function (_Component) {
|
|
|
5198
5199
|
width: '100%',
|
|
5199
5200
|
height: '100%'
|
|
5200
5201
|
};
|
|
5201
|
-
return _react["default"].createElement("div", {
|
|
5202
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5202
5203
|
style: style,
|
|
5203
5204
|
id: this.playerID
|
|
5204
5205
|
});
|
|
@@ -5251,11 +5252,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5251
5252
|
|
|
5252
5253
|
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; }
|
|
5253
5254
|
|
|
5254
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5255
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5256
|
+
|
|
5257
|
+
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."); }
|
|
5258
|
+
|
|
5259
|
+
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); }
|
|
5255
5260
|
|
|
5256
|
-
function
|
|
5261
|
+
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; }
|
|
5257
5262
|
|
|
5258
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5263
|
+
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; }
|
|
5259
5264
|
|
|
5260
5265
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5261
5266
|
|
|
@@ -5265,12 +5270,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5265
5270
|
|
|
5266
5271
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5267
5272
|
|
|
5268
|
-
function
|
|
5273
|
+
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); }; }
|
|
5269
5274
|
|
|
5270
|
-
function
|
|
5275
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5271
5276
|
|
|
5272
5277
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5273
5278
|
|
|
5279
|
+
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; } }
|
|
5280
|
+
|
|
5281
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5282
|
+
|
|
5274
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); }
|
|
5275
5284
|
|
|
5276
5285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5282,14 +5291,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5282
5291
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5283
5292
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5284
5293
|
|
|
5285
|
-
var DailyMotion =
|
|
5286
|
-
/*#__PURE__*/
|
|
5287
|
-
function (_Component) {
|
|
5294
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5288
5295
|
_inherits(DailyMotion, _Component);
|
|
5289
5296
|
|
|
5290
|
-
|
|
5291
|
-
var _getPrototypeOf2;
|
|
5297
|
+
var _super = _createSuper(DailyMotion);
|
|
5292
5298
|
|
|
5299
|
+
function DailyMotion() {
|
|
5293
5300
|
var _this;
|
|
5294
5301
|
|
|
5295
5302
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5298,7 +5305,7 @@ function (_Component) {
|
|
|
5298
5305
|
args[_key] = arguments[_key];
|
|
5299
5306
|
}
|
|
5300
5307
|
|
|
5301
|
-
_this =
|
|
5308
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5302
5309
|
|
|
5303
5310
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5304
5311
|
|
|
@@ -5427,9 +5434,9 @@ function (_Component) {
|
|
|
5427
5434
|
height: '100%',
|
|
5428
5435
|
display: display
|
|
5429
5436
|
};
|
|
5430
|
-
return _react["default"].createElement("div", {
|
|
5437
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5431
5438
|
style: style
|
|
5432
|
-
}, _react["default"].createElement("div", {
|
|
5439
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5433
5440
|
ref: this.ref
|
|
5434
5441
|
}));
|
|
5435
5442
|
}
|
|
@@ -5487,12 +5494,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5487
5494
|
|
|
5488
5495
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5489
5496
|
|
|
5490
|
-
function
|
|
5497
|
+
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); }; }
|
|
5491
5498
|
|
|
5492
|
-
function
|
|
5499
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5493
5500
|
|
|
5494
5501
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5495
5502
|
|
|
5503
|
+
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; } }
|
|
5504
|
+
|
|
5505
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5506
|
+
|
|
5496
5507
|
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); }
|
|
5497
5508
|
|
|
5498
5509
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5503,14 +5514,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5503
5514
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5504
5515
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5505
5516
|
|
|
5506
|
-
var Mixcloud =
|
|
5507
|
-
/*#__PURE__*/
|
|
5508
|
-
function (_Component) {
|
|
5517
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5509
5518
|
_inherits(Mixcloud, _Component);
|
|
5510
5519
|
|
|
5511
|
-
|
|
5512
|
-
var _getPrototypeOf2;
|
|
5520
|
+
var _super = _createSuper(Mixcloud);
|
|
5513
5521
|
|
|
5522
|
+
function Mixcloud() {
|
|
5514
5523
|
var _this;
|
|
5515
5524
|
|
|
5516
5525
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5519,7 +5528,7 @@ function (_Component) {
|
|
|
5519
5528
|
args[_key] = arguments[_key];
|
|
5520
5529
|
}
|
|
5521
5530
|
|
|
5522
|
-
_this =
|
|
5531
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5523
5532
|
|
|
5524
5533
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5525
5534
|
|
|
@@ -5622,7 +5631,7 @@ function (_Component) {
|
|
|
5622
5631
|
})); // We have to give the iframe a key here to prevent a
|
|
5623
5632
|
// weird dialog appearing when loading a new track
|
|
5624
5633
|
|
|
5625
|
-
return _react["default"].createElement("iframe", {
|
|
5634
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5626
5635
|
key: id,
|
|
5627
5636
|
ref: this.ref,
|
|
5628
5637
|
style: style,
|
|
@@ -5682,23 +5691,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5682
5691
|
|
|
5683
5692
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5684
5693
|
|
|
5685
|
-
function
|
|
5694
|
+
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); }; }
|
|
5686
5695
|
|
|
5687
|
-
function
|
|
5696
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5688
5697
|
|
|
5689
5698
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5690
5699
|
|
|
5700
|
+
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; } }
|
|
5701
|
+
|
|
5702
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5703
|
+
|
|
5691
5704
|
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); }
|
|
5692
5705
|
|
|
5693
5706
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5694
5707
|
|
|
5695
5708
|
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; }
|
|
5696
5709
|
|
|
5710
|
+
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; } } }; }
|
|
5711
|
+
|
|
5712
|
+
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); }
|
|
5713
|
+
|
|
5714
|
+
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; }
|
|
5715
|
+
|
|
5697
5716
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5698
5717
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5699
5718
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5700
5719
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5701
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5720
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5702
5721
|
var HLS_GLOBAL = 'Hls';
|
|
5703
5722
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5704
5723
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5707,12 +5726,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5707
5726
|
|
|
5708
5727
|
function canPlay(url) {
|
|
5709
5728
|
if (url instanceof Array) {
|
|
5710
|
-
var
|
|
5711
|
-
|
|
5712
|
-
var _iteratorError = undefined;
|
|
5729
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5730
|
+
_step;
|
|
5713
5731
|
|
|
5714
5732
|
try {
|
|
5715
|
-
for (
|
|
5733
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5716
5734
|
var item = _step.value;
|
|
5717
5735
|
|
|
5718
5736
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5724,18 +5742,9 @@ function canPlay(url) {
|
|
|
5724
5742
|
}
|
|
5725
5743
|
}
|
|
5726
5744
|
} catch (err) {
|
|
5727
|
-
|
|
5728
|
-
_iteratorError = err;
|
|
5745
|
+
_iterator.e(err);
|
|
5729
5746
|
} finally {
|
|
5730
|
-
|
|
5731
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5732
|
-
_iterator["return"]();
|
|
5733
|
-
}
|
|
5734
|
-
} finally {
|
|
5735
|
-
if (_didIteratorError) {
|
|
5736
|
-
throw _iteratorError;
|
|
5737
|
-
}
|
|
5738
|
-
}
|
|
5747
|
+
_iterator.f();
|
|
5739
5748
|
}
|
|
5740
5749
|
|
|
5741
5750
|
return false;
|
|
@@ -5759,14 +5768,12 @@ function canEnablePIP(url) {
|
|
|
5759
5768
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5760
5769
|
}
|
|
5761
5770
|
|
|
5762
|
-
var FilePlayer =
|
|
5763
|
-
/*#__PURE__*/
|
|
5764
|
-
function (_Component) {
|
|
5771
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5765
5772
|
_inherits(FilePlayer, _Component);
|
|
5766
5773
|
|
|
5767
|
-
|
|
5768
|
-
var _getPrototypeOf2;
|
|
5774
|
+
var _super = _createSuper(FilePlayer);
|
|
5769
5775
|
|
|
5776
|
+
function FilePlayer() {
|
|
5770
5777
|
var _this;
|
|
5771
5778
|
|
|
5772
5779
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5775,7 +5782,7 @@ function (_Component) {
|
|
|
5775
5782
|
_args[_key] = arguments[_key];
|
|
5776
5783
|
}
|
|
5777
5784
|
|
|
5778
|
-
_this =
|
|
5785
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5779
5786
|
|
|
5780
5787
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5781
5788
|
var _this$props;
|
|
@@ -5862,19 +5869,19 @@ function (_Component) {
|
|
|
5862
5869
|
|
|
5863
5870
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5864
5871
|
if (typeof source === 'string') {
|
|
5865
|
-
return _react["default"].createElement("source", {
|
|
5872
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5866
5873
|
key: index,
|
|
5867
5874
|
src: source
|
|
5868
5875
|
});
|
|
5869
5876
|
}
|
|
5870
5877
|
|
|
5871
|
-
return _react["default"].createElement("source", _extends({
|
|
5878
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5872
5879
|
key: index
|
|
5873
5880
|
}, source));
|
|
5874
5881
|
});
|
|
5875
5882
|
|
|
5876
5883
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5877
|
-
return _react["default"].createElement("track", _extends({
|
|
5884
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5878
5885
|
key: index
|
|
5879
5886
|
}, track));
|
|
5880
5887
|
});
|
|
@@ -5912,6 +5919,10 @@ function (_Component) {
|
|
|
5912
5919
|
key: "componentWillUnmount",
|
|
5913
5920
|
value: function componentWillUnmount() {
|
|
5914
5921
|
this.removeListeners(this.player);
|
|
5922
|
+
|
|
5923
|
+
if (this.hls) {
|
|
5924
|
+
this.hls.destroy();
|
|
5925
|
+
}
|
|
5915
5926
|
}
|
|
5916
5927
|
}, {
|
|
5917
5928
|
key: "addListeners",
|
|
@@ -6042,10 +6053,6 @@ function (_Component) {
|
|
|
6042
6053
|
value: function stop() {
|
|
6043
6054
|
this.player.removeAttribute('src');
|
|
6044
6055
|
|
|
6045
|
-
if (this.hls) {
|
|
6046
|
-
this.hls.destroy();
|
|
6047
|
-
}
|
|
6048
|
-
|
|
6049
6056
|
if (this.dash) {
|
|
6050
6057
|
this.dash.reset();
|
|
6051
6058
|
}
|
|
@@ -6157,7 +6164,7 @@ function (_Component) {
|
|
|
6157
6164
|
width: width === 'auto' ? width : '100%',
|
|
6158
6165
|
height: height === 'auto' ? height : '100%'
|
|
6159
6166
|
};
|
|
6160
|
-
return _react["default"].createElement(Element, _extends({
|
|
6167
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6161
6168
|
ref: this.ref,
|
|
6162
6169
|
src: this.getSource(url),
|
|
6163
6170
|
style: style,
|
|
@@ -6247,12 +6254,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6247
6254
|
|
|
6248
6255
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6249
6256
|
|
|
6250
|
-
function
|
|
6257
|
+
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); }; }
|
|
6251
6258
|
|
|
6252
|
-
function
|
|
6259
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6253
6260
|
|
|
6254
6261
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6255
6262
|
|
|
6263
|
+
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; } }
|
|
6264
|
+
|
|
6265
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6266
|
+
|
|
6256
6267
|
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); }
|
|
6257
6268
|
|
|
6258
6269
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6261,14 +6272,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6261
6272
|
|
|
6262
6273
|
var ICON_SIZE = '64px';
|
|
6263
6274
|
|
|
6264
|
-
var Preview =
|
|
6265
|
-
/*#__PURE__*/
|
|
6266
|
-
function (_Component) {
|
|
6275
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6267
6276
|
_inherits(Preview, _Component);
|
|
6268
6277
|
|
|
6269
|
-
|
|
6270
|
-
var _getPrototypeOf2;
|
|
6278
|
+
var _super = _createSuper(Preview);
|
|
6271
6279
|
|
|
6280
|
+
function Preview() {
|
|
6272
6281
|
var _this;
|
|
6273
6282
|
|
|
6274
6283
|
_classCallCheck(this, Preview);
|
|
@@ -6277,7 +6286,7 @@ function (_Component) {
|
|
|
6277
6286
|
args[_key] = arguments[_key];
|
|
6278
6287
|
}
|
|
6279
6288
|
|
|
6280
|
-
_this =
|
|
6289
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6281
6290
|
|
|
6282
6291
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6283
6292
|
|
|
@@ -6375,15 +6384,15 @@ function (_Component) {
|
|
|
6375
6384
|
}
|
|
6376
6385
|
};
|
|
6377
6386
|
|
|
6378
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6387
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6379
6388
|
style: styles.shadow,
|
|
6380
6389
|
className: "react-player__shadow"
|
|
6381
|
-
}, _react["default"].createElement("div", {
|
|
6390
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6382
6391
|
style: styles.playIcon,
|
|
6383
6392
|
className: "react-player__play-icon"
|
|
6384
6393
|
}));
|
|
6385
6394
|
|
|
6386
|
-
return _react["default"].createElement("div", {
|
|
6395
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6387
6396
|
style: styles.preview,
|
|
6388
6397
|
className: "react-player__preview",
|
|
6389
6398
|
onClick: onClick
|
|
@@ -6420,6 +6429,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6420
6429
|
|
|
6421
6430
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6422
6431
|
|
|
6432
|
+
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; } } }; }
|
|
6433
|
+
|
|
6434
|
+
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); }
|
|
6435
|
+
|
|
6436
|
+
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; }
|
|
6437
|
+
|
|
6423
6438
|
var PRELOAD_PLAYERS = [{
|
|
6424
6439
|
Player: YouTube_1.YouTube,
|
|
6425
6440
|
configKey: 'youtube',
|
|
@@ -6440,16 +6455,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6440
6455
|
|
|
6441
6456
|
function renderPreloadPlayers(url, controls, config) {
|
|
6442
6457
|
var players = [];
|
|
6443
|
-
|
|
6444
|
-
var
|
|
6445
|
-
|
|
6458
|
+
|
|
6459
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6460
|
+
_step;
|
|
6446
6461
|
|
|
6447
6462
|
try {
|
|
6448
|
-
for (
|
|
6463
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6449
6464
|
var player = _step.value;
|
|
6450
6465
|
|
|
6451
6466
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6452
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6467
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6453
6468
|
key: player.Player.displayName,
|
|
6454
6469
|
activePlayer: player.Player,
|
|
6455
6470
|
url: player.url,
|
|
@@ -6461,18 +6476,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6461
6476
|
}
|
|
6462
6477
|
}
|
|
6463
6478
|
} catch (err) {
|
|
6464
|
-
|
|
6465
|
-
_iteratorError = err;
|
|
6479
|
+
_iterator.e(err);
|
|
6466
6480
|
} finally {
|
|
6467
|
-
|
|
6468
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6469
|
-
_iterator["return"]();
|
|
6470
|
-
}
|
|
6471
|
-
} finally {
|
|
6472
|
-
if (_didIteratorError) {
|
|
6473
|
-
throw _iteratorError;
|
|
6474
|
-
}
|
|
6475
|
-
}
|
|
6481
|
+
_iterator.f();
|
|
6476
6482
|
}
|
|
6477
6483
|
|
|
6478
6484
|
return players;
|
|
@@ -6596,13 +6602,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6596
6602
|
|
|
6597
6603
|
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); }
|
|
6598
6604
|
|
|
6599
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6605
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6606
|
+
|
|
6607
|
+
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."); }
|
|
6608
|
+
|
|
6609
|
+
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); }
|
|
6600
6610
|
|
|
6601
|
-
function
|
|
6611
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6602
6612
|
|
|
6603
|
-
function
|
|
6613
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6604
6614
|
|
|
6605
|
-
function
|
|
6615
|
+
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; }
|
|
6606
6616
|
|
|
6607
6617
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6608
6618
|
|
|
@@ -6610,12 +6620,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6610
6620
|
|
|
6611
6621
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6612
6622
|
|
|
6613
|
-
function
|
|
6623
|
+
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); }; }
|
|
6614
6624
|
|
|
6615
|
-
function
|
|
6625
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6616
6626
|
|
|
6617
6627
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6618
6628
|
|
|
6629
|
+
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; } }
|
|
6630
|
+
|
|
6631
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6632
|
+
|
|
6619
6633
|
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); }
|
|
6620
6634
|
|
|
6621
6635
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6625,14 +6639,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6625
6639
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6626
6640
|
var customPlayers = [];
|
|
6627
6641
|
|
|
6628
|
-
var ReactPlayer =
|
|
6629
|
-
/*#__PURE__*/
|
|
6630
|
-
function (_Component) {
|
|
6642
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6631
6643
|
_inherits(ReactPlayer, _Component);
|
|
6632
6644
|
|
|
6633
|
-
|
|
6634
|
-
var _getPrototypeOf2;
|
|
6645
|
+
var _super = _createSuper(ReactPlayer);
|
|
6635
6646
|
|
|
6647
|
+
function ReactPlayer() {
|
|
6636
6648
|
var _this;
|
|
6637
6649
|
|
|
6638
6650
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6641,7 +6653,7 @@ function (_Component) {
|
|
|
6641
6653
|
args[_key] = arguments[_key];
|
|
6642
6654
|
}
|
|
6643
6655
|
|
|
6644
|
-
_this =
|
|
6656
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6645
6657
|
|
|
6646
6658
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6647
6659
|
|
|
@@ -6752,7 +6764,7 @@ function (_Component) {
|
|
|
6752
6764
|
key: "renderActivePlayer",
|
|
6753
6765
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6754
6766
|
if (!url) return null;
|
|
6755
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6767
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6756
6768
|
key: activePlayer.displayName,
|
|
6757
6769
|
ref: this.activePlayerRef,
|
|
6758
6770
|
config: this.config,
|
|
@@ -6789,14 +6801,14 @@ function (_Component) {
|
|
|
6789
6801
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6790
6802
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6791
6803
|
|
|
6792
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6804
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6793
6805
|
url: url,
|
|
6794
6806
|
light: light,
|
|
6795
6807
|
playIcon: playIcon,
|
|
6796
6808
|
onClick: this.handleClickPreview
|
|
6797
6809
|
});
|
|
6798
6810
|
|
|
6799
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6811
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6800
6812
|
ref: this.wrapperRef,
|
|
6801
6813
|
style: _objectSpread({}, style, {
|
|
6802
6814
|
width: width,
|
|
@@ -7308,7 +7320,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7308
7320
|
{ className: 'mb-3' },
|
|
7309
7321
|
nodes.videos[series - 1].title
|
|
7310
7322
|
),
|
|
7311
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends
|
|
7323
|
+
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()))
|
|
7312
7324
|
),
|
|
7313
7325
|
React__default.createElement(
|
|
7314
7326
|
'style',
|
|
@@ -7738,7 +7750,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7738
7750
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7739
7751
|
React__default.createElement(
|
|
7740
7752
|
'a',
|
|
7741
|
-
_extends
|
|
7753
|
+
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7742
7754
|
React__default.createElement(
|
|
7743
7755
|
'div',
|
|
7744
7756
|
{ className: 'multi-figure-image-container' },
|
|
@@ -7783,7 +7795,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
7783
7795
|
};
|
|
7784
7796
|
|
|
7785
7797
|
var Figure = dynamic(function () {
|
|
7786
|
-
return Promise.resolve().then(function () { return require('./Figure-
|
|
7798
|
+
return Promise.resolve().then(function () { return require('./Figure-05b73e6a.js'); });
|
|
7787
7799
|
}, { ssr: false });
|
|
7788
7800
|
|
|
7789
7801
|
var ScrollToElement = function ScrollToElement(elementId) {
|