@mjhls/mjh-framework 1.0.287 → 1.0.288

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 (42) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/DeckContent.js +9 -9
  3. package/dist/cjs/DeckQueue.js +1 -1
  4. package/dist/cjs/{Figure-8789df2d.js → Figure-a7cd5161.js} +1 -1
  5. package/dist/cjs/{GridContent-fa2e1b56.js → GridContent-02acbd72.js} +2 -2
  6. package/dist/cjs/GridContent.js +2 -2
  7. package/dist/cjs/IssueContentDeck.js +1 -1
  8. package/dist/cjs/IssueDeck.js +1 -1
  9. package/dist/cjs/MasterDeck.js +9 -9
  10. package/dist/cjs/{Normal-39da6300.js → Normal-c1e96654.js} +31 -31
  11. package/dist/cjs/PublicationDeck.js +1 -1
  12. package/dist/cjs/QueueDeckExpanded.js +1 -1
  13. package/dist/cjs/{TaxonomyCard-7ba4a872.js → TaxonomyCard-cf5bbc07.js} +1 -1
  14. package/dist/cjs/TaxonomyCard.js +2 -2
  15. package/dist/cjs/TemplateNormal.js +1 -1
  16. package/dist/cjs/ThumbnailCard.js +1 -1
  17. package/dist/cjs/VideoSeriesListing.js +1 -1
  18. package/dist/cjs/{YoutubeGroup-39eba427.js → YoutubeGroup-98ffbc57.js} +4 -4
  19. package/dist/cjs/YoutubeGroup.js +1 -1
  20. package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
  21. package/dist/cjs/index.js +548 -536
  22. package/dist/esm/DeckContent.js +9 -9
  23. package/dist/esm/DeckQueue.js +1 -1
  24. package/dist/esm/{Figure-b5847ea2.js → Figure-d6e22818.js} +1 -1
  25. package/dist/esm/{GridContent-88ed988c.js → GridContent-96716e42.js} +1 -1
  26. package/dist/esm/GridContent.js +2 -2
  27. package/dist/esm/IssueContentDeck.js +1 -1
  28. package/dist/esm/IssueDeck.js +1 -1
  29. package/dist/esm/MasterDeck.js +9 -9
  30. package/dist/esm/{Normal-246ae27e.js → Normal-1dd0edc6.js} +31 -31
  31. package/dist/esm/PublicationDeck.js +1 -1
  32. package/dist/esm/QueueDeckExpanded.js +1 -1
  33. package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
  34. package/dist/esm/TaxonomyCard.js +2 -2
  35. package/dist/esm/TemplateNormal.js +1 -1
  36. package/dist/esm/ThumbnailCard.js +1 -1
  37. package/dist/esm/VideoSeriesListing.js +1 -1
  38. package/dist/esm/{YoutubeGroup-f59297bb.js → YoutubeGroup-562ed456.js} +4 -4
  39. package/dist/esm/YoutubeGroup.js +1 -1
  40. package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
  41. package/dist/esm/index.js +551 -539
  42. package/package.json +103 -103
package/dist/esm/index.js CHANGED
@@ -17,7 +17,7 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
17
17
  import Link from 'next/link';
18
18
  import Router, { useRouter } from 'next/router';
19
19
  import 'react-dom';
20
- import { i as imageUrlBuilder } from './index-73819142.js';
20
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
21
21
  import './index-5f9f807a.js';
22
22
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
23
23
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
@@ -27,16 +27,16 @@ import './promise-e3480f1c.js';
27
27
  import './ADInfeed-ac3ac372.js';
28
28
  export { default as DeckContent } from './DeckContent.js';
29
29
  import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
30
- export { A as AD, G as GridContent } from './GridContent-88ed988c.js';
30
+ export { A as AD, G as GridContent } from './GridContent-96716e42.js';
31
31
  export { default as DeckQueue } from './DeckQueue.js';
32
32
  import 'react-bootstrap/Media';
33
33
  export { default as ThumbnailCard } from './ThumbnailCard.js';
34
- import { B as BlockContent } from './TaxonomyCard-2d0ab635.js';
35
- export { T as TaxonomyCard } from './TaxonomyCard-2d0ab635.js';
34
+ import { B as BlockContent } from './TaxonomyCard-ee1a22ae.js';
35
+ export { T as TaxonomyCard } from './TaxonomyCard-ee1a22ae.js';
36
36
  import GroupDeck from './GroupDeck.js';
37
37
  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';
38
+ import { g as getYoutubeId } from './YoutubeGroup-562ed456.js';
39
+ export { Y as YoutubeGroup } from './YoutubeGroup-562ed456.js';
40
40
  import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
41
41
  export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
42
42
  import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-246ae27e.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-246ae27e.js';
51
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-1dd0edc6.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-1dd0edc6.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -3172,21 +3172,18 @@ var Slideshow = function Slideshow(_ref) {
3172
3172
  );
3173
3173
  };
3174
3174
 
3175
- var isArray = Array.isArray;
3176
- var keyList = Object.keys;
3177
- var hasProp = Object.prototype.hasOwnProperty;
3175
+ // do not edit .js files directly - edit src/index.jst
3176
+
3177
+
3178
3178
 
3179
3179
  var fastDeepEqual = function equal(a, b) {
3180
3180
  if (a === b) return true;
3181
3181
 
3182
3182
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3183
- var arrA = isArray(a)
3184
- , arrB = isArray(b)
3185
- , i
3186
- , length
3187
- , key;
3183
+ if (a.constructor !== b.constructor) return false;
3188
3184
 
3189
- if (arrA && arrB) {
3185
+ var length, i, keys;
3186
+ if (Array.isArray(a)) {
3190
3187
  length = a.length;
3191
3188
  if (length != b.length) return false;
3192
3189
  for (i = length; i-- !== 0;)
@@ -3194,35 +3191,29 @@ var fastDeepEqual = function equal(a, b) {
3194
3191
  return true;
3195
3192
  }
3196
3193
 
3197
- if (arrA != arrB) return false;
3198
3194
 
3199
- var dateA = a instanceof Date
3200
- , dateB = b instanceof Date;
3201
- if (dateA != dateB) return false;
3202
- if (dateA && dateB) return a.getTime() == b.getTime();
3203
3195
 
3204
- var regexpA = a instanceof RegExp
3205
- , regexpB = b instanceof RegExp;
3206
- if (regexpA != regexpB) return false;
3207
- if (regexpA && regexpB) return a.toString() == b.toString();
3196
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3197
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3198
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3208
3199
 
3209
- var keys = keyList(a);
3200
+ keys = Object.keys(a);
3210
3201
  length = keys.length;
3211
-
3212
- if (length !== keyList(b).length)
3213
- return false;
3202
+ if (length !== Object.keys(b).length) return false;
3214
3203
 
3215
3204
  for (i = length; i-- !== 0;)
3216
- if (!hasProp.call(b, keys[i])) return false;
3205
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3217
3206
 
3218
3207
  for (i = length; i-- !== 0;) {
3219
- key = keys[i];
3208
+ var key = keys[i];
3209
+
3220
3210
  if (!equal(a[key], b[key])) return false;
3221
3211
  }
3222
3212
 
3223
3213
  return true;
3224
3214
  }
3225
3215
 
3216
+ // true if both NaN, false otherwise
3226
3217
  return a!==a && b!==b;
3227
3218
  };
3228
3219
 
@@ -4245,7 +4236,7 @@ function formatValue(ctx, value, recurseTimes) {
4245
4236
  var base = '', array = false, braces = ['{', '}'];
4246
4237
 
4247
4238
  // Make Array say that they are Array
4248
- if (isArray$1(value)) {
4239
+ if (isArray(value)) {
4249
4240
  array = true;
4250
4241
  braces = ['[', ']'];
4251
4242
  }
@@ -4424,7 +4415,7 @@ function reduceToSingleString(output, base, braces) {
4424
4415
 
4425
4416
  // NOTE: These type checking functions intentionally don't use `instanceof`
4426
4417
  // because it is fragile and can be easily faked with `Object.create()`.
4427
- function isArray$1(ar) {
4418
+ function isArray(ar) {
4428
4419
  return Array.isArray(ar);
4429
4420
  }
4430
4421
 
@@ -4551,7 +4542,7 @@ var util = {
4551
4542
  isNullOrUndefined: isNullOrUndefined,
4552
4543
  isNull: isNull,
4553
4544
  isBoolean: isBoolean,
4554
- isArray: isArray$1,
4545
+ isArray: isArray,
4555
4546
  inspect: inspect,
4556
4547
  deprecate: deprecate,
4557
4548
  format: format,
@@ -5218,199 +5209,235 @@ module.exports = exports['default'];
5218
5209
 
5219
5210
  var youTubePlayer = unwrapExports(dist);
5220
5211
 
5221
- 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; }; }();
5222
-
5223
- 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; };
5212
+ 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); }
5224
5213
 
5225
5214
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5226
5215
 
5227
- 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; }
5216
+ 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); } }
5217
+
5218
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5219
+
5220
+ 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); }; }
5221
+
5222
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5228
5223
 
