@mjhls/mjh-framework 1.0.248 → 1.0.250
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 +171 -171
- package/dist/cjs/{AdSlot-c472fff6.js → AdSlot-58638d45.js} +26 -34
- package/dist/cjs/DeckContent.js +10 -10
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{GridContent-463c504f.js → GridContent-85c7b623.js} +3 -3
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-18cef899.js → Normal-77dfd44a.js} +30 -30
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/{YoutubeGroup-5f480446.js → YoutubeGroup-fd44f8a0.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +591 -601
- package/dist/esm/{AdSlot-bdd7a629.js → AdSlot-1e5a6a2f.js} +26 -34
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{GridContent-2a48fb19.js → GridContent-0ee59a38.js} +2 -2
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-4c82c9c2.js → Normal-48ff37c3.js} +30 -30
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/{YoutubeGroup-78d93d44.js → YoutubeGroup-1b3eca73.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/index.js +595 -605
- package/package.json +102 -103
package/dist/cjs/index.js
CHANGED
|
@@ -26,21 +26,21 @@ var Link = _interopDefault(require('next/link'));
|
|
|
26
26
|
var Router = require('next/router');
|
|
27
27
|
var Router__default = _interopDefault(Router);
|
|
28
28
|
require('react-dom');
|
|
29
|
-
var index$1 = require('./index-
|
|
29
|
+
var index$1 = require('./index-39beccb3.js');
|
|
30
30
|
require('./index-fa0fb52c.js');
|
|
31
31
|
var entities = require('./entities-310b46ee.js');
|
|
32
32
|
var slicedToArray = require('./slicedToArray-e38fb29d.js');
|
|
33
|
-
var AdSlot = require('./AdSlot-
|
|
33
|
+
var AdSlot = require('./AdSlot-58638d45.js');
|
|
34
34
|
require('./promise-b96c61f8.js');
|
|
35
35
|
var DeckContent = require('./DeckContent.js');
|
|
36
36
|
require('./get-1f91592f.js');
|
|
37
|
-
var GridContent = require('./GridContent-
|
|
37
|
+
var GridContent = require('./GridContent-85c7b623.js');
|
|
38
38
|
var DeckQueue = require('./DeckQueue.js');
|
|
39
39
|
require('react-bootstrap/Media');
|
|
40
40
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
41
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
41
|
+
var TaxonomyCard = require('./TaxonomyCard-b5074d6e.js');
|
|
42
42
|
var GroupDeck = require('./GroupDeck.js');
|
|
43
|
-
var YoutubeGroup = require('./YoutubeGroup-
|
|
43
|
+
var YoutubeGroup = require('./YoutubeGroup-fd44f8a0.js');
|
|
44
44
|
var reactBootstrap = require('react-bootstrap');
|
|
45
45
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
46
46
|
var index_esm = require('./index.esm-340d3792.js');
|
|
@@ -52,7 +52,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
52
52
|
require('react-bootstrap/Badge');
|
|
53
53
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
54
54
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
55
|
-
var TemplateNormal = require('./Normal-
|
|
55
|
+
var TemplateNormal = require('./Normal-77dfd44a.js');
|
|
56
56
|
require('react-bootstrap/ListGroup');
|
|
57
57
|
var Head = _interopDefault(require('next/head'));
|
|
58
58
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -3048,21 +3048,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3048
3048
|
);
|
|
3049
3049
|
};
|
|
3050
3050
|
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3051
|
+
// do not edit .js files directly - edit src/index.jst
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
3054
|
|
|
3055
3055
|
var fastDeepEqual = function equal(a, b) {
|
|
3056
3056
|
if (a === b) return true;
|
|
3057
3057
|
|
|
3058
3058
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3059
|
-
|
|
3060
|
-
, arrB = isArray(b)
|
|
3061
|
-
, i
|
|
3062
|
-
, length
|
|
3063
|
-
, key;
|
|
3059
|
+
if (a.constructor !== b.constructor) return false;
|
|
3064
3060
|
|
|
3065
|
-
|
|
3061
|
+
var length, i, keys;
|
|
3062
|
+
if (Array.isArray(a)) {
|
|
3066
3063
|
length = a.length;
|
|
3067
3064
|
if (length != b.length) return false;
|
|
3068
3065
|
for (i = length; i-- !== 0;)
|
|
@@ -3070,35 +3067,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3070
3067
|
return true;
|
|
3071
3068
|
}
|
|
3072
3069
|
|
|
3073
|
-
if (arrA != arrB) return false;
|
|
3074
3070
|
|
|
3075
|
-
var dateA = a instanceof Date
|
|
3076
|
-
, dateB = b instanceof Date;
|
|
3077
|
-
if (dateA != dateB) return false;
|
|
3078
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3079
3071
|
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
if (
|
|
3083
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3072
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
3073
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
3074
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
3084
3075
|
|
|
3085
|
-
|
|
3076
|
+
keys = Object.keys(a);
|
|
3086
3077
|
length = keys.length;
|
|
3087
|
-
|
|
3088
|
-
if (length !== keyList(b).length)
|
|
3089
|
-
return false;
|
|
3078
|
+
if (length !== Object.keys(b).length) return false;
|
|
3090
3079
|
|
|
3091
3080
|
for (i = length; i-- !== 0;)
|
|
3092
|
-
if (!
|
|
3081
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
3093
3082
|
|
|
3094
3083
|
for (i = length; i-- !== 0;) {
|
|
3095
|
-
key = keys[i];
|
|
3084
|
+
var key = keys[i];
|
|
3085
|
+
|
|
3096
3086
|
if (!equal(a[key], b[key])) return false;
|
|
3097
3087
|
}
|
|
3098
3088
|
|
|
3099
3089
|
return true;
|
|
3100
3090
|
}
|
|
3101
3091
|
|
|
3092
|
+
// true if both NaN, false otherwise
|
|
3102
3093
|
return a!==a && b!==b;
|
|
3103
3094
|
};
|
|
3104
3095
|
|
|
@@ -4121,7 +4112,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4121
4112
|
var base = '', array = false, braces = ['{', '}'];
|
|
4122
4113
|
|
|
4123
4114
|
// Make Array say that they are Array
|
|
4124
|
-
if (isArray
|
|
4115
|
+
if (isArray(value)) {
|
|
4125
4116
|
array = true;
|
|
4126
4117
|
braces = ['[', ']'];
|
|
4127
4118
|
}
|
|
@@ -4300,7 +4291,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4300
4291
|
|
|
4301
4292
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4302
4293
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4303
|
-
function isArray
|
|
4294
|
+
function isArray(ar) {
|
|
4304
4295
|
return Array.isArray(ar);
|
|
4305
4296
|
}
|
|
4306
4297
|
|
|
@@ -4427,7 +4418,7 @@ var util = {
|
|
|
4427
4418
|
isNullOrUndefined: isNullOrUndefined,
|
|
4428
4419
|
isNull: isNull,
|
|
4429
4420
|
isBoolean: isBoolean,
|
|
4430
|
-
isArray: isArray
|
|
4421
|
+
isArray: isArray,
|
|
4431
4422
|
inspect: inspect,
|
|
4432
4423
|
deprecate: deprecate,
|
|
4433
4424
|
format: format,
|
|
@@ -5094,199 +5085,235 @@ module.exports = exports['default'];
|
|
|
5094
5085
|
|
|
5095
5086
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5096
5087
|
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
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; };
|
|
5088
|
+
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); }
|
|
5100
5089
|
|
|
5101
5090
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5102
5091
|
|
|
5103
|
-
function
|
|
5092
|
+
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); } }
|
|
5093
|
+
|
|
5094
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5095
|
+
|
|
5096
|
+
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); }; }
|
|
5097
|
+
|
|
5098
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5099
|
+
|
|
5100
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5101
|
+
|
|
5102
|
+
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; } }
|
|
5103
|
+
|
|
5104
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5105
|
+
|
|
5106
|
+
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); }
|
|
5107
|
+
|
|
5108
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5109
|
+
|
|
5110
|
+
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; }
|
|
5104
5111
|
|
|
5105
|
-
function
|
|
5112
|
+
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; }
|
|
5106
5113
|
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
*
|
|
5110
|
-
*
|
|
5111
|
-
* @param {Object}
|
|
5114
|
+
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; }
|
|
5115
|
+
/**
|
|
5116
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5117
|
+
*
|
|
5118
|
+
* @param {Object} prevProps
|
|
5119
|
+
* @param {Object} props
|
|
5112
5120
|
*/
|
|
5121
|
+
|
|
5113
5122
|
function shouldUpdateVideo(prevProps, props) {
|
|
5114
5123
|
// A changing video should always trigger an update
|
|
5115
5124
|
if (prevProps.videoId !== props.videoId) {
|
|
5116
5125
|
return true;
|
|
5117
|
-
}
|
|
5118
|
-
|
|
5119
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5126
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
5120
5127
|
// update.
|
|
5128
|
+
|
|
5129
|
+
|
|
5121
5130
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5122
5131
|
var vars = props.opts.playerVars || {};
|
|
5123
|
-
|
|
5124
5132
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5125
5133
|
}
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
*
|
|
5129
|
-
*
|
|
5130
|
-
*
|
|
5131
|
-
*
|
|
5132
|
-
* @param {Object} opts
|
|
5134
|
+
/**
|
|
5135
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
5136
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5137
|
+
* player reset is necessary.
|
|
5138
|
+
*
|
|
5139
|
+
* @param {Object} opts
|
|
5133
5140
|
*/
|
|
5141
|
+
|
|
5142
|
+
|
|
5134
5143
|
function filterResetOptions(opts) {
|
|
5135
|
-
return
|
|
5136
|
-
playerVars:
|
|
5144
|
+
return _objectSpread({}, opts, {
|
|
5145
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
5137
5146
|
autoplay: 0,
|
|
5138
5147
|
start: 0,
|
|
5139
5148
|
end: 0
|
|
5140
5149
|
})
|
|
5141
5150
|
});
|
|
5142
5151
|
}
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
*
|
|
5146
|
-
*
|
|
5147
|
-
*
|
|
5148
|
-
*
|
|
5149
|
-
*
|
|
5150
|
-
* @param {Object}
|
|
5151
|
-
* @param {Object} props
|
|
5152
|
+
/**
|
|
5153
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5154
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5155
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5156
|
+
* those.
|
|
5157
|
+
*
|
|
5158
|
+
* @param {Object} prevProps
|
|
5159
|
+
* @param {Object} props
|
|
5152
5160
|
*/
|
|
5161
|
+
|
|
5162
|
+
|
|
5153
5163
|
function shouldResetPlayer(prevProps, props) {
|
|
5154
5164
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5155
5165
|
}
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
*
|
|
5159
|
-
*
|
|
5160
|
-
* @param {Object}
|
|
5161
|
-
* @param {Object} props
|
|
5166
|
+
/**
|
|
5167
|
+
* Check whether a props change should result in an id or className update.
|
|
5168
|
+
*
|
|
5169
|
+
* @param {Object} prevProps
|
|
5170
|
+
* @param {Object} props
|
|
5162
5171
|
*/
|
|
5172
|
+
|
|
5173
|
+
|
|
5163
5174
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5164
5175
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5165
5176
|
}
|
|
5166
5177
|
|
|
5167
|
-
var YouTube = function (_React$Component) {
|
|
5178
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
5168
5179
|
_inherits(YouTube, _React$Component);
|
|
5169
5180
|
|
|
5181
|
+
var _super = _createSuper(YouTube);
|
|
5182
|
+
|
|
5183
|
+
/**
|
|
5184
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5185
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5186
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5187
|
+
*/
|
|
5170
5188
|
function YouTube(props) {
|
|
5189
|
+
var _this;
|
|
5190
|
+
|
|
5171
5191
|
_classCallCheck(this, YouTube);
|
|
5172
5192
|
|
|
5173
|
-
|
|
5193
|
+
_this = _super.call(this, props);
|
|
5174
5194
|
|
|
5175
|
-
_this
|
|
5195
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
5176
5196
|
return _this.props.onReady(event);
|
|
5177
|
-
};
|
|
5197
|
+
});
|
|
5178
5198
|
|
|
5179
|
-
_this
|
|
5199
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
5180
5200
|
return _this.props.onError(event);
|
|
5181
|
-
};
|
|
5201
|
+
});
|
|
5182
5202
|
|
|
5183
|
-
_this
|
|
5203
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
5184
5204
|
_this.props.onStateChange(event);
|
|
5185
|
-
switch (event.data) {
|
|
5186
5205
|
|
|
5206
|
+
switch (event.data) {
|
|
5187
5207
|
case YouTube.PlayerState.ENDED:
|
|
5188
5208
|
_this.props.onEnd(event);
|
|
5209
|
+
|
|
5189
5210
|
break;
|
|
5190
5211
|
|
|
5191
5212
|
case YouTube.PlayerState.PLAYING:
|
|
5192
5213
|
_this.props.onPlay(event);
|
|
5214
|
+
|
|
5193
5215
|
break;
|
|
5194
5216
|
|
|
5195
5217
|
case YouTube.PlayerState.PAUSED:
|
|
5196
5218
|
_this.props.onPause(event);
|
|
5219
|
+
|
|
5197
5220
|
break;
|
|
5198
5221
|
}
|
|
5199
|
-
};
|
|
5222
|
+
});
|
|
5200
5223
|
|
|
5201
|
-
_this
|
|
5224
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
5202
5225
|
return _this.props.onPlaybackRateChange(event);
|
|
5203
|
-
};
|
|
5226
|
+
});
|
|
5204
5227
|
|
|
5205
|
-
_this
|
|
5228
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
5206
5229
|
return _this.props.onPlaybackQualityChange(event);
|
|
5207
|
-
};
|
|
5230
|
+
});
|
|
5208
5231
|
|
|
5209
|
-
_this
|
|
5232
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
5210
5233
|
// do not attempt to create a player server-side, it won't work
|
|
5211
|
-
if (typeof document === 'undefined') return;
|
|
5212
|
-
|
|
5213
|
-
var playerOpts =
|
|
5234
|
+
if (typeof document === 'undefined') return; // create player
|
|
5235
|
+
|
|
5236
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
5214
5237
|
// preload the `videoId` video if one is already given
|
|
5215
5238
|
videoId: _this.props.videoId
|
|
5216
5239
|
});
|
|
5217
|
-
|
|
5218
|
-
// attach event handlers
|
|
5240
|
+
|
|
5241
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
5242
|
+
|
|
5219
5243
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5244
|
+
|
|
5220
5245
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5246
|
+
|
|
5221
5247
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5248
|
+
|
|
5222
5249
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5250
|
+
|
|
5223
5251
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5224
|
-
};
|
|
5252
|
+
});
|
|
5225
5253
|
|
|
5226
|
-
_this
|
|
5254
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
5227
5255
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5228
|
-
};
|
|
5256
|
+
});
|
|
5229
5257
|
|
|
5230
|
-
_this
|
|
5258
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
5231
5259
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5232
5260
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5233
5261
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5234
5262
|
});
|
|
5235
|
-
};
|
|
5263
|
+
});
|
|
5236
5264
|
|
|
5237
|
-
_this
|
|
5265
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
5238
5266
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5239
5267
|
_this.internalPlayer.stopVideo();
|
|
5268
|
+
|
|
5240
5269
|
return;
|
|
5241
|
-
}
|
|
5270
|
+
} // set queueing options
|
|
5271
|
+
|
|
5242
5272
|
|
|
5243
|
-
// set queueing options
|
|
5244
5273
|
var autoplay = false;
|
|
5245
5274
|
var opts = {
|
|
5246
5275
|
videoId: _this.props.videoId
|
|
5247
5276
|
};
|
|
5277
|
+
|
|
5248
5278
|
if ('playerVars' in _this.props.opts) {
|
|
5249
5279
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5280
|
+
|
|
5250
5281
|
if ('start' in _this.props.opts.playerVars) {
|
|
5251
5282
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5252
5283
|
}
|
|
5284
|
+
|
|
5253
5285
|
if ('end' in _this.props.opts.playerVars) {
|
|
5254
5286
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5255
5287
|
}
|
|
5256
|
-
}
|
|
5288
|
+
} // if autoplay is enabled loadVideoById
|
|
5289
|
+
|
|
5257
5290
|
|
|
5258
|
-
// if autoplay is enabled loadVideoById
|
|
5259
5291
|
if (autoplay) {
|
|
5260
5292
|
_this.internalPlayer.loadVideoById(opts);
|
|
5293
|
+
|
|
5261
5294
|
return;
|
|
5262
|
-
}
|
|
5263
|
-
|
|
5295
|
+
} // default behaviour just cues the video
|
|
5296
|
+
|
|
5297
|
+
|
|
5264
5298
|
_this.internalPlayer.cueVideoById(opts);
|
|
5265
|
-
};
|
|
5299
|
+
});
|
|
5266
5300
|
|
|
5267
|
-
_this
|
|
5301
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
5268
5302
|
_this.container = container;
|
|
5269
|
-
};
|
|
5303
|
+
});
|
|
5270
5304
|
|
|
5271
5305
|
_this.container = null;
|
|
5272
5306
|
_this.internalPlayer = null;
|
|
5273
5307
|
return _this;
|
|
5274
5308
|
}
|
|
5275
5309
|
|
|
5276
|
-
/**
|
|
5277
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5278
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5279
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5280
|
-
*/
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
5310
|
_createClass(YouTube, [{
|
|
5284
|
-
key:
|
|
5311
|
+
key: "componentDidMount",
|
|
5285
5312
|
value: function componentDidMount() {
|
|
5286
5313
|
this.createPlayer();
|
|
5287
5314
|
}
|
|
5288
5315
|
}, {
|
|
5289
|
-
key:
|
|
5316
|
+
key: "componentDidUpdate",
|
|
5290
5317
|
value: function componentDidUpdate(prevProps) {
|
|
5291
5318
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5292
5319
|
this.updatePlayer();
|
|
@@ -5301,112 +5328,58 @@ var YouTube = function (_React$Component) {
|
|
|
5301
5328
|
}
|
|
5302
5329
|
}
|
|
5303
5330
|
}, {
|
|
5304
|
-
key:
|
|
5331
|
+
key: "componentWillUnmount",
|
|
5305
5332
|
value: function componentWillUnmount() {
|
|
5306
|
-
/**
|
|
5307
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5308
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5309
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5310
|
-
* this method isn't quick enough to reset the container element.
|
|
5333
|
+
/**
|
|
5334
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
5335
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5336
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5337
|
+
* this method isn't quick enough to reset the container element.
|
|
5311
5338
|
*/
|
|
5312
5339
|
this.internalPlayer.destroy();
|
|
5313
5340
|
}
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
*
|
|
5317
|
-
*
|
|
5318
|
-
*
|
|
5319
|
-
* @param {Object} target - player object
|
|
5320
|
-
*/
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
/**
|
|
5324
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5325
|
-
*
|
|
5326
|
-
* @param {Object} event
|
|
5327
|
-
* @param {Integer} data - error type
|
|
5328
|
-
* @param {Object} target - player object
|
|
5329
|
-
*/
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
/**
|
|
5333
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5334
|
-
*
|
|
5335
|
-
* @param {Object} event
|
|
5336
|
-
* @param {Integer} data - status change type
|
|
5337
|
-
* @param {Object} target - actual YT player
|
|
5338
|
-
*/
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
/**
|
|
5342
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5343
|
-
*
|
|
5344
|
-
* @param {Object} event
|
|
5345
|
-
* @param {Float} data - playback rate
|
|
5346
|
-
* @param {Object} target - actual YT player
|
|
5347
|
-
*/
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
/**
|
|
5351
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5352
|
-
*
|
|
5353
|
-
* @param {Object} event
|
|
5354
|
-
* @param {String} data - playback quality
|
|
5355
|
-
* @param {Object} target - actual YT player
|
|
5356
|
-
*/
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
/**
|
|
5360
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5361
|
-
*/
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
/**
|
|
5365
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5366
|
-
*/
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
/**
|
|
5370
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
5371
|
-
* React should update this automatically but since the Youtube Player API
|
|
5372
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5373
|
-
*/
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
/**
|
|
5377
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
5378
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5379
|
-
* Youtube Player API methods to update the video.
|
|
5341
|
+
/**
|
|
5342
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5343
|
+
*
|
|
5344
|
+
* @param {Object} event
|
|
5345
|
+
* @param {Object} target - player object
|
|
5380
5346
|
*/
|
|
5381
5347
|
|
|
5382
5348
|
}, {
|
|
5383
|
-
key:
|
|
5349
|
+
key: "render",
|
|
5384
5350
|
value: function render() {
|
|
5385
|
-
return React__default.createElement(
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5351
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
5352
|
+
className: this.props.containerClassName
|
|
5353
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5354
|
+
id: this.props.id,
|
|
5355
|
+
className: this.props.className,
|
|
5356
|
+
ref: this.refContainer
|
|
5357
|
+
}));
|
|
5390
5358
|
}
|
|
5391
5359
|
}]);
|
|
5392
5360
|
|
|
5393
5361
|
return YouTube;
|
|
5394
5362
|
}(React__default.Component);
|
|
5395
5363
|
|
|
5364
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
5365
|
+
UNSTARTED: -1,
|
|
5366
|
+
ENDED: 0,
|
|
5367
|
+
PLAYING: 1,
|
|
5368
|
+
PAUSED: 2,
|
|
5369
|
+
BUFFERING: 3,
|
|
5370
|
+
CUED: 5
|
|
5371
|
+
});
|
|
5372
|
+
|
|
5396
5373
|
YouTube.propTypes = {
|
|
5397
5374
|
videoId: PropTypes.string,
|
|
5398
|
-
|
|
5399
5375
|
// custom ID for player element
|
|
5400
5376
|
id: PropTypes.string,
|
|
5401
|
-
|
|
5402
5377
|
// custom class name for player element
|
|
5403
5378
|
className: PropTypes.string,
|
|
5404
5379
|
// custom class name for player container element
|
|
5405
5380
|
containerClassName: PropTypes.string,
|
|
5406
|
-
|
|
5407
5381
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5408
5382
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5409
|
-
|
|
5410
5383
|
// event subscriptions
|
|
5411
5384
|
onReady: PropTypes.func,
|
|
5412
5385
|
onError: PropTypes.func,
|
|
@@ -5418,6 +5391,7 @@ YouTube.propTypes = {
|
|
|
5418
5391
|
onPlaybackQualityChange: PropTypes.func
|
|
5419
5392
|
};
|
|
5420
5393
|
YouTube.defaultProps = {
|
|
5394
|
+
videoId: null,
|
|
5421
5395
|
id: null,
|
|
5422
5396
|
className: null,
|
|
5423
5397
|
opts: {},
|
|
@@ -5431,14 +5405,6 @@ YouTube.defaultProps = {
|
|
|
5431
5405
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5432
5406
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5433
5407
|
};
|
|
5434
|
-
YouTube.PlayerState = {
|
|
5435
|
-
UNSTARTED: -1,
|
|
5436
|
-
ENDED: 0,
|
|
5437
|
-
PLAYING: 1,
|
|
5438
|
-
PAUSED: 2,
|
|
5439
|
-
BUFFERING: 3,
|
|
5440
|
-
CUED: 5
|
|
5441
|
-
};
|
|
5442
5408
|
|
|
5443
5409
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5444
5410
|
var url = _ref.url;
|
|
@@ -5460,11 +5426,6 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
5460
5426
|
intervalID = _useState6[0],
|
|
5461
5427
|
setIntervalID = _useState6[1];
|
|
5462
5428
|
|
|
5463
|
-
var _useState7 = React.useState(null),
|
|
5464
|
-
_useState8 = slicedToArray._slicedToArray(_useState7, 2),
|
|
5465
|
-
segmentData = _useState8[0],
|
|
5466
|
-
setSegemntData = _useState8[1];
|
|
5467
|
-
|
|
5468
5429
|
var queueProgress = [];
|
|
5469
5430
|
|
|
5470
5431
|
var opts = {
|
|
@@ -5474,12 +5435,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
5474
5435
|
}
|
|
5475
5436
|
};
|
|
5476
5437
|
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5438
|
+
var handleOnReady = function handleOnReady(event) {
|
|
5439
|
+
var player = event.target;
|
|
5440
|
+
var current = player.getCurrentTime();
|
|
5441
|
+
var duration = player.getDuration();
|
|
5442
|
+
var queue = Math.floor(duration / 10);
|
|
5443
|
+
var segment = Math.floor(current / queue);
|
|
5444
|
+
AdSlot.Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
5445
|
+
};
|
|
5483
5446
|
|
|
5484
5447
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
5485
5448
|
var current = player.getCurrentTime();
|
|
@@ -5488,28 +5451,22 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
5488
5451
|
var segment = Math.floor(current / queue);
|
|
5489
5452
|
|
|
5490
5453
|
if (!queueProgress.includes(segment)) {
|
|
5491
|
-
|
|
5492
|
-
current: current,
|
|
5493
|
-
duration: duration,
|
|
5494
|
-
queue: queue,
|
|
5495
|
-
segment: segment
|
|
5496
|
-
});
|
|
5454
|
+
AdSlot.Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
5497
5455
|
queueProgress.push(segment);
|
|
5498
5456
|
}
|
|
5499
5457
|
};
|
|
5500
5458
|
|
|
5501
5459
|
var handleOnPlay = function handleOnPlay(event) {
|
|
5502
5460
|
// report play
|
|
5503
|
-
|
|
5504
|
-
|
|
5461
|
+
var player = event.target;
|
|
5462
|
+
var current = player.getCurrentTime();
|
|
5463
|
+
var duration = player.getDuration();
|
|
5464
|
+
var queue = Math.floor(duration / 10);
|
|
5465
|
+
var segment = Math.floor(current / queue);
|
|
5505
5466
|
|
|
5506
|
-
|
|
5507
|
-
var current = player.getCurrentTime();
|
|
5508
|
-
var duration = player.getDuration();
|
|
5509
|
-
var queue = Math.floor(duration / 10);
|
|
5510
|
-
var segment = Math.floor(current / queue);
|
|
5467
|
+
AdSlot.Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
5511
5468
|
|
|
5512
|
-
|
|
5469
|
+
if (!playReported) {
|
|
5513
5470
|
setPlayReported(true);
|
|
5514
5471
|
var _intervalID = setInterval(function () {
|
|
5515
5472
|
handlePlayPercent(event.target);
|
|
@@ -5520,7 +5477,6 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
5520
5477
|
|
|
5521
5478
|
var handleOnEnd = function handleOnEnd(event) {
|
|
5522
5479
|
if (!endReported) {
|
|
5523
|
-
console.log('Video End', event);
|
|
5524
5480
|
var player = event.target;
|
|
5525
5481
|
var current = player.getCurrentTime();
|
|
5526
5482
|
var duration = player.getDuration();
|
|
@@ -5534,7 +5490,6 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
5534
5490
|
};
|
|
5535
5491
|
|
|
5536
5492
|
var handleOnPause = function handleOnPause(event) {
|
|
5537
|
-
console.log('Video Pause');
|
|
5538
5493
|
var player = event.target;
|
|
5539
5494
|
var current = player.getCurrentTime();
|
|
5540
5495
|
var duration = player.getDuration();
|
|
@@ -5544,7 +5499,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
5544
5499
|
AdSlot.Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
5545
5500
|
};
|
|
5546
5501
|
|
|
5547
|
-
return React__default.createElement(YouTube, { videoId: id, opts: opts, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd });
|
|
5502
|
+
return React__default.createElement(YouTube, { videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd });
|
|
5548
5503
|
};
|
|
5549
5504
|
|
|
5550
5505
|
var Sidebar = function Sidebar(_ref) {
|
|
@@ -6473,8 +6428,8 @@ var window_1 = win;
|
|
|
6473
6428
|
|
|
6474
6429
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6475
6430
|
|
|
6476
|
-
function _extends
|
|
6477
|
-
_extends
|
|
6431
|
+
function _extends() {
|
|
6432
|
+
_extends = Object.assign || function (target) {
|
|
6478
6433
|
for (var i = 1; i < arguments.length; i++) {
|
|
6479
6434
|
var source = arguments[i];
|
|
6480
6435
|
|
|
@@ -6488,7 +6443,7 @@ function _extends$1() {
|
|
|
6488
6443
|
return target;
|
|
6489
6444
|
};
|
|
6490
6445
|
|
|
6491
|
-
return _extends
|
|
6446
|
+
return _extends.apply(this, arguments);
|
|
6492
6447
|
}
|
|
6493
6448
|
|
|
6494
6449
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6497,7 +6452,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6497
6452
|
subClass.__proto__ = superClass;
|
|
6498
6453
|
}
|
|
6499
6454
|
|
|
6500
|
-
function _assertThisInitialized(self) {
|
|
6455
|
+
function _assertThisInitialized$1(self) {
|
|
6501
6456
|
if (self === void 0) {
|
|
6502
6457
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6503
6458
|
}
|
|
@@ -6507,8 +6462,8 @@ function _assertThisInitialized(self) {
|
|
|
6507
6462
|
|
|
6508
6463
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6509
6464
|
|
|
6510
|
-
function _extends$1
|
|
6511
|
-
_extends$1
|
|
6465
|
+
function _extends$1() {
|
|
6466
|
+
_extends$1 = Object.assign || function (target) {
|
|
6512
6467
|
for (var i = 1; i < arguments.length; i++) {
|
|
6513
6468
|
var source = arguments[i];
|
|
6514
6469
|
|
|
@@ -6522,7 +6477,7 @@ function _extends$1$1() {
|
|
|
6522
6477
|
return target;
|
|
6523
6478
|
};
|
|
6524
6479
|
|
|
6525
|
-
return _extends$1
|
|
6480
|
+
return _extends$1.apply(this, arguments);
|
|
6526
6481
|
}
|
|
6527
6482
|
|
|
6528
6483
|
var version$1 = "1.7.1";
|
|
@@ -6530,7 +6485,7 @@ var version$1 = "1.7.1";
|
|
|
6530
6485
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6531
6486
|
var version$1$1 = "1.2.0";
|
|
6532
6487
|
|
|
6533
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6488
|
+
var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6534
6489
|
return typeof obj;
|
|
6535
6490
|
} : function (obj) {
|
|
6536
6491
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6665,7 +6620,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6665
6620
|
|
|
6666
6621
|
var qs = '';
|
|
6667
6622
|
|
|
6668
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6623
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
|
|
6669
6624
|
qs = getQueryString(queryParams);
|
|
6670
6625
|
}
|
|
6671
6626
|
|
|
@@ -6899,7 +6854,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
6899
6854
|
el.style.width = '100%';
|
|
6900
6855
|
el.style.height = '100%';
|
|
6901
6856
|
|
|
6902
|
-
var responsive = _extends$1
|
|
6857
|
+
var responsive = _extends$1({
|
|
6903
6858
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
6904
6859
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
6905
6860
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7584,7 +7539,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7584
7539
|
|
|
7585
7540
|
|
|
7586
7541
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7587
|
-
var params = _extends$1
|
|
7542
|
+
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7588
7543
|
|
|
7589
7544
|
var Promise = params.Promise,
|
|
7590
7545
|
onSuccess = params.onSuccess,
|
|
@@ -7726,7 +7681,7 @@ function (_React$Component) {
|
|
|
7726
7681
|
_this.refNode = ref;
|
|
7727
7682
|
};
|
|
7728
7683
|
|
|
7729
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7684
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
|
|
7730
7685
|
return _this;
|
|
7731
7686
|
}
|
|
7732
7687
|
/**
|
|
@@ -7747,7 +7702,7 @@ function (_React$Component) {
|
|
|
7747
7702
|
var userSuccess = this.props.onSuccess;
|
|
7748
7703
|
var userFailure = this.props.onFailure;
|
|
7749
7704
|
|
|
7750
|
-
var options = _extends
|
|
7705
|
+
var options = _extends({}, this.props, {
|
|
7751
7706
|
refNode: this.refNode,
|
|
7752
7707
|
refNodeInsert: 'append',
|
|
7753
7708
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8056,7 +8011,7 @@ function (_React$Component) {
|
|
|
8056
8011
|
;
|
|
8057
8012
|
|
|
8058
8013
|
_proto.render = function render() {
|
|
8059
|
-
var props = _extends
|
|
8014
|
+
var props = _extends({
|
|
8060
8015
|
className: 'brightcove-react-player-loader'
|
|
8061
8016
|
}, this.props.attrs, {
|
|
8062
8017
|
ref: this.setRefNode
|
|
@@ -8470,11 +8425,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8470
8425
|
|
|
8471
8426
|
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; }
|
|
8472
8427
|
|
|
8473
|
-
function
|
|
8428
|
+
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; } } }; }
|
|
8429
|
+
|
|
8430
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8431
|
+
|
|
8432
|
+
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."); }
|
|
8433
|
+
|
|
8434
|
+
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); }
|
|
8474
8435
|
|
|
8475
|
-
function
|
|
8436
|
+
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; }
|
|
8476
8437
|
|
|
8477
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
8438
|
+
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; }
|
|
8478
8439
|
|
|
8479
8440
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8480
8441
|
|
|
@@ -8604,12 +8565,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8604
8565
|
|
|
8605
8566
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8606
8567
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8607
|
-
|
|
8608
|
-
var
|
|
8609
|
-
|
|
8568
|
+
|
|
8569
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
8570
|
+
_step;
|
|
8610
8571
|
|
|
8611
8572
|
try {
|
|
8612
|
-
for (
|
|
8573
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8613
8574
|
var p = _step.value;
|
|
8614
8575
|
|
|
8615
8576
|
if (props$1[p]) {
|
|
@@ -8624,18 +8585,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8624
8585
|
}
|
|
8625
8586
|
}
|
|
8626
8587
|
} catch (err) {
|
|
8627
|
-
|
|
8628
|
-
_iteratorError = err;
|
|
8588
|
+
_iterator.e(err);
|
|
8629
8589
|
} finally {
|
|
8630
|
-
|
|
8631
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8632
|
-
_iterator["return"]();
|
|
8633
|
-
}
|
|
8634
|
-
} finally {
|
|
8635
|
-
if (_didIteratorError) {
|
|
8636
|
-
throw _iteratorError;
|
|
8637
|
-
}
|
|
8638
|
-
}
|
|
8590
|
+
_iterator.f();
|
|
8639
8591
|
}
|
|
8640
8592
|
|
|
8641
8593
|
return config;
|
|
@@ -8782,12 +8734,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8782
8734
|
|
|
8783
8735
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8784
8736
|
|
|
8785
|
-
function
|
|
8737
|
+
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); }; }
|
|
8786
8738
|
|
|
8787
|
-
function
|
|
8739
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8788
8740
|
|
|
8789
8741
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8790
8742
|
|
|
8743
|
+
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; } }
|
|
8744
|
+
|
|
8745
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8746
|
+
|
|
8791
8747
|
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); }
|
|
8792
8748
|
|
|
8793
8749
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8796,14 +8752,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8796
8752
|
|
|
8797
8753
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8798
8754
|
|
|
8799
|
-
var Player =
|
|
8800
|
-
/*#__PURE__*/
|
|
8801
|
-
function (_Component) {
|
|
8755
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
8802
8756
|
_inherits(Player, _Component);
|
|
8803
8757
|
|
|
8804
|
-
|
|
8805
|
-
var _getPrototypeOf2;
|
|
8758
|
+
var _super = _createSuper(Player);
|
|
8806
8759
|
|
|
8760
|
+
function Player() {
|
|
8807
8761
|
var _this;
|
|
8808
8762
|
|
|
8809
8763
|
_classCallCheck(this, Player);
|
|
@@ -8812,7 +8766,7 @@ function (_Component) {
|
|
|
8812
8766
|
_args[_key] = arguments[_key];
|
|
8813
8767
|
}
|
|
8814
8768
|
|
|
8815
|
-
_this =
|
|
8769
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
8816
8770
|
|
|
8817
8771
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8818
8772
|
|
|
@@ -9137,7 +9091,7 @@ function (_Component) {
|
|
|
9137
9091
|
return null;
|
|
9138
9092
|
}
|
|
9139
9093
|
|
|
9140
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9094
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
9141
9095
|
ref: this.ref,
|
|
9142
9096
|
onReady: this.handleReady,
|
|
9143
9097
|
onPlay: this.handlePlay,
|
|
@@ -9198,12 +9152,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9198
9152
|
|
|
9199
9153
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9200
9154
|
|
|
9201
|
-
function
|
|
9155
|
+
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); }; }
|
|
9202
9156
|
|
|
9203
|
-
function
|
|
9157
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9204
9158
|
|
|
9205
9159
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9206
9160
|
|
|
9161
|
+
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; } }
|
|
9162
|
+
|
|
9163
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9164
|
+
|
|
9207
9165
|
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); }
|
|
9208
9166
|
|
|
9209
9167
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9215,14 +9173,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9215
9173
|
function createSinglePlayer(activePlayer) {
|
|
9216
9174
|
var _class, _temp;
|
|
9217
9175
|
|
|
9218
|
-
return _temp = _class =
|
|
9219
|
-
/*#__PURE__*/
|
|
9220
|
-
function (_Component) {
|
|
9176
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
9221
9177
|
_inherits(SinglePlayer, _Component);
|
|
9222
9178
|
|
|
9223
|
-
|
|
9224
|
-
var _getPrototypeOf2;
|
|
9179
|
+
var _super = _createSuper(SinglePlayer);
|
|
9225
9180
|
|
|
9181
|
+
function SinglePlayer() {
|
|
9226
9182
|
var _this;
|
|
9227
9183
|
|
|
9228
9184
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9231,7 +9187,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9231
9187
|
args[_key] = arguments[_key];
|
|
9232
9188
|
}
|
|
9233
9189
|
|
|
9234
|
-
_this =
|
|
9190
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9235
9191
|
|
|
9236
9192
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9237
9193
|
|
|
@@ -9299,12 +9255,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9299
9255
|
height = _this$props.height,
|
|
9300
9256
|
Wrapper = _this$props.wrapper;
|
|
9301
9257
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9302
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
9258
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
9303
9259
|
style: _objectSpread({}, style, {
|
|
9304
9260
|
width: width,
|
|
9305
9261
|
height: height
|
|
9306
9262
|
})
|
|
9307
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9263
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9308
9264
|
ref: this.ref,
|
|
9309
9265
|
activePlayer: activePlayer,
|
|
9310
9266
|
config: this.config
|
|
@@ -9350,23 +9306,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9350
9306
|
|
|
9351
9307
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9352
9308
|
|
|
9353
|
-
function
|
|
9309
|
+
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); }; }
|
|
9354
9310
|
|
|
9355
|
-
function
|
|
9311
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9356
9312
|
|
|
9357
9313
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9358
9314
|
|
|
9315
|
+
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; } }
|
|
9316
|
+
|
|
9317
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9318
|
+
|
|
9359
9319
|
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); }
|
|
9360
9320
|
|
|
9361
9321
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9362
9322
|
|
|
9363
9323
|
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; }
|
|
9364
9324
|
|
|
9365
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9325
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9326
|
+
|
|
9327
|
+
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."); }
|
|
9366
9328
|
|
|
9367
|
-
function
|
|
9329
|
+
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); }
|
|
9368
9330
|
|
|
9369
|
-
function
|
|
9331
|
+
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; }
|
|
9332
|
+
|
|
9333
|
+
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; }
|
|
9370
9334
|
|
|
9371
9335
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9372
9336
|
|
|
@@ -9391,14 +9355,12 @@ function parsePlaylist(url) {
|
|
|
9391
9355
|
return {};
|
|
9392
9356
|
}
|
|
9393
9357
|
|
|
9394
|
-
var YouTube =
|
|
9395
|
-
/*#__PURE__*/
|
|
9396
|
-
function (_Component) {
|
|
9358
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
9397
9359
|
_inherits(YouTube, _Component);
|
|
9398
9360
|
|
|
9399
|
-
|
|
9400
|
-
var _getPrototypeOf2;
|
|
9361
|
+
var _super = _createSuper(YouTube);
|
|
9401
9362
|
|
|
9363
|
+
function YouTube() {
|
|
9402
9364
|
var _this;
|
|
9403
9365
|
|
|
9404
9366
|
_classCallCheck(this, YouTube);
|
|
@@ -9407,7 +9369,7 @@ function (_Component) {
|
|
|
9407
9369
|
args[_key] = arguments[_key];
|
|
9408
9370
|
}
|
|
9409
9371
|
|
|
9410
|
-
_this =
|
|
9372
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9411
9373
|
|
|
9412
9374
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9413
9375
|
|
|
@@ -9595,9 +9557,9 @@ function (_Component) {
|
|
|
9595
9557
|
height: '100%',
|
|
9596
9558
|
display: display
|
|
9597
9559
|
};
|
|
9598
|
-
return _react["default"].createElement("div", {
|
|
9560
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
9599
9561
|
style: style
|
|
9600
|
-
}, _react["default"].createElement("div", {
|
|
9562
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
9601
9563
|
ref: this.ref
|
|
9602
9564
|
}));
|
|
9603
9565
|
}
|
|
@@ -9653,12 +9615,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9653
9615
|
|
|
9654
9616
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9655
9617
|
|
|
9656
|
-
function
|
|
9618
|
+
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); }; }
|
|
9657
9619
|
|
|
9658
|
-
function
|
|
9620
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9659
9621
|
|
|
9660
9622
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9661
9623
|
|
|
9624
|
+
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; } }
|
|
9625
|
+
|
|
9626
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9627
|
+
|
|
9662
9628
|
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); }
|
|
9663
9629
|
|
|
9664
9630
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9667,16 +9633,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9667
9633
|
|
|
9668
9634
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9669
9635
|
var SDK_GLOBAL = 'SC';
|
|
9670
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
9636
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
9671
9637
|
|
|
9672
|
-
var SoundCloud =
|
|
9673
|
-
/*#__PURE__*/
|
|
9674
|
-
function (_Component) {
|
|
9638
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
9675
9639
|
_inherits(SoundCloud, _Component);
|
|
9676
9640
|
|
|
9677
|
-
|
|
9678
|
-
var _getPrototypeOf2;
|
|
9641
|
+
var _super = _createSuper(SoundCloud);
|
|
9679
9642
|
|
|
9643
|
+
function SoundCloud() {
|
|
9680
9644
|
var _this;
|
|
9681
9645
|
|
|
9682
9646
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9685,7 +9649,7 @@ function (_Component) {
|
|
|
9685
9649
|
args[_key] = arguments[_key];
|
|
9686
9650
|
}
|
|
9687
9651
|
|
|
9688
|
-
_this =
|
|
9652
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9689
9653
|
|
|
9690
9654
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9691
9655
|
|
|
@@ -9806,7 +9770,7 @@ function (_Component) {
|
|
|
9806
9770
|
height: '100%',
|
|
9807
9771
|
display: display
|
|
9808
9772
|
};
|
|
9809
|
-
return _react["default"].createElement("iframe", {
|
|
9773
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
9810
9774
|
ref: this.ref,
|
|
9811
9775
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9812
9776
|
style: style,
|
|
@@ -9868,12 +9832,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9868
9832
|
|
|
9869
9833
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9870
9834
|
|
|
9871
|
-
function
|
|
9835
|
+
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); }; }
|
|
9872
9836
|
|
|
9873
|
-
function
|
|
9837
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9874
9838
|
|
|
9875
9839
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9876
9840
|
|
|
9841
|
+
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; } }
|
|
9842
|
+
|
|
9843
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9844
|
+
|
|
9877
9845
|
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); }
|
|
9878
9846
|
|
|
9879
9847
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9885,14 +9853,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
9885
9853
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
9886
9854
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
9887
9855
|
|
|
9888
|
-
var Vimeo =
|
|
9889
|
-
/*#__PURE__*/
|
|
9890
|
-
function (_Component) {
|
|
9856
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
9891
9857
|
_inherits(Vimeo, _Component);
|
|
9892
9858
|
|
|
9893
|
-
|
|
9894
|
-
var _getPrototypeOf2;
|
|
9859
|
+
var _super = _createSuper(Vimeo);
|
|
9895
9860
|
|
|
9861
|
+
function Vimeo() {
|
|
9896
9862
|
var _this;
|
|
9897
9863
|
|
|
9898
9864
|
_classCallCheck(this, Vimeo);
|
|
@@ -9901,7 +9867,7 @@ function (_Component) {
|
|
|
9901
9867
|
args[_key] = arguments[_key];
|
|
9902
9868
|
}
|
|
9903
9869
|
|
|
9904
|
-
_this =
|
|
9870
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9905
9871
|
|
|
9906
9872
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9907
9873
|
|
|
@@ -10058,7 +10024,7 @@ function (_Component) {
|
|
|
10058
10024
|
overflow: 'hidden',
|
|
10059
10025
|
display: display
|
|
10060
10026
|
};
|
|
10061
|
-
return _react["default"].createElement("div", {
|
|
10027
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10062
10028
|
key: this.props.url,
|
|
10063
10029
|
ref: this.ref,
|
|
10064
10030
|
style: style
|
|
@@ -10118,12 +10084,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10118
10084
|
|
|
10119
10085
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10120
10086
|
|
|
10121
|
-
function
|
|
10087
|
+
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); }; }
|
|
10122
10088
|
|
|
10123
|
-
function
|
|
10089
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10124
10090
|
|
|
10125
10091
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10126
10092
|
|
|
10093
|
+
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; } }
|
|
10094
|
+
|
|
10095
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10096
|
+
|
|
10127
10097
|
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); }
|
|
10128
10098
|
|
|
10129
10099
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10136,14 +10106,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10136
10106
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10137
10107
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10138
10108
|
|
|
10139
|
-
var Facebook =
|
|
10140
|
-
/*#__PURE__*/
|
|
10141
|
-
function (_Component) {
|
|
10109
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
10142
10110
|
_inherits(Facebook, _Component);
|
|
10143
10111
|
|
|
10144
|
-
|
|
10145
|
-
var _getPrototypeOf2;
|
|
10112
|
+
var _super = _createSuper(Facebook);
|
|
10146
10113
|
|
|
10114
|
+
function Facebook() {
|
|
10147
10115
|
var _this;
|
|
10148
10116
|
|
|
10149
10117
|
_classCallCheck(this, Facebook);
|
|
@@ -10152,7 +10120,7 @@ function (_Component) {
|
|
|
10152
10120
|
args[_key] = arguments[_key];
|
|
10153
10121
|
}
|
|
10154
10122
|
|
|
10155
|
-
_this =
|
|
10123
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10156
10124
|
|
|
10157
10125
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10158
10126
|
|
|
@@ -10268,7 +10236,7 @@ function (_Component) {
|
|
|
10268
10236
|
width: '100%',
|
|
10269
10237
|
height: '100%'
|
|
10270
10238
|
};
|
|
10271
|
-
return _react["default"].createElement("div", {
|
|
10239
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10272
10240
|
style: style,
|
|
10273
10241
|
id: this.playerID,
|
|
10274
10242
|
className: "fb-video",
|
|
@@ -10328,12 +10296,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10328
10296
|
|
|
10329
10297
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10330
10298
|
|
|
10331
|
-
function
|
|
10299
|
+
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); }; }
|
|
10332
10300
|
|
|
10333
|
-
function
|
|
10301
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10334
10302
|
|
|
10335
10303
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10336
10304
|
|
|
10305
|
+
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; } }
|
|
10306
|
+
|
|
10307
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10308
|
+
|
|
10337
10309
|
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); }
|
|
10338
10310
|
|
|
10339
10311
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10344,14 +10316,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10344
10316
|
var SDK_GLOBAL = 'playerjs';
|
|
10345
10317
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10346
10318
|
|
|
10347
|
-
var Streamable =
|
|
10348
|
-
/*#__PURE__*/
|
|
10349
|
-
function (_Component) {
|
|
10319
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
10350
10320
|
_inherits(Streamable, _Component);
|
|
10351
10321
|
|
|
10352
|
-
|
|
10353
|
-
var _getPrototypeOf2;
|
|
10322
|
+
var _super = _createSuper(Streamable);
|
|
10354
10323
|
|
|
10324
|
+
function Streamable() {
|
|
10355
10325
|
var _this;
|
|
10356
10326
|
|
|
10357
10327
|
_classCallCheck(this, Streamable);
|
|
@@ -10360,7 +10330,7 @@ function (_Component) {
|
|
|
10360
10330
|
args[_key] = arguments[_key];
|
|
10361
10331
|
}
|
|
10362
10332
|
|
|
10363
|
-
_this =
|
|
10333
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10364
10334
|
|
|
10365
10335
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10366
10336
|
|
|
@@ -10480,7 +10450,7 @@ function (_Component) {
|
|
|
10480
10450
|
width: '100%',
|
|
10481
10451
|
height: '100%'
|
|
10482
10452
|
};
|
|
10483
|
-
return _react["default"].createElement("iframe", {
|
|
10453
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10484
10454
|
ref: this.ref,
|
|
10485
10455
|
src: "https://streamable.com/o/".concat(id),
|
|
10486
10456
|
frameBorder: "0",
|
|
@@ -10541,12 +10511,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10541
10511
|
|
|
10542
10512
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10543
10513
|
|
|
10544
|
-
function
|
|
10514
|
+
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); }; }
|
|
10545
10515
|
|
|
10546
|
-
function
|
|
10516
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10547
10517
|
|
|
10548
10518
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10549
10519
|
|
|
10520
|
+
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; } }
|
|
10521
|
+
|
|
10522
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10523
|
+
|
|
10550
10524
|
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); }
|
|
10551
10525
|
|
|
10552
10526
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10557,26 +10531,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10557
10531
|
var SDK_GLOBAL = 'Wistia';
|
|
10558
10532
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10559
10533
|
|
|
10560
|
-
var Wistia =
|
|
10561
|
-
/*#__PURE__*/
|
|
10562
|
-
function (_Component) {
|
|
10534
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
10563
10535
|
_inherits(Wistia, _Component);
|
|
10564
10536
|
|
|
10565
|
-
|
|
10566
|
-
var _getPrototypeOf2;
|
|
10537
|
+
var _super = _createSuper(Wistia);
|
|
10567
10538
|
|
|
10539
|
+
function Wistia() {
|
|
10568
10540
|
var _this;
|
|
10569
10541
|
|
|
10570
10542
|
_classCallCheck(this, Wistia);
|
|
10571
10543
|
|
|
10572
|
-
for (var _len = arguments.length,
|
|
10573
|
-
|
|
10544
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10545
|
+
_args[_key] = arguments[_key];
|
|
10574
10546
|
}
|
|
10575
10547
|
|
|
10576
|
-
_this =
|
|
10548
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
10577
10549
|
|
|
10578
10550
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10579
10551
|
|
|
10552
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10553
|
+
var _this$props;
|
|
10554
|
+
|
|
10555
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10556
|
+
});
|
|
10557
|
+
|
|
10558
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10559
|
+
var _this$props2;
|
|
10560
|
+
|
|
10561
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10562
|
+
});
|
|
10563
|
+
|
|
10564
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10565
|
+
var _this$props3;
|
|
10566
|
+
|
|
10567
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10568
|
+
});
|
|
10569
|
+
|
|
10570
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10571
|
+
var _this$props4;
|
|
10572
|
+
|
|
10573
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10574
|
+
});
|
|
10575
|
+
|
|
10580
10576
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10581
10577
|
_this.callPlayer('mute');
|
|
10582
10578
|
});
|
|
@@ -10598,17 +10594,13 @@ function (_Component) {
|
|
|
10598
10594
|
value: function load(url) {
|
|
10599
10595
|
var _this2 = this;
|
|
10600
10596
|
|
|
10601
|
-
var _this$
|
|
10602
|
-
playing = _this$
|
|
10603
|
-
muted = _this$
|
|
10604
|
-
controls = _this$
|
|
10605
|
-
_onReady = _this$
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
onSeek = _this$props.onSeek,
|
|
10609
|
-
onEnded = _this$props.onEnded,
|
|
10610
|
-
config = _this$props.config,
|
|
10611
|
-
onError = _this$props.onError;
|
|
10597
|
+
var _this$props5 = this.props,
|
|
10598
|
+
playing = _this$props5.playing,
|
|
10599
|
+
muted = _this$props5.muted,
|
|
10600
|
+
controls = _this$props5.controls,
|
|
10601
|
+
_onReady = _this$props5.onReady,
|
|
10602
|
+
config = _this$props5.config,
|
|
10603
|
+
onError = _this$props5.onError;
|
|
10612
10604
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10613
10605
|
window._wq = window._wq || [];
|
|
10614
10606
|
|
|
@@ -10625,19 +10617,28 @@ function (_Component) {
|
|
|
10625
10617
|
|
|
10626
10618
|
_this2.unbind();
|
|
10627
10619
|
|
|
10628
|
-
_this2.player.bind('play', onPlay);
|
|
10620
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
10629
10621
|
|
|
10630
|
-
_this2.player.bind('pause', onPause);
|
|
10622
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
10631
10623
|
|
|
10632
|
-
_this2.player.bind('seek', onSeek);
|
|
10624
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
10633
10625
|
|
|
10634
|
-
_this2.player.bind('end', onEnded);
|
|
10626
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
10635
10627
|
|
|
10636
10628
|
_onReady();
|
|
10637
10629
|
}
|
|
10638
10630
|
});
|
|
10639
10631
|
}, onError);
|
|
10640
10632
|
}
|
|
10633
|
+
}, {
|
|
10634
|
+
key: "unbind",
|
|
10635
|
+
value: function unbind() {
|
|
10636
|
+
this.player.unbind('play', this.onPlay);
|
|
10637
|
+
this.player.unbind('pause', this.onPause);
|
|
10638
|
+
this.player.unbind('seek', this.onSeek);
|
|
10639
|
+
this.player.unbind('end', this.onEnded);
|
|
10640
|
+
} // Proxy methods to prevent listener leaks
|
|
10641
|
+
|
|
10641
10642
|
}, {
|
|
10642
10643
|
key: "play",
|
|
10643
10644
|
value: function play() {
|
|
@@ -10648,19 +10649,6 @@ function (_Component) {
|
|
|
10648
10649
|
value: function pause() {
|
|
10649
10650
|
this.callPlayer('pause');
|
|
10650
10651
|
}
|
|
10651
|
-
}, {
|
|
10652
|
-
key: "unbind",
|
|
10653
|
-
value: function unbind() {
|
|
10654
|
-
var _this$props2 = this.props,
|
|
10655
|
-
onPlay = _this$props2.onPlay,
|
|
10656
|
-
onPause = _this$props2.onPause,
|
|
10657
|
-
onSeek = _this$props2.onSeek,
|
|
10658
|
-
onEnded = _this$props2.onEnded;
|
|
10659
|
-
this.player.unbind('play', onPlay);
|
|
10660
|
-
this.player.unbind('pause', onPause);
|
|
10661
|
-
this.player.unbind('seek', onSeek);
|
|
10662
|
-
this.player.unbind('end', onEnded);
|
|
10663
|
-
}
|
|
10664
10652
|
}, {
|
|
10665
10653
|
key: "stop",
|
|
10666
10654
|
value: function stop() {
|
|
@@ -10706,7 +10694,7 @@ function (_Component) {
|
|
|
10706
10694
|
width: '100%',
|
|
10707
10695
|
height: '100%'
|
|
10708
10696
|
};
|
|
10709
|
-
return _react["default"].createElement("div", {
|
|
10697
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10710
10698
|
key: id,
|
|
10711
10699
|
className: className,
|
|
10712
10700
|
style: style
|
|
@@ -10766,12 +10754,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10766
10754
|
|
|
10767
10755
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10768
10756
|
|
|
10769
|
-
function
|
|
10757
|
+
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); }; }
|
|
10770
10758
|
|
|
10771
|
-
function
|
|
10759
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10772
10760
|
|
|
10773
10761
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10774
10762
|
|
|
10763
|
+
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; } }
|
|
10764
|
+
|
|
10765
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10766
|
+
|
|
10775
10767
|
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); }
|
|
10776
10768
|
|
|
10777
10769
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10784,14 +10776,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10784
10776
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10785
10777
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10786
10778
|
|
|
10787
|
-
var Twitch =
|
|
10788
|
-
/*#__PURE__*/
|
|
10789
|
-
function (_Component) {
|
|
10779
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
10790
10780
|
_inherits(Twitch, _Component);
|
|
10791
10781
|
|
|
10792
|
-
|
|
10793
|
-
var _getPrototypeOf2;
|
|
10782
|
+
var _super = _createSuper(Twitch);
|
|
10794
10783
|
|
|
10784
|
+
function Twitch() {
|
|
10795
10785
|
var _this;
|
|
10796
10786
|
|
|
10797
10787
|
_classCallCheck(this, Twitch);
|
|
@@ -10800,7 +10790,7 @@ function (_Component) {
|
|
|
10800
10790
|
args[_key] = arguments[_key];
|
|
10801
10791
|
}
|
|
10802
10792
|
|
|
10803
|
-
_this =
|
|
10793
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10804
10794
|
|
|
10805
10795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10806
10796
|
|
|
@@ -10921,7 +10911,7 @@ function (_Component) {
|
|
|
10921
10911
|
width: '100%',
|
|
10922
10912
|
height: '100%'
|
|
10923
10913
|
};
|
|
10924
|
-
return _react["default"].createElement("div", {
|
|
10914
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10925
10915
|
style: style,
|
|
10926
10916
|
id: this.playerID
|
|
10927
10917
|
});
|
|
@@ -10974,11 +10964,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
10974
10964
|
|
|
10975
10965
|
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; }
|
|
10976
10966
|
|
|
10977
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
10967
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10968
|
+
|
|
10969
|
+
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."); }
|
|
10978
10970
|
|
|
10979
|
-
function
|
|
10971
|
+
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); }
|
|
10980
10972
|
|
|
10981
|
-
function
|
|
10973
|
+
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; }
|
|
10974
|
+
|
|
10975
|
+
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; }
|
|
10982
10976
|
|
|
10983
10977
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10984
10978
|
|
|
@@ -10988,12 +10982,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10988
10982
|
|
|
10989
10983
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10990
10984
|
|
|
10991
|
-
function
|
|
10985
|
+
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); }; }
|
|
10992
10986
|
|
|
10993
|
-
function
|
|
10987
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10994
10988
|
|
|
10995
10989
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10996
10990
|
|
|
10991
|
+
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; } }
|
|
10992
|
+
|
|
10993
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10994
|
+
|
|
10997
10995
|
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); }
|
|
10998
10996
|
|
|
10999
10997
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11005,14 +11003,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
11005
11003
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11006
11004
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11007
11005
|
|
|
11008
|
-
var DailyMotion =
|
|
11009
|
-
/*#__PURE__*/
|
|
11010
|
-
function (_Component) {
|
|
11006
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
11011
11007
|
_inherits(DailyMotion, _Component);
|
|
11012
11008
|
|
|
11013
|
-
|
|
11014
|
-
var _getPrototypeOf2;
|
|
11009
|
+
var _super = _createSuper(DailyMotion);
|
|
11015
11010
|
|
|
11011
|
+
function DailyMotion() {
|
|
11016
11012
|
var _this;
|
|
11017
11013
|
|
|
11018
11014
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11021,7 +11017,7 @@ function (_Component) {
|
|
|
11021
11017
|
args[_key] = arguments[_key];
|
|
11022
11018
|
}
|
|
11023
11019
|
|
|
11024
|
-
_this =
|
|
11020
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11025
11021
|
|
|
11026
11022
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11027
11023
|
|
|
@@ -11150,9 +11146,9 @@ function (_Component) {
|
|
|
11150
11146
|
height: '100%',
|
|
11151
11147
|
display: display
|
|
11152
11148
|
};
|
|
11153
|
-
return _react["default"].createElement("div", {
|
|
11149
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11154
11150
|
style: style
|
|
11155
|
-
}, _react["default"].createElement("div", {
|
|
11151
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
11156
11152
|
ref: this.ref
|
|
11157
11153
|
}));
|
|
11158
11154
|
}
|
|
@@ -11210,12 +11206,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11210
11206
|
|
|
11211
11207
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11212
11208
|
|
|
11213
|
-
function
|
|
11209
|
+
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); }; }
|
|
11214
11210
|
|
|
11215
|
-
function
|
|
11211
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11216
11212
|
|
|
11217
11213
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11218
11214
|
|
|
11215
|
+
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; } }
|
|
11216
|
+
|
|
11217
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11218
|
+
|
|
11219
11219
|
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); }
|
|
11220
11220
|
|
|
11221
11221
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11226,14 +11226,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11226
11226
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11227
11227
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11228
11228
|
|
|
11229
|
-
var Mixcloud =
|
|
11230
|
-
/*#__PURE__*/
|
|
11231
|
-
function (_Component) {
|
|
11229
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
11232
11230
|
_inherits(Mixcloud, _Component);
|
|
11233
11231
|
|
|
11234
|
-
|
|
11235
|
-
var _getPrototypeOf2;
|
|
11232
|
+
var _super = _createSuper(Mixcloud);
|
|
11236
11233
|
|
|
11234
|
+
function Mixcloud() {
|
|
11237
11235
|
var _this;
|
|
11238
11236
|
|
|
11239
11237
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11242,7 +11240,7 @@ function (_Component) {
|
|
|
11242
11240
|
args[_key] = arguments[_key];
|
|
11243
11241
|
}
|
|
11244
11242
|
|
|
11245
|
-
_this =
|
|
11243
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11246
11244
|
|
|
11247
11245
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11248
11246
|
|
|
@@ -11345,7 +11343,7 @@ function (_Component) {
|
|
|
11345
11343
|
})); // We have to give the iframe a key here to prevent a
|
|
11346
11344
|
// weird dialog appearing when loading a new track
|
|
11347
11345
|
|
|
11348
|
-
return _react["default"].createElement("iframe", {
|
|
11346
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
11349
11347
|
key: id,
|
|
11350
11348
|
ref: this.ref,
|
|
11351
11349
|
style: style,
|
|
@@ -11405,23 +11403,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11405
11403
|
|
|
11406
11404
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11407
11405
|
|
|
11408
|
-
function
|
|
11406
|
+
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); }; }
|
|
11409
11407
|
|
|
11410
|
-
function
|
|
11408
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11411
11409
|
|
|
11412
11410
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11413
11411
|
|
|
11412
|
+
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; } }
|
|
11413
|
+
|
|
11414
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11415
|
+
|
|
11414
11416
|
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); }
|
|
11415
11417
|
|
|
11416
11418
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11417
11419
|
|
|
11418
11420
|
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; }
|
|
11419
11421
|
|
|
11422
|
+
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; } } }; }
|
|
11423
|
+
|
|
11424
|
+
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); }
|
|
11425
|
+
|
|
11426
|
+
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; }
|
|
11427
|
+
|
|
11420
11428
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11421
11429
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11422
11430
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11423
11431
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11424
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11432
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
11425
11433
|
var HLS_GLOBAL = 'Hls';
|
|
11426
11434
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11427
11435
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11430,12 +11438,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11430
11438
|
|
|
11431
11439
|
function canPlay(url) {
|
|
11432
11440
|
if (url instanceof Array) {
|
|
11433
|
-
var
|
|
11434
|
-
|
|
11435
|
-
var _iteratorError = undefined;
|
|
11441
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
11442
|
+
_step;
|
|
11436
11443
|
|
|
11437
11444
|
try {
|
|
11438
|
-
for (
|
|
11445
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11439
11446
|
var item = _step.value;
|
|
11440
11447
|
|
|
11441
11448
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11447,18 +11454,9 @@ function canPlay(url) {
|
|
|
11447
11454
|
}
|
|
11448
11455
|
}
|
|
11449
11456
|
} catch (err) {
|
|
11450
|
-
|
|
11451
|
-
_iteratorError = err;
|
|
11457
|
+
_iterator.e(err);
|
|
11452
11458
|
} finally {
|
|
11453
|
-
|
|
11454
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11455
|
-
_iterator["return"]();
|
|
11456
|
-
}
|
|
11457
|
-
} finally {
|
|
11458
|
-
if (_didIteratorError) {
|
|
11459
|
-
throw _iteratorError;
|
|
11460
|
-
}
|
|
11461
|
-
}
|
|
11459
|
+
_iterator.f();
|
|
11462
11460
|
}
|
|
11463
11461
|
|
|
11464
11462
|
return false;
|
|
@@ -11482,14 +11480,12 @@ function canEnablePIP(url) {
|
|
|
11482
11480
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11483
11481
|
}
|
|
11484
11482
|
|
|
11485
|
-
var FilePlayer =
|
|
11486
|
-
/*#__PURE__*/
|
|
11487
|
-
function (_Component) {
|
|
11483
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
11488
11484
|
_inherits(FilePlayer, _Component);
|
|
11489
11485
|
|
|
11490
|
-
|
|
11491
|
-
var _getPrototypeOf2;
|
|
11486
|
+
var _super = _createSuper(FilePlayer);
|
|
11492
11487
|
|
|
11488
|
+
function FilePlayer() {
|
|
11493
11489
|
var _this;
|
|
11494
11490
|
|
|
11495
11491
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11498,7 +11494,7 @@ function (_Component) {
|
|
|
11498
11494
|
_args[_key] = arguments[_key];
|
|
11499
11495
|
}
|
|
11500
11496
|
|
|
11501
|
-
_this =
|
|
11497
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
11502
11498
|
|
|
11503
11499
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11504
11500
|
var _this$props;
|
|
@@ -11585,19 +11581,19 @@ function (_Component) {
|
|
|
11585
11581
|
|
|
11586
11582
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11587
11583
|
if (typeof source === 'string') {
|
|
11588
|
-
return _react["default"].createElement("source", {
|
|
11584
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
11589
11585
|
key: index,
|
|
11590
11586
|
src: source
|
|
11591
11587
|
});
|
|
11592
11588
|
}
|
|
11593
11589
|
|
|
11594
|
-
return _react["default"].createElement("source", _extends({
|
|
11590
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
11595
11591
|
key: index
|
|
11596
11592
|
}, source));
|
|
11597
11593
|
});
|
|
11598
11594
|
|
|
11599
11595
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11600
|
-
return _react["default"].createElement("track", _extends({
|
|
11596
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
11601
11597
|
key: index
|
|
11602
11598
|
}, track));
|
|
11603
11599
|
});
|
|
@@ -11635,6 +11631,10 @@ function (_Component) {
|
|
|
11635
11631
|
key: "componentWillUnmount",
|
|
11636
11632
|
value: function componentWillUnmount() {
|
|
11637
11633
|
this.removeListeners(this.player);
|
|
11634
|
+
|
|
11635
|
+
if (this.hls) {
|
|
11636
|
+
this.hls.destroy();
|
|
11637
|
+
}
|
|
11638
11638
|
}
|
|
11639
11639
|
}, {
|
|
11640
11640
|
key: "addListeners",
|
|
@@ -11765,10 +11765,6 @@ function (_Component) {
|
|
|
11765
11765
|
value: function stop() {
|
|
11766
11766
|
this.player.removeAttribute('src');
|
|
11767
11767
|
|
|
11768
|
-
if (this.hls) {
|
|
11769
|
-
this.hls.destroy();
|
|
11770
|
-
}
|
|
11771
|
-
|
|
11772
11768
|
if (this.dash) {
|
|
11773
11769
|
this.dash.reset();
|
|
11774
11770
|
}
|
|
@@ -11880,7 +11876,7 @@ function (_Component) {
|
|
|
11880
11876
|
width: width === 'auto' ? width : '100%',
|
|
11881
11877
|
height: height === 'auto' ? height : '100%'
|
|
11882
11878
|
};
|
|
11883
|
-
return _react["default"].createElement(Element, _extends({
|
|
11879
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
11884
11880
|
ref: this.ref,
|
|
11885
11881
|
src: this.getSource(url),
|
|
11886
11882
|
style: style,
|
|
@@ -11970,12 +11966,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11970
11966
|
|
|
11971
11967
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11972
11968
|
|
|
11973
|
-
function
|
|
11969
|
+
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); }; }
|
|
11974
11970
|
|
|
11975
|
-
function
|
|
11971
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11976
11972
|
|
|
11977
11973
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11978
11974
|
|
|
11975
|
+
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; } }
|
|
11976
|
+
|
|
11977
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11978
|
+
|
|
11979
11979
|
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); }
|
|
11980
11980
|
|
|
11981
11981
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11984,14 +11984,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11984
11984
|
|
|
11985
11985
|
var ICON_SIZE = '64px';
|
|
11986
11986
|
|
|
11987
|
-
var Preview =
|
|
11988
|
-
/*#__PURE__*/
|
|
11989
|
-
function (_Component) {
|
|
11987
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
11990
11988
|
_inherits(Preview, _Component);
|
|
11991
11989
|
|
|
11992
|
-
|
|
11993
|
-
var _getPrototypeOf2;
|
|
11990
|
+
var _super = _createSuper(Preview);
|
|
11994
11991
|
|
|
11992
|
+
function Preview() {
|
|
11995
11993
|
var _this;
|
|
11996
11994
|
|
|
11997
11995
|
_classCallCheck(this, Preview);
|
|
@@ -12000,7 +11998,7 @@ function (_Component) {
|
|
|
12000
11998
|
args[_key] = arguments[_key];
|
|
12001
11999
|
}
|
|
12002
12000
|
|
|
12003
|
-
_this =
|
|
12001
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12004
12002
|
|
|
12005
12003
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12006
12004
|
|
|
@@ -12098,15 +12096,15 @@ function (_Component) {
|
|
|
12098
12096
|
}
|
|
12099
12097
|
};
|
|
12100
12098
|
|
|
12101
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12099
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
12102
12100
|
style: styles.shadow,
|
|
12103
12101
|
className: "react-player__shadow"
|
|
12104
|
-
}, _react["default"].createElement("div", {
|
|
12102
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12105
12103
|
style: styles.playIcon,
|
|
12106
12104
|
className: "react-player__play-icon"
|
|
12107
12105
|
}));
|
|
12108
12106
|
|
|
12109
|
-
return _react["default"].createElement("div", {
|
|
12107
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
12110
12108
|
style: styles.preview,
|
|
12111
12109
|
className: "react-player__preview",
|
|
12112
12110
|
onClick: onClick
|
|
@@ -12143,6 +12141,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12143
12141
|
|
|
12144
12142
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12145
12143
|
|
|
12144
|
+
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; } } }; }
|
|
12145
|
+
|
|
12146
|
+
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); }
|
|
12147
|
+
|
|
12148
|
+
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; }
|
|
12149
|
+
|
|
12146
12150
|
var PRELOAD_PLAYERS = [{
|
|
12147
12151
|
Player: YouTube_1.YouTube,
|
|
12148
12152
|
configKey: 'youtube',
|
|
@@ -12163,16 +12167,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12163
12167
|
|
|
12164
12168
|
function renderPreloadPlayers(url, controls, config) {
|
|
12165
12169
|
var players = [];
|
|
12166
|
-
|
|
12167
|
-
var
|
|
12168
|
-
|
|
12170
|
+
|
|
12171
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
12172
|
+
_step;
|
|
12169
12173
|
|
|
12170
12174
|
try {
|
|
12171
|
-
for (
|
|
12175
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12172
12176
|
var player = _step.value;
|
|
12173
12177
|
|
|
12174
12178
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12175
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
12179
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
12176
12180
|
key: player.Player.displayName,
|
|
12177
12181
|
activePlayer: player.Player,
|
|
12178
12182
|
url: player.url,
|
|
@@ -12184,18 +12188,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12184
12188
|
}
|
|
12185
12189
|
}
|
|
12186
12190
|
} catch (err) {
|
|
12187
|
-
|
|
12188
|
-
_iteratorError = err;
|
|
12191
|
+
_iterator.e(err);
|
|
12189
12192
|
} finally {
|
|
12190
|
-
|
|
12191
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12192
|
-
_iterator["return"]();
|
|
12193
|
-
}
|
|
12194
|
-
} finally {
|
|
12195
|
-
if (_didIteratorError) {
|
|
12196
|
-
throw _iteratorError;
|
|
12197
|
-
}
|
|
12198
|
-
}
|
|
12193
|
+
_iterator.f();
|
|
12199
12194
|
}
|
|
12200
12195
|
|
|
12201
12196
|
return players;
|
|
@@ -12319,13 +12314,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12319
12314
|
|
|
12320
12315
|
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); }
|
|
12321
12316
|
|
|
12322
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12317
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12318
|
+
|
|
12319
|
+
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."); }
|
|
12320
|
+
|
|
12321
|
+
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); }
|
|
12323
12322
|
|
|
12324
|
-
function
|
|
12323
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
12325
12324
|
|
|
12326
|
-
function
|
|
12325
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12327
12326
|
|
|
12328
|
-
function
|
|
12327
|
+
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; }
|
|
12329
12328
|
|
|
12330
12329
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12331
12330
|
|
|
@@ -12333,12 +12332,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12333
12332
|
|
|
12334
12333
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12335
12334
|
|
|
12336
|
-
function
|
|
12335
|
+
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); }; }
|
|
12337
12336
|
|
|
12338
|
-
function
|
|
12337
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12339
12338
|
|
|
12340
12339
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12341
12340
|
|
|
12341
|
+
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; } }
|
|
12342
|
+
|
|
12343
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12344
|
+
|
|
12342
12345
|
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); }
|
|
12343
12346
|
|
|
12344
12347
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12348,14 +12351,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12348
12351
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12349
12352
|
var customPlayers = [];
|
|
12350
12353
|
|
|
12351
|
-
var ReactPlayer =
|
|
12352
|
-
/*#__PURE__*/
|
|
12353
|
-
function (_Component) {
|
|
12354
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
12354
12355
|
_inherits(ReactPlayer, _Component);
|
|
12355
12356
|
|
|
12356
|
-
|
|
12357
|
-
var _getPrototypeOf2;
|
|
12357
|
+
var _super = _createSuper(ReactPlayer);
|
|
12358
12358
|
|
|
12359
|
+
function ReactPlayer() {
|
|
12359
12360
|
var _this;
|
|
12360
12361
|
|
|
12361
12362
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12364,7 +12365,7 @@ function (_Component) {
|
|
|
12364
12365
|
args[_key] = arguments[_key];
|
|
12365
12366
|
}
|
|
12366
12367
|
|
|
12367
|
-
_this =
|
|
12368
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12368
12369
|
|
|
12369
12370
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12370
12371
|
|
|
@@ -12475,7 +12476,7 @@ function (_Component) {
|
|
|
12475
12476
|
key: "renderActivePlayer",
|
|
12476
12477
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12477
12478
|
if (!url) return null;
|
|
12478
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12479
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12479
12480
|
key: activePlayer.displayName,
|
|
12480
12481
|
ref: this.activePlayerRef,
|
|
12481
12482
|
config: this.config,
|
|
@@ -12512,14 +12513,14 @@ function (_Component) {
|
|
|
12512
12513
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12513
12514
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12514
12515
|
|
|
12515
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12516
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
12516
12517
|
url: url,
|
|
12517
12518
|
light: light,
|
|
12518
12519
|
playIcon: playIcon,
|
|
12519
12520
|
onClick: this.handleClickPreview
|
|
12520
12521
|
});
|
|
12521
12522
|
|
|
12522
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
12523
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
12523
12524
|
ref: this.wrapperRef,
|
|
12524
12525
|
style: _objectSpread({}, style, {
|
|
12525
12526
|
width: width,
|
|
@@ -12632,34 +12633,29 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12632
12633
|
intervalID = _useState6[0],
|
|
12633
12634
|
setIntervalID = _useState6[1];
|
|
12634
12635
|
|
|
12635
|
-
var _useState7 = React.useState(null),
|
|
12636
|
-
_useState8 = slicedToArray._slicedToArray(_useState7, 2),
|
|
12637
|
-
segmentData = _useState8[0],
|
|
12638
|
-
setSegemntData = _useState8[1];
|
|
12639
|
-
|
|
12640
12636
|
var queueProgress = [];
|
|
12641
12637
|
|
|
12642
12638
|
//state
|
|
12643
12639
|
|
|
12644
|
-
var
|
|
12640
|
+
var _useState7 = React.useState(''),
|
|
12641
|
+
_useState8 = slicedToArray._slicedToArray(_useState7, 2),
|
|
12642
|
+
vidUrl = _useState8[0],
|
|
12643
|
+
setVidUrl = _useState8[1];
|
|
12644
|
+
|
|
12645
|
+
var _useState9 = React.useState('youtube'),
|
|
12645
12646
|
_useState10 = slicedToArray._slicedToArray(_useState9, 2),
|
|
12646
|
-
|
|
12647
|
-
|
|
12647
|
+
vidType = _useState10[0],
|
|
12648
|
+
setVidType = _useState10[1];
|
|
12648
12649
|
|
|
12649
|
-
var _useState11 = React.useState('
|
|
12650
|
+
var _useState11 = React.useState(''),
|
|
12650
12651
|
_useState12 = slicedToArray._slicedToArray(_useState11, 2),
|
|
12651
|
-
|
|
12652
|
-
|
|
12652
|
+
series = _useState12[0],
|
|
12653
|
+
setSeries = _useState12[1];
|
|
12653
12654
|
|
|
12654
|
-
var _useState13 = React.useState(
|
|
12655
|
+
var _useState13 = React.useState([]),
|
|
12655
12656
|
_useState14 = slicedToArray._slicedToArray(_useState13, 2),
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
var _useState15 = React.useState([]),
|
|
12660
|
-
_useState16 = slicedToArray._slicedToArray(_useState15, 2),
|
|
12661
|
-
seriesData = _useState16[0],
|
|
12662
|
-
setData = _useState16[1];
|
|
12657
|
+
seriesData = _useState14[0],
|
|
12658
|
+
setData = _useState14[1];
|
|
12663
12659
|
//variables
|
|
12664
12660
|
|
|
12665
12661
|
|
|
@@ -12704,13 +12700,6 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12704
12700
|
setData(data);
|
|
12705
12701
|
}, []);
|
|
12706
12702
|
|
|
12707
|
-
React.useEffect(function () {
|
|
12708
|
-
if (segmentData) {
|
|
12709
|
-
console.log('Video Segment', segmentData);
|
|
12710
|
-
AdSlot.Beam.report_beam_video('Segment', main.main_16, segmentData.duration, segmentData.current, segmentData.segment);
|
|
12711
|
-
}
|
|
12712
|
-
}, [segmentData]);
|
|
12713
|
-
|
|
12714
12703
|
function toggleSeries() {
|
|
12715
12704
|
var series = document.querySelector('.vid-series');
|
|
12716
12705
|
if (series.classList.contains('active')) {
|
|
@@ -12732,10 +12721,18 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12732
12721
|
setSeries(vidIndex);
|
|
12733
12722
|
}
|
|
12734
12723
|
|
|
12724
|
+
var handleOnReady = function handleOnReady(event) {
|
|
12725
|
+
var player = event.target;
|
|
12726
|
+
var current = player.getCurrentTime();
|
|
12727
|
+
var duration = player.getDuration();
|
|
12728
|
+
var queue = Math.floor(duration / 10);
|
|
12729
|
+
var segment = Math.floor(current / queue);
|
|
12730
|
+
AdSlot.Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
12731
|
+
};
|
|
12732
|
+
|
|
12735
12733
|
// Handle video end
|
|
12736
12734
|
function handleOnEnd(e) {
|
|
12737
12735
|
if (!endReported) {
|
|
12738
|
-
console.log('Video End', e);
|
|
12739
12736
|
var player = e.target;
|
|
12740
12737
|
var current = player.getCurrentTime();
|
|
12741
12738
|
var duration = player.getDuration();
|
|
@@ -12784,28 +12781,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12784
12781
|
var segment = Math.floor(current / queue);
|
|
12785
12782
|
|
|
12786
12783
|
if (!queueProgress.includes(segment)) {
|
|
12787
|
-
|
|
12788
|
-
current: current,
|
|
12789
|
-
duration: duration,
|
|
12790
|
-
queue: queue,
|
|
12791
|
-
segment: segment
|
|
12792
|
-
});
|
|
12784
|
+
AdSlot.Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
12793
12785
|
queueProgress.push(segment);
|
|
12794
12786
|
}
|
|
12795
12787
|
};
|
|
12796
12788
|
|
|
12797
12789
|
var handleOnPlay = function handleOnPlay(event) {
|
|
12798
12790
|
// report play
|
|
12799
|
-
|
|
12800
|
-
|
|
12791
|
+
var player = event.target;
|
|
12792
|
+
var current = player.getCurrentTime();
|
|
12793
|
+
var duration = player.getDuration();
|
|
12794
|
+
var queue = Math.floor(duration / 10);
|
|
12795
|
+
var segment = Math.floor(current / queue);
|
|
12801
12796
|
|
|
12802
|
-
|
|
12803
|
-
var current = player.getCurrentTime();
|
|
12804
|
-
var duration = player.getDuration();
|
|
12805
|
-
var queue = Math.floor(duration / 10);
|
|
12806
|
-
var segment = Math.floor(current / queue);
|
|
12797
|
+
AdSlot.Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
12807
12798
|
|
|
12808
|
-
|
|
12799
|
+
if (!playReported) {
|
|
12809
12800
|
setPlayReported(true);
|
|
12810
12801
|
var _intervalID = setInterval(function () {
|
|
12811
12802
|
handlePlayPercent(event.target);
|
|
@@ -12815,7 +12806,6 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12815
12806
|
};
|
|
12816
12807
|
|
|
12817
12808
|
var handleOnPause = function handleOnPause(event) {
|
|
12818
|
-
console.log('Video Pause');
|
|
12819
12809
|
var player = event.target;
|
|
12820
12810
|
var current = player.getCurrentTime();
|
|
12821
12811
|
var duration = player.getDuration();
|
|
@@ -12839,7 +12829,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12839
12829
|
React__default.createElement(
|
|
12840
12830
|
'div',
|
|
12841
12831
|
{ className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
12842
|
-
vidUrl && vidType == 'youtube' ? React__default.createElement(YouTube, { videoId: YoutubeGroup.getYoutubeId(vidUrl), opts: opts, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
|
|
12832
|
+
vidUrl && vidType == 'youtube' ? React__default.createElement(YouTube, { videoId: YoutubeGroup.getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
|
|
12843
12833
|
return handleOnEnd(e);
|
|
12844
12834
|
} }) : React__default.createElement(
|
|
12845
12835
|
'video',
|
|
@@ -13837,16 +13827,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
13837
13827
|
_ref$className = _ref.className,
|
|
13838
13828
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
13839
13829
|
|
|
13840
|
-
/*
|
|
13841
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
13842
|
-
example:
|
|
13843
|
-
<RelatedTopicDropdown
|
|
13844
|
-
page='/clinical'
|
|
13845
|
-
exclude="clinical"
|
|
13846
|
-
className='mb-3'
|
|
13847
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
13848
|
-
subTaxonomies={props.subTaxonomies}
|
|
13849
|
-
/>
|
|
13830
|
+
/*
|
|
13831
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
13832
|
+
example:
|
|
13833
|
+
<RelatedTopicDropdown
|
|
13834
|
+
page='/clinical'
|
|
13835
|
+
exclude="clinical"
|
|
13836
|
+
className='mb-3'
|
|
13837
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
13838
|
+
subTaxonomies={props.subTaxonomies}
|
|
13839
|
+
/>
|
|
13850
13840
|
*/
|
|
13851
13841
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
13852
13842
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -13884,19 +13874,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
13884
13874
|
}
|
|
13885
13875
|
};
|
|
13886
13876
|
|
|
13887
|
-
/*
|
|
13888
|
-
This dropdown is used inside Article body to display related content placement pages
|
|
13889
|
-
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
13890
|
-
|
|
13891
|
-
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
13892
|
-
|
|
13893
|
-
'content_placement': taxonomyMapping[]-> {
|
|
13894
|
-
...,
|
|
13895
|
-
'ancestor': parent->parent->identifier,
|
|
13896
|
-
'parent': parent->identifier,
|
|
13897
|
-
'path': identifier
|
|
13898
|
-
}
|
|
13899
|
-
|
|
13877
|
+
/*
|
|
13878
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
13879
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
13880
|
+
|
|
13881
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
13882
|
+
|
|
13883
|
+
'content_placement': taxonomyMapping[]-> {
|
|
13884
|
+
...,
|
|
13885
|
+
'ancestor': parent->parent->identifier,
|
|
13886
|
+
'parent': parent->identifier,
|
|
13887
|
+
'path': identifier
|
|
13888
|
+
}
|
|
13889
|
+
|
|
13900
13890
|
*/
|
|
13901
13891
|
|
|
13902
13892
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -14729,34 +14719,34 @@ var GridHero = function GridHero(props) {
|
|
|
14729
14719
|
);
|
|
14730
14720
|
};
|
|
14731
14721
|
|
|
14732
|
-
/*
|
|
14733
|
-
Sample query
|
|
14734
|
-
let references = ''
|
|
14735
|
-
if(article.taxonomyMapping.length > 0){
|
|
14736
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
14737
|
-
references = references + `references('${ref._ref}') `
|
|
14738
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
14739
|
-
references = references + ` && `
|
|
14740
|
-
}
|
|
14741
|
-
})
|
|
14742
|
-
}
|
|
14743
|
-
|
|
14744
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
14745
|
-
...,
|
|
14746
|
-
title,
|
|
14747
|
-
summary,
|
|
14748
|
-
thumbnail,
|
|
14749
|
-
url,
|
|
14750
|
-
published,
|
|
14751
|
-
authorMapping[]->,
|
|
14752
|
-
contentCategory->
|
|
14753
|
-
}`
|
|
14754
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
14755
|
-
|
|
14756
|
-
Sample usage
|
|
14757
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
14758
|
-
|
|
14759
|
-
|
|
14722
|
+
/*
|
|
14723
|
+
Sample query
|
|
14724
|
+
let references = ''
|
|
14725
|
+
if(article.taxonomyMapping.length > 0){
|
|
14726
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
14727
|
+
references = references + `references('${ref._ref}') `
|
|
14728
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
14729
|
+
references = references + ` && `
|
|
14730
|
+
}
|
|
14731
|
+
})
|
|
14732
|
+
}
|
|
14733
|
+
|
|
14734
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
14735
|
+
...,
|
|
14736
|
+
title,
|
|
14737
|
+
summary,
|
|
14738
|
+
thumbnail,
|
|
14739
|
+
url,
|
|
14740
|
+
published,
|
|
14741
|
+
authorMapping[]->,
|
|
14742
|
+
contentCategory->
|
|
14743
|
+
}`
|
|
14744
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
14745
|
+
|
|
14746
|
+
Sample usage
|
|
14747
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
14748
|
+
|
|
14749
|
+
|
|
14760
14750
|
*/
|
|
14761
14751
|
var RelatedContent = function RelatedContent(props) {
|
|
14762
14752
|
var client = props.client,
|
|
@@ -14823,21 +14813,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
14823
14813
|
);
|
|
14824
14814
|
};
|
|
14825
14815
|
|
|
14826
|
-
/*
|
|
14827
|
-
Example usage - targetedonc.com/latest-conference
|
|
14828
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
14829
|
-
...,
|
|
14830
|
-
title,
|
|
14831
|
-
summary,
|
|
14832
|
-
thumbnail,
|
|
14833
|
-
url,
|
|
14834
|
-
published,
|
|
14835
|
-
documentGroup->,
|
|
14836
|
-
contentCategory->,
|
|
14837
|
-
'pageNumber': ${currentPage}
|
|
14838
|
-
}`
|
|
14839
|
-
|
|
14840
|
-
const posts = await client.fetch(query, params)
|
|
14816
|
+
/*
|
|
14817
|
+
Example usage - targetedonc.com/latest-conference
|
|
14818
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
14819
|
+
...,
|
|
14820
|
+
title,
|
|
14821
|
+
summary,
|
|
14822
|
+
thumbnail,
|
|
14823
|
+
url,
|
|
14824
|
+
published,
|
|
14825
|
+
documentGroup->,
|
|
14826
|
+
contentCategory->,
|
|
14827
|
+
'pageNumber': ${currentPage}
|
|
14828
|
+
}`
|
|
14829
|
+
|
|
14830
|
+
const posts = await client.fetch(query, params)
|
|
14841
14831
|
*/
|
|
14842
14832
|
|
|
14843
14833
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -15464,27 +15454,27 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
15464
15454
|
};
|
|
15465
15455
|
|
|
15466
15456
|
var KMTracker = function KMTracker(props) {
|
|
15467
|
-
|
|
15457
|
+
var id = props.id;
|
|
15468
15458
|
|
|
15469
|
-
|
|
15459
|
+
if (document) {
|
|
15470
15460
|
(function () {
|
|
15471
|
-
|
|
15461
|
+
var ecnJquery = document.createElement('script');
|
|
15472
15462
|
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15463
|
+
ecnJquery.type = 'text/javascript';
|
|
15464
|
+
ecnJquery.async = true;
|
|
15465
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
15476
15466
|
|
|
15477
|
-
|
|
15467
|
+
var ecnScript = document.createElement('script');
|
|
15478
15468
|
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15469
|
+
ecnScript.type = 'text/javascript';
|
|
15470
|
+
ecnScript.async = true;
|
|
15471
|
+
ecnScript.id = 'km-tracker';
|
|
15472
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
15483
15473
|
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15474
|
+
document.head.appendChild(ecnJquery);
|
|
15475
|
+
document.head.appendChild(ecnScript);
|
|
15476
|
+
})();
|
|
15477
|
+
}
|
|
15488
15478
|
};
|
|
15489
15479
|
|
|
15490
15480
|
exports.AdSlot = AdSlot.DFPAdSlot;
|