@mjhls/mjh-framework 1.0.268 → 1.0.269
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/ADInfeed-0da6acd4.js +47 -0
- package/dist/cjs/{AdSlot-1c436555.js → AdSlot-93d892f5.js} +5 -1
- package/dist/cjs/DeckContent.js +12 -27
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{GridContent-e459f9e3.js → GridContent-524f2ad8.js} +4 -16
- package/dist/cjs/GridContent.js +4 -3
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-a0314a82.js → Normal-6c0b2764.js} +31 -31
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/{YoutubeGroup-94e6efea.js → YoutubeGroup-78e6bcc3.js} +5 -437
- package/dist/cjs/YoutubeGroup.js +2 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +558 -538
- package/dist/esm/ADInfeed-e546ea87.js +42 -0
- package/dist/esm/{AdSlot-5b019415.js → AdSlot-9b4ae186.js} +5 -1
- package/dist/esm/DeckContent.js +12 -27
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{GridContent-be36b0aa.js → GridContent-f4fd38a7.js} +3 -15
- package/dist/esm/GridContent.js +4 -3
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-86e740c0.js → Normal-b7aa5dce.js} +31 -31
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/{YoutubeGroup-f59297bb.js → YoutubeGroup-a87b8967.js} +5 -437
- package/dist/esm/YoutubeGroup.js +2 -1
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/index.js +562 -542
- package/package.json +103 -103
package/dist/cjs/index.js
CHANGED
|
@@ -26,21 +26,23 @@ var Link = _interopDefault(require('next/link'));
|
|
|
26
26
|
var Router = require('next/router');
|
|
27
27
|
var Router__default = _interopDefault(Router);
|
|
28
28
|
require('react-dom');
|
|
29
|
-
var index$1 = require('./index-
|
|
29
|
+
var index$1 = require('./index-39beccb3.js');
|
|
30
30
|
require('./index-fa0fb52c.js');
|
|
31
31
|
var entities = require('./entities-310b46ee.js');
|
|
32
32
|
var slicedToArray = require('./slicedToArray-e38fb29d.js');
|
|
33
|
-
var AdSlot = require('./AdSlot-
|
|
33
|
+
var AdSlot = require('./AdSlot-93d892f5.js');
|
|
34
34
|
require('./promise-b96c61f8.js');
|
|
35
|
+
require('./ADInfeed-0da6acd4.js');
|
|
35
36
|
var DeckContent = require('./DeckContent.js');
|
|
36
37
|
require('./get-1f91592f.js');
|
|
37
|
-
var GridContent = require('./GridContent-
|
|
38
|
+
var GridContent = require('./GridContent-524f2ad8.js');
|
|
38
39
|
var DeckQueue = require('./DeckQueue.js');
|
|
39
40
|
require('react-bootstrap/Media');
|
|
40
41
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
41
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
42
|
+
var TaxonomyCard = require('./TaxonomyCard-b5074d6e.js');
|
|
42
43
|
var GroupDeck = require('./GroupDeck.js');
|
|
43
|
-
var YoutubeGroup = require('./YoutubeGroup-
|
|
44
|
+
var YoutubeGroup = require('./YoutubeGroup-78e6bcc3.js');
|
|
45
|
+
require('smoothscroll-polyfill');
|
|
44
46
|
var reactBootstrap = require('react-bootstrap');
|
|
45
47
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
46
48
|
var index_esm = require('./index.esm-340d3792.js');
|
|
@@ -52,7 +54,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
52
54
|
require('react-bootstrap/Badge');
|
|
53
55
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
54
56
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
55
|
-
var TemplateNormal = require('./Normal-
|
|
57
|
+
var TemplateNormal = require('./Normal-6c0b2764.js');
|
|
56
58
|
require('react-bootstrap/ListGroup');
|
|
57
59
|
var Head = _interopDefault(require('next/head'));
|
|
58
60
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -3289,21 +3291,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3289
3291
|
);
|
|
3290
3292
|
};
|
|
3291
3293
|
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3294
|
+
// do not edit .js files directly - edit src/index.jst
|
|
3295
|
+
|
|
3296
|
+
|
|
3295
3297
|
|
|
3296
3298
|
var fastDeepEqual = function equal(a, b) {
|
|
3297
3299
|
if (a === b) return true;
|
|
3298
3300
|
|
|
3299
3301
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3300
|
-
|
|
3301
|
-
, arrB = isArray(b)
|
|
3302
|
-
, i
|
|
3303
|
-
, length
|
|
3304
|
-
, key;
|
|
3302
|
+
if (a.constructor !== b.constructor) return false;
|
|
3305
3303
|
|
|
3306
|
-
|
|
3304
|
+
var length, i, keys;
|
|
3305
|
+
if (Array.isArray(a)) {
|
|
3307
3306
|
length = a.length;
|
|
3308
3307
|
if (length != b.length) return false;
|
|
3309
3308
|
for (i = length; i-- !== 0;)
|
|
@@ -3311,35 +3310,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3311
3310
|
return true;
|
|
3312
3311
|
}
|
|
3313
3312
|
|
|
3314
|
-
if (arrA != arrB) return false;
|
|
3315
3313
|
|
|
3316
|
-
var dateA = a instanceof Date
|
|
3317
|
-
, dateB = b instanceof Date;
|
|
3318
|
-
if (dateA != dateB) return false;
|
|
3319
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3320
3314
|
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
if (
|
|
3324
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3315
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
3316
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
3317
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
3325
3318
|
|
|
3326
|
-
|
|
3319
|
+
keys = Object.keys(a);
|
|
3327
3320
|
length = keys.length;
|
|
3328
|
-
|
|
3329
|
-
if (length !== keyList(b).length)
|
|
3330
|
-
return false;
|
|
3321
|
+
if (length !== Object.keys(b).length) return false;
|
|
3331
3322
|
|
|
3332
3323
|
for (i = length; i-- !== 0;)
|
|
3333
|
-
if (!
|
|
3324
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
3334
3325
|
|
|
3335
3326
|
for (i = length; i-- !== 0;) {
|
|
3336
|
-
key = keys[i];
|
|
3327
|
+
var key = keys[i];
|
|
3328
|
+
|
|
3337
3329
|
if (!equal(a[key], b[key])) return false;
|
|
3338
3330
|
}
|
|
3339
3331
|
|
|
3340
3332
|
return true;
|
|
3341
3333
|
}
|
|
3342
3334
|
|
|
3335
|
+
// true if both NaN, false otherwise
|
|
3343
3336
|
return a!==a && b!==b;
|
|
3344
3337
|
};
|
|
3345
3338
|
|
|
@@ -4362,7 +4355,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4362
4355
|
var base = '', array = false, braces = ['{', '}'];
|
|
4363
4356
|
|
|
4364
4357
|
// Make Array say that they are Array
|
|
4365
|
-
if (isArray
|
|
4358
|
+
if (isArray(value)) {
|
|
4366
4359
|
array = true;
|
|
4367
4360
|
braces = ['[', ']'];
|
|
4368
4361
|
}
|
|
@@ -4541,7 +4534,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4541
4534
|
|
|
4542
4535
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4543
4536
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4544
|
-
function isArray
|
|
4537
|
+
function isArray(ar) {
|
|
4545
4538
|
return Array.isArray(ar);
|
|
4546
4539
|
}
|
|
4547
4540
|
|
|
@@ -4668,7 +4661,7 @@ var util = {
|
|
|
4668
4661
|
isNullOrUndefined: isNullOrUndefined,
|
|
4669
4662
|
isNull: isNull,
|
|
4670
4663
|
isBoolean: isBoolean,
|
|
4671
|
-
isArray: isArray
|
|
4664
|
+
isArray: isArray,
|
|
4672
4665
|
inspect: inspect,
|
|
4673
4666
|
deprecate: deprecate,
|
|
4674
4667
|
format: format,
|
|
@@ -5335,199 +5328,235 @@ module.exports = exports['default'];
|
|
|
5335
5328
|
|
|
5336
5329
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5337
5330
|
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
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; };
|
|
5331
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
5341
5332
|
|
|
5342
5333
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5343
5334
|
|
|
5344
|
-
function
|
|
5335
|
+
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); } }
|
|
5336
|
+
|
|
5337
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5338
|
+
|
|
5339
|
+
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); }; }
|
|
5340
|
+
|
|
5341
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5345
5342
|
|
|
5346
|
-
function
|
|
5343
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5344
|
+
|
|
5345
|
+
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; } }
|
|
5346
|
+
|
|
5347
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5348
|
+
|
|
5349
|
+
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); }
|
|
5350
|
+
|
|
5351
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5352
|
+
|
|
5353
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5354
|
+
|
|
5355
|
+
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; }
|
|
5347
5356
|
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
*
|
|
5351
|
-
*
|
|
5352
|
-
* @param {Object}
|
|
5357
|
+
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; }
|
|
5358
|
+
/**
|
|
5359
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5360
|
+
*
|
|
5361
|
+
* @param {Object} prevProps
|
|
5362
|
+
* @param {Object} props
|
|
5353
5363
|
*/
|
|
5364
|
+
|
|
5354
5365
|
function shouldUpdateVideo(prevProps, props) {
|
|
5355
5366
|
// A changing video should always trigger an update
|
|
5356
5367
|
if (prevProps.videoId !== props.videoId) {
|
|
5357
5368
|
return true;
|
|
5358
|
-
}
|
|
5359
|
-
|
|
5360
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5369
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
5361
5370
|
// update.
|
|
5371
|
+
|
|
5372
|
+
|
|
5362
5373
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5363
5374
|
var vars = props.opts.playerVars || {};
|
|
5364
|
-
|
|
5365
5375
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5366
5376
|
}
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
*
|
|
5370
|
-
*
|
|
5371
|
-
*
|
|
5372
|
-
*
|
|
5373
|
-
* @param {Object} opts
|
|
5377
|
+
/**
|
|
5378
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
5379
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5380
|
+
* player reset is necessary.
|
|
5381
|
+
*
|
|
5382
|
+
* @param {Object} opts
|
|
5374
5383
|
*/
|
|
5384
|
+
|
|
5385
|
+
|
|
5375
5386
|
function filterResetOptions(opts) {
|
|
5376
|
-
return
|
|
5377
|
-
playerVars:
|
|
5387
|
+
return _objectSpread({}, opts, {
|
|
5388
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
5378
5389
|
autoplay: 0,
|
|
5379
5390
|
start: 0,
|
|
5380
5391
|
end: 0
|
|
5381
5392
|
})
|
|
5382
5393
|
});
|
|
5383
5394
|
}
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
*
|
|
5387
|
-
*
|
|
5388
|
-
*
|
|
5389
|
-
*
|
|
5390
|
-
*
|
|
5391
|
-
* @param {Object}
|
|
5392
|
-
* @param {Object} props
|
|
5395
|
+
/**
|
|
5396
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5397
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5398
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5399
|
+
* those.
|
|
5400
|
+
*
|
|
5401
|
+
* @param {Object} prevProps
|
|
5402
|
+
* @param {Object} props
|
|
5393
5403
|
*/
|
|
5404
|
+
|
|
5405
|
+
|
|
5394
5406
|
function shouldResetPlayer(prevProps, props) {
|
|
5395
5407
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5396
5408
|
}
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
*
|
|
5400
|
-
*
|
|
5401
|
-
* @param {Object}
|
|
5402
|
-
* @param {Object} props
|
|
5409
|
+
/**
|
|
5410
|
+
* Check whether a props change should result in an id or className update.
|
|
5411
|
+
*
|
|
5412
|
+
* @param {Object} prevProps
|
|
5413
|
+
* @param {Object} props
|
|
5403
5414
|
*/
|
|
5415
|
+
|
|
5416
|
+
|
|
5404
5417
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5405
5418
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5406
5419
|
}
|
|
5407
5420
|
|
|
5408
|
-
var YouTube = function (_React$Component) {
|
|
5421
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
5409
5422
|
_inherits(YouTube, _React$Component);
|
|
5410
5423
|
|
|
5424
|
+
var _super = _createSuper(YouTube);
|
|
5425
|
+
|
|
5426
|
+
/**
|
|
5427
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5428
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5429
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5430
|
+
*/
|
|
5411
5431
|
function YouTube(props) {
|
|
5432
|
+
var _this;
|
|
5433
|
+
|
|
5412
5434
|
_classCallCheck(this, YouTube);
|
|
5413
5435
|
|
|
5414
|
-
|
|
5436
|
+
_this = _super.call(this, props);
|
|
5415
5437
|
|
|
5416
|
-
_this
|
|
5438
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
5417
5439
|
return _this.props.onReady(event);
|
|
5418
|
-
};
|
|
5440
|
+
});
|
|
5419
5441
|
|
|
5420
|
-
_this
|
|
5442
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
5421
5443
|
return _this.props.onError(event);
|
|
5422
|
-
};
|
|
5444
|
+
});
|
|
5423
5445
|
|
|
5424
|
-
_this
|
|
5446
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
5425
5447
|
_this.props.onStateChange(event);
|
|
5426
|
-
switch (event.data) {
|
|
5427
5448
|
|
|
5449
|
+
switch (event.data) {
|
|
5428
5450
|
case YouTube.PlayerState.ENDED:
|
|
5429
5451
|
_this.props.onEnd(event);
|
|
5452
|
+
|
|
5430
5453
|
break;
|
|
5431
5454
|
|
|
5432
5455
|
case YouTube.PlayerState.PLAYING:
|
|
5433
5456
|
_this.props.onPlay(event);
|
|
5457
|
+
|
|
5434
5458
|
break;
|
|
5435
5459
|
|
|
5436
5460
|
case YouTube.PlayerState.PAUSED:
|
|
5437
5461
|
_this.props.onPause(event);
|
|
5462
|
+
|
|
5438
5463
|
break;
|
|
5439
5464
|
}
|
|
5440
|
-
};
|
|
5465
|
+
});
|
|
5441
5466
|
|
|
5442
|
-
_this
|
|
5467
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
5443
5468
|
return _this.props.onPlaybackRateChange(event);
|
|
5444
|
-
};
|
|
5469
|
+
});
|
|
5445
5470
|
|
|
5446
|
-
_this
|
|
5471
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
5447
5472
|
return _this.props.onPlaybackQualityChange(event);
|
|
5448
|
-
};
|
|
5473
|
+
});
|
|
5449
5474
|
|
|
5450
|
-
_this
|
|
5475
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
5451
5476
|
// do not attempt to create a player server-side, it won't work
|
|
5452
|
-
if (typeof document === 'undefined') return;
|
|
5453
|
-
|
|
5454
|
-
var playerOpts =
|
|
5477
|
+
if (typeof document === 'undefined') return; // create player
|
|
5478
|
+
|
|
5479
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
5455
5480
|
// preload the `videoId` video if one is already given
|
|
5456
5481
|
videoId: _this.props.videoId
|
|
5457
5482
|
});
|
|
5458
|
-
|
|
5459
|
-
// attach event handlers
|
|
5483
|
+
|
|
5484
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
5485
|
+
|
|
5460
5486
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5487
|
+
|
|
5461
5488
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5489
|
+
|
|
5462
5490
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5491
|
+
|
|
5463
5492
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5493
|
+
|
|
5464
5494
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5465
|
-
};
|
|
5495
|
+
});
|
|
5466
5496
|
|
|
5467
|
-
_this
|
|
5497
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
5468
5498
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5469
|
-
};
|
|
5499
|
+
});
|
|
5470
5500
|
|
|
5471
|
-
_this
|
|
5501
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
5472
5502
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5473
5503
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5474
5504
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5475
5505
|
});
|
|
5476
|
-
};
|
|
5506
|
+
});
|
|
5477
5507
|
|
|
5478
|
-
_this
|
|
5508
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
5479
5509
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5480
5510
|
_this.internalPlayer.stopVideo();
|
|
5511
|
+
|
|
5481
5512
|
return;
|
|
5482
|
-
}
|
|
5513
|
+
} // set queueing options
|
|
5514
|
+
|
|
5483
5515
|
|
|
5484
|
-
// set queueing options
|
|
5485
5516
|
var autoplay = false;
|
|
5486
5517
|
var opts = {
|
|
5487
5518
|
videoId: _this.props.videoId
|
|
5488
5519
|
};
|
|
5520
|
+
|
|
5489
5521
|
if ('playerVars' in _this.props.opts) {
|
|
5490
5522
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5523
|
+
|
|
5491
5524
|
if ('start' in _this.props.opts.playerVars) {
|
|
5492
5525
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5493
5526
|
}
|
|
5527
|
+
|
|
5494
5528
|
if ('end' in _this.props.opts.playerVars) {
|
|
5495
5529
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5496
5530
|
}
|
|
5497
|
-
}
|
|
5531
|
+
} // if autoplay is enabled loadVideoById
|
|
5532
|
+
|
|
5498
5533
|
|
|
5499
|
-
// if autoplay is enabled loadVideoById
|
|
5500
5534
|
if (autoplay) {
|
|
5501
5535
|
_this.internalPlayer.loadVideoById(opts);
|
|
5536
|
+
|
|
5502
5537
|
return;
|
|
5503
|
-
}
|
|
5504
|
-
|
|
5538
|
+
} // default behaviour just cues the video
|
|
5539
|
+
|
|
5540
|
+
|
|
5505
5541
|
_this.internalPlayer.cueVideoById(opts);
|
|
5506
|
-
};
|
|
5542
|
+
});
|
|
5507
5543
|
|
|
5508
|
-
_this
|
|
5544
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
5509
5545
|
_this.container = container;
|
|
5510
|
-
};
|
|
5546
|
+
});
|
|
5511
5547
|
|
|
5512
5548
|
_this.container = null;
|
|
5513
5549
|
_this.internalPlayer = null;
|
|
5514
5550
|
return _this;
|
|
5515
5551
|
}
|
|
5516
5552
|
|
|
5517
|
-
/**
|
|
5518
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5519
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5520
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5521
|
-
*/
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
5553
|
_createClass(YouTube, [{
|
|
5525
|
-
key:
|
|
5554
|
+
key: "componentDidMount",
|
|
5526
5555
|
value: function componentDidMount() {
|
|
5527
5556
|
this.createPlayer();
|
|
5528
5557
|
}
|
|
5529
5558
|
}, {
|
|
5530
|
-
key:
|
|
5559
|
+
key: "componentDidUpdate",
|
|
5531
5560
|
value: function componentDidUpdate(prevProps) {
|
|
5532
5561
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5533
5562
|
this.updatePlayer();
|
|
@@ -5542,112 +5571,58 @@ var YouTube = function (_React$Component) {
|
|
|
5542
5571
|
}
|
|
5543
5572
|
}
|
|
5544
5573
|
}, {
|
|
5545
|
-
key:
|
|
5574
|
+
key: "componentWillUnmount",
|
|
5546
5575
|
value: function componentWillUnmount() {
|
|
5547
|
-
/**
|
|
5548
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5549
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5550
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5551
|
-
* this method isn't quick enough to reset the container element.
|
|
5576
|
+
/**
|
|
5577
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
5578
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5579
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5580
|
+
* this method isn't quick enough to reset the container element.
|
|
5552
5581
|
*/
|
|
5553
5582
|
this.internalPlayer.destroy();
|
|
5554
5583
|
}
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
*
|
|
5558
|
-
*
|
|
5559
|
-
*
|
|
5560
|
-
* @param {Object} target - player object
|
|
5561
|
-
*/
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
/**
|
|
5565
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5566
|
-
*
|
|
5567
|
-
* @param {Object} event
|
|
5568
|
-
* @param {Integer} data - error type
|
|
5569
|
-
* @param {Object} target - player object
|
|
5570
|
-
*/
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
/**
|
|
5574
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5575
|
-
*
|
|
5576
|
-
* @param {Object} event
|
|
5577
|
-
* @param {Integer} data - status change type
|
|
5578
|
-
* @param {Object} target - actual YT player
|
|
5579
|
-
*/
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
/**
|
|
5583
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5584
|
-
*
|
|
5585
|
-
* @param {Object} event
|
|
5586
|
-
* @param {Float} data - playback rate
|
|
5587
|
-
* @param {Object} target - actual YT player
|
|
5588
|
-
*/
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
/**
|
|
5592
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5593
|
-
*
|
|
5594
|
-
* @param {Object} event
|
|
5595
|
-
* @param {String} data - playback quality
|
|
5596
|
-
* @param {Object} target - actual YT player
|
|
5597
|
-
*/
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
/**
|
|
5601
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5602
|
-
*/
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
/**
|
|
5606
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5607
|
-
*/
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
/**
|
|
5611
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
5612
|
-
* React should update this automatically but since the Youtube Player API
|
|
5613
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5614
|
-
*/
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
/**
|
|
5618
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
5619
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5620
|
-
* Youtube Player API methods to update the video.
|
|
5584
|
+
/**
|
|
5585
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5586
|
+
*
|
|
5587
|
+
* @param {Object} event
|
|
5588
|
+
* @param {Object} target - player object
|
|
5621
5589
|
*/
|
|
5622
5590
|
|
|
5623
5591
|
}, {
|
|
5624
|
-
key:
|
|
5592
|
+
key: "render",
|
|
5625
5593
|
value: function render() {
|
|
5626
|
-
return React__default.createElement(
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5594
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
5595
|
+
className: this.props.containerClassName
|
|
5596
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5597
|
+
id: this.props.id,
|
|
5598
|
+
className: this.props.className,
|
|
5599
|
+
ref: this.refContainer
|
|
5600
|
+
}));
|
|
5631
5601
|
}
|
|
5632
5602
|
}]);
|
|
5633
5603
|
|
|
5634
5604
|
return YouTube;
|
|
5635
5605
|
}(React__default.Component);
|
|
5636
5606
|
|
|
5607
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
5608
|
+
UNSTARTED: -1,
|
|
5609
|
+
ENDED: 0,
|
|
5610
|
+
PLAYING: 1,
|
|
5611
|
+
PAUSED: 2,
|
|
5612
|
+
BUFFERING: 3,
|
|
5613
|
+
CUED: 5
|
|
5614
|
+
});
|
|
5615
|
+
|
|
5637
5616
|
YouTube.propTypes = {
|
|
5638
5617
|
videoId: PropTypes.string,
|
|
5639
|
-
|
|
5640
5618
|
// custom ID for player element
|
|
5641
5619
|
id: PropTypes.string,
|
|
5642
|
-
|
|
5643
5620
|
// custom class name for player element
|
|
5644
5621
|
className: PropTypes.string,
|
|
5645
5622
|
// custom class name for player container element
|
|
5646
5623
|
containerClassName: PropTypes.string,
|
|
5647
|
-
|
|
5648
5624
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5649
5625
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5650
|
-
|
|
5651
5626
|
// event subscriptions
|
|
5652
5627
|
onReady: PropTypes.func,
|
|
5653
5628
|
onError: PropTypes.func,
|
|
@@ -5659,6 +5634,7 @@ YouTube.propTypes = {
|
|
|
5659
5634
|
onPlaybackQualityChange: PropTypes.func
|
|
5660
5635
|
};
|
|
5661
5636
|
YouTube.defaultProps = {
|
|
5637
|
+
videoId: null,
|
|
5662
5638
|
id: null,
|
|
5663
5639
|
className: null,
|
|
5664
5640
|
opts: {},
|
|
@@ -5672,14 +5648,6 @@ YouTube.defaultProps = {
|
|
|
5672
5648
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5673
5649
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5674
5650
|
};
|
|
5675
|
-
YouTube.PlayerState = {
|
|
5676
|
-
UNSTARTED: -1,
|
|
5677
|
-
ENDED: 0,
|
|
5678
|
-
PLAYING: 1,
|
|
5679
|
-
PAUSED: 2,
|
|
5680
|
-
BUFFERING: 3,
|
|
5681
|
-
CUED: 5
|
|
5682
|
-
};
|
|
5683
5651
|
|
|
5684
5652
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5685
5653
|
var url = _ref.url;
|
|
@@ -6703,8 +6671,8 @@ var window_1 = win;
|
|
|
6703
6671
|
|
|
6704
6672
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6705
6673
|
|
|
6706
|
-
function _extends
|
|
6707
|
-
_extends
|
|
6674
|
+
function _extends() {
|
|
6675
|
+
_extends = Object.assign || function (target) {
|
|
6708
6676
|
for (var i = 1; i < arguments.length; i++) {
|
|
6709
6677
|
var source = arguments[i];
|
|
6710
6678
|
|
|
@@ -6718,7 +6686,7 @@ function _extends$1() {
|
|
|
6718
6686
|
return target;
|
|
6719
6687
|
};
|
|
6720
6688
|
|
|
6721
|
-
return _extends
|
|
6689
|
+
return _extends.apply(this, arguments);
|
|
6722
6690
|
}
|
|
6723
6691
|
|
|
6724
6692
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6727,7 +6695,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6727
6695
|
subClass.__proto__ = superClass;
|
|
6728
6696
|
}
|
|
6729
6697
|
|
|
6730
|
-
function _assertThisInitialized(self) {
|
|
6698
|
+
function _assertThisInitialized$1(self) {
|
|
6731
6699
|
if (self === void 0) {
|
|
6732
6700
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6733
6701
|
}
|
|
@@ -6737,8 +6705,8 @@ function _assertThisInitialized(self) {
|
|
|
6737
6705
|
|
|
6738
6706
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6739
6707
|
|
|
6740
|
-
function _extends$1
|
|
6741
|
-
_extends$1
|
|
6708
|
+
function _extends$1() {
|
|
6709
|
+
_extends$1 = Object.assign || function (target) {
|
|
6742
6710
|
for (var i = 1; i < arguments.length; i++) {
|
|
6743
6711
|
var source = arguments[i];
|
|
6744
6712
|
|
|
@@ -6752,7 +6720,7 @@ function _extends$1$1() {
|
|
|
6752
6720
|
return target;
|
|
6753
6721
|
};
|
|
6754
6722
|
|
|
6755
|
-
return _extends$1
|
|
6723
|
+
return _extends$1.apply(this, arguments);
|
|
6756
6724
|
}
|
|
6757
6725
|
|
|
6758
6726
|
var version$1 = "1.7.1";
|
|
@@ -6760,7 +6728,7 @@ var version$1 = "1.7.1";
|
|
|
6760
6728
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6761
6729
|
var version$1$1 = "1.2.0";
|
|
6762
6730
|
|
|
6763
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6731
|
+
var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6764
6732
|
return typeof obj;
|
|
6765
6733
|
} : function (obj) {
|
|
6766
6734
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6895,7 +6863,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6895
6863
|
|
|
6896
6864
|
var qs = '';
|
|
6897
6865
|
|
|
6898
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6866
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
|
|
6899
6867
|
qs = getQueryString(queryParams);
|
|
6900
6868
|
}
|
|
6901
6869
|
|
|
@@ -7129,7 +7097,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7129
7097
|
el.style.width = '100%';
|
|
7130
7098
|
el.style.height = '100%';
|
|
7131
7099
|
|
|
7132
|
-
var responsive = _extends$1
|
|
7100
|
+
var responsive = _extends$1({
|
|
7133
7101
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7134
7102
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7135
7103
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7814,7 +7782,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7814
7782
|
|
|
7815
7783
|
|
|
7816
7784
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7817
|
-
var params = _extends$1
|
|
7785
|
+
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7818
7786
|
|
|
7819
7787
|
var Promise = params.Promise,
|
|
7820
7788
|
onSuccess = params.onSuccess,
|
|
@@ -7956,7 +7924,7 @@ function (_React$Component) {
|
|
|
7956
7924
|
_this.refNode = ref;
|
|
7957
7925
|
};
|
|
7958
7926
|
|
|
7959
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7927
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
|
|
7960
7928
|
return _this;
|
|
7961
7929
|
}
|
|
7962
7930
|
/**
|
|
@@ -7977,7 +7945,7 @@ function (_React$Component) {
|
|
|
7977
7945
|
var userSuccess = this.props.onSuccess;
|
|
7978
7946
|
var userFailure = this.props.onFailure;
|
|
7979
7947
|
|
|
7980
|
-
var options = _extends
|
|
7948
|
+
var options = _extends({}, this.props, {
|
|
7981
7949
|
refNode: this.refNode,
|
|
7982
7950
|
refNodeInsert: 'append',
|
|
7983
7951
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8286,7 +8254,7 @@ function (_React$Component) {
|
|
|
8286
8254
|
;
|
|
8287
8255
|
|
|
8288
8256
|
_proto.render = function render() {
|
|
8289
|
-
var props = _extends
|
|
8257
|
+
var props = _extends({
|
|
8290
8258
|
className: 'brightcove-react-player-loader'
|
|
8291
8259
|
}, this.props.attrs, {
|
|
8292
8260
|
ref: this.setRefNode
|
|
@@ -8700,11 +8668,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8700
8668
|
|
|
8701
8669
|
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; }
|
|
8702
8670
|
|
|
8703
|
-
function
|
|
8671
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8672
|
+
|
|
8673
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8704
8674
|
|
|
8705
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8675
|
+
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."); }
|
|
8706
8676
|
|
|
8707
|
-
function
|
|
8677
|
+
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); }
|
|
8678
|
+
|
|
8679
|
+
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; }
|
|
8680
|
+
|
|
8681
|
+
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; }
|
|
8708
8682
|
|
|
8709
8683
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8710
8684
|
|
|
@@ -8834,12 +8808,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8834
8808
|
|
|
8835
8809
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8836
8810
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8837
|
-
|
|
8838
|
-
var
|
|
8839
|
-
|
|
8811
|
+
|
|
8812
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
8813
|
+
_step;
|
|
8840
8814
|
|
|
8841
8815
|
try {
|
|
8842
|
-
for (
|
|
8816
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8843
8817
|
var p = _step.value;
|
|
8844
8818
|
|
|
8845
8819
|
if (props$1[p]) {
|
|
@@ -8854,18 +8828,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8854
8828
|
}
|
|
8855
8829
|
}
|
|
8856
8830
|
} catch (err) {
|
|
8857
|
-
|
|
8858
|
-
_iteratorError = err;
|
|
8831
|
+
_iterator.e(err);
|
|
8859
8832
|
} finally {
|
|
8860
|
-
|
|
8861
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8862
|
-
_iterator["return"]();
|
|
8863
|
-
}
|
|
8864
|
-
} finally {
|
|
8865
|
-
if (_didIteratorError) {
|
|
8866
|
-
throw _iteratorError;
|
|
8867
|
-
}
|
|
8868
|
-
}
|
|
8833
|
+
_iterator.f();
|
|
8869
8834
|
}
|
|
8870
8835
|
|
|
8871
8836
|
return config;
|
|
@@ -9012,12 +8977,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9012
8977
|
|
|
9013
8978
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9014
8979
|
|
|
9015
|
-
function
|
|
8980
|
+
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); }; }
|
|
9016
8981
|
|
|
9017
|
-
function
|
|
8982
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9018
8983
|
|
|
9019
8984
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9020
8985
|
|
|
8986
|
+
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; } }
|
|
8987
|
+
|
|
8988
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8989
|
+
|
|
9021
8990
|
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); }
|
|
9022
8991
|
|
|
9023
8992
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9026,14 +8995,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9026
8995
|
|
|
9027
8996
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
9028
8997
|
|
|
9029
|
-
var Player =
|
|
9030
|
-
/*#__PURE__*/
|
|
9031
|
-
function (_Component) {
|
|
8998
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
9032
8999
|
_inherits(Player, _Component);
|
|
9033
9000
|
|
|
9034
|
-
|
|
9035
|
-
var _getPrototypeOf2;
|
|
9001
|
+
var _super = _createSuper(Player);
|
|
9036
9002
|
|
|
9003
|
+
function Player() {
|
|
9037
9004
|
var _this;
|
|
9038
9005
|
|
|
9039
9006
|
_classCallCheck(this, Player);
|
|
@@ -9042,7 +9009,7 @@ function (_Component) {
|
|
|
9042
9009
|
_args[_key] = arguments[_key];
|
|
9043
9010
|
}
|
|
9044
9011
|
|
|
9045
|
-
_this =
|
|
9012
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
9046
9013
|
|
|
9047
9014
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9048
9015
|
|
|
@@ -9367,7 +9334,7 @@ function (_Component) {
|
|
|
9367
9334
|
return null;
|
|
9368
9335
|
}
|
|
9369
9336
|
|
|
9370
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9337
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
9371
9338
|
ref: this.ref,
|
|
9372
9339
|
onReady: this.handleReady,
|
|
9373
9340
|
onPlay: this.handlePlay,
|
|
@@ -9428,12 +9395,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9428
9395
|
|
|
9429
9396
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9430
9397
|
|
|
9431
|
-
function
|
|
9398
|
+
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); }; }
|
|
9432
9399
|
|
|
9433
|
-
function
|
|
9400
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9434
9401
|
|
|
9435
9402
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9436
9403
|
|
|
9404
|
+
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; } }
|
|
9405
|
+
|
|
9406
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9407
|
+
|
|
9437
9408
|
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); }
|
|
9438
9409
|
|
|
9439
9410
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9445,14 +9416,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9445
9416
|
function createSinglePlayer(activePlayer) {
|
|
9446
9417
|
var _class, _temp;
|
|
9447
9418
|
|
|
9448
|
-
return _temp = _class =
|
|
9449
|
-
/*#__PURE__*/
|
|
9450
|
-
function (_Component) {
|
|
9419
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
9451
9420
|
_inherits(SinglePlayer, _Component);
|
|
9452
9421
|
|
|
9453
|
-
|
|
9454
|
-
var _getPrototypeOf2;
|
|
9422
|
+
var _super = _createSuper(SinglePlayer);
|
|
9455
9423
|
|
|
9424
|
+
function SinglePlayer() {
|
|
9456
9425
|
var _this;
|
|
9457
9426
|
|
|
9458
9427
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9461,7 +9430,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9461
9430
|
args[_key] = arguments[_key];
|
|
9462
9431
|
}
|
|
9463
9432
|
|
|
9464
|
-
_this =
|
|
9433
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9465
9434
|
|
|
9466
9435
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9467
9436
|
|
|
@@ -9529,12 +9498,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9529
9498
|
height = _this$props.height,
|
|
9530
9499
|
Wrapper = _this$props.wrapper;
|
|
9531
9500
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9532
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
9501
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
9533
9502
|
style: _objectSpread({}, style, {
|
|
9534
9503
|
width: width,
|
|
9535
9504
|
height: height
|
|
9536
9505
|
})
|
|
9537
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9506
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9538
9507
|
ref: this.ref,
|
|
9539
9508
|
activePlayer: activePlayer,
|
|
9540
9509
|
config: this.config
|
|
@@ -9580,23 +9549,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9580
9549
|
|
|
9581
9550
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9582
9551
|
|
|
9583
|
-
function
|
|
9552
|
+
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); }; }
|
|
9584
9553
|
|
|
9585
|
-
function
|
|
9554
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9586
9555
|
|
|
9587
9556
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9588
9557
|
|
|
9558
|
+
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; } }
|
|
9559
|
+
|
|
9560
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9561
|
+
|
|
9589
9562
|
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); }
|
|
9590
9563
|
|
|
9591
9564
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9592
9565
|
|
|
9593
9566
|
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; }
|
|
9594
9567
|
|
|
9595
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9568
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9569
|
+
|
|
9570
|
+
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."); }
|
|
9571
|
+
|
|
9572
|
+
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); }
|
|
9596
9573
|
|
|
9597
|
-
function
|
|
9574
|
+
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; }
|
|
9598
9575
|
|
|
9599
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
9576
|
+
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; }
|
|
9600
9577
|
|
|
9601
9578
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9602
9579
|
|
|
@@ -9621,14 +9598,12 @@ function parsePlaylist(url) {
|
|
|
9621
9598
|
return {};
|
|
9622
9599
|
}
|
|
9623
9600
|
|
|
9624
|
-
var YouTube =
|
|
9625
|
-
/*#__PURE__*/
|
|
9626
|
-
function (_Component) {
|
|
9601
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
9627
9602
|
_inherits(YouTube, _Component);
|
|
9628
9603
|
|
|
9629
|
-
|
|
9630
|
-
var _getPrototypeOf2;
|
|
9604
|
+
var _super = _createSuper(YouTube);
|
|
9631
9605
|
|
|
9606
|
+
function YouTube() {
|
|
9632
9607
|
var _this;
|
|
9633
9608
|
|
|
9634
9609
|
_classCallCheck(this, YouTube);
|
|
@@ -9637,7 +9612,7 @@ function (_Component) {
|
|
|
9637
9612
|
args[_key] = arguments[_key];
|
|
9638
9613
|
}
|
|
9639
9614
|
|
|
9640
|
-
_this =
|
|
9615
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9641
9616
|
|
|
9642
9617
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9643
9618
|
|
|
@@ -9825,9 +9800,9 @@ function (_Component) {
|
|
|
9825
9800
|
height: '100%',
|
|
9826
9801
|
display: display
|
|
9827
9802
|
};
|
|
9828
|
-
return _react["default"].createElement("div", {
|
|
9803
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
9829
9804
|
style: style
|
|
9830
|
-
}, _react["default"].createElement("div", {
|
|
9805
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
9831
9806
|
ref: this.ref
|
|
9832
9807
|
}));
|
|
9833
9808
|
}
|
|
@@ -9883,12 +9858,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9883
9858
|
|
|
9884
9859
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9885
9860
|
|
|
9886
|
-
function
|
|
9861
|
+
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); }; }
|
|
9887
9862
|
|
|
9888
|
-
function
|
|
9863
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9889
9864
|
|
|
9890
9865
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9891
9866
|
|
|
9867
|
+
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; } }
|
|
9868
|
+
|
|
9869
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9870
|
+
|
|
9892
9871
|
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); }
|
|
9893
9872
|
|
|
9894
9873
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9897,16 +9876,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9897
9876
|
|
|
9898
9877
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9899
9878
|
var SDK_GLOBAL = 'SC';
|
|
9900
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
9879
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
9901
9880
|
|
|
9902
|
-
var SoundCloud =
|
|
9903
|
-
/*#__PURE__*/
|
|
9904
|
-
function (_Component) {
|
|
9881
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
9905
9882
|
_inherits(SoundCloud, _Component);
|
|
9906
9883
|
|
|
9907
|
-
|
|
9908
|
-
var _getPrototypeOf2;
|
|
9884
|
+
var _super = _createSuper(SoundCloud);
|
|
9909
9885
|
|
|
9886
|
+
function SoundCloud() {
|
|
9910
9887
|
var _this;
|
|
9911
9888
|
|
|
9912
9889
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9915,7 +9892,7 @@ function (_Component) {
|
|
|
9915
9892
|
args[_key] = arguments[_key];
|
|
9916
9893
|
}
|
|
9917
9894
|
|
|
9918
|
-
_this =
|
|
9895
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9919
9896
|
|
|
9920
9897
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9921
9898
|
|
|
@@ -10036,7 +10013,7 @@ function (_Component) {
|
|
|
10036
10013
|
height: '100%',
|
|
10037
10014
|
display: display
|
|
10038
10015
|
};
|
|
10039
|
-
return _react["default"].createElement("iframe", {
|
|
10016
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10040
10017
|
ref: this.ref,
|
|
10041
10018
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10042
10019
|
style: style,
|
|
@@ -10098,12 +10075,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10098
10075
|
|
|
10099
10076
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10100
10077
|
|
|
10101
|
-
function
|
|
10078
|
+
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); }; }
|
|
10102
10079
|
|
|
10103
|
-
function
|
|
10080
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10104
10081
|
|
|
10105
10082
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10106
10083
|
|
|
10084
|
+
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; } }
|
|
10085
|
+
|
|
10086
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10087
|
+
|
|
10107
10088
|
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); }
|
|
10108
10089
|
|
|
10109
10090
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10115,14 +10096,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10115
10096
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10116
10097
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10117
10098
|
|
|
10118
|
-
var Vimeo =
|
|
10119
|
-
/*#__PURE__*/
|
|
10120
|
-
function (_Component) {
|
|
10099
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
10121
10100
|
_inherits(Vimeo, _Component);
|
|
10122
10101
|
|
|
10123
|
-
|
|
10124
|
-
var _getPrototypeOf2;
|
|
10102
|
+
var _super = _createSuper(Vimeo);
|
|
10125
10103
|
|
|
10104
|
+
function Vimeo() {
|
|
10126
10105
|
var _this;
|
|
10127
10106
|
|
|
10128
10107
|
_classCallCheck(this, Vimeo);
|
|
@@ -10131,7 +10110,7 @@ function (_Component) {
|
|
|
10131
10110
|
args[_key] = arguments[_key];
|
|
10132
10111
|
}
|
|
10133
10112
|
|
|
10134
|
-
_this =
|
|
10113
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10135
10114
|
|
|
10136
10115
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10137
10116
|
|
|
@@ -10288,7 +10267,7 @@ function (_Component) {
|
|
|
10288
10267
|
overflow: 'hidden',
|
|
10289
10268
|
display: display
|
|
10290
10269
|
};
|
|
10291
|
-
return _react["default"].createElement("div", {
|
|
10270
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10292
10271
|
key: this.props.url,
|
|
10293
10272
|
ref: this.ref,
|
|
10294
10273
|
style: style
|
|
@@ -10348,12 +10327,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10348
10327
|
|
|
10349
10328
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10350
10329
|
|
|
10351
|
-
function
|
|
10330
|
+
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); }; }
|
|
10352
10331
|
|
|
10353
|
-
function
|
|
10332
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10354
10333
|
|
|
10355
10334
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10356
10335
|
|
|
10336
|
+
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; } }
|
|
10337
|
+
|
|
10338
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10339
|
+
|
|
10357
10340
|
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); }
|
|
10358
10341
|
|
|
10359
10342
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10366,14 +10349,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10366
10349
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10367
10350
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10368
10351
|
|
|
10369
|
-
var Facebook =
|
|
10370
|
-
/*#__PURE__*/
|
|
10371
|
-
function (_Component) {
|
|
10352
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
10372
10353
|
_inherits(Facebook, _Component);
|
|
10373
10354
|
|
|
10374
|
-
|
|
10375
|
-
var _getPrototypeOf2;
|
|
10355
|
+
var _super = _createSuper(Facebook);
|
|
10376
10356
|
|
|
10357
|
+
function Facebook() {
|
|
10377
10358
|
var _this;
|
|
10378
10359
|
|
|
10379
10360
|
_classCallCheck(this, Facebook);
|
|
@@ -10382,7 +10363,7 @@ function (_Component) {
|
|
|
10382
10363
|
args[_key] = arguments[_key];
|
|
10383
10364
|
}
|
|
10384
10365
|
|
|
10385
|
-
_this =
|
|
10366
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10386
10367
|
|
|
10387
10368
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10388
10369
|
|
|
@@ -10498,7 +10479,7 @@ function (_Component) {
|
|
|
10498
10479
|
width: '100%',
|
|
10499
10480
|
height: '100%'
|
|
10500
10481
|
};
|
|
10501
|
-
return _react["default"].createElement("div", {
|
|
10482
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10502
10483
|
style: style,
|
|
10503
10484
|
id: this.playerID,
|
|
10504
10485
|
className: "fb-video",
|
|
@@ -10558,12 +10539,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10558
10539
|
|
|
10559
10540
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10560
10541
|
|
|
10561
|
-
function
|
|
10542
|
+
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); }; }
|
|
10562
10543
|
|
|
10563
|
-
function
|
|
10544
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10564
10545
|
|
|
10565
10546
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10566
10547
|
|
|
10548
|
+
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; } }
|
|
10549
|
+
|
|
10550
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10551
|
+
|
|
10567
10552
|
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); }
|
|
10568
10553
|
|
|
10569
10554
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10574,14 +10559,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10574
10559
|
var SDK_GLOBAL = 'playerjs';
|
|
10575
10560
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10576
10561
|
|
|
10577
|
-
var Streamable =
|
|
10578
|
-
/*#__PURE__*/
|
|
10579
|
-
function (_Component) {
|
|
10562
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
10580
10563
|
_inherits(Streamable, _Component);
|
|
10581
10564
|
|
|
10582
|
-
|
|
10583
|
-
var _getPrototypeOf2;
|
|
10565
|
+
var _super = _createSuper(Streamable);
|
|
10584
10566
|
|
|
10567
|
+
function Streamable() {
|
|
10585
10568
|
var _this;
|
|
10586
10569
|
|
|
10587
10570
|
_classCallCheck(this, Streamable);
|
|
@@ -10590,7 +10573,7 @@ function (_Component) {
|
|
|
10590
10573
|
args[_key] = arguments[_key];
|
|
10591
10574
|
}
|
|
10592
10575
|
|
|
10593
|
-
_this =
|
|
10576
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10594
10577
|
|
|
10595
10578
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10596
10579
|
|
|
@@ -10710,7 +10693,7 @@ function (_Component) {
|
|
|
10710
10693
|
width: '100%',
|
|
10711
10694
|
height: '100%'
|
|
10712
10695
|
};
|
|
10713
|
-
return _react["default"].createElement("iframe", {
|
|
10696
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10714
10697
|
ref: this.ref,
|
|
10715
10698
|
src: "https://streamable.com/o/".concat(id),
|
|
10716
10699
|
frameBorder: "0",
|
|
@@ -10771,12 +10754,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10771
10754
|
|
|
10772
10755
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10773
10756
|
|
|
10774
|
-
function
|
|
10757
|
+
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); }; }
|
|
10775
10758
|
|
|
10776
|
-
function
|
|
10759
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10777
10760
|
|
|
10778
10761
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10779
10762
|
|
|
10763
|
+
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; } }
|
|
10764
|
+
|
|
10765
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10766
|
+
|
|
10780
10767
|
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); }
|
|
10781
10768
|
|
|
10782
10769
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10787,26 +10774,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10787
10774
|
var SDK_GLOBAL = 'Wistia';
|
|
10788
10775
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10789
10776
|
|
|
10790
|
-
var Wistia =
|
|
10791
|
-
/*#__PURE__*/
|
|
10792
|
-
function (_Component) {
|
|
10777
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
10793
10778
|
_inherits(Wistia, _Component);
|
|
10794
10779
|
|
|
10795
|
-
|
|
10796
|
-
var _getPrototypeOf2;
|
|
10780
|
+
var _super = _createSuper(Wistia);
|
|
10797
10781
|
|
|
10782
|
+
function Wistia() {
|
|
10798
10783
|
var _this;
|
|
10799
10784
|
|
|
10800
10785
|
_classCallCheck(this, Wistia);
|
|
10801
10786
|
|
|
10802
|
-
for (var _len = arguments.length,
|
|
10803
|
-
|
|
10787
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10788
|
+
_args[_key] = arguments[_key];
|
|
10804
10789
|
}
|
|
10805
10790
|
|
|
10806
|
-
_this =
|
|
10791
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
10807
10792
|
|
|
10808
10793
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10809
10794
|
|
|
10795
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10796
|
+
var _this$props;
|
|
10797
|
+
|
|
10798
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10799
|
+
});
|
|
10800
|
+
|
|
10801
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10802
|
+
var _this$props2;
|
|
10803
|
+
|
|
10804
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10805
|
+
});
|
|
10806
|
+
|
|
10807
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10808
|
+
var _this$props3;
|
|
10809
|
+
|
|
10810
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10811
|
+
});
|
|
10812
|
+
|
|
10813
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10814
|
+
var _this$props4;
|
|
10815
|
+
|
|
10816
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10817
|
+
});
|
|
10818
|
+
|
|
10810
10819
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10811
10820
|
_this.callPlayer('mute');
|
|
10812
10821
|
});
|
|
@@ -10828,17 +10837,13 @@ function (_Component) {
|
|
|
10828
10837
|
value: function load(url) {
|
|
10829
10838
|
var _this2 = this;
|
|
10830
10839
|
|
|
10831
|
-
var _this$
|
|
10832
|
-
playing = _this$
|
|
10833
|
-
muted = _this$
|
|
10834
|
-
controls = _this$
|
|
10835
|
-
_onReady = _this$
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
onSeek = _this$props.onSeek,
|
|
10839
|
-
onEnded = _this$props.onEnded,
|
|
10840
|
-
config = _this$props.config,
|
|
10841
|
-
onError = _this$props.onError;
|
|
10840
|
+
var _this$props5 = this.props,
|
|
10841
|
+
playing = _this$props5.playing,
|
|
10842
|
+
muted = _this$props5.muted,
|
|
10843
|
+
controls = _this$props5.controls,
|
|
10844
|
+
_onReady = _this$props5.onReady,
|
|
10845
|
+
config = _this$props5.config,
|
|
10846
|
+
onError = _this$props5.onError;
|
|
10842
10847
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10843
10848
|
window._wq = window._wq || [];
|
|
10844
10849
|
|
|
@@ -10855,19 +10860,28 @@ function (_Component) {
|
|
|
10855
10860
|
|
|
10856
10861
|
_this2.unbind();
|
|
10857
10862
|
|
|
10858
|
-
_this2.player.bind('play', onPlay);
|
|
10863
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
10859
10864
|
|
|
10860
|
-
_this2.player.bind('pause', onPause);
|
|
10865
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
10861
10866
|
|
|
10862
|
-
_this2.player.bind('seek', onSeek);
|
|
10867
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
10863
10868
|
|
|
10864
|
-
_this2.player.bind('end', onEnded);
|
|
10869
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
10865
10870
|
|
|
10866
10871
|
_onReady();
|
|
10867
10872
|
}
|
|
10868
10873
|
});
|
|
10869
10874
|
}, onError);
|
|
10870
10875
|
}
|
|
10876
|
+
}, {
|
|
10877
|
+
key: "unbind",
|
|
10878
|
+
value: function unbind() {
|
|
10879
|
+
this.player.unbind('play', this.onPlay);
|
|
10880
|
+
this.player.unbind('pause', this.onPause);
|
|
10881
|
+
this.player.unbind('seek', this.onSeek);
|
|
10882
|
+
this.player.unbind('end', this.onEnded);
|
|
10883
|
+
} // Proxy methods to prevent listener leaks
|
|
10884
|
+
|
|
10871
10885
|
}, {
|
|
10872
10886
|
key: "play",
|
|
10873
10887
|
value: function play() {
|
|
@@ -10878,19 +10892,6 @@ function (_Component) {
|
|
|
10878
10892
|
value: function pause() {
|
|
10879
10893
|
this.callPlayer('pause');
|
|
10880
10894
|
}
|
|
10881
|
-
}, {
|
|
10882
|
-
key: "unbind",
|
|
10883
|
-
value: function unbind() {
|
|
10884
|
-
var _this$props2 = this.props,
|
|
10885
|
-
onPlay = _this$props2.onPlay,
|
|
10886
|
-
onPause = _this$props2.onPause,
|
|
10887
|
-
onSeek = _this$props2.onSeek,
|
|
10888
|
-
onEnded = _this$props2.onEnded;
|
|
10889
|
-
this.player.unbind('play', onPlay);
|
|
10890
|
-
this.player.unbind('pause', onPause);
|
|
10891
|
-
this.player.unbind('seek', onSeek);
|
|
10892
|
-
this.player.unbind('end', onEnded);
|
|
10893
|
-
}
|
|
10894
10895
|
}, {
|
|
10895
10896
|
key: "stop",
|
|
10896
10897
|
value: function stop() {
|
|
@@ -10936,7 +10937,7 @@ function (_Component) {
|
|
|
10936
10937
|
width: '100%',
|
|
10937
10938
|
height: '100%'
|
|
10938
10939
|
};
|
|
10939
|
-
return _react["default"].createElement("div", {
|
|
10940
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10940
10941
|
key: id,
|
|
10941
10942
|
className: className,
|
|
10942
10943
|
style: style
|
|
@@ -10996,12 +10997,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10996
10997
|
|
|
10997
10998
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10998
10999
|
|
|
10999
|
-
function
|
|
11000
|
+
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); }; }
|
|
11000
11001
|
|
|
11001
|
-
function
|
|
11002
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11002
11003
|
|
|
11003
11004
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11004
11005
|
|
|
11006
|
+
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; } }
|
|
11007
|
+
|
|
11008
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11009
|
+
|
|
11005
11010
|
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); }
|
|
11006
11011
|
|
|
11007
11012
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11014,14 +11019,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11014
11019
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11015
11020
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11016
11021
|
|
|
11017
|
-
var Twitch =
|
|
11018
|
-
/*#__PURE__*/
|
|
11019
|
-
function (_Component) {
|
|
11022
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
11020
11023
|
_inherits(Twitch, _Component);
|
|
11021
11024
|
|
|
11022
|
-
|
|
11023
|
-
var _getPrototypeOf2;
|
|
11025
|
+
var _super = _createSuper(Twitch);
|
|
11024
11026
|
|
|
11027
|
+
function Twitch() {
|
|
11025
11028
|
var _this;
|
|
11026
11029
|
|
|
11027
11030
|
_classCallCheck(this, Twitch);
|
|
@@ -11030,7 +11033,7 @@ function (_Component) {
|
|
|
11030
11033
|
args[_key] = arguments[_key];
|
|
11031
11034
|
}
|
|
11032
11035
|
|
|
11033
|
-
_this =
|
|
11036
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11034
11037
|
|
|
11035
11038
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11036
11039
|
|
|
@@ -11151,7 +11154,7 @@ function (_Component) {
|
|
|
11151
11154
|
width: '100%',
|
|
11152
11155
|
height: '100%'
|
|
11153
11156
|
};
|
|
11154
|
-
return _react["default"].createElement("div", {
|
|
11157
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11155
11158
|
style: style,
|
|
11156
11159
|
id: this.playerID
|
|
11157
11160
|
});
|
|
@@ -11204,11 +11207,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11204
11207
|
|
|
11205
11208
|
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; }
|
|
11206
11209
|
|
|
11207
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11210
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11211
|
+
|
|
11212
|
+
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."); }
|
|
11208
11213
|
|
|
11209
|
-
function
|
|
11214
|
+
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); }
|
|
11210
11215
|
|
|
11211
|
-
function
|
|
11216
|
+
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; }
|
|
11217
|
+
|
|
11218
|
+
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; }
|
|
11212
11219
|
|
|
11213
11220
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11214
11221
|
|
|
@@ -11218,12 +11225,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11218
11225
|
|
|
11219
11226
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11220
11227
|
|
|
11221
|
-
function
|
|
11228
|
+
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); }; }
|
|
11222
11229
|
|
|
11223
|
-
function
|
|
11230
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11224
11231
|
|
|
11225
11232
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11226
11233
|
|
|
11234
|
+
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; } }
|
|
11235
|
+
|
|
11236
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11237
|
+
|
|
11227
11238
|
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); }
|
|
11228
11239
|
|
|
11229
11240
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11235,14 +11246,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
11235
11246
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11236
11247
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11237
11248
|
|
|
11238
|
-
var DailyMotion =
|
|
11239
|
-
/*#__PURE__*/
|
|
11240
|
-
function (_Component) {
|
|
11249
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
11241
11250
|
_inherits(DailyMotion, _Component);
|
|
11242
11251
|
|
|
11243
|
-
|
|
11244
|
-
var _getPrototypeOf2;
|
|
11252
|
+
var _super = _createSuper(DailyMotion);
|
|
11245
11253
|
|
|
11254
|
+
function DailyMotion() {
|
|
11246
11255
|
var _this;
|
|
11247
11256
|
|
|
11248
11257
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11251,7 +11260,7 @@ function (_Component) {
|
|
|
11251
11260
|
args[_key] = arguments[_key];
|
|
11252
11261
|
}
|
|
11253
11262
|
|
|
11254
|
-
_this =
|
|
11263
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11255
11264
|
|
|
11256
11265
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11257
11266
|
|
|
@@ -11380,9 +11389,9 @@ function (_Component) {
|
|
|
11380
11389
|
height: '100%',
|
|
11381
11390
|
display: display
|
|
11382
11391
|
};
|
|
11383
|
-
return _react["default"].createElement("div", {
|
|
11392
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11384
11393
|
style: style
|
|
11385
|
-
}, _react["default"].createElement("div", {
|
|
11394
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
11386
11395
|
ref: this.ref
|
|
11387
11396
|
}));
|
|
11388
11397
|
}
|
|
@@ -11440,12 +11449,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11440
11449
|
|
|
11441
11450
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11442
11451
|
|
|
11443
|
-
function
|
|
11452
|
+
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); }; }
|
|
11444
11453
|
|
|
11445
|
-
function
|
|
11454
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11446
11455
|
|
|
11447
11456
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11448
11457
|
|
|
11458
|
+
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; } }
|
|
11459
|
+
|
|
11460
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11461
|
+
|
|
11449
11462
|
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); }
|
|
11450
11463
|
|
|
11451
11464
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11456,14 +11469,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11456
11469
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11457
11470
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11458
11471
|
|
|
11459
|
-
var Mixcloud =
|
|
11460
|
-
/*#__PURE__*/
|
|
11461
|
-
function (_Component) {
|
|
11472
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
11462
11473
|
_inherits(Mixcloud, _Component);
|
|
11463
11474
|
|
|
11464
|
-
|
|
11465
|
-
var _getPrototypeOf2;
|
|
11475
|
+
var _super = _createSuper(Mixcloud);
|
|
11466
11476
|
|
|
11477
|
+
function Mixcloud() {
|
|
11467
11478
|
var _this;
|
|
11468
11479
|
|
|
11469
11480
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11472,7 +11483,7 @@ function (_Component) {
|
|
|
11472
11483
|
args[_key] = arguments[_key];
|
|
11473
11484
|
}
|
|
11474
11485
|
|
|
11475
|
-
_this =
|
|
11486
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11476
11487
|
|
|
11477
11488
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11478
11489
|
|
|
@@ -11575,7 +11586,7 @@ function (_Component) {
|
|
|
11575
11586
|
})); // We have to give the iframe a key here to prevent a
|
|
11576
11587
|
// weird dialog appearing when loading a new track
|
|
11577
11588
|
|
|
11578
|
-
return _react["default"].createElement("iframe", {
|
|
11589
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
11579
11590
|
key: id,
|
|
11580
11591
|
ref: this.ref,
|
|
11581
11592
|
style: style,
|
|
@@ -11635,23 +11646,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11635
11646
|
|
|
11636
11647
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11637
11648
|
|
|
11638
|
-
function
|
|
11649
|
+
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); }; }
|
|
11639
11650
|
|
|
11640
|
-
function
|
|
11651
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11641
11652
|
|
|
11642
11653
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11643
11654
|
|
|
11655
|
+
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; } }
|
|
11656
|
+
|
|
11657
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11658
|
+
|
|
11644
11659
|
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); }
|
|
11645
11660
|
|
|
11646
11661
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11647
11662
|
|
|
11648
11663
|
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; }
|
|
11649
11664
|
|
|
11665
|
+
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; } } }; }
|
|
11666
|
+
|
|
11667
|
+
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); }
|
|
11668
|
+
|
|
11669
|
+
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; }
|
|
11670
|
+
|
|
11650
11671
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11651
11672
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11652
11673
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11653
11674
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11654
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11675
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
11655
11676
|
var HLS_GLOBAL = 'Hls';
|
|
11656
11677
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11657
11678
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11660,12 +11681,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11660
11681
|
|
|
11661
11682
|
function canPlay(url) {
|
|
11662
11683
|
if (url instanceof Array) {
|
|
11663
|
-
var
|
|
11664
|
-
|
|
11665
|
-
var _iteratorError = undefined;
|
|
11684
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
11685
|
+
_step;
|
|
11666
11686
|
|
|
11667
11687
|
try {
|
|
11668
|
-
for (
|
|
11688
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11669
11689
|
var item = _step.value;
|
|
11670
11690
|
|
|
11671
11691
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11677,18 +11697,9 @@ function canPlay(url) {
|
|
|
11677
11697
|
}
|
|
11678
11698
|
}
|
|
11679
11699
|
} catch (err) {
|
|
11680
|
-
|
|
11681
|
-
_iteratorError = err;
|
|
11700
|
+
_iterator.e(err);
|
|
11682
11701
|
} finally {
|
|
11683
|
-
|
|
11684
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11685
|
-
_iterator["return"]();
|
|
11686
|
-
}
|
|
11687
|
-
} finally {
|
|
11688
|
-
if (_didIteratorError) {
|
|
11689
|
-
throw _iteratorError;
|
|
11690
|
-
}
|
|
11691
|
-
}
|
|
11702
|
+
_iterator.f();
|
|
11692
11703
|
}
|
|
11693
11704
|
|
|
11694
11705
|
return false;
|
|
@@ -11712,14 +11723,12 @@ function canEnablePIP(url) {
|
|
|
11712
11723
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11713
11724
|
}
|
|
11714
11725
|
|
|
11715
|
-
var FilePlayer =
|
|
11716
|
-
/*#__PURE__*/
|
|
11717
|
-
function (_Component) {
|
|
11726
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
11718
11727
|
_inherits(FilePlayer, _Component);
|
|
11719
11728
|
|
|
11720
|
-
|
|
11721
|
-
var _getPrototypeOf2;
|
|
11729
|
+
var _super = _createSuper(FilePlayer);
|
|
11722
11730
|
|
|
11731
|
+
function FilePlayer() {
|
|
11723
11732
|
var _this;
|
|
11724
11733
|
|
|
11725
11734
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11728,7 +11737,7 @@ function (_Component) {
|
|
|
11728
11737
|
_args[_key] = arguments[_key];
|
|
11729
11738
|
}
|
|
11730
11739
|
|
|
11731
|
-
_this =
|
|
11740
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
11732
11741
|
|
|
11733
11742
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11734
11743
|
var _this$props;
|
|
@@ -11815,19 +11824,19 @@ function (_Component) {
|
|
|
11815
11824
|
|
|
11816
11825
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11817
11826
|
if (typeof source === 'string') {
|
|
11818
|
-
return _react["default"].createElement("source", {
|
|
11827
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
11819
11828
|
key: index,
|
|
11820
11829
|
src: source
|
|
11821
11830
|
});
|
|
11822
11831
|
}
|
|
11823
11832
|
|
|
11824
|
-
return _react["default"].createElement("source", _extends({
|
|
11833
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
11825
11834
|
key: index
|
|
11826
11835
|
}, source));
|
|
11827
11836
|
});
|
|
11828
11837
|
|
|
11829
11838
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11830
|
-
return _react["default"].createElement("track", _extends({
|
|
11839
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
11831
11840
|
key: index
|
|
11832
11841
|
}, track));
|
|
11833
11842
|
});
|
|
@@ -11865,6 +11874,10 @@ function (_Component) {
|
|
|
11865
11874
|
key: "componentWillUnmount",
|
|
11866
11875
|
value: function componentWillUnmount() {
|
|
11867
11876
|
this.removeListeners(this.player);
|
|
11877
|
+
|
|
11878
|
+
if (this.hls) {
|
|
11879
|
+
this.hls.destroy();
|
|
11880
|
+
}
|
|
11868
11881
|
}
|
|
11869
11882
|
}, {
|
|
11870
11883
|
key: "addListeners",
|
|
@@ -11995,10 +12008,6 @@ function (_Component) {
|
|
|
11995
12008
|
value: function stop() {
|
|
11996
12009
|
this.player.removeAttribute('src');
|
|
11997
12010
|
|
|
11998
|
-
if (this.hls) {
|
|
11999
|
-
this.hls.destroy();
|
|
12000
|
-
}
|
|
12001
|
-
|
|
12002
12011
|
if (this.dash) {
|
|
12003
12012
|
this.dash.reset();
|
|
12004
12013
|
}
|
|
@@ -12110,7 +12119,7 @@ function (_Component) {
|
|
|
12110
12119
|
width: width === 'auto' ? width : '100%',
|
|
12111
12120
|
height: height === 'auto' ? height : '100%'
|
|
12112
12121
|
};
|
|
12113
|
-
return _react["default"].createElement(Element, _extends({
|
|
12122
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
12114
12123
|
ref: this.ref,
|
|
12115
12124
|
src: this.getSource(url),
|
|
12116
12125
|
style: style,
|
|
@@ -12200,12 +12209,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12200
12209
|
|
|
12201
12210
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12202
12211
|
|
|
12203
|
-
function
|
|
12212
|
+
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); }; }
|
|
12204
12213
|
|
|
12205
|
-
function
|
|
12214
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12206
12215
|
|
|
12207
12216
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12208
12217
|
|
|
12218
|
+
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; } }
|
|
12219
|
+
|
|
12220
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12221
|
+
|
|
12209
12222
|
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); }
|
|
12210
12223
|
|
|
12211
12224
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12214,14 +12227,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12214
12227
|
|
|
12215
12228
|
var ICON_SIZE = '64px';
|
|
12216
12229
|
|
|
12217
|
-
var Preview =
|
|
12218
|
-
/*#__PURE__*/
|
|
12219
|
-
function (_Component) {
|
|
12230
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
12220
12231
|
_inherits(Preview, _Component);
|
|
12221
12232
|
|
|
12222
|
-
|
|
12223
|
-
var _getPrototypeOf2;
|
|
12233
|
+
var _super = _createSuper(Preview);
|
|
12224
12234
|
|
|
12235
|
+
function Preview() {
|
|
12225
12236
|
var _this;
|
|
12226
12237
|
|
|
12227
12238
|
_classCallCheck(this, Preview);
|
|
@@ -12230,7 +12241,7 @@ function (_Component) {
|
|
|
12230
12241
|
args[_key] = arguments[_key];
|
|
12231
12242
|
}
|
|
12232
12243
|
|
|
12233
|
-
_this =
|
|
12244
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12234
12245
|
|
|
12235
12246
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12236
12247
|
|
|
@@ -12328,15 +12339,15 @@ function (_Component) {
|
|
|
12328
12339
|
}
|
|
12329
12340
|
};
|
|
12330
12341
|
|
|
12331
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12342
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
12332
12343
|
style: styles.shadow,
|
|
12333
12344
|
className: "react-player__shadow"
|
|
12334
|
-
}, _react["default"].createElement("div", {
|
|
12345
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12335
12346
|
style: styles.playIcon,
|
|
12336
12347
|
className: "react-player__play-icon"
|
|
12337
12348
|
}));
|
|
12338
12349
|
|
|
12339
|
-
return _react["default"].createElement("div", {
|
|
12350
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
12340
12351
|
style: styles.preview,
|
|
12341
12352
|
className: "react-player__preview",
|
|
12342
12353
|
onClick: onClick
|
|
@@ -12373,6 +12384,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12373
12384
|
|
|
12374
12385
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12375
12386
|
|
|
12387
|
+
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; } } }; }
|
|
12388
|
+
|
|
12389
|
+
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); }
|
|
12390
|
+
|
|
12391
|
+
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; }
|
|
12392
|
+
|
|
12376
12393
|
var PRELOAD_PLAYERS = [{
|
|
12377
12394
|
Player: YouTube_1.YouTube,
|
|
12378
12395
|
configKey: 'youtube',
|
|
@@ -12393,16 +12410,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12393
12410
|
|
|
12394
12411
|
function renderPreloadPlayers(url, controls, config) {
|
|
12395
12412
|
var players = [];
|
|
12396
|
-
|
|
12397
|
-
var
|
|
12398
|
-
|
|
12413
|
+
|
|
12414
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
12415
|
+
_step;
|
|
12399
12416
|
|
|
12400
12417
|
try {
|
|
12401
|
-
for (
|
|
12418
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12402
12419
|
var player = _step.value;
|
|
12403
12420
|
|
|
12404
12421
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12405
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
12422
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
12406
12423
|
key: player.Player.displayName,
|
|
12407
12424
|
activePlayer: player.Player,
|
|
12408
12425
|
url: player.url,
|
|
@@ -12414,18 +12431,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12414
12431
|
}
|
|
12415
12432
|
}
|
|
12416
12433
|
} catch (err) {
|
|
12417
|
-
|
|
12418
|
-
_iteratorError = err;
|
|
12434
|
+
_iterator.e(err);
|
|
12419
12435
|
} finally {
|
|
12420
|
-
|
|
12421
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12422
|
-
_iterator["return"]();
|
|
12423
|
-
}
|
|
12424
|
-
} finally {
|
|
12425
|
-
if (_didIteratorError) {
|
|
12426
|
-
throw _iteratorError;
|
|
12427
|
-
}
|
|
12428
|
-
}
|
|
12436
|
+
_iterator.f();
|
|
12429
12437
|
}
|
|
12430
12438
|
|
|
12431
12439
|
return players;
|
|
@@ -12549,13 +12557,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12549
12557
|
|
|
12550
12558
|
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); }
|
|
12551
12559
|
|
|
12552
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12560
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12553
12561
|
|
|
12554
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12562
|
+
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."); }
|
|
12555
12563
|
|
|
12556
|
-
function
|
|
12564
|
+
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); }
|
|
12557
12565
|
|
|
12558
|
-
function
|
|
12566
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
12567
|
+
|
|
12568
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12569
|
+
|
|
12570
|
+
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; }
|
|
12559
12571
|
|
|
12560
12572
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12561
12573
|
|
|
@@ -12563,12 +12575,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12563
12575
|
|
|
12564
12576
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12565
12577
|
|
|
12566
|
-
function
|
|
12578
|
+
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); }; }
|
|
12567
12579
|
|
|
12568
|
-
function
|
|
12580
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12569
12581
|
|
|
12570
12582
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12571
12583
|
|
|
12584
|
+
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; } }
|
|
12585
|
+
|
|
12586
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12587
|
+
|
|
12572
12588
|
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); }
|
|
12573
12589
|
|
|
12574
12590
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12578,14 +12594,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12578
12594
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12579
12595
|
var customPlayers = [];
|
|
12580
12596
|
|
|
12581
|
-
var ReactPlayer =
|
|
12582
|
-
/*#__PURE__*/
|
|
12583
|
-
function (_Component) {
|
|
12597
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
12584
12598
|
_inherits(ReactPlayer, _Component);
|
|
12585
12599
|
|
|
12586
|
-
|
|
12587
|
-
var _getPrototypeOf2;
|
|
12600
|
+
var _super = _createSuper(ReactPlayer);
|
|
12588
12601
|
|
|
12602
|
+
function ReactPlayer() {
|
|
12589
12603
|
var _this;
|
|
12590
12604
|
|
|
12591
12605
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12594,7 +12608,7 @@ function (_Component) {
|
|
|
12594
12608
|
args[_key] = arguments[_key];
|
|
12595
12609
|
}
|
|
12596
12610
|
|
|
12597
|
-
_this =
|
|
12611
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12598
12612
|
|
|
12599
12613
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12600
12614
|
|
|
@@ -12705,7 +12719,7 @@ function (_Component) {
|
|
|
12705
12719
|
key: "renderActivePlayer",
|
|
12706
12720
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12707
12721
|
if (!url) return null;
|
|
12708
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12722
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12709
12723
|
key: activePlayer.displayName,
|
|
12710
12724
|
ref: this.activePlayerRef,
|
|
12711
12725
|
config: this.config,
|
|
@@ -12742,14 +12756,14 @@ function (_Component) {
|
|
|
12742
12756
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12743
12757
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12744
12758
|
|
|
12745
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12759
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
12746
12760
|
url: url,
|
|
12747
12761
|
light: light,
|
|
12748
12762
|
playIcon: playIcon,
|
|
12749
12763
|
onClick: this.handleClickPreview
|
|
12750
12764
|
});
|
|
12751
12765
|
|
|
12752
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
12766
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
12753
12767
|
ref: this.wrapperRef,
|
|
12754
12768
|
style: _objectSpread({}, style, {
|
|
12755
12769
|
width: width,
|
|
@@ -14178,16 +14192,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14178
14192
|
_ref$className = _ref.className,
|
|
14179
14193
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14180
14194
|
|
|
14181
|
-
/*
|
|
14182
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14183
|
-
example:
|
|
14184
|
-
<RelatedTopicDropdown
|
|
14185
|
-
page='/clinical'
|
|
14186
|
-
exclude="clinical"
|
|
14187
|
-
className='mb-3'
|
|
14188
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14189
|
-
subTaxonomies={props.subTaxonomies}
|
|
14190
|
-
/>
|
|
14195
|
+
/*
|
|
14196
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14197
|
+
example:
|
|
14198
|
+
<RelatedTopicDropdown
|
|
14199
|
+
page='/clinical'
|
|
14200
|
+
exclude="clinical"
|
|
14201
|
+
className='mb-3'
|
|
14202
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14203
|
+
subTaxonomies={props.subTaxonomies}
|
|
14204
|
+
/>
|
|
14191
14205
|
*/
|
|
14192
14206
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14193
14207
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14225,19 +14239,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14225
14239
|
}
|
|
14226
14240
|
};
|
|
14227
14241
|
|
|
14228
|
-
/*
|
|
14229
|
-
This dropdown is used inside Article body to display related content placement pages
|
|
14230
|
-
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
14231
|
-
|
|
14232
|
-
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
14233
|
-
|
|
14234
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14235
|
-
...,
|
|
14236
|
-
'ancestor': parent->parent->identifier,
|
|
14237
|
-
'parent': parent->identifier,
|
|
14238
|
-
'path': identifier
|
|
14239
|
-
}
|
|
14240
|
-
|
|
14242
|
+
/*
|
|
14243
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
14244
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
14245
|
+
|
|
14246
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
14247
|
+
|
|
14248
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14249
|
+
...,
|
|
14250
|
+
'ancestor': parent->parent->identifier,
|
|
14251
|
+
'parent': parent->identifier,
|
|
14252
|
+
'path': identifier
|
|
14253
|
+
}
|
|
14254
|
+
|
|
14241
14255
|
*/
|
|
14242
14256
|
|
|
14243
14257
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -14274,6 +14288,8 @@ var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
|
14274
14288
|
};
|
|
14275
14289
|
|
|
14276
14290
|
var fbsHero = function fbsHero(props) {
|
|
14291
|
+
var removeTimeStamp = props.removeTimeStamp;
|
|
14292
|
+
|
|
14277
14293
|
var topArticle = props.dataRecord[0];
|
|
14278
14294
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
14279
14295
|
|
|
@@ -14318,7 +14334,7 @@ var fbsHero = function fbsHero(props) {
|
|
|
14318
14334
|
React__default.createElement(
|
|
14319
14335
|
'p',
|
|
14320
14336
|
null,
|
|
14321
|
-
visibilitySensor.moment(topArticle.published).format('MMMM DD, YYYY hh:mma')
|
|
14337
|
+
visibilitySensor.moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14322
14338
|
),
|
|
14323
14339
|
topArticle.authorMapping && topArticle.authorMapping[0] && React__default.createElement(
|
|
14324
14340
|
'p',
|
|
@@ -14361,7 +14377,7 @@ var fbsHero = function fbsHero(props) {
|
|
|
14361
14377
|
React__default.createElement(
|
|
14362
14378
|
'p',
|
|
14363
14379
|
null,
|
|
14364
|
-
visibilitySensor.moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
14380
|
+
visibilitySensor.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14365
14381
|
),
|
|
14366
14382
|
article.authorMapping && article.authorMapping[0] && React__default.createElement(
|
|
14367
14383
|
'p',
|
|
@@ -14544,6 +14560,8 @@ var OncliveHero = function OncliveHero(props) {
|
|
|
14544
14560
|
};
|
|
14545
14561
|
|
|
14546
14562
|
var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
14563
|
+
var removeTimeStamp = props.removeTimeStamp;
|
|
14564
|
+
|
|
14547
14565
|
var topArticle = props.dataRecord[0];
|
|
14548
14566
|
var middleArticles = props.dataRecord.slice(1, 3);
|
|
14549
14567
|
var subArticles = props.dataRecord.slice(3, props.dataRecord.length);
|
|
@@ -14588,7 +14606,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14588
14606
|
React__default.createElement(
|
|
14589
14607
|
'p',
|
|
14590
14608
|
null,
|
|
14591
|
-
visibilitySensor.moment(topArticle.published).format('MMMM DD, YYYY hh:mma')
|
|
14609
|
+
visibilitySensor.moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14592
14610
|
),
|
|
14593
14611
|
React__default.createElement(
|
|
14594
14612
|
'p',
|
|
@@ -14626,7 +14644,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14626
14644
|
article.title
|
|
14627
14645
|
),
|
|
14628
14646
|
React__default.createElement('div', null),
|
|
14629
|
-
visibilitySensor.moment(article.published).format('MMMM Do YYYY, h:mma'),
|
|
14647
|
+
visibilitySensor.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
|
|
14630
14648
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14631
14649
|
'p',
|
|
14632
14650
|
{ className: 'mb-2' },
|
|
@@ -14674,7 +14692,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14674
14692
|
article.title
|
|
14675
14693
|
),
|
|
14676
14694
|
React__default.createElement('div', null),
|
|
14677
|
-
visibilitySensor.moment(article.published).format('MMMM Do YYYY, h:mma'),
|
|
14695
|
+
visibilitySensor.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
|
|
14678
14696
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14679
14697
|
'p',
|
|
14680
14698
|
{ className: 'mb-2' },
|
|
@@ -14718,7 +14736,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14718
14736
|
article.title
|
|
14719
14737
|
),
|
|
14720
14738
|
React__default.createElement('div', null),
|
|
14721
|
-
visibilitySensor.moment(article.published).format('MMMM Do YYYY, h:mma'),
|
|
14739
|
+
visibilitySensor.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
|
|
14722
14740
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14723
14741
|
'p',
|
|
14724
14742
|
{ className: 'mb-2' },
|
|
@@ -14806,6 +14824,8 @@ var VerticalHero = function VerticalHero(props) {
|
|
|
14806
14824
|
};
|
|
14807
14825
|
|
|
14808
14826
|
var YahooHero = function YahooHero(props) {
|
|
14827
|
+
var removeTimeStamp = props.removeTimeStamp;
|
|
14828
|
+
|
|
14809
14829
|
var topArticle = props.dataRecord[0];
|
|
14810
14830
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
14811
14831
|
var client = props.client;
|
|
@@ -14850,7 +14870,7 @@ var YahooHero = function YahooHero(props) {
|
|
|
14850
14870
|
React__default.createElement(
|
|
14851
14871
|
'p',
|
|
14852
14872
|
null,
|
|
14853
|
-
visibilitySensor.moment(topArticle.published).format('MMMM DD, YYYY hh:mma')
|
|
14873
|
+
visibilitySensor.moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14854
14874
|
),
|
|
14855
14875
|
React__default.createElement(
|
|
14856
14876
|
'p',
|
|
@@ -14885,7 +14905,7 @@ var YahooHero = function YahooHero(props) {
|
|
|
14885
14905
|
React__default.createElement(
|
|
14886
14906
|
'p',
|
|
14887
14907
|
{ className: 'yh-sub-article--info' },
|
|
14888
|
-
visibilitySensor.moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
14908
|
+
visibilitySensor.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14889
14909
|
),
|
|
14890
14910
|
article.authorMapping && article.authorMapping[0] && React__default.createElement(
|
|
14891
14911
|
'p',
|
|
@@ -15070,34 +15090,34 @@ var GridHero = function GridHero(props) {
|
|
|
15070
15090
|
);
|
|
15071
15091
|
};
|
|
15072
15092
|
|
|
15073
|
-
/*
|
|
15074
|
-
Sample query
|
|
15075
|
-
let references = ''
|
|
15076
|
-
if(article.taxonomyMapping.length > 0){
|
|
15077
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15078
|
-
references = references + `references('${ref._ref}') `
|
|
15079
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15080
|
-
references = references + ` && `
|
|
15081
|
-
}
|
|
15082
|
-
})
|
|
15083
|
-
}
|
|
15084
|
-
|
|
15085
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15086
|
-
...,
|
|
15087
|
-
title,
|
|
15088
|
-
summary,
|
|
15089
|
-
thumbnail,
|
|
15090
|
-
url,
|
|
15091
|
-
published,
|
|
15092
|
-
authorMapping[]->,
|
|
15093
|
-
contentCategory->
|
|
15094
|
-
}`
|
|
15095
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15096
|
-
|
|
15097
|
-
Sample usage
|
|
15098
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15099
|
-
|
|
15100
|
-
|
|
15093
|
+
/*
|
|
15094
|
+
Sample query
|
|
15095
|
+
let references = ''
|
|
15096
|
+
if(article.taxonomyMapping.length > 0){
|
|
15097
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15098
|
+
references = references + `references('${ref._ref}') `
|
|
15099
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15100
|
+
references = references + ` && `
|
|
15101
|
+
}
|
|
15102
|
+
})
|
|
15103
|
+
}
|
|
15104
|
+
|
|
15105
|
+
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] {
|
|
15106
|
+
...,
|
|
15107
|
+
title,
|
|
15108
|
+
summary,
|
|
15109
|
+
thumbnail,
|
|
15110
|
+
url,
|
|
15111
|
+
published,
|
|
15112
|
+
authorMapping[]->,
|
|
15113
|
+
contentCategory->
|
|
15114
|
+
}`
|
|
15115
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15116
|
+
|
|
15117
|
+
Sample usage
|
|
15118
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15119
|
+
|
|
15120
|
+
|
|
15101
15121
|
*/
|
|
15102
15122
|
var RelatedContent = function RelatedContent(props) {
|
|
15103
15123
|
var client = props.client,
|
|
@@ -15164,21 +15184,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15164
15184
|
);
|
|
15165
15185
|
};
|
|
15166
15186
|
|
|
15167
|
-
/*
|
|
15168
|
-
Example usage - targetedonc.com/latest-conference
|
|
15169
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15170
|
-
...,
|
|
15171
|
-
title,
|
|
15172
|
-
summary,
|
|
15173
|
-
thumbnail,
|
|
15174
|
-
url,
|
|
15175
|
-
published,
|
|
15176
|
-
documentGroup->,
|
|
15177
|
-
contentCategory->,
|
|
15178
|
-
'pageNumber': ${currentPage}
|
|
15179
|
-
}`
|
|
15180
|
-
|
|
15181
|
-
const posts = await client.fetch(query, params)
|
|
15187
|
+
/*
|
|
15188
|
+
Example usage - targetedonc.com/latest-conference
|
|
15189
|
+
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] {
|
|
15190
|
+
...,
|
|
15191
|
+
title,
|
|
15192
|
+
summary,
|
|
15193
|
+
thumbnail,
|
|
15194
|
+
url,
|
|
15195
|
+
published,
|
|
15196
|
+
documentGroup->,
|
|
15197
|
+
contentCategory->,
|
|
15198
|
+
'pageNumber': ${currentPage}
|
|
15199
|
+
}`
|
|
15200
|
+
|
|
15201
|
+
const posts = await client.fetch(query, params)
|
|
15182
15202
|
*/
|
|
15183
15203
|
|
|
15184
15204
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -15805,27 +15825,27 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
15805
15825
|
};
|
|
15806
15826
|
|
|
15807
15827
|
var KMTracker = function KMTracker(props) {
|
|
15808
|
-
|
|
15828
|
+
var id = props.id;
|
|
15809
15829
|
|
|
15810
|
-
|
|
15830
|
+
if (document && id) {
|
|
15811
15831
|
(function () {
|
|
15812
|
-
|
|
15832
|
+
var ecnJquery = document.createElement('script');
|
|
15813
15833
|
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15834
|
+
ecnJquery.type = 'text/javascript';
|
|
15835
|
+
ecnJquery.async = true;
|
|
15836
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
15817
15837
|
|
|
15818
|
-
|
|
15838
|
+
var ecnScript = document.createElement('script');
|
|
15819
15839
|
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15840
|
+
ecnScript.type = 'text/javascript';
|
|
15841
|
+
ecnScript.async = true;
|
|
15842
|
+
ecnScript.id = 'km-tracker';
|
|
15843
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
15824
15844
|
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15845
|
+
document.head.appendChild(ecnJquery);
|
|
15846
|
+
document.head.appendChild(ecnScript);
|
|
15847
|
+
})();
|
|
15848
|
+
}
|
|
15829
15849
|
};
|
|
15830
15850
|
|
|
15831
15851
|
exports.AdSlot = AdSlot.DFPAdSlot;
|