@mjhls/mjh-framework 1.0.268 → 1.0.269

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