@mjhls/mjh-framework 1.0.269 → 1.0.270

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