@mjhls/mjh-framework 1.0.270 → 1.0.271

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