5229
- 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; }
5224
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5225
+
5226
+ 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; } }
5227
+
5228
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5229
+
5230
+ 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); }
5231
+
5232
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5233
+
5234
+ 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; }
5235
+
5236
+ 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; }
5230
5237
 
5231
- /**
5232
- * Check whether a `props` change should result in the video being updated.
5233
- *
5234
- * @param {Object} prevProps
5235
- * @param {Object} props
5238
+ 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; }
5239
+ /**
5240
+ * Check whether a `props` change should result in the video being updated.
5241
+ *
5242
+ * @param {Object} prevProps
5243
+ * @param {Object} props
5236
5244
  */
5245
+
5237
5246
  function shouldUpdateVideo(prevProps, props) {
5238
5247
  // A changing video should always trigger an update
5239
5248
  if (prevProps.videoId !== props.videoId) {
5240
5249
  return true;
5241
- }
5242
-
5243
- // Otherwise, a change in the start/end time playerVars also requires a player
5250
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5244
5251
  // update.
5252
+
5253
+
5245
5254
  var prevVars = prevProps.opts.playerVars || {};
5246
5255
  var vars = props.opts.playerVars || {};
5247
-
5248
5256
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5249
5257
  }
5250
-
5251
- /**
5252
- * Neutralise API options that only require a video update, leaving only options
5253
- * that require a player reset. The results can then be compared to see if a
5254
- * player reset is necessary.
5255
- *
5256
- * @param {Object} opts
5258
+ /**
5259
+ * Neutralize API options that only require a video update, leaving only options
5260
+ * that require a player reset. The results can then be compared to see if a
5261
+ * player reset is necessary.
5262
+ *
5263
+ * @param {Object} opts
5257
5264
  */
5265
+
5266
+
5258
5267
  function filterResetOptions(opts) {
5259
- return _extends({}, opts, {
5260
- playerVars: _extends({}, opts.playerVars, {
5268
+ return _objectSpread({}, opts, {
5269
+ playerVars: _objectSpread({}, opts.playerVars, {
5261
5270
  autoplay: 0,
5262
5271
  start: 0,
5263
5272
  end: 0
5264
5273
  })
5265
5274
  });
5266
5275
  }
5267
-
5268
- /**
5269
- * Check whether a `props` change should result in the player being reset.
5270
- * The player is reset when the `props.opts` change, except if the only change
5271
- * is in the `start` and `end` playerVars, because a video update can deal with
5272
- * those.
5273
- *
5274
- * @param {Object} prevProps
5275
- * @param {Object} props
5276
+ /**
5277
+ * Check whether a `props` change should result in the player being reset.
5278
+ * The player is reset when the `props.opts` change, except if the only change
5279
+ * is in the `start` and `end` playerVars, because a video update can deal with
5280
+ * those.
5281
+ *
5282
+ * @param {Object} prevProps
5283
+ * @param {Object} props
5276
5284
  */
5285
+
5286
+
5277
5287
  function shouldResetPlayer(prevProps, props) {
5278
5288
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5279
5289
  }
5280
-
5281
- /**
5282
- * Check whether a props change should result in an id or className update.
5283
- *
5284
- * @param {Object} prevProps
5285
- * @param {Object} props
5290
+ /**
5291
+ * Check whether a props change should result in an id or className update.
5292
+ *
5293
+ * @param {Object} prevProps
5294
+ * @param {Object} props
5286
5295
  */
5296
+
5297
+
5287
5298
  function shouldUpdatePlayer(prevProps, props) {
5288
5299
  return prevProps.id !== props.id || prevProps.className !== props.className;
5289
5300
  }
5290
5301
 
5291
- var YouTube = function (_React$Component) {
5302
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5292
5303
  _inherits(YouTube, _React$Component);
5293
5304
 
5305
+ var _super = _createSuper(YouTube);
5306
+
5307
+ /**
5308
+ * Expose PlayerState constants for convenience. These constants can also be
5309
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5310
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5311
+ */
5294
5312
  function YouTube(props) {
5313
+ var _this;
5314
+
5295
5315
  _classCallCheck(this, YouTube);
5296
5316
 
5297
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5317
+ _this = _super.call(this, props);
5298
5318
 
5299
- _this.onPlayerReady = function (event) {
5319
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5300
5320
  return _this.props.onReady(event);
5301
- };
5321
+ });
5302
5322
 
5303
- _this.onPlayerError = function (event) {
5323
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5304
5324
  return _this.props.onError(event);
5305
- };
5325
+ });
5306
5326
 
5307
- _this.onPlayerStateChange = function (event) {
5327
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5308
5328
  _this.props.onStateChange(event);
5309
- switch (event.data) {
5310
5329
 
5330
+ switch (event.data) {
5311
5331
  case YouTube.PlayerState.ENDED:
5312
5332
  _this.props.onEnd(event);
5333
+
5313
5334
  break;
5314
5335
 
5315
5336
  case YouTube.PlayerState.PLAYING:
5316
5337
  _this.props.onPlay(event);
5338
+
5317
5339
  break;
5318
5340
 
5319
5341
  case YouTube.PlayerState.PAUSED:
5320
5342
  _this.props.onPause(event);
5343
+
5321
5344
  break;
5322
5345
  }
5323
- };
5346
+ });
5324
5347
 
5325
- _this.onPlayerPlaybackRateChange = function (event) {
5348
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5326
5349
  return _this.props.onPlaybackRateChange(event);
5327
- };
5350
+ });
5328
5351
 
5329
- _this.onPlayerPlaybackQualityChange = function (event) {
5352
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5330
5353
  return _this.props.onPlaybackQualityChange(event);
5331
- };
5354
+ });
5332
5355
 
5333
- _this.createPlayer = function () {
5356
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5334
5357
  // do not attempt to create a player server-side, it won't work
5335
- if (typeof document === 'undefined') return;
5336
- // create player
5337
- var playerOpts = _extends({}, _this.props.opts, {
5358
+ if (typeof document === 'undefined') return; // create player
5359
+
5360
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5338
5361
  // preload the `videoId` video if one is already given
5339
5362
  videoId: _this.props.videoId
5340
5363
  });
5341
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5342
- // attach event handlers
5364
+
5365
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5366
+
5343
5367
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5368
+
5344
5369
  _this.internalPlayer.on('error', _this.onPlayerError);
5370
+
5345
5371
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5372
+
5346
5373
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5374
+
5347
5375
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5348
- };
5376
+ });
5349
5377
 
5350
- _this.resetPlayer = function () {
5378
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5351
5379
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5352
- };
5380
+ });
5353
5381
 
5354
- _this.updatePlayer = function () {
5382
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5355
5383
  _this.internalPlayer.getIframe().then(function (iframe) {
5356
5384
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5357
5385
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5358
5386
  });
5359
- };
5387
+ });
5360
5388
 
5361
- _this.updateVideo = function () {
5389
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5362
5390
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5363
5391
  _this.internalPlayer.stopVideo();
5392
+
5364
5393
  return;
5365
- }
5394
+ } // set queueing options
5395
+
5366
5396
 
5367
- // set queueing options
5368
5397
  var autoplay = false;
5369
5398
  var opts = {
5370
5399
  videoId: _this.props.videoId
5371
5400
  };
5401
+
5372
5402
  if ('playerVars' in _this.props.opts) {
5373
5403
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5404
+
5374
5405
  if ('start' in _this.props.opts.playerVars) {
5375
5406
  opts.startSeconds = _this.props.opts.playerVars.start;
5376
5407
  }
5408
+
5377
5409
  if ('end' in _this.props.opts.playerVars) {
5378
5410
  opts.endSeconds = _this.props.opts.playerVars.end;
5379
5411
  }
5380
- }
5412
+ } // if autoplay is enabled loadVideoById
5413
+
5381
5414
 
5382
- // if autoplay is enabled loadVideoById
5383
5415
  if (autoplay) {
5384
5416
  _this.internalPlayer.loadVideoById(opts);
5417
+
5385
5418
  return;
5386
- }
5387
- // default behaviour just cues the video
5419
+ } // default behaviour just cues the video
5420
+
5421
+
5388
5422
  _this.internalPlayer.cueVideoById(opts);
5389
- };
5423
+ });
5390
5424
 
5391
- _this.refContainer = function (container) {
5425
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5392
5426
  _this.container = container;
5393
- };
5427
+ });
5394
5428
 
5395
5429
  _this.container = null;
5396
5430
  _this.internalPlayer = null;
5397
5431
  return _this;
5398
5432
  }
5399
5433
 
