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