@mjhls/mjh-framework 1.0.293 → 1.0.294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -171
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Figure-0681dd7d.js → Figure-167c0214.js} +1 -1
- package/dist/cjs/{GridContent-02acbd72.js → GridContent-fa2e1b56.js} +2 -2
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-c6ad2f0a.js → Normal-61221bc6.js} +29 -29
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-03364755.js → TaxonomyCard-4210753c.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +14 -12
- package/dist/cjs/{YoutubeGroup-98ffbc57.js → YoutubeGroup-39eba427.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
- package/dist/cjs/index.js +536 -548
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-cff72982.js → Figure-9f21ef27.js} +1 -1
- package/dist/esm/{GridContent-96716e42.js → GridContent-88ed988c.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-73a8596f.js → Normal-3a537c0a.js} +29 -29
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-8d8c0d6f.js → TaxonomyCard-1d039949.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +14 -12
- package/dist/esm/{YoutubeGroup-562ed456.js → YoutubeGroup-f59297bb.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
- package/dist/esm/index.js +539 -551
- package/package.json +103 -103
package/dist/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
|
|
|
17
17
|
import Link from 'next/link';
|
|
18
18
|
import Router, { useRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
21
21
|
import './index-5f9f807a.js';
|
|
22
22
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
@@ -27,17 +27,17 @@ import './promise-e3480f1c.js';
|
|
|
27
27
|
import './ADInfeed-ac3ac372.js';
|
|
28
28
|
export { default as DeckContent } from './DeckContent.js';
|
|
29
29
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
|
|
30
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
30
|
+
export { A as AD, G as GridContent } from './GridContent-88ed988c.js';
|
|
31
31
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
32
32
|
import 'react-bootstrap/Media';
|
|
33
33
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
34
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
35
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
34
|
+
import { B as BlockContent } from './TaxonomyCard-1d039949.js';
|
|
35
|
+
export { T as TaxonomyCard } from './TaxonomyCard-1d039949.js';
|
|
36
36
|
import './react-social-icons-a7d5c5c7.js';
|
|
37
37
|
import GroupDeck from './GroupDeck.js';
|
|
38
38
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
39
|
-
import { g as getYoutubeId } from './YoutubeGroup-
|
|
40
|
-
export { Y as YoutubeGroup } from './YoutubeGroup-
|
|
39
|
+
import { g as getYoutubeId } from './YoutubeGroup-f59297bb.js';
|
|
40
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
|
|
41
41
|
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
|
|
42
42
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
43
43
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
@@ -49,8 +49,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
49
49
|
import 'react-bootstrap/Badge';
|
|
50
50
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
51
51
|
import Spinner from 'react-bootstrap/Spinner';
|
|
52
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
53
|
-
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-
|
|
52
|
+
import { M as MdPictureAsPdf } from './Normal-3a537c0a.js';
|
|
53
|
+
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-3a537c0a.js';
|
|
54
54
|
import 'react-bootstrap/ListGroup';
|
|
55
55
|
import Head from 'next/head';
|
|
56
56
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -3195,18 +3195,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3195
3195
|
);
|
|
3196
3196
|
};
|
|
3197
3197
|
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3198
|
+
var isArray = Array.isArray;
|
|
3199
|
+
var keyList = Object.keys;
|
|
3200
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3201
3201
|
|
|
3202
3202
|
var fastDeepEqual = function equal(a, b) {
|
|
3203
3203
|
if (a === b) return true;
|
|
3204
3204
|
|
|
3205
3205
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3206
|
-
|
|
3206
|
+
var arrA = isArray(a)
|
|
3207
|
+
, arrB = isArray(b)
|
|
3208
|
+
, i
|
|
3209
|
+
, length
|
|
3210
|
+
, key;
|
|
3207
3211
|
|
|
3208
|
-
|
|
3209
|
-
if (Array.isArray(a)) {
|
|
3212
|
+
if (arrA && arrB) {
|
|
3210
3213
|
length = a.length;
|
|
3211
3214
|
if (length != b.length) return false;
|
|
3212
3215
|
for (i = length; i-- !== 0;)
|
|
@@ -3214,29 +3217,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3214
3217
|
return true;
|
|
3215
3218
|
}
|
|
3216
3219
|
|
|
3220
|
+
if (arrA != arrB) return false;
|
|
3217
3221
|
|
|
3222
|
+
var dateA = a instanceof Date
|
|
3223
|
+
, dateB = b instanceof Date;
|
|
3224
|
+
if (dateA != dateB) return false;
|
|
3225
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3218
3226
|
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
if (
|
|
3227
|
+
var regexpA = a instanceof RegExp
|
|
3228
|
+
, regexpB = b instanceof RegExp;
|
|
3229
|
+
if (regexpA != regexpB) return false;
|
|
3230
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3222
3231
|
|
|
3223
|
-
keys =
|
|
3232
|
+
var keys = keyList(a);
|
|
3224
3233
|
length = keys.length;
|
|
3225
|
-
|
|
3234
|
+
|
|
3235
|
+
if (length !== keyList(b).length)
|
|
3236
|
+
return false;
|
|
3226
3237
|
|
|
3227
3238
|
for (i = length; i-- !== 0;)
|
|
3228
|
-
if (!
|
|
3239
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3229
3240
|
|
|
3230
3241
|
for (i = length; i-- !== 0;) {
|
|
3231
|
-
|
|
3232
|
-
|
|
3242
|
+
key = keys[i];
|
|
3233
3243
|
if (!equal(a[key], b[key])) return false;
|
|
3234
3244
|
}
|
|
3235
3245
|
|
|
3236
3246
|
return true;
|
|
3237
3247
|
}
|
|
3238
3248
|
|
|
3239
|
-
// true if both NaN, false otherwise
|
|
3240
3249
|
return a!==a && b!==b;
|
|
3241
3250
|
};
|
|
3242
3251
|
|
|
@@ -4259,7 +4268,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4259
4268
|
var base = '', array = false, braces = ['{', '}'];
|
|
4260
4269
|
|
|
4261
4270
|
// Make Array say that they are Array
|
|
4262
|
-
if (isArray(value)) {
|
|
4271
|
+
if (isArray$1(value)) {
|
|
4263
4272
|
array = true;
|
|
4264
4273
|
braces = ['[', ']'];
|
|
4265
4274
|
}
|
|
@@ -4438,7 +4447,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4438
4447
|
|
|
4439
4448
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4440
4449
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4441
|
-
function isArray(ar) {
|
|
4450
|
+
function isArray$1(ar) {
|
|
4442
4451
|
return Array.isArray(ar);
|
|
4443
4452
|
}
|
|
4444
4453
|
|
|
@@ -4565,7 +4574,7 @@ var util = {
|
|
|
4565
4574
|
isNullOrUndefined: isNullOrUndefined,
|
|
4566
4575
|
isNull: isNull,
|
|
4567
4576
|
isBoolean: isBoolean,
|
|
4568
|
-
isArray: isArray,
|
|
4577
|
+
isArray: isArray$1,
|
|
4569
4578
|
inspect: inspect,
|
|
4570
4579
|
deprecate: deprecate,
|
|
4571
4580
|
format: format,
|
|
@@ -5232,235 +5241,199 @@ module.exports = exports['default'];
|
|
|
5232
5241
|
|
|
5233
5242
|
var youTubePlayer = unwrapExports(dist);
|
|
5234
5243
|
|
|
5235
|
-
function
|
|
5244
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
5236
5245
|
|
|
5237
|
-
function
|
|
5246
|
+
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; };
|
|
5238
5247
|
|
|
5239
|
-
function
|
|
5240
|
-
|
|
5241
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5242
|
-
|
|
5243
|
-
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); }; }
|
|
5244
|
-
|
|
5245
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5246
|
-
|
|
5247
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5248
|
-
|
|
5249
|
-
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; } }
|
|
5250
|
-
|
|
5251
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5252
|
-
|
|
5253
|
-
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); }
|
|
5254
|
-
|
|
5255
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5248
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5256
5249
|
|
|
5257
|
-
function
|
|
5250
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
5258
5251
|
|
|
5259
|
-
function
|
|
5252
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5260
5253
|
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
*
|
|
5264
|
-
*
|
|
5265
|
-
* @param {Object}
|
|
5266
|
-
* @param {Object} props
|
|
5254
|
+
/**
|
|
5255
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5256
|
+
*
|
|
5257
|
+
* @param {Object} prevProps
|
|
5258
|
+
* @param {Object} props
|
|
5267
5259
|
*/
|
|
5268
|
-
|
|
5269
5260
|
function shouldUpdateVideo(prevProps, props) {
|
|
5270
5261
|
// A changing video should always trigger an update
|
|
5271
5262
|
if (prevProps.videoId !== props.videoId) {
|
|
5272
5263
|
return true;
|
|
5273
|
-
}
|
|
5274
|
-
// update.
|
|
5275
|
-
|
|
5264
|
+
}
|
|
5276
5265
|
|
|
5266
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5267
|
+
// update.
|
|
5277
5268
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5278
5269
|
var vars = props.opts.playerVars || {};
|
|
5270
|
+
|
|
5279
5271
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5280
5272
|
}
|
|
5281
|
-
/**
|
|
5282
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5283
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5284
|
-
* player reset is necessary.
|
|
5285
|
-
*
|
|
5286
|
-
* @param {Object} opts
|
|
5287
|
-
*/
|
|
5288
|
-
|
|
5289
5273
|
|
|
5274
|
+
/**
|
|
5275
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5276
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5277
|
+
* player reset is necessary.
|
|
5278
|
+
*
|
|
5279
|
+
* @param {Object} opts
|
|
5280
|
+
*/
|
|
5290
5281
|
function filterResetOptions(opts) {
|
|
5291
|
-
return
|
|
5292
|
-
playerVars:
|
|
5282
|
+
return _extends({}, opts, {
|
|
5283
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5293
5284
|
autoplay: 0,
|
|
5294
5285
|
start: 0,
|
|
5295
5286
|
end: 0
|
|
5296
5287
|
})
|
|
5297
5288
|
});
|
|
5298
5289
|
}
|
|
5299
|
-
/**
|
|
5300
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5301
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5302
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5303
|
-
* those.
|
|
5304
|
-
*
|
|
5305
|
-
* @param {Object} prevProps
|
|
5306
|
-
* @param {Object} props
|
|
5307
|
-
*/
|
|
5308
|
-
|
|
5309
5290
|
|
|
5291
|
+
/**
|
|
5292
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5293
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5294
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5295
|
+
* those.
|
|
5296
|
+
*
|
|
5297
|
+
* @param {Object} prevProps
|
|
5298
|
+
* @param {Object} props
|
|
5299
|
+
*/
|
|
5310
5300
|
function shouldResetPlayer(prevProps, props) {
|
|
5311
5301
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5312
5302
|
}
|
|
5313
|
-
/**
|
|
5314
|
-
* Check whether a props change should result in an id or className update.
|
|
5315
|
-
*
|
|
5316
|
-
* @param {Object} prevProps
|
|
5317
|
-
* @param {Object} props
|
|
5318
|
-
*/
|
|
5319
|
-
|
|
5320
5303
|
|
|
5304
|
+
/**
|
|
5305
|
+
* Check whether a props change should result in an id or className update.
|
|
5306
|
+
*
|
|
5307
|
+
* @param {Object} prevProps
|
|
5308
|
+
* @param {Object} props
|
|
5309
|
+
*/
|
|
5321
5310
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5322
5311
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5323
5312
|
}
|
|
5324
5313
|
|
|
5325
|
-
var YouTube =
|
|
5314
|
+
var YouTube = function (_React$Component) {
|
|
5326
5315
|
_inherits(YouTube, _React$Component);
|
|
5327
5316
|
|
|
5328
|
-
var _super = _createSuper(YouTube);
|
|
5329
|
-
|
|
5330
|
-
/**
|
|
5331
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5332
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5333
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5334
|
-
*/
|
|
5335
5317
|
function YouTube(props) {
|
|
5336
|
-
var _this;
|
|
5337
|
-
|
|
5338
5318
|
_classCallCheck(this, YouTube);
|
|
5339
5319
|
|
|
5340
|
-
_this =
|
|
5320
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5341
5321
|
|
|
5342
|
-
|
|
5322
|
+
_this.onPlayerReady = function (event) {
|
|
5343
5323
|
return _this.props.onReady(event);
|
|
5344
|
-
}
|
|
5324
|
+
};
|
|
5345
5325
|
|
|
5346
|
-
|
|
5326
|
+
_this.onPlayerError = function (event) {
|
|
5347
5327
|
return _this.props.onError(event);
|
|
5348
|
-
}
|
|
5328
|
+
};
|
|
5349
5329
|
|
|
5350
|
-
|
|
5330
|
+
_this.onPlayerStateChange = function (event) {
|
|
5351
5331
|
_this.props.onStateChange(event);
|
|
5352
|
-
|
|
5353
5332
|
switch (event.data) {
|
|
5333
|
+
|
|
5354
5334
|
case YouTube.PlayerState.ENDED:
|
|
5355
5335
|
_this.props.onEnd(event);
|
|
5356
|
-
|
|
5357
5336
|
break;
|
|
5358
5337
|
|
|
5359
5338
|
case YouTube.PlayerState.PLAYING:
|
|
5360
5339
|
_this.props.onPlay(event);
|
|
5361
|
-
|
|
5362
5340
|
break;
|
|
5363
5341
|
|
|
5364
5342
|
case YouTube.PlayerState.PAUSED:
|
|
5365
5343
|
_this.props.onPause(event);
|
|
5366
|
-
|
|
5367
5344
|
break;
|
|
5368
5345
|
}
|
|
5369
|
-
}
|
|
5346
|
+
};
|
|
5370
5347
|
|
|
5371
|
-
|
|
5348
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5372
5349
|
return _this.props.onPlaybackRateChange(event);
|
|
5373
|
-
}
|
|
5350
|
+
};
|
|
5374
5351
|
|
|
5375
|
-
|
|
5352
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5376
5353
|
return _this.props.onPlaybackQualityChange(event);
|
|
5377
|
-
}
|
|
5354
|
+
};
|
|
5378
5355
|
|
|
5379
|
-
|
|
5356
|
+
_this.createPlayer = function () {
|
|
5380
5357
|
// do not attempt to create a player server-side, it won't work
|
|
5381
|
-
if (typeof document === 'undefined') return;
|
|
5382
|
-
|
|
5383
|
-
var playerOpts =
|
|
5358
|
+
if (typeof document === 'undefined') return;
|
|
5359
|
+
// create player
|
|
5360
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5384
5361
|
// preload the `videoId` video if one is already given
|
|
5385
5362
|
videoId: _this.props.videoId
|
|
5386
5363
|
});
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5364
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5365
|
+
// attach event handlers
|
|
5390
5366
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5391
|
-
|
|
5392
5367
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5393
|
-
|
|
5394
5368
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5395
|
-
|
|
5396
5369
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5397
|
-
|
|
5398
5370
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5399
|
-
}
|
|
5371
|
+
};
|
|
5400
5372
|
|
|
5401
|
-
|
|
5373
|
+
_this.resetPlayer = function () {
|
|
5402
5374
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5403
|
-
}
|
|
5375
|
+
};
|
|
5404
5376
|
|
|
5405
|
-
|
|
5377
|
+
_this.updatePlayer = function () {
|
|
5406
5378
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5407
5379
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5408
5380
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5409
5381
|
});
|
|
5410
|
-
}
|
|
5382
|
+
};
|
|
5411
5383
|
|
|
5412
|
-
|
|
5384
|
+
_this.updateVideo = function () {
|
|
5413
5385
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5414
5386
|
_this.internalPlayer.stopVideo();
|
|
5415
|
-
|
|
5416
5387
|
return;
|
|
5417
|
-
}
|
|
5418
|
-
|
|
5388
|
+
}
|
|
5419
5389
|
|
|
5390
|
+
// set queueing options
|
|
5420
5391
|
var autoplay = false;
|
|
5421
5392
|
var opts = {
|
|
5422
5393
|
videoId: _this.props.videoId
|
|
5423
5394
|
};
|
|
5424
|
-
|
|
5425
5395
|
if ('playerVars' in _this.props.opts) {
|
|
5426
5396
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5427
|
-
|
|
5428
5397
|
if ('start' in _this.props.opts.playerVars) {
|
|
5429
5398
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5430
5399
|
}
|
|
5431
|
-
|
|
5432
5400
|
if ('end' in _this.props.opts.playerVars) {
|
|
5433
5401
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5434
5402
|
}
|
|
5435
|
-
}
|
|
5436
|
-
|
|
5403
|
+
}
|
|
5437
5404
|
|
|
5405
|
+
// if autoplay is enabled loadVideoById
|
|
5438
5406
|
if (autoplay) {
|
|
5439
5407
|
_this.internalPlayer.loadVideoById(opts);
|
|
5440
|
-
|
|
5441
5408
|
return;
|
|
5442
|
-
}
|
|
5443
|
-
|
|
5444
|
-
|
|
5409
|
+
}
|
|
5410
|
+
// default behaviour just cues the video
|
|
5445
5411
|
_this.internalPlayer.cueVideoById(opts);
|
|
5446
|
-
}
|
|
5412
|
+
};
|
|
5447
5413
|
|
|
5448
|
-
|
|
5414
|
+
_this.refContainer = function (container) {
|
|
5449
5415
|
_this.container = container;
|
|
5450
|
-
}
|
|
5416
|
+
};
|
|
5451
5417
|
|
|
5452
5418
|
_this.container = null;
|
|
5453
5419
|
_this.internalPlayer = null;
|
|
5454
5420
|
return _this;
|
|
5455
5421
|
}
|
|
5456
5422
|
|
|
5423
|
+
/**
|
|
5424
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5425
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5426
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5427
|
+
*/
|
|
5428
|
+
|
|
5429
|
+
|
|
5457
5430
|
_createClass(YouTube, [{
|
|
5458
|
-
key:
|
|
5431
|
+
key: 'componentDidMount',
|
|
5459
5432
|
value: function componentDidMount() {
|
|
5460
5433
|
this.createPlayer();
|
|
5461
5434
|
}
|
|
5462
5435
|
}, {
|
|
5463
|
-
key:
|
|
5436
|
+
key: 'componentDidUpdate',
|
|
5464
5437
|
value: function componentDidUpdate(prevProps) {
|
|
5465
5438
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5466
5439
|
this.updatePlayer();
|
|
@@ -5475,58 +5448,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5475
5448
|
}
|
|
5476
5449
|
}
|
|
5477
5450
|
}, {
|
|
5478
|
-
key:
|
|
5451
|
+
key: 'componentWillUnmount',
|
|
5479
5452
|
value: function componentWillUnmount() {
|
|
5480
|
-
/**
|
|
5481
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5482
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5483
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5484
|
-
* this method isn't quick enough to reset the container element.
|
|
5453
|
+
/**
|
|
5454
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5455
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5456
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5457
|
+
* this method isn't quick enough to reset the container element.
|
|
5485
5458
|
*/
|
|
5486
5459
|
this.internalPlayer.destroy();
|
|
5487
5460
|
}
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
*
|
|
5491
|
-
*
|
|
5492
|
-
*
|
|
5461
|
+
|
|
5462
|
+
/**
|
|
5463
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5464
|
+
*
|
|
5465
|
+
* @param {Object} event
|
|
5466
|
+
* @param {Object} target - player object
|
|
5467
|
+
*/
|
|
5468
|
+
|
|
5469
|
+
|
|
5470
|
+
/**
|
|
5471
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5472
|
+
*
|
|
5473
|
+
* @param {Object} event
|
|
5474
|
+
* @param {Integer} data - error type
|
|
5475
|
+
* @param {Object} target - player object
|
|
5476
|
+
*/
|
|
5477
|
+
|
|
5478
|
+
|
|
5479
|
+
/**
|
|
5480
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5481
|
+
*
|
|
5482
|
+
* @param {Object} event
|
|
5483
|
+
* @param {Integer} data - status change type
|
|
5484
|
+
* @param {Object} target - actual YT player
|
|
5485
|
+
*/
|
|
5486
|
+
|
|
5487
|
+
|
|
5488
|
+
/**
|
|
5489
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5490
|
+
*
|
|
5491
|
+
* @param {Object} event
|
|
5492
|
+
* @param {Float} data - playback rate
|
|
5493
|
+
* @param {Object} target - actual YT player
|
|
5494
|
+
*/
|
|
5495
|
+
|
|
5496
|
+
|
|
5497
|
+
/**
|
|
5498
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5499
|
+
*
|
|
5500
|
+
* @param {Object} event
|
|
5501
|
+
* @param {String} data - playback quality
|
|
5502
|
+
* @param {Object} target - actual YT player
|
|
5503
|
+
*/
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
/**
|
|
5507
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5508
|
+
*/
|
|
5509
|
+
|
|
5510
|
+
|
|
5511
|
+
/**
|
|
5512
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5513
|
+
*/
|
|
5514
|
+
|
|
5515
|
+
|
|
5516
|
+
/**
|
|
5517
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5518
|
+
* React should update this automatically but since the Youtube Player API
|
|
5519
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5520
|
+
*/
|
|
5521
|
+
|
|
5522
|
+
|
|
5523
|
+
/**
|
|
5524
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5525
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5526
|
+
* Youtube Player API methods to update the video.
|
|
5493
5527
|
*/
|
|
5494
5528
|
|
|
5495
5529
|
}, {
|
|
5496
|
-
key:
|
|
5530
|
+
key: 'render',
|
|
5497
5531
|
value: function render() {
|
|
5498
|
-
return
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
id: this.props.id,
|
|
5502
|
-
|
|
5503
|
-
ref: this.refContainer
|
|
5504
|
-
}));
|
|
5532
|
+
return React__default.createElement(
|
|
5533
|
+
'div',
|
|
5534
|
+
{ className: this.props.containerClassName },
|
|
5535
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5536
|
+
);
|
|
5505
5537
|
}
|
|
5506
5538
|
}]);
|
|
5507
5539
|
|
|
5508
5540
|
return YouTube;
|
|
5509
5541
|
}(React__default.Component);
|
|
5510
5542
|
|
|
5511
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5512
|
-
UNSTARTED: -1,
|
|
5513
|
-
ENDED: 0,
|
|
5514
|
-
PLAYING: 1,
|
|
5515
|
-
PAUSED: 2,
|
|
5516
|
-
BUFFERING: 3,
|
|
5517
|
-
CUED: 5
|
|
5518
|
-
});
|
|
5519
|
-
|
|
5520
5543
|
YouTube.propTypes = {
|
|
5521
5544
|
videoId: PropTypes.string,
|
|
5545
|
+
|
|
5522
5546
|
// custom ID for player element
|
|
5523
5547
|
id: PropTypes.string,
|
|
5548
|
+
|
|
5524
5549
|
// custom class name for player element
|
|
5525
5550
|
className: PropTypes.string,
|
|
5526
5551
|
// custom class name for player container element
|
|
5527
5552
|
containerClassName: PropTypes.string,
|
|
5553
|
+
|
|
5528
5554
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5529
5555
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5556
|
+
|
|
5530
5557
|
// event subscriptions
|
|
5531
5558
|
onReady: PropTypes.func,
|
|
5532
5559
|
onError: PropTypes.func,
|
|
@@ -5538,7 +5565,6 @@ YouTube.propTypes = {
|
|
|
5538
5565
|
onPlaybackQualityChange: PropTypes.func
|
|
5539
5566
|
};
|
|
5540
5567
|
YouTube.defaultProps = {
|
|
5541
|
-
videoId: null,
|
|
5542
5568
|
id: null,
|
|
5543
5569
|
className: null,
|
|
5544
5570
|
opts: {},
|
|
@@ -5552,6 +5578,14 @@ YouTube.defaultProps = {
|
|
|
5552
5578
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5553
5579
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5554
5580
|
};
|
|
5581
|
+
YouTube.PlayerState = {
|
|
5582
|
+
UNSTARTED: -1,
|
|
5583
|
+
ENDED: 0,
|
|
5584
|
+
PLAYING: 1,
|
|
5585
|
+
PAUSED: 2,
|
|
5586
|
+
BUFFERING: 3,
|
|
5587
|
+
CUED: 5
|
|
5588
|
+
};
|
|
5555
5589
|
|
|
5556
5590
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5557
5591
|
var url = _ref.url;
|
|
@@ -6575,8 +6609,8 @@ var window_1 = win;
|
|
|
6575
6609
|
|
|
6576
6610
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6577
6611
|
|
|
6578
|
-
function _extends() {
|
|
6579
|
-
_extends = Object.assign || function (target) {
|
|
6612
|
+
function _extends$1() {
|
|
6613
|
+
_extends$1 = Object.assign || function (target) {
|
|
6580
6614
|
for (var i = 1; i < arguments.length; i++) {
|
|
6581
6615
|
var source = arguments[i];
|
|
6582
6616
|
|
|
@@ -6590,7 +6624,7 @@ function _extends() {
|
|
|
6590
6624
|
return target;
|
|
6591
6625
|
};
|
|
6592
6626
|
|
|
6593
|
-
return _extends.apply(this, arguments);
|
|
6627
|
+
return _extends$1.apply(this, arguments);
|
|
6594
6628
|
}
|
|
6595
6629
|
|
|
6596
6630
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6599,7 +6633,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6599
6633
|
subClass.__proto__ = superClass;
|
|
6600
6634
|
}
|
|
6601
6635
|
|
|
6602
|
-
function _assertThisInitialized
|
|
6636
|
+
function _assertThisInitialized(self) {
|
|
6603
6637
|
if (self === void 0) {
|
|
6604
6638
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6605
6639
|
}
|
|
@@ -6609,8 +6643,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6609
6643
|
|
|
6610
6644
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6611
6645
|
|
|
6612
|
-
function _extends$1() {
|
|
6613
|
-
_extends$1 = Object.assign || function (target) {
|
|
6646
|
+
function _extends$1$1() {
|
|
6647
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6614
6648
|
for (var i = 1; i < arguments.length; i++) {
|
|
6615
6649
|
var source = arguments[i];
|
|
6616
6650
|
|
|
@@ -6624,7 +6658,7 @@ function _extends$1() {
|
|
|
6624
6658
|
return target;
|
|
6625
6659
|
};
|
|
6626
6660
|
|
|
6627
|
-
return _extends$1.apply(this, arguments);
|
|
6661
|
+
return _extends$1$1.apply(this, arguments);
|
|
6628
6662
|
}
|
|
6629
6663
|
|
|
6630
6664
|
var version$1 = "1.7.1";
|
|
@@ -6632,7 +6666,7 @@ var version$1 = "1.7.1";
|
|
|
6632
6666
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6633
6667
|
var version$1$1 = "1.2.0";
|
|
6634
6668
|
|
|
6635
|
-
var _typeof
|
|
6669
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6636
6670
|
return typeof obj;
|
|
6637
6671
|
} : function (obj) {
|
|
6638
6672
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6767,7 +6801,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6767
6801
|
|
|
6768
6802
|
var qs = '';
|
|
6769
6803
|
|
|
6770
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6804
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6771
6805
|
qs = getQueryString(queryParams);
|
|
6772
6806
|
}
|
|
6773
6807
|
|
|
@@ -7001,7 +7035,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7001
7035
|
el.style.width = '100%';
|
|
7002
7036
|
el.style.height = '100%';
|
|
7003
7037
|
|
|
7004
|
-
var responsive = _extends$1({
|
|
7038
|
+
var responsive = _extends$1$1({
|
|
7005
7039
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7006
7040
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7007
7041
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7686,7 +7720,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7686
7720
|
|
|
7687
7721
|
|
|
7688
7722
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7689
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7723
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7690
7724
|
|
|
7691
7725
|
var Promise = params.Promise,
|
|
7692
7726
|
onSuccess = params.onSuccess,
|
|
@@ -7828,7 +7862,7 @@ function (_React$Component) {
|
|
|
7828
7862
|
_this.refNode = ref;
|
|
7829
7863
|
};
|
|
7830
7864
|
|
|
7831
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7865
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7832
7866
|
return _this;
|
|
7833
7867
|
}
|
|
7834
7868
|
/**
|
|
@@ -7849,7 +7883,7 @@ function (_React$Component) {
|
|
|
7849
7883
|
var userSuccess = this.props.onSuccess;
|
|
7850
7884
|
var userFailure = this.props.onFailure;
|
|
7851
7885
|
|
|
7852
|
-
var options = _extends({}, this.props, {
|
|
7886
|
+
var options = _extends$1({}, this.props, {
|
|
7853
7887
|
refNode: this.refNode,
|
|
7854
7888
|
refNodeInsert: 'append',
|
|
7855
7889
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8158,7 +8192,7 @@ function (_React$Component) {
|
|
|
8158
8192
|
;
|
|
8159
8193
|
|
|
8160
8194
|
_proto.render = function render() {
|
|
8161
|
-
var props = _extends({
|
|
8195
|
+
var props = _extends$1({
|
|
8162
8196
|
className: 'brightcove-react-player-loader'
|
|
8163
8197
|
}, this.props.attrs, {
|
|
8164
8198
|
ref: this.setRefNode
|
|
@@ -8574,17 +8608,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8574
8608
|
|
|
8575
8609
|
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; }
|
|
8576
8610
|
|
|
8577
|
-
function
|
|
8578
|
-
|
|
8579
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8580
|
-
|
|
8581
|
-
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."); }
|
|
8611
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8582
8612
|
|
|
8583
|
-
function
|
|
8613
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8584
8614
|
|
|
8585
|
-
function
|
|
8586
|
-
|
|
8587
|
-
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; }
|
|
8615
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8588
8616
|
|
|
8589
8617
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8590
8618
|
|
|
@@ -8714,12 +8742,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8714
8742
|
|
|
8715
8743
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8716
8744
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8717
|
-
|
|
8718
|
-
var
|
|
8719
|
-
|
|
8745
|
+
var _iteratorNormalCompletion = true;
|
|
8746
|
+
var _didIteratorError = false;
|
|
8747
|
+
var _iteratorError = undefined;
|
|
8720
8748
|
|
|
8721
8749
|
try {
|
|
8722
|
-
for (_iterator.
|
|
8750
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8723
8751
|
var p = _step.value;
|
|
8724
8752
|
|
|
8725
8753
|
if (props$1[p]) {
|
|
@@ -8734,9 +8762,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8734
8762
|
}
|
|
8735
8763
|
}
|
|
8736
8764
|
} catch (err) {
|
|
8737
|
-
|
|
8765
|
+
_didIteratorError = true;
|
|
8766
|
+
_iteratorError = err;
|
|
8738
8767
|
} finally {
|
|
8739
|
-
|
|
8768
|
+
try {
|
|
8769
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8770
|
+
_iterator["return"]();
|
|
8771
|
+
}
|
|
8772
|
+
} finally {
|
|
8773
|
+
if (_didIteratorError) {
|
|
8774
|
+
throw _iteratorError;
|
|
8775
|
+
}
|
|
8776
|
+
}
|
|
8740
8777
|
}
|
|
8741
8778
|
|
|
8742
8779
|
return config;
|
|
@@ -8883,16 +8920,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8883
8920
|
|
|
8884
8921
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8885
8922
|
|
|
8886
|
-
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); }; }
|
|
8887
|
-
|
|
8888
8923
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8889
8924
|
|
|
8890
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8891
|
-
|
|
8892
|
-
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; } }
|
|
8893
|
-
|
|
8894
8925
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8895
8926
|
|
|
8927
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8928
|
+
|
|
8896
8929
|
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); }
|
|
8897
8930
|
|
|
8898
8931
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8901,12 +8934,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8901
8934
|
|
|
8902
8935
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8903
8936
|
|
|
8904
|
-
var Player =
|
|
8937
|
+
var Player =
|
|
8938
|
+
/*#__PURE__*/
|
|
8939
|
+
function (_Component) {
|
|
8905
8940
|
_inherits(Player, _Component);
|
|
8906
8941
|
|
|
8907
|
-
var _super = _createSuper(Player);
|
|
8908
|
-
|
|
8909
8942
|
function Player() {
|
|
8943
|
+
var _getPrototypeOf2;
|
|
8944
|
+
|
|
8910
8945
|
var _this;
|
|
8911
8946
|
|
|
8912
8947
|
_classCallCheck(this, Player);
|
|
@@ -8915,7 +8950,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
8915
8950
|
_args[_key] = arguments[_key];
|
|
8916
8951
|
}
|
|
8917
8952
|
|
|
8918
|
-
_this =
|
|
8953
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
8919
8954
|
|
|
8920
8955
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8921
8956
|
|
|
@@ -9240,7 +9275,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9240
9275
|
return null;
|
|
9241
9276
|
}
|
|
9242
9277
|
|
|
9243
|
-
return
|
|
9278
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9244
9279
|
ref: this.ref,
|
|
9245
9280
|
onReady: this.handleReady,
|
|
9246
9281
|
onPlay: this.handlePlay,
|
|
@@ -9301,16 +9336,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9301
9336
|
|
|
9302
9337
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9303
9338
|
|
|
9304
|
-
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); }; }
|
|
9305
|
-
|
|
9306
9339
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9307
9340
|
|
|
9308
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9309
|
-
|
|
9310
|
-
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; } }
|
|
9311
|
-
|
|
9312
9341
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9313
9342
|
|
|
9343
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9344
|
+
|
|
9314
9345
|
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); }
|
|
9315
9346
|
|
|
9316
9347
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9322,12 +9353,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9322
9353
|
function createSinglePlayer(activePlayer) {
|
|
9323
9354
|
var _class, _temp;
|
|
9324
9355
|
|
|
9325
|
-
return _temp = _class =
|
|
9356
|
+
return _temp = _class =
|
|
9357
|
+
/*#__PURE__*/
|
|
9358
|
+
function (_Component) {
|
|
9326
9359
|
_inherits(SinglePlayer, _Component);
|
|
9327
9360
|
|
|
9328
|
-
var _super = _createSuper(SinglePlayer);
|
|
9329
|
-
|
|
9330
9361
|
function SinglePlayer() {
|
|
9362
|
+
var _getPrototypeOf2;
|
|
9363
|
+
|
|
9331
9364
|
var _this;
|
|
9332
9365
|
|
|
9333
9366
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9336,7 +9369,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9336
9369
|
args[_key] = arguments[_key];
|
|
9337
9370
|
}
|
|
9338
9371
|
|
|
9339
|
-
_this =
|
|
9372
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9340
9373
|
|
|
9341
9374
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9342
9375
|
|
|
@@ -9404,12 +9437,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9404
9437
|
height = _this$props.height,
|
|
9405
9438
|
Wrapper = _this$props.wrapper;
|
|
9406
9439
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9407
|
-
return
|
|
9440
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9408
9441
|
style: _objectSpread({}, style, {
|
|
9409
9442
|
width: width,
|
|
9410
9443
|
height: height
|
|
9411
9444
|
})
|
|
9412
|
-
}, otherProps),
|
|
9445
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9413
9446
|
ref: this.ref,
|
|
9414
9447
|
activePlayer: activePlayer,
|
|
9415
9448
|
config: this.config
|
|
@@ -9455,31 +9488,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9455
9488
|
|
|
9456
9489
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9457
9490
|
|
|
9458
|
-
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); }; }
|
|
9459
|
-
|
|
9460
9491
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9461
9492
|
|
|
9462
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9463
|
-
|
|
9464
|
-
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; } }
|
|
9465
|
-
|
|
9466
9493
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9467
9494
|
|
|
9495
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9496
|
+
|
|
9468
9497
|
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); }
|
|
9469
9498
|
|
|
9470
9499
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9471
9500
|
|
|
9472
9501
|
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; }
|
|
9473
9502
|
|
|
9474
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9503
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9475
9504
|
|
|
9476
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
9505
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9477
9506
|
|
|
9478
|
-
function
|
|
9479
|
-
|
|
9480
|
-
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; }
|
|
9481
|
-
|
|
9482
|
-
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; }
|
|
9507
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9483
9508
|
|
|
9484
9509
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9485
9510
|
|
|
@@ -9504,12 +9529,14 @@ function parsePlaylist(url) {
|
|
|
9504
9529
|
return {};
|
|
9505
9530
|
}
|
|
9506
9531
|
|
|
9507
|
-
var YouTube =
|
|
9532
|
+
var YouTube =
|
|
9533
|
+
/*#__PURE__*/
|
|
9534
|
+
function (_Component) {
|
|
9508
9535
|
_inherits(YouTube, _Component);
|
|
9509
9536
|
|
|
9510
|
-
var _super = _createSuper(YouTube);
|
|
9511
|
-
|
|
9512
9537
|
function YouTube() {
|
|
9538
|
+
var _getPrototypeOf2;
|
|
9539
|
+
|
|
9513
9540
|
var _this;
|
|
9514
9541
|
|
|
9515
9542
|
_classCallCheck(this, YouTube);
|
|
@@ -9518,7 +9545,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9518
9545
|
args[_key] = arguments[_key];
|
|
9519
9546
|
}
|
|
9520
9547
|
|
|
9521
|
-
_this =
|
|
9548
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9522
9549
|
|
|
9523
9550
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9524
9551
|
|
|
@@ -9706,9 +9733,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9706
9733
|
height: '100%',
|
|
9707
9734
|
display: display
|
|
9708
9735
|
};
|
|
9709
|
-
return
|
|
9736
|
+
return _react["default"].createElement("div", {
|
|
9710
9737
|
style: style
|
|
9711
|
-
},
|
|
9738
|
+
}, _react["default"].createElement("div", {
|
|
9712
9739
|
ref: this.ref
|
|
9713
9740
|
}));
|
|
9714
9741
|
}
|
|
@@ -9764,16 +9791,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9764
9791
|
|
|
9765
9792
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9766
9793
|
|
|
9767
|
-
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); }; }
|
|
9768
|
-
|
|
9769
9794
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9770
9795
|
|
|
9771
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9772
|
-
|
|
9773
|
-
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; } }
|
|
9774
|
-
|
|
9775
9796
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9776
9797
|
|
|
9798
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9799
|
+
|
|
9777
9800
|
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
9801
|
|
|
9779
9802
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9782,14 +9805,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9782
9805
|
|
|
9783
9806
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9784
9807
|
var SDK_GLOBAL = 'SC';
|
|
9785
|
-
var MATCH_URL = /(
|
|
9808
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9786
9809
|
|
|
9787
|
-
var SoundCloud =
|
|
9810
|
+
var SoundCloud =
|
|
9811
|
+
/*#__PURE__*/
|
|
9812
|
+
function (_Component) {
|
|
9788
9813
|
_inherits(SoundCloud, _Component);
|
|
9789
9814
|
|
|
9790
|
-
var _super = _createSuper(SoundCloud);
|
|
9791
|
-
|
|
9792
9815
|
function SoundCloud() {
|
|
9816
|
+
var _getPrototypeOf2;
|
|
9817
|
+
|
|
9793
9818
|
var _this;
|
|
9794
9819
|
|
|
9795
9820
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9798,7 +9823,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9798
9823
|
args[_key] = arguments[_key];
|
|
9799
9824
|
}
|
|
9800
9825
|
|
|
9801
|
-
_this =
|
|
9826
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9802
9827
|
|
|
9803
9828
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9804
9829
|
|
|
@@ -9919,7 +9944,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9919
9944
|
height: '100%',
|
|
9920
9945
|
display: display
|
|
9921
9946
|
};
|
|
9922
|
-
return
|
|
9947
|
+
return _react["default"].createElement("iframe", {
|
|
9923
9948
|
ref: this.ref,
|
|
9924
9949
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9925
9950
|
style: style,
|
|
@@ -9981,16 +10006,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9981
10006
|
|
|
9982
10007
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9983
10008
|
|
|
9984
|
-
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); }; }
|
|
9985
|
-
|
|
9986
10009
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9987
10010
|
|
|
9988
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9989
|
-
|
|
9990
|
-
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; } }
|
|
9991
|
-
|
|
9992
10011
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9993
10012
|
|
|
10013
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10014
|
+
|
|
9994
10015
|
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); }
|
|
9995
10016
|
|
|
9996
10017
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10002,12 +10023,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10002
10023
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10003
10024
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10004
10025
|
|
|
10005
|
-
var Vimeo =
|
|
10026
|
+
var Vimeo =
|
|
10027
|
+
/*#__PURE__*/
|
|
10028
|
+
function (_Component) {
|
|
10006
10029
|
_inherits(Vimeo, _Component);
|
|
10007
10030
|
|
|
10008
|
-
var _super = _createSuper(Vimeo);
|
|
10009
|
-
|
|
10010
10031
|
function Vimeo() {
|
|
10032
|
+
var _getPrototypeOf2;
|
|
10033
|
+
|
|
10011
10034
|
var _this;
|
|
10012
10035
|
|
|
10013
10036
|
_classCallCheck(this, Vimeo);
|
|
@@ -10016,7 +10039,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10016
10039
|
args[_key] = arguments[_key];
|
|
10017
10040
|
}
|
|
10018
10041
|
|
|
10019
|
-
_this =
|
|
10042
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10020
10043
|
|
|
10021
10044
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10022
10045
|
|
|
@@ -10173,7 +10196,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10173
10196
|
overflow: 'hidden',
|
|
10174
10197
|
display: display
|
|
10175
10198
|
};
|
|
10176
|
-
return
|
|
10199
|
+
return _react["default"].createElement("div", {
|
|
10177
10200
|
key: this.props.url,
|
|
10178
10201
|
ref: this.ref,
|
|
10179
10202
|
style: style
|
|
@@ -10233,16 +10256,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10233
10256
|
|
|
10234
10257
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10235
10258
|
|
|
10236
|
-
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
|
-
|
|
10238
10259
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10239
10260
|
|
|
10240
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10241
|
-
|
|
10242
|
-
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; } }
|
|
10243
|
-
|
|
10244
10261
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10245
10262
|
|
|
10263
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10264
|
+
|
|
10246
10265
|
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); }
|
|
10247
10266
|
|
|
10248
10267
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10255,12 +10274,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10255
10274
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10256
10275
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10257
10276
|
|
|
10258
|
-
var Facebook =
|
|
10277
|
+
var Facebook =
|
|
10278
|
+
/*#__PURE__*/
|
|
10279
|
+
function (_Component) {
|
|
10259
10280
|
_inherits(Facebook, _Component);
|
|
10260
10281
|
|
|
10261
|
-
var _super = _createSuper(Facebook);
|
|
10262
|
-
|
|
10263
10282
|
function Facebook() {
|
|
10283
|
+
var _getPrototypeOf2;
|
|
10284
|
+
|
|
10264
10285
|
var _this;
|
|
10265
10286
|
|
|
10266
10287
|
_classCallCheck(this, Facebook);
|
|
@@ -10269,7 +10290,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10269
10290
|
args[_key] = arguments[_key];
|
|
10270
10291
|
}
|
|
10271
10292
|
|
|
10272
|
-
_this =
|
|
10293
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10273
10294
|
|
|
10274
10295
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10275
10296
|
|
|
@@ -10385,7 +10406,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10385
10406
|
width: '100%',
|
|
10386
10407
|
height: '100%'
|
|
10387
10408
|
};
|
|
10388
|
-
return
|
|
10409
|
+
return _react["default"].createElement("div", {
|
|
10389
10410
|
style: style,
|
|
10390
10411
|
id: this.playerID,
|
|
10391
10412
|
className: "fb-video",
|
|
@@ -10445,16 +10466,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10445
10466
|
|
|
10446
10467
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10447
10468
|
|
|
10448
|
-
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); }; }
|
|
10449
|
-
|
|
10450
10469
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10451
10470
|
|
|
10452
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10453
|
-
|
|
10454
|
-
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; } }
|
|
10455
|
-
|
|
10456
10471
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10457
10472
|
|
|
10473
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10474
|
+
|
|
10458
10475
|
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); }
|
|
10459
10476
|
|
|
10460
10477
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10465,12 +10482,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10465
10482
|
var SDK_GLOBAL = 'playerjs';
|
|
10466
10483
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10467
10484
|
|
|
10468
|
-
var Streamable =
|
|
10485
|
+
var Streamable =
|
|
10486
|
+
/*#__PURE__*/
|
|
10487
|
+
function (_Component) {
|
|
10469
10488
|
_inherits(Streamable, _Component);
|
|
10470
10489
|
|
|
10471
|
-
var _super = _createSuper(Streamable);
|
|
10472
|
-
|
|
10473
10490
|
function Streamable() {
|
|
10491
|
+
var _getPrototypeOf2;
|
|
10492
|
+
|
|
10474
10493
|
var _this;
|
|
10475
10494
|
|
|
10476
10495
|
_classCallCheck(this, Streamable);
|
|
@@ -10479,7 +10498,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10479
10498
|
args[_key] = arguments[_key];
|
|
10480
10499
|
}
|
|
10481
10500
|
|
|
10482
|
-
_this =
|
|
10501
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10483
10502
|
|
|
10484
10503
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10485
10504
|
|
|
@@ -10599,7 +10618,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10599
10618
|
width: '100%',
|
|
10600
10619
|
height: '100%'
|
|
10601
10620
|
};
|
|
10602
|
-
return
|
|
10621
|
+
return _react["default"].createElement("iframe", {
|
|
10603
10622
|
ref: this.ref,
|
|
10604
10623
|
src: "https://streamable.com/o/".concat(id),
|
|
10605
10624
|
frameBorder: "0",
|
|
@@ -10660,16 +10679,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10660
10679
|
|
|
10661
10680
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10662
10681
|
|
|
10663
|
-
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); }; }
|
|
10664
|
-
|
|
10665
10682
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10666
10683
|
|
|
10667
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10668
|
-
|
|
10669
|
-
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; } }
|
|
10670
|
-
|
|
10671
10684
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10672
10685
|
|
|
10686
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10687
|
+
|
|
10673
10688
|
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); }
|
|
10674
10689
|
|
|
10675
10690
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10680,48 +10695,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10680
10695
|
var SDK_GLOBAL = 'Wistia';
|
|
10681
10696
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10682
10697
|
|
|
10683
|
-
var Wistia =
|
|
10698
|
+
var Wistia =
|
|
10699
|
+
/*#__PURE__*/
|
|
10700
|
+
function (_Component) {
|
|
10684
10701
|
_inherits(Wistia, _Component);
|
|
10685
10702
|
|
|
10686
|
-
var _super = _createSuper(Wistia);
|
|
10687
|
-
|
|
10688
10703
|
function Wistia() {
|
|
10704
|
+
var _getPrototypeOf2;
|
|
10705
|
+
|
|
10689
10706
|
var _this;
|
|
10690
10707
|
|
|
10691
10708
|
_classCallCheck(this, Wistia);
|
|
10692
10709
|
|
|
10693
|
-
for (var _len = arguments.length,
|
|
10694
|
-
|
|
10710
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10711
|
+
args[_key] = arguments[_key];
|
|
10695
10712
|
}
|
|
10696
10713
|
|
|
10697
|
-
_this =
|
|
10714
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10698
10715
|
|
|
10699
10716
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10700
10717
|
|
|
10701
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10702
|
-
var _this$props;
|
|
10703
|
-
|
|
10704
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10705
|
-
});
|
|
10706
|
-
|
|
10707
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10708
|
-
var _this$props2;
|
|
10709
|
-
|
|
10710
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10711
|
-
});
|
|
10712
|
-
|
|
10713
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10714
|
-
var _this$props3;
|
|
10715
|
-
|
|
10716
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10717
|
-
});
|
|
10718
|
-
|
|
10719
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10720
|
-
var _this$props4;
|
|
10721
|
-
|
|
10722
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10723
|
-
});
|
|
10724
|
-
|
|
10725
10718
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10726
10719
|
_this.callPlayer('mute');
|
|
10727
10720
|
});
|
|
@@ -10743,13 +10736,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10743
10736
|
value: function load(url) {
|
|
10744
10737
|
var _this2 = this;
|
|
10745
10738
|
|
|
10746
|
-
var _this$
|
|
10747
|
-
playing = _this$
|
|
10748
|
-
muted = _this$
|
|
10749
|
-
controls = _this$
|
|
10750
|
-
_onReady = _this$
|
|
10751
|
-
|
|
10752
|
-
|
|
10739
|
+
var _this$props = this.props,
|
|
10740
|
+
playing = _this$props.playing,
|
|
10741
|
+
muted = _this$props.muted,
|
|
10742
|
+
controls = _this$props.controls,
|
|
10743
|
+
_onReady = _this$props.onReady,
|
|
10744
|
+
onPlay = _this$props.onPlay,
|
|
10745
|
+
onPause = _this$props.onPause,
|
|
10746
|
+
onSeek = _this$props.onSeek,
|
|
10747
|
+
onEnded = _this$props.onEnded,
|
|
10748
|
+
config = _this$props.config,
|
|
10749
|
+
onError = _this$props.onError;
|
|
10753
10750
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10754
10751
|
window._wq = window._wq || [];
|
|
10755
10752
|
|
|
@@ -10766,28 +10763,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10766
10763
|
|
|
10767
10764
|
_this2.unbind();
|
|
10768
10765
|
|
|
10769
|
-
_this2.player.bind('play',
|
|
10766
|
+
_this2.player.bind('play', onPlay);
|
|
10770
10767
|
|
|
10771
|
-
_this2.player.bind('pause',
|
|
10768
|
+
_this2.player.bind('pause', onPause);
|
|
10772
10769
|
|
|
10773
|
-
_this2.player.bind('seek',
|
|
10770
|
+
_this2.player.bind('seek', onSeek);
|
|
10774
10771
|
|
|
10775
|
-
_this2.player.bind('end',
|
|
10772
|
+
_this2.player.bind('end', onEnded);
|
|
10776
10773
|
|
|
10777
10774
|
_onReady();
|
|
10778
10775
|
}
|
|
10779
10776
|
});
|
|
10780
10777
|
}, onError);
|
|
10781
10778
|
}
|
|
10782
|
-
}, {
|
|
10783
|
-
key: "unbind",
|
|
10784
|
-
value: function unbind() {
|
|
10785
|
-
this.player.unbind('play', this.onPlay);
|
|
10786
|
-
this.player.unbind('pause', this.onPause);
|
|
10787
|
-
this.player.unbind('seek', this.onSeek);
|
|
10788
|
-
this.player.unbind('end', this.onEnded);
|
|
10789
|
-
} // Proxy methods to prevent listener leaks
|
|
10790
|
-
|
|
10791
10779
|
}, {
|
|
10792
10780
|
key: "play",
|
|
10793
10781
|
value: function play() {
|
|
@@ -10798,6 +10786,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10798
10786
|
value: function pause() {
|
|
10799
10787
|
this.callPlayer('pause');
|
|
10800
10788
|
}
|
|
10789
|
+
}, {
|
|
10790
|
+
key: "unbind",
|
|
10791
|
+
value: function unbind() {
|
|
10792
|
+
var _this$props2 = this.props,
|
|
10793
|
+
onPlay = _this$props2.onPlay,
|
|
10794
|
+
onPause = _this$props2.onPause,
|
|
10795
|
+
onSeek = _this$props2.onSeek,
|
|
10796
|
+
onEnded = _this$props2.onEnded;
|
|
10797
|
+
this.player.unbind('play', onPlay);
|
|
10798
|
+
this.player.unbind('pause', onPause);
|
|
10799
|
+
this.player.unbind('seek', onSeek);
|
|
10800
|
+
this.player.unbind('end', onEnded);
|
|
10801
|
+
}
|
|
10801
10802
|
}, {
|
|
10802
10803
|
key: "stop",
|
|
10803
10804
|
value: function stop() {
|
|
@@ -10843,7 +10844,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10843
10844
|
width: '100%',
|
|
10844
10845
|
height: '100%'
|
|
10845
10846
|
};
|
|
10846
|
-
return
|
|
10847
|
+
return _react["default"].createElement("div", {
|
|
10847
10848
|
key: id,
|
|
10848
10849
|
className: className,
|
|
10849
10850
|
style: style
|
|
@@ -10903,16 +10904,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10903
10904
|
|
|
10904
10905
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10905
10906
|
|
|
10906
|
-
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); }; }
|
|
10907
|
-
|
|
10908
10907
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10909
10908
|
|
|
10910
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10911
|
-
|
|
10912
|
-
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; } }
|
|
10913
|
-
|
|
10914
10909
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10915
10910
|
|
|
10911
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10912
|
+
|
|
10916
10913
|
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); }
|
|
10917
10914
|
|
|
10918
10915
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10925,12 +10922,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10925
10922
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10926
10923
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10927
10924
|
|
|
10928
|
-
var Twitch =
|
|
10925
|
+
var Twitch =
|
|
10926
|
+
/*#__PURE__*/
|
|
10927
|
+
function (_Component) {
|
|
10929
10928
|
_inherits(Twitch, _Component);
|
|
10930
10929
|
|
|
10931
|
-
var _super = _createSuper(Twitch);
|
|
10932
|
-
|
|
10933
10930
|
function Twitch() {
|
|
10931
|
+
var _getPrototypeOf2;
|
|
10932
|
+
|
|
10934
10933
|
var _this;
|
|
10935
10934
|
|
|
10936
10935
|
_classCallCheck(this, Twitch);
|
|
@@ -10939,7 +10938,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10939
10938
|
args[_key] = arguments[_key];
|
|
10940
10939
|
}
|
|
10941
10940
|
|
|
10942
|
-
_this =
|
|
10941
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10943
10942
|
|
|
10944
10943
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10945
10944
|
|
|
@@ -11060,7 +11059,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11060
11059
|
width: '100%',
|
|
11061
11060
|
height: '100%'
|
|
11062
11061
|
};
|
|
11063
|
-
return
|
|
11062
|
+
return _react["default"].createElement("div", {
|
|
11064
11063
|
style: style,
|
|
11065
11064
|
id: this.playerID
|
|
11066
11065
|
});
|
|
@@ -11113,15 +11112,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11113
11112
|
|
|
11114
11113
|
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; }
|
|
11115
11114
|
|
|
11116
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11117
|
-
|
|
11118
|
-
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."); }
|
|
11115
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11119
11116
|
|
|
11120
|
-
function
|
|
11117
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11121
11118
|
|
|
11122
|
-
function
|
|
11123
|
-
|
|
11124
|
-
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; }
|
|
11119
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11125
11120
|
|
|
11126
11121
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11127
11122
|
|
|
@@ -11131,16 +11126,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11131
11126
|
|
|
11132
11127
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11133
11128
|
|
|
11134
|
-
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); }; }
|
|
11135
|
-
|
|
11136
11129
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11137
11130
|
|
|
11138
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11139
|
-
|
|
11140
|
-
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; } }
|
|
11141
|
-
|
|
11142
11131
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11143
11132
|
|
|
11133
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11134
|
+
|
|
11144
11135
|
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); }
|
|
11145
11136
|
|
|
11146
11137
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11152,12 +11143,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11152
11143
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11153
11144
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11154
11145
|
|
|
11155
|
-
var DailyMotion =
|
|
11146
|
+
var DailyMotion =
|
|
11147
|
+
/*#__PURE__*/
|
|
11148
|
+
function (_Component) {
|
|
11156
11149
|
_inherits(DailyMotion, _Component);
|
|
11157
11150
|
|
|
11158
|
-
var _super = _createSuper(DailyMotion);
|
|
11159
|
-
|
|
11160
11151
|
function DailyMotion() {
|
|
11152
|
+
var _getPrototypeOf2;
|
|
11153
|
+
|
|
11161
11154
|
var _this;
|
|
11162
11155
|
|
|
11163
11156
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11166,7 +11159,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11166
11159
|
args[_key] = arguments[_key];
|
|
11167
11160
|
}
|
|
11168
11161
|
|
|
11169
|
-
_this =
|
|
11162
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11170
11163
|
|
|
11171
11164
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11172
11165
|
|
|
@@ -11295,9 +11288,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11295
11288
|
height: '100%',
|
|
11296
11289
|
display: display
|
|
11297
11290
|
};
|
|
11298
|
-
return
|
|
11291
|
+
return _react["default"].createElement("div", {
|
|
11299
11292
|
style: style
|
|
11300
|
-
},
|
|
11293
|
+
}, _react["default"].createElement("div", {
|
|
11301
11294
|
ref: this.ref
|
|
11302
11295
|
}));
|
|
11303
11296
|
}
|
|
@@ -11355,16 +11348,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11355
11348
|
|
|
11356
11349
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11357
11350
|
|
|
11358
|
-
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); }; }
|
|
11359
|
-
|
|
11360
11351
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11361
11352
|
|
|
11362
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11363
|
-
|
|
11364
|
-
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; } }
|
|
11365
|
-
|
|
11366
11353
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11367
11354
|
|
|
11355
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11356
|
+
|
|
11368
11357
|
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); }
|
|
11369
11358
|
|
|
11370
11359
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11375,12 +11364,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11375
11364
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11376
11365
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11377
11366
|
|
|
11378
|
-
var Mixcloud =
|
|
11367
|
+
var Mixcloud =
|
|
11368
|
+
/*#__PURE__*/
|
|
11369
|
+
function (_Component) {
|
|
11379
11370
|
_inherits(Mixcloud, _Component);
|
|
11380
11371
|
|
|
11381
|
-
var _super = _createSuper(Mixcloud);
|
|
11382
|
-
|
|
11383
11372
|
function Mixcloud() {
|
|
11373
|
+
var _getPrototypeOf2;
|
|
11374
|
+
|
|
11384
11375
|
var _this;
|
|
11385
11376
|
|
|
11386
11377
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11389,7 +11380,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11389
11380
|
args[_key] = arguments[_key];
|
|
11390
11381
|
}
|
|
11391
11382
|
|
|
11392
|
-
_this =
|
|
11383
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11393
11384
|
|
|
11394
11385
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11395
11386
|
|
|
@@ -11492,7 +11483,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11492
11483
|
})); // We have to give the iframe a key here to prevent a
|
|
11493
11484
|
// weird dialog appearing when loading a new track
|
|
11494
11485
|
|
|
11495
|
-
return
|
|
11486
|
+
return _react["default"].createElement("iframe", {
|
|
11496
11487
|
key: id,
|
|
11497
11488
|
ref: this.ref,
|
|
11498
11489
|
style: style,
|
|
@@ -11552,33 +11543,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11552
11543
|
|
|
11553
11544
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11554
11545
|
|
|
11555
|
-
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); }; }
|
|
11556
|
-
|
|
11557
11546
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11558
11547
|
|
|
11559
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11560
|
-
|
|
11561
|
-
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; } }
|
|
11562
|
-
|
|
11563
11548
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11564
11549
|
|
|
11550
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11551
|
+
|
|
11565
11552
|
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); }
|
|
11566
11553
|
|
|
11567
11554
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11568
11555
|
|
|
11569
11556
|
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; }
|
|
11570
11557
|
|
|
11571
|
-
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; } } }; }
|
|
11572
|
-
|
|
11573
|
-
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); }
|
|
11574
|
-
|
|
11575
|
-
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; }
|
|
11576
|
-
|
|
11577
11558
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11578
11559
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11579
11560
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11580
11561
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11581
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11562
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11582
11563
|
var HLS_GLOBAL = 'Hls';
|
|
11583
11564
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11584
11565
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11587,11 +11568,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11587
11568
|
|
|
11588
11569
|
function canPlay(url) {
|
|
11589
11570
|
if (url instanceof Array) {
|
|
11590
|
-
var
|
|
11591
|
-
|
|
11571
|
+
var _iteratorNormalCompletion = true;
|
|
11572
|
+
var _didIteratorError = false;
|
|
11573
|
+
var _iteratorError = undefined;
|
|
11592
11574
|
|
|
11593
11575
|
try {
|
|
11594
|
-
for (_iterator.
|
|
11576
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11595
11577
|
var item = _step.value;
|
|
11596
11578
|
|
|
11597
11579
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11603,9 +11585,18 @@ function canPlay(url) {
|
|
|
11603
11585
|
}
|
|
11604
11586
|
}
|
|
11605
11587
|
} catch (err) {
|
|
11606
|
-
|
|
11588
|
+
_didIteratorError = true;
|
|
11589
|
+
_iteratorError = err;
|
|
11607
11590
|
} finally {
|
|
11608
|
-
|
|
11591
|
+
try {
|
|
11592
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11593
|
+
_iterator["return"]();
|
|
11594
|
+
}
|
|
11595
|
+
} finally {
|
|
11596
|
+
if (_didIteratorError) {
|
|
11597
|
+
throw _iteratorError;
|
|
11598
|
+
}
|
|
11599
|
+
}
|
|
11609
11600
|
}
|
|
11610
11601
|
|
|
11611
11602
|
return false;
|
|
@@ -11629,12 +11620,14 @@ function canEnablePIP(url) {
|
|
|
11629
11620
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11630
11621
|
}
|
|
11631
11622
|
|
|
11632
|
-
var FilePlayer =
|
|
11623
|
+
var FilePlayer =
|
|
11624
|
+
/*#__PURE__*/
|
|
11625
|
+
function (_Component) {
|
|
11633
11626
|
_inherits(FilePlayer, _Component);
|
|
11634
11627
|
|
|
11635
|
-
var _super = _createSuper(FilePlayer);
|
|
11636
|
-
|
|
11637
11628
|
function FilePlayer() {
|
|
11629
|
+
var _getPrototypeOf2;
|
|
11630
|
+
|
|
11638
11631
|
var _this;
|
|
11639
11632
|
|
|
11640
11633
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11643,7 +11636,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11643
11636
|
_args[_key] = arguments[_key];
|
|
11644
11637
|
}
|
|
11645
11638
|
|
|
11646
|
-
_this =
|
|
11639
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11647
11640
|
|
|
11648
11641
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11649
11642
|
var _this$props;
|
|
@@ -11730,19 +11723,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11730
11723
|
|
|
11731
11724
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11732
11725
|
if (typeof source === 'string') {
|
|
11733
|
-
return
|
|
11726
|
+
return _react["default"].createElement("source", {
|
|
11734
11727
|
key: index,
|
|
11735
11728
|
src: source
|
|
11736
11729
|
});
|
|
11737
11730
|
}
|
|
11738
11731
|
|
|
11739
|
-
return
|
|
11732
|
+
return _react["default"].createElement("source", _extends({
|
|
11740
11733
|
key: index
|
|
11741
11734
|
}, source));
|
|
11742
11735
|
});
|
|
11743
11736
|
|
|
11744
11737
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11745
|
-
return
|
|
11738
|
+
return _react["default"].createElement("track", _extends({
|
|
11746
11739
|
key: index
|
|
11747
11740
|
}, track));
|
|
11748
11741
|
});
|
|
@@ -11780,10 +11773,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11780
11773
|
key: "componentWillUnmount",
|
|
11781
11774
|
value: function componentWillUnmount() {
|
|
11782
11775
|
this.removeListeners(this.player);
|
|
11783
|
-
|
|
11784
|
-
if (this.hls) {
|
|
11785
|
-
this.hls.destroy();
|
|
11786
|
-
}
|
|
11787
11776
|
}
|
|
11788
11777
|
}, {
|
|
11789
11778
|
key: "addListeners",
|
|
@@ -11914,6 +11903,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11914
11903
|
value: function stop() {
|
|
11915
11904
|
this.player.removeAttribute('src');
|
|
11916
11905
|
|
|
11906
|
+
if (this.hls) {
|
|
11907
|
+
this.hls.destroy();
|
|
11908
|
+
}
|
|
11909
|
+
|
|
11917
11910
|
if (this.dash) {
|
|
11918
11911
|
this.dash.reset();
|
|
11919
11912
|
}
|
|
@@ -12025,7 +12018,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12025
12018
|
width: width === 'auto' ? width : '100%',
|
|
12026
12019
|
height: height === 'auto' ? height : '100%'
|
|
12027
12020
|
};
|
|
12028
|
-
return
|
|
12021
|
+
return _react["default"].createElement(Element, _extends({
|
|
12029
12022
|
ref: this.ref,
|
|
12030
12023
|
src: this.getSource(url),
|
|
12031
12024
|
style: style,
|
|
@@ -12115,16 +12108,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12115
12108
|
|
|
12116
12109
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12117
12110
|
|
|
12118
|
-
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); }; }
|
|
12119
|
-
|
|
12120
12111
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12121
12112
|
|
|
12122
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12123
|
-
|
|
12124
|
-
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; } }
|
|
12125
|
-
|
|
12126
12113
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12127
12114
|
|
|
12115
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12116
|
+
|
|
12128
12117
|
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); }
|
|
12129
12118
|
|
|
12130
12119
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12133,12 +12122,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12133
12122
|
|
|
12134
12123
|
var ICON_SIZE = '64px';
|
|
12135
12124
|
|
|
12136
|
-
var Preview =
|
|
12125
|
+
var Preview =
|
|
12126
|
+
/*#__PURE__*/
|
|
12127
|
+
function (_Component) {
|
|
12137
12128
|
_inherits(Preview, _Component);
|
|
12138
12129
|
|
|
12139
|
-
var _super = _createSuper(Preview);
|
|
12140
|
-
|
|
12141
12130
|
function Preview() {
|
|
12131
|
+
var _getPrototypeOf2;
|
|
12132
|
+
|
|
12142
12133
|
var _this;
|
|
12143
12134
|
|
|
12144
12135
|
_classCallCheck(this, Preview);
|
|
@@ -12147,7 +12138,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12147
12138
|
args[_key] = arguments[_key];
|
|
12148
12139
|
}
|
|
12149
12140
|
|
|
12150
|
-
_this =
|
|
12141
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12151
12142
|
|
|
12152
12143
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12153
12144
|
|
|
@@ -12245,15 +12236,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12245
12236
|
}
|
|
12246
12237
|
};
|
|
12247
12238
|
|
|
12248
|
-
var defaultPlayIcon =
|
|
12239
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12249
12240
|
style: styles.shadow,
|
|
12250
12241
|
className: "react-player__shadow"
|
|
12251
|
-
},
|
|
12242
|
+
}, _react["default"].createElement("div", {
|
|
12252
12243
|
style: styles.playIcon,
|
|
12253
12244
|
className: "react-player__play-icon"
|
|
12254
12245
|
}));
|
|
12255
12246
|
|
|
12256
|
-
return
|
|
12247
|
+
return _react["default"].createElement("div", {
|
|
12257
12248
|
style: styles.preview,
|
|
12258
12249
|
className: "react-player__preview",
|
|
12259
12250
|
onClick: onClick
|
|
@@ -12290,12 +12281,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12290
12281
|
|
|
12291
12282
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12292
12283
|
|
|
12293
|
-
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; } } }; }
|
|
12294
|
-
|
|
12295
|
-
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); }
|
|
12296
|
-
|
|
12297
|
-
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; }
|
|
12298
|
-
|
|
12299
12284
|
var PRELOAD_PLAYERS = [{
|
|
12300
12285
|
Player: YouTube_1.YouTube,
|
|
12301
12286
|
configKey: 'youtube',
|
|
@@ -12316,16 +12301,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12316
12301
|
|
|
12317
12302
|
function renderPreloadPlayers(url, controls, config) {
|
|
12318
12303
|
var players = [];
|
|
12319
|
-
|
|
12320
|
-
var
|
|
12321
|
-
|
|
12304
|
+
var _iteratorNormalCompletion = true;
|
|
12305
|
+
var _didIteratorError = false;
|
|
12306
|
+
var _iteratorError = undefined;
|
|
12322
12307
|
|
|
12323
12308
|
try {
|
|
12324
|
-
for (_iterator.
|
|
12309
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12325
12310
|
var player = _step.value;
|
|
12326
12311
|
|
|
12327
12312
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12328
|
-
players.push(
|
|
12313
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12329
12314
|
key: player.Player.displayName,
|
|
12330
12315
|
activePlayer: player.Player,
|
|
12331
12316
|
url: player.url,
|
|
@@ -12337,9 +12322,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12337
12322
|
}
|
|
12338
12323
|
}
|
|
12339
12324
|
} catch (err) {
|
|
12340
|
-
|
|
12325
|
+
_didIteratorError = true;
|
|
12326
|
+
_iteratorError = err;
|
|
12341
12327
|
} finally {
|
|
12342
|
-
|
|
12328
|
+
try {
|
|
12329
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12330
|
+
_iterator["return"]();
|
|
12331
|
+
}
|
|
12332
|
+
} finally {
|
|
12333
|
+
if (_didIteratorError) {
|
|
12334
|
+
throw _iteratorError;
|
|
12335
|
+
}
|
|
12336
|
+
}
|
|
12343
12337
|
}
|
|
12344
12338
|
|
|
12345
12339
|
return players;
|
|
@@ -12463,17 +12457,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12463
12457
|
|
|
12464
12458
|
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); }
|
|
12465
12459
|
|
|
12466
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12467
|
-
|
|
12468
|
-
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."); }
|
|
12469
|
-
|
|
12470
|
-
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); }
|
|
12460
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12471
12461
|
|
|
12472
|
-
function
|
|
12462
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12473
12463
|
|
|
12474
|
-
function
|
|
12464
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12475
12465
|
|
|
12476
|
-
function
|
|
12466
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
12477
12467
|
|
|
12478
12468
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12479
12469
|
|
|
@@ -12481,16 +12471,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12481
12471
|
|
|
12482
12472
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12483
12473
|
|
|
12484
|
-
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); }; }
|
|
12485
|
-
|
|
12486
12474
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12487
12475
|
|
|
12488
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12489
|
-
|
|
12490
|
-
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; } }
|
|
12491
|
-
|
|
12492
12476
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12493
12477
|
|
|
12478
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12479
|
+
|
|
12494
12480
|
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); }
|
|
12495
12481
|
|
|
12496
12482
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12500,12 +12486,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12500
12486
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12501
12487
|
var customPlayers = [];
|
|
12502
12488
|
|
|
12503
|
-
var ReactPlayer =
|
|
12489
|
+
var ReactPlayer =
|
|
12490
|
+
/*#__PURE__*/
|
|
12491
|
+
function (_Component) {
|
|
12504
12492
|
_inherits(ReactPlayer, _Component);
|
|
12505
12493
|
|
|
12506
|
-
var _super = _createSuper(ReactPlayer);
|
|
12507
|
-
|
|
12508
12494
|
function ReactPlayer() {
|
|
12495
|
+
var _getPrototypeOf2;
|
|
12496
|
+
|
|
12509
12497
|
var _this;
|
|
12510
12498
|
|
|
12511
12499
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12514,7 +12502,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12514
12502
|
args[_key] = arguments[_key];
|
|
12515
12503
|
}
|
|
12516
12504
|
|
|
12517
|
-
_this =
|
|
12505
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12518
12506
|
|
|
12519
12507
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12520
12508
|
|
|
@@ -12625,7 +12613,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12625
12613
|
key: "renderActivePlayer",
|
|
12626
12614
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12627
12615
|
if (!url) return null;
|
|
12628
|
-
return
|
|
12616
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12629
12617
|
key: activePlayer.displayName,
|
|
12630
12618
|
ref: this.activePlayerRef,
|
|
12631
12619
|
config: this.config,
|
|
@@ -12662,14 +12650,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12662
12650
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12663
12651
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12664
12652
|
|
|
12665
|
-
var preview =
|
|
12653
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12666
12654
|
url: url,
|
|
12667
12655
|
light: light,
|
|
12668
12656
|
playIcon: playIcon,
|
|
12669
12657
|
onClick: this.handleClickPreview
|
|
12670
12658
|
});
|
|
12671
12659
|
|
|
12672
|
-
return
|
|
12660
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12673
12661
|
ref: this.wrapperRef,
|
|
12674
12662
|
style: _objectSpread({}, style, {
|
|
12675
12663
|
width: width,
|
|
@@ -13528,7 +13516,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13528
13516
|
};
|
|
13529
13517
|
|
|
13530
13518
|
var Figure = dynamic(function () {
|
|
13531
|
-
return import('./Figure-
|
|
13519
|
+
return import('./Figure-9f21ef27.js');
|
|
13532
13520
|
}, { ssr: false });
|
|
13533
13521
|
|
|
13534
13522
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -14109,16 +14097,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14109
14097
|
_ref$className = _ref.className,
|
|
14110
14098
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14111
14099
|
|
|
14112
|
-
/*
|
|
14113
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14114
|
-
example:
|
|
14115
|
-
<RelatedTopicDropdown
|
|
14116
|
-
page='/clinical'
|
|
14117
|
-
exclude="clinical"
|
|
14118
|
-
className='mb-3'
|
|
14119
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14120
|
-
subTaxonomies={props.subTaxonomies}
|
|
14121
|
-
/>
|
|
14100
|
+
/*
|
|
14101
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14102
|
+
example:
|
|
14103
|
+
<RelatedTopicDropdown
|
|
14104
|
+
page='/clinical'
|
|
14105
|
+
exclude="clinical"
|
|
14106
|
+
className='mb-3'
|
|
14107
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14108
|
+
subTaxonomies={props.subTaxonomies}
|
|
14109
|
+
/>
|
|
14122
14110
|
*/
|
|
14123
14111
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14124
14112
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14156,25 +14144,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14156
14144
|
}
|
|
14157
14145
|
};
|
|
14158
14146
|
|
|
14159
|
-
/*
|
|
14160
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14161
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14162
|
-
|
|
14163
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14164
|
-
|
|
14165
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14166
|
-
|
|
14167
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14168
|
-
...,
|
|
14169
|
-
'ancestor': parent->parent->identifier,
|
|
14170
|
-
'parent': parent->identifier,
|
|
14171
|
-
'path': identifier
|
|
14172
|
-
},
|
|
14173
|
-
'document_group': documentGroup-> {
|
|
14174
|
-
name,
|
|
14175
|
-
'parent': parent->identifier,
|
|
14176
|
-
'path': identifier.current
|
|
14177
|
-
}
|
|
14147
|
+
/*
|
|
14148
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14149
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14150
|
+
|
|
14151
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14152
|
+
|
|
14153
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14154
|
+
|
|
14155
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14156
|
+
...,
|
|
14157
|
+
'ancestor': parent->parent->identifier,
|
|
14158
|
+
'parent': parent->identifier,
|
|
14159
|
+
'path': identifier
|
|
14160
|
+
},
|
|
14161
|
+
'document_group': documentGroup-> {
|
|
14162
|
+
name,
|
|
14163
|
+
'parent': parent->identifier,
|
|
14164
|
+
'path': identifier.current
|
|
14165
|
+
}
|
|
14178
14166
|
*/
|
|
14179
14167
|
|
|
14180
14168
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15082,34 +15070,34 @@ var GridHero = function GridHero(props) {
|
|
|
15082
15070
|
);
|
|
15083
15071
|
};
|
|
15084
15072
|
|
|
15085
|
-
/*
|
|
15086
|
-
Sample query
|
|
15087
|
-
let references = ''
|
|
15088
|
-
if(article.taxonomyMapping.length > 0){
|
|
15089
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15090
|
-
references = references + `references('${ref._ref}') `
|
|
15091
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15092
|
-
references = references + ` && `
|
|
15093
|
-
}
|
|
15094
|
-
})
|
|
15095
|
-
}
|
|
15096
|
-
|
|
15097
|
-
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] {
|
|
15098
|
-
...,
|
|
15099
|
-
title,
|
|
15100
|
-
summary,
|
|
15101
|
-
thumbnail,
|
|
15102
|
-
url,
|
|
15103
|
-
published,
|
|
15104
|
-
authorMapping[]->,
|
|
15105
|
-
contentCategory->
|
|
15106
|
-
}`
|
|
15107
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15108
|
-
|
|
15109
|
-
Sample usage
|
|
15110
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15111
|
-
|
|
15112
|
-
|
|
15073
|
+
/*
|
|
15074
|
+
Sample query
|
|
15075
|
+
let references = ''
|
|
15076
|
+
if(article.taxonomyMapping.length > 0){
|
|
15077
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15078
|
+
references = references + `references('${ref._ref}') `
|
|
15079
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15080
|
+
references = references + ` && `
|
|
15081
|
+
}
|
|
15082
|
+
})
|
|
15083
|
+
}
|
|
15084
|
+
|
|
15085
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15086
|
+
...,
|
|
15087
|
+
title,
|
|
15088
|
+
summary,
|
|
15089
|
+
thumbnail,
|
|
15090
|
+
url,
|
|
15091
|
+
published,
|
|
15092
|
+
authorMapping[]->,
|
|
15093
|
+
contentCategory->
|
|
15094
|
+
}`
|
|
15095
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15096
|
+
|
|
15097
|
+
Sample usage
|
|
15098
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15099
|
+
|
|
15100
|
+
|
|
15113
15101
|
*/
|
|
15114
15102
|
var RelatedContent = function RelatedContent(props) {
|
|
15115
15103
|
var client = props.client,
|
|
@@ -15176,21 +15164,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15176
15164
|
);
|
|
15177
15165
|
};
|
|
15178
15166
|
|
|
15179
|
-
/*
|
|
15180
|
-
Example usage - targetedonc.com/latest-conference
|
|
15181
|
-
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] {
|
|
15182
|
-
...,
|
|
15183
|
-
title,
|
|
15184
|
-
summary,
|
|
15185
|
-
thumbnail,
|
|
15186
|
-
url,
|
|
15187
|
-
published,
|
|
15188
|
-
documentGroup->,
|
|
15189
|
-
contentCategory->,
|
|
15190
|
-
'pageNumber': ${currentPage}
|
|
15191
|
-
}`
|
|
15192
|
-
|
|
15193
|
-
const posts = await client.fetch(query, params)
|
|
15167
|
+
/*
|
|
15168
|
+
Example usage - targetedonc.com/latest-conference
|
|
15169
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15170
|
+
...,
|
|
15171
|
+
title,
|
|
15172
|
+
summary,
|
|
15173
|
+
thumbnail,
|
|
15174
|
+
url,
|
|
15175
|
+
published,
|
|
15176
|
+
documentGroup->,
|
|
15177
|
+
contentCategory->,
|
|
15178
|
+
'pageNumber': ${currentPage}
|
|
15179
|
+
}`
|
|
15180
|
+
|
|
15181
|
+
const posts = await client.fetch(query, params)
|
|
15194
15182
|
*/
|
|
15195
15183
|
|
|
15196
15184
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16589,27 +16577,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16589
16577
|
};
|
|
16590
16578
|
|
|
16591
16579
|
var KMTracker = function KMTracker(props) {
|
|
16592
|
-
|
|
16580
|
+
var id = props.id;
|
|
16593
16581
|
|
|
16594
|
-
|
|
16582
|
+
if (document && id) {
|
|
16595
16583
|
(function () {
|
|
16596
|
-
|
|
16584
|
+
var ecnJquery = document.createElement('script');
|
|
16597
16585
|
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16586
|
+
ecnJquery.type = 'text/javascript';
|
|
16587
|
+
ecnJquery.async = true;
|
|
16588
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16601
16589
|
|
|
16602
|
-
|
|
16590
|
+
var ecnScript = document.createElement('script');
|
|
16603
16591
|
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16592
|
+
ecnScript.type = 'text/javascript';
|
|
16593
|
+
ecnScript.async = true;
|
|
16594
|
+
ecnScript.id = 'km-tracker';
|
|
16595
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16608
16596
|
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16597
|
+
document.head.appendChild(ecnJquery);
|
|
16598
|
+
document.head.appendChild(ecnScript);
|
|
16599
|
+
})();
|
|
16600
|
+
}
|
|
16613
16601
|
};
|
|
16614
16602
|
|
|
16615
16603
|
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|