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