5400
- /**
5401
- * Expose PlayerState constants for convenience. These constants can also be
5402
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5403
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5404
- */
5405
-
5406
-
5407
5434
  _createClass(YouTube, [{
5408
- key: 'componentDidMount',
5435
+ key: "componentDidMount",
5409
5436
  value: function componentDidMount() {
5410
5437
  this.createPlayer();
5411
5438
  }
5412
5439
  }, {
5413
- key: 'componentDidUpdate',
5440
+ key: "componentDidUpdate",
5414
5441
  value: function componentDidUpdate(prevProps) {
5415
5442
  if (shouldUpdatePlayer(prevProps, this.props)) {
5416
5443
  this.updatePlayer();
@@ -5425,112 +5452,58 @@ var YouTube = function (_React$Component) {
5425
5452
  }
5426
5453
  }
5427
5454
  }, {
5428
- key: 'componentWillUnmount',
5455
+ key: "componentWillUnmount",
5429
5456
  value: function componentWillUnmount() {
5430
- /**
5431
- * Note: The `youtube-player` package that is used promisifies all Youtube
5432
- * Player API calls, which introduces a delay of a tick before it actually
5433
- * gets destroyed. Since React attempts to remove the element instantly
5434
- * this method isn't quick enough to reset the container element.
5457
+ /**
5458
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5459
+ * Player API calls, which introduces a delay of a tick before it actually
5460
+ * gets destroyed. Since React attempts to remove the element instantly
5461
+ * this method isn't quick enough to reset the container element.
5435
5462
  */
5436
5463
  this.internalPlayer.destroy();
5437
5464
  }
5438
-
5439
- /**
5440
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5441
- *
5442
- * @param {Object} event
5443
- * @param {Object} target - player object
5444
- */
5445
-
5446
-
5447
- /**
5448
- * https://developers.google.com/youtube/iframe_api_reference#onError
5449
- *
5450
- * @param {Object} event
5451
- * @param {Integer} data - error type
5452
- * @param {Object} target - player object
5453
- */
5454
-
5455
-
5456
- /**
5457
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5458
- *
5459
- * @param {Object} event
5460
- * @param {Integer} data - status change type
5461
- * @param {Object} target - actual YT player
5462
- */
5463
-
5464
-
5465
- /**
5466
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5467
- *
5468
- * @param {Object} event
5469
- * @param {Float} data - playback rate
5470
- * @param {Object} target - actual YT player
5471
- */
5472
-
5473
-
5474
- /**
5475
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5476
- *
5477
- * @param {Object} event
5478
- * @param {String} data - playback quality
5479
- * @param {Object} target - actual YT player
5480
- */
5481
-
5482
-
5483
- /**
5484
- * Initialize the Youtube Player API on the container and attach event handlers
5485
- */
5486
-
5487
-
5488
- /**
5489
- * Shorthand for destroying and then re-creating the Youtube Player
5490
- */
5491
-
5492
-
5493
- /**
5494
- * Method to update the id and class of the Youtube Player iframe.
5495
- * React should update this automatically but since the Youtube Player API
5496
- * replaced the DIV that is mounted by React we need to do this manually.
5497
- */
5498
-
5499
-
5500
- /**
5501
- * Call Youtube Player API methods to update the currently playing video.
5502
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5503
- * Youtube Player API methods to update the video.
5465
+ /**
5466
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5467
+ *
5468
+ * @param {Object} event
5469
+ * @param {Object} target - player object
5504
5470
  */
5505
5471
 
5506
5472
  }, {
5507
- key: 'render',
5473
+ key: "render",
5508
5474
  value: function render() {
5509
- return React__default.createElement(
5510
- 'div',
5511
- { className: this.props.containerClassName },
5512
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5513
- );
5475
+ return /*#__PURE__*/React__default.createElement("div", {
5476
+ className: this.props.containerClassName
5477
+ }, /*#__PURE__*/React__default.createElement("div", {
5478
+ id: this.props.id,
5479
+ className: this.props.className,
5480
+ ref: this.refContainer
5481
+ }));
5514
5482
  }
5515
5483
  }]);
5516
5484
 
5517
5485
  return YouTube;
5518
5486
  }(React__default.Component);
5519
5487
 
