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