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