5488
+ _defineProperty(YouTube, "PlayerState", {
5489
+ UNSTARTED: -1,
5490
+ ENDED: 0,
5491
+ PLAYING: 1,
5492
+ PAUSED: 2,
5493
+ BUFFERING: 3,
5494
+ CUED: 5
5495
+ });
5496
+
5520
5497
  YouTube.propTypes = {
5521
5498
  videoId: PropTypes.string,
5522
-
5523
5499
  // custom ID for player element
5524
5500
  id: PropTypes.string,
5525
-
5526
5501
  // custom class name for player element
5527
5502
  className: PropTypes.string,
5528
5503
  // custom class name for player container element
5529
5504
  containerClassName: PropTypes.string,
5530
-
5531
5505
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5532
5506
  opts: PropTypes.objectOf(PropTypes.any),
5533
-
5534
5507
  // event subscriptions
5535
5508
  onReady: PropTypes.func,
5536
5509
  onError: PropTypes.func,
@@ -5542,6 +5515,7 @@ YouTube.propTypes = {
5542
5515
  onPlaybackQualityChange: PropTypes.func
5543
5516
  };
5544
5517
  YouTube.defaultProps = {
5518
+ videoId: null,
5545
5519
  id: null,
5546
5520
  className: null,
5547
5521
  opts: {},
@@ -5555,14 +5529,6 @@ YouTube.defaultProps = {
5555
5529
  onPlaybackRateChange: function onPlaybackRateChange() {},
5556
5530
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5557
5531
  };
5558
- YouTube.PlayerState = {
5559
- UNSTARTED: -1,
5560
- ENDED: 0,
5561
- PLAYING: 1,
5562
- PAUSED: 2,
5563
- BUFFERING: 3,
5564
- CUED: 5
5565
- };
5566
5532
 
5567
5533
  var YouTubePlayer = function YouTubePlayer(_ref) {
5568
5534
  var url = _ref.url;
@@ -6586,8 +6552,8 @@ var window_1 = win;
6586
6552
 
6587
6553
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6588
6554
 
6589
- function _extends$1() {
6590
- _extends$1 = Object.assign || function (target) {
6555
+ function _extends() {
6556
+ _extends = Object.assign || function (target) {
6591
6557
  for (var i = 1; i < arguments.length; i++) {
6592
6558
  var source = arguments[i];
6593
6559
 
@@ -6601,7 +6567,7 @@ function _extends$1() {
6601
6567
  return target;
6602
6568
  };
6603
6569
 
6604
- return _extends$1.apply(this, arguments);
6570
+ return _extends.apply(this, arguments);
6605
6571
  }
6606
6572
 
6607
6573
  function _inheritsLoose(subClass, superClass) {
@@ -6610,7 +6576,7 @@ function _inheritsLoose(subClass, superClass) {
6610
6576
  subClass.__proto__ = superClass;
6611
6577
  }
6612
6578
 
6613
- function _assertThisInitialized(self) {
6579
+ function _assertThisInitialized$1(self) {
6614
6580
  if (self === void 0) {
6615
6581
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6616
6582
  }
@@ -6620,8 +6586,8 @@ function _assertThisInitialized(self) {
6620
6586
 
6621
6587
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6622
6588
 
6623
- function _extends$1$1() {
6624
- _extends$1$1 = Object.assign || function (target) {
6589
+ function _extends$1() {
6590
+ _extends$1 = Object.assign || function (target) {
6625
6591
  for (var i = 1; i < arguments.length; i++) {
6626
6592
  var source = arguments[i];
6627
6593
 
@@ -6635,7 +6601,7 @@ function _extends$1$1() {
6635
6601
  return target;
6636
6602
  };
6637
6603
 
6638
- return _extends$1$1.apply(this, arguments);
6604
+ return _extends$1.apply(this, arguments);
6639
6605
  }
6640
6606
 
6641
6607
  var version$1 = "1.7.1";
@@ -6643,7 +6609,7 @@ var version$1 = "1.7.1";
6643
6609
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6644
6610
  var version$1$1 = "1.2.0";
6645
6611
 
6646
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6612
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6647
6613
  return typeof obj;
6648
6614
  } : function (obj) {
6649
6615
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6778,7 +6744,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6778
6744
 
6779
6745
  var qs = '';
6780
6746
 
6781
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6747
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6782
6748
  qs = getQueryString(queryParams);
6783
6749
  }
6784
6750
 
@@ -7012,7 +6978,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7012
6978
  el.style.width = '100%';
7013
6979
  el.style.height = '100%';
7014
6980
 
7015
- var responsive = _extends$1$1({
6981
+ var responsive = _extends$1({
7016
6982
  aspectRatio: DEFAULT_ASPECT_RATIO,
7017
6983
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7018
6984
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7697,7 +7663,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7697
7663
 
7698
7664
 
7699
7665
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7700
- var params = _extends$1$1({}, DEFAULTS, parameters);
7666
+ var params = _extends$1({}, DEFAULTS, parameters);
7701
7667
 
7702
7668
  var Promise = params.Promise,
7703
7669
  onSuccess = params.onSuccess,
@@ -7839,7 +7805,7 @@ function (_React$Component) {
7839
7805
  _this.refNode = ref;
7840
7806
  };
7841
7807
 
7842
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7808
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7843
7809
  return _this;
7844
7810
  }
7845
7811
  /**
@@ -7860,7 +7826,7 @@ function (_React$Component) {
7860
7826
  var userSuccess = this.props.onSuccess;
7861
7827
  var userFailure = this.props.onFailure;
7862
7828
 
7863
- var options = _extends$1({}, this.props, {
7829
+ var options = _extends({}, this.props, {
7864
7830
  refNode: this.refNode,
7865
7831
  refNodeInsert: 'append',
7866
7832
  onSuccess: function onSuccess(_ref) {
@@ -8169,7 +8135,7 @@ function (_React$Component) {
8169
8135
  ;
8170
8136
 
8171
8137
  _proto.render = function render() {
8172
- var props = _extends$1({
8138
+ var props = _extends({
8173
8139
  className: 'brightcove-react-player-loader'
8174
8140
  }, this.props.attrs, {
8175
8141
  ref: this.setRefNode
@@ -8583,11 +8549,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8583
8549
 
8584
8550
  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; }
8585
8551
 
8586
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8552
+ 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; } } }; }
8553
+
8554
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8555
+
8556
+ 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."); }
8587
8557
 
8588
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8558
+ 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); }
8589
8559
 
8590
- 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; }
8560
+ 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; }
8561
+
8562
+ 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; }
8591
8563
 
8592
8564
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8593
8565
 
@@ -8717,12 +8689,12 @@ function getSDK(url, sdkGlobal) {
8717
8689
 
8718
8690
  function getConfig(props$1, defaultProps, showWarning) {
8719
8691
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8720
- var _iteratorNormalCompletion = true;
8721
- var _didIteratorError = false;
8722
- var _iteratorError = undefined;
8692
+
8693
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8694
+ _step;
8723
8695
 
8724
8696
  try {
8725
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8697
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8726
8698
  var p = _step.value;
8727
8699
 
8728
8700
  if (props$1[p]) {
@@ -8737,18 +8709,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8737
8709
  }
8738
8710
  }
8739
8711
  } catch (err) {
8740
- _didIteratorError = true;
8741
- _iteratorError = err;
8712
+ _iterator.e(err);
8742
8713
  } finally {
8743
- try {
8744
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8745
- _iterator["return"]();
8746
- }
8747
- } finally {
8748
- if (_didIteratorError) {
8749
- throw _iteratorError;
8750
- }
8751
- }
8714
+ _iterator.f();
8752
8715
  }
8753
8716
 
8754
8717
  return config;
@@ -8895,12 +8858,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8895
8858
 
8896
8859
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8897
8860
 
8898
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8861
+ 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); }; }
8899
8862
 
8900
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8863
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8901
8864
 
8902
8865
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8903
8866
 
8867
+ 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; } }
8868
+
8869
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8870
+
8904
8871
  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); }
8905
8872
 
8906
8873
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8909,14 +8876,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8909
8876
 
8910
8877
  var SEEK_ON_PLAY_EXPIRY = 5000;
8911
8878
 
8912
- var Player =
8913
- /*#__PURE__*/
8914
- function (_Component) {
8879
+ var Player = /*#__PURE__*/function (_Component) {
8915
8880
  _inherits(Player, _Component);
8916
8881
 
8917
- function Player() {
8918
- var _getPrototypeOf2;
8882
+ var _super = _createSuper(Player);
8919
8883
 
8884
+ function Player() {
8920
8885
  var _this;
8921
8886
 
8922
8887
  _classCallCheck(this, Player);
@@ -8925,7 +8890,7 @@ function (_Component) {
8925
8890
  _args[_key] = arguments[_key];
8926
8891
  }
8927
8892
 
8928
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8893
+ _this = _super.call.apply(_super, [this].concat(_args));
8929
8894
 
8930
8895
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8931
8896
 
@@ -9250,7 +9215,7 @@ function (_Component) {
9250
9215
  return null;
9251
9216
  }
9252
9217
 
9253
- return _react["default"].createElement(Player, _extends({}, this.props, {
9218
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9254
9219
  ref: this.ref,
9255
9220
  onReady: this.handleReady,
9256
9221
  onPlay: this.handlePlay,
@@ -9311,12 +9276,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9311
9276
 
9312
9277
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9313
9278
 
9314
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9279
+ 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); }; }
9315
9280
 
9316
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9281
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9317
9282
 
9318
9283
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9319
9284
 
9285
+ 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; } }
9286
+
9287
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9288
+
9320
9289
  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); }
9321
9290
 
9322
9291
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9328,14 +9297,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9328
9297
  function createSinglePlayer(activePlayer) {
9329
9298
  var _class, _temp;
9330
9299
 
9331
- return _temp = _class =
9332
- /*#__PURE__*/
9333
- function (_Component) {
9300
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9334
9301
  _inherits(SinglePlayer, _Component);
9335
9302
 
9336
- function SinglePlayer() {
9337
- var _getPrototypeOf2;
9303
+ var _super = _createSuper(SinglePlayer);
9338
9304
 
9305
+ function SinglePlayer() {
9339
9306
  var _this;
9340
9307
 
9341
9308
  _classCallCheck(this, SinglePlayer);
@@ -9344,7 +9311,7 @@ function createSinglePlayer(activePlayer) {
9344
9311
  args[_key] = arguments[_key];
9345
9312
  }
9346
9313
 
9347
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9314
+ _this = _super.call.apply(_super, [this].concat(args));
9348
9315
 
9349
9316
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9350
9317
 
@@ -9412,12 +9379,12 @@ function createSinglePlayer(activePlayer) {
9412
9379
  height = _this$props.height,
9413
9380
  Wrapper = _this$props.wrapper;
9414
9381
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9415
- return _react["default"].createElement(Wrapper, _extends({
9382
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9416
9383
  style: _objectSpread({}, style, {
9417
9384
  width: width,
9418
9385
  height: height
9419
9386
  })
9420
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9387
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9421
9388
  ref: this.ref,
9422
9389
  activePlayer: activePlayer,
9423
9390
  config: this.config
@@ -9463,23 +9430,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9463
9430
 
9464
9431
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9465
9432
 
9466
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9433
+ 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); }; }
9467
9434
 
9468
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9435
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9469
9436
 
9470
9437
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9471
9438
 
9439
+ 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; } }
9440
+
9441
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9442
+
9472
9443
  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); }
9473
9444
 
9474
9445
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9475
9446
 
9476
9447
  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; }
9477
9448
 
9478
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9449
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9479
9450
 
9480
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9451
+ 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."); }
9481
9452
 
9482
- 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; }
9453
+ 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); }
9454
+
9455
+ 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; }
9456
+
9457
+ 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; }
9483
9458
 
9484
9459
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9485
9460
 
@@ -9504,14 +9479,12 @@ function parsePlaylist(url) {
9504
9479
  return {};
9505
9480
  }
9506
9481
 
9507
- var YouTube =
9508
- /*#__PURE__*/
9509
- function (_Component) {
9482
+ var YouTube = /*#__PURE__*/function (_Component) {
9510
9483
  _inherits(YouTube, _Component);
9511
9484
 
9512
- function YouTube() {
9513
- var _getPrototypeOf2;
9485
+ var _super = _createSuper(YouTube);
9514
9486
 
9487
+ function YouTube() {
9515
9488
  var _this;
9516
9489
 
9517
9490
  _classCallCheck(this, YouTube);
@@ -9520,7 +9493,7 @@ function (_Component) {
9520
9493
  args[_key] = arguments[_key];
9521
9494
  }
9522
9495
 
9523
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9496
+ _this = _super.call.apply(_super, [this].concat(args));
9524
9497
 
9525
9498
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9526
9499
 
@@ -9708,9 +9681,9 @@ function (_Component) {
9708
9681
  height: '100%',
9709
9682
  display: display
9710
9683
  };
9711
- return _react["default"].createElement("div", {
9684
+ return /*#__PURE__*/_react["default"].createElement("div", {
9712
9685
  style: style
9713
- }, _react["default"].createElement("div", {
9686
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9714
9687
  ref: this.ref
9715
9688
  }));
9716
9689
  }
@@ -9766,12 +9739,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9766
9739
 
9767
9740
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9768
9741
 
9769
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9742
+ 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); }; }
9770
9743
 
9771
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9744
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9772
9745
 
9773
9746
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9774
9747
 
9748
+ 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; } }
9749
+
9750
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9751
+
9775
9752
  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); }
9776
9753
 
9777
9754
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9780,16 +9757,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9780
9757
 
9781
9758
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9782
9759
  var SDK_GLOBAL = 'SC';
9783
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9760
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9784
9761
 
9785
- var SoundCloud =
9786
- /*#__PURE__*/
9787
- function (_Component) {
9762
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9788
9763
  _inherits(SoundCloud, _Component);
9789
9764
 
9790
- function SoundCloud() {
9791
- var _getPrototypeOf2;
9765
+ var _super = _createSuper(SoundCloud);
9792
9766
 
9767
+ function SoundCloud() {
9793
9768
  var _this;
9794
9769
 
9795
9770
  _classCallCheck(this, SoundCloud);
@@ -9798,7 +9773,7 @@ function (_Component) {
9798
9773
  args[_key] = arguments[_key];
9799
9774
  }
9800
9775
 
9801
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9776
+ _this = _super.call.apply(_super, [this].concat(args));
9802
9777
 
9803
9778
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9804
9779
 
@@ -9919,7 +9894,7 @@ function (_Component) {
9919
9894
  height: '100%',
9920
9895
  display: display
9921
9896
  };
9922
- return _react["default"].createElement("iframe", {
9897
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
9923
9898
  ref: this.ref,
9924
9899
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9925
9900
  style: style,
@@ -9981,12 +9956,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9981
9956
 
9982
9957
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9983
9958
 
9984
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9959
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9985
9960
 
9986
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9961
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9987
9962
 
9988
9963
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9989
9964
 
9965
+ 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; } }
9966
+
9967
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9968
+
9990
9969
  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); }
9991
9970
 
9992
9971
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9998,14 +9977,12 @@ var SDK_GLOBAL = 'Vimeo';
9998
9977
  var MATCH_URL = /vimeo\.com\/.+/;
9999
9978
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10000
9979
 
10001
- var Vimeo =
10002
- /*#__PURE__*/
10003
- function (_Component) {
9980
+ var Vimeo = /*#__PURE__*/function (_Component) {
10004
9981
  _inherits(Vimeo, _Component);
10005
9982
 
10006
- function Vimeo() {
10007
- var _getPrototypeOf2;
9983
+ var _super = _createSuper(Vimeo);
10008
9984
 
9985
+ function Vimeo() {
10009
9986
  var _this;
10010
9987
 
10011
9988
  _classCallCheck(this, Vimeo);
@@ -10014,7 +9991,7 @@ function (_Component) {
10014
9991
  args[_key] = arguments[_key];
10015
9992
  }
10016
9993
 
10017
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9994
+ _this = _super.call.apply(_super, [this].concat(args));
10018
9995
 
10019
9996
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10020
9997
 
@@ -10171,7 +10148,7 @@ function (_Component) {
10171
10148
  overflow: 'hidden',
10172
10149
  display: display
10173
10150
  };
10174
- return _react["default"].createElement("div", {
10151
+ return /*#__PURE__*/_react["default"].createElement("div", {
10175
10152
  key: this.props.url,
10176
10153
  ref: this.ref,
10177
10154
  style: style
@@ -10231,12 +10208,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10231
10208
 
10232
10209
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10233
10210
 
10234
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10211
+ 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); }; }
10235
10212
 
10236
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10213
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10237
10214
 
10238
10215
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10239
10216
 
10217
+ 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; } }
10218
+
10219
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10220
+
10240
10221
  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); }
10241
10222
 
10242
10223
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10249,14 +10230,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10249
10230
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10250
10231
  var PLAYER_ID_PREFIX = 'facebook-player-';
10251
10232
 
10252
- var Facebook =
10253
- /*#__PURE__*/
10254
- function (_Component) {
10233
+ var Facebook = /*#__PURE__*/function (_Component) {
10255
10234
  _inherits(Facebook, _Component);
10256
10235
 
10257
- function Facebook() {
10258
- var _getPrototypeOf2;
10236
+ var _super = _createSuper(Facebook);
10259
10237
 
10238
+ function Facebook() {
10260
10239
  var _this;
10261
10240
 
10262
10241
  _classCallCheck(this, Facebook);
@@ -10265,7 +10244,7 @@ function (_Component) {
10265
10244
  args[_key] = arguments[_key];
10266
10245
  }
10267
10246
 
10268
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10247
+ _this = _super.call.apply(_super, [this].concat(args));
10269
10248
 
10270
10249
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10271
10250
 
@@ -10381,7 +10360,7 @@ function (_Component) {
10381
10360
  width: '100%',
10382
10361
  height: '100%'
10383
10362
  };
10384
- return _react["default"].createElement("div", {
10363
+ return /*#__PURE__*/_react["default"].createElement("div", {
10385
10364
  style: style,
10386
10365
  id: this.playerID,
10387
10366
  className: "fb-video",
@@ -10441,12 +10420,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10441
10420
 
10442
10421
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10443
10422
 
10444
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10423
+ 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); }; }
10445
10424
 
10446
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10425
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10447
10426
 
10448
10427
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10449
10428
 
10429
+ 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; } }
10430
+
10431
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10432
+
10450
10433
  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); }
10451
10434
 
10452
10435
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10457,14 +10440,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10457
10440
  var SDK_GLOBAL = 'playerjs';
10458
10441
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10459
10442
 
10460
- var Streamable =
10461
- /*#__PURE__*/
10462
- function (_Component) {
10443
+ var Streamable = /*#__PURE__*/function (_Component) {
10463
10444
  _inherits(Streamable, _Component);
10464
10445
 
10465
- function Streamable() {
10466
- var _getPrototypeOf2;
10446
+ var _super = _createSuper(Streamable);
10467
10447
 
10448
+ function Streamable() {
10468
10449
  var _this;
10469
10450
 
10470
10451
  _classCallCheck(this, Streamable);
@@ -10473,7 +10454,7 @@ function (_Component) {
10473
10454
  args[_key] = arguments[_key];
10474
10455
  }
10475
10456
 
10476
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10457
+ _this = _super.call.apply(_super, [this].concat(args));
10477
10458
 
10478
10459
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10479
10460
 
@@ -10593,7 +10574,7 @@ function (_Component) {
10593
10574
  width: '100%',
10594
10575
  height: '100%'
10595
10576
  };
10596
- return _react["default"].createElement("iframe", {
10577
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10597
10578
  ref: this.ref,
10598
10579
  src: "https://streamable.com/o/".concat(id),
10599
10580
  frameBorder: "0",
@@ -10654,12 +10635,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10654
10635
 
10655
10636
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10656
10637
 
10657
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10638
+ 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); }; }
10658
10639
 
10659
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10640
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10660
10641
 
10661
10642
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10662
10643
 
10644
+ 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; } }
10645
+
10646
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10647
+
10663
10648
  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); }
10664
10649
 
10665
10650
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10670,26 +10655,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10670
10655
  var SDK_GLOBAL = 'Wistia';
10671
10656
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10672
10657
 
10673
- var Wistia =
10674
- /*#__PURE__*/
10675
- function (_Component) {
10658
+ var Wistia = /*#__PURE__*/function (_Component) {
10676
10659
  _inherits(Wistia, _Component);
10677
10660
 
10678
- function Wistia() {
10679
- var _getPrototypeOf2;
10661
+ var _super = _createSuper(Wistia);
10680
10662
 
10663
+ function Wistia() {
10681
10664
  var _this;
10682
10665
 
10683
10666
  _classCallCheck(this, Wistia);
10684
10667
 
10685
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10686
- args[_key] = arguments[_key];
10668
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10669
+ _args[_key] = arguments[_key];
10687
10670
  }
10688
10671
 
10689
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10672
+ _this = _super.call.apply(_super, [this].concat(_args));
10690
10673
 
10691
10674
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10692
10675
 
10676
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10677
+ var _this$props;
10678
+
10679
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10680
+ });
10681
+
10682
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10683
+ var _this$props2;
10684
+
10685
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10686
+ });
10687
+
10688
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10689
+ var _this$props3;
10690
+
10691
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10692
+ });
10693
+
10694
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10695
+ var _this$props4;
10696
+
10697
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10698
+ });
10699
+
10693
10700
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10694
10701
  _this.callPlayer('mute');
10695
10702
  });
@@ -10711,17 +10718,13 @@ function (_Component) {
10711
10718
  value: function load(url) {
10712
10719
  var _this2 = this;
10713
10720
 
10714
- var _this$props = this.props,
10715
- playing = _this$props.playing,
10716
- muted = _this$props.muted,
10717
- controls = _this$props.controls,
10718
- _onReady = _this$props.onReady,
10719
- onPlay = _this$props.onPlay,
10720
- onPause = _this$props.onPause,
10721
- onSeek = _this$props.onSeek,
10722
- onEnded = _this$props.onEnded,
10723
- config = _this$props.config,
10724
- onError = _this$props.onError;
10721
+ var _this$props5 = this.props,
10722
+ playing = _this$props5.playing,
10723
+ muted = _this$props5.muted,
10724
+ controls = _this$props5.controls,
10725
+ _onReady = _this$props5.onReady,
10726
+ config = _this$props5.config,
10727
+ onError = _this$props5.onError;
10725
10728
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10726
10729
  window._wq = window._wq || [];
10727
10730
 
@@ -10738,19 +10741,28 @@ function (_Component) {
10738
10741
 
10739
10742
  _this2.unbind();
10740
10743
 
10741
- _this2.player.bind('play', onPlay);
10744
+ _this2.player.bind('play', _this2.onPlay);
10742
10745
 
10743
- _this2.player.bind('pause', onPause);
10746
+ _this2.player.bind('pause', _this2.onPause);
10744
10747
 
10745
- _this2.player.bind('seek', onSeek);
10748
+ _this2.player.bind('seek', _this2.onSeek);
10746
10749
 
10747
- _this2.player.bind('end', onEnded);
10750
+ _this2.player.bind('end', _this2.onEnded);
10748
10751
 
10749
10752
  _onReady();
10750
10753
  }
10751
10754
  });
10752
10755
  }, onError);
10753
10756
  }
10757
+ }, {
10758
+ key: "unbind",
10759
+ value: function unbind() {
10760
+ this.player.unbind('play', this.onPlay);
10761
+ this.player.unbind('pause', this.onPause);
10762
+ this.player.unbind('seek', this.onSeek);
10763
+ this.player.unbind('end', this.onEnded);
10764
+ } // Proxy methods to prevent listener leaks
10765
+
10754
10766
  }, {
10755
10767
  key: "play",
10756
10768
  value: function play() {
@@ -10761,19 +10773,6 @@ function (_Component) {
10761
10773
  value: function pause() {
10762
10774
  this.callPlayer('pause');
10763
10775
  }
10764
- }, {
10765
- key: "unbind",
10766
- value: function unbind() {
10767
- var _this$props2 = this.props,
10768
- onPlay = _this$props2.onPlay,
10769
- onPause = _this$props2.onPause,
10770
- onSeek = _this$props2.onSeek,
10771
- onEnded = _this$props2.onEnded;
10772
- this.player.unbind('play', onPlay);
10773
- this.player.unbind('pause', onPause);
10774
- this.player.unbind('seek', onSeek);
10775
- this.player.unbind('end', onEnded);
10776
- }
10777
10776
  }, {
10778
10777
  key: "stop",
10779
10778
  value: function stop() {
@@ -10819,7 +10818,7 @@ function (_Component) {
10819
10818
  width: '100%',
10820
10819
  height: '100%'
10821
10820
  };
10822
- return _react["default"].createElement("div", {
10821
+ return /*#__PURE__*/_react["default"].createElement("div", {
10823
10822
  key: id,
10824
10823
  className: className,
10825
10824
  style: style
@@ -10879,12 +10878,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10879
10878
 
10880
10879
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10881
10880
 
10882
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10881
+ 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); }; }
10883
10882
 
10884
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10883
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10885
10884
 
10886
10885
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10887
10886
 
10887
+ 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; } }
10888
+
10889
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10890
+
10888
10891
  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); }
10889
10892
 
10890
10893
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10897,14 +10900,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10897
10900
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10898
10901
  var PLAYER_ID_PREFIX = 'twitch-player-';
10899
10902
 
10900
- var Twitch =
10901
- /*#__PURE__*/
10902
- function (_Component) {
10903
+ var Twitch = /*#__PURE__*/function (_Component) {
10903
10904
  _inherits(Twitch, _Component);
10904
10905
 
10905
- function Twitch() {
10906
- var _getPrototypeOf2;
10906
+ var _super = _createSuper(Twitch);
10907
10907
 
10908
+ function Twitch() {
10908
10909
  var _this;
10909
10910
 
10910
10911
  _classCallCheck(this, Twitch);
@@ -10913,7 +10914,7 @@ function (_Component) {
10913
10914
  args[_key] = arguments[_key];
10914
10915
  }
10915
10916
 
10916
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10917
+ _this = _super.call.apply(_super, [this].concat(args));
10917
10918
 
10918
10919
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10919
10920
 
@@ -11034,7 +11035,7 @@ function (_Component) {
11034
11035
  width: '100%',
11035
11036
  height: '100%'
11036
11037
  };
11037
- return _react["default"].createElement("div", {
11038
+ return /*#__PURE__*/_react["default"].createElement("div", {
11038
11039
  style: style,
11039
11040
  id: this.playerID
11040
11041
  });
@@ -11087,11 +11088,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11087
11088
 
11088
11089
  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; }
11089
11090
 
11090
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11091
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11092
+
11093
+ 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."); }
11091
11094
 
11092
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11095
+ 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); }
11093
11096
 
11094
- 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; }
11097
+ 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; }
11098
+
11099
+ 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; }
11095
11100
 
11096
11101
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11097
11102
 
@@ -11101,12 +11106,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11101
11106
 
11102
11107
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11103
11108
 
11104
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11109
+ 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); }; }
11105
11110
 
