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