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