11106
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11111
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11107
11112
 
11108
11113
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11109
11114
 
11115
+ 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; } }
11116
+
11117
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11118
+
11110
11119
  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); }
11111
11120
 
11112
11121
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11118,14 +11127,12 @@ var SDK_GLOBAL = 'DM';
11118
11127
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11119
11128
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11120
11129
 
11121
- var DailyMotion =
11122
- /*#__PURE__*/
11123
- function (_Component) {
11130
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11124
11131
  _inherits(DailyMotion, _Component);
11125
11132
 
11126
- function DailyMotion() {
11127
- var _getPrototypeOf2;
11133
+ var _super = _createSuper(DailyMotion);
11128
11134
 
11135
+ function DailyMotion() {
11129
11136
  var _this;
11130
11137
 
11131
11138
  _classCallCheck(this, DailyMotion);
@@ -11134,7 +11141,7 @@ function (_Component) {
11134
11141
  args[_key] = arguments[_key];
11135
11142
  }
11136
11143
 
11137
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11144
+ _this = _super.call.apply(_super, [this].concat(args));
11138
11145
 
11139
11146
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11140
11147
 
@@ -11263,9 +11270,9 @@ function (_Component) {
11263
11270
  height: '100%',
11264
11271
  display: display
11265
11272
  };
11266
- return _react["default"].createElement("div", {
11273
+ return /*#__PURE__*/_react["default"].createElement("div", {
11267
11274
  style: style
11268
- }, _react["default"].createElement("div", {
11275
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11269
11276
  ref: this.ref
11270
11277
  }));
11271
11278
  }
@@ -11323,12 +11330,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11323
11330
 
11324
11331
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11325
11332
 
11326
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11333
+ 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); }; }
11327
11334
 
11328
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11335
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11329
11336
 
11330
11337
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11331
11338
 
11339
+ 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; } }
11340
+
11341
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11342
+
11332
11343
  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); }
