@mjhls/mjh-framework 1.0.292 → 1.0.294
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-0681dd7d.js → Figure-167c0214.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-7b5f3f4e.js → Normal-61221bc6.js} +62 -647
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-cf5bbc07.js → TaxonomyCard-4210753c.js} +104 -3
- package/dist/cjs/TaxonomyCard.js +3 -2
- package/dist/cjs/TemplateNormal.js +2 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +14 -12
- 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 -564
- package/dist/cjs/react-social-icons-cd0d9d3b.js +614 -0
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-cff72982.js → Figure-9f21ef27.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-3a3b672e.js → Normal-3a537c0a.js} +60 -645
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-ee1a22ae.js → TaxonomyCard-1d039949.js} +104 -3
- package/dist/esm/TaxonomyCard.js +3 -2
- package/dist/esm/TemplateNormal.js +2 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +14 -12
- 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 -567
- package/dist/esm/react-social-icons-a7d5c5c7.js +609 -0
- 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,17 @@ 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-1d039949.js';
|
|
35
|
+
export { T as TaxonomyCard } from './TaxonomyCard-1d039949.js';
|
|
36
|
+
import './react-social-icons-a7d5c5c7.js';
|
|
36
37
|
import GroupDeck from './GroupDeck.js';
|
|
37
38
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
38
|
-
import { g as getYoutubeId } from './YoutubeGroup-
|
|
39
|
-
export { Y as YoutubeGroup } from './YoutubeGroup-
|
|
39
|
+
import { g as getYoutubeId } from './YoutubeGroup-f59297bb.js';
|
|
40
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
|
|
40
41
|
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
42
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
42
43
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
@@ -48,8 +49,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
48
49
|
import 'react-bootstrap/Badge';
|
|
49
50
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
50
51
|
import Spinner from 'react-bootstrap/Spinner';
|
|
51
|
-
import { M as MdPictureAsPdf
|
|
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-
|
|
52
|
+
import { M as MdPictureAsPdf } from './Normal-3a537c0a.js';
|
|
53
|
+
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-3a537c0a.js';
|
|
53
54
|
import 'react-bootstrap/ListGroup';
|
|
54
55
|
import Head from 'next/head';
|
|
55
56
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -2898,8 +2899,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
2898
2899
|
dfpNetworkId: networkID,
|
|
2899
2900
|
targeting: targeting,
|
|
2900
2901
|
singleRequest: singleRequest,
|
|
2901
|
-
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 },
|
|
2902
|
-
collapseEmptyDivs: true },
|
|
2902
|
+
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
2903
2903
|
children
|
|
2904
2904
|
);
|
|
2905
2905
|
};
|
|
@@ -2916,7 +2916,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2916
2916
|
_floatingAd$position = floatingAd.position,
|
|
2917
2917
|
position = _floatingAd$position === undefined ? 'float' : _floatingAd$position,
|
|
2918
2918
|
networkID = floatingAd.networkID,
|
|
2919
|
-
sizes = floatingAd.sizes
|
|
2919
|
+
_floatingAd$sizes = floatingAd.sizes,
|
|
2920
|
+
sizes = _floatingAd$sizes === undefined ? [[728, 90]] : _floatingAd$sizes;
|
|
2920
2921
|
|
|
2921
2922
|
|
|
2922
2923
|
var adTargeting = {
|
|
@@ -3194,18 +3195,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3194
3195
|
);
|
|
3195
3196
|
};
|
|
3196
3197
|
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3198
|
+
var isArray = Array.isArray;
|
|
3199
|
+
var keyList = Object.keys;
|
|
3200
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3200
3201
|
|
|
3201
3202
|
var fastDeepEqual = function equal(a, b) {
|
|
3202
3203
|
if (a === b) return true;
|
|
3203
3204
|
|
|
3204
3205
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3205
|
-
|
|
3206
|
+
var arrA = isArray(a)
|
|
3207
|
+
, arrB = isArray(b)
|
|
3208
|
+
, i
|
|
3209
|
+
, length
|
|
3210
|
+
, key;
|
|
3206
3211
|
|
|
3207
|
-
|
|
3208
|
-
if (Array.isArray(a)) {
|
|
3212
|
+
if (arrA && arrB) {
|
|
3209
3213
|
length = a.length;
|
|
3210
3214
|
if (length != b.length) return false;
|
|
3211
3215
|
for (i = length; i-- !== 0;)
|
|
@@ -3213,29 +3217,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3213
3217
|
return true;
|
|
3214
3218
|
}
|
|
3215
3219
|
|
|
3220
|
+
if (arrA != arrB) return false;
|
|
3216
3221
|
|
|
3222
|
+
var dateA = a instanceof Date
|
|
3223
|
+
, dateB = b instanceof Date;
|
|
3224
|
+
if (dateA != dateB) return false;
|
|
3225
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3217
3226
|
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
if (
|
|
3227
|
+
var regexpA = a instanceof RegExp
|
|
3228
|
+
, regexpB = b instanceof RegExp;
|
|
3229
|
+
if (regexpA != regexpB) return false;
|
|
3230
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3221
3231
|
|
|
3222
|
-
keys =
|
|
3232
|
+
var keys = keyList(a);
|
|
3223
3233
|
length = keys.length;
|
|
3224
|
-
|
|
3234
|
+
|
|
3235
|
+
if (length !== keyList(b).length)
|
|
3236
|
+
return false;
|
|
3225
3237
|
|
|
3226
3238
|
for (i = length; i-- !== 0;)
|
|
3227
|
-
if (!
|
|
3239
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3228
3240
|
|
|
3229
3241
|
for (i = length; i-- !== 0;) {
|
|
3230
|
-
|
|
3231
|
-
|
|
3242
|
+
key = keys[i];
|
|
3232
3243
|
if (!equal(a[key], b[key])) return false;
|
|
3233
3244
|
}
|
|
3234
3245
|
|
|
3235
3246
|
return true;
|
|
3236
3247
|
}
|
|
3237
3248
|
|
|
3238
|
-
// true if both NaN, false otherwise
|
|
3239
3249
|
return a!==a && b!==b;
|
|
3240
3250
|
};
|
|
3241
3251
|
|
|
@@ -4258,7 +4268,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4258
4268
|
var base = '', array = false, braces = ['{', '}'];
|
|
4259
4269
|
|
|
4260
4270
|
// Make Array say that they are Array
|
|
4261
|
-
if (isArray(value)) {
|
|
4271
|
+
if (isArray$1(value)) {
|
|
4262
4272
|
array = true;
|
|
4263
4273
|
braces = ['[', ']'];
|
|
4264
4274
|
}
|
|
@@ -4437,7 +4447,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4437
4447
|
|
|
4438
4448
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4439
4449
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4440
|
-
function isArray(ar) {
|
|
4450
|
+
function isArray$1(ar) {
|
|
4441
4451
|
return Array.isArray(ar);
|
|
4442
4452
|
}
|
|
4443
4453
|
|
|
@@ -4564,7 +4574,7 @@ var util = {
|
|
|
4564
4574
|
isNullOrUndefined: isNullOrUndefined,
|
|
4565
4575
|
isNull: isNull,
|
|
4566
4576
|
isBoolean: isBoolean,
|
|
4567
|
-
isArray: isArray,
|
|
4577
|
+
isArray: isArray$1,
|
|
4568
4578
|
inspect: inspect,
|
|
4569
4579
|
deprecate: deprecate,
|
|
4570
4580
|
format: format,
|
|
@@ -5231,235 +5241,199 @@ module.exports = exports['default'];
|
|
|
5231
5241
|
|
|
5232
5242
|
var youTubePlayer = unwrapExports(dist);
|
|
5233
5243
|
|
|
5234
|
-
function
|
|
5244
|
+
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; }; }();
|
|
5235
5245
|
|
|
5236
|
-
function
|
|
5246
|
+
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; };
|
|
5237
5247
|
|
|
5238
|
-
function
|
|
5239
|
-
|
|
5240
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5241
|
-
|
|
5242
|
-
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); }; }
|
|
5243
|
-
|
|
5244
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5245
|
-
|
|
5246
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5247
|
-
|
|
5248
|
-
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; } }
|
|
5249
|
-
|
|
5250
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5251
|
-
|
|
5252
|
-
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); }
|
|
5253
|
-
|
|
5254
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5248
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5255
5249
|
|
|
5256
|
-
function
|
|
5250
|
+
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; }
|
|
5257
5251
|
|
|
5258
|
-
function
|
|
5252
|
+
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; }
|
|
5259
5253
|
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
*
|
|
5263
|
-
*
|
|
5264
|
-
* @param {Object}
|
|
5265
|
-
* @param {Object} props
|
|
5254
|
+
/**
|
|
5255
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5256
|
+
*
|
|
5257
|
+
* @param {Object} prevProps
|
|
5258
|
+
* @param {Object} props
|
|
5266
5259
|
*/
|
|
5267
|
-
|
|
5268
5260
|
function shouldUpdateVideo(prevProps, props) {
|
|
5269
5261
|
// A changing video should always trigger an update
|
|
5270
5262
|
if (prevProps.videoId !== props.videoId) {
|
|
5271
5263
|
return true;
|
|
5272
|
-
}
|
|
5273
|
-
// update.
|
|
5274
|
-
|
|
5264
|
+
}
|
|
5275
5265
|
|
|
5266
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5267
|
+
// update.
|
|
5276
5268
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5277
5269
|
var vars = props.opts.playerVars || {};
|
|
5270
|
+
|
|
5278
5271
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5279
5272
|
}
|
|
5280
|
-
/**
|
|
5281
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5282
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5283
|
-
* player reset is necessary.
|
|
5284
|
-
*
|
|
5285
|
-
* @param {Object} opts
|
|
5286
|
-
*/
|
|
5287
|
-
|
|
5288
5273
|
|
|
5274
|
+
/**
|
|
5275
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5276
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5277
|
+
* player reset is necessary.
|
|
5278
|
+
*
|
|
5279
|
+
* @param {Object} opts
|
|
5280
|
+
*/
|
|
5289
5281
|
function filterResetOptions(opts) {
|
|
5290
|
-
return
|
|
5291
|
-
playerVars:
|
|
5282
|
+
return _extends({}, opts, {
|
|
5283
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5292
5284
|
autoplay: 0,
|
|
5293
5285
|
start: 0,
|
|
5294
5286
|
end: 0
|
|
5295
5287
|
})
|
|
5296
5288
|
});
|
|
5297
5289
|
}
|
|
5298
|
-
/**
|
|
5299
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5300
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5301
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5302
|
-
* those.
|
|
5303
|
-
*
|
|
5304
|
-
* @param {Object} prevProps
|
|
5305
|
-
* @param {Object} props
|
|
5306
|
-
*/
|
|
5307
|
-
|
|
5308
5290
|
|
|
5291
|
+
/**
|
|
5292
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5293
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5294
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5295
|
+
* those.
|
|
5296
|
+
*
|
|
5297
|
+
* @param {Object} prevProps
|
|
5298
|
+
* @param {Object} props
|
|
5299
|
+
*/
|
|
5309
5300
|
function shouldResetPlayer(prevProps, props) {
|
|
5310
5301
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5311
5302
|
}
|
|
5312
|
-
/**
|
|
5313
|
-
* Check whether a props change should result in an id or className update.
|
|
5314
|
-
*
|
|
5315
|
-
* @param {Object} prevProps
|
|
5316
|
-
* @param {Object} props
|
|
5317
|
-
*/
|
|
5318
|
-
|
|
5319
5303
|
|
|
5304
|
+
/**
|
|
5305
|
+
* Check whether a props change should result in an id or className update.
|
|
5306
|
+
*
|
|
5307
|
+
* @param {Object} prevProps
|
|
5308
|
+
* @param {Object} props
|
|
5309
|
+
*/
|
|
5320
5310
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5321
5311
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5322
5312
|
}
|
|
5323
5313
|
|
|
5324
|
-
var YouTube =
|
|
5314
|
+
var YouTube = function (_React$Component) {
|
|
5325
5315
|
_inherits(YouTube, _React$Component);
|
|
5326
5316
|
|
|
5327
|
-
var _super = _createSuper(YouTube);
|
|
5328
|
-
|
|
5329
|
-
/**
|
|
5330
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5331
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5332
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5333
|
-
*/
|
|
5334
5317
|
function YouTube(props) {
|
|
5335
|
-
var _this;
|
|
5336
|
-
|
|
5337
5318
|
_classCallCheck(this, YouTube);
|
|
5338
5319
|
|
|
5339
|
-
_this =
|
|
5320
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5340
5321
|
|
|
5341
|
-
|
|
5322
|
+
_this.onPlayerReady = function (event) {
|
|
5342
5323
|
return _this.props.onReady(event);
|
|
5343
|
-
}
|
|
5324
|
+
};
|
|
5344
5325
|
|
|
5345
|
-
|
|
5326
|
+
_this.onPlayerError = function (event) {
|
|
5346
5327
|
return _this.props.onError(event);
|
|
5347
|
-
}
|
|
5328
|
+
};
|
|
5348
5329
|
|
|
5349
|
-
|
|
5330
|
+
_this.onPlayerStateChange = function (event) {
|
|
5350
5331
|
_this.props.onStateChange(event);
|
|
5351
|
-
|
|
5352
5332
|
switch (event.data) {
|
|
5333
|
+
|
|
5353
5334
|
case YouTube.PlayerState.ENDED:
|
|
5354
5335
|
_this.props.onEnd(event);
|
|
5355
|
-
|
|
5356
5336
|
break;
|
|
5357
5337
|
|
|
5358
5338
|
case YouTube.PlayerState.PLAYING:
|
|
5359
5339
|
_this.props.onPlay(event);
|
|
5360
|
-
|
|
5361
5340
|
break;
|
|
5362
5341
|
|
|
5363
5342
|
case YouTube.PlayerState.PAUSED:
|
|
5364
5343
|
_this.props.onPause(event);
|
|
5365
|
-
|
|
5366
5344
|
break;
|
|
5367
5345
|
}
|
|
5368
|
-
}
|
|
5346
|
+
};
|
|
5369
5347
|
|
|
5370
|
-
|
|
5348
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5371
5349
|
return _this.props.onPlaybackRateChange(event);
|
|
5372
|
-
}
|
|
5350
|
+
};
|
|
5373
5351
|
|
|
5374
|
-
|
|
5352
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5375
5353
|
return _this.props.onPlaybackQualityChange(event);
|
|
5376
|
-
}
|
|
5354
|
+
};
|
|
5377
5355
|
|
|
5378
|
-
|
|
5356
|
+
_this.createPlayer = function () {
|
|
5379
5357
|
// do not attempt to create a player server-side, it won't work
|
|
5380
|
-
if (typeof document === 'undefined') return;
|
|
5381
|
-
|
|
5382
|
-
var playerOpts =
|
|
5358
|
+
if (typeof document === 'undefined') return;
|
|
5359
|
+
// create player
|
|
5360
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5383
5361
|
// preload the `videoId` video if one is already given
|
|
5384
5362
|
videoId: _this.props.videoId
|
|
5385
5363
|
});
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5364
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5365
|
+
// attach event handlers
|
|
5389
5366
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5390
|
-
|
|
5391
5367
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5392
|
-
|
|
5393
5368
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5394
|
-
|
|
5395
5369
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5396
|
-
|
|
5397
5370
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5398
|
-
}
|
|
5371
|
+
};
|
|
5399
5372
|
|
|
5400
|
-
|
|
5373
|
+
_this.resetPlayer = function () {
|
|
5401
5374
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5402
|
-
}
|
|
5375
|
+
};
|
|
5403
5376
|
|
|
5404
|
-
|
|
5377
|
+
_this.updatePlayer = function () {
|
|
5405
5378
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5406
5379
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5407
5380
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5408
5381
|
});
|
|
5409
|
-
}
|
|
5382
|
+
};
|
|
5410
5383
|
|
|
5411
|
-
|
|
5384
|
+
_this.updateVideo = function () {
|
|
5412
5385
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5413
5386
|
_this.internalPlayer.stopVideo();
|
|
5414
|
-
|
|
5415
5387
|
return;
|
|
5416
|
-
}
|
|
5417
|
-
|
|
5388
|
+
}
|
|
5418
5389
|
|
|
5390
|
+
// set queueing options
|
|
5419
5391
|
var autoplay = false;
|
|
5420
5392
|
var opts = {
|
|
5421
5393
|
videoId: _this.props.videoId
|
|
5422
5394
|
};
|
|
5423
|
-
|
|
5424
5395
|
if ('playerVars' in _this.props.opts) {
|
|
5425
5396
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5426
|
-
|
|
5427
5397
|
if ('start' in _this.props.opts.playerVars) {
|
|
5428
5398
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5429
5399
|
}
|
|
5430
|
-
|
|
5431
5400
|
if ('end' in _this.props.opts.playerVars) {
|
|
5432
5401
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5433
5402
|
}
|
|
5434
|
-
}
|
|
5435
|
-
|
|
5403
|
+
}
|
|
5436
5404
|
|
|
5405
|
+
// if autoplay is enabled loadVideoById
|
|
5437
5406
|
if (autoplay) {
|
|
5438
5407
|
_this.internalPlayer.loadVideoById(opts);
|
|
5439
|
-
|
|
5440
5408
|
return;
|
|
5441
|
-
}
|
|
5442
|
-
|
|
5443
|
-
|
|
5409
|
+
}
|
|
5410
|
+
// default behaviour just cues the video
|
|
5444
5411
|
_this.internalPlayer.cueVideoById(opts);
|
|
5445
|
-
}
|
|
5412
|
+
};
|
|
5446
5413
|
|
|
5447
|
-
|
|
5414
|
+
_this.refContainer = function (container) {
|
|
5448
5415
|
_this.container = container;
|
|
5449
|
-
}
|
|
5416
|
+
};
|
|
5450
5417
|
|
|
5451
5418
|
_this.container = null;
|
|
5452
5419
|
_this.internalPlayer = null;
|
|
5453
5420
|
return _this;
|
|
5454
5421
|
}
|
|
5455
5422
|
|
|
5423
|
+
/**
|
|
5424
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5425
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5426
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5427
|
+
*/
|
|
5428
|
+
|
|
5429
|
+
|
|
5456
5430
|
_createClass(YouTube, [{
|
|
5457
|
-
key:
|
|
5431
|
+
key: 'componentDidMount',
|
|
5458
5432
|
value: function componentDidMount() {
|
|
5459
5433
|
this.createPlayer();
|
|
5460
5434
|
}
|
|
5461
5435
|
}, {
|
|
5462
|
-
key:
|
|
5436
|
+
key: 'componentDidUpdate',
|
|
5463
5437
|
value: function componentDidUpdate(prevProps) {
|
|
5464
5438
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5465
5439
|
this.updatePlayer();
|
|
@@ -5474,58 +5448,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5474
5448
|
}
|
|
5475
5449
|
}
|
|
5476
5450
|
}, {
|
|
5477
|
-
key:
|
|
5451
|
+
key: 'componentWillUnmount',
|
|
5478
5452
|
value: function componentWillUnmount() {
|
|
5479
|
-
/**
|
|
5480
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5481
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5482
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5483
|
-
* this method isn't quick enough to reset the container element.
|
|
5453
|
+
/**
|
|
5454
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5455
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5456
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5457
|
+
* this method isn't quick enough to reset the container element.
|
|
5484
5458
|
*/
|
|
5485
5459
|
this.internalPlayer.destroy();
|
|
5486
5460
|
}
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
*
|
|
5490
|
-
*
|
|
5491
|
-
*
|
|
5461
|
+
|
|
5462
|
+
/**
|
|
5463
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5464
|
+
*
|
|
5465
|
+
* @param {Object} event
|
|
5466
|
+
* @param {Object} target - player object
|
|
5467
|
+
*/
|
|
5468
|
+
|
|
5469
|
+
|
|
5470
|
+
/**
|
|
5471
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5472
|
+
*
|
|
5473
|
+
* @param {Object} event
|
|
5474
|
+
* @param {Integer} data - error type
|
|
5475
|
+
* @param {Object} target - player object
|
|
5476
|
+
*/
|
|
5477
|
+
|
|
5478
|
+
|
|
5479
|
+
/**
|
|
5480
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5481
|
+
*
|
|
5482
|
+
* @param {Object} event
|
|
5483
|
+
* @param {Integer} data - status change type
|
|
5484
|
+
* @param {Object} target - actual YT player
|
|
5485
|
+
*/
|
|
5486
|
+
|
|
5487
|
+
|
|
5488
|
+
/**
|
|
5489
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5490
|
+
*
|
|
5491
|
+
* @param {Object} event
|
|
5492
|
+
* @param {Float} data - playback rate
|
|
5493
|
+
* @param {Object} target - actual YT player
|
|
5494
|
+
*/
|
|
5495
|
+
|
|
5496
|
+
|
|
5497
|
+
/**
|
|
5498
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5499
|
+
*
|
|
5500
|
+
* @param {Object} event
|
|
5501
|
+
* @param {String} data - playback quality
|
|
5502
|
+
* @param {Object} target - actual YT player
|
|
5503
|
+
*/
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
/**
|
|
5507
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5508
|
+
*/
|
|
5509
|
+
|
|
5510
|
+
|
|
5511
|
+
/**
|
|
5512
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5513
|
+
*/
|
|
5514
|
+
|
|
5515
|
+
|
|
5516
|
+
/**
|
|
5517
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5518
|
+
* React should update this automatically but since the Youtube Player API
|
|
5519
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5520
|
+
*/
|
|
5521
|
+
|
|
5522
|
+
|
|
5523
|
+
/**
|
|
5524
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5525
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5526
|
+
* Youtube Player API methods to update the video.
|
|
5492
5527
|
*/
|
|
5493
5528
|
|
|
5494
5529
|
}, {
|
|
5495
|
-
key:
|
|
5530
|
+
key: 'render',
|
|
5496
5531
|
value: function render() {
|
|
5497
|
-
return
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
id: this.props.id,
|
|
5501
|
-
|
|
5502
|
-
ref: this.refContainer
|
|
5503
|
-
}));
|
|
5532
|
+
return React__default.createElement(
|
|
5533
|
+
'div',
|
|
5534
|
+
{ className: this.props.containerClassName },
|
|
5535
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5536
|
+
);
|
|
5504
5537
|
}
|
|
5505
5538
|
}]);
|
|
5506
5539
|
|
|
5507
5540
|
return YouTube;
|
|
5508
5541
|
}(React__default.Component);
|
|
5509
5542
|
|
|
5510
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5511
|
-
UNSTARTED: -1,
|
|
5512
|
-
ENDED: 0,
|
|
5513
|
-
PLAYING: 1,
|
|
5514
|
-
PAUSED: 2,
|
|
5515
|
-
BUFFERING: 3,
|
|
5516
|
-
CUED: 5
|
|
5517
|
-
});
|
|
5518
|
-
|
|
5519
5543
|
YouTube.propTypes = {
|
|
5520
5544
|
videoId: PropTypes.string,
|
|
5545
|
+
|
|
5521
5546
|
// custom ID for player element
|
|
5522
5547
|
id: PropTypes.string,
|
|
5548
|
+
|
|
5523
5549
|
// custom class name for player element
|
|
5524
5550
|
className: PropTypes.string,
|
|
5525
5551
|
// custom class name for player container element
|
|
5526
5552
|
containerClassName: PropTypes.string,
|
|
5553
|
+
|
|
5527
5554
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5528
5555
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5556
|
+
|
|
5529
5557
|
// event subscriptions
|
|
5530
5558
|
onReady: PropTypes.func,
|
|
5531
5559
|
onError: PropTypes.func,
|
|
@@ -5537,7 +5565,6 @@ YouTube.propTypes = {
|
|
|
5537
5565
|
onPlaybackQualityChange: PropTypes.func
|
|
5538
5566
|
};
|
|
5539
5567
|
YouTube.defaultProps = {
|
|
5540
|
-
videoId: null,
|
|
5541
5568
|
id: null,
|
|
5542
5569
|
className: null,
|
|
5543
5570
|
opts: {},
|
|
@@ -5551,6 +5578,14 @@ YouTube.defaultProps = {
|
|
|
5551
5578
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5552
5579
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5553
5580
|
};
|
|
5581
|
+
YouTube.PlayerState = {
|
|
5582
|
+
UNSTARTED: -1,
|
|
5583
|
+
ENDED: 0,
|
|
5584
|
+
PLAYING: 1,
|
|
5585
|
+
PAUSED: 2,
|
|
5586
|
+
BUFFERING: 3,
|
|
5587
|
+
CUED: 5
|
|
5588
|
+
};
|
|
5554
5589
|
|
|
5555
5590
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5556
5591
|
var url = _ref.url;
|
|
@@ -6574,8 +6609,8 @@ var window_1 = win;
|
|
|
6574
6609
|
|
|
6575
6610
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6576
6611
|
|
|
6577
|
-
function _extends() {
|
|
6578
|
-
_extends = Object.assign || function (target) {
|
|
6612
|
+
function _extends$1() {
|
|
6613
|
+
_extends$1 = Object.assign || function (target) {
|
|
6579
6614
|
for (var i = 1; i < arguments.length; i++) {
|
|
6580
6615
|
var source = arguments[i];
|
|
6581
6616
|
|
|
@@ -6589,7 +6624,7 @@ function _extends() {
|
|
|
6589
6624
|
return target;
|
|
6590
6625
|
};
|
|
6591
6626
|
|
|
6592
|
-
return _extends.apply(this, arguments);
|
|
6627
|
+
return _extends$1.apply(this, arguments);
|
|
6593
6628
|
}
|
|
6594
6629
|
|
|
6595
6630
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6598,7 +6633,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6598
6633
|
subClass.__proto__ = superClass;
|
|
6599
6634
|
}
|
|
6600
6635
|
|
|
6601
|
-
function _assertThisInitialized
|
|
6636
|
+
function _assertThisInitialized(self) {
|
|
6602
6637
|
if (self === void 0) {
|
|
6603
6638
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6604
6639
|
}
|
|
@@ -6608,8 +6643,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6608
6643
|
|
|
6609
6644
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6610
6645
|
|
|
6611
|
-
function _extends$1() {
|
|
6612
|
-
_extends$1 = Object.assign || function (target) {
|
|
6646
|
+
function _extends$1$1() {
|
|
6647
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6613
6648
|
for (var i = 1; i < arguments.length; i++) {
|
|
6614
6649
|
var source = arguments[i];
|
|
6615
6650
|
|
|
@@ -6623,7 +6658,7 @@ function _extends$1() {
|
|
|
6623
6658
|
return target;
|
|
6624
6659
|
};
|
|
6625
6660
|
|
|
6626
|
-
return _extends$1.apply(this, arguments);
|
|
6661
|
+
return _extends$1$1.apply(this, arguments);
|
|
6627
6662
|
}
|
|
6628
6663
|
|
|
6629
6664
|
var version$1 = "1.7.1";
|
|
@@ -6631,7 +6666,7 @@ var version$1 = "1.7.1";
|
|
|
6631
6666
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6632
6667
|
var version$1$1 = "1.2.0";
|
|
6633
6668
|
|
|
6634
|
-
var _typeof
|
|
6669
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6635
6670
|
return typeof obj;
|
|
6636
6671
|
} : function (obj) {
|
|
6637
6672
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6766,7 +6801,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6766
6801
|
|
|
6767
6802
|
var qs = '';
|
|
6768
6803
|
|
|
6769
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6804
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6770
6805
|
qs = getQueryString(queryParams);
|
|
6771
6806
|
}
|
|
6772
6807
|
|
|
@@ -7000,7 +7035,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7000
7035
|
el.style.width = '100%';
|
|
7001
7036
|
el.style.height = '100%';
|
|
7002
7037
|
|
|
7003
|
-
var responsive = _extends$1({
|
|
7038
|
+
var responsive = _extends$1$1({
|
|
7004
7039
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7005
7040
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7006
7041
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7685,7 +7720,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7685
7720
|
|
|
7686
7721
|
|
|
7687
7722
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7688
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7723
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7689
7724
|
|
|
7690
7725
|
var Promise = params.Promise,
|
|
7691
7726
|
onSuccess = params.onSuccess,
|
|
@@ -7827,7 +7862,7 @@ function (_React$Component) {
|
|
|
7827
7862
|
_this.refNode = ref;
|
|
7828
7863
|
};
|
|
7829
7864
|
|
|
7830
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7865
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7831
7866
|
return _this;
|
|
7832
7867
|
}
|
|
7833
7868
|
/**
|
|
@@ -7848,7 +7883,7 @@ function (_React$Component) {
|
|
|
7848
7883
|
var userSuccess = this.props.onSuccess;
|
|
7849
7884
|
var userFailure = this.props.onFailure;
|
|
7850
7885
|
|
|
7851
|
-
var options = _extends({}, this.props, {
|
|
7886
|
+
var options = _extends$1({}, this.props, {
|
|
7852
7887
|
refNode: this.refNode,
|
|
7853
7888
|
refNodeInsert: 'append',
|
|
7854
7889
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8157,7 +8192,7 @@ function (_React$Component) {
|
|
|
8157
8192
|
;
|
|
8158
8193
|
|
|
8159
8194
|
_proto.render = function render() {
|
|
8160
|
-
var props = _extends({
|
|
8195
|
+
var props = _extends$1({
|
|
8161
8196
|
className: 'brightcove-react-player-loader'
|
|
8162
8197
|
}, this.props.attrs, {
|
|
8163
8198
|
ref: this.setRefNode
|
|
@@ -8573,17 +8608,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8573
8608
|
|
|
8574
8609
|
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; }
|
|
8575
8610
|
|
|
8576
|
-
function
|
|
8577
|
-
|
|
8578
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8611
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8579
8612
|
|
|
8580
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8613
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8581
8614
|
|
|
8582
|
-
function
|
|
8583
|
-
|
|
8584
|
-
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; }
|
|
8585
|
-
|
|
8586
|
-
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; }
|
|
8615
|
+
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; }
|
|
8587
8616
|
|
|
8588
8617
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8589
8618
|
|
|
@@ -8713,12 +8742,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8713
8742
|
|
|
8714
8743
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8715
8744
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8716
|
-
|
|
8717
|
-
var
|
|
8718
|
-
|
|
8745
|
+
var _iteratorNormalCompletion = true;
|
|
8746
|
+
var _didIteratorError = false;
|
|
8747
|
+
var _iteratorError = undefined;
|
|
8719
8748
|
|
|
8720
8749
|
try {
|
|
8721
|
-
for (_iterator.
|
|
8750
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8722
8751
|
var p = _step.value;
|
|
8723
8752
|
|
|
8724
8753
|
if (props$1[p]) {
|
|
@@ -8733,9 +8762,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8733
8762
|
}
|
|
8734
8763
|
}
|
|
8735
8764
|
} catch (err) {
|
|
8736
|
-
|
|
8765
|
+
_didIteratorError = true;
|
|
8766
|
+
_iteratorError = err;
|
|
8737
8767
|
} finally {
|
|
8738
|
-
|
|
8768
|
+
try {
|
|
8769
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8770
|
+
_iterator["return"]();
|
|
8771
|
+
}
|
|
8772
|
+
} finally {
|
|
8773
|
+
if (_didIteratorError) {
|
|
8774
|
+
throw _iteratorError;
|
|
8775
|
+
}
|
|
8776
|
+
}
|
|
8739
8777
|
}
|
|
8740
8778
|
|
|
8741
8779
|
return config;
|
|
@@ -8882,16 +8920,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8882
8920
|
|
|
8883
8921
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8884
8922
|
|
|
8885
|
-
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); }; }
|
|
8886
|
-
|
|
8887
8923
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8888
8924
|
|
|
8889
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8890
|
-
|
|
8891
|
-
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; } }
|
|
8892
|
-
|
|
8893
8925
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8894
8926
|
|
|
8927
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8928
|
+
|
|
8895
8929
|
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); }
|
|
8896
8930
|
|
|
8897
8931
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8900,12 +8934,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8900
8934
|
|
|
8901
8935
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8902
8936
|
|
|
8903
|
-
var Player =
|
|
8937
|
+
var Player =
|
|
8938
|
+
/*#__PURE__*/
|
|
8939
|
+
function (_Component) {
|
|
8904
8940
|
_inherits(Player, _Component);
|
|
8905
8941
|
|
|
8906
|
-
var _super = _createSuper(Player);
|
|
8907
|
-
|
|
8908
8942
|
function Player() {
|
|
8943
|
+
var _getPrototypeOf2;
|
|
8944
|
+
|
|
8909
8945
|
var _this;
|
|
8910
8946
|
|
|
8911
8947
|
_classCallCheck(this, Player);
|
|
@@ -8914,7 +8950,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
8914
8950
|
_args[_key] = arguments[_key];
|
|
8915
8951
|
}
|
|
8916
8952
|
|
|
8917
|
-
_this =
|
|
8953
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
8918
8954
|
|
|
8919
8955
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8920
8956
|
|
|
@@ -9239,7 +9275,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9239
9275
|
return null;
|
|
9240
9276
|
}
|
|
9241
9277
|
|
|
9242
|
-
return
|
|
9278
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9243
9279
|
ref: this.ref,
|
|
9244
9280
|
onReady: this.handleReady,
|
|
9245
9281
|
onPlay: this.handlePlay,
|
|
@@ -9300,16 +9336,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9300
9336
|
|
|
9301
9337
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9302
9338
|
|
|
9303
|
-
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); }; }
|
|
9304
|
-
|
|
9305
9339
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9306
9340
|
|
|
9307
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9308
|
-
|
|
9309
|
-
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; } }
|
|
9310
|
-
|
|
9311
9341
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9312
9342
|
|
|
9343
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9344
|
+
|
|
9313
9345
|
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); }
|
|
9314
9346
|
|
|
9315
9347
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9321,12 +9353,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9321
9353
|
function createSinglePlayer(activePlayer) {
|
|
9322
9354
|
var _class, _temp;
|
|
9323
9355
|
|
|
9324
|
-
return _temp = _class =
|
|
9356
|
+
return _temp = _class =
|
|
9357
|
+
/*#__PURE__*/
|
|
9358
|
+
function (_Component) {
|
|
9325
9359
|
_inherits(SinglePlayer, _Component);
|
|
9326
9360
|
|
|
9327
|
-
var _super = _createSuper(SinglePlayer);
|
|
9328
|
-
|
|
9329
9361
|
function SinglePlayer() {
|
|
9362
|
+
var _getPrototypeOf2;
|
|
9363
|
+
|
|
9330
9364
|
var _this;
|
|
9331
9365
|
|
|
9332
9366
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9335,7 +9369,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9335
9369
|
args[_key] = arguments[_key];
|
|
9336
9370
|
}
|
|
9337
9371
|
|
|
9338
|
-
_this =
|
|
9372
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9339
9373
|
|
|
9340
9374
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9341
9375
|
|
|
@@ -9403,12 +9437,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9403
9437
|
height = _this$props.height,
|
|
9404
9438
|
Wrapper = _this$props.wrapper;
|
|
9405
9439
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9406
|
-
return
|
|
9440
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9407
9441
|
style: _objectSpread({}, style, {
|
|
9408
9442
|
width: width,
|
|
9409
9443
|
height: height
|
|
9410
9444
|
})
|
|
9411
|
-
}, otherProps),
|
|
9445
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9412
9446
|
ref: this.ref,
|
|
9413
9447
|
activePlayer: activePlayer,
|
|
9414
9448
|
config: this.config
|
|
@@ -9454,31 +9488,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9454
9488
|
|
|
9455
9489
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9456
9490
|
|
|
9457
|
-
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); }; }
|
|
9458
|
-
|
|
9459
9491
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9460
9492
|
|
|
9461
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9462
|
-
|
|
9463
|
-
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; } }
|
|
9464
|
-
|
|
9465
9493
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9466
9494
|
|
|
9495
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9496
|
+
|
|
9467
9497
|
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); }
|
|
9468
9498
|
|
|
9469
9499
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9470
9500
|
|
|
9471
9501
|
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; }
|
|
9472
9502
|
|
|
9473
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9474
|
-
|
|
9475
|
-
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."); }
|
|
9476
|
-
|
|
9477
|
-
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); }
|
|
9503
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9478
9504
|
|
|
9479
|
-
function
|
|
9505
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9480
9506
|
|
|
9481
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
9507
|
+
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; }
|
|
9482
9508
|
|
|
9483
9509
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9484
9510
|
|
|
@@ -9503,12 +9529,14 @@ function parsePlaylist(url) {
|
|
|
9503
9529
|
return {};
|
|
9504
9530
|
}
|
|
9505
9531
|
|
|
9506
|
-
var YouTube =
|
|
9532
|
+
var YouTube =
|
|
9533
|
+
/*#__PURE__*/
|
|
9534
|
+
function (_Component) {
|
|
9507
9535
|
_inherits(YouTube, _Component);
|
|
9508
9536
|
|
|
9509
|
-
var _super = _createSuper(YouTube);
|
|
9510
|
-
|
|
9511
9537
|
function YouTube() {
|
|
9538
|
+
var _getPrototypeOf2;
|
|
9539
|
+
|
|
9512
9540
|
var _this;
|
|
9513
9541
|
|
|
9514
9542
|
_classCallCheck(this, YouTube);
|
|
@@ -9517,7 +9545,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9517
9545
|
args[_key] = arguments[_key];
|
|
9518
9546
|
}
|
|
9519
9547
|
|
|
9520
|
-
_this =
|
|
9548
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9521
9549
|
|
|
9522
9550
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9523
9551
|
|
|
@@ -9705,9 +9733,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9705
9733
|
height: '100%',
|
|
9706
9734
|
display: display
|
|
9707
9735
|
};
|
|
9708
|
-
return
|
|
9736
|
+
return _react["default"].createElement("div", {
|
|
9709
9737
|
style: style
|
|
9710
|
-
},
|
|
9738
|
+
}, _react["default"].createElement("div", {
|
|
9711
9739
|
ref: this.ref
|
|
9712
9740
|
}));
|
|
9713
9741
|
}
|
|
@@ -9763,16 +9791,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9763
9791
|
|
|
9764
9792
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9765
9793
|
|
|
9766
|
-
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); }; }
|
|
9767
|
-
|
|
9768
9794
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9769
9795
|
|
|
9770
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9771
|
-
|
|
9772
|
-
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; } }
|
|
9773
|
-
|
|
9774
9796
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9775
9797
|
|
|
9798
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9799
|
+
|
|
9776
9800
|
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); }
|
|
9777
9801
|
|
|
9778
9802
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9781,14 +9805,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9781
9805
|
|
|
9782
9806
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9783
9807
|
var SDK_GLOBAL = 'SC';
|
|
9784
|
-
var MATCH_URL = /(
|
|
9808
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9785
9809
|
|
|
9786
|
-
var SoundCloud =
|
|
9810
|
+
var SoundCloud =
|
|
9811
|
+
/*#__PURE__*/
|
|
9812
|
+
function (_Component) {
|
|
9787
9813
|
_inherits(SoundCloud, _Component);
|
|
9788
9814
|
|
|
9789
|
-
var _super = _createSuper(SoundCloud);
|
|
9790
|
-
|
|
9791
9815
|
function SoundCloud() {
|
|
9816
|
+
var _getPrototypeOf2;
|
|
9817
|
+
|
|
9792
9818
|
var _this;
|
|
9793
9819
|
|
|
9794
9820
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9797,7 +9823,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9797
9823
|
args[_key] = arguments[_key];
|
|
9798
9824
|
}
|
|
9799
9825
|
|
|
9800
|
-
_this =
|
|
9826
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9801
9827
|
|
|
9802
9828
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9803
9829
|
|
|
@@ -9918,7 +9944,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9918
9944
|
height: '100%',
|
|
9919
9945
|
display: display
|
|
9920
9946
|
};
|
|
9921
|
-
return
|
|
9947
|
+
return _react["default"].createElement("iframe", {
|
|
9922
9948
|
ref: this.ref,
|
|
9923
9949
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9924
9950
|
style: style,
|
|
@@ -9980,16 +10006,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9980
10006
|
|
|
9981
10007
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9982
10008
|
|
|
9983
|
-
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); }; }
|
|
9984
|
-
|
|
9985
10009
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9986
10010
|
|
|
9987
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9988
|
-
|
|
9989
|
-
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; } }
|
|
9990
|
-
|
|
9991
10011
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9992
10012
|
|
|
10013
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10014
|
+
|
|
9993
10015
|
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); }
|
|
9994
10016
|
|
|
9995
10017
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10001,12 +10023,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10001
10023
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10002
10024
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10003
10025
|
|
|
10004
|
-
var Vimeo =
|
|
10026
|
+
var Vimeo =
|
|
10027
|
+
/*#__PURE__*/
|
|
10028
|
+
function (_Component) {
|
|
10005
10029
|
_inherits(Vimeo, _Component);
|
|
10006
10030
|
|
|
10007
|
-
var _super = _createSuper(Vimeo);
|
|
10008
|
-
|
|
10009
10031
|
function Vimeo() {
|
|
10032
|
+
var _getPrototypeOf2;
|
|
10033
|
+
|
|
10010
10034
|
var _this;
|
|
10011
10035
|
|
|
10012
10036
|
_classCallCheck(this, Vimeo);
|
|
@@ -10015,7 +10039,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10015
10039
|
args[_key] = arguments[_key];
|
|
10016
10040
|
}
|
|
10017
10041
|
|
|
10018
|
-
_this =
|
|
10042
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10019
10043
|
|
|
10020
10044
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10021
10045
|
|
|
@@ -10172,7 +10196,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10172
10196
|
overflow: 'hidden',
|
|
10173
10197
|
display: display
|
|
10174
10198
|
};
|
|
10175
|
-
return
|
|
10199
|
+
return _react["default"].createElement("div", {
|
|
10176
10200
|
key: this.props.url,
|
|
10177
10201
|
ref: this.ref,
|
|
10178
10202
|
style: style
|
|
@@ -10232,16 +10256,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10232
10256
|
|
|
10233
10257
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10234
10258
|
|
|
10235
|
-
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); }; }
|
|
10236
|
-
|
|
10237
10259
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10238
10260
|
|
|
10239
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10240
|
-
|
|
10241
|
-
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; } }
|
|
10242
|
-
|
|
10243
10261
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10244
10262
|
|
|
10263
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10264
|
+
|
|
10245
10265
|
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); }
|
|
10246
10266
|
|
|
10247
10267
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10254,12 +10274,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10254
10274
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10255
10275
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10256
10276
|
|
|
10257
|
-
var Facebook =
|
|
10277
|
+
var Facebook =
|
|
10278
|
+
/*#__PURE__*/
|
|
10279
|
+
function (_Component) {
|
|
10258
10280
|
_inherits(Facebook, _Component);
|
|
10259
10281
|
|
|
10260
|
-
var _super = _createSuper(Facebook);
|
|
10261
|
-
|
|
10262
10282
|
function Facebook() {
|
|
10283
|
+
var _getPrototypeOf2;
|
|
10284
|
+
|
|
10263
10285
|
var _this;
|
|
10264
10286
|
|
|
10265
10287
|
_classCallCheck(this, Facebook);
|
|
@@ -10268,7 +10290,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10268
10290
|
args[_key] = arguments[_key];
|
|
10269
10291
|
}
|
|
10270
10292
|
|
|
10271
|
-
_this =
|
|
10293
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10272
10294
|
|
|
10273
10295
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10274
10296
|
|
|
@@ -10384,7 +10406,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10384
10406
|
width: '100%',
|
|
10385
10407
|
height: '100%'
|
|
10386
10408
|
};
|
|
10387
|
-
return
|
|
10409
|
+
return _react["default"].createElement("div", {
|
|
10388
10410
|
style: style,
|
|
10389
10411
|
id: this.playerID,
|
|
10390
10412
|
className: "fb-video",
|
|
@@ -10444,16 +10466,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10444
10466
|
|
|
10445
10467
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10446
10468
|
|
|
10447
|
-
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); }; }
|
|
10448
|
-
|
|
10449
10469
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10450
10470
|
|
|
10451
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10452
|
-
|
|
10453
|
-
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; } }
|
|
10454
|
-
|
|
10455
10471
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10456
10472
|
|
|
10473
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10474
|
+
|
|
10457
10475
|
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); }
|
|
10458
10476
|
|
|
10459
10477
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10464,12 +10482,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10464
10482
|
var SDK_GLOBAL = 'playerjs';
|
|
10465
10483
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10466
10484
|
|
|
10467
|
-
var Streamable =
|
|
10485
|
+
var Streamable =
|
|
10486
|
+
/*#__PURE__*/
|
|
10487
|
+
function (_Component) {
|
|
10468
10488
|
_inherits(Streamable, _Component);
|
|
10469
10489
|
|
|
10470
|
-
var _super = _createSuper(Streamable);
|
|
10471
|
-
|
|
10472
10490
|
function Streamable() {
|
|
10491
|
+
var _getPrototypeOf2;
|
|
10492
|
+
|
|
10473
10493
|
var _this;
|
|
10474
10494
|
|
|
10475
10495
|
_classCallCheck(this, Streamable);
|
|
@@ -10478,7 +10498,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10478
10498
|
args[_key] = arguments[_key];
|
|
10479
10499
|
}
|
|
10480
10500
|
|
|
10481
|
-
_this =
|
|
10501
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10482
10502
|
|
|
10483
10503
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10484
10504
|
|
|
@@ -10598,7 +10618,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10598
10618
|
width: '100%',
|
|
10599
10619
|
height: '100%'
|
|
10600
10620
|
};
|
|
10601
|
-
return
|
|
10621
|
+
return _react["default"].createElement("iframe", {
|
|
10602
10622
|
ref: this.ref,
|
|
10603
10623
|
src: "https://streamable.com/o/".concat(id),
|
|
10604
10624
|
frameBorder: "0",
|
|
@@ -10659,16 +10679,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10659
10679
|
|
|
10660
10680
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10661
10681
|
|
|
10662
|
-
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); }; }
|
|
10663
|
-
|
|
10664
10682
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10665
10683
|
|
|
10666
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10667
|
-
|
|
10668
|
-
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; } }
|
|
10669
|
-
|
|
10670
10684
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10671
10685
|
|
|
10686
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10687
|
+
|
|
10672
10688
|
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); }
|
|
10673
10689
|
|
|
10674
10690
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10679,48 +10695,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10679
10695
|
var SDK_GLOBAL = 'Wistia';
|
|
10680
10696
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10681
10697
|
|
|
10682
|
-
var Wistia =
|
|
10698
|
+
var Wistia =
|
|
10699
|
+
/*#__PURE__*/
|
|
10700
|
+
function (_Component) {
|
|
10683
10701
|
_inherits(Wistia, _Component);
|
|
10684
10702
|
|
|
10685
|
-
var _super = _createSuper(Wistia);
|
|
10686
|
-
|
|
10687
10703
|
function Wistia() {
|
|
10704
|
+
var _getPrototypeOf2;
|
|
10705
|
+
|
|
10688
10706
|
var _this;
|
|
10689
10707
|
|
|
10690
10708
|
_classCallCheck(this, Wistia);
|
|
10691
10709
|
|
|
10692
|
-
for (var _len = arguments.length,
|
|
10693
|
-
|
|
10710
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10711
|
+
args[_key] = arguments[_key];
|
|
10694
10712
|
}
|
|
10695
10713
|
|
|
10696
|
-
_this =
|
|
10714
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10697
10715
|
|
|
10698
10716
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10699
10717
|
|
|
10700
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10701
|
-
var _this$props;
|
|
10702
|
-
|
|
10703
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10704
|
-
});
|
|
10705
|
-
|
|
10706
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10707
|
-
var _this$props2;
|
|
10708
|
-
|
|
10709
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10710
|
-
});
|
|
10711
|
-
|
|
10712
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10713
|
-
var _this$props3;
|
|
10714
|
-
|
|
10715
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10716
|
-
});
|
|
10717
|
-
|
|
10718
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10719
|
-
var _this$props4;
|
|
10720
|
-
|
|
10721
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10722
|
-
});
|
|
10723
|
-
|
|
10724
10718
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10725
10719
|
_this.callPlayer('mute');
|
|
10726
10720
|
});
|
|
@@ -10742,13 +10736,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10742
10736
|
value: function load(url) {
|
|
10743
10737
|
var _this2 = this;
|
|
10744
10738
|
|
|
10745
|
-
var _this$
|
|
10746
|
-
playing = _this$
|
|
10747
|
-
muted = _this$
|
|
10748
|
-
controls = _this$
|
|
10749
|
-
_onReady = _this$
|
|
10750
|
-
|
|
10751
|
-
|
|
10739
|
+
var _this$props = this.props,
|
|
10740
|
+
playing = _this$props.playing,
|
|
10741
|
+
muted = _this$props.muted,
|
|
10742
|
+
controls = _this$props.controls,
|
|
10743
|
+
_onReady = _this$props.onReady,
|
|
10744
|
+
onPlay = _this$props.onPlay,
|
|
10745
|
+
onPause = _this$props.onPause,
|
|
10746
|
+
onSeek = _this$props.onSeek,
|
|
10747
|
+
onEnded = _this$props.onEnded,
|
|
10748
|
+
config = _this$props.config,
|
|
10749
|
+
onError = _this$props.onError;
|
|
10752
10750
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10753
10751
|
window._wq = window._wq || [];
|
|
10754
10752
|
|
|
@@ -10765,28 +10763,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10765
10763
|
|
|
10766
10764
|
_this2.unbind();
|
|
10767
10765
|
|
|
10768
|
-
_this2.player.bind('play',
|
|
10766
|
+
_this2.player.bind('play', onPlay);
|
|
10769
10767
|
|
|
10770
|
-
_this2.player.bind('pause',
|
|
10768
|
+
_this2.player.bind('pause', onPause);
|
|
10771
10769
|
|
|
10772
|
-
_this2.player.bind('seek',
|
|
10770
|
+
_this2.player.bind('seek', onSeek);
|
|
10773
10771
|
|
|
10774
|
-
_this2.player.bind('end',
|
|
10772
|
+
_this2.player.bind('end', onEnded);
|
|
10775
10773
|
|
|
10776
10774
|
_onReady();
|
|
10777
10775
|
}
|
|
10778
10776
|
});
|
|
10779
10777
|
}, onError);
|
|
10780
10778
|
}
|
|
10781
|
-
}, {
|
|
10782
|
-
key: "unbind",
|
|
10783
|
-
value: function unbind() {
|
|
10784
|
-
this.player.unbind('play', this.onPlay);
|
|
10785
|
-
this.player.unbind('pause', this.onPause);
|
|
10786
|
-
this.player.unbind('seek', this.onSeek);
|
|
10787
|
-
this.player.unbind('end', this.onEnded);
|
|
10788
|
-
} // Proxy methods to prevent listener leaks
|
|
10789
|
-
|
|
10790
10779
|
}, {
|
|
10791
10780
|
key: "play",
|
|
10792
10781
|
value: function play() {
|
|
@@ -10797,6 +10786,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10797
10786
|
value: function pause() {
|
|
10798
10787
|
this.callPlayer('pause');
|
|
10799
10788
|
}
|
|
10789
|
+
}, {
|
|
10790
|
+
key: "unbind",
|
|
10791
|
+
value: function unbind() {
|
|
10792
|
+
var _this$props2 = this.props,
|
|
10793
|
+
onPlay = _this$props2.onPlay,
|
|
10794
|
+
onPause = _this$props2.onPause,
|
|
10795
|
+
onSeek = _this$props2.onSeek,
|
|
10796
|
+
onEnded = _this$props2.onEnded;
|
|
10797
|
+
this.player.unbind('play', onPlay);
|
|
10798
|
+
this.player.unbind('pause', onPause);
|
|
10799
|
+
this.player.unbind('seek', onSeek);
|
|
10800
|
+
this.player.unbind('end', onEnded);
|
|
10801
|
+
}
|
|
10800
10802
|
}, {
|
|
10801
10803
|
key: "stop",
|
|
10802
10804
|
value: function stop() {
|
|
@@ -10842,7 +10844,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10842
10844
|
width: '100%',
|
|
10843
10845
|
height: '100%'
|
|
10844
10846
|
};
|
|
10845
|
-
return
|
|
10847
|
+
return _react["default"].createElement("div", {
|
|
10846
10848
|
key: id,
|
|
10847
10849
|
className: className,
|
|
10848
10850
|
style: style
|
|
@@ -10902,16 +10904,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10902
10904
|
|
|
10903
10905
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10904
10906
|
|
|
10905
|
-
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); }; }
|
|
10906
|
-
|
|
10907
10907
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10908
10908
|
|
|
10909
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10910
|
-
|
|
10911
|
-
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; } }
|
|
10912
|
-
|
|
10913
10909
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10914
10910
|
|
|
10911
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10912
|
+
|
|
10915
10913
|
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); }
|
|
10916
10914
|
|
|
10917
10915
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10924,12 +10922,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10924
10922
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10925
10923
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10926
10924
|
|
|
10927
|
-
var Twitch =
|
|
10925
|
+
var Twitch =
|
|
10926
|
+
/*#__PURE__*/
|
|
10927
|
+
function (_Component) {
|
|
10928
10928
|
_inherits(Twitch, _Component);
|
|
10929
10929
|
|
|
10930
|
-
var _super = _createSuper(Twitch);
|
|
10931
|
-
|
|
10932
10930
|
function Twitch() {
|
|
10931
|
+
var _getPrototypeOf2;
|
|
10932
|
+
|
|
10933
10933
|
var _this;
|
|
10934
10934
|
|
|
10935
10935
|
_classCallCheck(this, Twitch);
|
|
@@ -10938,7 +10938,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10938
10938
|
args[_key] = arguments[_key];
|
|
10939
10939
|
}
|
|
10940
10940
|
|
|
10941
|
-
_this =
|
|
10941
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10942
10942
|
|
|
10943
10943
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10944
10944
|
|
|
@@ -11059,7 +11059,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11059
11059
|
width: '100%',
|
|
11060
11060
|
height: '100%'
|
|
11061
11061
|
};
|
|
11062
|
-
return
|
|
11062
|
+
return _react["default"].createElement("div", {
|
|
11063
11063
|
style: style,
|
|
11064
11064
|
id: this.playerID
|
|
11065
11065
|
});
|
|
@@ -11112,15 +11112,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11112
11112
|
|
|
11113
11113
|
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; }
|
|
11114
11114
|
|
|
11115
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11116
|
-
|
|
11117
|
-
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."); }
|
|
11118
|
-
|
|
11119
|
-
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); }
|
|
11115
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11120
11116
|
|
|
11121
|
-
function
|
|
11117
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11122
11118
|
|
|
11123
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
11119
|
+
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; }
|
|
11124
11120
|
|
|
11125
11121
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11126
11122
|
|
|
@@ -11130,16 +11126,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11130
11126
|
|
|
11131
11127
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11132
11128
|
|
|
11133
|
-
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); }; }
|
|
11134
|
-
|
|
11135
11129
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11136
11130
|
|
|
11137
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11138
|
-
|
|
11139
|
-
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; } }
|
|
11140
|
-
|
|
11141
11131
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11142
11132
|
|
|
11133
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11134
|
+
|
|
11143
11135
|
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); }
|
|
11144
11136
|
|
|
11145
11137
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11151,12 +11143,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11151
11143
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11152
11144
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11153
11145
|
|
|
11154
|
-
var DailyMotion =
|
|
11146
|
+
var DailyMotion =
|
|
11147
|
+
/*#__PURE__*/
|
|
11148
|
+
function (_Component) {
|
|
11155
11149
|
_inherits(DailyMotion, _Component);
|
|
11156
11150
|
|
|
11157
|
-
var _super = _createSuper(DailyMotion);
|
|
11158
|
-
|
|
11159
11151
|
function DailyMotion() {
|
|
11152
|
+
var _getPrototypeOf2;
|
|
11153
|
+
|
|
11160
11154
|
var _this;
|
|
11161
11155
|
|
|
11162
11156
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11165,7 +11159,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11165
11159
|
args[_key] = arguments[_key];
|
|
11166
11160
|
}
|
|
11167
11161
|
|
|
11168
|
-
_this =
|
|
11162
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11169
11163
|
|
|
11170
11164
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11171
11165
|
|
|
@@ -11294,9 +11288,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11294
11288
|
height: '100%',
|
|
11295
11289
|
display: display
|
|
11296
11290
|
};
|
|
11297
|
-
return
|
|
11291
|
+
return _react["default"].createElement("div", {
|
|
11298
11292
|
style: style
|
|
11299
|
-
},
|
|
11293
|
+
}, _react["default"].createElement("div", {
|
|
11300
11294
|
ref: this.ref
|
|
11301
11295
|
}));
|
|
11302
11296
|
}
|
|
@@ -11354,16 +11348,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11354
11348
|
|
|
11355
11349
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11356
11350
|
|
|
11357
|
-
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); }; }
|
|
11358
|
-
|
|
11359
11351
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11360
11352
|
|
|
11361
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11362
|
-
|
|
11363
|
-
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; } }
|
|
11364
|
-
|
|
11365
11353
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11366
11354
|
|
|
11355
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11356
|
+
|
|
11367
11357
|
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); }
|
|
11368
11358
|
|
|
11369
11359
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11374,12 +11364,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11374
11364
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11375
11365
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11376
11366
|
|
|
11377
|
-
var Mixcloud =
|
|
11367
|
+
var Mixcloud =
|
|
11368
|
+
/*#__PURE__*/
|
|
11369
|
+
function (_Component) {
|
|
11378
11370
|
_inherits(Mixcloud, _Component);
|
|
11379
11371
|
|
|
11380
|
-
var _super = _createSuper(Mixcloud);
|
|
11381
|
-
|
|
11382
11372
|
function Mixcloud() {
|
|
11373
|
+
var _getPrototypeOf2;
|
|
11374
|
+
|
|
11383
11375
|
var _this;
|
|
11384
11376
|
|
|
11385
11377
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11388,7 +11380,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11388
11380
|
args[_key] = arguments[_key];
|
|
11389
11381
|
}
|
|
11390
11382
|
|
|
11391
|
-
_this =
|
|
11383
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11392
11384
|
|
|
11393
11385
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11394
11386
|
|
|
@@ -11491,7 +11483,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11491
11483
|
})); // We have to give the iframe a key here to prevent a
|
|
11492
11484
|
// weird dialog appearing when loading a new track
|
|
11493
11485
|
|
|
11494
|
-
return
|
|
11486
|
+
return _react["default"].createElement("iframe", {
|
|
11495
11487
|
key: id,
|
|
11496
11488
|
ref: this.ref,
|
|
11497
11489
|
style: style,
|
|
@@ -11551,33 +11543,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11551
11543
|
|
|
11552
11544
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11553
11545
|
|
|
11554
|
-
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); }; }
|
|
11555
|
-
|
|
11556
11546
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11557
11547
|
|
|
11558
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11559
|
-
|
|
11560
|
-
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; } }
|
|
11561
|
-
|
|
11562
11548
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11563
11549
|
|
|
11550
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11551
|
+
|
|
11564
11552
|
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); }
|
|
11565
11553
|
|
|
11566
11554
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11567
11555
|
|
|
11568
11556
|
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; }
|
|
11569
11557
|
|
|
11570
|
-
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; } } }; }
|
|
11571
|
-
|
|
11572
|
-
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); }
|
|
11573
|
-
|
|
11574
|
-
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; }
|
|
11575
|
-
|
|
11576
11558
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11577
11559
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11578
11560
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11579
11561
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11580
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11562
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11581
11563
|
var HLS_GLOBAL = 'Hls';
|
|
11582
11564
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11583
11565
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11586,11 +11568,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11586
11568
|
|
|
11587
11569
|
function canPlay(url) {
|
|
11588
11570
|
if (url instanceof Array) {
|
|
11589
|
-
var
|
|
11590
|
-
|
|
11571
|
+
var _iteratorNormalCompletion = true;
|
|
11572
|
+
var _didIteratorError = false;
|
|
11573
|
+
var _iteratorError = undefined;
|
|
11591
11574
|
|
|
11592
11575
|
try {
|
|
11593
|
-
for (_iterator.
|
|
11576
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11594
11577
|
var item = _step.value;
|
|
11595
11578
|
|
|
11596
11579
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11602,9 +11585,18 @@ function canPlay(url) {
|
|
|
11602
11585
|
}
|
|
11603
11586
|
}
|
|
11604
11587
|
} catch (err) {
|
|
11605
|
-
|
|
11588
|
+
_didIteratorError = true;
|
|
11589
|
+
_iteratorError = err;
|
|
11606
11590
|
} finally {
|
|
11607
|
-
|
|
11591
|
+
try {
|
|
11592
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11593
|
+
_iterator["return"]();
|
|
11594
|
+
}
|
|
11595
|
+
} finally {
|
|
11596
|
+
if (_didIteratorError) {
|
|
11597
|
+
throw _iteratorError;
|
|
11598
|
+
}
|
|
11599
|
+
}
|
|
11608
11600
|
}
|
|
11609
11601
|
|
|
11610
11602
|
return false;
|
|
@@ -11628,12 +11620,14 @@ function canEnablePIP(url) {
|
|
|
11628
11620
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11629
11621
|
}
|
|
11630
11622
|
|
|
11631
|
-
var FilePlayer =
|
|
11623
|
+
var FilePlayer =
|
|
11624
|
+
/*#__PURE__*/
|
|
11625
|
+
function (_Component) {
|
|
11632
11626
|
_inherits(FilePlayer, _Component);
|
|
11633
11627
|
|
|
11634
|
-
var _super = _createSuper(FilePlayer);
|
|
11635
|
-
|
|
11636
11628
|
function FilePlayer() {
|
|
11629
|
+
var _getPrototypeOf2;
|
|
11630
|
+
|
|
11637
11631
|
var _this;
|
|
11638
11632
|
|
|
11639
11633
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11642,7 +11636,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11642
11636
|
_args[_key] = arguments[_key];
|
|
11643
11637
|
}
|
|
11644
11638
|
|
|
11645
|
-
_this =
|
|
11639
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11646
11640
|
|
|
11647
11641
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11648
11642
|
var _this$props;
|
|
@@ -11729,19 +11723,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11729
11723
|
|
|
11730
11724
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11731
11725
|
if (typeof source === 'string') {
|
|
11732
|
-
return
|
|
11726
|
+
return _react["default"].createElement("source", {
|
|
11733
11727
|
key: index,
|
|
11734
11728
|
src: source
|
|
11735
11729
|
});
|
|
11736
11730
|
}
|
|
11737
11731
|
|
|
11738
|
-
return
|
|
11732
|
+
return _react["default"].createElement("source", _extends({
|
|
11739
11733
|
key: index
|
|
11740
11734
|
}, source));
|
|
11741
11735
|
});
|
|
11742
11736
|
|
|
11743
11737
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11744
|
-
return
|
|
11738
|
+
return _react["default"].createElement("track", _extends({
|
|
11745
11739
|
key: index
|
|
11746
11740
|
}, track));
|
|
11747
11741
|
});
|
|
@@ -11779,10 +11773,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11779
11773
|
key: "componentWillUnmount",
|
|
11780
11774
|
value: function componentWillUnmount() {
|
|
11781
11775
|
this.removeListeners(this.player);
|
|
11782
|
-
|
|
11783
|
-
if (this.hls) {
|
|
11784
|
-
this.hls.destroy();
|
|
11785
|
-
}
|
|
11786
11776
|
}
|
|
11787
11777
|
}, {
|
|
11788
11778
|
key: "addListeners",
|
|
@@ -11913,6 +11903,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11913
11903
|
value: function stop() {
|
|
11914
11904
|
this.player.removeAttribute('src');
|
|
11915
11905
|
|
|
11906
|
+
if (this.hls) {
|
|
11907
|
+
this.hls.destroy();
|
|
11908
|
+
}
|
|
11909
|
+
|
|
11916
11910
|
if (this.dash) {
|
|
11917
11911
|
this.dash.reset();
|
|
11918
11912
|
}
|
|
@@ -12024,7 +12018,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12024
12018
|
width: width === 'auto' ? width : '100%',
|
|
12025
12019
|
height: height === 'auto' ? height : '100%'
|
|
12026
12020
|
};
|
|
12027
|
-
return
|
|
12021
|
+
return _react["default"].createElement(Element, _extends({
|
|
12028
12022
|
ref: this.ref,
|
|
12029
12023
|
src: this.getSource(url),
|
|
12030
12024
|
style: style,
|
|
@@ -12114,16 +12108,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12114
12108
|
|
|
12115
12109
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12116
12110
|
|
|
12117
|
-
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); }; }
|
|
12118
|
-
|
|
12119
12111
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12120
12112
|
|
|
12121
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12122
|
-
|
|
12123
|
-
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; } }
|
|
12124
|
-
|
|
12125
12113
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12126
12114
|
|
|
12115
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12116
|
+
|
|
12127
12117
|
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); }
|
|
12128
12118
|
|
|
12129
12119
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12132,12 +12122,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12132
12122
|
|
|
12133
12123
|
var ICON_SIZE = '64px';
|
|
12134
12124
|
|
|
12135
|
-
var Preview =
|
|
12125
|
+
var Preview =
|
|
12126
|
+
/*#__PURE__*/
|
|
12127
|
+
function (_Component) {
|
|
12136
12128
|
_inherits(Preview, _Component);
|
|
12137
12129
|
|
|
12138
|
-
var _super = _createSuper(Preview);
|
|
12139
|
-
|
|
12140
12130
|
function Preview() {
|
|
12131
|
+
var _getPrototypeOf2;
|
|
12132
|
+
|
|
12141
12133
|
var _this;
|
|
12142
12134
|
|
|
12143
12135
|
_classCallCheck(this, Preview);
|
|
@@ -12146,7 +12138,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12146
12138
|
args[_key] = arguments[_key];
|
|
12147
12139
|
}
|
|
12148
12140
|
|
|
12149
|
-
_this =
|
|
12141
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12150
12142
|
|
|
12151
12143
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12152
12144
|
|
|
@@ -12244,15 +12236,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12244
12236
|
}
|
|
12245
12237
|
};
|
|
12246
12238
|
|
|
12247
|
-
var defaultPlayIcon =
|
|
12239
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12248
12240
|
style: styles.shadow,
|
|
12249
12241
|
className: "react-player__shadow"
|
|
12250
|
-
},
|
|
12242
|
+
}, _react["default"].createElement("div", {
|
|
12251
12243
|
style: styles.playIcon,
|
|
12252
12244
|
className: "react-player__play-icon"
|
|
12253
12245
|
}));
|
|
12254
12246
|
|
|
12255
|
-
return
|
|
12247
|
+
return _react["default"].createElement("div", {
|
|
12256
12248
|
style: styles.preview,
|
|
12257
12249
|
className: "react-player__preview",
|
|
12258
12250
|
onClick: onClick
|
|
@@ -12289,12 +12281,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12289
12281
|
|
|
12290
12282
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12291
12283
|
|
|
12292
|
-
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; } } }; }
|
|
12293
|
-
|
|
12294
|
-
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); }
|
|
12295
|
-
|
|
12296
|
-
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; }
|
|
12297
|
-
|
|
12298
12284
|
var PRELOAD_PLAYERS = [{
|
|
12299
12285
|
Player: YouTube_1.YouTube,
|
|
12300
12286
|
configKey: 'youtube',
|
|
@@ -12315,16 +12301,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12315
12301
|
|
|
12316
12302
|
function renderPreloadPlayers(url, controls, config) {
|
|
12317
12303
|
var players = [];
|
|
12318
|
-
|
|
12319
|
-
var
|
|
12320
|
-
|
|
12304
|
+
var _iteratorNormalCompletion = true;
|
|
12305
|
+
var _didIteratorError = false;
|
|
12306
|
+
var _iteratorError = undefined;
|
|
12321
12307
|
|
|
12322
12308
|
try {
|
|
12323
|
-
for (_iterator.
|
|
12309
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12324
12310
|
var player = _step.value;
|
|
12325
12311
|
|
|
12326
12312
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12327
|
-
players.push(
|
|
12313
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12328
12314
|
key: player.Player.displayName,
|
|
12329
12315
|
activePlayer: player.Player,
|
|
12330
12316
|
url: player.url,
|
|
@@ -12336,9 +12322,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12336
12322
|
}
|
|
12337
12323
|
}
|
|
12338
12324
|
} catch (err) {
|
|
12339
|
-
|
|
12325
|
+
_didIteratorError = true;
|
|
12326
|
+
_iteratorError = err;
|
|
12340
12327
|
} finally {
|
|
12341
|
-
|
|
12328
|
+
try {
|
|
12329
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12330
|
+
_iterator["return"]();
|
|
12331
|
+
}
|
|
12332
|
+
} finally {
|
|
12333
|
+
if (_didIteratorError) {
|
|
12334
|
+
throw _iteratorError;
|
|
12335
|
+
}
|
|
12336
|
+
}
|
|
12342
12337
|
}
|
|
12343
12338
|
|
|
12344
12339
|
return players;
|
|
@@ -12462,17 +12457,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12462
12457
|
|
|
12463
12458
|
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); }
|
|
12464
12459
|
|
|
12465
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12466
|
-
|
|
12467
|
-
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."); }
|
|
12460
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12468
12461
|
|
|
12469
|
-
function
|
|
12462
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12470
12463
|
|
|
12471
|
-
function _iterableToArray(iter) { if (
|
|
12464
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12472
12465
|
|
|
12473
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
12474
|
-
|
|
12475
|
-
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; }
|
|
12466
|
+
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; } }
|
|
12476
12467
|
|
|
12477
12468
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12478
12469
|
|
|
@@ -12480,16 +12471,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12480
12471
|
|
|
12481
12472
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12482
12473
|
|
|
12483
|
-
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); }; }
|
|
12484
|
-
|
|
12485
12474
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12486
12475
|
|
|
12487
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12488
|
-
|
|
12489
|
-
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; } }
|
|
12490
|
-
|
|
12491
12476
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12492
12477
|
|
|
12478
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12479
|
+
|
|
12493
12480
|
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); }
|
|
12494
12481
|
|
|
12495
12482
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12499,12 +12486,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12499
12486
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12500
12487
|
var customPlayers = [];
|
|
12501
12488
|
|
|
12502
|
-
var ReactPlayer =
|
|
12489
|
+
var ReactPlayer =
|
|
12490
|
+
/*#__PURE__*/
|
|
12491
|
+
function (_Component) {
|
|
12503
12492
|
_inherits(ReactPlayer, _Component);
|
|
12504
12493
|
|
|
12505
|
-
var _super = _createSuper(ReactPlayer);
|
|
12506
|
-
|
|
12507
12494
|
function ReactPlayer() {
|
|
12495
|
+
var _getPrototypeOf2;
|
|
12496
|
+
|
|
12508
12497
|
var _this;
|
|
12509
12498
|
|
|
12510
12499
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12513,7 +12502,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12513
12502
|
args[_key] = arguments[_key];
|
|
12514
12503
|
}
|
|
12515
12504
|
|
|
12516
|
-
_this =
|
|
12505
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12517
12506
|
|
|
12518
12507
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12519
12508
|
|
|
@@ -12624,7 +12613,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12624
12613
|
key: "renderActivePlayer",
|
|
12625
12614
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12626
12615
|
if (!url) return null;
|
|
12627
|
-
return
|
|
12616
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12628
12617
|
key: activePlayer.displayName,
|
|
12629
12618
|
ref: this.activePlayerRef,
|
|
12630
12619
|
config: this.config,
|
|
@@ -12661,14 +12650,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12661
12650
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12662
12651
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12663
12652
|
|
|
12664
|
-
var preview =
|
|
12653
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12665
12654
|
url: url,
|
|
12666
12655
|
light: light,
|
|
12667
12656
|
playIcon: playIcon,
|
|
12668
12657
|
onClick: this.handleClickPreview
|
|
12669
12658
|
});
|
|
12670
12659
|
|
|
12671
|
-
return
|
|
12660
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12672
12661
|
ref: this.wrapperRef,
|
|
12673
12662
|
style: _objectSpread({}, style, {
|
|
12674
12663
|
width: width,
|
|
@@ -13527,7 +13516,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13527
13516
|
};
|
|
13528
13517
|
|
|
13529
13518
|
var Figure = dynamic(function () {
|
|
13530
|
-
return import('./Figure-
|
|
13519
|
+
return import('./Figure-9f21ef27.js');
|
|
13531
13520
|
}, { ssr: false });
|
|
13532
13521
|
|
|
13533
13522
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -14108,16 +14097,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14108
14097
|
_ref$className = _ref.className,
|
|
14109
14098
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14110
14099
|
|
|
14111
|
-
/*
|
|
14112
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14113
|
-
example:
|
|
14114
|
-
<RelatedTopicDropdown
|
|
14115
|
-
page='/clinical'
|
|
14116
|
-
exclude="clinical"
|
|
14117
|
-
className='mb-3'
|
|
14118
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14119
|
-
subTaxonomies={props.subTaxonomies}
|
|
14120
|
-
/>
|
|
14100
|
+
/*
|
|
14101
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14102
|
+
example:
|
|
14103
|
+
<RelatedTopicDropdown
|
|
14104
|
+
page='/clinical'
|
|
14105
|
+
exclude="clinical"
|
|
14106
|
+
className='mb-3'
|
|
14107
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14108
|
+
subTaxonomies={props.subTaxonomies}
|
|
14109
|
+
/>
|
|
14121
14110
|
*/
|
|
14122
14111
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14123
14112
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14155,25 +14144,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14155
14144
|
}
|
|
14156
14145
|
};
|
|
14157
14146
|
|
|
14158
|
-
/*
|
|
14159
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14160
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14161
|
-
|
|
14162
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14163
|
-
|
|
14164
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14165
|
-
|
|
14166
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14167
|
-
...,
|
|
14168
|
-
'ancestor': parent->parent->identifier,
|
|
14169
|
-
'parent': parent->identifier,
|
|
14170
|
-
'path': identifier
|
|
14171
|
-
},
|
|
14172
|
-
'document_group': documentGroup-> {
|
|
14173
|
-
name,
|
|
14174
|
-
'parent': parent->identifier,
|
|
14175
|
-
'path': identifier.current
|
|
14176
|
-
}
|
|
14147
|
+
/*
|
|
14148
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14149
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14150
|
+
|
|
14151
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14152
|
+
|
|
14153
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14154
|
+
|
|
14155
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14156
|
+
...,
|
|
14157
|
+
'ancestor': parent->parent->identifier,
|
|
14158
|
+
'parent': parent->identifier,
|
|
14159
|
+
'path': identifier
|
|
14160
|
+
},
|
|
14161
|
+
'document_group': documentGroup-> {
|
|
14162
|
+
name,
|
|
14163
|
+
'parent': parent->identifier,
|
|
14164
|
+
'path': identifier.current
|
|
14165
|
+
}
|
|
14177
14166
|
*/
|
|
14178
14167
|
|
|
14179
14168
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15081,34 +15070,34 @@ var GridHero = function GridHero(props) {
|
|
|
15081
15070
|
);
|
|
15082
15071
|
};
|
|
15083
15072
|
|
|
15084
|
-
/*
|
|
15085
|
-
Sample query
|
|
15086
|
-
let references = ''
|
|
15087
|
-
if(article.taxonomyMapping.length > 0){
|
|
15088
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15089
|
-
references = references + `references('${ref._ref}') `
|
|
15090
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15091
|
-
references = references + ` && `
|
|
15092
|
-
}
|
|
15093
|
-
})
|
|
15094
|
-
}
|
|
15095
|
-
|
|
15096
|
-
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] {
|
|
15097
|
-
...,
|
|
15098
|
-
title,
|
|
15099
|
-
summary,
|
|
15100
|
-
thumbnail,
|
|
15101
|
-
url,
|
|
15102
|
-
published,
|
|
15103
|
-
authorMapping[]->,
|
|
15104
|
-
contentCategory->
|
|
15105
|
-
}`
|
|
15106
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15107
|
-
|
|
15108
|
-
Sample usage
|
|
15109
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15110
|
-
|
|
15111
|
-
|
|
15073
|
+
/*
|
|
15074
|
+
Sample query
|
|
15075
|
+
let references = ''
|
|
15076
|
+
if(article.taxonomyMapping.length > 0){
|
|
15077
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15078
|
+
references = references + `references('${ref._ref}') `
|
|
15079
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15080
|
+
references = references + ` && `
|
|
15081
|
+
}
|
|
15082
|
+
})
|
|
15083
|
+
}
|
|
15084
|
+
|
|
15085
|
+
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] {
|
|
15086
|
+
...,
|
|
15087
|
+
title,
|
|
15088
|
+
summary,
|
|
15089
|
+
thumbnail,
|
|
15090
|
+
url,
|
|
15091
|
+
published,
|
|
15092
|
+
authorMapping[]->,
|
|
15093
|
+
contentCategory->
|
|
15094
|
+
}`
|
|
15095
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15096
|
+
|
|
15097
|
+
Sample usage
|
|
15098
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15099
|
+
|
|
15100
|
+
|
|
15112
15101
|
*/
|
|
15113
15102
|
var RelatedContent = function RelatedContent(props) {
|
|
15114
15103
|
var client = props.client,
|
|
@@ -15175,21 +15164,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15175
15164
|
);
|
|
15176
15165
|
};
|
|
15177
15166
|
|
|
15178
|
-
/*
|
|
15179
|
-
Example usage - targetedonc.com/latest-conference
|
|
15180
|
-
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] {
|
|
15181
|
-
...,
|
|
15182
|
-
title,
|
|
15183
|
-
summary,
|
|
15184
|
-
thumbnail,
|
|
15185
|
-
url,
|
|
15186
|
-
published,
|
|
15187
|
-
documentGroup->,
|
|
15188
|
-
contentCategory->,
|
|
15189
|
-
'pageNumber': ${currentPage}
|
|
15190
|
-
}`
|
|
15191
|
-
|
|
15192
|
-
const posts = await client.fetch(query, params)
|
|
15167
|
+
/*
|
|
15168
|
+
Example usage - targetedonc.com/latest-conference
|
|
15169
|
+
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] {
|
|
15170
|
+
...,
|
|
15171
|
+
title,
|
|
15172
|
+
summary,
|
|
15173
|
+
thumbnail,
|
|
15174
|
+
url,
|
|
15175
|
+
published,
|
|
15176
|
+
documentGroup->,
|
|
15177
|
+
contentCategory->,
|
|
15178
|
+
'pageNumber': ${currentPage}
|
|
15179
|
+
}`
|
|
15180
|
+
|
|
15181
|
+
const posts = await client.fetch(query, params)
|
|
15193
15182
|
*/
|
|
15194
15183
|
|
|
15195
15184
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16337,7 +16326,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16337
16326
|
var isScrollDown = true;
|
|
16338
16327
|
|
|
16339
16328
|
var _activeArticle$title = activeArticle.title,
|
|
16340
|
-
title = _activeArticle$title === undefined ? '' : _activeArticle$title,
|
|
16341
16329
|
_activeArticle$summar = activeArticle.summary,
|
|
16342
16330
|
summary = _activeArticle$summar === undefined ? '' : _activeArticle$summar;
|
|
16343
16331
|
|
|
@@ -16476,14 +16464,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16476
16464
|
if (window.googletag && googletag.pubadsReady) {
|
|
16477
16465
|
var slots = googletag.pubads().getSlots();
|
|
16478
16466
|
slots.forEach(function (slot) {
|
|
16467
|
+
var pos = slot.getTargeting('pos');
|
|
16479
16468
|
slot.clearTargeting();
|
|
16480
16469
|
_Object$keys(_targeting).forEach(function (key) {
|
|
16481
16470
|
slot.setTargeting(key, _targeting[key]);
|
|
16482
16471
|
});
|
|
16472
|
+
slot.setTargeting('pos', pos);
|
|
16483
16473
|
});
|
|
16484
|
-
|
|
16485
|
-
googletag.pubads().refresh();
|
|
16486
|
-
});
|
|
16474
|
+
lib_3.refresh();
|
|
16487
16475
|
}
|
|
16488
16476
|
});
|
|
16489
16477
|
}
|
|
@@ -16577,15 +16565,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16577
16565
|
|
|
16578
16566
|
if (prevUrl && prevUrl.length) {
|
|
16579
16567
|
return React__default.createElement(
|
|
16580
|
-
|
|
16581
|
-
{
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
queueData.map(function (article, index) {
|
|
16586
|
-
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16587
|
-
})
|
|
16588
|
-
)
|
|
16568
|
+
InfiniteScroll,
|
|
16569
|
+
{ dataLength: queueData.length, next: loadmore, scrollThreshold: 0.8, hasMore: true },
|
|
16570
|
+
queueData.map(function (article, index) {
|
|
16571
|
+
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16572
|
+
})
|
|
16589
16573
|
);
|
|
16590
16574
|
} else {
|
|
16591
16575
|
return null;
|
|
@@ -16593,27 +16577,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16593
16577
|
};
|
|
16594
16578
|
|
|
16595
16579
|
var KMTracker = function KMTracker(props) {
|
|
16596
|
-
|
|
16580
|
+
var id = props.id;
|
|
16597
16581
|
|
|
16598
|
-
|
|
16582
|
+
if (document && id) {
|
|
16599
16583
|
(function () {
|
|
16600
|
-
|
|
16584
|
+
var ecnJquery = document.createElement('script');
|
|
16601
16585
|
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
|
|
16586
|
+
ecnJquery.type = 'text/javascript';
|
|
16587
|
+
ecnJquery.async = true;
|
|
16588
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16605
16589
|
|
|
16606
|
-
|
|
16590
|
+
var ecnScript = document.createElement('script');
|
|
16607
16591
|
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16592
|
+
ecnScript.type = 'text/javascript';
|
|
16593
|
+
ecnScript.async = true;
|
|
16594
|
+
ecnScript.id = 'km-tracker';
|
|
16595
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16612
16596
|
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
|
|
16597
|
+
document.head.appendChild(ecnJquery);
|
|
16598
|
+
document.head.appendChild(ecnScript);
|
|
16599
|
+
})();
|
|
16600
|
+
}
|
|
16617
16601
|
};
|
|
16618
16602
|
|
|
16619
16603
|
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 };
|