@mjhls/mjh-framework 1.0.287 → 1.0.289

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