11333
11344
 
11334
11345
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11339,14 +11350,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11339
11350
  var SDK_GLOBAL = 'Mixcloud';
11340
11351
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11341
11352
 
11342
- var Mixcloud =
11343
- /*#__PURE__*/
11344
- function (_Component) {
11353
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11345
11354
  _inherits(Mixcloud, _Component);
11346
11355
 
11347
- function Mixcloud() {
11348
- var _getPrototypeOf2;
11356
+ var _super = _createSuper(Mixcloud);
11349
11357
 
11358
+ function Mixcloud() {
11350
11359
  var _this;
11351
11360
 
11352
11361
  _classCallCheck(this, Mixcloud);
@@ -11355,7 +11364,7 @@ function (_Component) {
11355
11364
  args[_key] = arguments[_key];
11356
11365
  }
11357
11366
 
11358
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11367
+ _this = _super.call.apply(_super, [this].concat(args));
11359
11368
 
11360
11369
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11361
11370
 
@@ -11458,7 +11467,7 @@ function (_Component) {
11458
11467
  })); // We have to give the iframe a key here to prevent a
11459
11468
  // weird dialog appearing when loading a new track
11460
11469
 
11461
- return _react["default"].createElement("iframe", {
11470
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11462
11471
  key: id,
11463
11472
  ref: this.ref,
11464
11473
  style: style,
@@ -11518,23 +11527,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11518
11527
 
11519
11528
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11520
11529
 
11521
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11530
+ 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); }; }
11522
11531
 
11523
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11532
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11524
11533
 
11525
11534
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11526
11535
 
11536
+ 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; } }
11537
+
11538
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11539
+
11527
11540
  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); }
11528
11541
 
11529
11542
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11530
11543
 
11531
11544
  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; }
11532
11545
 
