@mjhls/mjh-framework 1.0.286 → 1.0.287
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/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Figure-a7cd5161.js → Figure-8789df2d.js} +1 -1
- package/dist/cjs/{GridContent-02acbd72.js → GridContent-fa2e1b56.js} +2 -2
- package/dist/cjs/GridContent.js +2 -2
- 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-2514655c.js → Normal-39da6300.js} +29 -29
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-cf5bbc07.js → TaxonomyCard-7ba4a872.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/{YoutubeGroup-98ffbc57.js → YoutubeGroup-39eba427.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
- package/dist/cjs/index.js +548 -553
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-d6e22818.js → Figure-b5847ea2.js} +1 -1
- package/dist/esm/{GridContent-96716e42.js → GridContent-88ed988c.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- 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-d27184f4.js → Normal-246ae27e.js} +29 -29
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-ee1a22ae.js → TaxonomyCard-2d0ab635.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/{YoutubeGroup-562ed456.js → YoutubeGroup-f59297bb.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
- package/dist/esm/index.js +551 -556
- package/package.json +103 -103
package/dist/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
|
|
|
17
17
|
import Link from 'next/link';
|
|
18
18
|
import Router, { useRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
21
21
|
import './index-5f9f807a.js';
|
|
22
22
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
@@ -27,16 +27,16 @@ import './promise-e3480f1c.js';
|
|
|
27
27
|
import './ADInfeed-ac3ac372.js';
|
|
28
28
|
export { default as DeckContent } from './DeckContent.js';
|
|
29
29
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
|
|
30
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
30
|
+
export { A as AD, G as GridContent } from './GridContent-88ed988c.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-2d0ab635.js';
|
|
35
|
+
export { T as TaxonomyCard } from './TaxonomyCard-2d0ab635.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-f59297bb.js';
|
|
39
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
|
|
40
40
|
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, 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-246ae27e.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-246ae27e.js';
|
|
53
53
|
import 'react-bootstrap/ListGroup';
|
|
54
54
|
import Head from 'next/head';
|
|
55
55
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -3172,18 +3172,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3172
3172
|
);
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3175
|
+
var isArray = Array.isArray;
|
|
3176
|
+
var keyList = Object.keys;
|
|
3177
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3178
3178
|
|
|
3179
3179
|
var fastDeepEqual = function equal(a, b) {
|
|
3180
3180
|
if (a === b) return true;
|
|
3181
3181
|
|
|
3182
3182
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3183
|
-
|
|
3183
|
+
var arrA = isArray(a)
|
|
3184
|
+
, arrB = isArray(b)
|
|
3185
|
+
, i
|
|
3186
|
+
, length
|
|
3187
|
+
, key;
|
|
3184
3188
|
|
|
3185
|
-
|
|
3186
|
-
if (Array.isArray(a)) {
|
|
3189
|
+
if (arrA && arrB) {
|
|
3187
3190
|
length = a.length;
|
|
3188
3191
|
if (length != b.length) return false;
|
|
3189
3192
|
for (i = length; i-- !== 0;)
|
|
@@ -3191,29 +3194,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3191
3194
|
return true;
|
|
3192
3195
|
}
|
|
3193
3196
|
|
|
3197
|
+
if (arrA != arrB) return false;
|
|
3194
3198
|
|
|
3199
|
+
var dateA = a instanceof Date
|
|
3200
|
+
, dateB = b instanceof Date;
|
|
3201
|
+
if (dateA != dateB) return false;
|
|
3202
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3195
3203
|
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
if (
|
|
3204
|
+
var regexpA = a instanceof RegExp
|
|
3205
|
+
, regexpB = b instanceof RegExp;
|
|
3206
|
+
if (regexpA != regexpB) return false;
|
|
3207
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3199
3208
|
|
|
3200
|
-
keys =
|
|
3209
|
+
var keys = keyList(a);
|
|
3201
3210
|
length = keys.length;
|
|
3202
|
-
|
|
3211
|
+
|
|
3212
|
+
if (length !== keyList(b).length)
|
|
3213
|
+
return false;
|
|
3203
3214
|
|
|
3204
3215
|
for (i = length; i-- !== 0;)
|
|
3205
|
-
if (!
|
|
3216
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3206
3217
|
|
|
3207
3218
|
for (i = length; i-- !== 0;) {
|
|
3208
|
-
|
|
3209
|
-
|
|
3219
|
+
key = keys[i];
|
|
3210
3220
|
if (!equal(a[key], b[key])) return false;
|
|
3211
3221
|
}
|
|
3212
3222
|
|
|
3213
3223
|
return true;
|
|
3214
3224
|
}
|
|
3215
3225
|
|
|
3216
|
-
// true if both NaN, false otherwise
|
|
3217
3226
|
return a!==a && b!==b;
|
|
3218
3227
|
};
|
|
3219
3228
|
|
|
@@ -4236,7 +4245,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4236
4245
|
var base = '', array = false, braces = ['{', '}'];
|
|
4237
4246
|
|
|
4238
4247
|
// Make Array say that they are Array
|
|
4239
|
-
if (isArray(value)) {
|
|
4248
|
+
if (isArray$1(value)) {
|
|
4240
4249
|
array = true;
|
|
4241
4250
|
braces = ['[', ']'];
|
|
4242
4251
|
}
|
|
@@ -4415,7 +4424,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4415
4424
|
|
|
4416
4425
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4417
4426
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4418
|
-
function isArray(ar) {
|
|
4427
|
+
function isArray$1(ar) {
|
|
4419
4428
|
return Array.isArray(ar);
|
|
4420
4429
|
}
|
|
4421
4430
|
|
|
@@ -4542,7 +4551,7 @@ var util = {
|
|
|
4542
4551
|
isNullOrUndefined: isNullOrUndefined,
|
|
4543
4552
|
isNull: isNull,
|
|
4544
4553
|
isBoolean: isBoolean,
|
|
4545
|
-
isArray: isArray,
|
|
4554
|
+
isArray: isArray$1,
|
|
4546
4555
|
inspect: inspect,
|
|
4547
4556
|
deprecate: deprecate,
|
|
4548
4557
|
format: format,
|
|
@@ -5209,235 +5218,199 @@ module.exports = exports['default'];
|
|
|
5209
5218
|
|
|
5210
5219
|
var youTubePlayer = unwrapExports(dist);
|
|
5211
5220
|
|
|
5212
|
-
function
|
|
5221
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
5213
5222
|
|
|
5214
|
-
function
|
|
5223
|
+
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; };
|
|
5215
5224
|
|
|
5216
|
-
function
|
|
5217
|
-
|
|
5218
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5219
|
-
|
|
5220
|
-
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); }; }
|
|
5221
|
-
|
|
5222
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5223
|
-
|
|
5224
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5225
|
-
|
|
5226
|
-
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; } }
|
|
5227
|
-
|
|
5228
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5229
|
-
|
|
5230
|
-
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); }
|
|
5231
|
-
|
|
5232
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5225
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5233
5226
|
|
|
5234
|
-
function
|
|
5227
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
5235
5228
|
|
|
5236
|
-
function
|
|
5229
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5237
5230
|
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
*
|
|
5241
|
-
*
|
|
5242
|
-
* @param {Object}
|
|
5243
|
-
* @param {Object} props
|
|
5231
|
+
/**
|
|
5232
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5233
|
+
*
|
|
5234
|
+
* @param {Object} prevProps
|
|
5235
|
+
* @param {Object} props
|
|
5244
5236
|
*/
|
|
5245
|
-
|
|
5246
5237
|
function shouldUpdateVideo(prevProps, props) {
|
|
5247
5238
|
// A changing video should always trigger an update
|
|
5248
5239
|
if (prevProps.videoId !== props.videoId) {
|
|
5249
5240
|
return true;
|
|
5250
|
-
}
|
|
5251
|
-
// update.
|
|
5252
|
-
|
|
5241
|
+
}
|
|
5253
5242
|
|
|
5243
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5244
|
+
// update.
|
|
5254
5245
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5255
5246
|
var vars = props.opts.playerVars || {};
|
|
5247
|
+
|
|
5256
5248
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5257
5249
|
}
|
|
5258
|
-
/**
|
|
5259
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5260
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5261
|
-
* player reset is necessary.
|
|
5262
|
-
*
|
|
5263
|
-
* @param {Object} opts
|
|
5264
|
-
*/
|
|
5265
|
-
|
|
5266
5250
|
|
|
5251
|
+
/**
|
|
5252
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5253
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5254
|
+
* player reset is necessary.
|
|
5255
|
+
*
|
|
5256
|
+
* @param {Object} opts
|
|
5257
|
+
*/
|
|
5267
5258
|
function filterResetOptions(opts) {
|
|
5268
|
-
return
|
|
5269
|
-
playerVars:
|
|
5259
|
+
return _extends({}, opts, {
|
|
5260
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5270
5261
|
autoplay: 0,
|
|
5271
5262
|
start: 0,
|
|
5272
5263
|
end: 0
|
|
5273
5264
|
})
|
|
5274
5265
|
});
|
|
5275
5266
|
}
|
|
5276
|
-
/**
|
|
5277
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5278
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5279
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5280
|
-
* those.
|
|
5281
|
-
*
|
|
5282
|
-
* @param {Object} prevProps
|
|
5283
|
-
* @param {Object} props
|
|
5284
|
-
*/
|
|
5285
|
-
|
|
5286
5267
|
|
|
5268
|
+
/**
|
|
5269
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5270
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5271
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5272
|
+
* those.
|
|
5273
|
+
*
|
|
5274
|
+
* @param {Object} prevProps
|
|
5275
|
+
* @param {Object} props
|
|
5276
|
+
*/
|
|
5287
5277
|
function shouldResetPlayer(prevProps, props) {
|
|
5288
5278
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5289
5279
|
}
|
|
5290
|
-
/**
|
|
5291
|
-
* Check whether a props change should result in an id or className update.
|
|
5292
|
-
*
|
|
5293
|
-
* @param {Object} prevProps
|
|
5294
|
-
* @param {Object} props
|
|
5295
|
-
*/
|
|
5296
|
-
|
|
5297
5280
|
|
|
5281
|
+
/**
|
|
5282
|
+
* Check whether a props change should result in an id or className update.
|
|
5283
|
+
*
|
|
5284
|
+
* @param {Object} prevProps
|
|
5285
|
+
* @param {Object} props
|
|
5286
|
+
*/
|
|
5298
5287
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5299
5288
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5300
5289
|
}
|
|
5301
5290
|
|
|
5302
|
-
var YouTube =
|
|
5291
|
+
var YouTube = function (_React$Component) {
|
|
5303
5292
|
_inherits(YouTube, _React$Component);
|
|
5304
5293
|
|
|
5305
|
-
var _super = _createSuper(YouTube);
|
|
5306
|
-
|
|
5307
|
-
/**
|
|
5308
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5309
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5310
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5311
|
-
*/
|
|
5312
5294
|
function YouTube(props) {
|
|
5313
|
-
var _this;
|
|
5314
|
-
|
|
5315
5295
|
_classCallCheck(this, YouTube);
|
|
5316
5296
|
|
|
5317
|
-
_this =
|
|
5297
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5318
5298
|
|
|
5319
|
-
|
|
5299
|
+
_this.onPlayerReady = function (event) {
|
|
5320
5300
|
return _this.props.onReady(event);
|
|
5321
|
-
}
|
|
5301
|
+
};
|
|
5322
5302
|
|
|
5323
|
-
|
|
5303
|
+
_this.onPlayerError = function (event) {
|
|
5324
5304
|
return _this.props.onError(event);
|
|
5325
|
-
}
|
|
5305
|
+
};
|
|
5326
5306
|
|
|
5327
|
-
|
|
5307
|
+
_this.onPlayerStateChange = function (event) {
|
|
5328
5308
|
_this.props.onStateChange(event);
|
|
5329
|
-
|
|
5330
5309
|
switch (event.data) {
|
|
5310
|
+
|
|
5331
5311
|
case YouTube.PlayerState.ENDED:
|
|
5332
5312
|
_this.props.onEnd(event);
|
|
5333
|
-
|
|
5334
5313
|
break;
|
|
5335
5314
|
|
|
5336
5315
|
case YouTube.PlayerState.PLAYING:
|
|
5337
5316
|
_this.props.onPlay(event);
|
|
5338
|
-
|
|
5339
5317
|
break;
|
|
5340
5318
|
|
|
5341
5319
|
case YouTube.PlayerState.PAUSED:
|
|
5342
5320
|
_this.props.onPause(event);
|
|
5343
|
-
|
|
5344
5321
|
break;
|
|
5345
5322
|
}
|
|
5346
|
-
}
|
|
5323
|
+
};
|
|
5347
5324
|
|
|
5348
|
-
|
|
5325
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5349
5326
|
return _this.props.onPlaybackRateChange(event);
|
|
5350
|
-
}
|
|
5327
|
+
};
|
|
5351
5328
|
|
|
5352
|
-
|
|
5329
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5353
5330
|
return _this.props.onPlaybackQualityChange(event);
|
|
5354
|
-
}
|
|
5331
|
+
};
|
|
5355
5332
|
|
|
5356
|
-
|
|
5333
|
+
_this.createPlayer = function () {
|
|
5357
5334
|
// do not attempt to create a player server-side, it won't work
|
|
5358
|
-
if (typeof document === 'undefined') return;
|
|
5359
|
-
|
|
5360
|
-
var playerOpts =
|
|
5335
|
+
if (typeof document === 'undefined') return;
|
|
5336
|
+
// create player
|
|
5337
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5361
5338
|
// preload the `videoId` video if one is already given
|
|
5362
5339
|
videoId: _this.props.videoId
|
|
5363
5340
|
});
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5341
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5342
|
+
// attach event handlers
|
|
5367
5343
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5368
|
-
|
|
5369
5344
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5370
|
-
|
|
5371
5345
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5372
|
-
|
|
5373
5346
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5374
|
-
|
|
5375
5347
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5376
|
-
}
|
|
5348
|
+
};
|
|
5377
5349
|
|
|
5378
|
-
|
|
5350
|
+
_this.resetPlayer = function () {
|
|
5379
5351
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5380
|
-
}
|
|
5352
|
+
};
|
|
5381
5353
|
|
|
5382
|
-
|
|
5354
|
+
_this.updatePlayer = function () {
|
|
5383
5355
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5384
5356
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5385
5357
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5386
5358
|
});
|
|
5387
|
-
}
|
|
5359
|
+
};
|
|
5388
5360
|
|
|
5389
|
-
|
|
5361
|
+
_this.updateVideo = function () {
|
|
5390
5362
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5391
5363
|
_this.internalPlayer.stopVideo();
|
|
5392
|
-
|
|
5393
5364
|
return;
|
|
5394
|
-
}
|
|
5395
|
-
|
|
5365
|
+
}
|
|
5396
5366
|
|
|
5367
|
+
// set queueing options
|
|
5397
5368
|
var autoplay = false;
|
|
5398
5369
|
var opts = {
|
|
5399
5370
|
videoId: _this.props.videoId
|
|
5400
5371
|
};
|
|
5401
|
-
|
|
5402
5372
|
if ('playerVars' in _this.props.opts) {
|
|
5403
5373
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5404
|
-
|
|
5405
5374
|
if ('start' in _this.props.opts.playerVars) {
|
|
5406
5375
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5407
5376
|
}
|
|
5408
|
-
|
|
5409
5377
|
if ('end' in _this.props.opts.playerVars) {
|
|
5410
5378
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5411
5379
|
}
|
|
5412
|
-
}
|
|
5413
|
-
|
|
5380
|
+
}
|
|
5414
5381
|
|
|
5382
|
+
// if autoplay is enabled loadVideoById
|
|
5415
5383
|
if (autoplay) {
|
|
5416
5384
|
_this.internalPlayer.loadVideoById(opts);
|
|
5417
|
-
|
|
5418
5385
|
return;
|
|
5419
|
-
}
|
|
5420
|
-
|
|
5421
|
-
|
|
5386
|
+
}
|
|
5387
|
+
// default behaviour just cues the video
|
|
5422
5388
|
_this.internalPlayer.cueVideoById(opts);
|
|
5423
|
-
}
|
|
5389
|
+
};
|
|
5424
5390
|
|
|
5425
|
-
|
|
5391
|
+
_this.refContainer = function (container) {
|
|
5426
5392
|
_this.container = container;
|
|
5427
|
-
}
|
|
5393
|
+
};
|
|
5428
5394
|
|
|
5429
5395
|
_this.container = null;
|
|
5430
5396
|
_this.internalPlayer = null;
|
|
5431
5397
|
return _this;
|
|
5432
5398
|
}
|
|
5433
5399
|
|
|
5400
|
+
/**
|
|
5401
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5402
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5403
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5404
|
+
*/
|
|
5405
|
+
|
|
5406
|
+
|
|
5434
5407
|
_createClass(YouTube, [{
|
|
5435
|
-
key:
|
|
5408
|
+
key: 'componentDidMount',
|
|
5436
5409
|
value: function componentDidMount() {
|
|
5437
5410
|
this.createPlayer();
|
|
5438
5411
|
}
|
|
5439
5412
|
}, {
|
|
5440
|
-
key:
|
|
5413
|
+
key: 'componentDidUpdate',
|
|
5441
5414
|
value: function componentDidUpdate(prevProps) {
|
|
5442
5415
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5443
5416
|
this.updatePlayer();
|
|
@@ -5452,58 +5425,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5452
5425
|
}
|
|
5453
5426
|
}
|
|
5454
5427
|
}, {
|
|
5455
|
-
key:
|
|
5428
|
+
key: 'componentWillUnmount',
|
|
5456
5429
|
value: function componentWillUnmount() {
|
|
5457
|
-
/**
|
|
5458
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5459
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5460
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5461
|
-
* this method isn't quick enough to reset the container element.
|
|
5430
|
+
/**
|
|
5431
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5432
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5433
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5434
|
+
* this method isn't quick enough to reset the container element.
|
|
5462
5435
|
*/
|
|
5463
5436
|
this.internalPlayer.destroy();
|
|
5464
5437
|
}
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
*
|
|
5468
|
-
*
|
|
5469
|
-
*
|
|
5438
|
+
|
|
5439
|
+
/**
|
|
5440
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5441
|
+
*
|
|
5442
|
+
* @param {Object} event
|
|
5443
|
+
* @param {Object} target - player object
|
|
5444
|
+
*/
|
|
5445
|
+
|
|
5446
|
+
|
|
5447
|
+
/**
|
|
5448
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5449
|
+
*
|
|
5450
|
+
* @param {Object} event
|
|
5451
|
+
* @param {Integer} data - error type
|
|
5452
|
+
* @param {Object} target - player object
|
|
5453
|
+
*/
|
|
5454
|
+
|
|
5455
|
+
|
|
5456
|
+
/**
|
|
5457
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5458
|
+
*
|
|
5459
|
+
* @param {Object} event
|
|
5460
|
+
* @param {Integer} data - status change type
|
|
5461
|
+
* @param {Object} target - actual YT player
|
|
5462
|
+
*/
|
|
5463
|
+
|
|
5464
|
+
|
|
5465
|
+
/**
|
|
5466
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5467
|
+
*
|
|
5468
|
+
* @param {Object} event
|
|
5469
|
+
* @param {Float} data - playback rate
|
|
5470
|
+
* @param {Object} target - actual YT player
|
|
5471
|
+
*/
|
|
5472
|
+
|
|
5473
|
+
|
|
5474
|
+
/**
|
|
5475
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5476
|
+
*
|
|
5477
|
+
* @param {Object} event
|
|
5478
|
+
* @param {String} data - playback quality
|
|
5479
|
+
* @param {Object} target - actual YT player
|
|
5480
|
+
*/
|
|
5481
|
+
|
|
5482
|
+
|
|
5483
|
+
/**
|
|
5484
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5485
|
+
*/
|
|
5486
|
+
|
|
5487
|
+
|
|
5488
|
+
/**
|
|
5489
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5490
|
+
*/
|
|
5491
|
+
|
|
5492
|
+
|
|
5493
|
+
/**
|
|
5494
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5495
|
+
* React should update this automatically but since the Youtube Player API
|
|
5496
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5497
|
+
*/
|
|
5498
|
+
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5502
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5503
|
+
* Youtube Player API methods to update the video.
|
|
5470
5504
|
*/
|
|
5471
5505
|
|
|
5472
5506
|
}, {
|
|
5473
|
-
key:
|
|
5507
|
+
key: 'render',
|
|
5474
5508
|
value: function render() {
|
|
5475
|
-
return
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
id: this.props.id,
|
|
5479
|
-
|
|
5480
|
-
ref: this.refContainer
|
|
5481
|
-
}));
|
|
5509
|
+
return React__default.createElement(
|
|
5510
|
+
'div',
|
|
5511
|
+
{ className: this.props.containerClassName },
|
|
5512
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5513
|
+
);
|
|
5482
5514
|
}
|
|
5483
5515
|
}]);
|
|
5484
5516
|
|
|
5485
5517
|
return YouTube;
|
|
5486
5518
|
}(React__default.Component);
|
|
5487
5519
|
|
|
5488
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5489
|
-
UNSTARTED: -1,
|
|
5490
|
-
ENDED: 0,
|
|
5491
|
-
PLAYING: 1,
|
|
5492
|
-
PAUSED: 2,
|
|
5493
|
-
BUFFERING: 3,
|
|
5494
|
-
CUED: 5
|
|
5495
|
-
});
|
|
5496
|
-
|
|
5497
5520
|
YouTube.propTypes = {
|
|
5498
5521
|
videoId: PropTypes.string,
|
|
5522
|
+
|
|
5499
5523
|
// custom ID for player element
|
|
5500
5524
|
id: PropTypes.string,
|
|
5525
|
+
|
|
5501
5526
|
// custom class name for player element
|
|
5502
5527
|
className: PropTypes.string,
|
|
5503
5528
|
// custom class name for player container element
|
|
5504
5529
|
containerClassName: PropTypes.string,
|
|
5530
|
+
|
|
5505
5531
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5506
5532
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5533
|
+
|
|
5507
5534
|
// event subscriptions
|
|
5508
5535
|
onReady: PropTypes.func,
|
|
5509
5536
|
onError: PropTypes.func,
|
|
@@ -5515,7 +5542,6 @@ YouTube.propTypes = {
|
|
|
5515
5542
|
onPlaybackQualityChange: PropTypes.func
|
|
5516
5543
|
};
|
|
5517
5544
|
YouTube.defaultProps = {
|
|
5518
|
-
videoId: null,
|
|
5519
5545
|
id: null,
|
|
5520
5546
|
className: null,
|
|
5521
5547
|
opts: {},
|
|
@@ -5529,6 +5555,14 @@ YouTube.defaultProps = {
|
|
|
5529
5555
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5530
5556
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5531
5557
|
};
|
|
5558
|
+
YouTube.PlayerState = {
|
|
5559
|
+
UNSTARTED: -1,
|
|
5560
|
+
ENDED: 0,
|
|
5561
|
+
PLAYING: 1,
|
|
5562
|
+
PAUSED: 2,
|
|
5563
|
+
BUFFERING: 3,
|
|
5564
|
+
CUED: 5
|
|
5565
|
+
};
|
|
5532
5566
|
|
|
5533
5567
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5534
5568
|
var url = _ref.url;
|
|
@@ -6440,17 +6474,17 @@ DocumentFragment.prototype.toString =
|
|
|
6440
6474
|
}).join("")
|
|
6441
6475
|
};
|
|
6442
6476
|
|
|
6443
|
-
var event = Event;
|
|
6477
|
+
var event = Event$1;
|
|
6444
6478
|
|
|
6445
|
-
function Event(family) {}
|
|
6479
|
+
function Event$1(family) {}
|
|
6446
6480
|
|
|
6447
|
-
Event.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
|
|
6481
|
+
Event$1.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
|
|
6448
6482
|
this.type = type;
|
|
6449
6483
|
this.bubbles = bubbles;
|
|
6450
6484
|
this.cancelable = cancelable;
|
|
6451
6485
|
};
|
|
6452
6486
|
|
|
6453
|
-
Event.prototype.preventDefault = function _Event_preventDefault() {
|
|
6487
|
+
Event$1.prototype.preventDefault = function _Event_preventDefault() {
|
|
6454
6488
|
|
|
6455
6489
|
};
|
|
6456
6490
|
|
|
@@ -6552,8 +6586,8 @@ var window_1 = win;
|
|
|
6552
6586
|
|
|
6553
6587
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6554
6588
|
|
|
6555
|
-
function _extends() {
|
|
6556
|
-
_extends = Object.assign || function (target) {
|
|
6589
|
+
function _extends$1() {
|
|
6590
|
+
_extends$1 = Object.assign || function (target) {
|
|
6557
6591
|
for (var i = 1; i < arguments.length; i++) {
|
|
6558
6592
|
var source = arguments[i];
|
|
6559
6593
|
|
|
@@ -6567,7 +6601,7 @@ function _extends() {
|
|
|
6567
6601
|
return target;
|
|
6568
6602
|
};
|
|
6569
6603
|
|
|
6570
|
-
return _extends.apply(this, arguments);
|
|
6604
|
+
return _extends$1.apply(this, arguments);
|
|
6571
6605
|
}
|
|
6572
6606
|
|
|
6573
6607
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6576,7 +6610,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6576
6610
|
subClass.__proto__ = superClass;
|
|
6577
6611
|
}
|
|
6578
6612
|
|
|
6579
|
-
function _assertThisInitialized
|
|
6613
|
+
function _assertThisInitialized(self) {
|
|
6580
6614
|
if (self === void 0) {
|
|
6581
6615
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6582
6616
|
}
|
|
@@ -6586,8 +6620,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6586
6620
|
|
|
6587
6621
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6588
6622
|
|
|
6589
|
-
function _extends$1() {
|
|
6590
|
-
_extends$1 = Object.assign || function (target) {
|
|
6623
|
+
function _extends$1$1() {
|
|
6624
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6591
6625
|
for (var i = 1; i < arguments.length; i++) {
|
|
6592
6626
|
var source = arguments[i];
|
|
6593
6627
|
|
|
@@ -6601,7 +6635,7 @@ function _extends$1() {
|
|
|
6601
6635
|
return target;
|
|
6602
6636
|
};
|
|
6603
6637
|
|
|
6604
|
-
return _extends$1.apply(this, arguments);
|
|
6638
|
+
return _extends$1$1.apply(this, arguments);
|
|
6605
6639
|
}
|
|
6606
6640
|
|
|
6607
6641
|
var version$1 = "1.7.1";
|
|
@@ -6609,7 +6643,7 @@ var version$1 = "1.7.1";
|
|
|
6609
6643
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6610
6644
|
var version$1$1 = "1.2.0";
|
|
6611
6645
|
|
|
6612
|
-
var _typeof
|
|
6646
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6613
6647
|
return typeof obj;
|
|
6614
6648
|
} : function (obj) {
|
|
6615
6649
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6744,7 +6778,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6744
6778
|
|
|
6745
6779
|
var qs = '';
|
|
6746
6780
|
|
|
6747
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6781
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6748
6782
|
qs = getQueryString(queryParams);
|
|
6749
6783
|
}
|
|
6750
6784
|
|
|
@@ -6978,7 +7012,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
6978
7012
|
el.style.width = '100%';
|
|
6979
7013
|
el.style.height = '100%';
|
|
6980
7014
|
|
|
6981
|
-
var responsive = _extends$1({
|
|
7015
|
+
var responsive = _extends$1$1({
|
|
6982
7016
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
6983
7017
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
6984
7018
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7663,7 +7697,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7663
7697
|
|
|
7664
7698
|
|
|
7665
7699
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7666
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7700
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7667
7701
|
|
|
7668
7702
|
var Promise = params.Promise,
|
|
7669
7703
|
onSuccess = params.onSuccess,
|
|
@@ -7805,7 +7839,7 @@ function (_React$Component) {
|
|
|
7805
7839
|
_this.refNode = ref;
|
|
7806
7840
|
};
|
|
7807
7841
|
|
|
7808
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7842
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7809
7843
|
return _this;
|
|
7810
7844
|
}
|
|
7811
7845
|
/**
|
|
@@ -7826,7 +7860,7 @@ function (_React$Component) {
|
|
|
7826
7860
|
var userSuccess = this.props.onSuccess;
|
|
7827
7861
|
var userFailure = this.props.onFailure;
|
|
7828
7862
|
|
|
7829
|
-
var options = _extends({}, this.props, {
|
|
7863
|
+
var options = _extends$1({}, this.props, {
|
|
7830
7864
|
refNode: this.refNode,
|
|
7831
7865
|
refNodeInsert: 'append',
|
|
7832
7866
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8135,7 +8169,7 @@ function (_React$Component) {
|
|
|
8135
8169
|
;
|
|
8136
8170
|
|
|
8137
8171
|
_proto.render = function render() {
|
|
8138
|
-
var props = _extends({
|
|
8172
|
+
var props = _extends$1({
|
|
8139
8173
|
className: 'brightcove-react-player-loader'
|
|
8140
8174
|
}, this.props.attrs, {
|
|
8141
8175
|
ref: this.setRefNode
|
|
@@ -8549,17 +8583,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8549
8583
|
|
|
8550
8584
|
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; }
|
|
8551
8585
|
|
|
8552
|
-
function
|
|
8553
|
-
|
|
8554
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8586
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8555
8587
|
|
|
8556
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8588
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8557
8589
|
|
|
8558
|
-
function
|
|
8559
|
-
|
|
8560
|
-
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; }
|
|
8561
|
-
|
|
8562
|
-
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; }
|
|
8590
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8563
8591
|
|
|
8564
8592
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8565
8593
|
|
|
@@ -8689,12 +8717,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8689
8717
|
|
|
8690
8718
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8691
8719
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8692
|
-
|
|
8693
|
-
var
|
|
8694
|
-
|
|
8720
|
+
var _iteratorNormalCompletion = true;
|
|
8721
|
+
var _didIteratorError = false;
|
|
8722
|
+
var _iteratorError = undefined;
|
|
8695
8723
|
|
|
8696
8724
|
try {
|
|
8697
|
-
for (_iterator.
|
|
8725
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8698
8726
|
var p = _step.value;
|
|
8699
8727
|
|
|
8700
8728
|
if (props$1[p]) {
|
|
@@ -8709,9 +8737,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8709
8737
|
}
|
|
8710
8738
|
}
|
|
8711
8739
|
} catch (err) {
|
|
8712
|
-
|
|
8740
|
+
_didIteratorError = true;
|
|
8741
|
+
_iteratorError = err;
|
|
8713
8742
|
} finally {
|
|
8714
|
-
|
|
8743
|
+
try {
|
|
8744
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8745
|
+
_iterator["return"]();
|
|
8746
|
+
}
|
|
8747
|
+
} finally {
|
|
8748
|
+
if (_didIteratorError) {
|
|
8749
|
+
throw _iteratorError;
|
|
8750
|
+
}
|
|
8751
|
+
}
|
|
8715
8752
|
}
|
|
8716
8753
|
|
|
8717
8754
|
return config;
|
|
@@ -8858,16 +8895,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8858
8895
|
|
|
8859
8896
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8860
8897
|
|
|
8861
|
-
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); }; }
|
|
8862
|
-
|
|
8863
8898
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8864
8899
|
|
|
8865
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8866
|
-
|
|
8867
|
-
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; } }
|
|
8868
|
-
|
|
8869
8900
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8870
8901
|
|
|
8902
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8903
|
+
|
|
8871
8904
|
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); }
|
|
8872
8905
|
|
|
8873
8906
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8876,12 +8909,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8876
8909
|
|
|
8877
8910
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8878
8911
|
|
|
8879
|
-
var Player =
|
|
8912
|
+
var Player =
|
|
8913
|
+
/*#__PURE__*/
|
|
8914
|
+
function (_Component) {
|
|
8880
8915
|
_inherits(Player, _Component);
|
|
8881
8916
|
|
|
8882
|
-
var _super = _createSuper(Player);
|
|
8883
|
-
|
|
8884
8917
|
function Player() {
|
|
8918
|
+
var _getPrototypeOf2;
|
|
8919
|
+
|
|
8885
8920
|
var _this;
|
|
8886
8921
|
|
|
8887
8922
|
_classCallCheck(this, Player);
|
|
@@ -8890,7 +8925,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
8890
8925
|
_args[_key] = arguments[_key];
|
|
8891
8926
|
}
|
|
8892
8927
|
|
|
8893
|
-
_this =
|
|
8928
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
8894
8929
|
|
|
8895
8930
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8896
8931
|
|
|
@@ -9215,7 +9250,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9215
9250
|
return null;
|
|
9216
9251
|
}
|
|
9217
9252
|
|
|
9218
|
-
return
|
|
9253
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9219
9254
|
ref: this.ref,
|
|
9220
9255
|
onReady: this.handleReady,
|
|
9221
9256
|
onPlay: this.handlePlay,
|
|
@@ -9276,16 +9311,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9276
9311
|
|
|
9277
9312
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9278
9313
|
|
|
9279
|
-
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); }; }
|
|
9280
|
-
|
|
9281
9314
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9282
9315
|
|
|
9283
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9284
|
-
|
|
9285
|
-
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; } }
|
|
9286
|
-
|
|
9287
9316
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9288
9317
|
|
|
9318
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9319
|
+
|
|
9289
9320
|
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); }
|
|
9290
9321
|
|
|
9291
9322
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9297,12 +9328,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9297
9328
|
function createSinglePlayer(activePlayer) {
|
|
9298
9329
|
var _class, _temp;
|
|
9299
9330
|
|
|
9300
|
-
return _temp = _class =
|
|
9331
|
+
return _temp = _class =
|
|
9332
|
+
/*#__PURE__*/
|
|
9333
|
+
function (_Component) {
|
|
9301
9334
|
_inherits(SinglePlayer, _Component);
|
|
9302
9335
|
|
|
9303
|
-
var _super = _createSuper(SinglePlayer);
|
|
9304
|
-
|
|
9305
9336
|
function SinglePlayer() {
|
|
9337
|
+
var _getPrototypeOf2;
|
|
9338
|
+
|
|
9306
9339
|
var _this;
|
|
9307
9340
|
|
|
9308
9341
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9311,7 +9344,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9311
9344
|
args[_key] = arguments[_key];
|
|
9312
9345
|
}
|
|
9313
9346
|
|
|
9314
|
-
_this =
|
|
9347
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9315
9348
|
|
|
9316
9349
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9317
9350
|
|
|
@@ -9379,12 +9412,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9379
9412
|
height = _this$props.height,
|
|
9380
9413
|
Wrapper = _this$props.wrapper;
|
|
9381
9414
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9382
|
-
return
|
|
9415
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9383
9416
|
style: _objectSpread({}, style, {
|
|
9384
9417
|
width: width,
|
|
9385
9418
|
height: height
|
|
9386
9419
|
})
|
|
9387
|
-
}, otherProps),
|
|
9420
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9388
9421
|
ref: this.ref,
|
|
9389
9422
|
activePlayer: activePlayer,
|
|
9390
9423
|
config: this.config
|
|
@@ -9430,31 +9463,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9430
9463
|
|
|
9431
9464
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9432
9465
|
|
|
9433
|
-
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); }; }
|
|
9434
|
-
|
|
9435
9466
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9436
9467
|
|
|
9437
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9438
|
-
|
|
9439
|
-
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; } }
|
|
9440
|
-
|
|
9441
9468
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9442
9469
|
|
|
9470
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9471
|
+
|
|
9443
9472
|
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); }
|
|
9444
9473
|
|
|
9445
9474
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9446
9475
|
|
|
9447
9476
|
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; }
|
|
9448
9477
|
|
|
9449
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9450
|
-
|
|
9451
|
-
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."); }
|
|
9452
|
-
|
|
9453
|
-
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); }
|
|
9478
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9454
9479
|
|
|
9455
|
-
function
|
|
9480
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9456
9481
|
|
|
9457
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
9482
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9458
9483
|
|
|
9459
9484
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9460
9485
|
|
|
@@ -9479,12 +9504,14 @@ function parsePlaylist(url) {
|
|
|
9479
9504
|
return {};
|
|
9480
9505
|
}
|
|
9481
9506
|
|
|
9482
|
-
var YouTube =
|
|
9507
|
+
var YouTube =
|
|
9508
|
+
/*#__PURE__*/
|
|
9509
|
+
function (_Component) {
|
|
9483
9510
|
_inherits(YouTube, _Component);
|
|
9484
9511
|
|
|
9485
|
-
var _super = _createSuper(YouTube);
|
|
9486
|
-
|
|
9487
9512
|
function YouTube() {
|
|
9513
|
+
var _getPrototypeOf2;
|
|
9514
|
+
|
|
9488
9515
|
var _this;
|
|
9489
9516
|
|
|
9490
9517
|
_classCallCheck(this, YouTube);
|
|
@@ -9493,7 +9520,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9493
9520
|
args[_key] = arguments[_key];
|
|
9494
9521
|
}
|
|
9495
9522
|
|
|
9496
|
-
_this =
|
|
9523
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9497
9524
|
|
|
9498
9525
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9499
9526
|
|
|
@@ -9681,9 +9708,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9681
9708
|
height: '100%',
|
|
9682
9709
|
display: display
|
|
9683
9710
|
};
|
|
9684
|
-
return
|
|
9711
|
+
return _react["default"].createElement("div", {
|
|
9685
9712
|
style: style
|
|
9686
|
-
},
|
|
9713
|
+
}, _react["default"].createElement("div", {
|
|
9687
9714
|
ref: this.ref
|
|
9688
9715
|
}));
|
|
9689
9716
|
}
|
|
@@ -9739,16 +9766,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9739
9766
|
|
|
9740
9767
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9741
9768
|
|
|
9742
|
-
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); }; }
|
|
9743
|
-
|
|
9744
9769
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9745
9770
|
|
|
9746
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9747
|
-
|
|
9748
|
-
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; } }
|
|
9749
|
-
|
|
9750
9771
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9751
9772
|
|
|
9773
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9774
|
+
|
|
9752
9775
|
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); }
|
|
9753
9776
|
|
|
9754
9777
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9757,14 +9780,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9757
9780
|
|
|
9758
9781
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9759
9782
|
var SDK_GLOBAL = 'SC';
|
|
9760
|
-
var MATCH_URL = /(
|
|
9783
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9761
9784
|
|
|
9762
|
-
var SoundCloud =
|
|
9785
|
+
var SoundCloud =
|
|
9786
|
+
/*#__PURE__*/
|
|
9787
|
+
function (_Component) {
|
|
9763
9788
|
_inherits(SoundCloud, _Component);
|
|
9764
9789
|
|
|
9765
|
-
var _super = _createSuper(SoundCloud);
|
|
9766
|
-
|
|
9767
9790
|
function SoundCloud() {
|
|
9791
|
+
var _getPrototypeOf2;
|
|
9792
|
+
|
|
9768
9793
|
var _this;
|
|
9769
9794
|
|
|
9770
9795
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9773,7 +9798,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9773
9798
|
args[_key] = arguments[_key];
|
|
9774
9799
|
}
|
|
9775
9800
|
|
|
9776
|
-
_this =
|
|
9801
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9777
9802
|
|
|
9778
9803
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9779
9804
|
|
|
@@ -9894,7 +9919,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9894
9919
|
height: '100%',
|
|
9895
9920
|
display: display
|
|
9896
9921
|
};
|
|
9897
|
-
return
|
|
9922
|
+
return _react["default"].createElement("iframe", {
|
|
9898
9923
|
ref: this.ref,
|
|
9899
9924
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9900
9925
|
style: style,
|
|
@@ -9956,16 +9981,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9956
9981
|
|
|
9957
9982
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9958
9983
|
|
|
9959
|
-
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); }; }
|
|
9960
|
-
|
|
9961
9984
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9962
9985
|
|
|
9963
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9964
|
-
|
|
9965
|
-
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; } }
|
|
9966
|
-
|
|
9967
9986
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9968
9987
|
|
|
9988
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9989
|
+
|
|
9969
9990
|
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); }
|
|
9970
9991
|
|
|
9971
9992
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9977,12 +9998,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
9977
9998
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
9978
9999
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
9979
10000
|
|
|
9980
|
-
var Vimeo =
|
|
10001
|
+
var Vimeo =
|
|
10002
|
+
/*#__PURE__*/
|
|
10003
|
+
function (_Component) {
|
|
9981
10004
|
_inherits(Vimeo, _Component);
|
|
9982
10005
|
|
|
9983
|
-
var _super = _createSuper(Vimeo);
|
|
9984
|
-
|
|
9985
10006
|
function Vimeo() {
|
|
10007
|
+
var _getPrototypeOf2;
|
|
10008
|
+
|
|
9986
10009
|
var _this;
|
|
9987
10010
|
|
|
9988
10011
|
_classCallCheck(this, Vimeo);
|
|
@@ -9991,7 +10014,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
9991
10014
|
args[_key] = arguments[_key];
|
|
9992
10015
|
}
|
|
9993
10016
|
|
|
9994
|
-
_this =
|
|
10017
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9995
10018
|
|
|
9996
10019
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9997
10020
|
|
|
@@ -10148,7 +10171,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10148
10171
|
overflow: 'hidden',
|
|
10149
10172
|
display: display
|
|
10150
10173
|
};
|
|
10151
|
-
return
|
|
10174
|
+
return _react["default"].createElement("div", {
|
|
10152
10175
|
key: this.props.url,
|
|
10153
10176
|
ref: this.ref,
|
|
10154
10177
|
style: style
|
|
@@ -10208,16 +10231,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10208
10231
|
|
|
10209
10232
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10210
10233
|
|
|
10211
|
-
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); }; }
|
|
10212
|
-
|
|
10213
10234
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10214
10235
|
|
|
10215
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10216
|
-
|
|
10217
|
-
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; } }
|
|
10218
|
-
|
|
10219
10236
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10220
10237
|
|
|
10238
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10239
|
+
|
|
10221
10240
|
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); }
|
|
10222
10241
|
|
|
10223
10242
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10230,12 +10249,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10230
10249
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10231
10250
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10232
10251
|
|
|
10233
|
-
var Facebook =
|
|
10252
|
+
var Facebook =
|
|
10253
|
+
/*#__PURE__*/
|
|
10254
|
+
function (_Component) {
|
|
10234
10255
|
_inherits(Facebook, _Component);
|
|
10235
10256
|
|
|
10236
|
-
var _super = _createSuper(Facebook);
|
|
10237
|
-
|
|
10238
10257
|
function Facebook() {
|
|
10258
|
+
var _getPrototypeOf2;
|
|
10259
|
+
|
|
10239
10260
|
var _this;
|
|
10240
10261
|
|
|
10241
10262
|
_classCallCheck(this, Facebook);
|
|
@@ -10244,7 +10265,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10244
10265
|
args[_key] = arguments[_key];
|
|
10245
10266
|
}
|
|
10246
10267
|
|
|
10247
|
-
_this =
|
|
10268
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10248
10269
|
|
|
10249
10270
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10250
10271
|
|
|
@@ -10360,7 +10381,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10360
10381
|
width: '100%',
|
|
10361
10382
|
height: '100%'
|
|
10362
10383
|
};
|
|
10363
|
-
return
|
|
10384
|
+
return _react["default"].createElement("div", {
|
|
10364
10385
|
style: style,
|
|
10365
10386
|
id: this.playerID,
|
|
10366
10387
|
className: "fb-video",
|
|
@@ -10420,16 +10441,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10420
10441
|
|
|
10421
10442
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10422
10443
|
|
|
10423
|
-
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); }; }
|
|
10424
|
-
|
|
10425
10444
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10426
10445
|
|
|
10427
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10428
|
-
|
|
10429
|
-
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; } }
|
|
10430
|
-
|
|
10431
10446
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10432
10447
|
|
|
10448
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10449
|
+
|
|
10433
10450
|
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); }
|
|
10434
10451
|
|
|
10435
10452
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10440,12 +10457,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10440
10457
|
var SDK_GLOBAL = 'playerjs';
|
|
10441
10458
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10442
10459
|
|
|
10443
|
-
var Streamable =
|
|
10460
|
+
var Streamable =
|
|
10461
|
+
/*#__PURE__*/
|
|
10462
|
+
function (_Component) {
|
|
10444
10463
|
_inherits(Streamable, _Component);
|
|
10445
10464
|
|
|
10446
|
-
var _super = _createSuper(Streamable);
|
|
10447
|
-
|
|
10448
10465
|
function Streamable() {
|
|
10466
|
+
var _getPrototypeOf2;
|
|
10467
|
+
|
|
10449
10468
|
var _this;
|
|
10450
10469
|
|
|
10451
10470
|
_classCallCheck(this, Streamable);
|
|
@@ -10454,7 +10473,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10454
10473
|
args[_key] = arguments[_key];
|
|
10455
10474
|
}
|
|
10456
10475
|
|
|
10457
|
-
_this =
|
|
10476
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10458
10477
|
|
|
10459
10478
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10460
10479
|
|
|
@@ -10574,7 +10593,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10574
10593
|
width: '100%',
|
|
10575
10594
|
height: '100%'
|
|
10576
10595
|
};
|
|
10577
|
-
return
|
|
10596
|
+
return _react["default"].createElement("iframe", {
|
|
10578
10597
|
ref: this.ref,
|
|
10579
10598
|
src: "https://streamable.com/o/".concat(id),
|
|
10580
10599
|
frameBorder: "0",
|
|
@@ -10635,16 +10654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10635
10654
|
|
|
10636
10655
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10637
10656
|
|
|
10638
|
-
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); }; }
|
|
10639
|
-
|
|
10640
10657
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10641
10658
|
|
|
10642
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10643
|
-
|
|
10644
|
-
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; } }
|
|
10645
|
-
|
|
10646
10659
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10647
10660
|
|
|
10661
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10662
|
+
|
|
10648
10663
|
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); }
|
|
10649
10664
|
|
|
10650
10665
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10655,48 +10670,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10655
10670
|
var SDK_GLOBAL = 'Wistia';
|
|
10656
10671
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10657
10672
|
|
|
10658
|
-
var Wistia =
|
|
10673
|
+
var Wistia =
|
|
10674
|
+
/*#__PURE__*/
|
|
10675
|
+
function (_Component) {
|
|
10659
10676
|
_inherits(Wistia, _Component);
|
|
10660
10677
|
|
|
10661
|
-
var _super = _createSuper(Wistia);
|
|
10662
|
-
|
|
10663
10678
|
function Wistia() {
|
|
10679
|
+
var _getPrototypeOf2;
|
|
10680
|
+
|
|
10664
10681
|
var _this;
|
|
10665
10682
|
|
|
10666
10683
|
_classCallCheck(this, Wistia);
|
|
10667
10684
|
|
|
10668
|
-
for (var _len = arguments.length,
|
|
10669
|
-
|
|
10685
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10686
|
+
args[_key] = arguments[_key];
|
|
10670
10687
|
}
|
|
10671
10688
|
|
|
10672
|
-
_this =
|
|
10689
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10673
10690
|
|
|
10674
10691
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10675
10692
|
|
|
10676
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10677
|
-
var _this$props;
|
|
10678
|
-
|
|
10679
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10680
|
-
});
|
|
10681
|
-
|
|
10682
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10683
|
-
var _this$props2;
|
|
10684
|
-
|
|
10685
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10686
|
-
});
|
|
10687
|
-
|
|
10688
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10689
|
-
var _this$props3;
|
|
10690
|
-
|
|
10691
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10692
|
-
});
|
|
10693
|
-
|
|
10694
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10695
|
-
var _this$props4;
|
|
10696
|
-
|
|
10697
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10698
|
-
});
|
|
10699
|
-
|
|
10700
10693
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10701
10694
|
_this.callPlayer('mute');
|
|
10702
10695
|
});
|
|
@@ -10718,13 +10711,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10718
10711
|
value: function load(url) {
|
|
10719
10712
|
var _this2 = this;
|
|
10720
10713
|
|
|
10721
|
-
var _this$
|
|
10722
|
-
playing = _this$
|
|
10723
|
-
muted = _this$
|
|
10724
|
-
controls = _this$
|
|
10725
|
-
_onReady = _this$
|
|
10726
|
-
|
|
10727
|
-
|
|
10714
|
+
var _this$props = this.props,
|
|
10715
|
+
playing = _this$props.playing,
|
|
10716
|
+
muted = _this$props.muted,
|
|
10717
|
+
controls = _this$props.controls,
|
|
10718
|
+
_onReady = _this$props.onReady,
|
|
10719
|
+
onPlay = _this$props.onPlay,
|
|
10720
|
+
onPause = _this$props.onPause,
|
|
10721
|
+
onSeek = _this$props.onSeek,
|
|
10722
|
+
onEnded = _this$props.onEnded,
|
|
10723
|
+
config = _this$props.config,
|
|
10724
|
+
onError = _this$props.onError;
|
|
10728
10725
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10729
10726
|
window._wq = window._wq || [];
|
|
10730
10727
|
|
|
@@ -10741,28 +10738,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10741
10738
|
|
|
10742
10739
|
_this2.unbind();
|
|
10743
10740
|
|
|
10744
|
-
_this2.player.bind('play',
|
|
10741
|
+
_this2.player.bind('play', onPlay);
|
|
10745
10742
|
|
|
10746
|
-
_this2.player.bind('pause',
|
|
10743
|
+
_this2.player.bind('pause', onPause);
|
|
10747
10744
|
|
|
10748
|
-
_this2.player.bind('seek',
|
|
10745
|
+
_this2.player.bind('seek', onSeek);
|
|
10749
10746
|
|
|
10750
|
-
_this2.player.bind('end',
|
|
10747
|
+
_this2.player.bind('end', onEnded);
|
|
10751
10748
|
|
|
10752
10749
|
_onReady();
|
|
10753
10750
|
}
|
|
10754
10751
|
});
|
|
10755
10752
|
}, onError);
|
|
10756
10753
|
}
|
|
10757
|
-
}, {
|
|
10758
|
-
key: "unbind",
|
|
10759
|
-
value: function unbind() {
|
|
10760
|
-
this.player.unbind('play', this.onPlay);
|
|
10761
|
-
this.player.unbind('pause', this.onPause);
|
|
10762
|
-
this.player.unbind('seek', this.onSeek);
|
|
10763
|
-
this.player.unbind('end', this.onEnded);
|
|
10764
|
-
} // Proxy methods to prevent listener leaks
|
|
10765
|
-
|
|
10766
10754
|
}, {
|
|
10767
10755
|
key: "play",
|
|
10768
10756
|
value: function play() {
|
|
@@ -10773,6 +10761,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10773
10761
|
value: function pause() {
|
|
10774
10762
|
this.callPlayer('pause');
|
|
10775
10763
|
}
|
|
10764
|
+
}, {
|
|
10765
|
+
key: "unbind",
|
|
10766
|
+
value: function unbind() {
|
|
10767
|
+
var _this$props2 = this.props,
|
|
10768
|
+
onPlay = _this$props2.onPlay,
|
|
10769
|
+
onPause = _this$props2.onPause,
|
|
10770
|
+
onSeek = _this$props2.onSeek,
|
|
10771
|
+
onEnded = _this$props2.onEnded;
|
|
10772
|
+
this.player.unbind('play', onPlay);
|
|
10773
|
+
this.player.unbind('pause', onPause);
|
|
10774
|
+
this.player.unbind('seek', onSeek);
|
|
10775
|
+
this.player.unbind('end', onEnded);
|
|
10776
|
+
}
|
|
10776
10777
|
}, {
|
|
10777
10778
|
key: "stop",
|
|
10778
10779
|
value: function stop() {
|
|
@@ -10818,7 +10819,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10818
10819
|
width: '100%',
|
|
10819
10820
|
height: '100%'
|
|
10820
10821
|
};
|
|
10821
|
-
return
|
|
10822
|
+
return _react["default"].createElement("div", {
|
|
10822
10823
|
key: id,
|
|
10823
10824
|
className: className,
|
|
10824
10825
|
style: style
|
|
@@ -10878,16 +10879,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10878
10879
|
|
|
10879
10880
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10880
10881
|
|
|
10881
|
-
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); }; }
|
|
10882
|
-
|
|
10883
10882
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10884
10883
|
|
|
10885
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10886
|
-
|
|
10887
|
-
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; } }
|
|
10888
|
-
|
|
10889
10884
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10890
10885
|
|
|
10886
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10887
|
+
|
|
10891
10888
|
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); }
|
|
10892
10889
|
|
|
10893
10890
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10900,12 +10897,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10900
10897
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10901
10898
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10902
10899
|
|
|
10903
|
-
var Twitch =
|
|
10900
|
+
var Twitch =
|
|
10901
|
+
/*#__PURE__*/
|
|
10902
|
+
function (_Component) {
|
|
10904
10903
|
_inherits(Twitch, _Component);
|
|
10905
10904
|
|
|
10906
|
-
var _super = _createSuper(Twitch);
|
|
10907
|
-
|
|
10908
10905
|
function Twitch() {
|
|
10906
|
+
var _getPrototypeOf2;
|
|
10907
|
+
|
|
10909
10908
|
var _this;
|
|
10910
10909
|
|
|
10911
10910
|
_classCallCheck(this, Twitch);
|
|
@@ -10914,7 +10913,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10914
10913
|
args[_key] = arguments[_key];
|
|
10915
10914
|
}
|
|
10916
10915
|
|
|
10917
|
-
_this =
|
|
10916
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10918
10917
|
|
|
10919
10918
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10920
10919
|
|
|
@@ -11035,7 +11034,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11035
11034
|
width: '100%',
|
|
11036
11035
|
height: '100%'
|
|
11037
11036
|
};
|
|
11038
|
-
return
|
|
11037
|
+
return _react["default"].createElement("div", {
|
|
11039
11038
|
style: style,
|
|
11040
11039
|
id: this.playerID
|
|
11041
11040
|
});
|
|
@@ -11088,15 +11087,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11088
11087
|
|
|
11089
11088
|
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; }
|
|
11090
11089
|
|
|
11091
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11092
|
-
|
|
11093
|
-
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."); }
|
|
11094
|
-
|
|
11095
|
-
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); }
|
|
11090
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11096
11091
|
|
|
11097
|
-
function
|
|
11092
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11098
11093
|
|
|
11099
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
11094
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11100
11095
|
|
|
11101
11096
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11102
11097
|
|
|
@@ -11106,16 +11101,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11106
11101
|
|
|
11107
11102
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11108
11103
|
|
|
11109
|
-
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); }; }
|
|
11110
|
-
|
|
11111
11104
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11112
11105
|
|
|
11113
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11114
|
-
|
|
11115
|
-
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; } }
|
|
11116
|
-
|
|
11117
11106
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11118
11107
|
|
|
11108
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11109
|
+
|
|
11119
11110
|
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); }
|
|
11120
11111
|
|
|
11121
11112
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11127,12 +11118,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11127
11118
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11128
11119
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11129
11120
|
|
|
11130
|
-
var DailyMotion =
|
|
11121
|
+
var DailyMotion =
|
|
11122
|
+
/*#__PURE__*/
|
|
11123
|
+
function (_Component) {
|
|
11131
11124
|
_inherits(DailyMotion, _Component);
|
|
11132
11125
|
|
|
11133
|
-
var _super = _createSuper(DailyMotion);
|
|
11134
|
-
|
|
11135
11126
|
function DailyMotion() {
|
|
11127
|
+
var _getPrototypeOf2;
|
|
11128
|
+
|
|
11136
11129
|
var _this;
|
|
11137
11130
|
|
|
11138
11131
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11141,7 +11134,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11141
11134
|
args[_key] = arguments[_key];
|
|
11142
11135
|
}
|
|
11143
11136
|
|
|
11144
|
-
_this =
|
|
11137
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11145
11138
|
|
|
11146
11139
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11147
11140
|
|
|
@@ -11270,9 +11263,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11270
11263
|
height: '100%',
|
|
11271
11264
|
display: display
|
|
11272
11265
|
};
|
|
11273
|
-
return
|
|
11266
|
+
return _react["default"].createElement("div", {
|
|
11274
11267
|
style: style
|
|
11275
|
-
},
|
|
11268
|
+
}, _react["default"].createElement("div", {
|
|
11276
11269
|
ref: this.ref
|
|
11277
11270
|
}));
|
|
11278
11271
|
}
|
|
@@ -11330,16 +11323,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11330
11323
|
|
|
11331
11324
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11332
11325
|
|
|
11333
|
-
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); }; }
|
|
11334
|
-
|
|
11335
11326
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11336
11327
|
|
|
11337
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11338
|
-
|
|
11339
|
-
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; } }
|
|
11340
|
-
|
|
11341
11328
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11342
11329
|
|
|
11330
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11331
|
+
|
|
11343
11332
|
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); }
|
|
11344
11333
|
|
|
11345
11334
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11350,12 +11339,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11350
11339
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11351
11340
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11352
11341
|
|
|
11353
|
-
var Mixcloud =
|
|
11342
|
+
var Mixcloud =
|
|
11343
|
+
/*#__PURE__*/
|
|
11344
|
+
function (_Component) {
|
|
11354
11345
|
_inherits(Mixcloud, _Component);
|
|
11355
11346
|
|
|
11356
|
-
var _super = _createSuper(Mixcloud);
|
|
11357
|
-
|
|
11358
11347
|
function Mixcloud() {
|
|
11348
|
+
var _getPrototypeOf2;
|
|
11349
|
+
|
|
11359
11350
|
var _this;
|
|
11360
11351
|
|
|
11361
11352
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11364,7 +11355,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11364
11355
|
args[_key] = arguments[_key];
|
|
11365
11356
|
}
|
|
11366
11357
|
|
|
11367
|
-
_this =
|
|
11358
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11368
11359
|
|
|
11369
11360
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11370
11361
|
|
|
@@ -11467,7 +11458,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11467
11458
|
})); // We have to give the iframe a key here to prevent a
|
|
11468
11459
|
// weird dialog appearing when loading a new track
|
|
11469
11460
|
|
|
11470
|
-
return
|
|
11461
|
+
return _react["default"].createElement("iframe", {
|
|
11471
11462
|
key: id,
|
|
11472
11463
|
ref: this.ref,
|
|
11473
11464
|
style: style,
|
|
@@ -11527,33 +11518,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11527
11518
|
|
|
11528
11519
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11529
11520
|
|
|
11530
|
-
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); }; }
|
|
11531
|
-
|
|
11532
11521
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11533
11522
|
|
|
11534
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11535
|
-
|
|
11536
|
-
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; } }
|
|
11537
|
-
|
|
11538
11523
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11539
11524
|
|
|
11525
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11526
|
+
|
|
11540
11527
|
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); }
|
|
11541
11528
|
|
|
11542
11529
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11543
11530
|
|
|
11544
11531
|
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; }
|
|
11545
11532
|
|
|
11546
|
-
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; } } }; }
|
|
11547
|
-
|
|
11548
|
-
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); }
|
|
11549
|
-
|
|
11550
|
-
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; }
|
|
11551
|
-
|
|
11552
11533
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11553
11534
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11554
11535
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11555
11536
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11556
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11537
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11557
11538
|
var HLS_GLOBAL = 'Hls';
|
|
11558
11539
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11559
11540
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11562,11 +11543,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11562
11543
|
|
|
11563
11544
|
function canPlay(url) {
|
|
11564
11545
|
if (url instanceof Array) {
|
|
11565
|
-
var
|
|
11566
|
-
|
|
11546
|
+
var _iteratorNormalCompletion = true;
|
|
11547
|
+
var _didIteratorError = false;
|
|
11548
|
+
var _iteratorError = undefined;
|
|
11567
11549
|
|
|
11568
11550
|
try {
|
|
11569
|
-
for (_iterator.
|
|
11551
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11570
11552
|
var item = _step.value;
|
|
11571
11553
|
|
|
11572
11554
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11578,9 +11560,18 @@ function canPlay(url) {
|
|
|
11578
11560
|
}
|
|
11579
11561
|
}
|
|
11580
11562
|
} catch (err) {
|
|
11581
|
-
|
|
11563
|
+
_didIteratorError = true;
|
|
11564
|
+
_iteratorError = err;
|
|
11582
11565
|
} finally {
|
|
11583
|
-
|
|
11566
|
+
try {
|
|
11567
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11568
|
+
_iterator["return"]();
|
|
11569
|
+
}
|
|
11570
|
+
} finally {
|
|
11571
|
+
if (_didIteratorError) {
|
|
11572
|
+
throw _iteratorError;
|
|
11573
|
+
}
|
|
11574
|
+
}
|
|
11584
11575
|
}
|
|
11585
11576
|
|
|
11586
11577
|
return false;
|
|
@@ -11604,12 +11595,14 @@ function canEnablePIP(url) {
|
|
|
11604
11595
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11605
11596
|
}
|
|
11606
11597
|
|
|
11607
|
-
var FilePlayer =
|
|
11598
|
+
var FilePlayer =
|
|
11599
|
+
/*#__PURE__*/
|
|
11600
|
+
function (_Component) {
|
|
11608
11601
|
_inherits(FilePlayer, _Component);
|
|
11609
11602
|
|
|
11610
|
-
var _super = _createSuper(FilePlayer);
|
|
11611
|
-
|
|
11612
11603
|
function FilePlayer() {
|
|
11604
|
+
var _getPrototypeOf2;
|
|
11605
|
+
|
|
11613
11606
|
var _this;
|
|
11614
11607
|
|
|
11615
11608
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11618,7 +11611,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11618
11611
|
_args[_key] = arguments[_key];
|
|
11619
11612
|
}
|
|
11620
11613
|
|
|
11621
|
-
_this =
|
|
11614
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11622
11615
|
|
|
11623
11616
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11624
11617
|
var _this$props;
|
|
@@ -11705,19 +11698,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11705
11698
|
|
|
11706
11699
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11707
11700
|
if (typeof source === 'string') {
|
|
11708
|
-
return
|
|
11701
|
+
return _react["default"].createElement("source", {
|
|
11709
11702
|
key: index,
|
|
11710
11703
|
src: source
|
|
11711
11704
|
});
|
|
11712
11705
|
}
|
|
11713
11706
|
|
|
11714
|
-
return
|
|
11707
|
+
return _react["default"].createElement("source", _extends({
|
|
11715
11708
|
key: index
|
|
11716
11709
|
}, source));
|
|
11717
11710
|
});
|
|
11718
11711
|
|
|
11719
11712
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11720
|
-
return
|
|
11713
|
+
return _react["default"].createElement("track", _extends({
|
|
11721
11714
|
key: index
|
|
11722
11715
|
}, track));
|
|
11723
11716
|
});
|
|
@@ -11755,10 +11748,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11755
11748
|
key: "componentWillUnmount",
|
|
11756
11749
|
value: function componentWillUnmount() {
|
|
11757
11750
|
this.removeListeners(this.player);
|
|
11758
|
-
|
|
11759
|
-
if (this.hls) {
|
|
11760
|
-
this.hls.destroy();
|
|
11761
|
-
}
|
|
11762
11751
|
}
|
|
11763
11752
|
}, {
|
|
11764
11753
|
key: "addListeners",
|
|
@@ -11889,6 +11878,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11889
11878
|
value: function stop() {
|
|
11890
11879
|
this.player.removeAttribute('src');
|
|
11891
11880
|
|
|
11881
|
+
if (this.hls) {
|
|
11882
|
+
this.hls.destroy();
|
|
11883
|
+
}
|
|
11884
|
+
|
|
11892
11885
|
if (this.dash) {
|
|
11893
11886
|
this.dash.reset();
|
|
11894
11887
|
}
|
|
@@ -12000,7 +11993,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12000
11993
|
width: width === 'auto' ? width : '100%',
|
|
12001
11994
|
height: height === 'auto' ? height : '100%'
|
|
12002
11995
|
};
|
|
12003
|
-
return
|
|
11996
|
+
return _react["default"].createElement(Element, _extends({
|
|
12004
11997
|
ref: this.ref,
|
|
12005
11998
|
src: this.getSource(url),
|
|
12006
11999
|
style: style,
|
|
@@ -12090,16 +12083,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12090
12083
|
|
|
12091
12084
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12092
12085
|
|
|
12093
|
-
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); }; }
|
|
12094
|
-
|
|
12095
12086
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12096
12087
|
|
|
12097
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12098
|
-
|
|
12099
|
-
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; } }
|
|
12100
|
-
|
|
12101
12088
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12102
12089
|
|
|
12090
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12091
|
+
|
|
12103
12092
|
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); }
|
|
12104
12093
|
|
|
12105
12094
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12108,12 +12097,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12108
12097
|
|
|
12109
12098
|
var ICON_SIZE = '64px';
|
|
12110
12099
|
|
|
12111
|
-
var Preview =
|
|
12100
|
+
var Preview =
|
|
12101
|
+
/*#__PURE__*/
|
|
12102
|
+
function (_Component) {
|
|
12112
12103
|
_inherits(Preview, _Component);
|
|
12113
12104
|
|
|
12114
|
-
var _super = _createSuper(Preview);
|
|
12115
|
-
|
|
12116
12105
|
function Preview() {
|
|
12106
|
+
var _getPrototypeOf2;
|
|
12107
|
+
|
|
12117
12108
|
var _this;
|
|
12118
12109
|
|
|
12119
12110
|
_classCallCheck(this, Preview);
|
|
@@ -12122,7 +12113,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12122
12113
|
args[_key] = arguments[_key];
|
|
12123
12114
|
}
|
|
12124
12115
|
|
|
12125
|
-
_this =
|
|
12116
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12126
12117
|
|
|
12127
12118
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12128
12119
|
|
|
@@ -12220,15 +12211,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12220
12211
|
}
|
|
12221
12212
|
};
|
|
12222
12213
|
|
|
12223
|
-
var defaultPlayIcon =
|
|
12214
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12224
12215
|
style: styles.shadow,
|
|
12225
12216
|
className: "react-player__shadow"
|
|
12226
|
-
},
|
|
12217
|
+
}, _react["default"].createElement("div", {
|
|
12227
12218
|
style: styles.playIcon,
|
|
12228
12219
|
className: "react-player__play-icon"
|
|
12229
12220
|
}));
|
|
12230
12221
|
|
|
12231
|
-
return
|
|
12222
|
+
return _react["default"].createElement("div", {
|
|
12232
12223
|
style: styles.preview,
|
|
12233
12224
|
className: "react-player__preview",
|
|
12234
12225
|
onClick: onClick
|
|
@@ -12265,12 +12256,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12265
12256
|
|
|
12266
12257
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12267
12258
|
|
|
12268
|
-
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; } } }; }
|
|
12269
|
-
|
|
12270
|
-
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); }
|
|
12271
|
-
|
|
12272
|
-
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; }
|
|
12273
|
-
|
|
12274
12259
|
var PRELOAD_PLAYERS = [{
|
|
12275
12260
|
Player: YouTube_1.YouTube,
|
|
12276
12261
|
configKey: 'youtube',
|
|
@@ -12291,16 +12276,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12291
12276
|
|
|
12292
12277
|
function renderPreloadPlayers(url, controls, config) {
|
|
12293
12278
|
var players = [];
|
|
12294
|
-
|
|
12295
|
-
var
|
|
12296
|
-
|
|
12279
|
+
var _iteratorNormalCompletion = true;
|
|
12280
|
+
var _didIteratorError = false;
|
|
12281
|
+
var _iteratorError = undefined;
|
|
12297
12282
|
|
|
12298
12283
|
try {
|
|
12299
|
-
for (_iterator.
|
|
12284
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12300
12285
|
var player = _step.value;
|
|
12301
12286
|
|
|
12302
12287
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12303
|
-
players.push(
|
|
12288
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12304
12289
|
key: player.Player.displayName,
|
|
12305
12290
|
activePlayer: player.Player,
|
|
12306
12291
|
url: player.url,
|
|
@@ -12312,9 +12297,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12312
12297
|
}
|
|
12313
12298
|
}
|
|
12314
12299
|
} catch (err) {
|
|
12315
|
-
|
|
12300
|
+
_didIteratorError = true;
|
|
12301
|
+
_iteratorError = err;
|
|
12316
12302
|
} finally {
|
|
12317
|
-
|
|
12303
|
+
try {
|
|
12304
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12305
|
+
_iterator["return"]();
|
|
12306
|
+
}
|
|
12307
|
+
} finally {
|
|
12308
|
+
if (_didIteratorError) {
|
|
12309
|
+
throw _iteratorError;
|
|
12310
|
+
}
|
|
12311
|
+
}
|
|
12318
12312
|
}
|
|
12319
12313
|
|
|
12320
12314
|
return players;
|
|
@@ -12438,17 +12432,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12438
12432
|
|
|
12439
12433
|
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); }
|
|
12440
12434
|
|
|
12441
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12442
|
-
|
|
12443
|
-
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."); }
|
|
12435
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12444
12436
|
|
|
12445
|
-
function
|
|
12437
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12446
12438
|
|
|
12447
|
-
function _iterableToArray(iter) { if (
|
|
12439
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12448
12440
|
|
|
12449
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
12450
|
-
|
|
12451
|
-
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; }
|
|
12441
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
12452
12442
|
|
|
12453
12443
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12454
12444
|
|
|
@@ -12456,16 +12446,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12456
12446
|
|
|
12457
12447
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12458
12448
|
|
|
12459
|
-
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); }; }
|
|
12460
|
-
|
|
12461
12449
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12462
12450
|
|
|
12463
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12464
|
-
|
|
12465
|
-
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; } }
|
|
12466
|
-
|
|
12467
12451
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12468
12452
|
|
|
12453
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12454
|
+
|
|
12469
12455
|
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); }
|
|
12470
12456
|
|
|
12471
12457
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12475,12 +12461,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12475
12461
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12476
12462
|
var customPlayers = [];
|
|
12477
12463
|
|
|
12478
|
-
var ReactPlayer =
|
|
12464
|
+
var ReactPlayer =
|
|
12465
|
+
/*#__PURE__*/
|
|
12466
|
+
function (_Component) {
|
|
12479
12467
|
_inherits(ReactPlayer, _Component);
|
|
12480
12468
|
|
|
12481
|
-
var _super = _createSuper(ReactPlayer);
|
|
12482
|
-
|
|
12483
12469
|
function ReactPlayer() {
|
|
12470
|
+
var _getPrototypeOf2;
|
|
12471
|
+
|
|
12484
12472
|
var _this;
|
|
12485
12473
|
|
|
12486
12474
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12489,7 +12477,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12489
12477
|
args[_key] = arguments[_key];
|
|
12490
12478
|
}
|
|
12491
12479
|
|
|
12492
|
-
_this =
|
|
12480
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12493
12481
|
|
|
12494
12482
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12495
12483
|
|
|
@@ -12600,7 +12588,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12600
12588
|
key: "renderActivePlayer",
|
|
12601
12589
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12602
12590
|
if (!url) return null;
|
|
12603
|
-
return
|
|
12591
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12604
12592
|
key: activePlayer.displayName,
|
|
12605
12593
|
ref: this.activePlayerRef,
|
|
12606
12594
|
config: this.config,
|
|
@@ -12637,14 +12625,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12637
12625
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12638
12626
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12639
12627
|
|
|
12640
|
-
var preview =
|
|
12628
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12641
12629
|
url: url,
|
|
12642
12630
|
light: light,
|
|
12643
12631
|
playIcon: playIcon,
|
|
12644
12632
|
onClick: this.handleClickPreview
|
|
12645
12633
|
});
|
|
12646
12634
|
|
|
12647
|
-
return
|
|
12635
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12648
12636
|
ref: this.wrapperRef,
|
|
12649
12637
|
style: _objectSpread({}, style, {
|
|
12650
12638
|
width: width,
|
|
@@ -12940,6 +12928,12 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12940
12928
|
setData(data);
|
|
12941
12929
|
}, []);
|
|
12942
12930
|
|
|
12931
|
+
useEffect(function () {
|
|
12932
|
+
if (vidLoaded == true) {
|
|
12933
|
+
document.title = nodes.videos[series - 1].title;
|
|
12934
|
+
}
|
|
12935
|
+
}, [vidLoaded]);
|
|
12936
|
+
|
|
12943
12937
|
function toggleSeries() {
|
|
12944
12938
|
var series = document.querySelector('.vid-series');
|
|
12945
12939
|
if (series.classList.contains('active')) {
|
|
@@ -12960,6 +12954,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12960
12954
|
var newPath = '/' + get2 + '/' + get3 + ('?seriesVid=' + vidIndex);
|
|
12961
12955
|
var vidState = { vid_id: vidIndex };
|
|
12962
12956
|
window.history.pushState(vidState, '', newPath);
|
|
12957
|
+
|
|
12963
12958
|
setSeries(vidIndex);
|
|
12964
12959
|
setVidLoaded(true);
|
|
12965
12960
|
}, 100);
|
|
@@ -13008,7 +13003,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13008
13003
|
var vidState = { vid_id: nextVid + 1 };
|
|
13009
13004
|
var title = '';
|
|
13010
13005
|
window.history.pushState(vidState, title, newPath);
|
|
13011
|
-
|
|
13006
|
+
window.dispatchEvent(new Event('urlChange'));
|
|
13012
13007
|
//Small pause before starting next video
|
|
13013
13008
|
setTimeout(function () {
|
|
13014
13009
|
//Youtube API to start video playing automatically
|
|
@@ -13496,7 +13491,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13496
13491
|
};
|
|
13497
13492
|
|
|
13498
13493
|
var Figure = dynamic(function () {
|
|
13499
|
-
return import('./Figure-
|
|
13494
|
+
return import('./Figure-b5847ea2.js');
|
|
13500
13495
|
}, { ssr: false });
|
|
13501
13496
|
|
|
13502
13497
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -14077,16 +14072,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14077
14072
|
_ref$className = _ref.className,
|
|
14078
14073
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14079
14074
|
|
|
14080
|
-
/*
|
|
14081
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14082
|
-
example:
|
|
14083
|
-
<RelatedTopicDropdown
|
|
14084
|
-
page='/clinical'
|
|
14085
|
-
exclude="clinical"
|
|
14086
|
-
className='mb-3'
|
|
14087
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14088
|
-
subTaxonomies={props.subTaxonomies}
|
|
14089
|
-
/>
|
|
14075
|
+
/*
|
|
14076
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14077
|
+
example:
|
|
14078
|
+
<RelatedTopicDropdown
|
|
14079
|
+
page='/clinical'
|
|
14080
|
+
exclude="clinical"
|
|
14081
|
+
className='mb-3'
|
|
14082
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14083
|
+
subTaxonomies={props.subTaxonomies}
|
|
14084
|
+
/>
|
|
14090
14085
|
*/
|
|
14091
14086
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14092
14087
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14124,25 +14119,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14124
14119
|
}
|
|
14125
14120
|
};
|
|
14126
14121
|
|
|
14127
|
-
/*
|
|
14128
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14129
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14130
|
-
|
|
14131
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14132
|
-
|
|
14133
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14134
|
-
|
|
14135
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14136
|
-
...,
|
|
14137
|
-
'ancestor': parent->parent->identifier,
|
|
14138
|
-
'parent': parent->identifier,
|
|
14139
|
-
'path': identifier
|
|
14140
|
-
},
|
|
14141
|
-
'document_group': documentGroup-> {
|
|
14142
|
-
name,
|
|
14143
|
-
'parent': parent->identifier,
|
|
14144
|
-
'path': identifier.current
|
|
14145
|
-
}
|
|
14122
|
+
/*
|
|
14123
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14124
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14125
|
+
|
|
14126
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14127
|
+
|
|
14128
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14129
|
+
|
|
14130
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14131
|
+
...,
|
|
14132
|
+
'ancestor': parent->parent->identifier,
|
|
14133
|
+
'parent': parent->identifier,
|
|
14134
|
+
'path': identifier
|
|
14135
|
+
},
|
|
14136
|
+
'document_group': documentGroup-> {
|
|
14137
|
+
name,
|
|
14138
|
+
'parent': parent->identifier,
|
|
14139
|
+
'path': identifier.current
|
|
14140
|
+
}
|
|
14146
14141
|
*/
|
|
14147
14142
|
|
|
14148
14143
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15031,34 +15026,34 @@ var GridHero = function GridHero(props) {
|
|
|
15031
15026
|
);
|
|
15032
15027
|
};
|
|
15033
15028
|
|
|
15034
|
-
/*
|
|
15035
|
-
Sample query
|
|
15036
|
-
let references = ''
|
|
15037
|
-
if(article.taxonomyMapping.length > 0){
|
|
15038
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15039
|
-
references = references + `references('${ref._ref}') `
|
|
15040
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15041
|
-
references = references + ` && `
|
|
15042
|
-
}
|
|
15043
|
-
})
|
|
15044
|
-
}
|
|
15045
|
-
|
|
15046
|
-
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] {
|
|
15047
|
-
...,
|
|
15048
|
-
title,
|
|
15049
|
-
summary,
|
|
15050
|
-
thumbnail,
|
|
15051
|
-
url,
|
|
15052
|
-
published,
|
|
15053
|
-
authorMapping[]->,
|
|
15054
|
-
contentCategory->
|
|
15055
|
-
}`
|
|
15056
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15057
|
-
|
|
15058
|
-
Sample usage
|
|
15059
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15060
|
-
|
|
15061
|
-
|
|
15029
|
+
/*
|
|
15030
|
+
Sample query
|
|
15031
|
+
let references = ''
|
|
15032
|
+
if(article.taxonomyMapping.length > 0){
|
|
15033
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15034
|
+
references = references + `references('${ref._ref}') `
|
|
15035
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15036
|
+
references = references + ` && `
|
|
15037
|
+
}
|
|
15038
|
+
})
|
|
15039
|
+
}
|
|
15040
|
+
|
|
15041
|
+
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] {
|
|
15042
|
+
...,
|
|
15043
|
+
title,
|
|
15044
|
+
summary,
|
|
15045
|
+
thumbnail,
|
|
15046
|
+
url,
|
|
15047
|
+
published,
|
|
15048
|
+
authorMapping[]->,
|
|
15049
|
+
contentCategory->
|
|
15050
|
+
}`
|
|
15051
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15052
|
+
|
|
15053
|
+
Sample usage
|
|
15054
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15055
|
+
|
|
15056
|
+
|
|
15062
15057
|
*/
|
|
15063
15058
|
var RelatedContent = function RelatedContent(props) {
|
|
15064
15059
|
var client = props.client,
|
|
@@ -15125,21 +15120,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15125
15120
|
);
|
|
15126
15121
|
};
|
|
15127
15122
|
|
|
15128
|
-
/*
|
|
15129
|
-
Example usage - targetedonc.com/latest-conference
|
|
15130
|
-
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] {
|
|
15131
|
-
...,
|
|
15132
|
-
title,
|
|
15133
|
-
summary,
|
|
15134
|
-
thumbnail,
|
|
15135
|
-
url,
|
|
15136
|
-
published,
|
|
15137
|
-
documentGroup->,
|
|
15138
|
-
contentCategory->,
|
|
15139
|
-
'pageNumber': ${currentPage}
|
|
15140
|
-
}`
|
|
15141
|
-
|
|
15142
|
-
const posts = await client.fetch(query, params)
|
|
15123
|
+
/*
|
|
15124
|
+
Example usage - targetedonc.com/latest-conference
|
|
15125
|
+
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] {
|
|
15126
|
+
...,
|
|
15127
|
+
title,
|
|
15128
|
+
summary,
|
|
15129
|
+
thumbnail,
|
|
15130
|
+
url,
|
|
15131
|
+
published,
|
|
15132
|
+
documentGroup->,
|
|
15133
|
+
contentCategory->,
|
|
15134
|
+
'pageNumber': ${currentPage}
|
|
15135
|
+
}`
|
|
15136
|
+
|
|
15137
|
+
const posts = await client.fetch(query, params)
|
|
15143
15138
|
*/
|
|
15144
15139
|
|
|
15145
15140
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16543,27 +16538,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16543
16538
|
};
|
|
16544
16539
|
|
|
16545
16540
|
var KMTracker = function KMTracker(props) {
|
|
16546
|
-
|
|
16541
|
+
var id = props.id;
|
|
16547
16542
|
|
|
16548
|
-
|
|
16543
|
+
if (document && id) {
|
|
16549
16544
|
(function () {
|
|
16550
|
-
|
|
16545
|
+
var ecnJquery = document.createElement('script');
|
|
16551
16546
|
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16547
|
+
ecnJquery.type = 'text/javascript';
|
|
16548
|
+
ecnJquery.async = true;
|
|
16549
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16555
16550
|
|
|
16556
|
-
|
|
16551
|
+
var ecnScript = document.createElement('script');
|
|
16557
16552
|
|
|
16558
|
-
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16553
|
+
ecnScript.type = 'text/javascript';
|
|
16554
|
+
ecnScript.async = true;
|
|
16555
|
+
ecnScript.id = 'km-tracker';
|
|
16556
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16562
16557
|
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16558
|
+
document.head.appendChild(ecnJquery);
|
|
16559
|
+
document.head.appendChild(ecnScript);
|
|
16560
|
+
})();
|
|
16561
|
+
}
|
|
16567
16562
|
};
|
|
16568
16563
|
|
|
16569
16564
|
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|