11546
+ 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; } } }; }
11547
+
11548
+ 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); }
11549
+
11550
+ 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; }
11551
+
11533
11552
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11534
11553
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11535
11554
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11536
11555
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11537
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11556
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11538
11557
  var HLS_GLOBAL = 'Hls';
11539
11558
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11540
11559
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11543,12 +11562,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11543
11562
 
11544
11563
  function canPlay(url) {
11545
11564
  if (url instanceof Array) {
11546
- var _iteratorNormalCompletion = true;
11547
- var _didIteratorError = false;
11548
- var _iteratorError = undefined;
11565
+ var _iterator = _createForOfIteratorHelper(url),
11566
+ _step;
11549
11567
 
11550
11568
  try {
11551
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11569
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11552
11570
  var item = _step.value;
11553
11571
 
11554
11572
  if (typeof item === 'string' && canPlay(item)) {
@@ -11560,18 +11578,9 @@ function canPlay(url) {
11560
11578
  }
11561
11579
  }
11562
11580
  } catch (err) {
11563
- _didIteratorError = true;
11564
- _iteratorError = err;
11581
+ _iterator.e(err);
11565
11582
  } finally {
11566
- try {
11567
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11568
- _iterator["return"]();
11569
- }
11570
- } finally {
11571
- if (_didIteratorError) {
11572
- throw _iteratorError;
11573
- }
11574
- }
11583
+ _iterator.f();
11575
11584
  }
11576
11585
 
11577
11586
  return false;
@@ -11595,14 +11604,12 @@ function canEnablePIP(url) {
11595
11604
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11596
11605
  }
11597
11606
 
11598
- var FilePlayer =
11599
- /*#__PURE__*/
11600
- function (_Component) {
11607
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11601
11608
  _inherits(FilePlayer, _Component);
11602
11609
 
11603
- function FilePlayer() {
11604
- var _getPrototypeOf2;
11610
+ var _super = _createSuper(FilePlayer);
11605
11611
 
11612
+ function FilePlayer() {
11606
11613
  var _this;
11607
11614
 
11608
11615
  _classCallCheck(this, FilePlayer);
@@ -11611,7 +11618,7 @@ function (_Component) {
11611
11618
  _args[_key] = arguments[_key];
11612
11619
  }
11613
11620
 
11614
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11621
+ _this = _super.call.apply(_super, [this].concat(_args));
11615
11622
 
11616
11623
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11617
11624
  var _this$props;
@@ -11698,19 +11705,19 @@ function (_Component) {
11698
11705
 
11699
11706
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11700
11707
  if (typeof source === 'string') {
11701
- return _react["default"].createElement("source", {
11708
+ return /*#__PURE__*/_react["default"].createElement("source", {
11702
11709
  key: index,
11703
11710
  src: source
11704
11711
  });
11705
11712
  }
11706
11713
 
11707
- return _react["default"].createElement("source", _extends({
11714
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11708
11715
  key: index
11709
11716
  }, source));
11710
11717
  });
11711
11718
 
11712
11719
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11713
- return _react["default"].createElement("track", _extends({
11720
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11714
11721
  key: index
11715
11722
  }, track));
11716
11723
  });
@@ -11748,6 +11755,10 @@ function (_Component) {
11748
11755
  key: "componentWillUnmount",
11749
11756
  value: function componentWillUnmount() {
11750
11757
  this.removeListeners(this.player);
11758
+
11759
+ if (this.hls) {
11760
+ this.hls.destroy();
11761
+ }
11751
11762
  }
11752
11763
  }, {
11753
11764
  key: "addListeners",
@@ -11878,10 +11889,6 @@ function (_Component) {
11878
11889
  value: function stop() {
11879
11890
  this.player.removeAttribute('src');
11880
11891
 
11881
- if (this.hls) {
11882
- this.hls.destroy();
11883
- }
11884
-
11885
11892
  if (this.dash) {
11886
11893
  this.dash.reset();
11887
11894
  }
@@ -11993,7 +12000,7 @@ function (_Component) {
11993
12000
  width: width === 'auto' ? width : '100%',
11994
12001
  height: height === 'auto' ? height : '100%'
11995
12002
  };
11996
- return _react["default"].createElement(Element, _extends({
12003
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
11997
12004
  ref: this.ref,
11998
12005
  src: this.getSource(url),
11999
12006
  style: style,
@@ -12083,12 +12090,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12083
12090
 
12084
12091
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12085
12092
 
12086
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12093
+ 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); }; }
12087
12094
 
12088
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12095
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12089
12096
 
12090
12097
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12091
12098
 
12099
+ 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; } }
12100
+
12101
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12102
+
12092
12103
  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); }
12093
12104
 
12094
12105
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12097,14 +12108,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12097
12108
 
12098
12109
  var ICON_SIZE = '64px';
12099
12110
 
12100
- var Preview =
12101
- /*#__PURE__*/
12102
- function (_Component) {
12111
+ var Preview = /*#__PURE__*/function (_Component) {
12103
12112
  _inherits(Preview, _Component);
12104
12113
 
12105
- function Preview() {
12106
- var _getPrototypeOf2;
12114
+ var _super = _createSuper(Preview);
12107
12115
 
12116
+ function Preview() {
12108
12117
  var _this;
12109
12118
 
12110
12119
  _classCallCheck(this, Preview);
@@ -12113,7 +12122,7 @@ function (_Component) {
12113
12122
  args[_key] = arguments[_key];
12114
12123
  }
12115
12124
 
12116
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12125
+ _this = _super.call.apply(_super, [this].concat(args));
12117
12126
 
12118
12127
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12119
12128
 
@@ -12211,15 +12220,15 @@ function (_Component) {
12211
12220
  }
12212
12221
  };
12213
12222
 
12214
- var defaultPlayIcon = _react["default"].createElement("div", {
12223
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12215
12224
  style: styles.shadow,
12216
12225
  className: "react-player__shadow"
12217
- }, _react["default"].createElement("div", {
12226
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12218
12227
  style: styles.playIcon,
12219
12228
  className: "react-player__play-icon"
12220
12229
  }));
12221
12230
 
12222
- return _react["default"].createElement("div", {
12231
+ return /*#__PURE__*/_react["default"].createElement("div", {
12223
12232
  style: styles.preview,
12224
12233
  className: "react-player__preview",
12225
12234
  onClick: onClick
@@ -12256,6 +12265,12 @@ var _Player = _interopRequireDefault(Player_1);
12256
12265
 
12257
12266
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12258
12267
 
12268
+ 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; } } }; }
12269
+
12270
+ 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); }
12271
+
12272
+ 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; }
12273
+
12259
12274
  var PRELOAD_PLAYERS = [{
12260
12275
  Player: YouTube_1.YouTube,
12261
12276
  configKey: 'youtube',
@@ -12276,16 +12291,16 @@ var PRELOAD_PLAYERS = [{
12276
12291
 
12277
12292
  function renderPreloadPlayers(url, controls, config) {
12278
12293
  var players = [];
12279
- var _iteratorNormalCompletion = true;
12280
- var _didIteratorError = false;
12281
- var _iteratorError = undefined;
12294
+
12295
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12296
+ _step;
12282
12297
 
12283
12298
  try {
12284
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12299
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12285
12300
  var player = _step.value;
12286
12301
 
12287
12302
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12288
- players.push(_react["default"].createElement(_Player["default"], {
12303
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12289
12304
  key: player.Player.displayName,
12290
12305
  activePlayer: player.Player,
12291
12306
  url: player.url,
@@ -12297,18 +12312,9 @@ function renderPreloadPlayers(url, controls, config) {
12297
12312
  }
12298
12313
  }
12299
12314
  } catch (err) {
12300
- _didIteratorError = true;
12301
- _iteratorError = err;
12315
+ _iterator.e(err);
12302
12316
  } finally {
12303
- try {
12304
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12305
- _iterator["return"]();
12306
- }
12307
- } finally {
12308
- if (_didIteratorError) {
12309
- throw _iteratorError;
12310
- }
12311
- }
12317
+ _iterator.f();
12312
12318
  }
12313
12319
 
12314
12320
  return players;
@@ -12432,13 +12438,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12432
12438
 
12433
12439
  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); }
12434
12440
 
12435
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12441
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12442
+
12443
+ 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."); }
12444
+
12445
+ 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); }
12436
12446
 
12437
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12447
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12438
12448
 
12439
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12449
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12440
12450
 
12441
- 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; } }
12451
+ 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; }
12442
12452
 
12443
12453
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12444
12454
 
@@ -12446,12 +12456,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12446
12456
 
12447
12457
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12448
12458
 
12449
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12459
+ 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); }; }
12450
12460
 
12451
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12461
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12452
12462
 
12453
12463
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12454
12464
 
12465
+ 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; } }
12466
+
12467
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12468
+
12455
12469
  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); }
12456
12470
 
12457
12471
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12461,14 +12475,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12461
12475
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12462
12476
  var customPlayers = [];
12463
12477
 
12464
- var ReactPlayer =
12465
- /*#__PURE__*/
12466
- function (_Component) {
12478
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12467
12479
  _inherits(ReactPlayer, _Component);
12468
12480
 
12469
- function ReactPlayer() {
12470
- var _getPrototypeOf2;
12481
+ var _super = _createSuper(ReactPlayer);
12471
12482
 
12483
+ function ReactPlayer() {
12472
12484
  var _this;
12473
12485
 
12474
12486
  _classCallCheck(this, ReactPlayer);
@@ -12477,7 +12489,7 @@ function (_Component) {
12477
12489
  args[_key] = arguments[_key];
12478
12490
  }
12479
12491
 
12480
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12492
+ _this = _super.call.apply(_super, [this].concat(args));
12481
12493
 
12482
12494
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12483
12495
 
@@ -12588,7 +12600,7 @@ function (_Component) {
12588
12600
  key: "renderActivePlayer",
12589
12601
  value: function renderActivePlayer(url, activePlayer) {
12590
12602
  if (!url) return null;
12591
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12603
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12592
12604
  key: activePlayer.displayName,
12593
12605
  ref: this.activePlayerRef,
12594
12606
  config: this.config,
@@ -12625,14 +12637,14 @@ function (_Component) {
12625
12637
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12626
12638
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12627
12639
 
12628
- var preview = _react["default"].createElement(_Preview["default"], {
12640
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12629
12641
  url: url,
12630
12642
  light: light,
12631
12643
  playIcon: playIcon,
12632
12644
  onClick: this.handleClickPreview
12633
12645
  });
12634
12646
 
12635
- return _react["default"].createElement(Wrapper, _extends({
12647
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12636
12648
  ref: this.wrapperRef,
12637
12649
  style: _objectSpread({}, style, {
12638
12650
  width: width,
@@ -13491,7 +13503,7 @@ var NativeAd = function NativeAd(props) {
13491
13503
  };
13492
13504
 
13493
13505
  var Figure = dynamic(function () {
13494
- return import('./Figure-b5847ea2.js');
13506
+ return import('./Figure-d6e22818.js');
13495
13507
  }, { ssr: false });
13496
13508
 
13497
13509
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -14072,16 +14084,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14072
14084
  _ref$className = _ref.className,
14073
14085
  className = _ref$className === undefined ? '' : _ref$className;
14074
14086
 
14075
- /*
14076
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14077
- example:
14078
- <RelatedTopicDropdown
14079
- page='/clinical'
14080
- exclude="clinical"
14081
- className='mb-3'
14082
- parentTaxonomy={props.parentTaxonomy}
14083
- subTaxonomies={props.subTaxonomies}
14084
- />
14087
+ /*
14088
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14089
+ example:
14090
+ <RelatedTopicDropdown
14091
+ page='/clinical'
14092
+ exclude="clinical"
14093
+ className='mb-3'
14094
+ parentTaxonomy={props.parentTaxonomy}
14095
+ subTaxonomies={props.subTaxonomies}
14096
+ />
14085
14097
  */
14086
14098
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14087
14099
  if (parentTaxonomy.identifier == exclude) {
@@ -14119,25 +14131,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14119
14131
  }
14120
14132
  };
14121
14133
 
14122
- /*
14123
- This dropdown is used inside Article body to display related content placement and document group pages
14124
- sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14125
-
14126
- - accepts any normal html arrtibute (style, id, class)
14127
-
14128
- - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14129
-
14130
- 'content_placement': taxonomyMapping[]-> {
14131
- ...,
14132
- 'ancestor': parent->parent->identifier,
14133
- 'parent': parent->identifier,
14134
- 'path': identifier
14135
- },
14136
- 'document_group': documentGroup-> {
14137
- name,
14138
- 'parent': parent->identifier,
14139
- 'path': identifier.current
14140
- }
14134
+ /*
14135
+ This dropdown is used inside Article body to display related content placement and document group pages
14136
+ sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14137
+
14138
+ - accepts any normal html arrtibute (style, id, class)
14139
+
14140
+ - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14141
+
14142
+ 'content_placement': taxonomyMapping[]-> {
14143
+ ...,
14144
+ 'ancestor': parent->parent->identifier,
14145
+ 'parent': parent->identifier,
14146
+ 'path': identifier
14147
+ },
14148
+ 'document_group': documentGroup-> {
14149
+ name,
14150
+ 'parent': parent->identifier,
14151
+ 'path': identifier.current
14152
+ }
14141
14153
  */
14142
14154
 
14143
14155
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15026,34 +15038,34 @@ var GridHero = function GridHero(props) {
15026
15038
  );
15027
15039
  };
15028
15040
 
15029
- /*
15030
- Sample query
15031
- let references = ''
15032
- if(article.taxonomyMapping.length > 0){
15033
- article.taxonomyMapping.forEach((ref, index) => {
15034
- references = references + `references('${ref._ref}') `
15035
- if(index+1 !== article.taxonomyMapping.length){
15036
- references = references + ` && `
15037
- }
15038
- })
15039
- }
15040
-
15041
- 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] {
15042
- ...,
15043
- title,
15044
- summary,
15045
- thumbnail,
15046
- url,
15047
- published,
15048
- authorMapping[]->,
15049
- contentCategory->
15050
- }`
15051
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15052
-
15053
- Sample usage
15054
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15055
-
15056
-
15041
+ /*
15042
+ Sample query
15043
+ let references = ''
15044
+ if(article.taxonomyMapping.length > 0){
15045
+ article.taxonomyMapping.forEach((ref, index) => {
15046
+ references = references + `references('${ref._ref}') `
15047
+ if(index+1 !== article.taxonomyMapping.length){
15048
+ references = references + ` && `
15049
+ }
15050
+ })
15051
+ }
15052
+
15053
+ 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] {
15054
+ ...,
15055
+ title,
15056
+ summary,
15057
+ thumbnail,
15058
+ url,
15059
+ published,
15060
+ authorMapping[]->,
15061
+ contentCategory->
15062
+ }`
15063
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15064
+
15065
+ Sample usage
15066
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15067
+
15068
+
15057
15069
  */
15058
15070
  var RelatedContent = function RelatedContent(props) {
15059
15071
  var client = props.client,
@@ -15120,21 +15132,21 @@ var RelatedContent = function RelatedContent(props) {
15120
15132
  );
15121
15133
  };
15122
15134
 
15123
- /*
15124
- Example usage - targetedonc.com/latest-conference
15125
- 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] {
15126
- ...,
15127
- title,
15128
- summary,
15129
- thumbnail,
15130
- url,
15131
- published,
15132
- documentGroup->,
15133
- contentCategory->,
15134
- 'pageNumber': ${currentPage}
15135
- }`
15136
-
15137
- const posts = await client.fetch(query, params)
15135
+ /*
15136
+ Example usage - targetedonc.com/latest-conference
15137
+ 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] {
15138
+ ...,
15139
+ title,
15140
+ summary,
15141
+ thumbnail,
15142
+ url,
15143
+ published,
15144
+ documentGroup->,
15145
+ contentCategory->,
15146
+ 'pageNumber': ${currentPage}
15147
+ }`
15148
+
15149
+ const posts = await client.fetch(query, params)
15138
15150
  */
15139
15151
 
15140
15152
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16538,27 +16550,27 @@ var ArticleQueue = function ArticleQueue(props) {
16538
16550
  };
16539
16551
 
16540
16552
  var KMTracker = function KMTracker(props) {
16541
- var id = props.id;
16553
+ var id = props.id;
16542
16554
 
16543
- if (document && id) {
16555
+ if (document && id) {
16544
16556
  (function () {
16545
- var ecnJquery = document.createElement('script');
16557
+ var ecnJquery = document.createElement('script');
16546
16558
 
16547
- ecnJquery.type = 'text/javascript';
16548
- ecnJquery.async = true;
16549
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16559
+ ecnJquery.type = 'text/javascript';
16560
+ ecnJquery.async = true;
16561
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16550
16562
 
16551
- var ecnScript = document.createElement('script');
16563
+ var ecnScript = document.createElement('script');
16552
16564
 
16553
- ecnScript.type = 'text/javascript';
16554
- ecnScript.async = true;
16555
- ecnScript.id = 'km-tracker';
16556
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16565
+ ecnScript.type = 'text/javascript';
16566
+ ecnScript.async = true;
16567
+ ecnScript.id = 'km-tracker';
16568
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16557
16569
 
16558
- document.head.appendChild(ecnJquery);
16559
- document.head.appendChild(ecnScript);
16560
- })();
16561
- }
16570
+ document.head.appendChild(ecnJquery);
16571
+ document.head.appendChild(ecnScript);
16572
+ })();
16573
+ }
16562
16574
  };
16563
16575
 
16564
16576
  export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };